@mercurjs/admin 2.3.6-canary.1 → 2.3.6-canary.3

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 (188) hide show
  1. package/dist/{add-campaign-promotions-PBGDZSCD.js → add-campaign-promotions-6OB7BUPK.js} +3 -3
  2. package/dist/{adjust-inventory-BBAU3NMM.js → adjust-inventory-32UZ4BZC.js} +2 -2
  3. package/dist/{api-key-management-detail-ZGGQBQAM.js → api-key-management-detail-P5C3F2D7.js} +4 -4
  4. package/dist/{api-key-management-list-T2WHT6MT.js → api-key-management-list-XV66E2LA.js} +1 -1
  5. package/dist/{attribute-create-C435ZHB2.js → attribute-create-KZL64Q2I.js} +4 -4
  6. package/dist/{attribute-detail-SPYDB3I5.js → attribute-detail-TZHGDTPU.js} +3 -3
  7. package/dist/{attribute-edit-AAEAOP5B.js → attribute-edit-FAUQ4PBC.js} +2 -2
  8. package/dist/{attribute-edit-possible-value-BJSQCTNO.js → attribute-edit-possible-value-5LAIVV3F.js} +2 -2
  9. package/dist/{attribute-list-SCFBKH4L.js → attribute-list-FLTRNSFI.js} +3 -3
  10. package/dist/{campaign-detail-BHRCOKL3.js → campaign-detail-4IEM5BGI.js} +6 -6
  11. package/dist/{campaign-list-GIMU2QVW.js → campaign-list-ZRUBHJEA.js} +1 -1
  12. package/dist/{categories-metadata-MJAYSCTW.js → categories-metadata-6F6EFZRQ.js} +2 -2
  13. package/dist/{category-detail-GVEDFNM7.js → category-detail-3BENYEEV.js} +7 -7
  14. package/dist/{category-list-J7XYQDJU.js → category-list-LESUC6ZK.js} +1 -1
  15. package/dist/{category-products-VVF5NXCE.js → category-products-WBUZKCGK.js} +6 -6
  16. package/dist/{chunk-A2UTT4YX.js → chunk-3VXLG534.js} +15 -3
  17. package/dist/{chunk-VVIJHBKM.js → chunk-3ZP5MS7X.js} +1 -1
  18. package/dist/{chunk-RW3NEG36.js → chunk-5CKBM4RI.js} +3 -3
  19. package/dist/{chunk-F5EZQMOA.js → chunk-5VHQX7Q3.js} +1 -1
  20. package/dist/{chunk-D7E6HL5O.js → chunk-5VUD6GLH.js} +3 -3
  21. package/dist/{chunk-2NOIR4BR.js → chunk-62YRQVR7.js} +4 -1
  22. package/dist/{chunk-7YBZ2PEZ.js → chunk-6B7JRM4O.js} +16 -4
  23. package/dist/{chunk-KWFSBUD6.js → chunk-6NE74AWG.js} +31 -0
  24. package/dist/{chunk-HFM6N7R3.js → chunk-6VALJTY5.js} +2 -2
  25. package/dist/{chunk-XMIDY45X.js → chunk-6XWEHX6S.js} +1 -1
  26. package/dist/{chunk-6ASLWQB3.js → chunk-7C7YLUYT.js} +1 -1
  27. package/dist/{chunk-5TIADRZ7.js → chunk-7QGENT7M.js} +2 -2
  28. package/dist/{chunk-EJGGX3ON.js → chunk-AMIZLBQB.js} +4 -4
  29. package/dist/{chunk-VE5FQQTG.js → chunk-BO2YPNLL.js} +2 -2
  30. package/dist/{chunk-NCDKLTDP.js → chunk-BVQWRKWQ.js} +3 -3
  31. package/dist/{chunk-7I7G5ZJE.js → chunk-C7Q6NVML.js} +2 -2
  32. package/dist/{chunk-BQZ5P3IA.js → chunk-CMQIUU7E.js} +3 -3
  33. package/dist/{chunk-6P7HBAUM.js → chunk-CRUBTRDS.js} +2 -2
  34. package/dist/{chunk-6AQYZWOC.js → chunk-CVGAZ5BV.js} +2 -2
  35. package/dist/{chunk-VWPX7GLC.js → chunk-DBGBLXBS.js} +1 -1
  36. package/dist/{chunk-P2KYQNXQ.js → chunk-DDZPK7BW.js} +2 -2
  37. package/dist/{chunk-BLU2WLIJ.js → chunk-DJ73BQSS.js} +1 -1
  38. package/dist/{chunk-D6WRJZPH.js → chunk-DOEBGZMA.js} +1 -1
  39. package/dist/{chunk-J34YB5R4.js → chunk-FCOYAYQE.js} +1 -1
  40. package/dist/{chunk-Q732RWRD.js → chunk-FS4E6GS6.js} +2 -2
  41. package/dist/{chunk-F644YFJZ.js → chunk-G7444ISU.js} +2 -2
  42. package/dist/{chunk-KTO2WJ75.js → chunk-GDFMWKL6.js} +1 -1
  43. package/dist/{chunk-R2ODJ3D3.js → chunk-HNGLIK4L.js} +3 -3
  44. package/dist/{chunk-ENKVW7JW.js → chunk-HXN62V4D.js} +1 -1
  45. package/dist/{chunk-4FAYO6UJ.js → chunk-IFG5ONPV.js} +1 -1
  46. package/dist/{chunk-M336ZIRO.js → chunk-IHTYHAOC.js} +2 -2
  47. package/dist/{chunk-AOLP2YDZ.js → chunk-IKDIEJZC.js} +1 -1
  48. package/dist/{chunk-NQEXDESI.js → chunk-IM76ZTV3.js} +3 -3
  49. package/dist/{chunk-3XS5ADKJ.js → chunk-JCRDVMIA.js} +2 -2
  50. package/dist/{chunk-W62DN2I2.js → chunk-KJRMIQIM.js} +1 -1
  51. package/dist/{chunk-3KRUGI6C.js → chunk-KTIPUH4U.js} +1 -1
  52. package/dist/{chunk-IHCKU5FR.js → chunk-KYVPZH3D.js} +1 -1
  53. package/dist/{chunk-B6KT5U7W.js → chunk-LKGHOFVI.js} +2 -2
  54. package/dist/{chunk-6UYV7B42.js → chunk-LRCOT3ZW.js} +4 -4
  55. package/dist/{chunk-MM5RRCPX.js → chunk-O5JSNJS4.js} +1 -1
  56. package/dist/{chunk-B7QLJF77.js → chunk-OZKHBVDV.js} +1 -1
  57. package/dist/{chunk-ESNSDIEC.js → chunk-PDPCFFFH.js} +1 -1
  58. package/dist/{chunk-QEBISX7V.js → chunk-PZ3S3WMH.js} +1 -1
  59. package/dist/{chunk-G2KWNZV6.js → chunk-S5TXU543.js} +2 -2
  60. package/dist/{chunk-5SNW2DCY.js → chunk-TJ6J4P3D.js} +1 -1
  61. package/dist/{chunk-YUL4ES52.js → chunk-TOBCVHYC.js} +2 -2
  62. package/dist/{chunk-OWWE5Y6T.js → chunk-UQFMNQEQ.js} +2 -2
  63. package/dist/chunk-USY2322P.js +17 -0
  64. package/dist/{chunk-RSDTHO3I.js → chunk-V6UH5UQT.js} +1 -1
  65. package/dist/{chunk-437KXVGO.js → chunk-VC2GAWL4.js} +1 -1
  66. package/dist/{chunk-MXM5ZD4Y.js → chunk-W5U6NPSN.js} +10 -25
  67. package/dist/{chunk-PAG3PYAQ.js → chunk-WA3UZTKD.js} +1 -1
  68. package/dist/{chunk-JBT2FR4K.js → chunk-XABVCD7R.js} +1 -1
  69. package/dist/{chunk-GFHUI2QK.js → chunk-XAF7FKWZ.js} +1 -1
  70. package/dist/{chunk-5ENOJFDI.js → chunk-XAQLGDAI.js} +1 -1
  71. package/dist/{chunk-475XGX3J.js → chunk-XGB456O5.js} +1 -1
  72. package/dist/{chunk-M6X7KIBW.js → chunk-YHWDMARX.js} +1 -1
  73. package/dist/{chunk-VBHKRUON.js → chunk-ZGNLAPV6.js} +1 -1
  74. package/dist/{chunk-Q6M2TNLO.js → chunk-ZPHVFD4N.js} +21 -290
  75. package/dist/{collection-add-products-HCY2YT3W.js → collection-add-products-XYGBMTIK.js} +6 -6
  76. package/dist/{collection-detail-QAEPOJZX.js → collection-detail-3TH3X47O.js} +7 -7
  77. package/dist/{collection-list-AWLZYMWL.js → collection-list-LL62Z4IJ.js} +6 -6
  78. package/dist/{collection-metadata-XM2EBCWF.js → collection-metadata-QUMWZABV.js} +2 -2
  79. package/dist/{commissions-list-MUKIEJWZ.js → commissions-list-PQUFPRZK.js} +1 -1
  80. package/dist/{customer-detail-XO7RBVUC.js → customer-detail-ZYETGMFF.js} +2 -2
  81. package/dist/{customer-group-detail-4G53UKOS.js → customer-group-detail-RPDRZGPZ.js} +2 -2
  82. package/dist/{customer-group-list-5VA7HGD5.js → customer-group-list-MZ7H4XLD.js} +3 -3
  83. package/dist/{customer-group-metadata-FUJFFWCO.js → customer-group-metadata-UQ2SCLOK.js} +2 -2
  84. package/dist/{customer-list-NEPELR3R.js → customer-list-46W5PJR3.js} +1 -1
  85. package/dist/{customer-metadata-GWZC456X.js → customer-metadata-UEQSIGLT.js} +2 -2
  86. package/dist/{customers-add-customer-group-MYC76YGW.js → customers-add-customer-group-AZYAIQ7E.js} +2 -2
  87. package/dist/{edit-inventory-item-ZSV4WF6G.js → edit-inventory-item-ENA2OFSQ.js} +2 -2
  88. package/dist/{edit-inventory-item-attributes-NWSAQMKX.js → edit-inventory-item-attributes-Z26UDTSH.js} +2 -2
  89. package/dist/{edit-rules-RJC3AYJN.js → edit-rules-3DCWA5UF.js} +2 -2
  90. package/dist/extension-targets.d.ts +2 -0
  91. package/dist/index.css +223 -9
  92. package/dist/index.d.ts +3 -5
  93. package/dist/index.js +708 -1100
  94. package/dist/{inventory-detail-7HB5QEL4.js → inventory-detail-MMONC625.js} +2 -2
  95. package/dist/{inventory-metadata-FGHOW3YG.js → inventory-metadata-OGS7JMZ5.js} +2 -2
  96. package/dist/{inventory-stock-PZ2ENOGF.js → inventory-stock-LDBJQCJF.js} +2 -2
  97. package/dist/{location-detail-B2BWLVAD.js → location-detail-74247BA4.js} +2 -2
  98. package/dist/{location-fulfillment-providers-XIYMIEFN.js → location-fulfillment-providers-VHQNRTJA.js} +4 -4
  99. package/dist/{location-list-VIAP63HV.js → location-list-JJN42JSH.js} +2 -2
  100. package/dist/{location-service-zone-shipping-option-create-6O2JXV6I.js → location-service-zone-shipping-option-create-RYAIECRU.js} +2 -2
  101. package/dist/{login-TZHRVYA5.js → login-2NBVRH4U.js} +2 -2
  102. package/dist/{manage-locations-ZFIRHMNH.js → manage-locations-TCMY6A4J.js} +145 -34
  103. package/dist/{marketplace-detail-4IP5HIEW.js → marketplace-detail-JSUMZVZS.js} +2 -2
  104. package/dist/{marketplace-metadata-EGDXYKCE.js → marketplace-metadata-2TZTRDRJ.js} +2 -2
  105. package/dist/{offer-detail-page-WWEUCEFC.js → offer-detail-page-JGS52M66.js} +14 -2
  106. package/dist/{offers-VG334CFD.js → offers-W4HF7NX7.js} +5 -5
  107. package/dist/{order-create-exchange-CC7CQECO.js → order-create-exchange-CBQ5PA6M.js} +2 -2
  108. package/dist/{order-create-refund-FJLL4CUD.js → order-create-refund-ZWMXQGUA.js} +2 -2
  109. package/dist/{order-detail-3ODC5NOT.js → order-detail-U3HDRBBG.js} +4 -4
  110. package/dist/{order-edit-billing-address-SBVWRA25.js → order-edit-billing-address-V6QS5DYF.js} +3 -3
  111. package/dist/{order-edit-email-BREEW246.js → order-edit-email-AGJU7YHU.js} +2 -2
  112. package/dist/{order-edit-shipping-address-XUG74AFY.js → order-edit-shipping-address-TKLEEHOE.js} +2 -2
  113. package/dist/{order-list-I6JZT6JK.js → order-list-FAP6DRYP.js} +2 -2
  114. package/dist/{order-metadata-VIG5MGYV.js → order-metadata-NVC3A3A5.js} +2 -2
  115. package/dist/{order-request-transfer-RYVK4WYW.js → order-request-transfer-7EZX5UOQ.js} +2 -2
  116. package/dist/pages/index.js +57 -56
  117. package/dist/{price-list-create-JFXLTNOJ.js → price-list-create-MQOWTNPB.js} +6 -6
  118. package/dist/{price-list-detail-5YTX66KF.js → price-list-detail-WOHIMYK5.js} +6 -6
  119. package/dist/{price-list-list-5CNSLAUF.js → price-list-list-AM2GMQ7P.js} +1 -1
  120. package/dist/{price-list-prices-add-HVTEQOWQ.js → price-list-prices-add-U6WRO6YD.js} +6 -6
  121. package/dist/{price-list-prices-edit-OVHIDATP.js → price-list-prices-edit-S4V5ACN3.js} +2 -2
  122. package/dist/{product-add-existing-attributes-2UFTXE2N.js → product-add-existing-attributes-VH5YF27I.js} +4 -4
  123. package/dist/{product-create-SHIGHLQN.js → product-create-HIPOU56R.js} +7 -6
  124. package/dist/{product-create-attribute-QYRCPUFC.js → product-create-attribute-CJF6JROA.js} +1 -1
  125. package/dist/{product-create-variant-MZLHG5JF.js → product-create-variant-TZSSAMR5.js} +3 -3
  126. package/dist/{product-detail-UGSTCK7J.js → product-detail-A6QXISZB.js} +4 -4
  127. package/dist/{product-edit-2CMVTDWT.js → product-edit-TAVV5CWR.js} +8 -3
  128. package/dist/{product-list-XDJB3HX7.js → product-list-P36GYG5T.js} +7 -7
  129. package/dist/{product-media-CO3F57JT.js → product-media-C2IYU2KA.js} +3 -3
  130. package/dist/{product-metadata-5CRGB7TR.js → product-metadata-GKQUURAL.js} +2 -2
  131. package/dist/{product-organization-TNS7GBKN.js → product-organization-3PIQ4IY2.js} +1 -1
  132. package/dist/{product-tag-create-QORH6X2D.js → product-tag-create-SYOFR5EK.js} +2 -2
  133. package/dist/{product-tag-detail-CDSYBTAM.js → product-tag-detail-ANSA7KYK.js} +9 -9
  134. package/dist/{product-tag-edit-JWYVCPCC.js → product-tag-edit-FJPBCFBH.js} +2 -2
  135. package/dist/{product-tag-list-RKLCU3UE.js → product-tag-list-XT7YY6DQ.js} +9 -9
  136. package/dist/{product-tag-metadata-BCUPIIJ5.js → product-tag-metadata-WQEGISQ5.js} +2 -2
  137. package/dist/{product-type-detail-IY7TWXUQ.js → product-type-detail-37NEO7FI.js} +7 -7
  138. package/dist/{product-type-list-N3E5HQFW.js → product-type-list-LCLWJPIT.js} +1 -1
  139. package/dist/{product-type-metadata-DKBBQB6R.js → product-type-metadata-WCGB3U4N.js} +2 -2
  140. package/dist/{product-variant-detail-XHMS2UT5.js → product-variant-detail-7B26FRNG.js} +2 -2
  141. package/dist/{product-variant-edit-4DPXTYPT.js → product-variant-edit-UMI2ADCC.js} +4 -4
  142. package/dist/{product-variant-metadata-ETVJBXSW.js → product-variant-metadata-CTKNNNLM.js} +2 -2
  143. package/dist/{profile-detail-KFLXUGQ5.js → profile-detail-TQWGKYRK.js} +2 -2
  144. package/dist/{profile-edit-4FDALFG5.js → profile-edit-ZBD6N5SC.js} +1 -1
  145. package/dist/{promotion-create-7ZUJ4W2J.js → promotion-create-FKRGXGI4.js} +2 -2
  146. package/dist/{promotion-detail-SWO4PZDC.js → promotion-detail-IC5LHRSY.js} +5 -5
  147. package/dist/{promotion-list-S4B6SVD6.js → promotion-list-TVTDBBJ3.js} +4 -4
  148. package/dist/{refund-reason-create-P5FUFEGK.js → refund-reason-create-TOH2D225.js} +2 -2
  149. package/dist/{refund-reason-edit-AKOTWXCE.js → refund-reason-edit-B32E4WHH.js} +2 -2
  150. package/dist/{refund-reason-list-ABRFC3OQ.js → refund-reason-list-URWPPRS5.js} +7 -7
  151. package/dist/{region-metadata-Q6HEMCHD.js → region-metadata-NAHNXAHQ.js} +2 -2
  152. package/dist/{reservation-detail-5GYGVM3M.js → reservation-detail-OCIIVYIN.js} +2 -2
  153. package/dist/{reservation-list-VRRSKQ4W.js → reservation-list-JQFVSRW5.js} +1 -1
  154. package/dist/{reservation-metadata-P4G3JEDW.js → reservation-metadata-AKR6FRG5.js} +2 -2
  155. package/dist/{reset-password-VJY5CXJU.js → reset-password-RJ5VSBQV.js} +1 -1
  156. package/dist/{return-reason-list-6MQKG72S.js → return-reason-list-LMY7QYX7.js} +5 -5
  157. package/dist/{sales-channel-add-products-MPJ7UCEJ.js → sales-channel-add-products-RYOG5QGJ.js} +6 -6
  158. package/dist/{sales-channel-detail-F37LBP6R.js → sales-channel-detail-KYK5IWRD.js} +7 -7
  159. package/dist/{sales-channel-list-XAWN5OKC.js → sales-channel-list-BCL62DTX.js} +2 -2
  160. package/dist/{sales-channel-metadata-NBWFH4QX.js → sales-channel-metadata-BKNILVQ2.js} +2 -2
  161. package/dist/{shipping-option-type-create-M23CI42D.js → shipping-option-type-create-ZVOMA222.js} +2 -2
  162. package/dist/{shipping-option-type-detail-QIJZQ5WW.js → shipping-option-type-detail-BKMYJMQY.js} +4 -4
  163. package/dist/{shipping-option-type-edit-WXTEQM32.js → shipping-option-type-edit-CZFRAZPJ.js} +2 -2
  164. package/dist/{shipping-option-type-list-PRXZQSPR.js → shipping-option-type-list-R76AQI26.js} +4 -4
  165. package/dist/{shipping-profile-metadata-S7Z3IC6I.js → shipping-profile-metadata-UEZYRBZQ.js} +2 -2
  166. package/dist/{shipping-profiles-list-LK5ZXRJG.js → shipping-profiles-list-W25ZUWGV.js} +1 -1
  167. package/dist/{store-bulk-edit-NBWZMDP7.js → store-bulk-edit-ONZESJGW.js} +1 -1
  168. package/dist/{store-create-J4SL6SY3.js → store-create-JBY2MAIT.js} +2 -2
  169. package/dist/{store-details-ITYKAZSI.js → store-details-VZJPLUQB.js} +7 -7
  170. package/dist/{store-edit-NZMI7PNS.js → store-edit-AONSKCCA.js} +3 -3
  171. package/dist/{store-list-RXPN3VVO.js → store-list-I434OQIM.js} +6 -6
  172. package/dist/{store-member-invite-IEUG54XA.js → store-member-invite-5YBC425W.js} +1 -1
  173. package/dist/{tax-region-create-PIDKQEWT.js → tax-region-create-OGVIIVMO.js} +3 -3
  174. package/dist/{tax-region-detail-7RNNZ4UE.js → tax-region-detail-O4DZFMT5.js} +2 -2
  175. package/dist/{tax-region-edit-I27QZZPB.js → tax-region-edit-DUBTSOQ4.js} +2 -2
  176. package/dist/{tax-region-list-BXLYIYQT.js → tax-region-list-ETNXAC2A.js} +1 -1
  177. package/dist/{tax-region-metadata-6YIZSRLO.js → tax-region-metadata-KHODQCDW.js} +2 -2
  178. package/dist/{tax-region-province-detail-AHS5SRP5.js → tax-region-province-detail-LOOLLFNO.js} +2 -2
  179. package/dist/{tax-region-tax-override-create-Z6S43XQ6.js → tax-region-tax-override-create-LLCR42OB.js} +8 -8
  180. package/dist/{tax-region-tax-override-edit-4EOURL2M.js → tax-region-tax-override-edit-V2B5PDIA.js} +8 -8
  181. package/dist/{user-detail-5LOE6QGK.js → user-detail-MJ3ITMNK.js} +2 -2
  182. package/dist/{user-edit-O2M5II52.js → user-edit-Y5VP6CKB.js} +1 -1
  183. package/dist/{user-invite-SZIUG2WK.js → user-invite-YVLFH6HU.js} +26 -126
  184. package/dist/{user-list-6YRC6HYX.js → user-list-6IYBI6HY.js} +2 -2
  185. package/dist/{user-metadata-2PEU2IJE.js → user-metadata-XNM2JNNO.js} +2 -2
  186. package/package.json +9 -9
  187. package/dist/chunk-4F6SHS7A.js +0 -83
  188. package/dist/chunk-WMA3WTCM.js +0 -117
package/dist/index.js CHANGED
@@ -3,17 +3,9 @@ import {
3
3
  taxRegionLoader
4
4
  } from "./chunk-ASFCRSBA.js";
5
5
  import "./chunk-QR3GYYX6.js";
6
- import {
7
- FeatureFlagProvider,
8
- useFeatureFlag,
9
- useMePermissions
10
- } from "./chunk-4F6SHS7A.js";
11
6
  import {
12
7
  isClientError
13
8
  } from "./chunk-C6SUTRP2.js";
14
- import {
15
- InfiniteList
16
- } from "./chunk-WMA3WTCM.js";
17
9
  import "./chunk-FMFVTERD.js";
18
10
  import "./chunk-JRTZWK77.js";
19
11
  import {
@@ -29,7 +21,7 @@ import {
29
21
  } from "./chunk-KDE4HKH2.js";
30
22
  import {
31
23
  I18n
32
- } from "./chunk-Q6M2TNLO.js";
24
+ } from "./chunk-ZPHVFD4N.js";
33
25
  import {
34
26
  SwitchBox
35
27
  } from "./chunk-2EME4AWX.js";
@@ -60,10 +52,8 @@ import "./chunk-IKAUNMRC.js";
60
52
  import "./chunk-EIWPJWKF.js";
61
53
  import "./chunk-46WEBDVJ.js";
62
54
  import {
63
- notificationQueryKeys,
64
- useNotifications,
65
55
  useProductTags
66
- } from "./chunk-MXM5ZD4Y.js";
56
+ } from "./chunk-W5U6NPSN.js";
67
57
  import {
68
58
  useLogout
69
59
  } from "./chunk-DSQRFZCO.js";
@@ -80,7 +70,7 @@ import {
80
70
  import "./chunk-CMVQ5SAG.js";
81
71
  import {
82
72
  useMe
83
- } from "./chunk-2NOIR4BR.js";
73
+ } from "./chunk-62YRQVR7.js";
84
74
  import "./chunk-2SCR7R3C.js";
85
75
  import "./chunk-YMMREB3P.js";
86
76
  import "./chunk-UNS2F7DK.js";
@@ -139,7 +129,7 @@ import {
139
129
  } from "./chunk-RHKRREUU.js";
140
130
  import "./chunk-ZA2KFUFR.js";
141
131
  import {
142
- sdk
132
+ fetchQuery
143
133
  } from "./chunk-DTGEFKK4.js";
144
134
  import "./chunk-NBMM2TZK.js";
145
135
 
@@ -225,10 +215,13 @@ var useTheme = () => {
225
215
 
226
216
  // src/providers/sidebar-provider/index.ts
227
217
  import {
218
+ SIDEBAR_MENU_CONTENT,
228
219
  SIDEBAR_RAIL_FADE,
229
220
  SidebarProvider,
230
221
  useCollapsedSidebar,
231
- useSidebar
222
+ useExpandedSidebar,
223
+ useSidebar,
224
+ useSidebarMenuPlacement
232
225
  } from "@mercurjs/dashboard-shared";
233
226
 
234
227
  // src/providers/keybind-provider/hooks.tsx
@@ -1494,6 +1487,45 @@ var useSearch = () => {
1494
1487
  return context;
1495
1488
  };
1496
1489
 
1490
+ // src/providers/feature-flag-provider/index.tsx
1491
+ import { createContext as createContext4, useCallback as useCallback5, useContext as useContext4, useMemo as useMemo4 } from "react";
1492
+
1493
+ // src/hooks/api/feature-flags.tsx
1494
+ import { useQuery } from "@tanstack/react-query";
1495
+ var useFeatureFlags = () => {
1496
+ return useQuery({
1497
+ queryKey: ["admin", "feature-flags"],
1498
+ queryFn: async () => {
1499
+ const response = await fetchQuery("/admin/feature-flags", {
1500
+ method: "GET"
1501
+ });
1502
+ return response.feature_flags;
1503
+ },
1504
+ staleTime: 5 * 60 * 1e3,
1505
+ gcTime: 10 * 60 * 1e3
1506
+ });
1507
+ };
1508
+
1509
+ // src/providers/feature-flag-provider/index.tsx
1510
+ import { jsx as jsx5 } from "react/jsx-runtime";
1511
+ var FeatureFlagContext = createContext4(null);
1512
+ var FeatureFlagProvider = ({
1513
+ children
1514
+ }) => {
1515
+ const { data: flags = {}, isLoading } = useFeatureFlags();
1516
+ const isFeatureEnabled = useCallback5(
1517
+ (flag) => {
1518
+ return flags[flag] === true;
1519
+ },
1520
+ [flags]
1521
+ );
1522
+ const value = useMemo4(
1523
+ () => ({ flags, isLoading, isFeatureEnabled }),
1524
+ [flags, isLoading, isFeatureEnabled]
1525
+ );
1526
+ return /* @__PURE__ */ jsx5(FeatureFlagContext.Provider, { value, children });
1527
+ };
1528
+
1497
1529
  // src/app.tsx
1498
1530
  import { I18nProvider, Toaster, TooltipProvider } from "@medusajs/ui";
1499
1531
  import { createBrowserRouter, RouterProvider } from "react-router-dom";
@@ -1504,39 +1536,23 @@ import { Outlet as Outlet4 } from "react-router-dom";
1504
1536
 
1505
1537
  // src/components/authentication/protected-route/protected-route.tsx
1506
1538
  import { Spinner as Spinner2 } from "@medusajs/icons";
1507
- import { useMemo as useMemo4 } from "react";
1508
1539
  import { Navigate, Outlet, useLocation as useLocation2 } from "react-router-dom";
1509
1540
  import { PermissionsProvider } from "@mercurjs/dashboard-shared";
1510
- import { jsx as jsx5 } from "react/jsx-runtime";
1541
+ import { jsx as jsx6 } from "react/jsx-runtime";
1511
1542
  var ProtectedRoute = () => {
1512
1543
  const location = useLocation2();
1513
- const isRbacEnabled = useFeatureFlag("rbac");
1514
1544
  const { user, isLoading: isLoadingUser } = useMe();
1515
- const { data: permissionsResponse, isLoading: isLoadingPermissions } = useMePermissions({
1516
- // Don't fetch permissions until we know the user is authenticated.
1517
- enabled: !!user && isRbacEnabled
1518
- });
1519
- const policy = useMemo4(() => {
1520
- if (!permissionsResponse) {
1521
- return null;
1522
- }
1523
- return {
1524
- permissions: permissionsResponse.permissions
1525
- };
1526
- }, [permissionsResponse]);
1527
1545
  if (isLoadingUser) {
1528
- return /* @__PURE__ */ jsx5("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsx5(Spinner2, { className: "text-ui-fg-interactive animate-spin" }) });
1546
+ return /* @__PURE__ */ jsx6("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsx6(Spinner2, { className: "text-ui-fg-interactive animate-spin" }) });
1529
1547
  }
1530
1548
  if (!user) {
1531
- return /* @__PURE__ */ jsx5(Navigate, { to: "/login", state: { from: location }, replace: true });
1549
+ return /* @__PURE__ */ jsx6(Navigate, { to: "/login", state: { from: location }, replace: true });
1532
1550
  }
1533
- return /* @__PURE__ */ jsx5(
1551
+ return /* @__PURE__ */ jsx6(
1534
1552
  PermissionsProvider,
1535
1553
  {
1536
- policy,
1537
- isLoading: isLoadingPermissions,
1538
- isRbacEnabled,
1539
- children: /* @__PURE__ */ jsx5(SidebarProvider, { children: /* @__PURE__ */ jsx5(SearchProvider, { children: /* @__PURE__ */ jsx5(Outlet, {}) }) })
1554
+ permissions: user.permissions ?? null,
1555
+ children: /* @__PURE__ */ jsx6(SidebarProvider, { children: /* @__PURE__ */ jsx6(SearchProvider, { children: /* @__PURE__ */ jsx6(Outlet, {}) }) })
1540
1556
  }
1541
1557
  );
1542
1558
  };
@@ -1556,14 +1572,14 @@ import {
1556
1572
  Tag,
1557
1573
  Users
1558
1574
  } from "@medusajs/icons";
1559
- import { Avatar as Avatar2, Divider, DropdownMenu as DropdownMenu3, Text as Text7, clx as clx6 } from "@medusajs/ui";
1575
+ import { Avatar as Avatar2, Divider, DropdownMenu as DropdownMenu3, Text as Text5, clx as clx5 } from "@medusajs/ui";
1560
1576
  import { useMemo as useMemo5 } from "react";
1561
- import { useTranslation as useTranslation9 } from "react-i18next";
1577
+ import { useTranslation as useTranslation8 } from "react-i18next";
1562
1578
  import { Link as Link3, useLocation as useLocation6, useNavigate as useNavigate4 } from "react-router-dom";
1563
1579
 
1564
1580
  // src/components/layout/nav-item/nav-item.tsx
1565
1581
  import {
1566
- useCallback as useCallback5,
1582
+ useCallback as useCallback6,
1567
1583
  useEffect as useEffect6,
1568
1584
  useState as useState7
1569
1585
  } from "react";
@@ -1571,13 +1587,13 @@ import { Kbd as Kbd2, Text as Text2, Tooltip, clx as clx2 } from "@medusajs/ui";
1571
1587
  import { Collapsible as RadixCollapsible } from "radix-ui";
1572
1588
  import { useTranslation as useTranslation4 } from "react-i18next";
1573
1589
  import { NavLink, useLocation as useLocation3 } from "react-router-dom";
1574
- import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
1590
+ import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
1575
1591
  var NestedNavLabel = ({
1576
1592
  label,
1577
1593
  translationNs
1578
1594
  }) => {
1579
1595
  const { t: t2 } = useTranslation4(translationNs);
1580
- return /* @__PURE__ */ jsx6(Text2, { size: "small", weight: "plus", leading: "compact", children: translationNs ? t2(label) : label });
1596
+ return /* @__PURE__ */ jsx7(Text2, { size: "small", weight: "plus", leading: "compact", children: translationNs ? t2(label) : label });
1581
1597
  };
1582
1598
  var BASE_NAV_LINK_CLASSES = "text-ui-fg-subtle transition-fg hover:bg-ui-bg-subtle-hover flex items-center gap-x-2 rounded-md py-0.5 pl-0.5 pr-2 outline-none [&>svg]:text-ui-fg-subtle focus-visible:shadow-borders-focus";
1583
1599
  var ACTIVE_NAV_LINK_CLASSES = "bg-ui-bg-base shadow-elevation-card-rest text-ui-fg-base hover:bg-ui-bg-base";
@@ -1598,23 +1614,23 @@ var NavItemTooltip = ({
1598
1614
  const globalShortcuts = useGlobalShortcuts();
1599
1615
  const shortcut = globalShortcuts.find((s) => s.to === to);
1600
1616
  if (state === "collapsed" && label) {
1601
- return /* @__PURE__ */ jsx6(Tooltip, { content: label, side: "right", delayDuration: 0, children: /* @__PURE__ */ jsx6("div", { className: "w-full", children }) });
1617
+ return /* @__PURE__ */ jsx7(Tooltip, { content: label, side: "right", delayDuration: 0, children: /* @__PURE__ */ jsx7("div", { className: "w-full", children }) });
1602
1618
  }
1603
- return /* @__PURE__ */ jsx6(
1619
+ return /* @__PURE__ */ jsx7(
1604
1620
  ConditionalTooltip,
1605
1621
  {
1606
1622
  showTooltip: !!shortcut,
1607
1623
  maxWidth: 9999,
1608
1624
  content: /* @__PURE__ */ jsxs3("div", { className: "txt-compact-xsmall flex h-5 items-center justify-between gap-x-2 whitespace-nowrap", children: [
1609
- /* @__PURE__ */ jsx6("span", { children: shortcut?.label }),
1610
- /* @__PURE__ */ jsx6("div", { className: "flex items-center gap-x-1", children: shortcut?.keys.Mac?.map((key, index) => /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-1", children: [
1611
- /* @__PURE__ */ jsx6(Kbd2, { children: key }, key),
1612
- index < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx6("span", { className: "txt-compact-xsmall text-ui-fg-muted", children: t2("app.keyboardShortcuts.then") })
1625
+ /* @__PURE__ */ jsx7("span", { children: shortcut?.label }),
1626
+ /* @__PURE__ */ jsx7("div", { className: "flex items-center gap-x-1", children: shortcut?.keys.Mac?.map((key, index) => /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-1", children: [
1627
+ /* @__PURE__ */ jsx7(Kbd2, { children: key }, key),
1628
+ index < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx7("span", { className: "txt-compact-xsmall text-ui-fg-muted", children: t2("app.keyboardShortcuts.then") })
1613
1629
  ] }, index)) })
1614
1630
  ] }),
1615
1631
  side: "right",
1616
1632
  delayDuration: 1500,
1617
- children: /* @__PURE__ */ jsx6("div", { className: "w-full", children })
1633
+ children: /* @__PURE__ */ jsx7("div", { className: "w-full", children })
1618
1634
  }
1619
1635
  );
1620
1636
  };
@@ -1634,7 +1650,7 @@ var NavItem = ({
1634
1650
  useEffect6(() => {
1635
1651
  setOpen(getIsOpen(to, items, pathname));
1636
1652
  }, [pathname, to, items]);
1637
- const navLinkClassNames = useCallback5(
1653
+ const navLinkClassNames = useCallback6(
1638
1654
  ({
1639
1655
  to: to2,
1640
1656
  isActive,
@@ -1667,7 +1683,7 @@ var NavItem = ({
1667
1683
  className: "px-3",
1668
1684
  "data-testid": `sidebar-nav-item-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1669
1685
  children: [
1670
- /* @__PURE__ */ jsx6(NavItemTooltip, { to, label: displayLabel, children: /* @__PURE__ */ jsxs3(
1686
+ /* @__PURE__ */ jsx7(NavItemTooltip, { to, label: displayLabel, children: /* @__PURE__ */ jsxs3(
1671
1687
  NavLink,
1672
1688
  {
1673
1689
  to,
@@ -1682,8 +1698,8 @@ var NavItem = ({
1682
1698
  },
1683
1699
  "data-testid": `sidebar-nav-link-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1684
1700
  children: [
1685
- type !== "setting" && /* @__PURE__ */ jsx6("div", { className: "flex size-6 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx6(Icon, { icon, type }) }),
1686
- /* @__PURE__ */ jsx6(
1701
+ type !== "setting" && /* @__PURE__ */ jsx7("div", { className: "flex size-6 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx7(Icon, { icon, type }) }),
1702
+ /* @__PURE__ */ jsx7(
1687
1703
  Text2,
1688
1704
  {
1689
1705
  size: "small",
@@ -1711,18 +1727,18 @@ var NavItem = ({
1711
1727
  { "pl-2": isSetting }
1712
1728
  ),
1713
1729
  children: [
1714
- /* @__PURE__ */ jsx6("div", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ jsx6(Icon, { icon, type }) }),
1715
- /* @__PURE__ */ jsx6(Text2, { size: "small", weight: "plus", leading: "compact", children: displayLabel })
1730
+ /* @__PURE__ */ jsx7("div", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ jsx7(Icon, { icon, type }) }),
1731
+ /* @__PURE__ */ jsx7(Text2, { size: "small", weight: "plus", leading: "compact", children: displayLabel })
1716
1732
  ]
1717
1733
  }
1718
1734
  ),
1719
- /* @__PURE__ */ jsx6(RadixCollapsible.Content, { children: /* @__PURE__ */ jsx6(
1735
+ /* @__PURE__ */ jsx7(RadixCollapsible.Content, { children: /* @__PURE__ */ jsx7(
1720
1736
  "div",
1721
1737
  {
1722
1738
  className: "flex flex-col gap-y-0.5 pb-2 pt-0.5",
1723
1739
  "data-testid": `sidebar-nav-nested-items-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1724
1740
  children: /* @__PURE__ */ jsxs3("ul", { className: "flex flex-col gap-y-0.5", children: [
1725
- /* @__PURE__ */ jsx6("li", { className: "flex w-full items-center gap-x-1 lg:hidden", children: /* @__PURE__ */ jsx6(NavItemTooltip, { to, children: /* @__PURE__ */ jsx6(
1741
+ /* @__PURE__ */ jsx7("li", { className: "flex w-full items-center gap-x-1 lg:hidden", children: /* @__PURE__ */ jsx7(NavItemTooltip, { to, children: /* @__PURE__ */ jsx7(
1726
1742
  NavLink,
1727
1743
  {
1728
1744
  to,
@@ -1738,11 +1754,11 @@ var NavItem = ({
1738
1754
  );
1739
1755
  },
1740
1756
  "data-testid": `sidebar-nav-link-nested-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1741
- children: /* @__PURE__ */ jsx6(Text2, { size: "small", weight: "plus", leading: "compact", children: displayLabel })
1757
+ children: /* @__PURE__ */ jsx7(Text2, { size: "small", weight: "plus", leading: "compact", children: displayLabel })
1742
1758
  }
1743
1759
  ) }) }),
1744
1760
  items.map((item) => {
1745
- return /* @__PURE__ */ jsx6("li", { className: "flex h-7 items-center", children: /* @__PURE__ */ jsx6(NavItemTooltip, { to: item.to, children: /* @__PURE__ */ jsx6(
1761
+ return /* @__PURE__ */ jsx7("li", { className: "flex h-7 items-center", children: /* @__PURE__ */ jsx7(NavItemTooltip, { to: item.to, children: /* @__PURE__ */ jsx7(
1746
1762
  NavLink,
1747
1763
  {
1748
1764
  to: item.to,
@@ -1758,7 +1774,7 @@ var NavItem = ({
1758
1774
  );
1759
1775
  },
1760
1776
  "data-testid": `sidebar-nav-link-nested-${item.to.replace(/\//g, "-").replace(/^-/, "")}`,
1761
- children: /* @__PURE__ */ jsx6(
1777
+ children: /* @__PURE__ */ jsx7(
1762
1778
  NestedNavLabel,
1763
1779
  {
1764
1780
  label: item.label,
@@ -1782,28 +1798,29 @@ var Icon = ({ icon, type }) => {
1782
1798
  if (!icon) {
1783
1799
  return null;
1784
1800
  }
1785
- return type === "extension" ? /* @__PURE__ */ jsx6("div", { className: "flex h-5 w-5 items-center justify-center rounded-[4px] bg-ui-bg-base shadow-borders-base", children: /* @__PURE__ */ jsx6("div", { className: "h-[15px] w-[15px] overflow-hidden rounded-sm", children: icon }) }) : icon;
1801
+ return type === "extension" ? /* @__PURE__ */ jsx7("div", { className: "flex h-5 w-5 items-center justify-center rounded-[4px] bg-ui-bg-base shadow-borders-base", children: /* @__PURE__ */ jsx7("div", { className: "h-[15px] w-[15px] overflow-hidden rounded-sm", children: icon }) }) : icon;
1786
1802
  };
1787
1803
 
1788
1804
  // src/components/layout/shell/shell.tsx
1789
1805
  import { SidebarLeft, TriangleRightMini, XMark } from "@medusajs/icons";
1790
- import { IconButton as IconButton4, clx as clx4 } from "@medusajs/ui";
1806
+ import { IconButton as IconButton2, clx as clx3 } from "@medusajs/ui";
1791
1807
  import { AnimatePresence } from "motion/react";
1792
1808
  import { Dialog as RadixDialog2 } from "radix-ui";
1793
- import { useEffect as useEffect8, useState as useState9 } from "react";
1794
- import { useTranslation as useTranslation6 } from "react-i18next";
1809
+ import { useEffect as useEffect7, useState as useState8 } from "react";
1810
+ import { useTranslation as useTranslation5 } from "react-i18next";
1795
1811
  import {
1796
1812
  Link,
1797
1813
  Outlet as Outlet2,
1798
1814
  useMatches,
1799
1815
  useNavigation
1800
1816
  } from "react-router-dom";
1817
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
1801
1818
 
1802
1819
  // src/components/common/progress-bar/progress-bar.tsx
1803
1820
  import { motion } from "motion/react";
1804
- import { jsx as jsx7 } from "react/jsx-runtime";
1821
+ import { jsx as jsx8 } from "react/jsx-runtime";
1805
1822
  var ProgressBar = ({ duration = 2 }) => {
1806
- return /* @__PURE__ */ jsx7(
1823
+ return /* @__PURE__ */ jsx8(
1807
1824
  motion.div,
1808
1825
  {
1809
1826
  className: "bg-ui-fg-subtle size-full",
@@ -1826,443 +1843,38 @@ var ProgressBar = ({ duration = 2 }) => {
1826
1843
  );
1827
1844
  };
1828
1845
 
1829
- // src/components/layout/notifications/notifications.tsx
1830
- import {
1831
- BellAlert,
1832
- BellAlertDone,
1833
- InformationCircleSolid
1834
- } from "@medusajs/icons";
1835
- import { clx as clx3, Drawer, Heading, IconButton as IconButton3, Text as Text4 } from "@medusajs/ui";
1836
- import { formatDistance } from "date-fns";
1837
- import { useEffect as useEffect7, useState as useState8 } from "react";
1838
- import { useTranslation as useTranslation5 } from "react-i18next";
1839
-
1840
- // src/components/common/file-preview/file-preview.tsx
1841
- import { ArrowDownTray, Spinner as Spinner3 } from "@medusajs/icons";
1842
- import { IconButton as IconButton2, Text as Text3 } from "@medusajs/ui";
1843
- import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
1844
- var FilePreview = ({
1845
- filename,
1846
- url,
1847
- loading,
1848
- activity,
1849
- actions,
1850
- hideThumbnail
1851
- }) => {
1852
- return /* @__PURE__ */ jsx8("div", { className: "shadow-elevation-card-rest bg-ui-bg-component transition-fg rounded-md px-3 py-2", children: /* @__PURE__ */ jsxs4("div", { className: "flex flex-row items-center justify-between gap-2", children: [
1853
- /* @__PURE__ */ jsxs4("div", { className: "flex flex-row items-center gap-3", children: [
1854
- !hideThumbnail && /* @__PURE__ */ jsx8(FileThumbnail, {}),
1855
- /* @__PURE__ */ jsxs4("div", { className: "flex flex-col justify-center", children: [
1856
- /* @__PURE__ */ jsx8(
1857
- Text3,
1858
- {
1859
- size: "small",
1860
- leading: "compact",
1861
- className: "truncate max-w-[260px]",
1862
- children: filename
1863
- }
1864
- ),
1865
- loading && !!activity && /* @__PURE__ */ jsx8(
1866
- Text3,
1867
- {
1868
- leading: "compact",
1869
- size: "xsmall",
1870
- className: "text-ui-fg-interactive",
1871
- children: activity
1872
- }
1873
- )
1874
- ] })
1875
- ] }),
1876
- loading && /* @__PURE__ */ jsx8(Spinner3, { className: "animate-spin" }),
1877
- !loading && actions && /* @__PURE__ */ jsx8(ActionMenu, { groups: actions }),
1878
- !loading && url && /* @__PURE__ */ jsx8(IconButton2, { variant: "transparent", asChild: true, children: /* @__PURE__ */ jsx8("a", { href: url, download: filename ?? `${Date.now()}`, children: /* @__PURE__ */ jsx8(ArrowDownTray, {}) }) })
1879
- ] }) });
1880
- };
1881
- var FileThumbnail = () => {
1882
- return /* @__PURE__ */ jsxs4(
1883
- "svg",
1884
- {
1885
- width: "24",
1886
- height: "32",
1887
- viewBox: "0 0 24 32",
1888
- fill: "none",
1889
- xmlns: "http://www.w3.org/2000/svg",
1890
- children: [
1891
- /* @__PURE__ */ jsx8(
1892
- "path",
1893
- {
1894
- d: "M20 31.75H4C1.92893 31.75 0.25 30.0711 0.25 28V4C0.25 1.92893 1.92893 0.25 4 0.25H15.9431C16.9377 0.25 17.8915 0.645088 18.5948 1.34835L22.6516 5.4052C23.3549 6.10847 23.75 7.06229 23.75 8.05685V28C23.75 30.0711 22.0711 31.75 20 31.75Z",
1895
- fill: "url(#paint0_linear_6594_388107)",
1896
- stroke: "url(#paint1_linear_6594_388107)",
1897
- "stroke-width": "0.5"
1898
- }
1899
- ),
1900
- /* @__PURE__ */ jsx8(
1901
- "path",
1902
- {
1903
- opacity: "0.4",
1904
- d: "M17.7857 12.8125V13.5357H10.3393V10.9643H15.9375C16.9569 10.9643 17.7857 11.7931 17.7857 12.8125ZM6.21429 16.9107V15.0893H8.78571V16.9107H6.21429ZM10.3393 16.9107V15.0893H17.7857V16.9107H10.3393ZM15.9375 21.0357H10.3393V18.4643H17.7857V19.1875C17.7857 20.2069 16.9569 21.0357 15.9375 21.0357ZM6.21429 19.1875V18.4643H8.78571V21.0357H8.0625C7.0431 21.0357 6.21429 20.2069 6.21429 19.1875ZM8.0625 10.9643H8.78571V13.5357H6.21429V12.8125C6.21429 11.7931 7.0431 10.9643 8.0625 10.9643Z",
1905
- fill: "url(#paint2_linear_6594_388107)",
1906
- stroke: "url(#paint3_linear_6594_388107)",
1907
- "stroke-width": "0.428571"
1908
- }
1909
- ),
1910
- /* @__PURE__ */ jsxs4("defs", { children: [
1911
- /* @__PURE__ */ jsxs4(
1912
- "linearGradient",
1913
- {
1914
- id: "paint0_linear_6594_388107",
1915
- x1: "12",
1916
- y1: "0",
1917
- x2: "12",
1918
- y2: "32",
1919
- gradientUnits: "userSpaceOnUse",
1920
- children: [
1921
- /* @__PURE__ */ jsx8("stop", { "stop-color": "#F4F4F5" }),
1922
- /* @__PURE__ */ jsx8("stop", { offset: "1", "stop-color": "#E4E4E7" })
1923
- ]
1924
- }
1925
- ),
1926
- /* @__PURE__ */ jsxs4(
1927
- "linearGradient",
1928
- {
1929
- id: "paint1_linear_6594_388107",
1930
- x1: "12",
1931
- y1: "0",
1932
- x2: "12",
1933
- y2: "32",
1934
- gradientUnits: "userSpaceOnUse",
1935
- children: [
1936
- /* @__PURE__ */ jsx8("stop", { "stop-color": "#E4E4E7" }),
1937
- /* @__PURE__ */ jsx8("stop", { offset: "1", "stop-color": "#D4D4D8" })
1938
- ]
1939
- }
1940
- ),
1941
- /* @__PURE__ */ jsxs4(
1942
- "linearGradient",
1943
- {
1944
- id: "paint2_linear_6594_388107",
1945
- x1: "12",
1946
- y1: "10.75",
1947
- x2: "12",
1948
- y2: "21.25",
1949
- gradientUnits: "userSpaceOnUse",
1950
- children: [
1951
- /* @__PURE__ */ jsx8("stop", { "stop-color": "#52525B" }),
1952
- /* @__PURE__ */ jsx8("stop", { offset: "1", "stop-color": "#A1A1AA" })
1953
- ]
1954
- }
1955
- ),
1956
- /* @__PURE__ */ jsxs4(
1957
- "linearGradient",
1958
- {
1959
- id: "paint3_linear_6594_388107",
1960
- x1: "12",
1961
- y1: "10.75",
1962
- x2: "12",
1963
- y2: "21.25",
1964
- gradientUnits: "userSpaceOnUse",
1965
- children: [
1966
- /* @__PURE__ */ jsx8("stop", { "stop-color": "#18181B" }),
1967
- /* @__PURE__ */ jsx8("stop", { offset: "1", "stop-color": "#52525B" })
1968
- ]
1969
- }
1970
- )
1971
- ] })
1972
- ]
1973
- }
1974
- );
1975
- };
1976
-
1977
- // src/components/layout/notifications/notifications.tsx
1978
- import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
1979
- var LAST_READ_NOTIFICATION_KEY = "notificationsLastReadAt";
1980
- var Notifications = () => {
1981
- const { t: t2 } = useTranslation5();
1982
- const [open, setOpen] = useState8(false);
1983
- const [hasUnread, setHasUnread] = useUnreadNotifications();
1984
- const [lastReadAt, setLastReadAt] = useState8(
1985
- localStorage.getItem(LAST_READ_NOTIFICATION_KEY)
1986
- );
1987
- useEffect7(() => {
1988
- const onKeyDown = (e) => {
1989
- if (e.key === "n" && (e.metaKey || e.ctrlKey)) {
1990
- setOpen((prev) => !prev);
1991
- }
1992
- };
1993
- document.addEventListener("keydown", onKeyDown);
1994
- return () => {
1995
- document.removeEventListener("keydown", onKeyDown);
1996
- };
1997
- }, []);
1998
- const handleOnOpen = (shouldOpen) => {
1999
- if (shouldOpen) {
2000
- setHasUnread(false);
2001
- setOpen(true);
2002
- localStorage.setItem(
2003
- LAST_READ_NOTIFICATION_KEY,
2004
- (/* @__PURE__ */ new Date()).toISOString()
2005
- );
2006
- } else {
2007
- setOpen(false);
2008
- setLastReadAt(localStorage.getItem(LAST_READ_NOTIFICATION_KEY));
2009
- }
2010
- };
2011
- return /* @__PURE__ */ jsxs5(
2012
- Drawer,
2013
- {
2014
- open,
2015
- onOpenChange: handleOnOpen,
2016
- "data-testid": "notifications-drawer",
2017
- children: [
2018
- /* @__PURE__ */ jsx9(Drawer.Trigger, { asChild: true, children: /* @__PURE__ */ jsx9(
2019
- IconButton3,
2020
- {
2021
- variant: "transparent",
2022
- size: "small",
2023
- className: "text-ui-fg-muted hover:text-ui-fg-subtle",
2024
- "data-testid": "notifications-trigger-button",
2025
- children: hasUnread ? /* @__PURE__ */ jsx9(BellAlertDone, { "data-testid": "notifications-icon-unread" }) : /* @__PURE__ */ jsx9(BellAlert, { "data-testid": "notifications-icon" })
2026
- }
2027
- ) }),
2028
- /* @__PURE__ */ jsxs5(Drawer.Content, { "data-testid": "notifications-content", children: [
2029
- /* @__PURE__ */ jsxs5(Drawer.Header, { "data-testid": "notifications-header", children: [
2030
- /* @__PURE__ */ jsx9(Drawer.Title, { asChild: true, children: /* @__PURE__ */ jsx9(Heading, { "data-testid": "notifications-title", children: t2("notifications.domain") }) }),
2031
- /* @__PURE__ */ jsx9(
2032
- Drawer.Description,
2033
- {
2034
- className: "sr-only",
2035
- "data-testid": "notifications-description",
2036
- children: t2("notifications.accessibility.description")
2037
- }
2038
- )
2039
- ] }),
2040
- /* @__PURE__ */ jsx9(
2041
- Drawer.Body,
2042
- {
2043
- className: "overflow-y-auto px-0",
2044
- "data-testid": "notifications-body",
2045
- children: /* @__PURE__ */ jsx9("div", { "data-testid": "notifications-list", children: /* @__PURE__ */ jsx9(
2046
- InfiniteList,
2047
- {
2048
- responseKey: "notifications",
2049
- queryKey: notificationQueryKeys.all,
2050
- queryFn: (params) => sdk.admin.notifications.query({
2051
- ...params
2052
- }),
2053
- queryOptions: { enabled: open },
2054
- renderEmpty: () => /* @__PURE__ */ jsx9(NotificationsEmptyState, { t: t2 }),
2055
- renderItem: (notification) => {
2056
- return /* @__PURE__ */ jsx9(
2057
- Notification,
2058
- {
2059
- notification,
2060
- unread: Date.parse(notification.created_at) > (lastReadAt ? Date.parse(lastReadAt) : 0)
2061
- },
2062
- notification.id
2063
- );
2064
- }
2065
- }
2066
- ) })
2067
- }
2068
- )
2069
- ] })
2070
- ]
2071
- }
2072
- );
2073
- };
2074
- var Notification = ({
2075
- notification,
2076
- unread
2077
- }) => {
2078
- const data = notification.data;
2079
- if (!data?.title) {
2080
- return null;
2081
- }
2082
- return /* @__PURE__ */ jsx9(Fragment2, { children: /* @__PURE__ */ jsxs5(
2083
- "div",
2084
- {
2085
- className: "relative flex items-start justify-center gap-3 border-b p-6",
2086
- "data-testid": `notification-${notification.id}`,
2087
- children: [
2088
- /* @__PURE__ */ jsx9(
2089
- "div",
2090
- {
2091
- className: "text-ui-fg-muted flex size-5 items-center justify-center",
2092
- "data-testid": `notification-${notification.id}-icon`,
2093
- children: /* @__PURE__ */ jsx9(InformationCircleSolid, {})
2094
- }
2095
- ),
2096
- /* @__PURE__ */ jsxs5(
2097
- "div",
2098
- {
2099
- className: "flex w-full flex-col gap-y-3",
2100
- "data-testid": `notification-${notification.id}-content`,
2101
- children: [
2102
- /* @__PURE__ */ jsxs5(
2103
- "div",
2104
- {
2105
- className: "flex flex-col",
2106
- "data-testid": `notification-${notification.id}-header`,
2107
- children: [
2108
- /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between", children: [
2109
- /* @__PURE__ */ jsx9(
2110
- Text4,
2111
- {
2112
- size: "small",
2113
- leading: "compact",
2114
- weight: "plus",
2115
- "data-testid": `notification-${notification.id}-title`,
2116
- children: data.title
2117
- }
2118
- ),
2119
- /* @__PURE__ */ jsxs5(
2120
- "div",
2121
- {
2122
- className: "align-center flex items-center justify-center gap-2",
2123
- "data-testid": `notification-${notification.id}-meta`,
2124
- children: [
2125
- /* @__PURE__ */ jsx9(
2126
- Text4,
2127
- {
2128
- as: "span",
2129
- className: clx3("text-ui-fg-subtle", {
2130
- "text-ui-fg-base": unread
2131
- }),
2132
- size: "small",
2133
- leading: "compact",
2134
- weight: "plus",
2135
- "data-testid": `notification-${notification.id}-time`,
2136
- children: formatDistance(notification.created_at, /* @__PURE__ */ new Date(), {
2137
- addSuffix: true
2138
- })
2139
- }
2140
- ),
2141
- unread && /* @__PURE__ */ jsx9(
2142
- "div",
2143
- {
2144
- className: "bg-ui-bg-interactive h-2 w-2 rounded",
2145
- role: "status",
2146
- "data-testid": `notification-${notification.id}-unread-indicator`
2147
- }
2148
- )
2149
- ]
2150
- }
2151
- )
2152
- ] }),
2153
- !!data.description && /* @__PURE__ */ jsx9(
2154
- Text4,
2155
- {
2156
- className: "text-ui-fg-subtle whitespace-pre-line",
2157
- size: "small",
2158
- "data-testid": `notification-${notification.id}-description`,
2159
- children: data.description
2160
- }
2161
- )
2162
- ]
2163
- }
2164
- ),
2165
- !!data?.file?.url && /* @__PURE__ */ jsx9(
2166
- FilePreview,
2167
- {
2168
- filename: data.file.filename ?? "",
2169
- url: data.file.url,
2170
- hideThumbnail: true,
2171
- "data-testid": `notification-${notification.id}-file`
2172
- }
2173
- )
2174
- ]
2175
- }
2176
- )
2177
- ]
2178
- }
2179
- ) });
2180
- };
2181
- var NotificationsEmptyState = ({ t: t2 }) => {
2182
- return /* @__PURE__ */ jsxs5(
2183
- "div",
2184
- {
2185
- className: "flex h-full flex-col items-center justify-center",
2186
- "data-testid": "notifications-empty-state",
2187
- children: [
2188
- /* @__PURE__ */ jsx9(BellAlertDone, { "data-testid": "notifications-empty-icon" }),
2189
- /* @__PURE__ */ jsx9(
2190
- Text4,
2191
- {
2192
- size: "small",
2193
- leading: "compact",
2194
- weight: "plus",
2195
- className: "mt-3",
2196
- "data-testid": "notifications-empty-title",
2197
- children: t2("notifications.emptyState.title")
2198
- }
2199
- ),
2200
- /* @__PURE__ */ jsx9(
2201
- Text4,
2202
- {
2203
- size: "small",
2204
- className: "text-ui-fg-muted mt-1 max-w-[294px] text-center",
2205
- "data-testid": "notifications-empty-description",
2206
- children: t2("notifications.emptyState.description")
2207
- }
2208
- )
2209
- ]
2210
- }
2211
- );
2212
- };
2213
- var useUnreadNotifications = () => {
2214
- const [hasUnread, setHasUnread] = useState8(false);
2215
- const { notifications } = useNotifications(
2216
- { limit: 1, offset: 0, fields: "created_at" },
2217
- { refetchInterval: 6e4 }
2218
- );
2219
- const lastNotification = notifications?.[0];
2220
- useEffect7(() => {
2221
- if (!lastNotification) {
2222
- return;
2223
- }
2224
- const lastNotificationAsTimestamp = Date.parse(lastNotification.created_at);
2225
- const lastReadDatetime = localStorage.getItem(LAST_READ_NOTIFICATION_KEY);
2226
- const lastReadAsTimestamp = lastReadDatetime ? Date.parse(lastReadDatetime) : 0;
2227
- if (lastNotificationAsTimestamp > lastReadAsTimestamp) {
2228
- setHasUnread(true);
2229
- }
2230
- }, [lastNotification]);
2231
- return [hasUnread, setHasUnread];
2232
- };
2233
-
2234
1846
  // src/components/layout/shell/shell.tsx
2235
- import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
2236
- var Shell = ({ children }) => {
1847
+ import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
1848
+ var Shell = ({ children, rail = true }) => {
2237
1849
  const globalShortcuts = useGlobalShortcuts();
2238
1850
  const navigation2 = useNavigation();
2239
1851
  const loading = navigation2.state === "loading";
2240
- return /* @__PURE__ */ jsx10(KeybindProvider, { shortcuts: globalShortcuts, children: /* @__PURE__ */ jsxs6("div", { className: "relative flex h-screen flex-col items-start overflow-hidden lg:flex-row", children: [
2241
- /* @__PURE__ */ jsx10(NavigationBar, { loading }),
2242
- /* @__PURE__ */ jsxs6("div", { children: [
2243
- /* @__PURE__ */ jsx10(MobileSidebarContainer, { children }),
2244
- /* @__PURE__ */ jsx10(DesktopSidebarContainer, { children })
1852
+ return /* @__PURE__ */ jsx9(KeybindProvider, { shortcuts: globalShortcuts, children: /* @__PURE__ */ jsxs4("div", { className: "relative flex h-screen flex-col items-start overflow-hidden lg:flex-row", children: [
1853
+ /* @__PURE__ */ jsx9(NavigationBar, { loading }),
1854
+ /* @__PURE__ */ jsxs4("div", { children: [
1855
+ /* @__PURE__ */ jsx9(MobileSidebarContainer, { children }),
1856
+ /* @__PURE__ */ jsx9(DesktopSidebarContainer, { rail, children })
2245
1857
  ] }),
2246
- /* @__PURE__ */ jsxs6("div", { className: "flex h-screen w-full flex-col overflow-auto", children: [
2247
- /* @__PURE__ */ jsx10(Topbar, {}),
2248
- /* @__PURE__ */ jsx10(
1858
+ /* @__PURE__ */ jsxs4("div", { className: "flex h-screen w-full flex-col overflow-auto", children: [
1859
+ /* @__PURE__ */ jsx9(Topbar, {}),
1860
+ /* @__PURE__ */ jsx9(
2249
1861
  "main",
2250
1862
  {
2251
- className: clx4(
1863
+ className: clx3(
2252
1864
  "flex h-full w-full flex-col items-center overflow-y-auto transition-opacity delay-200 duration-200",
2253
1865
  {
2254
1866
  "opacity-25": loading
2255
1867
  }
2256
1868
  ),
2257
- children: /* @__PURE__ */ jsx10(Gutter, { children: /* @__PURE__ */ jsx10(Outlet2, {}) })
1869
+ children: /* @__PURE__ */ jsx9(Gutter, { children: /* @__PURE__ */ jsx9(Outlet2, {}) })
2258
1870
  }
2259
1871
  )
2260
1872
  ] })
2261
1873
  ] }) });
2262
1874
  };
2263
1875
  var NavigationBar = ({ loading }) => {
2264
- const [showBar, setShowBar] = useState9(false);
2265
- useEffect8(() => {
1876
+ const [showBar, setShowBar] = useState8(false);
1877
+ useEffect7(() => {
2266
1878
  let timeout;
2267
1879
  if (loading) {
2268
1880
  timeout = setTimeout(() => {
@@ -2275,10 +1887,10 @@ var NavigationBar = ({ loading }) => {
2275
1887
  clearTimeout(timeout);
2276
1888
  };
2277
1889
  }, [loading]);
2278
- return /* @__PURE__ */ jsx10("div", { className: "fixed inset-x-0 top-0 z-50 h-1", children: /* @__PURE__ */ jsx10(AnimatePresence, { children: showBar ? /* @__PURE__ */ jsx10(ProgressBar, {}) : null }) });
1890
+ return /* @__PURE__ */ jsx9("div", { className: "fixed inset-x-0 top-0 z-50 h-1", children: /* @__PURE__ */ jsx9(AnimatePresence, { children: showBar ? /* @__PURE__ */ jsx9(ProgressBar, {}) : null }) });
2279
1891
  };
2280
1892
  var Gutter = ({ children }) => {
2281
- return /* @__PURE__ */ jsx10("div", { className: "flex w-full max-w-[1600px] flex-col gap-y-2 p-3", children });
1893
+ return /* @__PURE__ */ jsx9("div", { className: "flex w-full max-w-[1600px] flex-col gap-y-2 p-3", children });
2282
1894
  };
2283
1895
  var Breadcrumbs = () => {
2284
1896
  const matches = useMatches();
@@ -2297,29 +1909,29 @@ var Breadcrumbs = () => {
2297
1909
  path: match.pathname
2298
1910
  };
2299
1911
  }).filter(Boolean);
2300
- return /* @__PURE__ */ jsx10(
1912
+ return /* @__PURE__ */ jsx9(
2301
1913
  "ol",
2302
1914
  {
2303
- className: clx4(
1915
+ className: clx3(
2304
1916
  "text-ui-fg-muted txt-compact-small-plus flex select-none items-center"
2305
1917
  ),
2306
1918
  children: crumbs.map((crumb, index) => {
2307
1919
  const isLast = index === crumbs.length - 1;
2308
1920
  const isSingle = crumbs.length === 1;
2309
- return /* @__PURE__ */ jsxs6("li", { className: clx4("flex items-center"), children: [
2310
- !isLast ? /* @__PURE__ */ jsx10(
1921
+ return /* @__PURE__ */ jsxs4("li", { className: clx3("flex items-center"), children: [
1922
+ !isLast ? /* @__PURE__ */ jsx9(
2311
1923
  Link,
2312
1924
  {
2313
1925
  className: "transition-fg hover:text-ui-fg-subtle",
2314
1926
  to: crumb.path,
2315
1927
  children: crumb.label
2316
1928
  }
2317
- ) : /* @__PURE__ */ jsxs6("div", { children: [
2318
- !isSingle && /* @__PURE__ */ jsx10("span", { className: "block lg:hidden", children: "..." }),
2319
- /* @__PURE__ */ jsx10(
1929
+ ) : /* @__PURE__ */ jsxs4("div", { children: [
1930
+ !isSingle && /* @__PURE__ */ jsx9("span", { className: "block lg:hidden", children: "..." }),
1931
+ /* @__PURE__ */ jsx9(
2320
1932
  "span",
2321
1933
  {
2322
- className: clx4({
1934
+ className: clx3({
2323
1935
  "hidden lg:block": !isSingle
2324
1936
  }),
2325
1937
  children: crumb.label
@@ -2327,7 +1939,7 @@ var Breadcrumbs = () => {
2327
1939
  index
2328
1940
  )
2329
1941
  ] }),
2330
- !isLast && /* @__PURE__ */ jsx10("span", { className: "mx-2", children: /* @__PURE__ */ jsx10(TriangleRightMini, { className: "rtl:rotate-180" }) })
1942
+ !isLast && /* @__PURE__ */ jsx9("span", { className: "mx-2", children: /* @__PURE__ */ jsx9(TriangleRightMini, { className: "rtl:rotate-180" }) })
2331
1943
  ] }, index);
2332
1944
  })
2333
1945
  }
@@ -2335,87 +1947,90 @@ var Breadcrumbs = () => {
2335
1947
  };
2336
1948
  var ToggleSidebar = () => {
2337
1949
  const { toggle, state } = useSidebar();
2338
- return /* @__PURE__ */ jsxs6("div", { children: [
2339
- /* @__PURE__ */ jsx10(
2340
- IconButton4,
1950
+ return /* @__PURE__ */ jsxs4("div", { children: [
1951
+ /* @__PURE__ */ jsx9(
1952
+ IconButton2,
2341
1953
  {
2342
1954
  className: "hidden lg:flex",
2343
1955
  variant: "transparent",
2344
1956
  onClick: () => toggle("desktop"),
2345
1957
  size: "small",
2346
1958
  "aria-expanded": state === "expanded",
2347
- children: /* @__PURE__ */ jsx10(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
1959
+ children: /* @__PURE__ */ jsx9(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
2348
1960
  }
2349
1961
  ),
2350
- /* @__PURE__ */ jsx10(
2351
- IconButton4,
1962
+ /* @__PURE__ */ jsx9(
1963
+ IconButton2,
2352
1964
  {
2353
1965
  className: "hidden max-lg:flex",
2354
1966
  variant: "transparent",
2355
1967
  onClick: () => toggle("mobile"),
2356
1968
  size: "small",
2357
- children: /* @__PURE__ */ jsx10(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
1969
+ children: /* @__PURE__ */ jsx9(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
2358
1970
  }
2359
1971
  )
2360
1972
  ] });
2361
1973
  };
2362
1974
  var Topbar = () => {
2363
- return /* @__PURE__ */ jsxs6("div", { className: "grid w-full grid-cols-2 border-b p-3", children: [
2364
- /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-x-1.5", children: [
2365
- /* @__PURE__ */ jsx10(ToggleSidebar, {}),
2366
- /* @__PURE__ */ jsx10(Breadcrumbs, {})
1975
+ return /* @__PURE__ */ jsxs4("div", { className: "grid w-full grid-cols-2 border-b p-3", children: [
1976
+ /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-1.5", children: [
1977
+ /* @__PURE__ */ jsx9(ToggleSidebar, {}),
1978
+ /* @__PURE__ */ jsx9(Breadcrumbs, {})
2367
1979
  ] }),
2368
- /* @__PURE__ */ jsx10("div", { className: "flex items-center justify-end gap-x-3", children: /* @__PURE__ */ jsx10(Notifications, {}) })
1980
+ /* @__PURE__ */ jsx9("div", { className: "flex items-center justify-end gap-x-3", children: /* @__PURE__ */ jsx9(WidgetZone, { id: "topbar" }) })
2369
1981
  ] });
2370
1982
  };
2371
- var DesktopSidebarContainer = ({ children }) => {
1983
+ var DesktopSidebarContainer = ({
1984
+ children,
1985
+ rail
1986
+ }) => {
2372
1987
  const { state } = useSidebar();
2373
- return /* @__PURE__ */ jsx10(
1988
+ return /* @__PURE__ */ jsx9(
2374
1989
  "div",
2375
1990
  {
2376
1991
  "data-state": state,
2377
- className: clx4(
1992
+ className: clx3(
2378
1993
  "group/sidebar hidden h-screen w-[220px] shrink-0 overflow-x-hidden border-e lg:flex",
2379
1994
  "transition-[width] duration-200 ease-sidebar motion-reduce:transition-none",
2380
- "data-[state=collapsed]:w-[52px]"
1995
+ rail ? "data-[state=collapsed]:w-[52px]" : "data-[state=collapsed]:w-0 data-[state=collapsed]:border-e-0"
2381
1996
  ),
2382
- children
1997
+ children: rail ? children : /* @__PURE__ */ jsx9("div", { className: "flex w-[220px] shrink-0", children })
2383
1998
  }
2384
1999
  );
2385
2000
  };
2386
2001
  var MobileSidebarContainer = ({ children }) => {
2387
- const { t: t2 } = useTranslation6();
2002
+ const { t: t2 } = useTranslation5();
2388
2003
  const { mobile, toggle } = useSidebar();
2389
- return /* @__PURE__ */ jsx10(RadixDialog2.Root, { open: mobile, onOpenChange: () => toggle("mobile"), children: /* @__PURE__ */ jsxs6(RadixDialog2.Portal, { children: [
2390
- /* @__PURE__ */ jsx10(
2004
+ return /* @__PURE__ */ jsx9(RadixDialog2.Root, { open: mobile, onOpenChange: () => toggle("mobile"), children: /* @__PURE__ */ jsxs4(RadixDialog2.Portal, { children: [
2005
+ /* @__PURE__ */ jsx9(
2391
2006
  RadixDialog2.Overlay,
2392
2007
  {
2393
- className: clx4(
2008
+ className: clx3(
2394
2009
  "bg-ui-bg-overlay fixed inset-0",
2395
2010
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
2396
2011
  )
2397
2012
  }
2398
2013
  ),
2399
- /* @__PURE__ */ jsxs6(
2014
+ /* @__PURE__ */ jsxs4(
2400
2015
  RadixDialog2.Content,
2401
2016
  {
2402
- className: clx4(
2017
+ className: clx3(
2403
2018
  "bg-ui-bg-subtle shadow-elevation-modal fixed inset-y-2 start-2 flex w-full max-w-[304px] flex-col overflow-hidden rounded-lg border-r",
2404
2019
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:slide-out-to-start-1/2 data-[state=open]:slide-in-from-start-1/2 duration-200"
2405
2020
  ),
2406
2021
  children: [
2407
- /* @__PURE__ */ jsxs6("div", { className: "p-3", children: [
2408
- /* @__PURE__ */ jsx10(RadixDialog2.Close, { asChild: true, children: /* @__PURE__ */ jsx10(
2409
- IconButton4,
2022
+ /* @__PURE__ */ jsxs4("div", { className: "p-3", children: [
2023
+ /* @__PURE__ */ jsx9(RadixDialog2.Close, { asChild: true, children: /* @__PURE__ */ jsx9(
2024
+ IconButton2,
2410
2025
  {
2411
2026
  size: "small",
2412
2027
  variant: "transparent",
2413
2028
  className: "text-ui-fg-subtle",
2414
- children: /* @__PURE__ */ jsx10(XMark, {})
2029
+ children: /* @__PURE__ */ jsx9(XMark, {})
2415
2030
  }
2416
2031
  ) }),
2417
- /* @__PURE__ */ jsx10(RadixDialog2.Title, { className: "sr-only", children: t2("app.nav.accessibility.title") }),
2418
- /* @__PURE__ */ jsx10(RadixDialog2.Description, { className: "sr-only", children: t2("app.nav.accessibility.description") })
2032
+ /* @__PURE__ */ jsx9(RadixDialog2.Title, { className: "sr-only", children: t2("app.nav.accessibility.title") }),
2033
+ /* @__PURE__ */ jsx9(RadixDialog2.Description, { className: "sr-only", children: t2("app.nav.accessibility.description") })
2419
2034
  ] }),
2420
2035
  children
2421
2036
  ]
@@ -2438,58 +2053,59 @@ import {
2438
2053
  import {
2439
2054
  Avatar,
2440
2055
  DropdownMenu as DropdownMenu2,
2441
- Heading as Heading2,
2442
- IconButton as IconButton5,
2056
+ Heading,
2057
+ IconButton as IconButton3,
2443
2058
  Input,
2444
2059
  Kbd as Kbd3,
2445
- Text as Text5,
2446
- clx as clx5
2060
+ Text as Text3,
2061
+ clx as clx4
2447
2062
  } from "@medusajs/ui";
2448
2063
  import { Dialog as RadixDialog3 } from "radix-ui";
2449
- import { useTranslation as useTranslation7 } from "react-i18next";
2450
- import { useState as useState10 } from "react";
2064
+ import { useTranslation as useTranslation6 } from "react-i18next";
2065
+ import { useState as useState9 } from "react";
2451
2066
  import { Link as Link2, useLocation as useLocation4, useNavigate as useNavigate3 } from "react-router-dom";
2452
- import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
2067
+ import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
2453
2068
  var UserMenu = () => {
2454
- const { t: t2 } = useTranslation7();
2069
+ const { t: t2 } = useTranslation6();
2455
2070
  const location = useLocation4();
2456
2071
  const direction = useDocumentDirection();
2457
- const [openMenu, setOpenMenu] = useState10(false);
2458
- const [openModal, setOpenModal] = useState10(false);
2072
+ const menuPlacement = useSidebarMenuPlacement("end");
2073
+ const [openMenu, setOpenMenu] = useState9(false);
2074
+ const [openModal, setOpenModal] = useState9(false);
2459
2075
  const toggleModal = () => {
2460
2076
  setOpenMenu(false);
2461
2077
  setOpenModal(!openModal);
2462
2078
  };
2463
- return /* @__PURE__ */ jsxs7("div", { "data-testid": "sidebar-user-menu", children: [
2464
- /* @__PURE__ */ jsxs7(DropdownMenu2, { dir: direction, open: openMenu, onOpenChange: setOpenMenu, "data-testid": "sidebar-user-menu-dropdown", children: [
2465
- /* @__PURE__ */ jsx11(UserBadge, {}),
2466
- /* @__PURE__ */ jsxs7(DropdownMenu2.Content, { className: "min-w-[var(--radix-dropdown-menu-trigger-width)] max-w-[var(--radix-dropdown-menu-trigger-width)]", "data-testid": "sidebar-user-menu-content", children: [
2467
- /* @__PURE__ */ jsx11(UserItem, {}),
2468
- /* @__PURE__ */ jsx11(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-1" }),
2469
- /* @__PURE__ */ jsx11(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-profile-settings", children: /* @__PURE__ */ jsxs7(Link2, { to: "/settings/profile", state: { from: location.pathname }, children: [
2470
- /* @__PURE__ */ jsx11(UserIcon, { className: "text-ui-fg-subtle me-2" }),
2079
+ return /* @__PURE__ */ jsxs5("div", { "data-testid": "sidebar-user-menu", children: [
2080
+ /* @__PURE__ */ jsxs5(DropdownMenu2, { dir: direction, open: openMenu, onOpenChange: setOpenMenu, "data-testid": "sidebar-user-menu-dropdown", children: [
2081
+ /* @__PURE__ */ jsx10(UserBadge, {}),
2082
+ /* @__PURE__ */ jsxs5(DropdownMenu2.Content, { ...menuPlacement, className: SIDEBAR_MENU_CONTENT, "data-testid": "sidebar-user-menu-content", children: [
2083
+ /* @__PURE__ */ jsx10(UserItem, {}),
2084
+ /* @__PURE__ */ jsx10(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-1" }),
2085
+ /* @__PURE__ */ jsx10(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-profile-settings", children: /* @__PURE__ */ jsxs5(Link2, { to: "/settings/profile", state: { from: location.pathname }, children: [
2086
+ /* @__PURE__ */ jsx10(UserIcon, { className: "text-ui-fg-subtle me-2" }),
2471
2087
  t2("app.menus.user.profileSettings")
2472
2088
  ] }) }),
2473
- /* @__PURE__ */ jsx11(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-2" }),
2474
- /* @__PURE__ */ jsx11(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-documentation", children: /* @__PURE__ */ jsxs7(Link2, { to: "https://docs.mercurjs.com/welcome", target: "_blank", children: [
2475
- /* @__PURE__ */ jsx11(BookOpen, { className: "text-ui-fg-subtle me-2" }),
2089
+ /* @__PURE__ */ jsx10(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-2" }),
2090
+ /* @__PURE__ */ jsx10(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-documentation", children: /* @__PURE__ */ jsxs5(Link2, { to: "https://docs.mercurjs.com/welcome", target: "_blank", children: [
2091
+ /* @__PURE__ */ jsx10(BookOpen, { className: "text-ui-fg-subtle me-2" }),
2476
2092
  t2("app.menus.user.documentation")
2477
2093
  ] }) }),
2478
- /* @__PURE__ */ jsx11(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-changelog", children: /* @__PURE__ */ jsxs7(Link2, { to: "https://www.mercurjs.com/updates", target: "_blank", children: [
2479
- /* @__PURE__ */ jsx11(TimelineVertical, { className: "text-ui-fg-subtle me-2" }),
2094
+ /* @__PURE__ */ jsx10(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-changelog", children: /* @__PURE__ */ jsxs5(Link2, { to: "https://www.mercurjs.com/updates", target: "_blank", children: [
2095
+ /* @__PURE__ */ jsx10(TimelineVertical, { className: "text-ui-fg-subtle me-2" }),
2480
2096
  t2("app.menus.user.changelog")
2481
2097
  ] }) }),
2482
- /* @__PURE__ */ jsx11(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-3" }),
2483
- /* @__PURE__ */ jsxs7(DropdownMenu2.Item, { onClick: toggleModal, "data-testid": "sidebar-user-menu-shortcuts", children: [
2484
- /* @__PURE__ */ jsx11(Keyboard, { className: "text-ui-fg-subtle me-2" }),
2098
+ /* @__PURE__ */ jsx10(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-3" }),
2099
+ /* @__PURE__ */ jsxs5(DropdownMenu2.Item, { onClick: toggleModal, "data-testid": "sidebar-user-menu-shortcuts", children: [
2100
+ /* @__PURE__ */ jsx10(Keyboard, { className: "text-ui-fg-subtle me-2" }),
2485
2101
  t2("app.menus.user.shortcuts")
2486
2102
  ] }),
2487
- /* @__PURE__ */ jsx11(ThemeToggle, {}),
2488
- /* @__PURE__ */ jsx11(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-4" }),
2489
- /* @__PURE__ */ jsx11(Logout, {})
2103
+ /* @__PURE__ */ jsx10(ThemeToggle, {}),
2104
+ /* @__PURE__ */ jsx10(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-4" }),
2105
+ /* @__PURE__ */ jsx10(Logout, {})
2490
2106
  ] })
2491
2107
  ] }),
2492
- /* @__PURE__ */ jsx11(GlobalKeybindsModal, { open: openModal, onOpenChange: setOpenModal })
2108
+ /* @__PURE__ */ jsx10(GlobalKeybindsModal, { open: openModal, onOpenChange: setOpenModal })
2493
2109
  ] });
2494
2110
  };
2495
2111
  var UserBadge = () => {
@@ -2498,19 +2114,19 @@ var UserBadge = () => {
2498
2114
  const displayName = name || user?.email;
2499
2115
  const fallback = displayName ? displayName[0].toUpperCase() : null;
2500
2116
  if (isPending) {
2501
- return /* @__PURE__ */ jsxs7("button", { className: "shadow-borders-base flex max-w-[192px] select-none items-center gap-x-2 overflow-hidden text-ellipsis whitespace-nowrap rounded-full py-1 ps-1 pe-2.5", children: [
2502
- /* @__PURE__ */ jsx11(Skeleton, { className: "h-5 w-5 rounded-full" }),
2503
- /* @__PURE__ */ jsx11(Skeleton, { className: "h-[9px] w-[70px]" })
2117
+ return /* @__PURE__ */ jsxs5("button", { className: "shadow-borders-base flex max-w-[192px] select-none items-center gap-x-2 overflow-hidden text-ellipsis whitespace-nowrap rounded-full py-1 ps-1 pe-2.5", children: [
2118
+ /* @__PURE__ */ jsx10(Skeleton, { className: "h-5 w-5 rounded-full" }),
2119
+ /* @__PURE__ */ jsx10(Skeleton, { className: "h-[9px] w-[70px]" })
2504
2120
  ] });
2505
2121
  }
2506
2122
  if (isError) {
2507
2123
  throw error;
2508
2124
  }
2509
- return /* @__PURE__ */ jsx11("div", { className: "p-3", "data-testid": "sidebar-user-menu-badge", children: /* @__PURE__ */ jsxs7(
2125
+ return /* @__PURE__ */ jsx10("div", { className: "p-3", "data-testid": "sidebar-user-menu-badge", children: /* @__PURE__ */ jsxs5(
2510
2126
  DropdownMenu2.Trigger,
2511
2127
  {
2512
2128
  disabled: !user,
2513
- className: clx5(
2129
+ className: clx4(
2514
2130
  "bg-ui-bg-subtle grid w-full cursor-pointer grid-cols-[24px_1fr_15px] items-center gap-2 rounded-md py-1 ps-0.5 pe-2 outline-none",
2515
2131
  "hover:bg-ui-bg-subtle-hover",
2516
2132
  "data-[state=open]:bg-ui-bg-subtle-hover",
@@ -2518,9 +2134,9 @@ var UserBadge = () => {
2518
2134
  ),
2519
2135
  "data-testid": "sidebar-user-menu-trigger",
2520
2136
  children: [
2521
- /* @__PURE__ */ jsx11("div", { className: "flex size-6 shrink-0 items-center justify-center", "data-testid": "sidebar-user-menu-avatar-container", children: fallback ? /* @__PURE__ */ jsx11(Avatar, { size: "xsmall", fallback, "data-testid": "sidebar-user-menu-avatar" }) : /* @__PURE__ */ jsx11(Skeleton, { className: "h-6 w-6 rounded-full" }) }),
2522
- /* @__PURE__ */ jsx11("div", { className: clx5("flex items-center overflow-hidden whitespace-nowrap", SIDEBAR_RAIL_FADE), "data-testid": "sidebar-user-menu-name-container", children: displayName ? /* @__PURE__ */ jsx11(
2523
- Text5,
2137
+ /* @__PURE__ */ jsx10("div", { className: "flex size-6 shrink-0 items-center justify-center", "data-testid": "sidebar-user-menu-avatar-container", children: fallback ? /* @__PURE__ */ jsx10(Avatar, { size: "xsmall", fallback, "data-testid": "sidebar-user-menu-avatar" }) : /* @__PURE__ */ jsx10(Skeleton, { className: "h-6 w-6 rounded-full" }) }),
2138
+ /* @__PURE__ */ jsx10("div", { className: clx4("flex items-center overflow-hidden whitespace-nowrap", SIDEBAR_RAIL_FADE), "data-testid": "sidebar-user-menu-name-container", children: displayName ? /* @__PURE__ */ jsx10(
2139
+ Text3,
2524
2140
  {
2525
2141
  size: "xsmall",
2526
2142
  weight: "plus",
@@ -2529,22 +2145,22 @@ var UserBadge = () => {
2529
2145
  "data-testid": "sidebar-user-menu-name",
2530
2146
  children: displayName
2531
2147
  }
2532
- ) : /* @__PURE__ */ jsx11(Skeleton, { className: "h-[9px] w-[70px]" }) }),
2533
- /* @__PURE__ */ jsx11(EllipsisHorizontal, { className: clx5("text-ui-fg-muted", SIDEBAR_RAIL_FADE) })
2148
+ ) : /* @__PURE__ */ jsx10(Skeleton, { className: "h-[9px] w-[70px]" }) }),
2149
+ /* @__PURE__ */ jsx10(EllipsisHorizontal, { className: clx4("text-ui-fg-muted", SIDEBAR_RAIL_FADE) })
2534
2150
  ]
2535
2151
  }
2536
2152
  ) });
2537
2153
  };
2538
2154
  var ThemeToggle = () => {
2539
- const { t: t2 } = useTranslation7();
2155
+ const { t: t2 } = useTranslation6();
2540
2156
  const { theme, setTheme } = useTheme();
2541
- return /* @__PURE__ */ jsxs7(DropdownMenu2.SubMenu, { "data-testid": "sidebar-user-menu-theme-toggle", children: [
2542
- /* @__PURE__ */ jsxs7(DropdownMenu2.SubMenuTrigger, { dir: "ltr", className: "rounded-md rtl:rotate-180", "data-testid": "sidebar-user-menu-theme-trigger", children: [
2543
- /* @__PURE__ */ jsx11(CircleHalfSolid, { className: "text-ui-fg-subtle me-2" }),
2544
- /* @__PURE__ */ jsx11("span", { className: "rtl:rotate-180", children: t2("app.menus.user.theme.label") })
2157
+ return /* @__PURE__ */ jsxs5(DropdownMenu2.SubMenu, { "data-testid": "sidebar-user-menu-theme-toggle", children: [
2158
+ /* @__PURE__ */ jsxs5(DropdownMenu2.SubMenuTrigger, { dir: "ltr", className: "rounded-md rtl:rotate-180", "data-testid": "sidebar-user-menu-theme-trigger", children: [
2159
+ /* @__PURE__ */ jsx10(CircleHalfSolid, { className: "text-ui-fg-subtle me-2" }),
2160
+ /* @__PURE__ */ jsx10("span", { className: "rtl:rotate-180", children: t2("app.menus.user.theme.label") })
2545
2161
  ] }),
2546
- /* @__PURE__ */ jsx11(DropdownMenu2.SubMenuContent, { "data-testid": "sidebar-user-menu-theme-content", children: /* @__PURE__ */ jsxs7(DropdownMenu2.RadioGroup, { value: theme, "data-testid": "sidebar-user-menu-theme-radio-group", children: [
2547
- /* @__PURE__ */ jsx11(
2162
+ /* @__PURE__ */ jsx10(DropdownMenu2.SubMenuContent, { "data-testid": "sidebar-user-menu-theme-content", children: /* @__PURE__ */ jsxs5(DropdownMenu2.RadioGroup, { value: theme, "data-testid": "sidebar-user-menu-theme-radio-group", children: [
2163
+ /* @__PURE__ */ jsx10(
2548
2164
  DropdownMenu2.RadioItem,
2549
2165
  {
2550
2166
  value: "system",
@@ -2556,7 +2172,7 @@ var ThemeToggle = () => {
2556
2172
  children: t2("app.menus.user.theme.system")
2557
2173
  }
2558
2174
  ),
2559
- /* @__PURE__ */ jsx11(
2175
+ /* @__PURE__ */ jsx10(
2560
2176
  DropdownMenu2.RadioItem,
2561
2177
  {
2562
2178
  value: "light",
@@ -2568,7 +2184,7 @@ var ThemeToggle = () => {
2568
2184
  children: t2("app.menus.user.theme.light")
2569
2185
  }
2570
2186
  ),
2571
- /* @__PURE__ */ jsx11(
2187
+ /* @__PURE__ */ jsx10(
2572
2188
  DropdownMenu2.RadioItem,
2573
2189
  {
2574
2190
  value: "dark",
@@ -2584,7 +2200,7 @@ var ThemeToggle = () => {
2584
2200
  ] });
2585
2201
  };
2586
2202
  var Logout = () => {
2587
- const { t: t2 } = useTranslation7();
2203
+ const { t: t2 } = useTranslation6();
2588
2204
  const navigate = useNavigate3();
2589
2205
  const { mutateAsync: logoutMutation } = useLogout();
2590
2206
  const handleLogout = async () => {
@@ -2595,33 +2211,33 @@ var Logout = () => {
2595
2211
  }
2596
2212
  });
2597
2213
  };
2598
- return /* @__PURE__ */ jsx11(DropdownMenu2.Item, { onClick: handleLogout, "data-testid": "sidebar-user-menu-logout", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-2", children: [
2599
- /* @__PURE__ */ jsx11(OpenRectArrowOut, { className: "text-ui-fg-subtle" }),
2600
- /* @__PURE__ */ jsx11("span", { children: t2("app.menus.actions.logout") })
2214
+ return /* @__PURE__ */ jsx10(DropdownMenu2.Item, { onClick: handleLogout, "data-testid": "sidebar-user-menu-logout", children: /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-2", children: [
2215
+ /* @__PURE__ */ jsx10(OpenRectArrowOut, { className: "text-ui-fg-subtle" }),
2216
+ /* @__PURE__ */ jsx10("span", { children: t2("app.menus.actions.logout") })
2601
2217
  ] }) });
2602
2218
  };
2603
2219
  var GlobalKeybindsModal = (props) => {
2604
- const { t: t2 } = useTranslation7();
2220
+ const { t: t2 } = useTranslation6();
2605
2221
  const globalShortcuts = useGlobalShortcuts();
2606
- const [searchValue, onSearchValueChange] = useState10("");
2222
+ const [searchValue, onSearchValueChange] = useState9("");
2607
2223
  const searchResults = searchValue ? globalShortcuts.filter((shortcut) => {
2608
2224
  return shortcut.label.toLowerCase().includes(searchValue?.toLowerCase());
2609
2225
  }) : globalShortcuts;
2610
- return /* @__PURE__ */ jsx11(RadixDialog3.Root, { ...props, "data-testid": "shortcuts-modal", children: /* @__PURE__ */ jsxs7(RadixDialog3.Portal, { children: [
2611
- /* @__PURE__ */ jsx11(RadixDialog3.Overlay, { className: "bg-ui-bg-overlay fixed inset-0", "data-testid": "shortcuts-modal-overlay" }),
2612
- /* @__PURE__ */ jsxs7(RadixDialog3.Content, { className: "bg-ui-bg-subtle shadow-elevation-modal fixed left-[50%] top-[50%] flex h-full max-h-[612px] w-full max-w-[560px] translate-x-[-50%] translate-y-[-50%] flex-col divide-y overflow-hidden rounded-lg", "data-testid": "shortcuts-modal-content", children: [
2613
- /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-y-3 px-6 py-4", "data-testid": "shortcuts-modal-header", children: [
2614
- /* @__PURE__ */ jsxs7("div", { className: "flex items-center justify-between", "data-testid": "shortcuts-modal-header-top", children: [
2615
- /* @__PURE__ */ jsxs7("div", { "data-testid": "shortcuts-modal-title-container", children: [
2616
- /* @__PURE__ */ jsx11(RadixDialog3.Title, { asChild: true, children: /* @__PURE__ */ jsx11(Heading2, { "data-testid": "shortcuts-modal-title", children: t2("app.menus.user.shortcuts") }) }),
2617
- /* @__PURE__ */ jsx11(RadixDialog3.Description, { className: "sr-only", "data-testid": "shortcuts-modal-description" })
2226
+ return /* @__PURE__ */ jsx10(RadixDialog3.Root, { ...props, "data-testid": "shortcuts-modal", children: /* @__PURE__ */ jsxs5(RadixDialog3.Portal, { children: [
2227
+ /* @__PURE__ */ jsx10(RadixDialog3.Overlay, { className: "bg-ui-bg-overlay fixed inset-0", "data-testid": "shortcuts-modal-overlay" }),
2228
+ /* @__PURE__ */ jsxs5(RadixDialog3.Content, { className: "bg-ui-bg-subtle shadow-elevation-modal fixed left-[50%] top-[50%] flex h-full max-h-[612px] w-full max-w-[560px] translate-x-[-50%] translate-y-[-50%] flex-col divide-y overflow-hidden rounded-lg", "data-testid": "shortcuts-modal-content", children: [
2229
+ /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-y-3 px-6 py-4", "data-testid": "shortcuts-modal-header", children: [
2230
+ /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between", "data-testid": "shortcuts-modal-header-top", children: [
2231
+ /* @__PURE__ */ jsxs5("div", { "data-testid": "shortcuts-modal-title-container", children: [
2232
+ /* @__PURE__ */ jsx10(RadixDialog3.Title, { asChild: true, children: /* @__PURE__ */ jsx10(Heading, { "data-testid": "shortcuts-modal-title", children: t2("app.menus.user.shortcuts") }) }),
2233
+ /* @__PURE__ */ jsx10(RadixDialog3.Description, { className: "sr-only", "data-testid": "shortcuts-modal-description" })
2618
2234
  ] }),
2619
- /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-2", "data-testid": "shortcuts-modal-close-container", children: [
2620
- /* @__PURE__ */ jsx11(Kbd3, { "data-testid": "shortcuts-modal-close-hint", children: "esc" }),
2621
- /* @__PURE__ */ jsx11(RadixDialog3.Close, { asChild: true, children: /* @__PURE__ */ jsx11(IconButton5, { variant: "transparent", size: "small", "data-testid": "shortcuts-modal-close-button", children: /* @__PURE__ */ jsx11(XMark2, {}) }) })
2235
+ /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-2", "data-testid": "shortcuts-modal-close-container", children: [
2236
+ /* @__PURE__ */ jsx10(Kbd3, { "data-testid": "shortcuts-modal-close-hint", children: "esc" }),
2237
+ /* @__PURE__ */ jsx10(RadixDialog3.Close, { asChild: true, children: /* @__PURE__ */ jsx10(IconButton3, { variant: "transparent", size: "small", "data-testid": "shortcuts-modal-close-button", children: /* @__PURE__ */ jsx10(XMark2, {}) }) })
2622
2238
  ] })
2623
2239
  ] }),
2624
- /* @__PURE__ */ jsx11("div", { "data-testid": "shortcuts-modal-search-container", children: /* @__PURE__ */ jsx11(
2240
+ /* @__PURE__ */ jsx10("div", { "data-testid": "shortcuts-modal-search-container", children: /* @__PURE__ */ jsx10(
2625
2241
  Input,
2626
2242
  {
2627
2243
  type: "search",
@@ -2631,18 +2247,18 @@ var GlobalKeybindsModal = (props) => {
2631
2247
  }
2632
2248
  ) })
2633
2249
  ] }),
2634
- /* @__PURE__ */ jsx11("div", { className: "flex flex-col divide-y overflow-y-auto", "data-testid": "shortcuts-modal-list", children: searchResults.map((shortcut, index) => {
2635
- return /* @__PURE__ */ jsxs7(
2250
+ /* @__PURE__ */ jsx10("div", { className: "flex flex-col divide-y overflow-y-auto", "data-testid": "shortcuts-modal-list", children: searchResults.map((shortcut, index) => {
2251
+ return /* @__PURE__ */ jsxs5(
2636
2252
  "div",
2637
2253
  {
2638
2254
  className: "text-ui-fg-subtle flex items-center justify-between px-6 py-3",
2639
2255
  "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}`,
2640
2256
  children: [
2641
- /* @__PURE__ */ jsx11(Text5, { size: "small", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-label`, children: shortcut.label }),
2642
- /* @__PURE__ */ jsx11("div", { className: "flex items-center gap-x-1", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-keys`, children: shortcut.keys.Mac?.map((key, index2) => {
2643
- return /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-1", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-key-${index2}`, children: [
2644
- /* @__PURE__ */ jsx11(Kbd3, { "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-kbd-${index2}`, children: key }),
2645
- index2 < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx11("span", { className: "txt-compact-xsmall text-ui-fg-subtle", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-separator-${index2}`, children: t2("app.keyboardShortcuts.then") })
2257
+ /* @__PURE__ */ jsx10(Text3, { size: "small", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-label`, children: shortcut.label }),
2258
+ /* @__PURE__ */ jsx10("div", { className: "flex items-center gap-x-1", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-keys`, children: shortcut.keys.Mac?.map((key, index2) => {
2259
+ return /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-1", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-key-${index2}`, children: [
2260
+ /* @__PURE__ */ jsx10(Kbd3, { "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-kbd-${index2}`, children: key }),
2261
+ index2 < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx10("span", { className: "txt-compact-xsmall text-ui-fg-subtle", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-separator-${index2}`, children: t2("app.keyboardShortcuts.then") })
2646
2262
  ] }, index2);
2647
2263
  }) })
2648
2264
  ]
@@ -2657,7 +2273,7 @@ var UserItem = () => {
2657
2273
  const { user, isPending, isError, error } = useMe();
2658
2274
  const loaded = !isPending && !!user;
2659
2275
  if (!loaded) {
2660
- return /* @__PURE__ */ jsx11("div", {});
2276
+ return /* @__PURE__ */ jsx10("div", {});
2661
2277
  }
2662
2278
  const name = [user.first_name, user.last_name].filter(Boolean).join(" ");
2663
2279
  const email = user.email;
@@ -2666,8 +2282,8 @@ var UserItem = () => {
2666
2282
  if (isError) {
2667
2283
  throw error;
2668
2284
  }
2669
- return /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-3 overflow-hidden px-2 py-1", "data-testid": "sidebar-user-menu-item", children: [
2670
- /* @__PURE__ */ jsx11(
2285
+ return /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-3 overflow-hidden px-2 py-1", "data-testid": "sidebar-user-menu-item", children: [
2286
+ /* @__PURE__ */ jsx10(
2671
2287
  Avatar,
2672
2288
  {
2673
2289
  size: "small",
@@ -2677,9 +2293,9 @@ var UserItem = () => {
2677
2293
  "data-testid": "sidebar-user-menu-item-avatar"
2678
2294
  }
2679
2295
  ),
2680
- /* @__PURE__ */ jsxs7("div", { className: "block w-full min-w-0 max-w-[187px] overflow-hidden whitespace-nowrap", "data-testid": "sidebar-user-menu-item-details", children: [
2681
- /* @__PURE__ */ jsx11(
2682
- Text5,
2296
+ /* @__PURE__ */ jsxs5("div", { className: "block w-full min-w-0 max-w-[187px] overflow-hidden whitespace-nowrap", "data-testid": "sidebar-user-menu-item-details", children: [
2297
+ /* @__PURE__ */ jsx10(
2298
+ Text3,
2683
2299
  {
2684
2300
  size: "small",
2685
2301
  weight: "plus",
@@ -2689,8 +2305,8 @@ var UserItem = () => {
2689
2305
  children: name || email
2690
2306
  }
2691
2307
  ),
2692
- !!name && /* @__PURE__ */ jsx11(
2693
- Text5,
2308
+ !!name && /* @__PURE__ */ jsx10(
2309
+ Text3,
2694
2310
  {
2695
2311
  size: "xsmall",
2696
2312
  leading: "compact",
@@ -2713,18 +2329,18 @@ import {
2713
2329
 
2714
2330
  // src/components/utilities/error-boundary/error-boundary.tsx
2715
2331
  import { ExclamationCircle } from "@medusajs/icons";
2716
- import { Text as Text6 } from "@medusajs/ui";
2717
- import { useTranslation as useTranslation8 } from "react-i18next";
2332
+ import { Text as Text4 } from "@medusajs/ui";
2333
+ import { useTranslation as useTranslation7 } from "react-i18next";
2718
2334
  import { Navigate as Navigate2, useLocation as useLocation5, useRouteError } from "react-router-dom";
2719
- import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
2335
+ import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
2720
2336
  var ErrorBoundary = () => {
2721
2337
  const error = useRouteError();
2722
2338
  const location = useLocation5();
2723
- const { t: t2 } = useTranslation8();
2339
+ const { t: t2 } = useTranslation7();
2724
2340
  let code = null;
2725
2341
  if (isClientError(error)) {
2726
2342
  if (error.status === 401) {
2727
- return /* @__PURE__ */ jsx12(Navigate2, { to: "/login", state: { from: location }, replace: true });
2343
+ return /* @__PURE__ */ jsx11(Navigate2, { to: "/login", state: { from: location }, replace: true });
2728
2344
  }
2729
2345
  code = error.status ?? null;
2730
2346
  }
@@ -2751,12 +2367,12 @@ var ErrorBoundary = () => {
2751
2367
  message = t2("errorBoundary.defaultMessage");
2752
2368
  break;
2753
2369
  }
2754
- return /* @__PURE__ */ jsx12("div", { className: "flex size-full min-h-[calc(100vh-57px-24px)] items-center justify-center", children: /* @__PURE__ */ jsx12("div", { className: "flex flex-col gap-y-6", children: /* @__PURE__ */ jsxs8("div", { className: "text-ui-fg-subtle flex flex-col items-center gap-y-3", children: [
2755
- /* @__PURE__ */ jsx12(ExclamationCircle, {}),
2756
- /* @__PURE__ */ jsxs8("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
2757
- /* @__PURE__ */ jsx12(Text6, { size: "small", leading: "compact", weight: "plus", children: title }),
2758
- /* @__PURE__ */ jsx12(
2759
- Text6,
2370
+ 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__ */ jsxs6("div", { className: "text-ui-fg-subtle flex flex-col items-center gap-y-3", children: [
2371
+ /* @__PURE__ */ jsx11(ExclamationCircle, {}),
2372
+ /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
2373
+ /* @__PURE__ */ jsx11(Text4, { size: "small", leading: "compact", weight: "plus", children: title }),
2374
+ /* @__PURE__ */ jsx11(
2375
+ Text4,
2760
2376
  {
2761
2377
  size: "small",
2762
2378
  className: "text-ui-fg-muted text-balance text-center",
@@ -2924,42 +2540,42 @@ var getNestedMenuItems = (menuItems, parentPath) => {
2924
2540
 
2925
2541
  // src/lib/permissions/route-permissions.ts
2926
2542
  var ROUTE_PERMISSIONS = {
2927
- "/orders": "order:read",
2928
- "/products": "product:read",
2929
- "/offers": "offer:read",
2930
- "/collections": "product_collection:read",
2931
- "/categories": "product_category:read",
2932
- "/inventory": "inventory_item:read",
2933
- "/reservations": "reservation_item:read",
2934
- "/customers": "customer:read",
2935
- "/customer-groups": "customer_group:read",
2936
- "/promotions": "promotion:read",
2937
- "/campaigns": "campaign:read",
2938
- "/price-lists": "price_list:read",
2939
- "/stores": "seller:read",
2940
- "/reviews": "review:read",
2941
- "/payouts": "payout:read",
2942
- "/settings/regions": "region:read",
2943
- "/settings/marketplace": "store:read",
2944
- "/settings/commissions": "commission_rate:read",
2945
- "/settings/users": "user:read",
2946
- "/settings/sales-channels": "sales_channel:read",
2947
- "/settings/locations": "stock_location:read",
2948
- "/settings/product-tags": "product_tag:read",
2949
- "/settings/product-types": "product_type:read",
2950
- "/settings/attributes": "product_attribute:read",
2951
- "/settings/shipping-profiles": "shipping_profile:read",
2952
- "/settings/shipping-option-types": "shipping_option_type:read",
2953
- "/settings/return-reasons": "return_reason:read",
2954
- "/settings/refund-reasons": "refund_reason:read",
2955
- "/settings/tax-regions": "tax_region:read",
2956
- "/settings/publishable-api-keys": "api_key:read",
2957
- "/settings/secret-api-keys": "api_key:read"
2543
+ "/orders": "orders:view",
2544
+ "/products": "products:view",
2545
+ "/offers": "offers:view",
2546
+ "/collections": "product_collections:view",
2547
+ "/categories": "product_categories:view",
2548
+ "/inventory": "inventory_items:view",
2549
+ "/reservations": "reservations:view",
2550
+ "/customers": "customers:view",
2551
+ "/customer-groups": "customer_groups:view",
2552
+ "/promotions": "promotions:view",
2553
+ "/campaigns": "campaigns:view",
2554
+ "/price-lists": "price_lists:view",
2555
+ "/stores": "sellers:view",
2556
+ "/reviews": "reviews:view",
2557
+ "/payouts": "payouts:view",
2558
+ "/settings/regions": "regions:view",
2559
+ "/settings/marketplace": "store:view",
2560
+ "/settings/commissions": "commission_rates:view",
2561
+ "/settings/users": "users:view",
2562
+ "/settings/sales-channels": "sales_channels:view",
2563
+ "/settings/locations": "stock_locations:view",
2564
+ "/settings/product-tags": "product_tags:view",
2565
+ "/settings/product-types": "product_types:view",
2566
+ "/settings/attributes": "product_attributes:view",
2567
+ "/settings/shipping-profiles": "shipping_profiles:view",
2568
+ "/settings/shipping-option-types": "shipping_options:view",
2569
+ "/settings/return-reasons": "return_reasons:view",
2570
+ "/settings/refund-reasons": "refund_reasons:view",
2571
+ "/settings/tax-regions": "tax_regions:view",
2572
+ "/settings/publishable-api-keys": "api_keys:view",
2573
+ "/settings/secret-api-keys": "api_keys:view"
2958
2574
  };
2959
2575
  var getRoutePermission = (path) => ROUTE_PERMISSIONS[path];
2960
2576
 
2961
2577
  // src/components/layout/main-layout/main-layout.tsx
2962
- import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
2578
+ import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
2963
2579
  var navId = (to) => to.replace(/^\//, "");
2964
2580
  var toCoreNavItem = (route) => ({
2965
2581
  id: navId(route.to),
@@ -2973,7 +2589,7 @@ var toCoreNavItem = (route) => ({
2973
2589
  }))
2974
2590
  });
2975
2591
  var MainLayout = () => {
2976
- return /* @__PURE__ */ jsx13(Shell, { children: /* @__PURE__ */ jsx13(MainSidebar, {}) });
2592
+ return /* @__PURE__ */ jsx12(Shell, { children: /* @__PURE__ */ jsx12(MainSidebar, {}) });
2977
2593
  };
2978
2594
  var allMenuItems = menuItemsModule.menuItems ?? [];
2979
2595
  var addNestedItems = (to, menuItems, items) => {
@@ -3016,50 +2632,50 @@ var MainSidebar = () => {
3016
2632
  const customRoutesWithNested = customMenuItems.sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0)).map((item) => ({
3017
2633
  label: item.label,
3018
2634
  to: item.path,
3019
- icon: item.icon ? /* @__PURE__ */ jsx13(item.icon, {}) : void 0,
2635
+ icon: item.icon ? /* @__PURE__ */ jsx12(item.icon, {}) : void 0,
3020
2636
  translationNs: item.translationNs,
3021
2637
  items: addNestedItems(item.path, visibleMenuItems)
3022
2638
  }));
3023
- return /* @__PURE__ */ jsx13(
2639
+ return /* @__PURE__ */ jsx12(
3024
2640
  "aside",
3025
2641
  {
3026
2642
  className: "flex flex-1 flex-col justify-between overflow-y-auto overflow-x-hidden",
3027
2643
  "data-testid": "sidebar",
3028
- children: /* @__PURE__ */ jsxs9("div", { className: "flex flex-1 flex-col", children: [
3029
- /* @__PURE__ */ jsxs9(
2644
+ children: /* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col", children: [
2645
+ /* @__PURE__ */ jsxs7(
3030
2646
  "div",
3031
2647
  {
3032
2648
  className: "sticky top-0 bg-ui-bg-subtle",
3033
2649
  "data-testid": "sidebar-header-section",
3034
2650
  children: [
3035
- /* @__PURE__ */ jsx13(Header, {}),
3036
- /* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsx13(Divider, { variant: "dashed" }) })
2651
+ /* @__PURE__ */ jsx12(Header, {}),
2652
+ /* @__PURE__ */ jsx12("div", { className: "px-3", children: /* @__PURE__ */ jsx12(Divider, { variant: "dashed" }) })
3037
2653
  ]
3038
2654
  }
3039
2655
  ),
3040
- /* @__PURE__ */ jsxs9("div", { className: "flex flex-1 flex-col justify-between", children: [
3041
- /* @__PURE__ */ jsx13("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ jsxs9(
2656
+ /* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col justify-between", children: [
2657
+ /* @__PURE__ */ jsx12("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ jsxs7(
3042
2658
  "nav",
3043
2659
  {
3044
2660
  className: "flex flex-col gap-y-1 py-3",
3045
2661
  "data-testid": "sidebar-core-routes",
3046
2662
  children: [
3047
- /* @__PURE__ */ jsx13(Searchbar, {}),
2663
+ /* @__PURE__ */ jsx12(Searchbar, {}),
3048
2664
  routesWithNested.map((route) => {
3049
- return /* @__PURE__ */ jsx13(NavItem, { ...route }, route.to);
2665
+ return /* @__PURE__ */ jsx12(NavItem, { ...route }, route.to);
3050
2666
  }),
3051
- customRoutesWithNested.map((route) => /* @__PURE__ */ jsx13(NavItem, { ...route }, route.to))
2667
+ customRoutesWithNested.map((route) => /* @__PURE__ */ jsx12(NavItem, { ...route }, route.to))
3052
2668
  ]
3053
2669
  }
3054
2670
  ) }),
3055
- /* @__PURE__ */ jsx13(UtilitySection, {})
2671
+ /* @__PURE__ */ jsx12(UtilitySection, {})
3056
2672
  ] }),
3057
- /* @__PURE__ */ jsx13(
2673
+ /* @__PURE__ */ jsx12(
3058
2674
  "div",
3059
2675
  {
3060
2676
  className: "sticky bottom-0 bg-ui-bg-subtle",
3061
2677
  "data-testid": "sidebar-user-section",
3062
- children: /* @__PURE__ */ jsx13(UserSection, {})
2678
+ children: /* @__PURE__ */ jsx12(UserSection, {})
3063
2679
  }
3064
2680
  )
3065
2681
  ] })
@@ -3067,7 +2683,7 @@ var MainSidebar = () => {
3067
2683
  );
3068
2684
  };
3069
2685
  var Logout2 = () => {
3070
- const { t: t2 } = useTranslation9();
2686
+ const { t: t2 } = useTranslation8();
3071
2687
  const navigate = useNavigate4();
3072
2688
  const { mutateAsync: logoutMutation } = useLogout();
3073
2689
  const handleLogout = async () => {
@@ -3078,34 +2694,35 @@ var Logout2 = () => {
3078
2694
  }
3079
2695
  });
3080
2696
  };
3081
- return /* @__PURE__ */ jsx13(
2697
+ return /* @__PURE__ */ jsx12(
3082
2698
  DropdownMenu3.Item,
3083
2699
  {
3084
2700
  onClick: handleLogout,
3085
2701
  "data-testid": "sidebar-header-dropdown-logout",
3086
- children: /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-x-2", children: [
3087
- /* @__PURE__ */ jsx13(OpenRectArrowOut2, { className: "text-ui-fg-subtle" }),
3088
- /* @__PURE__ */ jsx13("span", { children: t2("app.menus.actions.logout") })
2702
+ children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-2", children: [
2703
+ /* @__PURE__ */ jsx12(OpenRectArrowOut2, { className: "text-ui-fg-subtle" }),
2704
+ /* @__PURE__ */ jsx12("span", { children: t2("app.menus.actions.logout") })
3089
2705
  ] })
3090
2706
  }
3091
2707
  );
3092
2708
  };
3093
2709
  var Header = () => {
3094
- const { t: t2 } = useTranslation9();
2710
+ const { t: t2 } = useTranslation8();
3095
2711
  const { store, isPending, isError, error } = useStore();
3096
2712
  const direction = useDocumentDirection();
2713
+ const menuPlacement = useSidebarMenuPlacement("start");
3097
2714
  const name = store?.name;
3098
2715
  const fallback = store?.name?.slice(0, 1).toUpperCase();
3099
2716
  const isLoaded = !isPending && !!store && !!name && !!fallback;
3100
2717
  if (isError) {
3101
2718
  throw error;
3102
2719
  }
3103
- return /* @__PURE__ */ jsx13("div", { className: "w-full p-3", "data-testid": "sidebar-header-dropdown", children: /* @__PURE__ */ jsxs9(DropdownMenu3, { dir: direction, "data-testid": "sidebar-header-dropdown-menu", children: [
3104
- /* @__PURE__ */ jsxs9(
2720
+ return /* @__PURE__ */ jsx12("div", { className: "w-full p-3", "data-testid": "sidebar-header-dropdown", children: /* @__PURE__ */ jsxs7(DropdownMenu3, { dir: direction, "data-testid": "sidebar-header-dropdown-menu", children: [
2721
+ /* @__PURE__ */ jsxs7(
3105
2722
  DropdownMenu3.Trigger,
3106
2723
  {
3107
2724
  disabled: !isLoaded,
3108
- className: clx6(
2725
+ className: clx5(
3109
2726
  "grid w-full grid-cols-[24px_1fr_15px] items-center gap-x-3 rounded-md bg-ui-bg-subtle p-0.5 pe-2 outline-none transition-fg",
3110
2727
  "hover:bg-ui-bg-subtle-hover",
3111
2728
  "data-[state=open]:bg-ui-bg-subtle-hover",
@@ -3113,7 +2730,7 @@ var Header = () => {
3113
2730
  ),
3114
2731
  "data-testid": "sidebar-header-dropdown-trigger",
3115
2732
  children: [
3116
- fallback ? /* @__PURE__ */ jsx13(
2733
+ fallback ? /* @__PURE__ */ jsx12(
3117
2734
  Avatar2,
3118
2735
  {
3119
2736
  variant: "squared",
@@ -3121,14 +2738,14 @@ var Header = () => {
3121
2738
  fallback,
3122
2739
  "data-testid": "sidebar-header-dropdown-avatar"
3123
2740
  }
3124
- ) : /* @__PURE__ */ jsx13(Skeleton, { className: "h-6 w-6 rounded-md" }),
3125
- /* @__PURE__ */ jsx13(
2741
+ ) : /* @__PURE__ */ jsx12(Skeleton, { className: "h-6 w-6 rounded-md" }),
2742
+ /* @__PURE__ */ jsx12(
3126
2743
  "div",
3127
2744
  {
3128
- className: clx6("block overflow-hidden whitespace-nowrap text-start", SIDEBAR_RAIL_FADE),
2745
+ className: clx5("block overflow-hidden whitespace-nowrap text-start", SIDEBAR_RAIL_FADE),
3129
2746
  "data-testid": "sidebar-header-dropdown-store-name",
3130
- children: name ? /* @__PURE__ */ jsx13(
3131
- Text7,
2747
+ children: name ? /* @__PURE__ */ jsx12(
2748
+ Text5,
3132
2749
  {
3133
2750
  size: "small",
3134
2751
  weight: "plus",
@@ -3136,26 +2753,27 @@ var Header = () => {
3136
2753
  className: "truncate",
3137
2754
  children: store.name
3138
2755
  }
3139
- ) : /* @__PURE__ */ jsx13(Skeleton, { className: "h-[9px] w-[120px]" })
2756
+ ) : /* @__PURE__ */ jsx12(Skeleton, { className: "h-[9px] w-[120px]" })
3140
2757
  }
3141
2758
  ),
3142
- /* @__PURE__ */ jsx13(EllipsisHorizontal2, { className: clx6("text-ui-fg-muted", SIDEBAR_RAIL_FADE) })
2759
+ /* @__PURE__ */ jsx12(EllipsisHorizontal2, { className: clx5("text-ui-fg-muted", SIDEBAR_RAIL_FADE) })
3143
2760
  ]
3144
2761
  }
3145
2762
  ),
3146
- isLoaded && /* @__PURE__ */ jsxs9(
2763
+ isLoaded && /* @__PURE__ */ jsxs7(
3147
2764
  DropdownMenu3.Content,
3148
2765
  {
3149
- className: "w-[var(--radix-dropdown-menu-trigger-width)] min-w-0",
2766
+ ...menuPlacement,
2767
+ className: SIDEBAR_MENU_CONTENT,
3150
2768
  "data-testid": "sidebar-header-dropdown-content",
3151
2769
  children: [
3152
- /* @__PURE__ */ jsxs9(
2770
+ /* @__PURE__ */ jsxs7(
3153
2771
  "div",
3154
2772
  {
3155
2773
  className: "flex items-center gap-x-3 px-2 py-1",
3156
2774
  "data-testid": "sidebar-header-dropdown-user-info",
3157
2775
  children: [
3158
- /* @__PURE__ */ jsx13(
2776
+ /* @__PURE__ */ jsx12(
3159
2777
  Avatar2,
3160
2778
  {
3161
2779
  variant: "squared",
@@ -3164,14 +2782,14 @@ var Header = () => {
3164
2782
  "data-testid": "sidebar-header-dropdown-user-avatar"
3165
2783
  }
3166
2784
  ),
3167
- /* @__PURE__ */ jsxs9(
2785
+ /* @__PURE__ */ jsxs7(
3168
2786
  "div",
3169
2787
  {
3170
2788
  className: "flex flex-col overflow-hidden",
3171
2789
  "data-testid": "sidebar-header-dropdown-user-details",
3172
2790
  children: [
3173
- /* @__PURE__ */ jsx13(
3174
- Text7,
2791
+ /* @__PURE__ */ jsx12(
2792
+ Text5,
3175
2793
  {
3176
2794
  size: "small",
3177
2795
  weight: "plus",
@@ -3181,8 +2799,8 @@ var Header = () => {
3181
2799
  children: name
3182
2800
  }
3183
2801
  ),
3184
- /* @__PURE__ */ jsx13(
3185
- Text7,
2802
+ /* @__PURE__ */ jsx12(
2803
+ Text5,
3186
2804
  {
3187
2805
  size: "xsmall",
3188
2806
  leading: "compact",
@@ -3197,31 +2815,31 @@ var Header = () => {
3197
2815
  ]
3198
2816
  }
3199
2817
  ),
3200
- /* @__PURE__ */ jsx13(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-1" }),
3201
- /* @__PURE__ */ jsx13(
2818
+ /* @__PURE__ */ jsx12(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-1" }),
2819
+ /* @__PURE__ */ jsx12(
3202
2820
  DropdownMenu3.Item,
3203
2821
  {
3204
2822
  className: "gap-x-2",
3205
2823
  asChild: true,
3206
2824
  "data-testid": "sidebar-header-dropdown-store-settings",
3207
- children: /* @__PURE__ */ jsxs9(Link3, { to: "/settings/marketplace", children: [
3208
- /* @__PURE__ */ jsx13(BuildingStorefront, { className: "text-ui-fg-subtle" }),
2825
+ children: /* @__PURE__ */ jsxs7(Link3, { to: "/settings/marketplace", children: [
2826
+ /* @__PURE__ */ jsx12(BuildingStorefront, { className: "text-ui-fg-subtle" }),
3209
2827
  t2("app.nav.main.marketplaceSettings")
3210
2828
  ] })
3211
2829
  }
3212
2830
  ),
3213
- /* @__PURE__ */ jsx13(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-2" }),
3214
- /* @__PURE__ */ jsx13(Logout2, {})
2831
+ /* @__PURE__ */ jsx12(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-2" }),
2832
+ /* @__PURE__ */ jsx12(Logout2, {})
3215
2833
  ]
3216
2834
  }
3217
2835
  )
3218
2836
  ] }) });
3219
2837
  };
3220
2838
  var useCoreRoutes = () => {
3221
- const { t: t2 } = useTranslation9();
2839
+ const { t: t2 } = useTranslation8();
3222
2840
  return [
3223
2841
  {
3224
- icon: /* @__PURE__ */ jsx13(ShoppingCart, {}),
2842
+ icon: /* @__PURE__ */ jsx12(ShoppingCart, {}),
3225
2843
  label: t2("orders.domain"),
3226
2844
  to: "/orders",
3227
2845
  items: [
@@ -3233,7 +2851,7 @@ var useCoreRoutes = () => {
3233
2851
  ]
3234
2852
  },
3235
2853
  {
3236
- icon: /* @__PURE__ */ jsx13(Tag, {}),
2854
+ icon: /* @__PURE__ */ jsx12(Tag, {}),
3237
2855
  label: t2("products.domain"),
3238
2856
  to: "/products",
3239
2857
  items: [
@@ -3257,7 +2875,7 @@ var useCoreRoutes = () => {
3257
2875
  ]
3258
2876
  },
3259
2877
  {
3260
- icon: /* @__PURE__ */ jsx13(Buildings, {}),
2878
+ icon: /* @__PURE__ */ jsx12(Buildings, {}),
3261
2879
  label: t2("inventory.domain"),
3262
2880
  to: "/inventory",
3263
2881
  items: [
@@ -3268,7 +2886,7 @@ var useCoreRoutes = () => {
3268
2886
  ]
3269
2887
  },
3270
2888
  {
3271
- icon: /* @__PURE__ */ jsx13(Users, {}),
2889
+ icon: /* @__PURE__ */ jsx12(Users, {}),
3272
2890
  label: t2("customers.domain"),
3273
2891
  to: "/customers",
3274
2892
  items: [
@@ -3279,7 +2897,7 @@ var useCoreRoutes = () => {
3279
2897
  ]
3280
2898
  },
3281
2899
  {
3282
- icon: /* @__PURE__ */ jsx13(ReceiptPercent, {}),
2900
+ icon: /* @__PURE__ */ jsx12(ReceiptPercent, {}),
3283
2901
  label: t2("promotions.domain"),
3284
2902
  to: "/promotions",
3285
2903
  items: [
@@ -3290,12 +2908,12 @@ var useCoreRoutes = () => {
3290
2908
  ]
3291
2909
  },
3292
2910
  {
3293
- icon: /* @__PURE__ */ jsx13(CurrencyDollar, {}),
2911
+ icon: /* @__PURE__ */ jsx12(CurrencyDollar, {}),
3294
2912
  label: t2("priceLists.domain"),
3295
2913
  to: "/price-lists"
3296
2914
  },
3297
2915
  {
3298
- icon: /* @__PURE__ */ jsx13(BuildingStorefront, {}),
2916
+ icon: /* @__PURE__ */ jsx12(BuildingStorefront, {}),
3299
2917
  label: t2("stores.domain"),
3300
2918
  to: "/stores",
3301
2919
  items: [
@@ -3306,72 +2924,73 @@ var useCoreRoutes = () => {
3306
2924
  ]
3307
2925
  },
3308
2926
  {
3309
- icon: /* @__PURE__ */ jsx13(CreditCardRefresh, {}),
2927
+ icon: /* @__PURE__ */ jsx12(CreditCardRefresh, {}),
3310
2928
  label: t2("payouts.domain"),
3311
2929
  to: "/payouts"
3312
2930
  }
3313
2931
  ];
3314
2932
  };
3315
2933
  var Searchbar = () => {
3316
- const { t: t2 } = useTranslation9();
2934
+ const { t: t2 } = useTranslation8();
3317
2935
  const { toggleSearch } = useSearch();
3318
- return /* @__PURE__ */ jsx13("div", { className: "px-3", "data-testid": "sidebar-search", children: /* @__PURE__ */ jsxs9(
2936
+ return /* @__PURE__ */ jsx12("div", { className: "px-3", "data-testid": "sidebar-search", children: /* @__PURE__ */ jsxs7(
3319
2937
  "button",
3320
2938
  {
3321
2939
  onClick: toggleSearch,
3322
- className: clx6(
2940
+ className: clx5(
3323
2941
  "flex w-full items-center gap-x-2.5 rounded-md bg-ui-bg-subtle px-2 py-1 text-ui-fg-subtle outline-none transition-[padding] duration-200 ease-sidebar motion-reduce:transition-none group-data-[state=collapsed]/sidebar:px-1",
3324
2942
  "hover:bg-ui-bg-subtle-hover",
3325
2943
  "focus-visible:shadow-borders-focus"
3326
2944
  ),
3327
2945
  "data-testid": "sidebar-search-button",
3328
2946
  children: [
3329
- /* @__PURE__ */ jsx13(MagnifyingGlass2, { className: "shrink-0" }),
3330
- /* @__PURE__ */ jsx13("div", { className: clx6("flex-1 whitespace-nowrap text-start", SIDEBAR_RAIL_FADE), children: /* @__PURE__ */ jsx13(Text7, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.label") }) }),
3331
- /* @__PURE__ */ jsx13(Text7, { size: "small", leading: "compact", className: clx6("text-ui-fg-muted", SIDEBAR_RAIL_FADE), children: "\u2318K" })
2947
+ /* @__PURE__ */ jsx12(MagnifyingGlass2, { className: "shrink-0" }),
2948
+ /* @__PURE__ */ jsx12("div", { className: clx5("flex-1 whitespace-nowrap text-start", SIDEBAR_RAIL_FADE), children: /* @__PURE__ */ jsx12(Text5, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.label") }) }),
2949
+ /* @__PURE__ */ jsx12(Text5, { size: "small", leading: "compact", className: clx5("text-ui-fg-muted", SIDEBAR_RAIL_FADE), children: "\u2318K" })
3332
2950
  ]
3333
2951
  }
3334
2952
  ) });
3335
2953
  };
3336
2954
  var UtilitySection = () => {
3337
2955
  const location = useLocation6();
3338
- const { t: t2 } = useTranslation9();
3339
- return /* @__PURE__ */ jsx13("div", { className: "flex flex-col gap-y-0.5 py-3", children: /* @__PURE__ */ jsx13(
2956
+ const { t: t2 } = useTranslation8();
2957
+ return /* @__PURE__ */ jsx12("div", { className: "flex flex-col gap-y-0.5 py-3", children: /* @__PURE__ */ jsx12(
3340
2958
  NavItem,
3341
2959
  {
3342
2960
  label: t2("app.nav.settings.header"),
3343
2961
  to: "/settings",
3344
2962
  from: location.pathname,
3345
- icon: /* @__PURE__ */ jsx13(CogSixTooth, {})
2963
+ icon: /* @__PURE__ */ jsx12(CogSixTooth, {})
3346
2964
  }
3347
2965
  ) });
3348
2966
  };
3349
2967
  var UserSection = () => {
3350
- return /* @__PURE__ */ jsxs9("div", { children: [
3351
- /* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsx13(Divider, { variant: "dashed" }) }),
3352
- /* @__PURE__ */ jsx13(UserMenu, {})
2968
+ return /* @__PURE__ */ jsxs7("div", { children: [
2969
+ /* @__PURE__ */ jsx12("div", { className: "px-3", children: /* @__PURE__ */ jsx12(Divider, { variant: "dashed" }) }),
2970
+ /* @__PURE__ */ jsx12(UserMenu, {})
3353
2971
  ] });
3354
2972
  };
3355
2973
 
3356
2974
  // src/components/layout/public-layout/public-layout.tsx
3357
2975
  import { Outlet as Outlet3 } from "react-router-dom";
3358
- import { jsx as jsx14 } from "react/jsx-runtime";
2976
+ import { jsx as jsx13 } from "react/jsx-runtime";
3359
2977
  var PublicLayout = () => {
3360
- return /* @__PURE__ */ jsx14(Outlet3, {});
2978
+ return /* @__PURE__ */ jsx13(Outlet3, {});
3361
2979
  };
3362
2980
 
3363
2981
  // src/components/layout/settings-layout/settings-layout.tsx
3364
- import { useEffect as useEffect9, useMemo as useMemo6, useState as useState11 } from "react";
2982
+ import { useEffect as useEffect8, useMemo as useMemo6, useState as useState10 } from "react";
3365
2983
  import { ArrowUturnLeft as ArrowUturnLeft2, MinusMini } from "@medusajs/icons";
3366
- import { Divider as Divider2, IconButton as IconButton6, Text as Text8, clx as clx7 } from "@medusajs/ui";
2984
+ import { Divider as Divider2, IconButton as IconButton4, Text as Text6, clx as clx6 } from "@medusajs/ui";
3367
2985
  import { Collapsible as RadixCollapsible2 } from "radix-ui";
3368
- import { useTranslation as useTranslation10 } from "react-i18next";
2986
+ import { useTranslation as useTranslation9 } from "react-i18next";
3369
2987
  import { Link as Link4, useLocation as useLocation7 } from "react-router-dom";
3370
2988
  import menuItemsModule2 from "virtual:mercur/menu-items";
3371
2989
  import { usePermissions as usePermissions2 } from "@mercurjs/dashboard-shared";
3372
- import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
2990
+ import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
3373
2991
  var SettingsLayout = () => {
3374
- return /* @__PURE__ */ jsx15(Shell, { children: /* @__PURE__ */ jsx15(SettingsSidebar, {}) });
2992
+ useExpandedSidebar();
2993
+ return /* @__PURE__ */ jsx14(Shell, { rail: false, children: /* @__PURE__ */ jsx14(SettingsSidebar, {}) });
3375
2994
  };
3376
2995
  var allMenuItems2 = menuItemsModule2.menuItems ?? [];
3377
2996
  var useExtensionNavItems = () => {
@@ -3392,7 +3011,7 @@ var useExtensionNavItems = () => {
3392
3011
  );
3393
3012
  };
3394
3013
  var useSettingRoutes = () => {
3395
- const { t: t2 } = useTranslation10();
3014
+ const { t: t2 } = useTranslation9();
3396
3015
  const extensionNavItems = useExtensionNavItems();
3397
3016
  return useMemo6(
3398
3017
  () => [
@@ -3450,7 +3069,7 @@ var useSettingRoutes = () => {
3450
3069
  );
3451
3070
  };
3452
3071
  var useDeveloperRoutes = () => {
3453
- const { t: t2 } = useTranslation10();
3072
+ const { t: t2 } = useTranslation9();
3454
3073
  return useMemo6(
3455
3074
  () => [
3456
3075
  {
@@ -3466,7 +3085,7 @@ var useDeveloperRoutes = () => {
3466
3085
  );
3467
3086
  };
3468
3087
  var useMyAccountRoutes = () => {
3469
- const { t: t2 } = useTranslation10();
3088
+ const { t: t2 } = useTranslation9();
3470
3089
  return useMemo6(
3471
3090
  () => [
3472
3091
  {
@@ -3492,31 +3111,31 @@ var SettingsSidebar = () => {
3492
3111
  const routes = useSettingRoutes().filter(canReach);
3493
3112
  const developerRoutes = useDeveloperRoutes().filter(canReach);
3494
3113
  const myAccountRoutes = useMyAccountRoutes();
3495
- const { t: t2 } = useTranslation10();
3496
- return /* @__PURE__ */ jsxs10("aside", { className: "relative flex flex-1 flex-col justify-between overflow-y-auto", children: [
3497
- /* @__PURE__ */ jsxs10("div", { className: "sticky top-0 bg-ui-bg-subtle", children: [
3498
- /* @__PURE__ */ jsx15(Header2, {}),
3499
- /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx15(Divider2, { variant: "dashed" }) })
3114
+ const { t: t2 } = useTranslation9();
3115
+ return /* @__PURE__ */ jsxs8("aside", { className: "relative flex flex-1 flex-col justify-between overflow-y-auto", children: [
3116
+ /* @__PURE__ */ jsxs8("div", { className: "sticky top-0 bg-ui-bg-subtle", children: [
3117
+ /* @__PURE__ */ jsx14(Header2, {}),
3118
+ /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) })
3500
3119
  ] }),
3501
- /* @__PURE__ */ jsxs10("div", { className: "flex flex-1 flex-col", children: [
3502
- /* @__PURE__ */ jsxs10("div", { className: "flex flex-1 flex-col overflow-y-auto", children: [
3503
- /* @__PURE__ */ jsx15(
3120
+ /* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col", children: [
3121
+ /* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col overflow-y-auto", children: [
3122
+ /* @__PURE__ */ jsx14(
3504
3123
  RadixCollapsibleSection,
3505
3124
  {
3506
3125
  label: t2("app.nav.settings.general"),
3507
3126
  items: routes
3508
3127
  }
3509
3128
  ),
3510
- /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx15(Divider2, { variant: "dashed" }) }),
3511
- /* @__PURE__ */ jsx15(
3129
+ /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) }),
3130
+ /* @__PURE__ */ jsx14(
3512
3131
  RadixCollapsibleSection,
3513
3132
  {
3514
3133
  label: t2("app.nav.settings.developer"),
3515
3134
  items: developerRoutes
3516
3135
  }
3517
3136
  ),
3518
- /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx15(Divider2, { variant: "dashed" }) }),
3519
- /* @__PURE__ */ jsx15(
3137
+ /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) }),
3138
+ /* @__PURE__ */ jsx14(
3520
3139
  RadixCollapsibleSection,
3521
3140
  {
3522
3141
  label: t2("app.nav.settings.myAccount"),
@@ -3524,32 +3143,32 @@ var SettingsSidebar = () => {
3524
3143
  }
3525
3144
  )
3526
3145
  ] }),
3527
- /* @__PURE__ */ jsx15("div", { className: "sticky bottom-0 bg-ui-bg-subtle", children: /* @__PURE__ */ jsx15(UserSection2, {}) })
3146
+ /* @__PURE__ */ jsx14("div", { className: "sticky bottom-0 bg-ui-bg-subtle", children: /* @__PURE__ */ jsx14(UserSection2, {}) })
3528
3147
  ] })
3529
3148
  ] });
3530
3149
  };
3531
3150
  var Header2 = () => {
3532
- const [from, setFrom] = useState11("/orders");
3533
- const { t: t2 } = useTranslation10();
3151
+ const [from, setFrom] = useState10("/orders");
3152
+ const { t: t2 } = useTranslation9();
3534
3153
  const location = useLocation7();
3535
- useEffect9(() => {
3154
+ useEffect8(() => {
3536
3155
  if (location.state?.from) {
3537
3156
  setFrom(getSafeFromValue(location.state.from));
3538
3157
  }
3539
3158
  }, [location]);
3540
- return /* @__PURE__ */ jsx15("div", { className: "bg-ui-bg-subtle p-3", children: /* @__PURE__ */ jsx15(
3159
+ return /* @__PURE__ */ jsx14("div", { className: "bg-ui-bg-subtle p-3", children: /* @__PURE__ */ jsx14(
3541
3160
  Link4,
3542
3161
  {
3543
3162
  to: from,
3544
3163
  replace: true,
3545
- className: clx7(
3164
+ className: clx6(
3546
3165
  "flex items-center rounded-md bg-ui-bg-subtle outline-none transition-fg",
3547
3166
  "hover:bg-ui-bg-subtle-hover",
3548
3167
  "focus-visible:shadow-borders-focus"
3549
3168
  ),
3550
- children: /* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-x-2.5 px-2 py-1", children: [
3551
- /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx15(ArrowUturnLeft2, { className: "text-ui-fg-subtle" }) }),
3552
- /* @__PURE__ */ jsx15(Text8, { leading: "compact", weight: "plus", size: "small", children: t2("app.nav.settings.header") })
3169
+ children: /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-x-2.5 px-2 py-1", children: [
3170
+ /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx14(ArrowUturnLeft2, { className: "text-ui-fg-subtle" }) }),
3171
+ /* @__PURE__ */ jsx14(Text6, { leading: "compact", weight: "plus", size: "small", children: t2("app.nav.settings.header") })
3553
3172
  ] })
3554
3173
  }
3555
3174
  ) });
@@ -3558,24 +3177,24 @@ var RadixCollapsibleSection = ({
3558
3177
  label,
3559
3178
  items
3560
3179
  }) => {
3561
- return /* @__PURE__ */ jsxs10(RadixCollapsible2.Root, { defaultOpen: true, className: "py-3", children: [
3562
- /* @__PURE__ */ jsx15("div", { className: "px-3", children: /* @__PURE__ */ jsxs10("div", { className: "flex h-7 items-center justify-between px-2 text-ui-fg-muted", children: [
3563
- /* @__PURE__ */ jsx15(Text8, { size: "small", leading: "compact", children: label }),
3564
- /* @__PURE__ */ jsx15(RadixCollapsible2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx15(IconButton6, { size: "2xsmall", variant: "transparent", className: "static", children: /* @__PURE__ */ jsx15(MinusMini, { className: "text-ui-fg-muted" }) }) })
3180
+ return /* @__PURE__ */ jsxs8(RadixCollapsible2.Root, { defaultOpen: true, className: "py-3", children: [
3181
+ /* @__PURE__ */ jsx14("div", { className: "px-3", children: /* @__PURE__ */ jsxs8("div", { className: "flex h-7 items-center justify-between px-2 text-ui-fg-muted", children: [
3182
+ /* @__PURE__ */ jsx14(Text6, { size: "small", leading: "compact", children: label }),
3183
+ /* @__PURE__ */ jsx14(RadixCollapsible2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx14(IconButton4, { size: "2xsmall", variant: "transparent", className: "static", children: /* @__PURE__ */ jsx14(MinusMini, { className: "text-ui-fg-muted" }) }) })
3565
3184
  ] }) }),
3566
- /* @__PURE__ */ jsx15(RadixCollapsible2.Content, { children: /* @__PURE__ */ jsx15("div", { className: "pt-0.5", children: /* @__PURE__ */ jsx15("nav", { className: "flex flex-col gap-y-0.5", children: items.map((setting) => /* @__PURE__ */ jsx15(NavItem, { type: "setting", ...setting }, setting.to)) }) }) })
3185
+ /* @__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)) }) }) })
3567
3186
  ] });
3568
3187
  };
3569
3188
  var UserSection2 = () => {
3570
- return /* @__PURE__ */ jsxs10("div", { children: [
3571
- /* @__PURE__ */ jsx15("div", { className: "px-3", children: /* @__PURE__ */ jsx15(Divider2, { variant: "dashed" }) }),
3572
- /* @__PURE__ */ jsx15(UserMenu, {})
3189
+ return /* @__PURE__ */ jsxs8("div", { children: [
3190
+ /* @__PURE__ */ jsx14("div", { className: "px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) }),
3191
+ /* @__PURE__ */ jsx14(UserMenu, {})
3573
3192
  ] });
3574
3193
  };
3575
3194
 
3576
3195
  // src/get-route-map.tsx
3577
3196
  import { RoutePermissionGuard } from "@mercurjs/dashboard-shared";
3578
- import { jsx as jsx16 } from "react/jsx-runtime";
3197
+ import { jsx as jsx15 } from "react/jsx-runtime";
3579
3198
  function mergeRoutes(baseRoutes, customRoutes2) {
3580
3199
  const result = baseRoutes.map((route) => ({ ...route }));
3581
3200
  for (const customRoute of customRoutes2) {
@@ -3609,40 +3228,40 @@ function getRouteMap({
3609
3228
  }) {
3610
3229
  return [
3611
3230
  {
3612
- element: /* @__PURE__ */ jsx16(ProtectedRoute, {}),
3613
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3231
+ element: /* @__PURE__ */ jsx15(ProtectedRoute, {}),
3232
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3614
3233
  children: [
3615
3234
  {
3616
- element: /* @__PURE__ */ jsx16(MainLayout, {}),
3235
+ element: /* @__PURE__ */ jsx15(MainLayout, {}),
3617
3236
  children: [
3618
3237
  {
3619
3238
  // Pathless wrapper so every route below — including extension
3620
3239
  // routes merged in from virtual:mercur/routes — is enforced
3621
3240
  // without each one wiring its own guard element.
3622
- element: /* @__PURE__ */ jsx16(RoutePermissionGuard, {}),
3241
+ element: /* @__PURE__ */ jsx15(RoutePermissionGuard, {}),
3623
3242
  children: mergeRoutes(
3624
3243
  [
3625
3244
  {
3626
3245
  path: "/",
3627
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3246
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3628
3247
  lazy: () => import("./home-I3OILW5Z.js")
3629
3248
  },
3630
3249
  {
3631
3250
  path: "/products",
3632
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3251
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3633
3252
  handle: {
3634
3253
  breadcrumb: () => t("products.domain"),
3635
- permissions: "product:read"
3254
+ permissions: "products:view"
3636
3255
  },
3637
3256
  children: [
3638
3257
  {
3639
3258
  path: "",
3640
- lazy: () => import("./product-list-XDJB3HX7.js"),
3259
+ lazy: () => import("./product-list-P36GYG5T.js"),
3641
3260
  children: [
3642
3261
  {
3643
3262
  path: "create",
3644
- handle: { permissions: "product:create" },
3645
- lazy: () => import("./product-create-SHIGHLQN.js")
3263
+ handle: { permissions: "products:edit" },
3264
+ lazy: () => import("./product-create-HIPOU56R.js")
3646
3265
  },
3647
3266
  {
3648
3267
  path: "bulk-edit",
@@ -3652,30 +3271,30 @@ function getRouteMap({
3652
3271
  },
3653
3272
  {
3654
3273
  path: ":id",
3655
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3274
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3656
3275
  lazy: async () => {
3657
- const { Breadcrumb, loader } = await import("./product-detail-UGSTCK7J.js");
3276
+ const { Breadcrumb, loader } = await import("./product-detail-A6QXISZB.js");
3658
3277
  return {
3659
3278
  Component: Outlet4,
3660
3279
  loader,
3661
3280
  handle: {
3662
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3281
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3663
3282
  }
3664
3283
  };
3665
3284
  },
3666
3285
  children: [
3667
3286
  {
3668
3287
  path: "",
3669
- lazy: () => import("./product-detail-UGSTCK7J.js"),
3288
+ lazy: () => import("./product-detail-A6QXISZB.js"),
3670
3289
  children: [
3671
3290
  {
3672
3291
  path: "edit",
3673
- handle: { permissions: "product:update" },
3674
- lazy: () => import("./product-edit-2CMVTDWT.js")
3292
+ handle: { permissions: "products:edit" },
3293
+ lazy: () => import("./product-edit-TAVV5CWR.js")
3675
3294
  },
3676
3295
  {
3677
3296
  path: "edit-variant",
3678
- lazy: () => import("./product-variant-edit-4DPXTYPT.js")
3297
+ lazy: () => import("./product-variant-edit-UMI2ADCC.js")
3679
3298
  },
3680
3299
  {
3681
3300
  path: "sales-channels",
@@ -3687,11 +3306,11 @@ function getRouteMap({
3687
3306
  },
3688
3307
  {
3689
3308
  path: "attributes/create",
3690
- lazy: () => import("./product-create-attribute-QYRCPUFC.js")
3309
+ lazy: () => import("./product-create-attribute-CJF6JROA.js")
3691
3310
  },
3692
3311
  {
3693
3312
  path: "attributes/add",
3694
- lazy: () => import("./product-add-existing-attributes-2UFTXE2N.js")
3313
+ lazy: () => import("./product-add-existing-attributes-VH5YF27I.js")
3695
3314
  },
3696
3315
  {
3697
3316
  path: "attributes/:attribute_id/edit",
@@ -3699,7 +3318,7 @@ function getRouteMap({
3699
3318
  },
3700
3319
  {
3701
3320
  path: "organization",
3702
- lazy: () => import("./product-organization-TNS7GBKN.js")
3321
+ lazy: () => import("./product-organization-3PIQ4IY2.js")
3703
3322
  },
3704
3323
  {
3705
3324
  path: "shipping-profile",
@@ -3707,43 +3326,43 @@ function getRouteMap({
3707
3326
  },
3708
3327
  {
3709
3328
  path: "media",
3710
- lazy: () => import("./product-media-CO3F57JT.js")
3329
+ lazy: () => import("./product-media-C2IYU2KA.js")
3711
3330
  },
3712
3331
  {
3713
3332
  path: "variants/create",
3714
- lazy: () => import("./product-create-variant-MZLHG5JF.js")
3333
+ lazy: () => import("./product-create-variant-TZSSAMR5.js")
3715
3334
  },
3716
3335
  {
3717
3336
  path: "metadata/edit",
3718
- lazy: () => import("./product-metadata-5CRGB7TR.js")
3337
+ lazy: () => import("./product-metadata-GKQUURAL.js")
3719
3338
  }
3720
3339
  ]
3721
3340
  },
3722
3341
  {
3723
3342
  path: "variants/:variant_id",
3724
3343
  lazy: async () => {
3725
- const { Breadcrumb, loader } = await import("./product-variant-detail-XHMS2UT5.js");
3344
+ const { Breadcrumb, loader } = await import("./product-variant-detail-7B26FRNG.js");
3726
3345
  return {
3727
3346
  Component: Outlet4,
3728
3347
  loader,
3729
3348
  handle: {
3730
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3349
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3731
3350
  }
3732
3351
  };
3733
3352
  },
3734
3353
  children: [
3735
3354
  {
3736
3355
  path: "",
3737
- lazy: () => import("./product-variant-detail-XHMS2UT5.js"),
3356
+ lazy: () => import("./product-variant-detail-7B26FRNG.js"),
3738
3357
  children: [
3739
3358
  {
3740
3359
  path: "edit",
3741
- handle: { permissions: "product:update" },
3742
- lazy: () => import("./product-variant-edit-4DPXTYPT.js")
3360
+ handle: { permissions: "products:edit" },
3361
+ lazy: () => import("./product-variant-edit-UMI2ADCC.js")
3743
3362
  },
3744
3363
  {
3745
3364
  path: "metadata/edit",
3746
- lazy: () => import("./product-variant-metadata-ETVJBXSW.js")
3365
+ lazy: () => import("./product-variant-metadata-CTKNNNLM.js")
3747
3366
  }
3748
3367
  ]
3749
3368
  }
@@ -3755,19 +3374,19 @@ function getRouteMap({
3755
3374
  },
3756
3375
  {
3757
3376
  path: "/categories",
3758
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3377
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3759
3378
  handle: {
3760
3379
  breadcrumb: () => t("categories.domain"),
3761
- permissions: "product_category:read"
3380
+ permissions: "product_categories:view"
3762
3381
  },
3763
3382
  children: [
3764
3383
  {
3765
3384
  path: "",
3766
- lazy: () => import("./category-list-J7XYQDJU.js"),
3385
+ lazy: () => import("./category-list-LESUC6ZK.js"),
3767
3386
  children: [
3768
3387
  {
3769
3388
  path: "create",
3770
- handle: { permissions: "product_category:create" },
3389
+ handle: { permissions: "product_categories:edit" },
3771
3390
  lazy: () => import("./category-create-7RFRKVKF.js")
3772
3391
  },
3773
3392
  {
@@ -3779,23 +3398,23 @@ function getRouteMap({
3779
3398
  {
3780
3399
  path: ":id",
3781
3400
  lazy: async () => {
3782
- const { Breadcrumb, loader } = await import("./category-detail-GVEDFNM7.js");
3401
+ const { Breadcrumb, loader } = await import("./category-detail-3BENYEEV.js");
3783
3402
  return {
3784
3403
  Component: Outlet4,
3785
3404
  loader,
3786
3405
  handle: {
3787
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3406
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3788
3407
  }
3789
3408
  };
3790
3409
  },
3791
3410
  children: [
3792
3411
  {
3793
3412
  path: "",
3794
- lazy: () => import("./category-detail-GVEDFNM7.js"),
3413
+ lazy: () => import("./category-detail-3BENYEEV.js"),
3795
3414
  children: [
3796
3415
  {
3797
3416
  path: "edit",
3798
- handle: { permissions: "product_category:update" },
3417
+ handle: { permissions: "product_categories:edit" },
3799
3418
  lazy: () => import("./category-edit-3KXRPXXJ.js")
3800
3419
  },
3801
3420
  {
@@ -3808,7 +3427,7 @@ function getRouteMap({
3808
3427
  },
3809
3428
  {
3810
3429
  path: "products",
3811
- lazy: () => import("./category-products-VVF5NXCE.js")
3430
+ lazy: () => import("./category-products-WBUZKCGK.js")
3812
3431
  },
3813
3432
  {
3814
3433
  path: "organize",
@@ -3816,7 +3435,7 @@ function getRouteMap({
3816
3435
  },
3817
3436
  {
3818
3437
  path: "metadata/edit",
3819
- lazy: () => import("./categories-metadata-MJAYSCTW.js")
3438
+ lazy: () => import("./categories-metadata-6F6EFZRQ.js")
3820
3439
  }
3821
3440
  ]
3822
3441
  }
@@ -3826,32 +3445,32 @@ function getRouteMap({
3826
3445
  },
3827
3446
  {
3828
3447
  path: "/orders",
3829
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3448
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3830
3449
  handle: {
3831
3450
  breadcrumb: () => t("orders.domain"),
3832
- permissions: "order:read"
3451
+ permissions: "orders:view"
3833
3452
  },
3834
3453
  children: [
3835
3454
  {
3836
3455
  path: "",
3837
- lazy: () => import("./order-list-I6JZT6JK.js")
3456
+ lazy: () => import("./order-list-FAP6DRYP.js")
3838
3457
  },
3839
3458
  {
3840
3459
  path: ":id",
3841
3460
  lazy: async () => {
3842
- const { Breadcrumb, loader } = await import("./order-detail-3ODC5NOT.js");
3461
+ const { Breadcrumb, loader } = await import("./order-detail-U3HDRBBG.js");
3843
3462
  return {
3844
3463
  Component: Outlet4,
3845
3464
  loader,
3846
3465
  handle: {
3847
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3466
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3848
3467
  }
3849
3468
  };
3850
3469
  },
3851
3470
  children: [
3852
3471
  {
3853
3472
  path: "",
3854
- lazy: () => import("./order-detail-3ODC5NOT.js"),
3473
+ lazy: () => import("./order-detail-U3HDRBBG.js"),
3855
3474
  children: [
3856
3475
  {
3857
3476
  path: "returns",
@@ -3863,7 +3482,7 @@ function getRouteMap({
3863
3482
  },
3864
3483
  {
3865
3484
  path: "exchanges",
3866
- lazy: () => import("./order-create-exchange-CC7CQECO.js")
3485
+ lazy: () => import("./order-create-exchange-CBQ5PA6M.js")
3867
3486
  },
3868
3487
  {
3869
3488
  path: "edits",
@@ -3871,27 +3490,27 @@ function getRouteMap({
3871
3490
  },
3872
3491
  {
3873
3492
  path: "refund",
3874
- lazy: () => import("./order-create-refund-FJLL4CUD.js")
3493
+ lazy: () => import("./order-create-refund-ZWMXQGUA.js")
3875
3494
  },
3876
3495
  {
3877
3496
  path: "transfer",
3878
- lazy: () => import("./order-request-transfer-RYVK4WYW.js")
3497
+ lazy: () => import("./order-request-transfer-7EZX5UOQ.js")
3879
3498
  },
3880
3499
  {
3881
3500
  path: "email",
3882
- lazy: () => import("./order-edit-email-BREEW246.js")
3501
+ lazy: () => import("./order-edit-email-AGJU7YHU.js")
3883
3502
  },
3884
3503
  {
3885
3504
  path: "shipping-address",
3886
- lazy: () => import("./order-edit-shipping-address-XUG74AFY.js")
3505
+ lazy: () => import("./order-edit-shipping-address-TKLEEHOE.js")
3887
3506
  },
3888
3507
  {
3889
3508
  path: "billing-address",
3890
- lazy: () => import("./order-edit-billing-address-SBVWRA25.js")
3509
+ lazy: () => import("./order-edit-billing-address-V6QS5DYF.js")
3891
3510
  },
3892
3511
  {
3893
3512
  path: "metadata/edit",
3894
- lazy: () => import("./order-metadata-VIG5MGYV.js")
3513
+ lazy: () => import("./order-metadata-NVC3A3A5.js")
3895
3514
  }
3896
3515
  ]
3897
3516
  }
@@ -3901,41 +3520,41 @@ function getRouteMap({
3901
3520
  },
3902
3521
  {
3903
3522
  path: "/promotions",
3904
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3523
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3905
3524
  handle: {
3906
3525
  breadcrumb: () => t("promotions.domain"),
3907
- permissions: "promotion:read"
3526
+ permissions: "promotions:view"
3908
3527
  },
3909
3528
  children: [
3910
3529
  {
3911
3530
  path: "",
3912
- lazy: () => import("./promotion-list-S4B6SVD6.js")
3531
+ lazy: () => import("./promotion-list-TVTDBBJ3.js")
3913
3532
  },
3914
3533
  {
3915
3534
  path: "create",
3916
- handle: { permissions: "promotion:create" },
3917
- lazy: () => import("./promotion-create-7ZUJ4W2J.js")
3535
+ handle: { permissions: "promotions:edit" },
3536
+ lazy: () => import("./promotion-create-FKRGXGI4.js")
3918
3537
  },
3919
3538
  {
3920
3539
  path: ":id",
3921
3540
  lazy: async () => {
3922
- const { Breadcrumb, loader } = await import("./promotion-detail-SWO4PZDC.js");
3541
+ const { Breadcrumb, loader } = await import("./promotion-detail-IC5LHRSY.js");
3923
3542
  return {
3924
3543
  Component: Outlet4,
3925
3544
  loader,
3926
3545
  handle: {
3927
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3546
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3928
3547
  }
3929
3548
  };
3930
3549
  },
3931
3550
  children: [
3932
3551
  {
3933
3552
  path: "",
3934
- lazy: () => import("./promotion-detail-SWO4PZDC.js"),
3553
+ lazy: () => import("./promotion-detail-IC5LHRSY.js"),
3935
3554
  children: [
3936
3555
  {
3937
3556
  path: "edit",
3938
- handle: { permissions: "promotion:update" },
3557
+ handle: { permissions: "promotions:edit" },
3939
3558
  lazy: () => import("./promotion-edit-details-7PHH756U.js")
3940
3559
  },
3941
3560
  {
@@ -3944,7 +3563,7 @@ function getRouteMap({
3944
3563
  },
3945
3564
  {
3946
3565
  path: ":ruleType/edit",
3947
- lazy: () => import("./edit-rules-RJC3AYJN.js")
3566
+ lazy: () => import("./edit-rules-3DCWA5UF.js")
3948
3567
  }
3949
3568
  ]
3950
3569
  }
@@ -3954,42 +3573,42 @@ function getRouteMap({
3954
3573
  },
3955
3574
  {
3956
3575
  path: "/campaigns",
3957
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3576
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3958
3577
  handle: {
3959
3578
  breadcrumb: () => t("campaigns.domain"),
3960
- permissions: "campaign:read"
3579
+ permissions: "campaigns:view"
3961
3580
  },
3962
3581
  children: [
3963
3582
  {
3964
3583
  path: "",
3965
- lazy: () => import("./campaign-list-GIMU2QVW.js"),
3584
+ lazy: () => import("./campaign-list-ZRUBHJEA.js"),
3966
3585
  children: []
3967
3586
  },
3968
3587
  {
3969
3588
  path: "create",
3970
- handle: { permissions: "campaign:create" },
3589
+ handle: { permissions: "campaigns:edit" },
3971
3590
  lazy: () => import("./campaign-create-FEEKJCUE.js")
3972
3591
  },
3973
3592
  {
3974
3593
  path: ":id",
3975
3594
  lazy: async () => {
3976
- const { Breadcrumb, loader } = await import("./campaign-detail-BHRCOKL3.js");
3595
+ const { Breadcrumb, loader } = await import("./campaign-detail-4IEM5BGI.js");
3977
3596
  return {
3978
3597
  Component: Outlet4,
3979
3598
  loader,
3980
3599
  handle: {
3981
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3600
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3982
3601
  }
3983
3602
  };
3984
3603
  },
3985
3604
  children: [
3986
3605
  {
3987
3606
  path: "",
3988
- lazy: () => import("./campaign-detail-BHRCOKL3.js"),
3607
+ lazy: () => import("./campaign-detail-4IEM5BGI.js"),
3989
3608
  children: [
3990
3609
  {
3991
3610
  path: "edit",
3992
- handle: { permissions: "campaign:update" },
3611
+ handle: { permissions: "campaigns:edit" },
3993
3612
  lazy: () => import("./campaign-edit-2WJ7V2EY.js")
3994
3613
  },
3995
3614
  {
@@ -4002,7 +3621,7 @@ function getRouteMap({
4002
3621
  },
4003
3622
  {
4004
3623
  path: "add-promotions",
4005
- lazy: () => import("./add-campaign-promotions-PBGDZSCD.js")
3624
+ lazy: () => import("./add-campaign-promotions-6OB7BUPK.js")
4006
3625
  }
4007
3626
  ]
4008
3627
  }
@@ -4012,10 +3631,10 @@ function getRouteMap({
4012
3631
  },
4013
3632
  {
4014
3633
  path: "/reviews",
4015
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3634
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4016
3635
  handle: {
4017
3636
  breadcrumb: () => t("reviews.domain"),
4018
- permissions: "review:read"
3637
+ permissions: "reviews:view"
4019
3638
  },
4020
3639
  children: [
4021
3640
  {
@@ -4031,7 +3650,7 @@ function getRouteMap({
4031
3650
  Component: Outlet4,
4032
3651
  loader,
4033
3652
  handle: {
4034
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3653
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4035
3654
  }
4036
3655
  };
4037
3656
  },
@@ -4042,7 +3661,7 @@ function getRouteMap({
4042
3661
  children: [
4043
3662
  {
4044
3663
  path: "edit",
4045
- handle: { permissions: "review:update" },
3664
+ handle: { permissions: "reviews:edit" },
4046
3665
  lazy: () => import("./review-edit-VD4JATST.js")
4047
3666
  },
4048
3667
  {
@@ -4057,19 +3676,19 @@ function getRouteMap({
4057
3676
  },
4058
3677
  {
4059
3678
  path: "/collections",
4060
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3679
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4061
3680
  handle: {
4062
3681
  breadcrumb: () => t("collections.domain"),
4063
- permissions: "product_collection:read"
3682
+ permissions: "product_collections:view"
4064
3683
  },
4065
3684
  children: [
4066
3685
  {
4067
3686
  path: "",
4068
- lazy: () => import("./collection-list-AWLZYMWL.js"),
3687
+ lazy: () => import("./collection-list-LL62Z4IJ.js"),
4069
3688
  children: [
4070
3689
  {
4071
3690
  path: "create",
4072
- handle: { permissions: "product_collection:create" },
3691
+ handle: { permissions: "product_collections:edit" },
4073
3692
  lazy: () => import("./collection-create-W75VOWNN.js")
4074
3693
  }
4075
3694
  ]
@@ -4077,23 +3696,23 @@ function getRouteMap({
4077
3696
  {
4078
3697
  path: ":id",
4079
3698
  lazy: async () => {
4080
- const { Breadcrumb, loader } = await import("./collection-detail-QAEPOJZX.js");
3699
+ const { Breadcrumb, loader } = await import("./collection-detail-3TH3X47O.js");
4081
3700
  return {
4082
3701
  Component: Outlet4,
4083
3702
  loader,
4084
3703
  handle: {
4085
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3704
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4086
3705
  }
4087
3706
  };
4088
3707
  },
4089
3708
  children: [
4090
3709
  {
4091
3710
  path: "",
4092
- lazy: () => import("./collection-detail-QAEPOJZX.js"),
3711
+ lazy: () => import("./collection-detail-3TH3X47O.js"),
4093
3712
  children: [
4094
3713
  {
4095
3714
  path: "edit",
4096
- handle: { permissions: "product_collection:update" },
3715
+ handle: { permissions: "product_collections:edit" },
4097
3716
  lazy: () => import("./collection-edit-HMOZIS7Z.js")
4098
3717
  },
4099
3718
  {
@@ -4106,11 +3725,11 @@ function getRouteMap({
4106
3725
  },
4107
3726
  {
4108
3727
  path: "products",
4109
- lazy: () => import("./collection-add-products-HCY2YT3W.js")
3728
+ lazy: () => import("./collection-add-products-XYGBMTIK.js")
4110
3729
  },
4111
3730
  {
4112
3731
  path: "metadata/edit",
4113
- lazy: () => import("./collection-metadata-XM2EBCWF.js")
3732
+ lazy: () => import("./collection-metadata-QUMWZABV.js")
4114
3733
  }
4115
3734
  ]
4116
3735
  }
@@ -4120,43 +3739,43 @@ function getRouteMap({
4120
3739
  },
4121
3740
  {
4122
3741
  path: "/price-lists",
4123
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3742
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4124
3743
  handle: {
4125
3744
  breadcrumb: () => t("priceLists.domain"),
4126
- permissions: "price_list:read"
3745
+ permissions: "price_lists:view"
4127
3746
  },
4128
3747
  children: [
4129
3748
  {
4130
3749
  path: "",
4131
- lazy: () => import("./price-list-list-5CNSLAUF.js"),
3750
+ lazy: () => import("./price-list-list-AM2GMQ7P.js"),
4132
3751
  children: [
4133
3752
  {
4134
3753
  path: "create",
4135
- handle: { permissions: "price_list:create" },
4136
- lazy: () => import("./price-list-create-JFXLTNOJ.js")
3754
+ handle: { permissions: "price_lists:edit" },
3755
+ lazy: () => import("./price-list-create-MQOWTNPB.js")
4137
3756
  }
4138
3757
  ]
4139
3758
  },
4140
3759
  {
4141
3760
  path: ":id",
4142
3761
  lazy: async () => {
4143
- const { Breadcrumb, loader } = await import("./price-list-detail-5YTX66KF.js");
3762
+ const { Breadcrumb, loader } = await import("./price-list-detail-WOHIMYK5.js");
4144
3763
  return {
4145
3764
  Component: Outlet4,
4146
3765
  loader,
4147
3766
  handle: {
4148
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3767
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4149
3768
  }
4150
3769
  };
4151
3770
  },
4152
3771
  children: [
4153
3772
  {
4154
3773
  path: "",
4155
- lazy: () => import("./price-list-detail-5YTX66KF.js"),
3774
+ lazy: () => import("./price-list-detail-WOHIMYK5.js"),
4156
3775
  children: [
4157
3776
  {
4158
3777
  path: "edit",
4159
- handle: { permissions: "price_list:update" },
3778
+ handle: { permissions: "price_lists:edit" },
4160
3779
  lazy: () => import("./price-list-edit-ZVP6CCPE.js")
4161
3780
  },
4162
3781
  {
@@ -4169,11 +3788,11 @@ function getRouteMap({
4169
3788
  },
4170
3789
  {
4171
3790
  path: "products/add",
4172
- lazy: () => import("./price-list-prices-add-HVTEQOWQ.js")
3791
+ lazy: () => import("./price-list-prices-add-U6WRO6YD.js")
4173
3792
  },
4174
3793
  {
4175
3794
  path: "products/edit",
4176
- lazy: () => import("./price-list-prices-edit-OVHIDATP.js")
3795
+ lazy: () => import("./price-list-prices-edit-S4V5ACN3.js")
4177
3796
  }
4178
3797
  ]
4179
3798
  }
@@ -4183,19 +3802,19 @@ function getRouteMap({
4183
3802
  },
4184
3803
  {
4185
3804
  path: "/customers",
4186
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3805
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4187
3806
  handle: {
4188
3807
  breadcrumb: () => t("customers.domain"),
4189
- permissions: "customer:read"
3808
+ permissions: "customers:view"
4190
3809
  },
4191
3810
  children: [
4192
3811
  {
4193
3812
  path: "",
4194
- lazy: () => import("./customer-list-NEPELR3R.js"),
3813
+ lazy: () => import("./customer-list-46W5PJR3.js"),
4195
3814
  children: [
4196
3815
  {
4197
3816
  path: "create",
4198
- handle: { permissions: "customer:create" },
3817
+ handle: { permissions: "customers:edit" },
4199
3818
  lazy: () => import("./customer-create-46H2N34Z.js")
4200
3819
  }
4201
3820
  ]
@@ -4203,23 +3822,23 @@ function getRouteMap({
4203
3822
  {
4204
3823
  path: ":id",
4205
3824
  lazy: async () => {
4206
- const { Breadcrumb, loader } = await import("./customer-detail-XO7RBVUC.js");
3825
+ const { Breadcrumb, loader } = await import("./customer-detail-ZYETGMFF.js");
4207
3826
  return {
4208
3827
  Component: Outlet4,
4209
3828
  loader,
4210
3829
  handle: {
4211
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3830
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4212
3831
  }
4213
3832
  };
4214
3833
  },
4215
3834
  children: [
4216
3835
  {
4217
3836
  path: "",
4218
- lazy: () => import("./customer-detail-XO7RBVUC.js"),
3837
+ lazy: () => import("./customer-detail-ZYETGMFF.js"),
4219
3838
  children: [
4220
3839
  {
4221
3840
  path: "edit",
4222
- handle: { permissions: "customer:update" },
3841
+ handle: { permissions: "customers:edit" },
4223
3842
  lazy: () => import("./customer-edit-5EH2AUGN.js")
4224
3843
  },
4225
3844
  {
@@ -4232,15 +3851,15 @@ function getRouteMap({
4232
3851
  },
4233
3852
  {
4234
3853
  path: "add-customer-groups",
4235
- lazy: () => import("./customers-add-customer-group-MYC76YGW.js")
3854
+ lazy: () => import("./customers-add-customer-group-AZYAIQ7E.js")
4236
3855
  },
4237
3856
  {
4238
3857
  path: ":order_id/transfer",
4239
- lazy: () => import("./order-request-transfer-RYVK4WYW.js")
3858
+ lazy: () => import("./order-request-transfer-7EZX5UOQ.js")
4240
3859
  },
4241
3860
  {
4242
3861
  path: "metadata/edit",
4243
- lazy: () => import("./customer-metadata-GWZC456X.js")
3862
+ lazy: () => import("./customer-metadata-UEQSIGLT.js")
4244
3863
  }
4245
3864
  ]
4246
3865
  }
@@ -4250,19 +3869,19 @@ function getRouteMap({
4250
3869
  },
4251
3870
  {
4252
3871
  path: "/customer-groups",
4253
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3872
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4254
3873
  handle: {
4255
3874
  breadcrumb: () => t("customerGroups.domain"),
4256
- permissions: "customer_group:read"
3875
+ permissions: "customer_groups:view"
4257
3876
  },
4258
3877
  children: [
4259
3878
  {
4260
3879
  path: "",
4261
- lazy: () => import("./customer-group-list-5VA7HGD5.js"),
3880
+ lazy: () => import("./customer-group-list-MZ7H4XLD.js"),
4262
3881
  children: [
4263
3882
  {
4264
3883
  path: "create",
4265
- handle: { permissions: "customer_group:create" },
3884
+ handle: { permissions: "customer_groups:edit" },
4266
3885
  lazy: () => import("./customer-group-create-WER6DODC.js")
4267
3886
  }
4268
3887
  ]
@@ -4270,23 +3889,23 @@ function getRouteMap({
4270
3889
  {
4271
3890
  path: ":id",
4272
3891
  lazy: async () => {
4273
- const { Breadcrumb, loader } = await import("./customer-group-detail-4G53UKOS.js");
3892
+ const { Breadcrumb, loader } = await import("./customer-group-detail-RPDRZGPZ.js");
4274
3893
  return {
4275
3894
  Component: Outlet4,
4276
3895
  loader,
4277
3896
  handle: {
4278
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3897
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4279
3898
  }
4280
3899
  };
4281
3900
  },
4282
3901
  children: [
4283
3902
  {
4284
3903
  path: "",
4285
- lazy: () => import("./customer-group-detail-4G53UKOS.js"),
3904
+ lazy: () => import("./customer-group-detail-RPDRZGPZ.js"),
4286
3905
  children: [
4287
3906
  {
4288
3907
  path: "edit",
4289
- handle: { permissions: "customer_group:update" },
3908
+ handle: { permissions: "customer_groups:edit" },
4290
3909
  lazy: () => import("./customer-group-edit-ZQTBUZVR.js")
4291
3910
  },
4292
3911
  {
@@ -4295,7 +3914,7 @@ function getRouteMap({
4295
3914
  },
4296
3915
  {
4297
3916
  path: "metadata/edit",
4298
- lazy: () => import("./customer-group-metadata-FUJFFWCO.js")
3917
+ lazy: () => import("./customer-group-metadata-UQ2SCLOK.js")
4299
3918
  }
4300
3919
  ]
4301
3920
  }
@@ -4305,47 +3924,47 @@ function getRouteMap({
4305
3924
  },
4306
3925
  {
4307
3926
  path: "/stores",
4308
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3927
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4309
3928
  handle: {
4310
3929
  breadcrumb: () => t("stores.domain"),
4311
- permissions: "seller:read"
3930
+ permissions: "sellers:view"
4312
3931
  },
4313
3932
  children: [
4314
3933
  {
4315
3934
  path: "",
4316
- lazy: () => import("./store-list-RXPN3VVO.js"),
3935
+ lazy: () => import("./store-list-I434OQIM.js"),
4317
3936
  children: [
4318
3937
  {
4319
3938
  path: "create",
4320
- handle: { permissions: "seller:create" },
4321
- lazy: () => import("./store-create-J4SL6SY3.js")
3939
+ handle: { permissions: "sellers:edit" },
3940
+ lazy: () => import("./store-create-JBY2MAIT.js")
4322
3941
  },
4323
3942
  {
4324
3943
  path: "bulk-edit",
4325
- lazy: () => import("./store-bulk-edit-NBWZMDP7.js")
3944
+ lazy: () => import("./store-bulk-edit-ONZESJGW.js")
4326
3945
  }
4327
3946
  ]
4328
3947
  },
4329
3948
  {
4330
3949
  path: ":id",
4331
3950
  lazy: async () => {
4332
- const { Breadcrumb } = await import("./store-details-ITYKAZSI.js");
3951
+ const { Breadcrumb } = await import("./store-details-VZJPLUQB.js");
4333
3952
  return {
4334
3953
  Component: Outlet4,
4335
3954
  handle: {
4336
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3955
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4337
3956
  }
4338
3957
  };
4339
3958
  },
4340
3959
  children: [
4341
3960
  {
4342
3961
  path: "",
4343
- lazy: () => import("./store-details-ITYKAZSI.js"),
3962
+ lazy: () => import("./store-details-VZJPLUQB.js"),
4344
3963
  children: [
4345
3964
  {
4346
3965
  path: "edit",
4347
- handle: { permissions: "seller:update" },
4348
- lazy: () => import("./store-edit-NZMI7PNS.js")
3966
+ handle: { permissions: "sellers:edit" },
3967
+ lazy: () => import("./store-edit-AONSKCCA.js")
4349
3968
  },
4350
3969
  {
4351
3970
  path: "edit-address",
@@ -4365,7 +3984,7 @@ function getRouteMap({
4365
3984
  },
4366
3985
  {
4367
3986
  path: "invite",
4368
- lazy: () => import("./store-member-invite-IEUG54XA.js")
3987
+ lazy: () => import("./store-member-invite-5YBC425W.js")
4369
3988
  }
4370
3989
  ]
4371
3990
  }
@@ -4375,10 +3994,10 @@ function getRouteMap({
4375
3994
  },
4376
3995
  {
4377
3996
  path: "/payouts",
4378
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3997
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4379
3998
  handle: {
4380
3999
  breadcrumb: () => "Payouts",
4381
- permissions: "payout:read"
4000
+ permissions: "payouts:view"
4382
4001
  },
4383
4002
  children: [
4384
4003
  {
@@ -4393,7 +4012,7 @@ function getRouteMap({
4393
4012
  Component: Outlet4,
4394
4013
  loader,
4395
4014
  handle: {
4396
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4015
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4397
4016
  }
4398
4017
  };
4399
4018
  },
@@ -4408,19 +4027,19 @@ function getRouteMap({
4408
4027
  },
4409
4028
  {
4410
4029
  path: "/reservations",
4411
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4030
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4412
4031
  handle: {
4413
4032
  breadcrumb: () => t("reservations.domain"),
4414
- permissions: "reservation_item:read"
4033
+ permissions: "reservations:view"
4415
4034
  },
4416
4035
  children: [
4417
4036
  {
4418
4037
  path: "",
4419
- lazy: () => import("./reservation-list-VRRSKQ4W.js"),
4038
+ lazy: () => import("./reservation-list-JQFVSRW5.js"),
4420
4039
  children: [
4421
4040
  {
4422
4041
  path: "create",
4423
- handle: { permissions: "reservation_item:create" },
4042
+ handle: { permissions: "reservations:edit" },
4424
4043
  lazy: () => import("./reservation-create-H3T3AHTK.js")
4425
4044
  }
4426
4045
  ]
@@ -4428,28 +4047,28 @@ function getRouteMap({
4428
4047
  {
4429
4048
  path: ":id",
4430
4049
  lazy: async () => {
4431
- const { Breadcrumb, loader } = await import("./reservation-detail-5GYGVM3M.js");
4050
+ const { Breadcrumb, loader } = await import("./reservation-detail-OCIIVYIN.js");
4432
4051
  return {
4433
4052
  Component: Outlet4,
4434
4053
  loader,
4435
4054
  handle: {
4436
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4055
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4437
4056
  }
4438
4057
  };
4439
4058
  },
4440
4059
  children: [
4441
4060
  {
4442
4061
  path: "",
4443
- lazy: () => import("./reservation-detail-5GYGVM3M.js"),
4062
+ lazy: () => import("./reservation-detail-OCIIVYIN.js"),
4444
4063
  children: [
4445
4064
  {
4446
4065
  path: "edit",
4447
- handle: { permissions: "reservation_item:update" },
4066
+ handle: { permissions: "reservations:edit" },
4448
4067
  lazy: () => import("./edit-reservation-W3THLKKK.js")
4449
4068
  },
4450
4069
  {
4451
4070
  path: "metadata/edit",
4452
- lazy: () => import("./reservation-metadata-P4G3JEDW.js")
4071
+ lazy: () => import("./reservation-metadata-AKR6FRG5.js")
4453
4072
  }
4454
4073
  ]
4455
4074
  }
@@ -4459,16 +4078,16 @@ function getRouteMap({
4459
4078
  },
4460
4079
  {
4461
4080
  path: "/offers",
4462
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4081
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4463
4082
  handle: {
4464
4083
  breadcrumb: () => t("offers.domain"),
4465
- permissions: "offer:read"
4084
+ permissions: "offers:view"
4466
4085
  },
4467
4086
  children: [
4468
4087
  {
4469
4088
  path: "",
4470
4089
  lazy: async () => {
4471
- const { OfferListPage } = await import("./offers-VG334CFD.js");
4090
+ const { OfferListPage } = await import("./offers-W4HF7NX7.js");
4472
4091
  return { Component: OfferListPage };
4473
4092
  }
4474
4093
  },
@@ -4481,7 +4100,7 @@ function getRouteMap({
4481
4100
  Component: Outlet4,
4482
4101
  loader,
4483
4102
  handle: {
4484
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4103
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4485
4104
  }
4486
4105
  };
4487
4106
  },
@@ -4489,7 +4108,7 @@ function getRouteMap({
4489
4108
  {
4490
4109
  path: "",
4491
4110
  lazy: async () => {
4492
- const { OfferDetailPage } = await import("./offer-detail-page-WWEUCEFC.js");
4111
+ const { OfferDetailPage } = await import("./offer-detail-page-JGS52M66.js");
4493
4112
  return { Component: OfferDetailPage };
4494
4113
  }
4495
4114
  },
@@ -4502,7 +4121,7 @@ function getRouteMap({
4502
4121
  Component: Outlet4,
4503
4122
  loader,
4504
4123
  handle: {
4505
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4124
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4506
4125
  }
4507
4126
  };
4508
4127
  },
@@ -4522,10 +4141,10 @@ function getRouteMap({
4522
4141
  },
4523
4142
  {
4524
4143
  path: "/inventory",
4525
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4144
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4526
4145
  handle: {
4527
4146
  breadcrumb: () => t("inventory.domain"),
4528
- permissions: "inventory_item:read"
4147
+ permissions: "inventory_items:view"
4529
4148
  },
4530
4149
  children: [
4531
4150
  {
@@ -4534,47 +4153,47 @@ function getRouteMap({
4534
4153
  children: [
4535
4154
  {
4536
4155
  path: "stock",
4537
- lazy: () => import("./inventory-stock-PZ2ENOGF.js")
4156
+ lazy: () => import("./inventory-stock-LDBJQCJF.js")
4538
4157
  }
4539
4158
  ]
4540
4159
  },
4541
4160
  {
4542
4161
  path: ":id",
4543
4162
  lazy: async () => {
4544
- const { Breadcrumb, loader } = await import("./inventory-detail-7HB5QEL4.js");
4163
+ const { Breadcrumb, loader } = await import("./inventory-detail-MMONC625.js");
4545
4164
  return {
4546
4165
  Component: Outlet4,
4547
4166
  loader,
4548
4167
  handle: {
4549
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4168
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4550
4169
  }
4551
4170
  };
4552
4171
  },
4553
4172
  children: [
4554
4173
  {
4555
4174
  path: "",
4556
- lazy: () => import("./inventory-detail-7HB5QEL4.js"),
4175
+ lazy: () => import("./inventory-detail-MMONC625.js"),
4557
4176
  children: [
4558
4177
  {
4559
4178
  path: "edit",
4560
- handle: { permissions: "inventory_item:update" },
4561
- lazy: () => import("./edit-inventory-item-ZSV4WF6G.js")
4179
+ handle: { permissions: "inventory_items:edit" },
4180
+ lazy: () => import("./edit-inventory-item-ENA2OFSQ.js")
4562
4181
  },
4563
4182
  {
4564
4183
  path: "attributes",
4565
- lazy: () => import("./edit-inventory-item-attributes-NWSAQMKX.js")
4184
+ lazy: () => import("./edit-inventory-item-attributes-Z26UDTSH.js")
4566
4185
  },
4567
4186
  {
4568
4187
  path: "metadata/edit",
4569
- lazy: () => import("./inventory-metadata-FGHOW3YG.js")
4188
+ lazy: () => import("./inventory-metadata-OGS7JMZ5.js")
4570
4189
  },
4571
4190
  {
4572
4191
  path: "locations",
4573
- lazy: () => import("./manage-locations-ZFIRHMNH.js")
4192
+ lazy: () => import("./manage-locations-TCMY6A4J.js")
4574
4193
  },
4575
4194
  {
4576
4195
  path: "locations/:location_id",
4577
- lazy: () => import("./adjust-inventory-BBAU3NMM.js")
4196
+ lazy: () => import("./adjust-inventory-32UZ4BZC.js")
4578
4197
  }
4579
4198
  ]
4580
4199
  }
@@ -4591,40 +4210,40 @@ function getRouteMap({
4591
4210
  ]
4592
4211
  },
4593
4212
  {
4594
- element: /* @__PURE__ */ jsx16(ProtectedRoute, {}),
4595
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4213
+ element: /* @__PURE__ */ jsx15(ProtectedRoute, {}),
4214
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4596
4215
  children: [
4597
4216
  {
4598
4217
  path: "/settings",
4599
4218
  handle: {
4600
4219
  breadcrumb: () => t("app.nav.settings.header")
4601
4220
  },
4602
- element: /* @__PURE__ */ jsx16(SettingsLayout, {}),
4221
+ element: /* @__PURE__ */ jsx15(SettingsLayout, {}),
4603
4222
  children: [
4604
4223
  {
4605
- element: /* @__PURE__ */ jsx16(RoutePermissionGuard, {}),
4224
+ element: /* @__PURE__ */ jsx15(RoutePermissionGuard, {}),
4606
4225
  children: mergeRoutes(
4607
4226
  [
4608
4227
  {
4609
4228
  index: true,
4610
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4229
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4611
4230
  lazy: () => import("./settings-AVE3VCCM.js")
4612
4231
  },
4613
4232
  {
4614
4233
  path: "profile",
4615
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4616
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4234
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4235
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4617
4236
  handle: {
4618
4237
  breadcrumb: () => t("profile.domain")
4619
4238
  },
4620
4239
  children: [
4621
4240
  {
4622
4241
  path: "",
4623
- lazy: () => import("./profile-detail-KFLXUGQ5.js"),
4242
+ lazy: () => import("./profile-detail-TQWGKYRK.js"),
4624
4243
  children: [
4625
4244
  {
4626
4245
  path: "edit",
4627
- lazy: () => import("./profile-edit-4FDALFG5.js")
4246
+ lazy: () => import("./profile-edit-ZBD6N5SC.js")
4628
4247
  }
4629
4248
  ]
4630
4249
  }
@@ -4632,11 +4251,11 @@ function getRouteMap({
4632
4251
  },
4633
4252
  {
4634
4253
  path: "regions",
4635
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4636
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4254
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4255
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4637
4256
  handle: {
4638
4257
  breadcrumb: () => t("regions.domain"),
4639
- permissions: "region:read"
4258
+ permissions: "regions:view"
4640
4259
  },
4641
4260
  children: [
4642
4261
  {
@@ -4645,7 +4264,7 @@ function getRouteMap({
4645
4264
  children: [
4646
4265
  {
4647
4266
  path: "create",
4648
- handle: { permissions: "region:create" },
4267
+ handle: { permissions: "regions:edit" },
4649
4268
  lazy: () => import("./region-create-S2WUJ4RA.js")
4650
4269
  }
4651
4270
  ]
@@ -4658,7 +4277,7 @@ function getRouteMap({
4658
4277
  Component: Outlet4,
4659
4278
  loader,
4660
4279
  handle: {
4661
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4280
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4662
4281
  }
4663
4282
  };
4664
4283
  },
@@ -4669,7 +4288,7 @@ function getRouteMap({
4669
4288
  children: [
4670
4289
  {
4671
4290
  path: "edit",
4672
- handle: { permissions: "region:update" },
4291
+ handle: { permissions: "regions:edit" },
4673
4292
  lazy: () => import("./region-edit-NUMG2V5L.js")
4674
4293
  },
4675
4294
  {
@@ -4678,7 +4297,7 @@ function getRouteMap({
4678
4297
  },
4679
4298
  {
4680
4299
  path: "metadata/edit",
4681
- lazy: () => import("./region-metadata-Q6HEMCHD.js")
4300
+ lazy: () => import("./region-metadata-NAHNXAHQ.js")
4682
4301
  }
4683
4302
  ]
4684
4303
  }
@@ -4688,20 +4307,20 @@ function getRouteMap({
4688
4307
  },
4689
4308
  {
4690
4309
  path: "marketplace",
4691
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4692
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4310
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4311
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4693
4312
  handle: {
4694
4313
  breadcrumb: () => t("marketplace.domain"),
4695
- permissions: "store:read"
4314
+ permissions: "store:view"
4696
4315
  },
4697
4316
  children: [
4698
4317
  {
4699
4318
  path: "",
4700
- lazy: () => import("./marketplace-detail-4IP5HIEW.js"),
4319
+ lazy: () => import("./marketplace-detail-JSUMZVZS.js"),
4701
4320
  children: [
4702
4321
  {
4703
4322
  path: "edit",
4704
- handle: { permissions: "store:update" },
4323
+ handle: { permissions: "store:edit" },
4705
4324
  lazy: () => import("./marketplace-edit-G7YNGABC.js")
4706
4325
  },
4707
4326
  {
@@ -4710,7 +4329,7 @@ function getRouteMap({
4710
4329
  },
4711
4330
  {
4712
4331
  path: "metadata/edit",
4713
- lazy: () => import("./marketplace-metadata-EGDXYKCE.js")
4332
+ lazy: () => import("./marketplace-metadata-2TZTRDRJ.js")
4714
4333
  }
4715
4334
  ]
4716
4335
  }
@@ -4718,20 +4337,20 @@ function getRouteMap({
4718
4337
  },
4719
4338
  {
4720
4339
  path: "commissions",
4721
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4722
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4340
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4341
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4723
4342
  handle: {
4724
4343
  breadcrumb: () => t("commissions.domain"),
4725
- permissions: "commission_rate:read"
4344
+ permissions: "commission_rates:view"
4726
4345
  },
4727
4346
  children: [
4728
4347
  {
4729
4348
  path: "",
4730
- lazy: () => import("./commissions-list-MUKIEJWZ.js"),
4349
+ lazy: () => import("./commissions-list-PQUFPRZK.js"),
4731
4350
  children: [
4732
4351
  {
4733
4352
  path: "create",
4734
- handle: { permissions: "commission_rate:create" },
4353
+ handle: { permissions: "commission_rates:edit" },
4735
4354
  lazy: () => import("./commission-rule-create-CDLLQIY4.js")
4736
4355
  },
4737
4356
  {
@@ -4747,7 +4366,7 @@ function getRouteMap({
4747
4366
  return {
4748
4367
  Component: Outlet4,
4749
4368
  handle: {
4750
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4369
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4751
4370
  }
4752
4371
  };
4753
4372
  },
@@ -4758,7 +4377,7 @@ function getRouteMap({
4758
4377
  children: [
4759
4378
  {
4760
4379
  path: "edit",
4761
- handle: { permissions: "commission_rate:update" },
4380
+ handle: { permissions: "commission_rates:edit" },
4762
4381
  lazy: () => import("./commission-rule-edit-5CFKPI7U.js")
4763
4382
  },
4764
4383
  {
@@ -4773,49 +4392,49 @@ function getRouteMap({
4773
4392
  },
4774
4393
  {
4775
4394
  path: "users",
4776
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4777
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4395
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4396
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4778
4397
  handle: {
4779
4398
  breadcrumb: () => t("users.domain"),
4780
- permissions: "user:read"
4399
+ permissions: "users:view"
4781
4400
  },
4782
4401
  children: [
4783
4402
  {
4784
4403
  path: "",
4785
- lazy: () => import("./user-list-6YRC6HYX.js"),
4404
+ lazy: () => import("./user-list-6IYBI6HY.js"),
4786
4405
  children: [
4787
4406
  {
4788
4407
  path: "invite",
4789
- handle: { permissions: "user:create" },
4790
- lazy: () => import("./user-invite-SZIUG2WK.js")
4408
+ handle: { permissions: "users:edit" },
4409
+ lazy: () => import("./user-invite-YVLFH6HU.js")
4791
4410
  }
4792
4411
  ]
4793
4412
  },
4794
4413
  {
4795
4414
  path: ":id",
4796
4415
  lazy: async () => {
4797
- const { Breadcrumb, loader } = await import("./user-detail-5LOE6QGK.js");
4416
+ const { Breadcrumb, loader } = await import("./user-detail-MJ3ITMNK.js");
4798
4417
  return {
4799
4418
  Component: Outlet4,
4800
4419
  loader,
4801
4420
  handle: {
4802
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4421
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4803
4422
  }
4804
4423
  };
4805
4424
  },
4806
4425
  children: [
4807
4426
  {
4808
4427
  path: "",
4809
- lazy: () => import("./user-detail-5LOE6QGK.js"),
4428
+ lazy: () => import("./user-detail-MJ3ITMNK.js"),
4810
4429
  children: [
4811
4430
  {
4812
4431
  path: "edit",
4813
- handle: { permissions: "user:update" },
4814
- lazy: () => import("./user-edit-O2M5II52.js")
4432
+ handle: { permissions: "users:edit" },
4433
+ lazy: () => import("./user-edit-Y5VP6CKB.js")
4815
4434
  },
4816
4435
  {
4817
4436
  path: "metadata/edit",
4818
- lazy: () => import("./user-metadata-2PEU2IJE.js")
4437
+ lazy: () => import("./user-metadata-XNM2JNNO.js")
4819
4438
  }
4820
4439
  ]
4821
4440
  }
@@ -4825,20 +4444,20 @@ function getRouteMap({
4825
4444
  },
4826
4445
  {
4827
4446
  path: "sales-channels",
4828
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4829
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4447
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4448
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4830
4449
  handle: {
4831
4450
  breadcrumb: () => t("salesChannels.domain"),
4832
- permissions: "sales_channel:read"
4451
+ permissions: "sales_channels:view"
4833
4452
  },
4834
4453
  children: [
4835
4454
  {
4836
4455
  path: "",
4837
- lazy: () => import("./sales-channel-list-XAWN5OKC.js"),
4456
+ lazy: () => import("./sales-channel-list-BCL62DTX.js"),
4838
4457
  children: [
4839
4458
  {
4840
4459
  path: "create",
4841
- handle: { permissions: "sales_channel:create" },
4460
+ handle: { permissions: "sales_channels:edit" },
4842
4461
  lazy: () => import("./sales-channel-create-WEF7QXKI.js")
4843
4462
  }
4844
4463
  ]
@@ -4846,32 +4465,32 @@ function getRouteMap({
4846
4465
  {
4847
4466
  path: ":id",
4848
4467
  lazy: async () => {
4849
- const { Breadcrumb, loader } = await import("./sales-channel-detail-F37LBP6R.js");
4468
+ const { Breadcrumb, loader } = await import("./sales-channel-detail-KYK5IWRD.js");
4850
4469
  return {
4851
4470
  Component: Outlet4,
4852
4471
  loader,
4853
4472
  handle: {
4854
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4473
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4855
4474
  }
4856
4475
  };
4857
4476
  },
4858
4477
  children: [
4859
4478
  {
4860
4479
  path: "",
4861
- lazy: () => import("./sales-channel-detail-F37LBP6R.js"),
4480
+ lazy: () => import("./sales-channel-detail-KYK5IWRD.js"),
4862
4481
  children: [
4863
4482
  {
4864
4483
  path: "edit",
4865
- handle: { permissions: "sales_channel:update" },
4484
+ handle: { permissions: "sales_channels:edit" },
4866
4485
  lazy: () => import("./sales-channel-edit-CO2V2VER.js")
4867
4486
  },
4868
4487
  {
4869
4488
  path: "add-products",
4870
- lazy: () => import("./sales-channel-add-products-MPJ7UCEJ.js")
4489
+ lazy: () => import("./sales-channel-add-products-RYOG5QGJ.js")
4871
4490
  },
4872
4491
  {
4873
4492
  path: "metadata/edit",
4874
- lazy: () => import("./sales-channel-metadata-NBWFH4QX.js")
4493
+ lazy: () => import("./sales-channel-metadata-BKNILVQ2.js")
4875
4494
  }
4876
4495
  ]
4877
4496
  }
@@ -4881,37 +4500,37 @@ function getRouteMap({
4881
4500
  },
4882
4501
  {
4883
4502
  path: "locations",
4884
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4885
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4503
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4504
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4886
4505
  handle: {
4887
4506
  breadcrumb: () => t("locations.domain"),
4888
- permissions: "stock_location:read"
4507
+ permissions: "stock_locations:view"
4889
4508
  },
4890
4509
  children: [
4891
4510
  {
4892
4511
  path: "",
4893
- lazy: () => import("./location-list-VIAP63HV.js")
4512
+ lazy: () => import("./location-list-JJN42JSH.js")
4894
4513
  },
4895
4514
  {
4896
4515
  path: "create",
4897
- handle: { permissions: "stock_location:create" },
4516
+ handle: { permissions: "stock_locations:edit" },
4898
4517
  lazy: () => import("./location-create-XCEPUY44.js")
4899
4518
  },
4900
4519
  {
4901
4520
  path: "shipping-profiles",
4902
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4521
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4903
4522
  handle: {
4904
4523
  breadcrumb: () => t("shippingProfile.domain"),
4905
- permissions: "shipping_profile:read"
4524
+ permissions: "shipping_profiles:view"
4906
4525
  },
4907
4526
  children: [
4908
4527
  {
4909
4528
  path: "",
4910
- lazy: () => import("./shipping-profiles-list-LK5ZXRJG.js"),
4529
+ lazy: () => import("./shipping-profiles-list-W25ZUWGV.js"),
4911
4530
  children: [
4912
4531
  {
4913
4532
  path: "create",
4914
- handle: { permissions: "shipping_profile:create" },
4533
+ handle: { permissions: "shipping_profiles:edit" },
4915
4534
  lazy: () => import("./shipping-profile-create-FT6KK2H5.js")
4916
4535
  }
4917
4536
  ]
@@ -4924,7 +4543,7 @@ function getRouteMap({
4924
4543
  Component: Outlet4,
4925
4544
  loader,
4926
4545
  handle: {
4927
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4546
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4928
4547
  }
4929
4548
  };
4930
4549
  },
@@ -4935,7 +4554,7 @@ function getRouteMap({
4935
4554
  children: [
4936
4555
  {
4937
4556
  path: "metadata/edit",
4938
- lazy: () => import("./shipping-profile-metadata-S7Z3IC6I.js")
4557
+ lazy: () => import("./shipping-profile-metadata-UEZYRBZQ.js")
4939
4558
  }
4940
4559
  ]
4941
4560
  }
@@ -4945,45 +4564,45 @@ function getRouteMap({
4945
4564
  },
4946
4565
  {
4947
4566
  path: "shipping-option-types",
4948
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4949
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4567
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4568
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4950
4569
  handle: {
4951
4570
  breadcrumb: () => t("shippingOptionTypes.domain"),
4952
- permissions: "shipping_option_type:read"
4571
+ permissions: "shipping_options:view"
4953
4572
  },
4954
4573
  children: [
4955
4574
  {
4956
4575
  path: "",
4957
- lazy: () => import("./shipping-option-type-list-PRXZQSPR.js"),
4576
+ lazy: () => import("./shipping-option-type-list-R76AQI26.js"),
4958
4577
  children: [
4959
4578
  {
4960
4579
  path: "create",
4961
- handle: { permissions: "shipping_option_type:create" },
4962
- lazy: () => import("./shipping-option-type-create-M23CI42D.js")
4580
+ handle: { permissions: "shipping_options:edit" },
4581
+ lazy: () => import("./shipping-option-type-create-ZVOMA222.js")
4963
4582
  }
4964
4583
  ]
4965
4584
  },
4966
4585
  {
4967
4586
  path: ":id",
4968
4587
  lazy: async () => {
4969
- const { Breadcrumb, loader } = await import("./shipping-option-type-detail-QIJZQ5WW.js");
4588
+ const { Breadcrumb, loader } = await import("./shipping-option-type-detail-BKMYJMQY.js");
4970
4589
  return {
4971
4590
  Component: Outlet4,
4972
4591
  loader,
4973
4592
  handle: {
4974
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4593
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4975
4594
  }
4976
4595
  };
4977
4596
  },
4978
4597
  children: [
4979
4598
  {
4980
4599
  path: "",
4981
- lazy: () => import("./shipping-option-type-detail-QIJZQ5WW.js"),
4600
+ lazy: () => import("./shipping-option-type-detail-BKMYJMQY.js"),
4982
4601
  children: [
4983
4602
  {
4984
4603
  path: "edit",
4985
- handle: { permissions: "shipping_option_type:update" },
4986
- lazy: () => import("./shipping-option-type-edit-WXTEQM32.js")
4604
+ handle: { permissions: "shipping_options:edit" },
4605
+ lazy: () => import("./shipping-option-type-edit-CZFRAZPJ.js")
4987
4606
  }
4988
4607
  ]
4989
4608
  }
@@ -4994,23 +4613,23 @@ function getRouteMap({
4994
4613
  {
4995
4614
  path: ":location_id",
4996
4615
  lazy: async () => {
4997
- const { Breadcrumb, loader } = await import("./location-detail-B2BWLVAD.js");
4616
+ const { Breadcrumb, loader } = await import("./location-detail-74247BA4.js");
4998
4617
  return {
4999
4618
  Component: Outlet4,
5000
4619
  loader,
5001
4620
  handle: {
5002
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4621
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
5003
4622
  }
5004
4623
  };
5005
4624
  },
5006
4625
  children: [
5007
4626
  {
5008
4627
  path: "",
5009
- lazy: () => import("./location-detail-B2BWLVAD.js"),
4628
+ lazy: () => import("./location-detail-74247BA4.js"),
5010
4629
  children: [
5011
4630
  {
5012
4631
  path: "edit",
5013
- handle: { permissions: "stock_location:update" },
4632
+ handle: { permissions: "stock_locations:edit" },
5014
4633
  lazy: () => import("./location-edit-XRGRJCVB.js")
5015
4634
  },
5016
4635
  {
@@ -5019,7 +4638,7 @@ function getRouteMap({
5019
4638
  },
5020
4639
  {
5021
4640
  path: "fulfillment-providers",
5022
- lazy: () => import("./location-fulfillment-providers-XIYMIEFN.js")
4641
+ lazy: () => import("./location-fulfillment-providers-VHQNRTJA.js")
5023
4642
  },
5024
4643
  {
5025
4644
  path: "fulfillment-set/:fset_id",
@@ -5033,7 +4652,7 @@ function getRouteMap({
5033
4652
  children: [
5034
4653
  {
5035
4654
  path: "edit",
5036
- handle: { permissions: "stock_location:update" },
4655
+ handle: { permissions: "stock_locations:edit" },
5037
4656
  lazy: () => import("./location-service-zone-edit-KFG52K4W.js")
5038
4657
  },
5039
4658
  {
@@ -5045,15 +4664,15 @@ function getRouteMap({
5045
4664
  children: [
5046
4665
  {
5047
4666
  path: "create",
5048
- handle: { permissions: "shipping_option:create" },
5049
- lazy: () => import("./location-service-zone-shipping-option-create-6O2JXV6I.js")
4667
+ handle: { permissions: "shipping_options:edit" },
4668
+ lazy: () => import("./location-service-zone-shipping-option-create-RYAIECRU.js")
5050
4669
  },
5051
4670
  {
5052
4671
  path: ":so_id",
5053
4672
  children: [
5054
4673
  {
5055
4674
  path: "edit",
5056
- handle: { permissions: "shipping_option:update" },
4675
+ handle: { permissions: "shipping_options:edit" },
5057
4676
  lazy: () => import("./location-service-zone-shipping-option-edit-UUIR7B5S.js")
5058
4677
  },
5059
4678
  {
@@ -5076,49 +4695,49 @@ function getRouteMap({
5076
4695
  },
5077
4696
  {
5078
4697
  path: "product-tags",
5079
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
5080
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4698
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4699
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
5081
4700
  handle: {
5082
4701
  breadcrumb: () => t("productTags.domain"),
5083
- permissions: "product_tag:read"
4702
+ permissions: "product_tags:view"
5084
4703
  },
5085
4704
  children: [
5086
4705
  {
5087
4706
  path: "",
5088
- lazy: () => import("./product-tag-list-RKLCU3UE.js"),
4707
+ lazy: () => import("./product-tag-list-XT7YY6DQ.js"),
5089
4708
  children: [
5090
4709
  {
5091
4710
  path: "create",
5092
- handle: { permissions: "product_tag:create" },
5093
- lazy: () => import("./product-tag-create-QORH6X2D.js")
4711
+ handle: { permissions: "product_tags:edit" },
4712
+ lazy: () => import("./product-tag-create-SYOFR5EK.js")
5094
4713
  }
5095
4714
  ]
5096
4715
  },
5097
4716
  {
5098
4717
  path: ":id",
5099
4718
  lazy: async () => {
5100
- const { Breadcrumb, loader } = await import("./product-tag-detail-CDSYBTAM.js");
4719
+ const { Breadcrumb, loader } = await import("./product-tag-detail-ANSA7KYK.js");
5101
4720
  return {
5102
4721
  Component: Outlet4,
5103
4722
  loader,
5104
4723
  handle: {
5105
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4724
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
5106
4725
  }
5107
4726
  };
5108
4727
  },
5109
4728
  children: [
5110
4729
  {
5111
4730
  path: "",
5112
- lazy: () => import("./product-tag-detail-CDSYBTAM.js"),
4731
+ lazy: () => import("./product-tag-detail-ANSA7KYK.js"),
5113
4732
  children: [
5114
4733
  {
5115
4734
  path: "edit",
5116
- handle: { permissions: "product_tag:update" },
5117
- lazy: () => import("./product-tag-edit-JWYVCPCC.js")
4735
+ handle: { permissions: "product_tags:edit" },
4736
+ lazy: () => import("./product-tag-edit-FJPBCFBH.js")
5118
4737
  },
5119
4738
  {
5120
4739
  path: "metadata/edit",
5121
- lazy: () => import("./product-tag-metadata-BCUPIIJ5.js")
4740
+ lazy: () => import("./product-tag-metadata-WQEGISQ5.js")
5122
4741
  }
5123
4742
  ]
5124
4743
  }
@@ -5128,49 +4747,49 @@ function getRouteMap({
5128
4747
  },
5129
4748
  {
5130
4749
  path: "attributes",
5131
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
5132
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4750
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4751
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
5133
4752
  handle: {
5134
4753
  breadcrumb: () => t("attributes.domain"),
5135
- permissions: "product_attribute:read"
4754
+ permissions: "product_attributes:view"
5136
4755
  },
5137
4756
  children: [
5138
4757
  {
5139
4758
  path: "",
5140
- lazy: () => import("./attribute-list-SCFBKH4L.js"),
4759
+ lazy: () => import("./attribute-list-FLTRNSFI.js"),
5141
4760
  children: [
5142
4761
  {
5143
4762
  path: "create",
5144
- handle: { permissions: "product_attribute:create" },
5145
- lazy: () => import("./attribute-create-C435ZHB2.js")
4763
+ handle: { permissions: "product_attributes:edit" },
4764
+ lazy: () => import("./attribute-create-KZL64Q2I.js")
5146
4765
  }
5147
4766
  ]
5148
4767
  },
5149
4768
  {
5150
4769
  path: ":id",
5151
4770
  lazy: async () => {
5152
- const { Breadcrumb, loader } = await import("./attribute-detail-SPYDB3I5.js");
4771
+ const { Breadcrumb, loader } = await import("./attribute-detail-TZHGDTPU.js");
5153
4772
  return {
5154
4773
  Component: Outlet4,
5155
4774
  loader,
5156
4775
  handle: {
5157
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4776
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
5158
4777
  }
5159
4778
  };
5160
4779
  },
5161
4780
  children: [
5162
4781
  {
5163
4782
  path: "",
5164
- lazy: () => import("./attribute-detail-SPYDB3I5.js"),
4783
+ lazy: () => import("./attribute-detail-TZHGDTPU.js"),
5165
4784
  children: [
5166
4785
  {
5167
4786
  path: "edit",
5168
- handle: { permissions: "product_attribute:update" },
5169
- lazy: () => import("./attribute-edit-AAEAOP5B.js")
4787
+ handle: { permissions: "product_attributes:edit" },
4788
+ lazy: () => import("./attribute-edit-FAUQ4PBC.js")
5170
4789
  },
5171
4790
  {
5172
4791
  path: "edit-possible-value",
5173
- lazy: () => import("./attribute-edit-possible-value-BJSQCTNO.js")
4792
+ lazy: () => import("./attribute-edit-possible-value-5LAIVV3F.js")
5174
4793
  },
5175
4794
  {
5176
4795
  path: "create-possible-value",
@@ -5188,20 +4807,20 @@ function getRouteMap({
5188
4807
  },
5189
4808
  {
5190
4809
  path: "product-types",
5191
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
5192
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4810
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4811
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
5193
4812
  handle: {
5194
4813
  breadcrumb: () => t("productTypes.domain"),
5195
- permissions: "product_type:read"
4814
+ permissions: "product_types:view"
5196
4815
  },
5197
4816
  children: [
5198
4817
  {
5199
4818
  path: "",
5200
- lazy: () => import("./product-type-list-N3E5HQFW.js"),
4819
+ lazy: () => import("./product-type-list-LCLWJPIT.js"),
5201
4820
  children: [
5202
4821
  {
5203
4822
  path: "create",
5204
- handle: { permissions: "product_type:create" },
4823
+ handle: { permissions: "product_types:edit" },
5205
4824
  lazy: () => import("./product-type-create-BJMYBP2R.js")
5206
4825
  }
5207
4826
  ]
@@ -5209,28 +4828,28 @@ function getRouteMap({
5209
4828
  {
5210
4829
  path: ":id",
5211
4830
  lazy: async () => {
5212
- const { Breadcrumb, loader } = await import("./product-type-detail-IY7TWXUQ.js");
4831
+ const { Breadcrumb, loader } = await import("./product-type-detail-37NEO7FI.js");
5213
4832
  return {
5214
4833
  Component: Outlet4,
5215
4834
  loader,
5216
4835
  handle: {
5217
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4836
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
5218
4837
  }
5219
4838
  };
5220
4839
  },
5221
4840
  children: [
5222
4841
  {
5223
4842
  path: "",
5224
- lazy: () => import("./product-type-detail-IY7TWXUQ.js"),
4843
+ lazy: () => import("./product-type-detail-37NEO7FI.js"),
5225
4844
  children: [
5226
4845
  {
5227
4846
  path: "edit",
5228
- handle: { permissions: "product_type:update" },
4847
+ handle: { permissions: "product_types:edit" },
5229
4848
  lazy: () => import("./product-type-edit-X7VSBPUG.js")
5230
4849
  },
5231
4850
  {
5232
4851
  path: "metadata/edit",
5233
- lazy: () => import("./product-type-metadata-DKBBQB6R.js")
4852
+ lazy: () => import("./product-type-metadata-WCGB3U4N.js")
5234
4853
  }
5235
4854
  ]
5236
4855
  }
@@ -5240,23 +4859,23 @@ function getRouteMap({
5240
4859
  },
5241
4860
  {
5242
4861
  path: "publishable-api-keys",
5243
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4862
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
5244
4863
  handle: {
5245
4864
  breadcrumb: () => t("apiKeyManagement.domain.publishable"),
5246
- permissions: "api_key:read"
4865
+ permissions: "api_keys:view"
5247
4866
  },
5248
4867
  children: [
5249
4868
  {
5250
4869
  path: "",
5251
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4870
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
5252
4871
  children: [
5253
4872
  {
5254
4873
  path: "",
5255
- lazy: () => import("./api-key-management-list-T2WHT6MT.js"),
4874
+ lazy: () => import("./api-key-management-list-XV66E2LA.js"),
5256
4875
  children: [
5257
4876
  {
5258
4877
  path: "create",
5259
- handle: { permissions: "api_key:create" },
4878
+ handle: { permissions: "api_keys:edit" },
5260
4879
  lazy: () => import("./api-key-management-create-TFG4TLGM.js")
5261
4880
  }
5262
4881
  ]
@@ -5266,23 +4885,23 @@ function getRouteMap({
5266
4885
  {
5267
4886
  path: ":id",
5268
4887
  lazy: async () => {
5269
- const { Breadcrumb, loader } = await import("./api-key-management-detail-ZGGQBQAM.js");
4888
+ const { Breadcrumb, loader } = await import("./api-key-management-detail-P5C3F2D7.js");
5270
4889
  return {
5271
4890
  Component: Outlet4,
5272
4891
  loader,
5273
4892
  handle: {
5274
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4893
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
5275
4894
  }
5276
4895
  };
5277
4896
  },
5278
4897
  children: [
5279
4898
  {
5280
4899
  path: "",
5281
- lazy: () => import("./api-key-management-detail-ZGGQBQAM.js"),
4900
+ lazy: () => import("./api-key-management-detail-P5C3F2D7.js"),
5282
4901
  children: [
5283
4902
  {
5284
4903
  path: "edit",
5285
- handle: { permissions: "api_key:update" },
4904
+ handle: { permissions: "api_keys:edit" },
5286
4905
  lazy: () => import("./api-key-management-edit-XUZJEML7.js")
5287
4906
  },
5288
4907
  {
@@ -5297,23 +4916,23 @@ function getRouteMap({
5297
4916
  },
5298
4917
  {
5299
4918
  path: "secret-api-keys",
5300
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4919
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
5301
4920
  handle: {
5302
4921
  breadcrumb: () => t("apiKeyManagement.domain.secret"),
5303
- permissions: "api_key:read"
4922
+ permissions: "api_keys:view"
5304
4923
  },
5305
4924
  children: [
5306
4925
  {
5307
4926
  path: "",
5308
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4927
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
5309
4928
  children: [
5310
4929
  {
5311
4930
  path: "",
5312
- lazy: () => import("./api-key-management-list-T2WHT6MT.js"),
4931
+ lazy: () => import("./api-key-management-list-XV66E2LA.js"),
5313
4932
  children: [
5314
4933
  {
5315
4934
  path: "create",
5316
- handle: { permissions: "api_key:create" },
4935
+ handle: { permissions: "api_keys:edit" },
5317
4936
  lazy: () => import("./api-key-management-create-TFG4TLGM.js")
5318
4937
  }
5319
4938
  ]
@@ -5323,23 +4942,23 @@ function getRouteMap({
5323
4942
  {
5324
4943
  path: ":id",
5325
4944
  lazy: async () => {
5326
- const { Breadcrumb, loader } = await import("./api-key-management-detail-ZGGQBQAM.js");
4945
+ const { Breadcrumb, loader } = await import("./api-key-management-detail-P5C3F2D7.js");
5327
4946
  return {
5328
4947
  Component: Outlet4,
5329
4948
  loader,
5330
4949
  handle: {
5331
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4950
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
5332
4951
  }
5333
4952
  };
5334
4953
  },
5335
4954
  children: [
5336
4955
  {
5337
4956
  path: "",
5338
- lazy: () => import("./api-key-management-detail-ZGGQBQAM.js"),
4957
+ lazy: () => import("./api-key-management-detail-P5C3F2D7.js"),
5339
4958
  children: [
5340
4959
  {
5341
4960
  path: "edit",
5342
- handle: { permissions: "api_key:update" },
4961
+ handle: { permissions: "api_keys:edit" },
5343
4962
  lazy: () => import("./api-key-management-edit-XUZJEML7.js")
5344
4963
  }
5345
4964
  ]
@@ -5350,20 +4969,20 @@ function getRouteMap({
5350
4969
  },
5351
4970
  {
5352
4971
  path: "tax-regions",
5353
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
4972
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
5354
4973
  handle: {
5355
4974
  breadcrumb: () => t("taxRegions.domain"),
5356
- permissions: "tax_region:read"
4975
+ permissions: "tax_regions:view"
5357
4976
  },
5358
4977
  children: [
5359
4978
  {
5360
4979
  path: "",
5361
- lazy: () => import("./tax-region-list-BXLYIYQT.js"),
4980
+ lazy: () => import("./tax-region-list-ETNXAC2A.js"),
5362
4981
  children: [
5363
4982
  {
5364
4983
  path: "create",
5365
- handle: { permissions: "tax_region:create" },
5366
- lazy: () => import("./tax-region-create-PIDKQEWT.js")
4984
+ handle: { permissions: "tax_regions:edit" },
4985
+ lazy: () => import("./tax-region-create-OGVIIVMO.js")
5367
4986
  }
5368
4987
  ]
5369
4988
  },
@@ -5372,13 +4991,13 @@ function getRouteMap({
5372
4991
  Component: Outlet4,
5373
4992
  loader: taxRegionLoader,
5374
4993
  handle: {
5375
- breadcrumb: (match) => /* @__PURE__ */ jsx16(TaxRegionDetailBreadcrumb, { ...match })
4994
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(TaxRegionDetailBreadcrumb, { ...match })
5376
4995
  },
5377
4996
  children: [
5378
4997
  {
5379
4998
  path: "",
5380
4999
  lazy: async () => {
5381
- const { Component } = await import("./tax-region-detail-7RNNZ4UE.js");
5000
+ const { Component } = await import("./tax-region-detail-O4DZFMT5.js");
5382
5001
  return {
5383
5002
  Component
5384
5003
  };
@@ -5386,8 +5005,8 @@ function getRouteMap({
5386
5005
  children: [
5387
5006
  {
5388
5007
  path: "edit",
5389
- handle: { permissions: "tax_region:update" },
5390
- lazy: () => import("./tax-region-edit-I27QZZPB.js")
5008
+ handle: { permissions: "tax_regions:edit" },
5009
+ lazy: () => import("./tax-region-edit-DUBTSOQ4.js")
5391
5010
  },
5392
5011
  {
5393
5012
  path: "provinces/create",
@@ -5395,11 +5014,11 @@ function getRouteMap({
5395
5014
  },
5396
5015
  {
5397
5016
  path: "overrides/create",
5398
- lazy: () => import("./tax-region-tax-override-create-Z6S43XQ6.js")
5017
+ lazy: () => import("./tax-region-tax-override-create-LLCR42OB.js")
5399
5018
  },
5400
5019
  {
5401
5020
  path: "overrides/:tax_rate_id/edit",
5402
- lazy: () => import("./tax-region-tax-override-edit-4EOURL2M.js")
5021
+ lazy: () => import("./tax-region-tax-override-edit-V2B5PDIA.js")
5403
5022
  },
5404
5023
  {
5405
5024
  path: "tax-rates/create",
@@ -5411,26 +5030,26 @@ function getRouteMap({
5411
5030
  },
5412
5031
  {
5413
5032
  path: "metadata/edit",
5414
- lazy: () => import("./tax-region-metadata-6YIZSRLO.js")
5033
+ lazy: () => import("./tax-region-metadata-KHODQCDW.js")
5415
5034
  }
5416
5035
  ]
5417
5036
  },
5418
5037
  {
5419
5038
  path: "provinces/:province_id",
5420
5039
  lazy: async () => {
5421
- const { Breadcrumb, loader } = await import("./tax-region-province-detail-AHS5SRP5.js");
5040
+ const { Breadcrumb, loader } = await import("./tax-region-province-detail-LOOLLFNO.js");
5422
5041
  return {
5423
5042
  Component: Outlet4,
5424
5043
  loader,
5425
5044
  handle: {
5426
- breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
5045
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
5427
5046
  }
5428
5047
  };
5429
5048
  },
5430
5049
  children: [
5431
5050
  {
5432
5051
  path: "",
5433
- lazy: () => import("./tax-region-province-detail-AHS5SRP5.js"),
5052
+ lazy: () => import("./tax-region-province-detail-LOOLLFNO.js"),
5434
5053
  children: [
5435
5054
  {
5436
5055
  path: "tax-rates/create",
@@ -5442,11 +5061,11 @@ function getRouteMap({
5442
5061
  },
5443
5062
  {
5444
5063
  path: "overrides/create",
5445
- lazy: () => import("./tax-region-tax-override-create-Z6S43XQ6.js")
5064
+ lazy: () => import("./tax-region-tax-override-create-LLCR42OB.js")
5446
5065
  },
5447
5066
  {
5448
5067
  path: "overrides/:tax_rate_id/edit",
5449
- lazy: () => import("./tax-region-tax-override-edit-4EOURL2M.js")
5068
+ lazy: () => import("./tax-region-tax-override-edit-V2B5PDIA.js")
5450
5069
  }
5451
5070
  ]
5452
5071
  }
@@ -5458,19 +5077,19 @@ function getRouteMap({
5458
5077
  },
5459
5078
  {
5460
5079
  path: "return-reasons",
5461
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
5080
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
5462
5081
  handle: {
5463
5082
  breadcrumb: () => t("returnReasons.domain"),
5464
- permissions: "return_reason:read"
5083
+ permissions: "return_reasons:view"
5465
5084
  },
5466
5085
  children: [
5467
5086
  {
5468
5087
  path: "",
5469
- lazy: () => import("./return-reason-list-6MQKG72S.js"),
5088
+ lazy: () => import("./return-reason-list-LMY7QYX7.js"),
5470
5089
  children: [
5471
5090
  {
5472
5091
  path: "create",
5473
- handle: { permissions: "return_reason:create" },
5092
+ handle: { permissions: "return_reasons:edit" },
5474
5093
  lazy: () => import("./return-reason-create-GNUVNYS5.js")
5475
5094
  },
5476
5095
  {
@@ -5478,7 +5097,7 @@ function getRouteMap({
5478
5097
  children: [
5479
5098
  {
5480
5099
  path: "edit",
5481
- handle: { permissions: "return_reason:update" },
5100
+ handle: { permissions: "return_reasons:edit" },
5482
5101
  lazy: () => import("./return-reason-edit-5ZICBOB3.js")
5483
5102
  }
5484
5103
  ]
@@ -5489,28 +5108,28 @@ function getRouteMap({
5489
5108
  },
5490
5109
  {
5491
5110
  path: "refund-reasons",
5492
- element: /* @__PURE__ */ jsx16(Outlet4, {}),
5111
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
5493
5112
  handle: {
5494
5113
  breadcrumb: () => t("refundReasons.domain"),
5495
- permissions: "refund_reason:read"
5114
+ permissions: "refund_reasons:view"
5496
5115
  },
5497
5116
  children: [
5498
5117
  {
5499
5118
  path: "",
5500
- lazy: () => import("./refund-reason-list-ABRFC3OQ.js"),
5119
+ lazy: () => import("./refund-reason-list-URWPPRS5.js"),
5501
5120
  children: [
5502
5121
  {
5503
5122
  path: "create",
5504
- handle: { permissions: "refund_reason:create" },
5505
- lazy: () => import("./refund-reason-create-P5FUFEGK.js")
5123
+ handle: { permissions: "refund_reasons:edit" },
5124
+ lazy: () => import("./refund-reason-create-TOH2D225.js")
5506
5125
  },
5507
5126
  {
5508
5127
  path: ":id",
5509
5128
  children: [
5510
5129
  {
5511
5130
  path: "edit",
5512
- handle: { permissions: "refund_reason:update" },
5513
- lazy: () => import("./refund-reason-edit-AKOTWXCE.js")
5131
+ handle: { permissions: "refund_reasons:edit" },
5132
+ lazy: () => import("./refund-reason-edit-B32E4WHH.js")
5514
5133
  }
5515
5134
  ]
5516
5135
  }
@@ -5527,18 +5146,18 @@ function getRouteMap({
5527
5146
  ]
5528
5147
  },
5529
5148
  {
5530
- element: /* @__PURE__ */ jsx16(PublicLayout, {}),
5149
+ element: /* @__PURE__ */ jsx15(PublicLayout, {}),
5531
5150
  children: [
5532
5151
  {
5533
- errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
5152
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
5534
5153
  children: [
5535
5154
  {
5536
5155
  path: "/login",
5537
- lazy: () => import("./login-TZHRVYA5.js")
5156
+ lazy: () => import("./login-2NBVRH4U.js")
5538
5157
  },
5539
5158
  {
5540
5159
  path: "/reset-password",
5541
- lazy: () => import("./reset-password-VJY5CXJU.js")
5160
+ lazy: () => import("./reset-password-RJ5VSBQV.js")
5542
5161
  },
5543
5162
  {
5544
5163
  path: "/invite",
@@ -5558,7 +5177,7 @@ function getRouteMap({
5558
5177
 
5559
5178
  // src/app.tsx
5560
5179
  import { useMemo as useMemo7 } from "react";
5561
- import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
5180
+ import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
5562
5181
  function App() {
5563
5182
  const routes = useMemo7(() => {
5564
5183
  return {
@@ -5567,15 +5186,15 @@ function App() {
5567
5186
  publicRoutes: createRouteMap(getRoutesByType(customRoutes, "public"))
5568
5187
  };
5569
5188
  }, []);
5570
- return /* @__PURE__ */ jsx17(TooltipProvider, { children: /* @__PURE__ */ jsx17(HelmetProvider, { children: /* @__PURE__ */ jsx17(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx17(ThemeProvider, { children: /* @__PURE__ */ jsx17(FeatureFlagProvider, { children: /* @__PURE__ */ jsxs11(
5189
+ return /* @__PURE__ */ jsx16(TooltipProvider, { children: /* @__PURE__ */ jsx16(HelmetProvider, { children: /* @__PURE__ */ jsx16(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx16(ThemeProvider, { children: /* @__PURE__ */ jsx16(FeatureFlagProvider, { children: /* @__PURE__ */ jsxs9(
5571
5190
  ExtensionProvider,
5572
5191
  {
5573
5192
  widgets,
5574
5193
  navigation,
5575
5194
  customFields,
5576
5195
  children: [
5577
- /* @__PURE__ */ jsx17(I18n, {}),
5578
- /* @__PURE__ */ jsx17(I18nProvider, { children: /* @__PURE__ */ jsx17(
5196
+ /* @__PURE__ */ jsx16(I18n, {}),
5197
+ /* @__PURE__ */ jsx16(I18nProvider, { children: /* @__PURE__ */ jsx16(
5579
5198
  RouterProvider,
5580
5199
  {
5581
5200
  router: createBrowserRouter(getRouteMap(routes), {
@@ -5583,7 +5202,7 @@ function App() {
5583
5202
  })
5584
5203
  }
5585
5204
  ) }),
5586
- /* @__PURE__ */ jsx17(Toaster, {})
5205
+ /* @__PURE__ */ jsx16(Toaster, {})
5587
5206
  ]
5588
5207
  }
5589
5208
  ) }) }) }) }) });
@@ -5593,13 +5212,8 @@ function App() {
5593
5212
  import {
5594
5213
  PermissionGuard,
5595
5214
  PermissionsProvider as PermissionsProvider2,
5596
- PermissionsRequirement,
5597
- PermissionsRequirementsProvider,
5598
- RequiredPermissionsSection,
5599
5215
  RoutePermissionGuard as RoutePermissionGuard2,
5600
5216
  usePermissions as usePermissions3,
5601
- useRegisterPermissions,
5602
- useRequiredPermissions,
5603
5217
  useResourcePermissions
5604
5218
  } from "@mercurjs/dashboard-shared";
5605
5219
  export {
@@ -5608,14 +5222,10 @@ export {
5608
5222
  _DataTable as DataTable,
5609
5223
  FileUpload,
5610
5224
  Form,
5611
- Notifications,
5612
5225
  PRODUCT_DETAIL_FIELDS,
5613
5226
  PRODUCT_DETAIL_QUERY,
5614
5227
  PermissionGuard,
5615
5228
  PermissionsProvider2 as PermissionsProvider,
5616
- PermissionsRequirement,
5617
- PermissionsRequirementsProvider,
5618
- RequiredPermissionsSection,
5619
5229
  RoutePermissionGuard2 as RoutePermissionGuard,
5620
5230
  SingleColumnPage,
5621
5231
  SwitchBox,
@@ -5624,8 +5234,6 @@ export {
5624
5234
  defineTabMeta,
5625
5235
  useDataTable,
5626
5236
  usePermissions3 as usePermissions,
5627
- useRegisterPermissions,
5628
- useRequiredPermissions,
5629
5237
  useResourcePermissions,
5630
5238
  useTabbedForm
5631
5239
  };