@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,147 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,46758,e=>{var t=e.i(91398),s=e.i(56206),r=e.i(69322);e.s(["f",0,({isActive:e,activeText:a=null,activeClassName:l="",inActiveClassName:i="",inActiveText:d=null,containerClassName:n=""})=>{let{formatMessage:o}=(0,r.X)();return(0,t.jsx)("span",{className:(0,s.U)("",n),children:e?(0,t.jsx)("span",{className:(0,s.U)("inline-flex items-center border rounded-full px-2.5 py-0.5 text-sm font-medium bg-emerald-50 dark:bg-emerald-900/30 text-emerald-700 dark:text-emerald-300 border-emerald-200 dark:border-emerald-800 uppercase",l),children:a||o({id:"active",defaultMessage:"Active"})}):(0,t.jsx)("span",{className:(0,s.U)("inline-flex items-center border rounded-full px-2.5 py-0.5 text-sm font-medium bg-amber-100 dark:bg-yellow-900/30 text-yellow-800 dark:text-yellow-300 border-amber-400 dark:border-yellow-800 uppercase",i),children:d||o({id:"inactive",defaultMessage:"In-Active"})})})}])},26690,e=>{var t=e.i(91398),s=e.i(91788),r=e.i(69322);e.s(["f",0,({text:e})=>{let{formatMessage:a}=(0,r.X)(),[l,i]=(0,s.useState)(a({id:"copy_to_clipboard",defaultMessage:"Copy to clipboard"}));return(0,t.jsx)("div",{onClick:()=>{let e=document.createElement("textarea");e.value=document.getElementById("copyable").innerText,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e);let t=document.getSelection().rangeCount>0&&document.getSelection().getRangeAt(0);e.select(),e.setSelectionRange(0,99999),document.execCommand("copy"),document.body.removeChild(e),t&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(t)),i(a({id:"copied",defaultMessage:"Copied"}))},className:"relative inline-flex items-center rounded-md border border-transparent bg-slate-950 px-4 py-2 text-sm font-medium text-white shadow-xs hover:bg-slate-950 focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",onMouseEnter:()=>i(a({id:"copy_to_clipboard",defaultMessage:"Copy to clipboard"})),children:(0,t.jsxs)("pre",{children:[(0,t.jsx)("span",{children:l}),(0,t.jsx)("code",{id:"copyable",className:"sr-only",children:e})]})})}])},76069,e=>{var t=e.i(91398),s=e.i(81618),r=e.i(56206);e.s(["f",0,({className:e="",containerClassName:a="",Icon:l=null})=>(0,t.jsx)("span",{className:(0,r.U)("text-slate-400",a),children:l||(0,t.jsx)(s.f,{className:(0,r.U)(e)})})])},35429,e=>{var t=e.i(91398),s=e.i(56206),r=e.i(69322),a=e.i(21128);e.s(["f",0,({cancelText:e=null,showCancel:l=!0,submitText:i=null,showSubmit:d=!0,onCancel:n,className:o=""})=>{let{formatMessage:c}=(0,r.X)();return(0,t.jsxs)("span",{className:(0,s.U)("flex shrink-0 items-center space-x-4 py-5 pl-1",o),children:[l?(0,t.jsx)("button",{onClick:n,"data-id":"cancel_update",type:"button",className:(0,s.U)("focus:ring-focus-ring","inline-flex items-center rounded-md border border-border-default bg-surface px-4 py-2 text-sm 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"),children:e||c({id:"cancel",defaultMessage:"Cancel"})}):null,d?(0,t.jsx)(a.f,{label:i||c({id:"save",defaultMessage:"Save"})}):null]})}])},56779,e=>{var t=e.i(91398),s=e.i(56206),r=e.i(3828),a=e.i(91788),l=e.i(69322);e.s(["f",0,({children:e,tabItems:i,defaultTab:d,updateRoute:n=!0})=>{let o=(0,r.useRouter)(),{tab:c=d}=o?.query||{},u=Array.isArray(c)?c[0]:c,{formatMessage:m}=(0,l.X)(),x=e=>{if(n){let{sort:t,...s}=o?.query||{};o.push({query:{...s,tab:e}},void 0,{shallow:!0})}};return(0,t.jsxs)("div",{className:"mt-10",children:[(0,t.jsxs)("div",{className:"lg:hidden",children:[(0,t.jsx)("label",{htmlFor:"selected-tab",className:"sr-only",children:m({id:"select_tab",defaultMessage:"Select a tab"})}),(0,t.jsx)("select",{onChange:e=>x(e.target.value),id:"selected-tab",name:"selected-tab",className:"mt-1 block dark:bg-slate-800 dark:text-white w-full rounded-md border-border-default py-2 pl-3 pr-10 text-base capitalize focus:outline-none focus:ring-2 focus:ring-focus-ring focus:border-slate-800 dark:focus:border-slate-400 sm:text-sm",value:u,children:i.filter(Boolean).map(e=>(0,t.jsx)("option",{value:e.id,className:"dark:text-white",children:e?.title||e?.id},e.id))})]}),(0,t.jsx)("div",{className:"mt-5 hidden lg:block",children:(0,t.jsx)("div",{className:"",children:(0,t.jsx)("nav",{className:"flex flex-wrap gap-3",children:i.filter(Boolean).map(e=>(0,t.jsx)("a",{id:e.id,tabIndex:0,onClick:()=>x(e.id),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),x(e.id))},className:(0,s.U)({"cursor-pointer rounded-lg border border-border-default bg-white text-text-primary dark:bg-slate-900 shadow-sm dark:hover:border-slate-500 hover:border-slate-400 focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 dark:focus:ring-offset-slate-900":u===e.id},"cursor-pointer relative whitespace-nowrap border border-border-subtle py-2 px-1 pr-3 pl-2 text-sm dark:text-slate-400 font-medium hover:bg-white dark:hover:bg-slate-800 hover:border-slate-300 dark:hover:border-slate-500 rounded-lg focus:outline-none focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 dark:focus:ring-offset-slate-900"),children:(0,t.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,t.jsx)("div",{children:e.Icon}),(0,t.jsx)("div",{className:"capitalize",children:e?.title||e?.id}),e?.length?(0,t.jsx)("span",{className:"absolute top-0 right-0 inline-flex translate-x-1/2 -translate-y-1/2 transform items-center justify-center rounded-full bg-slate-400 px-1 py-0.5 text-sm leading-none text-slate-900",children:e?.length}):null]})},e.id))})})}),(0,t.jsx)("div",{className:"mt-5",children:a.default.cloneElement(e,{selectedView:u})})]})}])},34948,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(6607),a=e.i(42469),l=e.i(69211),i=e.i(13120),d=e.i(98949),n=e.i(35429);let o=({tags:e,onSubmit:r,onCancel:a,selectOptions:o=[]})=>{let{formatMessage:c}=(0,s.X)(),u=c({id:"tags_updated",defaultMessage:"Tags updated successfully"}),m=(0,d.f)({submit:r,successMessage:u,onSubmitSuccess:a,initialValues:{tags:e}});return(0,t.jsxs)(l.f,{form:m,id:"add_tag_form",children:[(0,t.jsx)("div",{children:(0,t.jsx)(i.f,{name:"tags",id:"tags",label:c({id:"tags",defaultMessage:"Tags"}),tagList:e,selectOptions:o})}),(0,t.jsx)("div",{className:"border border-t-slate-100 bg-slate-50 mt-6 -mx-6 -mb-6 px-6 dark:bg-slate-900 dark:border-0",children:(0,t.jsx)(n.f,{onCancel:a,className:"justify-end "})})]})};e.s(["f",0,({defaultValue:e,onSubmit:l,enableEdit:i,availableTagOptions:d=[]})=>{let{formatMessage:n}=(0,s.X)(),{setModal:c}=(0,r.f)();return(0,t.jsxs)("div",{className:"flex items-center mr-auto gap-2",children:[(0,t.jsx)("div",{className:"flex flex-wrap items-center gap-2",children:e?.length?e.map((e,s)=>(0,t.jsx)("span",{children:(0,t.jsx)(a.f,{text:e,color:"sky"})},`${e}${s+1}`)):(0,t.jsx)("span",{children:(0,t.jsx)(a.f,{text:n({id:"no_tag",defaultMessage:"No Tag"}),color:"slate"})})}),i&&(0,t.jsx)("button",{id:"add_tag",type:"button",className:"rounded-sm hover:shadow-sm px-3 py-2 text-xs inline-flex items-center justify-center text-slate-800 hover:text-slate-900 hover:bg-slate-50 hover:border border-transparent border-1 hover:border-slate-300 dark:text-slate-400 dark:hover:text-slate-200 dark:hover:bg-slate-800 transition-colors focus:outline-hidden focus:ring-2 focus:ring-focus-ring",onClick:()=>c((0,t.jsx)(o,{tags:e||[],onCancel:()=>c(""),onSubmit:l,selectOptions:d})),children:n({id:"edit_tags",defaultMessage:"Edit tags"})})]})}],34948)},97776,e=>{var t=e.i(91398),s=e.i(56206),r=e.i(60741),a=e.i(82226),l=e.i(54879);e.s(["f",0,({validators:e=[],className:i,...d})=>{let n=(0,r.f)({validators:[...e,a.G],...d}),o=n.value?new Date(n.value).toISOString().split("T")[0]:"";return(0,t.jsx)(l.f,{...n,className:d.containerClassName,children:(0,t.jsx)("input",{type:"date",id:n.id,name:n.name,disabled:n.disabled,className:(0,s.U)("relative mt-0 block w-full appearance-none rounded-md rounded-b-md border-1 border-border-default px-4 py-2.5 text-sm text-text-primary dark:bg-slate-900 placeholder-slate-400 shadow-xs focus:z-10 focus:outline-hidden focus:ring-2 focus:ring-focus-ring",i,{"border-rose-700 placeholder:text-rose-300":!!n.error}),onChange:n.onChange,onBlur:n.onBlur,value:o,placeholder:n.placeholder,autoComplete:"off",...d})})}])},63094,e=>{var t=e.i(91398),s=e.i(91788),r=e.i(61898);let a=(e,t="")=>e&&"object"==typeof e?Object.entries(e).reduce((e,[r,l])=>{if(!l||"ref"===r)return e;let i=`${t}${r}`;return"string"==typeof l||s.default.isValidElement(l)?e[i]=l:"string"==typeof l.message&&l.message?e[i]=l.message:"object"==typeof l&&Object.assign(e,a(l,`${i}.`)),e},{}):{},l=({submitError:e="",fieldErrors:r={}})=>(0,t.jsx)("div",{className:"my-2 mb-5 text-rose-700",children:(0,t.jsxs)("ul",{className:"space-y-1",children:[e&&(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:e}})},"submitError"),Object.entries(r).map(([e,r])=>(0,t.jsx)("li",{className:"disabled",children:(0,t.jsx)("button",{type:"button",className:"no-button text-danger","aria-label":"Error button",onClick:()=>{let t=document.getElementById(e);t&&t.focus()},children:s.default.isValidElement(r)?r:(0,t.jsx)("span",{dangerouslySetInnerHTML:{__html:r}})})},e))]})});e.s(["f",0,({displayFieldErrors:e=!1})=>{var s;let i,{submitError:d,rhf:n}=(0,r.f)(),o=e?(s=a(n?.formState?.errors),i=new Set,Object.fromEntries(Object.entries(s).filter(([,e])=>"string"!=typeof e||!i.has(e)&&(i.add(e),!0)))):{};return(d||e)&&(0,t.jsx)(l,{submitError:d,fieldErrors:o})}])},83094,e=>{var t=e.i(91398),s=e.i(56206),r=e.i(69322),a=e.i(91412),l=e.i(10947),l=l,i=e.i(7654),d=e.i(31858),n=e.i(3812),o=e.i(98634),c=e.i(82226),u=e.i(60741),m=e.i(54879),x=e.i(56779);let f=({selectedView:e="edit",...r})=>"preview"===e?(0,t.jsx)("div",{className:"prose dark:prose-invert",children:(0,t.jsx)(i.f,{rehypePlugins:[d.f,n.f,o.f],children:r.value})}):(0,t.jsx)("textarea",{className:(0,s.U)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-400 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 border-border-default px-4 py-2.5 text-sm text-slate-900 placeholder-slate-400 shadow-xs placeholder:text-slate-400 focus:outline-hidden focus:ring-2 focus:ring-focus-ring",r.className,{"border-rose-700 placeholder:text-rose-300 placeholder-rose-300":!!r.error}),disabled:r.disabled,id:r.name,name:r.name,rows:r.rows||10,onChange:r.onChange,onBlur:r.onBlur,placeholder:r.placeholder,autoComplete:r.autoComplete||"off",value:r.value});e.s(["f",0,({maxLength:e,validators:s=[],...i})=>{let{formatMessage:d}=(0,r.X)(),n=(0,u.f)({validators:[...s,e&&(0,c.f)(e)],...i}),o=[{id:"editor",title:d({id:"editor",defaultMessage:"Editor"}),Icon:(0,t.jsx)(l.f,{className:"h-4 w-5"})},{id:"preview",title:d({id:"preview",defaultMessage:"preview"}),Icon:(0,t.jsx)(a.f,{className:"h-4 w-5"})}];return(0,t.jsx)(m.f,{...n,children:(0,t.jsx)("div",{className:"-mt-8",children:(0,t.jsx)(x.f,{tabItems:o,defaultTab:"editor",children:(0,t.jsx)(f,{...n})})})})}],83094)},56985,e=>{var t=e.i(91398),s=e.i(56206),r=e.i(91788),a=e.i(16984);e.s(["f",0,({autoComplete:e="on",...l})=>{let[i,d]=(0,r.useState)(!1),n=e=>{e.preventDefault(),d(!i)};return(0,t.jsxs)("div",{className:(0,s.U)("relative",l.className),children:[(0,t.jsx)(a.f,{autoComplete:e||"on",name:"password",...l,type:i?"text":"password"}),(0,t.jsx)("span",{role:"button",tabIndex:-1,"aria-label":"toggle password visibility",className:"absolute translate-y-[-137%] outline-hidden block right-3",onClick:n,onKeyUp:n,children:i?(0,t.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 stroke-slate-700",fill:"none",viewBox:"0 0 24 24",children:[(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M15 12a3 3 0 11-6 0 3 3 0 016 0z"}),(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"})]}):(0,t.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-6 w-6 stroke-slate-700",fill:"none",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M13.875 18.825A10.05 10.05 0 0112 19c-4.478 0-8.268-2.943-9.543-7a9.97 9.97 0 011.563-3.029m5.858.908a3 3 0 114.243 4.243M9.878 9.878l4.242 4.242M9.88 9.88l-3.29-3.29m7.532 7.532l3.29 3.29M3 3l3.59 3.59m0 0A9.953 9.953 0 0112 5c4.478 0 8.268 2.943 9.543 7a10.025 10.025 0 01-4.132 5.411m0 0L21 21"})})})]})}])},13120,e=>{var t=e.i(91398),s=e.i(56206),r=e.i(76038),a=e.i(60741),l=e.i(82226),i=e.i(54879);e.s(["f",0,({buttonText:e="",validators:d=[],selectOptions:n=[],...o})=>{let c=(0,a.f)({validators:[...d,(0,l.x)(o?.required)],label:"Tags",...o});return(0,t.jsx)(i.f,{...c,children:(0,t.jsx)(r.f,{disabled:c.disabled,id:c.id,name:c.name,className:(0,s.U)({"border-rose-300":!!c.error}),onChange:e=>c.setValue(e,!0),placeholder:c.placeholder,tagList:c.value,buttonText:e,selectOptions:n})})}])},56599,e=>{var t=e.i(91398),s=e.i(90645),r=e.i(56206),a=e.i(91788),l=e.i(69322),i=e.i(59080),d=e.i(76204),n=e.i(21649);let o=i.a`
2
+ mutation ExportToken(
3
+ $tokenId: ID!
4
+ $quantity: Int! = 1
5
+ $recipientWalletAddress: String!
6
+ ) {
7
+ exportToken(
8
+ tokenId: $tokenId
9
+ quantity: $quantity
10
+ recipientWalletAddress: $recipientWalletAddress
11
+ ) {
12
+ ...TokenFragment
13
+ }
14
+ }
15
+ ${n.f}
16
+ `,c=({isOpen:e,addresses:s,cancel:r,onExport:i})=>{let[d,n]=(0,a.useState)(""),{formatMessage:o}=(0,l.X)();return e&&(0,t.jsxs)("div",{className:"relative z-10","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:[(0,t.jsx)("div",{className:"fixed inset-0 bg-slate-500 bg-opacity/75 transition-opacity"}),(0,t.jsx)("div",{className:"fixed inset-0 z-10 overflow-y-auto",children:(0,t.jsx)("div",{className:"flex min-h-full items-end justify-center p-4 text-center sm:items-center sm:p-0",children:(0,t.jsxs)("div",{className:"relative transform overflow-hidden rounded-lg bg-white px-4 pt-5 pb-4 text-left shadow-xl transition-all sm:my-8 sm:w-full sm:max-w-lg sm:p-6",children:[(0,t.jsx)("div",{children:(0,t.jsx)("fieldset",{className:"space-y-5",children:s?.map(e=>(0,t.jsxs)("div",{className:"relative flex items-start",children:[(0,t.jsx)("div",{className:"flex h-5 items-center",children:(0,t.jsx)("input",{id:e.address,name:"addresses",value:e.address,onChange:()=>{n(e.address)},checked:d?.toLowerCase()===e.address?.toLowerCase(),type:"checkbox",className:"h-4 w-4 rounded-sm border-border-default bg-white dark:!bg-slate-800 text-slate-950 focus:ring-focus-ring"})}),(0,t.jsx)("div",{className:"ml-3 text-sm",children:(0,t.jsx)("label",{htmlFor:"comments",className:"font-medium text-slate-700",children:e.address})})]},e.address))})}),(0,t.jsxs)("div",{className:"mt-4",children:[(0,t.jsx)("label",{htmlFor:"Address",className:"block text-sm font-medium text-slate-700",children:o({id:"or_manually_enter_address",defaultMessage:"Or enter address manually"})}),(0,t.jsx)("div",{className:"mt-1",children:(0,t.jsx)("input",{type:"text",onChange:e=>n(e.target.value),value:d,name:"Address",id:"Address",className:"block w-full rounded-md border-slate-300 shadow-xs focus:border-slate-900 focus:ring-focus-ring sm:text-sm",placeholder:"0xF5F72AE7fa1fa990ebaF163208Ed7aD6a3f42DEA"})})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-6 sm:grid sm:grid-flow-row-dense sm:grid-cols-2 sm:gap-3",children:[(0,t.jsx)("button",{type:"button",onClick:()=>i(d),className:"inline-flex w-full justify-center rounded-md border border-transparent bg-slate-950 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-slate-950 focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 sm:col-start-2 sm:text-sm",children:o({id:"export",defaultMessage:"Export"})}),(0,t.jsx)("button",{type:"button",onClick:r,className:"mt-3 inline-flex w-full justify-center rounded-md border border-slate-300 bg-white px-4 py-2 text-base font-medium text-slate-700 shadow-xs hover:bg-slate-50 focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 sm:col-start-1 sm:mt-0 sm:text-sm",children:o({id:"cancel",defaultMessage:"Cancel"})})]})]})})})]})};e.s(["f",0,({tokenId:e,tokenStatus:i,addresses:n=[]})=>{let{exportToken:u}=(()=>{let[e]=(0,d.f)(o);return{exportToken:async({quantity:t,recipientWalletAddress:s,tokenId:r})=>e({variables:{quantity:t,recipientWalletAddress:s,tokenId:r}})}})(),{formatMessage:m}=(0,l.X)(),[x,f]=(0,a.useState)(!1),h=async t=>{await u({tokenId:e,recipientWalletAddress:t}),f(!1)};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(c,{isOpen:x,cancel:()=>{f(!1)},onExport:h,addresses:n}),"DECENTRALIZED"!==i&&(0,t.jsxs)("button",{type:"button",onClick:()=>f(!0),disabled:"EXPORTING"===i,className:(0,r.U)(" text-center inline-flex truncate rounded-md border border-transparent bg-slate-950 px-5 py-1 text-base font-medium text-white shadow-xs hover:bg-slate-950 focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",{"bg-slate-400 hover:bg-slate-500":"EXPORTING"===i}),children:[(0,t.jsx)(s.f,{className:"w-6 h-6 mr-2"}),m("CENTRALIZED"===i?{id:"export",defaultMessage:"Export"}:{id:"exporting",defaultMessage:"Exporting..."})]})]})}],56599)},97351,e=>{var t=e.i(10576),s=e.i(59080),r=e.i(76204);let a=s.a`
17
+ mutation CreateWebAuthnCredentialCreationOptions($username: String!) {
18
+ createWebAuthnCredentialCreationOptions(username: $username)
19
+ }
20
+ `,l=e=>window.btoa(String.fromCharCode(...new Uint8Array(e))).replace(/\+/g,"-").replace(/\//g,"_").replace(/=+$/,"");e.s(["f",0,()=>{let{createWebAuthnCredentialCreationOptions:e}=(()=>{let[e]=(0,r.f)(a);return{createWebAuthnCredentialCreationOptions:async({username:t})=>e({variables:{username:t}})}})();return{generateWebAuthCredentials:async({username:s})=>{let{data:r}=await e({username:s}),a=r.createWebAuthnCredentialCreationOptions,i=new TextEncoder,d={...a,challenge:(0,t.f)(a.challenge),user:{id:i.encode(s),name:s,displayName:s}},n=await navigator.credentials.create({publicKey:d});if(!n)return null;let o=n.response,c=l(o.attestationObject),u=l(o.clientDataJSON),m=l(n.rawId),x=o.getAuthenticatorData?l(o.getAuthenticatorData()):"",f=o.getPublicKey?l(o.getPublicKey()):"";return{id:m,rawId:m,response:{clientDataJSON:u,attestationObject:c,authenticatorData:x,publicKey:f,publicKeyAlgorithm:o.getPublicKeyAlgorithm?o.getPublicKeyAlgorithm():-7,transports:o.getTransports?o.getTransports():["internal"]},authenticatorAttachment:n.authenticatorAttachment||"platform",clientExtensionResults:n.getClientExtensionResults?.()||{},type:"public-key",user:{id:s,name:s,displayName:s}}}}}],97351)},41215,e=>{e.s(["f",0,class extends Error{constructor(e){super(e),this.name="CustomError"}}])},31494,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(84818),a=e.i(87284),l=e.i(6634);let i=({value:e})=>{let{formatDateTime:i}=(0,r.f)(),{formatMessage:d}=(0,s.X)();return(e=>{try{return new URL(e)}catch{return!1}})(e)?(e=>{try{let{pathname:t}=new URL(e),s=t?.split("."),r=`.${s[s.length-1]}`;return[".jpg",".jpeg",".png",".gif",".bmp"].includes(r)}catch{return!1}})(e)?(0,t.jsx)("div",{className:"ring-2 ring-offset-2 ring-slate-900 group block w-full aspect-w-10 aspect-h-7 rounded-lg bg-slate-50 overflow-hidden",children:(0,t.jsx)(a.f,{src:e,className:"relative h-10 w-10 rounded-full",width:100,height:100,alt:d({id:"image_not_available",defaultMessage:"Image not available"})})}):(0,t.jsx)("div",{className:"ml-4 shrink-0",children:(0,t.jsxs)("a",{href:e,className:"font-medium text-slate-900 hover:text-slate-800",target:"_blank",rel:"noreferrer",children:[new URL(e).host,"...",new URL(e).pathname]})}):(e=>{try{return"boolean"==typeof JSON.parse(e)}catch{return!1}})(e)?(0,t.jsx)(l.f,{disabled:!0,active:JSON.parse(e)}):!Number.isNaN(Date.parse(e))&&Number.isNaN(Number(e))?i(e,{dateStyle:"long",timeStyle:"short"}):(!Number.isNaN(e),e)},d=({value:e})=>(0,t.jsx)("h3",{className:"text-base font-medium",children:(0,t.jsx)("span",{className:"text-slate-900",children:e})}),n=e=>{let{data:s,parentKey:r}=e;if(!s)return null;let a=Object.keys(s),l=[];return void 0!==r&&l.push((0,t.jsx)(d,{value:r},r)),a.forEach(e=>{let a=s[e];if(Array.isArray(a))if(l.push((0,t.jsx)(d,{value:e},e)),a.every(e=>"string"==typeof e||"number"==typeof e))l.push((0,t.jsx)("div",{className:" p-2",children:a?.map(e=>(0,t.jsx)("span",{className:"inline-flex items-center rounded-md bg-slate-50 px-2.5 py-0.5 text-sm font-medium text-slate-800 ml-2",children:(0,t.jsx)(i,{value:e})},e))},e));else{let s=[];a.forEach((e,r)=>{s.push((0,t.jsx)("li",{className:"flex items-center text-slate-600 justify-between py-3 pl-3 pr-4 text-sm",children:n({data:e,parentKey:r})},r))}),l.push((0,t.jsx)("ul",{className:"divide-y divide-slate-200 rounded-md ",children:s},e))}else"object"==typeof a?l.push(n({data:a,parentKey:e})):void 0===r?l.push((0,t.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5",children:[(0,t.jsx)("dt",{className:"text-sm font-medium text-slate-700",children:(0,t.jsx)(d,{value:e},e)}),(0,t.jsx)("dd",{className:"mt-1 text-sm text-slate-900 sm:col-span-2 sm:mt-0",children:(0,t.jsx)(i,{value:a})})]},e)):l.push((0,t.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5 sm:px-6",children:[(0,t.jsx)("dt",{className:"text-sm font-medium text-slate-700",children:(0,t.jsx)(d,{value:e},e)}),(0,t.jsx)("dd",{className:"mt-1 text-sm text-slate-900 sm:col-span-2 sm:mt-0",children:(0,t.jsx)(i,{value:a})})]},e))}),(0,t.jsx)("div",{className:" bg-white px-4 py-5 ",children:(0,t.jsx)("dl",{children:l})})};e.s(["f",0,n])},77043,e=>{var t=e.i(91398),s=e.i(56206),r=e.i(69322),a=e.i(87284),l=e.i(76069);e.s(["f",0,({file:e,className:i=""})=>{let{formatMessage:d}=(0,r.X)();return(0,t.jsx)("div",{className:(0,s.U)("h-10 w-10 shrink-0",i),children:e?(0,t.jsx)(a.f,{className:"relative h-10 w-10 rounded-sm",src:e.url,width:100,height:100,alt:d({id:"image_not_available",defaultMessage:"Image not available"})}):(0,t.jsx)(l.f,{})})}])},60195,e=>{var t=e.i(91398),s=e.i(56206);e.s(["f",0,({documentationLabel:e,documentation:r=null,mainContent:a=null,sideComponents:l=null,className:i=null,children:d})=>(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:(0,s.U)("mt-5 lg:grid lg:grid-cols-3 lg:gap-6",i),children:[(0,t.jsx)("div",{className:"lg:col-span-1 mt-10 lg:mt-1",children:(0,t.jsxs)("div",{className:"px-4 sm:px-0",children:[(0,t.jsx)("h3",{className:"text-lg text-text-primary",children:e}),(0,t.jsx)("div",{className:"mt-1 text-sm text-slate-600 dark:text-slate-500",children:r}),l]})}),(0,t.jsx)("div",{className:"lg:col-span-2 lg:mt-0",children:d||a})]})})])},64479,e=>{var t=e.i(59080),s=e.i(76204);let r=t.a`
21
+ mutation ConfirmMediaUpload(
22
+ $mediaUploadTicketId: ID!
23
+ $size: Int!
24
+ $type: String!
25
+ ) {
26
+ confirmMediaUpload(
27
+ mediaUploadTicketId: $mediaUploadTicketId
28
+ size: $size
29
+ type: $type
30
+ ) {
31
+ _id
32
+ name
33
+ type
34
+ size
35
+ url
36
+ }
37
+ }
38
+ `;e.s(["f",0,(e={})=>{let[t]=(0,s.f)(r,e);return{confirmMediaUpload:async({mediaUploadTicketId:e,size:s,type:r})=>t({variables:{mediaUploadTicketId:e,size:s,type:r}})}}])},93994,e=>{let t=async(e,t)=>{let s=await fetch(t,{method:"PUT",body:e});return s.ok?Promise.resolve({}):Promise.reject(Error(s.statusText))};e.s(["f",0,t])},10576,e=>{e.s(["f",0,e=>{if(window.atob&&Uint8Array){let t=e.replace(/-/g,"+").replace(/_/g,"/"),s=t+"=".repeat((4-t.length%4)%4),r=window.atob(s),a=r.length,l=new Uint8Array(a);for(let e=0;e<a;e+=1)l[e]=r.charCodeAt(e);return l.buffer}throw Error("The atob and Uint8Array methods are not available")}])},15356,e=>{e.s(["f",0,e=>e?`${e.substr(0,6)}...${e.substr(-4,4)}`:"0x0"])},77930,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(8918),a=e.i(41158),l=e.i(42469),i=e.i(84818),d=e.i(1880),n=e.i(77043),o=e.i(93380);let c={INITIAL:"orange",PAUSED:"yellow",SUSPENDED:"blue",TERMINATED:"amber",ACTIVE:"emerald"},u=({enrollment:e,showUser:u})=>{let{formatMessage:m}=(0,s.X)(),{formatDateTime:x}=(0,i.f)();return(0,t.jsxs)(r.f.Row,{children:[(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)("div",{className:"text-sm",children:(0,t.jsx)(a.default,{href:`/enrollments?enrollmentId=${e._id}`,className:"font-medium text-slate-800 dark:text-slate-700",children:e?.enrollmentNumber||e._id?.substr(0,10)})})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:x(e.created,{dateStyle:"medium",timeStyle:"medium"})})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:e.isExpired?(0,t.jsx)(l.f,{text:m({id:"expired",defaultMessage:"Expired"}),color:"amber"}):x(e.expires,{dateStyle:"medium",timeStyle:"medium"})})}),u&&e.user&&(0,t.jsx)(r.f.Cell,{children:(0,t.jsxs)(a.default,{href:`/users?userId=${e.user._id}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)("span",{className:"inline-block h-9 w-9 rounded-full",children:(0,t.jsx)(n.f,{file:e?.user?.avatar,className:"mr-3"})}),(0,t.jsx)("span",{className:"ml-2",children:(0,o.f)(e.user)})]})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsxs)(a.default,{href:`/products?slug=${(0,d.U)(e.plan.product)}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)(n.f,{file:e?.plan?.product?.media?.[0]?.file,className:"mr-3"}),(0,t.jsx)("span",{className:"ml-2",children:e?.plan?.product?.texts?.title})]})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)(l.f,{text:e?.status,color:c[e.status],square:!0})})]})};e.s(["f",0,({enrollments:e,showUser:a=null,sortable:l=!1})=>{let{formatMessage:i}=(0,s.X)();return(0,t.jsxs)(r.f,{className:"min-w-full",children:[e?.map(e=>(0,t.jsxs)(r.f.Row,{header:!0,enablesort:l,children:[(0,t.jsx)(r.f.Cell,{sortKey:"enrollmentNumber",children:i({id:"enrollment_number",defaultMessage:"Enrollment number"})}),(0,t.jsx)(r.f.Cell,{sortKey:"created",children:i({id:"created",defaultMessage:"Created"})}),(0,t.jsx)(r.f.Cell,{children:i({id:"expires",defaultMessage:"Expires"})}),a&&(0,t.jsx)(r.f.Cell,{children:i({id:"user",defaultMessage:"User"})}),(0,t.jsx)(r.f.Cell,{children:i({id:"product",defaultMessage:"Product"})}),(0,t.jsx)(r.f.Cell,{sortKey:"status",children:i({id:"status",defaultMessage:"Status"})})]},e._id)),e?.map(e=>(0,t.jsx)(u,{showUser:a,enrollment:e},`${e?._id}-body`))]})}],77930)},21056,e=>{var t=e.i(59080),s=e.i(76204);let r=t.a`
39
+ mutation SendEnrollmentEmail($email: String!) {
40
+ sendEnrollmentEmail(email: $email) {
41
+ success
42
+ }
43
+ }
44
+ `;e.s(["f",0,()=>{let[e]=(0,s.f)(r);return{sendEnrollmentEmail:async({email:t})=>e({variables:{email:t}})}}])},44959,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(8918),a=e.i(41158),l=e.i(42469),i=e.i(93380),d=e.i(84818),n=e.i(83147),o=e.i(51782);let c=({order:e,showUser:c})=>{let{formatMessage:u}=(0,s.X)(),{formatPrice:m}=(0,n.d)(),{formatDateTime:x}=(0,d.f)();return(0,t.jsxs)(r.f.Row,{className:"group",children:[(0,t.jsx)(r.f.Cell,{children:(0,t.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,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(l.f,{color:"yellow",text:u({id:"cart",defaultMessage:"Cart"})})]})})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)(a.default,{href:`/orders?orderId=${e._id}`,className:"flex items-center text-sm dark:text-slate-300",children:x(e.ordered,{dateStyle:"short",timeStyle:"short"})})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)(a.default,{href:`/orders?orderId=${e._id}`,className:"flex items-center text-sm dark:text-slate-300",children:m(e.total)})}),c&&e.user&&(0,t.jsx)(r.f.Cell,{children:(0,t.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,t.jsx)("span",{className:"font-medium",children:(0,i.f)(e.user)})})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)(a.default,{href:`/orders?orderId=${e._id}`,className:"block",children:(0,t.jsx)(o.f,{status:e.status})})})]})};e.s(["f",0,({orders:e,showUser:a,loading:l,sortable:i})=>{let{formatMessage:d}=(0,s.X)();return(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)(r.f,{className:"min-w-full",children:[(e||[])?.map(e=>(0,t.jsxs)(r.f.Row,{header:!0,enablesort:i,children:[(0,t.jsx)(r.f.Cell,{sortKey:"orderNumber",children:d({id:"order_number",defaultMessage:"Order #"})}),(0,t.jsx)(r.f.Cell,{sortKey:"ordered",defaultSortDirection:"DESC",children:d({id:"order_date",defaultMessage:"Order date"})}),(0,t.jsx)(r.f.Cell,{children:d({id:"total",defaultMessage:"Total"})}),a&&(0,t.jsx)(r.f.Cell,{children:d({id:"user",defaultMessage:"User"})}),(0,t.jsx)(r.f.Cell,{sortKey:"status",children:d({id:"status",defaultMessage:"Status"})})]},e._id)),(e||[])?.map(e=>(0,t.jsx)(c,{order:e,showUser:a},`${e?._id}-body`))]})})}],44959)},51782,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(42469),a=e.i(60193);let l={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:i=""})=>{let{formatMessage:d}=(0,s.X)(),n={PENDING:d({id:"pending",defaultMessage:"PENDING"}),CONFIRMED:d({id:"confirmed",defaultMessage:"CONFIRMED"}),OPEN:d({id:"open",defaultMessage:"OPEN"}),FULFILLED:d({id:"fulfilled",defaultMessage:"FULFILLED"}),REJECTED:d({id:"rejected",defaultMessage:"REJECTED"})},o=n?.[e]??d({id:"cart",defaultMessage:"Cart"});return l?.[e],(0,t.jsx)(r.f,{text:o,color:a.v[e],square:!0,className:`uppercase ${i}`})}])},58668,e=>{var t=e.i(91398),s=e.i(91788);class r extends s.default.Component{constructor(e){super(e),this.state={hasError:!1,error:null}}static getDerivedStateFromError(e){return{hasError:!0,error:e}}componentDidCatch(e,t){console.error(`Plugin "${this.props.pluginName}" crashed in component "${this.props.componentName}":`,e,t)}render(){return this.state.hasError?(0,t.jsx)("div",{className:"rounded-lg border border-danger bg-danger-surface p-4 my-2",children:(0,t.jsxs)("div",{className:"flex items-start justify-between",children:[(0,t.jsxs)("div",{children:[(0,t.jsxs)("p",{className:"text-sm font-medium text-danger",children:['Plugin "',this.props.pluginName,'" encountered an error']}),(0,t.jsxs)("p",{className:"text-xs text-text-muted mt-1",children:["Component: ",this.props.componentName]}),this.state.error&&(0,t.jsxs)("details",{className:"mt-2",children:[(0,t.jsx)("summary",{className:"text-xs text-text-muted cursor-pointer hover:text-text-secondary",children:"Error details"}),(0,t.jsxs)("pre",{className:"mt-1 text-xs text-text-muted whitespace-pre-wrap break-words font-mono bg-surface p-2 rounded max-h-32 overflow-auto",children:[this.state.error.message,this.state.error.stack&&`
45
+ ${this.state.error.stack.split("\n").slice(1,4).join("\n")}`]})]})]}),(0,t.jsxs)("button",{onClick:()=>this.setState({hasError:!1,error:null}),className:"ml-4 shrink-0 inline-flex items-center gap-1 rounded-md border border-border bg-surface px-3 py-1.5 text-xs font-medium text-text-primary hover:bg-surface-raised transition-colors",children:[(0,t.jsx)("svg",{className:"h-3 w-3",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:2,children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0l3.181 3.183a8.25 8.25 0 0013.803-3.7M4.031 9.865a8.25 8.25 0 0113.803-3.7l3.181 3.182"})}),"Retry"]})]})}):this.props.children}}e.s(["f",0,r])},70475,e=>{var t=e.i(91398),s=e.i(91788),r=e.i(13534),a=e.i(26539),l=e.i(58668),i=e.i(53576);e.s(["f",0,({slot:e,children:d,...n})=>{let{getSlotPlugins:o,getComponent:c,loading:u}=(0,r.L)();if(u)return null;let m=o(e);return 0===m.length?null:(0,t.jsx)(t.Fragment,{children:m.map(({manifest:r,config:o})=>{let u=o.component||o.components?.list,m=c(r.name,u);if(!m)return console.warn(`Plugin "${r.name}": component "${u}" not found in bundle`),null;let x={pluginName:r.name,version:r.version,slotId:e,config:o};return(0,t.jsx)(l.f,{pluginName:r.name,componentName:u,children:(0,t.jsx)(a.h,{value:x,children:(0,t.jsx)(s.Suspense,{fallback:(0,t.jsx)(i.f,{}),children:d?d(m,o,r):(0,t.jsx)(m,{...n})})})},`${r.name}-${u}`)})})}])},66859,39833,84339,87213,e=>{var t=e.i(91398),s=e.i(20287),s=s,r=e.i(26847);e.s(["f",()=>r.f],39833);var r=r,a=e.i(63039);e.s(["f",()=>a.f],84339);var a=a,l=e.i(69322);e.i(51523);var i=e.i(19518),d=e.i(28401),n=e.i(56206),o=e.i(21623),c=e.i(24557),u=e.i(84818),m=e.i(15971),x=e.i(6607),f=e.i(59080),h=e.i(76204);let p=f.a`
46
+ mutation RemoveProductReview($productReviewId: ID!) {
47
+ removeProductReview(productReviewId: $productReviewId) {
48
+ _id
49
+ }
50
+ }
51
+ `;var g=e.i(42469),b=e.i(87284),v=e.i(93380);let j=f.a`
52
+ mutation AddProductReviewVote(
53
+ $productReviewId: ID!
54
+ $type: ProductReviewVoteType!
55
+ $meta: JSON
56
+ $forceLocale: Locale
57
+ ) {
58
+ addProductReviewVote(
59
+ productReviewId: $productReviewId
60
+ type: $type
61
+ meta: $meta
62
+ ) {
63
+ _id
64
+ }
65
+ }
66
+ `,y=f.a`
67
+ mutation RemoveProductReviewVote(
68
+ $productReviewId: ID!
69
+ $type: ProductReviewVoteType!
70
+ $forceLocale: Locale
71
+ ) {
72
+ removeProductReviewVote(productReviewId: $productReviewId, type: $type) {
73
+ _id
74
+ }
75
+ }
76
+ `;var w=e.i(58971),N=e.i(51870),k=e.i(69211),C=e.i(21128),E=e.i(82226),M=e.i(60741),R=e.i(54879);let _=({maxLength:e,validators:s=[],...r})=>{let a=(0,M.f)({validators:[...s,e&&(0,E.f)(e)],...r});return(0,t.jsx)(R.f,{...a,children:(0,t.jsx)("textarea",{className:(0,n.U)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-400 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 border-border-default px-4 py-2.5 text-sm text-slate-900 placeholder-slate-400 shadow-xs placeholder:text-slate-400 focus:outline-hidden focus:ring-2 focus:ring-focus-ring",a.className,{"border-rose-700 placeholder:text-rose-300 placeholder-rose-300":!!a.error}),disabled:a.disabled,id:a.name,name:a.name,rows:a.rows||10,onChange:a.onChange,onBlur:a.onBlur,placeholder:a.placeholder,autoComplete:a.autoComplete||"off",value:a.value})})};e.s(["f",0,_],87213);var I=e.i(98949);let $=({onSubmit:e,onSubmitSuccess:s=async()=>!0})=>{let{formatMessage:r}=(0,l.X)(),a=r({id:"product_review_added",defaultMessage:"Review added successfully!"}),i=(0,I.f)({submit:e,successMessage:a,onSubmitSuccess:s,initialValues:{message:""}});return(0,t.jsxs)(k.f,{form:i,children:[(0,t.jsx)(_,{rows:3,required:!0,name:"message",id:"message",label:r({id:"message",defaultMessage:"Message"})}),(0,t.jsx)("div",{className:"-mx-6 -mb-6 mt-6 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)(C.f,{label:r({id:"report-submit",defaultMessage:"Submit"})})})]})};var A=e.i(41215);let S="UPVOTE",P="DOWNVOTE",U="REPORT";e.s(["f",0,({review:e,enableDelete:f=!0,showProduct:k=!1})=>{let{formatMessage:C}=(0,l.X)(),{currentUser:E}=(0,N.f)(),{formatDateTime:M}=(0,u.f)(),{setModal:R}=(0,x.f)(),{addProductReviewVote:_}=(()=>{let[e]=(0,h.f)(j);return{addProductReviewVote:async({productReviewId:t,type:s,meta:r})=>e({variables:{productReviewId:t,type:s,meta:r},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),{removeProductReviewVote:I}=(()=>{let[e]=(0,h.f)(y);return{removeProductReviewVote:async({productReviewId:t,type:s})=>e({variables:{productReviewId:t,type:s},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),{hasRole:T,isAdmin:D}=(0,w.f)(),O=t=>!!e.ownVotes.find(e=>e.type===t),L=async s=>{let r=async({message:t})=>{try{return await _({productReviewId:e._id,type:s,meta:{message:t}}),{success:!0}}catch(e){if(e instanceof A.f)return{success:!1,error:e?.message};return{success:!1,error:e}}};O(s)?await I({productReviewId:e._id,type:s}):s===U?await R((0,t.jsx)($,{onSubmit:r,onSubmitSuccess:async()=>R(null)})):await _({productReviewId:e._id,type:s})},{removeProductReview:V}=(()=>{let[e]=(0,h.f)(p);return{removeProductReview:async({productReviewId:t})=>e({variables:{productReviewId:t},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),B=!e.deleted&&T(i.C.VoteProductReview)&&f&&e?.author?._id===E?._id||D()&&!e.deleted,F=!e.deleted&&T(i.C.VoteProductReview),K=e?.product,q=async e=>{await R((0,t.jsx)(m.f,{onCancelClick:async()=>R(""),message:C({id:"delete_review_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this review? "}),onOkClick:async()=>{R(""),await V({productReviewId:e}),d.toast.success(C({id:"review_deleted",defaultMessage:"Review deleted successfully"}))},okText:C({id:"delete_review",defaultMessage:"Delete review"})}))};return(0,t.jsxs)("div",{className:(0,n.U)("mb-4 rounded-lg shadow-sm bg-surface p-4",{"border-rose-200 bg-rose-50 dark:bg-rose-950":e.deleted},{"border-border-subtle":!e.deleted}),children:[(0,t.jsxs)("div",{className:"flex items-center",children:[k?(0,t.jsx)(b.f,{src:K?.media[0]?.file?.url,alt:e?.author?.name||e?.author?.username,width:48,height:48,className:"h-12 w-12 rounded-full aspect-square object-cover object-center"}):(0,t.jsx)(b.f,{src:e?.author?.avatar?.url,alt:e?.author?.name||e?.author?.username,width:48,height:48,className:"h-12 w-12 rounded-full aspect-square object-cover object-center"}),(0,t.jsxs)("div",{className:"ml-4 flex-1",children:[(0,t.jsx)("h4",{className:"text-sm font-semibold text-text-primary",children:k?K?.texts?.title||(0,t.jsxs)(t.Fragment,{children:[K._id," ",(0,t.jsx)(g.f,{color:"yellow",text:C({id:"title_not_found",defaultMessage:"Title not found"})})]}):(0,v.f)(e?.author)}),(0,t.jsx)("p",{className:"text-xs text-text-muted",children:(0,t.jsx)("time",{dateTime:e.updated||e.created,children:M(e.updated||e.created,{dateStyle:"short",timeStyle:"short"})})})]}),(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsxs)("button",{type:"button",disabled:!F,onClick:async()=>L(S),className:`flex items-center gap-1 px-2 py-1 rounded-md transition-colors disabled:opacity-50 ${O(S)?"bg-emerald-100 dark:bg-emerald-900 hover:bg-emerald-200 dark:hover:bg-emerald-800":"hover:bg-surface-raised"}`,children:[(0,t.jsx)(a.f,{className:`h-5 w-5 ${O(S)?"text-emerald-600 dark:text-emerald-400":"text-text-muted"}`}),(0,t.jsx)("span",{className:`text-sm font-medium ${O(S)?"text-emerald-700 dark:text-emerald-300":"text-text-secondary"}`,children:e.upVote})]}),(0,t.jsxs)("button",{type:"button",disabled:!F,onClick:async()=>L(P),className:`flex items-center gap-1 px-2 py-1 rounded-md transition-colors disabled:opacity-50 ${O(P)?"bg-rose-100 dark:bg-rose-900 hover:bg-rose-200 dark:hover:bg-rose-800":"hover:bg-surface-raised"}`,children:[(0,t.jsx)(r.f,{className:`h-5 w-5 ${O(P)?"text-danger":"text-text-muted"}`}),(0,t.jsx)("span",{className:`text-sm font-medium ${O(P)?"text-rose-700 dark:text-rose-300":"text-text-secondary"}`,children:e.downVote})]})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2 ml-4",children:[T(i.C.VoteProductReview)&&(0,t.jsx)("button",{type:"button",disabled:!F,onClick:async()=>L(U),className:`p-2 rounded-md transition-colors disabled:opacity-50 ${O(U)?"bg-orange-100 dark:bg-orange-900 hover:bg-orange-200 dark:hover:bg-orange-800":"hover:bg-surface-raised"}`,title:"Report review",children:(0,t.jsx)(s.f,{className:(0,n.U)("h-4 w-4",{"text-orange-600 dark:text-orange-400":O(U),"text-text-muted":!O(U)})})}),B&&(0,t.jsx)(o.f,{variant:"danger",size:"xs",rounded:"full",icon:(0,t.jsx)(c.f,{className:"h-5 w-5"}),onClick:()=>q(e._id)}),e.deleted&&(0,t.jsx)(g.f,{text:C({id:"deleted_text",defaultMessage:"Deleted"}),color:"red",className:"ml-2"})]})]}),(0,t.jsxs)("div",{className:"mt-4 space-y-3",children:[(0,t.jsx)("h3",{className:"text-base font-semibold text-text-primary",children:e.title}),(0,t.jsx)("p",{className:"text-sm text-text-secondary leading-relaxed",children:e.review})]})]},e._id)}],66859)},54529,e=>{var t=e.i(59080);let s=t.a`
77
+ fragment ProductBriefFragment on Product {
78
+ texts(forceLocale: $forceLocale) {
79
+ _id
80
+ slug
81
+ title
82
+ subtitle
83
+ description
84
+ vendor
85
+ brand
86
+ labels
87
+ locale
88
+ }
89
+ _id
90
+ sequence
91
+ status
92
+ tags
93
+ sequence
94
+ updated
95
+ published
96
+ media {
97
+ _id
98
+ tags
99
+ file {
100
+ _id
101
+ url
102
+ }
103
+ }
104
+ ... on BundleProduct {
105
+ proxies {
106
+ __typename
107
+ }
108
+ }
109
+ ... on SimpleProduct {
110
+ catalogPrice {
111
+ amount
112
+ currencyCode
113
+ }
114
+ proxies {
115
+ __typename
116
+ }
117
+ }
118
+ ... on PlanProduct {
119
+ catalogPrice {
120
+ amount
121
+ currencyCode
122
+ }
123
+ proxies {
124
+ __typename
125
+ }
126
+ }
127
+ }
128
+ `;e.s(["f",0,s])},21649,e=>{var t=e.i(59080);let s=t.a`
129
+ fragment TokenFragment on Token {
130
+ _id
131
+ walletAddress
132
+ status
133
+ quantity
134
+ contractAddress
135
+ chainId
136
+ tokenSerialNumber
137
+ invalidatedDate
138
+ expiryDate
139
+ ercMetadata
140
+ order {
141
+ _id
142
+ orderNumber
143
+ }
144
+ accessKey
145
+ isInvalidateable
146
+ }
147
+ `;e.s(["f",0,s])},71805,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(8918),a=e.i(41158),l=e.i(42469),i=e.i(77043),d=e.i(93380),n=e.i(1880),o=e.i(84818),c=e.i(60193);let u=({quotation:e,showUser:u})=>{let{formatMessage:m}=(0,s.X)(),{formatDateTime:x}=(0,o.f)();return(0,t.jsxs)(r.f.Row,{children:[(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:(0,t.jsx)(a.default,{href:`/quotations?quotationId=${e?._id}`,className:"font-medium text-slate-800 dark:text-slate-700",children:e?.quotationNumber||e?._id})})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:x(e.created,{dateStyle:"short",timeStyle:"short"})})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm ",children:e.isExpired?(0,t.jsx)(l.f,{text:m({id:"expired",defaultMessage:"Expired"}),color:"amber"}):x(e?.expires,{dateStyle:"short",timeStyle:"short"})})}),u&&(0,t.jsx)(r.f.Cell,{children:(0,t.jsxs)(a.default,{href:`/users?userId=${e?.user._id}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)(i.f,{file:e?.user?.avatar,className:"mr-2"}),(0,t.jsx)("span",{className:"font-medium ml-2",children:(0,d.f)(e?.user)})]})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)("div",{children:(0,t.jsxs)(a.default,{href:`/products?slug=${(0,n.U)(e.product)}`,className:"flex items-center text-sm text-slate-800 dark:text-slate-700 hover:text-decoration",children:[(0,t.jsx)(i.f,{file:e.product?.media[0]?.file,className:"mr-3"}),(0,t.jsx)("span",{className:"font-medium ml-2",children:e?.product.texts.title})]})})}),(0,t.jsx)(r.f.Cell,{children:(0,t.jsx)(l.f,{text:e?.status,color:c.L[e?.status],square:!0})})]})};e.s(["f",0,({quotations:e,sortable:a=!1,showUser:l=!1})=>{let{formatMessage:i}=(0,s.X)();return(0,t.jsxs)(r.f,{className:"min-w-full",children:[e?.map(e=>(0,t.jsxs)(r.f.Row,{header:!0,enablesort:a,children:[(0,t.jsx)(r.f.Cell,{sortKey:"quotationNumber",children:i({id:"quotation_number",defaultMessage:"Quotation number"})}),(0,t.jsx)(r.f.Cell,{sortKey:"created",children:i({id:"created",defaultMessage:"Created"})}),(0,t.jsx)(r.f.Cell,{sortKey:"expires",children:i({id:"expires",defaultMessage:"Expires"})}),l&&(0,t.jsx)(r.f.Cell,{children:i({id:"user",defaultMessage:"User"})}),(0,t.jsx)(r.f.Cell,{children:i({id:"product",defaultMessage:"Product"})}),(0,t.jsx)(r.f.Cell,{sortKey:"status",children:i({id:"status",defaultMessage:"Status"})})]},e._id)),e?.map(e=>(0,t.jsx)(u,{showUser:l,quotation:e},`${e?._id}-body`))]})}],71805)},27572,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},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":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M15.988 3.012A2.25 2.25 0 0 1 18 5.25v6.5A2.25 2.25 0 0 1 15.75 14H13.5V7A2.5 2.5 0 0 0 11 4.5H8.128a2.252 2.252 0 0 1 1.884-1.488A2.25 2.25 0 0 1 12.25 1h1.5a2.25 2.25 0 0 1 2.238 2.012ZM11.5 3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v.25h-3v-.25Z",clipRule:"evenodd"}),t.createElement("path",{fillRule:"evenodd",d:"M2 7a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7Zm2 3.25a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm0 3.5a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))});e.s(["f",0,s],27572)},64710,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},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":s},r),e?t.createElement("title",{id:s},e):null,t.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,s],64710)},76929,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},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":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{d:"M12 4.467c0-.405.262-.75.559-1.027.276-.257.441-.584.441-.94 0-.828-.895-1.5-2-1.5s-2 .672-2 1.5c0 .362.171.694.456.953.29.265.544.6.544.994a.968.968 0 0 1-1.024.974 39.655 39.655 0 0 1-3.014-.306.75.75 0 0 0-.847.847c.14.993.242 1.999.306 3.014A.968.968 0 0 1 4.447 10c-.393 0-.729-.253-.994-.544C3.194 9.17 2.862 9 2.5 9 1.672 9 1 9.895 1 11s.672 2 1.5 2c.356 0 .683-.165.94-.441.276-.297.622-.559 1.027-.559a.997.997 0 0 1 1.004 1.03 39.747 39.747 0 0 1-.319 3.734.75.75 0 0 0 .64.842c1.05.146 2.111.252 3.184.318A.97.97 0 0 0 10 16.948c0-.394-.254-.73-.545-.995C9.171 15.693 9 15.362 9 15c0-.828.895-1.5 2-1.5s2 .672 2 1.5c0 .356-.165.683-.441.94-.297.276-.559.622-.559 1.027a.998.998 0 0 0 1.03 1.005c1.337-.05 2.659-.162 3.961-.337a.75.75 0 0 0 .644-.644c.175-1.302.288-2.624.337-3.961A.998.998 0 0 0 16.967 12c-.405 0-.75.262-1.027.559-.257.276-.584.441-.94.441-.828 0-1.5-.895-1.5-2s.672-2 1.5-2c.362 0 .694.17.953.455.265.291.601.545.995.545a.97.97 0 0 0 .976-1.024 41.159 41.159 0 0 0-.318-3.184.75.75 0 0 0-.842-.64c-1.228.164-2.473.271-3.734.319A.997.997 0 0 1 12 4.467Z"}))});e.s(["f",0,s],76929)},94330,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},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":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M6 5v1H4.667a1.75 1.75 0 0 0-1.743 1.598l-.826 9.5A1.75 1.75 0 0 0 3.84 19H16.16a1.75 1.75 0 0 0 1.743-1.902l-.826-9.5A1.75 1.75 0 0 0 15.333 6H14V5a4 4 0 0 0-8 0Zm4-2.5A2.5 2.5 0 0 0 7.5 5v1h5V5A2.5 2.5 0 0 0 10 2.5ZM7.5 10a2.5 2.5 0 0 0 5 0V8.75a.75.75 0 0 1 1.5 0V10a4 4 0 0 1-8 0V8.75a.75.75 0 0 1 1.5 0V10Z",clipRule:"evenodd"}))});e.s(["f",0,s],94330)},61113,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},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":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M10.868 2.884c-.321-.772-1.415-.772-1.736 0l-1.83 4.401-4.753.381c-.833.067-1.171 1.107-.536 1.651l3.62 3.102-1.106 4.637c-.194.813.691 1.456 1.405 1.02L10 15.591l4.069 2.485c.713.436 1.598-.207 1.404-1.02l-1.106-4.637 3.62-3.102c.635-.544.297-1.584-.536-1.65l-4.752-.382-1.831-4.401Z",clipRule:"evenodd"}))});e.s(["f",0,s],61113)},91412,e=>{var t=e.i(86173);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])},67912,e=>{var t=e.i(37224);e.s(["f",()=>t.f])}])})();
@@ -0,0 +1 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,93594,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),Object.defineProperty(r,"default",{enumerable:!0,get:function(){return p}});let n=e.r(41705),o=e.r(91398),i=n._(e.r(91788)),l=n._(e.r(80963)),s={400:"Bad Request",404:"This page could not be found",405:"Method Not Allowed",500:"Internal Server Error"};function a({req:t,res:r,err:n}){let o,i=r&&r.statusCode?r.statusCode:n?n.statusCode:404;if("u">typeof window)o=window.location.hostname;else if(t){let{getRequestMeta:r}=e.r(44063),n=r(t,"initURL");n&&(o=new URL(n).hostname)}return{statusCode:i,hostname:o}}let d={fontFamily:'system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji"',height:"100vh",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},u={lineHeight:"48px"},c={display:"inline-block",margin:"0 20px 0 0",paddingRight:23,fontSize:24,fontWeight:500,verticalAlign:"top"},f={fontSize:14,fontWeight:400,lineHeight:"28px"},h={display:"inline-block"};class p extends i.default.Component{static{this.displayName="ErrorPage"}static{this.getInitialProps=a}static{this.origGetInitialProps=a}render(){let{statusCode:e,withDarkMode:t=!0}=this.props,r=this.props.title||s[e]||"An unexpected error has occurred";return(0,o.jsxs)("div",{style:d,children:[(0,o.jsx)(l.default,{children:(0,o.jsx)("title",{children:e?`${e}: ${r}`:"Application error: a client-side exception has occurred"})}),(0,o.jsxs)("div",{style:u,children:[(0,o.jsx)("style",{dangerouslySetInnerHTML:{__html:`body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}${t?"@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}":""}`}}),e?(0,o.jsx)("h1",{className:"next-error-h1",style:c,children:e}):null,(0,o.jsx)("div",{style:h,children:(0,o.jsxs)("h2",{style:f,children:[this.props.title||e?r:(0,o.jsxs)(o.Fragment,{children:["Application error: a client-side exception has occurred"," ",!!this.props.hostname&&(0,o.jsxs)(o.Fragment,{children:["while loading ",this.props.hostname]})," ","(see the browser console for more information)"]}),"."]})})]})]})}}("function"==typeof r.default||"object"==typeof r.default&&null!==r.default)&&void 0===r.default.__esModule&&(Object.defineProperty(r.default,"__esModule",{value:!0}),Object.assign(r.default,r),t.exports=r.default)},44063,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0});var n={NEXT_REQUEST_META:function(){return i},addRequestMeta:function(){return a},getRequestMeta:function(){return l},removeRequestMeta:function(){return d},setRequestMeta:function(){return s}};for(var o in n)Object.defineProperty(r,o,{enumerable:!0,get:n[o]});let i=Symbol.for("NextInternalRequestMeta");function l(e,t){let r=e[i]||{};return"string"==typeof t?r[t]:r}function s(e,t){return e[i]=t,t}function a(e,t,r){let n=l(e);return n[t]=r,s(e,n)}function d(e,t){let r=l(e);return delete r[t],s(e,r)}}])})();
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[95789,e=>{var t=e.i(91398),r=e.i(56206),s=e.i(88566),l=e.i(25575),a=e.i(91788);let n=({header:e,body:n,headerCSS:d="",bodyCSS:i="",itemContainerCSS:o="",itemindex:c=1,hideChevron:u=!1})=>{let[x,f]=(0,a.useState)(!1);return(0,t.jsxs)("div",{className:(0,r.U)("mt-3",o),"data-itemindex":c,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>f(!x),className:(0,r.U)("relative cursor-pointer border dark:border-slate-800 bg-surface-input text-text-muted hover:bg-surface-raised w-full max-w-full overflow-hidden",d),children:[(0,t.jsx)("div",{className:"w-full",children:e}),!u&&(0,t.jsx)("span",{className:"px-2",children:x?(0,t.jsx)(l.f,{className:"h-5 w-5"}):(0,t.jsx)(s.f,{className:"h-5 w-5"})})]}),x?(0,t.jsx)("div",{className:(0,r.U)("rounded-lg sm:p-4 xl:p-10 relative overflow-visible",i),children:n}):""]})};e.s(["f",0,({data:e,containerCSS:s="",headerCSS:l="",bodyCSS:a="",itemContainerCSS:d="",hideChevron:i=!1,...o})=>(0,t.jsx)("div",{className:(0,r.U)("my-3",s),...o,children:e.map(({header:e,body:r},s)=>(0,t.jsx)(n,{itemindex:s,header:e,body:r,headerCSS:l,bodyCSS:a,itemContainerCSS:d,hideChevron:i},s))})],95789)},50595,e=>{var t=e.i(91398),r=e.i(41158),s=e.i(3828),l=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:a=null,depth:n=null})=>{let d=(0,s.useRouter)(),{formatMessage:i}=(0,l.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"},c=d.asPath?.split("/")?.filter((e,t)=>d.asPath?.split("/")?.indexOf(e)===t);if(1===c.length)return null;let u="";n&&c.splice(n),e&&(c[c.length-1]=e);let x=c?.map(t=>{if(u+=`${t}/`,!t)return{name:i({id:"home",defaultMessage:"Home"}),path:"/"};let r=t?.split("?")[0],s=e?r:r.replace(/-/g," "),l=o[r];return{name:l?i({id:l,defaultMessage:s}):decodeURIComponent(s),path:u.replace(/.$/,"")}}),f=x?.length>1?x[x.length-2]:null;return(0,t.jsxs)(t.Fragment,{children:[f&&(0,t.jsx)("nav",{className:"mb-4 flex sm:hidden","aria-label":"Breadcrumb",children:(0,t.jsxs)(r.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,t.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,t.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,t.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,t.jsx)("ol",{className:"flex items-center space-x-4",children:x?.map((e,s)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==s&&(0,t.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,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)(r.default,{href:e.path,className:"text-sm font-medium capitalize text-text-muted hover:text-text-primary focus:outline-hidden focus:ring-2 focus:ring-focus-ring rounded-md px-1 py-1",children:s===x.length-1&&a?a:e.name})]})},e.path))})})]})}])},21623,e=>{var t=e.i(91398),r=e.i(56206);e.s(["f",0,({text:e,children:s,onClick:l,className:a="",disabled:n=!1,id:d="",variant:i="primary",size:o="md",type:c="button",loading:u=!1,icon:x,iconRight:f,fullWidth:m=!1,rounded:h="md",ariaLabel:p,...g})=>{let b=s||e,v=(x||f)&&b?"gap-2":"";return(0,t.jsx)("button",{id:d,type:c,disabled:n||u,onClick:l,"aria-label":p,className:(0,r.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"}[i],v,{"w-full":m},a),...g,children:u?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),b]}):(0,t.jsxs)(t.Fragment,{children:[x,b,f]})})}])},2194,e=>{var t=e.i(91398),r=e.i(92802),r=r,s=e.i(56206),l=e.i(69322);e.s(["f",0,({message:e,className:a="",Icon:n=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",a),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:n||(0,t.jsx)(r.f,{className:"h-6 w-6"})}),(0,t.jsx)(l.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)},25327,e=>{var t=e.i(91398),r=e.i(5205),s=e.i(41158),l=e.i(69322),a=e.i(37369),n=e.i(21623);e.s(["f",0,({headerText:e=null,onEdit:d=null,onDelete:i=null,children:o=null,title:c=null,addPath:u=null,addButtonText:x=null})=>{let{formatMessage:f}=(0,l.X)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{children:(0,t.jsxs)("title",{children:["Unchained AdminUI - ",c||e," "]})}),(0,t.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,t.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[o,u&&(0,t.jsx)(s.default,{href:u,children:(0,t.jsx)(n.f,{variant:"secondary",icon:(0,t.jsx)(a.f,{className:"h-5 w-5"}),text:x||f({id:"add",defaultMessage:"Add"})})}),d&&(0,t.jsx)(n.f,{variant:"secondary",onClick:d,text:f({id:"edit",defaultMessage:"Edit"})}),i&&(0,t.jsx)(n.f,{variant:"danger",onClick:i,text:f({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},8918,e=>{var t=e.i(91398),r=e.i(91788),s=e.i(56206),l=e.i(69322),a=e.i(88566),n=e.i(25575),d=e.i(3828),i=e.i(83147);let o=({onSort:e,sortDirection:r})=>r?"ASC"===r?(0,t.jsx)(n.f,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,t.jsx)(a.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 c=e.i(2194);let u=e=>{let t=[],s=[],l=[];return r.default.Children.forEach(e.children,e=>{e?.props?.header?t.push(e):e?.props?.footer?l.push(e):s.push(e)}),{header:t,footer:l,body:s}},x=({className:e="",...a})=>{let[n,d]=(0,r.useState)(u(a)),{formatMessage:i}=(0,l.X)(),o={...n,header:r.default.Children.map(n.header,e=>r.default.cloneElement(e))};return(0,r.useEffect)(()=>{d(u(a))},[a.children]),o.header.length||o.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),...a,children:[(0,t.jsx)("thead",{className:"hidden sm:table-header-group bg-surface-raised text-sm text-text-secondary",children:o.header}),o.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:o.body}):null,o.footer.length?(0,t.jsx)("tfoot",{children:o.footer}):null]}):(0,t.jsx)(c.f,{message:i({id:"data",defaultMessage:"Data"})})};x.Row=({className:e="",children:l=[],header:a=!1,enablesort:n=!1,...d})=>{let i=r.default.Children.map(l,e=>r.default?.cloneElement(e||(0,t.jsx)("span",{}),{header:a,enablesort:n}));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),...d,children:i})},x.Cell=({className:e="",header:r=!1,enablesort:l=!1,children:a,sortKey:n=null,defaultSortDirection:c=null,...u})=>{let x=(0,d.useRouter)(),f=(0,i.v)(x.query?.sort),m=r?"th":"td";return(0,t.jsx)(m,{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),...u,children:(0,t.jsxs)("div",{className:"flex items-center",children:[a,"th"===m&&l&&n&&(0,t.jsx)(o,{onSort:e=>{var t;let r;e.preventDefault(),((t=f[n])?"ASC"===t?"DESC":null:"ASC")||!f[n]?r={...f,[n]:"ASC"===f[n]?"DESC":"ASC"}:(delete f[n],r=f);let s=Object.entries(r).map(([e,t])=>[e,t].join("_")).join(","),{sort:l,...a}=x.query,d=Object.keys(a).map(e=>[e,a[e]].join("=")).join("&"),o=0===Object.keys(a).length?`${x.basePath}?sort=${s}`:`${x.basePath}?${d}&sort=${s}`;s?x.push(o):x.push({query:(0,i._)(a)})},sortDirection:Object.keys(f).length?f[n]:c})]})})},e.s(["f",0,x],8918)},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)}})])},71701,e=>{var t=e.i(91398),r=e.i(5432),s=e.i(25327),l=e.i(50595),a=e.i(69322),n=e.i(8918),d=e.i(41158),i=e.i(84818),o=e.i(83147),c=e.i(3828),u=e.i(95789),x=e.i(21623);e.s(["default",0,()=>{let{formatMessage:e}=(0,a.X)(),f={dateStyle:"short",timeStyle:"short"},{formatDateTime:m}=(0,i.f)(),h=(0,c.useRouter)(),{query:p,pathname:g}=h,b=(0,o.R)(p?.sort),v=p?.workId,j=(0,r.f)({sortOptions:b,queryString:v,formatDateTime:m}),y=()=>{let{workId:e,...t}=p;h.push({pathname:g,query:t})},w=(j?.exports||[]).map(r=>({header:(0,t.jsxs)("div",{className:"flex flex-1 justify-between items-center px-4 py-2 text-sm",children:[(0,t.jsxs)("div",{className:"flex flex-col items-start text-left",children:[(0,t.jsxs)("span",{className:"text-xs text-slate-400",children:[e({id:"id",defaultMessage:"ID"})," ",r.id.slice(-6).toUpperCase()]}),(0,t.jsx)("span",{className:"font-bold text-slate-700 dark:text-slate-100",children:r.type})]}),(0,t.jsxs)("div",{className:"flex flex-col items-start text-left",children:[(0,t.jsx)("span",{className:"text-text-secondary",children:m(r.finished,f)}),(0,t.jsx)("span",{className:"text-xs text-slate-400",children:e({id:"exported",defaultMessage:"Exported"})})]}),(0,t.jsxs)("div",{className:"bg-blue-50 dark:bg-slate-800 text-blue-600 dark:text-blue-400 px-3 py-1 rounded-full text-xs font-bold",children:[r.files.length," ",e({id:"files",defaultMessage:"Files"})]})]}),body:(0,t.jsxs)(n.f,{className:"min-w-full",children:[(0,t.jsxs)(n.f.Row,{header:!0,children:[(0,t.jsx)(n.f.Cell,{children:e({id:"file",defaultMessage:"File"})}),(0,t.jsx)(n.f.Cell,{children:e({id:"expires",defaultMessage:"Expires"})}),(0,t.jsx)(n.f.Cell,{children:" "})]}),r.files.map(r=>(0,t.jsxs)(n.f.Row,{children:[(0,t.jsx)(n.f.Cell,{className:"font-medium",children:r.name.replace(/([A-Z])/g," $1").trim()}),(0,t.jsx)(n.f.Cell,{className:"text-red-500 dark:text-red-400",children:m(r.expiresAt,f)}),(0,t.jsx)(n.f.Cell,{children:(0,t.jsx)(d.default,{href:r.url,target:"_blank",rel:"noopener noreferrer",className:"text-blue-600 hover:text-blue-800 dark:text-blue-400 font-bold underline",children:e({id:"download",defaultMessage:"Download"})})})]},r.url))]})}));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.f,{depth:3,currentPageTitle:e({id:"recent_exports",defaultMessage:"Recent exports"})}),(0,t.jsxs)("div",{className:"flex justify-between items-end mb-4",children:[(0,t.jsx)(s.f,{title:e({id:"recent_exports_page_title",defaultMessage:"{count, plural, one {# Export} other {# Exports}}"},{count:j?.count||0}),headerText:e({id:"recent_exports_page_title",defaultMessage:"{count, plural, one {# Export} other {# Exports}}"},{count:j?.count||0})}),v&&(0,t.jsx)(x.f,{onClick:y,children:e({id:"show_all_exports",defaultMessage:"Show all exports"})})]}),j?.count?(0,t.jsx)(u.f,{data:w,headerCSS:"flex items-center rounded-lg shadow-sm",bodyCSS:"bg-surface/50 rounded-b-lg border-x border-b dark:border-slate-800"}):(0,t.jsxs)("div",{className:"p-10 text-center border-2 border-dashed rounded-xl",children:[(0,t.jsx)("p",{className:"text-slate-500",children:e({id:"no_active_exports_found",defaultMessage:"No active files found or all links have expired."})}),v&&(0,t.jsx)("button",{onClick:y,className:"mt-4 text-blue-600 underline",children:e({id:"clear_filter",defaultMessage:"Clear filter"})})]})]})}])},88566,25575,e=>{var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},l){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:l,"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},l){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:l,"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)},37369,e=>{var t=e.i(84985);e.s(["f",()=>t.f])}],94983,(e,t,r)=>{let s="/exports";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(71701)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})}]);
@@ -0,0 +1,5 @@
1
+ __turbopack_load_page_chunks__("/delivery-provider", [
2
+ "static/chunks/2d9lzme_uzwvq.js",
3
+ "static/chunks/0xqtemh7t38y9.js",
4
+ "static/chunks/turbopack-2c3mg3r-05n1w.js"
5
+ ])
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,7798,(e,t,s)=>{let a="/external";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(85004)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([a])})},85004,e=>{"use strict";var t=e.i(91398),s=e.i(3828),a=e.i(69322),r=e.i(41158);e.s(["default",0,()=>{let e=(0,s.useRouter)(),{formatMessage:i}=(0,a.X)(),l=e.query?.url;return"string"==typeof l&&""!==l.trim()?(0,t.jsx)("iframe",{src:l,title:"External Content",id:"external-page"}):(0,t.jsxs)("div",{className:"text-center",children:[(0,t.jsx)("h1",{className:"mt-2 text-4xl font-extrabold tracking-tight text-rose-500 dark:text-slate-200 sm:text-5xl",children:i({id:"invalid_url",defaultMessage:"Invalid page url"})}),(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsxs)(r.default,{href:"/",className:"text-base font-medium text-slate-950 dark:text-slate-800 hover:text-slate-900 dark:hover:text-slate-400",children:[i({id:"go_back_home",defaultMessage:"Go back home"}),(0,t.jsx)("span",{"aria-hidden":"true",children:" →"})]})})]})}])}]);
@@ -0,0 +1,95 @@
1
+ (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,50595,e=>{var t=e.i(91398),r=e.i(41158),a=e.i(3828),s=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:l=null,depth:o=null})=>{let n=(0,a.useRouter)(),{formatMessage:i}=(0,s.X)(),u={home:"home",products:"products",orders:"orders",users:"users",assortments:"assortments",filters:"filters",tokens:"tokens",quotations:"quotations",enrollments:"enrollments",activities:"activities",works:"work_queue",events:"events",currency:"currencies",country:"countries",language:"languages","delivery-provider":"delivery_providers","payment-provider":"payment_providers","warehousing-provider":"warehousing_provider",system:"system",account:"account",new:"new",edit:"edit"},d=n.asPath?.split("/")?.filter((e,t)=>n.asPath?.split("/")?.indexOf(e)===t);if(1===d.length)return null;let c="";o&&d.splice(o),e&&(d[d.length-1]=e);let f=d?.map(t=>{if(c+=`${t}/`,!t)return{name:i({id:"home",defaultMessage:"Home"}),path:"/"};let r=t?.split("?")[0],a=e?r:r.replace(/-/g," "),s=u[r];return{name:s?i({id:s,defaultMessage:a}):decodeURIComponent(a),path:c.replace(/.$/,"")}}),m=f?.length>1?f[f.length-2]:null;return(0,t.jsxs)(t.Fragment,{children:[m&&(0,t.jsx)("nav",{className:"mb-4 flex sm:hidden","aria-label":"Breadcrumb",children:(0,t.jsxs)(r.default,{href:m.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,t.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,t.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"})}),m.name]})}),(0,t.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,t.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,a)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==a&&(0,t.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,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)(r.default,{href:e.path,className:"text-sm font-medium capitalize text-text-muted hover:text-text-primary focus:outline-hidden focus:ring-2 focus:ring-focus-ring rounded-md px-1 py-1",children:a===f.length-1&&l?l:e.name})]})},e.path))})})]})}])},21623,e=>{var t=e.i(91398),r=e.i(56206);e.s(["f",0,({text:e,children:a,onClick:s,className:l="",disabled:o=!1,id:n="",variant:i="primary",size:u="md",type:d="button",loading:c=!1,icon:f,iconRight:m,fullWidth:g=!1,rounded:p="md",ariaLabel:x,...b})=>{let h=a||e,v=(f||m)&&h?"gap-2":"";return(0,t.jsx)("button",{id:n,type:d,disabled:o||c,onClick:s,"aria-label":x,className:(0,r.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"}[u],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[p],{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"}[i],v,{"w-full":g},l),...b,children:c?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),h]}):(0,t.jsxs)(t.Fragment,{children:[f,h,m]})})}])},53296,e=>{var t=e.i(91398),r=e.i(74040),r=r,a=e.i(69322);e.s(["f",0,({messageKey:e,defaultMessage:s,values:l,className:o="",showIcon:n=!0})=>{let{formatMessage:i}=(0,a.X)(),u=i({id:e,defaultMessage:s},l);return u?(0,t.jsxs)("div",{className:`flex items-start space-x-1 text-sm text-text-secondary ${o}`,children:[n&&(0,t.jsx)(r.f,{className:"h-4 w-4 mt-0.5 flex-shrink-0"}),(0,t.jsx)("span",{children:u})]}):null}],53296)},25327,e=>{var t=e.i(91398),r=e.i(5205),a=e.i(41158),s=e.i(69322),l=e.i(37369),o=e.i(21623);e.s(["f",0,({headerText:e=null,onEdit:n=null,onDelete:i=null,children:u=null,title:d=null,addPath:c=null,addButtonText:f=null})=>{let{formatMessage:m}=(0,s.X)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{children:(0,t.jsxs)("title",{children:["Unchained AdminUI - ",d||e," "]})}),(0,t.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,t.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[u,c&&(0,t.jsx)(a.default,{href:c,children:(0,t.jsx)(o.f,{variant:"secondary",icon:(0,t.jsx)(l.f,{className:"h-5 w-5"}),text:f||m({id:"add",defaultMessage:"Add"})})}),n&&(0,t.jsx)(o.f,{variant:"secondary",onClick:n,text:m({id:"edit",defaultMessage:"Edit"})}),i&&(0,t.jsx)(o.f,{variant:"danger",onClick:i,text:m({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},76038,e=>{var t=e.i(91398),r=e.i(91788),a=e.i(56206),s=e.i(69322),l=e.i(42469);let o=e=>e?Array.isArray(e)?e:e.toString()?.split(",")?.map(e=>e.trim()):[];e.s(["f",0,({tagList:e,onChange:n,disabled:i=!1,name:u="tag-input",id:d="tag-input",placeholder:c="",selectOptions:f=[],className:m="",buttonText:g="",showTagsInline:p=!0})=>{let{formatMessage:x}=(0,s.X)(),[b,h]=(0,r.useState)(o(e)),[v,y]=(0,r.useState)(""),[_,w]=(0,r.useState)(!1),j=(0,r.useRef)(null);(0,r.useEffect)(()=>{h(o(e))},[e]),(0,r.useEffect)(()=>{let e=e=>{j.current&&!j.current.contains(e.target)&&w(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[]);let F=(0,r.useCallback)(e=>{let t=e.trim(),r=f.find(e=>e.value.toLowerCase()===t.toLowerCase()),a=r?.value||t;if(!b.some(e=>e.toLowerCase()===a.toLowerCase())&&a){let e=[...b,a];h(e),n(e),y(""),w(!1)}},[b,n,f]),M=(0,r.useMemo)(()=>{let e=f.filter(e=>!b.some(t=>t.toLowerCase()===e.value.toLowerCase()));return v?e.filter(e=>e.label.toLowerCase().includes(v.toLowerCase())):e},[f,b,v]),C=v.trim().toLowerCase(),S=!!(C&&!b.some(e=>e.toLowerCase()===C)&&!f.some(e=>e.value.toLowerCase()===C)),k=(0,t.jsxs)("div",{className:"relative",ref:j,children:[(0,t.jsx)("input",{id:d,name:u,type:"text",role:"combobox","aria-expanded":_,"aria-autocomplete":"list",disabled:i,className:(0,a.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:c,value:v,onChange:e=>{y(e.target.value),w(!0)},onFocus:()=>w(!0),onKeyDown:e=>{"Enter"===e.key&&v.trim()&&(e.preventDefault(),F(M[0]?.value||v.trim()))}}),_&&(S||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(),F(e.value)},children:e.label},e.value)),S&&(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(),F(v.trim())},children:g||x({id:"add_new_tag",defaultMessage:'Add "{inputValue}"'},{inputValue:v.trim()})})]})]});return p?(0,t.jsxs)(t.Fragment,{children:[k,(0,t.jsx)("div",{className:(0,a.U)("ml-4 flex items-center flex-wrap gap-5",b.length>0&&"mt-1"),children:b?.map(e=>(0,t.jsx)(l.f,{text:e,color:"slate",onClick:()=>(e=>{let t=b.indexOf(e);if(-1!==t){let e=[...b];e.splice(t,1),n(e),h(e)}})(e)},e))})]}):k}])},54879,e=>{var t=e.i(91398),r=e.i(56206);e.s(["f",0,({children:e,className:a,error:s,disabled:l,required:o,name:n,label:i,hideLabel:u,labelClassName:d})=>(0,t.jsxs)("div",{className:(0,r.U)("container",{"is-invalid":!!s,disabled:l,required:o},a),children:[(0,t.jsx)("label",{"aria-label":i,htmlFor:n,className:(0,r.U)("mb-2 block text-left text-sm font-light text-text-secondary",{"mt-1 rounded-sm border border-rose-100 dark:border-rose-800 bg-rose-50 dark:bg-rose-900/20 p-2 pl-4 text-rose-700 dark:text-rose-400":!!s,"sr-only":u},d),children:s||i}),e]})])},10685,e=>{var t=e.i(91398),r=e.i(56206),a=e.i(60741),s=e.i(54879);e.s(["f",0,e=>{let{options:l,...o}=(0,a.f)(e),{className:n}=e||{className:""};return(0,t.jsx)(s.f,{...o,children:(0,t.jsx)("div",{className:"select-wrap",children:(0,t.jsxs)("select",{className:(0,r.U)("block w-full bg-surface-input rounded-md border-1 border-border-default py-2.5 pl-3 pr-10 text-base text-text-primary shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring sm:text-sm",n,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!o.error}),disabled:o.disabled,id:o.name,name:o.name,onChange:o.onChange,onBlur:o.onBlur,value:o.value,children:[(0,t.jsx)("option",{className:"text-text-secondary",value:"",disabled:o.required,hidden:o.required,children:o.placeholder||o.label}),Object.entries(l).map(([e,r])=>(0,t.jsx)("option",{className:"text-text-secondary",value:e,children:r},e))]})})})}])},21128,e=>{var t=e.i(91398),r=e.i(56206),a=e.i(58021),s=e.i(61898);e.s(["f",0,({label:e,disabled:l=!1,className:o="",hidden:n=!1,...i})=>{let{formState:u}=(0,a.useFormContext)(),{...d}=i,c=Object.keys(u.errors).length>0&&Object.values(u.errors).some(e=>!!e),{disabled:f}=(0,s.f)(),m=l||f||u.isSubmitting||c,g=u.isSubmitting&&!c,p=(l||f||c)&&!u.isSubmitting;return(0,t.jsx)("input",{className:(0,r.U)("inline-flex cursor-pointer justify-center rounded-sm border border-slate-300 px-4 py-2 text-center text-sm font-medium leading-5 shadow-sm hover:shadow-md focus:ring-focus-ring",o,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":p,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":g,"bg-accent text-text-on-accent hover:bg-accent-hover focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!m,hidden:n}),"aria-label":e,type:"submit",value:e,disabled:m,...d})}])},13120,e=>{var t=e.i(91398),r=e.i(56206),a=e.i(76038),s=e.i(60741),l=e.i(82226),o=e.i(54879);e.s(["f",0,({buttonText:e="",validators:n=[],selectOptions:i=[],...u})=>{let d=(0,s.f)({validators:[...n,(0,l.x)(u?.required)],label:"Tags",...u});return(0,t.jsx)(o.f,{...d,children:(0,t.jsx)(a.f,{disabled:d.disabled,id:d.id,name:d.name,className:(0,r.U)({"border-rose-300":!!d.error}),onChange:e=>d.setValue(e,!0),placeholder:d.placeholder,tagList:d.value,buttonText:e,selectOptions:i})})}])},16984,e=>{var t=e.i(91398),r=e.i(56206),a=e.i(82226),s=e.i(60741),l=e.i(54879);e.s(["f",0,({maxLength:e=0,validators:o=[],...n})=>{let i=(0,s.f)({validators:[...o,e&&(0,a.f)(e)],...n});return(0,t.jsx)(l.f,{...i,children:(0,t.jsx)("input",{className:(0,r.U)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill appearance-none rounded-md border-1 bg-surface-input px-4 py-2.5 text-sm text-text-primary border-border-default placeholder:text-text-muted focus:outline-hidden focus:ring-2 focus:ring-focus-ring shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onClick:e=>{e.stopPropagation()},onBlur:i.onBlur,placeholder:i.placeholder,autoComplete:i.autoComplete||"off",type:i.type||"text",value:i.value,autoFocus:i.autoFocus})})}])},11056,e=>{var t=e.i(91398),r=e.i(91788),a=e.i(5505),s=e.i(57561);e.s(["f",0,({children:e,onlyFull:l=!1})=>{let{languageDialectList:o,selectedLocale:n,setSelectedLocale:i}=(0,s.f)(),u=(0,r.useContext)(a.W),d=o.filter(e=>!l||e.isoCode.includes("-"));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`w-fit mt-5 mb-3 ${u?"ml-5":""}`,children:(0,t.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-border-default py-1 pr-8 text-sm lg:py-1 lg:pr-10 text-black dark:text-white dark:bg-slate-800 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",value:n||"",onChange:e=>{e.stopPropagation(),i(e.target.value)},children:d?.map(e=>(0,t.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,t.jsx)("div",{children:r.default.cloneElement(e)})]})}])},73319,e=>{let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,t,"T",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},69211,e=>{var t=e.i(91398),r=e.i(58021),a=e.i(60170);e.s(["f",0,({form:e,children:s,className:l="",...o})=>(0,t.jsx)(a.f.Provider,{value:e,children:(0,t.jsx)(r.FormProvider,{...e.rhf,children:(0,t.jsx)("form",{onReset:()=>e.api.handleReset(),onSubmit:e.api.handleSubmit,method:"POST",className:l,...o,children:s})})})])},60741,e=>{var t=e.i(91788),r=e.i(69322),a=e.i(58021),s=e.i(82226),l=e.i(61898);e.s(["f",0,e=>{let o=(0,r.X)(),{rhf:n,...i}=(0,l.f)(),{name:u,required:d,errorMessage:c,disabled:f=i.disabled||n?.formState?.isSubmitting,label:m=o.formatMessage({id:u,defaultMessage:"default_input_name",description:"DO not translate Skip this as it's the default given label when a component is not provided explicit label"}),validators:g=[]}=e,p=[...g,d&&s.w].filter(Boolean),x=e=>p.reduce((t,{isValid:r,intlMessageDescriptor:a,intlMessageValues:s})=>t||r(e)?t:c||o.formatMessage(a,{label:m,...s}),""),b=(0,t.useRef)(x);b.current=x;let{field:h,fieldState:v,formState:y}=(0,a.useController)({name:u,control:n?.control,rules:{validate:e=>b.current(e)||!0}}),_=(v.isTouched||y.isSubmitted)&&v.error?.message;return{...e,name:u,error:_,label:m,disabled:f,required:d,onChange:t=>{if(e.onChange&&e.onChange(t),"number"===e.type){let e=t?.target?.value,r=""===e||null==e?null:Number(e);h.onChange(r)}else h.onChange(t)},onBlur:h.onBlur,value:null==h.value?"":h.value,setValue:(e,t)=>{n?.setValue(u,e,{shouldDirty:!0,shouldValidate:t??!1})},setError:e=>{e?n?.setError(u,{type:"manual",message:e}):n?.clearErrors(u)},setTouched:e=>{e&&n?.trigger(u)}}}])},98949,e=>{var t=e.i(91788),r=e.i(58021),a=e.i(69322),s=e.i(28401),l=e.i(73319);let o=e=>""===e||"string"==typeof e&&e?.trim()===""?null:"string"==typeof e&&e.length?e.trim():Array.isArray(e)&&e?.length&&"string"==typeof e[0]?e.map(e=>o(e)):Array.isArray(e)&&e?.length&&(0,l.C)(e[0])?e.map(e=>Object.fromEntries(Object.entries(e).map(([e,t])=>[e,o(t)]))):e,n=e=>e&&"object"==typeof e?"string"==typeof e.message&&e.message?e.message:Array.isArray(e)?e.map(e=>n(e)):Object.fromEntries(Object.entries(e).filter(([e])=>"ref"!==e).map(([e,t])=>[e,n(t)])):e;e.s(["f",0,({submit:e,getSubmitErrorMessage:l=()=>"",onSubmitSuccess:i=()=>!0,initialValues:u,initialErrors:d,initialTouched:c,successMessage:f,enableReinitialize:m,validate:g,disabled:p=!1})=>{let x=(0,a.X)(),[b,h]=(0,t.useState)(""),v=(0,r.useForm)({mode:"onTouched",defaultValues:u,values:m?u:void 0,errors:d?Object.fromEntries(Object.entries(d).map(([e,t])=>[e,{type:"manual",message:t}])):void 0}),y=(0,t.useCallback)(e=>{let t=e?.errors?.[0];return x.formatMessage({id:"error_server",defaultMessage:"{details}"},{details:t?.message||""})},[x]),_=(0,t.useCallback)(async t=>{let r=!0;try{let a=await e(Object.fromEntries(Object.entries(t).map(([e,t])=>[e,o(t)]))),n=("boolean"==typeof a?a:a?.success)??!a?.error;if(n)f&&s.toast.success(f),await i(n,a?.data||t);else{let e="boolean"==typeof a?!a:a?.error;Array.isArray(e)?e.forEach(e=>{r=!1,h(l(e)||y(e))}):(r=!1,h(l(e)||y(e)))}}catch(e){r=!1,h(l(e)||y(e))}r&&h("")},[e,f,i,l,y]);return{submitError:b,api:(0,t.useMemo)(()=>({setFieldError:(e,t)=>{v.setError(e,{type:"manual",message:t})},setFieldValue:(e,t)=>{v.setValue(e,t,{shouldDirty:!0,shouldTouch:!0})},setValues:e=>{v.reset(e,{keepDirtyValues:!1,keepErrors:!1})},get values(){return v.getValues()},get isValid(){return v.formState.isValid},get isSubmitting(){return v.formState.isSubmitting},handleSubmit:v.handleSubmit(_),handleReset:()=>{v.reset()},resetForm:e=>{v.reset(e||u)},submitForm:()=>{v.handleSubmit(_)()},getFieldMeta:e=>{let t=v.getFieldState(e,v.formState);return{error:t.error?.message,touched:t.isTouched}},get initialValues(){return u},get errors(){return n(v.formState.errors)}}),[v,_,u]),rhf:v,setSubmitError:h,disabled:p}}],98949)},61898,e=>{var t=e.i(91788),r=e.i(60170);e.s(["f",0,()=>(0,t.useContext)(r.f)])},60170,e=>{var t=e.i(91788);let r=(0,e.i(98837).f)("FormContext",t.default.createContext({submitError:"",rhf:null,api:null,setSubmitError:()=>{},disabled:!1}));e.s(["f",0,r])},82226,e=>{var t=e.i(73663),r=e.i(12051),a=e.i(35113),s=e.i(9356),l=e.i(49543);e.i(69322);let o=["AD","AE","AF","AG","AI","AL","AM","AN","AO","AQ","AR","AS","AT","AU","AW","AZ","BA","BB","BD","BE","BF","BG","BH","BI","BJ","BL","BM","BN","BO","BR","BS","BT","BW","BY","BZ","CA","CC","CD","CF","CG","CH","CI","CK","CL","CM","CN","CO","CR","CU","CV","CX","CY","CZ","DE","DJ","DK","DM","DO","DZ","EC","EE","EG","ER","ES","ET","FI","FJ","FK","FM","FO","FR","GA","GB","GD","GE","GH","GI","GL","GM","GN","GQ","GR","GT","GU","GW","GY","HK","HN","HR","HT","HU","ID","IE","IL","IM","IN","IQ","IR","IS","IT","JM","JO","JP","KE","KG","KH","KI","KM","KN","KP","KR","KW","KY","KZ","LA","LB","LC","LI","LK","LR","LS","LT","LU","LV","LY","MA","MC","MD","ME","MF","MG","MH","MK","ML","MM","MN","MO","MP","MR","MS","MT","MU","MV","MW","MX","MY","MZ","NA","NC","NE","NG","NI","NL","NO","NP","NR","NU","NZ","OM","PA","PE","PF","PG","PH","PK","PL","PM","PN","PR","PT","PW","PY","QA","RO","RS","RU","RW","SA","SB","SC","SD","SE","SG","SH","SI","SK","SL","SM","SN","SO","SR","ST","SV","SY","SZ","TC","TD","TG","TH","TJ","TK","TL","TM","TN","TO","TR","TT","TV","TW","TZ","UA","UG","US","UY","UZ","VA","VC","VE","VG","VI","VN","VU","WF","WS","XK","YE","YT","ZA","ZM","ZW"],n=["ab","aa","af","ak","sq","am","ar","an","hy","as","av","ae","ay","az","bm","ba","eu","be","bn","bh","bi","bs","br","bg","my","ca","ch","ce","ny","zh","cv","kw","co","cr","hr","cs","da","dv","nl","en","eo","et","ee","fo","fj","fi","fr","ff","gl","ka","de","el","gn","gu","ht","ha","he","hz","hi","ho","hu","ia","id","ie","ga","ig","ik","io","is","it","iu","ja","jv","kl","kn","kr","ks","kk","km","ki","rw","ky","kv","kg","ko","ku","kj","la","lb","lg","li","ln","lo","lt","lu","lv","gv","mk","mg","ms","ml","mt","mi","mr","mh","mn","na","nv","nb","nd","ne","ng","nn","no","ii","nr","oc","oj","cu","om","or","os","pa","pi","fa","pl","ps","pt","qu","rm","rn","ro","ru","sa","sc","sd","se","sm","sg","sr","gd","sn","si","sk","sl","so","st","es","su","sw","ss","sv","ta","te","tg","th","ti","bo","tk","tl","tn","to","tr","ts","tt","tw","ty","ug","uk","ur","uz","ve","vi","vo","wa","cy","wo","fy","xh","yi","yo","za"];e.s(["J",0,(e=!1)=>({isValid:t=>!e&&!t||/^(0x)?[a-z0-9]{40}$/i.test(t),intlMessageDescriptor:{id:"error_contract_address",defaultMessage:"Invalid contract address"}}),"$",0,{isValid:e=>{if(!e)return!0;let t=new Date(e);if(!(0,s.f)(t))return!1;let r=(0,l.f)(new Date);return!(+(0,a.f)(t)>+(0,a.f)(r))},intlMessageDescriptor:{id:"error_birthdate_in_future",defaultMessage:"{label} cannot be in the future"}},"v",0,()=>({isValid:e=>o.includes(e.toUpperCase()),intlMessageDescriptor:{id:"error_country_code",defaultMessage:"Invalid country code"}}),"G",0,{isValid:e=>!e||(0,s.f)(new Date(e)),intlMessageDescriptor:{id:"error_invalid_date",defaultMessage:"{label} is not a valid date"}},"L",0,{isValid:e=>(0,r.default)(e||""),intlMessageDescriptor:{id:"error_email",defaultMessage:"{label} must be a valid email address"}},"j",0,()=>({isValid:e=>null==e||""===e||!Number.isNaN(e)&&Number.isInteger(Number(e)),intlMessageDescriptor:{id:"error_number_not_int",defaultMessage:"Invalid value please provide integer value"}}),"y",0,()=>({isValid:e=>n.includes(e?.toLowerCase()),intlMessageDescriptor:{id:"error_language_code",defaultMessage:"Invalid language code"}}),"f",0,e=>({isValid:r=>(0,t.default)(r||"",{max:e}),intlMessageDescriptor:{id:"error_max_length"},intlMessageValues:{maxLength:e.toString()}}),"D",0,(e,t)=>({isValid:()=>{let r="function"==typeof t?t():t;if(!r?.length||r?.length===1)return!0;let a=r[e];return r.filter((t,r)=>r!==e).every(({minQuantity:e,countryCode:t,currencyCode:r})=>e!==a?.minQuantity||t!==a?.countryCode||r!==a?.currencyCode)},intlMessageDescriptor:{id:"error_same_product_prices",defaultMessage:"{label} can not be equal for a price with the same country and currency"}}),"P",0,e=>({isValid:()=>{let t="function"==typeof e?e():e;if(!t?.length)return!0;let r=e=>null===e||""===e||void 0===e||0===Number(e);return(1!==t.length||!!r(t[0].minQuantity))&&t.filter(({minQuantity:e})=>r(e))?.length===1},intlMessageDescriptor:{id:"error_commerce_quantity_null_required",defaultMessage:"{label} should have one price with min quantity of 0 or empty"}}),"w",0,{isValid:e=>"string"==typeof e?e.trim().length>0:"number"==typeof e||(Array.isArray(e)?e.length>0:!!e),intlMessageDescriptor:{id:"error_required",defaultMessage:"{label} is a required field"}},"x",0,e=>({isValid:t=>!e||t.length>0,intlMessageDescriptor:{id:"error_tag_required",defaultMessage:"{label} you must provide at least one tag"}})],82226)},38994,62199,14336,e=>{var t=e.i(59080),r=e.i(76204);let a=t.a`
2
+ fragment ProductDetailFragment on Product {
3
+ _id
4
+ sequence
5
+ status
6
+ created
7
+ tags
8
+ updated
9
+ published
10
+
11
+ media {
12
+ _id
13
+ tags
14
+ file {
15
+ _id
16
+ url
17
+ }
18
+ }
19
+ reviews {
20
+ _id
21
+ created
22
+ author {
23
+ _id
24
+ username
25
+ isGuest
26
+ }
27
+ rating
28
+ title
29
+ review
30
+ voteCount
31
+ ownVotes {
32
+ type
33
+ timestamp
34
+ }
35
+ }
36
+ siblings {
37
+ _id
38
+ media {
39
+ _id
40
+ file {
41
+ _id
42
+ url
43
+ }
44
+ }
45
+ }
46
+ }
47
+ `;e.s(["f",0,a],62199);let s=t.a`
48
+ fragment ProductTextsFragment on ProductTexts {
49
+ _id
50
+ locale
51
+ slug
52
+ title
53
+ subtitle
54
+ description
55
+ vendor
56
+ brand
57
+ labels
58
+ }
59
+ `;e.s(["f",0,s],14336);let l=t.a`
60
+ mutation CreateProduct(
61
+ $product: CreateProductInput!
62
+ $texts: [ProductTextInput!]
63
+ ) {
64
+ createProduct(product: $product, texts: $texts) {
65
+ ...ProductDetailFragment
66
+ ... on SimpleProduct {
67
+ texts {
68
+ ...ProductTextsFragment
69
+ }
70
+ }
71
+ ... on ConfigurableProduct {
72
+ texts {
73
+ ...ProductTextsFragment
74
+ }
75
+ }
76
+ ... on BundleProduct {
77
+ texts {
78
+ ...ProductTextsFragment
79
+ }
80
+ }
81
+ ... on TokenizedProduct {
82
+ texts {
83
+ ...ProductTextsFragment
84
+ }
85
+ }
86
+ ... on PlanProduct {
87
+ texts {
88
+ ...ProductTextsFragment
89
+ }
90
+ }
91
+ }
92
+ }
93
+ ${a}
94
+ ${s}
95
+ `;e.s(["f",0,()=>{let[e,{data:t,error:a,loading:s}]=(0,r.f)(l);return{createProduct:async({product:{type:t,tags:r},texts:a})=>e({variables:{product:{type:t,tags:r},texts:a},refetchQueries:["Products","ShopStatus","ShopInfo"]}),newProduct:t?.createProduct,error:a,loading:s}}],38994)},37369,e=>{var t=e.i(84985);e.s(["f",()=>t.f])},60054,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,s.default)(e),"object"===l(t)?(r=t.min||0,a=t.max):(r=arguments[1],a=arguments[2]);var r,a,o=encodeURI(e).split(/%..|./).length-1;return o>=r&&(void 0===a||o<=a)};var a,s=(a=e.r(78262))&&a.__esModule?a:{default:a};function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.exports=r.default,t.exports.default=r.default},12051,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){if((0,a.default)(e),(t=(0,i.default)(t,d)).require_display_name||t.allow_display_name){var r=e.match(c);if(r){var u,b,h=r[1];if(e=e.replace(h,"").replace(/(^<|>$)/g,""),h.endsWith(" ")&&(h=h.slice(0,-1)),!(!(!(b=(u=h).replace(/^"(.+)"$/,"$1")).trim()||/[\.";<>]/.test(b)&&(b===u||b.split('"').length!==b.split('\\"').length))&&1))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var v=e.split("@"),y=v.pop(),_=y.toLowerCase();if(t.host_blacklist.length>0&&(0,s.default)(_,t.host_blacklist)||t.host_whitelist.length>0&&!(0,s.default)(_,t.host_whitelist))return!1;var w=v.join("@");if(t.domain_specific_validation&&("gmail.com"===_||"googlemail.com"===_)){var j=(w=w.toLowerCase()).split("+")[0];if(!(0,l.default)(j.replace(/\./g,""),{min:6,max:30}))return!1;for(var F=j.split("."),M=0;M<F.length;M++)if(!m.test(F[M]))return!1}if(!1===t.ignore_max_length&&(!(0,l.default)(w,{max:64})||!(0,l.default)(y,{max:254})))return!1;if(!(0,o.default)(y,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length,allow_underscores:t.allow_underscores})){if(!t.allow_ip_domain)return!1;if(!(0,n.default)(y)){if(!y.startsWith("[")||!y.endsWith("]"))return!1;var C=y.slice(1,-1);if(0===C.length||!(0,n.default)(C))return!1}}if(t.blacklisted_chars&&-1!==w.search(RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;if('"'===w[0]&&'"'===w[w.length-1])return w=w.slice(1,w.length-1),t.allow_utf8_local_part?x.test(w):g.test(w);for(var S=t.allow_utf8_local_part?p:f,k=w.split("."),N=0;N<k.length;N++)if(!S.test(k[N]))return!1;return!0};var a=u(e.r(78262)),s=u(e.r(80930)),l=u(e.r(60054)),o=u(e.r(96184)),n=u(e.r(90498)),i=u(e.r(34058));function u(e){return e&&e.__esModule?e:{default:e}}var d={allow_display_name:!1,allow_underscores:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},c=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,f=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,m=/^[a-z\d]+$/,g=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,p=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A1-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,x=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;t.exports=r.default,t.exports.default=r.default},96184,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,a.default)(e),(t=(0,s.default)(t,o)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1)),!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var r=e.split("."),l=r[r.length-1];return!(t.require_tld&&(r.length<2||!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(l)||/\s/.test(l)))&&!(!t.allow_numeric_tld&&/^\d+$/.test(l))&&r.every(function(e){return!(e.length>63&&!t.ignore_max_length||!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)||/[\uff01-\uff5e]/.test(e)||/^-|-$/.test(e)||!t.allow_underscores&&/_/.test(e))})};var a=l(e.r(78262)),s=l(e.r(34058));function l(e){return e&&e.__esModule?e:{default:e}}var o={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};t.exports=r.default,t.exports.default=r.default},90498,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};(0,s.default)(t);var a=("object"===l(r)?r.version:arguments[1])||"";return a?"4"===a.toString()?i.test(t):"6"===a.toString()&&d.test(t):e(t,{version:4})||e(t,{version:6})};var a,s=(a=e.r(78262))&&a.__esModule?a:{default:a};function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}var o="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",n="(".concat(o,"[.]){3}").concat(o),i=new RegExp("^".concat(n,"$")),u="(?:[0-9a-fA-F]{1,4})",d=RegExp("^("+"(?:".concat(u,":){7}(?:").concat(u,"|:)|")+"(?:".concat(u,":){6}(?:").concat(n,"|:").concat(u,"|:)|")+"(?:".concat(u,":){5}(?::").concat(n,"|(:").concat(u,"){1,2}|:)|")+"(?:".concat(u,":){4}(?:(:").concat(u,"){0,1}:").concat(n,"|(:").concat(u,"){1,3}|:)|")+"(?:".concat(u,":){3}(?:(:").concat(u,"){0,2}:").concat(n,"|(:").concat(u,"){1,4}|:)|")+"(?:".concat(u,":){2}(?:(:").concat(u,"){0,3}:").concat(n,"|(:").concat(u,"){1,5}|:)|")+"(?:".concat(u,":){1}(?:(:").concat(u,"){0,4}:").concat(n,"|(:").concat(u,"){1,6}|:)|")+"(?::((?::".concat(u,"){0,5}:").concat(n,"|(?::").concat(u,"){1,7}|:))")+")(%[0-9a-zA-Z.]{1,})?$");t.exports=r.default,t.exports.default=r.default},73663,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){(0,s.default)(e),"object"===l(t)?(r=t.min||0,a=t.max):(r=arguments[1]||0,a=arguments[2]);var r,a,o=e.match(/[^\uFE0F\uFE0E][\uFE0F\uFE0E]/g)||[],n=e.match(/[\uD800-\uDBFF][\uDC00-\uDFFF]/g)||[],i=e.length-o.length-n.length,u=i>=r&&(void 0===a||i<=a);return u&&Array.isArray(null==t?void 0:t.discreteLengths)?t.discreteLengths.some(function(e){return e===i}):u};var a,s=(a=e.r(78262))&&a.__esModule?a:{default:a};function l(e){return(l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}t.exports=r.default,t.exports.default=r.default},78262,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e){if(null==e)throw TypeError("Expected a string but received a ".concat(e));if("String"!==e.constructor.name)throw TypeError("Expected a string but received a ".concat(e.constructor.name))},t.exports=r.default,t.exports.default=r.default},80930,(e,t,r)=>{Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(e,t){for(var r=0;r<t.length;r++){var a=t[r];if(e===a||"[object RegExp]"===Object.prototype.toString.call(a)&&a.test(e))return!0}return!1},t.exports=r.default,t.exports.default=r.default},34058,(e,t,r)=>{function a(e){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(r,"__esModule",{value:!0}),r.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var r in("object"!==a(e)||null===e)&&(e={}),t)void 0===e[r]&&(e[r]=t[r]);return e},t.exports=r.default,t.exports.default=r.default}])})();
@@ -0,0 +1,31 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[10685,e=>{var r=e.i(91398),s=e.i(56206),a=e.i(60741),i=e.i(54879);e.s(["f",0,e=>{let{options:c,...t}=(0,a.f)(e),{className:n}=e||{className:""};return(0,r.jsx)(i.f,{...t,children:(0,r.jsx)("div",{className:"select-wrap",children:(0,r.jsxs)("select",{className:(0,s.U)("block w-full bg-surface-input rounded-md border-1 border-border-default py-2.5 pl-3 pr-10 text-base text-text-primary shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring sm:text-sm",n,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!t.error}),disabled:t.disabled,id:t.name,name:t.name,onChange:t.onChange,onBlur:t.onBlur,value:t.value,children:[(0,r.jsx)("option",{className:"text-text-secondary",value:"",disabled:t.required,hidden:t.required,children:t.placeholder||t.label}),Object.entries(c).map(([e,s])=>(0,r.jsx)("option",{className:"text-text-secondary",value:e,children:s},e))]})})})}])},40191,e=>{var r=e.i(91398),s=e.i(69322);e.i(51523);var a=e.i(19518),i=e.i(58971),c=e.i(6634),t=e.i(69211),n=e.i(21128),d=e.i(16984),u=e.i(10685),l=e.i(98949),o=e.i(82226);e.s(["f",0,({onSubmit:e,onSubmitSuccess:y=null,defaultValue:f={},isEdit:m=!1})=>{let{formatMessage:C}=(0,s.X)(),{hasRole:x}=(0,i.f)(),g=C({id:"currency_added",defaultMessage:"Currency added successfully!"}),p=C({id:"currency_updated",defaultMessage:"Currency updated successfully!"}),h=(0,l.f)({submit:e,onSubmitSuccess:y,successMessage:m?p:g,getSubmitErrorMessage:e=>{if(e?.message?.includes("duplicate key"))return h.api.setFieldError("isoCode",C({id:"currency_exists",defaultMessage:"Currency with the same ISO code already exists"})),null},initialValues:{isoCode:"",contractAddress:"",isActive:!1,decimals:2,...f}});return(0,r.jsxs)(t.f,{form:h,children:[(0,r.jsxs)("div",{className:"p-5 pb-7",children:[(0,r.jsx)(d.f,{name:"isoCode",disabled:!x(a.C.ManageCurrencies),id:"isoCode",label:C({id:"iso_code",defaultMessage:"ISO code"}),autoComplete:"on",required:!0}),(0,r.jsx)(d.f,{name:"contractAddress",disabled:!x(a.C.ManageCurrencies),id:"contractAddress",validators:[(0,o.J)()],label:C({id:"contract_address",defaultMessage:"Contract Address"}),autoComplete:"on",className:"mt-4"}),(0,r.jsx)(u.f,{className:"mt-4",label:C({id:"decimals",defaultMessage:"Decimals"}),required:!0,name:"decimals",disabled:!x(a.C.ManageCurrencies),options:Object.fromEntries(Array(32).fill(null).map((e,r)=>[r,`${r}`]))}),m&&(0,r.jsx)("div",{className:"mt-5 flex items-center",children:(0,r.jsx)(c.f,{toggleText:C({id:"active",defaultMessage:"Active"}),disabled:!x(a.C.ManageCurrencies),active:h.api.values.isActive,onToggle:()=>h.api.setFieldValue("isActive",!h.api.values.isActive)})})]}),x(a.C.ManageCurrencies)&&(0,r.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,r.jsx)(n.f,{label:m?C({id:"update_currency",defaultMessage:"Update Currency"}):C({id:"add_currency",defaultMessage:"Add Currency"})})})]})}])},68191,e=>{var r=e.i(59080);let s=r.a`
2
+ fragment CurrencyFragment on Currency {
3
+ _id
4
+ isoCode
5
+ isActive
6
+ contractAddress
7
+ decimals
8
+ }
9
+ `;e.s(["f",0,s])},22787,e=>{var r=e.i(59080),s=e.i(32171),a=e.i(70693),i=e.i(68191);e.s(["f",0,({currencyId:e})=>{let{customProperties:c}=(0,a.f)(),{data:t,loading:n,error:d}=(0,s.f)(((e="")=>r.a`
10
+ query Currency($currencyId: ID!) {
11
+ currency(currencyId: $currencyId) {
12
+ ...CurrencyFragment
13
+ ${e}
14
+ }
15
+ }
16
+ ${i.f}
17
+ `)(c?.Currency),{skip:!e,variables:{currencyId:e}});return{currency:t?.currency,loading:n,error:d}}])},45401,e=>{var r=e.i(59080),s=e.i(76204),a=e.i(68191);let i=r.a`
18
+ mutation RemoveCurrency($currencyId: ID!) {
19
+ removeCurrency(currencyId: $currencyId) {
20
+ ...CurrencyFragment
21
+ }
22
+ }
23
+ ${a.f}
24
+ `;e.s(["f",0,()=>{let[e]=(0,s.f)(i);return{removeCurrency:async({currencyId:r})=>e({variables:{currencyId:r},refetchQueries:["Currencies","ShopStatus","ShopInfo"]})}}])},73664,e=>{var r=e.i(91398),s=e.i(3828);e.i(51523);var a=e.i(19518),i=e.i(69322),c=e.i(28401),t=e.i(5505),n=e.i(40191),d=e.i(22787),u=e.i(45401),l=e.i(59080),o=e.i(76204),y=e.i(68191);let f=l.a`
25
+ mutation UpdateCurrency($currency: UpdateCurrencyInput!, $currencyId: ID!) {
26
+ updateCurrency(currency: $currency, currencyId: $currencyId) {
27
+ ...CurrencyFragment
28
+ }
29
+ }
30
+ ${y.f}
31
+ `;var m=e.i(50595),C=e.i(25327),x=e.i(6607),g=e.i(15971),p=e.i(21623),h=e.i(24608),b=e.i(53576),v=e.i(83147),j=e.i(58971);e.s(["default",0,({currencyId:e})=>{let{push:l}=(0,s.useRouter)(),{formatMessage:y,locale:I}=(0,i.X)(),{hasRole:_}=(0,j.f)(),{setModal:w}=(0,x.f)(),{currency:M,loading:A}=(0,d.f)({currencyId:e}),{updateCurrency:N}=(()=>{let[e]=(0,o.f)(f);return{updateCurrency:async({currency:{isoCode:r,isActive:s,decimals:a,contractAddress:i},currencyId:c})=>e({variables:{currency:{isoCode:r,isActive:s,contractAddress:i,decimals:parseInt(a||"2",10)},currencyId:c},refetchQueries:["Currencies","ShopStatus","ShopInfo"]})}})(),{removeCurrency:T}=(0,u.f)(),$=async({isActive:r,isoCode:s,contractAddress:a,decimals:i})=>(await N({currencyId:e,currency:{isActive:r,isoCode:s,contractAddress:a,decimals:i}}),!0),S=async()=>{await w((0,r.jsx)(g.f,{onCancelClick:async()=>w(""),message:y({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()=>{w(""),await T({currencyId:e}),c.toast.success(y({id:"currency_deleted",defaultMessage:"Currency deleted successfully"})),l("/currency")},okText:y({id:"delete_currency",defaultMessage:"Delete currency"})}))};return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(m.f,{currentPageTitle:(0,v.j)(I,M?.isoCode)}),(0,r.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,r.jsx)(C.f,{headerText:(0,v.j)(I,M?.isoCode)}),_(a.C.ManageCurrencies)&&(0,r.jsx)(p.f,{variant:"danger",icon:(0,r.jsx)(h.f,{className:"h-5 w-5"}),text:"Delete",onClick:S})]}),A?(0,r.jsx)(b.f,{}):(0,r.jsx)("div",{className:"mx-auto mt-6 sm:max-w-xl",children:(0,r.jsx)(t.U,{children:(0,r.jsx)(n.f,{onSubmit:$,defaultValue:M,isEdit:!0})})})]})}],73664)}],14917,(e,r,s)=>{let a="/currency/CurrencyDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(73664)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([a])})}]);
@@ -0,0 +1,4 @@
1
+ __turbopack_load_page_chunks__("/events/EventDetailPage", [
2
+ "static/chunks/2wbc_9uwtsjbp.js",
3
+ "static/chunks/turbopack-2c3mg3r-05n1w.js"
4
+ ])
@@ -0,0 +1 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,32082,(o,e,t)=>{let i="/orders/OrderDetailPage";(window.__NEXT_P=window.__NEXT_P||[]).push([i,()=>o.r(71774)]),e.hot&&e.hot.dispose(function(){window.__NEXT_P.push([i])})}]);
@@ -0,0 +1,39 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[11056,e=>{var t=e.i(91398),i=e.i(91788),s=e.i(5505),l=e.i(57561);e.s(["f",0,({children:e,onlyFull:r=!1})=>{let{languageDialectList:a,selectedLocale:n,setSelectedLocale:d}=(0,l.f)(),o=(0,i.useContext)(s.W),u=a.filter(e=>!r||e.isoCode.includes("-"));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`w-fit mt-5 mb-3 ${o?"ml-5":""}`,children:(0,t.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-border-default py-1 pr-8 text-sm lg:py-1 lg:pr-10 text-black dark:text-white dark:bg-slate-800 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-focus-ring",value:n||"",onChange:e=>{e.stopPropagation(),d(e.target.value)},children:u?.map(e=>(0,t.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,t.jsx)("div",{children:i.default.cloneElement(e)})]})}])},80294,e=>{var t=e.i(59080);let i=t.a`
2
+ fragment FilterFragment on Filter {
3
+ _id
4
+ updated
5
+ created
6
+ key
7
+ isActive
8
+ type
9
+ options {
10
+ _id
11
+ texts {
12
+ _id
13
+ title
14
+ subtitle
15
+ locale
16
+ }
17
+ value
18
+ }
19
+ }
20
+ `;e.s(["f",0,i])},76921,e=>{var t=e.i(91398),i=e.i(3828),s=e.i(69322),l=e.i(50595),r=e.i(5505),a=e.i(25327),n=e.i(58021);e.i(51523);var d=e.i(19518),o=e.i(58971),u=e.i(21623),c=e.i(24557),f=e.i(1504),m=e.i(69211),p=e.i(63094),x=e.i(10685),h=e.i(21128),g=e.i(16984),y=e.i(98949),b=e.i(59080),v=e.i(32171);let j=b.a`
21
+ query FilterTypes {
22
+ filterTypes: __type(name: "FilterType") {
23
+ options: enumValues {
24
+ label: name
25
+ value: name
26
+ }
27
+ }
28
+ }
29
+ `;var w=e.i(57561);let _=()=>{let{formatMessage:e}=(0,s.X)(),{watch:i,setValue:l,getValues:r}=(0,n.useFormContext)(),a=i("options")||[];return(0,t.jsxs)("div",{children:[a.map((i,s)=>(0,t.jsxs)("div",{className:"mb-3 flex justify-between align-baseline",children:[(0,t.jsx)(g.f,{name:`options.${s}`,id:`options.${s}`,required:!0,label:e({id:"option",defaultMessage:"Option"})}),(0,t.jsx)("div",{className:"ml-2 shrink-0 mt-8",children:(0,t.jsx)(u.f,{variant:"danger",size:"xs",rounded:"full",icon:(0,t.jsx)(c.f,{className:"h-5 w-5"}),onClick:()=>{l("options",r("options").filter((e,t)=>t!==s),{shouldDirty:!0})}})})]},s)),(0,t.jsx)("div",{className:"mt-2 flex flex-wrap items-center justify-between sm:flex-nowrap",children:(0,t.jsx)("div",{className:" mt-2 shrink-0",children:(0,t.jsx)("div",{className:"shrink-0",children:(0,t.jsxs)("button",{type:"button",className:"items-right inline-flex rounded-sm border border-transparent bg-slate-800 px-2 py-2 text-sm font-medium text-white shadow-xs hover:bg-slate-950 focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2",onClick:()=>void l("options",[...a,""],{shouldDirty:!0}),children:[(0,t.jsx)("svg",{className:"h-5 w-5",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:"M10 5a1 1 0 011 1v3h3a1 1 0 110 2h-3v3a1 1 0 11-2 0v-3H6a1 1 0 110-2h3V6a1 1 0 011-1z",clipRule:"evenodd"})}),(0,t.jsxs)("span",{className:"ml-2",children:[e({id:"add_option",defaultMessage:"Add option"})," "]})]})})})})]})},F=({onSubmit:e,onSubmitSuccess:i})=>{let{filterTypes:l}=(()=>{let{data:e,loading:t,error:i}=(0,v.f)(j);return{filterTypes:e?.filterTypes?.options||[],loading:t,error:i}})(),{formatMessage:r}=(0,s.X)(),{selectedLocale:a}=(0,w.f)(),{hasRole:n}=(0,o.f)(),u=r({id:"filter_created",defaultMessage:"Filter created successfully!"}),c=(0,y.f)({submit:t=>e({...t,locale:a}),onSubmitSuccess:i,successMessage:u,enableReinitialize:!0,initialValues:{title:"",type:"",key:"",options:[""]},getSubmitErrorMessage:e=>e?.extensions?.code==="DuplicateFilterKeyError"?(c.api.setFieldError("key",r({id:"filter_key_already_exists",defaultMessage:"Filter key already exists, please provide unique key"})),r({id:"filter_key_already_exists",defaultMessage:"Filter key already exists, please provide unique key"})):e?.message||r({id:"error-something-went-wrong",defaultMessage:"Unable to complete the task successfully please try again"})});return(0,t.jsxs)(m.f,{form:c,children:[(0,t.jsxs)("div",{className:"p-5",children:[(0,t.jsx)(g.f,{name:"title",id:"title",label:r({id:"title",defaultMessage:"Title"}),required:!0,className:"mb-5"}),(0,t.jsx)(g.f,{name:"key",id:"key",label:r({id:"key",defaultMessage:"Key"}),required:!0,className:"mb-5"}),(0,t.jsx)(x.f,{className:"mb-5",label:r({id:"type",defaultMessage:"Type"}),required:!0,name:"type",options:(0,f.f)(l,"label","value")}),(0,t.jsx)(_,{})]}),(0,t.jsx)(p.f,{}),n(d.C.ManageFilters)&&(0,t.jsx)("div",{className:"space-y-6 bg-surface-subtle border-t-border-subtle p-5 text-right",children:(0,t.jsx)(h.f,{label:r({id:"create_filter",defaultMessage:"Create Filter"})})})]})};var N=e.i(76204),k=e.i(80294);let T=b.a`
30
+ mutation CreateFilter(
31
+ $filter: CreateFilterInput!
32
+ $texts: [FilterTextInput!]!
33
+ ) {
34
+ createFilter(filter: $filter, texts: $texts) {
35
+ ...FilterFragment
36
+ }
37
+ }
38
+ ${k.f}
39
+ `;var C=e.i(11056);e.s(["default",0,()=>{let e=(0,i.useRouter)(),{formatMessage:n}=(0,s.X)(),{createFilter:d}=(()=>{let[e,{data:t,loading:i,error:s}]=(0,N.f)(T);return{createFilter:async({filter:{key:t,type:i,options:s},texts:l})=>e({variables:{filter:{key:t,type:i,options:s},texts:l}}),newFilter:t?.createFilter,loading:i,error:s}})(),o=async({key:e,title:t,type:i,options:s,locale:l})=>{try{let{data:r,error:a}=await d({filter:{options:s,key:e,type:i},texts:[{title:t,locale:l}]});return{success:!a,data:r?.createFilter,error:a}}catch(e){return{success:!1,error:e}}};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.f,{}),(0,t.jsxs)("div",{className:"mx-auto sm:max-w-2xl",children:[(0,t.jsx)(a.f,{headerText:n({id:"new_filter_header",defaultMessage:"New filter"})}),(0,t.jsx)("div",{className:"mt-6",children:(0,t.jsx)(r.U,{children:(0,t.jsx)(C.f,{children:(0,t.jsx)(F,{onSubmit:o,onSubmitSuccess:(t,{_id:i})=>(e.replace(`/filters?filterId=${i}`),null)})})})})]})]})}],76921)}],49758,(e,t,i)=>{let s="/filters/new";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(76921)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})}]);