@mercurjs/admin 2.2.0-canary.19 → 2.2.0-canary.20

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 (163) hide show
  1. package/dist/{add-campaign-promotions-KK4JMLSK.js → add-campaign-promotions-BNLH6QN5.js} +3 -3
  2. package/dist/{attribute-create-TJRNP5SK.js → attribute-create-JW7OXOK2.js} +8 -8
  3. package/dist/{attribute-detail-7I2SQCDK.js → attribute-detail-3Z6MTMJT.js} +7 -7
  4. package/dist/{attribute-edit-UBG6SMUF.js → attribute-edit-4YPWXZRX.js} +2 -2
  5. package/dist/{attribute-edit-possible-value-3BYEPC4X.js → attribute-edit-possible-value-YHEWXK6L.js} +2 -2
  6. package/dist/{campaign-detail-H32E6EDD.js → campaign-detail-ROTJ4SWD.js} +10 -10
  7. package/dist/{category-create-S3K54WKP.js → category-create-AR33DJYX.js} +4 -1
  8. package/dist/{category-detail-5MRHPG6T.js → category-detail-ICACLNJ3.js} +14 -12
  9. package/dist/category-icon-edit-4GXAK4JZ.js +117 -0
  10. package/dist/{category-list-4YSI36HW.js → category-list-PFOINLTU.js} +4 -1
  11. package/dist/category-media-7SLAXXXM.js +654 -0
  12. package/dist/{category-products-3KYY662O.js → category-products-V4H3B6ML.js} +12 -12
  13. package/dist/{chunk-UT2O7IS7.js → chunk-2HMWS5UW.js} +2 -2
  14. package/dist/{chunk-HYQPZADS.js → chunk-2L4W75VS.js} +1 -1
  15. package/dist/{chunk-ZDJWTF64.js → chunk-2MYHGOPY.js} +2 -2
  16. package/dist/{chunk-O63MLTQV.js → chunk-2NA54XKC.js} +51 -0
  17. package/dist/{chunk-GFUCELIZ.js → chunk-3JN4WUVU.js} +1 -1
  18. package/dist/{chunk-RV7DWZZB.js → chunk-4UWPTSZK.js} +1 -1
  19. package/dist/{chunk-5GXPXVVD.js → chunk-4VXYPZMT.js} +2 -2
  20. package/dist/{chunk-Y7FNFQCU.js → chunk-6FLSBL4Q.js} +1 -0
  21. package/dist/{chunk-3F6U44M6.js → chunk-7JZVZ5EX.js} +1 -1
  22. package/dist/{chunk-EASE3NLF.js → chunk-7VPJ4C6F.js} +1 -1
  23. package/dist/{chunk-UCHVBAUB.js → chunk-7XBB24GO.js} +2 -2
  24. package/dist/{chunk-MFIT2RX5.js → chunk-A7RM5JXC.js} +1 -1
  25. package/dist/{chunk-ZG6DNI7O.js → chunk-AGXO2H4E.js} +1 -1
  26. package/dist/{chunk-4DYSSDAA.js → chunk-EAC3J2Z4.js} +2 -2
  27. package/dist/{chunk-B7HIZN4V.js → chunk-FNGPOGDR.js} +2 -2
  28. package/dist/{chunk-CFBEBAQS.js → chunk-FWWPSH6V.js} +1 -1
  29. package/dist/{chunk-X4N7EMFO.js → chunk-FZHLRCBV.js} +2 -2
  30. package/dist/{chunk-X7E65HM2.js → chunk-HI6L7DXI.js} +1 -1
  31. package/dist/{chunk-3N7QXAMO.js → chunk-IER5BQNC.js} +1 -1
  32. package/dist/{chunk-GNWWL47L.js → chunk-JZBVDH6A.js} +1 -1
  33. package/dist/{chunk-YLK2WZU3.js → chunk-KNZ6ICKB.js} +2 -2
  34. package/dist/{chunk-LKW2KWJ4.js → chunk-LLHYICP5.js} +14 -2
  35. package/dist/{chunk-LVCIAKJI.js → chunk-LYCKVPWQ.js} +1 -1
  36. package/dist/{chunk-ESZN3ELN.js → chunk-M3YII6OB.js} +71 -18
  37. package/dist/{chunk-6AYGDFNE.js → chunk-MASXQMJY.js} +1 -1
  38. package/dist/{chunk-OA24YN34.js → chunk-N6R2WOJ7.js} +1 -1
  39. package/dist/{chunk-T53YX34K.js → chunk-NEZ35LWM.js} +3 -3
  40. package/dist/{chunk-AXVZ56UD.js → chunk-ORENI3LP.js} +2 -2
  41. package/dist/{chunk-UVYWKQJF.js → chunk-POSHDM4L.js} +1 -1
  42. package/dist/{chunk-GA4ZFAOV.js → chunk-PWFZCT6H.js} +1 -1
  43. package/dist/chunk-PZ27H46M.js +358 -0
  44. package/dist/{chunk-WHIYSLYW.js → chunk-QPLEFEOZ.js} +1 -1
  45. package/dist/{chunk-TH6W26RC.js → chunk-RWW3TAJQ.js} +4 -4
  46. package/dist/{chunk-YI7I7JFX.js → chunk-S6E7XAWX.js} +2 -2
  47. package/dist/{chunk-XKD67CD4.js → chunk-SJKLYS3R.js} +2 -2
  48. package/dist/{chunk-O62SUNK2.js → chunk-V3ATA433.js} +3 -3
  49. package/dist/{chunk-JWE2IW4R.js → chunk-WTPWO7KS.js} +7 -7
  50. package/dist/chunk-Y3RABQC4.js +33 -0
  51. package/dist/{chunk-OXONMLRP.js → chunk-ZLETFDWJ.js} +200 -105
  52. package/dist/{collection-add-products-4EZ6W4N6.js → collection-add-products-PBCIG33C.js} +11 -11
  53. package/dist/{collection-detail-X22ZIM5S.js → collection-detail-3OLBOV24.js} +12 -12
  54. package/dist/{collection-list-6CUEOLUU.js → collection-list-S4ICG5T6.js} +10 -10
  55. package/dist/{customer-detail-6MBW3FHO.js → customer-detail-MT2R7DFI.js} +10 -10
  56. package/dist/index.js +161 -153
  57. package/dist/{inventory-detail-ZWHSLLLI.js → inventory-detail-POKYZVLA.js} +7 -7
  58. package/dist/{location-detail-QS7HM2KG.js → location-detail-PHT367V5.js} +10 -10
  59. package/dist/{location-fulfillment-providers-6RUGYQ3W.js → location-fulfillment-providers-EZOVLJWL.js} +9 -9
  60. package/dist/{offers-WYAJB75N.js → offers-5LSNWJ6B.js} +8 -8
  61. package/dist/{order-detail-FZT74HMD.js → order-detail-Y6SFV44C.js} +12 -12
  62. package/dist/{order-edit-billing-address-OJZICMBN.js → order-edit-billing-address-IW6UIARN.js} +8 -8
  63. package/dist/{order-list-C5YOR6B5.js → order-list-KWHMMX2M.js} +2 -2
  64. package/dist/pages/index.d.ts +92 -0
  65. package/dist/pages/index.js +118 -115
  66. package/dist/{price-list-create-XQWV352E.js → price-list-create-LPJWSOBP.js} +13 -13
  67. package/dist/{price-list-detail-347UU3LU.js → price-list-detail-7AUDNRSM.js} +12 -12
  68. package/dist/{price-list-prices-add-R656I6QF.js → price-list-prices-add-5IOYBCXV.js} +12 -12
  69. package/dist/{product-add-existing-attributes-MNGWZFGD.js → product-add-existing-attributes-LNZK2LHX.js} +8 -8
  70. package/dist/{product-create-LMYR36NA.js → product-create-QYEZHBTC.js} +11 -11
  71. package/dist/{product-create-variant-XETT2WJC.js → product-create-variant-FQSREC66.js} +3 -3
  72. package/dist/{product-detail-WSL4PXKK.js → product-detail-Q6YF7IYX.js} +8 -8
  73. package/dist/{product-edit-attribute-XEYHQJ6D.js → product-edit-attribute-WW4LCYD7.js} +2 -2
  74. package/dist/{product-list-7YPGRGHX.js → product-list-IDRT4WUK.js} +12 -12
  75. package/dist/{product-media-H6SYBNLI.js → product-media-6H34CVXJ.js} +2 -2
  76. package/dist/{product-tag-detail-AUNKJJLP.js → product-tag-detail-WF34TUQR.js} +19 -19
  77. package/dist/{product-tag-list-IKL46JZT.js → product-tag-list-PK43EMMH.js} +19 -19
  78. package/dist/{product-type-detail-DKHKFADI.js → product-type-detail-J466AJUQ.js} +12 -12
  79. package/dist/{product-variant-edit-THZLEOGL.js → product-variant-edit-CYEISGII.js} +8 -8
  80. package/dist/{promotion-create-RB3AA5GE.js → promotion-create-KNK57JWD.js} +8 -8
  81. package/dist/{promotion-detail-PEDTLXZ4.js → promotion-detail-EUQ5LK2V.js} +9 -9
  82. package/dist/{promotion-list-MCYWN5TF.js → promotion-list-M5SAE7A3.js} +4 -4
  83. package/dist/{refund-reason-list-GPDRI2QM.js → refund-reason-list-FBH43XVP.js} +17 -17
  84. package/dist/region-list-2XXKCDDX.js +1 -1
  85. package/dist/{reservation-detail-WTYOR6IB.js → reservation-detail-T3VHDWP6.js} +7 -7
  86. package/dist/{reservation-list-3OKWSHWH.js → reservation-list-RGD6O4RY.js} +2 -2
  87. package/dist/{reset-password-2NVKH6QA.js → reset-password-RF5J4RIU.js} +1 -1
  88. package/dist/{return-reason-list-E6L7VJY7.js → return-reason-list-4JWWSFOS.js} +14 -14
  89. package/dist/{sales-channel-add-products-BKT3CFLY.js → sales-channel-add-products-FNJQKCQQ.js} +11 -11
  90. package/dist/{sales-channel-detail-MUBMJGQV.js → sales-channel-detail-HXJAR6M4.js} +12 -12
  91. package/dist/{store-bulk-edit-WML2DUA4.js → store-bulk-edit-JAOT5GY2.js} +1 -1
  92. package/dist/{store-details-3HWOCRYI.js → store-details-LSGSI4QU.js} +15 -15
  93. package/dist/{store-edit-5WWOOSHT.js → store-edit-TP5CQHV7.js} +3 -3
  94. package/dist/{store-list-YEEKX2AV.js → store-list-KQGPNQQ4.js} +10 -10
  95. package/dist/{store-member-invite-TULPI3N5.js → store-member-invite-MNRTPHUB.js} +1 -1
  96. package/dist/{tax-region-create-X2LAHX27.js → tax-region-create-JR7OHOJ5.js} +7 -7
  97. package/dist/{tax-region-detail-3X3TNFJA.js → tax-region-detail-2E56T5C2.js} +11 -11
  98. package/dist/{tax-region-province-detail-DIV5AAFQ.js → tax-region-province-detail-5Q5E5OP7.js} +10 -10
  99. package/dist/{tax-region-tax-override-create-BV4O3QCU.js → tax-region-tax-override-create-S5S5JZEJ.js} +19 -19
  100. package/dist/{tax-region-tax-override-edit-QUA77YTI.js → tax-region-tax-override-edit-JBG3MRNC.js} +20 -20
  101. package/package.json +1 -1
  102. package/dist/{adjust-inventory-F3OTF6O6.js → adjust-inventory-2LHBQAWK.js} +7 -7
  103. package/dist/{api-key-management-detail-JMWPGN6M.js → api-key-management-detail-R5QQPNOD.js} +6 -6
  104. package/dist/{attribute-list-EFU4DPB5.js → attribute-list-WRTXTFED.js} +6 -6
  105. package/dist/{categories-metadata-V37DXTVZ.js → categories-metadata-EPKUI3R4.js} +6 -6
  106. package/dist/{chunk-FYCIGKVG.js → chunk-3FN3YH2F.js} +3 -3
  107. package/dist/{chunk-D77BYNTQ.js → chunk-47TXYMFT.js} +3 -3
  108. package/dist/{chunk-3EUF5GRT.js → chunk-CKQPO2SN.js} +3 -3
  109. package/dist/{chunk-3KCXKGHX.js → chunk-KNB55WE4.js} +3 -3
  110. package/dist/{chunk-4IKESXD3.js → chunk-LTAQZW2L.js} +3 -3
  111. package/dist/{chunk-W6J4SJ3Y.js → chunk-SEY52XON.js} +6 -6
  112. package/dist/{chunk-BJQ4UBK7.js → chunk-WETV577Q.js} +18 -18
  113. package/dist/{chunk-EM5TF7YZ.js → chunk-Z3SUMFDT.js} +6 -6
  114. package/dist/{collection-metadata-AWJYPZKR.js → collection-metadata-VUOECEP4.js} +6 -6
  115. package/dist/{customer-group-detail-G53RB6EA.js → customer-group-detail-MCAEXZYM.js} +6 -6
  116. package/dist/{customer-group-list-XDNCZ4K6.js → customer-group-list-V4PW33M5.js} +6 -6
  117. package/dist/{customer-group-metadata-FWLKUHIZ.js → customer-group-metadata-J622TR4I.js} +6 -6
  118. package/dist/{customer-metadata-KU4YWD3R.js → customer-metadata-SFS5VRK5.js} +6 -6
  119. package/dist/{customers-add-customer-group-5Y5XPN7C.js → customers-add-customer-group-G6FIKKUP.js} +6 -6
  120. package/dist/{edit-inventory-item-MBLHBGBH.js → edit-inventory-item-OFPVTJ4I.js} +6 -6
  121. package/dist/{edit-inventory-item-attributes-GTTGNBO4.js → edit-inventory-item-attributes-Z37AFIYM.js} +6 -6
  122. package/dist/{edit-reservation-C3NXAKSE.js → edit-reservation-TBZL2REV.js} +3 -3
  123. package/dist/{edit-rules-UFGKSAJV.js → edit-rules-JG62MLUS.js} +6 -6
  124. package/dist/{inventory-create-4O4L6NXK.js → inventory-create-3IM54ZO3.js} +6 -6
  125. package/dist/{inventory-metadata-GZYYWU3S.js → inventory-metadata-XXYKRUNP.js} +6 -6
  126. package/dist/{inventory-stock-S5B6ZZQW.js → inventory-stock-CXPPGARO.js} +7 -7
  127. package/dist/{location-list-7RTDLHGR.js → location-list-HVSRDHOW.js} +6 -6
  128. package/dist/{location-service-zone-shipping-option-create-UKULBDGM.js → location-service-zone-shipping-option-create-VZBL7MK6.js} +6 -6
  129. package/dist/{location-service-zone-shipping-option-edit-O3B3H5OC.js → location-service-zone-shipping-option-edit-WRSLBO23.js} +3 -3
  130. package/dist/{login-SFGV4QGP.js → login-LJMTSRAG.js} +6 -6
  131. package/dist/{marketplace-detail-7VPTFUPB.js → marketplace-detail-WINAJJDB.js} +6 -6
  132. package/dist/{marketplace-metadata-E25VT5TH.js → marketplace-metadata-CCUK2B4Q.js} +6 -6
  133. package/dist/{order-create-claim-3AQK3FH2.js → order-create-claim-2MO3LM6J.js} +5 -5
  134. package/dist/{order-create-exchange-QCYD3DC4.js → order-create-exchange-6IQJFYUK.js} +12 -12
  135. package/dist/{order-create-refund-TR4XMHRY.js → order-create-refund-DUVGD54U.js} +7 -7
  136. package/dist/{order-edit-email-TH26N5HK.js → order-edit-email-D5XIYASI.js} +7 -7
  137. package/dist/{order-edit-shipping-address-GBOUGZPD.js → order-edit-shipping-address-4VJDVGKJ.js} +7 -7
  138. package/dist/{order-metadata-RT3BVTYZ.js → order-metadata-QSTGFW66.js} +7 -7
  139. package/dist/{order-request-transfer-3HTFPYFD.js → order-request-transfer-GYBTSHU4.js} +7 -7
  140. package/dist/{price-list-prices-edit-BOKBTLEI.js → price-list-prices-edit-DT2DLFTO.js} +6 -6
  141. package/dist/{product-metadata-MGLJJ7QG.js → product-metadata-VJMZL753.js} +6 -6
  142. package/dist/{product-tag-create-JCYAG42N.js → product-tag-create-4FYE46PE.js} +6 -6
  143. package/dist/{product-tag-edit-2FREKKVN.js → product-tag-edit-HRWMMCUC.js} +6 -6
  144. package/dist/{product-tag-metadata-UV3TBPXS.js → product-tag-metadata-ONSEQTEW.js} +6 -6
  145. package/dist/{product-type-metadata-22OACFMD.js → product-type-metadata-CXYKP2OF.js} +6 -6
  146. package/dist/{product-variant-detail-MNMJBYIP.js → product-variant-detail-FXQZLB7Q.js} +6 -6
  147. package/dist/{product-variant-metadata-7N7PL7WY.js → product-variant-metadata-YQ2GKWW7.js} +6 -6
  148. package/dist/{refund-reason-create-YWA5XP4J.js → refund-reason-create-ANAVZO2N.js} +6 -6
  149. package/dist/{refund-reason-edit-MBG5WL43.js → refund-reason-edit-HKEVJ6A5.js} +6 -6
  150. package/dist/{region-metadata-WDZ7DRGU.js → region-metadata-XHT3A6D7.js} +6 -6
  151. package/dist/{reservation-create-NPR2FMPA.js → reservation-create-F6YDCLCG.js} +3 -3
  152. package/dist/{reservation-metadata-PJVHEJRU.js → reservation-metadata-4LVLM4UW.js} +6 -6
  153. package/dist/{sales-channel-list-O5SFOGMA.js → sales-channel-list-YYIH254X.js} +6 -6
  154. package/dist/{sales-channel-metadata-67RGBA7X.js → sales-channel-metadata-YF5AV2XX.js} +6 -6
  155. package/dist/{shipping-option-type-create-OBF6GG5W.js → shipping-option-type-create-TOONS7EC.js} +6 -6
  156. package/dist/{shipping-option-type-detail-TJC2GBUA.js → shipping-option-type-detail-VXZ4UQQI.js} +6 -6
  157. package/dist/{shipping-option-type-edit-INKLJRSH.js → shipping-option-type-edit-6WO2XRLE.js} +6 -6
  158. package/dist/{shipping-option-type-list-WKA64NYE.js → shipping-option-type-list-S7TW7Q3R.js} +6 -6
  159. package/dist/{shipping-profile-metadata-RI6Y2N6V.js → shipping-profile-metadata-SVD3WK7H.js} +6 -6
  160. package/dist/{store-create-AGF2LZWR.js → store-create-7A5OSRIV.js} +6 -6
  161. package/dist/{tax-region-edit-7ECYGXEA.js → tax-region-edit-7SBQFGPY.js} +6 -6
  162. package/dist/{tax-region-metadata-FQLEYY2R.js → tax-region-metadata-4NUEQV3N.js} +6 -6
  163. package/dist/{user-metadata-64LX64QI.js → user-metadata-2D552EAR.js} +6 -6
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  useProductTableColumns
3
- } from "./chunk-CFBEBAQS.js";
4
- import "./chunk-OA24YN34.js";
3
+ } from "./chunk-FWWPSH6V.js";
4
+ import "./chunk-N6R2WOJ7.js";
5
5
  import {
6
6
  useProductTableFilters
7
- } from "./chunk-GFUCELIZ.js";
7
+ } from "./chunk-3JN4WUVU.js";
8
+ import "./chunk-FWPGOIFA.js";
8
9
  import {
9
10
  useProductTableQuery
10
11
  } from "./chunk-LYZDVZWA.js";
11
- import "./chunk-FWPGOIFA.js";
12
12
  import "./chunk-DB6ANJBO.js";
13
13
  import "./chunk-PHOCVOZ5.js";
14
14
  import "./chunk-FQERBIVS.js";
@@ -32,7 +32,7 @@ import "./chunk-WIYFXWRI.js";
32
32
  import "./chunk-UZWFZMOX.js";
33
33
  import "./chunk-XQNVC4Q7.js";
34
34
  import "./chunk-THHRRYRS.js";
35
- import "./chunk-Y7FNFQCU.js";
35
+ import "./chunk-6FLSBL4Q.js";
36
36
  import "./chunk-PJR6W35H.js";
37
37
  import "./chunk-OH4AABUT.js";
38
38
  import "./chunk-AEMDNTW5.js";
@@ -41,26 +41,26 @@ import "./chunk-FJHAAROU.js";
41
41
  import "./chunk-533GMKEG.js";
42
42
  import "./chunk-YFRC6GEN.js";
43
43
  import "./chunk-N6SI4IIT.js";
44
- import "./chunk-JPNPTILP.js";
45
- import "./chunk-DAXXLQKB.js";
46
44
  import "./chunk-46M463BR.js";
47
45
  import "./chunk-ZIFHQXP3.js";
46
+ import "./chunk-JPNPTILP.js";
47
+ import "./chunk-DAXXLQKB.js";
48
48
  import "./chunk-GKGLVDDV.js";
49
49
  import "./chunk-ESPLVOFC.js";
50
50
  import "./chunk-WJJXUXSO.js";
51
51
  import "./chunk-LAPEZATU.js";
52
- import "./chunk-Z2UBJXTU.js";
53
52
  import "./chunk-QKJGSZI2.js";
53
+ import "./chunk-Z2UBJXTU.js";
54
54
  import "./chunk-FXWKGNRV.js";
55
55
  import "./chunk-VDKOJ5WD.js";
56
56
  import "./chunk-ZN7LWXVC.js";
57
+ import "./chunk-5TRY5IMZ.js";
58
+ import "./chunk-EPHVGD5Z.js";
57
59
  import "./chunk-XGUUM3S6.js";
60
+ import "./chunk-RMAQKNBA.js";
58
61
  import "./chunk-VYMODH6P.js";
59
62
  import "./chunk-LEG67A2R.js";
60
63
  import "./chunk-PRBE5CM3.js";
61
- import "./chunk-5TRY5IMZ.js";
62
- import "./chunk-EPHVGD5Z.js";
63
- import "./chunk-RMAQKNBA.js";
64
64
  import "./chunk-OKWGPKVK.js";
65
65
  import {
66
66
  useProductCategory,
@@ -215,7 +215,7 @@ var EditCategoryProductsForm = ({
215
215
  var columnHelper = createColumnHelper();
216
216
  var useColumns = () => {
217
217
  const { t } = useTranslation();
218
- const base = useProductTableColumns();
218
+ const base = useProductTableColumns().filter((c) => c.id !== "select");
219
219
  return useMemo(
220
220
  () => [
221
221
  columnHelper.display({
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useProductTableColumns
3
- } from "./chunk-CFBEBAQS.js";
3
+ } from "./chunk-FWWPSH6V.js";
4
4
  import {
5
5
  useProductTableFilters
6
- } from "./chunk-GFUCELIZ.js";
6
+ } from "./chunk-3JN4WUVU.js";
7
7
  import {
8
8
  useProductTableQuery
9
9
  } from "./chunk-LYZDVZWA.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-THHRRYRS.js";
4
4
  import {
5
5
  require_dist
6
- } from "./chunk-Y7FNFQCU.js";
6
+ } from "./chunk-6FLSBL4Q.js";
7
7
  import {
8
8
  __toESM
9
9
  } from "./chunk-NBMM2TZK.js";
@@ -9,10 +9,10 @@ import {
9
9
  } from "./chunk-U5MJIHLY.js";
10
10
  import {
11
11
  useProductTableColumns
12
- } from "./chunk-CFBEBAQS.js";
12
+ } from "./chunk-FWWPSH6V.js";
13
13
  import {
14
14
  useProductTableFilters
15
- } from "./chunk-GFUCELIZ.js";
15
+ } from "./chunk-3JN4WUVU.js";
16
16
  import {
17
17
  useProductTableQuery
18
18
  } from "./chunk-LYZDVZWA.js";
@@ -9737,6 +9737,57 @@ var en_default = {
9737
9737
  header: "Organize",
9738
9738
  action: "Edit ranking"
9739
9739
  },
9740
+ media: {
9741
+ label: "Media",
9742
+ thumbnail: "Thumbnail",
9743
+ banner: "Banner",
9744
+ galleryLabel: "Gallery",
9745
+ editHint: "Add media to the category to showcase it on the storefront.",
9746
+ deleteWarning: "You are about to delete this image. This action cannot be undone.",
9747
+ empty: {
9748
+ header: "No media yet",
9749
+ description: "Add media to showcase it on the storefront."
9750
+ },
9751
+ upload: {
9752
+ title: "Upload images",
9753
+ hint: "Drag and drop images here or click to upload."
9754
+ },
9755
+ tooltips: {
9756
+ thumbnail: "Shown as the category thumbnail on the homepage.",
9757
+ banner: "Shown as the category banner in the category listing."
9758
+ },
9759
+ actions: {
9760
+ setThumbnail: "Make thumbnail",
9761
+ removeThumbnail: "Remove thumbnail",
9762
+ setBanner: "Make banner",
9763
+ removeBanner: "Remove banner"
9764
+ },
9765
+ edit: {
9766
+ header: "Edit Media",
9767
+ description: "Upload images and choose the thumbnail and banner shown on the storefront.",
9768
+ successToast: "Category media was successfully updated."
9769
+ }
9770
+ },
9771
+ icon: {
9772
+ label: "Icon",
9773
+ empty: {
9774
+ header: "No icon yet",
9775
+ description: "Add icon to showcase it near the category label on the storefront."
9776
+ },
9777
+ tip: {
9778
+ label: "Tip:",
9779
+ text: "This icon will appear near the category label on the storefront."
9780
+ },
9781
+ upload: {
9782
+ title: "Upload file",
9783
+ hint: "Drag and drop file here or click to upload."
9784
+ },
9785
+ edit: {
9786
+ header: "Edit Icon",
9787
+ description: "Upload a single icon shown near the category label on the storefront.",
9788
+ successToast: "Category icon was successfully updated."
9789
+ }
9790
+ },
9740
9791
  fields: {
9741
9792
  visibility: {
9742
9793
  label: "Visibility",
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_dist
3
- } from "./chunk-Y7FNFQCU.js";
3
+ } from "./chunk-6FLSBL4Q.js";
4
4
  import {
5
5
  useProductTags
6
6
  } from "./chunk-PJR6W35H.js";
@@ -27,7 +27,7 @@ import {
27
27
  } from "./chunk-THHRRYRS.js";
28
28
  import {
29
29
  require_dist
30
- } from "./chunk-Y7FNFQCU.js";
30
+ } from "./chunk-6FLSBL4Q.js";
31
31
  import {
32
32
  useProductTag
33
33
  } from "./chunk-PJR6W35H.js";
@@ -13,10 +13,10 @@ import {
13
13
  } from "./chunk-U5MJIHLY.js";
14
14
  import {
15
15
  useProductTableColumns
16
- } from "./chunk-CFBEBAQS.js";
16
+ } from "./chunk-FWWPSH6V.js";
17
17
  import {
18
18
  useProductTableFilters
19
- } from "./chunk-GFUCELIZ.js";
19
+ } from "./chunk-3JN4WUVU.js";
20
20
  import {
21
21
  useProductTableQuery
22
22
  } from "./chunk-LYZDVZWA.js";
@@ -9559,6 +9559,7 @@ var require_modules = __commonJS({
9559
9559
  MercurModules2["COMMISSION"] = "commission";
9560
9560
  MercurModules2["PAYOUT"] = "payout";
9561
9561
  MercurModules2["OFFER"] = "offer";
9562
+ MercurModules2["MEDIA"] = "media";
9562
9563
  MercurModules2["PRODUCT_ATTRIBUTE"] = "product_attribute";
9563
9564
  MercurModules2["PRODUCT_EDIT"] = "product_edit";
9564
9565
  MercurModules2["CUSTOM_FIELDS"] = "custom_fields";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-KOURHC2N.js";
7
7
  import {
8
8
  useCollectionTableQuery
9
- } from "./chunk-HYQPZADS.js";
9
+ } from "./chunk-2L4W75VS.js";
10
10
  import {
11
11
  _DataTable,
12
12
  useDataTable
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getPromotionStatus
3
- } from "./chunk-X7E65HM2.js";
3
+ } from "./chunk-HI6L7DXI.js";
4
4
  import {
5
5
  TextCell,
6
6
  TextHeader
@@ -10,7 +10,7 @@ import {
10
10
  decorateVariantsWithDefaultValues,
11
11
  generateVariantsFromAttributes,
12
12
  normalizeProductFormValues
13
- } from "./chunk-ZG6DNI7O.js";
13
+ } from "./chunk-AGXO2H4E.js";
14
14
  import {
15
15
  HandleInput
16
16
  } from "./chunk-HJ56YXBU.js";
@@ -58,7 +58,7 @@ import {
58
58
  } from "./chunk-C4XKPQ6T.js";
59
59
  import {
60
60
  require_dist
61
- } from "./chunk-Y7FNFQCU.js";
61
+ } from "./chunk-6FLSBL4Q.js";
62
62
  import {
63
63
  useProductAttributes
64
64
  } from "./chunk-533GMKEG.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-RK5N3XIX.js";
4
4
  import {
5
5
  getPromotionStatus
6
- } from "./chunk-X7E65HM2.js";
6
+ } from "./chunk-HI6L7DXI.js";
7
7
  import {
8
8
  formatPercentage
9
9
  } from "./chunk-QDPLZDMX.js";
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-AJLGY3LQ.js";
4
4
  import {
5
5
  i18n
6
- } from "./chunk-O63MLTQV.js";
6
+ } from "./chunk-2NA54XKC.js";
7
7
 
8
8
  // src/pages/products/product-create/constants.ts
9
9
  import { z } from "zod";
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-FYKG35MR.js";
4
4
  import {
5
5
  useProductTableColumns
6
- } from "./chunk-CFBEBAQS.js";
6
+ } from "./chunk-FWWPSH6V.js";
7
7
  import {
8
8
  useProductTableFilters
9
- } from "./chunk-GFUCELIZ.js";
9
+ } from "./chunk-3JN4WUVU.js";
10
10
  import {
11
11
  useProductTableQuery
12
12
  } from "./chunk-LYZDVZWA.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  AttributeValueInput
3
- } from "./chunk-WHIYSLYW.js";
3
+ } from "./chunk-QPLEFEOZ.js";
4
4
  import {
5
5
  TabbedForm,
6
6
  defineTabMeta,
@@ -18,7 +18,7 @@ import {
18
18
  } from "./chunk-GVEF6UDT.js";
19
19
  import {
20
20
  require_dist
21
- } from "./chunk-Y7FNFQCU.js";
21
+ } from "./chunk-6FLSBL4Q.js";
22
22
  import {
23
23
  useCreateProductVariant,
24
24
  useProduct
@@ -3,7 +3,7 @@ import {
3
3
  CategoryHeader,
4
4
  ProductStatusCell,
5
5
  ProductStatusHeader
6
- } from "./chunk-OA24YN34.js";
6
+ } from "./chunk-N6R2WOJ7.js";
7
7
  import {
8
8
  ProductCell,
9
9
  ProductHeader
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useProductTableColumns
3
- } from "./chunk-CFBEBAQS.js";
3
+ } from "./chunk-FWWPSH6V.js";
4
4
  import {
5
5
  useProductTableFilters
6
- } from "./chunk-GFUCELIZ.js";
6
+ } from "./chunk-3JN4WUVU.js";
7
7
  import {
8
8
  useProductTableQuery
9
9
  } from "./chunk-LYZDVZWA.js";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  i18n
3
- } from "./chunk-O63MLTQV.js";
3
+ } from "./chunk-2NA54XKC.js";
4
4
 
5
5
  // src/lib/promotions.ts
6
6
  var getPromotionStatusMap = () => ({
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-EASE3NLF.js";
4
+ } from "./chunk-7VPJ4C6F.js";
5
5
  import {
6
6
  usePromotionTableFilters
7
7
  } from "./chunk-S2WEYEQR.js";
@@ -9,7 +9,7 @@ import {
9
9
  } from "./chunk-KOURHC2N.js";
10
10
  import {
11
11
  useProductTagTableQuery
12
- } from "./chunk-HYQPZADS.js";
12
+ } from "./chunk-2L4W75VS.js";
13
13
  import {
14
14
  _DataTable,
15
15
  useDataTable
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  useProductTableColumns
3
- } from "./chunk-CFBEBAQS.js";
3
+ } from "./chunk-FWWPSH6V.js";
4
4
  import {
5
5
  useProductTableFilters
6
- } from "./chunk-GFUCELIZ.js";
6
+ } from "./chunk-3JN4WUVU.js";
7
7
  import {
8
8
  useProductTableQuery
9
9
  } from "./chunk-LYZDVZWA.js";
@@ -10,6 +10,9 @@ import {
10
10
  getIsActiveProps,
11
11
  getIsInternalProps
12
12
  } from "./chunk-Y456KVIN.js";
13
+ import {
14
+ getCategoryGallery
15
+ } from "./chunk-PZ27H46M.js";
13
16
  import {
14
17
  StatusCell
15
18
  } from "./chunk-DB6ANJBO.js";
@@ -17,6 +20,9 @@ import {
17
20
  _DataTable,
18
21
  useDataTable
19
22
  } from "./chunk-NQEXDLYH.js";
23
+ import {
24
+ Thumbnail
25
+ } from "./chunk-WIYFXWRI.js";
20
26
  import {
21
27
  SingleColumnPage
22
28
  } from "./chunk-H6MYB7GB.js";
@@ -107,6 +113,10 @@ var useCategoryTableColumns = () => {
107
113
  chip.id
108
114
  )) });
109
115
  }
116
+ const gallery = getCategoryGallery(
117
+ row.original.images
118
+ );
119
+ const thumbnailSrc = gallery.find((image) => image.is_thumbnail)?.url ?? gallery[0]?.url ?? null;
110
120
  return /* @__PURE__ */ jsxs2("div", { className: "flex size-full items-center gap-x-3 overflow-hidden", children: [
111
121
  /* @__PURE__ */ jsx2("div", { className: "flex size-7 items-center justify-center", children: row.getCanExpand() ? /* @__PURE__ */ jsx2(
112
122
  IconButton,
@@ -130,6 +140,7 @@ var useCategoryTableColumns = () => {
130
140
  )
131
141
  }
132
142
  ) : null }),
143
+ /* @__PURE__ */ jsx2(Thumbnail, { src: thumbnailSrc }),
133
144
  /* @__PURE__ */ jsx2("span", { className: "truncate", children: getValue() })
134
145
  ] });
135
146
  }
@@ -182,14 +193,15 @@ import { jsx as jsx3 } from "react/jsx-runtime";
182
193
  var PAGE_SIZE = 20;
183
194
  var CategoryListDataTable = () => {
184
195
  const { raw, searchParams } = useCategoryTableQuery({ pageSize: PAGE_SIZE });
196
+ const imageFields = "images.id,images.url,images.type,images.is_thumbnail,images.is_banner";
185
197
  const query = raw.q ? {
186
198
  include_ancestors_tree: true,
187
- fields: "id,name,handle,is_active,is_internal,parent_category",
199
+ fields: `id,name,handle,is_active,is_internal,parent_category,${imageFields}`,
188
200
  ...searchParams
189
201
  } : {
190
202
  include_descendants_tree: true,
191
203
  parent_category_id: "null",
192
- fields: "id,name,category_children,handle,is_internal,is_active",
204
+ fields: `id,name,category_children,handle,is_internal,is_active,${imageFields}`,
193
205
  ...searchParams
194
206
  };
195
207
  const { product_categories, count, isLoading, isError, error } = useProductCategories(
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  require_dist
3
- } from "./chunk-Y7FNFQCU.js";
3
+ } from "./chunk-6FLSBL4Q.js";
4
4
  import {
5
5
  __toESM
6
6
  } from "./chunk-NBMM2TZK.js";
@@ -1,9 +1,18 @@
1
1
  import {
2
2
  CategoryTree
3
3
  } from "./chunk-XLA2CNCW.js";
4
+ import {
5
+ CreateCategorySchema
6
+ } from "./chunk-Y3RABQC4.js";
4
7
  import {
5
8
  insertCategoryTreeItem
6
9
  } from "./chunk-Y456KVIN.js";
10
+ import {
11
+ CategoryIconInput,
12
+ CategoryIconTip,
13
+ CategoryMediaInput,
14
+ uploadCategoryImages
15
+ } from "./chunk-PZ27H46M.js";
7
16
  import {
8
17
  transformNullableFormData
9
18
  } from "./chunk-7RPRNVBS.js";
@@ -30,20 +39,6 @@ import {
30
39
  useDocumentDirection
31
40
  } from "./chunk-Y7QKP6QU.js";
32
41
 
33
- // src/pages/categories/category-create/components/create-category-form/schema.ts
34
- import { z } from "zod";
35
- var CreateCategoryDetailsSchema = z.object({
36
- name: z.string().min(1),
37
- description: z.string().optional(),
38
- handle: z.string().optional(),
39
- status: z.enum(["active", "inactive"]),
40
- visibility: z.enum(["public", "internal"])
41
- });
42
- var CreateCategorySchema = z.object({
43
- rank: z.number().nullable(),
44
- parent_category_id: z.string().nullable()
45
- }).merge(CreateCategoryDetailsSchema);
46
-
47
42
  // src/pages/categories/category-create/category-create.tsx
48
43
  import { Children as Children2 } from "react";
49
44
  import { useSearchParams } from "react-router-dom";
@@ -171,7 +166,52 @@ var Root = () => {
171
166
  }
172
167
  }
173
168
  )
174
- ] })
169
+ ] }),
170
+ /* @__PURE__ */ jsx(
171
+ Form.Field,
172
+ {
173
+ control: form.control,
174
+ name: "media",
175
+ render: ({ field: { value, onChange } }) => {
176
+ return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "category-create-form-media-item", children: [
177
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, "data-testid": "category-create-form-media-label", children: t("categories.media.label") }),
178
+ /* @__PURE__ */ jsx(Form.Control, { "data-testid": "category-create-form-media-control", children: /* @__PURE__ */ jsx(
179
+ CategoryMediaInput,
180
+ {
181
+ value: value ?? [],
182
+ onChange,
183
+ hasError: !!form.formState.errors.media
184
+ }
185
+ ) }),
186
+ /* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "category-create-form-media-error" })
187
+ ] });
188
+ }
189
+ }
190
+ ),
191
+ /* @__PURE__ */ jsx(
192
+ Form.Field,
193
+ {
194
+ control: form.control,
195
+ name: "icon",
196
+ render: ({ field: { value, onChange } }) => {
197
+ return /* @__PURE__ */ jsxs(Form.Item, { "data-testid": "category-create-form-icon-item", children: [
198
+ /* @__PURE__ */ jsx(Form.Label, { optional: true, "data-testid": "category-create-form-icon-label", children: t("categories.icon.label") }),
199
+ /* @__PURE__ */ jsx(Form.Control, { "data-testid": "category-create-form-icon-control", children: /* @__PURE__ */ jsxs("div", { className: "flex flex-col gap-y-2", children: [
200
+ /* @__PURE__ */ jsx(
201
+ CategoryIconInput,
202
+ {
203
+ value: value ?? null,
204
+ onChange,
205
+ hasError: !!form.formState.errors.icon
206
+ }
207
+ ),
208
+ /* @__PURE__ */ jsx(CategoryIconTip, {})
209
+ ] }) }),
210
+ /* @__PURE__ */ jsx(Form.ErrorMessage, { "data-testid": "category-create-form-icon-error" })
211
+ ] });
212
+ }
213
+ }
214
+ )
175
215
  ] }) });
176
216
  };
177
217
  Root._tabMeta = defineTabMeta({
@@ -290,8 +330,21 @@ var CreateCategoryForm = ({
290
330
  });
291
331
  const { mutateAsync, isPending } = useCreateProductCategory();
292
332
  const handleSubmit = form.handleSubmit(async (data) => {
293
- const { visibility, status, parent_category_id, rank, name, ...rest } = data;
333
+ const {
334
+ visibility,
335
+ status,
336
+ parent_category_id,
337
+ rank,
338
+ name,
339
+ media,
340
+ icon,
341
+ ...rest
342
+ } = data;
294
343
  const parsedData = transformNullableFormData(rest, false);
344
+ const images = await uploadCategoryImages({
345
+ media: media ?? [],
346
+ icon: icon ?? null
347
+ });
295
348
  await mutateAsync(
296
349
  {
297
350
  name,
@@ -299,7 +352,8 @@ var CreateCategoryForm = ({
299
352
  parent_category_id: parent_category_id ?? void 0,
300
353
  rank: rank ?? void 0,
301
354
  is_active: status === "active",
302
- is_internal: visibility === "internal"
355
+ is_internal: visibility === "internal",
356
+ ...images
303
357
  },
304
358
  {
305
359
  onSuccess: ({ product_category }) => {
@@ -351,7 +405,6 @@ var CategoryCreatePage = Object.assign(Root3, {
351
405
  var CategoryCreate = Root3;
352
406
 
353
407
  export {
354
- CreateCategorySchema,
355
408
  CategoryCreatePage,
356
409
  CategoryCreate
357
410
  };
@@ -3,7 +3,7 @@ import {
3
3
  } from "./chunk-5A4JNOK3.js";
4
4
  import {
5
5
  useRefundReasonTableQuery
6
- } from "./chunk-HYQPZADS.js";
6
+ } from "./chunk-2L4W75VS.js";
7
7
  import {
8
8
  SingleColumnPage
9
9
  } from "./chunk-H6MYB7GB.js";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-PHOCVOZ5.js";
7
7
  import {
8
8
  require_dist
9
- } from "./chunk-Y7FNFQCU.js";
9
+ } from "./chunk-6FLSBL4Q.js";
10
10
  import {
11
11
  __toESM
12
12
  } from "./chunk-NBMM2TZK.js";
@@ -1,13 +1,13 @@
1
1
  import {
2
2
  useReturnReasonTableColumns
3
3
  } from "./chunk-5A4JNOK3.js";
4
- import {
5
- useReturnReasonTableQuery
6
- } from "./chunk-HYQPZADS.js";
7
4
  import {
8
5
  useDeleteReturnReason,
9
6
  useReturnReasons
10
7
  } from "./chunk-2FGRDEAD.js";
8
+ import {
9
+ useReturnReasonTableQuery
10
+ } from "./chunk-2L4W75VS.js";
11
11
  import {
12
12
  _DataTable,
13
13
  useDataTable
@@ -3,10 +3,10 @@ import {
3
3
  } from "./chunk-33BERJSG.js";
4
4
  import {
5
5
  useProductTableColumns
6
- } from "./chunk-CFBEBAQS.js";
6
+ } from "./chunk-FWWPSH6V.js";
7
7
  import {
8
8
  useProductTableFilters
9
- } from "./chunk-GFUCELIZ.js";
9
+ } from "./chunk-3JN4WUVU.js";
10
10
  import {
11
11
  useProductTableQuery
12
12
  } from "./chunk-LYZDVZWA.js";
@@ -2,7 +2,7 @@ import {
2
2
  TaxOverrideTable,
3
3
  TaxRateLine,
4
4
  useTaxOverrideTable
5
- } from "./chunk-FYCIGKVG.js";
5
+ } from "./chunk-3FN3YH2F.js";
6
6
  import {
7
7
  TaxRegionCard
8
8
  } from "./chunk-Q2ULPJJ6.js";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-EASE3NLF.js";
4
+ } from "./chunk-7VPJ4C6F.js";
5
5
  import {
6
6
  usePromotionTableFilters
7
7
  } from "./chunk-S2WEYEQR.js";