@mercurjs/admin 2.0.0-canary.34 → 2.0.0-canary.35

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 (250) hide show
  1. package/dist/{add-campaign-promotions-UVEH25GZ.js → add-campaign-promotions-ZUXBF5G3.js} +10 -10
  2. package/dist/{adjust-inventory-6Q53EEFB.js → adjust-inventory-HZCWL6SC.js} +10 -10
  3. package/dist/api-key-management-detail-SKJNAZ5L.js +87 -0
  4. package/dist/api-key-management-list-2D4WKI6Y.js +33 -0
  5. package/dist/{campaign-create-2IIU3WTS.js → campaign-create-B7XM2FZM.js} +4 -4
  6. package/dist/campaign-detail-7U4CQHU5.js +105 -0
  7. package/dist/campaign-list-SC7FLTRM.js +31 -0
  8. package/dist/{categories-metadata-G7JDGW6O.js → categories-metadata-LPSJNCME.js} +12 -12
  9. package/dist/category-detail-HGHR3R2R.js +105 -0
  10. package/dist/category-list-QBBFGHQM.js +32 -0
  11. package/dist/{category-products-FH4RIZKA.js → category-products-XLCG2JR7.js} +14 -14
  12. package/dist/{chunk-36WVODFU.js → chunk-23663A2W.js} +1 -1
  13. package/dist/chunk-2IGCU3KP.js +170 -0
  14. package/dist/chunk-33FUPXJL.js +102 -0
  15. package/dist/{chunk-O5HZRJPB.js → chunk-3B6MTW5G.js} +9 -0
  16. package/dist/{shipping-profiles-list-FUW4FXLC.js → chunk-3H74EI2D.js} +11 -19
  17. package/dist/{shipping-profile-detail-WHKHB2OQ.js → chunk-3IYIS5UZ.js} +15 -61
  18. package/dist/{return-reason-list-MRYG7ZK7.js → chunk-3SAH3NUS.js} +12 -80
  19. package/dist/chunk-4GVHNYZR.js +294 -0
  20. package/dist/chunk-4WYBW3HK.js +209 -0
  21. package/dist/chunk-5GG65TKV.js +335 -0
  22. package/dist/{customer-group-detail-CPONLZRF.js → chunk-5VEYNZSW.js} +33 -119
  23. package/dist/{customer-group-list-V2CGT3FT.js → chunk-62ZRA6BZ.js} +2 -37
  24. package/dist/{category-list-YPRENMVF.js → chunk-66IHH2HG.js} +105 -89
  25. package/dist/chunk-6L2LSIPR.js +223 -0
  26. package/dist/{region-list-PGWUOULN.js → chunk-6PNMR6XP.js} +18 -32
  27. package/dist/{product-type-list-T5KO5J3W.js → chunk-7COSFMM7.js} +17 -30
  28. package/dist/{api-key-management-detail-RQW5RC5F.js → chunk-7TLEUIAL.js} +22 -80
  29. package/dist/{product-tag-list-I6M6TAYM.js → chunk-A2KURGQO.js} +16 -131
  30. package/dist/{chunk-GFZ7GOEU.js → chunk-A6Z2Q7D5.js} +2 -2
  31. package/dist/{customer-detail-YS265DZS.js → chunk-AOVEX4EM.js} +74 -158
  32. package/dist/{inventory-detail-42GK24BA.js → chunk-AOVJTW7M.js} +130 -196
  33. package/dist/{payout-list-GE7E637R.js → chunk-BHID7W3U.js} +12 -22
  34. package/dist/{price-list-list-VFHHTBLR.js → chunk-CR4E2DCR.js} +98 -78
  35. package/dist/{chunk-UZVYM65V.js → chunk-D44T5KAE.js} +6 -6
  36. package/dist/{chunk-BFCAJKRG.js → chunk-DBYUB2YI.js} +28 -56
  37. package/dist/{user-detail-Q7ST2YKP.js → chunk-DK3U2SRA.js} +17 -62
  38. package/dist/{refund-reason-list-ECQKWA2M.js → chunk-DP5U3GQU.js} +54 -105
  39. package/dist/chunk-E2AAYIHS.js +250 -0
  40. package/dist/{commission-rate-detail-ANI37QHI.js → chunk-EDQBUWY7.js} +46 -106
  41. package/dist/{region-detail-DIEFHHOM.js → chunk-ENMRRG4N.js} +48 -94
  42. package/dist/{chunk-UZJ2NQSN.js → chunk-FRRQW7BG.js} +4 -4
  43. package/dist/{order-detail-V2O5C4CX.js → chunk-FXU7SL6M.js} +413 -423
  44. package/dist/{product-type-detail-JI4DF7WR.js → chunk-FYB5MS4F.js} +29 -110
  45. package/dist/{chunk-QNGHZSK3.js → chunk-G644AXKV.js} +1 -1
  46. package/dist/chunk-GJTIHFXG.js +115 -0
  47. package/dist/{sales-channel-list-2ZUNUM2T.js → chunk-HHNJNKCB.js} +16 -54
  48. package/dist/{campaign-list-EAGDQZO3.js → chunk-HZKW7HRU.js} +14 -32
  49. package/dist/chunk-IXGP2EEN.js +425 -0
  50. package/dist/{profile-detail-AWZ4EZ6R.js → chunk-J7SR4GW5.js} +10 -15
  51. package/dist/{product-variant-detail-DXTUM4R7.js → chunk-JA2XIIIZ.js} +96 -178
  52. package/dist/{price-list-detail-324FZRK5.js → chunk-JRWB7VWP.js} +59 -130
  53. package/dist/{category-detail-2U65E3CX.js → chunk-KUDLPUWR.js} +70 -146
  54. package/dist/{collection-detail-Y4GGSHXX.js → chunk-KXPCEVFB.js} +44 -121
  55. package/dist/{location-list-KVFFPEIV.js → chunk-KYUXTS2L.js} +61 -86
  56. package/dist/{chunk-M3I52H3M.js → chunk-LU72QEQC.js} +4 -4
  57. package/dist/{location-detail-XO4RRCAU.js → chunk-LYT3RI4O.js} +90 -155
  58. package/dist/chunk-NOWUEJ74.js +44 -0
  59. package/dist/{product-detail-3UWUMNHC.js → chunk-NQPAEBSZ.js} +145 -195
  60. package/dist/{api-key-management-list-VYQ4AVSX.js → chunk-O6O22BN4.js} +9 -29
  61. package/dist/{tax-region-province-detail-PB7RFWJ4.js → chunk-OFRQZHVQ.js} +15 -99
  62. package/dist/{reservation-detail-J4M2EXRY.js → chunk-OSHCUDYY.js} +27 -93
  63. package/dist/{campaign-detail-4DO3S5UZ.js → chunk-Q6XCCONH.js} +118 -193
  64. package/dist/{payout-detail-PRYOQSGQ.js → chunk-QBOXELB5.js} +7 -41
  65. package/dist/chunk-QD6KYDYH.js +169 -0
  66. package/dist/{commission-rate-list-FCQ3HXC7.js → chunk-QP6XXG6A.js} +11 -20
  67. package/dist/{promotion-list-SJYMXQXT.js → chunk-RIMR3ULR.js} +14 -51
  68. package/dist/{shipping-option-type-list-4A7FT4P5.js → chunk-SFG7JTBH.js} +14 -51
  69. package/dist/{sales-channel-detail-RMU5QW3N.js → chunk-T25UE7SS.js} +39 -120
  70. package/dist/{tax-region-detail-L3EB6JSF.js → chunk-TE5VQBCL.js} +19 -60
  71. package/dist/{reservation-list-X33SIPG3.js → chunk-TKGZBTOS.js} +11 -20
  72. package/dist/{chunk-LQSLDDPT.js → chunk-TZSOL34K.js} +40 -1
  73. package/dist/{chunk-F5PEK3DA.js → chunk-U3SFHLUA.js} +1 -1
  74. package/dist/{chunk-IZ5RG5XI.js → chunk-UXD3VNBO.js} +1 -20
  75. package/dist/{chunk-XE6KSRKQ.js → chunk-V2DXJ75C.js} +1 -1
  76. package/dist/{marketplace-detail-OVWHCK5W.js → chunk-VBAAYYCS.js} +114 -172
  77. package/dist/{chunk-5POS4GBN.js → chunk-WZADCDDE.js} +4 -4
  78. package/dist/{chunk-HOZHWCST.js → chunk-XDVS4B7W.js} +1 -1
  79. package/dist/{promotion-detail-IO7V5CXR.js → chunk-XVKRTPVM.js} +147 -162
  80. package/dist/{inventory-list-UJNDJFJS.js → chunk-YH4VQBAA.js} +11 -19
  81. package/dist/{collection-add-products-RLTEE27D.js → collection-add-products-IQ7M63BA.js} +13 -13
  82. package/dist/collection-detail-YJ3FV2C6.js +96 -0
  83. package/dist/collection-list-WDQOBHQN.js +78 -0
  84. package/dist/{collection-metadata-CQWEZ4EQ.js → collection-metadata-UZ3VN625.js} +10 -10
  85. package/dist/{commission-rate-create-YK6GCP2R.js → commission-rate-create-VC72GTV4.js} +34 -34
  86. package/dist/commission-rate-detail-UQDIIMIK.js +82 -0
  87. package/dist/{commission-rate-edit-5MPI53CE.js → commission-rate-edit-AXJKJNFY.js} +34 -34
  88. package/dist/commission-rate-list-WTDZLKUR.js +27 -0
  89. package/dist/customer-detail-N7CS4IJU.js +106 -0
  90. package/dist/{customer-group-add-customers-FTRCJHE7.js → customer-group-add-customers-LCNDTLXR.js} +6 -6
  91. package/dist/customer-group-detail-UCTY4FF7.js +105 -0
  92. package/dist/customer-group-list-XOQ64CVR.js +48 -0
  93. package/dist/{customer-group-metadata-BITZXXFX.js → customer-group-metadata-FMAZBXIK.js} +11 -11
  94. package/dist/customer-list-BUUO6OF7.js +32 -0
  95. package/dist/{customer-metadata-6DDHIGDD.js → customer-metadata-7GW4JRZR.js} +11 -11
  96. package/dist/{customers-add-customer-group-SD3KK6JE.js → customers-add-customer-group-BKEV24N2.js} +15 -15
  97. package/dist/{edit-inventory-item-5PZZ3IAH.js → edit-inventory-item-RECBP7OX.js} +7 -7
  98. package/dist/{edit-inventory-item-attributes-7PJQCUXL.js → edit-inventory-item-attributes-2P3BMQJ5.js} +8 -8
  99. package/dist/{edit-rules-E2564ZQB.js → edit-rules-DPHJ7PQQ.js} +9 -9
  100. package/dist/index.d.ts +5 -0
  101. package/dist/index.js +564 -757
  102. package/dist/{inventory-create-LYXHQR7Y.js → inventory-create-QLEIHESO.js} +20 -20
  103. package/dist/inventory-detail-BJT5WEV5.js +106 -0
  104. package/dist/inventory-list-3LWBPWVK.js +29 -0
  105. package/dist/{inventory-metadata-OLR5ZMMN.js → inventory-metadata-ZNHZQEMX.js} +11 -11
  106. package/dist/{inventory-stock-ZOM2ANKJ.js → inventory-stock-G3GP4FZX.js} +17 -17
  107. package/dist/location-detail-N7J6PEAP.js +99 -0
  108. package/dist/{location-fulfillment-providers-6T27UNF7.js → location-fulfillment-providers-BHCY2MYC.js} +18 -18
  109. package/dist/location-list-UG6B47NP.js +52 -0
  110. package/dist/{location-service-zone-create-IYKQNCNO.js → location-service-zone-create-AIVG7HTM.js} +8 -8
  111. package/dist/{location-service-zone-manage-areas-L7BQTR7S.js → location-service-zone-manage-areas-EZSV25CP.js} +10 -10
  112. package/dist/{location-service-zone-shipping-option-create-PSPX634E.js → location-service-zone-shipping-option-create-GYPW6SSN.js} +18 -18
  113. package/dist/{location-service-zone-shipping-option-pricing-HC7Z4BVU.js → location-service-zone-shipping-option-pricing-7VMPXDWX.js} +8 -8
  114. package/dist/{login-U5WERLJC.js → login-2HSCF4ZB.js} +16 -10
  115. package/dist/{marketplace-add-currencies-XQPZT237.js → marketplace-add-currencies-CIGOPBO6.js} +7 -7
  116. package/dist/marketplace-detail-7KJMXXAJ.js +74 -0
  117. package/dist/{marketplace-metadata-GIYATM54.js → marketplace-metadata-PHZ4PUWM.js} +11 -11
  118. package/dist/{order-create-claim-UWNZUBL7.js → order-create-claim-7WW6MXTT.js} +34 -34
  119. package/dist/{order-create-edit-JD4UZ5GW.js → order-create-edit-KAH6ZPLX.js} +20 -20
  120. package/dist/{order-create-exchange-OTIDP47E.js → order-create-exchange-ELLWF3IY.js} +31 -31
  121. package/dist/{order-create-fulfillment-7OP64TNJ.js → order-create-fulfillment-E3J7ILOJ.js} +13 -13
  122. package/dist/{order-create-refund-U4UK5IZB.js → order-create-refund-5QZBOSCA.js} +13 -13
  123. package/dist/{order-create-return-LH4LW5BZ.js → order-create-return-L6DEDPJK.js} +17 -17
  124. package/dist/{order-create-shipment-URYCUNU6.js → order-create-shipment-NBQ226NM.js} +7 -7
  125. package/dist/order-detail-C25NQSZN.js +122 -0
  126. package/dist/{order-edit-billing-address-XRUEKX33.js → order-edit-billing-address-NVRMPZEU.js} +14 -14
  127. package/dist/{order-edit-email-CJ3MEZB6.js → order-edit-email-5FA7X52X.js} +7 -7
  128. package/dist/{order-edit-shipping-address-SV4UVNBQ.js → order-edit-shipping-address-BPU7OL2N.js} +11 -11
  129. package/dist/order-list-7NH7LROU.js +48 -0
  130. package/dist/{order-metadata-HIOSALZT.js → order-metadata-47FUKENZ.js} +10 -10
  131. package/dist/{order-receive-return-4SRRRBW6.js → order-receive-return-FW5QZJBM.js} +8 -8
  132. package/dist/{order-request-transfer-5AGKGFVY.js → order-request-transfer-WD327YGL.js} +7 -7
  133. package/dist/pages/index.d.ts +638 -0
  134. package/dist/pages/index.js +359 -0
  135. package/dist/payout-detail-MDD5SRK5.js +51 -0
  136. package/dist/payout-list-XY2A5KYS.js +28 -0
  137. package/dist/{price-list-configuration-GK4MA3BE.js → price-list-configuration-XK3IZLLX.js} +8 -8
  138. package/dist/{price-list-create-3NNWUS6L.js → price-list-create-OK7YYLAB.js} +22 -22
  139. package/dist/price-list-detail-IGFSM77P.js +102 -0
  140. package/dist/price-list-list-TBXQ5DOS.js +35 -0
  141. package/dist/{price-list-prices-add-IBSLTMNK.js → price-list-prices-add-7PGUONDK.js} +18 -18
  142. package/dist/{price-list-prices-edit-AAVPX34P.js → price-list-prices-edit-QVGBT6AI.js} +14 -14
  143. package/dist/{product-create-C4GHUEM5.js → product-create-NVBKO426.js} +218 -383
  144. package/dist/{product-create-variant-5MVBT5ST.js → product-create-variant-CJPECBV4.js} +68 -230
  145. package/dist/product-detail-ZC37BGPC.js +100 -0
  146. package/dist/{product-export-XTS7P5AD.js → product-export-ULTY2SNJ.js} +14 -14
  147. package/dist/{product-import-ZEZE2JE6.js → product-import-Q2CPHVNJ.js} +10 -10
  148. package/dist/product-list-635ZXM2D.js +85 -0
  149. package/dist/{product-media-Z2DCRZSU.js → product-media-ZMDAVPGI.js} +4 -4
  150. package/dist/{product-metadata-NBB5SRDN.js → product-metadata-36JNWKCJ.js} +10 -10
  151. package/dist/{product-stock-ZXNZZBJI.js → product-stock-HF42WRSC.js} +18 -18
  152. package/dist/{product-tag-create-LL35OFZM.js → product-tag-create-VCRDLR27.js} +7 -7
  153. package/dist/product-tag-detail-OJLYO3Q5.js +135 -0
  154. package/dist/{product-tag-edit-6XBZCCED.js → product-tag-edit-BYE7UP54.js} +7 -7
  155. package/dist/product-tag-list-XFHGJBRF.js +129 -0
  156. package/dist/{product-tag-metadata-UGO4RUFU.js → product-tag-metadata-ADHNZA2H.js} +10 -10
  157. package/dist/product-type-detail-J4UA4AEM.js +97 -0
  158. package/dist/product-type-list-H5EQHCXS.js +34 -0
  159. package/dist/{product-type-metadata-ZKOZNZE3.js → product-type-metadata-UY22KDAN.js} +10 -10
  160. package/dist/product-variant-detail-5WKYURFA.js +111 -0
  161. package/dist/{product-variant-edit-KGLW5GXD.js → product-variant-edit-66ZUIIMP.js} +10 -10
  162. package/dist/{product-variant-metadata-H7J7SZNU.js → product-variant-metadata-7N5F7DM5.js} +10 -10
  163. package/dist/profile-detail-EYNXOHGZ.js +17 -0
  164. package/dist/{promotion-add-campaign-OEMV62HF.js → promotion-add-campaign-B5SF72KC.js} +4 -4
  165. package/dist/{promotion-create-P2WR5RPH.js → promotion-create-D77SANLX.js} +17 -17
  166. package/dist/promotion-detail-MVFOMS4E.js +87 -0
  167. package/dist/promotion-list-IN4VWEQN.js +57 -0
  168. package/dist/{refund-reason-create-PTHFUT2D.js → refund-reason-create-BHI5XXZC.js} +7 -7
  169. package/dist/{refund-reason-edit-WEEQQGYO.js → refund-reason-edit-UWWYC4OB.js} +7 -7
  170. package/dist/refund-reason-list-DJZZC7KK.js +101 -0
  171. package/dist/{region-add-countries-GVOTB5YX.js → region-add-countries-YOGU74UR.js} +9 -9
  172. package/dist/{region-create-3BCYTIDB.js → region-create-UMJK3VGL.js} +14 -14
  173. package/dist/region-detail-OFZHX57G.js +73 -0
  174. package/dist/region-list-L4FKHVJJ.js +34 -0
  175. package/dist/{region-metadata-IYIHJCTK.js → region-metadata-JLHWQGTC.js} +11 -11
  176. package/dist/reservation-detail-LZYEM5NW.js +82 -0
  177. package/dist/reservation-list-OGPDB7WG.js +30 -0
  178. package/dist/{reservation-metadata-MMHE4TPO.js → reservation-metadata-WB42HSMD.js} +11 -11
  179. package/dist/{reset-password-WNANNJDX.js → reset-password-Q7Y4FWRE.js} +2 -2
  180. package/dist/return-reason-list-6ICMSVKF.js +80 -0
  181. package/dist/{sales-channel-add-products-GP7TMMKB.js → sales-channel-add-products-EOWFSO35.js} +14 -14
  182. package/dist/sales-channel-detail-RRJG7U7R.js +97 -0
  183. package/dist/sales-channel-list-LUZ4ZXCY.js +50 -0
  184. package/dist/{sales-channel-metadata-QF5KEN7C.js → sales-channel-metadata-5CLXRNQF.js} +12 -12
  185. package/dist/{seller-details-EUCYPH4Z.js → seller-details-KROISMQC.js} +48 -48
  186. package/dist/seller-list-664H4SI5.js +79 -0
  187. package/dist/{shipping-option-type-create-KBQMPNIW.js → shipping-option-type-create-42URKECR.js} +7 -7
  188. package/dist/shipping-option-type-detail-2RY3NHRO.js +81 -0
  189. package/dist/{shipping-option-type-edit-S3R6JBFV.js → shipping-option-type-edit-VLFV2AR4.js} +7 -7
  190. package/dist/shipping-option-type-list-IOSOE33S.js +59 -0
  191. package/dist/shipping-profile-detail-RIIAX7VE.js +56 -0
  192. package/dist/{shipping-profile-metadata-BJFUYS5L.js → shipping-profile-metadata-7WDHFEEH.js} +10 -10
  193. package/dist/shipping-profiles-list-AL4EJSJY.js +26 -0
  194. package/dist/{tax-region-create-KTFZNQCZ.js → tax-region-create-UOTLTCOP.js} +14 -14
  195. package/dist/tax-region-detail-CA2W5W6A.js +67 -0
  196. package/dist/{tax-region-edit-H2ORQVEW.js → tax-region-edit-7O2Z3EYC.js} +7 -7
  197. package/dist/tax-region-list-JTZ7KZCX.js +26 -0
  198. package/dist/{tax-region-metadata-2PYZ5ECB.js → tax-region-metadata-VQ57FSEM.js} +11 -11
  199. package/dist/tax-region-province-detail-ZHLX4FF4.js +98 -0
  200. package/dist/{tax-region-tax-override-create-IDGG732M.js → tax-region-tax-override-create-WIWUNXW6.js} +31 -31
  201. package/dist/{tax-region-tax-override-edit-NSBZBBZA.js → tax-region-tax-override-edit-SWROFQTP.js} +31 -31
  202. package/dist/user-detail-YNPBC5MN.js +54 -0
  203. package/dist/{user-invite-ATAF42EH.js → user-invite-OT73USBI.js} +10 -10
  204. package/dist/user-list-LNTZNT3D.js +27 -0
  205. package/dist/{user-metadata-QFVK2VJX.js → user-metadata-ZGTN4FRU.js} +11 -11
  206. package/package.json +1 -1
  207. package/dist/chunk-RW35OPIA.js +0 -45
  208. package/dist/collection-list-WUPG6AU2.js +0 -233
  209. package/dist/customer-list-DYQHKNJV.js +0 -153
  210. package/dist/order-list-ASHM44MM.js +0 -317
  211. package/dist/product-list-7WK2AWI2.js +0 -323
  212. package/dist/product-tag-detail-E7VYBISE.js +0 -288
  213. package/dist/seller-list-W76S2T27.js +0 -237
  214. package/dist/shipping-option-type-detail-CFGKF7NV.js +0 -173
  215. package/dist/tax-region-list-D7HWEZUR.js +0 -92
  216. package/dist/user-list-S6BMNMKL.js +0 -342
  217. package/dist/{api-key-management-sales-channels-RDE5YSYK.js → api-key-management-sales-channels-C7EWPHC2.js} +9 -9
  218. package/dist/{campaign-budget-edit-722ECPRI.js → campaign-budget-edit-AIXCDGG3.js} +3 -3
  219. package/dist/{category-create-VSH7BLNC.js → category-create-UWBJGIED.js} +7 -7
  220. package/dist/{category-edit-CCHWEQER.js → category-edit-ZDTTOXKZ.js} +3 -3
  221. package/dist/{chunk-JISYRXUS.js → chunk-B44E3LJT.js} +7 -7
  222. package/dist/{chunk-L22DLGNI.js → chunk-DEKJJ7NG.js} +3 -3
  223. package/dist/{chunk-2PZGY332.js → chunk-LQAAVRET.js} +3 -3
  224. package/dist/{chunk-GEVYE225.js → chunk-RA4UMZRP.js} +3 -3
  225. package/dist/{chunk-NIRWGTM3.js → chunk-RV6NZTNP.js} +3 -3
  226. package/dist/{chunk-SXC5ZMLI.js → chunk-TKEAOWBZ.js} +24 -24
  227. package/dist/{chunk-FLCYR7E5.js → chunk-ULJ3OMWU.js} +3 -3
  228. package/dist/{chunk-XDEVXAGC.js → chunk-VBBBIEVH.js} +3 -3
  229. package/dist/{chunk-FMOQNZFZ.js → chunk-YMKZS2HK.js} +12 -12
  230. package/dist/{customer-create-address-2LLOW6NZ.js → customer-create-address-GKWNPTZS.js} +1 -1
  231. package/dist/{customer-edit-F5UBFJIZ.js → customer-edit-WDRZ6YUO.js} +3 -3
  232. package/dist/{edit-reservation-SAKSTZTE.js → edit-reservation-7UOWKFMF.js} +3 -3
  233. package/dist/{invite-CSXH7VAO.js → invite-AXGDIENO.js} +1 -1
  234. package/dist/{location-create-HHOJPTDK.js → location-create-FQT3BJGV.js} +1 -1
  235. package/dist/{location-edit-2NAOR4DV.js → location-edit-RTPPP4KP.js} +1 -1
  236. package/dist/{location-sales-channels-BJUJNBQQ.js → location-sales-channels-3IGHCJEN.js} +9 -9
  237. package/dist/{location-service-zone-shipping-option-edit-SSMGORBF.js → location-service-zone-shipping-option-edit-E3GN4ZF5.js} +3 -3
  238. package/dist/{marketplace-edit-WPOSY2WN.js → marketplace-edit-GH2GQF3O.js} +3 -3
  239. package/dist/{order-allocate-items-DLVOSAC2.js → order-allocate-items-VEEANPH7.js} +3 -3
  240. package/dist/{price-list-edit-UU2XBKT3.js → price-list-edit-KK7SHR7O.js} +3 -3
  241. package/dist/{product-attributes-HNF4J53T.js → product-attributes-NG4OSBIV.js} +1 -1
  242. package/dist/{product-edit-6EL6US22.js → product-edit-LQJDUUVX.js} +4 -4
  243. package/dist/{product-organization-NWS3NMD6.js → product-organization-AFCELJ62.js} +1 -1
  244. package/dist/{product-prices-V63CFHI3.js → product-prices-WMRIC7WM.js} +7 -7
  245. package/dist/{product-sales-channels-WU3MSCV5.js → product-sales-channels-LSN5DVWZ.js} +5 -5
  246. package/dist/{product-variant-manage-inventory-items-C77QHYRT.js → product-variant-manage-inventory-items-CV2CC2PV.js} +3 -3
  247. package/dist/{profile-edit-3GIVUYUM.js → profile-edit-4HXBRWJ5.js} +6 -6
  248. package/dist/{promotion-edit-details-7Y2A5PPJ.js → promotion-edit-details-YKS24GBD.js} +6 -6
  249. package/dist/{region-edit-7XER3THY.js → region-edit-ODVSNJHM.js} +5 -5
  250. package/dist/{tax-region-province-create-7BMYABJ6.js → tax-region-province-create-RFYCUDER.js} +3 -3
@@ -1,233 +0,0 @@
1
- import {
2
- useCollectionTableColumns
3
- } from "./chunk-JQV7CXEC.js";
4
- import "./chunk-JHIMVLB2.js";
5
- import "./chunk-FQERBIVS.js";
6
- import "./chunk-PHOCVOZ5.js";
7
- import {
8
- _DataTable,
9
- useDataTable
10
- } from "./chunk-FLCYR7E5.js";
11
- import "./chunk-YBZWO4ZV.js";
12
- import "./chunk-KAZ5BYTQ.js";
13
- import "./chunk-3EF54XFY.js";
14
- import {
15
- useCollectionTableFilters
16
- } from "./chunk-FMOQNZFZ.js";
17
- import "./chunk-2ZFELO2L.js";
18
- import "./chunk-26OOAKQ6.js";
19
- import "./chunk-ZQZHFMD7.js";
20
- import "./chunk-K3GJ266Z.js";
21
- import "./chunk-GEVYE225.js";
22
- import "./chunk-CMHI2RPL.js";
23
- import "./chunk-S2WEYEQR.js";
24
- import {
25
- useCollectionTableQuery
26
- } from "./chunk-SXC5ZMLI.js";
27
- import "./chunk-MG4GKUJW.js";
28
- import "./chunk-AYVH6Q5O.js";
29
- import "./chunk-VOHEQ7B5.js";
30
- import "./chunk-N5IUYCUZ.js";
31
- import "./chunk-7SVLKK6Q.js";
32
- import "./chunk-GR6JUIRU.js";
33
- import "./chunk-PVZBDWLK.js";
34
- import "./chunk-O5HZRJPB.js";
35
- import "./chunk-VKOE5J66.js";
36
- import "./chunk-DY3XQPHC.js";
37
- import "./chunk-FBUH5OLD.js";
38
- import "./chunk-VVWB3GIK.js";
39
- import "./chunk-KBYZLKI4.js";
40
- import "./chunk-YWWUOGJA.js";
41
- import {
42
- SingleColumnPage
43
- } from "./chunk-U2UCL2VG.js";
44
- import "./chunk-INNFZYX2.js";
45
- import {
46
- ActionMenu
47
- } from "./chunk-BDGZ4EQO.js";
48
- import "./chunk-LAVHRER2.js";
49
- import "./chunk-Y7QKP6QU.js";
50
- import "./chunk-THHRRYRS.js";
51
- import "./chunk-UZWFZMOX.js";
52
- import "./chunk-XQNVC4Q7.js";
53
- import "./chunk-XM6GCWNF.js";
54
- import "./chunk-ODBDAABQ.js";
55
- import "./chunk-CDQJKJMX.js";
56
- import "./chunk-JLATVDLM.js";
57
- import "./chunk-GPRBBA7S.js";
58
- import "./chunk-E7ZBQO6E.js";
59
- import "./chunk-XGHM75N2.js";
60
- import "./chunk-U2GCSKW3.js";
61
- import "./chunk-RTAIDSDS.js";
62
- import "./chunk-LW3UWYZU.js";
63
- import "./chunk-A4X5VP3G.js";
64
- import "./chunk-NNZP4PYP.js";
65
- import "./chunk-GF4QHVX3.js";
66
- import "./chunk-JOQ3RTF5.js";
67
- import "./chunk-V534K7G4.js";
68
- import "./chunk-A5XOYSDC.js";
69
- import {
70
- useCollections,
71
- useDeleteCollection
72
- } from "./chunk-TQI3DOQ5.js";
73
- import "./chunk-5PB7KCTF.js";
74
- import "./chunk-YOIARITB.js";
75
- import "./chunk-W7G64ULL.js";
76
- import "./chunk-6C7TCU42.js";
77
- import "./chunk-4YF3GAKE.js";
78
- import "./chunk-M3I52H3M.js";
79
- import "./chunk-LORVU5II.js";
80
- import "./chunk-36ORDF7W.js";
81
- import "./chunk-QSM56ZOP.js";
82
- import "./chunk-MIHEJ6Y6.js";
83
- import "./chunk-3VZV6SJQ.js";
84
- import "./chunk-K357FGGP.js";
85
- import "./chunk-RHKRREUU.js";
86
- import "./chunk-ZA2KFUFR.js";
87
- import "./chunk-ZYNBKBY3.js";
88
- import "./chunk-NBMM2TZK.js";
89
-
90
- // src/pages/collections/collection-list/components/collection-list-table/collection-list-table.tsx
91
- import { Button, Container, Heading, Text } from "@medusajs/ui";
92
- import { useTranslation as useTranslation2 } from "react-i18next";
93
- import { Link } from "react-router-dom";
94
- import { keepPreviousData } from "@tanstack/react-query";
95
- import { createColumnHelper } from "@tanstack/react-table";
96
- import { useMemo } from "react";
97
-
98
- // src/pages/collections/collection-list/components/collection-list-table/collection-row-actions.tsx
99
- import { PencilSquare, Trash } from "@medusajs/icons";
100
- import { usePrompt } from "@medusajs/ui";
101
- import { useTranslation } from "react-i18next";
102
- import { jsx } from "react/jsx-runtime";
103
- var CollectionRowActions = ({
104
- collection
105
- }) => {
106
- const { t } = useTranslation();
107
- const prompt = usePrompt();
108
- const { mutateAsync } = useDeleteCollection(collection.id);
109
- const handleDeleteCollection = async () => {
110
- const res = await prompt({
111
- title: t("general.areYouSure"),
112
- description: t("collections.deleteWarning", {
113
- title: collection.title
114
- }),
115
- verificationText: collection.title,
116
- verificationInstruction: t("general.typeToConfirm"),
117
- confirmText: t("actions.delete"),
118
- cancelText: t("actions.cancel")
119
- });
120
- if (!res) {
121
- return;
122
- }
123
- await mutateAsync();
124
- };
125
- return /* @__PURE__ */ jsx(
126
- ActionMenu,
127
- {
128
- groups: [
129
- {
130
- actions: [
131
- {
132
- label: t("actions.edit"),
133
- to: `/collections/${collection.id}/edit`,
134
- icon: /* @__PURE__ */ jsx(PencilSquare, {})
135
- }
136
- ]
137
- },
138
- {
139
- actions: [
140
- {
141
- label: t("actions.delete"),
142
- onClick: handleDeleteCollection,
143
- icon: /* @__PURE__ */ jsx(Trash, {}),
144
- disabled: !collection.id
145
- }
146
- ]
147
- }
148
- ]
149
- }
150
- );
151
- };
152
-
153
- // src/pages/collections/collection-list/components/collection-list-table/collection-list-table.tsx
154
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
155
- var PAGE_SIZE = 20;
156
- var CollectionListTable = () => {
157
- const { t } = useTranslation2();
158
- const { searchParams, raw } = useCollectionTableQuery({ pageSize: PAGE_SIZE });
159
- const { collections, count, isError, error, isLoading } = useCollections(
160
- {
161
- ...searchParams,
162
- fields: "+products.id"
163
- },
164
- {
165
- placeholderData: keepPreviousData
166
- }
167
- );
168
- const filters = useCollectionTableFilters();
169
- const columns = useColumns();
170
- const { table } = useDataTable({
171
- data: collections ?? [],
172
- columns,
173
- count,
174
- enablePagination: true,
175
- getRowId: (row, index) => row.id ?? `${index}`,
176
- pageSize: PAGE_SIZE
177
- });
178
- if (isError) {
179
- throw error;
180
- }
181
- return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
182
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
183
- /* @__PURE__ */ jsxs("div", { children: [
184
- /* @__PURE__ */ jsx2(Heading, { children: t("collections.domain") }),
185
- /* @__PURE__ */ jsx2(Text, { className: "text-ui-fg-subtle", size: "small", children: t("collections.subtitle") })
186
- ] }),
187
- /* @__PURE__ */ jsx2(Link, { to: "/collections/create", children: /* @__PURE__ */ jsx2(Button, { size: "small", variant: "secondary", children: t("actions.create") }) })
188
- ] }),
189
- /* @__PURE__ */ jsx2(
190
- _DataTable,
191
- {
192
- table,
193
- columns,
194
- pageSize: PAGE_SIZE,
195
- count,
196
- filters,
197
- orderBy: [
198
- { key: "title", label: t("fields.title") },
199
- { key: "handle", label: t("fields.handle") },
200
- { key: "created_at", label: t("fields.createdAt") },
201
- { key: "updated_at", label: t("fields.updatedAt") }
202
- ],
203
- search: true,
204
- navigateTo: (row) => `/collections/${row.original.id}`,
205
- queryObject: raw,
206
- isLoading
207
- }
208
- )
209
- ] });
210
- };
211
- var columnHelper = createColumnHelper();
212
- var useColumns = () => {
213
- const base = useCollectionTableColumns();
214
- return useMemo(
215
- () => [
216
- ...base,
217
- columnHelper.display({
218
- id: "actions",
219
- cell: ({ row }) => /* @__PURE__ */ jsx2(CollectionRowActions, { collection: row.original })
220
- })
221
- ],
222
- [base]
223
- );
224
- };
225
-
226
- // src/pages/collections/collection-list/collection-list.tsx
227
- import { jsx as jsx3 } from "react/jsx-runtime";
228
- var CollectionList = () => {
229
- return /* @__PURE__ */ jsx3(SingleColumnPage, { children: /* @__PURE__ */ jsx3(CollectionListTable, {}) });
230
- };
231
- export {
232
- CollectionList as Component
233
- };
@@ -1,153 +0,0 @@
1
- import {
2
- useCustomerTableColumns
3
- } from "./chunk-QG6PLWNH.js";
4
- import "./chunk-25LYVP3C.js";
5
- import "./chunk-DB6ANJBO.js";
6
- import "./chunk-FQERBIVS.js";
7
- import "./chunk-PHOCVOZ5.js";
8
- import {
9
- _DataTable,
10
- useDataTable
11
- } from "./chunk-FLCYR7E5.js";
12
- import "./chunk-YBZWO4ZV.js";
13
- import "./chunk-KAZ5BYTQ.js";
14
- import "./chunk-3EF54XFY.js";
15
- import {
16
- useCustomerTableFilters
17
- } from "./chunk-K3GJ266Z.js";
18
- import {
19
- useCustomerTableQuery
20
- } from "./chunk-PVZBDWLK.js";
21
- import "./chunk-KBYZLKI4.js";
22
- import "./chunk-YWWUOGJA.js";
23
- import {
24
- SingleColumnPage
25
- } from "./chunk-U2UCL2VG.js";
26
- import "./chunk-INNFZYX2.js";
27
- import {
28
- ActionMenu
29
- } from "./chunk-BDGZ4EQO.js";
30
- import "./chunk-LAVHRER2.js";
31
- import "./chunk-Y7QKP6QU.js";
32
- import "./chunk-THHRRYRS.js";
33
- import "./chunk-UZWFZMOX.js";
34
- import "./chunk-XQNVC4Q7.js";
35
- import {
36
- useCustomers
37
- } from "./chunk-A5XOYSDC.js";
38
- import "./chunk-RHKRREUU.js";
39
- import "./chunk-ZA2KFUFR.js";
40
- import "./chunk-ZYNBKBY3.js";
41
- import "./chunk-NBMM2TZK.js";
42
-
43
- // src/pages/customers/customer-list/components/customer-list-table/customer-list-table.tsx
44
- import { PencilSquare } from "@medusajs/icons";
45
- import { Button, Container, Heading } from "@medusajs/ui";
46
- import { keepPreviousData } from "@tanstack/react-query";
47
- import { createColumnHelper } from "@tanstack/react-table";
48
- import { useMemo } from "react";
49
- import { useTranslation } from "react-i18next";
50
- import { Link } from "react-router-dom";
51
- import { jsx, jsxs } from "react/jsx-runtime";
52
- var PAGE_SIZE = 20;
53
- var CustomerListTable = () => {
54
- const { t } = useTranslation();
55
- const { searchParams, raw } = useCustomerTableQuery({ pageSize: PAGE_SIZE });
56
- const { customers, count, isLoading, isError, error } = useCustomers(
57
- {
58
- ...searchParams
59
- },
60
- {
61
- placeholderData: keepPreviousData
62
- }
63
- );
64
- const filters = useCustomerTableFilters();
65
- const columns = useColumns();
66
- const { table } = useDataTable({
67
- data: customers ?? [],
68
- columns,
69
- count,
70
- enablePagination: true,
71
- getRowId: (row) => row.id,
72
- pageSize: PAGE_SIZE
73
- });
74
- if (isError) {
75
- throw error;
76
- }
77
- return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", "data-testid": "customer-list-container", children: [
78
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "customer-list-header", children: [
79
- /* @__PURE__ */ jsx(Heading, { "data-testid": "customer-list-heading", children: t("customers.domain") }),
80
- /* @__PURE__ */ jsx(Link, { to: "/customers/create", "data-testid": "customer-list-create-link", children: /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", "data-testid": "customer-list-create-button", children: t("actions.create") }) })
81
- ] }),
82
- /* @__PURE__ */ jsx(
83
- _DataTable,
84
- {
85
- table,
86
- columns,
87
- pageSize: PAGE_SIZE,
88
- count,
89
- filters,
90
- orderBy: [
91
- { key: "email", label: t("fields.email") },
92
- { key: "first_name", label: t("fields.firstName") },
93
- { key: "last_name", label: t("fields.lastName") },
94
- { key: "has_account", label: t("customers.hasAccount") },
95
- { key: "created_at", label: t("fields.createdAt") },
96
- { key: "updated_at", label: t("fields.updatedAt") }
97
- ],
98
- isLoading,
99
- navigateTo: (row) => row.original.id,
100
- search: true,
101
- queryObject: raw,
102
- noRecords: {
103
- message: t("customers.list.noRecordsMessage")
104
- }
105
- }
106
- )
107
- ] });
108
- };
109
- var CustomerActions = ({
110
- customer
111
- }) => {
112
- const { t } = useTranslation();
113
- return /* @__PURE__ */ jsx(
114
- ActionMenu,
115
- {
116
- "data-testid": `customer-list-row-actions-${customer.id}`,
117
- groups: [
118
- {
119
- actions: [
120
- {
121
- icon: /* @__PURE__ */ jsx(PencilSquare, {}),
122
- label: t("actions.edit"),
123
- to: `/customers/${customer.id}/edit`
124
- }
125
- ]
126
- }
127
- ]
128
- }
129
- );
130
- };
131
- var columnHelper = createColumnHelper();
132
- var useColumns = () => {
133
- const columns = useCustomerTableColumns();
134
- return useMemo(
135
- () => [
136
- ...columns,
137
- columnHelper.display({
138
- id: "actions",
139
- cell: ({ row }) => /* @__PURE__ */ jsx(CustomerActions, { customer: row.original })
140
- })
141
- ],
142
- [columns]
143
- );
144
- };
145
-
146
- // src/pages/customers/customer-list/customer-list.tsx
147
- import { jsx as jsx2 } from "react/jsx-runtime";
148
- var CustomersList = () => {
149
- return /* @__PURE__ */ jsx2(SingleColumnPage, { children: /* @__PURE__ */ jsx2(CustomerListTable, {}) });
150
- };
151
- export {
152
- CustomersList as Component
153
- };
@@ -1,317 +0,0 @@
1
- import {
2
- FulfillmentStatusCell,
3
- FulfillmentStatusHeader,
4
- PaymentStatusCell,
5
- PaymentStatusHeader
6
- } from "./chunk-RW35OPIA.js";
7
- import {
8
- DateCell,
9
- DateHeader
10
- } from "./chunk-25LYVP3C.js";
11
- import "./chunk-LQSLDDPT.js";
12
- import {
13
- TextCell,
14
- TextHeader
15
- } from "./chunk-JHIMVLB2.js";
16
- import {
17
- getStylizedAmount
18
- } from "./chunk-PXYDR7WQ.js";
19
- import "./chunk-DB6ANJBO.js";
20
- import "./chunk-FQERBIVS.js";
21
- import "./chunk-PHOCVOZ5.js";
22
- import {
23
- _DataTable,
24
- useDataTable
25
- } from "./chunk-FLCYR7E5.js";
26
- import "./chunk-YBZWO4ZV.js";
27
- import "./chunk-KAZ5BYTQ.js";
28
- import "./chunk-3EF54XFY.js";
29
- import "./chunk-IQPN4PZJ.js";
30
- import "./chunk-SXC5ZMLI.js";
31
- import "./chunk-MG4GKUJW.js";
32
- import "./chunk-AYVH6Q5O.js";
33
- import "./chunk-VOHEQ7B5.js";
34
- import "./chunk-N5IUYCUZ.js";
35
- import "./chunk-7SVLKK6Q.js";
36
- import "./chunk-GR6JUIRU.js";
37
- import "./chunk-PVZBDWLK.js";
38
- import {
39
- useOrderTableQuery
40
- } from "./chunk-O5HZRJPB.js";
41
- import "./chunk-VKOE5J66.js";
42
- import "./chunk-DY3XQPHC.js";
43
- import "./chunk-VVWB3GIK.js";
44
- import "./chunk-KBYZLKI4.js";
45
- import "./chunk-YWWUOGJA.js";
46
- import {
47
- SingleColumnPage
48
- } from "./chunk-U2UCL2VG.js";
49
- import "./chunk-INNFZYX2.js";
50
- import "./chunk-LAVHRER2.js";
51
- import "./chunk-Y7QKP6QU.js";
52
- import "./chunk-THHRRYRS.js";
53
- import "./chunk-UZWFZMOX.js";
54
- import "./chunk-XQNVC4Q7.js";
55
- import {
56
- useOrderGroups
57
- } from "./chunk-M3I52H3M.js";
58
- import "./chunk-ZA2KFUFR.js";
59
- import "./chunk-ZYNBKBY3.js";
60
- import "./chunk-NBMM2TZK.js";
61
-
62
- // src/pages/orders/order-list/components/order-list-table/order-list-table.tsx
63
- import { Container, Heading, IconButton, clx } from "@medusajs/ui";
64
- import { TriangleRightMini } from "@medusajs/icons";
65
- import { keepPreviousData } from "@tanstack/react-query";
66
- import { createColumnHelper } from "@tanstack/react-table";
67
- import { useMemo } from "react";
68
- import { useTranslation } from "react-i18next";
69
-
70
- // src/pages/orders/order-list/const.ts
71
- var DEFAULT_PROPERTIES = [
72
- "id",
73
- "display_id",
74
- "customer_id",
75
- "seller_count",
76
- "total",
77
- "created_at",
78
- "orders.id",
79
- "orders.status",
80
- "orders.created_at",
81
- "orders.email",
82
- "orders.display_id",
83
- "orders.custom_display_id",
84
- "orders.payment_status",
85
- "orders.fulfillment_status",
86
- "orders.total",
87
- "orders.currency_code"
88
- ];
89
- var DEFAULT_RELATIONS = [
90
- "*orders.payment_collections",
91
- "*orders.customer",
92
- "*orders.sales_channel",
93
- "*orders.seller"
94
- ];
95
- var DEFAULT_FIELDS = `${DEFAULT_PROPERTIES.join(
96
- ","
97
- )},${DEFAULT_RELATIONS.join(",")}`;
98
-
99
- // src/pages/orders/order-list/components/order-list-table/order-list-table.tsx
100
- import { jsx, jsxs } from "react/jsx-runtime";
101
- var PAGE_SIZE = 20;
102
- function transformOrderGroups(orderGroups) {
103
- return orderGroups.map((group) => {
104
- const orders = group.orders ?? [];
105
- const orderIds = orders.map((o) => `#${o.display_id}`).join(", ");
106
- const firstOrder = orders[0];
107
- const customerName = firstOrder?.customer ? `${firstOrder.customer.first_name ?? ""} ${firstOrder.customer.last_name ?? ""}`.trim() : "-";
108
- const currencyCode = firstOrder?.currency_code ?? "usd";
109
- const children = orders.map((order) => {
110
- const name = order.customer ? `${order.customer.first_name ?? ""} ${order.customer.last_name ?? ""}`.trim() : "-";
111
- return {
112
- _type: "order",
113
- id: order.id,
114
- display_id: `#${order.display_id}`,
115
- order_ids: "",
116
- vendor: order.seller?.name ?? "-",
117
- created_at: new Date(order.created_at),
118
- customer_name: name,
119
- payment_status: order.payment_status ?? null,
120
- fulfillment_status: order.fulfillment_status ?? null,
121
- total: order.total ?? null,
122
- currency_code: order.currency_code ?? "usd",
123
- children: []
124
- };
125
- });
126
- return {
127
- _type: "group",
128
- id: group.id,
129
- display_id: `#G${group.display_id}`,
130
- order_ids: orderIds,
131
- vendor: `${group.seller_count} vendors`,
132
- created_at: new Date(group.created_at),
133
- customer_name: customerName,
134
- payment_status: null,
135
- fulfillment_status: null,
136
- total: group.total ?? null,
137
- currency_code: currencyCode,
138
- children
139
- };
140
- });
141
- }
142
- var OrderListTable = () => {
143
- const { t } = useTranslation();
144
- const { searchParams, raw } = useOrderTableQuery({
145
- pageSize: PAGE_SIZE
146
- });
147
- const { order_groups, count, isError, error, isLoading } = useOrderGroups(
148
- {
149
- ...searchParams,
150
- fields: DEFAULT_FIELDS
151
- },
152
- {
153
- placeholderData: keepPreviousData
154
- }
155
- );
156
- const rows = useMemo(
157
- () => transformOrderGroups(order_groups ?? []),
158
- [order_groups]
159
- );
160
- const columns = useColumns();
161
- const { table } = useDataTable({
162
- data: rows,
163
- columns,
164
- enablePagination: true,
165
- enableExpandableRows: true,
166
- getSubRows: (row) => row.children,
167
- getRowId: (row) => row.id,
168
- count,
169
- pageSize: PAGE_SIZE
170
- });
171
- if (isError) {
172
- throw error;
173
- }
174
- return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", "data-testid": "orders-container", children: [
175
- /* @__PURE__ */ jsx(
176
- "div",
177
- {
178
- className: "flex items-center justify-between px-6 py-4",
179
- "data-testid": "orders-header",
180
- children: /* @__PURE__ */ jsx(Heading, { "data-testid": "orders-heading", children: t("orders.domain") })
181
- }
182
- ),
183
- /* @__PURE__ */ jsx("div", { "data-testid": "orders-table-wrapper", children: /* @__PURE__ */ jsx(
184
- _DataTable,
185
- {
186
- columns,
187
- table,
188
- pagination: true,
189
- navigateTo: (row) => row.original._type === "order" ? `/orders/${row.original.id}` : "",
190
- count,
191
- search: true,
192
- isLoading,
193
- pageSize: PAGE_SIZE,
194
- orderBy: [{ key: "created_at", label: t("fields.createdAt") }],
195
- queryObject: raw,
196
- noRecords: {
197
- message: t("orders.list.noRecordsMessage")
198
- }
199
- }
200
- ) })
201
- ] });
202
- };
203
- var columnHelper = createColumnHelper();
204
- var useColumns = () => {
205
- const { t } = useTranslation();
206
- return useMemo(
207
- () => [
208
- columnHelper.accessor("display_id", {
209
- header: () => /* @__PURE__ */ jsx(TextHeader, { text: "Group ID" }),
210
- cell: ({ row, getValue }) => {
211
- if (row.original._type === "order") {
212
- return null;
213
- }
214
- const expandHandler = row.getToggleExpandedHandler();
215
- return /* @__PURE__ */ jsxs("div", { className: "flex size-full items-center gap-x-2 overflow-hidden", children: [
216
- /* @__PURE__ */ jsx("div", { className: "flex size-7 items-center justify-center", children: row.getCanExpand() ? /* @__PURE__ */ jsx(
217
- IconButton,
218
- {
219
- type: "button",
220
- onClick: (e) => {
221
- e.stopPropagation();
222
- e.preventDefault();
223
- expandHandler();
224
- },
225
- size: "small",
226
- variant: "transparent",
227
- className: "text-ui-fg-subtle",
228
- children: /* @__PURE__ */ jsx(
229
- TriangleRightMini,
230
- {
231
- className: clx({
232
- "rotate-90 transition-transform will-change-transform": row.getIsExpanded()
233
- })
234
- }
235
- )
236
- }
237
- ) : null }),
238
- /* @__PURE__ */ jsx("span", { className: "truncate", children: getValue() })
239
- ] });
240
- }
241
- }),
242
- columnHelper.accessor("order_ids", {
243
- header: () => /* @__PURE__ */ jsx(TextHeader, { text: "Order IDs" }),
244
- cell: ({ row, getValue }) => {
245
- if (row.original._type === "group") {
246
- return /* @__PURE__ */ jsx(TextCell, { text: getValue() });
247
- }
248
- return /* @__PURE__ */ jsx(TextCell, { text: row.original.display_id });
249
- }
250
- }),
251
- columnHelper.accessor("vendor", {
252
- header: () => /* @__PURE__ */ jsx(TextHeader, { text: "Vendor" }),
253
- cell: ({ getValue }) => /* @__PURE__ */ jsx(TextCell, { text: getValue() })
254
- }),
255
- columnHelper.accessor("created_at", {
256
- header: () => /* @__PURE__ */ jsx(DateHeader, {}),
257
- cell: ({ getValue }) => /* @__PURE__ */ jsx(DateCell, { date: getValue() })
258
- }),
259
- columnHelper.accessor("customer_name", {
260
- header: () => /* @__PURE__ */ jsx(TextHeader, { text: t("fields.customer") }),
261
- cell: ({ getValue }) => /* @__PURE__ */ jsx(TextCell, { text: getValue() })
262
- }),
263
- columnHelper.accessor("payment_status", {
264
- header: () => /* @__PURE__ */ jsx(PaymentStatusHeader, {}),
265
- cell: ({ row, getValue }) => {
266
- if (row.original._type === "group") {
267
- return null;
268
- }
269
- const status = getValue();
270
- if (!status) return "-";
271
- return /* @__PURE__ */ jsx(PaymentStatusCell, { status });
272
- }
273
- }),
274
- columnHelper.accessor("fulfillment_status", {
275
- header: () => /* @__PURE__ */ jsx(FulfillmentStatusHeader, {}),
276
- cell: ({ row, getValue }) => {
277
- if (row.original._type === "group") {
278
- return null;
279
- }
280
- const status = getValue();
281
- if (!status) return "-";
282
- return /* @__PURE__ */ jsx(FulfillmentStatusCell, { status });
283
- }
284
- }),
285
- columnHelper.accessor("total", {
286
- header: () => /* @__PURE__ */ jsx(TextHeader, { text: t("fields.total") }),
287
- cell: ({ row, getValue }) => {
288
- const total = getValue();
289
- if (total == null) return "-";
290
- return /* @__PURE__ */ jsx(
291
- TextCell,
292
- {
293
- text: getStylizedAmount(total, row.original.currency_code)
294
- }
295
- );
296
- }
297
- })
298
- ],
299
- [t]
300
- );
301
- };
302
-
303
- // src/pages/orders/order-list/order-list.tsx
304
- import { jsx as jsx2 } from "react/jsx-runtime";
305
- var OrderList = () => {
306
- return /* @__PURE__ */ jsx2(
307
- SingleColumnPage,
308
- {
309
- hasOutlet: false,
310
- "data-testid": "orders-list-page",
311
- children: /* @__PURE__ */ jsx2(OrderListTable, {})
312
- }
313
- );
314
- };
315
- export {
316
- OrderList as Component
317
- };