@mercurjs/admin 2.2.0-canary.8 → 2.2.0-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (416) hide show
  1. package/dist/{add-campaign-promotions-RURZSD6G.js → add-campaign-promotions-QK73ARX4.js} +14 -14
  2. package/dist/{adjust-inventory-4PM2YZK3.js → adjust-inventory-X45NEQFK.js} +33 -33
  3. package/dist/{api-key-management-create-MRLR4WFZ.js → api-key-management-create-LOD37GOQ.js} +5 -5
  4. package/dist/{api-key-management-detail-BG7U2KCT.js → api-key-management-detail-HKNZPPR2.js} +36 -37
  5. package/dist/{api-key-management-edit-EZHFP3RR.js → api-key-management-edit-JP2GUMMJ.js} +5 -5
  6. package/dist/{api-key-management-list-OPANEDHB.js → api-key-management-list-5RXBJ24C.js} +9 -9
  7. package/dist/{api-key-management-sales-channels-PBL3V4IS.js → api-key-management-sales-channels-4GLVMHU6.js} +9 -10
  8. package/dist/{attribute-create-L6YA6HTF.js → attribute-create-VGL7LGIH.js} +56 -66
  9. package/dist/{attribute-create-possible-value-EXVHC272.js → attribute-create-possible-value-QFXKXZM4.js} +2 -2
  10. package/dist/{attribute-detail-Q3P7SCZ2.js → attribute-detail-EKDAYT4B.js} +56 -44
  11. package/dist/{attribute-edit-LUY66TG3.js → attribute-edit-OBNLNOJS.js} +7 -7
  12. package/dist/{attribute-edit-possible-value-IOS3625C.js → attribute-edit-possible-value-QDFVWLA3.js} +5 -5
  13. package/dist/{attribute-edit-ranking-7AAAYEC7.js → attribute-edit-ranking-YGR3KCSC.js} +3 -3
  14. package/dist/attribute-list-6A72PBIY.js +61 -0
  15. package/dist/breadcrumb-GHBR74WM.js +27 -0
  16. package/dist/breadcrumb-IEEJTH47.js +26 -0
  17. package/dist/{campaign-budget-edit-WKSYXTBX.js → campaign-budget-edit-NONE5NMV.js} +3 -3
  18. package/dist/{campaign-configuration-ZTK46EB5.js → campaign-configuration-JYSVIQFE.js} +3 -3
  19. package/dist/{campaign-create-7BELREFT.js → campaign-create-6U2PONHA.js} +7 -7
  20. package/dist/{campaign-detail-JFNFC6FY.js → campaign-detail-RNB3FEJZ.js} +41 -41
  21. package/dist/{campaign-edit-ZGLDY4X4.js → campaign-edit-MAS3DCFB.js} +3 -3
  22. package/dist/{campaign-list-NQGNOFVZ.js → campaign-list-CDV4GWWD.js} +7 -7
  23. package/dist/{categories-metadata-5THJAHOA.js → categories-metadata-4LXL2PWA.js} +34 -34
  24. package/dist/{category-create-QPQQGIEN.js → category-create-AIS2MG7E.js} +10 -7
  25. package/dist/{category-detail-7Y76K4I5.js → category-detail-557376TZ.js} +46 -44
  26. package/dist/{category-edit-DJP7TK4X.js → category-edit-LYR2IOTA.js} +7 -6
  27. package/dist/category-icon-edit-W2TPCSDC.js +117 -0
  28. package/dist/{category-list-T5SE63HU.js → category-list-XKRI24VN.js} +12 -9
  29. package/dist/category-media-PC4V7YU4.js +655 -0
  30. package/dist/{category-organize-DQQGAAJY.js → category-organize-H4JYCHDA.js} +3 -3
  31. package/dist/{category-products-T525MDHE.js → category-products-44PCDDNN.js} +48 -47
  32. package/dist/{chunk-A7JOHU6Q.js → chunk-25U23TXK.js} +2 -2
  33. package/dist/{chunk-Q23KHB6V.js → chunk-2FPQHWJZ.js} +3 -3
  34. package/dist/{chunk-WQFFCK3R.js → chunk-2V74T2WI.js} +1 -1
  35. package/dist/{chunk-3UKIBKFD.js → chunk-2Z2M5K5A.js} +4 -4
  36. package/dist/{chunk-26UTIAAZ.js → chunk-32URSQ4F.js} +1 -1
  37. package/dist/{chunk-DWCBB4QM.js → chunk-32ZNZDFT.js} +4 -4
  38. package/dist/{chunk-FJLKDTNA.js → chunk-3BTRS4AA.js} +81 -64
  39. package/dist/{chunk-VKOE5J66.js → chunk-3XOE4NV5.js} +11 -2
  40. package/dist/{chunk-HJKZBCDB.js → chunk-4346EIRG.js} +5 -5
  41. package/dist/{chunk-J4MAIN7L.js → chunk-4BCUGMOR.js} +2 -2
  42. package/dist/{chunk-CVFVEDMV.js → chunk-4BPQNCF5.js} +2 -2
  43. package/dist/chunk-4C7L7TJT.js +87 -0
  44. package/dist/{chunk-JSMUFZZN.js → chunk-56UFDHNO.js} +1 -1
  45. package/dist/{chunk-2666PZI5.js → chunk-5ACJR6WB.js} +5 -5
  46. package/dist/{chunk-JQV7CXEC.js → chunk-5BSSIDW6.js} +17 -2
  47. package/dist/{chunk-CPXK5RSJ.js → chunk-5Y2AIJ2T.js} +1 -1
  48. package/dist/{chunk-BGQ7H2KL.js → chunk-65YE4SVL.js} +5 -4
  49. package/dist/chunk-6BAPAIQM.js +8 -0
  50. package/dist/{chunk-IAWZQKUH.js → chunk-6BWJWA2F.js} +2 -2
  51. package/dist/{chunk-FB7DDNCA.js → chunk-6DJQITWV.js} +4 -4
  52. package/dist/{chunk-MU63NHPX.js → chunk-6KWWJE5P.js} +25 -16
  53. package/dist/{chunk-NQEXDLYH.js → chunk-6ZVV2XHU.js} +28 -9
  54. package/dist/{chunk-NC46O6TE.js → chunk-7O7LYBHL.js} +8 -8
  55. package/dist/chunk-7OKYEA6I.js +283 -0
  56. package/dist/{chunk-GKGLVDDV.js → chunk-A2F5MDPU.js} +1 -1
  57. package/dist/{chunk-LYREZINJ.js → chunk-ABS7HMLY.js} +2 -2
  58. package/dist/{chunk-X45JKZYW.js → chunk-AMZ2QSSI.js} +6 -6
  59. package/dist/{chunk-XJ3WC4G7.js → chunk-BF7X4JQT.js} +2 -2
  60. package/dist/{chunk-3VTAK3S6.js → chunk-BFUHW56P.js} +4 -4
  61. package/dist/{chunk-LEG67A2R.js → chunk-BILFRATX.js} +1 -10
  62. package/dist/{chunk-MKBCBAS2.js → chunk-BLR3NTU6.js} +76 -23
  63. package/dist/{chunk-2ZRWLCYP.js → chunk-BNFTJW4L.js} +2 -2
  64. package/dist/{chunk-QJUWQDTX.js → chunk-BTJR5RSV.js} +11 -11
  65. package/dist/chunk-BVIIRGSW.js +204 -0
  66. package/dist/chunk-BW7BDHZV.js +34 -0
  67. package/dist/{chunk-LYZT5REU.js → chunk-C4XKPQ6T.js} +14 -1
  68. package/dist/{chunk-N6SI4IIT.js → chunk-CARSKIPW.js} +1 -1
  69. package/dist/chunk-CGIVQ7D2.js +115 -0
  70. package/dist/{chunk-HR7TFO2X.js → chunk-CHMIK6PK.js} +7 -7
  71. package/dist/{chunk-DRJAKRTI.js → chunk-CNODWD3F.js} +5 -5
  72. package/dist/chunk-CU4UVEHX.js +121 -0
  73. package/dist/{chunk-TXNRS2JR.js → chunk-CW3HYGS5.js} +1 -1
  74. package/dist/{chunk-WPVDACTL.js → chunk-DI2M3J5Q.js} +1 -1
  75. package/dist/{chunk-YYMACYP6.js → chunk-DL7ENIQB.js} +1 -1
  76. package/dist/{chunk-362ZBMNT.js → chunk-DPG4AWSG.js} +3 -3
  77. package/dist/{chunk-UCYSCKZV.js → chunk-DSTHXHJ5.js} +2114 -1699
  78. package/dist/{chunk-UQORUXQR.js → chunk-EGHDC6K6.js} +6 -6
  79. package/dist/{chunk-FXWKGNRV.js → chunk-EJY35WBK.js} +2 -2
  80. package/dist/{chunk-3JSAS7QP.js → chunk-EOSJHPHN.js} +22 -6
  81. package/dist/{chunk-46M463BR.js → chunk-EWFOFSF7.js} +1 -1
  82. package/dist/{chunk-GOWTUDQ3.js → chunk-EX4AGESR.js} +81 -77
  83. package/dist/{chunk-WCSHDVMB.js → chunk-F2SZ4LPF.js} +355 -40
  84. package/dist/{chunk-533GMKEG.js → chunk-F5NW4XBU.js} +23 -3
  85. package/dist/{chunk-5AZCIOS4.js → chunk-F6NPDZHW.js} +2 -2
  86. package/dist/chunk-FICKHCWL.js +279 -0
  87. package/dist/{chunk-LXJH3DOV.js → chunk-FLFE6HXW.js} +1 -1
  88. package/dist/{chunk-CMHI2RPL.js → chunk-FMJBQE56.js} +21 -0
  89. package/dist/{chunk-4LXBQTFN.js → chunk-FREUYHMS.js} +1 -1
  90. package/dist/{chunk-OHOWEMHO.js → chunk-G5KNNOXX.js} +32 -26
  91. package/dist/{chunk-ZN7LWXVC.js → chunk-GCEOEV6P.js} +1 -1
  92. package/dist/chunk-GCU4LHGY.js +1238 -0
  93. package/dist/{chunk-5MVC35DX.js → chunk-GISFIAGQ.js} +6 -6
  94. package/dist/{chunk-ZB4SO44T.js → chunk-GLZLBHFC.js} +2 -2
  95. package/dist/{chunk-PVZBDWLK.js → chunk-GRH7C3QN.js} +1 -1
  96. package/dist/{chunk-BFT3CN5L.js → chunk-GWSRWILC.js} +3 -3
  97. package/dist/{chunk-VDKOJ5WD.js → chunk-GYRTURN7.js} +1 -1
  98. package/dist/{chunk-LYZDVZWA.js → chunk-H7NIKMPE.js} +2 -2
  99. package/dist/{chunk-P42E3L6Z.js → chunk-HB3KRNZM.js} +1 -1
  100. package/dist/{chunk-I5THQVYP.js → chunk-HGTPUAHD.js} +1 -1
  101. package/dist/{chunk-IWI34SYT.js → chunk-HI7NZVSJ.js} +6 -6
  102. package/dist/{chunk-YFRC6GEN.js → chunk-HLL6GLZO.js} +3 -3
  103. package/dist/chunk-HQM7D57C.js +474 -0
  104. package/dist/{chunk-MVNO35S5.js → chunk-HRDVGFS7.js} +2 -2
  105. package/dist/chunk-HT34QVZR.js +184 -0
  106. package/dist/{chunk-WJJXUXSO.js → chunk-IC2PLPRP.js} +1 -1
  107. package/dist/{chunk-PK6LEBI7.js → chunk-IVBNI2QE.js} +228 -97
  108. package/dist/chunk-IWBQZK6E.js +166 -0
  109. package/dist/chunk-IZDTQFCP.js +65 -0
  110. package/dist/{chunk-JB6QDJN3.js → chunk-J3L2FUIA.js} +6 -5
  111. package/dist/{chunk-AEMDNTW5.js → chunk-J54BZXZX.js} +2 -2
  112. package/dist/{chunk-4TWWSI7H.js → chunk-JEDX4KBB.js} +3 -3
  113. package/dist/{chunk-Y2M536WR.js → chunk-JHBNG7OD.js} +17 -0
  114. package/dist/{chunk-LYD3C73Z.js → chunk-JI7HMGMO.js} +1 -1
  115. package/dist/{chunk-NUC27ELX.js → chunk-JLCA6PWC.js} +5 -5
  116. package/dist/chunk-JSVYNNPF.js +101 -0
  117. package/dist/{chunk-UGC6Z6CQ.js → chunk-JU2O2H7I.js} +16 -15
  118. package/dist/{chunk-KT7X72J4.js → chunk-JXSXBSV6.js} +9 -1
  119. package/dist/{chunk-EB5QHYKL.js → chunk-JZJT26E3.js} +2 -2
  120. package/dist/{chunk-33BERJSG.js → chunk-K6RZE3F7.js} +1 -1
  121. package/dist/{chunk-FNKBJCNF.js → chunk-K7H77TA5.js} +4 -4
  122. package/dist/{chunk-YGRTRAWX.js → chunk-KDE4HKH2.js} +1 -0
  123. package/dist/{chunk-45LX4LPV.js → chunk-KFYTUQXT.js} +7 -7
  124. package/dist/{chunk-PK645GWX.js → chunk-KGA2XI6W.js} +4 -4
  125. package/dist/chunk-KT4DGVRQ.js +381 -0
  126. package/dist/{chunk-Q2ULPJJ6.js → chunk-KXWN75T2.js} +2 -2
  127. package/dist/{chunk-LAPEZATU.js → chunk-L7DIEO5B.js} +1 -1
  128. package/dist/{chunk-CKD5563X.js → chunk-LQSSUC7W.js} +2 -2
  129. package/dist/{chunk-E5WBU7ZR.js → chunk-LSMTJU6Y.js} +3 -3
  130. package/dist/{chunk-LSLPZITW.js → chunk-LVRCEGL7.js} +176 -48
  131. package/dist/{chunk-ZBWL72TB.js → chunk-LXZXXOJ3.js} +1 -11
  132. package/dist/{chunk-B2STTXQV.js → chunk-ML7UVBKL.js} +1 -1
  133. package/dist/{chunk-DAXXLQKB.js → chunk-MO7TNIVQ.js} +1 -1
  134. package/dist/{chunk-I7L2Q6AL.js → chunk-MOG7LT73.js} +13 -13
  135. package/dist/{chunk-FEC24V7X.js → chunk-MW47LDBT.js} +2 -2
  136. package/dist/{chunk-SONUZNDT.js → chunk-MZOINNCV.js} +3 -3
  137. package/dist/{chunk-UXGLM3B4.js → chunk-NEGOGYEO.js} +4 -4
  138. package/dist/{chunk-FGWD66ZZ.js → chunk-NISAIYSW.js} +7 -7
  139. package/dist/{chunk-GP4J42UD.js → chunk-NOKCLBAL.js} +1 -1
  140. package/dist/{chunk-YNHS5G26.js → chunk-NQ2RDSI3.js} +2 -2
  141. package/dist/{chunk-U4IQFWPI.js → chunk-NWSKT55Z.js} +3 -3
  142. package/dist/{chunk-W4GX5X5E.js → chunk-NZVS6B77.js} +601 -744
  143. package/dist/{chunk-DV7QV3X2.js → chunk-OAN4CZKX.js} +9 -16
  144. package/dist/{chunk-HZQGZQTV.js → chunk-OPSGADQI.js} +10 -8
  145. package/dist/{chunk-C4JUURO5.js → chunk-OT5X3VOQ.js} +1 -1
  146. package/dist/{chunk-OMBP3YSV.js → chunk-OYZIFLLC.js} +19 -72
  147. package/dist/{chunk-634XVU3D.js → chunk-PAYQJPGK.js} +8 -1
  148. package/dist/{chunk-GQLVERZW.js → chunk-PFBJWWUA.js} +9 -9
  149. package/dist/{chunk-EZGIPTIF.js → chunk-PMVWIBTI.js} +8 -8
  150. package/dist/{chunk-VYMODH6P.js → chunk-PYF5EER5.js} +1 -1
  151. package/dist/{chunk-7BD24KNM.js → chunk-PYZ7VL5X.js} +3 -3
  152. package/dist/{chunk-X7H7TIOT.js → chunk-Q4R2O7XF.js} +9 -9
  153. package/dist/{chunk-5TRY5IMZ.js → chunk-Q6GUA5VE.js} +2 -2
  154. package/dist/{chunk-FPV32HVT.js → chunk-Q6QXFLUY.js} +6 -6
  155. package/dist/{chunk-B66CMFMH.js → chunk-QCIDV3AP.js} +3 -3
  156. package/dist/{chunk-PR7Y27BW.js → chunk-QDUZCJ7F.js} +1 -1
  157. package/dist/{chunk-OPX5O57R.js → chunk-QE4R2KT3.js} +1 -1
  158. package/dist/chunk-QJCUPZZQ.js +356 -0
  159. package/dist/chunk-QR3GYYX6.js +0 -0
  160. package/dist/{chunk-3B6MTW5G.js → chunk-QUHSHIAC.js} +3 -0
  161. package/dist/{chunk-OH4AABUT.js → chunk-R325CPYC.js} +1 -1
  162. package/dist/{chunk-JPNPTILP.js → chunk-R4O667NT.js} +1 -1
  163. package/dist/{chunk-PRBE5CM3.js → chunk-RGS5ZOY7.js} +32 -1
  164. package/dist/{chunk-WVJJGXM5.js → chunk-RIO2IHPE.js} +1 -1
  165. package/dist/{chunk-2FGRDEAD.js → chunk-RQQ53CQJ.js} +1 -1
  166. package/dist/{chunk-U2ZFCAPX.js → chunk-SITRHMZZ.js} +11 -8
  167. package/dist/{chunk-R5F52U3C.js → chunk-TDJSZ73V.js} +3 -3
  168. package/dist/{chunk-3VDLE5GA.js → chunk-TH26CWVG.js} +5 -5
  169. package/dist/{chunk-FFNSWUDC.js → chunk-THPXRTE5.js} +12 -5
  170. package/dist/{chunk-BKNAX6QQ.js → chunk-TZM63FZ4.js} +3 -3
  171. package/dist/{chunk-KJSCFEXT.js → chunk-UZ452ISX.js} +254 -54
  172. package/dist/{chunk-EFZBEG7O.js → chunk-VBKFXL2Q.js} +3 -3
  173. package/dist/{chunk-4XFFF2L5.js → chunk-VGXJXU7X.js} +8 -8
  174. package/dist/{chunk-ESPLVOFC.js → chunk-VHCDSNXF.js} +2 -2
  175. package/dist/{chunk-EJBFKCC5.js → chunk-VJ4LQXMA.js} +127 -61
  176. package/dist/chunk-VM56ZITS.js +356 -0
  177. package/dist/{chunk-KXIA66EJ.js → chunk-VPYI4X6C.js} +9 -5
  178. package/dist/{chunk-4KX6CBJ4.js → chunk-VSLHL2AZ.js} +2 -0
  179. package/dist/{chunk-EPHVGD5Z.js → chunk-VXW3BCN2.js} +1 -1
  180. package/dist/{chunk-X3PXBMI3.js → chunk-VY72NX26.js} +8 -8
  181. package/dist/{chunk-ACDG3RAL.js → chunk-VYQ6ASFF.js} +70 -125
  182. package/dist/{chunk-2YN2OI3W.js → chunk-W3P3RP5R.js} +17 -5
  183. package/dist/{chunk-NPQKCEAH.js → chunk-W7CJSBDM.js} +37 -9
  184. package/dist/{chunk-N3BYBEDV.js → chunk-WF3ZDT5Z.js} +11 -95
  185. package/dist/{chunk-URZCZO6F.js → chunk-WKDHY2DJ.js} +3 -3
  186. package/dist/{chunk-WYA62MUL.js → chunk-X5PMVI7H.js} +3 -3
  187. package/dist/{chunk-KMZOBR5Q.js → chunk-XW2BES72.js} +13 -13
  188. package/dist/{chunk-IMR3MZDP.js → chunk-YHEH25IE.js} +1 -1
  189. package/dist/{chunk-L3E6LES5.js → chunk-YMOP6JKN.js} +7 -7
  190. package/dist/{chunk-4RT7P5ZQ.js → chunk-YNN2YNSE.js} +2 -2
  191. package/dist/{chunk-HEX3M4TL.js → chunk-YRINVEI3.js} +2 -2
  192. package/dist/{chunk-2AFIUBWT.js → chunk-YRUCTB6M.js} +5 -5
  193. package/dist/{chunk-S4SVK5DE.js → chunk-YVLANFBK.js} +29 -1
  194. package/dist/{chunk-3L7M4E7W.js → chunk-YXKHBSQJ.js} +14 -188
  195. package/dist/{chunk-KAZ5BYTQ.js → chunk-ZAOEFQ6K.js} +5 -4
  196. package/dist/{chunk-ZRFWXNT3.js → chunk-ZKHF75MZ.js} +205 -205
  197. package/dist/{chunk-K6L5PHHQ.js → chunk-ZU74CNL4.js} +7 -7
  198. package/dist/{chunk-COP7NFSJ.js → chunk-ZVPTNPLI.js} +3 -3
  199. package/dist/{collection-add-products-6HKW4CCS.js → collection-add-products-JFUIZEZI.js} +45 -45
  200. package/dist/{collection-create-GPBN7KO6.js → collection-create-5IGFVQKE.js} +87 -16
  201. package/dist/{collection-detail-BCIH2FB7.js → collection-detail-2WOLOVWF.js} +45 -43
  202. package/dist/{collection-edit-NVRFKO46.js → collection-edit-UMZN5JZ6.js} +4 -4
  203. package/dist/collection-icon-edit-WCSKUDXE.js +117 -0
  204. package/dist/collection-list-B3Y2ALLZ.js +85 -0
  205. package/dist/collection-media-YIV5BV3Y.js +655 -0
  206. package/dist/{collection-metadata-5VPC4CJI.js → collection-metadata-SBK6SL4C.js} +34 -34
  207. package/dist/commission-rule-commission-edit-V5JVRNZN.js +195 -0
  208. package/dist/commission-rule-create-EZ2C6AWK.js +464 -0
  209. package/dist/commission-rule-detail-ZQ3OHFA2.js +45 -0
  210. package/dist/commission-rule-edit-NQ5EYCGO.js +352 -0
  211. package/dist/commissions-list-M5WLJD2P.js +36 -0
  212. package/dist/{constants-Bahlh59D.d.ts → constants-CBhKGpBZ.d.ts} +12 -5
  213. package/dist/{customer-create-QHA4KM6N.js → customer-create-ZQ4RTXBA.js} +3 -3
  214. package/dist/{customer-create-address-TYWVWNUE.js → customer-create-address-P2QYUZJ5.js} +3 -3
  215. package/dist/{customer-detail-SDKM7KM5.js → customer-detail-ZGDPIWA4.js} +42 -45
  216. package/dist/{customer-edit-JZ4PQTIN.js → customer-edit-D55FJLIN.js} +3 -3
  217. package/dist/customer-edit-address-R5RXDUNZ.js +302 -0
  218. package/dist/{customer-group-add-customers-VJUBEN7M.js → customer-group-add-customers-O6A5ZFPM.js} +13 -13
  219. package/dist/{customer-group-create-NA2UKCF6.js → customer-group-create-44R3DDOT.js} +3 -3
  220. package/dist/{customer-group-detail-AMZNW2XW.js → customer-group-detail-FXUICFYC.js} +39 -39
  221. package/dist/{customer-group-edit-3O6HAYYN.js → customer-group-edit-NZ5SUPFQ.js} +3 -3
  222. package/dist/customer-group-list-R2DP2D42.js +57 -0
  223. package/dist/{customer-group-metadata-PU2ZQP2Z.js → customer-group-metadata-JX7ZBXLJ.js} +34 -34
  224. package/dist/{customer-list-MB6WZFMA.js → customer-list-Z4DUQHCH.js} +9 -9
  225. package/dist/{customer-metadata-ZCREBYFN.js → customer-metadata-JT5GGCRV.js} +34 -34
  226. package/dist/{customers-add-customer-group-SQIJ7CDL.js → customers-add-customer-group-KX3XNNMU.js} +46 -45
  227. package/dist/{edit-inventory-item-JUWUPXRF.js → edit-inventory-item-73BY4I5T.js} +33 -33
  228. package/dist/{edit-inventory-item-attributes-3GQMHSL2.js → edit-inventory-item-attributes-ZMB343AB.js} +33 -33
  229. package/dist/{edit-reservation-ACDUXG33.js → edit-reservation-BC5IOLK6.js} +5 -5
  230. package/dist/{edit-rules-72KZYLNI.js → edit-rules-4PPNBI7B.js} +34 -34
  231. package/dist/global-commission-edit-TRSS5JBH.js +203 -0
  232. package/dist/index.css +5187 -3
  233. package/dist/index.d.ts +10 -3
  234. package/dist/index.js +356 -308
  235. package/dist/inventory-create-XQKH3HZQ.js +58 -0
  236. package/dist/{inventory-detail-42GIKTMR.js → inventory-detail-RZJNTJDF.js} +38 -38
  237. package/dist/{inventory-list-AE44PEW7.js → inventory-list-SPSBDJXO.js} +8 -8
  238. package/dist/{inventory-metadata-VLXNSQS7.js → inventory-metadata-W2E4KYG3.js} +34 -34
  239. package/dist/{inventory-stock-V37WSJ7V.js → inventory-stock-D2BNT2UL.js} +38 -38
  240. package/dist/{invite-VQ2HR2OM.js → invite-25CGHT4W.js} +3 -3
  241. package/dist/loader-HRFMJ5TM.js +36 -0
  242. package/dist/loader-TIPLOZF7.js +32 -0
  243. package/dist/{location-create-ZMNB7YKR.js → location-create-GKORXOYD.js} +3 -3
  244. package/dist/{location-detail-PBCO6YON.js → location-detail-CNETNX3M.js} +36 -36
  245. package/dist/{location-edit-DMBF3CYZ.js → location-edit-T2CWF6N2.js} +3 -3
  246. package/dist/{location-fulfillment-providers-UGTP3SCR.js → location-fulfillment-providers-XXZ7AIUF.js} +46 -46
  247. package/dist/location-list-RHUT7IRA.js +54 -0
  248. package/dist/{location-sales-channels-TEUZYDTT.js → location-sales-channels-ZQBQ3VDH.js} +9 -10
  249. package/dist/{location-service-zone-create-ZS3UWJAA.js → location-service-zone-create-O6GYRZEE.js} +11 -11
  250. package/dist/{location-service-zone-edit-MTGU2O4C.js → location-service-zone-edit-7ZTB45TD.js} +5 -5
  251. package/dist/{location-service-zone-manage-areas-S7QZTIFT.js → location-service-zone-manage-areas-DBP3P27I.js} +11 -11
  252. package/dist/location-service-zone-shipping-option-create-3PQ2EYD7.js +60 -0
  253. package/dist/{location-service-zone-shipping-option-edit-3PGSNKYT.js → location-service-zone-shipping-option-edit-SLQM4GSH.js} +7 -7
  254. package/dist/{location-service-zone-shipping-option-pricing-POBJOF3Z.js → location-service-zone-shipping-option-pricing-UZ577SNK.js} +9 -9
  255. package/dist/{login-4IJPWFIN.js → login-OKBXMSKY.js} +32 -32
  256. package/dist/{manage-locations-E2XQPKKE.js → manage-locations-SUJNIWWF.js} +3 -3
  257. package/dist/{marketplace-add-currencies-6ANNBGZM.js → marketplace-add-currencies-IPE5RJF6.js} +13 -13
  258. package/dist/marketplace-detail-IHGJXVZS.js +75 -0
  259. package/dist/{marketplace-edit-6Q3G2OY5.js → marketplace-edit-WG6LMQ2P.js} +5 -5
  260. package/dist/{marketplace-metadata-BCPLQY5Y.js → marketplace-metadata-STYABOTX.js} +34 -34
  261. package/dist/offer-detail-page-2G5BUOIB.js +585 -0
  262. package/dist/offer-variant-detail-page-V6TKNYZL.js +143 -0
  263. package/dist/offers-2QQFKGAX.js +183 -0
  264. package/dist/{order-create-claim-MPSXY24H.js → order-create-claim-Y7ESDXLI.js} +284 -259
  265. package/dist/{order-create-edit-6JLXERBY.js → order-create-edit-6L5S7KQM.js} +215 -120
  266. package/dist/{order-create-exchange-Z7F6FRMI.js → order-create-exchange-WHO3K2MW.js} +302 -274
  267. package/dist/{order-create-refund-OWCLXLH3.js → order-create-refund-4ZO73NWS.js} +37 -37
  268. package/dist/{order-create-return-EVSD6GKE.js → order-create-return-R5WJBQ5W.js} +58 -31
  269. package/dist/{order-detail-7GQLUWBA.js → order-detail-QUGH2GXH.js} +45 -46
  270. package/dist/{order-edit-billing-address-BW5NU3KC.js → order-edit-billing-address-BEOKFNLZ.js} +35 -35
  271. package/dist/{order-edit-email-GQQY2SU7.js → order-edit-email-GLAQZCIT.js} +34 -34
  272. package/dist/{order-edit-shipping-address-DMUVVAZ6.js → order-edit-shipping-address-PF54SFAG.js} +34 -34
  273. package/dist/{order-list-KTKSHQST.js → order-list-GMUOLGZY.js} +19 -18
  274. package/dist/{order-metadata-YJ6LWUYD.js → order-metadata-VQOA3DOL.js} +34 -34
  275. package/dist/{order-request-transfer-6EOWBAJP.js → order-request-transfer-BLQQ66IF.js} +34 -34
  276. package/dist/pages/index.d.ts +599 -489
  277. package/dist/pages/index.js +198 -190
  278. package/dist/{payout-detail-TWO6HN4E.js → payout-detail-6U2ANWOH.js} +3 -3
  279. package/dist/{payout-list-7WJZFNW5.js → payout-list-3GQJQSVU.js} +8 -8
  280. package/dist/{price-list-configuration-O3MR5IUA.js → price-list-configuration-BLHIGDSV.js} +14 -13
  281. package/dist/price-list-create-HKN72A6Q.js +77 -0
  282. package/dist/{price-list-detail-Q7IODVDV.js → price-list-detail-6JAMNNJW.js} +44 -44
  283. package/dist/{price-list-edit-OJAYEUYO.js → price-list-edit-RZQMPHXU.js} +5 -5
  284. package/dist/{price-list-list-ARICU2NA.js → price-list-list-HLWCOORV.js} +11 -11
  285. package/dist/price-list-prices-add-ST6WNQNH.js +72 -0
  286. package/dist/{price-list-prices-edit-TGYZNOK4.js → price-list-prices-edit-ZQE3Z3NK.js} +35 -35
  287. package/dist/{product-add-existing-attributes-NTDMPDPZ.js → product-add-existing-attributes-J6MML6MT.js} +93 -53
  288. package/dist/{product-attributes-ZURXNZ3J.js → product-attributes-4EPKS6MP.js} +4 -4
  289. package/dist/{product-bulk-edit-LHCPVFUX.js → product-bulk-edit-TRI2KKHW.js} +4 -4
  290. package/dist/product-create-B4DTC2OM.js +71 -0
  291. package/dist/{product-create-attribute-UBWABT2Q.js → product-create-attribute-BP6NN4GO.js} +92 -54
  292. package/dist/{product-create-variant-AVV4LL7R.js → product-create-variant-VDQQNHAK.js} +8 -8
  293. package/dist/{product-detail-H25AVTG7.js → product-detail-MFJ3AIU6.js} +41 -37
  294. package/dist/{product-edit-EDW3D2KW.js → product-edit-26AWYWUU.js} +4 -4
  295. package/dist/product-edit-attribute-AXPTES26.js +336 -0
  296. package/dist/product-list-DMQSLXM4.js +87 -0
  297. package/dist/{product-media-IE4P5WAE.js → product-media-XRBLOV7D.js} +14 -17
  298. package/dist/{product-metadata-3DGBHQTM.js → product-metadata-LOF6TSJQ.js} +35 -35
  299. package/dist/{product-organization-64KMYNZH.js → product-organization-ISVMEWQG.js} +86 -10
  300. package/dist/{product-sales-channels-NTT6KMSD.js → product-sales-channels-C6UUHWGB.js} +8 -9
  301. package/dist/{product-shipping-profile-WM7LORFB.js → product-shipping-profile-VTYQ22E4.js} +4 -4
  302. package/dist/{product-tag-create-6TDIKP6X.js → product-tag-create-AHG3Y4GE.js} +33 -33
  303. package/dist/{product-tag-detail-2OB43Q5H.js → product-tag-detail-4FL4CU5S.js} +58 -56
  304. package/dist/{product-tag-edit-SJY7L6IL.js → product-tag-edit-ACHNVZZP.js} +33 -33
  305. package/dist/{product-tag-list-H4HRDCAI.js → product-tag-list-YPTIDXPX.js} +58 -56
  306. package/dist/{product-tag-metadata-UCMA6YAN.js → product-tag-metadata-BXC7GMBB.js} +34 -34
  307. package/dist/{product-type-create-RHG4KEAV.js → product-type-create-PPTAW3DW.js} +3 -3
  308. package/dist/{product-type-detail-WTEDFJAW.js → product-type-detail-RAYCHYAF.js} +44 -44
  309. package/dist/{product-type-edit-CABB7R7Y.js → product-type-edit-55AH3P7G.js} +3 -3
  310. package/dist/{product-type-list-TM26QMHR.js → product-type-list-JN4SKTFE.js} +8 -8
  311. package/dist/{product-type-metadata-3WCSSNDX.js → product-type-metadata-24JU4JNK.js} +34 -34
  312. package/dist/{product-variant-detail-3YX6AL23.js → product-variant-detail-7CFNAI3A.js} +33 -33
  313. package/dist/{product-variant-edit-MDXJUTQR.js → product-variant-edit-C4HXFQFW.js} +35 -35
  314. package/dist/{product-variant-metadata-34BBPRKZ.js → product-variant-metadata-5PUBLPDN.js} +34 -34
  315. package/dist/{profile-detail-ZRL5SERS.js → profile-detail-PABUO545.js} +3 -3
  316. package/dist/{profile-edit-HQTWYWZ7.js → profile-edit-O6Z3XJ4U.js} +3 -3
  317. package/dist/{promotion-add-campaign-S3JJSFHT.js → promotion-add-campaign-WK36UMSF.js} +7 -7
  318. package/dist/promotion-create-7VBA6JFM.js +57 -0
  319. package/dist/{promotion-detail-OKCXRU4Z.js → promotion-detail-KXXWEFHW.js} +36 -36
  320. package/dist/{promotion-edit-details-TKRC5HES.js → promotion-edit-details-YM5JPGEC.js} +5 -10
  321. package/dist/{promotion-list-7YRTZF3S.js → promotion-list-56ZDROMH.js} +10 -10
  322. package/dist/{refund-reason-create-AKZX4RAN.js → refund-reason-create-UA3XS6DP.js} +33 -33
  323. package/dist/{refund-reason-edit-LXMQTLR6.js → refund-reason-edit-3TAGKV3U.js} +33 -33
  324. package/dist/{refund-reason-list-6JXGHJRA.js → refund-reason-list-PBLA5HYO.js} +49 -47
  325. package/dist/{region-add-countries-COXN4LP3.js → region-add-countries-UO5A42HM.js} +12 -12
  326. package/dist/{region-create-P66Q65XY.js → region-create-7NA6RKWS.js} +13 -13
  327. package/dist/{region-detail-P2HHBYFV.js → region-detail-636IAPYK.js} +9 -9
  328. package/dist/{region-edit-XFE54SAO.js → region-edit-Z4VYO3TQ.js} +5 -5
  329. package/dist/{region-list-2XXKCDDX.js → region-list-GIU6NFI4.js} +9 -9
  330. package/dist/{region-metadata-GS4IS7UT.js → region-metadata-NRV3L42D.js} +34 -34
  331. package/dist/{reservation-create-2TDZAX5A.js → reservation-create-ANLVF7EC.js} +5 -5
  332. package/dist/{reservation-detail-CVV36FXP.js → reservation-detail-MAWHNY2H.js} +33 -33
  333. package/dist/{reservation-list-K4RPXJTO.js → reservation-list-UWZRPRPH.js} +9 -9
  334. package/dist/{reservation-metadata-364D3VZ7.js → reservation-metadata-ZFKKAOWG.js} +34 -34
  335. package/dist/{reset-password-MH3JTCCE.js → reset-password-UDA5ZMTZ.js} +3 -3
  336. package/dist/{return-reason-create-KED7446I.js → return-reason-create-DYJCGEOK.js} +3 -3
  337. package/dist/{return-reason-edit-57EU3XSE.js → return-reason-edit-A7ATUTCD.js} +3 -3
  338. package/dist/{return-reason-list-J7QUYMYH.js → return-reason-list-NPAAMB5H.js} +23 -21
  339. package/dist/{sales-channel-add-products-Q352GB72.js → sales-channel-add-products-2BBIMN6N.js} +46 -46
  340. package/dist/{sales-channel-create-MPZCRQBT.js → sales-channel-create-OC2BB67N.js} +4 -4
  341. package/dist/{sales-channel-detail-7WO26EOP.js → sales-channel-detail-D5R7HPC7.js} +43 -43
  342. package/dist/{sales-channel-edit-GILK4QK3.js → sales-channel-edit-V62TBRC4.js} +4 -4
  343. package/dist/sales-channel-list-LVW7XE7K.js +52 -0
  344. package/dist/{sales-channel-metadata-Z75VZHOY.js → sales-channel-metadata-5W4OZZYI.js} +34 -34
  345. package/dist/{shipping-option-type-create-NCI2LJAA.js → shipping-option-type-create-GHOCZT64.js} +33 -33
  346. package/dist/{shipping-option-type-detail-YNRLWD33.js → shipping-option-type-detail-W32EHTBS.js} +34 -34
  347. package/dist/{shipping-option-type-edit-XJFALSAR.js → shipping-option-type-edit-KRIP6HTC.js} +33 -33
  348. package/dist/shipping-option-type-list-4FML2ZX5.js +60 -0
  349. package/dist/{shipping-profile-create-UJNCCKKK.js → shipping-profile-create-HKYX4FKJ.js} +3 -3
  350. package/dist/{shipping-profile-detail-YAKZHWZI.js → shipping-profile-detail-UFGQ3CCH.js} +3 -3
  351. package/dist/{shipping-profile-metadata-YJMMBUYN.js → shipping-profile-metadata-52ZW757T.js} +34 -34
  352. package/dist/{shipping-profiles-list-JF2SQIQ7.js → shipping-profiles-list-PZQVMKR4.js} +7 -7
  353. package/dist/{store-address-edit-PKIBRFH4.js → store-address-edit-IJ2UW6WC.js} +4 -4
  354. package/dist/{store-bulk-edit-BNF3HH5K.js → store-bulk-edit-OIYKZ6AZ.js} +5 -5
  355. package/dist/{store-closure-edit-OK7MTUHY.js → store-closure-edit-H3EKROXP.js} +3 -3
  356. package/dist/{store-create-A23PSUWX.js → store-create-Y3BGG5P5.js} +36 -36
  357. package/dist/{store-details-R3J3YYR6.js → store-details-56IHJJQV.js} +51 -51
  358. package/dist/{store-edit-ZGBEXU4H.js → store-edit-HWOGEOCH.js} +14 -10
  359. package/dist/store-list-5DRW6QZF.js +82 -0
  360. package/dist/{store-member-invite-J5XSPWMW.js → store-member-invite-7ORIMT73.js} +6 -6
  361. package/dist/{store-payment-details-edit-HOGHZMZC.js → store-payment-details-edit-ERRJDLBO.js} +3 -3
  362. package/dist/{store-professional-details-edit-DPJ4ZFDR.js → store-professional-details-edit-VD2J4VYV.js} +3 -3
  363. package/dist/{tax-region-create-LQU7MWPP.js → tax-region-create-GGDCD2VU.js} +34 -34
  364. package/dist/tax-region-detail-L7STT6C7.js +69 -0
  365. package/dist/{tax-region-edit-TAWTPUQC.js → tax-region-edit-6JOV3POI.js} +33 -33
  366. package/dist/{tax-region-list-FIBHEFVD.js → tax-region-list-NIAT626R.js} +8 -8
  367. package/dist/{tax-region-metadata-W4R2SPDH.js → tax-region-metadata-4P667IOY.js} +34 -34
  368. package/dist/{tax-region-province-create-OVLIZPNP.js → tax-region-province-create-7YT2LNJG.js} +3 -3
  369. package/dist/{tax-region-province-detail-W6BDEQA5.js → tax-region-province-detail-2GRPOSWS.js} +40 -40
  370. package/dist/{tax-region-tax-override-create-M3FKWCY3.js → tax-region-tax-override-create-R5GKEOK6.js} +61 -61
  371. package/dist/{tax-region-tax-override-edit-4TRW73DK.js → tax-region-tax-override-edit-MLJKNLAR.js} +61 -61
  372. package/dist/{tax-region-tax-rate-create-KDN6G52Y.js → tax-region-tax-rate-create-3ZLVL3X3.js} +4 -4
  373. package/dist/{tax-region-tax-rate-edit-D4BFDDJ7.js → tax-region-tax-rate-edit-XVMPIJOF.js} +4 -4
  374. package/dist/{user-detail-2OTVNTCL.js → user-detail-452E7GII.js} +4 -4
  375. package/dist/{user-edit-MXS2DV37.js → user-edit-T3MZKULQ.js} +3 -3
  376. package/dist/{user-invite-HLZJ7FST.js → user-invite-FCWARLW5.js} +11 -11
  377. package/dist/{user-list-TR7RSGUO.js → user-list-OU6WS25V.js} +7 -7
  378. package/dist/{user-metadata-XTDSENAD.js → user-metadata-CHHV7S3A.js} +34 -34
  379. package/package.json +15 -12
  380. package/dist/[id]-272FUOXG.js +0 -503
  381. package/dist/attribute-list-RUMLW7EI.js +0 -61
  382. package/dist/chunk-54RTJBYO.js +0 -153
  383. package/dist/chunk-7O6WJTBI.js +0 -139
  384. package/dist/chunk-AKTAFKIU.js +0 -228
  385. package/dist/chunk-CKNQJPAG.js +0 -135
  386. package/dist/chunk-GVEF6UDT.js +0 -8
  387. package/dist/chunk-MSESXKMA.js +0 -390
  388. package/dist/chunk-RXM4B6HR.js +0 -8
  389. package/dist/chunk-SWL7ZCP3.js +0 -11
  390. package/dist/chunk-UM7ZR3VU.js +0 -14
  391. package/dist/chunk-VXMTBOKI.js +0 -1743
  392. package/dist/collection-list-O24SYINI.js +0 -82
  393. package/dist/commission-rate-create-7NSSEEH5.js +0 -782
  394. package/dist/commission-rate-detail-2FGQ3V2J.js +0 -85
  395. package/dist/commission-rate-edit-NXSXX4TA.js +0 -767
  396. package/dist/commission-rate-list-Y5XLEO67.js +0 -26
  397. package/dist/customer-group-list-ES6FKPEC.js +0 -57
  398. package/dist/inventory-create-QUE6RTM5.js +0 -58
  399. package/dist/loader-O4EABIXE.js +0 -26
  400. package/dist/location-list-YD4MZG2C.js +0 -54
  401. package/dist/location-service-zone-shipping-option-create-BU6RQKYU.js +0 -60
  402. package/dist/marketplace-detail-LFCGTWIJ.js +0 -75
  403. package/dist/offers-5L46FLHU.js +0 -440
  404. package/dist/order-allocate-items-TMVWJUV3.js +0 -563
  405. package/dist/order-create-fulfillment-DC4LWQYX.js +0 -643
  406. package/dist/order-create-shipment-JSYNAOBR.js +0 -214
  407. package/dist/order-receive-return-QY6KQBDB.js +0 -562
  408. package/dist/price-list-create-F5ASYWH2.js +0 -77
  409. package/dist/price-list-prices-add-C5OEGJSE.js +0 -72
  410. package/dist/product-create-WTEZJRJC.js +0 -71
  411. package/dist/product-list-X7ZL4KY5.js +0 -87
  412. package/dist/promotion-create-FSXBFC6B.js +0 -57
  413. package/dist/sales-channel-list-LSKZXQQC.js +0 -53
  414. package/dist/shipping-option-type-list-HZBMHE23.js +0 -60
  415. package/dist/store-list-TPMIQ6OO.js +0 -82
  416. package/dist/tax-region-detail-2KADHBYF.js +0 -69
@@ -3,14 +3,9 @@ import {
3
3
  } from "./chunk-U2L77ZDR.js";
4
4
  import {
5
5
  OutboundShippingPlaceholder,
6
- ReturnShippingPlaceholder
7
- } from "./chunk-S4SVK5DE.js";
8
- import {
9
- getFormattedShippingOptionLocationName
10
- } from "./chunk-HC25LNX7.js";
11
- import {
12
- useReturnReasons
13
- } from "./chunk-2FGRDEAD.js";
6
+ ReturnShippingPlaceholder,
7
+ getOfferRestockPreview
8
+ } from "./chunk-YVLANFBK.js";
14
9
  import {
15
10
  useAddExchangeInboundItems,
16
11
  useAddExchangeInboundShipping,
@@ -28,20 +23,27 @@ import {
28
23
  useUpdateExchangeInboundShipping,
29
24
  useUpdateExchangeOutboundItems,
30
25
  useUpdateExchangeOutboundShipping
31
- } from "./chunk-7BD24KNM.js";
26
+ } from "./chunk-PYZ7VL5X.js";
27
+ import {
28
+ getFormattedShippingOptionLocationName
29
+ } from "./chunk-HC25LNX7.js";
32
30
  import {
33
- getReturnableQuantity
34
- } from "./chunk-UM7ZR3VU.js";
31
+ useReturnReasons
32
+ } from "./chunk-RQQ53CQJ.js";
33
+ import {
34
+ getReturnableQuantity,
35
+ useReturn,
36
+ useUpdateReturn
37
+ } from "./chunk-YXKHBSQJ.js";
38
+ import {
39
+ useOffers
40
+ } from "./chunk-IZDTQFCP.js";
35
41
  import {
36
42
  MoneyAmountCell
37
43
  } from "./chunk-2Y3WMGN6.js";
38
44
  import {
39
45
  DEFAULT_FIELDS
40
- } from "./chunk-Y2M536WR.js";
41
- import {
42
- useReturn,
43
- useUpdateReturn
44
- } from "./chunk-3L7M4E7W.js";
46
+ } from "./chunk-JHBNG7OD.js";
45
47
  import {
46
48
  getStylizedAmount
47
49
  } from "./chunk-PXYDR7WQ.js";
@@ -49,15 +51,9 @@ import {
49
51
  ProductCell,
50
52
  ProductHeader
51
53
  } from "./chunk-FWPGOIFA.js";
52
- import "./chunk-PHOCVOZ5.js";
53
- import "./chunk-FQERBIVS.js";
54
54
  import {
55
- _DataTable,
56
- useDataTable
57
- } from "./chunk-NQEXDLYH.js";
58
- import "./chunk-YN3FGNJM.js";
59
- import "./chunk-KAZ5BYTQ.js";
60
- import "./chunk-634XVU3D.js";
55
+ PlaceholderCell
56
+ } from "./chunk-PHOCVOZ5.js";
61
57
  import {
62
58
  Combobox
63
59
  } from "./chunk-AW77UWCZ.js";
@@ -66,7 +62,7 @@ import {
66
62
  } from "./chunk-IQPN4PZJ.js";
67
63
  import {
68
64
  KeyboundForm
69
- } from "./chunk-U2ZFCAPX.js";
65
+ } from "./chunk-SITRHMZZ.js";
70
66
  import {
71
67
  RouteFocusModal,
72
68
  StackedFocusModal,
@@ -79,66 +75,72 @@ import {
79
75
  import {
80
76
  Thumbnail
81
77
  } from "./chunk-WIYFXWRI.js";
78
+ import "./chunk-FQERBIVS.js";
79
+ import {
80
+ _DataTable,
81
+ useDataTable
82
+ } from "./chunk-6ZVV2XHU.js";
83
+ import "./chunk-YN3FGNJM.js";
84
+ import "./chunk-ZAOEFQ6K.js";
85
+ import "./chunk-PAYQJPGK.js";
82
86
  import "./chunk-UZWFZMOX.js";
83
87
  import "./chunk-XQNVC4Q7.js";
84
88
  import {
85
89
  useQueryParams
86
90
  } from "./chunk-THHRRYRS.js";
87
- import "./chunk-LYREZINJ.js";
88
- import "./chunk-OH4AABUT.js";
89
- import "./chunk-4RT7P5ZQ.js";
90
- import "./chunk-AEMDNTW5.js";
91
- import "./chunk-LYD3C73Z.js";
92
- import "./chunk-533GMKEG.js";
93
- import "./chunk-46M463BR.js";
94
- import "./chunk-YFRC6GEN.js";
95
- import "./chunk-JPNPTILP.js";
96
- import "./chunk-DAXXLQKB.js";
97
- import "./chunk-OHOWEMHO.js";
98
- import "./chunk-GKGLVDDV.js";
99
- import "./chunk-ESPLVOFC.js";
100
- import "./chunk-N6SI4IIT.js";
101
- import "./chunk-WJJXUXSO.js";
102
- import "./chunk-LAPEZATU.js";
103
- import "./chunk-2ZRWLCYP.js";
104
- import "./chunk-E5WBU7ZR.js";
105
- import "./chunk-FXWKGNRV.js";
106
- import "./chunk-VDKOJ5WD.js";
107
- import "./chunk-ZN7LWXVC.js";
91
+ import "./chunk-ABS7HMLY.js";
92
+ import "./chunk-R325CPYC.js";
93
+ import "./chunk-YNN2YNSE.js";
94
+ import "./chunk-J54BZXZX.js";
95
+ import "./chunk-JI7HMGMO.js";
96
+ import "./chunk-F5NW4XBU.js";
97
+ import "./chunk-HLL6GLZO.js";
98
+ import "./chunk-CARSKIPW.js";
99
+ import "./chunk-R4O667NT.js";
100
+ import "./chunk-MO7TNIVQ.js";
101
+ import "./chunk-EWFOFSF7.js";
102
+ import "./chunk-G5KNNOXX.js";
103
+ import "./chunk-VHCDSNXF.js";
104
+ import "./chunk-A2F5MDPU.js";
105
+ import "./chunk-IC2PLPRP.js";
106
+ import "./chunk-L7DIEO5B.js";
107
+ import "./chunk-LSMTJU6Y.js";
108
+ import "./chunk-BNFTJW4L.js";
109
+ import "./chunk-EJY35WBK.js";
110
+ import "./chunk-GYRTURN7.js";
111
+ import "./chunk-GCEOEV6P.js";
108
112
  import {
109
113
  useShippingOptions
110
- } from "./chunk-5TRY5IMZ.js";
114
+ } from "./chunk-Q6GUA5VE.js";
111
115
  import {
112
116
  useStockLocations
113
- } from "./chunk-EPHVGD5Z.js";
117
+ } from "./chunk-VXW3BCN2.js";
118
+ import "./chunk-GLZLBHFC.js";
114
119
  import {
115
120
  useOrder,
116
121
  useOrderPreview,
117
122
  useOrderShippingOptions
118
- } from "./chunk-N3BYBEDV.js";
119
- import "./chunk-ZB4SO44T.js";
120
- import "./chunk-VYMODH6P.js";
121
- import "./chunk-LEG67A2R.js";
122
- import "./chunk-PRBE5CM3.js";
123
+ } from "./chunk-WF3ZDT5Z.js";
124
+ import "./chunk-PYF5EER5.js";
125
+ import "./chunk-BILFRATX.js";
126
+ import "./chunk-RGS5ZOY7.js";
123
127
  import {
124
128
  ActionMenu
125
129
  } from "./chunk-BDGZ4EQO.js";
126
- import "./chunk-FEC24V7X.js";
127
- import "./chunk-EB5QHYKL.js";
130
+ import "./chunk-MW47LDBT.js";
131
+ import "./chunk-JZJT26E3.js";
128
132
  import "./chunk-LAVHRER2.js";
129
133
  import "./chunk-Y7QKP6QU.js";
130
134
  import "./chunk-INNFZYX2.js";
131
- import "./chunk-ZRFWXNT3.js";
135
+ import "./chunk-ZKHF75MZ.js";
132
136
  import "./chunk-RHKRREUU.js";
133
137
  import "./chunk-ZA2KFUFR.js";
134
- import {
135
- sdk
136
- } from "./chunk-ZBWL72TB.js";
138
+ import "./chunk-LXZXXOJ3.js";
137
139
  import "./chunk-NBMM2TZK.js";
138
140
 
139
141
  // src/pages/orders/order-create-exchange/exchange-create.tsx
140
142
  import { toast as toast4 } from "@medusajs/ui";
141
- import { useEffect as useEffect4, useState as useState6 } from "react";
143
+ import { useEffect as useEffect4, useState as useState4 } from "react";
142
144
  import { useTranslation as useTranslation12 } from "react-i18next";
143
145
  import { useNavigate, useParams } from "react-router-dom";
144
146
 
@@ -154,7 +156,7 @@ import {
154
156
  toast as toast3,
155
157
  usePrompt
156
158
  } from "@medusajs/ui";
157
- import { useEffect as useEffect3, useMemo as useMemo6, useState as useState5 } from "react";
159
+ import { useEffect as useEffect3, useMemo as useMemo7, useState as useState3 } from "react";
158
160
  import { useForm } from "react-hook-form";
159
161
  import { useTranslation as useTranslation11 } from "react-i18next";
160
162
 
@@ -182,8 +184,8 @@ var ExchangeCreateSchema = z.object({
182
184
  });
183
185
 
184
186
  // src/pages/orders/order-create-exchange/components/exchange-create-form/exchange-inbound-section.tsx
185
- import { Alert, Button, Heading, Text as Text2, toast } from "@medusajs/ui";
186
- import { useEffect, useMemo as useMemo3, useState as useState2 } from "react";
187
+ import { Button, Heading, Text as Text2, toast } from "@medusajs/ui";
188
+ import { useEffect, useMemo as useMemo3 } from "react";
187
189
  import { useFieldArray } from "react-hook-form";
188
190
  import { useTranslation as useTranslation5 } from "react-i18next";
189
191
 
@@ -449,13 +451,20 @@ function ExchangeInboundItem({
449
451
  form,
450
452
  onRemove,
451
453
  onUpdate,
452
- index
454
+ index,
455
+ locationId,
456
+ locationName
453
457
  }) {
454
458
  const { t } = useTranslation4();
455
459
  const { return_reasons = [] } = useReturnReasons({ fields: "+label" });
456
460
  const formItem = form.watch(`inbound_items.${index}`);
457
461
  const showReturnReason = typeof formItem.reason_id === "string";
458
462
  const showNote = typeof formItem.note === "string";
463
+ const restockRows = locationId ? getOfferRestockPreview(
464
+ item,
465
+ formItem?.quantity ?? 0
466
+ ) : [];
467
+ const offerSku = item.offer?.sku ?? item.variant_sku ?? null;
459
468
  return /* @__PURE__ */ jsxs("div", { className: "bg-ui-bg-subtle shadow-elevation-card-rest my-2 rounded-xl ", children: [
460
469
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center gap-x-2 gap-y-2 p-3 text-sm md:flex-row", children: [
461
470
  /* @__PURE__ */ jsxs("div", { className: "flex flex-1 items-center gap-x-3", children: [
@@ -544,6 +553,22 @@ function ExchangeInboundItem({
544
553
  )
545
554
  ] })
546
555
  ] }),
556
+ restockRows.length > 0 && /* @__PURE__ */ jsx3("div", { className: "bg-ui-bg-subtle flex flex-col gap-y-1 rounded-md px-3 py-2", children: restockRows.map((row) => /* @__PURE__ */ jsx3(
557
+ Text,
558
+ {
559
+ size: "xsmall",
560
+ className: "text-ui-fg-subtle",
561
+ "data-testid": `exchange-inbound-item-${item.id}-restock-${row.inventoryItemId}`,
562
+ children: t("orders.returns.restockPreview", {
563
+ quantity: formItem?.quantity ?? 0,
564
+ offerSku: offerSku ?? "\u2014",
565
+ delta: row.delta,
566
+ inventoryItem: row.inventoryItemLabel,
567
+ location: locationName ?? "\u2014"
568
+ })
569
+ },
570
+ row.inventoryItemId
571
+ )) }),
547
572
  /* @__PURE__ */ jsxs(Fragment, { children: [
548
573
  showReturnReason && /* @__PURE__ */ jsxs("div", { className: "grid grid-cols-1 gap-2 p-3 md:grid-cols-2", children: [
549
574
  /* @__PURE__ */ jsxs("div", { children: [
@@ -655,7 +680,6 @@ var ExchangeInboundSection = ({
655
680
  }) => {
656
681
  const { t } = useTranslation5();
657
682
  const { setIsOpen } = useStackedModal();
658
- const [inventoryMap, setInventoryMap] = useState2({});
659
683
  const { mutateAsync: updateReturn } = useUpdateReturn(
660
684
  preview?.order_change?.return_id,
661
685
  order.id
@@ -691,12 +715,17 @@ var ExchangeInboundSection = ({
691
715
  [order.items]
692
716
  );
693
717
  const locationId = form.watch("location_id");
694
- const { stock_locations = [] } = useStockLocations({ limit: 999 });
718
+ const sellerId = order.seller?.id;
719
+ const { stock_locations = [] } = useStockLocations({
720
+ limit: 999,
721
+ ...sellerId ? { seller_id: sellerId } : {}
722
+ });
695
723
  const { shipping_options = [] } = useShippingOptions(
696
724
  {
697
725
  limit: 999,
698
726
  fields: "*prices,+service_zone.fulfillment_set.location.id",
699
- stock_location_id: locationId
727
+ stock_location_id: locationId,
728
+ ...sellerId ? { seller_id: sellerId } : {}
700
729
  },
701
730
  {
702
731
  enabled: !!locationId
@@ -829,49 +858,6 @@ var ExchangeInboundSection = ({
829
858
  );
830
859
  }
831
860
  };
832
- const showLevelsWarning = useMemo3(() => {
833
- if (!locationId) {
834
- return false;
835
- }
836
- const allItemsHaveLocation = inboundItems.map((_i) => {
837
- const item = itemsMap.get(_i.item_id);
838
- if (!item?.variant_id || !item?.variant) {
839
- return true;
840
- }
841
- if (!item.variant?.manage_inventory) {
842
- return true;
843
- }
844
- return inventoryMap[item.variant_id]?.find(
845
- (l) => l.location_id === locationId
846
- );
847
- }).every(Boolean);
848
- return !allItemsHaveLocation;
849
- }, [
850
- inboundItems,
851
- inventoryMap,
852
- locationId,
853
- itemsMap
854
- ]);
855
- useEffect(() => {
856
- const getInventoryMap = async () => {
857
- const ret = {};
858
- if (!inboundItems.length) {
859
- return ret;
860
- }
861
- const variantIds = inboundItems.map((item) => item?.variant_id).filter(Boolean);
862
- const variants = (await sdk.admin.productVariants.query({
863
- id: variantIds,
864
- fields: "*inventory.location_levels"
865
- })).variants;
866
- variants.forEach((variant) => {
867
- ret[variant.id] = variant.inventory?.[0]?.location_levels || [];
868
- });
869
- return ret;
870
- };
871
- getInventoryMap().then((map) => {
872
- setInventoryMap(map);
873
- });
874
- }, [inboundItems]);
875
861
  return /* @__PURE__ */ jsxs2("div", { children: [
876
862
  /* @__PURE__ */ jsxs2("div", { className: "mt-8 flex items-center justify-between", children: [
877
863
  /* @__PURE__ */ jsx4(Heading, { level: "h2", children: t("orders.returns.inbound") }),
@@ -924,6 +910,8 @@ var ExchangeInboundSection = ({
924
910
  previewItem: inboundItemsMap.get(item.item_id),
925
911
  currencyCode: order.currency_code,
926
912
  form,
913
+ locationId,
914
+ locationName: stock_locations.find((l) => l.id === locationId)?.name,
927
915
  onRemove: () => {
928
916
  const actionId = previewInboundItems.find((i) => i.id === item.item_id)?.actions?.find((a) => a.action === "RETURN_ITEM")?.id;
929
917
  if (actionId) {
@@ -1039,46 +1027,40 @@ var ExchangeInboundSection = ({
1039
1027
  }
1040
1028
  )
1041
1029
  ] })
1042
- ] }),
1043
- showLevelsWarning && /* @__PURE__ */ jsxs2(Alert, { variant: "warning", dismissible: true, className: "mt-4 p-5", children: [
1044
- /* @__PURE__ */ jsx4("div", { className: "text-ui-fg-subtle txt-small pb-2 font-medium leading-[20px]", children: t("orders.returns.noInventoryLevel") }),
1045
- /* @__PURE__ */ jsx4(Text2, { className: "text-ui-fg-subtle txt-small leading-normal", children: t("orders.returns.noInventoryLevelDesc") })
1046
1030
  ] })
1047
1031
  ] });
1048
1032
  };
1049
1033
 
1050
1034
  // src/pages/orders/order-create-exchange/components/exchange-create-form/exchange-outbound-section.tsx
1051
- import { Alert as Alert2, Button as Button2, Heading as Heading2, Text as Text4, toast as toast2 } from "@medusajs/ui";
1052
- import { useEffect as useEffect2, useMemo as useMemo5, useState as useState4 } from "react";
1035
+ import { Button as Button2, Heading as Heading2, toast as toast2 } from "@medusajs/ui";
1036
+ import { useEffect as useEffect2, useMemo as useMemo6 } from "react";
1053
1037
  import { useFieldArray as useFieldArray2 } from "react-hook-form";
1054
1038
  import { useTranslation as useTranslation10 } from "react-i18next";
1055
1039
 
1056
1040
  // src/pages/orders/order-create-exchange/components/add-exchange-outbound-items-table/add-exchange-outbound-items-table.tsx
1057
- import { useState as useState3 } from "react";
1041
+ import { useMemo as useMemo5, useState as useState2 } from "react";
1058
1042
  import { useTranslation as useTranslation8 } from "react-i18next";
1059
1043
 
1060
1044
  // src/pages/orders/order-create-exchange/components/add-exchange-outbound-items-table/use-exchange-outbound-item-table-columns.tsx
1061
- import { Checkbox as Checkbox2 } from "@medusajs/ui";
1045
+ import { Checkbox as Checkbox2, Text as Text3 } from "@medusajs/ui";
1062
1046
  import { createColumnHelper as createColumnHelper2 } from "@tanstack/react-table";
1063
1047
  import { useMemo as useMemo4 } from "react";
1064
1048
  import { useTranslation as useTranslation6 } from "react-i18next";
1065
- import { jsx as jsx5 } from "react/jsx-runtime";
1049
+ import { jsx as jsx5, jsxs as jsxs3 } from "react/jsx-runtime";
1066
1050
  var columnHelper2 = createColumnHelper2();
1067
- var useExchangeOutboundItemTableColumns = (_currencyCode) => {
1051
+ var useExchangeOutboundItemTableColumns = () => {
1068
1052
  const { t } = useTranslation6();
1069
1053
  return useMemo4(
1070
1054
  () => [
1071
1055
  columnHelper2.display({
1072
1056
  id: "select",
1073
- header: ({ table }) => {
1074
- return /* @__PURE__ */ jsx5(
1075
- Checkbox2,
1076
- {
1077
- checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
1078
- onCheckedChange: (value) => table.toggleAllPageRowsSelected(!!value)
1079
- }
1080
- );
1081
- },
1057
+ header: ({ table }) => /* @__PURE__ */ jsx5(
1058
+ Checkbox2,
1059
+ {
1060
+ checked: table.getIsSomePageRowsSelected() ? "indeterminate" : table.getIsAllPageRowsSelected(),
1061
+ onCheckedChange: (value) => table.toggleAllPageRowsSelected(!!value)
1062
+ }
1063
+ ),
1082
1064
  cell: ({ row }) => {
1083
1065
  const isSelectable = row.getCanSelect();
1084
1066
  return /* @__PURE__ */ jsx5(
@@ -1096,19 +1078,44 @@ var useExchangeOutboundItemTableColumns = (_currencyCode) => {
1096
1078
  }),
1097
1079
  columnHelper2.display({
1098
1080
  id: "product",
1099
- header: () => /* @__PURE__ */ jsx5(ProductHeader, {}),
1081
+ header: t("fields.product"),
1100
1082
  cell: ({ row }) => {
1101
- return /* @__PURE__ */ jsx5(ProductCell, { product: row.original.product });
1083
+ const variant = row.original.product_variant;
1084
+ const productTitle = variant?.product?.title;
1085
+ if (!productTitle) {
1086
+ return /* @__PURE__ */ jsx5(PlaceholderCell, {});
1087
+ }
1088
+ return /* @__PURE__ */ jsxs3("div", { className: "flex h-full w-full max-w-[300px] items-center gap-x-3 overflow-hidden", children: [
1089
+ /* @__PURE__ */ jsx5(Thumbnail, { src: variant?.product?.thumbnail }),
1090
+ /* @__PURE__ */ jsx5(
1091
+ Text3,
1092
+ {
1093
+ size: "small",
1094
+ leading: "compact",
1095
+ className: "truncate",
1096
+ title: productTitle,
1097
+ children: productTitle
1098
+ }
1099
+ )
1100
+ ] });
1102
1101
  }
1103
1102
  }),
1104
1103
  columnHelper2.accessor("sku", {
1105
1104
  header: t("fields.sku"),
1106
1105
  cell: ({ getValue }) => {
1107
- return getValue() || "-";
1106
+ const sku = getValue();
1107
+ if (!sku) return /* @__PURE__ */ jsx5(PlaceholderCell, {});
1108
+ return /* @__PURE__ */ jsx5(Text3, { size: "small", leading: "compact", className: "truncate", children: sku });
1108
1109
  }
1109
1110
  }),
1110
- columnHelper2.accessor("title", {
1111
- header: t("fields.title")
1111
+ columnHelper2.display({
1112
+ id: "variant_title",
1113
+ header: t("fields.title"),
1114
+ cell: ({ row }) => {
1115
+ const title = row.original.product_variant?.title;
1116
+ if (!title) return /* @__PURE__ */ jsx5(PlaceholderCell, {});
1117
+ return /* @__PURE__ */ jsx5(Text3, { size: "small", leading: "compact", className: "truncate", children: title });
1118
+ }
1112
1119
  })
1113
1120
  ],
1114
1121
  [t]
@@ -1158,71 +1165,141 @@ var useExchangeOutboundItemTableQuery = ({
1158
1165
  import { jsx as jsx6 } from "react/jsx-runtime";
1159
1166
  var PAGE_SIZE2 = 50;
1160
1167
  var PREFIX2 = "rit";
1168
+ var OFFER_PICKER_FIELDS = [
1169
+ "id",
1170
+ "sku",
1171
+ "variant_id",
1172
+ "seller_id",
1173
+ "prices.amount",
1174
+ "prices.currency_code",
1175
+ "product_variant.id",
1176
+ "product_variant.title",
1177
+ "product_variant.product.id",
1178
+ "product_variant.product.title",
1179
+ "product_variant.product.thumbnail",
1180
+ "product_variant.manage_inventory",
1181
+ "product_variant.inventory_quantity",
1182
+ "product_variant.inventory_items.required_quantity",
1183
+ "product_variant.inventory_items.inventory.location_levels.available_quantity"
1184
+ ].join(",");
1185
+ var offerHasInventory = (offer) => {
1186
+ const variant = offer.product_variant;
1187
+ if (!variant) return false;
1188
+ if (variant.manage_inventory === false) return true;
1189
+ const links = variant.inventory_items ?? [];
1190
+ if (!links.length) {
1191
+ return (variant.inventory_quantity ?? 0) > 0;
1192
+ }
1193
+ return links.every((link) => {
1194
+ const available = (link.inventory?.location_levels ?? []).reduce(
1195
+ (acc, lvl) => acc + (lvl.available_quantity ?? 0),
1196
+ 0
1197
+ );
1198
+ const required = link.required_quantity ?? 1;
1199
+ return required > 0 && available >= required;
1200
+ });
1201
+ };
1161
1202
  var AddExchangeOutboundItemsTable = ({
1203
+ currencyCode,
1162
1204
  onSelectionChange,
1163
- selectedItems,
1164
- currencyCode
1205
+ selectedItems = []
1165
1206
  }) => {
1166
1207
  const { t } = useTranslation8();
1167
- const [rowSelection, setRowSelection] = useState3(
1208
+ const [rowSelection, setRowSelection] = useState2(
1168
1209
  selectedItems.reduce((acc, id) => {
1169
1210
  acc[id] = true;
1170
1211
  return acc;
1171
1212
  }, {})
1172
1213
  );
1173
- const updater = (fn) => {
1174
- const newState = typeof fn === "function" ? fn(rowSelection) : fn;
1175
- setRowSelection(newState);
1176
- onSelectionChange(Object.keys(newState));
1177
- };
1178
1214
  const { searchParams, raw } = useExchangeOutboundItemTableQuery({
1179
1215
  pageSize: PAGE_SIZE2,
1180
1216
  prefix: PREFIX2
1181
1217
  });
1182
- const columns = useExchangeOutboundItemTableColumns(currencyCode);
1218
+ const offersResponse = useOffers({
1219
+ ...searchParams,
1220
+ fields: OFFER_PICKER_FIELDS
1221
+ });
1222
+ const rawCount = offersResponse.count ?? 0;
1223
+ const offers = useMemo5(() => {
1224
+ const rawOffers = offersResponse.offers ?? [];
1225
+ return rawOffers.filter((offer) => {
1226
+ if (currencyCode) {
1227
+ const hasPrice = (offer.prices ?? []).some(
1228
+ (p) => p.currency_code === currencyCode
1229
+ );
1230
+ if (!hasPrice) return false;
1231
+ }
1232
+ return offerHasInventory(offer);
1233
+ });
1234
+ }, [offersResponse.offers, currencyCode]);
1235
+ const count = offers.length;
1236
+ void rawCount;
1237
+ const columns = useExchangeOutboundItemTableColumns();
1183
1238
  const filters = useExchangeOutboundItemTableFilters();
1239
+ const selectionByOfferId = useMemo5(() => {
1240
+ const map = /* @__PURE__ */ new Map();
1241
+ for (const offer of offers) {
1242
+ if (offer.id && offer.variant_id) {
1243
+ map.set(offer.id, { variantId: offer.variant_id, offerId: offer.id });
1244
+ }
1245
+ }
1246
+ return map;
1247
+ }, [offers]);
1248
+ const updater = (fn) => {
1249
+ const newState = typeof fn === "function" ? fn(rowSelection) : fn;
1250
+ setRowSelection(newState);
1251
+ const pairs = Object.keys(newState).map((offerId) => selectionByOfferId.get(offerId)).filter((p) => !!p);
1252
+ onSelectionChange(pairs);
1253
+ };
1184
1254
  const { table } = useDataTable({
1185
- data: [],
1255
+ data: offers,
1186
1256
  columns,
1187
- count: 0,
1257
+ count,
1188
1258
  enablePagination: true,
1189
- getRowId: (row) => row.id,
1259
+ // Row id is the offer id so each offer surfaces as a distinct row and the
1260
+ // selection can be turned back into `{ variantId, offerId }` pairs.
1261
+ getRowId: (row) => row.id ?? row.variant_id,
1190
1262
  pageSize: PAGE_SIZE2,
1191
- enableRowSelection: (_row) => {
1192
- return true;
1193
- },
1263
+ enableRowSelection: () => true,
1194
1264
  rowSelection: {
1195
1265
  state: rowSelection,
1196
1266
  updater
1197
1267
  }
1198
1268
  });
1199
- return /* @__PURE__ */ jsx6("div", { className: "flex size-full flex-col overflow-hidden", children: /* @__PURE__ */ jsx6(
1200
- _DataTable,
1269
+ return /* @__PURE__ */ jsx6(
1270
+ "div",
1201
1271
  {
1202
- table,
1203
- columns,
1204
- pageSize: PAGE_SIZE2,
1205
- count,
1206
- filters,
1207
- pagination: true,
1208
- layout: "fill",
1209
- search: true,
1210
- orderBy: [
1211
- { key: "product_id", label: t("fields.product") },
1212
- { key: "title", label: t("fields.title") },
1213
- { key: "sku", label: t("fields.sku") }
1214
- ],
1215
- prefix: PREFIX2,
1216
- queryObject: raw
1272
+ className: "flex size-full flex-col overflow-hidden",
1273
+ "data-testid": "add-offers-picker",
1274
+ children: /* @__PURE__ */ jsx6(
1275
+ _DataTable,
1276
+ {
1277
+ table,
1278
+ columns,
1279
+ pageSize: PAGE_SIZE2,
1280
+ count,
1281
+ filters,
1282
+ pagination: true,
1283
+ layout: "fill",
1284
+ search: true,
1285
+ orderBy: [
1286
+ { key: "sku", label: t("fields.sku") },
1287
+ { key: "created_at", label: t("fields.createdAt") },
1288
+ { key: "updated_at", label: t("fields.updatedAt") }
1289
+ ],
1290
+ prefix: PREFIX2,
1291
+ queryObject: raw
1292
+ }
1293
+ )
1217
1294
  }
1218
- ) });
1295
+ );
1219
1296
  };
1220
1297
 
1221
1298
  // src/pages/orders/order-create-exchange/components/exchange-create-form/exchange-outbound-item.tsx
1222
1299
  import { XCircle as XCircle2 } from "@medusajs/icons";
1223
- import { Input as Input2, Text as Text3 } from "@medusajs/ui";
1300
+ import { Input as Input2, Text as Text4 } from "@medusajs/ui";
1224
1301
  import { useTranslation as useTranslation9 } from "react-i18next";
1225
- import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
1302
+ import { jsx as jsx7, jsxs as jsxs4 } from "react/jsx-runtime";
1226
1303
  function ExchangeOutboundItem({
1227
1304
  previewItem,
1228
1305
  currencyCode,
@@ -1232,33 +1309,33 @@ function ExchangeOutboundItem({
1232
1309
  index
1233
1310
  }) {
1234
1311
  const { t } = useTranslation9();
1235
- return /* @__PURE__ */ jsx7("div", { className: "bg-ui-bg-subtle shadow-elevation-card-rest my-2 rounded-xl ", children: /* @__PURE__ */ jsxs3("div", { className: "flex flex-col items-center gap-x-2 gap-y-2 p-3 text-sm md:flex-row", children: [
1236
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-1 items-center gap-x-3", children: [
1312
+ return /* @__PURE__ */ jsx7("div", { className: "bg-ui-bg-subtle shadow-elevation-card-rest my-2 rounded-xl ", children: /* @__PURE__ */ jsxs4("div", { className: "flex flex-col items-center gap-x-2 gap-y-2 p-3 text-sm md:flex-row", children: [
1313
+ /* @__PURE__ */ jsxs4("div", { className: "flex flex-1 items-center gap-x-3", children: [
1237
1314
  /* @__PURE__ */ jsx7(Thumbnail, { src: previewItem.thumbnail }),
1238
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-col", children: [
1239
- /* @__PURE__ */ jsxs3("div", { children: [
1240
- /* @__PURE__ */ jsxs3(Text3, { className: "txt-small", as: "span", weight: "plus", children: [
1315
+ /* @__PURE__ */ jsxs4("div", { className: "flex flex-col", children: [
1316
+ /* @__PURE__ */ jsxs4("div", { children: [
1317
+ /* @__PURE__ */ jsxs4(Text4, { className: "txt-small", as: "span", weight: "plus", children: [
1241
1318
  previewItem.title,
1242
1319
  " "
1243
1320
  ] }),
1244
- previewItem.variant_sku && /* @__PURE__ */ jsxs3("span", { children: [
1321
+ previewItem.variant_sku && /* @__PURE__ */ jsxs4("span", { children: [
1245
1322
  "(",
1246
1323
  previewItem.variant_sku,
1247
1324
  ")"
1248
1325
  ] })
1249
1326
  ] }),
1250
- /* @__PURE__ */ jsx7(Text3, { as: "div", className: "text-ui-fg-subtle txt-small", children: previewItem.subtitle })
1327
+ /* @__PURE__ */ jsx7(Text4, { as: "div", className: "text-ui-fg-subtle txt-small", children: previewItem.subtitle })
1251
1328
  ] })
1252
1329
  ] }),
1253
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-1 justify-between", children: [
1254
- /* @__PURE__ */ jsxs3("div", { className: "flex flex-grow items-center gap-2", children: [
1330
+ /* @__PURE__ */ jsxs4("div", { className: "flex flex-1 justify-between", children: [
1331
+ /* @__PURE__ */ jsxs4("div", { className: "flex flex-grow items-center gap-2", children: [
1255
1332
  /* @__PURE__ */ jsx7(
1256
1333
  Form.Field,
1257
1334
  {
1258
1335
  control: form.control,
1259
1336
  name: `outbound_items.${index}.quantity`,
1260
1337
  render: ({ field }) => {
1261
- return /* @__PURE__ */ jsxs3(Form.Item, { children: [
1338
+ return /* @__PURE__ */ jsxs4(Form.Item, { children: [
1262
1339
  /* @__PURE__ */ jsx7(Form.Control, { children: /* @__PURE__ */ jsx7(
1263
1340
  Input2,
1264
1341
  {
@@ -1281,7 +1358,7 @@ function ExchangeOutboundItem({
1281
1358
  }
1282
1359
  }
1283
1360
  ),
1284
- /* @__PURE__ */ jsx7(Text3, { className: "txt-small text-ui-fg-subtle", children: t("fields.qty") })
1361
+ /* @__PURE__ */ jsx7(Text4, { className: "txt-small text-ui-fg-subtle", children: t("fields.qty") })
1285
1362
  ] }),
1286
1363
  /* @__PURE__ */ jsx7("div", { className: "text-ui-fg-subtle txt-small mr-2 flex flex-shrink-0", children: /* @__PURE__ */ jsx7(
1287
1364
  MoneyAmountCell,
@@ -1311,7 +1388,7 @@ function ExchangeOutboundItem({
1311
1388
  }
1312
1389
 
1313
1390
  // src/pages/orders/order-create-exchange/components/exchange-create-form/exchange-outbound-section.tsx
1314
- import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
1391
+ import { jsx as jsx8, jsxs as jsxs5 } from "react/jsx-runtime";
1315
1392
  var itemsToAdd2 = [];
1316
1393
  var itemsToRemove2 = [];
1317
1394
  var ExchangeOutboundSection = ({
@@ -1322,7 +1399,6 @@ var ExchangeOutboundSection = ({
1322
1399
  }) => {
1323
1400
  const { t } = useTranslation10();
1324
1401
  const { setIsOpen } = useStackedModal();
1325
- const [inventoryMap, setInventoryMap] = useState4({});
1326
1402
  const { shipping_options = [] } = useOrderShippingOptions(order.id);
1327
1403
  const outboundShippingOptions = shipping_options.filter(
1328
1404
  (so) => !so.rules?.find((r) => r.attribute === "is_return" && r.value === "true")
@@ -1344,7 +1420,7 @@ var ExchangeOutboundSection = ({
1344
1420
  exchange.id,
1345
1421
  order.id
1346
1422
  );
1347
- const previewOutboundItems = useMemo5(
1423
+ const previewOutboundItems = useMemo6(
1348
1424
  () => preview?.items?.filter(
1349
1425
  (i) => !!i.actions?.find(
1350
1426
  (a) => a.exchange_id === exchange.id && a.action === "ITEM_ADD"
@@ -1352,10 +1428,6 @@ var ExchangeOutboundSection = ({
1352
1428
  ),
1353
1429
  [preview.items, exchange.id]
1354
1430
  );
1355
- const variantItemMap = useMemo5(
1356
- () => new Map(order?.items?.map((i) => [i.variant_id, i])),
1357
- [order.items]
1358
- );
1359
1431
  const {
1360
1432
  fields: outboundItems,
1361
1433
  append,
@@ -1365,7 +1437,7 @@ var ExchangeOutboundSection = ({
1365
1437
  name: "outbound_items",
1366
1438
  control: form.control
1367
1439
  });
1368
- const variantOutboundMap = useMemo5(
1440
+ const variantOutboundMap = useMemo6(
1369
1441
  () => new Map(previewOutboundItems.map((i) => [i.variant_id, i])),
1370
1442
  [previewOutboundItems]
1371
1443
  );
@@ -1404,15 +1476,15 @@ var ExchangeOutboundSection = ({
1404
1476
  update,
1405
1477
  append
1406
1478
  ]);
1407
- const locationId = form.watch("location_id");
1408
1479
  const showOutboundItemsPlaceholder = !outboundItems.length;
1409
1480
  const onItemsSelected = async () => {
1410
1481
  if (itemsToAdd2.length) {
1411
1482
  await addOutboundItem(
1412
1483
  {
1413
- items: itemsToAdd2.map((variantId) => ({
1484
+ items: itemsToAdd2.map(({ variantId, offerId }) => ({
1414
1485
  variant_id: variantId,
1415
- quantity: 1
1486
+ quantity: 1,
1487
+ metadata: { offer_id: offerId }
1416
1488
  }))
1417
1489
  },
1418
1490
  {
@@ -1468,73 +1540,33 @@ var ExchangeOutboundSection = ({
1468
1540
  );
1469
1541
  }
1470
1542
  };
1471
- const showLevelsWarning = useMemo5(() => {
1472
- if (!locationId) {
1473
- return false;
1474
- }
1475
- const allItemsHaveLocation = outboundItems.map((i) => {
1476
- const item = variantItemMap.get(i.variant_id);
1477
- if (!item?.variant_id || !item?.variant) {
1478
- return true;
1479
- }
1480
- if (!item.variant?.manage_inventory) {
1481
- return true;
1482
- }
1483
- return inventoryMap[item.variant_id]?.find(
1484
- (l) => l.location_id === locationId
1485
- );
1486
- }).every(Boolean);
1487
- return !allItemsHaveLocation;
1488
- }, [
1489
- outboundItems,
1490
- inventoryMap,
1491
- locationId,
1492
- variantItemMap
1493
- ]);
1494
- useEffect2(() => {
1495
- const getInventoryMap = async () => {
1496
- const ret = {};
1497
- if (!outboundItems.length) {
1498
- return ret;
1499
- }
1500
- const variantIds = outboundItems.map((item) => item?.variant_id).filter(Boolean);
1501
- const variants = (await sdk.admin.productVariants.query({
1502
- id: variantIds,
1503
- fields: "*inventory.location_levels"
1504
- })).variants;
1505
- variants.forEach((variant) => {
1506
- ret[variant.id] = variant.inventory?.[0]?.location_levels || [];
1507
- });
1508
- return ret;
1509
- };
1510
- getInventoryMap().then((map) => {
1511
- setInventoryMap(map);
1512
- });
1513
- }, [outboundItems]);
1514
- return /* @__PURE__ */ jsxs4("div", { children: [
1515
- /* @__PURE__ */ jsxs4("div", { className: "mt-8 flex items-center justify-between", children: [
1543
+ return /* @__PURE__ */ jsxs5("div", { children: [
1544
+ /* @__PURE__ */ jsxs5("div", { className: "mt-8 flex items-center justify-between", children: [
1516
1545
  /* @__PURE__ */ jsx8(Heading2, { level: "h2", children: t("orders.returns.outbound") }),
1517
- /* @__PURE__ */ jsxs4(StackedFocusModal, { id: "outbound-items", children: [
1546
+ /* @__PURE__ */ jsxs5(StackedFocusModal, { id: "outbound-items", children: [
1518
1547
  /* @__PURE__ */ jsx8(StackedFocusModal.Trigger, { asChild: true, children: /* @__PURE__ */ jsx8("button", { type: "button", className: "focus-visible:shadow-borders-focus transition-fg txt-compact-small-plus cursor-pointer text-blue-500 outline-none hover:text-blue-400", children: t("actions.addItems") }) }),
1519
- /* @__PURE__ */ jsxs4(StackedFocusModal.Content, { children: [
1548
+ /* @__PURE__ */ jsxs5(StackedFocusModal.Content, { children: [
1520
1549
  /* @__PURE__ */ jsx8(StackedFocusModal.Header, {}),
1521
1550
  /* @__PURE__ */ jsx8(
1522
1551
  AddExchangeOutboundItemsTable,
1523
1552
  {
1524
- selectedItems: outboundItems.map((i) => i.variant_id),
1553
+ selectedItems: outboundItems.map(
1554
+ (i) => (typeof i.metadata?.offer_id === "string" ? i.metadata.offer_id : null) ?? i.variant_id
1555
+ ).filter((v) => !!v),
1525
1556
  currencyCode: order.currency_code,
1526
1557
  onSelectionChange: (finalSelection) => {
1527
- const alreadySelected = outboundItems.map((i) => i.variant_id);
1558
+ const alreadyVariantIds = outboundItems.map((i) => i.variant_id).filter((v) => !!v);
1528
1559
  itemsToAdd2 = finalSelection.filter(
1529
- (selection) => !alreadySelected.includes(selection)
1560
+ ({ variantId }) => !alreadyVariantIds.includes(variantId)
1530
1561
  );
1531
- itemsToRemove2 = alreadySelected.filter(
1532
- (selection) => !finalSelection.includes(selection)
1562
+ const finalVariantIds = finalSelection.map((s) => s.variantId);
1563
+ itemsToRemove2 = alreadyVariantIds.filter(
1564
+ (variantId) => !finalVariantIds.includes(variantId)
1533
1565
  );
1534
1566
  }
1535
1567
  }
1536
1568
  ),
1537
- /* @__PURE__ */ jsx8(StackedFocusModal.Footer, { children: /* @__PURE__ */ jsx8("div", { className: "flex w-full items-center justify-end gap-x-4", children: /* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-end gap-x-2", children: [
1569
+ /* @__PURE__ */ jsx8(StackedFocusModal.Footer, { children: /* @__PURE__ */ jsx8("div", { className: "flex w-full items-center justify-end gap-x-4", children: /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-end gap-x-2", children: [
1538
1570
  /* @__PURE__ */ jsx8(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx8(Button2, { type: "button", variant: "secondary", size: "small", children: t("actions.cancel") }) }),
1539
1571
  /* @__PURE__ */ jsx8(
1540
1572
  Button2,
@@ -1589,8 +1621,8 @@ var ExchangeOutboundSection = ({
1589
1621
  item.id
1590
1622
  )
1591
1623
  ),
1592
- !showOutboundItemsPlaceholder && /* @__PURE__ */ jsx8("div", { className: "mt-8 flex flex-col gap-y-4", children: /* @__PURE__ */ jsxs4("div", { className: "grid grid-cols-1 gap-2 md:grid-cols-2", children: [
1593
- /* @__PURE__ */ jsxs4("div", { children: [
1624
+ !showOutboundItemsPlaceholder && /* @__PURE__ */ jsx8("div", { className: "mt-8 flex flex-col gap-y-4", children: /* @__PURE__ */ jsxs5("div", { className: "grid grid-cols-1 gap-2 md:grid-cols-2", children: [
1625
+ /* @__PURE__ */ jsxs5("div", { children: [
1594
1626
  /* @__PURE__ */ jsx8(Form.Label, { children: t("orders.exchanges.outboundShipping") }),
1595
1627
  /* @__PURE__ */ jsx8(Form.Hint, { className: "!mt-1", children: t("orders.exchanges.outboundShippingHint") })
1596
1628
  ] }),
@@ -1621,16 +1653,12 @@ var ExchangeOutboundSection = ({
1621
1653
  }
1622
1654
  }
1623
1655
  )
1624
- ] }) }),
1625
- showLevelsWarning && /* @__PURE__ */ jsxs4(Alert2, { variant: "warning", dismissible: true, className: "mt-4 p-5", children: [
1626
- /* @__PURE__ */ jsx8("div", { className: "text-ui-fg-subtle txt-small pb-2 font-medium leading-[20px]", children: t("orders.returns.noInventoryLevel") }),
1627
- /* @__PURE__ */ jsx8(Text4, { className: "text-ui-fg-subtle txt-small leading-normal", children: t("orders.returns.noInventoryLevelDesc") })
1628
- ] })
1656
+ ] }) })
1629
1657
  ] });
1630
1658
  };
1631
1659
 
1632
1660
  // src/pages/orders/order-create-exchange/components/exchange-create-form/exchange-create-form.tsx
1633
- import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
1661
+ import { jsx as jsx9, jsxs as jsxs6 } from "react/jsx-runtime";
1634
1662
  var IS_CANCELING = false;
1635
1663
  var ExchangeCreateForm = ({
1636
1664
  order,
@@ -1640,13 +1668,13 @@ var ExchangeCreateForm = ({
1640
1668
  }) => {
1641
1669
  const { t } = useTranslation11();
1642
1670
  const { handleSuccess } = useRouteModal();
1643
- const [isInboundShippingPriceEdit, setIsInboundShippingPriceEdit] = useState5(false);
1644
- const [isOutboundShippingPriceEdit, setIsOutboundShippingPriceEdit] = useState5(false);
1645
- const [customInboundShippingAmount, setCustomInboundShippingAmount] = useState5({
1671
+ const [isInboundShippingPriceEdit, setIsInboundShippingPriceEdit] = useState3(false);
1672
+ const [isOutboundShippingPriceEdit, setIsOutboundShippingPriceEdit] = useState3(false);
1673
+ const [customInboundShippingAmount, setCustomInboundShippingAmount] = useState3({
1646
1674
  value: "0",
1647
1675
  float: 0
1648
1676
  });
1649
- const [customOutboundShippingAmount, setCustomOutboundShippingAmount] = useState5({
1677
+ const [customOutboundShippingAmount, setCustomOutboundShippingAmount] = useState3({
1650
1678
  value: "0",
1651
1679
  float: 0
1652
1680
  });
@@ -1661,7 +1689,7 @@ var ExchangeCreateForm = ({
1661
1689
  isPending: isUpdatingInboundShipping
1662
1690
  } = useUpdateExchangeOutboundShipping(exchange.id, order.id);
1663
1691
  const isRequestLoading = isConfirming || isCanceling || isUpdatingInboundShipping || isUpdatingOutboundShipping;
1664
- const previewItems = useMemo6(
1692
+ const previewItems = useMemo7(
1665
1693
  () => preview?.items?.filter(
1666
1694
  (i) => !!i.actions?.find((a) => a.exchange_id === exchange.id)
1667
1695
  ),
@@ -1783,19 +1811,19 @@ var ExchangeCreateForm = ({
1783
1811
  }
1784
1812
  };
1785
1813
  }, [t, cancelExchangeRequest]);
1786
- const inboundShippingTotal = useMemo6(() => {
1814
+ const inboundShippingTotal = useMemo7(() => {
1787
1815
  const method = preview.shipping_methods.find(
1788
1816
  (sm) => !!sm.actions?.find((a) => a.action === "SHIPPING_ADD" && !!a.return_id)
1789
1817
  );
1790
1818
  return method?.total || 0;
1791
1819
  }, [preview.shipping_methods]);
1792
- const outboundShippingTotal = useMemo6(() => {
1820
+ const outboundShippingTotal = useMemo7(() => {
1793
1821
  const method = preview.shipping_methods.find(
1794
1822
  (sm) => !!sm.actions?.find((a) => a.action === "SHIPPING_ADD" && !a.return_id)
1795
1823
  );
1796
1824
  return method?.total || 0;
1797
1825
  }, [preview.shipping_methods]);
1798
- return /* @__PURE__ */ jsx9(RouteFocusModal.Form, { form, "data-testid": "order-create-exchange-form", children: /* @__PURE__ */ jsxs5(
1826
+ return /* @__PURE__ */ jsx9(RouteFocusModal.Form, { form, "data-testid": "order-create-exchange-form", children: /* @__PURE__ */ jsxs6(
1799
1827
  KeyboundForm,
1800
1828
  {
1801
1829
  onSubmit: handleSubmit,
@@ -1808,7 +1836,7 @@ var ExchangeCreateForm = ({
1808
1836
  {
1809
1837
  className: "flex size-full justify-center overflow-y-auto",
1810
1838
  "data-testid": "order-create-exchange-body",
1811
- children: /* @__PURE__ */ jsxs5(
1839
+ children: /* @__PURE__ */ jsxs6(
1812
1840
  "div",
1813
1841
  {
1814
1842
  className: "mt-16 w-[720px] max-w-[100%] px-4 md:p-0",
@@ -1834,13 +1862,13 @@ var ExchangeCreateForm = ({
1834
1862
  exchange
1835
1863
  }
1836
1864
  ),
1837
- /* @__PURE__ */ jsxs5(
1865
+ /* @__PURE__ */ jsxs6(
1838
1866
  "div",
1839
1867
  {
1840
1868
  className: "mt-8 border-y border-dotted py-4",
1841
1869
  "data-testid": "order-create-exchange-totals",
1842
1870
  children: [
1843
- /* @__PURE__ */ jsxs5(
1871
+ /* @__PURE__ */ jsxs6(
1844
1872
  "div",
1845
1873
  {
1846
1874
  className: "mb-2 flex items-center justify-between",
@@ -1874,7 +1902,7 @@ var ExchangeCreateForm = ({
1874
1902
  ]
1875
1903
  }
1876
1904
  ),
1877
- /* @__PURE__ */ jsxs5(
1905
+ /* @__PURE__ */ jsxs6(
1878
1906
  "div",
1879
1907
  {
1880
1908
  className: "mb-2 flex items-center justify-between",
@@ -1908,9 +1936,9 @@ var ExchangeCreateForm = ({
1908
1936
  ]
1909
1937
  }
1910
1938
  ),
1911
- /* @__PURE__ */ jsxs5("div", { className: "mb-2 flex items-center justify-between", children: [
1939
+ /* @__PURE__ */ jsxs6("div", { className: "mb-2 flex items-center justify-between", children: [
1912
1940
  /* @__PURE__ */ jsx9("span", { className: "txt-small text-ui-fg-subtle", children: t("orders.returns.inboundShipping") }),
1913
- /* @__PURE__ */ jsxs5("span", { className: "txt-small text-ui-fg-subtle flex items-center", children: [
1941
+ /* @__PURE__ */ jsxs6("span", { className: "txt-small text-ui-fg-subtle flex items-center", children: [
1914
1942
  !isInboundShippingPriceEdit && /* @__PURE__ */ jsx9(
1915
1943
  IconButton2,
1916
1944
  {
@@ -1964,9 +1992,9 @@ var ExchangeCreateForm = ({
1964
1992
  ) : getStylizedAmount(inboundShippingTotal, order.currency_code)
1965
1993
  ] })
1966
1994
  ] }),
1967
- /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between", children: [
1995
+ /* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between", children: [
1968
1996
  /* @__PURE__ */ jsx9("span", { className: "txt-small text-ui-fg-subtle", children: t("orders.exchanges.outboundShipping") }),
1969
- /* @__PURE__ */ jsxs5("span", { className: "txt-small text-ui-fg-subtle flex items-center", children: [
1997
+ /* @__PURE__ */ jsxs6("span", { className: "txt-small text-ui-fg-subtle flex items-center", children: [
1970
1998
  !isOutboundShippingPriceEdit && /* @__PURE__ */ jsx9(
1971
1999
  IconButton2,
1972
2000
  {
@@ -2023,7 +2051,7 @@ var ExchangeCreateForm = ({
2023
2051
  )
2024
2052
  ] })
2025
2053
  ] }),
2026
- /* @__PURE__ */ jsxs5(
2054
+ /* @__PURE__ */ jsxs6(
2027
2055
  "div",
2028
2056
  {
2029
2057
  className: "mt-4 flex items-center justify-between border-t border-dotted pt-4",
@@ -2065,8 +2093,8 @@ var ExchangeCreateForm = ({
2065
2093
  control: form.control,
2066
2094
  name: "send_notification",
2067
2095
  render: ({ field: { onChange, value, ...field } }) => {
2068
- return /* @__PURE__ */ jsxs5(Form.Item, { "data-testid": "order-create-exchange-notification-item", children: [
2069
- /* @__PURE__ */ jsxs5(
2096
+ return /* @__PURE__ */ jsxs6(Form.Item, { "data-testid": "order-create-exchange-notification-item", children: [
2097
+ /* @__PURE__ */ jsxs6(
2070
2098
  "div",
2071
2099
  {
2072
2100
  className: "flex items-center",
@@ -2090,7 +2118,7 @@ var ExchangeCreateForm = ({
2090
2118
  )
2091
2119
  }
2092
2120
  ),
2093
- /* @__PURE__ */ jsxs5("div", { className: "block", children: [
2121
+ /* @__PURE__ */ jsxs6("div", { className: "block", children: [
2094
2122
  /* @__PURE__ */ jsx9(Form.Label, { "data-testid": "order-create-exchange-notification-label", children: t("orders.returns.sendNotification") }),
2095
2123
  /* @__PURE__ */ jsx9(
2096
2124
  Form.Hint,
@@ -2122,7 +2150,7 @@ var ExchangeCreateForm = ({
2122
2150
  {
2123
2151
  className: "flex w-full items-center justify-end gap-x-4",
2124
2152
  "data-testid": "order-create-exchange-form-footer-actions",
2125
- children: /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-end gap-x-2", children: [
2153
+ children: /* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-end gap-x-2", children: [
2126
2154
  /* @__PURE__ */ jsx9(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx9(
2127
2155
  Button3,
2128
2156
  {
@@ -2165,7 +2193,7 @@ var ExchangeCreate = () => {
2165
2193
  fields: DEFAULT_FIELDS
2166
2194
  });
2167
2195
  const { order: preview } = useOrderPreview(id);
2168
- const [activeExchangeId, setActiveExchangeId] = useState6();
2196
+ const [activeExchangeId, setActiveExchangeId] = useState4();
2169
2197
  const { mutateAsync: createExchange } = useCreateExchange(order.id);
2170
2198
  const { exchange } = useExchange(activeExchangeId, void 0, {
2171
2199
  enabled: !!activeExchangeId