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

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 +3 -3
  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
package/dist/index.js CHANGED
@@ -8,31 +8,29 @@ import {
8
8
  import {
9
9
  InfiniteList
10
10
  } from "./chunk-WMA3WTCM.js";
11
- import "./chunk-FMFVTERD.js";
12
11
  import {
13
12
  ProgressBar
14
13
  } from "./chunk-QSGR43JM.js";
14
+ import "./chunk-FMFVTERD.js";
15
+ import "./chunk-JRTZWK77.js";
15
16
  import {
16
17
  Thumbnail
17
18
  } from "./chunk-WIYFXWRI.js";
18
19
  import {
19
- I18n
20
- } from "./chunk-F5PEK3DA.js";
20
+ TabbedForm,
21
+ useTabbedForm
22
+ } from "./chunk-5GG65TKV.js";
21
23
  import "./chunk-TKGWSUEI.js";
24
+ import "./chunk-U2ZFCAPX.js";
22
25
  import {
23
- KeyboundForm
24
- } from "./chunk-U2ZFCAPX.js";
25
- import {
26
- FilePreview
27
- } from "./chunk-RSBZREKG.js";
28
- import {
29
- RouteFocusModal
30
- } from "./chunk-MWOKFNRO.js";
31
- import "./chunk-3QSRE5LS.js";
32
- import "./chunk-JRTZWK77.js";
26
+ I18n
27
+ } from "./chunk-U3SFHLUA.js";
33
28
  import {
34
29
  Skeleton
35
30
  } from "./chunk-INNFZYX2.js";
31
+ import {
32
+ FilePreview
33
+ } from "./chunk-RSBZREKG.js";
36
34
  import "./chunk-BDGZ4EQO.js";
37
35
  import {
38
36
  ConditionalTooltip
@@ -40,6 +38,8 @@ import {
40
38
  import {
41
39
  useDocumentDirection
42
40
  } from "./chunk-Y7QKP6QU.js";
41
+ import "./chunk-MWOKFNRO.js";
42
+ import "./chunk-3QSRE5LS.js";
43
43
  import {
44
44
  notificationQueryKeys,
45
45
  useNotifications,
@@ -50,28 +50,22 @@ import {
50
50
  } from "./chunk-ODBDAABQ.js";
51
51
  import "./chunk-CDQJKJMX.js";
52
52
  import "./chunk-JLATVDLM.js";
53
- import "./chunk-GPRBBA7S.js";
54
53
  import {
55
54
  useProductTypes
56
55
  } from "./chunk-E7ZBQO6E.js";
56
+ import "./chunk-GPRBBA7S.js";
57
57
  import "./chunk-XGHM75N2.js";
58
58
  import "./chunk-U2GCSKW3.js";
59
+ import "./chunk-A4X5VP3G.js";
59
60
  import "./chunk-RTAIDSDS.js";
60
61
  import "./chunk-LW3UWYZU.js";
61
- import "./chunk-A4X5VP3G.js";
62
62
  import {
63
63
  useMe
64
64
  } from "./chunk-NNZP4PYP.js";
65
- import {
66
- useSellers
67
- } from "./chunk-GF4QHVX3.js";
68
65
  import "./chunk-JOQ3RTF5.js";
69
66
  import {
70
67
  usePriceLists
71
68
  } from "./chunk-V534K7G4.js";
72
- import {
73
- useCustomers
74
- } from "./chunk-A5XOYSDC.js";
75
69
  import {
76
70
  useCollections
77
71
  } from "./chunk-TQI3DOQ5.js";
@@ -79,6 +73,13 @@ import {
79
73
  useCampaigns,
80
74
  usePromotions
81
75
  } from "./chunk-5PB7KCTF.js";
76
+ import "./chunk-LU72QEQC.js";
77
+ import {
78
+ useSellers
79
+ } from "./chunk-GF4QHVX3.js";
80
+ import {
81
+ useCustomers
82
+ } from "./chunk-A5XOYSDC.js";
82
83
  import "./chunk-YOIARITB.js";
83
84
  import {
84
85
  useOrders
@@ -87,16 +88,15 @@ import "./chunk-6C7TCU42.js";
87
88
  import {
88
89
  useStockLocations
89
90
  } from "./chunk-4YF3GAKE.js";
90
- import "./chunk-M3I52H3M.js";
91
- import "./chunk-LORVU5II.js";
92
- import {
93
- useProductCategories
94
- } from "./chunk-36ORDF7W.js";
95
91
  import "./chunk-QSM56ZOP.js";
96
92
  import {
97
93
  useStore
98
94
  } from "./chunk-MIHEJ6Y6.js";
99
95
  import "./chunk-3VZV6SJQ.js";
96
+ import "./chunk-LORVU5II.js";
97
+ import {
98
+ useProductCategories
99
+ } from "./chunk-36ORDF7W.js";
100
100
  import {
101
101
  useInventoryItems,
102
102
  useProducts
@@ -1525,9 +1525,9 @@ import {
1525
1525
  Tag,
1526
1526
  Users
1527
1527
  } from "@medusajs/icons";
1528
- import { Avatar as Avatar2, Divider, DropdownMenu as DropdownMenu3, Text as Text5, clx as clx6 } from "@medusajs/ui";
1529
- import { useTranslation as useTranslation8 } from "react-i18next";
1530
- import { Link as Link3, useLocation as useLocation6, useNavigate as useNavigate4 } from "react-router-dom";
1528
+ import { Avatar as Avatar2, Divider, DropdownMenu as DropdownMenu3, Text as Text6, clx as clx6 } from "@medusajs/ui";
1529
+ import { useTranslation as useTranslation9 } from "react-i18next";
1530
+ import { Link as Link3, useLocation as useLocation7, useNavigate as useNavigate4 } from "react-router-dom";
1531
1531
 
1532
1532
  // src/components/layout/nav-item/nav-item.tsx
1533
1533
  import {
@@ -2456,38 +2456,278 @@ var UserItem = () => {
2456
2456
  };
2457
2457
 
2458
2458
  // src/components/layout/main-layout/main-layout.tsx
2459
+ import components from "virtual:mercur/components";
2460
+ import menuItemsModule from "virtual:mercur/menu-items";
2461
+
2462
+ // src/components/utilities/error-boundary/error-boundary.tsx
2463
+ import { ExclamationCircle } from "@medusajs/icons";
2464
+ import { Text as Text5 } from "@medusajs/ui";
2465
+ import { useTranslation as useTranslation8 } from "react-i18next";
2466
+ import { Navigate as Navigate2, useLocation as useLocation6, useRouteError } from "react-router-dom";
2459
2467
  import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
2468
+ var ErrorBoundary = () => {
2469
+ const error = useRouteError();
2470
+ const location = useLocation6();
2471
+ const { t: t2 } = useTranslation8();
2472
+ let code = null;
2473
+ if (isClientError(error)) {
2474
+ if (error.status === 401) {
2475
+ return /* @__PURE__ */ jsx11(Navigate2, { to: "/login", state: { from: location }, replace: true });
2476
+ }
2477
+ code = error.status ?? null;
2478
+ }
2479
+ if (process.env.NODE_ENV === "development") {
2480
+ console.error(error);
2481
+ }
2482
+ let title;
2483
+ let message;
2484
+ switch (code) {
2485
+ case 400:
2486
+ title = t2("errorBoundary.badRequestTitle");
2487
+ message = t2("errorBoundary.badRequestMessage");
2488
+ break;
2489
+ case 404:
2490
+ title = t2("errorBoundary.notFoundTitle");
2491
+ message = t2("errorBoundary.notFoundMessage");
2492
+ break;
2493
+ case 500:
2494
+ title = t2("errorBoundary.internalServerErrorTitle");
2495
+ message = t2("errorBoundary.internalServerErrorMessage");
2496
+ break;
2497
+ default:
2498
+ title = t2("errorBoundary.defaultTitle");
2499
+ message = t2("errorBoundary.defaultMessage");
2500
+ break;
2501
+ }
2502
+ return /* @__PURE__ */ jsx11("div", { className: "flex size-full min-h-[calc(100vh-57px-24px)] items-center justify-center", children: /* @__PURE__ */ jsx11("div", { className: "flex flex-col gap-y-6", children: /* @__PURE__ */ jsxs7("div", { className: "text-ui-fg-subtle flex flex-col items-center gap-y-3", children: [
2503
+ /* @__PURE__ */ jsx11(ExclamationCircle, {}),
2504
+ /* @__PURE__ */ jsxs7("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
2505
+ /* @__PURE__ */ jsx11(Text5, { size: "small", leading: "compact", weight: "plus", children: title }),
2506
+ /* @__PURE__ */ jsx11(
2507
+ Text5,
2508
+ {
2509
+ size: "small",
2510
+ className: "text-ui-fg-muted text-balance text-center",
2511
+ children: message
2512
+ }
2513
+ )
2514
+ ] })
2515
+ ] }) }) });
2516
+ };
2517
+
2518
+ // src/utils/routes.ts
2519
+ var createBranchRoute = (segment) => ({
2520
+ path: segment,
2521
+ children: []
2522
+ });
2523
+ var createLeafRoute = (Component, loader, handle, path = "") => ({
2524
+ path,
2525
+ ErrorBoundary,
2526
+ async lazy() {
2527
+ const result = { Component };
2528
+ if (loader) {
2529
+ result.loader = loader;
2530
+ }
2531
+ if (handle) {
2532
+ result.handle = handle;
2533
+ }
2534
+ return result;
2535
+ }
2536
+ });
2537
+ var createParallelRoute = (path, Component, loader, handle) => ({
2538
+ path,
2539
+ async lazy() {
2540
+ const result = { Component };
2541
+ if (loader) {
2542
+ result.loader = loader;
2543
+ }
2544
+ if (handle) {
2545
+ result.handle = handle;
2546
+ }
2547
+ return result;
2548
+ }
2549
+ });
2550
+ var processParallelRoutes = (parallelRoutes, currentFullPath) => {
2551
+ return parallelRoutes?.map(({ path, Component, loader, handle }) => {
2552
+ const childPath = path?.replace(currentFullPath, "").replace(/^\/+/, "");
2553
+ if (!childPath) {
2554
+ return null;
2555
+ }
2556
+ return createParallelRoute(childPath, Component, loader, handle);
2557
+ }).filter(Boolean);
2558
+ };
2559
+ var addRoute = (pathSegments, Component, currentLevel, loader, handle, parallelRoutes, fullPath, componentPath) => {
2560
+ if (!pathSegments.length) {
2561
+ return;
2562
+ }
2563
+ const [currentSegment, ...remainingSegments] = pathSegments;
2564
+ let route = currentLevel.find((r) => r.path === currentSegment);
2565
+ if (!route) {
2566
+ route = createBranchRoute(currentSegment);
2567
+ currentLevel.push(route);
2568
+ }
2569
+ const currentFullPath = fullPath ? `${fullPath}/${currentSegment}` : currentSegment;
2570
+ const isComponentSegment = currentFullPath === componentPath;
2571
+ if (isComponentSegment || remainingSegments.length === 0) {
2572
+ route.children || (route.children = []);
2573
+ if (handle) {
2574
+ route.handle = handle;
2575
+ }
2576
+ if (loader) {
2577
+ route.loader = loader;
2578
+ }
2579
+ if (currentSegment === "*?" || currentSegment === "*") {
2580
+ const leaf = createLeafRoute(Component, loader, handle, currentSegment);
2581
+ leaf.children = processParallelRoutes(parallelRoutes, currentFullPath);
2582
+ Object.assign(route, leaf);
2583
+ } else {
2584
+ const leaf = createLeafRoute(Component, loader);
2585
+ leaf.children = processParallelRoutes(parallelRoutes, currentFullPath);
2586
+ route.children.push(leaf);
2587
+ }
2588
+ if (remainingSegments.length > 0) {
2589
+ addRoute(
2590
+ remainingSegments,
2591
+ Component,
2592
+ route.children,
2593
+ void 0,
2594
+ void 0,
2595
+ void 0,
2596
+ currentFullPath
2597
+ );
2598
+ }
2599
+ } else {
2600
+ route.children || (route.children = []);
2601
+ addRoute(
2602
+ remainingSegments,
2603
+ Component,
2604
+ route.children,
2605
+ loader,
2606
+ handle,
2607
+ parallelRoutes,
2608
+ currentFullPath,
2609
+ componentPath
2610
+ );
2611
+ }
2612
+ };
2613
+ var createRouteMap = (routes, ignore) => {
2614
+ const root = [];
2615
+ routes.forEach(({ path, Component, loader, handle, children }) => {
2616
+ const cleanedPath = ignore ? path.replace(ignore, "").replace(/^\/+/, "") : path.replace(/^\/+/, "");
2617
+ const pathSegments = cleanedPath.split("/").filter(Boolean);
2618
+ addRoute(
2619
+ pathSegments,
2620
+ Component,
2621
+ root,
2622
+ loader,
2623
+ handle,
2624
+ children,
2625
+ void 0,
2626
+ path
2627
+ );
2628
+ });
2629
+ return root;
2630
+ };
2631
+ var settingsRouteRegex = /^\/settings\//;
2632
+ var getRoutesByType = (routes, type) => {
2633
+ return routes.filter((route) => {
2634
+ if (type === "public") {
2635
+ return route.isPublic === true;
2636
+ }
2637
+ if (type === "settings") {
2638
+ return !route.isPublic && settingsRouteRegex.test(route.path);
2639
+ }
2640
+ return !route.isPublic && !settingsRouteRegex.test(route.path);
2641
+ });
2642
+ };
2643
+ var getMenuItemsByType = (menuItems, type) => {
2644
+ return menuItems.filter((item) => {
2645
+ if (item.nested) {
2646
+ return false;
2647
+ }
2648
+ if (type === "settings") {
2649
+ return settingsRouteRegex.test(item.path);
2650
+ }
2651
+ return !settingsRouteRegex.test(item.path);
2652
+ });
2653
+ };
2654
+ var getNestedMenuItems = (menuItems, parentPath) => {
2655
+ return menuItems.filter((item) => item.nested === parentPath).sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0));
2656
+ };
2657
+
2658
+ // src/components/layout/main-layout/main-layout.tsx
2659
+ import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
2460
2660
  var MainLayout = () => {
2461
- return /* @__PURE__ */ jsx11(Shell, { children: /* @__PURE__ */ jsx11(MainSidebar, {}) });
2661
+ const Sidebar = components.MainSidebar ? components.MainSidebar : MainSidebar;
2662
+ return /* @__PURE__ */ jsx12(Shell, { children: /* @__PURE__ */ jsx12(Sidebar, {}) });
2663
+ };
2664
+ var allMenuItems = menuItemsModule.menuItems ?? [];
2665
+ var addNestedItems = (to, items) => {
2666
+ const nestedItems = getNestedMenuItems(allMenuItems, to);
2667
+ if (nestedItems.length === 0) {
2668
+ return items;
2669
+ }
2670
+ const nestedNavItems = nestedItems.map((item) => ({
2671
+ label: item.label,
2672
+ to: item.path,
2673
+ translationNs: item.translationNs
2674
+ }));
2675
+ return [...items ?? [], ...nestedNavItems];
2462
2676
  };
2463
2677
  var MainSidebar = () => {
2464
- return /* @__PURE__ */ jsx11(
2678
+ const coreRoutes = useCoreRoutes();
2679
+ const customMenuItems = getMenuItemsByType(allMenuItems, "main");
2680
+ const routesWithNested = coreRoutes.map((route) => ({
2681
+ ...route,
2682
+ items: addNestedItems(route.to, route.items)
2683
+ }));
2684
+ const customRoutesWithNested = customMenuItems.sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0)).map((item) => ({
2685
+ label: item.label,
2686
+ to: item.path,
2687
+ icon: item.icon ? void 0 : void 0,
2688
+ translationNs: item.translationNs,
2689
+ items: addNestedItems(item.path)
2690
+ }));
2691
+ return /* @__PURE__ */ jsx12(
2465
2692
  "aside",
2466
2693
  {
2467
2694
  className: "flex flex-1 flex-col justify-between overflow-y-auto",
2468
2695
  "data-testid": "sidebar",
2469
- children: /* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col", children: [
2470
- /* @__PURE__ */ jsxs7(
2696
+ children: /* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col", children: [
2697
+ /* @__PURE__ */ jsxs8(
2471
2698
  "div",
2472
2699
  {
2473
2700
  className: "sticky top-0 bg-ui-bg-subtle",
2474
2701
  "data-testid": "sidebar-header-section",
2475
2702
  children: [
2476
- /* @__PURE__ */ jsx11(Header, {}),
2477
- /* @__PURE__ */ jsx11("div", { className: "px-3", children: /* @__PURE__ */ jsx11(Divider, { variant: "dashed" }) })
2703
+ /* @__PURE__ */ jsx12(Header, {}),
2704
+ /* @__PURE__ */ jsx12("div", { className: "px-3", children: /* @__PURE__ */ jsx12(Divider, { variant: "dashed" }) })
2478
2705
  ]
2479
2706
  }
2480
2707
  ),
2481
- /* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col justify-between", children: [
2482
- /* @__PURE__ */ jsx11("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ jsx11(CoreRouteSection, {}) }),
2483
- /* @__PURE__ */ jsx11(UtilitySection, {})
2708
+ /* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col justify-between", children: [
2709
+ /* @__PURE__ */ jsx12("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ jsxs8(
2710
+ "nav",
2711
+ {
2712
+ className: "flex flex-col gap-y-1 py-3",
2713
+ "data-testid": "sidebar-core-routes",
2714
+ children: [
2715
+ /* @__PURE__ */ jsx12(Searchbar, {}),
2716
+ routesWithNested.map((route) => {
2717
+ return /* @__PURE__ */ jsx12(NavItem, { ...route }, route.to);
2718
+ }),
2719
+ customRoutesWithNested.map((route) => /* @__PURE__ */ jsx12(NavItem, { ...route }, route.to))
2720
+ ]
2721
+ }
2722
+ ) }),
2723
+ /* @__PURE__ */ jsx12(UtilitySection, {})
2484
2724
  ] }),
2485
- /* @__PURE__ */ jsx11(
2725
+ /* @__PURE__ */ jsx12(
2486
2726
  "div",
2487
2727
  {
2488
2728
  className: "sticky bottom-0 bg-ui-bg-subtle",
2489
2729
  "data-testid": "sidebar-user-section",
2490
- children: /* @__PURE__ */ jsx11(UserSection, {})
2730
+ children: /* @__PURE__ */ jsx12(UserSection, {})
2491
2731
  }
2492
2732
  )
2493
2733
  ] })
@@ -2495,7 +2735,7 @@ var MainSidebar = () => {
2495
2735
  );
2496
2736
  };
2497
2737
  var Logout2 = () => {
2498
- const { t: t2 } = useTranslation8();
2738
+ const { t: t2 } = useTranslation9();
2499
2739
  const navigate = useNavigate4();
2500
2740
  const { mutateAsync: logoutMutation } = useLogout();
2501
2741
  const handleLogout = async () => {
@@ -2506,20 +2746,20 @@ var Logout2 = () => {
2506
2746
  }
2507
2747
  });
2508
2748
  };
2509
- return /* @__PURE__ */ jsx11(
2749
+ return /* @__PURE__ */ jsx12(
2510
2750
  DropdownMenu3.Item,
2511
2751
  {
2512
2752
  onClick: handleLogout,
2513
2753
  "data-testid": "sidebar-header-dropdown-logout",
2514
- children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-2", children: [
2515
- /* @__PURE__ */ jsx11(OpenRectArrowOut2, { className: "text-ui-fg-subtle" }),
2516
- /* @__PURE__ */ jsx11("span", { children: t2("app.menus.actions.logout") })
2754
+ children: /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-x-2", children: [
2755
+ /* @__PURE__ */ jsx12(OpenRectArrowOut2, { className: "text-ui-fg-subtle" }),
2756
+ /* @__PURE__ */ jsx12("span", { children: t2("app.menus.actions.logout") })
2517
2757
  ] })
2518
2758
  }
2519
2759
  );
2520
2760
  };
2521
2761
  var Header = () => {
2522
- const { t: t2 } = useTranslation8();
2762
+ const { t: t2 } = useTranslation9();
2523
2763
  const { store, isPending, isError, error } = useStore();
2524
2764
  const direction = useDocumentDirection();
2525
2765
  const name = store?.name;
@@ -2528,8 +2768,8 @@ var Header = () => {
2528
2768
  if (isError) {
2529
2769
  throw error;
2530
2770
  }
2531
- return /* @__PURE__ */ jsx11("div", { className: "w-full p-3", "data-testid": "sidebar-header-dropdown", children: /* @__PURE__ */ jsxs7(DropdownMenu3, { dir: direction, "data-testid": "sidebar-header-dropdown-menu", children: [
2532
- /* @__PURE__ */ jsxs7(
2771
+ return /* @__PURE__ */ jsx12("div", { className: "w-full p-3", "data-testid": "sidebar-header-dropdown", children: /* @__PURE__ */ jsxs8(DropdownMenu3, { dir: direction, "data-testid": "sidebar-header-dropdown-menu", children: [
2772
+ /* @__PURE__ */ jsxs8(
2533
2773
  DropdownMenu3.Trigger,
2534
2774
  {
2535
2775
  disabled: !isLoaded,
@@ -2541,7 +2781,7 @@ var Header = () => {
2541
2781
  ),
2542
2782
  "data-testid": "sidebar-header-dropdown-trigger",
2543
2783
  children: [
2544
- fallback ? /* @__PURE__ */ jsx11(
2784
+ fallback ? /* @__PURE__ */ jsx12(
2545
2785
  Avatar2,
2546
2786
  {
2547
2787
  variant: "squared",
@@ -2549,14 +2789,14 @@ var Header = () => {
2549
2789
  fallback,
2550
2790
  "data-testid": "sidebar-header-dropdown-avatar"
2551
2791
  }
2552
- ) : /* @__PURE__ */ jsx11(Skeleton, { className: "h-6 w-6 rounded-md" }),
2553
- /* @__PURE__ */ jsx11(
2792
+ ) : /* @__PURE__ */ jsx12(Skeleton, { className: "h-6 w-6 rounded-md" }),
2793
+ /* @__PURE__ */ jsx12(
2554
2794
  "div",
2555
2795
  {
2556
2796
  className: "block overflow-hidden text-start",
2557
2797
  "data-testid": "sidebar-header-dropdown-store-name",
2558
- children: name ? /* @__PURE__ */ jsx11(
2559
- Text5,
2798
+ children: name ? /* @__PURE__ */ jsx12(
2799
+ Text6,
2560
2800
  {
2561
2801
  size: "small",
2562
2802
  weight: "plus",
@@ -2564,26 +2804,26 @@ var Header = () => {
2564
2804
  className: "truncate",
2565
2805
  children: store.name
2566
2806
  }
2567
- ) : /* @__PURE__ */ jsx11(Skeleton, { className: "h-[9px] w-[120px]" })
2807
+ ) : /* @__PURE__ */ jsx12(Skeleton, { className: "h-[9px] w-[120px]" })
2568
2808
  }
2569
2809
  ),
2570
- /* @__PURE__ */ jsx11(EllipsisHorizontal2, { className: "text-ui-fg-muted" })
2810
+ /* @__PURE__ */ jsx12(EllipsisHorizontal2, { className: "text-ui-fg-muted" })
2571
2811
  ]
2572
2812
  }
2573
2813
  ),
2574
- isLoaded && /* @__PURE__ */ jsxs7(
2814
+ isLoaded && /* @__PURE__ */ jsxs8(
2575
2815
  DropdownMenu3.Content,
2576
2816
  {
2577
2817
  className: "w-[var(--radix-dropdown-menu-trigger-width)] min-w-0",
2578
2818
  "data-testid": "sidebar-header-dropdown-content",
2579
2819
  children: [
2580
- /* @__PURE__ */ jsxs7(
2820
+ /* @__PURE__ */ jsxs8(
2581
2821
  "div",
2582
2822
  {
2583
2823
  className: "flex items-center gap-x-3 px-2 py-1",
2584
2824
  "data-testid": "sidebar-header-dropdown-user-info",
2585
2825
  children: [
2586
- /* @__PURE__ */ jsx11(
2826
+ /* @__PURE__ */ jsx12(
2587
2827
  Avatar2,
2588
2828
  {
2589
2829
  variant: "squared",
@@ -2592,14 +2832,14 @@ var Header = () => {
2592
2832
  "data-testid": "sidebar-header-dropdown-user-avatar"
2593
2833
  }
2594
2834
  ),
2595
- /* @__PURE__ */ jsxs7(
2835
+ /* @__PURE__ */ jsxs8(
2596
2836
  "div",
2597
2837
  {
2598
2838
  className: "flex flex-col overflow-hidden",
2599
2839
  "data-testid": "sidebar-header-dropdown-user-details",
2600
2840
  children: [
2601
- /* @__PURE__ */ jsx11(
2602
- Text5,
2841
+ /* @__PURE__ */ jsx12(
2842
+ Text6,
2603
2843
  {
2604
2844
  size: "small",
2605
2845
  weight: "plus",
@@ -2609,8 +2849,8 @@ var Header = () => {
2609
2849
  children: name
2610
2850
  }
2611
2851
  ),
2612
- /* @__PURE__ */ jsx11(
2613
- Text5,
2852
+ /* @__PURE__ */ jsx12(
2853
+ Text6,
2614
2854
  {
2615
2855
  size: "xsmall",
2616
2856
  leading: "compact",
@@ -2625,31 +2865,31 @@ var Header = () => {
2625
2865
  ]
2626
2866
  }
2627
2867
  ),
2628
- /* @__PURE__ */ jsx11(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-1" }),
2629
- /* @__PURE__ */ jsx11(
2868
+ /* @__PURE__ */ jsx12(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-1" }),
2869
+ /* @__PURE__ */ jsx12(
2630
2870
  DropdownMenu3.Item,
2631
2871
  {
2632
2872
  className: "gap-x-2",
2633
2873
  asChild: true,
2634
2874
  "data-testid": "sidebar-header-dropdown-store-settings",
2635
- children: /* @__PURE__ */ jsxs7(Link3, { to: "/settings/marketplace", children: [
2636
- /* @__PURE__ */ jsx11(BuildingStorefront, { className: "text-ui-fg-subtle" }),
2875
+ children: /* @__PURE__ */ jsxs8(Link3, { to: "/settings/marketplace", children: [
2876
+ /* @__PURE__ */ jsx12(BuildingStorefront, { className: "text-ui-fg-subtle" }),
2637
2877
  t2("app.nav.main.marketplaceSettings")
2638
2878
  ] })
2639
2879
  }
2640
2880
  ),
2641
- /* @__PURE__ */ jsx11(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-2" }),
2642
- /* @__PURE__ */ jsx11(Logout2, {})
2881
+ /* @__PURE__ */ jsx12(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-2" }),
2882
+ /* @__PURE__ */ jsx12(Logout2, {})
2643
2883
  ]
2644
2884
  }
2645
2885
  )
2646
2886
  ] }) });
2647
2887
  };
2648
2888
  var useCoreRoutes = () => {
2649
- const { t: t2 } = useTranslation8();
2889
+ const { t: t2 } = useTranslation9();
2650
2890
  return [
2651
2891
  {
2652
- icon: /* @__PURE__ */ jsx11(ShoppingCart, {}),
2892
+ icon: /* @__PURE__ */ jsx12(ShoppingCart, {}),
2653
2893
  label: t2("orders.domain"),
2654
2894
  to: "/orders",
2655
2895
  items: [
@@ -2661,7 +2901,7 @@ var useCoreRoutes = () => {
2661
2901
  ]
2662
2902
  },
2663
2903
  {
2664
- icon: /* @__PURE__ */ jsx11(Tag, {}),
2904
+ icon: /* @__PURE__ */ jsx12(Tag, {}),
2665
2905
  label: t2("products.domain"),
2666
2906
  to: "/products",
2667
2907
  items: [
@@ -2681,7 +2921,7 @@ var useCoreRoutes = () => {
2681
2921
  ]
2682
2922
  },
2683
2923
  {
2684
- icon: /* @__PURE__ */ jsx11(Buildings, {}),
2924
+ icon: /* @__PURE__ */ jsx12(Buildings, {}),
2685
2925
  label: t2("inventory.domain"),
2686
2926
  to: "/inventory",
2687
2927
  items: [
@@ -2692,7 +2932,7 @@ var useCoreRoutes = () => {
2692
2932
  ]
2693
2933
  },
2694
2934
  {
2695
- icon: /* @__PURE__ */ jsx11(Users, {}),
2935
+ icon: /* @__PURE__ */ jsx12(Users, {}),
2696
2936
  label: t2("customers.domain"),
2697
2937
  to: "/customers",
2698
2938
  items: [
@@ -2703,12 +2943,12 @@ var useCoreRoutes = () => {
2703
2943
  ]
2704
2944
  },
2705
2945
  {
2706
- icon: /* @__PURE__ */ jsx11(Shopping, {}),
2946
+ icon: /* @__PURE__ */ jsx12(Shopping, {}),
2707
2947
  label: t2("sellers.domain"),
2708
2948
  to: "/sellers"
2709
2949
  },
2710
2950
  {
2711
- icon: /* @__PURE__ */ jsx11(ReceiptPercent, {}),
2951
+ icon: /* @__PURE__ */ jsx12(ReceiptPercent, {}),
2712
2952
  label: t2("promotions.domain"),
2713
2953
  to: "/promotions",
2714
2954
  items: [
@@ -2719,21 +2959,21 @@ var useCoreRoutes = () => {
2719
2959
  ]
2720
2960
  },
2721
2961
  {
2722
- icon: /* @__PURE__ */ jsx11(CurrencyDollar, {}),
2962
+ icon: /* @__PURE__ */ jsx12(CurrencyDollar, {}),
2723
2963
  label: t2("priceLists.domain"),
2724
2964
  to: "/price-lists"
2725
2965
  },
2726
2966
  {
2727
- icon: /* @__PURE__ */ jsx11(CreditCardRefresh, {}),
2967
+ icon: /* @__PURE__ */ jsx12(CreditCardRefresh, {}),
2728
2968
  label: "Payouts",
2729
2969
  to: "/payouts"
2730
2970
  }
2731
2971
  ];
2732
2972
  };
2733
2973
  var Searchbar = () => {
2734
- const { t: t2 } = useTranslation8();
2974
+ const { t: t2 } = useTranslation9();
2735
2975
  const { toggleSearch } = useSearch();
2736
- return /* @__PURE__ */ jsx11("div", { className: "px-3", "data-testid": "sidebar-search", children: /* @__PURE__ */ jsxs7(
2976
+ return /* @__PURE__ */ jsx12("div", { className: "px-3", "data-testid": "sidebar-search", children: /* @__PURE__ */ jsxs8(
2737
2977
  "button",
2738
2978
  {
2739
2979
  onClick: toggleSearch,
@@ -2744,69 +2984,63 @@ var Searchbar = () => {
2744
2984
  ),
2745
2985
  "data-testid": "sidebar-search-button",
2746
2986
  children: [
2747
- /* @__PURE__ */ jsx11(MagnifyingGlass2, {}),
2748
- /* @__PURE__ */ jsx11("div", { className: "flex-1 text-start", children: /* @__PURE__ */ jsx11(Text5, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.label") }) }),
2749
- /* @__PURE__ */ jsx11(Text5, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: "\u2318K" })
2987
+ /* @__PURE__ */ jsx12(MagnifyingGlass2, {}),
2988
+ /* @__PURE__ */ jsx12("div", { className: "flex-1 text-start", children: /* @__PURE__ */ jsx12(Text6, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.label") }) }),
2989
+ /* @__PURE__ */ jsx12(Text6, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: "\u2318K" })
2750
2990
  ]
2751
2991
  }
2752
2992
  ) });
2753
2993
  };
2754
- var CoreRouteSection = () => {
2755
- const coreRoutes = useCoreRoutes();
2756
- return /* @__PURE__ */ jsxs7(
2757
- "nav",
2758
- {
2759
- className: "flex flex-col gap-y-1 py-3",
2760
- "data-testid": "sidebar-core-routes",
2761
- children: [
2762
- /* @__PURE__ */ jsx11(Searchbar, {}),
2763
- coreRoutes.map((route) => {
2764
- return /* @__PURE__ */ jsx11(NavItem, { ...route }, route.to);
2765
- })
2766
- ]
2767
- }
2768
- );
2769
- };
2770
2994
  var UtilitySection = () => {
2771
- const location = useLocation6();
2772
- const { t: t2 } = useTranslation8();
2773
- return /* @__PURE__ */ jsx11("div", { className: "flex flex-col gap-y-0.5 py-3", children: /* @__PURE__ */ jsx11(
2995
+ const location = useLocation7();
2996
+ const { t: t2 } = useTranslation9();
2997
+ return /* @__PURE__ */ jsx12("div", { className: "flex flex-col gap-y-0.5 py-3", children: /* @__PURE__ */ jsx12(
2774
2998
  NavItem,
2775
2999
  {
2776
3000
  label: t2("app.nav.settings.header"),
2777
3001
  to: "/settings",
2778
3002
  from: location.pathname,
2779
- icon: /* @__PURE__ */ jsx11(CogSixTooth, {})
3003
+ icon: /* @__PURE__ */ jsx12(CogSixTooth, {})
2780
3004
  }
2781
3005
  ) });
2782
3006
  };
2783
3007
  var UserSection = () => {
2784
- return /* @__PURE__ */ jsxs7("div", { children: [
2785
- /* @__PURE__ */ jsx11("div", { className: "px-3", children: /* @__PURE__ */ jsx11(Divider, { variant: "dashed" }) }),
2786
- /* @__PURE__ */ jsx11(UserMenu, {})
3008
+ return /* @__PURE__ */ jsxs8("div", { children: [
3009
+ /* @__PURE__ */ jsx12("div", { className: "px-3", children: /* @__PURE__ */ jsx12(Divider, { variant: "dashed" }) }),
3010
+ /* @__PURE__ */ jsx12(UserMenu, {})
2787
3011
  ] });
2788
3012
  };
2789
3013
 
2790
3014
  // src/components/layout/public-layout/public-layout.tsx
2791
3015
  import { Outlet as Outlet3 } from "react-router-dom";
2792
- import { jsx as jsx12 } from "react/jsx-runtime";
3016
+ import { jsx as jsx13 } from "react/jsx-runtime";
2793
3017
  var PublicLayout = () => {
2794
- return /* @__PURE__ */ jsx12(Outlet3, {});
3018
+ return /* @__PURE__ */ jsx13(Outlet3, {});
2795
3019
  };
2796
3020
 
2797
3021
  // src/components/layout/settings-layout/settings-layout.tsx
2798
3022
  import { useEffect as useEffect10, useMemo as useMemo4, useState as useState12 } from "react";
2799
3023
  import { ArrowUturnLeft as ArrowUturnLeft2, MinusMini } from "@medusajs/icons";
2800
- import { Divider as Divider2, IconButton as IconButton5, Text as Text6, clx as clx7 } from "@medusajs/ui";
3024
+ import { Divider as Divider2, IconButton as IconButton5, Text as Text7, clx as clx7 } from "@medusajs/ui";
2801
3025
  import { Collapsible as RadixCollapsible2 } from "radix-ui";
2802
- import { useTranslation as useTranslation9 } from "react-i18next";
2803
- import { Link as Link4, useLocation as useLocation7 } from "react-router-dom";
2804
- import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
3026
+ import { useTranslation as useTranslation10 } from "react-i18next";
3027
+ import { Link as Link4, useLocation as useLocation8 } from "react-router-dom";
3028
+ import components2 from "virtual:mercur/components";
3029
+ import menuItemsModule2 from "virtual:mercur/menu-items";
3030
+ import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
2805
3031
  var SettingsLayout = () => {
2806
- return /* @__PURE__ */ jsx13(Shell, { children: /* @__PURE__ */ jsx13(SettingsSidebar, {}) });
3032
+ const Sidebar = components2.SettingsSidebar ? components2.SettingsSidebar : SettingsSidebar;
3033
+ return /* @__PURE__ */ jsx14(Shell, { children: /* @__PURE__ */ jsx14(Sidebar, {}) });
2807
3034
  };
3035
+ var allMenuItems2 = menuItemsModule2.menuItems ?? [];
3036
+ var customSettingsItems = getMenuItemsByType(allMenuItems2, "settings");
3037
+ var extensionNavItems = customSettingsItems.sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0)).map((item) => ({
3038
+ label: item.label,
3039
+ to: item.path,
3040
+ translationNs: item.translationNs
3041
+ }));
2808
3042
  var useSettingRoutes = () => {
2809
- const { t: t2 } = useTranslation9();
3043
+ const { t: t2 } = useTranslation10();
2810
3044
  return useMemo4(
2811
3045
  () => [
2812
3046
  {
@@ -2852,13 +3086,14 @@ var useSettingRoutes = () => {
2852
3086
  {
2853
3087
  label: "Commission Rates",
2854
3088
  to: "/settings/commission-rates"
2855
- }
3089
+ },
3090
+ ...extensionNavItems
2856
3091
  ],
2857
3092
  [t2]
2858
3093
  );
2859
3094
  };
2860
3095
  var useDeveloperRoutes = () => {
2861
- const { t: t2 } = useTranslation9();
3096
+ const { t: t2 } = useTranslation10();
2862
3097
  return useMemo4(
2863
3098
  () => [
2864
3099
  {
@@ -2874,7 +3109,7 @@ var useDeveloperRoutes = () => {
2874
3109
  );
2875
3110
  };
2876
3111
  var useMyAccountRoutes = () => {
2877
- const { t: t2 } = useTranslation9();
3112
+ const { t: t2 } = useTranslation10();
2878
3113
  return useMemo4(
2879
3114
  () => [
2880
3115
  {
@@ -2895,31 +3130,31 @@ var SettingsSidebar = () => {
2895
3130
  const routes = useSettingRoutes();
2896
3131
  const developerRoutes = useDeveloperRoutes();
2897
3132
  const myAccountRoutes = useMyAccountRoutes();
2898
- const { t: t2 } = useTranslation9();
2899
- return /* @__PURE__ */ jsxs8("aside", { className: "relative flex flex-1 flex-col justify-between overflow-y-auto", children: [
2900
- /* @__PURE__ */ jsxs8("div", { className: "sticky top-0 bg-ui-bg-subtle", children: [
2901
- /* @__PURE__ */ jsx13(Header2, {}),
2902
- /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx13(Divider2, { variant: "dashed" }) })
3133
+ const { t: t2 } = useTranslation10();
3134
+ return /* @__PURE__ */ jsxs9("aside", { className: "relative flex flex-1 flex-col justify-between overflow-y-auto", children: [
3135
+ /* @__PURE__ */ jsxs9("div", { className: "sticky top-0 bg-ui-bg-subtle", children: [
3136
+ /* @__PURE__ */ jsx14(Header2, {}),
3137
+ /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) })
2903
3138
  ] }),
2904
- /* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col", children: [
2905
- /* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col overflow-y-auto", children: [
2906
- /* @__PURE__ */ jsx13(
3139
+ /* @__PURE__ */ jsxs9("div", { className: "flex flex-1 flex-col", children: [
3140
+ /* @__PURE__ */ jsxs9("div", { className: "flex flex-1 flex-col overflow-y-auto", children: [
3141
+ /* @__PURE__ */ jsx14(
2907
3142
  RadixCollapsibleSection,
2908
3143
  {
2909
3144
  label: t2("app.nav.settings.general"),
2910
3145
  items: routes
2911
3146
  }
2912
3147
  ),
2913
- /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx13(Divider2, { variant: "dashed" }) }),
2914
- /* @__PURE__ */ jsx13(
3148
+ /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) }),
3149
+ /* @__PURE__ */ jsx14(
2915
3150
  RadixCollapsibleSection,
2916
3151
  {
2917
3152
  label: t2("app.nav.settings.developer"),
2918
3153
  items: developerRoutes
2919
3154
  }
2920
3155
  ),
2921
- /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx13(Divider2, { variant: "dashed" }) }),
2922
- /* @__PURE__ */ jsx13(
3156
+ /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) }),
3157
+ /* @__PURE__ */ jsx14(
2923
3158
  RadixCollapsibleSection,
2924
3159
  {
2925
3160
  label: t2("app.nav.settings.myAccount"),
@@ -2927,20 +3162,20 @@ var SettingsSidebar = () => {
2927
3162
  }
2928
3163
  )
2929
3164
  ] }),
2930
- /* @__PURE__ */ jsx13("div", { className: "sticky bottom-0 bg-ui-bg-subtle", children: /* @__PURE__ */ jsx13(UserSection2, {}) })
3165
+ /* @__PURE__ */ jsx14("div", { className: "sticky bottom-0 bg-ui-bg-subtle", children: /* @__PURE__ */ jsx14(UserSection2, {}) })
2931
3166
  ] })
2932
3167
  ] });
2933
3168
  };
2934
3169
  var Header2 = () => {
2935
3170
  const [from, setFrom] = useState12("/orders");
2936
- const { t: t2 } = useTranslation9();
2937
- const location = useLocation7();
3171
+ const { t: t2 } = useTranslation10();
3172
+ const location = useLocation8();
2938
3173
  useEffect10(() => {
2939
3174
  if (location.state?.from) {
2940
3175
  setFrom(getSafeFromValue(location.state.from));
2941
3176
  }
2942
3177
  }, [location]);
2943
- return /* @__PURE__ */ jsx13("div", { className: "bg-ui-bg-subtle p-3", children: /* @__PURE__ */ jsx13(
3178
+ return /* @__PURE__ */ jsx14("div", { className: "bg-ui-bg-subtle p-3", children: /* @__PURE__ */ jsx14(
2944
3179
  Link4,
2945
3180
  {
2946
3181
  to: from,
@@ -2950,9 +3185,9 @@ var Header2 = () => {
2950
3185
  "hover:bg-ui-bg-subtle-hover",
2951
3186
  "focus-visible:shadow-borders-focus"
2952
3187
  ),
2953
- children: /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-x-2.5 px-2 py-1", children: [
2954
- /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx13(ArrowUturnLeft2, { className: "text-ui-fg-subtle" }) }),
2955
- /* @__PURE__ */ jsx13(Text6, { leading: "compact", weight: "plus", size: "small", children: t2("app.nav.settings.header") })
3188
+ children: /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-x-2.5 px-2 py-1", children: [
3189
+ /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx14(ArrowUturnLeft2, { className: "text-ui-fg-subtle" }) }),
3190
+ /* @__PURE__ */ jsx14(Text7, { leading: "compact", weight: "plus", size: "small", children: t2("app.nav.settings.header") })
2956
3191
  ] })
2957
3192
  }
2958
3193
  ) });
@@ -2961,77 +3196,21 @@ var RadixCollapsibleSection = ({
2961
3196
  label,
2962
3197
  items
2963
3198
  }) => {
2964
- return /* @__PURE__ */ jsxs8(RadixCollapsible2.Root, { defaultOpen: true, className: "py-3", children: [
2965
- /* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsxs8("div", { className: "flex h-7 items-center justify-between px-2 text-ui-fg-muted", children: [
2966
- /* @__PURE__ */ jsx13(Text6, { size: "small", leading: "compact", children: label }),
2967
- /* @__PURE__ */ jsx13(RadixCollapsible2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx13(IconButton5, { size: "2xsmall", variant: "transparent", className: "static", children: /* @__PURE__ */ jsx13(MinusMini, { className: "text-ui-fg-muted" }) }) })
3199
+ return /* @__PURE__ */ jsxs9(RadixCollapsible2.Root, { defaultOpen: true, className: "py-3", children: [
3200
+ /* @__PURE__ */ jsx14("div", { className: "px-3", children: /* @__PURE__ */ jsxs9("div", { className: "flex h-7 items-center justify-between px-2 text-ui-fg-muted", children: [
3201
+ /* @__PURE__ */ jsx14(Text7, { size: "small", leading: "compact", children: label }),
3202
+ /* @__PURE__ */ jsx14(RadixCollapsible2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx14(IconButton5, { size: "2xsmall", variant: "transparent", className: "static", children: /* @__PURE__ */ jsx14(MinusMini, { className: "text-ui-fg-muted" }) }) })
2968
3203
  ] }) }),
2969
- /* @__PURE__ */ jsx13(RadixCollapsible2.Content, { children: /* @__PURE__ */ jsx13("div", { className: "pt-0.5", children: /* @__PURE__ */ jsx13("nav", { className: "flex flex-col gap-y-0.5", children: items.map((setting) => /* @__PURE__ */ jsx13(NavItem, { type: "setting", ...setting }, setting.to)) }) }) })
3204
+ /* @__PURE__ */ jsx14(RadixCollapsible2.Content, { children: /* @__PURE__ */ jsx14("div", { className: "pt-0.5", children: /* @__PURE__ */ jsx14("nav", { className: "flex flex-col gap-y-0.5", children: items.map((setting) => /* @__PURE__ */ jsx14(NavItem, { type: "setting", ...setting }, setting.to)) }) }) })
2970
3205
  ] });
2971
3206
  };
2972
3207
  var UserSection2 = () => {
2973
- return /* @__PURE__ */ jsxs8("div", { children: [
2974
- /* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsx13(Divider2, { variant: "dashed" }) }),
2975
- /* @__PURE__ */ jsx13(UserMenu, {})
3208
+ return /* @__PURE__ */ jsxs9("div", { children: [
3209
+ /* @__PURE__ */ jsx14("div", { className: "px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) }),
3210
+ /* @__PURE__ */ jsx14(UserMenu, {})
2976
3211
  ] });
2977
3212
  };
2978
3213
 
2979
- // src/components/utilities/error-boundary/error-boundary.tsx
2980
- import { ExclamationCircle } from "@medusajs/icons";
2981
- import { Text as Text7 } from "@medusajs/ui";
2982
- import { useTranslation as useTranslation10 } from "react-i18next";
2983
- import { Navigate as Navigate2, useLocation as useLocation8, useRouteError } from "react-router-dom";
2984
- import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
2985
- var ErrorBoundary = () => {
2986
- const error = useRouteError();
2987
- const location = useLocation8();
2988
- const { t: t2 } = useTranslation10();
2989
- let code = null;
2990
- if (isClientError(error)) {
2991
- if (error.status === 401) {
2992
- return /* @__PURE__ */ jsx14(Navigate2, { to: "/login", state: { from: location }, replace: true });
2993
- }
2994
- code = error.status ?? null;
2995
- }
2996
- if (process.env.NODE_ENV === "development") {
2997
- console.error(error);
2998
- }
2999
- let title;
3000
- let message;
3001
- switch (code) {
3002
- case 400:
3003
- title = t2("errorBoundary.badRequestTitle");
3004
- message = t2("errorBoundary.badRequestMessage");
3005
- break;
3006
- case 404:
3007
- title = t2("errorBoundary.notFoundTitle");
3008
- message = t2("errorBoundary.notFoundMessage");
3009
- break;
3010
- case 500:
3011
- title = t2("errorBoundary.internalServerErrorTitle");
3012
- message = t2("errorBoundary.internalServerErrorMessage");
3013
- break;
3014
- default:
3015
- title = t2("errorBoundary.defaultTitle");
3016
- message = t2("errorBoundary.defaultMessage");
3017
- break;
3018
- }
3019
- return /* @__PURE__ */ jsx14("div", { className: "flex size-full min-h-[calc(100vh-57px-24px)] items-center justify-center", children: /* @__PURE__ */ jsx14("div", { className: "flex flex-col gap-y-6", children: /* @__PURE__ */ jsxs9("div", { className: "text-ui-fg-subtle flex flex-col items-center gap-y-3", children: [
3020
- /* @__PURE__ */ jsx14(ExclamationCircle, {}),
3021
- /* @__PURE__ */ jsxs9("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
3022
- /* @__PURE__ */ jsx14(Text7, { size: "small", leading: "compact", weight: "plus", children: title }),
3023
- /* @__PURE__ */ jsx14(
3024
- Text7,
3025
- {
3026
- size: "small",
3027
- className: "text-ui-fg-muted text-balance text-center",
3028
- children: message
3029
- }
3030
- )
3031
- ] })
3032
- ] }) }) });
3033
- };
3034
-
3035
3214
  // src/get-route-map.tsx
3036
3215
  import { jsx as jsx15 } from "react/jsx-runtime";
3037
3216
  function mergeRoutes(baseRoutes, customRoutes2) {
@@ -3083,19 +3262,19 @@ function getRouteMap({
3083
3262
  children: [
3084
3263
  {
3085
3264
  path: "",
3086
- lazy: () => import("./product-list-7WK2AWI2.js"),
3265
+ lazy: () => import("./product-list-635ZXM2D.js"),
3087
3266
  children: [
3088
3267
  {
3089
3268
  path: "create",
3090
- lazy: () => import("./product-create-C4GHUEM5.js")
3269
+ lazy: () => import("./product-create-NVBKO426.js")
3091
3270
  },
3092
3271
  {
3093
3272
  path: "import",
3094
- lazy: () => import("./product-import-ZEZE2JE6.js")
3273
+ lazy: () => import("./product-import-Q2CPHVNJ.js")
3095
3274
  },
3096
3275
  {
3097
3276
  path: "export",
3098
- lazy: () => import("./product-export-XTS7P5AD.js")
3277
+ lazy: () => import("./product-export-ULTY2SNJ.js")
3099
3278
  }
3100
3279
  ]
3101
3280
  },
@@ -3103,7 +3282,7 @@ function getRouteMap({
3103
3282
  path: ":id",
3104
3283
  errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3105
3284
  lazy: async () => {
3106
- const { Breadcrumb, loader } = await import("./product-detail-3UWUMNHC.js");
3285
+ const { Breadcrumb, loader } = await import("./product-detail-ZC37BGPC.js");
3107
3286
  return {
3108
3287
  Component: Outlet4,
3109
3288
  loader,
@@ -3115,27 +3294,27 @@ function getRouteMap({
3115
3294
  children: [
3116
3295
  {
3117
3296
  path: "",
3118
- lazy: () => import("./product-detail-3UWUMNHC.js"),
3297
+ lazy: () => import("./product-detail-ZC37BGPC.js"),
3119
3298
  children: [
3120
3299
  {
3121
3300
  path: "edit",
3122
- lazy: () => import("./product-edit-6EL6US22.js")
3301
+ lazy: () => import("./product-edit-LQJDUUVX.js")
3123
3302
  },
3124
3303
  {
3125
3304
  path: "edit-variant",
3126
- lazy: () => import("./product-variant-edit-KGLW5GXD.js")
3305
+ lazy: () => import("./product-variant-edit-66ZUIIMP.js")
3127
3306
  },
3128
3307
  {
3129
3308
  path: "sales-channels",
3130
- lazy: () => import("./product-sales-channels-WU3MSCV5.js")
3309
+ lazy: () => import("./product-sales-channels-LSN5DVWZ.js")
3131
3310
  },
3132
3311
  {
3133
3312
  path: "attributes",
3134
- lazy: () => import("./product-attributes-HNF4J53T.js")
3313
+ lazy: () => import("./product-attributes-NG4OSBIV.js")
3135
3314
  },
3136
3315
  {
3137
3316
  path: "organization",
3138
- lazy: () => import("./product-organization-NWS3NMD6.js")
3317
+ lazy: () => import("./product-organization-AFCELJ62.js")
3139
3318
  },
3140
3319
  {
3141
3320
  path: "shipping-profile",
@@ -3143,11 +3322,11 @@ function getRouteMap({
3143
3322
  },
3144
3323
  {
3145
3324
  path: "media",
3146
- lazy: () => import("./product-media-Z2DCRZSU.js")
3325
+ lazy: () => import("./product-media-ZMDAVPGI.js")
3147
3326
  },
3148
3327
  {
3149
3328
  path: "prices",
3150
- lazy: () => import("./product-prices-V63CFHI3.js")
3329
+ lazy: () => import("./product-prices-WMRIC7WM.js")
3151
3330
  },
3152
3331
  {
3153
3332
  path: "options/create",
@@ -3159,22 +3338,22 @@ function getRouteMap({
3159
3338
  },
3160
3339
  {
3161
3340
  path: "variants/create",
3162
- lazy: () => import("./product-create-variant-5MVBT5ST.js")
3341
+ lazy: () => import("./product-create-variant-CJPECBV4.js")
3163
3342
  },
3164
3343
  {
3165
3344
  path: "stock",
3166
- lazy: () => import("./product-stock-ZXNZZBJI.js")
3345
+ lazy: () => import("./product-stock-HF42WRSC.js")
3167
3346
  },
3168
3347
  {
3169
3348
  path: "metadata/edit",
3170
- lazy: () => import("./product-metadata-NBB5SRDN.js")
3349
+ lazy: () => import("./product-metadata-36JNWKCJ.js")
3171
3350
  }
3172
3351
  ]
3173
3352
  },
3174
3353
  {
3175
3354
  path: "variants/:variant_id",
3176
3355
  lazy: async () => {
3177
- const { Component, Breadcrumb, loader } = await import("./product-variant-detail-DXTUM4R7.js");
3356
+ const { Component, Breadcrumb, loader } = await import("./product-variant-detail-5WKYURFA.js");
3178
3357
  return {
3179
3358
  Component,
3180
3359
  loader,
@@ -3186,19 +3365,19 @@ function getRouteMap({
3186
3365
  children: [
3187
3366
  {
3188
3367
  path: "edit",
3189
- lazy: () => import("./product-variant-edit-KGLW5GXD.js")
3368
+ lazy: () => import("./product-variant-edit-66ZUIIMP.js")
3190
3369
  },
3191
3370
  {
3192
3371
  path: "prices",
3193
- lazy: () => import("./product-prices-V63CFHI3.js")
3372
+ lazy: () => import("./product-prices-WMRIC7WM.js")
3194
3373
  },
3195
3374
  {
3196
3375
  path: "manage-items",
3197
- lazy: () => import("./product-variant-manage-inventory-items-C77QHYRT.js")
3376
+ lazy: () => import("./product-variant-manage-inventory-items-CV2CC2PV.js")
3198
3377
  },
3199
3378
  {
3200
3379
  path: "metadata/edit",
3201
- lazy: () => import("./product-variant-metadata-H7J7SZNU.js")
3380
+ lazy: () => import("./product-variant-metadata-7N5F7DM5.js")
3202
3381
  }
3203
3382
  ]
3204
3383
  }
@@ -3215,11 +3394,11 @@ function getRouteMap({
3215
3394
  children: [
3216
3395
  {
3217
3396
  path: "",
3218
- lazy: () => import("./category-list-YPRENMVF.js"),
3397
+ lazy: () => import("./category-list-QBBFGHQM.js"),
3219
3398
  children: [
3220
3399
  {
3221
3400
  path: "create",
3222
- lazy: () => import("./category-create-VSH7BLNC.js")
3401
+ lazy: () => import("./category-create-UWBJGIED.js")
3223
3402
  },
3224
3403
  {
3225
3404
  path: "organize",
@@ -3230,7 +3409,7 @@ function getRouteMap({
3230
3409
  {
3231
3410
  path: ":id",
3232
3411
  lazy: async () => {
3233
- const { Component, Breadcrumb, loader } = await import("./category-detail-2U65E3CX.js");
3412
+ const { Component, Breadcrumb, loader } = await import("./category-detail-HGHR3R2R.js");
3234
3413
  return {
3235
3414
  Component,
3236
3415
  loader,
@@ -3242,11 +3421,11 @@ function getRouteMap({
3242
3421
  children: [
3243
3422
  {
3244
3423
  path: "edit",
3245
- lazy: () => import("./category-edit-CCHWEQER.js")
3424
+ lazy: () => import("./category-edit-ZDTTOXKZ.js")
3246
3425
  },
3247
3426
  {
3248
3427
  path: "products",
3249
- lazy: () => import("./category-products-FH4RIZKA.js")
3428
+ lazy: () => import("./category-products-XLCG2JR7.js")
3250
3429
  },
3251
3430
  {
3252
3431
  path: "organize",
@@ -3254,7 +3433,7 @@ function getRouteMap({
3254
3433
  },
3255
3434
  {
3256
3435
  path: "metadata/edit",
3257
- lazy: () => import("./categories-metadata-G7JDGW6O.js")
3436
+ lazy: () => import("./categories-metadata-LPSJNCME.js")
3258
3437
  }
3259
3438
  ]
3260
3439
  }
@@ -3269,12 +3448,12 @@ function getRouteMap({
3269
3448
  children: [
3270
3449
  {
3271
3450
  path: "",
3272
- lazy: () => import("./order-list-ASHM44MM.js")
3451
+ lazy: () => import("./order-list-7NH7LROU.js")
3273
3452
  },
3274
3453
  {
3275
3454
  path: ":id",
3276
3455
  lazy: async () => {
3277
- const { Component, Breadcrumb, loader } = await import("./order-detail-V2O5C4CX.js");
3456
+ const { Component, Breadcrumb, loader } = await import("./order-detail-C25NQSZN.js");
3278
3457
  return {
3279
3458
  Component,
3280
3459
  loader,
@@ -3286,59 +3465,59 @@ function getRouteMap({
3286
3465
  children: [
3287
3466
  {
3288
3467
  path: "fulfillment",
3289
- lazy: () => import("./order-create-fulfillment-7OP64TNJ.js")
3468
+ lazy: () => import("./order-create-fulfillment-E3J7ILOJ.js")
3290
3469
  },
3291
3470
  {
3292
3471
  path: "returns/:return_id/receive",
3293
- lazy: () => import("./order-receive-return-4SRRRBW6.js")
3472
+ lazy: () => import("./order-receive-return-FW5QZJBM.js")
3294
3473
  },
3295
3474
  {
3296
3475
  path: "allocate-items",
3297
- lazy: () => import("./order-allocate-items-DLVOSAC2.js")
3476
+ lazy: () => import("./order-allocate-items-VEEANPH7.js")
3298
3477
  },
3299
3478
  {
3300
3479
  path: ":f_id/create-shipment",
3301
- lazy: () => import("./order-create-shipment-URYCUNU6.js")
3480
+ lazy: () => import("./order-create-shipment-NBQ226NM.js")
3302
3481
  },
3303
3482
  {
3304
3483
  path: "returns",
3305
- lazy: () => import("./order-create-return-LH4LW5BZ.js")
3484
+ lazy: () => import("./order-create-return-L6DEDPJK.js")
3306
3485
  },
3307
3486
  {
3308
3487
  path: "claims",
3309
- lazy: () => import("./order-create-claim-UWNZUBL7.js")
3488
+ lazy: () => import("./order-create-claim-7WW6MXTT.js")
3310
3489
  },
3311
3490
  {
3312
3491
  path: "exchanges",
3313
- lazy: () => import("./order-create-exchange-OTIDP47E.js")
3492
+ lazy: () => import("./order-create-exchange-ELLWF3IY.js")
3314
3493
  },
3315
3494
  {
3316
3495
  path: "edits",
3317
- lazy: () => import("./order-create-edit-JD4UZ5GW.js")
3496
+ lazy: () => import("./order-create-edit-KAH6ZPLX.js")
3318
3497
  },
3319
3498
  {
3320
3499
  path: "refund",
3321
- lazy: () => import("./order-create-refund-U4UK5IZB.js")
3500
+ lazy: () => import("./order-create-refund-5QZBOSCA.js")
3322
3501
  },
3323
3502
  {
3324
3503
  path: "transfer",
3325
- lazy: () => import("./order-request-transfer-5AGKGFVY.js")
3504
+ lazy: () => import("./order-request-transfer-WD327YGL.js")
3326
3505
  },
3327
3506
  {
3328
3507
  path: "email",
3329
- lazy: () => import("./order-edit-email-CJ3MEZB6.js")
3508
+ lazy: () => import("./order-edit-email-5FA7X52X.js")
3330
3509
  },
3331
3510
  {
3332
3511
  path: "shipping-address",
3333
- lazy: () => import("./order-edit-shipping-address-SV4UVNBQ.js")
3512
+ lazy: () => import("./order-edit-shipping-address-BPU7OL2N.js")
3334
3513
  },
3335
3514
  {
3336
3515
  path: "billing-address",
3337
- lazy: () => import("./order-edit-billing-address-XRUEKX33.js")
3516
+ lazy: () => import("./order-edit-billing-address-NVRMPZEU.js")
3338
3517
  },
3339
3518
  {
3340
3519
  path: "metadata/edit",
3341
- lazy: () => import("./order-metadata-HIOSALZT.js")
3520
+ lazy: () => import("./order-metadata-47FUKENZ.js")
3342
3521
  }
3343
3522
  ]
3344
3523
  }
@@ -3353,16 +3532,16 @@ function getRouteMap({
3353
3532
  children: [
3354
3533
  {
3355
3534
  path: "",
3356
- lazy: () => import("./promotion-list-SJYMXQXT.js")
3535
+ lazy: () => import("./promotion-list-IN4VWEQN.js")
3357
3536
  },
3358
3537
  {
3359
3538
  path: "create",
3360
- lazy: () => import("./promotion-create-P2WR5RPH.js")
3539
+ lazy: () => import("./promotion-create-D77SANLX.js")
3361
3540
  },
3362
3541
  {
3363
3542
  path: ":id",
3364
3543
  lazy: async () => {
3365
- const { Component, Breadcrumb, loader } = await import("./promotion-detail-IO7V5CXR.js");
3544
+ const { Component, Breadcrumb, loader } = await import("./promotion-detail-MVFOMS4E.js");
3366
3545
  return {
3367
3546
  Component,
3368
3547
  loader,
@@ -3374,15 +3553,15 @@ function getRouteMap({
3374
3553
  children: [
3375
3554
  {
3376
3555
  path: "edit",
3377
- lazy: () => import("./promotion-edit-details-7Y2A5PPJ.js")
3556
+ lazy: () => import("./promotion-edit-details-YKS24GBD.js")
3378
3557
  },
3379
3558
  {
3380
3559
  path: "add-to-campaign",
3381
- lazy: () => import("./promotion-add-campaign-OEMV62HF.js")
3560
+ lazy: () => import("./promotion-add-campaign-B5SF72KC.js")
3382
3561
  },
3383
3562
  {
3384
3563
  path: ":ruleType/edit",
3385
- lazy: () => import("./edit-rules-E2564ZQB.js")
3564
+ lazy: () => import("./edit-rules-DPHJ7PQQ.js")
3386
3565
  }
3387
3566
  ]
3388
3567
  }
@@ -3397,17 +3576,17 @@ function getRouteMap({
3397
3576
  children: [
3398
3577
  {
3399
3578
  path: "",
3400
- lazy: () => import("./campaign-list-EAGDQZO3.js"),
3579
+ lazy: () => import("./campaign-list-SC7FLTRM.js"),
3401
3580
  children: []
3402
3581
  },
3403
3582
  {
3404
3583
  path: "create",
3405
- lazy: () => import("./campaign-create-2IIU3WTS.js")
3584
+ lazy: () => import("./campaign-create-B7XM2FZM.js")
3406
3585
  },
3407
3586
  {
3408
3587
  path: ":id",
3409
3588
  lazy: async () => {
3410
- const { Component, Breadcrumb, loader } = await import("./campaign-detail-4DO3S5UZ.js");
3589
+ const { Component, Breadcrumb, loader } = await import("./campaign-detail-7U4CQHU5.js");
3411
3590
  return {
3412
3591
  Component,
3413
3592
  loader,
@@ -3427,11 +3606,11 @@ function getRouteMap({
3427
3606
  },
3428
3607
  {
3429
3608
  path: "edit-budget",
3430
- lazy: () => import("./campaign-budget-edit-722ECPRI.js")
3609
+ lazy: () => import("./campaign-budget-edit-AIXCDGG3.js")
3431
3610
  },
3432
3611
  {
3433
3612
  path: "add-promotions",
3434
- lazy: () => import("./add-campaign-promotions-UVEH25GZ.js")
3613
+ lazy: () => import("./add-campaign-promotions-ZUXBF5G3.js")
3435
3614
  }
3436
3615
  ]
3437
3616
  }
@@ -3446,7 +3625,7 @@ function getRouteMap({
3446
3625
  children: [
3447
3626
  {
3448
3627
  path: "",
3449
- lazy: () => import("./collection-list-WUPG6AU2.js"),
3628
+ lazy: () => import("./collection-list-WDQOBHQN.js"),
3450
3629
  children: [
3451
3630
  {
3452
3631
  path: "create",
@@ -3457,7 +3636,7 @@ function getRouteMap({
3457
3636
  {
3458
3637
  path: ":id",
3459
3638
  lazy: async () => {
3460
- const { Component, Breadcrumb, loader } = await import("./collection-detail-Y4GGSHXX.js");
3639
+ const { Component, Breadcrumb, loader } = await import("./collection-detail-YJ3FV2C6.js");
3461
3640
  return {
3462
3641
  Component,
3463
3642
  loader,
@@ -3473,11 +3652,11 @@ function getRouteMap({
3473
3652
  },
3474
3653
  {
3475
3654
  path: "products",
3476
- lazy: () => import("./collection-add-products-RLTEE27D.js")
3655
+ lazy: () => import("./collection-add-products-IQ7M63BA.js")
3477
3656
  },
3478
3657
  {
3479
3658
  path: "metadata/edit",
3480
- lazy: () => import("./collection-metadata-CQWEZ4EQ.js")
3659
+ lazy: () => import("./collection-metadata-UZ3VN625.js")
3481
3660
  }
3482
3661
  ]
3483
3662
  }
@@ -3492,18 +3671,18 @@ function getRouteMap({
3492
3671
  children: [
3493
3672
  {
3494
3673
  path: "",
3495
- lazy: () => import("./price-list-list-VFHHTBLR.js"),
3674
+ lazy: () => import("./price-list-list-TBXQ5DOS.js"),
3496
3675
  children: [
3497
3676
  {
3498
3677
  path: "create",
3499
- lazy: () => import("./price-list-create-3NNWUS6L.js")
3678
+ lazy: () => import("./price-list-create-OK7YYLAB.js")
3500
3679
  }
3501
3680
  ]
3502
3681
  },
3503
3682
  {
3504
3683
  path: ":id",
3505
3684
  lazy: async () => {
3506
- const { Component, Breadcrumb, loader } = await import("./price-list-detail-324FZRK5.js");
3685
+ const { Component, Breadcrumb, loader } = await import("./price-list-detail-IGFSM77P.js");
3507
3686
  return {
3508
3687
  Component,
3509
3688
  loader,
@@ -3515,19 +3694,19 @@ function getRouteMap({
3515
3694
  children: [
3516
3695
  {
3517
3696
  path: "edit",
3518
- lazy: () => import("./price-list-edit-UU2XBKT3.js")
3697
+ lazy: () => import("./price-list-edit-KK7SHR7O.js")
3519
3698
  },
3520
3699
  {
3521
3700
  path: "configuration",
3522
- lazy: () => import("./price-list-configuration-GK4MA3BE.js")
3701
+ lazy: () => import("./price-list-configuration-XK3IZLLX.js")
3523
3702
  },
3524
3703
  {
3525
3704
  path: "products/add",
3526
- lazy: () => import("./price-list-prices-add-IBSLTMNK.js")
3705
+ lazy: () => import("./price-list-prices-add-7PGUONDK.js")
3527
3706
  },
3528
3707
  {
3529
3708
  path: "products/edit",
3530
- lazy: () => import("./price-list-prices-edit-AAVPX34P.js")
3709
+ lazy: () => import("./price-list-prices-edit-QVGBT6AI.js")
3531
3710
  }
3532
3711
  ]
3533
3712
  }
@@ -3542,7 +3721,7 @@ function getRouteMap({
3542
3721
  children: [
3543
3722
  {
3544
3723
  path: "",
3545
- lazy: () => import("./customer-list-DYQHKNJV.js"),
3724
+ lazy: () => import("./customer-list-BUUO6OF7.js"),
3546
3725
  children: [
3547
3726
  {
3548
3727
  path: "create",
@@ -3553,9 +3732,9 @@ function getRouteMap({
3553
3732
  {
3554
3733
  path: ":id",
3555
3734
  lazy: async () => {
3556
- const { Component, Breadcrumb, loader } = await import("./customer-detail-YS265DZS.js");
3735
+ const { Breadcrumb, loader } = await import("./customer-detail-N7CS4IJU.js");
3557
3736
  return {
3558
- Component,
3737
+ Component: Outlet4,
3559
3738
  loader,
3560
3739
  handle: {
3561
3740
  breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
@@ -3564,24 +3743,30 @@ function getRouteMap({
3564
3743
  },
3565
3744
  children: [
3566
3745
  {
3567
- path: "edit",
3568
- lazy: () => import("./customer-edit-F5UBFJIZ.js")
3569
- },
3570
- {
3571
- path: "create-address",
3572
- lazy: () => import("./customer-create-address-2LLOW6NZ.js")
3573
- },
3574
- {
3575
- path: "add-customer-groups",
3576
- lazy: () => import("./customers-add-customer-group-SD3KK6JE.js")
3577
- },
3578
- {
3579
- path: ":order_id/transfer",
3580
- lazy: () => import("./order-request-transfer-5AGKGFVY.js")
3581
- },
3582
- {
3583
- path: "metadata/edit",
3584
- lazy: () => import("./customer-metadata-6DDHIGDD.js")
3746
+ path: "",
3747
+ lazy: () => import("./customer-detail-N7CS4IJU.js"),
3748
+ children: [
3749
+ {
3750
+ path: "edit",
3751
+ lazy: () => import("./customer-edit-WDRZ6YUO.js")
3752
+ },
3753
+ {
3754
+ path: "create-address",
3755
+ lazy: () => import("./customer-create-address-GKWNPTZS.js")
3756
+ },
3757
+ {
3758
+ path: "add-customer-groups",
3759
+ lazy: () => import("./customers-add-customer-group-BKEV24N2.js")
3760
+ },
3761
+ {
3762
+ path: ":order_id/transfer",
3763
+ lazy: () => import("./order-request-transfer-WD327YGL.js")
3764
+ },
3765
+ {
3766
+ path: "metadata/edit",
3767
+ lazy: () => import("./customer-metadata-7GW4JRZR.js")
3768
+ }
3769
+ ]
3585
3770
  }
3586
3771
  ]
3587
3772
  }
@@ -3596,7 +3781,7 @@ function getRouteMap({
3596
3781
  children: [
3597
3782
  {
3598
3783
  path: "",
3599
- lazy: () => import("./customer-group-list-V2CGT3FT.js"),
3784
+ lazy: () => import("./customer-group-list-XOQ64CVR.js"),
3600
3785
  children: [
3601
3786
  {
3602
3787
  path: "create",
@@ -3607,7 +3792,7 @@ function getRouteMap({
3607
3792
  {
3608
3793
  path: ":id",
3609
3794
  lazy: async () => {
3610
- const { Component, Breadcrumb, loader } = await import("./customer-group-detail-CPONLZRF.js");
3795
+ const { Component, Breadcrumb, loader } = await import("./customer-group-detail-UCTY4FF7.js");
3611
3796
  return {
3612
3797
  Component,
3613
3798
  loader,
@@ -3623,11 +3808,11 @@ function getRouteMap({
3623
3808
  },
3624
3809
  {
3625
3810
  path: "add-customers",
3626
- lazy: () => import("./customer-group-add-customers-FTRCJHE7.js")
3811
+ lazy: () => import("./customer-group-add-customers-LCNDTLXR.js")
3627
3812
  },
3628
3813
  {
3629
3814
  path: "metadata/edit",
3630
- lazy: () => import("./customer-group-metadata-BITZXXFX.js")
3815
+ lazy: () => import("./customer-group-metadata-FMAZBXIK.js")
3631
3816
  }
3632
3817
  ]
3633
3818
  }
@@ -3642,12 +3827,12 @@ function getRouteMap({
3642
3827
  children: [
3643
3828
  {
3644
3829
  path: "",
3645
- lazy: () => import("./seller-list-W76S2T27.js")
3830
+ lazy: () => import("./seller-list-664H4SI5.js")
3646
3831
  },
3647
3832
  {
3648
3833
  path: ":id",
3649
3834
  lazy: async () => {
3650
- const { Component, Breadcrumb } = await import("./seller-details-EUCYPH4Z.js");
3835
+ const { Component, Breadcrumb } = await import("./seller-details-KROISMQC.js");
3651
3836
  return {
3652
3837
  Component,
3653
3838
  handle: {
@@ -3677,12 +3862,12 @@ function getRouteMap({
3677
3862
  children: [
3678
3863
  {
3679
3864
  path: "",
3680
- lazy: () => import("./payout-list-GE7E637R.js")
3865
+ lazy: () => import("./payout-list-XY2A5KYS.js")
3681
3866
  },
3682
3867
  {
3683
3868
  path: ":id",
3684
3869
  lazy: async () => {
3685
- const { Component, Breadcrumb, loader } = await import("./payout-detail-PRYOQSGQ.js");
3870
+ const { Component, Breadcrumb, loader } = await import("./payout-detail-MDD5SRK5.js");
3686
3871
  return {
3687
3872
  Component,
3688
3873
  loader,
@@ -3703,7 +3888,7 @@ function getRouteMap({
3703
3888
  children: [
3704
3889
  {
3705
3890
  path: "",
3706
- lazy: () => import("./reservation-list-X33SIPG3.js"),
3891
+ lazy: () => import("./reservation-list-OGPDB7WG.js"),
3707
3892
  children: [
3708
3893
  {
3709
3894
  path: "create",
@@ -3714,7 +3899,7 @@ function getRouteMap({
3714
3899
  {
3715
3900
  path: ":id",
3716
3901
  lazy: async () => {
3717
- const { Component, Breadcrumb, loader } = await import("./reservation-detail-J4M2EXRY.js");
3902
+ const { Component, Breadcrumb, loader } = await import("./reservation-detail-LZYEM5NW.js");
3718
3903
  return {
3719
3904
  Component,
3720
3905
  loader,
@@ -3726,11 +3911,11 @@ function getRouteMap({
3726
3911
  children: [
3727
3912
  {
3728
3913
  path: "edit",
3729
- lazy: () => import("./edit-reservation-SAKSTZTE.js")
3914
+ lazy: () => import("./edit-reservation-7UOWKFMF.js")
3730
3915
  },
3731
3916
  {
3732
3917
  path: "metadata/edit",
3733
- lazy: () => import("./reservation-metadata-MMHE4TPO.js")
3918
+ lazy: () => import("./reservation-metadata-WB42HSMD.js")
3734
3919
  }
3735
3920
  ]
3736
3921
  }
@@ -3745,22 +3930,22 @@ function getRouteMap({
3745
3930
  children: [
3746
3931
  {
3747
3932
  path: "",
3748
- lazy: () => import("./inventory-list-UJNDJFJS.js"),
3933
+ lazy: () => import("./inventory-list-3LWBPWVK.js"),
3749
3934
  children: [
3750
3935
  {
3751
3936
  path: "create",
3752
- lazy: () => import("./inventory-create-LYXHQR7Y.js")
3937
+ lazy: () => import("./inventory-create-QLEIHESO.js")
3753
3938
  },
3754
3939
  {
3755
3940
  path: "stock",
3756
- lazy: () => import("./inventory-stock-ZOM2ANKJ.js")
3941
+ lazy: () => import("./inventory-stock-G3GP4FZX.js")
3757
3942
  }
3758
3943
  ]
3759
3944
  },
3760
3945
  {
3761
3946
  path: ":id",
3762
3947
  lazy: async () => {
3763
- const { Component, Breadcrumb, loader } = await import("./inventory-detail-42GK24BA.js");
3948
+ const { Component, Breadcrumb, loader } = await import("./inventory-detail-BJT5WEV5.js");
3764
3949
  return {
3765
3950
  Component,
3766
3951
  loader,
@@ -3772,15 +3957,15 @@ function getRouteMap({
3772
3957
  children: [
3773
3958
  {
3774
3959
  path: "edit",
3775
- lazy: () => import("./edit-inventory-item-5PZZ3IAH.js")
3960
+ lazy: () => import("./edit-inventory-item-RECBP7OX.js")
3776
3961
  },
3777
3962
  {
3778
3963
  path: "attributes",
3779
- lazy: () => import("./edit-inventory-item-attributes-7PJQCUXL.js")
3964
+ lazy: () => import("./edit-inventory-item-attributes-2P3BMQJ5.js")
3780
3965
  },
3781
3966
  {
3782
3967
  path: "metadata/edit",
3783
- lazy: () => import("./inventory-metadata-OLR5ZMMN.js")
3968
+ lazy: () => import("./inventory-metadata-ZNHZQEMX.js")
3784
3969
  },
3785
3970
  {
3786
3971
  path: "locations",
@@ -3788,7 +3973,7 @@ function getRouteMap({
3788
3973
  },
3789
3974
  {
3790
3975
  path: "locations/:location_id",
3791
- lazy: () => import("./adjust-inventory-6Q53EEFB.js")
3976
+ lazy: () => import("./adjust-inventory-HZCWL6SC.js")
3792
3977
  }
3793
3978
  ]
3794
3979
  }
@@ -3820,14 +4005,14 @@ function getRouteMap({
3820
4005
  {
3821
4006
  path: "profile",
3822
4007
  errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3823
- lazy: () => import("./profile-detail-AWZ4EZ6R.js"),
4008
+ lazy: () => import("./profile-detail-EYNXOHGZ.js"),
3824
4009
  handle: {
3825
4010
  breadcrumb: () => t("profile.domain")
3826
4011
  },
3827
4012
  children: [
3828
4013
  {
3829
4014
  path: "edit",
3830
- lazy: () => import("./profile-edit-3GIVUYUM.js")
4015
+ lazy: () => import("./profile-edit-4HXBRWJ5.js")
3831
4016
  }
3832
4017
  ]
3833
4018
  },
@@ -3841,18 +4026,18 @@ function getRouteMap({
3841
4026
  children: [
3842
4027
  {
3843
4028
  path: "",
3844
- lazy: () => import("./region-list-PGWUOULN.js"),
4029
+ lazy: () => import("./region-list-L4FKHVJJ.js"),
3845
4030
  children: [
3846
4031
  {
3847
4032
  path: "create",
3848
- lazy: () => import("./region-create-3BCYTIDB.js")
4033
+ lazy: () => import("./region-create-UMJK3VGL.js")
3849
4034
  }
3850
4035
  ]
3851
4036
  },
3852
4037
  {
3853
4038
  path: ":id",
3854
4039
  lazy: async () => {
3855
- const { Component, Breadcrumb, loader } = await import("./region-detail-DIEFHHOM.js");
4040
+ const { Component, Breadcrumb, loader } = await import("./region-detail-OFZHX57G.js");
3856
4041
  return {
3857
4042
  Component,
3858
4043
  loader,
@@ -3864,15 +4049,15 @@ function getRouteMap({
3864
4049
  children: [
3865
4050
  {
3866
4051
  path: "edit",
3867
- lazy: () => import("./region-edit-7XER3THY.js")
4052
+ lazy: () => import("./region-edit-ODVSNJHM.js")
3868
4053
  },
3869
4054
  {
3870
4055
  path: "countries/add",
3871
- lazy: () => import("./region-add-countries-GVOTB5YX.js")
4056
+ lazy: () => import("./region-add-countries-YOGU74UR.js")
3872
4057
  },
3873
4058
  {
3874
4059
  path: "metadata/edit",
3875
- lazy: () => import("./region-metadata-IYIHJCTK.js")
4060
+ lazy: () => import("./region-metadata-JLHWQGTC.js")
3876
4061
  }
3877
4062
  ]
3878
4063
  }
@@ -3881,22 +4066,22 @@ function getRouteMap({
3881
4066
  {
3882
4067
  path: "marketplace",
3883
4068
  errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3884
- lazy: () => import("./marketplace-detail-OVWHCK5W.js"),
4069
+ lazy: () => import("./marketplace-detail-7KJMXXAJ.js"),
3885
4070
  handle: {
3886
4071
  breadcrumb: () => t("marketplace.domain")
3887
4072
  },
3888
4073
  children: [
3889
4074
  {
3890
4075
  path: "edit",
3891
- lazy: () => import("./marketplace-edit-WPOSY2WN.js")
4076
+ lazy: () => import("./marketplace-edit-GH2GQF3O.js")
3892
4077
  },
3893
4078
  {
3894
4079
  path: "currencies",
3895
- lazy: () => import("./marketplace-add-currencies-XQPZT237.js")
4080
+ lazy: () => import("./marketplace-add-currencies-CIGOPBO6.js")
3896
4081
  },
3897
4082
  {
3898
4083
  path: "metadata/edit",
3899
- lazy: () => import("./marketplace-metadata-GIYATM54.js")
4084
+ lazy: () => import("./marketplace-metadata-PHZ4PUWM.js")
3900
4085
  }
3901
4086
  ]
3902
4087
  },
@@ -3910,18 +4095,18 @@ function getRouteMap({
3910
4095
  children: [
3911
4096
  {
3912
4097
  path: "",
3913
- lazy: () => import("./commission-rate-list-FCQ3HXC7.js"),
4098
+ lazy: () => import("./commission-rate-list-WTDZLKUR.js"),
3914
4099
  children: [
3915
4100
  {
3916
4101
  path: "create",
3917
- lazy: () => import("./commission-rate-create-YK6GCP2R.js")
4102
+ lazy: () => import("./commission-rate-create-VC72GTV4.js")
3918
4103
  }
3919
4104
  ]
3920
4105
  },
3921
4106
  {
3922
4107
  path: ":id",
3923
4108
  lazy: async () => {
3924
- const { Component, Breadcrumb, loader } = await import("./commission-rate-detail-ANI37QHI.js");
4109
+ const { Component, Breadcrumb, loader } = await import("./commission-rate-detail-UQDIIMIK.js");
3925
4110
  return {
3926
4111
  Component,
3927
4112
  loader,
@@ -3933,7 +4118,7 @@ function getRouteMap({
3933
4118
  children: [
3934
4119
  {
3935
4120
  path: "edit",
3936
- lazy: () => import("./commission-rate-edit-5MPI53CE.js")
4121
+ lazy: () => import("./commission-rate-edit-AXJKJNFY.js")
3937
4122
  }
3938
4123
  ]
3939
4124
  }
@@ -3949,18 +4134,18 @@ function getRouteMap({
3949
4134
  children: [
3950
4135
  {
3951
4136
  path: "",
3952
- lazy: () => import("./user-list-S6BMNMKL.js"),
4137
+ lazy: () => import("./user-list-LNTZNT3D.js"),
3953
4138
  children: [
3954
4139
  {
3955
4140
  path: "invite",
3956
- lazy: () => import("./user-invite-ATAF42EH.js")
4141
+ lazy: () => import("./user-invite-OT73USBI.js")
3957
4142
  }
3958
4143
  ]
3959
4144
  },
3960
4145
  {
3961
4146
  path: ":id",
3962
4147
  lazy: async () => {
3963
- const { Component, Breadcrumb, loader } = await import("./user-detail-Q7ST2YKP.js");
4148
+ const { Component, Breadcrumb, loader } = await import("./user-detail-YNPBC5MN.js");
3964
4149
  return {
3965
4150
  Component,
3966
4151
  loader,
@@ -3976,7 +4161,7 @@ function getRouteMap({
3976
4161
  },
3977
4162
  {
3978
4163
  path: "metadata/edit",
3979
- lazy: () => import("./user-metadata-QFVK2VJX.js")
4164
+ lazy: () => import("./user-metadata-ZGTN4FRU.js")
3980
4165
  }
3981
4166
  ]
3982
4167
  }
@@ -3992,7 +4177,7 @@ function getRouteMap({
3992
4177
  children: [
3993
4178
  {
3994
4179
  path: "",
3995
- lazy: () => import("./sales-channel-list-2ZUNUM2T.js"),
4180
+ lazy: () => import("./sales-channel-list-LUZ4ZXCY.js"),
3996
4181
  children: [
3997
4182
  {
3998
4183
  path: "create",
@@ -4003,7 +4188,7 @@ function getRouteMap({
4003
4188
  {
4004
4189
  path: ":id",
4005
4190
  lazy: async () => {
4006
- const { Component, Breadcrumb, loader } = await import("./sales-channel-detail-RMU5QW3N.js");
4191
+ const { Component, Breadcrumb, loader } = await import("./sales-channel-detail-RRJG7U7R.js");
4007
4192
  return {
4008
4193
  Component,
4009
4194
  loader,
@@ -4019,11 +4204,11 @@ function getRouteMap({
4019
4204
  },
4020
4205
  {
4021
4206
  path: "add-products",
4022
- lazy: () => import("./sales-channel-add-products-GP7TMMKB.js")
4207
+ lazy: () => import("./sales-channel-add-products-EOWFSO35.js")
4023
4208
  },
4024
4209
  {
4025
4210
  path: "metadata/edit",
4026
- lazy: () => import("./sales-channel-metadata-QF5KEN7C.js")
4211
+ lazy: () => import("./sales-channel-metadata-5CLXRNQF.js")
4027
4212
  }
4028
4213
  ]
4029
4214
  }
@@ -4039,11 +4224,11 @@ function getRouteMap({
4039
4224
  children: [
4040
4225
  {
4041
4226
  path: "",
4042
- lazy: () => import("./location-list-KVFFPEIV.js")
4227
+ lazy: () => import("./location-list-UG6B47NP.js")
4043
4228
  },
4044
4229
  {
4045
4230
  path: "create",
4046
- lazy: () => import("./location-create-HHOJPTDK.js")
4231
+ lazy: () => import("./location-create-FQT3BJGV.js")
4047
4232
  },
4048
4233
  {
4049
4234
  path: "shipping-profiles",
@@ -4054,7 +4239,7 @@ function getRouteMap({
4054
4239
  children: [
4055
4240
  {
4056
4241
  path: "",
4057
- lazy: () => import("./shipping-profiles-list-FUW4FXLC.js"),
4242
+ lazy: () => import("./shipping-profiles-list-AL4EJSJY.js"),
4058
4243
  children: [
4059
4244
  {
4060
4245
  path: "create",
@@ -4065,7 +4250,7 @@ function getRouteMap({
4065
4250
  {
4066
4251
  path: ":shipping_profile_id",
4067
4252
  lazy: async () => {
4068
- const { Component, Breadcrumb, loader } = await import("./shipping-profile-detail-WHKHB2OQ.js");
4253
+ const { Component, Breadcrumb, loader } = await import("./shipping-profile-detail-RIIAX7VE.js");
4069
4254
  return {
4070
4255
  Component,
4071
4256
  loader,
@@ -4077,7 +4262,7 @@ function getRouteMap({
4077
4262
  children: [
4078
4263
  {
4079
4264
  path: "metadata/edit",
4080
- lazy: () => import("./shipping-profile-metadata-BJFUYS5L.js")
4265
+ lazy: () => import("./shipping-profile-metadata-7WDHFEEH.js")
4081
4266
  }
4082
4267
  ]
4083
4268
  }
@@ -4093,18 +4278,18 @@ function getRouteMap({
4093
4278
  children: [
4094
4279
  {
4095
4280
  path: "",
4096
- lazy: () => import("./shipping-option-type-list-4A7FT4P5.js"),
4281
+ lazy: () => import("./shipping-option-type-list-IOSOE33S.js"),
4097
4282
  children: [
4098
4283
  {
4099
4284
  path: "create",
4100
- lazy: () => import("./shipping-option-type-create-KBQMPNIW.js")
4285
+ lazy: () => import("./shipping-option-type-create-42URKECR.js")
4101
4286
  }
4102
4287
  ]
4103
4288
  },
4104
4289
  {
4105
4290
  path: ":id",
4106
4291
  lazy: async () => {
4107
- const { Component, Breadcrumb, loader } = await import("./shipping-option-type-detail-CFGKF7NV.js");
4292
+ const { Component, Breadcrumb, loader } = await import("./shipping-option-type-detail-2RY3NHRO.js");
4108
4293
  return {
4109
4294
  Component,
4110
4295
  loader,
@@ -4116,7 +4301,7 @@ function getRouteMap({
4116
4301
  children: [
4117
4302
  {
4118
4303
  path: "edit",
4119
- lazy: () => import("./shipping-option-type-edit-S3R6JBFV.js")
4304
+ lazy: () => import("./shipping-option-type-edit-VLFV2AR4.js")
4120
4305
  }
4121
4306
  ]
4122
4307
  }
@@ -4125,7 +4310,7 @@ function getRouteMap({
4125
4310
  {
4126
4311
  path: ":location_id",
4127
4312
  lazy: async () => {
4128
- const { Component, Breadcrumb, loader } = await import("./location-detail-XO4RRCAU.js");
4313
+ const { Component, Breadcrumb, loader } = await import("./location-detail-N7J6PEAP.js");
4129
4314
  return {
4130
4315
  Component,
4131
4316
  loader,
@@ -4137,22 +4322,22 @@ function getRouteMap({
4137
4322
  children: [
4138
4323
  {
4139
4324
  path: "edit",
4140
- lazy: () => import("./location-edit-2NAOR4DV.js")
4325
+ lazy: () => import("./location-edit-RTPPP4KP.js")
4141
4326
  },
4142
4327
  {
4143
4328
  path: "sales-channels",
4144
- lazy: () => import("./location-sales-channels-BJUJNBQQ.js")
4329
+ lazy: () => import("./location-sales-channels-3IGHCJEN.js")
4145
4330
  },
4146
4331
  {
4147
4332
  path: "fulfillment-providers",
4148
- lazy: () => import("./location-fulfillment-providers-6T27UNF7.js")
4333
+ lazy: () => import("./location-fulfillment-providers-BHCY2MYC.js")
4149
4334
  },
4150
4335
  {
4151
4336
  path: "fulfillment-set/:fset_id",
4152
4337
  children: [
4153
4338
  {
4154
4339
  path: "service-zones/create",
4155
- lazy: () => import("./location-service-zone-create-IYKQNCNO.js")
4340
+ lazy: () => import("./location-service-zone-create-AIVG7HTM.js")
4156
4341
  },
4157
4342
  {
4158
4343
  path: "service-zone/:zone_id",
@@ -4163,25 +4348,25 @@ function getRouteMap({
4163
4348
  },
4164
4349
  {
4165
4350
  path: "areas",
4166
- lazy: () => import("./location-service-zone-manage-areas-L7BQTR7S.js")
4351
+ lazy: () => import("./location-service-zone-manage-areas-EZSV25CP.js")
4167
4352
  },
4168
4353
  {
4169
4354
  path: "shipping-option",
4170
4355
  children: [
4171
4356
  {
4172
4357
  path: "create",
4173
- lazy: () => import("./location-service-zone-shipping-option-create-PSPX634E.js")
4358
+ lazy: () => import("./location-service-zone-shipping-option-create-GYPW6SSN.js")
4174
4359
  },
4175
4360
  {
4176
4361
  path: ":so_id",
4177
4362
  children: [
4178
4363
  {
4179
4364
  path: "edit",
4180
- lazy: () => import("./location-service-zone-shipping-option-edit-SSMGORBF.js")
4365
+ lazy: () => import("./location-service-zone-shipping-option-edit-E3GN4ZF5.js")
4181
4366
  },
4182
4367
  {
4183
4368
  path: "pricing",
4184
- lazy: () => import("./location-service-zone-shipping-option-pricing-HC7Z4BVU.js")
4369
+ lazy: () => import("./location-service-zone-shipping-option-pricing-7VMPXDWX.js")
4185
4370
  }
4186
4371
  ]
4187
4372
  }
@@ -4205,18 +4390,18 @@ function getRouteMap({
4205
4390
  children: [
4206
4391
  {
4207
4392
  path: "",
4208
- lazy: () => import("./product-tag-list-I6M6TAYM.js"),
4393
+ lazy: () => import("./product-tag-list-XFHGJBRF.js"),
4209
4394
  children: [
4210
4395
  {
4211
4396
  path: "create",
4212
- lazy: () => import("./product-tag-create-LL35OFZM.js")
4397
+ lazy: () => import("./product-tag-create-VCRDLR27.js")
4213
4398
  }
4214
4399
  ]
4215
4400
  },
4216
4401
  {
4217
4402
  path: ":id",
4218
4403
  lazy: async () => {
4219
- const { Component, Breadcrumb, loader } = await import("./product-tag-detail-E7VYBISE.js");
4404
+ const { Component, Breadcrumb, loader } = await import("./product-tag-detail-OJLYO3Q5.js");
4220
4405
  return {
4221
4406
  Component,
4222
4407
  loader,
@@ -4228,11 +4413,11 @@ function getRouteMap({
4228
4413
  children: [
4229
4414
  {
4230
4415
  path: "edit",
4231
- lazy: () => import("./product-tag-edit-6XBZCCED.js")
4416
+ lazy: () => import("./product-tag-edit-BYE7UP54.js")
4232
4417
  },
4233
4418
  {
4234
4419
  path: "metadata/edit",
4235
- lazy: () => import("./product-tag-metadata-UGO4RUFU.js")
4420
+ lazy: () => import("./product-tag-metadata-ADHNZA2H.js")
4236
4421
  }
4237
4422
  ]
4238
4423
  }
@@ -4248,7 +4433,7 @@ function getRouteMap({
4248
4433
  children: [
4249
4434
  {
4250
4435
  path: "",
4251
- lazy: () => import("./product-type-list-T5KO5J3W.js"),
4436
+ lazy: () => import("./product-type-list-H5EQHCXS.js"),
4252
4437
  children: [
4253
4438
  {
4254
4439
  path: "create",
@@ -4259,7 +4444,7 @@ function getRouteMap({
4259
4444
  {
4260
4445
  path: ":id",
4261
4446
  lazy: async () => {
4262
- const { Component, Breadcrumb, loader } = await import("./product-type-detail-JI4DF7WR.js");
4447
+ const { Component, Breadcrumb, loader } = await import("./product-type-detail-J4UA4AEM.js");
4263
4448
  return {
4264
4449
  Component,
4265
4450
  loader,
@@ -4275,7 +4460,7 @@ function getRouteMap({
4275
4460
  },
4276
4461
  {
4277
4462
  path: "metadata/edit",
4278
- lazy: () => import("./product-type-metadata-ZKOZNZE3.js")
4463
+ lazy: () => import("./product-type-metadata-UY22KDAN.js")
4279
4464
  }
4280
4465
  ]
4281
4466
  }
@@ -4294,7 +4479,7 @@ function getRouteMap({
4294
4479
  children: [
4295
4480
  {
4296
4481
  path: "",
4297
- lazy: () => import("./api-key-management-list-VYQ4AVSX.js"),
4482
+ lazy: () => import("./api-key-management-list-2D4WKI6Y.js"),
4298
4483
  children: [
4299
4484
  {
4300
4485
  path: "create",
@@ -4307,7 +4492,7 @@ function getRouteMap({
4307
4492
  {
4308
4493
  path: ":id",
4309
4494
  lazy: async () => {
4310
- const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-RQW5RC5F.js");
4495
+ const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-SKJNAZ5L.js");
4311
4496
  return {
4312
4497
  Component,
4313
4498
  loader,
@@ -4323,7 +4508,7 @@ function getRouteMap({
4323
4508
  },
4324
4509
  {
4325
4510
  path: "sales-channels",
4326
- lazy: () => import("./api-key-management-sales-channels-RDE5YSYK.js")
4511
+ lazy: () => import("./api-key-management-sales-channels-C7EWPHC2.js")
4327
4512
  }
4328
4513
  ]
4329
4514
  }
@@ -4342,7 +4527,7 @@ function getRouteMap({
4342
4527
  children: [
4343
4528
  {
4344
4529
  path: "",
4345
- lazy: () => import("./api-key-management-list-VYQ4AVSX.js"),
4530
+ lazy: () => import("./api-key-management-list-2D4WKI6Y.js"),
4346
4531
  children: [
4347
4532
  {
4348
4533
  path: "create",
@@ -4355,7 +4540,7 @@ function getRouteMap({
4355
4540
  {
4356
4541
  path: ":id",
4357
4542
  lazy: async () => {
4358
- const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-RQW5RC5F.js");
4543
+ const { Component, Breadcrumb, loader } = await import("./api-key-management-detail-SKJNAZ5L.js");
4359
4544
  return {
4360
4545
  Component,
4361
4546
  loader,
@@ -4382,11 +4567,11 @@ function getRouteMap({
4382
4567
  children: [
4383
4568
  {
4384
4569
  path: "",
4385
- lazy: () => import("./tax-region-list-D7HWEZUR.js"),
4570
+ lazy: () => import("./tax-region-list-JTZ7KZCX.js"),
4386
4571
  children: [
4387
4572
  {
4388
4573
  path: "create",
4389
- lazy: () => import("./tax-region-create-KTFZNQCZ.js")
4574
+ lazy: () => import("./tax-region-create-UOTLTCOP.js")
4390
4575
  }
4391
4576
  ]
4392
4577
  },
@@ -4401,7 +4586,7 @@ function getRouteMap({
4401
4586
  {
4402
4587
  path: "",
4403
4588
  lazy: async () => {
4404
- const { Component } = await import("./tax-region-detail-L3EB6JSF.js");
4589
+ const { Component } = await import("./tax-region-detail-CA2W5W6A.js");
4405
4590
  return {
4406
4591
  Component
4407
4592
  };
@@ -4409,19 +4594,19 @@ function getRouteMap({
4409
4594
  children: [
4410
4595
  {
4411
4596
  path: "edit",
4412
- lazy: () => import("./tax-region-edit-H2ORQVEW.js")
4597
+ lazy: () => import("./tax-region-edit-7O2Z3EYC.js")
4413
4598
  },
4414
4599
  {
4415
4600
  path: "provinces/create",
4416
- lazy: () => import("./tax-region-province-create-7BMYABJ6.js")
4601
+ lazy: () => import("./tax-region-province-create-RFYCUDER.js")
4417
4602
  },
4418
4603
  {
4419
4604
  path: "overrides/create",
4420
- lazy: () => import("./tax-region-tax-override-create-IDGG732M.js")
4605
+ lazy: () => import("./tax-region-tax-override-create-WIWUNXW6.js")
4421
4606
  },
4422
4607
  {
4423
4608
  path: "overrides/:tax_rate_id/edit",
4424
- lazy: () => import("./tax-region-tax-override-edit-NSBZBBZA.js")
4609
+ lazy: () => import("./tax-region-tax-override-edit-SWROFQTP.js")
4425
4610
  },
4426
4611
  {
4427
4612
  path: "tax-rates/create",
@@ -4433,14 +4618,14 @@ function getRouteMap({
4433
4618
  },
4434
4619
  {
4435
4620
  path: "metadata/edit",
4436
- lazy: () => import("./tax-region-metadata-2PYZ5ECB.js")
4621
+ lazy: () => import("./tax-region-metadata-VQ57FSEM.js")
4437
4622
  }
4438
4623
  ]
4439
4624
  },
4440
4625
  {
4441
4626
  path: "provinces/:province_id",
4442
4627
  lazy: async () => {
4443
- const { Component, Breadcrumb, loader } = await import("./tax-region-province-detail-PB7RFWJ4.js");
4628
+ const { Component, Breadcrumb, loader } = await import("./tax-region-province-detail-ZHLX4FF4.js");
4444
4629
  return {
4445
4630
  Component,
4446
4631
  loader,
@@ -4460,11 +4645,11 @@ function getRouteMap({
4460
4645
  },
4461
4646
  {
4462
4647
  path: "overrides/create",
4463
- lazy: () => import("./tax-region-tax-override-create-IDGG732M.js")
4648
+ lazy: () => import("./tax-region-tax-override-create-WIWUNXW6.js")
4464
4649
  },
4465
4650
  {
4466
4651
  path: "overrides/:tax_rate_id/edit",
4467
- lazy: () => import("./tax-region-tax-override-edit-NSBZBBZA.js")
4652
+ lazy: () => import("./tax-region-tax-override-edit-SWROFQTP.js")
4468
4653
  }
4469
4654
  ]
4470
4655
  }
@@ -4481,7 +4666,7 @@ function getRouteMap({
4481
4666
  children: [
4482
4667
  {
4483
4668
  path: "",
4484
- lazy: () => import("./return-reason-list-MRYG7ZK7.js"),
4669
+ lazy: () => import("./return-reason-list-6ICMSVKF.js"),
4485
4670
  children: [
4486
4671
  {
4487
4672
  path: "create",
@@ -4509,18 +4694,18 @@ function getRouteMap({
4509
4694
  children: [
4510
4695
  {
4511
4696
  path: "",
4512
- lazy: () => import("./refund-reason-list-ECQKWA2M.js"),
4697
+ lazy: () => import("./refund-reason-list-DJZZC7KK.js"),
4513
4698
  children: [
4514
4699
  {
4515
4700
  path: "create",
4516
- lazy: () => import("./refund-reason-create-PTHFUT2D.js")
4701
+ lazy: () => import("./refund-reason-create-BHI5XXZC.js")
4517
4702
  },
4518
4703
  {
4519
4704
  path: ":id",
4520
4705
  children: [
4521
4706
  {
4522
4707
  path: "edit",
4523
- lazy: () => import("./refund-reason-edit-WEEQQGYO.js")
4708
+ lazy: () => import("./refund-reason-edit-UWWYC4OB.js")
4524
4709
  }
4525
4710
  ]
4526
4711
  }
@@ -4542,15 +4727,15 @@ function getRouteMap({
4542
4727
  children: [
4543
4728
  {
4544
4729
  path: "/login",
4545
- lazy: () => import("./login-U5WERLJC.js")
4730
+ lazy: () => import("./login-2HSCF4ZB.js")
4546
4731
  },
4547
4732
  {
4548
4733
  path: "/reset-password",
4549
- lazy: () => import("./reset-password-WNANNJDX.js")
4734
+ lazy: () => import("./reset-password-Q7Y4FWRE.js")
4550
4735
  },
4551
4736
  {
4552
4737
  path: "/invite",
4553
- lazy: () => import("./invite-CSXH7VAO.js")
4738
+ lazy: () => import("./invite-AXGDIENO.js")
4554
4739
  },
4555
4740
  ...customPublicRoutes,
4556
4741
  {
@@ -4564,132 +4749,6 @@ function getRouteMap({
4564
4749
  ];
4565
4750
  }
4566
4751
 
4567
- // src/utils/routes.ts
4568
- var createBranchRoute = (segment) => ({
4569
- path: segment,
4570
- children: []
4571
- });
4572
- var createLeafRoute = (Component, loader, handle, path = "") => ({
4573
- path,
4574
- ErrorBoundary,
4575
- async lazy() {
4576
- const result = { Component };
4577
- if (loader) {
4578
- result.loader = loader;
4579
- }
4580
- if (handle) {
4581
- result.handle = handle;
4582
- }
4583
- return result;
4584
- }
4585
- });
4586
- var createParallelRoute = (path, Component, loader, handle) => ({
4587
- path,
4588
- async lazy() {
4589
- const result = { Component };
4590
- if (loader) {
4591
- result.loader = loader;
4592
- }
4593
- if (handle) {
4594
- result.handle = handle;
4595
- }
4596
- return result;
4597
- }
4598
- });
4599
- var processParallelRoutes = (parallelRoutes, currentFullPath) => {
4600
- return parallelRoutes?.map(({ path, Component, loader, handle }) => {
4601
- const childPath = path?.replace(currentFullPath, "").replace(/^\/+/, "");
4602
- if (!childPath) {
4603
- return null;
4604
- }
4605
- return createParallelRoute(childPath, Component, loader, handle);
4606
- }).filter(Boolean);
4607
- };
4608
- var addRoute = (pathSegments, Component, currentLevel, loader, handle, parallelRoutes, fullPath, componentPath) => {
4609
- if (!pathSegments.length) {
4610
- return;
4611
- }
4612
- const [currentSegment, ...remainingSegments] = pathSegments;
4613
- let route = currentLevel.find((r) => r.path === currentSegment);
4614
- if (!route) {
4615
- route = createBranchRoute(currentSegment);
4616
- currentLevel.push(route);
4617
- }
4618
- const currentFullPath = fullPath ? `${fullPath}/${currentSegment}` : currentSegment;
4619
- const isComponentSegment = currentFullPath === componentPath;
4620
- if (isComponentSegment || remainingSegments.length === 0) {
4621
- route.children || (route.children = []);
4622
- if (handle) {
4623
- route.handle = handle;
4624
- }
4625
- if (loader) {
4626
- route.loader = loader;
4627
- }
4628
- if (currentSegment === "*?" || currentSegment === "*") {
4629
- const leaf = createLeafRoute(Component, loader, handle, currentSegment);
4630
- leaf.children = processParallelRoutes(parallelRoutes, currentFullPath);
4631
- Object.assign(route, leaf);
4632
- } else {
4633
- const leaf = createLeafRoute(Component, loader);
4634
- leaf.children = processParallelRoutes(parallelRoutes, currentFullPath);
4635
- route.children.push(leaf);
4636
- }
4637
- if (remainingSegments.length > 0) {
4638
- addRoute(
4639
- remainingSegments,
4640
- Component,
4641
- route.children,
4642
- void 0,
4643
- void 0,
4644
- void 0,
4645
- currentFullPath
4646
- );
4647
- }
4648
- } else {
4649
- route.children || (route.children = []);
4650
- addRoute(
4651
- remainingSegments,
4652
- Component,
4653
- route.children,
4654
- loader,
4655
- handle,
4656
- parallelRoutes,
4657
- currentFullPath,
4658
- componentPath
4659
- );
4660
- }
4661
- };
4662
- var createRouteMap = (routes, ignore) => {
4663
- const root = [];
4664
- routes.forEach(({ path, Component, loader, handle, children }) => {
4665
- const cleanedPath = ignore ? path.replace(ignore, "").replace(/^\/+/, "") : path.replace(/^\/+/, "");
4666
- const pathSegments = cleanedPath.split("/").filter(Boolean);
4667
- addRoute(
4668
- pathSegments,
4669
- Component,
4670
- root,
4671
- loader,
4672
- handle,
4673
- children,
4674
- void 0,
4675
- path
4676
- );
4677
- });
4678
- return root;
4679
- };
4680
- var settingsRouteRegex = /^\/settings\//;
4681
- var getRoutesByType = (routes, type) => {
4682
- return routes.filter((route) => {
4683
- if (type === "public") {
4684
- return route.isPublic === true;
4685
- }
4686
- if (type === "settings") {
4687
- return !route.isPublic && settingsRouteRegex.test(route.path);
4688
- }
4689
- return !route.isPublic && !settingsRouteRegex.test(route.path);
4690
- });
4691
- };
4692
-
4693
4752
  // src/app.tsx
4694
4753
  import { useMemo as useMemo5 } from "react";
4695
4754
  import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
@@ -4712,258 +4771,6 @@ function App() {
4712
4771
  /* @__PURE__ */ jsx16(Toaster, {})
4713
4772
  ] }) }) }) });
4714
4773
  }
4715
-
4716
- // src/components/tabbed-form/tabbed-form.tsx
4717
- import { Button as Button2, ProgressTabs } from "@medusajs/ui";
4718
- import {
4719
- Children as Children2,
4720
- createContext as createContext5,
4721
- useContext as useContext5,
4722
- useMemo as useMemo7
4723
- } from "react";
4724
- import { useTranslation as useTranslation11 } from "react-i18next";
4725
-
4726
- // src/components/tabbed-form/use-tab-management.ts
4727
- import { useCallback as useCallback6, useEffect as useEffect11, useMemo as useMemo6, useState as useState13 } from "react";
4728
- var useTabManagement = ({
4729
- tabs,
4730
- form
4731
- }) => {
4732
- const visibleTabs = useMemo6(
4733
- () => tabs.filter((t2) => !t2.isVisible || t2.isVisible(form)),
4734
- [tabs, form]
4735
- );
4736
- const [activeTabId, setActiveTabId] = useState13(
4737
- visibleTabs[0]?.id ?? ""
4738
- );
4739
- const [tabState, setTabState] = useState13(() => {
4740
- const state = {};
4741
- visibleTabs.forEach((t2, i) => {
4742
- state[t2.id] = i === 0 ? "in-progress" : "not-started";
4743
- });
4744
- return state;
4745
- });
4746
- useEffect11(() => {
4747
- const newState = {};
4748
- const activeIndex2 = visibleTabs.findIndex((t2) => t2.id === activeTabId);
4749
- visibleTabs.forEach((t2, i) => {
4750
- if (i < activeIndex2) {
4751
- newState[t2.id] = "completed";
4752
- } else if (i === activeIndex2) {
4753
- newState[t2.id] = "in-progress";
4754
- } else {
4755
- newState[t2.id] = tabState[t2.id] ?? "not-started";
4756
- }
4757
- });
4758
- setTabState(newState);
4759
- }, [activeTabId, visibleTabs]);
4760
- const activeIndex = visibleTabs.findIndex((t2) => t2.id === activeTabId);
4761
- const isLastTab = activeIndex === visibleTabs.length - 1;
4762
- const onNext = useCallback6(async () => {
4763
- const valid = await form.trigger();
4764
- if (!valid) {
4765
- return;
4766
- }
4767
- if (activeIndex < visibleTabs.length - 1) {
4768
- setActiveTabId(visibleTabs[activeIndex + 1].id);
4769
- }
4770
- }, [form, activeIndex, visibleTabs]);
4771
- const onTabChange = useCallback6(
4772
- async (tabId) => {
4773
- const valid = await form.trigger();
4774
- if (!valid) {
4775
- return;
4776
- }
4777
- setActiveTabId(tabId);
4778
- },
4779
- [form]
4780
- );
4781
- return {
4782
- activeTabId,
4783
- setActiveTabId,
4784
- tabState,
4785
- visibleTabs,
4786
- isLastTab,
4787
- onNext,
4788
- onTabChange
4789
- };
4790
- };
4791
-
4792
- // src/components/tabbed-form/tabbed-form.tsx
4793
- import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
4794
- var TabbedFormContext = createContext5(null);
4795
- var useTabbedForm = () => {
4796
- const form = useContext5(TabbedFormContext);
4797
- if (!form) {
4798
- throw new Error("useTabbedForm must be used within a TabbedForm");
4799
- }
4800
- return form;
4801
- };
4802
- function resolveTabMeta(child) {
4803
- const type = child.type;
4804
- const meta = type?._tabMeta;
4805
- if (!meta && !child.props?.id) {
4806
- return null;
4807
- }
4808
- return {
4809
- id: child.props?.id ?? meta?.id ?? "",
4810
- labelKey: meta?.labelKey ?? "",
4811
- label: child.props?.label,
4812
- validationFields: child.props?.validationFields ?? meta?.validationFields,
4813
- isVisible: child.props?.isVisible ?? meta?.isVisible
4814
- };
4815
- }
4816
- function collectTabs(children) {
4817
- const tabs = [];
4818
- const elements = [];
4819
- Children2.forEach(children, (child) => {
4820
- if (!child || typeof child !== "object" || !("type" in child)) {
4821
- return;
4822
- }
4823
- const meta = resolveTabMeta(child);
4824
- if (meta) {
4825
- tabs.push(meta);
4826
- elements.push(child);
4827
- }
4828
- });
4829
- return { tabs, elements };
4830
- }
4831
- function Root({
4832
- form,
4833
- onSubmit,
4834
- children,
4835
- isLoading,
4836
- footer,
4837
- transformTabs
4838
- }) {
4839
- const { t: t2 } = useTranslation11();
4840
- const { tabs: rawTabs, elements } = useMemo7(
4841
- () => collectTabs(children),
4842
- [children]
4843
- );
4844
- const tabs = useMemo7(
4845
- () => transformTabs ? transformTabs(rawTabs) : rawTabs,
4846
- [transformTabs, rawTabs]
4847
- );
4848
- const {
4849
- activeTabId,
4850
- tabState,
4851
- visibleTabs,
4852
- isLastTab,
4853
- onNext,
4854
- onTabChange
4855
- } = useTabManagement({
4856
- tabs,
4857
- form
4858
- });
4859
- const visibleElements = elements.filter((el) => {
4860
- const meta = resolveTabMeta(el);
4861
- return meta && visibleTabs.some((vt) => vt.id === meta.id);
4862
- });
4863
- return /* @__PURE__ */ jsx17(TabbedFormContext.Provider, { value: form, children: /* @__PURE__ */ jsx17(RouteFocusModal.Form, { form, children: /* @__PURE__ */ jsxs11(
4864
- KeyboundForm,
4865
- {
4866
- onKeyDown: (e) => {
4867
- if (e.key === "Enter") {
4868
- if (e.target instanceof HTMLTextAreaElement && !(e.metaKey || e.ctrlKey)) {
4869
- return;
4870
- }
4871
- e.preventDefault();
4872
- if (e.metaKey || e.ctrlKey) {
4873
- if (!isLastTab) {
4874
- e.preventDefault();
4875
- e.stopPropagation();
4876
- onNext();
4877
- return;
4878
- }
4879
- onSubmit();
4880
- }
4881
- }
4882
- },
4883
- onSubmit,
4884
- className: "flex h-full flex-col",
4885
- children: [
4886
- /* @__PURE__ */ jsxs11(
4887
- ProgressTabs,
4888
- {
4889
- value: activeTabId,
4890
- onValueChange: onTabChange,
4891
- className: "flex h-full flex-col overflow-hidden",
4892
- children: [
4893
- /* @__PURE__ */ jsx17(RouteFocusModal.Header, { children: /* @__PURE__ */ jsx17("div", { className: "-my-2 w-full border-l", children: /* @__PURE__ */ jsx17(ProgressTabs.List, { className: "justify-start-start flex w-full items-center", children: visibleTabs.map((tab) => /* @__PURE__ */ jsx17(
4894
- ProgressTabs.Trigger,
4895
- {
4896
- status: tabState[tab.id] ?? "not-started",
4897
- value: tab.id,
4898
- className: "max-w-[200px] truncate",
4899
- children: tab.label ?? t2(tab.labelKey)
4900
- },
4901
- tab.id
4902
- )) }) }) }),
4903
- /* @__PURE__ */ jsx17(RouteFocusModal.Body, { className: "size-full overflow-hidden", children: visibleElements.map((element) => {
4904
- const meta = resolveTabMeta(element);
4905
- return /* @__PURE__ */ jsx17(
4906
- ProgressTabs.Content,
4907
- {
4908
- className: "size-full overflow-y-auto",
4909
- value: meta.id,
4910
- children: element
4911
- },
4912
- meta.id
4913
- );
4914
- }) })
4915
- ]
4916
- }
4917
- ),
4918
- /* @__PURE__ */ jsx17(RouteFocusModal.Footer, { children: footer ? footer({ isLastTab, onNext, isLoading }) : /* @__PURE__ */ jsx17(
4919
- DefaultFooter,
4920
- {
4921
- isLastTab,
4922
- onNext,
4923
- isLoading
4924
- }
4925
- ) })
4926
- ]
4927
- }
4928
- ) }) });
4929
- }
4930
- var DefaultFooter = ({
4931
- isLastTab,
4932
- onNext,
4933
- isLoading
4934
- }) => {
4935
- const { t: t2 } = useTranslation11();
4936
- return /* @__PURE__ */ jsxs11("div", { className: "flex items-center justify-end gap-x-2", children: [
4937
- /* @__PURE__ */ jsx17(RouteFocusModal.Close, { asChild: true, children: /* @__PURE__ */ jsx17(Button2, { variant: "secondary", size: "small", children: t2("actions.cancel") }) }),
4938
- isLastTab ? /* @__PURE__ */ jsx17(
4939
- Button2,
4940
- {
4941
- type: "submit",
4942
- variant: "primary",
4943
- size: "small",
4944
- isLoading,
4945
- children: t2("actions.save")
4946
- },
4947
- "submit-button"
4948
- ) : /* @__PURE__ */ jsx17(
4949
- Button2,
4950
- {
4951
- type: "button",
4952
- variant: "primary",
4953
- size: "small",
4954
- onClick: () => onNext(),
4955
- children: t2("actions.continue")
4956
- },
4957
- "next-button"
4958
- )
4959
- ] });
4960
- };
4961
- var Tab = ({
4962
- children
4963
- }) => {
4964
- return /* @__PURE__ */ jsx17("div", { className: "flex flex-col items-center p-16", children: /* @__PURE__ */ jsx17("div", { className: "flex w-full max-w-[720px] flex-col gap-y-8", children }) });
4965
- };
4966
- var TabbedForm = Object.assign(Root, { Tab, useForm: useTabbedForm });
4967
4774
  export {
4968
4775
  Notifications,
4969
4776
  TabbedForm,