@mercurjs/admin 2.2.0-canary.2 → 2.2.0-canary.21

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 (356) hide show
  1. package/dist/{add-campaign-promotions-OLNTDP26.js → add-campaign-promotions-EB2MYHMZ.js} +4 -4
  2. package/dist/{adjust-inventory-CVWSBMHU.js → adjust-inventory-KNHM7QEV.js} +20 -21
  3. package/dist/{api-key-management-create-7RWOCVAO.js → api-key-management-create-7SIKAXEH.js} +4 -4
  4. package/dist/{api-key-management-detail-ZIIDMHFI.js → api-key-management-detail-ELMPBXEB.js} +26 -26
  5. package/dist/{api-key-management-edit-ACH6TJAX.js → api-key-management-edit-C4FYJZGH.js} +4 -4
  6. package/dist/{api-key-management-list-JHBBXGHH.js → api-key-management-list-FVOOICQR.js} +4 -4
  7. package/dist/{api-key-management-sales-channels-XEBTUB5V.js → api-key-management-sales-channels-JLSDZRG6.js} +8 -7
  8. package/dist/{attribute-create-2PNEX4PM.js → attribute-create-Q3IEGYRG.js} +66 -45
  9. package/dist/{attribute-detail-3QBRIF6Q.js → attribute-detail-SDYWELHS.js} +26 -24
  10. package/dist/{attribute-edit-5G7P3LP2.js → attribute-edit-4YPWXZRX.js} +3 -3
  11. package/dist/{attribute-edit-possible-value-VQ7MEFZA.js → attribute-edit-possible-value-YHEWXK6L.js} +3 -3
  12. package/dist/{attribute-list-OHU2QMUG.js → attribute-list-HW3R6764.js} +20 -21
  13. package/dist/breadcrumb-CO5DVI72.js +26 -0
  14. package/dist/breadcrumb-RYIHOYZE.js +27 -0
  15. package/dist/{campaign-budget-edit-WKSYXTBX.js → campaign-budget-edit-N2WWGO2G.js} +1 -1
  16. package/dist/{campaign-configuration-ZTK46EB5.js → campaign-configuration-MFFZXUEN.js} +1 -1
  17. package/dist/{campaign-create-VFFIIRE4.js → campaign-create-NMIOUGXQ.js} +3 -3
  18. package/dist/{campaign-detail-AZKBPDLC.js → campaign-detail-EAARQB3E.js} +23 -24
  19. package/dist/{campaign-edit-ZGLDY4X4.js → campaign-edit-PA7FGIY3.js} +1 -1
  20. package/dist/{categories-metadata-YZUP43OH.js → categories-metadata-INVMU224.js} +21 -22
  21. package/dist/{category-create-2MRYTSYM.js → category-create-AR33DJYX.js} +8 -5
  22. package/dist/{category-detail-PBGZSZRK.js → category-detail-ABK4MEZP.js} +29 -28
  23. package/dist/{category-edit-QLOS2LBA.js → category-edit-XKANIIH5.js} +3 -3
  24. package/dist/category-icon-edit-4GXAK4JZ.js +117 -0
  25. package/dist/{category-list-U7ZQBSZN.js → category-list-PFOINLTU.js} +7 -4
  26. package/dist/category-media-7SLAXXXM.js +654 -0
  27. package/dist/{category-organize-TIKTYJFZ.js → category-organize-U6UO35Y3.js} +2 -2
  28. package/dist/{category-products-4V2CKLVW.js → category-products-HTNBFHSW.js} +26 -27
  29. package/dist/{chunk-3JSAS7QP.js → chunk-22EOFXNK.js} +16 -0
  30. package/dist/{chunk-EREXPX6I.js → chunk-2KPITPB7.js} +23 -37
  31. package/dist/{chunk-BVZAGCTV.js → chunk-2L4W75VS.js} +3 -3
  32. package/dist/{chunk-26UTIAAZ.js → chunk-32URSQ4F.js} +1 -1
  33. package/dist/{chunk-CKACZXMP.js → chunk-3FN3YH2F.js} +4 -4
  34. package/dist/{chunk-5POK3PM3.js → chunk-3JN4WUVU.js} +4 -8
  35. package/dist/{chunk-EJTB2SLE.js → chunk-3LYOKDUA.js} +1 -1
  36. package/dist/{chunk-VKOE5J66.js → chunk-3XOE4NV5.js} +11 -2
  37. package/dist/{chunk-XODRTI2W.js → chunk-47TXYMFT.js} +1 -1
  38. package/dist/chunk-4FHHNYIV.js +280 -0
  39. package/dist/{chunk-Q6I2IKJB.js → chunk-4GRFDNQQ.js} +2 -2
  40. package/dist/{chunk-2LQ5SCPB.js → chunk-4O7GPTNJ.js} +19 -7
  41. package/dist/{chunk-ZHOI4QMK.js → chunk-4OEYCLBE.js} +1 -1
  42. package/dist/{chunk-HDRFPI6V.js → chunk-4UWPTSZK.js} +346 -424
  43. package/dist/{chunk-637OFDFC.js → chunk-5NQUJQXX.js} +243 -78
  44. package/dist/{chunk-IRTI3AS3.js → chunk-5T45PYWI.js} +4 -4
  45. package/dist/{chunk-GJ6WPZQG.js → chunk-67RX3M6X.js} +158 -27
  46. package/dist/{chunk-DZIXC7OE.js → chunk-6FLSBL4Q.js} +30 -85
  47. package/dist/{chunk-3EDQIZV6.js → chunk-6LG3VL3Q.js} +2 -2
  48. package/dist/{chunk-2S6VXFBZ.js → chunk-6PTZK4CH.js} +4 -4
  49. package/dist/{chunk-TITPJHIL.js → chunk-6YPV4T3R.js} +1 -1
  50. package/dist/{chunk-DKMBAZ5P.js → chunk-7IVRL4AF.js} +7 -7
  51. package/dist/{chunk-G4PROEJI.js → chunk-7ZL46D3W.js} +4 -4
  52. package/dist/{chunk-HR7TFO2X.js → chunk-A3IFGUDD.js} +3 -3
  53. package/dist/{chunk-P25PIADJ.js → chunk-AH3KBVKC.js} +1 -1
  54. package/dist/{chunk-UXD3VNBO.js → chunk-AJLGY3LQ.js} +1 -2
  55. package/dist/{chunk-CMHI2RPL.js → chunk-AKSUGT5I.js} +21 -0
  56. package/dist/{chunk-6LZAVEHW.js → chunk-ARN66CDK.js} +3 -3
  57. package/dist/{chunk-WYA62MUL.js → chunk-AROCMF45.js} +1 -1
  58. package/dist/chunk-AWLDIHXR.js +204 -0
  59. package/dist/{chunk-BHOZKBYY.js → chunk-B5OMHYJ5.js} +6 -4
  60. package/dist/chunk-BN6OOLJA.js +358 -0
  61. package/dist/{chunk-LYZT5REU.js → chunk-C4XKPQ6T.js} +14 -1
  62. package/dist/{chunk-NQBSSM5V.js → chunk-CKQPO2SN.js} +2 -2
  63. package/dist/{chunk-BGGUVHDG.js → chunk-CPWOVYZE.js} +604 -744
  64. package/dist/{chunk-54RTJBYO.js → chunk-DGCPYCHU.js} +8 -63
  65. package/dist/{chunk-HLPCO2OQ.js → chunk-EAC3J2Z4.js} +5 -5
  66. package/dist/{chunk-JQV7CXEC.js → chunk-EDDKIVMF.js} +17 -2
  67. package/dist/chunk-EG45GIE3.js +368 -0
  68. package/dist/{chunk-TP7L6M7V.js → chunk-FBD7WJPO.js} +1 -1
  69. package/dist/{chunk-K4TGNN4P.js → chunk-FCLS6CKW.js} +2 -2
  70. package/dist/{chunk-FTAR3BDS.js → chunk-FJHAAROU.js} +1 -1
  71. package/dist/chunk-FNGPOGDR.js +213 -0
  72. package/dist/{chunk-4LXBQTFN.js → chunk-FREUYHMS.js} +1 -1
  73. package/dist/{chunk-Q2QFNTNX.js → chunk-FWWPSH6V.js} +1 -1
  74. package/dist/{chunk-PXTJJQKJ.js → chunk-FYKG35MR.js} +1 -1
  75. package/dist/{chunk-BAYORQYD.js → chunk-FZHLRCBV.js} +4 -4
  76. package/dist/{chunk-AB2LHP3M.js → chunk-G66KMUI5.js} +1 -1
  77. package/dist/{chunk-GNLPUGYK.js → chunk-GHGOOZEL.js} +2 -2
  78. package/dist/{chunk-ZSFJVRRS.js → chunk-GQUGCSJV.js} +2 -2
  79. package/dist/chunk-GVEF6UDT.js +8 -0
  80. package/dist/{chunk-V6OGMYAI.js → chunk-HHW4PPNH.js} +159 -169
  81. package/dist/{chunk-GKW445WA.js → chunk-IHTQOPB6.js} +13 -187
  82. package/dist/{chunk-6MJ6ZSJF.js → chunk-IO5S4RFO.js} +6 -6
  83. package/dist/{chunk-DRJAKRTI.js → chunk-ISS4LS3E.js} +1 -1
  84. package/dist/{chunk-JQBSPUH2.js → chunk-J3AMUGGZ.js} +14 -1
  85. package/dist/{chunk-3IVTUFBM.js → chunk-JAPKOO4T.js} +1 -1
  86. package/dist/chunk-JEJQKTZO.js +191 -0
  87. package/dist/{chunk-Y2M536WR.js → chunk-JHBNG7OD.js} +17 -0
  88. package/dist/{chunk-N2LH7A4X.js → chunk-JR4T4OQU.js} +10 -10
  89. package/dist/{chunk-WKCYMDTV.js → chunk-JRLDKKCM.js} +3 -3
  90. package/dist/{chunk-XFQH5HPP.js → chunk-JZBVDH6A.js} +3 -3
  91. package/dist/{chunk-YZW5JD5A.js → chunk-KAAUSK5T.js} +119 -184
  92. package/dist/{chunk-YGRTRAWX.js → chunk-KDE4HKH2.js} +1 -0
  93. package/dist/{chunk-SRDK3XX7.js → chunk-KNB55WE4.js} +2 -2
  94. package/dist/{chunk-QABGBGAE.js → chunk-KNZ6ICKB.js} +6 -6
  95. package/dist/{chunk-H5PYBIOZ.js → chunk-KYFWVLWO.js} +1 -1
  96. package/dist/chunk-KZB7LCF2.js +82 -0
  97. package/dist/{chunk-BE6JLTMI.js → chunk-L5Z4JGRD.js} +1 -1
  98. package/dist/{chunk-CKNQJPAG.js → chunk-LEHS6RED.js} +4 -2
  99. package/dist/{chunk-FB7DDNCA.js → chunk-LHVXXHPO.js} +1 -1
  100. package/dist/{chunk-UPNMDPFX.js → chunk-LLHYICP5.js} +18 -6
  101. package/dist/{chunk-FFNSWUDC.js → chunk-LNPJFQWA.js} +11 -4
  102. package/dist/{chunk-YGAX72XV.js → chunk-LO2ZWQGL.js} +0 -2
  103. package/dist/{chunk-3P4VTL4S.js → chunk-LTAQZW2L.js} +6 -6
  104. package/dist/{chunk-S72BD7TM.js → chunk-LYCKVPWQ.js} +12 -4
  105. package/dist/{chunk-2YYXP6XI.js → chunk-M2E3PKA4.js} +196 -212
  106. package/dist/{chunk-YLKG7W4P.js → chunk-M3YII6OB.js} +73 -20
  107. package/dist/{chunk-PQI4UJ6F.js → chunk-MASXQMJY.js} +3 -3
  108. package/dist/{chunk-H5EOOXPA.js → chunk-N6R2WOJ7.js} +1 -2
  109. package/dist/{chunk-ZF3WBVOB.js → chunk-NEZ35LWM.js} +3 -3
  110. package/dist/{chunk-QIU6DJY6.js → chunk-NZOB3LPA.js} +1 -1
  111. package/dist/{chunk-S5BJ5CMF.js → chunk-OKWGPKVK.js} +1 -1
  112. package/dist/{chunk-6GWCDARX.js → chunk-ORENI3LP.js} +3 -3
  113. package/dist/{chunk-KXIA66EJ.js → chunk-PAEKCYFU.js} +7 -3
  114. package/dist/{chunk-AXTQMIIK.js → chunk-PJR6W35H.js} +8 -27
  115. package/dist/chunk-PN5C4AND.js +115 -0
  116. package/dist/{chunk-UXQAHUGZ.js → chunk-POSHDM4L.js} +1 -1
  117. package/dist/{chunk-6FIU2V6Y.js → chunk-PT3DTHQK.js} +1 -1
  118. package/dist/chunk-PZ27H46M.js +358 -0
  119. package/dist/{chunk-XZZTC7E5.js → chunk-QKJGSZI2.js} +1 -1
  120. package/dist/{chunk-N7KTSXS5.js → chunk-QPLEFEOZ.js} +1 -1
  121. package/dist/chunk-QR3GYYX6.js +0 -0
  122. package/dist/{chunk-3B6MTW5G.js → chunk-QUHSHIAC.js} +3 -0
  123. package/dist/{chunk-PRBE5CM3.js → chunk-QYDWMBEX.js} +31 -0
  124. package/dist/{chunk-BCVUMATY.js → chunk-R2UDZINP.js} +216 -40
  125. package/dist/{chunk-OSEIN4Y2.js → chunk-RDTFLHYO.js} +2 -2
  126. package/dist/{chunk-B3EEDC47.js → chunk-RMAQKNBA.js} +10 -94
  127. package/dist/{chunk-ED7XNGZD.js → chunk-RWW3TAJQ.js} +4 -4
  128. package/dist/chunk-RXRDZ47F.js +103 -0
  129. package/dist/chunk-S6A4FVM2.js +170 -0
  130. package/dist/{chunk-XQBPW3A4.js → chunk-S6E7XAWX.js} +2 -2
  131. package/dist/{chunk-CBGXKU7Z.js → chunk-SEY52XON.js} +4 -4
  132. package/dist/{chunk-U2ZFCAPX.js → chunk-SITRHMZZ.js} +11 -8
  133. package/dist/{chunk-RQPDD3RI.js → chunk-SKKF3CU6.js} +1 -1
  134. package/dist/{chunk-BGQ7H2KL.js → chunk-SMQM5N45.js} +2 -2
  135. package/dist/{chunk-BLYJZMNE.js → chunk-TLOJG7LK.js} +2 -2
  136. package/dist/chunk-UIVWOKWT.js +63 -0
  137. package/dist/chunk-UKLRBS4W.js +61 -0
  138. package/dist/{chunk-WS63IRBI.js → chunk-UUTACMA5.js} +6 -6
  139. package/dist/{chunk-BECQJZQ4.js → chunk-V3ATA433.js} +17 -8
  140. package/dist/{chunk-4KX6CBJ4.js → chunk-VSLHL2AZ.js} +2 -0
  141. package/dist/{chunk-WDH5C2NS.js → chunk-WJGABDWC.js} +1 -1
  142. package/dist/{chunk-A772RAKB.js → chunk-XGUUM3S6.js} +1 -1
  143. package/dist/{chunk-I5THQVYP.js → chunk-XIFE4VUR.js} +1 -1
  144. package/dist/chunk-XVSJKCCQ.js +142 -0
  145. package/dist/chunk-Y3RABQC4.js +33 -0
  146. package/dist/{chunk-HRGC5JHU.js → chunk-YUECTKEY.js} +107 -411
  147. package/dist/{chunk-S4SVK5DE.js → chunk-YVLANFBK.js} +29 -1
  148. package/dist/{chunk-NXLOYMWF.js → chunk-Z7AXFQPD.js} +8 -8
  149. package/dist/{chunk-OHOWEMHO.js → chunk-ZIFHQXP3.js} +31 -25
  150. package/dist/{chunk-U7AZOXPV.js → chunk-ZLETFDWJ.js} +205 -110
  151. package/dist/{collection-add-products-33MYCTBF.js → collection-add-products-CKF2VFVK.js} +25 -26
  152. package/dist/{collection-create-HUNYHKUJ.js → collection-create-UNGPKT7H.js} +86 -15
  153. package/dist/{collection-detail-ACN5GFHC.js → collection-detail-36QTD3ZU.js} +27 -26
  154. package/dist/{collection-edit-OQGYTQDO.js → collection-edit-LQEQ6YGD.js} +3 -3
  155. package/dist/collection-icon-edit-V4SNBMD5.js +117 -0
  156. package/dist/{collection-list-M4MFNMXL.js → collection-list-UN7C36DU.js} +32 -30
  157. package/dist/collection-media-ESJUYVF7.js +654 -0
  158. package/dist/{collection-metadata-47N7TUOH.js → collection-metadata-6SD67JUV.js} +21 -22
  159. package/dist/commission-rule-commission-edit-TA3H3EEN.js +196 -0
  160. package/dist/commission-rule-create-O7Z25SC7.js +412 -0
  161. package/dist/commission-rule-detail-I7LVSNAM.js +45 -0
  162. package/dist/commission-rule-edit-YSHDTYZY.js +342 -0
  163. package/dist/{product-brand-list-ZBPBSRQN.js → commissions-list-OUGVPED6.js} +12 -7
  164. package/dist/{constants-26tEckuq.d.ts → constants-Bahlh59D.d.ts} +8 -4
  165. package/dist/{customer-create-QHA4KM6N.js → customer-create-HZXLOIZH.js} +2 -2
  166. package/dist/{customer-create-address-TYWVWNUE.js → customer-create-address-AEZNVQOG.js} +2 -2
  167. package/dist/{customer-detail-D5SSLNFT.js → customer-detail-3OQ7RSDN.js} +24 -29
  168. package/dist/{customer-edit-JZ4PQTIN.js → customer-edit-MMRTWOAF.js} +2 -2
  169. package/dist/customer-edit-address-AEYX2LMP.js +302 -0
  170. package/dist/{customer-group-add-customers-VJUBEN7M.js → customer-group-add-customers-4OAYSXWK.js} +3 -3
  171. package/dist/{customer-group-create-NA2UKCF6.js → customer-group-create-25JT74S3.js} +2 -2
  172. package/dist/{customer-group-detail-KRT7E2JA.js → customer-group-detail-CH4UIK3X.js} +21 -22
  173. package/dist/{customer-group-edit-3O6HAYYN.js → customer-group-edit-AAI47MUL.js} +2 -2
  174. package/dist/{customer-group-list-KKDIESQ6.js → customer-group-list-777C2B57.js} +22 -23
  175. package/dist/{customer-group-metadata-J6JY7DZ3.js → customer-group-metadata-ELFKJMYK.js} +21 -22
  176. package/dist/{customer-list-MB6WZFMA.js → customer-list-U7VFBV7E.js} +3 -3
  177. package/dist/{customer-metadata-AH2LBK4T.js → customer-metadata-4H6ADARR.js} +21 -22
  178. package/dist/{customers-add-customer-group-AHGAPEIS.js → customers-add-customer-group-AZ3ILZMA.js} +22 -23
  179. package/dist/{edit-inventory-item-ADNLKLCN.js → edit-inventory-item-NL5WNNI3.js} +20 -21
  180. package/dist/{edit-inventory-item-attributes-XVR2WLDU.js → edit-inventory-item-attributes-2JEH72WW.js} +20 -21
  181. package/dist/{edit-reservation-HQQL42QX.js → edit-reservation-TBZL2REV.js} +3 -3
  182. package/dist/{edit-rules-YMKM5JPI.js → edit-rules-XYTK7DQ2.js} +21 -22
  183. package/dist/global-commission-edit-LCD6JJUX.js +194 -0
  184. package/dist/index.d.ts +2 -2
  185. package/dist/index.js +626 -632
  186. package/dist/{inventory-create-IVESXFSV.js → inventory-create-7RQSCNCQ.js} +24 -25
  187. package/dist/{inventory-detail-TINIAFVB.js → inventory-detail-W7BGKWKL.js} +20 -21
  188. package/dist/{inventory-list-YLIAKQXI.js → inventory-list-SCRYOBZV.js} +2 -2
  189. package/dist/{inventory-metadata-6INRH2JC.js → inventory-metadata-ZGLTDSQB.js} +21 -22
  190. package/dist/{inventory-stock-6YGTATID.js → inventory-stock-US7LGBC4.js} +204 -43
  191. package/dist/loader-S77URTQS.js +32 -0
  192. package/dist/loader-XPJWDZU3.js +32 -0
  193. package/dist/{location-create-ZMNB7YKR.js → location-create-SO2CURZL.js} +1 -1
  194. package/dist/{location-detail-EK2S7WOK.js → location-detail-GAINHCV5.js} +21 -22
  195. package/dist/{location-edit-DMBF3CYZ.js → location-edit-XA53657R.js} +1 -1
  196. package/dist/{location-fulfillment-providers-V26OWDAI.js → location-fulfillment-providers-6DFBFALS.js} +25 -26
  197. package/dist/{location-list-IV323QW2.js → location-list-QXIHD6NJ.js} +21 -22
  198. package/dist/{location-sales-channels-EYUXMTW7.js → location-sales-channels-46SPET7R.js} +7 -6
  199. package/dist/{location-service-zone-create-ZS3UWJAA.js → location-service-zone-create-IOB7DWBR.js} +1 -1
  200. package/dist/{location-service-zone-edit-MTGU2O4C.js → location-service-zone-edit-X37BNDRP.js} +1 -1
  201. package/dist/{location-service-zone-manage-areas-S7QZTIFT.js → location-service-zone-manage-areas-CWWABV5M.js} +1 -1
  202. package/dist/{location-service-zone-shipping-option-create-36JZFRGY.js → location-service-zone-shipping-option-create-AUNZVIGU.js} +24 -25
  203. package/dist/{location-service-zone-shipping-option-edit-3PGSNKYT.js → location-service-zone-shipping-option-edit-WRSLBO23.js} +4 -4
  204. package/dist/{location-service-zone-shipping-option-pricing-JLGCOZGS.js → location-service-zone-shipping-option-pricing-FZNCTVT6.js} +8 -8
  205. package/dist/{login-6L3RMREO.js → login-NFPUZDAL.js} +19 -20
  206. package/dist/{manage-locations-CFTM6DNH.js → manage-locations-WW35SVOX.js} +1 -1
  207. package/dist/{marketplace-add-currencies-6ANNBGZM.js → marketplace-add-currencies-YVJA6G6V.js} +1 -1
  208. package/dist/{marketplace-detail-BAU2MEJT.js → marketplace-detail-M7DWNMIH.js} +21 -22
  209. package/dist/{marketplace-edit-6Q3G2OY5.js → marketplace-edit-QNFCTDUC.js} +1 -1
  210. package/dist/{marketplace-metadata-KRCGKOCA.js → marketplace-metadata-FYJ7TJLZ.js} +22 -23
  211. package/dist/offer-detail-page-2DG3W7VG.js +572 -0
  212. package/dist/offer-variant-detail-page-U4LDYFE3.js +143 -0
  213. package/dist/{offers-J2SFSNF3.js → offers-PYM6LQSX.js} +287 -124
  214. package/dist/{order-create-claim-RMDDCUZ6.js → order-create-claim-2MO3LM6J.js} +271 -246
  215. package/dist/{order-create-edit-PQ54JFZZ.js → order-create-edit-UFD26FE2.js} +206 -111
  216. package/dist/{order-create-exchange-T6DBVS75.js → order-create-exchange-4PWNGE6U.js} +279 -252
  217. package/dist/{order-create-refund-OW3MIXBY.js → order-create-refund-A4AXOFZC.js} +24 -25
  218. package/dist/{order-create-return-YCX6C3VP.js → order-create-return-Y7QS52UL.js} +46 -19
  219. package/dist/{order-detail-2OAEGBQG.js → order-detail-HPYAUA2N.js} +30 -32
  220. package/dist/{order-edit-billing-address-VGZBQHF5.js → order-edit-billing-address-R7DOKCV5.js} +22 -23
  221. package/dist/{order-edit-email-OOCXVRET.js → order-edit-email-44O3ARQ4.js} +21 -22
  222. package/dist/{order-edit-shipping-address-B4F3E5RE.js → order-edit-shipping-address-UI2AHBXW.js} +21 -22
  223. package/dist/{order-list-ERQWQ6UI.js → order-list-IVXCYRGB.js} +9 -9
  224. package/dist/{order-metadata-AN6MPHHT.js → order-metadata-3U5KT3MW.js} +21 -22
  225. package/dist/{order-request-transfer-A2NJSQ4H.js → order-request-transfer-OM3BPIWZ.js} +21 -22
  226. package/dist/pages/index.d.ts +159 -340
  227. package/dist/pages/index.js +191 -194
  228. package/dist/{price-list-configuration-XAHXLCXR.js → price-list-configuration-6LD6DTEQ.js} +8 -7
  229. package/dist/{price-list-create-XCP32SJZ.js → price-list-create-SR24HYH3.js} +32 -33
  230. package/dist/{price-list-detail-26RLU4G3.js → price-list-detail-QIMJQ6DD.js} +26 -27
  231. package/dist/{price-list-edit-ZVLD4M5T.js → price-list-edit-MEM47NGY.js} +4 -4
  232. package/dist/{price-list-list-ER4TOZTY.js → price-list-list-GIVZGIYW.js} +5 -5
  233. package/dist/{price-list-prices-add-H4E2IVBC.js → price-list-prices-add-VE5RTT5O.js} +29 -30
  234. package/dist/{price-list-prices-edit-WHCIGSB2.js → price-list-prices-edit-R52K4MBL.js} +22 -23
  235. package/dist/{product-add-existing-attributes-MSJD3GOP.js → product-add-existing-attributes-AC4643LI.js} +66 -30
  236. package/dist/{product-attributes-MHRXZK5S.js → product-attributes-2LAKXXX6.js} +3 -3
  237. package/dist/{product-bulk-edit-J6ZP7GGM.js → product-bulk-edit-G7QTYQHG.js} +6 -8
  238. package/dist/{product-create-WOCQFTMZ.js → product-create-R5HJ2GYT.js} +32 -33
  239. package/dist/{product-create-attribute-ZT3VZDNZ.js → product-create-attribute-ELMLVRUB.js} +75 -47
  240. package/dist/product-create-variant-FQSREC66.js +20 -0
  241. package/dist/{product-detail-AOMYROBE.js → product-detail-77DV4TAW.js} +26 -26
  242. package/dist/{product-edit-EKAZRIJ6.js → product-edit-3Q5E5E5L.js} +3 -5
  243. package/dist/product-edit-attribute-WW4LCYD7.js +175 -0
  244. package/dist/{product-list-J7RDCTOW.js → product-list-4JGMM4AF.js} +26 -27
  245. package/dist/{product-media-KREKRDOC.js → product-media-OL4ETNFW.js} +9 -8
  246. package/dist/{product-metadata-O3BAEUYB.js → product-metadata-H53ZIWBS.js} +22 -23
  247. package/dist/{product-organization-SBQY44IF.js → product-organization-ILQCXL7B.js} +5 -48
  248. package/dist/{product-sales-channels-TFOGXCMI.js → product-sales-channels-7QCAABL4.js} +7 -6
  249. package/dist/{product-shipping-profile-E4HJ4EYW.js → product-shipping-profile-4K7LTJ5K.js} +3 -3
  250. package/dist/{product-tag-create-7JBM6I3V.js → product-tag-create-4OT4PMCG.js} +20 -21
  251. package/dist/{product-tag-detail-FCVZLJ7N.js → product-tag-detail-NVTDW7BR.js} +43 -42
  252. package/dist/{product-tag-edit-O2ADFDD6.js → product-tag-edit-RXF6ZZ6E.js} +20 -21
  253. package/dist/{product-tag-list-N44OW4BR.js → product-tag-list-T6BDTH24.js} +43 -42
  254. package/dist/{product-tag-metadata-SBOUTUXY.js → product-tag-metadata-HN5QRCYY.js} +21 -22
  255. package/dist/{product-type-create-RHG4KEAV.js → product-type-create-A7SUR2OX.js} +1 -1
  256. package/dist/{product-type-detail-II4RYMUP.js → product-type-detail-KOGHJIMG.js} +27 -28
  257. package/dist/{product-type-edit-CABB7R7Y.js → product-type-edit-DM4U2VB4.js} +1 -1
  258. package/dist/{product-type-metadata-KN5OXR6J.js → product-type-metadata-QUCMB3ZJ.js} +23 -24
  259. package/dist/{product-variant-detail-H2YRFDAU.js → product-variant-detail-6XBLXEXQ.js} +24 -34
  260. package/dist/{product-variant-edit-3HKWOCHQ.js → product-variant-edit-3KAFS4OC.js} +171 -262
  261. package/dist/{product-variant-metadata-QESZ7VS2.js → product-variant-metadata-N5H2VPGQ.js} +21 -22
  262. package/dist/{profile-edit-HQTWYWZ7.js → profile-edit-H5QZ66PF.js} +1 -1
  263. package/dist/{promotion-add-campaign-O3RTMS3W.js → promotion-add-campaign-V3RJ634F.js} +4 -4
  264. package/dist/{promotion-create-TGC6BVWF.js → promotion-create-Y2XVWGAT.js} +25 -26
  265. package/dist/{promotion-detail-VYIXZMMD.js → promotion-detail-SCS7MWD7.js} +22 -23
  266. package/dist/{promotion-edit-details-TKRC5HES.js → promotion-edit-details-NWOBD3YD.js} +1 -1
  267. package/dist/{promotion-list-C3SKV5BJ.js → promotion-list-ZFF4E4ZW.js} +4 -4
  268. package/dist/{refund-reason-create-2KEQFOID.js → refund-reason-create-CIXYHBRC.js} +20 -21
  269. package/dist/{refund-reason-edit-E7CB7SM3.js → refund-reason-edit-AXMEDPRT.js} +20 -21
  270. package/dist/{refund-reason-list-CB2FZPDK.js → refund-reason-list-F56TJAGR.js} +38 -37
  271. package/dist/{region-add-countries-COXN4LP3.js → region-add-countries-5I2UDAJU.js} +1 -1
  272. package/dist/{region-create-P66Q65XY.js → region-create-SIB6WZPV.js} +1 -1
  273. package/dist/{region-edit-XFE54SAO.js → region-edit-YQZCZIX3.js} +1 -1
  274. package/dist/region-list-2XXKCDDX.js +1 -1
  275. package/dist/{region-metadata-723RQGHS.js → region-metadata-QGH7IBQU.js} +24 -25
  276. package/dist/{reservation-create-Y3HG4AZA.js → reservation-create-F6YDCLCG.js} +3 -3
  277. package/dist/{reservation-detail-HQMADZ56.js → reservation-detail-7TL2OFEM.js} +20 -21
  278. package/dist/{reservation-list-YKC3JJ6K.js → reservation-list-RGD6O4RY.js} +3 -3
  279. package/dist/{reservation-metadata-UG4YTEMY.js → reservation-metadata-UXACXYO6.js} +21 -22
  280. package/dist/{reset-password-2VNU52CE.js → reset-password-Y7HXY2NX.js} +1 -1
  281. package/dist/{return-reason-create-KED7446I.js → return-reason-create-G7ON7U3A.js} +1 -1
  282. package/dist/{return-reason-edit-57EU3XSE.js → return-reason-edit-77RVRFF6.js} +1 -1
  283. package/dist/{return-reason-list-47DFQ3NX.js → return-reason-list-EJ5DLDR2.js} +21 -19
  284. package/dist/{sales-channel-add-products-KKU2AR5R.js → sales-channel-add-products-7ERGMGJ7.js} +25 -26
  285. package/dist/{sales-channel-create-BSNCLZWR.js → sales-channel-create-TAKKGGK3.js} +3 -3
  286. package/dist/{sales-channel-detail-5WPD5VKT.js → sales-channel-detail-LWVBJCJQ.js} +25 -26
  287. package/dist/{sales-channel-edit-FUDXMZYV.js → sales-channel-edit-HEESIKZH.js} +3 -3
  288. package/dist/{sales-channel-list-GYLGH4U7.js → sales-channel-list-I72W2XTH.js} +24 -24
  289. package/dist/{sales-channel-metadata-H6RSHKVP.js → sales-channel-metadata-RD6QDHRW.js} +21 -22
  290. package/dist/{shipping-option-type-create-QAOW7753.js → shipping-option-type-create-LXYYXNSQ.js} +20 -21
  291. package/dist/{shipping-option-type-detail-QGWVDTDU.js → shipping-option-type-detail-2IQSQ5BQ.js} +21 -22
  292. package/dist/{shipping-option-type-edit-WXYBDRNY.js → shipping-option-type-edit-4XKXWCN3.js} +20 -21
  293. package/dist/{shipping-option-type-list-YSWP6DSC.js → shipping-option-type-list-QA2TA7XQ.js} +21 -22
  294. package/dist/{shipping-profile-create-UJNCCKKK.js → shipping-profile-create-JYRXTOBF.js} +1 -1
  295. package/dist/{shipping-profile-metadata-UE53IA3J.js → shipping-profile-metadata-PVNYV7DY.js} +22 -23
  296. package/dist/{store-address-edit-PKIBRFH4.js → store-address-edit-SWLACMPC.js} +1 -1
  297. package/dist/{store-bulk-edit-6SQX7OV2.js → store-bulk-edit-JAOT5GY2.js} +3 -3
  298. package/dist/{store-closure-edit-OK7MTUHY.js → store-closure-edit-Y3FOCDRX.js} +1 -1
  299. package/dist/{store-create-WNFRHXWR.js → store-create-F6W5CSH2.js} +24 -25
  300. package/dist/{store-details-RS3SPTXC.js → store-details-CSHIHCVO.js} +33 -48
  301. package/dist/{store-edit-34CPYPM3.js → store-edit-YEWQFHHM.js} +8 -8
  302. package/dist/{store-list-Q5X3JB3R.js → store-list-FGLLHZPD.js} +28 -29
  303. package/dist/{store-member-invite-7PAPHDOK.js → store-member-invite-MNRTPHUB.js} +2 -2
  304. package/dist/{store-payment-details-edit-HOGHZMZC.js → store-payment-details-edit-DF2WURRI.js} +1 -1
  305. package/dist/{store-professional-details-edit-DPJ4ZFDR.js → store-professional-details-edit-FPOLORSE.js} +1 -1
  306. package/dist/{tax-region-create-3KVECMFN.js → tax-region-create-YQ5YBOC3.js} +21 -22
  307. package/dist/{tax-region-detail-AOT4X4DZ.js → tax-region-detail-EU5U3SFN.js} +24 -25
  308. package/dist/{tax-region-edit-5T7VHKIA.js → tax-region-edit-XHO3ELVD.js} +20 -21
  309. package/dist/{tax-region-metadata-RSZCJGJT.js → tax-region-metadata-NYTCYO6D.js} +21 -22
  310. package/dist/{tax-region-province-create-OVLIZPNP.js → tax-region-province-create-SEPY4OAZ.js} +1 -1
  311. package/dist/{tax-region-province-detail-XEMIX5SQ.js → tax-region-province-detail-U4RULBEK.js} +23 -24
  312. package/dist/{tax-region-tax-override-create-KPFXMSPH.js → tax-region-tax-override-create-5MIAKHY6.js} +46 -47
  313. package/dist/{tax-region-tax-override-edit-RMMHCFXN.js → tax-region-tax-override-edit-EHLIO56A.js} +48 -49
  314. package/dist/{tax-region-tax-rate-create-KDN6G52Y.js → tax-region-tax-rate-create-ZITIAU3K.js} +1 -1
  315. package/dist/{tax-region-tax-rate-edit-D4BFDDJ7.js → tax-region-tax-rate-edit-RQLUPHD4.js} +1 -1
  316. package/dist/{user-detail-W7DGVXDZ.js → user-detail-6CCQQPFR.js} +1 -1
  317. package/dist/{user-edit-MXS2DV37.js → user-edit-DVIMNODF.js} +1 -1
  318. package/dist/{user-invite-HLZJ7FST.js → user-invite-NJZWT4M5.js} +1 -1
  319. package/dist/{user-metadata-3AFZX3DM.js → user-metadata-VCWUSKHV.js} +21 -22
  320. package/package.json +2 -2
  321. package/dist/[id]-YI7UXOO2.js +0 -499
  322. package/dist/chunk-AKTAFKIU.js +0 -228
  323. package/dist/chunk-ALATTLBM.js +0 -390
  324. package/dist/chunk-IEPNHH7Z.js +0 -170
  325. package/dist/chunk-J65IXAGI.js +0 -292
  326. package/dist/chunk-QSGR43JM.js +0 -30
  327. package/dist/chunk-RQ4NMLSS.js +0 -8
  328. package/dist/chunk-RXM4B6HR.js +0 -8
  329. package/dist/chunk-SWL7ZCP3.js +0 -11
  330. package/dist/chunk-TIMU6K63.js +0 -207
  331. package/dist/chunk-TTERSO37.js +0 -652
  332. package/dist/chunk-U7XILJH6.js +0 -423
  333. package/dist/chunk-UM7ZR3VU.js +0 -14
  334. package/dist/chunk-V5XHY5LP.js +0 -39
  335. package/dist/chunk-WV4SQ57G.js +0 -141
  336. package/dist/chunk-ZZ3XFIEM.js +0 -84
  337. package/dist/commission-rate-create-DCMGZS3D.js +0 -783
  338. package/dist/commission-rate-detail-LAZZLZVX.js +0 -86
  339. package/dist/commission-rate-edit-VL4TUE3M.js +0 -768
  340. package/dist/commission-rate-list-Y5XLEO67.js +0 -26
  341. package/dist/loader-6KDBTRVR.js +0 -26
  342. package/dist/order-allocate-items-DJ2V4B7A.js +0 -563
  343. package/dist/order-create-fulfillment-SMSUJSBN.js +0 -644
  344. package/dist/order-create-shipment-5ZAWH5CZ.js +0 -215
  345. package/dist/order-receive-return-DZ4IUOHY.js +0 -563
  346. package/dist/product-brand-create-B3ZJGHUQ.js +0 -171
  347. package/dist/product-brand-detail-QBWHNBYM.js +0 -100
  348. package/dist/product-brand-edit-3TQDHZNN.js +0 -179
  349. package/dist/product-brand-metadata-EAMW6PQJ.js +0 -87
  350. package/dist/product-create-option-NIAP75EE.js +0 -130
  351. package/dist/product-create-variant-QODC7MZ7.js +0 -60
  352. package/dist/product-edit-option-OZUZGMIM.js +0 -166
  353. package/dist/product-prices-R5JOHVGS.js +0 -267
  354. package/dist/product-stock-EIP2XJUR.js +0 -545
  355. package/dist/product-variant-manage-inventory-items-Q5MJG3EJ.js +0 -337
  356. package/dist/{chunk-WVKVPGJW.js → chunk-FNKBJCNF.js} +3 -3
@@ -18,22 +18,35 @@ import {
18
18
  useCancelClaim,
19
19
  useCancelClaimRequest,
20
20
  useClaims
21
- } from "./chunk-3EDQIZV6.js";
21
+ } from "./chunk-6LG3VL3Q.js";
22
22
  import {
23
23
  useCancelExchange,
24
24
  useCancelExchangeRequest,
25
25
  useExchanges
26
- } from "./chunk-GNLPUGYK.js";
26
+ } from "./chunk-GHGOOZEL.js";
27
+ import {
28
+ getReturnableQuantity,
29
+ useCancelReturn,
30
+ useCancelReturnRequest,
31
+ useReturns
32
+ } from "./chunk-IHTQOPB6.js";
27
33
  import {
28
34
  useCancelOrderEdit,
29
35
  useConfirmOrderEdit
30
- } from "./chunk-WS63IRBI.js";
36
+ } from "./chunk-UUTACMA5.js";
37
+ import {
38
+ getPaymentsFromOrder,
39
+ getReservationsLimitCount
40
+ } from "./chunk-3KOTDGC2.js";
31
41
  import {
32
42
  formatProvider
33
43
  } from "./chunk-VW56KWO2.js";
34
44
  import {
35
45
  formatCurrency
36
46
  } from "./chunk-XSX255FK.js";
47
+ import {
48
+ DEFAULT_FIELDS
49
+ } from "./chunk-JHBNG7OD.js";
37
50
  import {
38
51
  FulfillmentStatusCell,
39
52
  FulfillmentStatusHeader,
@@ -47,30 +60,15 @@ import {
47
60
  DateCell,
48
61
  DateHeader
49
62
  } from "./chunk-25LYVP3C.js";
50
- import {
51
- getPaymentsFromOrder,
52
- getReservationsLimitCount
53
- } from "./chunk-3KOTDGC2.js";
54
- import {
55
- getReturnableQuantity
56
- } from "./chunk-UM7ZR3VU.js";
57
- import {
58
- DEFAULT_FIELDS
59
- } from "./chunk-Y2M536WR.js";
60
- import {
61
- useCancelReturn,
62
- useCancelReturnRequest,
63
- useReturns
64
- } from "./chunk-GKW445WA.js";
65
- import {
66
- TextCell,
67
- TextHeader
68
- } from "./chunk-JHIMVLB2.js";
69
63
  import {
70
64
  getLocaleAmount,
71
65
  getStylizedAmount,
72
66
  isAmountLessThenRoundingError
73
67
  } from "./chunk-PXYDR7WQ.js";
68
+ import {
69
+ TextCell,
70
+ TextHeader
71
+ } from "./chunk-JHIMVLB2.js";
74
72
  import {
75
73
  _DataTable,
76
74
  useDataTable
@@ -87,29 +85,28 @@ import {
87
85
  import {
88
86
  useCapturePayment,
89
87
  useMarkPaymentCollectionAsPaid
90
- } from "./chunk-AXTQMIIK.js";
91
- import {
92
- useOrderGroupByOrderId
93
- } from "./chunk-VYMODH6P.js";
94
- import {
95
- useCustomer
96
- } from "./chunk-PRBE5CM3.js";
88
+ } from "./chunk-PJR6W35H.js";
97
89
  import {
98
90
  useStockLocation
99
91
  } from "./chunk-EPHVGD5Z.js";
92
+ import {
93
+ useReservationItems
94
+ } from "./chunk-XGUUM3S6.js";
100
95
  import {
101
96
  useCancelOrder,
102
- useCancelOrderFulfillment,
103
97
  useCancelOrderTransfer,
104
- useMarkOrderFulfillmentAsDelivered,
105
98
  useOrder,
106
99
  useOrderChanges,
100
+ useOrderCommissionLines,
107
101
  useOrderLineItems,
108
102
  useOrderPreview
109
- } from "./chunk-B3EEDC47.js";
103
+ } from "./chunk-RMAQKNBA.js";
110
104
  import {
111
- useReservationItems
112
- } from "./chunk-A772RAKB.js";
105
+ useOrderGroupByOrderId
106
+ } from "./chunk-VYMODH6P.js";
107
+ import {
108
+ useCustomer
109
+ } from "./chunk-QYDWMBEX.js";
113
110
  import {
114
111
  ActionMenu
115
112
  } from "./chunk-BDGZ4EQO.js";
@@ -1386,33 +1383,80 @@ var OrderActivitySection = ({ order }) => {
1386
1383
  ] });
1387
1384
  };
1388
1385
 
1386
+ // src/pages/orders/order-detail/components/order-commission-section/order-commission-section.tsx
1387
+ import { Container as Container6, Heading as Heading6, Text as Text7 } from "@medusajs/ui";
1388
+ import { useMemo as useMemo3 } from "react";
1389
+ import { useTranslation as useTranslation9 } from "react-i18next";
1390
+ import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
1391
+ var OrderCommissionSection = ({
1392
+ order
1393
+ }) => {
1394
+ const { t } = useTranslation9();
1395
+ const { commission_lines, isLoading } = useOrderCommissionLines(order.id);
1396
+ const itemTitleById = useMemo3(() => {
1397
+ const map = /* @__PURE__ */ new Map();
1398
+ order.items?.forEach((item) => {
1399
+ map.set(item.id, item.product_title ?? item.title);
1400
+ });
1401
+ return map;
1402
+ }, [order.items]);
1403
+ if (isLoading || !commission_lines.length) {
1404
+ return null;
1405
+ }
1406
+ const total = commission_lines.reduce(
1407
+ (acc, line) => acc + (line.amount ?? 0),
1408
+ 0
1409
+ );
1410
+ return /* @__PURE__ */ jsxs9(Container6, { className: "divide-y p-0", "data-testid": "order-commission-section", children: [
1411
+ /* @__PURE__ */ jsx9("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx9(Heading6, { level: "h2", children: t("fields.commission", "Commission") }) }),
1412
+ /* @__PURE__ */ jsx9("div", { className: "divide-y", children: commission_lines.map((line) => {
1413
+ const label = line.shipping_method_id ? t("fields.shipping") : itemTitleById.get(line.item_id ?? "") ?? line.code;
1414
+ return /* @__PURE__ */ jsxs9(
1415
+ "div",
1416
+ {
1417
+ className: "text-ui-fg-subtle grid grid-cols-2 items-center gap-4 px-6 py-4",
1418
+ children: [
1419
+ /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", children: label }),
1420
+ /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", className: "text-right", children: getLocaleAmount(line.amount, order.currency_code) })
1421
+ ]
1422
+ },
1423
+ line.id
1424
+ );
1425
+ }) }),
1426
+ /* @__PURE__ */ jsxs9("div", { className: "flex items-center justify-between px-6 py-4", children: [
1427
+ /* @__PURE__ */ jsx9(Text7, { size: "small", weight: "plus", leading: "compact", children: t("orders.commission.total", "Total") }),
1428
+ /* @__PURE__ */ jsx9(Text7, { size: "small", weight: "plus", leading: "compact", children: getLocaleAmount(total, order.currency_code) })
1429
+ ] })
1430
+ ] });
1431
+ };
1432
+
1389
1433
  // src/pages/orders/order-detail/components/order-customer-section/order-customer-section.tsx
1390
1434
  import { ArrowPath as ArrowPath2, CurrencyDollar, Envelope, FlyingBox } from "@medusajs/icons";
1391
- import { Container as Container6, Heading as Heading6 } from "@medusajs/ui";
1392
- import { useTranslation as useTranslation10 } from "react-i18next";
1435
+ import { Container as Container7, Heading as Heading7 } from "@medusajs/ui";
1436
+ import { useTranslation as useTranslation11 } from "react-i18next";
1393
1437
 
1394
1438
  // src/components/common/customer-info/customer-info.tsx
1395
- import { Avatar, Copy as Copy2, Text as Text7 } from "@medusajs/ui";
1396
- import { useTranslation as useTranslation9 } from "react-i18next";
1439
+ import { Avatar, Copy as Copy2, Text as Text8 } from "@medusajs/ui";
1440
+ import { useTranslation as useTranslation10 } from "react-i18next";
1397
1441
  import { Link } from "react-router-dom";
1398
- import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
1442
+ import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
1399
1443
  var ID = ({ data }) => {
1400
- const { t } = useTranslation9();
1444
+ const { t } = useTranslation10();
1401
1445
  const id = data.customer_id;
1402
1446
  const name = getOrderCustomer(data);
1403
1447
  const email = data.email;
1404
1448
  const fallback = (name || email || "").charAt(0).toUpperCase();
1405
- return /* @__PURE__ */ jsxs9("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
1406
- /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", weight: "plus", children: t("fields.id") }),
1407
- /* @__PURE__ */ jsx9(
1449
+ return /* @__PURE__ */ jsxs10("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
1450
+ /* @__PURE__ */ jsx10(Text8, { size: "small", leading: "compact", weight: "plus", children: t("fields.id") }),
1451
+ /* @__PURE__ */ jsx10(
1408
1452
  Link,
1409
1453
  {
1410
1454
  to: `/customers/${id}`,
1411
1455
  className: "focus:shadow-borders-focus rounded-[4px] outline-none transition-shadow",
1412
- children: /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-x-2 overflow-hidden", children: [
1413
- /* @__PURE__ */ jsx9(Avatar, { size: "2xsmall", fallback }),
1414
- /* @__PURE__ */ jsx9(
1415
- Text7,
1456
+ children: /* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-x-2 overflow-hidden", children: [
1457
+ /* @__PURE__ */ jsx10(Avatar, { size: "2xsmall", fallback }),
1458
+ /* @__PURE__ */ jsx10(
1459
+ Text8,
1416
1460
  {
1417
1461
  size: "small",
1418
1462
  leading: "compact",
@@ -1426,26 +1470,26 @@ var ID = ({ data }) => {
1426
1470
  ] });
1427
1471
  };
1428
1472
  var Company = ({ data }) => {
1429
- const { t } = useTranslation9();
1473
+ const { t } = useTranslation10();
1430
1474
  const company = data.shipping_address?.company || data.billing_address?.company;
1431
1475
  if (!company) {
1432
1476
  return null;
1433
1477
  }
1434
- return /* @__PURE__ */ jsxs9("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
1435
- /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", weight: "plus", children: t("fields.company") }),
1436
- /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", className: "truncate", children: company })
1478
+ return /* @__PURE__ */ jsxs10("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
1479
+ /* @__PURE__ */ jsx10(Text8, { size: "small", leading: "compact", weight: "plus", children: t("fields.company") }),
1480
+ /* @__PURE__ */ jsx10(Text8, { size: "small", leading: "compact", className: "truncate", children: company })
1437
1481
  ] });
1438
1482
  };
1439
1483
  var Contact = ({ data }) => {
1440
- const { t } = useTranslation9();
1484
+ const { t } = useTranslation10();
1441
1485
  const phone = data.shipping_address?.phone || data.billing_address?.phone;
1442
1486
  const email = data.email || "";
1443
- return /* @__PURE__ */ jsxs9("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
1444
- /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", weight: "plus", children: t("orders.customer.contactLabel") }),
1445
- /* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-y-2", children: [
1446
- /* @__PURE__ */ jsxs9("div", { className: "grid grid-cols-[1fr_20px] items-start gap-x-2", children: [
1447
- /* @__PURE__ */ jsx9(
1448
- Text7,
1487
+ return /* @__PURE__ */ jsxs10("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
1488
+ /* @__PURE__ */ jsx10(Text8, { size: "small", leading: "compact", weight: "plus", children: t("orders.customer.contactLabel") }),
1489
+ /* @__PURE__ */ jsxs10("div", { className: "flex flex-col gap-y-2", children: [
1490
+ /* @__PURE__ */ jsxs10("div", { className: "grid grid-cols-[1fr_20px] items-start gap-x-2", children: [
1491
+ /* @__PURE__ */ jsx10(
1492
+ Text8,
1449
1493
  {
1450
1494
  size: "small",
1451
1495
  leading: "compact",
@@ -1453,11 +1497,11 @@ var Contact = ({ data }) => {
1453
1497
  children: email
1454
1498
  }
1455
1499
  ),
1456
- /* @__PURE__ */ jsx9("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx9(Copy2, { content: email, className: "text-ui-fg-muted" }) })
1500
+ /* @__PURE__ */ jsx10("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx10(Copy2, { content: email, className: "text-ui-fg-muted" }) })
1457
1501
  ] }),
1458
- phone && /* @__PURE__ */ jsxs9("div", { className: "grid grid-cols-[1fr_20px] items-start gap-x-2", children: [
1459
- /* @__PURE__ */ jsx9(
1460
- Text7,
1502
+ phone && /* @__PURE__ */ jsxs10("div", { className: "grid grid-cols-[1fr_20px] items-start gap-x-2", children: [
1503
+ /* @__PURE__ */ jsx10(
1504
+ Text8,
1461
1505
  {
1462
1506
  size: "small",
1463
1507
  leading: "compact",
@@ -1465,7 +1509,7 @@ var Contact = ({ data }) => {
1465
1509
  children: phone
1466
1510
  }
1467
1511
  ),
1468
- /* @__PURE__ */ jsx9("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx9(Copy2, { content: phone, className: "text-ui-fg-muted" }) })
1512
+ /* @__PURE__ */ jsx10("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx10(Copy2, { content: phone, className: "text-ui-fg-muted" }) })
1469
1513
  ] })
1470
1514
  ] })
1471
1515
  ] });
@@ -1474,33 +1518,33 @@ var AddressPrint = ({
1474
1518
  address,
1475
1519
  type
1476
1520
  }) => {
1477
- const { t } = useTranslation9();
1478
- return /* @__PURE__ */ jsxs9("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
1479
- /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", weight: "plus", children: type === "shipping" ? t("addresses.shippingAddress.label") : t("addresses.billingAddress.label") }),
1480
- address ? /* @__PURE__ */ jsxs9("div", { className: "grid grid-cols-[1fr_20px] items-start gap-x-2", children: [
1481
- /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", children: getFormattedAddress({ address }).map((line, i) => {
1482
- return /* @__PURE__ */ jsxs9("span", { className: "break-words", children: [
1521
+ const { t } = useTranslation10();
1522
+ return /* @__PURE__ */ jsxs10("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
1523
+ /* @__PURE__ */ jsx10(Text8, { size: "small", leading: "compact", weight: "plus", children: type === "shipping" ? t("addresses.shippingAddress.label") : t("addresses.billingAddress.label") }),
1524
+ address ? /* @__PURE__ */ jsxs10("div", { className: "grid grid-cols-[1fr_20px] items-start gap-x-2", children: [
1525
+ /* @__PURE__ */ jsx10(Text8, { size: "small", leading: "compact", children: getFormattedAddress({ address }).map((line, i) => {
1526
+ return /* @__PURE__ */ jsxs10("span", { className: "break-words", children: [
1483
1527
  line,
1484
- /* @__PURE__ */ jsx9("br", {})
1528
+ /* @__PURE__ */ jsx10("br", {})
1485
1529
  ] }, i);
1486
1530
  }) }),
1487
- /* @__PURE__ */ jsx9("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx9(
1531
+ /* @__PURE__ */ jsx10("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx10(
1488
1532
  Copy2,
1489
1533
  {
1490
1534
  content: getFormattedAddress({ address }).join("\n"),
1491
1535
  className: "text-ui-fg-muted"
1492
1536
  }
1493
1537
  ) })
1494
- ] }) : /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", children: "-" })
1538
+ ] }) : /* @__PURE__ */ jsx10(Text8, { size: "small", leading: "compact", children: "-" })
1495
1539
  ] });
1496
1540
  };
1497
1541
  var Addresses = ({ data }) => {
1498
- const { t } = useTranslation9();
1499
- return /* @__PURE__ */ jsxs9("div", { className: "divide-y", children: [
1500
- /* @__PURE__ */ jsx9(AddressPrint, { address: data.shipping_address, type: "shipping" }),
1501
- !isSameAddress(data.shipping_address, data.billing_address) ? /* @__PURE__ */ jsx9(AddressPrint, { address: data.billing_address, type: "billing" }) : /* @__PURE__ */ jsxs9("div", { className: "grid grid-cols-2 items-center px-6 py-4", children: [
1502
- /* @__PURE__ */ jsx9(
1503
- Text7,
1542
+ const { t } = useTranslation10();
1543
+ return /* @__PURE__ */ jsxs10("div", { className: "divide-y", children: [
1544
+ /* @__PURE__ */ jsx10(AddressPrint, { address: data.shipping_address, type: "shipping" }),
1545
+ !isSameAddress(data.shipping_address, data.billing_address) ? /* @__PURE__ */ jsx10(AddressPrint, { address: data.billing_address, type: "billing" }) : /* @__PURE__ */ jsxs10("div", { className: "grid grid-cols-2 items-center px-6 py-4", children: [
1546
+ /* @__PURE__ */ jsx10(
1547
+ Text8,
1504
1548
  {
1505
1549
  size: "small",
1506
1550
  leading: "compact",
@@ -1509,7 +1553,7 @@ var Addresses = ({ data }) => {
1509
1553
  children: t("addresses.billingAddress.label")
1510
1554
  }
1511
1555
  ),
1512
- /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: t("addresses.billingAddress.sameAsShipping") })
1556
+ /* @__PURE__ */ jsx10(Text8, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: t("addresses.billingAddress.sameAsShipping") })
1513
1557
  ] })
1514
1558
  ] });
1515
1559
  };
@@ -1534,40 +1578,40 @@ var getOrderCustomer = (obj) => {
1534
1578
  };
1535
1579
 
1536
1580
  // src/pages/orders/order-detail/components/order-customer-section/order-customer-section.tsx
1537
- import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
1581
+ import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
1538
1582
  var OrderCustomerSection = ({ order }) => {
1539
- return /* @__PURE__ */ jsxs10(
1540
- Container6,
1583
+ return /* @__PURE__ */ jsxs11(
1584
+ Container7,
1541
1585
  {
1542
1586
  className: "divide-y p-0",
1543
1587
  "data-testid": "order-customer-section",
1544
1588
  children: [
1545
- /* @__PURE__ */ jsx10(Header, { order }),
1546
- /* @__PURE__ */ jsx10(CustomerInfo.ID, { data: order }),
1547
- /* @__PURE__ */ jsx10(CustomerInfo.Contact, { data: order }),
1548
- /* @__PURE__ */ jsx10(CustomerInfo.Company, { data: order }),
1549
- /* @__PURE__ */ jsx10(CustomerInfo.Addresses, { data: order })
1589
+ /* @__PURE__ */ jsx11(Header, { order }),
1590
+ /* @__PURE__ */ jsx11(CustomerInfo.ID, { data: order }),
1591
+ /* @__PURE__ */ jsx11(CustomerInfo.Contact, { data: order }),
1592
+ /* @__PURE__ */ jsx11(CustomerInfo.Company, { data: order }),
1593
+ /* @__PURE__ */ jsx11(CustomerInfo.Addresses, { data: order })
1550
1594
  ]
1551
1595
  }
1552
1596
  );
1553
1597
  };
1554
1598
  var Header = ({ order }) => {
1555
- const { t } = useTranslation10();
1556
- return /* @__PURE__ */ jsxs10(
1599
+ const { t } = useTranslation11();
1600
+ return /* @__PURE__ */ jsxs11(
1557
1601
  "div",
1558
1602
  {
1559
1603
  className: "flex items-center justify-between px-6 py-4",
1560
1604
  "data-testid": "order-customer-header",
1561
1605
  children: [
1562
- /* @__PURE__ */ jsx10(
1563
- Heading6,
1606
+ /* @__PURE__ */ jsx11(
1607
+ Heading7,
1564
1608
  {
1565
1609
  level: "h2",
1566
1610
  "data-testid": "order-customer-heading",
1567
1611
  children: t("fields.customer")
1568
1612
  }
1569
1613
  ),
1570
- /* @__PURE__ */ jsx10(
1614
+ /* @__PURE__ */ jsx11(
1571
1615
  ActionMenu,
1572
1616
  {
1573
1617
  groups: [
@@ -1576,7 +1620,7 @@ var Header = ({ order }) => {
1576
1620
  {
1577
1621
  label: t("transferOwnership.label"),
1578
1622
  to: `transfer`,
1579
- icon: /* @__PURE__ */ jsx10(ArrowPath2, {})
1623
+ icon: /* @__PURE__ */ jsx11(ArrowPath2, {})
1580
1624
  }
1581
1625
  ]
1582
1626
  },
@@ -1585,12 +1629,12 @@ var Header = ({ order }) => {
1585
1629
  {
1586
1630
  label: t("addresses.shippingAddress.editLabel"),
1587
1631
  to: "shipping-address",
1588
- icon: /* @__PURE__ */ jsx10(FlyingBox, {})
1632
+ icon: /* @__PURE__ */ jsx11(FlyingBox, {})
1589
1633
  },
1590
1634
  {
1591
1635
  label: t("addresses.billingAddress.editLabel"),
1592
1636
  to: "billing-address",
1593
- icon: /* @__PURE__ */ jsx10(CurrencyDollar, {})
1637
+ icon: /* @__PURE__ */ jsx11(CurrencyDollar, {})
1594
1638
  }
1595
1639
  ]
1596
1640
  },
@@ -1599,7 +1643,7 @@ var Header = ({ order }) => {
1599
1643
  {
1600
1644
  label: t("email.editLabel"),
1601
1645
  to: `email`,
1602
- icon: /* @__PURE__ */ jsx10(Envelope, {}),
1646
+ icon: /* @__PURE__ */ jsx11(Envelope, {}),
1603
1647
  disabled: order.status === "canceled"
1604
1648
  }
1605
1649
  ]
@@ -1614,45 +1658,41 @@ var Header = ({ order }) => {
1614
1658
  };
1615
1659
 
1616
1660
  // src/pages/orders/order-detail/components/order-fulfillment-section/order-fulfillment-section.tsx
1617
- import { Buildings, XCircle } from "@medusajs/icons";
1618
1661
  import {
1619
- Button as Button6,
1620
- Container as Container7,
1662
+ Container as Container8,
1621
1663
  Copy as Copy3,
1622
- Heading as Heading7,
1664
+ Heading as Heading8,
1623
1665
  StatusBadge,
1624
- Text as Text8,
1625
- Tooltip as Tooltip2,
1626
- toast as toast6,
1627
- usePrompt as usePrompt2
1666
+ Text as Text9,
1667
+ Tooltip as Tooltip2
1628
1668
  } from "@medusajs/ui";
1629
1669
  import { format } from "date-fns";
1630
- import { useTranslation as useTranslation11 } from "react-i18next";
1631
- import { Link as Link2, useNavigate as useNavigate5 } from "react-router-dom";
1632
- import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
1670
+ import { useTranslation as useTranslation12 } from "react-i18next";
1671
+ import { Link as Link2 } from "react-router-dom";
1672
+ import { Fragment as Fragment2, jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
1633
1673
  var OrderFulfillmentSection = ({
1634
1674
  order
1635
1675
  }) => {
1636
1676
  const fulfillments = order.fulfillments || [];
1637
- return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-y-3", "data-testid": "order-fulfillment-section", children: [
1638
- /* @__PURE__ */ jsx11(UnfulfilledItemBreakdown, { order }),
1639
- fulfillments.map((f, index) => /* @__PURE__ */ jsx11(Fulfillment, { index, fulfillment: f, order }, f.id))
1677
+ return /* @__PURE__ */ jsxs12("div", { className: "flex flex-col gap-y-3", "data-testid": "order-fulfillment-section", children: [
1678
+ /* @__PURE__ */ jsx12(UnfulfilledItemBreakdown, { order }),
1679
+ fulfillments.map((f, index) => /* @__PURE__ */ jsx12(Fulfillment, { index, fulfillment: f, order }, f.id))
1640
1680
  ] });
1641
1681
  };
1642
1682
  var UnfulfilledItem = ({
1643
1683
  item,
1644
1684
  currencyCode
1645
1685
  }) => {
1646
- return /* @__PURE__ */ jsxs11(
1686
+ return /* @__PURE__ */ jsxs12(
1647
1687
  "div",
1648
1688
  {
1649
1689
  className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4",
1650
1690
  children: [
1651
- /* @__PURE__ */ jsxs11("div", { className: "flex items-start gap-x-4", children: [
1652
- /* @__PURE__ */ jsx11(Thumbnail, { src: item.thumbnail }),
1653
- /* @__PURE__ */ jsxs11("div", { children: [
1654
- /* @__PURE__ */ jsx11(
1655
- Text8,
1691
+ /* @__PURE__ */ jsxs12("div", { className: "flex items-start gap-x-4", children: [
1692
+ /* @__PURE__ */ jsx12(Thumbnail, { src: item.thumbnail }),
1693
+ /* @__PURE__ */ jsxs12("div", { children: [
1694
+ /* @__PURE__ */ jsx12(
1695
+ Text9,
1656
1696
  {
1657
1697
  size: "small",
1658
1698
  leading: "compact",
@@ -1661,20 +1701,20 @@ var UnfulfilledItem = ({
1661
1701
  children: item.title
1662
1702
  }
1663
1703
  ),
1664
- item.variant_sku && /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-x-1", children: [
1665
- /* @__PURE__ */ jsx11(Text8, { size: "small", children: item.variant_sku }),
1666
- /* @__PURE__ */ jsx11(Copy3, { content: item.variant_sku, className: "text-ui-fg-muted" })
1704
+ item.variant_sku && /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-x-1", children: [
1705
+ /* @__PURE__ */ jsx12(Text9, { size: "small", children: item.variant_sku }),
1706
+ /* @__PURE__ */ jsx12(Copy3, { content: item.variant_sku, className: "text-ui-fg-muted" })
1667
1707
  ] }),
1668
- /* @__PURE__ */ jsx11(Text8, { size: "small", children: item.variant?.options?.map((o) => o.value).join(" \xB7 ") })
1708
+ /* @__PURE__ */ jsx12(Text9, { size: "small", children: item.variant?.options?.map((o) => o.value).join(" \xB7 ") })
1669
1709
  ] })
1670
1710
  ] }),
1671
- /* @__PURE__ */ jsxs11("div", { className: "grid grid-cols-3 items-center gap-x-4", children: [
1672
- /* @__PURE__ */ jsx11("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx11(Text8, { size: "small", children: getLocaleAmount(item.unit_price, currencyCode) }) }),
1673
- /* @__PURE__ */ jsx11("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsxs11(Text8, { children: [
1674
- /* @__PURE__ */ jsx11("span", { className: "tabular-nums", children: item.quantity - item.detail.fulfilled_quantity }),
1711
+ /* @__PURE__ */ jsxs12("div", { className: "grid grid-cols-3 items-center gap-x-4", children: [
1712
+ /* @__PURE__ */ jsx12("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx12(Text9, { size: "small", children: getLocaleAmount(item.unit_price, currencyCode) }) }),
1713
+ /* @__PURE__ */ jsx12("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsxs12(Text9, { children: [
1714
+ /* @__PURE__ */ jsx12("span", { className: "tabular-nums", children: item.quantity - item.detail.fulfilled_quantity }),
1675
1715
  "x"
1676
1716
  ] }) }),
1677
- /* @__PURE__ */ jsx11("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx11(Text8, { size: "small", children: getLocaleAmount(item.subtotal || 0, currencyCode) }) })
1717
+ /* @__PURE__ */ jsx12("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx12(Text9, { size: "small", children: getLocaleAmount(item.subtotal || 0, currencyCode) }) })
1678
1718
  ] })
1679
1719
  ]
1680
1720
  },
@@ -1688,8 +1728,8 @@ var UnfulfilledItemBreakdown = ({ order }) => {
1688
1728
  const unfulfilledItemsWithoutShipping = order.items.filter(
1689
1729
  (i) => !i.requires_shipping && i.detail.fulfilled_quantity < i.quantity
1690
1730
  );
1691
- return /* @__PURE__ */ jsxs11(Fragment2, { children: [
1692
- !!unfulfilledItemsWithShipping.length && /* @__PURE__ */ jsx11(
1731
+ return /* @__PURE__ */ jsxs12(Fragment2, { children: [
1732
+ !!unfulfilledItemsWithShipping.length && /* @__PURE__ */ jsx12(
1693
1733
  UnfulfilledItemDisplay,
1694
1734
  {
1695
1735
  order,
@@ -1697,7 +1737,7 @@ var UnfulfilledItemBreakdown = ({ order }) => {
1697
1737
  requiresShipping: true
1698
1738
  }
1699
1739
  ),
1700
- !!unfulfilledItemsWithoutShipping.length && /* @__PURE__ */ jsx11(
1740
+ !!unfulfilledItemsWithoutShipping.length && /* @__PURE__ */ jsx12(
1701
1741
  UnfulfilledItemDisplay,
1702
1742
  {
1703
1743
  order,
@@ -1712,36 +1752,19 @@ var UnfulfilledItemDisplay = ({
1712
1752
  unfulfilledItems,
1713
1753
  requiresShipping = false
1714
1754
  }) => {
1715
- const { t } = useTranslation11();
1755
+ const { t } = useTranslation12();
1716
1756
  if (order.status === "canceled") {
1717
1757
  return;
1718
1758
  }
1719
- return /* @__PURE__ */ jsxs11(Container7, { className: "divide-y p-0", "data-testid": "order-fulfillment-unfulfilled", children: [
1720
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "order-fulfillment-unfulfilled-header", children: [
1721
- /* @__PURE__ */ jsx11(Heading7, { level: "h2", "data-testid": "order-fulfillment-unfulfilled-heading", children: t("orders.fulfillment.unfulfilledItems") }),
1722
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-x-4", "data-testid": "order-fulfillment-unfulfilled-badges", children: [
1723
- requiresShipping && /* @__PURE__ */ jsx11(StatusBadge, { color: "red", className: "text-nowrap", "data-testid": "order-fulfillment-unfulfilled-requires-shipping-badge", children: t("orders.fulfillment.requiresShipping") }),
1724
- /* @__PURE__ */ jsx11(StatusBadge, { color: "red", className: "text-nowrap", "data-testid": "order-fulfillment-unfulfilled-awaiting-badge", children: t("orders.fulfillment.awaitingFulfillmentBadge") }),
1725
- /* @__PURE__ */ jsx11(
1726
- ActionMenu,
1727
- {
1728
- groups: [
1729
- {
1730
- actions: [
1731
- {
1732
- label: t("orders.fulfillment.fulfillItems"),
1733
- icon: /* @__PURE__ */ jsx11(Buildings, {}),
1734
- to: `/orders/${order.id}/fulfillment?requires_shipping=${requiresShipping}`
1735
- }
1736
- ]
1737
- }
1738
- ],
1739
- "data-testid": "order-fulfillment-unfulfilled-action-menu"
1740
- }
1741
- )
1759
+ return /* @__PURE__ */ jsxs12(Container8, { className: "divide-y p-0", "data-testid": "order-fulfillment-unfulfilled", children: [
1760
+ /* @__PURE__ */ jsxs12("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "order-fulfillment-unfulfilled-header", children: [
1761
+ /* @__PURE__ */ jsx12(Heading8, { level: "h2", "data-testid": "order-fulfillment-unfulfilled-heading", children: t("orders.fulfillment.unfulfilledItems") }),
1762
+ /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-x-4", "data-testid": "order-fulfillment-unfulfilled-badges", children: [
1763
+ requiresShipping && /* @__PURE__ */ jsx12(StatusBadge, { color: "red", className: "text-nowrap", "data-testid": "order-fulfillment-unfulfilled-requires-shipping-badge", children: t("orders.fulfillment.requiresShipping") }),
1764
+ /* @__PURE__ */ jsx12(StatusBadge, { color: "red", className: "text-nowrap", "data-testid": "order-fulfillment-unfulfilled-awaiting-badge", children: t("orders.fulfillment.awaitingFulfillmentBadge") })
1742
1765
  ] })
1743
1766
  ] }),
1744
- /* @__PURE__ */ jsx11("div", { "data-testid": "order-fulfillment-unfulfilled-items", children: unfulfilledItems.map((item) => /* @__PURE__ */ jsx11(
1767
+ /* @__PURE__ */ jsx12("div", { "data-testid": "order-fulfillment-unfulfilled-items", children: unfulfilledItems.map((item) => /* @__PURE__ */ jsx12(
1745
1768
  UnfulfilledItem,
1746
1769
  {
1747
1770
  item,
@@ -1753,12 +1776,9 @@ var UnfulfilledItemDisplay = ({
1753
1776
  };
1754
1777
  var Fulfillment = ({
1755
1778
  fulfillment,
1756
- order,
1757
1779
  index
1758
1780
  }) => {
1759
- const { t } = useTranslation11();
1760
- const prompt = usePrompt2();
1761
- const navigate = useNavigate5();
1781
+ const { t } = useTranslation12();
1762
1782
  const showLocation = !!fulfillment.location_id;
1763
1783
  const isPickUpFulfillment = fulfillment.shipping_option?.service_zone.fulfillment_set.type === "pickup" /* Pickup */;
1764
1784
  const { stock_location, isError, error } = useStockLocation(
@@ -1784,189 +1804,109 @@ var Fulfillment = ({
1784
1804
  statusColor = "green";
1785
1805
  statusTimestamp = fulfillment.shipped_at;
1786
1806
  }
1787
- const { mutateAsync } = useCancelOrderFulfillment(order.id, fulfillment.id);
1788
- const { mutateAsync: markAsDelivered } = useMarkOrderFulfillmentAsDelivered(
1789
- order.id,
1790
- fulfillment.id
1791
- );
1792
- const showShippingButton = !fulfillment.canceled_at && !fulfillment.shipped_at && !fulfillment.delivered_at && fulfillment.requires_shipping && !isPickUpFulfillment;
1793
- const showDeliveryButton = !fulfillment.canceled_at && !fulfillment.delivered_at;
1794
- const handleMarkAsDelivered = async () => {
1795
- const res = await prompt({
1796
- title: t("general.areYouSure"),
1797
- description: t("orders.fulfillment.markAsDeliveredWarning"),
1798
- confirmText: t("actions.continue"),
1799
- cancelText: t("actions.cancel"),
1800
- variant: "confirmation"
1801
- });
1802
- if (res) {
1803
- await markAsDelivered(void 0, {
1804
- onSuccess: () => {
1805
- toast6.success(
1806
- t(
1807
- isPickUpFulfillment ? "orders.fulfillment.toast.fulfillmentPickedUp" : "orders.fulfillment.toast.fulfillmentDelivered"
1808
- )
1809
- );
1810
- },
1811
- onError: (e) => {
1812
- toast6.error(e.message);
1813
- }
1814
- });
1815
- }
1816
- };
1817
- const handleCancel = async () => {
1818
- if (fulfillment.shipped_at) {
1819
- toast6.warning(t("orders.fulfillment.toast.fulfillmentShipped"));
1820
- return;
1821
- }
1822
- const res = await prompt({
1823
- title: t("general.areYouSure"),
1824
- description: t("orders.fulfillment.cancelWarning"),
1825
- confirmText: t("actions.continue"),
1826
- cancelText: t("actions.cancel")
1827
- });
1828
- if (res) {
1829
- await mutateAsync(void 0, {
1830
- onSuccess: () => {
1831
- toast6.success(t("orders.fulfillment.toast.canceled"));
1832
- },
1833
- onError: (e) => {
1834
- toast6.error(e.message);
1835
- }
1836
- });
1837
- }
1838
- };
1839
1807
  if (isError) {
1840
1808
  throw error;
1841
1809
  }
1842
1810
  const isValidUrl = (url) => url && url.length > 0 && url !== "#";
1843
- return /* @__PURE__ */ jsxs11(Container7, { className: "divide-y p-0", "data-testid": `order-fulfillment-${fulfillment.id}`, children: [
1844
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": `order-fulfillment-${fulfillment.id}-header`, children: [
1845
- /* @__PURE__ */ jsx11(Heading7, { level: "h2", "data-testid": `order-fulfillment-${fulfillment.id}-heading`, children: t("orders.fulfillment.number", {
1811
+ return /* @__PURE__ */ jsxs12(Container8, { className: "divide-y p-0", "data-testid": `order-fulfillment-${fulfillment.id}`, children: [
1812
+ /* @__PURE__ */ jsxs12("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": `order-fulfillment-${fulfillment.id}-header`, children: [
1813
+ /* @__PURE__ */ jsx12(Heading8, { level: "h2", "data-testid": `order-fulfillment-${fulfillment.id}-heading`, children: t("orders.fulfillment.number", {
1846
1814
  number: index + 1
1847
1815
  }) }),
1848
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-x-4", "data-testid": `order-fulfillment-${fulfillment.id}-status-container`, children: [
1849
- /* @__PURE__ */ jsx11(
1850
- Tooltip2,
1851
- {
1852
- content: format(
1853
- new Date(statusTimestamp),
1854
- "dd MMM, yyyy, HH:mm:ss"
1855
- ),
1856
- children: /* @__PURE__ */ jsx11(StatusBadge, { color: statusColor, className: "text-nowrap", "data-testid": `order-fulfillment-${fulfillment.id}-status-badge`, children: statusText })
1857
- }
1858
- ),
1859
- /* @__PURE__ */ jsx11(
1860
- ActionMenu,
1861
- {
1862
- groups: [
1863
- {
1864
- actions: [
1865
- {
1866
- label: t("actions.cancel"),
1867
- icon: /* @__PURE__ */ jsx11(XCircle, {}),
1868
- onClick: handleCancel,
1869
- disabled: !!fulfillment.canceled_at || !!fulfillment.shipped_at || !!fulfillment.delivered_at
1870
- }
1871
- ]
1872
- }
1873
- ],
1874
- "data-testid": `order-fulfillment-${fulfillment.id}-action-menu`
1875
- }
1876
- )
1877
- ] })
1816
+ /* @__PURE__ */ jsx12("div", { className: "flex items-center gap-x-4", "data-testid": `order-fulfillment-${fulfillment.id}-status-container`, children: /* @__PURE__ */ jsx12(
1817
+ Tooltip2,
1818
+ {
1819
+ content: format(
1820
+ new Date(statusTimestamp),
1821
+ "dd MMM, yyyy, HH:mm:ss"
1822
+ ),
1823
+ children: /* @__PURE__ */ jsx12(StatusBadge, { color: statusColor, className: "text-nowrap", "data-testid": `order-fulfillment-${fulfillment.id}-status-badge`, children: statusText })
1824
+ }
1825
+ ) })
1878
1826
  ] }),
1879
- /* @__PURE__ */ jsxs11("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
1880
- /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", weight: "plus", children: t("orders.fulfillment.itemsLabel") }),
1881
- /* @__PURE__ */ jsx11("ul", { children: fulfillment.items.map((f_item) => /* @__PURE__ */ jsx11("li", { children: /* @__PURE__ */ jsxs11(Text8, { size: "small", leading: "compact", children: [
1827
+ /* @__PURE__ */ jsxs12("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
1828
+ /* @__PURE__ */ jsx12(Text9, { size: "small", leading: "compact", weight: "plus", children: t("orders.fulfillment.itemsLabel") }),
1829
+ /* @__PURE__ */ jsx12("ul", { children: fulfillment.items.map((f_item) => /* @__PURE__ */ jsx12("li", { children: /* @__PURE__ */ jsxs12(Text9, { size: "small", leading: "compact", children: [
1882
1830
  f_item.quantity,
1883
1831
  "x ",
1884
1832
  f_item.title
1885
1833
  ] }) }, f_item.line_item_id)) })
1886
1834
  ] }),
1887
- showLocation && /* @__PURE__ */ jsxs11("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
1888
- /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", weight: "plus", children: t("orders.fulfillment.shippingFromLabel") }),
1889
- stock_location ? /* @__PURE__ */ jsx11(
1835
+ showLocation && /* @__PURE__ */ jsxs12("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
1836
+ /* @__PURE__ */ jsx12(Text9, { size: "small", leading: "compact", weight: "plus", children: t("orders.fulfillment.shippingFromLabel") }),
1837
+ stock_location ? /* @__PURE__ */ jsx12(
1890
1838
  Link2,
1891
1839
  {
1892
1840
  to: `/settings/locations/${stock_location.id}`,
1893
1841
  className: "text-ui-fg-interactive hover:text-ui-fg-interactive-hover transition-fg",
1894
- children: /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", children: stock_location.name })
1842
+ children: /* @__PURE__ */ jsx12(Text9, { size: "small", leading: "compact", children: stock_location.name })
1895
1843
  }
1896
- ) : /* @__PURE__ */ jsx11(Skeleton, { className: "w-16" })
1844
+ ) : /* @__PURE__ */ jsx12(Skeleton, { className: "w-16" })
1897
1845
  ] }),
1898
- /* @__PURE__ */ jsxs11("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
1899
- /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", weight: "plus", children: t("fields.provider") }),
1900
- /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", children: formatProvider(fulfillment.provider_id) })
1846
+ /* @__PURE__ */ jsxs12("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
1847
+ /* @__PURE__ */ jsx12(Text9, { size: "small", leading: "compact", weight: "plus", children: t("fields.provider") }),
1848
+ /* @__PURE__ */ jsx12(Text9, { size: "small", leading: "compact", children: formatProvider(fulfillment.provider_id) })
1901
1849
  ] }),
1902
- /* @__PURE__ */ jsxs11("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
1903
- /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", weight: "plus", children: t("orders.fulfillment.trackingLabel") }),
1904
- /* @__PURE__ */ jsx11("div", { children: fulfillment.labels && fulfillment.labels.length > 0 ? /* @__PURE__ */ jsx11("ul", { children: fulfillment.labels.map((tlink) => {
1850
+ /* @__PURE__ */ jsxs12("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
1851
+ /* @__PURE__ */ jsx12(Text9, { size: "small", leading: "compact", weight: "plus", children: t("orders.fulfillment.trackingLabel") }),
1852
+ /* @__PURE__ */ jsx12("div", { children: fulfillment.labels && fulfillment.labels.length > 0 ? /* @__PURE__ */ jsx12("ul", { children: fulfillment.labels.map((tlink) => {
1905
1853
  const hasTrackingUrl = isValidUrl(tlink.tracking_url);
1906
1854
  const hasLabelUrl = isValidUrl(tlink.label_url);
1907
1855
  if (hasTrackingUrl || hasLabelUrl) {
1908
- return /* @__PURE__ */ jsxs11("li", { children: [
1909
- hasTrackingUrl && /* @__PURE__ */ jsx11(
1856
+ return /* @__PURE__ */ jsxs12("li", { children: [
1857
+ hasTrackingUrl && /* @__PURE__ */ jsx12(
1910
1858
  "a",
1911
1859
  {
1912
1860
  href: tlink.tracking_url,
1913
1861
  target: "_blank",
1914
1862
  rel: "noopener noreferrer",
1915
1863
  className: "text-ui-fg-interactive hover:text-ui-fg-interactive-hover transition-fg",
1916
- children: /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", as: "span", children: tlink.tracking_number })
1864
+ children: /* @__PURE__ */ jsx12(Text9, { size: "small", leading: "compact", as: "span", children: tlink.tracking_number })
1917
1865
  }
1918
1866
  ),
1919
1867
  hasTrackingUrl && hasLabelUrl && " - ",
1920
- hasLabelUrl && /* @__PURE__ */ jsx11(
1868
+ hasLabelUrl && /* @__PURE__ */ jsx12(
1921
1869
  "a",
1922
1870
  {
1923
1871
  href: tlink.label_url,
1924
1872
  target: "_blank",
1925
1873
  rel: "noopener noreferrer",
1926
1874
  className: "text-ui-fg-interactive hover:text-ui-fg-interactive-hover transition-fg",
1927
- children: /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", as: "span", children: t("orders.fulfillment.labelLink") })
1875
+ children: /* @__PURE__ */ jsx12(Text9, { size: "small", leading: "compact", as: "span", children: t("orders.fulfillment.labelLink") })
1928
1876
  }
1929
1877
  )
1930
1878
  ] }, tlink.tracking_number);
1931
1879
  }
1932
- return /* @__PURE__ */ jsx11("li", { children: /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", children: tlink.tracking_number }) }, tlink.tracking_number);
1933
- }) }) : /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", children: "-" }) })
1934
- ] }),
1935
- (showShippingButton || showDeliveryButton) && /* @__PURE__ */ jsxs11("div", { className: "bg-ui-bg-subtle flex items-center justify-end gap-x-2 rounded-b-xl px-4 py-4", "data-testid": `order-fulfillment-${fulfillment.id}-actions`, children: [
1936
- showDeliveryButton && /* @__PURE__ */ jsx11(Button6, { onClick: handleMarkAsDelivered, variant: "secondary", "data-testid": `order-fulfillment-${fulfillment.id}-mark-delivered-button`, children: t(
1937
- isPickUpFulfillment ? "orders.fulfillment.markAsPickedUp" : "orders.fulfillment.markAsDelivered"
1938
- ) }),
1939
- showShippingButton && /* @__PURE__ */ jsx11(
1940
- Button6,
1941
- {
1942
- onClick: () => navigate(`./${fulfillment.id}/create-shipment`),
1943
- variant: "secondary",
1944
- "data-testid": `order-fulfillment-${fulfillment.id}-mark-shipped-button`,
1945
- children: t("orders.fulfillment.markAsShipped")
1946
- }
1947
- )
1880
+ return /* @__PURE__ */ jsx12("li", { children: /* @__PURE__ */ jsx12(Text9, { size: "small", leading: "compact", children: tlink.tracking_number }) }, tlink.tracking_number);
1881
+ }) }) : /* @__PURE__ */ jsx12(Text9, { size: "small", leading: "compact", children: "-" }) })
1948
1882
  ] })
1949
1883
  ] });
1950
1884
  };
1951
1885
 
1952
1886
  // src/pages/orders/order-detail/components/order-general-section/order-general-section.tsx
1953
- import { XCircle as XCircle2 } from "@medusajs/icons";
1887
+ import { XCircle } from "@medusajs/icons";
1954
1888
  import {
1955
- Container as Container8,
1889
+ Container as Container9,
1956
1890
  Copy as Copy4,
1957
- Heading as Heading8,
1891
+ Heading as Heading9,
1958
1892
  StatusBadge as StatusBadge2,
1959
- Text as Text9,
1960
- toast as toast7,
1961
- usePrompt as usePrompt3
1893
+ Text as Text10,
1894
+ toast as toast6,
1895
+ usePrompt as usePrompt2
1962
1896
  } from "@medusajs/ui";
1963
- import { useTranslation as useTranslation12 } from "react-i18next";
1964
- import { jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
1897
+ import { useTranslation as useTranslation13 } from "react-i18next";
1898
+ import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
1965
1899
  var OrderGeneralSection = ({ order }) => {
1966
- const { t } = useTranslation12();
1967
- const prompt = usePrompt3();
1900
+ const { t } = useTranslation13();
1901
+ const prompt = usePrompt2();
1968
1902
  const { getFullDate } = useDate();
1969
1903
  const { mutateAsync: cancelOrder } = useCancelOrder(order.id);
1904
+ const hasAnyFulfilledItem = order.items?.some(
1905
+ // @ts-ignore — detail.fulfilled_quantity is exposed via Mercur query-config
1906
+ (i) => (i.detail?.fulfilled_quantity ?? 0) > 0
1907
+ );
1908
+ const cancelDisabled = !!order.canceled_at || !!hasAnyFulfilledItem;
1909
+ const cancelDisabledTooltip = order.canceled_at ? void 0 : hasAnyFulfilledItem ? t("orders.actions.cancelDisabledFulfilled") : void 0;
1970
1910
  const handleCancel = async () => {
1971
1911
  const res = await prompt({
1972
1912
  title: t("general.areYouSure"),
@@ -1981,34 +1921,34 @@ var OrderGeneralSection = ({ order }) => {
1981
1921
  }
1982
1922
  await cancelOrder(void 0, {
1983
1923
  onSuccess: () => {
1984
- toast7.success(t("orders.orderCanceled"));
1924
+ toast6.success(t("orders.orderCanceled"));
1985
1925
  },
1986
1926
  onError: (e) => {
1987
- toast7.error(e.message);
1927
+ toast6.error(e.message);
1988
1928
  }
1989
1929
  });
1990
1930
  };
1991
- return /* @__PURE__ */ jsxs12(Container8, { className: "flex items-center justify-between px-6 py-4", "data-testid": "order-general-section", children: [
1992
- /* @__PURE__ */ jsxs12("div", { children: [
1993
- /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-x-1", "data-testid": "order-general-section-id-container", children: [
1994
- /* @__PURE__ */ jsxs12(Heading8, { "data-testid": "order-general-section-id-heading", children: [
1931
+ return /* @__PURE__ */ jsxs13(Container9, { className: "flex items-center justify-between px-6 py-4", "data-testid": "order-general-section", children: [
1932
+ /* @__PURE__ */ jsxs13("div", { children: [
1933
+ /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-x-1", "data-testid": "order-general-section-id-container", children: [
1934
+ /* @__PURE__ */ jsxs13(Heading9, { "data-testid": "order-general-section-id-heading", children: [
1995
1935
  "#",
1996
1936
  order.display_id
1997
1937
  ] }),
1998
- /* @__PURE__ */ jsx12(Copy4, { content: `#${order.display_id}`, className: "text-ui-fg-muted", "data-testid": "order-general-section-id-copy" })
1938
+ /* @__PURE__ */ jsx13(Copy4, { content: `#${order.display_id}`, className: "text-ui-fg-muted", "data-testid": "order-general-section-id-copy" })
1999
1939
  ] }),
2000
- /* @__PURE__ */ jsx12(Text9, { size: "small", className: "text-ui-fg-subtle", "data-testid": "order-general-section-date", children: t("orders.onDateFromSalesChannel", {
1940
+ /* @__PURE__ */ jsx13(Text10, { size: "small", className: "text-ui-fg-subtle", "data-testid": "order-general-section-date", children: t("orders.onDateFromSalesChannel", {
2001
1941
  date: getFullDate({ date: order.created_at, includeTime: true }),
2002
1942
  salesChannel: order.sales_channel?.name
2003
1943
  }) })
2004
1944
  ] }),
2005
- /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-x-4", "data-testid": "order-general-section-badges-container", children: [
2006
- /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-x-1.5", "data-testid": "order-general-section-badges", children: [
2007
- /* @__PURE__ */ jsx12(OrderBadge, { order }),
2008
- /* @__PURE__ */ jsx12(PaymentBadge, { order }),
2009
- /* @__PURE__ */ jsx12(FulfillmentBadge, { order })
1945
+ /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-x-4", "data-testid": "order-general-section-badges-container", children: [
1946
+ /* @__PURE__ */ jsxs13("div", { className: "flex items-center gap-x-1.5", "data-testid": "order-general-section-badges", children: [
1947
+ /* @__PURE__ */ jsx13(OrderBadge, { order }),
1948
+ /* @__PURE__ */ jsx13(PaymentBadge, { order }),
1949
+ /* @__PURE__ */ jsx13(FulfillmentBadge, { order })
2010
1950
  ] }),
2011
- /* @__PURE__ */ jsx12(
1951
+ /* @__PURE__ */ jsx13(
2012
1952
  ActionMenu,
2013
1953
  {
2014
1954
  groups: [
@@ -2017,8 +1957,9 @@ var OrderGeneralSection = ({ order }) => {
2017
1957
  {
2018
1958
  label: t("actions.cancel"),
2019
1959
  onClick: handleCancel,
2020
- disabled: !!order.canceled_at,
2021
- icon: /* @__PURE__ */ jsx12(XCircle2, {})
1960
+ disabled: cancelDisabled,
1961
+ disabledTooltip: cancelDisabledTooltip,
1962
+ icon: /* @__PURE__ */ jsx13(XCircle, {})
2022
1963
  }
2023
1964
  ]
2024
1965
  }
@@ -2030,41 +1971,41 @@ var OrderGeneralSection = ({ order }) => {
2030
1971
  ] });
2031
1972
  };
2032
1973
  var FulfillmentBadge = ({ order }) => {
2033
- const { t } = useTranslation12();
1974
+ const { t } = useTranslation13();
2034
1975
  const { label, color } = getOrderFulfillmentStatus(
2035
1976
  t,
2036
1977
  order.fulfillment_status
2037
1978
  );
2038
- return /* @__PURE__ */ jsx12(StatusBadge2, { color, className: "text-nowrap", "data-testid": "order-general-section-fulfillment-badge", children: label });
1979
+ return /* @__PURE__ */ jsx13(StatusBadge2, { color, className: "text-nowrap", "data-testid": "order-general-section-fulfillment-badge", children: label });
2039
1980
  };
2040
1981
  var PaymentBadge = ({ order }) => {
2041
- const { t } = useTranslation12();
1982
+ const { t } = useTranslation13();
2042
1983
  const { label, color } = getOrderPaymentStatus(t, order.payment_status);
2043
- return /* @__PURE__ */ jsx12(StatusBadge2, { color, className: "text-nowrap", "data-testid": "order-general-section-payment-badge", children: label });
1984
+ return /* @__PURE__ */ jsx13(StatusBadge2, { color, className: "text-nowrap", "data-testid": "order-general-section-payment-badge", children: label });
2044
1985
  };
2045
1986
  var OrderBadge = ({ order }) => {
2046
- const { t } = useTranslation12();
1987
+ const { t } = useTranslation13();
2047
1988
  const orderStatus = getCanceledOrderStatus(t, order.status);
2048
1989
  if (!orderStatus) {
2049
1990
  return null;
2050
1991
  }
2051
- return /* @__PURE__ */ jsx12(StatusBadge2, { color: orderStatus.color, className: "text-nowrap", "data-testid": "order-general-section-order-badge", children: orderStatus.label });
1992
+ return /* @__PURE__ */ jsx13(StatusBadge2, { color: orderStatus.color, className: "text-nowrap", "data-testid": "order-general-section-order-badge", children: orderStatus.label });
2052
1993
  };
2053
1994
 
2054
1995
  // src/components/common/display-id/display-id.tsx
2055
- import { useTranslation as useTranslation13 } from "react-i18next";
1996
+ import { useTranslation as useTranslation14 } from "react-i18next";
2056
1997
  import { useState as useState4 } from "react";
2057
1998
  import copy from "copy-to-clipboard";
2058
- import { clx as clx2, toast as toast8, Tooltip as Tooltip3 } from "@medusajs/ui";
2059
- import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
1999
+ import { clx as clx2, toast as toast7, Tooltip as Tooltip3 } from "@medusajs/ui";
2000
+ import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
2060
2001
  function DisplayId({ id, className }) {
2061
- const { t } = useTranslation13();
2002
+ const { t } = useTranslation14();
2062
2003
  const [open, setOpen] = useState4(false);
2063
2004
  const onClick = () => {
2064
2005
  copy(id);
2065
- toast8.success(t("actions.idCopiedToClipboard"));
2006
+ toast7.success(t("actions.idCopiedToClipboard"));
2066
2007
  };
2067
- return /* @__PURE__ */ jsx13(Tooltip3, { maxWidth: 260, content: id, open, onOpenChange: setOpen, children: /* @__PURE__ */ jsxs13("span", { onClick, className: clx2("cursor-pointer", className), children: [
2008
+ return /* @__PURE__ */ jsx14(Tooltip3, { maxWidth: 260, content: id, open, onOpenChange: setOpen, children: /* @__PURE__ */ jsxs14("span", { onClick, className: clx2("cursor-pointer", className), children: [
2068
2009
  "#",
2069
2010
  id.slice(-7)
2070
2011
  ] }) });
@@ -2082,32 +2023,32 @@ var getTotalPending = (paymentCollections) => paymentCollections.filter((pc) =>
2082
2023
  }, 0);
2083
2024
 
2084
2025
  // src/pages/orders/order-detail/components/order-payment-section/order-payment-section.tsx
2085
- import { ArrowDownRightMini, DocumentText, XCircle as XCircle3 } from "@medusajs/icons";
2026
+ import { ArrowDownRightMini, DocumentText, XCircle as XCircle2 } from "@medusajs/icons";
2086
2027
  import {
2087
2028
  Badge,
2088
- Button as Button7,
2089
- Container as Container9,
2090
- Heading as Heading9,
2029
+ Button as Button6,
2030
+ Container as Container10,
2031
+ Heading as Heading10,
2091
2032
  StatusBadge as StatusBadge3,
2092
- Text as Text10,
2093
- toast as toast9,
2033
+ Text as Text11,
2034
+ toast as toast8,
2094
2035
  Tooltip as Tooltip4,
2095
- usePrompt as usePrompt4
2036
+ usePrompt as usePrompt3
2096
2037
  } from "@medusajs/ui";
2097
2038
  import { format as format2 } from "date-fns";
2098
- import { Trans, useTranslation as useTranslation14 } from "react-i18next";
2099
- import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
2039
+ import { Trans, useTranslation as useTranslation15 } from "react-i18next";
2040
+ import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
2100
2041
  var OrderPaymentSection = ({ order }) => {
2101
2042
  const payments = getPaymentsFromOrder(order);
2102
2043
  const refunds = payments.map((payment) => payment?.refunds).flat(1).filter(Boolean);
2103
- return /* @__PURE__ */ jsxs14(
2104
- Container9,
2044
+ return /* @__PURE__ */ jsxs15(
2045
+ Container10,
2105
2046
  {
2106
- className: "divide-y divide-dashed p-0",
2047
+ className: "divide-y p-0",
2107
2048
  "data-testid": "order-payment-section",
2108
2049
  children: [
2109
- /* @__PURE__ */ jsx14(Header2, { order }),
2110
- /* @__PURE__ */ jsx14(
2050
+ /* @__PURE__ */ jsx15(Header2, { order }),
2051
+ /* @__PURE__ */ jsx15(
2111
2052
  PaymentBreakdown,
2112
2053
  {
2113
2054
  order,
@@ -2116,22 +2057,22 @@ var OrderPaymentSection = ({ order }) => {
2116
2057
  currencyCode: order.currency_code
2117
2058
  }
2118
2059
  ),
2119
- /* @__PURE__ */ jsx14(Total, { order })
2060
+ /* @__PURE__ */ jsx15(Total, { order })
2120
2061
  ]
2121
2062
  }
2122
2063
  );
2123
2064
  };
2124
2065
  var Header2 = ({ order }) => {
2125
- const { t } = useTranslation14();
2066
+ const { t } = useTranslation15();
2126
2067
  const { label, color } = getOrderPaymentStatus(t, order.payment_status);
2127
- return /* @__PURE__ */ jsxs14(
2068
+ return /* @__PURE__ */ jsxs15(
2128
2069
  "div",
2129
2070
  {
2130
2071
  className: "flex items-center justify-between px-6 py-4",
2131
2072
  "data-testid": "order-payment-header",
2132
2073
  children: [
2133
- /* @__PURE__ */ jsx14(Heading9, { level: "h2", "data-testid": "order-payment-heading", children: t("orders.payment.title") }),
2134
- /* @__PURE__ */ jsx14(
2074
+ /* @__PURE__ */ jsx15(Heading10, { level: "h2", "data-testid": "order-payment-heading", children: t("orders.payment.title") }),
2075
+ /* @__PURE__ */ jsx15(
2135
2076
  StatusBadge3,
2136
2077
  {
2137
2078
  color,
@@ -2148,8 +2089,8 @@ var Refund = ({
2148
2089
  refund,
2149
2090
  currencyCode
2150
2091
  }) => {
2151
- const { t } = useTranslation14();
2152
- const RefundReasonBadge = refund?.refund_reason && /* @__PURE__ */ jsx14(
2092
+ const { t } = useTranslation15();
2093
+ const RefundReasonBadge = refund?.refund_reason && /* @__PURE__ */ jsx15(
2153
2094
  Badge,
2154
2095
  {
2155
2096
  size: "2xsmall",
@@ -2159,27 +2100,27 @@ var Refund = ({
2159
2100
  children: refund.refund_reason.label
2160
2101
  }
2161
2102
  );
2162
- const RefundNoteIndicator = refund.note && /* @__PURE__ */ jsx14(Tooltip4, { content: refund.note, children: /* @__PURE__ */ jsx14(DocumentText, { className: "ml-1 inline text-ui-tag-neutral-icon" }) });
2163
- return /* @__PURE__ */ jsxs14("div", { className: "flex items-start gap-x-4 bg-ui-bg-subtle px-6 py-4 text-ui-fg-subtle sm:items-center", children: [
2164
- /* @__PURE__ */ jsxs14("div", { className: "flex flex-1 flex-col gap-3 sm:flex-row sm:items-center", children: [
2165
- /* @__PURE__ */ jsxs14("div", { className: "flex shrink-0 flex-row items-center gap-x-3", children: [
2166
- /* @__PURE__ */ jsx14(ArrowDownRightMini, { className: "text-ui-fg-muted" }),
2167
- /* @__PURE__ */ jsxs14("div", { children: [
2168
- /* @__PURE__ */ jsx14(Text10, { size: "small", leading: "compact", weight: "plus", children: t("orders.payment.refund") }),
2169
- /* @__PURE__ */ jsx14(Text10, { size: "small", leading: "compact", children: format2(new Date(refund.created_at), "dd MMM, yyyy, HH:mm:ss") })
2103
+ const RefundNoteIndicator = refund.note && /* @__PURE__ */ jsx15(Tooltip4, { content: refund.note, children: /* @__PURE__ */ jsx15(DocumentText, { className: "ml-1 inline text-ui-tag-neutral-icon" }) });
2104
+ return /* @__PURE__ */ jsxs15("div", { className: "flex items-start gap-x-4 bg-ui-bg-subtle px-6 py-4 text-ui-fg-subtle sm:items-center", children: [
2105
+ /* @__PURE__ */ jsxs15("div", { className: "flex flex-1 flex-col gap-3 sm:flex-row sm:items-center", children: [
2106
+ /* @__PURE__ */ jsxs15("div", { className: "flex shrink-0 flex-row items-center gap-x-3", children: [
2107
+ /* @__PURE__ */ jsx15(ArrowDownRightMini, { className: "text-ui-fg-muted" }),
2108
+ /* @__PURE__ */ jsxs15("div", { children: [
2109
+ /* @__PURE__ */ jsx15(Text11, { size: "small", leading: "compact", weight: "plus", children: t("orders.payment.refund") }),
2110
+ /* @__PURE__ */ jsx15(Text11, { size: "small", leading: "compact", children: format2(new Date(refund.created_at), "dd MMM, yyyy, HH:mm:ss") })
2170
2111
  ] })
2171
2112
  ] }),
2172
- /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-x-3", children: [
2173
- /* @__PURE__ */ jsx14("div", { className: "shrink-0", children: RefundNoteIndicator }),
2113
+ /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-x-3", children: [
2114
+ /* @__PURE__ */ jsx15("div", { className: "shrink-0", children: RefundNoteIndicator }),
2174
2115
  RefundReasonBadge
2175
2116
  ] })
2176
2117
  ] }),
2177
- /* @__PURE__ */ jsxs14("div", { className: "flex shrink-0 items-center justify-end gap-4", children: [
2178
- /* @__PURE__ */ jsxs14(Text10, { size: "small", leading: "compact", children: [
2118
+ /* @__PURE__ */ jsxs15("div", { className: "flex shrink-0 items-center justify-end gap-4", children: [
2119
+ /* @__PURE__ */ jsxs15(Text11, { size: "small", leading: "compact", children: [
2179
2120
  "- ",
2180
2121
  getLocaleAmount(refund.amount, currencyCode)
2181
2122
  ] }),
2182
- /* @__PURE__ */ jsx14("div", { className: "h-7 w-5" })
2123
+ /* @__PURE__ */ jsx15("div", { className: "h-7 w-5" })
2183
2124
  ] })
2184
2125
  ] });
2185
2126
  };
@@ -2189,8 +2130,8 @@ var Payment = ({
2189
2130
  refunds,
2190
2131
  currencyCode
2191
2132
  }) => {
2192
- const { t } = useTranslation14();
2193
- const prompt = usePrompt4();
2133
+ const { t } = useTranslation15();
2134
+ const prompt = usePrompt3();
2194
2135
  const { mutateAsync } = useCapturePayment(order.id, payment.id);
2195
2136
  const handleCapture = async () => {
2196
2137
  const res = await prompt({
@@ -2209,14 +2150,14 @@ var Payment = ({
2209
2150
  { amount: payment.amount },
2210
2151
  {
2211
2152
  onSuccess: () => {
2212
- toast9.success(
2153
+ toast8.success(
2213
2154
  t("orders.payment.capturePaymentSuccess", {
2214
2155
  amount: formatCurrency(payment.amount, currencyCode)
2215
2156
  })
2216
2157
  );
2217
2158
  },
2218
2159
  onError: (error) => {
2219
- toast9.error(error.message);
2160
+ toast8.error(error.message);
2220
2161
  }
2221
2162
  }
2222
2163
  );
@@ -2233,32 +2174,32 @@ var Payment = ({
2233
2174
  const [status, color] = getPaymentStatusAttributes(payment);
2234
2175
  const showCapture = payment.captured_at === null && payment.canceled_at === null;
2235
2176
  const totalRefunded = payment.refunds?.reduce((acc, next) => next.amount + acc, 0) ?? 0;
2236
- return /* @__PURE__ */ jsxs14(
2177
+ return /* @__PURE__ */ jsxs15(
2237
2178
  "div",
2238
2179
  {
2239
- className: "divide-y divide-dashed",
2180
+ className: "divide-y",
2240
2181
  "data-testid": `order-payment-${payment.id}`,
2241
2182
  children: [
2242
- /* @__PURE__ */ jsxs14(
2183
+ /* @__PURE__ */ jsxs15(
2243
2184
  "div",
2244
2185
  {
2245
2186
  className: "grid grid-cols-[1fr_1fr_1fr_20px] items-center gap-x-4 px-6 py-4 text-ui-fg-subtle sm:grid-cols-[1fr_1fr_1fr_1fr_20px]",
2246
2187
  "data-testid": `order-payment-${payment.id}-row`,
2247
2188
  children: [
2248
- /* @__PURE__ */ jsxs14("div", { className: "w-full min-w-[60px] overflow-hidden", children: [
2249
- /* @__PURE__ */ jsx14(
2250
- Text10,
2189
+ /* @__PURE__ */ jsxs15("div", { className: "w-full min-w-[60px] overflow-hidden", children: [
2190
+ /* @__PURE__ */ jsx15(
2191
+ Text11,
2251
2192
  {
2252
2193
  size: "small",
2253
2194
  leading: "compact",
2254
2195
  weight: "plus",
2255
2196
  className: "truncate",
2256
2197
  "data-testid": `order-payment-${payment.id}-id`,
2257
- children: /* @__PURE__ */ jsx14(display_id_default, { id: payment.id })
2198
+ children: /* @__PURE__ */ jsx15(display_id_default, { id: payment.id })
2258
2199
  }
2259
2200
  ),
2260
- /* @__PURE__ */ jsx14(
2261
- Text10,
2201
+ /* @__PURE__ */ jsx15(
2202
+ Text11,
2262
2203
  {
2263
2204
  size: "small",
2264
2205
  leading: "compact",
@@ -2267,8 +2208,8 @@ var Payment = ({
2267
2208
  }
2268
2209
  )
2269
2210
  ] }),
2270
- /* @__PURE__ */ jsx14("div", { className: "hidden items-center justify-end sm:flex", children: /* @__PURE__ */ jsx14(
2271
- Text10,
2211
+ /* @__PURE__ */ jsx15("div", { className: "hidden items-center justify-end sm:flex", children: /* @__PURE__ */ jsx15(
2212
+ Text11,
2272
2213
  {
2273
2214
  size: "small",
2274
2215
  leading: "compact",
@@ -2277,7 +2218,7 @@ var Payment = ({
2277
2218
  children: payment.provider_id
2278
2219
  }
2279
2220
  ) }),
2280
- /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx14(
2221
+ /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx15(
2281
2222
  StatusBadge3,
2282
2223
  {
2283
2224
  color,
@@ -2286,8 +2227,8 @@ var Payment = ({
2286
2227
  children: status
2287
2228
  }
2288
2229
  ) }),
2289
- /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx14(
2290
- Text10,
2230
+ /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx15(
2231
+ Text11,
2291
2232
  {
2292
2233
  size: "small",
2293
2234
  leading: "compact",
@@ -2295,7 +2236,7 @@ var Payment = ({
2295
2236
  children: getLocaleAmount(payment.amount, payment.currency_code)
2296
2237
  }
2297
2238
  ) }),
2298
- /* @__PURE__ */ jsx14(
2239
+ /* @__PURE__ */ jsx15(
2299
2240
  ActionMenu,
2300
2241
  {
2301
2242
  groups: [
@@ -2303,7 +2244,7 @@ var Payment = ({
2303
2244
  actions: [
2304
2245
  {
2305
2246
  label: t("orders.payment.createRefund"),
2306
- icon: /* @__PURE__ */ jsx14(XCircle3, {}),
2247
+ icon: /* @__PURE__ */ jsx15(XCircle2, {}),
2307
2248
  to: `/orders/${order.id}/refund?paymentId=${payment.id}`,
2308
2249
  disabled: !payment.captured_at || !!payment.canceled_at || totalRefunded >= payment.amount
2309
2250
  }
@@ -2316,24 +2257,24 @@ var Payment = ({
2316
2257
  ]
2317
2258
  }
2318
2259
  ),
2319
- showCapture && /* @__PURE__ */ jsxs14(
2260
+ showCapture && /* @__PURE__ */ jsxs15(
2320
2261
  "div",
2321
2262
  {
2322
2263
  className: "flex items-center justify-between bg-ui-bg-subtle px-6 py-4",
2323
2264
  "data-testid": `order-payment-${payment.id}-capture-section`,
2324
2265
  children: [
2325
- /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-x-2", children: [
2326
- /* @__PURE__ */ jsx14(ArrowDownRightMini, { className: "shrink-0 text-ui-fg-muted" }),
2327
- /* @__PURE__ */ jsx14(Text10, { size: "small", leading: "compact", children: /* @__PURE__ */ jsx14(
2266
+ /* @__PURE__ */ jsxs15("div", { className: "flex items-center gap-x-2", children: [
2267
+ /* @__PURE__ */ jsx15(ArrowDownRightMini, { className: "shrink-0 text-ui-fg-muted" }),
2268
+ /* @__PURE__ */ jsx15(Text11, { size: "small", leading: "compact", children: /* @__PURE__ */ jsx15(
2328
2269
  Trans,
2329
2270
  {
2330
2271
  i18nKey: "orders.payment.isReadyToBeCaptured",
2331
- components: [/* @__PURE__ */ jsx14(display_id_default, { id: payment.id }, payment.id)]
2272
+ components: [/* @__PURE__ */ jsx15(display_id_default, { id: payment.id }, payment.id)]
2332
2273
  }
2333
2274
  ) })
2334
2275
  ] }),
2335
- /* @__PURE__ */ jsxs14(
2336
- Button7,
2276
+ /* @__PURE__ */ jsxs15(
2277
+ Button6,
2337
2278
  {
2338
2279
  className: "shrink-0",
2339
2280
  size: "small",
@@ -2341,15 +2282,15 @@ var Payment = ({
2341
2282
  onClick: handleCapture,
2342
2283
  "data-testid": `order-payment-${payment.id}-capture-button`,
2343
2284
  children: [
2344
- /* @__PURE__ */ jsx14("span", { className: "hidden sm:block", children: t("orders.payment.capture") }),
2345
- /* @__PURE__ */ jsx14("span", { className: "sm:hidden", children: t("orders.payment.capture_short") })
2285
+ /* @__PURE__ */ jsx15("span", { className: "hidden sm:block", children: t("orders.payment.capture") }),
2286
+ /* @__PURE__ */ jsx15("span", { className: "sm:hidden", children: t("orders.payment.capture_short") })
2346
2287
  ]
2347
2288
  }
2348
2289
  )
2349
2290
  ]
2350
2291
  }
2351
2292
  ),
2352
- refunds.map((refund) => /* @__PURE__ */ jsx14(Refund, { refund, currencyCode }, refund.id))
2293
+ refunds.map((refund) => /* @__PURE__ */ jsx15(Refund, { refund, currencyCode }, refund.id))
2353
2294
  ]
2354
2295
  }
2355
2296
  );
@@ -2362,31 +2303,31 @@ var CreditLine = ({
2362
2303
  return null;
2363
2304
  }
2364
2305
  const prettyReference = creditLine.reference?.split("_").join(" ").split("-").join(" ");
2365
- const prettyReferenceId = creditLine.reference_id ? /* @__PURE__ */ jsx14(display_id_default, { id: creditLine.reference_id }) : null;
2366
- return /* @__PURE__ */ jsx14("div", { className: "divide-y divide-dashed", children: /* @__PURE__ */ jsxs14("div", { className: "grid grid-cols-[1fr_1fr_20px] items-center gap-x-4 px-6 py-4 text-ui-fg-subtle sm:grid-cols-[1fr_1fr_1fr_20px]", children: [
2367
- /* @__PURE__ */ jsxs14("div", { className: "w-full min-w-[60px] overflow-hidden", children: [
2368
- /* @__PURE__ */ jsx14(
2369
- Text10,
2306
+ const prettyReferenceId = creditLine.reference_id ? /* @__PURE__ */ jsx15(display_id_default, { id: creditLine.reference_id }) : null;
2307
+ return /* @__PURE__ */ jsx15("div", { className: "divide-y", children: /* @__PURE__ */ jsxs15("div", { className: "grid grid-cols-[1fr_1fr_20px] items-center gap-x-4 px-6 py-4 text-ui-fg-subtle sm:grid-cols-[1fr_1fr_1fr_20px]", children: [
2308
+ /* @__PURE__ */ jsxs15("div", { className: "w-full min-w-[60px] overflow-hidden", children: [
2309
+ /* @__PURE__ */ jsx15(
2310
+ Text11,
2370
2311
  {
2371
2312
  size: "small",
2372
2313
  leading: "compact",
2373
2314
  weight: "plus",
2374
2315
  className: "truncate",
2375
- children: /* @__PURE__ */ jsx14(display_id_default, { id: creditLine.id })
2316
+ children: /* @__PURE__ */ jsx15(display_id_default, { id: creditLine.id })
2376
2317
  }
2377
2318
  ),
2378
- /* @__PURE__ */ jsx14(Text10, { size: "small", leading: "compact", children: creditLine.created_at ? format2(
2319
+ /* @__PURE__ */ jsx15(Text11, { size: "small", leading: "compact", children: creditLine.created_at ? format2(
2379
2320
  new Date(creditLine.created_at),
2380
2321
  "dd MMM, yyyy, HH:mm:ss"
2381
2322
  ) : "-" })
2382
2323
  ] }),
2383
- /* @__PURE__ */ jsx14("div", { className: "hidden items-center justify-end sm:flex", children: /* @__PURE__ */ jsxs14(Text10, { size: "small", leading: "compact", className: "capitalize", children: [
2324
+ /* @__PURE__ */ jsx15("div", { className: "hidden items-center justify-end sm:flex", children: /* @__PURE__ */ jsxs15(Text11, { size: "small", leading: "compact", className: "capitalize", children: [
2384
2325
  prettyReference,
2385
2326
  " (",
2386
2327
  prettyReferenceId,
2387
2328
  ")"
2388
2329
  ] }) }),
2389
- /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx14(Text10, { size: "small", leading: "compact", children: getLocaleAmount(creditLine.amount, currencyCode) }) })
2330
+ /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx15(Text11, { size: "small", leading: "compact", children: getLocaleAmount(creditLine.amount, currencyCode) }) })
2390
2331
  ] }) });
2391
2332
  };
2392
2333
  var PaymentBreakdown = ({
@@ -2409,15 +2350,15 @@ var PaymentBreakdown = ({
2409
2350
  }
2410
2351
  return { event: entry, type };
2411
2352
  });
2412
- return /* @__PURE__ */ jsx14(
2353
+ return /* @__PURE__ */ jsx15(
2413
2354
  "div",
2414
2355
  {
2415
- className: "flex flex-col divide-y divide-dashed",
2356
+ className: "flex flex-col divide-y",
2416
2357
  "data-testid": "order-payment-breakdown",
2417
2358
  children: entries.map(({ type, event }) => {
2418
2359
  switch (type) {
2419
2360
  case "payment":
2420
- return /* @__PURE__ */ jsx14(
2361
+ return /* @__PURE__ */ jsx15(
2421
2362
  Payment,
2422
2363
  {
2423
2364
  order,
@@ -2430,7 +2371,7 @@ var PaymentBreakdown = ({
2430
2371
  event.id
2431
2372
  );
2432
2373
  case "refund":
2433
- return /* @__PURE__ */ jsx14(
2374
+ return /* @__PURE__ */ jsx15(
2434
2375
  Refund,
2435
2376
  {
2436
2377
  refund: event,
@@ -2439,7 +2380,7 @@ var PaymentBreakdown = ({
2439
2380
  event.id
2440
2381
  );
2441
2382
  case "credit_line_refund":
2442
- return /* @__PURE__ */ jsx14(
2383
+ return /* @__PURE__ */ jsx15(
2443
2384
  CreditLine,
2444
2385
  {
2445
2386
  creditLine: event,
@@ -2453,36 +2394,36 @@ var PaymentBreakdown = ({
2453
2394
  );
2454
2395
  };
2455
2396
  var Total = ({ order }) => {
2456
- const { t } = useTranslation14();
2397
+ const { t } = useTranslation15();
2457
2398
  const totalPending = getTotalPending(order.payment_collections);
2458
- return /* @__PURE__ */ jsxs14(
2399
+ return /* @__PURE__ */ jsxs15(
2459
2400
  "div",
2460
2401
  {
2461
2402
  className: "flex flex-col gap-y-4 px-6 py-4",
2462
2403
  "data-testid": "order-payment-total",
2463
2404
  children: [
2464
- /* @__PURE__ */ jsxs14(
2405
+ /* @__PURE__ */ jsxs15(
2465
2406
  "div",
2466
2407
  {
2467
2408
  className: "flex items-center justify-between",
2468
2409
  "data-testid": "order-payment-total-paid",
2469
2410
  children: [
2470
- /* @__PURE__ */ jsx14(Text10, { size: "small", weight: "plus", leading: "compact", children: t("orders.payment.totalPaidByCustomer") }),
2471
- /* @__PURE__ */ jsx14(Text10, { size: "small", weight: "plus", leading: "compact", children: getStylizedAmount(
2411
+ /* @__PURE__ */ jsx15(Text11, { size: "small", weight: "plus", leading: "compact", children: t("orders.payment.totalPaidByCustomer") }),
2412
+ /* @__PURE__ */ jsx15(Text11, { size: "small", weight: "plus", leading: "compact", children: getStylizedAmount(
2472
2413
  getTotalCaptured(order.payment_collections),
2473
2414
  order.currency_code
2474
2415
  ) })
2475
2416
  ]
2476
2417
  }
2477
2418
  ),
2478
- order.status !== "canceled" && totalPending > 0 && /* @__PURE__ */ jsxs14(
2419
+ order.status !== "canceled" && totalPending > 0 && /* @__PURE__ */ jsxs15(
2479
2420
  "div",
2480
2421
  {
2481
2422
  className: "flex items-center justify-between",
2482
2423
  "data-testid": "order-payment-total-pending",
2483
2424
  children: [
2484
- /* @__PURE__ */ jsx14(Text10, { size: "small", weight: "plus", leading: "compact", children: "Total pending" }),
2485
- /* @__PURE__ */ jsx14(Text10, { size: "small", weight: "plus", leading: "compact", children: getStylizedAmount(totalPending, order.currency_code) })
2425
+ /* @__PURE__ */ jsx15(Text11, { size: "small", weight: "plus", leading: "compact", children: "Total pending" }),
2426
+ /* @__PURE__ */ jsx15(Text11, { size: "small", weight: "plus", leading: "compact", children: getStylizedAmount(totalPending, order.currency_code) })
2486
2427
  ]
2487
2428
  }
2488
2429
  )
@@ -2492,12 +2433,11 @@ var Total = ({ order }) => {
2492
2433
  };
2493
2434
 
2494
2435
  // src/pages/orders/order-detail/components/order-summary-section/order-summary-section.tsx
2495
- import { useMemo as useMemo3, useState as useState6 } from "react";
2496
- import { useTranslation as useTranslation17 } from "react-i18next";
2436
+ import { useMemo as useMemo4, useState as useState6 } from "react";
2437
+ import { useTranslation as useTranslation18 } from "react-i18next";
2497
2438
  import { Link as Link3 } from "react-router-dom";
2498
2439
  import {
2499
2440
  ArrowDownRightMini as ArrowDownRightMini2,
2500
- ArrowLongRight,
2501
2441
  ArrowPath as ArrowPath3,
2502
2442
  ArrowUturnLeft as ArrowUturnLeft2,
2503
2443
  DocumentText as DocumentText2,
@@ -2507,16 +2447,16 @@ import {
2507
2447
  } from "@medusajs/icons";
2508
2448
  import {
2509
2449
  Badge as Badge4,
2510
- Button as Button8,
2450
+ Button as Button7,
2511
2451
  clx as clx3,
2512
- Container as Container10,
2452
+ Container as Container11,
2513
2453
  Copy as Copy5,
2514
- Heading as Heading10,
2454
+ Heading as Heading11,
2515
2455
  StatusBadge as StatusBadge4,
2516
- Text as Text12,
2517
- toast as toast10,
2456
+ Text as Text13,
2457
+ toast as toast9,
2518
2458
  Tooltip as Tooltip6,
2519
- usePrompt as usePrompt5
2459
+ usePrompt as usePrompt4
2520
2460
  } from "@medusajs/ui";
2521
2461
  import { format as format3 } from "date-fns";
2522
2462
 
@@ -2528,12 +2468,12 @@ var getTotalCreditLines = (creditLines) => creditLines.reduce((acc, creditLine)
2528
2468
 
2529
2469
  // src/pages/orders/order-detail/components/order-summary-section/return-info-popover.tsx
2530
2470
  import { InformationCircleSolid } from "@medusajs/icons";
2531
- import { Badge as Badge2, Popover as Popover3, Text as Text11 } from "@medusajs/ui";
2471
+ import { Badge as Badge2, Popover as Popover3, Text as Text12 } from "@medusajs/ui";
2532
2472
  import { useState as useState5 } from "react";
2533
- import { useTranslation as useTranslation15 } from "react-i18next";
2534
- import { jsx as jsx15, jsxs as jsxs15 } from "react/jsx-runtime";
2473
+ import { useTranslation as useTranslation16 } from "react-i18next";
2474
+ import { jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
2535
2475
  function ReturnInfoPopover({ orderReturn }) {
2536
- const { t } = useTranslation15();
2476
+ const { t } = useTranslation16();
2537
2477
  const [open, setOpen] = useState5(false);
2538
2478
  const { getFullDate } = useDate();
2539
2479
  const handleMouseEnter = () => {
@@ -2555,36 +2495,36 @@ function ReturnInfoPopover({ orderReturn }) {
2555
2495
  if (typeof orderReturn !== "object") {
2556
2496
  return;
2557
2497
  }
2558
- return /* @__PURE__ */ jsxs15(Popover3, { open, children: [
2559
- /* @__PURE__ */ jsx15(
2498
+ return /* @__PURE__ */ jsxs16(Popover3, { open, children: [
2499
+ /* @__PURE__ */ jsx16(
2560
2500
  Popover3.Trigger,
2561
2501
  {
2562
2502
  onMouseEnter: handleMouseEnter,
2563
2503
  onMouseLeave: handleMouseLeave,
2564
2504
  autoFocus: false,
2565
2505
  className: "align-sub focus-visible:outline-none",
2566
- children: /* @__PURE__ */ jsx15(InformationCircleSolid, {})
2506
+ children: /* @__PURE__ */ jsx16(InformationCircleSolid, {})
2567
2507
  }
2568
2508
  ),
2569
- /* @__PURE__ */ jsx15(
2509
+ /* @__PURE__ */ jsx16(
2570
2510
  Popover3.Content,
2571
2511
  {
2572
2512
  align: "center",
2573
2513
  side: "top",
2574
2514
  className: "bg-ui-bg-component p-2 focus-visible:outline-none",
2575
- children: /* @__PURE__ */ jsxs15("div", { className: "", children: [
2576
- /* @__PURE__ */ jsxs15(Badge2, { size: "2xsmall", className: "mb-2", rounded: "full", children: [
2515
+ children: /* @__PURE__ */ jsxs16("div", { className: "", children: [
2516
+ /* @__PURE__ */ jsxs16(Badge2, { size: "2xsmall", className: "mb-2", rounded: "full", children: [
2577
2517
  returnType,
2578
2518
  ": #",
2579
2519
  returnTypeId.slice(-7)
2580
2520
  ] }),
2581
- /* @__PURE__ */ jsxs15(Text11, { size: "xsmall", children: [
2582
- /* @__PURE__ */ jsx15("span", { className: "text-ui-fg-subtle", children: t(`orders.returns.returnRequested`) }),
2521
+ /* @__PURE__ */ jsxs16(Text12, { size: "xsmall", children: [
2522
+ /* @__PURE__ */ jsx16("span", { className: "text-ui-fg-subtle", children: t(`orders.returns.returnRequested`) }),
2583
2523
  " \xB7 ",
2584
2524
  getFullDate({ date: orderReturn.requested_at, includeTime: true })
2585
2525
  ] }),
2586
- /* @__PURE__ */ jsxs15(Text11, { size: "xsmall", children: [
2587
- /* @__PURE__ */ jsx15("span", { className: "text-ui-fg-subtle", children: t(`orders.returns.itemReceived`) }),
2526
+ /* @__PURE__ */ jsxs16(Text12, { size: "xsmall", children: [
2527
+ /* @__PURE__ */ jsx16("span", { className: "text-ui-fg-subtle", children: t(`orders.returns.itemReceived`) }),
2588
2528
  " \xB7 ",
2589
2529
  orderReturn.received_at ? getFullDate({
2590
2530
  date: orderReturn.received_at,
@@ -2601,10 +2541,10 @@ var return_info_popover_default = ReturnInfoPopover;
2601
2541
  // src/pages/orders/order-detail/components/order-summary-section/shipping-info-popover.tsx
2602
2542
  import { InformationCircleSolid as InformationCircleSolid2 } from "@medusajs/icons";
2603
2543
  import { Badge as Badge3, Tooltip as Tooltip5 } from "@medusajs/ui";
2604
- import { useTranslation as useTranslation16 } from "react-i18next";
2605
- import { jsx as jsx16, jsxs as jsxs16 } from "react/jsx-runtime";
2544
+ import { useTranslation as useTranslation17 } from "react-i18next";
2545
+ import { jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
2606
2546
  function ShippingInfoPopover({ shippingMethod }) {
2607
- const { t } = useTranslation16();
2547
+ const { t } = useTranslation17();
2608
2548
  const shippingDetail = shippingMethod?.detail;
2609
2549
  if (!shippingDetail) {
2610
2550
  return;
@@ -2622,25 +2562,25 @@ function ShippingInfoPopover({ shippingMethod }) {
2622
2562
  if (!rmaId) {
2623
2563
  return;
2624
2564
  }
2625
- return /* @__PURE__ */ jsx16(
2565
+ return /* @__PURE__ */ jsx17(
2626
2566
  Tooltip5,
2627
2567
  {
2628
- content: /* @__PURE__ */ jsxs16(Badge3, { size: "2xsmall", rounded: "full", children: [
2568
+ content: /* @__PURE__ */ jsxs17(Badge3, { size: "2xsmall", rounded: "full", children: [
2629
2569
  rmaType,
2630
2570
  ": #",
2631
2571
  rmaId.slice(-7)
2632
2572
  ] }),
2633
- children: /* @__PURE__ */ jsx16(InformationCircleSolid2, { className: "inline-block text-ui-fg-muted ml-1" })
2573
+ children: /* @__PURE__ */ jsx17(InformationCircleSolid2, { className: "inline-block text-ui-fg-muted ml-1" })
2634
2574
  }
2635
2575
  );
2636
2576
  }
2637
2577
  var shipping_info_popover_default = ShippingInfoPopover;
2638
2578
 
2639
2579
  // src/pages/orders/order-detail/components/order-summary-section/order-summary-section.tsx
2640
- import { Fragment as Fragment3, jsx as jsx17, jsxs as jsxs17 } from "react/jsx-runtime";
2580
+ import { Fragment as Fragment3, jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
2641
2581
  var OrderSummarySection = ({ order }) => {
2642
- const { t } = useTranslation17();
2643
- const prompt = usePrompt5();
2582
+ const { t } = useTranslation18();
2583
+ const prompt = usePrompt4();
2644
2584
  const { reservations } = useReservationItems(
2645
2585
  {
2646
2586
  line_item_id: order?.items?.map((i) => i.id),
@@ -2649,34 +2589,6 @@ var OrderSummarySection = ({ order }) => {
2649
2589
  { enabled: Array.isArray(order?.items) }
2650
2590
  );
2651
2591
  const { order: orderPreview } = useOrderPreview(order.id);
2652
- const { returns = [] } = useReturns({
2653
- status: "requested",
2654
- order_id: order.id,
2655
- fields: "+received_at"
2656
- });
2657
- const receivableReturns = useMemo3(
2658
- () => returns.filter((r) => !r.canceled_at),
2659
- [returns]
2660
- );
2661
- const showReturns = !!receivableReturns.length;
2662
- const showAllocateButton = useMemo3(() => {
2663
- if (!reservations) {
2664
- return false;
2665
- }
2666
- const reservationsMap = new Map(
2667
- reservations.map((r) => [r.line_item_id, r.id])
2668
- );
2669
- for (const item of order.items) {
2670
- if (item.variant?.manage_inventory) {
2671
- if (item.quantity - item.detail.fulfilled_quantity > 0) {
2672
- if (!reservationsMap.has(item.id)) {
2673
- return true;
2674
- }
2675
- }
2676
- }
2677
- }
2678
- return false;
2679
- }, [order.items, reservations]);
2680
2592
  const unpaidPaymentCollection = order.payment_collections.find(
2681
2593
  (pc) => pc.status === "not_paid"
2682
2594
  );
@@ -2711,7 +2623,7 @@ var OrderSummarySection = ({ order }) => {
2711
2623
  { order_id: order.id },
2712
2624
  {
2713
2625
  onSuccess: () => {
2714
- toast10.success(
2626
+ toast9.success(
2715
2627
  t("orders.payment.markAsPaidPaymentSuccess", {
2716
2628
  amount: formatCurrency(
2717
2629
  paymentCollection.amount,
@@ -2721,86 +2633,30 @@ var OrderSummarySection = ({ order }) => {
2721
2633
  );
2722
2634
  },
2723
2635
  onError: (error) => {
2724
- toast10.error(error.message);
2636
+ toast9.error(error.message);
2725
2637
  }
2726
2638
  }
2727
2639
  );
2728
2640
  };
2729
- return /* @__PURE__ */ jsxs17(
2730
- Container10,
2641
+ return /* @__PURE__ */ jsxs18(
2642
+ Container11,
2731
2643
  {
2732
- className: "divide-y divide-dashed p-0",
2644
+ className: "divide-y p-0",
2733
2645
  "data-testid": "order-summary-section",
2734
2646
  children: [
2735
- /* @__PURE__ */ jsx17(Header3, { order, orderPreview }),
2736
- /* @__PURE__ */ jsx17(ItemBreakdown, { order, reservations }),
2737
- /* @__PURE__ */ jsx17(CostBreakdown, { order }),
2738
- /* @__PURE__ */ jsx17(DiscountAndTotalBreakdown, { order }),
2739
- /* @__PURE__ */ jsx17(Total2, { order }),
2740
- (showAllocateButton || showReturns || showPayment || showRefund) && /* @__PURE__ */ jsxs17(
2647
+ /* @__PURE__ */ jsx18(Header3, { order, orderPreview }),
2648
+ /* @__PURE__ */ jsx18(ItemBreakdown, { order, reservations }),
2649
+ /* @__PURE__ */ jsx18(CostBreakdown, { order }),
2650
+ /* @__PURE__ */ jsx18(DiscountAndTotalBreakdown, { order }),
2651
+ /* @__PURE__ */ jsx18(Total2, { order }),
2652
+ (showPayment || showRefund) && /* @__PURE__ */ jsxs18(
2741
2653
  "div",
2742
2654
  {
2743
2655
  className: "bg-ui-bg-subtle flex items-center justify-end gap-x-2 rounded-b-xl px-4 py-4",
2744
2656
  "data-testid": "order-summary-actions",
2745
2657
  children: [
2746
- showReturns && (receivableReturns.length === 1 ? /* @__PURE__ */ jsx17(
2747
- Button8,
2748
- {
2749
- asChild: true,
2750
- variant: "secondary",
2751
- size: "small",
2752
- "data-testid": "order-summary-receive-return-button",
2753
- children: /* @__PURE__ */ jsx17(
2754
- Link3,
2755
- {
2756
- to: `/orders/${order.id}/returns/${receivableReturns[0].id}/receive`,
2757
- children: t("orders.returns.receive.action")
2758
- }
2759
- )
2760
- }
2761
- ) : /* @__PURE__ */ jsx17(
2762
- ActionMenu,
2763
- {
2764
- groups: [
2765
- {
2766
- actions: receivableReturns.map((r) => {
2767
- let id = r.id;
2768
- let returnType = "Return";
2769
- if (r.exchange_id) {
2770
- id = r.exchange_id;
2771
- returnType = "Exchange";
2772
- }
2773
- if (r.claim_id) {
2774
- id = r.claim_id;
2775
- returnType = "Claim";
2776
- }
2777
- return {
2778
- label: t("orders.returns.receive.receiveItems", {
2779
- id: `#${id.slice(-7)}`,
2780
- returnType
2781
- }),
2782
- icon: /* @__PURE__ */ jsx17(ArrowLongRight, {}),
2783
- to: `/orders/${order.id}/returns/${r.id}/receive`
2784
- };
2785
- })
2786
- }
2787
- ],
2788
- "data-testid": "order-summary-receive-returns-menu",
2789
- children: /* @__PURE__ */ jsx17(Button8, { variant: "secondary", size: "small", children: t("orders.returns.receive.action") })
2790
- }
2791
- )),
2792
- showAllocateButton && /* @__PURE__ */ jsx17(
2793
- Button8,
2794
- {
2795
- asChild: true,
2796
- variant: "secondary",
2797
- size: "small",
2798
- "data-testid": "order-summary-allocate-items-button",
2799
- children: /* @__PURE__ */ jsx17(Link3, { to: "allocate-items", children: t("orders.allocateItems.action") })
2800
- }
2801
- ),
2802
- showPayment && /* @__PURE__ */ jsx17(
2803
- Button8,
2658
+ showPayment && /* @__PURE__ */ jsx18(
2659
+ Button7,
2804
2660
  {
2805
2661
  size: "small",
2806
2662
  variant: "secondary",
@@ -2809,14 +2665,14 @@ var OrderSummarySection = ({ order }) => {
2809
2665
  children: t("orders.payment.markAsPaid")
2810
2666
  }
2811
2667
  ),
2812
- showRefund && /* @__PURE__ */ jsx17(
2813
- Button8,
2668
+ showRefund && /* @__PURE__ */ jsx18(
2669
+ Button7,
2814
2670
  {
2815
2671
  size: "small",
2816
2672
  variant: "secondary",
2817
2673
  asChild: true,
2818
2674
  "data-testid": "order-summary-refund-button",
2819
- children: /* @__PURE__ */ jsx17(Link3, { to: `/orders/${order.id}/refund`, children: t("orders.payment.refundAmount", {
2675
+ children: /* @__PURE__ */ jsx18(Link3, { to: `/orders/${order.id}/refund`, children: t("orders.payment.refundAmount", {
2820
2676
  amount: getStylizedAmount(
2821
2677
  pendingDifference * -1,
2822
2678
  order?.currency_code
@@ -2835,20 +2691,20 @@ var Header3 = ({
2835
2691
  order,
2836
2692
  orderPreview
2837
2693
  }) => {
2838
- const { t } = useTranslation17();
2694
+ const { t } = useTranslation18();
2839
2695
  const shouldDisableReturn = order.items.every(
2840
2696
  (i) => !(getReturnableQuantity(i) > 0)
2841
2697
  );
2842
2698
  const isOrderEditActive = orderPreview?.order_change?.change_type === "edit";
2843
2699
  const isOrderEditPending = orderPreview?.order_change?.change_type === "edit" && orderPreview?.order_change?.status === "pending";
2844
- return /* @__PURE__ */ jsxs17(
2700
+ return /* @__PURE__ */ jsxs18(
2845
2701
  "div",
2846
2702
  {
2847
2703
  className: "flex items-center justify-between px-6 py-4",
2848
2704
  "data-testid": "order-summary-header",
2849
2705
  children: [
2850
- /* @__PURE__ */ jsx17(Heading10, { level: "h2", "data-testid": "order-summary-heading", children: t("fields.summary") }),
2851
- /* @__PURE__ */ jsx17(
2706
+ /* @__PURE__ */ jsx18(Heading11, { level: "h2", "data-testid": "order-summary-heading", children: t("fields.summary") }),
2707
+ /* @__PURE__ */ jsx18(
2852
2708
  ActionMenu,
2853
2709
  {
2854
2710
  groups: [
@@ -2859,7 +2715,7 @@ var Header3 = ({
2859
2715
  isOrderEditPending ? "orders.summary.editOrderContinue" : "orders.summary.editOrder"
2860
2716
  ),
2861
2717
  to: `/orders/${order.id}/edits`,
2862
- icon: /* @__PURE__ */ jsx17(PencilSquare, {}),
2718
+ icon: /* @__PURE__ */ jsx18(PencilSquare, {}),
2863
2719
  disabled: order.status === "canceled" || orderPreview?.order_change && orderPreview?.order_change?.change_type !== "edit" || orderPreview?.order_change?.change_type === "edit" && orderPreview?.order_change?.status === "requested"
2864
2720
  }
2865
2721
  ]
@@ -2869,19 +2725,19 @@ var Header3 = ({
2869
2725
  {
2870
2726
  label: t("orders.returns.create"),
2871
2727
  to: `/orders/${order.id}/returns`,
2872
- icon: /* @__PURE__ */ jsx17(ArrowUturnLeft2, {}),
2728
+ icon: /* @__PURE__ */ jsx18(ArrowUturnLeft2, {}),
2873
2729
  disabled: shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.exchange_id || !!orderPreview?.order_change?.claim_id
2874
2730
  },
2875
2731
  {
2876
2732
  label: orderPreview?.order_change?.id && orderPreview?.order_change?.exchange_id ? t("orders.exchanges.manage") : t("orders.exchanges.create"),
2877
2733
  to: `/orders/${order.id}/exchanges`,
2878
- icon: /* @__PURE__ */ jsx17(ArrowPath3, {}),
2734
+ icon: /* @__PURE__ */ jsx18(ArrowPath3, {}),
2879
2735
  disabled: shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.return_id && !orderPreview?.order_change?.exchange_id || !!orderPreview?.order_change?.claim_id
2880
2736
  },
2881
2737
  {
2882
2738
  label: orderPreview?.order_change?.id && orderPreview?.order_change?.claim_id ? t("orders.claims.manage") : t("orders.claims.create"),
2883
2739
  to: `/orders/${order.id}/claims`,
2884
- icon: /* @__PURE__ */ jsx17(ExclamationCircle2, {}),
2740
+ icon: /* @__PURE__ */ jsx18(ExclamationCircle2, {}),
2885
2741
  disabled: shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.return_id && !orderPreview?.order_change?.claim_id || !!orderPreview?.order_change?.exchange_id
2886
2742
  }
2887
2743
  ]
@@ -2902,27 +2758,30 @@ var Item = ({
2902
2758
  claims,
2903
2759
  exchanges
2904
2760
  }) => {
2905
- const { t } = useTranslation17();
2906
- const isInventoryManaged = item.variant?.manage_inventory;
2907
- const hasInventoryKit = isInventoryManaged && ((item.variant?.inventory_items?.length || 0) > 1 || item.variant?.inventory_items?.some((i) => i.required_quantity > 1));
2761
+ const { t } = useTranslation18();
2762
+ const offerInventoryLinks = item.offer?.inventory_item_link ?? [];
2763
+ const isInventoryManaged = !!offerInventoryLinks.length;
2764
+ const hasInventoryKit = (item.variant?.inventory_items?.length || 0) > 1 || item.variant?.inventory_items?.some((i) => i.required_quantity > 1);
2908
2765
  const hasUnfulfilledItems = item.quantity - item.detail.fulfilled_quantity > 0;
2909
- return /* @__PURE__ */ jsxs17(Fragment3, { children: [
2910
- /* @__PURE__ */ jsxs17(
2766
+ const offerSku = item.offer?.sku ?? null;
2767
+ const captionSku = offerSku ?? item.variant_sku ?? null;
2768
+ return /* @__PURE__ */ jsxs18(Fragment3, { children: [
2769
+ /* @__PURE__ */ jsxs18(
2911
2770
  "div",
2912
2771
  {
2913
2772
  className: "text-ui-fg-subtle grid grid-cols-2 items-center gap-x-4 px-6 py-4",
2914
2773
  "data-testid": `order-summary-item-${item.id}`,
2915
2774
  children: [
2916
- /* @__PURE__ */ jsxs17(
2775
+ /* @__PURE__ */ jsxs18(
2917
2776
  "div",
2918
2777
  {
2919
2778
  className: "flex items-start gap-x-4",
2920
2779
  "data-testid": `order-summary-item-${item.id}-info`,
2921
2780
  children: [
2922
- /* @__PURE__ */ jsx17(Thumbnail, { src: item.thumbnail }),
2923
- /* @__PURE__ */ jsxs17("div", { children: [
2924
- /* @__PURE__ */ jsx17(
2925
- Text12,
2781
+ /* @__PURE__ */ jsx18(Thumbnail, { src: item.thumbnail }),
2782
+ /* @__PURE__ */ jsxs18("div", { children: [
2783
+ /* @__PURE__ */ jsx18(
2784
+ Text13,
2926
2785
  {
2927
2786
  size: "small",
2928
2787
  leading: "compact",
@@ -2931,19 +2790,19 @@ var Item = ({
2931
2790
  children: item.title
2932
2791
  }
2933
2792
  ),
2934
- item.variant_sku && /* @__PURE__ */ jsxs17(
2793
+ captionSku && /* @__PURE__ */ jsxs18(
2935
2794
  "div",
2936
2795
  {
2937
2796
  className: "flex items-center gap-x-1",
2938
2797
  "data-testid": `order-summary-item-${item.id}-sku`,
2939
2798
  children: [
2940
- /* @__PURE__ */ jsx17(Text12, { size: "small", children: item.variant_sku }),
2941
- /* @__PURE__ */ jsx17(Copy5, { content: item.variant_sku, className: "text-ui-fg-muted" })
2799
+ /* @__PURE__ */ jsx18(Text13, { size: "small", children: captionSku }),
2800
+ /* @__PURE__ */ jsx18(Copy5, { content: captionSku, className: "text-ui-fg-muted" })
2942
2801
  ]
2943
2802
  }
2944
2803
  ),
2945
- /* @__PURE__ */ jsx17(
2946
- Text12,
2804
+ /* @__PURE__ */ jsx18(
2805
+ Text13,
2947
2806
  {
2948
2807
  size: "small",
2949
2808
  "data-testid": `order-summary-item-${item.id}-options`,
@@ -2954,31 +2813,31 @@ var Item = ({
2954
2813
  ]
2955
2814
  }
2956
2815
  ),
2957
- /* @__PURE__ */ jsxs17(
2816
+ /* @__PURE__ */ jsxs18(
2958
2817
  "div",
2959
2818
  {
2960
2819
  className: "grid grid-cols-3 items-center gap-x-4",
2961
2820
  "data-testid": `order-summary-item-${item.id}-pricing`,
2962
2821
  children: [
2963
- /* @__PURE__ */ jsx17("div", { className: "flex items-center justify-end gap-x-4", children: /* @__PURE__ */ jsx17(
2964
- Text12,
2822
+ /* @__PURE__ */ jsx18("div", { className: "flex items-center justify-end gap-x-4", children: /* @__PURE__ */ jsx18(
2823
+ Text13,
2965
2824
  {
2966
2825
  size: "small",
2967
2826
  "data-testid": `order-summary-item-${item.id}-unit-price`,
2968
2827
  children: getLocaleAmount(item.unit_price, currencyCode)
2969
2828
  }
2970
2829
  ) }),
2971
- /* @__PURE__ */ jsxs17(
2830
+ /* @__PURE__ */ jsxs18(
2972
2831
  "div",
2973
2832
  {
2974
2833
  className: "flex items-center gap-x-2",
2975
2834
  "data-testid": `order-summary-item-${item.id}-quantity`,
2976
2835
  children: [
2977
- /* @__PURE__ */ jsx17("div", { className: "w-fit min-w-[27px]", children: /* @__PURE__ */ jsxs17(Text12, { size: "small", children: [
2978
- /* @__PURE__ */ jsx17("span", { className: "tabular-nums", children: item.quantity }),
2836
+ /* @__PURE__ */ jsx18("div", { className: "w-fit min-w-[27px]", children: /* @__PURE__ */ jsxs18(Text13, { size: "small", children: [
2837
+ /* @__PURE__ */ jsx18("span", { className: "tabular-nums", children: item.quantity }),
2979
2838
  "x"
2980
2839
  ] }) }),
2981
- /* @__PURE__ */ jsx17("div", { className: "overflow-visible", children: isInventoryManaged && hasUnfulfilledItems && /* @__PURE__ */ jsx17(
2840
+ /* @__PURE__ */ jsx18("div", { className: "overflow-visible", children: isInventoryManaged && hasUnfulfilledItems && /* @__PURE__ */ jsx18(
2982
2841
  StatusBadge4,
2983
2842
  {
2984
2843
  color: reservation ? "green" : "orange",
@@ -2990,8 +2849,8 @@ var Item = ({
2990
2849
  ]
2991
2850
  }
2992
2851
  ),
2993
- /* @__PURE__ */ jsx17("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx17(
2994
- Text12,
2852
+ /* @__PURE__ */ jsx18("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx18(
2853
+ Text13,
2995
2854
  {
2996
2855
  size: "small",
2997
2856
  className: "pt-[1px]",
@@ -3006,10 +2865,10 @@ var Item = ({
3006
2865
  },
3007
2866
  item.id
3008
2867
  ),
3009
- hasInventoryKit && /* @__PURE__ */ jsx17(InventoryKitBreakdown, { item }),
3010
- returns.map((r) => /* @__PURE__ */ jsx17(ReturnBreakdown, { orderReturn: r, itemId: item.id }, r.id)),
3011
- claims.map((claim) => /* @__PURE__ */ jsx17(ClaimBreakdown, { claim, itemId: item.id }, claim.id)),
3012
- exchanges.map((exchange) => /* @__PURE__ */ jsx17(
2868
+ hasInventoryKit && /* @__PURE__ */ jsx18(InventoryKitBreakdown, { item }),
2869
+ returns.map((r) => /* @__PURE__ */ jsx18(ReturnBreakdown, { orderReturn: r, itemId: item.id }, r.id)),
2870
+ claims.map((claim) => /* @__PURE__ */ jsx18(ClaimBreakdown, { claim, itemId: item.id }, claim.id)),
2871
+ exchanges.map((exchange) => /* @__PURE__ */ jsx18(
3013
2872
  ExchangeBreakdown,
3014
2873
  {
3015
2874
  exchange,
@@ -3035,13 +2894,13 @@ var ItemBreakdown = ({
3035
2894
  order_id: order.id,
3036
2895
  fields: "*items,*items.reason"
3037
2896
  });
3038
- const reservationsMap = useMemo3(
2897
+ const reservationsMap = useMemo4(
3039
2898
  () => new Map((reservations || []).map((r) => [r.line_item_id, r])),
3040
2899
  [reservations]
3041
2900
  );
3042
- return /* @__PURE__ */ jsx17("div", { "data-testid": "order-summary-items-breakdown", children: order.items?.map((item) => {
2901
+ return /* @__PURE__ */ jsx18("div", { "data-testid": "order-summary-items-breakdown", children: order.items?.map((item) => {
3043
2902
  const reservation = reservationsMap.get(item.id);
3044
- return /* @__PURE__ */ jsx17(
2903
+ return /* @__PURE__ */ jsx18(
3045
2904
  Item,
3046
2905
  {
3047
2906
  item,
@@ -3060,22 +2919,22 @@ var Cost = ({
3060
2919
  value,
3061
2920
  secondaryValue,
3062
2921
  tooltip
3063
- }) => /* @__PURE__ */ jsxs17("div", { className: "grid grid-cols-3 items-center", children: [
3064
- /* @__PURE__ */ jsxs17(Text12, { size: "small", leading: "compact", children: [
2922
+ }) => /* @__PURE__ */ jsxs18("div", { className: "grid grid-cols-3 items-center", children: [
2923
+ /* @__PURE__ */ jsxs18(Text13, { size: "small", leading: "compact", children: [
3065
2924
  label,
3066
2925
  " ",
3067
2926
  tooltip
3068
2927
  ] }),
3069
- /* @__PURE__ */ jsx17("div", { className: "text-right", children: /* @__PURE__ */ jsx17(Text12, { size: "small", leading: "compact", children: secondaryValue }) }),
3070
- /* @__PURE__ */ jsx17("div", { className: "text-right", children: /* @__PURE__ */ jsx17(Text12, { size: "small", leading: "compact", children: value }) })
2928
+ /* @__PURE__ */ jsx18("div", { className: "text-right", children: /* @__PURE__ */ jsx18(Text13, { size: "small", leading: "compact", children: secondaryValue }) }),
2929
+ /* @__PURE__ */ jsx18("div", { className: "text-right", children: /* @__PURE__ */ jsx18(Text13, { size: "small", leading: "compact", children: value }) })
3071
2930
  ] });
3072
2931
  var CostBreakdown = ({
3073
2932
  order
3074
2933
  }) => {
3075
- const { t } = useTranslation17();
2934
+ const { t } = useTranslation18();
3076
2935
  const [isTaxOpen, setIsTaxOpen] = useState6(false);
3077
2936
  const [isShippingOpen, setIsShippingOpen] = useState6(false);
3078
- const taxCodes = useMemo3(() => {
2937
+ const taxCodes = useMemo4(() => {
3079
2938
  const taxCodeMap = {};
3080
2939
  order.items.forEach((item) => {
3081
2940
  item.tax_lines?.forEach((line) => {
@@ -3100,32 +2959,32 @@ var CostBreakdown = ({
3100
2959
  return taxCodeMap;
3101
2960
  }, [order]);
3102
2961
  const hasTaxes = !!Object.keys(taxCodes).length;
3103
- return /* @__PURE__ */ jsxs17(
2962
+ return /* @__PURE__ */ jsxs18(
3104
2963
  "div",
3105
2964
  {
3106
2965
  className: "text-ui-fg-subtle flex flex-col gap-y-2 px-6 py-4",
3107
2966
  "data-testid": "order-summary-cost-breakdown",
3108
2967
  children: [
3109
- /* @__PURE__ */ jsx17(
2968
+ /* @__PURE__ */ jsx18(
3110
2969
  Cost,
3111
2970
  {
3112
2971
  label: t("orders.summary.itemSubtotal"),
3113
2972
  value: getLocaleAmount(order.item_subtotal, order.currency_code)
3114
2973
  }
3115
2974
  ),
3116
- /* @__PURE__ */ jsx17(
2975
+ /* @__PURE__ */ jsx18(
3117
2976
  Cost,
3118
2977
  {
3119
2978
  label: (
3120
2979
  // oxlint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
3121
- /* @__PURE__ */ jsxs17(
2980
+ /* @__PURE__ */ jsxs18(
3122
2981
  "span",
3123
2982
  {
3124
2983
  onClick: () => setIsShippingOpen((o) => !o),
3125
2984
  className: "flex cursor-pointer items-center gap-1",
3126
2985
  children: [
3127
- /* @__PURE__ */ jsx17("span", { children: t("orders.summary.shippingSubtotal") }),
3128
- /* @__PURE__ */ jsx17(
2986
+ /* @__PURE__ */ jsx18("span", { children: t("orders.summary.shippingSubtotal") }),
2987
+ /* @__PURE__ */ jsx18(
3129
2988
  TriangleDownMini,
3130
2989
  {
3131
2990
  style: {
@@ -3140,30 +2999,30 @@ var CostBreakdown = ({
3140
2999
  value: getLocaleAmount(order.shipping_subtotal, order.currency_code)
3141
3000
  }
3142
3001
  ),
3143
- isShippingOpen && /* @__PURE__ */ jsx17("div", { className: "flex flex-col gap-1 pl-5", children: (order.shipping_methods || []).sort(
3002
+ isShippingOpen && /* @__PURE__ */ jsx18("div", { className: "flex flex-col gap-1 pl-5", children: (order.shipping_methods || []).sort(
3144
3003
  (m1, m2) => m1.created_at.localeCompare(m2.created_at)
3145
3004
  ).map((sm, i) => {
3146
- return /* @__PURE__ */ jsxs17(
3005
+ return /* @__PURE__ */ jsxs18(
3147
3006
  "div",
3148
3007
  {
3149
3008
  className: "flex items-center justify-between gap-x-2",
3150
3009
  children: [
3151
- /* @__PURE__ */ jsx17("div", { children: /* @__PURE__ */ jsxs17("span", { className: "txt-small", children: [
3010
+ /* @__PURE__ */ jsx18("div", { children: /* @__PURE__ */ jsxs18("span", { className: "txt-small", children: [
3152
3011
  sm.name,
3153
3012
  sm.detail.return_id && ` (${t("fields.returnShipping")})`,
3154
3013
  " ",
3155
- /* @__PURE__ */ jsx17(shipping_info_popover_default, { shippingMethod: sm }, i)
3014
+ /* @__PURE__ */ jsx18(shipping_info_popover_default, { shippingMethod: sm }, i)
3156
3015
  ] }) }),
3157
- /* @__PURE__ */ jsx17("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx17("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
3158
- /* @__PURE__ */ jsx17("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(sm.subtotal, order.currency_code) })
3016
+ /* @__PURE__ */ jsx18("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx18("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
3017
+ /* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(sm.subtotal, order.currency_code) })
3159
3018
  ]
3160
3019
  },
3161
3020
  sm.id
3162
3021
  );
3163
3022
  }) }),
3164
- /* @__PURE__ */ jsxs17(Fragment3, { children: [
3165
- /* @__PURE__ */ jsxs17("div", { className: "flex justify-between", children: [
3166
- /* @__PURE__ */ jsxs17(
3023
+ /* @__PURE__ */ jsxs18(Fragment3, { children: [
3024
+ /* @__PURE__ */ jsxs18("div", { className: "flex justify-between", children: [
3025
+ /* @__PURE__ */ jsxs18(
3167
3026
  "div",
3168
3027
  {
3169
3028
  onClick: () => hasTaxes && setIsTaxOpen((o) => !o),
@@ -3171,8 +3030,8 @@ var CostBreakdown = ({
3171
3030
  "cursor-pointer": hasTaxes
3172
3031
  }),
3173
3032
  children: [
3174
- /* @__PURE__ */ jsx17("span", { className: "txt-small select-none", children: t("orders.summary.taxTotal") }),
3175
- hasTaxes && /* @__PURE__ */ jsx17(
3033
+ /* @__PURE__ */ jsx18("span", { className: "txt-small select-none", children: t("orders.summary.taxTotal") }),
3034
+ hasTaxes && /* @__PURE__ */ jsx18(
3176
3035
  TriangleDownMini,
3177
3036
  {
3178
3037
  style: {
@@ -3183,34 +3042,34 @@ var CostBreakdown = ({
3183
3042
  ]
3184
3043
  }
3185
3044
  ),
3186
- /* @__PURE__ */ jsx17("div", { className: "text-right", children: /* @__PURE__ */ jsx17(Text12, { size: "small", leading: "compact", children: getLocaleAmount(order.original_tax_total, order.currency_code) }) })
3045
+ /* @__PURE__ */ jsx18("div", { className: "text-right", children: /* @__PURE__ */ jsx18(Text13, { size: "small", leading: "compact", children: getLocaleAmount(order.original_tax_total, order.currency_code) }) })
3187
3046
  ] }),
3188
- isTaxOpen && /* @__PURE__ */ jsx17("div", { className: "flex flex-col gap-1 pl-5", children: Object.entries(taxCodes).map(([code, { total, rate }]) => {
3189
- return /* @__PURE__ */ jsxs17(
3047
+ isTaxOpen && /* @__PURE__ */ jsx18("div", { className: "flex flex-col gap-1 pl-5", children: Object.entries(taxCodes).map(([code, { total, rate }]) => {
3048
+ return /* @__PURE__ */ jsxs18(
3190
3049
  "div",
3191
3050
  {
3192
3051
  className: "flex items-center justify-between gap-x-2",
3193
3052
  children: [
3194
- /* @__PURE__ */ jsxs17("div", { className: "flex gap-1", children: [
3195
- /* @__PURE__ */ jsx17("span", { className: "txt-small", children: code }),
3196
- /* @__PURE__ */ jsxs17("span", { className: "txt-small", children: [
3053
+ /* @__PURE__ */ jsxs18("div", { className: "flex gap-1", children: [
3054
+ /* @__PURE__ */ jsx18("span", { className: "txt-small", children: code }),
3055
+ /* @__PURE__ */ jsxs18("span", { className: "txt-small", children: [
3197
3056
  "(",
3198
3057
  formatPercentage(rate),
3199
3058
  ")"
3200
3059
  ] })
3201
3060
  ] }),
3202
- /* @__PURE__ */ jsx17("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx17("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
3203
- /* @__PURE__ */ jsx17("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(total, order.currency_code) })
3061
+ /* @__PURE__ */ jsx18("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx18("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
3062
+ /* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(total, order.currency_code) })
3204
3063
  ]
3205
3064
  },
3206
3065
  code
3207
3066
  );
3208
3067
  }) })
3209
3068
  ] }),
3210
- /* @__PURE__ */ jsxs17("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
3211
- /* @__PURE__ */ jsx17(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.total") }),
3212
- /* @__PURE__ */ jsx17(
3213
- Text12,
3069
+ /* @__PURE__ */ jsxs18("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
3070
+ /* @__PURE__ */ jsx18(Text13, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.total") }),
3071
+ /* @__PURE__ */ jsx18(
3072
+ Text13,
3214
3073
  {
3215
3074
  className: "text-ui-fg-subtle text-bold",
3216
3075
  size: "small",
@@ -3226,11 +3085,11 @@ var CostBreakdown = ({
3226
3085
  var DiscountAndTotalBreakdown = ({
3227
3086
  order
3228
3087
  }) => {
3229
- const { t } = useTranslation17();
3088
+ const { t } = useTranslation18();
3230
3089
  const [isDiscountOpen, setIsDiscountOpen] = useState6(false);
3231
3090
  const [isCreditLinesOpen, setIsCreditLinesOpen] = useState6(false);
3232
3091
  const creditLines = order.credit_lines ?? [];
3233
- const discounts = useMemo3(() => {
3092
+ const discounts = useMemo4(() => {
3234
3093
  const discounts2 = [];
3235
3094
  if (order.item_discount_total) {
3236
3095
  discounts2.push({
@@ -3258,18 +3117,18 @@ var DiscountAndTotalBreakdown = ({
3258
3117
  }, [order]);
3259
3118
  const hasDiscount = discounts.length > 0;
3260
3119
  const hasCreditLines = creditLines.length > 0;
3261
- return /* @__PURE__ */ jsxs17(
3120
+ return /* @__PURE__ */ jsxs18(
3262
3121
  "div",
3263
3122
  {
3264
3123
  className: "text-ui-fg-subtle flex flex-col gap-y-2 px-6 py-4",
3265
3124
  "data-testid": "order-summary-discount-breakdown",
3266
3125
  children: [
3267
- /* @__PURE__ */ jsx17(
3126
+ /* @__PURE__ */ jsx18(
3268
3127
  Cost,
3269
3128
  {
3270
3129
  label: (
3271
3130
  // oxlint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
3272
- /* @__PURE__ */ jsxs17(
3131
+ /* @__PURE__ */ jsxs18(
3273
3132
  "span",
3274
3133
  {
3275
3134
  onClick: () => hasDiscount && setIsDiscountOpen((o) => !o),
@@ -3278,8 +3137,8 @@ var DiscountAndTotalBreakdown = ({
3278
3137
  }),
3279
3138
  "data-testid": "order-summary-discount-toggle",
3280
3139
  children: [
3281
- /* @__PURE__ */ jsx17("span", { children: t("orders.summary.discountTotal") }),
3282
- hasDiscount && /* @__PURE__ */ jsx17(
3140
+ /* @__PURE__ */ jsx18("span", { children: t("orders.summary.discountTotal") }),
3141
+ hasDiscount && /* @__PURE__ */ jsx18(
3283
3142
  TriangleDownMini,
3284
3143
  {
3285
3144
  style: {
@@ -3294,41 +3153,41 @@ var DiscountAndTotalBreakdown = ({
3294
3153
  value: getLocaleAmount(order.discount_total, order.currency_code)
3295
3154
  }
3296
3155
  ),
3297
- isDiscountOpen && /* @__PURE__ */ jsx17("div", { className: "flex flex-col gap-1 pl-5", children: discounts.map(({ type, total, codes }) => {
3298
- return /* @__PURE__ */ jsxs17(
3156
+ isDiscountOpen && /* @__PURE__ */ jsx18("div", { className: "flex flex-col gap-1 pl-5", children: discounts.map(({ type, total, codes }) => {
3157
+ return /* @__PURE__ */ jsxs18(
3299
3158
  "div",
3300
3159
  {
3301
3160
  className: "flex items-center justify-between gap-x-2",
3302
3161
  children: [
3303
- /* @__PURE__ */ jsxs17("div", { className: "flex gap-1", children: [
3304
- /* @__PURE__ */ jsx17("span", { className: "txt-small", children: t(`fields.${type}`) }),
3305
- /* @__PURE__ */ jsxs17("span", { className: "txt-small", children: [
3162
+ /* @__PURE__ */ jsxs18("div", { className: "flex gap-1", children: [
3163
+ /* @__PURE__ */ jsx18("span", { className: "txt-small", children: t(`fields.${type}`) }),
3164
+ /* @__PURE__ */ jsxs18("span", { className: "txt-small", children: [
3306
3165
  "(",
3307
3166
  codes.join(", "),
3308
3167
  ")"
3309
3168
  ] })
3310
3169
  ] }),
3311
- /* @__PURE__ */ jsx17("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx17("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
3312
- /* @__PURE__ */ jsx17("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(total, order.currency_code) })
3170
+ /* @__PURE__ */ jsx18("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx18("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
3171
+ /* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(total, order.currency_code) })
3313
3172
  ]
3314
3173
  },
3315
3174
  type
3316
3175
  );
3317
3176
  }) }),
3318
- hasCreditLines && /* @__PURE__ */ jsxs17(Fragment3, { children: [
3319
- /* @__PURE__ */ jsx17(
3177
+ hasCreditLines && /* @__PURE__ */ jsxs18(Fragment3, { children: [
3178
+ /* @__PURE__ */ jsx18(
3320
3179
  Cost,
3321
3180
  {
3322
3181
  label: (
3323
3182
  // oxlint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
3324
- /* @__PURE__ */ jsxs17(
3183
+ /* @__PURE__ */ jsxs18(
3325
3184
  "span",
3326
3185
  {
3327
3186
  onClick: () => setIsCreditLinesOpen((o) => !o),
3328
3187
  className: "flex cursor-pointer items-center gap-1",
3329
3188
  children: [
3330
- /* @__PURE__ */ jsx17("span", { children: t("orders.creditLines.title") }),
3331
- /* @__PURE__ */ jsx17(
3189
+ /* @__PURE__ */ jsx18("span", { children: t("orders.creditLines.title") }),
3190
+ /* @__PURE__ */ jsx18(
3332
3191
  TriangleDownMini,
3333
3192
  {
3334
3193
  style: {
@@ -3346,34 +3205,34 @@ var DiscountAndTotalBreakdown = ({
3346
3205
  )
3347
3206
  }
3348
3207
  ),
3349
- isCreditLinesOpen && /* @__PURE__ */ jsx17("div", { className: "flex flex-col gap-1 pl-5", children: creditLines.map((creditLine) => {
3208
+ isCreditLinesOpen && /* @__PURE__ */ jsx18("div", { className: "flex flex-col gap-1 pl-5", children: creditLines.map((creditLine) => {
3350
3209
  const prettyReference = creditLine.reference?.split("_").join(" ").split("-").join(" ");
3351
- return /* @__PURE__ */ jsxs17(
3210
+ return /* @__PURE__ */ jsxs18(
3352
3211
  "div",
3353
3212
  {
3354
3213
  className: "flex items-center justify-between gap-x-2",
3355
3214
  children: [
3356
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center", children: [
3357
- /* @__PURE__ */ jsx17(
3358
- Text12,
3215
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center", children: [
3216
+ /* @__PURE__ */ jsx18(
3217
+ Text13,
3359
3218
  {
3360
3219
  size: "small",
3361
3220
  leading: "compact",
3362
3221
  weight: "plus",
3363
3222
  className: "txt-small text-ui-fg-subtle font-medium",
3364
- children: /* @__PURE__ */ jsx17(display_id_default, { id: creditLine.id })
3223
+ children: /* @__PURE__ */ jsx18(display_id_default, { id: creditLine.id })
3365
3224
  }
3366
3225
  ),
3367
- /* @__PURE__ */ jsx17("span", { className: "txt-small text-ui-fg-subtle mx-1", children: "-" }),
3368
- /* @__PURE__ */ jsx17(
3226
+ /* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-subtle mx-1", children: "-" }),
3227
+ /* @__PURE__ */ jsx18(
3369
3228
  Tooltip6,
3370
3229
  {
3371
3230
  content: format3(
3372
3231
  new Date(creditLine.created_at),
3373
3232
  "dd MMM, yyyy, HH:mm:ss"
3374
3233
  ),
3375
- children: /* @__PURE__ */ jsx17(
3376
- Text12,
3234
+ children: /* @__PURE__ */ jsx18(
3235
+ Text13,
3377
3236
  {
3378
3237
  size: "small",
3379
3238
  leading: "compact",
@@ -3386,9 +3245,9 @@ var DiscountAndTotalBreakdown = ({
3386
3245
  )
3387
3246
  }
3388
3247
  ),
3389
- /* @__PURE__ */ jsx17("span", { className: "txt-small text-ui-fg-subtle mx-1", children: "-" }),
3390
- /* @__PURE__ */ jsxs17(
3391
- Text12,
3248
+ /* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-subtle mx-1", children: "-" }),
3249
+ /* @__PURE__ */ jsxs18(
3250
+ Text13,
3392
3251
  {
3393
3252
  size: "small",
3394
3253
  leading: "compact",
@@ -3401,8 +3260,8 @@ var DiscountAndTotalBreakdown = ({
3401
3260
  }
3402
3261
  )
3403
3262
  ] }),
3404
- /* @__PURE__ */ jsx17("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx17("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
3405
- /* @__PURE__ */ jsx17("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(
3263
+ /* @__PURE__ */ jsx18("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx18("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
3264
+ /* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-muted", children: getLocaleAmount(
3406
3265
  creditLine.amount,
3407
3266
  order.currency_code
3408
3267
  ) })
@@ -3412,10 +3271,10 @@ var DiscountAndTotalBreakdown = ({
3412
3271
  );
3413
3272
  }) })
3414
3273
  ] }),
3415
- /* @__PURE__ */ jsxs17("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
3416
- /* @__PURE__ */ jsx17(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("orders.summary.totalAfterDiscount") }),
3417
- /* @__PURE__ */ jsx17(
3418
- Text12,
3274
+ /* @__PURE__ */ jsxs18("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
3275
+ /* @__PURE__ */ jsx18(Text13, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("orders.summary.totalAfterDiscount") }),
3276
+ /* @__PURE__ */ jsx18(
3277
+ Text13,
3419
3278
  {
3420
3279
  className: "text-ui-fg-subtle text-bold",
3421
3280
  size: "small",
@@ -3429,17 +3288,17 @@ var DiscountAndTotalBreakdown = ({
3429
3288
  );
3430
3289
  };
3431
3290
  var InventoryKitBreakdown = ({ item }) => {
3432
- const { t } = useTranslation17();
3291
+ const { t } = useTranslation18();
3433
3292
  const [isOpen, setIsOpen] = useState6(false);
3434
3293
  const inventory = item.variant?.inventory_items || [];
3435
- return /* @__PURE__ */ jsxs17(Fragment3, { children: [
3436
- /* @__PURE__ */ jsxs17(
3294
+ return /* @__PURE__ */ jsxs18(Fragment3, { children: [
3295
+ /* @__PURE__ */ jsxs18(
3437
3296
  "div",
3438
3297
  {
3439
3298
  onClick: () => setIsOpen((o) => !o),
3440
3299
  className: "flex cursor-pointer items-center gap-2 border-t border-dashed px-6 py-4",
3441
3300
  children: [
3442
- /* @__PURE__ */ jsx17(
3301
+ /* @__PURE__ */ jsx18(
3443
3302
  TriangleDownMini,
3444
3303
  {
3445
3304
  style: {
@@ -3447,26 +3306,26 @@ var InventoryKitBreakdown = ({ item }) => {
3447
3306
  }
3448
3307
  }
3449
3308
  ),
3450
- /* @__PURE__ */ jsx17("span", { className: "text-ui-fg-muted txt-small select-none", children: t("orders.summary.inventoryKit", { count: inventory.length }) })
3309
+ /* @__PURE__ */ jsx18("span", { className: "text-ui-fg-muted txt-small select-none", children: t("orders.summary.inventoryKit", { count: inventory.length }) })
3451
3310
  ]
3452
3311
  }
3453
3312
  ),
3454
- isOpen && /* @__PURE__ */ jsx17("div", { className: "flex flex-col gap-1 px-6 pb-4", children: inventory.map((i) => {
3455
- return /* @__PURE__ */ jsxs17(
3313
+ isOpen && /* @__PURE__ */ jsx18("div", { className: "flex flex-col gap-1 px-6 pb-4", children: inventory.map((i) => {
3314
+ return /* @__PURE__ */ jsxs18(
3456
3315
  "div",
3457
3316
  {
3458
3317
  className: "flex items-center justify-between gap-x-2",
3459
3318
  children: [
3460
- /* @__PURE__ */ jsx17("div", { children: /* @__PURE__ */ jsxs17("span", { className: "txt-small text-ui-fg-subtle font-medium", children: [
3319
+ /* @__PURE__ */ jsx18("div", { children: /* @__PURE__ */ jsxs18("span", { className: "txt-small text-ui-fg-subtle font-medium", children: [
3461
3320
  i.inventory.title,
3462
- i.inventory.sku && /* @__PURE__ */ jsxs17("span", { className: "text-ui-fg-subtle font-normal", children: [
3321
+ i.inventory.sku && /* @__PURE__ */ jsxs18("span", { className: "text-ui-fg-subtle font-normal", children: [
3463
3322
  " ",
3464
3323
  "\u22C5 ",
3465
3324
  i.inventory.sku
3466
3325
  ] })
3467
3326
  ] }) }),
3468
- /* @__PURE__ */ jsx17("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx17("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
3469
- /* @__PURE__ */ jsxs17("span", { className: "txt-small text-ui-fg-muted", children: [
3327
+ /* @__PURE__ */ jsx18("div", { className: "relative flex-1", children: /* @__PURE__ */ jsx18("div", { className: "bottom-[calc(50% - 2px)] absolute h-[1px] w-full border-b border-dashed" }) }),
3328
+ /* @__PURE__ */ jsxs18("span", { className: "txt-small text-ui-fg-muted", children: [
3470
3329
  i.required_quantity,
3471
3330
  "x"
3472
3331
  ] })
@@ -3481,21 +3340,21 @@ var ReturnBreakdownWithDamages = ({
3481
3340
  orderReturn,
3482
3341
  itemId
3483
3342
  }) => {
3484
- const { t } = useTranslation17();
3343
+ const { t } = useTranslation18();
3485
3344
  const item = orderReturn?.items?.find((ri) => ri.item_id === itemId);
3486
3345
  const damagedQuantity = item?.damaged_quantity || 0;
3487
- return item && /* @__PURE__ */ jsxs17(
3346
+ return item && /* @__PURE__ */ jsxs18(
3488
3347
  "div",
3489
3348
  {
3490
3349
  className: "txt-compact-small-plus text-ui-fg-subtle bg-ui-bg-subtle flex flex-row justify-between gap-y-2 border-t-2 border-dotted px-6 py-4",
3491
3350
  children: [
3492
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
3493
- /* @__PURE__ */ jsx17(ArrowDownRightMini2, { className: "text-ui-fg-muted" }),
3494
- /* @__PURE__ */ jsx17(Text12, { size: "small", children: t(`orders.returns.damagedItemsReturned`, {
3351
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
3352
+ /* @__PURE__ */ jsx18(ArrowDownRightMini2, { className: "text-ui-fg-muted" }),
3353
+ /* @__PURE__ */ jsx18(Text13, { size: "small", children: t(`orders.returns.damagedItemsReturned`, {
3495
3354
  quantity: damagedQuantity
3496
3355
  }) }),
3497
- item?.note && /* @__PURE__ */ jsx17(Tooltip6, { content: item.note, children: /* @__PURE__ */ jsx17(DocumentText2, { className: "text-ui-tag-neutral-icon ml-1 inline" }) }),
3498
- item?.reason && /* @__PURE__ */ jsx17(
3356
+ item?.note && /* @__PURE__ */ jsx18(Tooltip6, { content: item.note, children: /* @__PURE__ */ jsx18(DocumentText2, { className: "text-ui-tag-neutral-icon ml-1 inline" }) }),
3357
+ item?.reason && /* @__PURE__ */ jsx18(
3499
3358
  Badge4,
3500
3359
  {
3501
3360
  size: "2xsmall",
@@ -3505,9 +3364,9 @@ var ReturnBreakdownWithDamages = ({
3505
3364
  }
3506
3365
  )
3507
3366
  ] }),
3508
- /* @__PURE__ */ jsxs17(Text12, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: [
3367
+ /* @__PURE__ */ jsxs18(Text13, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: [
3509
3368
  t(`orders.returns.damagedItemReceived`),
3510
- /* @__PURE__ */ jsx17("span", { className: "ml-2", children: /* @__PURE__ */ jsx17(return_info_popover_default, { orderReturn }) })
3369
+ /* @__PURE__ */ jsx18("span", { className: "ml-2", children: /* @__PURE__ */ jsx18(return_info_popover_default, { orderReturn }) })
3511
3370
  ] })
3512
3371
  ]
3513
3372
  },
@@ -3518,7 +3377,7 @@ var ReturnBreakdown = ({
3518
3377
  orderReturn,
3519
3378
  itemId
3520
3379
  }) => {
3521
- const { t } = useTranslation17();
3380
+ const { t } = useTranslation18();
3522
3381
  const { getRelativeDate } = useDate();
3523
3382
  if (!["requested", "received", "partially_received"].includes(
3524
3383
  orderReturn.status || ""
@@ -3528,29 +3387,29 @@ var ReturnBreakdown = ({
3528
3387
  const isRequested = orderReturn.status === "requested";
3529
3388
  const item = orderReturn?.items?.find((ri) => ri.item_id === itemId);
3530
3389
  const damagedQuantity = item?.damaged_quantity || 0;
3531
- return item && /* @__PURE__ */ jsxs17(Fragment3, { children: [
3532
- damagedQuantity > 0 && /* @__PURE__ */ jsx17(
3390
+ return item && /* @__PURE__ */ jsxs18(Fragment3, { children: [
3391
+ damagedQuantity > 0 && /* @__PURE__ */ jsx18(
3533
3392
  ReturnBreakdownWithDamages,
3534
3393
  {
3535
3394
  orderReturn,
3536
3395
  itemId
3537
3396
  }
3538
3397
  ),
3539
- /* @__PURE__ */ jsxs17(
3398
+ /* @__PURE__ */ jsxs18(
3540
3399
  "div",
3541
3400
  {
3542
3401
  className: "txt-compact-small-plus text-ui-fg-subtle bg-ui-bg-subtle flex flex-row justify-between gap-y-2 border-t-2 border-dotted px-6 py-4",
3543
3402
  children: [
3544
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
3545
- /* @__PURE__ */ jsx17(ArrowDownRightMini2, { className: "text-ui-fg-muted" }),
3546
- /* @__PURE__ */ jsx17(Text12, { size: "small", children: t(
3403
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
3404
+ /* @__PURE__ */ jsx18(ArrowDownRightMini2, { className: "text-ui-fg-muted" }),
3405
+ /* @__PURE__ */ jsx18(Text13, { size: "small", children: t(
3547
3406
  `orders.returns.${isRequested ? "returnRequestedInfo" : "returnReceivedInfo"}`,
3548
3407
  {
3549
3408
  requestedItemsCount: item?.[isRequested ? "quantity" : "received_quantity"]
3550
3409
  }
3551
3410
  ) }),
3552
- item?.note && /* @__PURE__ */ jsx17(Tooltip6, { content: item.note, children: /* @__PURE__ */ jsx17(DocumentText2, { className: "text-ui-tag-neutral-icon ml-1 inline" }) }),
3553
- item?.reason && /* @__PURE__ */ jsx17(
3411
+ item?.note && /* @__PURE__ */ jsx18(Tooltip6, { content: item.note, children: /* @__PURE__ */ jsx18(DocumentText2, { className: "text-ui-tag-neutral-icon ml-1 inline" }) }),
3412
+ item?.reason && /* @__PURE__ */ jsx18(
3554
3413
  Badge4,
3555
3414
  {
3556
3415
  size: "2xsmall",
@@ -3560,13 +3419,13 @@ var ReturnBreakdown = ({
3560
3419
  }
3561
3420
  )
3562
3421
  ] }),
3563
- orderReturn && isRequested && /* @__PURE__ */ jsxs17(Text12, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: [
3422
+ orderReturn && isRequested && /* @__PURE__ */ jsxs18(Text13, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: [
3564
3423
  getRelativeDate(orderReturn.created_at),
3565
- /* @__PURE__ */ jsx17("span", { className: "ml-2", children: /* @__PURE__ */ jsx17(return_info_popover_default, { orderReturn }) })
3424
+ /* @__PURE__ */ jsx18("span", { className: "ml-2", children: /* @__PURE__ */ jsx18(return_info_popover_default, { orderReturn }) })
3566
3425
  ] }),
3567
- orderReturn && !isRequested && /* @__PURE__ */ jsxs17(Text12, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: [
3426
+ orderReturn && !isRequested && /* @__PURE__ */ jsxs18(Text13, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: [
3568
3427
  t(`orders.returns.itemReceived`),
3569
- /* @__PURE__ */ jsx17("span", { className: "ml-2", children: /* @__PURE__ */ jsx17(return_info_popover_default, { orderReturn }) })
3428
+ /* @__PURE__ */ jsx18("span", { className: "ml-2", children: /* @__PURE__ */ jsx18(return_info_popover_default, { orderReturn }) })
3570
3429
  ] })
3571
3430
  ]
3572
3431
  },
@@ -3578,26 +3437,26 @@ var ClaimBreakdown = ({
3578
3437
  claim,
3579
3438
  itemId
3580
3439
  }) => {
3581
- const { t } = useTranslation17();
3440
+ const { t } = useTranslation18();
3582
3441
  const { getRelativeDate } = useDate();
3583
3442
  const items = claim.additional_items.filter(
3584
3443
  (item) => item.item?.id === itemId
3585
3444
  );
3586
- return !!items.length && /* @__PURE__ */ jsxs17(
3445
+ return !!items.length && /* @__PURE__ */ jsxs18(
3587
3446
  "div",
3588
3447
  {
3589
3448
  className: "txt-compact-small-plus text-ui-fg-subtle bg-ui-bg-subtle flex flex-row justify-between gap-y-2 border-b-2 border-t-2 border-dotted px-6 py-4",
3590
3449
  children: [
3591
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
3592
- /* @__PURE__ */ jsx17(ArrowDownRightMini2, { className: "text-ui-fg-muted" }),
3593
- /* @__PURE__ */ jsx17(Text12, { size: "small", children: t(`orders.claims.outboundItemAdded`, {
3450
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
3451
+ /* @__PURE__ */ jsx18(ArrowDownRightMini2, { className: "text-ui-fg-muted" }),
3452
+ /* @__PURE__ */ jsx18(Text13, { size: "small", children: t(`orders.claims.outboundItemAdded`, {
3594
3453
  itemsCount: items.reduce(
3595
3454
  (acc, item) => acc = acc + item.quantity,
3596
3455
  0
3597
3456
  )
3598
3457
  }) })
3599
3458
  ] }),
3600
- /* @__PURE__ */ jsx17(Text12, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: getRelativeDate(claim.created_at) })
3459
+ /* @__PURE__ */ jsx18(Text13, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: getRelativeDate(claim.created_at) })
3601
3460
  ]
3602
3461
  },
3603
3462
  claim.id
@@ -3607,68 +3466,68 @@ var ExchangeBreakdown = ({
3607
3466
  exchange,
3608
3467
  itemId
3609
3468
  }) => {
3610
- const { t } = useTranslation17();
3469
+ const { t } = useTranslation18();
3611
3470
  const { getRelativeDate } = useDate();
3612
3471
  const items = exchange.additional_items.filter(
3613
3472
  (item) => item?.item?.id === itemId
3614
3473
  );
3615
- return !!items.length && /* @__PURE__ */ jsxs17(
3474
+ return !!items.length && /* @__PURE__ */ jsxs18(
3616
3475
  "div",
3617
3476
  {
3618
3477
  className: "txt-compact-small-plus text-ui-fg-subtle bg-ui-bg-subtle flex flex-row justify-between gap-y-2 border-b-2 border-t-2 border-dotted px-6 py-4",
3619
3478
  children: [
3620
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
3621
- /* @__PURE__ */ jsx17(ArrowDownRightMini2, { className: "text-ui-fg-muted" }),
3622
- /* @__PURE__ */ jsx17(Text12, { size: "small", children: t(`orders.exchanges.outboundItemAdded`, {
3479
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center gap-2", children: [
3480
+ /* @__PURE__ */ jsx18(ArrowDownRightMini2, { className: "text-ui-fg-muted" }),
3481
+ /* @__PURE__ */ jsx18(Text13, { size: "small", children: t(`orders.exchanges.outboundItemAdded`, {
3623
3482
  itemsCount: items.reduce(
3624
3483
  (acc, item) => acc = acc + item.quantity,
3625
3484
  0
3626
3485
  )
3627
3486
  }) })
3628
3487
  ] }),
3629
- /* @__PURE__ */ jsx17(Text12, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: getRelativeDate(exchange.created_at) })
3488
+ /* @__PURE__ */ jsx18(Text13, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: getRelativeDate(exchange.created_at) })
3630
3489
  ]
3631
3490
  },
3632
3491
  exchange.id
3633
3492
  );
3634
3493
  };
3635
3494
  var Total2 = ({ order }) => {
3636
- const { t } = useTranslation17();
3637
- return /* @__PURE__ */ jsxs17(
3495
+ const { t } = useTranslation18();
3496
+ return /* @__PURE__ */ jsxs18(
3638
3497
  "div",
3639
3498
  {
3640
3499
  className: " flex flex-col gap-y-2 px-6 py-4",
3641
3500
  "data-testid": "order-summary-total",
3642
3501
  children: [
3643
- /* @__PURE__ */ jsxs17(
3502
+ /* @__PURE__ */ jsxs18(
3644
3503
  "div",
3645
3504
  {
3646
3505
  className: "text-ui-fg-base flex items-center justify-between",
3647
3506
  "data-testid": "order-summary-paid-total",
3648
3507
  children: [
3649
- /* @__PURE__ */ jsx17(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.paidTotal") }),
3650
- /* @__PURE__ */ jsx17(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: getStylizedAmount(
3508
+ /* @__PURE__ */ jsx18(Text13, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.paidTotal") }),
3509
+ /* @__PURE__ */ jsx18(Text13, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: getStylizedAmount(
3651
3510
  getTotalCaptured(order.payment_collections || []),
3652
3511
  order.currency_code
3653
3512
  ) })
3654
3513
  ]
3655
3514
  }
3656
3515
  ),
3657
- getTotalCreditLines(order.credit_lines ?? []) > 0 && /* @__PURE__ */ jsxs17("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
3658
- /* @__PURE__ */ jsx17(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.creditTotal") }),
3659
- /* @__PURE__ */ jsx17(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: getStylizedAmount(
3516
+ getTotalCreditLines(order.credit_lines ?? []) > 0 && /* @__PURE__ */ jsxs18("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
3517
+ /* @__PURE__ */ jsx18(Text13, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.creditTotal") }),
3518
+ /* @__PURE__ */ jsx18(Text13, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: getStylizedAmount(
3660
3519
  getTotalCreditLines(order.credit_lines ?? []),
3661
3520
  order.currency_code
3662
3521
  ) })
3663
3522
  ] }),
3664
- /* @__PURE__ */ jsxs17(
3523
+ /* @__PURE__ */ jsxs18(
3665
3524
  "div",
3666
3525
  {
3667
3526
  className: "text-ui-fg-base flex items-center justify-between",
3668
3527
  "data-testid": "order-summary-outstanding-amount",
3669
3528
  children: [
3670
- /* @__PURE__ */ jsx17(
3671
- Text12,
3529
+ /* @__PURE__ */ jsx18(
3530
+ Text13,
3672
3531
  {
3673
3532
  className: "text-ui-fg-subtle text-semibold",
3674
3533
  size: "small",
@@ -3676,8 +3535,8 @@ var Total2 = ({ order }) => {
3676
3535
  children: t("orders.returns.outstandingAmount")
3677
3536
  }
3678
3537
  ),
3679
- /* @__PURE__ */ jsx17(
3680
- Text12,
3538
+ /* @__PURE__ */ jsx18(
3539
+ Text13,
3681
3540
  {
3682
3541
  className: "text-ui-fg-subtle text-bold",
3683
3542
  size: "small",
@@ -3697,21 +3556,21 @@ var Total2 = ({ order }) => {
3697
3556
  };
3698
3557
 
3699
3558
  // src/pages/orders/order-detail/components/order-remaining-orders-group-section/order-remaining-orders-group-section.tsx
3700
- import { Container as Container11, Heading as Heading11 } from "@medusajs/ui";
3559
+ import { Container as Container12, Heading as Heading12 } from "@medusajs/ui";
3701
3560
  import { createColumnHelper } from "@tanstack/react-table";
3702
- import { useMemo as useMemo4 } from "react";
3703
- import { useTranslation as useTranslation18 } from "react-i18next";
3561
+ import { useMemo as useMemo5 } from "react";
3562
+ import { useTranslation as useTranslation19 } from "react-i18next";
3704
3563
  import { useParams } from "react-router-dom";
3705
- import { jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
3564
+ import { jsx as jsx19, jsxs as jsxs19 } from "react/jsx-runtime";
3706
3565
  var DEFAULT_FIELDS2 = "id,*orders,*orders.customer,*orders.seller,*orders.sales_channel";
3707
3566
  var OrderRemainingOrdersGroupSection = () => {
3708
3567
  const { id } = useParams();
3709
- const { t } = useTranslation18();
3568
+ const { t } = useTranslation19();
3710
3569
  const { order_group, isLoading, isError, error } = useOrderGroupByOrderId(
3711
3570
  id,
3712
3571
  { fields: DEFAULT_FIELDS2 }
3713
3572
  );
3714
- const orders = useMemo4(() => {
3573
+ const orders = useMemo5(() => {
3715
3574
  const group = order_group;
3716
3575
  if (!group?.orders) return [];
3717
3576
  return group.orders.filter((o) => o.id !== id);
@@ -3731,24 +3590,24 @@ var OrderRemainingOrdersGroupSection = () => {
3731
3590
  if (!isLoading && orders.length === 0) {
3732
3591
  return null;
3733
3592
  }
3734
- return /* @__PURE__ */ jsxs18(
3735
- Container11,
3593
+ return /* @__PURE__ */ jsxs19(
3594
+ Container12,
3736
3595
  {
3737
3596
  className: "divide-y p-0",
3738
3597
  "data-testid": "order-remaining-orders-group-section",
3739
3598
  children: [
3740
- /* @__PURE__ */ jsx18(
3599
+ /* @__PURE__ */ jsx19(
3741
3600
  "div",
3742
3601
  {
3743
3602
  className: "flex items-center justify-between px-6 py-4",
3744
3603
  "data-testid": "order-remaining-orders-group-header",
3745
- children: /* @__PURE__ */ jsxs18(Heading11, { level: "h2", "data-testid": "order-remaining-orders-group-heading", children: [
3604
+ children: /* @__PURE__ */ jsxs19(Heading12, { level: "h2", "data-testid": "order-remaining-orders-group-heading", children: [
3746
3605
  t("orders.domain"),
3747
3606
  " in group"
3748
3607
  ] })
3749
3608
  }
3750
3609
  ),
3751
- /* @__PURE__ */ jsx18(
3610
+ /* @__PURE__ */ jsx19(
3752
3611
  _DataTable,
3753
3612
  {
3754
3613
  columns,
@@ -3768,35 +3627,35 @@ var OrderRemainingOrdersGroupSection = () => {
3768
3627
  };
3769
3628
  var columnHelper = createColumnHelper();
3770
3629
  var useColumns = () => {
3771
- return useMemo4(
3630
+ return useMemo5(
3772
3631
  () => [
3773
3632
  columnHelper.accessor("display_id", {
3774
- header: () => /* @__PURE__ */ jsx18(DisplayIdHeader, {}),
3775
- cell: ({ getValue }) => /* @__PURE__ */ jsx18(DisplayIdCell, { displayId: getValue() })
3633
+ header: () => /* @__PURE__ */ jsx19(DisplayIdHeader, {}),
3634
+ cell: ({ getValue }) => /* @__PURE__ */ jsx19(DisplayIdCell, { displayId: getValue() })
3776
3635
  }),
3777
3636
  columnHelper.display({
3778
3637
  id: "seller",
3779
- header: () => /* @__PURE__ */ jsx18(TextHeader, { text: "Seller" }),
3638
+ header: () => /* @__PURE__ */ jsx19(TextHeader, { text: "Store" }),
3780
3639
  cell: ({ row }) => {
3781
3640
  const seller = row.original.seller;
3782
- return /* @__PURE__ */ jsx18(TextCell, { text: seller?.name ?? "-" });
3641
+ return /* @__PURE__ */ jsx19(TextCell, { text: seller?.name ?? "-" });
3783
3642
  }
3784
3643
  }),
3785
3644
  columnHelper.accessor("created_at", {
3786
- header: () => /* @__PURE__ */ jsx18(DateHeader, {}),
3787
- cell: ({ getValue }) => /* @__PURE__ */ jsx18(DateCell, { date: new Date(getValue()) })
3645
+ header: () => /* @__PURE__ */ jsx19(DateHeader, {}),
3646
+ cell: ({ getValue }) => /* @__PURE__ */ jsx19(DateCell, { date: new Date(getValue()) })
3788
3647
  }),
3789
3648
  columnHelper.accessor("payment_status", {
3790
- header: () => /* @__PURE__ */ jsx18(PaymentStatusHeader, {}),
3791
- cell: ({ getValue }) => /* @__PURE__ */ jsx18(PaymentStatusCell, { status: getValue() })
3649
+ header: () => /* @__PURE__ */ jsx19(PaymentStatusHeader, {}),
3650
+ cell: ({ getValue }) => /* @__PURE__ */ jsx19(PaymentStatusCell, { status: getValue() })
3792
3651
  }),
3793
3652
  columnHelper.accessor("fulfillment_status", {
3794
- header: () => /* @__PURE__ */ jsx18(FulfillmentStatusHeader, {}),
3795
- cell: ({ getValue }) => /* @__PURE__ */ jsx18(FulfillmentStatusCell, { status: getValue() })
3653
+ header: () => /* @__PURE__ */ jsx19(FulfillmentStatusHeader, {}),
3654
+ cell: ({ getValue }) => /* @__PURE__ */ jsx19(FulfillmentStatusCell, { status: getValue() })
3796
3655
  }),
3797
3656
  columnHelper.accessor("total", {
3798
- header: () => /* @__PURE__ */ jsx18(TotalHeader, {}),
3799
- cell: ({ getValue, row }) => /* @__PURE__ */ jsx18(
3657
+ header: () => /* @__PURE__ */ jsx19(TotalHeader, {}),
3658
+ cell: ({ getValue, row }) => /* @__PURE__ */ jsx19(
3800
3659
  TotalCell,
3801
3660
  {
3802
3661
  currencyCode: row.original.currency_code,
@@ -3810,7 +3669,7 @@ var useColumns = () => {
3810
3669
  };
3811
3670
 
3812
3671
  // src/pages/orders/order-detail/order-detail.tsx
3813
- import { jsx as jsx19, jsxs as jsxs19 } from "react/jsx-runtime";
3672
+ import { jsx as jsx20, jsxs as jsxs20 } from "react/jsx-runtime";
3814
3673
  var Root = ({ children }) => {
3815
3674
  const initialData = useLoaderData();
3816
3675
  const { id } = useParams2();
@@ -3839,12 +3698,12 @@ var Root = ({ children }) => {
3839
3698
  id
3840
3699
  );
3841
3700
  if (isLoading || !order || isPreviewLoading) {
3842
- return /* @__PURE__ */ jsx19(TwoColumnPageSkeleton, { mainSections: 4, sidebarSections: 2, showJSON: true });
3701
+ return /* @__PURE__ */ jsx20(TwoColumnPageSkeleton, { mainSections: 4, sidebarSections: 2, showJSON: true });
3843
3702
  }
3844
3703
  if (isError) {
3845
3704
  throw error;
3846
3705
  }
3847
- return Children.count(children) > 0 ? /* @__PURE__ */ jsx19(
3706
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx20(
3848
3707
  TwoColumnPage,
3849
3708
  {
3850
3709
  data: order,
@@ -3854,7 +3713,7 @@ var Root = ({ children }) => {
3854
3713
  "data-testid": "order-detail-page",
3855
3714
  children
3856
3715
  }
3857
- ) : /* @__PURE__ */ jsxs19(
3716
+ ) : /* @__PURE__ */ jsxs20(
3858
3717
  TwoColumnPage,
3859
3718
  {
3860
3719
  data: order,
@@ -3863,20 +3722,21 @@ var Root = ({ children }) => {
3863
3722
  hasOutlet: true,
3864
3723
  "data-testid": "order-detail-page",
3865
3724
  children: [
3866
- /* @__PURE__ */ jsxs19(TwoColumnPage.Main, { "data-testid": "order-detail-main", children: [
3867
- /* @__PURE__ */ jsx19(OrderActiveEditSection, { order }),
3868
- /* @__PURE__ */ jsx19(ActiveOrderClaimSection, { orderPreview }),
3869
- /* @__PURE__ */ jsx19(ActiveOrderExchangeSection, { orderPreview }),
3870
- /* @__PURE__ */ jsx19(ActiveOrderReturnSection, { orderPreview }),
3871
- /* @__PURE__ */ jsx19(OrderGeneralSection, { order }),
3872
- /* @__PURE__ */ jsx19(OrderSummarySection, { order }),
3873
- /* @__PURE__ */ jsx19(OrderPaymentSection, { order }),
3874
- /* @__PURE__ */ jsx19(OrderFulfillmentSection, { order })
3725
+ /* @__PURE__ */ jsxs20(TwoColumnPage.Main, { "data-testid": "order-detail-main", children: [
3726
+ /* @__PURE__ */ jsx20(OrderActiveEditSection, { order }),
3727
+ /* @__PURE__ */ jsx20(ActiveOrderClaimSection, { orderPreview }),
3728
+ /* @__PURE__ */ jsx20(ActiveOrderExchangeSection, { orderPreview }),
3729
+ /* @__PURE__ */ jsx20(ActiveOrderReturnSection, { orderPreview }),
3730
+ /* @__PURE__ */ jsx20(OrderGeneralSection, { order }),
3731
+ /* @__PURE__ */ jsx20(OrderSummarySection, { order }),
3732
+ /* @__PURE__ */ jsx20(OrderCommissionSection, { order }),
3733
+ /* @__PURE__ */ jsx20(OrderPaymentSection, { order }),
3734
+ /* @__PURE__ */ jsx20(OrderFulfillmentSection, { order })
3875
3735
  ] }),
3876
- /* @__PURE__ */ jsxs19(TwoColumnPage.Sidebar, { "data-testid": "order-detail-sidebar", children: [
3877
- /* @__PURE__ */ jsx19(OrderCustomerSection, { order }),
3878
- /* @__PURE__ */ jsx19(OrderActivitySection, { order }),
3879
- /* @__PURE__ */ jsx19(OrderRemainingOrdersGroupSection, {})
3736
+ /* @__PURE__ */ jsxs20(TwoColumnPage.Sidebar, { "data-testid": "order-detail-sidebar", children: [
3737
+ /* @__PURE__ */ jsx20(OrderCustomerSection, { order }),
3738
+ /* @__PURE__ */ jsx20(OrderActivitySection, { order }),
3739
+ /* @__PURE__ */ jsx20(OrderRemainingOrdersGroupSection, {})
3880
3740
  ] })
3881
3741
  ]
3882
3742
  }