@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,79001,34981,58101,e=>{var s=e.i(91398),t=e.i(69322),a=e.i(66773),r=e.i(28401),i=e.i(59295),l=e.i(6277),n=e.i(12197),d=e.i(15971),o=e.i(6607),c=e.i(65530),m=e.i(57569),u=e.i(91788),f=e.i(69211),x=e.i(99160),g=e.i(98949),h=e.i(35339),p=e.i(47542),v=e.i(96015),j=e.i(58971),y=e.i(5505),b=e.i(72094),M=e.i(37547),A=e.i(59080),k=e.i(32171);let _=A.f`
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,79001,34981,58101,e=>{"use strict";var s=e.i(91398),t=e.i(3326),a=e.i(66773),r=e.i(28401),i=e.i(59295),l=e.i(6277),n=e.i(12197),d=e.i(15971),o=e.i(6607),c=e.i(65530),m=e.i(57569),u=e.i(91788),f=e.i(69211),x=e.i(99160),g=e.i(98949),h=e.i(35339),p=e.i(47542),v=e.i(96015),j=e.i(58971),y=e.i(5505),b=e.i(72094),M=e.i(37547),A=e.i(59080),k=e.i(32171);let _=A.f`
2
2
  query AssortmentPaths($assortmentId: ID!) {
3
3
  assortment(assortmentId: $assortmentId) {
4
4
  assortmentPaths {
@@ -107,7 +107,7 @@
107
107
  sortKey
108
108
  }
109
109
  }
110
- `;e.s(["f",0,({assortmentId:e})=>{let{formatMessage:c}=(0,t.S)(),{assortmentFilters:m,loading:u}=(({assortmentId:e=null,slug:s=null}={})=>{let t=(0,S.Q)(s),{data:a,loading:r,error:i}=(0,k.f)(G,{skip:!e&&!t,variables:{assortmentId:e||t}}),l=a?.assortment;return{loading:r,error:i,assortmentFilters:l?.filterAssignments||[]}})({assortmentId:e}),{setModal:f}=(0,o.f)(),{hasRole:x}=(0,j.f)(),{removeAssortmentFilter:g}=(()=>{let[e]=(0,R.f)(Z);return{removeAssortmentFilter:async({assortmentFilterId:s})=>e({variables:{assortmentFilterId:s},refetchQueries:["AssortmentFilters"]})}})(),{reorderAssortmentFilters:h}=(()=>{let[e]=(0,R.f)(ea);return{reorderAssortmentFilters:async({sortKeys:s})=>e({variables:{sortKeys:s},refetchQueries:["AssortmentFilters"]})}})(),p=m?.map(e=>e._id),v=async e=>{await f((0,s.jsx)(d.f,{onCancelClick:async()=>f(""),message:c({id:"delete_assortment_filter_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this language? "}),onOkClick:async()=>{f(""),await g({assortmentFilterId:e}),r.c.success(c({id:"assortment_filter_deleted",defaultMessage:"Assortment filter deleted successfully"}))},okText:c({id:"delete_filter",defaultMessage:"Delete filter"})}))},y=async e=>{let{active:s,over:t}=e;if(s.id!==t.id){let e=p.indexOf(s.id),a=p.indexOf(t.id),i=(0,l.e)(p,e,a).map((e,s)=>({assortmentFilterId:e,sortKey:s}));try{await h({sortKeys:i}),r.c.success(c({id:"link_reorder",defaultMessage:"Link reorder successfully"}))}catch(e){r.c.error(c({id:"fail_reorder",defaultMessage:"Reordering failed, Try again!"}))}}else r.c.info(c({id:"reorder_original",defaultMessage:"Reorder to original location"}))},b=(0,i.n)((0,i.J)(i.k,{activationConstraint:{distance:5}}),(0,i.J)(i.y,{coordinateGetter:l.j}));return(0,s.jsxs)(s.Fragment,{children:[x(a.C.ManageAssortments)&&(0,s.jsx)(q.f,{documentationLabel:c({id:"assortment_filters_form_header",defaultMessage:"Filters"}),className:"mt-2 lg:mt-5",documentation:(0,s.jsx)(t.K,{id:"assortment_filter_form_description",defaultMessage:"<ul> <li>Assign filters that will be applied for the assortment </li>\n </ul>",values:{ul:e=>(0,s.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,s.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,s.jsx)("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:e})}}),children:(0,s.jsx)(et,{assortmentId:e})}),(0,s.jsx)(q.f,{documentationLabel:c({id:"assortment_filters_header",defaultMessage:"Assortment filters"}),className:"sm:mt-4",documentation:(0,s.jsx)(t.K,{id:"assortment_filter_list_description",defaultMessage:"<ul> <li>All filters that are applied when searching for this assortment </li>\n <li> Drag and drop list items to sort filters order </li>\n </ul>",values:{ul:e=>(0,s.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,s.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,s.jsx)("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:e})}}),children:u?(0,s.jsx)("div",{className:"ml-auto shadow-sm dark:shadow-none w-full md:col-span-2",children:(0,s.jsx)(n.f,{})}):(0,s.jsx)("div",{className:"ml-auto shadow-sm dark:shadow-none w-full md:col-span-2 bg-white dark:bg-slate-800",children:(0,s.jsx)(i.H,{sensors:b,collisionDetection:i.P,onDragEnd:y,id:"assortment-filter",children:(0,s.jsx)(Y,{filters:m,onRemoveFilter:v,items:p})})})})]})}],58101)},45856,24941,e=>{var s=e.i(91398),t=e.i(91788),a=e.i(66773),r=e.i(69322),i=e.i(69211),l=e.i(99160),n=e.i(45229),d=e.i(98949),o=e.i(59080),c=e.i(32171);let m=o.f`
110
+ `;e.s(["f",0,({assortmentId:e})=>{let{formatMessage:c}=(0,t.S)(),{assortmentFilters:m,loading:u}=(({assortmentId:e=null,slug:s=null}={})=>{let t=(0,S.Q)(s),{data:a,loading:r,error:i}=(0,k.f)(G,{skip:!e&&!t,variables:{assortmentId:e||t}}),l=a?.assortment;return{loading:r,error:i,assortmentFilters:l?.filterAssignments||[]}})({assortmentId:e}),{setModal:f}=(0,o.f)(),{hasRole:x}=(0,j.f)(),{removeAssortmentFilter:g}=(()=>{let[e]=(0,R.f)(Z);return{removeAssortmentFilter:async({assortmentFilterId:s})=>e({variables:{assortmentFilterId:s},refetchQueries:["AssortmentFilters"]})}})(),{reorderAssortmentFilters:h}=(()=>{let[e]=(0,R.f)(ea);return{reorderAssortmentFilters:async({sortKeys:s})=>e({variables:{sortKeys:s},refetchQueries:["AssortmentFilters"]})}})(),p=m?.map(e=>e._id),v=async e=>{await f((0,s.jsx)(d.f,{onCancelClick:async()=>f(""),message:c({id:"delete_assortment_filter_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this language? "}),onOkClick:async()=>{f(""),await g({assortmentFilterId:e}),r.c.success(c({id:"assortment_filter_deleted",defaultMessage:"Assortment filter deleted successfully"}))},okText:c({id:"delete_filter",defaultMessage:"Delete filter"})}))},y=async e=>{let{active:s,over:t}=e;if(s.id!==t.id){let e=p.indexOf(s.id),a=p.indexOf(t.id),i=(0,l.e)(p,e,a).map((e,s)=>({assortmentFilterId:e,sortKey:s}));try{await h({sortKeys:i}),r.c.success(c({id:"link_reorder",defaultMessage:"Link reorder successfully"}))}catch(e){r.c.error(c({id:"fail_reorder",defaultMessage:"Reordering failed, Try again!"}))}}else r.c.info(c({id:"reorder_original",defaultMessage:"Reorder to original location"}))},b=(0,i.n)((0,i.J)(i.k,{activationConstraint:{distance:5}}),(0,i.J)(i.y,{coordinateGetter:l.j}));return(0,s.jsxs)(s.Fragment,{children:[x(a.C.ManageAssortments)&&(0,s.jsx)(q.f,{documentationLabel:c({id:"assortment_filters_form_header",defaultMessage:"Filters"}),className:"mt-2 lg:mt-5",documentation:(0,s.jsx)(t.K,{id:"assortment_filter_form_description",defaultMessage:"<ul> <li>Assign filters that will be applied for the assortment </li>\n </ul>",values:{ul:e=>(0,s.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,s.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,s.jsx)("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:e})}}),children:(0,s.jsx)(et,{assortmentId:e})}),(0,s.jsx)(q.f,{documentationLabel:c({id:"assortment_filters_header",defaultMessage:"Assortment filters"}),className:"sm:mt-4",documentation:(0,s.jsx)(t.K,{id:"assortment_filter_list_description",defaultMessage:"<ul> <li>All filters that are applied when searching for this assortment </li>\n <li> Drag and drop list items to sort filters order </li>\n </ul>",values:{ul:e=>(0,s.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,s.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,s.jsx)("strong",{className:"font-semibold text-slate-800 dark:text-slate-200",children:e})}}),children:u?(0,s.jsx)("div",{className:"ml-auto shadow-sm dark:shadow-none w-full md:col-span-2",children:(0,s.jsx)(n.f,{})}):(0,s.jsx)("div",{className:"ml-auto shadow-sm dark:shadow-none w-full md:col-span-2 bg-white dark:bg-slate-800",children:(0,s.jsx)(i.H,{sensors:b,collisionDetection:i.P,onDragEnd:y,id:"assortment-filter",children:(0,s.jsx)(Y,{filters:m,onRemoveFilter:v,items:p})})})})]})}],58101)},45856,24941,e=>{"use strict";var s=e.i(91398),t=e.i(91788),a=e.i(66773),r=e.i(3326),i=e.i(69211),l=e.i(99160),n=e.i(45229),d=e.i(98949),o=e.i(59080),c=e.i(32171);let m=o.f`
111
111
  fragment AssortmentTextsFragment on AssortmentTexts {
112
112
  _id
113
113
  locale
@@ -211,7 +211,7 @@
211
211
  }
212
212
  }
213
213
  ${O}
214
- `,Q=({media:e,onDelete:a,locale:r,id:i})=>{let[l,n]=(0,t.useState)(!1),{updateAssortmentMediaTexts:d}=(()=>{let[e]=(0,f.f)(E);return{updateAssortmentMediaTexts:async({assortmentMediaId:s,texts:t})=>e({variables:{assortmentMediaId:s,texts:t},refetchQueries:["TranslatedAssortmentMediaTexts"]})}})(),{translatedAssortmentMediaTexts:o}=(({assortmentMediaId:e=null})=>{let{data:s,loading:t,error:a}=(0,c.f)(U,{skip:!e,variables:{assortmentMediaId:e}});return{loading:t,error:a,translatedAssortmentMediaTexts:s?.translatedAssortmentMediaTexts||[]}})({assortmentMediaId:e._id}),m=o?.find(e=>e.locale===r)||{},u=async({title:s,subtitle:t})=>(await d({assortmentMediaId:e._id,texts:[{title:s,locale:r,subtitle:t}]}),n(!1),!0);return(0,s.jsx)(q.f,{media:e,mediaText:m,isEdit:l,onDelete:a,onEdit:n,onUpdate:u,id:i})},V=({medias:e=[],onDeleteMedia:t,items:a=[]})=>{let{formatMessage:i}=(0,r.S)(),{selectedLocale:l}=(0,j.f)();return A.V&&Q&&K.f?(0,s.jsx)("div",{className:"rounded-md lg:col-span-6",children:(0,s.jsxs)("div",{className:"mx-auto max-w-7xl overflow-hidden",children:[(0,s.jsx)("h2",{className:"sr-only",children:i({id:"assortment_media",defaultMessage:"Assortment Media"})}),(0,s.jsx)(A.V,{items:a,strategy:A.W,children:(0,s.jsx)("ul",{className:"space-y-4 transition-[background-color] ease-in-out delay-200",children:e.length?a.map(a=>{let r=Object.values(e).find(e=>e._id===a);return r?(0,s.jsx)(Q,{id:a,media:r,locale:l,onDelete:t},r._id):(console.warn(`Media with ID ${a} not found in medias array`),null)}).filter(Boolean):(0,s.jsx)(K.f,{message:i({id:"media",defaultMessage:"Media"})})})})]})}):(console.error("Required components not loaded in AssortmentMediaList:",{SortableContext:!!A.V,AssortmentMediaListItem:!!Q,NoData:!!K.f}),(0,s.jsx)("div",{className:"rounded-md lg:col-span-6",children:(0,s.jsx)("div",{className:"mx-auto max-w-7xl overflow-hidden",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsx)("div",{className:"text-rose-500",children:"Media list component loading error. Please refresh the page."})})})}))},B=({assortmentId:e})=>{let{assortmentMedia:t,loading:i,error:l}=S({assortmentId:e}),{formatMessage:n}=(0,r.S)(),{setModal:d}=(0,w.f)(),{hasRole:o}=(0,h.f)(),{removeAssortmentMedia:c}=P(),{reorderAssortmentMedia:m}=R(),{addAssortmentMedia:u}=C(),f=(0,M.n)((0,M.J)(M.k,{activationConstraint:{distance:5}}),(0,M.J)(M.y,{coordinateGetter:A.j})),x=(t||[]).map(e=>e._id);if(!k.f||!M.H||!V)return console.error("Required components not loaded:",{MediaUploader:!!k.f,DndContext:!!M.H,AssortmentMediaList:!!V}),(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsx)("div",{className:"text-rose-500",children:n({id:"component_loading_error",defaultMessage:"Component loading error. Please refresh the page."})})})});if(i)return(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsx)("div",{className:"text-slate-500 dark:text-slate-400",children:n({id:"loading_media",defaultMessage:"Loading media..."})})})});if(l)return(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsxs)("div",{className:"text-rose-500",children:[n({id:"error_loading_media",defaultMessage:"Error loading media: "})," ",l.message]})})});let g=async s=>{try{await u({assortmentId:e,media:s}),b.c.success(n({id:"assortment_media_upload",defaultMessage:"Media uploaded successfully"}))}catch(e){b.c.error(n({id:"fail_upload",defaultMessage:"Media upload failed"}))}},p=async e=>{await d((0,s.jsx)(_.f,{onCancelClick:async()=>d(""),message:n({id:"delete_assortment_media_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this currency? "}),onOkClick:async()=>{d(""),await c({assortmentMediaId:e}),b.c.success(n({id:"assortment_media_deleted",defaultMessage:"Media deleted successfully"}))},okText:n({id:"delete_assortment_media",defaultMessage:"Delete media"})}))},v=async e=>{let{active:s,over:t}=e;if(s.id!==t.id){let e=x.indexOf(s.id),a=x.indexOf(t.id),r=(0,A.e)(x,e,a).map((e,s)=>({assortmentMediaId:e,sortKey:s}));try{await m({sortKeys:r}),b.c.success(n({id:"link_reorder",defaultMessage:"Link reorder successfully"}))}catch(e){b.c.error(n({id:"fail_reorder",defaultMessage:"Reordering failed, Try again!"}))}}else b.c.info(n({id:"reorder_original",defaultMessage:"Reorder to original location"}))};return(0,s.jsxs)("div",{className:"mx-auto mt-5 max-w-fullpy-6 grid lg:grid-cols-12 gap-5",children:[o(a.C.ManageAssortments)&&(0,s.jsx)("div",{className:"lg:col-span-6",children:(0,s.jsx)(k.f,{onlyDragAndDrop:!0,addMedia:g})}),(0,s.jsx)("div",{className:"lg:col-span-6",children:(0,s.jsx)(M.H,{sensors:f,collisionDetection:M.P,onDragEnd:v,id:"assortment-media",children:(0,s.jsx)(V,{medias:t,onDeleteMedia:p,items:x})})})]})};e.s(["f",0,e=>{let t=Object.entries({MediaUploader:k.f,DangerMessage:_.f,useModal:w.f,useAddAssortmentMedia:C,useAssortmentMedia:S,useRemoveAssortmentMedia:P,useReorderAssortmentMedia:R,AssortmentMediaList:V,DndContext:M.H,closestCenter:M.P,KeyboardSensor:M.y,PointerSensor:M.k,useSensor:M.J,useSensors:M.n,arrayMove:A.e,sortableKeyboardCoordinates:A.j}).filter(([e,s])=>!s).map(([e])=>e);if(t.length>0)return console.error("Missing dependencies in AssortmentMediaForm:",t),(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"text-rose-500 mb-2",children:"Missing Dependencies"}),(0,s.jsxs)("div",{className:"text-sm text-slate-600 dark:text-slate-400",children:["The following dependencies are missing:"," ",t.join(", ")]})]})})});try{return(0,s.jsx)(B,{...e})}catch(e){return console.error("Error rendering AssortmentMediaForm:",e),(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"text-rose-500 mb-2",children:"Component Error"}),(0,s.jsx)("div",{className:"text-sm text-slate-600 dark:text-slate-400",children:e instanceof Error?e.message:"Unknown error occurred"})]})})})}}],24941)},50931,e=>{var s=e.i(59080);let t=s.f`
214
+ `,Q=({media:e,onDelete:a,locale:r,id:i})=>{let[l,n]=(0,t.useState)(!1),{updateAssortmentMediaTexts:d}=(()=>{let[e]=(0,f.f)(E);return{updateAssortmentMediaTexts:async({assortmentMediaId:s,texts:t})=>e({variables:{assortmentMediaId:s,texts:t},refetchQueries:["TranslatedAssortmentMediaTexts"]})}})(),{translatedAssortmentMediaTexts:o}=(({assortmentMediaId:e=null})=>{let{data:s,loading:t,error:a}=(0,c.f)(U,{skip:!e,variables:{assortmentMediaId:e}});return{loading:t,error:a,translatedAssortmentMediaTexts:s?.translatedAssortmentMediaTexts||[]}})({assortmentMediaId:e._id}),m=o?.find(e=>e.locale===r)||{},u=async({title:s,subtitle:t})=>(await d({assortmentMediaId:e._id,texts:[{title:s,locale:r,subtitle:t}]}),n(!1),!0);return(0,s.jsx)(q.f,{media:e,mediaText:m,isEdit:l,onDelete:a,onEdit:n,onUpdate:u,id:i})},V=({medias:e=[],onDeleteMedia:t,items:a=[]})=>{let{formatMessage:i}=(0,r.S)(),{selectedLocale:l}=(0,j.f)();return A.V&&Q&&K.f?(0,s.jsx)("div",{className:"rounded-md lg:col-span-6",children:(0,s.jsxs)("div",{className:"mx-auto max-w-7xl overflow-hidden",children:[(0,s.jsx)("h2",{className:"sr-only",children:i({id:"assortment_media",defaultMessage:"Assortment Media"})}),(0,s.jsx)(A.V,{items:a,strategy:A.W,children:(0,s.jsx)("ul",{className:"space-y-4 transition-[background-color] ease-in-out delay-200",children:e.length?a.map(a=>{let r=Object.values(e).find(e=>e._id===a);return r?(0,s.jsx)(Q,{id:a,media:r,locale:l,onDelete:t},r._id):(console.warn(`Media with ID ${a} not found in medias array`),null)}).filter(Boolean):(0,s.jsx)(K.f,{message:i({id:"media",defaultMessage:"Media"})})})})]})}):(console.error("Required components not loaded in AssortmentMediaList:",{SortableContext:!!A.V,AssortmentMediaListItem:!!Q,NoData:!!K.f}),(0,s.jsx)("div",{className:"rounded-md lg:col-span-6",children:(0,s.jsx)("div",{className:"mx-auto max-w-7xl overflow-hidden",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsx)("div",{className:"text-rose-500",children:"Media list component loading error. Please refresh the page."})})})}))},B=({assortmentId:e})=>{let{assortmentMedia:t,loading:i,error:l}=S({assortmentId:e}),{formatMessage:n}=(0,r.S)(),{setModal:d}=(0,w.f)(),{hasRole:o}=(0,h.f)(),{removeAssortmentMedia:c}=P(),{reorderAssortmentMedia:m}=R(),{addAssortmentMedia:u}=C(),f=(0,M.n)((0,M.J)(M.k,{activationConstraint:{distance:5}}),(0,M.J)(M.y,{coordinateGetter:A.j})),x=(t||[]).map(e=>e._id);if(!k.f||!M.H||!V)return console.error("Required components not loaded:",{MediaUploader:!!k.f,DndContext:!!M.H,AssortmentMediaList:!!V}),(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsx)("div",{className:"text-rose-500",children:n({id:"component_loading_error",defaultMessage:"Component loading error. Please refresh the page."})})})});if(i)return(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsx)("div",{className:"text-slate-500 dark:text-slate-400",children:n({id:"loading_media",defaultMessage:"Loading media..."})})})});if(l)return(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsxs)("div",{className:"text-rose-500",children:[n({id:"error_loading_media",defaultMessage:"Error loading media: "})," ",l.message]})})});let g=async s=>{try{await u({assortmentId:e,media:s}),b.c.success(n({id:"assortment_media_upload",defaultMessage:"Media uploaded successfully"}))}catch(e){b.c.error(n({id:"fail_upload",defaultMessage:"Media upload failed"}))}},p=async e=>{await d((0,s.jsx)(_.f,{onCancelClick:async()=>d(""),message:n({id:"delete_assortment_media_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this currency? "}),onOkClick:async()=>{d(""),await c({assortmentMediaId:e}),b.c.success(n({id:"assortment_media_deleted",defaultMessage:"Media deleted successfully"}))},okText:n({id:"delete_assortment_media",defaultMessage:"Delete media"})}))},v=async e=>{let{active:s,over:t}=e;if(s.id!==t.id){let e=x.indexOf(s.id),a=x.indexOf(t.id),r=(0,A.e)(x,e,a).map((e,s)=>({assortmentMediaId:e,sortKey:s}));try{await m({sortKeys:r}),b.c.success(n({id:"link_reorder",defaultMessage:"Link reorder successfully"}))}catch(e){b.c.error(n({id:"fail_reorder",defaultMessage:"Reordering failed, Try again!"}))}}else b.c.info(n({id:"reorder_original",defaultMessage:"Reorder to original location"}))};return(0,s.jsxs)("div",{className:"mx-auto mt-5 max-w-fullpy-6 grid lg:grid-cols-12 gap-5",children:[o(a.C.ManageAssortments)&&(0,s.jsx)("div",{className:"lg:col-span-6",children:(0,s.jsx)(k.f,{onlyDragAndDrop:!0,addMedia:g})}),(0,s.jsx)("div",{className:"lg:col-span-6",children:(0,s.jsx)(M.H,{sensors:f,collisionDetection:M.P,onDragEnd:v,id:"assortment-media",children:(0,s.jsx)(V,{medias:t,onDeleteMedia:p,items:x})})})]})};e.s(["f",0,e=>{let t=Object.entries({MediaUploader:k.f,DangerMessage:_.f,useModal:w.f,useAddAssortmentMedia:C,useAssortmentMedia:S,useRemoveAssortmentMedia:P,useReorderAssortmentMedia:R,AssortmentMediaList:V,DndContext:M.H,closestCenter:M.P,KeyboardSensor:M.y,PointerSensor:M.k,useSensor:M.J,useSensors:M.n,arrayMove:A.e,sortableKeyboardCoordinates:A.j}).filter(([e,s])=>!s).map(([e])=>e);if(t.length>0)return console.error("Missing dependencies in AssortmentMediaForm:",t),(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"text-rose-500 mb-2",children:"Missing Dependencies"}),(0,s.jsxs)("div",{className:"text-sm text-slate-600 dark:text-slate-400",children:["The following dependencies are missing:"," ",t.join(", ")]})]})})});try{return(0,s.jsx)(B,{...e})}catch(e){return console.error("Error rendering AssortmentMediaForm:",e),(0,s.jsx)("div",{className:"mx-auto mt-5 max-w-full bg-white dark:bg-slate-800 py-6 shadow-sm dark:shadow-none lg:rounded-sm",children:(0,s.jsx)("div",{className:"flex items-center justify-center p-8",children:(0,s.jsxs)("div",{className:"text-center",children:[(0,s.jsx)("div",{className:"text-rose-500 mb-2",children:"Component Error"}),(0,s.jsx)("div",{className:"text-sm text-slate-600 dark:text-slate-400",children:e instanceof Error?e.message:"Unknown error occurred"})]})})})}}],24941)},50931,e=>{"use strict";var s=e.i(59080);let t=s.f`
215
215
  fragment AssortmentFragment on Assortment {
216
216
  _id
217
217
  isActive
@@ -237,7 +237,7 @@
237
237
  }
238
238
  }
239
239
  }
240
- `;e.s(["f",0,t])},65530,57569,35339,e=>{var s=e.i(59080),t=e.i(32171),a=e.i(1880),r=e.i(50931),i=e.i(57561);let l=s.f`
240
+ `;e.s(["f",0,t])},65530,57569,35339,e=>{"use strict";var s=e.i(59080),t=e.i(32171),a=e.i(1880),r=e.i(50931),i=e.i(57561);let l=s.f`
241
241
  query AssortmentLinks(
242
242
  $assortmentId: ID
243
243
  $slug: String
@@ -278,7 +278,7 @@
278
278
  _id
279
279
  }
280
280
  }
281
- `;e.s(["f",0,()=>{let[e]=(0,n.f)(o);return{addAssortmentLink:async({parentAssortmentId:s,childAssortmentId:t,tags:a})=>e({variables:{parentAssortmentId:s,childAssortmentId:t,tags:a},refetchQueries:["AssortmentLinks"]})}}],35339)},37547,e=>{var s=e.i(59080),t=e.i(32171),a=e.i(50931);let r=s.f`
281
+ `;e.s(["f",0,()=>{let[e]=(0,n.f)(o);return{addAssortmentLink:async({parentAssortmentId:s,childAssortmentId:t,tags:a})=>e({variables:{parentAssortmentId:s,childAssortmentId:t,tags:a},refetchQueries:["AssortmentLinks"]})}}],35339)},37547,e=>{"use strict";var s=e.i(59080),t=e.i(32171),a=e.i(50931);let r=s.f`
282
282
  query Assortments(
283
283
  $queryString: String
284
284
  $tags: [LowerCaseString!]
@@ -316,13 +316,13 @@
316
316
  )
317
317
  }
318
318
  ${a.f}
319
- `;e.s(["f",0,({queryString:e="",tags:s=null,slugs:a=null,limit:i=20,offset:l=0,includeInactive:n=!0,includeLeaves:d=!1,sort:o=[],forceLocale:c=""}={})=>{let{data:m,loading:u,error:f,fetchMore:x,client:g}=(0,t.f)(r,{variables:{queryString:e,tags:s,slugs:a||null,limit:i,offset:l,includeInactive:n,includeLeaves:d,sort:o.length?o:[{key:"sequence",value:"ASC"}],forceLocale:c},context:{headers:{forceLocale:c}}}),h=m?.assortments||[],p=m?.assortmentsCount,v=h?.length<p;return{loading:u,error:f,assortmentsCount:p,hasMore:v,assortments:m?.assortments||[],loadMore:()=>{x({variables:{offset:h?.length}})},client:g}}])},75818,e=>{var s=e.i(59080),t=e.i(76204);let a=s.f`
319
+ `;e.s(["f",0,({queryString:e="",tags:s=null,slugs:a=null,limit:i=20,offset:l=0,includeInactive:n=!0,includeLeaves:d=!1,sort:o=[],forceLocale:c=""}={})=>{let{data:m,loading:u,error:f,fetchMore:x,client:g}=(0,t.f)(r,{variables:{queryString:e,tags:s,slugs:a||null,limit:i,offset:l,includeInactive:n,includeLeaves:d,sort:o.length?o:[{key:"sequence",value:"ASC"}],forceLocale:c},context:{headers:{forceLocale:c}}}),h=m?.assortments||[],p=m?.assortmentsCount,v=h?.length<p;return{loading:u,error:f,assortmentsCount:p,hasMore:v,assortments:m?.assortments||[],loadMore:()=>{x({variables:{offset:h?.length}})},client:g}}])},75818,e=>{"use strict";var s=e.i(59080),t=e.i(76204);let a=s.f`
320
320
  mutation RemoveAssortment($assortmentId: ID!) {
321
321
  removeAssortment(assortmentId: $assortmentId) {
322
322
  _id
323
323
  }
324
324
  }
325
- `;e.s(["f",0,()=>{let[e]=(0,t.f)(a);return{removeAssortment:async({assortmentId:s})=>e({variables:{assortmentId:s},refetchQueries:["Assortments","Assortment","ShopStatus","ShopInfo"]})}}])},921,e=>{var s=e.i(59080),t=e.i(76204);let a=s.f`
325
+ `;e.s(["f",0,()=>{let[e]=(0,t.f)(a);return{removeAssortment:async({assortmentId:s})=>e({variables:{assortmentId:s},refetchQueries:["Assortments","Assortment","ShopStatus","ShopInfo"]})}}])},921,e=>{"use strict";var s=e.i(59080),t=e.i(76204);let a=s.f`
326
326
  mutation UpdateAssortment(
327
327
  $assortment: UpdateAssortmentInput!
328
328
  $assortmentId: ID!
@@ -331,7 +331,7 @@
331
331
  _id
332
332
  }
333
333
  }
334
- `;e.s(["f",0,()=>{let[e]=(0,t.f)(a);return{updateAssortment:async({assortmentId:s,assortment:{isRoot:t,tags:a,sequence:r,isActive:i}})=>e({variables:{assortment:{isRoot:t,tags:a,sequence:r,isActive:i},assortmentId:s},refetchQueries:["Assortments","Assortment"]})}}])},98568,e=>{var s=e.i(91398),t=e.i(69322),a=e.i(66773),r=e.i(28401),i=e.i(3828),l=e.i(61494),n=e.i(12197),d=e.i(17644),o=e.i(25705),c=e.i(27927),m=e.i(50243),u=e.i(52745),f=e.i(93259),x=e.i(76929),g=e.i(11056),h=e.i(92276),p=e.i(81359),v=e.i(8199),j=e.i(15971),y=e.i(75818),b=e.i(45856),M=e.i(24941),A=e.i(79001),k=e.i(34981),_=e.i(58101),w=e.i(921),I=e.i(41523),N=e.i(37932),$=e.i(58971),C=e.i(6607),D=e.i(31494),T=e.i(57561);let S=({id:e,selectedView:t,...a})=>"texts"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(b.f,{assortmentId:e})}):"links"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(A.f,{assortmentId:e})}):"media"===t?(0,s.jsx)(v.f,{children:(0,s.jsx)(g.f,{children:(0,s.jsx)(M.f,{assortmentId:e})})}):"products"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(k.f,{assortmentId:e})}):"filters"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(_.f,{assortmentId:e})}):"extended"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(D.f,{data:a})}):(0,s.jsx)(g.f,{children:(0,s.jsx)(b.f,{assortmentId:e})}),L=({assortment:e,extendedData:l,hideControls:n=!1})=>{let{isActive:d,isRoot:g}=e||{},{hasRole:v}=(0,$.f)(),{shopInfo:b}=(0,T.f)(),{formatMessage:M}=(0,t.S)(),{updateAssortment:A}=(0,w.f)(),{removeAssortment:k}=(0,y.f)(),{setModal:_}=(0,C.f)(),D=(0,i.useRouter)(),L=async s=>{s.target.value&&await A({assortmentId:e?._id,assortment:{sequence:parseInt(s.target.value,10)}})},P=[{id:"texts",title:M({id:"texts",defaultMessage:"Texts"}),Icon:(0,s.jsx)(o.f,{className:"h-5 w-5"})},{id:"links",title:M({id:"links",defaultMessage:"Links"}),Icon:(0,s.jsx)(c.f,{className:"h-5 w-5"})},{id:"media",title:M({id:"media",defaultMessage:"Media"}),Icon:(0,s.jsx)(m.f,{className:"h-5 w-5"})},{id:"products",title:M({id:"products",defaultMessage:"Products"}),Icon:(0,s.jsx)(u.f,{className:"h-5 w-5"})},{id:"filters",title:M({id:"filters",defaultMessage:"Filters"}),Icon:(0,s.jsx)(f.f,{className:"h-5 w-5"})},null!==l&&{id:"extended",title:M({id:"extended-fields",defaultMessage:"Extended"}),Icon:(0,s.jsx)(x.f,{className:"h-5 w-5"})}],F=async s=>(await A({assortmentId:e?._id,assortment:{isRoot:s}}),!0),R=async({tags:s})=>(await A({assortmentId:e?._id,assortment:{tags:s}}),!0),K=async s=>(await A({assortmentId:e?._id,assortment:{isActive:s}}),!0),q=[{id:"active",title:M({id:"activate",defaultMessage:"Activate"}),selectedTitle:M({id:"activated",defaultMessage:"Activated"}),description:M({id:"activate_assortment_description",defaultMessage:"Will be visible on search"}),current:d,bgColor:"emerald",onClick:async()=>{await K(!0),r.c.success(M({id:"assortment_activated",defaultMessage:"Assortment activated successfully"}))}},{id:"in-active",title:M({id:"deactivate",defaultMessage:"Deactivate"}),selectedTitle:M({id:"deactivated",defaultMessage:"Deactivated"}),description:M({id:"deactivate_assortment_description",defaultMessage:"Will not be visible on search"}),current:!d,bgColor:"amber",onClick:async()=>{await K(!1),r.c.success(M({id:"assortment_deactivated",defaultMessage:"Assortment deactivated successfully"}))}}],O=[{id:"root",title:M({id:"make_root",defaultMessage:"Make root"}),selectedTitle:M({id:"root",defaultMessage:"Root"}),description:M({id:"root_assortment_description",defaultMessage:"Can not be assigned as a child of another assortment "}),current:g,bgColor:"emerald",onClick:async()=>{await F(!0),r.c.success(M({id:"assortment_changed_to_root",defaultMessage:"Assortment changed to root"}))}},{id:"leaf",selectedTitle:M({id:"leaf",defaultMessage:"Leaf"}),title:M({id:"make_leaf",defaultMessage:"Make leaf"}),description:M({id:"leaf_assortment_description",defaultMessage:"Can be assigned as a child of another assortment "}),current:!g,bgColor:"emerald",onClick:async()=>{await F(!1),r.c.success(M({id:"assortment_changed_to_leaf",defaultMessage:"Assortment changed to leaf"}))}}],U=async()=>{await _((0,s.jsx)(j.f,{onCancelClick:()=>_(""),message:M({id:"delete_assortment_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it and it is nonreversible. Are you sure you want to delete this assortment?"}),onOkClick:async()=>{_(""),await k({assortmentId:e._id}),r.c.success(M({id:"assortment_deleted_success",defaultMessage:"Deleted successfully"})),D.push("/assortments")}}))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap items-center justify-between gap-10",children:[(0,s.jsx)(N.f,{defaultValue:e?.tags,onSubmit:R,enableEdit:v(a.C.ManageAssortments),availableTagOptions:b?.adminUiConfig?.assortmentTags?.filter(s=>!(e?.tags||[])?.includes(s))?.map(e=>({value:e,label:e}))||[]}),!n&&(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap gap-3",children:[(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium leading-5 shadow-sm bg-white dark:bg-slate-800 h-[38px]",children:[(0,s.jsx)("label",{htmlFor:"sequence",className:"text-slate-700 dark:text-slate-200 font-medium",children:M({id:"sequence",defaultMessage:"Display Order"})}),(0,s.jsx)("input",{id:"sequence",type:"number",className:"text-center w-12 bg-transparent border border-slate-300 dark:border-slate-600 rounded focus:ring-0 focus:outline-none text-sm font-semibold text-slate-900 dark:text-slate-300 px-2 py-1",defaultValue:e?.sequence,onBlur:L})]}),(0,s.jsx)(h.f,{options:O,type:M({id:"assortment",defaultMessage:"Assortment"})}),(0,s.jsx)(h.f,{options:q,type:M({id:"assortment",defaultMessage:"Assortment"})}),v(a.C.ManageAssortments)&&(0,s.jsx)(p.f,{onClick:U})]})]}),(0,s.jsx)(I.f,{tabItems:P,defaultTab:"texts",children:(0,s.jsx)(S,{id:e?._id,...l})})]})};var P=e.i(59080),F=e.i(32171),R=e.i(1880),K=e.i(70693),q=e.i(50931),O=e.i(84818),U=e.i(35065);let E=({media:e=[],onEditMedia:t})=>(0,s.jsx)("div",{className:"my-5",children:(0,s.jsx)("div",{className:"flex gap-3 overflow-x-auto",children:e.map(e=>(0,s.jsx)("div",{className:"relative flex-shrink-0 group",children:(0,s.jsx)("div",{className:"w-16 h-16 bg-slate-100 dark:bg-slate-800 rounded-lg overflow-hidden cursor-pointer border border-slate-200 dark:border-slate-700",onClick:()=>{var s;return s=e._id,void(t&&t(s))},children:(0,s.jsx)(U.f,{src:e?.file?.url,alt:e.texts?.[0]?.title||e?.file?.url,width:128,height:128,className:"w-full h-full object-cover"})})},e._id))})});e.s(["default",0,({assortmentSlug:e})=>{let{formatDateTime:o}=(0,O.f)(),{formatMessage:c}=(0,t.S)(),{hasRole:m}=(0,$.f)(),{updateAssortment:u}=(0,w.f)(),{removeAssortment:f}=(0,y.f)(),{setModal:x}=(0,C.f)(),g=(0,i.useRouter)(),{assortment:v,loading:b,extendedData:M}=(({assortmentId:e=null,slug:s=null}={})=>{let t=(0,R.Q)(s),{customProperties:a,hydrateFragment:r}=(0,K.f)(),{selectedLocale:i}=(0,T.f)(),{data:l,loading:n,error:d}=(0,F.f)(((e="")=>P.f`
334
+ `;e.s(["f",0,()=>{let[e]=(0,t.f)(a);return{updateAssortment:async({assortmentId:s,assortment:{isRoot:t,tags:a,sequence:r,isActive:i}})=>e({variables:{assortment:{isRoot:t,tags:a,sequence:r,isActive:i},assortmentId:s},refetchQueries:["Assortments","Assortment"]})}}])},98568,e=>{"use strict";var s=e.i(91398),t=e.i(3326),a=e.i(66773),r=e.i(28401),i=e.i(3828),l=e.i(61494),n=e.i(12197),d=e.i(17644),o=e.i(25705),c=e.i(27927),m=e.i(50243),u=e.i(52745),f=e.i(93259),x=e.i(76929),g=e.i(11056),h=e.i(92276),p=e.i(81359),v=e.i(8199),j=e.i(15971),y=e.i(75818),b=e.i(45856),M=e.i(24941),A=e.i(79001),k=e.i(34981),_=e.i(58101),w=e.i(921),I=e.i(41523),N=e.i(37932),$=e.i(58971),C=e.i(6607),D=e.i(31494),T=e.i(57561);let S=({id:e,selectedView:t,...a})=>"texts"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(b.f,{assortmentId:e})}):"links"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(A.f,{assortmentId:e})}):"media"===t?(0,s.jsx)(v.f,{children:(0,s.jsx)(g.f,{children:(0,s.jsx)(M.f,{assortmentId:e})})}):"products"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(k.f,{assortmentId:e})}):"filters"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(_.f,{assortmentId:e})}):"extended"===t?(0,s.jsx)(g.f,{children:(0,s.jsx)(D.f,{data:a})}):(0,s.jsx)(g.f,{children:(0,s.jsx)(b.f,{assortmentId:e})}),L=({assortment:e,extendedData:l,hideControls:n=!1})=>{let{isActive:d,isRoot:g}=e||{},{hasRole:v}=(0,$.f)(),{shopInfo:b}=(0,T.f)(),{formatMessage:M}=(0,t.S)(),{updateAssortment:A}=(0,w.f)(),{removeAssortment:k}=(0,y.f)(),{setModal:_}=(0,C.f)(),D=(0,i.useRouter)(),L=async s=>{s.target.value&&await A({assortmentId:e?._id,assortment:{sequence:parseInt(s.target.value,10)}})},P=[{id:"texts",title:M({id:"texts",defaultMessage:"Texts"}),Icon:(0,s.jsx)(o.f,{className:"h-5 w-5"})},{id:"links",title:M({id:"links",defaultMessage:"Links"}),Icon:(0,s.jsx)(c.f,{className:"h-5 w-5"})},{id:"media",title:M({id:"media",defaultMessage:"Media"}),Icon:(0,s.jsx)(m.f,{className:"h-5 w-5"})},{id:"products",title:M({id:"products",defaultMessage:"Products"}),Icon:(0,s.jsx)(u.f,{className:"h-5 w-5"})},{id:"filters",title:M({id:"filters",defaultMessage:"Filters"}),Icon:(0,s.jsx)(f.f,{className:"h-5 w-5"})},null!==l&&{id:"extended",title:M({id:"extended-fields",defaultMessage:"Extended"}),Icon:(0,s.jsx)(x.f,{className:"h-5 w-5"})}],F=async s=>(await A({assortmentId:e?._id,assortment:{isRoot:s}}),!0),R=async({tags:s})=>(await A({assortmentId:e?._id,assortment:{tags:s}}),!0),K=async s=>(await A({assortmentId:e?._id,assortment:{isActive:s}}),!0),q=[{id:"active",title:M({id:"activate",defaultMessage:"Activate"}),selectedTitle:M({id:"activated",defaultMessage:"Activated"}),description:M({id:"activate_assortment_description",defaultMessage:"Will be visible on search"}),current:d,bgColor:"emerald",onClick:async()=>{await K(!0),r.c.success(M({id:"assortment_activated",defaultMessage:"Assortment activated successfully"}))}},{id:"in-active",title:M({id:"deactivate",defaultMessage:"Deactivate"}),selectedTitle:M({id:"deactivated",defaultMessage:"Deactivated"}),description:M({id:"deactivate_assortment_description",defaultMessage:"Will not be visible on search"}),current:!d,bgColor:"amber",onClick:async()=>{await K(!1),r.c.success(M({id:"assortment_deactivated",defaultMessage:"Assortment deactivated successfully"}))}}],O=[{id:"root",title:M({id:"make_root",defaultMessage:"Make root"}),selectedTitle:M({id:"root",defaultMessage:"Root"}),description:M({id:"root_assortment_description",defaultMessage:"Can not be assigned as a child of another assortment "}),current:g,bgColor:"emerald",onClick:async()=>{await F(!0),r.c.success(M({id:"assortment_changed_to_root",defaultMessage:"Assortment changed to root"}))}},{id:"leaf",selectedTitle:M({id:"leaf",defaultMessage:"Leaf"}),title:M({id:"make_leaf",defaultMessage:"Make leaf"}),description:M({id:"leaf_assortment_description",defaultMessage:"Can be assigned as a child of another assortment "}),current:!g,bgColor:"emerald",onClick:async()=>{await F(!1),r.c.success(M({id:"assortment_changed_to_leaf",defaultMessage:"Assortment changed to leaf"}))}}],U=async()=>{await _((0,s.jsx)(j.f,{onCancelClick:()=>_(""),message:M({id:"delete_assortment_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it and it is nonreversible. Are you sure you want to delete this assortment?"}),onOkClick:async()=>{_(""),await k({assortmentId:e._id}),r.c.success(M({id:"assortment_deleted_success",defaultMessage:"Deleted successfully"})),D.push("/assortments")}}))};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap items-center justify-between gap-10",children:[(0,s.jsx)(N.f,{defaultValue:e?.tags,onSubmit:R,enableEdit:v(a.C.ManageAssortments),availableTagOptions:b?.adminUiConfig?.assortmentTags?.filter(s=>!(e?.tags||[])?.includes(s))?.map(e=>({value:e,label:e}))||[]}),!n&&(0,s.jsxs)("div",{className:"mt-5 flex flex-wrap gap-3",children:[(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium leading-5 shadow-sm bg-white dark:bg-slate-800 h-[38px]",children:[(0,s.jsx)("label",{htmlFor:"sequence",className:"text-slate-700 dark:text-slate-200 font-medium",children:M({id:"sequence",defaultMessage:"Display Order"})}),(0,s.jsx)("input",{id:"sequence",type:"number",className:"text-center w-12 bg-transparent border border-slate-300 dark:border-slate-600 rounded focus:ring-0 focus:outline-none text-sm font-semibold text-slate-900 dark:text-slate-300 px-2 py-1",defaultValue:e?.sequence,onBlur:L})]}),(0,s.jsx)(h.f,{options:O,type:M({id:"assortment",defaultMessage:"Assortment"})}),(0,s.jsx)(h.f,{options:q,type:M({id:"assortment",defaultMessage:"Assortment"})}),v(a.C.ManageAssortments)&&(0,s.jsx)(p.f,{onClick:U})]})]}),(0,s.jsx)(I.f,{tabItems:P,defaultTab:"texts",children:(0,s.jsx)(S,{id:e?._id,...l})})]})};var P=e.i(59080),F=e.i(32171),R=e.i(1880),K=e.i(70693),q=e.i(50931),O=e.i(84818),U=e.i(35065);let E=({media:e=[],onEditMedia:t})=>(0,s.jsx)("div",{className:"my-5",children:(0,s.jsx)("div",{className:"flex gap-3 overflow-x-auto",children:e.map(e=>(0,s.jsx)("div",{className:"relative flex-shrink-0 group",children:(0,s.jsx)("div",{className:"w-16 h-16 bg-slate-100 dark:bg-slate-800 rounded-lg overflow-hidden cursor-pointer border border-slate-200 dark:border-slate-700",onClick:()=>{var s;return s=e._id,void(t&&t(s))},children:(0,s.jsx)(U.f,{src:e?.file?.url,alt:e.texts?.[0]?.title||e?.file?.url,width:128,height:128,className:"w-full h-full object-cover"})})},e._id))})});e.s(["default",0,({assortmentSlug:e})=>{let{formatDateTime:o}=(0,O.f)(),{formatMessage:c}=(0,t.S)(),{hasRole:m}=(0,$.f)(),{updateAssortment:u}=(0,w.f)(),{removeAssortment:f}=(0,y.f)(),{setModal:x}=(0,C.f)(),g=(0,i.useRouter)(),{assortment:v,loading:b,extendedData:M}=(({assortmentId:e=null,slug:s=null}={})=>{let t=(0,R.Q)(s),{customProperties:a,hydrateFragment:r}=(0,K.f)(),{selectedLocale:i}=(0,T.f)(),{data:l,loading:n,error:d}=(0,F.f)(((e="")=>P.f`
335
335
  query Assortment($assortmentId: ID, $slug: String, $forceLocale: Locale) {
336
336
  assortment(assortmentId: $assortmentId, slug: $slug) {
337
337
  ...AssortmentFragment
@@ -339,4 +339,4 @@
339
339
  }
340
340
  }
341
341
  ${q.f}
342
- `)(a?.Assortment),{skip:!e&&!s,variables:{assortmentId:e||t,forceLocale:i}}),o=l?.assortment,c=r(a?.Assortment,o);return{loading:n,error:d,assortment:o,extendedData:c}})({slug:e}),{isActive:A,isRoot:k}=v||{},_=async e=>{e.target.value&&await u({assortmentId:v?._id,assortment:{sequence:parseInt(e.target.value,10)}})},I=async e=>(await u({assortmentId:v?._id,assortment:{isRoot:e}}),!0),N=async e=>(await u({assortmentId:v?._id,assortment:{isActive:e}}),!0),D=[{id:"active",title:c({id:"activate",defaultMessage:"Activate"}),selectedTitle:c({id:"activated",defaultMessage:"Activated"}),description:c({id:"activate_assortment_description",defaultMessage:"Will be visible on search"}),current:A,disable:!m(a.C.ManageAssortments),bgColor:"emerald",onClick:async()=>{await N(!0),r.c.success(c({id:"assortment_activated",defaultMessage:"Assortment activated successfully"}))}},{id:"in-active",title:c({id:"deactivate",defaultMessage:"Deactivate"}),selectedTitle:c({id:"deactivated",defaultMessage:"Deactivated"}),description:c({id:"deactivate_assortment_description",defaultMessage:"Will not be visible on search"}),current:!A,disable:!m(a.C.ManageAssortments),bgColor:"amber",onClick:async()=>{await N(!1),r.c.success(c({id:"assortment_deactivated",defaultMessage:"Assortment deactivated successfully"}))}}],S=[{id:"root",title:c({id:"make_root",defaultMessage:"Make root"}),selectedTitle:c({id:"root",defaultMessage:"Root"}),description:c({id:"root_assortment_description",defaultMessage:"Can not be assigned as a child of another assortment "}),disable:!m(a.C.ManageAssortments),current:k,bgColor:"stone",onClick:async()=>{await I(!0),r.c.success(c({id:"assortment_changed_to_root",defaultMessage:"Assortment changed to root"}))}},{id:"leaf",selectedTitle:c({id:"leaf",defaultMessage:"Leaf"}),title:c({id:"make_leaf",defaultMessage:"Make leaf"}),disable:!m(a.C.ManageAssortments),description:c({id:"leaf_assortment_description",defaultMessage:"Can be assigned as a child of another assortment "}),current:!k,bgColor:"emerald",onClick:async()=>{await I(!1),r.c.success(c({id:"assortment_changed_to_leaf",defaultMessage:"Assortment changed to leaf"}))}}],U=async()=>{await x((0,s.jsx)(j.f,{onCancelClick:()=>x(""),message:c({id:"delete_assortment_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it and it is nonreversible. Are you sure you want to delete this assortment?"}),onOkClick:async()=>{x(""),await f({assortmentId:v._id}),r.c.success(c({id:"assortment_deleted_success",defaultMessage:"Deleted successfully"})),g.push("/assortments")}}))};return v||b?b?(0,s.jsx)(n.f,{}):(0,s.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,s.jsx)(l.f,{routeName:e,depth:3,currentPageTitle:v?.texts?.title}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"items-center flex-wrap flex gap-5 min-w-full justify-between",children:[(0,s.jsx)(d.f,{headerText:v?.texts?.title||"Untitled Assortment",title:`${v?.texts?.title||"Assortment"} (${v?._id})`}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,s.jsx)(h.f,{options:D,type:c({id:"assortment",defaultMessage:"Assortment"})}),(0,s.jsx)(h.f,{options:S,type:c({id:"assortment",defaultMessage:"Assortment"})}),(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium leading-5 shadow-sm bg-white dark:bg-slate-800 h-[38px]",children:[(0,s.jsx)("label",{htmlFor:"sequence",className:"text-slate-700 dark:text-slate-200 font-medium",children:c({id:"sequence",defaultMessage:"Display Order"})}),(0,s.jsx)("input",{id:"sequence",type:"number",disabled:!m(a.C.ManageAssortments),className:"text-center w-12 bg-transparent border border-slate-300 dark:border-slate-600 rounded focus:ring-0 focus:outline-none text-sm font-semibold text-slate-900 dark:text-slate-300 px-2 py-1",defaultValue:v?.sequence,onBlur:_})]}),m(a.C.ManageAssortments)&&(0,s.jsx)(p.f,{onClick:U})]})]}),(0,s.jsxs)("div",{className:"mt-8 flex flex-wrap gap-3 gap-x-10 text-slate-600 dark:text-slate-400",children:[(0,s.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,s.jsx)("span",{className:"text-xs text-slate-600 dark:text-slate-400",children:"ID:"}),(0,s.jsx)("span",{className:"text-sm font-mono",children:v?._id})]}),v?.created&&(0,s.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,s.jsxs)("span",{className:"text-xs text-slate-600 dark:text-slate-300",children:[c({id:"created",defaultMessage:"Created"}),":"]}),(0,s.jsx)("span",{className:"text-sm font-mono",children:o(v.created,{dateStyle:"medium",timeStyle:"short"})})]}),v?.updated&&(0,s.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,s.jsxs)("span",{className:"text-xs text-slate-600 dark:text-slate-300",children:[c({id:"updated",defaultMessage:"Updated"}),":"]}),(0,s.jsx)("span",{className:"text-sm font-mono",children:o(v.updated,{dateStyle:"medium",timeStyle:"short"})})]})]})]}),(0,s.jsx)(E,{assortmentId:v?._id,media:v?.media||[],onEditMedia:e=>{g.push({pathname:g.pathname,query:{...g.query,tab:"media"}},void 0,{shallow:!0})},canEdit:m(a.C.ManageAssortments)}),(0,s.jsx)(L,{assortment:v,extendedData:M,hideControls:!0})]}):(g.push("/404"),null)}],98568)},93259,e=>{var s=e.i(91788);let t=s.forwardRef(function({title:e,titleId:t,...a},r){return s.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":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M2.628 1.601C5.028 1.206 7.49 1 10 1s4.973.206 7.372.601a.75.75 0 0 1 .628.74v2.288a2.25 2.25 0 0 1-.659 1.59l-4.682 4.683a2.25 2.25 0 0 0-.659 1.59v3.037c0 .684-.31 1.33-.844 1.757l-1.937 1.55A.75.75 0 0 1 8 18.25v-5.757a2.25 2.25 0 0 0-.659-1.591L2.659 6.22A2.25 2.25 0 0 1 2 4.629V2.34a.75.75 0 0 1 .628-.74Z",clipRule:"evenodd"}))});e.s(["f",0,t],93259)}])})();
342
+ `)(a?.Assortment),{skip:!e&&!s,variables:{assortmentId:e||t,forceLocale:i}}),o=l?.assortment,c=r(a?.Assortment,o);return{loading:n,error:d,assortment:o,extendedData:c}})({slug:e}),{isActive:A,isRoot:k}=v||{},_=async e=>{e.target.value&&await u({assortmentId:v?._id,assortment:{sequence:parseInt(e.target.value,10)}})},I=async e=>(await u({assortmentId:v?._id,assortment:{isRoot:e}}),!0),N=async e=>(await u({assortmentId:v?._id,assortment:{isActive:e}}),!0),D=[{id:"active",title:c({id:"activate",defaultMessage:"Activate"}),selectedTitle:c({id:"activated",defaultMessage:"Activated"}),description:c({id:"activate_assortment_description",defaultMessage:"Will be visible on search"}),current:A,disable:!m(a.C.ManageAssortments),bgColor:"emerald",onClick:async()=>{await N(!0),r.c.success(c({id:"assortment_activated",defaultMessage:"Assortment activated successfully"}))}},{id:"in-active",title:c({id:"deactivate",defaultMessage:"Deactivate"}),selectedTitle:c({id:"deactivated",defaultMessage:"Deactivated"}),description:c({id:"deactivate_assortment_description",defaultMessage:"Will not be visible on search"}),current:!A,disable:!m(a.C.ManageAssortments),bgColor:"amber",onClick:async()=>{await N(!1),r.c.success(c({id:"assortment_deactivated",defaultMessage:"Assortment deactivated successfully"}))}}],S=[{id:"root",title:c({id:"make_root",defaultMessage:"Make root"}),selectedTitle:c({id:"root",defaultMessage:"Root"}),description:c({id:"root_assortment_description",defaultMessage:"Can not be assigned as a child of another assortment "}),disable:!m(a.C.ManageAssortments),current:k,bgColor:"stone",onClick:async()=>{await I(!0),r.c.success(c({id:"assortment_changed_to_root",defaultMessage:"Assortment changed to root"}))}},{id:"leaf",selectedTitle:c({id:"leaf",defaultMessage:"Leaf"}),title:c({id:"make_leaf",defaultMessage:"Make leaf"}),disable:!m(a.C.ManageAssortments),description:c({id:"leaf_assortment_description",defaultMessage:"Can be assigned as a child of another assortment "}),current:!k,bgColor:"emerald",onClick:async()=>{await I(!1),r.c.success(c({id:"assortment_changed_to_leaf",defaultMessage:"Assortment changed to leaf"}))}}],U=async()=>{await x((0,s.jsx)(j.f,{onCancelClick:()=>x(""),message:c({id:"delete_assortment_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it and it is nonreversible. Are you sure you want to delete this assortment?"}),onOkClick:async()=>{x(""),await f({assortmentId:v._id}),r.c.success(c({id:"assortment_deleted_success",defaultMessage:"Deleted successfully"})),g.push("/assortments")}}))};return v||b?b?(0,s.jsx)(n.f,{}):(0,s.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,s.jsx)(l.f,{routeName:e,depth:3,currentPageTitle:v?.texts?.title}),(0,s.jsxs)("div",{children:[(0,s.jsxs)("div",{className:"items-center flex-wrap flex gap-5 min-w-full justify-between",children:[(0,s.jsx)(d.f,{headerText:v?.texts?.title||"Untitled Assortment",title:`${v?.texts?.title||"Assortment"} (${v?._id})`}),(0,s.jsxs)("div",{className:"flex flex-wrap gap-3",children:[(0,s.jsx)(h.f,{options:D,type:c({id:"assortment",defaultMessage:"Assortment"})}),(0,s.jsx)(h.f,{options:S,type:c({id:"assortment",defaultMessage:"Assortment"})}),(0,s.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-md px-4 py-2 text-sm font-medium leading-5 shadow-sm bg-white dark:bg-slate-800 h-[38px]",children:[(0,s.jsx)("label",{htmlFor:"sequence",className:"text-slate-700 dark:text-slate-200 font-medium",children:c({id:"sequence",defaultMessage:"Display Order"})}),(0,s.jsx)("input",{id:"sequence",type:"number",disabled:!m(a.C.ManageAssortments),className:"text-center w-12 bg-transparent border border-slate-300 dark:border-slate-600 rounded focus:ring-0 focus:outline-none text-sm font-semibold text-slate-900 dark:text-slate-300 px-2 py-1",defaultValue:v?.sequence,onBlur:_})]}),m(a.C.ManageAssortments)&&(0,s.jsx)(p.f,{onClick:U})]})]}),(0,s.jsxs)("div",{className:"mt-8 flex flex-wrap gap-3 gap-x-10 text-slate-600 dark:text-slate-400",children:[(0,s.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,s.jsx)("span",{className:"text-xs text-slate-600 dark:text-slate-400",children:"ID:"}),(0,s.jsx)("span",{className:"text-sm font-mono",children:v?._id})]}),v?.created&&(0,s.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,s.jsxs)("span",{className:"text-xs text-slate-600 dark:text-slate-300",children:[c({id:"created",defaultMessage:"Created"}),":"]}),(0,s.jsx)("span",{className:"text-sm font-mono",children:o(v.created,{dateStyle:"medium",timeStyle:"short"})})]}),v?.updated&&(0,s.jsxs)("div",{className:"flex items-baseline gap-2",children:[(0,s.jsxs)("span",{className:"text-xs text-slate-600 dark:text-slate-300",children:[c({id:"updated",defaultMessage:"Updated"}),":"]}),(0,s.jsx)("span",{className:"text-sm font-mono",children:o(v.updated,{dateStyle:"medium",timeStyle:"short"})})]})]})]}),(0,s.jsx)(E,{assortmentId:v?._id,media:v?.media||[],onEditMedia:e=>{g.push({pathname:g.pathname,query:{...g.query,tab:"media"}},void 0,{shallow:!0})},canEdit:m(a.C.ManageAssortments)}),(0,s.jsx)(L,{assortment:v,extendedData:M,hideControls:!0})]}):(g.push("/404"),null)}],98568)},93259,e=>{"use strict";var s=e.i(91788);let t=s.forwardRef(function({title:e,titleId:t,...a},r){return s.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":t},a),e?s.createElement("title",{id:t},e):null,s.createElement("path",{fillRule:"evenodd",d:"M2.628 1.601C5.028 1.206 7.49 1 10 1s4.973.206 7.372.601a.75.75 0 0 1 .628.74v2.288a2.25 2.25 0 0 1-.659 1.59l-4.682 4.683a2.25 2.25 0 0 0-.659 1.59v3.037c0 .684-.31 1.33-.844 1.757l-1.937 1.55A.75.75 0 0 1 8 18.25v-5.757a2.25 2.25 0 0 0-.659-1.591L2.659 6.22A2.25 2.25 0 0 1 2 4.629V2.34a.75.75 0 0 1 .628-.74Z",clipRule:"evenodd"}))});e.s(["f",0,t],93259)}]);
@@ -0,0 +1,7 @@
1
+ __turbopack_load_page_chunks__("/enrollments", [
2
+ "static/chunks/3u6_-nj6i_l_r.js",
3
+ "static/chunks/0buyef0vid-ym.js",
4
+ "static/chunks/36mjt8cgckx2r.js",
5
+ "static/chunks/3hxp-xwv4g3ek.js",
6
+ "static/chunks/turbopack-077hmtqrhcoji.js"
7
+ ])
@@ -0,0 +1,119 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,31494,e=>{"use strict";var t=e.i(91398),l=e.i(3326),s=e.i(84818),a=e.i(35065),i=e.i(64591);let r=({value:e})=>{let{formatDateTime:r}=(0,s.f)(),{formatMessage:n}=(0,l.S)();return(e=>{try{return new URL(e)}catch{return!1}})(e)?(e=>{try{let{pathname:t}=new URL(e),l=t?.split("."),s=`.${l[l.length-1]}`;return[".jpg",".jpeg",".png",".gif",".bmp"].includes(s)}catch{return!1}})(e)?(0,t.jsx)("div",{className:"ring-2 ring-offset-2 ring-slate-900 group block w-full aspect-w-10 aspect-h-7 rounded-lg bg-slate-50 overflow-hidden",children:(0,t.jsx)(a.f,{src:e,className:"relative h-10 w-10 rounded-full",width:100,height:100,alt:n({id:"image_not_available",defaultMessage:"Image not available"})})}):(0,t.jsx)("div",{className:"ml-4 shrink-0",children:(0,t.jsxs)("a",{href:e,className:"font-medium text-slate-900 hover:text-slate-800",target:"_blank",rel:"noreferrer",children:[new URL(e).host,"...",new URL(e).pathname]})}):(e=>{try{return"boolean"==typeof JSON.parse(e)}catch{return!1}})(e)?(0,t.jsx)(i.f,{disabled:!0,active:JSON.parse(e)}):!Number.isNaN(Date.parse(e))&&Number.isNaN(Number(e))?r(e,{dateStyle:"long",timeStyle:"short"}):(!Number.isNaN(e),e)},n=({value:e})=>(0,t.jsx)("h3",{className:"text-base font-medium",children:(0,t.jsx)("span",{className:"text-slate-900",children:e})}),d=e=>{let{data:l,parentKey:s}=e;if(!l)return null;let a=Object.keys(l),i=[];return void 0!==s&&i.push((0,t.jsx)(n,{value:s},s)),a.forEach(e=>{let a=l[e];if(Array.isArray(a))if(i.push((0,t.jsx)(n,{value:e},e)),a.every(e=>"string"==typeof e||"number"==typeof e))i.push((0,t.jsx)("div",{className:" p-2",children:a?.map(e=>(0,t.jsx)("span",{className:"inline-flex items-center rounded-md bg-slate-50 px-2.5 py-0.5 text-sm font-medium text-slate-800 ml-2",children:(0,t.jsx)(r,{value:e})},e))},e));else{let l=[];a.forEach((e,s)=>{l.push((0,t.jsx)("li",{className:"flex items-center text-slate-600 justify-between py-3 pl-3 pr-4 text-sm",children:d({data:e,parentKey:s})},s))}),i.push((0,t.jsx)("ul",{className:"divide-y divide-slate-200 rounded-md ",children:l},e))}else"object"==typeof a?i.push(d({data:a,parentKey:e})):void 0===s?i.push((0,t.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5",children:[(0,t.jsx)("dt",{className:"text-sm font-medium text-slate-700",children:(0,t.jsx)(n,{value:e},e)}),(0,t.jsx)("dd",{className:"mt-1 text-sm text-slate-900 sm:col-span-2 sm:mt-0",children:(0,t.jsx)(r,{value:a})})]},e)):i.push((0,t.jsxs)("div",{className:"py-4 sm:grid sm:grid-cols-3 sm:gap-4 sm:py-5 sm:px-6",children:[(0,t.jsx)("dt",{className:"text-sm font-medium text-slate-700",children:(0,t.jsx)(n,{value:e},e)}),(0,t.jsx)("dd",{className:"mt-1 text-sm text-slate-900 sm:col-span-2 sm:mt-0",children:(0,t.jsx)(r,{value:a})})]},e))}),(0,t.jsx)("div",{className:" bg-white px-4 py-5 ",children:(0,t.jsx)("dl",{children:i})})};e.s(["f",0,d])},11056,e=>{"use strict";var t=e.i(91398),l=e.i(91788),s=e.i(5505),a=e.i(57561);e.s(["f",0,({children:e,onlyFull:i=!1})=>{let{languageDialectList:r,selectedLocale:n,setSelectedLocale:d}=(0,a.f)(),o=(0,l.useContext)(s.W),c=r.filter(e=>!i||e.isoCode.includes("-"));return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:`w-fit mt-5 mb-3 ${o?"ml-5":""}`,children:(0,t.jsx)("select",{id:"locale-wrapper",className:"cursor-pointer rounded-md border-1 border-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(),d(e.target.value)},children:c?.map(e=>(0,t.jsx)("option",{value:e.isoCode,children:e.isoCode},e._id))})}),(0,t.jsx)("div",{children:l.default.cloneElement(e)})]})}])},16371,e=>{"use strict";var t=e.i(91788),l=e.i(30943);e.s(["f",0,({children:e,container:s=null,className:a=""})=>{let i=(0,t.useRef)(null),[r,n]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");a&&(e.className=a),i.current=e;let t=s||document.body;return t.appendChild(e),n(!0),()=>{i.current&&t.contains(i.current)&&t.removeChild(i.current)}},[s,a]),r&&i.current)?(0,l.createPortal)(e,i.current):null}])},60195,e=>{"use strict";var t=e.i(91398),l=e.i(72043);e.s(["f",0,({documentationLabel:e,documentation:s=null,mainContent:a=null,sideComponents:i=null,className:r=null,children:n})=>(0,t.jsx)(t.Fragment,{children:(0,t.jsxs)("div",{className:(0,l.default)("mt-5 lg:grid lg:grid-cols-3 lg:gap-6",r),children:[(0,t.jsx)("div",{className:"lg:col-span-1 mt-10 lg:mt-1",children:(0,t.jsxs)("div",{className:"px-4 sm:px-0",children:[(0,t.jsx)("h3",{className:"text-lg text-slate-900 dark:text-slate-200",children:e}),(0,t.jsx)("div",{className:"mt-1 text-sm text-slate-600 dark:text-slate-500",children:s}),i]})}),(0,t.jsx)("div",{className:"lg:col-span-2 lg:mt-0",children:n||a})]})})])},41523,e=>{"use strict";var t=e.i(91398),l=e.i(72043),s=e.i(3828),a=e.i(91788),i=e.i(3326);e.s(["f",0,({children:e,tabItems:r,defaultTab:n,updateRoute:d=!0})=>{let o=(0,s.useRouter)(),{tab:c=n}=o?.query||{},u=Array.isArray(c)?c[0]:c,{formatMessage:f}=(0,i.S)(),m=e=>{if(d){let{sort:t,...l}=o?.query||{};o.push({query:{...l,tab:e}},void 0,{shallow:!0})}};return(0,t.jsxs)("div",{className:"mt-10",children:[(0,t.jsxs)("div",{className:"lg:hidden",children:[(0,t.jsx)("label",{htmlFor:"selected-tab",className:"sr-only",children:f({id:"select_tab",defaultMessage:"Select a tab"})}),(0,t.jsx)("select",{onChange:e=>m(e.target.value),id:"selected-tab",name:"selected-tab",className:"mt-1 block dark:bg-slate-800 dark:text-white w-full rounded-md border-slate-300 dark:border-slate-600 py-2 pl-3 pr-10 text-base capitalize focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:border-slate-800 dark:focus:border-slate-400 sm:text-sm",value:u,children:r.filter(Boolean).map(e=>(0,t.jsx)("option",{value:e.id,className:"dark:text-white",children:e?.title||e?.id},e.id))})]}),(0,t.jsx)("div",{className:"mt-5 hidden lg:block",children:(0,t.jsx)("div",{className:"",children:(0,t.jsx)("nav",{className:"flex flex-wrap gap-3",children:r.filter(Boolean).map(e=>(0,t.jsx)("a",{id:e.id,tabIndex:0,onClick:()=>m(e.id),onKeyDown:t=>{("Enter"===t.key||" "===t.key)&&(t.preventDefault(),m(e.id))},className:(0,l.default)({"cursor-pointer rounded-lg border border-slate-300 dark:border-slate-600 bg-white text-slate-900 dark:text-slate-100 dark:bg-slate-900 shadow-sm dark:hover:border-slate-500 hover:border-slate-400 focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2 dark:focus:ring-offset-slate-900":u===e.id},"cursor-pointer relative whitespace-nowrap border border-slate-200 dark:border-slate-800 py-2 px-1 pr-3 pl-2 text-sm dark:text-slate-400 font-medium hover:bg-white dark:hover:bg-slate-800 hover:border-slate-300 dark:hover:border-slate-500 rounded-lg focus:outline-none focus:ring-2 focus:ring-slate-800 dark:focus:ring-slate-400 focus:ring-offset-2 dark:focus:ring-offset-slate-900"),children:(0,t.jsxs)("div",{className:"flex items-center space-x-1",children:[(0,t.jsx)("div",{children:e.Icon}),(0,t.jsx)("div",{className:"capitalize",children:e?.title||e?.id}),e?.length?(0,t.jsx)("span",{className:"absolute top-0 right-0 inline-flex translate-x-1/2 -translate-y-1/2 transform items-center justify-center rounded-full bg-slate-400 px-1 py-0.5 text-sm leading-none text-slate-900",children:e?.length}):null]})},e.id))})})}),(0,t.jsx)("div",{className:"mt-5",children:a.default.cloneElement(e,{selectedView:u})})]})}])},3095,e=>{"use strict";var t=e.i(91398),l=e.i(91788),s=e.i(3326),a=e.i(86712),i=e.i(76842),r=e.i(24557),n=e.i(16371);e.s(["f",0,({onEdit:e,onDelete:d,editLabel:o,deleteLabel:c,showEdit:u=!0,showDelete:f=!0})=>{let{formatMessage:m}=(0,s.S)(),[x,h]=(0,l.useState)(!1),[p,g]=(0,l.useState)({top:0,left:0}),v=(0,l.useRef)(null),b=(0,l.useRef)(null);(0,l.useEffect)(()=>{let e=e=>{v.current&&!v.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let j=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),h(!1)};return 0===[u&&e,f&&d].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:b,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),x||(()=>{if(!b.current)return;let e=b.current.getBoundingClientRect(),t=e.bottom+4,l=e.right-192;l<8&&(l=8),t+80>window.innerHeight-8&&(t=e.top-80-4),g({top:t,left:l})})(),h(!x)},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":m({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,t.jsx)(a.f,{className:"w-5 h-5 text-slate-500 dark:text-slate-400"})}),x&&(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:p.top,left:p.left},children:(0,t.jsxs)("div",{className:"py-1",children:[u&&e&&(0,t.jsxs)("button",{type:"button",onClick:t=>j(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)(i.f,{className:"mr-3 h-5 w-5"}),o||m({id:"edit",defaultMessage:"Edit"})]}),f&&d&&(0,t.jsxs)("button",{type:"button",onClick:e=>j(e,d),className:"flex items-center w-full px-4 py-2 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/20 transition-colors",children:[(0,t.jsx)(r.f,{className:"mr-3 h-5 w-5"}),c||m({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},19759,78495,e=>{"use strict";var t=e.i(91398),l=e.i(3326),s=e.i(25705),a=e.i(27572),i=e.i(76929),r=e.i(28401),n=e.i(92276),d=e.i(41523),o=e.i(91788),c=e.i(66773),u=e.i(69211),f=e.i(99160),m=e.i(45229),x=e.i(98949),h=e.i(59080),p=e.i(76204);let g=h.f`
2
+ fragment FilterTextsFragment on FilterTexts {
3
+ _id
4
+ locale
5
+ title
6
+ subtitle
7
+ }
8
+ `,v=h.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
+ ${g}
23
+ `,b=()=>{let[e]=(0,p.f)(v);return{updateFilterTexts:async({filterId:t,filterOptionValue:l,texts:s})=>e({variables:{filterOptionValue:l,filterId:t,texts:s},refetchQueries:["TranslatedFilterTexts","FilterOptions"]})}};var j=e.i(32171);let w=h.f`
24
+ query TranslatedFilterTexts($filterId: ID!, $filterOptionValue: String) {
25
+ translatedFilterTexts(
26
+ filterId: $filterId
27
+ filterOptionValue: $filterOptionValue
28
+ ) {
29
+ ...FilterTextsFragment
30
+ }
31
+ }
32
+ ${g}
33
+ `;var y=e.i(60195),k=e.i(58971),N=e.i(5505),F=e.i(57561);let M=({filterId:e})=>{let{formatMessage:s}=(0,l.S)(),{selectedLocale:a}=(0,F.f)(),{translatedFilterTexts:i,loading:r}=(({filterId:e=null,filterOptionValue:t=null})=>{let{data:l,loading:s,error:a}=(0,j.f)(w,{variables:{filterId:e,filterOptionValue:t}});return{translatedFilterTexts:l?.translatedFilterTexts||[],loading:s,error:a}})({filterId:e}),{hasRole:n}=(0,k.f)(),d=s({id:"saved",defaultMessage:"Saved"}),{updateFilterTexts:h}=b(),p=async({title:t,subtitle:l})=>(await h({filterId:e,texts:[{locale:a,title:t,subtitle:l}]}),{success:!0}),g=(0,x.f)({submit:p,successMessage:d,initialValues:{title:"",subtitle:"",...!r&&i?.find(e=>e.locale===a)||{}}});return(0,o.useEffect)(()=>{let e=i?.find(e=>e.locale===a);g.formik.setValues({title:"",subtitle:"",...e||{}})},[i,a]),(0,t.jsx)(y.f,{documentationLabel:s({id:"text",defaultMessage:"Text"}),documentation:(0,t.jsx)(l.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)(N.U,{children:(0,t.jsxs)(u.f,{form:g,className:"border-slate-300 dark:border-slate-800 pt-2 lg:shadow-sm",children:[(0,t.jsx)("div",{children:(0,t.jsx)(m.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)(m.f,{name:"subtitle",id:"subtitle",label:s({id:"subtitle",defaultMessage:"Subtitle"}),autoComplete:"on",className:"mt-5 px-4 text-sm"})}),n(c.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 _=e.i(6607);let C=h.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
+ `,I=h.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
+ `,$=h.f`
55
+ query FilterOptions($filterId: ID, $forceLocale: Locale) {
56
+ filter(filterId: $filterId) {
57
+ _id
58
+ options {
59
+ ...FilterOptionFragment
60
+ }
61
+ }
62
+ }
63
+ ${I}
64
+ `,O=({onCancel:e,onSubmit:s})=>{let{formatMessage:a}=(0,l.S)(),{hasRole:i}=(0,k.f)(),r=a({id:"filter_option_added_success",defaultMessage:"Filter option added successfully"}),n=(0,x.f)({submit:s,successMessage:r,initialValues:{title:"",value:""}});return(0,t.jsxs)(u.f,{form:n,children:[(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(m.f,{name:"value",label:a({id:"filter_option_value",defaultMessage:"Value"}),required:!0}),(0,t.jsx)(m.f,{name:"title",label:a({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:a({id:"cancel",defaultMessage:"Cancel"})}),(0,t.jsx)("span",{className:"flex items-center",children:(0,t.jsx)(f.f,{className:"m-auto w-full",label:a({id:"add_filter_option",defaultMessage:"Add option"})})})]})]})},E=h.f`
65
+ mutation RemoveFilterOption($filterId: ID!, $filterOptionValue: String!) {
66
+ removeFilterOption(
67
+ filterId: $filterId
68
+ filterOptionValue: $filterOptionValue
69
+ ) {
70
+ _id
71
+ }
72
+ }
73
+ `;var S=e.i(15971),T=e.i(65153),A=e.i(3095),R=e.i(81013);let V=({filterId:e,option:s,onDelete:a})=>{let{formatMessage:i}=(0,l.S)(),[r,n]=(0,o.useState)(!1),{selectedLocale:d}=(0,F.f)(),c=i({id:"saved",defaultMessage:"Saved"}),{updateFilterTexts:f}=b(),h=async({title:t,value:l,subtitle:s})=>(await f({filterId:e,filterOptionValue:l,texts:[{locale:d,title:t,subtitle:s}]}),n(!1),{success:!0}),p=(0,x.f)({submit:h,successMessage:c,initialValues:{title:"",subtitle:"",...s,...s?.texts}});return(0,t.jsx)(u.f,{form:p,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:r?(0,t.jsx)(m.f,{name:"title",required:!0,label:i({id:"title",defaultMessage:"Title"})}):s?.texts?.title}),(0,t.jsx)("div",{className:"truncate text-sm text-slate-500 dark:text-slate-200",children:r?(0,t.jsx)(m.f,{name:"subtitle",label:i({id:"subtitle",defaultMessage:"Subtitle"})}):s?.texts?.subtitle&&s?.texts?.subtitle})]})]}),(0,t.jsx)("div",{children:r?(0,t.jsxs)("div",{className:"flex gap-2",children:[(0,t.jsx)(R.f,{variant:"secondary",onClick:()=>n(!r),text:i({id:"cancel",defaultMessage:"Cancel"})}),(0,t.jsx)(R.f,{variant:"primary",disabled:!p.formik.isValid,onClick:p.formik.handleSubmit,text:i({id:"save",defaultMessage:"Save"})})]}):(0,t.jsx)(A.f,{onEdit:()=>{n(!r)},onDelete:()=>{a(s?.value)},showEdit:!0,showDelete:!0})})]})})})})},D=({filterId:e,options:s})=>{let{formatMessage:a}=(0,l.S)(),{setModal:i}=(0,_.f)(),{selectedLocale:n}=(0,F.f)(),{removeFilterOption:d}=(()=>{let[e]=(0,p.f)(E);return{removeFilterOption:async({filterId:t,filterOptionValue:l})=>e({variables:{filterOptionValue:l,filterId:t},refetchQueries:["FilterOptions"]})}})(),o=async l=>{await i((0,t.jsx)(S.f,{onCancelClick:async()=>i(""),message:a({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()=>{i(""),await d({filterId:e,filterOptionValue:l}),r.c.success(a({id:"filter_deleted",defaultMessage:"Filter deleted successfully"}))},okText:a({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(l=>(0,t.jsx)(V,{filterId:e,option:l,onDelete:o},`${l._id}${n}`))})})},L=({filterId:e})=>{let{formatMessage:s}=(0,l.S)(),{selectedLocale:a}=(0,F.f)(),{filterOptions:i}=(({filterId:e=null,locale:t}={})=>{let{data:l,loading:s,error:a}=(0,j.f)($,{skip:!e,variables:{filterId:e,forceLocale:t}});return{filterOptions:l?.filter?.options||[],loading:s,error:a}})({filterId:e,locale:a}),{setModal:r}=(0,_.f)(),{createFilterOption:n}=(()=>{let[e]=(0,p.f)(C);return{createFilterOption:async({filterId:t,option:l,texts:s})=>e({variables:{filterId:t,option:l,texts:s},refetchQueries:["FilterOptions"]})}})(),{hasRole:d}=(0,k.f)(),o=async({value:t,title:l,subtitle:s})=>(await n({filterId:e,option:t,texts:[{title:l,locale:a,subtitle:s}]}),r(""),{success:!0});return(0,t.jsx)(y.f,{documentationLabel:s({id:"filer_options",defaultMessage:"Filter options"}),sideComponents:d(c.C.ManageFilters)?(0,t.jsx)("button",{type:"button",onClick:()=>r((0,t.jsx)(O,{onSubmit:o,onCancel:()=>r("")})),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)(D,{filterId:e,options:i})})})},B=({filterKey:e,filterType:s})=>{let{formatMessage:a}=(0,l.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:a({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:a({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 Z=e.i(80294);let U=h.f`
74
+ mutation UpdateFilter($filter: UpdateFilterInput!, $filterId: ID!) {
75
+ updateFilter(filter: $filter, filterId: $filterId) {
76
+ ...FilterFragment
77
+ }
78
+ }
79
+ ${Z.f}
80
+ `;var q=e.i(31494),K=e.i(11056);let P=({selectedView:e,id:l,...s})=>"text"===e?(0,t.jsx)(K.f,{children:(0,t.jsx)(M,{filterId:l})}):"options"===e?(0,t.jsx)(K.f,{children:(0,t.jsx)(L,{filterId:l})}):"extended"===e?(0,t.jsx)(q.f,{data:s}):(0,t.jsx)(K.f,{children:(0,t.jsx)(M,{filterId:l})});e.s(["f",0,({filter:e,extendedData:o})=>{let{_id:c,isActive:u,key:f,type:m,created:x,updated:h}=e||{},{formatMessage:g,formatDate:v}=(0,l.S)(),{updateFilter:b}=(()=>{let[e]=(0,p.f)(U);return{updateFilter:async({filterId:t,filter:l})=>e({variables:{filter:l,filterId:t}})}})(),j=[{id:"text",title:g({id:"text",defaultMessage:"Text"}),Icon:(0,t.jsx)(s.f,{className:"h-5 w-5"})},{id:"options",title:g({id:"options",defaultMessage:"Options"}),Icon:(0,t.jsx)(a.f,{className:"h-5 w-5"})},null!==o&&{id:"extended",title:g({id:"extended-fields",defaultMessage:"Extended"}),Icon:(0,t.jsx)(i.f,{className:"h-5 w-5"})}].filter(Boolean),w=[{id:"activate",title:g({id:"activate",defaultMessage:"Activate"}),selectedTitle:g({id:"active",defaultMessage:"Active"}),onClick:async()=>{await b({filterId:c,filter:{isActive:!0}}),r.c.success(g({id:"filter_activated",defaultMessage:"Filter activated!",description:"shown on successful toggle of filter status"}))},current:u,bgColor:"green"},{id:"deactivate",title:g({id:"deactivate",defaultMessage:"Deactivate"}),onClick:async()=>{await b({filterId:c,filter:{isActive:!1}}),r.c.success(g({id:"filter_deactivated",defaultMessage:"Filter deactivated!",description:"shown on successful toggle of filter status"}))},selectedTitle:g({id:"deactivated",defaultMessage:"Deactivated"}),current:!u,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)(B,{filterKey:f,filterType:m})}),(0,t.jsx)("div",{className:"self-end",children:(0,t.jsx)(n.f,{options:w,type:g({id:"filter",defaultMessage:"Filter"})})})]}),(0,t.jsx)(d.f,{tabItems:j,defaultTab:"text",children:(0,t.jsx)(P,{id:e?._id,...o})})]})}],19759);var W=e.i(70693);e.s(["f",0,({filterId:e=null}={})=>{let{customProperties:t,hydrateFragment:l}=(0,W.f)(),{data:s,loading:a,error:i}=(0,j.f)(((e="")=>h.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
+ ${Z.f}
94
+ `)(t?.Filter),{skip:!e,variables:{filterId:e}}),r=s?.filter,n=l(t?.Filter,r);return{filter:r,loading:a,error:i,extendedData:n}}],78495)},80294,e=>{"use strict";var t=e.i(59080);let l=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,l])},50259,e=>{"use strict";var t=e.i(59080),l=e.i(76204);let s=t.f`
114
+ mutation RemoveFilter($filterId: ID!) {
115
+ removeFilter(filterId: $filterId) {
116
+ _id
117
+ }
118
+ }
119
+ `;e.s(["f",0,()=>{let[e]=(0,l.f)(s);return{removeFilter:async({filterId:t})=>e({variables:{filterId:t},refetchQueries:["Filters"]})}}])},89142,e=>{"use strict";var t=e.i(91398),l=e.i(3828),s=e.i(66773),a=e.i(3326),i=e.i(28401),r=e.i(58971),n=e.i(61494),d=e.i(81359),o=e.i(12197),c=e.i(17644),u=e.i(19759),f=e.i(78495),m=e.i(50259),x=e.i(15971),h=e.i(6607);e.s(["default",0,({filterId:e})=>{let{formatMessage:p}=(0,a.S)(),{setModal:g}=(0,h.f)(),v=(0,l.useRouter)(),{filter:b,loading:j,extendedData:w}=(0,f.f)({filterId:e}),{hasRole:y}=(0,r.f)(),{removeFilter:k}=(0,m.f)(),N=async()=>{await g((0,t.jsx)(x.f,{onCancelClick:async()=>g(""),message:p({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()=>{g(""),await k({filterId:e}),i.c.success(p({id:"filter_deleted",defaultMessage:"Filter deleted successfully"})),v.push("/filters")},okText:p({id:"delete_filter",defaultMessage:"Delete filter"})}))};return b||j?j?(0,t.jsx)(o.f,{}):(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(n.f,{currentPageTitle:b?.key}),(0,t.jsxs)("div",{className:"items-center flex min-w-full justify-between gap-3 flex-wrap",children:[(0,t.jsx)(c.f,{headerText:p({id:"filter_detail",defaultMessage:"Filter Detail"}),title:p({id:"filter_detail_title",defaultMessage:"Filter {id}"},{id:b?._id})}),y(s.C.ManageFilters)&&(0,t.jsx)(d.f,{onClick:N})]}),(0,t.jsx)(u.f,{filter:b,extendedData:w})]}):(v.push("/404"),null)}])},27572,e=>{"use strict";var t=e.i(91788);let l=t.forwardRef(function({title:e,titleId:l,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":l},s),e?t.createElement("title",{id:l},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,l],27572)},76842,e=>{"use strict";var t=e.i(91788);let l=t.forwardRef(function({title:e,titleId:l,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":l},s),e?t.createElement("title",{id:l},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,l],76842)},76929,e=>{"use strict";var t=e.i(91788);let l=t.forwardRef(function({title:e,titleId:l,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":l},s),e?t.createElement("title",{id:l},e):null,t.createElement("path",{d:"M12 4.467c0-.405.262-.75.559-1.027.276-.257.441-.584.441-.94 0-.828-.895-1.5-2-1.5s-2 .672-2 1.5c0 .362.171.694.456.953.29.265.544.6.544.994a.968.968 0 0 1-1.024.974 39.655 39.655 0 0 1-3.014-.306.75.75 0 0 0-.847.847c.14.993.242 1.999.306 3.014A.968.968 0 0 1 4.447 10c-.393 0-.729-.253-.994-.544C3.194 9.17 2.862 9 2.5 9 1.672 9 1 9.895 1 11s.672 2 1.5 2c.356 0 .683-.165.94-.441.276-.297.622-.559 1.027-.559a.997.997 0 0 1 1.004 1.03 39.747 39.747 0 0 1-.319 3.734.75.75 0 0 0 .64.842c1.05.146 2.111.252 3.184.318A.97.97 0 0 0 10 16.948c0-.394-.254-.73-.545-.995C9.171 15.693 9 15.362 9 15c0-.828.895-1.5 2-1.5s2 .672 2 1.5c0 .356-.165.683-.441.94-.297.276-.559.622-.559 1.027a.998.998 0 0 0 1.03 1.005c1.337-.05 2.659-.162 3.961-.337a.75.75 0 0 0 .644-.644c.175-1.302.288-2.624.337-3.961A.998.998 0 0 0 16.967 12c-.405 0-.75.262-1.027.559-.257.276-.584.441-.94.441-.828 0-1.5-.895-1.5-2s.672-2 1.5-2c.362 0 .694.17.953.455.265.291.601.545.995.545a.97.97 0 0 0 .976-1.024 41.159 41.159 0 0 0-.318-3.184.75.75 0 0 0-.842-.64c-1.228.164-2.473.271-3.734.319A.997.997 0 0 1 12 4.467Z"}))});e.s(["f",0,l],76929)},24557,e=>{"use strict";var t=e.i(91788);let l=t.forwardRef(function({title:e,titleId:l,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":l},s),e?t.createElement("title",{id:l},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,l],24557)},38322,e=>{"use strict";var t=e.i(91788);let l=t.forwardRef(function({title:e,titleId:l,...s},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":l},s),e?t.createElement("title",{id:l},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m4.5 12.75 6 6 9-13.5"}))});e.s(["f",0,l],38322)},38187,e=>{"use strict";var t=e.i(91788);let l=t.forwardRef(function({title:e,titleId:l,...s},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":l},s),e?t.createElement("title",{id:l},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,l],38187)},86712,e=>{"use strict";var t=e.i(91788);let l=t.forwardRef(function({title:e,titleId:l,...s},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":l},s),e?t.createElement("title",{id:l},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,l],86712)},40238,(e,t,l)=>{"use strict";var s=e.r(91788),a="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},i=s.useSyncExternalStore,r=s.useRef,n=s.useEffect,d=s.useMemo,o=s.useDebugValue;l.useSyncExternalStoreWithSelector=function(e,t,l,s,c){var u=r(null);if(null===u.current){var f={hasValue:!1,value:null};u.current=f}else f=u.current;var m=i(e,(u=d(function(){function e(e){if(!n){if(n=!0,i=e,e=s(e),void 0!==c&&f.hasValue){var t=f.value;if(c(t,e))return r=t}return r=e}if(t=r,a(i,e))return t;var l=s(e);return void 0!==c&&c(t,l)?(i=e,t):(i=e,r=l)}var i,r,n=!1,d=void 0===l?null:l;return[function(){return e(t())},null===d?void 0:function(){return e(d())}]},[t,l,s,c]))[0],u[1]);return n(function(){f.hasValue=!0,f.value=m},[m]),o(m),m}},19979,(e,t,l)=>{"use strict";e.i(50461),t.exports=e.r(40238)}]);
@@ -0,0 +1,6 @@
1
+ __turbopack_load_page_chunks__("/enrollments/EnrollmentDetailPage", [
2
+ "static/chunks/2l8gepfm4kyjp.js",
3
+ "static/chunks/1cs-w7vppvm8o.js",
4
+ "static/chunks/1uzvaujlk79rn.js",
5
+ "static/chunks/turbopack-077hmtqrhcoji.js"
6
+ ])
@@ -0,0 +1,14 @@
1
+ __turbopack_load_page_chunks__("/products", [
2
+ "static/chunks/0dzn-wes7gjdt.js",
3
+ "static/chunks/3u6_-nj6i_l_r.js",
4
+ "static/chunks/0l1xycyhdztmy.js",
5
+ "static/chunks/36mjt8cgckx2r.js",
6
+ "static/chunks/1ewn0p_wru2ra.js",
7
+ "static/chunks/1t5wlk2j9d4ss.js",
8
+ "static/chunks/14pnkf7som1m1.js",
9
+ "static/chunks/3hxp-xwv4g3ek.js",
10
+ "static/chunks/2w_0wk23uirx6.js",
11
+ "static/chunks/11vnr4kb9qkjr.js",
12
+ "static/chunks/3ciuktttw5i71.js",
13
+ "static/chunks/turbopack-077hmtqrhcoji.js"
14
+ ])
@@ -0,0 +1,12 @@
1
+ __turbopack_load_page_chunks__("/users/UserDetailPage", [
2
+ "static/chunks/30lpu8mp25ag1.js",
3
+ "static/chunks/0gow2wyosbjb6.js",
4
+ "static/chunks/01n5rd9ngv-t4.js",
5
+ "static/chunks/27h86ht8kvqop.js",
6
+ "static/chunks/14pnkf7som1m1.js",
7
+ "static/chunks/3hxp-xwv4g3ek.js",
8
+ "static/chunks/0ub1l2hrjkz2-.js",
9
+ "static/chunks/11vnr4kb9qkjr.js",
10
+ "static/chunks/0e4nzgbtw6x_d.js",
11
+ "static/chunks/turbopack-077hmtqrhcoji.js"
12
+ ])
@@ -0,0 +1,32 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,74954,e=>{"use strict";var t=e.i(91398),r=e.i(91788);e.s(["f",0,({value:e,duration:s=300})=>{let[a,l]=(0,r.useState)(0);return(0,r.useEffect)(()=>{let t,r;if(0===e)return void l(0);let a=n=>{t||(t=n);let o=Math.min((n-t)/s,1);l(Math.round((1-Math.pow(1-o,3))*e)),o<1&&(r=requestAnimationFrame(a))};return r=requestAnimationFrame(a),()=>{r&&cancelAnimationFrame(r)}},[e,s]),(0,t.jsx)("span",{children:a})}])},61494,e=>{"use strict";var t=e.i(91398),r=e.i(41158),s=e.i(3828),a=e.i(3326);e.s(["f",0,({routeName:e=null,currentPageTitle:l=null,depth:n=null})=>{let o=(0,s.useRouter)(),{formatMessage:i}=(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=o.asPath?.split("/")?.filter((e,t)=>o.asPath?.split("/")?.indexOf(e)===t);if(1===c.length)return null;let u="";n&&c.splice(n),e&&(c[c.length-1]=e);let f=c?.map(t=>{if(u+=`${t}/`,!t)return{name:i({id:"home",defaultMessage:"Home"}),path:"/"};let r=t?.split("?")[0],s=e?r:r.replace(/-/g," "),a=d[r];return{name:a?i({id:a,defaultMessage:s}):decodeURIComponent(s),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:f?.map((e,s)=>(0,t.jsx)("li",{children:(0,t.jsxs)("div",{className:"flex items-center",children:[0!==s&&(0,t.jsx)("svg",{className:"mr-4 h-5 w-5 shrink-0 text-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)(r.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&&l?l:e.name})]})},e.path))})})}])},81013,e=>{"use strict";var t=e.i(91398),r=e.i(72043);e.s(["f",0,({text:e,children:s,onClick:a,className:l="",disabled:n=!1,id:o="",variant:i="primary",size:d="md",type:c="button",loading:u=!1,icon:f,iconRight:m,fullWidth:x=!1,rounded:h="md",ariaLabel:p,...b})=>{let g=s||e,v=(f||m)&&g?"gap-2":"";return(0,t.jsx)("button",{id:o,type:c,disabled:n||u,onClick:a,"aria-label":p,className:(0,r.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"}[h],{primary:"border border-slate-800 dark:border-slate-600 bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:ring-slate-800 dark:focus:ring-slate-400",secondary:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-700 dark:text-slate-200 hover:bg-slate-50 dark:hover:bg-slate-700 focus:ring-slate-500",tertiary:"border border-slate-200 dark:border-slate-700 bg-slate-50 dark:bg-slate-800 text-slate-600 dark:text-slate-300 hover:bg-slate-100 dark:hover:bg-slate-700 focus:ring-slate-400",quaternary:"bg-transparent text-slate-700 dark:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",danger:"border border-rose-500 dark:border-rose-400 bg-white dark:bg-slate-800 text-rose-600 dark:text-rose-400 hover:bg-rose-50 dark:hover:bg-rose-900/10 focus:ring-rose-500",ghost:"bg-transparent border border-transparent text-slate-600 dark:text-slate-400 hover:text-slate-900 dark:hover:text-slate-200 hover:bg-slate-100 dark:hover:bg-slate-800 focus:ring-slate-400",success:"border border-emerald-500 dark:border-emerald-400 bg-emerald-50 dark:bg-emerald-900/20 text-emerald-600 dark:text-emerald-400 hover:bg-emerald-100 dark:hover:bg-emerald-900/30 focus:ring-emerald-500",neutral:"border border-slate-300 dark:border-slate-600 bg-slate-100 dark:bg-slate-700 text-slate-600 dark:text-slate-300 hover:bg-slate-200 dark:hover:bg-slate-600 focus:ring-slate-400",input:"border border-slate-300 dark:border-slate-600 bg-white dark:bg-slate-800 text-slate-900 dark:text-slate-100 hover:border-slate-400 dark:hover:border-slate-500 focus:ring-slate-500 focus:border-slate-500"}[i],v,{"w-full":x},l),...b,children:u?(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"w-4 h-4 border-2 border-current border-t-transparent rounded-full animate-spin"}),g]}):(0,t.jsxs)(t.Fragment,{children:[f,g,m]})})}])},81359,e=>{"use strict";var t=e.i(91398),r=e.i(24608),s=e.i(3326);e.s(["f",0,({onClick:e,text:a=null,Icon:l=null})=>{let{formatMessage:n}=(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:l||(0,t.jsx)(r.f,{className:"h-5 w-5"})}),a||n({id:"delete",defaultMessage:"Delete"})]})}])},78704,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(12197);e.s(["f",0,({loading:e,hasMore:a,onLoadMore:l,children:n,threshold:o=200})=>{let i=(0,r.useRef)(null),d=(0,r.useCallback)(t=>{let[r]=t;r.isIntersecting&&a&&!e&&l()},[a,e,l]);return(0,r.useEffect)(()=>{let e=i.current;if(!e)return;let t=new IntersectionObserver(d,{rootMargin:`${o}px`});return t.observe(e),()=>{t.disconnect()}},[d,o]),(0,t.jsxs)(t.Fragment,{children:[n,(0,t.jsx)("div",{ref:i,className:"h-4"}),e&&(0,t.jsx)("div",{className:"flex justify-center py-4",children:(0,t.jsx)(s.f,{})})]})}])},2875,e=>{"use strict";var t=e.i(91398),r=e.i(44112);e.s(["f",0,({title:e=null,description:s})=>(0,t.jsx)("div",{className:"mb-6 p-4 bg-blue-50 dark:bg-blue-900/20 border border-blue-200 dark:border-blue-800 rounded-lg",children:(0,t.jsxs)("div",{className:"flex items-start gap-3",children:[(0,t.jsx)(r.f,{className:"w-5 h-5 text-blue-600 dark:text-blue-400 mt-0.5 flex-shrink-0"}),(0,t.jsxs)("div",{children:[e&&(0,t.jsx)("h3",{className:"text-sm font-semibold text-blue-900 dark:text-blue-100 mb-2",children:e}),(0,t.jsx)("p",{className:"text-sm text-blue-800 dark:text-blue-200 leading-relaxed",children:s})]})]})})])},94724,e=>{"use strict";var t=e.i(91398),r=e.i(3326);e.s(["f",0,({children:e=null,totalRecords:s=null})=>{let{formatMessage:a}=(0,r.S)();return(0,t.jsxs)("div",{className:"mt-5",children:[null!==s?(0,t.jsx)("div",{className:"text-md text-slate-950 dark:text-slate-100 mb-3",children:a({id:"total_records",defaultMessage:"{total} records found"},{total:s??0})}):null,e&&(0,t.jsx)("div",{className:"flex items-center mt-10",children:(0,t.jsx)("h3",{className:"text-xs leading-6 text-slate-500 dark:text-slate-200",children:e})})]})}])},17644,e=>{"use strict";var t=e.i(91398),r=e.i(58678),s=e.i(41158),a=e.i(3326),l=e.i(37369),n=e.i(81013);e.s(["f",0,({headerText:e=null,onEdit:o=null,onDelete:i=null,children:d=null,title:c=null,addPath:u=null,addButtonText:f=null})=>{let{formatMessage:m}=(0,a.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)(r.default,{children:(0,t.jsxs)("title",{children:["Unchained AdminUI - ",c||e," "]})}),(0,t.jsx)("div",{className:"flex gap-3 flex-wrap items-center justify-between",children:(0,t.jsxs)("div",{className:"flex items-center flex-wrap justify-between w-full gap-4",children:[e&&(0,t.jsx)("h2",{className:"text-2xl font-medium text-slate-900 dark:text-slate-300 sm:truncate sm:text-3xl lg:text-4xl",children:e}),(0,t.jsxs)("div",{className:"flex items-center gap-3 flex-shrink-0",children:[d,u&&(0,t.jsx)(s.default,{href:u,children:(0,t.jsx)(n.f,{variant:"secondary",icon:(0,t.jsx)(l.f,{className:"h-5 w-5"}),text:f||m({id:"add",defaultMessage:"Add"})})}),o&&(0,t.jsx)(n.f,{variant:"secondary",onClick:o,text:m({id:"edit",defaultMessage:"Edit"})}),i&&(0,t.jsx)(n.f,{variant:"danger",onClick:i,text:m({id:"delete",defaultMessage:"Delete"})})]})]})})]})}])},16371,e=>{"use strict";var t=e.i(91788),r=e.i(30943);e.s(["f",0,({children:e,container:s=null,className:a=""})=>{let l=(0,t.useRef)(null),[n,o]=(0,t.useState)(!1);return((0,t.useEffect)(()=>{let e=document.createElement("div");a&&(e.className=a),l.current=e;let t=s||document.body;return t.appendChild(e),o(!0),()=>{l.current&&t.contains(l.current)&&t.removeChild(l.current)}},[s,a]),n&&l.current)?(0,r.createPortal)(e,l.current):null}])},20495,e=>{"use strict";var t=e.i(91398),r=e.i(3326),s=e.i(2765);e.s(["f",0,({inputText:e=null,onInputChange:a,defaultValue:l})=>{let{formatMessage:n}=(0,r.S)(),o=(0,s.f)(200)(a);return(0,t.jsxs)("div",{className:"w-full",children:[(0,t.jsx)("label",{htmlFor:"search",className:"sr-only",children:e||n({id:"search",defaultMessage:"Search"})}),(0,t.jsxs)("div",{className:"relative",children:[(0,t.jsx)("div",{className:"pointer-events-none absolute inset-y-0 left-0 flex items-center pl-3",children:(0,t.jsx)("svg",{className:"h-5 w-5 text-slate-400 dark:text-slate-200",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:(0,t.jsx)("path",{fillRule:"evenodd",d:"M8 4a4 4 0 100 8 4 4 0 000-8zM2 8a6 6 0 1110.89 3.476l4.817 4.817a1 1 0 01-1.414 1.414l-4.816-4.816A6 6 0 012 8z",clipRule:"evenodd"})})}),(0,t.jsx)("input",{onChange:e=>o(e.target.value),id:"search",defaultValue:l,name:"search",className:"block w-full rounded-md border-1 border-slate-300 dark:border-slate-700 text-slate-900 dark:bg-slate-900 dark:text-slate-200 py-3 pl-10 px-4 shadow-xs placeholder:text-slate-400 dark:placeholder:text-slate-400 focus:ring-2 focus:ring-slate-800 focus:outline-hidden sm:text-sm",placeholder:n({id:"search",defaultMessage:"Search"}),type:"search"})]})]})}])},51128,e=>{"use strict";var t=e.i(91398),r=e.i(3326),s=e.i(3828),a=e.i(20495),l=e.i(68835),n=e.i(65153),o=e.i(83147),i=e.i(73319);e.s(["f",0,({children:e,onSearchChange:d,defaultSearchValue:c,showTagFilter:u=!1,availableTagOptions:f=[]})=>{let{formatMessage:m}=(0,r.S)(),{query:x,push:h}=(0,s.useRouter)(),p=e=>{if((0,i.T)(e))h({query:(0,o._)(x,e?.join(","),"tags")});else{let{tags:e,...t}=x;h({query:(0,o._)(t)})}};return(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"my-3 flex flex-col gap-3",children:(0,t.jsxs)("div",{className:"flex flex-col sm:flex-row sm:items-start gap-3",children:[(0,t.jsx)("div",{className:"flex-shrink-0",children:(0,t.jsx)(a.f,{onInputChange:d,defaultValue:c})}),u&&(0,t.jsxs)("div",{className:"flex flex-col gap-2 flex-1 sm:border-l sm:border-slate-300 sm:dark:border-slate-700 sm:pl-3",children:[(0,t.jsx)("div",{className:"max-w-xs",children:(0,t.jsx)(l.f,{buttonText:m({id:"apply",defaultMessage:"Apply"}),placeholder:m({id:"enter_tag",defaultMessage:"Enter tag..."}),tagList:x?.tags?.split(","),onChange:p,selectOptions:f,showTagsInline:!1})}),x?.tags?.split(",").filter(Boolean).length>0&&(0,t.jsx)("div",{className:"flex flex-wrap gap-2",children:x?.tags?.split(",").filter(Boolean).map(e=>(0,t.jsx)(n.f,{text:e,color:"slate",onClick:()=>{let t=x?.tags?.split(",").filter(t=>t!==e);p(t.length>0?t:null)}},e))})]})]})}),e]})}])},3095,e=>{"use strict";var t=e.i(91398),r=e.i(91788),s=e.i(3326),a=e.i(86712),l=e.i(76842),n=e.i(24557),o=e.i(16371);e.s(["f",0,({onEdit:e,onDelete:i,editLabel:d,deleteLabel:c,showEdit:u=!0,showDelete:f=!0})=>{let{formatMessage:m}=(0,s.S)(),[x,h]=(0,r.useState)(!1),[p,b]=(0,r.useState)({top:0,left:0}),g=(0,r.useRef)(null),v=(0,r.useRef)(null);(0,r.useEffect)(()=>{let e=e=>{g.current&&!g.current.contains(e.target)&&h(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]);let y=(e,t)=>{e.stopPropagation(),e.preventDefault(),t&&t(),h(!1)};return 0===[u&&e,f&&i].filter(Boolean).length?null:(0,t.jsxs)("div",{className:"flex justify-end w-full",children:[(0,t.jsx)("button",{ref:v,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),x||(()=>{if(!v.current)return;let e=v.current.getBoundingClientRect(),t=e.bottom+4,r=e.right-192;r<8&&(r=8),t+80>window.innerHeight-8&&(t=e.top-80-4),b({top:t,left:r})})(),h(!x)},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":m({id:"table_actions_menu",defaultMessage:"Actions menu"}),children:(0,t.jsx)(a.f,{className:"w-5 h-5 text-slate-500 dark:text-slate-400"})}),x&&(0,t.jsx)(o.f,{children:(0,t.jsx)("div",{ref:g,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:p.top,left:p.left},children:(0,t.jsxs)("div",{className:"py-1",children:[u&&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)(l.f,{className:"mr-3 h-5 w-5"}),d||m({id:"edit",defaultMessage:"Edit"})]}),f&&i&&(0,t.jsxs)("button",{type:"button",onClick:e=>y(e,i),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)(n.f,{className:"mr-3 h-5 w-5"}),c||m({id:"delete",defaultMessage:"Delete"})]})]})})})]})}])},64591,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(3828),a=e.i(83147);e.s(["f",0,({toggleText:e="",toggleKey:l=null,onToggle:n=null,active:o=!1,className:i="",disabled:d=!1,...c})=>{let u=(0,s.useRouter)(),f=u?.query?.[l]==="true"||o;return(0,t.jsxs)("div",{className:(0,r.default)("",i),children:[(0,t.jsxs)("button",{id:l,disabled:d,type:"button",className:(0,r.default)("relative inline-flex h-3.5 w-9 shrink-0 cursor-pointer rounded-full border-1 border-transparent transition-all duration-200 ease-in-out focus:outline-hidden focus:ring-2 focus:ring-slate-400 focus:ring-offset-2",{"bg-slate-200 dark:bg-slate-700":!f,"bg-emerald-500 dark:bg-emerald-600 shadow-sm":f}),role:"switch",onClick:n||(()=>{let{skip:e,...t}=u.query;u.push({query:(0,a._)(t,!f,l)})}),"aria-checked":f?"true":"false",...c,children:[(0,t.jsx)("span",{className:"sr-only",children:e}),(0,t.jsxs)("span",{className:(0,r.default)("ml-0.5 pointer-events-none relative inline-block h-3 w-3 transform rounded-full bg-white shadow-sm ring-0 transition-all duration-200 ease-in-out",{"translate-x-5 shadow-md":f,"translate-x-0":!f}),children:[(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-0 duration-100 ease-out":f,"opacity-100 duration-200 ease-in":!f}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-slate-400",fill:"none",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M4 8l2-2m0 0l2-2M6 6L4 4m2 2l2 2",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("span",{className:(0,r.default)("absolute inset-0 flex h-full w-full items-center justify-center transition-opacity",{"opacity-100 duration-200 ease-in":f,"opacity-0 duration-100 ease-out":!f}),"aria-hidden":"true",children:(0,t.jsx)("svg",{className:"h-3 w-3 text-emerald-500",fill:"currentColor",viewBox:"0 0 12 12",children:(0,t.jsx)("path",{d:"M3.707 5.293a1 1 0 00-1.414 1.414l1.414-1.414zM5 8l-.707.707a1 1 0 001.414 0L5 8zm4.707-3.293a1 1 0 00-1.414-1.414l1.414 1.414zm-7.414 2l2 2 1.414-1.414-2-2-1.414 1.414zm3.414 2l4-4-1.414-1.414-4 4 1.414 1.414z"})})})]})]}),(0,t.jsx)("span",{className:"ml-3",id:"annual-billing-label",children:(0,t.jsx)("span",{className:"text-sm font-medium text-slate-900 dark:text-slate-200",children:e})})]})}])},73319,e=>{"use strict";let t=e=>"[object Object]"===Object.prototype.toString.call(e);e.s(["Q",0,e=>decodeURIComponent(e||[])?.split(",")?.filter(Boolean),"C",0,t,"T",0,e=>!(!e||null==e||t(e)&&!Object.keys(e).length||Array.isArray(e)&&!e.length)])},83147,e=>{"use strict";let t=e=>e&&e?.split(",").reduce((e,t)=>{let[r=null,s=null]=(t||"")?.split("_")||[];return{...e,[r]:s}},null)||{};e.s(["S",0,(...e)=>e.filter(Boolean).join(" "),"R",0,e=>Object.entries(t(e))?.map(([e,t])=>({key:e,value:t})),"D",0,e=>e?.label&&e?.version?`${e.label} ${e.version}`:"","v",0,t,"Q",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"region"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"j",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"currency"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"I",0,(e,t,r=!0)=>{if(!t)return"";try{return`${new Intl.DisplayNames([e],{type:"language"}).of(t)} ${r?`(${t})`:""}`}catch{return t}},"_",0,(e,t,r)=>{let s;return s=r?{...e,[r]:t}:e,Object.keys(s)?.map(e=>[e,s[e]].join("="))?.join("&")},"d",0,()=>({formatPrice:e=>{if(!e?.currencyCode)return"n/a";if(e?.amount===void 0||e?.amount===null)return"";let{amount:t,currencyCode:r}=e||{};return new Intl.NumberFormat(navigator.language,{style:"currency",currency:r}).format(t/100)}})])},68191,e=>{"use strict";var t=e.i(59080);let r=t.f`
2
+ fragment CurrencyFragment on Currency {
3
+ _id
4
+ isoCode
5
+ isActive
6
+ contractAddress
7
+ decimals
8
+ }
9
+ `;e.s(["f",0,r])},79093,e=>{"use strict";var t=e.i(59080),r=e.i(32171),s=e.i(68191);let a=t.f`
10
+ query Currencies(
11
+ $queryString: String
12
+ $limit: Int
13
+ $offset: Int
14
+ $includeInactive: Boolean
15
+ $sort: [SortOptionInput!]
16
+ ) {
17
+ currencies(
18
+ queryString: $queryString
19
+ limit: $limit
20
+ offset: $offset
21
+ includeInactive: $includeInactive
22
+ sort: $sort
23
+ ) {
24
+ ...CurrencyFragment
25
+ }
26
+ currenciesCount(
27
+ includeInactive: $includeInactive
28
+ queryString: $queryString
29
+ )
30
+ }
31
+ ${s.f}
32
+ `;e.s(["f",0,({queryString:e="",limit:t=20,offset:s=0,includeInactive:l=!0,sort:n=[]}={})=>{let{data:o,loading:i,error:d,fetchMore:c}=(0,r.f)(a,{variables:{queryString:e,limit:t,offset:s,includeInactive:l,sort:n}}),u=o?.currencies||[],f=o?.currenciesCount,m=u?.length<f;return{currencies:u,currenciesCount:f,hasMore:m,loading:i,error:d,loadMore:()=>{c({variables:{offset:u?.length}})}}}])},73419,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(60741),a=e.i(29691);e.s(["f",0,e=>{let{options:l,...n}=(0,s.f)(e),{className:o}=e||{className:""};return(0,t.jsx)(a.f,{...n,children:(0,t.jsx)("div",{className:"select-wrap",children:(0,t.jsxs)("select",{className:(0,r.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",o,{"border-rose-700 text-rose-600 dark:border-rose-500 dark:text-rose-400":!!n.error}),disabled:n.disabled,id:n.name,name:n.name,onChange:n.onChange,onBlur:n.onBlur,value:n.value,children:[(0,t.jsx)("option",{className:"dark:text-slate-200",value:"",disabled:n.required,hidden:n.required,children:n.placeholder||n.label}),Object.entries(l).map(([e,r])=>(0,t.jsx)("option",{className:"dark:text-slate-200",value:e,children:r},e))]})})})}])},99160,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(38865),a=e.i(61898);e.s(["f",0,({label:e,disabled:l=!1,className:n="",hidden:o=!1,...i})=>{let d=(0,s.m)(),{...c}=i,u=Object.fromEntries(Object.keys(d.initialValues).map(e=>[e,d.getFieldMeta(e)])),{disabled:f}=(0,a.f)(),m=Object.values(u).reduce((e,{error:t,touched:r})=>e||t&&r,!1),x=l||f||d.isSubmitting||m,h=d.isSubmitting&&!m,p=(l||f||m)&&!d.isSubmitting;return(0,t.jsx)("input",{className:(0,r.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",n,{"bg-rose-50 dark:bg-slate-800 dark:text-rose-300 cursor-not-allowed border-rose-300 dark:border-rose-600 text-rose-900":p,"bg-slate-600 dark:bg-slate-700 text-white cursor-not-allowed border-slate-400 dark:border-slate-600":h,"bg-slate-800 dark:bg-slate-600 text-white hover:bg-slate-900 dark:hover:bg-slate-500 focus:outline-hidden focus:ring-2 focus:ring-offset-2 border-transparent":!x,hidden:o}),"aria-label":e,type:"submit",value:e,disabled:x,...c})}])},45229,e=>{"use strict";var t=e.i(91398),r=e.i(72043),s=e.i(82226),a=e.i(60741),l=e.i(29691);e.s(["f",0,({maxLength:e=0,validators:n=[],...o})=>{let i=(0,a.f)({validators:[...n,e&&(0,s.f)(e)],...o});return(0,t.jsx)(l.f,{...i,children:(0,t.jsx)("input",{className:(0,r.default)("relative mt-1 block w-full dark:focus:autofill dark:hover:autofill dark:autofill dark:placeholder:text-slate-600 dark:bg-slate-900 dark:text-slate-200 appearance-none rounded-md border-1 dark:border-slate-700 px-4 py-2.5 text-sm text-slate-900 focus:outline-hidden focus:ring-2 focus:ring-slate-800 shadow-xs",{"border-rose-700 placeholder:text-rose-500":!!i.error,"border-slate-300 placeholder-slate-400":!i.error}),disabled:i.disabled,id:i.name,name:i.name,onChange:i.onChange,onClick:e=>{e.stopPropagation()},onBlur:i.onBlur,placeholder:i.placeholder,autoComplete:i.autoComplete||"off",type:i.type||"text",value:i.value,autoFocus:i.autoFocus})})}])},15971,e=>{"use strict";var t=e.i(91398),r=e.i(3326);e.s(["f",0,({onOkClick:e,onCancelClick:s,okText:a=null,cancelText:l=null,headerText:n=null,message:o=null,icon:i=null,close:d=null})=>{let{formatMessage:c}=(0,r.S)();return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("div",{className:"sm:flex sm:items-start",children:[i||(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:n||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:o||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: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:l||c({id:"cancel",defaultMessage:"Cancel"})})]})]})}])},6607,e=>{"use strict";var t=e.i(91788),r=e.i(6444);e.s(["f",0,()=>(0,t.useContext)(r.f)])},76204,e=>{"use strict";var t=e.i(24669),r=e.i(91788),s=e.i(30928),a=e.i(52006);let l=e.i(21953).f?r.useLayoutEffect:r.useEffect;var n=e.i(98926);function o(e){return{data:void 0,error:void 0,called:!1,loading:!1,client:e}}e.s(["f",0,function(e,i){let d=(0,n.f)(i?.client),[c,u]=r.useState(()=>o(d)),f=r.useRef({result:c,mutationId:0,isMounted:!0,client:d,mutation:e,options:i});l(()=>{Object.assign(f.current,{client:d,options:i,mutation:e})});let m=r.useCallback((e={})=>{let{options:r,mutation:l}=f.current,n={...r,mutation:l},o=e.client||f.current.client,i="function"==typeof e.context?e.context(r?.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:o});let d=++f.current.mutationId,c=(0,s.f)(n,{...e,context:i});return(0,a.f)(o.mutate(c).then(r=>{let{data:s,error:a}=r,l=e.onError||f.current.options?.onError;if(a&&l&&l(a,c),d===f.current.mutationId){let e={called:!0,loading:!1,data:s,error:a,client:o};f.current.isMounted&&!(0,t.f)(f.current.result,e)&&u(f.current.result=e)}let n=e.onCompleted||f.current.options?.onCompleted;return a||n?.(r.data,c),r},r=>{if(d===f.current.mutationId&&f.current.isMounted){let e={loading:!1,error:r,data:void 0,called:!0,client:o};(0,t.f)(f.current.result,e)||u(f.current.result=e)}let s=e.onError||f.current.options?.onError;throw s&&s(r,c),r}))},[]),x=r.useCallback(()=>{if(f.current.isMounted){let e=o(f.current.client);Object.assign(f.current,{mutationId:0,result:e}),u(e)}},[]);return r.useEffect(()=>{let e=f.current;return e.isMounted=!0,()=>{e.isMounted=!1}},[]),[m,{reset:x,...c}]}],76204)},76842,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{d:"m2.695 14.762-1.262 3.155a.5.5 0 0 0 .65.65l3.155-1.262a4 4 0 0 0 1.343-.886L17.5 5.501a2.121 2.121 0 0 0-3-3L3.58 13.419a4 4 0 0 0-.885 1.343Z"}))});e.s(["f",0,r],76842)},24557,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{fillRule:"evenodd",d:"M8.75 1A2.75 2.75 0 0 0 6 3.75v.443c-.795.077-1.584.176-2.365.298a.75.75 0 1 0 .23 1.482l.149-.022.841 10.518A2.75 2.75 0 0 0 7.596 19h4.807a2.75 2.75 0 0 0 2.742-2.53l.841-10.52.149.023a.75.75 0 0 0 .23-1.482A41.03 41.03 0 0 0 14 4.193V3.75A2.75 2.75 0 0 0 11.25 1h-2.5ZM10 4c.84 0 1.673.025 2.5.075V3.75c0-.69-.56-1.25-1.25-1.25h-2.5c-.69 0-1.25.56-1.25 1.25v.325C8.327 4.025 9.16 4 10 4ZM8.58 7.72a.75.75 0 0 0-1.5.06l.3 7.5a.75.75 0 1 0 1.5-.06l-.3-7.5Zm4.34.06a.75.75 0 1 0-1.5-.06l-.3 7.5a.75.75 0 1 0 1.5.06l.3-7.5Z",clipRule:"evenodd"}))});e.s(["f",0,r],24557)},86712,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},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,r],86712)},44112,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"m11.25 11.25.041-.02a.75.75 0 0 1 1.063.852l-.708 2.836a.75.75 0 0 0 1.063.853l.041-.021M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Zm-9-3.75h.008v.008H12V8.25Z"}))});e.s(["f",0,r],44112)},37369,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 4.5v15m7.5-7.5h-15"}))});e.s(["f",0,r],37369)},24608,e=>{"use strict";var t=e.i(91788);let r=t.forwardRef(function({title:e,titleId:r,...s},a){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:1.5,stroke:"currentColor","aria-hidden":"true","data-slot":"icon",ref:a,"aria-labelledby":r},s),e?t.createElement("title",{id:r},e):null,t.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M6 18 18 6M6 6l12 12"}))});e.s(["f",0,r],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,r){let s=(0,t.f)(e,r?.in);return s.setHours(0,0,0,0),s}])},35113,2848,98170,e=>{"use strict";let t=Symbol.for("constructDateFrom");function r(e,r){return"function"==typeof e?e(r):e&&"object"==typeof e&&t in e?e[t](r):e instanceof Date?new e.constructor(r):new Date(r)}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,r],98170),e.s(["f",0,function(e,t){return r(t||e,e)}],35113)},34980,(e,t,r)=>{"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},l={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},n={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},o={};function i(e){return s.isMemo(e)?n:o[e.$$typeof]||a}o[s.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},o[s.Memo]=n;var d=Object.defineProperty,c=Object.getOwnPropertyNames,u=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,x=Object.prototype;t.exports=function e(t,r,s){if("string"!=typeof r){if(x){var a=m(r);a&&a!==x&&e(t,a,s)}var n=c(r);u&&(n=n.concat(u(r)));for(var o=i(t),h=i(r),p=0;p<n.length;++p){var b=n[p];if(!l[b]&&!(s&&s[b])&&!(h&&h[b])&&!(o&&o[b])){var g=f(r,b);try{d(t,b,g)}catch(e){}}}}return t}},40563,(e,t,r)=>{"use strict";var s="function"==typeof Symbol&&Symbol.for,a=s?Symbol.for("react.element"):60103,l=s?Symbol.for("react.portal"):60106,n=s?Symbol.for("react.fragment"):60107,o=s?Symbol.for("react.strict_mode"):60108,i=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,m=s?Symbol.for("react.forward_ref"):60112,x=s?Symbol.for("react.suspense"):60113,h=s?Symbol.for("react.suspense_list"):60120,p=s?Symbol.for("react.memo"):60115,b=s?Symbol.for("react.lazy"):60116,g=s?Symbol.for("react.block"):60121,v=s?Symbol.for("react.fundamental"):60117,y=s?Symbol.for("react.responder"):60118,j=s?Symbol.for("react.scope"):60119;function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case a:switch(e=e.type){case u:case f:case n:case i:case o:case x:return e;default:switch(e=e&&e.$$typeof){case c:case m:case b:case p:case d:return e;default:return t}}case l:return t}}}function k(e){return w(e)===f}r.AsyncMode=u,r.ConcurrentMode=f,r.ContextConsumer=c,r.ContextProvider=d,r.Element=a,r.ForwardRef=m,r.Fragment=n,r.Lazy=b,r.Memo=p,r.Portal=l,r.Profiler=i,r.StrictMode=o,r.Suspense=x,r.isAsyncMode=function(e){return k(e)||w(e)===u},r.isConcurrentMode=k,r.isContextConsumer=function(e){return w(e)===c},r.isContextProvider=function(e){return w(e)===d},r.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===a},r.isForwardRef=function(e){return w(e)===m},r.isFragment=function(e){return w(e)===n},r.isLazy=function(e){return w(e)===b},r.isMemo=function(e){return w(e)===p},r.isPortal=function(e){return w(e)===l},r.isProfiler=function(e){return w(e)===i},r.isStrictMode=function(e){return w(e)===o},r.isSuspense=function(e){return w(e)===x},r.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===n||e===f||e===i||e===o||e===x||e===h||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===p||e.$$typeof===d||e.$$typeof===c||e.$$typeof===m||e.$$typeof===v||e.$$typeof===y||e.$$typeof===j||e.$$typeof===g)},r.typeOf=w},49957,(e,t,r)=>{"use strict";e.i(50461),t.exports=e.r(40563)}]);
@@ -0,0 +1,5 @@
1
+ __turbopack_load_page_chunks__("/currency/CurrencyDetailPage", [
2
+ "static/chunks/1rm2w7nvmejdw.js",
3
+ "static/chunks/14pnkf7som1m1.js",
4
+ "static/chunks/turbopack-077hmtqrhcoji.js"
5
+ ])