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

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 (972) hide show
  1. package/README.md +136 -16
  2. package/dist/chunk-3L6EZQ6P.js +135 -0
  3. package/dist/chunk-54DKBWXV.js +33 -0
  4. package/dist/chunk-5WPFHQZN.js +388 -0
  5. package/dist/chunk-6UGLNLJG.js +44 -0
  6. package/dist/chunk-BMDNY67T.js +22547 -0
  7. package/dist/chunk-BOMSMJF2.js +77 -0
  8. package/dist/chunk-COV7BREX.js +50 -0
  9. package/dist/chunk-E77YIMGR.js +2083 -0
  10. package/dist/chunk-EJDZRZSZ.js +59 -0
  11. package/dist/chunk-ELPURWDC.js +75 -0
  12. package/dist/chunk-F6LBNV3H.js +9 -0
  13. package/dist/chunk-FDHXLNZQ.js +44 -0
  14. package/dist/chunk-GY2DRQGW.js +166 -0
  15. package/dist/chunk-HERLM47Z.js +309 -0
  16. package/dist/chunk-HJKRGBDG.js +694 -0
  17. package/dist/chunk-I64TXIE7.js +618 -0
  18. package/dist/chunk-IAQPLRXZ.js +16 -0
  19. package/dist/chunk-ICJH36K4.js +326 -0
  20. package/dist/chunk-ILYPJE4N.js +57 -0
  21. package/dist/chunk-IWKDBADX.js +73 -0
  22. package/dist/chunk-IXBMHOB5.js +13 -0
  23. package/dist/chunk-IYKPRAWC.js +26 -0
  24. package/dist/chunk-J23QSWDL.js +8 -0
  25. package/dist/chunk-KH5MK6ZW.js +18 -0
  26. package/dist/chunk-KRIRF7F6.js +76 -0
  27. package/dist/chunk-NT7RB7AK.js +70 -0
  28. package/dist/chunk-OKGJ6HDE.js +26 -0
  29. package/dist/chunk-OTXM2UCD.js +19 -0
  30. package/dist/chunk-PJLYVMUM.js +3308 -0
  31. package/dist/chunk-PUI5BIKO.js +41 -0
  32. package/dist/chunk-Q6S3LBUF.js +180 -0
  33. package/dist/chunk-QHR23GVH.js +1099 -0
  34. package/dist/chunk-QWQ3WJJN.js +1 -0
  35. package/dist/chunk-RAQV2GYF.js +70 -0
  36. package/dist/chunk-VBO377AY.js +14 -0
  37. package/dist/chunk-VYEXPG3M.js +107 -0
  38. package/dist/chunk-WPLOTFGW.js +36 -0
  39. package/dist/chunk-YO6PT7KD.js +13 -0
  40. package/dist/chunk-ZUOVKRKC.js +957 -0
  41. package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
  42. package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
  43. package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
  44. package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
  45. package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
  46. package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
  47. package/dist/components/ui/ActiveInActive.d.ts +10 -0
  48. package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
  49. package/dist/components/ui/AnimatedCounter.d.ts +7 -0
  50. package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
  51. package/dist/components/ui/Badge.d.ts +10 -0
  52. package/dist/components/ui/Badge.d.ts.map +1 -0
  53. package/dist/components/ui/BreadCrumbs.d.ts +7 -0
  54. package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
  55. package/dist/components/ui/Button.d.ts +36 -0
  56. package/dist/components/ui/Button.d.ts.map +1 -0
  57. package/dist/components/ui/CopyableText.d.ts +5 -0
  58. package/dist/components/ui/CopyableText.d.ts.map +1 -0
  59. package/dist/components/ui/DateInput.d.ts +15 -0
  60. package/dist/components/ui/DateInput.d.ts.map +1 -0
  61. package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
  62. package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
  63. package/dist/components/ui/DetailHeader.d.ts +6 -0
  64. package/dist/components/ui/DetailHeader.d.ts.map +1 -0
  65. package/dist/components/ui/DraggableIcon.d.ts +3 -0
  66. package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
  67. package/dist/components/ui/ErrorBoundary.d.ts +18 -0
  68. package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
  69. package/dist/components/ui/ErrorFallback.d.ts +6 -0
  70. package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
  71. package/dist/components/ui/HelpText.d.ts +11 -0
  72. package/dist/components/ui/HelpText.d.ts.map +1 -0
  73. package/dist/components/ui/ImageWithFallback.d.ts +7 -0
  74. package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
  75. package/dist/components/ui/InfoTextBanner.d.ts +6 -0
  76. package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
  77. package/dist/components/ui/JSONView.d.ts +6 -0
  78. package/dist/components/ui/JSONView.d.ts.map +1 -0
  79. package/dist/components/ui/ListHeader.d.ts +6 -0
  80. package/dist/components/ui/ListHeader.d.ts.map +1 -0
  81. package/dist/components/ui/Loading.d.ts +3 -0
  82. package/dist/components/ui/Loading.d.ts.map +1 -0
  83. package/dist/components/ui/NoData.d.ts +7 -0
  84. package/dist/components/ui/NoData.d.ts.map +1 -0
  85. package/dist/components/ui/NoImage.d.ts +7 -0
  86. package/dist/components/ui/NoImage.d.ts.map +1 -0
  87. package/dist/components/ui/NoImageSvg.d.ts +8 -0
  88. package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
  89. package/dist/components/ui/PageHeader.d.ts +11 -0
  90. package/dist/components/ui/PageHeader.d.ts.map +1 -0
  91. package/dist/components/ui/Pagination.d.ts +8 -0
  92. package/dist/components/ui/Pagination.d.ts.map +1 -0
  93. package/dist/components/ui/Portal/Portal.d.ts +16 -0
  94. package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
  95. package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
  96. package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
  97. package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
  98. package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
  99. package/dist/components/ui/SearchField.d.ts +7 -0
  100. package/dist/components/ui/SearchField.d.ts.map +1 -0
  101. package/dist/components/ui/Tab.d.ts +18 -0
  102. package/dist/components/ui/Tab.d.ts.map +1 -0
  103. package/dist/components/ui/Tag/TagInput.d.ts +19 -0
  104. package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
  105. package/dist/components/ui/Tag/TagList.d.ts +8 -0
  106. package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
  107. package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
  108. package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
  109. package/dist/components/ui/Toggle.d.ts +11 -0
  110. package/dist/components/ui/Toggle.d.ts.map +1 -0
  111. package/dist/components/ui/ToolTip.d.ts +7 -0
  112. package/dist/components/ui/ToolTip.d.ts.map +1 -0
  113. package/dist/components/ui/card.d.ts +9 -0
  114. package/dist/components/ui/card.d.ts.map +1 -0
  115. package/dist/components/ui/chart.d.ts +42 -0
  116. package/dist/components/ui/chart.d.ts.map +1 -0
  117. package/dist/components/ui/form/CheckboxField.d.ts +4 -0
  118. package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
  119. package/dist/components/ui/form/ChoicesField.d.ts +12 -0
  120. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
  121. package/dist/components/ui/form/Combobox.d.ts +20 -0
  122. package/dist/components/ui/form/Combobox.d.ts.map +1 -0
  123. package/dist/components/ui/form/DatePickerField.d.ts +4 -0
  124. package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
  125. package/dist/components/ui/form/EmailField.d.ts +7 -0
  126. package/dist/components/ui/form/EmailField.d.ts.map +1 -0
  127. package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
  128. package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
  129. package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
  130. package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
  131. package/dist/components/ui/form/FormErrors.d.ts +6 -0
  132. package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
  133. package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
  134. package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
  135. package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
  136. package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
  137. package/dist/components/ui/form/PasswordField.d.ts +3 -0
  138. package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
  139. package/dist/components/ui/form/SelectField.d.ts +11 -0
  140. package/dist/components/ui/form/SelectField.d.ts.map +1 -0
  141. package/dist/components/ui/form/SubmitButton.d.ts +9 -0
  142. package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
  143. package/dist/components/ui/form/TagInputField.d.ts +7 -0
  144. package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
  145. package/dist/components/ui/form/TextAreaField.d.ts +8 -0
  146. package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
  147. package/dist/components/ui/form/TextField.d.ts +10 -0
  148. package/dist/components/ui/form/TextField.d.ts.map +1 -0
  149. package/dist/components/ui/form/index.d.ts +18 -0
  150. package/dist/components/ui/form/index.d.ts.map +1 -0
  151. package/dist/components/ui/icons.d.ts +4 -0
  152. package/dist/components/ui/icons.d.ts.map +1 -0
  153. package/dist/components/ui/index.d.ts +46 -0
  154. package/dist/components/ui/index.d.ts.map +1 -0
  155. package/dist/form.js +2617 -0
  156. package/dist/gql/operation-types.d.ts +13239 -0
  157. package/dist/gql/operation-types.d.ts.map +1 -0
  158. package/dist/gql/schema-types.d.ts +3876 -0
  159. package/dist/gql/schema-types.d.ts.map +1 -0
  160. package/dist/gql/types.d.ts +3 -0
  161. package/dist/gql/types.d.ts.map +1 -0
  162. package/dist/hooks.js +49 -0
  163. package/dist/lib/utils.d.ts +3 -0
  164. package/dist/lib/utils.d.ts.map +1 -0
  165. package/dist/modal.js +51 -0
  166. package/dist/modules/Auth/AuthContext.d.ts +9 -0
  167. package/dist/modules/Auth/AuthContext.d.ts.map +1 -0
  168. package/dist/modules/Auth/useAuth.d.ts +6 -0
  169. package/dist/modules/Auth/useAuth.d.ts.map +1 -0
  170. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
  171. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
  172. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
  173. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
  174. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
  175. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
  176. package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
  177. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
  178. package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
  179. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
  180. package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
  181. package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
  182. package/dist/modules/accounts.js +1349 -0
  183. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
  184. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
  185. package/dist/modules/assortment.js +1205 -0
  186. package/dist/modules/common/components/AppContext.d.ts +18 -0
  187. package/dist/modules/common/components/AppContext.d.ts.map +1 -0
  188. package/dist/modules/common/components/FormWrapper.d.ts +8 -0
  189. package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
  190. package/dist/modules/common/components/LocaleWrapper.d.ts +7 -0
  191. package/dist/modules/common/components/LocaleWrapper.d.ts.map +1 -0
  192. package/dist/modules/common/components/MediaAvatar.d.ts +6 -0
  193. package/dist/modules/common/components/MediaAvatar.d.ts.map +1 -0
  194. package/dist/modules/common/components/SelectOptions.d.ts +17 -0
  195. package/dist/modules/common/components/SelectOptions.d.ts.map +1 -0
  196. package/dist/modules/common/components/Table.d.ts +25 -0
  197. package/dist/modules/common/components/Table.d.ts.map +1 -0
  198. package/dist/modules/common/components/TableCell.d.ts +12 -0
  199. package/dist/modules/common/components/TableCell.d.ts.map +1 -0
  200. package/dist/modules/common/components/TableRow.d.ts +10 -0
  201. package/dist/modules/common/components/TableRow.d.ts.map +1 -0
  202. package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
  203. package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
  204. package/dist/modules/common/data/iso-codes.d.ts +4 -0
  205. package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
  206. package/dist/modules/common/data/miscellaneous.d.ts +52 -0
  207. package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
  208. package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
  209. package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
  210. package/dist/modules/common/hooks/useApp.d.ts +11 -0
  211. package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
  212. package/dist/modules/common/hooks/useBulkResultHandler.d.ts +8 -0
  213. package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +1 -0
  214. package/dist/modules/common/hooks/useBulkSelection.d.ts +12 -0
  215. package/dist/modules/common/hooks/useBulkSelection.d.ts.map +1 -0
  216. package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
  217. package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
  218. package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
  219. package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
  220. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
  221. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
  222. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
  223. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
  224. package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
  225. package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
  226. package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
  227. package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
  228. package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
  229. package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
  230. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
  231. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
  232. package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
  233. package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
  234. package/dist/modules/common/hooks/usePortal.d.ts +20 -0
  235. package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
  236. package/dist/modules/common/hooks/useScrollRestoration.d.ts +8 -0
  237. package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +1 -0
  238. package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
  239. package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
  240. package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
  241. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
  242. package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
  243. package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
  244. package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
  245. package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
  246. package/dist/modules/common/hooks/useTheme.d.ts +7 -0
  247. package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
  248. package/dist/modules/common/utils/deBounce.d.ts +3 -0
  249. package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
  250. package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
  251. package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
  252. package/dist/modules/common/utils/formatUsername.d.ts +3 -0
  253. package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
  254. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
  255. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
  256. package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
  257. package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
  258. package/dist/modules/common/utils/sharedContext.d.ts +9 -0
  259. package/dist/modules/common/utils/sharedContext.d.ts.map +1 -0
  260. package/dist/modules/common/utils/useFormatDateTime.d.ts +16 -0
  261. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
  262. package/dist/modules/common/utils/utils.d.ts +21 -0
  263. package/dist/modules/common/utils/utils.d.ts.map +1 -0
  264. package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
  265. package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
  266. package/dist/modules/country/hooks/useCountries.d.ts +22 -0
  267. package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
  268. package/dist/modules/country.js +108 -0
  269. package/dist/modules/currency.js +119 -0
  270. package/dist/modules/delivery-provider.js +269 -0
  271. package/dist/modules/enrollment.js +431 -0
  272. package/dist/modules/event.js +123 -0
  273. package/dist/modules/filter.js +497 -0
  274. package/dist/modules/forms/components/Form.d.ts +8 -0
  275. package/dist/modules/forms/components/Form.d.ts.map +1 -0
  276. package/dist/modules/forms/hooks/useField.d.ts +35 -0
  277. package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
  278. package/dist/modules/forms/hooks/useForm.d.ts +44 -0
  279. package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
  280. package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
  281. package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
  282. package/dist/modules/forms/lib/FormContext.d.ts +13 -0
  283. package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
  284. package/dist/modules/forms/lib/clean.d.ts +3 -0
  285. package/dist/modules/forms/lib/clean.d.ts.map +1 -0
  286. package/dist/modules/forms/lib/validators.d.ts +20 -0
  287. package/dist/modules/forms/lib/validators.d.ts.map +1 -0
  288. package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
  289. package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
  290. package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
  291. package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
  292. package/dist/modules/language.js +106 -0
  293. package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
  294. package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
  295. package/dist/modules/modal/components/DangerMessage.d.ts +13 -0
  296. package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
  297. package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
  298. package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
  299. package/dist/modules/modal/components/Modal.d.ts +10 -0
  300. package/dist/modules/modal/components/Modal.d.ts.map +1 -0
  301. package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
  302. package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
  303. package/dist/modules/modal/hooks/useModal.d.ts +7 -0
  304. package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
  305. package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
  306. package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
  307. package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
  308. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
  309. package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
  310. package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
  311. package/dist/modules/order/hooks/useOrders.d.ts +46 -0
  312. package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
  313. package/dist/modules/order.js +569 -0
  314. package/dist/modules/payment-providers.js +206 -0
  315. package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
  316. package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
  317. package/dist/modules/product-review.js +270 -0
  318. package/dist/modules/product.js +6914 -0
  319. package/dist/modules/quotation.js +324 -0
  320. package/dist/modules/token.js +143 -0
  321. package/dist/modules/warehousing-providers.js +206 -0
  322. package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
  323. package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
  324. package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
  325. package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
  326. package/dist/modules/work/hooks/useWork.d.ts +32 -0
  327. package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
  328. package/dist/modules/work.js +232 -0
  329. package/dist/plugins.js +13 -0
  330. package/dist/providers.js +9 -0
  331. package/dist/sdk/hooks.d.ts +12 -0
  332. package/dist/sdk/hooks.d.ts.map +1 -0
  333. package/dist/sdk/modal.d.ts +7 -0
  334. package/dist/sdk/modal.d.ts.map +1 -0
  335. package/dist/sdk/plugins.d.ts +78 -0
  336. package/dist/sdk/plugins.d.ts.map +1 -0
  337. package/dist/sdk/providers.d.ts +5 -0
  338. package/dist/sdk/providers.d.ts.map +1 -0
  339. package/dist/sdk/shims/admin-ui-plugins.d.ts +3 -0
  340. package/dist/sdk/shims/admin-ui-plugins.d.ts.map +1 -0
  341. package/dist/sdk/shims/apollo-client-react.d.ts +3 -0
  342. package/dist/sdk/shims/apollo-client-react.d.ts.map +1 -0
  343. package/dist/sdk/shims/apollo-client.d.ts +3 -0
  344. package/dist/sdk/shims/apollo-client.d.ts.map +1 -0
  345. package/dist/sdk/shims/host.d.ts +17 -0
  346. package/dist/sdk/shims/host.d.ts.map +1 -0
  347. package/dist/sdk/shims/next-head.d.ts +3 -0
  348. package/dist/sdk/shims/next-head.d.ts.map +1 -0
  349. package/dist/sdk/shims/next-image.d.ts +3 -0
  350. package/dist/sdk/shims/next-image.d.ts.map +1 -0
  351. package/dist/sdk/shims/next-link.d.ts +3 -0
  352. package/dist/sdk/shims/next-link.d.ts.map +1 -0
  353. package/dist/sdk/shims/next-router.d.ts +3 -0
  354. package/dist/sdk/shims/next-router.d.ts.map +1 -0
  355. package/dist/sdk/shims/react-dom-client.d.ts +3 -0
  356. package/dist/sdk/shims/react-dom-client.d.ts.map +1 -0
  357. package/dist/sdk/shims/react-dom.d.ts +3 -0
  358. package/dist/sdk/shims/react-dom.d.ts.map +1 -0
  359. package/dist/sdk/shims/react-hook-form.d.ts +3 -0
  360. package/dist/sdk/shims/react-hook-form.d.ts.map +1 -0
  361. package/dist/sdk/shims/react-intl.d.ts +3 -0
  362. package/dist/sdk/shims/react-intl.d.ts.map +1 -0
  363. package/dist/sdk/shims/react-jsx-runtime.d.ts +3 -0
  364. package/dist/sdk/shims/react-jsx-runtime.d.ts.map +1 -0
  365. package/dist/sdk/shims/react-toastify.d.ts +3 -0
  366. package/dist/sdk/shims/react-toastify.d.ts.map +1 -0
  367. package/dist/sdk/shims/react.d.ts +3 -0
  368. package/dist/sdk/shims/react.d.ts.map +1 -0
  369. package/dist/sdk/theme.d.ts +26 -0
  370. package/dist/sdk/theme.d.ts.map +1 -0
  371. package/dist/shims/admin-ui-plugins.js +9 -0
  372. package/dist/shims/apollo-client-react.js +25 -0
  373. package/dist/shims/apollo-client.js +55 -0
  374. package/dist/shims/next-head.js +9 -0
  375. package/dist/shims/next-image.js +9 -0
  376. package/dist/shims/next-link.js +9 -0
  377. package/dist/shims/next-router.js +13 -0
  378. package/dist/shims/react-dom-client.js +11 -0
  379. package/dist/shims/react-dom.js +22 -0
  380. package/dist/shims/react-hook-form.js +25 -0
  381. package/dist/shims/react-intl.js +37 -0
  382. package/dist/shims/react-jsx-runtime.js +11 -0
  383. package/dist/shims/react-toastify.js +16 -0
  384. package/dist/shims/react.js +52 -0
  385. package/dist/theme.js +34 -0
  386. package/dist/ui.js +19731 -0
  387. package/out/403/index.html +3 -2
  388. package/out/404/index.html +3 -2
  389. package/out/404.html +3 -2
  390. package/out/423/index.html +3 -2
  391. package/out/500/index.html +3 -2
  392. package/out/_next/static/BPoacQET3TJr2q9E370Ez/_buildManifest.js +262 -0
  393. package/out/_next/static/chunks/01xy3u9ybz9ts.js +5 -0
  394. package/out/_next/static/chunks/02ir8k2vqhw7u.js +4 -0
  395. package/out/_next/static/chunks/03mdkmx9pb3yx.js +28 -0
  396. package/out/_next/static/chunks/03spbldywp99b.js +31 -0
  397. package/out/_next/static/chunks/0531sa8v36e39.js +1 -0
  398. package/out/_next/static/chunks/065ltxdt7s8b2.js +134 -0
  399. package/out/_next/static/chunks/06b1jza2fvc6f.js +4 -0
  400. package/out/_next/static/chunks/0701uizxsgs75.js +4 -0
  401. package/out/_next/static/chunks/09olk50zbo5r6.js +5 -0
  402. package/out/_next/static/chunks/09pabifvs84zb.js +12 -0
  403. package/out/_next/static/chunks/0_pn7w49dpkak.js +5 -0
  404. package/out/_next/static/chunks/0a_gulnq-c7to.js +709 -0
  405. package/out/_next/static/chunks/0agx-csdwbk-x.js +5 -0
  406. package/out/_next/static/chunks/0clmvy-auef0p.js +14 -0
  407. package/out/_next/static/chunks/0czktxcs2aa12.js +1 -0
  408. package/out/_next/static/chunks/0d_qylr054ab-.js +5 -0
  409. package/out/_next/static/chunks/0e2znhpcecrqs.js +175 -0
  410. package/out/_next/static/chunks/0ef4vp3ehm369.js +4 -0
  411. package/out/_next/static/chunks/0fggi8jpi5gjk.js +165 -0
  412. package/out/_next/static/chunks/0gyabz3vqllr6.js +83 -0
  413. package/out/_next/static/chunks/0j05dboa5_xkw.js +5 -0
  414. package/out/_next/static/chunks/0kr4ift9_1a3s.js +1 -0
  415. package/out/_next/static/chunks/0l8tmlevl_6p0.js +1 -0
  416. package/out/_next/static/chunks/0m73vd78oga92.js +342 -0
  417. package/out/_next/static/chunks/0o91usftba97q.js +54 -0
  418. package/out/_next/static/chunks/0oi1kpp0levnm.js +1 -0
  419. package/out/_next/static/chunks/0p7said9rdor1.js +1 -0
  420. package/out/_next/static/chunks/0p86ng98eiz5q.js +11 -0
  421. package/out/_next/static/chunks/0pw1zl8_l93xl.js +5 -0
  422. package/out/_next/static/chunks/0py8-umjmwiwi.js +156 -0
  423. package/out/_next/static/chunks/0q0m2pv-3b2e2.js +4 -0
  424. package/out/_next/static/chunks/0r57e83u39trg.js +5 -0
  425. package/out/_next/static/chunks/0r9a_mcjh1k24.js +6 -0
  426. package/out/_next/static/chunks/0rgtc82y8z7_x.js +5 -0
  427. package/out/_next/static/chunks/0rxhx_x-7dojh.js +182 -0
  428. package/out/_next/static/chunks/0s6u_6w75ggbw.js +297 -0
  429. package/out/_next/static/chunks/0teb3b5h78855.js +44 -0
  430. package/out/_next/static/chunks/0thsuuvsozjop.js +54 -0
  431. package/out/_next/static/chunks/0v6x3uondh5hw.js +5 -0
  432. package/out/_next/static/chunks/0v_uz3j8jolmq.js +4 -0
  433. package/out/_next/static/chunks/0vwmp6qrw7odm.js +7 -0
  434. package/out/_next/static/chunks/0w6t6v_jzrudq.js +4 -0
  435. package/out/_next/static/chunks/0w7gz501ry22r.js +4 -0
  436. package/out/_next/static/chunks/0xgn-89s97a5w.js +1 -0
  437. package/out/_next/static/chunks/0xqtemh7t38y9.js +119 -0
  438. package/out/_next/static/chunks/1-1rj15j67dqt.js +1 -0
  439. package/out/_next/static/chunks/10drou7w-k58p.js +4 -0
  440. package/out/_next/static/chunks/11w7hldkge7sg.js +8 -0
  441. package/out/_next/static/chunks/12yd8t4k6c0t1.js +1 -0
  442. package/out/_next/static/chunks/130c8cta7pec6.js +1 -0
  443. package/out/_next/static/chunks/13qi39a_b6gkv.js +1 -0
  444. package/out/_next/static/chunks/15142badc5ufq.js +4 -0
  445. package/out/_next/static/chunks/155boltbcvwo-.js +63 -0
  446. package/out/_next/static/chunks/15_nwd8p454gd.js +1 -0
  447. package/out/_next/static/chunks/15s4qkdyz56pg.js +115 -0
  448. package/out/_next/static/chunks/15vdx0kewzv-6.js +33 -0
  449. package/out/_next/static/chunks/16shuavdpgni8.js +327 -0
  450. package/out/_next/static/chunks/170j06y4-47o4.js +5 -0
  451. package/out/_next/static/chunks/18a5kibvycb6u.js +1 -0
  452. package/out/_next/static/chunks/1_bckhq06wfmb.js +4 -0
  453. package/out/_next/static/chunks/1_ymf_rfke1aw.js +6 -0
  454. package/out/_next/static/chunks/1a1m389awxw4k.js +1 -0
  455. package/out/_next/static/chunks/1albq_5cppsa1.js +5 -0
  456. package/out/_next/static/chunks/1bhibqf8k2-z1.js +117 -0
  457. package/out/_next/static/chunks/1bxesp6kakz8_.js +353 -0
  458. package/out/_next/static/chunks/1d80ahah359g5.js +174 -0
  459. package/out/_next/static/chunks/1dbjry-rs_5we.js +1 -0
  460. package/out/_next/static/chunks/1dlr1eig6zpl1.js +12 -0
  461. package/out/_next/static/chunks/1gq8ickcg_vmv.js +147 -0
  462. package/out/_next/static/chunks/1gyrsx1nip-lm.js +2 -0
  463. package/out/_next/static/chunks/1hma23kynopdj.js +3 -0
  464. package/out/_next/static/chunks/1i996uxxmc736.js +234 -0
  465. package/out/_next/static/chunks/1iamjw8qh1m4o.js +4 -0
  466. package/out/_next/static/chunks/1ivhp-mi-5l--.js +57 -0
  467. package/out/_next/static/chunks/1jmdpa0tc5puj.js +7 -0
  468. package/out/_next/static/chunks/1ktkks-wpk8q-.js +1 -0
  469. package/out/_next/static/chunks/1kz62r46jwi0y.js +5 -0
  470. package/out/_next/static/chunks/1lex3myb5hmsw.js +1 -0
  471. package/out/_next/static/chunks/1lha1nklxo2g7.js +1 -0
  472. package/out/_next/static/chunks/1mwmcucidjio0.js +8 -0
  473. package/out/_next/static/chunks/1mzejejof4s6g.js +147 -0
  474. package/out/_next/static/chunks/1os6pvhjeb16o.js +1 -0
  475. package/out/_next/static/chunks/1p937fyqa7ssz.js +1 -0
  476. package/out/_next/static/chunks/1po7d3udj6iv4.js +5 -0
  477. package/out/_next/static/chunks/1qxxbcidu-hmv.js +1 -0
  478. package/out/_next/static/chunks/1re4i2t_po4sr.js +95 -0
  479. package/out/_next/static/chunks/1s4oi1bw8zl5d.js +31 -0
  480. package/out/_next/static/chunks/1sb04cqudnfpj.js +4 -0
  481. package/out/_next/static/chunks/1sh2ogc7tcbu-.js +1 -0
  482. package/out/_next/static/chunks/1so6ouxrq_ffa.js +39 -0
  483. package/out/_next/static/chunks/1ulje1tawz8fl.js +1 -0
  484. package/out/_next/static/chunks/1uom050rz5iol.js +272 -0
  485. package/out/_next/static/chunks/1uymuiqrms2h8.js +103 -0
  486. package/out/_next/static/chunks/1wijj_fal57co.js +2 -0
  487. package/out/_next/static/chunks/1wpen9t3_zbte.js +1 -0
  488. package/out/_next/static/chunks/1wpv1sl7vwg04.js +99 -0
  489. package/out/_next/static/chunks/1y3poj860g968.js +24 -0
  490. package/out/_next/static/chunks/1yk0pxcl4urkd.js +4 -0
  491. package/out/_next/static/chunks/1z1mbux-7g74d.js +1 -0
  492. package/out/_next/static/chunks/1z2rl3h7scna4.js +7 -0
  493. package/out/_next/static/chunks/1zyhq82pkterc.js +61 -0
  494. package/out/_next/static/chunks/2-4610weysas_.js +1 -0
  495. package/out/_next/static/chunks/2-zr9-ri30va5.css +1 -0
  496. package/out/_next/static/chunks/20j8cdot33hql.js +13 -0
  497. package/out/_next/static/chunks/21fo9zerxyx-l.js +59 -0
  498. package/out/_next/static/chunks/22sxsq82r3cwy.js +41 -0
  499. package/out/_next/static/chunks/23nwkbry8kz0-.js +1 -0
  500. package/out/_next/static/chunks/259ckrmoldaqg.js +5 -0
  501. package/out/_next/static/chunks/25y2dqqrhstuq.js +5 -0
  502. package/out/_next/static/chunks/28myh-gi8t3t7.js +7 -0
  503. package/out/_next/static/chunks/28oppyg7ev102.js +1 -0
  504. package/out/_next/static/chunks/29y82c6-u55hj.js +5 -0
  505. package/out/_next/static/chunks/2ahlen2u4lbnm.js +16 -0
  506. package/out/_next/static/chunks/2ajr0rk0_yax6.js +1 -0
  507. package/out/_next/static/chunks/2c3ehieqiwiw8.js +119 -0
  508. package/out/_next/static/chunks/2c5gq6izeq6nx.js +81 -0
  509. package/out/_next/static/chunks/2cj8g3fxmitaa.js +1 -0
  510. package/out/_next/static/chunks/2d9lzme_uzwvq.js +1 -0
  511. package/out/_next/static/chunks/2dqoft2pp4355.js +1 -0
  512. package/out/_next/static/chunks/2gso7_8v7owco.js +1 -0
  513. package/out/_next/static/chunks/2hc4nowrexhn3.js +100 -0
  514. package/out/_next/static/chunks/2hoi6cb1lromr.js +4 -0
  515. package/out/_next/static/chunks/2hw2_8kkf_2fg.js +1 -0
  516. package/out/_next/static/chunks/2kd4p_esjbozz.js +21 -0
  517. package/out/_next/static/chunks/2l8gepfm4kyjp.js +1 -0
  518. package/out/_next/static/chunks/2lwhn1ypqwukz.js +11 -0
  519. package/out/_next/static/chunks/2oz432iieo_c6.js +43 -0
  520. package/out/_next/static/chunks/2qjnhmz4c5fq1.js +23 -0
  521. package/out/_next/static/chunks/2rdjgc7_za785.js +9 -0
  522. package/out/_next/static/chunks/2ru66cyp0hbxn.js +103 -0
  523. package/out/_next/static/chunks/2ung-az_h871_.js +4 -0
  524. package/out/_next/static/chunks/2v4rvvdyh028e.js +1 -0
  525. package/out/_next/static/chunks/2vsl3-revotpl.js +43 -0
  526. package/out/_next/static/chunks/2wbc_9uwtsjbp.js +15 -0
  527. package/out/_next/static/chunks/2xixk0t9e9mnw.js +1 -0
  528. package/out/_next/static/chunks/2y6i_xssusr93.js +1 -0
  529. package/out/_next/static/chunks/2y_t26eglpeka.js +4 -0
  530. package/out/_next/static/chunks/2yw5sk06gdixu.js +1 -0
  531. package/out/_next/static/chunks/3-hgyqm9mhcm9.js +33 -0
  532. package/out/_next/static/chunks/3-ve59izq9j-p.js +1 -0
  533. package/out/_next/static/chunks/364y5vueeinvz.js +276 -0
  534. package/out/_next/static/chunks/366b9y413lk4d.js +33 -0
  535. package/out/_next/static/chunks/36vauyb71ot_b.js +61 -0
  536. package/out/_next/static/chunks/394m309ssmlo3.js +5 -0
  537. package/out/_next/static/chunks/39pveojee3ma1.js +33 -0
  538. package/out/_next/static/chunks/3_--novhq2u1q.js +807 -0
  539. package/out/_next/static/chunks/3apnk6kuvwze8.js +5 -0
  540. package/out/_next/static/chunks/3b0868kyqqkn3.js +5 -0
  541. package/out/_next/static/chunks/3btkj1_irjkq7.js +161 -0
  542. package/out/_next/static/chunks/3dcwbsiechj8e.js +7 -0
  543. package/out/_next/static/chunks/3dyd0ilb-ee5w.js +8 -0
  544. package/out/_next/static/chunks/3eftzknnu45-s.js +1 -0
  545. package/out/_next/static/chunks/3ejsx4af27cct.js +7 -0
  546. package/out/_next/static/chunks/3es4yddhl8uwc.js +7 -0
  547. package/out/_next/static/chunks/3fpgg_wy6j2ph.js +2 -0
  548. package/out/_next/static/chunks/3inp15oicq85k.js +1 -0
  549. package/out/_next/static/chunks/3j25u7rzawm9f.js +367 -0
  550. package/out/_next/static/chunks/3jxeyjg2g7w94.js +1 -0
  551. package/out/_next/static/chunks/3kd-t_qz3nxh7.js +30 -0
  552. package/out/_next/static/chunks/3kl8vv7w9jkjr.js +23 -0
  553. package/out/_next/static/chunks/3kmfx3f7oyfdm.js +5 -0
  554. package/out/_next/static/chunks/3koj4-48a7p_9.js +4 -0
  555. package/out/_next/static/chunks/3l7glrtu8ueuo.js +4 -0
  556. package/out/_next/static/chunks/3lgq9oa_2erwo.js +5 -0
  557. package/out/_next/static/chunks/3m_9ozv0orvze.js +187 -0
  558. package/out/_next/static/chunks/3muxcxam24i5z.js +1 -0
  559. package/out/_next/static/chunks/3nimt7ngr5zv6.js +46 -0
  560. package/out/_next/static/chunks/3pwezwpggrz59.js +74 -0
  561. package/out/_next/static/chunks/3r02t7a7jknrv.js +7 -0
  562. package/out/_next/static/chunks/3s40iuaou1rt4.js +1 -0
  563. package/out/_next/static/chunks/3selzn479n73i.js +16 -0
  564. package/out/_next/static/chunks/3srflqnqdfd60.js +5 -0
  565. package/out/_next/static/chunks/3t57k35xu2eo8.js +5 -0
  566. package/out/_next/static/chunks/3tu90a7do336z.js +12 -0
  567. package/out/_next/static/chunks/3ukgj2jzxf10n.js +5 -0
  568. package/out/_next/static/chunks/3vosu-lpiis6v.js +5 -0
  569. package/out/_next/static/chunks/3xaz8fvw2x6b3.js +5 -0
  570. package/out/_next/static/chunks/3xgjhwzul66dp.js +4 -0
  571. package/out/_next/static/chunks/3zze6y1x00k__.js +165 -0
  572. package/out/_next/static/chunks/40730dyt912zu.js +5 -0
  573. package/out/_next/static/chunks/40f26tfp8txip.js +5 -0
  574. package/out/_next/static/chunks/40kc42ezz2dri.js +1 -0
  575. package/out/_next/static/chunks/41f60q88qcigi.js +39 -0
  576. package/out/_next/static/chunks/41l5iphw-rna3.js +44 -0
  577. package/out/_next/static/chunks/423kk9x5t9_b8.js +5 -0
  578. package/out/_next/static/chunks/42k5e3tr3uyzs.js +54 -0
  579. package/out/_next/static/chunks/43uqmej6-s4am.js +7 -0
  580. package/out/_next/static/chunks/4481d7yj7bm2q.js +5 -0
  581. package/out/_next/static/chunks/448is1kpt9eaa.js +39 -0
  582. package/out/_next/static/chunks/44fkzg2e80pqt.js +8 -0
  583. package/out/_next/static/chunks/turbopack-2c3mg3r-05n1w.js +1 -0
  584. package/out/_offline/index.html +3 -2
  585. package/out/account/forgot-password/index.html +3 -2
  586. package/out/account/index.html +3 -2
  587. package/out/assortments/AssortmentDetailPage/index.html +3 -2
  588. package/out/assortments/index.html +3 -2
  589. package/out/assortments/new/index.html +3 -2
  590. package/out/copilot/index.html +3 -2
  591. package/out/country/CountryDetailPage/index.html +3 -2
  592. package/out/country/index.html +3 -2
  593. package/out/country/new/index.html +3 -2
  594. package/out/currency/CurrencyDetailPage/index.html +3 -2
  595. package/out/currency/index.html +3 -2
  596. package/out/currency/new/index.html +3 -2
  597. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -2
  598. package/out/delivery-provider/index.html +3 -2
  599. package/out/delivery-provider/new/index.html +3 -2
  600. package/out/enrollments/EnrollmentDetailPage/index.html +3 -2
  601. package/out/enrollments/index.html +3 -2
  602. package/out/events/EventDetailPage/index.html +3 -2
  603. package/out/events/index.html +3 -2
  604. package/out/exports/index.html +3 -2
  605. package/out/ext/[[...slug]]/index.html +12 -0
  606. package/out/external/index.html +3 -2
  607. package/out/filters/FilterDetailPage/index.html +3 -2
  608. package/out/filters/index.html +3 -2
  609. package/out/filters/new/index.html +3 -2
  610. package/out/index.html +3 -2
  611. package/out/install/index.html +3 -2
  612. package/out/language/LanguageDetailPage/index.html +3 -2
  613. package/out/language/index.html +3 -2
  614. package/out/language/new/index.html +3 -2
  615. package/out/log-in/index.html +3 -2
  616. package/out/orders/OrderDetailPage/index.html +3 -2
  617. package/out/orders/index.html +3 -2
  618. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -2
  619. package/out/payment-provider/index.html +3 -2
  620. package/out/payment-provider/new/index.html +3 -2
  621. package/out/products/ProductDetailPage/index.html +3 -2
  622. package/out/products/index.html +3 -2
  623. package/out/products/new/index.html +3 -2
  624. package/out/quotations/QuotationDetailPage/index.html +3 -2
  625. package/out/quotations/index.html +3 -2
  626. package/out/reset-password/index.html +3 -2
  627. package/out/sign-up/index.html +3 -2
  628. package/out/styleguide/index.html +3 -2
  629. package/out/tokens/TokenDetailPage/index.html +3 -2
  630. package/out/tokens/index.html +3 -2
  631. package/out/users/UserDetailPage/index.html +3 -2
  632. package/out/users/index.html +3 -2
  633. package/out/users/new/index.html +3 -2
  634. package/out/verify-email/index.html +3 -2
  635. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -2
  636. package/out/warehousing-provider/index.html +3 -2
  637. package/out/warehousing-provider/new/index.html +3 -2
  638. package/out/works/WorkDetailPage/index.html +3 -2
  639. package/out/works/WorkQueueListView/index.html +3 -2
  640. package/out/works/index.html +3 -2
  641. package/out/works/management/index.html +3 -2
  642. package/package.json +129 -32
  643. package/src/modules/accounts/index.ts +40 -0
  644. package/src/modules/assortment/index.ts +31 -0
  645. package/src/modules/copilot/index.ts +4 -0
  646. package/src/modules/country/index.ts +5 -0
  647. package/src/modules/currency/index.ts +5 -0
  648. package/src/modules/delivery-provider/index.ts +7 -0
  649. package/src/modules/enrollment/index.ts +8 -0
  650. package/src/modules/event/index.ts +3 -0
  651. package/src/modules/filter/index.ts +15 -0
  652. package/src/modules/language/index.ts +5 -0
  653. package/src/modules/order/index.ts +8 -0
  654. package/src/modules/payment-providers/index.ts +7 -0
  655. package/src/modules/product/index.ts +53 -0
  656. package/src/modules/product-review/index.ts +6 -0
  657. package/src/modules/quotation/index.ts +6 -0
  658. package/src/modules/token/index.ts +3 -0
  659. package/src/modules/warehousing-providers/index.ts +7 -0
  660. package/src/modules/work/index.ts +8 -0
  661. package/src/sdk/README.md +235 -0
  662. package/src/sdk/form-entry.test.mjs +11 -0
  663. package/src/sdk/hooks.ts +15 -0
  664. package/src/sdk/modal.ts +6 -0
  665. package/src/sdk/plugin-build.mjs +97 -0
  666. package/src/sdk/plugin-build.test.mjs +46 -0
  667. package/src/sdk/plugin-navigation.test.mjs +59 -0
  668. package/src/sdk/plugin-runtime.cjs +66 -0
  669. package/src/sdk/plugin-runtime.d.mts +11 -0
  670. package/src/sdk/plugin-runtime.mjs +27 -0
  671. package/src/sdk/plugin-runtime.test.mjs +32 -0
  672. package/src/sdk/plugins.mjs +17 -0
  673. package/src/sdk/plugins.ts +105 -0
  674. package/src/sdk/providers.ts +4 -0
  675. package/src/sdk/shared-context.test.mjs +40 -0
  676. package/src/sdk/shims/admin-ui-plugins.ts +3 -0
  677. package/src/sdk/shims/apollo-client-react.ts +3 -0
  678. package/src/sdk/shims/apollo-client.ts +3 -0
  679. package/src/sdk/shims/host.ts +61 -0
  680. package/src/sdk/shims/next-head.ts +3 -0
  681. package/src/sdk/shims/next-image.ts +3 -0
  682. package/src/sdk/shims/next-link.ts +3 -0
  683. package/src/sdk/shims/next-router.ts +3 -0
  684. package/src/sdk/shims/react-dom-client.ts +3 -0
  685. package/src/sdk/shims/react-dom.ts +3 -0
  686. package/src/sdk/shims/react-hook-form.ts +3 -0
  687. package/src/sdk/shims/react-intl.ts +3 -0
  688. package/src/sdk/shims/react-jsx-runtime.ts +3 -0
  689. package/src/sdk/shims/react-toastify.ts +3 -0
  690. package/src/sdk/shims/react.ts +3 -0
  691. package/src/sdk/tailwind-preset.mjs +94 -0
  692. package/src/sdk/theme.ts +61 -0
  693. package/src/styles/globals.css +291 -0
  694. package/out/_next/static/_ZCNVAj2ptQ3WvyS9d8fH/_buildManifest.js +0 -258
  695. package/out/_next/static/chunks/0-3aqi0z~0~kq.js +0 -1
  696. package/out/_next/static/chunks/0-_n2k06ojx7r.js +0 -5
  697. package/out/_next/static/chunks/0-b7z0cgkcxjg.js +0 -12
  698. package/out/_next/static/chunks/0-khetjtcca7j.js +0 -23
  699. package/out/_next/static/chunks/0-vzy055sp9wr.js +0 -1
  700. package/out/_next/static/chunks/0.7c6ora-keix.js +0 -291
  701. package/out/_next/static/chunks/0.7jou~9s-9ly.js +0 -342
  702. package/out/_next/static/chunks/0.9xrb29zv20w.js +0 -1
  703. package/out/_next/static/chunks/0.qq-wh2-26q3.js +0 -1
  704. package/out/_next/static/chunks/00.vtv-~sgyl1.js +0 -1
  705. package/out/_next/static/chunks/002w~0kz13czu.js +0 -2
  706. package/out/_next/static/chunks/00am.v9yslbhb.js +0 -227
  707. package/out/_next/static/chunks/00z-be-uhq5~b.js +0 -138
  708. package/out/_next/static/chunks/01.ky4xf9k36u.js +0 -1
  709. package/out/_next/static/chunks/01m_2h75jti7r.js +0 -173
  710. package/out/_next/static/chunks/01r~p51b_ree7.js +0 -12
  711. package/out/_next/static/chunks/01ua~kzkn_2re.js +0 -2
  712. package/out/_next/static/chunks/01~bicjgx9ycz.js +0 -13
  713. package/out/_next/static/chunks/02.h.hxc5z45l.js +0 -58
  714. package/out/_next/static/chunks/020ov1cd5ubsp.js +0 -1
  715. package/out/_next/static/chunks/022.6ji94gj66.js +0 -90
  716. package/out/_next/static/chunks/02ljwx.y7xl4e.js +0 -384
  717. package/out/_next/static/chunks/02mkjzfq3ks0c.js +0 -342
  718. package/out/_next/static/chunks/034ij~x6p.1xq.js +0 -7
  719. package/out/_next/static/chunks/0387wujkm6quw.js +0 -26
  720. package/out/_next/static/chunks/03j~743_iaz5a.js +0 -87
  721. package/out/_next/static/chunks/03zc-8olk-a4z.js +0 -11
  722. package/out/_next/static/chunks/042vny1lzms1d.js +0 -1
  723. package/out/_next/static/chunks/045b8oqunhkwz.js +0 -1
  724. package/out/_next/static/chunks/04d1nicvb1h43.js +0 -12
  725. package/out/_next/static/chunks/04hnzv8.xnhtq.js +0 -12
  726. package/out/_next/static/chunks/04j3vrvch7ujx.js +0 -1
  727. package/out/_next/static/chunks/04j47t-gfncz0.js +0 -17
  728. package/out/_next/static/chunks/04wxvqon75sl5.js +0 -15
  729. package/out/_next/static/chunks/0511iudhvmzyd.js +0 -14
  730. package/out/_next/static/chunks/054x6af~vznwl.js +0 -13
  731. package/out/_next/static/chunks/055l.ongzthsf.js +0 -2
  732. package/out/_next/static/chunks/05r6-kh0ahzac.js +0 -288
  733. package/out/_next/static/chunks/068vu6mcq90.a.js +0 -14
  734. package/out/_next/static/chunks/069qmjrpifff9.js +0 -10
  735. package/out/_next/static/chunks/06c.18b146dst.js +0 -43
  736. package/out/_next/static/chunks/06ciqx79i2-.y.js +0 -16
  737. package/out/_next/static/chunks/06em3notkoupj.js +0 -60
  738. package/out/_next/static/chunks/06fu~nzcm6-xx.js +0 -13
  739. package/out/_next/static/chunks/06ldt6o0kv861.js +0 -12
  740. package/out/_next/static/chunks/06nnfpkytc2xp.js +0 -101
  741. package/out/_next/static/chunks/071ms7.~t3bpc.js +0 -73
  742. package/out/_next/static/chunks/07absjbyi5efz.js +0 -200
  743. package/out/_next/static/chunks/07e9hvcn2m7m0.css +0 -1
  744. package/out/_next/static/chunks/07gn.w-1ng2vv.js +0 -13
  745. package/out/_next/static/chunks/07ok4zsn3fbvv.js +0 -8
  746. package/out/_next/static/chunks/07rzofd~n_8p3.js +0 -111
  747. package/out/_next/static/chunks/08mu1xcbu0z5i.js +0 -1
  748. package/out/_next/static/chunks/08np.usn69g26.js +0 -12
  749. package/out/_next/static/chunks/08oxo2i_s5k32.js +0 -22
  750. package/out/_next/static/chunks/09.xyqg-s5.hj.js +0 -1
  751. package/out/_next/static/chunks/09kdzdul.4ws~.js +0 -5
  752. package/out/_next/static/chunks/09u84u49rpg~q.js +0 -10
  753. package/out/_next/static/chunks/0_0s9kzhzuc0n.js +0 -51
  754. package/out/_next/static/chunks/0_34hlmm2xs02.js +0 -1
  755. package/out/_next/static/chunks/0__0blfuajz3u.js +0 -1
  756. package/out/_next/static/chunks/0_bohk37n03zc.js +0 -13
  757. package/out/_next/static/chunks/0_fs4fka5dmk4.js +0 -14
  758. package/out/_next/static/chunks/0_t._or66p529.js +0 -10
  759. package/out/_next/static/chunks/0a6n-.sxlxj9i.js +0 -44
  760. package/out/_next/static/chunks/0aewtng76o8~g.js +0 -1
  761. package/out/_next/static/chunks/0aokk5k383t_7.js +0 -1
  762. package/out/_next/static/chunks/0bb3o6y0psmp~.js +0 -137
  763. package/out/_next/static/chunks/0binkax94nk~0.js +0 -286
  764. package/out/_next/static/chunks/0b~s0.jgd-9e2.js +0 -1
  765. package/out/_next/static/chunks/0c6p-vlcfco03.js +0 -2
  766. package/out/_next/static/chunks/0cau~hqb0jkf..js +0 -1
  767. package/out/_next/static/chunks/0chk_j9c0w74~.js +0 -21
  768. package/out/_next/static/chunks/0cnjwc8yv_7du.js +0 -36
  769. package/out/_next/static/chunks/0d1xe7n4~ift~.js +0 -119
  770. package/out/_next/static/chunks/0d2egm4vz55tp.js +0 -16
  771. package/out/_next/static/chunks/0dcng-~m.1-6b.js +0 -31
  772. package/out/_next/static/chunks/0dwysww-f770p.js +0 -43
  773. package/out/_next/static/chunks/0d~ogeoavcw1p.js +0 -2
  774. package/out/_next/static/chunks/0eh08mw_ge-97.js +0 -20
  775. package/out/_next/static/chunks/0ehfzo.p_8b1p.js +0 -142
  776. package/out/_next/static/chunks/0ei4k52e-lv4o.js +0 -596
  777. package/out/_next/static/chunks/0eq_bq11j1d8h.js +0 -73
  778. package/out/_next/static/chunks/0exrsz6ax-mbc.js +0 -50
  779. package/out/_next/static/chunks/0f7dus4chk-b7.js +0 -1
  780. package/out/_next/static/chunks/0f_2kctvcf9fc.js +0 -132
  781. package/out/_next/static/chunks/0fiu9kb2mg_pe.js +0 -1
  782. package/out/_next/static/chunks/0fzcyuwh8xfnw.js +0 -2
  783. package/out/_next/static/chunks/0gepdh_x8l03e.js +0 -31
  784. package/out/_next/static/chunks/0h3apzm4sorb-.js +0 -144
  785. package/out/_next/static/chunks/0hf6k~k9i9dml.js +0 -101
  786. package/out/_next/static/chunks/0hggeos.n3ho1.js +0 -324
  787. package/out/_next/static/chunks/0hs_qs3vvqt40.js +0 -224
  788. package/out/_next/static/chunks/0i.xcdg6xys-l.js +0 -1
  789. package/out/_next/static/chunks/0i2a62pwzd90a.js +0 -1
  790. package/out/_next/static/chunks/0i6yv64iri6c7.js +0 -14
  791. package/out/_next/static/chunks/0id0hab4x07mp.js +0 -13
  792. package/out/_next/static/chunks/0itsov_woj_gc.js +0 -11
  793. package/out/_next/static/chunks/0j0vos96uuvzn.js +0 -19
  794. package/out/_next/static/chunks/0jl_db3hgihi8.js +0 -1
  795. package/out/_next/static/chunks/0jsod19bi_.b4.js +0 -1
  796. package/out/_next/static/chunks/0jt2g8-m-bu3h.js +0 -15
  797. package/out/_next/static/chunks/0jxpx..caiup3.js +0 -51
  798. package/out/_next/static/chunks/0k3anlop2ta22.js +0 -1
  799. package/out/_next/static/chunks/0kg9ib_s2gdgg.js +0 -13
  800. package/out/_next/static/chunks/0klqyqhl-cmiq.js +0 -46
  801. package/out/_next/static/chunks/0krimw~~gz366.js +0 -2
  802. package/out/_next/static/chunks/0kwn.hg1e.um~.js +0 -44
  803. package/out/_next/static/chunks/0kwrzdkwhn88r.js +0 -13
  804. package/out/_next/static/chunks/0lcrt1adr76yw.js +0 -8
  805. package/out/_next/static/chunks/0ljk.6lm3l484.js +0 -7
  806. package/out/_next/static/chunks/0lq8y5ij59ip~.js +0 -1
  807. package/out/_next/static/chunks/0ltj_coftxt~y.js +0 -3
  808. package/out/_next/static/chunks/0lvph83c6z2a-.js +0 -1
  809. package/out/_next/static/chunks/0mehfyjroyd5m.js +0 -22
  810. package/out/_next/static/chunks/0n0rvtqgyilhu.js +0 -13
  811. package/out/_next/static/chunks/0n_8yfa~wwmvn.js +0 -16
  812. package/out/_next/static/chunks/0ncx_fjx5r3e9.js +0 -13
  813. package/out/_next/static/chunks/0njruqifmj7eb.js +0 -73
  814. package/out/_next/static/chunks/0nxa2d3rd~_hk.js +0 -20
  815. package/out/_next/static/chunks/0oavskn-j3nfr.js +0 -12
  816. package/out/_next/static/chunks/0oe9_~e6jba2c.js +0 -108
  817. package/out/_next/static/chunks/0on_9mgul7_i2.js +0 -188
  818. package/out/_next/static/chunks/0o~whquist5u6.js +0 -1
  819. package/out/_next/static/chunks/0p1dktj9e81.u.js +0 -209
  820. package/out/_next/static/chunks/0p2l~~8x6478b.js +0 -73
  821. package/out/_next/static/chunks/0p47r5clv~tji.js +0 -10
  822. package/out/_next/static/chunks/0pu7s41rb3je3.js +0 -1
  823. package/out/_next/static/chunks/0pvo5m24k8fer.js +0 -61
  824. package/out/_next/static/chunks/0q_s9ru.9iese.js +0 -193
  825. package/out/_next/static/chunks/0qoukboupb.ht.js +0 -14
  826. package/out/_next/static/chunks/0qsxmm8vi313~.js +0 -1
  827. package/out/_next/static/chunks/0qvf8s9fxj~ah.js +0 -41
  828. package/out/_next/static/chunks/0qy-relppwey0.js +0 -384
  829. package/out/_next/static/chunks/0r-a0zxkpzy.c.js +0 -14
  830. package/out/_next/static/chunks/0r017e-0mhnx2.js +0 -16
  831. package/out/_next/static/chunks/0r4jylm5inuxv.js +0 -13
  832. package/out/_next/static/chunks/0r6m.pwe-fw0s.js +0 -18
  833. package/out/_next/static/chunks/0rbjbp6y.a5ze.js +0 -8
  834. package/out/_next/static/chunks/0rds3div~3bsj.js +0 -15
  835. package/out/_next/static/chunks/0ridpuenplsy6.js +0 -46
  836. package/out/_next/static/chunks/0rwb5kn3yi~nn.js +0 -16
  837. package/out/_next/static/chunks/0s8kpaa2at0vl.js +0 -1
  838. package/out/_next/static/chunks/0sbwu9f3ons7y.js +0 -13
  839. package/out/_next/static/chunks/0sqtyywk.m-gb.js +0 -119
  840. package/out/_next/static/chunks/0suvx3w6t11x1.js +0 -14
  841. package/out/_next/static/chunks/0t.cqbkm36.29.js +0 -16
  842. package/out/_next/static/chunks/0ta5trm5g8qpx.js +0 -1
  843. package/out/_next/static/chunks/0u5rgvh_590-0.js +0 -15
  844. package/out/_next/static/chunks/0uzv9isqw0xwo.js +0 -12
  845. package/out/_next/static/chunks/0vu00vv4k8fm2.js +0 -5
  846. package/out/_next/static/chunks/0wbeo27c~tc9b.js +0 -13
  847. package/out/_next/static/chunks/0wc49~p9kujfb.js +0 -137
  848. package/out/_next/static/chunks/0we-.8a4ky2dw.js +0 -2
  849. package/out/_next/static/chunks/0whq69wyy9mrh.js +0 -1
  850. package/out/_next/static/chunks/0wjcrj2l-j~_f.js +0 -188
  851. package/out/_next/static/chunks/0wo4urhtm22ug.js +0 -1
  852. package/out/_next/static/chunks/0wuu4uyer4mlk.js +0 -31
  853. package/out/_next/static/chunks/0x4-t7xmjlqx1.js +0 -12
  854. package/out/_next/static/chunks/0x6_x80dsgoq7.js +0 -2
  855. package/out/_next/static/chunks/0xczkhpv81j3p.js +0 -1
  856. package/out/_next/static/chunks/0xo2uquse155f.js +0 -26
  857. package/out/_next/static/chunks/0xve~a_ipc.21.js +0 -81
  858. package/out/_next/static/chunks/0y153o27bxgcb.js +0 -1
  859. package/out/_next/static/chunks/0y51ico3_h9g3.js +0 -346
  860. package/out/_next/static/chunks/0y5ttyo5uc5l-.js +0 -15
  861. package/out/_next/static/chunks/0ydxs-rl4u1j7.js +0 -8
  862. package/out/_next/static/chunks/0yrt60iy59wz5.js +0 -13
  863. package/out/_next/static/chunks/0z.rzro53h5n6.js +0 -15
  864. package/out/_next/static/chunks/0zhqlp5hndrqa.js +0 -1
  865. package/out/_next/static/chunks/0znn2bf~0xx64.js +0 -46
  866. package/out/_next/static/chunks/0zpe1nbzz~f8h.js +0 -5
  867. package/out/_next/static/chunks/0zr4c4gwoe48t.js +0 -15
  868. package/out/_next/static/chunks/0~gsuncyic_fy.js +0 -2
  869. package/out/_next/static/chunks/0~tk5o7vtfrjq.js +0 -66
  870. package/out/_next/static/chunks/103dw~jwhci8m.js +0 -61
  871. package/out/_next/static/chunks/1041bp0usprml.js +0 -217
  872. package/out/_next/static/chunks/10bhd86pfsoy5.js +0 -3
  873. package/out/_next/static/chunks/10jmwo0cv2790.js +0 -100
  874. package/out/_next/static/chunks/10m8c175impy1.js +0 -135
  875. package/out/_next/static/chunks/10y5-.kflf93t.js +0 -13
  876. package/out/_next/static/chunks/11_s223xijkg..js +0 -14
  877. package/out/_next/static/chunks/11fl4v~k-i6dd.js +0 -1
  878. package/out/_next/static/chunks/11rfgl5vsu7np.js +0 -147
  879. package/out/_next/static/chunks/11sml2nj796.7.js +0 -59
  880. package/out/_next/static/chunks/11smy7~k0731f.js +0 -12
  881. package/out/_next/static/chunks/12e_gn-hj1ad4.js +0 -5
  882. package/out/_next/static/chunks/12nnf6pgi3n_-.js +0 -16
  883. package/out/_next/static/chunks/12q9qfk5yyvku.js +0 -288
  884. package/out/_next/static/chunks/13h_3r03rklr2.js +0 -54
  885. package/out/_next/static/chunks/13tjz9q-ls~t3.js +0 -1
  886. package/out/_next/static/chunks/13ytbvm.zbpoc.js +0 -13
  887. package/out/_next/static/chunks/13ztct7h9n9ly.js +0 -1
  888. package/out/_next/static/chunks/14.go5qd.nd-p.js +0 -22
  889. package/out/_next/static/chunks/14e4xylnze3x2.js +0 -1
  890. package/out/_next/static/chunks/14kk7enrk.1zd.js +0 -14
  891. package/out/_next/static/chunks/14q69-rwokbvm.js +0 -13
  892. package/out/_next/static/chunks/14tbg01czewdy.js +0 -1
  893. package/out/_next/static/chunks/14vhb8kz5tl75.js +0 -471
  894. package/out/_next/static/chunks/15r--ckscx-95.js +0 -227
  895. package/out/_next/static/chunks/15wy-.8-w435h.js +0 -92
  896. package/out/_next/static/chunks/15z9m-o4tbe0n.js +0 -1
  897. package/out/_next/static/chunks/169ub5vhwew62.js +0 -1
  898. package/out/_next/static/chunks/16_-z_hnq-xk7.js +0 -12
  899. package/out/_next/static/chunks/16s_3ks~~cizu.js +0 -31
  900. package/out/_next/static/chunks/16wl81ja44b1o.js +0 -54
  901. package/out/_next/static/chunks/16yuttvlotzf1.js +0 -13
  902. package/out/_next/static/chunks/17iwj3.fr3dk8.js +0 -7
  903. package/out/_next/static/chunks/17l28vjc_z915.js +0 -596
  904. package/out/_next/static/chunks/17v04.so.9g1..js +0 -1
  905. package/out/_next/static/chunks/181fxym9wgh_m.js +0 -1
  906. package/out/_next/static/chunks/188m.-obobpy_.js +0 -178
  907. package/out/_next/static/chunks/turbopack-0-c-m~y_.l8n2.js +0 -1
  908. package/out/_next/static/chunks/turbopack-0-ly3m1ffx4wa.js +0 -1
  909. package/out/_next/static/chunks/turbopack-0-w~ect25bcud.js +0 -1
  910. package/out/_next/static/chunks/turbopack-0.2nskz5ux6vf.js +0 -1
  911. package/out/_next/static/chunks/turbopack-00s1egv_1qxjy.js +0 -1
  912. package/out/_next/static/chunks/turbopack-00xxfsstzot2t.js +0 -1
  913. package/out/_next/static/chunks/turbopack-01cocbtxks9vh.js +0 -1
  914. package/out/_next/static/chunks/turbopack-032afnigdvseo.js +0 -1
  915. package/out/_next/static/chunks/turbopack-03hvtuilfwgpp.js +0 -1
  916. package/out/_next/static/chunks/turbopack-04r-j8f.wnbc8.js +0 -1
  917. package/out/_next/static/chunks/turbopack-06m0ig9acgabg.js +0 -1
  918. package/out/_next/static/chunks/turbopack-06rfum.y.5-0h.js +0 -1
  919. package/out/_next/static/chunks/turbopack-07kkmwgy.zqc4.js +0 -1
  920. package/out/_next/static/chunks/turbopack-07qbascdm6h.j.js +0 -1
  921. package/out/_next/static/chunks/turbopack-087jzd1gou_ln.js +0 -1
  922. package/out/_next/static/chunks/turbopack-08h61bgwzagra.js +0 -1
  923. package/out/_next/static/chunks/turbopack-09d04tqccs343.js +0 -1
  924. package/out/_next/static/chunks/turbopack-0a1fdpd8.q282.js +0 -1
  925. package/out/_next/static/chunks/turbopack-0azc8sns1skk7.js +0 -1
  926. package/out/_next/static/chunks/turbopack-0b6fo_~4ih.xu.js +0 -1
  927. package/out/_next/static/chunks/turbopack-0bv6z-ics5a1v.js +0 -1
  928. package/out/_next/static/chunks/turbopack-0c6v~i5zl-_gb.js +0 -1
  929. package/out/_next/static/chunks/turbopack-0cn_kcha7l~dv.js +0 -1
  930. package/out/_next/static/chunks/turbopack-0d6899l2l47lo.js +0 -1
  931. package/out/_next/static/chunks/turbopack-0f3a-2xdfi37o.js +0 -1
  932. package/out/_next/static/chunks/turbopack-0h1nt4kh7q.sg.js +0 -1
  933. package/out/_next/static/chunks/turbopack-0hh49n1y8gh-z.js +0 -1
  934. package/out/_next/static/chunks/turbopack-0ike2xsgynih8.js +0 -1
  935. package/out/_next/static/chunks/turbopack-0iyvc628rll34.js +0 -1
  936. package/out/_next/static/chunks/turbopack-0j-vlj505~ob9.js +0 -1
  937. package/out/_next/static/chunks/turbopack-0j4w2c8pgyzts.js +0 -1
  938. package/out/_next/static/chunks/turbopack-0kblf3k62bseb.js +0 -1
  939. package/out/_next/static/chunks/turbopack-0l-~7v3-4~9hg.js +0 -1
  940. package/out/_next/static/chunks/turbopack-0lb9brrvzbipj.js +0 -1
  941. package/out/_next/static/chunks/turbopack-0lxybl6vxlhqz.js +0 -1
  942. package/out/_next/static/chunks/turbopack-0mlri9n~ktoxa.js +0 -1
  943. package/out/_next/static/chunks/turbopack-0mrgw~e1q9n4l.js +0 -1
  944. package/out/_next/static/chunks/turbopack-0na33zduv8spb.js +0 -1
  945. package/out/_next/static/chunks/turbopack-0o_.gb8s5jo85.js +0 -1
  946. package/out/_next/static/chunks/turbopack-0ofwh3p918g-t.js +0 -1
  947. package/out/_next/static/chunks/turbopack-0o~anfgw~s_~q.js +0 -1
  948. package/out/_next/static/chunks/turbopack-0q3dp3wkxb9ro.js +0 -1
  949. package/out/_next/static/chunks/turbopack-0q5hq623ooh_q.js +0 -1
  950. package/out/_next/static/chunks/turbopack-0rd~zo~yh9.xl.js +0 -1
  951. package/out/_next/static/chunks/turbopack-0s3jauzip9.x..js +0 -1
  952. package/out/_next/static/chunks/turbopack-0uukmkfqyl0h8.js +0 -1
  953. package/out/_next/static/chunks/turbopack-0w_qsium_grk3.js +0 -1
  954. package/out/_next/static/chunks/turbopack-0wbajkw2~1l3z.js +0 -1
  955. package/out/_next/static/chunks/turbopack-0wej6bu7ey9au.js +0 -1
  956. package/out/_next/static/chunks/turbopack-0wk424kj.kar2.js +0 -1
  957. package/out/_next/static/chunks/turbopack-0xew6rccsve8y.js +0 -1
  958. package/out/_next/static/chunks/turbopack-0y898tb-~kae~.js +0 -1
  959. package/out/_next/static/chunks/turbopack-0~lzxx1ip4b0u.js +0 -1
  960. package/out/_next/static/chunks/turbopack-11.ar48mv3rch.js +0 -1
  961. package/out/_next/static/chunks/turbopack-11eqwvrhzm6gb.js +0 -1
  962. package/out/_next/static/chunks/turbopack-12cd3.da_pv_e.js +0 -1
  963. package/out/_next/static/chunks/turbopack-12hcx9pi_e_wy.js +0 -1
  964. package/out/_next/static/chunks/turbopack-12pksi_8~z4-a.js +0 -1
  965. package/out/_next/static/chunks/turbopack-146i7rj93.pk3.js +0 -1
  966. package/out/_next/static/chunks/turbopack-15d8c1ob0a6m0.js +0 -1
  967. package/out/_next/static/chunks/turbopack-16-bzzuvc9d9..js +0 -1
  968. package/out/_next/static/chunks/turbopack-17sr.m9o6jhdb.js +0 -1
  969. package/out/_next/static/chunks/turbopack-1829xb~o3h36e.js +0 -1
  970. package/out/admin-ui-permissions.js +0 -129
  971. /package/out/_next/static/{_ZCNVAj2ptQ3WvyS9d8fH → BPoacQET3TJr2q9E370Ez}/_clientMiddlewareManifest.js +0 -0
  972. /package/out/_next/static/{_ZCNVAj2ptQ3WvyS9d8fH → BPoacQET3TJr2q9E370Ez}/_ssgManifest.js +0 -0
@@ -0,0 +1,54 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[25093,e=>{var t=e.i(91398),r=e.i(91788);e.s(["f",0,({value:e,duration:s=300})=>{let[a,l]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let t,r;if(0===e)return void l(0);let a=i=>{t||(t=i);let n=Math.min((i-t)/s,1);l(Math.round((1-Math.pow(1-n,3))*e)),n<1&&(r=requestAnimationFrame(a))};return r=requestAnimationFrame(a),()=>{r&&cancelAnimationFrame(r)}},[e,s]),(0,t.jsx)("span",{children:a})}])},82078,e=>{var t=e.i(91398),r=e.i(44112);e.s(["f",0,({title:e=null,description:s})=>(0,t.jsx)("div",{className:"mb-6 p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg",children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(r.f,{className:"w-5 h-5 text-blue-600 dark:text-blue-400 mt-0.5 flex-shrink-0"}),(0,t.jsxs)("div",{children:[e&&(0,t.jsx)("h3",{className:"text-sm font-semibold text-blue-900 dark:text-blue-100 mb-2",children:e}),(0,t.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200 leading-relaxed",children:s})]})]})})])},70553,e=>{var t=e.i(91398),r=e.i(69322);e.s(["f",0,({children:e=null,totalRecords:s=null})=>{let{formatMessage:a}=(0,r.X)();return(0,t.jsxs)("div",{className:"mt-5",children:[null!==s?(0,t.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:a({id:"total_records",defaultMessage:"{total} records found"},{total:s??0})}):null,e&&(0,t.jsx)("div",{className:"flex items-center mt-10",children:(0,t.jsx)("h3",{className:"text-xs leading-6 text-text-muted",children:e})})]})}])},2194,e=>{var t=e.i(91398),r=e.i(92802),r=r,s=e.i(56206),a=e.i(69322);e.s(["f",0,({message:e,className:l="",Icon:i=null})=>(0,t.jsx)("div",{className:(0,s.U)("rounded-md flex w-full flex-col items-center justify-center min-h-[176px] py-8 border-1 border-dashed border-border-default text-slate-500 dark:text-slate-600",l),children:(0,t.jsxs)("div",{className:"grid items-center justify-center",children:[(0,t.jsx)("div",{className:"flex items-center justify-center text-slate-400 dark:text-slate-600",children:i||(0,t.jsx)(r.f,{className:"h-6 w-6"})}),(0,t.jsx)(a.L,{id:"no_data_message",defaultMessage:"<p>No <span> {message} available</span> </p>",values:{p:e=>(0,t.jsx)("p",{className:"mt-2 m-auto flex items-center justify-center",children:e}),span:e=>(0,t.jsxs)("span",{className:"capitalize ml-1",children:[" ",e," "]}),message:e}})]})})],2194)},64481,e=>{var t=e.i(91788),r=e.i(30943);e.s(["f",0,({children:e,container:s=null,className:a=""})=>{let l=(0,t.useRef)(null),[i,n]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");a&&(e.className=a),l.current=e;let t=s||document.body;return t.appendChild(e),n(!0),()=>{l.current&&t.contains(l.current)&&t.removeChild(l.current)}},[s,a]),i&&l.current)?(0,r.createPortal)(e,l.current):null}])},35793,e=>{var t=e.i(91398),r=e.i(69322),s=e.i(2765);e.s(["f",0,({inputText:e=null,onInputChange:a,defaultValue:l})=>{let{formatMessage:i}=(0,r.X)(),n=(0,s.f)(200)(a);return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("label",{htmlFor:"search",className:"sr-only",children:e||i({id:"search",defaultMessage:"Search"})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-slate-400 dark: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:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})})}),(0,t.jsx)("input",{onChange:e=>n(e.target.value),id:"search",defaultValue:l,name:"search",className:"block w-full rounded-md border-1 border-border-default text-slate-900 dark:bg-slate-900 dark:text-slate-200 py-3 pl-10 px-4 shadow-xs placeholder:text-slate-400 dark:placeholder:text-slate-400 focus:ring-2 focus:ring-focus-ring focus:outline-hidden sm:text-sm",placeholder:i({id:"search",defaultMessage:"Search"}),type:"search"})]})]})}])},76038,e=>{var t=e.i(91398),r=e.i(91788),s=e.i(56206),a=e.i(69322),l=e.i(42469);let i=e=>e?Array.isArray(e)?e:e.toString()?.split(",")?.map(e=>e.trim()):[];e.s(["f",0,({tagList:e,onChange:n,disabled:d=!1,name:c="tag-input",id:u="tag-input",placeholder:o="",selectOptions:f=[],className:m="",buttonText:x="",showTagsInline:h=!0})=>{let{formatMessage:g}=(0,a.X)(),[p,y]=(0,r.useState)(i(e)),[v,b]=(0,r.useState)(""),[j,w]=(0,r.useState)(!1),C=(0,r.useRef)(null);(0,r.useEffect)(()=>{y(i(e))},[e]),(0,r.useEffect)(()=>{let e=e=>{C.current&&!C.current.contains(e.target)&&w(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let N=(0,r.useCallback)(e=>{let t=e.trim(),r=f.find(e=>e.value.toLowerCase()===t.toLowerCase()),s=r?.value||t;if(!p.some(e=>e.toLowerCase()===s.toLowerCase())&&s){let e=[...p,s];y(e),n(e),b(""),w(!1)}},[p,n,f]),M=(0,r.useMemo)(()=>{let e=f.filter(e=>!p.some(t=>t.toLowerCase()===e.value.toLowerCase()));return v?e.filter(e=>e.label.toLowerCase().includes(v.toLowerCase())):e},[f,p,v]),_=v.trim().toLowerCase(),k=!!(_&&!p.some(e=>e.toLowerCase()===_)&&!f.some(e=>e.value.toLowerCase()===_)),I=(0,t.jsxs)("div",{className:"relative",ref:C,children:[(0,t.jsx)("input",{id:u,name:c,type:"text",role:"combobox","aria-expanded":j,"aria-autocomplete":"list",disabled:d,className:(0,s.U)("w-full rounded-md border border-border-default bg-surface-input py-2.5 pl-4 pr-4 text-sm text-text-primary placeholder:text-text-muted shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",m),placeholder:o,value:v,onChange:e=>{b(e.target.value),w(!0)},onFocus:()=>w(!0),onKeyDown:e=>{"Enter"===e.key&&v.trim()&&(e.preventDefault(),N(M[0]?.value||v.trim()))}}),j&&(k||M.length>0)&&(0,t.jsxs)("ul",{role:"listbox",className:"absolute z-9999999 mt-1 max-h-60 w-full overflow-auto rounded-md bg-surface border border-border-subtle py-1 text-sm shadow-lg",children:[M.map(e=>(0,t.jsx)("li",{role:"option","aria-selected":!1,className:"cursor-pointer select-none py-2 px-4 text-text-primary hover:bg-surface-raised",onMouseDown:t=>{t.preventDefault(),N(e.value)},children:e.label},e.value)),k&&(0,t.jsx)("li",{role:"option","aria-selected":!1,className:"cursor-pointer select-none border-t border-border-subtle py-2 px-4 text-text-primary hover:bg-surface-raised",onMouseDown:e=>{e.preventDefault(),N(v.trim())},children:x||g({id:"add_new_tag",defaultMessage:'Add "{inputValue}"'},{inputValue:v.trim()})})]})]});return h?(0,t.jsxs)(t.Fragment,{children:[I,(0,t.jsx)("div",{className:(0,s.U)("ml-4 flex items-center flex-wrap gap-5",p.length>0&&"mt-1"),children:p?.map(e=>(0,t.jsx)(l.f,{text:e,color:"slate",onClick:()=>(e=>{let t=p.indexOf(e);if(-1!==t){let e=[...p];e.splice(t,1),n(e),y(e)}})(e)},e))})]}):I}])},78704,e=>{var t=e.i(91398),r=e.i(91788),s=e.i(53576);e.s(["f",0,({loading:e,hasMore:a,onLoadMore:l,children:i,threshold:n=200})=>{let d=(0,r.useRef)(null),c=(0,r.useRef)(e),u=(0,r.useRef)(a),o=(0,r.useRef)(l);return c.current=e,u.current=a,o.current=l,(0,r.useEffect)(()=>{let e=d.current;if(!e)return;let t=new IntersectionObserver(e=>{let t=e.at(-1);t?.isIntersecting&&u.current&&!c.current&&o.current()},{rootMargin:`${n}px`});return t.observe(e),()=>t.disconnect()},[n,a]),(0,t.jsxs)(t.Fragment,{children:[i,a&&(0,t.jsx)("div",{ref:d,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(s.f,{})})]})}])},51128,e=>{var t=e.i(91398),r=e.i(69322),s=e.i(3828),a=e.i(35793),l=e.i(76038),i=e.i(42469),n=e.i(83147),d=e.i(73319);e.s(["f",0,({children:e,onSearchChange:c,defaultSearchValue:u,showTagFilter:o=!1,availableTagOptions:f=[]})=>{let{formatMessage:m}=(0,r.X)(),{query:x,push:h}=(0,s.useRouter)(),g=e=>{if((0,d.T)(e))h({query:(0,n._)(x,e?.join(","),"tags")});else{let{tags:e,...t}=x;h({query:(0,n._)(t)})}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(a.f,{onInputChange:c,defaultValue:u})}),o&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1 sm:border-l sm:border-border-default sm:pl-3",children:[(0,t.jsx)("div",{className:"max-w-xs",children:(0,t.jsx)(l.f,{buttonText:m({id:"apply",defaultMessage:"Apply"}),placeholder:m({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:x?.tags?.split(","),onChange:g,selectOptions:f,showTagsInline:!1})}),x?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:x?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(i.f,{text:e,color:"slate",onClick:()=>{let t=x?.tags?.split(",").filter(t=>t!==e);g(t.length>0?t:null)}},e))})]})]})}),e]})}])},8918,e=>{var t=e.i(91398),r=e.i(91788),s=e.i(56206),a=e.i(69322),l=e.i(88566),i=e.i(25575),n=e.i(3828),d=e.i(83147);let c=({onSort:e,sortDirection:r})=>r?"ASC"===r?(0,t.jsx)(i.f,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,t.jsx)(l.f,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"ml-2 w-6 h-6",onClick:e,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})});var u=e.i(2194);let o=e=>{let t=[],s=[],a=[];return r.default.Children.forEach(e.children,e=>{e?.props?.header?t.push(e):e?.props?.footer?a.push(e):s.push(e)}),{header:t,footer:a,body:s}},f=({className:e="",...l})=>{let[i,n]=(0,r.useState)(o(l)),{formatMessage:d}=(0,a.X)(),c={...i,header:r.default.Children.map(i.header,e=>r.default.cloneElement(e))};return(0,r.useEffect)(()=>{n(o(l))},[l.children]),c.header.length||c.body.length?(0,t.jsxs)("table",{className:(0,s.U)("overflow-hidden my-3 flex w-full flex-row flex-nowrap divide-y divide-slate-200 dark:divide-slate-600 shadow-sm sm:rounded-lg sm:bg-white dark:bg-slate-950",e),...l,children:[(0,t.jsx)("thead",{className:"hidden sm:table-header-group bg-surface-raised text-sm text-text-secondary",children:c.header}),c.body.length?(0,t.jsx)("tbody",{className:"space-y-4 sm:space-y-0 flex-1 sm:divide-y divide-slate-200 dark:divide-slate-700 sm:bg-white dark:sm:bg-slate-800 sm:flex-none",children:c.body}):null,c.footer.length?(0,t.jsx)("tfoot",{children:c.footer}):null]}):(0,t.jsx)(u.f,{message:d({id:"data",defaultMessage:"Data"})})};f.Row=({className:e="",children:a=[],header:l=!1,enablesort:i=!1,...n})=>{let d=r.default.Children.map(a,e=>r.default?.cloneElement(e||(0,t.jsx)("span",{}),{header:l,enablesort:i}));return(0,t.jsx)("tr",{className:(0,s.U)("grid grid-cols-1 auto-rows-fr border border-border-subtle sm:border-0 rounded-md sm:mb-0 sm:table-row sm:rounded-none bg-surface sm:bg-inherit dark:sm:bg-inherit",e),...n,children:d})},f.Cell=({className:e="",header:r=!1,enablesort:a=!1,children:l,sortKey:i=null,defaultSortDirection:u=null,...o})=>{let f=(0,n.useRouter)(),m=(0,d.v)(f.query?.sort),x=r?"th":"td";return(0,t.jsx)(x,{className:(0,s.U)(r?"px-4 py-3 text-left text-text-muted":"whitespace-nowrap px-4 py-3 text-text-muted border-b dark:border-slate-300 last:border-b-0 sm:border-b-0 text-left flex items-center sm:table-cell",e),...o,children:(0,t.jsxs)("div",{className:"flex items-center",children:[l,"th"===x&&a&&i&&(0,t.jsx)(c,{onSort:e=>{var t;let r;e.preventDefault(),((t=m[i])?"ASC"===t?"DESC":null:"ASC")||!m[i]?r={...m,[i]:"ASC"===m[i]?"DESC":"ASC"}:(delete m[i],r=m);let s=Object.entries(r).map(([e,t])=>[e,t].join("_")).join(","),{sort:a,...l}=f.query,n=Object.keys(l).map(e=>[e,l[e]].join("=")).join("&"),c=0===Object.keys(l).length?`${f.basePath}?sort=${s}`:`${f.basePath}?${n}&sort=${s}`;s?f.push(c):f.push({query:(0,d._)(l)})},sortDirection:Object.keys(m).length?m[i]:u})]})})},e.s(["f",0,f],8918)},3095,e=>{var t=e.i(91398),r=e.i(91788),s=e.i(69322),a=e.i(86712),l=e.i(76842),i=e.i(24557),n=e.i(64481);e.s(["f",0,({onEdit:e,onDelete:d,editLabel:c,deleteLabel:u,showEdit:o=!0,showDelete:f=!0})=>{let{formatMessage:m}=(0,s.X)(),[x,h]=(0,r.useState)(!1),[g,p]=(0,r.useState)({top:0,left:0}),y=(0,r.useRef)(null),v=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{y.current&&!y.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let b=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),h(!1)};return 0===[o&&e,f&&d].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:v,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),x||(()=>{if(!v.current)return;let e=v.current.getBoundingClientRect(),t=e.bottom+4,r=e.right-192;r<8&&(r=8),t+80>window.innerHeight-8&&(t=e.top-80-4),p({top:t,left:r})})(),h(!x)},className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-surface-raised transition-colors","aria-label":m({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,t.jsx)(a.f,{className:"w-5 h-5 text-text-muted"})}),x&&(0,t.jsx)(n.f,{children:(0,t.jsx)("div",{ref:y,className:"fixed w-48 bg-surface rounded-md shadow-xl border border-border-subtle z-[9999]",style:{top:g.top,left:g.left},children:(0,t.jsxs)("div",{className:"py-1",children:[o&&e&&(0,t.jsxs)("button",{type:"button",onClick:t=>b(t,e),className:"flex items-center w-full px-4 py-2 text-sm text-text-secondary hover:bg-surface-raised transition-colors",children:[(0,t.jsx)(l.f,{className:"mr-3 h-5 w-5"}),c||m({id:"edit",defaultMessage:"Edit"})]}),f&&d&&(0,t.jsxs)("button",{type:"button",onClick:e=>b(e,d),className:"flex items-center w-full px-4 py-2 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 transition-colors",children:[(0,t.jsx)(i.f,{className:"mr-3 h-5 w-5"}),u||m({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},2765,e=>{e.s(["f",0,(e=500)=>t=>{let r;return(...s)=>{let a;clearTimeout(r),r=setTimeout(()=>t.apply(a,s),e)}}])},83147,e=>{let t=e=>e&&e?.split(",").reduce((e,t)=>{let[r=null,s=null]=(t||"")?.split("_")||[];return{...e,[r]:s}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"j",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"I",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"_",0,(e,t,r)=>{let s;return s=r?{...e,[r]:t}:e,Object.keys(s)?.map(e=>[e,s[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:r}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:r}).format(t/100)}})])},40191,e=>{var t=e.i(91398),r=e.i(69322);e.i(51523);var s=e.i(19518),a=e.i(58971),l=e.i(6634),i=e.i(69211),n=e.i(21128),d=e.i(16984),c=e.i(10685),u=e.i(98949),o=e.i(82226);e.s(["f",0,({onSubmit:e,onSubmitSuccess:f=null,defaultValue:m={},isEdit:x=!1})=>{let{formatMessage:h}=(0,r.X)(),{hasRole:g}=(0,a.f)(),p=h({id:"currency_added",defaultMessage:"Currency added successfully!"}),y=h({id:"currency_updated",defaultMessage:"Currency updated successfully!"}),v=(0,u.f)({submit:e,onSubmitSuccess:f,successMessage:x?y:p,getSubmitErrorMessage:e=>{if(e?.message?.includes("duplicate key"))return v.api.setFieldError("isoCode",h({id:"currency_exists",defaultMessage:"Currency with the same ISO code already exists"})),null},initialValues:{isoCode:"",contractAddress:"",isActive:!1,decimals:2,...m}});return(0,t.jsxs)(i.f,{form:v,children:[(0,t.jsxs)("div",{className:"p-5 pb-7",children:[(0,t.jsx)(d.f,{name:"isoCode",disabled:!g(s.C.ManageCurrencies),id:"isoCode",label:h({id:"iso_code",defaultMessage:"ISO code"}),autoComplete:"on",required:!0}),(0,t.jsx)(d.f,{name:"contractAddress",disabled:!g(s.C.ManageCurrencies),id:"contractAddress",validators:[(0,o.J)()],label:h({id:"contract_address",defaultMessage:"Contract Address"}),autoComplete:"on",className:"mt-4"}),(0,t.jsx)(c.f,{className:"mt-4",label:h({id:"decimals",defaultMessage:"Decimals"}),required:!0,name:"decimals",disabled:!g(s.C.ManageCurrencies),options:Object.fromEntries(Array(32).fill(null).map((e,t)=>[t,`${t}`]))}),x&&(0,t.jsx)("div",{className:"mt-5 flex items-center",children:(0,t.jsx)(l.f,{toggleText:h({id:"active",defaultMessage:"Active"}),disabled:!g(s.C.ManageCurrencies),active:v.api.values.isActive,onToggle:()=>v.api.setFieldValue("isActive",!v.api.values.isActive)})})]}),g(s.C.ManageCurrencies)&&(0,t.jsx)("div",{className:"border-t-slate-100 border-t border-t-border-subtle space-y-6 rounded-b-md bg-surface-subtle p-5 text-right",children:(0,t.jsx)(n.f,{label:x?h({id:"update_currency",defaultMessage:"Update Currency"}):h({id:"add_currency",defaultMessage:"Add Currency"})})})]})}])},68191,e=>{var t=e.i(59080);let r=t.a`
2
+ fragment CurrencyFragment on Currency {
3
+ _id
4
+ isoCode
5
+ isActive
6
+ contractAddress
7
+ decimals
8
+ }
9
+ `;e.s(["f",0,r])},79093,e=>{var t=e.i(59080),r=e.i(32171),s=e.i(68191);let a=t.a`
10
+ query Currencies(
11
+ $queryString: String
12
+ $limit: Int
13
+ $offset: Int
14
+ $includeInactive: Boolean
15
+ $sort: [SortOptionInput!]
16
+ ) {
17
+ currencies(
18
+ queryString: $queryString
19
+ limit: $limit
20
+ offset: $offset
21
+ includeInactive: $includeInactive
22
+ sort: $sort
23
+ ) {
24
+ ...CurrencyFragment
25
+ }
26
+ currenciesCount(
27
+ includeInactive: $includeInactive
28
+ queryString: $queryString
29
+ )
30
+ }
31
+ ${s.f}
32
+ `;e.s(["f",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:l=!0,sort:i=[]}={})=>{let{data:n,loading:d,error:c,fetchMore:u}=(0,r.f)(a,{variables:{queryString:e,limit:t,offset:s,includeInactive:l,sort:i}}),o=n?.currencies||[],f=n?.currenciesCount,m=o?.length<f;return{currencies:o,currenciesCount:f,hasMore:m,loading:d,error:c,loadMore:()=>{u({variables:{offset:o?.length}})}}}])},22787,e=>{var t=e.i(59080),r=e.i(32171),s=e.i(70693),a=e.i(68191);e.s(["f",0,({currencyId:e})=>{let{customProperties:l}=(0,s.f)(),{data:i,loading:n,error:d}=(0,r.f)(((e="")=>t.a`
33
+ query Currency($currencyId: ID!) {
34
+ currency(currencyId: $currencyId) {
35
+ ...CurrencyFragment
36
+ ${e}
37
+ }
38
+ }
39
+ ${a.f}
40
+ `)(l?.Currency),{skip:!e,variables:{currencyId:e}});return{currency:i?.currency,loading:n,error:d}}])},45401,e=>{var t=e.i(59080),r=e.i(76204),s=e.i(68191);let a=t.a`
41
+ mutation RemoveCurrency($currencyId: ID!) {
42
+ removeCurrency(currencyId: $currencyId) {
43
+ ...CurrencyFragment
44
+ }
45
+ }
46
+ ${s.f}
47
+ `;e.s(["f",0,()=>{let[e]=(0,r.f)(a);return{removeCurrency:async({currencyId:t})=>e({variables:{currencyId:t},refetchQueries:["Currencies","ShopStatus","ShopInfo"]})}}])},15971,e=>{var t=e.i(91398),r=e.i(69322);e.s(["f",0,({onOkClick:e,onCancelClick:s,okText:a=null,cancelText:l=null,headerText:i=null,message:n=null,icon:d=null,close:c=null,loading:u=!1})=>{let{formatMessage:o}=(0,r.X)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[d||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-danger",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,t.jsx)("h3",{className:"text-lg text-text-primary",id:"modal-title",children:i||o({id:"warning",defaultMessage:"Warning!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-text-muted",children:n||o({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,t.jsx)("button",{id:"danger_continue",onClick:e,disabled:u,"aria-busy":u,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:ml-3 sm:w-auto sm:text-sm",children:a||o({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:s||c,disabled:u,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-border-default bg-surface px-4 py-2 text-base font-medium text-text-secondary shadow-xs hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:l||o({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{var t=e.i(91788),r=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(r.f)])},73664,e=>{var t=e.i(91398),r=e.i(3828);e.i(51523);var s=e.i(19518),a=e.i(69322),l=e.i(28401),i=e.i(5505),n=e.i(40191),d=e.i(22787),c=e.i(45401),u=e.i(59080),o=e.i(76204),f=e.i(68191);let m=u.a`
48
+ mutation UpdateCurrency($currency: UpdateCurrencyInput!, $currencyId: ID!) {
49
+ updateCurrency(currency: $currency, currencyId: $currencyId) {
50
+ ...CurrencyFragment
51
+ }
52
+ }
53
+ ${f.f}
54
+ `;var x=e.i(50595),h=e.i(25327),g=e.i(6607),p=e.i(15971),y=e.i(21623),v=e.i(24608),b=e.i(53576),j=e.i(83147),w=e.i(58971);e.s(["default",0,({currencyId:e})=>{let{push:u}=(0,r.useRouter)(),{formatMessage:f,locale:C}=(0,a.X)(),{hasRole:N}=(0,w.f)(),{setModal:M}=(0,g.f)(),{currency:_,loading:k}=(0,d.f)({currencyId:e}),{updateCurrency:I}=(()=>{let[e]=(0,o.f)(m);return{updateCurrency:async({currency:{isoCode:t,isActive:r,decimals:s,contractAddress:a},currencyId:l})=>e({variables:{currency:{isoCode:t,isActive:r,contractAddress:a,decimals:parseInt(s||"2",10)},currencyId:l},refetchQueries:["Currencies","ShopStatus","ShopInfo"]})}})(),{removeCurrency:E}=(0,c.f)(),A=async({isActive:t,isoCode:r,contractAddress:s,decimals:a})=>(await I({currencyId:e,currency:{isActive:t,isoCode:r,contractAddress:s,decimals:a}}),!0),S=async()=>{await M((0,t.jsx)(p.f,{onCancelClick:async()=>M(""),message:f({id:"delete_currency_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this currency? "}),onOkClick:async()=>{M(""),await E({currencyId:e}),l.toast.success(f({id:"currency_deleted",defaultMessage:"Currency deleted successfully"})),u("/currency")},okText:f({id:"delete_currency",defaultMessage:"Delete currency"})}))};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(x.f,{currentPageTitle:(0,j.j)(C,_?.isoCode)}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(h.f,{headerText:(0,j.j)(C,_?.isoCode)}),N(s.C.ManageCurrencies)&&(0,t.jsx)(y.f,{variant:"danger",icon:(0,t.jsx)(v.f,{className:"h-5 w-5"}),text:"Delete",onClick:S})]}),k?(0,t.jsx)(b.f,{}):(0,t.jsx)("div",{className:"mx-auto mt-6 sm:max-w-xl",children:(0,t.jsx)(i.U,{children:(0,t.jsx)(n.f,{onSubmit:A,defaultValue:_,isEdit:!0})})})]})}],73664)},29378,e=>{var t=e.i(91398),r=e.i(69322);e.i(51523);var s=e.i(19518),a=e.i(28401),l=e.i(3828),i=e.i(60193),n=e.i(58971),d=e.i(8918),c=e.i(42469),u=e.i(3095),o=e.i(83147);let f=({currency:e,onRemove:s,enableEdit:a,enableDelete:i})=>{let{locale:n,formatMessage:f}=(0,r.X)(),m=(0,l.useRouter)(),x={true:f({id:"active",defaultMessage:"Active"}),false:f({id:"in_active",defaultMessage:"In-Active"})};return(0,t.jsxs)(d.f.Row,{className:"text-sm",children:[(0,t.jsx)(d.f.Cell,{children:e.isoCode}),(0,t.jsx)(d.f.Cell,{children:(0,o.j)(n,e?.isoCode,!1)}),(0,t.jsx)(d.f.Cell,{children:(0,t.jsx)(c.f,{text:x[e.isActive],color:e.isActive?"emerald":"amber",square:!0})}),(a||i)&&(0,t.jsx)(d.f.Cell,{children:(0,t.jsx)(u.f,{onEdit:a?()=>{m.push(`/currency?currencyId=${e?._id}`)}:void 0,onDelete:i?()=>{s(e?._id)}:void 0,showEdit:a,showDelete:i})})]})},m=({currencies:e,onRemoveCurrency:a,sortable:l})=>{let{formatMessage:i}=(0,r.X)(),{hasRole:c}=(0,n.f)();return(0,t.jsxs)(d.f,{className:"min-w-full ",children:[e?.map(e=>(0,t.jsxs)(d.f.Row,{header:!0,enablesort:l,children:[(0,t.jsx)(d.f.Cell,{sortKey:"isoCode",children:i({id:"iso_code",defaultMessage:"ISO code"})}),(0,t.jsx)(d.f.Cell,{children:i({id:"name",defaultMessage:"Name"})}),(0,t.jsx)(d.f.Cell,{sortKey:"isActive",children:i({id:"status",defaultMessage:"Status"})}),(0,t.jsx)(d.f.Cell,{children:" "})]},e._id)),e?.map(e=>(0,t.jsx)(f,{currency:e,onRemove:a,enableDelete:c(s.C.ManageCurrencies),enableEdit:c(s.C.ViewCurrency)},`${e?._id}-body`))]})};var x=e.i(79093),h=e.i(45401),g=e.i(50595),p=e.i(25327),y=e.i(70553),v=e.i(6634),b=e.i(78704),j=e.i(15971),w=e.i(6607),C=e.i(53576),N=e.i(51128),M=e.i(73664),_=e.i(25093),k=e.i(82078);e.s(["default",0,()=>{let{formatMessage:e}=(0,r.X)(),{query:d,push:c}=(0,l.useRouter)(),{hasRole:u}=(0,n.f)(),f=parseInt(d?.limit,10)||i.h,I=parseInt(d?.skip,10)||0,E=d?.includeInactive==="true"||!d?.includeInactive,A=d?.sort||"",{queryString:S,currencyId:$,...R}=d,L=(0,o.R)(A),{currencies:D,currenciesCount:T,loading:O,loadMore:q,hasMore:F}=(0,x.f)({queryString:S,limit:f,offset:I,includeInactive:E,sort:L}),{setModal:U}=(0,w.f)(),{removeCurrency:B}=(0,h.f)(),X=async r=>{await U((0,t.jsx)(j.f,{onCancelClick:async()=>U(""),message:e({id:"delete_currency_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this currency? "}),onOkClick:async()=>{U(""),await B({currencyId:r}),a.toast.success(e({id:"currency_deleted",defaultMessage:"Currency deleted successfully"}))},okText:e({id:"delete_currency",defaultMessage:"Delete currency"})}))};if($)return(0,t.jsx)(M.default,{currencyId:$});let P=1===T?e({id:"currency_header",defaultMessage:"1 Currency"}):e({id:"currency_count_header",defaultMessage:"{count} Currencies"},{count:(0,t.jsx)(_.f,{value:T})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(g.f,{}),(0,t.jsx)(k.f,{title:e({id:"default_currency_info_title",defaultMessage:"About base currency"}),description:e({id:"default_currency_info_description",defaultMessage:"Please set the base currency by adjusting the environment variable UNCHAINED_CURRENCY, for ex. UNCHAINED_CURRENCY=CHF. That way, Unchained knows what currency to use as a fallback if it is unable to determine it from context"})}),(0,t.jsx)(p.f,{title:e({id:"currencies_page_title",defaultMessage:"{count, plural, one {# Currency} other {# Currencies}}"},{count:T}),headerText:P,addPath:u(s.C.ManageCurrencies)&&"/currency/new",addButtonText:e({id:"add_currency",defaultMessage:"Add Currency"})}),(0,t.jsxs)("div",{className:"min-w-full overflow-x-auto px-1",children:[(0,t.jsx)(y.f,{children:(0,t.jsx)(v.f,{toggleText:e({id:"show_inactive",defaultMessage:"Show Inactive"}),toggleKey:"includeInactive",active:E})}),(0,t.jsx)(N.f,{onSearchChange:e=>{let{skip:t,...r}=R;e?c({query:(0,o._)(r,e,"queryString")}):c({query:(0,o._)(R)})},defaultSearchValue:S,children:(0,t.jsx)(b.f,{loading:O,hasMore:F,onLoadMore:q,children:O&&D?.length===0?(0,t.jsx)(C.f,{}):(0,t.jsx)(m,{currencies:D,onRemoveCurrency:X,sortable:!0})})})]})]})}],29378)},88566,25575,e=>{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",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});e.s(["f",0,r],88566);let s=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",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))});e.s(["f",0,s],25575)},76842,e=>{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:"m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.155-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343Z"}))});e.s(["f",0,r],76842)},24557,e=>{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",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});e.s(["f",0,r],24557)},86712,e=>{var t=e.i(93026);e.s(["f",()=>t.f])},44112,e=>{var t=e.i(39775);e.s(["f",()=>t.f])},24608,e=>{var t=e.i(30999);e.s(["f",()=>t.f])}],58895,(e,t,r)=>{let s="/currency";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(29378)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})}]);
@@ -0,0 +1 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,75229,e=>{var t=e.i(91398);e.s(["f",0,({name:e="",showName:r=!0,className:n=""}={})=>(0,t.jsx)("div",{className:`flex-col ${n}`,children:e&&r&&(0,t.jsx)("p",{className:"text-sm font-medium text-slate-700 group-hover:text-slate-900",children:e})})])},83147,e=>{let t=e=>e&&e?.split(",").reduce((e,t)=>{let[r=null,n=null]=(t||"")?.split("_")||[];return{...e,[r]:n}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"j",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"I",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"_",0,(e,t,r)=>{let n;return n=r?{...e,[r]:t}:e,Object.keys(n)?.map(e=>[e,n[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:r}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:r}).format(t/100)}})])},51782,e=>{var t=e.i(91398),r=e.i(69322),n=e.i(42469),i=e.i(60193);let a={PENDING:"bg-yellow-100 text-yellow-800",CONFIRMED:"bg-blue-100 text-blue-800",OPEN:"bg-gray-100 text-gray-800",FULFILLED:"bg-green-100 text-green-800",REJECTED:"bg-red-100 text-red-800"};e.s(["f",0,({status:e,className:o=""})=>{let{formatMessage:s}=(0,r.X)(),f={PENDING:s({id:"pending",defaultMessage:"PENDING"}),CONFIRMED:s({id:"confirmed",defaultMessage:"CONFIRMED"}),OPEN:s({id:"open",defaultMessage:"OPEN"}),FULFILLED:s({id:"fulfilled",defaultMessage:"FULFILLED"}),REJECTED:s({id:"rejected",defaultMessage:"REJECTED"})},l=f?.[e]??s({id:"cart",defaultMessage:"Cart"});return a?.[e],(0,t.jsx)(n.f,{text:l,color:i.v[e],square:!0,className:`uppercase ${o}`})}])},75155,e=>{var t=e.i(91398),r=e.i(69322),n=e.i(42469);let i={DRAFT:"yellow",ACTIVE:"emerald",DELETED:"amber",null:"yellow",undefined:"yellow"};e.s(["f",0,({status:e})=>{let{formatMessage:a}=(0,r.X)();return a({id:"pending",defaultMessage:"PENDING"}),a({id:"confirmed",defaultMessage:"CONFIRMED"}),a({id:"open",defaultMessage:"OPEN"}),a({id:"fulfilled",defaultMessage:"FULFILLED"}),a({id:"rejected",defaultMessage:"REJECTED"}),(0,t.jsx)(n.f,{text:(e=>{switch(e){case"ACTIVE":return a({id:"active",defaultMessage:"Active"});case"DRAFT":default:return a({id:"draft",defaultMessage:"Draft"});case"DELETED":return a({id:"deleted",defaultMessage:"Deleted"})}})(e),color:i[e]||"yellow",square:!0,dotted:!0})}])},86129,e=>{var t=e.i(94396);e.s(["f",()=>t.f])},38187,e=>{var t=e.i(76237);e.s(["f",()=>t.f])},91412,e=>{var t=e.i(86173);e.s(["f",()=>t.f])},44112,e=>{var t=e.i(39775);e.s(["f",()=>t.f])},53463,e=>{var t=e.i(88313);e.s(["f",()=>t.f])},81618,e=>{var t=e.i(43119);e.s(["f",()=>t.f])},88737,e=>{var t=e.i(90418);e.s(["f",()=>t.f])},57748,e=>{var t=e.i(69059);e.s(["f",()=>t.f])},39382,e=>{var t=e.i(56859);e.s(["f",()=>t.f])},24608,e=>{var t=e.i(30999);e.s(["f",()=>t.f])},31599,e=>{e.s(["f",0,function(e,t){return null==e||null==t?0/0:t<e?-1:t>e?1:t>=e?0:0/0}])},59015,e=>{e.s(["f",0,function(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r<t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r<i||void 0===r&&i>=i)&&(r=i)}return r}])},28917,e=>{e.s(["f",0,function(e,t){let r;if(void 0===t)for(let t of e)null!=t&&(r>t||void 0===r&&t>=t)&&(r=t);else{let n=-1;for(let i of e)null!=(i=t(i,++n,e))&&(r>i||void 0===r&&i>=i)&&(r=i)}return r}])},98952,19903,47672,11049,74037,44641,25369,e=>{function t(e,t,r){e.prototype=t.prototype=r,r.constructor=e}function r(e,t){var r=Object.create(e.prototype);for(var n in t)r[n]=t[n];return r}function n(){}e.s(["f",()=>W],44641);var i=1/.7,a="\\s*([+-]?\\d+)\\s*",o="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",s="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",f=/^#([0-9a-f]{3,8})$/,l=RegExp(`^rgb\\(${a},${a},${a}\\)$`),u=RegExp(`^rgb\\(${s},${s},${s}\\)$`),c=RegExp(`^rgba\\(${a},${a},${a},${o}\\)$`),h=RegExp(`^rgba\\(${s},${s},${s},${o}\\)$`),d=RegExp(`^hsl\\(${o},${s},${s}\\)$`),g=RegExp(`^hsla\\(${o},${s},${s},${o}\\)$`),p={aliceblue:0xf0f8ff,antiquewhite:0xfaebd7,aqua:65535,aquamarine:8388564,azure:0xf0ffff,beige:0xf5f5dc,bisque:0xffe4c4,black:0,blanchedalmond:0xffebcd,blue:255,blueviolet:9055202,brown:0xa52a2a,burlywood:0xdeb887,cadetblue:6266528,chartreuse:8388352,chocolate:0xd2691e,coral:0xff7f50,cornflowerblue:6591981,cornsilk:0xfff8dc,crimson:0xdc143c,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:0xb8860b,darkgray:0xa9a9a9,darkgreen:25600,darkgrey:0xa9a9a9,darkkhaki:0xbdb76b,darkmagenta:9109643,darkolivegreen:5597999,darkorange:0xff8c00,darkorchid:0x9932cc,darkred:9109504,darksalmon:0xe9967a,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:0xff1493,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:0xb22222,floralwhite:0xfffaf0,forestgreen:2263842,fuchsia:0xff00ff,gainsboro:0xdcdcdc,ghostwhite:0xf8f8ff,gold:0xffd700,goldenrod:0xdaa520,gray:8421504,green:32768,greenyellow:0xadff2f,grey:8421504,honeydew:0xf0fff0,hotpink:0xff69b4,indianred:0xcd5c5c,indigo:4915330,ivory:0xfffff0,khaki:0xf0e68c,lavender:0xe6e6fa,lavenderblush:0xfff0f5,lawngreen:8190976,lemonchiffon:0xfffacd,lightblue:0xadd8e6,lightcoral:0xf08080,lightcyan:0xe0ffff,lightgoldenrodyellow:0xfafad2,lightgray:0xd3d3d3,lightgreen:9498256,lightgrey:0xd3d3d3,lightpink:0xffb6c1,lightsalmon:0xffa07a,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:0xb0c4de,lightyellow:0xffffe0,lime:65280,limegreen:3329330,linen:0xfaf0e6,magenta:0xff00ff,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:0xba55d3,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:0xc71585,midnightblue:1644912,mintcream:0xf5fffa,mistyrose:0xffe4e1,moccasin:0xffe4b5,navajowhite:0xffdead,navy:128,oldlace:0xfdf5e6,olive:8421376,olivedrab:7048739,orange:0xffa500,orangered:0xff4500,orchid:0xda70d6,palegoldenrod:0xeee8aa,palegreen:0x98fb98,paleturquoise:0xafeeee,palevioletred:0xdb7093,papayawhip:0xffefd5,peachpuff:0xffdab9,peru:0xcd853f,pink:0xffc0cb,plum:0xdda0dd,powderblue:0xb0e0e6,purple:8388736,rebeccapurple:6697881,red:0xff0000,rosybrown:0xbc8f8f,royalblue:4286945,saddlebrown:9127187,salmon:0xfa8072,sandybrown:0xf4a460,seagreen:3050327,seashell:0xfff5ee,sienna:0xa0522d,silver:0xc0c0c0,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:0xfffafa,springgreen:65407,steelblue:4620980,tan:0xd2b48c,teal:32896,thistle:0xd8bfd8,tomato:0xff6347,turquoise:4251856,violet:0xee82ee,wheat:0xf5deb3,white:0xffffff,whitesmoke:0xf5f5f5,yellow:0xffff00,yellowgreen:0x9acd32};function x(){return this.rgb().formatHex()}function b(){return this.rgb().formatRgb()}function m(e){var t,r;return e=(e+"").trim().toLowerCase(),(t=f.exec(e))?(r=t[1].length,t=parseInt(t[1],16),6===r?y(t):3===r?new k(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===r?w(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===r?w(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=l.exec(e))?new k(t[1],t[2],t[3],1):(t=u.exec(e))?new k(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=c.exec(e))?w(t[1],t[2],t[3],t[4]):(t=h.exec(e))?w(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=d.exec(e))?j(t[1],t[2]/100,t[3]/100,1):(t=g.exec(e))?j(t[1],t[2]/100,t[3]/100,t[4]):p.hasOwnProperty(e)?y(p[e]):"transparent"===e?new k(0/0,0/0,0/0,0):null}function y(e){return new k(e>>16&255,e>>8&255,255&e,1)}function w(e,t,r,n){return n<=0&&(e=t=r=0/0),new k(e,t,r,n)}function v(e,t,r,i){var a;return 1==arguments.length?((a=e)instanceof n||(a=m(a)),a)?new k((a=a.rgb()).r,a.g,a.b,a.opacity):new k:new k(e,t,r,null==i?1:i)}function k(e,t,r,n){this.r=+e,this.g=+t,this.b=+r,this.opacity=+n}function $(){return`#${D(this.r)}${D(this.g)}${D(this.b)}`}function E(){let e=N(this.opacity);return`${1===e?"rgb(":"rgba("}${M(this.r)}, ${M(this.g)}, ${M(this.b)}${1===e?")":`, ${e})`}`}function N(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function M(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function D(e){return((e=M(e))<16?"0":"")+e.toString(16)}function j(e,t,r,n){return n<=0?e=t=r=0/0:r<=0||r>=1?e=t=0/0:t<=0&&(e=0/0),new C(e,t,r,n)}function R(e){if(e instanceof C)return new C(e.h,e.s,e.l,e.opacity);if(e instanceof n||(e=m(e)),!e)return new C;if(e instanceof C)return e;var t=(e=e.rgb()).r/255,r=e.g/255,i=e.b/255,a=Math.min(t,r,i),o=Math.max(t,r,i),s=0/0,f=o-a,l=(o+a)/2;return f?(s=t===o?(r-i)/f+(r<i)*6:r===o?(i-t)/f+2:(t-r)/f+4,f/=l<.5?o+a:2-o-a,s*=60):f=l>0&&l<1?0:s,new C(s,f,l,e.opacity)}function C(e,t,r,n){this.h=+e,this.s=+t,this.l=+r,this.opacity=+n}function I(e){return(e=(e||0)%360)<0?e+360:e}function A(e){return Math.max(0,Math.min(1,e||0))}function O(e,t,r){return(e<60?t+(r-t)*e/60:e<180?r:e<240?t+(r-t)*(240-e)/60:t)*255}function L(e,t,r,n,i){var a=e*e,o=a*e;return((1-3*e+3*a-o)*t+(4-6*a+3*o)*r+(1+3*e+3*a-3*o)*n+o*i)/6}t(n,m,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:x,formatHex:x,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return R(this).formatHsl()},formatRgb:b,toString:b}),t(k,v,r(n,{brighter(e){return e=null==e?i:Math.pow(i,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new k(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new k(M(this.r),M(this.g),M(this.b),N(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:$,formatHex:$,formatHex8:function(){return`#${D(this.r)}${D(this.g)}${D(this.b)}${D((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:E,toString:E})),t(C,function(e,t,r,n){return 1==arguments.length?R(e):new C(e,t,r,null==n?1:n)},r(n,{brighter(e){return e=null==e?i:Math.pow(i,e),new C(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new C(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,r=this.l,n=r+(r<.5?r:1-r)*t,i=2*r-n;return new k(O(e>=240?e-240:e+120,i,n),O(e,i,n),O(e<120?e+240:e-120,i,n),this.opacity)},clamp(){return new C(I(this.h),A(this.s),A(this.l),N(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=N(this.opacity);return`${1===e?"hsl(":"hsla("}${I(this.h)}, ${100*A(this.s)}%, ${100*A(this.l)}%${1===e?")":`, ${e})`}`}})),e.s(["f",0,m],19903);let S=e=>()=>e;function F(e,t){var r=t-e;return r?function(t){return e+t*r}:S(isNaN(e)?t:e)}let P=function e(t){var r,n=1==(r=+t)?F:function(e,t){var n,i,a;return t-e?(n=e,i=t,n=Math.pow(n,a=r),i=Math.pow(i,a)-n,a=1/a,function(e){return Math.pow(n+e*i,a)}):S(isNaN(e)?t:e)};function i(e,t){var r=n((e=v(e)).r,(t=v(t)).r),i=n(e.g,t.g),a=n(e.b,t.b),o=F(e.opacity,t.opacity);return function(t){return e.r=r(t),e.g=i(t),e.b=a(t),e.opacity=o(t),e+""}}return i.gamma=e,i}(1);function T(e){return function(t){var r,n,i=t.length,a=Array(i),o=Array(i),s=Array(i);for(r=0;r<i;++r)n=v(t[r]),a[r]=n.r||0,o[r]=n.g||0,s[r]=n.b||0;return a=e(a),o=e(o),s=e(s),n.opacity=1,function(e){return n.r=a(e),n.g=o(e),n.b=s(e),n+""}}}function z(e,t){return e*=1,t*=1,function(r){return e*(1-r)+t*r}}T(function(e){var t=e.length-1;return function(r){var n=r<=0?r=0:r>=1?(r=1,t-1):Math.floor(r*t),i=e[n],a=e[n+1],o=n>0?e[n-1]:2*i-a,s=n<t-1?e[n+2]:2*a-i;return L((r-n/t)*t,o,i,a,s)}}),T(function(e){var t=e.length;return function(r){var n=Math.floor(((r%=1)<0?++r:r)*t),i=e[(n+t-1)%t],a=e[n%t],o=e[(n+1)%t],s=e[(n+2)%t];return L((r-n/t)*t,i,a,o,s)}}),e.s(["f",0,P],47672),e.s(["f",0,z],11049);var q=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,H=RegExp(q.source,"g");function U(e,t){var r,n,i,a,o,s=q.lastIndex=H.lastIndex=0,f=-1,l=[],u=[];for(e+="",t+="";(i=q.exec(e))&&(a=H.exec(t));)(o=a.index)>s&&(o=t.slice(s,o),l[f]?l[f]+=o:l[++f]=o),(i=i[0])===(a=a[0])?l[f]?l[f]+=a:l[++f]=a:(l[++f]=null,u.push({i:f,x:z(i,a)})),s=H.lastIndex;return s<t.length&&(o=t.slice(s),l[f]?l[f]+=o:l[++f]=o),l.length<2?u[0]?(r=u[0].x,function(e){return r(e)+""}):(n=t,function(){return n}):(t=u.length,function(e){for(var r,n=0;n<t;++n)l[(r=u[n]).i]=r.x(e);return l.join("")})}function W(e,t){var r,n,i=typeof t;return null==t||"boolean"===i?S(t):("number"===i?z:"string"===i?(n=m(t))?(t=n,P):U:t instanceof m?P:t instanceof Date?function(e,t){var r=new Date;return e*=1,t*=1,function(n){return r.setTime(e*(1-n)+t*n),r}}:!ArrayBuffer.isView(r=t)||r instanceof DataView?Array.isArray(t)?function(e,t){var r,n=t?t.length:0,i=e?Math.min(n,e.length):0,a=Array(i),o=Array(n);for(r=0;r<i;++r)a[r]=W(e[r],t[r]);for(;r<n;++r)o[r]=t[r];return function(e){for(r=0;r<i;++r)o[r]=a[r](e);return o}}:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?function(e,t){var r,n={},i={};for(r in(null===e||"object"!=typeof e)&&(e={}),(null===t||"object"!=typeof t)&&(t={}),t)r in e?n[r]=W(e[r],t[r]):i[r]=t[r];return function(e){for(r in n)i[r]=n[r](e);return i}}:z:function(e,t){t||(t=[]);var r,n=e?Math.min(t.length,e.length):0,i=t.slice();return function(a){for(r=0;r<n;++r)i[r]=e[r]*(1-a)+t[r]*a;return i}})(e,t)}e.s(["f",0,U],74037),e.s(["f",0,W],98952),e.s(["f",0,z],25369)},23874,e=>{e.s(["x",0,function(e,t){switch(arguments.length){case 0:break;case 1:"function"==typeof e?this.interpolator(e):this.range(e);break;default:this.domain(e),"function"==typeof t?this.interpolator(t):this.range(t)}return this},"V",0,function(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e)}return this}])},28120,e=>{var t=e.i(21791),r=e.i(23874);let n=Symbol("implicit");e.s(["U",0,function e(){var i=new t.f,a=[],o=[],s=n;function f(e){let t=i.get(e);if(void 0===t){if(s!==n)return s;i.set(e,t=a.push(e)-1)}return o[t%o.length]}return f.domain=function(e){if(!arguments.length)return a.slice();for(let r of(a=[],i=new t.f,e))i.has(r)||i.set(r,a.push(r)-1);return f},f.range=function(e){return arguments.length?(o=Array.from(e),f):o.slice()},f.unknown=function(e){return arguments.length?(s=e,f):s},f.copy=function(){return e(a,o).unknown(s)},r.V.apply(f,arguments),f},"j",0,n])},36980,e=>{e.s(["f",0,function(e){return t=>{let r=(e?Math[e]:Math.trunc)(t);return 0===r?0:r}}])},60836,e=>{var t=e.i(35113);e.s(["f",0,function(e,r){let n=(0,t.f)(e)-(0,t.f)(r);return n<0?-1:n>0?1:n}])},21791,e=>{class t extends Map{constructor(e,t=n){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:t}}),null!=e)for(let[t,r]of e)this.set(t,r)}get(e){return super.get(r(this,e))}has(e){return super.has(r(this,e))}set(e,t){return super.set(function({_intern:e,_key:t},r){let n=t(r);return e.has(n)?e.get(n):(e.set(n,r),r)}(this,e),t)}delete(e){return super.delete(function({_intern:e,_key:t},r){let n=t(r);return e.has(n)&&(r=e.get(n),e.delete(n)),r}(this,e))}}function r({_intern:e,_key:t},n){let i=t(n);return e.has(i)?e.get(i):n}function n(e){return null!==e&&"object"==typeof e?e.valueOf():e}e.s(["f",0,t])},5270,e=>{var t=e.i(91788);let r=(...e)=>e.filter((e,t,r)=>!!e&&""!==e.trim()&&r.indexOf(e)===t).join(" ").trim(),n={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":2,"stroke-linecap":"round","stroke-linejoin":"round"},i=(0,t.createContext)({}),a=(0,t.forwardRef)(({color:e,size:a,width:o,height:s,strokeWidth:f,absoluteStrokeWidth:l,nonScalingStroke:u,className:c="",children:h,iconNode:d=[],icon:g={node:d,aliases:[],size:24},...p},x)=>{let{size:b=24,strokeWidth:m=2,absoluteStrokeWidth:y=!1,nonScalingStroke:w=!1,color:v="currentColor",className:k=""}=(0,t.useContext)(i)??{},$=!!h||(e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0;return!1})(p),[E,N,M=[]]=function(e,t={}){return function(e,t={}){let i=t.attributeNames??{},a=e=>i[e]??e,o=e.size??e.width??n.width,s=e.size??e.height??n.height,f=e.aliases?.filter(e=>"string"==typeof e&&""!==e.trim()).map(e=>`lucide-${e}`)??[],l=[...e.name?[`lucide-${e.name}`]:[],...f],u=t.className?.split(" ").filter(Boolean)??[],c=!1===t.includeDefaultClasses?r(...u):r("lucide",...l,...u),h=t.absoluteStrokeWidth?Number(t.strokeWidth??n["stroke-width"])*Number(e.size??e.width??n.width)/Number(t.size??t.width??n.width):t.strokeWidth??n["stroke-width"];return["svg",{...Object.entries(n).reduce((e,[t,r])=>(e[a(t)]=r,e),{}),..."color"in t&&t.color&&{[a("stroke")]:t.color},..."size"in t&&null!=t.size&&{[a("width")]:t.size,[a("height")]:t.size},..."width"in t&&null!=t.width&&{[a("width")]:t.width},..."height"in t&&null!=t.height&&{[a("height")]:t.height},[a("stroke-width")]:h,...c&&{[a("class")]:c},[a("viewBox")]:`0 0 ${o} ${s}`,...!1===t.hasA11yProp?{[a("aria-hidden")]:"true"}:{},..."attributes"in t&&t.attributes},e.node.map(e=>{let[r,n,i]=e,o=t.nonScalingStroke?{[a("vector-effect")]:"non-scaling-stroke",...n}:n;return i?[r,o,i]:[r,o]})]}(e,{...t,attributeNames:{...t.attributeNames,class:"className","stroke-width":"strokeWidth","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","vector-effect":"vectorEffect"}})}(g,{color:e??v,width:o??a??b,height:s??a??b,strokeWidth:f??m,absoluteStrokeWidth:l??y,nonScalingStroke:u??w,className:r(k,c),hasA11yProp:$,attributes:p});return(0,t.createElement)(E,{ref:x,...N},[...M.map(([e,r])=>(0,t.createElement)(e,r)),...Array.isArray(h)?h:[h]])});e.s(["f",0,function(e,r=[],n=[]){let i,o="string"==typeof e?function(e,t,r=[]){if(null==t)throw Error("[lucide]: iconNode is required when icon name is used");return{name:e?.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),size:24,node:t,...r.length>0?{aliases:r}:{}}}(e,r,n):e,s=(0,t.forwardRef)(({className:e,...r},n)=>(0,t.createElement)(a,{ref:n,icon:o,className:e,...r}));return o.name&&(s.displayName=(i=(e=>{let t="",r=!1;for(let n of e){if("-"===n||"_"===n||n<=" "){r=t.length>0;continue}0===t.length?t+=n.toLowerCase():t+=r?n.toUpperCase():n,r=!1}return t})(o.name)).charAt(0).toUpperCase()+i.slice(1)),s}],5270)}])})();
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,34768,(o,t,i)=>{let d="/products/ProductDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([d,()=>o.r(30311)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([d])})}]);
@@ -0,0 +1,11 @@
1
+ __turbopack_load_page_chunks__("/assortments/AssortmentDetailPage", [
2
+ "static/chunks/28oppyg7ev102.js",
3
+ "static/chunks/0czktxcs2aa12.js",
4
+ "static/chunks/0fggi8jpi5gjk.js",
5
+ "static/chunks/40kc42ezz2dri.js",
6
+ "static/chunks/1ulje1tawz8fl.js",
7
+ "static/chunks/0m73vd78oga92.js",
8
+ "static/chunks/1lex3myb5hmsw.js",
9
+ "static/chunks/2cj8g3fxmitaa.js",
10
+ "static/chunks/turbopack-2c3mg3r-05n1w.js"
11
+ ])
@@ -0,0 +1,5 @@
1
+ __turbopack_load_page_chunks__("/language/LanguageDetailPage", [
2
+ "static/chunks/2qjnhmz4c5fq1.js",
3
+ "static/chunks/2y6i_xssusr93.js",
4
+ "static/chunks/turbopack-2c3mg3r-05n1w.js"
5
+ ])
@@ -0,0 +1,156 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[25093,e=>{var r=e.i(91398),t=e.i(91788);e.s(["f",0,({value:e,duration:s=300})=>{let[a,l]=(0,t.useState)(0);return(0,t.useEffect)(()=>{let r,t;if(0===e)return void l(0);let a=i=>{r||(r=i);let n=Math.min((i-r)/s,1);l(Math.round((1-Math.pow(1-n,3))*e)),n<1&&(t=requestAnimationFrame(a))};return t=requestAnimationFrame(a),()=>{t&&cancelAnimationFrame(t)}},[e,s]),(0,r.jsx)("span",{children:a})}])},50595,e=>{var r=e.i(91398),t=e.i(41158),s=e.i(3828),a=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:l=null,depth:i=null})=>{let n=(0,s.useRouter)(),{formatMessage:d}=(0,a.X)(),o={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"},u=n.asPath?.split("/")?.filter((e,r)=>n.asPath?.split("/")?.indexOf(e)===r);if(1===u.length)return null;let c="";i&&u.splice(i),e&&(u[u.length-1]=e);let m=u?.map(r=>{if(c+=`${r}/`,!r)return{name:d({id:"home",defaultMessage:"Home"}),path:"/"};let t=r?.split("?")[0],s=e?t:t.replace(/-/g," "),a=o[t];return{name:a?d({id:a,defaultMessage:s}):decodeURIComponent(s),path:c.replace(/.$/,"")}}),f=m?.length>1?m[m.length-2]:null;return(0,r.jsxs)(r.Fragment,{children:[f&&(0,r.jsx)("nav",{className:"mb-4 flex sm:hidden","aria-label":"Breadcrumb",children:(0,r.jsxs)(t.default,{href:f.path,className:"flex items-center text-sm font-medium capitalize text-text-muted hover:text-text-primary focus:outline-hidden focus:ring-2 focus:ring-focus-ring rounded-md px-1 py-1",children:[(0,r.jsx)("svg",{className:"mr-1.5 h-4 w-4 shrink-0",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"})}),f.name]})}),(0,r.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,r.jsx)("ol",{className:"flex items-center space-x-4",children:m?.map((e,s)=>(0,r.jsx)("li",{children:(0,r.jsxs)("div",{className:"flex items-center",children:[0!==s&&(0,r.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-text-muted",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.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,r.jsx)(t.default,{href:e.path,className:"text-sm font-medium capitalize text-text-muted hover:text-text-primary focus:outline-hidden focus:ring-2 focus:ring-focus-ring rounded-md px-1 py-1",children:s===m.length-1&&l?l:e.name})]})},e.path))})})]})}])},21623,e=>{var r=e.i(91398),t=e.i(56206);e.s(["f",0,({text:e,children:s,onClick:a,className:l="",disabled:i=!1,id:n="",variant:d="primary",size:o="md",type:u="button",loading:c=!1,icon:m,iconRight:f,fullWidth:x=!1,rounded:h="md",ariaLabel:p,...g})=>{let v=s||e,y=(m||f)&&v?"gap-2":"";return(0,r.jsx)("button",{id:n,type:u,disabled:i||c,onClick:a,"aria-label":p,className:(0,t.U)("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"}[o],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[h],{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"}[d],y,{"w-full":x},l),...g,children:c?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),v]}):(0,r.jsxs)(r.Fragment,{children:[m,v,f]})})}])},3883,e=>{var r=e.i(91398),t=e.i(56206);e.s(["f",0,({id:e,label:s,value:a,onChange:l,placeholder:i,min:n,max:d,className:o,containerClassName:u})=>(0,r.jsxs)("div",{className:(0,t.U)("flex flex-col gap-1",u),children:[s&&(0,r.jsx)("label",{htmlFor:e,className:"text-sm font-medium text-text-secondary",children:s}),(0,r.jsx)("input",{type:"date",id:e,value:a||"",onChange:e=>{l(e.target.value||null)},placeholder:i,min:n,max:d,className:(0,t.U)("w-full rounded-md border-1 border-border-default bg-surface-input px-3 py-2 text-sm shadow-xs text-text-primary focus:outline-hidden focus:ring-2 focus:ring-focus-ring dark:[color-scheme:dark]",o)})]})])},70553,e=>{var r=e.i(91398),t=e.i(69322);e.s(["f",0,({children:e=null,totalRecords:s=null})=>{let{formatMessage:a}=(0,t.X)();return(0,r.jsxs)("div",{className:"mt-5",children:[null!==s?(0,r.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:a({id:"total_records",defaultMessage:"{total} records found"},{total:s??0})}):null,e&&(0,r.jsx)("div",{className:"flex items-center mt-10",children:(0,r.jsx)("h3",{className:"text-xs leading-6 text-text-muted",children:e})})]})}])},2194,e=>{var r=e.i(91398),t=e.i(92802),t=t,s=e.i(56206),a=e.i(69322);e.s(["f",0,({message:e,className:l="",Icon:i=null})=>(0,r.jsx)("div",{className:(0,s.U)("rounded-md flex w-full flex-col items-center justify-center min-h-[176px] py-8 border-1 border-dashed border-border-default text-slate-500 dark:text-slate-600",l),children:(0,r.jsxs)("div",{className:"grid items-center justify-center",children:[(0,r.jsx)("div",{className:"flex items-center justify-center text-slate-400 dark:text-slate-600",children:i||(0,r.jsx)(t.f,{className:"h-6 w-6"})}),(0,r.jsx)(a.L,{id:"no_data_message",defaultMessage:"<p>No <span> {message} available</span> </p>",values:{p:e=>(0,r.jsx)("p",{className:"mt-2 m-auto flex items-center justify-center",children:e}),span:e=>(0,r.jsxs)("span",{className:"capitalize ml-1",children:[" ",e," "]}),message:e}})]})})],2194)},25327,e=>{var r=e.i(91398),t=e.i(5205),s=e.i(41158),a=e.i(69322),l=e.i(37369),i=e.i(21623);e.s(["f",0,({headerText:e=null,onEdit:n=null,onDelete:d=null,children:o=null,title:u=null,addPath:c=null,addButtonText:m=null})=>{let{formatMessage:f}=(0,a.X)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.default,{children:(0,r.jsxs)("title",{children:["Unchained AdminUI - ",u||e," "]})}),(0,r.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,r.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,r.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,r.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[o,c&&(0,r.jsx)(s.default,{href:c,children:(0,r.jsx)(i.f,{variant:"secondary",icon:(0,r.jsx)(l.f,{className:"h-5 w-5"}),text:m||f({id:"add",defaultMessage:"Add"})})}),n&&(0,r.jsx)(i.f,{variant:"secondary",onClick:n,text:f({id:"edit",defaultMessage:"Edit"})}),d&&(0,r.jsx)(i.f,{variant:"danger",onClick:d,text:f({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},35793,e=>{var r=e.i(91398),t=e.i(69322),s=e.i(2765);e.s(["f",0,({inputText:e=null,onInputChange:a,defaultValue:l})=>{let{formatMessage:i}=(0,t.X)(),n=(0,s.f)(200)(a);return(0,r.jsxs)("div",{className:"w-full",children:[(0,r.jsx)("label",{htmlFor:"search",className:"sr-only",children:e||i({id:"search",defaultMessage:"Search"})}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,r.jsx)("svg",{className:"h-5 w-5 text-slate-400 dark:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})})}),(0,r.jsx)("input",{onChange:e=>n(e.target.value),id:"search",defaultValue:l,name:"search",className:"block w-full rounded-md border-1 border-border-default text-slate-900 dark:bg-slate-900 dark:text-slate-200 py-3 pl-10 px-4 shadow-xs placeholder:text-slate-400 dark:placeholder:text-slate-400 focus:ring-2 focus:ring-focus-ring focus:outline-hidden sm:text-sm",placeholder:i({id:"search",defaultMessage:"Search"}),type:"search"})]})]})}])},76038,e=>{var r=e.i(91398),t=e.i(91788),s=e.i(56206),a=e.i(69322),l=e.i(42469);let i=e=>e?Array.isArray(e)?e:e.toString()?.split(",")?.map(e=>e.trim()):[];e.s(["f",0,({tagList:e,onChange:n,disabled:d=!1,name:o="tag-input",id:u="tag-input",placeholder:c="",selectOptions:m=[],className:f="",buttonText:x="",showTagsInline:h=!0})=>{let{formatMessage:p}=(0,a.X)(),[g,v]=(0,t.useState)(i(e)),[y,b]=(0,t.useState)(""),[j,w]=(0,t.useState)(!1),N=(0,t.useRef)(null);(0,t.useEffect)(()=>{v(i(e))},[e]),(0,t.useEffect)(()=>{let e=e=>{N.current&&!N.current.contains(e.target)&&w(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let C=(0,t.useCallback)(e=>{let r=e.trim(),t=m.find(e=>e.value.toLowerCase()===r.toLowerCase()),s=t?.value||r;if(!g.some(e=>e.toLowerCase()===s.toLowerCase())&&s){let e=[...g,s];v(e),n(e),b(""),w(!1)}},[g,n,m]),k=(0,t.useMemo)(()=>{let e=m.filter(e=>!g.some(r=>r.toLowerCase()===e.value.toLowerCase()));return y?e.filter(e=>e.label.toLowerCase().includes(y.toLowerCase())):e},[m,g,y]),_=y.trim().toLowerCase(),P=!!(_&&!g.some(e=>e.toLowerCase()===_)&&!m.some(e=>e.value.toLowerCase()===_)),M=(0,r.jsxs)("div",{className:"relative",ref:N,children:[(0,r.jsx)("input",{id:u,name:o,type:"text",role:"combobox","aria-expanded":j,"aria-autocomplete":"list",disabled:d,className:(0,s.U)("w-full rounded-md border border-border-default bg-surface-input py-2.5 pl-4 pr-4 text-sm text-text-primary placeholder:text-text-muted shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",f),placeholder:c,value:y,onChange:e=>{b(e.target.value),w(!0)},onFocus:()=>w(!0),onKeyDown:e=>{"Enter"===e.key&&y.trim()&&(e.preventDefault(),C(k[0]?.value||y.trim()))}}),j&&(P||k.length>0)&&(0,r.jsxs)("ul",{role:"listbox",className:"absolute z-9999999 mt-1 max-h-60 w-full overflow-auto rounded-md bg-surface border border-border-subtle py-1 text-sm shadow-lg",children:[k.map(e=>(0,r.jsx)("li",{role:"option","aria-selected":!1,className:"cursor-pointer select-none py-2 px-4 text-text-primary hover:bg-surface-raised",onMouseDown:r=>{r.preventDefault(),C(e.value)},children:e.label},e.value)),P&&(0,r.jsx)("li",{role:"option","aria-selected":!1,className:"cursor-pointer select-none border-t border-border-subtle py-2 px-4 text-text-primary hover:bg-surface-raised",onMouseDown:e=>{e.preventDefault(),C(y.trim())},children:x||p({id:"add_new_tag",defaultMessage:'Add "{inputValue}"'},{inputValue:y.trim()})})]})]});return h?(0,r.jsxs)(r.Fragment,{children:[M,(0,r.jsx)("div",{className:(0,s.U)("ml-4 flex items-center flex-wrap gap-5",g.length>0&&"mt-1"),children:g?.map(e=>(0,r.jsx)(l.f,{text:e,color:"slate",onClick:()=>(e=>{let r=g.indexOf(e);if(-1!==r){let e=[...g];e.splice(r,1),n(e),v(e)}})(e)},e))})]}):M}])},6634,e=>{var r=e.i(91398),t=e.i(56206),s=e.i(3828),a=e.i(83147);e.s(["f",0,({toggleText:e="",toggleKey:l=null,onToggle:i=null,active:n=!1,className:d="",disabled:o=!1,...u})=>{let c=(0,s.useRouter)(),m=c?.query?.[l]==="true"||n;return(0,r.jsxs)("div",{className:(0,t.U)("",d),children:[(0,r.jsxs)("button",{id:l,disabled:o,type:"button",className:(0,t.U)("relative inline-flex h-3.5 w-9 shrink-0 cursor-pointer rounded-full border-1 border-transparent transition-all duration-200 ease-in-out focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",{"bg-slate-200 dark:bg-slate-700":!m,"bg-emerald-500 dark:bg-emerald-600 shadow-sm":m}),role:"switch",onClick:i||(()=>{let{skip:e,...r}=c.query;c.push({query:(0,a._)(r,!m,l)})}),"aria-checked":m?"true":"false",...u,children:[(0,r.jsx)("span",{className:"sr-only",children:e}),(0,r.jsxs)("span",{className:(0,t.U)("ml-0.5 pointer-events-none relative inline-block h-3 w-3 transform rounded-full bg-white shadow-sm ring-0 transition-all duration-200 ease-in-out",{"translate-x-5 shadow-md":m,"translate-x-0":!m}),children:[(0,r.jsx)("span",{className:(0,t.U)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-0 duration-100 ease-out":m,"opacity-100 duration-200 ease-in":!m}),"aria-hidden":"true",children:(0,r.jsx)("svg",{className:"h-3 w-3 text-slate-400",fill:"none",viewBox:"0 0 12 12",children:(0,r.jsx)("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,r.jsx)("span",{className:(0,t.U)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-100 duration-200 ease-in":m,"opacity-0 duration-100 ease-out":!m}),"aria-hidden":"true",children:(0,r.jsx)("svg",{className:"h-3 w-3 text-emerald-500",fill:"currentColor",viewBox:"0 0 12 12",children:(0,r.jsx)("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})})})]})]}),(0,r.jsx)("span",{className:"ml-3",id:"annual-billing-label",children:(0,r.jsx)("span",{className:"text-sm font-medium text-text-primary",children:e})})]})}])},78704,e=>{var r=e.i(91398),t=e.i(91788),s=e.i(53576);e.s(["f",0,({loading:e,hasMore:a,onLoadMore:l,children:i,threshold:n=200})=>{let d=(0,t.useRef)(null),o=(0,t.useRef)(e),u=(0,t.useRef)(a),c=(0,t.useRef)(l);return o.current=e,u.current=a,c.current=l,(0,t.useEffect)(()=>{let e=d.current;if(!e)return;let r=new IntersectionObserver(e=>{let r=e.at(-1);r?.isIntersecting&&u.current&&!o.current&&c.current()},{rootMargin:`${n}px`});return r.observe(e),()=>r.disconnect()},[n,a]),(0,r.jsxs)(r.Fragment,{children:[i,a&&(0,r.jsx)("div",{ref:d,className:"h-4"}),e&&(0,r.jsx)("div",{className:"flex justify-center py-4",children:(0,r.jsx)(s.f,{})})]})}])},93924,78205,e=>{var r=e.i(91398),t=e.i(91788),s=e.i(24994);e.s(["f",0,({tagList:e,onChange:a,options:l,label:i})=>{let n=(0,t.useRef)(!1),d=(0,t.useRef)(!1),[o,u]=(0,t.useState)([]);return(0,t.useEffect)(()=>{if(!n.current&&l.length>0){let r=new Set(e||[]);u(l.filter(({label:e})=>r.has(e)).map(({value:e})=>e)),n.current=!0}},[l,e]),(0,t.useEffect)(()=>{d.current?a(o):d.current=!0},[o]),(0,r.jsxs)("div",{className:"mt-2 flex-col sm:mt-0",children:[i&&(0,r.jsx)("h3",{className:"text-sm font-semibold text-text-secondary uppercase tracking-wide mb-3",children:i}),(0,r.jsx)(s.f,{id:"tag-input",multiple:!0,options:l,value:o,onChange:e=>u(e),placeholder:i})]})}],93924);var a=e.i(3828),l=e.i(83147),i=e.i(3883),n=e.i(69322),d=e.i(84818);e.s(["f",0,()=>{let{parseDate:e}=(0,d.f)(),{formatMessage:t}=(0,n.X)(),s=(0,a.useRouter)();return(0,r.jsxs)("div",{className:"flex items-center justify-center",children:[(0,r.jsx)("label",{className:"ml-1 mr-2",htmlFor:"work-start",children:t({id:"from",defaultMessage:"From"})}),(0,r.jsx)(i.f,{id:"work-start",onChange:e=>{if(e)s.push({query:(0,l._)(s.query,new Date(e).toISOString(),"start")});else{let{start:e,...r}=s.query;s.push({query:{...r}})}},placeholder:t({id:"start_date",defaultMessage:"Start date"}),value:s?.query?.start?e(s?.query?.start):null,containerClassName:"w-full"}),(0,r.jsx)("label",{className:"mr-2 ml-3 ",htmlFor:"report-end",children:t({id:"to",defaultMessage:"To"})}),(0,r.jsx)(i.f,{id:"work-end",onChange:e=>{if(e)s.push({query:(0,l._)(s.query,new Date(e).toISOString(),"end")});else{let{end:e,...r}=s.query;s.push({query:{...r}})}},placeholder:t({id:"end_date",defaultMessage:"End Date"}),value:e(s?.query?.end?s?.query?.end:new Date),containerClassName:"w-full"})]})}],78205)},51128,e=>{var r=e.i(91398),t=e.i(69322),s=e.i(3828),a=e.i(35793),l=e.i(76038),i=e.i(42469),n=e.i(83147),d=e.i(73319);e.s(["f",0,({children:e,onSearchChange:o,defaultSearchValue:u,showTagFilter:c=!1,availableTagOptions:m=[]})=>{let{formatMessage:f}=(0,t.X)(),{query:x,push:h}=(0,s.useRouter)(),p=e=>{if((0,d.T)(e))h({query:(0,n._)(x,e?.join(","),"tags")});else{let{tags:e,...r}=x;h({query:(0,n._)(r)})}};return(0,r.jsxs)("div",{children:[(0,r.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,r.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,r.jsx)("div",{className:"flex-shrink-0",children:(0,r.jsx)(a.f,{onInputChange:o,defaultValue:u})}),c&&(0,r.jsxs)("div",{className:"flex flex-col gap-2 flex-1 sm:border-l sm:border-border-default sm:pl-3",children:[(0,r.jsx)("div",{className:"max-w-xs",children:(0,r.jsx)(l.f,{buttonText:f({id:"apply",defaultMessage:"Apply"}),placeholder:f({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:x?.tags?.split(","),onChange:p,selectOptions:m,showTagsInline:!1})}),x?.tags?.split(",").filter(Boolean).length>0&&(0,r.jsx)("div",{className:"flex flex-wrap gap-2",children:x?.tags?.split(",").filter(Boolean).map(e=>(0,r.jsx)(i.f,{text:e,color:"slate",onClick:()=>{let r=x?.tags?.split(",").filter(r=>r!==e);p(r.length>0?r:null)}},e))})]})]})}),e]})}])},92229,e=>{var r=e.i(91398),t=e.i(69322);e.s(["f",0,({selectedStatuses:e=[],onStatusChange:s,statuses:a})=>{let{formatMessage:l}=(0,t.X)(),i=Array.isArray(e)?e:[],n=e=>{let{value:r,checked:t}=e.target;s(t?[...i,r]:i.filter(e=>e!==r))};return a?.map(e=>(0,r.jsxs)("div",{className:"inline-flex items-center rounded-md py-2 text-sm font-medium text-slate-900",children:[(0,r.jsx)("input",{className:"h-4 w-4 rounded-sm border-border-default bg-white dark:!bg-slate-800 text-slate-950 focus:ring-focus-ring",type:"checkbox",id:e,name:e,value:e,checked:i.includes(e),onChange:n}),(0,r.jsx)("div",{className:"ml-2",children:(0,r.jsx)("label",{className:"text-sm text-slate-600 dark:text-slate-200",htmlFor:e,children:l({id:e.toLowerCase(),defaultMessage:e})})})]},e))}])},8918,e=>{var r=e.i(91398),t=e.i(91788),s=e.i(56206),a=e.i(69322),l=e.i(88566),i=e.i(25575),n=e.i(3828),d=e.i(83147);let o=({onSort:e,sortDirection:t})=>t?"ASC"===t?(0,r.jsx)(i.f,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,r.jsx)(l.f,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor",className:"ml-2 w-6 h-6",onClick:e,children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M8.25 15L12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9"})});var u=e.i(2194);let c=e=>{let r=[],s=[],a=[];return t.default.Children.forEach(e.children,e=>{e?.props?.header?r.push(e):e?.props?.footer?a.push(e):s.push(e)}),{header:r,footer:a,body:s}},m=({className:e="",...l})=>{let[i,n]=(0,t.useState)(c(l)),{formatMessage:d}=(0,a.X)(),o={...i,header:t.default.Children.map(i.header,e=>t.default.cloneElement(e))};return(0,t.useEffect)(()=>{n(c(l))},[l.children]),o.header.length||o.body.length?(0,r.jsxs)("table",{className:(0,s.U)("overflow-hidden my-3 flex w-full flex-row flex-nowrap divide-y divide-slate-200 dark:divide-slate-600 shadow-sm sm:rounded-lg sm:bg-white dark:bg-slate-950",e),...l,children:[(0,r.jsx)("thead",{className:"hidden sm:table-header-group bg-surface-raised text-sm text-text-secondary",children:o.header}),o.body.length?(0,r.jsx)("tbody",{className:"space-y-4 sm:space-y-0 flex-1 sm:divide-y divide-slate-200 dark:divide-slate-700 sm:bg-white dark:sm:bg-slate-800 sm:flex-none",children:o.body}):null,o.footer.length?(0,r.jsx)("tfoot",{children:o.footer}):null]}):(0,r.jsx)(u.f,{message:d({id:"data",defaultMessage:"Data"})})};m.Row=({className:e="",children:a=[],header:l=!1,enablesort:i=!1,...n})=>{let d=t.default.Children.map(a,e=>t.default?.cloneElement(e||(0,r.jsx)("span",{}),{header:l,enablesort:i}));return(0,r.jsx)("tr",{className:(0,s.U)("grid grid-cols-1 auto-rows-fr border border-border-subtle sm:border-0 rounded-md sm:mb-0 sm:table-row sm:rounded-none bg-surface sm:bg-inherit dark:sm:bg-inherit",e),...n,children:d})},m.Cell=({className:e="",header:t=!1,enablesort:a=!1,children:l,sortKey:i=null,defaultSortDirection:u=null,...c})=>{let m=(0,n.useRouter)(),f=(0,d.v)(m.query?.sort),x=t?"th":"td";return(0,r.jsx)(x,{className:(0,s.U)(t?"px-4 py-3 text-left text-text-muted":"whitespace-nowrap px-4 py-3 text-text-muted border-b dark:border-slate-300 last:border-b-0 sm:border-b-0 text-left flex items-center sm:table-cell",e),...c,children:(0,r.jsxs)("div",{className:"flex items-center",children:[l,"th"===x&&a&&i&&(0,r.jsx)(o,{onSort:e=>{var r;let t;e.preventDefault(),((r=f[i])?"ASC"===r?"DESC":null:"ASC")||!f[i]?t={...f,[i]:"ASC"===f[i]?"DESC":"ASC"}:(delete f[i],t=f);let s=Object.entries(t).map(([e,r])=>[e,r].join("_")).join(","),{sort:a,...l}=m.query,n=Object.keys(l).map(e=>[e,l[e]].join("=")).join("&"),o=0===Object.keys(l).length?`${m.basePath}?sort=${s}`:`${m.basePath}?${n}&sort=${s}`;s?m.push(o):m.push({query:(0,d._)(l)})},sortDirection:Object.keys(f).length?f[i]:u})]})})},e.s(["f",0,m],8918)},36494,e=>{var r=e.i(59080);let t=r.a`
2
+ fragment AddressFragment on Address {
3
+ firstName
4
+ lastName
5
+ company
6
+ addressLine
7
+ postalCode
8
+ city
9
+ countryCode
10
+ regionCode
11
+ }
12
+ `;e.s(["f",0,t])},2765,e=>{e.s(["f",0,(e=500)=>r=>{let t;return(...s)=>{let a;clearTimeout(t),t=setTimeout(()=>r.apply(a,s),e)}}])},73319,e=>{let r=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,r,"T",0,e=>!(!e||null==e||r(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},83147,e=>{let r=e=>e&&e?.split(",").reduce((e,r)=>{let[t=null,s=null]=(r||"")?.split("_")||[];return{...e,[t]:s}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(r(e))?.map(([e,r])=>({key:e,value:r})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,r,"Q",0,(e,r,t=!0)=>{if(!r)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(r)} ${t?`(${r})`:""}`}catch{return r}},"j",0,(e,r,t=!0)=>{if(!r)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(r)} ${t?`(${r})`:""}`}catch{return r}},"I",0,(e,r,t=!0)=>{if(!r)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(r)} ${t?`(${r})`:""}`}catch{return r}},"_",0,(e,r,t)=>{let s;return s=t?{...e,[t]:r}:e,Object.keys(s)?.map(e=>[e,s[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:r,currencyCode:t}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:t}).format(r/100)}})])},93333,e=>{var r=e.i(59080),t=e.i(32171);let s=r.a`
13
+ query DeliveryProvidersType {
14
+ deliveryProviderType: __type(name: "DeliveryProviderType") {
15
+ options: enumValues {
16
+ value: name
17
+ label: description
18
+ }
19
+ }
20
+ }
21
+ `;e.s(["f",0,()=>{let{data:e,loading:r,error:a}=(0,t.f)(s);return{deliveryProviderType:e?.deliveryProviderType?.options||[],loading:r,error:a}}])},35997,e=>{var r=e.i(59080),t=e.i(32171),s=e.i(36494);let a=r.a`
22
+ query DeliveryProviders($type: DeliveryProviderType) {
23
+ deliveryProviders(type: $type) {
24
+ _id
25
+ created
26
+ updated
27
+ deleted
28
+ type
29
+ isActive
30
+ configuration
31
+ interface {
32
+ _id
33
+ label
34
+ version
35
+ }
36
+ configurationError
37
+ ... on DeliveryProviderPickUp {
38
+ pickUpLocations {
39
+ _id
40
+ name
41
+ address {
42
+ ...AddressFragment
43
+ }
44
+ }
45
+ }
46
+ }
47
+ deliveryProvidersCount(type: $type)
48
+ }
49
+ ${s.f}
50
+ `;e.s(["f",0,({type:e=null}={})=>{let{data:r,loading:s,error:l}=(0,t.f)(a,{variables:{type:e}});return{deliveryProviders:r?.deliveryProviders||[],loading:s,error:l,deliveryProvidersCount:r?.deliveryProvidersCount||0}}])},15971,e=>{var r=e.i(91398),t=e.i(69322);e.s(["f",0,({onOkClick:e,onCancelClick:s,okText:a=null,cancelText:l=null,headerText:i=null,message:n=null,icon:d=null,close:o=null,loading:u=!1})=>{let{formatMessage:c}=(0,t.X)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{className:"sm:flex sm:items-start",children:[d||(0,r.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,r.jsx)("svg",{className:"h-6 w-6 text-danger",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,r.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,r.jsx)("h3",{className:"text-lg text-text-primary",id:"modal-title",children:i||c({id:"warning",defaultMessage:"Warning!"})}),(0,r.jsx)("div",{className:"mt-2",children:(0,r.jsx)("p",{className:"text-sm text-text-muted",children:n||c({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,r.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,r.jsx)("button",{id:"danger_continue",onClick:e,disabled:u,"aria-busy":u,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:ml-3 sm:w-auto sm:text-sm",children:a||c({id:"continue",defaultMessage:"Continue"})}),(0,r.jsx)("button",{id:"danger_cancel",onClick:s||o,disabled:u,type:"button",className:"mt-3 inline-flex w-full justify-center rounded-md border border-border-default bg-surface px-4 py-2 text-base font-medium text-text-secondary shadow-xs hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:l||c({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{var r=e.i(91788),t=e.i(6444);e.s(["f",0,()=>(0,r.useContext)(t.f)])},44959,e=>{var r=e.i(91398),t=e.i(69322),s=e.i(8918),a=e.i(41158),l=e.i(42469),i=e.i(93380),n=e.i(84818),d=e.i(83147),o=e.i(51782);let u=({order:e,showUser:u})=>{let{formatMessage:c}=(0,t.X)(),{formatPrice:m}=(0,d.d)(),{formatDateTime:f}=(0,n.f)();return(0,r.jsxs)(s.f.Row,{className:"group",children:[(0,r.jsx)(s.f.Cell,{children:(0,r.jsx)(a.default,{href:`/orders?orderId=${e._id}`,className:"flex items-center gap-3 text-sm font-medium text-text-secondary group-hover:text-slate-900 dark:group-hover:text-slate-200",children:e?.orderNumber||(0,r.jsxs)(r.Fragment,{children:[e._id," ",(0,r.jsx)(l.f,{color:"yellow",text:c({id:"cart",defaultMessage:"Cart"})})]})})}),(0,r.jsx)(s.f.Cell,{children:(0,r.jsx)(a.default,{href:`/orders?orderId=${e._id}`,className:"flex items-center text-sm dark:text-slate-300",children:f(e.ordered,{dateStyle:"short",timeStyle:"short"})})}),(0,r.jsx)(s.f.Cell,{children:(0,r.jsx)(a.default,{href:`/orders?orderId=${e._id}`,className:"flex items-center text-sm dark:text-slate-300",children:m(e.total)})}),u&&e.user&&(0,r.jsx)(s.f.Cell,{children:(0,r.jsx)(a.default,{href:`/users?userId=${e.user._id}`,className:"flex items-center text-sm text-text-secondary hover:text-decoration",onClick:e=>e.stopPropagation(),children:(0,r.jsx)("span",{className:"font-medium",children:(0,i.f)(e.user)})})}),(0,r.jsx)(s.f.Cell,{children:(0,r.jsx)(a.default,{href:`/orders?orderId=${e._id}`,className:"block",children:(0,r.jsx)(o.f,{status:e.status})})})]})};e.s(["f",0,({orders:e,showUser:a,loading:l,sortable:i})=>{let{formatMessage:n}=(0,t.X)();return(0,r.jsx)(r.Fragment,{children:(0,r.jsxs)(s.f,{className:"min-w-full",children:[(e||[])?.map(e=>(0,r.jsxs)(s.f.Row,{header:!0,enablesort:i,children:[(0,r.jsx)(s.f.Cell,{sortKey:"orderNumber",children:n({id:"order_number",defaultMessage:"Order #"})}),(0,r.jsx)(s.f.Cell,{sortKey:"ordered",defaultSortDirection:"DESC",children:n({id:"order_date",defaultMessage:"Order date"})}),(0,r.jsx)(s.f.Cell,{children:n({id:"total",defaultMessage:"Total"})}),a&&(0,r.jsx)(s.f.Cell,{children:n({id:"user",defaultMessage:"User"})}),(0,r.jsx)(s.f.Cell,{sortKey:"status",children:n({id:"status",defaultMessage:"Status"})})]},e._id)),(e||[])?.map(e=>(0,r.jsx)(u,{order:e,showUser:a},`${e?._id}-body`))]})})}],44959)},6910,e=>{var r=e.i(59080),t=e.i(32171);e.i(51523);var s=e.i(19518),a=e.i(60193);let l=r.a`
51
+ fragment OrderFragment on Order {
52
+ _id
53
+ status
54
+ created
55
+ updated
56
+ ordered
57
+ orderNumber
58
+ confirmed
59
+ fulfilled
60
+ contact {
61
+ telNumber
62
+ emailAddress
63
+ }
64
+ total {
65
+ isTaxable
66
+ isNetPrice
67
+ amount
68
+ currencyCode
69
+ }
70
+ user {
71
+ _id
72
+ username
73
+ isGuest
74
+ avatar {
75
+ _id
76
+ url
77
+ }
78
+ profile {
79
+ displayName
80
+ address {
81
+ firstName
82
+ lastName
83
+ }
84
+ }
85
+ }
86
+ }
87
+ `,i=r.a`
88
+ query Orders(
89
+ $limit: Int
90
+ $offset: Int
91
+ $includeCarts: Boolean
92
+ $queryString: String
93
+ $sort: [SortOptionInput!]
94
+ $paymentProviderIds: [String!]
95
+ $deliveryProviderIds: [String!]
96
+ $dateRange: DateFilterInput
97
+ $status: [OrderStatus!]
98
+ ) {
99
+ orders(
100
+ limit: $limit
101
+ offset: $offset
102
+ includeCarts: $includeCarts
103
+ queryString: $queryString
104
+ sort: $sort
105
+ paymentProviderIds: $paymentProviderIds
106
+ deliveryProviderIds: $deliveryProviderIds
107
+ dateRange: $dateRange
108
+ status: $status
109
+ ) {
110
+ ...OrderFragment
111
+ }
112
+ ordersCount(
113
+ includeCarts: $includeCarts
114
+ queryString: $queryString
115
+ paymentProviderIds: $paymentProviderIds
116
+ deliveryProviderIds: $deliveryProviderIds
117
+ dateRange: $dateRange
118
+ status: $status
119
+ )
120
+ }
121
+ ${l}
122
+ `;e.s(["f",0,({limit:e=a.h,offset:r=0,includeCarts:l=!1,queryString:n="",sort:d=[],dateRange:o,status:u,deliveryProviderIds:c,paymentProviderIds:m}={})=>{let{data:f,loading:x,error:h,fetchMore:p}=(0,t.f)(i,{errorPolicy:"all",variables:{limit:e,deliveryProviderIds:c?.length?c:null,paymentProviderIds:m?.length?m:null,offset:r,includeCarts:l,queryString:n,dateRange:o,status:u,sort:d.length?[...d,{key:"created",value:s.A.Desc}]:[{key:"ordered",value:s.A.Desc},{key:"created",value:s.A.Desc}]}}),g=f?.orders||[],v=f?.ordersCount,y=g?.length<v;return{orders:g,ordersCount:v,hasMore:y,loading:x,error:h,loadMore:()=>{p({variables:{offset:g?.length}})}}}],6910)},16238,e=>{var r=e.i(59080);let t=r.a`
123
+ fragment PaymentProviderFragment on PaymentProvider {
124
+ _id
125
+ created
126
+ updated
127
+ deleted
128
+ isActive
129
+ type
130
+ interface {
131
+ _id
132
+ label
133
+ version
134
+ }
135
+ configuration
136
+ configurationError
137
+ }
138
+ `;e.s(["f",0,t])},51967,e=>{var r=e.i(59080),t=e.i(32171);let s=r.a`
139
+ query PaymentProvidersType {
140
+ paymentProviderType: __type(name: "PaymentProviderType") {
141
+ options: enumValues {
142
+ value: name
143
+ label: description
144
+ }
145
+ }
146
+ }
147
+ `;e.s(["f",0,()=>{let{data:e,loading:r,error:a}=(0,t.f)(s);return{paymentProviderType:e?.paymentProviderType?.options||[],loading:r,error:a}}])},29338,e=>{var r=e.i(59080),t=e.i(32171),s=e.i(16238);let a=r.a`
148
+ query PaymentProviders($type: PaymentProviderType) {
149
+ paymentProviders(type: $type) {
150
+ ...PaymentProviderFragment
151
+ }
152
+ paymentProvidersCount(type: $type)
153
+ }
154
+ ${s.f}
155
+ `;e.s(["f",0,({type:e=null}={})=>{let r={};e&&(r.type=e);let{data:s,loading:l,error:i}=(0,t.f)(a,{variables:r});return{paymentProviders:s?.paymentProviders||[],loading:l,error:i,paymentProvidersCount:s?.paymentProvidersCount||0}}])},58668,e=>{var r=e.i(91398),t=e.i(91788);class s extends t.default.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,r){console.error(`Plugin "${this.props.pluginName}" crashed in component "${this.props.componentName}":`,e,r)}render(){return this.state.hasError?(0,r.jsx)("div",{className:"rounded-lg border border-danger bg-danger-surface p-4 my-2",children:(0,r.jsxs)("div",{className:"flex items-start justify-between",children:[(0,r.jsxs)("div",{children:[(0,r.jsxs)("p",{className:"text-sm font-medium text-danger",children:['Plugin "',this.props.pluginName,'" encountered an error']}),(0,r.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Component: ",this.props.componentName]}),this.state.error&&(0,r.jsxs)("details",{className:"mt-2",children:[(0,r.jsx)("summary",{className:"text-xs text-text-muted cursor-pointer hover:text-text-secondary",children:"Error details"}),(0,r.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&&`
156
+ ${this.state.error.stack.split("\n").slice(1,4).join("\n")}`]})]})]}),(0,r.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,r.jsx)("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,r.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(["f",0,s])},70475,e=>{var r=e.i(91398),t=e.i(91788),s=e.i(13534),a=e.i(26539),l=e.i(58668),i=e.i(53576);e.s(["f",0,({slot:e,children:n,...d})=>{let{getSlotPlugins:o,getComponent:u,loading:c}=(0,s.L)();if(c)return null;let m=o(e);return 0===m.length?null:(0,r.jsx)(r.Fragment,{children:m.map(({manifest:s,config:o})=>{let c=o.component||o.components?.list,m=u(s.name,c);if(!m)return console.warn(`Plugin "${s.name}": component "${c}" not found in bundle`),null;let f={pluginName:s.name,version:s.version,slotId:e,config:o};return(0,r.jsx)(l.f,{pluginName:s.name,componentName:c,children:(0,r.jsx)(a.h,{value:f,children:(0,r.jsx)(t.Suspense,{fallback:(0,r.jsx)(i.f,{}),children:n?n(m,o,s):(0,r.jsx)(m,{...d})})})},`${s.name}-${c}`)})})}])},33987,e=>{var r=e.i(91398),t=e.i(69322),s=e.i(3828),a=e.i(50595),l=e.i(70553),i=e.i(78704),n=e.i(53576),d=e.i(25327),o=e.i(6634),u=e.i(60193),c=e.i(44959),m=e.i(6910),f=e.i(83147),x=e.i(51128),h=e.i(71774),p=e.i(25093),g=e.i(93924),v=e.i(92229),y=e.i(73319),b=e.i(78205),j=e.i(91788);let w=["PENDING","REJECTED","CONFIRMED","FULFILLED"],N=({paymentProviders:e=[],deliveryProviders:a=[]})=>{let l=(0,s.useRouter)(),{formatMessage:i}=(0,t.X)(),n=(0,y.Q)(l.query.status),d=(0,y.Q)(l.query?.payment_providers),o=(0,y.Q)(l.query?.delivery_providers),u=e=>r=>{let{[e]:t,...s}=l.query;r?.length?l.push({query:(0,f._)(s,r.join(","),e)}):l.push({query:(0,f._)(s)})},c=(0,j.useMemo)(()=>d.map(r=>{let t=e.find(e=>e.value===r);return t?.label}).filter(Boolean),[e]),m=(0,j.useMemo)(()=>o.map(e=>{let r=a.find(r=>r.value===e);return r?.label}).filter(Boolean),[a]);return(0,r.jsxs)("div",{className:"space-y-6 dark:bg-slate-900",children:[(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-text-secondary uppercase tracking-wide mb-3",children:i({id:"filter_by_creation_date",defaultMessage:"Filter by creation date"})}),(0,r.jsx)("div",{className:"mt-3",children:(0,r.jsx)(b.f,{})})]}),(0,r.jsxs)("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[(0,r.jsx)(g.f,{label:i({id:"payment_providers",defaultMessage:"Payment providers"}),tagList:c,onChange:u("payment_providers"),options:e.map(({value:e,label:r})=>({label:r,value:e}))}),(0,r.jsx)(g.f,{label:i({id:"delivery_providers",defaultMessage:"Delivery providers"}),tagList:m,onChange:u("delivery_providers"),options:a.map(({value:e,label:r})=>({value:e,label:r}))})]}),(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-text-secondary uppercase tracking-wide mb-3",children:i({id:"order_status",defaultMessage:"Order status"})}),(0,r.jsx)("div",{className:"flex flex-wrap gap-3",children:(0,r.jsx)(v.f,{onStatusChange:e=>{let{status:r,...t}=l.query;e?.length?l.push({query:(0,f._)(t,e,"status")}):l.push({query:t})},selectedStatuses:n,statuses:w})})]})]})};var C=e.i(29338),k=e.i(35997);e.s(["default",0,()=>{let{formatMessage:e}=(0,t.X)(),{query:g,push:v}=(0,s.useRouter)(),{paymentProviders:y}=(0,C.f)(),{deliveryProviders:b}=(0,k.f)(),j=y.map(e=>({value:e._id,label:e.interface.label})),w=b.map(e=>({value:e._id,label:e.interface.label})),_=parseInt(g?.limit,10)||u.h,P=parseInt(g?.skip,10)||0,M=g?.includeCarts==="true",$=g?.sort||"",{queryString:S,orderId:q,...R}=g,L=(0,f.R)($),{orders:E,ordersCount:I,loading:D,loadMore:A,hasMore:O}=(0,m.f)({limit:_,includeCarts:M,queryString:S,offset:P,sort:L,dateRange:g?.start||g?.end?{start:g?.start,end:g?.end}:null,status:g?.status?.split(","),deliveryProviderIds:g?.delivery_providers?.split(","),paymentProviderIds:g?.payment_providers?.split(",")});if(q)return(0,r.jsx)(h.default,{orderId:q});let F=1===I?e({id:"order_header",defaultMessage:"1 Order"}):e({id:"order_count_header",defaultMessage:"{count} Orders"},{count:(0,r.jsx)(p.f,{value:I})});return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(a.f,{}),(0,r.jsx)(d.f,{title:e({id:"order_page_title",defaultMessage:"{count, plural, one {# Order} other {# Orders}}"},{count:I}),headerText:F}),(0,r.jsxs)("div",{className:"mt-5 inline-block min-w-full overflow-x-auto px-1 pb-5",children:[(0,r.jsx)(l.f,{children:(0,r.jsx)(o.f,{toggleText:e({id:"show_carts",defaultMessage:"Show carts"}),toggleKey:"includeCarts",active:M})}),(0,r.jsx)("div",{className:"mt-5 pt-5",children:(0,r.jsx)(N,{deliveryProviders:w,paymentProviders:j})}),(0,r.jsx)("div",{className:"mt-5 pt-5",children:(0,r.jsx)(x.f,{onSearchChange:e=>{let{skip:r,...t}=R;e?v({query:(0,f._)(t,e,"queryString")}):v({query:(0,f._)(R)})},defaultSearchValue:S,children:(0,r.jsx)(i.f,{loading:D,hasMore:O,onLoadMore:A,children:D&&E?.length===0?(0,r.jsx)(n.f,{}):(0,r.jsx)(c.f,{loading:D&&E?.length>0,orders:E,showUser:!0,sortable:!0})})})})]})]})}],33987)},88566,25575,e=>{var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...s},a){return r.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":t},s),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M5.22 8.22a.75.75 0 0 1 1.06 0L10 11.94l3.72-3.72a.75.75 0 1 1 1.06 1.06l-4.25 4.25a.75.75 0 0 1-1.06 0L5.22 9.28a.75.75 0 0 1 0-1.06Z",clipRule:"evenodd"}))});e.s(["f",0,t],88566);let s=r.forwardRef(function({title:e,titleId:t,...s},a){return r.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":t},s),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M9.47 6.47a.75.75 0 0 1 1.06 0l4.25 4.25a.75.75 0 1 1-1.06 1.06L10 8.06l-3.72 3.72a.75.75 0 0 1-1.06-1.06l4.25-4.25Z",clipRule:"evenodd"}))});e.s(["f",0,s],25575)},64710,e=>{var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...s},a){return r.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":t},s),e?r.createElement("title",{id:t},e):null,r.createElement("path",{fillRule:"evenodd",d:"M2.5 4A1.5 1.5 0 0 0 1 5.5V6h18v-.5A1.5 1.5 0 0 0 17.5 4h-15ZM19 8.5H1v6A1.5 1.5 0 0 0 2.5 16h15a1.5 1.5 0 0 0 1.5-1.5v-6ZM3 13.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75Zm4.75-.75a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5h-3.5Z",clipRule:"evenodd"}))});e.s(["f",0,t],64710)},37369,e=>{var r=e.i(84985);e.s(["f",()=>r.f])},24608,e=>{var r=e.i(30999);e.s(["f",()=>r.f])}],23591,(e,r,t)=>{let s="/orders";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(33987)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([s])})}]);
@@ -0,0 +1,4 @@
1
+ __turbopack_load_page_chunks__("/log-in", [
2
+ "static/chunks/3kd-t_qz3nxh7.js",
3
+ "static/chunks/turbopack-2c3mg3r-05n1w.js"
4
+ ])
@@ -0,0 +1,5 @@
1
+ __turbopack_load_page_chunks__("/warehousing-provider", [
2
+ "static/chunks/2d9lzme_uzwvq.js",
3
+ "static/chunks/36vauyb71ot_b.js",
4
+ "static/chunks/turbopack-2c3mg3r-05n1w.js"
5
+ ])
@@ -0,0 +1,6 @@
1
+ __turbopack_load_page_chunks__("/enrollments", [
2
+ "static/chunks/1lex3myb5hmsw.js",
3
+ "static/chunks/1ulje1tawz8fl.js",
4
+ "static/chunks/1bxesp6kakz8_.js",
5
+ "static/chunks/turbopack-2c3mg3r-05n1w.js"
6
+ ])
@@ -0,0 +1,5 @@
1
+ __turbopack_load_page_chunks__("/payment-provider", [
2
+ "static/chunks/2d9lzme_uzwvq.js",
3
+ "static/chunks/1zyhq82pkterc.js",
4
+ "static/chunks/turbopack-2c3mg3r-05n1w.js"
5
+ ])