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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (305) hide show
  1. package/dist/{[id]-GMJAPZPU.js → [id]-3LNKC5OJ.js} +41 -40
  2. package/dist/[id]-4HO4S2PX.js +3074 -0
  3. package/dist/{[id]-QWL6SUOB.js → [id]-4LIIFGET.js} +14 -14
  4. package/dist/{[id]-5ADOHZ45.js → [id]-5EECCIRP.js} +151 -58
  5. package/dist/{[id]-K2CT7BXQ.js → [id]-5P5LTATX.js} +3 -3
  6. package/dist/{[id]-T7USGHIY.js → [id]-AQUUZFRX.js} +11 -11
  7. package/dist/{[id]-BTGQJ3UD.js → [id]-CUBGVODE.js} +177 -85
  8. package/dist/{[id]-ZAQYATGN.js → [id]-DCGPICT3.js} +39 -38
  9. package/dist/{[id]-IWCWVNVI.js → [id]-DT5YJVKG.js} +32 -32
  10. package/dist/{[id]-L6FD7BRE.js → [id]-IEBZ6V3W.js} +51 -48
  11. package/dist/{[id]-ZCMSBEVM.js → [id]-N7JEZFXQ.js} +6 -6
  12. package/dist/[id]-U6FKX5UQ.js +975 -0
  13. package/dist/{[id]-BPAZLOLW.js → [id]-XB45DY2D.js} +19 -19
  14. package/dist/[id]-XP5KEMNX.js +602 -0
  15. package/dist/{[location_id]-NUBXDDJC.js → [location_id]-I4HHUHWY.js} +14 -14
  16. package/dist/{[province_id]-5KZGMQER.js → [province_id]-OYX4MOCF.js} +31 -31
  17. package/dist/{add-KMHJ6OC6.js → add-3T4GBFMM.js} +63 -57
  18. package/dist/{add-Y6GMGLYX.js → add-RPRJWCYU.js} +99 -34
  19. package/dist/{add-customer-groups-NXSWICFI.js → add-customer-groups-FB5T6PQN.js} +44 -42
  20. package/dist/{add-products-LXYF57BK.js → add-products-F243SWGD.js} +40 -40
  21. package/dist/{add-promotions-VTYAEDCN.js → add-promotions-TJDK7HLW.js} +18 -18
  22. package/dist/{add-to-campaign-DLP7PSQB.js → add-to-campaign-Q6OAJMUJ.js} +6 -6
  23. package/dist/{address-JFXH3M7D.js → address-XVBSNMFU.js} +24 -24
  24. package/dist/{adjust-inventory-V2V7NWWH.js → adjust-inventory-IZLRMQXV.js} +4 -4
  25. package/dist/allocate-items-Q3VALDYT.js +685 -0
  26. package/dist/{areas-FB63OQAI.js → areas-IYGBRCRH.js} +14 -14
  27. package/dist/attributes-LGEM2JJW.js +353 -0
  28. package/dist/breadcrumb-BC6XN2SE.js +13 -0
  29. package/dist/{breadcrumb-THJ2HPRB.js → breadcrumb-BFNJWOJ4.js} +10 -9
  30. package/dist/{breadcrumb-S4V7MJUM.js → breadcrumb-BXD3SRM7.js} +3 -3
  31. package/dist/{breadcrumb-HV67K43U.js → breadcrumb-FEYGZFJU.js} +4 -4
  32. package/dist/{breadcrumb-EG3ANCVO.js → breadcrumb-H45Z2WNG.js} +3 -3
  33. package/dist/breadcrumb-ILEAQRW7.js +33 -0
  34. package/dist/breadcrumb-K4HBKZUE.js +28 -0
  35. package/dist/{breadcrumb-YBBYFQYG.js → breadcrumb-KZPOPXGG.js} +2 -2
  36. package/dist/{breadcrumb-F3BN5753.js → breadcrumb-L262VPBO.js} +2 -2
  37. package/dist/{breadcrumb-3Z7KZG62.js → breadcrumb-LEFHXFLT.js} +3 -3
  38. package/dist/{breadcrumb-D3UDTWGE.js → breadcrumb-MOA2DBOE.js} +2 -2
  39. package/dist/breadcrumb-NZYOCEEM.js +47 -0
  40. package/dist/breadcrumb-VY5DNTTJ.js +46 -0
  41. package/dist/{breadcrumb-UAUX7XCV.js → breadcrumb-WG6TIF4C.js} +2 -2
  42. package/dist/{breadcrumb-7R6E6G2X.js → breadcrumb-XEZCMI55.js} +2 -2
  43. package/dist/{breadcrumb-FES7EKUR.js → breadcrumb-XGXKCDYS.js} +4 -4
  44. package/dist/{breadcrumb-Y5UW3I4C.js → breadcrumb-YOY6Z36F.js} +2 -2
  45. package/dist/{campaigns-JAQTSA4Z.js → campaigns-DZKRNCA4.js} +9 -9
  46. package/dist/{categories-6TVMTN62.js → categories-JZJA2IBQ.js} +13 -11
  47. package/dist/{chunk-SFQKKIHA.js → chunk-27WLUOI2.js} +1 -1
  48. package/dist/{chunk-U5XDKYZG.js → chunk-2KA4TGBQ.js} +3 -3
  49. package/dist/{chunk-6RH3VDF7.js → chunk-2NPD4S55.js} +4 -4
  50. package/dist/{chunk-M6GKMFTC.js → chunk-3ALBZK4M.js} +1 -1
  51. package/dist/{chunk-PXYDR7WQ.js → chunk-3BXCPHN6.js} +3 -2
  52. package/dist/{chunk-X4INVIWL.js → chunk-3C2T27YW.js} +3 -3
  53. package/dist/{chunk-QXLRABYH.js → chunk-3I6ZAMGN.js} +1 -1
  54. package/dist/{chunk-THMXGEZU.js → chunk-3SH24DGG.js} +2 -2
  55. package/dist/chunk-3TST3EWQ.js +438 -0
  56. package/dist/chunk-42R54Z2X.js +8 -0
  57. package/dist/{chunk-UDJ2I5A2.js → chunk-4IRQSBA7.js} +5 -6
  58. package/dist/chunk-5ALC4Z2H.js +23 -0
  59. package/dist/chunk-5BQO3YQP.js +62 -0
  60. package/dist/{chunk-QGGMG3OU.js → chunk-5BYYDBLS.js} +7 -7
  61. package/dist/{chunk-4LVP635F.js → chunk-5FBQOAXU.js} +135 -126
  62. package/dist/{chunk-2BCAQ4BB.js → chunk-5PAUN3PM.js} +3 -3
  63. package/dist/{chunk-E2HQPY32.js → chunk-5RMLLTR7.js} +5 -5
  64. package/dist/{chunk-3EF54XFY.js → chunk-634XVU3D.js} +1 -1
  65. package/dist/{chunk-LJO34DKJ.js → chunk-6FDPVW7Y.js} +35 -21
  66. package/dist/{chunk-3X3LUKDM.js → chunk-6Q3J6ZMM.js} +5 -5
  67. package/dist/chunk-7BFQKYCJ.js +127 -0
  68. package/dist/chunk-7EXKHL5L.js +30 -0
  69. package/dist/{chunk-M6N4ISXL.js → chunk-7MARNXFG.js} +1 -1
  70. package/dist/{chunk-WHSE47DM.js → chunk-AOLE7MBM.js} +1 -1
  71. package/dist/{chunk-YIZK67RW.js → chunk-BQHVM46E.js} +29 -49
  72. package/dist/chunk-CRYZK4NU.js +185 -0
  73. package/dist/{chunk-JYPPXAJG.js → chunk-CUAGC54B.js} +33 -35
  74. package/dist/{chunk-KIFSQOM2.js → chunk-D76WZZSB.js} +5 -5
  75. package/dist/{chunk-QLBIBLOY.js → chunk-DQ7LZZJX.js} +5 -5
  76. package/dist/{chunk-UCYSCKZV.js → chunk-DSTHXHJ5.js} +2114 -1699
  77. package/dist/{chunk-L7QKFC5N.js → chunk-E6W57UP3.js} +32 -122
  78. package/dist/{chunk-UFFVRF4V.js → chunk-EAAZV3B7.js} +6 -11
  79. package/dist/chunk-EDV4MTTT.js +434 -0
  80. package/dist/chunk-EEBJYXWA.js +15 -0
  81. package/dist/{chunk-UORPTGV2.js → chunk-EPRYM3FA.js} +11 -15
  82. package/dist/{chunk-YQYRAD5C.js → chunk-FCZJAYMM.js} +1 -1
  83. package/dist/{chunk-JMRWREVE.js → chunk-FDKFUIYV.js} +23 -36
  84. package/dist/chunk-FWPGOIFA.js +22 -0
  85. package/dist/{chunk-B234IELY.js → chunk-G6YNCIVF.js} +24 -41
  86. package/dist/{chunk-PVZBDWLK.js → chunk-GRH7C3QN.js} +1 -1
  87. package/dist/chunk-GSH6ZGI6.js +353 -0
  88. package/dist/{chunk-IQWK723D.js → chunk-GZ4KTAWS.js} +1 -1
  89. package/dist/{chunk-MJCL3WID.js → chunk-H6LZ77GX.js} +1 -1
  90. package/dist/{chunk-WLT7K7K7.js → chunk-HDEOZN2Q.js} +21 -24
  91. package/dist/{chunk-FDR22JMM.js → chunk-HFRHHT36.js} +8 -63
  92. package/dist/{chunk-GNDFMMC6.js → chunk-IEVN722X.js} +1 -1
  93. package/dist/{chunk-DARJTN4I.js → chunk-IMJ62GAP.js} +10 -5
  94. package/dist/{chunk-SGR4DMCW.js → chunk-INYLPVCG.js} +3 -3
  95. package/dist/{chunk-5T6UWTRU.js → chunk-IV57G2CB.js} +19 -11
  96. package/dist/chunk-J6XCRFBW.js +30 -0
  97. package/dist/{chunk-BLRZB63H.js → chunk-JDNXS37G.js} +61 -62
  98. package/dist/{chunk-3B34B2M2.js → chunk-JJP6AKMV.js} +1 -1
  99. package/dist/{chunk-XEU5ZLSB.js → chunk-JK4M3ZKY.js} +5 -5
  100. package/dist/{chunk-VXMOPVRH.js → chunk-JR7AABT5.js} +2 -2
  101. package/dist/{chunk-PBD36EZJ.js → chunk-JTHDMXZV.js} +5 -5
  102. package/dist/{chunk-Q75AC3DZ.js → chunk-JY2XON7H.js} +2 -2
  103. package/dist/{chunk-6OUPJNYO.js → chunk-KCHYLLVG.js} +2 -2
  104. package/dist/{chunk-YGRTRAWX.js → chunk-KDE4HKH2.js} +1 -0
  105. package/dist/{chunk-VPKMBJ5B.js → chunk-KG2NUK4J.js} +6 -6
  106. package/dist/{chunk-VXWN37PT.js → chunk-KIURBTC4.js} +1 -1
  107. package/dist/{chunk-7LVNAFEI.js → chunk-KTJLJTFO.js} +547 -882
  108. package/dist/{chunk-FCJ7MLQK.js → chunk-KZQFIPY2.js} +264 -76
  109. package/dist/chunk-L57USMYC.js +39 -0
  110. package/dist/{chunk-4KNL46BT.js → chunk-LWFBBTJ3.js} +5 -5
  111. package/dist/{chunk-RIN4CBRB.js → chunk-LXZXXOJ3.js} +1 -17
  112. package/dist/chunk-LYYM7H7H.js +59 -0
  113. package/dist/{chunk-MWQQVKRU.js → chunk-MAVQ636Y.js} +1 -1
  114. package/dist/{chunk-VDHW6H5F.js → chunk-MAW6ZT3D.js} +4 -4
  115. package/dist/{chunk-7CMRFP5Q.js → chunk-MJP5V3JN.js} +3 -3
  116. package/dist/{chunk-S7EKBD2C.js → chunk-MNHP6YRC.js} +3 -3
  117. package/dist/{chunk-QZJIDKQR.js → chunk-MT6WOKIW.js} +4 -4
  118. package/dist/chunk-MUGQQY6P.js +315 -0
  119. package/dist/{chunk-QT7YFHCA.js → chunk-MVEHWM7K.js} +13 -1
  120. package/dist/{chunk-VV6IKGCN.js → chunk-NTJ3BMOE.js} +1 -1
  121. package/dist/{chunk-JXQJQYGD.js → chunk-O7BGGWW6.js} +2 -2
  122. package/dist/{chunk-LWJF63JW.js → chunk-OYUJYPDF.js} +90 -15
  123. package/dist/{chunk-4S6XGIC6.js → chunk-PUAWN7SS.js} +1 -1
  124. package/dist/{chunk-U6PBLMXD.js → chunk-Q6SPIHFR.js} +8 -3
  125. package/dist/{chunk-F4OJN2F2.js → chunk-QIF4QE7T.js} +1 -1
  126. package/dist/{chunk-X22KTLZ7.js → chunk-QWJTJSIT.js} +1 -1
  127. package/dist/{chunk-2USXZSTK.js → chunk-QWW6RHZC.js} +5 -5
  128. package/dist/{chunk-TODJFRLH.js → chunk-RILHLBKW.js} +3 -3
  129. package/dist/{chunk-PP754CO7.js → chunk-RPU4UOQK.js} +1 -1
  130. package/dist/{chunk-AVOZ7TX2.js → chunk-RTMMO6IU.js} +6 -6
  131. package/dist/chunk-S7NGDLZ3.js +173 -0
  132. package/dist/{chunk-U2ZFCAPX.js → chunk-SITRHMZZ.js} +11 -8
  133. package/dist/chunk-SPFLYPY6.js +6 -0
  134. package/dist/{chunk-EIUYXS7E.js → chunk-TJKZ5QCJ.js} +4 -4
  135. package/dist/{chunk-WCSQDWMS.js → chunk-TPGIMZLI.js} +1 -1
  136. package/dist/chunk-UM7ZR3VU.js +14 -0
  137. package/dist/{chunk-PGW3VYK4.js → chunk-UNE4VD5U.js} +3 -3
  138. package/dist/chunk-UX5UYDCY.js +33 -0
  139. package/dist/{chunk-IXAQNTE7.js → chunk-V5K6HISS.js} +2 -2
  140. package/dist/chunk-VCUUITW6.js +35 -0
  141. package/dist/{chunk-T5MJWWDX.js → chunk-VD27SL7H.js} +5 -5
  142. package/dist/{chunk-LRARA622.js → chunk-VE6GRIIN.js} +2 -2
  143. package/dist/{chunk-SSUUT5LK.js → chunk-W3UHAQCV.js} +5 -4
  144. package/dist/{chunk-U5G3AVED.js → chunk-WBCWER26.js} +1 -1
  145. package/dist/{chunk-PXI47JL5.js → chunk-WCXFUBEF.js} +13 -13
  146. package/dist/{chunk-AVOIZO63.js → chunk-WFE6CT6M.js} +77 -21
  147. package/dist/{chunk-E2L5EX5A.js → chunk-WFHGJGCW.js} +7 -6
  148. package/dist/{chunk-LQD232FW.js → chunk-WJ5EU3KW.js} +1 -1
  149. package/dist/{chunk-6YA3C4NB.js → chunk-XBKWFLJG.js} +4 -13
  150. package/dist/chunk-XQUF3WIS.js +159 -0
  151. package/dist/{chunk-SS46VQJA.js → chunk-Y4PM3IDZ.js} +1 -1
  152. package/dist/chunk-YBF45CX5.js +23 -0
  153. package/dist/{chunk-JQV7CXEC.js → chunk-YNGA3GRX.js} +17 -2
  154. package/dist/chunk-ZHFFTT3I.js +17 -0
  155. package/dist/{chunk-BOZJOOGW.js → chunk-ZLHCZ5F2.js} +1 -1
  156. package/dist/{chunk-LHKHQAAY.js → chunk-ZLYGEART.js} +1 -1
  157. package/dist/{chunk-NBPMNUKZ.js → chunk-ZQCCVCHB.js} +1 -1
  158. package/dist/{chunk-ADGVQVHP.js → chunk-ZTOYVPGA.js} +3 -3
  159. package/dist/collections-XIHCTMSJ.js +70 -0
  160. package/dist/{configuration-C4IGBNXH.js → configuration-3GCBMM27.js} +3 -3
  161. package/dist/{configuration-JI22M76Z.js → configuration-FWZTMYXY.js} +5 -5
  162. package/dist/{create-OXR7WG5F.js → create-2RGNAVVY.js} +32 -32
  163. package/dist/{create-5QLYFVEK.js → create-32MXB6FD.js} +24 -24
  164. package/dist/create-3AMFYYI6.js +245 -0
  165. package/dist/create-AMNH3WXL.js +75 -0
  166. package/dist/{create-UPYB65PD.js → create-BV3QDTK2.js} +4 -4
  167. package/dist/{create-POK6SJSZ.js → create-FHIFVCSG.js} +52 -49
  168. package/dist/{create-EATFT5AB.js → create-GO7APBBU.js} +31 -31
  169. package/dist/create-HEZYB7RF.js +1179 -0
  170. package/dist/{create-R7K3ECN6.js → create-K26SM34L.js} +3 -3
  171. package/dist/{create-6I43IPLO.js → create-N534JQPH.js} +14 -14
  172. package/dist/create-NEK6JCKR.js +1798 -0
  173. package/dist/{create-YBF4YGWG.js → create-NF2LPVXA.js} +3 -3
  174. package/dist/{create-F7IDSSTP.js → create-PJVLJ7T6.js} +50 -45
  175. package/dist/{create-CK4X357V.js → create-RPBHXU32.js} +28 -28
  176. package/dist/{create-SFU3W3ZH.js → create-U64NEOEL.js} +3 -3
  177. package/dist/create-VL7LDTVE.js +1931 -0
  178. package/dist/{create-XVHOCZHJ.js → create-X5SOAPD3.js} +3 -3
  179. package/dist/{create-2XZLOG5Z.js → create-XLYGW5PN.js} +69 -41
  180. package/dist/{create-GB3ZA4LH.js → create-YKYLCEAK.js} +6 -6
  181. package/dist/customer-group-add-customers-2C53NFBJ.js +251 -0
  182. package/dist/customer-group-create-75QQEQZF.js +147 -0
  183. package/dist/customer-group-detail-AOQYYAOG.js +58 -0
  184. package/dist/customer-group-edit-N77RCW6I.js +138 -0
  185. package/dist/customer-groups-GNFV7VMT.js +284 -0
  186. package/dist/{customers-SOLJ2KQQ.js → customers-HNINO6YL.js} +11 -11
  187. package/dist/{edit-TZ4EXLKJ.js → edit-3DUCWSLA.js} +62 -46
  188. package/dist/{edit-ORXS3A2Y.js → edit-3V34KJS2.js} +3 -3
  189. package/dist/{edit-RJ3EZ5CD.js → edit-4PWAJ7A3.js} +25 -25
  190. package/dist/{edit-ZQP4MNJU.js → edit-7CLOJ3UZ.js} +50 -47
  191. package/dist/{edit-ZAHCMF5U.js → edit-7SBPHN6P.js} +3 -3
  192. package/dist/edit-BSD6667Q.js +367 -0
  193. package/dist/{edit-Q3UQIOLS.js → edit-I2RJUPWV.js} +4 -4
  194. package/dist/{edit-UUP3BQV3.js → edit-IJ6DCBUU.js} +5 -5
  195. package/dist/{edit-ZMERG3L7.js → edit-JB7KVBOL.js} +5 -5
  196. package/dist/{edit-O4JLGKQR.js → edit-NHQJLCAK.js} +4 -4
  197. package/dist/edit-O65JD54W.js +103 -0
  198. package/dist/{edit-4OEBCCXJ.js → edit-SIKOSSHF.js} +24 -24
  199. package/dist/edit-TD7QFM4Z.js +871 -0
  200. package/dist/{edit-C4OCKQVU.js → edit-UNN3QTEJ.js} +3 -3
  201. package/dist/{edit-PFAJZUWI.js → edit-WEUFBORT.js} +33 -34
  202. package/dist/{edit-KAKVPHZZ.js → edit-WN2Q3TOX.js} +4 -4
  203. package/dist/{edit-QPPMI7MU.js → edit-ZGAOUZYP.js} +33 -34
  204. package/dist/{edit-522DG3BY.js → edit-ZOLSAIKF.js} +3 -3
  205. package/dist/{edit-2LGAEKH6.js → edit-ZORE6RUD.js} +25 -25
  206. package/dist/{edit-budget-L3CCEWNF.js → edit-budget-D22WMVYR.js} +3 -3
  207. package/dist/{edit-inventory-item-A7KAPATR.js → edit-inventory-item-QMYWEBZ3.js} +3 -3
  208. package/dist/{edit-inventory-item-attributes-RNBOJR66.js → edit-inventory-item-attributes-HLG6JR6S.js} +3 -3
  209. package/dist/edit-price-F7ZWM3FN.js +197 -0
  210. package/dist/edit-stock-ITAZNHPU.js +230 -0
  211. package/dist/fulfillment-U2GRQ6DD.js +641 -0
  212. package/dist/{fulfillment-providers-6WDXCGAI.js → fulfillment-providers-CMU2JB5X.js} +40 -40
  213. package/dist/index.css +120 -24
  214. package/dist/index.js +355 -235
  215. package/dist/{offer-inventory-batch-page-4QNXDUWN.js → inventory-4JKLAZ2Q.js} +20 -20
  216. package/dist/{inventory-IOVM7GDU.js → inventory-FKEXULLT.js} +10 -10
  217. package/dist/{invite-HRKSQI4B.js → invite-3R2CEWLN.js} +23 -23
  218. package/dist/{invite-UBH7PYSH.js → invite-MNAX6EUC.js} +39 -39
  219. package/dist/loader-HTPUNIOS.js +34 -0
  220. package/dist/loader-MAAMUP2Z.js +33 -0
  221. package/dist/{locations-INS6FTMJ.js → locations-2VWSMWHL.js} +3 -3
  222. package/dist/login-YUWOWICV.js +39 -0
  223. package/dist/{manage-locations-TIYOCOZU.js → manage-locations-RWGDXXJQ.js} +3 -3
  224. package/dist/{media-EXWUWWNB.js → media-P6WSFHY4.js} +31 -30
  225. package/dist/media-YB4G5CMV.js +316 -0
  226. package/dist/{metadata-JIMHXPKE.js → metadata-5Q6FLVX4.js} +27 -27
  227. package/dist/{metadata-T6MLCEZ2.js → metadata-6OYHLPLA.js} +25 -25
  228. package/dist/{metadata-JCNPERR3.js → metadata-ADXGD4Y6.js} +25 -25
  229. package/dist/{metadata-ITS3VPE3.js → metadata-J447GEBP.js} +27 -27
  230. package/dist/{metadata-YOQEXEGO.js → metadata-VTQ2CGZX.js} +27 -27
  231. package/dist/{offer-create-page-6YTTQAXZ.js → offer-create-page-ACPKTNHA.js} +245 -266
  232. package/dist/offer-detail-page-S4R4N5GL.js +584 -0
  233. package/dist/offer-variant-detail-page-XUMDXZUD.js +402 -0
  234. package/dist/offers-OTZJBW43.js +54 -0
  235. package/dist/{onboarding-GCRT6P6M.js → onboarding-TUGXFOA6.js} +23 -23
  236. package/dist/orders-PJSJNGZS.js +63 -0
  237. package/dist/{organization-5AFVFFZQ.js → organization-YIOAVFHN.js} +26 -26
  238. package/dist/{organize-QXDKGP2X.js → organize-BTA7NJD2.js} +4 -4
  239. package/dist/{organize-AZYAANZM.js → organize-OWT5QSJR.js} +4 -4
  240. package/dist/pages/index.d.ts +232 -232
  241. package/dist/pages/index.js +89 -87
  242. package/dist/{payment-details-ENUWDVGI.js → payment-details-K2XFATEL.js} +24 -24
  243. package/dist/{payouts-2QBQSNDR.js → payouts-K5IDTJV3.js} +11 -11
  244. package/dist/{price-lists-2WBNENE7.js → price-lists-DNPIPDAW.js} +13 -13
  245. package/dist/{offer-pricing-edit-page-WZNP3TWV.js → pricing-5VUPPNKS.js} +21 -19
  246. package/dist/{pricing-4Y73YJHP.js → pricing-J5FIDZIY.js} +32 -32
  247. package/dist/{product-tags-DE32PERU.js → product-tags-SJYIGXEV.js} +47 -44
  248. package/dist/{product-types-PKUEL7X5.js → product-types-4PTJW5DE.js} +10 -10
  249. package/dist/product-variant-detail-FO6J3RFA.js +371 -0
  250. package/dist/{product-variant-edit-ESLPI5ES.js → product-variant-edit-55TAIBZO.js} +45 -27
  251. package/dist/{products-WLGCX6Z7.js → products-EQMANSO6.js} +41 -40
  252. package/dist/products-XM57LXJK.js +92 -0
  253. package/dist/{professional-details-OCVQO2MV.js → professional-details-WWZPTXSX.js} +24 -24
  254. package/dist/{profile-2HW5NX6K.js → profile-5IADQ727.js} +30 -30
  255. package/dist/{promotions-FPV6QOEQ.js → promotions-BYW6TZ5B.js} +12 -12
  256. package/dist/receive-MTXKKPKZ.js +578 -0
  257. package/dist/refund-3IXGYA7W.js +268 -0
  258. package/dist/{register-PZOHGO7N.js → register-U5PQZATC.js} +25 -25
  259. package/dist/{reset-password-Q7BNWHHO.js → reset-password-SKUJJLSV.js} +3 -3
  260. package/dist/{return-reasons-J2WFZOQH.js → return-reasons-QDPSIJG3.js} +22 -19
  261. package/dist/{sales-channels-I3PR34U5.js → sales-channels-GBSTCWVP.js} +12 -13
  262. package/dist/{sales-channels-HPG2ND4W.js → sales-channels-N4NE3FXP.js} +14 -15
  263. package/dist/{settings-RZNYWACF.js → settings-ZUBBFS67.js} +54 -51
  264. package/dist/shipment-TKSCPC3M.js +241 -0
  265. package/dist/shipping-DODEUYOQ.js +125 -0
  266. package/dist/{shipping-profile-M3GGADFI.js → shipping-profile-O4JMJLN7.js} +5 -9
  267. package/dist/shipping-profiles-4TJ4IH6U.js +46 -0
  268. package/dist/{stock-3HVQ6FYP.js → stock-GYK2GHJN.js} +27 -27
  269. package/dist/{store-LDVMG7CV.js → store-XWOALZ5Q.js} +36 -36
  270. package/dist/{store-closure-EZ2YPOPL.js → store-closure-46B3XZ2I.js} +24 -24
  271. package/dist/{store-select-AM4AE7AL.js → store-select-E77E3ZY7.js} +24 -24
  272. package/dist/{tax-regions-HDLBFZVG.js → tax-regions-S2LFRTMP.js} +9 -9
  273. package/dist/{team-6NTDISM4.js → team-N2C5JPSU.js} +37 -37
  274. package/package.json +12 -12
  275. package/dist/[id]-MOOCGOWO.js +0 -480
  276. package/dist/[id]-UVQXCYXD.js +0 -1219
  277. package/dist/[id]-VUX4FUOO.js +0 -1557
  278. package/dist/allocate-items-OK5PVJGR.js +0 -533
  279. package/dist/attributes-TRAUBTCO.js +0 -278
  280. package/dist/breadcrumb-6FV7PWEN.js +0 -33
  281. package/dist/breadcrumb-EX4C3AZY.js +0 -47
  282. package/dist/breadcrumb-Q3XSG7B2.js +0 -46
  283. package/dist/chunk-27KRIXMQ.js +0 -71
  284. package/dist/chunk-432S4FGR.js +0 -0
  285. package/dist/chunk-BDZOSMAX.js +0 -23
  286. package/dist/chunk-CFRWIQIZ.js +0 -43
  287. package/dist/chunk-G7BL4L3L.js +0 -66
  288. package/dist/chunk-RXV7INUV.js +0 -426
  289. package/dist/chunk-T6LHVNWO.js +0 -27
  290. package/dist/collections-DS63FT2E.js +0 -68
  291. package/dist/create-HR4I33SE.js +0 -73
  292. package/dist/create-UFHLPXET.js +0 -215
  293. package/dist/edit-GQNIINRR.js +0 -192
  294. package/dist/fulfillment-OIIPL7B7.js +0 -559
  295. package/dist/loader-VDYPD3RI.js +0 -31
  296. package/dist/login-HON44E3S.js +0 -39
  297. package/dist/metadata-5BPOBBU2.js +0 -45
  298. package/dist/offer-detail-page-OMZN2NTA.js +0 -492
  299. package/dist/offer-edit-page-3MO566RP.js +0 -151
  300. package/dist/offers-GVN5LCK6.js +0 -32
  301. package/dist/orders-CHSS4ASB.js +0 -63
  302. package/dist/product-variant-detail-MWUBPCOP.js +0 -209
  303. package/dist/products-XOHAQHUJ.js +0 -91
  304. package/dist/shipment-KWUXQZWK.js +0 -176
  305. package/dist/shipping-profiles-L27STQ7K.js +0 -46
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-ZA2KFUFR.js";
7
7
  import {
8
8
  sdk
9
- } from "./chunk-RIN4CBRB.js";
9
+ } from "./chunk-LXZXXOJ3.js";
10
10
 
11
11
  // src/hooks/api/inventory.tsx
12
12
  import {
@@ -27,18 +27,21 @@ var PRODUCT_ATTRIBUTES_QUERY_KEY = "product_attributes";
27
27
  var productAttributesQueryKeys = queryKeysFactory(
28
28
  PRODUCT_ATTRIBUTES_QUERY_KEY
29
29
  );
30
- var useProductAttribute = (id, query, options) => {
31
- const { data, ...rest } = useQuery({
32
- queryKey: productAttributesQueryKeys.detail(id, query),
33
- queryFn: async () => sdk.vendor.productAttributes.$id.query({ $id: id, ...query }),
34
- ...options
30
+ var sortAttributeValuesByRank = (attributes) => {
31
+ attributes?.forEach((attribute) => {
32
+ if (Array.isArray(attribute.values)) {
33
+ attribute.values.sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0));
34
+ }
35
35
  });
36
- return { ...data, ...rest };
37
36
  };
38
37
  var useProductAttributes = (query, options) => {
39
38
  const { data, ...rest } = useQuery({
40
39
  queryKey: productAttributesQueryKeys.list(query),
41
- queryFn: async () => sdk.vendor.productAttributes.query({ ...query }),
40
+ queryFn: async () => {
41
+ const res = await sdk.vendor.productAttributes.query({ ...query });
42
+ sortAttributeValuesByRank(res?.product_attributes);
43
+ return res;
44
+ },
42
45
  ...options
43
46
  });
44
47
  return { ...data, ...rest };
@@ -116,6 +119,7 @@ var useDeleteProduct = (id, options) => {
116
119
  queryKey: productChangeQueryKeys.detail(id)
117
120
  });
118
121
  queryClient.invalidateQueries({ queryKey: productsQueryKeys.detail(id) });
122
+ queryClient.invalidateQueries({ queryKey: productsQueryKeys.lists() });
119
123
  options?.onSuccess?.(data, variables, context);
120
124
  },
121
125
  ...options
@@ -192,6 +196,9 @@ var useUpdateProductVariant = (productId, variantId, options) => {
192
196
  queryClient.invalidateQueries({
193
197
  queryKey: productsQueryKeys.detail(productId)
194
198
  });
199
+ queryClient.invalidateQueries({
200
+ queryKey: variantsQueryKeys.detail(variantId)
201
+ });
195
202
  options?.onSuccess?.(data, variables, context);
196
203
  },
197
204
  ...options
@@ -236,64 +243,43 @@ var useDeleteVariantLazy = (productId, options) => {
236
243
  ...options
237
244
  });
238
245
  };
239
- var useAddProductAttribute = (productId, options) => {
246
+ var useBatchProductAttributes = (productId, options) => {
240
247
  return useMutation({
241
- mutationFn: (payload) => sdk.vendor.products.$id.attributes.mutate({
248
+ mutationFn: (payload) => sdk.vendor.products.$id.attributes.batch.mutate({
242
249
  $id: productId,
243
250
  ...payload
244
251
  }),
245
252
  onSuccess: (data, variables, context) => {
246
- queryClient.invalidateQueries({
247
- queryKey: productChangeQueryKeys.detail(productId)
248
- });
249
253
  queryClient.invalidateQueries({
250
254
  queryKey: productAttributesQueryKeys.lists()
251
255
  });
252
256
  queryClient.invalidateQueries({
253
257
  queryKey: productsQueryKeys.detail(productId)
254
258
  });
255
- options?.onSuccess?.(data, variables, context);
256
- },
257
- ...options
258
- });
259
- };
260
- var useBatchProductAttributes = (productId, options) => {
261
- return useMutation({
262
- mutationFn: (payload) => sdk.vendor.products.$id.attributes.batch.mutate({
263
- $id: productId,
264
- ...payload
265
- }),
266
- onSuccess: (data, variables, context) => {
267
259
  queryClient.invalidateQueries({
268
260
  queryKey: productChangeQueryKeys.detail(productId)
269
261
  });
270
- queryClient.invalidateQueries({
271
- queryKey: productAttributesQueryKeys.lists()
272
- });
273
- queryClient.invalidateQueries({
274
- queryKey: productsQueryKeys.detail(productId)
275
- });
276
262
  options?.onSuccess?.(data, variables, context);
277
263
  },
278
264
  ...options
279
265
  });
280
266
  };
281
- var useRemoveProductAttribute = (productId, attributeId, options) => {
267
+ var useRemoveAttributeFromProduct = (productId, attributeId, options) => {
282
268
  return useMutation({
283
- mutationFn: () => sdk.vendor.products.$id.attributes.$attributeId.delete({
269
+ mutationFn: () => sdk.vendor.products.$id.attributes.batch.mutate({
284
270
  $id: productId,
285
- $attributeId: attributeId
271
+ remove: [attributeId]
286
272
  }),
287
273
  onSuccess: (data, variables, context) => {
288
- queryClient.invalidateQueries({
289
- queryKey: productChangeQueryKeys.detail(productId)
290
- });
291
274
  queryClient.invalidateQueries({
292
275
  queryKey: productAttributesQueryKeys.lists()
293
276
  });
294
277
  queryClient.invalidateQueries({
295
278
  queryKey: productsQueryKeys.detail(productId)
296
279
  });
280
+ queryClient.invalidateQueries({
281
+ queryKey: productChangeQueryKeys.detail(productId)
282
+ });
297
283
  options?.onSuccess?.(data, variables, context);
298
284
  },
299
285
  ...options
@@ -489,8 +475,6 @@ export {
489
475
  useUpdateInventoryLevel,
490
476
  useBatchInventoryItemLocationLevels,
491
477
  useBatchInventoryItemsLocationLevels,
492
- productAttributesQueryKeys,
493
- useProductAttribute,
494
478
  useProductAttributes,
495
479
  productsQueryKeys,
496
480
  variantsQueryKeys,
@@ -507,7 +491,6 @@ export {
507
491
  useUpdateProductVariant,
508
492
  useDeleteVariant,
509
493
  useDeleteVariantLazy,
510
- useAddProductAttribute,
511
494
  useBatchProductAttributes,
512
- useRemoveProductAttribute
495
+ useRemoveAttributeFromProduct
513
496
  };
@@ -25,7 +25,7 @@ var useCustomerTableQuery = ({
25
25
  offset: offset ? Number(offset) : 0,
26
26
  groups: groups?.split(","),
27
27
  has_account: has_account ? has_account === "true" : void 0,
28
- order,
28
+ order: order ? order : "-created_at",
29
29
  created_at: created_at ? JSON.parse(created_at) : void 0,
30
30
  updated_at: updated_at ? JSON.parse(updated_at) : void 0,
31
31
  q
@@ -0,0 +1,353 @@
1
+ import {
2
+ OFFERS_PAGE_SIZE,
3
+ OFFER_PRODUCT_LIST_FIELDS
4
+ } from "./chunk-XQUF3WIS.js";
5
+ import {
6
+ CategoryCell,
7
+ CategoryHeader,
8
+ ProductStatusCell,
9
+ ProductStatusHeader
10
+ } from "./chunk-WBCWER26.js";
11
+ import {
12
+ ProductCell
13
+ } from "./chunk-FWPGOIFA.js";
14
+ import {
15
+ useProductTableFilters
16
+ } from "./chunk-JK4M3ZKY.js";
17
+ import {
18
+ PlaceholderCell
19
+ } from "./chunk-PHOCVOZ5.js";
20
+ import {
21
+ _DataTable,
22
+ useDataTable
23
+ } from "./chunk-W3UHAQCV.js";
24
+ import {
25
+ SingleColumnPage
26
+ } from "./chunk-YV6MK4PZ.js";
27
+ import {
28
+ useQueryParams
29
+ } from "./chunk-THHRRYRS.js";
30
+ import {
31
+ ActionMenu
32
+ } from "./chunk-BDGZ4EQO.js";
33
+ import {
34
+ useBulkDeleteOffers
35
+ } from "./chunk-EPRYM3FA.js";
36
+ import {
37
+ useProducts
38
+ } from "./chunk-G6YNCIVF.js";
39
+
40
+ // src/pages/offers/offer-list-page.tsx
41
+ import { Children as Children2 } from "react";
42
+
43
+ // src/pages/offers/_components/offer-list-table.tsx
44
+ import { Container } from "@medusajs/ui";
45
+ import { Children } from "react";
46
+ import { Outlet } from "react-router-dom";
47
+
48
+ // src/pages/offers/_components/offer-list-data-table.tsx
49
+ import { keepPreviousData } from "@tanstack/react-query";
50
+ import { useTranslation as useTranslation3 } from "react-i18next";
51
+
52
+ // src/pages/offers/_components/use-offer-table-columns.tsx
53
+ import { Text } from "@medusajs/ui";
54
+ import { createColumnHelper } from "@tanstack/react-table";
55
+ import { useMemo } from "react";
56
+ import { useTranslation as useTranslation2 } from "react-i18next";
57
+
58
+ // src/pages/offers/_components/offer-actions.tsx
59
+ import { Buildings, CurrencyDollar, Trash } from "@medusajs/icons";
60
+ import { toast, usePrompt } from "@medusajs/ui";
61
+ import { useTranslation } from "react-i18next";
62
+ import { jsx } from "react/jsx-runtime";
63
+ var OfferActions = ({ product }) => {
64
+ const { t } = useTranslation();
65
+ const prompt = usePrompt();
66
+ const { mutateAsync: bulkDelete } = useBulkDeleteOffers();
67
+ const handleDelete = async () => {
68
+ if (!product.offerIds.length) {
69
+ return;
70
+ }
71
+ const confirmed = await prompt({
72
+ title: t("general.areYouSure"),
73
+ // The product listing is one offer to the seller, regardless of how
74
+ // many of its variants are offered under the hood.
75
+ description: t("offers.delete.descriptionByName", { name: product.title }),
76
+ confirmText: t("actions.delete"),
77
+ cancelText: t("actions.cancel"),
78
+ variant: "danger"
79
+ });
80
+ if (!confirmed) {
81
+ return;
82
+ }
83
+ const result = await bulkDelete(product.offerIds);
84
+ if (result.failed.length === 0) {
85
+ toast.success(t("offers.delete.successToast"));
86
+ } else {
87
+ toast.warning(
88
+ t("offers.bulkDelete.partialToast", {
89
+ succeeded: result.succeeded.length,
90
+ total: product.offerIds.length,
91
+ failed: result.failed.length
92
+ })
93
+ );
94
+ }
95
+ };
96
+ return /* @__PURE__ */ jsx(
97
+ ActionMenu,
98
+ {
99
+ groups: [
100
+ {
101
+ actions: [
102
+ {
103
+ icon: /* @__PURE__ */ jsx(CurrencyDollar, {}),
104
+ label: t("offers.actions.edit_prices"),
105
+ to: `${product.id}/edit-price`
106
+ },
107
+ {
108
+ icon: /* @__PURE__ */ jsx(Buildings, {}),
109
+ label: t("offers.actions.edit_stock_levels"),
110
+ to: `${product.id}/edit-stock`
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ actions: [
116
+ {
117
+ icon: /* @__PURE__ */ jsx(Trash, {}),
118
+ label: t("actions.delete"),
119
+ onClick: handleDelete,
120
+ disabled: product.offerIds.length === 0
121
+ }
122
+ ]
123
+ }
124
+ ]
125
+ }
126
+ );
127
+ };
128
+
129
+ // src/pages/offers/_components/use-offer-table-columns.tsx
130
+ import { jsx as jsx2 } from "react/jsx-runtime";
131
+ var columnHelper = createColumnHelper();
132
+ var countOfferedVariants = (row) => (row.variants ?? []).filter((v) => (v.offers?.length ?? 0) > 0).length;
133
+ var collectOfferIds = (row) => (row.variants ?? []).flatMap((v) => (v.offers ?? []).map((o) => o.id));
134
+ var useOfferTableColumns = () => {
135
+ const { t } = useTranslation2();
136
+ return useMemo(
137
+ () => [
138
+ columnHelper.display({
139
+ id: "product",
140
+ header: t("offers.domain"),
141
+ cell: ({ row }) => /* @__PURE__ */ jsx2(
142
+ ProductCell,
143
+ {
144
+ product: {
145
+ title: row.original.title ?? "",
146
+ thumbnail: row.original.thumbnail ?? null
147
+ }
148
+ }
149
+ )
150
+ }),
151
+ columnHelper.display({
152
+ id: "categories",
153
+ header: () => /* @__PURE__ */ jsx2(CategoryHeader, {}),
154
+ cell: ({ row }) => /* @__PURE__ */ jsx2(CategoryCell, { categories: row.original.categories })
155
+ }),
156
+ columnHelper.display({
157
+ id: "collection",
158
+ header: t("fields.collection"),
159
+ cell: ({ row }) => {
160
+ const collection = row.original.collection;
161
+ if (!collection?.title) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
162
+ return /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "truncate", children: collection.title });
163
+ }
164
+ }),
165
+ columnHelper.display({
166
+ id: "variants",
167
+ header: t("offers.fields.variants"),
168
+ cell: ({ row }) => /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", className: "truncate", children: t("offers.fields.variantsCount", {
169
+ count: countOfferedVariants(row.original)
170
+ }) })
171
+ }),
172
+ columnHelper.display({
173
+ id: "status",
174
+ header: () => /* @__PURE__ */ jsx2(ProductStatusHeader, {}),
175
+ cell: ({ row }) => {
176
+ const status = row.original.status;
177
+ if (!status) return /* @__PURE__ */ jsx2(PlaceholderCell, {});
178
+ return /* @__PURE__ */ jsx2(ProductStatusCell, { status });
179
+ }
180
+ }),
181
+ columnHelper.display({
182
+ id: "actions",
183
+ cell: ({ row }) => /* @__PURE__ */ jsx2(
184
+ OfferActions,
185
+ {
186
+ product: {
187
+ id: row.original.id,
188
+ title: row.original.title ?? "",
189
+ offerIds: collectOfferIds(row.original)
190
+ }
191
+ }
192
+ )
193
+ })
194
+ ],
195
+ [t]
196
+ );
197
+ };
198
+
199
+ // src/pages/offers/_components/use-offer-table-filters.tsx
200
+ var useOfferTableFilters = () => useProductTableFilters();
201
+
202
+ // src/pages/offers/_components/use-offer-table-query.tsx
203
+ var useOfferTableQuery = ({
204
+ pageSize = 10,
205
+ prefix
206
+ }) => {
207
+ const raw = useQueryParams(
208
+ [
209
+ "q",
210
+ "order",
211
+ "offset",
212
+ "created_at",
213
+ "updated_at",
214
+ "category_id",
215
+ "collection_id",
216
+ "type_id",
217
+ "tag_id",
218
+ "status",
219
+ "id"
220
+ ],
221
+ prefix
222
+ );
223
+ const {
224
+ offset,
225
+ created_at,
226
+ updated_at,
227
+ category_id,
228
+ collection_id,
229
+ type_id,
230
+ tag_id,
231
+ status,
232
+ order,
233
+ q
234
+ } = raw;
235
+ const searchParams = {
236
+ limit: pageSize,
237
+ offset: offset ? Number(offset) : 0,
238
+ order: order || "title",
239
+ q,
240
+ category_id: category_id ? category_id.split(",") : void 0,
241
+ collection_id: collection_id ? collection_id.split(",") : void 0,
242
+ type_id: type_id ? type_id.split(",") : void 0,
243
+ tag_id: tag_id ? tag_id.split(",") : void 0,
244
+ status: status ? status.split(",") : void 0,
245
+ created_at: created_at ? JSON.parse(created_at) : void 0,
246
+ updated_at: updated_at ? JSON.parse(updated_at) : void 0,
247
+ has_offer: "true",
248
+ fields: OFFER_PRODUCT_LIST_FIELDS
249
+ };
250
+ return {
251
+ searchParams,
252
+ raw
253
+ };
254
+ };
255
+
256
+ // src/pages/offers/_components/offer-list-data-table.tsx
257
+ import { jsx as jsx3 } from "react/jsx-runtime";
258
+ var OfferListDataTable = () => {
259
+ const { t } = useTranslation3();
260
+ const { raw, searchParams } = useOfferTableQuery({
261
+ pageSize: OFFERS_PAGE_SIZE
262
+ });
263
+ const { products, count, isLoading, isError, error } = useProducts(
264
+ searchParams,
265
+ { placeholderData: keepPreviousData }
266
+ );
267
+ const rows = products ?? [];
268
+ const filters = useOfferTableFilters();
269
+ const columns = useOfferTableColumns();
270
+ const { table } = useDataTable({
271
+ data: rows,
272
+ columns,
273
+ count,
274
+ enablePagination: true,
275
+ getRowId: (row) => row.id,
276
+ pageSize: OFFERS_PAGE_SIZE
277
+ });
278
+ if (isError) {
279
+ throw error;
280
+ }
281
+ return /* @__PURE__ */ jsx3(
282
+ _DataTable,
283
+ {
284
+ table,
285
+ columns,
286
+ pageSize: OFFERS_PAGE_SIZE,
287
+ count,
288
+ isLoading,
289
+ pagination: true,
290
+ search: true,
291
+ filters,
292
+ queryObject: raw,
293
+ orderBy: [
294
+ { key: "title", label: t("fields.title") },
295
+ { key: "created_at", label: t("fields.createdAt") },
296
+ { key: "updated_at", label: t("fields.updatedAt") }
297
+ ],
298
+ defaultOrderBy: "title",
299
+ navigateTo: (row) => `${row.original.id}`,
300
+ noRecords: {
301
+ title: t("offers.empty.heading"),
302
+ message: t("offers.empty.description"),
303
+ action: {
304
+ to: "create",
305
+ label: t("offers.actions.create")
306
+ }
307
+ }
308
+ }
309
+ );
310
+ };
311
+
312
+ // src/pages/offers/_components/offer-list-header.tsx
313
+ import { Button, Heading } from "@medusajs/ui";
314
+ import { useTranslation as useTranslation4 } from "react-i18next";
315
+ import { Link } from "react-router-dom";
316
+ import { jsx as jsx4, jsxs } from "react/jsx-runtime";
317
+ var OfferListTitle = () => {
318
+ const { t } = useTranslation4();
319
+ return /* @__PURE__ */ jsx4(Heading, { children: t("offers.domain") });
320
+ };
321
+ var OfferListActions = () => {
322
+ const { t } = useTranslation4();
323
+ return /* @__PURE__ */ jsx4(Button, { size: "small", variant: "secondary", asChild: true, children: /* @__PURE__ */ jsx4(Link, { to: "create", "data-testid": "offer-list-create-button", children: t("offers.actions.create") }) });
324
+ };
325
+ var OfferListHeader = () => /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
326
+ /* @__PURE__ */ jsx4(OfferListTitle, {}),
327
+ /* @__PURE__ */ jsx4(OfferListActions, {})
328
+ ] });
329
+
330
+ // src/pages/offers/_components/offer-list-table.tsx
331
+ import { Fragment, jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
332
+ var OfferListTable = ({ children }) => /* @__PURE__ */ jsxs2(Container, { className: "divide-y p-0", "data-testid": "offer-list-table", children: [
333
+ Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs2(Fragment, { children: [
334
+ /* @__PURE__ */ jsx5(OfferListHeader, {}),
335
+ /* @__PURE__ */ jsx5(OfferListDataTable, {})
336
+ ] }),
337
+ /* @__PURE__ */ jsx5(Outlet, {})
338
+ ] });
339
+
340
+ // src/pages/offers/offer-list-page.tsx
341
+ import { jsx as jsx6 } from "react/jsx-runtime";
342
+ var Root = ({ children }) => /* @__PURE__ */ jsx6(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx6(OfferListTable, {}) });
343
+ var OfferListPage = Object.assign(Root, {
344
+ Table: OfferListTable,
345
+ Header: OfferListHeader,
346
+ HeaderTitle: OfferListTitle,
347
+ HeaderActions: OfferListActions,
348
+ DataTable: OfferListDataTable
349
+ });
350
+
351
+ export {
352
+ OfferListPage
353
+ };
@@ -6,7 +6,7 @@ import {
6
6
  } from "./chunk-ZA2KFUFR.js";
7
7
  import {
8
8
  sdk
9
- } from "./chunk-RIN4CBRB.js";
9
+ } from "./chunk-LXZXXOJ3.js";
10
10
 
11
11
  // src/hooks/api/shipping-profiles.tsx
12
12
  import {
@@ -52,7 +52,7 @@ var useProductTableQuery = ({
52
52
  category_id: category_id?.split(","),
53
53
  collection_id: collection_id?.split(","),
54
54
  is_giftcard: is_giftcard ? is_giftcard === "true" : void 0,
55
- order: order || "title",
55
+ order: order || "-created_at",
56
56
  tag_id: tag_id ? tag_id.split(",") : void 0,
57
57
  type_id: type_id?.split(","),
58
58
  status: status?.split(","),
@@ -1,3 +1,6 @@
1
+ import {
2
+ useDataTableDateFilters
3
+ } from "./chunk-HFRHHT36.js";
1
4
  import {
2
5
  useQueryParams
3
6
  } from "./chunk-THHRRYRS.js";
@@ -28,33 +31,27 @@ var useAttributeTableQuery = ({
28
31
  };
29
32
 
30
33
  // src/hooks/table/filters/use-attribute-table-filters.tsx
34
+ import { createDataTableFilterHelper } from "@medusajs/ui";
35
+ import { useMemo } from "react";
31
36
  import { useTranslation } from "react-i18next";
37
+ var filterHelper = createDataTableFilterHelper();
32
38
  var useAttributeTableFilters = () => {
33
39
  const { t } = useTranslation();
34
- const filterableFilter = {
35
- key: "is_filterable",
36
- label: t("attributes.fields.filterable"),
37
- type: "select",
38
- options: [
39
- {
40
- label: t("filters.radio.yes"),
41
- value: "true"
42
- },
43
- {
44
- label: t("filters.radio.no"),
45
- value: "false"
46
- }
47
- ]
48
- };
49
- const dateFilters = [
50
- { label: t("fields.createdAt"), key: "created_at" },
51
- { label: t("fields.updatedAt"), key: "updated_at" }
52
- ].map((f) => ({
53
- key: f.key,
54
- label: f.label,
55
- type: "date"
56
- }));
57
- return [filterableFilter, ...dateFilters];
40
+ const dateFilters = useDataTableDateFilters();
41
+ return useMemo(
42
+ () => [
43
+ filterHelper.accessor("is_filterable", {
44
+ label: t("attributes.fields.filterable"),
45
+ type: "select",
46
+ options: [
47
+ { label: t("filters.radio.yes"), value: "true" },
48
+ { label: t("filters.radio.no"), value: "false" }
49
+ ]
50
+ }),
51
+ ...dateFilters
52
+ ],
53
+ [t, dateFilters]
54
+ );
58
55
  };
59
56
 
60
57
  export {
@@ -2,74 +2,20 @@ import {
2
2
  useDate
3
3
  } from "./chunk-LRD242C7.js";
4
4
 
5
- // src/components/data-table/helpers/general/use-data-table-date-columns.tsx
6
- import {
7
- createDataTableColumnHelper,
8
- Tooltip
9
- } from "@medusajs/ui";
10
- import { useMemo } from "react";
11
- import { useTranslation } from "react-i18next";
12
- import { jsx } from "react/jsx-runtime";
13
- var columnHelper = createDataTableColumnHelper();
14
- var useDataTableDateColumns = () => {
15
- const { t } = useTranslation();
16
- const { getFullDate } = useDate();
17
- return useMemo(() => {
18
- return [
19
- columnHelper.accessor("created_at", {
20
- header: t("fields.createdAt"),
21
- cell: ({ row }) => {
22
- return /* @__PURE__ */ jsx(
23
- Tooltip,
24
- {
25
- content: getFullDate({
26
- date: row.original.created_at,
27
- includeTime: true
28
- }),
29
- children: /* @__PURE__ */ jsx("span", { children: getFullDate({ date: row.original.created_at }) })
30
- }
31
- );
32
- },
33
- enableSorting: true,
34
- sortAscLabel: t("filters.sorting.dateAsc"),
35
- sortDescLabel: t("filters.sorting.dateDesc")
36
- }),
37
- columnHelper.accessor("updated_at", {
38
- header: t("fields.updatedAt"),
39
- cell: ({ row }) => {
40
- return /* @__PURE__ */ jsx(
41
- Tooltip,
42
- {
43
- content: getFullDate({
44
- date: row.original.updated_at,
45
- includeTime: true
46
- }),
47
- children: /* @__PURE__ */ jsx("span", { children: getFullDate({ date: row.original.updated_at }) })
48
- }
49
- );
50
- },
51
- enableSorting: true,
52
- sortAscLabel: t("filters.sorting.dateAsc"),
53
- sortDescLabel: t("filters.sorting.dateDesc")
54
- })
55
- ];
56
- }, [t, getFullDate]);
57
- };
58
-
59
5
  // src/components/data-table/helpers/general/use-data-table-date-filters.tsx
60
6
  import { createDataTableFilterHelper } from "@medusajs/ui";
61
7
  import { subDays, subMonths } from "date-fns";
62
- import { useMemo as useMemo2 } from "react";
63
- import { useTranslation as useTranslation2 } from "react-i18next";
8
+ import { useMemo } from "react";
9
+ import { useTranslation } from "react-i18next";
64
10
  var filterHelper = createDataTableFilterHelper();
65
11
  var useDateFilterOptions = () => {
66
- const { t } = useTranslation2();
67
- const today = useMemo2(() => {
12
+ const { t } = useTranslation();
13
+ const today = useMemo(() => {
68
14
  const date = /* @__PURE__ */ new Date();
69
15
  date.setHours(0, 0, 0, 0);
70
16
  return date;
71
17
  }, []);
72
- return useMemo2(() => {
18
+ return useMemo(() => {
73
19
  return [
74
20
  {
75
21
  label: t("filters.date.today"),
@@ -109,10 +55,10 @@ var useDateFilterOptions = () => {
109
55
  }, [today, t]);
110
56
  };
111
57
  var useDataTableDateFilters = (disableRangeOption) => {
112
- const { t } = useTranslation2();
58
+ const { t } = useTranslation();
113
59
  const { getFullDate } = useDate();
114
60
  const dateFilterOptions = useDateFilterOptions();
115
- const rangeOptions = useMemo2(() => {
61
+ const rangeOptions = useMemo(() => {
116
62
  if (disableRangeOption) {
117
63
  return {
118
64
  disableRangeOption: true
@@ -125,7 +71,7 @@ var useDataTableDateFilters = (disableRangeOption) => {
125
71
  options: dateFilterOptions
126
72
  };
127
73
  }, [disableRangeOption, t, dateFilterOptions]);
128
- return useMemo2(() => {
74
+ return useMemo(() => {
129
75
  return [
130
76
  filterHelper.accessor("created_at", {
131
77
  type: "date",
@@ -148,6 +94,5 @@ var useDataTableDateFilters = (disableRangeOption) => {
148
94
  };
149
95
 
150
96
  export {
151
- useDataTableDateColumns,
152
97
  useDataTableDateFilters
153
98
  };