@unchainedshop/admin-ui 5.0.0-alpha.2 → 5.0.0-alpha.4

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 (967) hide show
  1. package/README.md +112 -0
  2. package/dist/chunk-45H2WVIC.js +51 -0
  3. package/dist/chunk-4VNS5WPM.js +37 -0
  4. package/dist/chunk-54DKBWXV.js +33 -0
  5. package/dist/chunk-6TXD4TA7.js +1196 -0
  6. package/dist/chunk-BGCKJQGS.js +58 -0
  7. package/dist/chunk-BYXBJQAS.js +1 -0
  8. package/dist/chunk-EJDZRZSZ.js +59 -0
  9. package/dist/chunk-ELPURWDC.js +75 -0
  10. package/dist/chunk-IAQPLRXZ.js +16 -0
  11. package/dist/chunk-ILYPJE4N.js +57 -0
  12. package/dist/chunk-IXBMHOB5.js +13 -0
  13. package/dist/chunk-KH5MK6ZW.js +18 -0
  14. package/dist/chunk-NT7RB7AK.js +70 -0
  15. package/dist/chunk-OKGJ6HDE.js +26 -0
  16. package/dist/chunk-Q6S3LBUF.js +180 -0
  17. package/dist/chunk-QNLGYFV7.js +22 -0
  18. package/dist/chunk-RAQV2GYF.js +70 -0
  19. package/dist/chunk-RHUFQVKL.js +514 -0
  20. package/dist/chunk-RVG6IOFC.js +11 -0
  21. package/dist/chunk-SRAAKMWY.js +39 -0
  22. package/dist/chunk-UFYR5WZT.js +165 -0
  23. package/dist/chunk-UXG7EYHC.js +614 -0
  24. package/dist/chunk-VDKQGOMV.js +840 -0
  25. package/dist/chunk-XHOCXPD5.js +9 -0
  26. package/dist/chunk-XJBPMIC4.js +284 -0
  27. package/dist/chunk-YO6PT7KD.js +13 -0
  28. package/dist/chunk-YSKZE2KN.js +652 -0
  29. package/dist/components/ui/Accordion/Accordion.d.ts +11 -0
  30. package/dist/components/ui/Accordion/Accordion.d.ts.map +1 -0
  31. package/dist/components/ui/Accordion/AccordionHeader.d.ts +6 -0
  32. package/dist/components/ui/Accordion/AccordionHeader.d.ts.map +1 -0
  33. package/dist/components/ui/Accordion/AccordionItem.d.ts +11 -0
  34. package/dist/components/ui/Accordion/AccordionItem.d.ts.map +1 -0
  35. package/dist/components/ui/ActiveInActive.d.ts +10 -0
  36. package/dist/components/ui/ActiveInActive.d.ts.map +1 -0
  37. package/dist/components/ui/AnimatedCounter.d.ts +7 -0
  38. package/dist/components/ui/AnimatedCounter.d.ts.map +1 -0
  39. package/dist/components/ui/Badge.d.ts +10 -0
  40. package/dist/components/ui/Badge.d.ts.map +1 -0
  41. package/dist/components/ui/BreadCrumbs.d.ts +7 -0
  42. package/dist/components/ui/BreadCrumbs.d.ts.map +1 -0
  43. package/dist/components/ui/Button.d.ts +36 -0
  44. package/dist/components/ui/Button.d.ts.map +1 -0
  45. package/dist/components/ui/CopyableText.d.ts +5 -0
  46. package/dist/components/ui/CopyableText.d.ts.map +1 -0
  47. package/dist/components/ui/DateInput.d.ts +15 -0
  48. package/dist/components/ui/DateInput.d.ts.map +1 -0
  49. package/dist/components/ui/DateRangeFilterInput.d.ts +4 -0
  50. package/dist/components/ui/DateRangeFilterInput.d.ts.map +1 -0
  51. package/dist/components/ui/DetailHeader.d.ts +6 -0
  52. package/dist/components/ui/DetailHeader.d.ts.map +1 -0
  53. package/dist/components/ui/DraggableIcon.d.ts +3 -0
  54. package/dist/components/ui/DraggableIcon.d.ts.map +1 -0
  55. package/dist/components/ui/ErrorBoundary.d.ts +18 -0
  56. package/dist/components/ui/ErrorBoundary.d.ts.map +1 -0
  57. package/dist/components/ui/ErrorFallback.d.ts +6 -0
  58. package/dist/components/ui/ErrorFallback.d.ts.map +1 -0
  59. package/dist/components/ui/HelpText.d.ts +11 -0
  60. package/dist/components/ui/HelpText.d.ts.map +1 -0
  61. package/dist/components/ui/ImageWithFallback.d.ts +7 -0
  62. package/dist/components/ui/ImageWithFallback.d.ts.map +1 -0
  63. package/dist/components/ui/InfoTextBanner.d.ts +6 -0
  64. package/dist/components/ui/InfoTextBanner.d.ts.map +1 -0
  65. package/dist/components/ui/JSONView.d.ts +6 -0
  66. package/dist/components/ui/JSONView.d.ts.map +1 -0
  67. package/dist/components/ui/ListHeader.d.ts +6 -0
  68. package/dist/components/ui/ListHeader.d.ts.map +1 -0
  69. package/dist/components/ui/Loading.d.ts +3 -0
  70. package/dist/components/ui/Loading.d.ts.map +1 -0
  71. package/dist/components/ui/NoData.d.ts +7 -0
  72. package/dist/components/ui/NoData.d.ts.map +1 -0
  73. package/dist/components/ui/NoImage.d.ts +7 -0
  74. package/dist/components/ui/NoImage.d.ts.map +1 -0
  75. package/dist/components/ui/NoImageSvg.d.ts +8 -0
  76. package/dist/components/ui/NoImageSvg.d.ts.map +1 -0
  77. package/dist/components/ui/PageHeader.d.ts +11 -0
  78. package/dist/components/ui/PageHeader.d.ts.map +1 -0
  79. package/dist/components/ui/Pagination.d.ts +8 -0
  80. package/dist/components/ui/Pagination.d.ts.map +1 -0
  81. package/dist/components/ui/Portal/Portal.d.ts +16 -0
  82. package/dist/components/ui/Portal/Portal.d.ts.map +1 -0
  83. package/dist/components/ui/Portal/Portal.types.d.ts +16 -0
  84. package/dist/components/ui/Portal/Portal.types.d.ts.map +1 -0
  85. package/dist/components/ui/SaveAndCancelButtons.d.ts +10 -0
  86. package/dist/components/ui/SaveAndCancelButtons.d.ts.map +1 -0
  87. package/dist/components/ui/SearchField.d.ts +7 -0
  88. package/dist/components/ui/SearchField.d.ts.map +1 -0
  89. package/dist/components/ui/Tab.d.ts +18 -0
  90. package/dist/components/ui/Tab.d.ts.map +1 -0
  91. package/dist/components/ui/Tag/TagInput.d.ts +14 -0
  92. package/dist/components/ui/Tag/TagInput.d.ts.map +1 -0
  93. package/dist/components/ui/Tag/TagList.d.ts +8 -0
  94. package/dist/components/ui/Tag/TagList.d.ts.map +1 -0
  95. package/dist/components/ui/Tag/TagListForm.d.ts +8 -0
  96. package/dist/components/ui/Tag/TagListForm.d.ts.map +1 -0
  97. package/dist/components/ui/Toggle.d.ts +11 -0
  98. package/dist/components/ui/Toggle.d.ts.map +1 -0
  99. package/dist/components/ui/ToolTip.d.ts +7 -0
  100. package/dist/components/ui/ToolTip.d.ts.map +1 -0
  101. package/dist/components/ui/card.d.ts +9 -0
  102. package/dist/components/ui/card.d.ts.map +1 -0
  103. package/dist/components/ui/chart.d.ts +42 -0
  104. package/dist/components/ui/chart.d.ts.map +1 -0
  105. package/dist/components/ui/form/CheckboxField.d.ts +4 -0
  106. package/dist/components/ui/form/CheckboxField.d.ts.map +1 -0
  107. package/dist/components/ui/form/ChoicesField.d.ts +12 -0
  108. package/dist/components/ui/form/ChoicesField.d.ts.map +1 -0
  109. package/dist/components/ui/form/Combobox.d.ts +20 -0
  110. package/dist/components/ui/form/Combobox.d.ts.map +1 -0
  111. package/dist/components/ui/form/DatePickerField.d.ts +4 -0
  112. package/dist/components/ui/form/DatePickerField.d.ts.map +1 -0
  113. package/dist/components/ui/form/EmailField.d.ts +7 -0
  114. package/dist/components/ui/form/EmailField.d.ts.map +1 -0
  115. package/dist/components/ui/form/FieldWithHelp.d.ts +10 -0
  116. package/dist/components/ui/form/FieldWithHelp.d.ts.map +1 -0
  117. package/dist/components/ui/form/FieldWrapper.d.ts +8 -0
  118. package/dist/components/ui/form/FieldWrapper.d.ts.map +1 -0
  119. package/dist/components/ui/form/FormErrors.d.ts +6 -0
  120. package/dist/components/ui/form/FormErrors.d.ts.map +1 -0
  121. package/dist/components/ui/form/JSONAreaField.d.ts +7 -0
  122. package/dist/components/ui/form/JSONAreaField.d.ts.map +1 -0
  123. package/dist/components/ui/form/MarkdownTextAreaField.d.ts +8 -0
  124. package/dist/components/ui/form/MarkdownTextAreaField.d.ts.map +1 -0
  125. package/dist/components/ui/form/PasswordField.d.ts +3 -0
  126. package/dist/components/ui/form/PasswordField.d.ts.map +1 -0
  127. package/dist/components/ui/form/SelectField.d.ts +11 -0
  128. package/dist/components/ui/form/SelectField.d.ts.map +1 -0
  129. package/dist/components/ui/form/SubmitButton.d.ts +9 -0
  130. package/dist/components/ui/form/SubmitButton.d.ts.map +1 -0
  131. package/dist/components/ui/form/TagInputField.d.ts +6 -0
  132. package/dist/components/ui/form/TagInputField.d.ts.map +1 -0
  133. package/dist/components/ui/form/TextAreaField.d.ts +8 -0
  134. package/dist/components/ui/form/TextAreaField.d.ts.map +1 -0
  135. package/dist/components/ui/form/TextField.d.ts +10 -0
  136. package/dist/components/ui/form/TextField.d.ts.map +1 -0
  137. package/dist/components/ui/form/index.d.ts +17 -0
  138. package/dist/components/ui/form/index.d.ts.map +1 -0
  139. package/dist/components/ui/icons.d.ts +4 -0
  140. package/dist/components/ui/icons.d.ts.map +1 -0
  141. package/dist/components/ui/index.d.ts +41 -0
  142. package/dist/components/ui/index.d.ts.map +1 -0
  143. package/dist/form.js +30077 -0
  144. package/dist/gql/types.d.ts +17209 -0
  145. package/dist/gql/types.d.ts.map +1 -0
  146. package/dist/hooks.js +41 -0
  147. package/dist/lib/utils.d.ts +3 -0
  148. package/dist/lib/utils.d.ts.map +1 -0
  149. package/dist/modal.js +114 -0
  150. package/dist/modules/UnchainedContext/UnchainedContext.d.ts +8 -0
  151. package/dist/modules/UnchainedContext/UnchainedContext.d.ts.map +1 -0
  152. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts +7 -0
  153. package/dist/modules/UnchainedContext/useUnchainedContext.d.ts.map +1 -0
  154. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts +3 -0
  155. package/dist/modules/accounts/fragment/MD5MetaDataFragment.d.ts.map +1 -0
  156. package/dist/modules/accounts/fragment/UserFragment.d.ts +3 -0
  157. package/dist/modules/accounts/fragment/UserFragment.d.ts.map +1 -0
  158. package/dist/modules/accounts/hooks/useCurrentUser.d.ts +10 -0
  159. package/dist/modules/accounts/hooks/useCurrentUser.d.ts.map +1 -0
  160. package/dist/modules/accounts/hooks/useUsersCount.d.ts +8 -0
  161. package/dist/modules/accounts/hooks/useUsersCount.d.ts.map +1 -0
  162. package/dist/modules/accounts.js +1013 -0
  163. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts +8 -0
  164. package/dist/modules/assortment/hooks/useAssortmentsCount.d.ts.map +1 -0
  165. package/dist/modules/assortment.js +1121 -0
  166. package/dist/modules/common/components/AppContext.d.ts +18 -0
  167. package/dist/modules/common/components/AppContext.d.ts.map +1 -0
  168. package/dist/modules/common/components/FormWrapper.d.ts +8 -0
  169. package/dist/modules/common/components/FormWrapper.d.ts.map +1 -0
  170. package/dist/modules/common/components/ThemeWrapper.d.ts +10 -0
  171. package/dist/modules/common/components/ThemeWrapper.d.ts.map +1 -0
  172. package/dist/modules/common/data/iso-codes.d.ts +4 -0
  173. package/dist/modules/common/data/iso-codes.d.ts.map +1 -0
  174. package/dist/modules/common/data/miscellaneous.d.ts +51 -0
  175. package/dist/modules/common/data/miscellaneous.d.ts.map +1 -0
  176. package/dist/modules/common/fragments/AddressFragment.d.ts +3 -0
  177. package/dist/modules/common/fragments/AddressFragment.d.ts.map +1 -0
  178. package/dist/modules/common/hooks/useApp.d.ts +11 -0
  179. package/dist/modules/common/hooks/useApp.d.ts.map +1 -0
  180. package/dist/modules/common/hooks/useCSVExport.d.ts +10 -0
  181. package/dist/modules/common/hooks/useCSVExport.d.ts.map +1 -0
  182. package/dist/modules/common/hooks/useCSVImport.d.ts +18 -0
  183. package/dist/modules/common/hooks/useCSVImport.d.ts.map +1 -0
  184. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts +5 -0
  185. package/dist/modules/common/hooks/useChatEndpointChecker.d.ts.map +1 -0
  186. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts +10 -0
  187. package/dist/modules/common/hooks/useConfirmMediaUpload.d.ts.map +1 -0
  188. package/dist/modules/common/hooks/useDashboardMetrics.d.ts +23 -0
  189. package/dist/modules/common/hooks/useDashboardMetrics.d.ts.map +1 -0
  190. package/dist/modules/common/hooks/useLocalStorage.d.ts +3 -0
  191. package/dist/modules/common/hooks/useLocalStorage.d.ts.map +1 -0
  192. package/dist/modules/common/hooks/useOrderAnalytics.d.ts +25 -0
  193. package/dist/modules/common/hooks/useOrderAnalytics.d.ts.map +1 -0
  194. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts +16 -0
  195. package/dist/modules/common/hooks/useOrderItemsAnalytics.d.ts.map +1 -0
  196. package/dist/modules/common/hooks/useOutsideClick.d.ts +3 -0
  197. package/dist/modules/common/hooks/useOutsideClick.d.ts.map +1 -0
  198. package/dist/modules/common/hooks/usePortal.d.ts +20 -0
  199. package/dist/modules/common/hooks/usePortal.d.ts.map +1 -0
  200. package/dist/modules/common/hooks/useShopConfiguration.d.ts +8 -0
  201. package/dist/modules/common/hooks/useShopConfiguration.d.ts.map +1 -0
  202. package/dist/modules/common/hooks/useShopInfo.d.ts +41 -0
  203. package/dist/modules/common/hooks/useShopInfo.d.ts.map +1 -0
  204. package/dist/modules/common/hooks/useStatusTypes.d.ts +10 -0
  205. package/dist/modules/common/hooks/useStatusTypes.d.ts.map +1 -0
  206. package/dist/modules/common/hooks/useSystemRoles.d.ts +7 -0
  207. package/dist/modules/common/hooks/useSystemRoles.d.ts.map +1 -0
  208. package/dist/modules/common/hooks/useTheme.d.ts +7 -0
  209. package/dist/modules/common/hooks/useTheme.d.ts.map +1 -0
  210. package/dist/modules/common/utils/deBounce.d.ts +3 -0
  211. package/dist/modules/common/utils/deBounce.d.ts.map +1 -0
  212. package/dist/modules/common/utils/defaultNextImageLoader.d.ts +7 -0
  213. package/dist/modules/common/utils/defaultNextImageLoader.d.ts.map +1 -0
  214. package/dist/modules/common/utils/formatUsername.d.ts +3 -0
  215. package/dist/modules/common/utils/formatUsername.d.ts.map +1 -0
  216. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts +30 -0
  217. package/dist/modules/common/utils/getSetupStepsConfigurationsMeta.d.ts.map +1 -0
  218. package/dist/modules/common/utils/normalizeFilterKeys.d.ts +4 -0
  219. package/dist/modules/common/utils/normalizeFilterKeys.d.ts.map +1 -0
  220. package/dist/modules/common/utils/useFormatDateTime.d.ts +7 -0
  221. package/dist/modules/common/utils/useFormatDateTime.d.ts.map +1 -0
  222. package/dist/modules/common/utils/utils.d.ts +21 -0
  223. package/dist/modules/common/utils/utils.d.ts.map +1 -0
  224. package/dist/modules/country/fragments/CountryFragment.d.ts +3 -0
  225. package/dist/modules/country/fragments/CountryFragment.d.ts.map +1 -0
  226. package/dist/modules/country/hooks/useCountries.d.ts +22 -0
  227. package/dist/modules/country/hooks/useCountries.d.ts.map +1 -0
  228. package/dist/modules/country.js +108 -0
  229. package/dist/modules/currency.js +119 -0
  230. package/dist/modules/delivery-provider.js +269 -0
  231. package/dist/modules/enrollment.js +353 -0
  232. package/dist/modules/event.js +123 -0
  233. package/dist/modules/filter.js +448 -0
  234. package/dist/modules/forms/components/Form.d.ts +8 -0
  235. package/dist/modules/forms/components/Form.d.ts.map +1 -0
  236. package/dist/modules/forms/hooks/useField.d.ts +35 -0
  237. package/dist/modules/forms/hooks/useField.d.ts.map +1 -0
  238. package/dist/modules/forms/hooks/useForm.d.ts +44 -0
  239. package/dist/modules/forms/hooks/useForm.d.ts.map +1 -0
  240. package/dist/modules/forms/hooks/useFormContext.d.ts +3 -0
  241. package/dist/modules/forms/hooks/useFormContext.d.ts.map +1 -0
  242. package/dist/modules/forms/lib/FormContext.d.ts +13 -0
  243. package/dist/modules/forms/lib/FormContext.d.ts.map +1 -0
  244. package/dist/modules/forms/lib/clean.d.ts +3 -0
  245. package/dist/modules/forms/lib/clean.d.ts.map +1 -0
  246. package/dist/modules/forms/lib/validators.d.ts +20 -0
  247. package/dist/modules/forms/lib/validators.d.ts.map +1 -0
  248. package/dist/modules/language/fragments/LanguageFragment.d.ts +3 -0
  249. package/dist/modules/language/fragments/LanguageFragment.d.ts.map +1 -0
  250. package/dist/modules/language/hooks/useLanguages.d.ts +19 -0
  251. package/dist/modules/language/hooks/useLanguages.d.ts.map +1 -0
  252. package/dist/modules/language.js +106 -0
  253. package/dist/modules/modal/components/AlertMessage.d.ts +9 -0
  254. package/dist/modules/modal/components/AlertMessage.d.ts.map +1 -0
  255. package/dist/modules/modal/components/DangerMessage.d.ts +12 -0
  256. package/dist/modules/modal/components/DangerMessage.d.ts.map +1 -0
  257. package/dist/modules/modal/components/ImportResultMessage.d.ts +14 -0
  258. package/dist/modules/modal/components/ImportResultMessage.d.ts.map +1 -0
  259. package/dist/modules/modal/components/Modal.d.ts +10 -0
  260. package/dist/modules/modal/components/Modal.d.ts.map +1 -0
  261. package/dist/modules/modal/components/ModalWrapper.d.ts +6 -0
  262. package/dist/modules/modal/components/ModalWrapper.d.ts.map +1 -0
  263. package/dist/modules/modal/hooks/useModal.d.ts +7 -0
  264. package/dist/modules/modal/hooks/useModal.d.ts.map +1 -0
  265. package/dist/modules/modal/utils/ModalContext.d.ts +9 -0
  266. package/dist/modules/modal/utils/ModalContext.d.ts.map +1 -0
  267. package/dist/modules/order/fragments/OrderDetailFragment.d.ts +3 -0
  268. package/dist/modules/order/fragments/OrderDetailFragment.d.ts.map +1 -0
  269. package/dist/modules/order/fragments/OrderFragment.d.ts +3 -0
  270. package/dist/modules/order/fragments/OrderFragment.d.ts.map +1 -0
  271. package/dist/modules/order/hooks/useOrders.d.ts +46 -0
  272. package/dist/modules/order/hooks/useOrders.d.ts.map +1 -0
  273. package/dist/modules/order.js +563 -0
  274. package/dist/modules/payment-providers.js +206 -0
  275. package/dist/modules/product/hooks/useProductsCount.d.ts +8 -0
  276. package/dist/modules/product/hooks/useProductsCount.d.ts.map +1 -0
  277. package/dist/modules/product-review.js +251 -0
  278. package/dist/modules/product.js +1929 -0
  279. package/dist/modules/quotation.js +297 -0
  280. package/dist/modules/token.js +143 -0
  281. package/dist/modules/warehousing-providers.js +206 -0
  282. package/dist/modules/work/fragments/WorkFragment.d.ts +3 -0
  283. package/dist/modules/work/fragments/WorkFragment.d.ts.map +1 -0
  284. package/dist/modules/work/hooks/useAddWork.d.ts +6 -0
  285. package/dist/modules/work/hooks/useAddWork.d.ts.map +1 -0
  286. package/dist/modules/work/hooks/useWork.d.ts +32 -0
  287. package/dist/modules/work/hooks/useWork.d.ts.map +1 -0
  288. package/dist/modules/work.js +308 -0
  289. package/dist/plugins.js +8 -0
  290. package/dist/providers.js +6 -0
  291. package/dist/sdk/hooks.d.ts +9 -0
  292. package/dist/sdk/hooks.d.ts.map +1 -0
  293. package/dist/sdk/modal.d.ts +7 -0
  294. package/dist/sdk/modal.d.ts.map +1 -0
  295. package/dist/sdk/plugins.d.ts +67 -0
  296. package/dist/sdk/plugins.d.ts.map +1 -0
  297. package/dist/sdk/providers.d.ts +5 -0
  298. package/dist/sdk/providers.d.ts.map +1 -0
  299. package/dist/sdk/theme.d.ts +26 -0
  300. package/dist/sdk/theme.d.ts.map +1 -0
  301. package/dist/theme.js +34 -0
  302. package/dist/ui.js +21527 -0
  303. package/out/403/index.html +2 -2
  304. package/out/404/index.html +2 -2
  305. package/out/404.html +2 -2
  306. package/out/423/index.html +2 -2
  307. package/out/500/index.html +2 -2
  308. package/out/_next/static/chunks/0-p8a6-okjx49.js +15 -0
  309. package/out/_next/static/chunks/0-u5tid26i8-3.js +188 -0
  310. package/out/_next/static/chunks/008hxgil51owu.js +234 -0
  311. package/out/_next/static/chunks/026k3ys50h91u.js +15 -0
  312. package/out/_next/static/chunks/02aa23atze2y4.js +119 -0
  313. package/out/_next/static/chunks/02dnhll1bce87.js +46 -0
  314. package/out/_next/static/chunks/03f0hv23abn4a.js +12 -0
  315. package/out/_next/static/chunks/03p0xulfluyqm.js +15 -0
  316. package/out/_next/static/chunks/044dmimivt13x.js +233 -0
  317. package/out/_next/static/chunks/047gokoblz-qy.js +16 -0
  318. package/out/_next/static/chunks/04yroykjly9ni.js +15 -0
  319. package/out/_next/static/chunks/05h2_5y4i_fe4.js +12 -0
  320. package/out/_next/static/chunks/0641gh6yb6tnd.js +3 -0
  321. package/out/_next/static/chunks/06bsql5zgjpaj.js +315 -0
  322. package/out/_next/static/chunks/06jtnxd7wr712.js +1 -0
  323. package/out/_next/static/chunks/070wy1qe-7-uf.js +242 -0
  324. package/out/_next/static/chunks/07l1vdt21xneu.js +14 -0
  325. package/out/_next/static/chunks/07q8ufsdxo1tx.js +1 -0
  326. package/out/_next/static/chunks/087a2d-0e1pvn.js +1 -0
  327. package/out/_next/static/chunks/09pees0w94cvm.js +1 -0
  328. package/out/_next/static/chunks/0_wmk0z5r9thu.js +95 -0
  329. package/out/_next/static/chunks/0ab_-095b34n5.js +90 -0
  330. package/out/_next/static/chunks/0aom8abciz-yf.js +1 -0
  331. package/out/_next/static/chunks/0cdcsn87u-tzw.js +1 -0
  332. package/out/_next/static/chunks/0cu-wqc76z_w6.js +1 -0
  333. package/out/_next/static/chunks/0dnzfqa8el54j.js +135 -0
  334. package/out/_next/static/chunks/0f-hhcgpd3kjt.js +5 -0
  335. package/out/_next/static/chunks/0gdriupdpmq28.js +14 -0
  336. package/out/_next/static/chunks/0hm6-xlqw4vmr.js +1 -0
  337. package/out/_next/static/chunks/0hmdmxkzhdtjx.js +155 -0
  338. package/out/_next/static/chunks/0hpirq7m-gjle.js +23 -0
  339. package/out/_next/static/chunks/0hup5ovc9v_-h.js +58 -0
  340. package/out/_next/static/chunks/0hxsdaxwhc3z4.js +110 -0
  341. package/out/_next/static/chunks/0j-yonuwgtg0k.js +22 -0
  342. package/out/_next/static/chunks/0jo3ujn_icmb9.js +28 -0
  343. package/out/_next/static/chunks/0mayhrft9-4hw.js +13 -0
  344. package/out/_next/static/chunks/0mdh4qszx-qw8.js +1 -0
  345. package/out/_next/static/chunks/0nyu34hvyz9_k.js +103 -0
  346. package/out/_next/static/chunks/0nz8nqr7k7pni.js +61 -0
  347. package/out/_next/static/chunks/0pjv94c771817.js +13 -0
  348. package/out/_next/static/chunks/0qrepe4aqal8_.js +2 -0
  349. package/out/_next/static/chunks/0qtbb-w9hs2i_.js +1 -0
  350. package/out/_next/static/chunks/0r0l1vs8bls6y.js +1 -0
  351. package/out/_next/static/chunks/0r2v5se5riad_.js +227 -0
  352. package/out/_next/static/chunks/0s3aax3no2y3_.js +54 -0
  353. package/out/_next/static/chunks/0sys36fl1uhl-.js +18 -0
  354. package/out/_next/static/chunks/0u-md-qpvyccn.js +149 -0
  355. package/out/_next/static/chunks/0ukobsq85_to1.js +135 -0
  356. package/out/_next/static/chunks/0vcn7yqzt3qlc.js +10 -0
  357. package/out/_next/static/chunks/0wl_oo549tgsw.js +14 -0
  358. package/out/_next/static/chunks/0wm5atnhe2mjs.js +119 -0
  359. package/out/_next/static/chunks/0wpmgf2-hr2iv.js +1 -0
  360. package/out/_next/static/chunks/0wthf9v7cuwqf.js +3 -0
  361. package/out/_next/static/chunks/0xcxmgeevaadl.js +8 -0
  362. package/out/_next/static/chunks/0xoerh23zk-pj.js +44 -0
  363. package/out/_next/static/chunks/0xvoojz5c4j32.js +14 -0
  364. package/out/_next/static/chunks/0ykc9b-l7rcv9.js +18 -0
  365. package/out/_next/static/chunks/0zb8qwy33hihq.js +142 -0
  366. package/out/_next/static/chunks/0zgu8kiokvsjz.js +1 -0
  367. package/out/_next/static/chunks/0zk0s8hqsf5tg.js +18 -0
  368. package/out/_next/static/chunks/0zl6mu89n1_wq.js +1 -0
  369. package/out/_next/static/chunks/0zntg6ltu_fk3.js +14 -0
  370. package/out/_next/static/chunks/10996osm11rxi.js +327 -0
  371. package/out/_next/static/chunks/10q9_f1ss9afd.js +8 -0
  372. package/out/_next/static/chunks/110vhftkm53lj.js +111 -0
  373. package/out/_next/static/chunks/113_jsmrqky1h.js +130 -0
  374. package/out/_next/static/chunks/11fqypagzye_v.js +43 -0
  375. package/out/_next/static/chunks/137522d4_apiu.js +166 -0
  376. package/out/_next/static/chunks/13ml43jv3bxh1.js +1 -0
  377. package/out/_next/static/chunks/16ad724tleody.js +13 -0
  378. package/out/_next/static/chunks/16r_t7quts1w0.js +289 -0
  379. package/out/_next/static/chunks/16yomp2b55xod.js +30 -0
  380. package/out/_next/static/chunks/17jd_42ijblk-.js +15 -0
  381. package/out/_next/static/chunks/17xseq9yxu638.js +1 -0
  382. package/out/_next/static/chunks/18yznjdgjug5c.js +7 -0
  383. package/out/_next/static/chunks/19i-cq0_2t00g.js +60 -0
  384. package/out/_next/static/chunks/19ppkss30jscq.js +13 -0
  385. package/out/_next/static/chunks/1_ov-8bomgh6c.js +54 -0
  386. package/out/_next/static/chunks/1b9l0n8vz64x7.js +233 -0
  387. package/out/_next/static/chunks/1cn3pe6lxja9e.js +44 -0
  388. package/out/_next/static/chunks/1dsjo02ozub3p.js +342 -0
  389. package/out/_next/static/chunks/1dut2ep8qfdv4.js +14 -0
  390. package/out/_next/static/chunks/1eqs_86cqpxcx.js +138 -0
  391. package/out/_next/static/chunks/1exlzd6w18o_b.js +8 -0
  392. package/out/_next/static/chunks/1f04wea7zvjf5.js +2 -0
  393. package/out/_next/static/chunks/1fqsykinbg1d_.js +12 -0
  394. package/out/_next/static/chunks/1g5l7e7du4p25.js +1 -0
  395. package/out/_next/static/chunks/1hokoliuqn63p.js +17 -0
  396. package/out/_next/static/chunks/1ihjqvn68cj5e.js +36 -0
  397. package/out/_next/static/chunks/1k798vpov34v6.js +12 -0
  398. package/out/_next/static/chunks/1lewut00m9sq1.js +1 -0
  399. package/out/_next/static/chunks/1lwiflo8v2d93.js +1 -0
  400. package/out/_next/static/chunks/1ng9tsm1f8e_a.js +1 -0
  401. package/out/_next/static/chunks/1nvy3y5qe_igv.js +233 -0
  402. package/out/_next/static/chunks/1osrrozfse5jn.js +190 -0
  403. package/out/_next/static/chunks/1ozaatz-b_-as.js +41 -0
  404. package/out/_next/static/chunks/1paq5rkj25r88.js +1 -0
  405. package/out/_next/static/chunks/1q2l02eq094zc.js +147 -0
  406. package/out/_next/static/chunks/1q8zx2rmluekr.js +13 -0
  407. package/out/_next/static/chunks/1qnuk3631sd6i.js +807 -0
  408. package/out/_next/static/chunks/1r0aluuzu5vw7.js +13 -0
  409. package/out/_next/static/chunks/1rgwj4dr0k4_b.js +5 -0
  410. package/out/_next/static/chunks/1sgv26vi42stl.js +13 -0
  411. package/out/_next/static/chunks/1t80pe40g73fh.js +82 -0
  412. package/out/_next/static/chunks/1u6jfjnf14knz.js +124 -0
  413. package/out/_next/static/chunks/1vnvinjvn78t3.js +1 -0
  414. package/out/_next/static/chunks/1xg3ey2rrdxfx.js +1 -0
  415. package/out/_next/static/chunks/1xx6ie3yh2hbk.js +235 -0
  416. package/out/_next/static/chunks/1y-vwb0-v5xv0.js +304 -0
  417. package/out/_next/static/chunks/2-8-i_m-82mjh.js +43 -0
  418. package/out/_next/static/chunks/2-s6g5_cyahx8.js +1 -0
  419. package/out/_next/static/chunks/20ndjd4r5l6vk.js +1 -0
  420. package/out/_next/static/chunks/20v019mj-zi94.js +13 -0
  421. package/out/_next/static/chunks/21w-hkh4_w1kl.js +19 -0
  422. package/out/_next/static/chunks/226ya3lbz_55w.js +19 -0
  423. package/out/_next/static/chunks/22az81pi-bqjb.js +1 -0
  424. package/out/_next/static/chunks/22get2_2lcba-.js +21 -0
  425. package/out/_next/static/chunks/22l-2aehes9lx.js +153 -0
  426. package/out/_next/static/chunks/23y9nin7qo-xy.js +17 -0
  427. package/out/_next/static/chunks/25t23h8zbmzh-.js +12 -0
  428. package/out/_next/static/chunks/273zh05aw6uz2.js +13 -0
  429. package/out/_next/static/chunks/28o-5560g4bwk.js +7 -0
  430. package/out/_next/static/chunks/28zahy_uqar2t.js +12 -0
  431. package/out/_next/static/chunks/29dylunjhn4te.js +34 -0
  432. package/out/_next/static/chunks/2_3qu55ddb4jo.js +3 -0
  433. package/out/_next/static/chunks/2_7z1veshuiiw.js +10 -0
  434. package/out/_next/static/chunks/2_ztj391g9yzt.js +226 -0
  435. package/out/_next/static/chunks/2a9z_gm1vn39c.js +173 -0
  436. package/out/_next/static/chunks/2a_46b7_7ml_y.js +1 -0
  437. package/out/_next/static/chunks/2b8nhs_3rpawc.js +1 -0
  438. package/out/_next/static/chunks/2biyd1hzgc2sv.js +339 -0
  439. package/out/_next/static/chunks/2c2vssolfspzg.js +50 -0
  440. package/out/_next/static/chunks/2dbrybnhe5thu.css +1 -0
  441. package/out/_next/static/chunks/2diqy5aehqe8j.js +58 -0
  442. package/out/_next/static/chunks/2djnsowjy3p8y.js +1 -0
  443. package/out/_next/static/chunks/2dq4d-ey-16cq.js +1 -0
  444. package/out/_next/static/chunks/2dyysegkbptw8.js +11 -0
  445. package/out/_next/static/chunks/2ei1rfxsl3q65.js +31 -0
  446. package/out/_next/static/chunks/2fazxtc5_9tgo.js +52 -0
  447. package/out/_next/static/chunks/2fzc9bsweg7nf.js +807 -0
  448. package/out/_next/static/chunks/2h5-bnhry6wzl.js +14 -0
  449. package/out/_next/static/chunks/2hmtn1okhj6zz.js +234 -0
  450. package/out/_next/static/chunks/2htrbj6g7da-e.js +12 -0
  451. package/out/_next/static/chunks/2j0apwnxuaeox.js +14 -0
  452. package/out/_next/static/chunks/2j51l4ukmrn7j.js +17 -0
  453. package/out/_next/static/chunks/2k4cusvrm93cp.js +39 -0
  454. package/out/_next/static/chunks/2ldks6pel2wcp.js +31 -0
  455. package/out/_next/static/chunks/2loz6t7f69t0c.js +1 -0
  456. package/out/_next/static/chunks/2onfts3kpe9d8.js +1 -0
  457. package/out/_next/static/chunks/2p9aozkdq_z13.js +329 -0
  458. package/out/_next/static/chunks/2pz2u5us_0jme.js +5 -0
  459. package/out/_next/static/chunks/2qaf44ypuy_4z.js +1 -0
  460. package/out/_next/static/chunks/2r1-eyf6hic-m.js +1 -0
  461. package/out/_next/static/chunks/2ritd1boot22-.js +32 -0
  462. package/out/_next/static/chunks/2s1__k407zn6n.js +1 -0
  463. package/out/_next/static/chunks/2s6qkrjh7-b6s.js +1 -0
  464. package/out/_next/static/chunks/2t70ji9pnllxh.js +81 -0
  465. package/out/_next/static/chunks/2tc6lgajxmo78.js +3 -0
  466. package/out/_next/static/chunks/2twd9trj9horc.js +61 -0
  467. package/out/_next/static/chunks/2ua7-skz9vm4r.js +13 -0
  468. package/out/_next/static/chunks/2vjkcd8g_hh68.js +46 -0
  469. package/out/_next/static/chunks/2w1twpn4nui6h.js +807 -0
  470. package/out/_next/static/chunks/2x4vo24qfe0mr.js +1 -0
  471. package/out/_next/static/chunks/2zm-d0-e0sxgo.js +23 -0
  472. package/out/_next/static/chunks/3-u1dp82vzyt9.js +1 -0
  473. package/out/_next/static/chunks/30iz3jszdu04d.js +11 -0
  474. package/out/_next/static/chunks/30jmh-3cp5wcg.js +12 -0
  475. package/out/_next/static/chunks/3178a_a_i-e-q.js +16 -0
  476. package/out/_next/static/chunks/317qzy7r8meg_.js +1 -0
  477. package/out/_next/static/chunks/32nwqfli0ne57.js +1 -0
  478. package/out/_next/static/chunks/33c-rzkj2k2v1.js +14 -0
  479. package/out/_next/static/chunks/33g91_yljnpiw.js +807 -0
  480. package/out/_next/static/chunks/34dhtdp_8idgm.js +658 -0
  481. package/out/_next/static/chunks/34ybf-w3bdlw8.js +13 -0
  482. package/out/_next/static/chunks/35-vqjhcep-zw.js +60 -0
  483. package/out/_next/static/chunks/358r9pdxbk-fv.js +39 -0
  484. package/out/_next/static/chunks/35a6ymsh4q0-o.js +14 -0
  485. package/out/_next/static/chunks/36yrxjq9zbvpx.js +13 -0
  486. package/out/_next/static/chunks/377ho63k7qphg.js +14 -0
  487. package/out/_next/static/chunks/37bs69urhjdz5.js +24 -0
  488. package/out/_next/static/chunks/37mpnb5qztb_g.js +15 -0
  489. package/out/_next/static/chunks/3827hqe9_anr7.js +24 -0
  490. package/out/_next/static/chunks/3a0_vzfa54k35.js +7 -0
  491. package/out/_next/static/chunks/3a8a8fpl7-ndf.js +1 -0
  492. package/out/_next/static/chunks/3b6hct2rk2wu9.js +24 -0
  493. package/out/_next/static/chunks/3czsj6bdmobbd.js +24 -0
  494. package/out/_next/static/chunks/3d0ic2ovyeue7.js +2 -0
  495. package/out/_next/static/chunks/3eq1b2m2xkkmp.js +1 -0
  496. package/out/_next/static/chunks/3f2ue6ut-mwka.js +2 -0
  497. package/out/_next/static/chunks/3g67xtrp0vv4m.js +1 -0
  498. package/out/_next/static/chunks/3iepyd4rzl-tt.js +13 -0
  499. package/out/_next/static/chunks/3j6p-522fcsnj.js +1 -0
  500. package/out/_next/static/chunks/3kle_yukf5aux.js +809 -0
  501. package/out/_next/static/chunks/3l_nx7eopgh02.js +1 -0
  502. package/out/_next/static/chunks/3mk-cv2ocv93u.js +50 -0
  503. package/out/_next/static/chunks/3n5290qcigwpc.js +13 -0
  504. package/out/_next/static/chunks/3nl02jbknvx4p.js +14 -0
  505. package/out/_next/static/chunks/3o5a5qn0dnq04.js +3 -0
  506. package/out/_next/static/chunks/3o5kwvdgt_t9z.js +73 -0
  507. package/out/_next/static/chunks/3qamj8gt1ijdz.js +12 -0
  508. package/out/_next/static/chunks/3rlrwz262rpw0.js +1 -0
  509. package/out/_next/static/chunks/3s3v9n_ob4m24.js +18 -0
  510. package/out/_next/static/chunks/3s47qr8fn6h4j.js +8 -0
  511. package/out/_next/static/chunks/3slzhmkeoggpm.js +66 -0
  512. package/out/_next/static/chunks/3tv9csz53av-5.js +1 -0
  513. package/out/_next/static/chunks/3uec1_7irpl71.js +16 -0
  514. package/out/_next/static/chunks/3uo1w1gaj7tsx.js +117 -0
  515. package/out/_next/static/chunks/3uwev5xyub_j1.js +7 -0
  516. package/out/_next/static/chunks/3w450c1xmh550.js +12 -0
  517. package/out/_next/static/chunks/3x8aami6-3l79.js +31 -0
  518. package/out/_next/static/chunks/3xhogi6_bbwh7.js +10 -0
  519. package/out/_next/static/chunks/3y62dz45ticve.js +1 -0
  520. package/out/_next/static/chunks/3yjzk_udmhv3i.js +1 -0
  521. package/out/_next/static/chunks/3z6v84zof80bt.js +1 -0
  522. package/out/_next/static/chunks/3zncjth-kop8p.js +1 -0
  523. package/out/_next/static/chunks/3zp4iedgev460.js +35 -0
  524. package/out/_next/static/chunks/413qu_x6yky1e.js +1 -0
  525. package/out/_next/static/chunks/41j8mb2ztwydi.js +14 -0
  526. package/out/_next/static/chunks/41pc5_e25bhgd.js +1 -0
  527. package/out/_next/static/chunks/424z-zudpy3n0.js +39 -0
  528. package/out/_next/static/chunks/42o6t6-v2qi37.js +29 -0
  529. package/out/_next/static/chunks/434iz38padke2.js +1 -0
  530. package/out/_next/static/chunks/43pb7hjetp965.js +1 -0
  531. package/out/_next/static/chunks/44rharl5hvsw-.js +22 -0
  532. package/out/_next/static/chunks/45ac68ug7hcoc.js +13 -0
  533. package/out/_next/static/chunks/turbopack-0-chqajqgydnn.js +1 -0
  534. package/out/_next/static/chunks/turbopack-0-jquaej6q4cd.js +1 -0
  535. package/out/_next/static/chunks/turbopack-01y_6kjoo1mvp.js +1 -0
  536. package/out/_next/static/chunks/turbopack-03_sghcquhw33.js +1 -0
  537. package/out/_next/static/chunks/turbopack-0a_5nw_3znl2r.js +1 -0
  538. package/out/_next/static/chunks/turbopack-0bbgz21dy5lm3.js +1 -0
  539. package/out/_next/static/chunks/turbopack-0cqzo60ry70im.js +1 -0
  540. package/out/_next/static/chunks/turbopack-0ex-kw1o5k02z.js +1 -0
  541. package/out/_next/static/chunks/turbopack-0g9gjb70ob0rb.js +1 -0
  542. package/out/_next/static/chunks/turbopack-0jzps1g34dah5.js +1 -0
  543. package/out/_next/static/chunks/turbopack-0o9rz5e94nq66.js +1 -0
  544. package/out/_next/static/chunks/turbopack-0rq3y47awgwpt.js +1 -0
  545. package/out/_next/static/chunks/turbopack-0vs4-gjxe552i.js +1 -0
  546. package/out/_next/static/chunks/turbopack-0x1jwahqhzo0u.js +1 -0
  547. package/out/_next/static/chunks/turbopack-13uretb6lcje8.js +1 -0
  548. package/out/_next/static/chunks/turbopack-14n2u99h724y-.js +1 -0
  549. package/out/_next/static/chunks/turbopack-1a774_gjam74t.js +1 -0
  550. package/out/_next/static/chunks/turbopack-1gy8illqlm_jj.js +1 -0
  551. package/out/_next/static/chunks/turbopack-1n9q29j854ltr.js +1 -0
  552. package/out/_next/static/chunks/turbopack-1nathpz4-f-4w.js +1 -0
  553. package/out/_next/static/chunks/turbopack-1nca86oa17qfx.js +1 -0
  554. package/out/_next/static/chunks/turbopack-1qe0zbu9fejdb.js +1 -0
  555. package/out/_next/static/chunks/turbopack-1qg26rdmwlotw.js +1 -0
  556. package/out/_next/static/chunks/turbopack-1u6lf-rzbdjuj.js +1 -0
  557. package/out/_next/static/chunks/turbopack-1z85kwwdibjh7.js +1 -0
  558. package/out/_next/static/chunks/turbopack-22as-nh7md98p.js +1 -0
  559. package/out/_next/static/chunks/turbopack-23lcv-araye0t.js +1 -0
  560. package/out/_next/static/chunks/turbopack-25gt3vwmogps-.js +1 -0
  561. package/out/_next/static/chunks/turbopack-26g97kfge67jz.js +1 -0
  562. package/out/_next/static/chunks/turbopack-26u67kbn41n8e.js +1 -0
  563. package/out/_next/static/chunks/turbopack-280jnadydykur.js +1 -0
  564. package/out/_next/static/chunks/turbopack-2bb6lvvhg6e0w.js +1 -0
  565. package/out/_next/static/chunks/turbopack-2bw5gluonepob.js +1 -0
  566. package/out/_next/static/chunks/turbopack-2c36n939jg0pf.js +1 -0
  567. package/out/_next/static/chunks/turbopack-2ez296aoalbog.js +1 -0
  568. package/out/_next/static/chunks/turbopack-2frqnl7lfn0h9.js +1 -0
  569. package/out/_next/static/chunks/turbopack-2jxkmyhbvdw4u.js +1 -0
  570. package/out/_next/static/chunks/turbopack-2k45z490u3tbj.js +1 -0
  571. package/out/_next/static/chunks/turbopack-2p-uq1erkf03-.js +1 -0
  572. package/out/_next/static/chunks/turbopack-2svkg0yvgyw3_.js +1 -0
  573. package/out/_next/static/chunks/turbopack-31s1c5ipeb5_p.js +1 -0
  574. package/out/_next/static/chunks/turbopack-33v049epa0erx.js +1 -0
  575. package/out/_next/static/chunks/turbopack-34jylrj_qw1ak.js +1 -0
  576. package/out/_next/static/chunks/turbopack-34u-t26ngu-oy.js +1 -0
  577. package/out/_next/static/chunks/turbopack-34x5gar31d5sv.js +1 -0
  578. package/out/_next/static/chunks/turbopack-363g_e-jzg5u_.js +1 -0
  579. package/out/_next/static/chunks/turbopack-39um5sy1v-bvw.js +1 -0
  580. package/out/_next/static/chunks/turbopack-3__2i-6jdv1s8.js +1 -0
  581. package/out/_next/static/chunks/turbopack-3b4s935ks8u-b.js +1 -0
  582. package/out/_next/static/chunks/turbopack-3b5-pdmr324f-.js +1 -0
  583. package/out/_next/static/chunks/turbopack-3bwm37xq99e4l.js +1 -0
  584. package/out/_next/static/chunks/turbopack-3ec8ol5n3kb0h.js +1 -0
  585. package/out/_next/static/chunks/turbopack-3gw7smd4lo5ud.js +1 -0
  586. package/out/_next/static/chunks/turbopack-3miy8-7wxcnbn.js +1 -0
  587. package/out/_next/static/chunks/turbopack-3nvjaj1vijowz.js +1 -0
  588. package/out/_next/static/chunks/turbopack-3poc67i76-q8q.js +1 -0
  589. package/out/_next/static/chunks/turbopack-3r1pnr94s1u0w.js +1 -0
  590. package/out/_next/static/chunks/turbopack-3sfa4031m280j.js +1 -0
  591. package/out/_next/static/chunks/turbopack-3sqs5hm2xhl3s.js +1 -0
  592. package/out/_next/static/chunks/turbopack-3xha6pmjqez6d.js +1 -0
  593. package/out/_next/static/chunks/turbopack-3yp7pgp42yfh3.js +1 -0
  594. package/out/_next/static/chunks/turbopack-3z_g6t7o2z7rb.js +1 -0
  595. package/out/_next/static/chunks/turbopack-3zb947kjm56zb.js +1 -0
  596. package/out/_next/static/chunks/turbopack-43m6wi0fybh1f.js +1 -0
  597. package/out/_next/static/mgojmR_4GNqJNutDR9oFi/_buildManifest.js +262 -0
  598. package/out/_offline/index.html +2 -2
  599. package/out/account/forgot-password/index.html +2 -2
  600. package/out/account/index.html +2 -2
  601. package/out/assortments/AssortmentDetailPage/index.html +2 -2
  602. package/out/assortments/index.html +2 -2
  603. package/out/assortments/new/index.html +2 -2
  604. package/out/copilot/index.html +2 -2
  605. package/out/country/CountryDetailPage/index.html +2 -2
  606. package/out/country/index.html +2 -2
  607. package/out/country/new/index.html +2 -2
  608. package/out/currency/CurrencyDetailPage/index.html +2 -2
  609. package/out/currency/index.html +2 -2
  610. package/out/currency/new/index.html +2 -2
  611. package/out/delivery-provider/DeliveryProviderDetailPage/index.html +2 -2
  612. package/out/delivery-provider/index.html +2 -2
  613. package/out/delivery-provider/new/index.html +2 -2
  614. package/out/enrollments/EnrollmentDetailPage/index.html +2 -2
  615. package/out/enrollments/index.html +2 -2
  616. package/out/events/EventDetailPage/index.html +2 -2
  617. package/out/events/index.html +2 -2
  618. package/out/exports/index.html +2 -2
  619. package/out/ext/[[...slug]]/index.html +11 -0
  620. package/out/external/index.html +2 -2
  621. package/out/filters/FilterDetailPage/index.html +2 -2
  622. package/out/filters/index.html +2 -2
  623. package/out/filters/new/index.html +2 -2
  624. package/out/index.html +2 -2
  625. package/out/install/index.html +2 -2
  626. package/out/language/LanguageDetailPage/index.html +2 -2
  627. package/out/language/index.html +2 -2
  628. package/out/language/new/index.html +2 -2
  629. package/out/log-in/index.html +2 -2
  630. package/out/orders/OrderDetailPage/index.html +2 -2
  631. package/out/orders/index.html +2 -2
  632. package/out/payment-provider/PaymentProviderDetailPage/index.html +2 -2
  633. package/out/payment-provider/index.html +2 -2
  634. package/out/payment-provider/new/index.html +2 -2
  635. package/out/products/ProductDetailPage/index.html +2 -2
  636. package/out/products/index.html +2 -2
  637. package/out/products/new/index.html +2 -2
  638. package/out/quotations/QuotationDetailPage/index.html +2 -2
  639. package/out/quotations/index.html +2 -2
  640. package/out/reset-password/index.html +2 -2
  641. package/out/sign-up/index.html +2 -2
  642. package/out/styleguide/index.html +2 -2
  643. package/out/tokens/TokenDetailPage/index.html +2 -2
  644. package/out/tokens/index.html +2 -2
  645. package/out/users/UserDetailPage/index.html +2 -2
  646. package/out/users/index.html +2 -2
  647. package/out/users/new/index.html +2 -2
  648. package/out/verify-email/index.html +2 -2
  649. package/out/warehousing-provider/WarehousingProviderDetailPage/index.html +2 -2
  650. package/out/warehousing-provider/index.html +2 -2
  651. package/out/warehousing-provider/new/index.html +2 -2
  652. package/out/works/WorkDetailPage/index.html +2 -2
  653. package/out/works/WorkQueueListView/index.html +2 -2
  654. package/out/works/index.html +2 -2
  655. package/out/works/management/index.html +2 -2
  656. package/package.json +104 -14
  657. package/src/modules/accounts/index.ts +34 -0
  658. package/src/modules/assortment/index.ts +29 -0
  659. package/src/modules/copilot/index.ts +4 -0
  660. package/src/modules/country/index.ts +5 -0
  661. package/src/modules/currency/index.ts +5 -0
  662. package/src/modules/delivery-provider/index.ts +7 -0
  663. package/src/modules/enrollment/index.ts +6 -0
  664. package/src/modules/event/index.ts +3 -0
  665. package/src/modules/filter/index.ts +13 -0
  666. package/src/modules/language/index.ts +5 -0
  667. package/src/modules/order/index.ts +8 -0
  668. package/src/modules/payment-providers/index.ts +7 -0
  669. package/src/modules/product/index.ts +47 -0
  670. package/src/modules/product-review/index.ts +6 -0
  671. package/src/modules/quotation/index.ts +6 -0
  672. package/src/modules/token/index.ts +3 -0
  673. package/src/modules/warehousing-providers/index.ts +7 -0
  674. package/src/modules/work/index.ts +7 -0
  675. package/src/sdk/hooks.ts +11 -0
  676. package/src/sdk/modal.ts +6 -0
  677. package/src/sdk/plugin-build.mjs +112 -0
  678. package/src/sdk/plugin-build.test.mjs +11 -0
  679. package/src/sdk/plugins.ts +88 -0
  680. package/src/sdk/providers.ts +4 -0
  681. package/src/sdk/tailwind-preset.mjs +94 -0
  682. package/src/sdk/theme.ts +61 -0
  683. package/src/styles/globals.css +291 -0
  684. package/out/_next/static/NCD-SJ8yCV0Afw8rFopK9/_buildManifest.js +0 -258
  685. package/out/_next/static/chunks/0-beu4vu82jrh.js +0 -1
  686. package/out/_next/static/chunks/0-bq_~1lrxscv.js +0 -1
  687. package/out/_next/static/chunks/0-gs6rs8.en66.js +0 -807
  688. package/out/_next/static/chunks/0.4qfzuvwzsxc.js +0 -346
  689. package/out/_next/static/chunks/0.ezy3xvxrqcc.js +0 -15
  690. package/out/_next/static/chunks/0.i9a933lfo25.js +0 -110
  691. package/out/_next/static/chunks/0.qv4h3l4v.mz.js +0 -807
  692. package/out/_next/static/chunks/00-1l-sb67jn-.js +0 -807
  693. package/out/_next/static/chunks/0063j04yfdol-.js +0 -13
  694. package/out/_next/static/chunks/006d2uxhsngs-.js +0 -1
  695. package/out/_next/static/chunks/00d66~in48qe1.js +0 -108
  696. package/out/_next/static/chunks/00u_9mz-xfmbu.js +0 -119
  697. package/out/_next/static/chunks/00ysn67q-k.lf.js +0 -384
  698. package/out/_next/static/chunks/00z8y5zmd5ley.js +0 -16
  699. package/out/_next/static/chunks/01.ug0e_hak5n.js +0 -31
  700. package/out/_next/static/chunks/01755gvyv1u4p.js +0 -342
  701. package/out/_next/static/chunks/024hggxa5rlsk.js +0 -16
  702. package/out/_next/static/chunks/025rs.6-.kttm.js +0 -177
  703. package/out/_next/static/chunks/029met6o9c69_.js +0 -132
  704. package/out/_next/static/chunks/035ijcwfe128..js +0 -13
  705. package/out/_next/static/chunks/039.n12k.ourz.js +0 -1
  706. package/out/_next/static/chunks/039laq217w5af.js +0 -1
  707. package/out/_next/static/chunks/03awhk2amfyg9.js +0 -13
  708. package/out/_next/static/chunks/03b6o0yl3wq69.js +0 -324
  709. package/out/_next/static/chunks/03exf~-d8n0~p.js +0 -12
  710. package/out/_next/static/chunks/043qhigp~b~xd.js +0 -288
  711. package/out/_next/static/chunks/047b32b2zk0zr.js +0 -50
  712. package/out/_next/static/chunks/04ljxsi4h8opa.js +0 -3
  713. package/out/_next/static/chunks/05-wy9wkovd44.js +0 -66
  714. package/out/_next/static/chunks/059j6ba8pjbxt.js +0 -2
  715. package/out/_next/static/chunks/05c669_6-rcl4.js +0 -15
  716. package/out/_next/static/chunks/05ebn-rbx77t1.js +0 -1
  717. package/out/_next/static/chunks/05ijoypg9erzj.js +0 -15
  718. package/out/_next/static/chunks/05mdbs7fsyl0j.js +0 -15
  719. package/out/_next/static/chunks/05xkbw-s9zm4v.js +0 -1
  720. package/out/_next/static/chunks/05y5i1xi9l7xo.js +0 -46
  721. package/out/_next/static/chunks/06jxo~w32bob0.js +0 -14
  722. package/out/_next/static/chunks/06l-x0hfnht~9.js +0 -12
  723. package/out/_next/static/chunks/06rpbu900ohev.js +0 -807
  724. package/out/_next/static/chunks/06wxd~64yev29.js +0 -1
  725. package/out/_next/static/chunks/074t2kkalxoor.js +0 -54
  726. package/out/_next/static/chunks/0757.exyqs35o.js +0 -1
  727. package/out/_next/static/chunks/07bj_95mgrfr7.js +0 -81
  728. package/out/_next/static/chunks/07e9hvcn2m7m0.css +0 -1
  729. package/out/_next/static/chunks/07gsr_4x3t83l.js +0 -1
  730. package/out/_next/static/chunks/07m0kcby2q9_3.js +0 -119
  731. package/out/_next/static/chunks/07rosayyue4dv.js +0 -5
  732. package/out/_next/static/chunks/07vc0lr9~n374.js +0 -807
  733. package/out/_next/static/chunks/07we~tcuuf587.js +0 -1
  734. package/out/_next/static/chunks/08-e12375gky7.js +0 -1
  735. package/out/_next/static/chunks/08g5cr0k-wewy.js +0 -13
  736. package/out/_next/static/chunks/08gnfg~ucaonj.js +0 -31
  737. package/out/_next/static/chunks/08l8.c5-zq8l_.js +0 -13
  738. package/out/_next/static/chunks/08s08655wboxs.js +0 -224
  739. package/out/_next/static/chunks/08ubwqxtv1pi8.js +0 -471
  740. package/out/_next/static/chunks/093du9_a7j~e9.js +0 -22
  741. package/out/_next/static/chunks/09ar00gwggnv2.js +0 -92
  742. package/out/_next/static/chunks/09ew07.pd~qmo.js +0 -31
  743. package/out/_next/static/chunks/09h16th.ukf49.js +0 -9
  744. package/out/_next/static/chunks/09i.iewg619r8.js +0 -1
  745. package/out/_next/static/chunks/09ird980jk5l4.js +0 -1
  746. package/out/_next/static/chunks/09ti6--w-81qk.js +0 -12
  747. package/out/_next/static/chunks/0_.rynghl8eid.js +0 -16
  748. package/out/_next/static/chunks/0_fjllta7r.pd.js +0 -1
  749. package/out/_next/static/chunks/0_hapi9~w_m74.js +0 -807
  750. package/out/_next/static/chunks/0_rymam7ts5h_.js +0 -61
  751. package/out/_next/static/chunks/0_tmrtwx_w001.js +0 -1
  752. package/out/_next/static/chunks/0_wmd30ovkohg.js +0 -14
  753. package/out/_next/static/chunks/0a4iuso54enw6.js +0 -43
  754. package/out/_next/static/chunks/0a9xn3eyi55p7.js +0 -807
  755. package/out/_next/static/chunks/0ab-_zb.d-ta~.js +0 -13
  756. package/out/_next/static/chunks/0agmcim_ow38h.js +0 -41
  757. package/out/_next/static/chunks/0ah_xk7gumihc.js +0 -10
  758. package/out/_next/static/chunks/0al9fetggpofs.js +0 -101
  759. package/out/_next/static/chunks/0apih1f_pg7x5.js +0 -22
  760. package/out/_next/static/chunks/0aqef_pw6d4-x.js +0 -12
  761. package/out/_next/static/chunks/0av.mpk52l~sj.js +0 -78
  762. package/out/_next/static/chunks/0b26w_2v.jnnp.js +0 -23
  763. package/out/_next/static/chunks/0bgpq4k~.1ow~.js +0 -1
  764. package/out/_next/static/chunks/0b~~k586vhgzn.js +0 -22
  765. package/out/_next/static/chunks/0c1ohyu0~45-6.js +0 -16
  766. package/out/_next/static/chunks/0c6zpdc5tnyit.js +0 -14
  767. package/out/_next/static/chunks/0cxr_f9owlixa.js +0 -147
  768. package/out/_next/static/chunks/0d4_~230qii9x.js +0 -8
  769. package/out/_next/static/chunks/0d7ng.3g0fqyq.js +0 -14
  770. package/out/_next/static/chunks/0dgzbrz_ks6y3.js +0 -836
  771. package/out/_next/static/chunks/0dmlsqy.34z7l.js +0 -5
  772. package/out/_next/static/chunks/0d~mpqdnsqc_3.js +0 -217
  773. package/out/_next/static/chunks/0e.ov59u.i2g..js +0 -26
  774. package/out/_next/static/chunks/0e7j7~xp-kfcl.js +0 -1
  775. package/out/_next/static/chunks/0eshxr9tyc-ob.js +0 -1
  776. package/out/_next/static/chunks/0eyuawigvkque.js +0 -144
  777. package/out/_next/static/chunks/0f0p~b_1z06f-.js +0 -12
  778. package/out/_next/static/chunks/0f1vh2kuipe~w.js +0 -1
  779. package/out/_next/static/chunks/0f2lcm2fvm0o4.js +0 -15
  780. package/out/_next/static/chunks/0f5-n-rcb1ksy.js +0 -61
  781. package/out/_next/static/chunks/0f7rfo-9v~6ta.js +0 -16
  782. package/out/_next/static/chunks/0fadm_h6dqral.js +0 -1
  783. package/out/_next/static/chunks/0fgje3pp6kr-..js +0 -21
  784. package/out/_next/static/chunks/0fixfg1.spty7.js +0 -8
  785. package/out/_next/static/chunks/0fo857sizpzb..js +0 -14
  786. package/out/_next/static/chunks/0fpmn5~h1l5fy.js +0 -51
  787. package/out/_next/static/chunks/0fzx56yu8w89-.js +0 -1
  788. package/out/_next/static/chunks/0g5.zeq8z86p8.js +0 -22
  789. package/out/_next/static/chunks/0gcrw01taxxl6.js +0 -1
  790. package/out/_next/static/chunks/0hprhos6ompyh.js +0 -1
  791. package/out/_next/static/chunks/0hv.16xst798a.js +0 -807
  792. package/out/_next/static/chunks/0i67~d9m79069.js +0 -1
  793. package/out/_next/static/chunks/0i9ujbll13rjg.js +0 -7
  794. package/out/_next/static/chunks/0ixp-hqnt2hdk.js +0 -188
  795. package/out/_next/static/chunks/0j3_ll.umtrlh.js +0 -15
  796. package/out/_next/static/chunks/0j8_vntnh3wh1.js +0 -384
  797. package/out/_next/static/chunks/0jcl.bguz9-il.js +0 -173
  798. package/out/_next/static/chunks/0jhfv_wn9s6x1.js +0 -1
  799. package/out/_next/static/chunks/0jthyhkkkajye.js +0 -87
  800. package/out/_next/static/chunks/0jyfzjlxmkv47.js +0 -1
  801. package/out/_next/static/chunks/0k33b3l3swmdp.js +0 -14
  802. package/out/_next/static/chunks/0k8cqr5rpupnp.js +0 -12
  803. package/out/_next/static/chunks/0kacoozv1plky.js +0 -12
  804. package/out/_next/static/chunks/0kb8vq-u9e5ie.js +0 -596
  805. package/out/_next/static/chunks/0kpfj.1wbd8ym.js +0 -200
  806. package/out/_next/static/chunks/0kws6.oh9adj9.js +0 -14
  807. package/out/_next/static/chunks/0l6-vjb..0-s7.js +0 -286
  808. package/out/_next/static/chunks/0l8ujxmk7702g.js +0 -1
  809. package/out/_next/static/chunks/0lcd2so6jg-_l.js +0 -44
  810. package/out/_next/static/chunks/0lhvveiv7i555.js +0 -13
  811. package/out/_next/static/chunks/0lim3v66fnjbi.js +0 -73
  812. package/out/_next/static/chunks/0lj_~1h9s9o4p.js +0 -15
  813. package/out/_next/static/chunks/0m2jz56bm31rn.js +0 -13
  814. package/out/_next/static/chunks/0mw6751mia5o-.js +0 -13
  815. package/out/_next/static/chunks/0m~4npg.nbafl.js +0 -807
  816. package/out/_next/static/chunks/0nnrgfwlre~2w.js +0 -12
  817. package/out/_next/static/chunks/0nvdm-r7zmv-l.js +0 -1
  818. package/out/_next/static/chunks/0nyyy1v4911lw.js +0 -59
  819. package/out/_next/static/chunks/0o05daemjdhug.js +0 -227
  820. package/out/_next/static/chunks/0o6szwcbqvtk..js +0 -1
  821. package/out/_next/static/chunks/0oq1lazm-ypco.js +0 -15
  822. package/out/_next/static/chunks/0owfq70q4gv3g.js +0 -11
  823. package/out/_next/static/chunks/0o~ytet2snd7..js +0 -18
  824. package/out/_next/static/chunks/0pooq0ei74.fu.js +0 -17
  825. package/out/_next/static/chunks/0q92oiu-paus_.js +0 -1
  826. package/out/_next/static/chunks/0r.pkr~.dyugv.js +0 -137
  827. package/out/_next/static/chunks/0r.xn-_woklgt.js +0 -138
  828. package/out/_next/static/chunks/0r2eg~z0yxhkm.js +0 -384
  829. package/out/_next/static/chunks/0rf4yd5v399-n.js +0 -342
  830. package/out/_next/static/chunks/0s9gw8v77opep.js +0 -12
  831. package/out/_next/static/chunks/0sq1ba8siz_al.js +0 -46
  832. package/out/_next/static/chunks/0tgyufn7ieyma.js +0 -23
  833. package/out/_next/static/chunks/0tq-lptj3-s~9.js +0 -7
  834. package/out/_next/static/chunks/0tur4u0bq8afu.js +0 -1
  835. package/out/_next/static/chunks/0u.p7-5euvw9g.js +0 -101
  836. package/out/_next/static/chunks/0u0zlnx_0uuo~.js +0 -1
  837. package/out/_next/static/chunks/0ud072y3rsxuo.js +0 -26
  838. package/out/_next/static/chunks/0ueboweabxsm_.js +0 -12
  839. package/out/_next/static/chunks/0ulpot4q9efmn.js +0 -1
  840. package/out/_next/static/chunks/0up4o93erzv5i.js +0 -15
  841. package/out/_next/static/chunks/0uppdoxx035f~.js +0 -807
  842. package/out/_next/static/chunks/0v01e3xk0z2zz.js +0 -10
  843. package/out/_next/static/chunks/0v7odmyxhwxk9.js +0 -5
  844. package/out/_next/static/chunks/0vaop4ncta92i.js +0 -43
  845. package/out/_next/static/chunks/0vef8~~ul~q~3.js +0 -188
  846. package/out/_next/static/chunks/0vjviijon1cf_.js +0 -227
  847. package/out/_next/static/chunks/0vo3lqvc1gnao.js +0 -1
  848. package/out/_next/static/chunks/0vqde~70jg4mp.js +0 -13
  849. package/out/_next/static/chunks/0w_lpiygl_gbj.js +0 -51
  850. package/out/_next/static/chunks/0wm9vrqp0f2-g.js +0 -1
  851. package/out/_next/static/chunks/0wt4fkc59wtk~.js +0 -1
  852. package/out/_next/static/chunks/0x0ro0p0oede-.js +0 -1
  853. package/out/_next/static/chunks/0x5~rk9ckvkzm.js +0 -5
  854. package/out/_next/static/chunks/0xa.gldl0ypuc.js +0 -36
  855. package/out/_next/static/chunks/0xyz4eb8oj14e.js +0 -32
  856. package/out/_next/static/chunks/0x~m529wi_q8r.js +0 -807
  857. package/out/_next/static/chunks/0ygzo.kyf038-.js +0 -13
  858. package/out/_next/static/chunks/0z5_-ukry36hl.js +0 -905
  859. package/out/_next/static/chunks/0z69nmy7s-zha.js +0 -10
  860. package/out/_next/static/chunks/0zcy4ll048jyy.js +0 -13
  861. package/out/_next/static/chunks/0zpa9vt2u_r06.js +0 -14
  862. package/out/_next/static/chunks/0zsl0gp2-m_8s.js +0 -1
  863. package/out/_next/static/chunks/0zw1-wa39f8lg.js +0 -1
  864. package/out/_next/static/chunks/0z~lvtnl1p.em.js +0 -78
  865. package/out/_next/static/chunks/0~4r9ol9.3i_l.js +0 -46
  866. package/out/_next/static/chunks/0~4s5vi61p7ev.js +0 -291
  867. package/out/_next/static/chunks/0~6ud_t-945ch.js +0 -288
  868. package/out/_next/static/chunks/0~mh5ybxo9nf2.js +0 -19
  869. package/out/_next/static/chunks/0~zg_~~subg_x.js +0 -1
  870. package/out/_next/static/chunks/10.uqlra33~68.js +0 -13
  871. package/out/_next/static/chunks/10g0ipk~-ofy6.js +0 -20
  872. package/out/_next/static/chunks/10h4imeqlg217.js +0 -8
  873. package/out/_next/static/chunks/10jiudk1sj2jm.js +0 -14
  874. package/out/_next/static/chunks/10kcfk2uu1e6x.js +0 -73
  875. package/out/_next/static/chunks/10pv9vc9myzuy.js +0 -58
  876. package/out/_next/static/chunks/11d00p~.l1k_u.js +0 -8
  877. package/out/_next/static/chunks/11lx7_qu.04js.js +0 -596
  878. package/out/_next/static/chunks/11svm4d1gbpg3.js +0 -13
  879. package/out/_next/static/chunks/11xvbwibrxg70.js +0 -44
  880. package/out/_next/static/chunks/12_-fnbe.fpy3.js +0 -142
  881. package/out/_next/static/chunks/12_5sds1suvhm.js +0 -13
  882. package/out/_next/static/chunks/12eo~x2_f0n1c.js +0 -1
  883. package/out/_next/static/chunks/131o1ib1p4q0~.js +0 -807
  884. package/out/_next/static/chunks/13azvhnsuoq~i.js +0 -193
  885. package/out/_next/static/chunks/13qkehmx~~nca.js +0 -1
  886. package/out/_next/static/chunks/13xo605mvuvr..js +0 -137
  887. package/out/_next/static/chunks/14-js791sn0n..js +0 -90
  888. package/out/_next/static/chunks/149uwpe4mqt~4.js +0 -3
  889. package/out/_next/static/chunks/152e33k3zn_7h.js +0 -13
  890. package/out/_next/static/chunks/156o0mg9e~c1z.js +0 -135
  891. package/out/_next/static/chunks/15946_7~ym9mj.js +0 -1
  892. package/out/_next/static/chunks/15im3g6.ezb86.js +0 -16
  893. package/out/_next/static/chunks/167enz~evud8u.js +0 -1
  894. package/out/_next/static/chunks/16dxg.m0iyhff.js +0 -20
  895. package/out/_next/static/chunks/16e76-izprx_3.js +0 -60
  896. package/out/_next/static/chunks/17556jivokcgt.js +0 -13
  897. package/out/_next/static/chunks/17831iuhggap-.js +0 -5
  898. package/out/_next/static/chunks/17lq99ack-rqn.js +0 -7
  899. package/out/_next/static/chunks/1801hoawv7tvj.js +0 -209
  900. package/out/_next/static/chunks/turbopack-0-f1h~_vf~hgt.js +0 -1
  901. package/out/_next/static/chunks/turbopack-00gp6932c5-pc.js +0 -1
  902. package/out/_next/static/chunks/turbopack-00tplfce3sqmv.js +0 -1
  903. package/out/_next/static/chunks/turbopack-02xfqg-e5e5bq.js +0 -1
  904. package/out/_next/static/chunks/turbopack-033ew5zdp4sni.js +0 -1
  905. package/out/_next/static/chunks/turbopack-04ryg.qj6ce.e.js +0 -1
  906. package/out/_next/static/chunks/turbopack-05pr_j8b3qpck.js +0 -1
  907. package/out/_next/static/chunks/turbopack-05t73_ssb6_h5.js +0 -1
  908. package/out/_next/static/chunks/turbopack-06k1fv3edi.oc.js +0 -1
  909. package/out/_next/static/chunks/turbopack-06s9wk6xrnhe..js +0 -1
  910. package/out/_next/static/chunks/turbopack-07pf350usbyrn.js +0 -1
  911. package/out/_next/static/chunks/turbopack-07qx6il~q8zvj.js +0 -1
  912. package/out/_next/static/chunks/turbopack-093c3g8x0fud~.js +0 -1
  913. package/out/_next/static/chunks/turbopack-09mkh-~o1m0t4.js +0 -1
  914. package/out/_next/static/chunks/turbopack-0_6hyjgtzvvlt.js +0 -1
  915. package/out/_next/static/chunks/turbopack-0_jrb8zv4u-h5.js +0 -1
  916. package/out/_next/static/chunks/turbopack-0_z4clx8_mihg.js +0 -1
  917. package/out/_next/static/chunks/turbopack-0_~3azjxcbh7b.js +0 -1
  918. package/out/_next/static/chunks/turbopack-0acoq2sfyoi9y.js +0 -1
  919. package/out/_next/static/chunks/turbopack-0ce310hugu4ud.js +0 -1
  920. package/out/_next/static/chunks/turbopack-0cq29kq0j_4v~.js +0 -1
  921. package/out/_next/static/chunks/turbopack-0e-cncqz58fjt.js +0 -1
  922. package/out/_next/static/chunks/turbopack-0e2su8irrrxe9.js +0 -1
  923. package/out/_next/static/chunks/turbopack-0e8f.eohopo8i.js +0 -1
  924. package/out/_next/static/chunks/turbopack-0ek~cn8gmycju.js +0 -1
  925. package/out/_next/static/chunks/turbopack-0eywiuu9zzv~v.js +0 -1
  926. package/out/_next/static/chunks/turbopack-0ft2eo1uoq84f.js +0 -1
  927. package/out/_next/static/chunks/turbopack-0h0v60mhtl8e5.js +0 -1
  928. package/out/_next/static/chunks/turbopack-0hd7gd_hw0ffd.js +0 -1
  929. package/out/_next/static/chunks/turbopack-0ho~reia368_n.js +0 -1
  930. package/out/_next/static/chunks/turbopack-0hs67a4-408yr.js +0 -1
  931. package/out/_next/static/chunks/turbopack-0hzo_yuvuoq4p.js +0 -1
  932. package/out/_next/static/chunks/turbopack-0iqen9zbwhwwt.js +0 -1
  933. package/out/_next/static/chunks/turbopack-0lse_458kpvoc.js +0 -1
  934. package/out/_next/static/chunks/turbopack-0m802fcmg9zeo.js +0 -1
  935. package/out/_next/static/chunks/turbopack-0mh8jqpakiu6t.js +0 -1
  936. package/out/_next/static/chunks/turbopack-0n7uk~in3~kz5.js +0 -1
  937. package/out/_next/static/chunks/turbopack-0oq4yqp_mwlp8.js +0 -1
  938. package/out/_next/static/chunks/turbopack-0p8.m9z07pk0d.js +0 -1
  939. package/out/_next/static/chunks/turbopack-0q35m3rl2~7_w.js +0 -1
  940. package/out/_next/static/chunks/turbopack-0qj_d90z9-.xb.js +0 -1
  941. package/out/_next/static/chunks/turbopack-0rw3antw3c5q1.js +0 -1
  942. package/out/_next/static/chunks/turbopack-0s1w5b4s~tq0a.js +0 -1
  943. package/out/_next/static/chunks/turbopack-0s3brlp4-qpvy.js +0 -1
  944. package/out/_next/static/chunks/turbopack-0ssu8b8ns4wgj.js +0 -1
  945. package/out/_next/static/chunks/turbopack-0txlw7w4nbwom.js +0 -1
  946. package/out/_next/static/chunks/turbopack-0umaqu4ffby0g.js +0 -1
  947. package/out/_next/static/chunks/turbopack-0upagoxw-k-s-.js +0 -1
  948. package/out/_next/static/chunks/turbopack-0v97f616jctw_.js +0 -1
  949. package/out/_next/static/chunks/turbopack-0vborwvkaogp3.js +0 -1
  950. package/out/_next/static/chunks/turbopack-0vii195vc_rhx.js +0 -1
  951. package/out/_next/static/chunks/turbopack-0vy4m9hkmjj~..js +0 -1
  952. package/out/_next/static/chunks/turbopack-0wkwlz_hsol74.js +0 -1
  953. package/out/_next/static/chunks/turbopack-0w~j_hagmzb-9.js +0 -1
  954. package/out/_next/static/chunks/turbopack-0xe-7k8uoudaf.js +0 -1
  955. package/out/_next/static/chunks/turbopack-107_r~te8y84z.js +0 -1
  956. package/out/_next/static/chunks/turbopack-10m1bv2pqkdnu.js +0 -1
  957. package/out/_next/static/chunks/turbopack-11b3cci1vf3sv.js +0 -1
  958. package/out/_next/static/chunks/turbopack-11bncwch._hz4.js +0 -1
  959. package/out/_next/static/chunks/turbopack-11f~mh1t1pbfv.js +0 -1
  960. package/out/_next/static/chunks/turbopack-14fqn-ie4g30t.js +0 -1
  961. package/out/_next/static/chunks/turbopack-151-hh8klk1hk.js +0 -1
  962. package/out/_next/static/chunks/turbopack-16yza259goc47.js +0 -1
  963. package/out/admin-ui-permissions.js +0 -129
  964. /package/out/_next/static/chunks/{0a1flay6uksa2.js → 0wooaklx8_14q.js} +0 -0
  965. /package/out/_next/static/chunks/{0htfk2vj7m.9j.js → 1jqnrnw0p9tw5.js} +0 -0
  966. /package/out/_next/static/{NCD-SJ8yCV0Afw8rFopK9 → mgojmR_4GNqJNutDR9oFi}/_clientMiddlewareManifest.js +0 -0
  967. /package/out/_next/static/{NCD-SJ8yCV0Afw8rFopK9 → mgojmR_4GNqJNutDR9oFi}/_ssgManifest.js +0 -0
@@ -0,0 +1,658 @@
1
+ (globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,42929,10878,97057,95379,51628,e=>{"use strict";var t=e.i(91398),a=e.i(69322),s=e.i(66773),l=e.i(25705),i=e.i(50243),d=e.i(94330),r=e.i(43054),n=e.i(95336),o=e.i(16113),u=e.i(82191),c=e.i(31004),m=e.i(76929),p=e.i(27927),f=e.i(61113),x=e.i(49740),g=e.i(11056),h=e.i(42532),v=e.i(10785),b=e.i(1330),y=e.i(73356),j=e.i(50099),I=e.i(77035),w=e.i(56902),M=e.i(72264),P=e.i(56779),N=e.i(19051),_=e.i(11907),k=e.i(34948),$=e.i(41418),C=e.i(58971),S=e.i(91788),T=e.i(44112),q=e.i(5505),R=e.i(53296),A=e.i(59080),V=e.i(32171),D=e.i(1880);let E=A.gql`
2
+ fragment ProductAssignmentFragment on ProductVariationAssignment {
3
+ _id
4
+ vectors {
5
+ _id
6
+ option {
7
+ _id
8
+ value
9
+ texts {
10
+ _id
11
+ title
12
+ subtitle
13
+ }
14
+ }
15
+ variation {
16
+ _id
17
+ key
18
+ texts {
19
+ _id
20
+ locale
21
+ title
22
+ }
23
+ }
24
+ }
25
+ product {
26
+ _id
27
+ texts {
28
+ _id
29
+ title
30
+ slug
31
+ subtitle
32
+ }
33
+ }
34
+ }
35
+ `,U=A.gql`
36
+ query ProductAssignments($productId: ID, $slug: String) {
37
+ product(productId: $productId, slug: $slug) {
38
+ _id
39
+ ... on ConfigurableProduct {
40
+ texts {
41
+ _id
42
+ subtitle
43
+ slug
44
+ title
45
+ }
46
+ variations {
47
+ _id
48
+ key
49
+ texts {
50
+ _id
51
+ title
52
+ }
53
+ options {
54
+ _id
55
+ value
56
+ texts {
57
+ _id
58
+ title
59
+ }
60
+ }
61
+ }
62
+ assignments(includeInactive: true) {
63
+ ...ProductAssignmentFragment
64
+ }
65
+ }
66
+ }
67
+ }
68
+ ${E}
69
+ `;var O=e.i(8918);let L=(e,t,a)=>{let s=e[a],l=[];return(s?.values.filter(e=>e.length).forEach(e=>{let a={};a[s.key]=e,t.length>0?t.forEach(e=>{l.push({...e,...a})}):l.push(a)}),e.length>a+1)?L(e,l,a+1):Array.from(new Set(l.map(e=>JSON.stringify(e)))).map(e=>JSON.parse(e))},F=({_id:e,texts:t})=>({value:e,label:t?.title});var Q=e.i(21623),B=e.i(24557),z=e.i(24994),K=e.i(2765),H=e.i(15971),Z=e.i(6607),W=e.i(76204);let G=A.gql`
70
+ mutation AddProductAssignment(
71
+ $proxyId: ID!
72
+ $productId: ID!
73
+ $vectors: [ProductAssignmentVectorInput!]!
74
+ ) {
75
+ addProductAssignment(
76
+ proxyId: $proxyId
77
+ productId: $productId
78
+ vectors: $vectors
79
+ ) {
80
+ _id
81
+ }
82
+ }
83
+ `,X=()=>{let[e]=(0,W.useMutation)(G);return{addProductAssignment:async({productId:t,proxyId:a,vectors:s})=>e({variables:{productId:t,proxyId:a,vectors:s},refetchQueries:["ProductAssignments"]})}};var J=e.i(24112);let Y=A.gql`
84
+ mutation RemoveProductAssignment(
85
+ $proxyId: ID!
86
+ $vectors: [ProductAssignmentVectorInput!]!
87
+ ) {
88
+ removeProductAssignment(proxyId: $proxyId, vectors: $vectors) {
89
+ _id
90
+ }
91
+ }
92
+ `;var ee=e.i(41158),et=e.i(57748),ea=e.i(98949),es=e.i(69211),el=e.i(16984),ei=e.i(21128);let ed={SimpleProduct:"SIMPLE_PRODUCT",BundleProduct:"BUNDLE_PRODUCT",PlanProduct:"PLAN_PRODUCT",ConfigurableProduct:"CONFIGURABLE_PRODUCT",TokenizedProduct:"TOKENIZED_PRODUCT"};e.s(["PRODUCT_TYPES",0,ed],10878);var er=e.i(38994);let en=function({proxyProduct:e,vectors:t,onSuccess:s,locale:l}){let{createProduct:i}=(0,er.default)(),{addProductAssignment:d}=X(),{formatMessage:r}=(0,a.useIntl)();return async({title:a,type:n})=>{let o=[{title:a,slug:a.toLowerCase().replace(/\s+/g,"-"),locale:l}],{data:u}=await i({product:{type:n||ed.SimpleProduct},texts:o}),c=u?.createProduct,m=c?._id;if(!m)throw Error(r({id:"product_creation_failed",defaultMessage:"Product creation failed"}));return await d({productId:m,proxyId:e?._id,vectors:t}),s?.(c),{success:!0}}};var eo=e.i(10685),eu=e.i(57561);let ec=({proxyProduct:e,vectors:l,onSuccess:i})=>{let{formatMessage:d}=(0,a.useIntl)(),{selectedLocale:r}=(0,eu.default)(),n=en({onSuccess:i,proxyProduct:e,vectors:l,locale:r}),{hasRole:o}=(0,C.default)(),u=(0,S.useMemo)(()=>l.map(({value:e})=>e),[l]),c=(0,S.useMemo)(()=>{let t=e?.texts?.title??"";return`${u.join("-")} ${t}`.trim()},[u,e]),m=async({title:e,type:t})=>{try{return await n({title:e,type:t}),{success:!0}}catch(e){return{success:!1,error:{message:e?.message}}}},p=d({id:"product-scaffolded-success",defaultMessage:"Product scaffolded successfully"}),f=(0,ea.default)({submit:m,successMessage:p,enableReinitialize:!0,initialValues:{title:c,type:s.IProductType.SimpleProduct}});return(0,t.jsxs)(es.default,{className:"mt-3 rounded-md",form:f,children:[(0,t.jsxs)("div",{className:"p-5 pb-7 sm:max-w-full flex flex-col gap-3",children:[(0,t.jsx)(el.default,{name:"title",id:"title",label:d({id:"name",defaultMessage:"Name"}),required:!0,className:"block w-full max-w-full rounded-md border-border-default text-sm focus:ring-focus-ring sm:text-sm"}),(0,t.jsx)(eo.default,{className:"mt-1 w-full",label:d({id:"type",defaultMessage:"Type"}),placeholder:d({id:"type",defaultMessage:"Type"}),required:!0,name:"type",options:Object.fromEntries(Object.entries(s.IProductType).map(([e,t])=>[t,e]))})]}),o(s.IRoleAction.ManageProducts)&&(0,t.jsx)("div",{className:"border-t border-t-border-subtle bg-surface-subtle p-5 text-right",children:(0,t.jsx)(ei.default,{label:d({id:"scaffold_product",defaultMessage:"Scaffold"})})})]})},em=({columns:e,variationProduct:l,product:i,loading:d,disabled:r,proxyId:n,columnKeys:o})=>{let{formatMessage:u}=(0,a.useIntl)(),[c,m]=(0,S.useState)(""),{addProductAssignment:p}=X(),{removeProductAssignment:f}=(()=>{let[e]=(0,W.useMutation)(Y);return{removeProductAssignment:async({proxyId:t,vectors:a})=>e({variables:{proxyId:t,vectors:a},refetchQueries:["ProductAssignments"]})}})(),{hasRole:x}=(0,C.default)(),{setModal:g}=(0,Z.default)(),{products:h}=(0,J.default)({queryString:c,limit:50,sort:[{key:"created",value:s.ISortDirection.Desc}]}),v=(0,S.useMemo)(()=>e.map((e,t)=>({key:o[t],value:e})).filter(({value:e})=>e),[e,o]),b=(0,S.useCallback)(async e=>{e&&"string"==typeof e&&await p({proxyId:n,productId:e,vectors:v})},[v,p,n]),y=(0,S.useCallback)(async()=>{await g((0,t.jsx)(H.default,{onCancelClick:async()=>g(""),message:u({id:"delete_product_assignment",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this assignment? "}),onOkClick:async()=>{g(""),await f({proxyId:n,vectors:v})},okText:u({id:"delete_variation_assignment",defaultMessage:"Delete assignment"})}))},[n,v,u,g,f]),j=(0,S.useMemo)(()=>(0,K.default)(200)(m),[]),I=!l&&i?.variations?.length!==e?.length,w=(0,S.useMemo)(()=>h?.map(F).filter(({value:e})=>e!==n)||[],[h,n]),M=async()=>{await g((0,t.jsx)(ec,{proxyProduct:i,vectors:v,onSuccess:()=>{g(null)}}))};return(0,t.jsxs)(O.default.Row,{children:[e.map((e,a)=>(0,t.jsx)(O.default.Cell,{className:"font-medium",children:e},`${e}`)),(0,t.jsx)(O.default.Cell,{children:l?(0,t.jsx)("div",{className:"flex items-center",children:(0,t.jsx)(ee.default,{href:`/products?slug=${(0,D.default)(l)}`,children:(0,t.jsx)("span",{className:"text-green-700 dark:text-green-300 font-medium",children:l?.texts?.title})})}):I?(0,t.jsx)("div",{className:"mt-1 text-sm text-rose-600 italic",children:u({id:"assign_product_needs_variations",defaultMessage:"Please configure all variation options before assigning a product."})}):(0,t.jsx)("div",{className:"relative w-full",children:(0,t.jsxs)("div",{className:"flex items-center gap-2",children:[(0,t.jsx)("div",{className:"flex-1",children:(0,t.jsx)(z.default,{name:"productId",placeholder:u({id:"search_product",defaultMessage:"Search product"}),isLoading:d,disabled:r,onChange:b,onSearch:j,options:w,className:"mt-1 w-full"})}),x(s.IRoleAction.ManageProducts)&&(0,t.jsx)(Q.default,{onClick:M,children:(0,t.jsx)(et.SparklesIcon,{className:"h-5 w-5"})})]})})}),(0,t.jsx)(O.default.Cell,{children:l&&l._id&&(0,t.jsx)(Q.default,{variant:"danger",size:"xs",rounded:"full",icon:(0,t.jsx)(B.TrashIcon,{className:"h-5 w-5"}),onClick:y})})]})};var ep=e.i(82078);let ef=({proxyId:e,disabled:s=!1})=>{let{formatMessage:l}=(0,a.useIntl)(),{product:i,loading:d}=(({productId:e=null,slug:t=null}={})=>{let a=(0,D.parseUniqueId)(t),{data:s,loading:l,error:i}=(0,V.useQuery)(U,{skip:!e&&!a,variables:{productId:e||a}});return{product:s?.product,loading:l,error:i}})({productId:e}),r=i&&i?.variations||[],n=i&&i.assignments||[],o=(0,S.useMemo)(()=>r.filter(({options:e})=>e.length).map(({key:e})=>e),[r]),u=(0,S.useMemo)(()=>r.map(({key:e,options:t})=>({values:t?.map(e=>e.value),key:e})),[r]),c=(0,S.useMemo)(()=>{let e=u.filter(({values:e})=>e?.length);return e.length>0?L(e,[],0):[]},[u]),m=(0,S.useMemo)(()=>n.map(e=>{let t={};return o.forEach(a=>{let s=e.vectors.find(e=>e.variation?.key===a);t[a]=s?.option?.value??""}),t}),[n,o]),p=(0,S.useMemo)(()=>{let e=[...c,...m],t=new Set;return e.filter(e=>{let a=Object.values(e).join("::");return!t.has(a)&&(t.add(a),!0)})},[c,m]),f=(0,S.useMemo)(()=>n.map(e=>{let t={};return e.vectors.forEach(e=>{e?.variation?.key&&e?.option?.value&&(t[e.variation.key]=e.option.value)}),{keys:t,product:e.product}}),[n]),x=(0,S.useMemo)(()=>p.map(e=>{let t=f.find(({keys:t})=>Object.entries(t).every(([t,a])=>e[t]===a));return{_id:Object.values(e).join("::"),product:t?.product,columns:Object.values(e),columnsText:Object.values(e)}}),[p,f]),g=(0,S.useMemo)(()=>r.length>0,[r]),h=(0,S.useMemo)(()=>r.some(e=>e.options&&e.options.length>0),[r]);return(0,t.jsxs)(q.default,{children:[(0,t.jsx)(ep.default,{title:l({id:"product_assignments_explanation_title",defaultMessage:"About Product Assignments"}),description:l({id:"product_assignments_explanation_text",defaultMessage:"Product assignments allow you to link specific products to each unique combination of variation options. For example, if you have a t-shirt with 'Size' and 'Color' variations, you can assign different product SKUs to each combination like 'Large + Red' or 'Small + Blue'. This is useful for managing inventory, pricing, and product details for each specific variant."})}),!g&&(0,t.jsxs)("div",{className:"text-center py-8",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-gray-100 dark:bg-gray-800 mb-4",children:(0,t.jsx)(T.InformationCircleIcon,{className:"w-8 h-8 text-gray-400"})}),(0,t.jsx)("h3",{className:"text-lg font-medium text-text-primary mb-2",children:l({id:"no_variations_configured",defaultMessage:"No variations configured yet. Please add variations and their options in the Variations tab first."})})]}),g&&h&&(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)(R.default,{messageKey:"assignment_matrix_help",defaultMessage:"Each row represents a unique combination of your product variations. Assign a specific product to each combination to create a complete product catalog."})}),(0,t.jsxs)(O.default,{children:[(0,t.jsxs)(O.default.Row,{children:[o.map(e=>(0,t.jsx)(O.default.Cell,{className:"font-semibold bg-gray-50 dark:bg-gray-800",children:r.find(t=>t.key===e)?.texts?.title||e},e)),(0,t.jsx)(O.default.Cell,{className:"font-semibold bg-gray-50 dark:bg-gray-800",children:l({id:"assigned_product_column_header",defaultMessage:"Assigned Product"})}),(0,t.jsx)(O.default.Cell,{className:"font-semibold bg-gray-50 dark:bg-gray-800",children:l({id:"actions_column_header",defaultMessage:"Actions"})})]}),x.length>0&&x.map(({_id:a,columns:l,product:r})=>(0,t.jsx)(em,{columns:l,disabled:s,loading:d,product:i,variationProduct:r,columnKeys:o,proxyId:e},a))]})]}),g&&!h&&(0,t.jsxs)("div",{className:"text-center py-8",children:[(0,t.jsx)("div",{className:"inline-flex items-center justify-center w-16 h-16 rounded-full bg-yellow-100 dark:bg-yellow-900/30 mb-4",children:(0,t.jsx)(T.InformationCircleIcon,{className:"w-8 h-8 text-yellow-600 dark:text-yellow-400"})}),(0,t.jsx)("h3",{className:"text-lg font-medium text-text-primary mb-2",children:l({id:"assign_product_needs_variations",defaultMessage:"Please configure all variation options before assigning a product."})}),(0,t.jsx)("p",{className:"text-sm text-gray-600 dark:text-gray-400",children:l({id:"assignment_matrix_help",defaultMessage:"Each row represents a unique combination of your product variations. Assign a specific product to each combination to create a complete product catalog."})})]})]})};var ex=e.i(60195),eg=e.i(1504);let eh=A.gql`
93
+ query ProductTokenization($productId: ID, $slug: String) {
94
+ product(productId: $productId, slug: $slug) {
95
+ _id
96
+ ... on TokenizedProduct {
97
+ contractConfiguration {
98
+ tokenId
99
+ supply
100
+ }
101
+ contractStandard
102
+ contractAddress
103
+ }
104
+ }
105
+ }
106
+ `,ev=A.gql`
107
+ query SmartContractStandards {
108
+ smartContractStandards: __type(name: "SmartContractStandard") {
109
+ options: enumValues {
110
+ value: name
111
+ label: name
112
+ }
113
+ }
114
+ }
115
+ `,eb=A.gql`
116
+ mutation UpdateProductTokenization(
117
+ $productId: ID!
118
+ $tokenization: UpdateProductTokenizationInput!
119
+ ) {
120
+ updateProductTokenization(
121
+ productId: $productId
122
+ tokenization: $tokenization
123
+ ) {
124
+ _id
125
+ }
126
+ }
127
+ `,ey=({productId:e,disabled:l=!1})=>{let{formatMessage:i}=(0,a.useIntl)(),{hasRole:d}=(0,C.default)(),{smartContractStandards:r}=(()=>{let{data:e,loading:t,error:a}=(0,V.useQuery)(ev);return{smartContractStandards:e?.smartContractStandards?.options||[],loading:t,error:a}})(),{updateProductTokenization:n}=(()=>{let[e]=(0,W.useMutation)(eb);return{updateProductTokenization:async({productId:t,tokenization:{contractAddress:a,contractStandard:s,tokenId:l,supply:i}})=>e({variables:{productId:t,tokenization:{contractAddress:a,contractStandard:s,tokenId:l,supply:parseInt(i,10)}},refetchQueries:["Product","Products"]})}})(),{product:o,loading:u}=(({productId:e=null,slug:t=null}={})=>{let a=(0,D.parseUniqueId)(t),{data:s,loading:l,error:i}=(0,V.useQuery)(eh,{skip:!e&&!t,variables:{productId:e||a}});return{product:s?.product,loading:l,error:i}})({productId:e}),c=async({contractAddress:t,contractStandard:a,tokenId:s,supply:l})=>(await n({productId:e,tokenization:{contractAddress:t,contractStandard:a,tokenId:s||"",supply:l}}),{success:!0}),m=i({id:"token_updated",defaultMessage:"Token update successfully!"}),p=(0,ea.default)({disabled:l,submit:c,successMessage:m,initialValues:{contractAddress:"",contractStandard:"",tokenId:"",supply:""}});return(0,S.useEffect)(()=>{u||p.api.setValues({contractAddress:o?.contractAddress||"",contractStandard:o?.contractStandard||"",tokenId:o?.contractConfiguration?.tokenId||"",supply:o?.contractConfiguration?.supply||""})},[u]),(0,t.jsx)(ex.default,{documentationLabel:i({id:"texts",defaultMessage:"Texts"}),className:"mt-2 lg:mt-5",documentation:(0,t.jsx)(a.FormattedMessage,{id:"tokenized_product_text_form_description",defaultMessage:"<b>Contract standards </b> <ol> \n <dt><b> ERC721 </b></dt> <dd> Buying multiple Products leads to multiple Tokens (make sure to set the tokenId to 0 to make it auto generate new id's) </dd>\n <dt> <b> ERC1155 </b></dt> <dd> Buying multiple Products leads to a new token with balance 3 of token with tokenId assigned </dd>\n <dt> <b> Contract address </b></dt> <dd> Address of a token on a given network </dd> </ol>",values:{ol:e=>(0,t.jsxs)("ol",{children:[e," "]}),dt:e=>(0,t.jsxs)("dt",{className:"bold",children:[e," "]}),dd:e=>(0,t.jsxs)("dd",{children:[e," "]}),b:e=>(0,t.jsxs)("b",{children:[e," "]})}}),children:(0,t.jsx)(q.default,{children:(0,t.jsxs)(es.default,{form:p,children:[(0,t.jsxs)("div",{className:"p-5 pb-7 sm:max-w-full flex flex-col gap-y-5",children:[(0,t.jsx)(eo.default,{className:"w-full",label:i({id:"contract-standard",defaultMessage:"Contract standard"}),placeholder:i({id:"contract-standard",defaultMessage:"Contract standard"}),required:!0,name:"contractStandard",options:(0,eg.default)(r,"label","value")}),(0,t.jsx)(el.default,{name:"contractAddress",id:"contractAddress",label:i({id:"contract-address-label",defaultMessage:"Contract Address"}),placeholder:i({id:"contract-address-label",defaultMessage:"Contract Address"}),required:!0,className:"block w-full max-w-full rounded-md border-border-default text-sm focus:ring-focus-ring sm:text-sm"}),(0,t.jsx)(el.default,{name:"supply",id:"supply",type:"number",label:i({id:"token-supply",defaultMessage:"Supply"}),placeholder:i({id:"token-supply",defaultMessage:"Supply"}),required:!0,className:"block w-full max-w-full rounded-md border-border-default text-sm focus:ring-focus-ring sm:text-sm"}),(0,t.jsx)(el.default,{name:"tokenId",id:"tokenId",label:i({id:"token-id-label",defaultMessage:"Token Serial Number"}),placeholder:i({id:"token-id-label",defaultMessage:"Token Serial Number"}),className:"block w-full max-w-full rounded-md border-border-default text-sm focus:ring-focus-ring sm:text-sm"})]}),d(s.IRoleAction.ManageProducts)&&(0,t.jsx)("div",{className:"space-y-6 border-t border-t-border-subtle bg-surface-subtle p-5 text-right",children:(0,t.jsx)(ei.default,{label:i({id:"update_token",defaultMessage:"Update token"})})})]})})})};var ej=e.i(31494),eI=e.i(83788),ew=e.i(13534),eM=e.i(70475);let eP=({id:e,selectedView:a="",disableAll:s=!1,...l})=>{if("texts"===a)return(0,t.jsx)(g.default,{children:(0,t.jsx)(v.default,{productId:e,disabled:s})});if("media"===a)return(0,t.jsx)(eI.default,{children:(0,t.jsx)(g.default,{children:(0,t.jsx)(b.default,{productId:e})})});if("commerce"===a)return(0,t.jsx)(h.default,{productId:e,disabled:s});if("supply"===a)return(0,t.jsx)(j.default,{productId:e,disabled:s});if("warehousing"===a)return(0,t.jsx)(w.default,{productId:e,disabled:s});if("fulfillment"===a)return(0,t.jsx)(M.default,{productId:e});if("variations"===a)return(0,t.jsx)(g.default,{children:(0,t.jsx)(I.default,{productId:e,disabled:s})});if("bundled_products"===a)return(0,t.jsx)(g.default,{children:(0,t.jsx)(_.default,{productId:e,disabled:s})});if("subscriptions"===a)return(0,t.jsx)(y.default,{productId:e,disabled:s});if("reviews"===a)return(0,t.jsx)(N.default,{productId:e});if("assignments"===a)return(0,t.jsx)(g.default,{children:(0,t.jsx)(ef,{proxyId:e,disabled:s})});if("token"===a)return(0,t.jsx)(ey,{productId:e,disabled:s});if("extended"===a)return(0,t.jsx)(ej.default,{data:l});if(a?.startsWith("plugin:")){let s=a.replace("plugin:","");return(0,t.jsx)(eM.default,{slot:"product:tabs",entityId:e,children:(a,l)=>l.component===s?(0,t.jsx)(a,{entityId:e}):null})}return(0,t.jsx)(g.default,{children:(0,t.jsx)(v.default,{productId:e})})};e.s(["default",0,({product:e,extendedData:g={}})=>{let{formatMessage:h}=(0,a.useIntl)(),{hasRole:v}=(0,C.default)(),{updateProduct:b}=(0,$.default)(),{shopInfo:y}=(0,eu.default)(),{getSlotPlugins:j}=(0,ew.usePlugins)(),{__typename:I}=e||{},w=[{id:"texts",title:h({id:"general_text",defaultMessage:"Text"}),Icon:(0,t.jsx)(l.DocumentTextIcon,{className:"h-5 w-5"})},{id:"media",title:h({id:"media",defaultMessage:"Media"}),Icon:(0,t.jsx)(i.FilmIcon,{className:"h-5 w-5"})},"ConfigurableProduct"!==I&&{id:"commerce",title:h({id:"commerce",defaultMessage:"Commerce"}),Icon:(0,t.jsx)(d.ShoppingBagIcon,{className:"h-5 w-5"})},"SimpleProduct"===I&&{id:"supply",title:h({id:"supply",defaultMessage:"Supply"}),Icon:(0,t.jsx)(r.ChartPieIcon,{className:"h-5 w-5"})},"SimpleProduct"===I&&{id:"warehousing",title:h({id:"warehousing",defaultMessage:"Warehousing"}),Icon:(0,t.jsx)(n.ArchiveBoxIcon,{className:"h-5 w-5"})},"SimpleProduct"===I&&{id:"fulfillment",title:h({id:"fulfillment",defaultMessage:"Fulfillment"}),Icon:(0,t.jsx)(x.TruckIcon,{className:"h-5 w-5"})},"ConfigurableProduct"===I&&{id:"variations",title:h({id:"variations",defaultMessage:"Variations"}),Icon:(0,t.jsx)(o.SwatchIcon,{className:"h-5 w-5"})},"BundleProduct"===I&&{id:"bundled_products",title:h({id:"bundled_items",defaultMessage:"Bundled items"}),Icon:(0,t.jsx)(u.PresentationChartLineIcon,{className:"h-5 w-5"})},"PlanProduct"===I&&{id:"subscriptions",title:h({id:"subscriptions",defaultMessage:"Subscriptions"}),Icon:(0,t.jsx)(c.UsersIcon,{className:"h-5 w-5"})},"ConfigurableProduct"===I&&{id:"assignments",title:h({id:"assignments",defaultMessage:"Assignments"}),Icon:(0,t.jsx)(p.LinkIcon,{className:"h-5 w-5"})},"TokenizedProduct"===I&&{id:"token",title:h({id:"token",defaultMessage:"Token"}),Icon:(0,t.jsx)(p.LinkIcon,{className:"h-5 w-5"})},{id:"reviews",title:h({id:"reviews",defaultMessage:"Reviews"}),Icon:(0,t.jsx)(f.StarIcon,{className:"h-5 w-5"})},null!==g&&{id:"extended",title:h({id:"extended-fields",defaultMessage:"Extended"}),Icon:(0,t.jsx)(m.PuzzlePieceIcon,{className:"h-5 w-5"})}].filter(e=>e),M=j("product:tabs").map(({config:e})=>({id:`plugin:${e.component}`,title:e.label,Icon:(0,t.jsx)(m.PuzzlePieceIcon,{className:"h-5 w-5"})}));w.push(...M);let N=async({tags:t})=>(await b({productId:e?._id,product:{tags:t}}),!0);return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("div",{className:"mt-5 flex flex-wrap items-center justify-between gap-10",children:(0,t.jsx)(k.default,{defaultValue:e?.tags,onSubmit:N,enableEdit:v(s.IRoleAction.ManageProducts),availableTagOptions:y?.adminUiConfig?.productTags.filter(t=>!(e?.tags||[])?.includes(t)).map(e=>({value:e,label:e}))})}),(0,t.jsx)(P.default,{tabItems:w,defaultTab:"texts",children:(0,t.jsx)(eP,{disableAll:e?.status===s.IProductStatus.Deleted,id:e?._id,...g})})]})}],42929);var eN=e.i(87284);e.s(["default",0,({media:e=[],onEditMedia:a})=>(0,t.jsx)("div",{className:"my-5",children:(0,t.jsx)("div",{className:"flex gap-3 overflow-x-auto",children:e.map(e=>(0,t.jsx)("div",{className:"relative flex-shrink-0 group",children:(0,t.jsx)("div",{className:"w-16 h-16 bg-surface-raised rounded-lg overflow-hidden cursor-pointer border border-border-subtle",onClick:()=>{var t;return t=e._id,void(a&&a(t))},children:(0,t.jsx)(eN.default,{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))})})],97057);var e_=e.i(62199);let ek=A.gql`
128
+ mutation PublishProduct($productId: ID!) {
129
+ publishProduct(productId: $productId) {
130
+ ...ProductDetailFragment
131
+ }
132
+ }
133
+ ${e_.default}
134
+ `;e.s(["default",0,()=>{let[e]=(0,W.useMutation)(ek);return{publishProduct:async({productId:t})=>e({variables:{productId:t},refetchQueries:["Product","ShopStatus"],awaitRefetchQueries:!0})}}],95379);let e$=A.gql`
135
+ mutation UnpublishProduct($productId: ID!) {
136
+ unpublishProduct(productId: $productId) {
137
+ ...ProductDetailFragment
138
+ }
139
+ }
140
+ ${e_.default}
141
+ `;e.s(["default",0,()=>{let[e]=(0,W.useMutation)(e$);return{unPublishProduct:async({productId:t})=>e({variables:{productId:t},refetchQueries:["Product","ShopStatus"],awaitRefetchQueries:!0})}}],51628)},88604,e=>{"use strict";var t=e.i(59080),a=e.i(76204);let s=t.gql`
142
+ mutation RemoveProduct($productId: ID!) {
143
+ removeProduct(productId: $productId) {
144
+ _id
145
+ }
146
+ }
147
+ `;e.s(["default",0,()=>{let[e]=(0,a.useMutation)(s);return{removeProduct:async({productId:t})=>e({variables:{productId:t},refetchQueries:["Products","ShopStatus","ShopInfo"]})}}])},41418,e=>{"use strict";var t=e.i(59080),a=e.i(76204),s=e.i(62199);let l=t.gql`
148
+ mutation UpdateProduct($productId: ID!, $product: UpdateProductInput!) {
149
+ updateProduct(productId: $productId, product: $product) {
150
+ ...ProductDetailFragment
151
+ }
152
+ }
153
+ ${s.default}
154
+ `;e.s(["default",0,()=>{let[e]=(0,a.useMutation)(l);return{updateProduct:async({productId:t,product:{tags:a,sequence:s,meta:l}})=>e({variables:{productId:t,product:{tags:a,sequence:s,meta:l}},refetchQueries:["Products","ShopStatus","ShopInfo"]})}}])},30311,e=>{"use strict";var t=e.i(91398),a=e.i(69322),s=e.i(66773),l=e.i(28401),i=e.i(50595),d=e.i(53576),r=e.i(25327),n=e.i(84818),o=e.i(42929),u=e.i(97057),c=e.i(84278),m=e.i(92276),p=e.i(95379),f=e.i(51628),x=e.i(41418),g=e.i(21623),h=e.i(88604),v=e.i(6607),b=e.i(15971),y=e.i(41215),j=e.i(3828),I=e.i(58971),w=e.i(24608),M=e.i(91788),P=e.i(34728);e.s(["default",0,({slug:e})=>{let{formatMessage:N}=(0,a.useIntl)(),{formatDateTime:_}=(0,n.default)(),{hasRole:k}=(0,I.default)(),{publishProduct:$}=(0,p.default)(),{unPublishProduct:C}=(0,f.default)(),{removeProduct:S}=(0,h.default)(),{updateProduct:T}=(0,x.default)(),{setModal:q}=(0,v.default)(),R=(0,j.useRouter)(),{push:A}=(0,j.useRouter)(),{product:V,loading:D,error:E,extendedData:U}=(0,c.default)({slug:e}),O=V?.status||"DRAFT",L=(0,M.useMemo)(()=>[{id:"published",title:N({id:"published",defaultMessage:"Published"}),description:N({id:"publish_product_description",defaultMessage:"Product will be searchable and is available for orders"}),current:"ACTIVE"===O,selectedTitle:N({id:"published",defaultMessage:"Published"}),onClick:async()=>{try{await $({productId:V?._id}),l.toast.success(N({id:"product_published",defaultMessage:"Published successfully "}))}catch(t){console.error("Failed to publish product:",t);let e=t?.message||"Unknown error";l.toast.error(`${N({id:"product_publish_error",defaultMessage:"Failed to publish product"})}: ${e}`)}},bgColor:"green",disable:!k(s.IRoleAction.ManageProducts)},{id:"draft",title:N({id:"draft",defaultMessage:"Draft"}),description:N({id:"draft_product_description",defaultMessage:"Product will not be discoverable and can not be orderose"}),current:"DRAFT"===O,selectedTitle:N({id:"not_published",defaultMessage:"Not published"}),bgColor:"amber",disable:"ACTIVE"===O&&!k(s.IRoleAction.ManageProducts),onClick:async()=>{if(k(s.IRoleAction.ManageProducts))try{await C({productId:V?._id}),l.toast.success(N({id:"product_drafted",defaultMessage:"Drafted successfully "}))}catch(t){console.error("Failed to unpublish product:",t);let e=t?.message||"Unknown error";l.toast.error(`${N({id:"product_unpublish_error",defaultMessage:"Failed to unpublish product"})}: ${e}`)}}}],[V]);if(E)return console.error("Error loading product:",E),(0,t.jsx)("div",{className:"mt-5 max-w-full",children:(0,t.jsx)("div",{className:"text-center py-8",children:(0,t.jsx)("p",{className:"text-danger",children:N({id:"product_load_error",defaultMessage:"Failed to load product"})})})});let F=async e=>{e.target.value&&await T({productId:V?._id,product:{sequence:parseInt(e.target.value,10)}})},Q=async()=>{"proxies"in V&&V.proxies?.length?await q((0,t.jsx)(P.default,{headerText:N({id:"product_delete_blocked_header",defaultMessage:"Remove links before deleting"}),message:(0,t.jsxs)("div",{className:"space-y-2",children:[(0,t.jsx)("p",{children:N({id:"product_delete_blocked_intro",defaultMessage:"This product is linked to the following product types:"})}),(0,t.jsx)("ul",{className:"list-disc list-inside text-sm text-text-secondary",children:"proxies"in V&&V.proxies.map(({__typename:e},a)=>(0,t.jsx)("li",{children:e.replace("Product","")},a))}),(0,t.jsx)("p",{children:N({id:"product_delete_blocked_action",defaultMessage:"Please unlink it before trying to delete it."})})]}),buttonText:N({id:"ok",defaultMessage:"Ok"}),onOkClick:()=>q(null)})):await q((0,t.jsx)(b.default,{onCancelClick:()=>q(""),message:N({id:"delete_product_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 product?"}),onOkClick:async()=>{q("");try{await S({productId:V?._id}),l.toast.success(N({id:"product_deleted_success",defaultMessage:"Deleted successfully"})),R.push("/products")}catch(e){await q((0,t.jsx)(b.default,{onCancelClick:()=>q(""),headerText:N({id:"error",defaultMessage:"Error"}),message:e instanceof y.default?e.message:e,icon:(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)(w.XMarkIcon,{className:"h-6 w-6 text-danger",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2"})}),okText:N({id:"ok",defaultMessage:"Ok"}),onOkClick:async()=>{q("")}}))}}}))};return V||D?D?(0,t.jsx)(d.default,{}):(0,t.jsxs)("div",{className:"mt-5 max-w-full",children:[(0,t.jsx)(i.default,{routeName:e,depth:3,currentPageTitle:V?.texts?.title}),"DELETED"===O&&(0,t.jsx)("div",{className:"mb-4 rounded-md border border-rose-300 bg-rose-50 p-4 text-sm text-rose-800 dark:border-rose-700 dark:bg-rose-900/30 dark:text-rose-300",children:N({id:"product_deleted_notice",defaultMessage:"This product has been deleted and is no longer active. Some actions may be restricted."})}),(0,t.jsxs)("div",{children:[(0,t.jsxs)("div",{className:"items-center flex-wrap flex gap-5 min-w-full justify-between",children:[(0,t.jsx)(r.default,{headerText:(0,t.jsxs)(t.Fragment,{children:[V?.texts?.title||"Untitled Product","DELETED"===O&&(0,t.jsx)("span",{className:"ml-3 rounded bg-rose-100 px-2 py-1 text-xs font-semibold text-rose-800 dark:bg-rose-900/40 dark:text-rose-300",children:N({id:"deleted_status",defaultMessage:"Deleted"})})]}),title:`${V?.texts?.title||"Product"} (${V?._id})`}),(0,t.jsxs)("div",{className:"publish-and-order flex flex-wrap gap-3",children:[O&&"DELETED"!==O&&(0,t.jsx)(m.default,{options:L,type:N({id:"product",defaultMessage:"Product"})}),(0,t.jsxs)("div",{className:"inline-flex items-center gap-2 rounded-md dark:border-slate-600 px-4 py-2 text-sm font-medium leading-5 shadow-xs bg-surface h-[38px]",children:[(0,t.jsx)("label",{htmlFor:"sequence-input",className:"text-text-secondary font-medium cursor-pointer",children:N({id:"sequence",defaultMessage:"Display Order"})}),(0,t.jsx)("input",{type:"number",id:"sequence-input",disabled:!k(s.IRoleAction.ManageProducts),className:"text-center w-12 bg-transparent border border-border-default rounded focus:ring-2 focus:ring-focus-ring focus:border-transparent focus:outline-none text-sm font-semibold text-text-primary px-2 py-1 transition-all",defaultValue:V?.sequence,onBlur:F})]}),"DRAFT"===O&&k(s.IRoleAction.ManageProducts)&&(0,t.jsx)(g.default,{variant:"danger",icon:(0,t.jsx)(w.XMarkIcon,{className:"h-5 w-5"}),text:"Delete",onClick:Q})]})]}),(0,t.jsxs)("div",{className:"mt-8 flex flex-wrap gap-3 gap-x-10 text-text-secondary",children:[(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsx)("span",{className:"mr-2 text-xs text-text-muted",children:"ID:"}),(0,t.jsx)("span",{className:"text-sm font-mono",children:V?._id})]}),(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsx)("span",{className:"text-xs text-text-muted",children:"Type:"}),(0,t.jsx)("p",{className:"text-sm font-mono",children:V?.__typename})]}),V?.created&&(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsxs)("span",{className:"text-xs text-text-muted",children:[N({id:"created",defaultMessage:"Created"}),":"]}),(0,t.jsx)("span",{className:"text-sm font-mono",children:_(V.created,{dateStyle:"medium",timeStyle:"short"})})]}),V?.updated&&(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsxs)("span",{className:"text-xs text-text-muted",children:[N({id:"updated",defaultMessage:"Updated"}),":"]}),(0,t.jsx)("span",{className:"text-sm font-mono",children:_(V.updated,{dateStyle:"medium",timeStyle:"short"})})]}),V?.published&&(0,t.jsxs)("div",{className:"flex flex-col items-baseline gap-0",children:[(0,t.jsxs)("span",{className:"text-xs text-text-muted",children:[N({id:"published",defaultMessage:"Published"}),":"]}),(0,t.jsx)("span",{className:"text-sm font-mono",children:_(V.published,{dateStyle:"medium",timeStyle:"short"})})]})]})]}),(0,t.jsx)(u.default,{productId:V?._id,media:V?.media||[],onEditMedia:e=>{R.push({pathname:R.pathname,query:{...R.query,tab:"media"}},void 0,{shallow:!0})},canEdit:k(s.IRoleAction.ManageProducts)}),(0,t.jsx)(o.default,{product:V,extendedData:U})]}):(A("/404"),null)}])},94330,43054,95336,16113,82191,42532,10785,1330,73356,50099,77035,56902,72264,19051,84278,11907,e=>{"use strict";var t=e.i(91788);let a=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M6 5v1H4.667a1.75 1.75 0 0 0-1.743 1.598l-.826 9.5A1.75 1.75 0 0 0 3.84 19H16.16a1.75 1.75 0 0 0 1.743-1.902l-.826-9.5A1.75 1.75 0 0 0 15.333 6H14V5a4 4 0 0 0-8 0Zm4-2.5A2.5 2.5 0 0 0 7.5 5v1h5V5A2.5 2.5 0 0 0 10 2.5ZM7.5 10a2.5 2.5 0 0 0 5 0V8.75a.75.75 0 0 1 1.5 0V10a4 4 0 0 1-8 0V8.75a.75.75 0 0 1 1.5 0V10Z",clipRule:"evenodd"}))});e.s(["ShoppingBagIcon",0,a],94330);let s=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{d:"M12 9a1 1 0 0 1-1-1V3c0-.552.45-1.007.997-.93a7.004 7.004 0 0 1 5.933 5.933c.078.547-.378.997-.93.997h-5Z"}),t.createElement("path",{d:"M8.003 4.07C8.55 3.994 9 4.449 9 5v5a1 1 0 0 0 1 1h5c.552 0 1.008.45.93.997A7.001 7.001 0 0 1 2 11a7.002 7.002 0 0 1 6.003-6.93Z"}))});e.s(["ChartPieIcon",0,s],43054);let l=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{d:"M2 3a1 1 0 0 0-1 1v1a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V4a1 1 0 0 0-1-1H2Z"}),t.createElement("path",{fillRule:"evenodd",d:"M2 7.5h16l-.811 7.71a2 2 0 0 1-1.99 1.79H4.802a2 2 0 0 1-1.99-1.79L2 7.5ZM7 11a1 1 0 0 1 1-1h4a1 1 0 1 1 0 2H8a1 1 0 0 1-1-1Z",clipRule:"evenodd"}))});e.s(["ArchiveBoxIcon",0,l],95336);let i=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M3.5 2A1.5 1.5 0 0 0 2 3.5V15a3 3 0 1 0 6 0V3.5A1.5 1.5 0 0 0 6.5 2h-3Zm11.753 6.99L9.5 14.743V6.257l1.51-1.51a1.5 1.5 0 0 1 2.122 0l2.121 2.121a1.5 1.5 0 0 1 0 2.122ZM8.364 18H16.5a1.5 1.5 0 0 0 1.5-1.5v-3a1.5 1.5 0 0 0-1.5-1.5h-2.136l-6 6ZM5 16a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z",clipRule:"evenodd"}))});e.s(["SwatchIcon",0,i],16113);let d=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M1 2.75A.75.75 0 0 1 1.75 2h16.5a.75.75 0 0 1 0 1.5H18v8.75A2.75 2.75 0 0 1 15.25 15h-1.072l.798 3.06a.75.75 0 0 1-1.452.38L13.41 18H6.59l-.114.44a.75.75 0 0 1-1.452-.38L5.823 15H4.75A2.75 2.75 0 0 1 2 12.25V3.5h-.25A.75.75 0 0 1 1 2.75ZM7.373 15l-.391 1.5h6.037l-.392-1.5H7.373Zm7.49-8.931a.75.75 0 0 1-.175 1.046 19.326 19.326 0 0 0-3.398 3.098.75.75 0 0 1-1.097.04L8.5 8.561l-2.22 2.22A.75.75 0 1 1 5.22 9.72l2.75-2.75a.75.75 0 0 1 1.06 0l1.664 1.663a20.786 20.786 0 0 1 3.122-2.74.75.75 0 0 1 1.046.176Z",clipRule:"evenodd"}))});e.s(["PresentationChartLineIcon",0,d],82191);var r=e.i(91398),n=e.i(66773),o=e.i(58021),u=e.i(69322),c=e.i(58971),m=e.i(5505),p=e.i(1504),f=e.i(98520),x=e.i(79093),g=e.i(30434),h=e.i(69211),v=e.i(63094),b=e.i(10685),y=e.i(21128),j=e.i(16984),I=e.i(21623),w=e.i(98949),M=e.i(82226),P=e.i(59080),N=e.i(32171);let _=P.gql`
155
+ fragment ProductCatalogPriceFragment on ProductCatalogPrice {
156
+ isTaxable
157
+ isNetPrice
158
+ country {
159
+ _id
160
+ isoCode
161
+ name
162
+ flagEmoji
163
+ }
164
+ currency {
165
+ _id
166
+ isoCode
167
+ isActive
168
+ }
169
+ amount
170
+ minQuantity
171
+ }
172
+ `,k=P.gql`
173
+ query ProductCatalogPrices($productId: ID!) {
174
+ productCatalogPrices(productId: $productId) {
175
+ ...ProductCatalogPriceFragment
176
+ }
177
+ }
178
+ ${_}
179
+ `;var $=e.i(76204),C=e.i(62199);let S=P.gql`
180
+ mutation UpdateProductCommerce(
181
+ $productId: ID!
182
+ $commerce: UpdateProductCommerceInput!
183
+ ) {
184
+ updateProductCommerce(productId: $productId, commerce: $commerce) {
185
+ ...ProductDetailFragment
186
+ }
187
+ }
188
+ ${C.default}
189
+ `,T=({defaultCountryValue:e,defaultCurrencyValue:t,countries:a,currencies:s})=>{let{formatMessage:l}=(0,u.useIntl)(),{hasRole:i}=(0,c.default)(),{watch:d,getValues:m,trigger:f}=(0,o.useFormContext)(),{fields:x,append:h,remove:v}=(0,o.useFieldArray)({name:"pricing"});d("pricing");let y=()=>m("pricing"),w=()=>{let e=x.map((e,t)=>`pricing.${t}.minQuantity`);setTimeout(()=>f(e),0)};return(0,r.jsxs)("div",{children:[x.map((d,o)=>{let u=[(0,M.validateProductCommerce)(o,y)];return 0===o&&u.push((0,M.validateProductCommerceOneZero)(y)),(0,r.jsxs)("div",{className:"relative max-w-full border-b dark:border-slate-700 pt-1 pb-5 mb-3 align-baseline lg:flex",children:[(0,r.jsxs)("div",{className:"flex w-full gap-x-2",children:[(0,r.jsx)(j.default,{className:"w-full",disabled:!i(n.IRoleAction.ManageProducts),validators:u,name:`pricing.${o}.minQuantity`,id:`pricing.${o}.minQuantity`,type:"number",min:0,hideLabel:!0,onChange:w,label:l({id:"min_quantity",defaultMessage:"Min Quantity"})}),(0,r.jsx)(j.default,{type:"number",className:"w-full",disabled:!i(n.IRoleAction.ManageProducts),name:`pricing.${o}.amount`,id:`pricing.${o}.amount`,required:!0,hideLabel:!0,label:l({id:"price",defaultMessage:"Price "})})]}),(0,r.jsxs)("div",{className:"flex w-full gap-x-2 pt-3 pb-2",children:[(0,r.jsx)("div",{className:"w-full lg:ml-8 lg:items-center",children:(0,r.jsx)(g.default,{name:`pricing.${o}.isTaxable`,labelClassName:"lg:sr-only items-center ",disabled:!i(n.IRoleAction.ManageProducts),label:l({id:"vat_suspect",defaultMessage:"Vat Suspect"}),className:"mr-2 h-4 w-4 rounded-sm border-border-default bg-white dark:!bg-slate-900 text-slate-950 focus:ring-focus-ring lg:items-center",type:"checkbox"})}),(0,r.jsx)("div",{className:"w-full lg:ml-8",children:(0,r.jsx)(g.default,{name:`pricing.${o}.isNetPrice`,labelClassName:"lg:sr-only items-center",disabled:!i(n.IRoleAction.ManageProducts),label:l({id:"net_price",defaultMessage:"Net Price"}),hideLabel:!0,className:"mr-2 h-4 w-4 justify-between rounded-sm border-border-default bg-white dark:!bg-slate-900 text-slate-950 focus:ring-focus-ring lg:items-center",type:"checkbox"})})]}),(0,r.jsxs)("div",{className:"flex w-full gap-x-2 mt-1",children:[(0,r.jsx)(b.default,{defaultValue:e,className:"w-full lg:ml-4 lg:mr-4",label:l({id:"country",defaultMessage:"Country"}),name:`pricing.${o}.countryCode`,id:`pricing.${o}.countryCode`,disabled:!i(n.IRoleAction.ManageProducts),required:!0,options:(0,p.default)(a,"isoCode","isoCode"),hideLabel:!0}),(0,r.jsx)(b.default,{defaultValue:t,className:"w-full lg:mr-8 ",label:l({id:"currency",defaultMessage:"Currency"}),disabled:!i(n.IRoleAction.ManageProducts),name:`pricing.${o}.currencyCode`,id:`pricing.${o}.currencyCode`,required:!0,options:(0,p.default)(s,"isoCode","isoCode"),hideLabel:!0,placeholder:l({id:"country_currency",defaultMessage:"Currency"})})]}),i(n.IRoleAction.ManageProducts)&&(0,r.jsx)("div",{className:"absolute -top-2 right-0 mt-0 mr-0 shrink-0 pb-1 md:mr-0 lg:mt-6 lg:py-0 lg:px-0 ",children:(0,r.jsx)("button",{className:"items-center rounded-full bg-surface-input px-1 py-1 text-sm text-rose-500 dark:text-rose-400 hover:bg-rose-50 focus:outline-hidden focus:ring-0 focus:ring-rose-500 focus:ring-offset-2",type:"button",onClick:()=>v(o),children:(0,r.jsxs)("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round",children:[(0,r.jsx)("polyline",{points:"3 6 5 6 21 6"}),(0,r.jsx)("path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6m3 0V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2"}),(0,r.jsx)("line",{x1:"10",y1:"11",x2:"10",y2:"17"}),(0,r.jsx)("line",{x1:"14",y1:"11",x2:"14",y2:"17"})]})})})]},d.id)}),i(n.IRoleAction.ManageProducts)&&(0,r.jsx)("div",{className:"mt-6",children:(0,r.jsx)(I.default,{variant:"tertiary",text:l({id:"add_price_row",defaultMessage:"Add Price Row"}),className:"w-full items-center justify-center",onClick:()=>h({minQuantity:"",amount:null,isTaxable:!1,isNetPrice:!1,currencyCode:t,countryCode:e})})})]})};e.s(["default",0,({productId:e,disabled:t=!1})=>{let{formatMessage:a}=(0,u.useIntl)(),{catalogPrices:s}=(({productId:e})=>{let{data:t,loading:a,error:s}=(0,N.useQuery)(k,{skip:!e,variables:{productId:e}});return{catalogPrices:t?.productCatalogPrices||[],loading:a,error:s}})({productId:e}),{hasRole:l}=(0,c.default)(),{updateProductCommerce:i}=(()=>{let[e]=(0,$.useMutation)(S),{currencies:t}=(0,x.default)();return{updateProductCommerce:async({productId:a,commerce:{pricing:s}})=>e({variables:{productId:a,commerce:{pricing:s.map(e=>{let a=t.find(({isoCode:t})=>t===e.currencyCode),s=((e,t)=>{if(!e||t<0)return 0;let a=e.trim();if(!/^-?\d*\.?\d*$/.test(a))return 0;let s=a.indexOf(".");return -1===s?Number(a)*10**t:Number((a.slice(0,s)||"0")+a.slice(s+1).slice(0,t).padEnd(t,"0"))})(e.amount.toString(),a.decimals);return{...e,amount:s}})}},refetchQueries:["Products"]})}})(),{countries:d}=(0,f.default)(),{currencies:o}=(0,x.default)(),p=d?.find(({isBase:e})=>e),g=p?.isoCode,b=p?.defaultCurrency?.isoCode,j=async({pricing:t})=>(await i({productId:e,commerce:{pricing:t}}),{success:!0}),I=a({id:"saved",defaultMessage:"Saved"}),M=((e=[],t=[])=>t.length?e.map(e=>{let a=t.find(({isoCode:t})=>t.toLowerCase()===e.currency.isoCode.toLowerCase());return{countryCode:e.country.isoCode,currencyCode:e.currency.isoCode,isTaxable:!!e.isTaxable,isNetPrice:!!e.isNetPrice,amount:((e,t)=>{if(t<0)return"0";if(0===t)return e.toString();let a=e.toString();if("0"===a)return"0."+"0".repeat(t);let s=a.startsWith("-"),l=s?a.slice(1):a;if(l.length<=t){let e=l.padStart(t,"0");return`${s?"-":""}0.${e}`}let i=l.length-t,d=l.slice(0,i),r=l.slice(i);return`${s?"-":""}${d}.${r}`})(e.amount,a?.decimals),minQuantity:e.minQuantity}}):[])(s,o),P=(0,w.default)({disabled:t,submit:j,successMessage:I,enableReinitialize:!0,initialValues:{pricing:[...M?.length?M:[{minQuantity:"",amount:null,isTaxable:!1,isNetPrice:!1,currencyCode:b,countryCode:g}]]}});return(0,r.jsx)("div",{children:(0,r.jsxs)("div",{className:"mt-5 md:col-span-3 lg:mt-0",children:[(0,r.jsx)(m.default,{children:(0,r.jsxs)(h.default,{className:"mt-3 rounded-md",form:P,disabled:!l(n.IRoleAction.ManageProducts),children:[(0,r.jsxs)("div",{className:"relative max-w-full p-3 sm:px-5",children:[(0,r.jsx)("div",{className:"max-w-full justify-between align-baseline"}),(0,r.jsxs)("label",{className:"sr-only flex w-full font-sans text-sm text-text-muted lg:not-sr-only",children:[(0,r.jsxs)("span",{className:"flex w-full",children:[(0,r.jsx)("span",{className:"w-full",children:a({id:"min_quantity",defaultMessage:"Min Quantity"})}),(0,r.jsx)("span",{className:"w-full lg:ml-5",children:a({id:"price",defaultMessage:"Price"})})]}),(0,r.jsxs)("span",{className:"flex w-full",children:[(0,r.jsx)("span",{className:"w-full lg:ml-8",children:a({id:"vat_suspect",defaultMessage:"Vat Suspect"})}),(0,r.jsx)("span",{className:"w-full lg:ml-12",children:a({id:"net_price",defaultMessage:"Net Price"})})]}),(0,r.jsxs)("span",{className:"mr-5 flex w-full",children:[(0,r.jsx)("span",{className:"ml-10 w-full",children:a({id:"country",defaultMessage:"Country"})}),(0,r.jsx)("span",{className:"w-full",children:a({id:"currency",defaultMessage:"Currency"})})]})]}),(0,r.jsx)(T,{defaultCountryValue:g,defaultCurrencyValue:b,countries:d,currencies:o})]}),(0,r.jsx)(v.default,{displayFieldErrors:!0}),l(n.IRoleAction.ManageProducts)&&(0,r.jsx)("div",{className:"-mx-6 p-6 bg-surface-subtle text-right",children:(0,r.jsx)(y.default,{className:"mx-6",label:a({id:"save",defaultMessage:"Save"})})})]})}),(0,r.jsx)("p",{className:"mt-6 mb-10 text-sm text-text-muted",children:a({id:"product_commerce_info",defaultMessage:"One price should have a min quantity of 0 (or empty) and no two prices should share the same min quantity, currency and country"})})]})})}],42532);var q=e.i(70693),R=e.i(14336);let A=P.gql`
190
+ mutation UpdateProductTexts($productId: ID!, $texts: [ProductTextInput!]!) {
191
+ updateProductTexts(productId: $productId, texts: $texts) {
192
+ ...ProductTextsFragment
193
+ }
194
+ }
195
+ ${R.default}
196
+ `;var V=e.i(60195),D=e.i(83094),E=e.i(13120),U=e.i(53296),O=e.i(57561),L=e.i(48539);e.s(["default",0,({productId:e,disabled:a=!1})=>{let{selectedLocale:s,setSelectedLocale:l,languageDialectList:i}=(0,O.default)(),{formatMessage:d}=(0,u.useIntl)(),{hasRole:o}=(0,c.default)(),{defaultLocale:p,shopInfo:f,loading:x}=(0,L.default)(),{translatedTexts:g}=(({productId:e})=>{let{customProperties:t}=(0,q.default)(),{data:a,loading:s,error:l}=(0,N.useQuery)(((e="")=>P.gql`
197
+ query TranslatedProductTexts($productId: ID!) {
198
+ translatedProductTexts(productId: $productId) {
199
+ ...ProductTextsFragment
200
+ ${e}
201
+ }
202
+ }
203
+ ${R.default}
204
+ `)(t?.ProductTexts),{skip:!e,variables:{productId:e}});return{translatedTexts:a?.translatedProductTexts||[],loading:s,error:l}})({productId:e}),v=d({id:"saved",defaultMessage:"Saved"}),{updateProductTexts:b}=(()=>{let[e]=(0,$.useMutation)(A);return{updateProductTexts:async({productId:t,texts:a})=>e({variables:{productId:t,texts:a},refetchQueries:["TranslatedProductTexts"]})}})(),I=async({slug:t,title:a,subtitle:l,vendor:i,description:d,brand:r,labels:n})=>(await b({productId:e,texts:[{locale:s,slug:t,title:a,subtitle:l,vendor:i,description:d,brand:r,labels:n}]}),{success:!0}),M=(0,w.default)({disabled:a,submit:I,successMessage:v,initialValues:{slug:"",title:"",subtitle:"",vendor:"",description:"",brand:"",labels:[]}});return(0,t.useEffect)(()=>{let e=g?.find(e=>e.locale===s);M.api.setValues({slug:"",title:"",subtitle:"",vendor:"",description:"",brand:"",labels:[],...e||{}})},[g,s]),(0,t.useEffect)(()=>{if(f&&g?.length&&!g?.find(({locale:e})=>e===s))if(p&&g?.find(({locale:e})=>e===p))l(p);else if(p&&g?.find(({locale:e})=>e===p.split("-")[0]))l(p.split("-")[0]);else{let e=g?.find(({locale:e})=>e&&i?.find(({isoCode:t})=>t===e));l(e?.locale)}},[x,g]),(0,r.jsx)(V.default,{documentationLabel:d({id:"texts",defaultMessage:"Texts"}),className:"mt-2 lg:mt-5",documentation:(0,r.jsx)(u.FormattedMessage,{id:"product_text_form_description",defaultMessage:"<ul> <li><strong>Slug:</strong> The unique part of your product URL (e.g., 'my-awesome-product'). Keep it short and descriptive.</li>\n <li><strong>Localization:</strong> Switch languages using the dropdown at the top left to translate content for different markets.</li>\n <li><strong>Description:</strong> Supports Markdown and HTML formatting. Use double backslash (\\\\\\\\) for line breaks.</li>\n <li><strong>Labels:</strong> Eye-catching badges that appear on your product (e.g., 'New Arrival', '50% Off', 'Limited Edition'). Perfect for promotions and highlighting special features. Each language can have unique labels.</li>\n <li><strong>Key Difference:</strong> Labels are customer-facing promotional badges, while Tags are internal keywords for organization and filtering.</li>\n </ul>",values:{ul:e=>(0,r.jsxs)("ul",{className:"space-y-2",children:[e," "]}),li:e=>(0,r.jsxs)("li",{className:"text-sm",children:[e," "]},Math.random()),strong:e=>(0,r.jsx)("strong",{className:"font-semibold text-text-secondary",children:e})}}),children:(0,r.jsx)(m.default,{children:(0,r.jsxs)(h.default,{form:M,disabled:!o(n.IRoleAction.ManageProducts),children:[(0,r.jsxs)("div",{className:"relative text-text-muted px-4 py-5 sm:p-6",children:[(0,r.jsxs)("div",{className:"grid grid-cols-6 gap-6",children:[(0,r.jsx)("div",{className:"col-span-6 sm:col-span-3",children:(0,r.jsx)(j.default,{name:"slug",disabled:!o(n.IRoleAction.ManageProducts),required:!0,id:"slug",label:d({id:"slug",defaultMessage:"Slug"}),autoComplete:"on",className:"text-sm"})}),(0,r.jsx)("div",{className:"col-span-6 sm:col-span-3",children:(0,r.jsx)(j.default,{name:"title",disabled:!o(n.IRoleAction.ManageProducts),required:!0,id:"title",label:d({id:"title",defaultMessage:"Title"}),autoComplete:"on",className:"text-sm"})}),(0,r.jsx)("div",{className:"col-span-6 sm:col-span-3",children:(0,r.jsx)(j.default,{name:"subtitle",disabled:!o(n.IRoleAction.ManageProducts),id:"subtitle",label:d({id:"subtitle",defaultMessage:"Subtitle"}),autoComplete:"on",className:"text-sm"})}),(0,r.jsx)("div",{className:"col-span-6 sm:col-span-3",children:(0,r.jsx)(j.default,{name:"vendor",disabled:!o(n.IRoleAction.ManageProducts),id:"vendor",label:d({id:"vendor",defaultMessage:"Vendor"}),autoComplete:"on",className:"text-sm"})}),(0,r.jsx)("div",{className:"col-span-6 sm:col-span-3",children:(0,r.jsx)(j.default,{name:"brand",disabled:!o(n.IRoleAction.ManageProducts),id:"brand",label:d({id:"brand",defaultMessage:"Brand"}),autoComplete:"on",className:"text-sm"})}),(0,r.jsxs)("div",{className:"col-span-6 sm:col-span-3",children:[(0,r.jsx)(E.default,{name:"labels",id:"labels",disabled:!o(n.IRoleAction.ManageProducts),label:d({id:"labels",defaultMessage:"Labels"}),placeholder:d({id:"label",defaultMessage:"Label"}),buttonText:d({id:"add",defaultMessage:"Add"}),autoComplete:"on",className:"text-sm"}),(0,r.jsx)(U.default,{messageKey:"product_labels_help",defaultMessage:"Add promotional badges like 'New Arrival', '50% Off', or 'Limited Edition' that customers will see on your product. Perfect for highlighting deals and special features.",className:"mt-3"})]})]}),(0,r.jsx)("div",{className:"col-span-6 mt-6 sm:col-span-3",children:(0,r.jsx)(D.default,{name:"description",id:"description",disabled:!o(n.IRoleAction.ManageProducts),label:d({id:"description",defaultMessage:"Description"})})})]}),o(n.IRoleAction.ManageProducts)&&(0,r.jsx)("div",{className:"border-t-slate-100 border-t border-t-border-subtle bg-surface-subtle px-4 py-5 text-right sm:px-6",children:(0,r.jsx)(y.default,{label:d({id:"save",defaultMessage:"Save"})})})]})})})}],10785);var F=e.i(28401),Q=e.i(59295),B=e.i(6277),z=e.i(33006),K=e.i(93994),H=e.i(64479);let Z=P.gql`
205
+ mutation PrepareProductMediaUpload($mediaName: String!, $productId: ID!) {
206
+ prepareProductMediaUpload(mediaName: $mediaName, productId: $productId) {
207
+ _id
208
+ putURL
209
+ expires
210
+ }
211
+ }
212
+ `;var W=e.i(1880);let G=P.gql`
213
+ fragment ProductMediaFragment on ProductMedia {
214
+ _id
215
+ tags
216
+ file {
217
+ _id
218
+ name
219
+ type
220
+ size
221
+ url
222
+ }
223
+ sortKey
224
+ texts {
225
+ _id
226
+ locale
227
+ title
228
+ subtitle
229
+ }
230
+ }
231
+ `,X=P.gql`
232
+ query ProductMedia($productId: ID, $slug: String) {
233
+ product(productId: $productId, slug: $slug) {
234
+ _id
235
+ media {
236
+ ...ProductMediaFragment
237
+ }
238
+ }
239
+ }
240
+ ${G}
241
+ `;var J=e.i(2194),Y=e.i(90062);let ee=P.gql`
242
+ fragment ProductMediaTextsFragment on ProductMediaTexts {
243
+ _id
244
+ locale
245
+ title
246
+ subtitle
247
+ }
248
+ `,et=P.gql`
249
+ query TranslatedProductMediaTexts($productMediaId: ID!) {
250
+ translatedProductMediaTexts(productMediaId: $productMediaId) {
251
+ ...ProductMediaTextsFragment
252
+ }
253
+ }
254
+ ${ee}
255
+ `,ea=P.gql`
256
+ mutation UpdateProductMediaTexts(
257
+ $productMediaId: ID!
258
+ $texts: [ProductMediaTextInput!]!
259
+ ) {
260
+ updateProductMediaTexts(productMediaId: $productMediaId, texts: $texts) {
261
+ ...ProductMediaTextsFragment
262
+ }
263
+ }
264
+ ${ee}
265
+ `;var es=e.i(15971);let el=P.gql`
266
+ mutation RemoveProductMedia($productMediaId: ID!) {
267
+ removeProductMedia(productMediaId: $productMediaId) {
268
+ _id
269
+ }
270
+ }
271
+ `;var ei=e.i(6607);let ed=({media:e,id:a})=>{let{setModal:s}=(0,ei.default)(),{removeProductMedia:l}=(()=>{let[e]=(0,$.useMutation)(el);return{removeProductMedia:async({productMediaId:t})=>e({variables:{productMediaId:t},refetchQueries:["ProductMedia"]})}})(),{formatMessage:i}=(0,u.useIntl)(),{selectedLocale:d}=(0,O.default)(),{updateProductMediaTexts:o}=(()=>{let[e]=(0,$.useMutation)(ea);return{updateProductMediaTexts:async({productMediaId:t,texts:a})=>e({variables:{productMediaId:t,texts:a},refetchQueries:["TranslatedProductMediaTexts"]})}})(),[m,p]=(0,t.useState)(!1),{hasRole:f}=(0,c.default)(),{translatedMediaTexts:x}=(({productMediaId:e})=>{let{data:t,loading:a,error:s}=(0,N.useQuery)(et,{skip:!e,variables:{productMediaId:e}});return{translatedMediaTexts:t?.translatedProductMediaTexts||[],loading:a,error:s}})({productMediaId:e._id}),g=x?.find(e=>e.locale===d)||{},h=async e=>{await s((0,r.jsx)(es.default,{onCancelClick:async()=>s(""),message:i({id:"delete_product_media_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this media? "}),onOkClick:async()=>{s(""),await l({productMediaId:e}),F.toast.success(i({id:"product_media_deleted",defaultMessage:"Media deleted successfully"}))},okText:i({id:"delete_product_media",defaultMessage:"Delete media"})}))},v=async({title:t,subtitle:a})=>(await o({productMediaId:e._id,texts:[{title:t,locale:d,subtitle:a}]}),p(!1),!0);return(0,r.jsx)(Y.default,{id:a,media:e,mediaText:g,isEdit:m,onDelete:f(n.IRoleAction.ManageProducts)?h:void 0,onEdit:f(n.IRoleAction.ManageProducts)?p:void 0,onUpdate:f(n.IRoleAction.ManageProducts)?v:void 0})},er=({medias:e,items:t})=>{let{formatMessage:a}=(0,u.useIntl)();return(0,r.jsx)("div",{className:"rounded-md lg:col-span-6 px-6",children:(0,r.jsxs)("div",{className:"mx-auto overflow-hidden",children:[(0,r.jsx)("h2",{className:"sr-only",children:a({id:"product_media",defaultMessage:"Product Media"})}),(0,r.jsx)("div",{className:"flow-root",children:(0,r.jsx)(B.SortableContext,{items:t,strategy:B.verticalListSortingStrategy,children:(0,r.jsx)("ul",{className:"flex flex-col gap-3 rounded-md transition-[background-color] ease-in-out delay-200 ",children:e?.length?t.map(t=>{let a=Object.values(e).find(e=>e._id===t);return(0,r.jsx)(ed,{id:t,media:a},a._id)}):(0,r.jsx)(J.default,{message:a({id:"media",defaultMessage:"Media"})})})})})]})})},en=P.gql`
272
+ mutation ReOrderProductMedia($sortKeys: [ReorderProductMediaInput!]!) {
273
+ reorderProductMedia(sortKeys: $sortKeys) {
274
+ _id
275
+ }
276
+ }
277
+ `;e.s(["default",0,({productId:e})=>{let{productMedia:t}=(({productId:e=null,slug:t=null}={})=>{let a=(0,W.parseUniqueId)(t),{data:s,loading:l,error:i}=(0,N.useQuery)(X,{skip:!e&&!a,variables:{productId:e||a}});return{productMedia:s?.product?.media||[],loading:l,error:i}})({productId:e}),{formatMessage:a}=(0,u.useIntl)(),{hasRole:s}=(0,c.default)(),{addProductMedia:l}=(()=>{let[e]=(0,$.useMutation)(Z),{confirmMediaUpload:t}=(0,H.default)({refetchQueries:["Product"]});return{addProductMedia:async({productId:a,media:s})=>{let{data:l}=await e({variables:{productId:a,mediaName:s.name}}),{prepareProductMediaUpload:i}=l;return await (0,K.default)(s,i.putURL),t({mediaUploadTicketId:i._id,size:s?.size,type:s.type})}}})(),{reOrderProductMedia:i}=(()=>{let[e]=(0,$.useMutation)(en);return{reOrderProductMedia:async({sortKeys:t})=>e({variables:{sortKeys:t},refetchQueries:["ProductMedia"]})}})(),d=t?.map(e=>e._id),o=async t=>{try{await l({productId:e,media:t}),F.toast.success(a({id:"product_media_upload",defaultMessage:"Media uploaded successfully"}))}catch(e){F.toast.error(a({id:"fail_upload",defaultMessage:"Media upload failed"}))}},m=async e=>{let{active:t,over:s}=e;if(t.id!==s.id){let e=d.indexOf(t.id),l=d.indexOf(s.id),r=(0,B.arrayMove)(d,e,l).map((e,t)=>({productMediaId:e,sortKey:t}));try{await i({sortKeys:r}),F.toast.success(a({id:"link_reorder",defaultMessage:"Link reorder successfully"}))}catch(e){F.toast.error(a({id:"fail_reorder",defaultMessage:"Reordering failed, Try again!"}))}}else F.toast.info(a({id:"reorder_original",defaultMessage:"Reorder to original location"}))},p=(0,Q.useSensors)((0,Q.useSensor)(Q.PointerSensor,{activationConstraint:{distance:5}}),(0,Q.useSensor)(Q.KeyboardSensor,{coordinateGetter:B.sortableKeyboardCoordinates}));return(0,r.jsxs)("div",{className:"mx-auto mt-5 space-y-5 lg:space-y-0 max-w-full py-6 lg:grid lg:grid-cols-12 lg:gap-4",children:[s(n.IRoleAction.ManageProducts)&&(0,r.jsx)("div",{className:"mx-auto w-full px-6 lg:col-span-6 lg:col-start-1",children:(0,r.jsx)(z.default,{onlyDragAndDrop:!0,addMedia:o})}),(0,r.jsx)(Q.DndContext,{sensors:p,collisionDetection:Q.closestCenter,onDragEnd:m,children:(0,r.jsx)(er,{medias:t,items:d})})]})}],1330);let eo=P.gql`
278
+ fragment ProductPlanConfigurationFragment on ProductPlanConfiguration {
279
+ usageCalculationType
280
+ billingInterval
281
+ trialInterval
282
+ trialIntervalCount
283
+ billingIntervalCount
284
+ }
285
+ `,eu=P.gql`
286
+ query ProductPlan($productId: ID, $slug: String) {
287
+ product(productId: $productId, slug: $slug) {
288
+ _id
289
+ ... on PlanProduct {
290
+ plan {
291
+ ...ProductPlanConfigurationFragment
292
+ }
293
+ }
294
+ }
295
+ }
296
+ ${eo}
297
+ `,ec=P.gql`
298
+ query ProductPlanConfigurationOptions {
299
+ usageCalculationTypes: __type(name: "ProductPlanUsageCalculationType") {
300
+ options: enumValues {
301
+ value: name
302
+ label: description
303
+ }
304
+ }
305
+ configurationIntervals: __type(name: "ProductPlanConfigurationInterval") {
306
+ options: enumValues {
307
+ value: name
308
+ label: description
309
+ }
310
+ }
311
+ }
312
+ `,em=P.gql`
313
+ mutation UpdateProductPlan($productId: ID!, $plan: UpdateProductPlanInput!) {
314
+ updateProductPlan(productId: $productId, plan: $plan) {
315
+ _id
316
+ }
317
+ }
318
+ `;e.s(["default",0,({productId:e,disabled:a=!1})=>{let{formatMessage:s}=(0,u.useIntl)(),{configurationIntervals:l,usageCalculationTypes:i}=(()=>{let{data:e,loading:t,error:a}=(0,N.useQuery)(ec),s=e?.usageCalculationTypes?.options||[];return{configurationIntervals:e?.configurationIntervals?.options||[],usageCalculationTypes:s,loading:t,error:a}})(),{plan:d,loading:o}=(({productId:e=null,slug:t=null}={})=>{let a=(0,W.parseUniqueId)(t),{data:s,loading:l,error:i}=(0,N.useQuery)(eu,{skip:!e&&!a,variables:{productId:e||a}}),d=s?.product;return{plan:d?.plan,loading:l,error:i}})({productId:e}),{hasRole:f}=(0,c.default)(),{updateProductPlan:x}=(()=>{let[e]=(0,$.useMutation)(em);return{updateProductPlan:async({productId:t,plan:{usageCalculationType:a,billingInterval:s,billingIntervalCount:l=null,trialInterval:i=null,trialIntervalCount:d=null}})=>e({variables:{productId:t,plan:{usageCalculationType:a,billingInterval:s,billingIntervalCount:l,trialInterval:i,trialIntervalCount:d}},refetchQueries:["Products"]})}})(),g=s({id:"enrollment_updated_successfully",defaultMessage:"Enrollment saved successfully"}),v=async({trialInterval:t,trialIntervalCount:a,billingInterval:s,billingIntervalCount:l,usageCalculationType:i})=>(await x({productId:e,plan:{billingInterval:s,usageCalculationType:i,billingIntervalCount:l,trialInterval:t,trialIntervalCount:a}}),{success:!0}),I=(0,w.default)({disabled:a,submit:v,successMessage:g,initialValues:{trialInterval:"",trialIntervalCount:"",billingInterval:"",billingIntervalCount:"",usageCalculationType:""},getSubmitErrorMessage:e=>e?.message?.includes("Status of the product does not allow this operation")?s({id:"subscription_product_type_not_valid",defaultMessage:"Status of the product does not allow this operation"}):e?.message||""});return(0,t.useEffect)(()=>{d&&!o&&I.api.setValues(d)},[d]),(0,r.jsx)(V.default,{documentationLabel:s({id:"subscription",defaultMessage:"Subscription"}),className:"mt-2 lg:mt-5",documentation:(0,r.jsx)(u.FormattedMessage,{id:"product_subscription_form_description",defaultMessage:"<ul><li> Information that will be used to calculate price of a subscription based product </li>\n <li>The price specified in commerce section will be used when calculating fees on each interval. </li>\n <li>Price will not be included for the specified trial period </li> </ul>",values:{ul:e=>(0,r.jsxs)("ul",{className:"space-y-1",children:[e," "]}),li:e=>(0,r.jsx)("li",{children:e})}}),children:(0,r.jsx)(m.default,{children:(0,r.jsx)(h.default,{form:I,children:(0,r.jsxs)("div",{className:"relative max-w-full space-y-6 rounded-md sm:p-6",children:[(0,r.jsx)(b.default,{required:!0,className:"mt-2.5 w-full py-1.5 text-sm font-medium text-slate-500",label:s({id:"usage_calculation_type",defaultMessage:"Usage calculation type"}),placeholder:s({id:"usage_calculation_type",defaultMessage:"Usage calculation type"}),name:"usageCalculationType",options:(0,p.default)(i,"value","value")}),(0,r.jsxs)("div",{className:"w-full items-end justify-end sm:flex",children:[(0,r.jsx)(b.default,{className:"mt-2.5 w-full text-sm font-medium text-slate-500",required:!0,label:s({id:"billing_interval_unit",defaultMessage:"Billing interval unit"}),placeholder:s({id:"billing_interval_unit",defaultMessage:"Billing interval unit"}),name:"billingInterval",options:(0,p.default)(l,"value","value")}),(0,r.jsx)(j.default,{name:"billingIntervalCount",id:"billing_unit",type:"number",required:!0,label:s({id:"billing_unit",defaultMessage:"Billing Unit"}),placeholder:s({id:"billing_unit",defaultMessage:"Billing Unit"}),className:"mt-1 w-full text-sm font-medium text-slate-500 sm:ml-1"})]}),(0,r.jsxs)("div",{className:"max-w-full items-end justify-end sm:flex",children:[(0,r.jsx)(b.default,{className:"mt-2.5 w-full text-sm font-medium text-slate-500",label:s({id:"trial_interval_unit",defaultMessage:"Trial interval unit"}),placeholder:s({id:"trial_interval_unit",defaultMessage:"Trial interval unit"}),name:"trialInterval",options:(0,p.default)(l,"value","value")}),(0,r.jsx)(j.default,{type:"number",name:"trialIntervalCount",id:"trialIntervalCount ",label:s({id:"trial_unit",defaultMessage:"Trial Unit"}),placeholder:s({id:"trial_unit",defaultMessage:"Trial Unit"}),required:!0,className:"mt-1 w-full text-sm font-medium text-slate-500 sm:ml-1"})]}),f(n.IRoleAction.CreateEnrollment)&&(0,r.jsx)("div",{className:"-mx-6 -mb-6 mt-6 border-t-slate-100 border-t space-y-6 bg-slate-50 dark:bg-slate-500 text-right sm:p-6",children:(0,r.jsx)(y.default,{label:s({id:"save",defaultMessage:"Save"})})})]})})})})}],73356);var ep=e.i(60959);let ef=P.gql`
319
+ query ProductSupply($productId: ID, $slug: String) {
320
+ product(productId: $productId, slug: $slug) {
321
+ _id
322
+ ... on SimpleProduct {
323
+ dimensions {
324
+ ...ProductDimensionFragment
325
+ }
326
+ }
327
+ }
328
+ }
329
+ ${ep.default}
330
+ `,ex=P.gql`
331
+ mutation UpdateProductSupply(
332
+ $productId: ID!
333
+ $supply: UpdateProductSupplyInput!
334
+ ) {
335
+ updateProductSupply(productId: $productId, supply: $supply) {
336
+ _id
337
+ ... on SimpleProduct {
338
+ dimensions {
339
+ ...ProductDimensionFragment
340
+ }
341
+ }
342
+ }
343
+ }
344
+ ${ep.default}
345
+ `;e.s(["default",0,({productId:e,disabled:a=!1})=>{let{formatMessage:s}=(0,u.useIntl)(),l=s({id:"saved",defaultMessage:"Saved"}),{hasRole:i}=(0,c.default)(),{updateProductSupply:d}=(()=>{let[e]=(0,$.useMutation)(ex);return{updateProductSupply:async({productId:t,supply:{weightInGram:a=null,heightInMillimeters:s=null,lengthInMillimeters:l=null,widthInMillimeters:i=null}})=>e({variables:{productId:t,supply:{weightInGram:a||null,heightInMillimeters:s||null,lengthInMillimeters:l||null,widthInMillimeters:i||null}},refetchQueries:["Products"]})}})(),{dimensions:o}=(({productId:e=null,slug:t=null}={})=>{let a=(0,W.parseUniqueId)(t),{data:s,loading:l,error:i}=(0,N.useQuery)(ef,{skip:!e&&!t,variables:{productId:e||a}}),d=s?.product;return{dimensions:d?.dimensions||{},loading:l,error:i}})({productId:e}),p=async({weight:t,length:a,width:s,height:l})=>(await d({productId:e,supply:{weightInGram:t,lengthInMillimeters:a,heightInMillimeters:l,widthInMillimeters:s}}),{success:!0}),f=(0,w.default)({disabled:a,submit:p,getSubmitErrorMessage:e=>(e.message.includes("supply.weightInGram")&&e.message.includes("Expected type Int")?f.api.setFieldError("weight","Invalid value, only integer is accepted"):e.message.includes("supply.heightInMillimeters")&&e.message.includes("Expected type Int")?f.api.setFieldError("height","Invalid value, only integer is accepted"):e.message.includes("supply.lengthInMillimeters")&&e.message.includes("Expected type Int")&&f.api.setFieldError("length","Invalid value, only integer is accepted"),null),successMessage:l,initialValues:{weight:"",length:"",width:"",height:""}});return(0,t.useEffect)(()=>{Object.keys(o).length&&f.api.setValues(o)},[o]),(0,r.jsx)("div",{className:"mt-5 md:col-span-2 md:mt-0",children:(0,r.jsx)(m.default,{children:(0,r.jsxs)(h.default,{form:f,disabled:!i(n.IRoleAction.ManageProducts),children:[(0,r.jsx)("div",{className:"relative px-4 py-5 sm:p-6",children:(0,r.jsxs)("div",{className:"grid grid-cols-6 gap-6",children:[(0,r.jsx)("div",{className:"col-span-6 sm:col-span-3",children:(0,r.jsx)(j.default,{validators:[(0,M.validateInteger)()],type:"number",name:"weight",disabled:!i(n.IRoleAction.ManageProducts),id:"weight",label:s({id:"weight_gram",defaultMessage:"Weight (Gram)"}),className:"text-sm"})}),(0,r.jsx)("div",{className:"col-span-6 sm:col-span-3",children:(0,r.jsx)(j.default,{validators:[(0,M.validateInteger)()],name:"length",disabled:!i(n.IRoleAction.ManageProducts),id:"length",type:"number",label:s({id:"length_millimeter",defaultMessage:"Length (Millimeter)"}),className:"text-sm"})}),(0,r.jsx)("div",{className:"col-span-6 sm:col-span-3",children:(0,r.jsx)(j.default,{validators:[(0,M.validateInteger)()],type:"number",name:"width",disabled:!i(n.IRoleAction.ManageProducts),id:"width ",label:s({id:"width",defaultMessage:"Width (Millimeter)"}),className:"text-sm "})}),(0,r.jsx)("div",{className:"col-span-6 sm:col-span-3",children:(0,r.jsx)(j.default,{validators:[(0,M.validateInteger)()],name:"height",disabled:!i(n.IRoleAction.ManageProducts),type:"number",id:"height",label:s({id:"height",defaultMessage:"Height (Millimeter)"}),className:"text-sm "})})]})}),i(n.IRoleAction.ManageProducts)&&(0,r.jsx)("div",{className:"border-t-slate-100 border-t border-t-border-subtle space-y-6 bg-surface-subtle text-right sm:p-6",children:(0,r.jsx)(y.default,{label:s({id:"save",defaultMessage:"Save"}),full:!0})})]})})})}],50099);var eg=e.i(37369),eh=e.i(53576);let ev=P.gql`
346
+ mutation CreateProductVariation(
347
+ $productId: ID!
348
+ $variation: CreateProductVariationInput!
349
+ $texts: [ProductVariationTextInput!]
350
+ ) {
351
+ createProductVariation(
352
+ productId: $productId
353
+ variation: $variation
354
+ texts: $texts
355
+ ) {
356
+ _id
357
+ }
358
+ }
359
+ `,eb=P.gql`
360
+ fragment ProductVariationFragment on ProductVariation {
361
+ _id
362
+ type
363
+ key
364
+ texts(forceLocale: $locale) {
365
+ _id
366
+ locale
367
+ title
368
+ subtitle
369
+ }
370
+ options {
371
+ _id
372
+ texts(forceLocale: $locale) {
373
+ _id
374
+ locale
375
+ title
376
+ subtitle
377
+ }
378
+ value
379
+ }
380
+ }
381
+ `,ey=P.gql`
382
+ query ProductVariations($productId: ID, $slug: String, $locale: Locale) {
383
+ product(productId: $productId, slug: $slug) {
384
+ _id
385
+ ... on ConfigurableProduct {
386
+ variations {
387
+ ...ProductVariationFragment
388
+ }
389
+ }
390
+ }
391
+ }
392
+ ${eb}
393
+ `,ej=P.gql`
394
+ query ProductVariationType {
395
+ variationTypes: __type(name: "ProductVariationType") {
396
+ options: enumValues {
397
+ value: name
398
+ label: description
399
+ }
400
+ }
401
+ }
402
+ `,eI=({helpKey:e,helpText:t,helpValues:a,...s})=>(0,r.jsxs)("div",{className:"space-y-1",children:[(0,r.jsx)(j.default,{...s}),(e||t)&&(0,r.jsx)(U.default,{messageKey:e||`${s.name}_help`,defaultMessage:t,values:a,className:"mt-1"})]});var ew=e.i(95789);let eM=P.gql`
403
+ mutation RemoveProductVariation($productVariationId: ID!) {
404
+ removeProductVariation(productVariationId: $productVariationId) {
405
+ _id
406
+ }
407
+ }
408
+ `;var eP=e.i(42469);let eN=P.gql`
409
+ mutation UpdateProductVariationTexts(
410
+ $productVariationId: ID!
411
+ $productVariationOptionValue: String
412
+ $texts: [ProductVariationTextInput!]!
413
+ ) {
414
+ updateProductVariationTexts(
415
+ productVariationId: $productVariationId
416
+ productVariationOptionValue: $productVariationOptionValue
417
+ texts: $texts
418
+ ) {
419
+ _id
420
+ }
421
+ }
422
+ `,e_=()=>{let[e]=(0,$.useMutation)(eN);return{updateProductVariationTexts:async({productVariationId:t,productVariationOptionValue:a,texts:s})=>e({variables:{productVariationId:t,productVariationOptionValue:a,texts:s},refetchQueries:["ProductVariations"]})}},ek=({variation:e,onCancel:t,onSuccess:a})=>{let{updateProductVariationTexts:s}=e_(),{formatMessage:l}=(0,u.useIntl)(),{selectedLocale:i}=(0,O.default)(),d=async({title:t,subtitle:l})=>(await s({productVariationId:e._id,texts:[{title:t,subtitle:l,locale:i}]}),a(),{success:!0}),n=(0,w.default)({submit:d,initialValues:{title:e?.texts?.title??"",subtitle:e?.texts?.subtitle??""}});return(0,r.jsx)(h.default,{form:n,className:"variation-update-form bg-surface px-4 py-3 border-b border-border-subtle w-full overflow-x-hidden overflow-y-visible relative hover:outline hover:outline-2 hover:outline-slate-400 dark:hover:outline-slate-500 transition-all","data-variationid":e._id,children:(0,r.jsxs)("div",{className:"flex items-center justify-between w-full gap-4",tabIndex:-1,children:[(0,r.jsxs)("div",{className:"flex items-center gap-4 flex-1 min-w-0 overflow-hidden flex-wrap",children:[(0,r.jsx)("div",{className:"flex-shrink-0 min-w-[180px]",children:(0,r.jsx)(j.default,{className:"mt-0 py-1",name:"title",required:!0,label:l({id:"title",defaultMessage:"Title"})})}),e?.type&&(0,r.jsx)(eP.default,{text:e.type,color:"slate",className:"rounded-md uppercase text-xs font-medium flex-shrink-0"}),(0,r.jsx)("div",{className:"text-sm text-text-muted truncate min-w-[200px]",children:(0,r.jsx)(j.default,{className:"mt-0 py-1",name:"subtitle",label:l({id:"subtitle",defaultMessage:"Subtitle"})})}),e?.options?.length>0&&(0,r.jsx)("div",{className:"flex items-center gap-2 flex-wrap",children:e.options.map((e,t)=>(0,r.jsx)("span",{className:"inline-flex text-nowrap items-center px-2 py-0.5 rounded-lg text-xs font-medium bg-slate-100 dark:bg-slate-900 text-text-secondary border border-border-subtle",children:e?.texts?.title||e.value},e.value||t))}),(0,r.jsxs)("div",{className:"text-sm text-text-muted font-mono flex-shrink-0",children:["(",e?.key,")"]})]}),(0,r.jsxs)("div",{className:"flex space-x-2 flex-shrink-0",children:[(0,r.jsx)(I.default,{onClick:t,type:"button",variant:"secondary",size:"sm",text:l({id:"cancel",defaultMessage:"Cancel"})}),(0,r.jsx)(I.default,{onClick:()=>n.api.submitForm(),type:"submit",variant:"primary",size:"sm",text:l({id:"save",defaultMessage:"Save"})})]})]})})};var e$=e.i(86712),eC=e.i(64481),eS=e.i(37650),eT=e.i(24557);let eq=({type:e,variation:a,onEdit:s,onDelete:l})=>{let[i,d]=(0,t.useState)(!1),{formatMessage:n}=(0,u.useIntl)(),{buttonRef:o,menuRef:c,menuPosition:m}=((e,a)=>{let s=(0,t.useRef)(null),l=(0,t.useRef)(null),[i,d]=(0,t.useState)({top:0,left:0});return(0,t.useEffect)(()=>{let e=e=>{s.current&&!s.current.contains(e.target)&&a(!1)};return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)},[a]),(0,t.useEffect)(()=>{if(e&&l.current){let e=l.current.getBoundingClientRect(),t=e.bottom+4,a=e.right-192;a<8&&(a=8),t+80>window.innerHeight-8&&(t=e.top-80-4),d({top:t,left:a})}},[e]),{buttonRef:l,menuRef:s,menuPosition:i}})(i,d);return(0,r.jsx)("div",{className:"variation-display bg-surface px-4 py-3 border-b border-border-subtle w-full overflow-x-hidden overflow-y-visible relative hover:outline hover:outline-2 hover:outline-slate-400 dark:hover:outline-slate-500 transition-all",children:(0,r.jsxs)("div",{className:"flex items-center justify-between w-full gap-4",tabIndex:-1,children:[(0,r.jsxs)("div",{className:"flex items-center gap-4 flex-1 min-w-0 overflow-hidden",children:[(0,r.jsx)("div",{className:"flex-shrink-0 text-lg font-semibold text-text-primary truncate",children:a?.texts?.title}),e&&(0,r.jsx)(eP.default,{text:e,color:"slate",className:"rounded-md uppercase text-xs font-medium flex-shrink-0"}),a?.texts?.subtitle&&(0,r.jsx)("div",{className:"text-sm text-text-muted truncate",children:a?.texts?.subtitle}),a?.options?.length>0&&(0,r.jsx)("div",{className:"flex items-center gap-2 flex-wrap",children:a.options.map((e,t)=>(0,r.jsx)("span",{className:"inline-flex text-nowrap items-center px-2 py-0.5 rounded-lg text-xs font-medium bg-slate-100 dark:bg-slate-900 text-text-secondary border border-border-subtle",children:e?.texts?.title||e.value},e.value||t))}),(0,r.jsxs)("div",{className:"text-sm text-text-muted font-mono flex-shrink-0",children:["(",a?.key,")"]})]}),(0,r.jsxs)("div",{className:"relative flex-shrink-0",children:[(0,r.jsx)("button",{ref:o,type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),d(e=>!e)},className:"flex items-center justify-center w-8 h-8 rounded-md hover:bg-surface-raised transition-colors",children:(0,r.jsx)(e$.EllipsisHorizontalIcon,{className:"w-5 h-5 text-text-muted"})}),i&&(0,r.jsx)(eC.default,{children:(0,r.jsx)("div",{ref:c,className:"fixed w-48 bg-surface rounded-md shadow-xl border border-border-subtle z-[9999]",style:{top:m.top,left:m.left,boxShadow:"0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05)"},children:(0,r.jsxs)("div",{className:"py-1",children:[(0,r.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),s(),d(!1)},className:"flex items-center w-full px-4 py-2 text-sm text-text-secondary hover:bg-surface-raised transition-colors",children:[(0,r.jsx)(eS.PencilSquareIcon,{className:"mr-3 h-5 w-5"}),n({id:"edit",defaultMessage:"Edit"})]}),(0,r.jsxs)("button",{type:"button",onClick:e=>{e.stopPropagation(),e.preventDefault(),l(a._id),d(!1)},className:"flex items-center w-full px-4 py-2 text-sm text-danger hover:bg-rose-50 dark:hover:bg-rose-900/20 transition-colors",children:[(0,r.jsx)(eT.TrashIcon,{className:"mr-3 h-5 w-5"}),n({id:"delete",defaultMessage:"Delete"})]})]})})})]})]})})},eR=({type:e,variation:a,onDelete:s})=>{let[l,i]=(0,t.useState)(!1);return l?(0,r.jsx)(ek,{variation:a,onCancel:()=>i(!1),onSuccess:()=>i(!1)}):(0,r.jsx)(eq,{type:e,variation:a,onEdit:()=>i(!0),onDelete:s})},eA=P.gql`
423
+ mutation CreateProductVariationOption(
424
+ $productVariationId: ID!
425
+ $option: String!
426
+ $texts: [ProductVariationTextInput!]
427
+ ) {
428
+ createProductVariationOption(
429
+ productVariationId: $productVariationId
430
+ option: $option
431
+ texts: $texts
432
+ ) {
433
+ _id
434
+ }
435
+ }
436
+ `,eV=P.gql`
437
+ mutation RemoveProductVariationOption(
438
+ $productVariationId: ID!
439
+ $productVariationOptionValue: String!
440
+ ) {
441
+ removeProductVariationOption(
442
+ productVariationId: $productVariationId
443
+ productVariationOptionValue: $productVariationOptionValue
444
+ ) {
445
+ _id
446
+ }
447
+ }
448
+ `,eD=({onSubmit:e})=>{let{formatMessage:t}=(0,u.useIntl)(),{hasRole:a}=(0,c.default)(),s=t({id:"variation_option_added",defaultMessage:"Variation option added successfully!"}),l=(0,w.default)({submit:e,successMessage:s,initialValues:{value:"",title:""}});return(0,r.jsxs)(h.default,{form:l,className:"variation-option-form relative overflow-visible",children:[(0,r.jsx)("div",{className:"mb-4 px-2 sm:px-4 pt-2",children:(0,r.jsx)("div",{className:"p-3 bg-surface-subtle/20 rounded-lg border border-border-subtle",children:(0,r.jsx)("p",{className:"text-sm text-text-secondary",children:t({id:"variation_options_explanation",defaultMessage:'Add individual choices for this variation (e.g., "Red", "Blue", "Green" for a Color variation)'})})})}),(0,r.jsxs)("div",{className:"grid lg:grid-cols-2 gap-3 px-2 sm:px-4 sm:pb-4",children:[(0,r.jsx)("div",{className:"col-span-1",children:(0,r.jsx)(eI,{className:"mt-2 pt-1",name:"title",label:t({id:"title",defaultMessage:"Title"}),helpText:t({id:"variation_option_title_help",defaultMessage:'Display name customers see (e.g., "Red", "Large", "Cotton")'}),required:!0})}),(0,r.jsx)("div",{className:"col-span-1",children:(0,r.jsx)(eI,{className:"mt-2 pt-1",name:"value",label:t({id:"value",defaultMessage:"Value"}),helpText:t({id:"variation_option_value_help",defaultMessage:'Internal identifier (e.g., "red", "large", "cotton")'}),required:!0})})]}),a(n.IRoleAction.ManageProducts)&&(0,r.jsx)("div",{className:"text-right mt-2 px-6 pb-6",children:(0,r.jsx)(y.default,{className:"py-2.5",label:t({id:"add_variation_option",defaultMessage:"Add option"})})})]})};var eE=e.i(3095);let eU=({option:e,onDelete:a,variationId:s})=>{let{formatMessage:l}=(0,u.useIntl)(),{selectedLocale:i}=(0,O.default)(),[d,n]=(0,t.useState)(!1),o=l({id:"variation_option_updated",defaultMessage:"Variation option updated successfully!"}),{updateProductVariationTexts:c}=e_(),m=async({title:t,subtitle:a})=>{let l=await c({productVariationId:s,productVariationOptionValue:e.value,texts:[{title:t,subtitle:a,locale:i}]});return n(!1),{data:l,success:!0}},p=(0,w.default)({submit:m,successMessage:o,initialValues:{title:e?.texts?.title,subtitle:e?.texts?.subtitle}});return(0,r.jsx)(h.default,{form:p,className:"last:pb-2 variation-option-update-form relative overflow-visible",children:(0,r.jsx)("div",{className:"my-2 rounded-sm border dark:border-slate-700 mx-4 ",children:(0,r.jsx)("div",{className:"p-2 bg-surface-input dark:text-slate-200",children:(0,r.jsxs)("div",{className:"flex gap-2 w-full items-center justify-between",children:[(0,r.jsx)(eP.default,{text:e?.value,color:"slate",className:"rounded-md"}),(0,r.jsxs)("div",{className:"flex items-center gap-4 w-full",children:[(0,r.jsx)("p",{className:"truncate text-sm font-medium text-slate-900 dark:text-slate-400",children:d?(0,r.jsx)(j.default,{className:"mt-0",name:"title",required:!0,label:l({id:"title",defaultMessage:"Title"})}):e?.texts?.title}),(0,r.jsx)("p",{className:"truncate text-sm text-slate-500",children:d?(0,r.jsx)(j.default,{className:"mt-0",name:"subtitle",label:l({id:"subtitle",defaultMessage:"Subtitle"})}):e?.texts?.subtitle})]}),(0,r.jsx)("div",{className:"flex items-center justify-end ml-auto",children:d?(0,r.jsxs)("div",{className:"flex space-x-2 py-2",children:[(0,r.jsx)("button",{onClick:()=>n(!d),"aria-label":l({id:"cancel",defaultMessage:"Cancel"}),type:"button",className:"inline-flex items-center justify-center font-medium shadow-sm focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50 px-3 py-2 text-sm h-8 rounded-md border border-border-default bg-surface text-text-secondary hover:bg-surface-raised focus:ring-focus-ring",children:l({id:"cancel",defaultMessage:"Cancel"})}),(0,r.jsx)("button",{type:"submit","aria-label":l({id:"save",defaultMessage:"Save"}),className:"inline-flex items-center justify-center font-medium shadow-sm focus:outline-hidden focus:ring-2 focus:ring-offset-2 transition-colors duration-200 disabled:cursor-not-allowed disabled:opacity-50 px-3 py-2 text-sm h-8 rounded-md border border-accent bg-accent text-text-on-accent hover:bg-accent-hover focus:ring-focus-ring",children:l({id:"save",defaultMessage:"Save"})})]}):(0,r.jsx)(eE.default,{onEdit:()=>{n(!0)},onDelete:()=>{a(e.value)},showEdit:!0,showDelete:!0})})]})})})})},eO=({variationId:e,options:t})=>{let{createProductVariationOption:a}=(()=>{let[e]=(0,$.useMutation)(eA);return{createProductVariationOption:async({productVariationId:t,option:a,texts:s})=>e({variables:{productVariationId:t,option:a,texts:s},refetchQueries:["ProductVariations","Product"]})}})(),{formatMessage:s}=(0,u.useIntl)(),{selectedLocale:l}=(0,O.default)(),{setModal:i}=(0,ei.default)(),{removeProductVariationOption:d}=(()=>{let[e]=(0,$.useMutation)(eV);return{removeProductVariationOption:async({productVariationId:t,productVariationOptionValue:a})=>e({variables:{productVariationId:t,productVariationOptionValue:a},refetchQueries:["ProductVariations"]})}})(),n=async t=>{await i((0,r.jsx)(es.default,{message:s({id:"delete_variation_option_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this option? "}),onCancelClick:()=>i(""),onOkClick:async()=>{i(""),await d({productVariationId:e,productVariationOptionValue:t}),F.toast.success(s({id:"product_variation_option_deleted",defaultMessage:"Variation option deleted successfully"}))},okText:s({id:"delete_variation_option",defaultMessage:"Delete option"})}))},o=async({value:t,title:s})=>(await a({productVariationId:e,option:t,texts:[{title:s,locale:l}]}),{success:!0});return(0,r.jsxs)("div",{className:"relative overflow-visible",children:[(0,r.jsx)(eD,{onSubmit:o}),t.length?t.map(t=>(0,r.jsx)(eU,{variationId:e,option:t,onDelete:n},t._id)):(0,r.jsx)(J.default,{message:s({id:"option",defaultMessage:"Option"})})]})},eL=({productVariationId:e,variation:t})=>{let{formatMessage:a}=(0,u.useIntl)(),{setModal:s}=(0,ei.default)(),{options:l}=t,{removeProductVariation:i}=(()=>{let[e]=(0,$.useMutation)(eM);return{removeProductVariation:async({productVariationId:t})=>e({variables:{productVariationId:t},refetchQueries:["ProductVariations"]})}})(),d=async()=>{await s((0,r.jsx)(es.default,{onCancelClick:async()=>s(""),message:a({id:"delete_product_variation_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this variation? "}),onOkClick:async()=>{s(""),await i({productVariationId:e}),F.toast.success(a({id:"product_variation_deleted",defaultMessage:"Variation deleted successfully"}))},okText:a({id:"delete_product_variation",defaultMessage:"Delete variation"})}))},n=[{header:(0,r.jsx)(eR,{onDelete:d,variation:t,...t}),body:(0,r.jsx)(eO,{variationId:t._id,options:l},e)}];return(0,r.jsx)(ew.default,{"data-variationid":t._id,data:n,containerCSS:"w-full max-w-full !my-0 !border-0 !shadow-none relative",bodyCSS:"bg-surface-subtle !border-t-0 relative overflow-visible",itemContainerCSS:"!mt-0 !mb-0 !border-0",headerCSS:"w-full flex items-center justify-between !p-0 !bg-transparent !border-0",hideChevron:!0})},eF=({onSubmit:e,disabled:t,formatMessage:a})=>{let{variationTypes:s}=(()=>{let{data:e,loading:t,error:a}=(0,N.useQuery)(ej);return{variationTypes:e?.variationTypes?.options||[],loading:t,error:a}})(),{hasRole:l}=(0,c.default)(),i=a({id:"product_variation_added",defaultMessage:"Product variation added successfully"}),d=(0,w.default)({disabled:t,submit:e,successMessage:i,initialValues:{title:"",key:"",type:""}});return(0,r.jsxs)("div",{children:[(0,r.jsxs)("div",{className:"mb-6",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-text-primary mb-2",children:a({id:"product_variations_explanation_title",defaultMessage:"About Product Variations"})}),(0,r.jsx)("p",{className:"text-sm text-text-secondary",children:a({id:"product_variations_explanation",defaultMessage:"Variations allow customers to choose different options for your product (like color, size, material). Each variation can have multiple options that customers can select from."})})]}),(0,r.jsxs)(h.default,{form:d,children:[(0,r.jsxs)("div",{className:"space-y-6",children:[(0,r.jsx)(eI,{name:"title",id:"title",label:a({id:"title",defaultMessage:"Title"}),helpText:a({id:"product_variation_title_help",defaultMessage:'The display name customers will see (e.g., "Color", "Size", "Material")'}),required:!0,autoComplete:"on",className:"w-full"}),(0,r.jsx)(eI,{name:"key",id:"key",label:a({id:"key",defaultMessage:"Key"}),helpText:a({id:"product_variation_key_help",defaultMessage:'Unique identifier used internally (e.g., "color", "size"). Use lowercase without spaces.'}),required:!0,autoComplete:"on",className:"w-full"}),(0,r.jsxs)("div",{children:[(0,r.jsx)(b.default,{required:!0,className:"w-full",label:a({id:"type",defaultMessage:"Type"}),placeholder:a({id:"type",defaultMessage:"Type"}),name:"type",options:(0,p.default)(s,"value","value")}),(0,r.jsx)(U.default,{messageKey:"product_variation_type_help",defaultMessage:"COLOR: For predefined options like colors or sizes. TEXT: For free-form input like custom text or measurements.",className:"mt-1"})]})]}),l(n.IRoleAction.ManageProducts)&&(0,r.jsx)("div",{className:"flex justify-end mt-6 py-6 -mb-6 bg-slate-100 -mx-6 pe-5 border-t border-border-subtle bg-surface-subtle",children:(0,r.jsx)(y.default,{label:a({id:"add_variation",defaultMessage:"Add variation"})})})]})]})};e.s(["default",0,({productId:e,disabled:t=!1})=>{let{createProductVariation:a}=(()=>{let[e]=(0,$.useMutation)(ev);return{createProductVariation:async({productId:t,variation:{key:a,type:s},texts:l})=>e({variables:{productId:t,variation:{key:a,type:s},texts:l},refetchQueries:["ProductVariations"]})}})(),{selectedLocale:s}=(0,O.default)(),{formatMessage:l}=(0,u.useIntl)(),{setModal:i}=(0,ei.default)(),{variations:d,loading:n}=(({productId:e=null,slug:t=null,locale:a=null}={})=>{let s=(0,W.parseUniqueId)(t),{data:l,loading:i,error:d}=(0,N.useQuery)(ey,{skip:!e&&!s,variables:{productId:e||s,locale:a}}),r=l?.product;return{variations:r?.variations,loading:i,error:d}})({productId:e,locale:s}),o=async({title:t,key:l,type:d})=>(await a({productId:e,variation:{key:l,type:d},texts:[{title:t,locale:s}]}),i(""),{success:!0});return n?(0,r.jsx)(eh.default,{}):(0,r.jsxs)("div",{className:"mt-6 overflow-hidden rounded-md w-full max-w-full",children:[(0,r.jsx)("div",{className:"mb-6 flex justify-end items-center",children:(0,r.jsx)(I.default,{className:"m-1",onClick:()=>{i((0,r.jsx)(eF,{onSubmit:o,disabled:t,formatMessage:l}))},disabled:t,variant:"secondary",icon:(0,r.jsx)(eg.PlusIcon,{className:"w-5 h-5"}),text:l({id:"add_variation",defaultMessage:"Add variation"})})}),(0,r.jsx)("div",{className:"flex flex-col border border-border-subtle rounded-md overflow-x-hidden overflow-y-visible w-full relative",children:d?.length?d?.map(e=>(0,r.jsx)(eL,{productVariationId:e._id,variation:e},e._id)):(0,r.jsx)(J.default,{message:l({id:"variations",defaultMessage:"Variations"})})})]})}],77035);let eQ=P.gql`
449
+ query ProductWarehousing($productId: ID, $slug: String) {
450
+ product(productId: $productId, slug: $slug) {
451
+ _id
452
+ ... on SimpleProduct {
453
+ sku
454
+ baseUnit
455
+ }
456
+ }
457
+ }
458
+ `,eB=P.gql`
459
+ mutation UpdateProductWarehousing(
460
+ $productId: ID!
461
+ $warehousing: UpdateProductWarehousingInput!
462
+ ) {
463
+ updateProductWarehousing(productId: $productId, warehousing: $warehousing) {
464
+ _id
465
+ ... on SimpleProduct {
466
+ sku
467
+ baseUnit
468
+ }
469
+ }
470
+ }
471
+ `;e.s(["default",0,({productId:e,disabled:a=!1})=>{let{formatMessage:s}=(0,u.useIntl)(),{product:l}=(({productId:e=null,slug:t=null}={})=>{let a=(0,W.parseUniqueId)(t),{data:s,loading:l,error:i}=(0,N.useQuery)(eQ,{skip:!e&&!a,variables:{productId:e||a}});return{product:s?.product||{},loading:l,error:i}})({productId:e}),{hasRole:i}=(0,c.default)(),{updateProductWarehousing:d}=(()=>{let[e]=(0,$.useMutation)(eB);return{updateProductWarehousing:async({productId:t,warehousing:{sku:a=null,baseUnit:s=null}})=>e({variables:{productId:t,warehousing:{sku:a,baseUnit:s}},refetchQueries:["Products"]})}})(),o=s({id:"saved",defaultMessage:"Saved"}),p=async({sku:t,baseUnit:a})=>({data:await d({productId:e,warehousing:{baseUnit:a,sku:t}}),success:!0}),f=(0,w.default)({disabled:a,submit:p,successMessage:o,initialValues:{sku:"",baseUnit:""}});return(0,t.useEffect)(()=>{Object.keys(l).length&&f.api.setValues({...l})},[l]),(0,r.jsx)("div",{className:"mt-5 md:mt-0",children:(0,r.jsx)(m.default,{children:(0,r.jsxs)(h.default,{className:"rounded",form:f,disabled:!i(n.IRoleAction.ManageProducts),children:[(0,r.jsx)("div",{className:"relative px-4 pb-5 sm:p-6",children:(0,r.jsxs)("div",{className:"w-full justify-between align-baseline lg:flex gap-6",children:[(0,r.jsx)(j.default,{name:"sku",disabled:!i(n.IRoleAction.ManageProducts),id:"sku",label:s({id:"sku",defaultMessage:"SKU"}),className:"mb-4 text-sm"}),(0,r.jsx)(j.default,{name:"baseUnit",id:"baseUnit",disabled:!i(n.IRoleAction.ManageProducts),label:s({id:"baseUnit",defaultMessage:"Base Unit"}),className:"text-sm"})]})}),i(n.IRoleAction.ManageProducts)&&(0,r.jsx)("div",{className:"border-t-slate-100 border-t border-t-border-subtle space-y-6 bg-surface-subtle text-right sm:p-6",children:(0,r.jsx)(y.default,{label:s({id:"save",defaultMessage:"Save"})})})]})})})}],56902);var ez=e.i(56417),eK=e.i(27028),eH=e.i(3883),eZ=e.i(84818);let eW=P.gql`
472
+ query ProductFulfillmentSimulation(
473
+ $productId: ID
474
+ $deliveryProviderType: DeliveryProviderType
475
+ $quantity: Int
476
+ $referenceDate: Timestamp
477
+ ) {
478
+ product(productId: $productId) {
479
+ _id
480
+ ... on SimpleProduct {
481
+ simulatedDispatches(
482
+ deliveryProviderType: $deliveryProviderType
483
+ quantity: $quantity
484
+ referenceDate: $referenceDate
485
+ ) {
486
+ shipping
487
+ earliestDelivery
488
+ deliveryProvider {
489
+ _id
490
+ type
491
+ isActive
492
+ interface {
493
+ _id
494
+ label
495
+ version
496
+ }
497
+ }
498
+ warehousingProvider {
499
+ _id
500
+ type
501
+ isActive
502
+ interface {
503
+ _id
504
+ label
505
+ version
506
+ }
507
+ }
508
+ }
509
+ simulatedStocks(
510
+ deliveryProviderType: $deliveryProviderType
511
+ referenceDate: $referenceDate
512
+ ) {
513
+ quantity
514
+ deliveryProvider {
515
+ _id
516
+ type
517
+ interface {
518
+ _id
519
+ label
520
+ }
521
+ }
522
+ warehousingProvider {
523
+ _id
524
+ interface {
525
+ _id
526
+ label
527
+ }
528
+ }
529
+ }
530
+ }
531
+ }
532
+ }
533
+ `,eG=(e,t)=>e?.deliveryProvider?._id===t?.deliveryProvider?._id&&e?.warehousingProvider?._id===t?.warehousingProvider?._id,eX="w-full rounded-md border-1 border-border-default bg-surface-input px-3 py-2 text-sm shadow-xs text-text-primary focus:outline-hidden focus:ring-2 focus:ring-focus-ring",eJ=e=>[e?.interface?.label,e?.interface?.version].filter(Boolean).join(" ")||e?._id||null;e.s(["default",0,({productId:e})=>{let{formatMessage:a}=(0,u.useIntl)(),{formatDateTime:s}=(0,eZ.default)(),[l,i]=(0,t.useState)(1),[d,o]=(0,t.useState)(null),[c,m]=(0,t.useState)(""),{dispatches:p,unroutedStocks:f,loading:x,error:g}=(({productId:e,deliveryProviderType:a=null,quantity:s=null,referenceDate:l=null})=>{let{data:i,loading:d,error:r}=(0,N.useQuery)(eW,{skip:!e,variables:{productId:e,deliveryProviderType:a,quantity:s,referenceDate:l},errorPolicy:"all"}),{dispatches:n,unroutedStocks:o}=(0,t.useMemo)(()=>{let e=i?.product||{},t=(e?.simulatedDispatches||[]).filter(e=>!a||e?.deliveryProvider?.type===a),s=(e?.simulatedStocks||[]).filter(e=>!a||!e?.deliveryProvider?.type||e?.deliveryProvider?.type===a);return{dispatches:t.map(e=>({...e,stockQuantity:s.find(t=>eG(t,e))?.quantity??null})),unroutedStocks:s.filter(e=>!t.some(t=>eG(e,t)))}},[i,a]);return{dispatches:n,unroutedStocks:o,loading:d,error:r}})({productId:e,quantity:l,referenceDate:d?new Date(d).getTime():null,deliveryProviderType:c||null});return(0,r.jsxs)("div",{className:"mt-5 md:mt-0 space-y-6",children:[(0,r.jsx)("div",{children:(0,r.jsx)(U.default,{messageKey:"fulfillment_preview_description",defaultMessage:"Preview which delivery and warehousing providers the engine would use to fulfill this product, exactly as calculated during checkout."})}),(0,r.jsxs)("div",{className:"grid grid-cols-1 gap-4 sm:grid-cols-3 max-w-2xl",children:[(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("label",{htmlFor:"simulation-quantity",className:"text-sm font-medium text-text-secondary",children:a({id:"quantity",defaultMessage:"Quantity"})}),(0,r.jsx)("input",{type:"number",id:"simulation-quantity",min:1,value:l,onChange:e=>i(Math.max(1,Number(e.target.value))),className:eX})]}),(0,r.jsx)(eH.default,{id:"simulation-reference-date",label:a({id:"simulate_as_of",defaultMessage:"Simulate as of"}),value:d,onChange:o}),(0,r.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,r.jsx)("label",{htmlFor:"simulation-delivery-type",className:"text-sm font-medium text-text-secondary",children:a({id:"delivery_type",defaultMessage:"Delivery type"})}),(0,r.jsxs)("select",{id:"simulation-delivery-type",value:c,onChange:e=>m(e.target.value),className:eX,children:[(0,r.jsx)("option",{value:"",children:a({id:"all_types",defaultMessage:"All types"})}),Object.values(n.IDeliveryProviderType).map(e=>(0,r.jsx)("option",{value:e,children:a({id:e,defaultMessage:e,description:"Delivery provider type"})},e))]})]})]}),x?(0,r.jsx)(eh.default,{}):!g||p.length||f.length?p.length||f.length?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-2",children:p.map((e,t)=>(0,r.jsxs)("div",{className:"rounded-lg border border-border-default bg-surface p-4 shadow-xs",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2 min-w-0",children:[(0,r.jsx)(ez.TruckIcon,{className:"h-5 w-5 shrink-0 text-text-muted"}),(0,r.jsx)("span",{className:"truncate text-sm font-semibold text-text-primary",children:eJ(e?.deliveryProvider)||a({id:"unknown_delivery_provider",defaultMessage:"Unknown delivery provider"})})]}),e?.deliveryProvider?.type&&(0,r.jsx)(eP.default,{text:a({id:e.deliveryProvider.type,defaultMessage:e.deliveryProvider.type,description:"Delivery provider type"}),color:"sky",square:!0})]}),(0,r.jsxs)("dl",{className:"mt-4 space-y-2 text-sm",children:[(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("dt",{className:"text-text-muted",children:a({id:"warehouse",defaultMessage:"Warehouse"})}),(0,r.jsxs)("dd",{className:"flex items-center gap-1 text-text-primary truncate",children:[(0,r.jsx)(eK.BuildingStorefrontIcon,{className:"h-4 w-4 shrink-0 text-text-muted"}),eJ(e?.warehousingProvider)||"n/a"]})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("dt",{className:"text-text-muted",children:a({id:"ships",defaultMessage:"Ships"})}),(0,r.jsx)("dd",{className:"text-text-primary",children:s(e?.shipping,{dateStyle:"medium",timeStyle:"short"})})]}),(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("dt",{className:"text-text-muted",children:a({id:"earliest_delivery",defaultMessage:"Earliest delivery"})}),(0,r.jsx)("dd",{className:"text-text-primary",children:s(e?.earliestDelivery,{dateStyle:"medium",timeStyle:"short"})})]}),e?.stockQuantity!==null&&(0,r.jsxs)("div",{className:"flex items-center justify-between gap-2",children:[(0,r.jsx)("dt",{className:"text-text-muted",children:a({id:"stock",defaultMessage:"Stock"})}),(0,r.jsx)("dd",{className:"font-semibold text-text-primary",children:a({id:"units_available",defaultMessage:"{quantity} units available"},{quantity:e.stockQuantity})})]})]})]},`${e?.deliveryProvider?._id}-${e?.warehousingProvider?._id}-${t}`))}),f.length>0&&(0,r.jsxs)("div",{children:[(0,r.jsx)("h3",{className:"text-sm font-semibold text-text-primary",children:a({id:"stock_without_dispatch_route",defaultMessage:"Stock without a dispatch route"})}),(0,r.jsx)("p",{className:"mt-1 text-sm text-text-muted",children:a({id:"stock_without_dispatch_route_hint",defaultMessage:"Inventory is reported for these provider combinations, but the engine could not calculate a dispatch for them."})}),(0,r.jsx)("ul",{className:"mt-3 space-y-2",children:f.map((e,t)=>(0,r.jsxs)("li",{className:"flex items-center justify-between gap-2 rounded-md border border-border-subtle bg-surface-subtle px-3 py-2 text-sm",children:[(0,r.jsxs)("span",{className:"truncate text-text-secondary",children:[eJ(e?.warehousingProvider)||"n/a",e?.deliveryProvider&&` — ${eJ(e.deliveryProvider)}`]}),(0,r.jsx)("span",{className:"font-semibold text-text-primary",children:a({id:"units_available",defaultMessage:"{quantity} units available"},{quantity:e?.quantity??0})})]},`${e?.deliveryProvider?._id}-${e?.warehousingProvider?._id}-${t}`))})]})]}):(0,r.jsxs)("div",{children:[(0,r.jsx)(J.default,{message:a({id:"dispatch_routes",defaultMessage:"dispatch routes"}),Icon:(0,r.jsx)(ez.TruckIcon,{className:"h-6 w-6"})}),(0,r.jsx)("p",{className:"mt-3 text-sm text-text-muted",children:a({id:"fulfillment_preview_empty_hint",defaultMessage:"The engine could not simulate any dispatch for this product. Customers will not see delivery options for it. Verify that at least one delivery provider and one warehousing provider are configured, active and free of configuration errors."})})]}):(0,r.jsxs)("div",{className:"text-sm text-danger",children:[a({id:"fulfillment_simulation_error",defaultMessage:"Fulfillment simulation failed"}),": ",g.message]})]})}],72264);var eY=n,e0=e.i(87593);let e1=P.gql`
534
+ query ProductReviewByProduct(
535
+ $productId: ID
536
+ $slug: String
537
+ $limit: Int
538
+ $offset: Int
539
+ $sort: [SortOptionInput!]
540
+ $forceLocale: Locale
541
+ ) {
542
+ product(productId: $productId, slug: $slug) {
543
+ _id
544
+ reviews(limit: $limit, offset: $offset, sort: $sort) {
545
+ ...ProductReviewDetailFragment
546
+ }
547
+ reviewsCount
548
+ }
549
+ }
550
+ ${e0.default}
551
+ `;var e5=e.i(66859),e2=e.i(39833),e3=e.i(84339);let e4=t.forwardRef(function({title:e,titleId:a,...s},l){return t.createElement("svg",Object.assign({xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true","data-slot":"icon",ref:l,"aria-labelledby":a},s),e?t.createElement("title",{id:a},e):null,t.createElement("path",{fillRule:"evenodd",d:"M10.788 3.21c.448-1.077 1.976-1.077 2.424 0l2.082 5.006 5.404.434c1.164.093 1.636 1.545.749 2.305l-4.117 3.527 1.257 5.273c.271 1.136-.964 2.033-1.96 1.425L12 18.354 7.373 21.18c-.996.608-2.231-.29-1.96-1.425l1.257-5.273-4.117-3.527c-.887-.76-.415-2.212.749-2.305l5.404-.434 2.082-5.005Z",clipRule:"evenodd"}))}),e6=({productReviews:e})=>{let{formatMessage:t}=(0,u.useIntl)(),a=e.reduce((e,t)=>e+t.upVote,0),s=e.reduce((e,t)=>e+t.downVote,0),l=a?a/(a+s)*100:0,i=l?100-l:0;return(0,r.jsxs)("div",{className:"lg:col-span-4",children:[(0,r.jsx)("h2",{className:"text-2xl",children:t({id:"customer_reviews",defaultMessage:"Customer Reviews"})}),(0,r.jsxs)("div",{className:"mt-3 flex items-center",children:[(0,r.jsx)("div",{children:(0,r.jsx)("div",{title:`${l}`,className:"flex items-center",children:[0,1,2,3,4].map(e=>{let t=l>=20*e;return(0,r.jsx)(e4,{className:`
552
+ ${t?"text-amber-400":"text-slate-300 dark:text-slate-600"}
553
+ h-5 w-5 shrink-0
554
+ `,"aria-hidden":"true"},e)})})}),(0,r.jsx)("div",{className:"ml-2 text-sm",children:(0,r.jsx)(u.FormattedMessage,{id:"review_summary",defaultMessage:"<div> Based on <cta> {total} </cta> reviews</div>",values:{div:e=>(0,r.jsx)("div",{children:e}),cta:e=>(0,r.jsx)("b",{className:"font-semibold",children:e}),total:e.length}})})]}),(0,r.jsxs)("div",{className:"mt-6",children:[(0,r.jsx)("h3",{className:"sr-only",children:t({id:"review_data",defaultMessage:"Review data"})}),(0,r.jsxs)("dl",{className:"space-y-3",children:[(0,r.jsxs)("div",{className:"flex items-center text-sm",children:[(0,r.jsxs)("dt",{className:"flex flex-1 items-center",children:[(0,r.jsx)("p",{className:"font-medium",children:a}),(0,r.jsxs)("div",{"aria-hidden":"true",className:"ml-2 flex flex-1 items-center",children:[(0,r.jsx)(e3.HandThumbUpIcon,{className:`
555
+ ${a>0?"text-emerald-500":"text-slate-500"}
556
+ h-5 w-5 shrink-0`,"aria-hidden":"true"}),(0,r.jsxs)("div",{className:"relative ml-3 flex-1",children:[(0,r.jsx)("div",{className:"h-3 rounded-full border border-border-default bg-surface-subtle"}),a>0?(0,r.jsx)("div",{className:"absolute inset-y-0 rounded-full border border-emerald-500 bg-emerald-500",style:{width:`calc(${l}%)`}}):null]})]})]}),(0,r.jsxs)("dd",{className:"ml-3 w-10 text-right text-sm tabular-nums",children:[Math.round(l),"%"]})]}),(0,r.jsxs)("div",{className:"flex items-center text-sm",children:[(0,r.jsxs)("dt",{className:"flex flex-1 items-center",children:[(0,r.jsxs)("p",{className:"font-medium",children:[s,(0,r.jsx)("span",{className:"sr-only",children:t({id:"star_reviews",defaultMessage:"Star reviews"})})]}),(0,r.jsxs)("div",{"aria-hidden":"true",className:"ml-2 flex flex-1 items-center",children:[(0,r.jsx)(e2.HandThumbDownIcon,{className:`
557
+ ${s>0?"text-rose-500":"text-slate-500"}
558
+ h-5 w-5 shrink-0
559
+ `,"aria-hidden":"true"}),(0,r.jsxs)("div",{className:"relative ml-3 flex-1",children:[(0,r.jsx)("div",{className:"h-3 rounded-full border border-border-default bg-surface-subtle"}),s>0?(0,r.jsx)("div",{className:"absolute inset-y-0 rounded-full border border-rose-500 bg-rose-500",style:{width:`calc(${i}%)`}}):null]})]})]}),(0,r.jsxs)("dd",{className:"ml-3 w-10 text-right text-sm tabular-nums",children:[Math.round(i),"%"]})]})]})]})]})};var e7=e.i(87213);let e9=({onSubmit:e,onSubmitSuccess:t=null,defaultValue:a={},isEdit:s=!1})=>{let{formatMessage:l}=(0,u.useIntl)(),{hasRole:i}=(0,c.default)(),d=l({id:"product_review_added",defaultMessage:"Review added successfully!"}),o=l({id:"product_review_updated",defaultMessage:"Review updated successfully!"}),m=(0,w.default)({submit:e,onSubmitSuccess:t,successMessage:s?o:d,initialValues:{title:"",review:"",rating:1,...a}});return(0,r.jsxs)("div",{className:"bg-surface rounded-md shadow-sm overflow-hidden p-6 mb-6",children:[(0,r.jsx)("h3",{className:"text-lg font-semibold text-text-primary mb-4",children:l({id:"write_review",defaultMessage:"Write a Review"})}),(0,r.jsxs)(h.default,{form:m,children:[(0,r.jsxs)("div",{className:"space-y-4",children:[(0,r.jsx)(j.default,{name:"title",disabled:!i(n.IRoleAction.ReviewProduct),id:"title",label:l({id:"title",defaultMessage:"Title"}),autoComplete:"off",required:!0}),(0,r.jsx)(e7.default,{rows:4,name:"review",disabled:!i(n.IRoleAction.ReviewProduct),id:"review",label:l({id:"review",defaultMessage:"Review"}),placeholder:l({id:"review_placeholder",defaultMessage:"Share your thoughts about this product..."})})]}),i(n.IRoleAction.ReviewProduct)&&(0,r.jsx)("div",{className:"mt-6 flex justify-end",children:(0,r.jsx)(y.default,{label:l(s?{id:"update_review",defaultMessage:"Update Review"}:{id:"add_review",defaultMessage:"Add Review"}),className:"px-6 py-2"})})]})]})},e8=P.gql`
560
+ mutation CreateProductReview(
561
+ $productId: ID!
562
+ $productReview: ProductReviewInput!
563
+ $forceLocale: Locale
564
+ ) {
565
+ createProductReview(productId: $productId, productReview: $productReview) {
566
+ _id
567
+ }
568
+ }
569
+ `;e.s(["default",0,({productId:e})=>{let{productReviews:t,loadMore:a,reviewsCount:s}=(({productId:e=null,slug:t=null,limit:a=10,offset:s=0,sort:l=[{key:"created",value:eY.ISortDirection.Desc}]}={})=>{let{selectedLocale:i}=(0,O.default)(),{data:d,loading:r,error:n,fetchMore:o}=(0,N.useQuery)(e1,{skip:!e,variables:{productId:e,slug:t,limit:a,offset:s,sort:l,forceLocale:i}}),u=d?.product,c=u?.reviews||[];return{productReviews:c,loading:r,error:n,reviewsCount:u?.reviewsCount||0,loadMore:()=>{o({variables:{offset:c?.length}})}}})({productId:e}),{createProductReview:l}=(()=>{let[e]=(0,$.useMutation)(e8);return{createProductReview:async({productId:t,productReview:{title:a,rating:s,review:l}})=>e({variables:{productId:t,productReview:{title:a,rating:s,review:l}},refetchQueries:["ProductReviewByProduct","ProductReviewByUser"]})}})(),{formatMessage:i}=(0,u.useIntl)();return(0,r.jsxs)("div",{className:"sm:max-w-full",children:[(0,r.jsx)("div",{className:"text-text-primary",children:(0,r.jsxs)("div",{className:"mx-auto p-2 lg:grid lg:max-w-7xl lg:grid-cols-12 lg:gap-x-8",children:[(0,r.jsx)(e6,{productReviews:t}),(0,r.jsxs)("div",{className:"mt-16 lg:col-span-7 lg:col-start-6 lg:mt-0",children:[e&&(0,r.jsx)(e9,{onSubmit:async({title:t,review:a,rating:s})=>await l({productId:e,productReview:{title:t,review:a,rating:10}})}),(0,r.jsx)("h3",{className:"sr-only",children:i({id:"recent_reviews",defaultMessage:"Recent reviews"})}),(0,r.jsx)("div",{className:"flow-root",children:(0,r.jsx)("div",{className:"-my-3",children:t.map(e=>(0,r.jsx)(e5.default,{review:e},e._id))})})]})]})}),s>t?.length?(0,r.jsx)(I.default,{text:i({id:"load-more-reviews",defaultMessage:"Load reviews"}),onClick:a}):null]})}],19051);var te=e.i(47542);let tt=P.gql`
570
+ mutation CreateProductBundleItem(
571
+ $productId: ID!
572
+ $item: CreateProductBundleItemInput!
573
+ ) {
574
+ createProductBundleItem(productId: $productId, item: $item) {
575
+ _id
576
+ }
577
+ }
578
+ `;var ta=e.i(24112);let ts=(0,e.i(5270).default)("sparkles",[["path",{d:"M11.017 2.814a1 1 0 0 1 1.966 0l1.051 5.558a2 2 0 0 0 1.594 1.594l5.558 1.051a1 1 0 0 1 0 1.966l-5.558 1.051a2 2 0 0 0-1.594 1.594l-1.051 5.558a1 1 0 0 1-1.966 0l-1.051-5.558a2 2 0 0 0-1.594-1.594l-5.558-1.051a1 1 0 0 1 0-1.966l5.558-1.051a2 2 0 0 0 1.594-1.594z",key:"1s2grr"}],["path",{d:"M20 2v4",key:"1rf3ol"}],["path",{d:"M22 4h-4",key:"gwowj6"}],["circle",{cx:"4",cy:"20",r:"2",key:"6kqj1y"}]]);var tl=e.i(38994);let ti=function({onSuccess:e}){let{selectedLocale:t}=(0,O.default)(),{createProduct:a}=(0,tl.default)(),{formatMessage:s}=(0,u.useIntl)();return async({title:l,type:i,quantity:d=1})=>{let r=[{title:l,slug:l.toLowerCase().replace(/\s+/g,"-"),locale:t}],{data:o}=await a({product:{type:i||n.IProductType.SimpleProduct},texts:r}),u=o?.createProduct;if(!u?._id)throw Error(s({id:"product_creation_failed",defaultMessage:"Product creation failed"}));return e?.(u,d),{success:!0}}},td=({bundleProduct:e,onSuccess:a})=>{let{formatMessage:s}=(0,u.useIntl)(),{hasRole:l}=(0,c.default)(),i=ti({onSuccess:a}),d=(0,t.useMemo)(()=>{let t=e?.texts?.title??"";return`${t} - New Bundle Item`},[e]),o=async({title:e,type:t,quantity:a})=>{try{return await i({title:e,type:t,quantity:a}),{success:!0}}catch(e){return{success:!1,error:{message:e?.message}}}},m=s({id:"bundle-item-scaffolded-success",defaultMessage:"New product scaffolded and added to bundle successfully"}),p=(0,w.default)({submit:o,successMessage:m,enableReinitialize:!0,initialValues:{title:d,type:n.IProductType.SimpleProduct,quantity:1}});return(0,r.jsxs)(h.default,{className:"mt-4 rounded-md border border-border-subtle",form:p,children:[(0,r.jsxs)("div",{className:"p-5 flex flex-col gap-3",children:[(0,r.jsx)("h3",{className:"text-md font-semibold text-slate-800 dark:text-slate-100",children:s({id:"scaffold_bundle_item_title",defaultMessage:"Scaffold New Bundle Item"})}),(0,r.jsx)(j.default,{name:"title",id:"title",label:s({id:"name",defaultMessage:"Name"}),required:!0,className:"block w-full rounded-md border-border-default text-sm"}),(0,r.jsx)(b.default,{className:"mt-1 w-full",label:s({id:"type",defaultMessage:"Type"}),placeholder:s({id:"type",defaultMessage:"Type"}),required:!0,name:"type",options:Object.fromEntries(Object.entries(n.IProductType).filter(([,e])=>e!==n.IProductType.ConfigurableProduct&&e!==n.IProductType.BundleProduct).map(([e,t])=>[t,e]))}),(0,r.jsx)(j.default,{name:"quantity",type:"number",required:!0,label:s({id:"quantity",defaultMessage:"Quantity"})})]}),l(n.IRoleAction.ManageProducts)&&(0,r.jsx)("div",{className:"border-t border-border-subtle bg-surface-subtle p-5 text-right",children:(0,r.jsx)(y.default,{label:s({id:"scaffold_and_add",defaultMessage:"Scaffold & Add"})})})]})},tr=({productId:e=null,slug:t=null}={})=>{let a=(0,W.parseUniqueId)(t),{customProperties:s,hydrateFragment:l}=(0,q.default)(),{data:i,loading:d,error:r}=(0,N.useQuery)(((e="")=>P.gql`
579
+ query Product($productId: ID, $slug: String) {
580
+ product(productId: $productId, slug: $slug) {
581
+ ...ProductDetailFragment
582
+ ${e}
583
+ texts {
584
+ _id
585
+ title
586
+ subtitle
587
+ description
588
+ }
589
+ ... on SimpleProduct {
590
+ texts {
591
+ _id
592
+ title
593
+ subtitle
594
+ description
595
+ }
596
+ proxies {
597
+ __typename
598
+ }
599
+ }
600
+ ... on ConfigurableProduct {
601
+ texts {
602
+ _id
603
+ title
604
+ subtitle
605
+ description
606
+ }
607
+ }
608
+ ... on PlanProduct {
609
+ texts {
610
+ _id
611
+ title
612
+ subtitle
613
+ description
614
+ }
615
+ proxies {
616
+ __typename
617
+ }
618
+ }
619
+ ... on BundleProduct {
620
+ texts {
621
+ _id
622
+ title
623
+ subtitle
624
+ description
625
+ }
626
+ proxies {
627
+ __typename
628
+ }
629
+ }
630
+ }
631
+ }
632
+ ${C.default}
633
+ `)(s?.Product),{skip:!e&&!a,variables:{productId:e||a}}),n=l(s?.Product,i?.product);return{product:i?.product,loading:d,error:r,extendedData:n}};e.s(["default",0,tr],84278);let tn=({productId:e,disabled:a=!1})=>{let{product:s}=tr({productId:e}),{setModal:l}=(0,ei.default)(),[i,d]=(0,t.useState)(""),{createProductBundleItem:o}=(()=>{let[e]=(0,$.useMutation)(tt);return{createProductBundleItem:async({productId:t,item:a})=>e({variables:{productId:t,item:a},refetchQueries:["ProductBundleItems"]})}})(),{hasRole:m}=(0,c.default)(),{formatMessage:p}=(0,u.useIntl)(),{products:f,loading:x}=(0,ta.default)({queryString:i,includeDrafts:!0,limit:50,sort:[{key:"created",value:n.ISortDirection.Desc}]}),g=async({productId:t,quantity:a})=>(await o({item:{productId:t,quantity:a},productId:e}),{success:!0}),v=p({id:"bundle_item_added",defaultMessage:"Bundle product added successfully"}),b=(0,w.default)({disabled:a,submit:g,successMessage:v,onSubmitSuccess:()=>(b.api.resetForm(),null),initialValues:{productId:"",quantity:1}}),M=(0,t.useCallback)(async()=>{await l((0,r.jsx)(td,{bundleProduct:s,onSuccess:async(t,a=1)=>{await o({item:{productId:t._id,quantity:a},productId:e}),l("")}}))},[s]);return(0,r.jsxs)(h.default,{form:b,children:[(0,r.jsxs)("div",{className:"flex items-end gap-2 w-full",children:[(0,r.jsx)("div",{className:"flex-1",children:(0,r.jsx)(te.default,{name:"productId",onFilter:d,queryString:i,label:p({id:"product",defaultMessage:"Product"}),data:((e=[])=>e.map(({_id:e,status:t,texts:a,media:s})=>({id:e,tag:t,...a,image:s?.length?s[0]?.file?.url:null})))(f),isLoading:x,className:"w-full text-sm font-medium text-slate-500",required:!0})}),m(n.IRoleAction.ManageProducts)&&(0,r.jsx)("div",{className:"pb-3",children:(0,r.jsx)(I.default,{className:"flex items-center justify-center p-2 rounded-md",onClick:M,children:(0,r.jsx)(ts,{className:"h-5 w-5"})})})]}),(0,r.jsx)(j.default,{name:"quantity",type:"number",required:!0,label:p({id:"quantity",defaultMessage:"Quantity"})}),m(n.IRoleAction.ManageProducts)&&(0,r.jsx)(y.default,{label:p({id:"submit",defaultMessage:"Submit"}),className:"mt-2"})]})};var to=e.i(54529);let tu=P.gql`
634
+ query ProductBundleItems(
635
+ $productId: ID
636
+ $slug: String
637
+ $forceLocale: Locale
638
+ ) {
639
+ product(productId: $productId, slug: $slug) {
640
+ _id
641
+ ... on BundleProduct {
642
+ bundleItems {
643
+ product {
644
+ ...ProductBriefFragment
645
+ }
646
+ quantity
647
+ }
648
+ }
649
+ }
650
+ }
651
+ ${to.default}
652
+ `,tc=P.gql`
653
+ mutation RemoveBundleItem($productId: ID!, $index: Int!) {
654
+ removeBundleItem(productId: $productId, index: $index) {
655
+ _id
656
+ }
657
+ }
658
+ `;var tm=e.i(41158),tp=e.i(87284),tf=e.i(76069);let tx=({item:e,onDelete:t,index:a})=>{let{product:s,quantity:l}=e;return(0,r.jsx)(tm.default,{href:`/products?slug=${(0,W.default)(s)}`,children:(0,r.jsxs)("div",{className:" group flex w-full items-center justify-between border-b border-border-subtle hover:border-slate-300 dark:hover:border-slate-600 hover:bg-slate-50/80 dark:hover:bg-slate-700/50 transition-all duration-200 ease-in-out hover:shadow-sm last:border-none",children:[(0,r.jsxs)("div",{className:"flex w-full items-center space-x-6 py-4",children:[s.media?.length?(0,r.jsx)("div",{className:"flex w-20 flex-col items-center",children:(0,r.jsx)("div",{className:"relative m-1 mr-2 mt-1 flex items-center justify-center rounded-full ",children:(0,r.jsx)(tp.default,{className:"mx-auto w-auto",src:s.media[0]?.file?.url,width:160,height:100,alt:s?.texts?.title||s?.texts?.subtitle})})}):(0,r.jsx)(tf.default,{className:"h-10 w-10"}),(0,r.jsxs)("div",{className:"shrink grow basis-1/2",children:[(0,r.jsx)("h3",{className:"text-lg text-text-secondary",children:s?.texts?.title}),(0,r.jsx)("p",{className:"text-xs text-slate-600 dark:text-slate-200",children:s?.texts?.subtitle})]}),(0,r.jsx)("div",{className:"ml-auto",children:(0,r.jsx)(eP.default,{text:l,color:"slate",square:!0})})]}),(0,r.jsx)(eE.default,{onDelete:()=>{t(a)},showDelete:!0})]})})},tg=({productId:e})=>{let{formatMessage:t}=(0,u.useIntl)(),{setModal:a}=(0,ei.default)(),{selectedLocale:s}=(0,O.default)(),{bundleItems:l,loading:i}=(({productId:e=null,slug:t=null}={})=>{let{selectedLocale:a}=(0,O.default)(),s=(0,W.parseUniqueId)(t),{data:l,loading:i,error:d}=(0,N.useQuery)(tu,{skip:!e&&!s,variables:{productId:e||s,forceLocale:a},context:{headers:{forceLocale:a}}});return{bundleItems:l?.product?.bundleItems||[],loading:i,error:d}})({productId:e,forceLocale:s}),{removeBundleItem:d}=(()=>{let[e]=(0,$.useMutation)(tc);return{removeBundleItem:async({productId:t,index:a})=>e({variables:{productId:t,index:a},refetchQueries:["ProductBundleItems"]})}})(),n=async s=>{await a((0,r.jsx)(es.default,{onCancelClick:async()=>a(""),message:t({id:"delete_bundle_item_confirmation",defaultMessage:"This action might cause inconsistencies with other data that relates to it. Are you sure you want to delete this bundle item? "}),onOkClick:async()=>{a(""),await d({productId:e,index:s}),F.toast.success(t({id:"bundle_item_deleted",defaultMessage:"Bundle item deleted successfully"}))},okText:t({id:"delete_bundle_item",defaultMessage:"Delete item"})}))};return i?(0,r.jsx)(eh.default,{}):l.length?(0,r.jsx)(r.Fragment,{children:l.map((e,t)=>(0,r.jsx)(tx,{index:t,item:e,onDelete:n},e.product._id))}):(0,r.jsx)(J.default,{message:t({id:"bundle",defaultMessage:"Bundle product"})})};e.s(["default",0,({productId:e,disabled:t=!1})=>(0,r.jsx)("div",{className:"mt-6 rounded-md",children:(0,r.jsxs)("div",{className:"lg:grid lg:grid-cols-9",children:[(0,r.jsx)("div",{className:"mb-5 lg:col-span-4 lg:pr-5",children:(0,r.jsx)(tn,{productId:e,disabled:t})}),(0,r.jsx)("div",{className:"col-span-5 ml-auto rounded-md bg-surface px-8 shadow-md dark:shadow-none lg:w-full",children:(0,r.jsx)("div",{className:"py-4",children:(0,r.jsx)(tg,{productId:e})})})]})})],11907)}]);