@mercurjs/admin 2.2.0-canary.38 → 2.2.0-canary.40

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 (232) hide show
  1. package/dist/{add-campaign-promotions-FWYK3JCR.js → add-campaign-promotions-QK73ARX4.js} +4 -4
  2. package/dist/{adjust-inventory-TECW4NNX.js → adjust-inventory-X45NEQFK.js} +1 -1
  3. package/dist/{api-key-management-detail-2LYSINFY.js → api-key-management-detail-HKNZPPR2.js} +3 -4
  4. package/dist/{api-key-management-list-SXHZJUJB.js → api-key-management-list-5RXBJ24C.js} +2 -2
  5. package/dist/{api-key-management-sales-channels-EEM7UDTZ.js → api-key-management-sales-channels-4GLVMHU6.js} +1 -2
  6. package/dist/{attribute-create-HSR7XVKG.js → attribute-create-VGL7LGIH.js} +10 -19
  7. package/dist/{attribute-detail-7EBAQ26V.js → attribute-detail-EKDAYT4B.js} +15 -6
  8. package/dist/{attribute-edit-EQH3YMGW.js → attribute-edit-OBNLNOJS.js} +4 -4
  9. package/dist/{attribute-edit-possible-value-X7XTAVVL.js → attribute-edit-possible-value-QDFVWLA3.js} +2 -2
  10. package/dist/{attribute-edit-ranking-CHWUVK5Z.js → attribute-edit-ranking-YGR3KCSC.js} +1 -1
  11. package/dist/{attribute-list-G73VHMFA.js → attribute-list-6A72PBIY.js} +3 -3
  12. package/dist/{breadcrumb-DZTALOFP.js → breadcrumb-GHBR74WM.js} +2 -2
  13. package/dist/{breadcrumb-EPNBJF4V.js → breadcrumb-IEEJTH47.js} +1 -1
  14. package/dist/{campaign-detail-I6KGCHUL.js → campaign-detail-RNB3FEJZ.js} +6 -6
  15. package/dist/{campaign-list-FFGRXEVJ.js → campaign-list-CDV4GWWD.js} +2 -2
  16. package/dist/{categories-metadata-SWFS4FL4.js → categories-metadata-4LXL2PWA.js} +2 -2
  17. package/dist/{category-detail-ZEOXQF7F.js → category-detail-557376TZ.js} +7 -7
  18. package/dist/{category-list-7ILXI55P.js → category-list-XKRI24VN.js} +2 -2
  19. package/dist/{category-products-UFKHB7YL.js → category-products-44PCDDNN.js} +6 -6
  20. package/dist/{chunk-S22SK4KO.js → chunk-25U23TXK.js} +1 -1
  21. package/dist/{chunk-DI2KBXVH.js → chunk-2Z2M5K5A.js} +2 -2
  22. package/dist/{chunk-CIKPTKSX.js → chunk-3BTRS4AA.js} +2 -2
  23. package/dist/{chunk-P4LTLPTK.js → chunk-4346EIRG.js} +1 -1
  24. package/dist/{chunk-MYJJMHR5.js → chunk-4BPQNCF5.js} +1 -1
  25. package/dist/{chunk-CB7DBYH4.js → chunk-4C7L7TJT.js} +1 -13
  26. package/dist/{chunk-5K5VNKSE.js → chunk-56UFDHNO.js} +1 -1
  27. package/dist/{chunk-5GVJXMOU.js → chunk-5ACJR6WB.js} +2 -2
  28. package/dist/{chunk-I3ARNGRC.js → chunk-65YE4SVL.js} +1 -1
  29. package/dist/{chunk-2YAVXVET.js → chunk-6BWJWA2F.js} +1 -1
  30. package/dist/{chunk-PWLDTJJX.js → chunk-6KWWJE5P.js} +4 -4
  31. package/dist/{chunk-HSL5IICN.js → chunk-6ZVV2XHU.js} +1 -1
  32. package/dist/{chunk-72SDBLWQ.js → chunk-7O7LYBHL.js} +4 -4
  33. package/dist/{chunk-RWAEZQCV.js → chunk-7OKYEA6I.js} +96 -6
  34. package/dist/{chunk-CE2WRTS7.js → chunk-AMZ2QSSI.js} +1 -1
  35. package/dist/{chunk-74WEDBZ7.js → chunk-BFUHW56P.js} +1 -1
  36. package/dist/{chunk-NS3GQ2J6.js → chunk-BILFRATX.js} +0 -9
  37. package/dist/{chunk-5NC6SI6J.js → chunk-BTJR5RSV.js} +3 -3
  38. package/dist/{chunk-TAM24IMD.js → chunk-CHMIK6PK.js} +2 -2
  39. package/dist/{chunk-WBSUHLO7.js → chunk-DI2M3J5Q.js} +1 -1
  40. package/dist/{chunk-QAWWIM4I.js → chunk-DPG4AWSG.js} +2 -2
  41. package/dist/{chunk-YZBEJ3CY.js → chunk-DSTHXHJ5.js} +1500 -1370
  42. package/dist/{chunk-RDUSAVT3.js → chunk-EGHDC6K6.js} +3 -3
  43. package/dist/{chunk-2DSCC2VR.js → chunk-EOSJHPHN.js} +1 -1
  44. package/dist/{chunk-PNZI5C5A.js → chunk-EX4AGESR.js} +71 -67
  45. package/dist/{chunk-VPPUFVFJ.js → chunk-F2SZ4LPF.js} +63 -6
  46. package/dist/{chunk-NKV5XPNS.js → chunk-FICKHCWL.js} +2 -3
  47. package/dist/{chunk-OI4DJXUL.js → chunk-FMJBQE56.js} +1 -1
  48. package/dist/{chunk-KRECA22N.js → chunk-GCU4LHGY.js} +3 -3
  49. package/dist/{chunk-ZHT3Y47H.js → chunk-GISFIAGQ.js} +2 -2
  50. package/dist/{chunk-DISTPZNS.js → chunk-GWSRWILC.js} +1 -1
  51. package/dist/{chunk-TG5BBZ3B.js → chunk-HI7NZVSJ.js} +1 -1
  52. package/dist/{offers-3HP7SICL.js → chunk-HQM7D57C.js} +126 -255
  53. package/dist/{chunk-O5MW4WPZ.js → chunk-HRDVGFS7.js} +1 -1
  54. package/dist/{chunk-4JUT54KO.js → chunk-HT34QVZR.js} +1 -1
  55. package/dist/{chunk-LRJNSCMR.js → chunk-IVBNI2QE.js} +3 -3
  56. package/dist/{chunk-S6A4FVM2.js → chunk-IWBQZK6E.js} +0 -4
  57. package/dist/{chunk-LBLWPBST.js → chunk-IZDTQFCP.js} +3 -1
  58. package/dist/{chunk-45O5MFCT.js → chunk-J3L2FUIA.js} +6 -5
  59. package/dist/{chunk-XFKDDRB6.js → chunk-JEDX4KBB.js} +1 -1
  60. package/dist/{chunk-7DHSWPU2.js → chunk-JSVYNNPF.js} +2 -4
  61. package/dist/{chunk-2S2SBRZP.js → chunk-JU2O2H7I.js} +7 -6
  62. package/dist/{chunk-LH4WPKYK.js → chunk-K7H77TA5.js} +1 -1
  63. package/dist/{chunk-HWWET5ZP.js → chunk-KFYTUQXT.js} +3 -3
  64. package/dist/{chunk-CYACZXMQ.js → chunk-KGA2XI6W.js} +2 -2
  65. package/dist/{chunk-FBDAKD4B.js → chunk-KT4DGVRQ.js} +2 -2
  66. package/dist/{chunk-VSKHV5QF.js → chunk-LQSSUC7W.js} +1 -1
  67. package/dist/{chunk-Y62TJJ3P.js → chunk-LVRCEGL7.js} +3 -3
  68. package/dist/{chunk-SIOKPEVN.js → chunk-ML7UVBKL.js} +1 -1
  69. package/dist/{chunk-6FNIEKSN.js → chunk-MOG7LT73.js} +4 -4
  70. package/dist/{chunk-23OLYWMR.js → chunk-MZOINNCV.js} +1 -1
  71. package/dist/{chunk-RNDDYLHV.js → chunk-NISAIYSW.js} +3 -3
  72. package/dist/{chunk-YNK25LVO.js → chunk-NWSKT55Z.js} +2 -2
  73. package/dist/{chunk-MANRAV52.js → chunk-NZVS6B77.js} +6 -9
  74. package/dist/{chunk-DWNUEPMI.js → chunk-OAN4CZKX.js} +3 -10
  75. package/dist/{chunk-O53E5U52.js → chunk-OYZIFLLC.js} +1 -1
  76. package/dist/{chunk-SLKOHWKT.js → chunk-PMVWIBTI.js} +1 -1
  77. package/dist/{chunk-CY263OE4.js → chunk-Q6QXFLUY.js} +1 -1
  78. package/dist/{chunk-ZPEMWHUW.js → chunk-RIO2IHPE.js} +1 -1
  79. package/dist/{chunk-5DQED4UT.js → chunk-TDJSZ73V.js} +1 -1
  80. package/dist/{chunk-LX5XLXPI.js → chunk-TH26CWVG.js} +1 -1
  81. package/dist/{chunk-EJYLSQVT.js → chunk-THPXRTE5.js} +2 -2
  82. package/dist/{chunk-QH34LF36.js → chunk-TZM63FZ4.js} +2 -2
  83. package/dist/{chunk-IRX6RBTE.js → chunk-UZ452ISX.js} +3 -3
  84. package/dist/{chunk-KC4J2WOM.js → chunk-VBKFXL2Q.js} +1 -1
  85. package/dist/{chunk-THNFAN23.js → chunk-VGXJXU7X.js} +1 -1
  86. package/dist/{chunk-Y5JQAKX7.js → chunk-VJ4LQXMA.js} +2 -2
  87. package/dist/{chunk-IQDZZ5EQ.js → chunk-VPYI4X6C.js} +1 -1
  88. package/dist/{chunk-3OD3YOA3.js → chunk-VYQ6ASFF.js} +2 -2
  89. package/dist/{chunk-GUDWUAMT.js → chunk-W3P3RP5R.js} +1 -1
  90. package/dist/{chunk-JUMT5GX7.js → chunk-W7CJSBDM.js} +3 -3
  91. package/dist/{chunk-WKTRJNOK.js → chunk-WKDHY2DJ.js} +1 -1
  92. package/dist/{chunk-AROCMF45.js → chunk-X5PMVI7H.js} +2 -2
  93. package/dist/{chunk-TBKNLE4M.js → chunk-YRUCTB6M.js} +1 -1
  94. package/dist/{chunk-7RWFRMQG.js → chunk-ZU74CNL4.js} +1 -1
  95. package/dist/{collection-add-products-MJYMPNLP.js → collection-add-products-JFUIZEZI.js} +6 -6
  96. package/dist/{collection-detail-C4ZCH55B.js → collection-detail-2WOLOVWF.js} +7 -7
  97. package/dist/{collection-list-4UX2LLQV.js → collection-list-B3Y2ALLZ.js} +7 -7
  98. package/dist/{collection-metadata-UEYHULPR.js → collection-metadata-SBK6SL4C.js} +2 -2
  99. package/dist/{commission-rule-commission-edit-EXLLNUKM.js → commission-rule-commission-edit-V5JVRNZN.js} +1 -3
  100. package/dist/{commission-rule-create-3MCNOSWN.js → commission-rule-create-EZ2C6AWK.js} +1 -3
  101. package/dist/{commission-rule-detail-RO5KXLGT.js → commission-rule-detail-ZQ3OHFA2.js} +3 -3
  102. package/dist/{commission-rule-edit-X45EQ6BK.js → commission-rule-edit-NQ5EYCGO.js} +1 -3
  103. package/dist/{commissions-list-MZY7KOP5.js → commissions-list-M5WLJD2P.js} +4 -4
  104. package/dist/{customer-detail-FRGVVWTZ.js → customer-detail-ZGDPIWA4.js} +5 -5
  105. package/dist/{customer-group-add-customers-QBRVKXGO.js → customer-group-add-customers-O6A5ZFPM.js} +1 -1
  106. package/dist/{customer-group-detail-KIC2TWZ3.js → customer-group-detail-FXUICFYC.js} +3 -3
  107. package/dist/{customer-group-list-BRH6SWRD.js → customer-group-list-R2DP2D42.js} +4 -4
  108. package/dist/{customer-group-metadata-S6NJRGYO.js → customer-group-metadata-JX7ZBXLJ.js} +2 -2
  109. package/dist/{customer-list-276YPXTE.js → customer-list-Z4DUQHCH.js} +2 -2
  110. package/dist/{customer-metadata-C66G3AS7.js → customer-metadata-JT5GGCRV.js} +2 -2
  111. package/dist/{customers-add-customer-group-C4Y6P45C.js → customers-add-customer-group-KX3XNNMU.js} +3 -3
  112. package/dist/{edit-inventory-item-IIJH26PK.js → edit-inventory-item-73BY4I5T.js} +1 -1
  113. package/dist/{edit-inventory-item-attributes-KTMOGG4V.js → edit-inventory-item-attributes-ZMB343AB.js} +1 -1
  114. package/dist/{edit-rules-WOQNXKZZ.js → edit-rules-4PPNBI7B.js} +2 -2
  115. package/dist/{global-commission-edit-7ZMMIV7B.js → global-commission-edit-TRSS5JBH.js} +1 -3
  116. package/dist/index.css +3 -0
  117. package/dist/index.js +185 -185
  118. package/dist/{inventory-create-M3YBQVNG.js → inventory-create-XQKH3HZQ.js} +2 -2
  119. package/dist/{inventory-detail-6PAVKSOK.js → inventory-detail-RZJNTJDF.js} +3 -3
  120. package/dist/{inventory-list-U4W4AP4E.js → inventory-list-SPSBDJXO.js} +2 -2
  121. package/dist/{inventory-metadata-OS6KHY52.js → inventory-metadata-W2E4KYG3.js} +2 -2
  122. package/dist/{inventory-stock-XQWWFVQ3.js → inventory-stock-D2BNT2UL.js} +5 -5
  123. package/dist/loader-HRFMJ5TM.js +36 -0
  124. package/dist/{loader-P2HT7LSL.js → loader-TIPLOZF7.js} +2 -2
  125. package/dist/{location-detail-LK736WHY.js → location-detail-CNETNX3M.js} +1 -1
  126. package/dist/{location-fulfillment-providers-Z3PR4MQI.js → location-fulfillment-providers-XXZ7AIUF.js} +5 -5
  127. package/dist/{location-list-HFVPD3JF.js → location-list-RHUT7IRA.js} +1 -1
  128. package/dist/{location-sales-channels-WZJ3JWQF.js → location-sales-channels-ZQBQ3VDH.js} +1 -2
  129. package/dist/{location-service-zone-create-U77V3ROT.js → location-service-zone-create-O6GYRZEE.js} +2 -2
  130. package/dist/{location-service-zone-manage-areas-FUUAAIDJ.js → location-service-zone-manage-areas-DBP3P27I.js} +2 -2
  131. package/dist/{location-service-zone-shipping-option-create-NFKZT2HM.js → location-service-zone-shipping-option-create-3PQ2EYD7.js} +1 -1
  132. package/dist/{login-IOW5R2ZZ.js → login-OKBXMSKY.js} +1 -1
  133. package/dist/{marketplace-add-currencies-KDNMN57C.js → marketplace-add-currencies-IPE5RJF6.js} +1 -1
  134. package/dist/{marketplace-detail-X5AQWO7P.js → marketplace-detail-IHGJXVZS.js} +3 -3
  135. package/dist/{marketplace-edit-26PFXTVD.js → marketplace-edit-WG6LMQ2P.js} +1 -1
  136. package/dist/{marketplace-metadata-RNNA4S3F.js → marketplace-metadata-STYABOTX.js} +2 -2
  137. package/dist/{offer-detail-page-4GNU35AH.js → offer-detail-page-2G5BUOIB.js} +134 -121
  138. package/dist/{offer-variant-detail-page-FFPV7N7Y.js → offer-variant-detail-page-V6TKNYZL.js} +5 -5
  139. package/dist/offers-2QQFKGAX.js +183 -0
  140. package/dist/{order-create-claim-MEXSDGHW.js → order-create-claim-Y7ESDXLI.js} +4 -4
  141. package/dist/{order-create-edit-M2F6CG3M.js → order-create-edit-6L5S7KQM.js} +4 -4
  142. package/dist/{order-create-exchange-HTWFKJOM.js → order-create-exchange-WHO3K2MW.js} +5 -5
  143. package/dist/{order-create-refund-DWIGXSYJ.js → order-create-refund-4ZO73NWS.js} +1 -1
  144. package/dist/{order-create-return-DDOYLDT7.js → order-create-return-R5WJBQ5W.js} +1 -1
  145. package/dist/{order-detail-QYZGM7OO.js → order-detail-QUGH2GXH.js} +3 -3
  146. package/dist/{order-edit-billing-address-JHJ7PCPC.js → order-edit-billing-address-BEOKFNLZ.js} +2 -2
  147. package/dist/{order-edit-email-OAU3YX45.js → order-edit-email-GLAQZCIT.js} +1 -1
  148. package/dist/{order-edit-shipping-address-RAO5IKGM.js → order-edit-shipping-address-PF54SFAG.js} +1 -1
  149. package/dist/{order-list-5PVFAFJT.js → order-list-GMUOLGZY.js} +6 -6
  150. package/dist/{order-metadata-IUBTCJQW.js → order-metadata-VQOA3DOL.js} +2 -2
  151. package/dist/{order-request-transfer-2J4CN5JP.js → order-request-transfer-BLQQ66IF.js} +1 -1
  152. package/dist/pages/index.d.ts +69 -69
  153. package/dist/pages/index.js +69 -68
  154. package/dist/{payout-list-SOWVPSFQ.js → payout-list-3GQJQSVU.js} +2 -2
  155. package/dist/{price-list-configuration-BIHWXMYS.js → price-list-configuration-BLHIGDSV.js} +4 -4
  156. package/dist/{price-list-create-XV6OY4A2.js → price-list-create-HKN72A6Q.js} +9 -9
  157. package/dist/{price-list-detail-IUZU5OA7.js → price-list-detail-6JAMNNJW.js} +7 -7
  158. package/dist/{price-list-list-A42VGE3L.js → price-list-list-HLWCOORV.js} +2 -2
  159. package/dist/{price-list-prices-add-KUBO4DCC.js → price-list-prices-add-ST6WNQNH.js} +7 -7
  160. package/dist/{price-list-prices-edit-PJ4CPB5I.js → price-list-prices-edit-ZQE3Z3NK.js} +1 -1
  161. package/dist/{product-add-existing-attributes-3BJ5KV2V.js → product-add-existing-attributes-J6MML6MT.js} +3 -3
  162. package/dist/{product-create-EGL6UJKX.js → product-create-B4DTC2OM.js} +5 -5
  163. package/dist/{product-create-attribute-DQ2RMDPZ.js → product-create-attribute-BP6NN4GO.js} +1 -1
  164. package/dist/{product-create-variant-TBJJ74ZR.js → product-create-variant-VDQQNHAK.js} +3 -3
  165. package/dist/{product-detail-SNS2DQ6Q.js → product-detail-MFJ3AIU6.js} +4 -4
  166. package/dist/{product-edit-attribute-BSPIDAZJ.js → product-edit-attribute-AXPTES26.js} +2 -2
  167. package/dist/{product-list-LGS3O2OJ.js → product-list-DMQSLXM4.js} +7 -7
  168. package/dist/{product-media-JKUDYI32.js → product-media-XRBLOV7D.js} +3 -3
  169. package/dist/{product-metadata-4O5YDITE.js → product-metadata-LOF6TSJQ.js} +2 -2
  170. package/dist/{product-organization-AIM3LNQ6.js → product-organization-ISVMEWQG.js} +1 -1
  171. package/dist/{product-sales-channels-73JEGJIY.js → product-sales-channels-C6UUHWGB.js} +1 -2
  172. package/dist/{product-tag-create-PSLHVOED.js → product-tag-create-AHG3Y4GE.js} +1 -1
  173. package/dist/{product-tag-detail-MI7B2MPH.js → product-tag-detail-4FL4CU5S.js} +9 -9
  174. package/dist/{product-tag-edit-7RYZN7ZP.js → product-tag-edit-ACHNVZZP.js} +1 -1
  175. package/dist/{product-tag-list-7CE4KJ3G.js → product-tag-list-YPTIDXPX.js} +9 -9
  176. package/dist/{product-tag-metadata-Z26DWSRN.js → product-tag-metadata-BXC7GMBB.js} +2 -2
  177. package/dist/{product-type-detail-O2WGGFRT.js → product-type-detail-RAYCHYAF.js} +7 -7
  178. package/dist/{product-type-list-XTVTT7ZA.js → product-type-list-JN4SKTFE.js} +2 -2
  179. package/dist/{product-type-metadata-2YKEGWRE.js → product-type-metadata-24JU4JNK.js} +2 -2
  180. package/dist/{product-variant-detail-OZYQPDVX.js → product-variant-detail-7CFNAI3A.js} +1 -1
  181. package/dist/{product-variant-edit-M74OAUM5.js → product-variant-edit-C4HXFQFW.js} +3 -3
  182. package/dist/{product-variant-metadata-VA4NDA53.js → product-variant-metadata-5PUBLPDN.js} +2 -2
  183. package/dist/{promotion-create-TOOHWR6S.js → promotion-create-7VBA6JFM.js} +3 -3
  184. package/dist/{promotion-detail-WFB2ZFPH.js → promotion-detail-KXXWEFHW.js} +4 -4
  185. package/dist/{promotion-edit-details-APVHD6J4.js → promotion-edit-details-YM5JPGEC.js} +2 -7
  186. package/dist/{promotion-list-VLCRCI2K.js → promotion-list-56ZDROMH.js} +5 -5
  187. package/dist/{refund-reason-create-NA42SWWI.js → refund-reason-create-UA3XS6DP.js} +1 -1
  188. package/dist/{refund-reason-edit-WMKHZ6SN.js → refund-reason-edit-3TAGKV3U.js} +1 -1
  189. package/dist/{refund-reason-list-XMDZO34F.js → refund-reason-list-PBLA5HYO.js} +6 -6
  190. package/dist/{region-add-countries-IIHNNE76.js → region-add-countries-UO5A42HM.js} +1 -1
  191. package/dist/{region-create-PHZNUCJR.js → region-create-7NA6RKWS.js} +1 -1
  192. package/dist/{region-detail-AECQQ62I.js → region-detail-636IAPYK.js} +2 -2
  193. package/dist/{region-list-IBQW5J3R.js → region-list-GIU6NFI4.js} +2 -2
  194. package/dist/{region-metadata-GWN4DS4V.js → region-metadata-NRV3L42D.js} +2 -2
  195. package/dist/{reservation-detail-JSLACR7K.js → reservation-detail-MAWHNY2H.js} +1 -1
  196. package/dist/{reservation-list-IUYMT4U6.js → reservation-list-UWZRPRPH.js} +2 -2
  197. package/dist/{reservation-metadata-YNCMFQIX.js → reservation-metadata-ZFKKAOWG.js} +2 -2
  198. package/dist/{reset-password-OL6EA5F2.js → reset-password-UDA5ZMTZ.js} +1 -1
  199. package/dist/{return-reason-list-FRHFRNKK.js → return-reason-list-NPAAMB5H.js} +6 -6
  200. package/dist/{sales-channel-add-products-ZZPVF5CH.js → sales-channel-add-products-2BBIMN6N.js} +6 -6
  201. package/dist/{sales-channel-detail-DNZXUBSN.js → sales-channel-detail-D5R7HPC7.js} +7 -7
  202. package/dist/{sales-channel-list-PPESHWHA.js → sales-channel-list-LVW7XE7K.js} +3 -4
  203. package/dist/{sales-channel-metadata-7HVLURGB.js → sales-channel-metadata-5W4OZZYI.js} +2 -2
  204. package/dist/{shipping-option-type-create-UFXLX52L.js → shipping-option-type-create-GHOCZT64.js} +1 -1
  205. package/dist/{shipping-option-type-detail-OCOL5H4I.js → shipping-option-type-detail-W32EHTBS.js} +1 -1
  206. package/dist/{shipping-option-type-edit-2WVBG2XS.js → shipping-option-type-edit-KRIP6HTC.js} +1 -1
  207. package/dist/{shipping-option-type-list-AW2ZA4V5.js → shipping-option-type-list-4FML2ZX5.js} +3 -3
  208. package/dist/{shipping-profile-metadata-N2AXNBZT.js → shipping-profile-metadata-52ZW757T.js} +2 -2
  209. package/dist/{shipping-profiles-list-4VHKTKIL.js → shipping-profiles-list-PZQVMKR4.js} +2 -2
  210. package/dist/{store-address-edit-KITVKFMG.js → store-address-edit-IJ2UW6WC.js} +2 -2
  211. package/dist/{store-bulk-edit-SZ3UEDWJ.js → store-bulk-edit-OIYKZ6AZ.js} +2 -2
  212. package/dist/{store-closure-edit-MMGDJGV3.js → store-closure-edit-H3EKROXP.js} +1 -1
  213. package/dist/{store-create-QUGCV5IG.js → store-create-Y3BGG5P5.js} +3 -3
  214. package/dist/{store-details-4XVEWNIX.js → store-details-56IHJJQV.js} +8 -8
  215. package/dist/{store-edit-KJTO3ZUP.js → store-edit-HWOGEOCH.js} +4 -4
  216. package/dist/{store-list-LSADPRI2.js → store-list-5DRW6QZF.js} +7 -7
  217. package/dist/{store-member-invite-3G4PCBJ2.js → store-member-invite-7ORIMT73.js} +3 -3
  218. package/dist/{store-payment-details-edit-5LT4OIMA.js → store-payment-details-edit-ERRJDLBO.js} +1 -1
  219. package/dist/{store-professional-details-edit-ARR5WRGC.js → store-professional-details-edit-VD2J4VYV.js} +1 -1
  220. package/dist/{tax-region-create-MPKY5KXL.js → tax-region-create-GGDCD2VU.js} +2 -2
  221. package/dist/{tax-region-detail-Q3NZI26Z.js → tax-region-detail-L7STT6C7.js} +1 -1
  222. package/dist/{tax-region-edit-UMPFELDL.js → tax-region-edit-6JOV3POI.js} +1 -1
  223. package/dist/{tax-region-metadata-UAGL3HYV.js → tax-region-metadata-4P667IOY.js} +2 -2
  224. package/dist/{tax-region-province-detail-JQQQXONY.js → tax-region-province-detail-2GRPOSWS.js} +1 -1
  225. package/dist/{tax-region-tax-override-create-X3WQVHYV.js → tax-region-tax-override-create-R5GKEOK6.js} +9 -9
  226. package/dist/{tax-region-tax-override-edit-SYK2O5BK.js → tax-region-tax-override-edit-MLJKNLAR.js} +9 -9
  227. package/dist/{user-invite-UN6NCCII.js → user-invite-FCWARLW5.js} +1 -1
  228. package/dist/{user-list-27ZKEJXN.js → user-list-OU6WS25V.js} +2 -2
  229. package/dist/{user-metadata-EKIWOTII.js → user-metadata-CHHV7S3A.js} +2 -2
  230. package/package.json +12 -12
  231. package/dist/chunk-DGCPYCHU.js +0 -98
  232. package/dist/loader-DHCULYGY.js +0 -32
@@ -1,18 +1,14 @@
1
- import "./chunk-NKV5XPNS.js";
1
+ import {
2
+ OfferStoreSidebar
3
+ } from "./chunk-FICKHCWL.js";
2
4
  import {
3
5
  OFFER_PRODUCT_DETAIL_FIELDS
4
- } from "./chunk-S6A4FVM2.js";
6
+ } from "./chunk-IWBQZK6E.js";
5
7
  import {
6
8
  useBulkDeleteOffers
7
- } from "./chunk-LBLWPBST.js";
9
+ } from "./chunk-IZDTQFCP.js";
8
10
  import "./chunk-PXYDR7WQ.js";
9
- import {
10
- useDataTableDateFilters
11
- } from "./chunk-DGCPYCHU.js";
12
11
  import "./chunk-PHOCVOZ5.js";
13
- import {
14
- DataTable
15
- } from "./chunk-C4XKPQ6T.js";
16
12
  import "./chunk-IQPN4PZJ.js";
17
13
  import {
18
14
  ProductMediaSection
@@ -28,18 +24,22 @@ import {
28
24
  Thumbnail
29
25
  } from "./chunk-WIYFXWRI.js";
30
26
  import "./chunk-FQERBIVS.js";
31
- import "./chunk-HSL5IICN.js";
27
+ import {
28
+ _DataTable,
29
+ useDataTable
30
+ } from "./chunk-6ZVV2XHU.js";
32
31
  import "./chunk-YN3FGNJM.js";
33
32
  import "./chunk-ZAOEFQ6K.js";
34
33
  import "./chunk-PAYQJPGK.js";
35
34
  import "./chunk-H6MYB7GB.js";
36
- import {
37
- useDate
38
- } from "./chunk-UZWFZMOX.js";
35
+ import "./chunk-UZWFZMOX.js";
39
36
  import "./chunk-XQNVC4Q7.js";
40
37
  import {
41
38
  useQueryParams
42
39
  } from "./chunk-THHRRYRS.js";
40
+ import {
41
+ useSeller
42
+ } from "./chunk-BILFRATX.js";
43
43
  import {
44
44
  ActionMenu
45
45
  } from "./chunk-BDGZ4EQO.js";
@@ -58,7 +58,7 @@ import "./chunk-NBMM2TZK.js";
58
58
 
59
59
  // src/pages/offers/[id]/offer-detail-page.tsx
60
60
  import { Children } from "react";
61
- import { useLoaderData, useParams } from "react-router-dom";
61
+ import { useLoaderData, useParams, useSearchParams } from "react-router-dom";
62
62
 
63
63
  // src/pages/offers/[id]/_components/offer-detail-general-section.tsx
64
64
  import { Trash } from "@medusajs/icons";
@@ -171,12 +171,12 @@ import {
171
171
  Badge,
172
172
  clx,
173
173
  Container as Container2,
174
- createDataTableColumnHelper,
175
174
  Heading as Heading2,
176
175
  toast as toast2,
177
176
  Tooltip,
178
177
  usePrompt as usePrompt2
179
178
  } from "@medusajs/ui";
179
+ import { createColumnHelper } from "@tanstack/react-table";
180
180
  import { useCallback, useMemo } from "react";
181
181
  import { useTranslation as useTranslation2 } from "react-i18next";
182
182
  import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
@@ -219,48 +219,33 @@ var matchesDateFilter = (value, filter) => {
219
219
  }
220
220
  return true;
221
221
  };
222
- var columnHelper = createDataTableColumnHelper();
222
+ var columnHelper = createColumnHelper();
223
223
  var useColumns = ({
224
224
  optionTitles,
225
225
  thumbnail,
226
- getActions
226
+ onDelete
227
227
  }) => {
228
228
  const { t } = useTranslation2();
229
- const { getFullDate } = useDate();
230
229
  return useMemo(
231
230
  () => [
232
- columnHelper.display({
233
- id: "thumbnail",
234
- header: "",
235
- // Variant-level images aren't carried by the `withOffers` wrap, so
236
- // every row falls back to the product thumbnail.
237
- cell: () => /* @__PURE__ */ jsx2("div", { className: "flex items-center", children: /* @__PURE__ */ jsx2(Thumbnail, { src: thumbnail ?? null }) })
238
- }),
239
- // Admin-only Store column — rows can span sellers on the platform-wide
240
- // offer surface, so the store disambiguates them.
241
- columnHelper.accessor((row) => row.offer.seller?.name ?? "", {
242
- id: "store",
243
- header: t("offers.fields.store"),
244
- enableSorting: true,
245
- sortAscLabel: t("filters.sorting.alphabeticallyAsc"),
246
- sortDescLabel: t("filters.sorting.alphabeticallyDesc"),
247
- cell: ({ getValue }) => getValue() || /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-muted", children: "-" })
248
- }),
249
231
  columnHelper.accessor((row) => row.variant.title ?? "", {
250
232
  id: "title",
251
233
  header: t("fields.title"),
252
- enableSorting: true,
253
- sortAscLabel: t("filters.sorting.alphabeticallyAsc"),
254
- sortDescLabel: t("filters.sorting.alphabeticallyDesc"),
255
- cell: ({ getValue }) => getValue() || /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-muted", children: "-" })
234
+ cell: ({ getValue }) => {
235
+ const value = getValue();
236
+ return /* @__PURE__ */ jsxs2("div", { className: "flex h-full w-[220px] items-center gap-x-3 overflow-hidden", children: [
237
+ /* @__PURE__ */ jsx2("div", { className: "w-fit flex-shrink-0", children: /* @__PURE__ */ jsx2(Thumbnail, { src: thumbnail ?? null }) }),
238
+ value ? /* @__PURE__ */ jsx2("span", { title: value, className: "truncate", children: value }) : /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-muted", children: "-" })
239
+ ] });
240
+ }
256
241
  }),
257
242
  columnHelper.accessor((row) => skuOf(row), {
258
243
  id: "sku",
259
244
  header: t("fields.sku"),
260
- enableSorting: true,
261
- sortAscLabel: t("filters.sorting.alphabeticallyAsc"),
262
- sortDescLabel: t("filters.sorting.alphabeticallyDesc"),
263
- cell: ({ getValue }) => getValue() || /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-muted", children: "-" })
245
+ cell: ({ getValue }) => {
246
+ const value = getValue();
247
+ return /* @__PURE__ */ jsx2("div", { className: "w-[140px] truncate whitespace-nowrap", children: value ? value : /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-muted", children: "-" }) });
248
+ }
264
249
  }),
265
250
  ...optionTitles.map(
266
251
  (title) => columnHelper.display({
@@ -270,7 +255,18 @@ var useColumns = ({
270
255
  const opt = row.original.variant.options?.find(
271
256
  (o) => o.option?.title === title
272
257
  );
273
- return opt?.value ? /* @__PURE__ */ jsx2(Badge, { size: "2xsmall", children: opt.value }) : /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-muted", children: "-" });
258
+ if (!opt?.value) {
259
+ return /* @__PURE__ */ jsx2("div", { className: "w-[120px]", children: /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-muted", children: "-" }) });
260
+ }
261
+ return /* @__PURE__ */ jsx2("div", { className: "flex w-[120px] items-center gap-1", children: /* @__PURE__ */ jsx2(Tooltip, { content: opt.value, children: /* @__PURE__ */ jsx2(
262
+ Badge,
263
+ {
264
+ size: "2xsmall",
265
+ title: opt.value,
266
+ className: "inline-flex min-w-[20px] max-w-[140px] items-center justify-center overflow-hidden truncate",
267
+ children: opt.value
268
+ }
269
+ ) }) });
274
270
  }
275
271
  })
276
272
  ),
@@ -282,14 +278,14 @@ var useColumns = ({
282
278
  row.original.offer
283
279
  );
284
280
  if (!hasItems) {
285
- return /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-muted", children: "-" });
281
+ return /* @__PURE__ */ jsx2("div", { className: "w-[160px]", children: /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-muted", children: "-" }) });
286
282
  }
287
283
  const text = t("products.variant.tableItem", {
288
284
  availableCount: available,
289
285
  locationCount,
290
286
  count: locationCount
291
287
  });
292
- return /* @__PURE__ */ jsx2(Tooltip, { content: text, children: /* @__PURE__ */ jsxs2("div", { className: "flex h-full w-full items-center gap-2 overflow-hidden", children: [
288
+ return /* @__PURE__ */ jsx2(Tooltip, { content: text, children: /* @__PURE__ */ jsxs2("div", { className: "flex h-full w-[160px] items-center gap-2 overflow-hidden", children: [
293
289
  isKit && /* @__PURE__ */ jsx2(Component, { className: "text-ui-fg-subtle" }),
294
290
  /* @__PURE__ */ jsx2(
295
291
  "span",
@@ -303,37 +299,27 @@ var useColumns = ({
303
299
  ] }) });
304
300
  }
305
301
  }),
306
- columnHelper.accessor((row) => row.offer.created_at, {
307
- id: "created_at",
308
- header: t("fields.createdAt"),
309
- enableSorting: true,
310
- sortAscLabel: t("filters.sorting.dateAsc"),
311
- sortDescLabel: t("filters.sorting.dateDesc"),
312
- cell: ({ getValue }) => {
313
- const date = getValue();
314
- if (!date) {
315
- return /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-muted", children: "-" });
316
- }
317
- return /* @__PURE__ */ jsx2(Tooltip, { content: getFullDate({ date, includeTime: true }), children: /* @__PURE__ */ jsx2("span", { children: getFullDate({ date }) }) });
318
- }
319
- }),
320
- columnHelper.accessor((row) => row.offer.updated_at, {
321
- id: "updated_at",
322
- header: t("fields.updatedAt"),
323
- enableSorting: true,
324
- sortAscLabel: t("filters.sorting.dateAsc"),
325
- sortDescLabel: t("filters.sorting.dateDesc"),
326
- cell: ({ getValue }) => {
327
- const date = getValue();
328
- if (!date) {
329
- return /* @__PURE__ */ jsx2("span", { className: "text-ui-fg-muted", children: "-" });
302
+ columnHelper.display({
303
+ id: "actions",
304
+ cell: ({ row }) => /* @__PURE__ */ jsx2(
305
+ ActionMenu,
306
+ {
307
+ groups: [
308
+ {
309
+ actions: [
310
+ {
311
+ icon: /* @__PURE__ */ jsx2(Trash2, {}),
312
+ label: t("actions.delete"),
313
+ onClick: () => onDelete(row.original.offer.id, skuOf(row.original))
314
+ }
315
+ ]
316
+ }
317
+ ]
330
318
  }
331
- return /* @__PURE__ */ jsx2(Tooltip, { content: getFullDate({ date, includeTime: true }), children: /* @__PURE__ */ jsx2("span", { children: getFullDate({ date }) }) });
332
- }
333
- }),
334
- columnHelper.action({ actions: getActions })
319
+ )
320
+ })
335
321
  ],
336
- [t, optionTitles, thumbnail, getActions, getFullDate]
322
+ [t, optionTitles, thumbnail, onDelete]
337
323
  );
338
324
  };
339
325
  var OfferVariantsSection = ({
@@ -374,8 +360,7 @@ var OfferVariantsSection = ({
374
360
  if (search) {
375
361
  rows = rows.filter((row) => {
376
362
  const title = (row.variant.title ?? "").toLowerCase();
377
- const store = (row.offer.seller?.name ?? "").toLowerCase();
378
- return title.includes(search) || store.includes(search) || skuOf(row).toLowerCase().includes(search);
363
+ return title.includes(search) || skuOf(row).toLowerCase().includes(search);
379
364
  });
380
365
  }
381
366
  const createdFilter = created_at ? JSON.parse(created_at) : null;
@@ -400,8 +385,6 @@ var OfferVariantsSection = ({
400
385
  const key = desc ? order.slice(1) : order;
401
386
  const valueOf = (row) => {
402
387
  switch (key) {
403
- case "store":
404
- return row.offer.seller?.name ?? "";
405
388
  case "title":
406
389
  return row.variant.title ?? "";
407
390
  case "sku":
@@ -445,51 +428,61 @@ var OfferVariantsSection = ({
445
428
  },
446
429
  [prompt, bulkDelete, t]
447
430
  );
448
- const getActions = useCallback(
449
- (ctx) => {
450
- const row = ctx.row.original;
451
- return [
452
- [
453
- {
454
- icon: /* @__PURE__ */ jsx2(Trash2, {}),
455
- label: t("actions.delete"),
456
- onClick: () => handleDelete(row.offer.id, skuOf(row))
457
- }
458
- ]
459
- ];
460
- },
461
- [handleDelete, t]
462
- );
463
- const columns = useColumns({ optionTitles, thumbnail, getActions });
464
- const filters = useDataTableDateFilters();
431
+ const columns = useColumns({ optionTitles, thumbnail, onDelete: handleDelete });
432
+ const filters = useFilters();
433
+ const orderBy = useOrderBy();
434
+ const { table } = useDataTable({
435
+ data: pageRows,
436
+ columns,
437
+ count: sortedRows.length,
438
+ pageSize: PAGE_SIZE,
439
+ getRowId: (row) => row.id,
440
+ prefix: PREFIX
441
+ });
465
442
  return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", "data-testid": "offer-variants-section", children: [
466
443
  /* @__PURE__ */ jsx2("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx2(Heading2, { level: "h2", children: t("offers.fields.variants") }) }),
467
444
  /* @__PURE__ */ jsx2(
468
- DataTable,
445
+ _DataTable,
469
446
  {
470
- data: pageRows,
447
+ table,
471
448
  columns,
472
- filters,
473
- getRowId: (row) => row.id,
474
- rowHref: (row) => `variants/${row.id}`,
475
- rowCount: sortedRows.length,
449
+ count: sortedRows.length,
476
450
  pageSize: PAGE_SIZE,
451
+ filters,
452
+ search: true,
453
+ pagination: true,
454
+ orderBy,
477
455
  prefix: PREFIX,
478
- compact: true,
479
- emptyState: {
480
- empty: {
481
- heading: t("offers.empty.heading"),
482
- description: t("offers.empty.description")
483
- },
484
- filtered: {
485
- heading: t("offers.filtered.heading"),
486
- description: t("offers.filtered.description")
487
- }
456
+ queryObject: { q, order, created_at, updated_at },
457
+ navigateTo: (row) => `variants/${row.original.id}`,
458
+ noRecords: {
459
+ title: t("offers.empty.heading"),
460
+ message: t("offers.empty.description")
488
461
  }
489
462
  }
490
463
  )
491
464
  ] });
492
465
  };
466
+ var useFilters = () => {
467
+ const { t } = useTranslation2();
468
+ return useMemo(
469
+ () => [
470
+ { key: "created_at", label: t("fields.createdAt"), type: "date" },
471
+ { key: "updated_at", label: t("fields.updatedAt"), type: "date" }
472
+ ],
473
+ [t]
474
+ );
475
+ };
476
+ var useOrderBy = () => {
477
+ const { t } = useTranslation2();
478
+ return useMemo(
479
+ () => [
480
+ { key: "title", label: t("fields.title") },
481
+ { key: "sku", label: t("fields.sku") }
482
+ ],
483
+ [t]
484
+ );
485
+ };
493
486
 
494
487
  // src/pages/offers/[id]/_components/offer-associated-product-section.tsx
495
488
  import { TriangleRightMini } from "@medusajs/icons";
@@ -525,28 +518,44 @@ var OfferAssociatedProductSection = ({
525
518
  ] });
526
519
  };
527
520
 
521
+ // src/pages/offers/[id]/_components/offer-detail-store-section.tsx
522
+ import { jsx as jsx4 } from "react/jsx-runtime";
523
+ var OfferDetailStoreSection = ({
524
+ sellerId
525
+ }) => {
526
+ const { seller } = useSeller(sellerId ?? "", void 0, {
527
+ enabled: !!sellerId
528
+ });
529
+ if (!sellerId) {
530
+ return null;
531
+ }
532
+ return /* @__PURE__ */ jsx4(OfferStoreSidebar, { seller });
533
+ };
534
+
528
535
  // src/pages/offers/[id]/offer-detail-page.tsx
529
- import { Fragment, jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
536
+ import { Fragment, jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
530
537
  var Root = ({ children }) => {
531
538
  const { id } = useParams();
539
+ const [searchParams] = useSearchParams();
540
+ const sellerId = searchParams.get("seller_id") ?? void 0;
532
541
  const initialData = useLoaderData();
533
542
  const { product, isLoading, isError, error } = useProduct(
534
543
  id,
535
- { fields: OFFER_PRODUCT_DETAIL_FIELDS },
544
+ { fields: OFFER_PRODUCT_DETAIL_FIELDS, seller_id: sellerId },
536
545
  { initialData }
537
546
  );
538
547
  if (isError) {
539
548
  throw error;
540
549
  }
541
550
  if (isLoading || !product) {
542
- return /* @__PURE__ */ jsx4(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 1 });
551
+ return /* @__PURE__ */ jsx5(TwoColumnPageSkeleton, { mainSections: 3, sidebarSections: 1 });
543
552
  }
544
553
  const typed = product;
545
- return /* @__PURE__ */ jsx4(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs4(TwoColumnPage, { data: typed, hasOutlet: true, children: [
554
+ return /* @__PURE__ */ jsx5(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs4(TwoColumnPage, { data: typed, hasOutlet: true, children: [
546
555
  /* @__PURE__ */ jsxs4(TwoColumnPage.Main, { children: [
547
- /* @__PURE__ */ jsx4(OfferDetailGeneralSection, { product: typed }),
548
- /* @__PURE__ */ jsx4(ProductMediaSection, { product: typed, readOnly: true }),
549
- /* @__PURE__ */ jsx4(
556
+ /* @__PURE__ */ jsx5(OfferDetailGeneralSection, { product: typed }),
557
+ /* @__PURE__ */ jsx5(ProductMediaSection, { product: typed, readOnly: true }),
558
+ /* @__PURE__ */ jsx5(
550
559
  OfferVariantsSection,
551
560
  {
552
561
  variants: typed.variants,
@@ -554,7 +563,10 @@ var Root = ({ children }) => {
554
563
  }
555
564
  )
556
565
  ] }),
557
- /* @__PURE__ */ jsx4(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx4(OfferAssociatedProductSection, { product: typed }) })
566
+ /* @__PURE__ */ jsxs4(TwoColumnPage.Sidebar, { children: [
567
+ /* @__PURE__ */ jsx5(OfferAssociatedProductSection, { product: typed }),
568
+ /* @__PURE__ */ jsx5(OfferDetailStoreSection, { sellerId })
569
+ ] })
558
570
  ] }) });
559
571
  };
560
572
  var OfferDetailPage = Object.assign(Root, {
@@ -563,7 +575,8 @@ var OfferDetailPage = Object.assign(Root, {
563
575
  General: OfferDetailGeneralSection,
564
576
  Media: ProductMediaSection,
565
577
  Variants: OfferVariantsSection,
566
- AssociatedProduct: OfferAssociatedProductSection
578
+ AssociatedProduct: OfferAssociatedProductSection,
579
+ Store: OfferDetailStoreSection
567
580
  });
568
581
  var Component2 = Root;
569
582
  export {
@@ -2,13 +2,13 @@ import {
2
2
  OfferInventorySection,
3
3
  OfferPricingSection,
4
4
  OfferStoreSidebar
5
- } from "./chunk-NKV5XPNS.js";
5
+ } from "./chunk-FICKHCWL.js";
6
6
  import {
7
7
  OFFER_VARIANT_DETAIL_FIELDS
8
- } from "./chunk-S6A4FVM2.js";
8
+ } from "./chunk-IWBQZK6E.js";
9
9
  import {
10
10
  useOffer
11
- } from "./chunk-LBLWPBST.js";
11
+ } from "./chunk-IZDTQFCP.js";
12
12
  import "./chunk-PXYDR7WQ.js";
13
13
  import "./chunk-PHOCVOZ5.js";
14
14
  import "./chunk-IQPN4PZJ.js";
@@ -20,7 +20,7 @@ import {
20
20
  TwoColumnPage
21
21
  } from "./chunk-E74OUNA3.js";
22
22
  import "./chunk-FQERBIVS.js";
23
- import "./chunk-HSL5IICN.js";
23
+ import "./chunk-6ZVV2XHU.js";
24
24
  import "./chunk-YN3FGNJM.js";
25
25
  import "./chunk-ZAOEFQ6K.js";
26
26
  import {
@@ -123,7 +123,7 @@ var Root = ({ children }) => {
123
123
  /* @__PURE__ */ jsxs3(TwoColumnPage.Sidebar, { children: [
124
124
  /* @__PURE__ */ jsx3(OfferVariantShippingSection, { offer: typed }),
125
125
  /* @__PURE__ */ jsx3(OfferPricingSection, { offer: typed }),
126
- /* @__PURE__ */ jsx3(OfferStoreSidebar, { offer: typed })
126
+ /* @__PURE__ */ jsx3(OfferStoreSidebar, { seller: typed.seller })
127
127
  ] })
128
128
  ] }) });
129
129
  };
@@ -0,0 +1,183 @@
1
+ import {
2
+ OFFERS_PAGE_SIZE
3
+ } from "./chunk-IWBQZK6E.js";
4
+ import {
5
+ useOfferTableColumns,
6
+ useOfferTableCommands,
7
+ useOfferTableFilters,
8
+ useOfferTableQuery
9
+ } from "./chunk-HQM7D57C.js";
10
+ import {
11
+ useOffers
12
+ } from "./chunk-IZDTQFCP.js";
13
+ import "./chunk-DI2M3J5Q.js";
14
+ import "./chunk-FWPGOIFA.js";
15
+ import "./chunk-DB6ANJBO.js";
16
+ import "./chunk-PHOCVOZ5.js";
17
+ import "./chunk-E74OUNA3.js";
18
+ import "./chunk-WIYFXWRI.js";
19
+ import "./chunk-FQERBIVS.js";
20
+ import {
21
+ _DataTable,
22
+ useDataTable
23
+ } from "./chunk-6ZVV2XHU.js";
24
+ import "./chunk-YN3FGNJM.js";
25
+ import "./chunk-ZAOEFQ6K.js";
26
+ import "./chunk-PAYQJPGK.js";
27
+ import {
28
+ SingleColumnPage
29
+ } from "./chunk-H6MYB7GB.js";
30
+ import "./chunk-UZWFZMOX.js";
31
+ import "./chunk-XQNVC4Q7.js";
32
+ import "./chunk-THHRRYRS.js";
33
+ import "./chunk-DSTHXHJ5.js";
34
+ import "./chunk-ABS7HMLY.js";
35
+ import "./chunk-R325CPYC.js";
36
+ import "./chunk-YNN2YNSE.js";
37
+ import "./chunk-J54BZXZX.js";
38
+ import "./chunk-JI7HMGMO.js";
39
+ import "./chunk-F5NW4XBU.js";
40
+ import "./chunk-HLL6GLZO.js";
41
+ import "./chunk-CARSKIPW.js";
42
+ import "./chunk-R4O667NT.js";
43
+ import "./chunk-MO7TNIVQ.js";
44
+ import "./chunk-EWFOFSF7.js";
45
+ import "./chunk-G5KNNOXX.js";
46
+ import "./chunk-VHCDSNXF.js";
47
+ import "./chunk-A2F5MDPU.js";
48
+ import "./chunk-IC2PLPRP.js";
49
+ import "./chunk-L7DIEO5B.js";
50
+ import "./chunk-LSMTJU6Y.js";
51
+ import "./chunk-BNFTJW4L.js";
52
+ import "./chunk-EJY35WBK.js";
53
+ import "./chunk-GYRTURN7.js";
54
+ import "./chunk-GCEOEV6P.js";
55
+ import "./chunk-Q6GUA5VE.js";
56
+ import "./chunk-VXW3BCN2.js";
57
+ import "./chunk-GLZLBHFC.js";
58
+ import "./chunk-WF3ZDT5Z.js";
59
+ import "./chunk-PYF5EER5.js";
60
+ import "./chunk-BILFRATX.js";
61
+ import "./chunk-RGS5ZOY7.js";
62
+ import "./chunk-BDGZ4EQO.js";
63
+ import "./chunk-MW47LDBT.js";
64
+ import "./chunk-JZJT26E3.js";
65
+ import "./chunk-LAVHRER2.js";
66
+ import "./chunk-Y7QKP6QU.js";
67
+ import "./chunk-INNFZYX2.js";
68
+ import "./chunk-ZKHF75MZ.js";
69
+ import "./chunk-RHKRREUU.js";
70
+ import "./chunk-ZA2KFUFR.js";
71
+ import "./chunk-LXZXXOJ3.js";
72
+ import "./chunk-NBMM2TZK.js";
73
+
74
+ // src/pages/offers/offer-list-page.tsx
75
+ import { Children as Children2 } from "react";
76
+
77
+ // src/pages/offers/_components/offer-list-table.tsx
78
+ import { Container } from "@medusajs/ui";
79
+ import { Children } from "react";
80
+ import { Outlet } from "react-router-dom";
81
+
82
+ // src/pages/offers/_components/offer-list-data-table.tsx
83
+ import { keepPreviousData } from "@tanstack/react-query";
84
+ import { useState } from "react";
85
+ import { useTranslation } from "react-i18next";
86
+ import { jsx } from "react/jsx-runtime";
87
+ var OfferListDataTable = () => {
88
+ const { t } = useTranslation();
89
+ const [selection, setSelection] = useState({});
90
+ const { raw, searchParams } = useOfferTableQuery({
91
+ pageSize: OFFERS_PAGE_SIZE
92
+ });
93
+ const { offers, count, isLoading, isError, error } = useOffers(searchParams, {
94
+ placeholderData: keepPreviousData
95
+ });
96
+ const rows = offers ?? [];
97
+ const filters = useOfferTableFilters();
98
+ const columns = useOfferTableColumns();
99
+ const commands = useOfferTableCommands({
100
+ onDeleted: () => setSelection({})
101
+ });
102
+ const { table } = useDataTable({
103
+ data: rows,
104
+ columns,
105
+ count,
106
+ enablePagination: true,
107
+ getRowId: (row) => row.id,
108
+ pageSize: OFFERS_PAGE_SIZE,
109
+ enableRowSelection: true,
110
+ rowSelection: {
111
+ state: selection,
112
+ updater: setSelection
113
+ }
114
+ });
115
+ if (isError) {
116
+ throw error;
117
+ }
118
+ return /* @__PURE__ */ jsx(
119
+ _DataTable,
120
+ {
121
+ table,
122
+ columns,
123
+ pageSize: OFFERS_PAGE_SIZE,
124
+ count,
125
+ isLoading,
126
+ pagination: true,
127
+ search: true,
128
+ filters,
129
+ queryObject: raw,
130
+ orderBy: [
131
+ { key: "created_at", label: t("fields.createdAt") },
132
+ { key: "updated_at", label: t("fields.updatedAt") }
133
+ ],
134
+ defaultOrder: "-created_at",
135
+ navigateTo: (row) => `${row.original.product_id}?seller_id=${row.original.seller_id}`,
136
+ noRecords: {
137
+ title: t("offers.empty.heading"),
138
+ message: t("offers.empty.description")
139
+ },
140
+ commands
141
+ }
142
+ );
143
+ };
144
+
145
+ // src/pages/offers/_components/offer-list-header.tsx
146
+ import { Heading } from "@medusajs/ui";
147
+ import { useTranslation as useTranslation2 } from "react-i18next";
148
+ import { jsx as jsx2, jsxs } from "react/jsx-runtime";
149
+ var OfferListTitle = () => {
150
+ const { t } = useTranslation2();
151
+ return /* @__PURE__ */ jsx2(Heading, { children: t("offers.domain") });
152
+ };
153
+ var OfferListActions = () => null;
154
+ var OfferListHeader = () => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
155
+ /* @__PURE__ */ jsx2(OfferListTitle, {}),
156
+ /* @__PURE__ */ jsx2(OfferListActions, {})
157
+ ] });
158
+
159
+ // src/pages/offers/_components/offer-list-table.tsx
160
+ import { Fragment, jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
161
+ var OfferListTable = ({ children }) => /* @__PURE__ */ jsxs2(Container, { className: "divide-y p-0", "data-testid": "offer-list-table", children: [
162
+ Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs2(Fragment, { children: [
163
+ /* @__PURE__ */ jsx3(OfferListHeader, {}),
164
+ /* @__PURE__ */ jsx3(OfferListDataTable, {})
165
+ ] }),
166
+ /* @__PURE__ */ jsx3(Outlet, {})
167
+ ] });
168
+
169
+ // src/pages/offers/offer-list-page.tsx
170
+ import { jsx as jsx4 } from "react/jsx-runtime";
171
+ var Root = ({ children }) => /* @__PURE__ */ jsx4(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx4(OfferListTable, {}) });
172
+ var OfferListPage = Object.assign(Root, {
173
+ Table: OfferListTable,
174
+ Header: OfferListHeader,
175
+ HeaderTitle: OfferListTitle,
176
+ HeaderActions: OfferListActions,
177
+ DataTable: OfferListDataTable
178
+ });
179
+ var Component = Root;
180
+ export {
181
+ Component,
182
+ OfferListPage
183
+ };
@@ -6,9 +6,6 @@ import {
6
6
  ReturnShippingPlaceholder,
7
7
  getOfferRestockPreview
8
8
  } from "./chunk-YVLANFBK.js";
9
- import {
10
- useOffers
11
- } from "./chunk-LBLWPBST.js";
12
9
  import {
13
10
  useAddClaimInboundItems,
14
11
  useAddClaimInboundShipping,
@@ -38,6 +35,9 @@ import {
38
35
  useReturn,
39
36
  useUpdateReturn
40
37
  } from "./chunk-YXKHBSQJ.js";
38
+ import {
39
+ useOffers
40
+ } from "./chunk-IZDTQFCP.js";
41
41
  import {
42
42
  MoneyAmountCell
43
43
  } from "./chunk-2Y3WMGN6.js";
@@ -79,7 +79,7 @@ import "./chunk-FQERBIVS.js";
79
79
  import {
80
80
  _DataTable,
81
81
  useDataTable
82
- } from "./chunk-HSL5IICN.js";
82
+ } from "./chunk-6ZVV2XHU.js";
83
83
  import "./chunk-YN3FGNJM.js";
84
84
  import "./chunk-ZAOEFQ6K.js";
85
85
  import "./chunk-PAYQJPGK.js";