@medusajs/dashboard 2.10.4-snapshot-20250923121159 → 2.10.4-snapshot-20250925180256

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 (336) hide show
  1. package/dist/{add-campaign-promotions-JOVLXLS4.mjs → add-campaign-promotions-3BB3BLFD.mjs} +7 -6
  2. package/dist/{adjust-inventory-WBEBMJN7.mjs → adjust-inventory-OIJTAKHP.mjs} +1 -1
  3. package/dist/{api-key-management-create-VXPZX2Q5.mjs → api-key-management-create-XDQHUNWK.mjs} +3 -3
  4. package/dist/{api-key-management-detail-I7T67TXF.mjs → api-key-management-detail-ZQLQKGYF.mjs} +15 -14
  5. package/dist/{api-key-management-edit-7CGMSHAY.mjs → api-key-management-edit-2SUSKI7T.mjs} +3 -3
  6. package/dist/{api-key-management-list-5DI3L4DV.mjs → api-key-management-list-C2WM4PHC.mjs} +8 -7
  7. package/dist/{api-key-management-sales-channels-6GN6RVZ2.mjs → api-key-management-sales-channels-MVHVMPF6.mjs} +6 -5
  8. package/dist/app.css +89 -31
  9. package/dist/app.js +7166 -6079
  10. package/dist/app.mjs +17 -15
  11. package/dist/{campaign-budget-edit-OXNTSPGE.mjs → campaign-budget-edit-UWGCET5Z.mjs} +1 -1
  12. package/dist/{campaign-configuration-Z5HA2DG3.mjs → campaign-configuration-WWCCFNYQ.mjs} +1 -1
  13. package/dist/{campaign-create-AVBNHFC2.mjs → campaign-create-CQ3XBHSY.mjs} +4 -3
  14. package/dist/{campaign-detail-NRZHGINV.mjs → campaign-detail-LASOFZ2O.mjs} +22 -21
  15. package/dist/{campaign-edit-3TDW52BO.mjs → campaign-edit-R43GXNET.mjs} +1 -1
  16. package/dist/{campaign-list-G4MD3RPU.mjs → campaign-list-CDO5PRTL.mjs} +7 -6
  17. package/dist/{categories-metadata-GXWJ3HOG.mjs → categories-metadata-HUIY6V4F.mjs} +13 -12
  18. package/dist/{category-create-FOVB5MJ4.mjs → category-create-GMFWRFT7.mjs} +38 -16
  19. package/dist/{category-detail-ENUI5EFL.mjs → category-detail-ZJJBYVFX.mjs} +19 -18
  20. package/dist/{category-edit-O4ZSANE5.mjs → category-edit-HCHER73V.mjs} +36 -16
  21. package/dist/{category-list-UI6W5KF5.mjs → category-list-IXW2NWWJ.mjs} +8 -7
  22. package/dist/{category-organize-BW3YOPUS.mjs → category-organize-LRQKM4LA.mjs} +2 -2
  23. package/dist/{category-products-ZG5QDWSW.mjs → category-products-7N4TITQ4.mjs} +15 -14
  24. package/dist/{chunk-2HKRIUW4.mjs → chunk-2PGNKUXS.mjs} +1 -1
  25. package/dist/{chunk-X4X5KUGQ.mjs → chunk-4QUHWHBD.mjs} +3 -0
  26. package/dist/chunk-5U3FFMC7.mjs +84 -0
  27. package/dist/{chunk-Y4YXZY7R.mjs → chunk-5WMJLYEP.mjs} +2 -2
  28. package/dist/{chunk-RVOPC44F.mjs → chunk-7DFTLGA5.mjs} +623 -682
  29. package/dist/{chunk-YM4QJC6Y.mjs → chunk-7GBCLBMX.mjs} +1 -1
  30. package/dist/{chunk-JHXKKOHO.mjs → chunk-7JJTWGHU.mjs} +49 -15
  31. package/dist/{chunk-2YP2ZNKR.mjs → chunk-AN5IILM2.mjs} +1 -1
  32. package/dist/{chunk-YWNHMIEQ.mjs → chunk-AXXGAOQL.mjs} +2 -2
  33. package/dist/{chunk-5WKYR6PY.mjs → chunk-CXTAH75K.mjs} +1 -1
  34. package/dist/{chunk-J5E7MQSS.mjs → chunk-CY33DS7K.mjs} +6 -0
  35. package/dist/{chunk-ZJA7VBUR.mjs → chunk-DKOCYXB5.mjs} +34 -1
  36. package/dist/{chunk-7VJK6HNE.mjs → chunk-EYL2JACT.mjs} +4 -4
  37. package/dist/{chunk-BFNH5UWD.mjs → chunk-EYTETK3W.mjs} +1 -1
  38. package/dist/{chunk-74K7HGNI.mjs → chunk-FXG2Z3QT.mjs} +3 -2
  39. package/dist/{chunk-2RQLKDBF.mjs → chunk-GIZFNLKK.mjs} +103 -96
  40. package/dist/{chunk-AOFGTNG6.mjs → chunk-HQKGZADC.mjs} +6 -1
  41. package/dist/{chunk-LBIOZZPA.mjs → chunk-HWKLNKOY.mjs} +1 -1
  42. package/dist/{chunk-S2UEWRDA.mjs → chunk-IL5IMREK.mjs} +59 -49
  43. package/dist/{chunk-JIQQKKLO.mjs → chunk-IP2QPPWC.mjs} +1 -1
  44. package/dist/{chunk-SCBXRJPV.mjs → chunk-IRO6DO7J.mjs} +1 -1
  45. package/dist/{chunk-YI4CZGTU.mjs → chunk-ITJEYJNB.mjs} +1 -1
  46. package/dist/{chunk-T7G2CURS.mjs → chunk-IVZ6BMDB.mjs} +1 -0
  47. package/dist/{chunk-XGJ5DXXG.mjs → chunk-K2HM7KXJ.mjs} +12 -12
  48. package/dist/{chunk-OKMF4YI7.mjs → chunk-K3OMOMRB.mjs} +25 -0
  49. package/dist/{chunk-2LPGQWPV.mjs → chunk-KTL6E2WT.mjs} +1 -1
  50. package/dist/{chunk-OHSRRFGN.mjs → chunk-LKVQ5YC6.mjs} +1 -1
  51. package/dist/{chunk-QGCKTVQX.mjs → chunk-LMRZMI7O.mjs} +1 -1
  52. package/dist/{chunk-Q5DI5VYN.mjs → chunk-MLNUGLGT.mjs} +1 -1
  53. package/dist/{chunk-5M5ZVAWU.mjs → chunk-MSOFJHH3.mjs} +2 -2
  54. package/dist/{chunk-JMQ6V54O.mjs → chunk-NFQXNOP7.mjs} +1 -1
  55. package/dist/{chunk-UWJBDOQD.mjs → chunk-NKVMOKZA.mjs} +41 -29
  56. package/dist/{chunk-NCR5UWRI.mjs → chunk-NY6I2FYO.mjs} +1 -1
  57. package/dist/{chunk-2PMSBTXI.mjs → chunk-OFN7DIZA.mjs} +17 -13
  58. package/dist/{chunk-3NJTXRIY.mjs → chunk-OZPB6JBL.mjs} +5 -1
  59. package/dist/{chunk-FPJBF7VS.mjs → chunk-P2O6XTD4.mjs} +1 -1
  60. package/dist/{chunk-OGHQ6VJI.mjs → chunk-PAG2HG6I.mjs} +44 -5
  61. package/dist/{chunk-EFA7S5L3.mjs → chunk-PGTXMCSV.mjs} +1 -1
  62. package/dist/{chunk-D7H6ZNK4.mjs → chunk-PRLQLEEQ.mjs} +2 -0
  63. package/dist/{chunk-OLUNPPBR.mjs → chunk-QPLPGRYF.mjs} +1 -1
  64. package/dist/{chunk-ZODJNBAV.mjs → chunk-R2G2B47Y.mjs} +1 -0
  65. package/dist/{chunk-SMHXCFRS.mjs → chunk-RBDAWRFF.mjs} +54 -41
  66. package/dist/{chunk-HUX22ZHT.mjs → chunk-RF75BZNF.mjs} +3 -3
  67. package/dist/{chunk-4RG7UJCT.mjs → chunk-RGP3IXX4.mjs} +1 -1
  68. package/dist/chunk-S4DMV3ZT.mjs +35 -0
  69. package/dist/{chunk-5NQ3X2JI.mjs → chunk-SNDSWB6B.mjs} +1 -1
  70. package/dist/{chunk-EE7SOCEQ.mjs → chunk-SQFZWNYA.mjs} +4 -4
  71. package/dist/{chunk-O74UDEWT.mjs → chunk-TKZK3YPU.mjs} +1 -1
  72. package/dist/{chunk-KSRI5LOF.mjs → chunk-U25RCIX2.mjs} +2 -2
  73. package/dist/{chunk-BHZAQZYP.mjs → chunk-U4R5MBF2.mjs} +1 -1
  74. package/dist/{chunk-CK3VFTZM.mjs → chunk-UKX2FFFV.mjs} +2 -2
  75. package/dist/{chunk-37UXEJF2.mjs → chunk-V6JXTITD.mjs} +1 -1
  76. package/dist/{chunk-R2NWOCML.mjs → chunk-VI7MI3US.mjs} +8 -2
  77. package/dist/chunk-VLOA5XAC.mjs +113 -0
  78. package/dist/{chunk-NRBOPOMS.mjs → chunk-VWQYN2RW.mjs} +1 -1
  79. package/dist/{chunk-4Q4LIFFO.mjs → chunk-XP3BY6G6.mjs} +1 -1
  80. package/dist/{chunk-6AGMMT5H.mjs → chunk-XR7I5HGZ.mjs} +4 -4
  81. package/dist/{chunk-6IZUCU7K.mjs → chunk-YSFTQA6Y.mjs} +2 -2
  82. package/dist/{chunk-XKXNQ2KV.mjs → chunk-ZCARHA6C.mjs} +1 -1
  83. package/dist/{chunk-RMEITCLS.mjs → chunk-ZSDEVTFT.mjs} +1 -1
  84. package/dist/{collection-add-products-2ISNNIHD.mjs → collection-add-products-WKMNYPLS.mjs} +15 -14
  85. package/dist/{collection-create-75ZI5NDG.mjs → collection-create-PTOF33H2.mjs} +2 -2
  86. package/dist/{collection-detail-OSX6NHNQ.mjs → collection-detail-NONKXELG.mjs} +17 -16
  87. package/dist/{collection-edit-RD6BDDDI.mjs → collection-edit-WM57WXJ2.mjs} +2 -2
  88. package/dist/{collection-list-MPIYSHQJ.mjs → collection-list-3ZHLS2LP.mjs} +19 -18
  89. package/dist/{collection-metadata-EOFYXEQI.mjs → collection-metadata-J6P3K7U6.mjs} +13 -12
  90. package/dist/{customer-create-address-TPSDYZBN.mjs → customer-create-address-JOYBIPPN.mjs} +1 -1
  91. package/dist/{customer-detail-FCNRRZSW.mjs → customer-detail-5Y7ICDMA.mjs} +17 -16
  92. package/dist/{customer-group-add-customers-ULPWTALS.mjs → customer-group-add-customers-YF2T323Z.mjs} +3 -2
  93. package/dist/{customer-group-detail-QI3QLJJL.mjs → customer-group-detail-PXP73BFA.mjs} +16 -15
  94. package/dist/{customer-group-list-D26UKQMR.mjs → customer-group-list-3DB643XQ.mjs} +15 -14
  95. package/dist/{customer-group-metadata-UPAPULMF.mjs → customer-group-metadata-YQCOIVQG.mjs} +2 -1
  96. package/dist/{customer-list-SINCBCOZ.mjs → customer-list-5IWEXYSW.mjs} +5 -4
  97. package/dist/{customer-metadata-5NPUMPZ2.mjs → customer-metadata-JZEJBH4V.mjs} +2 -1
  98. package/dist/{customers-add-customer-group-5TFTVDB6.mjs → customers-add-customer-group-BVUVU46N.mjs} +14 -13
  99. package/dist/{edit-inventory-item-ZPE4MMC4.mjs → edit-inventory-item-UV2Z7SYL.mjs} +1 -1
  100. package/dist/{edit-inventory-item-attributes-KT7BSPZ7.mjs → edit-inventory-item-attributes-BRC3KBYT.mjs} +2 -2
  101. package/dist/{edit-reservation-EKH4RIAX.mjs → edit-reservation-NYGQBFBO.mjs} +7 -2
  102. package/dist/{edit-rules-63NG4QVR.mjs → edit-rules-3MSTPCE5.mjs} +14 -13
  103. package/dist/{inventory-create-RIVJFJJQ.mjs → inventory-create-NEYX7PZJ.mjs} +19 -14
  104. package/dist/{inventory-detail-QHL7TJFZ.mjs → inventory-detail-66HDQL3W.mjs} +25 -18
  105. package/dist/{inventory-list-YMYF7QVP.mjs → inventory-list-J5VZGQ2M.mjs} +6 -5
  106. package/dist/{inventory-metadata-FH4CHJBA.mjs → inventory-metadata-OSTUWM23.mjs} +13 -12
  107. package/dist/{inventory-stock-D6E4LQRK.mjs → inventory-stock-XY2OCAY3.mjs} +14 -13
  108. package/dist/{location-create-LUP363ZB.mjs → location-create-22H74MFP.mjs} +1 -1
  109. package/dist/{location-detail-Z6ZDX6RY.mjs → location-detail-UZHD3IKW.mjs} +14 -13
  110. package/dist/{location-edit-26K26G23.mjs → location-edit-X6JBEWIF.mjs} +2 -2
  111. package/dist/{location-fulfillment-providers-45VXZMZI.mjs → location-fulfillment-providers-D4RMKQXU.mjs} +16 -15
  112. package/dist/{location-list-62KBWY4T.mjs → location-list-VNEYHAKV.mjs} +15 -8
  113. package/dist/{location-sales-channels-O5XLIPAR.mjs → location-sales-channels-66ZE3ZMI.mjs} +5 -4
  114. package/dist/{location-service-zone-create-RPFLBVV4.mjs → location-service-zone-create-D5QSFS3M.mjs} +4 -3
  115. package/dist/{location-service-zone-manage-areas-VEUUGPKF.mjs → location-service-zone-manage-areas-HKCALG4Q.mjs} +4 -3
  116. package/dist/{location-service-zone-shipping-option-create-NO3665DC.mjs → location-service-zone-shipping-option-create-OASLL2K7.mjs} +23 -15
  117. package/dist/{location-service-zone-shipping-option-edit-TMXNX4VX.mjs → location-service-zone-shipping-option-edit-DOCLZOO7.mjs} +40 -28
  118. package/dist/{location-service-zone-shipping-option-pricing-U2SDK5DE.mjs → location-service-zone-shipping-option-pricing-FLB63UKY.mjs} +3 -2
  119. package/dist/{login-DSPNELTI.mjs → login-LQRL2ZDY.mjs} +11 -11
  120. package/dist/manage-locations-RPHTPGRE.mjs +247 -0
  121. package/dist/{order-allocate-items-J3ZHGC22.mjs → order-allocate-items-2RYXQRVK.mjs} +26 -14
  122. package/dist/{order-create-claim-V63BWLB5.mjs → order-create-claim-7UF734QH.mjs} +20 -18
  123. package/dist/{order-create-edit-NPF4UZ4D.mjs → order-create-edit-MZHUVTGE.mjs} +18 -16
  124. package/dist/{order-create-exchange-RHIPPSKU.mjs → order-create-exchange-2UGEF65S.mjs} +20 -18
  125. package/dist/{order-create-fulfillment-4SSUHQ75.mjs → order-create-fulfillment-HGJ2YPUB.mjs} +19 -12
  126. package/dist/{order-create-refund-QVQC5ZP5.mjs → order-create-refund-CJDKVBSE.mjs} +52 -17
  127. package/dist/{order-create-return-GVA6M2RY.mjs → order-create-return-5IPRHHLJ.mjs} +11 -9
  128. package/dist/{order-create-shipment-TJAARKWA.mjs → order-create-shipment-3FDVQ6WT.mjs} +13 -11
  129. package/dist/{order-detail-2MIN6B2I.mjs → order-detail-SEPCRJW5.mjs} +50 -42
  130. package/dist/{order-edit-billing-address-QP2I5F3E.mjs → order-edit-billing-address-J75NQFRY.mjs} +12 -12
  131. package/dist/{order-edit-email-7WT7XTHB.mjs → order-edit-email-ABFQKE6A.mjs} +11 -11
  132. package/dist/{order-edit-shipping-address-3QFMQP4I.mjs → order-edit-shipping-address-OXW7TAJD.mjs} +12 -12
  133. package/dist/{order-list-73DBATIK.mjs → order-list-VDUUHTSU.mjs} +11 -10
  134. package/dist/{order-metadata-YJS26DHK.mjs → order-metadata-5NF3ICQL.mjs} +13 -12
  135. package/dist/{order-receive-return-PZMMMUB2.mjs → order-receive-return-IM65P7XQ.mjs} +14 -13
  136. package/dist/{order-request-transfer-QBIZD36E.mjs → order-request-transfer-LZ25KEDA.mjs} +12 -12
  137. package/dist/{price-list-configuration-435QDWB2.mjs → price-list-configuration-VACKCKJF.mjs} +6 -5
  138. package/dist/{price-list-create-RXDH5CXF.mjs → price-list-create-EC5VGCMW.mjs} +39 -24
  139. package/dist/{price-list-detail-PKIKOJ4H.mjs → price-list-detail-CRTJA5O4.mjs} +18 -17
  140. package/dist/{price-list-edit-ZGBOZYSC.mjs → price-list-edit-G73ZIU2Y.mjs} +51 -31
  141. package/dist/{price-list-list-C6NEB2R4.mjs → price-list-list-QYZSJNF5.mjs} +8 -7
  142. package/dist/{price-list-prices-add-2CDPUSYA.mjs → price-list-prices-add-HYCM4QDY.mjs} +28 -20
  143. package/dist/{price-list-prices-edit-ENB4GJZT.mjs → price-list-prices-edit-R53ITSDD.mjs} +5 -4
  144. package/dist/{product-attributes-FQDJCNUB.mjs → product-attributes-WVQRK3GQ.mjs} +19 -17
  145. package/dist/{product-create-W37RQLON.mjs → product-create-PWSPOVUS.mjs} +27 -21
  146. package/dist/{product-create-option-3JR35UZ5.mjs → product-create-option-OW2LMVST.mjs} +1 -1
  147. package/dist/{product-create-variant-KJKQ6ROY.mjs → product-create-variant-V2QGXFEF.mjs} +31 -18
  148. package/dist/{product-detail-TANIKAEK.mjs → product-detail-EBPCCBI4.mjs} +21 -19
  149. package/dist/{product-edit-DO76GHBI.mjs → product-edit-5E6D43KE.mjs} +41 -28
  150. package/dist/{product-edit-option-VNDGZ37A.mjs → product-edit-option-OM56DLU6.mjs} +1 -1
  151. package/dist/{product-export-XERWEI5H.mjs → product-export-VFC3I5DK.mjs} +13 -13
  152. package/dist/{product-import-AGFJMSVK.mjs → product-import-V7EZJ2TU.mjs} +14 -13
  153. package/dist/{product-list-KJ3HXPLB.mjs → product-list-FFZO57JG.mjs} +19 -18
  154. package/dist/{product-media-VG4YM2W6.mjs → product-media-TRKQTA4G.mjs} +5 -5
  155. package/dist/{product-metadata-NZ3HKO67.mjs → product-metadata-VYQ65KYI.mjs} +13 -12
  156. package/dist/{product-organization-OOVUGXNP.mjs → product-organization-OCVSTKEK.mjs} +20 -18
  157. package/dist/{product-prices-PCBMYYGV.mjs → product-prices-XLY5TUSJ.mjs} +3 -2
  158. package/dist/{product-sales-channels-QEJRSCAU.mjs → product-sales-channels-KSIHPDJG.mjs} +5 -4
  159. package/dist/{product-shipping-profile-FFMKOF6B.mjs → product-shipping-profile-SG6NDHF4.mjs} +19 -17
  160. package/dist/{product-stock-SUVEQZML.mjs → product-stock-LJRYRSKN.mjs} +16 -14
  161. package/dist/{product-tag-create-T6HVAQKN.mjs → product-tag-create-EB5CVUOP.mjs} +11 -11
  162. package/dist/{product-tag-detail-HOWUZC3P.mjs → product-tag-detail-V5CZY4R4.mjs} +22 -21
  163. package/dist/{product-tag-edit-WWQDNDRC.mjs → product-tag-edit-YATSW5OK.mjs} +11 -11
  164. package/dist/{product-tag-list-FAKSLONF.mjs → product-tag-list-2LFGEFGL.mjs} +22 -21
  165. package/dist/{product-tag-metadata-6B56VEZU.mjs → product-tag-metadata-R5P5FWAZ.mjs} +13 -12
  166. package/dist/{product-type-detail-KN64HYUV.mjs → product-type-detail-BZNI5GJ5.mjs} +17 -16
  167. package/dist/{product-type-list-6ZIWPIUH.mjs → product-type-list-MJLAGQYC.mjs} +5 -4
  168. package/dist/{product-type-metadata-F3FTI6OG.mjs → product-type-metadata-SUQHWLWA.mjs} +13 -12
  169. package/dist/{product-variant-detail-OUHBUY4J.mjs → product-variant-detail-W2JHQQQJ.mjs} +16 -15
  170. package/dist/{product-variant-edit-NBYHDUJ5.mjs → product-variant-edit-DSY77FF4.mjs} +17 -13
  171. package/dist/{product-variant-manage-inventory-items-TM3VAHBJ.mjs → product-variant-manage-inventory-items-JH65NAD4.mjs} +2 -2
  172. package/dist/{product-variant-metadata-XDVLJYGQ.mjs → product-variant-metadata-HE3MRTJB.mjs} +13 -12
  173. package/dist/{profile-detail-ROG22HHL.mjs → profile-detail-XYAQ2G36.mjs} +3 -2
  174. package/dist/{profile-edit-HSUQIQQH.mjs → profile-edit-7WD4FTRH.mjs} +31 -19
  175. package/dist/{promotion-add-campaign-7R26KU2U.mjs → promotion-add-campaign-YOUUM6RB.mjs} +9 -21
  176. package/dist/{promotion-create-UUOG52D5.mjs → promotion-create-NBFV4XQV.mjs} +29 -17
  177. package/dist/{promotion-detail-GONXLJZ2.mjs → promotion-detail-247QD6DA.mjs} +16 -15
  178. package/dist/{promotion-edit-details-HQLYX4X4.mjs → promotion-edit-details-A2UUSAZA.mjs} +10 -2
  179. package/dist/{promotion-list-NNEMVJ6I.mjs → promotion-list-WDHOSD55.mjs} +9 -8
  180. package/dist/refund-reason-create-45ZZOX7F.mjs +157 -0
  181. package/dist/refund-reason-edit-E2HDAQZI.mjs +144 -0
  182. package/dist/refund-reason-list-WI7NHRDS.mjs +245 -0
  183. package/dist/{region-add-countries-Y4YAHDUZ.mjs → region-add-countries-6GSF4CKJ.mjs} +3 -2
  184. package/dist/{region-create-5Y3GIQBV.mjs → region-create-AV2NJNNJ.mjs} +49 -39
  185. package/dist/{region-detail-CWRFM6P3.mjs → region-detail-PB7EUSTD.mjs} +5 -4
  186. package/dist/region-edit-X7CSUICV.mjs +308 -0
  187. package/dist/{region-list-FQNI7F37.mjs → region-list-52LF5S4S.mjs} +5 -4
  188. package/dist/{region-metadata-IQVB4ERU.mjs → region-metadata-3JIGHAUI.mjs} +13 -12
  189. package/dist/{reservation-create-7RFXWDXB.mjs → reservation-create-FKBCGQA7.mjs} +3 -3
  190. package/dist/{reservation-detail-RTGHD35L.mjs → reservation-detail-FENCNQDA.mjs} +15 -14
  191. package/dist/{reservation-list-UOC7RNRZ.mjs → reservation-list-NOWJUMXV.mjs} +7 -6
  192. package/dist/{reservation-metadata-WKJXBRLQ.mjs → reservation-metadata-DQ3A7MHU.mjs} +13 -12
  193. package/dist/{reset-password-ANJHGYUE.mjs → reset-password-LCVV4NOA.mjs} +1 -1
  194. package/dist/{return-reason-list-MOP7YWMZ.mjs → return-reason-list-FW7OYUOW.mjs} +8 -7
  195. package/dist/{sales-channel-add-products-OKVZJ6FI.mjs → sales-channel-add-products-G4EUOCWY.mjs} +15 -14
  196. package/dist/{sales-channel-create-3MPOMVPD.mjs → sales-channel-create-NODWGJDD.mjs} +4 -2
  197. package/dist/{sales-channel-detail-WESBK6Q7.mjs → sales-channel-detail-NT7PEVVH.mjs} +17 -16
  198. package/dist/{sales-channel-edit-LSLAM7A4.mjs → sales-channel-edit-ALIRERVH.mjs} +4 -2
  199. package/dist/{sales-channel-list-LKVHXUXW.mjs → sales-channel-list-REV2RETE.mjs} +15 -14
  200. package/dist/{sales-channel-metadata-2OQAHYB4.mjs → sales-channel-metadata-O5O6ADG5.mjs} +13 -12
  201. package/dist/{shipping-option-type-create-3CGPGDYJ.mjs → shipping-option-type-create-7FSJNHHA.mjs} +11 -11
  202. package/dist/{shipping-option-type-detail-S23H2OGW.mjs → shipping-option-type-detail-6UQST7RY.mjs} +15 -14
  203. package/dist/{shipping-option-type-edit-IHE7XM6M.mjs → shipping-option-type-edit-B475WRRR.mjs} +11 -11
  204. package/dist/{shipping-option-type-list-47GRJ6EC.mjs → shipping-option-type-list-DTETSFSA.mjs} +17 -16
  205. package/dist/{shipping-profile-detail-FDUPDSH4.mjs → shipping-profile-detail-FS46IJZP.mjs} +3 -2
  206. package/dist/{shipping-profile-metadata-OXWOXAAR.mjs → shipping-profile-metadata-PRINFNSY.mjs} +13 -12
  207. package/dist/{shipping-profiles-list-ZHJEUIKJ.mjs → shipping-profiles-list-QFOG5IDH.mjs} +5 -4
  208. package/dist/{store-add-currencies-R26SVHT5.mjs → store-add-currencies-W4MWOALR.mjs} +5 -2
  209. package/dist/{store-detail-4K7TW2TP.mjs → store-detail-QKF2TVNW.mjs} +16 -15
  210. package/dist/{store-edit-EU55TNFU.mjs → store-edit-ZPGTNZGL.mjs} +24 -12
  211. package/dist/{store-metadata-JP2CI7EF.mjs → store-metadata-M6GIKI5P.mjs} +13 -12
  212. package/dist/{tax-region-create-IWM4755I.mjs → tax-region-create-4DTM3RTZ.mjs} +14 -14
  213. package/dist/{tax-region-detail-V2F2DONN.mjs → tax-region-detail-SLCI3JYL.mjs} +18 -17
  214. package/dist/{tax-region-edit-CJPMYTBF.mjs → tax-region-edit-CJ63JXFQ.mjs} +12 -12
  215. package/dist/{tax-region-list-NMM3LBPN.mjs → tax-region-list-SQQE2GUU.mjs} +6 -5
  216. package/dist/{tax-region-province-create-GIIU2G7K.mjs → tax-region-province-create-SBRFGWN3.mjs} +2 -2
  217. package/dist/{tax-region-province-detail-4PUQ5ADW.mjs → tax-region-province-detail-BGL2USQF.mjs} +17 -16
  218. package/dist/{tax-region-tax-override-create-3SCIOK4P.mjs → tax-region-tax-override-create-L4WOTSBO.mjs} +25 -20
  219. package/dist/{tax-region-tax-override-edit-P3QJKET3.mjs → tax-region-tax-override-edit-2JAVNE37.mjs} +25 -20
  220. package/dist/{tax-region-tax-rate-create-Z43M3JTQ.mjs → tax-region-tax-rate-create-JIV5FXUD.mjs} +1 -1
  221. package/dist/{tax-region-tax-rate-edit-RBF5D2MK.mjs → tax-region-tax-rate-edit-WU2ZQLZQ.mjs} +1 -1
  222. package/dist/{user-detail-VIVFFLOW.mjs → user-detail-ZFW3YF3M.mjs} +4 -3
  223. package/dist/{user-invite-W26LOOW7.mjs → user-invite-KUH4AI2L.mjs} +4 -3
  224. package/dist/{user-list-MKJLB5CQ.mjs → user-list-G4H2RSDX.mjs} +4 -3
  225. package/dist/{user-metadata-ZURLDLGC.mjs → user-metadata-DFTGB46F.mjs} +13 -12
  226. package/dist/{workflow-execution-detail-4R6AFFHV.mjs → workflow-execution-detail-YNT2RKIP.mjs} +17 -13
  227. package/dist/{workflow-execution-list-5J3DQQRD.mjs → workflow-execution-list-5WL4L464.mjs} +4 -3
  228. package/package.json +9 -9
  229. package/src/components/common/action-menu/action-menu.tsx +3 -1
  230. package/src/components/common/customer-info/customer-info.tsx +1 -1
  231. package/src/components/common/json-view-section/json-view-section.tsx +4 -1
  232. package/src/components/common/sidebar-link/sidebar-link.tsx +1 -1
  233. package/src/components/common/switch-box/switch-box.tsx +2 -0
  234. package/src/components/data-grid/components/data-grid-root.tsx +9 -3
  235. package/src/components/data-grid/components/data-grid-toggleable-number-cell.tsx +2 -1
  236. package/src/components/filtering/filter-group/filter-group.tsx +5 -1
  237. package/src/components/filtering/order-by/order-by.tsx +4 -1
  238. package/src/components/forms/address-form/address-form.tsx +7 -2
  239. package/src/components/forms/metadata-form/metadata-form.tsx +6 -3
  240. package/src/components/inputs/combobox/combobox.tsx +20 -13
  241. package/src/components/inputs/country-select/country-select.tsx +1 -1
  242. package/src/components/inputs/province-select/province-select.tsx +1 -1
  243. package/src/components/layout/main-layout/main-layout.tsx +7 -5
  244. package/src/components/layout/settings-layout/settings-layout.tsx +4 -0
  245. package/src/components/layout/shell/shell.tsx +6 -6
  246. package/src/components/layout/user-menu/user-menu.tsx +12 -10
  247. package/src/components/search/search.tsx +5 -3
  248. package/src/components/table/data-table/data-table-order-by/data-table-order-by.tsx +4 -1
  249. package/src/components/table/data-table/data-table-root/data-table-root.tsx +3 -3
  250. package/src/dashboard-app/forms/form-extension-zone/form-extension-zone.tsx +1 -1
  251. package/src/dashboard-app/routes/get-route.map.tsx +36 -0
  252. package/src/hooks/api/campaigns.tsx +1 -0
  253. package/src/hooks/api/inventory.tsx +3 -0
  254. package/src/hooks/api/payments.tsx +6 -1
  255. package/src/hooks/api/refund-reasons.tsx +105 -10
  256. package/src/hooks/table/columns/index.ts +1 -0
  257. package/src/hooks/table/columns/use-refund-reason-table-columns.tsx +32 -0
  258. package/src/hooks/table/query/index.ts +1 -0
  259. package/src/hooks/table/query/use-refund-reason-table-query.tsx +32 -0
  260. package/src/hooks/use-document-direction.tsx +54 -0
  261. package/src/i18n/translations/$schema.json +118 -0
  262. package/src/i18n/translations/en.json +34 -1
  263. package/src/providers/i18n-provider/i18n-provider.tsx +9 -4
  264. package/src/routes/campaigns/campaign-detail/components/campaign-budget/campaign-budget.tsx +3 -3
  265. package/src/routes/campaigns/common/components/create-campaign-form-fields/create-campaign-form-fields.tsx +4 -1
  266. package/src/routes/categories/category-create/components/create-category-form/create-category-details.tsx +12 -3
  267. package/src/routes/categories/category-create/components/create-category-form/create-category-form.tsx +4 -3
  268. package/src/routes/categories/category-detail/components/category-organize-section/category-organize-section.tsx +1 -1
  269. package/src/routes/categories/category-edit/components/edit-category-form/edit-category-form.tsx +12 -3
  270. package/src/routes/inventory/inventory-create/components/inventory-create-form/inventory-create-form.tsx +3 -1
  271. package/src/routes/inventory/inventory-detail/components/inventory-item-variants/variants-section.tsx +1 -1
  272. package/src/routes/inventory/inventory-detail/components/location-levels-table/use-location-list-table-columns.tsx +7 -0
  273. package/src/routes/inventory/inventory-detail/components/manage-locations/components/location-item.tsx +2 -2
  274. package/src/routes/inventory/inventory-detail/components/manage-locations/components/location-search-input.tsx +34 -0
  275. package/src/routes/inventory/inventory-detail/components/manage-locations/components/manage-locations-form.tsx +127 -140
  276. package/src/routes/locations/location-edit/components/edit-location-form/edit-location-form.tsx +1 -1
  277. package/src/routes/locations/location-list/location-list.tsx +10 -4
  278. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-option-details-form.tsx +4 -1
  279. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-form.tsx +3 -1
  280. package/src/routes/locations/location-service-zone-shipping-option-edit/components/edit-region-form/edit-shipping-option-form.tsx +7 -2
  281. package/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx +7 -2
  282. package/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx +2 -1
  283. package/src/routes/orders/order-create-edit/components/order-edit-create-form/order-edit-create-form.tsx +2 -1
  284. package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-create-form.tsx +2 -1
  285. package/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-form.tsx +5 -1
  286. package/src/routes/orders/order-create-refund/components/create-refund-form/create-refund-form.tsx +42 -1
  287. package/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx +2 -1
  288. package/src/routes/orders/order-create-shipment/components/order-create-shipment-form/order-create-shipment-form.tsx +2 -0
  289. package/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx +13 -5
  290. package/src/routes/orders/order-receive-return/components/order-receive-return-form/order-receive-return-form.tsx +2 -1
  291. package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-create-form.tsx +3 -1
  292. package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-details-form.tsx +8 -2
  293. package/src/routes/price-lists/price-list-edit/components/price-list-edit-form/edit-price-list-form.tsx +12 -3
  294. package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-form.tsx +10 -5
  295. package/src/routes/product-variants/product-variant-edit/components/product-edit-variant-form/product-edit-variant-form.tsx +4 -0
  296. package/src/routes/products/common/components/category-combobox/category-combobox.tsx +11 -11
  297. package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +3 -1
  298. package/src/routes/products/product-create-variant/components/create-product-variant-form/create-product-variant-form.tsx +10 -5
  299. package/src/routes/products/product-create-variant/components/create-product-variant-form/details-tab.tsx +6 -1
  300. package/src/routes/products/product-edit/components/edit-product-form/edit-product-form.tsx +7 -2
  301. package/src/routes/products/product-media/components/product-media-gallery/product-media-gallery.tsx +2 -2
  302. package/src/routes/products/product-stock/hooks/use-product-stock-columns.tsx +2 -1
  303. package/src/routes/profile/profile-edit/components/edit-profile-form/edit-profile-form.tsx +9 -3
  304. package/src/routes/promotions/common/edit-rules/components/rules-form-field/rules-form-field.tsx +4 -0
  305. package/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx +48 -49
  306. package/src/routes/promotions/promotion-add-campaign/promotion-add-campaign.tsx +4 -21
  307. package/src/routes/promotions/promotion-create/components/create-promotion-form/create-promotion-form.tsx +12 -3
  308. package/src/routes/promotions/promotion-edit-details/components/edit-promotion-form/edit-promotion-details-form.tsx +6 -1
  309. package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/index.ts +1 -0
  310. package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/refund-reason-create-form.tsx +131 -0
  311. package/src/routes/refund-reasons/refund-reason-create/index.ts +1 -0
  312. package/src/routes/refund-reasons/refund-reason-create/refund-reason-create.tsx +10 -0
  313. package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/index.ts +1 -0
  314. package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/refund-reason-edit-form.tsx +119 -0
  315. package/src/routes/refund-reasons/refund-reason-edit/index.ts +1 -0
  316. package/src/routes/refund-reasons/refund-reason-edit/refund-reason-edit.tsx +33 -0
  317. package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/index.ts +1 -0
  318. package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-list-table.tsx +138 -0
  319. package/src/routes/refund-reasons/refund-reason-list/index.ts +2 -0
  320. package/src/routes/refund-reasons/refund-reason-list/loader.ts +16 -0
  321. package/src/routes/refund-reasons/refund-reason-list/refund-reason-list.tsx +21 -0
  322. package/src/routes/regions/region-create/components/create-region-form/create-region-form.tsx +29 -12
  323. package/src/routes/regions/region-create/region-create.tsx +1 -10
  324. package/src/routes/regions/region-edit/components/edit-region-form/edit-region-form.tsx +32 -10
  325. package/src/routes/regions/region-edit/region-edit.tsx +0 -5
  326. package/src/routes/reservations/reservation-detail/components/edit-reservation/components/edit-reservation-form.tsx +3 -1
  327. package/src/routes/sales-channels/sales-channel-create/components/create-sales-channel-form/create-sales-channel-form.tsx +2 -0
  328. package/src/routes/sales-channels/sales-channel-edit/components/edit-sales-channel-form/edit-sales-channel-form.tsx +2 -0
  329. package/src/routes/store/store-add-currencies/components/add-currencies-form/add-currencies-form.tsx +2 -0
  330. package/src/routes/store/store-edit/components/edit-store-form/edit-store-form.tsx +7 -2
  331. package/src/routes/tax-regions/tax-region-tax-override-create/components/tax-region-override-create-form/tax-region-tax-override-create.tsx +3 -1
  332. package/src/routes/tax-regions/tax-region-tax-override-edit/components/tax-region-tax-override-edit-form/tax-region-tax-override-edit-form.tsx +3 -1
  333. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-timeline-section/workflow-execution-timeline-section.tsx +3 -2
  334. package/dist/chunk-ZCZL3STK.mjs +0 -64
  335. package/dist/manage-locations-3TBIUSHP.mjs +0 -236
  336. package/dist/region-edit-JWQWCLM3.mjs +0 -285
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ordersQueryKeys
3
- } from "./chunk-KSRI5LOF.mjs";
3
+ } from "./chunk-U25RCIX2.mjs";
4
4
  import {
5
5
  queryClient
6
6
  } from "./chunk-FXYH54JP.mjs";
@@ -216,15 +216,54 @@ var useMarkPaymentCollectionAsPaid = (orderId, paymentCollectionId, options) =>
216
216
  });
217
217
  };
218
218
 
219
- // src/hooks/api/refund-reasons.tsx
220
- import { useQuery as useQuery6 } from "@tanstack/react-query";
221
- var REFUND_REASON_QUERY_KEY = "refund-reason";
222
- var refundReasonQueryKeys = queryKeysFactory(REFUND_REASON_QUERY_KEY);
219
+ // src/hooks/api/payments.tsx
220
+ import {
221
+ useMutation as useMutation5,
222
+ useQuery as useQuery6
223
+ } from "@tanstack/react-query";
224
+ var PAYMENT_QUERY_KEY = "payment";
225
+ var paymentQueryKeys = queryKeysFactory(PAYMENT_QUERY_KEY);
226
+ var PAYMENT_PROVIDERS_QUERY_KEY = "payment_providers";
227
+ var paymentProvidersQueryKeys = queryKeysFactory(
228
+ PAYMENT_PROVIDERS_QUERY_KEY
229
+ );
230
+ var useCapturePayment = (orderId, paymentId, options) => {
231
+ return useMutation5({
232
+ mutationFn: (payload) => sdk.admin.payment.capture(paymentId, payload),
233
+ onSuccess: (data, variables, context) => {
234
+ queryClient.invalidateQueries({
235
+ queryKey: ordersQueryKeys.details()
236
+ });
237
+ queryClient.invalidateQueries({
238
+ queryKey: ordersQueryKeys.preview(orderId)
239
+ });
240
+ options?.onSuccess?.(data, variables, context);
241
+ },
242
+ ...options
243
+ });
244
+ };
245
+ var useRefundPayment = (orderId, paymentId, options) => {
246
+ return useMutation5({
247
+ mutationFn: (payload) => sdk.admin.payment.refund(paymentId, payload),
248
+ onSuccess: (data, variables, context) => {
249
+ queryClient.invalidateQueries({
250
+ queryKey: ordersQueryKeys.details()
251
+ });
252
+ queryClient.invalidateQueries({
253
+ queryKey: ordersQueryKeys.preview(orderId)
254
+ });
255
+ options?.onSuccess?.(data, variables, context);
256
+ },
257
+ ...options
258
+ });
259
+ };
223
260
 
224
261
  export {
225
262
  notificationQueryKeys,
226
263
  useNotifications,
227
264
  useMarkPaymentCollectionAsPaid,
265
+ useCapturePayment,
266
+ useRefundPayment,
228
267
  usePlugins,
229
268
  productVariantQueryKeys,
230
269
  useVariants,
@@ -9,7 +9,7 @@ import {
9
9
  import {
10
10
  _DataTable,
11
11
  useDataTable
12
- } from "./chunk-7VJK6HNE.mjs";
12
+ } from "./chunk-EYL2JACT.mjs";
13
13
  import {
14
14
  ChipGroup
15
15
  } from "./chunk-X5VECN6S.mjs";
@@ -23,6 +23,8 @@ var SwitchBox = ({
23
23
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
24
24
  Switch,
25
25
  {
26
+ className: "rtl:rotate-180",
27
+ dir: "ltr",
26
28
  ...field,
27
29
  checked: value,
28
30
  onCheckedChange: (e) => {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getLinkedFields
3
- } from "./chunk-RVOPC44F.mjs";
3
+ } from "./chunk-7DFTLGA5.mjs";
4
4
 
5
5
  // src/routes/products/product-detail/constants.ts
6
6
  var PRODUCT_DETAIL_FIELDS = getLinkedFields(
@@ -77,6 +77,7 @@ var useAddOrRemoveCampaignPromotions = (id, options) => {
77
77
  onSuccess: (data, variables, context) => {
78
78
  queryClient.invalidateQueries({ queryKey: campaignsQueryKeys.details() });
79
79
  queryClient.invalidateQueries({ queryKey: promotionsQueryKeys.lists() });
80
+ queryClient.invalidateQueries({ queryKey: promotionsQueryKeys.details() });
80
81
  options?.onSuccess?.(data, variables, context);
81
82
  },
82
83
  ...options
@@ -1,6 +1,12 @@
1
1
  import {
2
2
  CreateCampaignFormFields
3
- } from "./chunk-J5E7MQSS.mjs";
3
+ } from "./chunk-CY33DS7K.mjs";
4
+ import {
5
+ useComboboxData
6
+ } from "./chunk-HFB3OQXI.mjs";
7
+ import {
8
+ Combobox
9
+ } from "./chunk-OFN7DIZA.mjs";
4
10
  import {
5
11
  KeyboundForm
6
12
  } from "./chunk-6HTZNHPT.mjs";
@@ -8,19 +14,26 @@ import {
8
14
  RouteDrawer,
9
15
  useRouteModal
10
16
  } from "./chunk-4TC5YS65.mjs";
17
+ import {
18
+ useDocumentDirection
19
+ } from "./chunk-S4DMV3ZT.mjs";
11
20
  import {
12
21
  Form
13
22
  } from "./chunk-OBQI23QM.mjs";
14
23
  import {
24
+ useCampaign,
15
25
  useUpdatePromotion
16
- } from "./chunk-ZODJNBAV.mjs";
26
+ } from "./chunk-R2G2B47Y.mjs";
27
+ import {
28
+ sdk
29
+ } from "./chunk-DEQUVHHE.mjs";
17
30
 
18
31
  // src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx
19
32
  import { zodResolver } from "@hookform/resolvers/zod";
20
- import { Button, RadioGroup, Select, Text as Text2, toast } from "@medusajs/ui";
33
+ import { Button, RadioGroup, toast } from "@medusajs/ui";
21
34
  import { useEffect } from "react";
22
35
  import { useForm, useWatch } from "react-hook-form";
23
- import { Trans, useTranslation as useTranslation2 } from "react-i18next";
36
+ import { useTranslation as useTranslation2 } from "react-i18next";
24
37
  import * as zod from "zod";
25
38
 
26
39
  // src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/campaign-details.tsx
@@ -83,10 +96,11 @@ var EditPromotionSchema = zod.object({
83
96
  });
84
97
  var AddCampaignPromotionFields = ({
85
98
  form,
86
- campaigns,
87
- withNewCampaign = true
99
+ withNewCampaign = true,
100
+ promotionCurrencyCode
88
101
  }) => {
89
102
  const { t } = useTranslation2();
103
+ const direction = useDocumentDirection();
90
104
  const watchCampaignId = useWatch({
91
105
  control: form.control,
92
106
  name: "campaign_id"
@@ -95,7 +109,25 @@ var AddCampaignPromotionFields = ({
95
109
  control: form.control,
96
110
  name: "campaign_choice"
97
111
  });
98
- const selectedCampaign = campaigns.find((c) => c.id === watchCampaignId);
112
+ const campaignsCombobox = useComboboxData({
113
+ queryFn: (params) => sdk.admin.campaign.list({
114
+ ...params
115
+ }),
116
+ queryKey: ["campaigns"],
117
+ getOptions: (data) => data.campaigns.map((campaign) => ({
118
+ label: campaign.name.toUpperCase(),
119
+ value: campaign.id,
120
+ disabled: campaign.budget?.currency_code && campaign.budget?.currency_code?.toLowerCase() !== promotionCurrencyCode?.toLowerCase()
121
+ // also cannot add promotion which doesn't have currency defined to a campaign with a currency amount budget
122
+ }))
123
+ });
124
+ const { campaign: selectedCampaign } = useCampaign(
125
+ watchCampaignId,
126
+ void 0,
127
+ {
128
+ enabled: !!watchCampaignId
129
+ }
130
+ );
99
131
  return /* @__PURE__ */ jsxs2("div", { className: "flex flex-col gap-y-8", children: [
100
132
  /* @__PURE__ */ jsx2(
101
133
  Form.Field,
@@ -108,6 +140,7 @@ var AddCampaignPromotionFields = ({
108
140
  /* @__PURE__ */ jsx2(Form.Control, { children: /* @__PURE__ */ jsxs2(
109
141
  RadioGroup,
110
142
  {
143
+ dir: direction,
111
144
  className: "grid grid-cols-1 gap-3",
112
145
  ...field,
113
146
  value: field.value,
@@ -154,39 +187,20 @@ var AddCampaignPromotionFields = ({
154
187
  {
155
188
  control: form.control,
156
189
  name: "campaign_id",
157
- render: ({ field: { onChange, ref, ...field } }) => {
190
+ render: ({ field: { onChange, ...field } }) => {
158
191
  return /* @__PURE__ */ jsxs2(Form.Item, { children: [
159
- /* @__PURE__ */ jsx2(Form.Label, { children: t("promotions.form.campaign.existing.title") }),
160
- /* @__PURE__ */ jsx2(Form.Control, { children: /* @__PURE__ */ jsxs2(Select, { onValueChange: onChange, ...field, children: [
161
- /* @__PURE__ */ jsx2(Select.Trigger, { ref, children: /* @__PURE__ */ jsx2(Select.Value, {}) }),
162
- /* @__PURE__ */ jsxs2(Select.Content, { children: [
163
- !campaigns.length && /* @__PURE__ */ jsxs2("div", { className: "flex h-[120px] flex-col items-center justify-center gap-2 p-2", children: [
164
- /* @__PURE__ */ jsx2("span", { className: "txt-small text-ui-fg-subtle font-medium", children: t(
165
- "promotions.form.campaign.existing.placeholder.title"
166
- ) }),
167
- /* @__PURE__ */ jsx2("span", { className: "txt-small text-ui-fg-muted", children: t(
168
- "promotions.form.campaign.existing.placeholder.desc"
169
- ) })
170
- ] }),
171
- campaigns.map((c) => /* @__PURE__ */ jsx2(Select.Item, { value: c.id, children: c.name?.toUpperCase() }, c.id))
172
- ] })
173
- ] }) }),
174
- /* @__PURE__ */ jsx2(
175
- Text2,
192
+ /* @__PURE__ */ jsx2(Form.Label, { tooltip: t("campaigns.fields.campaign_id.hint"), children: t("promotions.form.campaign.existing.title") }),
193
+ /* @__PURE__ */ jsx2(Form.Control, { children: /* @__PURE__ */ jsx2(
194
+ Combobox,
176
195
  {
177
- size: "small",
178
- leading: "compact",
179
- className: "text-ui-fg-subtle",
180
- children: /* @__PURE__ */ jsx2(
181
- Trans,
182
- {
183
- t,
184
- i18nKey: "campaigns.fields.campaign_id.hint",
185
- components: [/* @__PURE__ */ jsx2("br", {}, "break")]
186
- }
187
- )
196
+ dir: direction,
197
+ options: campaignsCombobox.options,
198
+ searchValue: campaignsCombobox.searchValue,
199
+ onSearchValueChange: campaignsCombobox.onSearchValueChange,
200
+ onChange,
201
+ ...field
188
202
  }
189
- ),
203
+ ) }),
190
204
  /* @__PURE__ */ jsx2(Form.ErrorMessage, {})
191
205
  ] });
192
206
  }
@@ -197,8 +211,7 @@ var AddCampaignPromotionFields = ({
197
211
  ] });
198
212
  };
199
213
  var AddCampaignPromotionForm = ({
200
- promotion,
201
- campaigns
214
+ promotion
202
215
  }) => {
203
216
  const { t } = useTranslation2();
204
217
  const { handleSuccess } = useRouteModal();
@@ -249,8 +262,8 @@ var AddCampaignPromotionForm = ({
249
262
  AddCampaignPromotionFields,
250
263
  {
251
264
  form,
252
- campaigns,
253
- withNewCampaign: false
265
+ withNewCampaign: false,
266
+ promotionCurrencyCode: promotion.application_method?.currency_code
254
267
  }
255
268
  ) }),
256
269
  /* @__PURE__ */ jsx2(RouteDrawer.Footer, { children: /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-end gap-x-2", children: [
@@ -1,12 +1,12 @@
1
1
  import {
2
2
  ordersQueryKeys
3
- } from "./chunk-KSRI5LOF.mjs";
3
+ } from "./chunk-U25RCIX2.mjs";
4
4
  import {
5
5
  reservationItemsQueryKeys
6
- } from "./chunk-YI4CZGTU.mjs";
6
+ } from "./chunk-ITJEYJNB.mjs";
7
7
  import {
8
8
  inventoryItemsQueryKeys
9
- } from "./chunk-X4X5KUGQ.mjs";
9
+ } from "./chunk-4QUHWHBD.mjs";
10
10
  import {
11
11
  queryClient
12
12
  } from "./chunk-FXYH54JP.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  salesChannelsQueryKeys
3
- } from "./chunk-4Q4LIFFO.mjs";
3
+ } from "./chunk-XP3BY6G6.mjs";
4
4
  import {
5
5
  queryClient
6
6
  } from "./chunk-FXYH54JP.mjs";
@@ -0,0 +1,35 @@
1
+ // src/hooks/use-document-direction.tsx
2
+ import { useEffect, useState } from "react";
3
+ var useDocumentDirection = () => {
4
+ const [direction, setDirection] = useState(() => {
5
+ if (typeof document !== "undefined") {
6
+ return document.documentElement.getAttribute("dir") || void 0;
7
+ }
8
+ return void 0;
9
+ });
10
+ useEffect(() => {
11
+ if (typeof document === "undefined") {
12
+ return;
13
+ }
14
+ const observer = new MutationObserver((mutations) => {
15
+ mutations.forEach((mutation) => {
16
+ if (mutation.type === "attributes" && mutation.attributeName === "dir" && mutation.target === document.documentElement) {
17
+ const newDirection = document.documentElement.getAttribute("dir");
18
+ setDirection(newDirection || void 0);
19
+ }
20
+ });
21
+ });
22
+ observer.observe(document.documentElement, {
23
+ attributes: true,
24
+ attributeFilter: ["dir"]
25
+ });
26
+ return () => {
27
+ observer.disconnect();
28
+ };
29
+ }, []);
30
+ return direction;
31
+ };
32
+
33
+ export {
34
+ useDocumentDirection
35
+ };
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-DG7J63J2.mjs";
11
11
  import {
12
12
  ActionMenu
13
- } from "./chunk-3NJTXRIY.mjs";
13
+ } from "./chunk-OZPB6JBL.mjs";
14
14
  import {
15
15
  useDeleteTaxRate
16
16
  } from "./chunk-X6DSNTTX.mjs";
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  LocalizedTablePagination,
3
3
  useDeleteTaxRateAction
4
- } from "./chunk-5NQ3X2JI.mjs";
4
+ } from "./chunk-SNDSWB6B.mjs";
5
5
  import {
6
6
  TaxRateRuleReferenceType
7
7
  } from "./chunk-ENNEJRBR.mjs";
@@ -13,7 +13,7 @@ import {
13
13
  } from "./chunk-YEDAFXMB.mjs";
14
14
  import {
15
15
  DataTableOrderBy
16
- } from "./chunk-AOFGTNG6.mjs";
16
+ } from "./chunk-HQKGZADC.mjs";
17
17
  import {
18
18
  NoRecords,
19
19
  NoResults
@@ -23,7 +23,7 @@ import {
23
23
  } from "./chunk-LPEUYMRK.mjs";
24
24
  import {
25
25
  ActionMenu
26
- } from "./chunk-3NJTXRIY.mjs";
26
+ } from "./chunk-OZPB6JBL.mjs";
27
27
  import {
28
28
  useProductTypes
29
29
  } from "./chunk-B4GODIOW.mjs";
@@ -32,7 +32,7 @@ import {
32
32
  } from "./chunk-GRT22PE5.mjs";
33
33
  import {
34
34
  useProducts
35
- } from "./chunk-X4X5KUGQ.mjs";
35
+ } from "./chunk-4QUHWHBD.mjs";
36
36
 
37
37
  // src/routes/tax-regions/common/components/tax-rate-line/tax-rate-line.tsx
38
38
  import { PencilSquare, Trash } from "@medusajs/icons";
@@ -12,7 +12,7 @@ import {
12
12
  useCombinedRefs,
13
13
  useDataGridCell,
14
14
  useDataGridCellError
15
- } from "./chunk-UWJBDOQD.mjs";
15
+ } from "./chunk-NKVMOKZA.mjs";
16
16
  import {
17
17
  currencies
18
18
  } from "./chunk-DK4WIVY6.mjs";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  reservationItemsQueryKeys
3
- } from "./chunk-YI4CZGTU.mjs";
3
+ } from "./chunk-ITJEYJNB.mjs";
4
4
  import {
5
5
  inventoryItemsQueryKeys
6
- } from "./chunk-X4X5KUGQ.mjs";
6
+ } from "./chunk-4QUHWHBD.mjs";
7
7
  import {
8
8
  queryClient
9
9
  } from "./chunk-FXYH54JP.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  getPromotionStatus
3
- } from "./chunk-JIQQKKLO.mjs";
3
+ } from "./chunk-IP2QPPWC.mjs";
4
4
  import {
5
5
  TextCell,
6
6
  TextHeader
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  LocalizedTablePagination,
3
3
  TaxRegionCard
4
- } from "./chunk-5NQ3X2JI.mjs";
4
+ } from "./chunk-SNDSWB6B.mjs";
5
5
  import {
6
6
  DataTableOrderBy
7
- } from "./chunk-AOFGTNG6.mjs";
7
+ } from "./chunk-HQKGZADC.mjs";
8
8
  import {
9
9
  NoRecords,
10
10
  NoResults
@@ -22,7 +22,7 @@ import {
22
22
  SaveViewDialog,
23
23
  useViewConfiguration,
24
24
  useViewConfigurations
25
- } from "./chunk-YM4QJC6Y.mjs";
25
+ } from "./chunk-7GBCLBMX.mjs";
26
26
  import {
27
27
  useQueryParams
28
28
  } from "./chunk-C76H5USB.mjs";
@@ -3,14 +3,17 @@ import {
3
3
  } from "./chunk-HFB3OQXI.mjs";
4
4
  import {
5
5
  Combobox
6
- } from "./chunk-2PMSBTXI.mjs";
6
+ } from "./chunk-OFN7DIZA.mjs";
7
+ import {
8
+ useDocumentDirection
9
+ } from "./chunk-S4DMV3ZT.mjs";
7
10
  import {
8
11
  Form
9
12
  } from "./chunk-OBQI23QM.mjs";
10
13
  import {
11
14
  usePromotionRuleAttributes,
12
15
  usePromotionRules
13
- } from "./chunk-ZODJNBAV.mjs";
16
+ } from "./chunk-R2G2B47Y.mjs";
14
17
  import {
15
18
  useStore
16
19
  } from "./chunk-V2LANK5S.mjs";
@@ -186,6 +189,7 @@ var RulesFormField = ({
186
189
  }) => {
187
190
  const initialRulesSet = useRef(false);
188
191
  const { t } = useTranslation2();
192
+ const direction = useDocumentDirection();
189
193
  const formData = form.getValues();
190
194
  const { attributes } = usePromotionRuleAttributes(
191
195
  ruleType,
@@ -308,6 +312,7 @@ var RulesFormField = ({
308
312
  /* @__PURE__ */ jsx2(Form.Control, { children: !disabled ? /* @__PURE__ */ jsxs2(
309
313
  Select,
310
314
  {
315
+ dir: direction,
311
316
  ...fieldProps,
312
317
  onValueChange,
313
318
  disabled: fieldRule.required,
@@ -371,6 +376,7 @@ var RulesFormField = ({
371
376
  /* @__PURE__ */ jsx2(Form.Control, { children: !disabled ? /* @__PURE__ */ jsxs2(
372
377
  Select,
373
378
  {
379
+ dir: direction,
374
380
  ...fieldProps,
375
381
  disabled: !fieldRule.attribute,
376
382
  onValueChange: onChange,
@@ -0,0 +1,113 @@
1
+ // src/components/common/infinite-list/infinite-list.tsx
2
+ import { useInfiniteQuery } from "@tanstack/react-query";
3
+ import { useEffect, useMemo, useRef } from "react";
4
+ import { toast } from "@medusajs/ui";
5
+ import { Spinner } from "@medusajs/icons";
6
+ import { jsx, jsxs } from "react/jsx-runtime";
7
+ var InfiniteList = ({
8
+ queryKey,
9
+ queryFn,
10
+ queryOptions,
11
+ renderItem,
12
+ renderEmpty,
13
+ responseKey,
14
+ pageSize = 20
15
+ }) => {
16
+ const {
17
+ data,
18
+ error,
19
+ fetchNextPage,
20
+ fetchPreviousPage,
21
+ hasPreviousPage,
22
+ hasNextPage,
23
+ isFetching,
24
+ isPending
25
+ } = useInfiniteQuery({
26
+ queryKey,
27
+ queryFn: async ({ pageParam = 0 }) => {
28
+ return await queryFn({
29
+ limit: pageSize,
30
+ offset: pageParam
31
+ });
32
+ },
33
+ initialPageParam: 0,
34
+ maxPages: 5,
35
+ getNextPageParam: (lastPage) => {
36
+ const moreItemsExist = lastPage.count > lastPage.offset + lastPage.limit;
37
+ return moreItemsExist ? lastPage.offset + lastPage.limit : void 0;
38
+ },
39
+ getPreviousPageParam: (firstPage) => {
40
+ const moreItemsExist = firstPage.offset !== 0;
41
+ return moreItemsExist ? Math.max(firstPage.offset - firstPage.limit, 0) : void 0;
42
+ },
43
+ ...queryOptions
44
+ });
45
+ const items = useMemo(() => {
46
+ return data?.pages.flatMap((p) => p[responseKey]) ?? [];
47
+ }, [data, responseKey]);
48
+ const parentRef = useRef(null);
49
+ const startObserver = useRef();
50
+ const endObserver = useRef();
51
+ useEffect(() => {
52
+ if (isPending) {
53
+ return;
54
+ }
55
+ if (!isFetching) {
56
+ startObserver.current = new IntersectionObserver(
57
+ (entries) => {
58
+ if (entries[0].isIntersecting && hasPreviousPage) {
59
+ startObserver.current?.disconnect();
60
+ fetchPreviousPage();
61
+ }
62
+ },
63
+ {
64
+ threshold: 0.5
65
+ }
66
+ );
67
+ endObserver.current = new IntersectionObserver(
68
+ (entries) => {
69
+ if (entries[0].isIntersecting && hasNextPage) {
70
+ endObserver.current?.disconnect();
71
+ fetchNextPage();
72
+ }
73
+ },
74
+ {
75
+ threshold: 0.5
76
+ }
77
+ );
78
+ if (parentRef.current?.firstChild) {
79
+ startObserver.current?.observe(parentRef.current.firstChild);
80
+ }
81
+ if (parentRef.current?.lastChild) {
82
+ endObserver.current?.observe(parentRef.current.lastChild);
83
+ }
84
+ }
85
+ return () => {
86
+ startObserver.current?.disconnect();
87
+ endObserver.current?.disconnect();
88
+ };
89
+ }, [
90
+ fetchNextPage,
91
+ fetchPreviousPage,
92
+ hasNextPage,
93
+ hasPreviousPage,
94
+ isFetching,
95
+ isPending
96
+ ]);
97
+ useEffect(() => {
98
+ if (error) {
99
+ toast.error(error.message);
100
+ }
101
+ }, [error]);
102
+ if (isPending) {
103
+ return /* @__PURE__ */ jsx("div", { className: "flex h-full flex-col items-center justify-center", children: /* @__PURE__ */ jsx(Spinner, { className: "animate-spin" }) });
104
+ }
105
+ return /* @__PURE__ */ jsxs("div", { ref: parentRef, className: "h-full", children: [
106
+ items?.length ? items.map((item) => /* @__PURE__ */ jsx("div", { children: renderItem(item) }, item.id)) : renderEmpty(),
107
+ isFetching && /* @__PURE__ */ jsx("div", { className: "flex flex-col items-center justify-center py-4", children: /* @__PURE__ */ jsx(Spinner, { className: "animate-spin" }) })
108
+ ] });
109
+ };
110
+
111
+ export {
112
+ InfiniteList
113
+ };
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useDeleteShippingOptionType
3
- } from "./chunk-OGHQ6VJI.mjs";
3
+ } from "./chunk-PAG2HG6I.mjs";
4
4
 
5
5
  // src/routes/shipping-option-types/common/hooks/use-delete-shipping-option-type-action.tsx
6
6
  import { useNavigate } from "react-router-dom";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  productsQueryKeys
3
- } from "./chunk-X4X5KUGQ.mjs";
3
+ } from "./chunk-4QUHWHBD.mjs";
4
4
  import {
5
5
  queryClient
6
6
  } from "./chunk-FXYH54JP.mjs";
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-GLVCH422.mjs";
7
7
  import {
8
8
  useShippingOptionTableQuery
9
- } from "./chunk-OKMF4YI7.mjs";
9
+ } from "./chunk-K3OMOMRB.mjs";
10
10
  import {
11
11
  useProductTypeTableQuery
12
12
  } from "./chunk-TDK3JDOB.mjs";
@@ -28,7 +28,7 @@ import {
28
28
  import {
29
29
  _DataTable,
30
30
  useDataTable
31
- } from "./chunk-7VJK6HNE.mjs";
31
+ } from "./chunk-EYL2JACT.mjs";
32
32
  import {
33
33
  useShippingOptionTableFilters
34
34
  } from "./chunk-3C6WQ7NH.mjs";
@@ -37,7 +37,7 @@ import {
37
37
  } from "./chunk-CBSCX7RE.mjs";
38
38
  import {
39
39
  useProductTableFilters
40
- } from "./chunk-Y4YXZY7R.mjs";
40
+ } from "./chunk-5WMJLYEP.mjs";
41
41
  import {
42
42
  StackedDrawer,
43
43
  StackedFocusModal
@@ -54,7 +54,7 @@ import {
54
54
  import {
55
55
  useProduct,
56
56
  useProducts
57
- } from "./chunk-X4X5KUGQ.mjs";
57
+ } from "./chunk-4QUHWHBD.mjs";
58
58
 
59
59
  // src/routes/tax-regions/common/components/target-form/target-form.tsx
60
60
  import { Button, Checkbox } from "@medusajs/ui";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  returnsQueryKeys
3
- } from "./chunk-RMEITCLS.mjs";
3
+ } from "./chunk-ZSDEVTFT.mjs";
4
4
  import {
5
5
  ordersQueryKeys
6
- } from "./chunk-KSRI5LOF.mjs";
6
+ } from "./chunk-U25RCIX2.mjs";
7
7
  import {
8
8
  queryClient
9
9
  } from "./chunk-FXYH54JP.mjs";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ActionMenu
3
- } from "./chunk-3NJTXRIY.mjs";
3
+ } from "./chunk-OZPB6JBL.mjs";
4
4
 
5
5
  // src/components/common/file-preview/file-preview.tsx
6
6
  import { ArrowDownTray, Spinner } from "@medusajs/icons";
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  ordersQueryKeys
3
- } from "./chunk-KSRI5LOF.mjs";
3
+ } from "./chunk-U25RCIX2.mjs";
4
4
  import {
5
5
  queryClient
6
6
  } from "./chunk-FXYH54JP.mjs";