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

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 (173) hide show
  1. package/dist/{add-campaign-promotions-4QP4LF7G.js → add-campaign-promotions-KK4JMLSK.js} +3 -3
  2. package/dist/{adjust-inventory-AHIKDW7M.js → adjust-inventory-F3OTF6O6.js} +5 -5
  3. package/dist/{api-key-management-detail-ZRLG6YRB.js → api-key-management-detail-JMWPGN6M.js} +6 -6
  4. package/dist/{attribute-create-NIYUQEHQ.js → attribute-create-TJRNP5SK.js} +7 -7
  5. package/dist/{attribute-detail-GA4FDSAG.js → attribute-detail-7I2SQCDK.js} +6 -6
  6. package/dist/{attribute-edit-KJL36HQ4.js → attribute-edit-UBG6SMUF.js} +2 -2
  7. package/dist/{attribute-edit-possible-value-LGOD3ZKQ.js → attribute-edit-possible-value-3BYEPC4X.js} +2 -2
  8. package/dist/{attribute-list-A3RFO32Z.js → attribute-list-EFU4DPB5.js} +5 -5
  9. package/dist/{campaign-detail-A7ZM4Q7M.js → campaign-detail-H32E6EDD.js} +9 -9
  10. package/dist/{categories-metadata-FCV4YK74.js → categories-metadata-V37DXTVZ.js} +5 -5
  11. package/dist/{category-detail-CIEHVR4M.js → category-detail-5MRHPG6T.js} +10 -10
  12. package/dist/{category-products-AB3YAGSW.js → category-products-3KYY662O.js} +9 -9
  13. package/dist/{chunk-WUGV75DM.js → chunk-3F6U44M6.js} +1 -1
  14. package/dist/{chunk-IBX52HBP.js → chunk-3N7QXAMO.js} +1 -1
  15. package/dist/{chunk-K2C42QAV.js → chunk-4DYSSDAA.js} +4 -4
  16. package/dist/{chunk-2PUBUYFG.js → chunk-5GXPXVVD.js} +2 -2
  17. package/dist/{chunk-CIKXWLWE.js → chunk-6AYGDFNE.js} +2 -2
  18. package/dist/{chunk-G5DQCCPL.js → chunk-6LG3VL3Q.js} +2 -2
  19. package/dist/{chunk-A2GVK4VZ.js → chunk-AXVZ56UD.js} +2 -2
  20. package/dist/{chunk-2LKMOTLX.js → chunk-B7HIZN4V.js} +2 -2
  21. package/dist/{chunk-EOLSQKPV.js → chunk-BJQ4UBK7.js} +529 -480
  22. package/dist/{chunk-OMBP3YSV.js → chunk-CFBEBAQS.js} +1 -1
  23. package/dist/{chunk-FJRNNDZS.js → chunk-EASE3NLF.js} +1 -1
  24. package/dist/chunk-EG45GIE3.js +368 -0
  25. package/dist/{chunk-TWCYZF6X.js → chunk-EM5TF7YZ.js} +1 -1
  26. package/dist/{chunk-MEXH366L.js → chunk-FCLS6CKW.js} +2 -2
  27. package/dist/{chunk-ENFXIYIH.js → chunk-FYKG35MR.js} +1 -1
  28. package/dist/{chunk-VZ7GNMGX.js → chunk-GA4ZFAOV.js} +1 -1
  29. package/dist/{chunk-RZ5SFALB.js → chunk-GFUCELIZ.js} +2 -2
  30. package/dist/{chunk-OFOKVLV3.js → chunk-GHGOOZEL.js} +2 -2
  31. package/dist/{chunk-CVZA23ES.js → chunk-GNWWL47L.js} +3 -3
  32. package/dist/{chunk-MR3MLNWV.js → chunk-HYQPZADS.js} +1 -1
  33. package/dist/{chunk-DELK6EWH.js → chunk-IHTQOPB6.js} +1 -1
  34. package/dist/chunk-JEJQKTZO.js +191 -0
  35. package/dist/{chunk-5BF5JDWT.js → chunk-JWE2IW4R.js} +5 -5
  36. package/dist/chunk-KZB7LCF2.js +82 -0
  37. package/dist/{chunk-N6YOACEW.js → chunk-L5Z4JGRD.js} +1 -1
  38. package/dist/{chunk-3VDLE5GA.js → chunk-LVCIAKJI.js} +1 -1
  39. package/dist/{chunk-PE6JFXWU.js → chunk-MFIT2RX5.js} +1 -1
  40. package/dist/{chunk-ZB4TESPP.js → chunk-O62SUNK2.js} +16 -7
  41. package/dist/{chunk-Q5WTOVZZ.js → chunk-O63MLTQV.js} +71 -0
  42. package/dist/{chunk-WPVDACTL.js → chunk-OA24YN34.js} +1 -1
  43. package/dist/{chunk-3DMUKRIX.js → chunk-OXONMLRP.js} +2 -2
  44. package/dist/{chunk-LJDGVBOQ.js → chunk-PJR6W35H.js} +1 -1
  45. package/dist/chunk-PN5C4AND.js +115 -0
  46. package/dist/chunk-QR3GYYX6.js +0 -0
  47. package/dist/{chunk-VT6QIVZW.js → chunk-RMAQKNBA.js} +10 -1
  48. package/dist/{chunk-IEPH6A2W.js → chunk-RV7DWZZB.js} +2 -2
  49. package/dist/chunk-RXRDZ47F.js +103 -0
  50. package/dist/{chunk-623TMW36.js → chunk-T53YX34K.js} +1 -1
  51. package/dist/{chunk-EYFWEKFJ.js → chunk-TLOJG7LK.js} +2 -2
  52. package/dist/{chunk-7Y6A7XK6.js → chunk-UCHVBAUB.js} +2 -2
  53. package/dist/{chunk-47W2JHOE.js → chunk-UT2O7IS7.js} +2 -2
  54. package/dist/{chunk-B4K7H6DH.js → chunk-UUTACMA5.js} +1 -1
  55. package/dist/{chunk-JSMUFZZN.js → chunk-WHIYSLYW.js} +1 -1
  56. package/dist/{chunk-SEQJOCTT.js → chunk-X4N7EMFO.js} +2 -2
  57. package/dist/{chunk-RUSMGNQ6.js → chunk-X7E65HM2.js} +1 -1
  58. package/dist/{chunk-RWRL4AXD.js → chunk-XKD67CD4.js} +2 -2
  59. package/dist/{chunk-UCYSCKZV.js → chunk-Y7FNFQCU.js} +1 -6
  60. package/dist/{chunk-HEGPAGJT.js → chunk-YI7I7JFX.js} +2 -2
  61. package/dist/{chunk-EB6ZFOTO.js → chunk-YLK2WZU3.js} +2 -2
  62. package/dist/{chunk-OCRKS4Z7.js → chunk-ZDJWTF64.js} +2 -2
  63. package/dist/{chunk-T4GL73RP.js → chunk-ZG6DNI7O.js} +1 -1
  64. package/dist/{chunk-OHOWEMHO.js → chunk-ZIFHQXP3.js} +31 -25
  65. package/dist/{collection-add-products-KTUW23TD.js → collection-add-products-4EZ6W4N6.js} +9 -9
  66. package/dist/{collection-detail-TR7TDQZG.js → collection-detail-X22ZIM5S.js} +10 -10
  67. package/dist/{collection-list-FOWSOTS7.js → collection-list-6CUEOLUU.js} +9 -9
  68. package/dist/{collection-metadata-DS32TGOK.js → collection-metadata-AWJYPZKR.js} +5 -5
  69. package/dist/commission-rule-commission-edit-TA3H3EEN.js +196 -0
  70. package/dist/commission-rule-create-O7Z25SC7.js +412 -0
  71. package/dist/commission-rule-detail-I7LVSNAM.js +45 -0
  72. package/dist/commission-rule-edit-YSHDTYZY.js +342 -0
  73. package/dist/{commission-rate-list-Y5XLEO67.js → commissions-list-OUGVPED6.js} +13 -4
  74. package/dist/{customer-detail-5XGZ2K3H.js → customer-detail-6MBW3FHO.js} +6 -6
  75. package/dist/{customer-group-detail-JX3BEYFG.js → customer-group-detail-G53RB6EA.js} +5 -5
  76. package/dist/{customer-group-list-F5TFLDVH.js → customer-group-list-XDNCZ4K6.js} +5 -5
  77. package/dist/{customer-group-metadata-CHOTUAS2.js → customer-group-metadata-FWLKUHIZ.js} +5 -5
  78. package/dist/{customer-metadata-LG6HA56I.js → customer-metadata-KU4YWD3R.js} +5 -5
  79. package/dist/{customers-add-customer-group-3YKZEZKJ.js → customers-add-customer-group-5Y5XPN7C.js} +5 -5
  80. package/dist/{edit-inventory-item-5EYVQ6CM.js → edit-inventory-item-MBLHBGBH.js} +5 -5
  81. package/dist/{edit-inventory-item-attributes-7QM4YHAQ.js → edit-inventory-item-attributes-GTTGNBO4.js} +5 -5
  82. package/dist/{edit-rules-2S5H7MC2.js → edit-rules-UFGKSAJV.js} +5 -5
  83. package/dist/global-commission-edit-LCD6JJUX.js +194 -0
  84. package/dist/index.js +158 -150
  85. package/dist/{inventory-create-RBMMOSC3.js → inventory-create-4O4L6NXK.js} +5 -5
  86. package/dist/{inventory-detail-LSAJ3ZB5.js → inventory-detail-ZWHSLLLI.js} +5 -5
  87. package/dist/{inventory-metadata-OZAKLWNY.js → inventory-metadata-GZYYWU3S.js} +5 -5
  88. package/dist/{inventory-stock-WUAIUFQS.js → inventory-stock-S5B6ZZQW.js} +5 -5
  89. package/dist/{location-detail-PBCP7BBV.js → location-detail-QS7HM2KG.js} +5 -5
  90. package/dist/{location-fulfillment-providers-D4EFIF3Z.js → location-fulfillment-providers-6RUGYQ3W.js} +7 -7
  91. package/dist/{location-list-DM4WU57J.js → location-list-7RTDLHGR.js} +5 -5
  92. package/dist/{location-service-zone-shipping-option-create-T4LT4E6M.js → location-service-zone-shipping-option-create-UKULBDGM.js} +5 -5
  93. package/dist/{login-LTASZXSR.js → login-SFGV4QGP.js} +5 -5
  94. package/dist/{marketplace-detail-GSPPUVR7.js → marketplace-detail-7VPTFUPB.js} +5 -5
  95. package/dist/{marketplace-metadata-PB7JEK2K.js → marketplace-metadata-E25VT5TH.js} +5 -5
  96. package/dist/{offers-D2QQQD2F.js → offers-WYAJB75N.js} +9 -9
  97. package/dist/{order-create-claim-HND7RODU.js → order-create-claim-3AQK3FH2.js} +3 -3
  98. package/dist/{order-create-edit-LIQGALQ2.js → order-create-edit-UFD26FE2.js} +2 -2
  99. package/dist/{order-create-exchange-QE2TJ36U.js → order-create-exchange-QCYD3DC4.js} +7 -7
  100. package/dist/{order-create-refund-37JJA6MM.js → order-create-refund-TR4XMHRY.js} +5 -5
  101. package/dist/{order-create-return-AVVT3OUO.js → order-create-return-Y7QS52UL.js} +2 -2
  102. package/dist/{order-detail-A2WC2OZU.js → order-detail-FZT74HMD.js} +10 -10
  103. package/dist/{order-edit-billing-address-IPWVSYR2.js → order-edit-billing-address-OJZICMBN.js} +6 -6
  104. package/dist/{order-edit-email-ZQZNTV4P.js → order-edit-email-TH26N5HK.js} +5 -5
  105. package/dist/{order-edit-shipping-address-YPYWT3YN.js → order-edit-shipping-address-GBOUGZPD.js} +5 -5
  106. package/dist/{order-list-QR3ZVI4U.js → order-list-C5YOR6B5.js} +2 -2
  107. package/dist/{order-metadata-E25YHGCC.js → order-metadata-RT3BVTYZ.js} +5 -5
  108. package/dist/{order-request-transfer-XDNXRB66.js → order-request-transfer-3HTFPYFD.js} +5 -5
  109. package/dist/pages/index.d.ts +5 -23
  110. package/dist/pages/index.js +79 -77
  111. package/dist/{price-list-create-GBUUE3NP.js → price-list-create-XQWV352E.js} +10 -10
  112. package/dist/{price-list-detail-77FAEXXO.js → price-list-detail-347UU3LU.js} +10 -10
  113. package/dist/{price-list-prices-add-2XS5TX5X.js → price-list-prices-add-R656I6QF.js} +10 -10
  114. package/dist/{price-list-prices-edit-C2C3I64A.js → price-list-prices-edit-BOKBTLEI.js} +5 -5
  115. package/dist/{product-add-existing-attributes-NFXKW6SW.js → product-add-existing-attributes-MNGWZFGD.js} +7 -7
  116. package/dist/{product-create-AG4AYDM3.js → product-create-LMYR36NA.js} +9 -9
  117. package/dist/{product-create-variant-7DVYYUDX.js → product-create-variant-XETT2WJC.js} +3 -3
  118. package/dist/{product-detail-CNVETME5.js → product-detail-WSL4PXKK.js} +7 -7
  119. package/dist/{product-edit-attribute-GXFMVPCQ.js → product-edit-attribute-XEYHQJ6D.js} +2 -2
  120. package/dist/{product-list-KM37QJ6F.js → product-list-7YPGRGHX.js} +10 -10
  121. package/dist/{product-media-H5DAWUYR.js → product-media-H6SYBNLI.js} +2 -2
  122. package/dist/{product-metadata-4ZLL42UF.js → product-metadata-MGLJJ7QG.js} +5 -5
  123. package/dist/{product-tag-create-KKRQQT3A.js → product-tag-create-JCYAG42N.js} +5 -5
  124. package/dist/{product-tag-detail-R6UFJDCW.js → product-tag-detail-AUNKJJLP.js} +12 -12
  125. package/dist/{product-tag-edit-TISDF4FQ.js → product-tag-edit-2FREKKVN.js} +5 -5
  126. package/dist/{product-tag-list-NFPQVVMO.js → product-tag-list-IKL46JZT.js} +12 -12
  127. package/dist/{product-tag-metadata-GJFYX5HU.js → product-tag-metadata-UV3TBPXS.js} +5 -5
  128. package/dist/{product-type-detail-XJPSQDL2.js → product-type-detail-DKHKFADI.js} +13 -13
  129. package/dist/{product-type-metadata-GKVLFBF6.js → product-type-metadata-22OACFMD.js} +8 -8
  130. package/dist/{product-variant-detail-VCMC4BZP.js → product-variant-detail-MNMJBYIP.js} +5 -5
  131. package/dist/{product-variant-edit-QLDFN6LI.js → product-variant-edit-THZLEOGL.js} +7 -7
  132. package/dist/{product-variant-metadata-VZZMPRRG.js → product-variant-metadata-7N7PL7WY.js} +5 -5
  133. package/dist/{promotion-create-POBB7B23.js → promotion-create-RB3AA5GE.js} +5 -5
  134. package/dist/{promotion-detail-NSOGXQAY.js → promotion-detail-PEDTLXZ4.js} +8 -8
  135. package/dist/{promotion-list-7C3SQCSO.js → promotion-list-MCYWN5TF.js} +4 -4
  136. package/dist/{refund-reason-create-HPLJOL6S.js → refund-reason-create-YWA5XP4J.js} +5 -5
  137. package/dist/{refund-reason-edit-JI4U4RWO.js → refund-reason-edit-MBG5WL43.js} +5 -5
  138. package/dist/{refund-reason-list-SWU4B2ED.js → refund-reason-list-GPDRI2QM.js} +10 -10
  139. package/dist/{region-metadata-LDWMTB7G.js → region-metadata-WDZ7DRGU.js} +5 -5
  140. package/dist/{reservation-detail-BLPISKPA.js → reservation-detail-WTYOR6IB.js} +5 -5
  141. package/dist/{reservation-metadata-AZ265HZI.js → reservation-metadata-PJVHEJRU.js} +5 -5
  142. package/dist/{reset-password-6CAYNSJ6.js → reset-password-2NVKH6QA.js} +1 -1
  143. package/dist/{return-reason-list-7HTIV7NK.js → return-reason-list-E6L7VJY7.js} +5 -5
  144. package/dist/{sales-channel-add-products-S47CQCJF.js → sales-channel-add-products-BKT3CFLY.js} +9 -9
  145. package/dist/{sales-channel-detail-6JPHP4FZ.js → sales-channel-detail-MUBMJGQV.js} +10 -10
  146. package/dist/{sales-channel-list-D673ONK2.js → sales-channel-list-O5SFOGMA.js} +5 -5
  147. package/dist/{sales-channel-metadata-OY47MCFI.js → sales-channel-metadata-67RGBA7X.js} +5 -5
  148. package/dist/{shipping-option-type-create-H2YRDETZ.js → shipping-option-type-create-OBF6GG5W.js} +5 -5
  149. package/dist/{shipping-option-type-detail-NVSXILP4.js → shipping-option-type-detail-TJC2GBUA.js} +7 -7
  150. package/dist/{shipping-option-type-edit-KBPDYAUJ.js → shipping-option-type-edit-INKLJRSH.js} +5 -5
  151. package/dist/{shipping-option-type-list-OUKJZJ6R.js → shipping-option-type-list-WKA64NYE.js} +7 -7
  152. package/dist/{shipping-profile-metadata-CQCDC45M.js → shipping-profile-metadata-RI6Y2N6V.js} +5 -5
  153. package/dist/{store-bulk-edit-DXWHZMGL.js → store-bulk-edit-WML2DUA4.js} +1 -1
  154. package/dist/{store-create-MVHUY3I3.js → store-create-AGF2LZWR.js} +5 -5
  155. package/dist/{store-details-V3NMV665.js → store-details-3HWOCRYI.js} +11 -11
  156. package/dist/{store-edit-6CC2GBFY.js → store-edit-5WWOOSHT.js} +3 -3
  157. package/dist/{store-list-WV6XHGLU.js → store-list-YEEKX2AV.js} +9 -9
  158. package/dist/{store-member-invite-7YIXFC56.js → store-member-invite-TULPI3N5.js} +1 -1
  159. package/dist/{tax-region-create-RGE5ZIBR.js → tax-region-create-X2LAHX27.js} +6 -6
  160. package/dist/{tax-region-detail-OKEK6WNJ.js → tax-region-detail-3X3TNFJA.js} +5 -5
  161. package/dist/{tax-region-edit-QQ3LB74P.js → tax-region-edit-7ECYGXEA.js} +5 -5
  162. package/dist/{tax-region-metadata-GPTD6KZB.js → tax-region-metadata-FQLEYY2R.js} +5 -5
  163. package/dist/{tax-region-province-detail-WHO3RLUX.js → tax-region-province-detail-DIV5AAFQ.js} +5 -5
  164. package/dist/{tax-region-tax-override-create-223MPYUG.js → tax-region-tax-override-create-BV4O3QCU.js} +14 -16
  165. package/dist/{tax-region-tax-override-edit-WFOXP6A7.js → tax-region-tax-override-edit-QUA77YTI.js} +16 -18
  166. package/dist/{user-metadata-A3JS6O4K.js → user-metadata-64LX64QI.js} +5 -5
  167. package/package.json +1 -1
  168. package/dist/chunk-AKTAFKIU.js +0 -228
  169. package/dist/chunk-HLJ24XVH.js +0 -390
  170. package/dist/chunk-SWL7ZCP3.js +0 -11
  171. package/dist/commission-rate-create-G42ZUJPH.js +0 -782
  172. package/dist/commission-rate-detail-VGYTGWLH.js +0 -85
  173. package/dist/commission-rate-edit-3CYWYOMS.js +0 -767
@@ -18,16 +18,16 @@ import {
18
18
  useCancelClaim,
19
19
  useCancelClaimRequest,
20
20
  useClaims
21
- } from "./chunk-G5DQCCPL.js";
21
+ } from "./chunk-6LG3VL3Q.js";
22
22
  import {
23
23
  useCancelExchange,
24
24
  useCancelExchangeRequest,
25
25
  useExchanges
26
- } from "./chunk-OFOKVLV3.js";
26
+ } from "./chunk-GHGOOZEL.js";
27
27
  import {
28
28
  useCancelOrderEdit,
29
29
  useConfirmOrderEdit
30
- } from "./chunk-B4K7H6DH.js";
30
+ } from "./chunk-UUTACMA5.js";
31
31
  import {
32
32
  getPaymentsFromOrder,
33
33
  getReservationsLimitCount
@@ -56,7 +56,7 @@ import {
56
56
  useCancelReturn,
57
57
  useCancelReturnRequest,
58
58
  useReturns
59
- } from "./chunk-DELK6EWH.js";
59
+ } from "./chunk-IHTQOPB6.js";
60
60
  import {
61
61
  DEFAULT_FIELDS
62
62
  } from "./chunk-JHBNG7OD.js";
@@ -85,7 +85,7 @@ import {
85
85
  import {
86
86
  useCapturePayment,
87
87
  useMarkPaymentCollectionAsPaid
88
- } from "./chunk-LJDGVBOQ.js";
88
+ } from "./chunk-PJR6W35H.js";
89
89
  import {
90
90
  useReservationItems
91
91
  } from "./chunk-XGUUM3S6.js";
@@ -103,9 +103,10 @@ import {
103
103
  useCancelOrderTransfer,
104
104
  useOrder,
105
105
  useOrderChanges,
106
+ useOrderCommissionLines,
106
107
  useOrderLineItems,
107
108
  useOrderPreview
108
- } from "./chunk-VT6QIVZW.js";
109
+ } from "./chunk-RMAQKNBA.js";
109
110
  import {
110
111
  ActionMenu
111
112
  } from "./chunk-BDGZ4EQO.js";
@@ -1382,33 +1383,80 @@ var OrderActivitySection = ({ order }) => {
1382
1383
  ] });
1383
1384
  };
1384
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
+
1385
1433
  // src/pages/orders/order-detail/components/order-customer-section/order-customer-section.tsx
1386
1434
  import { ArrowPath as ArrowPath2, CurrencyDollar, Envelope, FlyingBox } from "@medusajs/icons";
1387
- import { Container as Container6, Heading as Heading6 } from "@medusajs/ui";
1388
- 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";
1389
1437
 
1390
1438
  // src/components/common/customer-info/customer-info.tsx
1391
- import { Avatar, Copy as Copy2, Text as Text7 } from "@medusajs/ui";
1392
- 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";
1393
1441
  import { Link } from "react-router-dom";
1394
- import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
1442
+ import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
1395
1443
  var ID = ({ data }) => {
1396
- const { t } = useTranslation9();
1444
+ const { t } = useTranslation10();
1397
1445
  const id = data.customer_id;
1398
1446
  const name = getOrderCustomer(data);
1399
1447
  const email = data.email;
1400
1448
  const fallback = (name || email || "").charAt(0).toUpperCase();
1401
- return /* @__PURE__ */ jsxs9("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
1402
- /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", weight: "plus", children: t("fields.id") }),
1403
- /* @__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(
1404
1452
  Link,
1405
1453
  {
1406
1454
  to: `/customers/${id}`,
1407
1455
  className: "focus:shadow-borders-focus rounded-[4px] outline-none transition-shadow",
1408
- children: /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-x-2 overflow-hidden", children: [
1409
- /* @__PURE__ */ jsx9(Avatar, { size: "2xsmall", fallback }),
1410
- /* @__PURE__ */ jsx9(
1411
- 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,
1412
1460
  {
1413
1461
  size: "small",
1414
1462
  leading: "compact",
@@ -1422,26 +1470,26 @@ var ID = ({ data }) => {
1422
1470
  ] });
1423
1471
  };
1424
1472
  var Company = ({ data }) => {
1425
- const { t } = useTranslation9();
1473
+ const { t } = useTranslation10();
1426
1474
  const company = data.shipping_address?.company || data.billing_address?.company;
1427
1475
  if (!company) {
1428
1476
  return null;
1429
1477
  }
1430
- return /* @__PURE__ */ jsxs9("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
1431
- /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", weight: "plus", children: t("fields.company") }),
1432
- /* @__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 })
1433
1481
  ] });
1434
1482
  };
1435
1483
  var Contact = ({ data }) => {
1436
- const { t } = useTranslation9();
1484
+ const { t } = useTranslation10();
1437
1485
  const phone = data.shipping_address?.phone || data.billing_address?.phone;
1438
1486
  const email = data.email || "";
1439
- return /* @__PURE__ */ jsxs9("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
1440
- /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", weight: "plus", children: t("orders.customer.contactLabel") }),
1441
- /* @__PURE__ */ jsxs9("div", { className: "flex flex-col gap-y-2", children: [
1442
- /* @__PURE__ */ jsxs9("div", { className: "grid grid-cols-[1fr_20px] items-start gap-x-2", children: [
1443
- /* @__PURE__ */ jsx9(
1444
- 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,
1445
1493
  {
1446
1494
  size: "small",
1447
1495
  leading: "compact",
@@ -1449,11 +1497,11 @@ var Contact = ({ data }) => {
1449
1497
  children: email
1450
1498
  }
1451
1499
  ),
1452
- /* @__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" }) })
1453
1501
  ] }),
1454
- phone && /* @__PURE__ */ jsxs9("div", { className: "grid grid-cols-[1fr_20px] items-start gap-x-2", children: [
1455
- /* @__PURE__ */ jsx9(
1456
- Text7,
1502
+ phone && /* @__PURE__ */ jsxs10("div", { className: "grid grid-cols-[1fr_20px] items-start gap-x-2", children: [
1503
+ /* @__PURE__ */ jsx10(
1504
+ Text8,
1457
1505
  {
1458
1506
  size: "small",
1459
1507
  leading: "compact",
@@ -1461,7 +1509,7 @@ var Contact = ({ data }) => {
1461
1509
  children: phone
1462
1510
  }
1463
1511
  ),
1464
- /* @__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" }) })
1465
1513
  ] })
1466
1514
  ] })
1467
1515
  ] });
@@ -1470,33 +1518,33 @@ var AddressPrint = ({
1470
1518
  address,
1471
1519
  type
1472
1520
  }) => {
1473
- const { t } = useTranslation9();
1474
- return /* @__PURE__ */ jsxs9("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
1475
- /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", weight: "plus", children: type === "shipping" ? t("addresses.shippingAddress.label") : t("addresses.billingAddress.label") }),
1476
- address ? /* @__PURE__ */ jsxs9("div", { className: "grid grid-cols-[1fr_20px] items-start gap-x-2", children: [
1477
- /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", children: getFormattedAddress({ address }).map((line, i) => {
1478
- 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: [
1479
1527
  line,
1480
- /* @__PURE__ */ jsx9("br", {})
1528
+ /* @__PURE__ */ jsx10("br", {})
1481
1529
  ] }, i);
1482
1530
  }) }),
1483
- /* @__PURE__ */ jsx9("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx9(
1531
+ /* @__PURE__ */ jsx10("div", { className: "flex justify-end", children: /* @__PURE__ */ jsx10(
1484
1532
  Copy2,
1485
1533
  {
1486
1534
  content: getFormattedAddress({ address }).join("\n"),
1487
1535
  className: "text-ui-fg-muted"
1488
1536
  }
1489
1537
  ) })
1490
- ] }) : /* @__PURE__ */ jsx9(Text7, { size: "small", leading: "compact", children: "-" })
1538
+ ] }) : /* @__PURE__ */ jsx10(Text8, { size: "small", leading: "compact", children: "-" })
1491
1539
  ] });
1492
1540
  };
1493
1541
  var Addresses = ({ data }) => {
1494
- const { t } = useTranslation9();
1495
- return /* @__PURE__ */ jsxs9("div", { className: "divide-y", children: [
1496
- /* @__PURE__ */ jsx9(AddressPrint, { address: data.shipping_address, type: "shipping" }),
1497
- !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: [
1498
- /* @__PURE__ */ jsx9(
1499
- 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,
1500
1548
  {
1501
1549
  size: "small",
1502
1550
  leading: "compact",
@@ -1505,7 +1553,7 @@ var Addresses = ({ data }) => {
1505
1553
  children: t("addresses.billingAddress.label")
1506
1554
  }
1507
1555
  ),
1508
- /* @__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") })
1509
1557
  ] })
1510
1558
  ] });
1511
1559
  };
@@ -1530,40 +1578,40 @@ var getOrderCustomer = (obj) => {
1530
1578
  };
1531
1579
 
1532
1580
  // src/pages/orders/order-detail/components/order-customer-section/order-customer-section.tsx
1533
- import { jsx as jsx10, jsxs as jsxs10 } from "react/jsx-runtime";
1581
+ import { jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
1534
1582
  var OrderCustomerSection = ({ order }) => {
1535
- return /* @__PURE__ */ jsxs10(
1536
- Container6,
1583
+ return /* @__PURE__ */ jsxs11(
1584
+ Container7,
1537
1585
  {
1538
1586
  className: "divide-y p-0",
1539
1587
  "data-testid": "order-customer-section",
1540
1588
  children: [
1541
- /* @__PURE__ */ jsx10(Header, { order }),
1542
- /* @__PURE__ */ jsx10(CustomerInfo.ID, { data: order }),
1543
- /* @__PURE__ */ jsx10(CustomerInfo.Contact, { data: order }),
1544
- /* @__PURE__ */ jsx10(CustomerInfo.Company, { data: order }),
1545
- /* @__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 })
1546
1594
  ]
1547
1595
  }
1548
1596
  );
1549
1597
  };
1550
1598
  var Header = ({ order }) => {
1551
- const { t } = useTranslation10();
1552
- return /* @__PURE__ */ jsxs10(
1599
+ const { t } = useTranslation11();
1600
+ return /* @__PURE__ */ jsxs11(
1553
1601
  "div",
1554
1602
  {
1555
1603
  className: "flex items-center justify-between px-6 py-4",
1556
1604
  "data-testid": "order-customer-header",
1557
1605
  children: [
1558
- /* @__PURE__ */ jsx10(
1559
- Heading6,
1606
+ /* @__PURE__ */ jsx11(
1607
+ Heading7,
1560
1608
  {
1561
1609
  level: "h2",
1562
1610
  "data-testid": "order-customer-heading",
1563
1611
  children: t("fields.customer")
1564
1612
  }
1565
1613
  ),
1566
- /* @__PURE__ */ jsx10(
1614
+ /* @__PURE__ */ jsx11(
1567
1615
  ActionMenu,
1568
1616
  {
1569
1617
  groups: [
@@ -1572,7 +1620,7 @@ var Header = ({ order }) => {
1572
1620
  {
1573
1621
  label: t("transferOwnership.label"),
1574
1622
  to: `transfer`,
1575
- icon: /* @__PURE__ */ jsx10(ArrowPath2, {})
1623
+ icon: /* @__PURE__ */ jsx11(ArrowPath2, {})
1576
1624
  }
1577
1625
  ]
1578
1626
  },
@@ -1581,12 +1629,12 @@ var Header = ({ order }) => {
1581
1629
  {
1582
1630
  label: t("addresses.shippingAddress.editLabel"),
1583
1631
  to: "shipping-address",
1584
- icon: /* @__PURE__ */ jsx10(FlyingBox, {})
1632
+ icon: /* @__PURE__ */ jsx11(FlyingBox, {})
1585
1633
  },
1586
1634
  {
1587
1635
  label: t("addresses.billingAddress.editLabel"),
1588
1636
  to: "billing-address",
1589
- icon: /* @__PURE__ */ jsx10(CurrencyDollar, {})
1637
+ icon: /* @__PURE__ */ jsx11(CurrencyDollar, {})
1590
1638
  }
1591
1639
  ]
1592
1640
  },
@@ -1595,7 +1643,7 @@ var Header = ({ order }) => {
1595
1643
  {
1596
1644
  label: t("email.editLabel"),
1597
1645
  to: `email`,
1598
- icon: /* @__PURE__ */ jsx10(Envelope, {}),
1646
+ icon: /* @__PURE__ */ jsx11(Envelope, {}),
1599
1647
  disabled: order.status === "canceled"
1600
1648
  }
1601
1649
  ]
@@ -1611,40 +1659,40 @@ var Header = ({ order }) => {
1611
1659
 
1612
1660
  // src/pages/orders/order-detail/components/order-fulfillment-section/order-fulfillment-section.tsx
1613
1661
  import {
1614
- Container as Container7,
1662
+ Container as Container8,
1615
1663
  Copy as Copy3,
1616
- Heading as Heading7,
1664
+ Heading as Heading8,
1617
1665
  StatusBadge,
1618
- Text as Text8,
1666
+ Text as Text9,
1619
1667
  Tooltip as Tooltip2
1620
1668
  } from "@medusajs/ui";
1621
1669
  import { format } from "date-fns";
1622
- import { useTranslation as useTranslation11 } from "react-i18next";
1670
+ import { useTranslation as useTranslation12 } from "react-i18next";
1623
1671
  import { Link as Link2 } from "react-router-dom";
1624
- import { Fragment as Fragment2, jsx as jsx11, jsxs as jsxs11 } from "react/jsx-runtime";
1672
+ import { Fragment as Fragment2, jsx as jsx12, jsxs as jsxs12 } from "react/jsx-runtime";
1625
1673
  var OrderFulfillmentSection = ({
1626
1674
  order
1627
1675
  }) => {
1628
1676
  const fulfillments = order.fulfillments || [];
1629
- return /* @__PURE__ */ jsxs11("div", { className: "flex flex-col gap-y-3", "data-testid": "order-fulfillment-section", children: [
1630
- /* @__PURE__ */ jsx11(UnfulfilledItemBreakdown, { order }),
1631
- 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))
1632
1680
  ] });
1633
1681
  };
1634
1682
  var UnfulfilledItem = ({
1635
1683
  item,
1636
1684
  currencyCode
1637
1685
  }) => {
1638
- return /* @__PURE__ */ jsxs11(
1686
+ return /* @__PURE__ */ jsxs12(
1639
1687
  "div",
1640
1688
  {
1641
1689
  className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4",
1642
1690
  children: [
1643
- /* @__PURE__ */ jsxs11("div", { className: "flex items-start gap-x-4", children: [
1644
- /* @__PURE__ */ jsx11(Thumbnail, { src: item.thumbnail }),
1645
- /* @__PURE__ */ jsxs11("div", { children: [
1646
- /* @__PURE__ */ jsx11(
1647
- 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,
1648
1696
  {
1649
1697
  size: "small",
1650
1698
  leading: "compact",
@@ -1653,20 +1701,20 @@ var UnfulfilledItem = ({
1653
1701
  children: item.title
1654
1702
  }
1655
1703
  ),
1656
- item.variant_sku && /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-x-1", children: [
1657
- /* @__PURE__ */ jsx11(Text8, { size: "small", children: item.variant_sku }),
1658
- /* @__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" })
1659
1707
  ] }),
1660
- /* @__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 ") })
1661
1709
  ] })
1662
1710
  ] }),
1663
- /* @__PURE__ */ jsxs11("div", { className: "grid grid-cols-3 items-center gap-x-4", children: [
1664
- /* @__PURE__ */ jsx11("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx11(Text8, { size: "small", children: getLocaleAmount(item.unit_price, currencyCode) }) }),
1665
- /* @__PURE__ */ jsx11("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsxs11(Text8, { children: [
1666
- /* @__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 }),
1667
1715
  "x"
1668
1716
  ] }) }),
1669
- /* @__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) }) })
1670
1718
  ] })
1671
1719
  ]
1672
1720
  },
@@ -1680,8 +1728,8 @@ var UnfulfilledItemBreakdown = ({ order }) => {
1680
1728
  const unfulfilledItemsWithoutShipping = order.items.filter(
1681
1729
  (i) => !i.requires_shipping && i.detail.fulfilled_quantity < i.quantity
1682
1730
  );
1683
- return /* @__PURE__ */ jsxs11(Fragment2, { children: [
1684
- !!unfulfilledItemsWithShipping.length && /* @__PURE__ */ jsx11(
1731
+ return /* @__PURE__ */ jsxs12(Fragment2, { children: [
1732
+ !!unfulfilledItemsWithShipping.length && /* @__PURE__ */ jsx12(
1685
1733
  UnfulfilledItemDisplay,
1686
1734
  {
1687
1735
  order,
@@ -1689,7 +1737,7 @@ var UnfulfilledItemBreakdown = ({ order }) => {
1689
1737
  requiresShipping: true
1690
1738
  }
1691
1739
  ),
1692
- !!unfulfilledItemsWithoutShipping.length && /* @__PURE__ */ jsx11(
1740
+ !!unfulfilledItemsWithoutShipping.length && /* @__PURE__ */ jsx12(
1693
1741
  UnfulfilledItemDisplay,
1694
1742
  {
1695
1743
  order,
@@ -1704,19 +1752,19 @@ var UnfulfilledItemDisplay = ({
1704
1752
  unfulfilledItems,
1705
1753
  requiresShipping = false
1706
1754
  }) => {
1707
- const { t } = useTranslation11();
1755
+ const { t } = useTranslation12();
1708
1756
  if (order.status === "canceled") {
1709
1757
  return;
1710
1758
  }
1711
- return /* @__PURE__ */ jsxs11(Container7, { className: "divide-y p-0", "data-testid": "order-fulfillment-unfulfilled", children: [
1712
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "order-fulfillment-unfulfilled-header", children: [
1713
- /* @__PURE__ */ jsx11(Heading7, { level: "h2", "data-testid": "order-fulfillment-unfulfilled-heading", children: t("orders.fulfillment.unfulfilledItems") }),
1714
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center gap-x-4", "data-testid": "order-fulfillment-unfulfilled-badges", children: [
1715
- requiresShipping && /* @__PURE__ */ jsx11(StatusBadge, { color: "red", className: "text-nowrap", "data-testid": "order-fulfillment-unfulfilled-requires-shipping-badge", children: t("orders.fulfillment.requiresShipping") }),
1716
- /* @__PURE__ */ jsx11(StatusBadge, { color: "red", className: "text-nowrap", "data-testid": "order-fulfillment-unfulfilled-awaiting-badge", children: t("orders.fulfillment.awaitingFulfillmentBadge") })
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") })
1717
1765
  ] })
1718
1766
  ] }),
1719
- /* @__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(
1720
1768
  UnfulfilledItem,
1721
1769
  {
1722
1770
  item,
@@ -1730,7 +1778,7 @@ var Fulfillment = ({
1730
1778
  fulfillment,
1731
1779
  index
1732
1780
  }) => {
1733
- const { t } = useTranslation11();
1781
+ const { t } = useTranslation12();
1734
1782
  const showLocation = !!fulfillment.location_id;
1735
1783
  const isPickUpFulfillment = fulfillment.shipping_option?.service_zone.fulfillment_set.type === "pickup" /* Pickup */;
1736
1784
  const { stock_location, isError, error } = useStockLocation(
@@ -1760,77 +1808,77 @@ var Fulfillment = ({
1760
1808
  throw error;
1761
1809
  }
1762
1810
  const isValidUrl = (url) => url && url.length > 0 && url !== "#";
1763
- return /* @__PURE__ */ jsxs11(Container7, { className: "divide-y p-0", "data-testid": `order-fulfillment-${fulfillment.id}`, children: [
1764
- /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": `order-fulfillment-${fulfillment.id}-header`, children: [
1765
- /* @__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", {
1766
1814
  number: index + 1
1767
1815
  }) }),
1768
- /* @__PURE__ */ jsx11("div", { className: "flex items-center gap-x-4", "data-testid": `order-fulfillment-${fulfillment.id}-status-container`, children: /* @__PURE__ */ jsx11(
1816
+ /* @__PURE__ */ jsx12("div", { className: "flex items-center gap-x-4", "data-testid": `order-fulfillment-${fulfillment.id}-status-container`, children: /* @__PURE__ */ jsx12(
1769
1817
  Tooltip2,
1770
1818
  {
1771
1819
  content: format(
1772
1820
  new Date(statusTimestamp),
1773
1821
  "dd MMM, yyyy, HH:mm:ss"
1774
1822
  ),
1775
- children: /* @__PURE__ */ jsx11(StatusBadge, { color: statusColor, className: "text-nowrap", "data-testid": `order-fulfillment-${fulfillment.id}-status-badge`, children: statusText })
1823
+ children: /* @__PURE__ */ jsx12(StatusBadge, { color: statusColor, className: "text-nowrap", "data-testid": `order-fulfillment-${fulfillment.id}-status-badge`, children: statusText })
1776
1824
  }
1777
1825
  ) })
1778
1826
  ] }),
1779
- /* @__PURE__ */ jsxs11("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
1780
- /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", weight: "plus", children: t("orders.fulfillment.itemsLabel") }),
1781
- /* @__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: [
1782
1830
  f_item.quantity,
1783
1831
  "x ",
1784
1832
  f_item.title
1785
1833
  ] }) }, f_item.line_item_id)) })
1786
1834
  ] }),
1787
- showLocation && /* @__PURE__ */ jsxs11("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
1788
- /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", weight: "plus", children: t("orders.fulfillment.shippingFromLabel") }),
1789
- 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(
1790
1838
  Link2,
1791
1839
  {
1792
1840
  to: `/settings/locations/${stock_location.id}`,
1793
1841
  className: "text-ui-fg-interactive hover:text-ui-fg-interactive-hover transition-fg",
1794
- 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 })
1795
1843
  }
1796
- ) : /* @__PURE__ */ jsx11(Skeleton, { className: "w-16" })
1844
+ ) : /* @__PURE__ */ jsx12(Skeleton, { className: "w-16" })
1797
1845
  ] }),
1798
- /* @__PURE__ */ jsxs11("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
1799
- /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", weight: "plus", children: t("fields.provider") }),
1800
- /* @__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) })
1801
1849
  ] }),
1802
- /* @__PURE__ */ jsxs11("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
1803
- /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", weight: "plus", children: t("orders.fulfillment.trackingLabel") }),
1804
- /* @__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) => {
1805
1853
  const hasTrackingUrl = isValidUrl(tlink.tracking_url);
1806
1854
  const hasLabelUrl = isValidUrl(tlink.label_url);
1807
1855
  if (hasTrackingUrl || hasLabelUrl) {
1808
- return /* @__PURE__ */ jsxs11("li", { children: [
1809
- hasTrackingUrl && /* @__PURE__ */ jsx11(
1856
+ return /* @__PURE__ */ jsxs12("li", { children: [
1857
+ hasTrackingUrl && /* @__PURE__ */ jsx12(
1810
1858
  "a",
1811
1859
  {
1812
1860
  href: tlink.tracking_url,
1813
1861
  target: "_blank",
1814
1862
  rel: "noopener noreferrer",
1815
1863
  className: "text-ui-fg-interactive hover:text-ui-fg-interactive-hover transition-fg",
1816
- 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 })
1817
1865
  }
1818
1866
  ),
1819
1867
  hasTrackingUrl && hasLabelUrl && " - ",
1820
- hasLabelUrl && /* @__PURE__ */ jsx11(
1868
+ hasLabelUrl && /* @__PURE__ */ jsx12(
1821
1869
  "a",
1822
1870
  {
1823
1871
  href: tlink.label_url,
1824
1872
  target: "_blank",
1825
1873
  rel: "noopener noreferrer",
1826
1874
  className: "text-ui-fg-interactive hover:text-ui-fg-interactive-hover transition-fg",
1827
- 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") })
1828
1876
  }
1829
1877
  )
1830
1878
  ] }, tlink.tracking_number);
1831
1879
  }
1832
- return /* @__PURE__ */ jsx11("li", { children: /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", children: tlink.tracking_number }) }, tlink.tracking_number);
1833
- }) }) : /* @__PURE__ */ jsx11(Text8, { size: "small", leading: "compact", children: "-" }) })
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: "-" }) })
1834
1882
  ] })
1835
1883
  ] });
1836
1884
  };
@@ -1838,18 +1886,18 @@ var Fulfillment = ({
1838
1886
  // src/pages/orders/order-detail/components/order-general-section/order-general-section.tsx
1839
1887
  import { XCircle } from "@medusajs/icons";
1840
1888
  import {
1841
- Container as Container8,
1889
+ Container as Container9,
1842
1890
  Copy as Copy4,
1843
- Heading as Heading8,
1891
+ Heading as Heading9,
1844
1892
  StatusBadge as StatusBadge2,
1845
- Text as Text9,
1893
+ Text as Text10,
1846
1894
  toast as toast6,
1847
1895
  usePrompt as usePrompt2
1848
1896
  } from "@medusajs/ui";
1849
- import { useTranslation as useTranslation12 } from "react-i18next";
1850
- 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";
1851
1899
  var OrderGeneralSection = ({ order }) => {
1852
- const { t } = useTranslation12();
1900
+ const { t } = useTranslation13();
1853
1901
  const prompt = usePrompt2();
1854
1902
  const { getFullDate } = useDate();
1855
1903
  const { mutateAsync: cancelOrder } = useCancelOrder(order.id);
@@ -1880,27 +1928,27 @@ var OrderGeneralSection = ({ order }) => {
1880
1928
  }
1881
1929
  });
1882
1930
  };
1883
- return /* @__PURE__ */ jsxs12(Container8, { className: "flex items-center justify-between px-6 py-4", "data-testid": "order-general-section", children: [
1884
- /* @__PURE__ */ jsxs12("div", { children: [
1885
- /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-x-1", "data-testid": "order-general-section-id-container", children: [
1886
- /* @__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: [
1887
1935
  "#",
1888
1936
  order.display_id
1889
1937
  ] }),
1890
- /* @__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" })
1891
1939
  ] }),
1892
- /* @__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", {
1893
1941
  date: getFullDate({ date: order.created_at, includeTime: true }),
1894
1942
  salesChannel: order.sales_channel?.name
1895
1943
  }) })
1896
1944
  ] }),
1897
- /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-x-4", "data-testid": "order-general-section-badges-container", children: [
1898
- /* @__PURE__ */ jsxs12("div", { className: "flex items-center gap-x-1.5", "data-testid": "order-general-section-badges", children: [
1899
- /* @__PURE__ */ jsx12(OrderBadge, { order }),
1900
- /* @__PURE__ */ jsx12(PaymentBadge, { order }),
1901
- /* @__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 })
1902
1950
  ] }),
1903
- /* @__PURE__ */ jsx12(
1951
+ /* @__PURE__ */ jsx13(
1904
1952
  ActionMenu,
1905
1953
  {
1906
1954
  groups: [
@@ -1911,7 +1959,7 @@ var OrderGeneralSection = ({ order }) => {
1911
1959
  onClick: handleCancel,
1912
1960
  disabled: cancelDisabled,
1913
1961
  disabledTooltip: cancelDisabledTooltip,
1914
- icon: /* @__PURE__ */ jsx12(XCircle, {})
1962
+ icon: /* @__PURE__ */ jsx13(XCircle, {})
1915
1963
  }
1916
1964
  ]
1917
1965
  }
@@ -1923,41 +1971,41 @@ var OrderGeneralSection = ({ order }) => {
1923
1971
  ] });
1924
1972
  };
1925
1973
  var FulfillmentBadge = ({ order }) => {
1926
- const { t } = useTranslation12();
1974
+ const { t } = useTranslation13();
1927
1975
  const { label, color } = getOrderFulfillmentStatus(
1928
1976
  t,
1929
1977
  order.fulfillment_status
1930
1978
  );
1931
- 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 });
1932
1980
  };
1933
1981
  var PaymentBadge = ({ order }) => {
1934
- const { t } = useTranslation12();
1982
+ const { t } = useTranslation13();
1935
1983
  const { label, color } = getOrderPaymentStatus(t, order.payment_status);
1936
- 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 });
1937
1985
  };
1938
1986
  var OrderBadge = ({ order }) => {
1939
- const { t } = useTranslation12();
1987
+ const { t } = useTranslation13();
1940
1988
  const orderStatus = getCanceledOrderStatus(t, order.status);
1941
1989
  if (!orderStatus) {
1942
1990
  return null;
1943
1991
  }
1944
- 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 });
1945
1993
  };
1946
1994
 
1947
1995
  // src/components/common/display-id/display-id.tsx
1948
- import { useTranslation as useTranslation13 } from "react-i18next";
1996
+ import { useTranslation as useTranslation14 } from "react-i18next";
1949
1997
  import { useState as useState4 } from "react";
1950
1998
  import copy from "copy-to-clipboard";
1951
1999
  import { clx as clx2, toast as toast7, Tooltip as Tooltip3 } from "@medusajs/ui";
1952
- import { jsx as jsx13, jsxs as jsxs13 } from "react/jsx-runtime";
2000
+ import { jsx as jsx14, jsxs as jsxs14 } from "react/jsx-runtime";
1953
2001
  function DisplayId({ id, className }) {
1954
- const { t } = useTranslation13();
2002
+ const { t } = useTranslation14();
1955
2003
  const [open, setOpen] = useState4(false);
1956
2004
  const onClick = () => {
1957
2005
  copy(id);
1958
2006
  toast7.success(t("actions.idCopiedToClipboard"));
1959
2007
  };
1960
- 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: [
1961
2009
  "#",
1962
2010
  id.slice(-7)
1963
2011
  ] }) });
@@ -1979,28 +2027,28 @@ import { ArrowDownRightMini, DocumentText, XCircle as XCircle2 } from "@medusajs
1979
2027
  import {
1980
2028
  Badge,
1981
2029
  Button as Button6,
1982
- Container as Container9,
1983
- Heading as Heading9,
2030
+ Container as Container10,
2031
+ Heading as Heading10,
1984
2032
  StatusBadge as StatusBadge3,
1985
- Text as Text10,
2033
+ Text as Text11,
1986
2034
  toast as toast8,
1987
2035
  Tooltip as Tooltip4,
1988
2036
  usePrompt as usePrompt3
1989
2037
  } from "@medusajs/ui";
1990
2038
  import { format as format2 } from "date-fns";
1991
- import { Trans, useTranslation as useTranslation14 } from "react-i18next";
1992
- 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";
1993
2041
  var OrderPaymentSection = ({ order }) => {
1994
2042
  const payments = getPaymentsFromOrder(order);
1995
2043
  const refunds = payments.map((payment) => payment?.refunds).flat(1).filter(Boolean);
1996
- return /* @__PURE__ */ jsxs14(
1997
- Container9,
2044
+ return /* @__PURE__ */ jsxs15(
2045
+ Container10,
1998
2046
  {
1999
2047
  className: "divide-y p-0",
2000
2048
  "data-testid": "order-payment-section",
2001
2049
  children: [
2002
- /* @__PURE__ */ jsx14(Header2, { order }),
2003
- /* @__PURE__ */ jsx14(
2050
+ /* @__PURE__ */ jsx15(Header2, { order }),
2051
+ /* @__PURE__ */ jsx15(
2004
2052
  PaymentBreakdown,
2005
2053
  {
2006
2054
  order,
@@ -2009,22 +2057,22 @@ var OrderPaymentSection = ({ order }) => {
2009
2057
  currencyCode: order.currency_code
2010
2058
  }
2011
2059
  ),
2012
- /* @__PURE__ */ jsx14(Total, { order })
2060
+ /* @__PURE__ */ jsx15(Total, { order })
2013
2061
  ]
2014
2062
  }
2015
2063
  );
2016
2064
  };
2017
2065
  var Header2 = ({ order }) => {
2018
- const { t } = useTranslation14();
2066
+ const { t } = useTranslation15();
2019
2067
  const { label, color } = getOrderPaymentStatus(t, order.payment_status);
2020
- return /* @__PURE__ */ jsxs14(
2068
+ return /* @__PURE__ */ jsxs15(
2021
2069
  "div",
2022
2070
  {
2023
2071
  className: "flex items-center justify-between px-6 py-4",
2024
2072
  "data-testid": "order-payment-header",
2025
2073
  children: [
2026
- /* @__PURE__ */ jsx14(Heading9, { level: "h2", "data-testid": "order-payment-heading", children: t("orders.payment.title") }),
2027
- /* @__PURE__ */ jsx14(
2074
+ /* @__PURE__ */ jsx15(Heading10, { level: "h2", "data-testid": "order-payment-heading", children: t("orders.payment.title") }),
2075
+ /* @__PURE__ */ jsx15(
2028
2076
  StatusBadge3,
2029
2077
  {
2030
2078
  color,
@@ -2041,8 +2089,8 @@ var Refund = ({
2041
2089
  refund,
2042
2090
  currencyCode
2043
2091
  }) => {
2044
- const { t } = useTranslation14();
2045
- const RefundReasonBadge = refund?.refund_reason && /* @__PURE__ */ jsx14(
2092
+ const { t } = useTranslation15();
2093
+ const RefundReasonBadge = refund?.refund_reason && /* @__PURE__ */ jsx15(
2046
2094
  Badge,
2047
2095
  {
2048
2096
  size: "2xsmall",
@@ -2052,27 +2100,27 @@ var Refund = ({
2052
2100
  children: refund.refund_reason.label
2053
2101
  }
2054
2102
  );
2055
- const RefundNoteIndicator = refund.note && /* @__PURE__ */ jsx14(Tooltip4, { content: refund.note, children: /* @__PURE__ */ jsx14(DocumentText, { className: "ml-1 inline text-ui-tag-neutral-icon" }) });
2056
- 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: [
2057
- /* @__PURE__ */ jsxs14("div", { className: "flex flex-1 flex-col gap-3 sm:flex-row sm:items-center", children: [
2058
- /* @__PURE__ */ jsxs14("div", { className: "flex shrink-0 flex-row items-center gap-x-3", children: [
2059
- /* @__PURE__ */ jsx14(ArrowDownRightMini, { className: "text-ui-fg-muted" }),
2060
- /* @__PURE__ */ jsxs14("div", { children: [
2061
- /* @__PURE__ */ jsx14(Text10, { size: "small", leading: "compact", weight: "plus", children: t("orders.payment.refund") }),
2062
- /* @__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") })
2063
2111
  ] })
2064
2112
  ] }),
2065
- /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-x-3", children: [
2066
- /* @__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 }),
2067
2115
  RefundReasonBadge
2068
2116
  ] })
2069
2117
  ] }),
2070
- /* @__PURE__ */ jsxs14("div", { className: "flex shrink-0 items-center justify-end gap-4", children: [
2071
- /* @__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: [
2072
2120
  "- ",
2073
2121
  getLocaleAmount(refund.amount, currencyCode)
2074
2122
  ] }),
2075
- /* @__PURE__ */ jsx14("div", { className: "h-7 w-5" })
2123
+ /* @__PURE__ */ jsx15("div", { className: "h-7 w-5" })
2076
2124
  ] })
2077
2125
  ] });
2078
2126
  };
@@ -2082,7 +2130,7 @@ var Payment = ({
2082
2130
  refunds,
2083
2131
  currencyCode
2084
2132
  }) => {
2085
- const { t } = useTranslation14();
2133
+ const { t } = useTranslation15();
2086
2134
  const prompt = usePrompt3();
2087
2135
  const { mutateAsync } = useCapturePayment(order.id, payment.id);
2088
2136
  const handleCapture = async () => {
@@ -2126,32 +2174,32 @@ var Payment = ({
2126
2174
  const [status, color] = getPaymentStatusAttributes(payment);
2127
2175
  const showCapture = payment.captured_at === null && payment.canceled_at === null;
2128
2176
  const totalRefunded = payment.refunds?.reduce((acc, next) => next.amount + acc, 0) ?? 0;
2129
- return /* @__PURE__ */ jsxs14(
2177
+ return /* @__PURE__ */ jsxs15(
2130
2178
  "div",
2131
2179
  {
2132
2180
  className: "divide-y",
2133
2181
  "data-testid": `order-payment-${payment.id}`,
2134
2182
  children: [
2135
- /* @__PURE__ */ jsxs14(
2183
+ /* @__PURE__ */ jsxs15(
2136
2184
  "div",
2137
2185
  {
2138
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]",
2139
2187
  "data-testid": `order-payment-${payment.id}-row`,
2140
2188
  children: [
2141
- /* @__PURE__ */ jsxs14("div", { className: "w-full min-w-[60px] overflow-hidden", children: [
2142
- /* @__PURE__ */ jsx14(
2143
- Text10,
2189
+ /* @__PURE__ */ jsxs15("div", { className: "w-full min-w-[60px] overflow-hidden", children: [
2190
+ /* @__PURE__ */ jsx15(
2191
+ Text11,
2144
2192
  {
2145
2193
  size: "small",
2146
2194
  leading: "compact",
2147
2195
  weight: "plus",
2148
2196
  className: "truncate",
2149
2197
  "data-testid": `order-payment-${payment.id}-id`,
2150
- children: /* @__PURE__ */ jsx14(display_id_default, { id: payment.id })
2198
+ children: /* @__PURE__ */ jsx15(display_id_default, { id: payment.id })
2151
2199
  }
2152
2200
  ),
2153
- /* @__PURE__ */ jsx14(
2154
- Text10,
2201
+ /* @__PURE__ */ jsx15(
2202
+ Text11,
2155
2203
  {
2156
2204
  size: "small",
2157
2205
  leading: "compact",
@@ -2160,8 +2208,8 @@ var Payment = ({
2160
2208
  }
2161
2209
  )
2162
2210
  ] }),
2163
- /* @__PURE__ */ jsx14("div", { className: "hidden items-center justify-end sm:flex", children: /* @__PURE__ */ jsx14(
2164
- Text10,
2211
+ /* @__PURE__ */ jsx15("div", { className: "hidden items-center justify-end sm:flex", children: /* @__PURE__ */ jsx15(
2212
+ Text11,
2165
2213
  {
2166
2214
  size: "small",
2167
2215
  leading: "compact",
@@ -2170,7 +2218,7 @@ var Payment = ({
2170
2218
  children: payment.provider_id
2171
2219
  }
2172
2220
  ) }),
2173
- /* @__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(
2174
2222
  StatusBadge3,
2175
2223
  {
2176
2224
  color,
@@ -2179,8 +2227,8 @@ var Payment = ({
2179
2227
  children: status
2180
2228
  }
2181
2229
  ) }),
2182
- /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx14(
2183
- Text10,
2230
+ /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx15(
2231
+ Text11,
2184
2232
  {
2185
2233
  size: "small",
2186
2234
  leading: "compact",
@@ -2188,7 +2236,7 @@ var Payment = ({
2188
2236
  children: getLocaleAmount(payment.amount, payment.currency_code)
2189
2237
  }
2190
2238
  ) }),
2191
- /* @__PURE__ */ jsx14(
2239
+ /* @__PURE__ */ jsx15(
2192
2240
  ActionMenu,
2193
2241
  {
2194
2242
  groups: [
@@ -2196,7 +2244,7 @@ var Payment = ({
2196
2244
  actions: [
2197
2245
  {
2198
2246
  label: t("orders.payment.createRefund"),
2199
- icon: /* @__PURE__ */ jsx14(XCircle2, {}),
2247
+ icon: /* @__PURE__ */ jsx15(XCircle2, {}),
2200
2248
  to: `/orders/${order.id}/refund?paymentId=${payment.id}`,
2201
2249
  disabled: !payment.captured_at || !!payment.canceled_at || totalRefunded >= payment.amount
2202
2250
  }
@@ -2209,23 +2257,23 @@ var Payment = ({
2209
2257
  ]
2210
2258
  }
2211
2259
  ),
2212
- showCapture && /* @__PURE__ */ jsxs14(
2260
+ showCapture && /* @__PURE__ */ jsxs15(
2213
2261
  "div",
2214
2262
  {
2215
2263
  className: "flex items-center justify-between bg-ui-bg-subtle px-6 py-4",
2216
2264
  "data-testid": `order-payment-${payment.id}-capture-section`,
2217
2265
  children: [
2218
- /* @__PURE__ */ jsxs14("div", { className: "flex items-center gap-x-2", children: [
2219
- /* @__PURE__ */ jsx14(ArrowDownRightMini, { className: "shrink-0 text-ui-fg-muted" }),
2220
- /* @__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(
2221
2269
  Trans,
2222
2270
  {
2223
2271
  i18nKey: "orders.payment.isReadyToBeCaptured",
2224
- components: [/* @__PURE__ */ jsx14(display_id_default, { id: payment.id }, payment.id)]
2272
+ components: [/* @__PURE__ */ jsx15(display_id_default, { id: payment.id }, payment.id)]
2225
2273
  }
2226
2274
  ) })
2227
2275
  ] }),
2228
- /* @__PURE__ */ jsxs14(
2276
+ /* @__PURE__ */ jsxs15(
2229
2277
  Button6,
2230
2278
  {
2231
2279
  className: "shrink-0",
@@ -2234,15 +2282,15 @@ var Payment = ({
2234
2282
  onClick: handleCapture,
2235
2283
  "data-testid": `order-payment-${payment.id}-capture-button`,
2236
2284
  children: [
2237
- /* @__PURE__ */ jsx14("span", { className: "hidden sm:block", children: t("orders.payment.capture") }),
2238
- /* @__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") })
2239
2287
  ]
2240
2288
  }
2241
2289
  )
2242
2290
  ]
2243
2291
  }
2244
2292
  ),
2245
- refunds.map((refund) => /* @__PURE__ */ jsx14(Refund, { refund, currencyCode }, refund.id))
2293
+ refunds.map((refund) => /* @__PURE__ */ jsx15(Refund, { refund, currencyCode }, refund.id))
2246
2294
  ]
2247
2295
  }
2248
2296
  );
@@ -2255,31 +2303,31 @@ var CreditLine = ({
2255
2303
  return null;
2256
2304
  }
2257
2305
  const prettyReference = creditLine.reference?.split("_").join(" ").split("-").join(" ");
2258
- const prettyReferenceId = creditLine.reference_id ? /* @__PURE__ */ jsx14(display_id_default, { id: creditLine.reference_id }) : null;
2259
- return /* @__PURE__ */ jsx14("div", { className: "divide-y", 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: [
2260
- /* @__PURE__ */ jsxs14("div", { className: "w-full min-w-[60px] overflow-hidden", children: [
2261
- /* @__PURE__ */ jsx14(
2262
- 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,
2263
2311
  {
2264
2312
  size: "small",
2265
2313
  leading: "compact",
2266
2314
  weight: "plus",
2267
2315
  className: "truncate",
2268
- children: /* @__PURE__ */ jsx14(display_id_default, { id: creditLine.id })
2316
+ children: /* @__PURE__ */ jsx15(display_id_default, { id: creditLine.id })
2269
2317
  }
2270
2318
  ),
2271
- /* @__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(
2272
2320
  new Date(creditLine.created_at),
2273
2321
  "dd MMM, yyyy, HH:mm:ss"
2274
2322
  ) : "-" })
2275
2323
  ] }),
2276
- /* @__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: [
2277
2325
  prettyReference,
2278
2326
  " (",
2279
2327
  prettyReferenceId,
2280
2328
  ")"
2281
2329
  ] }) }),
2282
- /* @__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) }) })
2283
2331
  ] }) });
2284
2332
  };
2285
2333
  var PaymentBreakdown = ({
@@ -2302,7 +2350,7 @@ var PaymentBreakdown = ({
2302
2350
  }
2303
2351
  return { event: entry, type };
2304
2352
  });
2305
- return /* @__PURE__ */ jsx14(
2353
+ return /* @__PURE__ */ jsx15(
2306
2354
  "div",
2307
2355
  {
2308
2356
  className: "flex flex-col divide-y",
@@ -2310,7 +2358,7 @@ var PaymentBreakdown = ({
2310
2358
  children: entries.map(({ type, event }) => {
2311
2359
  switch (type) {
2312
2360
  case "payment":
2313
- return /* @__PURE__ */ jsx14(
2361
+ return /* @__PURE__ */ jsx15(
2314
2362
  Payment,
2315
2363
  {
2316
2364
  order,
@@ -2323,7 +2371,7 @@ var PaymentBreakdown = ({
2323
2371
  event.id
2324
2372
  );
2325
2373
  case "refund":
2326
- return /* @__PURE__ */ jsx14(
2374
+ return /* @__PURE__ */ jsx15(
2327
2375
  Refund,
2328
2376
  {
2329
2377
  refund: event,
@@ -2332,7 +2380,7 @@ var PaymentBreakdown = ({
2332
2380
  event.id
2333
2381
  );
2334
2382
  case "credit_line_refund":
2335
- return /* @__PURE__ */ jsx14(
2383
+ return /* @__PURE__ */ jsx15(
2336
2384
  CreditLine,
2337
2385
  {
2338
2386
  creditLine: event,
@@ -2346,36 +2394,36 @@ var PaymentBreakdown = ({
2346
2394
  );
2347
2395
  };
2348
2396
  var Total = ({ order }) => {
2349
- const { t } = useTranslation14();
2397
+ const { t } = useTranslation15();
2350
2398
  const totalPending = getTotalPending(order.payment_collections);
2351
- return /* @__PURE__ */ jsxs14(
2399
+ return /* @__PURE__ */ jsxs15(
2352
2400
  "div",
2353
2401
  {
2354
2402
  className: "flex flex-col gap-y-4 px-6 py-4",
2355
2403
  "data-testid": "order-payment-total",
2356
2404
  children: [
2357
- /* @__PURE__ */ jsxs14(
2405
+ /* @__PURE__ */ jsxs15(
2358
2406
  "div",
2359
2407
  {
2360
2408
  className: "flex items-center justify-between",
2361
2409
  "data-testid": "order-payment-total-paid",
2362
2410
  children: [
2363
- /* @__PURE__ */ jsx14(Text10, { size: "small", weight: "plus", leading: "compact", children: t("orders.payment.totalPaidByCustomer") }),
2364
- /* @__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(
2365
2413
  getTotalCaptured(order.payment_collections),
2366
2414
  order.currency_code
2367
2415
  ) })
2368
2416
  ]
2369
2417
  }
2370
2418
  ),
2371
- order.status !== "canceled" && totalPending > 0 && /* @__PURE__ */ jsxs14(
2419
+ order.status !== "canceled" && totalPending > 0 && /* @__PURE__ */ jsxs15(
2372
2420
  "div",
2373
2421
  {
2374
2422
  className: "flex items-center justify-between",
2375
2423
  "data-testid": "order-payment-total-pending",
2376
2424
  children: [
2377
- /* @__PURE__ */ jsx14(Text10, { size: "small", weight: "plus", leading: "compact", children: "Total pending" }),
2378
- /* @__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) })
2379
2427
  ]
2380
2428
  }
2381
2429
  )
@@ -2385,8 +2433,8 @@ var Total = ({ order }) => {
2385
2433
  };
2386
2434
 
2387
2435
  // src/pages/orders/order-detail/components/order-summary-section/order-summary-section.tsx
2388
- import { useMemo as useMemo3, useState as useState6 } from "react";
2389
- 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";
2390
2438
  import { Link as Link3 } from "react-router-dom";
2391
2439
  import {
2392
2440
  ArrowDownRightMini as ArrowDownRightMini2,
@@ -2401,11 +2449,11 @@ import {
2401
2449
  Badge as Badge4,
2402
2450
  Button as Button7,
2403
2451
  clx as clx3,
2404
- Container as Container10,
2452
+ Container as Container11,
2405
2453
  Copy as Copy5,
2406
- Heading as Heading10,
2454
+ Heading as Heading11,
2407
2455
  StatusBadge as StatusBadge4,
2408
- Text as Text12,
2456
+ Text as Text13,
2409
2457
  toast as toast9,
2410
2458
  Tooltip as Tooltip6,
2411
2459
  usePrompt as usePrompt4
@@ -2420,12 +2468,12 @@ var getTotalCreditLines = (creditLines) => creditLines.reduce((acc, creditLine)
2420
2468
 
2421
2469
  // src/pages/orders/order-detail/components/order-summary-section/return-info-popover.tsx
2422
2470
  import { InformationCircleSolid } from "@medusajs/icons";
2423
- 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";
2424
2472
  import { useState as useState5 } from "react";
2425
- import { useTranslation as useTranslation15 } from "react-i18next";
2426
- 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";
2427
2475
  function ReturnInfoPopover({ orderReturn }) {
2428
- const { t } = useTranslation15();
2476
+ const { t } = useTranslation16();
2429
2477
  const [open, setOpen] = useState5(false);
2430
2478
  const { getFullDate } = useDate();
2431
2479
  const handleMouseEnter = () => {
@@ -2447,36 +2495,36 @@ function ReturnInfoPopover({ orderReturn }) {
2447
2495
  if (typeof orderReturn !== "object") {
2448
2496
  return;
2449
2497
  }
2450
- return /* @__PURE__ */ jsxs15(Popover3, { open, children: [
2451
- /* @__PURE__ */ jsx15(
2498
+ return /* @__PURE__ */ jsxs16(Popover3, { open, children: [
2499
+ /* @__PURE__ */ jsx16(
2452
2500
  Popover3.Trigger,
2453
2501
  {
2454
2502
  onMouseEnter: handleMouseEnter,
2455
2503
  onMouseLeave: handleMouseLeave,
2456
2504
  autoFocus: false,
2457
2505
  className: "align-sub focus-visible:outline-none",
2458
- children: /* @__PURE__ */ jsx15(InformationCircleSolid, {})
2506
+ children: /* @__PURE__ */ jsx16(InformationCircleSolid, {})
2459
2507
  }
2460
2508
  ),
2461
- /* @__PURE__ */ jsx15(
2509
+ /* @__PURE__ */ jsx16(
2462
2510
  Popover3.Content,
2463
2511
  {
2464
2512
  align: "center",
2465
2513
  side: "top",
2466
2514
  className: "bg-ui-bg-component p-2 focus-visible:outline-none",
2467
- children: /* @__PURE__ */ jsxs15("div", { className: "", children: [
2468
- /* @__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: [
2469
2517
  returnType,
2470
2518
  ": #",
2471
2519
  returnTypeId.slice(-7)
2472
2520
  ] }),
2473
- /* @__PURE__ */ jsxs15(Text11, { size: "xsmall", children: [
2474
- /* @__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`) }),
2475
2523
  " \xB7 ",
2476
2524
  getFullDate({ date: orderReturn.requested_at, includeTime: true })
2477
2525
  ] }),
2478
- /* @__PURE__ */ jsxs15(Text11, { size: "xsmall", children: [
2479
- /* @__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`) }),
2480
2528
  " \xB7 ",
2481
2529
  orderReturn.received_at ? getFullDate({
2482
2530
  date: orderReturn.received_at,
@@ -2493,10 +2541,10 @@ var return_info_popover_default = ReturnInfoPopover;
2493
2541
  // src/pages/orders/order-detail/components/order-summary-section/shipping-info-popover.tsx
2494
2542
  import { InformationCircleSolid as InformationCircleSolid2 } from "@medusajs/icons";
2495
2543
  import { Badge as Badge3, Tooltip as Tooltip5 } from "@medusajs/ui";
2496
- import { useTranslation as useTranslation16 } from "react-i18next";
2497
- 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";
2498
2546
  function ShippingInfoPopover({ shippingMethod }) {
2499
- const { t } = useTranslation16();
2547
+ const { t } = useTranslation17();
2500
2548
  const shippingDetail = shippingMethod?.detail;
2501
2549
  if (!shippingDetail) {
2502
2550
  return;
@@ -2514,24 +2562,24 @@ function ShippingInfoPopover({ shippingMethod }) {
2514
2562
  if (!rmaId) {
2515
2563
  return;
2516
2564
  }
2517
- return /* @__PURE__ */ jsx16(
2565
+ return /* @__PURE__ */ jsx17(
2518
2566
  Tooltip5,
2519
2567
  {
2520
- content: /* @__PURE__ */ jsxs16(Badge3, { size: "2xsmall", rounded: "full", children: [
2568
+ content: /* @__PURE__ */ jsxs17(Badge3, { size: "2xsmall", rounded: "full", children: [
2521
2569
  rmaType,
2522
2570
  ": #",
2523
2571
  rmaId.slice(-7)
2524
2572
  ] }),
2525
- 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" })
2526
2574
  }
2527
2575
  );
2528
2576
  }
2529
2577
  var shipping_info_popover_default = ShippingInfoPopover;
2530
2578
 
2531
2579
  // src/pages/orders/order-detail/components/order-summary-section/order-summary-section.tsx
2532
- 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";
2533
2581
  var OrderSummarySection = ({ order }) => {
2534
- const { t } = useTranslation17();
2582
+ const { t } = useTranslation18();
2535
2583
  const prompt = usePrompt4();
2536
2584
  const { reservations } = useReservationItems(
2537
2585
  {
@@ -2590,24 +2638,24 @@ var OrderSummarySection = ({ order }) => {
2590
2638
  }
2591
2639
  );
2592
2640
  };
2593
- return /* @__PURE__ */ jsxs17(
2594
- Container10,
2641
+ return /* @__PURE__ */ jsxs18(
2642
+ Container11,
2595
2643
  {
2596
2644
  className: "divide-y p-0",
2597
2645
  "data-testid": "order-summary-section",
2598
2646
  children: [
2599
- /* @__PURE__ */ jsx17(Header3, { order, orderPreview }),
2600
- /* @__PURE__ */ jsx17(ItemBreakdown, { order, reservations }),
2601
- /* @__PURE__ */ jsx17(CostBreakdown, { order }),
2602
- /* @__PURE__ */ jsx17(DiscountAndTotalBreakdown, { order }),
2603
- /* @__PURE__ */ jsx17(Total2, { order }),
2604
- (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(
2605
2653
  "div",
2606
2654
  {
2607
2655
  className: "bg-ui-bg-subtle flex items-center justify-end gap-x-2 rounded-b-xl px-4 py-4",
2608
2656
  "data-testid": "order-summary-actions",
2609
2657
  children: [
2610
- showPayment && /* @__PURE__ */ jsx17(
2658
+ showPayment && /* @__PURE__ */ jsx18(
2611
2659
  Button7,
2612
2660
  {
2613
2661
  size: "small",
@@ -2617,14 +2665,14 @@ var OrderSummarySection = ({ order }) => {
2617
2665
  children: t("orders.payment.markAsPaid")
2618
2666
  }
2619
2667
  ),
2620
- showRefund && /* @__PURE__ */ jsx17(
2668
+ showRefund && /* @__PURE__ */ jsx18(
2621
2669
  Button7,
2622
2670
  {
2623
2671
  size: "small",
2624
2672
  variant: "secondary",
2625
2673
  asChild: true,
2626
2674
  "data-testid": "order-summary-refund-button",
2627
- 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", {
2628
2676
  amount: getStylizedAmount(
2629
2677
  pendingDifference * -1,
2630
2678
  order?.currency_code
@@ -2643,20 +2691,20 @@ var Header3 = ({
2643
2691
  order,
2644
2692
  orderPreview
2645
2693
  }) => {
2646
- const { t } = useTranslation17();
2694
+ const { t } = useTranslation18();
2647
2695
  const shouldDisableReturn = order.items.every(
2648
2696
  (i) => !(getReturnableQuantity(i) > 0)
2649
2697
  );
2650
2698
  const isOrderEditActive = orderPreview?.order_change?.change_type === "edit";
2651
2699
  const isOrderEditPending = orderPreview?.order_change?.change_type === "edit" && orderPreview?.order_change?.status === "pending";
2652
- return /* @__PURE__ */ jsxs17(
2700
+ return /* @__PURE__ */ jsxs18(
2653
2701
  "div",
2654
2702
  {
2655
2703
  className: "flex items-center justify-between px-6 py-4",
2656
2704
  "data-testid": "order-summary-header",
2657
2705
  children: [
2658
- /* @__PURE__ */ jsx17(Heading10, { level: "h2", "data-testid": "order-summary-heading", children: t("fields.summary") }),
2659
- /* @__PURE__ */ jsx17(
2706
+ /* @__PURE__ */ jsx18(Heading11, { level: "h2", "data-testid": "order-summary-heading", children: t("fields.summary") }),
2707
+ /* @__PURE__ */ jsx18(
2660
2708
  ActionMenu,
2661
2709
  {
2662
2710
  groups: [
@@ -2667,7 +2715,7 @@ var Header3 = ({
2667
2715
  isOrderEditPending ? "orders.summary.editOrderContinue" : "orders.summary.editOrder"
2668
2716
  ),
2669
2717
  to: `/orders/${order.id}/edits`,
2670
- icon: /* @__PURE__ */ jsx17(PencilSquare, {}),
2718
+ icon: /* @__PURE__ */ jsx18(PencilSquare, {}),
2671
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"
2672
2720
  }
2673
2721
  ]
@@ -2677,19 +2725,19 @@ var Header3 = ({
2677
2725
  {
2678
2726
  label: t("orders.returns.create"),
2679
2727
  to: `/orders/${order.id}/returns`,
2680
- icon: /* @__PURE__ */ jsx17(ArrowUturnLeft2, {}),
2728
+ icon: /* @__PURE__ */ jsx18(ArrowUturnLeft2, {}),
2681
2729
  disabled: shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.exchange_id || !!orderPreview?.order_change?.claim_id
2682
2730
  },
2683
2731
  {
2684
2732
  label: orderPreview?.order_change?.id && orderPreview?.order_change?.exchange_id ? t("orders.exchanges.manage") : t("orders.exchanges.create"),
2685
2733
  to: `/orders/${order.id}/exchanges`,
2686
- icon: /* @__PURE__ */ jsx17(ArrowPath3, {}),
2734
+ icon: /* @__PURE__ */ jsx18(ArrowPath3, {}),
2687
2735
  disabled: shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.return_id && !orderPreview?.order_change?.exchange_id || !!orderPreview?.order_change?.claim_id
2688
2736
  },
2689
2737
  {
2690
2738
  label: orderPreview?.order_change?.id && orderPreview?.order_change?.claim_id ? t("orders.claims.manage") : t("orders.claims.create"),
2691
2739
  to: `/orders/${order.id}/claims`,
2692
- icon: /* @__PURE__ */ jsx17(ExclamationCircle2, {}),
2740
+ icon: /* @__PURE__ */ jsx18(ExclamationCircle2, {}),
2693
2741
  disabled: shouldDisableReturn || isOrderEditActive || !!orderPreview?.order_change?.return_id && !orderPreview?.order_change?.claim_id || !!orderPreview?.order_change?.exchange_id
2694
2742
  }
2695
2743
  ]
@@ -2710,30 +2758,30 @@ var Item = ({
2710
2758
  claims,
2711
2759
  exchanges
2712
2760
  }) => {
2713
- const { t } = useTranslation17();
2761
+ const { t } = useTranslation18();
2714
2762
  const offerInventoryLinks = item.offer?.inventory_item_link ?? [];
2715
2763
  const isInventoryManaged = !!offerInventoryLinks.length;
2716
2764
  const hasInventoryKit = (item.variant?.inventory_items?.length || 0) > 1 || item.variant?.inventory_items?.some((i) => i.required_quantity > 1);
2717
2765
  const hasUnfulfilledItems = item.quantity - item.detail.fulfilled_quantity > 0;
2718
2766
  const offerSku = item.offer?.sku ?? null;
2719
2767
  const captionSku = offerSku ?? item.variant_sku ?? null;
2720
- return /* @__PURE__ */ jsxs17(Fragment3, { children: [
2721
- /* @__PURE__ */ jsxs17(
2768
+ return /* @__PURE__ */ jsxs18(Fragment3, { children: [
2769
+ /* @__PURE__ */ jsxs18(
2722
2770
  "div",
2723
2771
  {
2724
2772
  className: "text-ui-fg-subtle grid grid-cols-2 items-center gap-x-4 px-6 py-4",
2725
2773
  "data-testid": `order-summary-item-${item.id}`,
2726
2774
  children: [
2727
- /* @__PURE__ */ jsxs17(
2775
+ /* @__PURE__ */ jsxs18(
2728
2776
  "div",
2729
2777
  {
2730
2778
  className: "flex items-start gap-x-4",
2731
2779
  "data-testid": `order-summary-item-${item.id}-info`,
2732
2780
  children: [
2733
- /* @__PURE__ */ jsx17(Thumbnail, { src: item.thumbnail }),
2734
- /* @__PURE__ */ jsxs17("div", { children: [
2735
- /* @__PURE__ */ jsx17(
2736
- Text12,
2781
+ /* @__PURE__ */ jsx18(Thumbnail, { src: item.thumbnail }),
2782
+ /* @__PURE__ */ jsxs18("div", { children: [
2783
+ /* @__PURE__ */ jsx18(
2784
+ Text13,
2737
2785
  {
2738
2786
  size: "small",
2739
2787
  leading: "compact",
@@ -2742,19 +2790,19 @@ var Item = ({
2742
2790
  children: item.title
2743
2791
  }
2744
2792
  ),
2745
- captionSku && /* @__PURE__ */ jsxs17(
2793
+ captionSku && /* @__PURE__ */ jsxs18(
2746
2794
  "div",
2747
2795
  {
2748
2796
  className: "flex items-center gap-x-1",
2749
2797
  "data-testid": `order-summary-item-${item.id}-sku`,
2750
2798
  children: [
2751
- /* @__PURE__ */ jsx17(Text12, { size: "small", children: captionSku }),
2752
- /* @__PURE__ */ jsx17(Copy5, { content: captionSku, className: "text-ui-fg-muted" })
2799
+ /* @__PURE__ */ jsx18(Text13, { size: "small", children: captionSku }),
2800
+ /* @__PURE__ */ jsx18(Copy5, { content: captionSku, className: "text-ui-fg-muted" })
2753
2801
  ]
2754
2802
  }
2755
2803
  ),
2756
- /* @__PURE__ */ jsx17(
2757
- Text12,
2804
+ /* @__PURE__ */ jsx18(
2805
+ Text13,
2758
2806
  {
2759
2807
  size: "small",
2760
2808
  "data-testid": `order-summary-item-${item.id}-options`,
@@ -2765,31 +2813,31 @@ var Item = ({
2765
2813
  ]
2766
2814
  }
2767
2815
  ),
2768
- /* @__PURE__ */ jsxs17(
2816
+ /* @__PURE__ */ jsxs18(
2769
2817
  "div",
2770
2818
  {
2771
2819
  className: "grid grid-cols-3 items-center gap-x-4",
2772
2820
  "data-testid": `order-summary-item-${item.id}-pricing`,
2773
2821
  children: [
2774
- /* @__PURE__ */ jsx17("div", { className: "flex items-center justify-end gap-x-4", children: /* @__PURE__ */ jsx17(
2775
- Text12,
2822
+ /* @__PURE__ */ jsx18("div", { className: "flex items-center justify-end gap-x-4", children: /* @__PURE__ */ jsx18(
2823
+ Text13,
2776
2824
  {
2777
2825
  size: "small",
2778
2826
  "data-testid": `order-summary-item-${item.id}-unit-price`,
2779
2827
  children: getLocaleAmount(item.unit_price, currencyCode)
2780
2828
  }
2781
2829
  ) }),
2782
- /* @__PURE__ */ jsxs17(
2830
+ /* @__PURE__ */ jsxs18(
2783
2831
  "div",
2784
2832
  {
2785
2833
  className: "flex items-center gap-x-2",
2786
2834
  "data-testid": `order-summary-item-${item.id}-quantity`,
2787
2835
  children: [
2788
- /* @__PURE__ */ jsx17("div", { className: "w-fit min-w-[27px]", children: /* @__PURE__ */ jsxs17(Text12, { size: "small", children: [
2789
- /* @__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 }),
2790
2838
  "x"
2791
2839
  ] }) }),
2792
- /* @__PURE__ */ jsx17("div", { className: "overflow-visible", children: isInventoryManaged && hasUnfulfilledItems && /* @__PURE__ */ jsx17(
2840
+ /* @__PURE__ */ jsx18("div", { className: "overflow-visible", children: isInventoryManaged && hasUnfulfilledItems && /* @__PURE__ */ jsx18(
2793
2841
  StatusBadge4,
2794
2842
  {
2795
2843
  color: reservation ? "green" : "orange",
@@ -2801,8 +2849,8 @@ var Item = ({
2801
2849
  ]
2802
2850
  }
2803
2851
  ),
2804
- /* @__PURE__ */ jsx17("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx17(
2805
- Text12,
2852
+ /* @__PURE__ */ jsx18("div", { className: "flex items-center justify-end", children: /* @__PURE__ */ jsx18(
2853
+ Text13,
2806
2854
  {
2807
2855
  size: "small",
2808
2856
  className: "pt-[1px]",
@@ -2817,10 +2865,10 @@ var Item = ({
2817
2865
  },
2818
2866
  item.id
2819
2867
  ),
2820
- hasInventoryKit && /* @__PURE__ */ jsx17(InventoryKitBreakdown, { item }),
2821
- returns.map((r) => /* @__PURE__ */ jsx17(ReturnBreakdown, { orderReturn: r, itemId: item.id }, r.id)),
2822
- claims.map((claim) => /* @__PURE__ */ jsx17(ClaimBreakdown, { claim, itemId: item.id }, claim.id)),
2823
- 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(
2824
2872
  ExchangeBreakdown,
2825
2873
  {
2826
2874
  exchange,
@@ -2846,13 +2894,13 @@ var ItemBreakdown = ({
2846
2894
  order_id: order.id,
2847
2895
  fields: "*items,*items.reason"
2848
2896
  });
2849
- const reservationsMap = useMemo3(
2897
+ const reservationsMap = useMemo4(
2850
2898
  () => new Map((reservations || []).map((r) => [r.line_item_id, r])),
2851
2899
  [reservations]
2852
2900
  );
2853
- 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) => {
2854
2902
  const reservation = reservationsMap.get(item.id);
2855
- return /* @__PURE__ */ jsx17(
2903
+ return /* @__PURE__ */ jsx18(
2856
2904
  Item,
2857
2905
  {
2858
2906
  item,
@@ -2871,22 +2919,22 @@ var Cost = ({
2871
2919
  value,
2872
2920
  secondaryValue,
2873
2921
  tooltip
2874
- }) => /* @__PURE__ */ jsxs17("div", { className: "grid grid-cols-3 items-center", children: [
2875
- /* @__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: [
2876
2924
  label,
2877
2925
  " ",
2878
2926
  tooltip
2879
2927
  ] }),
2880
- /* @__PURE__ */ jsx17("div", { className: "text-right", children: /* @__PURE__ */ jsx17(Text12, { size: "small", leading: "compact", children: secondaryValue }) }),
2881
- /* @__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 }) })
2882
2930
  ] });
2883
2931
  var CostBreakdown = ({
2884
2932
  order
2885
2933
  }) => {
2886
- const { t } = useTranslation17();
2934
+ const { t } = useTranslation18();
2887
2935
  const [isTaxOpen, setIsTaxOpen] = useState6(false);
2888
2936
  const [isShippingOpen, setIsShippingOpen] = useState6(false);
2889
- const taxCodes = useMemo3(() => {
2937
+ const taxCodes = useMemo4(() => {
2890
2938
  const taxCodeMap = {};
2891
2939
  order.items.forEach((item) => {
2892
2940
  item.tax_lines?.forEach((line) => {
@@ -2911,32 +2959,32 @@ var CostBreakdown = ({
2911
2959
  return taxCodeMap;
2912
2960
  }, [order]);
2913
2961
  const hasTaxes = !!Object.keys(taxCodes).length;
2914
- return /* @__PURE__ */ jsxs17(
2962
+ return /* @__PURE__ */ jsxs18(
2915
2963
  "div",
2916
2964
  {
2917
2965
  className: "text-ui-fg-subtle flex flex-col gap-y-2 px-6 py-4",
2918
2966
  "data-testid": "order-summary-cost-breakdown",
2919
2967
  children: [
2920
- /* @__PURE__ */ jsx17(
2968
+ /* @__PURE__ */ jsx18(
2921
2969
  Cost,
2922
2970
  {
2923
2971
  label: t("orders.summary.itemSubtotal"),
2924
2972
  value: getLocaleAmount(order.item_subtotal, order.currency_code)
2925
2973
  }
2926
2974
  ),
2927
- /* @__PURE__ */ jsx17(
2975
+ /* @__PURE__ */ jsx18(
2928
2976
  Cost,
2929
2977
  {
2930
2978
  label: (
2931
2979
  // oxlint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
2932
- /* @__PURE__ */ jsxs17(
2980
+ /* @__PURE__ */ jsxs18(
2933
2981
  "span",
2934
2982
  {
2935
2983
  onClick: () => setIsShippingOpen((o) => !o),
2936
2984
  className: "flex cursor-pointer items-center gap-1",
2937
2985
  children: [
2938
- /* @__PURE__ */ jsx17("span", { children: t("orders.summary.shippingSubtotal") }),
2939
- /* @__PURE__ */ jsx17(
2986
+ /* @__PURE__ */ jsx18("span", { children: t("orders.summary.shippingSubtotal") }),
2987
+ /* @__PURE__ */ jsx18(
2940
2988
  TriangleDownMini,
2941
2989
  {
2942
2990
  style: {
@@ -2951,30 +2999,30 @@ var CostBreakdown = ({
2951
2999
  value: getLocaleAmount(order.shipping_subtotal, order.currency_code)
2952
3000
  }
2953
3001
  ),
2954
- 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(
2955
3003
  (m1, m2) => m1.created_at.localeCompare(m2.created_at)
2956
3004
  ).map((sm, i) => {
2957
- return /* @__PURE__ */ jsxs17(
3005
+ return /* @__PURE__ */ jsxs18(
2958
3006
  "div",
2959
3007
  {
2960
3008
  className: "flex items-center justify-between gap-x-2",
2961
3009
  children: [
2962
- /* @__PURE__ */ jsx17("div", { children: /* @__PURE__ */ jsxs17("span", { className: "txt-small", children: [
3010
+ /* @__PURE__ */ jsx18("div", { children: /* @__PURE__ */ jsxs18("span", { className: "txt-small", children: [
2963
3011
  sm.name,
2964
3012
  sm.detail.return_id && ` (${t("fields.returnShipping")})`,
2965
3013
  " ",
2966
- /* @__PURE__ */ jsx17(shipping_info_popover_default, { shippingMethod: sm }, i)
3014
+ /* @__PURE__ */ jsx18(shipping_info_popover_default, { shippingMethod: sm }, i)
2967
3015
  ] }) }),
2968
- /* @__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" }) }),
2969
- /* @__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) })
2970
3018
  ]
2971
3019
  },
2972
3020
  sm.id
2973
3021
  );
2974
3022
  }) }),
2975
- /* @__PURE__ */ jsxs17(Fragment3, { children: [
2976
- /* @__PURE__ */ jsxs17("div", { className: "flex justify-between", children: [
2977
- /* @__PURE__ */ jsxs17(
3023
+ /* @__PURE__ */ jsxs18(Fragment3, { children: [
3024
+ /* @__PURE__ */ jsxs18("div", { className: "flex justify-between", children: [
3025
+ /* @__PURE__ */ jsxs18(
2978
3026
  "div",
2979
3027
  {
2980
3028
  onClick: () => hasTaxes && setIsTaxOpen((o) => !o),
@@ -2982,8 +3030,8 @@ var CostBreakdown = ({
2982
3030
  "cursor-pointer": hasTaxes
2983
3031
  }),
2984
3032
  children: [
2985
- /* @__PURE__ */ jsx17("span", { className: "txt-small select-none", children: t("orders.summary.taxTotal") }),
2986
- hasTaxes && /* @__PURE__ */ jsx17(
3033
+ /* @__PURE__ */ jsx18("span", { className: "txt-small select-none", children: t("orders.summary.taxTotal") }),
3034
+ hasTaxes && /* @__PURE__ */ jsx18(
2987
3035
  TriangleDownMini,
2988
3036
  {
2989
3037
  style: {
@@ -2994,34 +3042,34 @@ var CostBreakdown = ({
2994
3042
  ]
2995
3043
  }
2996
3044
  ),
2997
- /* @__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) }) })
2998
3046
  ] }),
2999
- isTaxOpen && /* @__PURE__ */ jsx17("div", { className: "flex flex-col gap-1 pl-5", children: Object.entries(taxCodes).map(([code, { total, rate }]) => {
3000
- 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(
3001
3049
  "div",
3002
3050
  {
3003
3051
  className: "flex items-center justify-between gap-x-2",
3004
3052
  children: [
3005
- /* @__PURE__ */ jsxs17("div", { className: "flex gap-1", children: [
3006
- /* @__PURE__ */ jsx17("span", { className: "txt-small", children: code }),
3007
- /* @__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: [
3008
3056
  "(",
3009
3057
  formatPercentage(rate),
3010
3058
  ")"
3011
3059
  ] })
3012
3060
  ] }),
3013
- /* @__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" }) }),
3014
- /* @__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) })
3015
3063
  ]
3016
3064
  },
3017
3065
  code
3018
3066
  );
3019
3067
  }) })
3020
3068
  ] }),
3021
- /* @__PURE__ */ jsxs17("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
3022
- /* @__PURE__ */ jsx17(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.total") }),
3023
- /* @__PURE__ */ jsx17(
3024
- 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,
3025
3073
  {
3026
3074
  className: "text-ui-fg-subtle text-bold",
3027
3075
  size: "small",
@@ -3037,11 +3085,11 @@ var CostBreakdown = ({
3037
3085
  var DiscountAndTotalBreakdown = ({
3038
3086
  order
3039
3087
  }) => {
3040
- const { t } = useTranslation17();
3088
+ const { t } = useTranslation18();
3041
3089
  const [isDiscountOpen, setIsDiscountOpen] = useState6(false);
3042
3090
  const [isCreditLinesOpen, setIsCreditLinesOpen] = useState6(false);
3043
3091
  const creditLines = order.credit_lines ?? [];
3044
- const discounts = useMemo3(() => {
3092
+ const discounts = useMemo4(() => {
3045
3093
  const discounts2 = [];
3046
3094
  if (order.item_discount_total) {
3047
3095
  discounts2.push({
@@ -3069,18 +3117,18 @@ var DiscountAndTotalBreakdown = ({
3069
3117
  }, [order]);
3070
3118
  const hasDiscount = discounts.length > 0;
3071
3119
  const hasCreditLines = creditLines.length > 0;
3072
- return /* @__PURE__ */ jsxs17(
3120
+ return /* @__PURE__ */ jsxs18(
3073
3121
  "div",
3074
3122
  {
3075
3123
  className: "text-ui-fg-subtle flex flex-col gap-y-2 px-6 py-4",
3076
3124
  "data-testid": "order-summary-discount-breakdown",
3077
3125
  children: [
3078
- /* @__PURE__ */ jsx17(
3126
+ /* @__PURE__ */ jsx18(
3079
3127
  Cost,
3080
3128
  {
3081
3129
  label: (
3082
3130
  // oxlint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
3083
- /* @__PURE__ */ jsxs17(
3131
+ /* @__PURE__ */ jsxs18(
3084
3132
  "span",
3085
3133
  {
3086
3134
  onClick: () => hasDiscount && setIsDiscountOpen((o) => !o),
@@ -3089,8 +3137,8 @@ var DiscountAndTotalBreakdown = ({
3089
3137
  }),
3090
3138
  "data-testid": "order-summary-discount-toggle",
3091
3139
  children: [
3092
- /* @__PURE__ */ jsx17("span", { children: t("orders.summary.discountTotal") }),
3093
- hasDiscount && /* @__PURE__ */ jsx17(
3140
+ /* @__PURE__ */ jsx18("span", { children: t("orders.summary.discountTotal") }),
3141
+ hasDiscount && /* @__PURE__ */ jsx18(
3094
3142
  TriangleDownMini,
3095
3143
  {
3096
3144
  style: {
@@ -3105,41 +3153,41 @@ var DiscountAndTotalBreakdown = ({
3105
3153
  value: getLocaleAmount(order.discount_total, order.currency_code)
3106
3154
  }
3107
3155
  ),
3108
- isDiscountOpen && /* @__PURE__ */ jsx17("div", { className: "flex flex-col gap-1 pl-5", children: discounts.map(({ type, total, codes }) => {
3109
- 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(
3110
3158
  "div",
3111
3159
  {
3112
3160
  className: "flex items-center justify-between gap-x-2",
3113
3161
  children: [
3114
- /* @__PURE__ */ jsxs17("div", { className: "flex gap-1", children: [
3115
- /* @__PURE__ */ jsx17("span", { className: "txt-small", children: t(`fields.${type}`) }),
3116
- /* @__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: [
3117
3165
  "(",
3118
3166
  codes.join(", "),
3119
3167
  ")"
3120
3168
  ] })
3121
3169
  ] }),
3122
- /* @__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" }) }),
3123
- /* @__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) })
3124
3172
  ]
3125
3173
  },
3126
3174
  type
3127
3175
  );
3128
3176
  }) }),
3129
- hasCreditLines && /* @__PURE__ */ jsxs17(Fragment3, { children: [
3130
- /* @__PURE__ */ jsx17(
3177
+ hasCreditLines && /* @__PURE__ */ jsxs18(Fragment3, { children: [
3178
+ /* @__PURE__ */ jsx18(
3131
3179
  Cost,
3132
3180
  {
3133
3181
  label: (
3134
3182
  // oxlint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
3135
- /* @__PURE__ */ jsxs17(
3183
+ /* @__PURE__ */ jsxs18(
3136
3184
  "span",
3137
3185
  {
3138
3186
  onClick: () => setIsCreditLinesOpen((o) => !o),
3139
3187
  className: "flex cursor-pointer items-center gap-1",
3140
3188
  children: [
3141
- /* @__PURE__ */ jsx17("span", { children: t("orders.creditLines.title") }),
3142
- /* @__PURE__ */ jsx17(
3189
+ /* @__PURE__ */ jsx18("span", { children: t("orders.creditLines.title") }),
3190
+ /* @__PURE__ */ jsx18(
3143
3191
  TriangleDownMini,
3144
3192
  {
3145
3193
  style: {
@@ -3157,34 +3205,34 @@ var DiscountAndTotalBreakdown = ({
3157
3205
  )
3158
3206
  }
3159
3207
  ),
3160
- 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) => {
3161
3209
  const prettyReference = creditLine.reference?.split("_").join(" ").split("-").join(" ");
3162
- return /* @__PURE__ */ jsxs17(
3210
+ return /* @__PURE__ */ jsxs18(
3163
3211
  "div",
3164
3212
  {
3165
3213
  className: "flex items-center justify-between gap-x-2",
3166
3214
  children: [
3167
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center", children: [
3168
- /* @__PURE__ */ jsx17(
3169
- Text12,
3215
+ /* @__PURE__ */ jsxs18("div", { className: "flex items-center", children: [
3216
+ /* @__PURE__ */ jsx18(
3217
+ Text13,
3170
3218
  {
3171
3219
  size: "small",
3172
3220
  leading: "compact",
3173
3221
  weight: "plus",
3174
3222
  className: "txt-small text-ui-fg-subtle font-medium",
3175
- children: /* @__PURE__ */ jsx17(display_id_default, { id: creditLine.id })
3223
+ children: /* @__PURE__ */ jsx18(display_id_default, { id: creditLine.id })
3176
3224
  }
3177
3225
  ),
3178
- /* @__PURE__ */ jsx17("span", { className: "txt-small text-ui-fg-subtle mx-1", children: "-" }),
3179
- /* @__PURE__ */ jsx17(
3226
+ /* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-subtle mx-1", children: "-" }),
3227
+ /* @__PURE__ */ jsx18(
3180
3228
  Tooltip6,
3181
3229
  {
3182
3230
  content: format3(
3183
3231
  new Date(creditLine.created_at),
3184
3232
  "dd MMM, yyyy, HH:mm:ss"
3185
3233
  ),
3186
- children: /* @__PURE__ */ jsx17(
3187
- Text12,
3234
+ children: /* @__PURE__ */ jsx18(
3235
+ Text13,
3188
3236
  {
3189
3237
  size: "small",
3190
3238
  leading: "compact",
@@ -3197,9 +3245,9 @@ var DiscountAndTotalBreakdown = ({
3197
3245
  )
3198
3246
  }
3199
3247
  ),
3200
- /* @__PURE__ */ jsx17("span", { className: "txt-small text-ui-fg-subtle mx-1", children: "-" }),
3201
- /* @__PURE__ */ jsxs17(
3202
- Text12,
3248
+ /* @__PURE__ */ jsx18("span", { className: "txt-small text-ui-fg-subtle mx-1", children: "-" }),
3249
+ /* @__PURE__ */ jsxs18(
3250
+ Text13,
3203
3251
  {
3204
3252
  size: "small",
3205
3253
  leading: "compact",
@@ -3212,8 +3260,8 @@ var DiscountAndTotalBreakdown = ({
3212
3260
  }
3213
3261
  )
3214
3262
  ] }),
3215
- /* @__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" }) }),
3216
- /* @__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(
3217
3265
  creditLine.amount,
3218
3266
  order.currency_code
3219
3267
  ) })
@@ -3223,10 +3271,10 @@ var DiscountAndTotalBreakdown = ({
3223
3271
  );
3224
3272
  }) })
3225
3273
  ] }),
3226
- /* @__PURE__ */ jsxs17("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
3227
- /* @__PURE__ */ jsx17(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("orders.summary.totalAfterDiscount") }),
3228
- /* @__PURE__ */ jsx17(
3229
- 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,
3230
3278
  {
3231
3279
  className: "text-ui-fg-subtle text-bold",
3232
3280
  size: "small",
@@ -3240,17 +3288,17 @@ var DiscountAndTotalBreakdown = ({
3240
3288
  );
3241
3289
  };
3242
3290
  var InventoryKitBreakdown = ({ item }) => {
3243
- const { t } = useTranslation17();
3291
+ const { t } = useTranslation18();
3244
3292
  const [isOpen, setIsOpen] = useState6(false);
3245
3293
  const inventory = item.variant?.inventory_items || [];
3246
- return /* @__PURE__ */ jsxs17(Fragment3, { children: [
3247
- /* @__PURE__ */ jsxs17(
3294
+ return /* @__PURE__ */ jsxs18(Fragment3, { children: [
3295
+ /* @__PURE__ */ jsxs18(
3248
3296
  "div",
3249
3297
  {
3250
3298
  onClick: () => setIsOpen((o) => !o),
3251
3299
  className: "flex cursor-pointer items-center gap-2 border-t border-dashed px-6 py-4",
3252
3300
  children: [
3253
- /* @__PURE__ */ jsx17(
3301
+ /* @__PURE__ */ jsx18(
3254
3302
  TriangleDownMini,
3255
3303
  {
3256
3304
  style: {
@@ -3258,26 +3306,26 @@ var InventoryKitBreakdown = ({ item }) => {
3258
3306
  }
3259
3307
  }
3260
3308
  ),
3261
- /* @__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 }) })
3262
3310
  ]
3263
3311
  }
3264
3312
  ),
3265
- isOpen && /* @__PURE__ */ jsx17("div", { className: "flex flex-col gap-1 px-6 pb-4", children: inventory.map((i) => {
3266
- 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(
3267
3315
  "div",
3268
3316
  {
3269
3317
  className: "flex items-center justify-between gap-x-2",
3270
3318
  children: [
3271
- /* @__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: [
3272
3320
  i.inventory.title,
3273
- 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: [
3274
3322
  " ",
3275
3323
  "\u22C5 ",
3276
3324
  i.inventory.sku
3277
3325
  ] })
3278
3326
  ] }) }),
3279
- /* @__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" }) }),
3280
- /* @__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: [
3281
3329
  i.required_quantity,
3282
3330
  "x"
3283
3331
  ] })
@@ -3292,21 +3340,21 @@ var ReturnBreakdownWithDamages = ({
3292
3340
  orderReturn,
3293
3341
  itemId
3294
3342
  }) => {
3295
- const { t } = useTranslation17();
3343
+ const { t } = useTranslation18();
3296
3344
  const item = orderReturn?.items?.find((ri) => ri.item_id === itemId);
3297
3345
  const damagedQuantity = item?.damaged_quantity || 0;
3298
- return item && /* @__PURE__ */ jsxs17(
3346
+ return item && /* @__PURE__ */ jsxs18(
3299
3347
  "div",
3300
3348
  {
3301
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",
3302
3350
  children: [
3303
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
3304
- /* @__PURE__ */ jsx17(ArrowDownRightMini2, { className: "text-ui-fg-muted" }),
3305
- /* @__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`, {
3306
3354
  quantity: damagedQuantity
3307
3355
  }) }),
3308
- item?.note && /* @__PURE__ */ jsx17(Tooltip6, { content: item.note, children: /* @__PURE__ */ jsx17(DocumentText2, { className: "text-ui-tag-neutral-icon ml-1 inline" }) }),
3309
- 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(
3310
3358
  Badge4,
3311
3359
  {
3312
3360
  size: "2xsmall",
@@ -3316,9 +3364,9 @@ var ReturnBreakdownWithDamages = ({
3316
3364
  }
3317
3365
  )
3318
3366
  ] }),
3319
- /* @__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: [
3320
3368
  t(`orders.returns.damagedItemReceived`),
3321
- /* @__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 }) })
3322
3370
  ] })
3323
3371
  ]
3324
3372
  },
@@ -3329,7 +3377,7 @@ var ReturnBreakdown = ({
3329
3377
  orderReturn,
3330
3378
  itemId
3331
3379
  }) => {
3332
- const { t } = useTranslation17();
3380
+ const { t } = useTranslation18();
3333
3381
  const { getRelativeDate } = useDate();
3334
3382
  if (!["requested", "received", "partially_received"].includes(
3335
3383
  orderReturn.status || ""
@@ -3339,29 +3387,29 @@ var ReturnBreakdown = ({
3339
3387
  const isRequested = orderReturn.status === "requested";
3340
3388
  const item = orderReturn?.items?.find((ri) => ri.item_id === itemId);
3341
3389
  const damagedQuantity = item?.damaged_quantity || 0;
3342
- return item && /* @__PURE__ */ jsxs17(Fragment3, { children: [
3343
- damagedQuantity > 0 && /* @__PURE__ */ jsx17(
3390
+ return item && /* @__PURE__ */ jsxs18(Fragment3, { children: [
3391
+ damagedQuantity > 0 && /* @__PURE__ */ jsx18(
3344
3392
  ReturnBreakdownWithDamages,
3345
3393
  {
3346
3394
  orderReturn,
3347
3395
  itemId
3348
3396
  }
3349
3397
  ),
3350
- /* @__PURE__ */ jsxs17(
3398
+ /* @__PURE__ */ jsxs18(
3351
3399
  "div",
3352
3400
  {
3353
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",
3354
3402
  children: [
3355
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
3356
- /* @__PURE__ */ jsx17(ArrowDownRightMini2, { className: "text-ui-fg-muted" }),
3357
- /* @__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(
3358
3406
  `orders.returns.${isRequested ? "returnRequestedInfo" : "returnReceivedInfo"}`,
3359
3407
  {
3360
3408
  requestedItemsCount: item?.[isRequested ? "quantity" : "received_quantity"]
3361
3409
  }
3362
3410
  ) }),
3363
- item?.note && /* @__PURE__ */ jsx17(Tooltip6, { content: item.note, children: /* @__PURE__ */ jsx17(DocumentText2, { className: "text-ui-tag-neutral-icon ml-1 inline" }) }),
3364
- 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(
3365
3413
  Badge4,
3366
3414
  {
3367
3415
  size: "2xsmall",
@@ -3371,13 +3419,13 @@ var ReturnBreakdown = ({
3371
3419
  }
3372
3420
  )
3373
3421
  ] }),
3374
- 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: [
3375
3423
  getRelativeDate(orderReturn.created_at),
3376
- /* @__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 }) })
3377
3425
  ] }),
3378
- 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: [
3379
3427
  t(`orders.returns.itemReceived`),
3380
- /* @__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 }) })
3381
3429
  ] })
3382
3430
  ]
3383
3431
  },
@@ -3389,26 +3437,26 @@ var ClaimBreakdown = ({
3389
3437
  claim,
3390
3438
  itemId
3391
3439
  }) => {
3392
- const { t } = useTranslation17();
3440
+ const { t } = useTranslation18();
3393
3441
  const { getRelativeDate } = useDate();
3394
3442
  const items = claim.additional_items.filter(
3395
3443
  (item) => item.item?.id === itemId
3396
3444
  );
3397
- return !!items.length && /* @__PURE__ */ jsxs17(
3445
+ return !!items.length && /* @__PURE__ */ jsxs18(
3398
3446
  "div",
3399
3447
  {
3400
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",
3401
3449
  children: [
3402
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
3403
- /* @__PURE__ */ jsx17(ArrowDownRightMini2, { className: "text-ui-fg-muted" }),
3404
- /* @__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`, {
3405
3453
  itemsCount: items.reduce(
3406
3454
  (acc, item) => acc = acc + item.quantity,
3407
3455
  0
3408
3456
  )
3409
3457
  }) })
3410
3458
  ] }),
3411
- /* @__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) })
3412
3460
  ]
3413
3461
  },
3414
3462
  claim.id
@@ -3418,68 +3466,68 @@ var ExchangeBreakdown = ({
3418
3466
  exchange,
3419
3467
  itemId
3420
3468
  }) => {
3421
- const { t } = useTranslation17();
3469
+ const { t } = useTranslation18();
3422
3470
  const { getRelativeDate } = useDate();
3423
3471
  const items = exchange.additional_items.filter(
3424
3472
  (item) => item?.item?.id === itemId
3425
3473
  );
3426
- return !!items.length && /* @__PURE__ */ jsxs17(
3474
+ return !!items.length && /* @__PURE__ */ jsxs18(
3427
3475
  "div",
3428
3476
  {
3429
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",
3430
3478
  children: [
3431
- /* @__PURE__ */ jsxs17("div", { className: "flex items-center gap-2", children: [
3432
- /* @__PURE__ */ jsx17(ArrowDownRightMini2, { className: "text-ui-fg-muted" }),
3433
- /* @__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`, {
3434
3482
  itemsCount: items.reduce(
3435
3483
  (acc, item) => acc = acc + item.quantity,
3436
3484
  0
3437
3485
  )
3438
3486
  }) })
3439
3487
  ] }),
3440
- /* @__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) })
3441
3489
  ]
3442
3490
  },
3443
3491
  exchange.id
3444
3492
  );
3445
3493
  };
3446
3494
  var Total2 = ({ order }) => {
3447
- const { t } = useTranslation17();
3448
- return /* @__PURE__ */ jsxs17(
3495
+ const { t } = useTranslation18();
3496
+ return /* @__PURE__ */ jsxs18(
3449
3497
  "div",
3450
3498
  {
3451
3499
  className: " flex flex-col gap-y-2 px-6 py-4",
3452
3500
  "data-testid": "order-summary-total",
3453
3501
  children: [
3454
- /* @__PURE__ */ jsxs17(
3502
+ /* @__PURE__ */ jsxs18(
3455
3503
  "div",
3456
3504
  {
3457
3505
  className: "text-ui-fg-base flex items-center justify-between",
3458
3506
  "data-testid": "order-summary-paid-total",
3459
3507
  children: [
3460
- /* @__PURE__ */ jsx17(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.paidTotal") }),
3461
- /* @__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(
3462
3510
  getTotalCaptured(order.payment_collections || []),
3463
3511
  order.currency_code
3464
3512
  ) })
3465
3513
  ]
3466
3514
  }
3467
3515
  ),
3468
- getTotalCreditLines(order.credit_lines ?? []) > 0 && /* @__PURE__ */ jsxs17("div", { className: "text-ui-fg-base flex items-center justify-between", children: [
3469
- /* @__PURE__ */ jsx17(Text12, { className: "text-ui-fg-subtle", size: "small", leading: "compact", children: t("fields.creditTotal") }),
3470
- /* @__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(
3471
3519
  getTotalCreditLines(order.credit_lines ?? []),
3472
3520
  order.currency_code
3473
3521
  ) })
3474
3522
  ] }),
3475
- /* @__PURE__ */ jsxs17(
3523
+ /* @__PURE__ */ jsxs18(
3476
3524
  "div",
3477
3525
  {
3478
3526
  className: "text-ui-fg-base flex items-center justify-between",
3479
3527
  "data-testid": "order-summary-outstanding-amount",
3480
3528
  children: [
3481
- /* @__PURE__ */ jsx17(
3482
- Text12,
3529
+ /* @__PURE__ */ jsx18(
3530
+ Text13,
3483
3531
  {
3484
3532
  className: "text-ui-fg-subtle text-semibold",
3485
3533
  size: "small",
@@ -3487,8 +3535,8 @@ var Total2 = ({ order }) => {
3487
3535
  children: t("orders.returns.outstandingAmount")
3488
3536
  }
3489
3537
  ),
3490
- /* @__PURE__ */ jsx17(
3491
- Text12,
3538
+ /* @__PURE__ */ jsx18(
3539
+ Text13,
3492
3540
  {
3493
3541
  className: "text-ui-fg-subtle text-bold",
3494
3542
  size: "small",
@@ -3508,21 +3556,21 @@ var Total2 = ({ order }) => {
3508
3556
  };
3509
3557
 
3510
3558
  // src/pages/orders/order-detail/components/order-remaining-orders-group-section/order-remaining-orders-group-section.tsx
3511
- import { Container as Container11, Heading as Heading11 } from "@medusajs/ui";
3559
+ import { Container as Container12, Heading as Heading12 } from "@medusajs/ui";
3512
3560
  import { createColumnHelper } from "@tanstack/react-table";
3513
- import { useMemo as useMemo4 } from "react";
3514
- import { useTranslation as useTranslation18 } from "react-i18next";
3561
+ import { useMemo as useMemo5 } from "react";
3562
+ import { useTranslation as useTranslation19 } from "react-i18next";
3515
3563
  import { useParams } from "react-router-dom";
3516
- import { jsx as jsx18, jsxs as jsxs18 } from "react/jsx-runtime";
3564
+ import { jsx as jsx19, jsxs as jsxs19 } from "react/jsx-runtime";
3517
3565
  var DEFAULT_FIELDS2 = "id,*orders,*orders.customer,*orders.seller,*orders.sales_channel";
3518
3566
  var OrderRemainingOrdersGroupSection = () => {
3519
3567
  const { id } = useParams();
3520
- const { t } = useTranslation18();
3568
+ const { t } = useTranslation19();
3521
3569
  const { order_group, isLoading, isError, error } = useOrderGroupByOrderId(
3522
3570
  id,
3523
3571
  { fields: DEFAULT_FIELDS2 }
3524
3572
  );
3525
- const orders = useMemo4(() => {
3573
+ const orders = useMemo5(() => {
3526
3574
  const group = order_group;
3527
3575
  if (!group?.orders) return [];
3528
3576
  return group.orders.filter((o) => o.id !== id);
@@ -3542,24 +3590,24 @@ var OrderRemainingOrdersGroupSection = () => {
3542
3590
  if (!isLoading && orders.length === 0) {
3543
3591
  return null;
3544
3592
  }
3545
- return /* @__PURE__ */ jsxs18(
3546
- Container11,
3593
+ return /* @__PURE__ */ jsxs19(
3594
+ Container12,
3547
3595
  {
3548
3596
  className: "divide-y p-0",
3549
3597
  "data-testid": "order-remaining-orders-group-section",
3550
3598
  children: [
3551
- /* @__PURE__ */ jsx18(
3599
+ /* @__PURE__ */ jsx19(
3552
3600
  "div",
3553
3601
  {
3554
3602
  className: "flex items-center justify-between px-6 py-4",
3555
3603
  "data-testid": "order-remaining-orders-group-header",
3556
- 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: [
3557
3605
  t("orders.domain"),
3558
3606
  " in group"
3559
3607
  ] })
3560
3608
  }
3561
3609
  ),
3562
- /* @__PURE__ */ jsx18(
3610
+ /* @__PURE__ */ jsx19(
3563
3611
  _DataTable,
3564
3612
  {
3565
3613
  columns,
@@ -3579,35 +3627,35 @@ var OrderRemainingOrdersGroupSection = () => {
3579
3627
  };
3580
3628
  var columnHelper = createColumnHelper();
3581
3629
  var useColumns = () => {
3582
- return useMemo4(
3630
+ return useMemo5(
3583
3631
  () => [
3584
3632
  columnHelper.accessor("display_id", {
3585
- header: () => /* @__PURE__ */ jsx18(DisplayIdHeader, {}),
3586
- cell: ({ getValue }) => /* @__PURE__ */ jsx18(DisplayIdCell, { displayId: getValue() })
3633
+ header: () => /* @__PURE__ */ jsx19(DisplayIdHeader, {}),
3634
+ cell: ({ getValue }) => /* @__PURE__ */ jsx19(DisplayIdCell, { displayId: getValue() })
3587
3635
  }),
3588
3636
  columnHelper.display({
3589
3637
  id: "seller",
3590
- header: () => /* @__PURE__ */ jsx18(TextHeader, { text: "Store" }),
3638
+ header: () => /* @__PURE__ */ jsx19(TextHeader, { text: "Store" }),
3591
3639
  cell: ({ row }) => {
3592
3640
  const seller = row.original.seller;
3593
- return /* @__PURE__ */ jsx18(TextCell, { text: seller?.name ?? "-" });
3641
+ return /* @__PURE__ */ jsx19(TextCell, { text: seller?.name ?? "-" });
3594
3642
  }
3595
3643
  }),
3596
3644
  columnHelper.accessor("created_at", {
3597
- header: () => /* @__PURE__ */ jsx18(DateHeader, {}),
3598
- cell: ({ getValue }) => /* @__PURE__ */ jsx18(DateCell, { date: new Date(getValue()) })
3645
+ header: () => /* @__PURE__ */ jsx19(DateHeader, {}),
3646
+ cell: ({ getValue }) => /* @__PURE__ */ jsx19(DateCell, { date: new Date(getValue()) })
3599
3647
  }),
3600
3648
  columnHelper.accessor("payment_status", {
3601
- header: () => /* @__PURE__ */ jsx18(PaymentStatusHeader, {}),
3602
- cell: ({ getValue }) => /* @__PURE__ */ jsx18(PaymentStatusCell, { status: getValue() })
3649
+ header: () => /* @__PURE__ */ jsx19(PaymentStatusHeader, {}),
3650
+ cell: ({ getValue }) => /* @__PURE__ */ jsx19(PaymentStatusCell, { status: getValue() })
3603
3651
  }),
3604
3652
  columnHelper.accessor("fulfillment_status", {
3605
- header: () => /* @__PURE__ */ jsx18(FulfillmentStatusHeader, {}),
3606
- cell: ({ getValue }) => /* @__PURE__ */ jsx18(FulfillmentStatusCell, { status: getValue() })
3653
+ header: () => /* @__PURE__ */ jsx19(FulfillmentStatusHeader, {}),
3654
+ cell: ({ getValue }) => /* @__PURE__ */ jsx19(FulfillmentStatusCell, { status: getValue() })
3607
3655
  }),
3608
3656
  columnHelper.accessor("total", {
3609
- header: () => /* @__PURE__ */ jsx18(TotalHeader, {}),
3610
- cell: ({ getValue, row }) => /* @__PURE__ */ jsx18(
3657
+ header: () => /* @__PURE__ */ jsx19(TotalHeader, {}),
3658
+ cell: ({ getValue, row }) => /* @__PURE__ */ jsx19(
3611
3659
  TotalCell,
3612
3660
  {
3613
3661
  currencyCode: row.original.currency_code,
@@ -3621,7 +3669,7 @@ var useColumns = () => {
3621
3669
  };
3622
3670
 
3623
3671
  // src/pages/orders/order-detail/order-detail.tsx
3624
- import { jsx as jsx19, jsxs as jsxs19 } from "react/jsx-runtime";
3672
+ import { jsx as jsx20, jsxs as jsxs20 } from "react/jsx-runtime";
3625
3673
  var Root = ({ children }) => {
3626
3674
  const initialData = useLoaderData();
3627
3675
  const { id } = useParams2();
@@ -3650,12 +3698,12 @@ var Root = ({ children }) => {
3650
3698
  id
3651
3699
  );
3652
3700
  if (isLoading || !order || isPreviewLoading) {
3653
- return /* @__PURE__ */ jsx19(TwoColumnPageSkeleton, { mainSections: 4, sidebarSections: 2, showJSON: true });
3701
+ return /* @__PURE__ */ jsx20(TwoColumnPageSkeleton, { mainSections: 4, sidebarSections: 2, showJSON: true });
3654
3702
  }
3655
3703
  if (isError) {
3656
3704
  throw error;
3657
3705
  }
3658
- return Children.count(children) > 0 ? /* @__PURE__ */ jsx19(
3706
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx20(
3659
3707
  TwoColumnPage,
3660
3708
  {
3661
3709
  data: order,
@@ -3665,7 +3713,7 @@ var Root = ({ children }) => {
3665
3713
  "data-testid": "order-detail-page",
3666
3714
  children
3667
3715
  }
3668
- ) : /* @__PURE__ */ jsxs19(
3716
+ ) : /* @__PURE__ */ jsxs20(
3669
3717
  TwoColumnPage,
3670
3718
  {
3671
3719
  data: order,
@@ -3674,20 +3722,21 @@ var Root = ({ children }) => {
3674
3722
  hasOutlet: true,
3675
3723
  "data-testid": "order-detail-page",
3676
3724
  children: [
3677
- /* @__PURE__ */ jsxs19(TwoColumnPage.Main, { "data-testid": "order-detail-main", children: [
3678
- /* @__PURE__ */ jsx19(OrderActiveEditSection, { order }),
3679
- /* @__PURE__ */ jsx19(ActiveOrderClaimSection, { orderPreview }),
3680
- /* @__PURE__ */ jsx19(ActiveOrderExchangeSection, { orderPreview }),
3681
- /* @__PURE__ */ jsx19(ActiveOrderReturnSection, { orderPreview }),
3682
- /* @__PURE__ */ jsx19(OrderGeneralSection, { order }),
3683
- /* @__PURE__ */ jsx19(OrderSummarySection, { order }),
3684
- /* @__PURE__ */ jsx19(OrderPaymentSection, { order }),
3685
- /* @__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 })
3686
3735
  ] }),
3687
- /* @__PURE__ */ jsxs19(TwoColumnPage.Sidebar, { "data-testid": "order-detail-sidebar", children: [
3688
- /* @__PURE__ */ jsx19(OrderCustomerSection, { order }),
3689
- /* @__PURE__ */ jsx19(OrderActivitySection, { order }),
3690
- /* @__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, {})
3691
3740
  ] })
3692
3741
  ]
3693
3742
  }