@mercurjs/admin 2.2.1 → 2.3.0-canary.0

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 (399) hide show
  1. package/dist/{add-campaign-promotions-44GUWMAP.js → add-campaign-promotions-S4HKMFU7.js} +34 -19
  2. package/dist/{adjust-inventory-4ZOZCMSO.js → adjust-inventory-CFQ6LD2U.js} +37 -37
  3. package/dist/{api-key-management-create-KJAP6KDX.js → api-key-management-create-TFG4TLGM.js} +4 -4
  4. package/dist/{api-key-management-detail-RV5Q45EV.js → api-key-management-detail-TTGN4LO7.js} +34 -34
  5. package/dist/{api-key-management-edit-N75HXUJF.js → api-key-management-edit-XUZJEML7.js} +4 -4
  6. package/dist/{api-key-management-list-A2FUOLVQ.js → api-key-management-list-AHXOCLBO.js} +7 -7
  7. package/dist/{api-key-management-sales-channels-A5F3D42D.js → api-key-management-sales-channels-FFY3HIOX.js} +4 -4
  8. package/dist/{attribute-create-WDI2GMPM.js → attribute-create-7WTQLEV6.js} +35 -35
  9. package/dist/{attribute-create-possible-value-3D5M2GYE.js → attribute-create-possible-value-OKGWRSNJ.js} +2 -2
  10. package/dist/{attribute-detail-TDXW4CBR.js → attribute-detail-QRYCIEUR.js} +35 -35
  11. package/dist/{attribute-edit-LBMZVL3O.js → attribute-edit-HS4PH6TS.js} +4 -4
  12. package/dist/{attribute-edit-possible-value-RWG3U7IG.js → attribute-edit-possible-value-LN5R6SZT.js} +4 -4
  13. package/dist/{attribute-edit-ranking-COH6THIE.js → attribute-edit-ranking-SF7XSICV.js} +2 -2
  14. package/dist/attribute-list-6ELFWDHO.js +61 -0
  15. package/dist/{breadcrumb-2NHCSFUI.js → breadcrumb-KOE4ZWGU.js} +2 -2
  16. package/dist/{breadcrumb-3YK35VAB.js → breadcrumb-TCQDZXGC.js} +2 -2
  17. package/dist/{campaign-budget-edit-7NXMWE2S.js → campaign-budget-edit-EBFDQ6OX.js} +5 -9
  18. package/dist/{campaign-configuration-67I6NQNR.js → campaign-configuration-H6SKZFDS.js} +6 -10
  19. package/dist/{campaign-create-NCJ4NA2B.js → campaign-create-FEEKJCUE.js} +7 -7
  20. package/dist/{campaign-detail-EIQKFRLT.js → campaign-detail-WPTZDDD5.js} +40 -40
  21. package/dist/{campaign-edit-Z6A5J2G4.js → campaign-edit-2WJ7V2EY.js} +13 -68
  22. package/dist/{campaign-list-IMD4DAVX.js → campaign-list-7L2DGBHW.js} +9 -7
  23. package/dist/{categories-metadata-UN7P2PDA.js → categories-metadata-MJAYSCTW.js} +32 -32
  24. package/dist/{category-create-3F6PHBRW.js → category-create-7RFRKVKF.js} +6 -6
  25. package/dist/{category-detail-O523XOJR.js → category-detail-ZYOHF3ME.js} +43 -43
  26. package/dist/{category-edit-YIGHQ442.js → category-edit-3KXRPXXJ.js} +3 -3
  27. package/dist/{category-icon-edit-6ZVXC4ID.js → category-icon-edit-KUCL7KEJ.js} +4 -4
  28. package/dist/{category-list-355HTVFG.js → category-list-3IL2MERS.js} +9 -9
  29. package/dist/{category-media-IEIIXESO.js → category-media-IOA2VNMI.js} +4 -4
  30. package/dist/{category-organize-7QJ4MAA4.js → category-organize-KQ7UWVAJ.js} +3 -3
  31. package/dist/{category-products-G3JDJ6RR.js → category-products-GHRZVC5W.js} +40 -40
  32. package/dist/{chunk-QZXA66HY.js → chunk-22ILFYVW.js} +13 -13
  33. package/dist/{chunk-ZLRTPJ7R.js → chunk-23KZGNNG.js} +78 -21
  34. package/dist/{chunk-5P2YBCU4.js → chunk-2H27V7B2.js} +1 -1
  35. package/dist/{chunk-BAODXM3R.js → chunk-2HTCCPOG.js} +1 -1
  36. package/dist/{chunk-RUHF6QPS.js → chunk-2HV33DOE.js} +1 -1
  37. package/dist/{chunk-D6RWXLO6.js → chunk-2NOIR4BR.js} +1 -1
  38. package/dist/{chunk-IXC4VZBU.js → chunk-2SCR7R3C.js} +2 -2
  39. package/dist/{chunk-GBSL5JTZ.js → chunk-2XPJEEGO.js} +2 -2
  40. package/dist/{chunk-VPAMPIAF.js → chunk-3DFVU5HR.js} +3 -3
  41. package/dist/{chunk-2Z4JZU5E.js → chunk-3JN6NCCN.js} +2 -2
  42. package/dist/{chunk-5346HYMP.js → chunk-3R7N3HV3.js} +1 -1
  43. package/dist/{chunk-HPH2J4MY.js → chunk-3ZPJTOHI.js} +4 -4
  44. package/dist/{chunk-2ST7PJ7M.js → chunk-4IWBVSJ2.js} +8 -8
  45. package/dist/{chunk-HGOS4TNK.js → chunk-4XBAEB4B.js} +102 -74
  46. package/dist/{chunk-NH62M7H7.js → chunk-54SYWPLY.js} +1 -1
  47. package/dist/{chunk-HRPM4HIB.js → chunk-56XMCNDS.js} +3 -3
  48. package/dist/{chunk-6DBDQBFX.js → chunk-5QAOYZPB.js} +8 -8
  49. package/dist/{chunk-RTPQHQEK.js → chunk-6ASLWQB3.js} +1 -1
  50. package/dist/{chunk-R5UX3EPB.js → chunk-6DQFH5DW.js} +15 -13
  51. package/dist/{chunk-TF643ZL6.js → chunk-6Q2JZ5YN.js} +24 -4
  52. package/dist/{chunk-WCDCL5X6.js → chunk-6QOXR3AN.js} +5 -5
  53. package/dist/{chunk-KV2LVBNH.js → chunk-6ZVRNI5K.js} +198 -208
  54. package/dist/{chunk-2ISHQHC2.js → chunk-73N66XQD.js} +3 -3
  55. package/dist/{chunk-GYMFTVB4.js → chunk-7QZFRDTU.js} +2 -2
  56. package/dist/{chunk-P6EWVML2.js → chunk-7ZQWFHMP.js} +11 -11
  57. package/dist/{chunk-LVPTTWYC.js → chunk-7ZY7R6PG.js} +18 -7
  58. package/dist/{chunk-K6FC5Y72.js → chunk-AEBQQ2EG.js} +1 -1
  59. package/dist/chunk-AK7NUCTI.js +859 -0
  60. package/dist/{chunk-7QDFT4JE.js → chunk-AL26XZGB.js} +6 -6
  61. package/dist/{chunk-FRUJ3RNF.js → chunk-ALJIXUKL.js} +2 -2
  62. package/dist/{chunk-HI2E3YTU.js → chunk-AQHEU7OA.js} +1 -1
  63. package/dist/{chunk-WX5UZZZD.js → chunk-ARD6JGZB.js} +3 -3
  64. package/dist/{chunk-Y2WR3O3B.js → chunk-ASFCRSBA.js} +2 -2
  65. package/dist/{chunk-YTQAKAXN.js → chunk-BA2XHM7M.js} +2 -2
  66. package/dist/{chunk-YTBPZ5MO.js → chunk-BGI4CCBX.js} +14 -9
  67. package/dist/{chunk-EMZXHZJQ.js → chunk-BOPIWKTU.js} +1 -1
  68. package/dist/{chunk-NEURB6JB.js → chunk-BSXBRI23.js} +8 -5
  69. package/dist/{chunk-VMF2HNXG.js → chunk-C3B45LUQ.js} +6 -6
  70. package/dist/{chunk-LFNC565R.js → chunk-CFQX7HAW.js} +1 -1
  71. package/dist/{chunk-6ZVLQ4IK.js → chunk-CKEJLFYJ.js} +5 -5
  72. package/dist/{chunk-I5LAGPN7.js → chunk-CMBHUF6P.js} +122 -59
  73. package/dist/{chunk-7RPRNVBS.js → chunk-CMKC2YBP.js} +1 -10
  74. package/dist/{chunk-D5FHUQQK.js → chunk-CMVQ5SAG.js} +1 -1
  75. package/dist/{chunk-3EPBOJTL.js → chunk-CR7TRBEB.js} +5 -5
  76. package/dist/{chunk-PVNB7ETQ.js → chunk-D3RDR3D3.js} +1 -1
  77. package/dist/{chunk-R55WKWFH.js → chunk-DBCNRZZE.js} +1 -1
  78. package/dist/{chunk-NBKPNE3I.js → chunk-DPGE6G2I.js} +4 -4
  79. package/dist/{chunk-J7YEXYZJ.js → chunk-DSQRFZCO.js} +1 -1
  80. package/dist/{chunk-JTAECZCT.js → chunk-DTGEFKK4.js} +1 -0
  81. package/dist/{chunk-Y4QL7QLU.js → chunk-DYCCRR7B.js} +1 -1
  82. package/dist/{chunk-RLOKMTTN.js → chunk-E5PC2WDZ.js} +1 -1
  83. package/dist/{chunk-UNNSF2VP.js → chunk-E75QIW4N.js} +3 -3
  84. package/dist/{chunk-KHTVPTS4.js → chunk-EAZ6YM6D.js} +2 -2
  85. package/dist/{chunk-YII7HVOM.js → chunk-EF23N7II.js} +3 -3
  86. package/dist/{chunk-YDDD3MK5.js → chunk-ELLSTZ5X.js} +59 -24
  87. package/dist/{chunk-ML74OTDD.js → chunk-EPUODBUW.js} +11 -66
  88. package/dist/{chunk-P7IMB5H5.js → chunk-ESNSDIEC.js} +1 -1
  89. package/dist/{chunk-J37PJ6OX.js → chunk-EVCAR6GP.js} +5 -5
  90. package/dist/{chunk-R45DOGQ6.js → chunk-EVNTT2M3.js} +1 -1
  91. package/dist/{chunk-JJKPETJT.js → chunk-FHZHKIWI.js} +1 -1
  92. package/dist/{chunk-GYM6QZY3.js → chunk-GGKH2FM5.js} +5 -5
  93. package/dist/{chunk-UBME2ENV.js → chunk-GNNOFJAK.js} +1 -1
  94. package/dist/{chunk-IF2MFOIQ.js → chunk-H5E3CGD7.js} +1 -1
  95. package/dist/{chunk-LI3XW6HB.js → chunk-H6OULVCZ.js} +8 -8
  96. package/dist/{chunk-PSOGTJID.js → chunk-H7HNJFQA.js} +79 -128
  97. package/dist/{chunk-KGZZFXXX.js → chunk-HBLA43D4.js} +314 -168
  98. package/dist/{chunk-OEOLRONP.js → chunk-HBNQ3R3P.js} +3 -3
  99. package/dist/{chunk-JZZLMXG4.js → chunk-HFCJJJKP.js} +4 -4
  100. package/dist/{chunk-IKKZCYFE.js → chunk-HFMAEJN2.js} +70 -19
  101. package/dist/chunk-HJACC6KV.js +212 -0
  102. package/dist/{chunk-6HHMZ2QV.js → chunk-HRMANL53.js} +1 -1
  103. package/dist/{chunk-RES4NBTO.js → chunk-HV32AEGS.js} +142 -168
  104. package/dist/chunk-HX7X3XN2.js +359 -0
  105. package/dist/{chunk-2W4YIJYV.js → chunk-I4WBDDWN.js} +2 -2
  106. package/dist/{chunk-MRM5VNUM.js → chunk-IEFMUOVU.js} +1 -1
  107. package/dist/{chunk-PEPANIBF.js → chunk-IZ77JV46.js} +1 -1
  108. package/dist/{chunk-JU5ALCEN.js → chunk-J4SYK3RT.js} +2 -2
  109. package/dist/{chunk-MXLSIF5V.js → chunk-JC2FFAMW.js} +2 -2
  110. package/dist/{chunk-R7Q23SWH.js → chunk-JCGEIG3Y.js} +4 -4
  111. package/dist/{chunk-34AHGPLC.js → chunk-JL3NKSLJ.js} +4 -4
  112. package/dist/{chunk-3PWLO7XZ.js → chunk-JQEAWWRP.js} +3 -3
  113. package/dist/{chunk-UGKLN2X6.js → chunk-JW4YZDH6.js} +2 -2
  114. package/dist/{chunk-J4MVHPVY.js → chunk-JW5SGRFC.js} +1 -1
  115. package/dist/{chunk-SWHRBO6C.js → chunk-KA2JYXWT.js} +2 -2
  116. package/dist/{chunk-PD34CJ6T.js → chunk-KG2PDEFS.js} +1 -1
  117. package/dist/chunk-KGUX2KUR.js +540 -0
  118. package/dist/{chunk-NVU672HY.js → chunk-KTE5QGW6.js} +3 -3
  119. package/dist/chunk-KVAD5JGS.js +11 -0
  120. package/dist/{chunk-JTP32GYS.js → chunk-LAIT7Y53.js} +2 -2
  121. package/dist/{chunk-BTK54ERQ.js → chunk-LBZLMHYB.js} +3 -3
  122. package/dist/{chunk-R7HPBN4C.js → chunk-LHE6LM6S.js} +2 -2
  123. package/dist/{chunk-5HMJDME5.js → chunk-LIMG2EY2.js} +3 -3
  124. package/dist/{chunk-DY3XQPHC.js → chunk-LISOKQBZ.js} +25 -3
  125. package/dist/{chunk-XJ67JBUL.js → chunk-LLLD7JUI.js} +7 -7
  126. package/dist/{chunk-F265A5GC.js → chunk-LXTXP7ZM.js} +2 -2
  127. package/dist/{chunk-R5O4QT2H.js → chunk-LXW3L56Z.js} +2 -2
  128. package/dist/{chunk-AYK22LJU.js → chunk-M3AHXNLZ.js} +3 -3
  129. package/dist/{chunk-45Z2P3GA.js → chunk-MAXC747X.js} +4 -4
  130. package/dist/{chunk-5INL7Z64.js → chunk-MEQLWAZC.js} +7 -2
  131. package/dist/{chunk-YNPIZEWG.js → chunk-MEQWNYCJ.js} +2 -2
  132. package/dist/{chunk-XQBF2FRT.js → chunk-MXM5ZD4Y.js} +2 -2
  133. package/dist/{chunk-J7AF7G7E.js → chunk-MY3WQXPS.js} +3 -3
  134. package/dist/{chunk-GINON6FD.js → chunk-N2YADNWS.js} +1 -1
  135. package/dist/{chunk-PJ3OSJVB.js → chunk-N3ZYLAGA.js} +2 -2
  136. package/dist/{chunk-XBHT34SZ.js → chunk-NGLBA5UK.js} +2 -2
  137. package/dist/{chunk-UILKCIRW.js → chunk-NKZLCOFU.js} +1 -1
  138. package/dist/chunk-NN2AWPC7.js +75 -0
  139. package/dist/{chunk-EJNYP4ZP.js → chunk-NN6PSWE4.js} +218 -42
  140. package/dist/{chunk-YAPKMKRA.js → chunk-NWLWKR4U.js} +4 -4
  141. package/dist/{chunk-PJG7Q5MF.js → chunk-ODBYHQML.js} +6 -6
  142. package/dist/{chunk-XPTKT2SY.js → chunk-OFW63WXL.js} +1 -1
  143. package/dist/{chunk-43C2OEFK.js → chunk-OQ2J45XW.js} +1 -1
  144. package/dist/chunk-OS6DZEKB.js +82 -0
  145. package/dist/{chunk-KXGFQRXK.js → chunk-P2BNZD5K.js} +7 -7
  146. package/dist/{chunk-YG65LX2W.js → chunk-PAYX77VD.js} +2 -2
  147. package/dist/{chunk-IC7CKUCI.js → chunk-PB24YMA4.js} +3 -3
  148. package/dist/{chunk-RUWKTYQN.js → chunk-PKPYTXFX.js} +6 -6
  149. package/dist/{chunk-EKLQ3PFC.js → chunk-PY4RE444.js} +1 -1
  150. package/dist/{chunk-TLV3AINO.js → chunk-Q732RWRD.js} +2 -2
  151. package/dist/chunk-QLOJNFUE.js +53 -0
  152. package/dist/{chunk-42VZYFJ5.js → chunk-QWT3GCLC.js} +3 -3
  153. package/dist/{chunk-ENWEPNEB.js → chunk-R22UAHRF.js} +1 -1
  154. package/dist/{chunk-HINXQTCW.js → chunk-RKFEXC2J.js} +37 -0
  155. package/dist/{chunk-PMBR7NK4.js → chunk-RSDTHO3I.js} +1 -1
  156. package/dist/{chunk-WJJBIAJI.js → chunk-S4WDCOQD.js} +101 -21
  157. package/dist/{chunk-U4BIWWRA.js → chunk-S7TEUVP7.js} +2 -2
  158. package/dist/{chunk-FWPGOIFA.js → chunk-SANVDYAL.js} +1 -1
  159. package/dist/{chunk-EAYVJOSP.js → chunk-SCLV2T6Z.js} +2 -2
  160. package/dist/{chunk-YT7ZBFWO.js → chunk-SM22ETAM.js} +5 -5
  161. package/dist/{chunk-C3SCJHQN.js → chunk-SQ7J4KTS.js} +2 -2
  162. package/dist/{chunk-AW77UWCZ.js → chunk-SR3DYN52.js} +4 -3
  163. package/dist/{chunk-ZIELZO2F.js → chunk-TW7BMUFE.js} +2 -2
  164. package/dist/{chunk-WIYFXWRI.js → chunk-U3I6S3RO.js} +1 -1
  165. package/dist/{chunk-55NZ2MMZ.js → chunk-UNS2F7DK.js} +1 -1
  166. package/dist/{chunk-VKHGNAFW.js → chunk-US3WGTFG.js} +2 -2
  167. package/dist/{chunk-4DHTLLPG.js → chunk-VACZ4ZLQ.js} +4 -4
  168. package/dist/{chunk-4UQMRTSC.js → chunk-VH3TGSWE.js} +46 -2
  169. package/dist/{chunk-L2FUUVMT.js → chunk-VKVK5D2F.js} +4 -4
  170. package/dist/{chunk-53KPM2IF.js → chunk-VOTOLN64.js} +1 -1
  171. package/dist/{chunk-GOIUTVZR.js → chunk-VTXMQTXK.js} +1 -1
  172. package/dist/{chunk-3BZMCD7I.js → chunk-VWPX7GLC.js} +1 -1
  173. package/dist/{chunk-RDDZLUKZ.js → chunk-VX37IW2B.js} +4 -4
  174. package/dist/{chunk-LL2UR6WT.js → chunk-WEIAADFK.js} +6 -6
  175. package/dist/chunk-WP3B4NEU.js +32 -0
  176. package/dist/{chunk-LHIWM2J5.js → chunk-WPX74IOA.js} +1 -1
  177. package/dist/{chunk-56LEZVAH.js → chunk-WW7ULZUY.js} +1 -1
  178. package/dist/{chunk-SUMFHYD5.js → chunk-WYRUCSGW.js} +2 -2
  179. package/dist/{chunk-ZZHAKDOJ.js → chunk-X2OJSE2R.js} +4 -4
  180. package/dist/{chunk-QMEFPNCA.js → chunk-XLD5JXJZ.js} +2 -2
  181. package/dist/{chunk-XYCUMBBJ.js → chunk-XS6QEL45.js} +2 -2
  182. package/dist/{chunk-HOOIU4KF.js → chunk-XWOFQSGH.js} +1 -1
  183. package/dist/{chunk-VYKDZ6J4.js → chunk-Y4CKZNKV.js} +11 -11
  184. package/dist/{chunk-YDX675U4.js → chunk-Y7PMRILC.js} +8 -8
  185. package/dist/{chunk-BOHYPLFV.js → chunk-YMMREB3P.js} +1 -1
  186. package/dist/{chunk-5A4JNOK3.js → chunk-YPHF4ZG6.js} +1 -1
  187. package/dist/{chunk-TSM7EZND.js → chunk-YWMY2I7B.js} +1 -1
  188. package/dist/{chunk-PAXNPCS2.js → chunk-YWZQKODL.js} +6 -6
  189. package/dist/{chunk-QE57IFSR.js → chunk-Z476HUMI.js} +1 -14
  190. package/dist/{chunk-6K3WDPGJ.js → chunk-ZBRRK3Y6.js} +3 -3
  191. package/dist/chunk-ZH6TIKKW.js +61 -0
  192. package/dist/{collection-add-products-PISO2X3T.js → collection-add-products-DDKLPJE6.js} +40 -40
  193. package/dist/{collection-create-3ZCR6VGP.js → collection-create-W75VOWNN.js} +4 -4
  194. package/dist/{collection-detail-FQYKALDQ.js → collection-detail-T5QEBZTV.js} +42 -42
  195. package/dist/{collection-edit-LIIDFJ6T.js → collection-edit-3ZZCDIUY.js} +3 -3
  196. package/dist/{collection-icon-edit-GMWBV5EA.js → collection-icon-edit-L6VSK4DB.js} +4 -4
  197. package/dist/collection-list-BTR6IBDZ.js +85 -0
  198. package/dist/{collection-media-FHD3IAES.js → collection-media-PKTR7VDY.js} +4 -4
  199. package/dist/{collection-metadata-PEBMVFM3.js → collection-metadata-XM2EBCWF.js} +32 -32
  200. package/dist/{commission-rule-commission-edit-VAHTLFOO.js → commission-rule-commission-edit-KLGYDUOC.js} +6 -6
  201. package/dist/{commission-rule-create-3BNKCPVT.js → commission-rule-create-CDLLQIY4.js} +6 -6
  202. package/dist/{commission-rule-detail-FSV6PA6Y.js → commission-rule-detail-LFEZ5U6V.js} +8 -8
  203. package/dist/{commission-rule-edit-PQFGFD7L.js → commission-rule-edit-5CFKPI7U.js} +3 -3
  204. package/dist/{commissions-list-6ZFSZENW.js → commissions-list-X54FEOEZ.js} +10 -10
  205. package/dist/{customer-create-LGJHCECL.js → customer-create-46H2N34Z.js} +2 -2
  206. package/dist/{customer-create-address-MUDSAQXG.js → customer-create-address-OGWYC7BZ.js} +2 -2
  207. package/dist/{customer-detail-O3QCTJQE.js → customer-detail-GWF2DLBE.js} +37 -37
  208. package/dist/{customer-edit-APMIOGMM.js → customer-edit-RBPGTG32.js} +2 -2
  209. package/dist/{customer-edit-address-C2XFCA7J.js → customer-edit-address-PGWY42QU.js} +2 -2
  210. package/dist/{customer-group-add-customers-PIJRCYE7.js → customer-group-add-customers-6HJMWGW2.js} +5 -5
  211. package/dist/{customer-group-create-GEIEIY7G.js → customer-group-create-WER6DODC.js} +2 -2
  212. package/dist/{customer-group-detail-VFE2OHMV.js → customer-group-detail-FX3PNES4.js} +36 -36
  213. package/dist/{customer-group-edit-WY4I5BJ2.js → customer-group-edit-A74OFHEH.js} +2 -2
  214. package/dist/customer-group-list-KBZBSGTQ.js +57 -0
  215. package/dist/{customer-group-metadata-2GHR645Q.js → customer-group-metadata-FUJFFWCO.js} +32 -32
  216. package/dist/{customer-list-RUUTCIBN.js → customer-list-IJJEZDOZ.js} +6 -6
  217. package/dist/{customer-metadata-H2BVMMPM.js → customer-metadata-GWZC456X.js} +32 -32
  218. package/dist/{customers-add-customer-group-B3HTSZTK.js → customers-add-customer-group-OQBT7CUI.js} +35 -35
  219. package/dist/{edit-inventory-item-DD5ZG32Y.js → edit-inventory-item-JLTBJEVA.js} +38 -38
  220. package/dist/{edit-inventory-item-attributes-VNLOF6NO.js → edit-inventory-item-attributes-BENAJP4P.js} +34 -33
  221. package/dist/{edit-reservation-CA6SMY3V.js → edit-reservation-FVJZ2NRW.js} +70 -22
  222. package/dist/{edit-rules-MQICWWOW.js → edit-rules-BVZS6GBQ.js} +35 -35
  223. package/dist/extension-targets.d.ts +6 -4
  224. package/dist/{global-commission-edit-FDRWR3GS.js → global-commission-edit-JEBLF6CT.js} +6 -6
  225. package/dist/index.css +49 -25
  226. package/dist/index.d.ts +13 -2
  227. package/dist/index.js +334 -285
  228. package/dist/{inventory-detail-MD6UAJ6S.js → inventory-detail-XVZC3EKF.js} +38 -37
  229. package/dist/{inventory-list-ZQ7T7UP5.js → inventory-list-47UGRRO4.js} +7 -6
  230. package/dist/{inventory-metadata-SVEEQKIY.js → inventory-metadata-FGHOW3YG.js} +32 -32
  231. package/dist/{inventory-stock-3WSWPSMT.js → inventory-stock-66AFFHZN.js} +51 -42
  232. package/dist/{invite-Z6ZEQ5ZV.js → invite-6WUERQLW.js} +3 -3
  233. package/dist/{loader-5VHWG2HX.js → loader-3VTBJUA2.js} +2 -2
  234. package/dist/{loader-XDYR2V3I.js → loader-G2ECT6LC.js} +2 -2
  235. package/dist/{location-create-UJM54XUE.js → location-create-XCEPUY44.js} +2 -2
  236. package/dist/{location-detail-B3HC5UUP.js → location-detail-TVHDXEV5.js} +35 -35
  237. package/dist/{location-edit-YT42REFT.js → location-edit-TQFZN2RW.js} +2 -2
  238. package/dist/{location-fulfillment-providers-GZN6ZGLA.js → location-fulfillment-providers-CE2VQZK5.js} +40 -40
  239. package/dist/location-list-VIAP63HV.js +55 -0
  240. package/dist/{location-sales-channels-MMRCF6QT.js → location-sales-channels-UCPVQLCE.js} +4 -4
  241. package/dist/{location-service-zone-create-CKCO743Z.js → location-service-zone-create-MAN7KD4N.js} +7 -7
  242. package/dist/{location-service-zone-edit-JI57PTL4.js → location-service-zone-edit-36TATZI4.js} +4 -4
  243. package/dist/{location-service-zone-manage-areas-JT4LBLZK.js → location-service-zone-manage-areas-EZS5PYJI.js} +7 -7
  244. package/dist/location-service-zone-shipping-option-create-CH5LD2QT.js +60 -0
  245. package/dist/{location-service-zone-shipping-option-edit-WPPGPHTR.js → location-service-zone-shipping-option-edit-HOEBC3D6.js} +4 -4
  246. package/dist/{location-service-zone-shipping-option-pricing-VNBDBAEC.js → location-service-zone-shipping-option-pricing-D5Q4FLAP.js} +6 -6
  247. package/dist/login-TZHRVYA5.js +249 -0
  248. package/dist/{manage-locations-E2ODEJC5.js → manage-locations-5CF36BYN.js} +21 -9
  249. package/dist/{marketplace-add-currencies-5B2XYBLM.js → marketplace-add-currencies-RWT3F2WT.js} +6 -6
  250. package/dist/{marketplace-detail-DFILEROF.js → marketplace-detail-D2R5PFX2.js} +35 -35
  251. package/dist/{marketplace-edit-LUBE4HXK.js → marketplace-edit-GWOPSYXL.js} +4 -4
  252. package/dist/{marketplace-metadata-75DPIUID.js → marketplace-metadata-EGDXYKCE.js} +32 -32
  253. package/dist/{offer-detail-page-C6FK5MCN.js → offer-detail-page-GLOI33TW.js} +9 -9
  254. package/dist/{offer-variant-detail-page-FMR3NOJV.js → offer-variant-detail-page-5PLRLGNQ.js} +5 -5
  255. package/dist/{offers-ZY2ZN2ZG.js → offers-76PAVEND.js} +43 -41
  256. package/dist/{order-create-claim-HTNJIIBZ.js → order-create-claim-SCUH6IYB.js} +13 -13
  257. package/dist/{order-create-edit-SC3SORRB.js → order-create-edit-52VT7JLO.js} +9 -9
  258. package/dist/{order-create-exchange-KB24UQUR.js → order-create-exchange-ONVRQAYR.js} +41 -41
  259. package/dist/{order-create-refund-FWRG3VIW.js → order-create-refund-4MKAZL7C.js} +32 -32
  260. package/dist/{order-create-return-3LXNXHV4.js → order-create-return-NW7E2KL3.js} +11 -11
  261. package/dist/{order-detail-B4OZSDPP.js → order-detail-QU4GQRJI.js} +41 -41
  262. package/dist/{order-edit-billing-address-UYZNY77G.js → order-edit-billing-address-5OYY6SEI.js} +36 -36
  263. package/dist/{order-edit-email-GVGQLXNK.js → order-edit-email-GM3HKYR6.js} +32 -32
  264. package/dist/{order-edit-shipping-address-RS3PRPVM.js → order-edit-shipping-address-ZWGROPKU.js} +35 -35
  265. package/dist/{order-list-3JO46M43.js → order-list-LEPNY6ZS.js} +14 -14
  266. package/dist/{order-metadata-2TOR4BJY.js → order-metadata-VIG5MGYV.js} +32 -32
  267. package/dist/{order-request-transfer-6JJ2FQPA.js → order-request-transfer-OTGRHY6N.js} +33 -33
  268. package/dist/pages/index.d.ts +274 -335
  269. package/dist/pages/index.js +199 -197
  270. package/dist/{payout-detail-E6CFHU6I.js → payout-detail-UTFO6U4H.js} +3 -3
  271. package/dist/{payout-list-FUKHV2JT.js → payout-list-HRVCGZJS.js} +5 -5
  272. package/dist/price-list-configuration-4OTKSK5N.js +150 -0
  273. package/dist/price-list-create-PPHOWAAS.js +74 -0
  274. package/dist/price-list-customer-availability-WU2OGO37.js +190 -0
  275. package/dist/{price-list-detail-CXV4KN2W.js → price-list-detail-ULHZGIJQ.js} +45 -48
  276. package/dist/{price-list-edit-FQVZW4FT.js → price-list-edit-ZZZDR62K.js} +61 -44
  277. package/dist/{price-list-list-WHHPZCDO.js → price-list-list-JC5EDBH6.js} +9 -11
  278. package/dist/price-list-prices-add-UDILFRKA.js +70 -0
  279. package/dist/{price-list-prices-edit-PZN63VWV.js → price-list-prices-edit-XRMJB47E.js} +168 -125
  280. package/dist/{product-add-existing-attributes-LQ3S5RBE.js → product-add-existing-attributes-OAPNHMJG.js} +35 -35
  281. package/dist/{product-attributes-JUEMRL5V.js → product-attributes-PCOM3JRX.js} +2 -2
  282. package/dist/{product-bulk-edit-7GWRXFUC.js → product-bulk-edit-GQHEFVOG.js} +2 -2
  283. package/dist/product-create-BPT4WAG2.js +77 -0
  284. package/dist/{product-create-attribute-7P4LZP5R.js → product-create-attribute-U3M5Y7RN.js} +3 -3
  285. package/dist/{product-create-variant-74KLCMEU.js → product-create-variant-GND5NOC3.js} +6 -6
  286. package/dist/{product-detail-JBKJRTGZ.js → product-detail-BMY3ZIZO.js} +38 -38
  287. package/dist/{product-edit-GAYL53YC.js → product-edit-2CMVTDWT.js} +3 -3
  288. package/dist/{product-edit-attribute-EBES4PJ3.js → product-edit-attribute-W3AS47FM.js} +3 -3
  289. package/dist/{product-list-NJUYBXMR.js → product-list-C4GEKJMG.js} +41 -41
  290. package/dist/{product-media-4LDPBVQ5.js → product-media-34LLNGQX.js} +5 -5
  291. package/dist/{product-metadata-YZKS2MQV.js → product-metadata-5CRGB7TR.js} +32 -32
  292. package/dist/{product-organization-6TQ4HKB2.js → product-organization-XS62HARL.js} +6 -6
  293. package/dist/{product-sales-channels-K7VOMWUP.js → product-sales-channels-OGWCSG2W.js} +3 -3
  294. package/dist/{product-shipping-profile-SYGR4IF7.js → product-shipping-profile-SWB5FK7S.js} +3 -3
  295. package/dist/{product-tag-create-J6SUTGLF.js → product-tag-create-QORH6X2D.js} +32 -32
  296. package/dist/{product-tag-detail-M4DBYZ7X.js → product-tag-detail-NVT66WIF.js} +57 -56
  297. package/dist/{product-tag-edit-XTCRJPYD.js → product-tag-edit-JWYVCPCC.js} +32 -32
  298. package/dist/{product-tag-list-ZXOAH2VF.js → product-tag-list-S4AN525N.js} +57 -56
  299. package/dist/{product-tag-metadata-UMQPCGKY.js → product-tag-metadata-BCUPIIJ5.js} +32 -32
  300. package/dist/{product-type-create-CWWJMDLN.js → product-type-create-BJMYBP2R.js} +2 -2
  301. package/dist/{product-type-detail-SKGWES74.js → product-type-detail-O2YKCRKH.js} +42 -42
  302. package/dist/{product-type-edit-ZADGA6PV.js → product-type-edit-IEMK45NK.js} +2 -2
  303. package/dist/{product-type-list-3OL5TJSS.js → product-type-list-NNNFCCWS.js} +6 -6
  304. package/dist/{product-type-metadata-RIRSRMDO.js → product-type-metadata-DKBBQB6R.js} +32 -32
  305. package/dist/{product-variant-detail-XWREJ4EK.js → product-variant-detail-XHMS2UT5.js} +33 -33
  306. package/dist/{product-variant-edit-PCD66JBM.js → product-variant-edit-BCO53OXI.js} +39 -39
  307. package/dist/{product-variant-metadata-UJOLOTCQ.js → product-variant-metadata-ETVJBXSW.js} +32 -32
  308. package/dist/{profile-detail-RLGHULMT.js → profile-detail-3T7XIJIX.js} +3 -3
  309. package/dist/{profile-edit-NWUQUWNW.js → profile-edit-34K6IDKU.js} +2 -2
  310. package/dist/{promotion-add-campaign-MAVIGZQ5.js → promotion-add-campaign-TVTKI5EP.js} +8 -8
  311. package/dist/promotion-create-7ZUJ4W2J.js +57 -0
  312. package/dist/{promotion-detail-VOFBW6ZF.js → promotion-detail-4WNHEOG4.js} +38 -37
  313. package/dist/{promotion-edit-details-WMH7KQFD.js → promotion-edit-details-FFTEJ2CV.js} +3 -3
  314. package/dist/{promotion-list-RI5VFG7C.js → promotion-list-AJ5NBDZ2.js} +10 -10
  315. package/dist/{refund-reason-create-XEBLTB3C.js → refund-reason-create-P5FUFEGK.js} +32 -32
  316. package/dist/{refund-reason-edit-J3KQ2FVF.js → refund-reason-edit-AKOTWXCE.js} +32 -32
  317. package/dist/{refund-reason-list-I2EACZ64.js → refund-reason-list-G3PXZY73.js} +49 -48
  318. package/dist/{region-add-countries-WZNV7T6R.js → region-add-countries-TUPPVB4U.js} +5 -5
  319. package/dist/{region-create-5IWBEU2F.js → region-create-UVMXMB2D.js} +7 -7
  320. package/dist/{region-detail-7EVI6XVZ.js → region-detail-7SHGTLWA.js} +7 -7
  321. package/dist/{region-edit-BXH6TBJG.js → region-edit-N6FXU7NY.js} +5 -5
  322. package/dist/{region-list-BP6QJVOI.js → region-list-XFQ3EQZ4.js} +6 -6
  323. package/dist/{region-metadata-GDKM4ND5.js → region-metadata-Q6HEMCHD.js} +32 -32
  324. package/dist/{reservation-create-77EYD2ZZ.js → reservation-create-H3T3AHTK.js} +47 -17
  325. package/dist/{reservation-detail-M7ZAEO3G.js → reservation-detail-5GYGVM3M.js} +33 -34
  326. package/dist/{reservation-list-5HETCOVJ.js → reservation-list-CRPRHIMT.js} +8 -7
  327. package/dist/{reservation-metadata-E6WP6SHE.js → reservation-metadata-P4G3JEDW.js} +32 -32
  328. package/dist/{reset-password-P45OKOT4.js → reset-password-7G75C4RO.js} +3 -3
  329. package/dist/{return-reason-create-K55MK47K.js → return-reason-create-GNUVNYS5.js} +2 -2
  330. package/dist/{return-reason-edit-3N5K4WLG.js → return-reason-edit-5ZICBOB3.js} +2 -2
  331. package/dist/{return-reason-list-OVHCCW37.js → return-reason-list-XDLTSIM7.js} +21 -20
  332. package/dist/review-detail-K555FECH.js +65 -0
  333. package/dist/review-edit-VD4JATST.js +203 -0
  334. package/dist/review-list-BTBPA2HV.js +31 -0
  335. package/dist/review-respond-N6JNU5HF.js +130 -0
  336. package/dist/{sales-channel-add-products-Z4LR5OXJ.js → sales-channel-add-products-WZ475HH6.js} +40 -40
  337. package/dist/{sales-channel-create-BYCHXO7N.js → sales-channel-create-WEF7QXKI.js} +3 -3
  338. package/dist/{sales-channel-detail-BTCUXNDG.js → sales-channel-detail-DTBXMMAX.js} +41 -41
  339. package/dist/{sales-channel-edit-KHHDBZQG.js → sales-channel-edit-2SCFS7SA.js} +3 -3
  340. package/dist/sales-channel-list-DUIEWTAO.js +52 -0
  341. package/dist/{sales-channel-metadata-QAXDOSPG.js → sales-channel-metadata-NBWFH4QX.js} +32 -32
  342. package/dist/{shipping-option-type-create-AULMQGRN.js → shipping-option-type-create-M23CI42D.js} +32 -32
  343. package/dist/{shipping-option-type-detail-EQDAW4GJ.js → shipping-option-type-detail-QIJZQ5WW.js} +34 -34
  344. package/dist/{shipping-option-type-edit-NVXGY32I.js → shipping-option-type-edit-6PWBHHFP.js} +32 -32
  345. package/dist/shipping-option-type-list-R4JPQOAA.js +60 -0
  346. package/dist/{shipping-profile-create-FKAYICYI.js → shipping-profile-create-FT6KK2H5.js} +2 -2
  347. package/dist/{shipping-profile-detail-2JSKRGVO.js → shipping-profile-detail-KPRFJE4V.js} +3 -3
  348. package/dist/{shipping-profile-metadata-OW5IGIW3.js → shipping-profile-metadata-S7Z3IC6I.js} +32 -32
  349. package/dist/{shipping-profiles-list-KKWDAWO4.js → shipping-profiles-list-UKD47NUF.js} +5 -5
  350. package/dist/{store-address-edit-OKIZHTIJ.js → store-address-edit-VLYDLTHQ.js} +2 -2
  351. package/dist/{store-bulk-edit-KOBCPVNM.js → store-bulk-edit-UMDP7YTD.js} +3 -3
  352. package/dist/{store-closure-edit-FXUECFDN.js → store-closure-edit-AT4DMZRF.js} +2 -2
  353. package/dist/{store-create-YPCF45XH.js → store-create-J4SL6SY3.js} +32 -32
  354. package/dist/{store-details-LDBTEJZG.js → store-details-G4DVQBKE.js} +46 -45
  355. package/dist/{store-edit-BGQJW7GH.js → store-edit-2MJMEZ3D.js} +5 -5
  356. package/dist/store-list-JVTZXRE4.js +82 -0
  357. package/dist/{store-member-invite-2WGAJVIX.js → store-member-invite-R3LYRUQX.js} +4 -4
  358. package/dist/{store-payment-details-edit-AQDLN7BO.js → store-payment-details-edit-VCCSUXIV.js} +2 -2
  359. package/dist/{store-professional-details-edit-CUHZ7JQM.js → store-professional-details-edit-MXW6WBQF.js} +2 -2
  360. package/dist/{tax-region-create-7UUVKDZM.js → tax-region-create-P4IKQNTU.js} +38 -38
  361. package/dist/tax-region-detail-NBRSCKTD.js +69 -0
  362. package/dist/{tax-region-edit-UQAMWLO5.js → tax-region-edit-I27QZZPB.js} +33 -33
  363. package/dist/{tax-region-list-MGSVCJVE.js → tax-region-list-JC4QYF5B.js} +7 -7
  364. package/dist/{tax-region-metadata-UONPCPC6.js → tax-region-metadata-6YIZSRLO.js} +32 -32
  365. package/dist/{tax-region-province-create-FNXJVUDS.js → tax-region-province-create-RYNRPGY5.js} +2 -2
  366. package/dist/{tax-region-province-detail-V7NV2G6T.js → tax-region-province-detail-WU5GD7VW.js} +37 -37
  367. package/dist/{tax-region-tax-override-create-E7VNVYIR.js → tax-region-tax-override-create-XR644KO4.js} +56 -55
  368. package/dist/{tax-region-tax-override-edit-4OT5ZOZD.js → tax-region-tax-override-edit-5GRR6SVC.js} +56 -55
  369. package/dist/{tax-region-tax-rate-create-N7E2HDJ7.js → tax-region-tax-rate-create-DLLXVZPG.js} +3 -3
  370. package/dist/{tax-region-tax-rate-edit-KLVNNKQJ.js → tax-region-tax-rate-edit-HN5VDJAZ.js} +3 -3
  371. package/dist/{user-detail-IYB2LYGS.js → user-detail-5LOE6QGK.js} +4 -4
  372. package/dist/{user-edit-NI6IKAX7.js → user-edit-Z3ODTSMN.js} +2 -2
  373. package/dist/{user-invite-AQMFF7YL.js → user-invite-WG57KWD3.js} +4 -4
  374. package/dist/{user-list-DE6EAICL.js → user-list-P7JCBIOR.js} +5 -5
  375. package/dist/{user-metadata-OXHKB6LT.js → user-metadata-2PEU2IJE.js} +32 -32
  376. package/package.json +6 -6
  377. package/dist/attribute-list-RKESEUDY.js +0 -61
  378. package/dist/chunk-4CRCM45N.js +0 -164
  379. package/dist/chunk-6IJMSVC6.js +0 -16
  380. package/dist/chunk-APAT344J.js +0 -144
  381. package/dist/chunk-BNOKKKUU.js +0 -88
  382. package/dist/chunk-DFYBHFBM.js +0 -499
  383. package/dist/chunk-NASNLJLQ.js +0 -744
  384. package/dist/chunk-U6EIJREE.js +0 -435
  385. package/dist/collection-list-GVZPRCOV.js +0 -85
  386. package/dist/customer-group-list-R3AR2DFN.js +0 -57
  387. package/dist/inventory-create-VDO4OWZJ.js +0 -58
  388. package/dist/location-list-4RNLWRLN.js +0 -55
  389. package/dist/location-service-zone-shipping-option-create-CJI2IDS2.js +0 -60
  390. package/dist/login-7R2QVOMB.js +0 -266
  391. package/dist/price-list-configuration-FWKEEKKA.js +0 -356
  392. package/dist/price-list-create-JSJQQBOM.js +0 -77
  393. package/dist/price-list-prices-add-JPNY5ITI.js +0 -72
  394. package/dist/product-create-SRVQFBEE.js +0 -77
  395. package/dist/promotion-create-42BECIQE.js +0 -57
  396. package/dist/sales-channel-list-J4624AXE.js +0 -52
  397. package/dist/shipping-option-type-list-5O4G6THO.js +0 -60
  398. package/dist/store-list-QGOGPQGQ.js +0 -82
  399. package/dist/tax-region-detail-CV3QWTNJ.js +0 -69
@@ -1,6 +1,6 @@
1
1
  import {
2
- InventoryItemGeneralSection
3
- } from "./chunk-APAT344J.js";
2
+ SidebarLink
3
+ } from "./chunk-UST2RGWB.js";
4
4
  import {
5
5
  getFormattedCountry
6
6
  } from "./chunk-W6Y3PPU5.js";
@@ -19,24 +19,24 @@ import {
19
19
  } from "./chunk-E74OUNA3.js";
20
20
  import {
21
21
  Thumbnail
22
- } from "./chunk-WIYFXWRI.js";
22
+ } from "./chunk-U3I6S3RO.js";
23
23
  import {
24
24
  useQueryParams
25
25
  } from "./chunk-THHRRYRS.js";
26
26
  import {
27
27
  _DataTable,
28
28
  useDataTable
29
- } from "./chunk-NEURB6JB.js";
29
+ } from "./chunk-BSXBRI23.js";
30
30
  import {
31
31
  useDate
32
32
  } from "./chunk-UZWFZMOX.js";
33
33
  import {
34
34
  useStockLocations
35
- } from "./chunk-IF2MFOIQ.js";
35
+ } from "./chunk-H5E3CGD7.js";
36
36
  import {
37
37
  useDeleteReservationItem,
38
38
  useReservationItems
39
- } from "./chunk-U4BIWWRA.js";
39
+ } from "./chunk-S7TEUVP7.js";
40
40
  import {
41
41
  ActionMenu
42
42
  } from "./chunk-BDGZ4EQO.js";
@@ -48,13 +48,13 @@ import {
48
48
  inventoryItemsQueryKeys,
49
49
  useInventoryItem,
50
50
  useInventoryItemLevels
51
- } from "./chunk-QE57IFSR.js";
51
+ } from "./chunk-Z476HUMI.js";
52
52
  import {
53
53
  queryClient
54
54
  } from "./chunk-RHKRREUU.js";
55
55
  import {
56
56
  sdk
57
- } from "./chunk-JTAECZCT.js";
57
+ } from "./chunk-DTGEFKK4.js";
58
58
 
59
59
  // src/pages/inventory/inventory-detail/inventory-detail.tsx
60
60
  import { Children } from "react";
@@ -118,32 +118,165 @@ var InventoryItemAttributeSection = ({
118
118
  ] });
119
119
  };
120
120
 
121
+ // src/pages/inventory/inventory-detail/components/inventory-item-general-section.tsx
122
+ import { Container as Container2, Heading as Heading2 } from "@medusajs/ui";
123
+ import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
124
+ import { useTranslation as useTranslation2 } from "react-i18next";
125
+ import { DisplayExtensionZone as DisplayExtensionZone2, DisplayField } from "@mercurjs/dashboard-shared";
126
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
127
+ var InventoryItemGeneralSection = ({
128
+ inventoryItem
129
+ }) => {
130
+ const { t } = useTranslation2();
131
+ const getQuantityFormat = (quantity) => {
132
+ if (quantity !== void 0 && !isNaN(quantity)) {
133
+ return t("inventory.quantityAcrossLocations", {
134
+ quantity,
135
+ locations: inventoryItem.location_levels?.length
136
+ });
137
+ }
138
+ return "-";
139
+ };
140
+ return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", "data-testid": "inventory-item-general-section", children: [
141
+ /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "inventory-item-general-header", children: [
142
+ /* @__PURE__ */ jsx2(
143
+ DisplayField,
144
+ {
145
+ model: "inventory_item",
146
+ zone: "general",
147
+ id: "title",
148
+ data: inventoryItem,
149
+ children: /* @__PURE__ */ jsx2(Heading2, { "data-testid": "inventory-item-general-title", children: inventoryItem.title ?? inventoryItem.sku })
150
+ }
151
+ ),
152
+ /* @__PURE__ */ jsx2(
153
+ ActionMenu,
154
+ {
155
+ groups: [
156
+ {
157
+ actions: [
158
+ {
159
+ icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
160
+ label: t("actions.edit"),
161
+ to: "edit"
162
+ }
163
+ ]
164
+ }
165
+ ],
166
+ "data-testid": "inventory-item-general-action-menu"
167
+ }
168
+ )
169
+ ] }),
170
+ /* @__PURE__ */ jsx2(
171
+ DisplayField,
172
+ {
173
+ model: "inventory_item",
174
+ zone: "general",
175
+ id: "sku",
176
+ data: inventoryItem,
177
+ children: /* @__PURE__ */ jsx2(SectionRow, { title: t("fields.sku"), value: inventoryItem.sku ?? "-", "data-testid": "inventory-item-sku-row" })
178
+ }
179
+ ),
180
+ /* @__PURE__ */ jsx2(
181
+ DisplayField,
182
+ {
183
+ model: "inventory_item",
184
+ zone: "general",
185
+ id: "stocked_quantity",
186
+ data: inventoryItem,
187
+ children: /* @__PURE__ */ jsx2(
188
+ SectionRow,
189
+ {
190
+ title: t("fields.inStock"),
191
+ value: getQuantityFormat(inventoryItem.stocked_quantity),
192
+ "data-testid": "inventory-item-in-stock-row"
193
+ }
194
+ )
195
+ }
196
+ ),
197
+ /* @__PURE__ */ jsx2(
198
+ DisplayField,
199
+ {
200
+ model: "inventory_item",
201
+ zone: "general",
202
+ id: "reserved_quantity",
203
+ data: inventoryItem,
204
+ children: /* @__PURE__ */ jsx2(
205
+ SectionRow,
206
+ {
207
+ title: t("inventory.reserved"),
208
+ value: getQuantityFormat(inventoryItem.reserved_quantity),
209
+ "data-testid": "inventory-item-reserved-row"
210
+ }
211
+ )
212
+ }
213
+ ),
214
+ /* @__PURE__ */ jsx2(
215
+ DisplayField,
216
+ {
217
+ model: "inventory_item",
218
+ zone: "general",
219
+ id: "available_quantity",
220
+ data: inventoryItem,
221
+ children: /* @__PURE__ */ jsx2(
222
+ SectionRow,
223
+ {
224
+ title: t("inventory.available"),
225
+ value: getQuantityFormat(
226
+ inventoryItem.stocked_quantity - inventoryItem.reserved_quantity
227
+ ),
228
+ "data-testid": "inventory-item-available-row"
229
+ }
230
+ )
231
+ }
232
+ ),
233
+ /* @__PURE__ */ jsx2(
234
+ DisplayExtensionZone2,
235
+ {
236
+ model: "inventory_item",
237
+ zone: "general",
238
+ data: inventoryItem,
239
+ builtInFieldIds: [
240
+ "title",
241
+ "sku",
242
+ "stocked_quantity",
243
+ "reserved_quantity",
244
+ "available_quantity"
245
+ ]
246
+ }
247
+ )
248
+ ] });
249
+ };
250
+
121
251
  // src/pages/inventory/inventory-detail/components/inventory-item-location-levels.tsx
122
- import { Button, Container as Container2, Heading as Heading2 } from "@medusajs/ui";
123
- import { DisplayExtensionZone as DisplayExtensionZone2 } from "@mercurjs/dashboard-shared";
124
- import { useTranslation as useTranslation3 } from "react-i18next";
252
+ import { Button, Container as Container3, Heading as Heading3 } from "@medusajs/ui";
253
+ import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
254
+ import { useTranslation as useTranslation5 } from "react-i18next";
125
255
  import { Link } from "react-router-dom";
126
256
 
127
257
  // src/pages/inventory/inventory-detail/components/location-levels-table/use-location-list-table-columns.tsx
128
258
  import { useMemo } from "react";
129
- import { PencilSquare as PencilSquare2, Trash } from "@medusajs/icons";
259
+ import { PencilSquare as PencilSquare3, Trash } from "@medusajs/icons";
130
260
  import {
131
261
  createDataTableColumnHelper,
132
262
  toast,
133
263
  usePrompt
134
264
  } from "@medusajs/ui";
135
- import { useTranslation as useTranslation2 } from "react-i18next";
265
+ import { useTranslation as useTranslation3 } from "react-i18next";
136
266
  import { useNavigate } from "react-router-dom";
137
- import { jsx as jsx2 } from "react/jsx-runtime";
267
+ import { jsx as jsx3 } from "react/jsx-runtime";
138
268
  var columnHelper = createDataTableColumnHelper();
139
269
  var useLocationListTableColumns = () => {
140
- const { t } = useTranslation2();
270
+ const { t } = useTranslation3();
141
271
  const navigate = useNavigate();
142
272
  const prompt = usePrompt();
143
273
  const handleDelete = async (level) => {
274
+ const locationName = level.stock_locations?.map((location) => location.name).join(", ");
144
275
  const res = await prompt({
145
- title: t("general.areYouSure"),
146
- description: t("inventory.deleteWarning"),
276
+ title: t("inventory.level.deleteTitle"),
277
+ description: t("inventory.level.deleteDescription", {
278
+ location: locationName || t("fields.location")
279
+ }),
147
280
  confirmText: t("actions.delete"),
148
281
  cancelText: t("actions.cancel")
149
282
  });
@@ -182,9 +315,9 @@ var useLocationListTableColumns = () => {
182
315
  cell: ({ row }) => {
183
316
  const locationName = row.original.stock_locations?.map((location) => location.name).join(", ");
184
317
  if (!locationName) {
185
- return /* @__PURE__ */ jsx2(PlaceholderCell, {});
318
+ return /* @__PURE__ */ jsx3(PlaceholderCell, {});
186
319
  }
187
- return /* @__PURE__ */ jsx2("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx2("span", { className: "truncate", children: locationName.toString() }) });
320
+ return /* @__PURE__ */ jsx3("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx3("span", { className: "truncate", children: locationName.toString() }) });
188
321
  }
189
322
  }),
190
323
  columnHelper.accessor("reserved_quantity", {
@@ -192,9 +325,9 @@ var useLocationListTableColumns = () => {
192
325
  cell: ({ getValue }) => {
193
326
  const quantity = getValue();
194
327
  if (Number.isNaN(quantity)) {
195
- return /* @__PURE__ */ jsx2(PlaceholderCell, {});
328
+ return /* @__PURE__ */ jsx3(PlaceholderCell, {});
196
329
  }
197
- return /* @__PURE__ */ jsx2("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx2("span", { className: "truncate", children: quantity }) });
330
+ return /* @__PURE__ */ jsx3("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx3("span", { className: "truncate", children: quantity }) });
198
331
  },
199
332
  enableSorting: true
200
333
  }),
@@ -203,9 +336,9 @@ var useLocationListTableColumns = () => {
203
336
  cell: ({ getValue }) => {
204
337
  const stockedQuantity = getValue();
205
338
  if (Number.isNaN(stockedQuantity)) {
206
- return /* @__PURE__ */ jsx2(PlaceholderCell, {});
339
+ return /* @__PURE__ */ jsx3(PlaceholderCell, {});
207
340
  }
208
- return /* @__PURE__ */ jsx2("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx2("span", { className: "truncate", children: stockedQuantity }) });
341
+ return /* @__PURE__ */ jsx3("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx3("span", { className: "truncate", children: stockedQuantity }) });
209
342
  },
210
343
  enableSorting: true
211
344
  }),
@@ -214,33 +347,43 @@ var useLocationListTableColumns = () => {
214
347
  cell: ({ getValue }) => {
215
348
  const availableQuantity = getValue();
216
349
  if (Number.isNaN(availableQuantity)) {
217
- return /* @__PURE__ */ jsx2(PlaceholderCell, {});
350
+ return /* @__PURE__ */ jsx3(PlaceholderCell, {});
218
351
  }
219
- return /* @__PURE__ */ jsx2("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx2("span", { className: "truncate", children: availableQuantity }) });
352
+ return /* @__PURE__ */ jsx3("div", { className: "flex size-full items-center overflow-hidden", children: /* @__PURE__ */ jsx3("span", { className: "truncate", children: availableQuantity }) });
220
353
  }
221
354
  }),
222
- columnHelper.action({
223
- actions: (ctx) => {
224
- const level = ctx.row.original;
225
- return [
226
- [
227
- {
228
- icon: /* @__PURE__ */ jsx2(PencilSquare2, {}),
229
- label: t("actions.edit"),
230
- onClick: () => {
231
- navigate(`locations/${level.location_id}`);
355
+ columnHelper.display({
356
+ id: "actions",
357
+ cell: ({ row }) => {
358
+ const level = row.original;
359
+ return /* @__PURE__ */ jsx3(
360
+ ActionMenu,
361
+ {
362
+ groups: [
363
+ {
364
+ actions: [
365
+ {
366
+ icon: /* @__PURE__ */ jsx3(PencilSquare3, {}),
367
+ label: t("actions.edit"),
368
+ onClick: () => {
369
+ navigate(`locations/${level.location_id}`);
370
+ }
371
+ }
372
+ ]
373
+ },
374
+ {
375
+ actions: [
376
+ {
377
+ icon: /* @__PURE__ */ jsx3(Trash, {}),
378
+ label: t("actions.delete"),
379
+ onClick: () => handleDelete(level),
380
+ disabled: level.reserved_quantity > 0 || level.stocked_quantity > 0
381
+ }
382
+ ]
232
383
  }
233
- }
234
- ],
235
- [
236
- {
237
- icon: /* @__PURE__ */ jsx2(Trash, {}),
238
- label: t("actions.delete"),
239
- onClick: () => handleDelete(level),
240
- disabled: level.reserved_quantity > 0 || level.stocked_quantity > 0
241
- }
242
- ]
243
- ];
384
+ ]
385
+ }
386
+ );
244
387
  }
245
388
  })
246
389
  ],
@@ -277,12 +420,14 @@ var useLocationLevelTableQuery = ({
277
420
  };
278
421
 
279
422
  // src/pages/inventory/inventory-detail/components/location-levels-table/location-list-table.tsx
280
- import { jsx as jsx3 } from "react/jsx-runtime";
423
+ import { useTranslation as useTranslation4 } from "react-i18next";
424
+ import { jsx as jsx4 } from "react/jsx-runtime";
281
425
  var PAGE_SIZE = 20;
282
426
  var PREFIX = "invlvl";
283
427
  var ItemLocationListTable = ({
284
428
  inventory_item_id
285
429
  }) => {
430
+ const { t } = useTranslation4();
286
431
  const { searchParams, raw } = useLocationLevelTableQuery({
287
432
  pageSize: PAGE_SIZE,
288
433
  prefix: PREFIX
@@ -309,7 +454,7 @@ var ItemLocationListTable = ({
309
454
  getRowId: (row) => row.id,
310
455
  pageSize: PAGE_SIZE
311
456
  });
312
- return /* @__PURE__ */ jsx3("div", { "data-testid": "inventory-location-levels-table", children: /* @__PURE__ */ jsx3(
457
+ return /* @__PURE__ */ jsx4("div", { "data-testid": "inventory-location-levels-table", children: /* @__PURE__ */ jsx4(
313
458
  _DataTable,
314
459
  {
315
460
  table,
@@ -318,46 +463,50 @@ var ItemLocationListTable = ({
318
463
  count,
319
464
  isLoading,
320
465
  pagination: true,
321
- queryObject: raw
466
+ queryObject: raw,
467
+ noRecords: {
468
+ title: t("inventory.locations.noRecordsTitle"),
469
+ message: t("inventory.locations.noRecordsMessage")
470
+ }
322
471
  }
323
472
  ) });
324
473
  };
325
474
 
326
475
  // src/pages/inventory/inventory-detail/components/inventory-item-location-levels.tsx
327
- import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
476
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
328
477
  var InventoryItemLocationLevelsSection = ({
329
478
  inventoryItem
330
479
  }) => {
331
- const { t } = useTranslation3();
332
- return /* @__PURE__ */ jsxs2(
333
- Container2,
480
+ const { t } = useTranslation5();
481
+ return /* @__PURE__ */ jsxs3(
482
+ Container3,
334
483
  {
335
484
  className: "divide-y p-0",
336
485
  "data-testid": "inventory-item-location-levels-section",
337
486
  children: [
338
- /* @__PURE__ */ jsxs2(
487
+ /* @__PURE__ */ jsxs3(
339
488
  "div",
340
489
  {
341
490
  className: "flex items-center justify-between px-6 py-4",
342
491
  "data-testid": "inventory-item-location-levels-header",
343
492
  children: [
344
- /* @__PURE__ */ jsx4(Heading2, { "data-testid": "inventory-item-location-levels-title", children: t("inventory.locationLevels") }),
345
- /* @__PURE__ */ jsx4(
493
+ /* @__PURE__ */ jsx5(Heading3, { "data-testid": "inventory-item-location-levels-title", children: t("inventory.locationLevels") }),
494
+ /* @__PURE__ */ jsx5(
346
495
  Button,
347
496
  {
348
497
  size: "small",
349
498
  variant: "secondary",
350
499
  asChild: true,
351
500
  "data-testid": "inventory-manage-locations-button",
352
- children: /* @__PURE__ */ jsx4(Link, { to: "locations", "data-testid": "inventory-manage-locations-link", children: t("inventory.manageLocations") })
501
+ children: /* @__PURE__ */ jsx5(Link, { to: "locations", "data-testid": "inventory-manage-locations-link", children: t("inventory.manageLocations") })
353
502
  }
354
503
  )
355
504
  ]
356
505
  }
357
506
  ),
358
- /* @__PURE__ */ jsx4(ItemLocationListTable, { inventory_item_id: inventoryItem.id }),
359
- /* @__PURE__ */ jsx4(
360
- DisplayExtensionZone2,
507
+ /* @__PURE__ */ jsx5(ItemLocationListTable, { inventory_item_id: inventoryItem.id }),
508
+ /* @__PURE__ */ jsx5(
509
+ DisplayExtensionZone3,
361
510
  {
362
511
  model: "inventory_item",
363
512
  zone: "locations",
@@ -370,56 +519,66 @@ var InventoryItemLocationLevelsSection = ({
370
519
  };
371
520
 
372
521
  // src/pages/inventory/inventory-detail/components/inventory-item-reservations.tsx
373
- import { Button as Button2, Container as Container3, Heading as Heading3 } from "@medusajs/ui";
374
- import { DisplayExtensionZone as DisplayExtensionZone3 } from "@mercurjs/dashboard-shared";
375
- import { useTranslation as useTranslation7 } from "react-i18next";
522
+ import { Button as Button2, Container as Container4, Heading as Heading4 } from "@medusajs/ui";
523
+ import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
524
+ import { useTranslation as useTranslation10 } from "react-i18next";
376
525
  import { Link as Link2 } from "react-router-dom";
377
526
 
378
527
  // src/pages/inventory/inventory-detail/components/reservations-table/reservation-list-table.tsx
379
528
  import { useMemo as useMemo3 } from "react";
529
+ import { useTranslation as useTranslation9 } from "react-i18next";
380
530
 
381
531
  // src/pages/inventory/inventory-detail/components/reservations-table/use-reservation-list-table-columns.tsx
382
532
  import { createColumnHelper } from "@tanstack/react-table";
383
533
  import { useMemo as useMemo2 } from "react";
384
- import { useTranslation as useTranslation6 } from "react-i18next";
534
+ import { useTranslation as useTranslation8 } from "react-i18next";
385
535
 
386
536
  // src/components/table/table-cells/common/created-at-cell/created-at-cell.tsx
387
537
  import { Tooltip } from "@medusajs/ui";
388
- import { useTranslation as useTranslation4 } from "react-i18next";
389
- import { jsx as jsx5 } from "react/jsx-runtime";
538
+ import { useTranslation as useTranslation6 } from "react-i18next";
539
+ import { jsx as jsx6 } from "react/jsx-runtime";
390
540
  var CreatedAtCell = ({ date }) => {
391
541
  const { getFullDate } = useDate();
392
542
  if (!date) {
393
- return /* @__PURE__ */ jsx5(PlaceholderCell, {});
543
+ return /* @__PURE__ */ jsx6(PlaceholderCell, {});
394
544
  }
395
- return /* @__PURE__ */ jsx5("div", { className: "flex h-full w-full items-center overflow-hidden", children: /* @__PURE__ */ jsx5(
545
+ return /* @__PURE__ */ jsx6("div", { className: "flex h-full w-full items-center overflow-hidden", children: /* @__PURE__ */ jsx6(
396
546
  Tooltip,
397
547
  {
398
548
  className: "z-10",
399
- content: /* @__PURE__ */ jsx5("span", { className: "text-pretty", children: `${getFullDate({
549
+ content: /* @__PURE__ */ jsx6("span", { className: "text-pretty", children: `${getFullDate({
400
550
  date,
401
551
  includeTime: true
402
552
  })}` }),
403
- children: /* @__PURE__ */ jsx5("span", { className: "truncate", children: getFullDate({ date, includeTime: true }) })
553
+ children: /* @__PURE__ */ jsx6("span", { className: "truncate", children: getFullDate({ date, includeTime: true }) })
404
554
  }
405
555
  ) });
406
556
  };
407
557
 
408
558
  // src/pages/inventory/inventory-detail/components/reservations-table/reservation-actions.tsx
409
- import { PencilSquare as PencilSquare3, Trash as Trash2 } from "@medusajs/icons";
559
+ import { PencilSquare as PencilSquare4, Trash as Trash2 } from "@medusajs/icons";
410
560
  import { toast as toast2, usePrompt as usePrompt2 } from "@medusajs/ui";
411
- import { useTranslation as useTranslation5 } from "react-i18next";
412
- import { jsx as jsx6 } from "react/jsx-runtime";
561
+ import { useTranslation as useTranslation7 } from "react-i18next";
562
+ import { jsx as jsx7 } from "react/jsx-runtime";
413
563
  var ReservationActions = ({
414
564
  reservation
415
565
  }) => {
416
- const { t } = useTranslation5();
566
+ const { t } = useTranslation7();
417
567
  const prompt = usePrompt2();
418
568
  const { mutateAsync } = useDeleteReservationItem(reservation.id);
419
569
  const handleDelete = async () => {
570
+ if (reservation.line_item_id) {
571
+ await prompt({
572
+ title: t("inventory.reservation.deleteTitle"),
573
+ description: t("inventory.reservation.deleteBlockedDescription"),
574
+ confirmText: t("inventory.reservation.gotIt"),
575
+ cancelText: t("actions.cancel")
576
+ });
577
+ return;
578
+ }
420
579
  const res = await prompt({
421
- title: t("general.areYouSure"),
422
- description: t("inventory.deleteWarning"),
580
+ title: t("inventory.reservation.deleteTitle"),
581
+ description: t("inventory.reservation.deleteDescription"),
423
582
  confirmText: t("actions.delete"),
424
583
  cancelText: t("actions.cancel")
425
584
  });
@@ -435,14 +594,14 @@ var ReservationActions = ({
435
594
  }
436
595
  });
437
596
  };
438
- return /* @__PURE__ */ jsx6(
597
+ return /* @__PURE__ */ jsx7(
439
598
  ActionMenu,
440
599
  {
441
600
  groups: [
442
601
  {
443
602
  actions: [
444
603
  {
445
- icon: /* @__PURE__ */ jsx6(PencilSquare3, {}),
604
+ icon: /* @__PURE__ */ jsx7(PencilSquare4, {}),
446
605
  label: t("actions.edit"),
447
606
  to: `/reservations/${reservation.id}/edit`
448
607
  }
@@ -451,7 +610,7 @@ var ReservationActions = ({
451
610
  {
452
611
  actions: [
453
612
  {
454
- icon: /* @__PURE__ */ jsx6(Trash2, {}),
613
+ icon: /* @__PURE__ */ jsx7(Trash2, {}),
455
614
  label: t("actions.delete"),
456
615
  onClick: handleDelete
457
616
  }
@@ -464,62 +623,62 @@ var ReservationActions = ({
464
623
  };
465
624
 
466
625
  // src/pages/inventory/inventory-detail/components/reservations-table/use-reservation-list-table-columns.tsx
467
- import { jsx as jsx7 } from "react/jsx-runtime";
626
+ import { jsx as jsx8 } from "react/jsx-runtime";
468
627
  var columnHelper2 = createColumnHelper();
469
628
  var useReservationTableColumn = ({ sku }) => {
470
- const { t } = useTranslation6();
629
+ const { t } = useTranslation8();
471
630
  return useMemo2(
472
631
  () => [
473
632
  columnHelper2.display({
474
633
  id: "sku",
475
- header: () => /* @__PURE__ */ jsx7(TextHeader, { text: t("fields.sku") }),
634
+ header: () => /* @__PURE__ */ jsx8(TextHeader, { text: t("fields.sku") }),
476
635
  cell: () => {
477
- return /* @__PURE__ */ jsx7(TextCell, { text: sku });
636
+ return /* @__PURE__ */ jsx8(TextCell, { text: sku });
478
637
  }
479
638
  }),
480
639
  columnHelper2.accessor("line_item.order_id", {
481
- header: () => /* @__PURE__ */ jsx7(TextHeader, { text: t("inventory.reservation.orderID") }),
640
+ header: () => /* @__PURE__ */ jsx8(TextHeader, { text: t("inventory.reservation.orderID") }),
482
641
  cell: ({ getValue }) => {
483
642
  const orderId = getValue();
484
643
  if (!orderId) {
485
- return /* @__PURE__ */ jsx7(PlaceholderCell, {});
644
+ return /* @__PURE__ */ jsx8(PlaceholderCell, {});
486
645
  }
487
- return /* @__PURE__ */ jsx7(TextCell, { text: orderId });
646
+ return /* @__PURE__ */ jsx8(TextCell, { text: orderId });
488
647
  }
489
648
  }),
490
649
  columnHelper2.accessor("description", {
491
- header: () => /* @__PURE__ */ jsx7(TextHeader, { text: t("fields.description") }),
650
+ header: () => /* @__PURE__ */ jsx8(TextHeader, { text: t("fields.description") }),
492
651
  cell: ({ getValue }) => {
493
652
  const description = getValue();
494
653
  if (!description) {
495
- return /* @__PURE__ */ jsx7(PlaceholderCell, {});
654
+ return /* @__PURE__ */ jsx8(PlaceholderCell, {});
496
655
  }
497
- return /* @__PURE__ */ jsx7(TextCell, { text: description });
656
+ return /* @__PURE__ */ jsx8(TextCell, { text: description });
498
657
  }
499
658
  }),
500
659
  columnHelper2.accessor("location.name", {
501
- header: () => /* @__PURE__ */ jsx7(TextHeader, { text: t("inventory.reservation.location") }),
660
+ header: () => /* @__PURE__ */ jsx8(TextHeader, { text: t("inventory.reservation.location") }),
502
661
  cell: ({ getValue }) => {
503
662
  const location = getValue();
504
663
  if (!location) {
505
- return /* @__PURE__ */ jsx7(PlaceholderCell, {});
664
+ return /* @__PURE__ */ jsx8(PlaceholderCell, {});
506
665
  }
507
- return /* @__PURE__ */ jsx7(TextCell, { text: location });
666
+ return /* @__PURE__ */ jsx8(TextCell, { text: location });
508
667
  }
509
668
  }),
510
669
  columnHelper2.accessor("created_at", {
511
- header: () => /* @__PURE__ */ jsx7(TextHeader, { text: t("fields.createdAt") }),
512
- cell: ({ getValue }) => /* @__PURE__ */ jsx7(CreatedAtCell, { date: getValue() })
670
+ header: () => /* @__PURE__ */ jsx8(TextHeader, { text: t("fields.createdAt") }),
671
+ cell: ({ getValue }) => /* @__PURE__ */ jsx8(CreatedAtCell, { date: getValue() })
513
672
  }),
514
673
  columnHelper2.accessor("quantity", {
515
- header: () => /* @__PURE__ */ jsx7(TextHeader, { text: t("fields.quantity"), align: "right" }),
674
+ header: () => /* @__PURE__ */ jsx8(TextHeader, { text: t("fields.quantity"), align: "right" }),
516
675
  cell: ({ getValue }) => {
517
- return /* @__PURE__ */ jsx7(TextCell, { text: getValue(), align: "right" });
676
+ return /* @__PURE__ */ jsx8(TextCell, { text: getValue(), align: "right" });
518
677
  }
519
678
  }),
520
679
  columnHelper2.display({
521
680
  id: "actions",
522
- cell: ({ row }) => /* @__PURE__ */ jsx7(ReservationActions, { reservation: row.original })
681
+ cell: ({ row }) => /* @__PURE__ */ jsx8(ReservationActions, { reservation: row.original })
523
682
  })
524
683
  ],
525
684
  [t, sku]
@@ -556,11 +715,12 @@ var useReservationsTableQuery = ({
556
715
  };
557
716
 
558
717
  // src/pages/inventory/inventory-detail/components/reservations-table/reservation-list-table.tsx
559
- import { jsx as jsx8 } from "react/jsx-runtime";
718
+ import { jsx as jsx9 } from "react/jsx-runtime";
560
719
  var PAGE_SIZE2 = 20;
561
720
  var ReservationItemTable = ({
562
721
  inventoryItem
563
722
  }) => {
723
+ const { t } = useTranslation9();
564
724
  const { searchParams, raw } = useReservationsTableQuery({
565
725
  pageSize: PAGE_SIZE2
566
726
  });
@@ -590,7 +750,7 @@ var ReservationItemTable = ({
590
750
  if (isError) {
591
751
  throw error;
592
752
  }
593
- return /* @__PURE__ */ jsx8("div", { "data-testid": "inventory-reservations-table", children: /* @__PURE__ */ jsx8(
753
+ return /* @__PURE__ */ jsx9("div", { "data-testid": "inventory-reservations-table", children: /* @__PURE__ */ jsx9(
594
754
  _DataTable,
595
755
  {
596
756
  table,
@@ -599,25 +759,29 @@ var ReservationItemTable = ({
599
759
  count,
600
760
  isLoading: isPending,
601
761
  pagination: true,
602
- queryObject: raw
762
+ queryObject: raw,
763
+ noRecords: {
764
+ title: t("inventory.reservations.noRecordsTitle"),
765
+ message: t("inventory.reservations.noRecordsMessage")
766
+ }
603
767
  }
604
768
  ) });
605
769
  };
606
770
 
607
771
  // src/pages/inventory/inventory-detail/components/inventory-item-reservations.tsx
608
- import { jsx as jsx9, jsxs as jsxs3 } from "react/jsx-runtime";
772
+ import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
609
773
  var InventoryItemReservationsSection = ({
610
774
  inventoryItem
611
775
  }) => {
612
- const { t } = useTranslation7();
613
- return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", "data-testid": "inventory-item-reservations-section", children: [
614
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "inventory-item-reservations-header", children: [
615
- /* @__PURE__ */ jsx9(Heading3, { "data-testid": "inventory-item-reservations-title", children: t("reservations.domain") }),
616
- /* @__PURE__ */ jsx9(Button2, { size: "small", variant: "secondary", asChild: true, "data-testid": "inventory-create-reservation-button", children: /* @__PURE__ */ jsx9(Link2, { to: `/reservations/create?item_id=${inventoryItem.id}`, "data-testid": "inventory-create-reservation-link", children: t("actions.create") }) })
776
+ const { t } = useTranslation10();
777
+ return /* @__PURE__ */ jsxs4(Container4, { className: "divide-y p-0", "data-testid": "inventory-item-reservations-section", children: [
778
+ /* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "inventory-item-reservations-header", children: [
779
+ /* @__PURE__ */ jsx10(Heading4, { "data-testid": "inventory-item-reservations-title", children: t("reservations.domain") }),
780
+ /* @__PURE__ */ jsx10(Button2, { size: "small", variant: "secondary", asChild: true, "data-testid": "inventory-create-reservation-button", children: /* @__PURE__ */ jsx10(Link2, { to: `/reservations/create?item_id=${inventoryItem.id}`, "data-testid": "inventory-create-reservation-link", children: t("actions.create") }) })
617
781
  ] }),
618
- /* @__PURE__ */ jsx9(ReservationItemTable, { inventoryItem }),
619
- /* @__PURE__ */ jsx9(
620
- DisplayExtensionZone3,
782
+ /* @__PURE__ */ jsx10(ReservationItemTable, { inventoryItem }),
783
+ /* @__PURE__ */ jsx10(
784
+ DisplayExtensionZone4,
621
785
  {
622
786
  model: "inventory_item",
623
787
  zone: "reservations",
@@ -627,62 +791,49 @@ var InventoryItemReservationsSection = ({
627
791
  ] });
628
792
  };
629
793
 
630
- // src/pages/inventory/inventory-detail/components/inventory-item-variants/variants-section.tsx
631
- import { TriangleRightMini } from "@medusajs/icons";
632
- import { Container as Container4, Heading as Heading4 } from "@medusajs/ui";
633
- import { DisplayExtensionZone as DisplayExtensionZone4 } from "@mercurjs/dashboard-shared";
634
- import { useTranslation as useTranslation8 } from "react-i18next";
635
- import { Link as Link3 } from "react-router-dom";
636
- import { jsx as jsx10, jsxs as jsxs4 } from "react/jsx-runtime";
637
- var InventoryItemVariantsSection = ({
638
- variants
794
+ // src/pages/inventory/inventory-detail/components/inventory-item-offers/associated-offers-section.tsx
795
+ import { Container as Container5, Heading as Heading5 } from "@medusajs/ui";
796
+ import { useTranslation as useTranslation11 } from "react-i18next";
797
+ import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
798
+ var AssociatedOffersSection = ({
799
+ offers
639
800
  }) => {
640
- const { t } = useTranslation8();
641
- if (!variants?.length) {
801
+ const { t } = useTranslation11();
802
+ if (!offers?.length) {
642
803
  return null;
643
804
  }
644
- return /* @__PURE__ */ jsxs4(Container4, { className: "p-0", "data-testid": "inventory-item-variants-section", children: [
645
- /* @__PURE__ */ jsx10("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "inventory-item-variants-header", children: /* @__PURE__ */ jsx10(Heading4, { level: "h2", "data-testid": "inventory-item-variants-title", children: t("inventory.associatedVariants") }) }),
646
- /* @__PURE__ */ jsx10("div", { className: "txt-small flex flex-col gap-2 px-2 pb-2", "data-testid": "inventory-item-variants-list", children: variants.map((variant) => {
647
- const link = variant.product ? `/products/${variant.product.id}/variants/${variant.id}` : null;
648
- const Inner = /* @__PURE__ */ jsx10("div", { className: "shadow-elevation-card-rest bg-ui-bg-component rounded-md px-4 py-2 transition-colors", "data-testid": `inventory-item-variant-${variant.id}`, children: /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-3", children: [
649
- /* @__PURE__ */ jsx10("div", { className: "shadow-elevation-card-rest rounded-md", "data-testid": `inventory-item-variant-thumbnail-${variant.id}`, children: /* @__PURE__ */ jsx10(Thumbnail, { src: variant.product?.thumbnail }) }),
650
- /* @__PURE__ */ jsxs4("div", { className: "flex flex-1 flex-col", children: [
651
- /* @__PURE__ */ jsx10("span", { className: "text-ui-fg-base font-medium", "data-testid": `inventory-item-variant-title-${variant.id}`, children: variant.title }),
652
- /* @__PURE__ */ jsx10("span", { className: "text-ui-fg-subtle", "data-testid": `inventory-item-variant-options-${variant.id}`, children: variant.options.map((o) => o.value).join(" \u22C5 ") })
653
- ] }),
654
- /* @__PURE__ */ jsx10("div", { className: "size-7 flex items-center justify-center", "data-testid": `inventory-item-variant-arrow-${variant.id}`, children: /* @__PURE__ */ jsx10(TriangleRightMini, { className: "text-ui-fg-muted rtl:rotate-180" }) })
655
- ] }) });
656
- if (!link) {
657
- return /* @__PURE__ */ jsx10("div", { "data-testid": `inventory-item-variant-container-${variant.id}`, children: Inner }, variant.id);
658
- }
659
- return /* @__PURE__ */ jsx10(
660
- Link3,
805
+ return /* @__PURE__ */ jsxs5(Container5, { className: "p-0", "data-testid": "inventory-item-offers-section", children: [
806
+ /* @__PURE__ */ jsx11("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx11(Heading5, { level: "h2", "data-testid": "inventory-item-offers-title", children: t("inventory.associatedOffers") }) }),
807
+ offers.map((offer) => {
808
+ const variantTitle = offer.product_variant?.title;
809
+ const productTitle = offer.product_variant?.product?.title;
810
+ const label = variantTitle || offer.sku;
811
+ const description = [variantTitle, productTitle].filter(Boolean).join(" \xB7 ");
812
+ return /* @__PURE__ */ jsx11(
813
+ SidebarLink,
661
814
  {
662
- to: link,
663
- className: "outline-none focus-within:shadow-borders-interactive-with-focus rounded-md [&:hover>div]:bg-ui-bg-component-hover",
664
- "data-testid": `inventory-item-variant-link-${variant.id}`,
665
- children: Inner
815
+ to: `/offers/${offer.product_id}/variants/${offer.id}`,
816
+ labelKey: label,
817
+ descriptionKey: description,
818
+ icon: /* @__PURE__ */ jsx11(
819
+ Thumbnail,
820
+ {
821
+ src: offer.product_variant?.product?.thumbnail ?? null
822
+ }
823
+ ),
824
+ dataTestid: `inventory-associated-offer-${offer.id}`
666
825
  },
667
- variant.id
826
+ offer.id
668
827
  );
669
- }) }),
670
- /* @__PURE__ */ jsx10(
671
- DisplayExtensionZone4,
672
- {
673
- model: "inventory_item",
674
- zone: "variants",
675
- data: variants
676
- }
677
- )
828
+ })
678
829
  ] });
679
830
  };
680
831
 
681
832
  // src/pages/inventory/inventory-detail/constants.ts
682
- var INVENTORY_DETAIL_FIELDS = "*variants,*variants.product,*variants.options";
833
+ var INVENTORY_DETAIL_FIELDS = "*variants,*variants.product,*variants.options,+offers.id,+offers.sku,+offers.seller_id,+offers.product_id,+offers.product_variant.title,+offers.product_variant.product.title,+offers.product_variant.product.thumbnail";
683
834
 
684
835
  // src/pages/inventory/inventory-detail/inventory-detail.tsx
685
- import { jsx as jsx11, jsxs as jsxs5 } from "react/jsx-runtime";
836
+ import { jsx as jsx12, jsxs as jsxs6 } from "react/jsx-runtime";
686
837
  var Root = ({ children }) => {
687
838
  const { id } = useParams();
688
839
  const initialData = useLoaderData();
@@ -699,7 +850,7 @@ var Root = ({ children }) => {
699
850
  }
700
851
  );
701
852
  if (isLoading || !inventory_item) {
702
- return /* @__PURE__ */ jsx11(
853
+ return /* @__PURE__ */ jsx12(
703
854
  TwoColumnPageSkeleton,
704
855
  {
705
856
  showJSON: true,
@@ -712,25 +863,20 @@ var Root = ({ children }) => {
712
863
  if (isError) {
713
864
  throw error;
714
865
  }
715
- return Children.count(children) > 0 ? /* @__PURE__ */ jsx11(TwoColumnPage, { data: inventory_item, showJSON: true, showMetadata: true, "data-testid": "inventory-detail-page", children }) : /* @__PURE__ */ jsxs5(TwoColumnPage, { data: inventory_item, showJSON: true, showMetadata: true, "data-testid": "inventory-detail-page", children: [
716
- /* @__PURE__ */ jsx11(TwoColumnPage.Main, { "data-testid": "inventory-detail-main", children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "inventory.detail.main", data: inventory_item, children: [
717
- /* @__PURE__ */ jsx11(InventoryItemGeneralSection, { inventoryItem: inventory_item }),
718
- /* @__PURE__ */ jsx11(
866
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx12(TwoColumnPage, { data: inventory_item, showJSON: true, showMetadata: true, "data-testid": "inventory-detail-page", children }) : /* @__PURE__ */ jsxs6(TwoColumnPage, { data: inventory_item, showJSON: true, showMetadata: true, "data-testid": "inventory-detail-page", children: [
867
+ /* @__PURE__ */ jsx12(TwoColumnPage.Main, { "data-testid": "inventory-detail-main", children: /* @__PURE__ */ jsxs6(WidgetZone, { id: "inventory.detail.main", data: inventory_item, children: [
868
+ /* @__PURE__ */ jsx12(InventoryItemGeneralSection, { inventoryItem: inventory_item }),
869
+ /* @__PURE__ */ jsx12(
719
870
  InventoryItemLocationLevelsSection,
720
871
  {
721
872
  inventoryItem: inventory_item
722
873
  }
723
874
  ),
724
- /* @__PURE__ */ jsx11(InventoryItemReservationsSection, { inventoryItem: inventory_item })
875
+ /* @__PURE__ */ jsx12(InventoryItemReservationsSection, { inventoryItem: inventory_item })
725
876
  ] }) }),
726
- /* @__PURE__ */ jsx11(TwoColumnPage.Sidebar, { "data-testid": "inventory-detail-sidebar", children: /* @__PURE__ */ jsxs5(WidgetZone, { id: "inventory.detail.side", data: inventory_item, children: [
727
- inventory_item.variants && inventory_item.variants?.length > 0 && /* @__PURE__ */ jsx11(
728
- InventoryItemVariantsSection,
729
- {
730
- variants: inventory_item.variants
731
- }
732
- ),
733
- /* @__PURE__ */ jsx11(InventoryItemAttributeSection, { inventoryItem: inventory_item })
877
+ /* @__PURE__ */ jsx12(TwoColumnPage.Sidebar, { "data-testid": "inventory-detail-sidebar", children: /* @__PURE__ */ jsxs6(WidgetZone, { id: "inventory.detail.side", data: inventory_item, children: [
878
+ /* @__PURE__ */ jsx12(AssociatedOffersSection, { offers: inventory_item.offers }),
879
+ /* @__PURE__ */ jsx12(InventoryItemAttributeSection, { inventoryItem: inventory_item })
734
880
  ] }) })
735
881
  ] });
736
882
  };
@@ -740,7 +886,7 @@ var InventoryDetailPage = Object.assign(Root, {
740
886
  MainGeneralSection: InventoryItemGeneralSection,
741
887
  MainLocationLevelsSection: InventoryItemLocationLevelsSection,
742
888
  MainReservationsSection: InventoryItemReservationsSection,
743
- SidebarVariantsSection: InventoryItemVariantsSection,
889
+ SidebarOffersSection: AssociatedOffersSection,
744
890
  SidebarAttributeSection: InventoryItemAttributeSection
745
891
  });
746
892