@mercurjs/admin 2.3.6-canary.2 → 2.3.6-canary.4

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 (181) hide show
  1. package/dist/{add-campaign-promotions-VFRAB2NN.js → add-campaign-promotions-6OB7BUPK.js} +3 -3
  2. package/dist/{adjust-inventory-TWESAGKE.js → adjust-inventory-32UZ4BZC.js} +1 -1
  3. package/dist/{api-key-management-detail-ZFA3YPJ6.js → api-key-management-detail-P5C3F2D7.js} +3 -3
  4. package/dist/{api-key-management-list-T2WHT6MT.js → api-key-management-list-XV66E2LA.js} +1 -1
  5. package/dist/{attribute-create-OHAZ4X75.js → attribute-create-UWLP2DZY.js} +3 -3
  6. package/dist/{attribute-detail-YJ4ZZYCL.js → attribute-detail-KUJ337KW.js} +2 -2
  7. package/dist/{attribute-edit-AAEAOP5B.js → attribute-edit-KYK4KJYP.js} +2 -2
  8. package/dist/{attribute-edit-possible-value-BJSQCTNO.js → attribute-edit-possible-value-OOHDX7XL.js} +2 -2
  9. package/dist/{attribute-list-MEXPF4TG.js → attribute-list-FLTRNSFI.js} +2 -2
  10. package/dist/{campaign-detail-3HKWD7UR.js → campaign-detail-4IEM5BGI.js} +5 -5
  11. package/dist/{campaign-list-GIMU2QVW.js → campaign-list-ZRUBHJEA.js} +1 -1
  12. package/dist/{categories-metadata-6LMZAUOF.js → categories-metadata-6F6EFZRQ.js} +1 -1
  13. package/dist/{category-detail-RWLX5N2M.js → category-detail-3YY7FVY4.js} +6 -6
  14. package/dist/{category-list-J7XYQDJU.js → category-list-LESUC6ZK.js} +1 -1
  15. package/dist/{category-products-HS4FHYZM.js → category-products-RTOFMB25.js} +5 -5
  16. package/dist/{chunk-A2UTT4YX.js → chunk-26WXQ6LI.js} +15 -3
  17. package/dist/{chunk-VVIJHBKM.js → chunk-3BJVQXHQ.js} +1 -1
  18. package/dist/{chunk-6CD2A2OS.js → chunk-5CKBM4RI.js} +1 -1
  19. package/dist/{chunk-IAJ5F227.js → chunk-5EGLQSSH.js} +2 -2
  20. package/dist/{chunk-F5EZQMOA.js → chunk-5VHQX7Q3.js} +1 -1
  21. package/dist/{chunk-2NOIR4BR.js → chunk-62YRQVR7.js} +4 -1
  22. package/dist/{chunk-6AQYZWOC.js → chunk-64NQD2DN.js} +2 -2
  23. package/dist/{chunk-YTQY4EOW.js → chunk-6ZMSV6PN.js} +1 -1
  24. package/dist/{chunk-6ASLWQB3.js → chunk-7C7YLUYT.js} +1 -1
  25. package/dist/{chunk-NHDNRGKP.js → chunk-ACEEFNIX.js} +2 -2
  26. package/dist/{chunk-OUXIGGB5.js → chunk-AGQ2BWD4.js} +2 -2
  27. package/dist/{chunk-YUL4ES52.js → chunk-AYKMFPKF.js} +2 -2
  28. package/dist/{chunk-BVAVPYHI.js → chunk-AZMXFIDY.js} +3 -3
  29. package/dist/{chunk-GD7FWYHP.js → chunk-D3KEKNYN.js} +3 -3
  30. package/dist/{chunk-JNZPAM34.js → chunk-DDZPK7BW.js} +1 -1
  31. package/dist/{chunk-BLU2WLIJ.js → chunk-DJ73BQSS.js} +1 -1
  32. package/dist/{chunk-D6WRJZPH.js → chunk-DOEBGZMA.js} +1 -1
  33. package/dist/{chunk-D7E6HL5O.js → chunk-EWDBPCX7.js} +3 -3
  34. package/dist/{chunk-J34YB5R4.js → chunk-FCOYAYQE.js} +1 -1
  35. package/dist/{chunk-MM5RRCPX.js → chunk-FTXH5ROQ.js} +1 -1
  36. package/dist/{chunk-FPIFYOMN.js → chunk-FX7HVGV5.js} +1 -1
  37. package/dist/{chunk-F644YFJZ.js → chunk-G7444ISU.js} +2 -2
  38. package/dist/{chunk-KTO2WJ75.js → chunk-GDFMWKL6.js} +1 -1
  39. package/dist/{chunk-TUDKRZ6P.js → chunk-HGFMHWPB.js} +1 -1
  40. package/dist/{chunk-EACE4252.js → chunk-I6HCTKMK.js} +2 -2
  41. package/dist/{chunk-4FAYO6UJ.js → chunk-IFG5ONPV.js} +1 -1
  42. package/dist/{chunk-R2DDRU77.js → chunk-IHTYHAOC.js} +2 -2
  43. package/dist/{chunk-AOLP2YDZ.js → chunk-IKDIEJZC.js} +1 -1
  44. package/dist/{chunk-N2733YCW.js → chunk-IVWSTXBV.js} +1 -1
  45. package/dist/{chunk-3XS5ADKJ.js → chunk-JCRDVMIA.js} +2 -2
  46. package/dist/{chunk-HEGUG6HH.js → chunk-KMLQ2ENL.js} +2 -2
  47. package/dist/{chunk-3KRUGI6C.js → chunk-KMSBY4PU.js} +1 -1
  48. package/dist/{chunk-IHCKU5FR.js → chunk-KYVPZH3D.js} +1 -1
  49. package/dist/{chunk-NYMDLCWP.js → chunk-LFFWPZQK.js} +16 -4
  50. package/dist/{chunk-TDLIW2TU.js → chunk-O3RDRDCO.js} +1 -1
  51. package/dist/{chunk-BDXJOPLO.js → chunk-OZKHBVDV.js} +1 -1
  52. package/dist/{chunk-W62DN2I2.js → chunk-PC2EI2BG.js} +1 -1
  53. package/dist/{chunk-KRCHKYDN.js → chunk-QK3HIMET.js} +2 -2
  54. package/dist/{chunk-T3T6OYAT.js → chunk-RU5IUJC2.js} +3 -3
  55. package/dist/chunk-USY2322P.js +17 -0
  56. package/dist/{chunk-OWWE5Y6T.js → chunk-UXA6RZMP.js} +2 -2
  57. package/dist/{chunk-RSDTHO3I.js → chunk-V6UH5UQT.js} +1 -1
  58. package/dist/{chunk-437KXVGO.js → chunk-VC2GAWL4.js} +1 -1
  59. package/dist/{chunk-RJYASAQO.js → chunk-VOXWLJHA.js} +2 -2
  60. package/dist/{chunk-KWFSBUD6.js → chunk-VPUTUJQG.js} +31 -0
  61. package/dist/{chunk-2RVWPHH7.js → chunk-WA3UZTKD.js} +1 -1
  62. package/dist/{chunk-QQNSPKSH.js → chunk-XABVCD7R.js} +1 -1
  63. package/dist/{chunk-GFHUI2QK.js → chunk-XAF7FKWZ.js} +1 -1
  64. package/dist/{chunk-OVVFJY7I.js → chunk-XAQLGDAI.js} +1 -1
  65. package/dist/{chunk-475XGX3J.js → chunk-XGB456O5.js} +1 -1
  66. package/dist/{chunk-AYT2CZ4A.js → chunk-XV4YW4GE.js} +2 -2
  67. package/dist/{chunk-QEBISX7V.js → chunk-Y7ENTINK.js} +1 -1
  68. package/dist/{chunk-M6X7KIBW.js → chunk-YHWDMARX.js} +1 -1
  69. package/dist/{chunk-VBHKRUON.js → chunk-ZGNLAPV6.js} +1 -1
  70. package/dist/{chunk-BEBP26XV.js → chunk-ZPHVFD4N.js} +21 -0
  71. package/dist/{collection-add-products-FFYCZINV.js → collection-add-products-O5ILXKFY.js} +5 -5
  72. package/dist/{collection-detail-JT4DSP7V.js → collection-detail-CTXO7RMM.js} +6 -6
  73. package/dist/{collection-list-3DODRV34.js → collection-list-MWXFS7UY.js} +5 -5
  74. package/dist/{collection-metadata-7XMJPJCT.js → collection-metadata-QUMWZABV.js} +1 -1
  75. package/dist/{commissions-list-MUKIEJWZ.js → commissions-list-PQUFPRZK.js} +1 -1
  76. package/dist/{customer-detail-AMGUVNTH.js → customer-detail-ZYETGMFF.js} +1 -1
  77. package/dist/{customer-group-detail-PDA3JCAZ.js → customer-group-detail-RPDRZGPZ.js} +1 -1
  78. package/dist/{customer-group-list-2NP5GAKQ.js → customer-group-list-MZ7H4XLD.js} +2 -2
  79. package/dist/{customer-group-metadata-B7LBRM5F.js → customer-group-metadata-UQ2SCLOK.js} +1 -1
  80. package/dist/{customer-list-NEPELR3R.js → customer-list-46W5PJR3.js} +1 -1
  81. package/dist/{customer-metadata-WL5W5JSC.js → customer-metadata-UEQSIGLT.js} +1 -1
  82. package/dist/{customers-add-customer-group-GNDYPKUO.js → customers-add-customer-group-AZYAIQ7E.js} +1 -1
  83. package/dist/{edit-inventory-item-QNTKH7KR.js → edit-inventory-item-ENA2OFSQ.js} +1 -1
  84. package/dist/{edit-inventory-item-attributes-KB4GVOGP.js → edit-inventory-item-attributes-Z26UDTSH.js} +1 -1
  85. package/dist/{edit-rules-HIC7UOV5.js → edit-rules-3DCWA5UF.js} +1 -1
  86. package/dist/index.css +223 -6
  87. package/dist/index.d.ts +2 -2
  88. package/dist/index.js +605 -585
  89. package/dist/{inventory-detail-OLBIFY6Y.js → inventory-detail-MMONC625.js} +1 -1
  90. package/dist/{inventory-metadata-2QNV2PF7.js → inventory-metadata-OGS7JMZ5.js} +1 -1
  91. package/dist/{inventory-stock-M5YSKXC4.js → inventory-stock-LDBJQCJF.js} +1 -1
  92. package/dist/{location-detail-FFKVKFUX.js → location-detail-74247BA4.js} +1 -1
  93. package/dist/{location-fulfillment-providers-YY2TKMLH.js → location-fulfillment-providers-JGJOTGMZ.js} +3 -3
  94. package/dist/{location-list-R3OABFPG.js → location-list-JJN42JSH.js} +1 -1
  95. package/dist/{location-service-zone-shipping-option-create-EMPXW67L.js → location-service-zone-shipping-option-create-RYAIECRU.js} +1 -1
  96. package/dist/{login-ZCAW7Z7Q.js → login-2NBVRH4U.js} +1 -1
  97. package/dist/{marketplace-detail-BIQF75Y7.js → marketplace-detail-JSUMZVZS.js} +1 -1
  98. package/dist/{marketplace-metadata-U6LXZNTN.js → marketplace-metadata-2TZTRDRJ.js} +1 -1
  99. package/dist/{offer-detail-page-WWEUCEFC.js → offer-detail-page-JGS52M66.js} +14 -2
  100. package/dist/{offers-KJTLBFTM.js → offers-6MDVGCJK.js} +4 -4
  101. package/dist/{order-create-exchange-TSGTAOEF.js → order-create-exchange-CBQ5PA6M.js} +1 -1
  102. package/dist/{order-create-refund-KYTIPPQK.js → order-create-refund-ZWMXQGUA.js} +1 -1
  103. package/dist/{order-detail-P7R4U4YU.js → order-detail-U3HDRBBG.js} +3 -3
  104. package/dist/{order-edit-billing-address-6ALJ7U6O.js → order-edit-billing-address-V6QS5DYF.js} +2 -2
  105. package/dist/{order-edit-email-CYCFGHE4.js → order-edit-email-AGJU7YHU.js} +1 -1
  106. package/dist/{order-edit-shipping-address-XJUKP3JP.js → order-edit-shipping-address-TKLEEHOE.js} +1 -1
  107. package/dist/{order-list-I6JZT6JK.js → order-list-L2WZX5ED.js} +2 -2
  108. package/dist/{order-metadata-PQKBD7ZT.js → order-metadata-NVC3A3A5.js} +1 -1
  109. package/dist/{order-request-transfer-R3FCUU7R.js → order-request-transfer-7EZX5UOQ.js} +1 -1
  110. package/dist/pages/index.js +53 -52
  111. package/dist/{price-list-create-PHJFJOQA.js → price-list-create-RNVWVB5D.js} +5 -5
  112. package/dist/{price-list-detail-CGZ5DS6T.js → price-list-detail-WHJKFDYZ.js} +5 -5
  113. package/dist/{price-list-list-5CNSLAUF.js → price-list-list-AM2GMQ7P.js} +1 -1
  114. package/dist/{price-list-prices-add-O5JDIJ3O.js → price-list-prices-add-ZDKNOJRU.js} +5 -5
  115. package/dist/{price-list-prices-edit-ITO6ZTGD.js → price-list-prices-edit-S4V5ACN3.js} +1 -1
  116. package/dist/{product-add-existing-attributes-5XGJZSIY.js → product-add-existing-attributes-VWM3LNIO.js} +3 -3
  117. package/dist/{product-create-P7F2RZPS.js → product-create-NVAKRIPS.js} +6 -5
  118. package/dist/{product-create-attribute-QYRCPUFC.js → product-create-attribute-KAICRW2S.js} +1 -1
  119. package/dist/{product-create-variant-MZLHG5JF.js → product-create-variant-AKTPH6F7.js} +3 -3
  120. package/dist/{product-detail-G6HRH4ND.js → product-detail-DZRYNPRT.js} +3 -3
  121. package/dist/{product-edit-2CMVTDWT.js → product-edit-TAVV5CWR.js} +8 -3
  122. package/dist/{product-list-O35LY6T7.js → product-list-SYMPZR6W.js} +6 -6
  123. package/dist/{product-media-3ERT2APJ.js → product-media-6XS74AU3.js} +3 -3
  124. package/dist/{product-metadata-2QQGBVV5.js → product-metadata-GKQUURAL.js} +1 -1
  125. package/dist/{product-organization-VXTSCBHU.js → product-organization-3PIQ4IY2.js} +1 -1
  126. package/dist/{product-tag-create-4CDCZZNR.js → product-tag-create-SYOFR5EK.js} +1 -1
  127. package/dist/{product-tag-detail-5YX4ET5N.js → product-tag-detail-HM2AWFGU.js} +7 -7
  128. package/dist/{product-tag-edit-UBXKLVUN.js → product-tag-edit-FJPBCFBH.js} +1 -1
  129. package/dist/{product-tag-list-GNGDIW54.js → product-tag-list-OBV7CZZL.js} +7 -7
  130. package/dist/{product-tag-metadata-CDXKXZPM.js → product-tag-metadata-WQEGISQ5.js} +1 -1
  131. package/dist/{product-type-detail-A3MUWNM4.js → product-type-detail-D3OYCXGR.js} +6 -6
  132. package/dist/{product-type-list-N3E5HQFW.js → product-type-list-LCLWJPIT.js} +1 -1
  133. package/dist/{product-type-metadata-IISED7XQ.js → product-type-metadata-WCGB3U4N.js} +1 -1
  134. package/dist/{product-variant-detail-TIULIJ3X.js → product-variant-detail-7B26FRNG.js} +1 -1
  135. package/dist/{product-variant-edit-Y4BJFQTK.js → product-variant-edit-UC34WTO7.js} +3 -3
  136. package/dist/{product-variant-metadata-7SKGOEEA.js → product-variant-metadata-CTKNNNLM.js} +1 -1
  137. package/dist/{profile-detail-KFLXUGQ5.js → profile-detail-TQWGKYRK.js} +2 -2
  138. package/dist/{profile-edit-4FDALFG5.js → profile-edit-ZBD6N5SC.js} +1 -1
  139. package/dist/{promotion-create-D6PTGIAY.js → promotion-create-FKRGXGI4.js} +1 -1
  140. package/dist/{promotion-detail-4VYJAJ2N.js → promotion-detail-IC5LHRSY.js} +4 -4
  141. package/dist/{promotion-list-6OBFAIOU.js → promotion-list-TVTDBBJ3.js} +4 -4
  142. package/dist/{refund-reason-create-DAOTHCMY.js → refund-reason-create-TOH2D225.js} +1 -1
  143. package/dist/{refund-reason-edit-M3AKWJZR.js → refund-reason-edit-B32E4WHH.js} +1 -1
  144. package/dist/{refund-reason-list-WGRCZWXL.js → refund-reason-list-G5QJEYPW.js} +6 -6
  145. package/dist/{region-metadata-IK6ZPUJW.js → region-metadata-NAHNXAHQ.js} +1 -1
  146. package/dist/{reservation-detail-7PLHNOS4.js → reservation-detail-OCIIVYIN.js} +1 -1
  147. package/dist/{reservation-list-VRRSKQ4W.js → reservation-list-JQFVSRW5.js} +1 -1
  148. package/dist/{reservation-metadata-L42C7DPK.js → reservation-metadata-AKR6FRG5.js} +1 -1
  149. package/dist/{reset-password-EUAOKJDU.js → reset-password-RJ5VSBQV.js} +1 -1
  150. package/dist/{return-reason-list-6MQKG72S.js → return-reason-list-PKAJDA6A.js} +5 -5
  151. package/dist/{sales-channel-add-products-EHFMW73I.js → sales-channel-add-products-RRTMXVAT.js} +5 -5
  152. package/dist/{sales-channel-detail-5CL3LMRD.js → sales-channel-detail-7GAGHWEP.js} +6 -6
  153. package/dist/{sales-channel-list-ZEERNIJZ.js → sales-channel-list-BCL62DTX.js} +1 -1
  154. package/dist/{sales-channel-metadata-OFHAFCOM.js → sales-channel-metadata-BKNILVQ2.js} +1 -1
  155. package/dist/{shipping-option-type-create-4TZVLPFU.js → shipping-option-type-create-ZVOMA222.js} +1 -1
  156. package/dist/{shipping-option-type-detail-TPG7NKCT.js → shipping-option-type-detail-BKMYJMQY.js} +1 -1
  157. package/dist/{shipping-option-type-edit-BIWXDVMF.js → shipping-option-type-edit-CZFRAZPJ.js} +1 -1
  158. package/dist/{shipping-option-type-list-5DOYVCD6.js → shipping-option-type-list-R76AQI26.js} +2 -2
  159. package/dist/{shipping-profile-metadata-SQFRUAIH.js → shipping-profile-metadata-UEZYRBZQ.js} +1 -1
  160. package/dist/{shipping-profiles-list-LK5ZXRJG.js → shipping-profiles-list-W25ZUWGV.js} +1 -1
  161. package/dist/{store-bulk-edit-NBWZMDP7.js → store-bulk-edit-FQPQQR46.js} +1 -1
  162. package/dist/{store-create-RYYOB2FV.js → store-create-JBY2MAIT.js} +1 -1
  163. package/dist/{store-details-A2L6YQDB.js → store-details-5FBLCWOV.js} +6 -6
  164. package/dist/{store-edit-BORBEPWF.js → store-edit-BXWV5H4Z.js} +3 -3
  165. package/dist/{store-list-JADJQPSK.js → store-list-MAT74WSB.js} +5 -5
  166. package/dist/{store-member-invite-IEUG54XA.js → store-member-invite-A2WAB5GK.js} +1 -1
  167. package/dist/{tax-region-create-Q2QYTIHC.js → tax-region-create-OGVIIVMO.js} +2 -2
  168. package/dist/{tax-region-detail-AJ2O7YKC.js → tax-region-detail-O4DZFMT5.js} +1 -1
  169. package/dist/{tax-region-edit-A6C4VTTZ.js → tax-region-edit-DUBTSOQ4.js} +1 -1
  170. package/dist/{tax-region-list-BXLYIYQT.js → tax-region-list-ETNXAC2A.js} +1 -1
  171. package/dist/{tax-region-metadata-6QI4VPCV.js → tax-region-metadata-KHODQCDW.js} +1 -1
  172. package/dist/{tax-region-province-detail-SZAUBE23.js → tax-region-province-detail-LOOLLFNO.js} +1 -1
  173. package/dist/{tax-region-tax-override-create-IPHOMPVG.js → tax-region-tax-override-create-NMLHLS7J.js} +7 -7
  174. package/dist/{tax-region-tax-override-edit-IV57DNYU.js → tax-region-tax-override-edit-4SJ3DRAF.js} +7 -7
  175. package/dist/{user-detail-5LOE6QGK.js → user-detail-MJ3ITMNK.js} +2 -2
  176. package/dist/{user-edit-O2M5II52.js → user-edit-Y5VP6CKB.js} +1 -1
  177. package/dist/{user-invite-SZIUG2WK.js → user-invite-YVLFH6HU.js} +26 -126
  178. package/dist/{user-list-6YRC6HYX.js → user-list-6IYBI6HY.js} +2 -2
  179. package/dist/{user-metadata-M72ZGLGH.js → user-metadata-XNM2JNNO.js} +1 -1
  180. package/package.json +9 -9
  181. package/dist/chunk-4F6SHS7A.js +0 -83
package/dist/index.js CHANGED
@@ -3,11 +3,6 @@ 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";
@@ -26,7 +21,7 @@ import {
26
21
  } from "./chunk-KDE4HKH2.js";
27
22
  import {
28
23
  I18n
29
- } from "./chunk-BEBP26XV.js";
24
+ } from "./chunk-ZPHVFD4N.js";
30
25
  import {
31
26
  SwitchBox
32
27
  } from "./chunk-2EME4AWX.js";
@@ -75,7 +70,7 @@ import {
75
70
  import "./chunk-CMVQ5SAG.js";
76
71
  import {
77
72
  useMe
78
- } from "./chunk-2NOIR4BR.js";
73
+ } from "./chunk-62YRQVR7.js";
79
74
  import "./chunk-2SCR7R3C.js";
80
75
  import "./chunk-YMMREB3P.js";
81
76
  import "./chunk-UNS2F7DK.js";
@@ -133,7 +128,9 @@ import {
133
128
  queryClient
134
129
  } from "./chunk-RHKRREUU.js";
135
130
  import "./chunk-ZA2KFUFR.js";
136
- import "./chunk-DTGEFKK4.js";
131
+ import {
132
+ fetchQuery
133
+ } from "./chunk-DTGEFKK4.js";
137
134
  import "./chunk-NBMM2TZK.js";
138
135
 
139
136
  // src/app.tsx
@@ -218,10 +215,13 @@ var useTheme = () => {
218
215
 
219
216
  // src/providers/sidebar-provider/index.ts
220
217
  import {
218
+ SIDEBAR_MENU_CONTENT,
221
219
  SIDEBAR_RAIL_FADE,
222
220
  SidebarProvider,
223
221
  useCollapsedSidebar,
224
- useSidebar
222
+ useExpandedSidebar,
223
+ useSidebar,
224
+ useSidebarMenuPlacement
225
225
  } from "@mercurjs/dashboard-shared";
226
226
 
227
227
  // src/providers/keybind-provider/hooks.tsx
@@ -1487,6 +1487,45 @@ var useSearch = () => {
1487
1487
  return context;
1488
1488
  };
1489
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
+
1490
1529
  // src/app.tsx
1491
1530
  import { I18nProvider, Toaster, TooltipProvider } from "@medusajs/ui";
1492
1531
  import { createBrowserRouter, RouterProvider } from "react-router-dom";
@@ -1497,39 +1536,23 @@ import { Outlet as Outlet4 } from "react-router-dom";
1497
1536
 
1498
1537
  // src/components/authentication/protected-route/protected-route.tsx
1499
1538
  import { Spinner as Spinner2 } from "@medusajs/icons";
1500
- import { useMemo as useMemo4 } from "react";
1501
1539
  import { Navigate, Outlet, useLocation as useLocation2 } from "react-router-dom";
1502
1540
  import { PermissionsProvider } from "@mercurjs/dashboard-shared";
1503
- import { jsx as jsx5 } from "react/jsx-runtime";
1541
+ import { jsx as jsx6 } from "react/jsx-runtime";
1504
1542
  var ProtectedRoute = () => {
1505
1543
  const location = useLocation2();
1506
- const isRbacEnabled = useFeatureFlag("rbac");
1507
1544
  const { user, isLoading: isLoadingUser } = useMe();
1508
- const { data: permissionsResponse, isLoading: isLoadingPermissions } = useMePermissions({
1509
- // Don't fetch permissions until we know the user is authenticated.
1510
- enabled: !!user && isRbacEnabled
1511
- });
1512
- const policy = useMemo4(() => {
1513
- if (!permissionsResponse) {
1514
- return null;
1515
- }
1516
- return {
1517
- permissions: permissionsResponse.permissions
1518
- };
1519
- }, [permissionsResponse]);
1520
1545
  if (isLoadingUser) {
1521
- 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" }) });
1522
1547
  }
1523
1548
  if (!user) {
1524
- return /* @__PURE__ */ jsx5(Navigate, { to: "/login", state: { from: location }, replace: true });
1549
+ return /* @__PURE__ */ jsx6(Navigate, { to: "/login", state: { from: location }, replace: true });
1525
1550
  }
1526
- return /* @__PURE__ */ jsx5(
1551
+ return /* @__PURE__ */ jsx6(
1527
1552
  PermissionsProvider,
1528
1553
  {
1529
- policy,
1530
- isLoading: isLoadingPermissions,
1531
- isRbacEnabled,
1532
- 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, {}) }) })
1533
1556
  }
1534
1557
  );
1535
1558
  };
@@ -1556,7 +1579,7 @@ import { Link as Link3, useLocation as useLocation6, useNavigate as useNavigate4
1556
1579
 
1557
1580
  // src/components/layout/nav-item/nav-item.tsx
1558
1581
  import {
1559
- useCallback as useCallback5,
1582
+ useCallback as useCallback6,
1560
1583
  useEffect as useEffect6,
1561
1584
  useState as useState7
1562
1585
  } from "react";
@@ -1564,13 +1587,13 @@ import { Kbd as Kbd2, Text as Text2, Tooltip, clx as clx2 } from "@medusajs/ui";
1564
1587
  import { Collapsible as RadixCollapsible } from "radix-ui";
1565
1588
  import { useTranslation as useTranslation4 } from "react-i18next";
1566
1589
  import { NavLink, useLocation as useLocation3 } from "react-router-dom";
1567
- import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
1590
+ import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
1568
1591
  var NestedNavLabel = ({
1569
1592
  label,
1570
1593
  translationNs
1571
1594
  }) => {
1572
1595
  const { t: t2 } = useTranslation4(translationNs);
1573
- 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 });
1574
1597
  };
1575
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";
1576
1599
  var ACTIVE_NAV_LINK_CLASSES = "bg-ui-bg-base shadow-elevation-card-rest text-ui-fg-base hover:bg-ui-bg-base";
@@ -1591,23 +1614,23 @@ var NavItemTooltip = ({
1591
1614
  const globalShortcuts = useGlobalShortcuts();
1592
1615
  const shortcut = globalShortcuts.find((s) => s.to === to);
1593
1616
  if (state === "collapsed" && label) {
1594
- 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 }) });
1595
1618
  }
1596
- return /* @__PURE__ */ jsx6(
1619
+ return /* @__PURE__ */ jsx7(
1597
1620
  ConditionalTooltip,
1598
1621
  {
1599
1622
  showTooltip: !!shortcut,
1600
1623
  maxWidth: 9999,
1601
1624
  content: /* @__PURE__ */ jsxs3("div", { className: "txt-compact-xsmall flex h-5 items-center justify-between gap-x-2 whitespace-nowrap", children: [
1602
- /* @__PURE__ */ jsx6("span", { children: shortcut?.label }),
1603
- /* @__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: [
1604
- /* @__PURE__ */ jsx6(Kbd2, { children: key }, key),
1605
- 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") })
1606
1629
  ] }, index)) })
1607
1630
  ] }),
1608
1631
  side: "right",
1609
1632
  delayDuration: 1500,
1610
- children: /* @__PURE__ */ jsx6("div", { className: "w-full", children })
1633
+ children: /* @__PURE__ */ jsx7("div", { className: "w-full", children })
1611
1634
  }
1612
1635
  );
1613
1636
  };
@@ -1627,7 +1650,7 @@ var NavItem = ({
1627
1650
  useEffect6(() => {
1628
1651
  setOpen(getIsOpen(to, items, pathname));
1629
1652
  }, [pathname, to, items]);
1630
- const navLinkClassNames = useCallback5(
1653
+ const navLinkClassNames = useCallback6(
1631
1654
  ({
1632
1655
  to: to2,
1633
1656
  isActive,
@@ -1660,7 +1683,7 @@ var NavItem = ({
1660
1683
  className: "px-3",
1661
1684
  "data-testid": `sidebar-nav-item-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1662
1685
  children: [
1663
- /* @__PURE__ */ jsx6(NavItemTooltip, { to, label: displayLabel, children: /* @__PURE__ */ jsxs3(
1686
+ /* @__PURE__ */ jsx7(NavItemTooltip, { to, label: displayLabel, children: /* @__PURE__ */ jsxs3(
1664
1687
  NavLink,
1665
1688
  {
1666
1689
  to,
@@ -1675,8 +1698,8 @@ var NavItem = ({
1675
1698
  },
1676
1699
  "data-testid": `sidebar-nav-link-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1677
1700
  children: [
1678
- type !== "setting" && /* @__PURE__ */ jsx6("div", { className: "flex size-6 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx6(Icon, { icon, type }) }),
1679
- /* @__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(
1680
1703
  Text2,
1681
1704
  {
1682
1705
  size: "small",
@@ -1704,18 +1727,18 @@ var NavItem = ({
1704
1727
  { "pl-2": isSetting }
1705
1728
  ),
1706
1729
  children: [
1707
- /* @__PURE__ */ jsx6("div", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ jsx6(Icon, { icon, type }) }),
1708
- /* @__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 })
1709
1732
  ]
1710
1733
  }
1711
1734
  ),
1712
- /* @__PURE__ */ jsx6(RadixCollapsible.Content, { children: /* @__PURE__ */ jsx6(
1735
+ /* @__PURE__ */ jsx7(RadixCollapsible.Content, { children: /* @__PURE__ */ jsx7(
1713
1736
  "div",
1714
1737
  {
1715
1738
  className: "flex flex-col gap-y-0.5 pb-2 pt-0.5",
1716
1739
  "data-testid": `sidebar-nav-nested-items-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1717
1740
  children: /* @__PURE__ */ jsxs3("ul", { className: "flex flex-col gap-y-0.5", children: [
1718
- /* @__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(
1719
1742
  NavLink,
1720
1743
  {
1721
1744
  to,
@@ -1731,11 +1754,11 @@ var NavItem = ({
1731
1754
  );
1732
1755
  },
1733
1756
  "data-testid": `sidebar-nav-link-nested-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1734
- 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 })
1735
1758
  }
1736
1759
  ) }) }),
1737
1760
  items.map((item) => {
1738
- 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(
1739
1762
  NavLink,
1740
1763
  {
1741
1764
  to: item.to,
@@ -1751,7 +1774,7 @@ var NavItem = ({
1751
1774
  );
1752
1775
  },
1753
1776
  "data-testid": `sidebar-nav-link-nested-${item.to.replace(/\//g, "-").replace(/^-/, "")}`,
1754
- children: /* @__PURE__ */ jsx6(
1777
+ children: /* @__PURE__ */ jsx7(
1755
1778
  NestedNavLabel,
1756
1779
  {
1757
1780
  label: item.label,
@@ -1775,7 +1798,7 @@ var Icon = ({ icon, type }) => {
1775
1798
  if (!icon) {
1776
1799
  return null;
1777
1800
  }
1778
- 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;
1779
1802
  };
1780
1803
 
1781
1804
  // src/components/layout/shell/shell.tsx
@@ -1795,9 +1818,9 @@ import { WidgetZone } from "@mercurjs/dashboard-shared";
1795
1818
 
1796
1819
  // src/components/common/progress-bar/progress-bar.tsx
1797
1820
  import { motion } from "motion/react";
1798
- import { jsx as jsx7 } from "react/jsx-runtime";
1821
+ import { jsx as jsx8 } from "react/jsx-runtime";
1799
1822
  var ProgressBar = ({ duration = 2 }) => {
1800
- return /* @__PURE__ */ jsx7(
1823
+ return /* @__PURE__ */ jsx8(
1801
1824
  motion.div,
1802
1825
  {
1803
1826
  className: "bg-ui-fg-subtle size-full",
@@ -1821,20 +1844,20 @@ var ProgressBar = ({ duration = 2 }) => {
1821
1844
  };
1822
1845
 
1823
1846
  // src/components/layout/shell/shell.tsx
1824
- import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
1825
- var Shell = ({ children }) => {
1847
+ import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
1848
+ var Shell = ({ children, rail = true }) => {
1826
1849
  const globalShortcuts = useGlobalShortcuts();
1827
1850
  const navigation2 = useNavigation();
1828
1851
  const loading = navigation2.state === "loading";
1829
- return /* @__PURE__ */ jsx8(KeybindProvider, { shortcuts: globalShortcuts, children: /* @__PURE__ */ jsxs4("div", { className: "relative flex h-screen flex-col items-start overflow-hidden lg:flex-row", children: [
1830
- /* @__PURE__ */ jsx8(NavigationBar, { loading }),
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 }),
1831
1854
  /* @__PURE__ */ jsxs4("div", { children: [
1832
- /* @__PURE__ */ jsx8(MobileSidebarContainer, { children }),
1833
- /* @__PURE__ */ jsx8(DesktopSidebarContainer, { children })
1855
+ /* @__PURE__ */ jsx9(MobileSidebarContainer, { children }),
1856
+ /* @__PURE__ */ jsx9(DesktopSidebarContainer, { rail, children })
1834
1857
  ] }),
1835
1858
  /* @__PURE__ */ jsxs4("div", { className: "flex h-screen w-full flex-col overflow-auto", children: [
1836
- /* @__PURE__ */ jsx8(Topbar, {}),
1837
- /* @__PURE__ */ jsx8(
1859
+ /* @__PURE__ */ jsx9(Topbar, {}),
1860
+ /* @__PURE__ */ jsx9(
1838
1861
  "main",
1839
1862
  {
1840
1863
  className: clx3(
@@ -1843,7 +1866,7 @@ var Shell = ({ children }) => {
1843
1866
  "opacity-25": loading
1844
1867
  }
1845
1868
  ),
1846
- children: /* @__PURE__ */ jsx8(Gutter, { children: /* @__PURE__ */ jsx8(Outlet2, {}) })
1869
+ children: /* @__PURE__ */ jsx9(Gutter, { children: /* @__PURE__ */ jsx9(Outlet2, {}) })
1847
1870
  }
1848
1871
  )
1849
1872
  ] })
@@ -1864,10 +1887,10 @@ var NavigationBar = ({ loading }) => {
1864
1887
  clearTimeout(timeout);
1865
1888
  };
1866
1889
  }, [loading]);
1867
- return /* @__PURE__ */ jsx8("div", { className: "fixed inset-x-0 top-0 z-50 h-1", children: /* @__PURE__ */ jsx8(AnimatePresence, { children: showBar ? /* @__PURE__ */ jsx8(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 }) });
1868
1891
  };
1869
1892
  var Gutter = ({ children }) => {
1870
- return /* @__PURE__ */ jsx8("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 });
1871
1894
  };
1872
1895
  var Breadcrumbs = () => {
1873
1896
  const matches = useMatches();
@@ -1886,7 +1909,7 @@ var Breadcrumbs = () => {
1886
1909
  path: match.pathname
1887
1910
  };
1888
1911
  }).filter(Boolean);
1889
- return /* @__PURE__ */ jsx8(
1912
+ return /* @__PURE__ */ jsx9(
1890
1913
  "ol",
1891
1914
  {
1892
1915
  className: clx3(
@@ -1896,7 +1919,7 @@ var Breadcrumbs = () => {
1896
1919
  const isLast = index === crumbs.length - 1;
1897
1920
  const isSingle = crumbs.length === 1;
1898
1921
  return /* @__PURE__ */ jsxs4("li", { className: clx3("flex items-center"), children: [
1899
- !isLast ? /* @__PURE__ */ jsx8(
1922
+ !isLast ? /* @__PURE__ */ jsx9(
1900
1923
  Link,
1901
1924
  {
1902
1925
  className: "transition-fg hover:text-ui-fg-subtle",
@@ -1904,8 +1927,8 @@ var Breadcrumbs = () => {
1904
1927
  children: crumb.label
1905
1928
  }
1906
1929
  ) : /* @__PURE__ */ jsxs4("div", { children: [
1907
- !isSingle && /* @__PURE__ */ jsx8("span", { className: "block lg:hidden", children: "..." }),
1908
- /* @__PURE__ */ jsx8(
1930
+ !isSingle && /* @__PURE__ */ jsx9("span", { className: "block lg:hidden", children: "..." }),
1931
+ /* @__PURE__ */ jsx9(
1909
1932
  "span",
1910
1933
  {
1911
1934
  className: clx3({
@@ -1916,7 +1939,7 @@ var Breadcrumbs = () => {
1916
1939
  index
1917
1940
  )
1918
1941
  ] }),
1919
- !isLast && /* @__PURE__ */ jsx8("span", { className: "mx-2", children: /* @__PURE__ */ jsx8(TriangleRightMini, { className: "rtl:rotate-180" }) })
1942
+ !isLast && /* @__PURE__ */ jsx9("span", { className: "mx-2", children: /* @__PURE__ */ jsx9(TriangleRightMini, { className: "rtl:rotate-180" }) })
1920
1943
  ] }, index);
1921
1944
  })
1922
1945
  }
@@ -1925,7 +1948,7 @@ var Breadcrumbs = () => {
1925
1948
  var ToggleSidebar = () => {
1926
1949
  const { toggle, state } = useSidebar();
1927
1950
  return /* @__PURE__ */ jsxs4("div", { children: [
1928
- /* @__PURE__ */ jsx8(
1951
+ /* @__PURE__ */ jsx9(
1929
1952
  IconButton2,
1930
1953
  {
1931
1954
  className: "hidden lg:flex",
@@ -1933,17 +1956,17 @@ var ToggleSidebar = () => {
1933
1956
  onClick: () => toggle("desktop"),
1934
1957
  size: "small",
1935
1958
  "aria-expanded": state === "expanded",
1936
- children: /* @__PURE__ */ jsx8(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
1959
+ children: /* @__PURE__ */ jsx9(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
1937
1960
  }
1938
1961
  ),
1939
- /* @__PURE__ */ jsx8(
1962
+ /* @__PURE__ */ jsx9(
1940
1963
  IconButton2,
1941
1964
  {
1942
1965
  className: "hidden max-lg:flex",
1943
1966
  variant: "transparent",
1944
1967
  onClick: () => toggle("mobile"),
1945
1968
  size: "small",
1946
- children: /* @__PURE__ */ jsx8(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
1969
+ children: /* @__PURE__ */ jsx9(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
1947
1970
  }
1948
1971
  )
1949
1972
  ] });
@@ -1951,32 +1974,35 @@ var ToggleSidebar = () => {
1951
1974
  var Topbar = () => {
1952
1975
  return /* @__PURE__ */ jsxs4("div", { className: "grid w-full grid-cols-2 border-b p-3", children: [
1953
1976
  /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-1.5", children: [
1954
- /* @__PURE__ */ jsx8(ToggleSidebar, {}),
1955
- /* @__PURE__ */ jsx8(Breadcrumbs, {})
1977
+ /* @__PURE__ */ jsx9(ToggleSidebar, {}),
1978
+ /* @__PURE__ */ jsx9(Breadcrumbs, {})
1956
1979
  ] }),
1957
- /* @__PURE__ */ jsx8("div", { className: "flex items-center justify-end gap-x-3", children: /* @__PURE__ */ jsx8(WidgetZone, { id: "topbar" }) })
1980
+ /* @__PURE__ */ jsx9("div", { className: "flex items-center justify-end gap-x-3", children: /* @__PURE__ */ jsx9(WidgetZone, { id: "topbar" }) })
1958
1981
  ] });
1959
1982
  };
1960
- var DesktopSidebarContainer = ({ children }) => {
1983
+ var DesktopSidebarContainer = ({
1984
+ children,
1985
+ rail
1986
+ }) => {
1961
1987
  const { state } = useSidebar();
1962
- return /* @__PURE__ */ jsx8(
1988
+ return /* @__PURE__ */ jsx9(
1963
1989
  "div",
1964
1990
  {
1965
1991
  "data-state": state,
1966
1992
  className: clx3(
1967
1993
  "group/sidebar hidden h-screen w-[220px] shrink-0 overflow-x-hidden border-e lg:flex",
1968
1994
  "transition-[width] duration-200 ease-sidebar motion-reduce:transition-none",
1969
- "data-[state=collapsed]:w-[52px]"
1995
+ rail ? "data-[state=collapsed]:w-[52px]" : "data-[state=collapsed]:w-0 data-[state=collapsed]:border-e-0"
1970
1996
  ),
1971
- children
1997
+ children: rail ? children : /* @__PURE__ */ jsx9("div", { className: "flex w-[220px] shrink-0", children })
1972
1998
  }
1973
1999
  );
1974
2000
  };
1975
2001
  var MobileSidebarContainer = ({ children }) => {
1976
2002
  const { t: t2 } = useTranslation5();
1977
2003
  const { mobile, toggle } = useSidebar();
1978
- return /* @__PURE__ */ jsx8(RadixDialog2.Root, { open: mobile, onOpenChange: () => toggle("mobile"), children: /* @__PURE__ */ jsxs4(RadixDialog2.Portal, { children: [
1979
- /* @__PURE__ */ jsx8(
2004
+ return /* @__PURE__ */ jsx9(RadixDialog2.Root, { open: mobile, onOpenChange: () => toggle("mobile"), children: /* @__PURE__ */ jsxs4(RadixDialog2.Portal, { children: [
2005
+ /* @__PURE__ */ jsx9(
1980
2006
  RadixDialog2.Overlay,
1981
2007
  {
1982
2008
  className: clx3(
@@ -1994,17 +2020,17 @@ var MobileSidebarContainer = ({ children }) => {
1994
2020
  ),
1995
2021
  children: [
1996
2022
  /* @__PURE__ */ jsxs4("div", { className: "p-3", children: [
1997
- /* @__PURE__ */ jsx8(RadixDialog2.Close, { asChild: true, children: /* @__PURE__ */ jsx8(
2023
+ /* @__PURE__ */ jsx9(RadixDialog2.Close, { asChild: true, children: /* @__PURE__ */ jsx9(
1998
2024
  IconButton2,
1999
2025
  {
2000
2026
  size: "small",
2001
2027
  variant: "transparent",
2002
2028
  className: "text-ui-fg-subtle",
2003
- children: /* @__PURE__ */ jsx8(XMark, {})
2029
+ children: /* @__PURE__ */ jsx9(XMark, {})
2004
2030
  }
2005
2031
  ) }),
2006
- /* @__PURE__ */ jsx8(RadixDialog2.Title, { className: "sr-only", children: t2("app.nav.accessibility.title") }),
2007
- /* @__PURE__ */ jsx8(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") })
2008
2034
  ] }),
2009
2035
  children
2010
2036
  ]
@@ -2038,11 +2064,12 @@ import { Dialog as RadixDialog3 } from "radix-ui";
2038
2064
  import { useTranslation as useTranslation6 } from "react-i18next";
2039
2065
  import { useState as useState9 } from "react";
2040
2066
  import { Link as Link2, useLocation as useLocation4, useNavigate as useNavigate3 } from "react-router-dom";
2041
- import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
2067
+ import { jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
2042
2068
  var UserMenu = () => {
2043
2069
  const { t: t2 } = useTranslation6();
2044
2070
  const location = useLocation4();
2045
2071
  const direction = useDocumentDirection();
2072
+ const menuPlacement = useSidebarMenuPlacement("end");
2046
2073
  const [openMenu, setOpenMenu] = useState9(false);
2047
2074
  const [openModal, setOpenModal] = useState9(false);
2048
2075
  const toggleModal = () => {
@@ -2051,34 +2078,34 @@ var UserMenu = () => {
2051
2078
  };
2052
2079
  return /* @__PURE__ */ jsxs5("div", { "data-testid": "sidebar-user-menu", children: [
2053
2080
  /* @__PURE__ */ jsxs5(DropdownMenu2, { dir: direction, open: openMenu, onOpenChange: setOpenMenu, "data-testid": "sidebar-user-menu-dropdown", children: [
2054
- /* @__PURE__ */ jsx9(UserBadge, {}),
2055
- /* @__PURE__ */ jsxs5(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: [
2056
- /* @__PURE__ */ jsx9(UserItem, {}),
2057
- /* @__PURE__ */ jsx9(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-1" }),
2058
- /* @__PURE__ */ jsx9(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-profile-settings", children: /* @__PURE__ */ jsxs5(Link2, { to: "/settings/profile", state: { from: location.pathname }, children: [
2059
- /* @__PURE__ */ jsx9(UserIcon, { className: "text-ui-fg-subtle me-2" }),
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" }),
2060
2087
  t2("app.menus.user.profileSettings")
2061
2088
  ] }) }),
2062
- /* @__PURE__ */ jsx9(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-2" }),
2063
- /* @__PURE__ */ jsx9(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-documentation", children: /* @__PURE__ */ jsxs5(Link2, { to: "https://docs.mercurjs.com/welcome", target: "_blank", children: [
2064
- /* @__PURE__ */ jsx9(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" }),
2065
2092
  t2("app.menus.user.documentation")
2066
2093
  ] }) }),
2067
- /* @__PURE__ */ jsx9(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-changelog", children: /* @__PURE__ */ jsxs5(Link2, { to: "https://www.mercurjs.com/updates", target: "_blank", children: [
2068
- /* @__PURE__ */ jsx9(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" }),
2069
2096
  t2("app.menus.user.changelog")
2070
2097
  ] }) }),
2071
- /* @__PURE__ */ jsx9(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-3" }),
2098
+ /* @__PURE__ */ jsx10(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-3" }),
2072
2099
  /* @__PURE__ */ jsxs5(DropdownMenu2.Item, { onClick: toggleModal, "data-testid": "sidebar-user-menu-shortcuts", children: [
2073
- /* @__PURE__ */ jsx9(Keyboard, { className: "text-ui-fg-subtle me-2" }),
2100
+ /* @__PURE__ */ jsx10(Keyboard, { className: "text-ui-fg-subtle me-2" }),
2074
2101
  t2("app.menus.user.shortcuts")
2075
2102
  ] }),
2076
- /* @__PURE__ */ jsx9(ThemeToggle, {}),
2077
- /* @__PURE__ */ jsx9(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-4" }),
2078
- /* @__PURE__ */ jsx9(Logout, {})
2103
+ /* @__PURE__ */ jsx10(ThemeToggle, {}),
2104
+ /* @__PURE__ */ jsx10(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-4" }),
2105
+ /* @__PURE__ */ jsx10(Logout, {})
2079
2106
  ] })
2080
2107
  ] }),
2081
- /* @__PURE__ */ jsx9(GlobalKeybindsModal, { open: openModal, onOpenChange: setOpenModal })
2108
+ /* @__PURE__ */ jsx10(GlobalKeybindsModal, { open: openModal, onOpenChange: setOpenModal })
2082
2109
  ] });
2083
2110
  };
2084
2111
  var UserBadge = () => {
@@ -2088,14 +2115,14 @@ var UserBadge = () => {
2088
2115
  const fallback = displayName ? displayName[0].toUpperCase() : null;
2089
2116
  if (isPending) {
2090
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: [
2091
- /* @__PURE__ */ jsx9(Skeleton, { className: "h-5 w-5 rounded-full" }),
2092
- /* @__PURE__ */ jsx9(Skeleton, { className: "h-[9px] w-[70px]" })
2118
+ /* @__PURE__ */ jsx10(Skeleton, { className: "h-5 w-5 rounded-full" }),
2119
+ /* @__PURE__ */ jsx10(Skeleton, { className: "h-[9px] w-[70px]" })
2093
2120
  ] });
2094
2121
  }
2095
2122
  if (isError) {
2096
2123
  throw error;
2097
2124
  }
2098
- return /* @__PURE__ */ jsx9("div", { className: "p-3", "data-testid": "sidebar-user-menu-badge", children: /* @__PURE__ */ jsxs5(
2125
+ return /* @__PURE__ */ jsx10("div", { className: "p-3", "data-testid": "sidebar-user-menu-badge", children: /* @__PURE__ */ jsxs5(
2099
2126
  DropdownMenu2.Trigger,
2100
2127
  {
2101
2128
  disabled: !user,
@@ -2107,8 +2134,8 @@ var UserBadge = () => {
2107
2134
  ),
2108
2135
  "data-testid": "sidebar-user-menu-trigger",
2109
2136
  children: [
2110
- /* @__PURE__ */ jsx9("div", { className: "flex size-6 shrink-0 items-center justify-center", "data-testid": "sidebar-user-menu-avatar-container", children: fallback ? /* @__PURE__ */ jsx9(Avatar, { size: "xsmall", fallback, "data-testid": "sidebar-user-menu-avatar" }) : /* @__PURE__ */ jsx9(Skeleton, { className: "h-6 w-6 rounded-full" }) }),
2111
- /* @__PURE__ */ jsx9("div", { className: clx4("flex items-center overflow-hidden whitespace-nowrap", SIDEBAR_RAIL_FADE), "data-testid": "sidebar-user-menu-name-container", children: displayName ? /* @__PURE__ */ jsx9(
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(
2112
2139
  Text3,
2113
2140
  {
2114
2141
  size: "xsmall",
@@ -2118,8 +2145,8 @@ var UserBadge = () => {
2118
2145
  "data-testid": "sidebar-user-menu-name",
2119
2146
  children: displayName
2120
2147
  }
2121
- ) : /* @__PURE__ */ jsx9(Skeleton, { className: "h-[9px] w-[70px]" }) }),
2122
- /* @__PURE__ */ jsx9(EllipsisHorizontal, { className: clx4("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) })
2123
2150
  ]
2124
2151
  }
2125
2152
  ) });
@@ -2129,11 +2156,11 @@ var ThemeToggle = () => {
2129
2156
  const { theme, setTheme } = useTheme();
2130
2157
  return /* @__PURE__ */ jsxs5(DropdownMenu2.SubMenu, { "data-testid": "sidebar-user-menu-theme-toggle", children: [
2131
2158
  /* @__PURE__ */ jsxs5(DropdownMenu2.SubMenuTrigger, { dir: "ltr", className: "rounded-md rtl:rotate-180", "data-testid": "sidebar-user-menu-theme-trigger", children: [
2132
- /* @__PURE__ */ jsx9(CircleHalfSolid, { className: "text-ui-fg-subtle me-2" }),
2133
- /* @__PURE__ */ jsx9("span", { className: "rtl:rotate-180", children: t2("app.menus.user.theme.label") })
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") })
2134
2161
  ] }),
2135
- /* @__PURE__ */ jsx9(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: [
2136
- /* @__PURE__ */ jsx9(
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(
2137
2164
  DropdownMenu2.RadioItem,
2138
2165
  {
2139
2166
  value: "system",
@@ -2145,7 +2172,7 @@ var ThemeToggle = () => {
2145
2172
  children: t2("app.menus.user.theme.system")
2146
2173
  }
2147
2174
  ),
2148
- /* @__PURE__ */ jsx9(
2175
+ /* @__PURE__ */ jsx10(
2149
2176
  DropdownMenu2.RadioItem,
2150
2177
  {
2151
2178
  value: "light",
@@ -2157,7 +2184,7 @@ var ThemeToggle = () => {
2157
2184
  children: t2("app.menus.user.theme.light")
2158
2185
  }
2159
2186
  ),
2160
- /* @__PURE__ */ jsx9(
2187
+ /* @__PURE__ */ jsx10(
2161
2188
  DropdownMenu2.RadioItem,
2162
2189
  {
2163
2190
  value: "dark",
@@ -2184,9 +2211,9 @@ var Logout = () => {
2184
2211
  }
2185
2212
  });
2186
2213
  };
2187
- return /* @__PURE__ */ jsx9(DropdownMenu2.Item, { onClick: handleLogout, "data-testid": "sidebar-user-menu-logout", children: /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-2", children: [
2188
- /* @__PURE__ */ jsx9(OpenRectArrowOut, { className: "text-ui-fg-subtle" }),
2189
- /* @__PURE__ */ jsx9("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") })
2190
2217
  ] }) });
2191
2218
  };
2192
2219
  var GlobalKeybindsModal = (props) => {
@@ -2196,21 +2223,21 @@ var GlobalKeybindsModal = (props) => {
2196
2223
  const searchResults = searchValue ? globalShortcuts.filter((shortcut) => {
2197
2224
  return shortcut.label.toLowerCase().includes(searchValue?.toLowerCase());
2198
2225
  }) : globalShortcuts;
2199
- return /* @__PURE__ */ jsx9(RadixDialog3.Root, { ...props, "data-testid": "shortcuts-modal", children: /* @__PURE__ */ jsxs5(RadixDialog3.Portal, { children: [
2200
- /* @__PURE__ */ jsx9(RadixDialog3.Overlay, { className: "bg-ui-bg-overlay fixed inset-0", "data-testid": "shortcuts-modal-overlay" }),
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" }),
2201
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: [
2202
2229
  /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-y-3 px-6 py-4", "data-testid": "shortcuts-modal-header", children: [
2203
2230
  /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between", "data-testid": "shortcuts-modal-header-top", children: [
2204
2231
  /* @__PURE__ */ jsxs5("div", { "data-testid": "shortcuts-modal-title-container", children: [
2205
- /* @__PURE__ */ jsx9(RadixDialog3.Title, { asChild: true, children: /* @__PURE__ */ jsx9(Heading, { "data-testid": "shortcuts-modal-title", children: t2("app.menus.user.shortcuts") }) }),
2206
- /* @__PURE__ */ jsx9(RadixDialog3.Description, { className: "sr-only", "data-testid": "shortcuts-modal-description" })
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" })
2207
2234
  ] }),
2208
2235
  /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-2", "data-testid": "shortcuts-modal-close-container", children: [
2209
- /* @__PURE__ */ jsx9(Kbd3, { "data-testid": "shortcuts-modal-close-hint", children: "esc" }),
2210
- /* @__PURE__ */ jsx9(RadixDialog3.Close, { asChild: true, children: /* @__PURE__ */ jsx9(IconButton3, { variant: "transparent", size: "small", "data-testid": "shortcuts-modal-close-button", children: /* @__PURE__ */ jsx9(XMark2, {}) }) })
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, {}) }) })
2211
2238
  ] })
2212
2239
  ] }),
2213
- /* @__PURE__ */ jsx9("div", { "data-testid": "shortcuts-modal-search-container", children: /* @__PURE__ */ jsx9(
2240
+ /* @__PURE__ */ jsx10("div", { "data-testid": "shortcuts-modal-search-container", children: /* @__PURE__ */ jsx10(
2214
2241
  Input,
2215
2242
  {
2216
2243
  type: "search",
@@ -2220,18 +2247,18 @@ var GlobalKeybindsModal = (props) => {
2220
2247
  }
2221
2248
  ) })
2222
2249
  ] }),
2223
- /* @__PURE__ */ jsx9("div", { className: "flex flex-col divide-y overflow-y-auto", "data-testid": "shortcuts-modal-list", children: searchResults.map((shortcut, index) => {
2250
+ /* @__PURE__ */ jsx10("div", { className: "flex flex-col divide-y overflow-y-auto", "data-testid": "shortcuts-modal-list", children: searchResults.map((shortcut, index) => {
2224
2251
  return /* @__PURE__ */ jsxs5(
2225
2252
  "div",
2226
2253
  {
2227
2254
  className: "text-ui-fg-subtle flex items-center justify-between px-6 py-3",
2228
2255
  "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}`,
2229
2256
  children: [
2230
- /* @__PURE__ */ jsx9(Text3, { size: "small", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-label`, children: shortcut.label }),
2231
- /* @__PURE__ */ jsx9("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) => {
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) => {
2232
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: [
2233
- /* @__PURE__ */ jsx9(Kbd3, { "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-kbd-${index2}`, children: key }),
2234
- index2 < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx9("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") })
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") })
2235
2262
  ] }, index2);
2236
2263
  }) })
2237
2264
  ]
@@ -2246,7 +2273,7 @@ var UserItem = () => {
2246
2273
  const { user, isPending, isError, error } = useMe();
2247
2274
  const loaded = !isPending && !!user;
2248
2275
  if (!loaded) {
2249
- return /* @__PURE__ */ jsx9("div", {});
2276
+ return /* @__PURE__ */ jsx10("div", {});
2250
2277
  }
2251
2278
  const name = [user.first_name, user.last_name].filter(Boolean).join(" ");
2252
2279
  const email = user.email;
@@ -2256,7 +2283,7 @@ var UserItem = () => {
2256
2283
  throw error;
2257
2284
  }
2258
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: [
2259
- /* @__PURE__ */ jsx9(
2286
+ /* @__PURE__ */ jsx10(
2260
2287
  Avatar,
2261
2288
  {
2262
2289
  size: "small",
@@ -2267,7 +2294,7 @@ var UserItem = () => {
2267
2294
  }
2268
2295
  ),
2269
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: [
2270
- /* @__PURE__ */ jsx9(
2297
+ /* @__PURE__ */ jsx10(
2271
2298
  Text3,
2272
2299
  {
2273
2300
  size: "small",
@@ -2278,7 +2305,7 @@ var UserItem = () => {
2278
2305
  children: name || email
2279
2306
  }
2280
2307
  ),
2281
- !!name && /* @__PURE__ */ jsx9(
2308
+ !!name && /* @__PURE__ */ jsx10(
2282
2309
  Text3,
2283
2310
  {
2284
2311
  size: "xsmall",
@@ -2305,7 +2332,7 @@ import { ExclamationCircle } from "@medusajs/icons";
2305
2332
  import { Text as Text4 } from "@medusajs/ui";
2306
2333
  import { useTranslation as useTranslation7 } from "react-i18next";
2307
2334
  import { Navigate as Navigate2, useLocation as useLocation5, useRouteError } from "react-router-dom";
2308
- import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
2335
+ import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
2309
2336
  var ErrorBoundary = () => {
2310
2337
  const error = useRouteError();
2311
2338
  const location = useLocation5();
@@ -2313,7 +2340,7 @@ var ErrorBoundary = () => {
2313
2340
  let code = null;
2314
2341
  if (isClientError(error)) {
2315
2342
  if (error.status === 401) {
2316
- return /* @__PURE__ */ jsx10(Navigate2, { to: "/login", state: { from: location }, replace: true });
2343
+ return /* @__PURE__ */ jsx11(Navigate2, { to: "/login", state: { from: location }, replace: true });
2317
2344
  }
2318
2345
  code = error.status ?? null;
2319
2346
  }
@@ -2340,11 +2367,11 @@ var ErrorBoundary = () => {
2340
2367
  message = t2("errorBoundary.defaultMessage");
2341
2368
  break;
2342
2369
  }
2343
- return /* @__PURE__ */ jsx10("div", { className: "flex size-full min-h-[calc(100vh-57px-24px)] items-center justify-center", children: /* @__PURE__ */ jsx10("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: [
2344
- /* @__PURE__ */ jsx10(ExclamationCircle, {}),
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, {}),
2345
2372
  /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
2346
- /* @__PURE__ */ jsx10(Text4, { size: "small", leading: "compact", weight: "plus", children: title }),
2347
- /* @__PURE__ */ jsx10(
2373
+ /* @__PURE__ */ jsx11(Text4, { size: "small", leading: "compact", weight: "plus", children: title }),
2374
+ /* @__PURE__ */ jsx11(
2348
2375
  Text4,
2349
2376
  {
2350
2377
  size: "small",
@@ -2513,42 +2540,42 @@ var getNestedMenuItems = (menuItems, parentPath) => {
2513
2540
 
2514
2541
  // src/lib/permissions/route-permissions.ts
2515
2542
  var ROUTE_PERMISSIONS = {
2516
- "/orders": "order:read",
2517
- "/products": "product:read",
2518
- "/offers": "offer:read",
2519
- "/collections": "product_collection:read",
2520
- "/categories": "product_category:read",
2521
- "/inventory": "inventory_item:read",
2522
- "/reservations": "reservation_item:read",
2523
- "/customers": "customer:read",
2524
- "/customer-groups": "customer_group:read",
2525
- "/promotions": "promotion:read",
2526
- "/campaigns": "campaign:read",
2527
- "/price-lists": "price_list:read",
2528
- "/stores": "seller:read",
2529
- "/reviews": "review:read",
2530
- "/payouts": "payout:read",
2531
- "/settings/regions": "region:read",
2532
- "/settings/marketplace": "store:read",
2533
- "/settings/commissions": "commission_rate:read",
2534
- "/settings/users": "user:read",
2535
- "/settings/sales-channels": "sales_channel:read",
2536
- "/settings/locations": "stock_location:read",
2537
- "/settings/product-tags": "product_tag:read",
2538
- "/settings/product-types": "product_type:read",
2539
- "/settings/attributes": "product_attribute:read",
2540
- "/settings/shipping-profiles": "shipping_profile:read",
2541
- "/settings/shipping-option-types": "shipping_option_type:read",
2542
- "/settings/return-reasons": "return_reason:read",
2543
- "/settings/refund-reasons": "refund_reason:read",
2544
- "/settings/tax-regions": "tax_region:read",
2545
- "/settings/publishable-api-keys": "api_key:read",
2546
- "/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"
2547
2574
  };
2548
2575
  var getRoutePermission = (path) => ROUTE_PERMISSIONS[path];
2549
2576
 
2550
2577
  // src/components/layout/main-layout/main-layout.tsx
2551
- import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
2578
+ import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
2552
2579
  var navId = (to) => to.replace(/^\//, "");
2553
2580
  var toCoreNavItem = (route) => ({
2554
2581
  id: navId(route.to),
@@ -2562,7 +2589,7 @@ var toCoreNavItem = (route) => ({
2562
2589
  }))
2563
2590
  });
2564
2591
  var MainLayout = () => {
2565
- return /* @__PURE__ */ jsx11(Shell, { children: /* @__PURE__ */ jsx11(MainSidebar, {}) });
2592
+ return /* @__PURE__ */ jsx12(Shell, { children: /* @__PURE__ */ jsx12(MainSidebar, {}) });
2566
2593
  };
2567
2594
  var allMenuItems = menuItemsModule.menuItems ?? [];
2568
2595
  var addNestedItems = (to, menuItems, items) => {
@@ -2605,11 +2632,11 @@ var MainSidebar = () => {
2605
2632
  const customRoutesWithNested = customMenuItems.sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0)).map((item) => ({
2606
2633
  label: item.label,
2607
2634
  to: item.path,
2608
- icon: item.icon ? /* @__PURE__ */ jsx11(item.icon, {}) : void 0,
2635
+ icon: item.icon ? /* @__PURE__ */ jsx12(item.icon, {}) : void 0,
2609
2636
  translationNs: item.translationNs,
2610
2637
  items: addNestedItems(item.path, visibleMenuItems)
2611
2638
  }));
2612
- return /* @__PURE__ */ jsx11(
2639
+ return /* @__PURE__ */ jsx12(
2613
2640
  "aside",
2614
2641
  {
2615
2642
  className: "flex flex-1 flex-col justify-between overflow-y-auto overflow-x-hidden",
@@ -2621,34 +2648,34 @@ var MainSidebar = () => {
2621
2648
  className: "sticky top-0 bg-ui-bg-subtle",
2622
2649
  "data-testid": "sidebar-header-section",
2623
2650
  children: [
2624
- /* @__PURE__ */ jsx11(Header, {}),
2625
- /* @__PURE__ */ jsx11("div", { className: "px-3", children: /* @__PURE__ */ jsx11(Divider, { variant: "dashed" }) })
2651
+ /* @__PURE__ */ jsx12(Header, {}),
2652
+ /* @__PURE__ */ jsx12("div", { className: "px-3", children: /* @__PURE__ */ jsx12(Divider, { variant: "dashed" }) })
2626
2653
  ]
2627
2654
  }
2628
2655
  ),
2629
2656
  /* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col justify-between", children: [
2630
- /* @__PURE__ */ jsx11("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ jsxs7(
2657
+ /* @__PURE__ */ jsx12("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ jsxs7(
2631
2658
  "nav",
2632
2659
  {
2633
2660
  className: "flex flex-col gap-y-1 py-3",
2634
2661
  "data-testid": "sidebar-core-routes",
2635
2662
  children: [
2636
- /* @__PURE__ */ jsx11(Searchbar, {}),
2663
+ /* @__PURE__ */ jsx12(Searchbar, {}),
2637
2664
  routesWithNested.map((route) => {
2638
- return /* @__PURE__ */ jsx11(NavItem, { ...route }, route.to);
2665
+ return /* @__PURE__ */ jsx12(NavItem, { ...route }, route.to);
2639
2666
  }),
2640
- customRoutesWithNested.map((route) => /* @__PURE__ */ jsx11(NavItem, { ...route }, route.to))
2667
+ customRoutesWithNested.map((route) => /* @__PURE__ */ jsx12(NavItem, { ...route }, route.to))
2641
2668
  ]
2642
2669
  }
2643
2670
  ) }),
2644
- /* @__PURE__ */ jsx11(UtilitySection, {})
2671
+ /* @__PURE__ */ jsx12(UtilitySection, {})
2645
2672
  ] }),
2646
- /* @__PURE__ */ jsx11(
2673
+ /* @__PURE__ */ jsx12(
2647
2674
  "div",
2648
2675
  {
2649
2676
  className: "sticky bottom-0 bg-ui-bg-subtle",
2650
2677
  "data-testid": "sidebar-user-section",
2651
- children: /* @__PURE__ */ jsx11(UserSection, {})
2678
+ children: /* @__PURE__ */ jsx12(UserSection, {})
2652
2679
  }
2653
2680
  )
2654
2681
  ] })
@@ -2667,14 +2694,14 @@ var Logout2 = () => {
2667
2694
  }
2668
2695
  });
2669
2696
  };
2670
- return /* @__PURE__ */ jsx11(
2697
+ return /* @__PURE__ */ jsx12(
2671
2698
  DropdownMenu3.Item,
2672
2699
  {
2673
2700
  onClick: handleLogout,
2674
2701
  "data-testid": "sidebar-header-dropdown-logout",
2675
2702
  children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-2", children: [
2676
- /* @__PURE__ */ jsx11(OpenRectArrowOut2, { className: "text-ui-fg-subtle" }),
2677
- /* @__PURE__ */ jsx11("span", { children: t2("app.menus.actions.logout") })
2703
+ /* @__PURE__ */ jsx12(OpenRectArrowOut2, { className: "text-ui-fg-subtle" }),
2704
+ /* @__PURE__ */ jsx12("span", { children: t2("app.menus.actions.logout") })
2678
2705
  ] })
2679
2706
  }
2680
2707
  );
@@ -2683,13 +2710,14 @@ var Header = () => {
2683
2710
  const { t: t2 } = useTranslation8();
2684
2711
  const { store, isPending, isError, error } = useStore();
2685
2712
  const direction = useDocumentDirection();
2713
+ const menuPlacement = useSidebarMenuPlacement("start");
2686
2714
  const name = store?.name;
2687
2715
  const fallback = store?.name?.slice(0, 1).toUpperCase();
2688
2716
  const isLoaded = !isPending && !!store && !!name && !!fallback;
2689
2717
  if (isError) {
2690
2718
  throw error;
2691
2719
  }
2692
- return /* @__PURE__ */ jsx11("div", { className: "w-full p-3", "data-testid": "sidebar-header-dropdown", children: /* @__PURE__ */ jsxs7(DropdownMenu3, { dir: direction, "data-testid": "sidebar-header-dropdown-menu", children: [
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: [
2693
2721
  /* @__PURE__ */ jsxs7(
2694
2722
  DropdownMenu3.Trigger,
2695
2723
  {
@@ -2702,7 +2730,7 @@ var Header = () => {
2702
2730
  ),
2703
2731
  "data-testid": "sidebar-header-dropdown-trigger",
2704
2732
  children: [
2705
- fallback ? /* @__PURE__ */ jsx11(
2733
+ fallback ? /* @__PURE__ */ jsx12(
2706
2734
  Avatar2,
2707
2735
  {
2708
2736
  variant: "squared",
@@ -2710,13 +2738,13 @@ var Header = () => {
2710
2738
  fallback,
2711
2739
  "data-testid": "sidebar-header-dropdown-avatar"
2712
2740
  }
2713
- ) : /* @__PURE__ */ jsx11(Skeleton, { className: "h-6 w-6 rounded-md" }),
2714
- /* @__PURE__ */ jsx11(
2741
+ ) : /* @__PURE__ */ jsx12(Skeleton, { className: "h-6 w-6 rounded-md" }),
2742
+ /* @__PURE__ */ jsx12(
2715
2743
  "div",
2716
2744
  {
2717
2745
  className: clx5("block overflow-hidden whitespace-nowrap text-start", SIDEBAR_RAIL_FADE),
2718
2746
  "data-testid": "sidebar-header-dropdown-store-name",
2719
- children: name ? /* @__PURE__ */ jsx11(
2747
+ children: name ? /* @__PURE__ */ jsx12(
2720
2748
  Text5,
2721
2749
  {
2722
2750
  size: "small",
@@ -2725,17 +2753,18 @@ var Header = () => {
2725
2753
  className: "truncate",
2726
2754
  children: store.name
2727
2755
  }
2728
- ) : /* @__PURE__ */ jsx11(Skeleton, { className: "h-[9px] w-[120px]" })
2756
+ ) : /* @__PURE__ */ jsx12(Skeleton, { className: "h-[9px] w-[120px]" })
2729
2757
  }
2730
2758
  ),
2731
- /* @__PURE__ */ jsx11(EllipsisHorizontal2, { className: clx5("text-ui-fg-muted", SIDEBAR_RAIL_FADE) })
2759
+ /* @__PURE__ */ jsx12(EllipsisHorizontal2, { className: clx5("text-ui-fg-muted", SIDEBAR_RAIL_FADE) })
2732
2760
  ]
2733
2761
  }
2734
2762
  ),
2735
2763
  isLoaded && /* @__PURE__ */ jsxs7(
2736
2764
  DropdownMenu3.Content,
2737
2765
  {
2738
- className: "w-[var(--radix-dropdown-menu-trigger-width)] min-w-0",
2766
+ ...menuPlacement,
2767
+ className: SIDEBAR_MENU_CONTENT,
2739
2768
  "data-testid": "sidebar-header-dropdown-content",
2740
2769
  children: [
2741
2770
  /* @__PURE__ */ jsxs7(
@@ -2744,7 +2773,7 @@ var Header = () => {
2744
2773
  className: "flex items-center gap-x-3 px-2 py-1",
2745
2774
  "data-testid": "sidebar-header-dropdown-user-info",
2746
2775
  children: [
2747
- /* @__PURE__ */ jsx11(
2776
+ /* @__PURE__ */ jsx12(
2748
2777
  Avatar2,
2749
2778
  {
2750
2779
  variant: "squared",
@@ -2759,7 +2788,7 @@ var Header = () => {
2759
2788
  className: "flex flex-col overflow-hidden",
2760
2789
  "data-testid": "sidebar-header-dropdown-user-details",
2761
2790
  children: [
2762
- /* @__PURE__ */ jsx11(
2791
+ /* @__PURE__ */ jsx12(
2763
2792
  Text5,
2764
2793
  {
2765
2794
  size: "small",
@@ -2770,7 +2799,7 @@ var Header = () => {
2770
2799
  children: name
2771
2800
  }
2772
2801
  ),
2773
- /* @__PURE__ */ jsx11(
2802
+ /* @__PURE__ */ jsx12(
2774
2803
  Text5,
2775
2804
  {
2776
2805
  size: "xsmall",
@@ -2786,21 +2815,21 @@ var Header = () => {
2786
2815
  ]
2787
2816
  }
2788
2817
  ),
2789
- /* @__PURE__ */ jsx11(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-1" }),
2790
- /* @__PURE__ */ jsx11(
2818
+ /* @__PURE__ */ jsx12(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-1" }),
2819
+ /* @__PURE__ */ jsx12(
2791
2820
  DropdownMenu3.Item,
2792
2821
  {
2793
2822
  className: "gap-x-2",
2794
2823
  asChild: true,
2795
2824
  "data-testid": "sidebar-header-dropdown-store-settings",
2796
2825
  children: /* @__PURE__ */ jsxs7(Link3, { to: "/settings/marketplace", children: [
2797
- /* @__PURE__ */ jsx11(BuildingStorefront, { className: "text-ui-fg-subtle" }),
2826
+ /* @__PURE__ */ jsx12(BuildingStorefront, { className: "text-ui-fg-subtle" }),
2798
2827
  t2("app.nav.main.marketplaceSettings")
2799
2828
  ] })
2800
2829
  }
2801
2830
  ),
2802
- /* @__PURE__ */ jsx11(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-2" }),
2803
- /* @__PURE__ */ jsx11(Logout2, {})
2831
+ /* @__PURE__ */ jsx12(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-2" }),
2832
+ /* @__PURE__ */ jsx12(Logout2, {})
2804
2833
  ]
2805
2834
  }
2806
2835
  )
@@ -2810,7 +2839,7 @@ var useCoreRoutes = () => {
2810
2839
  const { t: t2 } = useTranslation8();
2811
2840
  return [
2812
2841
  {
2813
- icon: /* @__PURE__ */ jsx11(ShoppingCart, {}),
2842
+ icon: /* @__PURE__ */ jsx12(ShoppingCart, {}),
2814
2843
  label: t2("orders.domain"),
2815
2844
  to: "/orders",
2816
2845
  items: [
@@ -2822,7 +2851,7 @@ var useCoreRoutes = () => {
2822
2851
  ]
2823
2852
  },
2824
2853
  {
2825
- icon: /* @__PURE__ */ jsx11(Tag, {}),
2854
+ icon: /* @__PURE__ */ jsx12(Tag, {}),
2826
2855
  label: t2("products.domain"),
2827
2856
  to: "/products",
2828
2857
  items: [
@@ -2846,7 +2875,7 @@ var useCoreRoutes = () => {
2846
2875
  ]
2847
2876
  },
2848
2877
  {
2849
- icon: /* @__PURE__ */ jsx11(Buildings, {}),
2878
+ icon: /* @__PURE__ */ jsx12(Buildings, {}),
2850
2879
  label: t2("inventory.domain"),
2851
2880
  to: "/inventory",
2852
2881
  items: [
@@ -2857,7 +2886,7 @@ var useCoreRoutes = () => {
2857
2886
  ]
2858
2887
  },
2859
2888
  {
2860
- icon: /* @__PURE__ */ jsx11(Users, {}),
2889
+ icon: /* @__PURE__ */ jsx12(Users, {}),
2861
2890
  label: t2("customers.domain"),
2862
2891
  to: "/customers",
2863
2892
  items: [
@@ -2868,7 +2897,7 @@ var useCoreRoutes = () => {
2868
2897
  ]
2869
2898
  },
2870
2899
  {
2871
- icon: /* @__PURE__ */ jsx11(ReceiptPercent, {}),
2900
+ icon: /* @__PURE__ */ jsx12(ReceiptPercent, {}),
2872
2901
  label: t2("promotions.domain"),
2873
2902
  to: "/promotions",
2874
2903
  items: [
@@ -2879,12 +2908,12 @@ var useCoreRoutes = () => {
2879
2908
  ]
2880
2909
  },
2881
2910
  {
2882
- icon: /* @__PURE__ */ jsx11(CurrencyDollar, {}),
2911
+ icon: /* @__PURE__ */ jsx12(CurrencyDollar, {}),
2883
2912
  label: t2("priceLists.domain"),
2884
2913
  to: "/price-lists"
2885
2914
  },
2886
2915
  {
2887
- icon: /* @__PURE__ */ jsx11(BuildingStorefront, {}),
2916
+ icon: /* @__PURE__ */ jsx12(BuildingStorefront, {}),
2888
2917
  label: t2("stores.domain"),
2889
2918
  to: "/stores",
2890
2919
  items: [
@@ -2895,7 +2924,7 @@ var useCoreRoutes = () => {
2895
2924
  ]
2896
2925
  },
2897
2926
  {
2898
- icon: /* @__PURE__ */ jsx11(CreditCardRefresh, {}),
2927
+ icon: /* @__PURE__ */ jsx12(CreditCardRefresh, {}),
2899
2928
  label: t2("payouts.domain"),
2900
2929
  to: "/payouts"
2901
2930
  }
@@ -2904,7 +2933,7 @@ var useCoreRoutes = () => {
2904
2933
  var Searchbar = () => {
2905
2934
  const { t: t2 } = useTranslation8();
2906
2935
  const { toggleSearch } = useSearch();
2907
- return /* @__PURE__ */ jsx11("div", { className: "px-3", "data-testid": "sidebar-search", children: /* @__PURE__ */ jsxs7(
2936
+ return /* @__PURE__ */ jsx12("div", { className: "px-3", "data-testid": "sidebar-search", children: /* @__PURE__ */ jsxs7(
2908
2937
  "button",
2909
2938
  {
2910
2939
  onClick: toggleSearch,
@@ -2915,9 +2944,9 @@ var Searchbar = () => {
2915
2944
  ),
2916
2945
  "data-testid": "sidebar-search-button",
2917
2946
  children: [
2918
- /* @__PURE__ */ jsx11(MagnifyingGlass2, { className: "shrink-0" }),
2919
- /* @__PURE__ */ jsx11("div", { className: clx5("flex-1 whitespace-nowrap text-start", SIDEBAR_RAIL_FADE), children: /* @__PURE__ */ jsx11(Text5, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.label") }) }),
2920
- /* @__PURE__ */ jsx11(Text5, { size: "small", leading: "compact", className: clx5("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" })
2921
2950
  ]
2922
2951
  }
2923
2952
  ) });
@@ -2925,28 +2954,28 @@ var Searchbar = () => {
2925
2954
  var UtilitySection = () => {
2926
2955
  const location = useLocation6();
2927
2956
  const { t: t2 } = useTranslation8();
2928
- return /* @__PURE__ */ jsx11("div", { className: "flex flex-col gap-y-0.5 py-3", children: /* @__PURE__ */ jsx11(
2957
+ return /* @__PURE__ */ jsx12("div", { className: "flex flex-col gap-y-0.5 py-3", children: /* @__PURE__ */ jsx12(
2929
2958
  NavItem,
2930
2959
  {
2931
2960
  label: t2("app.nav.settings.header"),
2932
2961
  to: "/settings",
2933
2962
  from: location.pathname,
2934
- icon: /* @__PURE__ */ jsx11(CogSixTooth, {})
2963
+ icon: /* @__PURE__ */ jsx12(CogSixTooth, {})
2935
2964
  }
2936
2965
  ) });
2937
2966
  };
2938
2967
  var UserSection = () => {
2939
2968
  return /* @__PURE__ */ jsxs7("div", { children: [
2940
- /* @__PURE__ */ jsx11("div", { className: "px-3", children: /* @__PURE__ */ jsx11(Divider, { variant: "dashed" }) }),
2941
- /* @__PURE__ */ jsx11(UserMenu, {})
2969
+ /* @__PURE__ */ jsx12("div", { className: "px-3", children: /* @__PURE__ */ jsx12(Divider, { variant: "dashed" }) }),
2970
+ /* @__PURE__ */ jsx12(UserMenu, {})
2942
2971
  ] });
2943
2972
  };
2944
2973
 
2945
2974
  // src/components/layout/public-layout/public-layout.tsx
2946
2975
  import { Outlet as Outlet3 } from "react-router-dom";
2947
- import { jsx as jsx12 } from "react/jsx-runtime";
2976
+ import { jsx as jsx13 } from "react/jsx-runtime";
2948
2977
  var PublicLayout = () => {
2949
- return /* @__PURE__ */ jsx12(Outlet3, {});
2978
+ return /* @__PURE__ */ jsx13(Outlet3, {});
2950
2979
  };
2951
2980
 
2952
2981
  // src/components/layout/settings-layout/settings-layout.tsx
@@ -2958,9 +2987,10 @@ import { useTranslation as useTranslation9 } from "react-i18next";
2958
2987
  import { Link as Link4, useLocation as useLocation7 } from "react-router-dom";
2959
2988
  import menuItemsModule2 from "virtual:mercur/menu-items";
2960
2989
  import { usePermissions as usePermissions2 } from "@mercurjs/dashboard-shared";
2961
- import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
2990
+ import { jsx as jsx14, jsxs as jsxs8 } from "react/jsx-runtime";
2962
2991
  var SettingsLayout = () => {
2963
- return /* @__PURE__ */ jsx13(Shell, { children: /* @__PURE__ */ jsx13(SettingsSidebar, {}) });
2992
+ useExpandedSidebar();
2993
+ return /* @__PURE__ */ jsx14(Shell, { rail: false, children: /* @__PURE__ */ jsx14(SettingsSidebar, {}) });
2964
2994
  };
2965
2995
  var allMenuItems2 = menuItemsModule2.menuItems ?? [];
2966
2996
  var useExtensionNavItems = () => {
@@ -3084,28 +3114,28 @@ var SettingsSidebar = () => {
3084
3114
  const { t: t2 } = useTranslation9();
3085
3115
  return /* @__PURE__ */ jsxs8("aside", { className: "relative flex flex-1 flex-col justify-between overflow-y-auto", children: [
3086
3116
  /* @__PURE__ */ jsxs8("div", { className: "sticky top-0 bg-ui-bg-subtle", children: [
3087
- /* @__PURE__ */ jsx13(Header2, {}),
3088
- /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx13(Divider2, { variant: "dashed" }) })
3117
+ /* @__PURE__ */ jsx14(Header2, {}),
3118
+ /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) })
3089
3119
  ] }),
3090
3120
  /* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col", children: [
3091
3121
  /* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col overflow-y-auto", children: [
3092
- /* @__PURE__ */ jsx13(
3122
+ /* @__PURE__ */ jsx14(
3093
3123
  RadixCollapsibleSection,
3094
3124
  {
3095
3125
  label: t2("app.nav.settings.general"),
3096
3126
  items: routes
3097
3127
  }
3098
3128
  ),
3099
- /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx13(Divider2, { variant: "dashed" }) }),
3100
- /* @__PURE__ */ jsx13(
3129
+ /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) }),
3130
+ /* @__PURE__ */ jsx14(
3101
3131
  RadixCollapsibleSection,
3102
3132
  {
3103
3133
  label: t2("app.nav.settings.developer"),
3104
3134
  items: developerRoutes
3105
3135
  }
3106
3136
  ),
3107
- /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx13(Divider2, { variant: "dashed" }) }),
3108
- /* @__PURE__ */ jsx13(
3137
+ /* @__PURE__ */ jsx14("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) }),
3138
+ /* @__PURE__ */ jsx14(
3109
3139
  RadixCollapsibleSection,
3110
3140
  {
3111
3141
  label: t2("app.nav.settings.myAccount"),
@@ -3113,7 +3143,7 @@ var SettingsSidebar = () => {
3113
3143
  }
3114
3144
  )
3115
3145
  ] }),
3116
- /* @__PURE__ */ jsx13("div", { className: "sticky bottom-0 bg-ui-bg-subtle", children: /* @__PURE__ */ jsx13(UserSection2, {}) })
3146
+ /* @__PURE__ */ jsx14("div", { className: "sticky bottom-0 bg-ui-bg-subtle", children: /* @__PURE__ */ jsx14(UserSection2, {}) })
3117
3147
  ] })
3118
3148
  ] });
3119
3149
  };
@@ -3126,7 +3156,7 @@ var Header2 = () => {
3126
3156
  setFrom(getSafeFromValue(location.state.from));
3127
3157
  }
3128
3158
  }, [location]);
3129
- return /* @__PURE__ */ jsx13("div", { className: "bg-ui-bg-subtle p-3", children: /* @__PURE__ */ jsx13(
3159
+ return /* @__PURE__ */ jsx14("div", { className: "bg-ui-bg-subtle p-3", children: /* @__PURE__ */ jsx14(
3130
3160
  Link4,
3131
3161
  {
3132
3162
  to: from,
@@ -3137,8 +3167,8 @@ var Header2 = () => {
3137
3167
  "focus-visible:shadow-borders-focus"
3138
3168
  ),
3139
3169
  children: /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-x-2.5 px-2 py-1", children: [
3140
- /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx13(ArrowUturnLeft2, { className: "text-ui-fg-subtle" }) }),
3141
- /* @__PURE__ */ jsx13(Text6, { leading: "compact", weight: "plus", size: "small", children: t2("app.nav.settings.header") })
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") })
3142
3172
  ] })
3143
3173
  }
3144
3174
  ) });
@@ -3148,23 +3178,23 @@ var RadixCollapsibleSection = ({
3148
3178
  items
3149
3179
  }) => {
3150
3180
  return /* @__PURE__ */ jsxs8(RadixCollapsible2.Root, { defaultOpen: true, className: "py-3", children: [
3151
- /* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsxs8("div", { className: "flex h-7 items-center justify-between px-2 text-ui-fg-muted", children: [
3152
- /* @__PURE__ */ jsx13(Text6, { size: "small", leading: "compact", children: label }),
3153
- /* @__PURE__ */ jsx13(RadixCollapsible2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx13(IconButton4, { size: "2xsmall", variant: "transparent", className: "static", children: /* @__PURE__ */ jsx13(MinusMini, { className: "text-ui-fg-muted" }) }) })
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" }) }) })
3154
3184
  ] }) }),
3155
- /* @__PURE__ */ jsx13(RadixCollapsible2.Content, { children: /* @__PURE__ */ jsx13("div", { className: "pt-0.5", children: /* @__PURE__ */ jsx13("nav", { className: "flex flex-col gap-y-0.5", children: items.map((setting) => /* @__PURE__ */ jsx13(NavItem, { type: "setting", ...setting }, setting.to)) }) }) })
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)) }) }) })
3156
3186
  ] });
3157
3187
  };
3158
3188
  var UserSection2 = () => {
3159
3189
  return /* @__PURE__ */ jsxs8("div", { children: [
3160
- /* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsx13(Divider2, { variant: "dashed" }) }),
3161
- /* @__PURE__ */ jsx13(UserMenu, {})
3190
+ /* @__PURE__ */ jsx14("div", { className: "px-3", children: /* @__PURE__ */ jsx14(Divider2, { variant: "dashed" }) }),
3191
+ /* @__PURE__ */ jsx14(UserMenu, {})
3162
3192
  ] });
3163
3193
  };
3164
3194
 
3165
3195
  // src/get-route-map.tsx
3166
3196
  import { RoutePermissionGuard } from "@mercurjs/dashboard-shared";
3167
- import { jsx as jsx14 } from "react/jsx-runtime";
3197
+ import { jsx as jsx15 } from "react/jsx-runtime";
3168
3198
  function mergeRoutes(baseRoutes, customRoutes2) {
3169
3199
  const result = baseRoutes.map((route) => ({ ...route }));
3170
3200
  for (const customRoute of customRoutes2) {
@@ -3198,40 +3228,40 @@ function getRouteMap({
3198
3228
  }) {
3199
3229
  return [
3200
3230
  {
3201
- element: /* @__PURE__ */ jsx14(ProtectedRoute, {}),
3202
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3231
+ element: /* @__PURE__ */ jsx15(ProtectedRoute, {}),
3232
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3203
3233
  children: [
3204
3234
  {
3205
- element: /* @__PURE__ */ jsx14(MainLayout, {}),
3235
+ element: /* @__PURE__ */ jsx15(MainLayout, {}),
3206
3236
  children: [
3207
3237
  {
3208
3238
  // Pathless wrapper so every route below — including extension
3209
3239
  // routes merged in from virtual:mercur/routes — is enforced
3210
3240
  // without each one wiring its own guard element.
3211
- element: /* @__PURE__ */ jsx14(RoutePermissionGuard, {}),
3241
+ element: /* @__PURE__ */ jsx15(RoutePermissionGuard, {}),
3212
3242
  children: mergeRoutes(
3213
3243
  [
3214
3244
  {
3215
3245
  path: "/",
3216
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3246
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3217
3247
  lazy: () => import("./home-I3OILW5Z.js")
3218
3248
  },
3219
3249
  {
3220
3250
  path: "/products",
3221
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3251
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3222
3252
  handle: {
3223
3253
  breadcrumb: () => t("products.domain"),
3224
- permissions: "product:read"
3254
+ permissions: "products:view"
3225
3255
  },
3226
3256
  children: [
3227
3257
  {
3228
3258
  path: "",
3229
- lazy: () => import("./product-list-O35LY6T7.js"),
3259
+ lazy: () => import("./product-list-SYMPZR6W.js"),
3230
3260
  children: [
3231
3261
  {
3232
3262
  path: "create",
3233
- handle: { permissions: "product:create" },
3234
- lazy: () => import("./product-create-P7F2RZPS.js")
3263
+ handle: { permissions: "products:edit" },
3264
+ lazy: () => import("./product-create-NVAKRIPS.js")
3235
3265
  },
3236
3266
  {
3237
3267
  path: "bulk-edit",
@@ -3241,30 +3271,30 @@ function getRouteMap({
3241
3271
  },
3242
3272
  {
3243
3273
  path: ":id",
3244
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3274
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3245
3275
  lazy: async () => {
3246
- const { Breadcrumb, loader } = await import("./product-detail-G6HRH4ND.js");
3276
+ const { Breadcrumb, loader } = await import("./product-detail-DZRYNPRT.js");
3247
3277
  return {
3248
3278
  Component: Outlet4,
3249
3279
  loader,
3250
3280
  handle: {
3251
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3281
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3252
3282
  }
3253
3283
  };
3254
3284
  },
3255
3285
  children: [
3256
3286
  {
3257
3287
  path: "",
3258
- lazy: () => import("./product-detail-G6HRH4ND.js"),
3288
+ lazy: () => import("./product-detail-DZRYNPRT.js"),
3259
3289
  children: [
3260
3290
  {
3261
3291
  path: "edit",
3262
- handle: { permissions: "product:update" },
3263
- lazy: () => import("./product-edit-2CMVTDWT.js")
3292
+ handle: { permissions: "products:edit" },
3293
+ lazy: () => import("./product-edit-TAVV5CWR.js")
3264
3294
  },
3265
3295
  {
3266
3296
  path: "edit-variant",
3267
- lazy: () => import("./product-variant-edit-Y4BJFQTK.js")
3297
+ lazy: () => import("./product-variant-edit-UC34WTO7.js")
3268
3298
  },
3269
3299
  {
3270
3300
  path: "sales-channels",
@@ -3276,11 +3306,11 @@ function getRouteMap({
3276
3306
  },
3277
3307
  {
3278
3308
  path: "attributes/create",
3279
- lazy: () => import("./product-create-attribute-QYRCPUFC.js")
3309
+ lazy: () => import("./product-create-attribute-KAICRW2S.js")
3280
3310
  },
3281
3311
  {
3282
3312
  path: "attributes/add",
3283
- lazy: () => import("./product-add-existing-attributes-5XGJZSIY.js")
3313
+ lazy: () => import("./product-add-existing-attributes-VWM3LNIO.js")
3284
3314
  },
3285
3315
  {
3286
3316
  path: "attributes/:attribute_id/edit",
@@ -3288,7 +3318,7 @@ function getRouteMap({
3288
3318
  },
3289
3319
  {
3290
3320
  path: "organization",
3291
- lazy: () => import("./product-organization-VXTSCBHU.js")
3321
+ lazy: () => import("./product-organization-3PIQ4IY2.js")
3292
3322
  },
3293
3323
  {
3294
3324
  path: "shipping-profile",
@@ -3296,43 +3326,43 @@ function getRouteMap({
3296
3326
  },
3297
3327
  {
3298
3328
  path: "media",
3299
- lazy: () => import("./product-media-3ERT2APJ.js")
3329
+ lazy: () => import("./product-media-6XS74AU3.js")
3300
3330
  },
3301
3331
  {
3302
3332
  path: "variants/create",
3303
- lazy: () => import("./product-create-variant-MZLHG5JF.js")
3333
+ lazy: () => import("./product-create-variant-AKTPH6F7.js")
3304
3334
  },
3305
3335
  {
3306
3336
  path: "metadata/edit",
3307
- lazy: () => import("./product-metadata-2QQGBVV5.js")
3337
+ lazy: () => import("./product-metadata-GKQUURAL.js")
3308
3338
  }
3309
3339
  ]
3310
3340
  },
3311
3341
  {
3312
3342
  path: "variants/:variant_id",
3313
3343
  lazy: async () => {
3314
- const { Breadcrumb, loader } = await import("./product-variant-detail-TIULIJ3X.js");
3344
+ const { Breadcrumb, loader } = await import("./product-variant-detail-7B26FRNG.js");
3315
3345
  return {
3316
3346
  Component: Outlet4,
3317
3347
  loader,
3318
3348
  handle: {
3319
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3349
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3320
3350
  }
3321
3351
  };
3322
3352
  },
3323
3353
  children: [
3324
3354
  {
3325
3355
  path: "",
3326
- lazy: () => import("./product-variant-detail-TIULIJ3X.js"),
3356
+ lazy: () => import("./product-variant-detail-7B26FRNG.js"),
3327
3357
  children: [
3328
3358
  {
3329
3359
  path: "edit",
3330
- handle: { permissions: "product:update" },
3331
- lazy: () => import("./product-variant-edit-Y4BJFQTK.js")
3360
+ handle: { permissions: "products:edit" },
3361
+ lazy: () => import("./product-variant-edit-UC34WTO7.js")
3332
3362
  },
3333
3363
  {
3334
3364
  path: "metadata/edit",
3335
- lazy: () => import("./product-variant-metadata-7SKGOEEA.js")
3365
+ lazy: () => import("./product-variant-metadata-CTKNNNLM.js")
3336
3366
  }
3337
3367
  ]
3338
3368
  }
@@ -3344,19 +3374,19 @@ function getRouteMap({
3344
3374
  },
3345
3375
  {
3346
3376
  path: "/categories",
3347
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3377
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3348
3378
  handle: {
3349
3379
  breadcrumb: () => t("categories.domain"),
3350
- permissions: "product_category:read"
3380
+ permissions: "product_categories:view"
3351
3381
  },
3352
3382
  children: [
3353
3383
  {
3354
3384
  path: "",
3355
- lazy: () => import("./category-list-J7XYQDJU.js"),
3385
+ lazy: () => import("./category-list-LESUC6ZK.js"),
3356
3386
  children: [
3357
3387
  {
3358
3388
  path: "create",
3359
- handle: { permissions: "product_category:create" },
3389
+ handle: { permissions: "product_categories:edit" },
3360
3390
  lazy: () => import("./category-create-7RFRKVKF.js")
3361
3391
  },
3362
3392
  {
@@ -3368,23 +3398,23 @@ function getRouteMap({
3368
3398
  {
3369
3399
  path: ":id",
3370
3400
  lazy: async () => {
3371
- const { Breadcrumb, loader } = await import("./category-detail-RWLX5N2M.js");
3401
+ const { Breadcrumb, loader } = await import("./category-detail-3YY7FVY4.js");
3372
3402
  return {
3373
3403
  Component: Outlet4,
3374
3404
  loader,
3375
3405
  handle: {
3376
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3406
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3377
3407
  }
3378
3408
  };
3379
3409
  },
3380
3410
  children: [
3381
3411
  {
3382
3412
  path: "",
3383
- lazy: () => import("./category-detail-RWLX5N2M.js"),
3413
+ lazy: () => import("./category-detail-3YY7FVY4.js"),
3384
3414
  children: [
3385
3415
  {
3386
3416
  path: "edit",
3387
- handle: { permissions: "product_category:update" },
3417
+ handle: { permissions: "product_categories:edit" },
3388
3418
  lazy: () => import("./category-edit-3KXRPXXJ.js")
3389
3419
  },
3390
3420
  {
@@ -3397,7 +3427,7 @@ function getRouteMap({
3397
3427
  },
3398
3428
  {
3399
3429
  path: "products",
3400
- lazy: () => import("./category-products-HS4FHYZM.js")
3430
+ lazy: () => import("./category-products-RTOFMB25.js")
3401
3431
  },
3402
3432
  {
3403
3433
  path: "organize",
@@ -3405,7 +3435,7 @@ function getRouteMap({
3405
3435
  },
3406
3436
  {
3407
3437
  path: "metadata/edit",
3408
- lazy: () => import("./categories-metadata-6LMZAUOF.js")
3438
+ lazy: () => import("./categories-metadata-6F6EFZRQ.js")
3409
3439
  }
3410
3440
  ]
3411
3441
  }
@@ -3415,32 +3445,32 @@ function getRouteMap({
3415
3445
  },
3416
3446
  {
3417
3447
  path: "/orders",
3418
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3448
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3419
3449
  handle: {
3420
3450
  breadcrumb: () => t("orders.domain"),
3421
- permissions: "order:read"
3451
+ permissions: "orders:view"
3422
3452
  },
3423
3453
  children: [
3424
3454
  {
3425
3455
  path: "",
3426
- lazy: () => import("./order-list-I6JZT6JK.js")
3456
+ lazy: () => import("./order-list-L2WZX5ED.js")
3427
3457
  },
3428
3458
  {
3429
3459
  path: ":id",
3430
3460
  lazy: async () => {
3431
- const { Breadcrumb, loader } = await import("./order-detail-P7R4U4YU.js");
3461
+ const { Breadcrumb, loader } = await import("./order-detail-U3HDRBBG.js");
3432
3462
  return {
3433
3463
  Component: Outlet4,
3434
3464
  loader,
3435
3465
  handle: {
3436
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3466
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3437
3467
  }
3438
3468
  };
3439
3469
  },
3440
3470
  children: [
3441
3471
  {
3442
3472
  path: "",
3443
- lazy: () => import("./order-detail-P7R4U4YU.js"),
3473
+ lazy: () => import("./order-detail-U3HDRBBG.js"),
3444
3474
  children: [
3445
3475
  {
3446
3476
  path: "returns",
@@ -3452,7 +3482,7 @@ function getRouteMap({
3452
3482
  },
3453
3483
  {
3454
3484
  path: "exchanges",
3455
- lazy: () => import("./order-create-exchange-TSGTAOEF.js")
3485
+ lazy: () => import("./order-create-exchange-CBQ5PA6M.js")
3456
3486
  },
3457
3487
  {
3458
3488
  path: "edits",
@@ -3460,27 +3490,27 @@ function getRouteMap({
3460
3490
  },
3461
3491
  {
3462
3492
  path: "refund",
3463
- lazy: () => import("./order-create-refund-KYTIPPQK.js")
3493
+ lazy: () => import("./order-create-refund-ZWMXQGUA.js")
3464
3494
  },
3465
3495
  {
3466
3496
  path: "transfer",
3467
- lazy: () => import("./order-request-transfer-R3FCUU7R.js")
3497
+ lazy: () => import("./order-request-transfer-7EZX5UOQ.js")
3468
3498
  },
3469
3499
  {
3470
3500
  path: "email",
3471
- lazy: () => import("./order-edit-email-CYCFGHE4.js")
3501
+ lazy: () => import("./order-edit-email-AGJU7YHU.js")
3472
3502
  },
3473
3503
  {
3474
3504
  path: "shipping-address",
3475
- lazy: () => import("./order-edit-shipping-address-XJUKP3JP.js")
3505
+ lazy: () => import("./order-edit-shipping-address-TKLEEHOE.js")
3476
3506
  },
3477
3507
  {
3478
3508
  path: "billing-address",
3479
- lazy: () => import("./order-edit-billing-address-6ALJ7U6O.js")
3509
+ lazy: () => import("./order-edit-billing-address-V6QS5DYF.js")
3480
3510
  },
3481
3511
  {
3482
3512
  path: "metadata/edit",
3483
- lazy: () => import("./order-metadata-PQKBD7ZT.js")
3513
+ lazy: () => import("./order-metadata-NVC3A3A5.js")
3484
3514
  }
3485
3515
  ]
3486
3516
  }
@@ -3490,41 +3520,41 @@ function getRouteMap({
3490
3520
  },
3491
3521
  {
3492
3522
  path: "/promotions",
3493
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3523
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3494
3524
  handle: {
3495
3525
  breadcrumb: () => t("promotions.domain"),
3496
- permissions: "promotion:read"
3526
+ permissions: "promotions:view"
3497
3527
  },
3498
3528
  children: [
3499
3529
  {
3500
3530
  path: "",
3501
- lazy: () => import("./promotion-list-6OBFAIOU.js")
3531
+ lazy: () => import("./promotion-list-TVTDBBJ3.js")
3502
3532
  },
3503
3533
  {
3504
3534
  path: "create",
3505
- handle: { permissions: "promotion:create" },
3506
- lazy: () => import("./promotion-create-D6PTGIAY.js")
3535
+ handle: { permissions: "promotions:edit" },
3536
+ lazy: () => import("./promotion-create-FKRGXGI4.js")
3507
3537
  },
3508
3538
  {
3509
3539
  path: ":id",
3510
3540
  lazy: async () => {
3511
- const { Breadcrumb, loader } = await import("./promotion-detail-4VYJAJ2N.js");
3541
+ const { Breadcrumb, loader } = await import("./promotion-detail-IC5LHRSY.js");
3512
3542
  return {
3513
3543
  Component: Outlet4,
3514
3544
  loader,
3515
3545
  handle: {
3516
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3546
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3517
3547
  }
3518
3548
  };
3519
3549
  },
3520
3550
  children: [
3521
3551
  {
3522
3552
  path: "",
3523
- lazy: () => import("./promotion-detail-4VYJAJ2N.js"),
3553
+ lazy: () => import("./promotion-detail-IC5LHRSY.js"),
3524
3554
  children: [
3525
3555
  {
3526
3556
  path: "edit",
3527
- handle: { permissions: "promotion:update" },
3557
+ handle: { permissions: "promotions:edit" },
3528
3558
  lazy: () => import("./promotion-edit-details-7PHH756U.js")
3529
3559
  },
3530
3560
  {
@@ -3533,7 +3563,7 @@ function getRouteMap({
3533
3563
  },
3534
3564
  {
3535
3565
  path: ":ruleType/edit",
3536
- lazy: () => import("./edit-rules-HIC7UOV5.js")
3566
+ lazy: () => import("./edit-rules-3DCWA5UF.js")
3537
3567
  }
3538
3568
  ]
3539
3569
  }
@@ -3543,42 +3573,42 @@ function getRouteMap({
3543
3573
  },
3544
3574
  {
3545
3575
  path: "/campaigns",
3546
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3576
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3547
3577
  handle: {
3548
3578
  breadcrumb: () => t("campaigns.domain"),
3549
- permissions: "campaign:read"
3579
+ permissions: "campaigns:view"
3550
3580
  },
3551
3581
  children: [
3552
3582
  {
3553
3583
  path: "",
3554
- lazy: () => import("./campaign-list-GIMU2QVW.js"),
3584
+ lazy: () => import("./campaign-list-ZRUBHJEA.js"),
3555
3585
  children: []
3556
3586
  },
3557
3587
  {
3558
3588
  path: "create",
3559
- handle: { permissions: "campaign:create" },
3589
+ handle: { permissions: "campaigns:edit" },
3560
3590
  lazy: () => import("./campaign-create-FEEKJCUE.js")
3561
3591
  },
3562
3592
  {
3563
3593
  path: ":id",
3564
3594
  lazy: async () => {
3565
- const { Breadcrumb, loader } = await import("./campaign-detail-3HKWD7UR.js");
3595
+ const { Breadcrumb, loader } = await import("./campaign-detail-4IEM5BGI.js");
3566
3596
  return {
3567
3597
  Component: Outlet4,
3568
3598
  loader,
3569
3599
  handle: {
3570
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3600
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3571
3601
  }
3572
3602
  };
3573
3603
  },
3574
3604
  children: [
3575
3605
  {
3576
3606
  path: "",
3577
- lazy: () => import("./campaign-detail-3HKWD7UR.js"),
3607
+ lazy: () => import("./campaign-detail-4IEM5BGI.js"),
3578
3608
  children: [
3579
3609
  {
3580
3610
  path: "edit",
3581
- handle: { permissions: "campaign:update" },
3611
+ handle: { permissions: "campaigns:edit" },
3582
3612
  lazy: () => import("./campaign-edit-2WJ7V2EY.js")
3583
3613
  },
3584
3614
  {
@@ -3591,7 +3621,7 @@ function getRouteMap({
3591
3621
  },
3592
3622
  {
3593
3623
  path: "add-promotions",
3594
- lazy: () => import("./add-campaign-promotions-VFRAB2NN.js")
3624
+ lazy: () => import("./add-campaign-promotions-6OB7BUPK.js")
3595
3625
  }
3596
3626
  ]
3597
3627
  }
@@ -3601,10 +3631,10 @@ function getRouteMap({
3601
3631
  },
3602
3632
  {
3603
3633
  path: "/reviews",
3604
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3634
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3605
3635
  handle: {
3606
3636
  breadcrumb: () => t("reviews.domain"),
3607
- permissions: "review:read"
3637
+ permissions: "reviews:view"
3608
3638
  },
3609
3639
  children: [
3610
3640
  {
@@ -3620,7 +3650,7 @@ function getRouteMap({
3620
3650
  Component: Outlet4,
3621
3651
  loader,
3622
3652
  handle: {
3623
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3653
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3624
3654
  }
3625
3655
  };
3626
3656
  },
@@ -3631,7 +3661,7 @@ function getRouteMap({
3631
3661
  children: [
3632
3662
  {
3633
3663
  path: "edit",
3634
- handle: { permissions: "review:update" },
3664
+ handle: { permissions: "reviews:edit" },
3635
3665
  lazy: () => import("./review-edit-VD4JATST.js")
3636
3666
  },
3637
3667
  {
@@ -3646,19 +3676,19 @@ function getRouteMap({
3646
3676
  },
3647
3677
  {
3648
3678
  path: "/collections",
3649
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3679
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3650
3680
  handle: {
3651
3681
  breadcrumb: () => t("collections.domain"),
3652
- permissions: "product_collection:read"
3682
+ permissions: "product_collections:view"
3653
3683
  },
3654
3684
  children: [
3655
3685
  {
3656
3686
  path: "",
3657
- lazy: () => import("./collection-list-3DODRV34.js"),
3687
+ lazy: () => import("./collection-list-MWXFS7UY.js"),
3658
3688
  children: [
3659
3689
  {
3660
3690
  path: "create",
3661
- handle: { permissions: "product_collection:create" },
3691
+ handle: { permissions: "product_collections:edit" },
3662
3692
  lazy: () => import("./collection-create-W75VOWNN.js")
3663
3693
  }
3664
3694
  ]
@@ -3666,23 +3696,23 @@ function getRouteMap({
3666
3696
  {
3667
3697
  path: ":id",
3668
3698
  lazy: async () => {
3669
- const { Breadcrumb, loader } = await import("./collection-detail-JT4DSP7V.js");
3699
+ const { Breadcrumb, loader } = await import("./collection-detail-CTXO7RMM.js");
3670
3700
  return {
3671
3701
  Component: Outlet4,
3672
3702
  loader,
3673
3703
  handle: {
3674
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3704
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3675
3705
  }
3676
3706
  };
3677
3707
  },
3678
3708
  children: [
3679
3709
  {
3680
3710
  path: "",
3681
- lazy: () => import("./collection-detail-JT4DSP7V.js"),
3711
+ lazy: () => import("./collection-detail-CTXO7RMM.js"),
3682
3712
  children: [
3683
3713
  {
3684
3714
  path: "edit",
3685
- handle: { permissions: "product_collection:update" },
3715
+ handle: { permissions: "product_collections:edit" },
3686
3716
  lazy: () => import("./collection-edit-HMOZIS7Z.js")
3687
3717
  },
3688
3718
  {
@@ -3695,11 +3725,11 @@ function getRouteMap({
3695
3725
  },
3696
3726
  {
3697
3727
  path: "products",
3698
- lazy: () => import("./collection-add-products-FFYCZINV.js")
3728
+ lazy: () => import("./collection-add-products-O5ILXKFY.js")
3699
3729
  },
3700
3730
  {
3701
3731
  path: "metadata/edit",
3702
- lazy: () => import("./collection-metadata-7XMJPJCT.js")
3732
+ lazy: () => import("./collection-metadata-QUMWZABV.js")
3703
3733
  }
3704
3734
  ]
3705
3735
  }
@@ -3709,43 +3739,43 @@ function getRouteMap({
3709
3739
  },
3710
3740
  {
3711
3741
  path: "/price-lists",
3712
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3742
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3713
3743
  handle: {
3714
3744
  breadcrumb: () => t("priceLists.domain"),
3715
- permissions: "price_list:read"
3745
+ permissions: "price_lists:view"
3716
3746
  },
3717
3747
  children: [
3718
3748
  {
3719
3749
  path: "",
3720
- lazy: () => import("./price-list-list-5CNSLAUF.js"),
3750
+ lazy: () => import("./price-list-list-AM2GMQ7P.js"),
3721
3751
  children: [
3722
3752
  {
3723
3753
  path: "create",
3724
- handle: { permissions: "price_list:create" },
3725
- lazy: () => import("./price-list-create-PHJFJOQA.js")
3754
+ handle: { permissions: "price_lists:edit" },
3755
+ lazy: () => import("./price-list-create-RNVWVB5D.js")
3726
3756
  }
3727
3757
  ]
3728
3758
  },
3729
3759
  {
3730
3760
  path: ":id",
3731
3761
  lazy: async () => {
3732
- const { Breadcrumb, loader } = await import("./price-list-detail-CGZ5DS6T.js");
3762
+ const { Breadcrumb, loader } = await import("./price-list-detail-WHJKFDYZ.js");
3733
3763
  return {
3734
3764
  Component: Outlet4,
3735
3765
  loader,
3736
3766
  handle: {
3737
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3767
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3738
3768
  }
3739
3769
  };
3740
3770
  },
3741
3771
  children: [
3742
3772
  {
3743
3773
  path: "",
3744
- lazy: () => import("./price-list-detail-CGZ5DS6T.js"),
3774
+ lazy: () => import("./price-list-detail-WHJKFDYZ.js"),
3745
3775
  children: [
3746
3776
  {
3747
3777
  path: "edit",
3748
- handle: { permissions: "price_list:update" },
3778
+ handle: { permissions: "price_lists:edit" },
3749
3779
  lazy: () => import("./price-list-edit-ZVP6CCPE.js")
3750
3780
  },
3751
3781
  {
@@ -3758,11 +3788,11 @@ function getRouteMap({
3758
3788
  },
3759
3789
  {
3760
3790
  path: "products/add",
3761
- lazy: () => import("./price-list-prices-add-O5JDIJ3O.js")
3791
+ lazy: () => import("./price-list-prices-add-ZDKNOJRU.js")
3762
3792
  },
3763
3793
  {
3764
3794
  path: "products/edit",
3765
- lazy: () => import("./price-list-prices-edit-ITO6ZTGD.js")
3795
+ lazy: () => import("./price-list-prices-edit-S4V5ACN3.js")
3766
3796
  }
3767
3797
  ]
3768
3798
  }
@@ -3772,19 +3802,19 @@ function getRouteMap({
3772
3802
  },
3773
3803
  {
3774
3804
  path: "/customers",
3775
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3805
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3776
3806
  handle: {
3777
3807
  breadcrumb: () => t("customers.domain"),
3778
- permissions: "customer:read"
3808
+ permissions: "customers:view"
3779
3809
  },
3780
3810
  children: [
3781
3811
  {
3782
3812
  path: "",
3783
- lazy: () => import("./customer-list-NEPELR3R.js"),
3813
+ lazy: () => import("./customer-list-46W5PJR3.js"),
3784
3814
  children: [
3785
3815
  {
3786
3816
  path: "create",
3787
- handle: { permissions: "customer:create" },
3817
+ handle: { permissions: "customers:edit" },
3788
3818
  lazy: () => import("./customer-create-46H2N34Z.js")
3789
3819
  }
3790
3820
  ]
@@ -3792,23 +3822,23 @@ function getRouteMap({
3792
3822
  {
3793
3823
  path: ":id",
3794
3824
  lazy: async () => {
3795
- const { Breadcrumb, loader } = await import("./customer-detail-AMGUVNTH.js");
3825
+ const { Breadcrumb, loader } = await import("./customer-detail-ZYETGMFF.js");
3796
3826
  return {
3797
3827
  Component: Outlet4,
3798
3828
  loader,
3799
3829
  handle: {
3800
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3830
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3801
3831
  }
3802
3832
  };
3803
3833
  },
3804
3834
  children: [
3805
3835
  {
3806
3836
  path: "",
3807
- lazy: () => import("./customer-detail-AMGUVNTH.js"),
3837
+ lazy: () => import("./customer-detail-ZYETGMFF.js"),
3808
3838
  children: [
3809
3839
  {
3810
3840
  path: "edit",
3811
- handle: { permissions: "customer:update" },
3841
+ handle: { permissions: "customers:edit" },
3812
3842
  lazy: () => import("./customer-edit-5EH2AUGN.js")
3813
3843
  },
3814
3844
  {
@@ -3821,15 +3851,15 @@ function getRouteMap({
3821
3851
  },
3822
3852
  {
3823
3853
  path: "add-customer-groups",
3824
- lazy: () => import("./customers-add-customer-group-GNDYPKUO.js")
3854
+ lazy: () => import("./customers-add-customer-group-AZYAIQ7E.js")
3825
3855
  },
3826
3856
  {
3827
3857
  path: ":order_id/transfer",
3828
- lazy: () => import("./order-request-transfer-R3FCUU7R.js")
3858
+ lazy: () => import("./order-request-transfer-7EZX5UOQ.js")
3829
3859
  },
3830
3860
  {
3831
3861
  path: "metadata/edit",
3832
- lazy: () => import("./customer-metadata-WL5W5JSC.js")
3862
+ lazy: () => import("./customer-metadata-UEQSIGLT.js")
3833
3863
  }
3834
3864
  ]
3835
3865
  }
@@ -3839,19 +3869,19 @@ function getRouteMap({
3839
3869
  },
3840
3870
  {
3841
3871
  path: "/customer-groups",
3842
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3872
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3843
3873
  handle: {
3844
3874
  breadcrumb: () => t("customerGroups.domain"),
3845
- permissions: "customer_group:read"
3875
+ permissions: "customer_groups:view"
3846
3876
  },
3847
3877
  children: [
3848
3878
  {
3849
3879
  path: "",
3850
- lazy: () => import("./customer-group-list-2NP5GAKQ.js"),
3880
+ lazy: () => import("./customer-group-list-MZ7H4XLD.js"),
3851
3881
  children: [
3852
3882
  {
3853
3883
  path: "create",
3854
- handle: { permissions: "customer_group:create" },
3884
+ handle: { permissions: "customer_groups:edit" },
3855
3885
  lazy: () => import("./customer-group-create-WER6DODC.js")
3856
3886
  }
3857
3887
  ]
@@ -3859,23 +3889,23 @@ function getRouteMap({
3859
3889
  {
3860
3890
  path: ":id",
3861
3891
  lazy: async () => {
3862
- const { Breadcrumb, loader } = await import("./customer-group-detail-PDA3JCAZ.js");
3892
+ const { Breadcrumb, loader } = await import("./customer-group-detail-RPDRZGPZ.js");
3863
3893
  return {
3864
3894
  Component: Outlet4,
3865
3895
  loader,
3866
3896
  handle: {
3867
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3897
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3868
3898
  }
3869
3899
  };
3870
3900
  },
3871
3901
  children: [
3872
3902
  {
3873
3903
  path: "",
3874
- lazy: () => import("./customer-group-detail-PDA3JCAZ.js"),
3904
+ lazy: () => import("./customer-group-detail-RPDRZGPZ.js"),
3875
3905
  children: [
3876
3906
  {
3877
3907
  path: "edit",
3878
- handle: { permissions: "customer_group:update" },
3908
+ handle: { permissions: "customer_groups:edit" },
3879
3909
  lazy: () => import("./customer-group-edit-ZQTBUZVR.js")
3880
3910
  },
3881
3911
  {
@@ -3884,7 +3914,7 @@ function getRouteMap({
3884
3914
  },
3885
3915
  {
3886
3916
  path: "metadata/edit",
3887
- lazy: () => import("./customer-group-metadata-B7LBRM5F.js")
3917
+ lazy: () => import("./customer-group-metadata-UQ2SCLOK.js")
3888
3918
  }
3889
3919
  ]
3890
3920
  }
@@ -3894,47 +3924,47 @@ function getRouteMap({
3894
3924
  },
3895
3925
  {
3896
3926
  path: "/stores",
3897
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3927
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3898
3928
  handle: {
3899
3929
  breadcrumb: () => t("stores.domain"),
3900
- permissions: "seller:read"
3930
+ permissions: "sellers:view"
3901
3931
  },
3902
3932
  children: [
3903
3933
  {
3904
3934
  path: "",
3905
- lazy: () => import("./store-list-JADJQPSK.js"),
3935
+ lazy: () => import("./store-list-MAT74WSB.js"),
3906
3936
  children: [
3907
3937
  {
3908
3938
  path: "create",
3909
- handle: { permissions: "seller:create" },
3910
- lazy: () => import("./store-create-RYYOB2FV.js")
3939
+ handle: { permissions: "sellers:edit" },
3940
+ lazy: () => import("./store-create-JBY2MAIT.js")
3911
3941
  },
3912
3942
  {
3913
3943
  path: "bulk-edit",
3914
- lazy: () => import("./store-bulk-edit-NBWZMDP7.js")
3944
+ lazy: () => import("./store-bulk-edit-FQPQQR46.js")
3915
3945
  }
3916
3946
  ]
3917
3947
  },
3918
3948
  {
3919
3949
  path: ":id",
3920
3950
  lazy: async () => {
3921
- const { Breadcrumb } = await import("./store-details-A2L6YQDB.js");
3951
+ const { Breadcrumb } = await import("./store-details-5FBLCWOV.js");
3922
3952
  return {
3923
3953
  Component: Outlet4,
3924
3954
  handle: {
3925
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3955
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3926
3956
  }
3927
3957
  };
3928
3958
  },
3929
3959
  children: [
3930
3960
  {
3931
3961
  path: "",
3932
- lazy: () => import("./store-details-A2L6YQDB.js"),
3962
+ lazy: () => import("./store-details-5FBLCWOV.js"),
3933
3963
  children: [
3934
3964
  {
3935
3965
  path: "edit",
3936
- handle: { permissions: "seller:update" },
3937
- lazy: () => import("./store-edit-BORBEPWF.js")
3966
+ handle: { permissions: "sellers:edit" },
3967
+ lazy: () => import("./store-edit-BXWV5H4Z.js")
3938
3968
  },
3939
3969
  {
3940
3970
  path: "edit-address",
@@ -3954,7 +3984,7 @@ function getRouteMap({
3954
3984
  },
3955
3985
  {
3956
3986
  path: "invite",
3957
- lazy: () => import("./store-member-invite-IEUG54XA.js")
3987
+ lazy: () => import("./store-member-invite-A2WAB5GK.js")
3958
3988
  }
3959
3989
  ]
3960
3990
  }
@@ -3964,10 +3994,10 @@ function getRouteMap({
3964
3994
  },
3965
3995
  {
3966
3996
  path: "/payouts",
3967
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3997
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
3968
3998
  handle: {
3969
3999
  breadcrumb: () => "Payouts",
3970
- permissions: "payout:read"
4000
+ permissions: "payouts:view"
3971
4001
  },
3972
4002
  children: [
3973
4003
  {
@@ -3982,7 +4012,7 @@ function getRouteMap({
3982
4012
  Component: Outlet4,
3983
4013
  loader,
3984
4014
  handle: {
3985
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4015
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
3986
4016
  }
3987
4017
  };
3988
4018
  },
@@ -3997,19 +4027,19 @@ function getRouteMap({
3997
4027
  },
3998
4028
  {
3999
4029
  path: "/reservations",
4000
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4030
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4001
4031
  handle: {
4002
4032
  breadcrumb: () => t("reservations.domain"),
4003
- permissions: "reservation_item:read"
4033
+ permissions: "reservations:view"
4004
4034
  },
4005
4035
  children: [
4006
4036
  {
4007
4037
  path: "",
4008
- lazy: () => import("./reservation-list-VRRSKQ4W.js"),
4038
+ lazy: () => import("./reservation-list-JQFVSRW5.js"),
4009
4039
  children: [
4010
4040
  {
4011
4041
  path: "create",
4012
- handle: { permissions: "reservation_item:create" },
4042
+ handle: { permissions: "reservations:edit" },
4013
4043
  lazy: () => import("./reservation-create-H3T3AHTK.js")
4014
4044
  }
4015
4045
  ]
@@ -4017,28 +4047,28 @@ function getRouteMap({
4017
4047
  {
4018
4048
  path: ":id",
4019
4049
  lazy: async () => {
4020
- const { Breadcrumb, loader } = await import("./reservation-detail-7PLHNOS4.js");
4050
+ const { Breadcrumb, loader } = await import("./reservation-detail-OCIIVYIN.js");
4021
4051
  return {
4022
4052
  Component: Outlet4,
4023
4053
  loader,
4024
4054
  handle: {
4025
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4055
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4026
4056
  }
4027
4057
  };
4028
4058
  },
4029
4059
  children: [
4030
4060
  {
4031
4061
  path: "",
4032
- lazy: () => import("./reservation-detail-7PLHNOS4.js"),
4062
+ lazy: () => import("./reservation-detail-OCIIVYIN.js"),
4033
4063
  children: [
4034
4064
  {
4035
4065
  path: "edit",
4036
- handle: { permissions: "reservation_item:update" },
4066
+ handle: { permissions: "reservations:edit" },
4037
4067
  lazy: () => import("./edit-reservation-W3THLKKK.js")
4038
4068
  },
4039
4069
  {
4040
4070
  path: "metadata/edit",
4041
- lazy: () => import("./reservation-metadata-L42C7DPK.js")
4071
+ lazy: () => import("./reservation-metadata-AKR6FRG5.js")
4042
4072
  }
4043
4073
  ]
4044
4074
  }
@@ -4048,16 +4078,16 @@ function getRouteMap({
4048
4078
  },
4049
4079
  {
4050
4080
  path: "/offers",
4051
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4081
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4052
4082
  handle: {
4053
4083
  breadcrumb: () => t("offers.domain"),
4054
- permissions: "offer:read"
4084
+ permissions: "offers:view"
4055
4085
  },
4056
4086
  children: [
4057
4087
  {
4058
4088
  path: "",
4059
4089
  lazy: async () => {
4060
- const { OfferListPage } = await import("./offers-KJTLBFTM.js");
4090
+ const { OfferListPage } = await import("./offers-6MDVGCJK.js");
4061
4091
  return { Component: OfferListPage };
4062
4092
  }
4063
4093
  },
@@ -4070,7 +4100,7 @@ function getRouteMap({
4070
4100
  Component: Outlet4,
4071
4101
  loader,
4072
4102
  handle: {
4073
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4103
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4074
4104
  }
4075
4105
  };
4076
4106
  },
@@ -4078,7 +4108,7 @@ function getRouteMap({
4078
4108
  {
4079
4109
  path: "",
4080
4110
  lazy: async () => {
4081
- const { OfferDetailPage } = await import("./offer-detail-page-WWEUCEFC.js");
4111
+ const { OfferDetailPage } = await import("./offer-detail-page-JGS52M66.js");
4082
4112
  return { Component: OfferDetailPage };
4083
4113
  }
4084
4114
  },
@@ -4091,7 +4121,7 @@ function getRouteMap({
4091
4121
  Component: Outlet4,
4092
4122
  loader,
4093
4123
  handle: {
4094
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4124
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4095
4125
  }
4096
4126
  };
4097
4127
  },
@@ -4111,10 +4141,10 @@ function getRouteMap({
4111
4141
  },
4112
4142
  {
4113
4143
  path: "/inventory",
4114
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4144
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4115
4145
  handle: {
4116
4146
  breadcrumb: () => t("inventory.domain"),
4117
- permissions: "inventory_item:read"
4147
+ permissions: "inventory_items:view"
4118
4148
  },
4119
4149
  children: [
4120
4150
  {
@@ -4123,39 +4153,39 @@ function getRouteMap({
4123
4153
  children: [
4124
4154
  {
4125
4155
  path: "stock",
4126
- lazy: () => import("./inventory-stock-M5YSKXC4.js")
4156
+ lazy: () => import("./inventory-stock-LDBJQCJF.js")
4127
4157
  }
4128
4158
  ]
4129
4159
  },
4130
4160
  {
4131
4161
  path: ":id",
4132
4162
  lazy: async () => {
4133
- const { Breadcrumb, loader } = await import("./inventory-detail-OLBIFY6Y.js");
4163
+ const { Breadcrumb, loader } = await import("./inventory-detail-MMONC625.js");
4134
4164
  return {
4135
4165
  Component: Outlet4,
4136
4166
  loader,
4137
4167
  handle: {
4138
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4168
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4139
4169
  }
4140
4170
  };
4141
4171
  },
4142
4172
  children: [
4143
4173
  {
4144
4174
  path: "",
4145
- lazy: () => import("./inventory-detail-OLBIFY6Y.js"),
4175
+ lazy: () => import("./inventory-detail-MMONC625.js"),
4146
4176
  children: [
4147
4177
  {
4148
4178
  path: "edit",
4149
- handle: { permissions: "inventory_item:update" },
4150
- lazy: () => import("./edit-inventory-item-QNTKH7KR.js")
4179
+ handle: { permissions: "inventory_items:edit" },
4180
+ lazy: () => import("./edit-inventory-item-ENA2OFSQ.js")
4151
4181
  },
4152
4182
  {
4153
4183
  path: "attributes",
4154
- lazy: () => import("./edit-inventory-item-attributes-KB4GVOGP.js")
4184
+ lazy: () => import("./edit-inventory-item-attributes-Z26UDTSH.js")
4155
4185
  },
4156
4186
  {
4157
4187
  path: "metadata/edit",
4158
- lazy: () => import("./inventory-metadata-2QNV2PF7.js")
4188
+ lazy: () => import("./inventory-metadata-OGS7JMZ5.js")
4159
4189
  },
4160
4190
  {
4161
4191
  path: "locations",
@@ -4163,7 +4193,7 @@ function getRouteMap({
4163
4193
  },
4164
4194
  {
4165
4195
  path: "locations/:location_id",
4166
- lazy: () => import("./adjust-inventory-TWESAGKE.js")
4196
+ lazy: () => import("./adjust-inventory-32UZ4BZC.js")
4167
4197
  }
4168
4198
  ]
4169
4199
  }
@@ -4180,40 +4210,40 @@ function getRouteMap({
4180
4210
  ]
4181
4211
  },
4182
4212
  {
4183
- element: /* @__PURE__ */ jsx14(ProtectedRoute, {}),
4184
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4213
+ element: /* @__PURE__ */ jsx15(ProtectedRoute, {}),
4214
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4185
4215
  children: [
4186
4216
  {
4187
4217
  path: "/settings",
4188
4218
  handle: {
4189
4219
  breadcrumb: () => t("app.nav.settings.header")
4190
4220
  },
4191
- element: /* @__PURE__ */ jsx14(SettingsLayout, {}),
4221
+ element: /* @__PURE__ */ jsx15(SettingsLayout, {}),
4192
4222
  children: [
4193
4223
  {
4194
- element: /* @__PURE__ */ jsx14(RoutePermissionGuard, {}),
4224
+ element: /* @__PURE__ */ jsx15(RoutePermissionGuard, {}),
4195
4225
  children: mergeRoutes(
4196
4226
  [
4197
4227
  {
4198
4228
  index: true,
4199
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4229
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4200
4230
  lazy: () => import("./settings-AVE3VCCM.js")
4201
4231
  },
4202
4232
  {
4203
4233
  path: "profile",
4204
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4205
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4234
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4235
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4206
4236
  handle: {
4207
4237
  breadcrumb: () => t("profile.domain")
4208
4238
  },
4209
4239
  children: [
4210
4240
  {
4211
4241
  path: "",
4212
- lazy: () => import("./profile-detail-KFLXUGQ5.js"),
4242
+ lazy: () => import("./profile-detail-TQWGKYRK.js"),
4213
4243
  children: [
4214
4244
  {
4215
4245
  path: "edit",
4216
- lazy: () => import("./profile-edit-4FDALFG5.js")
4246
+ lazy: () => import("./profile-edit-ZBD6N5SC.js")
4217
4247
  }
4218
4248
  ]
4219
4249
  }
@@ -4221,11 +4251,11 @@ function getRouteMap({
4221
4251
  },
4222
4252
  {
4223
4253
  path: "regions",
4224
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4225
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4254
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4255
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4226
4256
  handle: {
4227
4257
  breadcrumb: () => t("regions.domain"),
4228
- permissions: "region:read"
4258
+ permissions: "regions:view"
4229
4259
  },
4230
4260
  children: [
4231
4261
  {
@@ -4234,7 +4264,7 @@ function getRouteMap({
4234
4264
  children: [
4235
4265
  {
4236
4266
  path: "create",
4237
- handle: { permissions: "region:create" },
4267
+ handle: { permissions: "regions:edit" },
4238
4268
  lazy: () => import("./region-create-S2WUJ4RA.js")
4239
4269
  }
4240
4270
  ]
@@ -4247,7 +4277,7 @@ function getRouteMap({
4247
4277
  Component: Outlet4,
4248
4278
  loader,
4249
4279
  handle: {
4250
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4280
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4251
4281
  }
4252
4282
  };
4253
4283
  },
@@ -4258,7 +4288,7 @@ function getRouteMap({
4258
4288
  children: [
4259
4289
  {
4260
4290
  path: "edit",
4261
- handle: { permissions: "region:update" },
4291
+ handle: { permissions: "regions:edit" },
4262
4292
  lazy: () => import("./region-edit-NUMG2V5L.js")
4263
4293
  },
4264
4294
  {
@@ -4267,7 +4297,7 @@ function getRouteMap({
4267
4297
  },
4268
4298
  {
4269
4299
  path: "metadata/edit",
4270
- lazy: () => import("./region-metadata-IK6ZPUJW.js")
4300
+ lazy: () => import("./region-metadata-NAHNXAHQ.js")
4271
4301
  }
4272
4302
  ]
4273
4303
  }
@@ -4277,20 +4307,20 @@ function getRouteMap({
4277
4307
  },
4278
4308
  {
4279
4309
  path: "marketplace",
4280
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4281
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4310
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4311
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4282
4312
  handle: {
4283
4313
  breadcrumb: () => t("marketplace.domain"),
4284
- permissions: "store:read"
4314
+ permissions: "store:view"
4285
4315
  },
4286
4316
  children: [
4287
4317
  {
4288
4318
  path: "",
4289
- lazy: () => import("./marketplace-detail-BIQF75Y7.js"),
4319
+ lazy: () => import("./marketplace-detail-JSUMZVZS.js"),
4290
4320
  children: [
4291
4321
  {
4292
4322
  path: "edit",
4293
- handle: { permissions: "store:update" },
4323
+ handle: { permissions: "store:edit" },
4294
4324
  lazy: () => import("./marketplace-edit-G7YNGABC.js")
4295
4325
  },
4296
4326
  {
@@ -4299,7 +4329,7 @@ function getRouteMap({
4299
4329
  },
4300
4330
  {
4301
4331
  path: "metadata/edit",
4302
- lazy: () => import("./marketplace-metadata-U6LXZNTN.js")
4332
+ lazy: () => import("./marketplace-metadata-2TZTRDRJ.js")
4303
4333
  }
4304
4334
  ]
4305
4335
  }
@@ -4307,20 +4337,20 @@ function getRouteMap({
4307
4337
  },
4308
4338
  {
4309
4339
  path: "commissions",
4310
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4311
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4340
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4341
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4312
4342
  handle: {
4313
4343
  breadcrumb: () => t("commissions.domain"),
4314
- permissions: "commission_rate:read"
4344
+ permissions: "commission_rates:view"
4315
4345
  },
4316
4346
  children: [
4317
4347
  {
4318
4348
  path: "",
4319
- lazy: () => import("./commissions-list-MUKIEJWZ.js"),
4349
+ lazy: () => import("./commissions-list-PQUFPRZK.js"),
4320
4350
  children: [
4321
4351
  {
4322
4352
  path: "create",
4323
- handle: { permissions: "commission_rate:create" },
4353
+ handle: { permissions: "commission_rates:edit" },
4324
4354
  lazy: () => import("./commission-rule-create-CDLLQIY4.js")
4325
4355
  },
4326
4356
  {
@@ -4336,7 +4366,7 @@ function getRouteMap({
4336
4366
  return {
4337
4367
  Component: Outlet4,
4338
4368
  handle: {
4339
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4369
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4340
4370
  }
4341
4371
  };
4342
4372
  },
@@ -4347,7 +4377,7 @@ function getRouteMap({
4347
4377
  children: [
4348
4378
  {
4349
4379
  path: "edit",
4350
- handle: { permissions: "commission_rate:update" },
4380
+ handle: { permissions: "commission_rates:edit" },
4351
4381
  lazy: () => import("./commission-rule-edit-5CFKPI7U.js")
4352
4382
  },
4353
4383
  {
@@ -4362,49 +4392,49 @@ function getRouteMap({
4362
4392
  },
4363
4393
  {
4364
4394
  path: "users",
4365
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4366
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4395
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4396
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4367
4397
  handle: {
4368
4398
  breadcrumb: () => t("users.domain"),
4369
- permissions: "user:read"
4399
+ permissions: "users:view"
4370
4400
  },
4371
4401
  children: [
4372
4402
  {
4373
4403
  path: "",
4374
- lazy: () => import("./user-list-6YRC6HYX.js"),
4404
+ lazy: () => import("./user-list-6IYBI6HY.js"),
4375
4405
  children: [
4376
4406
  {
4377
4407
  path: "invite",
4378
- handle: { permissions: "user:create" },
4379
- lazy: () => import("./user-invite-SZIUG2WK.js")
4408
+ handle: { permissions: "users:edit" },
4409
+ lazy: () => import("./user-invite-YVLFH6HU.js")
4380
4410
  }
4381
4411
  ]
4382
4412
  },
4383
4413
  {
4384
4414
  path: ":id",
4385
4415
  lazy: async () => {
4386
- const { Breadcrumb, loader } = await import("./user-detail-5LOE6QGK.js");
4416
+ const { Breadcrumb, loader } = await import("./user-detail-MJ3ITMNK.js");
4387
4417
  return {
4388
4418
  Component: Outlet4,
4389
4419
  loader,
4390
4420
  handle: {
4391
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4421
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4392
4422
  }
4393
4423
  };
4394
4424
  },
4395
4425
  children: [
4396
4426
  {
4397
4427
  path: "",
4398
- lazy: () => import("./user-detail-5LOE6QGK.js"),
4428
+ lazy: () => import("./user-detail-MJ3ITMNK.js"),
4399
4429
  children: [
4400
4430
  {
4401
4431
  path: "edit",
4402
- handle: { permissions: "user:update" },
4403
- lazy: () => import("./user-edit-O2M5II52.js")
4432
+ handle: { permissions: "users:edit" },
4433
+ lazy: () => import("./user-edit-Y5VP6CKB.js")
4404
4434
  },
4405
4435
  {
4406
4436
  path: "metadata/edit",
4407
- lazy: () => import("./user-metadata-M72ZGLGH.js")
4437
+ lazy: () => import("./user-metadata-XNM2JNNO.js")
4408
4438
  }
4409
4439
  ]
4410
4440
  }
@@ -4414,20 +4444,20 @@ function getRouteMap({
4414
4444
  },
4415
4445
  {
4416
4446
  path: "sales-channels",
4417
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4418
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4447
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4448
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4419
4449
  handle: {
4420
4450
  breadcrumb: () => t("salesChannels.domain"),
4421
- permissions: "sales_channel:read"
4451
+ permissions: "sales_channels:view"
4422
4452
  },
4423
4453
  children: [
4424
4454
  {
4425
4455
  path: "",
4426
- lazy: () => import("./sales-channel-list-ZEERNIJZ.js"),
4456
+ lazy: () => import("./sales-channel-list-BCL62DTX.js"),
4427
4457
  children: [
4428
4458
  {
4429
4459
  path: "create",
4430
- handle: { permissions: "sales_channel:create" },
4460
+ handle: { permissions: "sales_channels:edit" },
4431
4461
  lazy: () => import("./sales-channel-create-WEF7QXKI.js")
4432
4462
  }
4433
4463
  ]
@@ -4435,32 +4465,32 @@ function getRouteMap({
4435
4465
  {
4436
4466
  path: ":id",
4437
4467
  lazy: async () => {
4438
- const { Breadcrumb, loader } = await import("./sales-channel-detail-5CL3LMRD.js");
4468
+ const { Breadcrumb, loader } = await import("./sales-channel-detail-7GAGHWEP.js");
4439
4469
  return {
4440
4470
  Component: Outlet4,
4441
4471
  loader,
4442
4472
  handle: {
4443
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4473
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4444
4474
  }
4445
4475
  };
4446
4476
  },
4447
4477
  children: [
4448
4478
  {
4449
4479
  path: "",
4450
- lazy: () => import("./sales-channel-detail-5CL3LMRD.js"),
4480
+ lazy: () => import("./sales-channel-detail-7GAGHWEP.js"),
4451
4481
  children: [
4452
4482
  {
4453
4483
  path: "edit",
4454
- handle: { permissions: "sales_channel:update" },
4484
+ handle: { permissions: "sales_channels:edit" },
4455
4485
  lazy: () => import("./sales-channel-edit-CO2V2VER.js")
4456
4486
  },
4457
4487
  {
4458
4488
  path: "add-products",
4459
- lazy: () => import("./sales-channel-add-products-EHFMW73I.js")
4489
+ lazy: () => import("./sales-channel-add-products-RRTMXVAT.js")
4460
4490
  },
4461
4491
  {
4462
4492
  path: "metadata/edit",
4463
- lazy: () => import("./sales-channel-metadata-OFHAFCOM.js")
4493
+ lazy: () => import("./sales-channel-metadata-BKNILVQ2.js")
4464
4494
  }
4465
4495
  ]
4466
4496
  }
@@ -4470,37 +4500,37 @@ function getRouteMap({
4470
4500
  },
4471
4501
  {
4472
4502
  path: "locations",
4473
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4474
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4503
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4504
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4475
4505
  handle: {
4476
4506
  breadcrumb: () => t("locations.domain"),
4477
- permissions: "stock_location:read"
4507
+ permissions: "stock_locations:view"
4478
4508
  },
4479
4509
  children: [
4480
4510
  {
4481
4511
  path: "",
4482
- lazy: () => import("./location-list-R3OABFPG.js")
4512
+ lazy: () => import("./location-list-JJN42JSH.js")
4483
4513
  },
4484
4514
  {
4485
4515
  path: "create",
4486
- handle: { permissions: "stock_location:create" },
4516
+ handle: { permissions: "stock_locations:edit" },
4487
4517
  lazy: () => import("./location-create-XCEPUY44.js")
4488
4518
  },
4489
4519
  {
4490
4520
  path: "shipping-profiles",
4491
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4521
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4492
4522
  handle: {
4493
4523
  breadcrumb: () => t("shippingProfile.domain"),
4494
- permissions: "shipping_profile:read"
4524
+ permissions: "shipping_profiles:view"
4495
4525
  },
4496
4526
  children: [
4497
4527
  {
4498
4528
  path: "",
4499
- lazy: () => import("./shipping-profiles-list-LK5ZXRJG.js"),
4529
+ lazy: () => import("./shipping-profiles-list-W25ZUWGV.js"),
4500
4530
  children: [
4501
4531
  {
4502
4532
  path: "create",
4503
- handle: { permissions: "shipping_profile:create" },
4533
+ handle: { permissions: "shipping_profiles:edit" },
4504
4534
  lazy: () => import("./shipping-profile-create-FT6KK2H5.js")
4505
4535
  }
4506
4536
  ]
@@ -4513,7 +4543,7 @@ function getRouteMap({
4513
4543
  Component: Outlet4,
4514
4544
  loader,
4515
4545
  handle: {
4516
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4546
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4517
4547
  }
4518
4548
  };
4519
4549
  },
@@ -4524,7 +4554,7 @@ function getRouteMap({
4524
4554
  children: [
4525
4555
  {
4526
4556
  path: "metadata/edit",
4527
- lazy: () => import("./shipping-profile-metadata-SQFRUAIH.js")
4557
+ lazy: () => import("./shipping-profile-metadata-UEZYRBZQ.js")
4528
4558
  }
4529
4559
  ]
4530
4560
  }
@@ -4534,45 +4564,45 @@ function getRouteMap({
4534
4564
  },
4535
4565
  {
4536
4566
  path: "shipping-option-types",
4537
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4538
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4567
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4568
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4539
4569
  handle: {
4540
4570
  breadcrumb: () => t("shippingOptionTypes.domain"),
4541
- permissions: "shipping_option_type:read"
4571
+ permissions: "shipping_options:view"
4542
4572
  },
4543
4573
  children: [
4544
4574
  {
4545
4575
  path: "",
4546
- lazy: () => import("./shipping-option-type-list-5DOYVCD6.js"),
4576
+ lazy: () => import("./shipping-option-type-list-R76AQI26.js"),
4547
4577
  children: [
4548
4578
  {
4549
4579
  path: "create",
4550
- handle: { permissions: "shipping_option_type:create" },
4551
- lazy: () => import("./shipping-option-type-create-4TZVLPFU.js")
4580
+ handle: { permissions: "shipping_options:edit" },
4581
+ lazy: () => import("./shipping-option-type-create-ZVOMA222.js")
4552
4582
  }
4553
4583
  ]
4554
4584
  },
4555
4585
  {
4556
4586
  path: ":id",
4557
4587
  lazy: async () => {
4558
- const { Breadcrumb, loader } = await import("./shipping-option-type-detail-TPG7NKCT.js");
4588
+ const { Breadcrumb, loader } = await import("./shipping-option-type-detail-BKMYJMQY.js");
4559
4589
  return {
4560
4590
  Component: Outlet4,
4561
4591
  loader,
4562
4592
  handle: {
4563
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4593
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4564
4594
  }
4565
4595
  };
4566
4596
  },
4567
4597
  children: [
4568
4598
  {
4569
4599
  path: "",
4570
- lazy: () => import("./shipping-option-type-detail-TPG7NKCT.js"),
4600
+ lazy: () => import("./shipping-option-type-detail-BKMYJMQY.js"),
4571
4601
  children: [
4572
4602
  {
4573
4603
  path: "edit",
4574
- handle: { permissions: "shipping_option_type:update" },
4575
- lazy: () => import("./shipping-option-type-edit-BIWXDVMF.js")
4604
+ handle: { permissions: "shipping_options:edit" },
4605
+ lazy: () => import("./shipping-option-type-edit-CZFRAZPJ.js")
4576
4606
  }
4577
4607
  ]
4578
4608
  }
@@ -4583,23 +4613,23 @@ function getRouteMap({
4583
4613
  {
4584
4614
  path: ":location_id",
4585
4615
  lazy: async () => {
4586
- const { Breadcrumb, loader } = await import("./location-detail-FFKVKFUX.js");
4616
+ const { Breadcrumb, loader } = await import("./location-detail-74247BA4.js");
4587
4617
  return {
4588
4618
  Component: Outlet4,
4589
4619
  loader,
4590
4620
  handle: {
4591
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4621
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4592
4622
  }
4593
4623
  };
4594
4624
  },
4595
4625
  children: [
4596
4626
  {
4597
4627
  path: "",
4598
- lazy: () => import("./location-detail-FFKVKFUX.js"),
4628
+ lazy: () => import("./location-detail-74247BA4.js"),
4599
4629
  children: [
4600
4630
  {
4601
4631
  path: "edit",
4602
- handle: { permissions: "stock_location:update" },
4632
+ handle: { permissions: "stock_locations:edit" },
4603
4633
  lazy: () => import("./location-edit-XRGRJCVB.js")
4604
4634
  },
4605
4635
  {
@@ -4608,7 +4638,7 @@ function getRouteMap({
4608
4638
  },
4609
4639
  {
4610
4640
  path: "fulfillment-providers",
4611
- lazy: () => import("./location-fulfillment-providers-YY2TKMLH.js")
4641
+ lazy: () => import("./location-fulfillment-providers-JGJOTGMZ.js")
4612
4642
  },
4613
4643
  {
4614
4644
  path: "fulfillment-set/:fset_id",
@@ -4622,7 +4652,7 @@ function getRouteMap({
4622
4652
  children: [
4623
4653
  {
4624
4654
  path: "edit",
4625
- handle: { permissions: "stock_location:update" },
4655
+ handle: { permissions: "stock_locations:edit" },
4626
4656
  lazy: () => import("./location-service-zone-edit-KFG52K4W.js")
4627
4657
  },
4628
4658
  {
@@ -4634,15 +4664,15 @@ function getRouteMap({
4634
4664
  children: [
4635
4665
  {
4636
4666
  path: "create",
4637
- handle: { permissions: "shipping_option:create" },
4638
- lazy: () => import("./location-service-zone-shipping-option-create-EMPXW67L.js")
4667
+ handle: { permissions: "shipping_options:edit" },
4668
+ lazy: () => import("./location-service-zone-shipping-option-create-RYAIECRU.js")
4639
4669
  },
4640
4670
  {
4641
4671
  path: ":so_id",
4642
4672
  children: [
4643
4673
  {
4644
4674
  path: "edit",
4645
- handle: { permissions: "shipping_option:update" },
4675
+ handle: { permissions: "shipping_options:edit" },
4646
4676
  lazy: () => import("./location-service-zone-shipping-option-edit-UUIR7B5S.js")
4647
4677
  },
4648
4678
  {
@@ -4665,49 +4695,49 @@ function getRouteMap({
4665
4695
  },
4666
4696
  {
4667
4697
  path: "product-tags",
4668
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4669
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4698
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4699
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4670
4700
  handle: {
4671
4701
  breadcrumb: () => t("productTags.domain"),
4672
- permissions: "product_tag:read"
4702
+ permissions: "product_tags:view"
4673
4703
  },
4674
4704
  children: [
4675
4705
  {
4676
4706
  path: "",
4677
- lazy: () => import("./product-tag-list-GNGDIW54.js"),
4707
+ lazy: () => import("./product-tag-list-OBV7CZZL.js"),
4678
4708
  children: [
4679
4709
  {
4680
4710
  path: "create",
4681
- handle: { permissions: "product_tag:create" },
4682
- lazy: () => import("./product-tag-create-4CDCZZNR.js")
4711
+ handle: { permissions: "product_tags:edit" },
4712
+ lazy: () => import("./product-tag-create-SYOFR5EK.js")
4683
4713
  }
4684
4714
  ]
4685
4715
  },
4686
4716
  {
4687
4717
  path: ":id",
4688
4718
  lazy: async () => {
4689
- const { Breadcrumb, loader } = await import("./product-tag-detail-5YX4ET5N.js");
4719
+ const { Breadcrumb, loader } = await import("./product-tag-detail-HM2AWFGU.js");
4690
4720
  return {
4691
4721
  Component: Outlet4,
4692
4722
  loader,
4693
4723
  handle: {
4694
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4724
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4695
4725
  }
4696
4726
  };
4697
4727
  },
4698
4728
  children: [
4699
4729
  {
4700
4730
  path: "",
4701
- lazy: () => import("./product-tag-detail-5YX4ET5N.js"),
4731
+ lazy: () => import("./product-tag-detail-HM2AWFGU.js"),
4702
4732
  children: [
4703
4733
  {
4704
4734
  path: "edit",
4705
- handle: { permissions: "product_tag:update" },
4706
- lazy: () => import("./product-tag-edit-UBXKLVUN.js")
4735
+ handle: { permissions: "product_tags:edit" },
4736
+ lazy: () => import("./product-tag-edit-FJPBCFBH.js")
4707
4737
  },
4708
4738
  {
4709
4739
  path: "metadata/edit",
4710
- lazy: () => import("./product-tag-metadata-CDXKXZPM.js")
4740
+ lazy: () => import("./product-tag-metadata-WQEGISQ5.js")
4711
4741
  }
4712
4742
  ]
4713
4743
  }
@@ -4717,49 +4747,49 @@ function getRouteMap({
4717
4747
  },
4718
4748
  {
4719
4749
  path: "attributes",
4720
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4721
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4750
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4751
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4722
4752
  handle: {
4723
4753
  breadcrumb: () => t("attributes.domain"),
4724
- permissions: "product_attribute:read"
4754
+ permissions: "product_attributes:view"
4725
4755
  },
4726
4756
  children: [
4727
4757
  {
4728
4758
  path: "",
4729
- lazy: () => import("./attribute-list-MEXPF4TG.js"),
4759
+ lazy: () => import("./attribute-list-FLTRNSFI.js"),
4730
4760
  children: [
4731
4761
  {
4732
4762
  path: "create",
4733
- handle: { permissions: "product_attribute:create" },
4734
- lazy: () => import("./attribute-create-OHAZ4X75.js")
4763
+ handle: { permissions: "product_attributes:edit" },
4764
+ lazy: () => import("./attribute-create-UWLP2DZY.js")
4735
4765
  }
4736
4766
  ]
4737
4767
  },
4738
4768
  {
4739
4769
  path: ":id",
4740
4770
  lazy: async () => {
4741
- const { Breadcrumb, loader } = await import("./attribute-detail-YJ4ZZYCL.js");
4771
+ const { Breadcrumb, loader } = await import("./attribute-detail-KUJ337KW.js");
4742
4772
  return {
4743
4773
  Component: Outlet4,
4744
4774
  loader,
4745
4775
  handle: {
4746
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4776
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4747
4777
  }
4748
4778
  };
4749
4779
  },
4750
4780
  children: [
4751
4781
  {
4752
4782
  path: "",
4753
- lazy: () => import("./attribute-detail-YJ4ZZYCL.js"),
4783
+ lazy: () => import("./attribute-detail-KUJ337KW.js"),
4754
4784
  children: [
4755
4785
  {
4756
4786
  path: "edit",
4757
- handle: { permissions: "product_attribute:update" },
4758
- lazy: () => import("./attribute-edit-AAEAOP5B.js")
4787
+ handle: { permissions: "product_attributes:edit" },
4788
+ lazy: () => import("./attribute-edit-KYK4KJYP.js")
4759
4789
  },
4760
4790
  {
4761
4791
  path: "edit-possible-value",
4762
- lazy: () => import("./attribute-edit-possible-value-BJSQCTNO.js")
4792
+ lazy: () => import("./attribute-edit-possible-value-OOHDX7XL.js")
4763
4793
  },
4764
4794
  {
4765
4795
  path: "create-possible-value",
@@ -4777,20 +4807,20 @@ function getRouteMap({
4777
4807
  },
4778
4808
  {
4779
4809
  path: "product-types",
4780
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4781
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4810
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
4811
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4782
4812
  handle: {
4783
4813
  breadcrumb: () => t("productTypes.domain"),
4784
- permissions: "product_type:read"
4814
+ permissions: "product_types:view"
4785
4815
  },
4786
4816
  children: [
4787
4817
  {
4788
4818
  path: "",
4789
- lazy: () => import("./product-type-list-N3E5HQFW.js"),
4819
+ lazy: () => import("./product-type-list-LCLWJPIT.js"),
4790
4820
  children: [
4791
4821
  {
4792
4822
  path: "create",
4793
- handle: { permissions: "product_type:create" },
4823
+ handle: { permissions: "product_types:edit" },
4794
4824
  lazy: () => import("./product-type-create-BJMYBP2R.js")
4795
4825
  }
4796
4826
  ]
@@ -4798,28 +4828,28 @@ function getRouteMap({
4798
4828
  {
4799
4829
  path: ":id",
4800
4830
  lazy: async () => {
4801
- const { Breadcrumb, loader } = await import("./product-type-detail-A3MUWNM4.js");
4831
+ const { Breadcrumb, loader } = await import("./product-type-detail-D3OYCXGR.js");
4802
4832
  return {
4803
4833
  Component: Outlet4,
4804
4834
  loader,
4805
4835
  handle: {
4806
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4836
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4807
4837
  }
4808
4838
  };
4809
4839
  },
4810
4840
  children: [
4811
4841
  {
4812
4842
  path: "",
4813
- lazy: () => import("./product-type-detail-A3MUWNM4.js"),
4843
+ lazy: () => import("./product-type-detail-D3OYCXGR.js"),
4814
4844
  children: [
4815
4845
  {
4816
4846
  path: "edit",
4817
- handle: { permissions: "product_type:update" },
4847
+ handle: { permissions: "product_types:edit" },
4818
4848
  lazy: () => import("./product-type-edit-X7VSBPUG.js")
4819
4849
  },
4820
4850
  {
4821
4851
  path: "metadata/edit",
4822
- lazy: () => import("./product-type-metadata-IISED7XQ.js")
4852
+ lazy: () => import("./product-type-metadata-WCGB3U4N.js")
4823
4853
  }
4824
4854
  ]
4825
4855
  }
@@ -4829,23 +4859,23 @@ function getRouteMap({
4829
4859
  },
4830
4860
  {
4831
4861
  path: "publishable-api-keys",
4832
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4862
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4833
4863
  handle: {
4834
4864
  breadcrumb: () => t("apiKeyManagement.domain.publishable"),
4835
- permissions: "api_key:read"
4865
+ permissions: "api_keys:view"
4836
4866
  },
4837
4867
  children: [
4838
4868
  {
4839
4869
  path: "",
4840
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4870
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4841
4871
  children: [
4842
4872
  {
4843
4873
  path: "",
4844
- lazy: () => import("./api-key-management-list-T2WHT6MT.js"),
4874
+ lazy: () => import("./api-key-management-list-XV66E2LA.js"),
4845
4875
  children: [
4846
4876
  {
4847
4877
  path: "create",
4848
- handle: { permissions: "api_key:create" },
4878
+ handle: { permissions: "api_keys:edit" },
4849
4879
  lazy: () => import("./api-key-management-create-TFG4TLGM.js")
4850
4880
  }
4851
4881
  ]
@@ -4855,23 +4885,23 @@ function getRouteMap({
4855
4885
  {
4856
4886
  path: ":id",
4857
4887
  lazy: async () => {
4858
- const { Breadcrumb, loader } = await import("./api-key-management-detail-ZFA3YPJ6.js");
4888
+ const { Breadcrumb, loader } = await import("./api-key-management-detail-P5C3F2D7.js");
4859
4889
  return {
4860
4890
  Component: Outlet4,
4861
4891
  loader,
4862
4892
  handle: {
4863
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4893
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4864
4894
  }
4865
4895
  };
4866
4896
  },
4867
4897
  children: [
4868
4898
  {
4869
4899
  path: "",
4870
- lazy: () => import("./api-key-management-detail-ZFA3YPJ6.js"),
4900
+ lazy: () => import("./api-key-management-detail-P5C3F2D7.js"),
4871
4901
  children: [
4872
4902
  {
4873
4903
  path: "edit",
4874
- handle: { permissions: "api_key:update" },
4904
+ handle: { permissions: "api_keys:edit" },
4875
4905
  lazy: () => import("./api-key-management-edit-XUZJEML7.js")
4876
4906
  },
4877
4907
  {
@@ -4886,23 +4916,23 @@ function getRouteMap({
4886
4916
  },
4887
4917
  {
4888
4918
  path: "secret-api-keys",
4889
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4919
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4890
4920
  handle: {
4891
4921
  breadcrumb: () => t("apiKeyManagement.domain.secret"),
4892
- permissions: "api_key:read"
4922
+ permissions: "api_keys:view"
4893
4923
  },
4894
4924
  children: [
4895
4925
  {
4896
4926
  path: "",
4897
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4927
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4898
4928
  children: [
4899
4929
  {
4900
4930
  path: "",
4901
- lazy: () => import("./api-key-management-list-T2WHT6MT.js"),
4931
+ lazy: () => import("./api-key-management-list-XV66E2LA.js"),
4902
4932
  children: [
4903
4933
  {
4904
4934
  path: "create",
4905
- handle: { permissions: "api_key:create" },
4935
+ handle: { permissions: "api_keys:edit" },
4906
4936
  lazy: () => import("./api-key-management-create-TFG4TLGM.js")
4907
4937
  }
4908
4938
  ]
@@ -4912,23 +4942,23 @@ function getRouteMap({
4912
4942
  {
4913
4943
  path: ":id",
4914
4944
  lazy: async () => {
4915
- const { Breadcrumb, loader } = await import("./api-key-management-detail-ZFA3YPJ6.js");
4945
+ const { Breadcrumb, loader } = await import("./api-key-management-detail-P5C3F2D7.js");
4916
4946
  return {
4917
4947
  Component: Outlet4,
4918
4948
  loader,
4919
4949
  handle: {
4920
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4950
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
4921
4951
  }
4922
4952
  };
4923
4953
  },
4924
4954
  children: [
4925
4955
  {
4926
4956
  path: "",
4927
- lazy: () => import("./api-key-management-detail-ZFA3YPJ6.js"),
4957
+ lazy: () => import("./api-key-management-detail-P5C3F2D7.js"),
4928
4958
  children: [
4929
4959
  {
4930
4960
  path: "edit",
4931
- handle: { permissions: "api_key:update" },
4961
+ handle: { permissions: "api_keys:edit" },
4932
4962
  lazy: () => import("./api-key-management-edit-XUZJEML7.js")
4933
4963
  }
4934
4964
  ]
@@ -4939,20 +4969,20 @@ function getRouteMap({
4939
4969
  },
4940
4970
  {
4941
4971
  path: "tax-regions",
4942
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
4972
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
4943
4973
  handle: {
4944
4974
  breadcrumb: () => t("taxRegions.domain"),
4945
- permissions: "tax_region:read"
4975
+ permissions: "tax_regions:view"
4946
4976
  },
4947
4977
  children: [
4948
4978
  {
4949
4979
  path: "",
4950
- lazy: () => import("./tax-region-list-BXLYIYQT.js"),
4980
+ lazy: () => import("./tax-region-list-ETNXAC2A.js"),
4951
4981
  children: [
4952
4982
  {
4953
4983
  path: "create",
4954
- handle: { permissions: "tax_region:create" },
4955
- lazy: () => import("./tax-region-create-Q2QYTIHC.js")
4984
+ handle: { permissions: "tax_regions:edit" },
4985
+ lazy: () => import("./tax-region-create-OGVIIVMO.js")
4956
4986
  }
4957
4987
  ]
4958
4988
  },
@@ -4961,13 +4991,13 @@ function getRouteMap({
4961
4991
  Component: Outlet4,
4962
4992
  loader: taxRegionLoader,
4963
4993
  handle: {
4964
- breadcrumb: (match) => /* @__PURE__ */ jsx14(TaxRegionDetailBreadcrumb, { ...match })
4994
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(TaxRegionDetailBreadcrumb, { ...match })
4965
4995
  },
4966
4996
  children: [
4967
4997
  {
4968
4998
  path: "",
4969
4999
  lazy: async () => {
4970
- const { Component } = await import("./tax-region-detail-AJ2O7YKC.js");
5000
+ const { Component } = await import("./tax-region-detail-O4DZFMT5.js");
4971
5001
  return {
4972
5002
  Component
4973
5003
  };
@@ -4975,8 +5005,8 @@ function getRouteMap({
4975
5005
  children: [
4976
5006
  {
4977
5007
  path: "edit",
4978
- handle: { permissions: "tax_region:update" },
4979
- lazy: () => import("./tax-region-edit-A6C4VTTZ.js")
5008
+ handle: { permissions: "tax_regions:edit" },
5009
+ lazy: () => import("./tax-region-edit-DUBTSOQ4.js")
4980
5010
  },
4981
5011
  {
4982
5012
  path: "provinces/create",
@@ -4984,11 +5014,11 @@ function getRouteMap({
4984
5014
  },
4985
5015
  {
4986
5016
  path: "overrides/create",
4987
- lazy: () => import("./tax-region-tax-override-create-IPHOMPVG.js")
5017
+ lazy: () => import("./tax-region-tax-override-create-NMLHLS7J.js")
4988
5018
  },
4989
5019
  {
4990
5020
  path: "overrides/:tax_rate_id/edit",
4991
- lazy: () => import("./tax-region-tax-override-edit-IV57DNYU.js")
5021
+ lazy: () => import("./tax-region-tax-override-edit-4SJ3DRAF.js")
4992
5022
  },
4993
5023
  {
4994
5024
  path: "tax-rates/create",
@@ -5000,26 +5030,26 @@ function getRouteMap({
5000
5030
  },
5001
5031
  {
5002
5032
  path: "metadata/edit",
5003
- lazy: () => import("./tax-region-metadata-6QI4VPCV.js")
5033
+ lazy: () => import("./tax-region-metadata-KHODQCDW.js")
5004
5034
  }
5005
5035
  ]
5006
5036
  },
5007
5037
  {
5008
5038
  path: "provinces/:province_id",
5009
5039
  lazy: async () => {
5010
- const { Breadcrumb, loader } = await import("./tax-region-province-detail-SZAUBE23.js");
5040
+ const { Breadcrumb, loader } = await import("./tax-region-province-detail-LOOLLFNO.js");
5011
5041
  return {
5012
5042
  Component: Outlet4,
5013
5043
  loader,
5014
5044
  handle: {
5015
- breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
5045
+ breadcrumb: (match) => /* @__PURE__ */ jsx15(Breadcrumb, { ...match })
5016
5046
  }
5017
5047
  };
5018
5048
  },
5019
5049
  children: [
5020
5050
  {
5021
5051
  path: "",
5022
- lazy: () => import("./tax-region-province-detail-SZAUBE23.js"),
5052
+ lazy: () => import("./tax-region-province-detail-LOOLLFNO.js"),
5023
5053
  children: [
5024
5054
  {
5025
5055
  path: "tax-rates/create",
@@ -5031,11 +5061,11 @@ function getRouteMap({
5031
5061
  },
5032
5062
  {
5033
5063
  path: "overrides/create",
5034
- lazy: () => import("./tax-region-tax-override-create-IPHOMPVG.js")
5064
+ lazy: () => import("./tax-region-tax-override-create-NMLHLS7J.js")
5035
5065
  },
5036
5066
  {
5037
5067
  path: "overrides/:tax_rate_id/edit",
5038
- lazy: () => import("./tax-region-tax-override-edit-IV57DNYU.js")
5068
+ lazy: () => import("./tax-region-tax-override-edit-4SJ3DRAF.js")
5039
5069
  }
5040
5070
  ]
5041
5071
  }
@@ -5047,19 +5077,19 @@ function getRouteMap({
5047
5077
  },
5048
5078
  {
5049
5079
  path: "return-reasons",
5050
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
5080
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
5051
5081
  handle: {
5052
5082
  breadcrumb: () => t("returnReasons.domain"),
5053
- permissions: "return_reason:read"
5083
+ permissions: "return_reasons:view"
5054
5084
  },
5055
5085
  children: [
5056
5086
  {
5057
5087
  path: "",
5058
- lazy: () => import("./return-reason-list-6MQKG72S.js"),
5088
+ lazy: () => import("./return-reason-list-PKAJDA6A.js"),
5059
5089
  children: [
5060
5090
  {
5061
5091
  path: "create",
5062
- handle: { permissions: "return_reason:create" },
5092
+ handle: { permissions: "return_reasons:edit" },
5063
5093
  lazy: () => import("./return-reason-create-GNUVNYS5.js")
5064
5094
  },
5065
5095
  {
@@ -5067,7 +5097,7 @@ function getRouteMap({
5067
5097
  children: [
5068
5098
  {
5069
5099
  path: "edit",
5070
- handle: { permissions: "return_reason:update" },
5100
+ handle: { permissions: "return_reasons:edit" },
5071
5101
  lazy: () => import("./return-reason-edit-5ZICBOB3.js")
5072
5102
  }
5073
5103
  ]
@@ -5078,28 +5108,28 @@ function getRouteMap({
5078
5108
  },
5079
5109
  {
5080
5110
  path: "refund-reasons",
5081
- element: /* @__PURE__ */ jsx14(Outlet4, {}),
5111
+ element: /* @__PURE__ */ jsx15(Outlet4, {}),
5082
5112
  handle: {
5083
5113
  breadcrumb: () => t("refundReasons.domain"),
5084
- permissions: "refund_reason:read"
5114
+ permissions: "refund_reasons:view"
5085
5115
  },
5086
5116
  children: [
5087
5117
  {
5088
5118
  path: "",
5089
- lazy: () => import("./refund-reason-list-WGRCZWXL.js"),
5119
+ lazy: () => import("./refund-reason-list-G5QJEYPW.js"),
5090
5120
  children: [
5091
5121
  {
5092
5122
  path: "create",
5093
- handle: { permissions: "refund_reason:create" },
5094
- lazy: () => import("./refund-reason-create-DAOTHCMY.js")
5123
+ handle: { permissions: "refund_reasons:edit" },
5124
+ lazy: () => import("./refund-reason-create-TOH2D225.js")
5095
5125
  },
5096
5126
  {
5097
5127
  path: ":id",
5098
5128
  children: [
5099
5129
  {
5100
5130
  path: "edit",
5101
- handle: { permissions: "refund_reason:update" },
5102
- lazy: () => import("./refund-reason-edit-M3AKWJZR.js")
5131
+ handle: { permissions: "refund_reasons:edit" },
5132
+ lazy: () => import("./refund-reason-edit-B32E4WHH.js")
5103
5133
  }
5104
5134
  ]
5105
5135
  }
@@ -5116,18 +5146,18 @@ function getRouteMap({
5116
5146
  ]
5117
5147
  },
5118
5148
  {
5119
- element: /* @__PURE__ */ jsx14(PublicLayout, {}),
5149
+ element: /* @__PURE__ */ jsx15(PublicLayout, {}),
5120
5150
  children: [
5121
5151
  {
5122
- errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
5152
+ errorElement: /* @__PURE__ */ jsx15(ErrorBoundary, {}),
5123
5153
  children: [
5124
5154
  {
5125
5155
  path: "/login",
5126
- lazy: () => import("./login-ZCAW7Z7Q.js")
5156
+ lazy: () => import("./login-2NBVRH4U.js")
5127
5157
  },
5128
5158
  {
5129
5159
  path: "/reset-password",
5130
- lazy: () => import("./reset-password-EUAOKJDU.js")
5160
+ lazy: () => import("./reset-password-RJ5VSBQV.js")
5131
5161
  },
5132
5162
  {
5133
5163
  path: "/invite",
@@ -5147,7 +5177,7 @@ function getRouteMap({
5147
5177
 
5148
5178
  // src/app.tsx
5149
5179
  import { useMemo as useMemo7 } from "react";
5150
- import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
5180
+ import { jsx as jsx16, jsxs as jsxs9 } from "react/jsx-runtime";
5151
5181
  function App() {
5152
5182
  const routes = useMemo7(() => {
5153
5183
  return {
@@ -5156,15 +5186,15 @@ function App() {
5156
5186
  publicRoutes: createRouteMap(getRoutesByType(customRoutes, "public"))
5157
5187
  };
5158
5188
  }, []);
5159
- return /* @__PURE__ */ jsx15(TooltipProvider, { children: /* @__PURE__ */ jsx15(HelmetProvider, { children: /* @__PURE__ */ jsx15(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx15(ThemeProvider, { children: /* @__PURE__ */ jsx15(FeatureFlagProvider, { children: /* @__PURE__ */ jsxs9(
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(
5160
5190
  ExtensionProvider,
5161
5191
  {
5162
5192
  widgets,
5163
5193
  navigation,
5164
5194
  customFields,
5165
5195
  children: [
5166
- /* @__PURE__ */ jsx15(I18n, {}),
5167
- /* @__PURE__ */ jsx15(I18nProvider, { children: /* @__PURE__ */ jsx15(
5196
+ /* @__PURE__ */ jsx16(I18n, {}),
5197
+ /* @__PURE__ */ jsx16(I18nProvider, { children: /* @__PURE__ */ jsx16(
5168
5198
  RouterProvider,
5169
5199
  {
5170
5200
  router: createBrowserRouter(getRouteMap(routes), {
@@ -5172,7 +5202,7 @@ function App() {
5172
5202
  })
5173
5203
  }
5174
5204
  ) }),
5175
- /* @__PURE__ */ jsx15(Toaster, {})
5205
+ /* @__PURE__ */ jsx16(Toaster, {})
5176
5206
  ]
5177
5207
  }
5178
5208
  ) }) }) }) }) });
@@ -5182,13 +5212,8 @@ function App() {
5182
5212
  import {
5183
5213
  PermissionGuard,
5184
5214
  PermissionsProvider as PermissionsProvider2,
5185
- PermissionsRequirement,
5186
- PermissionsRequirementsProvider,
5187
- RequiredPermissionsSection,
5188
5215
  RoutePermissionGuard as RoutePermissionGuard2,
5189
5216
  usePermissions as usePermissions3,
5190
- useRegisterPermissions,
5191
- useRequiredPermissions,
5192
5217
  useResourcePermissions
5193
5218
  } from "@mercurjs/dashboard-shared";
5194
5219
  export {
@@ -5201,9 +5226,6 @@ export {
5201
5226
  PRODUCT_DETAIL_QUERY,
5202
5227
  PermissionGuard,
5203
5228
  PermissionsProvider2 as PermissionsProvider,
5204
- PermissionsRequirement,
5205
- PermissionsRequirementsProvider,
5206
- RequiredPermissionsSection,
5207
5229
  RoutePermissionGuard2 as RoutePermissionGuard,
5208
5230
  SingleColumnPage,
5209
5231
  SwitchBox,
@@ -5212,8 +5234,6 @@ export {
5212
5234
  defineTabMeta,
5213
5235
  useDataTable,
5214
5236
  usePermissions3 as usePermissions,
5215
- useRegisterPermissions,
5216
- useRequiredPermissions,
5217
5237
  useResourcePermissions,
5218
5238
  useTabbedForm
5219
5239
  };