@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,4 +1,4 @@
1
- (()=>{"use strict";(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))})})}])},23647,26013,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(15361),a=e.i(91788);let l=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:"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,l],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)(r.f,{className:"h-4 w-4 shrink-0 text-emerald-400","aria-hidden":"true"}):(0,t.jsx)(l,{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)},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"})]})}])},66885,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(38322),a=e.i(84818),l=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:u={},id:m}=n[e?.status]||{},f=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:f.map(({value:s,label:a},i)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"relative pb-8",children:[i!==f.length-1?(0,t.jsx)("span",{className:(0,l.S)(m>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,l.S)(m>i?"bg-slate-900":"bg-slate-600","flex h-5 w-5 items-center justify-center rounded-full"),children:m>i?(0,t.jsx)(r.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]})})}),m>=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[u]?c(e[u],{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:f.map(({value:s,label:r})=>(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,l.S)(m>=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,l.S)(m>=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:m>=n?.[s]?.id?c(e[n?.[s]?.content],{dateStyle:"short",timeStyle:"short"}):null})]})]},`${s}${r}`))})})]})]})}])},36494,e=>{var t=e.i(59080);let s=t.f`
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,61494,e=>{"use strict";var t=e.i(91398),s=e.i(41158),r=e.i(3828),a=e.i(3326);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))})})}])},23647,26013,e=>{"use strict";var t=e.i(91398),s=e.i(3326),r=e.i(15361),a=e.i(91788);let l=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:"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,l],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)(r.f,{className:"h-4 w-4 shrink-0 text-emerald-400","aria-hidden":"true"}):(0,t.jsx)(l,{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)},81359,e=>{"use strict";var t=e.i(91398),s=e.i(24608),r=e.i(3326);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"})]})}])},66885,e=>{"use strict";var t=e.i(91398),s=e.i(3326),r=e.i(38322),a=e.i(84818),l=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:u={},id:m}=n[e?.status]||{},f=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:f.map(({value:s,label:a},i)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"relative pb-8",children:[i!==f.length-1?(0,t.jsx)("span",{className:(0,l.S)(m>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,l.S)(m>i?"bg-slate-900":"bg-slate-600","flex h-5 w-5 items-center justify-center rounded-full"),children:m>i?(0,t.jsx)(r.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]})})}),m>=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[u]?c(e[u],{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:f.map(({value:s,label:r})=>(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,l.S)(m>=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,l.S)(m>=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:m>=n?.[s]?.id?c(e[n?.[s]?.content],{dateStyle:"short",timeStyle:"short"}):null})]})]},`${s}${r}`))})})]})]})}])},36494,e=>{"use strict";var t=e.i(59080);let s=t.f`
2
2
  fragment AddressFragment on Address {
3
3
  firstName
4
4
  lastName
@@ -9,7 +9,7 @@
9
9
  countryCode
10
10
  regionCode
11
11
  }
12
- `;e.s(["f",0,s])},1880,e=>{e.s(["U",0,(e={})=>{let{_id:t,texts:s}=e||{};return s||t?`${s?.slug?.split("/").join("")||""}_id_${t}`:null},"P",0,e=>{if(!e)return null;let[t]=e?.split("_id_")||[];return t},"Q",0,e=>{if(!e)return null;let t=e?.split("_id_");return t?.pop()}])},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)}})])},93333,e=>{var t=e.i(59080),s=e.i(32171);let r=t.f`
12
+ `;e.s(["f",0,s])},1880,e=>{"use strict";e.s(["U",0,(e={})=>{let{_id:t,texts:s}=e||{};return s||t?`${s?.slug?.split("/").join("")||""}_id_${t}`:null},"P",0,e=>{if(!e)return null;let[t]=e?.split("_id_")||[];return t},"Q",0,e=>{if(!e)return null;let t=e?.split("_id_");return t?.pop()}])},83147,e=>{"use strict";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)}})])},93333,e=>{"use strict";var t=e.i(59080),s=e.i(32171);let r=t.f`
13
13
  query DeliveryProvidersType {
14
14
  deliveryProviderType: __type(name: "DeliveryProviderType") {
15
15
  options: enumValues {
@@ -18,7 +18,7 @@
18
18
  }
19
19
  }
20
20
  }
21
- `;e.s(["f",0,()=>{let{data:e,loading:t,error:a}=(0,s.f)(r);return{deliveryProviderType:e?.deliveryProviderType?.options||[],loading:t,error:a}}])},34728,e=>{var t=e.i(91398),s=e.i(38322);e.s(["f",0,({onOkClick:e,buttonText:r,headerText:a,message:l,icon:i=null})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[i||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-emerald-100 dark:bg-emerald-900/30",children:(0,t.jsx)(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:l})})]})]}),(0,t.jsx)("div",{className:"mt-5 sm:mt-6",children:(0,t.jsx)("button",{id:"alert_ok",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-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:r})})]})])},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)])},51782,e=>{var t=e.i(91398),s=e.i(69322),r=e.i(65153),a=e.i(60193);let l={PENDING:"bg-yellow-100 text-yellow-800",CONFIRMED:"bg-blue-100 text-blue-800",OPEN:"bg-gray-100 text-gray-800",FULFILLED:"bg-green-100 text-green-800",REJECTED:"bg-red-100 text-red-800"};e.s(["f",0,({status:e,className:i=""})=>{let{formatMessage:d}=(0,s.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 l?.[e],(0,t.jsx)(r.f,{text:o,color:a.v[e],square:!0,className:`uppercase ${i}`})}])},51967,e=>{var t=e.i(59080),s=e.i(32171);let r=t.f`
21
+ `;e.s(["f",0,()=>{let{data:e,loading:t,error:a}=(0,s.f)(r);return{deliveryProviderType:e?.deliveryProviderType?.options||[],loading:t,error:a}}])},34728,e=>{"use strict";var t=e.i(91398),s=e.i(38322);e.s(["f",0,({onOkClick:e,buttonText:r,headerText:a,message:l,icon:i=null})=>(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{children:[i||(0,t.jsx)("div",{className:"mx-auto flex h-12 w-12 items-center justify-center rounded-full bg-emerald-100 dark:bg-emerald-900/30",children:(0,t.jsx)(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:l})})]})]}),(0,t.jsx)("div",{className:"mt-5 sm:mt-6",children:(0,t.jsx)("button",{id:"alert_ok",onClick:e,type:"button",className:"inline-flex w-full justify-center rounded-md border border-transparent bg-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:r})})]})])},15971,e=>{"use strict";var t=e.i(91398),s=e.i(3326);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=>{"use strict";var t=e.i(91788),s=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(s.f)])},51782,e=>{"use strict";var t=e.i(91398),s=e.i(3326),r=e.i(65153),a=e.i(60193);let l={PENDING:"bg-yellow-100 text-yellow-800",CONFIRMED:"bg-blue-100 text-blue-800",OPEN:"bg-gray-100 text-gray-800",FULFILLED:"bg-green-100 text-green-800",REJECTED:"bg-red-100 text-red-800"};e.s(["f",0,({status:e,className:i=""})=>{let{formatMessage:d}=(0,s.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 l?.[e],(0,t.jsx)(r.f,{text:o,color:a.v[e],square:!0,className:`uppercase ${i}`})}])},51967,e=>{"use strict";var t=e.i(59080),s=e.i(32171);let r=t.f`
22
22
  query PaymentProvidersType {
23
23
  paymentProviderType: __type(name: "PaymentProviderType") {
24
24
  options: enumValues {
@@ -27,7 +27,7 @@
27
27
  }
28
28
  }
29
29
  }
30
- `;e.s(["f",0,()=>{let{data:e,loading:t,error:a}=(0,s.f)(r);return{paymentProviderType:e?.paymentProviderType?.options||[],loading:t,error:a}}])},71774,e=>{var t=e.i(91398),s=e.i(3828),r=e.i(66773),a=e.i(69322),l=e.i(28401),i=e.i(61494),d=e.i(12197),n=e.i(59080),o=e.i(32171),c=e.i(70693),u=e.i(36494);let m=n.f`
30
+ `;e.s(["f",0,()=>{let{data:e,loading:t,error:a}=(0,s.f)(r);return{paymentProviderType:e?.paymentProviderType?.options||[],loading:t,error:a}}])},71774,e=>{"use strict";var t=e.i(91398),s=e.i(3828),r=e.i(66773),a=e.i(3326),l=e.i(28401),i=e.i(61494),d=e.i(12197),n=e.i(59080),o=e.i(32171),c=e.i(70693),u=e.i(36494);let m=n.f`
31
31
  fragment OrderDetailFragment on Order {
32
32
  _id
33
33
  totalTax: total(category: TAXES) {
@@ -341,4 +341,4 @@
341
341
  }
342
342
  }
343
343
  ${m}
344
- `)(t?.Order),{skip:!e,variables:{orderId:e}});return{order:s?.order,loading:r,error:a}})({orderId:e}),y=async()=>{await f((0,t.jsx)(z.f,{message:u({id:"delete_order_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this order? "}),onCancelClick:async()=>f(""),onOkClick:async()=>{f(""),await x({orderId:e}),l.c.success(u({id:"order_deleted",defaultMessage:"Order deleted successfully"})),h.push("/orders")},okText:u({id:"delete_order",defaultMessage:"Delete order"})}))};return(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(i.f,{currentPageTitle:g?.orderNumber?`#${g?.orderNumber}`:""}),(0,t.jsx)("div",{className:"items-center flex min-w-full justify-end gap-3 flex-wrap",children:g&&"OPEN"===g.status&&p(r.C.UpdateOrder)?(0,t.jsx)(X.f,{onClick:y}):null}),v?(0,t.jsx)(d.f,{}):(0,t.jsx)(K,{order:g})]})}],71774)},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)},64710,e=>{var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M2.5 4A1.5 1.5 0 0 0 1 5.5V6h18v-.5A1.5 1.5 0 0 0 17.5 4h-15ZM19 8.5H1v6A1.5 1.5 0 0 0 2.5 16h15a1.5 1.5 0 0 0 1.5-1.5v-6ZM3 13.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75Zm4.75-.75a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5h-3.5Z",clipRule:"evenodd"}))});e.s(["f",0,s],64710)},15361,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:"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,...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:"m4.5 12.75 6 6 9-13.5"}))});e.s(["f",0,s],38322)},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)},67912,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:"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)},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)},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)}])})();
344
+ `)(t?.Order),{skip:!e,variables:{orderId:e}});return{order:s?.order,loading:r,error:a}})({orderId:e}),y=async()=>{await f((0,t.jsx)(z.f,{message:u({id:"delete_order_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this order? "}),onCancelClick:async()=>f(""),onOkClick:async()=>{f(""),await x({orderId:e}),l.c.success(u({id:"order_deleted",defaultMessage:"Order deleted successfully"})),h.push("/orders")},okText:u({id:"delete_order",defaultMessage:"Delete order"})}))};return(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(i.f,{currentPageTitle:g?.orderNumber?`#${g?.orderNumber}`:""}),(0,t.jsx)("div",{className:"items-center flex min-w-full justify-end gap-3 flex-wrap",children:g&&"OPEN"===g.status&&p(r.C.UpdateOrder)?(0,t.jsx)(X.f,{onClick:y}):null}),v?(0,t.jsx)(d.f,{}):(0,t.jsx)(K,{order:g})]})}],71774)},76204,e=>{"use strict";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)},64710,e=>{"use strict";var t=e.i(91788);let s=t.forwardRef(function({title:e,titleId:s,...r},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":s},r),e?t.createElement("title",{id:s},e):null,t.createElement("path",{fillRule:"evenodd",d:"M2.5 4A1.5 1.5 0 0 0 1 5.5V6h18v-.5A1.5 1.5 0 0 0 17.5 4h-15ZM19 8.5H1v6A1.5 1.5 0 0 0 2.5 16h15a1.5 1.5 0 0 0 1.5-1.5v-6ZM3 13.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 0 1.5h-1.5a.75.75 0 0 1-.75-.75Zm4.75-.75a.75.75 0 0 0 0 1.5h3.5a.75.75 0 0 0 0-1.5h-3.5Z",clipRule:"evenodd"}))});e.s(["f",0,s],64710)},15361,e=>{"use strict";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:"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=>{"use strict";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:"m4.5 12.75 6 6 9-13.5"}))});e.s(["f",0,s],38322)},37369,e=>{"use strict";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)},67912,e=>{"use strict";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:"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)},24608,e=>{"use strict";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)},9356,e=>{"use strict";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=>{"use strict";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=>{"use strict";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)}]);
@@ -0,0 +1,59 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74795,(e,r,t)=>{let s="/delivery-provider/new";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(8320)]),r.hot&&r.hot.dispose(function(){window.__NEXT_P.push([s])})},61494,e=>{"use strict";var r=e.i(91398),t=e.i(41158),s=e.i(3828),a=e.i(3326);e.s(["f",0,({routeName:e=null,currentPageTitle:o=null,depth:i=null})=>{let l=(0,s.useRouter)(),{formatMessage:n}=(0,a.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=l.asPath?.split("/")?.filter((e,r)=>l.asPath?.split("/")?.indexOf(e)===r);if(1===c.length)return null;let u="";i&&c.splice(i),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],s=e?t:t.replace(/-/g," "),a=d[t];return{name:a?n({id:a,defaultMessage:s}):decodeURIComponent(s),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,s)=>(0,r.jsx)("li",{children:(0,r.jsxs)("div",{className:"flex items-center",children:[0!==s&&(0,r.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-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:s===f.length-1&&o?o:e.name})]})},e.path))})})}])},81013,e=>{"use strict";var r=e.i(91398),t=e.i(72043);e.s(["f",0,({text:e,children:s,onClick:a,className:o="",disabled:i=!1,id:l="",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=s||e,x=(f||p)&&g?"gap-2":"";return(0,r.jsx)("button",{id:l,type:c,disabled:i||u,onClick:a,"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=>{"use strict";var r=e.i(91398),t=e.i(3326),s=e.i(69211),a=e.i(73419),o=e.i(99160),i=e.i(98949),l=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,i.f)({submit:e,onSubmitSuccess:n,successMessage:m,enableReinitialize:!0,initialValues:{adapterKey:"",type:""}});return(0,r.jsx)(l.U,{children:(0,r.jsx)(s.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)(a.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)(a.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=>{"use strict";var r=e.i(91398),t=e.i(58678),s=e.i(41158),a=e.i(3326),o=e.i(37369),i=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:l=null,onDelete:n=null,children:d=null,title:c=null,addPath:u=null,addButtonText:f=null})=>{let{formatMessage:p}=(0,a.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)(s.default,{href:u,children:(0,r.jsx)(i.f,{variant:"secondary",icon:(0,r.jsx)(o.f,{className:"h-5 w-5"}),text:f||p({id:"add",defaultMessage:"Add"})})}),l&&(0,r.jsx)(i.f,{variant:"secondary",onClick:l,text:p({id:"edit",defaultMessage:"Edit"})}),n&&(0,r.jsx)(i.f,{variant:"danger",onClick:n,text:p({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},1504,e=>{"use strict";e.s(["f",0,(e,r,t)=>Object.assign({},...e?.map(e=>({[e[t]]:e[r]}))||[])])},36494,e=>{"use strict";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=>{"use strict";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=>{"use strict";var r=e.i(59080),t=e.i(32171);let s=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:a}=(0,t.f)(s);return{deliveryProviderType:e?.deliveryProviderType?.options||[],loading:r,error:a}}])},73419,e=>{"use strict";var r=e.i(91398),t=e.i(72043),s=e.i(60741),a=e.i(29691);e.s(["f",0,e=>{let{options:o,...i}=(0,s.f)(e),{className:l}=e||{className:""};return(0,r.jsx)(a.f,{...i,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",l,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onBlur:i.onBlur,value:i.value,children:[(0,r.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:i.required,hidden:i.required,children:i.placeholder||i.label}),Object.entries(o).map(([e,t])=>(0,r.jsx)("option",{className:"dark:text-slate-200",value:e,children:t},e))]})})})}])},99160,e=>{"use strict";var r=e.i(91398),t=e.i(72043),s=e.i(38865),a=e.i(61898);e.s(["f",0,({label:e,disabled:o=!1,className:i="",hidden:l=!1,...n})=>{let d=(0,s.m)(),{...c}=n,u=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:f}=(0,a.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",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":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:l}),"aria-label":e,type:"submit",value:e,disabled:m,...c})}])},8320,e=>{"use strict";var r=e.i(91398),t=e.i(91788),s=e.i(66773),a=e.i(3828),o=e.i(3326),i=e.i(58971),l=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)(s.F.Shipping),{formatMessage:p}=(0,o.S)(),{createDeliveryProvider:g}=(()=>{let[e,{data:r,error:t,loading:s}]=(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:s,error:t}})(),{deliveryProviderType:x}=(0,y.f)(),{deliveryInterfaces:h}=(({providerType:e=null})=>{let{data:r,loading:t,error:s}=(0,b.f)(v,{skip:!e,variables:{providerType:e}});return{deliveryInterfaces:r?.deliveryInterfaces||[],loading:t,error:s}})({providerType:e}),{hasRole:k}=(0,i.f)(),j=async({adapterKey:e,type:r})=>{let{data:t,error:s}=await g({deliveryProvider:{adapterKey:e,type:r}});return!s&&{success:!0,data:t?.createDeliveryProvider}},w=(0,a.useRouter)();return(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(l.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(s.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=>{"use strict";var r=e.i(24669),t=e.i(91788),s=e.i(30928),a=e.i(52006);let o=e.i(21953).f?t.useLayoutEffect:t.useEffect;var i=e.i(98926);function l(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,n){let d=(0,i.f)(n?.client),[c,u]=t.useState(()=>l(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,i={...t,mutation:o},l=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:l});let d=++f.current.mutationId,c=(0,s.f)(i,{...e,context:n});return(0,a.f)(l.mutate(c).then(t=>{let{data:s,error:a}=t,o=e.onError||f.current.options?.onError;if(a&&o&&o(a,c),d===f.current.mutationId){let e={called:!0,loading:!1,data:s,error:a,client:l};f.current.isMounted&&!(0,r.f)(f.current.result,e)&&u(f.current.result=e)}let i=e.onCompleted||f.current.options?.onCompleted;return a||i?.(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:l};(0,r.f)(f.current.result,e)||u(f.current.result=e)}let s=e.onError||f.current.options?.onError;throw s&&s(t,c),t}))},[]),m=t.useCallback(()=>{if(f.current.isMounted){let e=l(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=>{"use strict";var r=e.i(91788);let t=r.forwardRef(function({title:e,titleId:t,...s},a){return r.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":t},s),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=>{"use strict";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=>{"use strict";var r=e.i(35113);e.s(["f",0,function(e,t){let s=(0,r.f)(e,t?.in);return s.setHours(0,0,0,0),s}])},35113,2848,98170,e=>{"use strict";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)=>{"use strict";var s=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},o={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},l={};function n(e){return s.isMemo(e)?i:l[e.$$typeof]||a}l[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[s.Memo]=i;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,s){if("string"!=typeof t){if(m){var a=p(t);a&&a!==m&&e(r,a,s)}var i=c(t);u&&(i=i.concat(u(t)));for(var l=n(r),b=n(t),v=0;v<i.length;++v){var y=i[v];if(!o[y]&&!(s&&s[y])&&!(b&&b[y])&&!(l&&l[y])){var g=f(t,y);try{d(r,y,g)}catch(e){}}}}return r}},40563,(e,r,t)=>{"use strict";var s="function"==typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103,o=s?Symbol.for("react.portal"):60106,i=s?Symbol.for("react.fragment"):60107,l=s?Symbol.for("react.strict_mode"):60108,n=s?Symbol.for("react.profiler"):60114,d=s?Symbol.for("react.provider"):60109,c=s?Symbol.for("react.context"):60110,u=s?Symbol.for("react.async_mode"):60111,f=s?Symbol.for("react.concurrent_mode"):60111,p=s?Symbol.for("react.forward_ref"):60112,m=s?Symbol.for("react.suspense"):60113,b=s?Symbol.for("react.suspense_list"):60120,v=s?Symbol.for("react.memo"):60115,y=s?Symbol.for("react.lazy"):60116,g=s?Symbol.for("react.block"):60121,x=s?Symbol.for("react.fundamental"):60117,h=s?Symbol.for("react.responder"):60118,k=s?Symbol.for("react.scope"):60119;function j(e){if("object"==typeof e&&null!==e){var r=e.$$typeof;switch(r){case a:switch(e=e.type){case u:case f:case i:case n:case l: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=a,t.ForwardRef=p,t.Fragment=i,t.Lazy=y,t.Memo=v,t.Portal=o,t.Profiler=n,t.StrictMode=l,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===a},t.isForwardRef=function(e){return j(e)===p},t.isFragment=function(e){return j(e)===i},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)===l},t.isSuspense=function(e){return j(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===f||e===n||e===l||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)=>{"use strict";e.i(50461),r.exports=e.r(40563)}]);
@@ -0,0 +1,149 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,83549,(e,t,i)=>{let s="/filters";(window.__NEXT_P=window.__NEXT_P||[]).push([s,()=>e.r(16205)]),t.hot&&t.hot.dispose(function(){window.__NEXT_P.push([s])})},81359,e=>{"use strict";var t=e.i(91398),i=e.i(24608),s=e.i(3326);e.s(["f",0,({onClick:e,text:r=null,Icon:a=null})=>{let{formatMessage:l}=(0,s.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:a||(0,t.jsx)(i.f,{className:"h-5 w-5"})}),r||l({id:"delete",defaultMessage:"Delete"})]})}])},11056,e=>{"use strict";var t=e.i(91398),i=e.i(91788),s=e.i(5505),r=e.i(57561);e.s(["f",0,({children:e,onlyFull:a=!1})=>{let{languageDialectList:l,selectedLocale:n,setSelectedLocale:o}=(0,r.f)(),d=(0,i.useContext)(s.W),u=l.filter(e=>!a||e.isoCode.includes("-"));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`w-fit mt-5 mb-3 ${d?"ml-5":""}`,children:(0,t.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-slate-300 dark:border-slate-700 py-1 pr-8 text-sm lg:py-1 lg:pr-10 text-black dark:text-white dark:bg-slate-800 shadow-xs focus:outline-hidden focus:ring-2 focus:ring-slate-800",value:n||"",onChange:e=>{e.stopPropagation(),o(e.target.value)},children:u?.map(e=>(0,t.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,t.jsx)("div",{children:i.default.cloneElement(e)})]})}])},16371,e=>{"use strict";var t=e.i(91788),i=e.i(30943);e.s(["f",0,({children:e,container:s=null,className:r=""})=>{let a=(0,t.useRef)(null),[l,n]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");r&&(e.className=r),a.current=e;let t=s||document.body;return t.appendChild(e),n(!0),()=>{a.current&&t.contains(a.current)&&t.removeChild(a.current)}},[s,r]),l&&a.current)?(0,i.createPortal)(e,a.current):null}])},3095,e=>{"use strict";var t=e.i(91398),i=e.i(91788),s=e.i(3326),r=e.i(86712),a=e.i(76842),l=e.i(24557),n=e.i(16371);e.s(["f",0,({onEdit:e,onDelete:o,editLabel:d,deleteLabel:u,showEdit:c=!0,showDelete:f=!0})=>{let{formatMessage:h}=(0,s.S)(),[m,p]=(0,i.useState)(!1),[g,x]=(0,i.useState)({top:0,left:0}),v=(0,i.useRef)(null),_=(0,i.useRef)(null);(0,i.useEffect)(()=>{let e=e=>{v.current&&!v.current.contains(e.target)&&p(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let y=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),p(!1)};return 0===[c&&e,f&&o].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:_,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),m||(()=>{if(!_.current)return;let e=_.current.getBoundingClientRect(),t=e.bottom+4,i=e.right-192;i<8&&(i=8),t+80>window.innerHeight-8&&(t=e.top-80-4),x({top:t,left:i})})(),p(!m)},className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors","aria-label":h({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,t.jsx)(r.f,{className:"w-5 h-5 text-slate-500 dark:text-slate-400"})}),m&&(0,t.jsx)(n.f,{children:(0,t.jsx)("div",{ref:v,className:"fixed w-48 bg-white dark:bg-slate-800 rounded-md shadow-xl border border-slate-200 dark:border-slate-700 z-[9999]",style:{top:g.top,left:g.left},children:(0,t.jsxs)("div",{className:"py-1",children:[c&&e&&(0,t.jsxs)("button",{type:"button",onClick:t=>y(t,e),className:"flex items-center w-full px-4 py-2 text-sm text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-700 transition-colors",children:[(0,t.jsx)(a.f,{className:"mr-3 h-5 w-5"}),d||h({id:"edit",defaultMessage:"Edit"})]}),f&&o&&(0,t.jsxs)("button",{type:"button",onClick:e=>y(e,o),className:"flex items-center w-full px-4 py-2 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 transition-colors",children:[(0,t.jsx)(l.f,{className:"mr-3 h-5 w-5"}),u||h({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},78193,e=>{"use strict";var t=e.i(91788),i=e.i(3326),s=e.i(30086),r=e.i(66773);e.s(["f",0,({validate:e,process:a})=>{let{addWork:l}=(0,s.f)(),[n,o]=(0,t.useState)(!1),d=(0,i.S)();return{isImporting:n,importItems:async t=>{let i={success:0,failed:0,errors:[]};try{o(!0);let s=e(t,d);s.length>0&&(i.failed+=s.length,i.errors.push(...s));let n=await a(t);for(let e=0;e<n.length;e+=100){let t=n.slice(e,e+100);try{await l({type:r.i.BulkImport,input:{createShouldUpsertIfIDExists:!0,events:t}}),i.success+=t.length}catch(s){console.error("Batch import failed:",s),i.failed+=t.length,i.errors.push(`Batch starting at index ${e} failed: ${s.message}`)}}return o(!1),i}catch(e){return console.error("Import failed:",e),o(!1),i.errors.push(e.message||"Unknown error"),i}}}}])},16785,e=>{"use strict";e.s(["f",0,(e,t)=>{let i=new Blob([e],{type:"text/csv;charset=utf-8;"}),s=document.createElement("a");if(void 0!==s.download){let e=URL.createObjectURL(i);s.setAttribute("href",e),s.setAttribute("download",t),s.style.visibility="hidden",document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL(e)}}])},22003,e=>{"use strict";e.s(["f",0,e=>{if("string"==typeof e&&e.trim())try{let t=JSON.parse(e);return t&&"object"==typeof t&&Object.keys(t).length?t:void 0}catch{return}}])},83147,e=>{"use strict";let t=e=>e&&e?.split(",").reduce((e,t)=>{let[i=null,s=null]=(t||"")?.split("_")||[];return{...e,[i]:s}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,i=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${i?`(${t})`:""}`}catch{return t}},"j",0,(e,t,i=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${i?`(${t})`:""}`}catch{return t}},"I",0,(e,t,i=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${i?`(${t})`:""}`}catch{return t}},"_",0,(e,t,i)=>{let s;return s=i?{...e,[i]:t}:e,Object.keys(s)?.map(e=>[e,s[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:i}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:i}).format(t/100)}})])},19759,78495,e=>{"use strict";var t=e.i(91398),i=e.i(3326),s=e.i(25705),r=e.i(27572),a=e.i(76929),l=e.i(28401),n=e.i(92276),o=e.i(41523),d=e.i(91788),u=e.i(66773),c=e.i(69211),f=e.i(99160),h=e.i(45229),m=e.i(98949),p=e.i(59080),g=e.i(76204);let x=p.f`
2
+ fragment FilterTextsFragment on FilterTexts {
3
+ _id
4
+ locale
5
+ title
6
+ subtitle
7
+ }
8
+ `,v=p.f`
9
+ mutation UpdateFilterTexts(
10
+ $filterId: ID!
11
+ $filterOptionValue: String
12
+ $texts: [FilterTextInput!]!
13
+ ) {
14
+ updateFilterTexts(
15
+ filterId: $filterId
16
+ filterOptionValue: $filterOptionValue
17
+ texts: $texts
18
+ ) {
19
+ ...FilterTextsFragment
20
+ }
21
+ }
22
+ ${x}
23
+ `,_=()=>{let[e]=(0,g.f)(v);return{updateFilterTexts:async({filterId:t,filterOptionValue:i,texts:s})=>e({variables:{filterOptionValue:i,filterId:t,texts:s},refetchQueries:["TranslatedFilterTexts","FilterOptions"]})}};var y=e.i(32171);let b=p.f`
24
+ query TranslatedFilterTexts($filterId: ID!, $filterOptionValue: String) {
25
+ translatedFilterTexts(
26
+ filterId: $filterId
27
+ filterOptionValue: $filterOptionValue
28
+ ) {
29
+ ...FilterTextsFragment
30
+ }
31
+ }
32
+ ${x}
33
+ `;var w=e.i(60195),j=e.i(58971),k=e.i(5505),C=e.i(57561);let S=({filterId:e})=>{let{formatMessage:s}=(0,i.S)(),{selectedLocale:r}=(0,C.f)(),{translatedFilterTexts:a,loading:l}=(({filterId:e=null,filterOptionValue:t=null})=>{let{data:i,loading:s,error:r}=(0,y.f)(b,{variables:{filterId:e,filterOptionValue:t}});return{translatedFilterTexts:i?.translatedFilterTexts||[],loading:s,error:r}})({filterId:e}),{hasRole:n}=(0,j.f)(),o=s({id:"saved",defaultMessage:"Saved"}),{updateFilterTexts:p}=_(),g=async({title:t,subtitle:i})=>(await p({filterId:e,texts:[{locale:r,title:t,subtitle:i}]}),{success:!0}),x=(0,m.f)({submit:g,successMessage:o,initialValues:{title:"",subtitle:"",...!l&&a?.find(e=>e.locale===r)||{}}});return(0,d.useEffect)(()=>{let e=a?.find(e=>e.locale===r);x.formik.setValues({title:"",subtitle:"",...e||{}})},[a,r]),(0,t.jsx)(w.f,{documentationLabel:s({id:"text",defaultMessage:"Text"}),documentation:(0,t.jsx)(i.K,{id:"filter_text_form_description",defaultMessage:"<ul> <li>You can change the language of filter using the dropdown found at top left corner</li>\n </ul>",values:{ul:e=>(0,t.jsxs)("ul",{className:"space-y-1",children:[e," "]}),li:e=>(0,t.jsxs)("li",{children:[e," "]})}}),children:(0,t.jsx)(k.U,{children:(0,t.jsxs)(c.f,{form:x,className:"border-slate-300 dark:border-slate-800 pt-2 lg:shadow-sm",children:[(0,t.jsx)("div",{children:(0,t.jsx)(h.f,{name:"title",id:"title",label:s({id:"title",defaultMessage:"Title"}),autoComplete:"on",className:"mt-2 px-4 text-sm"})}),(0,t.jsx)("div",{children:(0,t.jsx)(h.f,{name:"subtitle",id:"subtitle",label:s({id:"subtitle",defaultMessage:"Subtitle"}),autoComplete:"on",className:"mt-5 px-4 text-sm"})}),n(u.C.ManageFilters)&&(0,t.jsx)("div",{className:"flex bg-slate-100 dark:bg-slate-900 mt-5",children:(0,t.jsx)(f.f,{label:s({id:"update_filter",defaultMessage:"Update filter"}),className:"my-4 ml-auto mr-4"})})]})})})};var I=e.i(6607);let M=p.f`
34
+ mutation CreateFilterOption(
35
+ $filterId: ID!
36
+ $option: String!
37
+ $texts: [FilterTextInput!]
38
+ ) {
39
+ createFilterOption(filterId: $filterId, option: $option, texts: $texts) {
40
+ _id
41
+ }
42
+ }
43
+ `,E=p.f`
44
+ fragment FilterOptionFragment on FilterOption {
45
+ _id
46
+ texts(forceLocale: $forceLocale) {
47
+ _id
48
+ title
49
+ subtitle
50
+ locale
51
+ }
52
+ value
53
+ }
54
+ `,F=p.f`
55
+ query FilterOptions($filterId: ID, $forceLocale: Locale) {
56
+ filter(filterId: $filterId) {
57
+ _id
58
+ options {
59
+ ...FilterOptionFragment
60
+ }
61
+ }
62
+ }
63
+ ${E}
64
+ `,N=({onCancel:e,onSubmit:s})=>{let{formatMessage:r}=(0,i.S)(),{hasRole:a}=(0,j.f)(),l=r({id:"filter_option_added_success",defaultMessage:"Filter option added successfully"}),n=(0,m.f)({submit:s,successMessage:l,initialValues:{title:"",value:""}});return(0,t.jsxs)(c.f,{form:n,children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(h.f,{name:"value",label:r({id:"filter_option_value",defaultMessage:"Value"}),required:!0}),(0,t.jsx)(h.f,{name:"title",label:r({id:"filter_option_title",defaultMessage:"Title"}),required:!0})]}),(0,t.jsxs)("div",{className:"mt-5 flex justify-end",children:[(0,t.jsx)("button",{onClick:e,type:"button",className:"mr-2 rounded-md border border-slate-100 dark:border-slate-700 bg-white dark:bg-slate-800 px-3 py-1 text-sm font-medium leading-5 text-slate-700 dark:text-slate-500 shadow-xs",children:r({id:"cancel",defaultMessage:"Cancel"})}),(0,t.jsx)("span",{className:"flex items-center",children:(0,t.jsx)(f.f,{className:"m-auto w-full",label:r({id:"add_filter_option",defaultMessage:"Add option"})})})]})]})},R=p.f`
65
+ mutation RemoveFilterOption($filterId: ID!, $filterOptionValue: String!) {
66
+ removeFilterOption(
67
+ filterId: $filterId
68
+ filterOptionValue: $filterOptionValue
69
+ ) {
70
+ _id
71
+ }
72
+ }
73
+ `;var O=e.i(15971),T=e.i(65153),$=e.i(3095),A=e.i(81013);let D=({filterId:e,option:s,onDelete:r})=>{let{formatMessage:a}=(0,i.S)(),[l,n]=(0,d.useState)(!1),{selectedLocale:o}=(0,C.f)(),u=a({id:"saved",defaultMessage:"Saved"}),{updateFilterTexts:f}=_(),p=async({title:t,value:i,subtitle:s})=>(await f({filterId:e,filterOptionValue:i,texts:[{locale:o,title:t,subtitle:s}]}),n(!1),{success:!0}),g=(0,m.f)({submit:p,successMessage:u,initialValues:{title:"",subtitle:"",...s,...s?.texts}});return(0,t.jsx)(c.f,{form:g,children:(0,t.jsx)("div",{className:"mt-2",children:(0,t.jsx)("li",{className:"py-2 px-2",children:(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,t.jsxs)("div",{className:"flex items-center flex-wrap gap-3",children:[(0,t.jsx)(T.f,{text:s?.value,color:"slate",square:!0,className:"break-all"}),(0,t.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,t.jsx)("div",{className:"truncate text-sm text-slate-900 dark:text-slate-200",children:l?(0,t.jsx)(h.f,{name:"title",required:!0,label:a({id:"title",defaultMessage:"Title"})}):s?.texts?.title}),(0,t.jsx)("div",{className:"truncate text-sm text-slate-500 dark:text-slate-200",children:l?(0,t.jsx)(h.f,{name:"subtitle",label:a({id:"subtitle",defaultMessage:"Subtitle"})}):s?.texts?.subtitle&&s?.texts?.subtitle})]})]}),(0,t.jsx)("div",{children:l?(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(A.f,{variant:"secondary",onClick:()=>n(!l),text:a({id:"cancel",defaultMessage:"Cancel"})}),(0,t.jsx)(A.f,{variant:"primary",disabled:!g.formik.isValid,onClick:g.formik.handleSubmit,text:a({id:"save",defaultMessage:"Save"})})]}):(0,t.jsx)($.f,{onEdit:()=>{n(!l)},onDelete:()=>{r(s?.value)},showEdit:!0,showDelete:!0})})]})})})})},L=({filterId:e,options:s})=>{let{formatMessage:r}=(0,i.S)(),{setModal:a}=(0,I.f)(),{selectedLocale:n}=(0,C.f)(),{removeFilterOption:o}=(()=>{let[e]=(0,g.f)(R);return{removeFilterOption:async({filterId:t,filterOptionValue:i})=>e({variables:{filterOptionValue:i,filterId:t},refetchQueries:["FilterOptions"]})}})(),d=async i=>{await a((0,t.jsx)(O.f,{onCancelClick:async()=>a(""),message:r({id:"delete_filter_option_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter option? "}),onOkClick:async()=>{a(""),await o({filterId:e,filterOptionValue:i}),l.c.success(r({id:"filter_deleted",defaultMessage:"Filter deleted successfully"}))},okText:r({id:"delete_filter_option",defaultMessage:"Delete option"})}))};return(0,t.jsx)("div",{children:(0,t.jsx)("ul",{className:"-my-5 divide-y divide-slate-200 dark:divide-slate-700 pb-3 ",children:s.map(i=>(0,t.jsx)(D,{filterId:e,option:i,onDelete:d},`${i._id}${n}`))})})},q=({filterId:e})=>{let{formatMessage:s}=(0,i.S)(),{selectedLocale:r}=(0,C.f)(),{filterOptions:a}=(({filterId:e=null,locale:t}={})=>{let{data:i,loading:s,error:r}=(0,y.f)(F,{skip:!e,variables:{filterId:e,forceLocale:t}});return{filterOptions:i?.filter?.options||[],loading:s,error:r}})({filterId:e,locale:r}),{setModal:l}=(0,I.f)(),{createFilterOption:n}=(()=>{let[e]=(0,g.f)(M);return{createFilterOption:async({filterId:t,option:i,texts:s})=>e({variables:{filterId:t,option:i,texts:s},refetchQueries:["FilterOptions"]})}})(),{hasRole:o}=(0,j.f)(),d=async({value:t,title:i,subtitle:s})=>(await n({filterId:e,option:t,texts:[{title:i,locale:r,subtitle:s}]}),l(""),{success:!0});return(0,t.jsx)(w.f,{documentationLabel:s({id:"filer_options",defaultMessage:"Filter options"}),sideComponents:o(u.C.ManageFilters)?(0,t.jsx)("button",{type:"button",onClick:()=>l((0,t.jsx)(N,{onSubmit:d,onCancel:()=>l("")})),className:"fixed top-0 right-0 z-10 mb-5 mt-5 mr-2 h-9 rounded-md border border-transparent bg-slate-800 dark:bg-slate-600 px-3 py-1 text-sm font-medium leading-5 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 sm:fixed sm:top-auto sm:right-auto",children:s({id:"add_filter_option",defaultMessage:"Add option"})}):null,children:(0,t.jsx)("div",{className:"mt-8 w-full border-slate-300 dark:border-slate-800 p-3 sm:mt-0 shadow-md bg-white dark:bg-slate-900",children:(0,t.jsx)(L,{filterId:e,options:a})})})},V=({filterKey:e,filterType:s})=>{let{formatMessage:r}=(0,i.S)();return(0,t.jsxs)("div",{className:"mt-5 flex flex-col gap-4",children:[(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-sm",children:r({id:"key",defaultMessage:"Key"})}),(0,t.jsx)("div",{className:"rounded-md border-1 border-slate-200 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 py-1 px-2 text-sm text-slate-700 dark:text-slate-200",children:e})]}),(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"text-sm",children:r({id:"filter_type",defaultMessage:"Filter Type"})}),(0,t.jsx)("div",{className:"rounded-md border-1 border-slate-200 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 py-1 px-2 text-sm text-slate-700 dark:text-slate-200",children:s})]})]})};var B=e.i(80294);let U=p.f`
74
+ mutation UpdateFilter($filter: UpdateFilterInput!, $filterId: ID!) {
75
+ updateFilter(filter: $filter, filterId: $filterId) {
76
+ ...FilterFragment
77
+ }
78
+ }
79
+ ${B.f}
80
+ `;var P=e.i(31494),z=e.i(11056);let W=({selectedView:e,id:i,...s})=>"text"===e?(0,t.jsx)(z.f,{children:(0,t.jsx)(S,{filterId:i})}):"options"===e?(0,t.jsx)(z.f,{children:(0,t.jsx)(q,{filterId:i})}):"extended"===e?(0,t.jsx)(P.f,{data:s}):(0,t.jsx)(z.f,{children:(0,t.jsx)(S,{filterId:i})});e.s(["f",0,({filter:e,extendedData:d})=>{let{_id:u,isActive:c,key:f,type:h,created:m,updated:p}=e||{},{formatMessage:x,formatDate:v}=(0,i.S)(),{updateFilter:_}=(()=>{let[e]=(0,g.f)(U);return{updateFilter:async({filterId:t,filter:i})=>e({variables:{filter:i,filterId:t}})}})(),y=[{id:"text",title:x({id:"text",defaultMessage:"Text"}),Icon:(0,t.jsx)(s.f,{className:"h-5 w-5"})},{id:"options",title:x({id:"options",defaultMessage:"Options"}),Icon:(0,t.jsx)(r.f,{className:"h-5 w-5"})},null!==d&&{id:"extended",title:x({id:"extended-fields",defaultMessage:"Extended"}),Icon:(0,t.jsx)(a.f,{className:"h-5 w-5"})}].filter(Boolean),b=[{id:"activate",title:x({id:"activate",defaultMessage:"Activate"}),selectedTitle:x({id:"active",defaultMessage:"Active"}),onClick:async()=>{await _({filterId:u,filter:{isActive:!0}}),l.c.success(x({id:"filter_activated",defaultMessage:"Filter activated!",description:"shown on successful toggle of filter status"}))},current:c,bgColor:"green"},{id:"deactivate",title:x({id:"deactivate",defaultMessage:"Deactivate"}),onClick:async()=>{await _({filterId:u,filter:{isActive:!1}}),l.c.success(x({id:"filter_deactivated",defaultMessage:"Filter deactivated!",description:"shown on successful toggle of filter status"}))},selectedTitle:x({id:"deactivated",defaultMessage:"Deactivated"}),current:!c,bgColor:"slate"}];return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"flex items-center justify-between",children:[(0,t.jsx)("div",{children:(0,t.jsx)(V,{filterKey:f,filterType:h})}),(0,t.jsx)("div",{className:"self-end",children:(0,t.jsx)(n.f,{options:b,type:x({id:"filter",defaultMessage:"Filter"})})})]}),(0,t.jsx)(o.f,{tabItems:y,defaultTab:"text",children:(0,t.jsx)(W,{id:e?._id,...d})})]})}],19759);var K=e.i(70693);e.s(["f",0,({filterId:e=null}={})=>{let{customProperties:t,hydrateFragment:i}=(0,K.f)(),{data:s,loading:r,error:a}=(0,y.f)(((e="")=>p.f`
81
+ query Filter($filterId: ID) {
82
+ filter(filterId: $filterId) {
83
+ ...FilterFragment
84
+ ${e}
85
+ texts {
86
+ _id
87
+ title
88
+ subtitle
89
+ locale
90
+ }
91
+ }
92
+ }
93
+ ${B.f}
94
+ `)(t?.Filter),{skip:!e,variables:{filterId:e}}),l=s?.filter,n=i(t?.Filter,l);return{filter:l,loading:r,error:a,extendedData:n}}],78495)},80294,e=>{"use strict";var t=e.i(59080);let i=t.f`
95
+ fragment FilterFragment on Filter {
96
+ _id
97
+ updated
98
+ created
99
+ key
100
+ isActive
101
+ type
102
+ options {
103
+ _id
104
+ texts {
105
+ _id
106
+ title
107
+ subtitle
108
+ locale
109
+ }
110
+ value
111
+ }
112
+ }
113
+ `;e.s(["f",0,i])},54680,e=>{"use strict";var t=e.i(59080),i=e.i(32171),s=e.i(80294);let r=t.f`
114
+ query Filters(
115
+ $queryString: String
116
+ $limit: Int
117
+ $offset: Int
118
+ $includeInactive: Boolean
119
+ $sort: [SortOptionInput!]
120
+ ) {
121
+ filters(
122
+ queryString: $queryString
123
+ limit: $limit
124
+ offset: $offset
125
+ includeInactive: $includeInactive
126
+ sort: $sort
127
+ ) {
128
+ ...FilterFragment
129
+ texts {
130
+ _id
131
+ title
132
+ subtitle
133
+ locale
134
+ }
135
+ }
136
+ filtersCount(includeInactive: $includeInactive, queryString: $queryString)
137
+ }
138
+ ${s.f}
139
+ `;e.s(["f",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:a=!0,sort:l=[],forceLocale:n=""}={})=>{let{data:o,loading:d,error:u,fetchMore:c,client:f}=(0,i.f)(r,{context:{headers:{forceLocale:n}},variables:{queryString:e,limit:t,offset:s,includeInactive:a,sort:l}}),h=o?.filters||[],m=o?.filtersCount,p=h?.length<m;return{filters:h,filtersCount:m,hasMore:p,loading:d,error:u,loadMore:()=>{c({variables:{offset:h?.length}})},client:f}}])},50259,e=>{"use strict";var t=e.i(59080),i=e.i(76204);let s=t.f`
140
+ mutation RemoveFilter($filterId: ID!) {
141
+ removeFilter(filterId: $filterId) {
142
+ _id
143
+ }
144
+ }
145
+ `;e.s(["f",0,()=>{let[e]=(0,i.f)(s);return{removeFilter:async({filterId:t})=>e({variables:{filterId:t},refetchQueries:["Filters"]})}}])},15971,e=>{"use strict";var t=e.i(91398),i=e.i(3326);e.s(["f",0,({onOkClick:e,onCancelClick:s,okText:r=null,cancelText:a=null,headerText:l=null,message:n=null,icon:o=null,close:d=null})=>{let{formatMessage:u}=(0,i.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[o||(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:l||u({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:n||u({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:r||u({id:"continue",defaultMessage:"Continue"})}),(0,t.jsx)("button",{id:"danger_cancel",onClick:s||d,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:a||u({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},42912,e=>{"use strict";var t=e.i(91398),i=e.i(3326);e.s(["f",0,({result:e,title:s,entityName:r="items"})=>{let{formatMessage:a}=(0,i.S)();return(0,t.jsxs)("div",{className:"p-4",children:[(0,t.jsx)("h3",{className:"text-lg font-semibold mb-4",children:s||a({id:"import_results",defaultMessage:"Import Results"})}),(0,t.jsx)("p",{className:"text-green-600",children:a({id:"items_imported",defaultMessage:"{count} {entityName} imported successfully"},{count:e?.success,entityName:r})}),e?.failed>0&&(0,t.jsxs)("div",{children:[(0,t.jsx)("p",{className:"text-red-600 mt-2",children:a({id:"items_failed",defaultMessage:"{count} {entityName} failed to import"},{count:e?.failed,entityName:r})}),(0,t.jsxs)("div",{className:"mt-2 max-h-40 overflow-y-auto",children:[e.errors.slice(0,10).map((e,i)=>(0,t.jsx)("p",{className:"text-sm text-red-500",children:e},i)),e.errors.length>10&&(0,t.jsxs)("p",{className:"text-sm text-gray-500",children:["... and ",e.errors.length-10," more errors"]})]})]})]})}])},6607,e=>{"use strict";var t=e.i(91788),i=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(i.f)])},89142,e=>{"use strict";var t=e.i(91398),i=e.i(3828),s=e.i(66773),r=e.i(3326),a=e.i(28401),l=e.i(58971),n=e.i(61494),o=e.i(81359),d=e.i(12197),u=e.i(17644),c=e.i(19759),f=e.i(78495),h=e.i(50259),m=e.i(15971),p=e.i(6607);e.s(["default",0,({filterId:e})=>{let{formatMessage:g}=(0,r.S)(),{setModal:x}=(0,p.f)(),v=(0,i.useRouter)(),{filter:_,loading:y,extendedData:b}=(0,f.f)({filterId:e}),{hasRole:w}=(0,l.f)(),{removeFilter:j}=(0,h.f)(),k=async()=>{await x((0,t.jsx)(m.f,{onCancelClick:async()=>x(""),message:g({id:"delete_filter_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter? "}),onOkClick:async()=>{x(""),await j({filterId:e}),a.c.success(g({id:"filter_deleted",defaultMessage:"Filter deleted successfully"})),v.push("/filters")},okText:g({id:"delete_filter",defaultMessage:"Delete filter"})}))};return _||y?y?(0,t.jsx)(d.f,{}):(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(n.f,{currentPageTitle:_?.key}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(u.f,{headerText:g({id:"filter_detail",defaultMessage:"Filter Detail"}),title:g({id:"filter_detail_title",defaultMessage:"Filter {id}"},{id:_?._id})}),w(s.C.ManageFilters)&&(0,t.jsx)(o.f,{onClick:k})]}),(0,t.jsx)(c.f,{filter:_,extendedData:b})]}):(v.push("/404"),null)}])},16205,e=>{"use strict";var t=e.i(91398),i=e.i(3326),s=e.i(66773),r=e.i(28401),a=e.i(3828),l=e.i(61494),n=e.i(94724),o=e.i(17644),d=e.i(64591),u=e.i(60193),c=e.i(58971),f=e.i(12197),h=e.i(78704),m=e.i(8918),p=e.i(54680),g=e.i(41158),x=e.i(65153),v=e.i(3095);let _={SWITCH:"sky",SINGLE_CHOICE:"lime",MULTI_CHOICE:"cyan"},y=({filter:e,onRemove:r})=>{let{formatMessage:l}=(0,i.S)(),{hasRole:n}=(0,c.f)(),o=(0,a.useRouter)(),d={true:l({id:"active",defaultMessage:"Active"}),false:l({id:"in_active",defaultMessage:"In-Active"})},u=async()=>{await r(e?._id)};return(0,t.jsxs)(m.f.Row,{className:"group",children:[(0,t.jsx)(m.f.Cell,{children:(0,t.jsx)(g.default,{href:`/filters?filterId=${e._id}`,className:"flex items-center text-sm text-slate-900 dark:text-slate-300 group-hover:text-slate-700 dark:group-hover:text-slate-100",children:e?.key&&(e?.key||(0,t.jsxs)(t.Fragment,{children:[e._id," ",(0,t.jsx)(x.f,{color:"blue",text:l({id:"name",defaultMessage:"Name"})})]}))})}),(0,t.jsx)(m.f.Cell,{children:(0,t.jsx)(g.default,{href:`/filters?filterId=${e._id}`,className:"block",children:(0,t.jsx)(x.f,{text:e.type?.split("_")?.join(" "),color:_[e.type],square:!0})})}),(0,t.jsx)(m.f.Cell,{children:(0,t.jsx)(g.default,{href:`/filters?filterId=${e._id}`,className:"block",children:(0,t.jsx)(x.f,{text:d[e.isActive],color:e.isActive?"emerald":"amber",square:!0})})}),(0,t.jsx)(m.f.Cell,{children:(0,t.jsx)(g.default,{href:`/filters?filterId=${e._id}`,className:"block",children:e.options?.length})}),(0,t.jsx)(m.f.Cell,{className:"text-right",children:(0,t.jsx)(v.f,{onEdit:()=>{o.push(`/filters?filterId=${e._id}`)},onDelete:u,showEdit:!0,showDelete:n(s.C.ManageFilters)})})]})};var b=e.i(57561);let w=({onRemoveFilter:e,sortKeys:r,queryString:a,limit:l,includeInactive:n,offset:o})=>{let{formatMessage:d}=(0,i.S)(),{selectedLocale:u}=(0,b.f)(),{hasRole:g}=(0,c.f)(),{filters:x,loading:v,loadMore:_,hasMore:w}=(0,p.f)({queryString:a,limit:l,includeInactive:n,offset:o,sort:r,forceLocale:u});return v&&x?.length===0?(0,t.jsx)(f.f,{}):(0,t.jsx)(h.f,{loading:v,hasMore:w,onLoadMore:_,children:(0,t.jsxs)(m.f,{className:"min-w-full ",children:[x?.map(e=>(0,t.jsxs)(m.f.Row,{header:!0,children:[(0,t.jsx)(m.f.Cell,{children:d({id:"filter_key",defaultMessage:"Key",description:"Filter form key"})}),(0,t.jsx)(m.f.Cell,{name:"type",children:d({id:"type",defaultMessage:"Type"})}),(0,t.jsx)(m.f.Cell,{name:"isActive",children:d({id:"active",defaultMessage:"Active"})}),(0,t.jsx)(m.f.Cell,{children:d({id:"options",defaultMessage:"Options"})}),g(s.C.ManageFilters)&&(0,t.jsx)(m.f.Cell,{children:(0,t.jsx)("span",{className:"sr-only",children:d({id:"delete",defaultMessage:"Delete"})})})]},e._id)),x?.map(i=>(0,t.jsx)(y,{filter:i,onRemove:e},`${i?._id}-body`))]})})};var j=e.i(15971),k=e.i(6607),C=e.i(50259),S=e.i(83147),I=e.i(51128),M=e.i(59080),E=e.i(32171);let F=M.f`
146
+ query FiltersCount($queryString: String, $includeInactive: Boolean) {
147
+ filtersCount(includeInactive: $includeInactive, queryString: $queryString)
148
+ }
149
+ `,N=({queryString:e="",includeInactive:t=!0}={})=>{let{data:i,loading:s,error:r}=(0,E.f)(F,{variables:{queryString:e,includeInactive:t}});return{filtersCount:i?.filtersCount,loading:s,error:r}};var R=e.i(89142),O=e.i(11056),T=e.i(74954),$=e.i(91788),A=e.i(81013),D=e.i(60513);let L=["_id","key","type","isActive"],q=["optionId","filterId","value"],V=["title","subtitle"];var B=e.i(75284);let U=({queryString:e,includeInactive:s})=>{let{formatMessage:r}=(0,i.S)(),{filtersCount:a,loading:l}=N({queryString:e,includeInactive:s}),{setModal:n}=(0,k.f)(),{exportFilters:o,isExporting:d}=(()=>{let{exportCSV:e,isExporting:t}=(0,D.f)();return{exportFilters:(0,$.useCallback)(async t=>{await e({type:"FILTERS",...t})},[e]),isExporting:t}})(),u=[{key:"exportFilters",label:r({id:"filters",defaultMessage:"Filters"})},{key:"exportFilterOptions",label:r({id:"filter_options",defaultMessage:"Filter options"})}],c=(0,$.useCallback)(async t=>{await o({queryString:e,includeInactive:s,...t}),n(null)},[e,s,o,n]);return l?null:(0,t.jsx)(A.f,{onClick:()=>{n((0,t.jsx)(B.f,{options:u,onSubmit:c,loading:d}))},disabled:d||!a,variant:"secondary",text:r(d?{id:"exporting",defaultMessage:"Exporting..."}:{id:"export",defaultMessage:"Export"})})};var P=e.i(78193),z=e.i(22003);let W=e=>{let t=e.value,i={};return Object.entries(e).forEach(([e,t])=>{if(!e.startsWith("texts."))return;let[,s,r]=e.split(".");i[s]||={},i[s][r]=t||""}),{value:t,content:i}},K=({filtersCSV:e,optionsCSV:t},i)=>{let r=[];for(let t of e)t._id||r.push(i.formatMessage({id:"filter_import.id_missing",defaultMessage:"Filter _id is required"})),t.key||r.push(i.formatMessage({id:"filter_import.key_missing",defaultMessage:"Filter key is required"})),t.type||r.push(i.formatMessage({id:"filter_import.type_missing",defaultMessage:"Filter type is required"})),t.type&&![s.J.SingleChoice,s.J.MultiChoice,s.J.Range,s.J.Switch].includes(t.type)&&r.push(i.formatMessage({id:"filter_csv_invalid_type_set",defaultMessage:"invalid filter type {type}"},{type:t.type}));for(let e of t)e.value||r.push(i.formatMessage({id:"filter_option_csv_value_missing",defaultMessage:"Filter options value is required"})),e.filterId||r.push(i.formatMessage({id:"filter_option_csv_filterId_missing",defaultMessage:"Filter option filterId is required"}));return r};var H=e.i(72552),Z=e.i(16785);let Q={filtersCSV:L,optionsCSV:q},J=({onImport:e})=>{let s=(0,$.useRef)({}),{languageDialectList:r}=(0,b.f)(),a=r?.map(e=>e.isoCode)||[],[l,n]=(0,$.useState)({filtersCSV:[],optionsCSV:[]}),[o,d]=(0,$.useState)({}),[u,c]=(0,$.useState)(!1),{formatMessage:f}=(0,i.S)(),h=[{key:"filtersCSV",label:f({id:"filters_csv_file",defaultMessage:"Filters CSV"})},{key:"optionsCSV",label:f({id:"filter_options_csv_file",defaultMessage:"Filter options CSV (Optional)"}),optional:!0}],m=async e=>{let t=await e.text();return H.default.parse(t,{header:!0,skipEmptyLines:!0}).data},p=async(e,t)=>{if(!t)return;let i=await m(t),s=((e,t)=>{if(!t.length)return!1;let i=Object.keys(t[0]),s=Q[e].filter(e=>!i.includes(e));return s.length?(d(t=>({...t,[e]:f({id:"csv_missing_fields",defaultMessage:"Missing required columns: {fields}"},{fields:s.join(", ")})})),!1):(d(t=>({...t,[e]:void 0})),!0)})(e,i);n(t=>({...t,[e]:s?i:[]}))},g=async(e,t)=>{let i=e.target.files?.[0];await p(t,i),e.target.value=""},x=(0,$.useCallback)(async()=>{c(!0);try{await e(l)}catch(e){console.error("Error importing filters:",e)}finally{c(!1)}},[l,e]),v=l.filtersCSV.length>0,_=Object.values(o).some(Boolean);return(0,t.jsxs)("div",{className:"max-w-md mx-auto p-6 bg-white border border-gray-200 rounded-lg shadow-md flex flex-col gap-6",children:[(0,t.jsx)("h3",{className:"text-center text-lg font-semibold",children:f({id:"filter_import_title",defaultMessage:"Import Filters"})}),(0,t.jsx)("p",{className:"text-center text-sm text-gray-600",children:f({id:"filter_import_description",defaultMessage:"Select your filters CSV and optional filter options CSV, then click Import."})}),h.map(({key:e,label:i,optional:r})=>(0,t.jsxs)("div",{className:"flex flex-col gap-2",children:[(0,t.jsx)("input",{ref:t=>{s.current[e]=t??null},type:"file",accept:".csv",onChange:t=>g(t,e),className:"hidden"}),(0,t.jsxs)("div",{className:"flex justify-between items-center gap-2",children:[(0,t.jsx)(A.f,{text:l[e].length?f({id:`${e}_file_selected`,defaultMessage:`${i} Selected`}):f({id:`select_${e}`,defaultMessage:`Select ${i}`}),onClick:()=>s.current[e]?.click(),variant:"secondary",className:"flex-1",disabled:u||!v&&r}),(0,t.jsx)("button",{type:"button",className:"text-xs text-blue-600 hover:underline",title:"Download a CSV template with required columns",onClick:()=>((e,t,i=[])=>{let s=((e,t=[])=>{if("filtersCSV"===e)return[...L,...t.flatMap(e=>V.map(t=>`texts.${e}.${t}`))];if("optionsCSV"===e)return[...q,...t.flatMap(e=>V.map(t=>`texts.${e}.${t}`))];return[]})(e,i).join(",");(0,Z.f)(s,t)})(e,`${e}_template.csv`,a),children:f({id:"download_csv_template",defaultMessage:"Download template"})})]}),o[e]&&(0,t.jsxs)("p",{className:"text-red-600 text-xs flex items-center gap-1",children:["⚠ ",o[e]]})]},e)),(0,t.jsx)(A.f,{text:u?"Importing…":"Import",onClick:x,disabled:u||!v||_,variant:"primary",className:"w-full flex justify-center items-center gap-2",children:u&&(0,t.jsx)("span",{className:"w-4 h-4 border-2 border-white border-t-transparent rounded-full animate-spin"})}),v&&!_&&(0,t.jsx)("p",{className:"text-center text-xs text-gray-500",children:f({id:"ready_to_import_filters",defaultMessage:"Ready to import {filters} filters{options}."},{filters:l.filtersCSV.length,options:l.optionsCSV.length?` with ${l.optionsCSV.length} options`:""})})]})};var X=e.i(42912);let G=()=>{let{formatMessage:e}=(0,i.S)(),{hasRole:a}=(0,c.f)(),{setModal:l}=(0,k.f)(),{prepareFilterImport:n}={prepareFilterImport:async({filtersCSV:e,optionsCSV:t})=>e.map(e=>{var i;let s,r=(t||[]).filter(t=>t.filterId===e._id);return i={...e,options:r},s=(0,z.f)(i.meta),{entity:"FILTER",operation:"CREATE",payload:{_id:i._id,specification:{type:i.type,key:i.key||"",isActive:"true"===i.isActive,content:((e,t="texts.")=>{let i={};return Object.entries(e).forEach(([e,s])=>{if(!e.startsWith(t))return;let[,r,a]=e.split(".");i[r]=i[r]||{},i[r][a]=s||""}),i})(i),options:(i?.options??[]).map(W),meta:s}}}})},{isImporting:o,importItems:d}=(0,P.f)({validate:K,process:n});return a(s.C.ManageProducts)?(0,t.jsx)(A.f,{onClick:()=>{l((0,t.jsx)(J,{onImport:async e=>{let i=await d(e);l(null),(0,r.c)((0,t.jsx)(X.f,{result:i,entityName:"Filters"}))}}))},disabled:o,variant:"secondary",text:e(o?{id:"importing",defaultMessage:"Importing..."}:{id:"import",defaultMessage:"Import"})}):null};e.s(["default",0,()=>{let{query:e,push:f}=(0,a.useRouter)(),h=parseInt(e?.limit,10)||u.h,m=parseInt(e?.skip,10)||0,p=e?.sort||"",{hasRole:g}=(0,c.f)(),x=e?.includeInactive==="true"||!e?.includeInactive,{setModal:v}=(0,k.f)(),{removeFilter:_}=(0,C.f)(),{queryString:y,filterId:b,...M}=e,{filtersCount:E}=N({queryString:y,includeInactive:x}),F=(0,S.R)(p),{formatMessage:$}=(0,i.S)(),A=async e=>{await v((0,t.jsx)(j.f,{onCancelClick:async()=>v(""),message:$({id:"delete_filter_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this filter? "}),onOkClick:async()=>{v(""),await _({filterId:e}),r.c.success($({id:"filter_deleted",defaultMessage:"Filter deleted successfully"}))},okText:$({id:"delete_filter",defaultMessage:"Delete filter"})}))};if(b)return(0,t.jsx)(R.default,{filterId:b});let D=1===E?$({id:"filter_header",defaultMessage:"1 Filter"}):$({id:"filter_count_header",defaultMessage:"{count} Filters"},{count:(0,t.jsx)(T.f,{value:E})});return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(l.f,{}),(0,t.jsx)("div",{className:"w-full",children:(0,t.jsxs)(o.f,{title:$({id:"filter_page_title",defaultMessage:"{count, plural, one {# Filter} other {# Filters}}"},{count:E}),headerText:D,addPath:g(s.C.ManageFilters)&&"/filters/new",addButtonText:$({id:"add_filter",defaultMessage:"Add Filter"}),children:[(0,t.jsx)(U,{queryString:y,includeInactive:x}),(0,t.jsx)(G,{})]})}),(0,t.jsxs)("div",{className:"min-w-full overflow-x-auto px-1",children:[(0,t.jsx)(n.f,{children:(0,t.jsx)(d.f,{toggleText:$({id:"include_inactive",defaultMessage:"Include inactive"}),toggleKey:"includeInactive",active:x})}),(0,t.jsx)(I.f,{onSearchChange:e=>{let{skip:t,...i}=M;e?f({query:(0,S._)(i,e,"queryString")}):f({query:(0,S._)(M)})},defaultSearchValue:y,children:(0,t.jsx)(O.f,{onlyFull:!0,children:(0,t.jsx)(w,{onRemoveFilter:A,queryString:y,limit:h,includeInactive:x,offset:m,sortKeys:F})})})]})]})}],16205)},27572,e=>{"use strict";var t=e.i(91788);let i=t.forwardRef(function({title:e,titleId:i,...s},r){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:r,"aria-labelledby":i},s),e?t.createElement("title",{id:i},e):null,t.createElement("path",{fillRule:"evenodd",d:"M15.988 3.012A2.25 2.25 0 0 1 18 5.25v6.5A2.25 2.25 0 0 1 15.75 14H13.5V7A2.5 2.5 0 0 0 11 4.5H8.128a2.252 2.252 0 0 1 1.884-1.488A2.25 2.25 0 0 1 12.25 1h1.5a2.25 2.25 0 0 1 2.238 2.012ZM11.5 3.25a.75.75 0 0 1 .75-.75h1.5a.75.75 0 0 1 .75.75v.25h-3v-.25Z",clipRule:"evenodd"}),t.createElement("path",{fillRule:"evenodd",d:"M2 7a1 1 0 0 1 1-1h8a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7Zm2 3.25a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Zm0 3.5a.75.75 0 0 1 .75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1-.75-.75Z",clipRule:"evenodd"}))});e.s(["f",0,i],27572)},76842,e=>{"use strict";var t=e.i(91788);let i=t.forwardRef(function({title:e,titleId:i,...s},r){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:r,"aria-labelledby":i},s),e?t.createElement("title",{id:i},e):null,t.createElement("path",{d:"m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.155-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343Z"}))});e.s(["f",0,i],76842)},24557,e=>{"use strict";var t=e.i(91788);let i=t.forwardRef(function({title:e,titleId:i,...s},r){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:r,"aria-labelledby":i},s),e?t.createElement("title",{id:i},e):null,t.createElement("path",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});e.s(["f",0,i],24557)},38322,e=>{"use strict";var t=e.i(91788);let i=t.forwardRef(function({title:e,titleId:i,...s},r){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:r,"aria-labelledby":i},s),e?t.createElement("title",{id:i},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["f",0,i],38322)},38187,e=>{"use strict";var t=e.i(91788);let i=t.forwardRef(function({title:e,titleId:i,...s},r){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:r,"aria-labelledby":i},s),e?t.createElement("title",{id:i},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,i],38187)},86712,e=>{"use strict";var t=e.i(91788);let i=t.forwardRef(function({title:e,titleId:i,...s},r){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:r,"aria-labelledby":i},s),e?t.createElement("title",{id:i},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM12.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0ZM18.75 12a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"}))});e.s(["f",0,i],86712)},24608,e=>{"use strict";var t=e.i(91788);let i=t.forwardRef(function({title:e,titleId:i,...s},r){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:r,"aria-labelledby":i},s),e?t.createElement("title",{id:i},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["f",0,i],24608)},72552,(e,t,i)=>{var s;let r;e.e,s=function e(){var t="u">typeof self?self:"u">typeof window?window:void 0!==t?t:{},i=!t.document&&!!t.postMessage,s=t.IS_PAPA_WORKER||!1,r={},a=0,l={};function n(e){return 65279===e.charCodeAt(0)?e.slice(1):e}function o(e){this._handle=null,this._finished=!1,this._completed=!1,this._halted=!1,this._input=null,this._baseIndex=0,this._partialLine="",this._rowCount=0,this._start=0,this._nextChunk=null,this.isFirstChunk=!0,this._completeResults={data:[],errors:[],meta:{}},(function(e){var t=_(e);t.chunkSize=parseInt(t.chunkSize),e.step||e.chunk||(t.chunkSize=null),this._handle=new h(t),(this._handle.streamer=this)._config=t}).call(this,e),this.parseChunk=function(e,i){var r=parseInt(this._config.skipFirstNLines)||0;if(this.isFirstChunk&&0<r){let t=this._config.newline;t||(a=this._config.quoteChar||'"',t=this._handle.guessLineEndings(e,a)),e=[...e.split(t).slice(r)].join(t)}this.isFirstChunk&&b(this._config.beforeFirstChunk)&&void 0!==(a=this._config.beforeFirstChunk(e))&&(e=a),this.isFirstChunk=!1,this._halted=!1;var r=this._partialLine+e,a=(this._partialLine="",this._handle.parse(r,this._baseIndex,!this._finished));if(!this._handle.paused()&&!this._handle.aborted()){if(e=a.meta.cursor,this._finished||(this._partialLine=r.substring(e-this._baseIndex),this._baseIndex=e),a&&a.data&&(this._rowCount+=a.data.length),r=this._finished||this._config.preview&&this._rowCount>=this._config.preview,s)t.postMessage({results:a,workerId:l.WORKER_ID,finished:r});else if(b(this._config.chunk)&&!i){if(this._config.chunk(a,this._handle),this._handle.paused()||this._handle.aborted())return void(this._halted=!0);this._completeResults=a=void 0}return this._config.step||this._config.chunk||(this._completeResults.data=this._completeResults.data.concat(a.data),this._completeResults.errors=this._completeResults.errors.concat(a.errors),this._completeResults.meta=a.meta),this._completed||!r||!b(this._config.complete)||a&&a.meta.aborted||(this._config.complete(this._completeResults,this._input),this._completed=!0),r||a&&a.meta.paused||this._nextChunk(),a}this._halted=!0},this._sendError=function(e){b(this._config.error)?this._config.error(e):s&&this._config.error&&t.postMessage({workerId:l.WORKER_ID,error:e,finished:!1})}}function d(e){var t;(e=e||{}).chunkSize||(e.chunkSize=l.RemoteChunkSize),o.call(this,e),this._nextChunk=i?function(){this._readChunk(),this._chunkLoaded()}:function(){this._readChunk()},this.stream=function(e){this._input=e,this._nextChunk()},this._readChunk=function(){if(this._finished)this._chunkLoaded();else{if(t=new XMLHttpRequest,this._config.withCredentials&&(t.withCredentials=this._config.withCredentials),i||(t.onload=y(this._chunkLoaded,this),t.onerror=y(this._chunkError,this)),t.ontimeout=y(this._chunkTimeout,this),t.open(this._config.downloadRequestBody?"POST":"GET",this._input,!i),this._config.downloadTimeout&&!i&&(t.timeout=this._config.downloadTimeout),this._config.downloadRequestHeaders){var e,s,r=this._config.downloadRequestHeaders;for(s in r)t.setRequestHeader(s,r[s])}this._config.chunkSize&&(e=this._start+this._config.chunkSize-1,t.setRequestHeader("Range","bytes="+this._start+"-"+e));try{t.send(this._config.downloadRequestBody)}catch(e){this._chunkError(e.message)}i&&0===t.status&&this._chunkError()}},this._chunkLoaded=function(){let e;4===t.readyState&&(t.status<200||400<=t.status?this._chunkError():(this._start+=this._config.chunkSize||t.responseText.length,this._finished=!this._config.chunkSize||this._start>=(null!==(e=(e=t).getResponseHeader("Content-Range"))?parseInt(e.substring(e.lastIndexOf("/")+1)):-1),this.parseChunk(t.responseText)))},this._chunkError=function(e){e=t.statusText||e,this._sendError(Error(e))},this._chunkTimeout=function(){this._chunkError("Request timed out after "+this._config.downloadTimeout+"ms")}}function u(e){(e=e||{}).chunkSize||(e.chunkSize=l.LocalChunkSize),o.call(this,e);var t,i,s="u">typeof FileReader;this.stream=function(e){this._input=e,i=e.slice||e.webkitSlice||e.mozSlice,s?((t=new FileReader).onload=y(this._chunkLoaded,this),t.onerror=y(this._chunkError,this)):t=new FileReaderSync,this._nextChunk()},this._nextChunk=function(){this._finished||this._config.preview&&!(this._rowCount<this._config.preview)||this._readChunk()},this._readChunk=function(){var e=this._input,r=(this._config.chunkSize&&(r=Math.min(this._start+this._config.chunkSize,this._input.size),e=i.call(e,this._start,r)),t.readAsText(e,this._config.encoding));s||this._chunkLoaded({target:{result:r}})},this._chunkLoaded=function(e){this._start+=this._config.chunkSize,this._finished=!this._config.chunkSize||this._start>=this._input.size,this.parseChunk(e.target.result)},this._chunkError=function(){this._sendError(t.error)}}function c(e){var t;o.call(this,e=e||{}),this.stream=function(e){return t=e,this._nextChunk()},this._nextChunk=function(){var e,i;if(!this._finished)return t=(e=this._config.chunkSize)?(i=t.substring(0,e),t.substring(e)):(i=t,""),this._finished=!t,this.parseChunk(i)}}function f(e){o.call(this,e=e||{});var t=[],i=!0,s=!1;this.pause=function(){o.prototype.pause.apply(this,arguments),this._input.pause()},this.resume=function(){o.prototype.resume.apply(this,arguments),this._input.resume()},this.stream=function(e){this._input=e,this._input.on("data",this._streamData),this._input.on("end",this._streamEnd),this._input.on("error",this._streamError)},this._checkIsFinished=function(){s&&1===t.length&&(this._finished=!0)},this._nextChunk=function(){this._checkIsFinished(),t.length?this.parseChunk(t.shift()):i=!0},this._streamData=y(function(e){try{t.push("string"==typeof e?e:e.toString(this._config.encoding)),i&&(i=!1,this._checkIsFinished(),this.parseChunk(t.shift()))}catch(e){this._streamError(e)}},this),this._streamError=y(function(e){this._streamCleanUp(),this._sendError(e)},this),this._streamEnd=y(function(){this._streamCleanUp(),s=!0,this._streamData("")},this),this._streamCleanUp=y(function(){this._input.removeListener("data",this._streamData),this._input.removeListener("end",this._streamEnd),this._input.removeListener("error",this._streamError)},this)}function h(e){var t,i,s,r,a=/^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/,n=/^((\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z)))$/,o=this,d=0,u=0,c=!1,f=!1,h=[],g={data:[],errors:[],meta:{}};function x(t){return"greedy"===e.skipEmptyLines?""===t.join("").trim():1===t.length&&0===t[0].length}function v(){if(g&&s&&(w("Delimiter","UndetectableDelimiter","Unable to auto-detect delimiting character; defaulted to '"+l.DefaultDelimiter+"'"),s=!1),e.skipEmptyLines&&(g.data=g.data.filter(function(e){return!x(e)})),y()){if(g)if(Array.isArray(g.data[0])){for(var t,i=0;y()&&i<g.data.length;i++)g.data[i].forEach(r);g.data.splice(0,1)}else g.data.forEach(r);function r(e){h.push(e)}}function o(t,i){for(var s=e.header?{}:[],r=0;r<t.length;r++){var l=r,o=t[r],o=((t,i)=>(e.dynamicTypingFunction&&void 0===e.dynamicTyping[t]&&(e.dynamicTyping[t]=e.dynamicTypingFunction(t)),!0===(e.dynamicTyping[t]||e.dynamicTyping))?"true"===i||"TRUE"===i||"false"!==i&&"FALSE"!==i&&((e=>{if(a.test(e)&&-0x20000000000000<(e=parseFloat(e))&&e<0x20000000000000)return 1})(i)?parseFloat(i):n.test(i)?new Date(i):""===i?null:i):i)(l=e.header?r>=h.length?"__parsed_extra":h[r]:l,o=e.transform?e.transform(o,l):o);"__parsed_extra"===l?(s[l]=s[l]||[],s[l].push(o)):s[l]=o}return e.header&&(r>h.length?w("FieldMismatch","TooManyFields","Too many fields: expected "+h.length+" fields but parsed "+r,u+i):r<h.length&&w("FieldMismatch","TooFewFields","Too few fields: expected "+h.length+" fields but parsed "+r,u+i)),s}g&&(e.header||e.dynamicTyping||e.transform)&&(t=1,!g.data.length||Array.isArray(g.data[0])?(g.data=g.data.map(o),t=g.data.length):g.data=o(g.data,0),e.header&&g.meta&&(g.meta.fields=h),u+=t)}function y(){return e.header&&0===h.length}function w(e,t,i,s){e={type:e,code:t,message:i},void 0!==s&&(e.row=s),g.errors.push(e)}b(e.step)&&(r=e.step,e.step=function(t){g=t,y()?v():(v(),0!==g.data.length&&(d+=t.data.length,e.preview&&d>e.preview?i.abort():(g.data=g.data[0],r(g,o))))}),this.parse=function(r,a,n){var o=e.quoteChar||'"',o=(e.newline||(e.newline=this.guessLineEndings(r,o)),s=!1,e.delimiter?b(e.delimiter)&&(e.delimiter=e.delimiter(r),g.meta.delimiter=e.delimiter):((o=((t,i,s,r,a)=>{var n,o,d,u;a=a||[","," ","|",";",l.RECORD_SEP,l.UNIT_SEP];for(var c=0;c<a.length;c++){for(var f,h=a[c],m=0,g=0,v=0,_=(d=void 0,new p({comments:r,delimiter:h,newline:i,preview:10}).parse(t)),y=0;y<_.data.length;y++)s&&x(_.data[y])?v++:(g+=f=_.data[y].length,void 0===d?d=f:0<f&&(m+=Math.abs(f-d),d=f));0<_.data.length&&(g/=_.data.length-v),1.99<g&&(void 0===o||m<o||m===o&&u<g)&&(o=m,n=h,u=g)}return{successful:!!(e.delimiter=n),bestDelimiter:n}})(r,e.newline,e.skipEmptyLines,e.comments,e.delimitersToGuess)).successful?e.delimiter=o.bestDelimiter:(s=!0,e.delimiter=l.DefaultDelimiter),g.meta.delimiter=e.delimiter),_(e));return o.header=y(),e.preview&&e.header&&o.preview++,t=r,g=(i=new p(o)).parse(t,a,n),v(),c?{meta:{paused:!0}}:g||{meta:{paused:!1}}},this.paused=function(){return c},this.pause=function(){c=!0,i.abort(),t=b(e.chunk)?"":t.substring(i.getCharIndex())},this.resume=function(){o.streamer._halted?(c=!1,o.streamer.parseChunk(t,!0)):setTimeout(o.resume,3)},this.aborted=function(){return f},this.abort=function(){f=!0,i.abort(),g.meta.aborted=!0,b(e.complete)&&e.complete(g),t=""},this.guessLineEndings=function(e,t){e=e.substring(0,1048576);var t=RegExp(m(t)+"([^]*?)"+m(t),"gm"),i=(e=e.replace(t,"")).split("\r"),t=e.split("\n"),e=1<t.length&&t[0].length<i[0].length;if(1===i.length||e)return"\n";for(var s=0,r=0;r<i.length;r++)"\n"===i[r][0]&&s++;return s>=i.length/2?"\r\n":"\r"}}function m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function p(e){var t=(e=e||{}).delimiter,i=e.newline,s=e.comments,r=e.step,a=e.preview,o=e.fastMode,d=null,u=!1,c=null==e.quoteChar?'"':e.quoteChar,f=c;if(void 0!==e.escapeChar&&(f=e.escapeChar),("string"!=typeof t||-1<l.BAD_DELIMITERS.indexOf(t))&&(t=","),s===t)throw Error("Comment character same as delimiter");!0===s?s="#":("string"!=typeof s||-1<l.BAD_DELIMITERS.indexOf(s))&&(s=!1),"\n"!==i&&"\r"!==i&&"\r\n"!==i&&(i="\n");var h=0,p=!1;this.parse=function(l,g,x){if("string"!=typeof l)throw Error("Input must be a string");var v=l.length,_=t.length,y=i.length,w=s.length,j=b(r),k=[],C=[],S=[],I=h=0;if(!l)return q();if(o||!1!==o&&-1===l.indexOf(c)){for(var M=l.split(i),E=0;E<M.length;E++){if(S=M[E],h+=S.length,E!==M.length-1)h+=i.length;else if(x)break;if(!s||S.substring(0,w)!==s){if(j){if(k=[],$(S.split(t)),V(),p)return q()}else $(S.split(t));if(a&&a<=E)return k=k.slice(0,a),q(!0)}}return q()}for(var F=l.indexOf(t,h),N=l.indexOf(i,h),R=RegExp(m(f)+m(c),"g"),O=l.indexOf(c,h);;)if(l[h]===c)for(O=h,h++;;){if(-1===(O=l.indexOf(c,O+1)))return x||C.push({type:"Quotes",code:"MissingQuotes",message:"Quoted field unterminated",row:k.length,index:h}),D();if(O===v-1)return D(l.substring(h,O).replace(R,c));if(c===f&&l[O+1]===f)O++;else if(c===f||0===O||l[O-1]!==f){-1!==F&&F<O+1&&(F=l.indexOf(t,O+1));var T=A(-1===(N=-1!==N&&N<O+1?l.indexOf(i,O+1):N)?F:Math.min(F,N));if(l.substr(O+1+T,_)===t){S.push(l.substring(h,O).replace(R,c)),l[h=O+1+T+_]!==c&&(O=l.indexOf(c,h)),F=l.indexOf(t,h),N=l.indexOf(i,h);break}if(T=A(N),l.substring(O+1+T,O+1+T+y)===i){if(S.push(l.substring(h,O).replace(R,c)),L(O+1+T+y),F=l.indexOf(t,h),O=l.indexOf(c,h),j&&(V(),p))return q();if(a&&k.length>=a)return q(!0);break}C.push({type:"Quotes",code:"InvalidQuotes",message:"Trailing quote on quoted field is malformed",row:k.length,index:h}),O++}}else if(s&&0===S.length&&l.substring(h,h+w)===s){if(-1===N)return q();h=N+y,N=l.indexOf(i,h),F=l.indexOf(t,h)}else if(-1!==F&&(F<N||-1===N))S.push(l.substring(h,F)),h=F+_,F=l.indexOf(t,h);else{if(-1===N)break;if(S.push(l.substring(h,N)),L(N+y),j&&(V(),p))return q();if(a&&k.length>=a)return q(!0)}return D();function $(e){k.push(e),I=h}function A(e){return -1!==e&&(e=l.substring(O+1,e))&&""===e.trim()?e.length:0}function D(e){return x||(void 0===e&&(e=l.substring(h)),S.push(e),h=v,$(S),j&&V()),q()}function L(e){h=e,$(S),S=[],N=l.indexOf(i,h)}function q(s){if(e.header&&!g&&k.length&&!u){var r=k[0],a=Object.create(null),l=new Set(r);let t=!1;for(let i=0;i<r.length;i++){let s=n(r[i]);if(a[s=b(e.transformHeader)?e.transformHeader(s,i):s]){let e,n=a[s];for(;e=s+"_"+n,n++,l.has(e););l.add(e),r[i]=e,a[s]++,t=!0,(d=null===d?{}:d)[e]=s}else a[s]=1,r[i]=s;l.add(s)}t&&console.warn("Duplicate headers found and renamed."),u=!0}return{data:k,errors:C,meta:{delimiter:t,linebreak:i,aborted:p,truncated:!!s,cursor:I+(g||0),renamedHeaders:d}}}function V(){r(q()),k=[],C=[]}},this.abort=function(){p=!0},this.getCharIndex=function(){return h}}function g(e){var t=e.data,i=r[t.workerId],s=!1;if(t.error)i.userError(t.error,t.file);else if(t.results&&t.results.data){var a={abort:function(){s=!0,x(t.workerId,{data:[],errors:[],meta:{aborted:!0}})},pause:v,resume:v};if(b(i.userStep)){for(var l=0;l<t.results.data.length&&(i.userStep({data:t.results.data[l],errors:t.results.errors,meta:t.results.meta},a),!s);l++);delete t.results}else b(i.userChunk)&&(i.userChunk(t.results,a,t.file),delete t.results)}t.finished&&!s&&x(t.workerId,t.results)}function x(e,t){var i=r[e];b(i.userComplete)&&i.userComplete(t),i.terminate(),delete r[e]}function v(){throw Error("Not implemented.")}function _(e){if("object"!=typeof e||null===e)return e;var t,i=Array.isArray(e)?[]:{};for(t in e)i[t]=_(e[t]);return i}function y(e,t){return function(){e.apply(t,arguments)}}function b(e){return"function"==typeof e}return l.parse=function(i,s){var o,h,m,p=(s=s||{}).dynamicTyping||!1;if(b(p)&&(s.dynamicTypingFunction=p,p={}),s.dynamicTyping=p,s.transform=!!b(s.transform)&&s.transform,void 0!==s.downloadTimeout){var p=parseInt(s.downloadTimeout);if(isNaN(p))throw Error("Config downloadTimeout value ("+s.downloadTimeout+") not parsable by parseInt(val).");s.downloadTimeout=p}if(!s.worker||!l.WORKERS_SUPPORTED)return p=null,l.NODE_STREAM_INPUT,"string"==typeof i?(i=n(i),p=new(s.download?d:c)(s)):!0===i.readable&&b(i.read)&&b(i.on)?p=new f(s):(t.File&&i instanceof File||i instanceof Object)&&(p=new u(s)),p.stream(i);(p=!!l.WORKERS_SUPPORTED&&(h=t.URL||t.webkitURL||null,m=e.toString(),o=l.BLOB_URL||(l.BLOB_URL=h.createObjectURL(new Blob(["var global = (function() { if (typeof self !== 'undefined') { return self; } if (typeof window !== 'undefined') { return window; } if (typeof global !== 'undefined') { return global; } return {}; })(); global.IS_PAPA_WORKER=true; ","(",m,")();"],{type:"text/javascript"}))),(o=new t.Worker(o)).onmessage=g,o.id=a++,r[o.id]=o)).userStep=s.step,p.userChunk=s.chunk,p.userComplete=s.complete,p.userError=s.error,s.step=b(s.step),s.chunk=b(s.chunk),s.complete=b(s.complete),s.error=b(s.error),delete s.worker,p.postMessage({input:i,config:s,workerId:p.id})},l.unparse=function(e,t){var i=!1,s=!0,r=",",a="\r\n",n='"',o=n+n,d=!1,u=null,c=!1,f=((()=>{if("object"==typeof t){if("string"!=typeof t.delimiter||l.BAD_DELIMITERS.filter(function(e){return -1!==t.delimiter.indexOf(e)}).length||(r=t.delimiter),("boolean"==typeof t.quotes||"function"==typeof t.quotes||Array.isArray(t.quotes))&&(i=t.quotes),"boolean"!=typeof t.skipEmptyLines&&"string"!=typeof t.skipEmptyLines||(d=t.skipEmptyLines),"string"==typeof t.newline&&(a=t.newline),"string"==typeof t.quoteChar&&(o=(n=t.quoteChar)+n),"boolean"==typeof t.header&&(s=t.header),Array.isArray(t.columns)){if(0===t.columns.length)throw Error("Option columns is empty");u=t.columns}void 0!==t.escapeChar&&(o=t.escapeChar+n),t.escapeFormulae instanceof RegExp?c=t.escapeFormulae:"boolean"==typeof t.escapeFormulae&&t.escapeFormulae&&(c=/^[=+\-@\t\r].*$/)}})(),RegExp(m(n),"g"));if("string"==typeof e&&(e=JSON.parse(e)),Array.isArray(e)){if(!e.length||Array.isArray(e[0]))return h(null,e,d);if("object"==typeof e[0])return h(u||Object.keys(e[0]),e,d)}else if("object"==typeof e)return"string"==typeof e.data&&(e.data=JSON.parse(e.data)),Array.isArray(e.data)&&(e.fields||(e.fields=e.meta&&e.meta.fields||u),e.fields||(e.fields=Array.isArray(e.data[0])?e.fields:"object"==typeof e.data[0]?Object.keys(e.data[0]):[]),Array.isArray(e.data[0])||"object"==typeof e.data[0]||(e.data=[e.data])),h(e.fields||[],e.data||[],d);throw Error("Unable to serialize unrecognized input");function h(e,t,i){var l="",n=("string"==typeof e&&(e=JSON.parse(e)),"string"==typeof t&&(t=JSON.parse(t)),Array.isArray(e)&&0<e.length),o=!Array.isArray(t[0]);if(n&&s){for(var d=0;d<e.length;d++)0<d&&(l+=r),l+=p(e[d],d);0<t.length&&(l+=a)}for(var u=0;u<t.length;u++){var c=(n?e:t[u]).length,f=!1,h=n?0===Object.keys(t[u]).length:0===t[u].length;if(i&&!n&&(f="greedy"===i?""===t[u].join("").trim():1===t[u].length&&0===t[u][0].length),"greedy"===i&&n){for(var m=[],g=0;g<c;g++){var x=o?e[g]:g;m.push(t[u][x])}f=""===m.join("").trim()}if(!f){for(var v=0;v<c;v++){0<v&&!h&&(l+=r);var _=n&&o?e[v]:v;l+=p(t[u][_],v)}u<t.length-1&&(!i||0<c&&!h)&&(l+=a)}}return l}function p(e,t){var s,a,d;return null==e?"":e.constructor===Date?isNaN(e.getTime())?"":e.toISOString():(d=!1,c&&"string"==typeof e&&c.test(e)&&(e="'"+e,d=!0),a=(s=e.toString()).replace(f,o),(d=d||!0===i||"function"==typeof i&&i(e,t)||Array.isArray(i)&&i[t]||((e,t)=>{for(var i=0;i<t.length;i++)if(-1<e.indexOf(t[i]))return!0;return!1})(a,l.BAD_DELIMITERS)||-1<a.indexOf(r)||-1<s.indexOf(n)||" "===a.charAt(0)||" "===a.charAt(a.length-1))?n+a+n:a)}},l.RECORD_SEP="\x1e",l.UNIT_SEP="\x1f",l.BYTE_ORDER_MARK="\uFEFF",l.BAD_DELIMITERS=["\r","\n",'"',l.BYTE_ORDER_MARK],l.WORKERS_SUPPORTED=!i&&!!t.Worker,l.NODE_STREAM_INPUT=1,l.LocalChunkSize=0xa00000,l.RemoteChunkSize=5242880,l.DefaultDelimiter=",",l.Parser=p,l.ParserHandle=h,l.NetworkStreamer=d,l.FileStreamer=u,l.StringStreamer=c,l.ReadableStreamStreamer=f,s&&(t.onmessage=function(e){e=e.data,void 0===l.WORKER_ID&&e&&(l.WORKER_ID=e.workerId),"string"==typeof e.input?t.postMessage({workerId:l.WORKER_ID,results:l.parse(e.input,e.config),finished:!0}):(t.File&&e.input instanceof File||e.input instanceof Object)&&(e=l.parse(e.input,e.config))&&t.postMessage({workerId:l.WORKER_ID,results:e,finished:!0})}),(d.prototype=Object.create(o.prototype)).constructor=d,(u.prototype=Object.create(o.prototype)).constructor=u,(c.prototype=Object.create(c.prototype)).constructor=c,(f.prototype=Object.create(o.prototype)).constructor=f,l},"function"==typeof define&&define.amd?void 0!==(r=s())&&e.v(r):t.exports=s()},40238,(e,t,i)=>{"use strict";var s=e.r(91788),r="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=s.useSyncExternalStore,l=s.useRef,n=s.useEffect,o=s.useMemo,d=s.useDebugValue;i.useSyncExternalStoreWithSelector=function(e,t,i,s,u){var c=l(null);if(null===c.current){var f={hasValue:!1,value:null};c.current=f}else f=c.current;var h=a(e,(c=o(function(){function e(e){if(!n){if(n=!0,a=e,e=s(e),void 0!==u&&f.hasValue){var t=f.value;if(u(t,e))return l=t}return l=e}if(t=l,r(a,e))return t;var i=s(e);return void 0!==u&&u(t,i)?(a=e,t):(a=e,l=i)}var a,l,n=!1,o=void 0===i?null:i;return[function(){return e(t())},null===o?void 0:function(){return e(o())}]},[t,i,s,u]))[0],c[1]);return n(function(){f.hasValue=!0,f.value=h},[h]),d(h),h}},19979,(e,t,i)=>{"use strict";e.i(50461),t.exports=e.r(40238)}]);