@medusajs/dashboard 2.10.4-preview-20250928000328 → 2.10.4-snapshot-20250922062130

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 (346) hide show
  1. package/dist/{add-campaign-promotions-3BB3BLFD.mjs → add-campaign-promotions-FE4BXGVN.mjs} +6 -7
  2. package/dist/{adjust-inventory-OIJTAKHP.mjs → adjust-inventory-WBEBMJN7.mjs} +1 -1
  3. package/dist/{api-key-management-create-XDQHUNWK.mjs → api-key-management-create-VXPZX2Q5.mjs} +3 -3
  4. package/dist/{api-key-management-detail-ZQLQKGYF.mjs → api-key-management-detail-SAVBCKX7.mjs} +14 -15
  5. package/dist/{api-key-management-edit-2SUSKI7T.mjs → api-key-management-edit-7CGMSHAY.mjs} +3 -3
  6. package/dist/{api-key-management-list-C2WM4PHC.mjs → api-key-management-list-5DI3L4DV.mjs} +7 -8
  7. package/dist/{api-key-management-sales-channels-MVHVMPF6.mjs → api-key-management-sales-channels-WL5L5XWM.mjs} +5 -6
  8. package/dist/app.css +34 -89
  9. package/dist/app.js +5633 -6732
  10. package/dist/app.mjs +15 -17
  11. package/dist/{campaign-budget-edit-UWGCET5Z.mjs → campaign-budget-edit-OXNTSPGE.mjs} +1 -1
  12. package/dist/{campaign-configuration-WWCCFNYQ.mjs → campaign-configuration-Z5HA2DG3.mjs} +1 -1
  13. package/dist/{campaign-create-CQ3XBHSY.mjs → campaign-create-AVBNHFC2.mjs} +3 -4
  14. package/dist/{campaign-detail-LASOFZ2O.mjs → campaign-detail-KTOLZNTA.mjs} +21 -22
  15. package/dist/{campaign-edit-R43GXNET.mjs → campaign-edit-3TDW52BO.mjs} +1 -1
  16. package/dist/{campaign-list-CDO5PRTL.mjs → campaign-list-G4MD3RPU.mjs} +6 -7
  17. package/dist/{categories-metadata-HUIY6V4F.mjs → categories-metadata-GXWJ3HOG.mjs} +12 -13
  18. package/dist/{category-create-GMFWRFT7.mjs → category-create-FOVB5MJ4.mjs} +16 -38
  19. package/dist/{category-detail-ZJJBYVFX.mjs → category-detail-ENUI5EFL.mjs} +18 -19
  20. package/dist/{category-edit-HCHER73V.mjs → category-edit-O4ZSANE5.mjs} +16 -36
  21. package/dist/{category-list-IXW2NWWJ.mjs → category-list-UI6W5KF5.mjs} +7 -8
  22. package/dist/{category-organize-LRQKM4LA.mjs → category-organize-BW3YOPUS.mjs} +2 -2
  23. package/dist/{category-products-7N4TITQ4.mjs → category-products-ZG5QDWSW.mjs} +14 -15
  24. package/dist/{chunk-2PGNKUXS.mjs → chunk-2HKRIUW4.mjs} +1 -1
  25. package/dist/{chunk-KTL6E2WT.mjs → chunk-2LPGQWPV.mjs} +1 -1
  26. package/dist/{chunk-OFN7DIZA.mjs → chunk-2PMSBTXI.mjs} +13 -17
  27. package/dist/{chunk-GIZFNLKK.mjs → chunk-2RQLKDBF.mjs} +96 -103
  28. package/dist/{chunk-AN5IILM2.mjs → chunk-2YP2ZNKR.mjs} +1 -1
  29. package/dist/{chunk-OZPB6JBL.mjs → chunk-3NJTXRIY.mjs} +1 -5
  30. package/dist/{chunk-XP3BY6G6.mjs → chunk-4Q4LIFFO.mjs} +1 -1
  31. package/dist/{chunk-RGP3IXX4.mjs → chunk-4RG7UJCT.mjs} +1 -1
  32. package/dist/{chunk-MSOFJHH3.mjs → chunk-5M5ZVAWU.mjs} +2 -2
  33. package/dist/{chunk-SNDSWB6B.mjs → chunk-5NQ3X2JI.mjs} +1 -1
  34. package/dist/{chunk-CXTAH75K.mjs → chunk-5WKYR6PY.mjs} +1 -1
  35. package/dist/{chunk-XR7I5HGZ.mjs → chunk-6AGMMT5H.mjs} +4 -4
  36. package/dist/{chunk-YSFTQA6Y.mjs → chunk-6IZUCU7K.mjs} +2 -2
  37. package/dist/{chunk-FXG2Z3QT.mjs → chunk-74K7HGNI.mjs} +2 -3
  38. package/dist/{chunk-EYL2JACT.mjs → chunk-7VJK6HNE.mjs} +4 -4
  39. package/dist/{chunk-U4R5MBF2.mjs → chunk-7YZF3THS.mjs} +1 -1
  40. package/dist/{chunk-HQKGZADC.mjs → chunk-AOFGTNG6.mjs} +1 -6
  41. package/dist/{chunk-EYTETK3W.mjs → chunk-BFNH5UWD.mjs} +1 -1
  42. package/dist/chunk-BKJC5BGQ.mjs +53 -0
  43. package/dist/{chunk-UKX2FFFV.mjs → chunk-CK3VFTZM.mjs} +2 -2
  44. package/dist/{chunk-PRLQLEEQ.mjs → chunk-D7H6ZNK4.mjs} +0 -2
  45. package/dist/{chunk-SQFZWNYA.mjs → chunk-EE7SOCEQ.mjs} +4 -4
  46. package/dist/{chunk-PGTXMCSV.mjs → chunk-EFA7S5L3.mjs} +1 -1
  47. package/dist/{chunk-P2O6XTD4.mjs → chunk-FPJBF7VS.mjs} +1 -1
  48. package/dist/{chunk-V6JXTITD.mjs → chunk-GB7CZNXI.mjs} +2 -2
  49. package/dist/{chunk-RF75BZNF.mjs → chunk-HUX22ZHT.mjs} +3 -3
  50. package/dist/{chunk-7DFTLGA5.mjs → chunk-IRJKUFJU.mjs} +682 -623
  51. package/dist/{chunk-CY33DS7K.mjs → chunk-J5E7MQSS.mjs} +0 -6
  52. package/dist/{chunk-DKOCYXB5.mjs → chunk-JELVERJM.mjs} +3 -40
  53. package/dist/{chunk-7JJTWGHU.mjs → chunk-JHXKKOHO.mjs} +15 -49
  54. package/dist/{chunk-IP2QPPWC.mjs → chunk-KMUDF36P.mjs} +1 -1
  55. package/dist/{chunk-U25RCIX2.mjs → chunk-KSRI5LOF.mjs} +2 -2
  56. package/dist/{chunk-QPLPGRYF.mjs → chunk-LAWIWR7K.mjs} +1 -1
  57. package/dist/{chunk-HWKLNKOY.mjs → chunk-LBIOZZPA.mjs} +1 -1
  58. package/dist/{chunk-NY6I2FYO.mjs → chunk-NCR5UWRI.mjs} +1 -1
  59. package/dist/{chunk-VWQYN2RW.mjs → chunk-NRBOPOMS.mjs} +1 -1
  60. package/dist/{chunk-TKZK3YPU.mjs → chunk-O74UDEWT.mjs} +1 -1
  61. package/dist/{chunk-PAG2HG6I.mjs → chunk-OGHQ6VJI.mjs} +5 -44
  62. package/dist/{chunk-LKVQ5YC6.mjs → chunk-OHSRRFGN.mjs} +1 -1
  63. package/dist/{chunk-K3OMOMRB.mjs → chunk-OKMF4YI7.mjs} +0 -25
  64. package/dist/{chunk-MLNUGLGT.mjs → chunk-Q5DI5VYN.mjs} +1 -1
  65. package/dist/{chunk-LMRZMI7O.mjs → chunk-QGCKTVQX.mjs} +1 -1
  66. package/dist/{chunk-VI7MI3US.mjs → chunk-R2NWOCML.mjs} +2 -8
  67. package/dist/{chunk-ZSDEVTFT.mjs → chunk-RMEITCLS.mjs} +1 -1
  68. package/dist/{chunk-IL5IMREK.mjs → chunk-S2UEWRDA.mjs} +49 -59
  69. package/dist/{chunk-NFQXNOP7.mjs → chunk-S45XMWVD.mjs} +1 -1
  70. package/dist/{chunk-IRO6DO7J.mjs → chunk-SCBXRJPV.mjs} +1 -1
  71. package/dist/{chunk-RBDAWRFF.mjs → chunk-SMHXCFRS.mjs} +41 -54
  72. package/dist/{chunk-IVZ6BMDB.mjs → chunk-T7G2CURS.mjs} +0 -1
  73. package/dist/{chunk-7GBCLBMX.mjs → chunk-UNM3LPTG.mjs} +12 -25
  74. package/dist/{chunk-NKVMOKZA.mjs → chunk-UWJBDOQD.mjs} +29 -41
  75. package/dist/{chunk-4QUHWHBD.mjs → chunk-X4X5KUGQ.mjs} +0 -3
  76. package/dist/{chunk-K2HM7KXJ.mjs → chunk-XGJ5DXXG.mjs} +12 -12
  77. package/dist/{chunk-ZCARHA6C.mjs → chunk-XKXNQ2KV.mjs} +1 -1
  78. package/dist/{chunk-5WMJLYEP.mjs → chunk-Y4YXZY7R.mjs} +2 -2
  79. package/dist/{chunk-ITJEYJNB.mjs → chunk-YI4CZGTU.mjs} +1 -1
  80. package/dist/{chunk-AXXGAOQL.mjs → chunk-YWNHMIEQ.mjs} +2 -2
  81. package/dist/chunk-ZCZL3STK.mjs +64 -0
  82. package/dist/{chunk-R2G2B47Y.mjs → chunk-ZODJNBAV.mjs} +0 -1
  83. package/dist/{collection-add-products-WKMNYPLS.mjs → collection-add-products-2ISNNIHD.mjs} +14 -15
  84. package/dist/{collection-create-PTOF33H2.mjs → collection-create-75ZI5NDG.mjs} +2 -2
  85. package/dist/{collection-detail-NONKXELG.mjs → collection-detail-OSX6NHNQ.mjs} +16 -17
  86. package/dist/{collection-edit-WM57WXJ2.mjs → collection-edit-RD6BDDDI.mjs} +2 -2
  87. package/dist/{collection-list-3ZHLS2LP.mjs → collection-list-MPIYSHQJ.mjs} +18 -19
  88. package/dist/{collection-metadata-J6P3K7U6.mjs → collection-metadata-EOFYXEQI.mjs} +12 -13
  89. package/dist/{customer-create-address-JOYBIPPN.mjs → customer-create-address-TPSDYZBN.mjs} +1 -1
  90. package/dist/{customer-detail-5Y7ICDMA.mjs → customer-detail-FCNRRZSW.mjs} +16 -17
  91. package/dist/{customer-group-add-customers-YF2T323Z.mjs → customer-group-add-customers-ULPWTALS.mjs} +2 -3
  92. package/dist/{customer-group-detail-PXP73BFA.mjs → customer-group-detail-QI3QLJJL.mjs} +15 -16
  93. package/dist/{customer-group-list-3DB643XQ.mjs → customer-group-list-GPIKR66X.mjs} +14 -15
  94. package/dist/{customer-group-metadata-YQCOIVQG.mjs → customer-group-metadata-UPAPULMF.mjs} +1 -2
  95. package/dist/{customer-list-5IWEXYSW.mjs → customer-list-SINCBCOZ.mjs} +4 -5
  96. package/dist/{customer-metadata-JZEJBH4V.mjs → customer-metadata-5NPUMPZ2.mjs} +1 -2
  97. package/dist/{customers-add-customer-group-BVUVU46N.mjs → customers-add-customer-group-5TFTVDB6.mjs} +13 -14
  98. package/dist/{edit-inventory-item-UV2Z7SYL.mjs → edit-inventory-item-ZPE4MMC4.mjs} +1 -1
  99. package/dist/{edit-inventory-item-attributes-BRC3KBYT.mjs → edit-inventory-item-attributes-KT7BSPZ7.mjs} +2 -2
  100. package/dist/{edit-reservation-NYGQBFBO.mjs → edit-reservation-EKH4RIAX.mjs} +2 -7
  101. package/dist/{edit-rules-3MSTPCE5.mjs → edit-rules-63NG4QVR.mjs} +13 -14
  102. package/dist/{inventory-create-NEYX7PZJ.mjs → inventory-create-RIVJFJJQ.mjs} +14 -19
  103. package/dist/{inventory-detail-66HDQL3W.mjs → inventory-detail-5433AAQ2.mjs} +18 -25
  104. package/dist/{inventory-list-J5VZGQ2M.mjs → inventory-list-YMYF7QVP.mjs} +5 -6
  105. package/dist/{inventory-metadata-OSTUWM23.mjs → inventory-metadata-FH4CHJBA.mjs} +12 -13
  106. package/dist/{inventory-stock-XY2OCAY3.mjs → inventory-stock-D6E4LQRK.mjs} +13 -14
  107. package/dist/{location-create-22H74MFP.mjs → location-create-LUP363ZB.mjs} +1 -1
  108. package/dist/{location-detail-UZHD3IKW.mjs → location-detail-Z6ZDX6RY.mjs} +13 -14
  109. package/dist/{location-edit-X6JBEWIF.mjs → location-edit-26K26G23.mjs} +2 -2
  110. package/dist/{location-fulfillment-providers-D4RMKQXU.mjs → location-fulfillment-providers-45VXZMZI.mjs} +15 -16
  111. package/dist/location-list-BKK2PAKF.mjs +297 -0
  112. package/dist/{location-sales-channels-66ZE3ZMI.mjs → location-sales-channels-2BOIPBBG.mjs} +4 -5
  113. package/dist/{location-service-zone-create-D5QSFS3M.mjs → location-service-zone-create-RPFLBVV4.mjs} +3 -4
  114. package/dist/{location-service-zone-manage-areas-HKCALG4Q.mjs → location-service-zone-manage-areas-VEUUGPKF.mjs} +3 -4
  115. package/dist/{location-service-zone-shipping-option-create-OASLL2K7.mjs → location-service-zone-shipping-option-create-NO3665DC.mjs} +15 -23
  116. package/dist/{location-service-zone-shipping-option-edit-DOCLZOO7.mjs → location-service-zone-shipping-option-edit-TMXNX4VX.mjs} +28 -40
  117. package/dist/{location-service-zone-shipping-option-pricing-FLB63UKY.mjs → location-service-zone-shipping-option-pricing-U2SDK5DE.mjs} +2 -3
  118. package/dist/{login-LQRL2ZDY.mjs → login-DSPNELTI.mjs} +11 -11
  119. package/dist/manage-locations-3TBIUSHP.mjs +236 -0
  120. package/dist/{order-allocate-items-2RYXQRVK.mjs → order-allocate-items-J3ZHGC22.mjs} +14 -26
  121. package/dist/{order-create-claim-7UF734QH.mjs → order-create-claim-V63BWLB5.mjs} +18 -20
  122. package/dist/{order-create-edit-MZHUVTGE.mjs → order-create-edit-NPF4UZ4D.mjs} +16 -18
  123. package/dist/{order-create-exchange-2UGEF65S.mjs → order-create-exchange-RHIPPSKU.mjs} +18 -20
  124. package/dist/{order-create-fulfillment-HGJ2YPUB.mjs → order-create-fulfillment-4SSUHQ75.mjs} +12 -19
  125. package/dist/{order-create-refund-CJDKVBSE.mjs → order-create-refund-QVQC5ZP5.mjs} +17 -52
  126. package/dist/{order-create-return-5IPRHHLJ.mjs → order-create-return-GVA6M2RY.mjs} +9 -11
  127. package/dist/{order-create-shipment-3FDVQ6WT.mjs → order-create-shipment-TJAARKWA.mjs} +11 -13
  128. package/dist/{order-detail-SEPCRJW5.mjs → order-detail-2MIN6B2I.mjs} +42 -50
  129. package/dist/{order-edit-billing-address-J75NQFRY.mjs → order-edit-billing-address-QP2I5F3E.mjs} +12 -12
  130. package/dist/{order-edit-email-ABFQKE6A.mjs → order-edit-email-7WT7XTHB.mjs} +11 -11
  131. package/dist/{order-edit-shipping-address-OXW7TAJD.mjs → order-edit-shipping-address-3QFMQP4I.mjs} +12 -12
  132. package/dist/{order-list-VDUUHTSU.mjs → order-list-7S3N6H5A.mjs} +10 -11
  133. package/dist/{order-metadata-5NF3ICQL.mjs → order-metadata-YJS26DHK.mjs} +12 -13
  134. package/dist/{order-receive-return-IM65P7XQ.mjs → order-receive-return-PZMMMUB2.mjs} +13 -14
  135. package/dist/{order-request-transfer-LZ25KEDA.mjs → order-request-transfer-QBIZD36E.mjs} +12 -12
  136. package/dist/{price-list-configuration-VACKCKJF.mjs → price-list-configuration-435QDWB2.mjs} +5 -6
  137. package/dist/{price-list-create-EC5VGCMW.mjs → price-list-create-RXDH5CXF.mjs} +24 -39
  138. package/dist/{price-list-detail-CRTJA5O4.mjs → price-list-detail-PKIKOJ4H.mjs} +17 -18
  139. package/dist/{price-list-edit-G73ZIU2Y.mjs → price-list-edit-ZGBOZYSC.mjs} +31 -51
  140. package/dist/{price-list-list-QYZSJNF5.mjs → price-list-list-C6NEB2R4.mjs} +7 -8
  141. package/dist/{price-list-prices-add-HYCM4QDY.mjs → price-list-prices-add-2CDPUSYA.mjs} +20 -28
  142. package/dist/{price-list-prices-edit-R53ITSDD.mjs → price-list-prices-edit-ENB4GJZT.mjs} +4 -5
  143. package/dist/{product-attributes-WVQRK3GQ.mjs → product-attributes-LVV3K24U.mjs} +17 -19
  144. package/dist/{product-create-PWSPOVUS.mjs → product-create-HQORHMCM.mjs} +21 -27
  145. package/dist/{product-create-option-OW2LMVST.mjs → product-create-option-3JR35UZ5.mjs} +1 -1
  146. package/dist/{product-create-variant-V2QGXFEF.mjs → product-create-variant-KJKQ6ROY.mjs} +18 -31
  147. package/dist/{product-detail-EBPCCBI4.mjs → product-detail-UROTMCRL.mjs} +19 -21
  148. package/dist/{product-edit-5E6D43KE.mjs → product-edit-4EVIUVKV.mjs} +28 -41
  149. package/dist/{product-edit-option-OM56DLU6.mjs → product-edit-option-VNDGZ37A.mjs} +1 -1
  150. package/dist/{product-export-VFC3I5DK.mjs → product-export-XERWEI5H.mjs} +13 -13
  151. package/dist/{product-import-V7EZJ2TU.mjs → product-import-AGFJMSVK.mjs} +13 -14
  152. package/dist/{product-list-FFZO57JG.mjs → product-list-3B742YCJ.mjs} +18 -19
  153. package/dist/{product-media-TRKQTA4G.mjs → product-media-APQKPFTT.mjs} +5 -5
  154. package/dist/{product-metadata-VYQ65KYI.mjs → product-metadata-NZ3HKO67.mjs} +12 -13
  155. package/dist/{product-organization-OCVSTKEK.mjs → product-organization-YQUIMUYX.mjs} +18 -20
  156. package/dist/{product-prices-XLY5TUSJ.mjs → product-prices-PCBMYYGV.mjs} +2 -3
  157. package/dist/{product-sales-channels-KSIHPDJG.mjs → product-sales-channels-UGPAXFAV.mjs} +4 -5
  158. package/dist/{product-shipping-profile-SG6NDHF4.mjs → product-shipping-profile-FRIMAOZQ.mjs} +17 -19
  159. package/dist/{product-stock-LJRYRSKN.mjs → product-stock-SUVEQZML.mjs} +14 -16
  160. package/dist/{product-tag-create-EB5CVUOP.mjs → product-tag-create-T6HVAQKN.mjs} +11 -11
  161. package/dist/{product-tag-detail-V5CZY4R4.mjs → product-tag-detail-HOWUZC3P.mjs} +21 -22
  162. package/dist/{product-tag-edit-YATSW5OK.mjs → product-tag-edit-WWQDNDRC.mjs} +11 -11
  163. package/dist/{product-tag-list-2LFGEFGL.mjs → product-tag-list-FAKSLONF.mjs} +21 -22
  164. package/dist/{product-tag-metadata-R5P5FWAZ.mjs → product-tag-metadata-6B56VEZU.mjs} +12 -13
  165. package/dist/{product-type-detail-BZNI5GJ5.mjs → product-type-detail-KN64HYUV.mjs} +16 -17
  166. package/dist/{product-type-list-MJLAGQYC.mjs → product-type-list-6ZIWPIUH.mjs} +4 -5
  167. package/dist/{product-type-metadata-SUQHWLWA.mjs → product-type-metadata-F3FTI6OG.mjs} +12 -13
  168. package/dist/{product-variant-detail-W2JHQQQJ.mjs → product-variant-detail-OUHBUY4J.mjs} +15 -16
  169. package/dist/{product-variant-edit-DSY77FF4.mjs → product-variant-edit-NBYHDUJ5.mjs} +13 -17
  170. package/dist/{product-variant-manage-inventory-items-JH65NAD4.mjs → product-variant-manage-inventory-items-TM3VAHBJ.mjs} +2 -2
  171. package/dist/{product-variant-metadata-HE3MRTJB.mjs → product-variant-metadata-XDVLJYGQ.mjs} +12 -13
  172. package/dist/{profile-detail-XYAQ2G36.mjs → profile-detail-ROG22HHL.mjs} +2 -3
  173. package/dist/{profile-edit-7WD4FTRH.mjs → profile-edit-HSUQIQQH.mjs} +19 -31
  174. package/dist/{promotion-add-campaign-YOUUM6RB.mjs → promotion-add-campaign-7R26KU2U.mjs} +21 -9
  175. package/dist/{promotion-create-NBFV4XQV.mjs → promotion-create-UUOG52D5.mjs} +17 -29
  176. package/dist/{promotion-detail-247QD6DA.mjs → promotion-detail-6ZD7Z6BF.mjs} +76 -126
  177. package/dist/{promotion-edit-details-A2UUSAZA.mjs → promotion-edit-details-HQLYX4X4.mjs} +2 -10
  178. package/dist/{promotion-list-WDHOSD55.mjs → promotion-list-GI64LDWI.mjs} +8 -9
  179. package/dist/{region-add-countries-6GSF4CKJ.mjs → region-add-countries-Y4YAHDUZ.mjs} +2 -3
  180. package/dist/{region-create-AV2NJNNJ.mjs → region-create-5Y3GIQBV.mjs} +39 -49
  181. package/dist/{region-detail-PB7EUSTD.mjs → region-detail-CWRFM6P3.mjs} +4 -5
  182. package/dist/region-edit-JWQWCLM3.mjs +285 -0
  183. package/dist/{region-list-52LF5S4S.mjs → region-list-FQNI7F37.mjs} +4 -5
  184. package/dist/{region-metadata-3JIGHAUI.mjs → region-metadata-IQVB4ERU.mjs} +12 -13
  185. package/dist/{reservation-create-FKBCGQA7.mjs → reservation-create-7RFXWDXB.mjs} +3 -3
  186. package/dist/{reservation-detail-FENCNQDA.mjs → reservation-detail-RTGHD35L.mjs} +14 -15
  187. package/dist/{reservation-list-NOWJUMXV.mjs → reservation-list-UOC7RNRZ.mjs} +6 -7
  188. package/dist/{reservation-metadata-DQ3A7MHU.mjs → reservation-metadata-WKJXBRLQ.mjs} +12 -13
  189. package/dist/{reset-password-LCVV4NOA.mjs → reset-password-SXA6YKTJ.mjs} +1 -1
  190. package/dist/{return-reason-list-FW7OYUOW.mjs → return-reason-list-MOP7YWMZ.mjs} +7 -8
  191. package/dist/{sales-channel-add-products-G4EUOCWY.mjs → sales-channel-add-products-OKVZJ6FI.mjs} +14 -15
  192. package/dist/{sales-channel-create-NODWGJDD.mjs → sales-channel-create-3MPOMVPD.mjs} +2 -4
  193. package/dist/{sales-channel-detail-NT7PEVVH.mjs → sales-channel-detail-WESBK6Q7.mjs} +16 -17
  194. package/dist/{sales-channel-edit-ALIRERVH.mjs → sales-channel-edit-LSLAM7A4.mjs} +2 -4
  195. package/dist/{sales-channel-list-REV2RETE.mjs → sales-channel-list-ADIJMXNV.mjs} +14 -15
  196. package/dist/{sales-channel-metadata-O5O6ADG5.mjs → sales-channel-metadata-2OQAHYB4.mjs} +12 -13
  197. package/dist/{shipping-option-type-create-7FSJNHHA.mjs → shipping-option-type-create-3CGPGDYJ.mjs} +11 -11
  198. package/dist/{shipping-option-type-detail-6UQST7RY.mjs → shipping-option-type-detail-S23H2OGW.mjs} +14 -15
  199. package/dist/{shipping-option-type-edit-B475WRRR.mjs → shipping-option-type-edit-IHE7XM6M.mjs} +11 -11
  200. package/dist/{shipping-option-type-list-DTETSFSA.mjs → shipping-option-type-list-47GRJ6EC.mjs} +16 -17
  201. package/dist/{shipping-profile-detail-FS46IJZP.mjs → shipping-profile-detail-FDUPDSH4.mjs} +2 -3
  202. package/dist/{shipping-profile-metadata-PRINFNSY.mjs → shipping-profile-metadata-OXWOXAAR.mjs} +12 -13
  203. package/dist/{shipping-profiles-list-QFOG5IDH.mjs → shipping-profiles-list-ZHJEUIKJ.mjs} +4 -5
  204. package/dist/{store-add-currencies-W4MWOALR.mjs → store-add-currencies-R26SVHT5.mjs} +2 -5
  205. package/dist/{store-detail-QKF2TVNW.mjs → store-detail-4K7TW2TP.mjs} +15 -16
  206. package/dist/{store-edit-ZPGTNZGL.mjs → store-edit-EU55TNFU.mjs} +12 -24
  207. package/dist/{store-metadata-M6GIKI5P.mjs → store-metadata-JP2CI7EF.mjs} +12 -13
  208. package/dist/{tax-region-create-4DTM3RTZ.mjs → tax-region-create-W3K5IFD3.mjs} +14 -14
  209. package/dist/{tax-region-detail-SLCI3JYL.mjs → tax-region-detail-V2F2DONN.mjs} +17 -18
  210. package/dist/{tax-region-edit-CJ63JXFQ.mjs → tax-region-edit-CJPMYTBF.mjs} +12 -12
  211. package/dist/{tax-region-list-SQQE2GUU.mjs → tax-region-list-NMM3LBPN.mjs} +5 -6
  212. package/dist/{tax-region-province-create-SBRFGWN3.mjs → tax-region-province-create-GIIU2G7K.mjs} +2 -2
  213. package/dist/{tax-region-province-detail-BGL2USQF.mjs → tax-region-province-detail-4PUQ5ADW.mjs} +16 -17
  214. package/dist/{tax-region-tax-override-create-L4WOTSBO.mjs → tax-region-tax-override-create-3SCIOK4P.mjs} +20 -25
  215. package/dist/{tax-region-tax-override-edit-2JAVNE37.mjs → tax-region-tax-override-edit-P3QJKET3.mjs} +20 -25
  216. package/dist/{tax-region-tax-rate-create-JIV5FXUD.mjs → tax-region-tax-rate-create-Z43M3JTQ.mjs} +1 -1
  217. package/dist/{tax-region-tax-rate-edit-WU2ZQLZQ.mjs → tax-region-tax-rate-edit-RBF5D2MK.mjs} +1 -1
  218. package/dist/{user-detail-ZFW3YF3M.mjs → user-detail-VIVFFLOW.mjs} +3 -4
  219. package/dist/{user-invite-KUH4AI2L.mjs → user-invite-W26LOOW7.mjs} +3 -4
  220. package/dist/{user-list-G4H2RSDX.mjs → user-list-3YFYZFSK.mjs} +3 -4
  221. package/dist/{user-metadata-DFTGB46F.mjs → user-metadata-ZURLDLGC.mjs} +12 -13
  222. package/dist/{workflow-execution-detail-YNT2RKIP.mjs → workflow-execution-detail-4R6AFFHV.mjs} +13 -17
  223. package/dist/{workflow-execution-list-5WL4L464.mjs → workflow-execution-list-5J3DQQRD.mjs} +3 -4
  224. package/package.json +9 -9
  225. package/src/components/common/action-menu/action-menu.tsx +1 -3
  226. package/src/components/common/customer-info/customer-info.tsx +1 -1
  227. package/src/components/common/json-view-section/json-view-section.tsx +1 -4
  228. package/src/components/common/sidebar-link/sidebar-link.tsx +1 -1
  229. package/src/components/common/switch-box/switch-box.tsx +0 -2
  230. package/src/components/data-grid/components/data-grid-root.tsx +3 -9
  231. package/src/components/data-grid/components/data-grid-toggleable-number-cell.tsx +1 -2
  232. package/src/components/data-table/data-table.tsx +46 -64
  233. package/src/components/filtering/filter-group/filter-group.tsx +1 -5
  234. package/src/components/filtering/order-by/order-by.tsx +1 -4
  235. package/src/components/forms/address-form/address-form.tsx +2 -7
  236. package/src/components/forms/metadata-form/metadata-form.tsx +3 -6
  237. package/src/components/inputs/combobox/combobox.tsx +13 -20
  238. package/src/components/inputs/country-select/country-select.tsx +1 -1
  239. package/src/components/inputs/province-select/province-select.tsx +1 -1
  240. package/src/components/layout/main-layout/main-layout.tsx +5 -7
  241. package/src/components/layout/settings-layout/settings-layout.tsx +0 -4
  242. package/src/components/layout/shell/shell.tsx +6 -6
  243. package/src/components/layout/user-menu/user-menu.tsx +10 -12
  244. package/src/components/search/search.tsx +3 -5
  245. package/src/components/table/data-table/data-table-order-by/data-table-order-by.tsx +1 -4
  246. package/src/components/table/data-table/data-table-root/data-table-root.tsx +3 -3
  247. package/src/dashboard-app/forms/form-extension-zone/form-extension-zone.tsx +1 -1
  248. package/src/dashboard-app/routes/get-route.map.tsx +0 -36
  249. package/src/hooks/api/campaigns.tsx +0 -1
  250. package/src/hooks/api/inventory.tsx +0 -3
  251. package/src/hooks/api/payments.tsx +1 -6
  252. package/src/hooks/api/refund-reasons.tsx +10 -105
  253. package/src/hooks/table/columns/index.ts +0 -1
  254. package/src/hooks/table/query/index.ts +0 -1
  255. package/src/hooks/table/use-table-configuration.tsx +1 -1
  256. package/src/i18n/translations/$schema.json +67 -208
  257. package/src/i18n/translations/en.json +3 -40
  258. package/src/providers/i18n-provider/i18n-provider.tsx +4 -9
  259. package/src/routes/campaigns/campaign-detail/components/campaign-budget/campaign-budget.tsx +3 -3
  260. package/src/routes/campaigns/common/components/create-campaign-form-fields/create-campaign-form-fields.tsx +1 -4
  261. package/src/routes/categories/category-create/components/create-category-form/create-category-details.tsx +3 -12
  262. package/src/routes/categories/category-create/components/create-category-form/create-category-form.tsx +3 -4
  263. package/src/routes/categories/category-detail/components/category-organize-section/category-organize-section.tsx +1 -1
  264. package/src/routes/categories/category-edit/components/edit-category-form/edit-category-form.tsx +3 -12
  265. package/src/routes/inventory/inventory-create/components/inventory-create-form/inventory-create-form.tsx +1 -3
  266. package/src/routes/inventory/inventory-detail/components/inventory-item-variants/variants-section.tsx +1 -1
  267. package/src/routes/inventory/inventory-detail/components/location-levels-table/use-location-list-table-columns.tsx +0 -7
  268. package/src/routes/inventory/inventory-detail/components/manage-locations/components/location-item.tsx +2 -2
  269. package/src/routes/inventory/inventory-detail/components/manage-locations/components/manage-locations-form.tsx +140 -127
  270. package/src/routes/locations/location-edit/components/edit-location-form/edit-location-form.tsx +1 -1
  271. package/src/routes/locations/location-list/components/location-list-header/index.ts +1 -0
  272. package/src/routes/locations/location-list/components/location-list-header/location-list-header.tsx +21 -0
  273. package/src/routes/locations/location-list/index.ts +1 -0
  274. package/src/routes/locations/location-list/loader.ts +36 -0
  275. package/src/routes/locations/location-list/location-list.tsx +14 -52
  276. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-option-details-form.tsx +1 -4
  277. package/src/routes/locations/location-service-zone-shipping-option-create/components/create-shipping-options-form/create-shipping-options-form.tsx +1 -3
  278. package/src/routes/locations/location-service-zone-shipping-option-edit/components/edit-region-form/edit-shipping-option-form.tsx +2 -7
  279. package/src/routes/orders/order-allocate-items/components/order-create-fulfillment-form/order-allocate-items-form.tsx +2 -7
  280. package/src/routes/orders/order-create-claim/components/claim-create-form/claim-create-form.tsx +1 -2
  281. package/src/routes/orders/order-create-edit/components/order-edit-create-form/order-edit-create-form.tsx +1 -2
  282. package/src/routes/orders/order-create-exchange/components/exchange-create-form/exchange-create-form.tsx +1 -2
  283. package/src/routes/orders/order-create-fulfillment/components/order-create-fulfillment-form/order-create-fulfillment-form.tsx +1 -5
  284. package/src/routes/orders/order-create-refund/components/create-refund-form/create-refund-form.tsx +1 -42
  285. package/src/routes/orders/order-create-return/components/return-create-form/return-create-form.tsx +1 -2
  286. package/src/routes/orders/order-create-shipment/components/order-create-shipment-form/order-create-shipment-form.tsx +0 -2
  287. package/src/routes/orders/order-detail/components/order-activity-section/order-timeline.tsx +5 -13
  288. package/src/routes/orders/order-receive-return/components/order-receive-return-form/order-receive-return-form.tsx +1 -2
  289. package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-create-form.tsx +1 -3
  290. package/src/routes/price-lists/price-list-create/components/price-list-create-form/price-list-details-form.tsx +2 -8
  291. package/src/routes/price-lists/price-list-edit/components/price-list-edit-form/edit-price-list-form.tsx +3 -12
  292. package/src/routes/price-lists/price-list-prices-add/components/price-list-prices-add-form/price-list-prices-add-form.tsx +5 -10
  293. package/src/routes/product-variants/product-variant-edit/components/product-edit-variant-form/product-edit-variant-form.tsx +0 -4
  294. package/src/routes/products/common/components/category-combobox/category-combobox.tsx +11 -11
  295. package/src/routes/products/product-create/components/product-create-form/product-create-form.tsx +1 -3
  296. package/src/routes/products/product-create-variant/components/create-product-variant-form/create-product-variant-form.tsx +5 -10
  297. package/src/routes/products/product-create-variant/components/create-product-variant-form/details-tab.tsx +1 -6
  298. package/src/routes/products/product-edit/components/edit-product-form/edit-product-form.tsx +2 -7
  299. package/src/routes/products/product-media/components/product-media-gallery/product-media-gallery.tsx +2 -2
  300. package/src/routes/products/product-stock/hooks/use-product-stock-columns.tsx +1 -2
  301. package/src/routes/profile/profile-edit/components/edit-profile-form/edit-profile-form.tsx +3 -9
  302. package/src/routes/promotions/common/edit-rules/components/rules-form-field/rules-form-field.tsx +0 -4
  303. package/src/routes/promotions/promotion-add-campaign/components/add-campaign-promotion-form/add-campaign-promotion-form.tsx +49 -48
  304. package/src/routes/promotions/promotion-add-campaign/promotion-add-campaign.tsx +21 -4
  305. package/src/routes/promotions/promotion-create/components/create-promotion-form/create-promotion-form.tsx +3 -12
  306. package/src/routes/promotions/promotion-edit-details/components/edit-promotion-form/edit-promotion-details-form.tsx +1 -6
  307. package/src/routes/regions/region-create/components/create-region-form/create-region-form.tsx +12 -29
  308. package/src/routes/regions/region-create/region-create.tsx +10 -1
  309. package/src/routes/regions/region-edit/components/edit-region-form/edit-region-form.tsx +10 -32
  310. package/src/routes/regions/region-edit/region-edit.tsx +5 -0
  311. package/src/routes/reservations/reservation-detail/components/edit-reservation/components/edit-reservation-form.tsx +1 -3
  312. package/src/routes/sales-channels/sales-channel-create/components/create-sales-channel-form/create-sales-channel-form.tsx +0 -2
  313. package/src/routes/sales-channels/sales-channel-edit/components/edit-sales-channel-form/edit-sales-channel-form.tsx +0 -2
  314. package/src/routes/store/store-add-currencies/components/add-currencies-form/add-currencies-form.tsx +0 -2
  315. package/src/routes/store/store-edit/components/edit-store-form/edit-store-form.tsx +2 -7
  316. package/src/routes/tax-regions/tax-region-tax-override-create/components/tax-region-override-create-form/tax-region-tax-override-create.tsx +1 -3
  317. package/src/routes/tax-regions/tax-region-tax-override-edit/components/tax-region-tax-override-edit-form/tax-region-tax-override-edit-form.tsx +1 -3
  318. package/src/routes/workflow-executions/workflow-execution-detail/components/workflow-execution-timeline-section/workflow-execution-timeline-section.tsx +2 -3
  319. package/dist/chunk-5U3FFMC7.mjs +0 -84
  320. package/dist/chunk-S4DMV3ZT.mjs +0 -35
  321. package/dist/chunk-VLOA5XAC.mjs +0 -113
  322. package/dist/location-list-VNEYHAKV.mjs +0 -323
  323. package/dist/manage-locations-RPHTPGRE.mjs +0 -247
  324. package/dist/refund-reason-create-45ZZOX7F.mjs +0 -157
  325. package/dist/refund-reason-edit-E2HDAQZI.mjs +0 -144
  326. package/dist/refund-reason-list-WI7NHRDS.mjs +0 -245
  327. package/dist/region-edit-X7CSUICV.mjs +0 -308
  328. package/src/hooks/table/columns/use-refund-reason-table-columns.tsx +0 -32
  329. package/src/hooks/table/query/use-refund-reason-table-query.tsx +0 -32
  330. package/src/hooks/use-document-direction.tsx +0 -54
  331. package/src/routes/inventory/inventory-detail/components/manage-locations/components/location-search-input.tsx +0 -34
  332. package/src/routes/locations/location-list/use-location-list-table-columns.tsx +0 -185
  333. package/src/routes/locations/location-list/use-location-list-table-query.tsx +0 -22
  334. package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/index.ts +0 -1
  335. package/src/routes/refund-reasons/refund-reason-create/components/refund-reason-create-form/refund-reason-create-form.tsx +0 -131
  336. package/src/routes/refund-reasons/refund-reason-create/index.ts +0 -1
  337. package/src/routes/refund-reasons/refund-reason-create/refund-reason-create.tsx +0 -10
  338. package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/index.ts +0 -1
  339. package/src/routes/refund-reasons/refund-reason-edit/components/refund-reason-edit-form/refund-reason-edit-form.tsx +0 -119
  340. package/src/routes/refund-reasons/refund-reason-edit/index.ts +0 -1
  341. package/src/routes/refund-reasons/refund-reason-edit/refund-reason-edit.tsx +0 -33
  342. package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/index.ts +0 -1
  343. package/src/routes/refund-reasons/refund-reason-list/components/refund-reason-list-table/refund-reason-list-table.tsx +0 -138
  344. package/src/routes/refund-reasons/refund-reason-list/index.ts +0 -2
  345. package/src/routes/refund-reasons/refund-reason-list/loader.ts +0 -16
  346. package/src/routes/refund-reasons/refund-reason-list/refund-reason-list.tsx +0 -21
@@ -1,20 +1,18 @@
1
1
  import {
2
2
  AddCampaignPromotionForm
3
- } from "./chunk-RBDAWRFF.mjs";
4
- import "./chunk-CY33DS7K.mjs";
5
- import "./chunk-HFB3OQXI.mjs";
6
- import "./chunk-OFN7DIZA.mjs";
3
+ } from "./chunk-SMHXCFRS.mjs";
4
+ import "./chunk-J5E7MQSS.mjs";
7
5
  import "./chunk-DK4WIVY6.mjs";
8
6
  import "./chunk-IUCDCPJU.mjs";
9
7
  import "./chunk-6HTZNHPT.mjs";
10
8
  import {
11
9
  RouteDrawer
12
10
  } from "./chunk-4TC5YS65.mjs";
13
- import "./chunk-S4DMV3ZT.mjs";
14
11
  import "./chunk-OBQI23QM.mjs";
15
12
  import {
13
+ useCampaigns,
16
14
  usePromotion
17
- } from "./chunk-R2G2B47Y.mjs";
15
+ } from "./chunk-ZODJNBAV.mjs";
18
16
  import "./chunk-V2LANK5S.mjs";
19
17
  import "./chunk-QL4XKIVL.mjs";
20
18
  import "./chunk-FXYH54JP.mjs";
@@ -31,12 +29,26 @@ var PromotionAddCampaign = () => {
31
29
  const { id } = useParams();
32
30
  const { t } = useTranslation();
33
31
  const { promotion, isPending, isError, error } = usePromotion(id);
34
- if (isError) {
35
- throw error;
32
+ let campaignQuery = {};
33
+ if (promotion?.application_method?.currency_code) {
34
+ campaignQuery = {
35
+ budget: {
36
+ currency_code: promotion?.application_method?.currency_code
37
+ }
38
+ };
39
+ }
40
+ const {
41
+ campaigns,
42
+ isPending: areCampaignsLoading,
43
+ isError: isCampaignError,
44
+ error: campaignError
45
+ } = useCampaigns(campaignQuery);
46
+ if (isError || isCampaignError) {
47
+ throw error || campaignError;
36
48
  }
37
49
  return /* @__PURE__ */ jsxs(RouteDrawer, { children: [
38
50
  /* @__PURE__ */ jsx(RouteDrawer.Header, { children: /* @__PURE__ */ jsx(Heading, { children: t("promotions.campaign.edit.header") }) }),
39
- !isPending && promotion && /* @__PURE__ */ jsx(AddCampaignPromotionForm, { promotion })
51
+ !isPending && !areCampaignsLoading && promotion && campaigns && /* @__PURE__ */ jsx(AddCampaignPromotionForm, { promotion, campaigns })
40
52
  ] });
41
53
  };
42
54
  export {
@@ -3,18 +3,18 @@ import {
3
3
  } from "./chunk-KEQOAJC2.mjs";
4
4
  import {
5
5
  AddCampaignPromotionFields
6
- } from "./chunk-RBDAWRFF.mjs";
6
+ } from "./chunk-SMHXCFRS.mjs";
7
7
  import {
8
8
  RulesFormField
9
- } from "./chunk-VI7MI3US.mjs";
9
+ } from "./chunk-R2NWOCML.mjs";
10
10
  import {
11
11
  CreateCampaignSchema,
12
12
  DEFAULT_CAMPAIGN_VALUES
13
- } from "./chunk-AXXGAOQL.mjs";
14
- import "./chunk-CY33DS7K.mjs";
13
+ } from "./chunk-YWNHMIEQ.mjs";
14
+ import "./chunk-J5E7MQSS.mjs";
15
15
  import "./chunk-F6ZOHZVB.mjs";
16
16
  import "./chunk-HFB3OQXI.mjs";
17
- import "./chunk-OFN7DIZA.mjs";
17
+ import "./chunk-2PMSBTXI.mjs";
18
18
  import {
19
19
  currencies,
20
20
  getCurrencySymbol
@@ -27,18 +27,14 @@ import {
27
27
  RouteFocusModal,
28
28
  useRouteModal
29
29
  } from "./chunk-4TC5YS65.mjs";
30
- import {
31
- useDocumentDirection
32
- } from "./chunk-S4DMV3ZT.mjs";
33
30
  import {
34
31
  Form
35
32
  } from "./chunk-OBQI23QM.mjs";
36
- import "./chunk-PAG2HG6I.mjs";
33
+ import "./chunk-OGHQ6VJI.mjs";
37
34
  import "./chunk-KOSCMAIC.mjs";
38
- import "./chunk-5U3FFMC7.mjs";
39
35
  import "./chunk-X6DSNTTX.mjs";
40
36
  import "./chunk-I6E6CALJ.mjs";
41
- import "./chunk-RGP3IXX4.mjs";
37
+ import "./chunk-4RG7UJCT.mjs";
42
38
  import "./chunk-QTCZFYFH.mjs";
43
39
  import "./chunk-B4GODIOW.mjs";
44
40
  import "./chunk-ENV6YVOM.mjs";
@@ -46,24 +42,25 @@ import "./chunk-PIR2H25N.mjs";
46
42
  import "./chunk-RLY2SL5E.mjs";
47
43
  import "./chunk-C5LYZZZ5.mjs";
48
44
  import "./chunk-2ZKVRTBW.mjs";
49
- import "./chunk-LKVQ5YC6.mjs";
45
+ import "./chunk-ZCZL3STK.mjs";
46
+ import "./chunk-OHSRRFGN.mjs";
50
47
  import "./chunk-F6PXCY3N.mjs";
51
- import "./chunk-NY6I2FYO.mjs";
48
+ import "./chunk-NCR5UWRI.mjs";
52
49
  import {
53
50
  useCampaigns,
54
51
  useCreatePromotion
55
- } from "./chunk-R2G2B47Y.mjs";
52
+ } from "./chunk-ZODJNBAV.mjs";
56
53
  import "./chunk-GRT22PE5.mjs";
57
54
  import "./chunk-32IQRUVY.mjs";
58
- import "./chunk-U25RCIX2.mjs";
59
- import "./chunk-ITJEYJNB.mjs";
60
- import "./chunk-EYTETK3W.mjs";
55
+ import "./chunk-KSRI5LOF.mjs";
56
+ import "./chunk-YI4CZGTU.mjs";
57
+ import "./chunk-BFNH5UWD.mjs";
61
58
  import "./chunk-KX4P5L3R.mjs";
62
- import "./chunk-XP3BY6G6.mjs";
59
+ import "./chunk-4Q4LIFFO.mjs";
63
60
  import "./chunk-V2LANK5S.mjs";
64
61
  import "./chunk-QZ6PT4QV.mjs";
65
62
  import "./chunk-QL4XKIVL.mjs";
66
- import "./chunk-4QUHWHBD.mjs";
63
+ import "./chunk-X4X5KUGQ.mjs";
67
64
  import "./chunk-FXYH54JP.mjs";
68
65
  import "./chunk-774WSTCC.mjs";
69
66
  import "./chunk-DEQUVHHE.mjs";
@@ -299,7 +296,6 @@ var CreatePromotionForm = () => {
299
296
  });
300
297
  const { t } = useTranslation();
301
298
  const { handleSuccess } = useRouteModal();
302
- const direction = useDocumentDirection();
303
299
  const form = useForm({
304
300
  defaultValues,
305
301
  resolver: zodResolver(CreatePromotionSchema)
@@ -528,7 +524,6 @@ var CreatePromotionForm = () => {
528
524
  /* @__PURE__ */ jsxs(
529
525
  ProgressTabs,
530
526
  {
531
- dir: direction,
532
527
  value: tab,
533
528
  onValueChange: (tab2) => handleTabChange(tab2),
534
529
  className: "flex h-full flex-col overflow-hidden",
@@ -579,7 +574,6 @@ var CreatePromotionForm = () => {
579
574
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsx(
580
575
  RadioGroup,
581
576
  {
582
- dir: direction,
583
577
  className: "flex-col gap-y-3",
584
578
  ...field,
585
579
  onValueChange: field.onChange,
@@ -643,7 +637,6 @@ var CreatePromotionForm = () => {
643
637
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
644
638
  RadioGroup,
645
639
  {
646
- dir: direction,
647
640
  className: "flex gap-y-3",
648
641
  ...field,
649
642
  value: field.value,
@@ -692,7 +685,6 @@ var CreatePromotionForm = () => {
692
685
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
693
686
  RadioGroup,
694
687
  {
695
- dir: direction,
696
688
  className: "flex gap-y-3",
697
689
  ...field,
698
690
  value: field.value,
@@ -780,8 +772,7 @@ var CreatePromotionForm = () => {
780
772
  /* @__PURE__ */ jsx(Form.Control, { className: "mr-2 self-center", children: /* @__PURE__ */ jsx(
781
773
  Switch,
782
774
  {
783
- dir: "ltr",
784
- className: "mt-[2px] rtl:rotate-180",
775
+ className: "mt-[2px]",
785
776
  checked: !!value,
786
777
  onCheckedChange: onChange,
787
778
  ...field
@@ -805,7 +796,6 @@ var CreatePromotionForm = () => {
805
796
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
806
797
  RadioGroup,
807
798
  {
808
- dir: direction,
809
799
  className: "flex gap-y-3",
810
800
  ...field,
811
801
  onValueChange: field.onChange,
@@ -859,7 +849,6 @@ var CreatePromotionForm = () => {
859
849
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
860
850
  RadioGroup,
861
851
  {
862
- dir: direction,
863
852
  className: "flex gap-y-3",
864
853
  ...field,
865
854
  onValueChange: field.onChange,
@@ -1026,7 +1015,6 @@ var CreatePromotionForm = () => {
1026
1015
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
1027
1016
  RadioGroup,
1028
1017
  {
1029
- dir: direction,
1030
1018
  className: "flex gap-y-3",
1031
1019
  ...field,
1032
1020
  onValueChange: field.onChange,
@@ -1,9 +1,12 @@
1
+ import {
2
+ BadgeListSummary
3
+ } from "./chunk-BKJC5BGQ.mjs";
1
4
  import {
2
5
  DateRangeDisplay
3
6
  } from "./chunk-VAIHVNV6.mjs";
4
7
  import {
5
8
  getPromotionStatus
6
- } from "./chunk-IP2QPPWC.mjs";
9
+ } from "./chunk-KMUDF36P.mjs";
7
10
  import {
8
11
  formatPercentage
9
12
  } from "./chunk-4FM6S5CX.mjs";
@@ -15,10 +18,10 @@ import {
15
18
  } from "./chunk-EMIHDNB7.mjs";
16
19
  import {
17
20
  TwoColumnPage
18
- } from "./chunk-GIZFNLKK.mjs";
21
+ } from "./chunk-2RQLKDBF.mjs";
19
22
  import "./chunk-PFKKVLZX.mjs";
20
23
  import "./chunk-4GQOUCX6.mjs";
21
- import "./chunk-DKOCYXB5.mjs";
24
+ import "./chunk-JELVERJM.mjs";
22
25
  import {
23
26
  useExtension
24
27
  } from "./chunk-C5P5PL3E.mjs";
@@ -27,16 +30,14 @@ import {
27
30
  } from "./chunk-LPEUYMRK.mjs";
28
31
  import {
29
32
  ActionMenu
30
- } from "./chunk-OZPB6JBL.mjs";
33
+ } from "./chunk-3NJTXRIY.mjs";
31
34
  import "./chunk-OC7BQLYI.mjs";
32
- import "./chunk-S4DMV3ZT.mjs";
33
35
  import "./chunk-67ORSRVT.mjs";
34
- import "./chunk-PAG2HG6I.mjs";
36
+ import "./chunk-OGHQ6VJI.mjs";
35
37
  import "./chunk-KOSCMAIC.mjs";
36
- import "./chunk-5U3FFMC7.mjs";
37
38
  import "./chunk-X6DSNTTX.mjs";
38
39
  import "./chunk-I6E6CALJ.mjs";
39
- import "./chunk-RGP3IXX4.mjs";
40
+ import "./chunk-4RG7UJCT.mjs";
40
41
  import "./chunk-QTCZFYFH.mjs";
41
42
  import "./chunk-B4GODIOW.mjs";
42
43
  import "./chunk-ENV6YVOM.mjs";
@@ -44,26 +45,27 @@ import "./chunk-PIR2H25N.mjs";
44
45
  import "./chunk-RLY2SL5E.mjs";
45
46
  import "./chunk-C5LYZZZ5.mjs";
46
47
  import "./chunk-2ZKVRTBW.mjs";
47
- import "./chunk-LKVQ5YC6.mjs";
48
+ import "./chunk-ZCZL3STK.mjs";
49
+ import "./chunk-OHSRRFGN.mjs";
48
50
  import "./chunk-F6PXCY3N.mjs";
49
- import "./chunk-NY6I2FYO.mjs";
51
+ import "./chunk-NCR5UWRI.mjs";
50
52
  import {
51
53
  promotionsQueryKeys,
52
54
  useDeletePromotion,
53
55
  usePromotion,
54
56
  usePromotionRules
55
- } from "./chunk-R2G2B47Y.mjs";
57
+ } from "./chunk-ZODJNBAV.mjs";
56
58
  import "./chunk-GRT22PE5.mjs";
57
59
  import "./chunk-32IQRUVY.mjs";
58
- import "./chunk-U25RCIX2.mjs";
59
- import "./chunk-ITJEYJNB.mjs";
60
- import "./chunk-EYTETK3W.mjs";
60
+ import "./chunk-KSRI5LOF.mjs";
61
+ import "./chunk-YI4CZGTU.mjs";
62
+ import "./chunk-BFNH5UWD.mjs";
61
63
  import "./chunk-KX4P5L3R.mjs";
62
- import "./chunk-XP3BY6G6.mjs";
64
+ import "./chunk-4Q4LIFFO.mjs";
63
65
  import "./chunk-V2LANK5S.mjs";
64
66
  import "./chunk-QZ6PT4QV.mjs";
65
67
  import "./chunk-QL4XKIVL.mjs";
66
- import "./chunk-4QUHWHBD.mjs";
68
+ import "./chunk-X4X5KUGQ.mjs";
67
69
  import {
68
70
  queryClient
69
71
  } from "./chunk-FXYH54JP.mjs";
@@ -177,65 +179,13 @@ var CampaignSection = ({
177
179
 
178
180
  // src/routes/promotions/promotion-detail/components/promotion-conditions-section/promotion-conditions-section.tsx
179
181
  import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
180
- import { Badge as Badge2, Container as Container2, Heading as Heading2 } from "@medusajs/ui";
181
- import { useTranslation as useTranslation3 } from "react-i18next";
182
-
183
- // src/components/common/badge-list-summary/badge-list-summary.tsx
184
- import { Badge, Tooltip, clx } from "@medusajs/ui";
182
+ import { Badge, Container as Container2, Heading as Heading2 } from "@medusajs/ui";
185
183
  import { useTranslation as useTranslation2 } from "react-i18next";
186
184
  import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
187
- var BadgeListSummary = ({
188
- list,
189
- className,
190
- inline,
191
- rounded = false,
192
- n = 2
193
- }) => {
194
- const { t } = useTranslation2();
195
- const title = t("general.plusCount", {
196
- count: list.length - n
197
- });
198
- return /* @__PURE__ */ jsxs2(
199
- "div",
200
- {
201
- className: clx(
202
- "text-ui-fg-subtle txt-compact-small gap-x-2 overflow-hidden",
203
- {
204
- "inline-flex": inline,
205
- flex: !inline
206
- },
207
- className
208
- ),
209
- children: [
210
- list.slice(0, n).map((item) => {
211
- return /* @__PURE__ */ jsx3(Badge, { rounded: rounded ? "full" : "base", size: "2xsmall", children: item }, item);
212
- }),
213
- list.length > n && /* @__PURE__ */ jsx3("div", { className: "whitespace-nowrap", children: /* @__PURE__ */ jsx3(
214
- Tooltip,
215
- {
216
- content: /* @__PURE__ */ jsx3("ul", { children: list.slice(n).map((c) => /* @__PURE__ */ jsx3("li", { children: c }, c)) }),
217
- children: /* @__PURE__ */ jsx3(
218
- Badge,
219
- {
220
- rounded: rounded ? "full" : "base",
221
- size: "2xsmall",
222
- className: "cursor-default whitespace-nowrap",
223
- children: title
224
- }
225
- )
226
- }
227
- ) })
228
- ]
229
- }
230
- );
231
- };
232
-
233
- // src/routes/promotions/promotion-detail/components/promotion-conditions-section/promotion-conditions-section.tsx
234
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
235
185
  function RuleBlock({ rule }) {
236
- return /* @__PURE__ */ jsx4("div", { className: "bg-ui-bg-subtle shadow-borders-base align-center flex justify-around rounded-md p-2", children: /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle txt-compact-xsmall flex items-center whitespace-nowrap", children: [
237
- /* @__PURE__ */ jsx4(
238
- Badge2,
186
+ return /* @__PURE__ */ jsx3("div", { className: "bg-ui-bg-subtle shadow-borders-base align-center flex justify-around rounded-md p-2", children: /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle txt-compact-xsmall flex items-center whitespace-nowrap", children: [
187
+ /* @__PURE__ */ jsx3(
188
+ Badge,
239
189
  {
240
190
  size: "2xsmall",
241
191
  className: "txt-compact-xsmall-plus tag-neutral-text mx-1 inline-block truncate",
@@ -243,8 +193,8 @@ function RuleBlock({ rule }) {
243
193
  },
244
194
  "rule-attribute"
245
195
  ),
246
- /* @__PURE__ */ jsx4("span", { className: "txt-compact-2xsmall mx-1 inline-block", children: rule.operator_label }),
247
- /* @__PURE__ */ jsx4(
196
+ /* @__PURE__ */ jsx3("span", { className: "txt-compact-2xsmall mx-1 inline-block", children: rule.operator_label }),
197
+ /* @__PURE__ */ jsx3(
248
198
  BadgeListSummary,
249
199
  {
250
200
  inline: true,
@@ -259,20 +209,20 @@ var PromotionConditionsSection = ({
259
209
  ruleType,
260
210
  applicationMethodTargetType
261
211
  }) => {
262
- const { t } = useTranslation3();
263
- return /* @__PURE__ */ jsxs3(Container2, { className: "p-0", children: [
264
- /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", children: [
265
- /* @__PURE__ */ jsx4("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx4(Heading2, { children: t(
212
+ const { t } = useTranslation2();
213
+ return /* @__PURE__ */ jsxs2(Container2, { className: "p-0", children: [
214
+ /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
215
+ /* @__PURE__ */ jsx3("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx3(Heading2, { children: t(
266
216
  ruleType === "target-rules" ? `promotions.fields.conditions.${ruleType}.${applicationMethodTargetType}.title` : `promotions.fields.conditions.${ruleType}.title`
267
217
  ) }) }),
268
- /* @__PURE__ */ jsx4(
218
+ /* @__PURE__ */ jsx3(
269
219
  ActionMenu,
270
220
  {
271
221
  groups: [
272
222
  {
273
223
  actions: [
274
224
  {
275
- icon: /* @__PURE__ */ jsx4(PencilSquare2, {}),
225
+ icon: /* @__PURE__ */ jsx3(PencilSquare2, {}),
276
226
  label: t("actions.edit"),
277
227
  to: `${ruleType}/edit`
278
228
  }
@@ -282,8 +232,8 @@ var PromotionConditionsSection = ({
282
232
  }
283
233
  )
284
234
  ] }),
285
- /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle flex flex-col gap-2 px-6 pb-4 pt-2", children: [
286
- !rules.length && /* @__PURE__ */ jsx4(
235
+ /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle flex flex-col gap-2 px-6 pb-4 pt-2", children: [
236
+ !rules.length && /* @__PURE__ */ jsx3(
287
237
  NoRecords,
288
238
  {
289
239
  className: "h-[180px]",
@@ -296,7 +246,7 @@ var PromotionConditionsSection = ({
296
246
  buttonVariant: "transparentIconLeft"
297
247
  }
298
248
  ),
299
- rules.map((rule) => /* @__PURE__ */ jsx4(RuleBlock, { rule }, `${rule.id}-${rule.attribute}`))
249
+ rules.map((rule) => /* @__PURE__ */ jsx3(RuleBlock, { rule }, `${rule.id}-${rule.attribute}`))
300
250
  ] })
301
251
  ] });
302
252
  };
@@ -304,7 +254,7 @@ var PromotionConditionsSection = ({
304
254
  // src/routes/promotions/promotion-detail/components/promotion-general-section/promotion-general-section.tsx
305
255
  import { PencilSquare as PencilSquare3, Trash } from "@medusajs/icons";
306
256
  import {
307
- Badge as Badge3,
257
+ Badge as Badge2,
308
258
  Container as Container3,
309
259
  Copy,
310
260
  Heading as Heading3,
@@ -312,9 +262,9 @@ import {
312
262
  Text as Text2,
313
263
  usePrompt
314
264
  } from "@medusajs/ui";
315
- import { useTranslation as useTranslation4 } from "react-i18next";
265
+ import { useTranslation as useTranslation3 } from "react-i18next";
316
266
  import { useNavigate } from "react-router-dom";
317
- import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
267
+ import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
318
268
  function getDisplayValue(promotion) {
319
269
  const value = promotion.application_method?.value;
320
270
  if (!value) {
@@ -334,7 +284,7 @@ function getDisplayValue(promotion) {
334
284
  var PromotionGeneralSection = ({
335
285
  promotion
336
286
  }) => {
337
- const { t } = useTranslation4();
287
+ const { t } = useTranslation3();
338
288
  const prompt = usePrompt();
339
289
  const navigate = useNavigate();
340
290
  const { mutateAsync } = useDeletePromotion(promotion.id);
@@ -360,19 +310,19 @@ var PromotionGeneralSection = ({
360
310
  };
361
311
  const [color, text] = getPromotionStatus(promotion);
362
312
  const displayValue = getDisplayValue(promotion);
363
- return /* @__PURE__ */ jsxs4(Container3, { className: "divide-y p-0", children: [
364
- /* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between px-6 py-4", children: [
365
- /* @__PURE__ */ jsx5("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx5(Heading3, { children: promotion.code }) }),
366
- /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-2", children: [
367
- /* @__PURE__ */ jsx5(StatusBadge, { color, children: text }),
368
- /* @__PURE__ */ jsx5(
313
+ return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", children: [
314
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", children: [
315
+ /* @__PURE__ */ jsx4("div", { className: "flex flex-col", children: /* @__PURE__ */ jsx4(Heading3, { children: promotion.code }) }),
316
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
317
+ /* @__PURE__ */ jsx4(StatusBadge, { color, children: text }),
318
+ /* @__PURE__ */ jsx4(
369
319
  ActionMenu,
370
320
  {
371
321
  groups: [
372
322
  {
373
323
  actions: [
374
324
  {
375
- icon: /* @__PURE__ */ jsx5(PencilSquare3, {}),
325
+ icon: /* @__PURE__ */ jsx4(PencilSquare3, {}),
376
326
  label: t("actions.edit"),
377
327
  to: `/promotions/${promotion.id}/edit`
378
328
  }
@@ -381,7 +331,7 @@ var PromotionGeneralSection = ({
381
331
  {
382
332
  actions: [
383
333
  {
384
- icon: /* @__PURE__ */ jsx5(Trash, {}),
334
+ icon: /* @__PURE__ */ jsx4(Trash, {}),
385
335
  label: t("actions.delete"),
386
336
  onClick: handleDelete
387
337
  }
@@ -392,20 +342,20 @@ var PromotionGeneralSection = ({
392
342
  )
393
343
  ] })
394
344
  ] }),
395
- /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
396
- /* @__PURE__ */ jsx5(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.campaign") }),
397
- /* @__PURE__ */ jsx5(Text2, { size: "small", leading: "compact", className: "text-pretty", children: promotion.is_automatic ? t("promotions.form.method.automatic.title") : t("promotions.form.method.code.title") })
345
+ /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
346
+ /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.campaign") }),
347
+ /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty", children: promotion.is_automatic ? t("promotions.form.method.automatic.title") : t("promotions.form.method.code.title") })
398
348
  ] }),
399
- /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
400
- /* @__PURE__ */ jsx5(Text2, { size: "small", weight: "plus", leading: "compact", children: t("fields.code") }),
401
- /* @__PURE__ */ jsx5(
349
+ /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
350
+ /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("fields.code") }),
351
+ /* @__PURE__ */ jsx4(
402
352
  Copy,
403
353
  {
404
354
  content: promotion.code,
405
355
  className: "text-ui-tag-neutral-text",
406
356
  asChild: true,
407
- children: /* @__PURE__ */ jsx5(
408
- Badge3,
357
+ children: /* @__PURE__ */ jsx4(
358
+ Badge2,
409
359
  {
410
360
  size: "2xsmall",
411
361
  rounded: "full",
@@ -416,30 +366,30 @@ var PromotionGeneralSection = ({
416
366
  }
417
367
  )
418
368
  ] }),
419
- /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
420
- /* @__PURE__ */ jsx5(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.type") }),
421
- /* @__PURE__ */ jsx5(Text2, { size: "small", leading: "compact", className: "text-pretty capitalize", children: promotion.type })
369
+ /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
370
+ /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.type") }),
371
+ /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty capitalize", children: promotion.type })
422
372
  ] }),
423
- /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
424
- /* @__PURE__ */ jsx5(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.value") }),
425
- /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-2", children: [
426
- /* @__PURE__ */ jsx5(Text2, { className: "inline", size: "small", leading: "compact", children: displayValue || "-" }),
427
- promotion?.application_method?.type === "fixed" && /* @__PURE__ */ jsx5(Badge3, { size: "2xsmall", rounded: "full", children: promotion?.application_method?.currency_code?.toUpperCase() })
373
+ /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
374
+ /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.value") }),
375
+ /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-2", children: [
376
+ /* @__PURE__ */ jsx4(Text2, { className: "inline", size: "small", leading: "compact", children: displayValue || "-" }),
377
+ promotion?.application_method?.type === "fixed" && /* @__PURE__ */ jsx4(Badge2, { size: "2xsmall", rounded: "full", children: promotion?.application_method?.currency_code?.toUpperCase() })
428
378
  ] })
429
379
  ] }),
430
- /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
431
- /* @__PURE__ */ jsx5(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.allocation") }),
432
- /* @__PURE__ */ jsx5(Text2, { size: "small", leading: "compact", className: "text-pretty capitalize", children: promotion.application_method?.allocation })
380
+ /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
381
+ /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.allocation") }),
382
+ /* @__PURE__ */ jsx4(Text2, { size: "small", leading: "compact", className: "text-pretty capitalize", children: promotion.application_method?.allocation })
433
383
  ] }),
434
- promotion.application_method?.type === "fixed" && /* @__PURE__ */ jsxs4("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
435
- /* @__PURE__ */ jsx5(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.taxInclusive") }),
436
- /* @__PURE__ */ jsx5("div", { className: "flex items-center gap-x-2", children: /* @__PURE__ */ jsx5(Text2, { className: "inline", size: "small", leading: "compact", children: promotion.is_tax_inclusive ? t("fields.true") : t("fields.false") }) })
384
+ promotion.application_method?.type === "fixed" && /* @__PURE__ */ jsxs3("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-start px-6 py-4", children: [
385
+ /* @__PURE__ */ jsx4(Text2, { size: "small", weight: "plus", leading: "compact", children: t("promotions.fields.taxInclusive") }),
386
+ /* @__PURE__ */ jsx4("div", { className: "flex items-center gap-x-2", children: /* @__PURE__ */ jsx4(Text2, { className: "inline", size: "small", leading: "compact", children: promotion.is_tax_inclusive ? t("fields.true") : t("fields.false") }) })
437
387
  ] })
438
388
  ] });
439
389
  };
440
390
 
441
391
  // src/routes/promotions/promotion-detail/promotion-detail.tsx
442
- import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
392
+ import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
443
393
  var PromotionDetail = () => {
444
394
  const initialData = useLoaderData();
445
395
  const { id } = useParams2();
@@ -453,9 +403,9 @@ var PromotionDetail = () => {
453
403
  const { rules: buyRules } = usePromotionRules(id, "buy-rules", query);
454
404
  const { getWidgets } = useExtension();
455
405
  if (isLoading || !promotion) {
456
- return /* @__PURE__ */ jsx6(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 1, showJSON: true });
406
+ return /* @__PURE__ */ jsx5(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 1, showJSON: true });
457
407
  }
458
- return /* @__PURE__ */ jsxs5(
408
+ return /* @__PURE__ */ jsxs4(
459
409
  TwoColumnPage,
460
410
  {
461
411
  data: promotion,
@@ -468,10 +418,10 @@ var PromotionDetail = () => {
468
418
  hasOutlet: true,
469
419
  showJSON: true,
470
420
  children: [
471
- /* @__PURE__ */ jsxs5(TwoColumnPage.Main, { children: [
472
- /* @__PURE__ */ jsx6(PromotionGeneralSection, { promotion }),
473
- /* @__PURE__ */ jsx6(PromotionConditionsSection, { rules: rules || [], ruleType: "rules" }),
474
- /* @__PURE__ */ jsx6(
421
+ /* @__PURE__ */ jsxs4(TwoColumnPage.Main, { children: [
422
+ /* @__PURE__ */ jsx5(PromotionGeneralSection, { promotion }),
423
+ /* @__PURE__ */ jsx5(PromotionConditionsSection, { rules: rules || [], ruleType: "rules" }),
424
+ /* @__PURE__ */ jsx5(
475
425
  PromotionConditionsSection,
476
426
  {
477
427
  rules: targetRules || [],
@@ -479,7 +429,7 @@ var PromotionDetail = () => {
479
429
  applicationMethodTargetType: promotion.application_method.target_type || "items"
480
430
  }
481
431
  ),
482
- promotion.type === "buyget" && /* @__PURE__ */ jsx6(
432
+ promotion.type === "buyget" && /* @__PURE__ */ jsx5(
483
433
  PromotionConditionsSection,
484
434
  {
485
435
  rules: buyRules || [],
@@ -488,7 +438,7 @@ var PromotionDetail = () => {
488
438
  }
489
439
  )
490
440
  ] }),
491
- /* @__PURE__ */ jsx6(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx6(CampaignSection, { campaign: promotion.campaign }) })
441
+ /* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(CampaignSection, { campaign: promotion.campaign }) })
492
442
  ]
493
443
  }
494
444
  );
@@ -7,7 +7,7 @@ import {
7
7
  } from "./chunk-DK4WIVY6.mjs";
8
8
  import {
9
9
  SwitchBox
10
- } from "./chunk-PRLQLEEQ.mjs";
10
+ } from "./chunk-D7H6ZNK4.mjs";
11
11
  import "./chunk-IUCDCPJU.mjs";
12
12
  import {
13
13
  KeyboundForm
@@ -16,16 +16,13 @@ import {
16
16
  RouteDrawer,
17
17
  useRouteModal
18
18
  } from "./chunk-4TC5YS65.mjs";
19
- import {
20
- useDocumentDirection
21
- } from "./chunk-S4DMV3ZT.mjs";
22
19
  import {
23
20
  Form
24
21
  } from "./chunk-OBQI23QM.mjs";
25
22
  import {
26
23
  usePromotion,
27
24
  useUpdatePromotion
28
- } from "./chunk-R2G2B47Y.mjs";
25
+ } from "./chunk-ZODJNBAV.mjs";
29
26
  import "./chunk-FXYH54JP.mjs";
30
27
  import "./chunk-774WSTCC.mjs";
31
28
  import "./chunk-DEQUVHHE.mjs";
@@ -112,7 +109,6 @@ var EditPromotionDetailsForm = ({
112
109
  form.setValue("is_tax_inclusive", false);
113
110
  }
114
111
  }, [allocationWatchValue, form, promotion]);
115
- const direction = useDocumentDirection();
116
112
  return /* @__PURE__ */ jsx(RouteDrawer.Form, { form, children: /* @__PURE__ */ jsxs(
117
113
  KeyboundForm,
118
114
  {
@@ -131,7 +127,6 @@ var EditPromotionDetailsForm = ({
131
127
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
132
128
  RadioGroup,
133
129
  {
134
- dir: direction,
135
130
  className: "flex-col gap-y-3",
136
131
  ...field,
137
132
  value: field.value,
@@ -186,7 +181,6 @@ var EditPromotionDetailsForm = ({
186
181
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
187
182
  RadioGroup,
188
183
  {
189
- dir: direction,
190
184
  className: "flex-col gap-y-3",
191
185
  ...field,
192
186
  value: field.value,
@@ -272,7 +266,6 @@ var EditPromotionDetailsForm = ({
272
266
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
273
267
  RadioGroup,
274
268
  {
275
- dir: direction,
276
269
  className: "flex-col gap-y-3",
277
270
  ...field,
278
271
  onValueChange: field.onChange,
@@ -364,7 +357,6 @@ var EditPromotionDetailsForm = ({
364
357
  /* @__PURE__ */ jsx(Form.Control, { children: /* @__PURE__ */ jsxs(
365
358
  RadioGroup,
366
359
  {
367
- dir: direction,
368
360
  className: "flex-col gap-y-3",
369
361
  ...field,
370
362
  onValueChange: field.onChange,