@mercurjs/admin 2.0.0-canary.39 → 2.0.0-canary.41

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 (200) hide show
  1. package/dist/{add-campaign-promotions-ZUXBF5G3.js → add-campaign-promotions-7TPECJOT.js} +4 -4
  2. package/dist/{api-key-management-detail-SKJNAZ5L.js → api-key-management-detail-2EFDWJSF.js} +7 -7
  3. package/dist/{api-key-management-list-2D4WKI6Y.js → api-key-management-list-UZLHSM2R.js} +6 -5
  4. package/dist/{api-key-management-sales-channels-C7EWPHC2.js → api-key-management-sales-channels-ER5ZINL7.js} +6 -7
  5. package/dist/{campaign-create-B7XM2FZM.js → campaign-create-AFR3V7P4.js} +3 -3
  6. package/dist/{campaign-detail-7U4CQHU5.js → campaign-detail-UUNEZUY7.js} +9 -8
  7. package/dist/{campaign-list-SC7FLTRM.js → campaign-list-2AAGWYEG.js} +6 -5
  8. package/dist/category-create-LY45Z7YB.js +23 -0
  9. package/dist/{category-detail-HGHR3R2R.js → category-detail-AGTIMI6P.js} +7 -6
  10. package/dist/{category-list-QBBFGHQM.js → category-list-ROM7UTA4.js} +6 -5
  11. package/dist/{chunk-ENMRRG4N.js → chunk-2AWQ4FPA.js} +6 -6
  12. package/dist/{chunk-VBAAYYCS.js → chunk-2HPZJCAF.js} +6 -6
  13. package/dist/{chunk-SFG7JTBH.js → chunk-2LAANNMF.js} +111 -48
  14. package/dist/{chunk-KYUXTS2L.js → chunk-2UN7CNBG.js} +7 -7
  15. package/dist/chunk-3LTXCGNM.js +204 -0
  16. package/dist/{chunk-EDQBUWY7.js → chunk-3NIWL75F.js} +6 -6
  17. package/dist/{product-create-variant-CJPECBV4.js → chunk-4UTK7DZN.js} +63 -69
  18. package/dist/{chunk-5VEYNZSW.js → chunk-5322X23U.js} +9 -4
  19. package/dist/{chunk-U3SFHLUA.js → chunk-53IISBJZ.js} +1 -0
  20. package/dist/{chunk-DGCPYCHU.js → chunk-54RTJBYO.js} +63 -8
  21. package/dist/{chunk-E2AAYIHS.js → chunk-5EFOVNK2.js} +3 -3
  22. package/dist/{chunk-NQPAEBSZ.js → chunk-6E3T6CGY.js} +15 -7
  23. package/dist/{chunk-V2DXJ75C.js → chunk-6OA7JZ5E.js} +1 -1
  24. package/dist/chunk-72IQIAGX.js +245 -0
  25. package/dist/{chunk-3IYIS5UZ.js → chunk-7DOPC5GY.js} +4 -4
  26. package/dist/{chunk-Q6XCCONH.js → chunk-AI6RJGRQ.js} +9 -9
  27. package/dist/{price-list-create-OK7YYLAB.js → chunk-AJZQBGE4.js} +193 -428
  28. package/dist/{chunk-XDVS4B7W.js → chunk-BAV6Y7RC.js} +8 -7
  29. package/dist/{chunk-4WYBW3HK.js → chunk-BCAT7P6B.js} +3 -3
  30. package/dist/{chunk-LYT3RI4O.js → chunk-BHYDGWZ6.js} +18 -9
  31. package/dist/{chunk-DK3U2SRA.js → chunk-BIEYPCHL.js} +5 -5
  32. package/dist/{product-create-NVBKO426.js → chunk-BLG726FI.js} +36 -68
  33. package/dist/chunk-BVRI7YAR.js +100 -0
  34. package/dist/{chunk-2IGCU3KP.js → chunk-DOMRLXOI.js} +2 -2
  35. package/dist/{chunk-K6FXWZ2M.js → chunk-F55UXYYA.js} +10 -0
  36. package/dist/{chunk-AOVEX4EM.js → chunk-FNXSMFGL.js} +5 -5
  37. package/dist/{chunk-IXGP2EEN.js → chunk-FYAYHOCN.js} +2 -3
  38. package/dist/{chunk-QBOXELB5.js → chunk-GJHAVFXL.js} +4 -4
  39. package/dist/{price-list-prices-add-7PGUONDK.js → chunk-GOVOSXUU.js} +90 -290
  40. package/dist/{chunk-66IHH2HG.js → chunk-H6W6Q6YE.js} +3 -3
  41. package/dist/{seller-details-KROISMQC.js → chunk-HVLQFQGD.js} +74 -146
  42. package/dist/{chunk-QD6KYDYH.js → chunk-I6R4I7EF.js} +6 -6
  43. package/dist/{chunk-RIMR3ULR.js → chunk-ISYWL6RZ.js} +64 -33
  44. package/dist/{chunk-HHNJNKCB.js → chunk-KMUEJ3IE.js} +59 -20
  45. package/dist/{chunk-GJTIHFXG.js → chunk-KOILMFJX.js} +29 -31
  46. package/dist/{chunk-3SAH3NUS.js → chunk-LIXRNUG5.js} +1 -1
  47. package/dist/chunk-LOJD5572.js +433 -0
  48. package/dist/{chunk-T25UE7SS.js → chunk-MD56QRKC.js} +6 -6
  49. package/dist/{chunk-S4QUEQQK.js → chunk-MSFNMGFD.js} +48 -48
  50. package/dist/{chunk-YH4VQBAA.js → chunk-MX52GGQO.js} +81 -52
  51. package/dist/{chunk-O6O22BN4.js → chunk-N7BCAAJC.js} +113 -48
  52. package/dist/{chunk-JA2XIIIZ.js → chunk-NXKCVD5F.js} +6 -5
  53. package/dist/{chunk-G4QMLQF2.js → chunk-NZN7PFPB.js} +2 -4
  54. package/dist/{chunk-KUDLPUWR.js → chunk-OFWYMU6K.js} +8 -8
  55. package/dist/chunk-OOAY7PAK.js +1155 -0
  56. package/dist/chunk-PAQH5QQH.js +685 -0
  57. package/dist/{chunk-3H74EI2D.js → chunk-POCHIWE2.js} +100 -40
  58. package/dist/chunk-PXBCTPQO.js +248 -0
  59. package/dist/chunk-QSZ2FIM2.js +223 -0
  60. package/dist/{chunk-23663A2W.js → chunk-R5VKVG6S.js} +1 -1
  61. package/dist/{chunk-DP5U3GQU.js → chunk-RXUUBJSZ.js} +1 -1
  62. package/dist/{chunk-FYB5MS4F.js → chunk-S2GARTQU.js} +6 -6
  63. package/dist/{chunk-7TLEUIAL.js → chunk-SO6PXIPV.js} +21 -16
  64. package/dist/{category-create-UWBJGIED.js → chunk-ST74PSEZ.js} +78 -149
  65. package/dist/{chunk-33FUPXJL.js → chunk-T3OYE2MH.js} +4 -4
  66. package/dist/{chunk-JRWB7VWP.js → chunk-U4RMXPGI.js} +8 -8
  67. package/dist/{chunk-YGSM5PVN.js → chunk-UI2BJVP5.js} +1 -1
  68. package/dist/{chunk-FXU7SL6M.js → chunk-UOIUQC3P.js} +25 -15
  69. package/dist/{chunk-ZU2RNSCP.js → chunk-UONTDHRH.js} +4 -2
  70. package/dist/{chunk-J7SR4GW5.js → chunk-V3SHSLK4.js} +4 -4
  71. package/dist/{chunk-TE5VQBCL.js → chunk-V42ZR4XW.js} +8 -9
  72. package/dist/chunk-V5J73NPW.js +117 -0
  73. package/dist/{chunk-QP6XXG6A.js → chunk-VOFAM7HJ.js} +74 -42
  74. package/dist/{chunk-CR4E2DCR.js → chunk-VT3RBTYK.js} +3 -3
  75. package/dist/{chunk-AOVJTW7M.js → chunk-VWQYMOBM.js} +9 -9
  76. package/dist/{chunk-6L2LSIPR.js → chunk-VXAQZ2ZZ.js} +4 -4
  77. package/dist/{chunk-OSHCUDYY.js → chunk-X3KBQBGW.js} +6 -6
  78. package/dist/{chunk-WZADCDDE.js → chunk-X56THFPA.js} +2 -1
  79. package/dist/{chunk-HZKW7HRU.js → chunk-X7NWBH7T.js} +64 -35
  80. package/dist/{chunk-OFRQZHVQ.js → chunk-XE5ZMNUN.js} +6 -6
  81. package/dist/{chunk-4GVHNYZR.js → chunk-XHVYNMTA.js} +2 -2
  82. package/dist/{chunk-U2UCL2VG.js → chunk-XIZLPYEE.js} +3 -111
  83. package/dist/{chunk-KXPCEVFB.js → chunk-XOKRMMVP.js} +6 -6
  84. package/dist/{chunk-XVKRTPVM.js → chunk-Y5N26ZC3.js} +41 -15
  85. package/dist/{chunk-A6Z2Q7D5.js → chunk-Z2MDPTF2.js} +4 -2
  86. package/dist/{chunk-TKGZBTOS.js → chunk-ZFSZTRZ6.js} +54 -32
  87. package/dist/{chunk-RV6NZTNP.js → chunk-ZZEAWVFX.js} +27 -27
  88. package/dist/{collection-detail-YJ3FV2C6.js → collection-detail-SRR3HSIV.js} +7 -6
  89. package/dist/{collection-list-WDQOBHQN.js → collection-list-MKISW5S4.js} +6 -5
  90. package/dist/{commission-rate-detail-UQDIIMIK.js → commission-rate-detail-GLB733F3.js} +5 -4
  91. package/dist/{commission-rate-list-WTDZLKUR.js → commission-rate-list-5V3FQROA.js} +6 -5
  92. package/dist/{customer-detail-N7CS4IJU.js → customer-detail-SBQF232S.js} +4 -3
  93. package/dist/customer-group-add-customers-LCNDTLXR.js +1 -1
  94. package/dist/{customer-group-detail-UCTY4FF7.js → customer-group-detail-QQSNRM2K.js} +6 -5
  95. package/dist/{customer-group-list-XOQ64CVR.js → customer-group-list-IO7SVK3F.js} +15 -6
  96. package/dist/{customer-list-BUUO6OF7.js → customer-list-TXBAME4V.js} +4 -3
  97. package/dist/customers-add-customer-group-BKEV24N2.js +1 -1
  98. package/dist/index.d.ts +225 -16
  99. package/dist/index.js +581 -387
  100. package/dist/inventory-create-Q4JIXZTT.js +56 -0
  101. package/dist/{inventory-detail-BJT5WEV5.js → inventory-detail-3D37JWQT.js} +7 -6
  102. package/dist/{inventory-list-3LWBPWVK.js → inventory-list-WH42ADNB.js} +6 -5
  103. package/dist/{inventory-stock-G3GP4FZX.js → inventory-stock-DTKOGYT7.js} +6 -6
  104. package/dist/{location-detail-N7J6PEAP.js → location-detail-2SSHXSKL.js} +5 -4
  105. package/dist/location-fulfillment-providers-BHCY2MYC.js +1 -1
  106. package/dist/{location-list-UG6B47NP.js → location-list-LPISOSQI.js} +5 -4
  107. package/dist/{location-sales-channels-3IGHCJEN.js → location-sales-channels-PPH53OHD.js} +6 -7
  108. package/dist/location-service-zone-shipping-option-create-GSXLVEGO.js +57 -0
  109. package/dist/{location-service-zone-shipping-option-pricing-7VMPXDWX.js → location-service-zone-shipping-option-pricing-4CTGXBP3.js} +6 -6
  110. package/dist/marketplace-add-currencies-CIGOPBO6.js +1 -1
  111. package/dist/{marketplace-detail-7KJMXXAJ.js → marketplace-detail-3CBLIYVK.js} +6 -5
  112. package/dist/{order-detail-C25NQSZN.js → order-detail-AJV2PE7J.js} +7 -6
  113. package/dist/{order-edit-billing-address-NVRMPZEU.js → order-edit-billing-address-QQUPIC2H.js} +6 -6
  114. package/dist/{order-list-7NH7LROU.js → order-list-VPQOG5WE.js} +6 -5
  115. package/dist/pages/index.d.ts +2608 -82
  116. package/dist/pages/index.js +238 -156
  117. package/dist/{payout-detail-MDD5SRK5.js → payout-detail-PMR26YQI.js} +5 -4
  118. package/dist/{payout-list-XY2A5KYS.js → payout-list-DMG7MQM7.js} +6 -4
  119. package/dist/price-list-configuration-XK3IZLLX.js +1 -1
  120. package/dist/price-list-create-QS6CVEWS.js +76 -0
  121. package/dist/{price-list-detail-IGFSM77P.js → price-list-detail-IO5ZURVW.js} +7 -6
  122. package/dist/{price-list-list-TBXQ5DOS.js → price-list-list-B3FKB46L.js} +6 -5
  123. package/dist/price-list-prices-add-NSAQWBT6.js +71 -0
  124. package/dist/{price-list-prices-edit-QVGBT6AI.js → price-list-prices-edit-UOAIOS5X.js} +6 -6
  125. package/dist/product-create-UVKMOKRF.js +68 -0
  126. package/dist/product-create-variant-TCXDJ425.js +53 -0
  127. package/dist/{product-detail-ZC37BGPC.js → product-detail-273ME23P.js} +4 -4
  128. package/dist/{product-list-635ZXM2D.js → product-list-2ZHLFSBI.js} +5 -4
  129. package/dist/{product-media-ZMDAVPGI.js → product-media-YMFP6Q6A.js} +3 -3
  130. package/dist/{product-prices-WMRIC7WM.js → product-prices-X6JO3Y5A.js} +5 -5
  131. package/dist/{product-sales-channels-LSN5DVWZ.js → product-sales-channels-2PVBPK6W.js} +2 -3
  132. package/dist/{product-stock-HF42WRSC.js → product-stock-ARRFHDSU.js} +6 -6
  133. package/dist/{product-tag-detail-OJLYO3Q5.js → product-tag-detail-545AVFGA.js} +7 -6
  134. package/dist/{product-tag-list-XFHGJBRF.js → product-tag-list-2Y2Q7K3A.js} +7 -6
  135. package/dist/{product-type-detail-J4UA4AEM.js → product-type-detail-PBP572AM.js} +7 -6
  136. package/dist/{product-type-list-H5EQHCXS.js → product-type-list-XWNUKETZ.js} +6 -5
  137. package/dist/{product-variant-detail-5WKYURFA.js → product-variant-detail-RJUQWBYH.js} +4 -3
  138. package/dist/{profile-detail-EYNXOHGZ.js → profile-detail-H22ZBNOB.js} +5 -4
  139. package/dist/{promotion-add-campaign-B5SF72KC.js → promotion-add-campaign-5LCKEU6H.js} +3 -3
  140. package/dist/promotion-create-KXBEHXPK.js +54 -0
  141. package/dist/{promotion-detail-MVFOMS4E.js → promotion-detail-NZZ2HII7.js} +7 -6
  142. package/dist/{promotion-list-IN4VWEQN.js → promotion-list-KARWNOAQ.js} +9 -8
  143. package/dist/{refund-reason-list-DJZZC7KK.js → refund-reason-list-GTZQBZ7R.js} +3 -2
  144. package/dist/{region-detail-OFZHX57G.js → region-detail-3OPMLS4V.js} +5 -4
  145. package/dist/{region-list-L4FKHVJJ.js → region-list-542EMW5C.js} +6 -5
  146. package/dist/{reservation-detail-LZYEM5NW.js → reservation-detail-IPGIBQW4.js} +5 -4
  147. package/dist/{reservation-list-OGPDB7WG.js → reservation-list-CEFKMB2G.js} +6 -5
  148. package/dist/{reset-password-Q7Y4FWRE.js → reset-password-R5ULRWEM.js} +1 -1
  149. package/dist/{return-reason-list-6ICMSVKF.js → return-reason-list-S7LU655M.js} +5 -4
  150. package/dist/{sales-channel-detail-RRJG7U7R.js → sales-channel-detail-QCJ6OC3H.js} +7 -6
  151. package/dist/{sales-channel-list-LUZ4ZXCY.js → sales-channel-list-KYNBWXUD.js} +7 -7
  152. package/dist/seller-details-A7TYGP67.js +104 -0
  153. package/dist/{seller-list-664H4SI5.js → seller-list-5KPNNC2B.js} +7 -6
  154. package/dist/{shipping-option-type-detail-2RY3NHRO.js → shipping-option-type-detail-OBYOZZWS.js} +5 -4
  155. package/dist/{shipping-option-type-list-IOSOE33S.js → shipping-option-type-list-UGVMQ3DC.js} +6 -5
  156. package/dist/{shipping-profile-detail-RIIAX7VE.js → shipping-profile-detail-RYOFRMLH.js} +5 -4
  157. package/dist/{shipping-profiles-list-AL4EJSJY.js → shipping-profiles-list-XJGQ7AVX.js} +5 -4
  158. package/dist/{tax-region-create-UOTLTCOP.js → tax-region-create-AR2LNF2G.js} +6 -6
  159. package/dist/{tax-region-detail-CA2W5W6A.js → tax-region-detail-PIGY5JQ7.js} +7 -6
  160. package/dist/{tax-region-list-JTZ7KZCX.js → tax-region-list-AMGZWUAI.js} +6 -5
  161. package/dist/{tax-region-province-detail-ZHLX4FF4.js → tax-region-province-detail-D3R4FJT4.js} +6 -5
  162. package/dist/types-DUhfb5tH.d.ts +30 -0
  163. package/dist/{user-detail-YNPBC5MN.js → user-detail-H66ZAR7W.js} +5 -4
  164. package/dist/{user-list-LNTZNT3D.js → user-list-HIUXLIJV.js} +5 -4
  165. package/package.json +3 -3
  166. package/dist/chunk-62ZRA6BZ.js +0 -216
  167. package/dist/chunk-6PNMR6XP.js +0 -192
  168. package/dist/chunk-7COSFMM7.js +0 -163
  169. package/dist/chunk-A2KURGQO.js +0 -151
  170. package/dist/chunk-BHID7W3U.js +0 -78
  171. package/dist/chunk-UKLRBS4W.js +0 -61
  172. package/dist/inventory-create-QLEIHESO.js +0 -620
  173. package/dist/location-service-zone-shipping-option-create-GYPW6SSN.js +0 -811
  174. package/dist/promotion-create-D77SANLX.js +0 -1262
  175. package/dist/{adjust-inventory-HZCWL6SC.js → adjust-inventory-WL7D7TQR.js} +3 -3
  176. package/dist/{campaign-budget-edit-AIXCDGG3.js → campaign-budget-edit-722ECPRI.js} +3 -3
  177. package/dist/{category-products-XLCG2JR7.js → category-products-H3VFYGOU.js} +2 -2
  178. package/dist/{chunk-DEKJJ7NG.js → chunk-OFCUTNGV.js} +3 -3
  179. package/dist/{chunk-KUWNYCGL.js → chunk-U3OWJE7V.js} +0 -0
  180. package/dist/{collection-add-products-IQ7M63BA.js → collection-add-products-BQ2FZKR4.js} +1 -1
  181. package/dist/{commission-rate-create-VC72GTV4.js → commission-rate-create-GFQNADQS.js} +9 -9
  182. package/dist/{commission-rate-edit-AXJKJNFY.js → commission-rate-edit-A2BFZUEI.js} +9 -9
  183. package/dist/{location-service-zone-shipping-option-edit-E3GN4ZF5.js → location-service-zone-shipping-option-edit-KPECMUYB.js} +3 -3
  184. package/dist/{order-create-claim-7WW6MXTT.js → order-create-claim-IWTV2HKL.js} +6 -6
  185. package/dist/{order-create-edit-KAH6ZPLX.js → order-create-edit-H2MHZFIW.js} +5 -5
  186. package/dist/{order-create-exchange-ELLWF3IY.js → order-create-exchange-PPMRSGLD.js} +6 -6
  187. package/dist/{order-create-refund-5QZBOSCA.js → order-create-refund-LZOHRL7T.js} +3 -3
  188. package/dist/{order-create-return-L6DEDPJK.js → order-create-return-WY6R4QMN.js} +6 -6
  189. package/dist/{order-edit-shipping-address-BPU7OL2N.js → order-edit-shipping-address-XQCSN4YO.js} +3 -3
  190. package/dist/{order-receive-return-FW5QZJBM.js → order-receive-return-GKMHYD4G.js} +1 -1
  191. package/dist/{product-edit-LQJDUUVX.js → product-edit-QGRKGJ3H.js} +1 -1
  192. package/dist/{product-variant-edit-66ZUIIMP.js → product-variant-edit-IQLBIHDE.js} +1 -1
  193. package/dist/{product-variant-manage-inventory-items-CV2CC2PV.js → product-variant-manage-inventory-items-C77QHYRT.js} +3 -3
  194. package/dist/{promotion-edit-details-YKS24GBD.js → promotion-edit-details-BFXPUEE6.js} +4 -4
  195. package/dist/{region-create-UMJK3VGL.js → region-create-ZPY6V77Q.js} +3 -3
  196. package/dist/{region-edit-ODVSNJHM.js → region-edit-Q2CBVPR2.js} +3 -3
  197. package/dist/{sales-channel-add-products-EOWFSO35.js → sales-channel-add-products-PIY4PUIW.js} +2 -2
  198. package/dist/{tax-region-province-create-RFYCUDER.js → tax-region-province-create-7BMYABJ6.js} +3 -3
  199. package/dist/{tax-region-tax-override-create-WIWUNXW6.js → tax-region-tax-override-create-EBDKSAXG.js} +6 -6
  200. package/dist/{tax-region-tax-override-edit-SWROFQTP.js → tax-region-tax-override-edit-55ODL7KC.js} +6 -6
@@ -1,132 +1,54 @@
1
1
  import {
2
2
  require_dist
3
- } from "./chunk-K6FXWZ2M.js";
3
+ } from "./chunk-F55UXYYA.js";
4
4
  import {
5
5
  useOrderTableColumns
6
6
  } from "./chunk-DBYUB2YI.js";
7
- import "./chunk-NOWUEJ74.js";
8
- import "./chunk-TZSOL34K.js";
9
- import "./chunk-25LYVP3C.js";
10
- import "./chunk-2Y3WMGN6.js";
11
- import "./chunk-PXYDR7WQ.js";
12
7
  import {
13
8
  ProductStatusCell
14
9
  } from "./chunk-G5OVX555.js";
15
- import "./chunk-DB6ANJBO.js";
16
- import "./chunk-FQERBIVS.js";
17
- import "./chunk-PHOCVOZ5.js";
18
- import {
19
- _DataTable,
20
- useDataTable
21
- } from "./chunk-ULJ3OMWU.js";
22
- import "./chunk-YBZWO4ZV.js";
23
- import "./chunk-KAZ5BYTQ.js";
24
- import "./chunk-3EF54XFY.js";
25
10
  import {
26
11
  TwoColumnPage
27
- } from "./chunk-U2UCL2VG.js";
12
+ } from "./chunk-V5J73NPW.js";
28
13
  import {
29
14
  Thumbnail
30
15
  } from "./chunk-WIYFXWRI.js";
31
- import "./chunk-IQPN4PZJ.js";
16
+ import {
17
+ _DataTable,
18
+ useDataTable
19
+ } from "./chunk-ULJ3OMWU.js";
32
20
  import {
33
21
  SingleColumnPageSkeleton
34
22
  } from "./chunk-INNFZYX2.js";
35
23
  import {
36
24
  ActionMenu
37
25
  } from "./chunk-BDGZ4EQO.js";
38
- import "./chunk-LAVHRER2.js";
39
- import "./chunk-Y7QKP6QU.js";
40
- import "./chunk-YMKZS2HK.js";
41
- import "./chunk-2ZFELO2L.js";
42
- import "./chunk-26OOAKQ6.js";
43
- import "./chunk-ZQZHFMD7.js";
44
- import "./chunk-K3GJ266Z.js";
45
26
  import {
46
27
  useOrderTableFilters
47
28
  } from "./chunk-RA4UMZRP.js";
48
- import "./chunk-CMHI2RPL.js";
49
- import "./chunk-S2WEYEQR.js";
50
- import "./chunk-TKEAOWBZ.js";
51
- import "./chunk-MG4GKUJW.js";
52
- import "./chunk-AYVH6Q5O.js";
53
- import "./chunk-VOHEQ7B5.js";
54
- import "./chunk-N5IUYCUZ.js";
55
- import "./chunk-7SVLKK6Q.js";
56
- import "./chunk-GR6JUIRU.js";
57
- import "./chunk-PVZBDWLK.js";
58
29
  import {
59
30
  useOrderTableQuery
60
31
  } from "./chunk-3B6MTW5G.js";
61
- import "./chunk-VKOE5J66.js";
62
- import "./chunk-DY3XQPHC.js";
63
32
  import {
64
33
  useProductTableFilters
65
34
  } from "./chunk-FBUH5OLD.js";
66
35
  import {
67
36
  useProductTableQuery
68
37
  } from "./chunk-VVWB3GIK.js";
69
- import "./chunk-KBYZLKI4.js";
70
- import "./chunk-YWWUOGJA.js";
71
- import "./chunk-THHRRYRS.js";
72
- import "./chunk-UZWFZMOX.js";
73
- import "./chunk-XQNVC4Q7.js";
74
- import "./chunk-XM6GCWNF.js";
75
- import "./chunk-ODBDAABQ.js";
76
- import "./chunk-CDQJKJMX.js";
77
- import "./chunk-JLATVDLM.js";
78
- import "./chunk-E7ZBQO6E.js";
79
- import "./chunk-GPRBBA7S.js";
80
- import "./chunk-XGHM75N2.js";
81
- import "./chunk-U2GCSKW3.js";
82
- import "./chunk-A4X5VP3G.js";
83
- import "./chunk-RTAIDSDS.js";
84
- import "./chunk-LW3UWYZU.js";
85
- import "./chunk-NNZP4PYP.js";
86
- import "./chunk-JOQ3RTF5.js";
87
- import "./chunk-V534K7G4.js";
88
- import "./chunk-TQI3DOQ5.js";
89
- import "./chunk-5PB7KCTF.js";
90
- import "./chunk-LU72QEQC.js";
91
38
  import {
92
39
  useSeller,
93
40
  useUpdateSeller
94
41
  } from "./chunk-GF4QHVX3.js";
95
- import "./chunk-A5XOYSDC.js";
96
- import "./chunk-YOIARITB.js";
97
42
  import {
98
43
  useOrders
99
44
  } from "./chunk-W7G64ULL.js";
100
- import "./chunk-6C7TCU42.js";
101
- import "./chunk-4YF3GAKE.js";
102
- import "./chunk-QSM56ZOP.js";
103
- import "./chunk-MIHEJ6Y6.js";
104
- import "./chunk-3VZV6SJQ.js";
105
- import "./chunk-LORVU5II.js";
106
- import "./chunk-36ORDF7W.js";
107
45
  import {
108
46
  useProducts
109
47
  } from "./chunk-K357FGGP.js";
110
- import "./chunk-RHKRREUU.js";
111
- import "./chunk-ZA2KFUFR.js";
112
- import "./chunk-ZYNBKBY3.js";
113
48
  import {
114
49
  __toESM
115
50
  } from "./chunk-NBMM2TZK.js";
116
51
 
117
- // src/pages/sellers/seller-details/breadcrumb.tsx
118
- import { jsx } from "react/jsx-runtime";
119
- var SellerDetailBreadcrumb = (props) => {
120
- const { id } = props.params || {};
121
- const { seller } = useSeller(id, void 0, {
122
- enabled: Boolean(id)
123
- });
124
- if (!seller) {
125
- return null;
126
- }
127
- return /* @__PURE__ */ jsx("span", { children: seller.name || seller.email });
128
- };
129
-
130
52
  // src/pages/sellers/seller-details/components/seller-details.tsx
131
53
  import { Children } from "react";
132
54
  import { useParams } from "react-router-dom";
@@ -143,7 +65,7 @@ import {
143
65
  } from "@medusajs/ui";
144
66
  import { useTranslation } from "react-i18next";
145
67
  var import_types = __toESM(require_dist(), 1);
146
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
68
+ import { jsx, jsxs } from "react/jsx-runtime";
147
69
  var statusColorMap = {
148
70
  [import_types.SellerStatus.PENDING]: "orange",
149
71
  [import_types.SellerStatus.ACTIVE]: "green",
@@ -209,14 +131,14 @@ var SellerGeneralSection = ({
209
131
  actions.push({
210
132
  label: "Activate account",
211
133
  onClick: () => handleStatusChange(import_types.SellerStatus.ACTIVE),
212
- icon: /* @__PURE__ */ jsx2(CheckCircleSolid, {})
134
+ icon: /* @__PURE__ */ jsx(CheckCircleSolid, {})
213
135
  });
214
136
  }
215
137
  if (seller.status !== import_types.SellerStatus.SUSPENDED) {
216
138
  actions.push({
217
139
  label: "Suspend account",
218
140
  onClick: () => handleStatusChange(import_types.SellerStatus.SUSPENDED),
219
- icon: /* @__PURE__ */ jsx2(XCircleSolid, {})
141
+ icon: /* @__PURE__ */ jsx(XCircleSolid, {})
220
142
  });
221
143
  }
222
144
  return actions;
@@ -224,19 +146,19 @@ var SellerGeneralSection = ({
224
146
  return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", children: [
225
147
  /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", children: [
226
148
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
227
- seller.logo ? /* @__PURE__ */ jsx2(
149
+ seller.logo ? /* @__PURE__ */ jsx(
228
150
  "img",
229
151
  {
230
152
  src: seller.logo,
231
153
  alt: seller.name,
232
154
  className: "h-10 w-10 rounded-lg object-cover"
233
155
  }
234
- ) : /* @__PURE__ */ jsx2("div", { className: "bg-ui-bg-component flex h-10 w-10 items-center justify-center rounded-lg border", children: /* @__PURE__ */ jsx2(User, { className: "text-ui-fg-subtle" }) }),
235
- /* @__PURE__ */ jsx2(Heading, { children: seller.name || seller.email })
156
+ ) : /* @__PURE__ */ jsx("div", { className: "bg-ui-bg-component flex h-10 w-10 items-center justify-center rounded-lg border", children: /* @__PURE__ */ jsx(User, { className: "text-ui-fg-subtle" }) }),
157
+ /* @__PURE__ */ jsx(Heading, { children: seller.name || seller.email })
236
158
  ] }),
237
159
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
238
- /* @__PURE__ */ jsx2(StatusBadge, { color: statusColor, children: statusText }),
239
- /* @__PURE__ */ jsx2(
160
+ /* @__PURE__ */ jsx(StatusBadge, { color: statusColor, children: statusText }),
161
+ /* @__PURE__ */ jsx(
240
162
  ActionMenu,
241
163
  {
242
164
  groups: [
@@ -245,7 +167,7 @@ var SellerGeneralSection = ({
245
167
  {
246
168
  label: t("actions.edit"),
247
169
  to: `/sellers/${seller.id}/edit`,
248
- icon: /* @__PURE__ */ jsx2(PencilSquare, {})
170
+ icon: /* @__PURE__ */ jsx(PencilSquare, {})
249
171
  }
250
172
  ]
251
173
  },
@@ -258,20 +180,20 @@ var SellerGeneralSection = ({
258
180
  ] })
259
181
  ] }),
260
182
  /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
261
- /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.name") }),
262
- /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.name || "-" })
183
+ /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.name") }),
184
+ /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: seller.name || "-" })
263
185
  ] }),
264
186
  /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
265
- /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.handle") }),
266
- /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.handle || "-" })
187
+ /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.handle") }),
188
+ /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: seller.handle || "-" })
267
189
  ] }),
268
190
  /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
269
- /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.email") }),
270
- /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.email || "-" })
191
+ /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.email") }),
192
+ /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: seller.email || "-" })
271
193
  ] }),
272
194
  /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
273
- /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.phone") }),
274
- /* @__PURE__ */ jsx2(Text, { size: "small", leading: "compact", children: seller.phone || "-" })
195
+ /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.phone") }),
196
+ /* @__PURE__ */ jsx(Text, { size: "small", leading: "compact", children: seller.phone || "-" })
275
197
  ] })
276
198
  ] });
277
199
  };
@@ -280,15 +202,15 @@ var SellerGeneralSection = ({
280
202
  import { PencilSquare as PencilSquare2 } from "@medusajs/icons";
281
203
  import { Container as Container2, Heading as Heading2, Text as Text2 } from "@medusajs/ui";
282
204
  import { useTranslation as useTranslation2 } from "react-i18next";
283
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
205
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
284
206
  var SellerAddressSection = ({
285
207
  seller
286
208
  }) => {
287
209
  const { t } = useTranslation2();
288
210
  return /* @__PURE__ */ jsxs2(Container2, { className: "divide-y p-0", children: [
289
211
  /* @__PURE__ */ jsxs2("div", { className: "flex items-center justify-between px-6 py-4", children: [
290
- /* @__PURE__ */ jsx3(Heading2, { level: "h2", children: t("addresses.title") }),
291
- /* @__PURE__ */ jsx3(
212
+ /* @__PURE__ */ jsx2(Heading2, { level: "h2", children: t("addresses.title") }),
213
+ /* @__PURE__ */ jsx2(
292
214
  ActionMenu,
293
215
  {
294
216
  groups: [
@@ -297,7 +219,7 @@ var SellerAddressSection = ({
297
219
  {
298
220
  label: t("actions.edit"),
299
221
  to: `/sellers/${seller.id}/edit-address`,
300
- icon: /* @__PURE__ */ jsx3(PencilSquare2, {})
222
+ icon: /* @__PURE__ */ jsx2(PencilSquare2, {})
301
223
  }
302
224
  ]
303
225
  }
@@ -306,38 +228,38 @@ var SellerAddressSection = ({
306
228
  )
307
229
  ] }),
308
230
  /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
309
- /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.address_1") }),
310
- /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", children: seller.address_1 || "-" })
231
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.address_1") }),
232
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: seller.address_1 || "-" })
311
233
  ] }),
312
234
  /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
313
- /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.address_2") }),
314
- /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", children: seller.address_2 || "-" })
235
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.address_2") }),
236
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: seller.address_2 || "-" })
315
237
  ] }),
316
238
  /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
317
- /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.city") }),
318
- /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", children: seller.city || "-" })
239
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.city") }),
240
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: seller.city || "-" })
319
241
  ] }),
320
242
  /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
321
- /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.province") }),
322
- /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", children: seller.province || "-" })
243
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.province") }),
244
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: seller.province || "-" })
323
245
  ] }),
324
246
  /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
325
- /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.postal_code") }),
326
- /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", children: seller.postal_code || "-" })
247
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.postal_code") }),
248
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: seller.postal_code || "-" })
327
249
  ] }),
328
250
  /* @__PURE__ */ jsxs2("div", { className: "text-ui-fg-subtle grid grid-cols-2 items-center px-6 py-4", children: [
329
- /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.country_code") }),
330
- /* @__PURE__ */ jsx3(Text2, { size: "small", leading: "compact", children: seller.country_code || "-" })
251
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", weight: "plus", children: t("sellers.fields.country_code") }),
252
+ /* @__PURE__ */ jsx2(Text2, { size: "small", leading: "compact", children: seller.country_code || "-" })
331
253
  ] })
332
254
  ] });
333
255
  };
334
256
 
335
257
  // src/pages/sellers/seller-details/components/seller-order-section.tsx
336
- import { Container as Container3, Heading as Heading3 } from "@medusajs/ui";
258
+ import { Container as Container3, Heading as Heading3, Text as Text3 } from "@medusajs/ui";
337
259
  import { keepPreviousData } from "@tanstack/react-query";
338
260
  import { useMemo } from "react";
339
261
  import { useTranslation as useTranslation3 } from "react-i18next";
340
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
262
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
341
263
  var PAGE_SIZE = 10;
342
264
  var PREFIX = "selord";
343
265
  var DEFAULT_RELATIONS = "*customer,*items,*sales_channel";
@@ -348,7 +270,7 @@ var SellerOrderSection = ({ sellerId }) => {
348
270
  pageSize: PAGE_SIZE,
349
271
  prefix: PREFIX
350
272
  });
351
- const { orders, count, isLoading, isError, error } = useOrders(
273
+ const { orders, count, isLoading, isError } = useOrders(
352
274
  {
353
275
  ...searchParams,
354
276
  seller_id: sellerId,
@@ -369,11 +291,14 @@ var SellerOrderSection = ({ sellerId }) => {
369
291
  prefix: PREFIX
370
292
  });
371
293
  if (isError) {
372
- throw error;
294
+ return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", children: [
295
+ /* @__PURE__ */ jsx3("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx3(Heading3, { level: "h2", children: t("orders.domain") }) }),
296
+ /* @__PURE__ */ jsx3("div", { className: "flex items-center justify-center px-6 py-12", children: /* @__PURE__ */ jsx3(Text3, { size: "small", className: "text-ui-fg-muted", children: t("general.error") }) })
297
+ ] });
373
298
  }
374
299
  return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", children: [
375
- /* @__PURE__ */ jsx4("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx4(Heading3, { level: "h2", children: t("orders.domain") }) }),
376
- /* @__PURE__ */ jsx4(
300
+ /* @__PURE__ */ jsx3("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx3(Heading3, { level: "h2", children: t("orders.domain") }) }),
301
+ /* @__PURE__ */ jsx3(
377
302
  _DataTable,
378
303
  {
379
304
  columns,
@@ -407,11 +332,11 @@ var useColumns = () => {
407
332
  // src/pages/sellers/seller-details/components/seller-product-section.tsx
408
333
  import { useMemo as useMemo2 } from "react";
409
334
  import { PencilSquare as PencilSquare3, Trash } from "@medusajs/icons";
410
- import { Container as Container4, Heading as Heading4, toast as toast2, usePrompt as usePrompt2 } from "@medusajs/ui";
335
+ import { Container as Container4, Heading as Heading4, Text as Text4, toast as toast2, usePrompt as usePrompt2 } from "@medusajs/ui";
411
336
  import { keepPreviousData as keepPreviousData2 } from "@tanstack/react-query";
412
337
  import { createColumnHelper } from "@tanstack/react-table";
413
338
  import { useTranslation as useTranslation4 } from "react-i18next";
414
- import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
339
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
415
340
  var PAGE_SIZE2 = 10;
416
341
  var PREFIX2 = "selprod";
417
342
  var SellerProductSection = ({ sellerId }) => {
@@ -420,7 +345,7 @@ var SellerProductSection = ({ sellerId }) => {
420
345
  pageSize: PAGE_SIZE2,
421
346
  prefix: PREFIX2
422
347
  });
423
- const { products, count, isLoading, isError, error } = useProducts(
348
+ const { products, count, isLoading, isError } = useProducts(
424
349
  {
425
350
  ...searchParams,
426
351
  seller_id: sellerId
@@ -440,11 +365,14 @@ var SellerProductSection = ({ sellerId }) => {
440
365
  prefix: PREFIX2
441
366
  });
442
367
  if (isError) {
443
- throw error;
368
+ return /* @__PURE__ */ jsxs4(Container4, { className: "divide-y p-0", children: [
369
+ /* @__PURE__ */ jsx4("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx4(Heading4, { level: "h2", children: t("products.domain") }) }),
370
+ /* @__PURE__ */ jsx4("div", { className: "flex items-center justify-center px-6 py-12", children: /* @__PURE__ */ jsx4(Text4, { size: "small", className: "text-ui-fg-muted", children: t("general.error") }) })
371
+ ] });
444
372
  }
445
373
  return /* @__PURE__ */ jsxs4(Container4, { className: "divide-y p-0", children: [
446
- /* @__PURE__ */ jsx5("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx5(Heading4, { level: "h2", children: t("products.domain") }) }),
447
- /* @__PURE__ */ jsx5(
374
+ /* @__PURE__ */ jsx4("div", { className: "flex items-center justify-between px-6 py-4", children: /* @__PURE__ */ jsx4(Heading4, { level: "h2", children: t("products.domain") }) }),
375
+ /* @__PURE__ */ jsx4(
448
376
  _DataTable,
449
377
  {
450
378
  columns,
@@ -508,8 +436,8 @@ var useColumns2 = () => {
508
436
  header: "Product",
509
437
  cell: ({ row }) => {
510
438
  return /* @__PURE__ */ jsxs4("div", { className: "flex h-full w-full max-w-[250px] items-center gap-x-3 overflow-hidden", children: [
511
- /* @__PURE__ */ jsx5("div", { className: "w-fit flex-shrink-0", children: /* @__PURE__ */ jsx5(Thumbnail, { src: row.original.thumbnail }) }),
512
- /* @__PURE__ */ jsx5("span", { title: row.original.title, className: "truncate", children: row.original.title })
439
+ /* @__PURE__ */ jsx4("div", { className: "w-fit flex-shrink-0", children: /* @__PURE__ */ jsx4(Thumbnail, { src: row.original.thumbnail }) }),
440
+ /* @__PURE__ */ jsx4("span", { title: row.original.title, className: "truncate", children: row.original.title })
513
441
  ] });
514
442
  }
515
443
  }),
@@ -532,12 +460,12 @@ var useColumns2 = () => {
532
460
  columnHelper.display({
533
461
  id: "status",
534
462
  header: "Status",
535
- cell: ({ row }) => /* @__PURE__ */ jsx5(ProductStatusCell, { status: row.original.status })
463
+ cell: ({ row }) => /* @__PURE__ */ jsx4(ProductStatusCell, { status: row.original.status })
536
464
  }),
537
465
  columnHelper.display({
538
466
  id: "actions",
539
467
  header: "",
540
- cell: ({ row }) => /* @__PURE__ */ jsx5(
468
+ cell: ({ row }) => /* @__PURE__ */ jsx4(
541
469
  ActionMenu,
542
470
  {
543
471
  groups: [
@@ -546,7 +474,7 @@ var useColumns2 = () => {
546
474
  {
547
475
  label: t("actions.edit"),
548
476
  to: `/products/${row.original.id}/edit`,
549
- icon: /* @__PURE__ */ jsx5(PencilSquare3, {})
477
+ icon: /* @__PURE__ */ jsx4(PencilSquare3, {})
550
478
  }
551
479
  ]
552
480
  },
@@ -555,7 +483,7 @@ var useColumns2 = () => {
555
483
  {
556
484
  label: t("actions.delete"),
557
485
  onClick: () => handleDelete(row.original),
558
- icon: /* @__PURE__ */ jsx5(Trash, {})
486
+ icon: /* @__PURE__ */ jsx4(Trash, {})
559
487
  }
560
488
  ]
561
489
  }
@@ -569,26 +497,26 @@ var useColumns2 = () => {
569
497
  };
570
498
 
571
499
  // src/pages/sellers/seller-details/components/seller-details.tsx
572
- import { Fragment, jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
500
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
573
501
  var Root = ({ children }) => {
574
502
  const { id } = useParams();
575
503
  const { seller, isLoading, isError, error } = useSeller(id);
576
504
  if (isLoading || !seller) {
577
- return /* @__PURE__ */ jsx6(SingleColumnPageSkeleton, { sections: 2, showJSON: true, showMetadata: true });
505
+ return /* @__PURE__ */ jsx5(SingleColumnPageSkeleton, { sections: 2, showJSON: true, showMetadata: true });
578
506
  }
579
507
  if (isError) {
580
508
  throw error;
581
509
  }
582
- return /* @__PURE__ */ jsx6(Fragment, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs5(TwoColumnPage, { data: seller, hasOutlet: true, showJSON: true, showMetadata: true, children: [
510
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx5(TwoColumnPage, { data: seller, hasOutlet: true, showJSON: true, showMetadata: true, "data-testid": "seller-detail-page", children }) : /* @__PURE__ */ jsxs5(TwoColumnPage, { data: seller, hasOutlet: true, showJSON: true, showMetadata: true, "data-testid": "seller-detail-page", children: [
583
511
  /* @__PURE__ */ jsxs5(TwoColumnPage.Main, { children: [
584
- /* @__PURE__ */ jsx6(SellerGeneralSection, { seller }),
585
- /* @__PURE__ */ jsx6(SellerOrderSection, { sellerId: seller.id }),
586
- /* @__PURE__ */ jsx6(SellerProductSection, { sellerId: seller.id })
512
+ /* @__PURE__ */ jsx5(SellerGeneralSection, { seller }),
513
+ /* @__PURE__ */ jsx5(SellerOrderSection, { sellerId: seller.id }),
514
+ /* @__PURE__ */ jsx5(SellerProductSection, { sellerId: seller.id })
587
515
  ] }),
588
- /* @__PURE__ */ jsx6(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx6(SellerAddressSection, { seller }) })
589
- ] }) });
516
+ /* @__PURE__ */ jsx5(TwoColumnPage.Sidebar, { children: /* @__PURE__ */ jsx5(SellerAddressSection, { seller }) })
517
+ ] });
590
518
  };
591
- var SellerDetails = Object.assign(Root, {
519
+ var SellerDetailPage = Object.assign(Root, {
592
520
  Main: TwoColumnPage.Main,
593
521
  Sidebar: TwoColumnPage.Sidebar,
594
522
  MainGeneralSection: SellerGeneralSection,
@@ -596,7 +524,7 @@ var SellerDetails = Object.assign(Root, {
596
524
  MainProductSection: SellerProductSection,
597
525
  SidebarAddressSection: SellerAddressSection
598
526
  });
527
+
599
528
  export {
600
- SellerDetailBreadcrumb as Breadcrumb,
601
- SellerDetails as Component
529
+ SellerDetailPage
602
530
  };
@@ -10,7 +10,7 @@ import {
10
10
  } from "./chunk-ULJ3OMWU.js";
11
11
  import {
12
12
  SingleColumnPage
13
- } from "./chunk-U2UCL2VG.js";
13
+ } from "./chunk-XIZLPYEE.js";
14
14
  import {
15
15
  SingleColumnPageSkeleton
16
16
  } from "./chunk-INNFZYX2.js";
@@ -137,7 +137,7 @@ var ProductTagProductSection = ({
137
137
  };
138
138
 
139
139
  // src/pages/product-tags/product-tag-detail/product-tag-detail.tsx
140
- import { Fragment, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
140
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
141
141
  var Root = ({ children }) => {
142
142
  const { id } = useParams();
143
143
  const initialData = useLoaderData();
@@ -154,16 +154,16 @@ var Root = ({ children }) => {
154
154
  if (isError) {
155
155
  throw error;
156
156
  }
157
- return /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: product_tag, children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs3(Fragment, { children: [
157
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx3(SingleColumnPage, { showJSON: true, showMetadata: true, data: product_tag, children }) : /* @__PURE__ */ jsxs3(SingleColumnPage, { showJSON: true, showMetadata: true, data: product_tag, children: [
158
158
  /* @__PURE__ */ jsx3(ProductTagGeneralSection, { productTag: product_tag }),
159
159
  /* @__PURE__ */ jsx3(ProductTagProductSection, { productTag: product_tag })
160
- ] }) });
160
+ ] });
161
161
  };
162
- var ProductTagDetail = Object.assign(Root, {
162
+ var ProductTagDetailPage = Object.assign(Root, {
163
163
  GeneralSection: ProductTagGeneralSection,
164
164
  ProductSection: ProductTagProductSection
165
165
  });
166
166
 
167
167
  export {
168
- ProductTagDetail
168
+ ProductTagDetailPage
169
169
  };
@@ -1,14 +1,14 @@
1
1
  import {
2
2
  usePromotionTableColumns,
3
3
  usePromotionTableQuery
4
- } from "./chunk-V2DXJ75C.js";
4
+ } from "./chunk-6OA7JZ5E.js";
5
5
  import {
6
6
  _DataTable,
7
7
  useDataTable
8
8
  } from "./chunk-ULJ3OMWU.js";
9
9
  import {
10
10
  SingleColumnPage
11
- } from "./chunk-U2UCL2VG.js";
11
+ } from "./chunk-XIZLPYEE.js";
12
12
  import {
13
13
  ActionMenu
14
14
  } from "./chunk-BDGZ4EQO.js";
@@ -21,19 +21,43 @@ import {
21
21
  } from "./chunk-5PB7KCTF.js";
22
22
 
23
23
  // src/pages/promotions/promotion-list/promotions-list.tsx
24
- import { Children } from "react";
24
+ import { Children as Children2 } from "react";
25
25
 
26
26
  // src/pages/promotions/promotion-list/components/promotion-list-table/promotion-list-table.tsx
27
27
  import { PencilSquare, Trash } from "@medusajs/icons";
28
28
  import { Button, Container, Heading, usePrompt } from "@medusajs/ui";
29
29
  import { createColumnHelper } from "@tanstack/react-table";
30
- import { useMemo } from "react";
30
+ import { Children, useMemo } from "react";
31
31
  import { useTranslation } from "react-i18next";
32
32
  import { Link, Outlet, useLoaderData, useNavigate } from "react-router-dom";
33
33
  import { keepPreviousData } from "@tanstack/react-query";
34
- import { jsx, jsxs } from "react/jsx-runtime";
34
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
35
35
  var PAGE_SIZE = 20;
36
- var PromotionListTable = () => {
36
+ var PromotionListTitle = () => {
37
+ const { t } = useTranslation();
38
+ return /* @__PURE__ */ jsx(Heading, { level: "h2", "data-testid": "promotion-list-table-heading", children: t("promotions.domain") });
39
+ };
40
+ var PromotionListCreateButton = () => {
41
+ const { t } = useTranslation();
42
+ return /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", asChild: true, "data-testid": "promotion-list-table-create-button", children: /* @__PURE__ */ jsx(Link, { to: "create", children: t("actions.create") }) });
43
+ };
44
+ var PromotionListActions = ({ children }) => {
45
+ return /* @__PURE__ */ jsx("div", { className: "flex items-center gap-x-2", children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx(PromotionListCreateButton, {}) });
46
+ };
47
+ var PromotionListHeader = ({ children }) => {
48
+ return /* @__PURE__ */ jsx(
49
+ "div",
50
+ {
51
+ className: "flex items-center justify-between px-6 py-4",
52
+ "data-testid": "promotion-list-table-header",
53
+ children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
54
+ /* @__PURE__ */ jsx(PromotionListTitle, {}),
55
+ /* @__PURE__ */ jsx(PromotionListActions, {})
56
+ ] })
57
+ }
58
+ );
59
+ };
60
+ var PromotionListDataTable = () => {
37
61
  const { t } = useTranslation();
38
62
  const initialData = useLoaderData();
39
63
  const { searchParams, raw } = usePromotionTableQuery({ pageSize: PAGE_SIZE });
@@ -57,31 +81,33 @@ var PromotionListTable = () => {
57
81
  if (isError) {
58
82
  throw error;
59
83
  }
84
+ return /* @__PURE__ */ jsx(
85
+ _DataTable,
86
+ {
87
+ table,
88
+ columns,
89
+ count,
90
+ pageSize: PAGE_SIZE,
91
+ filters,
92
+ search: true,
93
+ pagination: true,
94
+ isLoading,
95
+ queryObject: raw,
96
+ navigateTo: (row) => `${row.original.id}`,
97
+ orderBy: [
98
+ { key: "created_at", label: t("fields.createdAt") },
99
+ { key: "updated_at", label: t("fields.updatedAt") }
100
+ ],
101
+ "data-testid": "promotion-list-table"
102
+ }
103
+ );
104
+ };
105
+ var PromotionListTable = ({ children }) => {
60
106
  return /* @__PURE__ */ jsxs(Container, { className: "divide-y p-0", "data-testid": "promotion-list-table-container", children: [
61
- /* @__PURE__ */ jsxs("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "promotion-list-table-header", children: [
62
- /* @__PURE__ */ jsx(Heading, { level: "h2", "data-testid": "promotion-list-table-heading", children: t("promotions.domain") }),
63
- /* @__PURE__ */ jsx(Button, { size: "small", variant: "secondary", asChild: true, "data-testid": "promotion-list-table-create-button", children: /* @__PURE__ */ jsx(Link, { to: "create", children: t("actions.create") }) })
107
+ Children.count(children) > 0 ? children : /* @__PURE__ */ jsxs(Fragment, { children: [
108
+ /* @__PURE__ */ jsx(PromotionListHeader, {}),
109
+ /* @__PURE__ */ jsx(PromotionListDataTable, {})
64
110
  ] }),
65
- /* @__PURE__ */ jsx(
66
- _DataTable,
67
- {
68
- table,
69
- columns,
70
- count,
71
- pageSize: PAGE_SIZE,
72
- filters,
73
- search: true,
74
- pagination: true,
75
- isLoading,
76
- queryObject: raw,
77
- navigateTo: (row) => `${row.original.id}`,
78
- orderBy: [
79
- { key: "created_at", label: t("fields.createdAt") },
80
- { key: "updated_at", label: t("fields.updatedAt") }
81
- ],
82
- "data-testid": "promotion-list-table"
83
- }
84
- ),
85
111
  /* @__PURE__ */ jsx(Outlet, {})
86
112
  ] });
87
113
  };
@@ -157,12 +183,17 @@ var useColumns = () => {
157
183
  // src/pages/promotions/promotion-list/promotions-list.tsx
158
184
  import { jsx as jsx2 } from "react/jsx-runtime";
159
185
  var Root = ({ children }) => {
160
- return /* @__PURE__ */ jsx2(SingleColumnPage, { children: Children.count(children) > 0 ? children : /* @__PURE__ */ jsx2(PromotionListTable, {}) });
186
+ return /* @__PURE__ */ jsx2(SingleColumnPage, { children: Children2.count(children) > 0 ? children : /* @__PURE__ */ jsx2(PromotionListTable, {}) });
161
187
  };
162
- var PromotionsList = Object.assign(Root, {
163
- Table: PromotionListTable
188
+ var PromotionListPage = Object.assign(Root, {
189
+ Table: PromotionListTable,
190
+ Header: PromotionListHeader,
191
+ HeaderTitle: PromotionListTitle,
192
+ HeaderActions: PromotionListActions,
193
+ HeaderCreateButton: PromotionListCreateButton,
194
+ DataTable: PromotionListDataTable
164
195
  });
165
196
 
166
197
  export {
167
- PromotionsList
198
+ PromotionListPage
168
199
  };