@mercurjs/admin 2.2.0-canary.37 → 2.2.0-canary.39

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 (216) hide show
  1. package/dist/{add-campaign-promotions-26SSHLLG.js → add-campaign-promotions-NT4LQZQJ.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-RLATJRDL.js → api-key-management-list-SXHZJUJB.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-D4RUU5OT.js} +1 -1
  7. package/dist/{attribute-detail-G6APXXFT.js → attribute-detail-OU6557XI.js} +11 -2
  8. package/dist/{attribute-list-42GDF2PV.js → attribute-list-5LGYNGO7.js} +3 -3
  9. package/dist/{breadcrumb-DZTALOFP.js → breadcrumb-GHBR74WM.js} +2 -2
  10. package/dist/{breadcrumb-EPNBJF4V.js → breadcrumb-IEEJTH47.js} +1 -1
  11. package/dist/{campaign-detail-VMJQISAE.js → campaign-detail-EHNTH6A7.js} +6 -6
  12. package/dist/{campaign-list-W2YZAPUI.js → campaign-list-FFGRXEVJ.js} +2 -2
  13. package/dist/{categories-metadata-SWFS4FL4.js → categories-metadata-EKY6TSUK.js} +1 -1
  14. package/dist/{category-detail-I3EEPAQR.js → category-detail-HCRJDDA2.js} +3 -3
  15. package/dist/{category-list-QLHQST3D.js → category-list-7ILXI55P.js} +2 -2
  16. package/dist/{category-products-XGLUDL73.js → category-products-LZQATT5Z.js} +2 -2
  17. package/dist/{chunk-QM343PBJ.js → chunk-23OLYWMR.js} +1 -1
  18. package/dist/{chunk-E6VCLJNF.js → chunk-2DSCC2VR.js} +1 -1
  19. package/dist/{chunk-CMZ4KATG.js → chunk-2S2SBRZP.js} +3 -3
  20. package/dist/{chunk-L4KT5CLI.js → chunk-2YAVXVET.js} +1 -1
  21. package/dist/{chunk-SWQC5UPD.js → chunk-325DZAT2.js} +4 -4
  22. package/dist/{chunk-HMKXCYCJ.js → chunk-3SHHDCA6.js} +8 -3
  23. package/dist/{chunk-C4N5EJAD.js → chunk-4BCUGMOR.js} +0 -13
  24. package/dist/{chunk-FU3QYH6H.js → chunk-4C7L7TJT.js} +2 -26
  25. package/dist/{chunk-3UJQT6UR.js → chunk-4NAIC6RG.js} +5 -6
  26. package/dist/{chunk-BWRQJXHB.js → chunk-5DQED4UT.js} +1 -1
  27. package/dist/{chunk-U725ING6.js → chunk-5NC6SI6J.js} +1 -1
  28. package/dist/{chunk-4JUT54KO.js → chunk-73Y6HKIG.js} +1 -1
  29. package/dist/{chunk-57MFJ2HE.js → chunk-74WEDBZ7.js} +1 -1
  30. package/dist/{chunk-RWAEZQCV.js → chunk-7OKYEA6I.js} +96 -6
  31. package/dist/{chunk-57GNGL6K.js → chunk-7RWFRMQG.js} +1 -1
  32. package/dist/{chunk-MKNQ6BT6.js → chunk-7TWARCNU.js} +1 -1
  33. package/dist/{chunk-6YEVK7JJ.js → chunk-AVATBB62.js} +11 -17
  34. package/dist/{chunk-NS3GQ2J6.js → chunk-BILFRATX.js} +0 -9
  35. package/dist/{chunk-MIKJRLQI.js → chunk-BO4V6CQN.js} +2 -3
  36. package/dist/{chunk-6YEU2ZAD.js → chunk-CE2WRTS7.js} +1 -1
  37. package/dist/{chunk-N5H2J6HE.js → chunk-CN4FCZPK.js} +2 -2
  38. package/dist/{chunk-RLGMY7JJ.js → chunk-CY263OE4.js} +1 -1
  39. package/dist/{chunk-KUKBV4XN.js → chunk-CYACZXMQ.js} +1 -1
  40. package/dist/{chunk-YAJDG3W7.js → chunk-DI2KBXVH.js} +1 -1
  41. package/dist/{chunk-YLQCULOV.js → chunk-DISTPZNS.js} +1 -1
  42. package/dist/{chunk-NXMD36QG.js → chunk-EUXCKJPT.js} +1 -1
  43. package/dist/{chunk-2MRYNLVT.js → chunk-F6NPDZHW.js} +1 -1
  44. package/dist/{chunk-AIEPAHO5.js → chunk-FLPKTLXN.js} +2 -2
  45. package/dist/{chunk-OI4DJXUL.js → chunk-FMJBQE56.js} +1 -1
  46. package/dist/{chunk-PAUULPNC.js → chunk-FNJEXQ2Z.js} +2 -2
  47. package/dist/{chunk-V7YJ53P5.js → chunk-FZPSX44L.js} +2 -2
  48. package/dist/{chunk-POMQZ6PN.js → chunk-GUDWUAMT.js} +1 -1
  49. package/dist/{chunk-TG5BBZ3B.js → chunk-HI7NZVSJ.js} +1 -1
  50. package/dist/{chunk-SJHBNENS.js → chunk-HSL5IICN.js} +15 -6
  51. package/dist/{chunk-MHCIHDGF.js → chunk-HWWET5ZP.js} +1 -1
  52. package/dist/{chunk-5YWQDIVG.js → chunk-I3ARNGRC.js} +1 -1
  53. package/dist/{chunk-EMW5WXXR.js → chunk-IQDZZ5EQ.js} +1 -1
  54. package/dist/{chunk-S6A4FVM2.js → chunk-IWBQZK6E.js} +0 -4
  55. package/dist/{chunk-LBLWPBST.js → chunk-IZDTQFCP.js} +3 -1
  56. package/dist/{chunk-YRGPQ2C4.js → chunk-JUMT5GX7.js} +1 -1
  57. package/dist/{chunk-4OCWOY2F.js → chunk-JXSXBSV6.js} +8 -8
  58. package/dist/{chunk-AQIW7R4Y.js → chunk-KC4J2WOM.js} +1 -1
  59. package/dist/{chunk-GX7YQ6GM.js → chunk-LRJNSCMR.js} +1 -1
  60. package/dist/{chunk-RZ43M34Q.js → chunk-LZEEPVQY.js} +61 -57
  61. package/dist/{chunk-U5MDOZS7.js → chunk-MANRAV52.js} +1 -1
  62. package/dist/{chunk-4NE4EIHO.js → chunk-MYJJMHR5.js} +1 -1
  63. package/dist/{chunk-OTXOV6YU.js → chunk-NEGOGYEO.js} +1 -1
  64. package/dist/{chunk-ENSI7NL7.js → chunk-O5MW4WPZ.js} +1 -1
  65. package/dist/{chunk-7DHSWPU2.js → chunk-PRSTCHB5.js} +1 -1
  66. package/dist/{chunk-XQCG2ORD.js → chunk-PSGHE5YJ.js} +2 -2
  67. package/dist/{chunk-4X4MNAXL.js → chunk-PWLDTJJX.js} +1 -1
  68. package/dist/{chunk-XEB5I2KE.js → chunk-Q4R2O7XF.js} +2 -2
  69. package/dist/{chunk-AHUVAYZD.js → chunk-QH34LF36.js} +1 -1
  70. package/dist/{chunk-GML7DINQ.js → chunk-RDUSAVT3.js} +1 -1
  71. package/dist/{chunk-PPMWEQP3.js → chunk-RIURQMDE.js} +71 -34
  72. package/dist/{chunk-LRKN7IQH.js → chunk-RNDDYLHV.js} +1 -1
  73. package/dist/{chunk-EA3XMVOS.js → chunk-S22SK4KO.js} +1 -1
  74. package/dist/{chunk-QEXIOKNZ.js → chunk-SLKOHWKT.js} +1 -1
  75. package/dist/{chunk-THNFAN23.js → chunk-VGXJXU7X.js} +1 -1
  76. package/dist/{chunk-GCYUOP4W.js → chunk-VSKHV5QF.js} +1 -1
  77. package/dist/{offers-T4ARWA47.js → chunk-VSLKILOI.js} +124 -253
  78. package/dist/{chunk-E32O3DUM.js → chunk-WKR3Y2KD.js} +2 -2
  79. package/dist/{chunk-ZDEIYWCK.js → chunk-WNTHKSLS.js} +1 -1
  80. package/dist/{chunk-DUVTXDNA.js → chunk-XFKDDRB6.js} +1 -1
  81. package/dist/{chunk-X3TWPSUM.js → chunk-Y62TJJ3P.js} +1 -1
  82. package/dist/{chunk-CDVQK7JZ.js → chunk-YNK25LVO.js} +1 -1
  83. package/dist/{chunk-HBT7GVJD.js → chunk-YUUDST4E.js} +57 -49
  84. package/dist/{chunk-C6AU3U22.js → chunk-ZO3OJ2UQ.js} +1 -1
  85. package/dist/{collection-add-products-2G37ZL2J.js → collection-add-products-QIEQCILA.js} +2 -2
  86. package/dist/{collection-detail-AB6HGJDM.js → collection-detail-PTVRSXT3.js} +3 -3
  87. package/dist/{collection-list-UHFUKA5U.js → collection-list-O5XBGFTN.js} +5 -5
  88. package/dist/{collection-metadata-UEYHULPR.js → collection-metadata-TOHJL5WW.js} +1 -1
  89. package/dist/{commission-rule-detail-RO5KXLGT.js → commission-rule-detail-VTP2JKEG.js} +3 -3
  90. package/dist/{commissions-list-KQ2TUJAW.js → commissions-list-T7735Y35.js} +4 -4
  91. package/dist/{customer-detail-ZYJDB47Y.js → customer-detail-IPM3SBHE.js} +5 -5
  92. package/dist/{customer-group-add-customers-GSEUGBTJ.js → customer-group-add-customers-QBRVKXGO.js} +1 -1
  93. package/dist/{customer-group-detail-5VSUJTR3.js → customer-group-detail-3HV3BJOU.js} +3 -3
  94. package/dist/{customer-group-list-BRQRKORR.js → customer-group-list-IR6CW36P.js} +4 -4
  95. package/dist/{customer-group-metadata-S6NJRGYO.js → customer-group-metadata-4W32YXXP.js} +1 -1
  96. package/dist/{customer-list-6PRFTWMO.js → customer-list-276YPXTE.js} +2 -2
  97. package/dist/{customer-metadata-C66G3AS7.js → customer-metadata-L622ZJ43.js} +1 -1
  98. package/dist/{customers-add-customer-group-56GS7TR7.js → customers-add-customer-group-PWKJZJBP.js} +3 -3
  99. package/dist/{edit-inventory-item-IIJH26PK.js → edit-inventory-item-73BY4I5T.js} +1 -1
  100. package/dist/{edit-inventory-item-attributes-KTMOGG4V.js → edit-inventory-item-attributes-ZMB343AB.js} +1 -1
  101. package/dist/{edit-rules-WOQNXKZZ.js → edit-rules-OK44K33O.js} +1 -1
  102. package/dist/index.css +5187 -3
  103. package/dist/index.d.ts +7 -1
  104. package/dist/index.js +173 -173
  105. package/dist/{inventory-create-WJ3CCFTD.js → inventory-create-66YM6FST.js} +3 -3
  106. package/dist/{inventory-detail-QY56I2KX.js → inventory-detail-RYFIUKTJ.js} +3 -3
  107. package/dist/{inventory-list-AB4OHYMU.js → inventory-list-U4W4AP4E.js} +2 -2
  108. package/dist/{inventory-metadata-OS6KHY52.js → inventory-metadata-W6Z6J2Z2.js} +1 -1
  109. package/dist/{inventory-stock-F2BKMXY3.js → inventory-stock-A3TSIGMD.js} +2 -2
  110. package/dist/loader-HRFMJ5TM.js +36 -0
  111. package/dist/{loader-P2HT7LSL.js → loader-TIPLOZF7.js} +2 -2
  112. package/dist/{location-detail-LK736WHY.js → location-detail-CNETNX3M.js} +1 -1
  113. package/dist/{location-fulfillment-providers-VVJGPYJI.js → location-fulfillment-providers-TMPZH2KQ.js} +4 -4
  114. package/dist/{location-list-HFVPD3JF.js → location-list-RHUT7IRA.js} +1 -1
  115. package/dist/{location-sales-channels-WZJ3JWQF.js → location-sales-channels-ZQBQ3VDH.js} +1 -2
  116. package/dist/{location-service-zone-create-WPSYG3NX.js → location-service-zone-create-U77V3ROT.js} +2 -2
  117. package/dist/{location-service-zone-manage-areas-ZH2ICSC7.js → location-service-zone-manage-areas-FUUAAIDJ.js} +2 -2
  118. package/dist/{location-service-zone-shipping-option-create-OLABLTSL.js → location-service-zone-shipping-option-create-3PQ2EYD7.js} +4 -4
  119. package/dist/{location-service-zone-shipping-option-pricing-TARZ34TW.js → location-service-zone-shipping-option-pricing-UZ577SNK.js} +2 -2
  120. package/dist/{login-IOW5R2ZZ.js → login-OKBXMSKY.js} +1 -1
  121. package/dist/{marketplace-add-currencies-FPDYEYCL.js → marketplace-add-currencies-KDNMN57C.js} +1 -1
  122. package/dist/{marketplace-detail-7WGPHRQM.js → marketplace-detail-KBJSCI2N.js} +3 -3
  123. package/dist/{marketplace-metadata-RNNA4S3F.js → marketplace-metadata-VXFQ3JZW.js} +1 -1
  124. package/dist/{offer-detail-page-3RAFKFK4.js → offer-detail-page-D3J547CC.js} +134 -121
  125. package/dist/{offer-variant-detail-page-5FS6D46I.js → offer-variant-detail-page-P4CKF442.js} +5 -5
  126. package/dist/offers-7JTHN6FI.js +183 -0
  127. package/dist/{order-create-claim-GOP565XH.js → order-create-claim-CHXOZH2C.js} +4 -4
  128. package/dist/{order-create-edit-DK4QG2CR.js → order-create-edit-O4AOAOF7.js} +4 -4
  129. package/dist/{order-create-exchange-ZHJ3T5QJ.js → order-create-exchange-CG3ODKTK.js} +5 -5
  130. package/dist/{order-create-refund-DWIGXSYJ.js → order-create-refund-4ZO73NWS.js} +1 -1
  131. package/dist/{order-create-return-63X5PUTT.js → order-create-return-DDOYLDT7.js} +1 -1
  132. package/dist/{order-detail-6UAWPZI2.js → order-detail-V6AL4RWB.js} +3 -3
  133. package/dist/{order-edit-billing-address-IU6W76P3.js → order-edit-billing-address-KVX4EPM7.js} +2 -2
  134. package/dist/{order-edit-email-OAU3YX45.js → order-edit-email-GLAQZCIT.js} +1 -1
  135. package/dist/{order-edit-shipping-address-RAO5IKGM.js → order-edit-shipping-address-PF54SFAG.js} +1 -1
  136. package/dist/{order-list-FFPY5OGR.js → order-list-WHZJ6B4G.js} +4 -4
  137. package/dist/{order-metadata-IUBTCJQW.js → order-metadata-L6SCT4MO.js} +1 -1
  138. package/dist/{order-request-transfer-2J4CN5JP.js → order-request-transfer-BLQQ66IF.js} +1 -1
  139. package/dist/pages/index.d.ts +9 -9
  140. package/dist/pages/index.js +64 -63
  141. package/dist/{payout-list-A2KQTZMZ.js → payout-list-SOWVPSFQ.js} +2 -2
  142. package/dist/{price-list-configuration-2NFE4MNW.js → price-list-configuration-OTSYJ3AQ.js} +4 -4
  143. package/dist/{price-list-create-UMA2NB3L.js → price-list-create-2422HUBU.js} +7 -7
  144. package/dist/{price-list-detail-7ANY3XOC.js → price-list-detail-CL3FMPVN.js} +3 -3
  145. package/dist/{price-list-list-6II3XYUA.js → price-list-list-A42VGE3L.js} +2 -2
  146. package/dist/{price-list-prices-add-XLFLGFVG.js → price-list-prices-add-OOG6526Y.js} +5 -5
  147. package/dist/{price-list-prices-edit-MT6BFF3M.js → price-list-prices-edit-ZQE3Z3NK.js} +3 -3
  148. package/dist/{product-add-existing-attributes-3BJ5KV2V.js → product-add-existing-attributes-DKKPTZMB.js} +1 -1
  149. package/dist/{product-bulk-edit-3AJGOE6E.js → product-bulk-edit-TRI2KKHW.js} +1 -1
  150. package/dist/{product-create-2SELD5CI.js → product-create-IX4TOFNU.js} +5 -5
  151. package/dist/{product-detail-O7MVTHSN.js → product-detail-BLZYOXLS.js} +3 -3
  152. package/dist/{product-list-SIQDX4AT.js → product-list-PLXUL3YW.js} +3 -3
  153. package/dist/{product-media-S6L3IHUO.js → product-media-TDEPDO3W.js} +2 -2
  154. package/dist/{product-metadata-4O5YDITE.js → product-metadata-KBT4QGRF.js} +1 -1
  155. package/dist/{product-organization-BYPV5QSZ.js → product-organization-HFC44AOV.js} +1 -1
  156. package/dist/{product-sales-channels-73JEGJIY.js → product-sales-channels-C6UUHWGB.js} +1 -2
  157. package/dist/{product-tag-create-PSLHVOED.js → product-tag-create-AHG3Y4GE.js} +1 -1
  158. package/dist/{product-tag-detail-SVDEVPMA.js → product-tag-detail-222RARIO.js} +5 -5
  159. package/dist/{product-tag-edit-7RYZN7ZP.js → product-tag-edit-ACHNVZZP.js} +1 -1
  160. package/dist/{product-tag-list-4ECQFBOA.js → product-tag-list-EZ4JUW4U.js} +5 -5
  161. package/dist/{product-tag-metadata-Z26DWSRN.js → product-tag-metadata-4EUBENJ6.js} +1 -1
  162. package/dist/{product-type-detail-WSHUE56F.js → product-type-detail-SSMTOG47.js} +3 -3
  163. package/dist/{product-type-list-EP2YCYLK.js → product-type-list-XTVTT7ZA.js} +2 -2
  164. package/dist/{product-type-metadata-2YKEGWRE.js → product-type-metadata-RAVB4BK2.js} +1 -1
  165. package/dist/{product-variant-detail-OZYQPDVX.js → product-variant-detail-7CFNAI3A.js} +1 -1
  166. package/dist/{product-variant-edit-M74OAUM5.js → product-variant-edit-QJK2CLID.js} +1 -1
  167. package/dist/{product-variant-metadata-VA4NDA53.js → product-variant-metadata-7VHJ4U6L.js} +1 -1
  168. package/dist/{promotion-create-TOOHWR6S.js → promotion-create-AWZ7YA5T.js} +1 -1
  169. package/dist/{promotion-detail-25JCCLU2.js → promotion-detail-EEDQ3GQD.js} +4 -4
  170. package/dist/{promotion-list-RXLVU4G2.js → promotion-list-SXUXYV6R.js} +5 -5
  171. package/dist/{refund-reason-create-NA42SWWI.js → refund-reason-create-UA3XS6DP.js} +1 -1
  172. package/dist/{refund-reason-edit-WMKHZ6SN.js → refund-reason-edit-3TAGKV3U.js} +1 -1
  173. package/dist/{refund-reason-list-XMDZO34F.js → refund-reason-list-OVTNXVLP.js} +1 -1
  174. package/dist/{region-add-countries-NFJYG4JA.js → region-add-countries-IIHNNE76.js} +1 -1
  175. package/dist/{region-create-RW42MXKY.js → region-create-PHZNUCJR.js} +1 -1
  176. package/dist/{region-detail-S7GNXX5B.js → region-detail-AECQQ62I.js} +2 -2
  177. package/dist/{region-list-ZP7QIWQ3.js → region-list-IBQW5J3R.js} +2 -2
  178. package/dist/{region-metadata-GWN4DS4V.js → region-metadata-3KASKFZ3.js} +1 -1
  179. package/dist/{reservation-detail-JSLACR7K.js → reservation-detail-MAWHNY2H.js} +1 -1
  180. package/dist/{reservation-list-UGXB2P7K.js → reservation-list-IUYMT4U6.js} +2 -2
  181. package/dist/{reservation-metadata-YNCMFQIX.js → reservation-metadata-ENY4V2ED.js} +1 -1
  182. package/dist/{reset-password-GBVMOKXP.js → reset-password-UIDUOHVW.js} +1 -1
  183. package/dist/{return-reason-list-AW6MMUKD.js → return-reason-list-FRHFRNKK.js} +2 -2
  184. package/dist/{sales-channel-add-products-LRANEISZ.js → sales-channel-add-products-ZCUVTJQN.js} +2 -2
  185. package/dist/{sales-channel-detail-5XXO3BXP.js → sales-channel-detail-EZVCWMMS.js} +3 -3
  186. package/dist/{sales-channel-list-PPESHWHA.js → sales-channel-list-LVW7XE7K.js} +3 -4
  187. package/dist/{sales-channel-metadata-7HVLURGB.js → sales-channel-metadata-RXC4IDD3.js} +1 -1
  188. package/dist/{shipping-option-type-create-UFXLX52L.js → shipping-option-type-create-GHOCZT64.js} +1 -1
  189. package/dist/{shipping-option-type-detail-OCOL5H4I.js → shipping-option-type-detail-W32EHTBS.js} +1 -1
  190. package/dist/{shipping-option-type-edit-2WVBG2XS.js → shipping-option-type-edit-KRIP6HTC.js} +1 -1
  191. package/dist/{shipping-option-type-list-UCTCZPAM.js → shipping-option-type-list-Y43XD2XM.js} +3 -3
  192. package/dist/{shipping-profile-metadata-N2AXNBZT.js → shipping-profile-metadata-HMQZ6LGB.js} +1 -1
  193. package/dist/{shipping-profiles-list-CBTZYI33.js → shipping-profiles-list-4VHKTKIL.js} +2 -2
  194. package/dist/{store-address-edit-KITVKFMG.js → store-address-edit-B4LWVP73.js} +1 -1
  195. package/dist/{store-bulk-edit-I6QHGMEC.js → store-bulk-edit-IXWGUFY2.js} +2 -2
  196. package/dist/{store-closure-edit-MMGDJGV3.js → store-closure-edit-H3EKROXP.js} +1 -1
  197. package/dist/{store-create-QUGCV5IG.js → store-create-PL2XGIR5.js} +1 -1
  198. package/dist/{store-details-XNBFIWDL.js → store-details-4DAUF3CD.js} +6 -6
  199. package/dist/{store-edit-BBOEDZNV.js → store-edit-ESFC2UXE.js} +3 -3
  200. package/dist/{store-list-RVZG3UD3.js → store-list-KANREHW5.js} +5 -5
  201. package/dist/{store-member-invite-3G4PCBJ2.js → store-member-invite-U4UQS5VC.js} +1 -1
  202. package/dist/{store-payment-details-edit-5LT4OIMA.js → store-payment-details-edit-ERRJDLBO.js} +1 -1
  203. package/dist/{store-professional-details-edit-ARR5WRGC.js → store-professional-details-edit-VD2J4VYV.js} +1 -1
  204. package/dist/{tax-region-create-7432IFN5.js → tax-region-create-4YEJ3HFY.js} +2 -2
  205. package/dist/{tax-region-detail-Q3NZI26Z.js → tax-region-detail-L7STT6C7.js} +1 -1
  206. package/dist/{tax-region-edit-UMPFELDL.js → tax-region-edit-6JOV3POI.js} +1 -1
  207. package/dist/{tax-region-metadata-UAGL3HYV.js → tax-region-metadata-N3QNTXME.js} +1 -1
  208. package/dist/{tax-region-province-detail-JQQQXONY.js → tax-region-province-detail-2GRPOSWS.js} +1 -1
  209. package/dist/{tax-region-tax-override-create-WRUNCP67.js → tax-region-tax-override-create-JZHOHCXF.js} +5 -5
  210. package/dist/{tax-region-tax-override-edit-EOIDY4LX.js → tax-region-tax-override-edit-SZRD23P4.js} +5 -5
  211. package/dist/{user-invite-WIHSREOW.js → user-invite-UN6NCCII.js} +1 -1
  212. package/dist/{user-list-3C6GRWMJ.js → user-list-27ZKEJXN.js} +2 -2
  213. package/dist/{user-metadata-EKIWOTII.js → user-metadata-BD73LJWB.js} +1 -1
  214. package/package.json +9 -6
  215. package/dist/chunk-DGCPYCHU.js +0 -98
  216. package/dist/loader-DHCULYGY.js +0 -32
@@ -1,18 +1,14 @@
1
- import "./chunk-MIKJRLQI.js";
1
+ import {
2
+ OfferStoreSidebar
3
+ } from "./chunk-BO4V6CQN.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-SJHBNENS.js";
27
+ import {
28
+ _DataTable,
29
+ useDataTable
30
+ } from "./chunk-HSL5IICN.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-MIKJRLQI.js";
5
+ } from "./chunk-BO4V6CQN.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-SJHBNENS.js";
23
+ import "./chunk-HSL5IICN.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-VSLKILOI.js";
10
+ import {
11
+ useOffers
12
+ } from "./chunk-IZDTQFCP.js";
13
+ import "./chunk-WBSUHLO7.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-HSL5IICN.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-YZBEJ3CY.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-SJHBNENS.js";
82
+ } from "./chunk-HSL5IICN.js";
83
83
  import "./chunk-YN3FGNJM.js";
84
84
  import "./chunk-ZAOEFQ6K.js";
85
85
  import "./chunk-PAYQJPGK.js";