@unchainedshop/admin-ui 4.8.31 → 4.8.32

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 (458) hide show
  1. package/out/403/index.html +3 -3
  2. package/out/404/index.html +3 -3
  3. package/out/404.html +3 -3
  4. package/out/423/index.html +3 -3
  5. package/out/500/index.html +3 -3
  6. package/out/_next/static/chunks/{0696190awbl-j.js → 0a5nr3-_q7xx1.js} +10 -10
  7. package/out/_next/static/chunks/{1m85ne6w_6tei.js → 11go520d1hcm5.js} +1 -1
  8. package/out/_next/static/chunks/{2-kvt9e7irukm.js → 182l1mlbf0glb.js} +1 -1
  9. package/out/_next/static/chunks/{09avk6mqdin_1.js → 1wnuiwsbi70eq.js} +1 -1
  10. package/out/_next/static/chunks/{0uls4bq8a7gyh.js → 2wmsx4gjbgvfv.js} +3 -3
  11. package/out/_next/static/chunks/{1_3e6x79fcyv3.js → 41p3ng89i5lem.js} +1 -1
  12. package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_buildManifest.js +2 -2
  13. package/out/_offline/index.html +3 -3
  14. package/out/account/forgot-password/index.html +3 -3
  15. package/out/account/index.html +3 -3
  16. package/out/assortments/AssortmentDetailPage/index.html +3 -3
  17. package/out/assortments/index.html +3 -3
  18. package/out/assortments/new/index.html +3 -3
  19. package/out/copilot/index.html +3 -3
  20. package/out/country/CountryDetailPage/index.html +3 -3
  21. package/out/country/index.html +3 -3
  22. package/out/country/new/index.html +3 -3
  23. package/out/currency/CurrencyDetailPage/index.html +3 -3
  24. package/out/currency/index.html +3 -3
  25. package/out/currency/new/index.html +3 -3
  26. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
  27. package/out/delivery-provider/index.html +3 -3
  28. package/out/delivery-provider/new/index.html +3 -3
  29. package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
  30. package/out/enrollments/index.html +3 -3
  31. package/out/events/EventDetailPage/index.html +3 -3
  32. package/out/events/index.html +3 -3
  33. package/out/exports/index.html +3 -3
  34. package/out/external/index.html +3 -3
  35. package/out/filters/FilterDetailPage/index.html +3 -3
  36. package/out/filters/index.html +3 -3
  37. package/out/filters/new/index.html +3 -3
  38. package/out/index.html +3 -3
  39. package/out/install/index.html +3 -3
  40. package/out/language/LanguageDetailPage/index.html +3 -3
  41. package/out/language/index.html +3 -3
  42. package/out/language/new/index.html +3 -3
  43. package/out/log-in/index.html +3 -3
  44. package/out/orders/OrderDetailPage/index.html +3 -3
  45. package/out/orders/index.html +3 -3
  46. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
  47. package/out/payment-provider/index.html +3 -3
  48. package/out/payment-provider/new/index.html +3 -3
  49. package/out/products/ProductDetailPage/index.html +3 -3
  50. package/out/products/index.html +3 -3
  51. package/out/products/new/index.html +3 -3
  52. package/out/quotations/QuotationDetailPage/index.html +3 -3
  53. package/out/quotations/index.html +3 -3
  54. package/out/reset-password/index.html +3 -3
  55. package/out/sign-up/index.html +3 -3
  56. package/out/styleguide/index.html +3 -3
  57. package/out/tokens/TokenDetailPage/index.html +3 -3
  58. package/out/tokens/index.html +3 -3
  59. package/out/users/UserDetailPage/index.html +3 -3
  60. package/out/users/index.html +3 -3
  61. package/out/users/new/index.html +3 -3
  62. package/out/verify-email/index.html +3 -3
  63. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
  64. package/out/warehousing-provider/index.html +3 -3
  65. package/out/warehousing-provider/new/index.html +3 -3
  66. package/out/works/WorkDetailPage/index.html +3 -3
  67. package/out/works/WorkQueueListView/index.html +3 -3
  68. package/out/works/index.html +3 -3
  69. package/out/works/management/index.html +3 -3
  70. package/package.json +31 -31
  71. package/dist/chunk-3L6EZQ6P.js +0 -135
  72. package/dist/chunk-54DKBWXV.js +0 -33
  73. package/dist/chunk-5WPFHQZN.js +0 -388
  74. package/dist/chunk-6UGLNLJG.js +0 -44
  75. package/dist/chunk-BMDNY67T.js +0 -22547
  76. package/dist/chunk-BOMSMJF2.js +0 -77
  77. package/dist/chunk-COV7BREX.js +0 -50
  78. package/dist/chunk-E77YIMGR.js +0 -2083
  79. package/dist/chunk-EJDZRZSZ.js +0 -59
  80. package/dist/chunk-ELPURWDC.js +0 -75
  81. package/dist/chunk-F6LBNV3H.js +0 -9
  82. package/dist/chunk-FDHXLNZQ.js +0 -44
  83. package/dist/chunk-GY2DRQGW.js +0 -166
  84. package/dist/chunk-HERLM47Z.js +0 -309
  85. package/dist/chunk-HJKRGBDG.js +0 -694
  86. package/dist/chunk-I64TXIE7.js +0 -618
  87. package/dist/chunk-IAQPLRXZ.js +0 -16
  88. package/dist/chunk-ICJH36K4.js +0 -326
  89. package/dist/chunk-ILYPJE4N.js +0 -57
  90. package/dist/chunk-IWKDBADX.js +0 -73
  91. package/dist/chunk-IXBMHOB5.js +0 -13
  92. package/dist/chunk-IYKPRAWC.js +0 -26
  93. package/dist/chunk-J23QSWDL.js +0 -8
  94. package/dist/chunk-KH5MK6ZW.js +0 -18
  95. package/dist/chunk-KRIRF7F6.js +0 -76
  96. package/dist/chunk-NT7RB7AK.js +0 -70
  97. package/dist/chunk-OKGJ6HDE.js +0 -26
  98. package/dist/chunk-OTXM2UCD.js +0 -19
  99. package/dist/chunk-PJLYVMUM.js +0 -3308
  100. package/dist/chunk-PUI5BIKO.js +0 -41
  101. package/dist/chunk-Q6S3LBUF.js +0 -180
  102. package/dist/chunk-QHR23GVH.js +0 -1099
  103. package/dist/chunk-QWQ3WJJN.js +0 -1
  104. package/dist/chunk-RAQV2GYF.js +0 -70
  105. package/dist/chunk-VBO377AY.js +0 -14
  106. package/dist/chunk-VYEXPG3M.js +0 -107
  107. package/dist/chunk-WPLOTFGW.js +0 -36
  108. package/dist/chunk-YO6PT7KD.js +0 -13
  109. package/dist/chunk-ZUOVKRKC.js +0 -957
  110. package/dist/components/ui/Accordion/Accordion.d.ts +0 -11
  111. package/dist/components/ui/Accordion/Accordion.d.ts.map +0 -1
  112. package/dist/components/ui/Accordion/AccordionHeader.d.ts +0 -6
  113. package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +0 -1
  114. package/dist/components/ui/Accordion/AccordionItem.d.ts +0 -11
  115. package/dist/components/ui/Accordion/AccordionItem.d.ts.map +0 -1
  116. package/dist/components/ui/ActiveInActive.d.ts +0 -10
  117. package/dist/components/ui/ActiveInActive.d.ts.map +0 -1
  118. package/dist/components/ui/AnimatedCounter.d.ts +0 -7
  119. package/dist/components/ui/AnimatedCounter.d.ts.map +0 -1
  120. package/dist/components/ui/Badge.d.ts +0 -10
  121. package/dist/components/ui/Badge.d.ts.map +0 -1
  122. package/dist/components/ui/BreadCrumbs.d.ts +0 -7
  123. package/dist/components/ui/BreadCrumbs.d.ts.map +0 -1
  124. package/dist/components/ui/Button.d.ts +0 -36
  125. package/dist/components/ui/Button.d.ts.map +0 -1
  126. package/dist/components/ui/CopyableText.d.ts +0 -5
  127. package/dist/components/ui/CopyableText.d.ts.map +0 -1
  128. package/dist/components/ui/DateInput.d.ts +0 -15
  129. package/dist/components/ui/DateInput.d.ts.map +0 -1
  130. package/dist/components/ui/DateRangeFilterInput.d.ts +0 -4
  131. package/dist/components/ui/DateRangeFilterInput.d.ts.map +0 -1
  132. package/dist/components/ui/DetailHeader.d.ts +0 -6
  133. package/dist/components/ui/DetailHeader.d.ts.map +0 -1
  134. package/dist/components/ui/DraggableIcon.d.ts +0 -3
  135. package/dist/components/ui/DraggableIcon.d.ts.map +0 -1
  136. package/dist/components/ui/ErrorBoundary.d.ts +0 -18
  137. package/dist/components/ui/ErrorBoundary.d.ts.map +0 -1
  138. package/dist/components/ui/ErrorFallback.d.ts +0 -6
  139. package/dist/components/ui/ErrorFallback.d.ts.map +0 -1
  140. package/dist/components/ui/HelpText.d.ts +0 -11
  141. package/dist/components/ui/HelpText.d.ts.map +0 -1
  142. package/dist/components/ui/ImageWithFallback.d.ts +0 -7
  143. package/dist/components/ui/ImageWithFallback.d.ts.map +0 -1
  144. package/dist/components/ui/InfoTextBanner.d.ts +0 -6
  145. package/dist/components/ui/InfoTextBanner.d.ts.map +0 -1
  146. package/dist/components/ui/JSONView.d.ts +0 -6
  147. package/dist/components/ui/JSONView.d.ts.map +0 -1
  148. package/dist/components/ui/ListHeader.d.ts +0 -6
  149. package/dist/components/ui/ListHeader.d.ts.map +0 -1
  150. package/dist/components/ui/Loading.d.ts +0 -10
  151. package/dist/components/ui/Loading.d.ts.map +0 -1
  152. package/dist/components/ui/NoData.d.ts +0 -7
  153. package/dist/components/ui/NoData.d.ts.map +0 -1
  154. package/dist/components/ui/NoImage.d.ts +0 -7
  155. package/dist/components/ui/NoImage.d.ts.map +0 -1
  156. package/dist/components/ui/NoImageSvg.d.ts +0 -8
  157. package/dist/components/ui/NoImageSvg.d.ts.map +0 -1
  158. package/dist/components/ui/PageHeader.d.ts +0 -11
  159. package/dist/components/ui/PageHeader.d.ts.map +0 -1
  160. package/dist/components/ui/Pagination.d.ts +0 -8
  161. package/dist/components/ui/Pagination.d.ts.map +0 -1
  162. package/dist/components/ui/Portal/Portal.d.ts +0 -16
  163. package/dist/components/ui/Portal/Portal.d.ts.map +0 -1
  164. package/dist/components/ui/Portal/Portal.types.d.ts +0 -16
  165. package/dist/components/ui/Portal/Portal.types.d.ts.map +0 -1
  166. package/dist/components/ui/SaveAndCancelButtons.d.ts +0 -10
  167. package/dist/components/ui/SaveAndCancelButtons.d.ts.map +0 -1
  168. package/dist/components/ui/SearchField.d.ts +0 -7
  169. package/dist/components/ui/SearchField.d.ts.map +0 -1
  170. package/dist/components/ui/Tab.d.ts +0 -18
  171. package/dist/components/ui/Tab.d.ts.map +0 -1
  172. package/dist/components/ui/Tag/TagInput.d.ts +0 -19
  173. package/dist/components/ui/Tag/TagInput.d.ts.map +0 -1
  174. package/dist/components/ui/Tag/TagList.d.ts +0 -8
  175. package/dist/components/ui/Tag/TagList.d.ts.map +0 -1
  176. package/dist/components/ui/Tag/TagListForm.d.ts +0 -8
  177. package/dist/components/ui/Tag/TagListForm.d.ts.map +0 -1
  178. package/dist/components/ui/Toggle.d.ts +0 -11
  179. package/dist/components/ui/Toggle.d.ts.map +0 -1
  180. package/dist/components/ui/ToolTip.d.ts +0 -7
  181. package/dist/components/ui/ToolTip.d.ts.map +0 -1
  182. package/dist/components/ui/card.d.ts +0 -9
  183. package/dist/components/ui/card.d.ts.map +0 -1
  184. package/dist/components/ui/chart.d.ts +0 -42
  185. package/dist/components/ui/chart.d.ts.map +0 -1
  186. package/dist/components/ui/form/CheckboxField.d.ts +0 -4
  187. package/dist/components/ui/form/CheckboxField.d.ts.map +0 -1
  188. package/dist/components/ui/form/ChoicesField.d.ts +0 -12
  189. package/dist/components/ui/form/ChoicesField.d.ts.map +0 -1
  190. package/dist/components/ui/form/Combobox.d.ts +0 -20
  191. package/dist/components/ui/form/Combobox.d.ts.map +0 -1
  192. package/dist/components/ui/form/DatePickerField.d.ts +0 -4
  193. package/dist/components/ui/form/DatePickerField.d.ts.map +0 -1
  194. package/dist/components/ui/form/EmailField.d.ts +0 -7
  195. package/dist/components/ui/form/EmailField.d.ts.map +0 -1
  196. package/dist/components/ui/form/FieldWithHelp.d.ts +0 -10
  197. package/dist/components/ui/form/FieldWithHelp.d.ts.map +0 -1
  198. package/dist/components/ui/form/FieldWrapper.d.ts +0 -8
  199. package/dist/components/ui/form/FieldWrapper.d.ts.map +0 -1
  200. package/dist/components/ui/form/FormErrors.d.ts +0 -6
  201. package/dist/components/ui/form/FormErrors.d.ts.map +0 -1
  202. package/dist/components/ui/form/JSONAreaField.d.ts +0 -7
  203. package/dist/components/ui/form/JSONAreaField.d.ts.map +0 -1
  204. package/dist/components/ui/form/MarkdownTextAreaField.d.ts +0 -8
  205. package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +0 -1
  206. package/dist/components/ui/form/PasswordField.d.ts +0 -3
  207. package/dist/components/ui/form/PasswordField.d.ts.map +0 -1
  208. package/dist/components/ui/form/SelectField.d.ts +0 -11
  209. package/dist/components/ui/form/SelectField.d.ts.map +0 -1
  210. package/dist/components/ui/form/SubmitButton.d.ts +0 -9
  211. package/dist/components/ui/form/SubmitButton.d.ts.map +0 -1
  212. package/dist/components/ui/form/TagInputField.d.ts +0 -7
  213. package/dist/components/ui/form/TagInputField.d.ts.map +0 -1
  214. package/dist/components/ui/form/TextAreaField.d.ts +0 -8
  215. package/dist/components/ui/form/TextAreaField.d.ts.map +0 -1
  216. package/dist/components/ui/form/TextField.d.ts +0 -10
  217. package/dist/components/ui/form/TextField.d.ts.map +0 -1
  218. package/dist/components/ui/form/index.d.ts +0 -18
  219. package/dist/components/ui/form/index.d.ts.map +0 -1
  220. package/dist/components/ui/icons.d.ts +0 -4
  221. package/dist/components/ui/icons.d.ts.map +0 -1
  222. package/dist/components/ui/index.d.ts +0 -47
  223. package/dist/components/ui/index.d.ts.map +0 -1
  224. package/dist/form.js +0 -2617
  225. package/dist/gql/operation-types.d.ts +0 -13239
  226. package/dist/gql/operation-types.d.ts.map +0 -1
  227. package/dist/gql/schema-types.d.ts +0 -3876
  228. package/dist/gql/schema-types.d.ts.map +0 -1
  229. package/dist/gql/types.d.ts +0 -3
  230. package/dist/gql/types.d.ts.map +0 -1
  231. package/dist/hooks.js +0 -49
  232. package/dist/lib/utils.d.ts +0 -3
  233. package/dist/lib/utils.d.ts.map +0 -1
  234. package/dist/modal.js +0 -51
  235. package/dist/modules/Auth/AuthContext.d.ts +0 -9
  236. package/dist/modules/Auth/AuthContext.d.ts.map +0 -1
  237. package/dist/modules/Auth/useAuth.d.ts +0 -6
  238. package/dist/modules/Auth/useAuth.d.ts.map +0 -1
  239. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +0 -8
  240. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +0 -1
  241. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +0 -7
  242. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +0 -1
  243. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +0 -3
  244. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +0 -1
  245. package/dist/modules/accounts/fragment/UserFragment.d.ts +0 -3
  246. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +0 -1
  247. package/dist/modules/accounts/hooks/useCurrentUser.d.ts +0 -10
  248. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +0 -1
  249. package/dist/modules/accounts/hooks/useUsersCount.d.ts +0 -8
  250. package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +0 -1
  251. package/dist/modules/accounts.js +0 -1349
  252. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +0 -8
  253. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +0 -1
  254. package/dist/modules/assortment.js +0 -1205
  255. package/dist/modules/common/components/AppContext.d.ts +0 -18
  256. package/dist/modules/common/components/AppContext.d.ts.map +0 -1
  257. package/dist/modules/common/components/FormWrapper.d.ts +0 -8
  258. package/dist/modules/common/components/FormWrapper.d.ts.map +0 -1
  259. package/dist/modules/common/components/LocaleWrapper.d.ts +0 -7
  260. package/dist/modules/common/components/LocaleWrapper.d.ts.map +0 -1
  261. package/dist/modules/common/components/MediaAvatar.d.ts +0 -6
  262. package/dist/modules/common/components/MediaAvatar.d.ts.map +0 -1
  263. package/dist/modules/common/components/SelectOptions.d.ts +0 -17
  264. package/dist/modules/common/components/SelectOptions.d.ts.map +0 -1
  265. package/dist/modules/common/components/Table.d.ts +0 -25
  266. package/dist/modules/common/components/Table.d.ts.map +0 -1
  267. package/dist/modules/common/components/TableCell.d.ts +0 -12
  268. package/dist/modules/common/components/TableCell.d.ts.map +0 -1
  269. package/dist/modules/common/components/TableRow.d.ts +0 -10
  270. package/dist/modules/common/components/TableRow.d.ts.map +0 -1
  271. package/dist/modules/common/components/ThemeWrapper.d.ts +0 -10
  272. package/dist/modules/common/components/ThemeWrapper.d.ts.map +0 -1
  273. package/dist/modules/common/data/iso-codes.d.ts +0 -4
  274. package/dist/modules/common/data/iso-codes.d.ts.map +0 -1
  275. package/dist/modules/common/data/miscellaneous.d.ts +0 -52
  276. package/dist/modules/common/data/miscellaneous.d.ts.map +0 -1
  277. package/dist/modules/common/fragments/AddressFragment.d.ts +0 -3
  278. package/dist/modules/common/fragments/AddressFragment.d.ts.map +0 -1
  279. package/dist/modules/common/hooks/useApp.d.ts +0 -11
  280. package/dist/modules/common/hooks/useApp.d.ts.map +0 -1
  281. package/dist/modules/common/hooks/useBulkResultHandler.d.ts +0 -8
  282. package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +0 -1
  283. package/dist/modules/common/hooks/useBulkSelection.d.ts +0 -12
  284. package/dist/modules/common/hooks/useBulkSelection.d.ts.map +0 -1
  285. package/dist/modules/common/hooks/useCSVExport.d.ts +0 -10
  286. package/dist/modules/common/hooks/useCSVExport.d.ts.map +0 -1
  287. package/dist/modules/common/hooks/useCSVImport.d.ts +0 -18
  288. package/dist/modules/common/hooks/useCSVImport.d.ts.map +0 -1
  289. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +0 -5
  290. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +0 -1
  291. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +0 -10
  292. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +0 -1
  293. package/dist/modules/common/hooks/useDashboardMetrics.d.ts +0 -23
  294. package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +0 -1
  295. package/dist/modules/common/hooks/useLocalStorage.d.ts +0 -3
  296. package/dist/modules/common/hooks/useLocalStorage.d.ts.map +0 -1
  297. package/dist/modules/common/hooks/useOrderAnalytics.d.ts +0 -25
  298. package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +0 -1
  299. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +0 -16
  300. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +0 -1
  301. package/dist/modules/common/hooks/useOutsideClick.d.ts +0 -3
  302. package/dist/modules/common/hooks/useOutsideClick.d.ts.map +0 -1
  303. package/dist/modules/common/hooks/usePortal.d.ts +0 -20
  304. package/dist/modules/common/hooks/usePortal.d.ts.map +0 -1
  305. package/dist/modules/common/hooks/useScrollRestoration.d.ts +0 -8
  306. package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +0 -1
  307. package/dist/modules/common/hooks/useShopConfiguration.d.ts +0 -8
  308. package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +0 -1
  309. package/dist/modules/common/hooks/useShopInfo.d.ts +0 -41
  310. package/dist/modules/common/hooks/useShopInfo.d.ts.map +0 -1
  311. package/dist/modules/common/hooks/useStatusTypes.d.ts +0 -10
  312. package/dist/modules/common/hooks/useStatusTypes.d.ts.map +0 -1
  313. package/dist/modules/common/hooks/useSystemRoles.d.ts +0 -7
  314. package/dist/modules/common/hooks/useSystemRoles.d.ts.map +0 -1
  315. package/dist/modules/common/hooks/useTheme.d.ts +0 -7
  316. package/dist/modules/common/hooks/useTheme.d.ts.map +0 -1
  317. package/dist/modules/common/utils/deBounce.d.ts +0 -3
  318. package/dist/modules/common/utils/deBounce.d.ts.map +0 -1
  319. package/dist/modules/common/utils/defaultNextImageLoader.d.ts +0 -7
  320. package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +0 -1
  321. package/dist/modules/common/utils/formatUsername.d.ts +0 -3
  322. package/dist/modules/common/utils/formatUsername.d.ts.map +0 -1
  323. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +0 -30
  324. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +0 -1
  325. package/dist/modules/common/utils/normalizeFilterKeys.d.ts +0 -4
  326. package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +0 -1
  327. package/dist/modules/common/utils/sharedContext.d.ts +0 -9
  328. package/dist/modules/common/utils/sharedContext.d.ts.map +0 -1
  329. package/dist/modules/common/utils/useFormatDateTime.d.ts +0 -16
  330. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +0 -1
  331. package/dist/modules/common/utils/utils.d.ts +0 -21
  332. package/dist/modules/common/utils/utils.d.ts.map +0 -1
  333. package/dist/modules/country/fragments/CountryFragment.d.ts +0 -3
  334. package/dist/modules/country/fragments/CountryFragment.d.ts.map +0 -1
  335. package/dist/modules/country/hooks/useCountries.d.ts +0 -22
  336. package/dist/modules/country/hooks/useCountries.d.ts.map +0 -1
  337. package/dist/modules/country.js +0 -108
  338. package/dist/modules/currency.js +0 -119
  339. package/dist/modules/delivery-provider.js +0 -269
  340. package/dist/modules/enrollment.js +0 -431
  341. package/dist/modules/event.js +0 -123
  342. package/dist/modules/filter.js +0 -497
  343. package/dist/modules/forms/components/Form.d.ts +0 -8
  344. package/dist/modules/forms/components/Form.d.ts.map +0 -1
  345. package/dist/modules/forms/hooks/useField.d.ts +0 -35
  346. package/dist/modules/forms/hooks/useField.d.ts.map +0 -1
  347. package/dist/modules/forms/hooks/useForm.d.ts +0 -44
  348. package/dist/modules/forms/hooks/useForm.d.ts.map +0 -1
  349. package/dist/modules/forms/hooks/useFormContext.d.ts +0 -3
  350. package/dist/modules/forms/hooks/useFormContext.d.ts.map +0 -1
  351. package/dist/modules/forms/lib/FormContext.d.ts +0 -13
  352. package/dist/modules/forms/lib/FormContext.d.ts.map +0 -1
  353. package/dist/modules/forms/lib/clean.d.ts +0 -3
  354. package/dist/modules/forms/lib/clean.d.ts.map +0 -1
  355. package/dist/modules/forms/lib/validators.d.ts +0 -20
  356. package/dist/modules/forms/lib/validators.d.ts.map +0 -1
  357. package/dist/modules/language/fragments/LanguageFragment.d.ts +0 -3
  358. package/dist/modules/language/fragments/LanguageFragment.d.ts.map +0 -1
  359. package/dist/modules/language/hooks/useLanguages.d.ts +0 -19
  360. package/dist/modules/language/hooks/useLanguages.d.ts.map +0 -1
  361. package/dist/modules/language.js +0 -106
  362. package/dist/modules/modal/components/AlertMessage.d.ts +0 -9
  363. package/dist/modules/modal/components/AlertMessage.d.ts.map +0 -1
  364. package/dist/modules/modal/components/DangerMessage.d.ts +0 -13
  365. package/dist/modules/modal/components/DangerMessage.d.ts.map +0 -1
  366. package/dist/modules/modal/components/ImportResultMessage.d.ts +0 -14
  367. package/dist/modules/modal/components/ImportResultMessage.d.ts.map +0 -1
  368. package/dist/modules/modal/components/Modal.d.ts +0 -10
  369. package/dist/modules/modal/components/Modal.d.ts.map +0 -1
  370. package/dist/modules/modal/components/ModalWrapper.d.ts +0 -6
  371. package/dist/modules/modal/components/ModalWrapper.d.ts.map +0 -1
  372. package/dist/modules/modal/hooks/useModal.d.ts +0 -7
  373. package/dist/modules/modal/hooks/useModal.d.ts.map +0 -1
  374. package/dist/modules/modal/utils/ModalContext.d.ts +0 -9
  375. package/dist/modules/modal/utils/ModalContext.d.ts.map +0 -1
  376. package/dist/modules/order/fragments/OrderDetailFragment.d.ts +0 -3
  377. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +0 -1
  378. package/dist/modules/order/fragments/OrderFragment.d.ts +0 -3
  379. package/dist/modules/order/fragments/OrderFragment.d.ts.map +0 -1
  380. package/dist/modules/order/hooks/useOrders.d.ts +0 -46
  381. package/dist/modules/order/hooks/useOrders.d.ts.map +0 -1
  382. package/dist/modules/order.js +0 -569
  383. package/dist/modules/payment-providers.js +0 -206
  384. package/dist/modules/product/hooks/useProductsCount.d.ts +0 -8
  385. package/dist/modules/product/hooks/useProductsCount.d.ts.map +0 -1
  386. package/dist/modules/product-review.js +0 -270
  387. package/dist/modules/product.js +0 -6914
  388. package/dist/modules/quotation.js +0 -324
  389. package/dist/modules/token.js +0 -143
  390. package/dist/modules/warehousing-providers.js +0 -206
  391. package/dist/modules/work/fragments/WorkFragment.d.ts +0 -3
  392. package/dist/modules/work/fragments/WorkFragment.d.ts.map +0 -1
  393. package/dist/modules/work/hooks/useAddWork.d.ts +0 -6
  394. package/dist/modules/work/hooks/useAddWork.d.ts.map +0 -1
  395. package/dist/modules/work/hooks/useWork.d.ts +0 -32
  396. package/dist/modules/work/hooks/useWork.d.ts.map +0 -1
  397. package/dist/modules/work.js +0 -232
  398. package/dist/plugins.js +0 -13
  399. package/dist/providers.js +0 -9
  400. package/dist/sdk/hooks.d.ts +0 -12
  401. package/dist/sdk/hooks.d.ts.map +0 -1
  402. package/dist/sdk/modal.d.ts +0 -7
  403. package/dist/sdk/modal.d.ts.map +0 -1
  404. package/dist/sdk/plugins.d.ts +0 -78
  405. package/dist/sdk/plugins.d.ts.map +0 -1
  406. package/dist/sdk/providers.d.ts +0 -5
  407. package/dist/sdk/providers.d.ts.map +0 -1
  408. package/dist/sdk/shims/admin-ui-plugins.d.ts +0 -3
  409. package/dist/sdk/shims/admin-ui-plugins.d.ts.map +0 -1
  410. package/dist/sdk/shims/apollo-client-react.d.ts +0 -3
  411. package/dist/sdk/shims/apollo-client-react.d.ts.map +0 -1
  412. package/dist/sdk/shims/apollo-client.d.ts +0 -3
  413. package/dist/sdk/shims/apollo-client.d.ts.map +0 -1
  414. package/dist/sdk/shims/host.d.ts +0 -17
  415. package/dist/sdk/shims/host.d.ts.map +0 -1
  416. package/dist/sdk/shims/next-head.d.ts +0 -3
  417. package/dist/sdk/shims/next-head.d.ts.map +0 -1
  418. package/dist/sdk/shims/next-image.d.ts +0 -3
  419. package/dist/sdk/shims/next-image.d.ts.map +0 -1
  420. package/dist/sdk/shims/next-link.d.ts +0 -3
  421. package/dist/sdk/shims/next-link.d.ts.map +0 -1
  422. package/dist/sdk/shims/next-router.d.ts +0 -3
  423. package/dist/sdk/shims/next-router.d.ts.map +0 -1
  424. package/dist/sdk/shims/react-dom-client.d.ts +0 -3
  425. package/dist/sdk/shims/react-dom-client.d.ts.map +0 -1
  426. package/dist/sdk/shims/react-dom.d.ts +0 -3
  427. package/dist/sdk/shims/react-dom.d.ts.map +0 -1
  428. package/dist/sdk/shims/react-hook-form.d.ts +0 -3
  429. package/dist/sdk/shims/react-hook-form.d.ts.map +0 -1
  430. package/dist/sdk/shims/react-intl.d.ts +0 -3
  431. package/dist/sdk/shims/react-intl.d.ts.map +0 -1
  432. package/dist/sdk/shims/react-jsx-runtime.d.ts +0 -3
  433. package/dist/sdk/shims/react-jsx-runtime.d.ts.map +0 -1
  434. package/dist/sdk/shims/react-toastify.d.ts +0 -3
  435. package/dist/sdk/shims/react-toastify.d.ts.map +0 -1
  436. package/dist/sdk/shims/react.d.ts +0 -3
  437. package/dist/sdk/shims/react.d.ts.map +0 -1
  438. package/dist/sdk/theme.d.ts +0 -26
  439. package/dist/sdk/theme.d.ts.map +0 -1
  440. package/dist/shims/admin-ui-plugins.js +0 -9
  441. package/dist/shims/apollo-client-react.js +0 -25
  442. package/dist/shims/apollo-client.js +0 -55
  443. package/dist/shims/next-head.js +0 -9
  444. package/dist/shims/next-image.js +0 -9
  445. package/dist/shims/next-link.js +0 -9
  446. package/dist/shims/next-router.js +0 -13
  447. package/dist/shims/react-dom-client.js +0 -11
  448. package/dist/shims/react-dom.js +0 -22
  449. package/dist/shims/react-hook-form.js +0 -25
  450. package/dist/shims/react-intl.js +0 -37
  451. package/dist/shims/react-jsx-runtime.js +0 -11
  452. package/dist/shims/react-toastify.js +0 -16
  453. package/dist/shims/react.js +0 -52
  454. package/dist/theme.js +0 -34
  455. package/dist/ui.js +0 -19764
  456. package/out/manifest.json +0 -48
  457. /package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_clientMiddlewareManifest.js +0 -0
  458. /package/out/_next/static/{4ESrB8YpR2n44PFePtbgX → jOx5PlckLwWIJ5yrvePdU}/_ssgManifest.js +0 -0
@@ -1,326 +0,0 @@
1
- import { clsx_default, SubmitButton_default } from './chunk-HJKRGBDG.js';
2
- import { NoSymbolIcon_default } from './chunk-HERLM47Z.js';
3
- import { sharedContext } from './chunk-J23QSWDL.js';
4
- import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
5
- import { FormattedMessage, useIntl } from 'react-intl';
6
- import Image from 'next/image';
7
- import { createContext, useState } from 'react';
8
-
9
- var Button = ({
10
- text,
11
- children,
12
- onClick,
13
- className = "",
14
- disabled = false,
15
- id = "",
16
- variant = "primary",
17
- size = "md",
18
- type = "button",
19
- loading = false,
20
- icon,
21
- iconRight,
22
- fullWidth = false,
23
- rounded = "md",
24
- ariaLabel,
25
- ...props
26
- }) => {
27
- const baseClasses = "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";
28
- const sizeClasses = {
29
- xs: "px-2.5 py-1.5 text-xs h-6",
30
- sm: "px-3 py-2 text-sm h-8",
31
- md: "px-4 py-2 text-sm h-9",
32
- lg: "px-6 py-3 text-base h-11"
33
- };
34
- const roundedClasses = {
35
- none: "rounded-none",
36
- sm: "rounded-sm",
37
- md: "rounded-md",
38
- lg: "rounded-lg",
39
- full: "rounded-full"
40
- };
41
- const variantClasses = {
42
- primary: "border border-accent bg-accent text-text-on-accent hover:bg-accent-hover focus:ring-focus-ring",
43
- secondary: "border border-border-default bg-surface text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",
44
- tertiary: "border border-border-subtle bg-surface text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",
45
- quaternary: "bg-transparent text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",
46
- danger: "border border-danger bg-surface text-danger hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",
47
- ghost: "bg-transparent border border-transparent text-text-secondary hover:text-text-primary hover:bg-surface-raised focus:ring-focus-ring",
48
- 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",
49
- neutral: "border border-border-default bg-surface-raised text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",
50
- 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"
51
- };
52
- const content = children || text;
53
- const hasIcon = icon || iconRight;
54
- const spacingClass = hasIcon && content ? "gap-2" : "";
55
- return /* @__PURE__ */ jsx(
56
- "button",
57
- {
58
- id,
59
- type,
60
- disabled: disabled || loading,
61
- onClick,
62
- "aria-label": ariaLabel,
63
- className: clsx_default(
64
- baseClasses,
65
- sizeClasses[size],
66
- roundedClasses[rounded],
67
- variantClasses[variant],
68
- spacingClass,
69
- {
70
- "w-full": fullWidth
71
- },
72
- className
73
- ),
74
- ...props,
75
- children: loading ? /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
76
- /* @__PURE__ */ jsx("div", { className: "w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin" }),
77
- content
78
- ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
79
- icon,
80
- content,
81
- iconRight
82
- ] })
83
- }
84
- );
85
- };
86
- var Button_default = Button;
87
- var NoData = ({ message, className = "", Icon = null }) => {
88
- return /* @__PURE__ */ jsx(
89
- "div",
90
- {
91
- className: clsx_default(
92
- "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",
93
- className
94
- ),
95
- children: /* @__PURE__ */ jsxs("div", { className: "grid items-center justify-center", children: [
96
- /* @__PURE__ */ jsx("div", { className: "flex items-center justify-center text-slate-400 dark:text-slate-600", children: Icon || /* @__PURE__ */ jsx(NoSymbolIcon_default, { className: "h-6 w-6" }) }),
97
- /* @__PURE__ */ jsx(
98
- FormattedMessage,
99
- {
100
- id: "no_data_message",
101
- defaultMessage: "<p>No <span> {message} available</span> </p>",
102
- values: {
103
- p: (chunks) => /* @__PURE__ */ jsx("p", { className: "mt-2 m-auto flex items-center justify-center", children: chunks }),
104
- span: (chunks) => /* @__PURE__ */ jsxs("span", { className: "capitalize ml-1", children: [
105
- " ",
106
- chunks,
107
- " "
108
- ] }),
109
- message
110
- }
111
- }
112
- )
113
- ] })
114
- }
115
- );
116
- };
117
- var NoData_default = NoData;
118
- var NoImageSvg = ({
119
- className = "w-full h-full",
120
- width = 200,
121
- height = 200
122
- }) => {
123
- return /* @__PURE__ */ jsxs(
124
- "svg",
125
- {
126
- width,
127
- height,
128
- viewBox: "0 0 200 200",
129
- fill: "none",
130
- className,
131
- xmlns: "http://www.w3.org/2000/svg",
132
- children: [
133
- /* @__PURE__ */ jsx(
134
- "rect",
135
- {
136
- x: "10",
137
- y: "10",
138
- width: "180",
139
- height: "180",
140
- rx: "8",
141
- stroke: "currentColor",
142
- strokeWidth: "3",
143
- strokeDasharray: "8 4",
144
- fill: "transparent",
145
- className: "text-slate-800 dark:text-slate-400"
146
- }
147
- ),
148
- /* @__PURE__ */ jsx(
149
- "rect",
150
- {
151
- x: "40",
152
- y: "40",
153
- width: "120",
154
- height: "80",
155
- rx: "4",
156
- stroke: "currentColor",
157
- strokeWidth: "3",
158
- fill: "transparent"
159
- }
160
- ),
161
- /* @__PURE__ */ jsx(
162
- "path",
163
- {
164
- d: "M50 100 L70 80 L90 95 L110 75 L130 90 L150 70",
165
- stroke: "currentColor",
166
- strokeWidth: "3",
167
- fill: "none",
168
- strokeLinecap: "round",
169
- strokeLinejoin: "round"
170
- }
171
- ),
172
- /* @__PURE__ */ jsx(
173
- "circle",
174
- {
175
- cx: "130",
176
- cy: "55",
177
- r: "8",
178
- stroke: "currentColor",
179
- strokeWidth: "3",
180
- fill: "transparent"
181
- }
182
- ),
183
- /* @__PURE__ */ jsx(
184
- "text",
185
- {
186
- x: "100",
187
- y: "145",
188
- textAnchor: "middle",
189
- className: "text-text-secondary text-sm font-semibold",
190
- fill: "currentColor",
191
- children: "No Image"
192
- }
193
- )
194
- ]
195
- }
196
- );
197
- };
198
- var NoImageSvg_default = NoImageSvg;
199
-
200
- // src/modules/common/utils/defaultNextImageLoader.ts
201
- var defaultNextImageLoader = ({ src, width, quality = 75 }) => {
202
- if (src) return `${src}?w=${width}&q=${quality}`;
203
- return "/no-image.jpg";
204
- };
205
- var defaultNextImageLoader_default = defaultNextImageLoader;
206
- var ImageWithFallback = ({ fallbackSrc = "", src, ...props }) => {
207
- const [imageSrc, setImageSrc] = useState(src);
208
- const [hasError, setHasError] = useState(false);
209
- const { formatMessage } = useIntl();
210
- if (hasError || !imageSrc) {
211
- return /* @__PURE__ */ jsx(
212
- "div",
213
- {
214
- className: props.className || "w-full h-full flex items-center justify-center bg-surface",
215
- children: /* @__PURE__ */ jsx(
216
- NoImageSvg_default,
217
- {
218
- width: props.width || 200,
219
- height: props.height || 200,
220
- className: "max-w-full max-h-full"
221
- }
222
- )
223
- }
224
- );
225
- }
226
- return /* @__PURE__ */ jsx(
227
- Image,
228
- {
229
- src: imageSrc,
230
- loader: defaultNextImageLoader_default,
231
- alt: formatMessage({
232
- id: "image-not-found",
233
- defaultMessage: "Image not found"
234
- }),
235
- ...props,
236
- onError: () => {
237
- if (fallbackSrc && imageSrc !== fallbackSrc) {
238
- setImageSrc(fallbackSrc);
239
- } else {
240
- setHasError(true);
241
- }
242
- }
243
- }
244
- );
245
- };
246
- var ImageWithFallback_default = ImageWithFallback;
247
- var FormWrapperContext = sharedContext(
248
- "FormWrapperContext",
249
- createContext(false)
250
- );
251
- var FormWrapper = ({ children, className = "" }) => {
252
- return /* @__PURE__ */ jsx(FormWrapperContext.Provider, { value: true, children: /* @__PURE__ */ jsx("div", { className: "sm:max-w-full", children: /* @__PURE__ */ jsx(
253
- "div",
254
- {
255
- className: clsx_default(
256
- "bg-surface rounded-md shadow-sm overflow-hidden",
257
- className
258
- ),
259
- children
260
- }
261
- ) }) });
262
- };
263
- var FormWrapper_default = FormWrapper;
264
- var SaveAndCancelButtons = ({
265
- cancelText = null,
266
- showCancel = true,
267
- submitText = null,
268
- showSubmit = true,
269
- onCancel,
270
- className = ""
271
- }) => {
272
- const { formatMessage } = useIntl();
273
- return /* @__PURE__ */ jsxs(
274
- "span",
275
- {
276
- className: clsx_default(
277
- "flex shrink-0 items-center space-x-4 py-5 pl-1",
278
- className
279
- ),
280
- children: [
281
- showCancel ? /* @__PURE__ */ jsx(
282
- "button",
283
- {
284
- onClick: onCancel,
285
- "data-id": "cancel_update",
286
- type: "button",
287
- className: clsx_default(
288
- "focus:ring-focus-ring",
289
- "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"
290
- ),
291
- children: cancelText || formatMessage({
292
- id: "cancel",
293
- defaultMessage: "Cancel"
294
- })
295
- }
296
- ) : null,
297
- showSubmit ? /* @__PURE__ */ jsx(
298
- SubmitButton_default,
299
- {
300
- label: submitText || formatMessage({
301
- id: "save",
302
- defaultMessage: "Save"
303
- })
304
- }
305
- ) : null
306
- ]
307
- }
308
- );
309
- };
310
- var SaveAndCancelButtons_default = SaveAndCancelButtons;
311
- var DraggableIcon = () => {
312
- return /* @__PURE__ */ jsx(
313
- "svg",
314
- {
315
- xmlns: "http://www.w3.org/2000/svg",
316
- className: "h-5 w-4 text-slate-900 group-hover:text-slate-800 dark:text-slate-500 dark:group-hover:text-slate-400",
317
- viewBox: "0 0 20 20",
318
- fill: "currentColor",
319
- "aria-hidden": "true",
320
- children: /* @__PURE__ */ jsx("path", { d: "M8.5 17c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7-10c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm-7 3c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm7 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm0 7c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-7-14c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z" })
321
- }
322
- );
323
- };
324
- var DraggableIcon_default = DraggableIcon;
325
-
326
- export { Button_default, DraggableIcon_default, FormWrapperContext, FormWrapper_default, ImageWithFallback_default, NoData_default, NoImageSvg_default, SaveAndCancelButtons_default };
@@ -1,57 +0,0 @@
1
- import { gql } from '@apollo/client';
2
-
3
- // src/modules/product-review/fragments/ProductReviewDetailFragment.ts
4
- var ProductReviewDetailFragment = gql`
5
- fragment ProductReviewDetailFragment on ProductReview {
6
- _id
7
- created
8
- updated
9
- deleted
10
- author {
11
- _id
12
- username
13
- name
14
- profile {
15
- displayName
16
- address {
17
- firstName
18
- lastName
19
- }
20
- }
21
- isGuest
22
- avatar {
23
- _id
24
-
25
- url
26
- }
27
- }
28
- product {
29
- _id
30
- texts(forceLocale: $forceLocale) {
31
- _id
32
- title
33
- subtitle
34
- }
35
- media {
36
- _id
37
- file {
38
- _id
39
- url
40
- }
41
- }
42
- }
43
- rating
44
- title
45
- review
46
- upVote: voteCount(type: UPVOTE)
47
- downVote: voteCount(type: DOWNVOTE)
48
- voteReport: voteCount(type: REPORT)
49
- ownVotes {
50
- timestamp
51
- type
52
- }
53
- }
54
- `;
55
- var ProductReviewDetailFragment_default = ProductReviewDetailFragment;
56
-
57
- export { ProductReviewDetailFragment_default };
@@ -1,73 +0,0 @@
1
- import { useAddWork_default, GetWorkQuery } from './chunk-VYEXPG3M.js';
2
- import { useState, useCallback } from 'react';
3
- import { toast } from 'react-toastify';
4
- import { useIntl } from 'react-intl';
5
- import { useApolloClient } from '@apollo/client/react';
6
- import { useRouter } from 'next/router';
7
-
8
- var useCSVExport = () => {
9
- const [isExporting, setIsExporting] = useState(false);
10
- const client = useApolloClient();
11
- const router = useRouter();
12
- const { addWork } = useAddWork_default();
13
- const { formatMessage } = useIntl();
14
- const getWorkStatus = useCallback(
15
- async (workId) => {
16
- const { data } = await client.query({
17
- query: GetWorkQuery(),
18
- variables: { workId },
19
- fetchPolicy: "network-only"
20
- });
21
- return data?.work ?? null;
22
- },
23
- [client]
24
- );
25
- const exportCSV = useCallback(
26
- async ({ type, pollInterval = 2e3, ...params }) => {
27
- setIsExporting(true);
28
- try {
29
- const worker = await addWork({
30
- type: "BULK_EXPORT" /* BulkExport */,
31
- input: { type, ...params }
32
- });
33
- const workId = worker?.data?.addWork?._id;
34
- if (!workId) throw new Error("Failed to create export work");
35
- await new Promise((resolve, reject) => {
36
- const interval = setInterval(async () => {
37
- try {
38
- const work = await getWorkStatus(workId);
39
- if (!work) throw new Error("Work not found");
40
- if (work.status === "SUCCESS" /* Success */ || work.status === "FAILED" /* Failed */) {
41
- clearInterval(interval);
42
- if (work.status === "SUCCESS" /* Success */ && work.success) {
43
- router.push(`/exports?workId=${work._id}`);
44
- resolve(work);
45
- } else {
46
- reject(work.error || new Error("Export failed"));
47
- }
48
- }
49
- } catch (err) {
50
- clearInterval(interval);
51
- reject(err);
52
- }
53
- }, pollInterval);
54
- });
55
- } catch (error) {
56
- console.error("Export failed:", error);
57
- toast.error(
58
- formatMessage({
59
- id: "export_failed",
60
- defaultMessage: "Export failed. Please try again."
61
- })
62
- );
63
- return null;
64
- } finally {
65
- setIsExporting(false);
66
- }
67
- },
68
- [addWork, getWorkStatus, router, formatMessage]
69
- );
70
- return { isExporting, exportCSV };
71
- };
72
-
73
- export { useCSVExport };
@@ -1,13 +0,0 @@
1
- // src/modules/common/utils/getUniqueId.ts
2
- var parseUniqueId = (value) => {
3
- if (!value) return null;
4
- const slugAndId = value?.split("_id_");
5
- return slugAndId?.pop();
6
- };
7
- var parseSlug = (value) => {
8
- if (!value) return null;
9
- const [slug] = value?.split("_id_") || [];
10
- return slug;
11
- };
12
-
13
- export { parseSlug, parseUniqueId };
@@ -1,26 +0,0 @@
1
- import { gql } from '@apollo/client';
2
-
3
- // src/modules/product/fragments/TokenFragment.ts
4
- var TokenFragment = gql`
5
- fragment TokenFragment on Token {
6
- _id
7
- walletAddress
8
- status
9
- quantity
10
- contractAddress
11
- chainId
12
- tokenSerialNumber
13
- invalidatedDate
14
- expiryDate
15
- ercMetadata
16
- order {
17
- _id
18
- orderNumber
19
- }
20
- accessKey
21
- isInvalidateable
22
- }
23
- `;
24
- var TokenFragment_default = TokenFragment;
25
-
26
- export { TokenFragment_default };
@@ -1,8 +0,0 @@
1
- // src/modules/common/utils/sharedContext.ts
2
- function sharedContext(name, context) {
3
- if (typeof window === "undefined") return context;
4
- const registry = window.__UNCHAINED_SHARED_CONTEXTS__ ??= {};
5
- return registry[name] ??= context;
6
- }
7
-
8
- export { sharedContext };
@@ -1,18 +0,0 @@
1
- import { gql } from '@apollo/client';
2
-
3
- // src/modules/common/fragments/AddressFragment.ts
4
- var AddressFragment = gql`
5
- fragment AddressFragment on Address {
6
- firstName
7
- lastName
8
- company
9
- addressLine
10
- postalCode
11
- city
12
- countryCode
13
- regionCode
14
- }
15
- `;
16
- var AddressFragment_default = AddressFragment;
17
-
18
- export { AddressFragment_default };
@@ -1,76 +0,0 @@
1
- import { useIntl } from 'react-intl';
2
- import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
3
-
4
- // src/modules/modal/components/DangerMessage.tsx
5
- var DangerMessage = ({
6
- onOkClick,
7
- onCancelClick,
8
- okText = null,
9
- cancelText = null,
10
- headerText = null,
11
- message = null,
12
- icon = null,
13
- close = null,
14
- loading = false
15
- }) => {
16
- const { formatMessage } = useIntl();
17
- return /* @__PURE__ */ jsxs(Fragment, { children: [
18
- /* @__PURE__ */ jsxs("div", { className: "sm:flex sm:items-start", children: [
19
- icon || /* @__PURE__ */ jsx("div", { className: "mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10", children: /* @__PURE__ */ jsx(
20
- "svg",
21
- {
22
- className: "h-6 w-6 text-danger",
23
- xmlns: "http://www.w3.org/2000/svg",
24
- fill: "none",
25
- viewBox: "0 0 24 24",
26
- stroke: "currentColor",
27
- "aria-hidden": "true",
28
- children: /* @__PURE__ */ jsx(
29
- "path",
30
- {
31
- strokeLinecap: "round",
32
- strokeLinejoin: "round",
33
- strokeWidth: "2",
34
- d: "M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"
35
- }
36
- )
37
- }
38
- ) }),
39
- /* @__PURE__ */ jsxs("div", { className: "mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left", children: [
40
- /* @__PURE__ */ jsx("h3", { className: "text-lg text-text-primary", id: "modal-title", children: headerText || formatMessage({ id: "warning", defaultMessage: "Warning!" }) }),
41
- /* @__PURE__ */ jsx("div", { className: "mt-2", children: /* @__PURE__ */ jsx("p", { className: "text-sm text-text-muted", children: message || formatMessage({
42
- id: "are_you_sure",
43
- defaultMessage: "Are you sure?"
44
- }) }) })
45
- ] })
46
- ] }),
47
- /* @__PURE__ */ jsxs("div", { className: "mt-5 sm:mt-4 sm:flex sm:flex-row-reverse", children: [
48
- /* @__PURE__ */ jsx(
49
- "button",
50
- {
51
- id: "danger_continue",
52
- onClick: onOkClick,
53
- disabled: loading,
54
- "aria-busy": loading,
55
- type: "button",
56
- className: "inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:ml-3 sm:w-auto sm:text-sm",
57
- children: okText || formatMessage({ id: "continue", defaultMessage: "Continue" })
58
- }
59
- ),
60
- /* @__PURE__ */ jsx(
61
- "button",
62
- {
63
- id: "danger_cancel",
64
- onClick: onCancelClick || close,
65
- disabled: loading,
66
- type: "button",
67
- className: "mt-3 inline-flex w-full justify-center rounded-md border border-border-default bg-surface px-4 py-2 text-base font-medium text-text-secondary shadow-xs hover:bg-surface-raised focus:outline-hidden focus:ring-2 focus:ring-focus-ring focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",
68
- children: cancelText || formatMessage({ id: "cancel", defaultMessage: "Cancel" })
69
- }
70
- )
71
- ] })
72
- ] });
73
- };
74
- var DangerMessage_default = DangerMessage;
75
-
76
- export { DangerMessage_default };
@@ -1,70 +0,0 @@
1
- import { gql } from '@apollo/client';
2
- import { useQuery } from '@apollo/client/react';
3
-
4
- // src/modules/currency/hooks/useCurrencies.ts
5
- var CurrencyFragment = gql`
6
- fragment CurrencyFragment on Currency {
7
- _id
8
- isoCode
9
- isActive
10
- contractAddress
11
- decimals
12
- }
13
- `;
14
- var CurrencyFragment_default = CurrencyFragment;
15
-
16
- // src/modules/currency/hooks/useCurrencies.ts
17
- var CurrenciesQuery = gql`
18
- query Currencies(
19
- $queryString: String
20
- $limit: Int
21
- $offset: Int
22
- $includeInactive: Boolean
23
- $sort: [SortOptionInput!]
24
- ) {
25
- currencies(
26
- queryString: $queryString
27
- limit: $limit
28
- offset: $offset
29
- includeInactive: $includeInactive
30
- sort: $sort
31
- ) {
32
- ...CurrencyFragment
33
- }
34
- currenciesCount(
35
- includeInactive: $includeInactive
36
- queryString: $queryString
37
- )
38
- }
39
- ${CurrencyFragment_default}
40
- `;
41
- var useCurrencies = ({
42
- queryString = "",
43
- limit = 20,
44
- offset = 0,
45
- includeInactive = true,
46
- sort = []
47
- } = {}) => {
48
- const { data, loading, error, fetchMore } = useQuery(CurrenciesQuery, {
49
- variables: { queryString, limit, offset, includeInactive, sort }
50
- });
51
- const currencies = data?.currencies || [];
52
- const currenciesCount = data?.currenciesCount;
53
- const hasMore = currencies?.length < currenciesCount;
54
- const loadMore = () => {
55
- fetchMore({
56
- variables: { offset: currencies?.length }
57
- });
58
- };
59
- return {
60
- currencies,
61
- currenciesCount,
62
- hasMore,
63
- loading,
64
- error,
65
- loadMore
66
- };
67
- };
68
- var useCurrencies_default = useCurrencies;
69
-
70
- export { CurrencyFragment_default, useCurrencies_default };
@@ -1,26 +0,0 @@
1
- import { gql } from '@apollo/client';
2
-
3
- // src/modules/filter/fragments/FilterFragment.ts
4
- var FilterFragment = gql`
5
- fragment FilterFragment on Filter {
6
- _id
7
- updated
8
- created
9
- key
10
- isActive
11
- type
12
- options {
13
- _id
14
- texts {
15
- _id
16
- title
17
- subtitle
18
- locale
19
- }
20
- value
21
- }
22
- }
23
- `;
24
- var FilterFragment_default = FilterFragment;
25
-
26
- export { FilterFragment_default };