@unchainedshop/admin-ui 4.8.32 → 4.8.34

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 (817) hide show
  1. package/dist/chunk-2HTCKO4E.js +45 -0
  2. package/dist/chunk-4MXPTVDL.js +3308 -0
  3. package/dist/chunk-54DKBWXV.js +33 -0
  4. package/dist/chunk-6UGLNLJG.js +44 -0
  5. package/dist/chunk-ATZJXTRA.js +618 -0
  6. package/dist/chunk-BOMSMJF2.js +77 -0
  7. package/dist/chunk-COV7BREX.js +50 -0
  8. package/dist/chunk-CUYIP5XG.js +1099 -0
  9. package/dist/chunk-E6HDJYA6.js +388 -0
  10. package/dist/chunk-EAVP6XZQ.js +44 -0
  11. package/dist/chunk-ED2FP42R.js +2083 -0
  12. package/dist/chunk-EJDZRZSZ.js +59 -0
  13. package/dist/chunk-ELPURWDC.js +75 -0
  14. package/dist/chunk-F6LBNV3H.js +9 -0
  15. package/dist/chunk-GWMLIF3C.js +694 -0
  16. package/dist/chunk-GY2DRQGW.js +166 -0
  17. package/dist/chunk-HERLM47Z.js +309 -0
  18. package/dist/chunk-IAQPLRXZ.js +16 -0
  19. package/dist/chunk-ILYPJE4N.js +57 -0
  20. package/dist/chunk-IWKDBADX.js +73 -0
  21. package/dist/chunk-IXBMHOB5.js +13 -0
  22. package/dist/chunk-IYKPRAWC.js +26 -0
  23. package/dist/chunk-J23QSWDL.js +8 -0
  24. package/dist/chunk-KH5MK6ZW.js +18 -0
  25. package/dist/chunk-KRIRF7F6.js +76 -0
  26. package/dist/chunk-NFJE5EJG.js +135 -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-PGJTFYBT.js +23000 -0
  31. package/dist/chunk-PUI5BIKO.js +41 -0
  32. package/dist/chunk-Q6S3LBUF.js +180 -0
  33. package/dist/chunk-QWQ3WJJN.js +1 -0
  34. package/dist/chunk-RAQV2GYF.js +70 -0
  35. package/dist/chunk-VBO377AY.js +14 -0
  36. package/dist/chunk-VYEXPG3M.js +107 -0
  37. package/dist/chunk-YO6PT7KD.js +13 -0
  38. package/dist/chunk-YUXHILXY.js +326 -0
  39. package/dist/chunk-ZUOVKRKC.js +957 -0
  40. package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
  41. package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
  42. package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
  43. package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
  44. package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
  45. package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
  46. package/dist/components/ui/ActiveInActive.d.ts +10 -0
  47. package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
  48. package/dist/components/ui/AnimatedCounter.d.ts +7 -0
  49. package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
  50. package/dist/components/ui/Badge.d.ts +10 -0
  51. package/dist/components/ui/Badge.d.ts.map +1 -0
  52. package/dist/components/ui/BreadCrumbs.d.ts +7 -0
  53. package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
  54. package/dist/components/ui/Button.d.ts +36 -0
  55. package/dist/components/ui/Button.d.ts.map +1 -0
  56. package/dist/components/ui/CopyableText.d.ts +5 -0
  57. package/dist/components/ui/CopyableText.d.ts.map +1 -0
  58. package/dist/components/ui/DateInput.d.ts +15 -0
  59. package/dist/components/ui/DateInput.d.ts.map +1 -0
  60. package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
  61. package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
  62. package/dist/components/ui/DetailHeader.d.ts +6 -0
  63. package/dist/components/ui/DetailHeader.d.ts.map +1 -0
  64. package/dist/components/ui/DraggableIcon.d.ts +3 -0
  65. package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
  66. package/dist/components/ui/ErrorBoundary.d.ts +18 -0
  67. package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
  68. package/dist/components/ui/ErrorFallback.d.ts +6 -0
  69. package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
  70. package/dist/components/ui/HelpText.d.ts +11 -0
  71. package/dist/components/ui/HelpText.d.ts.map +1 -0
  72. package/dist/components/ui/ImageWithFallback.d.ts +7 -0
  73. package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
  74. package/dist/components/ui/InfoTextBanner.d.ts +6 -0
  75. package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
  76. package/dist/components/ui/JSONView.d.ts +6 -0
  77. package/dist/components/ui/JSONView.d.ts.map +1 -0
  78. package/dist/components/ui/ListHeader.d.ts +6 -0
  79. package/dist/components/ui/ListHeader.d.ts.map +1 -0
  80. package/dist/components/ui/Loading.d.ts +10 -0
  81. package/dist/components/ui/Loading.d.ts.map +1 -0
  82. package/dist/components/ui/NoData.d.ts +7 -0
  83. package/dist/components/ui/NoData.d.ts.map +1 -0
  84. package/dist/components/ui/NoImage.d.ts +7 -0
  85. package/dist/components/ui/NoImage.d.ts.map +1 -0
  86. package/dist/components/ui/NoImageSvg.d.ts +8 -0
  87. package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
  88. package/dist/components/ui/PageHeader.d.ts +11 -0
  89. package/dist/components/ui/PageHeader.d.ts.map +1 -0
  90. package/dist/components/ui/Pagination.d.ts +8 -0
  91. package/dist/components/ui/Pagination.d.ts.map +1 -0
  92. package/dist/components/ui/Portal/Portal.d.ts +16 -0
  93. package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
  94. package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
  95. package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
  96. package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
  97. package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
  98. package/dist/components/ui/SearchField.d.ts +7 -0
  99. package/dist/components/ui/SearchField.d.ts.map +1 -0
  100. package/dist/components/ui/Tab.d.ts +18 -0
  101. package/dist/components/ui/Tab.d.ts.map +1 -0
  102. package/dist/components/ui/Tag/TagInput.d.ts +19 -0
  103. package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
  104. package/dist/components/ui/Tag/TagList.d.ts +8 -0
  105. package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
  106. package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
  107. package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
  108. package/dist/components/ui/Toggle.d.ts +11 -0
  109. package/dist/components/ui/Toggle.d.ts.map +1 -0
  110. package/dist/components/ui/ToolTip.d.ts +7 -0
  111. package/dist/components/ui/ToolTip.d.ts.map +1 -0
  112. package/dist/components/ui/card.d.ts +9 -0
  113. package/dist/components/ui/card.d.ts.map +1 -0
  114. package/dist/components/ui/chart.d.ts +42 -0
  115. package/dist/components/ui/chart.d.ts.map +1 -0
  116. package/dist/components/ui/form/CheckboxField.d.ts +4 -0
  117. package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
  118. package/dist/components/ui/form/ChoicesField.d.ts +12 -0
  119. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
  120. package/dist/components/ui/form/Combobox.d.ts +20 -0
  121. package/dist/components/ui/form/Combobox.d.ts.map +1 -0
  122. package/dist/components/ui/form/DatePickerField.d.ts +4 -0
  123. package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
  124. package/dist/components/ui/form/EmailField.d.ts +7 -0
  125. package/dist/components/ui/form/EmailField.d.ts.map +1 -0
  126. package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
  127. package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
  128. package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
  129. package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
  130. package/dist/components/ui/form/FormErrors.d.ts +6 -0
  131. package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
  132. package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
  133. package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
  134. package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
  135. package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
  136. package/dist/components/ui/form/PasswordField.d.ts +3 -0
  137. package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
  138. package/dist/components/ui/form/SelectField.d.ts +11 -0
  139. package/dist/components/ui/form/SelectField.d.ts.map +1 -0
  140. package/dist/components/ui/form/SubmitButton.d.ts +9 -0
  141. package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
  142. package/dist/components/ui/form/TagInputField.d.ts +7 -0
  143. package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
  144. package/dist/components/ui/form/TextAreaField.d.ts +8 -0
  145. package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
  146. package/dist/components/ui/form/TextField.d.ts +10 -0
  147. package/dist/components/ui/form/TextField.d.ts.map +1 -0
  148. package/dist/components/ui/form/index.d.ts +18 -0
  149. package/dist/components/ui/form/index.d.ts.map +1 -0
  150. package/dist/components/ui/icons.d.ts +4 -0
  151. package/dist/components/ui/icons.d.ts.map +1 -0
  152. package/dist/components/ui/index.d.ts +47 -0
  153. package/dist/components/ui/index.d.ts.map +1 -0
  154. package/dist/form.js +3128 -0
  155. package/dist/gql/operation-types.d.ts +13239 -0
  156. package/dist/gql/operation-types.d.ts.map +1 -0
  157. package/dist/gql/schema-types.d.ts +3876 -0
  158. package/dist/gql/schema-types.d.ts.map +1 -0
  159. package/dist/gql/types.d.ts +3 -0
  160. package/dist/gql/types.d.ts.map +1 -0
  161. package/dist/hooks.js +49 -0
  162. package/dist/lib/utils.d.ts +3 -0
  163. package/dist/lib/utils.d.ts.map +1 -0
  164. package/dist/modal.js +51 -0
  165. package/dist/modules/Auth/AuthContext.d.ts +9 -0
  166. package/dist/modules/Auth/AuthContext.d.ts.map +1 -0
  167. package/dist/modules/Auth/useAuth.d.ts +6 -0
  168. package/dist/modules/Auth/useAuth.d.ts.map +1 -0
  169. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
  170. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
  171. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
  172. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
  173. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
  174. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
  175. package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
  176. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
  177. package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
  178. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
  179. package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
  180. package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
  181. package/dist/modules/accounts.js +1349 -0
  182. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
  183. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
  184. package/dist/modules/assortment.js +1205 -0
  185. package/dist/modules/common/components/AppContext.d.ts +18 -0
  186. package/dist/modules/common/components/AppContext.d.ts.map +1 -0
  187. package/dist/modules/common/components/FormWrapper.d.ts +8 -0
  188. package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
  189. package/dist/modules/common/components/LocaleWrapper.d.ts +7 -0
  190. package/dist/modules/common/components/LocaleWrapper.d.ts.map +1 -0
  191. package/dist/modules/common/components/MediaAvatar.d.ts +6 -0
  192. package/dist/modules/common/components/MediaAvatar.d.ts.map +1 -0
  193. package/dist/modules/common/components/SelectOptions.d.ts +17 -0
  194. package/dist/modules/common/components/SelectOptions.d.ts.map +1 -0
  195. package/dist/modules/common/components/Table.d.ts +25 -0
  196. package/dist/modules/common/components/Table.d.ts.map +1 -0
  197. package/dist/modules/common/components/TableCell.d.ts +12 -0
  198. package/dist/modules/common/components/TableCell.d.ts.map +1 -0
  199. package/dist/modules/common/components/TableRow.d.ts +10 -0
  200. package/dist/modules/common/components/TableRow.d.ts.map +1 -0
  201. package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
  202. package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
  203. package/dist/modules/common/data/iso-codes.d.ts +4 -0
  204. package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
  205. package/dist/modules/common/data/miscellaneous.d.ts +52 -0
  206. package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
  207. package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
  208. package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
  209. package/dist/modules/common/hooks/useApp.d.ts +11 -0
  210. package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
  211. package/dist/modules/common/hooks/useBulkResultHandler.d.ts +8 -0
  212. package/dist/modules/common/hooks/useBulkResultHandler.d.ts.map +1 -0
  213. package/dist/modules/common/hooks/useBulkSelection.d.ts +12 -0
  214. package/dist/modules/common/hooks/useBulkSelection.d.ts.map +1 -0
  215. package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
  216. package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
  217. package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
  218. package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
  219. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
  220. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
  221. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
  222. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
  223. package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
  224. package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
  225. package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
  226. package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
  227. package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
  228. package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
  229. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
  230. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
  231. package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
  232. package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
  233. package/dist/modules/common/hooks/usePortal.d.ts +20 -0
  234. package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
  235. package/dist/modules/common/hooks/useScrollRestoration.d.ts +8 -0
  236. package/dist/modules/common/hooks/useScrollRestoration.d.ts.map +1 -0
  237. package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
  238. package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
  239. package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
  240. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
  241. package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
  242. package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
  243. package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
  244. package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
  245. package/dist/modules/common/hooks/useTheme.d.ts +7 -0
  246. package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
  247. package/dist/modules/common/utils/deBounce.d.ts +3 -0
  248. package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
  249. package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
  250. package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
  251. package/dist/modules/common/utils/formatUsername.d.ts +3 -0
  252. package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
  253. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
  254. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
  255. package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
  256. package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
  257. package/dist/modules/common/utils/sharedContext.d.ts +9 -0
  258. package/dist/modules/common/utils/sharedContext.d.ts.map +1 -0
  259. package/dist/modules/common/utils/useFormatDateTime.d.ts +16 -0
  260. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
  261. package/dist/modules/common/utils/utils.d.ts +21 -0
  262. package/dist/modules/common/utils/utils.d.ts.map +1 -0
  263. package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
  264. package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
  265. package/dist/modules/country/hooks/useCountries.d.ts +22 -0
  266. package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
  267. package/dist/modules/country.js +108 -0
  268. package/dist/modules/currency.js +119 -0
  269. package/dist/modules/delivery-provider.js +269 -0
  270. package/dist/modules/enrollment.js +431 -0
  271. package/dist/modules/event.js +123 -0
  272. package/dist/modules/filter.js +497 -0
  273. package/dist/modules/forms/components/Form.d.ts +8 -0
  274. package/dist/modules/forms/components/Form.d.ts.map +1 -0
  275. package/dist/modules/forms/hooks/useField.d.ts +35 -0
  276. package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
  277. package/dist/modules/forms/hooks/useForm.d.ts +44 -0
  278. package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
  279. package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
  280. package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
  281. package/dist/modules/forms/lib/FormContext.d.ts +13 -0
  282. package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
  283. package/dist/modules/forms/lib/clean.d.ts +3 -0
  284. package/dist/modules/forms/lib/clean.d.ts.map +1 -0
  285. package/dist/modules/forms/lib/validators.d.ts +20 -0
  286. package/dist/modules/forms/lib/validators.d.ts.map +1 -0
  287. package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
  288. package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
  289. package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
  290. package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
  291. package/dist/modules/language.js +106 -0
  292. package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
  293. package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
  294. package/dist/modules/modal/components/DangerMessage.d.ts +13 -0
  295. package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
  296. package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
  297. package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
  298. package/dist/modules/modal/components/Modal.d.ts +10 -0
  299. package/dist/modules/modal/components/Modal.d.ts.map +1 -0
  300. package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
  301. package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
  302. package/dist/modules/modal/hooks/useModal.d.ts +7 -0
  303. package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
  304. package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
  305. package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
  306. package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
  307. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
  308. package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
  309. package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
  310. package/dist/modules/order/hooks/useOrders.d.ts +46 -0
  311. package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
  312. package/dist/modules/order.js +569 -0
  313. package/dist/modules/payment-providers.js +206 -0
  314. package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
  315. package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
  316. package/dist/modules/product-review.js +270 -0
  317. package/dist/modules/product.js +6914 -0
  318. package/dist/modules/quotation.js +324 -0
  319. package/dist/modules/token.js +143 -0
  320. package/dist/modules/warehousing-providers.js +206 -0
  321. package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
  322. package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
  323. package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
  324. package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
  325. package/dist/modules/work/hooks/useWork.d.ts +32 -0
  326. package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
  327. package/dist/modules/work.js +232 -0
  328. package/dist/plugins.js +13 -0
  329. package/dist/providers.js +9 -0
  330. package/dist/sdk/hooks.d.ts +12 -0
  331. package/dist/sdk/hooks.d.ts.map +1 -0
  332. package/dist/sdk/modal.d.ts +7 -0
  333. package/dist/sdk/modal.d.ts.map +1 -0
  334. package/dist/sdk/plugins.d.ts +78 -0
  335. package/dist/sdk/plugins.d.ts.map +1 -0
  336. package/dist/sdk/providers.d.ts +5 -0
  337. package/dist/sdk/providers.d.ts.map +1 -0
  338. package/dist/sdk/shims/admin-ui-plugins.d.ts +3 -0
  339. package/dist/sdk/shims/admin-ui-plugins.d.ts.map +1 -0
  340. package/dist/sdk/shims/apollo-client-react.d.ts +3 -0
  341. package/dist/sdk/shims/apollo-client-react.d.ts.map +1 -0
  342. package/dist/sdk/shims/apollo-client.d.ts +3 -0
  343. package/dist/sdk/shims/apollo-client.d.ts.map +1 -0
  344. package/dist/sdk/shims/host.d.ts +17 -0
  345. package/dist/sdk/shims/host.d.ts.map +1 -0
  346. package/dist/sdk/shims/next-head.d.ts +3 -0
  347. package/dist/sdk/shims/next-head.d.ts.map +1 -0
  348. package/dist/sdk/shims/next-image.d.ts +3 -0
  349. package/dist/sdk/shims/next-image.d.ts.map +1 -0
  350. package/dist/sdk/shims/next-link.d.ts +3 -0
  351. package/dist/sdk/shims/next-link.d.ts.map +1 -0
  352. package/dist/sdk/shims/next-router.d.ts +3 -0
  353. package/dist/sdk/shims/next-router.d.ts.map +1 -0
  354. package/dist/sdk/shims/react-dom-client.d.ts +3 -0
  355. package/dist/sdk/shims/react-dom-client.d.ts.map +1 -0
  356. package/dist/sdk/shims/react-dom.d.ts +3 -0
  357. package/dist/sdk/shims/react-dom.d.ts.map +1 -0
  358. package/dist/sdk/shims/react-hook-form.d.ts +3 -0
  359. package/dist/sdk/shims/react-hook-form.d.ts.map +1 -0
  360. package/dist/sdk/shims/react-intl.d.ts +3 -0
  361. package/dist/sdk/shims/react-intl.d.ts.map +1 -0
  362. package/dist/sdk/shims/react-jsx-runtime.d.ts +3 -0
  363. package/dist/sdk/shims/react-jsx-runtime.d.ts.map +1 -0
  364. package/dist/sdk/shims/react-toastify.d.ts +3 -0
  365. package/dist/sdk/shims/react-toastify.d.ts.map +1 -0
  366. package/dist/sdk/shims/react.d.ts +3 -0
  367. package/dist/sdk/shims/react.d.ts.map +1 -0
  368. package/dist/sdk/theme.d.ts +26 -0
  369. package/dist/sdk/theme.d.ts.map +1 -0
  370. package/dist/shims/admin-ui-plugins.js +9 -0
  371. package/dist/shims/apollo-client-react.js +25 -0
  372. package/dist/shims/apollo-client.js +55 -0
  373. package/dist/shims/next-head.js +9 -0
  374. package/dist/shims/next-image.js +9 -0
  375. package/dist/shims/next-link.js +9 -0
  376. package/dist/shims/next-router.js +13 -0
  377. package/dist/shims/react-dom-client.js +11 -0
  378. package/dist/shims/react-dom.js +22 -0
  379. package/dist/shims/react-hook-form.js +25 -0
  380. package/dist/shims/react-intl.js +37 -0
  381. package/dist/shims/react-jsx-runtime.js +11 -0
  382. package/dist/shims/react-toastify.js +16 -0
  383. package/dist/shims/react.js +52 -0
  384. package/dist/theme.js +34 -0
  385. package/dist/ui.js +20247 -0
  386. package/out/403/index.html +3 -3
  387. package/out/404/index.html +3 -3
  388. package/out/404.html +3 -3
  389. package/out/423/index.html +3 -3
  390. package/out/500/index.html +3 -3
  391. package/out/_next/static/DUswS2PYjGTW9uUGVJ6xd/_buildManifest.js +258 -0
  392. package/out/_next/static/chunks/0-e21p2v90828.js +23 -0
  393. package/out/_next/static/chunks/0-w25xfpw-_e9.js +44 -0
  394. package/out/_next/static/chunks/011h6mc3kuxq9.js +217 -0
  395. package/out/_next/static/chunks/01n5rd9ngv-t4.js +1 -0
  396. package/out/_next/static/chunks/01rghd4wcj4ex.js +5 -0
  397. package/out/_next/static/chunks/03omde6jo6sta.js +1 -0
  398. package/out/_next/static/chunks/06gyzyq56kw_2.js +6 -0
  399. package/out/_next/static/chunks/{2ajr0rk0_yax6.js → 06kqbwwnuu3te.js} +1 -1
  400. package/out/_next/static/chunks/07i53w2a3x0so.js +1 -0
  401. package/out/_next/static/chunks/09irjy-7k1922.js +1 -0
  402. package/out/_next/static/chunks/09kihj6ay6mqn.js +39 -0
  403. package/out/_next/static/chunks/09ml8g7-byzio.js +71 -0
  404. package/out/_next/static/chunks/09yk8jmltcqcd.js +5 -0
  405. package/out/_next/static/chunks/0_m0oaoy22un6.js +5 -0
  406. package/out/_next/static/chunks/0af-w950yl0l5.js +277 -0
  407. package/out/_next/static/chunks/0ah2m5cl87avs.js +935 -0
  408. package/out/_next/static/chunks/0ahfhl4hk0fuj.js +12 -0
  409. package/out/_next/static/chunks/0b4rcc2y1ex8j.js +12 -0
  410. package/out/_next/static/chunks/0buyef0vid-ym.js +224 -0
  411. package/out/_next/static/chunks/0czpir4zjwmos.js +1 -0
  412. package/out/_next/static/chunks/0duy5y86n4tl3.js +5 -0
  413. package/out/_next/static/chunks/0dzn-wes7gjdt.js +33 -0
  414. package/out/_next/static/chunks/{2rmgaa88-4bpb.js → 0e4nzgbtw6x_d.js} +4 -4
  415. package/out/_next/static/chunks/0eb98o1s1ojq7.js +5 -0
  416. package/out/_next/static/chunks/0gow2wyosbjb6.js +71 -0
  417. package/out/_next/static/chunks/0h4ehpg2f7fp2.js +46 -0
  418. package/out/_next/static/chunks/0hgha-mywwcsd.js +8 -0
  419. package/out/_next/static/chunks/0iliy1guwadr4.js +7 -0
  420. package/out/_next/static/chunks/0l0hzoqd-va5-.js +1 -0
  421. package/out/_next/static/chunks/0l1xycyhdztmy.js +46 -0
  422. package/out/_next/static/chunks/0lh8xbz1qulcr.js +15 -0
  423. package/out/_next/static/chunks/0mavm6oemhb-d.js +152 -0
  424. package/out/_next/static/chunks/0nk0kgnsiap5g.js +116 -0
  425. package/out/_next/static/chunks/0o3o1f00j5wxa.js +8 -0
  426. package/out/_next/static/chunks/0pny1c_ni8rn7.js +39 -0
  427. package/out/_next/static/chunks/0q62hlhpcumrt.js +33 -0
  428. package/out/_next/static/chunks/0qkdih-hi6c2m.js +15 -0
  429. package/out/_next/static/chunks/0qz61g2g6ijfh.js +54 -0
  430. package/out/_next/static/chunks/0raj1enjck-ex.js +4 -0
  431. package/out/_next/static/chunks/0rmomvc8u__n4.js +10 -0
  432. package/out/_next/static/chunks/0s0ufx1fl32v7.js +12 -0
  433. package/out/_next/static/chunks/0sgxa66r-iing.js +1 -0
  434. package/out/_next/static/chunks/0sv5w2_cae8tj.js +7 -0
  435. package/out/_next/static/chunks/0u_zr87ce7iu-.js +1 -0
  436. package/out/_next/static/chunks/0ub1l2hrjkz2-.js +1 -0
  437. package/out/_next/static/chunks/0uef4ugmc_g10.js +1 -0
  438. package/out/_next/static/chunks/0uksleo_xd7j5.js +1 -0
  439. package/out/_next/static/chunks/0wbciytf8tnsa.js +18 -0
  440. package/out/_next/static/chunks/0wd1l2f5cin-0.js +4 -0
  441. package/out/_next/static/chunks/0zfm51umxvjc6.js +1 -0
  442. package/out/_next/static/chunks/10enect1zh1vj.js +3 -0
  443. package/out/_next/static/chunks/11e6h7l-whxh3.js +7 -0
  444. package/out/_next/static/chunks/11vnr4kb9qkjr.js +1 -0
  445. package/out/_next/static/chunks/13bcbgywansr-.js +130 -0
  446. package/out/_next/static/chunks/13ytpmhxkpnwy.js +1 -0
  447. package/out/_next/static/chunks/14pnkf7som1m1.js +1 -0
  448. package/out/_next/static/chunks/17nr-ur3sbo_z.js +24 -0
  449. package/out/_next/static/chunks/1802-tohqffps.js +1 -0
  450. package/out/_next/static/chunks/181-yaruteuqm.js +61 -0
  451. package/out/_next/static/chunks/181zsbok_ljo_.js +4 -0
  452. package/out/_next/static/chunks/187p6ryym-x3i.js +5 -0
  453. package/out/_next/static/chunks/198-_r3as1j63.js +8 -0
  454. package/out/_next/static/chunks/19f7gu0kvm7xl.js +7 -0
  455. package/out/_next/static/chunks/19kin-dby998k.js +8 -0
  456. package/out/_next/static/chunks/1aojv48cs6ufj.js +6 -0
  457. package/out/_next/static/chunks/1cs-w7vppvm8o.js +1 -0
  458. package/out/_next/static/chunks/1cz2fp89ssu5d.js +4 -0
  459. package/out/_next/static/chunks/1dedrypk-h8qr.js +1 -0
  460. package/out/_next/static/chunks/1edk56b1rx05q.js +4 -0
  461. package/out/_next/static/chunks/1ew4i-mm087xs.js +4 -0
  462. package/out/_next/static/chunks/1ewn0p_wru2ra.js +15 -0
  463. package/out/_next/static/chunks/1g1na7eoafolj.js +1 -0
  464. package/out/_next/static/chunks/1gfocmey44pyr.js +7 -0
  465. package/out/_next/static/chunks/1grwyry6zqknr.js +100 -0
  466. package/out/_next/static/chunks/1gyt_0aw92ysk.js +5 -0
  467. package/out/_next/static/chunks/1hvvot0p0442h.js +5 -0
  468. package/out/_next/static/chunks/1inbspyz1wpdj.js +1 -0
  469. package/out/_next/static/chunks/1l2p87t0w4-yb.js +8 -0
  470. package/out/_next/static/chunks/1lew6f82bg1x1.js +1 -0
  471. package/out/_next/static/chunks/1nbc2o30_g9bj.js +95 -0
  472. package/out/_next/static/chunks/1nikeez809jr8.js +2 -0
  473. package/out/_next/static/chunks/1p1f35qy1lt0s.js +7 -0
  474. package/out/_next/static/chunks/1p3agrt0e0t9t.js +5 -0
  475. package/out/_next/static/chunks/1p6qsnui0zjik.js +44 -0
  476. package/out/_next/static/chunks/1pbfjibxvspoj.js +5 -0
  477. package/out/_next/static/chunks/1pcrg5m_9agof.js +5 -0
  478. package/out/_next/static/chunks/1rm2w7nvmejdw.js +31 -0
  479. package/out/_next/static/chunks/{1---h4b693b81.js → 1t5wlk2j9d4ss.js} +1 -1
  480. package/out/_next/static/chunks/{12yd8t4k6c0t1.js → 1t8jj0-6g8uyd.js} +1 -1
  481. package/out/_next/static/chunks/1ttpypjue-zdo.js +63 -0
  482. package/out/_next/static/chunks/1uzvaujlk79rn.js +145 -0
  483. package/out/_next/static/chunks/1xnlhfvi8m4a8.js +1 -0
  484. package/out/_next/static/chunks/1y0mbad52vao6.js +5 -0
  485. package/out/_next/static/chunks/1zfhgsywbsg2e.js +5 -0
  486. package/out/_next/static/chunks/1zhfbuv-et-34.js +13 -0
  487. package/out/_next/static/chunks/2-2kg667v82ek.js +171 -0
  488. package/out/_next/static/chunks/21z3-xqp62vs8.js +7 -0
  489. package/out/_next/static/chunks/22odam86c8kps.js +1 -0
  490. package/out/_next/static/chunks/23wfelj92rx3n.js +1 -0
  491. package/out/_next/static/chunks/243ubs_ig9hwo.js +13 -0
  492. package/out/_next/static/chunks/249u7sg_mycfl.js +24 -0
  493. package/out/_next/static/chunks/24_57hr3o_ll8.js +1 -0
  494. package/out/_next/static/chunks/252_8-fyz3vjh.js +9 -0
  495. package/out/_next/static/chunks/25_kx8fsd5k0d.js +5 -0
  496. package/out/_next/static/chunks/26wuxv_gsk3jb.js +30 -0
  497. package/out/_next/static/chunks/26x7o2gzms54c.js +6 -0
  498. package/out/_next/static/chunks/27h86ht8kvqop.js +267 -0
  499. package/out/_next/static/chunks/27tf612b6s-45.js +7 -0
  500. package/out/_next/static/chunks/{3qzrrjb48t2w3.js → 2893194r7ays6.js} +5 -5
  501. package/out/_next/static/chunks/294uscwjocbpf.js +5 -0
  502. package/out/_next/static/chunks/29c8fj1poxxec.js +39 -0
  503. package/out/_next/static/chunks/{439tz_ubj8h-g.js → 29fdom9djvjop.js} +9 -9
  504. package/out/_next/static/chunks/2__om5ddn5b91.js +7 -0
  505. package/out/_next/static/chunks/2_krlw-01uumq.js +119 -0
  506. package/out/_next/static/chunks/2a1m9ia2zp2t9.js +6 -0
  507. package/out/_next/static/chunks/2c2arjke9rx-g.js +14 -0
  508. package/out/_next/static/chunks/2de99go2pdzl3.js +12 -0
  509. package/out/_next/static/chunks/2dnn7jhe55iy8.js +32 -0
  510. package/out/_next/static/chunks/2eac98hmhj8tp.js +5 -0
  511. package/out/_next/static/chunks/2fxjo2s_nsjsa.js +5 -0
  512. package/out/_next/static/chunks/2h_j6q1pnhf07.js +16 -0
  513. package/out/_next/static/chunks/2hthxhwh84ls1.css +1 -0
  514. package/out/_next/static/chunks/2i07f6t3xq708.js +5 -0
  515. package/out/_next/static/chunks/2i6nzzm63658q.js +10 -0
  516. package/out/_next/static/chunks/2ksch2zc9k7uj.js +71 -0
  517. package/out/_next/static/chunks/{1gqd9vrno0rq4.js → 2lh-lsn2en0pp.js} +2 -2
  518. package/out/_next/static/chunks/2luj-95aqr25b.js +1 -0
  519. package/out/_next/static/chunks/2m_p_bx_gsrlf.js +5 -0
  520. package/out/_next/static/chunks/2of_ro6r-fwjx.js +16 -0
  521. package/out/_next/static/chunks/2oyujmi3aqs6f.js +5 -0
  522. package/out/_next/static/chunks/2pumckmhpvlo2.js +23 -0
  523. package/out/_next/static/chunks/2r4x7nghsoqhe.js +7 -0
  524. package/out/_next/static/chunks/2s-226q_lc70k.js +9 -0
  525. package/out/_next/static/chunks/2sc_zg0bvlmak.js +78 -0
  526. package/out/_next/static/chunks/2tlxpweh5c3fh.js +43 -0
  527. package/out/_next/static/chunks/{1_55km6vm5mc0.js → 2w_0wk23uirx6.js} +7 -7
  528. package/out/_next/static/chunks/2wg_0x11ef6uc.js +7 -0
  529. package/out/_next/static/chunks/2zx42lz8zcp91.js +6 -0
  530. package/out/_next/static/chunks/3-l_ott2smmqm.js +7 -0
  531. package/out/_next/static/chunks/30lpu8mp25ag1.js +41 -0
  532. package/out/_next/static/chunks/3168hp9w1h68h.js +68 -0
  533. package/out/_next/static/chunks/3180oblgqnad5.js +194 -0
  534. package/out/_next/static/chunks/32traobkc55z_.js +54 -0
  535. package/out/_next/static/chunks/33s24dpx0eo63.js +2 -0
  536. package/out/_next/static/chunks/{153ec1_-yt3jb.js → 343n05fzlb2an.js} +5 -5
  537. package/out/_next/static/chunks/35odkwyh-md-p.js +59 -0
  538. package/out/_next/static/chunks/35tgy8og7dw73.js +149 -0
  539. package/out/_next/static/chunks/36mjt8cgckx2r.js +1 -0
  540. package/out/_next/static/chunks/37j2g662wreov.js +108 -0
  541. package/out/_next/static/chunks/37vezmh4pf5j4.js +12 -0
  542. package/out/_next/static/chunks/37y01hdz8sxhr.js +1 -0
  543. package/out/_next/static/chunks/38uyt89jy0tt7.js +1 -0
  544. package/out/_next/static/chunks/39-pv-7i0kah_.js +155 -0
  545. package/out/_next/static/chunks/3__spmlu2_ez6.js +41 -0
  546. package/out/_next/static/chunks/3_zgl8ng3nj3g.js +9 -0
  547. package/out/_next/static/chunks/3a6ahlxxtjn1v.js +8 -0
  548. package/out/_next/static/chunks/{1tkvi0wb-x3v8.js → 3ae7hwg50q67p.js} +2 -2
  549. package/out/_next/static/chunks/3btzusax1chra.js +36 -0
  550. package/out/_next/static/chunks/3ciuktttw5i71.js +277 -0
  551. package/out/_next/static/chunks/{2ho4591ngh3y2.js → 3d0cucf7-qlz9.js} +6 -6
  552. package/out/_next/static/chunks/3d2mjl6ls12h_.js +5 -0
  553. package/out/_next/static/chunks/3dxz87hw4lx39.js +1 -0
  554. package/out/_next/static/chunks/3f2rrfc7u_j6o.js +1 -0
  555. package/out/_next/static/chunks/3fvf-l1-bp--9.js +5 -0
  556. package/out/_next/static/chunks/3hubf9lb56zls.js +7 -0
  557. package/out/_next/static/chunks/3hxp-xwv4g3ek.js +1 -0
  558. package/out/_next/static/chunks/3ljqspad_536i.js +4 -0
  559. package/out/_next/static/chunks/3mnca5jc1q8c_.js +43 -0
  560. package/out/_next/static/chunks/{0q2e8h8498pvo.js → 3qqhr2o1soxh_.js} +1 -1
  561. package/out/_next/static/chunks/3skw31vkshyt2.js +1 -0
  562. package/out/_next/static/chunks/3szdkqecej3fb.js +1 -0
  563. package/out/_next/static/chunks/3t-6admtmkzzy.js +39 -0
  564. package/out/_next/static/chunks/3t1q9dc-nlr3j.js +1 -0
  565. package/out/_next/static/chunks/3u6_-nj6i_l_r.js +1 -0
  566. package/out/_next/static/chunks/3uekb_s0jaboj.js +1 -0
  567. package/out/_next/static/chunks/3uql2yuaknc-3.js +1 -0
  568. package/out/_next/static/chunks/3vf-3rhaiq_n1.js +6 -0
  569. package/out/_next/static/chunks/3xtawjchyn0qb.js +1 -0
  570. package/out/_next/static/chunks/3xze13c1irm_5.js +1 -0
  571. package/out/_next/static/chunks/3ylglplnmhho2.js +5 -0
  572. package/out/_next/static/chunks/3ym4exwo-py5d.js +23 -0
  573. package/out/_next/static/chunks/3yre4w19nehxf.js +1 -0
  574. package/out/_next/static/chunks/3z51ql4pljujr.js +81 -0
  575. package/out/_next/static/chunks/3zhcq27e8jjni.js +28 -0
  576. package/out/_next/static/chunks/40fs5lh83_iox.js +1 -0
  577. package/out/_next/static/chunks/40kvqov4hgd5s.js +31 -0
  578. package/out/_next/static/chunks/40trlm34cnu6v.js +108 -0
  579. package/out/_next/static/chunks/43n5979c79f0d.js +1 -0
  580. package/out/_next/static/chunks/{turbopack-2c3mg3r-05n1w.js → turbopack-077hmtqrhcoji.js} +1 -1
  581. package/out/_offline/index.html +3 -3
  582. package/out/account/forgot-password/index.html +3 -3
  583. package/out/account/index.html +3 -3
  584. package/out/assortments/AssortmentDetailPage/index.html +3 -3
  585. package/out/assortments/index.html +3 -3
  586. package/out/assortments/new/index.html +3 -3
  587. package/out/copilot/index.html +3 -3
  588. package/out/country/CountryDetailPage/index.html +3 -3
  589. package/out/country/index.html +3 -3
  590. package/out/country/new/index.html +3 -3
  591. package/out/currency/CurrencyDetailPage/index.html +3 -3
  592. package/out/currency/index.html +3 -3
  593. package/out/currency/new/index.html +3 -3
  594. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +3 -3
  595. package/out/delivery-provider/index.html +3 -3
  596. package/out/delivery-provider/new/index.html +3 -3
  597. package/out/enrollments/EnrollmentDetailPage/index.html +3 -3
  598. package/out/enrollments/index.html +3 -3
  599. package/out/events/EventDetailPage/index.html +3 -3
  600. package/out/events/index.html +3 -3
  601. package/out/exports/index.html +3 -3
  602. package/out/external/index.html +3 -3
  603. package/out/filters/FilterDetailPage/index.html +3 -3
  604. package/out/filters/index.html +3 -3
  605. package/out/filters/new/index.html +3 -3
  606. package/out/index.html +3 -3
  607. package/out/install/index.html +3 -3
  608. package/out/language/LanguageDetailPage/index.html +3 -3
  609. package/out/language/index.html +3 -3
  610. package/out/language/new/index.html +3 -3
  611. package/out/log-in/index.html +3 -3
  612. package/out/manifest.json +48 -0
  613. package/out/orders/OrderDetailPage/index.html +3 -3
  614. package/out/orders/index.html +3 -3
  615. package/out/payment-provider/PaymentProviderDetailPage/index.html +3 -3
  616. package/out/payment-provider/index.html +3 -3
  617. package/out/payment-provider/new/index.html +3 -3
  618. package/out/products/ProductDetailPage/index.html +3 -3
  619. package/out/products/index.html +3 -3
  620. package/out/products/new/index.html +3 -3
  621. package/out/quotations/QuotationDetailPage/index.html +3 -3
  622. package/out/quotations/index.html +3 -3
  623. package/out/reset-password/index.html +3 -3
  624. package/out/sign-up/index.html +3 -3
  625. package/out/styleguide/index.html +3 -3
  626. package/out/tokens/TokenDetailPage/index.html +3 -3
  627. package/out/tokens/index.html +3 -3
  628. package/out/users/UserDetailPage/index.html +3 -3
  629. package/out/users/index.html +3 -3
  630. package/out/users/new/index.html +3 -3
  631. package/out/verify-email/index.html +3 -3
  632. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +3 -3
  633. package/out/warehousing-provider/index.html +3 -3
  634. package/out/warehousing-provider/new/index.html +3 -3
  635. package/out/works/WorkDetailPage/index.html +3 -3
  636. package/out/works/WorkQueueListView/index.html +3 -3
  637. package/out/works/index.html +3 -3
  638. package/out/works/management/index.html +3 -3
  639. package/package.json +2 -2
  640. package/out/_next/static/chunks/0-_s79k4_7ei_.js +0 -5
  641. package/out/_next/static/chunks/00aks9rqke2x0.js +0 -7
  642. package/out/_next/static/chunks/00az81dk4vdda.js +0 -54
  643. package/out/_next/static/chunks/01e4gd649r2tq.js +0 -7
  644. package/out/_next/static/chunks/01j2wi94k90x0.js +0 -5
  645. package/out/_next/static/chunks/043i-g05cyvrd.js +0 -1
  646. package/out/_next/static/chunks/04kyktzbxprj0.js +0 -61
  647. package/out/_next/static/chunks/05p330iybjojg.js +0 -44
  648. package/out/_next/static/chunks/05qk8ozexvlxp.js +0 -5
  649. package/out/_next/static/chunks/06i50j458a7g5.js +0 -12
  650. package/out/_next/static/chunks/07o9g5hqfpvjc.js +0 -12
  651. package/out/_next/static/chunks/08o61gwabp3h1.js +0 -33
  652. package/out/_next/static/chunks/0_bvgo8ev4gs7.js +0 -7
  653. package/out/_next/static/chunks/0a5nr3-_q7xx1.js +0 -100
  654. package/out/_next/static/chunks/0amj69l-d5-85.js +0 -1
  655. package/out/_next/static/chunks/0b05sca2hdcys.js +0 -30
  656. package/out/_next/static/chunks/0c3kwkqr9evm4.js +0 -5
  657. package/out/_next/static/chunks/0c4jv8pwvpxei.js +0 -1
  658. package/out/_next/static/chunks/0c7ljn9lo_0oh.js +0 -5
  659. package/out/_next/static/chunks/0ewr86ctcw7fx.js +0 -1
  660. package/out/_next/static/chunks/0jham55cr3rhy.js +0 -81
  661. package/out/_next/static/chunks/0lr7o7tyjmrmf.js +0 -8
  662. package/out/_next/static/chunks/0mx8opz23nwlb.js +0 -5
  663. package/out/_next/static/chunks/0n3ixknyc6_ma.js +0 -1
  664. package/out/_next/static/chunks/0o0e82-3pc7ur.js +0 -78
  665. package/out/_next/static/chunks/0ohk7l49gjm62.js +0 -5
  666. package/out/_next/static/chunks/0p31l6a9hynnt.js +0 -6
  667. package/out/_next/static/chunks/0qa-zbgmv-k3p.js +0 -9
  668. package/out/_next/static/chunks/0qj3xdz043z8l.js +0 -12
  669. package/out/_next/static/chunks/0skst735jufgh.js +0 -71
  670. package/out/_next/static/chunks/0t28q5fb2jp-6.js +0 -8
  671. package/out/_next/static/chunks/0tmamaq8exyij.js +0 -1
  672. package/out/_next/static/chunks/0ydy3ky15gx62.js +0 -1
  673. package/out/_next/static/chunks/0zh311lu9jf2x.js +0 -5
  674. package/out/_next/static/chunks/0zpyyygbqx3pf.js +0 -152
  675. package/out/_next/static/chunks/0zzoylv2rl1xu.js +0 -3
  676. package/out/_next/static/chunks/10m_etq9t2pkv.js +0 -7
  677. package/out/_next/static/chunks/11ehf3t7qzbua.js +0 -4
  678. package/out/_next/static/chunks/11go520d1hcm5.js +0 -1
  679. package/out/_next/static/chunks/16le3cqxj12u6.js +0 -5
  680. package/out/_next/static/chunks/16zxfacsu_jbq.js +0 -1
  681. package/out/_next/static/chunks/17fibl49qtd6c.js +0 -8
  682. package/out/_next/static/chunks/182l1mlbf0glb.js +0 -1
  683. package/out/_next/static/chunks/18xyj4i_i5lyn.js +0 -6
  684. package/out/_next/static/chunks/1aej6iqnlr74p.js +0 -1
  685. package/out/_next/static/chunks/1asbed4hne69c.js +0 -7
  686. package/out/_next/static/chunks/1c60nzy_x4kez.js +0 -277
  687. package/out/_next/static/chunks/1c77vl6xdqfd4.js +0 -15
  688. package/out/_next/static/chunks/1da89agg-nacc.js +0 -224
  689. package/out/_next/static/chunks/1f7-0l47bx76m.js +0 -13
  690. package/out/_next/static/chunks/1fbsyczyh9hwh.js +0 -1
  691. package/out/_next/static/chunks/1g96s7-fwvokd.js +0 -2
  692. package/out/_next/static/chunks/1hih2cxmgqcd3.js +0 -10
  693. package/out/_next/static/chunks/1hviha1jcz_og.js +0 -4
  694. package/out/_next/static/chunks/1il9vuoxtb2_n.js +0 -43
  695. package/out/_next/static/chunks/1jaatdt0mlypl.js +0 -16
  696. package/out/_next/static/chunks/1l4g6_of_bbr8.js +0 -5
  697. package/out/_next/static/chunks/1lezxecnoaxnn.js +0 -32
  698. package/out/_next/static/chunks/1m27au_nmk8_k.js +0 -71
  699. package/out/_next/static/chunks/1m4fwgl1mj4d-.js +0 -46
  700. package/out/_next/static/chunks/1ma82ip9shpkc.js +0 -24
  701. package/out/_next/static/chunks/1nbh1zkzirnuw.js +0 -1
  702. package/out/_next/static/chunks/1nohf8_cc6gmw.js +0 -9
  703. package/out/_next/static/chunks/1os6pvhjeb16o.js +0 -1
  704. package/out/_next/static/chunks/1qi5yjvzxspwv.js +0 -15
  705. package/out/_next/static/chunks/1rsexg6dg82f0.js +0 -7
  706. package/out/_next/static/chunks/1s9v5dndopkuz.js +0 -12
  707. package/out/_next/static/chunks/1sksqjru86hlm.js +0 -1
  708. package/out/_next/static/chunks/1u79pcgqjgjpq.js +0 -1
  709. package/out/_next/static/chunks/1uqiaqtv_0v2x.js +0 -5
  710. package/out/_next/static/chunks/1wnuiwsbi70eq.js +0 -116
  711. package/out/_next/static/chunks/1x8o-luxdxxk7.js +0 -1
  712. package/out/_next/static/chunks/1yjb7gogaf8po.js +0 -31
  713. package/out/_next/static/chunks/1zyhzessv0wtg.js +0 -1
  714. package/out/_next/static/chunks/2-pl31kdikt3k.js +0 -5
  715. package/out/_next/static/chunks/20c4_1i5r3kkz.js +0 -1
  716. package/out/_next/static/chunks/20f2gs8iua6fk.js +0 -1
  717. package/out/_next/static/chunks/20zdaln201w8j.js +0 -277
  718. package/out/_next/static/chunks/21l46nbaop06z.js +0 -39
  719. package/out/_next/static/chunks/22-o32hlte36e.js +0 -130
  720. package/out/_next/static/chunks/231j2_p-ha14w.js +0 -7
  721. package/out/_next/static/chunks/23s2f7_-ol94s.js +0 -8
  722. package/out/_next/static/chunks/26_mx-ritu68j.js +0 -24
  723. package/out/_next/static/chunks/26ckmxeluyknq.js +0 -1
  724. package/out/_next/static/chunks/26r0y7ldf3iqs.js +0 -6
  725. package/out/_next/static/chunks/27fzoozwycagi.js +0 -6
  726. package/out/_next/static/chunks/27jmq7a-vh0b4.js +0 -7
  727. package/out/_next/static/chunks/283567a82x9qi.js +0 -149
  728. package/out/_next/static/chunks/29he8uukp5s4u.js +0 -31
  729. package/out/_next/static/chunks/2adglo0sf0jcg.js +0 -905
  730. package/out/_next/static/chunks/2b4ewxxz6f462.js +0 -7
  731. package/out/_next/static/chunks/2bh2dv7j9m8c8.css +0 -1
  732. package/out/_next/static/chunks/2bi8v13lm76lr.js +0 -95
  733. package/out/_next/static/chunks/2burvpf9877y_.js +0 -44
  734. package/out/_next/static/chunks/2cj703xtrf5i6.js +0 -46
  735. package/out/_next/static/chunks/2cj8g3fxmitaa.js +0 -1
  736. package/out/_next/static/chunks/2ec7xatyld40t.js +0 -7
  737. package/out/_next/static/chunks/2hoi6cb1lromr.js +0 -4
  738. package/out/_next/static/chunks/2i5k6tlwd58hp.js +0 -1
  739. package/out/_next/static/chunks/2iy0jr00qhq-q.js +0 -5
  740. package/out/_next/static/chunks/2jonbba27xy3u.js +0 -14
  741. package/out/_next/static/chunks/2m0rrts8gwqwp.js +0 -1
  742. package/out/_next/static/chunks/2m_u12ggzosat.js +0 -5
  743. package/out/_next/static/chunks/2mdns56l5antm.js +0 -5
  744. package/out/_next/static/chunks/2mrbytgs3uetd.js +0 -4
  745. package/out/_next/static/chunks/2p9gwjxeui1zd.js +0 -71
  746. package/out/_next/static/chunks/2pfhy9qy_cijn.js +0 -5
  747. package/out/_next/static/chunks/2q5k4rozyr2wt.js +0 -4
  748. package/out/_next/static/chunks/2qx8nnki_qv5v.js +0 -171
  749. package/out/_next/static/chunks/2r_rj84l3cy7r.js +0 -119
  750. package/out/_next/static/chunks/2rb1-3t3-sv5s.js +0 -8
  751. package/out/_next/static/chunks/2swxmzb-xk_bo.js +0 -108
  752. package/out/_next/static/chunks/2t0biwx5e_4w_.js +0 -1
  753. package/out/_next/static/chunks/2ts3v72jkbcdr.js +0 -7
  754. package/out/_next/static/chunks/2vfexvltv2avy.js +0 -5
  755. package/out/_next/static/chunks/2vveotzevnkfp.js +0 -1
  756. package/out/_next/static/chunks/2wkg65dtx56je.js +0 -155
  757. package/out/_next/static/chunks/2wmsx4gjbgvfv.js +0 -18
  758. package/out/_next/static/chunks/2xixk0t9e9mnw.js +0 -1
  759. package/out/_next/static/chunks/2xz7hnr9ikqzq.js +0 -7
  760. package/out/_next/static/chunks/2y1lq1efnvcdt.js +0 -23
  761. package/out/_next/static/chunks/2ziasg8l_c9n7.js +0 -5
  762. package/out/_next/static/chunks/3-wsablhqgzoa.js +0 -1
  763. package/out/_next/static/chunks/30ppb2wc-m4ph.js +0 -1
  764. package/out/_next/static/chunks/336k08jwyc5i-.js +0 -1
  765. package/out/_next/static/chunks/33d061qpkafqm.js +0 -39
  766. package/out/_next/static/chunks/33fyy6d5mo55_.js +0 -8
  767. package/out/_next/static/chunks/33kh18frqc3b1.js +0 -5
  768. package/out/_next/static/chunks/33v05ol-ire9s.js +0 -10
  769. package/out/_next/static/chunks/33yzdcbu7w60l.js +0 -13
  770. package/out/_next/static/chunks/348l8p7-vo4l5.js +0 -63
  771. package/out/_next/static/chunks/35hu5vin0swdf.js +0 -41
  772. package/out/_next/static/chunks/37a6yquh875rn.js +0 -39
  773. package/out/_next/static/chunks/3_2i9du5-ffrp.js +0 -59
  774. package/out/_next/static/chunks/3_84h3z_tewmg.js +0 -145
  775. package/out/_next/static/chunks/3bo7uiy-wh63m.js +0 -108
  776. package/out/_next/static/chunks/3c-an5ft_3emc.js +0 -1
  777. package/out/_next/static/chunks/3d_222ci0_30_.js +0 -41
  778. package/out/_next/static/chunks/3dldch03dfaed.js +0 -1
  779. package/out/_next/static/chunks/3eedy49gsvv_t.js +0 -1
  780. package/out/_next/static/chunks/3fayuejnrsd90.js +0 -15
  781. package/out/_next/static/chunks/3fqonijzsxy8u.js +0 -28
  782. package/out/_next/static/chunks/3g1ale0hytu9q.js +0 -12
  783. package/out/_next/static/chunks/3k3gvr7-e3g_s.js +0 -5
  784. package/out/_next/static/chunks/3kwoyyxi_-q7m.js +0 -1
  785. package/out/_next/static/chunks/3le1bywe19_u9.js +0 -1
  786. package/out/_next/static/chunks/3lku4-9kpf-mj.js +0 -267
  787. package/out/_next/static/chunks/3lz5h1tw50wr_.js +0 -54
  788. package/out/_next/static/chunks/3oq-khgfpo0nx.js +0 -39
  789. package/out/_next/static/chunks/3ps25ocfalcap.js +0 -43
  790. package/out/_next/static/chunks/3q3m075m4bxz1.js +0 -2
  791. package/out/_next/static/chunks/3r0i-7zjuz9i1.js +0 -6
  792. package/out/_next/static/chunks/3rgn5xwtr51ul.js +0 -7
  793. package/out/_next/static/chunks/3ridg_u19b6ih.js +0 -8
  794. package/out/_next/static/chunks/3skzk-w2ytvku.js +0 -5
  795. package/out/_next/static/chunks/3srw10h0hcztd.js +0 -68
  796. package/out/_next/static/chunks/3tgrftdet8sna.js +0 -15
  797. package/out/_next/static/chunks/3uax_eq1kjjta.js +0 -1
  798. package/out/_next/static/chunks/3uj94afpsi6cs.js +0 -1
  799. package/out/_next/static/chunks/3vgurvjr6hkyv.js +0 -4
  800. package/out/_next/static/chunks/3viepyovs19ub.js +0 -23
  801. package/out/_next/static/chunks/3vnzp3n_wd3j_.js +0 -1
  802. package/out/_next/static/chunks/3w8h5lxnd0z4z.js +0 -1
  803. package/out/_next/static/chunks/3wh4xa9dnw-55.js +0 -194
  804. package/out/_next/static/chunks/3wlvio5id54ow.js +0 -5
  805. package/out/_next/static/chunks/3wzvscqui-9ml.js +0 -23
  806. package/out/_next/static/chunks/3y8h3g1tqukrv.js +0 -36
  807. package/out/_next/static/chunks/3zcilnj6p9-t5.js +0 -1
  808. package/out/_next/static/chunks/3zmmdm68s05-t.js +0 -217
  809. package/out/_next/static/chunks/40l5d7o95aw37.js +0 -4
  810. package/out/_next/static/chunks/417kn9hki8k81.js +0 -33
  811. package/out/_next/static/chunks/41p3ng89i5lem.js +0 -5
  812. package/out/_next/static/chunks/42mofxcd0l7qi.js +0 -1
  813. package/out/_next/static/chunks/43hfssep7ry-z.js +0 -5
  814. package/out/_next/static/chunks/45bcpjurhxb-j.js +0 -1
  815. package/out/_next/static/jOx5PlckLwWIJ5yrvePdU/_buildManifest.js +0 -258
  816. /package/out/_next/static/{jOx5PlckLwWIJ5yrvePdU → DUswS2PYjGTW9uUGVJ6xd}/_clientMiddlewareManifest.js +0 -0
  817. /package/out/_next/static/{jOx5PlckLwWIJ5yrvePdU → DUswS2PYjGTW9uUGVJ6xd}/_ssgManifest.js +0 -0
@@ -1,39 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[61494,e=>{var t=e.i(91398),s=e.i(41158),r=e.i(3828),a=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:l=null,depth:i=null})=>{let d=(0,r.useRouter)(),{formatMessage:n}=(0,a.S)(),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="";i&&c.splice(i),e&&(c[c.length-1]=e);let m=c?.map(t=>{if(u+=`${t}/`,!t)return{name:n({id:"home",defaultMessage:"Home"}),path:"/"};let s=t?.split("?")[0],r=e?s:s.replace(/-/g," "),a=o[s];return{name:a?n({id:a,defaultMessage:r}):decodeURIComponent(r),path:u.replace(/.$/,"")}});return(0,t.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,t.jsx)("ol",{className:"flex items-center space-x-4",children:m?.map((e,r)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==r&&(0,t.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,t.jsx)(s.default,{href:e.path,className:"text-sm font-medium capitalize text-slate-500 dark:text-slate-400 dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md px-1 py-1",children:r===m.length-1&&l?l:e.name})]})},e.path))})})}])},81013,e=>{var t=e.i(91398),s=e.i(72043);e.s(["f",0,({text:e,children:r,onClick:a,className:l="",disabled:i=!1,id:d="",variant:n="primary",size:o="md",type:c="button",loading:u=!1,icon:m,iconRight:f,fullWidth:x=!1,rounded:h="md",ariaLabel:g,...p})=>{let b=r||e,j=(m||f)&&b?"gap-2":"";return(0,t.jsx)("button",{id:d,type:c,disabled:i||u,onClick:a,"aria-label":g,className:(0,s.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[o],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[h],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",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-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[n],j,{"w-full":x},l),...p,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:[m,b,f]})})}])},42427,e=>{var t=e.i(91398),s=e.i(72043);e.s(["f",0,({id:e,label:r,value:a,onChange:l,placeholder:i,min:d,max:n,className:o,containerClassName:c})=>(0,t.jsxs)("div",{className:(0,s.default)("flex flex-col gap-1",c),children:[r&&(0,t.jsx)("label",{htmlFor:e,className:"text-sm font-medium text-slate-700 dark:text-slate-300",children:r}),(0,t.jsx)("input",{type:"date",id:e,value:a||"",onChange:e=>{l(e.target.value||null)},placeholder:i,min:d,max:n,className:(0,s.default)("w-full rounded-md border-1 border-slate-300 dark:border-slate-700 bg-white dark:bg-slate-900 px-3 py-2 text-sm shadow-xs text-slate-900 dark:text-slate-200 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:[color-scheme:dark]",o)})]})])},81359,e=>{var t=e.i(91398),s=e.i(24608),r=e.i(69322);e.s(["f",0,({onClick:e,text:a=null,Icon:l=null})=>{let{formatMessage:i}=(0,r.S)();return(0,t.jsxs)("button",{type:"button",onClick:e,"aria-describedby":"header-delete-button",className:"inline-flex items-center gap-2 justify-center rounded-md border border-rose-500 px-4 py-2 text-sm font-medium leading-5 text-rose-600 dark:text-rose-200 shadow-sm hover:border-rose-600 hover:bg-rose-600 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 h-[38px]",children:[(0,t.jsx)("span",{children:l||(0,t.jsx)(s.f,{className:"h-5 w-5"})}),a||i({id:"delete",defaultMessage:"Delete"})]})}])},78704,e=>{var t=e.i(91398),s=e.i(91788),r=e.i(12197);e.s(["f",0,({loading:e,hasMore:a,onLoadMore:l,children:i,threshold:d=200})=>{let n=(0,s.useRef)(null),o=(0,s.useCallback)(t=>{let[s]=t;s.isIntersecting&&a&&!e&&l()},[a,e,l]);return(0,s.useEffect)(()=>{let e=n.current;if(!e)return;let t=new IntersectionObserver(o,{rootMargin:`${d}px`});return t.observe(e),()=>{t.disconnect()}},[o,d]),(0,t.jsxs)(t.Fragment,{children:[i,(0,t.jsx)("div",{ref:n,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(r.f,{})})]})}])},55215,e=>{var t=e.i(91398),s=e.i(72043);e.s(["f",0,({value:e,className:r,onChange:a=()=>{},rows:l=7,...i})=>{let d=Math.max(e?e.split("\n").length:1,l);return(0,t.jsx)("textarea",{className:(0,s.default)("text-black dark:bg-slate-900 dark:text-slate-200 border-transparent border-t border-t-slate-200 dark:border-t-slate-800 resize-y",r),value:e,onChange:a,rows:d,...i})}])},93924,69315,e=>{var t=e.i(91398),s=e.i(91788),r=e.i(69322),a=e.i(65153);e.s(["f",0,({tagList:e,onChange:l,options:i,label:d})=>{let{formatMessage:n}=(0,r.S)(),o=(0,s.useRef)(!1),c=(0,s.useRef)(!1),[u,m]=(0,s.useState)([]);return(0,s.useEffect)(()=>{if(!o.current&&i.length>0){let t=new Set(e||[]);m(i.filter(({label:e})=>t.has(e)).map(({value:e})=>e)),o.current=!0}},[i,e]),(0,s.useEffect)(()=>{c.current?l(u):c.current=!0},[u]),(0,t.jsxs)("div",{className:"mt-2 flex-col sm:mt-0",children:[d&&(0,t.jsx)("h3",{className:"text-sm font-semibold text-gray-700 dark:text-slate-200 uppercase tracking-wide mb-3",children:d}),(0,t.jsx)("div",{children:u.map(e=>{let s=i.find(t=>t.value===e)?.label||e;return(0,t.jsx)(a.f,{text:s,color:"slate",onClick:()=>{m(t=>t.filter(t=>t!==e))},className:"ml-2 mb-2"},e)})}),(0,t.jsx)("div",{children:(0,t.jsx)("div",{className:"mt-1 flex max-w-full rounded-md shadow-xs dark:text-slate-200",children:(0,t.jsx)("div",{className:"relative flex grow items-stretch focus-within:z-10",children:(0,t.jsxs)("select",{id:"tag-input",className:"mt-1 block w-full rounded-md dark:bg-slate-800 border-slate-300 dark:border-slate-700 py-2 pl-3 text-base focus:outline-hidden focus:ring-slate-800 sm:text-sm",onChange:e=>{var t;(t=e.target.value)&&!u.includes(t)&&m(e=>[...e,t])},value:"",children:[(0,t.jsx)("option",{value:"",children:n({id:"select_option",defaultMessage:"Select an option"})}),i.map(e=>(0,t.jsx)("option",{value:e.value,className:"dark:text-slate-200",children:e.label},e.value))]})})})})]})}],93924);var l=e.i(3828),i=e.i(83147),d=e.i(42427),n=e.i(84818);e.s(["f",0,()=>{let{parseDate:e}=(0,n.f)(),{formatMessage:s}=(0,r.S)(),a=(0,l.useRouter)();return(0,t.jsxs)("div",{className:"flex items-center justify-center",children:[(0,t.jsx)("label",{className:"ml-1 mr-2",htmlFor:"work-start",children:s({id:"from",defaultMessage:"From"})}),(0,t.jsx)(d.f,{id:"work-start",onChange:e=>{if(e)a.push({query:(0,i._)(a.query,new Date(e).toISOString(),"start")});else{let{start:e,...t}=a.query;a.push({query:{...t}})}},placeholder:s({id:"start_date",defaultMessage:"Start date"}),value:a?.query?.start?e(a?.query?.start):null,containerClassName:"w-full"}),(0,t.jsx)("label",{className:"mr-2 ml-3 ",htmlFor:"report-end",children:s({id:"to",defaultMessage:"To"})}),(0,t.jsx)(d.f,{id:"work-end",onChange:e=>{if(e)a.push({query:(0,i._)(a.query,new Date(e).toISOString(),"end")});else{let{end:e,...t}=a.query;a.push({query:{...t}})}},placeholder:s({id:"end_date",defaultMessage:"End Date"}),value:e(a?.query?.end?a?.query?.end:new Date),containerClassName:"w-full"})]})}],69315)},17644,e=>{var t=e.i(91398),s=e.i(58678),r=e.i(41158),a=e.i(69322),l=e.i(37369),i=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:d=null,onDelete:n=null,children:o=null,title:c=null,addPath:u=null,addButtonText:m=null})=>{let{formatMessage:f}=(0,a.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(s.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)(r.default,{href:u,children:(0,t.jsx)(i.f,{variant:"secondary",icon:(0,t.jsx)(l.f,{className:"h-5 w-5"}),text:m||f({id:"add",defaultMessage:"Add"})})}),d&&(0,t.jsx)(i.f,{variant:"secondary",onClick:d,text:f({id:"edit",defaultMessage:"Edit"})}),n&&(0,t.jsx)(i.f,{variant:"danger",onClick:n,text:f({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},51128,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(3828),a=e.i(20495),l=e.i(68835),i=e.i(65153),d=e.i(83147),n=e.i(73319);e.s(["f",0,({children:e,onSearchChange:o,defaultSearchValue:c,showTagFilter:u=!1,availableTagOptions:m=[]})=>{let{formatMessage:f}=(0,s.S)(),{query:x,push:h}=(0,r.useRouter)(),g=e=>{if((0,n.T)(e))h({query:(0,d._)(x,e?.join(","),"tags")});else{let{tags:e,...t}=x;h({query:(0,d._)(t)})}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(a.f,{onInputChange:o,defaultValue:c})}),u&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1 sm:border-l sm:border-slate-300 sm:dark:border-slate-700 sm:pl-3",children:[(0,t.jsx)("div",{className:"max-w-xs",children:(0,t.jsx)(l.f,{buttonText:f({id:"apply",defaultMessage:"Apply"}),placeholder:f({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:x?.tags?.split(","),onChange:g,selectOptions:m,showTagsInline:!1})}),x?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:x?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(i.f,{text:e,color:"slate",onClick:()=>{let t=x?.tags?.split(",").filter(t=>t!==e);g(t.length>0?t:null)}},e))})]})]})}),e]})}])},92229,e=>{var t=e.i(91398),s=e.i(91788),r=e.i(69322);e.s(["f",0,({selectedStatuses:e,onStatusChange:a,statuses:l})=>{let{formatMessage:i}=(0,r.S)(),[d,n]=(0,s.useState)(e||[]),o=e=>{let t,{value:s,checked:r}=e.target;n(t=r?[...d,s]:d.filter(e=>e!==s)),a(t)};return l?.map(e=>(0,t.jsxs)("div",{className:"inline-flex items-center rounded-md py-2 text-sm font-medium text-slate-900",children:[(0,t.jsx)("input",{className:"h-4 w-4 rounded-sm border-slate-300 dark:border-slate-600 bg-white dark:!bg-slate-800 text-slate-950 focus:ring-slate-800",type:"checkbox",id:e,name:e,value:e,checked:d.includes(e),onChange:o}),(0,t.jsx)("div",{className:"ml-2",children:(0,t.jsx)("label",{className:"text-sm text-slate-600 dark:text-slate-200",htmlFor:e,children:i({id:e.toLowerCase(),defaultMessage:e})})})]},e))}])},41523,e=>{var t=e.i(91398),s=e.i(72043),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.S)(),f=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=>f(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-slate-300 dark:border-slate-600 py-2 pl-3 pr-10 text-base capitalize focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 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:()=>f(e.id),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),f(e.id))},className:(0,s.default)({"cursor-pointer rounded-lg border border-slate-300 dark:border-slate-600 bg-white text-slate-900 dark:text-slate-100 dark:bg-slate-900 shadow-sm dark:hover:border-slate-500 hover:border-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2 dark:focus:ring-offset-slate-900":u===e.id},"cursor-pointer relative whitespace-nowrap border border-slate-200 dark:border-slate-800 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-slate-800 dark:focus:ring-slate-400 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})})]})}])},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)])},83147,e=>{let t=e=>e&&e?.split(",").reduce((e,t)=>{let[s=null,r=null]=(t||"")?.split("_")||[];return{...e,[s]:r}},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,s=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${s?`(${t})`:""}`}catch{return t}},"j",0,(e,t,s=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${s?`(${t})`:""}`}catch{return t}},"I",0,(e,t,s=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${s?`(${t})`:""}`}catch{return t}},"_",0,(e,t,s)=>{let r;return r=s?{...e,[s]:t}:e,Object.keys(r)?.map(e=>[e,r[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:s}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:s}).format(t/100)}})])},38247,e=>{var t=e.i(91398),s=e.i(72043),r=e.i(60741),a=e.i(82226),l=e.i(29691);let i=e=>{let t=new Date(e);return isNaN(t.getTime())?null:t.toISOString().split("T")[0]};e.s(["f",0,({validators:e=[],className:d,parseDate:n=i,...o})=>{let c=(0,r.f)({validators:[...e,a.G],...o}),u=c.value?new Date(c.value).toISOString().split("T")[0]:"";return(0,t.jsx)(l.f,{...c,className:o.containerClassName,children:(0,t.jsx)("input",{type:"date",id:c.id,name:c.name,disabled:c.disabled,className:(0,s.default)("relative mt-0 block w-full appearance-none rounded-md rounded-b-md border-1 border-slate-300 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-900 placeholder-slate-400 shadow-xs focus:z-10 focus:outline-hidden focus:ring-2 focus:ring-slate-800",d,{"border-rose-700 placeholder:text-rose-300":!!c.error}),onChange:e=>c.setValue(e.target.value),value:u,placeholder:c.placeholder,autoComplete:"off",...o})})}])},7105,e=>{var t=e.i(91398),s=e.i(72043),r=e.i(55215),a=e.i(60741),l=e.i(29691);e.s(["f",0,({validators:e=[],rows:i=10,...d})=>{let n=(0,a.f)({...d,validators:[...e,{isValid:e=>{try{return JSON?.parse(e),!0}catch(e){return!1}},intlMessageDescriptor:{id:"invalid_json_input",defaultMessage:"Invalid JSON input"}}]});return(0,t.jsx)(l.f,{...n,children:(0,t.jsx)(r.f,{className:(0,s.default)("mt-1 block w-full max-w-full rounded-md border-1 border-slate-300 dark:border-slate-800 dark:bg-slate-900 dark:text-slate-200 shadow-xs dark:shadow-none focus:ring-slate-800 sm:text-sm",{"border-rose-300 text-rose-600 focus:border-rose-600 focus:ring-rose-600":!!n.error},d.className),disabled:n.disabled,id:n.name,name:n.name,onChange:e=>{try{JSON.parse(e.target.value||"{}"),n.setError("")}catch(e){n.setError(e.message?.replace("JSON.parse",""))}finally{n.setValue(e.target.value,!0),n.setTouched(!0)}},onBlur:e=>{try{n.setValue(JSON.stringify(JSON.parse(e.target.value),void 0,2),!0),n.setError("")}catch(e){n.setError(e.message)}},placeholder:n.placeholder,autoComplete:n.autoComplete,value:n.value})})}])},99160,e=>{var t=e.i(91398),s=e.i(72043),r=e.i(38865),a=e.i(61898);e.s(["f",0,({label:e,disabled:l=!1,className:i="",hidden:d=!1,...n})=>{let o=(0,r.m)(),{...c}=n,u=Object.fromEntries(Object.keys(o.initialValues).map(e=>[e,o.getFieldMeta(e)])),{disabled:m}=(0,a.f)(),f=Object.values(u).reduce((e,{error:t,touched:s})=>e||t&&s,!1),x=l||m||o.isSubmitting||f,h=o.isSubmitting&&!f,g=(l||m||f)&&!o.isSubmitting;return(0,t.jsx)("input",{className:(0,s.default)("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-slate-800 dark:focus:ring-slate-400",i,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":g,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":h,"bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!x,hidden:d}),"aria-label":e,type:"submit",value:e,disabled:x,...c})}])},45229,e=>{var t=e.i(91398),s=e.i(72043),r=e.i(82226),a=e.i(60741),l=e.i(29691);e.s(["f",0,({maxLength:e=0,validators:i=[],...d})=>{let n=(0,a.f)({validators:[...i,e&&(0,r.f)(e)],...d});return(0,t.jsx)(l.f,{...n,children:(0,t.jsx)("input",{className:(0,s.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-slate-800 shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!n.error,"border-slate-300 placeholder-slate-400":!n.error}),disabled:n.disabled,id:n.name,name:n.name,onChange:n.onChange,onClick:e=>{e.stopPropagation()},onBlur:n.onBlur,placeholder:n.placeholder,autoComplete:n.autoComplete||"off",type:n.type||"text",value:n.value,autoFocus:n.autoFocus})})}])},15971,e=>{var t=e.i(91398),s=e.i(69322);e.s(["f",0,({onOkClick:e,onCancelClick:r,okText:a=null,cancelText:l=null,headerText:i=null,message:d=null,icon:n=null,close:o=null})=>{let{formatMessage:c}=(0,s.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[n||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-rose-100 dark:bg-rose-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)("svg",{className:"h-6 w-6 text-rose-600 dark:text-rose-400",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"})})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",id:"modal-title",children:i||c({id:"warning",defaultMessage:"Warning!"})}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-200",children:d||c({id:"are_you_sure",defaultMessage:"Are you sure?"})})})]})]}),(0,t.jsxs)("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[(0,t.jsx)("button",{id:"danger_continue",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-rose-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-rose-700 focus:outline-hidden focus:ring-2 focus:ring-rose-500 focus:ring-offset-2 sm:ml-3 sm:w-auto sm:text-sm",children:a||c({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:r||o,type:"button",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-slate-800 focus:ring-offset-2 sm:mt-0 sm:ml-3 sm:w-auto sm:text-sm",children:l||c({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{var t=e.i(91788),s=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(s.f)])},30086,e=>{var t=e.i(59080),s=e.i(76204);let r=t.f`
2
- mutation AddWork(
3
- $type: WorkType!
4
- $priority: Int! = 0
5
- $input: JSON
6
- $originalWorkId: ID
7
- $scheduled: Timestamp
8
- $retries: Int! = 20
9
- ) {
10
- addWork(
11
- type: $type
12
- priority: $priority
13
- input: $input
14
- originalWorkId: $originalWorkId
15
- scheduled: $scheduled
16
- retries: $retries
17
- ) {
18
- _id
19
- }
20
- }
21
- `;e.s(["f",0,()=>{let[e]=(0,s.f)(r);return{addWork:async({type:t,priority:s,input:r,originalWorkId:a,scheduled:l=null,retries:i})=>e({variables:{type:t,priority:s,input:r,originalWorkId:a,scheduled:l,retries:i},refetchQueries:["WorkQueue"]})}}])},3334,35496,54020,e=>{var t=e.i(98170),s=e.i(50216),r=e.i(27861),a=e.i(36980),l=e.i(57322),i=e.i(24323),d=e.i(60836),n=e.i(2848);let o=["years","months","weeks","days","hours","minutes","seconds"];e.s(["f",0,()=>({getScheduledTime:e=>{if(!e)return null;let{scheduled:o,status:c,started:u}=e;if("FAILED"===c||"SUCCESS"===c||"DELETED"===c)return null;let m=new Date(o).getTime();if("ALLOCATED"===c||"NEW"===c&&!u){var f;return f={addSuffix:!0},function(e,t,o){let c,u=(0,r.f)(),m=o?.locale??u.locale??s.f,f=(0,d.f)(e,t);if(isNaN(f))throw RangeError("Invalid time value");let x=Object.assign({},o,{addSuffix:o?.addSuffix,comparison:f}),[h,g]=(0,i.f)(o?.in,...f>0?[t,e]:[e,t]),p=(0,a.f)(o?.roundingMethod??"round"),b=g.getTime()-h.getTime(),j=b/n.z,v=(b-((0,l.f)(g)-(0,l.f)(h)))/n.z,k=o?.unit;if("second"===(c=k||(j<1?"second":j<60?"minute":j<n.k?"hour":v<n.d?"day":v<n.l?"month":"year"))){let e=p(b/1e3);return m.formatDistance("xSeconds",e,x)}if("minute"===c){let e=p(j);return m.formatDistance("xMinutes",e,x)}if("hour"===c){let e=p(j/60);return m.formatDistance("xHours",e,x)}if("day"===c){let e=p(v/n.k);return m.formatDistance("xDays",e,x)}if("month"===c){let e=p(v/n.d);return 12===e&&"month"!==k?m.formatDistance("xYears",1,x):m.formatDistance("xMonths",e,x)}else{let e=p(v/n.l);return m.formatDistance("xYears",e,x)}}(m,(0,t.f)(m,Date.now()),f)}return null},getDuration:e=>{var t,a;let l,i,d,n,c,u;if(!e)return null;let{started:m,finished:f}=e,x=new Date().getTime();return m?(t={hours:Number(Math.floor((l=f?new Date(f).getTime()-new Date(m).getTime():x-new Date(m).getTime())/1e3/60/60)%24),minutes:Number(Math.floor(l/1e3/60)%60),seconds:Number(Math.ceil(l/1e3)%60)},a={zero:!1},i=(0,r.f)(),d=a?.locale??i.locale??s.f,n=a?.format??o,c=a?.zero??!1,u=a?.delimiter??" ",d.formatDistance?n.reduce((e,s)=>{let r=`x${s.replace(/(^.)/,e=>e.toUpperCase())}`,a=t[s];return void 0!==a&&(c||t[s])?e.concat(d.formatDistance(r,a)):e},[]).join(u):""):null}})],3334);var c=e.i(91398),u=e.i(91788);e.s(["f",0,({text:e,children:t})=>{let[s,r]=(0,u.useState)(!1);return(0,c.jsxs)("div",{className:"relative",children:[(0,c.jsx)("div",{onMouseEnter:()=>{r(!0)},onMouseLeave:()=>{r(!1)},children:t}),s&&(0,c.jsx)("div",{className:"tooltip absolute p-2 bg-slate-700 text-white rounded-lg whitespace-nowrap",children:e})]})}],35496),e.s(["f",0,({work:e,children:t=null})=>e?.original?e?.original?.retries===e?.retries?(0,c.jsxs)("span",{children:[(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-3 h-3 inline-block text-slate-500 mr-2",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})}),t]}):(0,c.jsx)("span",{children:(0,c.jsxs)("span",{children:[(0,c.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor",className:"w-3 h-3 inline-block text-slate-500 mr-2",children:(0,c.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"})}),t,(0,c.jsx)("span",{className:"text-rose-400 text-sm ml-2",children:`${e?.retries} / ${e?.original?.retries}`})]})}):t],54020)},63104,e=>{var t=e.i(59080),s=e.i(32171),r=e.i(70693),a=e.i(94672);let l=(e="")=>t.f`
22
- query Work($workId: ID!) {
23
- work(workId: $workId) {
24
- ...WorkFragment
25
- ${e}
26
- error
27
- priority
28
- worker
29
- timeout
30
- }
31
- }
32
- ${a.f}
33
- `;e.s(["k",0,l,"U",0,({workId:e=null,...t})=>{let{customProperties:a}=(0,r.f)(),{data:i,loading:d,error:n,previousData:o}=(0,s.f)(l(a?.Work),{skip:!e,variables:{workId:e},...t});return{work:i?.work||o?.work,loading:d,error:n}}])},9459,e=>{var t=e.i(91398),s=e.i(3828),r=e.i(69322),a=e.i(28401),l=e.i(41158),i=e.i(91788),d=e.i(65153),n=e.i(84818),o=e.i(60193),c=e.i(55215),u=e.i(3334),m=e.i(35496),f=e.i(54020);let x=({work:e})=>{let{formatMessage:s}=(0,r.S)(),{formatDateTime:a}=(0,n.f)(),{getDuration:x,getScheduledTime:h}=(0,u.f)(),[,g]=(0,i.useState)(null);(0,i.useEffect)(()=>{let t=null;return e&&("NEW"===e.status||"ALLOCATED"===e.status)&&(t=setInterval(()=>g(Date.now()),1e3)),()=>{clearInterval(t)}},[e?.status]);let p={timeStyle:"medium",dateStyle:"long"};return(0,t.jsx)("div",{className:`rounded-xl xl:-mx-8 mt-10 p-2 sm:p-6 lg:p-8 ${(0,o.c)(e?.status)}`,children:(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-8 lg:grid-cols-2 auto-rows-max",children:[(0,t.jsxs)("div",{className:"max-h-fit col-span-2 rounded-lg border border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-900 p-4 shadow-md dark:shadow-none sm:p-6 lg:col-span-1 lg:p-8",children:[(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_type",defaultMessage:"Work type"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:e?.type})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_status",defaultMessage:"Work Status"})}),(0,t.jsx)(d.f,{text:e?.status,color:o.Q[e?.status]})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_priority",defaultMessage:"Priority"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm ",children:e?.priority})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_retries",defaultMessage:"Retries"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:(0,t.jsx)(f.f,{work:e})})]}),(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"worker",defaultMessage:"Worker"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:e?.worker?(0,t.jsx)(d.f,{text:s({id:"worker_dynamic",defaultMessage:"{worker}"},{worker:e?.worker}),color:"purple"}):"n/a"})]}),e?.retries||e?.original?(0,t.jsxs)("div",{className:"mb-2 flex flex-wrap items-center justify-between",children:[(0,t.jsx)("div",{className:"mr-4 text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_original",defaultMessage:"Original Work"})}),(0,t.jsx)("div",{className:"mt-2 max-w-prose space-y-5 text-sm",children:(0,t.jsx)(l.default,{href:`/works?workerId=${e?.original?._id}`,className:"text-slate-900 dark:text-slate-300",children:e?.original?._id})})]}):""]}),(0,t.jsx)("div",{className:"col-span-2 rounded-lg border border-slate-300 dark:border-slate-800 bg-white dark:bg-slate-900 p-4 shadow-md dark:shadow-none sm:p-6 lg:col-span-1 lg:p-8",children:(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-5",children:[(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_created",defaultMessage:"Created"})}),(0,t.jsx)("div",{className:"flex text-sm",children:a(e?.created,p)})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_scheduled",defaultMessage:"Scheduled"})}),(0,t.jsx)("div",{className:"flex text-sm w-100",children:(0,t.jsx)(m.f,{text:a(e?.scheduled,p),children:h(e)})})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_started",defaultMessage:"Started"})}),(0,t.jsx)("div",{className:"flex text-sm",children:a(e?.started,p)})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"work_finished",defaultMessage:"Finished"})}),(0,t.jsx)("div",{className:"flex text-sm",children:a(e?.finished,p)})]}),(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"duration",defaultMessage:"Duration"})}),(0,t.jsx)("div",{className:"flex text-sm",children:x(e)})]}),e?.deleted&&(0,t.jsxs)("div",{className:"sm:col-span-1",children:[(0,t.jsx)("div",{className:"flex text-base text-slate-500 dark:text-slate-500 ",children:s({id:"deleted",defaultMessage:"Deleted"})}),(0,t.jsx)("div",{className:"flex text-sm",children:a(e?.deleted,p)})]})]})}),e?.error&&(0,t.jsxs)("div",{className:"rounded-lg shadow-md dark:shadow-none border-2 border-rose-300 dark:border-rose-800 col-span-2 lg:col-span-2 order-first overflow-hidden bg-rose-100 dark:bg-rose-800",children:[(0,t.jsx)("div",{className:"px-4 py-5 sm:px-6 border-b border-rose-300 dark:border-rose-800",children:(0,t.jsxs)("h3",{className:"text-lg font-medium leading-6 text-rose-700 dark:text-rose-300 flex items-center gap-2",children:[(0,t.jsx)("svg",{className:"w-6 h-6",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})}),s({id:"error",defaultMessage:"Error"})]})}),(0,t.jsx)("div",{className:"bg-rose-50 dark:bg-rose-950",children:(0,t.jsx)(c.f,{value:decodeURI(JSON.stringify(e.error,null,2)),disabled:!0,className:"block border-none w-full max-w-full resize-none sm:text-sm text-rose-900 dark:text-rose-100"})})]}),e?.input&&(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg border border-slate-300 dark:border-slate-800 col-span-2 shadow-md dark:shadow-none bg-white dark:bg-slate-900 lg:col-span-1",children:[(0,t.jsx)("div",{className:"px-4 py-5 sm:px-6",children:(0,t.jsx)("h3",{className:"text-lg font-medium leading-6 text-slate-900 dark:text-slate-500",children:s({id:"input",defaultMessage:"Input"})})}),(0,t.jsx)(c.f,{value:JSON.stringify(e.input,null,2),disabled:!0,className:"block w-full max-w-full resize-none sm:text-sm"})]}),e?.result&&(0,t.jsxs)("div",{className:"overflow-hidden rounded-lg shadow-md dark:shadow-none border border-slate-300 dark:border-slate-800 col-span-2 bg-white dark:bg-slate-900 lg:col-span-1",children:[(0,t.jsxs)("div",{className:"px-4 py-5 sm:px-6 flex items-center justify-between",children:[(0,t.jsx)("h3",{className:"text-lg font-medium leading-6 text-slate-900 dark:text-slate-500",children:s({id:"result",defaultMessage:"Result"})}),e?.type==="BULK_IMPORT"&&e?.result?.created&&(0,t.jsx)("span",{className:"text-sm text-slate-600 dark:text-slate-400",children:s({id:"items_created",defaultMessage:"{count} items created"},{count:e.result.created.length})})]}),(0,t.jsx)(c.f,{value:JSON.stringify(e.result,null,2),disabled:!0,className:`block w-full max-w-full resize-none sm:text-sm ${e?.type==="BULK_IMPORT"&&e?.result?.created?.length>50?"max-h-96 overflow-y-auto":""}`})]})]})})};var h=e.i(63104),g=e.i(59080),p=e.i(76204);let b=g.f`
34
- mutation RemoveWork($workId: ID!) {
35
- removeWork(workId: $workId) {
36
- _id
37
- }
38
- }
39
- `;var j=e.i(30086),v=e.i(12197),k=e.i(17644),y=e.i(61494),w=e.i(15971),N=e.i(6607),S=e.i(81359),C=e.i(86129),M=e.i(66773),_=e.i(5505),E=e.i(38247),$=e.i(69211),D=e.i(7105),I=e.i(99160),O=e.i(45229),T=e.i(98949);let L=({work:e,onSubmit:a})=>{let{formatMessage:l,locale:i}=(0,r.S)(),d=(0,s.useRouter)(),n=l({id:"work_added_success",defaultMessage:"Work added successfully!"}),o=(0,T.f)({submit:a,successMessage:n,onSubmitSuccess:(e,{_id:t})=>(d.replace(`/works?workerId=${t}`),!0),enableReinitialize:!0,initialValues:{...e,input:JSON.stringify(e?.input||{},null,2)}});return(0,t.jsx)(_.U,{children:(0,t.jsx)($.f,{form:o,children:(0,t.jsxs)("div",{className:"space-y-6 rounded-md bg-white dark:bg-slate-900 shadow-md ",children:[(0,t.jsx)("h2",{className:"text-2xl font-bold text-slate-900 dark:text-slate-200 ",children:l({id:"retry_work",defaultMessage:"Retry Work"})}),(0,t.jsx)("div",{className:"flex flex-col sm:flex-row sm:justify-between sm:items-center dark:border-slate-700 pb-4 mb-4",children:(0,t.jsx)("div",{className:"text-sm text-slate-500 dark:text-slate-400 mt-2 sm:mt-0 flex flex-col sm:flex-row sm:gap-4",children:(0,t.jsxs)("span",{children:[(0,t.jsx)("strong",{children:l({id:"type",defaultMessage:"Type"})})," ",e.type]})})}),(0,t.jsxs)("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-4",children:[(0,t.jsx)(O.f,{name:"priority",id:"priority",label:l({id:"priority",defaultMessage:"Priority"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-800 rounded-md"}),(0,t.jsx)(O.f,{name:"retries",id:"retries",label:l({id:"retries",defaultMessage:"Retries"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",type:"number",className:"w-full py-2 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-800 rounded-md"})]}),(0,t.jsx)(E.f,{name:"scheduled",label:l({id:"scheduled",defaultMessage:"Scheduled"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",className:"w-full py-2 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-800 rounded-md",containerClassName:"w-full",locale:i,showTimeInput:!0,timeFormat:"p",timeIntervals:15}),(0,t.jsx)("div",{children:(0,t.jsx)(D.f,{name:"input",label:l({id:"input",defaultMessage:"Input"}),labelClassName:"text-sm font-medium text-slate-500 mb-1",className:"w-full h-48 text-sm text-slate-900 dark:text-slate-200 dark:bg-slate-800 rounded-md"})}),(0,t.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 space-y-6 bg-slate-50 dark:bg-slate-900 p-5 text-right",children:(0,t.jsx)(I.f,{label:l({id:"retry_submit",defaultMessage:"Retry"})})})]})})})};e.s(["default",0,({workerId:e})=>{let l,{formatMessage:d}=(0,r.S)(),{push:n}=(0,s.useRouter)(),{work:o}=(0,h.U)({workId:e,pollInterval:2e3}),{setModal:c}=(0,N.f)(),{removeWork:u}=(()=>{let[e]=(0,p.f)(b);return{removeWork:async({workId:t})=>e({variables:{workId:t},refetchQueries:["WorkQueue"]})}})(),{addWork:m}=(0,j.f)(),f=(0,i.useCallback)(async()=>{c((0,t.jsx)(L,{work:o,onSubmit:async e=>{try{let{data:t}=await m({type:o?.type,priority:e.priority||o?.priority,retries:e.retries,scheduled:e.scheduled,input:JSON.parse(e.input||"{}"),originalWorkId:o?._id});return n(`/works?workerId=${t.addWork._id}`),c(null),{success:!0}}catch(e){return{success:!1,error:e}}}}),{closeOnOutsideClick:!0})},[o]),g=async()=>{await c((0,t.jsx)(w.f,{onCancelClick:()=>c(""),message:d({id:"delete_work_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this work? "}),onOkClick:async()=>{c(""),await u({workId:e}),a.c.success(d({id:"work_deleted",defaultMessage:"Work deleted successfully"}))},okText:d({id:"delete_work",defaultMessage:"Delete work"})}))};return(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(y.f,{}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(k.f,{headerText:d({id:"work_detail",defaultMessage:"Work Detail"}),title:d({id:"work_detail_title",defaultMessage:"Work {id}"},{id:o?._id})}),o&&(o?.status===M.h.Failed||o?.status===M.h.Success)?(0,t.jsxs)("button",{type:"button","aria-describedby":"header-delete-button",className:"my-auto flex items-center justify-center rounded-sm border-1 border-emerald-600 px-3 py-2 text-sm font-semibold text-emerald-600 shadow-xs hover:border-emerald-800 hover:bg-emerald-700 hover:text-white focus:outline-hidden focus:ring-2 focus:ring-emerald-700 focus:ring-offset-2",onClick:f,children:[(0,t.jsx)("span",{className:"pr-1",children:(0,t.jsx)(C.f,{className:"h-5 w-5"})}),d({id:"retry-work",defaultMessage:"Retry"})]}):null,o&&((l=o?.status)===M.h.New||l===M.h.Allocated)?(0,t.jsx)(S.f,{onClick:g}):null]}),o?(0,t.jsx)(x,{work:o}):(0,t.jsx)(v.f,{})]})}],9459)},6506,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(3828),a=e.i(91788),l=e.i(78704),i=e.i(12197),d=e.i(93924),n=e.i(92229),o=e.i(73319),c=e.i(83147),u=e.i(69315);let m=["NEW","ALLOCATED","SUCCESS","FAILED","DELETED"],f=({workTypes:e=[]})=>{let a=(0,r.useRouter)(),{formatMessage:l}=(0,s.S)(),i=(0,o.Q)(a.query.status),f=(0,o.Q)(a.query.types);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-5 text-md text-slate-600 dark:text-slate-200",children:l({id:"filter_by_creation_date",defaultMessage:"Filter by creation date"})}),(0,t.jsx)("div",{className:"mt-3",children:(0,t.jsx)(u.f,{})}),e?.length?(0,t.jsx)("div",{className:"mt-5",children:(0,t.jsx)(d.f,{label:l({id:"select_type",defaultMessage:"Select type"}),tagList:f,onChange:e=>{let{types:t,...s}=a.query;e?.length?a.push({query:(0,c._)(s,e?.join(","),"types")}):a.push({query:(0,c._)(s)})},options:e.map(e=>({label:e,value:e}))})}):null,(0,t.jsxs)("div",{className:"mt-5",children:[(0,t.jsx)("div",{className:"text-md text-slate-800 dark:text-slate-200",children:l({id:"status",defaultMessage:"Status"})}),(0,t.jsx)("div",{className:"flex flex-wrap gap-5",children:(0,t.jsx)(n.f,{onStatusChange:e=>{let{status:t,...s}=a.query;e?.length?a.push({query:(0,c._)(s,e,"status")}):a.push({query:s})},selectedStatuses:i,statuses:m})})]})]})};var x=e.i(8918),h=e.i(41158),g=e.i(65153),p=e.i(60193),b=e.i(84818),j=e.i(3334),v=e.i(35496),k=e.i(54020);let y=({work:e})=>{let{formatMessage:r}=(0,s.S)(),{formatDateTime:l}=(0,b.f)(),{getScheduledTime:i,getDuration:d}=(0,j.f)(),[,n]=(0,a.useState)(null);(0,a.useEffect)(()=>{let t=null;return e&&("NEW"===e.status||"ALLOCATED"===e.status)&&(t=setInterval(()=>n(Date.now()),1e3)),()=>{clearInterval(t)}},[e?.status]);let o={dateStyle:"short",timeStyle:"short"};return(0,t.jsxs)(x.f.Row,{children:[(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:(0,t.jsx)(h.default,{href:`/works?workerId=${e._id}`,className:"text-slate-900 dark:text-slate-300",children:(0,t.jsx)(k.f,{work:e,children:e?.type||(0,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(g.f,{color:"blue",text:r({id:"type",defaultMessage:"Type"})})]})})})})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)(g.f,{text:e?.status,color:p.Q[e.status],square:!0})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.created?l(e.created,o):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:(0,t.jsx)(v.f,{text:l(e?.scheduled,o),children:i(e)})})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.started?l(e.started,o):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.finished?l(e.finished,o):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:d(e)})})]})},w=({workQueue:e,sortable:r})=>{let{formatMessage:a}=(0,s.S)();return(0,t.jsxs)(x.f,{className:"min-w-full",children:[e?.map(e=>(0,t.jsxs)(x.f.Row,{header:!0,enablesort:r,children:[(0,t.jsx)(x.f.Cell,{sortKey:"type",children:a({id:"work_type_header",defaultMessage:"Type"})}),(0,t.jsx)(x.f.Cell,{sortKey:"status",children:a({id:"status",defaultMessage:"Status"})}),(0,t.jsx)(x.f.Cell,{sortKey:"created",children:a({id:"created",defaultMessage:"Created"})}),(0,t.jsx)(x.f.Cell,{sortKey:"scheduled",defaultSortDirection:"DESC",children:a({id:"scheduled",defaultMessage:"Scheduled"})}),(0,t.jsx)(x.f.Cell,{sortKey:"started",children:a({id:"started",defaultMessage:"Started"})}),(0,t.jsx)(x.f.Cell,{sortKey:"finished",children:a({id:"finished",defaultMessage:"Finished"})}),(0,t.jsx)(x.f.Cell,{children:a({id:"duration",defaultMessage:"Duration"})})]},`${e._id}-header`)),e?.map(e=>(0,t.jsx)(y,{work:e},`${e?._id}-body-${JSON.stringify(e)}`))]})};var N=e.i(38187);let S=a.forwardRef(function({title:e,titleId:t,...s},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m8.25 4.5 7.5 7.5-7.5 7.5"}))}),C=({messageWork:e,childWorks:r,expanded:a,onToggleExpanded:l})=>{let{formatMessage:i}=(0,s.S)(),{formatDateTime:d}=(0,b.f)(),n=((e,t,s)=>{if(Array.isArray(e?.result?.forked)&&0===e.result.forked.length||e?.result?.forked==="[]")return s({id:"message_status_skipped",defaultMessage:"Skipped"});if(!t||0===t.length)return s("SUCCESS"===e.status?{id:"message_status_sent",defaultMessage:"Sent"}:{id:"message_status_processing",defaultMessage:"Processing"});let r=t.some(e=>"SUCCESS"===e.status),a=t.every(e=>"FAILED"===e.status);return s(t.some(e=>"NEW"===e.status||"ALLOCATED"===e.status)?{id:"message_status_sending",defaultMessage:"Sending"}:r&&!a?{id:"message_status_sent",defaultMessage:"Sent"}:a?{id:"message_status_undeliverable",defaultMessage:"Undeliverable"}:{id:"message_status_processing",defaultMessage:"Processing"})})(e,r,i),o=((e,t)=>{if(Array.isArray(e?.result?.forked)&&0===e.result.forked.length||e?.result?.forked==="[]")return"slate";if(!t||0===t.length)return"SUCCESS"===e.status?"green":"yellow";let s=t.some(e=>"SUCCESS"===e.status),r=t.every(e=>"FAILED"===e.status);return t.some(e=>"NEW"===e.status||"ALLOCATED"===e.status)?"blue":s&&!r?"green":r?"red":"yellow"})(e,r),c={dateStyle:"short",timeStyle:"short"},u=Object.entries(r?.reduce((e,t)=>(e[t.type]||(e[t.type]=0),e[t.type]++,e),{})||{}).map(([e,t])=>`${t} ${e}${t>1?"s":""}`).join(", ")||i({id:"no_retries",defaultMessage:"No retries"});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(x.f.Row,{className:"bg-slate-50 dark:bg-slate-800/50",children:[(0,t.jsx)(x.f.Cell,{children:(0,t.jsxs)("div",{className:"flex items-center text-sm",children:[(0,t.jsx)("button",{onClick:l,className:"mr-2 p-1 hover:bg-slate-200 dark:hover:bg-slate-700 rounded",children:a?(0,t.jsx)(N.f,{className:"w-4 h-4"}):(0,t.jsx)(S,{className:"w-4 h-4"})}),(0,t.jsx)(h.default,{href:`/works?workerId=${e._id}`,className:"text-slate-900 dark:text-slate-300 font-medium",children:e?.input?.template}),(0,t.jsxs)("span",{className:"ml-2 text-slate-500 text-xs",children:["(",u,")"]})]})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)(g.f,{text:n,color:o,square:!0})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.created?d(e.created,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.scheduled?d(e.scheduled,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.started?d(e.started,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.finished?d(e.finished,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:"-"})})]}),a&&r?.map(e=>(0,t.jsxs)(x.f.Row,{className:"bg-slate-25 dark:bg-slate-900/30",children:[(0,t.jsx)(x.f.Cell,{children:(0,t.jsxs)("div",{className:"flex items-center text-sm pl-8",children:[(0,t.jsx)(h.default,{href:`/works?workerId=${e._id}`,className:"text-slate-700 dark:text-slate-400",children:e.type}),e.retries>0&&(0,t.jsxs)("span",{className:"ml-2 text-xs text-orange-600 dark:text-orange-400",children:["(",i({id:"retry_remaining",defaultMessage:"retry"})," ",e.retries,")"]})]})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)(g.f,{text:e.status,color:p.Q[e.status],square:!0})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.created?d(e.created,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.scheduled?d(e.scheduled,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.started?d(e.started,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:e.finished?d(e.finished,c):"n/a"})}),(0,t.jsx)(x.f.Cell,{children:(0,t.jsx)("div",{className:"flex items-center text-sm",children:"-"})})]},e._id))]})},M=({messageGroups:e,sortable:r,expandedMessages:a,onToggleExpanded:l})=>{let{formatMessage:i}=(0,s.S)();return(0,t.jsxs)(x.f,{className:"min-w-full",children:[(0,t.jsxs)(x.f.Row,{header:!0,enablesort:r,children:[(0,t.jsx)(x.f.Cell,{sortKey:"type",children:i({id:"work_type_header",defaultMessage:"Type"})}),(0,t.jsx)(x.f.Cell,{sortKey:"status",children:i({id:"status",defaultMessage:"Status"})}),(0,t.jsx)(x.f.Cell,{sortKey:"created",children:i({id:"created",defaultMessage:"Created"})}),(0,t.jsx)(x.f.Cell,{sortKey:"scheduled",defaultSortDirection:"DESC",children:i({id:"scheduled",defaultMessage:"Scheduled"})}),(0,t.jsx)(x.f.Cell,{sortKey:"started",children:i({id:"started",defaultMessage:"Started"})}),(0,t.jsx)(x.f.Cell,{sortKey:"finished",children:i({id:"finished",defaultMessage:"Finished"})}),(0,t.jsx)(x.f.Cell,{children:i({id:"duration",defaultMessage:"Duration"})})]}),e.filter(e=>e?.message?.input?.template)?.map(e=>(0,t.jsx)(C,{messageWork:e.message,childWorks:e.children,expanded:a.has(e.message._id),onToggleExpanded:()=>l(e.message._id)},`${e.message._id}-${e?.message?.created}-${e?.message?.status}-${e?.message?.scheduled}-${e?.message?.finished}`))]})};var _=e.i(41523),E=e.i(51128),$=e.i(52835);let D=a.forwardRef(function({title:e,titleId:t,...s},r){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:r,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M21.75 6.75v10.5a2.25 2.25 0 0 1-2.25 2.25h-15a2.25 2.25 0 0 1-2.25-2.25V6.75m19.5 0A2.25 2.25 0 0 0 19.5 4.5h-15a2.25 2.25 0 0 0-2.25 2.25m19.5 0v.243a2.25 2.25 0 0 1-1.07 1.916l-7.5 4.615a2.25 2.25 0 0 1-2.36 0L3.32 8.91a2.25 2.25 0 0 1-1.07-1.916V6.75"}))});var I=e.i(85192);e.s(["default",0,()=>{let{query:e,push:d}=(0,r.useRouter)(),{formatMessage:n}=(0,s.S)(),[o,u]=(0,a.useState)(new Set),m={created:{start:e?.start,end:e?.end},status:e?.status?.split(","),types:e?.tab==="messages"?["MESSAGE","EMAIL",...(e.types??"").split(",")].filter(Boolean):e?.types?.split(",")},x=parseInt(e?.limit,10)||p.h,h=parseInt(e?.skip,10)||0,g=e?.sort||"",{queryString:b,workerId:j,...v}=e,k=(0,c.R)(g),{workQueue:y,loadMore:N,loading:S,activeWorkTypes:C,total:O,hasMore:T}=(0,$.f)({queryString:b,limit:x,...m,sort:k,offset:h}),{messageGroups:L}=(0,a.useMemo)(()=>({messageGroups:(e=>{if(!e)return[];let t=e.filter(e=>"MESSAGE"===e.type),s=e.filter(e=>e.original&&e.original._id),r=[];return t.forEach(e=>{let t=s.filter(t=>t.original._id===e._id);r.push({message:e,children:t.sort((e,t)=>e.retries-t.retries)})}),r.sort((e,t)=>new Date(t.message.created).getTime()-new Date(e.message.created).getTime())})(y)}),[y]),W=(0,a.useMemo)(()=>[{id:"all",title:n({id:"all_workers",defaultMessage:"All Workers"}),Icon:(0,t.jsx)(I.f,{className:"h-5 w-5"})},{id:"messages",title:n({id:"messages",defaultMessage:"Messages"}),Icon:(0,t.jsx)(D,{className:"h-5 w-5"})}],[n]),R=(0,a.useCallback)(e=>{let{skip:t,...s}=v;e?d({query:(0,c._)(s,e,"queryString")}):d({query:(0,c._)(v)})},[v,d]),q=(0,a.useCallback)(e=>{u(t=>{let s=new Set(t);return s.has(e)?s.delete(e):s.add(e),s})},[]),A=(0,a.useCallback)(({selectedView:e="all"})=>{let s="messages"===e,r=s?T&&L.length>0:T;return(0,t.jsx)(l.f,{loading:S,hasMore:r,onLoadMore:N,threshold:s?600:200,children:S&&y?.length===0?(0,t.jsx)(i.f,{}):s?(0,t.jsx)(M,{messageGroups:L,sortable:!0,expandedMessages:o,onToggleExpanded:q}):(0,t.jsx)(w,{workQueue:y,sortable:!0})})},[S,T,N,y,L,o,q]);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(f,{workTypes:e?.tab==="messages"?[]:C}),(0,t.jsx)(E.f,{onSearchChange:R,defaultSearchValue:b,children:(0,t.jsx)(_.f,{tabItems:W,defaultTab:"all",children:(0,t.jsx)(A,{})})})]})}],6506)},72200,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(66773),a=e.i(3828),l=e.i(61494),i=e.i(17644),d=e.i(58971),n=e.i(9459),o=e.i(6506);e.s(["default",0,()=>{let{query:e}=(0,a.useRouter)(),{hasRole:c}=(0,d.f)(),{formatMessage:u}=(0,s.S)(),{workerId:m}=e;return m?(0,t.jsx)(n.default,{workerId:m}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.f,{depth:3,currentPageTitle:u({id:"work_queue_header",defaultMessage:"Work queue"})}),(0,t.jsx)(i.f,{title:u({id:"work_queue_header",defaultMessage:"Work queue"}),addPath:c(r.C.ManageWorker)&&"/works/management",addButtonText:u({id:"manage",defaultMessage:"Manage"})}),(0,t.jsx)(o.default,{})]})}])},76204,e=>{var t=e.i(24669),s=e.i(91788),r=e.i(30928),a=e.i(52006);let l=e.i(21953).f?s.useLayoutEffect:s.useEffect;var i=e.i(98926);function d(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,n){let o=(0,i.f)(n?.client),[c,u]=s.useState(()=>d(o)),m=s.useRef({result:c,mutationId:0,isMounted:!0,client:o,mutation:e,options:n});l(()=>{Object.assign(m.current,{client:o,options:n,mutation:e})});let f=s.useCallback((e={})=>{let{options:s,mutation:l}=m.current,i={...s,mutation:l},d=e.client||m.current.client,n="function"==typeof e.context?e.context(s?.context):e.context;!m.current.result.loading&&m.current.isMounted&&u(m.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:d});let o=++m.current.mutationId,c=(0,r.f)(i,{...e,context:n});return(0,a.f)(d.mutate(c).then(s=>{let{data:r,error:a}=s,l=e.onError||m.current.options?.onError;if(a&&l&&l(a,c),o===m.current.mutationId){let e={called:!0,loading:!1,data:r,error:a,client:d};m.current.isMounted&&!(0,t.f)(m.current.result,e)&&u(m.current.result=e)}let i=e.onCompleted||m.current.options?.onCompleted;return a||i?.(s.data,c),s},s=>{if(o===m.current.mutationId&&m.current.isMounted){let e={loading:!1,error:s,data:void 0,called:!0,client:d};(0,t.f)(m.current.result,e)||u(m.current.result=e)}let r=e.onError||m.current.options?.onError;throw r&&r(s,c),s}))},[]),x=s.useCallback(()=>{if(m.current.isMounted){let e=d(m.current.client);Object.assign(m.current,{mutationId:0,result:e}),u(e)}},[]);return s.useEffect(()=>{let e=m.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[f,{reset:x,...c}]}],76204)},86129,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",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M16.023 9.348h4.992v-.001M2.985 19.644v-4.992m0 0h4.992m-4.993 0 3.181 3.183a8.25 8.25 0 0 0 13.803-3.7M4.031 9.865a8.25 8.25 0 0 1 13.803-3.7l3.181 3.182m0-4.991v4.99"}))});e.s(["f",0,s],86129)},38187,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",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m19.5 8.25-7.5 7.5-7.5-7.5"}))});e.s(["f",0,s],38187)},37369,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",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,s],37369)},24608,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",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["f",0,s],24608)},36980,e=>{e.s(["f",0,function(e){return t=>{let s=(e?Math[e]:Math.trunc)(t);return 0===s?0:s}}])},60836,e=>{var t=e.i(35113);e.s(["f",0,function(e,s){let r=(0,t.f)(e)-(0,t.f)(s);return r<0?-1:r>0?1:r}])},9356,e=>{var t=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,t.f)(e)))}],9356)},49543,e=>{var t=e.i(35113);e.s(["f",0,function(e,s){let r=(0,t.f)(e,s?.in);return r.setHours(0,0,0,0),r}])},35113,2848,98170,e=>{let t=Symbol.for("constructDateFrom");function s(e,s){return"function"==typeof e?e(s):e&&"object"==typeof e&&t in e?e[t](s):e instanceof Date?new e.constructor(s):new Date(s)}e.s(["C",0,t,"_",0,864e5,"r",0,36e5,"z",0,6e4,"A",0,6048e5,"k",0,1440,"d",0,43200,"l",0,525600],2848),e.s(["f",0,s],98170),e.s(["f",0,function(e,t){return s(t||e,e)}],35113)},34980,(e,t,s)=>{var r=e.r(49957),a={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},i={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},d={};function n(e){return r.isMemo(e)?i:d[e.$$typeof]||a}d[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},d[r.Memo]=i;var o=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,m=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,x=Object.prototype;t.exports=function e(t,s,r){if("string"!=typeof s){if(x){var a=f(s);a&&a!==x&&e(t,a,r)}var i=c(s);u&&(i=i.concat(u(s)));for(var d=n(t),h=n(s),g=0;g<i.length;++g){var p=i[g];if(!l[p]&&!(r&&r[p])&&!(h&&h[p])&&!(d&&d[p])){var b=m(s,p);try{o(t,p,b)}catch(e){}}}}return t}},40563,(e,t,s)=>{var r="function"==typeof Symbol&&Symbol.for,a=r?Symbol.for("react.element"):60103,l=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,d=r?Symbol.for("react.strict_mode"):60108,n=r?Symbol.for("react.profiler"):60114,o=r?Symbol.for("react.provider"):60109,c=r?Symbol.for("react.context"):60110,u=r?Symbol.for("react.async_mode"):60111,m=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,x=r?Symbol.for("react.suspense"):60113,h=r?Symbol.for("react.suspense_list"):60120,g=r?Symbol.for("react.memo"):60115,p=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,j=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,k=r?Symbol.for("react.scope"):60119;function y(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case u:case m:case i:case n:case d:case x:return e;default:switch(e=e&&e.$$typeof){case c:case f:case p:case g:case o:return e;default:return t}}case l:return t}}}function w(e){return y(e)===m}s.AsyncMode=u,s.ConcurrentMode=m,s.ContextConsumer=c,s.ContextProvider=o,s.Element=a,s.ForwardRef=f,s.Fragment=i,s.Lazy=p,s.Memo=g,s.Portal=l,s.Profiler=n,s.StrictMode=d,s.Suspense=x,s.isAsyncMode=function(e){return w(e)||y(e)===u},s.isConcurrentMode=w,s.isContextConsumer=function(e){return y(e)===c},s.isContextProvider=function(e){return y(e)===o},s.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},s.isForwardRef=function(e){return y(e)===f},s.isFragment=function(e){return y(e)===i},s.isLazy=function(e){return y(e)===p},s.isMemo=function(e){return y(e)===g},s.isPortal=function(e){return y(e)===l},s.isProfiler=function(e){return y(e)===n},s.isStrictMode=function(e){return y(e)===d},s.isSuspense=function(e){return y(e)===x},s.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===m||e===n||e===d||e===x||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===p||e.$$typeof===g||e.$$typeof===o||e.$$typeof===c||e.$$typeof===f||e.$$typeof===j||e.$$typeof===v||e.$$typeof===k||e.$$typeof===b)},s.typeOf=y},49957,(e,t,s)=>{e.i(50461),t.exports=e.r(40563)}],29543,(e,t,s)=>{let r="/works";(window.__NEXT_P=window.__NEXT_P||[]).push([r,()=>e.r(72200)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([r])})}]);
@@ -1,59 +0,0 @@
1
- (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,[61494,e=>{var r=e.i(91398),t=e.i(41158),a=e.i(3828),s=e.i(69322);e.s(["f",0,({routeName:e=null,currentPageTitle:o=null,depth:l=null})=>{let i=(0,a.useRouter)(),{formatMessage:n}=(0,s.S)(),d={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=i.asPath?.split("/")?.filter((e,r)=>i.asPath?.split("/")?.indexOf(e)===r);if(1===c.length)return null;let u="";l&&c.splice(l),e&&(c[c.length-1]=e);let f=c?.map(r=>{if(u+=`${r}/`,!r)return{name:n({id:"home",defaultMessage:"Home"}),path:"/"};let t=r?.split("?")[0],a=e?t:t.replace(/-/g," "),s=d[t];return{name:s?n({id:s,defaultMessage:a}):decodeURIComponent(a),path:u.replace(/.$/,"")}});return(0,r.jsx)("nav",{className:"mb-5 hidden sm:flex lg:mt-5 lg:mb-8","aria-label":"Breadcrumb",children:(0,r.jsx)("ol",{className:"flex items-center space-x-4",children:f?.map((e,a)=>(0,r.jsx)("li",{children:(0,r.jsxs)("div",{className:"flex items-center",children:[0!==a&&(0,r.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-slate-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,r.jsx)("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})}),(0,r.jsx)(t.default,{href:e.path,className:"text-sm font-medium capitalize text-slate-500 dark:text-slate-400 dark:hover:text-slate-300 hover:text-slate-700 focus:outline-hidden focus:ring-2 focus:ring-slate-800 rounded-md px-1 py-1",children:a===f.length-1&&o?o:e.name})]})},e.path))})})}])},81013,e=>{var r=e.i(91398),t=e.i(72043);e.s(["f",0,({text:e,children:a,onClick:s,className:o="",disabled:l=!1,id:i="",variant:n="primary",size:d="md",type:c="button",loading:u=!1,icon:f,iconRight:p,fullWidth:m=!1,rounded:b="md",ariaLabel:v,...y})=>{let g=a||e,x=(f||p)&&g?"gap-2":"";return(0,r.jsx)("button",{id:i,type:c,disabled:l||u,onClick:s,"aria-label":v,className:(0,t.default)("inline-flex items-center justify-center font-medium shadow-xs focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50",{xs:"px-2.5 py-1.5 text-xs h-6",sm:"px-3 py-2 text-sm h-8",md:"px-4 py-2 text-sm h-9",lg:"px-6 py-3 text-base h-11"}[d],{none:"rounded-none",sm:"rounded-sm",md:"rounded-md",lg:"rounded-lg",full:"rounded-full"}[b],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",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-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[n],x,{"w-full":m},o),...y,children:u?(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),g]}):(0,r.jsxs)(r.Fragment,{children:[f,g,p]})})}])},68057,e=>{var r=e.i(91398),t=e.i(69322),a=e.i(69211),s=e.i(73419),o=e.i(99160),l=e.i(98949),i=e.i(5505);e.s(["f",0,({onSubmit:e,onSubmitSuccess:n,providerTypes:d,providerInterfaces:c,onProviderChange:u,readOnly:f})=>{let{formatMessage:p}=(0,t.S)(),m=p({id:"provider_created_success",defaultMessage:"Provider created successfully!"}),b=(0,l.f)({submit:e,onSubmitSuccess:n,successMessage:m,enableReinitialize:!0,initialValues:{adapterKey:"",type:""}});return(0,r.jsx)(i.U,{children:(0,r.jsx)(a.f,{form:b,children:(0,r.jsxs)("div",{className:"shadow-sm dark:shadow-none sm:max-w-full sm:rounded-lg",children:[(0,r.jsxs)("div",{className:"px-4 pt-4 pb-6",children:[(0,r.jsx)(s.f,{onChange:e=>u(e.target.value),name:"type",disabled:f,required:!0,label:p({id:"type",defaultMessage:"Type"}),options:d,className:"mb-5"}),(0,r.jsx)(s.f,{name:"adapterKey",required:!0,disabled:f,options:c,label:p({id:"adapter",defaultMessage:"Adapter"}),className:"mt-2"})]}),!f&&(0,r.jsx)("div",{className:"border-t-slate-100 border-t dark:border-t-slate-700 space-y-6 bg-slate-50 dark:bg-slate-900 p-6 px-5 text-right",children:(0,r.jsx)(o.f,{label:p({id:"create_provider",defaultMessage:"Create provider"})})})]})})})}])},17644,e=>{var r=e.i(91398),t=e.i(58678),a=e.i(41158),s=e.i(69322),o=e.i(37369),l=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:i=null,onDelete:n=null,children:d=null,title:c=null,addPath:u=null,addButtonText:f=null})=>{let{formatMessage:p}=(0,s.S)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(t.default,{children:(0,r.jsxs)("title",{children:["Unchained AdminUI - ",c||e," "]})}),(0,r.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,r.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,r.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,r.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[d,u&&(0,r.jsx)(a.default,{href:u,children:(0,r.jsx)(l.f,{variant:"secondary",icon:(0,r.jsx)(o.f,{className:"h-5 w-5"}),text:f||p({id:"add",defaultMessage:"Add"})})}),i&&(0,r.jsx)(l.f,{variant:"secondary",onClick:i,text:p({id:"edit",defaultMessage:"Edit"})}),n&&(0,r.jsx)(l.f,{variant:"danger",onClick:n,text:p({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},1504,e=>{e.s(["f",0,(e,r,t)=>Object.assign({},...e?.map(e=>({[e[t]]:e[r]}))||[])])},36494,e=>{var r=e.i(59080);let t=r.f`
2
- fragment AddressFragment on Address {
3
- firstName
4
- lastName
5
- company
6
- addressLine
7
- postalCode
8
- city
9
- countryCode
10
- regionCode
11
- }
12
- `;e.s(["f",0,t])},73319,e=>{let r=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,r,"T",0,e=>!(!e||null==e||r(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},93333,e=>{var r=e.i(59080),t=e.i(32171);let a=r.f`
13
- query DeliveryProvidersType {
14
- deliveryProviderType: __type(name: "DeliveryProviderType") {
15
- options: enumValues {
16
- value: name
17
- label: description
18
- }
19
- }
20
- }
21
- `;e.s(["f",0,()=>{let{data:e,loading:r,error:s}=(0,t.f)(a);return{deliveryProviderType:e?.deliveryProviderType?.options||[],loading:r,error:s}}])},73419,e=>{var r=e.i(91398),t=e.i(72043),a=e.i(60741),s=e.i(29691);e.s(["f",0,e=>{let{options:o,...l}=(0,a.f)(e),{className:i}=e||{className:""};return(0,r.jsx)(s.f,{...l,children:(0,r.jsx)("div",{className:"select-wrap",children:(0,r.jsxs)("select",{className:(0,t.default)("block w-full dark:bg-slate-900 dark:text-white rounded-md border-1 border-slate-300 dark:border-slate-700 py-2.5 pl-3 pr-10 text-base text-black shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800 sm:text-sm",i,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!l.error}),disabled:l.disabled,id:l.name,name:l.name,onChange:l.onChange,onBlur:l.onBlur,value:l.value,children:[(0,r.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:l.required,hidden:l.required,children:l.placeholder||l.label}),Object.entries(o).map(([e,t])=>(0,r.jsx)("option",{className:"dark:text-slate-200",value:e,children:t},e))]})})})}])},99160,e=>{var r=e.i(91398),t=e.i(72043),a=e.i(38865),s=e.i(61898);e.s(["f",0,({label:e,disabled:o=!1,className:l="",hidden:i=!1,...n})=>{let d=(0,a.m)(),{...c}=n,u=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:f}=(0,s.f)(),p=Object.values(u).reduce((e,{error:r,touched:t})=>e||r&&t,!1),m=o||f||d.isSubmitting||p,b=d.isSubmitting&&!p,v=(o||f||p)&&!d.isSubmitting;return(0,r.jsx)("input",{className:(0,t.default)("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-slate-800 dark:focus:ring-slate-400",l,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":v,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":b,"bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!m,hidden:i}),"aria-label":e,type:"submit",value:e,disabled:m,...c})}])},8320,e=>{var r=e.i(91398),t=e.i(91788),a=e.i(66773),s=e.i(3828),o=e.i(69322),l=e.i(58971),i=e.i(61494),n=e.i(68057),d=e.i(17644),c=e.i(1504),u=e.i(59080),f=e.i(76204),p=e.i(36494);let m=u.f`
22
- mutation CreateDeliveryProvider(
23
- $deliveryProvider: CreateDeliveryProviderInput!
24
- ) {
25
- createDeliveryProvider(deliveryProvider: $deliveryProvider) {
26
- _id
27
- created
28
- updated
29
- deleted
30
- type
31
- isActive
32
- configuration
33
- interface {
34
- _id
35
- label
36
- version
37
- }
38
- configurationError
39
- ... on DeliveryProviderPickUp {
40
- pickUpLocations {
41
- _id
42
- name
43
- address {
44
- ...AddressFragment
45
- }
46
- }
47
- }
48
- }
49
- }
50
- ${p.f}
51
- `;var b=e.i(32171);let v=u.f`
52
- query DeliveryInterfaces($providerType: DeliveryProviderType) {
53
- deliveryInterfaces(type: $providerType) {
54
- _id
55
- value: _id
56
- label
57
- }
58
- }
59
- `;var y=e.i(93333);e.s(["default",0,()=>{let[e,u]=(0,t.useState)(a.F.Shipping),{formatMessage:p}=(0,o.S)(),{createDeliveryProvider:g}=(()=>{let[e,{data:r,error:t,loading:a}]=(0,f.f)(m);return{createDeliveryProvider:async({deliveryProvider:{adapterKey:r,type:t}})=>e({variables:{deliveryProvider:{adapterKey:r,type:t}},refetchQueries:["DeliveryProviders","ShopStatus"]}),newDeliveryProvider:r?.createDeliveryProvider,loading:a,error:t}})(),{deliveryProviderType:x}=(0,y.f)(),{deliveryInterfaces:h}=(({providerType:e=null})=>{let{data:r,loading:t,error:a}=(0,b.f)(v,{skip:!e,variables:{providerType:e}});return{deliveryInterfaces:r?.deliveryInterfaces||[],loading:t,error:a}})({providerType:e}),{hasRole:k}=(0,l.f)(),j=async({adapterKey:e,type:r})=>{let{data:t,error:a}=await g({deliveryProvider:{adapterKey:e,type:r}});return!a&&{success:!0,data:t?.createDeliveryProvider}},w=(0,s.useRouter)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(i.f,{}),(0,r.jsxs)("div",{className:"mx-auto sm:max-w-2xl",children:[(0,r.jsx)(d.f,{headerText:p({id:"new_delivery_provider",defaultMessage:"New delivery provider"})}),(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)(n.f,{readOnly:!k(a.C.ManageDeliveryProviders),providerInterfaces:(0,c.f)(h,"label","value"),providerTypes:(0,c.f)(x,"label","value"),onSubmit:j,onSubmitSuccess:(e,{_id:r})=>{w.replace(`/delivery-provider?deliveryProviderId=${r}`)},onProviderChange:e=>u(e)})})]})]})}],8320)},76204,e=>{var r=e.i(24669),t=e.i(91788),a=e.i(30928),s=e.i(52006);let o=e.i(21953).f?t.useLayoutEffect:t.useEffect;var l=e.i(98926);function i(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,n){let d=(0,l.f)(n?.client),[c,u]=t.useState(()=>i(d)),f=t.useRef({result:c,mutationId:0,isMounted:!0,client:d,mutation:e,options:n});o(()=>{Object.assign(f.current,{client:d,options:n,mutation:e})});let p=t.useCallback((e={})=>{let{options:t,mutation:o}=f.current,l={...t,mutation:o},i=e.client||f.current.client,n="function"==typeof e.context?e.context(t?.context):e.context;!f.current.result.loading&&f.current.isMounted&&u(f.current.result={loading:!0,error:void 0,data:void 0,called:!0,client:i});let d=++f.current.mutationId,c=(0,a.f)(l,{...e,context:n});return(0,s.f)(i.mutate(c).then(t=>{let{data:a,error:s}=t,o=e.onError||f.current.options?.onError;if(s&&o&&o(s,c),d===f.current.mutationId){let e={called:!0,loading:!1,data:a,error:s,client:i};f.current.isMounted&&!(0,r.f)(f.current.result,e)&&u(f.current.result=e)}let l=e.onCompleted||f.current.options?.onCompleted;return s||l?.(t.data,c),t},t=>{if(d===f.current.mutationId&&f.current.isMounted){let e={loading:!1,error:t,data:void 0,called:!0,client:i};(0,r.f)(f.current.result,e)||u(f.current.result=e)}let a=e.onError||f.current.options?.onError;throw a&&a(t,c),t}))},[]),m=t.useCallback(()=>{if(f.current.isMounted){let e=i(f.current.client);Object.assign(f.current,{mutationId:0,result:e}),u(e)}},[]);return t.useEffect(()=>{let e=f.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[p,{reset:m,...c}]}],76204)},37369,e=>{var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...a},s){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:s,"aria-labelledby":t},a),e?r.createElement("title",{id:t},e):null,r.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,t],37369)},9356,e=>{var r=e.i(35113);e.s(["f",0,function(e){return!(!(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))&&"number"!=typeof e||isNaN(+(0,r.f)(e)))}],9356)},49543,e=>{var r=e.i(35113);e.s(["f",0,function(e,t){let a=(0,r.f)(e,t?.in);return a.setHours(0,0,0,0),a}])},35113,2848,98170,e=>{let r=Symbol.for("constructDateFrom");function t(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&r in e?e[r](t):e instanceof Date?new e.constructor(t):new Date(t)}e.s(["C",0,r,"_",0,864e5,"r",0,36e5,"z",0,6e4,"A",0,6048e5,"k",0,1440,"d",0,43200,"l",0,525600],2848),e.s(["f",0,t],98170),e.s(["f",0,function(e,r){return t(r||e,e)}],35113)},34980,(e,r,t)=>{var a=e.r(49957),s={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},l={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},i={};function n(e){return a.isMemo(e)?l:i[e.$$typeof]||s}i[a.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},i[a.Memo]=l;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,m=Object.prototype;r.exports=function e(r,t,a){if("string"!=typeof t){if(m){var s=p(t);s&&s!==m&&e(r,s,a)}var l=c(t);u&&(l=l.concat(u(t)));for(var i=n(r),b=n(t),v=0;v<l.length;++v){var y=l[v];if(!o[y]&&!(a&&a[y])&&!(b&&b[y])&&!(i&&i[y])){var g=f(t,y);try{d(r,y,g)}catch(e){}}}}return r}},40563,(e,r,t)=>{var a="function"==typeof Symbol&&Symbol.for,s=a?Symbol.for("react.element"):60103,o=a?Symbol.for("react.portal"):60106,l=a?Symbol.for("react.fragment"):60107,i=a?Symbol.for("react.strict_mode"):60108,n=a?Symbol.for("react.profiler"):60114,d=a?Symbol.for("react.provider"):60109,c=a?Symbol.for("react.context"):60110,u=a?Symbol.for("react.async_mode"):60111,f=a?Symbol.for("react.concurrent_mode"):60111,p=a?Symbol.for("react.forward_ref"):60112,m=a?Symbol.for("react.suspense"):60113,b=a?Symbol.for("react.suspense_list"):60120,v=a?Symbol.for("react.memo"):60115,y=a?Symbol.for("react.lazy"):60116,g=a?Symbol.for("react.block"):60121,x=a?Symbol.for("react.fundamental"):60117,h=a?Symbol.for("react.responder"):60118,k=a?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case s:switch(e=e.type){case u:case f:case l:case n:case i:case m:return e;default:switch(e=e&&e.$$typeof){case c:case p:case y:case v:case d:return e;default:return r}}case o:return r}}}function w(e){return j(e)===f}t.AsyncMode=u,t.ConcurrentMode=f,t.ContextConsumer=c,t.ContextProvider=d,t.Element=s,t.ForwardRef=p,t.Fragment=l,t.Lazy=y,t.Memo=v,t.Portal=o,t.Profiler=n,t.StrictMode=i,t.Suspense=m,t.isAsyncMode=function(e){return w(e)||j(e)===u},t.isConcurrentMode=w,t.isContextConsumer=function(e){return j(e)===c},t.isContextProvider=function(e){return j(e)===d},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===s},t.isForwardRef=function(e){return j(e)===p},t.isFragment=function(e){return j(e)===l},t.isLazy=function(e){return j(e)===y},t.isMemo=function(e){return j(e)===v},t.isPortal=function(e){return j(e)===o},t.isProfiler=function(e){return j(e)===n},t.isStrictMode=function(e){return j(e)===i},t.isSuspense=function(e){return j(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===l||e===f||e===n||e===i||e===m||e===b||"object"==typeof e&&null!==e&&(e.$$typeof===y||e.$$typeof===v||e.$$typeof===d||e.$$typeof===c||e.$$typeof===p||e.$$typeof===x||e.$$typeof===h||e.$$typeof===k||e.$$typeof===g)},t.typeOf=j},49957,(e,r,t)=>{e.i(50461),r.exports=e.r(40563)}],74795,(e,r,t)=>{let a="/delivery-provider/new";(window.__NEXT_P=window.__NEXT_P||[]).push([a,()=>e.r(8320)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([a])})}]);
@@ -1,145 +0,0 @@
1
- (()=>{"use strict";(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,11309,e=>{var t=e.i(91398),s=e.i(72043),l=e.i(88566),a=e.i(25575),r=e.i(91788);let i=({header:e,body:i,headerCSS:d="",bodyCSS:n="",itemContainerCSS:o="",itemindex:c=1,hideChevron:m=!1})=>{let[u,x]=(0,r.useState)(!1);return(0,t.jsxs)("div",{className:(0,s.default)("mt-3",o),"data-itemindex":c,children:[(0,t.jsxs)("button",{type:"button",onClick:()=>x(!u),className:(0,s.default)("relative cursor-pointer border dark:border-slate-800 bg-white dark:bg-slate-900 text-slate-500 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 w-full max-w-full overflow-hidden",d),children:[(0,t.jsx)("div",{className:"w-full",children:e}),!m&&(0,t.jsx)("span",{className:"px-2",children:u?(0,t.jsx)(a.f,{className:"h-5 w-5"}):(0,t.jsx)(l.f,{className:"h-5 w-5"})})]}),u?(0,t.jsx)("div",{className:(0,s.default)("rounded-lg sm:p-4 xl:p-10 relative overflow-visible",n),children:i}):""]})};e.s(["f",0,({data:e,containerCSS:l="",headerCSS:a="",bodyCSS:r="",itemContainerCSS:d="",hideChevron:n=!1,...o})=>(0,t.jsx)("div",{className:(0,s.default)("my-3",l),...o,children:e.map(({header:e,body:s},l)=>(0,t.jsx)(i,{itemindex:l,header:e,body:s,headerCSS:a,bodyCSS:r,itemContainerCSS:d,hideChevron:n},l))})],11309)},23647,26013,e=>{var t=e.i(91398),s=e.i(69322),l=e.i(15361),a=e.i(91788);let r=a.forwardRef(function({title:e,titleId:t,...s},l){return a.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":t},s),e?a.createElement("title",{id:t},e):null,a.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["f",0,r],26013);var i=e.i(67912),d=e.i(41158),n=e.i(93380),o=e.i(35065);let c=({username:e})=>(0,t.jsx)(i.f,{className:"h-8 w-8 text-slate-800 dark:text-slate-600"});e.s(["f",0,({user:e,contact:a})=>{let{formatMessage:i}=(0,s.S)();return(0,t.jsxs)("div",{className:"flex items-center gap-3",children:[(0,t.jsx)("div",{className:"h-8 w-8 rounded-full",children:e?.avatar?(0,t.jsx)(o.f,{src:e.avatar.url,alt:e.name||e.username,width:100,height:100}):(0,t.jsx)(c,{username:e?.username})}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center gap-4",children:[(0,t.jsx)("div",{className:"flex items-center justify-between gap-3 flex-wrap",children:(0,t.jsxs)("span",{className:"flex items-center",children:[(0,t.jsx)("h3",{className:"text-xl font-semibold capitalize",children:(0,t.jsx)(d.default,{href:`/users?userId=${e?._id}`,className:"text-slate-800 dark:text-slate-300 hover:text-slate-900 dark:hover:text-slate-600",children:(0,n.f)(e)})}),e?.primaryEmail?.verified&&(0,t.jsxs)("dl",{className:"self-end",children:[(0,t.jsx)("dt",{className:"sr-only",children:i({id:"account_status",defaultMessage:"Account status"})}),(0,t.jsx)("dd",{className:"mt-3 flex items-center self-end text-sm font-medium capitalize text-slate-900 sm:mr-6 sm:mt-0",children:e?.primaryEmail?.verified?(0,t.jsx)(l.f,{className:"h-4 w-4 shrink-0 text-emerald-400","aria-hidden":"true"}):(0,t.jsx)(r,{className:"h-4 w-4 shrink-0 text-rose-400","aria-hidden":"true"})})]})]})}),a?.emailAddress&&(0,t.jsx)("div",{children:a.emailAddress}),a?.telNumber&&(0,t.jsx)("div",{children:a.telNumber})]})]})}],23647)},55215,e=>{var t=e.i(91398),s=e.i(72043);e.s(["f",0,({value:e,className:l,onChange:a=()=>{},rows:r=7,...i})=>{let d=Math.max(e?e.split("\n").length:1,r);return(0,t.jsx)("textarea",{className:(0,s.default)("text-black dark:bg-slate-900 dark:text-slate-200 border-transparent border-t border-t-slate-200 dark:border-t-slate-800 resize-y",l),value:e,onChange:a,rows:d,...i})}])},26178,e=>{var t=e.i(91398),s=e.i(91788);let l=s.forwardRef(function({title:e,titleId:t,...l},a){return s.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},l),e?s.createElement("title",{id:t},e):null,s.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M18.364 18.364A9 9 0 0 0 5.636 5.636m12.728 12.728A9 9 0 0 1 5.636 5.636m12.728 12.728L5.636 5.636"}))});var a=e.i(72043),r=e.i(69322);e.s(["f",0,({message:e,className:s="",Icon:i=null})=>(0,t.jsx)("div",{className:(0,a.default)("rounded-md flex w-full flex-col items-center justify-center min-h-[176px] py-8 border-1 border-dashed border-slate-300 dark:border-slate-700 text-slate-500 dark:text-slate-600",s),children:(0,t.jsxs)("div",{className:"grid items-center justify-center",children:[(0,t.jsx)("div",{className:"flex items-center justify-center text-slate-400 dark:text-slate-600",children:i||(0,t.jsx)(l,{className:"h-6 w-6"})}),(0,t.jsx)(r.K,{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}})]})})],26178)},66885,e=>{var t=e.i(91398),s=e.i(69322),l=e.i(38322),a=e.i(84818),r=e.i(83147),i=e.i(51782);e.s(["f",0,({data:e,statusTypes:d,timeline:n})=>{let{formatMessage:o}=(0,s.S)(),{formatDateTime:c}=(0,a.f)(),{content:m={},id:u}=n[e?.status]||{},x=d.filter(({value:e})=>n[e]?.visible);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"flow-root sm:hidden",children:(0,t.jsx)("ul",{className:"my-4",children:x.map(({value:s,label:a},i)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"relative pb-8",children:[i!==x.length-1?(0,t.jsx)("span",{className:(0,r.S)(u>i+1?"bg-slate-900":"bg-slate-200","absolute top-2.5 left-2.5 -ml-px h-full w-0.5"),"aria-hidden":"true"}):null,(0,t.jsxs)("div",{className:"relative flex items-center space-x-3",children:[(0,t.jsx)("div",{children:(0,t.jsx)("span",{className:(0,r.S)(u>i?"bg-slate-900":"bg-slate-600","flex h-5 w-5 items-center justify-center rounded-full"),children:u>i?(0,t.jsx)(l.f,{className:"h-5 w-5 text-white","aria-hidden":"true"}):null})}),(0,t.jsxs)("div",{className:"ml-4 flex min-w-0 flex-1 items-center justify-between",children:[(0,t.jsx)("div",{className:"flex-auto",children:(0,t.jsx)("p",{className:"text-sm text-slate-500",children:(0,t.jsxs)("span",{className:"flex w-full items-center justify-between text-slate-900 dark:text-slate-200",children:[s,n[s]?.Component&&n[s].Component]})})}),u>=n[s].id?(0,t.jsx)("div",{className:"whitespace-nowrap text-right text-sm text-slate-500 dark:text-slate-200 ml-4",children:e[n?.[s]?.content]?c(e[n?.[s]?.content],{dateStyle:"short",timeStyle:"short"}):null}):null]})]})]})},`${s}${a}`))})}),(0,t.jsxs)("div",{className:" p-4 bg-white shadow-sm dark:shadow-none dark:border dark:border-slate-700 sm:rounded-lg dark:bg-slate-900",children:[(0,t.jsxs)("p",{className:"font-medium flex items-center justify-between",children:[(0,t.jsx)(i.f,{status:e.status}),(0,t.jsx)("span",{children:e[m]?c(e[m],{dateStyle:"full",timeStyle:"medium"}):o({id:"in_cart",defaultMessage:"In cart"})})]}),(0,t.jsx)("div",{className:"mt-2","aria-hidden":"true",children:(0,t.jsx)("div",{className:"mt-2 hidden text-sm font-medium text-slate-600 sm:flex",children:x.map(({value:s,label:l})=>(0,t.jsxs)("div",{className:"sm:flex-auto",children:[(0,t.jsx)("div",{className:"relative mb-4 mr-1",children:(0,t.jsx)("span",{className:(0,r.S)(u>=n[s].id?e?.status==="CONFIRMED"?"bg-lime-600":e?.status==="PENDING"?"bg-amber-600":e?.status==="OPEN"?"bg-sky-600":"bg-emerald-600":"bg-slate-200 dark:bg-slate-700","absolute top-0 left-0 -ml-px h-2 w-full"),"aria-hidden":"true"})}),(0,t.jsxs)("div",{className:(0,r.S)(u>=n[s].id?"text-slate-900":"opacity-50","text-start"),children:[(0,t.jsx)("span",{className:"text-slate-900 dark:text-slate-400 uppercase",children:n[s]?.Component?n[s].Component:"CONFIRMED"===s?o({id:"confirmed",defaultMessage:"CONFIRMED"}):"PENDING"===s?o({id:"pending",defaultMessage:"PENDING"}):"OPEN"===s?o({id:"open",defaultMessage:"OPEN"}):"FULFILLED"===s?o({id:"fulfilled",defaultMessage:"FULFILLED"}):"REJECTED"===s?o({id:"rejected",defaultMessage:"REJECTED"}):s}),(0,t.jsx)("span",{className:"block text-slate-900 dark:text-slate-100",children:u>=n?.[s]?.id?c(e[n?.[s]?.content],{dateStyle:"short",timeStyle:"short"}):null})]})]},`${s}${l}`))})})]})]})}])},8918,e=>{var t=e.i(91398),s=e.i(91788),l=e.i(72043),a=e.i(69322),r=e.i(88566),i=e.i(25575),d=e.i(3828),n=e.i(83147);let o=({onSort:e,sortDirection:s})=>s?"ASC"===s?(0,t.jsx)(i.f,{className:"ml-2 w-5 h-5 text-slate-700",onClick:e}):(0,t.jsx)(r.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(26178);let m=e=>{let t=[],l=[],a=[];return s.default.Children.forEach(e.children,e=>{e?.props?.header?t.push(e):e?.props?.footer?a.push(e):l.push(e)}),{header:t,footer:a,body:l}},u=({className:e="",...r})=>{let[i,d]=(0,s.useState)(m(r)),{formatMessage:n}=(0,a.S)(),o={...i,header:s.default.Children.map(i.header,e=>s.default.cloneElement(e))};return(0,s.useEffect)(()=>{d(m(r))},[r.children]),o.header.length||o.body.length?(0,t.jsxs)("table",{className:(0,l.default)("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),...r,children:[(0,t.jsx)("thead",{className:"hidden sm:table-header-group bg-slate-100 dark:bg-slate-700 text-sm text-slate-700 dark:text-slate-200",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:n({id:"data",defaultMessage:"Data"})})};u.Row=({className:e="",children:a=[],header:r=!1,enablesort:i=!1,...d})=>{let n=s.default.Children.map(a,e=>s.default?.cloneElement(e||(0,t.jsx)("span",{}),{header:r,enablesort:i}));return(0,t.jsx)("tr",{className:(0,l.default)("grid grid-cols-1 auto-rows-fr border border-slate-100 dark:border-slate-700 sm:border-0 rounded-md sm:mb-0 sm:table-row sm:rounded-none bg-white dark:bg-slate-800 sm:bg-inherit dark:sm:bg-inherit",e),...d,children:n})},u.Cell=({className:e="",header:s=!1,enablesort:a=!1,children:r,sortKey:i=null,defaultSortDirection:c=null,...m})=>{let u=(0,d.useRouter)(),x=(0,n.v)(u.query?.sort),f=s?"th":"td";return(0,t.jsx)(f,{className:(0,l.default)(s?"px-4 py-3 text-left text-slate-500 dark:text-slate-200":"whitespace-nowrap px-4 py-3 text-slate-500 dark:text-slate-200 border-b dark:border-slate-300 last:border-b-0 sm:border-b-0 text-left flex items-center sm:table-cell",e),...m,children:(0,t.jsxs)("div",{className:"flex items-center",children:[r,"th"===f&&a&&i&&(0,t.jsx)(o,{onSort:e=>{var t;let s;e.preventDefault(),((t=x[i])?"ASC"===t?"DESC":null:"ASC")||!x[i]?s={...x,[i]:"ASC"===x[i]?"DESC":"ASC"}:(delete x[i],s=x);let l=Object.entries(s).map(([e,t])=>[e,t].join("_")).join(","),{sort:a,...r}=u.query,d=Object.keys(r).map(e=>[e,r[e]].join("=")).join("&"),o=0===Object.keys(r).length?`${u.basePath}?sort=${l}`:`${u.basePath}?${d}&sort=${l}`;l?u.push(o):u.push({query:(0,n._)(r)})},sortDirection:Object.keys(x).length?x[i]:c})]})})},e.s(["f",0,u],8918)},59027,e=>{var t=e.i(59080),s=e.i(32171);let l=t.f`
2
- query EnrollmentStatus {
3
- enrollmentStatusTypes: __type(name: "EnrollmentStatus") {
4
- options: enumValues {
5
- value: name
6
- label: description
7
- }
8
- }
9
- }
10
- `;e.s(["f",0,()=>{let{data:e,loading:t,error:a}=(0,s.f)(l);return{enrollmentStatusTypes:e?.enrollmentStatusTypes?.options||[],loading:t,error:a}}])},21056,e=>{var t=e.i(59080),s=e.i(76204);let l=t.f`
11
- mutation SendEnrollmentEmail($email: String!) {
12
- sendEnrollmentEmail(email: $email) {
13
- success
14
- }
15
- }
16
- `;e.s(["f",0,()=>{let[e]=(0,s.f)(l);return{sendEnrollmentEmail:async({email:t})=>e({variables:{email:t}})}}])},34728,e=>{var t=e.i(91398),s=e.i(38322);e.s(["f",0,({onOkClick:e,buttonText:l,headerText:a,message:r,icon:i=null})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[i||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-emerald-100 dark:bg-emerald-900/30",children:(0,t.jsx)(s.f,{className:"h-6 w-6 text-emerald-600 dark:text-emerald-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor","aria-hidden":"true"})}),(0,t.jsxs)("div",{className:"mt-3 text-center sm:mt-5",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",id:"modal-title",children:a}),(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("p",{className:"text-sm text-slate-500 dark:text-slate-200",children:r})})]})]}),(0,t.jsx)("div",{className:"mt-5 sm:mt-6",children:(0,t.jsx)("button",{id:"alert_ok",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 px-4 py-2 text-base font-medium text-white shadow-xs hover:bg-slate-950 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2 sm:text-sm",children:l})})]})])},51782,e=>{var t=e.i(91398),s=e.i(69322),l=e.i(65153),a=e.i(60193);let r={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.S)(),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 r?.[e],(0,t.jsx)(l.f,{text:o,color:a.v[e],square:!0,className:`uppercase ${i}`})}])},20372,e=>{var t=e.i(91398),s=e.i(69322),l=e.i(61494),a=e.i(12197),r=e.i(17644),i=e.i(41158),d=e.i(28401),n=e.i(61465),o=e.i(59027),c=e.i(66885),m=e.i(11309),u=e.i(83147),x=e.i(16509),f=e.i(26178),h=e.i(65153),g=e.i(8918),p=e.i(84818);let b=({periods:e})=>{let{formatMessage:l}=(0,s.S)(),{formatDateTime:a}=(0,p.f)();return(0,t.jsx)("section",{className:"mt-3",children:e?.length?(0,t.jsxs)(g.f,{className:"mt-0 min-w-full rounded-t-none",children:[(e||[])?.map(e=>(0,t.jsxs)(g.f.Row,{className:"bg-white ",header:!0,children:[(0,t.jsx)(g.f.Cell,{children:l({id:"order",defaultMessage:"Order"})}),(0,t.jsx)(g.f.Cell,{className:"text-left",children:l({id:"start",defaultMessage:"Start"})}),(0,t.jsx)(g.f.Cell,{children:l({id:"end",defaultMessage:"End"})})]},`${e.start}${e.end}`)),(e||[])?.map(e=>(0,t.jsxs)(g.f.Row,{children:[(0,t.jsx)(g.f.Cell,{children:(0,t.jsxs)("div",{className:"flex items-center text-sm text-slate-900",children:[e?.order?.orderNumber?e?.order?.orderNumber:"n/a",e?.isTrial&&(0,t.jsx)(h.f,{text:l({id:"trial",defaultMessage:"Trial"}),color:"pink",className:"ml-2 rounded-full py-1 text-sm font-semibold leading-5",square:!0})]})}),(0,t.jsx)(g.f.Cell,{children:a(e?.start,{dateStyle:"medium",timeStyle:"medium"})}),(0,t.jsx)(g.f.Cell,{children:a(e?.end,{dateStyle:"medium",timeStyle:"medium"})})]},`${e.start}`))]}):(0,t.jsx)(f.f,{message:l({id:"subscription_message",defaultMessage:"Subscription"})})})};var j=e.i(81013),v=e.i(59080),N=e.i(76204);let w=v.f`
17
- mutation ActivateEnrollment($enrollmentId: ID!) {
18
- activateEnrollment(enrollmentId: $enrollmentId) {
19
- _id
20
- }
21
- }
22
- `;var y=e.i(6607),k=e.i(34728);let E=v.f`
23
- mutation TerminateEnrollment($enrollmentId: ID!) {
24
- terminateEnrollment(enrollmentId: $enrollmentId) {
25
- _id
26
- }
27
- }
28
- `;var C=e.i(21056),M=e.i(15971),_=e.i(23647);let S=({enrollment:e})=>{let{formatMessage:l,locale:a}=(0,s.S)(),{formatDateTime:r}=(0,p.f)();return(0,t.jsxs)("section",{children:[(0,t.jsx)(_.f,{user:e?.user,contact:e?.contact}),(0,t.jsxs)("div",{className:"mt-2 flex border-b border-slate-300 dark:border-slate-800 pb-2 text-sm",children:[(0,t.jsxs)("dl",{className:"flex flex-wrap items-center gap-1",children:[(0,t.jsxs)("dt",{className:"hidden capitalize text-slate-500 sm:block",children:[l({id:"enrollment",defaultMessage:"enrollment"}),"#  "]}),(0,t.jsxs)("dd",{className:"inline-flex text-lg font-medium text-slate-900 sm:flex-none sm:text-xl sm:font-semibold",children:[(0,t.jsx)("span",{className:"sm:hidden",children:"# "}),e?.enrollmentNumber?(0,t.jsx)(h.f,{color:"slate",text:e?.enrollmentNumber,className:"p-0 text-lg font-medium sm:text-xl sm:font-semibold"}):(0,t.jsx)(h.f,{text:l({id:"initial",defaultMessage:"Initial"}),color:"yellow",className:"p-0 text-lg font-medium sm:text-xl sm:font-semibold"})]}),(0,t.jsx)("dt",{children:(0,t.jsx)("span",{className:"sr-only",children:l({id:"date",defaultMessage:"Date"})})}),(0,t.jsx)("dd",{className:"font-medium text-slate-900",children:e?.ordered?r(e?.ordered):null})]}),(0,t.jsxs)("div",{className:"ml-auto flex flex-wrap items-center justify-center gap-x-2 gap-y-1 text-sm text-slate-900 sm:text-base",children:[(0,t.jsx)("span",{children:e?.country?.flagEmoji}),(0,t.jsx)("span",{children:(0,u.j)(a,e?.currency?.isoCode)}),(0,t.jsx)("span",{children:e?.currency?.isoCode&&(0,t.jsx)(h.f,{text:e?.currency?.isoCode,color:"amber",className:"px-2 py-0 sm:py-1",square:!0})})]})]})]})};var A=e.i(55215),I=e.i(35065);let L=({enrollment:e})=>{let{formatMessage:l}=(0,s.S)(),{setModal:a}=(0,y.f)(),{enrollmentStatusTypes:r}=(0,o.f)(),{activateEnrollment:f}=(()=>{let[e]=(0,N.f)(w);return{activateEnrollment:async({enrollmentId:t})=>e({variables:{enrollmentId:t},refetchQueries:["Enrollments","Enrollment"]})}})(),{terminateEnrollment:h}=(()=>{let[e]=(0,N.f)(E);return{terminateEnrollment:async({enrollmentId:t})=>e({variables:{enrollmentId:t},refetchQueries:["Enrollments","Enrollment"]})}})(),{sendEnrollmentEmail:g}=(0,C.f)();if(!e)return null;let p=async()=>{await a((0,t.jsx)(k.f,{buttonText:l({id:"activate_button",defaultMessage:"Activate"}),headerText:l({id:"activate_header_title",defaultMessage:"Activate subscription."}),message:l({id:"activate_header_conformation",defaultMessage:"Are you sure you want to this subscription?"}),onOkClick:async()=>{a(""),await f({enrollmentId:e?._id}),d.c.success(l({id:"success_message",defaultMessage:"Subscription successfully activated."}))}}))},v=(0,t.jsx)("div",{className:"flex w-full items-center justify-center",children:(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 shrink-0 items-center justify-center rounded-full bg-blue-100 dark:bg-blue-900/30 sm:mx-0 sm:h-10 sm:w-10",children:(0,t.jsx)(n.f,{className:"h-6 w-6 text-slate-900 dark:text-blue-400","aria-hidden":"true"})})}),_=async()=>{await a((0,t.jsx)(k.f,{icon:v,buttonText:l({id:"send_button",defaultMessage:"Send"}),headerText:l({id:"send_activation_email_header",defaultMessage:"Send Email."}),message:l({id:"send_activation_email_confirm",defaultMessage:"Are you sure you want to send email?"}),onOkClick:async()=>{a("");let{data:t}=await g({email:e?.contact.emailAddress});t?.sendEnrollmentEmail?.success?d.c.success(l({id:"enrollment_success_message",defaultMessage:"Subscription activation email sent"})):d.c.error(l({id:"terminate_enrollment_error",defaultMessage:"Failed when sending subscription activation email, please try again"}))}}))},L=async()=>{await a((0,t.jsx)(M.f,{onCancelClick:async()=>a(""),message:l({id:"terminate_enrollment_confirmation",defaultMessage:"Are you sure you want to terminate this subscription? "}),onOkClick:async()=>{a(""),await h({enrollmentId:e?._id}),d.c.success(l({id:"terminate_enrollment_success",defaultMessage:"Subscription terminated successfully"}))},okText:l({id:"terminate_subscription",defaultMessage:"Terminate subscription"})}))},D={INITIAL:{id:1,content:"created",visible:!0},ACTIVE:{id:2,content:"updated",visible:!0},PAUSED:{id:3,content:"updated",visible:!0,Component:e?.status==="PAUSED"&&(0,t.jsx)(j.f,{text:l({id:"activate",defaultMessage:"Activate"}),onClick:p,className:"bg-white-300 relative -ml-px inline-flex items-center space-x-2 rounded-md border border-slate-900 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 px-2 py-1 text-base font-medium text-white hover:bg-slate-950 dark:hover:bg-slate-500 dark:focus:border-slate-400 focus:outline-hidden focus:ring-0 focus:ring-slate-800 dark:focus:ring-slate-400"})},TERMINATED:{id:4,content:"updated",visible:!0,Component:e?.status!=="TERMINATED"&&(0,t.jsx)(j.f,{text:l({id:"terminate_enrollment",defaultMessage:"Terminate Enrollment"}),onClick:L,className:"bg-white-300 inline-flex items-center space-x-2 rounded-md border border-rose-500 bg-rose-500 px-2 py-1 text-base font-medium text-white hover:bg-rose-700 focus:border-rose-400 focus:outline-hidden focus:ring-0 focus:ring-rose-400"})}},T={header:(0,t.jsx)("span",{className:"flex",children:l({id:"periods",defaultMessage:"Periods"})}),body:(0,t.jsx)(b,{periods:e?.periods})};return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(S,{enrollment:e}),(0,t.jsx)(c.f,{data:e,statusTypes:r,timeline:D}),(0,t.jsx)("section",{className:"rounded-md border border-slate-300 bg-white",children:(0,t.jsx)("div",{className:"mx-auto -mt-12 max-w-7xl px-4 pb-4 sm:px-6 sm:pb-16 lg:px-8",children:(0,t.jsxs)("dl",{className:"mx-auto mt-16 grid max-w-2xl grid-cols-1 gap-x-6 gap-y-4 sm:grid-cols-2 sm:gap-y-8 lg:max-w-none lg:grid-cols-3 lg:gap-x-8",children:[(0,t.jsxs)("div",{className:"w flex flex-auto flex-col gap-y-4 gap-x-8 sm:col-span-2 sm:gap-y-8 lg:col-span-3 lg:grid-cols-12 lg:flex-row",children:[(0,t.jsxs)("div",{className:"flex flex-auto flex-col gap-y-8 pt-4 lg:col-span-6",children:[(0,t.jsx)("span",{className:"h relative h-48 w-full rounded-lg",children:(0,t.jsx)(I.f,{loader:x.f,src:e?.plan?.product?.media?.[0]?.file?.url,alt:e?.plan?.product?.texts?.title,layout:"fill",objectFit:"contain"})}),(0,t.jsxs)("div",{className:"flex flex-col",children:[(0,t.jsx)("dt",{className:"font-medium text-slate-900",children:l({id:"product_title",defaultMessage:"Product"})}),(0,t.jsx)("dd",{className:"my-2 text-sm text-slate-500",children:e?.plan.product?.texts?.title}),(0,t.jsx)("dt",{className:"font-medium text-slate-900",children:l({id:"product_quantity",defaultMessage:"Quantity"})}),(0,t.jsx)("dd",{className:"my-2 text-sm text-slate-500",children:e?.plan?.quantity})]})]}),(0,t.jsx)("div",{className:"flex-auto border-t border-slate-300 dark:border-slate-800 pt-4 lg:col-span-6 lg:border-0",children:(0,t.jsx)(A.f,{disabled:!0,className:"bg-white dark:bg-slate-900 dark:text-slate-200 mt-1 block w-full max-w-full rounded-md border-1 resize-none border-slate-300 dark:border-slate-800 shadow-xs sm:text-sm",value:JSON.stringify((e?.plan.configuration||[]).map(({__typename:e,...t})=>t),null,2)})})]}),(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-x-6 gap-y-4 sm:gap-y-8 lg:col-span-2 lg:grid-cols-2 lg:gap-x-8",children:[(0,t.jsxs)("div",{className:"border-t border-slate-300 dark:border-slate-800 pt-4",children:[(0,t.jsx)("dt",{className:"font-medium text-slate-900",children:l({id:"payment_provider",defaultMessage:"Payment provider"})}),(0,t.jsx)("dd",{className:"mt-2 text-sm text-slate-500",children:(0,t.jsx)(i.default,{href:`/payment-provider?paymentProviderId=${e?.payment?.provider?._id}`,className:"text-slate-900 dark:text-slate-300",children:(0,u.D)(e?.payment?.provider?.interface)})})]}),(0,t.jsxs)("div",{className:"border-t border-slate-300 dark:border-slate-800 pt-4",children:[(0,t.jsx)("dt",{className:"font-medium text-slate-900",children:l({id:"delivery_provider",defaultMessage:"Delivery Provider"})}),(0,t.jsx)("dd",{className:"mt-2 text-sm text-slate-500",children:(0,t.jsx)(i.default,{href:`/delivery-provider?deliveryProviderId=${e?.delivery?.provider?._id}`,className:"text-slate-900 dark:text-slate-300",children:(0,u.D)(e?.delivery?.provider?.interface)})})]}),e?.contact&&(0,t.jsxs)("div",{className:"col-span-1 border-t border-slate-300 dark:border-slate-800 pt-4",children:[(0,t.jsx)("div",{className:"font-medium text-slate-900",children:l({id:"contact",defaultMessage:"Contact"})}),(0,t.jsx)("div",{className:"mt-2 text-sm text-slate-500",children:e?.contact?.telNumber}),(0,t.jsx)("div",{className:"mt-2 text-sm text-slate-500",children:e?.contact?.emailAddress}),e?.contact?.emailAddress&&(0,t.jsx)(j.f,{text:l({id:"send_email_button",defaultMessage:"Send Email"}),className:"px-2 py-1",onClick:_})]})]}),(0,t.jsxs)("div",{className:"border-t border-slate-300 dark:border-slate-800 pt-4",children:[(0,t.jsx)("dt",{className:"font-medium text-slate-900",children:l({id:"billing_address",defaultMessage:"Billing address"})}),(0,t.jsxs)("dd",{className:"mt-2 text-sm text-slate-500",children:[e?.billingAddress?.firstName,"  ",e?.billingAddress?.lastName]}),(0,t.jsx)("dd",{className:"mt-2 text-sm text-slate-500",children:e?.billingAddress?.company}),(0,t.jsx)("dd",{className:"mt-2 text-sm text-slate-500",children:e?.billingAddress?.addressLine}),(0,t.jsx)("dd",{className:"mt-2 text-sm text-slate-500",children:e?.billingAddress?.addressLine2}),(0,t.jsx)("dd",{className:"mt-2 text-sm text-slate-500",children:e?.billingAddress?.postalCode}),(0,t.jsxs)("dd",{className:"mt-2 text-sm text-slate-500",children:[e?.billingAddress?.city,"  ",e?.billingAddress?.regionCode,"  ",e?.billingAddress?.countryCode]})]})]})})}),(0,t.jsx)(m.f,{data:[T],headerCSS:"inline-flex items-center justify-between w-full px-4 py-2 rounded-t-md border border-slate-300 bg-slate-50 text-sm font-medium text-slate-700 hover:bg-slate-50 focus:z-10 focus:outline-hidden focus:ring-2 focus:ring-slate-800 "})]})};var D=e.i(32171),T=e.i(70693);let O=v.f`
29
- fragment EnrollmentDetailFragment on Enrollment {
30
- _id
31
- country {
32
- _id
33
- isoCode
34
- }
35
- enrollmentNumber
36
- updated
37
- status
38
- created
39
- expires
40
- billingAddress {
41
- addressLine
42
- addressLine2
43
- city
44
- company
45
- countryCode
46
- firstName
47
- lastName
48
- postalCode
49
- regionCode
50
- }
51
- contact {
52
- emailAddress
53
- telNumber
54
- }
55
- currency {
56
- _id
57
- contractAddress
58
- decimals
59
- isActive
60
- isoCode
61
- }
62
- delivery {
63
- provider {
64
- _id
65
- configuration
66
- configurationError
67
- interface {
68
- _id
69
- label
70
- version
71
- }
72
- isActive
73
-
74
- simulatedPrice {
75
- amount
76
- currencyCode
77
- isNetPrice
78
- isTaxable
79
- }
80
- type
81
- }
82
- }
83
- payment {
84
- provider {
85
- _id
86
- configuration
87
- configurationError
88
- interface {
89
- _id
90
- label
91
- version
92
- }
93
- isActive
94
- type
95
- }
96
- }
97
- periods {
98
- end
99
- isTrial
100
- start
101
- order {
102
- _id
103
- }
104
- }
105
-
106
- isExpired
107
- periods {
108
- start
109
- end
110
- isTrial
111
- }
112
- plan {
113
- configuration {
114
- key
115
- value
116
- }
117
- product {
118
- _id
119
- texts {
120
- _id
121
- title
122
- }
123
- }
124
- quantity
125
- }
126
- user {
127
- _id
128
- username
129
- name
130
- avatar {
131
- _id
132
- url
133
- }
134
- }
135
- }
136
- `;e.s(["default",0,({enrollmentId:e})=>{let{formatMessage:i}=(0,s.S)(),{enrollment:d,loading:n}=(({enrollmentId:e=null})=>{let{customProperties:t}=(0,T.f)(),{data:s,loading:l,error:a}=(0,D.f)(((e="")=>v.f`
137
- query Enrollment($enrollmentId: ID!) {
138
- enrollment(enrollmentId: $enrollmentId) {
139
- ...EnrollmentDetailFragment
140
- ${e}
141
-
142
- }
143
- }
144
- ${O}
145
- `)(t?.Enrollment),{skip:!e,variables:{enrollmentId:e}});return{enrollment:s?.enrollment,loading:l,error:a}})({enrollmentId:e});return(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(l.f,{currentPageTitle:d?.enrollmentNumber?`#${d?.enrollmentNumber}`:""}),(0,t.jsx)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:(0,t.jsx)(r.f,{headerText:i({id:"enrollment_detail",defaultMessage:"Enrollment Detail"}),title:i({id:"enrollment_detail_title",defaultMessage:"Enrollment {id}"},{id:d?._id})})}),n?(0,t.jsx)(a.f,{}):(0,t.jsx)(L,{enrollment:d})]})}],20372)},88566,25575,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},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},l),e?t.createElement("title",{id:s},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,s],88566);let l=t.forwardRef(function({title:e,titleId:s,...l},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},l),e?t.createElement("title",{id:s},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,l],25575)},15361,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},l),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z"}))});e.s(["f",0,s],15361)},38322,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},l),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["f",0,s],38322)},61465,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},l),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M2.25 13.5h3.86a2.25 2.25 0 0 1 2.012 1.244l.256.512a2.25 2.25 0 0 0 2.013 1.244h3.218a2.25 2.25 0 0 0 2.013-1.244l.256-.512a2.25 2.25 0 0 1 2.013-1.244h3.859m-19.5.338V18a2.25 2.25 0 0 0 2.25 2.25h15A2.25 2.25 0 0 0 21.75 18v-4.162c0-.224-.034-.447-.1-.661L19.24 5.338a2.25 2.25 0 0 0-2.15-1.588H6.911a2.25 2.25 0 0 0-2.15 1.588L2.35 13.177a2.25 2.25 0 0 0-.1.661Z"}))});e.s(["f",0,s],61465)},67912,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...l},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},l),e?t.createElement("title",{id:s},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M17.982 18.725A7.488 7.488 0 0 0 12 15.75a7.488 7.488 0 0 0-5.982 2.975m11.963 0a9 9 0 1 0-11.963 0m11.963 0A8.966 8.966 0 0 1 12 21a8.966 8.966 0 0 1-5.982-2.275M15 9.75a3 3 0 1 1-6 0 3 3 0 0 1 6 0Z"}))});e.s(["f",0,s],67912)}])})();