@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,7 +1,6 @@
1
1
  import {
2
2
  SidebarLink
3
3
  } from "./chunk-4GPAS5GW.js";
4
- import "./chunk-U2EI2ZLM.js";
5
4
  import {
6
5
  getFormattedCountry
7
6
  } from "./chunk-W6Y3PPU5.js";
@@ -11,11 +10,9 @@ import {
11
10
  import {
12
11
  ProductSellerSection
13
12
  } from "./chunk-VZEMURY7.js";
14
- import "./chunk-FI474ADU.js";
15
13
  import {
16
14
  SectionRow
17
15
  } from "./chunk-3XPXUIK3.js";
18
- import "./chunk-JRTZWK77.js";
19
16
  import {
20
17
  TwoColumnPage
21
18
  } from "./chunk-U2UCL2VG.js";
@@ -34,45 +31,13 @@ import {
34
31
  import {
35
32
  ActionMenu
36
33
  } from "./chunk-BDGZ4EQO.js";
37
- import "./chunk-LAVHRER2.js";
38
- import "./chunk-Y7QKP6QU.js";
39
34
  import {
40
35
  useQueryParams
41
36
  } from "./chunk-THHRRYRS.js";
42
- import "./chunk-UZWFZMOX.js";
43
- import "./chunk-XQNVC4Q7.js";
44
- import "./chunk-XM6GCWNF.js";
45
- import "./chunk-ODBDAABQ.js";
46
- import "./chunk-CDQJKJMX.js";
47
- import "./chunk-JLATVDLM.js";
48
- import "./chunk-GPRBBA7S.js";
49
- import "./chunk-E7ZBQO6E.js";
50
- import "./chunk-XGHM75N2.js";
51
- import "./chunk-U2GCSKW3.js";
52
- import "./chunk-RTAIDSDS.js";
53
- import "./chunk-LW3UWYZU.js";
54
- import "./chunk-A4X5VP3G.js";
55
- import "./chunk-NNZP4PYP.js";
56
- import "./chunk-GF4QHVX3.js";
57
- import "./chunk-JOQ3RTF5.js";
58
- import "./chunk-V534K7G4.js";
59
- import "./chunk-A5XOYSDC.js";
60
- import "./chunk-TQI3DOQ5.js";
61
- import "./chunk-5PB7KCTF.js";
62
- import "./chunk-YOIARITB.js";
63
- import "./chunk-W7G64ULL.js";
64
- import "./chunk-6C7TCU42.js";
65
- import "./chunk-4YF3GAKE.js";
66
- import "./chunk-M3I52H3M.js";
67
37
  import {
68
38
  useSalesChannels
69
39
  } from "./chunk-LORVU5II.js";
70
- import "./chunk-36ORDF7W.js";
71
- import "./chunk-QSM56ZOP.js";
72
- import "./chunk-MIHEJ6Y6.js";
73
- import "./chunk-3VZV6SJQ.js";
74
40
  import {
75
- productsQueryKeys,
76
41
  useDeleteProduct,
77
42
  useDeleteProductOption,
78
43
  useDeleteVariantLazy,
@@ -80,56 +45,16 @@ import {
80
45
  useProductVariants,
81
46
  useUpdateProduct
82
47
  } from "./chunk-K357FGGP.js";
83
- import {
84
- queryClient
85
- } from "./chunk-RHKRREUU.js";
86
- import "./chunk-ZA2KFUFR.js";
87
- import {
88
- sdk
89
- } from "./chunk-ZYNBKBY3.js";
90
- import "./chunk-NBMM2TZK.js";
91
-
92
- // src/pages/products/product-detail/breadcrumb.tsx
93
- import { jsx } from "react/jsx-runtime";
94
- var ProductDetailBreadcrumb = (props) => {
95
- const { id } = props.params || {};
96
- const { product } = useProduct(
97
- id,
98
- {},
99
- {
100
- initialData: props.data,
101
- enabled: Boolean(id)
102
- }
103
- );
104
- if (!product) {
105
- return null;
106
- }
107
- return /* @__PURE__ */ jsx("span", { children: product.title });
108
- };
109
-
110
- // src/pages/products/product-detail/loader.ts
111
- var productDetailQuery = (id) => ({
112
- queryKey: productsQueryKeys.detail(id),
113
- queryFn: async () => sdk.admin.products.$id.query({ $id: id, fields: "*seller" })
114
- });
115
- var productLoader = async ({ params }) => {
116
- const id = params.id;
117
- const query = productDetailQuery(id);
118
- const response = await queryClient.ensureQueryData({
119
- ...query,
120
- staleTime: 9e4
121
- });
122
- return response;
123
- };
124
48
 
125
49
  // src/pages/products/product-detail/product-detail.tsx
50
+ import { Children } from "react";
126
51
  import { useLoaderData, useParams } from "react-router-dom";
127
52
 
128
53
  // src/pages/products/product-detail/components/product-attribute-section/product-attribute-section.tsx
129
54
  import { PencilSquare } from "@medusajs/icons";
130
55
  import { Container, Heading } from "@medusajs/ui";
131
56
  import { useTranslation } from "react-i18next";
132
- import { jsx as jsx2, jsxs } from "react/jsx-runtime";
57
+ import { jsx, jsxs } from "react/jsx-runtime";
133
58
  var ProductAttributeSection = ({
134
59
  product
135
60
  }) => {
@@ -141,8 +66,8 @@ var ProductAttributeSection = ({
141
66
  className: "flex items-center justify-between px-6 py-4",
142
67
  "data-testid": "product-attribute-header",
143
68
  children: [
144
- /* @__PURE__ */ jsx2(Heading, { level: "h2", "data-testid": "product-attribute-title", children: t("products.attributes") }),
145
- /* @__PURE__ */ jsx2(
69
+ /* @__PURE__ */ jsx(Heading, { level: "h2", "data-testid": "product-attribute-title", children: t("products.attributes") }),
70
+ /* @__PURE__ */ jsx(
146
71
  ActionMenu,
147
72
  {
148
73
  groups: [
@@ -151,7 +76,7 @@ var ProductAttributeSection = ({
151
76
  {
152
77
  label: t("actions.edit"),
153
78
  to: "attributes",
154
- icon: /* @__PURE__ */ jsx2(PencilSquare, {})
79
+ icon: /* @__PURE__ */ jsx(PencilSquare, {})
155
80
  }
156
81
  ]
157
82
  }
@@ -162,7 +87,7 @@ var ProductAttributeSection = ({
162
87
  ]
163
88
  }
164
89
  ),
165
- /* @__PURE__ */ jsx2(
90
+ /* @__PURE__ */ jsx(
166
91
  SectionRow,
167
92
  {
168
93
  title: t("fields.height"),
@@ -170,7 +95,7 @@ var ProductAttributeSection = ({
170
95
  "data-testid": "product-height-row"
171
96
  }
172
97
  ),
173
- /* @__PURE__ */ jsx2(
98
+ /* @__PURE__ */ jsx(
174
99
  SectionRow,
175
100
  {
176
101
  title: t("fields.width"),
@@ -178,7 +103,7 @@ var ProductAttributeSection = ({
178
103
  "data-testid": "product-width-row"
179
104
  }
180
105
  ),
181
- /* @__PURE__ */ jsx2(
106
+ /* @__PURE__ */ jsx(
182
107
  SectionRow,
183
108
  {
184
109
  title: t("fields.length"),
@@ -186,7 +111,7 @@ var ProductAttributeSection = ({
186
111
  "data-testid": "product-length-row"
187
112
  }
188
113
  ),
189
- /* @__PURE__ */ jsx2(
114
+ /* @__PURE__ */ jsx(
190
115
  SectionRow,
191
116
  {
192
117
  title: t("fields.weight"),
@@ -194,7 +119,7 @@ var ProductAttributeSection = ({
194
119
  "data-testid": "product-weight-row"
195
120
  }
196
121
  ),
197
- /* @__PURE__ */ jsx2(
122
+ /* @__PURE__ */ jsx(
198
123
  SectionRow,
199
124
  {
200
125
  title: t("fields.midCode"),
@@ -202,7 +127,7 @@ var ProductAttributeSection = ({
202
127
  "data-testid": "product-mid-code-row"
203
128
  }
204
129
  ),
205
- /* @__PURE__ */ jsx2(
130
+ /* @__PURE__ */ jsx(
206
131
  SectionRow,
207
132
  {
208
133
  title: t("fields.hsCode"),
@@ -210,7 +135,7 @@ var ProductAttributeSection = ({
210
135
  "data-testid": "product-hs-code-row"
211
136
  }
212
137
  ),
213
- /* @__PURE__ */ jsx2(
138
+ /* @__PURE__ */ jsx(
214
139
  SectionRow,
215
140
  {
216
141
  title: t("fields.countryOfOrigin"),
@@ -226,7 +151,7 @@ import { PencilSquare as PencilSquare2, Trash } from "@medusajs/icons";
226
151
  import { Container as Container2, Heading as Heading2, StatusBadge, usePrompt } from "@medusajs/ui";
227
152
  import { useTranslation as useTranslation2 } from "react-i18next";
228
153
  import { useNavigate } from "react-router-dom";
229
- import { jsx as jsx3, jsxs as jsxs2 } from "react/jsx-runtime";
154
+ import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
230
155
  var productStatusColor = (status) => {
231
156
  switch (status) {
232
157
  case "draft":
@@ -273,14 +198,14 @@ var ProductGeneralSection = ({
273
198
  className: "flex items-center justify-between px-6 py-4",
274
199
  "data-testid": "product-general-header",
275
200
  children: [
276
- /* @__PURE__ */ jsx3(Heading2, { "data-testid": "product-general-title", children: product.title }),
201
+ /* @__PURE__ */ jsx2(Heading2, { "data-testid": "product-general-title", children: product.title }),
277
202
  /* @__PURE__ */ jsxs2(
278
203
  "div",
279
204
  {
280
205
  className: "flex items-center gap-x-4",
281
206
  "data-testid": "product-general-actions",
282
207
  children: [
283
- /* @__PURE__ */ jsx3(
208
+ /* @__PURE__ */ jsx2(
284
209
  StatusBadge,
285
210
  {
286
211
  color: productStatusColor(product.status),
@@ -288,7 +213,7 @@ var ProductGeneralSection = ({
288
213
  children: t(`products.productStatus.${product.status}`)
289
214
  }
290
215
  ),
291
- /* @__PURE__ */ jsx3(
216
+ /* @__PURE__ */ jsx2(
292
217
  ActionMenu,
293
218
  {
294
219
  groups: [
@@ -297,7 +222,7 @@ var ProductGeneralSection = ({
297
222
  {
298
223
  label: t("actions.edit"),
299
224
  to: "edit",
300
- icon: /* @__PURE__ */ jsx3(PencilSquare2, {})
225
+ icon: /* @__PURE__ */ jsx2(PencilSquare2, {})
301
226
  }
302
227
  ]
303
228
  },
@@ -306,7 +231,7 @@ var ProductGeneralSection = ({
306
231
  {
307
232
  label: t("actions.delete"),
308
233
  onClick: handleDelete,
309
- icon: /* @__PURE__ */ jsx3(Trash, {})
234
+ icon: /* @__PURE__ */ jsx2(Trash, {})
310
235
  }
311
236
  ]
312
237
  }
@@ -320,7 +245,7 @@ var ProductGeneralSection = ({
320
245
  ]
321
246
  }
322
247
  ),
323
- /* @__PURE__ */ jsx3(
248
+ /* @__PURE__ */ jsx2(
324
249
  SectionRow,
325
250
  {
326
251
  title: t("fields.description"),
@@ -328,7 +253,7 @@ var ProductGeneralSection = ({
328
253
  "data-testid": "product-description-row"
329
254
  }
330
255
  ),
331
- /* @__PURE__ */ jsx3(
256
+ /* @__PURE__ */ jsx2(
332
257
  SectionRow,
333
258
  {
334
259
  title: t("fields.subtitle"),
@@ -336,7 +261,7 @@ var ProductGeneralSection = ({
336
261
  "data-testid": "product-subtitle-row"
337
262
  }
338
263
  ),
339
- /* @__PURE__ */ jsx3(
264
+ /* @__PURE__ */ jsx2(
340
265
  SectionRow,
341
266
  {
342
267
  title: t("fields.handle"),
@@ -344,7 +269,7 @@ var ProductGeneralSection = ({
344
269
  "data-testid": "product-handle-row"
345
270
  }
346
271
  ),
347
- /* @__PURE__ */ jsx3(
272
+ /* @__PURE__ */ jsx2(
348
273
  SectionRow,
349
274
  {
350
275
  title: t("fields.discountable"),
@@ -371,8 +296,10 @@ import {
371
296
  import { useState } from "react";
372
297
  import { useTranslation as useTranslation3 } from "react-i18next";
373
298
  import { Link } from "react-router-dom";
374
- import { jsx as jsx4, jsxs as jsxs3 } from "react/jsx-runtime";
375
- var ProductMediaSection = ({ product }) => {
299
+ import { jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
300
+ var ProductMediaSection = ({
301
+ product
302
+ }) => {
376
303
  const { t } = useTranslation3();
377
304
  const prompt = usePrompt2();
378
305
  const [selection, setSelection] = useState({});
@@ -421,8 +348,8 @@ var ProductMediaSection = ({ product }) => {
421
348
  };
422
349
  return /* @__PURE__ */ jsxs3(Container3, { className: "divide-y p-0", "data-testid": "product-media-section", children: [
423
350
  /* @__PURE__ */ jsxs3("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "product-media-header", children: [
424
- /* @__PURE__ */ jsx4(Heading3, { level: "h2", "data-testid": "product-media-title", children: t("products.media.label") }),
425
- /* @__PURE__ */ jsx4(
351
+ /* @__PURE__ */ jsx3(Heading3, { level: "h2", "data-testid": "product-media-title", children: t("products.media.label") }),
352
+ /* @__PURE__ */ jsx3(
426
353
  ActionMenu,
427
354
  {
428
355
  groups: [
@@ -431,7 +358,7 @@ var ProductMediaSection = ({ product }) => {
431
358
  {
432
359
  label: t("actions.edit"),
433
360
  to: "media?view=edit",
434
- icon: /* @__PURE__ */ jsx4(PencilSquare3, {})
361
+ icon: /* @__PURE__ */ jsx3(PencilSquare3, {})
435
362
  }
436
363
  ]
437
364
  }
@@ -440,7 +367,7 @@ var ProductMediaSection = ({ product }) => {
440
367
  }
441
368
  )
442
369
  ] }),
443
- media.length > 0 ? /* @__PURE__ */ jsx4("div", { className: "grid grid-cols-[repeat(auto-fill,minmax(96px,1fr))] gap-4 px-6 py-4", "data-testid": "product-media-grid", children: media.map((i, index) => {
370
+ media.length > 0 ? /* @__PURE__ */ jsx3("div", { className: "grid grid-cols-[repeat(auto-fill,minmax(96px,1fr))] gap-4 px-6 py-4", "data-testid": "product-media-grid", children: media.map((i, index) => {
444
371
  const isSelected = selection[i.id];
445
372
  return /* @__PURE__ */ jsxs3(
446
373
  "div",
@@ -448,7 +375,7 @@ var ProductMediaSection = ({ product }) => {
448
375
  className: "shadow-elevation-card-rest hover:shadow-elevation-card-hover transition-fg group relative aspect-square size-full cursor-pointer overflow-hidden rounded-[8px]",
449
376
  "data-testid": `product-media-item-${i.id}`,
450
377
  children: [
451
- /* @__PURE__ */ jsx4(
378
+ /* @__PURE__ */ jsx3(
452
379
  "div",
453
380
  {
454
381
  className: clx(
@@ -458,7 +385,7 @@ var ProductMediaSection = ({ product }) => {
458
385
  }
459
386
  ),
460
387
  "data-testid": `product-media-checkbox-container-${i.id}`,
461
- children: /* @__PURE__ */ jsx4(
388
+ children: /* @__PURE__ */ jsx3(
462
389
  Checkbox,
463
390
  {
464
391
  checked: selection[i.id] || false,
@@ -468,8 +395,8 @@ var ProductMediaSection = ({ product }) => {
468
395
  )
469
396
  }
470
397
  ),
471
- i.isThumbnail && /* @__PURE__ */ jsx4("div", { className: "absolute left-2 top-2", "data-testid": `product-media-thumbnail-badge-${i.id}`, children: /* @__PURE__ */ jsx4(Tooltip, { content: t("fields.thumbnail"), children: /* @__PURE__ */ jsx4(ThumbnailBadge, {}) }) }),
472
- /* @__PURE__ */ jsx4(Link, { to: `media`, state: { curr: index }, "data-testid": `product-media-link-${i.id}`, children: /* @__PURE__ */ jsx4(
398
+ i.isThumbnail && /* @__PURE__ */ jsx3("div", { className: "absolute left-2 top-2", "data-testid": `product-media-thumbnail-badge-${i.id}`, children: /* @__PURE__ */ jsx3(Tooltip, { content: t("fields.thumbnail"), children: /* @__PURE__ */ jsx3(ThumbnailBadge, {}) }) }),
399
+ /* @__PURE__ */ jsx3(Link, { to: `media`, state: { curr: index }, "data-testid": `product-media-link-${i.id}`, children: /* @__PURE__ */ jsx3(
473
400
  "img",
474
401
  {
475
402
  src: i.url,
@@ -484,7 +411,7 @@ var ProductMediaSection = ({ product }) => {
484
411
  );
485
412
  }) }) : /* @__PURE__ */ jsxs3("div", { className: "flex flex-col items-center gap-y-4 pb-8 pt-6", "data-testid": "product-media-empty-state", children: [
486
413
  /* @__PURE__ */ jsxs3("div", { className: "flex flex-col items-center", children: [
487
- /* @__PURE__ */ jsx4(
414
+ /* @__PURE__ */ jsx3(
488
415
  Text,
489
416
  {
490
417
  size: "small",
@@ -495,16 +422,16 @@ var ProductMediaSection = ({ product }) => {
495
422
  children: t("products.media.emptyState.header")
496
423
  }
497
424
  ),
498
- /* @__PURE__ */ jsx4(Text, { size: "small", className: "text-ui-fg-muted", "data-testid": "product-media-empty-state-description", children: t("products.media.emptyState.description") })
425
+ /* @__PURE__ */ jsx3(Text, { size: "small", className: "text-ui-fg-muted", "data-testid": "product-media-empty-state-description", children: t("products.media.emptyState.description") })
499
426
  ] }),
500
- /* @__PURE__ */ jsx4(Button, { size: "small", variant: "secondary", asChild: true, "data-testid": "product-media-empty-state-button", children: /* @__PURE__ */ jsx4(Link, { to: "media?view=edit", "data-testid": "product-media-empty-state-link", children: t("products.media.emptyState.action") }) })
427
+ /* @__PURE__ */ jsx3(Button, { size: "small", variant: "secondary", asChild: true, "data-testid": "product-media-empty-state-button", children: /* @__PURE__ */ jsx3(Link, { to: "media?view=edit", "data-testid": "product-media-empty-state-link", children: t("products.media.emptyState.action") }) })
501
428
  ] }),
502
- /* @__PURE__ */ jsx4(CommandBar, { open: !!Object.keys(selection).length, "data-testid": "product-media-command-bar", children: /* @__PURE__ */ jsxs3(CommandBar.Bar, { "data-testid": "product-media-command-bar-bar", children: [
503
- /* @__PURE__ */ jsx4(CommandBar.Value, { "data-testid": "product-media-command-bar-value", children: t("general.countSelected", {
429
+ /* @__PURE__ */ jsx3(CommandBar, { open: !!Object.keys(selection).length, "data-testid": "product-media-command-bar", children: /* @__PURE__ */ jsxs3(CommandBar.Bar, { "data-testid": "product-media-command-bar-bar", children: [
430
+ /* @__PURE__ */ jsx3(CommandBar.Value, { "data-testid": "product-media-command-bar-value", children: t("general.countSelected", {
504
431
  count: Object.keys(selection).length
505
432
  }) }),
506
- /* @__PURE__ */ jsx4(CommandBar.Seperator, { "data-testid": "product-media-command-bar-separator" }),
507
- /* @__PURE__ */ jsx4(
433
+ /* @__PURE__ */ jsx3(CommandBar.Seperator, { "data-testid": "product-media-command-bar-separator" }),
434
+ /* @__PURE__ */ jsx3(
508
435
  CommandBar.Command,
509
436
  {
510
437
  action: handleDelete,
@@ -537,13 +464,13 @@ var getMedia = (product) => {
537
464
  import { PencilSquare as PencilSquare4, Plus, Trash as Trash2 } from "@medusajs/icons";
538
465
  import { Badge, Container as Container4, Heading as Heading4, usePrompt as usePrompt3 } from "@medusajs/ui";
539
466
  import { useTranslation as useTranslation4 } from "react-i18next";
540
- import { jsx as jsx5, jsxs as jsxs4 } from "react/jsx-runtime";
467
+ import { jsx as jsx4, jsxs as jsxs4 } from "react/jsx-runtime";
541
468
  var OptionActions = ({
542
- product,
469
+ productId,
543
470
  option
544
471
  }) => {
545
472
  const { t } = useTranslation4();
546
- const { mutateAsync } = useDeleteProductOption(product.id, option.id);
473
+ const { mutateAsync } = useDeleteProductOption(productId, option.id);
547
474
  const prompt = usePrompt3();
548
475
  const handleDelete = async () => {
549
476
  const res = await prompt({
@@ -559,7 +486,7 @@ var OptionActions = ({
559
486
  }
560
487
  await mutateAsync();
561
488
  };
562
- return /* @__PURE__ */ jsx5(
489
+ return /* @__PURE__ */ jsx4(
563
490
  ActionMenu,
564
491
  {
565
492
  groups: [
@@ -568,7 +495,7 @@ var OptionActions = ({
568
495
  {
569
496
  label: t("actions.edit"),
570
497
  to: `options/${option.id}/edit`,
571
- icon: /* @__PURE__ */ jsx5(PencilSquare4, {})
498
+ icon: /* @__PURE__ */ jsx4(PencilSquare4, {})
572
499
  }
573
500
  ]
574
501
  },
@@ -577,7 +504,7 @@ var OptionActions = ({
577
504
  {
578
505
  label: t("actions.delete"),
579
506
  onClick: handleDelete,
580
- icon: /* @__PURE__ */ jsx5(Trash2, {})
507
+ icon: /* @__PURE__ */ jsx4(Trash2, {})
581
508
  }
582
509
  ]
583
510
  }
@@ -592,8 +519,8 @@ var ProductOptionSection = ({
592
519
  const { t } = useTranslation4();
593
520
  return /* @__PURE__ */ jsxs4(Container4, { className: "divide-y p-0", "data-testid": "product-option-section", children: [
594
521
  /* @__PURE__ */ jsxs4("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "product-option-header", children: [
595
- /* @__PURE__ */ jsx5(Heading4, { level: "h2", "data-testid": "product-option-title", children: t("products.options.header") }),
596
- /* @__PURE__ */ jsx5(
522
+ /* @__PURE__ */ jsx4(Heading4, { level: "h2", "data-testid": "product-option-title", children: t("products.options.header") }),
523
+ /* @__PURE__ */ jsx4(
597
524
  ActionMenu,
598
525
  {
599
526
  groups: [
@@ -602,7 +529,7 @@ var ProductOptionSection = ({
602
529
  {
603
530
  label: t("actions.create"),
604
531
  to: "options/create",
605
- icon: /* @__PURE__ */ jsx5(Plus, {})
532
+ icon: /* @__PURE__ */ jsx4(Plus, {})
606
533
  }
607
534
  ]
608
535
  }
@@ -612,12 +539,12 @@ var ProductOptionSection = ({
612
539
  )
613
540
  ] }),
614
541
  product.options?.map((option) => {
615
- return /* @__PURE__ */ jsx5(
542
+ return /* @__PURE__ */ jsx4(
616
543
  SectionRow,
617
544
  {
618
545
  title: option.title,
619
546
  value: option.values?.map((val) => {
620
- return /* @__PURE__ */ jsx5(
547
+ return /* @__PURE__ */ jsx4(
621
548
  Badge,
622
549
  {
623
550
  size: "2xsmall",
@@ -628,7 +555,7 @@ var ProductOptionSection = ({
628
555
  val.value
629
556
  );
630
557
  }),
631
- actions: /* @__PURE__ */ jsx5(OptionActions, { product, option }),
558
+ actions: /* @__PURE__ */ jsx4(OptionActions, { productId: product.id, option }),
632
559
  "data-testid": `product-option-row-${option.id}`
633
560
  },
634
561
  option.id
@@ -642,7 +569,7 @@ import { PencilSquare as PencilSquare5 } from "@medusajs/icons";
642
569
  import { Badge as Badge2, Container as Container5, Heading as Heading5, Tooltip as Tooltip2 } from "@medusajs/ui";
643
570
  import { useTranslation as useTranslation5 } from "react-i18next";
644
571
  import { Link as Link2 } from "react-router-dom";
645
- import { jsx as jsx6, jsxs as jsxs5 } from "react/jsx-runtime";
572
+ import { jsx as jsx5, jsxs as jsxs5 } from "react/jsx-runtime";
646
573
  var ProductOrganizationSection = ({
647
574
  product
648
575
  }) => {
@@ -659,8 +586,8 @@ var ProductOrganizationSection = ({
659
586
  className: "flex items-center justify-between px-6 py-4",
660
587
  "data-testid": "product-organization-header",
661
588
  children: [
662
- /* @__PURE__ */ jsx6(Heading5, { level: "h2", "data-testid": "product-organization-title", children: t("products.organization.header") }),
663
- /* @__PURE__ */ jsx6(
589
+ /* @__PURE__ */ jsx5(Heading5, { level: "h2", "data-testid": "product-organization-title", children: t("products.organization.header") }),
590
+ /* @__PURE__ */ jsx5(
664
591
  ActionMenu,
665
592
  {
666
593
  groups: [
@@ -669,7 +596,7 @@ var ProductOrganizationSection = ({
669
596
  {
670
597
  label: t("actions.edit"),
671
598
  to: "organization",
672
- icon: /* @__PURE__ */ jsx6(PencilSquare5, {})
599
+ icon: /* @__PURE__ */ jsx5(PencilSquare5, {})
673
600
  }
674
601
  ]
675
602
  }
@@ -680,11 +607,11 @@ var ProductOrganizationSection = ({
680
607
  ]
681
608
  }
682
609
  ),
683
- /* @__PURE__ */ jsx6(
610
+ /* @__PURE__ */ jsx5(
684
611
  SectionRow,
685
612
  {
686
613
  title: t("fields.tags"),
687
- value: product.tags?.length ? product.tags.map((tag) => /* @__PURE__ */ jsx6(
614
+ value: product.tags?.length ? product.tags.map((tag) => /* @__PURE__ */ jsx5(
688
615
  OrganizationTag,
689
616
  {
690
617
  label: tag.value,
@@ -695,11 +622,11 @@ var ProductOrganizationSection = ({
695
622
  "data-testid": "product-tags-row"
696
623
  }
697
624
  ),
698
- /* @__PURE__ */ jsx6(
625
+ /* @__PURE__ */ jsx5(
699
626
  SectionRow,
700
627
  {
701
628
  title: t("fields.type"),
702
- value: product.type ? /* @__PURE__ */ jsx6(
629
+ value: product.type ? /* @__PURE__ */ jsx5(
703
630
  OrganizationTag,
704
631
  {
705
632
  label: product.type.value,
@@ -709,11 +636,11 @@ var ProductOrganizationSection = ({
709
636
  "data-testid": "product-type-row"
710
637
  }
711
638
  ),
712
- /* @__PURE__ */ jsx6(
639
+ /* @__PURE__ */ jsx5(
713
640
  SectionRow,
714
641
  {
715
642
  title: t("fields.collection"),
716
- value: product.collection ? /* @__PURE__ */ jsx6(
643
+ value: product.collection ? /* @__PURE__ */ jsx5(
717
644
  OrganizationTag,
718
645
  {
719
646
  label: product.collection.title,
@@ -723,11 +650,11 @@ var ProductOrganizationSection = ({
723
650
  "data-testid": "product-collection-row"
724
651
  }
725
652
  ),
726
- /* @__PURE__ */ jsx6(
653
+ /* @__PURE__ */ jsx5(
727
654
  SectionRow,
728
655
  {
729
656
  title: t("fields.categories"),
730
- value: product.categories?.length ? product.categories.map((pcat) => /* @__PURE__ */ jsx6(
657
+ value: product.categories?.length ? product.categories.map((pcat) => /* @__PURE__ */ jsx5(
731
658
  OrganizationTag,
732
659
  {
733
660
  label: pcat.name,
@@ -743,7 +670,7 @@ var ProductOrganizationSection = ({
743
670
  );
744
671
  };
745
672
  var OrganizationTag = ({ label, to }) => {
746
- return /* @__PURE__ */ jsx6(Tooltip2, { content: label, children: /* @__PURE__ */ jsx6(Badge2, { size: "2xsmall", className: "block w-fit truncate", asChild: true, children: /* @__PURE__ */ jsx6(
673
+ return /* @__PURE__ */ jsx5(Tooltip2, { content: label, children: /* @__PURE__ */ jsx5(Badge2, { size: "2xsmall", className: "block w-fit truncate", asChild: true, children: /* @__PURE__ */ jsx5(
747
674
  Link2,
748
675
  {
749
676
  to,
@@ -757,7 +684,7 @@ var OrganizationTag = ({ label, to }) => {
757
684
  import { Channels, PencilSquare as PencilSquare6 } from "@medusajs/icons";
758
685
  import { Container as Container6, Heading as Heading6, Text as Text2, Tooltip as Tooltip3 } from "@medusajs/ui";
759
686
  import { Trans, useTranslation as useTranslation6 } from "react-i18next";
760
- import { jsx as jsx7, jsxs as jsxs6 } from "react/jsx-runtime";
687
+ import { jsx as jsx6, jsxs as jsxs6 } from "react/jsx-runtime";
761
688
  var ProductSalesChannelSection = ({
762
689
  product
763
690
  }) => {
@@ -771,8 +698,8 @@ var ProductSalesChannelSection = ({
771
698
  const restChannels = availableInSalesChannels.slice(3);
772
699
  return /* @__PURE__ */ jsxs6(Container6, { className: "flex flex-col gap-y-4 px-6 py-4", "data-testid": "product-sales-channel-section", children: [
773
700
  /* @__PURE__ */ jsxs6("div", { className: "flex items-center justify-between", "data-testid": "product-sales-channel-header", children: [
774
- /* @__PURE__ */ jsx7(Heading6, { level: "h2", "data-testid": "product-sales-channel-title", children: t("fields.sales_channels") }),
775
- /* @__PURE__ */ jsx7(
701
+ /* @__PURE__ */ jsx6(Heading6, { level: "h2", "data-testid": "product-sales-channel-title", children: t("fields.sales_channels") }),
702
+ /* @__PURE__ */ jsx6(
776
703
  ActionMenu,
777
704
  {
778
705
  groups: [
@@ -781,7 +708,7 @@ var ProductSalesChannelSection = ({
781
708
  {
782
709
  label: t("actions.edit"),
783
710
  to: "sales-channels",
784
- icon: /* @__PURE__ */ jsx7(PencilSquare6, {})
711
+ icon: /* @__PURE__ */ jsx6(PencilSquare6, {})
785
712
  }
786
713
  ]
787
714
  }
@@ -791,15 +718,15 @@ var ProductSalesChannelSection = ({
791
718
  )
792
719
  ] }),
793
720
  /* @__PURE__ */ jsxs6("div", { className: "grid grid-cols-[28px_1fr] items-center gap-x-3", "data-testid": "product-sales-channels-content", children: [
794
- /* @__PURE__ */ jsx7("div", { className: "bg-ui-bg-base shadow-borders-base flex size-7 items-center justify-center rounded-md", "data-testid": "product-sales-channels-icon-container", children: /* @__PURE__ */ jsx7("div", { className: "bg-ui-bg-component flex size-6 items-center justify-center rounded-[4px]", children: /* @__PURE__ */ jsx7(Channels, { className: "text-ui-fg-subtle", "data-testid": "product-sales-channels-icon" }) }) }),
721
+ /* @__PURE__ */ jsx6("div", { className: "bg-ui-bg-base shadow-borders-base flex size-7 items-center justify-center rounded-md", "data-testid": "product-sales-channels-icon-container", children: /* @__PURE__ */ jsx6("div", { className: "bg-ui-bg-component flex size-6 items-center justify-center rounded-[4px]", children: /* @__PURE__ */ jsx6(Channels, { className: "text-ui-fg-subtle", "data-testid": "product-sales-channels-icon" }) }) }),
795
722
  availableInSalesChannels.length > 0 ? /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-x-1", "data-testid": "product-sales-channels-list", children: [
796
- /* @__PURE__ */ jsx7(Text2, { size: "small", leading: "compact", "data-testid": "product-sales-channels-names", children: firstChannels.map((sc) => sc.name).join(", ") }),
797
- restChannels.length > 0 && /* @__PURE__ */ jsx7(
723
+ /* @__PURE__ */ jsx6(Text2, { size: "small", leading: "compact", "data-testid": "product-sales-channels-names", children: firstChannels.map((sc) => sc.name).join(", ") }),
724
+ restChannels.length > 0 && /* @__PURE__ */ jsx6(
798
725
  Tooltip3,
799
726
  {
800
- content: /* @__PURE__ */ jsx7("ul", { children: restChannels.map((sc) => /* @__PURE__ */ jsx7("li", { children: sc.name }, sc.id)) }),
727
+ content: /* @__PURE__ */ jsx6("ul", { children: restChannels.map((sc) => /* @__PURE__ */ jsx6("li", { children: sc.name }, sc.id)) }),
801
728
  "data-testid": "product-sales-channels-more-tooltip",
802
- children: /* @__PURE__ */ jsx7(
729
+ children: /* @__PURE__ */ jsx6(
803
730
  Text2,
804
731
  {
805
732
  size: "small",
@@ -811,9 +738,9 @@ var ProductSalesChannelSection = ({
811
738
  )
812
739
  }
813
740
  )
814
- ] }) : /* @__PURE__ */ jsx7(Text2, { size: "small", leading: "compact", className: "text-ui-fg-subtle", "data-testid": "product-sales-channels-empty", children: t("products.noSalesChannels") })
741
+ ] }) : /* @__PURE__ */ jsx6(Text2, { size: "small", leading: "compact", className: "text-ui-fg-subtle", "data-testid": "product-sales-channels-empty", children: t("products.noSalesChannels") })
815
742
  ] }),
816
- /* @__PURE__ */ jsx7("div", { "data-testid": "product-sales-channels-stats", children: /* @__PURE__ */ jsx7(Text2, { className: "text-ui-fg-subtle", size: "small", leading: "compact", "data-testid": "product-sales-channels-stats-text", children: /* @__PURE__ */ jsx7(
743
+ /* @__PURE__ */ jsx6("div", { "data-testid": "product-sales-channels-stats", children: /* @__PURE__ */ jsx6(Text2, { className: "text-ui-fg-subtle", size: "small", leading: "compact", "data-testid": "product-sales-channels-stats-text", children: /* @__PURE__ */ jsx6(
817
744
  Trans,
818
745
  {
819
746
  i18nKey: "sales_channels.availableIn",
@@ -822,7 +749,7 @@ var ProductSalesChannelSection = ({
822
749
  y: count ?? 0
823
750
  },
824
751
  components: [
825
- /* @__PURE__ */ jsx7(
752
+ /* @__PURE__ */ jsx6(
826
753
  "span",
827
754
  {
828
755
  className: "text-ui-fg-base txt-compact-medium-plus",
@@ -830,7 +757,7 @@ var ProductSalesChannelSection = ({
830
757
  },
831
758
  "x"
832
759
  ),
833
- /* @__PURE__ */ jsx7(
760
+ /* @__PURE__ */ jsx6(
834
761
  "span",
835
762
  {
836
763
  className: "text-ui-fg-base txt-compact-medium-plus",
@@ -848,7 +775,7 @@ var ProductSalesChannelSection = ({
848
775
  import { PencilSquare as PencilSquare7, ShoppingBag } from "@medusajs/icons";
849
776
  import { Container as Container7, Heading as Heading7 } from "@medusajs/ui";
850
777
  import { useTranslation as useTranslation7 } from "react-i18next";
851
- import { jsx as jsx8, jsxs as jsxs7 } from "react/jsx-runtime";
778
+ import { jsx as jsx7, jsxs as jsxs7 } from "react/jsx-runtime";
852
779
  var ProductShippingProfileSection = ({
853
780
  product
854
781
  }) => {
@@ -856,8 +783,8 @@ var ProductShippingProfileSection = ({
856
783
  const shippingProfile = product.shipping_profile;
857
784
  return /* @__PURE__ */ jsxs7(Container7, { className: "p-0", "data-testid": "product-shipping-profile-section", children: [
858
785
  /* @__PURE__ */ jsxs7("div", { className: "flex items-center justify-between px-6 py-4", "data-testid": "product-shipping-profile-header", children: [
859
- /* @__PURE__ */ jsx8(Heading7, { level: "h2", "data-testid": "product-shipping-profile-title", children: t("products.shippingProfile.header") }),
860
- /* @__PURE__ */ jsx8(
786
+ /* @__PURE__ */ jsx7(Heading7, { level: "h2", "data-testid": "product-shipping-profile-title", children: t("products.shippingProfile.header") }),
787
+ /* @__PURE__ */ jsx7(
861
788
  ActionMenu,
862
789
  {
863
790
  groups: [
@@ -866,7 +793,7 @@ var ProductShippingProfileSection = ({
866
793
  {
867
794
  label: t("actions.edit"),
868
795
  to: "shipping-profile",
869
- icon: /* @__PURE__ */ jsx8(PencilSquare7, {})
796
+ icon: /* @__PURE__ */ jsx7(PencilSquare7, {})
870
797
  }
871
798
  ]
872
799
  }
@@ -875,13 +802,13 @@ var ProductShippingProfileSection = ({
875
802
  }
876
803
  )
877
804
  ] }),
878
- shippingProfile && /* @__PURE__ */ jsx8("div", { "data-testid": "product-shipping-profile-link-container", children: /* @__PURE__ */ jsx8(
805
+ shippingProfile && /* @__PURE__ */ jsx7("div", { "data-testid": "product-shipping-profile-link-container", children: /* @__PURE__ */ jsx7(
879
806
  SidebarLink,
880
807
  {
881
808
  to: `/settings/locations/shipping-profiles/${shippingProfile.id}`,
882
809
  labelKey: shippingProfile.name,
883
810
  descriptionKey: shippingProfile.type,
884
- icon: /* @__PURE__ */ jsx8(ShoppingBag, {}),
811
+ icon: /* @__PURE__ */ jsx7(ShoppingBag, {}),
885
812
  "data-testid": "product-shipping-profile-link"
886
813
  }
887
814
  ) })
@@ -904,10 +831,12 @@ import {
904
831
  import { keepPreviousData } from "@tanstack/react-query";
905
832
  import { useTranslation as useTranslation8 } from "react-i18next";
906
833
  import { useNavigate as useNavigate2, useSearchParams } from "react-router-dom";
907
- import { jsx as jsx9, jsxs as jsxs8 } from "react/jsx-runtime";
834
+ import { jsx as jsx8, jsxs as jsxs8 } from "react/jsx-runtime";
908
835
  var PAGE_SIZE = 10;
909
836
  var PREFIX = "pv";
910
- var ProductVariantSection = ({ product }) => {
837
+ var ProductVariantSection = ({
838
+ product
839
+ }) => {
911
840
  const { t } = useTranslation8();
912
841
  const { q, order, offset, allow_backorder, manage_inventory, created_at, updated_at } = useQueryParams(
913
842
  ["q", "order", "offset", "manage_inventory", "allow_backorder", "created_at", "updated_at"],
@@ -936,12 +865,12 @@ var ProductVariantSection = ({ product }) => {
936
865
  if (isError) {
937
866
  throw error;
938
867
  }
939
- return /* @__PURE__ */ jsx9(
868
+ return /* @__PURE__ */ jsx8(
940
869
  Container8,
941
870
  {
942
871
  className: "divide-y p-0",
943
872
  "data-testid": "product-variant-section",
944
- children: /* @__PURE__ */ jsx9("div", { "data-testid": "product-variants-table-container", children: /* @__PURE__ */ jsx9(
873
+ children: /* @__PURE__ */ jsx8("div", { "data-testid": "product-variants-table-container", children: /* @__PURE__ */ jsx8(
945
874
  DataTable,
946
875
  {
947
876
  data: variants,
@@ -974,12 +903,12 @@ var ProductVariantSection = ({ product }) => {
974
903
  {
975
904
  label: t("products.editPrices"),
976
905
  to: `prices`,
977
- icon: /* @__PURE__ */ jsx9(PencilSquare8, {})
906
+ icon: /* @__PURE__ */ jsx8(PencilSquare8, {})
978
907
  },
979
908
  {
980
909
  label: t("inventory.stock.action"),
981
910
  to: `stock`,
982
- icon: /* @__PURE__ */ jsx9(Buildings, {})
911
+ icon: /* @__PURE__ */ jsx8(Buildings, {})
983
912
  }
984
913
  ]
985
914
  }
@@ -1038,14 +967,14 @@ var useColumns = (product) => {
1038
967
  cell: ({ row }) => {
1039
968
  const variantOpt = row.original.options?.find((opt) => opt.option_id === option.id);
1040
969
  if (!variantOpt) {
1041
- return /* @__PURE__ */ jsx9("span", { className: "text-ui-fg-muted", children: "-" });
970
+ return /* @__PURE__ */ jsx8("span", { className: "text-ui-fg-muted", children: "-" });
1042
971
  }
1043
- return /* @__PURE__ */ jsx9(
972
+ return /* @__PURE__ */ jsx8(
1044
973
  "div",
1045
974
  {
1046
975
  className: "flex items-center",
1047
976
  "data-testid": `product-variant-option-${option.id}-${row.original.id}`,
1048
- children: /* @__PURE__ */ jsx9(Tooltip4, { content: variantOpt.value, children: /* @__PURE__ */ jsx9(
977
+ children: /* @__PURE__ */ jsx8(Tooltip4, { content: variantOpt.value, children: /* @__PURE__ */ jsx8(
1049
978
  Badge3,
1050
979
  {
1051
980
  size: "2xsmall",
@@ -1066,7 +995,7 @@ var useColumns = (product) => {
1066
995
  const variant = ctx.row.original;
1067
996
  const mainActions = [
1068
997
  {
1069
- icon: /* @__PURE__ */ jsx9(PencilSquare8, {}),
998
+ icon: /* @__PURE__ */ jsx8(PencilSquare8, {}),
1070
999
  label: t("actions.edit"),
1071
1000
  onClick: (row) => {
1072
1001
  navigate(
@@ -1082,7 +1011,7 @@ var useColumns = (product) => {
1082
1011
  ];
1083
1012
  const secondaryActions = [
1084
1013
  {
1085
- icon: /* @__PURE__ */ jsx9(Trash3, {}),
1014
+ icon: /* @__PURE__ */ jsx8(Trash3, {}),
1086
1015
  label: t("actions.delete"),
1087
1016
  onClick: () => handleDelete(variant.id, variant.title)
1088
1017
  }
@@ -1098,7 +1027,7 @@ var useColumns = (product) => {
1098
1027
  onClick: () => {
1099
1028
  navigate(inventoryItemLink);
1100
1029
  },
1101
- icon: /* @__PURE__ */ jsx9(Buildings, {})
1030
+ icon: /* @__PURE__ */ jsx8(Buildings, {})
1102
1031
  });
1103
1032
  break;
1104
1033
  }
@@ -1115,7 +1044,7 @@ var useColumns = (product) => {
1115
1044
  onClick: () => {
1116
1045
  navigate(inventoryKitLink);
1117
1046
  },
1118
- icon: /* @__PURE__ */ jsx9(Component, {})
1047
+ icon: /* @__PURE__ */ jsx8(Component, {})
1119
1048
  });
1120
1049
  }
1121
1050
  }
@@ -1174,19 +1103,19 @@ var useColumns = (product) => {
1174
1103
  header: t("fields.inventory"),
1175
1104
  cell: ({ row }) => {
1176
1105
  const { text, hasInventoryKit, quantity, notManaged } = getInventory(row.original);
1177
- return /* @__PURE__ */ jsx9(Tooltip4, { content: text, children: /* @__PURE__ */ jsxs8(
1106
+ return /* @__PURE__ */ jsx8(Tooltip4, { content: text, children: /* @__PURE__ */ jsxs8(
1178
1107
  "div",
1179
1108
  {
1180
1109
  className: "flex h-full w-full items-center gap-2 overflow-hidden",
1181
1110
  "data-testid": `product-variant-inventory-${row.original.id}`,
1182
1111
  children: [
1183
- hasInventoryKit && /* @__PURE__ */ jsx9(
1112
+ hasInventoryKit && /* @__PURE__ */ jsx8(
1184
1113
  Component,
1185
1114
  {
1186
1115
  "data-testid": `product-variant-inventory-kit-icon-${row.original.id}`
1187
1116
  }
1188
1117
  ),
1189
- /* @__PURE__ */ jsx9(
1118
+ /* @__PURE__ */ jsx8(
1190
1119
  "span",
1191
1120
  {
1192
1121
  className: clx2("truncate", {
@@ -1251,8 +1180,8 @@ var useCommands = () => {
1251
1180
  };
1252
1181
 
1253
1182
  // src/pages/products/product-detail/product-detail.tsx
1254
- import { jsx as jsx10, jsxs as jsxs9 } from "react/jsx-runtime";
1255
- var ProductDetail = () => {
1183
+ import { jsx as jsx9, jsxs as jsxs9 } from "react/jsx-runtime";
1184
+ var Root = ({ children }) => {
1256
1185
  const initialData = useLoaderData();
1257
1186
  const { id } = useParams();
1258
1187
  const { product, isLoading, isError, error } = useProduct(
@@ -1263,7 +1192,7 @@ var ProductDetail = () => {
1263
1192
  }
1264
1193
  );
1265
1194
  if (isLoading || !product) {
1266
- return /* @__PURE__ */ jsx10(
1195
+ return /* @__PURE__ */ jsx9(
1267
1196
  TwoColumnPageSkeleton,
1268
1197
  {
1269
1198
  mainSections: 4,
@@ -1276,24 +1205,45 @@ var ProductDetail = () => {
1276
1205
  if (isError) {
1277
1206
  throw error;
1278
1207
  }
1279
- return /* @__PURE__ */ jsx10("div", { "data-testid": "product-detail-page", children: /* @__PURE__ */ jsxs9(TwoColumnPage, { showJSON: true, showMetadata: true, data: product, children: [
1280
- /* @__PURE__ */ jsxs9(TwoColumnPage.Main, { "data-testid": "product-detail-main", children: [
1281
- /* @__PURE__ */ jsx10(ProductGeneralSection, { product }),
1282
- /* @__PURE__ */ jsx10(ProductMediaSection, { product }),
1283
- /* @__PURE__ */ jsx10(ProductOptionSection, { product }),
1284
- /* @__PURE__ */ jsx10(ProductVariantSection, { product })
1285
- ] }),
1286
- /* @__PURE__ */ jsxs9(TwoColumnPage.Sidebar, { "data-testid": "product-detail-sidebar", children: [
1287
- /* @__PURE__ */ jsx10(ProductSellerSection, { seller: product.seller }),
1288
- /* @__PURE__ */ jsx10(ProductSalesChannelSection, { product }),
1289
- /* @__PURE__ */ jsx10(ProductShippingProfileSection, { product }),
1290
- /* @__PURE__ */ jsx10(ProductOrganizationSection, { product }),
1291
- /* @__PURE__ */ jsx10(ProductAttributeSection, { product })
1292
- ] })
1293
- ] }) });
1208
+ return Children.count(children) > 0 ? /* @__PURE__ */ jsx9(TwoColumnPage, { "data-testid": "product-detail-page", children }) : /* @__PURE__ */ jsxs9(
1209
+ TwoColumnPage,
1210
+ {
1211
+ data: product,
1212
+ showJSON: true,
1213
+ showMetadata: true,
1214
+ "data-testid": "product-detail-page",
1215
+ children: [
1216
+ /* @__PURE__ */ jsxs9(TwoColumnPage.Main, { "data-testid": "product-detail-main", children: [
1217
+ /* @__PURE__ */ jsx9(ProductGeneralSection, { product }),
1218
+ /* @__PURE__ */ jsx9(ProductMediaSection, { product }),
1219
+ /* @__PURE__ */ jsx9(ProductOptionSection, { product }),
1220
+ /* @__PURE__ */ jsx9(ProductVariantSection, { product })
1221
+ ] }),
1222
+ /* @__PURE__ */ jsxs9(TwoColumnPage.Sidebar, { "data-testid": "product-detail-sidebar", children: [
1223
+ /* @__PURE__ */ jsx9(ProductSellerSection, { seller: product.seller }),
1224
+ /* @__PURE__ */ jsx9(ProductSalesChannelSection, { product }),
1225
+ /* @__PURE__ */ jsx9(ProductShippingProfileSection, { product }),
1226
+ /* @__PURE__ */ jsx9(ProductOrganizationSection, { product }),
1227
+ /* @__PURE__ */ jsx9(ProductAttributeSection, { product })
1228
+ ] })
1229
+ ]
1230
+ }
1231
+ );
1294
1232
  };
1233
+ var ProductDetailPage = Object.assign(Root, {
1234
+ Main: TwoColumnPage.Main,
1235
+ Sidebar: TwoColumnPage.Sidebar,
1236
+ MainGeneralSection: ProductGeneralSection,
1237
+ MainMediaSection: ProductMediaSection,
1238
+ MainOptionSection: ProductOptionSection,
1239
+ MainVariantSection: ProductVariantSection,
1240
+ SidebarSellerSection: ProductSellerSection,
1241
+ SidebarSalesChannelSection: ProductSalesChannelSection,
1242
+ SidebarShippingProfileSection: ProductShippingProfileSection,
1243
+ SidebarOrganizationSection: ProductOrganizationSection,
1244
+ SidebarAttributeSection: ProductAttributeSection
1245
+ });
1246
+
1295
1247
  export {
1296
- ProductDetailBreadcrumb as Breadcrumb,
1297
- ProductDetail as Component,
1298
- productLoader as loader
1248
+ ProductDetailPage
1299
1249
  };