@unchainedshop/admin-ui 5.0.0-alpha.2 → 5.0.0-alpha.4

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 (967) hide show
  1. package/README.md +112 -0
  2. package/dist/chunk-45H2WVIC.js +51 -0
  3. package/dist/chunk-4VNS5WPM.js +37 -0
  4. package/dist/chunk-54DKBWXV.js +33 -0
  5. package/dist/chunk-6TXD4TA7.js +1196 -0
  6. package/dist/chunk-BGCKJQGS.js +58 -0
  7. package/dist/chunk-BYXBJQAS.js +1 -0
  8. package/dist/chunk-EJDZRZSZ.js +59 -0
  9. package/dist/chunk-ELPURWDC.js +75 -0
  10. package/dist/chunk-IAQPLRXZ.js +16 -0
  11. package/dist/chunk-ILYPJE4N.js +57 -0
  12. package/dist/chunk-IXBMHOB5.js +13 -0
  13. package/dist/chunk-KH5MK6ZW.js +18 -0
  14. package/dist/chunk-NT7RB7AK.js +70 -0
  15. package/dist/chunk-OKGJ6HDE.js +26 -0
  16. package/dist/chunk-Q6S3LBUF.js +180 -0
  17. package/dist/chunk-QNLGYFV7.js +22 -0
  18. package/dist/chunk-RAQV2GYF.js +70 -0
  19. package/dist/chunk-RHUFQVKL.js +514 -0
  20. package/dist/chunk-RVG6IOFC.js +11 -0
  21. package/dist/chunk-SRAAKMWY.js +39 -0
  22. package/dist/chunk-UFYR5WZT.js +165 -0
  23. package/dist/chunk-UXG7EYHC.js +614 -0
  24. package/dist/chunk-VDKQGOMV.js +840 -0
  25. package/dist/chunk-XHOCXPD5.js +9 -0
  26. package/dist/chunk-XJBPMIC4.js +284 -0
  27. package/dist/chunk-YO6PT7KD.js +13 -0
  28. package/dist/chunk-YSKZE2KN.js +652 -0
  29. package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
  30. package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
  31. package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
  32. package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
  33. package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
  34. package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
  35. package/dist/components/ui/ActiveInActive.d.ts +10 -0
  36. package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
  37. package/dist/components/ui/AnimatedCounter.d.ts +7 -0
  38. package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
  39. package/dist/components/ui/Badge.d.ts +10 -0
  40. package/dist/components/ui/Badge.d.ts.map +1 -0
  41. package/dist/components/ui/BreadCrumbs.d.ts +7 -0
  42. package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
  43. package/dist/components/ui/Button.d.ts +36 -0
  44. package/dist/components/ui/Button.d.ts.map +1 -0
  45. package/dist/components/ui/CopyableText.d.ts +5 -0
  46. package/dist/components/ui/CopyableText.d.ts.map +1 -0
  47. package/dist/components/ui/DateInput.d.ts +15 -0
  48. package/dist/components/ui/DateInput.d.ts.map +1 -0
  49. package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
  50. package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
  51. package/dist/components/ui/DetailHeader.d.ts +6 -0
  52. package/dist/components/ui/DetailHeader.d.ts.map +1 -0
  53. package/dist/components/ui/DraggableIcon.d.ts +3 -0
  54. package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
  55. package/dist/components/ui/ErrorBoundary.d.ts +18 -0
  56. package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
  57. package/dist/components/ui/ErrorFallback.d.ts +6 -0
  58. package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
  59. package/dist/components/ui/HelpText.d.ts +11 -0
  60. package/dist/components/ui/HelpText.d.ts.map +1 -0
  61. package/dist/components/ui/ImageWithFallback.d.ts +7 -0
  62. package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
  63. package/dist/components/ui/InfoTextBanner.d.ts +6 -0
  64. package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
  65. package/dist/components/ui/JSONView.d.ts +6 -0
  66. package/dist/components/ui/JSONView.d.ts.map +1 -0
  67. package/dist/components/ui/ListHeader.d.ts +6 -0
  68. package/dist/components/ui/ListHeader.d.ts.map +1 -0
  69. package/dist/components/ui/Loading.d.ts +3 -0
  70. package/dist/components/ui/Loading.d.ts.map +1 -0
  71. package/dist/components/ui/NoData.d.ts +7 -0
  72. package/dist/components/ui/NoData.d.ts.map +1 -0
  73. package/dist/components/ui/NoImage.d.ts +7 -0
  74. package/dist/components/ui/NoImage.d.ts.map +1 -0
  75. package/dist/components/ui/NoImageSvg.d.ts +8 -0
  76. package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
  77. package/dist/components/ui/PageHeader.d.ts +11 -0
  78. package/dist/components/ui/PageHeader.d.ts.map +1 -0
  79. package/dist/components/ui/Pagination.d.ts +8 -0
  80. package/dist/components/ui/Pagination.d.ts.map +1 -0
  81. package/dist/components/ui/Portal/Portal.d.ts +16 -0
  82. package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
  83. package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
  84. package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
  85. package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
  86. package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
  87. package/dist/components/ui/SearchField.d.ts +7 -0
  88. package/dist/components/ui/SearchField.d.ts.map +1 -0
  89. package/dist/components/ui/Tab.d.ts +18 -0
  90. package/dist/components/ui/Tab.d.ts.map +1 -0
  91. package/dist/components/ui/Tag/TagInput.d.ts +14 -0
  92. package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
  93. package/dist/components/ui/Tag/TagList.d.ts +8 -0
  94. package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
  95. package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
  96. package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
  97. package/dist/components/ui/Toggle.d.ts +11 -0
  98. package/dist/components/ui/Toggle.d.ts.map +1 -0
  99. package/dist/components/ui/ToolTip.d.ts +7 -0
  100. package/dist/components/ui/ToolTip.d.ts.map +1 -0
  101. package/dist/components/ui/card.d.ts +9 -0
  102. package/dist/components/ui/card.d.ts.map +1 -0
  103. package/dist/components/ui/chart.d.ts +42 -0
  104. package/dist/components/ui/chart.d.ts.map +1 -0
  105. package/dist/components/ui/form/CheckboxField.d.ts +4 -0
  106. package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
  107. package/dist/components/ui/form/ChoicesField.d.ts +12 -0
  108. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
  109. package/dist/components/ui/form/Combobox.d.ts +20 -0
  110. package/dist/components/ui/form/Combobox.d.ts.map +1 -0
  111. package/dist/components/ui/form/DatePickerField.d.ts +4 -0
  112. package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
  113. package/dist/components/ui/form/EmailField.d.ts +7 -0
  114. package/dist/components/ui/form/EmailField.d.ts.map +1 -0
  115. package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
  116. package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
  117. package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
  118. package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
  119. package/dist/components/ui/form/FormErrors.d.ts +6 -0
  120. package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
  121. package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
  122. package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
  123. package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
  124. package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
  125. package/dist/components/ui/form/PasswordField.d.ts +3 -0
  126. package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
  127. package/dist/components/ui/form/SelectField.d.ts +11 -0
  128. package/dist/components/ui/form/SelectField.d.ts.map +1 -0
  129. package/dist/components/ui/form/SubmitButton.d.ts +9 -0
  130. package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
  131. package/dist/components/ui/form/TagInputField.d.ts +6 -0
  132. package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
  133. package/dist/components/ui/form/TextAreaField.d.ts +8 -0
  134. package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
  135. package/dist/components/ui/form/TextField.d.ts +10 -0
  136. package/dist/components/ui/form/TextField.d.ts.map +1 -0
  137. package/dist/components/ui/form/index.d.ts +17 -0
  138. package/dist/components/ui/form/index.d.ts.map +1 -0
  139. package/dist/components/ui/icons.d.ts +4 -0
  140. package/dist/components/ui/icons.d.ts.map +1 -0
  141. package/dist/components/ui/index.d.ts +41 -0
  142. package/dist/components/ui/index.d.ts.map +1 -0
  143. package/dist/form.js +30077 -0
  144. package/dist/gql/types.d.ts +17209 -0
  145. package/dist/gql/types.d.ts.map +1 -0
  146. package/dist/hooks.js +41 -0
  147. package/dist/lib/utils.d.ts +3 -0
  148. package/dist/lib/utils.d.ts.map +1 -0
  149. package/dist/modal.js +114 -0
  150. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
  151. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
  152. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
  153. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
  154. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
  155. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
  156. package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
  157. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
  158. package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
  159. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
  160. package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
  161. package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
  162. package/dist/modules/accounts.js +1013 -0
  163. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
  164. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
  165. package/dist/modules/assortment.js +1121 -0
  166. package/dist/modules/common/components/AppContext.d.ts +18 -0
  167. package/dist/modules/common/components/AppContext.d.ts.map +1 -0
  168. package/dist/modules/common/components/FormWrapper.d.ts +8 -0
  169. package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
  170. package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
  171. package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
  172. package/dist/modules/common/data/iso-codes.d.ts +4 -0
  173. package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
  174. package/dist/modules/common/data/miscellaneous.d.ts +51 -0
  175. package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
  176. package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
  177. package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
  178. package/dist/modules/common/hooks/useApp.d.ts +11 -0
  179. package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
  180. package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
  181. package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
  182. package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
  183. package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
  184. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
  185. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
  186. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
  187. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
  188. package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
  189. package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
  190. package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
  191. package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
  192. package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
  193. package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
  194. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
  195. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
  196. package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
  197. package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
  198. package/dist/modules/common/hooks/usePortal.d.ts +20 -0
  199. package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
  200. package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
  201. package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
  202. package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
  203. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
  204. package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
  205. package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
  206. package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
  207. package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
  208. package/dist/modules/common/hooks/useTheme.d.ts +7 -0
  209. package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
  210. package/dist/modules/common/utils/deBounce.d.ts +3 -0
  211. package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
  212. package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
  213. package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
  214. package/dist/modules/common/utils/formatUsername.d.ts +3 -0
  215. package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
  216. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
  217. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
  218. package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
  219. package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
  220. package/dist/modules/common/utils/useFormatDateTime.d.ts +7 -0
  221. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
  222. package/dist/modules/common/utils/utils.d.ts +21 -0
  223. package/dist/modules/common/utils/utils.d.ts.map +1 -0
  224. package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
  225. package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
  226. package/dist/modules/country/hooks/useCountries.d.ts +22 -0
  227. package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
  228. package/dist/modules/country.js +108 -0
  229. package/dist/modules/currency.js +119 -0
  230. package/dist/modules/delivery-provider.js +269 -0
  231. package/dist/modules/enrollment.js +353 -0
  232. package/dist/modules/event.js +123 -0
  233. package/dist/modules/filter.js +448 -0
  234. package/dist/modules/forms/components/Form.d.ts +8 -0
  235. package/dist/modules/forms/components/Form.d.ts.map +1 -0
  236. package/dist/modules/forms/hooks/useField.d.ts +35 -0
  237. package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
  238. package/dist/modules/forms/hooks/useForm.d.ts +44 -0
  239. package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
  240. package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
  241. package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
  242. package/dist/modules/forms/lib/FormContext.d.ts +13 -0
  243. package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
  244. package/dist/modules/forms/lib/clean.d.ts +3 -0
  245. package/dist/modules/forms/lib/clean.d.ts.map +1 -0
  246. package/dist/modules/forms/lib/validators.d.ts +20 -0
  247. package/dist/modules/forms/lib/validators.d.ts.map +1 -0
  248. package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
  249. package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
  250. package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
  251. package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
  252. package/dist/modules/language.js +106 -0
  253. package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
  254. package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
  255. package/dist/modules/modal/components/DangerMessage.d.ts +12 -0
  256. package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
  257. package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
  258. package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
  259. package/dist/modules/modal/components/Modal.d.ts +10 -0
  260. package/dist/modules/modal/components/Modal.d.ts.map +1 -0
  261. package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
  262. package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
  263. package/dist/modules/modal/hooks/useModal.d.ts +7 -0
  264. package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
  265. package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
  266. package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
  267. package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
  268. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
  269. package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
  270. package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
  271. package/dist/modules/order/hooks/useOrders.d.ts +46 -0
  272. package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
  273. package/dist/modules/order.js +563 -0
  274. package/dist/modules/payment-providers.js +206 -0
  275. package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
  276. package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
  277. package/dist/modules/product-review.js +251 -0
  278. package/dist/modules/product.js +1929 -0
  279. package/dist/modules/quotation.js +297 -0
  280. package/dist/modules/token.js +143 -0
  281. package/dist/modules/warehousing-providers.js +206 -0
  282. package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
  283. package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
  284. package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
  285. package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
  286. package/dist/modules/work/hooks/useWork.d.ts +32 -0
  287. package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
  288. package/dist/modules/work.js +308 -0
  289. package/dist/plugins.js +8 -0
  290. package/dist/providers.js +6 -0
  291. package/dist/sdk/hooks.d.ts +9 -0
  292. package/dist/sdk/hooks.d.ts.map +1 -0
  293. package/dist/sdk/modal.d.ts +7 -0
  294. package/dist/sdk/modal.d.ts.map +1 -0
  295. package/dist/sdk/plugins.d.ts +67 -0
  296. package/dist/sdk/plugins.d.ts.map +1 -0
  297. package/dist/sdk/providers.d.ts +5 -0
  298. package/dist/sdk/providers.d.ts.map +1 -0
  299. package/dist/sdk/theme.d.ts +26 -0
  300. package/dist/sdk/theme.d.ts.map +1 -0
  301. package/dist/theme.js +34 -0
  302. package/dist/ui.js +21527 -0
  303. package/out/403/index.html +2 -2
  304. package/out/404/index.html +2 -2
  305. package/out/404.html +2 -2
  306. package/out/423/index.html +2 -2
  307. package/out/500/index.html +2 -2
  308. package/out/_next/static/chunks/0-p8a6-okjx49.js +15 -0
  309. package/out/_next/static/chunks/0-u5tid26i8-3.js +188 -0
  310. package/out/_next/static/chunks/008hxgil51owu.js +234 -0
  311. package/out/_next/static/chunks/026k3ys50h91u.js +15 -0
  312. package/out/_next/static/chunks/02aa23atze2y4.js +119 -0
  313. package/out/_next/static/chunks/02dnhll1bce87.js +46 -0
  314. package/out/_next/static/chunks/03f0hv23abn4a.js +12 -0
  315. package/out/_next/static/chunks/03p0xulfluyqm.js +15 -0
  316. package/out/_next/static/chunks/044dmimivt13x.js +233 -0
  317. package/out/_next/static/chunks/047gokoblz-qy.js +16 -0
  318. package/out/_next/static/chunks/04yroykjly9ni.js +15 -0
  319. package/out/_next/static/chunks/05h2_5y4i_fe4.js +12 -0
  320. package/out/_next/static/chunks/0641gh6yb6tnd.js +3 -0
  321. package/out/_next/static/chunks/06bsql5zgjpaj.js +315 -0
  322. package/out/_next/static/chunks/06jtnxd7wr712.js +1 -0
  323. package/out/_next/static/chunks/070wy1qe-7-uf.js +242 -0
  324. package/out/_next/static/chunks/07l1vdt21xneu.js +14 -0
  325. package/out/_next/static/chunks/07q8ufsdxo1tx.js +1 -0
  326. package/out/_next/static/chunks/087a2d-0e1pvn.js +1 -0
  327. package/out/_next/static/chunks/09pees0w94cvm.js +1 -0
  328. package/out/_next/static/chunks/0_wmk0z5r9thu.js +95 -0
  329. package/out/_next/static/chunks/0ab_-095b34n5.js +90 -0
  330. package/out/_next/static/chunks/0aom8abciz-yf.js +1 -0
  331. package/out/_next/static/chunks/0cdcsn87u-tzw.js +1 -0
  332. package/out/_next/static/chunks/0cu-wqc76z_w6.js +1 -0
  333. package/out/_next/static/chunks/0dnzfqa8el54j.js +135 -0
  334. package/out/_next/static/chunks/0f-hhcgpd3kjt.js +5 -0
  335. package/out/_next/static/chunks/0gdriupdpmq28.js +14 -0
  336. package/out/_next/static/chunks/0hm6-xlqw4vmr.js +1 -0
  337. package/out/_next/static/chunks/0hmdmxkzhdtjx.js +155 -0
  338. package/out/_next/static/chunks/0hpirq7m-gjle.js +23 -0
  339. package/out/_next/static/chunks/0hup5ovc9v_-h.js +58 -0
  340. package/out/_next/static/chunks/0hxsdaxwhc3z4.js +110 -0
  341. package/out/_next/static/chunks/0j-yonuwgtg0k.js +22 -0
  342. package/out/_next/static/chunks/0jo3ujn_icmb9.js +28 -0
  343. package/out/_next/static/chunks/0mayhrft9-4hw.js +13 -0
  344. package/out/_next/static/chunks/0mdh4qszx-qw8.js +1 -0
  345. package/out/_next/static/chunks/0nyu34hvyz9_k.js +103 -0
  346. package/out/_next/static/chunks/0nz8nqr7k7pni.js +61 -0
  347. package/out/_next/static/chunks/0pjv94c771817.js +13 -0
  348. package/out/_next/static/chunks/0qrepe4aqal8_.js +2 -0
  349. package/out/_next/static/chunks/0qtbb-w9hs2i_.js +1 -0
  350. package/out/_next/static/chunks/0r0l1vs8bls6y.js +1 -0
  351. package/out/_next/static/chunks/0r2v5se5riad_.js +227 -0
  352. package/out/_next/static/chunks/0s3aax3no2y3_.js +54 -0
  353. package/out/_next/static/chunks/0sys36fl1uhl-.js +18 -0
  354. package/out/_next/static/chunks/0u-md-qpvyccn.js +149 -0
  355. package/out/_next/static/chunks/0ukobsq85_to1.js +135 -0
  356. package/out/_next/static/chunks/0vcn7yqzt3qlc.js +10 -0
  357. package/out/_next/static/chunks/0wl_oo549tgsw.js +14 -0
  358. package/out/_next/static/chunks/0wm5atnhe2mjs.js +119 -0
  359. package/out/_next/static/chunks/0wpmgf2-hr2iv.js +1 -0
  360. package/out/_next/static/chunks/0wthf9v7cuwqf.js +3 -0
  361. package/out/_next/static/chunks/0xcxmgeevaadl.js +8 -0
  362. package/out/_next/static/chunks/0xoerh23zk-pj.js +44 -0
  363. package/out/_next/static/chunks/0xvoojz5c4j32.js +14 -0
  364. package/out/_next/static/chunks/0ykc9b-l7rcv9.js +18 -0
  365. package/out/_next/static/chunks/0zb8qwy33hihq.js +142 -0
  366. package/out/_next/static/chunks/0zgu8kiokvsjz.js +1 -0
  367. package/out/_next/static/chunks/0zk0s8hqsf5tg.js +18 -0
  368. package/out/_next/static/chunks/0zl6mu89n1_wq.js +1 -0
  369. package/out/_next/static/chunks/0zntg6ltu_fk3.js +14 -0
  370. package/out/_next/static/chunks/10996osm11rxi.js +327 -0
  371. package/out/_next/static/chunks/10q9_f1ss9afd.js +8 -0
  372. package/out/_next/static/chunks/110vhftkm53lj.js +111 -0
  373. package/out/_next/static/chunks/113_jsmrqky1h.js +130 -0
  374. package/out/_next/static/chunks/11fqypagzye_v.js +43 -0
  375. package/out/_next/static/chunks/137522d4_apiu.js +166 -0
  376. package/out/_next/static/chunks/13ml43jv3bxh1.js +1 -0
  377. package/out/_next/static/chunks/16ad724tleody.js +13 -0
  378. package/out/_next/static/chunks/16r_t7quts1w0.js +289 -0
  379. package/out/_next/static/chunks/16yomp2b55xod.js +30 -0
  380. package/out/_next/static/chunks/17jd_42ijblk-.js +15 -0
  381. package/out/_next/static/chunks/17xseq9yxu638.js +1 -0
  382. package/out/_next/static/chunks/18yznjdgjug5c.js +7 -0
  383. package/out/_next/static/chunks/19i-cq0_2t00g.js +60 -0
  384. package/out/_next/static/chunks/19ppkss30jscq.js +13 -0
  385. package/out/_next/static/chunks/1_ov-8bomgh6c.js +54 -0
  386. package/out/_next/static/chunks/1b9l0n8vz64x7.js +233 -0
  387. package/out/_next/static/chunks/1cn3pe6lxja9e.js +44 -0
  388. package/out/_next/static/chunks/1dsjo02ozub3p.js +342 -0
  389. package/out/_next/static/chunks/1dut2ep8qfdv4.js +14 -0
  390. package/out/_next/static/chunks/1eqs_86cqpxcx.js +138 -0
  391. package/out/_next/static/chunks/1exlzd6w18o_b.js +8 -0
  392. package/out/_next/static/chunks/1f04wea7zvjf5.js +2 -0
  393. package/out/_next/static/chunks/1fqsykinbg1d_.js +12 -0
  394. package/out/_next/static/chunks/1g5l7e7du4p25.js +1 -0
  395. package/out/_next/static/chunks/1hokoliuqn63p.js +17 -0
  396. package/out/_next/static/chunks/1ihjqvn68cj5e.js +36 -0
  397. package/out/_next/static/chunks/1k798vpov34v6.js +12 -0
  398. package/out/_next/static/chunks/1lewut00m9sq1.js +1 -0
  399. package/out/_next/static/chunks/1lwiflo8v2d93.js +1 -0
  400. package/out/_next/static/chunks/1ng9tsm1f8e_a.js +1 -0
  401. package/out/_next/static/chunks/1nvy3y5qe_igv.js +233 -0
  402. package/out/_next/static/chunks/1osrrozfse5jn.js +190 -0
  403. package/out/_next/static/chunks/1ozaatz-b_-as.js +41 -0
  404. package/out/_next/static/chunks/1paq5rkj25r88.js +1 -0
  405. package/out/_next/static/chunks/1q2l02eq094zc.js +147 -0
  406. package/out/_next/static/chunks/1q8zx2rmluekr.js +13 -0
  407. package/out/_next/static/chunks/1qnuk3631sd6i.js +807 -0
  408. package/out/_next/static/chunks/1r0aluuzu5vw7.js +13 -0
  409. package/out/_next/static/chunks/1rgwj4dr0k4_b.js +5 -0
  410. package/out/_next/static/chunks/1sgv26vi42stl.js +13 -0
  411. package/out/_next/static/chunks/1t80pe40g73fh.js +82 -0
  412. package/out/_next/static/chunks/1u6jfjnf14knz.js +124 -0
  413. package/out/_next/static/chunks/1vnvinjvn78t3.js +1 -0
  414. package/out/_next/static/chunks/1xg3ey2rrdxfx.js +1 -0
  415. package/out/_next/static/chunks/1xx6ie3yh2hbk.js +235 -0
  416. package/out/_next/static/chunks/1y-vwb0-v5xv0.js +304 -0
  417. package/out/_next/static/chunks/2-8-i_m-82mjh.js +43 -0
  418. package/out/_next/static/chunks/2-s6g5_cyahx8.js +1 -0
  419. package/out/_next/static/chunks/20ndjd4r5l6vk.js +1 -0
  420. package/out/_next/static/chunks/20v019mj-zi94.js +13 -0
  421. package/out/_next/static/chunks/21w-hkh4_w1kl.js +19 -0
  422. package/out/_next/static/chunks/226ya3lbz_55w.js +19 -0
  423. package/out/_next/static/chunks/22az81pi-bqjb.js +1 -0
  424. package/out/_next/static/chunks/22get2_2lcba-.js +21 -0
  425. package/out/_next/static/chunks/22l-2aehes9lx.js +153 -0
  426. package/out/_next/static/chunks/23y9nin7qo-xy.js +17 -0
  427. package/out/_next/static/chunks/25t23h8zbmzh-.js +12 -0
  428. package/out/_next/static/chunks/273zh05aw6uz2.js +13 -0
  429. package/out/_next/static/chunks/28o-5560g4bwk.js +7 -0
  430. package/out/_next/static/chunks/28zahy_uqar2t.js +12 -0
  431. package/out/_next/static/chunks/29dylunjhn4te.js +34 -0
  432. package/out/_next/static/chunks/2_3qu55ddb4jo.js +3 -0
  433. package/out/_next/static/chunks/2_7z1veshuiiw.js +10 -0
  434. package/out/_next/static/chunks/2_ztj391g9yzt.js +226 -0
  435. package/out/_next/static/chunks/2a9z_gm1vn39c.js +173 -0
  436. package/out/_next/static/chunks/2a_46b7_7ml_y.js +1 -0
  437. package/out/_next/static/chunks/2b8nhs_3rpawc.js +1 -0
  438. package/out/_next/static/chunks/2biyd1hzgc2sv.js +339 -0
  439. package/out/_next/static/chunks/2c2vssolfspzg.js +50 -0
  440. package/out/_next/static/chunks/2dbrybnhe5thu.css +1 -0
  441. package/out/_next/static/chunks/2diqy5aehqe8j.js +58 -0
  442. package/out/_next/static/chunks/2djnsowjy3p8y.js +1 -0
  443. package/out/_next/static/chunks/2dq4d-ey-16cq.js +1 -0
  444. package/out/_next/static/chunks/2dyysegkbptw8.js +11 -0
  445. package/out/_next/static/chunks/2ei1rfxsl3q65.js +31 -0
  446. package/out/_next/static/chunks/2fazxtc5_9tgo.js +52 -0
  447. package/out/_next/static/chunks/2fzc9bsweg7nf.js +807 -0
  448. package/out/_next/static/chunks/2h5-bnhry6wzl.js +14 -0
  449. package/out/_next/static/chunks/2hmtn1okhj6zz.js +234 -0
  450. package/out/_next/static/chunks/2htrbj6g7da-e.js +12 -0
  451. package/out/_next/static/chunks/2j0apwnxuaeox.js +14 -0
  452. package/out/_next/static/chunks/2j51l4ukmrn7j.js +17 -0
  453. package/out/_next/static/chunks/2k4cusvrm93cp.js +39 -0
  454. package/out/_next/static/chunks/2ldks6pel2wcp.js +31 -0
  455. package/out/_next/static/chunks/2loz6t7f69t0c.js +1 -0
  456. package/out/_next/static/chunks/2onfts3kpe9d8.js +1 -0
  457. package/out/_next/static/chunks/2p9aozkdq_z13.js +329 -0
  458. package/out/_next/static/chunks/2pz2u5us_0jme.js +5 -0
  459. package/out/_next/static/chunks/2qaf44ypuy_4z.js +1 -0
  460. package/out/_next/static/chunks/2r1-eyf6hic-m.js +1 -0
  461. package/out/_next/static/chunks/2ritd1boot22-.js +32 -0
  462. package/out/_next/static/chunks/2s1__k407zn6n.js +1 -0
  463. package/out/_next/static/chunks/2s6qkrjh7-b6s.js +1 -0
  464. package/out/_next/static/chunks/2t70ji9pnllxh.js +81 -0
  465. package/out/_next/static/chunks/2tc6lgajxmo78.js +3 -0
  466. package/out/_next/static/chunks/2twd9trj9horc.js +61 -0
  467. package/out/_next/static/chunks/2ua7-skz9vm4r.js +13 -0
  468. package/out/_next/static/chunks/2vjkcd8g_hh68.js +46 -0
  469. package/out/_next/static/chunks/2w1twpn4nui6h.js +807 -0
  470. package/out/_next/static/chunks/2x4vo24qfe0mr.js +1 -0
  471. package/out/_next/static/chunks/2zm-d0-e0sxgo.js +23 -0
  472. package/out/_next/static/chunks/3-u1dp82vzyt9.js +1 -0
  473. package/out/_next/static/chunks/30iz3jszdu04d.js +11 -0
  474. package/out/_next/static/chunks/30jmh-3cp5wcg.js +12 -0
  475. package/out/_next/static/chunks/3178a_a_i-e-q.js +16 -0
  476. package/out/_next/static/chunks/317qzy7r8meg_.js +1 -0
  477. package/out/_next/static/chunks/32nwqfli0ne57.js +1 -0
  478. package/out/_next/static/chunks/33c-rzkj2k2v1.js +14 -0
  479. package/out/_next/static/chunks/33g91_yljnpiw.js +807 -0
  480. package/out/_next/static/chunks/34dhtdp_8idgm.js +658 -0
  481. package/out/_next/static/chunks/34ybf-w3bdlw8.js +13 -0
  482. package/out/_next/static/chunks/35-vqjhcep-zw.js +60 -0
  483. package/out/_next/static/chunks/358r9pdxbk-fv.js +39 -0
  484. package/out/_next/static/chunks/35a6ymsh4q0-o.js +14 -0
  485. package/out/_next/static/chunks/36yrxjq9zbvpx.js +13 -0
  486. package/out/_next/static/chunks/377ho63k7qphg.js +14 -0
  487. package/out/_next/static/chunks/37bs69urhjdz5.js +24 -0
  488. package/out/_next/static/chunks/37mpnb5qztb_g.js +15 -0
  489. package/out/_next/static/chunks/3827hqe9_anr7.js +24 -0
  490. package/out/_next/static/chunks/3a0_vzfa54k35.js +7 -0
  491. package/out/_next/static/chunks/3a8a8fpl7-ndf.js +1 -0
  492. package/out/_next/static/chunks/3b6hct2rk2wu9.js +24 -0
  493. package/out/_next/static/chunks/3czsj6bdmobbd.js +24 -0
  494. package/out/_next/static/chunks/3d0ic2ovyeue7.js +2 -0
  495. package/out/_next/static/chunks/3eq1b2m2xkkmp.js +1 -0
  496. package/out/_next/static/chunks/3f2ue6ut-mwka.js +2 -0
  497. package/out/_next/static/chunks/3g67xtrp0vv4m.js +1 -0
  498. package/out/_next/static/chunks/3iepyd4rzl-tt.js +13 -0
  499. package/out/_next/static/chunks/3j6p-522fcsnj.js +1 -0
  500. package/out/_next/static/chunks/3kle_yukf5aux.js +809 -0
  501. package/out/_next/static/chunks/3l_nx7eopgh02.js +1 -0
  502. package/out/_next/static/chunks/3mk-cv2ocv93u.js +50 -0
  503. package/out/_next/static/chunks/3n5290qcigwpc.js +13 -0
  504. package/out/_next/static/chunks/3nl02jbknvx4p.js +14 -0
  505. package/out/_next/static/chunks/3o5a5qn0dnq04.js +3 -0
  506. package/out/_next/static/chunks/3o5kwvdgt_t9z.js +73 -0
  507. package/out/_next/static/chunks/3qamj8gt1ijdz.js +12 -0
  508. package/out/_next/static/chunks/3rlrwz262rpw0.js +1 -0
  509. package/out/_next/static/chunks/3s3v9n_ob4m24.js +18 -0
  510. package/out/_next/static/chunks/3s47qr8fn6h4j.js +8 -0
  511. package/out/_next/static/chunks/3slzhmkeoggpm.js +66 -0
  512. package/out/_next/static/chunks/3tv9csz53av-5.js +1 -0
  513. package/out/_next/static/chunks/3uec1_7irpl71.js +16 -0
  514. package/out/_next/static/chunks/3uo1w1gaj7tsx.js +117 -0
  515. package/out/_next/static/chunks/3uwev5xyub_j1.js +7 -0
  516. package/out/_next/static/chunks/3w450c1xmh550.js +12 -0
  517. package/out/_next/static/chunks/3x8aami6-3l79.js +31 -0
  518. package/out/_next/static/chunks/3xhogi6_bbwh7.js +10 -0
  519. package/out/_next/static/chunks/3y62dz45ticve.js +1 -0
  520. package/out/_next/static/chunks/3yjzk_udmhv3i.js +1 -0
  521. package/out/_next/static/chunks/3z6v84zof80bt.js +1 -0
  522. package/out/_next/static/chunks/3zncjth-kop8p.js +1 -0
  523. package/out/_next/static/chunks/3zp4iedgev460.js +35 -0
  524. package/out/_next/static/chunks/413qu_x6yky1e.js +1 -0
  525. package/out/_next/static/chunks/41j8mb2ztwydi.js +14 -0
  526. package/out/_next/static/chunks/41pc5_e25bhgd.js +1 -0
  527. package/out/_next/static/chunks/424z-zudpy3n0.js +39 -0
  528. package/out/_next/static/chunks/42o6t6-v2qi37.js +29 -0
  529. package/out/_next/static/chunks/434iz38padke2.js +1 -0
  530. package/out/_next/static/chunks/43pb7hjetp965.js +1 -0
  531. package/out/_next/static/chunks/44rharl5hvsw-.js +22 -0
  532. package/out/_next/static/chunks/45ac68ug7hcoc.js +13 -0
  533. package/out/_next/static/chunks/turbopack-0-chqajqgydnn.js +1 -0
  534. package/out/_next/static/chunks/turbopack-0-jquaej6q4cd.js +1 -0
  535. package/out/_next/static/chunks/turbopack-01y_6kjoo1mvp.js +1 -0
  536. package/out/_next/static/chunks/turbopack-03_sghcquhw33.js +1 -0
  537. package/out/_next/static/chunks/turbopack-0a_5nw_3znl2r.js +1 -0
  538. package/out/_next/static/chunks/turbopack-0bbgz21dy5lm3.js +1 -0
  539. package/out/_next/static/chunks/turbopack-0cqzo60ry70im.js +1 -0
  540. package/out/_next/static/chunks/turbopack-0ex-kw1o5k02z.js +1 -0
  541. package/out/_next/static/chunks/turbopack-0g9gjb70ob0rb.js +1 -0
  542. package/out/_next/static/chunks/turbopack-0jzps1g34dah5.js +1 -0
  543. package/out/_next/static/chunks/turbopack-0o9rz5e94nq66.js +1 -0
  544. package/out/_next/static/chunks/turbopack-0rq3y47awgwpt.js +1 -0
  545. package/out/_next/static/chunks/turbopack-0vs4-gjxe552i.js +1 -0
  546. package/out/_next/static/chunks/turbopack-0x1jwahqhzo0u.js +1 -0
  547. package/out/_next/static/chunks/turbopack-13uretb6lcje8.js +1 -0
  548. package/out/_next/static/chunks/turbopack-14n2u99h724y-.js +1 -0
  549. package/out/_next/static/chunks/turbopack-1a774_gjam74t.js +1 -0
  550. package/out/_next/static/chunks/turbopack-1gy8illqlm_jj.js +1 -0
  551. package/out/_next/static/chunks/turbopack-1n9q29j854ltr.js +1 -0
  552. package/out/_next/static/chunks/turbopack-1nathpz4-f-4w.js +1 -0
  553. package/out/_next/static/chunks/turbopack-1nca86oa17qfx.js +1 -0
  554. package/out/_next/static/chunks/turbopack-1qe0zbu9fejdb.js +1 -0
  555. package/out/_next/static/chunks/turbopack-1qg26rdmwlotw.js +1 -0
  556. package/out/_next/static/chunks/turbopack-1u6lf-rzbdjuj.js +1 -0
  557. package/out/_next/static/chunks/turbopack-1z85kwwdibjh7.js +1 -0
  558. package/out/_next/static/chunks/turbopack-22as-nh7md98p.js +1 -0
  559. package/out/_next/static/chunks/turbopack-23lcv-araye0t.js +1 -0
  560. package/out/_next/static/chunks/turbopack-25gt3vwmogps-.js +1 -0
  561. package/out/_next/static/chunks/turbopack-26g97kfge67jz.js +1 -0
  562. package/out/_next/static/chunks/turbopack-26u67kbn41n8e.js +1 -0
  563. package/out/_next/static/chunks/turbopack-280jnadydykur.js +1 -0
  564. package/out/_next/static/chunks/turbopack-2bb6lvvhg6e0w.js +1 -0
  565. package/out/_next/static/chunks/turbopack-2bw5gluonepob.js +1 -0
  566. package/out/_next/static/chunks/turbopack-2c36n939jg0pf.js +1 -0
  567. package/out/_next/static/chunks/turbopack-2ez296aoalbog.js +1 -0
  568. package/out/_next/static/chunks/turbopack-2frqnl7lfn0h9.js +1 -0
  569. package/out/_next/static/chunks/turbopack-2jxkmyhbvdw4u.js +1 -0
  570. package/out/_next/static/chunks/turbopack-2k45z490u3tbj.js +1 -0
  571. package/out/_next/static/chunks/turbopack-2p-uq1erkf03-.js +1 -0
  572. package/out/_next/static/chunks/turbopack-2svkg0yvgyw3_.js +1 -0
  573. package/out/_next/static/chunks/turbopack-31s1c5ipeb5_p.js +1 -0
  574. package/out/_next/static/chunks/turbopack-33v049epa0erx.js +1 -0
  575. package/out/_next/static/chunks/turbopack-34jylrj_qw1ak.js +1 -0
  576. package/out/_next/static/chunks/turbopack-34u-t26ngu-oy.js +1 -0
  577. package/out/_next/static/chunks/turbopack-34x5gar31d5sv.js +1 -0
  578. package/out/_next/static/chunks/turbopack-363g_e-jzg5u_.js +1 -0
  579. package/out/_next/static/chunks/turbopack-39um5sy1v-bvw.js +1 -0
  580. package/out/_next/static/chunks/turbopack-3__2i-6jdv1s8.js +1 -0
  581. package/out/_next/static/chunks/turbopack-3b4s935ks8u-b.js +1 -0
  582. package/out/_next/static/chunks/turbopack-3b5-pdmr324f-.js +1 -0
  583. package/out/_next/static/chunks/turbopack-3bwm37xq99e4l.js +1 -0
  584. package/out/_next/static/chunks/turbopack-3ec8ol5n3kb0h.js +1 -0
  585. package/out/_next/static/chunks/turbopack-3gw7smd4lo5ud.js +1 -0
  586. package/out/_next/static/chunks/turbopack-3miy8-7wxcnbn.js +1 -0
  587. package/out/_next/static/chunks/turbopack-3nvjaj1vijowz.js +1 -0
  588. package/out/_next/static/chunks/turbopack-3poc67i76-q8q.js +1 -0
  589. package/out/_next/static/chunks/turbopack-3r1pnr94s1u0w.js +1 -0
  590. package/out/_next/static/chunks/turbopack-3sfa4031m280j.js +1 -0
  591. package/out/_next/static/chunks/turbopack-3sqs5hm2xhl3s.js +1 -0
  592. package/out/_next/static/chunks/turbopack-3xha6pmjqez6d.js +1 -0
  593. package/out/_next/static/chunks/turbopack-3yp7pgp42yfh3.js +1 -0
  594. package/out/_next/static/chunks/turbopack-3z_g6t7o2z7rb.js +1 -0
  595. package/out/_next/static/chunks/turbopack-3zb947kjm56zb.js +1 -0
  596. package/out/_next/static/chunks/turbopack-43m6wi0fybh1f.js +1 -0
  597. package/out/_next/static/mgojmR_4GNqJNutDR9oFi/_buildManifest.js +262 -0
  598. package/out/_offline/index.html +2 -2
  599. package/out/account/forgot-password/index.html +2 -2
  600. package/out/account/index.html +2 -2
  601. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  602. package/out/assortments/index.html +2 -2
  603. package/out/assortments/new/index.html +2 -2
  604. package/out/copilot/index.html +2 -2
  605. package/out/country/CountryDetailPage/index.html +2 -2
  606. package/out/country/index.html +2 -2
  607. package/out/country/new/index.html +2 -2
  608. package/out/currency/CurrencyDetailPage/index.html +2 -2
  609. package/out/currency/index.html +2 -2
  610. package/out/currency/new/index.html +2 -2
  611. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  612. package/out/delivery-provider/index.html +2 -2
  613. package/out/delivery-provider/new/index.html +2 -2
  614. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  615. package/out/enrollments/index.html +2 -2
  616. package/out/events/EventDetailPage/index.html +2 -2
  617. package/out/events/index.html +2 -2
  618. package/out/exports/index.html +2 -2
  619. package/out/ext/[[...slug]]/index.html +11 -0
  620. package/out/external/index.html +2 -2
  621. package/out/filters/FilterDetailPage/index.html +2 -2
  622. package/out/filters/index.html +2 -2
  623. package/out/filters/new/index.html +2 -2
  624. package/out/index.html +2 -2
  625. package/out/install/index.html +2 -2
  626. package/out/language/LanguageDetailPage/index.html +2 -2
  627. package/out/language/index.html +2 -2
  628. package/out/language/new/index.html +2 -2
  629. package/out/log-in/index.html +2 -2
  630. package/out/orders/OrderDetailPage/index.html +2 -2
  631. package/out/orders/index.html +2 -2
  632. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  633. package/out/payment-provider/index.html +2 -2
  634. package/out/payment-provider/new/index.html +2 -2
  635. package/out/products/ProductDetailPage/index.html +2 -2
  636. package/out/products/index.html +2 -2
  637. package/out/products/new/index.html +2 -2
  638. package/out/quotations/QuotationDetailPage/index.html +2 -2
  639. package/out/quotations/index.html +2 -2
  640. package/out/reset-password/index.html +2 -2
  641. package/out/sign-up/index.html +2 -2
  642. package/out/styleguide/index.html +2 -2
  643. package/out/tokens/TokenDetailPage/index.html +2 -2
  644. package/out/tokens/index.html +2 -2
  645. package/out/users/UserDetailPage/index.html +2 -2
  646. package/out/users/index.html +2 -2
  647. package/out/users/new/index.html +2 -2
  648. package/out/verify-email/index.html +2 -2
  649. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  650. package/out/warehousing-provider/index.html +2 -2
  651. package/out/warehousing-provider/new/index.html +2 -2
  652. package/out/works/WorkDetailPage/index.html +2 -2
  653. package/out/works/WorkQueueListView/index.html +2 -2
  654. package/out/works/index.html +2 -2
  655. package/out/works/management/index.html +2 -2
  656. package/package.json +104 -14
  657. package/src/modules/accounts/index.ts +34 -0
  658. package/src/modules/assortment/index.ts +29 -0
  659. package/src/modules/copilot/index.ts +4 -0
  660. package/src/modules/country/index.ts +5 -0
  661. package/src/modules/currency/index.ts +5 -0
  662. package/src/modules/delivery-provider/index.ts +7 -0
  663. package/src/modules/enrollment/index.ts +6 -0
  664. package/src/modules/event/index.ts +3 -0
  665. package/src/modules/filter/index.ts +13 -0
  666. package/src/modules/language/index.ts +5 -0
  667. package/src/modules/order/index.ts +8 -0
  668. package/src/modules/payment-providers/index.ts +7 -0
  669. package/src/modules/product/index.ts +47 -0
  670. package/src/modules/product-review/index.ts +6 -0
  671. package/src/modules/quotation/index.ts +6 -0
  672. package/src/modules/token/index.ts +3 -0
  673. package/src/modules/warehousing-providers/index.ts +7 -0
  674. package/src/modules/work/index.ts +7 -0
  675. package/src/sdk/hooks.ts +11 -0
  676. package/src/sdk/modal.ts +6 -0
  677. package/src/sdk/plugin-build.mjs +112 -0
  678. package/src/sdk/plugin-build.test.mjs +11 -0
  679. package/src/sdk/plugins.ts +88 -0
  680. package/src/sdk/providers.ts +4 -0
  681. package/src/sdk/tailwind-preset.mjs +94 -0
  682. package/src/sdk/theme.ts +61 -0
  683. package/src/styles/globals.css +291 -0
  684. package/out/_next/static/NCD-SJ8yCV0Afw8rFopK9/_buildManifest.js +0 -258
  685. package/out/_next/static/chunks/0-beu4vu82jrh.js +0 -1
  686. package/out/_next/static/chunks/0-bq_~1lrxscv.js +0 -1
  687. package/out/_next/static/chunks/0-gs6rs8.en66.js +0 -807
  688. package/out/_next/static/chunks/0.4qfzuvwzsxc.js +0 -346
  689. package/out/_next/static/chunks/0.ezy3xvxrqcc.js +0 -15
  690. package/out/_next/static/chunks/0.i9a933lfo25.js +0 -110
  691. package/out/_next/static/chunks/0.qv4h3l4v.mz.js +0 -807
  692. package/out/_next/static/chunks/00-1l-sb67jn-.js +0 -807
  693. package/out/_next/static/chunks/0063j04yfdol-.js +0 -13
  694. package/out/_next/static/chunks/006d2uxhsngs-.js +0 -1
  695. package/out/_next/static/chunks/00d66~in48qe1.js +0 -108
  696. package/out/_next/static/chunks/00u_9mz-xfmbu.js +0 -119
  697. package/out/_next/static/chunks/00ysn67q-k.lf.js +0 -384
  698. package/out/_next/static/chunks/00z8y5zmd5ley.js +0 -16
  699. package/out/_next/static/chunks/01.ug0e_hak5n.js +0 -31
  700. package/out/_next/static/chunks/01755gvyv1u4p.js +0 -342
  701. package/out/_next/static/chunks/024hggxa5rlsk.js +0 -16
  702. package/out/_next/static/chunks/025rs.6-.kttm.js +0 -177
  703. package/out/_next/static/chunks/029met6o9c69_.js +0 -132
  704. package/out/_next/static/chunks/035ijcwfe128..js +0 -13
  705. package/out/_next/static/chunks/039.n12k.ourz.js +0 -1
  706. package/out/_next/static/chunks/039laq217w5af.js +0 -1
  707. package/out/_next/static/chunks/03awhk2amfyg9.js +0 -13
  708. package/out/_next/static/chunks/03b6o0yl3wq69.js +0 -324
  709. package/out/_next/static/chunks/03exf~-d8n0~p.js +0 -12
  710. package/out/_next/static/chunks/043qhigp~b~xd.js +0 -288
  711. package/out/_next/static/chunks/047b32b2zk0zr.js +0 -50
  712. package/out/_next/static/chunks/04ljxsi4h8opa.js +0 -3
  713. package/out/_next/static/chunks/05-wy9wkovd44.js +0 -66
  714. package/out/_next/static/chunks/059j6ba8pjbxt.js +0 -2
  715. package/out/_next/static/chunks/05c669_6-rcl4.js +0 -15
  716. package/out/_next/static/chunks/05ebn-rbx77t1.js +0 -1
  717. package/out/_next/static/chunks/05ijoypg9erzj.js +0 -15
  718. package/out/_next/static/chunks/05mdbs7fsyl0j.js +0 -15
  719. package/out/_next/static/chunks/05xkbw-s9zm4v.js +0 -1
  720. package/out/_next/static/chunks/05y5i1xi9l7xo.js +0 -46
  721. package/out/_next/static/chunks/06jxo~w32bob0.js +0 -14
  722. package/out/_next/static/chunks/06l-x0hfnht~9.js +0 -12
  723. package/out/_next/static/chunks/06rpbu900ohev.js +0 -807
  724. package/out/_next/static/chunks/06wxd~64yev29.js +0 -1
  725. package/out/_next/static/chunks/074t2kkalxoor.js +0 -54
  726. package/out/_next/static/chunks/0757.exyqs35o.js +0 -1
  727. package/out/_next/static/chunks/07bj_95mgrfr7.js +0 -81
  728. package/out/_next/static/chunks/07e9hvcn2m7m0.css +0 -1
  729. package/out/_next/static/chunks/07gsr_4x3t83l.js +0 -1
  730. package/out/_next/static/chunks/07m0kcby2q9_3.js +0 -119
  731. package/out/_next/static/chunks/07rosayyue4dv.js +0 -5
  732. package/out/_next/static/chunks/07vc0lr9~n374.js +0 -807
  733. package/out/_next/static/chunks/07we~tcuuf587.js +0 -1
  734. package/out/_next/static/chunks/08-e12375gky7.js +0 -1
  735. package/out/_next/static/chunks/08g5cr0k-wewy.js +0 -13
  736. package/out/_next/static/chunks/08gnfg~ucaonj.js +0 -31
  737. package/out/_next/static/chunks/08l8.c5-zq8l_.js +0 -13
  738. package/out/_next/static/chunks/08s08655wboxs.js +0 -224
  739. package/out/_next/static/chunks/08ubwqxtv1pi8.js +0 -471
  740. package/out/_next/static/chunks/093du9_a7j~e9.js +0 -22
  741. package/out/_next/static/chunks/09ar00gwggnv2.js +0 -92
  742. package/out/_next/static/chunks/09ew07.pd~qmo.js +0 -31
  743. package/out/_next/static/chunks/09h16th.ukf49.js +0 -9
  744. package/out/_next/static/chunks/09i.iewg619r8.js +0 -1
  745. package/out/_next/static/chunks/09ird980jk5l4.js +0 -1
  746. package/out/_next/static/chunks/09ti6--w-81qk.js +0 -12
  747. package/out/_next/static/chunks/0_.rynghl8eid.js +0 -16
  748. package/out/_next/static/chunks/0_fjllta7r.pd.js +0 -1
  749. package/out/_next/static/chunks/0_hapi9~w_m74.js +0 -807
  750. package/out/_next/static/chunks/0_rymam7ts5h_.js +0 -61
  751. package/out/_next/static/chunks/0_tmrtwx_w001.js +0 -1
  752. package/out/_next/static/chunks/0_wmd30ovkohg.js +0 -14
  753. package/out/_next/static/chunks/0a4iuso54enw6.js +0 -43
  754. package/out/_next/static/chunks/0a9xn3eyi55p7.js +0 -807
  755. package/out/_next/static/chunks/0ab-_zb.d-ta~.js +0 -13
  756. package/out/_next/static/chunks/0agmcim_ow38h.js +0 -41
  757. package/out/_next/static/chunks/0ah_xk7gumihc.js +0 -10
  758. package/out/_next/static/chunks/0al9fetggpofs.js +0 -101
  759. package/out/_next/static/chunks/0apih1f_pg7x5.js +0 -22
  760. package/out/_next/static/chunks/0aqef_pw6d4-x.js +0 -12
  761. package/out/_next/static/chunks/0av.mpk52l~sj.js +0 -78
  762. package/out/_next/static/chunks/0b26w_2v.jnnp.js +0 -23
  763. package/out/_next/static/chunks/0bgpq4k~.1ow~.js +0 -1
  764. package/out/_next/static/chunks/0b~~k586vhgzn.js +0 -22
  765. package/out/_next/static/chunks/0c1ohyu0~45-6.js +0 -16
  766. package/out/_next/static/chunks/0c6zpdc5tnyit.js +0 -14
  767. package/out/_next/static/chunks/0cxr_f9owlixa.js +0 -147
  768. package/out/_next/static/chunks/0d4_~230qii9x.js +0 -8
  769. package/out/_next/static/chunks/0d7ng.3g0fqyq.js +0 -14
  770. package/out/_next/static/chunks/0dgzbrz_ks6y3.js +0 -836
  771. package/out/_next/static/chunks/0dmlsqy.34z7l.js +0 -5
  772. package/out/_next/static/chunks/0d~mpqdnsqc_3.js +0 -217
  773. package/out/_next/static/chunks/0e.ov59u.i2g..js +0 -26
  774. package/out/_next/static/chunks/0e7j7~xp-kfcl.js +0 -1
  775. package/out/_next/static/chunks/0eshxr9tyc-ob.js +0 -1
  776. package/out/_next/static/chunks/0eyuawigvkque.js +0 -144
  777. package/out/_next/static/chunks/0f0p~b_1z06f-.js +0 -12
  778. package/out/_next/static/chunks/0f1vh2kuipe~w.js +0 -1
  779. package/out/_next/static/chunks/0f2lcm2fvm0o4.js +0 -15
  780. package/out/_next/static/chunks/0f5-n-rcb1ksy.js +0 -61
  781. package/out/_next/static/chunks/0f7rfo-9v~6ta.js +0 -16
  782. package/out/_next/static/chunks/0fadm_h6dqral.js +0 -1
  783. package/out/_next/static/chunks/0fgje3pp6kr-..js +0 -21
  784. package/out/_next/static/chunks/0fixfg1.spty7.js +0 -8
  785. package/out/_next/static/chunks/0fo857sizpzb..js +0 -14
  786. package/out/_next/static/chunks/0fpmn5~h1l5fy.js +0 -51
  787. package/out/_next/static/chunks/0fzx56yu8w89-.js +0 -1
  788. package/out/_next/static/chunks/0g5.zeq8z86p8.js +0 -22
  789. package/out/_next/static/chunks/0gcrw01taxxl6.js +0 -1
  790. package/out/_next/static/chunks/0hprhos6ompyh.js +0 -1
  791. package/out/_next/static/chunks/0hv.16xst798a.js +0 -807
  792. package/out/_next/static/chunks/0i67~d9m79069.js +0 -1
  793. package/out/_next/static/chunks/0i9ujbll13rjg.js +0 -7
  794. package/out/_next/static/chunks/0ixp-hqnt2hdk.js +0 -188
  795. package/out/_next/static/chunks/0j3_ll.umtrlh.js +0 -15
  796. package/out/_next/static/chunks/0j8_vntnh3wh1.js +0 -384
  797. package/out/_next/static/chunks/0jcl.bguz9-il.js +0 -173
  798. package/out/_next/static/chunks/0jhfv_wn9s6x1.js +0 -1
  799. package/out/_next/static/chunks/0jthyhkkkajye.js +0 -87
  800. package/out/_next/static/chunks/0jyfzjlxmkv47.js +0 -1
  801. package/out/_next/static/chunks/0k33b3l3swmdp.js +0 -14
  802. package/out/_next/static/chunks/0k8cqr5rpupnp.js +0 -12
  803. package/out/_next/static/chunks/0kacoozv1plky.js +0 -12
  804. package/out/_next/static/chunks/0kb8vq-u9e5ie.js +0 -596
  805. package/out/_next/static/chunks/0kpfj.1wbd8ym.js +0 -200
  806. package/out/_next/static/chunks/0kws6.oh9adj9.js +0 -14
  807. package/out/_next/static/chunks/0l6-vjb..0-s7.js +0 -286
  808. package/out/_next/static/chunks/0l8ujxmk7702g.js +0 -1
  809. package/out/_next/static/chunks/0lcd2so6jg-_l.js +0 -44
  810. package/out/_next/static/chunks/0lhvveiv7i555.js +0 -13
  811. package/out/_next/static/chunks/0lim3v66fnjbi.js +0 -73
  812. package/out/_next/static/chunks/0lj_~1h9s9o4p.js +0 -15
  813. package/out/_next/static/chunks/0m2jz56bm31rn.js +0 -13
  814. package/out/_next/static/chunks/0mw6751mia5o-.js +0 -13
  815. package/out/_next/static/chunks/0m~4npg.nbafl.js +0 -807
  816. package/out/_next/static/chunks/0nnrgfwlre~2w.js +0 -12
  817. package/out/_next/static/chunks/0nvdm-r7zmv-l.js +0 -1
  818. package/out/_next/static/chunks/0nyyy1v4911lw.js +0 -59
  819. package/out/_next/static/chunks/0o05daemjdhug.js +0 -227
  820. package/out/_next/static/chunks/0o6szwcbqvtk..js +0 -1
  821. package/out/_next/static/chunks/0oq1lazm-ypco.js +0 -15
  822. package/out/_next/static/chunks/0owfq70q4gv3g.js +0 -11
  823. package/out/_next/static/chunks/0o~ytet2snd7..js +0 -18
  824. package/out/_next/static/chunks/0pooq0ei74.fu.js +0 -17
  825. package/out/_next/static/chunks/0q92oiu-paus_.js +0 -1
  826. package/out/_next/static/chunks/0r.pkr~.dyugv.js +0 -137
  827. package/out/_next/static/chunks/0r.xn-_woklgt.js +0 -138
  828. package/out/_next/static/chunks/0r2eg~z0yxhkm.js +0 -384
  829. package/out/_next/static/chunks/0rf4yd5v399-n.js +0 -342
  830. package/out/_next/static/chunks/0s9gw8v77opep.js +0 -12
  831. package/out/_next/static/chunks/0sq1ba8siz_al.js +0 -46
  832. package/out/_next/static/chunks/0tgyufn7ieyma.js +0 -23
  833. package/out/_next/static/chunks/0tq-lptj3-s~9.js +0 -7
  834. package/out/_next/static/chunks/0tur4u0bq8afu.js +0 -1
  835. package/out/_next/static/chunks/0u.p7-5euvw9g.js +0 -101
  836. package/out/_next/static/chunks/0u0zlnx_0uuo~.js +0 -1
  837. package/out/_next/static/chunks/0ud072y3rsxuo.js +0 -26
  838. package/out/_next/static/chunks/0ueboweabxsm_.js +0 -12
  839. package/out/_next/static/chunks/0ulpot4q9efmn.js +0 -1
  840. package/out/_next/static/chunks/0up4o93erzv5i.js +0 -15
  841. package/out/_next/static/chunks/0uppdoxx035f~.js +0 -807
  842. package/out/_next/static/chunks/0v01e3xk0z2zz.js +0 -10
  843. package/out/_next/static/chunks/0v7odmyxhwxk9.js +0 -5
  844. package/out/_next/static/chunks/0vaop4ncta92i.js +0 -43
  845. package/out/_next/static/chunks/0vef8~~ul~q~3.js +0 -188
  846. package/out/_next/static/chunks/0vjviijon1cf_.js +0 -227
  847. package/out/_next/static/chunks/0vo3lqvc1gnao.js +0 -1
  848. package/out/_next/static/chunks/0vqde~70jg4mp.js +0 -13
  849. package/out/_next/static/chunks/0w_lpiygl_gbj.js +0 -51
  850. package/out/_next/static/chunks/0wm9vrqp0f2-g.js +0 -1
  851. package/out/_next/static/chunks/0wt4fkc59wtk~.js +0 -1
  852. package/out/_next/static/chunks/0x0ro0p0oede-.js +0 -1
  853. package/out/_next/static/chunks/0x5~rk9ckvkzm.js +0 -5
  854. package/out/_next/static/chunks/0xa.gldl0ypuc.js +0 -36
  855. package/out/_next/static/chunks/0xyz4eb8oj14e.js +0 -32
  856. package/out/_next/static/chunks/0x~m529wi_q8r.js +0 -807
  857. package/out/_next/static/chunks/0ygzo.kyf038-.js +0 -13
  858. package/out/_next/static/chunks/0z5_-ukry36hl.js +0 -905
  859. package/out/_next/static/chunks/0z69nmy7s-zha.js +0 -10
  860. package/out/_next/static/chunks/0zcy4ll048jyy.js +0 -13
  861. package/out/_next/static/chunks/0zpa9vt2u_r06.js +0 -14
  862. package/out/_next/static/chunks/0zsl0gp2-m_8s.js +0 -1
  863. package/out/_next/static/chunks/0zw1-wa39f8lg.js +0 -1
  864. package/out/_next/static/chunks/0z~lvtnl1p.em.js +0 -78
  865. package/out/_next/static/chunks/0~4r9ol9.3i_l.js +0 -46
  866. package/out/_next/static/chunks/0~4s5vi61p7ev.js +0 -291
  867. package/out/_next/static/chunks/0~6ud_t-945ch.js +0 -288
  868. package/out/_next/static/chunks/0~mh5ybxo9nf2.js +0 -19
  869. package/out/_next/static/chunks/0~zg_~~subg_x.js +0 -1
  870. package/out/_next/static/chunks/10.uqlra33~68.js +0 -13
  871. package/out/_next/static/chunks/10g0ipk~-ofy6.js +0 -20
  872. package/out/_next/static/chunks/10h4imeqlg217.js +0 -8
  873. package/out/_next/static/chunks/10jiudk1sj2jm.js +0 -14
  874. package/out/_next/static/chunks/10kcfk2uu1e6x.js +0 -73
  875. package/out/_next/static/chunks/10pv9vc9myzuy.js +0 -58
  876. package/out/_next/static/chunks/11d00p~.l1k_u.js +0 -8
  877. package/out/_next/static/chunks/11lx7_qu.04js.js +0 -596
  878. package/out/_next/static/chunks/11svm4d1gbpg3.js +0 -13
  879. package/out/_next/static/chunks/11xvbwibrxg70.js +0 -44
  880. package/out/_next/static/chunks/12_-fnbe.fpy3.js +0 -142
  881. package/out/_next/static/chunks/12_5sds1suvhm.js +0 -13
  882. package/out/_next/static/chunks/12eo~x2_f0n1c.js +0 -1
  883. package/out/_next/static/chunks/131o1ib1p4q0~.js +0 -807
  884. package/out/_next/static/chunks/13azvhnsuoq~i.js +0 -193
  885. package/out/_next/static/chunks/13qkehmx~~nca.js +0 -1
  886. package/out/_next/static/chunks/13xo605mvuvr..js +0 -137
  887. package/out/_next/static/chunks/14-js791sn0n..js +0 -90
  888. package/out/_next/static/chunks/149uwpe4mqt~4.js +0 -3
  889. package/out/_next/static/chunks/152e33k3zn_7h.js +0 -13
  890. package/out/_next/static/chunks/156o0mg9e~c1z.js +0 -135
  891. package/out/_next/static/chunks/15946_7~ym9mj.js +0 -1
  892. package/out/_next/static/chunks/15im3g6.ezb86.js +0 -16
  893. package/out/_next/static/chunks/167enz~evud8u.js +0 -1
  894. package/out/_next/static/chunks/16dxg.m0iyhff.js +0 -20
  895. package/out/_next/static/chunks/16e76-izprx_3.js +0 -60
  896. package/out/_next/static/chunks/17556jivokcgt.js +0 -13
  897. package/out/_next/static/chunks/17831iuhggap-.js +0 -5
  898. package/out/_next/static/chunks/17lq99ack-rqn.js +0 -7
  899. package/out/_next/static/chunks/1801hoawv7tvj.js +0 -209
  900. package/out/_next/static/chunks/turbopack-0-f1h~_vf~hgt.js +0 -1
  901. package/out/_next/static/chunks/turbopack-00gp6932c5-pc.js +0 -1
  902. package/out/_next/static/chunks/turbopack-00tplfce3sqmv.js +0 -1
  903. package/out/_next/static/chunks/turbopack-02xfqg-e5e5bq.js +0 -1
  904. package/out/_next/static/chunks/turbopack-033ew5zdp4sni.js +0 -1
  905. package/out/_next/static/chunks/turbopack-04ryg.qj6ce.e.js +0 -1
  906. package/out/_next/static/chunks/turbopack-05pr_j8b3qpck.js +0 -1
  907. package/out/_next/static/chunks/turbopack-05t73_ssb6_h5.js +0 -1
  908. package/out/_next/static/chunks/turbopack-06k1fv3edi.oc.js +0 -1
  909. package/out/_next/static/chunks/turbopack-06s9wk6xrnhe..js +0 -1
  910. package/out/_next/static/chunks/turbopack-07pf350usbyrn.js +0 -1
  911. package/out/_next/static/chunks/turbopack-07qx6il~q8zvj.js +0 -1
  912. package/out/_next/static/chunks/turbopack-093c3g8x0fud~.js +0 -1
  913. package/out/_next/static/chunks/turbopack-09mkh-~o1m0t4.js +0 -1
  914. package/out/_next/static/chunks/turbopack-0_6hyjgtzvvlt.js +0 -1
  915. package/out/_next/static/chunks/turbopack-0_jrb8zv4u-h5.js +0 -1
  916. package/out/_next/static/chunks/turbopack-0_z4clx8_mihg.js +0 -1
  917. package/out/_next/static/chunks/turbopack-0_~3azjxcbh7b.js +0 -1
  918. package/out/_next/static/chunks/turbopack-0acoq2sfyoi9y.js +0 -1
  919. package/out/_next/static/chunks/turbopack-0ce310hugu4ud.js +0 -1
  920. package/out/_next/static/chunks/turbopack-0cq29kq0j_4v~.js +0 -1
  921. package/out/_next/static/chunks/turbopack-0e-cncqz58fjt.js +0 -1
  922. package/out/_next/static/chunks/turbopack-0e2su8irrrxe9.js +0 -1
  923. package/out/_next/static/chunks/turbopack-0e8f.eohopo8i.js +0 -1
  924. package/out/_next/static/chunks/turbopack-0ek~cn8gmycju.js +0 -1
  925. package/out/_next/static/chunks/turbopack-0eywiuu9zzv~v.js +0 -1
  926. package/out/_next/static/chunks/turbopack-0ft2eo1uoq84f.js +0 -1
  927. package/out/_next/static/chunks/turbopack-0h0v60mhtl8e5.js +0 -1
  928. package/out/_next/static/chunks/turbopack-0hd7gd_hw0ffd.js +0 -1
  929. package/out/_next/static/chunks/turbopack-0ho~reia368_n.js +0 -1
  930. package/out/_next/static/chunks/turbopack-0hs67a4-408yr.js +0 -1
  931. package/out/_next/static/chunks/turbopack-0hzo_yuvuoq4p.js +0 -1
  932. package/out/_next/static/chunks/turbopack-0iqen9zbwhwwt.js +0 -1
  933. package/out/_next/static/chunks/turbopack-0lse_458kpvoc.js +0 -1
  934. package/out/_next/static/chunks/turbopack-0m802fcmg9zeo.js +0 -1
  935. package/out/_next/static/chunks/turbopack-0mh8jqpakiu6t.js +0 -1
  936. package/out/_next/static/chunks/turbopack-0n7uk~in3~kz5.js +0 -1
  937. package/out/_next/static/chunks/turbopack-0oq4yqp_mwlp8.js +0 -1
  938. package/out/_next/static/chunks/turbopack-0p8.m9z07pk0d.js +0 -1
  939. package/out/_next/static/chunks/turbopack-0q35m3rl2~7_w.js +0 -1
  940. package/out/_next/static/chunks/turbopack-0qj_d90z9-.xb.js +0 -1
  941. package/out/_next/static/chunks/turbopack-0rw3antw3c5q1.js +0 -1
  942. package/out/_next/static/chunks/turbopack-0s1w5b4s~tq0a.js +0 -1
  943. package/out/_next/static/chunks/turbopack-0s3brlp4-qpvy.js +0 -1
  944. package/out/_next/static/chunks/turbopack-0ssu8b8ns4wgj.js +0 -1
  945. package/out/_next/static/chunks/turbopack-0txlw7w4nbwom.js +0 -1
  946. package/out/_next/static/chunks/turbopack-0umaqu4ffby0g.js +0 -1
  947. package/out/_next/static/chunks/turbopack-0upagoxw-k-s-.js +0 -1
  948. package/out/_next/static/chunks/turbopack-0v97f616jctw_.js +0 -1
  949. package/out/_next/static/chunks/turbopack-0vborwvkaogp3.js +0 -1
  950. package/out/_next/static/chunks/turbopack-0vii195vc_rhx.js +0 -1
  951. package/out/_next/static/chunks/turbopack-0vy4m9hkmjj~..js +0 -1
  952. package/out/_next/static/chunks/turbopack-0wkwlz_hsol74.js +0 -1
  953. package/out/_next/static/chunks/turbopack-0w~j_hagmzb-9.js +0 -1
  954. package/out/_next/static/chunks/turbopack-0xe-7k8uoudaf.js +0 -1
  955. package/out/_next/static/chunks/turbopack-107_r~te8y84z.js +0 -1
  956. package/out/_next/static/chunks/turbopack-10m1bv2pqkdnu.js +0 -1
  957. package/out/_next/static/chunks/turbopack-11b3cci1vf3sv.js +0 -1
  958. package/out/_next/static/chunks/turbopack-11bncwch._hz4.js +0 -1
  959. package/out/_next/static/chunks/turbopack-11f~mh1t1pbfv.js +0 -1
  960. package/out/_next/static/chunks/turbopack-14fqn-ie4g30t.js +0 -1
  961. package/out/_next/static/chunks/turbopack-151-hh8klk1hk.js +0 -1
  962. package/out/_next/static/chunks/turbopack-16yza259goc47.js +0 -1
  963. package/out/admin-ui-permissions.js +0 -129
  964. /package/out/_next/static/chunks/{0a1flay6uksa2.js → 0wooaklx8_14q.js} +0 -0
  965. /package/out/_next/static/chunks/{0htfk2vj7m.9j.js → 1jqnrnw0p9tw5.js} +0 -0
  966. /package/out/_next/static/{NCD-SJ8yCV0Afw8rFopK9 → mgojmR_4GNqJNutDR9oFi}/_clientMiddlewareManifest.js +0 -0
  967. /package/out/_next/static/{NCD-SJ8yCV0Afw8rFopK9 → mgojmR_4GNqJNutDR9oFi}/_ssgManifest.js +0 -0
@@ -0,0 +1,289 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34728,e=>{"use strict";var t=e.i(91398),r=e.i(38322);e.s(["default",0,({onOkClick:e,buttonText:s,headerText:a,message:l,icon:i=null})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[i||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-emerald-100 dark:bg-emerald-900/30",children:(0,t.jsx)(r.CheckIcon,{className:"h-6 w-6 text-emerald-600 dark:text-emerald-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,t.jsx)("h3",{className:"text-lg text-text-primary",id:"modal-title",children:a}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-text-muted",children:l})})]})]}),(0,t.jsx)("div",{className:"mt-5 sm:mt-6",children:(0,t.jsx)("button",{id:"alert_ok",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-accent px-4 py-2 text-base font-medium text-text-on-accent shadow-xs hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 sm:text-sm",children:s})})]})])},13534,26539,e=>{"use strict";let t;var r=e.i(91398),s=e.i(91788),a=e.i(59080),l=e.i(32171),i=e.i(76204),d=e.i(24669),n=e.i(76810),o=e.i(91584),c=e.i(15953),u=e.i(93532);function m(){}var x=e.i(28775),f=e.i(50584),h=e.i(98926),p=e.i(32854);let g=["refetch","fetchMore","updateQuery","startPolling","stopPolling","subscribeToMore"],v=function(e,r){let a=(0,h.useApolloClient)(r?.client),l=s.useRef(void 0),i=s.useRef(void 0),n=(0,x.useDeepMemo)(()=>r,[r]),o=(t||(t=s.createContext(null)),s.useCallback(()=>{let e=console.error;try{return console.error=m,s.useContext(t),!0}catch(e){return!1}finally{console.error=e}},[]));function v(){return a.watchQuery({...r,query:e,initialFetchPolicy:r?.fetchPolicy,fetchPolicy:"standby",[c.variablesUnknownSymbol]:!0})}let[b,j]=s.useState(a),[N,_]=s.useState(v);b!==a&&(j(a),_(v()));let k=s.useCallback((e,t)=>{let r=i.current?.data;r&&!(0,d.equal)(r,e.data)&&(l.current=r),i.current=e,t()},[]),P=(0,p.useSyncExternalStore)(s.useCallback(e=>{let t=N.subscribe(t=>{(0,d.equal)(i.current,t)||k(t,e)});return()=>{t.unsubscribe()}},[N,k]),()=>i.current||y,()=>y),w=s.useMemo(()=>{let e={};for(let t of g)e[t]=function(...e){return(0,u.invariant)(i.current,29,t),N[t](...e)};return e},[N]);s.useEffect(()=>{let t={query:e,errorPolicy:n?.errorPolicy,refetchOn:n?.refetchOn,refetchWritePolicy:n?.refetchWritePolicy,returnPartialData:n?.returnPartialData,notifyOnNetworkStatusChange:n?.notifyOnNetworkStatusChange,pollInterval:n?.pollInterval,nextFetchPolicy:r?.nextFetchPolicy,skipPollAttempt:r?.skipPollAttempt};"standby"!==N.options.fetchPolicy&&n?.fetchPolicy&&(t.fetchPolicy=n.fetchPolicy),N.applyOptions(t)},[e,N,n,r?.nextFetchPolicy,r?.skipPollAttempt]);let C=s.useCallback((...e)=>{(0,u.invariant)(!o(),30);let[t]=e,r=N.options.fetchPolicy;return"standby"===r&&(r=N.options.initialFetchPolicy),N.reobserve({fetchPolicy:r,variables:t?.variables,context:t?.context??{}})},[N,o]),M=s.useRef(C);return(0,f.useIsomorphicLayoutEffect)(()=>{M.current=C}),[s.useCallback((...e)=>M.current(...e),[]),s.useMemo(()=>{let{partial:e,...t}=P;return{...w,...t,client:a,previousData:l.current,variables:N.variables,observable:N,called:!!i.current}},[a,P,w,N])]},y=(0,o.maybeDeepFreeze)({data:void 0,dataState:"empty",loading:!1,networkStatus:n.NetworkStatus.ready,partial:!0});var b=e.i(3828),j=e.i(69322),N=e.i(28401);let _=(0,s.createContext)(null),k=_.Provider,P=()=>{let e=(0,s.useContext)(_);if(!e)throw Error("usePluginRuntime must be used inside a plugin component rendered by PluginSlot");return e};e.s(["PluginRuntimeProvider",0,k,"usePluginRuntime",0,P],26539);let w=(0,s.createContext)({manifests:[],getComponent:()=>null,getSlotPlugins:()=>[],loading:!0});e.s(["PluginProvider",0,({children:e})=>{let[t,d]=(0,s.useState)([]),[n,o]=(0,s.useState)(new Map),[c,u]=(0,s.useState)(!0);return(0,s.useEffect)(()=>{window.__UNCHAINED_PLUGIN_DEPS__||(window.__UNCHAINED_PLUGINS__={},window.__UNCHAINED_PLUGIN_DEPS__={react:s.default,"react/jsx-runtime":r,"@apollo/client":{gql:a.gql,useQuery:l.useQuery,useMutation:i.useMutation,useLazyQuery:v,useApolloClient:h.useApolloClient},"@apollo/client/react":{useQuery:l.useQuery,useMutation:i.useMutation,useLazyQuery:v,useApolloClient:h.useApolloClient},"next/router":{useRouter:b.useRouter},"react-intl":{useIntl:j.useIntl,FormattedMessage:j.FormattedMessage,defineMessages:j.defineMessages},"react-toastify":{toast:N.toast},"@unchainedshop/admin-ui/plugins":{usePluginRuntime:P}});let e=[],t=!1;return(async()=>{try{let r=(()=>{try{return new URL("/graphql").origin}catch{return""}})(),s=await fetch(`${r}/admin-ui-plugins.json`,{cache:"no-cache"});if(!s.ok||t)return void u(!1);let a=await s.json();if(t)return;d(a);let l=new Map;await Promise.all(a.map(async t=>{try{let s,a=await (s=`${r}${t.bundleUrl}`,new Promise((e,t)=>{let r=document.createElement("script");r.src=s,r.onload=()=>e(r),r.onerror=()=>t(Error(`Failed to load script: ${s}`)),document.head.appendChild(r)}));e.push(a);let i=window.__UNCHAINED_PLUGINS__?.[t.name];i?l.set(t.name,i):console.error(`Plugin "${t.name}" loaded but did not register on window.__UNCHAINED_PLUGINS__`)}catch(e){console.error(`Failed to load plugin "${t.name}":`,e)}})),t||o(l)}catch(e){console.error("Failed to load plugin manifests:",e)}finally{t||u(!1)}})(),()=>{t=!0,e.forEach(e=>e.remove()),window.__UNCHAINED_PLUGINS__={}}},[]),(0,r.jsx)(w.Provider,{value:{manifests:t,getComponent:(e,t)=>{let r=n.get(e);return r?.[t]||null},getSlotPlugins:e=>t.flatMap(t=>{let r=t.slots[e];return r?r.map(e=>({manifest:t,config:e})):[]}),loading:c},children:e})},"usePlugins",0,()=>(0,s.useContext)(w)],13534)},58668,e=>{"use strict";var t=e.i(91398),r=e.i(91788);class s extends r.default.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`Plugin "${this.props.pluginName}" crashed in component "${this.props.componentName}":`,e,t)}render(){return this.state.hasError?(0,t.jsx)("div",{className:"rounded-lg border border-danger bg-danger-surface p-4 my-2",children:(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-sm font-medium text-danger",children:['Plugin "',this.props.pluginName,'" encountered an error']}),(0,t.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Component: ",this.props.componentName]}),this.state.error&&(0,t.jsxs)("details",{className:"mt-2",children:[(0,t.jsx)("summary",{className:"text-xs text-text-muted cursor-pointer hover:text-text-secondary",children:"Error details"}),(0,t.jsxs)("pre",{className:"mt-1 text-xs text-text-muted whitespace-pre-wrap break-words font-mono bg-surface p-2 rounded max-h-32 overflow-auto",children:[this.state.error.message,this.state.error.stack&&`
2
+ ${this.state.error.stack.split("\n").slice(1,4).join("\n")}`]})]})]}),(0,t.jsxs)("button",{onClick:()=>this.setState({hasError:!1,error:null}),className:"ml-4 shrink-0 inline-flex items-center gap-1 rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-surface-raised transition-colors",children:[(0,t.jsx)("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182"})}),"Retry"]})]})}):this.props.children}}e.s(["default",0,s])},70475,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(13534),a=e.i(26539),l=e.i(58668),i=e.i(53576);e.s(["default",0,({slot:e,children:d,...n})=>{let{getSlotPlugins:o,getComponent:c,loading:u}=(0,s.usePlugins)();if(u)return null;let m=o(e);return 0===m.length?null:(0,t.jsx)(t.Fragment,{children:m.map(({manifest:s,config:o})=>{let u=o.component||o.components?.list,m=c(s.name,u);if(!m)return console.warn(`Plugin "${s.name}": component "${u}" not found in bundle`),null;let x={pluginName:s.name,version:s.version,slotId:e,config:o};return(0,t.jsx)(l.default,{pluginName:s.name,componentName:u,children:(0,t.jsx)(a.PluginRuntimeProvider,{value:x,children:(0,t.jsx)(r.Suspense,{fallback:(0,t.jsx)(i.default,{}),children:d?d(m,o,s):(0,t.jsx)(m,{...n})})})},`${s.name}-${u}`)})})}])},71774,e=>{"use strict";var t=e.i(91398),r=e.i(3828),s=e.i(66773),a=e.i(69322),l=e.i(28401),i=e.i(50595),d=e.i(53576),n=e.i(59080),o=e.i(32171),c=e.i(70693),u=e.i(36494);let m=n.gql`
3
+ fragment OrderDetailFragment on Order {
4
+ _id
5
+ totalTax: total(category: TAXES) {
6
+ amount
7
+ currencyCode
8
+ }
9
+ itemsTotal: total(category: ITEMS) {
10
+ amount
11
+ currencyCode
12
+ }
13
+ totalDiscount: total(category: DISCOUNTS) {
14
+ amount
15
+ currencyCode
16
+ }
17
+
18
+ totalPayment: total(category: PAYMENT) {
19
+ amount
20
+ currencyCode
21
+ }
22
+ totalDelivery: total(category: DELIVERY) {
23
+ amount
24
+ currencyCode
25
+ }
26
+
27
+ user {
28
+ _id
29
+ username
30
+ isGuest
31
+ avatar {
32
+ _id
33
+ url
34
+ }
35
+ profile {
36
+ displayName
37
+ address {
38
+ firstName
39
+ lastName
40
+ }
41
+ }
42
+ }
43
+ discounts {
44
+ _id
45
+ trigger
46
+ code
47
+ interface {
48
+ _id
49
+ label
50
+ version
51
+ }
52
+ total {
53
+ amount
54
+ currencyCode
55
+ isTaxable
56
+ isNetPrice
57
+ }
58
+ discounted {
59
+ _id
60
+ orderDiscount {
61
+ _id
62
+ total {
63
+ amount
64
+ currencyCode
65
+ isTaxable
66
+ isNetPrice
67
+ }
68
+ }
69
+ total {
70
+ amount
71
+ currencyCode
72
+ isTaxable
73
+ isNetPrice
74
+ }
75
+ }
76
+ }
77
+ payment {
78
+ _id
79
+ provider {
80
+ _id
81
+ type
82
+ interface {
83
+ _id
84
+ label
85
+ version
86
+ }
87
+ }
88
+ status
89
+ fee {
90
+ currencyCode
91
+ amount
92
+ }
93
+ paid
94
+ }
95
+
96
+ orderNumber
97
+ status
98
+ created
99
+ updated
100
+ ordered
101
+
102
+ confirmed
103
+ fulfilled
104
+ contact {
105
+ telNumber
106
+ emailAddress
107
+ }
108
+ country {
109
+ _id
110
+ isoCode
111
+ flagEmoji
112
+ name
113
+ }
114
+ currency {
115
+ _id
116
+ isoCode
117
+ isActive
118
+ }
119
+ billingAddress {
120
+ ...AddressFragment
121
+ }
122
+ delivery {
123
+ _id
124
+ ... on OrderDeliveryPickUp {
125
+ activePickUpLocation {
126
+ _id
127
+ name
128
+ address {
129
+ ...AddressFragment
130
+ }
131
+ }
132
+ }
133
+ ... on OrderDeliveryShipping {
134
+ address {
135
+ ...AddressFragment
136
+ }
137
+ }
138
+ provider {
139
+ _id
140
+ created
141
+ updated
142
+ deleted
143
+ type
144
+ configuration
145
+ interface {
146
+ _id
147
+ label
148
+ version
149
+ }
150
+ }
151
+ status
152
+ delivered
153
+ fee {
154
+ isTaxable
155
+ isNetPrice
156
+ amount
157
+ currencyCode
158
+ }
159
+ discounts {
160
+ _id
161
+ orderDiscount {
162
+ _id
163
+ trigger
164
+ code
165
+ order {
166
+ _id
167
+ orderNumber
168
+ }
169
+ interface {
170
+ _id
171
+ label
172
+ version
173
+ }
174
+ total {
175
+ isTaxable
176
+ isNetPrice
177
+ amount
178
+ currencyCode
179
+ }
180
+ discounted {
181
+ _id
182
+ orderDiscount {
183
+ _id
184
+ trigger
185
+ code
186
+ order {
187
+ _id
188
+ orderNumber
189
+ }
190
+ interface {
191
+ _id
192
+ label
193
+ version
194
+ }
195
+ total {
196
+ isTaxable
197
+ isNetPrice
198
+ amount
199
+ currencyCode
200
+ }
201
+ }
202
+ }
203
+ }
204
+ }
205
+
206
+ delivered
207
+ }
208
+ total {
209
+ isTaxable
210
+ isTaxable
211
+ amount
212
+ currencyCode
213
+ }
214
+ items {
215
+ _id
216
+ product {
217
+ _id
218
+ texts {
219
+ _id
220
+ slug
221
+ brand
222
+ vendor
223
+ title
224
+ subtitle
225
+ }
226
+ media {
227
+ _id
228
+ file {
229
+ _id
230
+ url
231
+ }
232
+ }
233
+ }
234
+ quantity
235
+
236
+ unitPrice {
237
+ amount
238
+ isTaxable
239
+ isNetPrice
240
+ currencyCode
241
+ }
242
+ total {
243
+ amount
244
+ isTaxable
245
+ isNetPrice
246
+ currencyCode
247
+ }
248
+ }
249
+ }
250
+ ${u.default}
251
+ `;var x=e.i(41158),f=e.i(83147),h=e.i(1880),p=e.i(87284);let g=({item:e})=>{let{formatMessage:r}=(0,a.useIntl)(),{formatPrice:s}=(0,f.useFormatPrice)();return(0,t.jsx)(x.default,{href:`/products?slug=${(0,h.default)(e.product)}`,children:(0,t.jsx)("div",{className:"space-y-8",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap",children:[(0,t.jsx)("div",{className:"flex shrink-0 overflow-hidden rounded-lg sm:mx-0 ",children:e.product?.media?.length?(0,t.jsx)(p.default,{src:`${e.product?.media[0].file.url}`,alt:e?.product?.texts?.title||e?.product?.texts?.subtitle,className:"object-cover object-center",width:80,height:80}):null}),(0,t.jsxs)("div",{className:"flex flex-col justify-center sm:mt-0 ml-3 sm:flex-auto",children:[(0,t.jsx)("h3",{className:"text-base text-text-primary truncate",dangerouslySetInnerHTML:{__html:e?.product?.texts?.title||e?.product?.texts?.subtitle}}),(0,t.jsx)("div",{className:"mt-1 text-sm dark:text-slate-400",children:s(e?.unitPrice)}),(0,t.jsxs)("div",{className:"mt-1 text-sm dark:text-slate-400",children:[r({id:"item_quantity",defaultMessage:"Quantity:"}),(0,t.jsx)("span",{className:"ml-1",children:e?.quantity})]})]})]})})})},v=({order:e})=>{let{formatMessage:r}=(0,a.useIntl)(),{formatPrice:s}=(0,f.useFormatPrice)(),l=e?.status==="OPEN"||!e?.orderNumber;return(0,t.jsx)("div",{"aria-labelledby":"summary-heading",children:(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between pb-3 text-xl",children:[(0,t.jsx)("dt",{className:"",children:r({id:"order_total",defaultMessage:"Order total"})}),(0,t.jsx)("dd",{className:"",children:s(e?.total)})]}),!l&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("dt",{className:"text-text-secondary",children:r({id:"discount",defaultMessage:"Discount"})}),(0,t.jsx)("dd",{className:"",children:s(e?.totalDiscount)})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("dt",{className:"text-text-secondary",children:r({id:"shipping",defaultMessage:"Shipping"})}),(0,t.jsx)("dd",{className:"",children:s(e?.totalDelivery)})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("dt",{className:"text-text-secondary",children:r({id:"tax",defaultMessage:"Tax"})}),(0,t.jsx)("dd",{className:"",children:s(e?.totalTax)})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("dt",{className:"text-text-secondary",children:r({id:"order_payment_fees",defaultMessage:"Fees"})}),(0,t.jsx)("dd",{className:"",children:s(e?.totalPayment)})]}),(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("dt",{className:"text-text-secondary",children:r({id:"subtotal",defaultMessage:"Subtotal"})}),(0,t.jsx)("dd",{className:"",children:s(e?.itemsTotal)})]})]})]})})};var y=e.i(37369),b=e.i(34728),j=e.i(6607),N=e.i(76204);let _=n.gql`
252
+ mutation PayOrder($orderId: ID!) {
253
+ payOrder(orderId: $orderId) {
254
+ _id
255
+ }
256
+ }
257
+ `;var k=e.i(51967),P=e.i(11959),w=e.i(84818);let C=({enumType:e,currentType:r,label:s,component:l=null})=>{let{formatMessage:i}=(0,a.useIntl)();return l||(0,t.jsx)("span",{title:s,className:`${r===e?"border-slate-300 bg-slate-200 text-slate-950 dark:bg-slate-800 dark:text-slate-200":"opacity-10 dark:bg-slate-900 "} mr-2 mb-2 inline-flex items-center rounded-md border border-slate-300 bg-white px-2 py-1 text-sm uppercase dark:border-slate-700 dark:bg-slate-800 dark:text-slate-200 transition-colors duration-200 ease-in-out hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 focus:ring-offset-white dark:focus:ring-offset-slate-800`,children:(e=>{switch(e){case"INVOICE":return i({id:"invoice",defaultMessage:"INVOICE"});case"SHIPPING":return i({id:"shipping_method",defaultMessage:"SHIPPING"});case"OPEN":return i({id:"open",defaultMessage:"OPEN"});case"DELIVERED":return i({id:"delivered",defaultMessage:"Delivered"}).toUpperCase();case"PAID":return i({id:"paid",defaultMessage:"Paid"}).toUpperCase();default:return e}})(e)})};var M=e.i(58971);let I=({order:e})=>{let{paymentProviderType:r}=(0,k.default)(),{statusTypes:i}=(0,P.default)("OrderPaymentStatus"),{formatDateTime:d}=(0,w.default)(),{formatPrice:n}=(0,f.useFormatPrice)(),{formatMessage:o}=(0,a.useIntl)(),{setModal:c}=(0,j.default)(),{payOrder:u}=(()=>{let[e]=(0,N.useMutation)(_);return{payOrder:async({orderId:t})=>e({variables:{orderId:t},refetchQueries:["Order"]})}})(),{hasRole:m}=(0,M.default)(),h=async()=>{await c((0,t.jsx)(b.default,{buttonText:o({id:"pay",defaultMessage:"Mark paid"}),message:o({id:"mark_as_paid_question",defaultMessage:"This will change the order payment status to Paid."}),headerText:o({id:"mark_as_paid_question_header",defaultMessage:"Mark as paid?"}),onOkClick:async()=>{c(""),await u({orderId:e._id}),l.toast.success(o({id:"order_paid",defaultMessage:"Order paid successfully"}))}}))};return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,t.jsx)("h2",{className:"pt-4 text-2xl text-text-primary",children:o({id:"payment",defaultMessage:"Payment"})}),e?.payment?.fee?.currencyCode&&(0,t.jsx)("span",{className:"block",children:n(e.payment.fee)}),e?.payment?.paid&&(0,t.jsx)("span",{className:"font-mono",children:d(e.payment.paid,{timeStyle:"short",dateStyle:"medium"})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"mb-5 block text-xs font-mono",children:e?.payment?.provider&&(0,t.jsx)(x.default,{href:`/payment-provider?paymentProviderId=${e.payment.provider._id}`,className:"text-slate-500 dark:text-slate-300 hover:text-slate-800 dark:hover:text-slate-600",children:(0,f.getInterfaceLabel)(e.payment?.provider?.interface)})}),(0,t.jsx)("div",{className:"mt-3 text-sm text-text-muted",children:o({id:"method",defaultMessage:"Method"})}),(0,t.jsx)("span",{className:"mr-2 block rounded-full py-1 text-xs font-semibold leading-5",children:[...r].sort((t,r)=>t.value===e.payment?.provider?.type?-1:+(r.value===e.payment?.provider?.type)).map(r=>(0,t.jsx)(C,{enumType:r.value,currentType:e.payment?.provider?.type,label:r.label},r.value))}),(0,t.jsx)("div",{className:"mt-3 text-sm text-text-muted",children:o({id:"delivery_status",defaultMessage:"Status"})}),(0,t.jsx)("span",{className:"mr-2 block rounded-full py-1 text-xs font-semibold leading-5",children:[...i].sort((t,r)=>t.value===e.payment?.status?-1:+(r.value===e.payment?.status)).map(r=>(0,t.jsx)(C,{enumType:r.value,currentType:e.payment?.status,label:r.label,component:"OPEN"===e.payment.status&&"PAID"===r.value&&m(s.IRoleAction.MarkOrderPaid)&&(0,t.jsxs)("button",{id:"pay",type:"button",onClick:h,className:"cursor-pointer my-2 mr-2 inline-flex h-full items-center justify-center rounded-sm border border-transparent bg-accent py-1 px-2 text-xs font-semibold text-text-on-accent shadow-xs hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring dark:focus:ring-focus-ring focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"mr-1",children:(0,t.jsx)(y.PlusIcon,{className:"inline-block h-3 w-3 text-white"})}),o({id:"mark_as_paid",defaultMessage:"Mark as Paid"})]})},r.value))})]})]})};var E=e.i(93333);let O=n.gql`
258
+ mutation DeliverOrder($orderId: ID!) {
259
+ deliverOrder(orderId: $orderId) {
260
+ _id
261
+ }
262
+ }
263
+ `,D=({order:e})=>{let{deliveryProviderType:r}=(0,E.default)(),{setModal:i}=(0,j.default)(),{statusTypes:d}=(0,P.default)("OrderDeliveryStatus"),{deliverOrder:n}=(()=>{let[e]=(0,N.useMutation)(O);return{deliverOrder:async({orderId:t})=>e({variables:{orderId:t},refetchQueries:["Order"]})}})(),{formatPrice:o}=(0,f.useFormatPrice)(),{formatMessage:c}=(0,a.useIntl)(),{formatDateTime:u}=(0,w.default)(),{hasRole:m}=(0,M.default)(),h=async()=>{await i((0,t.jsx)(b.default,{buttonText:c({id:"delivered",defaultMessage:"Delivered"}),message:c({id:"mark_as_delivered_message",defaultMessage:"This will change the order delivery status to delivered"}),headerText:c({id:"mark_as_delivered_question",defaultMessage:"Mark as delivered ?"}),onOkClick:async()=>{i(""),await n({orderId:e._id}),l.toast.success(c({id:"order__marked_delivered",defaultMessage:"Order marked as delivered successfully"}))}}))};return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,t.jsx)("h2",{className:"pt-4 text-2xl",children:c({id:"delivery",defaultMessage:"Delivery"})}),e?.delivery?.fee?.currencyCode&&(0,t.jsx)("span",{className:"block",children:o(e.delivery.fee)}),e?.delivery?.delivered&&(0,t.jsx)("span",{className:"font-mono",children:u(e.delivery.delivered,{timeStyle:"short",dateStyle:"medium"})})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"mb-5 block font-mono text-xs",children:e?.delivery&&(0,t.jsx)(x.default,{href:`/delivery-provider?deliveryProviderId=${e?.delivery?.provider?._id}`,className:"text-slate-500 dark:text-slate-300 hover:text-slate-800 dark:hover:text-slate-600",children:(0,f.getInterfaceLabel)(e?.delivery?.provider?.interface)})}),(0,t.jsx)("div",{className:"mt-3 text-sm text-text-muted",children:c({id:"method",defaultMessage:"Method"})}),(0,t.jsx)("span",{className:"mr-2 block rounded-full py-1 text-xs font-semibold leading-5",children:[...r].sort((t,r)=>t.value===e?.delivery?.provider?.type?-1:+(r.value===e?.delivery?.provider?.type)).map(r=>(0,t.jsx)(C,{enumType:r.value,currentType:e?.delivery?.provider?.type,label:r.label},r.value))}),(0,t.jsx)("div",{className:"mt-3 text-sm text-text-muted",children:c({id:"status",defaultMessage:"Status"})}),(0,t.jsx)("span",{className:"mr-2 block rounded-full py-1 text-xs font-semibold leading-5",children:[...d].sort((t,r)=>t.value===e?.delivery?.status?-1:+(r.value===e?.delivery?.status)).map(r=>(0,t.jsx)(C,{enumType:r.value,currentType:e?.delivery?.status,label:r.label,component:e?.delivery?.status==="OPEN"&&"DELIVERED"===r.value&&m(s.IRoleAction.MarkOrderDelivered)&&(0,t.jsxs)("button",{id:"deliver",type:"button",onClick:h,className:"my-2 mr-2 inline-flex h-full items-center justify-center rounded-sm border border-slate-300 border-transparent bg-accent py-1 px-2 text-xs font-semibold text-text-on-accent shadow-xs hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring dark:focus:ring-focus-ring focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"mr-1",children:(0,t.jsx)(y.PlusIcon,{className:"inline-block h-3 w-3 text-white"})}),c({id:"mark_as_delivered",defaultMessage:"Mark as delivered"})]})},r.value))})]})]})};var T=e.i(64710),A=e.i(49740),S=e.i(91788);let $=S.forwardRef(function({title:e,titleId:t,...r},s){return S.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},r),e?S.createElement("title",{id:t},e):null,S.createElement("path",{d:"M2.879 7.121A3 3 0 0 0 7.5 6.66a2.997 2.997 0 0 0 2.5 1.34 2.997 2.997 0 0 0 2.5-1.34 3 3 0 1 0 4.622-3.78l-.293-.293A2 2 0 0 0 15.415 2H4.585a2 2 0 0 0-1.414.586l-.292.292a3 3 0 0 0 0 4.243ZM3 9.032a4.507 4.507 0 0 0 4.5-.29A4.48 4.48 0 0 0 10 9.5a4.48 4.48 0 0 0 2.5-.758 4.507 4.507 0 0 0 4.5.29V16.5h.25a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75v-3.5a.75.75 0 0 0-.75-.75h-2.5a.75.75 0 0 0-.75.75v3.5a.75.75 0 0 1-.75.75h-4.5a.75.75 0 0 1 0-1.5H3V9.032Z"}))}),R=({order:e})=>{let{formatMessage:r}=(0,a.useIntl)(),s=e?.delivery,l=s?.provider?.type==="PICKUP",i=s?.address||s?.activePickUpLocation?.address||{},d=s?.activePickUpLocation?.name;return(0,t.jsxs)("section",{"aria-labelledby":"addresses-heading",className:"lg:grid lg:grid-cols-2 flex flex-col gap-8",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-2 text-xl dark:text-slate-400 flex items-center gap-2",children:[(0,t.jsx)(T.CreditCardIcon,{className:"h-5 w-5"}),r({id:"billing_address",defaultMessage:"Billing address"})]}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block",children:e?.billingAddress?.firstName&&e?.billingAddress?.lastName?`${e.billingAddress.firstName} ${e.billingAddress.lastName}`:e?.billingAddress?.firstName||e?.billingAddress?.lastName||""}),(0,t.jsx)("span",{className:"block",children:e?.billingAddress?.addressLine}),e?.billingAddress?.addressLine2&&(0,t.jsx)("span",{className:"block",children:e.billingAddress.addressLine2}),(0,t.jsx)("span",{children:e?.billingAddress?.postalCode})," ",(0,t.jsx)("span",{children:e?.billingAddress?.city}),(0,t.jsx)("span",{className:"block",children:e?.country?.name&&(0,t.jsxs)(t.Fragment,{children:[e.country.name," ",(0,t.jsx)("span",{className:"inline-block grayscale hover:grayscale-0 transition-all text-xl",children:e.country.flagEmoji})]})})]})]}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"mb-2 text-xl dark:text-slate-400 flex items-center gap-2",children:[(0,t.jsx)(A.TruckIcon,{className:"h-5 w-5"}),r({id:"delivery_details",defaultMessage:"Delivery details"})]}),(0,t.jsxs)("div",{children:[l?(0,t.jsxs)("div",{className:"mb-1 flex items-center gap-1",children:[(0,t.jsx)($,{className:"h-5 w-5 text-gray-500"}),(0,t.jsx)("span",{className:"font-semibold",children:d||r({id:"pickup_location",defaultMessage:"Pickup Location"})})]}):null,(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"block",children:i?.firstName&&i?.lastName?`${i.firstName} ${i.lastName}`:i?.firstName||i?.lastName||""}),i?.company&&(0,t.jsx)("span",{className:"block",children:i.company}),(0,t.jsx)("span",{className:"block",children:i?.addressLine}),i?.addressLine2&&(0,t.jsx)("span",{className:"block",children:i.addressLine2}),(0,t.jsx)("span",{children:i?.postalCode})," ",(0,t.jsx)("span",{children:i?.city}),(0,t.jsxs)("span",{className:"block text-gray-500 text-sm",children:[i?.regionCode," — ",i?.countryCode]})]})]})]})]})};var F=e.i(8918),L=e.i(42469),U=e.i(2194);let q={SYSTEM:"teal",USER:"indigo"},Q=({discounts:e})=>{let{formatMessage:r}=(0,a.useIntl)(),{formatPrice:s}=(0,f.useFormatPrice)();return(0,t.jsxs)("div",{className:"flex flex-auto flex-col",children:[(0,t.jsx)("h2",{className:"text-2xl",children:r({id:"discount_information",defaultMessage:"Discounts"})}),(0,t.jsx)("div",{className:"mt-2",children:e?.length?(0,t.jsxs)(F.default,{className:"min-w-full ",children:[(e||[])?.map(e=>(0,t.jsxs)(F.default.Row,{header:!0,children:[(0,t.jsx)(F.default.Cell,{children:r({id:"code",defaultMessage:"Code"})}),(0,t.jsx)(F.default.Cell,{children:r({id:"discount_amount",defaultMessage:"Discount Amount"})})]},e._id)),(e||[])?.map(e=>(0,t.jsx)(S.Fragment,{children:(0,t.jsxs)(F.default.Row,{children:[(0,t.jsx)(F.default.Cell,{children:(0,t.jsxs)("div",{className:"flex items-center text-sm text-slate-900",children:[e.code?e.code:"n/a",(0,t.jsx)("span",{className:"mr-2 inline-block rounded-full py-1 text-xs font-semibold leading-5",children:(0,t.jsx)(L.default,{text:e.trigger,color:q[e.trigger],square:!0})})]})}),(0,t.jsx)(F.default.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm text-slate-900",children:s(e.total)})})]})},e._id))]}):(0,t.jsx)(U.default,{message:r({id:"discounts",defaultMessage:"Discounts"})})})]})},H=n.gql`
264
+ mutation ConfirmOrder($orderId: ID!) {
265
+ confirmOrder(orderId: $orderId) {
266
+ _id
267
+ }
268
+ }
269
+ `;var G=e.i(66885),V=e.i(57986);let B=({order:e})=>{let{formatMessage:r,locale:s}=(0,a.useIntl)(),{formatDateTime:l}=(0,w.default)();if(!e)return null;let i=e?.status==="OPEN"||!e?.orderNumber;return(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"flex justify-between items-baseline flex-wrap mb-10",children:[(0,t.jsx)("div",{className:"flex items-center justify-between gap-5 flex-wrap",children:(0,t.jsx)("h2",{className:"text-2xl font-medium text-text-primary sm:truncate sm:text-3xl lg:text-4xl xl:text-5xl",children:i?(0,t.jsxs)(t.Fragment,{children:[r({id:"cart",defaultMessage:"Cart"}),` ${e._id}`]}):(0,t.jsxs)(t.Fragment,{children:[r({id:"order_number",defaultMessage:"Order #"}),e?.orderNumber?`${e.orderNumber}`:""]})})}),(0,t.jsxs)("div",{children:[(0,t.jsx)("span",{className:"mr-1 text-text-muted",children:r(i?{id:"cart_created",defaultMessage:"Warenkorb erstellt"}:{id:"order_placed",defaultMessage:"Order placed"})}),i?l(e.created):e?.ordered?l(e.ordered):null]})]}),!i&&(0,t.jsx)(V.default,{user:e?.user,contact:e?.contact}),i&&e?.user&&(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)("span",{className:"text-lg text-text-secondary",children:e.user.profile?.displayName||(e.user.profile?.address?.firstName&&e.user.profile?.address?.lastName?`${e.user.profile.address.firstName} ${e.user.profile.address.lastName}`:e.user.username)||"Guest"})})]})},Z=n.gql`
270
+ mutation RejectOrder($orderId: ID!) {
271
+ rejectOrder(orderId: $orderId) {
272
+ _id
273
+ }
274
+ }
275
+ `;var W=e.i(15971),J=e.i(70475);let z=({order:e})=>{let{formatMessage:r}=(0,a.useIntl)(),{setModal:i}=(0,j.default)(),{confirmOrder:d}=(()=>{let[e]=(0,N.useMutation)(H);return{confirmOrder:async({orderId:t})=>e({variables:{orderId:t},refetchQueries:["Order"]})}})(),{rejectOrder:n}=(()=>{let[e]=(0,N.useMutation)(Z);return{rejectOrder:async({orderId:t})=>e({variables:{orderId:t},refetchQueries:["Order"]})}})(),{hasRole:o}=(0,M.default)(),{statusTypes:c}=(0,P.default)("OrderStatus");if(!e)return null;let u=e?.status==="OPEN"||!e?.orderNumber,m=async()=>{await i((0,t.jsx)(b.default,{buttonText:r({id:"confirm_order_alert_button",defaultMessage:"Confirm"}),headerText:r({id:"confirm_order_alert_header",defaultMessage:"Confirm order?"}),message:r({id:"confirm_order_alert_message",defaultMessage:"This will mark order as confirmed"}),onOkClick:async()=>{i(""),await d({orderId:e._id}),l.toast.success(r({id:"order_confirmed_success",defaultMessage:"Order confirmed successfully"}))}}))},x=async()=>{await i((0,t.jsx)(W.default,{onCancelClick:async()=>i(""),okText:r({id:"reject_order_alert_button",defaultMessage:"Reject"}),headerText:r({id:"reject_order_alert_header",defaultMessage:"Reject order?"}),onOkClick:async()=>{i(""),await n({orderId:e._id}),l.toast.success(r({id:"order_reject_success",defaultMessage:"Order rejected successfully"}))}}))},f={OPEN:{id:1,content:"created",visible:!0},PENDING:{id:2,content:"ordered",Component:e?.status==="PENDING"&&(0,t.jsxs)(t.Fragment,{children:[o(s.IRoleAction.MarkOrderConfirmed)&&(0,t.jsx)("button",{id:"confirm_order",onClick:m,type:"button",className:"bg-white-300 relative -ml-px inline-flex items-center space-x-2 rounded-md border border-accent bg-accent px-2 py-1 text-sm font-medium text-text-on-accent hover:bg-accent-hover dark:focus:border-slate-400 focus:outline-hidden focus:ring-0 focus:ring-focus-ring",children:r({id:"confirm_order",defaultMessage:"Confirm order"})}),o(s.IRoleAction.MarkOrderRejected)&&(0,t.jsx)("button",{id:"reject_order",onClick:x,type:"button",className:"bg-white-300 relative -ml-px inline-flex items-center space-x-2 rounded-md border border-rose-500 bg-rose-500 px-2 py-1 text-sm font-medium text-white hover:bg-rose-700 focus:border-rose-400 focus:outline-hidden focus:ring-0 focus:ring-rose-400",children:r({id:"reject_order",defaultMessage:"Reject order"})})]}),visible:!0},REJECTED:{id:3,content:"rejected",visible:e?.status==="REJECTED"},CONFIRMED:{id:4,content:"confirmed",visible:e?.status!=="REJECTED"},FULFILLED:{id:5,content:"fulfilled",visible:e?.status!=="REJECTED"}};return(0,t.jsxs)("div",{className:"space-y-4 lg:gap-10 dark:text-slate-200",children:[(0,t.jsx)("div",{children:(0,t.jsx)(B,{order:e})}),!u&&(0,t.jsx)("div",{className:"mt-10",children:(0,t.jsx)(R,{order:e})}),(0,t.jsxs)("div",{className:"mt-20 lg:grid lg:grid-cols-2 lg:gap-10",children:[(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mb-6 text-xl dark:text-slate-400",children:r({id:"items_purchased",defaultMessage:"Items purchased"})}),(0,t.jsx)("div",{className:"flex gap-5 flex-col",children:e?.items.map(e=>(0,t.jsx)(g,{item:e},e._id))})]}),(0,t.jsx)("div",{children:(0,t.jsx)(v,{order:e})})]}),(0,t.jsx)("div",{className:"mt-20",children:(0,t.jsx)(G.default,{data:e,statusTypes:c,timeline:f})}),!u&&(0,t.jsxs)("div",{className:"mt-10 lg:mt-30 lg:grid lg:grid-cols-2 xl:grid-cols-3 lg:gap-10",children:[(0,t.jsx)(D,{order:e}),(0,t.jsx)(I,{order:e}),(0,t.jsx)(Q,{discounts:e?.discounts})]}),(0,t.jsx)(J.default,{slot:"order:tabs",entityId:e._id,children:(r,s,a)=>(0,t.jsx)("div",{className:"mt-10",children:(0,t.jsx)(r,{order:e,entityId:e._id})})})]})},K=n.gql`
276
+ mutation RemoveOrder($orderId: ID!) {
277
+ removeOrder(orderId: $orderId) {
278
+ _id
279
+ }
280
+ }
281
+ `;var Y=e.i(21623),X=e.i(24608);e.s(["default",0,({orderId:e})=>{let{formatMessage:u}=(0,a.useIntl)(),{setModal:x}=(0,j.default)(),{removeOrder:f}=(()=>{let[e]=(0,N.useMutation)(K);return{removeOrder:async({orderId:t})=>e({variables:{orderId:t},refetchQueries:["Order"]})}})(),h=(0,r.useRouter)(),{hasRole:p}=(0,M.default)(),{order:g,loading:v}=(({orderId:e=null})=>{let{customProperties:t}=(0,c.default)(),{data:r,loading:s,error:a}=(0,o.useQuery)(((e="")=>n.gql`
282
+ query Order($orderId: ID!) {
283
+ order(orderId: $orderId) {
284
+ ...OrderDetailFragment
285
+ ${e}
286
+ }
287
+ }
288
+ ${m}
289
+ `)(t?.Order),{skip:!e,variables:{orderId:e}});return{order:r?.order,loading:s,error:a}})({orderId:e}),y=async()=>{await x((0,t.jsx)(W.default,{message:u({id:"delete_order_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this order? "}),onCancelClick:async()=>x(""),onOkClick:async()=>{x(""),await f({orderId:e}),l.toast.success(u({id:"order_deleted",defaultMessage:"Order deleted successfully"})),h.push("/orders")},okText:u({id:"delete_order",defaultMessage:"Delete order"})}))};return(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(i.default,{currentPageTitle:g?.orderNumber?`#${g?.orderNumber}`:""}),(0,t.jsx)("div",{className:"items-center flex min-w-full justify-end gap-3 flex-wrap",children:g&&"OPEN"===g.status&&p(s.IRoleAction.UpdateOrder)?(0,t.jsx)(Y.default,{variant:"danger",icon:(0,t.jsx)(X.XMarkIcon,{className:"h-5 w-5"}),text:"Delete",onClick:y}):null}),v?(0,t.jsx)(d.default,{}):(0,t.jsx)(z,{order:g})]})}],71774)},49740,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"M6.5 3c-1.051 0-2.093.04-3.125.117A1.49 1.49 0 0 0 2 4.607V10.5h9V4.606c0-.771-.59-1.43-1.375-1.489A41.568 41.568 0 0 0 6.5 3ZM2 12v2.5A1.5 1.5 0 0 0 3.5 16h.041a3 3 0 0 1 5.918 0h.791a.75.75 0 0 0 .75-.75V12H2Z"}),t.createElement("path",{d:"M6.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3ZM13.25 5a.75.75 0 0 0-.75.75v8.514a3.001 3.001 0 0 1 4.893 1.44c.37-.275.61-.719.595-1.227a24.905 24.905 0 0 0-1.784-8.549A1.486 1.486 0 0 0 14.823 5H13.25ZM14.5 18a1.5 1.5 0 1 0 0-3 1.5 1.5 0 0 0 0 3Z"}))});e.s(["TruckIcon",0,r],49740)},57862,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["default",0,r])},38322,e=>{"use strict";var t=e.i(57862);e.s(["CheckIcon",()=>t.default])}]);
@@ -0,0 +1,30 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,63094,e=>{"use strict";var t=e.i(91398),r=e.i(91788),n=e.i(61898);let a=(e,t="")=>e&&"object"==typeof e?Object.entries(e).reduce((e,[n,s])=>{if(!s||"ref"===n)return e;let o=`${t}${n}`;return"string"==typeof s||r.default.isValidElement(s)?e[o]=s:"string"==typeof s.message&&s.message?e[o]=s.message:"object"==typeof s&&Object.assign(e,a(s,`${o}.`)),e},{}):{},s=({submitError:e="",fieldErrors:n={}})=>(0,t.jsx)("div",{className:"my-2 mb-5 text-rose-700",children:(0,t.jsxs)("ul",{className:"space-y-1",children:[e&&(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})},"submitError"),Object.entries(n).map(([e,n])=>(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("button",{type:"button",className:"no-button text-danger","aria-label":"Error button",onClick:()=>{let t=document.getElementById(e);t&&t.focus()},children:r.default.isValidElement(n)?n:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:n}})})},e))]})});e.s(["default",0,({displayFieldErrors:e=!1})=>{var r;let o,{submitError:l,rhf:i}=(0,n.default)(),u=e?(r=a(i?.formState?.errors),o=new Set,Object.fromEntries(Object.entries(r).filter(([,e])=>"string"!=typeof e||!o.has(e)&&(o.add(e),!0)))):{};return(l||e)&&(0,t.jsx)(s,{submitError:l,fieldErrors:u})}])},56985,e=>{"use strict";var t=e.i(91398),r=e.i(56206),n=e.i(91788),a=e.i(16984);e.s(["default",0,({autoComplete:e="on",...s})=>{let[o,l]=(0,n.useState)(!1),i=e=>{e.preventDefault(),l(!o)};return(0,t.jsxs)("div",{className:(0,r.default)("relative",s.className),children:[(0,t.jsx)(a.default,{autoComplete:e||"on",name:"password",...s,type:o?"text":"password"}),(0,t.jsx)("span",{role:"button",tabIndex:-1,"aria-label":"toggle password visibility",className:"absolute translate-y-[-137%] outline-hidden block right-3",onClick:i,onKeyUp:i,children:o?(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 stroke-slate-700",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 stroke-slate-700",fill:"none",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})})})]})}])},16984,e=>{"use strict";var t=e.i(91398),r=e.i(56206),n=e.i(82226),a=e.i(60741),s=e.i(54879);e.s(["default",0,({maxLength:e=0,validators:o=[],...l})=>{let i=(0,a.default)({validators:[...o,e&&(0,n.validateMaxLength)(e)],...l});return(0,t.jsx)(s.default,{...i,children:(0,t.jsx)("input",{className:(0,r.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-focus-ring shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!i.error,"border-slate-300 placeholder-slate-400":!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onClick:e=>{e.stopPropagation()},onBlur:i.onBlur,placeholder:i.placeholder,autoComplete:i.autoComplete||"off",type:i.type||"text",value:i.value,autoFocus:i.autoFocus})})}])},70693,12970,e=>{"use strict";var t=e.i(91788);let r=t.default.createContext({customProperties:{},hydrateFragment:(e,t)=>null});e.s(["default",0,r],12970),e.s(["default",0,()=>(0,t.useContext)(r)],70693)},5505,e=>{"use strict";var t=e.i(91398),r=e.i(91788),n=e.i(56206);let a=(0,r.createContext)(!1);e.s(["FormWrapperContext",0,a,"default",0,({children:e,className:r=""})=>(0,t.jsx)(a.Provider,{value:!0,children:(0,t.jsx)("div",{className:"sm:max-w-full",children:(0,t.jsx)("div",{className:(0,n.default)("bg-surface rounded-md shadow-sm overflow-hidden",r),children:e})})})])},10576,e=>{"use strict";e.s(["default",0,e=>{if(window.atob&&Uint8Array){let t=e.replace(/-/g,"+").replace(/_/g,"/"),r=t+"=".repeat((4-t.length%4)%4),n=window.atob(r),a=n.length,s=new Uint8Array(a);for(let e=0;e<a;e+=1)s[e]=n.charCodeAt(e);return s.buffer}throw Error("The atob and Uint8Array methods are not available")}])},73319,e=>{"use strict";let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["extractQuery",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"isObject",0,t,"isTruthy",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},95636,e=>{"use strict";var t=e.i(91398),r=e.i(41158),n=e.i(3828),a=e.i(69322),s=e.i(28401),o=e.i(5505),l=e.i(69211),i=e.i(63094),u=e.i(56985),c=e.i(16984),d=e.i(98949),f=e.i(10576),p=e.i(59080),m=e.i(76204);let g=p.gql`
2
+ mutation CreateWebAuthnCredentialRequestOptions($username: String) {
3
+ createWebAuthnCredentialRequestOptions(username: $username)
4
+ }
5
+ `,h=e=>{let t=e instanceof Uint8Array?e:new Uint8Array(e);return window.btoa(String.fromCharCode(...t)).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"")},b=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z]{2,})+$/i,y=p.gql`
6
+ mutation LoginWithPassword(
7
+ $username: String
8
+ $email: String
9
+ $password: String!
10
+ ) {
11
+ loginWithPassword(username: $username, email: $email, password: $password) {
12
+ _id
13
+ tokenExpires
14
+ user {
15
+ _id
16
+ allowedActions
17
+ roles
18
+ }
19
+ }
20
+ }
21
+ `,x=p.gql`
22
+ mutation LoginWithWebAuthn($webAuthnPublicKeyCredentials: JSON!) {
23
+ loginWithWebAuthn(
24
+ webAuthnPublicKeyCredentials: $webAuthnPublicKeyCredentials
25
+ ) {
26
+ _id
27
+ tokenExpires
28
+ }
29
+ }
30
+ `;var v=e.i(91788),w=e.i(70693);let j=({step:e})=>{let{formatMessage:n}=(0,a.useIntl)();return 2===e?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(u.default,{id:"password",name:"password",autoComplete:"current-password",autoFocus:!0,required:!0,label:n({id:"password",defaultMessage:"Password"})}),(0,t.jsx)("div",{className:"my-1 text-sm sm:my-0 text-left",children:(0,t.jsx)(r.default,{href:"/account/forgot-password",className:"font-medium text-slate-950 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-300",children:n({id:"forget_password",defaultMessage:"Forgot your password?"})})})]}):(0,t.jsx)(c.default,{id:"username-or-email",name:"usernameOrEmail",className:"mt-1",type:"text",autoComplete:"on",autoFocus:!0,required:!0,label:n({id:"username_or_email",defaultMessage:"Username/Email"})})},C=()=>{let e=(0,a.useIntl)(),{logInWithPassword:u}=(()=>{let[e,{client:t}]=(0,m.useMutation)(y,{errorPolicy:"all"});return{logInWithPassword:async({usernameOrEmail:r,password:n})=>{let a={username:null,email:null,password:null};"string"==typeof r&&b.test(r.trim())?a.email=r?.trim():a.username=r,a.password=n;let s=await e({variables:a,awaitRefetchQueries:!0});return s?.data?.loginWithPassword&&await t.resetStore(),s}}})(),{loginWithWebAuthn:c}=(()=>{let[e,{client:t}]=(0,m.useMutation)(x);return{loginWithWebAuthn:async({webAuthnPublicKeyCredentials:r})=>{let n=await e({variables:{webAuthnPublicKeyCredentials:r},awaitRefetchQueries:!0});return await t.resetStore(),n}}})(),{singleSignOnURL:p}=(0,w.default)(),[C,_]=(0,v.useState)(1),M=(0,n.useRouter)(),k=(0,v.useCallback)(()=>{_(C+1)},[C]),O=(0,v.useCallback)(()=>{_(C-1)},[C]),{generateLoginCredentials:A}=(()=>{let{createWebAuthnCredentialRequestOptions:e}=(()=>{let[e]=(0,m.useMutation)(g);return{createWebAuthnCredentialRequestOptions:async({username:t})=>e({variables:{username:t}})}})();return{generateLoginCredentials:async({username:t})=>{let{data:r}=await e({username:t}),n=r?.createWebAuthnCredentialRequestOptions;if(!n?.allowCredentials?.length)return null;n.challenge=(0,f.default)(n.challenge),n.allowCredentials=n.allowCredentials?.map(({id:e,...t})=>({id:(0,f.default)(e),...t}))||[];let a=await navigator.credentials.get({publicKey:n}),s=h(a.response.authenticatorData),o=h(a.response.signature),l=a.response.userHandle?h(a.response.userHandle):h(new TextEncoder().encode(t)),i=h(a.response.clientDataJSON),u=h(a.rawId);return{requestId:n.requestId,id:u,response:{clientDataJSON:i,authenticatorData:s,signature:o,userHandle:l}}}}})(),{formatMessage:P}=(0,a.useIntl)(),S=async e=>{let t=await A({username:e});if(t){let{data:e,error:r}=await c({webAuthnPublicKeyCredentials:t});if(e&&e?.loginWithWebAuthn)return{success:!0,error:r}}return{success:!1,error:null}},E=async({usernameOrEmail:e,password:t})=>{if(1===C){let{success:t,error:r}=await S(e);if(r)return{success:!0,error:r};t||k()}if(2===C){let{data:r,error:n}=await u({usernameOrEmail:e,password:t});if(!n){let{_id:e}=r.loginWithPassword;return{success:!!e,...r.loginWithPassword}}if(!n?.message?.includes("2FA code required"))return{success:!1,error:n};k()}if(3===C){let{data:r,error:n}=await u({usernameOrEmail:e,password:t});if(!n){let{_id:e}=r.loginWithPassword;return{success:!!e,...r.loginWithPassword}}return{success:!1,error:n}}return{success:!1}},I=async(e,t)=>{let r=t?.username||t?.displayName||t?.profile?.displayName||"there";return s.toast.success(P({id:"welcome_user",defaultMessage:"Welcome back, {name}!"},{name:r})),M.push("/"),!0},N=(0,d.default)({submit:E,onSubmitSuccess:I,getSubmitErrorMessage:e=>e?.message?.includes("Invalid credentials")?P({id:"invalid_credential_error",defaultMessage:"Invalid credential, please try again"}):e?.message?.toLowerCase().includes("no password set")?P({id:"user_password_not_set",defaultMessage:"User password not set"}):e?.message?.toLowerCase().includes("is not valid json")?P({id:"connection_to_server_error",defaultMessage:"Currently not connected to unchained engine, please check your connection to server and try again."}):"",initialValues:{usernameOrEmail:null,password:null}});return(0,t.jsx)(t.Fragment,{children:(0,t.jsx)("div",{className:"flex min-h-screen items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,t.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,t.jsx)("div",{children:(0,t.jsx)("h2",{className:"text-center text-3xl text-text-primary",children:P({id:"login_header",defaultMessage:"Log in to your account"})})}),(0,t.jsx)(o.default,{children:(0,t.jsxs)(l.default,{form:N,className:"space-y-6 px-4 pb-5 pt-3 sm:rounded-lg sm:px-10",children:[(0,t.jsx)(j,{step:C}),(0,t.jsx)(i.default,{}),(0,t.jsxs)("div",{className:"flex items-center gap-4 mt-4",children:[1!==C&&(0,t.jsxs)("button",{type:"button",id:"previous-button",name:"previous-button",onClick:O,className:"group relative flex w-full justify-center rounded-md border border-slate-300 bg-surface-raised dark:border-slate-600 py-2 px-4 text-sm font-medium text-text-secondary hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring dark:focus:ring-focus-ring focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3"}),P({id:"previous",defaultMessage:"Previous"})]}),(0,t.jsxs)("button",{type:"submit",id:"submit",disabled:!N.api.isValid,name:"submit",className:"group relative flex w-full justify-center rounded-md border border-transparent bg-accent py-2 px-4 text-sm font-medium text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})}),P({id:"continue",defaultMessage:"Continue"})]}),p&&2!==C&&(0,t.jsxs)("a",{type:"button",href:p,className:"group relative flex w-full justify-center rounded-md border border-transparent bg-accent py-2 px-4 text-sm font-medium text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",children:[(0,t.jsx)("span",{className:"absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-white group-hover:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M5 9V7a5 5 0 0110 0v2a2 2 0 012 2v5a2 2 0 01-2 2H5a2 2 0 01-2-2v-5a2 2 0 012-2zm8-2v2H7V7a3 3 0 016 0z",clipRule:"evenodd"})})}),P({id:"continue_with_sso",defaultMessage:"Login with SSO"})]})]}),(0,t.jsxs)("div",{className:"text-sm text-text-muted",children:[P({id:"create_new_account",defaultMessage:"Create new account?"}),(0,t.jsx)(r.default,{href:"/sign-up",className:"ml-2 font-medium text-slate-950 hover:text-slate-900 dark:text-slate-400 dark:hover:text-slate-400",children:e.formatMessage({id:"sign_up",defaultMessage:"Sign up"})})]})]})})]})})})},_=()=>(0,t.jsx)(C,{});_.getLayout=e=>e,e.s(["default",0,_],95636)},96826,(e,t,r)=>{let n="/log-in";(window.__NEXT_P=window.__NEXT_P||[]).push([n,()=>e.r(95636)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([n])})},76204,52006,50584,e=>{"use strict";var t=e.i(24669),r=e.i(91788),n=e.i(30928);function a(e){return e.catch(()=>{}),e}e.s(["preventUnhandledRejection",0,a],52006);let s=e.i(21953).canUseDOM?r.useLayoutEffect:r.useEffect;e.s(["useIsomorphicLayoutEffect",0,s],50584);var o=e.i(98926);function l(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["useMutation",0,function(e,i){let u=(0,o.useApolloClient)(i?.client),[c,d]=r.useState(()=>l(u)),f=r.useRef({result:c,mutationId:0,isMounted:!0,client:u,mutation:e,options:i});s(()=>{Object.assign(f.current,{client:u,options:i,mutation:e})});let p=r.useCallback((e={})=>{let{options:r,mutation:s}=f.current,o={...r,mutation:s},l=e.client||f.current.client,i="function"==typeof e.context?e.context(r?.context):e.context;!f.current.result.loading&&f.current.isMounted&&d(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:l});let u=++f.current.mutationId,c=(0,n.mergeOptions)(o,{...e,context:i});return a(l.mutate(c).then(r=>{let{data:n,error:a}=r,s=e.onError||f.current.options?.onError;if(a&&s&&s(a,c),u===f.current.mutationId){let e={called:!0,loading:!1,data:n,error:a,client:l};f.current.isMounted&&!(0,t.equal)(f.current.result,e)&&d(f.current.result=e)}let o=e.onCompleted||f.current.options?.onCompleted;return a||o?.(r.data,c),r},r=>{if(u===f.current.mutationId&&f.current.isMounted){let e={loading:!1,error:r,data:void 0,called:!0,client:l};(0,t.equal)(f.current.result,e)||d(f.current.result=e)}let n=e.onError||f.current.options?.onError;throw n&&n(r,c),r}))},[]),m=r.useCallback(()=>{if(f.current.isMounted){let e=l(f.current.client);Object.assign(f.current,{mutationId:0,result:e}),d(e)}},[]);return r.useEffect(()=>{let e=f.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[p,{reset:m,...c}]}],76204)},21953,e=>{"use strict";let t="function"==typeof(0,e.i(22420).maybe)(()=>window.document.createElement);e.s(["canUseDOM",0,t])},30928,51104,e=>{"use strict";function t(...e){let r={};return e.forEach(e=>{e&&Reflect.ownKeys(e).forEach(t=>{let n=e[t];void 0!==n&&(r[t]=n)})}),r}e.s(["compact",0,t],51104),e.s(["mergeOptions",0,function(e,r){return t(e,r,r.variables&&{variables:t({...e&&e.variables,...r.variables})})}],30928)},24669,e=>{"use strict";let{toString:t,hasOwnProperty:r}=Object.prototype,n=Function.prototype.toString,a=new Map;function s(e){return Object.keys(e).filter(o,e)}function o(e){return void 0!==this[e]}function l(e,t){let r=a.get(e);if(r){if(r.has(t))return!0}else a.set(e,r=new Set);return r.add(t),!1}e.s(["equal",0,function(e,o){try{return function e(a,o){if(a===o)return!0;let i=t.call(a);if(i!==t.call(o))return!1;switch(i){case"[object Array]":if(a.length!==o.length)break;case"[object Object]":{if(l(a,o))return!0;let t=s(a),n=s(o),i=t.length;if(i!==n.length)return!1;for(let e=0;e<i;++e)if(!r.call(o,t[e]))return!1;for(let r=0;r<i;++r){let n=t[r];if(!e(a[n],o[n]))return!1}return!0}case"[object Error]":return a.name===o.name&&a.message===o.message;case"[object Number]":if(a!=a)return o!=o;case"[object Boolean]":case"[object Date]":return+a==+o;case"[object RegExp]":case"[object String]":return a==`${o}`;case"[object Map]":case"[object Set]":{if(a.size!==o.size)return!1;if(l(a,o))return!0;let t=a.entries(),r="[object Map]"===i;for(;;){let n=t.next();if(n.done)break;let[a,s]=n.value;if(!o.has(a)||r&&!e(s,o.get(a)))return!1}return!0}case"[object Uint16Array]":case"[object Uint8Array]":case"[object Uint32Array]":case"[object Int32Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object ArrayBuffer]":a=new Uint8Array(a),o=new Uint8Array(o);case"[object DataView]":{let e=a.byteLength;if(e===o.byteLength)for(;e--&&a[e]===o[e];);return -1===e}case"[object AsyncFunction]":case"[object GeneratorFunction]":case"[object AsyncGeneratorFunction]":case"[object Function]":{var u,c;let e,t=n.call(a);if(t!==n.call(o))return!1;return u=t,c="{ [native code] }",!((e=u.length-c.length)>=0)||u.indexOf(c,e)!==e}}return!1}(e,o)}finally{a.clear()}}])},9356,e=>{"use strict";var t=e.i(35113);e.s(["isValid",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.toDate)(e)))}],9356)},49543,e=>{"use strict";var t=e.i(35113);e.s(["startOfDay",0,function(e,r){let n=(0,t.toDate)(e,r?.in);return n.setHours(0,0,0,0),n}])},35113,2848,98170,e=>{"use strict";let t=Symbol.for("constructDateFrom");function r(e,r){return"function"==typeof e?e(r):e&&"object"==typeof e&&t in e?e[t](r):e instanceof Date?new e.constructor(r):new Date(r)}e.s(["constructFromSymbol",0,t,"millisecondsInDay",0,864e5,"millisecondsInHour",0,36e5,"millisecondsInMinute",0,6e4,"millisecondsInWeek",0,6048e5,"minutesInDay",0,1440,"minutesInMonth",0,43200,"minutesInYear",0,525600],2848),e.s(["constructFrom",0,r],98170),e.s(["toDate",0,function(e,t){return r(t||e,e)}],35113)},54471,(e,t,r)=>{"use strict";function n(e,t,r,n){return!1}e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"getDomainLocale",{enumerable:!0,get:function(){return n}}),e.r(70090),("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},39149,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return _},useLinkStatus:function(){return C}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=e.r(71650),o=e.r(91398),l=s._(e.r(91788)),i=e.r(60472),u=e.r(71112),c=e.r(28169),d=e.r(89129),f=e.r(14862),p=e.r(25479),m=e.r(71914),g=e.r(54471),h=e.r(44113),b=e.r(63230),y=new Set;function x(e,t,r,n){if(!("u"<typeof window)&&(0,u.isLocalURL)(t)){if(!n.bypassPrefetchedCheck){let a=t+"%"+r+"%"+(void 0!==n.locale?n.locale:"locale"in e?e.locale:void 0);if(y.has(a))return;y.add(a)}e.prefetch(t,r,n).catch(e=>{})}}function v(e){return"string"==typeof e?e:(0,c.formatUrl)(e)}let w=l.default.forwardRef(function(e,t){let r,n,{href:a,as:s,children:c,prefetch:y=null,passHref:w,replace:j,shallow:C,scroll:_,locale:M,onClick:k,onNavigate:O,onMouseEnter:A,onTouchStart:P,legacyBehavior:S=!1,transitionTypes:E,...I}=e;r=c,S&&("string"==typeof r||"number"==typeof r)&&(r=(0,o.jsx)("a",{children:r}));let N=l.default.useContext(p.RouterContext),L=!1!==y,{href:R,as:D}=l.default.useMemo(()=>{if(!N){let e=v(a);return{href:e,as:s?v(s):e}}let[e,t]=(0,i.resolveHref)(N,a,!0);return{href:e,as:s?(0,i.resolveHref)(N,s):t||e}},[N,a,s]),W=l.default.useRef(R),U=l.default.useRef(D);S&&(n=l.default.Children.only(r));let T=S?n&&"object"==typeof n&&n.ref:t,[F,q,z]=(0,m.useIntersection)({rootMargin:"200px"}),$=l.default.useCallback(e=>{(U.current!==D||W.current!==R)&&(z(),U.current=D,W.current=R),F(e)},[D,R,z,F]),B=(0,b.useMergedRef)($,T);l.default.useEffect(()=>{!N||q&&L&&x(N,R,D,{bypassPrefetchedCheck:!1,locale:M})},[D,R,q,M,L,N?.locale,N]);let H={ref:B,onClick(e){S||"function"!=typeof k||k(e),S&&n.props&&"function"==typeof n.props.onClick&&n.props.onClick(e),!N||e.defaultPrevented||function(e,t,r,n,a,s,o,l,i){let c,{nodeName:d}=e.currentTarget;if(!("A"===d.toUpperCase()&&((c=e.currentTarget.getAttribute("target"))&&"_self"!==c||e.metaKey||e.ctrlKey||e.shiftKey||e.altKey||e.nativeEvent&&2===e.nativeEvent.which)||e.currentTarget.hasAttribute("download"))){if(!(0,u.isLocalURL)(r)){a&&(e.preventDefault(),location.replace(r));return}e.preventDefault(),(()=>{if(i){let e=!1;if(i({preventDefault:()=>{e=!0}}),e)return}let e=o??!0;"beforePopState"in t?t[a?"replace":"push"](r,n,{shallow:s,locale:l,scroll:e}):t[a?"replace":"push"](n||r,{scroll:e})})()}}(e,N,R,D,j,C,_,M,O)},onMouseEnter(e){S||"function"!=typeof A||A(e),S&&n.props&&"function"==typeof n.props.onMouseEnter&&n.props.onMouseEnter(e),N&&x(N,R,D,{locale:M,priority:!0,bypassPrefetchedCheck:!0})},onTouchStart:function(e){S||"function"!=typeof P||P(e),S&&n.props&&"function"==typeof n.props.onTouchStart&&n.props.onTouchStart(e),N&&x(N,R,D,{locale:M,priority:!0,bypassPrefetchedCheck:!0})}};if((0,d.isAbsoluteUrl)(D))H.href=D;else if(!S||w||"a"===n.type&&!("href"in n.props)){let e=void 0!==M?M:N?.locale;H.href=N?.isLocaleDomain&&(0,g.getDomainLocale)(D,e,N?.locales,N?.domainLocales)||(0,h.addBasePath)((0,f.addLocale)(D,e,N?.defaultLocale))}return S?l.default.cloneElement(n,H):(0,o.jsx)("a",{...I,...H,children:r})}),j=(0,l.createContext)({pending:!1}),C=()=>(0,l.useContext)(j),_=w;("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},41158,(e,t,r)=>{t.exports=e.r(39149)},71914,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useIntersection",{enumerable:!0,get:function(){return i}});let n=e.r(91788),a=e.r(99604),s="function"==typeof IntersectionObserver,o=new Map,l=[];function i({rootRef:e,rootMargin:t,disabled:r}){let u=r||!s,[c,d]=(0,n.useState)(!1),f=(0,n.useRef)(null),p=(0,n.useCallback)(e=>{f.current=e},[]);return(0,n.useEffect)(()=>{if(s){if(u||c)return;let r=f.current;if(r&&r.tagName)return function(e,t,r){let{id:n,observer:a,elements:s}=function(e){let t,r={root:e.root||null,margin:e.rootMargin||""},n=l.find(e=>e.root===r.root&&e.margin===r.margin);if(n&&(t=o.get(n)))return t;let a=new Map;return t={id:r,observer:new IntersectionObserver(e=>{e.forEach(e=>{let t=a.get(e.target),r=e.isIntersecting||e.intersectionRatio>0;t&&r&&t(r)})},e),elements:a},l.push(r),o.set(r,t),t}(r);return s.set(e,t),a.observe(e),function(){if(s.delete(e),a.unobserve(e),0===s.size){a.disconnect(),o.delete(n);let e=l.findIndex(e=>e.root===n.root&&e.margin===n.margin);e>-1&&l.splice(e,1)}}}(r,e=>e&&d(e),{root:e?.current,rootMargin:t})}else if(!c){let e=(0,a.requestIdleCallback)(()=>d(!0));return()=>(0,a.cancelIdleCallback)(e)}},[u,t,e,c,f.current]),[p,c,(0,n.useCallback)(()=>{d(!1)},[])]}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},63230,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"useMergedRef",{enumerable:!0,get:function(){return a}});let n=e.r(91788);function a(e,t){let r=(0,n.useRef)(null),a=(0,n.useRef)(null);return(0,n.useCallback)(n=>{if(null===n){let e=r.current;e&&(r.current=null,e());let t=a.current;t&&(a.current=null,t())}else e&&(r.current=s(e,n)),t&&(a.current=s(t,n))},[e,t])}function s(e,t){if("function"!=typeof e)return e.current=t,()=>{e.current=null};{let r=e(t);return"function"==typeof r?r:()=>e(null)}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},28805,e=>{e.v(t=>Promise.all(["static/chunks/1jqnrnw0p9tw5.js"].map(t=>e.l(t))).then(()=>t(79466)))},48761,e=>{e.v(t=>Promise.all(["static/chunks/1vnvinjvn78t3.js"].map(t=>e.l(t))).then(()=>t(93594)))},13521,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"ImageConfigContext",{enumerable:!0,get:function(){return s}});let n=e.r(31640)._(e.r(91788)),a=e.r(15125),s=n.default.createContext(a.imageConfigDefault)},15125,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0});var n={VALID_LOADERS:function(){return s},imageConfigDefault:function(){return o}};for(var a in n)Object.defineProperty(r,a,{enumerable:!0,get:n[a]});let s=["default","imgix","cloudinary","akamai","custom"],o={deviceSizes:[640,750,828,1080,1200,1920,2048,3840],imageSizes:[32,48,64,96,128,256,384],path:"/_next/image",loader:"default",loaderFile:"",domains:[],disableStaticImages:!1,minimumCacheTTL:14400,formats:["image/webp"],maximumDiskCacheSize:void 0,maximumRedirects:3,maximumResponseBody:5e7,dangerouslyAllowLocalIP:!1,dangerouslyAllowSVG:!1,contentSecurityPolicy:"script-src 'none'; frame-src 'none'; sandbox;",contentDispositionType:"attachment",localPatterns:void 0,remotePatterns:[],qualities:[75],unoptimized:!1,customCacheHandler:!1}}]);
@@ -0,0 +1,15 @@
1
+ __turbopack_load_page_chunks__("/payment-provider", [
2
+ "static/chunks/2-s6g5_cyahx8.js",
3
+ "static/chunks/0nz8nqr7k7pni.js",
4
+ "static/chunks/2loz6t7f69t0c.js",
5
+ "static/chunks/2onfts3kpe9d8.js",
6
+ "static/chunks/0hm6-xlqw4vmr.js",
7
+ "static/chunks/0jo3ujn_icmb9.js",
8
+ "static/chunks/09pees0w94cvm.js",
9
+ "static/chunks/07q8ufsdxo1tx.js",
10
+ "static/chunks/1f04wea7zvjf5.js",
11
+ "static/chunks/0f-hhcgpd3kjt.js",
12
+ "static/chunks/1qnuk3631sd6i.js",
13
+ "static/chunks/0zl6mu89n1_wq.js",
14
+ "static/chunks/turbopack-0rq3y47awgwpt.js"
15
+ ])
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,50595,e=>{"use strict";var t=e.i(91398),r=e.i(41158),n=e.i(3828),i=e.i(69322);e.s(["default",0,({routeName:e=null,currentPageTitle:s=null,depth:o=null})=>{let a=(0,n.useRouter)(),{formatMessage:l}=(0,i.useIntl)(),u={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},c=a.asPath?.split("/")?.filter((e,t)=>a.asPath?.split("/")?.indexOf(e)===t);if(1===c.length)return null;let d="";o&&c.splice(o),e&&(c[c.length-1]=e);let f=c?.map(t=>{if(d+=`${t}/`,!t)return{name:l({id:"home",defaultMessage:"Home"}),path:"/"};let r=t?.split("?")[0],n=e?r:r.replace(/-/g," "),i=u[r];return{name:i?l({id:i,defaultMessage:n}):decodeURIComponent(n),path:d.replace(/.$/,"")}});return(0,t.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,t.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,n)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==n&&(0,t.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)(r.default,{href:e.path,className:"text-sm font-medium capitalize text-text-muted dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-focus-ring rounded-md px-1 py-1",children:n===f.length-1&&s?s:e.name})]})},e.path))})})}])},21623,e=>{"use strict";var t=e.i(91398),r=e.i(56206);e.s(["default",0,({text:e,children:n,onClick:i,className:s="",disabled:o=!1,id:a="",variant:l="primary",size:u="md",type:c="button",loading:d=!1,icon:f,iconRight:h,fullWidth:p=!1,rounded:v="md",ariaLabel:y,...b})=>{let m=n||e,g=(f||h)&&m?"gap-2":"";return(0,t.jsx)("button",{id:a,type:c,disabled:o||d,onClick:i,"aria-label":y,className:(0,r.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[u],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[v],{primary:"border border-accent bg-accent text-text-on-accent hover:bg-accent-hover focus:ring-focus-ring",secondary:"border border-border-default bg-surface text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",tertiary:"border border-border-subtle bg-surface text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",quaternary:"bg-transparent text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",danger:"border border-danger bg-surface text-danger hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-text-secondary hover:text-text-primary hover:bg-surface-raised focus:ring-focus-ring",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-border-default bg-surface-raised text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",input:"border border-border-default bg-surface text-text-primary hover:border-slate-400 dark:hover:border-slate-500 focus:ring-focus-ring focus:border-slate-500"}[l],g,{"w-full":p},s),...b,children:d?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),m]}):(0,t.jsxs)(t.Fragment,{children:[f,m,h]})})}])},25327,e=>{"use strict";var t=e.i(91398),r=e.i(5205),n=e.i(41158),i=e.i(69322),s=e.i(37369),o=e.i(21623);e.s(["default",0,({headerText:e=null,onEdit:a=null,onDelete:l=null,children:u=null,title:c=null,addPath:d=null,addButtonText:f=null})=>{let{formatMessage:h}=(0,i.useIntl)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{children:(0,t.jsxs)("title",{children:["Unchained AdminUI - ",c||e," "]})}),(0,t.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,t.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[u,d&&(0,t.jsx)(n.default,{href:d,children:(0,t.jsx)(o.default,{variant:"secondary",icon:(0,t.jsx)(s.PlusIcon,{className:"h-5 w-5"}),text:f||h({id:"add",defaultMessage:"Add"})})}),a&&(0,t.jsx)(o.default,{variant:"secondary",onClick:a,text:h({id:"edit",defaultMessage:"Edit"})}),l&&(0,t.jsx)(o.default,{variant:"danger",onClick:l,text:h({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},76810,e=>{"use strict";var t,r;(r=t||(t={}))[r.loading=1]="loading",r[r.setVariables=2]="setVariables",r[r.fetchMore=3]="fetchMore",r[r.refetch=4]="refetch",r[r.poll=6]="poll",r[r.ready=7]="ready",r[r.error=8]="error",r[r.streaming=9]="streaming",e.s(["NetworkStatus",0,t])},32171,28775,32854,e=>{"use strict";var t=e.i(24669),r=e.i(91788),n=e.i(18018),i=e.i(32106),s=e.i(76810),o=e.i(91584),a=e.i(30928),l=e.i(15953);let u=Symbol.for("apollo.skipToken");function c(e,n){let i=r.useRef(void 0);return i.current&&(0,t.equal)(i.current.deps,n)||(i.current={value:e(),deps:n}),i.current.value}e.s(["useDeepMemo",0,c],28775);let d=Symbol.for("apollo.hook.wrappers");var f=e.i(21805),h=e.i(98926),p=e.i(29520),v=e.i(21953),y=e.i(22420),b=e.i(93532);let m=!1,g=r.useSyncExternalStore,x="ReactNative"==(0,y.maybe)(()=>navigator.product),_=(0,y.maybe)(()=>navigator.userAgent.indexOf("jsdom")>=0)||!1,w=(v.canUseDOM||x)&&!_,S=g||((e,t,n)=>{let i=t();p.__DEV__&&!m&&i!==t()&&(m=!0,b.invariant.error(34));let[{inst:s},o]=r.useState({inst:{value:i,getSnapshot:t}});return w?r.useLayoutEffect(()=>{Object.assign(s,{value:i,getSnapshot:t}),j(s)&&o({inst:s})},[e,i,t]):Object.assign(s,{value:i,getSnapshot:t}),r.useEffect(()=>(j(s)&&o({inst:s}),e(function(){j(s)&&o({inst:s})})),[e]),i});function j({value:e,getSnapshot:t}){try{return e!==t()}catch{return!0}}e.s(["useSyncExternalStore",0,S],32854);let k=Symbol(),A=function(e,...[t]){return(function(e,t,n){let i=[n.queryManager,e.startsWith("use")?r.useContext((0,f.getApolloContext)()):void 0],s=t;for(let t of i){let r=t?.[d]?.[e];r&&(s=r(s))}return s})("useQuery",P,(0,h.useApolloClient)("object"==typeof t?t.client:void 0))(e,t)};function P(e,s={}){var o,d,f,p,v,y,b,m;let g,x=(0,h.useApolloClient)("object"==typeof s?s.client:void 0),{ssr:_}="object"==typeof s?s:{},w=c(()=>{if(d===u){let e={...(0,a.mergeOptions)(f,{query:o,fetchPolicy:"standby"}),[l.variablesUnknownSymbol]:!0};return e[I]=!0,e}let e=(0,a.mergeOptions)(f,{...d,query:o});return d.skip&&(e.initialFetchPolicy=d.initialFetchPolicy||d.fetchPolicy,e.fetchPolicy="standby"),e},[o=e,d=s,f=x.defaultOptions.watchQuery]);function j(t){let r=x.watchQuery(w);return{client:x,query:e,observable:r,resultData:{current:r.getCurrentResult(),previousData:t?.resultData.current.data,variables:r.variables}}}let[O,E]=r.useState(j);(x!==O.client||e!==O.query)&&E(O=j(O));let{observable:T,resultData:C}=O;p=w,v=T,p.fetchPolicy||(p.fetchPolicy=v.options.initialFetchPolicy),function(e,r,n){if(r[k]&&!(0,t.equal)(r[k],n)){var i,s;r[k][I]&&!n.initialFetchPolicy&&(n.initialFetchPolicy=n.fetchPolicy),(i=r[k],s=n,i.query===s.query&&(0,t.equal)(i.variables,s.variables)&&(i.fetchPolicy===s.fetchPolicy||"standby"!==s.fetchPolicy&&"standby"!==i.fetchPolicy))?r.applyOptions(n):r.reobserve(n);let o=r.getCurrentResult();(0,t.equal)(o.data,e.current.data)||(e.previousData=e.current.data||e.previousData),e.current=o,e.variables=r.variables}r[k]=n}(C,T,w);let M=(y=T,b=C,m=_,g=y.options.fetchPolicy,S(r.useCallback(e=>{let r=y.pipe((0,i.observeOn)(n.asapScheduler)).subscribe(r=>{let n=b.current;(0,t.equal)(n,r)&&(0,t.equal)(b.variables,y.variables)||(b.variables=y.variables,n.data&&!(0,t.equal)(n.data,r.data)&&(b.previousData=n.data),b.current=r,e())});return()=>{setTimeout(()=>r.unsubscribe())}},[y,b]),()=>b.current,()=>"standby"!==g&&!1===m||"no-cache"===g?A.ssrDisabledResult:b.current)),U=r.useMemo(()=>({refetch:T.refetch.bind(T),fetchMore:T.fetchMore.bind(T),updateQuery:T.updateQuery.bind(T),startPolling:T.startPolling.bind(T),stopPolling:T.stopPolling.bind(T),subscribeToMore:T.subscribeToMore.bind(T)}),[T]),N=C.previousData;return r.useMemo(()=>{let{partial:e,...t}=M;return{...t,client:x,observable:T,variables:T.variables,previousData:N,...U}},[M,x,T,N,U])}let I=Symbol();A.ssrDisabledResult=(0,o.maybeDeepFreeze)({loading:!0,data:void 0,dataState:"empty",error:void 0,networkStatus:s.NetworkStatus.loading,partial:!0}),e.s(["useQuery",0,A],32171)},91584,66930,15953,e=>{"use strict";var t=e.i(29520);function r(e){return null!==e&&"object"==typeof e}e.s(["isNonNullObject",0,r],66930),e.s(["maybeDeepFreeze",0,function(e){let n;return t.__DEV__&&(n=new Set([e])).forEach(e=>{r(e)&&function(e){if(t.__DEV__&&!Object.isFrozen(e))try{Object.freeze(e)}catch(e){if(e instanceof TypeError)return null;throw e}return e}(e)===e&&Object.getOwnPropertyNames(e).forEach(t=>{r(e[t])&&n.add(e[t])})}),e}],91584);let n=Symbol.for("apollo.result.extensions"),i=Symbol.for("apollo.result.streamInfo"),s=Symbol.for("apollo.observableQuery.variablesUnknown");e.s(["extensionsSymbol",0,n,"streamInfoSymbol",0,i,"variablesUnknownSymbol",0,s],15953)},84985,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...n},i){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:i,"aria-labelledby":r},n),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["default",0,r])},37369,e=>{"use strict";var t=e.i(84985);e.s(["PlusIcon",()=>t.default])},80963,(e,t,r)=>{"use strict";e.i(50461),Object.defineProperty(r,"__esModule",{value:!0});var n={default:function(){return v},defaultHead:function(){return d}};for(var i in n)Object.defineProperty(r,i,{enumerable:!0,get:n[i]});let s=e.r(31640),o=e.r(71650),a=e.r(91398),l=o._(e.r(91788)),u=s._(e.r(94941)),c=e.r(13584);function d(){return[(0,a.jsx)("meta",{charSet:"utf-8"},"charset"),(0,a.jsx)("meta",{name:"viewport",content:"width=device-width"},"viewport")]}function f(e,t){return"string"==typeof t||"number"==typeof t?e:t.type===l.default.Fragment?e.concat(l.default.Children.toArray(t.props.children).reduce((e,t)=>"string"==typeof t||"number"==typeof t?e:e.concat(t),[])):e.concat(t)}let h=["name","httpEquiv","charSet","itemProp"];function p(e){let t,r,n,i;return e.reduce(f,[]).reverse().concat(d().reverse()).filter((t=new Set,r=new Set,n=new Set,i={},e=>{let s=!0,o=!1;if(e.key&&"number"!=typeof e.key&&e.key.indexOf("$")>0){o=!0;let r=e.key.slice(e.key.indexOf("$")+1);t.has(r)?s=!1:t.add(r)}switch(e.type){case"title":case"base":r.has(e.type)?s=!1:r.add(e.type);break;case"meta":for(let t=0,r=h.length;t<r;t++){let r=h[t];if(e.props.hasOwnProperty(r))if("charSet"===r)n.has(r)?s=!1:n.add(r);else{let t=e.props[r],n=i[r]||new Set;("name"!==r||!o)&&n.has(t)?s=!1:(n.add(t),i[r]=n)}}}return s})).reverse().map((e,t)=>{let r=e.key||t;return l.default.cloneElement(e,{key:r})})}let v=function({children:e}){let t=(0,l.useContext)(c.HeadManagerContext);return(0,a.jsx)(u.default,{reduceComponentsToState:p,headManager:t,children:e})};("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},94941,(e,t,r)=>{"use strict";Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return a}});let n=e.r(91788),i="u"<typeof window,s=i?()=>{}:n.useLayoutEffect,o=i?()=>{}:n.useEffect;function a(e){let{headManager:t,reduceComponentsToState:r}=e;function a(){if(t&&t.mountedInstances){let e=n.Children.toArray(Array.from(t.mountedInstances).filter(Boolean));t.updateHead(r(e))}}return i&&(t?.mountedInstances?.add(e.children),a()),s(()=>(t?.mountedInstances?.add(e.children),()=>{t?.mountedInstances?.delete(e.children)})),s(()=>(t&&(t._pendingUpdate=a),()=>{t&&(t._pendingUpdate=a)})),o(()=>(t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null),()=>{t&&t._pendingUpdate&&(t._pendingUpdate(),t._pendingUpdate=null)})),null}},5205,(e,t,r)=>{t.exports=e.r(80963)},61340,57070,72572,e=>{"use strict";var t=e.i(89280),r=e.i(49363);function n(e){var t=e(function(e){Error.call(e),e.stack=Error().stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}e.s(["createErrorClass",0,n],57070);var i=n(function(e){return function(t){e(this),this.message=t?t.length+" errors occurred during unsubscription:\n"+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=t}});function s(e,t){if(e){var r=e.indexOf(t);0<=r&&e.splice(r,1)}}e.s(["arrRemove",0,s],72572);var o=function(){var e;function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e,n,s,o,a,u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var c=(0,t.__values)(u),d=c.next();!d.done;d=c.next())d.value.remove(this)}catch(t){e={error:t}}finally{try{d&&!d.done&&(n=c.return)&&n.call(c)}finally{if(e)throw e.error}}else u.remove(this);var f=this.initialTeardown;if((0,r.isFunction)(f))try{f()}catch(e){a=e instanceof i?e.errors:[e]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var p=(0,t.__values)(h),v=p.next();!v.done;v=p.next()){var y=v.value;try{l(y)}catch(e){a=null!=a?a:[],e instanceof i?a=(0,t.__spreadArray)((0,t.__spreadArray)([],(0,t.__read)(a)),(0,t.__read)(e.errors)):a.push(e)}}}catch(e){s={error:e}}finally{try{v&&!v.done&&(o=p.return)&&o.call(p)}finally{if(s)throw s.error}}}if(a)throw new i(a)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)l(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=null!=(t=this._finalizers)?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&s(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&s(t,e),e instanceof n&&e._removeParent(this)},(e=new n).closed=!0,n.EMPTY=e,n}(),a=o.EMPTY;function l(e){(0,r.isFunction)(e)?e():e.unsubscribe()}e.s(["EMPTY_SUBSCRIPTION",0,a,"Subscription",0,o,"isSubscription",0,function(e){return e instanceof o||e&&"closed"in e&&(0,r.isFunction)(e.remove)&&(0,r.isFunction)(e.add)&&(0,r.isFunction)(e.unsubscribe)}],61340)},99657,80406,33229,58365,13616,e=>{"use strict";var t=e.i(89280),r=e.i(49363),n=e.i(61340),i={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};e.s(["config",0,i],80406);var s={setTimeout:function(e,r){for(var n=[],i=2;i<arguments.length;i++)n[i-2]=arguments[i];var o=s.delegate;return(null==o?void 0:o.setTimeout)?o.setTimeout.apply(o,(0,t.__spreadArray)([e,r],(0,t.__read)(n))):setTimeout.apply(void 0,(0,t.__spreadArray)([e,r],(0,t.__read)(n)))},clearTimeout:function(e){var t=s.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function o(e){s.setTimeout(function(){var t=i.onUnhandledError;if(t)t(e);else throw e})}function a(){}e.s(["reportUnhandledError",0,o],33229);var l=u("C",void 0,void 0);function u(e,t,r){return{kind:e,value:t,error:r}}var c=null;function d(e){i.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=e)}e.s(["captureError",0,d,"errorContext",0,function(e){if(i.useDeprecatedSynchronousErrorHandling){var t=!c;if(t&&(c={errorThrown:!1,error:null}),e(),t){var r=c,n=r.errorThrown,s=r.error;if(c=null,n)throw s}}else e()}],58365);var f=function(e){function r(t){var r=e.call(this)||this;return r.isStopped=!1,t?(r.destination=t,(0,n.isSubscription)(t)&&t.add(r)):r.destination=g,r}return(0,t.__extends)(r,e),r.create=function(e,t,r){return new y(e,t,r)},r.prototype.next=function(e){this.isStopped?m(u("N",e,void 0),this):this._next(e)},r.prototype.error=function(e){this.isStopped?m(u("E",void 0,e),this):(this.isStopped=!0,this._error(e))},r.prototype.complete=function(){this.isStopped?m(l,this):(this.isStopped=!0,this._complete())},r.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},r.prototype._next=function(e){this.destination.next(e)},r.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},r.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},r}(n.Subscription),h=Function.prototype.bind;function p(e,t){return h.call(e,t)}var v=function(){function e(e){this.partialObserver=e}return e.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(e){b(e)}},e.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(e){b(e)}else b(e)},e.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(e){b(e)}},e}(),y=function(e){function n(t,n,s){var o,a,l=e.call(this)||this;return(0,r.isFunction)(t)||!t?o={next:null!=t?t:void 0,error:null!=n?n:void 0,complete:null!=s?s:void 0}:l&&i.useDeprecatedNextContext?((a=Object.create(t)).unsubscribe=function(){return l.unsubscribe()},o={next:t.next&&p(t.next,a),error:t.error&&p(t.error,a),complete:t.complete&&p(t.complete,a)}):o=t,l.destination=new v(o),l}return(0,t.__extends)(n,e),n}(f);function b(e){i.useDeprecatedSynchronousErrorHandling?d(e):o(e)}function m(e,t){var r=i.onStoppedNotification;r&&s.setTimeout(function(){return r(e,t)})}var g={closed:!0,next:a,error:function(e){throw e},complete:a};e.s(["SafeSubscriber",0,y,"Subscriber",0,f],13616);var x=function(e){function r(t,r,n,i,s,o){var a=e.call(this,t)||this;return a.onFinalize=s,a.shouldUnsubscribe=o,a._next=r?function(e){try{r(e)}catch(e){t.error(e)}}:e.prototype._next,a._error=i?function(e){try{i(e)}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=n?function(){try{n()}catch(e){t.error(e)}finally{this.unsubscribe()}}:e.prototype._complete,a}return(0,t.__extends)(r,e),r.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),r||null==(t=this.onFinalize)||t.call(this)}},r}(f);e.s(["createOperatorSubscriber",0,function(e,t,r,n,i){return new x(e,t,r,n,i)}],99657)},32106,e=>{"use strict";var t=e.i(95065),r=e.i(81288),n=e.i(99657);e.s(["observeOn",0,function(e,i){return void 0===i&&(i=0),(0,r.operate)(function(r,s){r.subscribe((0,n.createOperatorSubscriber)(s,function(r){return(0,t.executeSchedule)(s,e,function(){return s.next(r)},i)},function(){return(0,t.executeSchedule)(s,e,function(){return s.complete()},i)},function(r){return(0,t.executeSchedule)(s,e,function(){return s.error(r)},i)}))})}])},42410,e=>{"use strict";var t,r=e.i(89280),n=e.i(87268),i=1,s={};function o(e){return e in s&&(delete s[e],!0)}var a=function(e){var r=i++;return s[r]=!0,t||(t=Promise.resolve()),t.then(function(){return o(r)&&e()}),r},l=function(e){o(e)},u={setImmediate:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=u.delegate;return((null==n?void 0:n.setImmediate)||a).apply(void 0,(0,r.__spreadArray)([],(0,r.__read)(e)))},clearImmediate:function(e){var t=u.delegate;return((null==t?void 0:t.clearImmediate)||l)(e)},delegate:void 0},c=function(e){function t(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n}return(0,r.__extends)(t,e),t.prototype.requestAsyncId=function(t,r,n){return(void 0===n&&(n=0),null!==n&&n>0)?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t._scheduled||(t._scheduled=u.setImmediate(t.flush.bind(t,void 0))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!=n?n>0:this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);var i,s=t.actions;null!=r&&(null==(i=s[s.length-1])?void 0:i.id)!==r&&(u.clearImmediate(r),t._scheduled===r&&(t._scheduled=void 0))},t}(n.AsyncAction);e.s(["AsapAction",0,c],42410)},87268,e=>{"use strict";var t=e.i(89280),r=function(e){function r(t,r){return e.call(this)||this}return(0,t.__extends)(r,e),r.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},r}(e.i(61340).Subscription),n={setInterval:function(e,r){for(var i=[],s=2;s<arguments.length;s++)i[s-2]=arguments[s];var o=n.delegate;return(null==o?void 0:o.setInterval)?o.setInterval.apply(o,(0,t.__spreadArray)([e,r],(0,t.__read)(i))):setInterval.apply(void 0,(0,t.__spreadArray)([e,r],(0,t.__read)(i)))},clearInterval:function(e){var t=n.delegate;return((null==t?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},i=e.i(72572),s=function(e){function r(t,r){var n=e.call(this,t,r)||this;return n.scheduler=t,n.work=r,n.pending=!1,n}return(0,t.__extends)(r,e),r.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var r,n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,t)),this.pending=!0,this.delay=t,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,t),this},r.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),n.setInterval(e.flush.bind(e,this),r)},r.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return t;null!=t&&n.clearInterval(t)},r.prototype.execute=function(e,t){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},r.prototype._execute=function(e,t){var r,n=!1;try{this.work(e)}catch(e){n=!0,r=e||Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),r},r.prototype.unsubscribe=function(){if(!this.closed){var t=this.id,r=this.scheduler,n=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,(0,i.arrRemove)(n,this),null!=t&&(this.id=this.recycleAsyncId(r,t,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},r}(r);e.s(["AsyncAction",0,s],87268)},12884,e=>{"use strict";var t=e.i(89280),r=e.i(68827),n=function(){function e(t,r){void 0===r&&(r=e.now),this.schedulerActionCtor=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},e.now=r.dateTimestampProvider.now,e}(),i=function(e){function r(t,r){void 0===r&&(r=n.now);var i=e.call(this,t,r)||this;return i.actions=[],i._active=!1,i}return(0,t.__extends)(r,e),r.prototype.flush=function(e){var t,r=this.actions;if(this._active)return void r.push(e);this._active=!0;do if(t=e.execute(e.state,e.delay))break;while(e=r.shift())if(this._active=!1,t){for(;e=r.shift();)e.unsubscribe();throw t}},r}(n);e.s(["AsyncScheduler",0,i],12884)},18018,e=>{"use strict";var t=e.i(42410),r=e.i(89280),n=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,r.__extends)(t,e),t.prototype.flush=function(e){this._active=!0;var t,r=this._scheduled;this._scheduled=void 0;var n=this.actions;e=e||n.shift();do if(t=e.execute(e.state,e.delay))break;while((e=n[0])&&e.id===r&&n.shift())if(this._active=!1,t){for(;(e=n[0])&&e.id===r&&n.shift();)e.unsubscribe();throw t}},t}(e.i(12884).AsyncScheduler))(t.AsapAction);e.s(["asapScheduler",0,n],18018)},68827,e=>{"use strict";var t={now:function(){return(t.delegate||Date).now()},delegate:void 0};e.s(["dateTimestampProvider",0,t])},95065,e=>{"use strict";e.s(["executeSchedule",0,function(e,t,r,n,i){void 0===n&&(n=0),void 0===i&&(i=!1);var s=t.schedule(function(){r(),i?e.add(this.schedule(null,n)):this.unsubscribe()},n);if(e.add(s),!i)return s}])},49363,e=>{"use strict";e.s(["isFunction",0,function(e){return"function"==typeof e}])},81288,e=>{"use strict";var t=e.i(49363);e.s(["operate",0,function(e){return function(r){if((0,t.isFunction)(null==r?void 0:r.lift))return r.lift(function(t){try{return e(t,this)}catch(e){this.error(e)}});throw TypeError("Unable to lift unknown Observable type")}}])}]);
@@ -0,0 +1,7 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,57243,e=>{"use strict";var s=e.i(91398),t=e.i(16984),a=e.i(82226);e.s(["default",0,({validators:e=[],value:l="",...i})=>(0,s.jsx)(t.default,{value:l,autoComplete:i?.autoComplete||"on",name:"email",validators:[...e,a.validateEmail],...i})])},47863,e=>{"use strict";var s=e.i(91398),t=e.i(69322),a=e.i(28401),l=e.i(41158),i=e.i(5505),d=e.i(57243),r=e.i(69211),o=e.i(63094),n=e.i(21128),u=e.i(98949);let c=({onSubmit:e,onSubmitSuccess:a})=>{let{formatMessage:c}=(0,t.useIntl)(),m=(0,u.default)({submit:e,onSubmitSuccess:a,getSubmitErrorMessage:()=>(m.api.setFieldError("email",c({id:"email_address_not_exist",defaultMessage:"Provided email does not exist"})),null),initialValues:{email:""}});return(0,s.jsx)(i.default,{children:(0,s.jsxs)(r.default,{form:m,className:"mt-8 space-y-6 px-4 pt-3 pb-8 shadow-sm sm:rounded-lg sm:px-10",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"py-4",children:c({id:"forgot_password_header_description",defaultMessage:"Enter your email address below and we'll send you a link to reset your password!"})}),(0,s.jsx)(d.default,{name:"email",id:"email-address",label:c({id:"email_address",defaultMessage:"Email Address"}),placeholder:c({id:"email_address",defaultMessage:"Email Address"}),required:!0})]}),(0,s.jsx)(o.default,{}),(0,s.jsx)("div",{className:"mb-6",children:(0,s.jsx)(n.default,{className:"w-full ",label:c({id:"send_reset_link",defaultMessage:"Send reset link"})})}),(0,s.jsxs)("p",{className:"text-center text-sm text-slate-400",children:[c({id:"dont_have_account",defaultMessage:"Don't have an account yet?"})," ",(0,s.jsx)(l.default,{href:"/sign-up",className:"font-semibold text-slate-900 dark:text-slate-800 focus:text-slate-950 dark:hover:text-slate-400 focus:underline focus:outline-hidden",children:c({id:"sign_up",defaultMessage:"Sign up"})}),"."]})]})})};var m=e.i(59080),x=e.i(76204);let f=m.gql`
2
+ mutation ForgotPassword($email: String!) {
3
+ forgotPassword(email: $email) {
4
+ success
5
+ }
6
+ }
7
+ `;var h=e.i(87284);let g=()=>{let{forgotPassword:e}=(()=>{let[e]=(0,x.useMutation)(f);return{forgotPassword:async({email:s})=>e({variables:{email:s}})}})(),{formatMessage:l}=(0,t.useIntl)(),i=async({email:s})=>{let{data:t}=await e({email:s});return{success:t?.forgotPassword?.success}};return(0,s.jsx)("div",{className:"flex min-h-full items-center justify-center py-12 px-4 sm:px-6 lg:px-8",children:(0,s.jsxs)("div",{className:"w-full max-w-md space-y-4 text-center",children:[(0,s.jsxs)("div",{children:[(0,s.jsx)(h.default,{className:"mx-auto",src:"/logo-light.svg",width:160,height:100,alt:l({id:"unchained_logo",defaultMessage:"Unchained Logo"})}),(0,s.jsx)("h2",{className:"text-center text-3xl text-text-primary",children:l({id:"forget_password",defaultMessage:"Forgot your password?"})})]}),(0,s.jsx)(c,{onSubmit:i,onSubmitSuccess:(e,{email:s})=>(a.toast.success(l({id:"reset_link_sent",defaultMessage:"Password reset link sent to {email} "},{email:s})),!0)})]})})};g.getLayout=e=>e,e.s(["default",0,g],47863)},8530,(e,s,t)=>{let a="/account/forgot-password";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(47863)]),s.hot&&s.hot.dispose(function(){window.__NEXT_P.push([a])})},28805,e=>{e.v(s=>Promise.all(["static/chunks/1jqnrnw0p9tw5.js"].map(s=>e.l(s))).then(()=>s(79466)))},48761,e=>{e.v(s=>Promise.all(["static/chunks/0wooaklx8_14q.js"].map(s=>e.l(s))).then(()=>s(93594)))}]);
@@ -0,0 +1,60 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,36792,(e,t,s)=>{let r="/users/UserDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(2385)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([r])})},30434,e=>{"use strict";var t=e.i(91398),s=e.i(56206),r=e.i(60741);e.s(["default",0,e=>{let{disabled:a,labelClassName:l,containerClassName:i,inputClassName:d,...u}=e,o=(0,r.default)({...e,type:"checkbox"});return(0,t.jsxs)("div",{className:(0,s.default)("",{"text-rose-600":!!o.error,checkbox:!0,disabled:o.disabled,required:o.required},i),children:[(0,t.jsx)("input",{checked:!!o.value,disabled:a,id:o.name,name:o.name,onChange:o.onChange,onBlur:o.onBlur,type:"checkbox",className:(0,s.default)("h-4 w-4 rounded-xs border-border-default bg-white dark:!bg-slate-800 text-indigo-600 dark:text-slate-200 focus:ring-focus-ring",d,e.className),...u}),(0,t.jsx)("label",{htmlFor:o.name,className:(0,s.default)("text-sm text-text-primary",l,{"text-danger":!!o.error}),children:o.label})]})}])},60513,75284,e=>{"use strict";var t=e.i(91788),s=e.i(28401),r=e.i(69322),a=e.i(30086),l=e.i(66773),i=e.i(98926),d=e.i(63104),u=e.i(3828);e.s(["useCSVExport",0,()=>{let[e,o]=(0,t.useState)(!1),n=(0,i.useApolloClient)(),c=(0,u.useRouter)(),{addWork:f}=(0,a.default)(),{formatMessage:k}=(0,r.useIntl)(),p=(0,t.useCallback)(async e=>{let{data:t}=await n.query({query:(0,d.GetWorkQuery)(),variables:{workId:e},fetchPolicy:"network-only"});return t?.work??null},[n]);return{isExporting:e,exportCSV:(0,t.useCallback)(async({type:e,pollInterval:t=2e3,...r})=>{o(!0);try{let s=await f({type:l.IWorkType.BulkExport,input:{type:e,...r}}),a=s?.data?.addWork?._id;if(!a)throw Error("Failed to create export work");await new Promise((e,s)=>{let r=setInterval(async()=>{try{let t=await p(a);if(!t)throw Error("Work not found");(t.status===l.IWorkStatus.Success||t.status===l.IWorkStatus.Failed)&&(clearInterval(r),t.status===l.IWorkStatus.Success&&t.success?(c.push(`/exports?workId=${t._id}`),e(t)):s(t.error||Error("Export failed")))}catch(e){clearInterval(r),s(e)}},t)})}catch(e){return console.error("Export failed:",e),s.toast.error(k({id:"export_failed",defaultMessage:"Export failed. Please try again."})),null}finally{o(!1)}},[f,p,c,k])}}],60513);var o=e.i(91398),n=e.i(69211),c=e.i(30434),f=e.i(98949),k=e.i(21128);e.s(["default",0,function({options:e,onSubmit:s,loading:a=!1,successMessage:l=""}){let{formatMessage:i}=(0,r.useIntl)(),d=(0,t.useMemo)(()=>e.reduce((e,t)=>(e[t.key]=t.defaultChecked??!0,e),{}),[e]),u=async e=>(await s(e),{success:!0}),p=(0,f.default)({successMessage:l||i({id:"export_completed",defaultMessage:"Data exported successfully"}),submit:u,enableReinitialize:!0,initialValues:d});return(0,o.jsx)(n.default,{form:p,children:p.api.isSubmitting?(0,o.jsxs)("div",{className:"flex items-center gap-3 p-4 mb-4 rounded-lg animate-pulse",children:[(0,o.jsx)("div",{className:"w-5 h-5 border-2 border-blue-600 border-t-transparent rounded-full animate-spin"}),(0,o.jsx)("span",{className:"text-sm font-medium text-blue-700 dark:text-blue-300",children:i({id:"exporting_message",defaultMessage:"Generating your export files. This may take a moment..."})})]}):(0,o.jsxs)("fieldset",{disabled:a,style:{border:"none",padding:0},children:[(0,o.jsxs)("h3",{children:[" ",i({id:"export_options",defaultMessage:"Export options"})]}),e.map(e=>(0,o.jsx)(c.default,{name:e.key,label:e.label,hideLabel:!0,className:"mr-2 h-4 w-4 justify-between rounded-sm border-border-default bg-white text-slate-950 focus:ring-focus-ring lg:items-center",type:"checkbox"},e.key)),(0,o.jsx)(k.default,{label:i({id:"submit",defaultMessage:"Submit"}),disabled:a})]})})}],75284)},94672,e=>{"use strict";var t=e.i(59080);let s=t.gql`
2
+ fragment WorkFragment on Work {
3
+ _id
4
+ type
5
+ scheduled
6
+ status
7
+ started
8
+ success
9
+ finished
10
+ created
11
+ deleted
12
+ retries
13
+ original {
14
+ _id
15
+ retries
16
+ }
17
+ input
18
+ result
19
+ }
20
+ `;e.s(["default",0,s])},30086,e=>{"use strict";var t=e.i(59080),s=e.i(76204);let r=t.gql`
21
+ mutation AddWork(
22
+ $type: WorkType!
23
+ $priority: Int! = 0
24
+ $input: JSON
25
+ $originalWorkId: ID
26
+ $scheduled: Timestamp
27
+ $retries: Int! = 20
28
+ ) {
29
+ addWork(
30
+ type: $type
31
+ priority: $priority
32
+ input: $input
33
+ originalWorkId: $originalWorkId
34
+ scheduled: $scheduled
35
+ retries: $retries
36
+ ) {
37
+ _id
38
+ }
39
+ }
40
+ `;e.s(["default",0,()=>{let[e]=(0,s.useMutation)(r);return{addWork:async({type:t,priority:s,input:r,originalWorkId:a,scheduled:l=null,retries:i})=>e({variables:{type:t,priority:s,input:r,originalWorkId:a,scheduled:l,retries:i},refetchQueries:["WorkQueue"]})}}])},63104,e=>{"use strict";var t=e.i(59080),s=e.i(32171),r=e.i(70693),a=e.i(94672);let l=(e="")=>t.gql`
41
+ query Work($workId: ID!) {
42
+ work(workId: $workId) {
43
+ ...WorkFragment
44
+ ${e}
45
+ error
46
+ priority
47
+ worker
48
+ timeout
49
+ }
50
+ }
51
+ ${a.default}
52
+ `;e.s(["GetWorkQuery",0,l,"default",0,({workId:e=null,...t})=>{let{customProperties:a}=(0,r.default)(),{data:i,loading:d,error:u,previousData:o}=(0,s.useQuery)(l(a?.Work),{skip:!e,variables:{workId:e},...t});return{work:i?.work||o?.work,loading:d,error:u}}])},2385,e=>{"use strict";var t=e.i(91398),s=e.i(3828),r=e.i(66773),a=e.i(69322),l=e.i(59080),i=e.i(32171),d=e.i(70693),u=e.i(73298);let o=({userId:e=null}={})=>{let{customProperties:t,hydrateFragment:s}=(0,d.default)(),{data:r,loading:a,error:o}=(0,i.useQuery)(((e="")=>l.gql`
53
+ query User($userId: ID) {
54
+ user(userId: $userId) {
55
+ ${e}
56
+ ...UserFragment
57
+ }
58
+ }
59
+ ${u.default}
60
+ `)(t?.User),{skip:!e,variables:{userId:e}}),n=r?.user,c=s(t?.User,n);return{user:n,loading:a,error:o,extendedData:c}};var n=e.i(50595),c=e.i(25327),f=e.i(62274),k=e.i(23745),p=e.i(91788),x=e.i(6607),m=e.i(15971),h=e.i(28401),g=e.i(58971),b=e.i(93380),y=e.i(21623),w=e.i(60513),_=e.i(75284);let I=({userId:e})=>{let{setModal:s}=(0,x.default)(),{user:r,loading:l}=o({userId:e}),{exportUser:i,isExporting:d}=(()=>{let{exportCSV:e,isExporting:t}=(0,w.useCSVExport)();return{exportUser:(0,p.useCallback)(async t=>{await e({type:"User",...t})},[e]),isExporting:t}})(),{formatMessage:u}=(0,a.useIntl)(),n=[{key:"exportBookmarks",label:u({id:"bookmarks",defaultMessage:"Bookmarks"}),defaultChecked:!0},{key:"exportOrders",label:u({id:"orders",defaultMessage:"Orders"}),defaultChecked:!0},{key:"exportReviews",label:u({id:"reviews",defaultMessage:"Reviews"}),defaultChecked:!0},{key:"exportQuotations",label:u({id:"quotations",defaultMessage:"Quotations"}),defaultChecked:!0},{key:"exportEnrollments",label:u({id:"enrollments",defaultMessage:"Enrollments"}),defaultChecked:!0}],c=(0,p.useCallback)(async t=>{await i({userId:e,...t}),s(null)},[e,i,s]);return l?null:(0,t.jsx)(y.default,{onClick:()=>{s((0,t.jsx)(_.default,{options:n,onSubmit:c,loading:d}))},disabled:d||!r,variant:"secondary",text:u(d?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};e.s(["default",0,({userId:e})=>{let{formatMessage:l}=(0,a.useIntl)(),{setModal:i}=(0,x.default)(),{deleteUser:d}=(0,k.default)(),{user:u,extendedData:y}=o({userId:e}),w=(0,s.useRouter)(),{hasRole:_}=(0,g.default)(),v=(0,p.useCallback)(async()=>{await i((0,t.jsx)(m.default,{onCancelClick:async()=>i(""),message:l({id:"delete_user_account_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it "}),onOkClick:async()=>{i(""),await d(u._id),h.toast.success(l({id:"user_deleted",defaultMessage:"User deleted successfully"})),w.push("/users")},okText:l({id:"delete_user_account",defaultMessage:"Delete user"})}))},[u]);return(0,t.jsxs)("div",{className:" max-w-6xl",children:[(0,t.jsx)(n.default,{currentPageTitle:u?`${u?.name}`:""}),(0,t.jsx)(c.default,{headerText:(0,b.default)(u)||l({id:"users_setting_list_header",defaultMessage:"User settings"}),onDelete:!u?.deleted&&_(r.IRoleAction.RemoveUser)?v:null,title:l({id:"user_detail_title",defaultMessage:"User {id}"},{id:u?.username}),children:(0,t.jsx)(I,{userId:e})}),(0,t.jsx)(f.default,{user:u,extendedData:y})]})}],2385)},28805,e=>{e.v(t=>Promise.all(["static/chunks/1jqnrnw0p9tw5.js"].map(t=>e.l(t))).then(()=>t(79466)))},48761,e=>{e.v(t=>Promise.all(["static/chunks/0wooaklx8_14q.js"].map(t=>e.l(t))).then(()=>t(93594)))}]);
@@ -0,0 +1,13 @@
1
+ __turbopack_load_page_chunks__("/tokens/TokenDetailPage", [
2
+ "static/chunks/113_jsmrqky1h.js",
3
+ "static/chunks/0hm6-xlqw4vmr.js",
4
+ "static/chunks/1qnuk3631sd6i.js",
5
+ "static/chunks/0641gh6yb6tnd.js",
6
+ "static/chunks/087a2d-0e1pvn.js",
7
+ "static/chunks/1f04wea7zvjf5.js",
8
+ "static/chunks/0jo3ujn_icmb9.js",
9
+ "static/chunks/07q8ufsdxo1tx.js",
10
+ "static/chunks/09pees0w94cvm.js",
11
+ "static/chunks/0f-hhcgpd3kjt.js",
12
+ "static/chunks/turbopack-3nvjaj1vijowz.js"
13
+ ])