@mercurjs/admin 2.3.5 → 2.3.6-canary.1

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 (77) hide show
  1. package/dist/{attribute-create-7YTZXJV4.js → attribute-create-C435ZHB2.js} +2 -2
  2. package/dist/{attribute-detail-SXF6Z3B7.js → attribute-detail-SPYDB3I5.js} +1 -1
  3. package/dist/{attribute-edit-4HMUAWXB.js → attribute-edit-AAEAOP5B.js} +2 -2
  4. package/dist/{attribute-edit-possible-value-RVXOKCBF.js → attribute-edit-possible-value-BJSQCTNO.js} +2 -2
  5. package/dist/{category-detail-ADUIZLD2.js → category-detail-GVEDFNM7.js} +5 -5
  6. package/dist/{category-products-QKO7R74I.js → category-products-VVF5NXCE.js} +4 -4
  7. package/dist/{chunk-BJT7DXPM.js → chunk-3KRUGI6C.js} +1 -1
  8. package/dist/{chunk-3AJ26Y7Y.js → chunk-5SNW2DCY.js} +2 -2
  9. package/dist/{chunk-O4VAUFC4.js → chunk-5TIADRZ7.js} +1 -1
  10. package/dist/{chunk-43UJRKIQ.js → chunk-6AQYZWOC.js} +3 -3
  11. package/dist/{chunk-P2L3454Z.js → chunk-6P7HBAUM.js} +2 -2
  12. package/dist/{chunk-2PEUXNN2.js → chunk-6UYV7B42.js} +1 -1
  13. package/dist/{chunk-XAF5YRCD.js → chunk-7ECQXPOG.js} +2 -1
  14. package/dist/{chunk-MJUHCGUM.js → chunk-7I7G5ZJE.js} +2 -2
  15. package/dist/{chunk-X66JG3MJ.js → chunk-7YBZ2PEZ.js} +2 -2
  16. package/dist/{chunk-XUSQNYGA.js → chunk-A2UTT4YX.js} +1 -1
  17. package/dist/{chunk-FOOFDZXP.js → chunk-B6KT5U7W.js} +2 -2
  18. package/dist/{chunk-GLMIYNXS.js → chunk-BQZ5P3IA.js} +3 -3
  19. package/dist/{chunk-P2LX6VRL.js → chunk-BZPOERWW.js} +12 -8
  20. package/dist/{chunk-SRF2L4MR.js → chunk-D7E6HL5O.js} +2 -2
  21. package/dist/{chunk-XG6V24T7.js → chunk-EJGGX3ON.js} +2 -2
  22. package/dist/{chunk-6CIWAMKA.js → chunk-ENKVW7JW.js} +4 -4
  23. package/dist/{chunk-GAOSCJQT.js → chunk-G2KWNZV6.js} +1 -1
  24. package/dist/{chunk-AYDWW5IL.js → chunk-HFM6N7R3.js} +2 -2
  25. package/dist/{chunk-4WCI7Z2E.js → chunk-KWFSBUD6.js} +1405 -1396
  26. package/dist/{chunk-GDLOID54.js → chunk-MM5RRCPX.js} +1 -1
  27. package/dist/{chunk-3NZGVRWE.js → chunk-NCDKLTDP.js} +3 -3
  28. package/dist/{chunk-XY22AUN2.js → chunk-NQEXDESI.js} +2 -2
  29. package/dist/{chunk-7CUMT7BE.js → chunk-OWWE5Y6T.js} +1 -1
  30. package/dist/{chunk-EPIFCCE7.js → chunk-QEBISX7V.js} +1 -1
  31. package/dist/{chunk-YBFLE6HW.js → chunk-R2ODJ3D3.js} +2 -2
  32. package/dist/{chunk-CVHSVKHR.js → chunk-VE5FQQTG.js} +1 -1
  33. package/dist/{chunk-RJTMPBRN.js → chunk-VVIJHBKM.js} +1 -1
  34. package/dist/{chunk-OPLFDHKG.js → chunk-W62DN2I2.js} +5 -5
  35. package/dist/{chunk-CVTRLAPB.js → chunk-XMIDY45X.js} +1 -1
  36. package/dist/{chunk-DIF3LIGG.js → chunk-YUL4ES52.js} +1 -1
  37. package/dist/{collection-add-products-O57OBPNL.js → collection-add-products-HCY2YT3W.js} +4 -4
  38. package/dist/{collection-detail-MTKPUOT5.js → collection-detail-QAEPOJZX.js} +5 -5
  39. package/dist/{collection-list-KHLO6D2Q.js → collection-list-AWLZYMWL.js} +4 -4
  40. package/dist/index.css +45 -0
  41. package/dist/index.d.ts +1 -1
  42. package/dist/index.js +583 -586
  43. package/dist/{inventory-stock-ASIGAL2Z.js → inventory-stock-PZ2ENOGF.js} +2 -2
  44. package/dist/{location-fulfillment-providers-JSO4KA2L.js → location-fulfillment-providers-XIYMIEFN.js} +2 -2
  45. package/dist/{offer-detail-page-DYTD4MGP.js → offer-detail-page-WWEUCEFC.js} +1 -1
  46. package/dist/{offer-variant-detail-page-YBQ3ZDCK.js → offer-variant-detail-page-FVJE5WLV.js} +1 -1
  47. package/dist/{offers-ICELN2UZ.js → offers-VG334CFD.js} +3 -3
  48. package/dist/{order-list-ZACAUPST.js → order-list-I6JZT6JK.js} +2 -2
  49. package/dist/pages/index.d.ts +365 -1658
  50. package/dist/pages/index.js +27 -27
  51. package/dist/{price-list-create-2KEYK2ER.js → price-list-create-JFXLTNOJ.js} +5 -5
  52. package/dist/{price-list-detail-NTQSV6BX.js → price-list-detail-5YTX66KF.js} +4 -4
  53. package/dist/{price-list-prices-add-IRV2A5IW.js → price-list-prices-add-HVTEQOWQ.js} +5 -5
  54. package/dist/{price-list-prices-edit-QQUJPIUM.js → price-list-prices-edit-OVHIDATP.js} +1 -1
  55. package/dist/{product-add-existing-attributes-2HXY7KGZ.js → product-add-existing-attributes-2UFTXE2N.js} +2 -2
  56. package/dist/{product-create-2YWZX7DK.js → product-create-SHIGHLQN.js} +3 -3
  57. package/dist/{product-create-attribute-CXCDBUF6.js → product-create-attribute-QYRCPUFC.js} +1 -1
  58. package/dist/{product-create-variant-E2SEV4Q4.js → product-create-variant-MZLHG5JF.js} +3 -3
  59. package/dist/{product-detail-HHOTRDUN.js → product-detail-UGSTCK7J.js} +2 -2
  60. package/dist/{product-list-6AHYHRAJ.js → product-list-XDJB3HX7.js} +5 -5
  61. package/dist/{product-media-RHIHFK55.js → product-media-CO3F57JT.js} +2 -2
  62. package/dist/{product-tag-detail-MTCL2XBF.js → product-tag-detail-CDSYBTAM.js} +6 -6
  63. package/dist/{product-tag-list-LTBWGZWV.js → product-tag-list-RKLCU3UE.js} +6 -6
  64. package/dist/{product-type-detail-GOG3FDY5.js → product-type-detail-IY7TWXUQ.js} +5 -5
  65. package/dist/{product-variant-edit-TB2VC63E.js → product-variant-edit-4DPXTYPT.js} +3 -3
  66. package/dist/{refund-reason-list-EBG7CCYY.js → refund-reason-list-ABRFC3OQ.js} +5 -5
  67. package/dist/{return-reason-list-OQBRH3PU.js → return-reason-list-6MQKG72S.js} +5 -5
  68. package/dist/{sales-channel-add-products-BGV3V327.js → sales-channel-add-products-MPJ7UCEJ.js} +4 -4
  69. package/dist/{sales-channel-detail-V2VBFNLX.js → sales-channel-detail-F37LBP6R.js} +5 -5
  70. package/dist/{store-bulk-edit-3RHVHSYO.js → store-bulk-edit-NBWZMDP7.js} +1 -1
  71. package/dist/{store-details-TEWRGD33.js → store-details-ITYKAZSI.js} +5 -5
  72. package/dist/{store-edit-NVILHPML.js → store-edit-NZMI7PNS.js} +2 -2
  73. package/dist/{store-list-IHQUDNWF.js → store-list-RXPN3VVO.js} +4 -4
  74. package/dist/{store-member-invite-FUWVTF6K.js → store-member-invite-IEUG54XA.js} +1 -1
  75. package/dist/{tax-region-tax-override-create-W7WLHFR3.js → tax-region-tax-override-create-Z6S43XQ6.js} +6 -6
  76. package/dist/{tax-region-tax-override-edit-GPE6K7HE.js → tax-region-tax-override-edit-4EOURL2M.js} +6 -6
  77. package/package.json +12 -12
package/dist/index.js CHANGED
@@ -223,52 +223,23 @@ var useTheme = () => {
223
223
  return context;
224
224
  };
225
225
 
226
- // src/providers/sidebar-provider/sidebar-provider.tsx
227
- import { useEffect as useEffect2, useState as useState2 } from "react";
228
- import { useLocation } from "react-router-dom";
229
-
230
- // src/providers/sidebar-provider/sidebar-context.tsx
231
- import { createContext as createContext2 } from "react";
232
- var SidebarContext = createContext2(null);
233
-
234
- // src/providers/sidebar-provider/sidebar-provider.tsx
235
- import { jsx as jsx2 } from "react/jsx-runtime";
236
- var SidebarProvider = ({ children }) => {
237
- const [desktop, setDesktop] = useState2(true);
238
- const [mobile, setMobile] = useState2(false);
239
- const { pathname } = useLocation();
240
- const toggle = (view) => {
241
- if (view === "desktop") {
242
- setDesktop(!desktop);
243
- } else {
244
- setMobile(!mobile);
245
- }
246
- };
247
- useEffect2(() => {
248
- setMobile(false);
249
- }, [pathname]);
250
- return /* @__PURE__ */ jsx2(SidebarContext.Provider, { value: { desktop, mobile, toggle }, children });
251
- };
252
-
253
- // src/providers/sidebar-provider/use-sidebar.tsx
254
- import { useContext as useContext2 } from "react";
255
- var useSidebar = () => {
256
- const context = useContext2(SidebarContext);
257
- if (!context) {
258
- throw new Error("useSidebar must be used within a SidebarProvider");
259
- }
260
- return context;
261
- };
226
+ // src/providers/sidebar-provider/index.ts
227
+ import {
228
+ SIDEBAR_RAIL_FADE,
229
+ SidebarProvider,
230
+ useCollapsedSidebar,
231
+ useSidebar
232
+ } from "@mercurjs/dashboard-shared";
262
233
 
263
234
  // src/providers/keybind-provider/hooks.tsx
264
235
  import { default as debounceFn } from "lodash.debounce";
265
- import { useCallback, useContext as useContext3, useEffect as useEffect3, useState as useState3 } from "react";
236
+ import { useCallback, useContext as useContext2, useEffect as useEffect2, useState as useState2 } from "react";
266
237
  import { useTranslation } from "react-i18next";
267
238
  import { useNavigate } from "react-router-dom";
268
239
 
269
240
  // src/providers/keybind-provider/keybind-context.tsx
270
- import { createContext as createContext3 } from "react";
271
- var KeybindContext = createContext3(null);
241
+ import { createContext as createContext2 } from "react";
242
+ var KeybindContext = createContext2(null);
272
243
 
273
244
  // src/providers/keybind-provider/utils.ts
274
245
  var findFirstPlatformMatch = (keys) => {
@@ -336,7 +307,7 @@ var useShortcuts = ({
336
307
  shortcuts = [],
337
308
  debounce
338
309
  }) => {
339
- const [keys, setKeys] = useState3([]);
310
+ const [keys, setKeys] = useState2([]);
340
311
  const navigate = useNavigate();
341
312
  const removeKeys = useCallback(
342
313
  debounceFn(() => setKeys([]), debounce),
@@ -357,14 +328,14 @@ var useShortcuts = ({
357
328
  }, debounce / 2),
358
329
  []
359
330
  );
360
- useEffect3(() => {
331
+ useEffect2(() => {
361
332
  if (keys.length > 0 && shortcuts.length > 0) {
362
333
  const shortcut = findShortcut(shortcuts, keys);
363
334
  invokeShortcut(shortcut);
364
335
  }
365
336
  return () => invokeShortcut.cancel();
366
337
  }, [keys, shortcuts, invokeShortcut]);
367
- useEffect3(() => {
338
+ useEffect2(() => {
368
339
  const listener = (event) => {
369
340
  const target = event.target;
370
341
  if (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.contentEditable === "true") {
@@ -521,14 +492,14 @@ var useGlobalShortcuts = () => {
521
492
  };
522
493
 
523
494
  // src/providers/keybind-provider/keybind-provider.tsx
524
- import { useCallback as useCallback2, useMemo, useState as useState4 } from "react";
525
- import { jsx as jsx3 } from "react/jsx-runtime";
495
+ import { useCallback as useCallback2, useMemo, useState as useState3 } from "react";
496
+ import { jsx as jsx2 } from "react/jsx-runtime";
526
497
  var KeybindProvider = ({
527
498
  shortcuts,
528
499
  debounce = 500,
529
500
  children
530
501
  }) => {
531
- const [storeShortcuts, setStoreCommands] = useState4(
502
+ const [storeShortcuts, setStoreCommands] = useState3(
532
503
  shortcuts.map((shr) => getShortcutWithDefaultValues(shr))
533
504
  );
534
505
  const registerShortcut = useCallback2(
@@ -557,11 +528,11 @@ var KeybindProvider = ({
557
528
  }),
558
529
  [storeShortcuts, registerShortcut, getKeysByPlatform]
559
530
  );
560
- return /* @__PURE__ */ jsx3(KeybindContext.Provider, { value: commandsContext, children });
531
+ return /* @__PURE__ */ jsx2(KeybindContext.Provider, { value: commandsContext, children });
561
532
  };
562
533
 
563
534
  // src/providers/search-provider/search-provider.tsx
564
- import { useEffect as useEffect6, useState as useState7 } from "react";
535
+ import { useEffect as useEffect5, useState as useState6 } from "react";
565
536
 
566
537
  // src/components/search/search.tsx
567
538
  import {
@@ -580,14 +551,14 @@ import {
580
551
  forwardRef,
581
552
  Fragment,
582
553
  useCallback as useCallback4,
583
- useEffect as useEffect5,
554
+ useEffect as useEffect4,
584
555
  useImperativeHandle,
585
556
  useMemo as useMemo3,
586
557
  useRef,
587
- useState as useState6
558
+ useState as useState5
588
559
  } from "react";
589
560
  import { useTranslation as useTranslation3 } from "react-i18next";
590
- import { useLocation as useLocation2, useNavigate as useNavigate2 } from "react-router-dom";
561
+ import { useLocation, useNavigate as useNavigate2 } from "react-router-dom";
591
562
  import {
592
563
  ArrowUturnLeft,
593
564
  MagnifyingGlass,
@@ -621,7 +592,7 @@ var SEARCH_LIMIT_INCREMENT = 20;
621
592
 
622
593
  // src/components/search/use-search-results.tsx
623
594
  import { keepPreviousData } from "@tanstack/react-query";
624
- import { useCallback as useCallback3, useEffect as useEffect4, useMemo as useMemo2, useState as useState5 } from "react";
595
+ import { useCallback as useCallback3, useEffect as useEffect3, useMemo as useMemo2, useState as useState4 } from "react";
625
596
  import { useTranslation as useTranslation2 } from "react-i18next";
626
597
  var useSearchResults = ({
627
598
  q,
@@ -885,8 +856,8 @@ var useDynamicSearchResults = (currentArea, limit, q) => {
885
856
  };
886
857
  };
887
858
  var useDebouncedSearch = (value, delay) => {
888
- const [debouncedValue, setDebouncedValue] = useState5(value);
889
- useEffect4(() => {
859
+ const [debouncedValue, setDebouncedValue] = useState4(value);
860
+ useEffect3(() => {
890
861
  const handler = setTimeout(() => {
891
862
  setDebouncedValue(value);
892
863
  }, delay);
@@ -1050,13 +1021,13 @@ function transformDynamicSearchResults(type, limit, t2, response) {
1050
1021
  }
1051
1022
 
1052
1023
  // src/components/search/search.tsx
1053
- import { jsx as jsx4, jsxs } from "react/jsx-runtime";
1024
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
1054
1025
  var Search = () => {
1055
- const [area, setArea] = useState6("all");
1056
- const [search, setSearch] = useState6("");
1057
- const [limit, setLimit] = useState6(DEFAULT_SEARCH_LIMIT);
1026
+ const [area, setArea] = useState5("all");
1027
+ const [search, setSearch] = useState5("");
1028
+ const [limit, setLimit] = useState5(DEFAULT_SEARCH_LIMIT);
1058
1029
  const { open, onOpenChange } = useSearch();
1059
- const location = useLocation2();
1030
+ const location = useLocation();
1060
1031
  const { t: t2 } = useTranslation3();
1061
1032
  const navigate = useNavigate2();
1062
1033
  const inputRef = useRef(null);
@@ -1084,7 +1055,7 @@ var Search = () => {
1084
1055
  },
1085
1056
  [onOpenChange, handleReset]
1086
1057
  );
1087
- useEffect5(() => {
1058
+ useEffect4(() => {
1088
1059
  handleOpenChange(false);
1089
1060
  }, [location.pathname, handleOpenChange]);
1090
1061
  const handleSelect = (item) => {
@@ -1134,7 +1105,7 @@ var Search = () => {
1134
1105
  return isFetching && !dynamicResults.length && !filteredStaticResults.length;
1135
1106
  }, [isFetching, dynamicResults, filteredStaticResults]);
1136
1107
  return /* @__PURE__ */ jsxs(CommandDialog, { open, onOpenChange: handleOpenChange, children: [
1137
- /* @__PURE__ */ jsx4(
1108
+ /* @__PURE__ */ jsx3(
1138
1109
  CommandInput,
1139
1110
  {
1140
1111
  isFetching,
@@ -1148,18 +1119,18 @@ var Search = () => {
1148
1119
  }
1149
1120
  ),
1150
1121
  /* @__PURE__ */ jsxs(CommandList, { ref: listRef, children: [
1151
- showLoading && /* @__PURE__ */ jsx4(CommandLoading, {}),
1122
+ showLoading && /* @__PURE__ */ jsx3(CommandLoading, {}),
1152
1123
  dynamicResults.map((group) => {
1153
1124
  return /* @__PURE__ */ jsxs(CommandGroup, { heading: group.title, children: [
1154
1125
  group.items.map((item) => {
1155
- return /* @__PURE__ */ jsx4(
1126
+ return /* @__PURE__ */ jsx3(
1156
1127
  CommandItem,
1157
1128
  {
1158
1129
  onSelect: () => handleSelect(item),
1159
1130
  value: item.value,
1160
1131
  className: "flex items-center justify-between",
1161
1132
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
1162
- item.thumbnail && /* @__PURE__ */ jsx4(
1133
+ item.thumbnail && /* @__PURE__ */ jsx3(
1163
1134
  Thumbnail,
1164
1135
  {
1165
1136
  alt: item.title,
@@ -1167,34 +1138,34 @@ var Search = () => {
1167
1138
  size: "small"
1168
1139
  }
1169
1140
  ),
1170
- /* @__PURE__ */ jsx4("span", { children: item.title }),
1171
- item.subtitle && /* @__PURE__ */ jsx4("span", { className: "text-ui-fg-muted", children: item.subtitle })
1141
+ /* @__PURE__ */ jsx3("span", { children: item.title }),
1142
+ item.subtitle && /* @__PURE__ */ jsx3("span", { className: "text-ui-fg-muted", children: item.subtitle })
1172
1143
  ] })
1173
1144
  },
1174
1145
  item.id
1175
1146
  );
1176
1147
  }),
1177
- group.hasMore && area === "all" && /* @__PURE__ */ jsx4(
1148
+ group.hasMore && area === "all" && /* @__PURE__ */ jsx3(
1178
1149
  CommandItem,
1179
1150
  {
1180
1151
  onSelect: () => handleShowMore(group.area),
1181
1152
  hidden: true,
1182
1153
  value: `${group.title}:show:more`,
1183
1154
  children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-muted flex items-center gap-x-3", children: [
1184
- /* @__PURE__ */ jsx4(Plus, {}),
1185
- /* @__PURE__ */ jsx4(Text, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.showMore") })
1155
+ /* @__PURE__ */ jsx3(Plus, {}),
1156
+ /* @__PURE__ */ jsx3(Text, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.showMore") })
1186
1157
  ] })
1187
1158
  }
1188
1159
  ),
1189
- group.hasMore && area === group.area && /* @__PURE__ */ jsx4(
1160
+ group.hasMore && area === group.area && /* @__PURE__ */ jsx3(
1190
1161
  CommandItem,
1191
1162
  {
1192
1163
  onSelect: handleLoadMore,
1193
1164
  hidden: true,
1194
1165
  value: `${group.title}:load:more`,
1195
1166
  children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-muted flex items-center gap-x-3", children: [
1196
- /* @__PURE__ */ jsx4(Plus, {}),
1197
- /* @__PURE__ */ jsx4(Text, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.loadMore", {
1167
+ /* @__PURE__ */ jsx3(Plus, {}),
1168
+ /* @__PURE__ */ jsx3(Text, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.loadMore", {
1198
1169
  count: Math.min(
1199
1170
  SEARCH_LIMIT_INCREMENT,
1200
1171
  group.count - limit
@@ -1206,7 +1177,7 @@ var Search = () => {
1206
1177
  ] }, group.title);
1207
1178
  }),
1208
1179
  filteredStaticResults.map((group) => {
1209
- return /* @__PURE__ */ jsx4(
1180
+ return /* @__PURE__ */ jsx3(
1210
1181
  CommandGroup,
1211
1182
  {
1212
1183
  heading: t2(`app.keyboardShortcuts.${group.title}`),
@@ -1217,15 +1188,15 @@ var Search = () => {
1217
1188
  onSelect: () => handleSelect(item),
1218
1189
  className: "flex items-center justify-between",
1219
1190
  children: [
1220
- /* @__PURE__ */ jsx4("span", { children: item.label }),
1221
- /* @__PURE__ */ jsx4("div", { className: "flex items-center gap-x-1.5", children: item.keys.Mac?.map((key, index) => {
1191
+ /* @__PURE__ */ jsx3("span", { children: item.label }),
1192
+ /* @__PURE__ */ jsx3("div", { className: "flex items-center gap-x-1.5", children: item.keys.Mac?.map((key, index) => {
1222
1193
  return /* @__PURE__ */ jsxs(
1223
1194
  "div",
1224
1195
  {
1225
1196
  className: "flex items-center gap-x-1",
1226
1197
  children: [
1227
- /* @__PURE__ */ jsx4(Kbd, { children: key }),
1228
- index < (item.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx4("span", { className: "txt-compact-xsmall text-ui-fg-subtle", children: t2("app.keyboardShortcuts.then") })
1198
+ /* @__PURE__ */ jsx3(Kbd, { children: key }),
1199
+ index < (item.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx3("span", { className: "txt-compact-xsmall text-ui-fg-subtle", children: t2("app.keyboardShortcuts.then") })
1229
1200
  ]
1230
1201
  },
1231
1202
  index
@@ -1240,11 +1211,11 @@ var Search = () => {
1240
1211
  group.title
1241
1212
  );
1242
1213
  }),
1243
- !showLoading && /* @__PURE__ */ jsx4(CommandEmpty, { q: search })
1214
+ !showLoading && /* @__PURE__ */ jsx3(CommandEmpty, { q: search })
1244
1215
  ] })
1245
1216
  ] });
1246
1217
  };
1247
- var CommandPalette = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
1218
+ var CommandPalette = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
1248
1219
  Command,
1249
1220
  {
1250
1221
  shouldFilter: false,
@@ -1262,8 +1233,8 @@ var CommandDialog = ({ children, ...props }) => {
1262
1233
  const preserveHeight = useMemo3(() => {
1263
1234
  return props.isLoading && Children.count(children) === 0;
1264
1235
  }, [props.isLoading, children]);
1265
- return /* @__PURE__ */ jsx4(RadixDialog.Root, { ...props, children: /* @__PURE__ */ jsxs(RadixDialog.Portal, { children: [
1266
- /* @__PURE__ */ jsx4(RadixDialog.Overlay, { className: "bg-ui-bg-overlay fixed inset-0" }),
1236
+ return /* @__PURE__ */ jsx3(RadixDialog.Root, { ...props, children: /* @__PURE__ */ jsxs(RadixDialog.Portal, { children: [
1237
+ /* @__PURE__ */ jsx3(RadixDialog.Overlay, { className: "bg-ui-bg-overlay fixed inset-0" }),
1267
1238
  /* @__PURE__ */ jsxs(
1268
1239
  RadixDialog.Content,
1269
1240
  {
@@ -1275,21 +1246,21 @@ var CommandDialog = ({ children, ...props }) => {
1275
1246
  }
1276
1247
  ),
1277
1248
  children: [
1278
- /* @__PURE__ */ jsx4(RadixDialog.Title, { className: "sr-only", children: t2("app.search.title") }),
1279
- /* @__PURE__ */ jsx4(RadixDialog.Description, { className: "sr-only", children: t2("app.search.description") }),
1280
- /* @__PURE__ */ jsx4(CommandPalette, { className: "[&_[cmdk-group-heading]]:text-muted-foreground flex h-full flex-col overflow-hidden [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0", children }),
1281
- /* @__PURE__ */ jsx4("div", { className: "bg-ui-bg-field text-ui-fg-subtle flex items-center justify-end border-t px-4 py-3", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
1249
+ /* @__PURE__ */ jsx3(RadixDialog.Title, { className: "sr-only", children: t2("app.search.title") }),
1250
+ /* @__PURE__ */ jsx3(RadixDialog.Description, { className: "sr-only", children: t2("app.search.description") }),
1251
+ /* @__PURE__ */ jsx3(CommandPalette, { className: "[&_[cmdk-group-heading]]:text-muted-foreground flex h-full flex-col overflow-hidden [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0", children }),
1252
+ /* @__PURE__ */ jsx3("div", { className: "bg-ui-bg-field text-ui-fg-subtle flex items-center justify-end border-t px-4 py-3", children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
1282
1253
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
1283
- /* @__PURE__ */ jsx4(Text, { size: "xsmall", leading: "compact", children: t2("app.search.navigation") }),
1254
+ /* @__PURE__ */ jsx3(Text, { size: "xsmall", leading: "compact", children: t2("app.search.navigation") }),
1284
1255
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-1", children: [
1285
- /* @__PURE__ */ jsx4(Kbd, { className: "bg-ui-bg-field-component", children: "\u2193" }),
1286
- /* @__PURE__ */ jsx4(Kbd, { className: "bg-ui-bg-field-component", children: "\u2191" })
1256
+ /* @__PURE__ */ jsx3(Kbd, { className: "bg-ui-bg-field-component", children: "\u2193" }),
1257
+ /* @__PURE__ */ jsx3(Kbd, { className: "bg-ui-bg-field-component", children: "\u2191" })
1287
1258
  ] })
1288
1259
  ] }),
1289
- /* @__PURE__ */ jsx4("div", { className: "bg-ui-border-strong h-3 w-px" }),
1260
+ /* @__PURE__ */ jsx3("div", { className: "bg-ui-border-strong h-3 w-px" }),
1290
1261
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
1291
- /* @__PURE__ */ jsx4(Text, { size: "xsmall", leading: "compact", children: t2("app.search.openResult") }),
1292
- /* @__PURE__ */ jsx4(Kbd, { className: "bg-ui-bg-field-component", children: "\u21B5" })
1262
+ /* @__PURE__ */ jsx3(Text, { size: "xsmall", leading: "compact", children: t2("app.search.openResult") }),
1263
+ /* @__PURE__ */ jsx3(Kbd, { className: "bg-ui-bg-field-component", children: "\u21B5" })
1293
1264
  ] })
1294
1265
  ] }) })
1295
1266
  ]
@@ -1316,19 +1287,19 @@ var CommandInput = forwardRef(
1316
1287
  () => innerRef.current
1317
1288
  );
1318
1289
  return /* @__PURE__ */ jsxs("div", { className: "flex flex-col border-b", children: [
1319
- /* @__PURE__ */ jsx4("div", { className: "px-4 pt-4", children: /* @__PURE__ */ jsxs(DropdownMenu, { dir: direction, children: [
1320
- /* @__PURE__ */ jsx4(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(
1290
+ /* @__PURE__ */ jsx3("div", { className: "px-4 pt-4", children: /* @__PURE__ */ jsxs(DropdownMenu, { dir: direction, children: [
1291
+ /* @__PURE__ */ jsx3(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(
1321
1292
  Badge,
1322
1293
  {
1323
1294
  size: "2xsmall",
1324
1295
  className: "hover:bg-ui-bg-base-pressed transition-fg cursor-pointer",
1325
1296
  children: [
1326
1297
  t2(`app.search.groups.${area}`),
1327
- /* @__PURE__ */ jsx4(TriangleDownMini, { className: "text-ui-fg-muted" })
1298
+ /* @__PURE__ */ jsx3(TriangleDownMini, { className: "text-ui-fg-muted" })
1328
1299
  ]
1329
1300
  }
1330
1301
  ) }),
1331
- /* @__PURE__ */ jsx4(
1302
+ /* @__PURE__ */ jsx3(
1332
1303
  DropdownMenu.Content,
1333
1304
  {
1334
1305
  align: "start",
@@ -1337,15 +1308,15 @@ var CommandInput = forwardRef(
1337
1308
  e.preventDefault();
1338
1309
  innerRef.current?.focus();
1339
1310
  },
1340
- children: /* @__PURE__ */ jsx4(
1311
+ children: /* @__PURE__ */ jsx3(
1341
1312
  DropdownMenu.RadioGroup,
1342
1313
  {
1343
1314
  value: area,
1344
1315
  onValueChange: (v) => setArea(v),
1345
1316
  children: SEARCH_AREAS.map((area2) => /* @__PURE__ */ jsxs(Fragment, { children: [
1346
- area2 === "command" && /* @__PURE__ */ jsx4(DropdownMenu.Separator, {}),
1347
- /* @__PURE__ */ jsx4(DropdownMenu.RadioItem, { value: area2, children: t2(`app.search.groups.${area2}`) }),
1348
- area2 === "all" && /* @__PURE__ */ jsx4(DropdownMenu.Separator, {})
1317
+ area2 === "command" && /* @__PURE__ */ jsx3(DropdownMenu.Separator, {}),
1318
+ /* @__PURE__ */ jsx3(DropdownMenu.RadioItem, { value: area2, children: t2(`app.search.groups.${area2}`) }),
1319
+ area2 === "all" && /* @__PURE__ */ jsx3(DropdownMenu.Separator, {})
1349
1320
  ] }, area2))
1350
1321
  }
1351
1322
  )
@@ -1353,17 +1324,17 @@ var CommandInput = forwardRef(
1353
1324
  )
1354
1325
  ] }) }),
1355
1326
  /* @__PURE__ */ jsxs("div", { className: "relative flex items-center gap-x-2 px-4 py-3", children: [
1356
- onBack && /* @__PURE__ */ jsx4(
1327
+ onBack && /* @__PURE__ */ jsx3(
1357
1328
  IconButton,
1358
1329
  {
1359
1330
  type: "button",
1360
1331
  size: "small",
1361
1332
  variant: "transparent",
1362
1333
  onClick: onBack,
1363
- children: /* @__PURE__ */ jsx4(ArrowUturnLeft, { className: "text-ui-fg-muted" })
1334
+ children: /* @__PURE__ */ jsx3(ArrowUturnLeft, { className: "text-ui-fg-muted" })
1364
1335
  }
1365
1336
  ),
1366
- /* @__PURE__ */ jsx4(
1337
+ /* @__PURE__ */ jsx3(
1367
1338
  Command.Input,
1368
1339
  {
1369
1340
  ref: innerRef,
@@ -1377,8 +1348,8 @@ var CommandInput = forwardRef(
1377
1348
  }
1378
1349
  ),
1379
1350
  /* @__PURE__ */ jsxs("div", { className: "absolute end-4 top-1/2 flex -translate-y-1/2 items-center justify-end gap-x-2", children: [
1380
- isFetching && /* @__PURE__ */ jsx4(Spinner, { className: "text-ui-fg-muted animate-spin" }),
1381
- value && /* @__PURE__ */ jsx4(
1351
+ isFetching && /* @__PURE__ */ jsx3(Spinner, { className: "text-ui-fg-muted animate-spin" }),
1352
+ value && /* @__PURE__ */ jsx3(
1382
1353
  Button,
1383
1354
  {
1384
1355
  variant: "transparent",
@@ -1398,7 +1369,7 @@ var CommandInput = forwardRef(
1398
1369
  }
1399
1370
  );
1400
1371
  CommandInput.displayName = Command.Input.displayName;
1401
- var CommandList = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
1372
+ var CommandList = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
1402
1373
  Command.List,
1403
1374
  {
1404
1375
  ref,
@@ -1412,11 +1383,11 @@ var CommandList = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ j
1412
1383
  CommandList.displayName = Command.List.displayName;
1413
1384
  var CommandEmpty = forwardRef((props, ref) => {
1414
1385
  const { t: t2 } = useTranslation3();
1415
- return /* @__PURE__ */ jsx4(Command.Empty, { ref, className: "py-6 text-center text-sm", ...props, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle flex min-h-[236px] flex-col items-center justify-center gap-y-3", children: [
1416
- /* @__PURE__ */ jsx4(MagnifyingGlass, { className: "text-ui-fg-subtle" }),
1386
+ return /* @__PURE__ */ jsx3(Command.Empty, { ref, className: "py-6 text-center text-sm", ...props, children: /* @__PURE__ */ jsxs("div", { className: "text-ui-fg-subtle flex min-h-[236px] flex-col items-center justify-center gap-y-3", children: [
1387
+ /* @__PURE__ */ jsx3(MagnifyingGlass, { className: "text-ui-fg-subtle" }),
1417
1388
  /* @__PURE__ */ jsxs("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
1418
- /* @__PURE__ */ jsx4(Text, { size: "small", weight: "plus", leading: "compact", children: props.q ? t2("app.search.noResultsTitle") : t2("app.search.emptySearchTitle") }),
1419
- /* @__PURE__ */ jsx4(Text, { size: "small", className: "text-ui-fg-muted", children: props.q ? t2("app.search.noResultsMessage") : t2("app.search.emptySearchMessage") })
1389
+ /* @__PURE__ */ jsx3(Text, { size: "small", weight: "plus", leading: "compact", children: props.q ? t2("app.search.noResultsTitle") : t2("app.search.emptySearchTitle") }),
1390
+ /* @__PURE__ */ jsx3(Text, { size: "small", className: "text-ui-fg-muted", children: props.q ? t2("app.search.noResultsMessage") : t2("app.search.emptySearchMessage") })
1420
1391
  ] })
1421
1392
  ] }) });
1422
1393
  });
@@ -1429,14 +1400,14 @@ var CommandLoading = forwardRef((props, ref) => {
1429
1400
  ...props,
1430
1401
  className: "bg-ui-bg-base flex flex-col",
1431
1402
  children: [
1432
- /* @__PURE__ */ jsx4("div", { className: "w-full px-2 pb-1 pt-3", children: /* @__PURE__ */ jsx4(Skeleton, { className: "h-5 w-10" }) }),
1433
- Array.from({ length: 7 }).map((_, index) => /* @__PURE__ */ jsx4("div", { className: "w-full p-2", children: /* @__PURE__ */ jsx4(Skeleton, { className: "h-5 w-full" }) }, index))
1403
+ /* @__PURE__ */ jsx3("div", { className: "w-full px-2 pb-1 pt-3", children: /* @__PURE__ */ jsx3(Skeleton, { className: "h-5 w-10" }) }),
1404
+ Array.from({ length: 7 }).map((_, index) => /* @__PURE__ */ jsx3("div", { className: "w-full p-2", children: /* @__PURE__ */ jsx3(Skeleton, { className: "h-5 w-full" }) }, index))
1434
1405
  ]
1435
1406
  }
1436
1407
  );
1437
1408
  });
1438
1409
  CommandLoading.displayName = Command.Loading.displayName;
1439
- var CommandGroup = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
1410
+ var CommandGroup = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
1440
1411
  Command.Group,
1441
1412
  {
1442
1413
  ref,
@@ -1448,7 +1419,7 @@ var CommandGroup = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
1448
1419
  }
1449
1420
  ));
1450
1421
  CommandGroup.displayName = Command.Group.displayName;
1451
- var CommandSeparator = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
1422
+ var CommandSeparator = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
1452
1423
  Command.Separator,
1453
1424
  {
1454
1425
  ref,
@@ -1457,7 +1428,7 @@ var CommandSeparator = forwardRef(({ className, ...props }, ref) => /* @__PURE__
1457
1428
  }
1458
1429
  ));
1459
1430
  CommandSeparator.displayName = Command.Separator.displayName;
1460
- var CommandItem = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
1431
+ var CommandItem = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
1461
1432
  Command.Item,
1462
1433
  {
1463
1434
  ref,
@@ -1471,13 +1442,13 @@ var CommandItem = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ j
1471
1442
  CommandItem.displayName = Command.Item.displayName;
1472
1443
 
1473
1444
  // src/providers/search-provider/search-context.tsx
1474
- import { createContext as createContext4 } from "react";
1475
- var SearchContext = createContext4(null);
1445
+ import { createContext as createContext3 } from "react";
1446
+ var SearchContext = createContext3(null);
1476
1447
 
1477
1448
  // src/providers/search-provider/search-provider.tsx
1478
- import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
1449
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
1479
1450
  var SearchProvider = ({ children }) => {
1480
- const [open, setOpen] = useState7(false);
1451
+ const [open, setOpen] = useState6(false);
1481
1452
  const { mobile, toggle } = useSidebar();
1482
1453
  const toggleSearch = () => {
1483
1454
  const update = !open;
@@ -1486,7 +1457,7 @@ var SearchProvider = ({ children }) => {
1486
1457
  }
1487
1458
  setOpen(update);
1488
1459
  };
1489
- useEffect6(() => {
1460
+ useEffect5(() => {
1490
1461
  const onKeyDown = (e) => {
1491
1462
  if (e.key === "k" && (e.metaKey || e.ctrlKey)) {
1492
1463
  setOpen((prev) => !prev);
@@ -1507,16 +1478,16 @@ var SearchProvider = ({ children }) => {
1507
1478
  },
1508
1479
  children: [
1509
1480
  children,
1510
- /* @__PURE__ */ jsx5(Search, {})
1481
+ /* @__PURE__ */ jsx4(Search, {})
1511
1482
  ]
1512
1483
  }
1513
1484
  );
1514
1485
  };
1515
1486
 
1516
1487
  // src/providers/search-provider/use-search.tsx
1517
- import { useContext as useContext4 } from "react";
1488
+ import { useContext as useContext3 } from "react";
1518
1489
  var useSearch = () => {
1519
- const context = useContext4(SearchContext);
1490
+ const context = useContext3(SearchContext);
1520
1491
  if (!context) {
1521
1492
  throw new Error("useSearch must be used within a SearchProvider");
1522
1493
  }
@@ -1534,11 +1505,11 @@ import { Outlet as Outlet4 } from "react-router-dom";
1534
1505
  // src/components/authentication/protected-route/protected-route.tsx
1535
1506
  import { Spinner as Spinner2 } from "@medusajs/icons";
1536
1507
  import { useMemo as useMemo4 } from "react";
1537
- import { Navigate, Outlet, useLocation as useLocation3 } from "react-router-dom";
1508
+ import { Navigate, Outlet, useLocation as useLocation2 } from "react-router-dom";
1538
1509
  import { PermissionsProvider } from "@mercurjs/dashboard-shared";
1539
- import { jsx as jsx6 } from "react/jsx-runtime";
1510
+ import { jsx as jsx5 } from "react/jsx-runtime";
1540
1511
  var ProtectedRoute = () => {
1541
- const location = useLocation3();
1512
+ const location = useLocation2();
1542
1513
  const isRbacEnabled = useFeatureFlag("rbac");
1543
1514
  const { user, isLoading: isLoadingUser } = useMe();
1544
1515
  const { data: permissionsResponse, isLoading: isLoadingPermissions } = useMePermissions({
@@ -1554,18 +1525,18 @@ var ProtectedRoute = () => {
1554
1525
  };
1555
1526
  }, [permissionsResponse]);
1556
1527
  if (isLoadingUser) {
1557
- return /* @__PURE__ */ jsx6("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsx6(Spinner2, { className: "text-ui-fg-interactive animate-spin" }) });
1528
+ return /* @__PURE__ */ jsx5("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsx5(Spinner2, { className: "text-ui-fg-interactive animate-spin" }) });
1558
1529
  }
1559
1530
  if (!user) {
1560
- return /* @__PURE__ */ jsx6(Navigate, { to: "/login", state: { from: location }, replace: true });
1531
+ return /* @__PURE__ */ jsx5(Navigate, { to: "/login", state: { from: location }, replace: true });
1561
1532
  }
1562
- return /* @__PURE__ */ jsx6(
1533
+ return /* @__PURE__ */ jsx5(
1563
1534
  PermissionsProvider,
1564
1535
  {
1565
1536
  policy,
1566
1537
  isLoading: isLoadingPermissions,
1567
1538
  isRbacEnabled,
1568
- children: /* @__PURE__ */ jsx6(SidebarProvider, { children: /* @__PURE__ */ jsx6(SearchProvider, { children: /* @__PURE__ */ jsx6(Outlet, {}) }) })
1539
+ children: /* @__PURE__ */ jsx5(SidebarProvider, { children: /* @__PURE__ */ jsx5(SearchProvider, { children: /* @__PURE__ */ jsx5(Outlet, {}) }) })
1569
1540
  }
1570
1541
  );
1571
1542
  };
@@ -1588,25 +1559,25 @@ import {
1588
1559
  import { Avatar as Avatar2, Divider, DropdownMenu as DropdownMenu3, Text as Text7, clx as clx6 } from "@medusajs/ui";
1589
1560
  import { useMemo as useMemo5 } from "react";
1590
1561
  import { useTranslation as useTranslation9 } from "react-i18next";
1591
- import { Link as Link3, useLocation as useLocation7, useNavigate as useNavigate4 } from "react-router-dom";
1562
+ import { Link as Link3, useLocation as useLocation6, useNavigate as useNavigate4 } from "react-router-dom";
1592
1563
 
1593
1564
  // src/components/layout/nav-item/nav-item.tsx
1594
1565
  import {
1595
1566
  useCallback as useCallback5,
1596
- useEffect as useEffect7,
1597
- useState as useState8
1567
+ useEffect as useEffect6,
1568
+ useState as useState7
1598
1569
  } from "react";
1599
- import { Kbd as Kbd2, Text as Text2, clx as clx2 } from "@medusajs/ui";
1570
+ import { Kbd as Kbd2, Text as Text2, Tooltip, clx as clx2 } from "@medusajs/ui";
1600
1571
  import { Collapsible as RadixCollapsible } from "radix-ui";
1601
1572
  import { useTranslation as useTranslation4 } from "react-i18next";
1602
- import { NavLink, useLocation as useLocation4 } from "react-router-dom";
1603
- import { jsx as jsx7, jsxs as jsxs3 } from "react/jsx-runtime";
1573
+ import { NavLink, useLocation as useLocation3 } from "react-router-dom";
1574
+ import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
1604
1575
  var NestedNavLabel = ({
1605
1576
  label,
1606
1577
  translationNs
1607
1578
  }) => {
1608
1579
  const { t: t2 } = useTranslation4(translationNs);
1609
- return /* @__PURE__ */ jsx7(Text2, { size: "small", weight: "plus", leading: "compact", children: translationNs ? t2(label) : label });
1580
+ return /* @__PURE__ */ jsx6(Text2, { size: "small", weight: "plus", leading: "compact", children: translationNs ? t2(label) : label });
1610
1581
  };
1611
1582
  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";
1612
1583
  var ACTIVE_NAV_LINK_CLASSES = "bg-ui-bg-base shadow-elevation-card-rest text-ui-fg-base hover:bg-ui-bg-base";
@@ -1619,26 +1590,31 @@ var getIsOpen = (to, items, pathname) => {
1619
1590
  };
1620
1591
  var NavItemTooltip = ({
1621
1592
  to,
1593
+ label,
1622
1594
  children
1623
1595
  }) => {
1624
1596
  const { t: t2 } = useTranslation4();
1597
+ const { state } = useSidebar();
1625
1598
  const globalShortcuts = useGlobalShortcuts();
1626
1599
  const shortcut = globalShortcuts.find((s) => s.to === to);
1627
- return /* @__PURE__ */ jsx7(
1600
+ if (state === "collapsed" && label) {
1601
+ return /* @__PURE__ */ jsx6(Tooltip, { content: label, side: "right", delayDuration: 0, children: /* @__PURE__ */ jsx6("div", { className: "w-full", children }) });
1602
+ }
1603
+ return /* @__PURE__ */ jsx6(
1628
1604
  ConditionalTooltip,
1629
1605
  {
1630
1606
  showTooltip: !!shortcut,
1631
1607
  maxWidth: 9999,
1632
1608
  content: /* @__PURE__ */ jsxs3("div", { className: "txt-compact-xsmall flex h-5 items-center justify-between gap-x-2 whitespace-nowrap", children: [
1633
- /* @__PURE__ */ jsx7("span", { children: shortcut?.label }),
1634
- /* @__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: [
1635
- /* @__PURE__ */ jsx7(Kbd2, { children: key }, key),
1636
- index < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx7("span", { className: "txt-compact-xsmall text-ui-fg-muted", children: t2("app.keyboardShortcuts.then") })
1609
+ /* @__PURE__ */ jsx6("span", { children: shortcut?.label }),
1610
+ /* @__PURE__ */ jsx6("div", { className: "flex items-center gap-x-1", children: shortcut?.keys.Mac?.map((key, index) => /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-1", children: [
1611
+ /* @__PURE__ */ jsx6(Kbd2, { children: key }, key),
1612
+ index < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx6("span", { className: "txt-compact-xsmall text-ui-fg-muted", children: t2("app.keyboardShortcuts.then") })
1637
1613
  ] }, index)) })
1638
1614
  ] }),
1639
1615
  side: "right",
1640
1616
  delayDuration: 1500,
1641
- children: /* @__PURE__ */ jsx7("div", { className: "w-full", children })
1617
+ children: /* @__PURE__ */ jsx6("div", { className: "w-full", children })
1642
1618
  }
1643
1619
  );
1644
1620
  };
@@ -1652,10 +1628,10 @@ var NavItem = ({
1652
1628
  translationNs
1653
1629
  }) => {
1654
1630
  const { t: t2 } = useTranslation4(translationNs);
1655
- const { pathname } = useLocation4();
1631
+ const { pathname } = useLocation3();
1656
1632
  const displayLabel = translationNs ? t2(label) : label;
1657
- const [open, setOpen] = useState8(getIsOpen(to, items, pathname));
1658
- useEffect7(() => {
1633
+ const [open, setOpen] = useState7(getIsOpen(to, items, pathname));
1634
+ useEffect6(() => {
1659
1635
  setOpen(getIsOpen(to, items, pathname));
1660
1636
  }, [pathname, to, items]);
1661
1637
  const navLinkClassNames = useCallback5(
@@ -1691,7 +1667,7 @@ var NavItem = ({
1691
1667
  className: "px-3",
1692
1668
  "data-testid": `sidebar-nav-item-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1693
1669
  children: [
1694
- /* @__PURE__ */ jsx7(NavItemTooltip, { to, children: /* @__PURE__ */ jsxs3(
1670
+ /* @__PURE__ */ jsx6(NavItemTooltip, { to, label: displayLabel, children: /* @__PURE__ */ jsxs3(
1695
1671
  NavLink,
1696
1672
  {
1697
1673
  to,
@@ -1706,81 +1682,98 @@ var NavItem = ({
1706
1682
  },
1707
1683
  "data-testid": `sidebar-nav-link-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1708
1684
  children: [
1709
- type !== "setting" && /* @__PURE__ */ jsx7("div", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ jsx7(Icon, { icon, type }) }),
1710
- /* @__PURE__ */ jsx7(Text2, { size: "small", weight: "plus", leading: "compact", children: displayLabel })
1685
+ type !== "setting" && /* @__PURE__ */ jsx6("div", { className: "flex size-6 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx6(Icon, { icon, type }) }),
1686
+ /* @__PURE__ */ jsx6(
1687
+ Text2,
1688
+ {
1689
+ size: "small",
1690
+ weight: "plus",
1691
+ leading: "compact",
1692
+ className: clx2("shrink-0 whitespace-nowrap", SIDEBAR_RAIL_FADE),
1693
+ children: displayLabel
1694
+ }
1695
+ )
1711
1696
  ]
1712
1697
  }
1713
1698
  ) }),
1714
- items && items.length > 0 && /* @__PURE__ */ jsxs3(RadixCollapsible.Root, { open, onOpenChange: setOpen, children: [
1715
- /* @__PURE__ */ jsxs3(
1716
- RadixCollapsible.Trigger,
1717
- {
1718
- className: clx2(
1719
- "flex w-full items-center gap-x-2 rounded-md py-0.5 pl-0.5 pr-2 text-ui-fg-subtle outline-none transition-fg hover:bg-ui-bg-subtle-hover hover:text-ui-fg-base lg:hidden",
1720
- { "pl-2": isSetting }
1699
+ items && items.length > 0 && /* @__PURE__ */ jsxs3(
1700
+ RadixCollapsible.Root,
1701
+ {
1702
+ open,
1703
+ onOpenChange: setOpen,
1704
+ className: "group-data-[state=collapsed]/sidebar:hidden",
1705
+ children: [
1706
+ /* @__PURE__ */ jsxs3(
1707
+ RadixCollapsible.Trigger,
1708
+ {
1709
+ className: clx2(
1710
+ "flex w-full items-center gap-x-2 rounded-md py-0.5 pl-0.5 pr-2 text-ui-fg-subtle outline-none transition-fg hover:bg-ui-bg-subtle-hover hover:text-ui-fg-base lg:hidden",
1711
+ { "pl-2": isSetting }
1712
+ ),
1713
+ children: [
1714
+ /* @__PURE__ */ jsx6("div", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ jsx6(Icon, { icon, type }) }),
1715
+ /* @__PURE__ */ jsx6(Text2, { size: "small", weight: "plus", leading: "compact", children: displayLabel })
1716
+ ]
1717
+ }
1721
1718
  ),
1722
- children: [
1723
- /* @__PURE__ */ jsx7("div", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ jsx7(Icon, { icon, type }) }),
1724
- /* @__PURE__ */ jsx7(Text2, { size: "small", weight: "plus", leading: "compact", children: displayLabel })
1725
- ]
1726
- }
1727
- ),
1728
- /* @__PURE__ */ jsx7(RadixCollapsible.Content, { children: /* @__PURE__ */ jsx7(
1729
- "div",
1730
- {
1731
- className: "flex flex-col gap-y-0.5 pb-2 pt-0.5",
1732
- "data-testid": `sidebar-nav-nested-items-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1733
- children: /* @__PURE__ */ jsxs3("ul", { className: "flex flex-col gap-y-0.5", children: [
1734
- /* @__PURE__ */ jsx7("li", { className: "flex w-full items-center gap-x-1 lg:hidden", children: /* @__PURE__ */ jsx7(NavItemTooltip, { to, children: /* @__PURE__ */ jsx7(
1735
- NavLink,
1736
- {
1737
- to,
1738
- end: true,
1739
- className: ({ isActive }) => {
1740
- return clx2(
1741
- navLinkClassNames({
1742
- to,
1743
- isActive,
1744
- isSetting,
1745
- isNested: true
1746
- })
1747
- );
1748
- },
1749
- "data-testid": `sidebar-nav-link-nested-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1750
- children: /* @__PURE__ */ jsx7(Text2, { size: "small", weight: "plus", leading: "compact", children: displayLabel })
1751
- }
1752
- ) }) }),
1753
- items.map((item) => {
1754
- return /* @__PURE__ */ jsx7("li", { className: "flex h-7 items-center", children: /* @__PURE__ */ jsx7(NavItemTooltip, { to: item.to, children: /* @__PURE__ */ jsx7(
1755
- NavLink,
1756
- {
1757
- to: item.to,
1758
- end: true,
1759
- className: ({ isActive }) => {
1760
- return clx2(
1761
- navLinkClassNames({
1762
- to: item.to,
1763
- isActive,
1764
- isSetting,
1765
- isNested: true
1766
- })
1767
- );
1768
- },
1769
- "data-testid": `sidebar-nav-link-nested-${item.to.replace(/\//g, "-").replace(/^-/, "")}`,
1770
- children: /* @__PURE__ */ jsx7(
1771
- NestedNavLabel,
1719
+ /* @__PURE__ */ jsx6(RadixCollapsible.Content, { children: /* @__PURE__ */ jsx6(
1720
+ "div",
1721
+ {
1722
+ className: "flex flex-col gap-y-0.5 pb-2 pt-0.5",
1723
+ "data-testid": `sidebar-nav-nested-items-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1724
+ children: /* @__PURE__ */ jsxs3("ul", { className: "flex flex-col gap-y-0.5", children: [
1725
+ /* @__PURE__ */ jsx6("li", { className: "flex w-full items-center gap-x-1 lg:hidden", children: /* @__PURE__ */ jsx6(NavItemTooltip, { to, children: /* @__PURE__ */ jsx6(
1726
+ NavLink,
1727
+ {
1728
+ to,
1729
+ end: true,
1730
+ className: ({ isActive }) => {
1731
+ return clx2(
1732
+ navLinkClassNames({
1733
+ to,
1734
+ isActive,
1735
+ isSetting,
1736
+ isNested: true
1737
+ })
1738
+ );
1739
+ },
1740
+ "data-testid": `sidebar-nav-link-nested-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1741
+ children: /* @__PURE__ */ jsx6(Text2, { size: "small", weight: "plus", leading: "compact", children: displayLabel })
1742
+ }
1743
+ ) }) }),
1744
+ items.map((item) => {
1745
+ return /* @__PURE__ */ jsx6("li", { className: "flex h-7 items-center", children: /* @__PURE__ */ jsx6(NavItemTooltip, { to: item.to, children: /* @__PURE__ */ jsx6(
1746
+ NavLink,
1772
1747
  {
1773
- label: item.label,
1774
- translationNs: item.translationNs
1748
+ to: item.to,
1749
+ end: true,
1750
+ className: ({ isActive }) => {
1751
+ return clx2(
1752
+ navLinkClassNames({
1753
+ to: item.to,
1754
+ isActive,
1755
+ isSetting,
1756
+ isNested: true
1757
+ })
1758
+ );
1759
+ },
1760
+ "data-testid": `sidebar-nav-link-nested-${item.to.replace(/\//g, "-").replace(/^-/, "")}`,
1761
+ children: /* @__PURE__ */ jsx6(
1762
+ NestedNavLabel,
1763
+ {
1764
+ label: item.label,
1765
+ translationNs: item.translationNs
1766
+ }
1767
+ )
1775
1768
  }
1776
- )
1777
- }
1778
- ) }) }, item.to);
1779
- })
1780
- ] })
1781
- }
1782
- ) })
1783
- ] })
1769
+ ) }) }, item.to);
1770
+ })
1771
+ ] })
1772
+ }
1773
+ ) })
1774
+ ]
1775
+ }
1776
+ )
1784
1777
  ]
1785
1778
  }
1786
1779
  );
@@ -1789,7 +1782,7 @@ var Icon = ({ icon, type }) => {
1789
1782
  if (!icon) {
1790
1783
  return null;
1791
1784
  }
1792
- 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;
1785
+ return type === "extension" ? /* @__PURE__ */ jsx6("div", { className: "flex h-5 w-5 items-center justify-center rounded-[4px] bg-ui-bg-base shadow-borders-base", children: /* @__PURE__ */ jsx6("div", { className: "h-[15px] w-[15px] overflow-hidden rounded-sm", children: icon }) }) : icon;
1793
1786
  };
1794
1787
 
1795
1788
  // src/components/layout/shell/shell.tsx
@@ -1797,7 +1790,7 @@ import { SidebarLeft, TriangleRightMini, XMark } from "@medusajs/icons";
1797
1790
  import { IconButton as IconButton4, clx as clx4 } from "@medusajs/ui";
1798
1791
  import { AnimatePresence } from "motion/react";
1799
1792
  import { Dialog as RadixDialog2 } from "radix-ui";
1800
- import { useEffect as useEffect9, useState as useState10 } from "react";
1793
+ import { useEffect as useEffect8, useState as useState9 } from "react";
1801
1794
  import { useTranslation as useTranslation6 } from "react-i18next";
1802
1795
  import {
1803
1796
  Link,
@@ -1808,9 +1801,9 @@ import {
1808
1801
 
1809
1802
  // src/components/common/progress-bar/progress-bar.tsx
1810
1803
  import { motion } from "motion/react";
1811
- import { jsx as jsx8 } from "react/jsx-runtime";
1804
+ import { jsx as jsx7 } from "react/jsx-runtime";
1812
1805
  var ProgressBar = ({ duration = 2 }) => {
1813
- return /* @__PURE__ */ jsx8(
1806
+ return /* @__PURE__ */ jsx7(
1814
1807
  motion.div,
1815
1808
  {
1816
1809
  className: "bg-ui-fg-subtle size-full",
@@ -1841,13 +1834,13 @@ import {
1841
1834
  } from "@medusajs/icons";
1842
1835
  import { clx as clx3, Drawer, Heading, IconButton as IconButton3, Text as Text4 } from "@medusajs/ui";
1843
1836
  import { formatDistance } from "date-fns";
1844
- import { useEffect as useEffect8, useState as useState9 } from "react";
1837
+ import { useEffect as useEffect7, useState as useState8 } from "react";
1845
1838
  import { useTranslation as useTranslation5 } from "react-i18next";
1846
1839
 
1847
1840
  // src/components/common/file-preview/file-preview.tsx
1848
1841
  import { ArrowDownTray, Spinner as Spinner3 } from "@medusajs/icons";
1849
1842
  import { IconButton as IconButton2, Text as Text3 } from "@medusajs/ui";
1850
- import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
1843
+ import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
1851
1844
  var FilePreview = ({
1852
1845
  filename,
1853
1846
  url,
@@ -1856,11 +1849,11 @@ var FilePreview = ({
1856
1849
  actions,
1857
1850
  hideThumbnail
1858
1851
  }) => {
1859
- return /* @__PURE__ */ jsx9("div", { className: "shadow-elevation-card-rest bg-ui-bg-component transition-fg rounded-md px-3 py-2", children: /* @__PURE__ */ jsxs4("div", { className: "flex flex-row items-center justify-between gap-2", children: [
1852
+ return /* @__PURE__ */ jsx8("div", { className: "shadow-elevation-card-rest bg-ui-bg-component transition-fg rounded-md px-3 py-2", children: /* @__PURE__ */ jsxs4("div", { className: "flex flex-row items-center justify-between gap-2", children: [
1860
1853
  /* @__PURE__ */ jsxs4("div", { className: "flex flex-row items-center gap-3", children: [
1861
- !hideThumbnail && /* @__PURE__ */ jsx9(FileThumbnail, {}),
1854
+ !hideThumbnail && /* @__PURE__ */ jsx8(FileThumbnail, {}),
1862
1855
  /* @__PURE__ */ jsxs4("div", { className: "flex flex-col justify-center", children: [
1863
- /* @__PURE__ */ jsx9(
1856
+ /* @__PURE__ */ jsx8(
1864
1857
  Text3,
1865
1858
  {
1866
1859
  size: "small",
@@ -1869,7 +1862,7 @@ var FilePreview = ({
1869
1862
  children: filename
1870
1863
  }
1871
1864
  ),
1872
- loading && !!activity && /* @__PURE__ */ jsx9(
1865
+ loading && !!activity && /* @__PURE__ */ jsx8(
1873
1866
  Text3,
1874
1867
  {
1875
1868
  leading: "compact",
@@ -1880,9 +1873,9 @@ var FilePreview = ({
1880
1873
  )
1881
1874
  ] })
1882
1875
  ] }),
1883
- loading && /* @__PURE__ */ jsx9(Spinner3, { className: "animate-spin" }),
1884
- !loading && actions && /* @__PURE__ */ jsx9(ActionMenu, { groups: actions }),
1885
- !loading && url && /* @__PURE__ */ jsx9(IconButton2, { variant: "transparent", asChild: true, children: /* @__PURE__ */ jsx9("a", { href: url, download: filename ?? `${Date.now()}`, children: /* @__PURE__ */ jsx9(ArrowDownTray, {}) }) })
1876
+ loading && /* @__PURE__ */ jsx8(Spinner3, { className: "animate-spin" }),
1877
+ !loading && actions && /* @__PURE__ */ jsx8(ActionMenu, { groups: actions }),
1878
+ !loading && url && /* @__PURE__ */ jsx8(IconButton2, { variant: "transparent", asChild: true, children: /* @__PURE__ */ jsx8("a", { href: url, download: filename ?? `${Date.now()}`, children: /* @__PURE__ */ jsx8(ArrowDownTray, {}) }) })
1886
1879
  ] }) });
1887
1880
  };
1888
1881
  var FileThumbnail = () => {
@@ -1895,7 +1888,7 @@ var FileThumbnail = () => {
1895
1888
  fill: "none",
1896
1889
  xmlns: "http://www.w3.org/2000/svg",
1897
1890
  children: [
1898
- /* @__PURE__ */ jsx9(
1891
+ /* @__PURE__ */ jsx8(
1899
1892
  "path",
1900
1893
  {
1901
1894
  d: "M20 31.75H4C1.92893 31.75 0.25 30.0711 0.25 28V4C0.25 1.92893 1.92893 0.25 4 0.25H15.9431C16.9377 0.25 17.8915 0.645088 18.5948 1.34835L22.6516 5.4052C23.3549 6.10847 23.75 7.06229 23.75 8.05685V28C23.75 30.0711 22.0711 31.75 20 31.75Z",
@@ -1904,7 +1897,7 @@ var FileThumbnail = () => {
1904
1897
  "stroke-width": "0.5"
1905
1898
  }
1906
1899
  ),
1907
- /* @__PURE__ */ jsx9(
1900
+ /* @__PURE__ */ jsx8(
1908
1901
  "path",
1909
1902
  {
1910
1903
  opacity: "0.4",
@@ -1925,8 +1918,8 @@ var FileThumbnail = () => {
1925
1918
  y2: "32",
1926
1919
  gradientUnits: "userSpaceOnUse",
1927
1920
  children: [
1928
- /* @__PURE__ */ jsx9("stop", { "stop-color": "#F4F4F5" }),
1929
- /* @__PURE__ */ jsx9("stop", { offset: "1", "stop-color": "#E4E4E7" })
1921
+ /* @__PURE__ */ jsx8("stop", { "stop-color": "#F4F4F5" }),
1922
+ /* @__PURE__ */ jsx8("stop", { offset: "1", "stop-color": "#E4E4E7" })
1930
1923
  ]
1931
1924
  }
1932
1925
  ),
@@ -1940,8 +1933,8 @@ var FileThumbnail = () => {
1940
1933
  y2: "32",
1941
1934
  gradientUnits: "userSpaceOnUse",
1942
1935
  children: [
1943
- /* @__PURE__ */ jsx9("stop", { "stop-color": "#E4E4E7" }),
1944
- /* @__PURE__ */ jsx9("stop", { offset: "1", "stop-color": "#D4D4D8" })
1936
+ /* @__PURE__ */ jsx8("stop", { "stop-color": "#E4E4E7" }),
1937
+ /* @__PURE__ */ jsx8("stop", { offset: "1", "stop-color": "#D4D4D8" })
1945
1938
  ]
1946
1939
  }
1947
1940
  ),
@@ -1955,8 +1948,8 @@ var FileThumbnail = () => {
1955
1948
  y2: "21.25",
1956
1949
  gradientUnits: "userSpaceOnUse",
1957
1950
  children: [
1958
- /* @__PURE__ */ jsx9("stop", { "stop-color": "#52525B" }),
1959
- /* @__PURE__ */ jsx9("stop", { offset: "1", "stop-color": "#A1A1AA" })
1951
+ /* @__PURE__ */ jsx8("stop", { "stop-color": "#52525B" }),
1952
+ /* @__PURE__ */ jsx8("stop", { offset: "1", "stop-color": "#A1A1AA" })
1960
1953
  ]
1961
1954
  }
1962
1955
  ),
@@ -1970,8 +1963,8 @@ var FileThumbnail = () => {
1970
1963
  y2: "21.25",
1971
1964
  gradientUnits: "userSpaceOnUse",
1972
1965
  children: [
1973
- /* @__PURE__ */ jsx9("stop", { "stop-color": "#18181B" }),
1974
- /* @__PURE__ */ jsx9("stop", { offset: "1", "stop-color": "#52525B" })
1966
+ /* @__PURE__ */ jsx8("stop", { "stop-color": "#18181B" }),
1967
+ /* @__PURE__ */ jsx8("stop", { offset: "1", "stop-color": "#52525B" })
1975
1968
  ]
1976
1969
  }
1977
1970
  )
@@ -1982,16 +1975,16 @@ var FileThumbnail = () => {
1982
1975
  };
1983
1976
 
1984
1977
  // src/components/layout/notifications/notifications.tsx
1985
- import { Fragment as Fragment2, jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
1978
+ import { Fragment as Fragment2, jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
1986
1979
  var LAST_READ_NOTIFICATION_KEY = "notificationsLastReadAt";
1987
1980
  var Notifications = () => {
1988
1981
  const { t: t2 } = useTranslation5();
1989
- const [open, setOpen] = useState9(false);
1982
+ const [open, setOpen] = useState8(false);
1990
1983
  const [hasUnread, setHasUnread] = useUnreadNotifications();
1991
- const [lastReadAt, setLastReadAt] = useState9(
1984
+ const [lastReadAt, setLastReadAt] = useState8(
1992
1985
  localStorage.getItem(LAST_READ_NOTIFICATION_KEY)
1993
1986
  );
1994
- useEffect8(() => {
1987
+ useEffect7(() => {
1995
1988
  const onKeyDown = (e) => {
1996
1989
  if (e.key === "n" && (e.metaKey || e.ctrlKey)) {
1997
1990
  setOpen((prev) => !prev);
@@ -2022,20 +2015,20 @@ var Notifications = () => {
2022
2015
  onOpenChange: handleOnOpen,
2023
2016
  "data-testid": "notifications-drawer",
2024
2017
  children: [
2025
- /* @__PURE__ */ jsx10(Drawer.Trigger, { asChild: true, children: /* @__PURE__ */ jsx10(
2018
+ /* @__PURE__ */ jsx9(Drawer.Trigger, { asChild: true, children: /* @__PURE__ */ jsx9(
2026
2019
  IconButton3,
2027
2020
  {
2028
2021
  variant: "transparent",
2029
2022
  size: "small",
2030
2023
  className: "text-ui-fg-muted hover:text-ui-fg-subtle",
2031
2024
  "data-testid": "notifications-trigger-button",
2032
- children: hasUnread ? /* @__PURE__ */ jsx10(BellAlertDone, { "data-testid": "notifications-icon-unread" }) : /* @__PURE__ */ jsx10(BellAlert, { "data-testid": "notifications-icon" })
2025
+ children: hasUnread ? /* @__PURE__ */ jsx9(BellAlertDone, { "data-testid": "notifications-icon-unread" }) : /* @__PURE__ */ jsx9(BellAlert, { "data-testid": "notifications-icon" })
2033
2026
  }
2034
2027
  ) }),
2035
2028
  /* @__PURE__ */ jsxs5(Drawer.Content, { "data-testid": "notifications-content", children: [
2036
2029
  /* @__PURE__ */ jsxs5(Drawer.Header, { "data-testid": "notifications-header", children: [
2037
- /* @__PURE__ */ jsx10(Drawer.Title, { asChild: true, children: /* @__PURE__ */ jsx10(Heading, { "data-testid": "notifications-title", children: t2("notifications.domain") }) }),
2038
- /* @__PURE__ */ jsx10(
2030
+ /* @__PURE__ */ jsx9(Drawer.Title, { asChild: true, children: /* @__PURE__ */ jsx9(Heading, { "data-testid": "notifications-title", children: t2("notifications.domain") }) }),
2031
+ /* @__PURE__ */ jsx9(
2039
2032
  Drawer.Description,
2040
2033
  {
2041
2034
  className: "sr-only",
@@ -2044,12 +2037,12 @@ var Notifications = () => {
2044
2037
  }
2045
2038
  )
2046
2039
  ] }),
2047
- /* @__PURE__ */ jsx10(
2040
+ /* @__PURE__ */ jsx9(
2048
2041
  Drawer.Body,
2049
2042
  {
2050
2043
  className: "overflow-y-auto px-0",
2051
2044
  "data-testid": "notifications-body",
2052
- children: /* @__PURE__ */ jsx10("div", { "data-testid": "notifications-list", children: /* @__PURE__ */ jsx10(
2045
+ children: /* @__PURE__ */ jsx9("div", { "data-testid": "notifications-list", children: /* @__PURE__ */ jsx9(
2053
2046
  InfiniteList,
2054
2047
  {
2055
2048
  responseKey: "notifications",
@@ -2058,9 +2051,9 @@ var Notifications = () => {
2058
2051
  ...params
2059
2052
  }),
2060
2053
  queryOptions: { enabled: open },
2061
- renderEmpty: () => /* @__PURE__ */ jsx10(NotificationsEmptyState, { t: t2 }),
2054
+ renderEmpty: () => /* @__PURE__ */ jsx9(NotificationsEmptyState, { t: t2 }),
2062
2055
  renderItem: (notification) => {
2063
- return /* @__PURE__ */ jsx10(
2056
+ return /* @__PURE__ */ jsx9(
2064
2057
  Notification,
2065
2058
  {
2066
2059
  notification,
@@ -2086,18 +2079,18 @@ var Notification = ({
2086
2079
  if (!data?.title) {
2087
2080
  return null;
2088
2081
  }
2089
- return /* @__PURE__ */ jsx10(Fragment2, { children: /* @__PURE__ */ jsxs5(
2082
+ return /* @__PURE__ */ jsx9(Fragment2, { children: /* @__PURE__ */ jsxs5(
2090
2083
  "div",
2091
2084
  {
2092
2085
  className: "relative flex items-start justify-center gap-3 border-b p-6",
2093
2086
  "data-testid": `notification-${notification.id}`,
2094
2087
  children: [
2095
- /* @__PURE__ */ jsx10(
2088
+ /* @__PURE__ */ jsx9(
2096
2089
  "div",
2097
2090
  {
2098
2091
  className: "text-ui-fg-muted flex size-5 items-center justify-center",
2099
2092
  "data-testid": `notification-${notification.id}-icon`,
2100
- children: /* @__PURE__ */ jsx10(InformationCircleSolid, {})
2093
+ children: /* @__PURE__ */ jsx9(InformationCircleSolid, {})
2101
2094
  }
2102
2095
  ),
2103
2096
  /* @__PURE__ */ jsxs5(
@@ -2113,7 +2106,7 @@ var Notification = ({
2113
2106
  "data-testid": `notification-${notification.id}-header`,
2114
2107
  children: [
2115
2108
  /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between", children: [
2116
- /* @__PURE__ */ jsx10(
2109
+ /* @__PURE__ */ jsx9(
2117
2110
  Text4,
2118
2111
  {
2119
2112
  size: "small",
@@ -2129,7 +2122,7 @@ var Notification = ({
2129
2122
  className: "align-center flex items-center justify-center gap-2",
2130
2123
  "data-testid": `notification-${notification.id}-meta`,
2131
2124
  children: [
2132
- /* @__PURE__ */ jsx10(
2125
+ /* @__PURE__ */ jsx9(
2133
2126
  Text4,
2134
2127
  {
2135
2128
  as: "span",
@@ -2145,7 +2138,7 @@ var Notification = ({
2145
2138
  })
2146
2139
  }
2147
2140
  ),
2148
- unread && /* @__PURE__ */ jsx10(
2141
+ unread && /* @__PURE__ */ jsx9(
2149
2142
  "div",
2150
2143
  {
2151
2144
  className: "bg-ui-bg-interactive h-2 w-2 rounded",
@@ -2157,7 +2150,7 @@ var Notification = ({
2157
2150
  }
2158
2151
  )
2159
2152
  ] }),
2160
- !!data.description && /* @__PURE__ */ jsx10(
2153
+ !!data.description && /* @__PURE__ */ jsx9(
2161
2154
  Text4,
2162
2155
  {
2163
2156
  className: "text-ui-fg-subtle whitespace-pre-line",
@@ -2169,7 +2162,7 @@ var Notification = ({
2169
2162
  ]
2170
2163
  }
2171
2164
  ),
2172
- !!data?.file?.url && /* @__PURE__ */ jsx10(
2165
+ !!data?.file?.url && /* @__PURE__ */ jsx9(
2173
2166
  FilePreview,
2174
2167
  {
2175
2168
  filename: data.file.filename ?? "",
@@ -2192,8 +2185,8 @@ var NotificationsEmptyState = ({ t: t2 }) => {
2192
2185
  className: "flex h-full flex-col items-center justify-center",
2193
2186
  "data-testid": "notifications-empty-state",
2194
2187
  children: [
2195
- /* @__PURE__ */ jsx10(BellAlertDone, { "data-testid": "notifications-empty-icon" }),
2196
- /* @__PURE__ */ jsx10(
2188
+ /* @__PURE__ */ jsx9(BellAlertDone, { "data-testid": "notifications-empty-icon" }),
2189
+ /* @__PURE__ */ jsx9(
2197
2190
  Text4,
2198
2191
  {
2199
2192
  size: "small",
@@ -2204,7 +2197,7 @@ var NotificationsEmptyState = ({ t: t2 }) => {
2204
2197
  children: t2("notifications.emptyState.title")
2205
2198
  }
2206
2199
  ),
2207
- /* @__PURE__ */ jsx10(
2200
+ /* @__PURE__ */ jsx9(
2208
2201
  Text4,
2209
2202
  {
2210
2203
  size: "small",
@@ -2218,13 +2211,13 @@ var NotificationsEmptyState = ({ t: t2 }) => {
2218
2211
  );
2219
2212
  };
2220
2213
  var useUnreadNotifications = () => {
2221
- const [hasUnread, setHasUnread] = useState9(false);
2214
+ const [hasUnread, setHasUnread] = useState8(false);
2222
2215
  const { notifications } = useNotifications(
2223
2216
  { limit: 1, offset: 0, fields: "created_at" },
2224
2217
  { refetchInterval: 6e4 }
2225
2218
  );
2226
2219
  const lastNotification = notifications?.[0];
2227
- useEffect8(() => {
2220
+ useEffect7(() => {
2228
2221
  if (!lastNotification) {
2229
2222
  return;
2230
2223
  }
@@ -2239,20 +2232,20 @@ var useUnreadNotifications = () => {
2239
2232
  };
2240
2233
 
2241
2234
  // src/components/layout/shell/shell.tsx
2242
- import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
2235
+ import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
2243
2236
  var Shell = ({ children }) => {
2244
2237
  const globalShortcuts = useGlobalShortcuts();
2245
2238
  const navigation2 = useNavigation();
2246
2239
  const loading = navigation2.state === "loading";
2247
- return /* @__PURE__ */ jsx11(KeybindProvider, { shortcuts: globalShortcuts, children: /* @__PURE__ */ jsxs6("div", { className: "relative flex h-screen flex-col items-start overflow-hidden lg:flex-row", children: [
2248
- /* @__PURE__ */ jsx11(NavigationBar, { loading }),
2240
+ return /* @__PURE__ */ jsx10(KeybindProvider, { shortcuts: globalShortcuts, children: /* @__PURE__ */ jsxs6("div", { className: "relative flex h-screen flex-col items-start overflow-hidden lg:flex-row", children: [
2241
+ /* @__PURE__ */ jsx10(NavigationBar, { loading }),
2249
2242
  /* @__PURE__ */ jsxs6("div", { children: [
2250
- /* @__PURE__ */ jsx11(MobileSidebarContainer, { children }),
2251
- /* @__PURE__ */ jsx11(DesktopSidebarContainer, { children })
2243
+ /* @__PURE__ */ jsx10(MobileSidebarContainer, { children }),
2244
+ /* @__PURE__ */ jsx10(DesktopSidebarContainer, { children })
2252
2245
  ] }),
2253
2246
  /* @__PURE__ */ jsxs6("div", { className: "flex h-screen w-full flex-col overflow-auto", children: [
2254
- /* @__PURE__ */ jsx11(Topbar, {}),
2255
- /* @__PURE__ */ jsx11(
2247
+ /* @__PURE__ */ jsx10(Topbar, {}),
2248
+ /* @__PURE__ */ jsx10(
2256
2249
  "main",
2257
2250
  {
2258
2251
  className: clx4(
@@ -2261,15 +2254,15 @@ var Shell = ({ children }) => {
2261
2254
  "opacity-25": loading
2262
2255
  }
2263
2256
  ),
2264
- children: /* @__PURE__ */ jsx11(Gutter, { children: /* @__PURE__ */ jsx11(Outlet2, {}) })
2257
+ children: /* @__PURE__ */ jsx10(Gutter, { children: /* @__PURE__ */ jsx10(Outlet2, {}) })
2265
2258
  }
2266
2259
  )
2267
2260
  ] })
2268
2261
  ] }) });
2269
2262
  };
2270
2263
  var NavigationBar = ({ loading }) => {
2271
- const [showBar, setShowBar] = useState10(false);
2272
- useEffect9(() => {
2264
+ const [showBar, setShowBar] = useState9(false);
2265
+ useEffect8(() => {
2273
2266
  let timeout;
2274
2267
  if (loading) {
2275
2268
  timeout = setTimeout(() => {
@@ -2282,10 +2275,10 @@ var NavigationBar = ({ loading }) => {
2282
2275
  clearTimeout(timeout);
2283
2276
  };
2284
2277
  }, [loading]);
2285
- return /* @__PURE__ */ jsx11("div", { className: "fixed inset-x-0 top-0 z-50 h-1", children: /* @__PURE__ */ jsx11(AnimatePresence, { children: showBar ? /* @__PURE__ */ jsx11(ProgressBar, {}) : null }) });
2278
+ return /* @__PURE__ */ jsx10("div", { className: "fixed inset-x-0 top-0 z-50 h-1", children: /* @__PURE__ */ jsx10(AnimatePresence, { children: showBar ? /* @__PURE__ */ jsx10(ProgressBar, {}) : null }) });
2286
2279
  };
2287
2280
  var Gutter = ({ children }) => {
2288
- return /* @__PURE__ */ jsx11("div", { className: "flex w-full max-w-[1600px] flex-col gap-y-2 p-3", children });
2281
+ return /* @__PURE__ */ jsx10("div", { className: "flex w-full max-w-[1600px] flex-col gap-y-2 p-3", children });
2289
2282
  };
2290
2283
  var Breadcrumbs = () => {
2291
2284
  const matches = useMatches();
@@ -2304,7 +2297,7 @@ var Breadcrumbs = () => {
2304
2297
  path: match.pathname
2305
2298
  };
2306
2299
  }).filter(Boolean);
2307
- return /* @__PURE__ */ jsx11(
2300
+ return /* @__PURE__ */ jsx10(
2308
2301
  "ol",
2309
2302
  {
2310
2303
  className: clx4(
@@ -2314,7 +2307,7 @@ var Breadcrumbs = () => {
2314
2307
  const isLast = index === crumbs.length - 1;
2315
2308
  const isSingle = crumbs.length === 1;
2316
2309
  return /* @__PURE__ */ jsxs6("li", { className: clx4("flex items-center"), children: [
2317
- !isLast ? /* @__PURE__ */ jsx11(
2310
+ !isLast ? /* @__PURE__ */ jsx10(
2318
2311
  Link,
2319
2312
  {
2320
2313
  className: "transition-fg hover:text-ui-fg-subtle",
@@ -2322,8 +2315,8 @@ var Breadcrumbs = () => {
2322
2315
  children: crumb.label
2323
2316
  }
2324
2317
  ) : /* @__PURE__ */ jsxs6("div", { children: [
2325
- !isSingle && /* @__PURE__ */ jsx11("span", { className: "block lg:hidden", children: "..." }),
2326
- /* @__PURE__ */ jsx11(
2318
+ !isSingle && /* @__PURE__ */ jsx10("span", { className: "block lg:hidden", children: "..." }),
2319
+ /* @__PURE__ */ jsx10(
2327
2320
  "span",
2328
2321
  {
2329
2322
  className: clx4({
@@ -2334,33 +2327,34 @@ var Breadcrumbs = () => {
2334
2327
  index
2335
2328
  )
2336
2329
  ] }),
2337
- !isLast && /* @__PURE__ */ jsx11("span", { className: "mx-2", children: /* @__PURE__ */ jsx11(TriangleRightMini, { className: "rtl:rotate-180" }) })
2330
+ !isLast && /* @__PURE__ */ jsx10("span", { className: "mx-2", children: /* @__PURE__ */ jsx10(TriangleRightMini, { className: "rtl:rotate-180" }) })
2338
2331
  ] }, index);
2339
2332
  })
2340
2333
  }
2341
2334
  );
2342
2335
  };
2343
2336
  var ToggleSidebar = () => {
2344
- const { toggle } = useSidebar();
2337
+ const { toggle, state } = useSidebar();
2345
2338
  return /* @__PURE__ */ jsxs6("div", { children: [
2346
- /* @__PURE__ */ jsx11(
2339
+ /* @__PURE__ */ jsx10(
2347
2340
  IconButton4,
2348
2341
  {
2349
2342
  className: "hidden lg:flex",
2350
2343
  variant: "transparent",
2351
2344
  onClick: () => toggle("desktop"),
2352
2345
  size: "small",
2353
- children: /* @__PURE__ */ jsx11(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
2346
+ "aria-expanded": state === "expanded",
2347
+ children: /* @__PURE__ */ jsx10(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
2354
2348
  }
2355
2349
  ),
2356
- /* @__PURE__ */ jsx11(
2350
+ /* @__PURE__ */ jsx10(
2357
2351
  IconButton4,
2358
2352
  {
2359
2353
  className: "hidden max-lg:flex",
2360
2354
  variant: "transparent",
2361
2355
  onClick: () => toggle("mobile"),
2362
2356
  size: "small",
2363
- children: /* @__PURE__ */ jsx11(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
2357
+ children: /* @__PURE__ */ jsx10(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
2364
2358
  }
2365
2359
  )
2366
2360
  ] });
@@ -2368,20 +2362,23 @@ var ToggleSidebar = () => {
2368
2362
  var Topbar = () => {
2369
2363
  return /* @__PURE__ */ jsxs6("div", { className: "grid w-full grid-cols-2 border-b p-3", children: [
2370
2364
  /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-x-1.5", children: [
2371
- /* @__PURE__ */ jsx11(ToggleSidebar, {}),
2372
- /* @__PURE__ */ jsx11(Breadcrumbs, {})
2365
+ /* @__PURE__ */ jsx10(ToggleSidebar, {}),
2366
+ /* @__PURE__ */ jsx10(Breadcrumbs, {})
2373
2367
  ] }),
2374
- /* @__PURE__ */ jsx11("div", { className: "flex items-center justify-end gap-x-3", children: /* @__PURE__ */ jsx11(Notifications, {}) })
2368
+ /* @__PURE__ */ jsx10("div", { className: "flex items-center justify-end gap-x-3", children: /* @__PURE__ */ jsx10(Notifications, {}) })
2375
2369
  ] });
2376
2370
  };
2377
2371
  var DesktopSidebarContainer = ({ children }) => {
2378
- const { desktop } = useSidebar();
2379
- return /* @__PURE__ */ jsx11(
2372
+ const { state } = useSidebar();
2373
+ return /* @__PURE__ */ jsx10(
2380
2374
  "div",
2381
2375
  {
2382
- className: clx4("hidden h-screen w-[220px] border-e", {
2383
- "lg:flex": desktop
2384
- }),
2376
+ "data-state": state,
2377
+ className: clx4(
2378
+ "group/sidebar hidden h-screen w-[220px] shrink-0 overflow-x-hidden border-e lg:flex",
2379
+ "transition-[width] duration-200 ease-sidebar motion-reduce:transition-none",
2380
+ "data-[state=collapsed]:w-[52px]"
2381
+ ),
2385
2382
  children
2386
2383
  }
2387
2384
  );
@@ -2389,8 +2386,8 @@ var DesktopSidebarContainer = ({ children }) => {
2389
2386
  var MobileSidebarContainer = ({ children }) => {
2390
2387
  const { t: t2 } = useTranslation6();
2391
2388
  const { mobile, toggle } = useSidebar();
2392
- return /* @__PURE__ */ jsx11(RadixDialog2.Root, { open: mobile, onOpenChange: () => toggle("mobile"), children: /* @__PURE__ */ jsxs6(RadixDialog2.Portal, { children: [
2393
- /* @__PURE__ */ jsx11(
2389
+ return /* @__PURE__ */ jsx10(RadixDialog2.Root, { open: mobile, onOpenChange: () => toggle("mobile"), children: /* @__PURE__ */ jsxs6(RadixDialog2.Portal, { children: [
2390
+ /* @__PURE__ */ jsx10(
2394
2391
  RadixDialog2.Overlay,
2395
2392
  {
2396
2393
  className: clx4(
@@ -2408,17 +2405,17 @@ var MobileSidebarContainer = ({ children }) => {
2408
2405
  ),
2409
2406
  children: [
2410
2407
  /* @__PURE__ */ jsxs6("div", { className: "p-3", children: [
2411
- /* @__PURE__ */ jsx11(RadixDialog2.Close, { asChild: true, children: /* @__PURE__ */ jsx11(
2408
+ /* @__PURE__ */ jsx10(RadixDialog2.Close, { asChild: true, children: /* @__PURE__ */ jsx10(
2412
2409
  IconButton4,
2413
2410
  {
2414
2411
  size: "small",
2415
2412
  variant: "transparent",
2416
2413
  className: "text-ui-fg-subtle",
2417
- children: /* @__PURE__ */ jsx11(XMark, {})
2414
+ children: /* @__PURE__ */ jsx10(XMark, {})
2418
2415
  }
2419
2416
  ) }),
2420
- /* @__PURE__ */ jsx11(RadixDialog2.Title, { className: "sr-only", children: t2("app.nav.accessibility.title") }),
2421
- /* @__PURE__ */ jsx11(RadixDialog2.Description, { className: "sr-only", children: t2("app.nav.accessibility.description") })
2417
+ /* @__PURE__ */ jsx10(RadixDialog2.Title, { className: "sr-only", children: t2("app.nav.accessibility.title") }),
2418
+ /* @__PURE__ */ jsx10(RadixDialog2.Description, { className: "sr-only", children: t2("app.nav.accessibility.description") })
2422
2419
  ] }),
2423
2420
  children
2424
2421
  ]
@@ -2450,49 +2447,49 @@ import {
2450
2447
  } from "@medusajs/ui";
2451
2448
  import { Dialog as RadixDialog3 } from "radix-ui";
2452
2449
  import { useTranslation as useTranslation7 } from "react-i18next";
2453
- import { useState as useState11 } from "react";
2454
- import { Link as Link2, useLocation as useLocation5, useNavigate as useNavigate3 } from "react-router-dom";
2455
- import { jsx as jsx12, jsxs as jsxs7 } from "react/jsx-runtime";
2450
+ import { useState as useState10 } from "react";
2451
+ import { Link as Link2, useLocation as useLocation4, useNavigate as useNavigate3 } from "react-router-dom";
2452
+ import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
2456
2453
  var UserMenu = () => {
2457
2454
  const { t: t2 } = useTranslation7();
2458
- const location = useLocation5();
2455
+ const location = useLocation4();
2459
2456
  const direction = useDocumentDirection();
2460
- const [openMenu, setOpenMenu] = useState11(false);
2461
- const [openModal, setOpenModal] = useState11(false);
2457
+ const [openMenu, setOpenMenu] = useState10(false);
2458
+ const [openModal, setOpenModal] = useState10(false);
2462
2459
  const toggleModal = () => {
2463
2460
  setOpenMenu(false);
2464
2461
  setOpenModal(!openModal);
2465
2462
  };
2466
2463
  return /* @__PURE__ */ jsxs7("div", { "data-testid": "sidebar-user-menu", children: [
2467
2464
  /* @__PURE__ */ jsxs7(DropdownMenu2, { dir: direction, open: openMenu, onOpenChange: setOpenMenu, "data-testid": "sidebar-user-menu-dropdown", children: [
2468
- /* @__PURE__ */ jsx12(UserBadge, {}),
2465
+ /* @__PURE__ */ jsx11(UserBadge, {}),
2469
2466
  /* @__PURE__ */ jsxs7(DropdownMenu2.Content, { className: "min-w-[var(--radix-dropdown-menu-trigger-width)] max-w-[var(--radix-dropdown-menu-trigger-width)]", "data-testid": "sidebar-user-menu-content", children: [
2470
- /* @__PURE__ */ jsx12(UserItem, {}),
2471
- /* @__PURE__ */ jsx12(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-1" }),
2472
- /* @__PURE__ */ jsx12(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-profile-settings", children: /* @__PURE__ */ jsxs7(Link2, { to: "/settings/profile", state: { from: location.pathname }, children: [
2473
- /* @__PURE__ */ jsx12(UserIcon, { className: "text-ui-fg-subtle me-2" }),
2467
+ /* @__PURE__ */ jsx11(UserItem, {}),
2468
+ /* @__PURE__ */ jsx11(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-1" }),
2469
+ /* @__PURE__ */ jsx11(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-profile-settings", children: /* @__PURE__ */ jsxs7(Link2, { to: "/settings/profile", state: { from: location.pathname }, children: [
2470
+ /* @__PURE__ */ jsx11(UserIcon, { className: "text-ui-fg-subtle me-2" }),
2474
2471
  t2("app.menus.user.profileSettings")
2475
2472
  ] }) }),
2476
- /* @__PURE__ */ jsx12(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-2" }),
2477
- /* @__PURE__ */ jsx12(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-documentation", children: /* @__PURE__ */ jsxs7(Link2, { to: "https://docs.mercurjs.com/welcome", target: "_blank", children: [
2478
- /* @__PURE__ */ jsx12(BookOpen, { className: "text-ui-fg-subtle me-2" }),
2473
+ /* @__PURE__ */ jsx11(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-2" }),
2474
+ /* @__PURE__ */ jsx11(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-documentation", children: /* @__PURE__ */ jsxs7(Link2, { to: "https://docs.mercurjs.com/welcome", target: "_blank", children: [
2475
+ /* @__PURE__ */ jsx11(BookOpen, { className: "text-ui-fg-subtle me-2" }),
2479
2476
  t2("app.menus.user.documentation")
2480
2477
  ] }) }),
2481
- /* @__PURE__ */ jsx12(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-changelog", children: /* @__PURE__ */ jsxs7(Link2, { to: "https://www.mercurjs.com/updates", target: "_blank", children: [
2482
- /* @__PURE__ */ jsx12(TimelineVertical, { className: "text-ui-fg-subtle me-2" }),
2478
+ /* @__PURE__ */ jsx11(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-changelog", children: /* @__PURE__ */ jsxs7(Link2, { to: "https://www.mercurjs.com/updates", target: "_blank", children: [
2479
+ /* @__PURE__ */ jsx11(TimelineVertical, { className: "text-ui-fg-subtle me-2" }),
2483
2480
  t2("app.menus.user.changelog")
2484
2481
  ] }) }),
2485
- /* @__PURE__ */ jsx12(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-3" }),
2482
+ /* @__PURE__ */ jsx11(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-3" }),
2486
2483
  /* @__PURE__ */ jsxs7(DropdownMenu2.Item, { onClick: toggleModal, "data-testid": "sidebar-user-menu-shortcuts", children: [
2487
- /* @__PURE__ */ jsx12(Keyboard, { className: "text-ui-fg-subtle me-2" }),
2484
+ /* @__PURE__ */ jsx11(Keyboard, { className: "text-ui-fg-subtle me-2" }),
2488
2485
  t2("app.menus.user.shortcuts")
2489
2486
  ] }),
2490
- /* @__PURE__ */ jsx12(ThemeToggle, {}),
2491
- /* @__PURE__ */ jsx12(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-4" }),
2492
- /* @__PURE__ */ jsx12(Logout, {})
2487
+ /* @__PURE__ */ jsx11(ThemeToggle, {}),
2488
+ /* @__PURE__ */ jsx11(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-4" }),
2489
+ /* @__PURE__ */ jsx11(Logout, {})
2493
2490
  ] })
2494
2491
  ] }),
2495
- /* @__PURE__ */ jsx12(GlobalKeybindsModal, { open: openModal, onOpenChange: setOpenModal })
2492
+ /* @__PURE__ */ jsx11(GlobalKeybindsModal, { open: openModal, onOpenChange: setOpenModal })
2496
2493
  ] });
2497
2494
  };
2498
2495
  var UserBadge = () => {
@@ -2502,14 +2499,14 @@ var UserBadge = () => {
2502
2499
  const fallback = displayName ? displayName[0].toUpperCase() : null;
2503
2500
  if (isPending) {
2504
2501
  return /* @__PURE__ */ jsxs7("button", { className: "shadow-borders-base flex max-w-[192px] select-none items-center gap-x-2 overflow-hidden text-ellipsis whitespace-nowrap rounded-full py-1 ps-1 pe-2.5", children: [
2505
- /* @__PURE__ */ jsx12(Skeleton, { className: "h-5 w-5 rounded-full" }),
2506
- /* @__PURE__ */ jsx12(Skeleton, { className: "h-[9px] w-[70px]" })
2502
+ /* @__PURE__ */ jsx11(Skeleton, { className: "h-5 w-5 rounded-full" }),
2503
+ /* @__PURE__ */ jsx11(Skeleton, { className: "h-[9px] w-[70px]" })
2507
2504
  ] });
2508
2505
  }
2509
2506
  if (isError) {
2510
2507
  throw error;
2511
2508
  }
2512
- return /* @__PURE__ */ jsx12("div", { className: "p-3", "data-testid": "sidebar-user-menu-badge", children: /* @__PURE__ */ jsxs7(
2509
+ return /* @__PURE__ */ jsx11("div", { className: "p-3", "data-testid": "sidebar-user-menu-badge", children: /* @__PURE__ */ jsxs7(
2513
2510
  DropdownMenu2.Trigger,
2514
2511
  {
2515
2512
  disabled: !user,
@@ -2521,8 +2518,8 @@ var UserBadge = () => {
2521
2518
  ),
2522
2519
  "data-testid": "sidebar-user-menu-trigger",
2523
2520
  children: [
2524
- /* @__PURE__ */ jsx12("div", { className: "flex size-6 items-center justify-center", "data-testid": "sidebar-user-menu-avatar-container", children: fallback ? /* @__PURE__ */ jsx12(Avatar, { size: "xsmall", fallback, "data-testid": "sidebar-user-menu-avatar" }) : /* @__PURE__ */ jsx12(Skeleton, { className: "h-6 w-6 rounded-full" }) }),
2525
- /* @__PURE__ */ jsx12("div", { className: "flex items-center overflow-hidden", "data-testid": "sidebar-user-menu-name-container", children: displayName ? /* @__PURE__ */ jsx12(
2521
+ /* @__PURE__ */ jsx11("div", { className: "flex size-6 shrink-0 items-center justify-center", "data-testid": "sidebar-user-menu-avatar-container", children: fallback ? /* @__PURE__ */ jsx11(Avatar, { size: "xsmall", fallback, "data-testid": "sidebar-user-menu-avatar" }) : /* @__PURE__ */ jsx11(Skeleton, { className: "h-6 w-6 rounded-full" }) }),
2522
+ /* @__PURE__ */ jsx11("div", { className: clx5("flex items-center overflow-hidden whitespace-nowrap", SIDEBAR_RAIL_FADE), "data-testid": "sidebar-user-menu-name-container", children: displayName ? /* @__PURE__ */ jsx11(
2526
2523
  Text5,
2527
2524
  {
2528
2525
  size: "xsmall",
@@ -2532,8 +2529,8 @@ var UserBadge = () => {
2532
2529
  "data-testid": "sidebar-user-menu-name",
2533
2530
  children: displayName
2534
2531
  }
2535
- ) : /* @__PURE__ */ jsx12(Skeleton, { className: "h-[9px] w-[70px]" }) }),
2536
- /* @__PURE__ */ jsx12(EllipsisHorizontal, { className: "text-ui-fg-muted" })
2532
+ ) : /* @__PURE__ */ jsx11(Skeleton, { className: "h-[9px] w-[70px]" }) }),
2533
+ /* @__PURE__ */ jsx11(EllipsisHorizontal, { className: clx5("text-ui-fg-muted", SIDEBAR_RAIL_FADE) })
2537
2534
  ]
2538
2535
  }
2539
2536
  ) });
@@ -2543,11 +2540,11 @@ var ThemeToggle = () => {
2543
2540
  const { theme, setTheme } = useTheme();
2544
2541
  return /* @__PURE__ */ jsxs7(DropdownMenu2.SubMenu, { "data-testid": "sidebar-user-menu-theme-toggle", children: [
2545
2542
  /* @__PURE__ */ jsxs7(DropdownMenu2.SubMenuTrigger, { dir: "ltr", className: "rounded-md rtl:rotate-180", "data-testid": "sidebar-user-menu-theme-trigger", children: [
2546
- /* @__PURE__ */ jsx12(CircleHalfSolid, { className: "text-ui-fg-subtle me-2" }),
2547
- /* @__PURE__ */ jsx12("span", { className: "rtl:rotate-180", children: t2("app.menus.user.theme.label") })
2543
+ /* @__PURE__ */ jsx11(CircleHalfSolid, { className: "text-ui-fg-subtle me-2" }),
2544
+ /* @__PURE__ */ jsx11("span", { className: "rtl:rotate-180", children: t2("app.menus.user.theme.label") })
2548
2545
  ] }),
2549
- /* @__PURE__ */ jsx12(DropdownMenu2.SubMenuContent, { "data-testid": "sidebar-user-menu-theme-content", children: /* @__PURE__ */ jsxs7(DropdownMenu2.RadioGroup, { value: theme, "data-testid": "sidebar-user-menu-theme-radio-group", children: [
2550
- /* @__PURE__ */ jsx12(
2546
+ /* @__PURE__ */ jsx11(DropdownMenu2.SubMenuContent, { "data-testid": "sidebar-user-menu-theme-content", children: /* @__PURE__ */ jsxs7(DropdownMenu2.RadioGroup, { value: theme, "data-testid": "sidebar-user-menu-theme-radio-group", children: [
2547
+ /* @__PURE__ */ jsx11(
2551
2548
  DropdownMenu2.RadioItem,
2552
2549
  {
2553
2550
  value: "system",
@@ -2559,7 +2556,7 @@ var ThemeToggle = () => {
2559
2556
  children: t2("app.menus.user.theme.system")
2560
2557
  }
2561
2558
  ),
2562
- /* @__PURE__ */ jsx12(
2559
+ /* @__PURE__ */ jsx11(
2563
2560
  DropdownMenu2.RadioItem,
2564
2561
  {
2565
2562
  value: "light",
@@ -2571,7 +2568,7 @@ var ThemeToggle = () => {
2571
2568
  children: t2("app.menus.user.theme.light")
2572
2569
  }
2573
2570
  ),
2574
- /* @__PURE__ */ jsx12(
2571
+ /* @__PURE__ */ jsx11(
2575
2572
  DropdownMenu2.RadioItem,
2576
2573
  {
2577
2574
  value: "dark",
@@ -2598,33 +2595,33 @@ var Logout = () => {
2598
2595
  }
2599
2596
  });
2600
2597
  };
2601
- return /* @__PURE__ */ jsx12(DropdownMenu2.Item, { onClick: handleLogout, "data-testid": "sidebar-user-menu-logout", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-2", children: [
2602
- /* @__PURE__ */ jsx12(OpenRectArrowOut, { className: "text-ui-fg-subtle" }),
2603
- /* @__PURE__ */ jsx12("span", { children: t2("app.menus.actions.logout") })
2598
+ return /* @__PURE__ */ jsx11(DropdownMenu2.Item, { onClick: handleLogout, "data-testid": "sidebar-user-menu-logout", children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-2", children: [
2599
+ /* @__PURE__ */ jsx11(OpenRectArrowOut, { className: "text-ui-fg-subtle" }),
2600
+ /* @__PURE__ */ jsx11("span", { children: t2("app.menus.actions.logout") })
2604
2601
  ] }) });
2605
2602
  };
2606
2603
  var GlobalKeybindsModal = (props) => {
2607
2604
  const { t: t2 } = useTranslation7();
2608
2605
  const globalShortcuts = useGlobalShortcuts();
2609
- const [searchValue, onSearchValueChange] = useState11("");
2606
+ const [searchValue, onSearchValueChange] = useState10("");
2610
2607
  const searchResults = searchValue ? globalShortcuts.filter((shortcut) => {
2611
2608
  return shortcut.label.toLowerCase().includes(searchValue?.toLowerCase());
2612
2609
  }) : globalShortcuts;
2613
- return /* @__PURE__ */ jsx12(RadixDialog3.Root, { ...props, "data-testid": "shortcuts-modal", children: /* @__PURE__ */ jsxs7(RadixDialog3.Portal, { children: [
2614
- /* @__PURE__ */ jsx12(RadixDialog3.Overlay, { className: "bg-ui-bg-overlay fixed inset-0", "data-testid": "shortcuts-modal-overlay" }),
2610
+ return /* @__PURE__ */ jsx11(RadixDialog3.Root, { ...props, "data-testid": "shortcuts-modal", children: /* @__PURE__ */ jsxs7(RadixDialog3.Portal, { children: [
2611
+ /* @__PURE__ */ jsx11(RadixDialog3.Overlay, { className: "bg-ui-bg-overlay fixed inset-0", "data-testid": "shortcuts-modal-overlay" }),
2615
2612
  /* @__PURE__ */ jsxs7(RadixDialog3.Content, { className: "bg-ui-bg-subtle shadow-elevation-modal fixed left-[50%] top-[50%] flex h-full max-h-[612px] w-full max-w-[560px] translate-x-[-50%] translate-y-[-50%] flex-col divide-y overflow-hidden rounded-lg", "data-testid": "shortcuts-modal-content", children: [
2616
2613
  /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-y-3 px-6 py-4", "data-testid": "shortcuts-modal-header", children: [
2617
2614
  /* @__PURE__ */ jsxs7("div", { className: "flex items-center justify-between", "data-testid": "shortcuts-modal-header-top", children: [
2618
2615
  /* @__PURE__ */ jsxs7("div", { "data-testid": "shortcuts-modal-title-container", children: [
2619
- /* @__PURE__ */ jsx12(RadixDialog3.Title, { asChild: true, children: /* @__PURE__ */ jsx12(Heading2, { "data-testid": "shortcuts-modal-title", children: t2("app.menus.user.shortcuts") }) }),
2620
- /* @__PURE__ */ jsx12(RadixDialog3.Description, { className: "sr-only", "data-testid": "shortcuts-modal-description" })
2616
+ /* @__PURE__ */ jsx11(RadixDialog3.Title, { asChild: true, children: /* @__PURE__ */ jsx11(Heading2, { "data-testid": "shortcuts-modal-title", children: t2("app.menus.user.shortcuts") }) }),
2617
+ /* @__PURE__ */ jsx11(RadixDialog3.Description, { className: "sr-only", "data-testid": "shortcuts-modal-description" })
2621
2618
  ] }),
2622
2619
  /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-2", "data-testid": "shortcuts-modal-close-container", children: [
2623
- /* @__PURE__ */ jsx12(Kbd3, { "data-testid": "shortcuts-modal-close-hint", children: "esc" }),
2624
- /* @__PURE__ */ jsx12(RadixDialog3.Close, { asChild: true, children: /* @__PURE__ */ jsx12(IconButton5, { variant: "transparent", size: "small", "data-testid": "shortcuts-modal-close-button", children: /* @__PURE__ */ jsx12(XMark2, {}) }) })
2620
+ /* @__PURE__ */ jsx11(Kbd3, { "data-testid": "shortcuts-modal-close-hint", children: "esc" }),
2621
+ /* @__PURE__ */ jsx11(RadixDialog3.Close, { asChild: true, children: /* @__PURE__ */ jsx11(IconButton5, { variant: "transparent", size: "small", "data-testid": "shortcuts-modal-close-button", children: /* @__PURE__ */ jsx11(XMark2, {}) }) })
2625
2622
  ] })
2626
2623
  ] }),
2627
- /* @__PURE__ */ jsx12("div", { "data-testid": "shortcuts-modal-search-container", children: /* @__PURE__ */ jsx12(
2624
+ /* @__PURE__ */ jsx11("div", { "data-testid": "shortcuts-modal-search-container", children: /* @__PURE__ */ jsx11(
2628
2625
  Input,
2629
2626
  {
2630
2627
  type: "search",
@@ -2634,18 +2631,18 @@ var GlobalKeybindsModal = (props) => {
2634
2631
  }
2635
2632
  ) })
2636
2633
  ] }),
2637
- /* @__PURE__ */ jsx12("div", { className: "flex flex-col divide-y overflow-y-auto", "data-testid": "shortcuts-modal-list", children: searchResults.map((shortcut, index) => {
2634
+ /* @__PURE__ */ jsx11("div", { className: "flex flex-col divide-y overflow-y-auto", "data-testid": "shortcuts-modal-list", children: searchResults.map((shortcut, index) => {
2638
2635
  return /* @__PURE__ */ jsxs7(
2639
2636
  "div",
2640
2637
  {
2641
2638
  className: "text-ui-fg-subtle flex items-center justify-between px-6 py-3",
2642
2639
  "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}`,
2643
2640
  children: [
2644
- /* @__PURE__ */ jsx12(Text5, { size: "small", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-label`, children: shortcut.label }),
2645
- /* @__PURE__ */ jsx12("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) => {
2641
+ /* @__PURE__ */ jsx11(Text5, { size: "small", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-label`, children: shortcut.label }),
2642
+ /* @__PURE__ */ jsx11("div", { className: "flex items-center gap-x-1", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-keys`, children: shortcut.keys.Mac?.map((key, index2) => {
2646
2643
  return /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-1", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-key-${index2}`, children: [
2647
- /* @__PURE__ */ jsx12(Kbd3, { "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-kbd-${index2}`, children: key }),
2648
- index2 < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx12("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") })
2644
+ /* @__PURE__ */ jsx11(Kbd3, { "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-kbd-${index2}`, children: key }),
2645
+ index2 < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx11("span", { className: "txt-compact-xsmall text-ui-fg-subtle", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-separator-${index2}`, children: t2("app.keyboardShortcuts.then") })
2649
2646
  ] }, index2);
2650
2647
  }) })
2651
2648
  ]
@@ -2660,7 +2657,7 @@ var UserItem = () => {
2660
2657
  const { user, isPending, isError, error } = useMe();
2661
2658
  const loaded = !isPending && !!user;
2662
2659
  if (!loaded) {
2663
- return /* @__PURE__ */ jsx12("div", {});
2660
+ return /* @__PURE__ */ jsx11("div", {});
2664
2661
  }
2665
2662
  const name = [user.first_name, user.last_name].filter(Boolean).join(" ");
2666
2663
  const email = user.email;
@@ -2670,7 +2667,7 @@ var UserItem = () => {
2670
2667
  throw error;
2671
2668
  }
2672
2669
  return /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-3 overflow-hidden px-2 py-1", "data-testid": "sidebar-user-menu-item", children: [
2673
- /* @__PURE__ */ jsx12(
2670
+ /* @__PURE__ */ jsx11(
2674
2671
  Avatar,
2675
2672
  {
2676
2673
  size: "small",
@@ -2681,7 +2678,7 @@ var UserItem = () => {
2681
2678
  }
2682
2679
  ),
2683
2680
  /* @__PURE__ */ jsxs7("div", { className: "block w-full min-w-0 max-w-[187px] overflow-hidden whitespace-nowrap", "data-testid": "sidebar-user-menu-item-details", children: [
2684
- /* @__PURE__ */ jsx12(
2681
+ /* @__PURE__ */ jsx11(
2685
2682
  Text5,
2686
2683
  {
2687
2684
  size: "small",
@@ -2692,7 +2689,7 @@ var UserItem = () => {
2692
2689
  children: name || email
2693
2690
  }
2694
2691
  ),
2695
- !!name && /* @__PURE__ */ jsx12(
2692
+ !!name && /* @__PURE__ */ jsx11(
2696
2693
  Text5,
2697
2694
  {
2698
2695
  size: "xsmall",
@@ -2718,16 +2715,16 @@ import {
2718
2715
  import { ExclamationCircle } from "@medusajs/icons";
2719
2716
  import { Text as Text6 } from "@medusajs/ui";
2720
2717
  import { useTranslation as useTranslation8 } from "react-i18next";
2721
- import { Navigate as Navigate2, useLocation as useLocation6, useRouteError } from "react-router-dom";
2722
- import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
2718
+ import { Navigate as Navigate2, useLocation as useLocation5, useRouteError } from "react-router-dom";
2719
+ import { jsx as jsx12, jsxs as jsxs8 } from "react/jsx-runtime";
2723
2720
  var ErrorBoundary = () => {
2724
2721
  const error = useRouteError();
2725
- const location = useLocation6();
2722
+ const location = useLocation5();
2726
2723
  const { t: t2 } = useTranslation8();
2727
2724
  let code = null;
2728
2725
  if (isClientError(error)) {
2729
2726
  if (error.status === 401) {
2730
- return /* @__PURE__ */ jsx13(Navigate2, { to: "/login", state: { from: location }, replace: true });
2727
+ return /* @__PURE__ */ jsx12(Navigate2, { to: "/login", state: { from: location }, replace: true });
2731
2728
  }
2732
2729
  code = error.status ?? null;
2733
2730
  }
@@ -2754,11 +2751,11 @@ var ErrorBoundary = () => {
2754
2751
  message = t2("errorBoundary.defaultMessage");
2755
2752
  break;
2756
2753
  }
2757
- return /* @__PURE__ */ jsx13("div", { className: "flex size-full min-h-[calc(100vh-57px-24px)] items-center justify-center", children: /* @__PURE__ */ jsx13("div", { className: "flex flex-col gap-y-6", children: /* @__PURE__ */ jsxs8("div", { className: "text-ui-fg-subtle flex flex-col items-center gap-y-3", children: [
2758
- /* @__PURE__ */ jsx13(ExclamationCircle, {}),
2754
+ return /* @__PURE__ */ jsx12("div", { className: "flex size-full min-h-[calc(100vh-57px-24px)] items-center justify-center", children: /* @__PURE__ */ jsx12("div", { className: "flex flex-col gap-y-6", children: /* @__PURE__ */ jsxs8("div", { className: "text-ui-fg-subtle flex flex-col items-center gap-y-3", children: [
2755
+ /* @__PURE__ */ jsx12(ExclamationCircle, {}),
2759
2756
  /* @__PURE__ */ jsxs8("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
2760
- /* @__PURE__ */ jsx13(Text6, { size: "small", leading: "compact", weight: "plus", children: title }),
2761
- /* @__PURE__ */ jsx13(
2757
+ /* @__PURE__ */ jsx12(Text6, { size: "small", leading: "compact", weight: "plus", children: title }),
2758
+ /* @__PURE__ */ jsx12(
2762
2759
  Text6,
2763
2760
  {
2764
2761
  size: "small",
@@ -2962,7 +2959,7 @@ var ROUTE_PERMISSIONS = {
2962
2959
  var getRoutePermission = (path) => ROUTE_PERMISSIONS[path];
2963
2960
 
2964
2961
  // src/components/layout/main-layout/main-layout.tsx
2965
- import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
2962
+ import { jsx as jsx13, jsxs as jsxs9 } from "react/jsx-runtime";
2966
2963
  var navId = (to) => to.replace(/^\//, "");
2967
2964
  var toCoreNavItem = (route) => ({
2968
2965
  id: navId(route.to),
@@ -2976,7 +2973,7 @@ var toCoreNavItem = (route) => ({
2976
2973
  }))
2977
2974
  });
2978
2975
  var MainLayout = () => {
2979
- return /* @__PURE__ */ jsx14(Shell, { children: /* @__PURE__ */ jsx14(MainSidebar, {}) });
2976
+ return /* @__PURE__ */ jsx13(Shell, { children: /* @__PURE__ */ jsx13(MainSidebar, {}) });
2980
2977
  };
2981
2978
  var allMenuItems = menuItemsModule.menuItems ?? [];
2982
2979
  var addNestedItems = (to, menuItems, items) => {
@@ -3019,14 +3016,14 @@ var MainSidebar = () => {
3019
3016
  const customRoutesWithNested = customMenuItems.sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0)).map((item) => ({
3020
3017
  label: item.label,
3021
3018
  to: item.path,
3022
- icon: item.icon ? /* @__PURE__ */ jsx14(item.icon, {}) : void 0,
3019
+ icon: item.icon ? /* @__PURE__ */ jsx13(item.icon, {}) : void 0,
3023
3020
  translationNs: item.translationNs,
3024
3021
  items: addNestedItems(item.path, visibleMenuItems)
3025
3022
  }));
3026
- return /* @__PURE__ */ jsx14(
3023
+ return /* @__PURE__ */ jsx13(
3027
3024
  "aside",
3028
3025
  {
3029
- className: "flex flex-1 flex-col justify-between overflow-y-auto",
3026
+ className: "flex flex-1 flex-col justify-between overflow-y-auto overflow-x-hidden",
3030
3027
  "data-testid": "sidebar",
3031
3028
  children: /* @__PURE__ */ jsxs9("div", { className: "flex flex-1 flex-col", children: [
3032
3029
  /* @__PURE__ */ jsxs9(
@@ -3035,34 +3032,34 @@ var MainSidebar = () => {
3035
3032
  className: "sticky top-0 bg-ui-bg-subtle",
3036
3033
  "data-testid": "sidebar-header-section",
3037
3034
  children: [
3038
- /* @__PURE__ */ jsx14(Header, {}),
3039
- /* @__PURE__ */ jsx14("div", { className: "px-3", children: /* @__PURE__ */ jsx14(Divider, { variant: "dashed" }) })
3035
+ /* @__PURE__ */ jsx13(Header, {}),
3036
+ /* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsx13(Divider, { variant: "dashed" }) })
3040
3037
  ]
3041
3038
  }
3042
3039
  ),
3043
3040
  /* @__PURE__ */ jsxs9("div", { className: "flex flex-1 flex-col justify-between", children: [
3044
- /* @__PURE__ */ jsx14("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ jsxs9(
3041
+ /* @__PURE__ */ jsx13("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ jsxs9(
3045
3042
  "nav",
3046
3043
  {
3047
3044
  className: "flex flex-col gap-y-1 py-3",
3048
3045
  "data-testid": "sidebar-core-routes",
3049
3046
  children: [
3050
- /* @__PURE__ */ jsx14(Searchbar, {}),
3047
+ /* @__PURE__ */ jsx13(Searchbar, {}),
3051
3048
  routesWithNested.map((route) => {
3052
- return /* @__PURE__ */ jsx14(NavItem, { ...route }, route.to);
3049
+ return /* @__PURE__ */ jsx13(NavItem, { ...route }, route.to);
3053
3050
  }),
3054
- customRoutesWithNested.map((route) => /* @__PURE__ */ jsx14(NavItem, { ...route }, route.to))
3051
+ customRoutesWithNested.map((route) => /* @__PURE__ */ jsx13(NavItem, { ...route }, route.to))
3055
3052
  ]
3056
3053
  }
3057
3054
  ) }),
3058
- /* @__PURE__ */ jsx14(UtilitySection, {})
3055
+ /* @__PURE__ */ jsx13(UtilitySection, {})
3059
3056
  ] }),
3060
- /* @__PURE__ */ jsx14(
3057
+ /* @__PURE__ */ jsx13(
3061
3058
  "div",
3062
3059
  {
3063
3060
  className: "sticky bottom-0 bg-ui-bg-subtle",
3064
3061
  "data-testid": "sidebar-user-section",
3065
- children: /* @__PURE__ */ jsx14(UserSection, {})
3062
+ children: /* @__PURE__ */ jsx13(UserSection, {})
3066
3063
  }
3067
3064
  )
3068
3065
  ] })
@@ -3081,14 +3078,14 @@ var Logout2 = () => {
3081
3078
  }
3082
3079
  });
3083
3080
  };
3084
- return /* @__PURE__ */ jsx14(
3081
+ return /* @__PURE__ */ jsx13(
3085
3082
  DropdownMenu3.Item,
3086
3083
  {
3087
3084
  onClick: handleLogout,
3088
3085
  "data-testid": "sidebar-header-dropdown-logout",
3089
3086
  children: /* @__PURE__ */ jsxs9("div", { className: "flex items-center gap-x-2", children: [
3090
- /* @__PURE__ */ jsx14(OpenRectArrowOut2, { className: "text-ui-fg-subtle" }),
3091
- /* @__PURE__ */ jsx14("span", { children: t2("app.menus.actions.logout") })
3087
+ /* @__PURE__ */ jsx13(OpenRectArrowOut2, { className: "text-ui-fg-subtle" }),
3088
+ /* @__PURE__ */ jsx13("span", { children: t2("app.menus.actions.logout") })
3092
3089
  ] })
3093
3090
  }
3094
3091
  );
@@ -3103,7 +3100,7 @@ var Header = () => {
3103
3100
  if (isError) {
3104
3101
  throw error;
3105
3102
  }
3106
- return /* @__PURE__ */ jsx14("div", { className: "w-full p-3", "data-testid": "sidebar-header-dropdown", children: /* @__PURE__ */ jsxs9(DropdownMenu3, { dir: direction, "data-testid": "sidebar-header-dropdown-menu", children: [
3103
+ return /* @__PURE__ */ jsx13("div", { className: "w-full p-3", "data-testid": "sidebar-header-dropdown", children: /* @__PURE__ */ jsxs9(DropdownMenu3, { dir: direction, "data-testid": "sidebar-header-dropdown-menu", children: [
3107
3104
  /* @__PURE__ */ jsxs9(
3108
3105
  DropdownMenu3.Trigger,
3109
3106
  {
@@ -3116,7 +3113,7 @@ var Header = () => {
3116
3113
  ),
3117
3114
  "data-testid": "sidebar-header-dropdown-trigger",
3118
3115
  children: [
3119
- fallback ? /* @__PURE__ */ jsx14(
3116
+ fallback ? /* @__PURE__ */ jsx13(
3120
3117
  Avatar2,
3121
3118
  {
3122
3119
  variant: "squared",
@@ -3124,13 +3121,13 @@ var Header = () => {
3124
3121
  fallback,
3125
3122
  "data-testid": "sidebar-header-dropdown-avatar"
3126
3123
  }
3127
- ) : /* @__PURE__ */ jsx14(Skeleton, { className: "h-6 w-6 rounded-md" }),
3128
- /* @__PURE__ */ jsx14(
3124
+ ) : /* @__PURE__ */ jsx13(Skeleton, { className: "h-6 w-6 rounded-md" }),
3125
+ /* @__PURE__ */ jsx13(
3129
3126
  "div",
3130
3127
  {
3131
- className: "block overflow-hidden text-start",
3128
+ className: clx6("block overflow-hidden whitespace-nowrap text-start", SIDEBAR_RAIL_FADE),
3132
3129
  "data-testid": "sidebar-header-dropdown-store-name",
3133
- children: name ? /* @__PURE__ */ jsx14(
3130
+ children: name ? /* @__PURE__ */ jsx13(
3134
3131
  Text7,
3135
3132
  {
3136
3133
  size: "small",
@@ -3139,10 +3136,10 @@ var Header = () => {
3139
3136
  className: "truncate",
3140
3137
  children: store.name
3141
3138
  }
3142
- ) : /* @__PURE__ */ jsx14(Skeleton, { className: "h-[9px] w-[120px]" })
3139
+ ) : /* @__PURE__ */ jsx13(Skeleton, { className: "h-[9px] w-[120px]" })
3143
3140
  }
3144
3141
  ),
3145
- /* @__PURE__ */ jsx14(EllipsisHorizontal2, { className: "text-ui-fg-muted" })
3142
+ /* @__PURE__ */ jsx13(EllipsisHorizontal2, { className: clx6("text-ui-fg-muted", SIDEBAR_RAIL_FADE) })
3146
3143
  ]
3147
3144
  }
3148
3145
  ),
@@ -3158,7 +3155,7 @@ var Header = () => {
3158
3155
  className: "flex items-center gap-x-3 px-2 py-1",
3159
3156
  "data-testid": "sidebar-header-dropdown-user-info",
3160
3157
  children: [
3161
- /* @__PURE__ */ jsx14(
3158
+ /* @__PURE__ */ jsx13(
3162
3159
  Avatar2,
3163
3160
  {
3164
3161
  variant: "squared",
@@ -3173,7 +3170,7 @@ var Header = () => {
3173
3170
  className: "flex flex-col overflow-hidden",
3174
3171
  "data-testid": "sidebar-header-dropdown-user-details",
3175
3172
  children: [
3176
- /* @__PURE__ */ jsx14(
3173
+ /* @__PURE__ */ jsx13(
3177
3174
  Text7,
3178
3175
  {
3179
3176
  size: "small",
@@ -3184,7 +3181,7 @@ var Header = () => {
3184
3181
  children: name
3185
3182
  }
3186
3183
  ),
3187
- /* @__PURE__ */ jsx14(
3184
+ /* @__PURE__ */ jsx13(
3188
3185
  Text7,
3189
3186
  {
3190
3187
  size: "xsmall",
@@ -3200,21 +3197,21 @@ var Header = () => {
3200
3197
  ]
3201
3198
  }
3202
3199
  ),
3203
- /* @__PURE__ */ jsx14(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-1" }),
3204
- /* @__PURE__ */ jsx14(
3200
+ /* @__PURE__ */ jsx13(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-1" }),
3201
+ /* @__PURE__ */ jsx13(
3205
3202
  DropdownMenu3.Item,
3206
3203
  {
3207
3204
  className: "gap-x-2",
3208
3205
  asChild: true,
3209
3206
  "data-testid": "sidebar-header-dropdown-store-settings",
3210
3207
  children: /* @__PURE__ */ jsxs9(Link3, { to: "/settings/marketplace", children: [
3211
- /* @__PURE__ */ jsx14(BuildingStorefront, { className: "text-ui-fg-subtle" }),
3208
+ /* @__PURE__ */ jsx13(BuildingStorefront, { className: "text-ui-fg-subtle" }),
3212
3209
  t2("app.nav.main.marketplaceSettings")
3213
3210
  ] })
3214
3211
  }
3215
3212
  ),
3216
- /* @__PURE__ */ jsx14(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-2" }),
3217
- /* @__PURE__ */ jsx14(Logout2, {})
3213
+ /* @__PURE__ */ jsx13(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-2" }),
3214
+ /* @__PURE__ */ jsx13(Logout2, {})
3218
3215
  ]
3219
3216
  }
3220
3217
  )
@@ -3224,7 +3221,7 @@ var useCoreRoutes = () => {
3224
3221
  const { t: t2 } = useTranslation9();
3225
3222
  return [
3226
3223
  {
3227
- icon: /* @__PURE__ */ jsx14(ShoppingCart, {}),
3224
+ icon: /* @__PURE__ */ jsx13(ShoppingCart, {}),
3228
3225
  label: t2("orders.domain"),
3229
3226
  to: "/orders",
3230
3227
  items: [
@@ -3236,7 +3233,7 @@ var useCoreRoutes = () => {
3236
3233
  ]
3237
3234
  },
3238
3235
  {
3239
- icon: /* @__PURE__ */ jsx14(Tag, {}),
3236
+ icon: /* @__PURE__ */ jsx13(Tag, {}),
3240
3237
  label: t2("products.domain"),
3241
3238
  to: "/products",
3242
3239
  items: [
@@ -3260,7 +3257,7 @@ var useCoreRoutes = () => {
3260
3257
  ]
3261
3258
  },
3262
3259
  {
3263
- icon: /* @__PURE__ */ jsx14(Buildings, {}),
3260
+ icon: /* @__PURE__ */ jsx13(Buildings, {}),
3264
3261
  label: t2("inventory.domain"),
3265
3262
  to: "/inventory",
3266
3263
  items: [
@@ -3271,7 +3268,7 @@ var useCoreRoutes = () => {
3271
3268
  ]
3272
3269
  },
3273
3270
  {
3274
- icon: /* @__PURE__ */ jsx14(Users, {}),
3271
+ icon: /* @__PURE__ */ jsx13(Users, {}),
3275
3272
  label: t2("customers.domain"),
3276
3273
  to: "/customers",
3277
3274
  items: [
@@ -3282,7 +3279,7 @@ var useCoreRoutes = () => {
3282
3279
  ]
3283
3280
  },
3284
3281
  {
3285
- icon: /* @__PURE__ */ jsx14(ReceiptPercent, {}),
3282
+ icon: /* @__PURE__ */ jsx13(ReceiptPercent, {}),
3286
3283
  label: t2("promotions.domain"),
3287
3284
  to: "/promotions",
3288
3285
  items: [
@@ -3293,12 +3290,12 @@ var useCoreRoutes = () => {
3293
3290
  ]
3294
3291
  },
3295
3292
  {
3296
- icon: /* @__PURE__ */ jsx14(CurrencyDollar, {}),
3293
+ icon: /* @__PURE__ */ jsx13(CurrencyDollar, {}),
3297
3294
  label: t2("priceLists.domain"),
3298
3295
  to: "/price-lists"
3299
3296
  },
3300
3297
  {
3301
- icon: /* @__PURE__ */ jsx14(BuildingStorefront, {}),
3298
+ icon: /* @__PURE__ */ jsx13(BuildingStorefront, {}),
3302
3299
  label: t2("stores.domain"),
3303
3300
  to: "/stores",
3304
3301
  items: [
@@ -3309,7 +3306,7 @@ var useCoreRoutes = () => {
3309
3306
  ]
3310
3307
  },
3311
3308
  {
3312
- icon: /* @__PURE__ */ jsx14(CreditCardRefresh, {}),
3309
+ icon: /* @__PURE__ */ jsx13(CreditCardRefresh, {}),
3313
3310
  label: t2("payouts.domain"),
3314
3311
  to: "/payouts"
3315
3312
  }
@@ -3318,63 +3315,63 @@ var useCoreRoutes = () => {
3318
3315
  var Searchbar = () => {
3319
3316
  const { t: t2 } = useTranslation9();
3320
3317
  const { toggleSearch } = useSearch();
3321
- return /* @__PURE__ */ jsx14("div", { className: "px-3", "data-testid": "sidebar-search", children: /* @__PURE__ */ jsxs9(
3318
+ return /* @__PURE__ */ jsx13("div", { className: "px-3", "data-testid": "sidebar-search", children: /* @__PURE__ */ jsxs9(
3322
3319
  "button",
3323
3320
  {
3324
3321
  onClick: toggleSearch,
3325
3322
  className: clx6(
3326
- "flex w-full items-center gap-x-2.5 rounded-md bg-ui-bg-subtle px-2 py-1 text-ui-fg-subtle outline-none",
3323
+ "flex w-full items-center gap-x-2.5 rounded-md bg-ui-bg-subtle px-2 py-1 text-ui-fg-subtle outline-none transition-[padding] duration-200 ease-sidebar motion-reduce:transition-none group-data-[state=collapsed]/sidebar:px-1",
3327
3324
  "hover:bg-ui-bg-subtle-hover",
3328
3325
  "focus-visible:shadow-borders-focus"
3329
3326
  ),
3330
3327
  "data-testid": "sidebar-search-button",
3331
3328
  children: [
3332
- /* @__PURE__ */ jsx14(MagnifyingGlass2, {}),
3333
- /* @__PURE__ */ jsx14("div", { className: "flex-1 text-start", children: /* @__PURE__ */ jsx14(Text7, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.label") }) }),
3334
- /* @__PURE__ */ jsx14(Text7, { size: "small", leading: "compact", className: "text-ui-fg-muted", children: "\u2318K" })
3329
+ /* @__PURE__ */ jsx13(MagnifyingGlass2, { className: "shrink-0" }),
3330
+ /* @__PURE__ */ jsx13("div", { className: clx6("flex-1 whitespace-nowrap text-start", SIDEBAR_RAIL_FADE), children: /* @__PURE__ */ jsx13(Text7, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.label") }) }),
3331
+ /* @__PURE__ */ jsx13(Text7, { size: "small", leading: "compact", className: clx6("text-ui-fg-muted", SIDEBAR_RAIL_FADE), children: "\u2318K" })
3335
3332
  ]
3336
3333
  }
3337
3334
  ) });
3338
3335
  };
3339
3336
  var UtilitySection = () => {
3340
- const location = useLocation7();
3337
+ const location = useLocation6();
3341
3338
  const { t: t2 } = useTranslation9();
3342
- return /* @__PURE__ */ jsx14("div", { className: "flex flex-col gap-y-0.5 py-3", children: /* @__PURE__ */ jsx14(
3339
+ return /* @__PURE__ */ jsx13("div", { className: "flex flex-col gap-y-0.5 py-3", children: /* @__PURE__ */ jsx13(
3343
3340
  NavItem,
3344
3341
  {
3345
3342
  label: t2("app.nav.settings.header"),
3346
3343
  to: "/settings",
3347
3344
  from: location.pathname,
3348
- icon: /* @__PURE__ */ jsx14(CogSixTooth, {})
3345
+ icon: /* @__PURE__ */ jsx13(CogSixTooth, {})
3349
3346
  }
3350
3347
  ) });
3351
3348
  };
3352
3349
  var UserSection = () => {
3353
3350
  return /* @__PURE__ */ jsxs9("div", { children: [
3354
- /* @__PURE__ */ jsx14("div", { className: "px-3", children: /* @__PURE__ */ jsx14(Divider, { variant: "dashed" }) }),
3355
- /* @__PURE__ */ jsx14(UserMenu, {})
3351
+ /* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsx13(Divider, { variant: "dashed" }) }),
3352
+ /* @__PURE__ */ jsx13(UserMenu, {})
3356
3353
  ] });
3357
3354
  };
3358
3355
 
3359
3356
  // src/components/layout/public-layout/public-layout.tsx
3360
3357
  import { Outlet as Outlet3 } from "react-router-dom";
3361
- import { jsx as jsx15 } from "react/jsx-runtime";
3358
+ import { jsx as jsx14 } from "react/jsx-runtime";
3362
3359
  var PublicLayout = () => {
3363
- return /* @__PURE__ */ jsx15(Outlet3, {});
3360
+ return /* @__PURE__ */ jsx14(Outlet3, {});
3364
3361
  };
3365
3362
 
3366
3363
  // src/components/layout/settings-layout/settings-layout.tsx
3367
- import { useEffect as useEffect10, useMemo as useMemo6, useState as useState12 } from "react";
3364
+ import { useEffect as useEffect9, useMemo as useMemo6, useState as useState11 } from "react";
3368
3365
  import { ArrowUturnLeft as ArrowUturnLeft2, MinusMini } from "@medusajs/icons";
3369
3366
  import { Divider as Divider2, IconButton as IconButton6, Text as Text8, clx as clx7 } from "@medusajs/ui";
3370
3367
  import { Collapsible as RadixCollapsible2 } from "radix-ui";
3371
3368
  import { useTranslation as useTranslation10 } from "react-i18next";
3372
- import { Link as Link4, useLocation as useLocation8 } from "react-router-dom";
3369
+ import { Link as Link4, useLocation as useLocation7 } from "react-router-dom";
3373
3370
  import menuItemsModule2 from "virtual:mercur/menu-items";
3374
3371
  import { usePermissions as usePermissions2 } from "@mercurjs/dashboard-shared";
3375
- import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
3372
+ import { jsx as jsx15, jsxs as jsxs10 } from "react/jsx-runtime";
3376
3373
  var SettingsLayout = () => {
3377
- return /* @__PURE__ */ jsx16(Shell, { children: /* @__PURE__ */ jsx16(SettingsSidebar, {}) });
3374
+ return /* @__PURE__ */ jsx15(Shell, { children: /* @__PURE__ */ jsx15(SettingsSidebar, {}) });
3378
3375
  };
3379
3376
  var allMenuItems2 = menuItemsModule2.menuItems ?? [];
3380
3377
  var useExtensionNavItems = () => {
@@ -3498,28 +3495,28 @@ var SettingsSidebar = () => {
3498
3495
  const { t: t2 } = useTranslation10();
3499
3496
  return /* @__PURE__ */ jsxs10("aside", { className: "relative flex flex-1 flex-col justify-between overflow-y-auto", children: [
3500
3497
  /* @__PURE__ */ jsxs10("div", { className: "sticky top-0 bg-ui-bg-subtle", children: [
3501
- /* @__PURE__ */ jsx16(Header2, {}),
3502
- /* @__PURE__ */ jsx16("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx16(Divider2, { variant: "dashed" }) })
3498
+ /* @__PURE__ */ jsx15(Header2, {}),
3499
+ /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx15(Divider2, { variant: "dashed" }) })
3503
3500
  ] }),
3504
3501
  /* @__PURE__ */ jsxs10("div", { className: "flex flex-1 flex-col", children: [
3505
3502
  /* @__PURE__ */ jsxs10("div", { className: "flex flex-1 flex-col overflow-y-auto", children: [
3506
- /* @__PURE__ */ jsx16(
3503
+ /* @__PURE__ */ jsx15(
3507
3504
  RadixCollapsibleSection,
3508
3505
  {
3509
3506
  label: t2("app.nav.settings.general"),
3510
3507
  items: routes
3511
3508
  }
3512
3509
  ),
3513
- /* @__PURE__ */ jsx16("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx16(Divider2, { variant: "dashed" }) }),
3514
- /* @__PURE__ */ jsx16(
3510
+ /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx15(Divider2, { variant: "dashed" }) }),
3511
+ /* @__PURE__ */ jsx15(
3515
3512
  RadixCollapsibleSection,
3516
3513
  {
3517
3514
  label: t2("app.nav.settings.developer"),
3518
3515
  items: developerRoutes
3519
3516
  }
3520
3517
  ),
3521
- /* @__PURE__ */ jsx16("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx16(Divider2, { variant: "dashed" }) }),
3522
- /* @__PURE__ */ jsx16(
3518
+ /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx15(Divider2, { variant: "dashed" }) }),
3519
+ /* @__PURE__ */ jsx15(
3523
3520
  RadixCollapsibleSection,
3524
3521
  {
3525
3522
  label: t2("app.nav.settings.myAccount"),
@@ -3527,20 +3524,20 @@ var SettingsSidebar = () => {
3527
3524
  }
3528
3525
  )
3529
3526
  ] }),
3530
- /* @__PURE__ */ jsx16("div", { className: "sticky bottom-0 bg-ui-bg-subtle", children: /* @__PURE__ */ jsx16(UserSection2, {}) })
3527
+ /* @__PURE__ */ jsx15("div", { className: "sticky bottom-0 bg-ui-bg-subtle", children: /* @__PURE__ */ jsx15(UserSection2, {}) })
3531
3528
  ] })
3532
3529
  ] });
3533
3530
  };
3534
3531
  var Header2 = () => {
3535
- const [from, setFrom] = useState12("/orders");
3532
+ const [from, setFrom] = useState11("/orders");
3536
3533
  const { t: t2 } = useTranslation10();
3537
- const location = useLocation8();
3538
- useEffect10(() => {
3534
+ const location = useLocation7();
3535
+ useEffect9(() => {
3539
3536
  if (location.state?.from) {
3540
3537
  setFrom(getSafeFromValue(location.state.from));
3541
3538
  }
3542
3539
  }, [location]);
3543
- return /* @__PURE__ */ jsx16("div", { className: "bg-ui-bg-subtle p-3", children: /* @__PURE__ */ jsx16(
3540
+ return /* @__PURE__ */ jsx15("div", { className: "bg-ui-bg-subtle p-3", children: /* @__PURE__ */ jsx15(
3544
3541
  Link4,
3545
3542
  {
3546
3543
  to: from,
@@ -3551,8 +3548,8 @@ var Header2 = () => {
3551
3548
  "focus-visible:shadow-borders-focus"
3552
3549
  ),
3553
3550
  children: /* @__PURE__ */ jsxs10("div", { className: "flex items-center gap-x-2.5 px-2 py-1", children: [
3554
- /* @__PURE__ */ jsx16("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx16(ArrowUturnLeft2, { className: "text-ui-fg-subtle" }) }),
3555
- /* @__PURE__ */ jsx16(Text8, { leading: "compact", weight: "plus", size: "small", children: t2("app.nav.settings.header") })
3551
+ /* @__PURE__ */ jsx15("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx15(ArrowUturnLeft2, { className: "text-ui-fg-subtle" }) }),
3552
+ /* @__PURE__ */ jsx15(Text8, { leading: "compact", weight: "plus", size: "small", children: t2("app.nav.settings.header") })
3556
3553
  ] })
3557
3554
  }
3558
3555
  ) });
@@ -3562,23 +3559,23 @@ var RadixCollapsibleSection = ({
3562
3559
  items
3563
3560
  }) => {
3564
3561
  return /* @__PURE__ */ jsxs10(RadixCollapsible2.Root, { defaultOpen: true, className: "py-3", children: [
3565
- /* @__PURE__ */ jsx16("div", { className: "px-3", children: /* @__PURE__ */ jsxs10("div", { className: "flex h-7 items-center justify-between px-2 text-ui-fg-muted", children: [
3566
- /* @__PURE__ */ jsx16(Text8, { size: "small", leading: "compact", children: label }),
3567
- /* @__PURE__ */ jsx16(RadixCollapsible2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx16(IconButton6, { size: "2xsmall", variant: "transparent", className: "static", children: /* @__PURE__ */ jsx16(MinusMini, { className: "text-ui-fg-muted" }) }) })
3562
+ /* @__PURE__ */ jsx15("div", { className: "px-3", children: /* @__PURE__ */ jsxs10("div", { className: "flex h-7 items-center justify-between px-2 text-ui-fg-muted", children: [
3563
+ /* @__PURE__ */ jsx15(Text8, { size: "small", leading: "compact", children: label }),
3564
+ /* @__PURE__ */ jsx15(RadixCollapsible2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx15(IconButton6, { size: "2xsmall", variant: "transparent", className: "static", children: /* @__PURE__ */ jsx15(MinusMini, { className: "text-ui-fg-muted" }) }) })
3568
3565
  ] }) }),
3569
- /* @__PURE__ */ jsx16(RadixCollapsible2.Content, { children: /* @__PURE__ */ jsx16("div", { className: "pt-0.5", children: /* @__PURE__ */ jsx16("nav", { className: "flex flex-col gap-y-0.5", children: items.map((setting) => /* @__PURE__ */ jsx16(NavItem, { type: "setting", ...setting }, setting.to)) }) }) })
3566
+ /* @__PURE__ */ jsx15(RadixCollapsible2.Content, { children: /* @__PURE__ */ jsx15("div", { className: "pt-0.5", children: /* @__PURE__ */ jsx15("nav", { className: "flex flex-col gap-y-0.5", children: items.map((setting) => /* @__PURE__ */ jsx15(NavItem, { type: "setting", ...setting }, setting.to)) }) }) })
3570
3567
  ] });
3571
3568
  };
3572
3569
  var UserSection2 = () => {
3573
3570
  return /* @__PURE__ */ jsxs10("div", { children: [
3574
- /* @__PURE__ */ jsx16("div", { className: "px-3", children: /* @__PURE__ */ jsx16(Divider2, { variant: "dashed" }) }),
3575
- /* @__PURE__ */ jsx16(UserMenu, {})
3571
+ /* @__PURE__ */ jsx15("div", { className: "px-3", children: /* @__PURE__ */ jsx15(Divider2, { variant: "dashed" }) }),
3572
+ /* @__PURE__ */ jsx15(UserMenu, {})
3576
3573
  ] });
3577
3574
  };
3578
3575
 
3579
3576
  // src/get-route-map.tsx
3580
3577
  import { RoutePermissionGuard } from "@mercurjs/dashboard-shared";
3581
- import { jsx as jsx17 } from "react/jsx-runtime";
3578
+ import { jsx as jsx16 } from "react/jsx-runtime";
3582
3579
  function mergeRoutes(baseRoutes, customRoutes2) {
3583
3580
  const result = baseRoutes.map((route) => ({ ...route }));
3584
3581
  for (const customRoute of customRoutes2) {
@@ -3612,27 +3609,27 @@ function getRouteMap({
3612
3609
  }) {
3613
3610
  return [
3614
3611
  {
3615
- element: /* @__PURE__ */ jsx17(ProtectedRoute, {}),
3616
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3612
+ element: /* @__PURE__ */ jsx16(ProtectedRoute, {}),
3613
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3617
3614
  children: [
3618
3615
  {
3619
- element: /* @__PURE__ */ jsx17(MainLayout, {}),
3616
+ element: /* @__PURE__ */ jsx16(MainLayout, {}),
3620
3617
  children: [
3621
3618
  {
3622
3619
  // Pathless wrapper so every route below — including extension
3623
3620
  // routes merged in from virtual:mercur/routes — is enforced
3624
3621
  // without each one wiring its own guard element.
3625
- element: /* @__PURE__ */ jsx17(RoutePermissionGuard, {}),
3622
+ element: /* @__PURE__ */ jsx16(RoutePermissionGuard, {}),
3626
3623
  children: mergeRoutes(
3627
3624
  [
3628
3625
  {
3629
3626
  path: "/",
3630
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3627
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3631
3628
  lazy: () => import("./home-I3OILW5Z.js")
3632
3629
  },
3633
3630
  {
3634
3631
  path: "/products",
3635
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3632
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3636
3633
  handle: {
3637
3634
  breadcrumb: () => t("products.domain"),
3638
3635
  permissions: "product:read"
@@ -3640,12 +3637,12 @@ function getRouteMap({
3640
3637
  children: [
3641
3638
  {
3642
3639
  path: "",
3643
- lazy: () => import("./product-list-6AHYHRAJ.js"),
3640
+ lazy: () => import("./product-list-XDJB3HX7.js"),
3644
3641
  children: [
3645
3642
  {
3646
3643
  path: "create",
3647
3644
  handle: { permissions: "product:create" },
3648
- lazy: () => import("./product-create-2YWZX7DK.js")
3645
+ lazy: () => import("./product-create-SHIGHLQN.js")
3649
3646
  },
3650
3647
  {
3651
3648
  path: "bulk-edit",
@@ -3655,21 +3652,21 @@ function getRouteMap({
3655
3652
  },
3656
3653
  {
3657
3654
  path: ":id",
3658
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3655
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3659
3656
  lazy: async () => {
3660
- const { Breadcrumb, loader } = await import("./product-detail-HHOTRDUN.js");
3657
+ const { Breadcrumb, loader } = await import("./product-detail-UGSTCK7J.js");
3661
3658
  return {
3662
3659
  Component: Outlet4,
3663
3660
  loader,
3664
3661
  handle: {
3665
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3662
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3666
3663
  }
3667
3664
  };
3668
3665
  },
3669
3666
  children: [
3670
3667
  {
3671
3668
  path: "",
3672
- lazy: () => import("./product-detail-HHOTRDUN.js"),
3669
+ lazy: () => import("./product-detail-UGSTCK7J.js"),
3673
3670
  children: [
3674
3671
  {
3675
3672
  path: "edit",
@@ -3678,7 +3675,7 @@ function getRouteMap({
3678
3675
  },
3679
3676
  {
3680
3677
  path: "edit-variant",
3681
- lazy: () => import("./product-variant-edit-TB2VC63E.js")
3678
+ lazy: () => import("./product-variant-edit-4DPXTYPT.js")
3682
3679
  },
3683
3680
  {
3684
3681
  path: "sales-channels",
@@ -3690,11 +3687,11 @@ function getRouteMap({
3690
3687
  },
3691
3688
  {
3692
3689
  path: "attributes/create",
3693
- lazy: () => import("./product-create-attribute-CXCDBUF6.js")
3690
+ lazy: () => import("./product-create-attribute-QYRCPUFC.js")
3694
3691
  },
3695
3692
  {
3696
3693
  path: "attributes/add",
3697
- lazy: () => import("./product-add-existing-attributes-2HXY7KGZ.js")
3694
+ lazy: () => import("./product-add-existing-attributes-2UFTXE2N.js")
3698
3695
  },
3699
3696
  {
3700
3697
  path: "attributes/:attribute_id/edit",
@@ -3710,11 +3707,11 @@ function getRouteMap({
3710
3707
  },
3711
3708
  {
3712
3709
  path: "media",
3713
- lazy: () => import("./product-media-RHIHFK55.js")
3710
+ lazy: () => import("./product-media-CO3F57JT.js")
3714
3711
  },
3715
3712
  {
3716
3713
  path: "variants/create",
3717
- lazy: () => import("./product-create-variant-E2SEV4Q4.js")
3714
+ lazy: () => import("./product-create-variant-MZLHG5JF.js")
3718
3715
  },
3719
3716
  {
3720
3717
  path: "metadata/edit",
@@ -3730,7 +3727,7 @@ function getRouteMap({
3730
3727
  Component: Outlet4,
3731
3728
  loader,
3732
3729
  handle: {
3733
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3730
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3734
3731
  }
3735
3732
  };
3736
3733
  },
@@ -3742,7 +3739,7 @@ function getRouteMap({
3742
3739
  {
3743
3740
  path: "edit",
3744
3741
  handle: { permissions: "product:update" },
3745
- lazy: () => import("./product-variant-edit-TB2VC63E.js")
3742
+ lazy: () => import("./product-variant-edit-4DPXTYPT.js")
3746
3743
  },
3747
3744
  {
3748
3745
  path: "metadata/edit",
@@ -3758,7 +3755,7 @@ function getRouteMap({
3758
3755
  },
3759
3756
  {
3760
3757
  path: "/categories",
3761
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3758
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3762
3759
  handle: {
3763
3760
  breadcrumb: () => t("categories.domain"),
3764
3761
  permissions: "product_category:read"
@@ -3782,19 +3779,19 @@ function getRouteMap({
3782
3779
  {
3783
3780
  path: ":id",
3784
3781
  lazy: async () => {
3785
- const { Breadcrumb, loader } = await import("./category-detail-ADUIZLD2.js");
3782
+ const { Breadcrumb, loader } = await import("./category-detail-GVEDFNM7.js");
3786
3783
  return {
3787
3784
  Component: Outlet4,
3788
3785
  loader,
3789
3786
  handle: {
3790
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3787
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3791
3788
  }
3792
3789
  };
3793
3790
  },
3794
3791
  children: [
3795
3792
  {
3796
3793
  path: "",
3797
- lazy: () => import("./category-detail-ADUIZLD2.js"),
3794
+ lazy: () => import("./category-detail-GVEDFNM7.js"),
3798
3795
  children: [
3799
3796
  {
3800
3797
  path: "edit",
@@ -3811,7 +3808,7 @@ function getRouteMap({
3811
3808
  },
3812
3809
  {
3813
3810
  path: "products",
3814
- lazy: () => import("./category-products-QKO7R74I.js")
3811
+ lazy: () => import("./category-products-VVF5NXCE.js")
3815
3812
  },
3816
3813
  {
3817
3814
  path: "organize",
@@ -3829,7 +3826,7 @@ function getRouteMap({
3829
3826
  },
3830
3827
  {
3831
3828
  path: "/orders",
3832
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3829
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3833
3830
  handle: {
3834
3831
  breadcrumb: () => t("orders.domain"),
3835
3832
  permissions: "order:read"
@@ -3837,7 +3834,7 @@ function getRouteMap({
3837
3834
  children: [
3838
3835
  {
3839
3836
  path: "",
3840
- lazy: () => import("./order-list-ZACAUPST.js")
3837
+ lazy: () => import("./order-list-I6JZT6JK.js")
3841
3838
  },
3842
3839
  {
3843
3840
  path: ":id",
@@ -3847,7 +3844,7 @@ function getRouteMap({
3847
3844
  Component: Outlet4,
3848
3845
  loader,
3849
3846
  handle: {
3850
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3847
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3851
3848
  }
3852
3849
  };
3853
3850
  },
@@ -3904,7 +3901,7 @@ function getRouteMap({
3904
3901
  },
3905
3902
  {
3906
3903
  path: "/promotions",
3907
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3904
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3908
3905
  handle: {
3909
3906
  breadcrumb: () => t("promotions.domain"),
3910
3907
  permissions: "promotion:read"
@@ -3927,7 +3924,7 @@ function getRouteMap({
3927
3924
  Component: Outlet4,
3928
3925
  loader,
3929
3926
  handle: {
3930
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3927
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3931
3928
  }
3932
3929
  };
3933
3930
  },
@@ -3957,7 +3954,7 @@ function getRouteMap({
3957
3954
  },
3958
3955
  {
3959
3956
  path: "/campaigns",
3960
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3957
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
3961
3958
  handle: {
3962
3959
  breadcrumb: () => t("campaigns.domain"),
3963
3960
  permissions: "campaign:read"
@@ -3981,7 +3978,7 @@ function getRouteMap({
3981
3978
  Component: Outlet4,
3982
3979
  loader,
3983
3980
  handle: {
3984
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3981
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
3985
3982
  }
3986
3983
  };
3987
3984
  },
@@ -4015,7 +4012,7 @@ function getRouteMap({
4015
4012
  },
4016
4013
  {
4017
4014
  path: "/reviews",
4018
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4015
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4019
4016
  handle: {
4020
4017
  breadcrumb: () => t("reviews.domain"),
4021
4018
  permissions: "review:read"
@@ -4034,7 +4031,7 @@ function getRouteMap({
4034
4031
  Component: Outlet4,
4035
4032
  loader,
4036
4033
  handle: {
4037
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4034
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4038
4035
  }
4039
4036
  };
4040
4037
  },
@@ -4060,7 +4057,7 @@ function getRouteMap({
4060
4057
  },
4061
4058
  {
4062
4059
  path: "/collections",
4063
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4060
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4064
4061
  handle: {
4065
4062
  breadcrumb: () => t("collections.domain"),
4066
4063
  permissions: "product_collection:read"
@@ -4068,7 +4065,7 @@ function getRouteMap({
4068
4065
  children: [
4069
4066
  {
4070
4067
  path: "",
4071
- lazy: () => import("./collection-list-KHLO6D2Q.js"),
4068
+ lazy: () => import("./collection-list-AWLZYMWL.js"),
4072
4069
  children: [
4073
4070
  {
4074
4071
  path: "create",
@@ -4080,19 +4077,19 @@ function getRouteMap({
4080
4077
  {
4081
4078
  path: ":id",
4082
4079
  lazy: async () => {
4083
- const { Breadcrumb, loader } = await import("./collection-detail-MTKPUOT5.js");
4080
+ const { Breadcrumb, loader } = await import("./collection-detail-QAEPOJZX.js");
4084
4081
  return {
4085
4082
  Component: Outlet4,
4086
4083
  loader,
4087
4084
  handle: {
4088
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4085
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4089
4086
  }
4090
4087
  };
4091
4088
  },
4092
4089
  children: [
4093
4090
  {
4094
4091
  path: "",
4095
- lazy: () => import("./collection-detail-MTKPUOT5.js"),
4092
+ lazy: () => import("./collection-detail-QAEPOJZX.js"),
4096
4093
  children: [
4097
4094
  {
4098
4095
  path: "edit",
@@ -4109,7 +4106,7 @@ function getRouteMap({
4109
4106
  },
4110
4107
  {
4111
4108
  path: "products",
4112
- lazy: () => import("./collection-add-products-O57OBPNL.js")
4109
+ lazy: () => import("./collection-add-products-HCY2YT3W.js")
4113
4110
  },
4114
4111
  {
4115
4112
  path: "metadata/edit",
@@ -4123,7 +4120,7 @@ function getRouteMap({
4123
4120
  },
4124
4121
  {
4125
4122
  path: "/price-lists",
4126
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4123
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4127
4124
  handle: {
4128
4125
  breadcrumb: () => t("priceLists.domain"),
4129
4126
  permissions: "price_list:read"
@@ -4136,26 +4133,26 @@ function getRouteMap({
4136
4133
  {
4137
4134
  path: "create",
4138
4135
  handle: { permissions: "price_list:create" },
4139
- lazy: () => import("./price-list-create-2KEYK2ER.js")
4136
+ lazy: () => import("./price-list-create-JFXLTNOJ.js")
4140
4137
  }
4141
4138
  ]
4142
4139
  },
4143
4140
  {
4144
4141
  path: ":id",
4145
4142
  lazy: async () => {
4146
- const { Breadcrumb, loader } = await import("./price-list-detail-NTQSV6BX.js");
4143
+ const { Breadcrumb, loader } = await import("./price-list-detail-5YTX66KF.js");
4147
4144
  return {
4148
4145
  Component: Outlet4,
4149
4146
  loader,
4150
4147
  handle: {
4151
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4148
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4152
4149
  }
4153
4150
  };
4154
4151
  },
4155
4152
  children: [
4156
4153
  {
4157
4154
  path: "",
4158
- lazy: () => import("./price-list-detail-NTQSV6BX.js"),
4155
+ lazy: () => import("./price-list-detail-5YTX66KF.js"),
4159
4156
  children: [
4160
4157
  {
4161
4158
  path: "edit",
@@ -4172,11 +4169,11 @@ function getRouteMap({
4172
4169
  },
4173
4170
  {
4174
4171
  path: "products/add",
4175
- lazy: () => import("./price-list-prices-add-IRV2A5IW.js")
4172
+ lazy: () => import("./price-list-prices-add-HVTEQOWQ.js")
4176
4173
  },
4177
4174
  {
4178
4175
  path: "products/edit",
4179
- lazy: () => import("./price-list-prices-edit-QQUJPIUM.js")
4176
+ lazy: () => import("./price-list-prices-edit-OVHIDATP.js")
4180
4177
  }
4181
4178
  ]
4182
4179
  }
@@ -4186,7 +4183,7 @@ function getRouteMap({
4186
4183
  },
4187
4184
  {
4188
4185
  path: "/customers",
4189
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4186
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4190
4187
  handle: {
4191
4188
  breadcrumb: () => t("customers.domain"),
4192
4189
  permissions: "customer:read"
@@ -4211,7 +4208,7 @@ function getRouteMap({
4211
4208
  Component: Outlet4,
4212
4209
  loader,
4213
4210
  handle: {
4214
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4211
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4215
4212
  }
4216
4213
  };
4217
4214
  },
@@ -4253,7 +4250,7 @@ function getRouteMap({
4253
4250
  },
4254
4251
  {
4255
4252
  path: "/customer-groups",
4256
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4253
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4257
4254
  handle: {
4258
4255
  breadcrumb: () => t("customerGroups.domain"),
4259
4256
  permissions: "customer_group:read"
@@ -4278,7 +4275,7 @@ function getRouteMap({
4278
4275
  Component: Outlet4,
4279
4276
  loader,
4280
4277
  handle: {
4281
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4278
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4282
4279
  }
4283
4280
  };
4284
4281
  },
@@ -4308,7 +4305,7 @@ function getRouteMap({
4308
4305
  },
4309
4306
  {
4310
4307
  path: "/stores",
4311
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4308
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4312
4309
  handle: {
4313
4310
  breadcrumb: () => t("stores.domain"),
4314
4311
  permissions: "seller:read"
@@ -4316,7 +4313,7 @@ function getRouteMap({
4316
4313
  children: [
4317
4314
  {
4318
4315
  path: "",
4319
- lazy: () => import("./store-list-IHQUDNWF.js"),
4316
+ lazy: () => import("./store-list-RXPN3VVO.js"),
4320
4317
  children: [
4321
4318
  {
4322
4319
  path: "create",
@@ -4325,30 +4322,30 @@ function getRouteMap({
4325
4322
  },
4326
4323
  {
4327
4324
  path: "bulk-edit",
4328
- lazy: () => import("./store-bulk-edit-3RHVHSYO.js")
4325
+ lazy: () => import("./store-bulk-edit-NBWZMDP7.js")
4329
4326
  }
4330
4327
  ]
4331
4328
  },
4332
4329
  {
4333
4330
  path: ":id",
4334
4331
  lazy: async () => {
4335
- const { Breadcrumb } = await import("./store-details-TEWRGD33.js");
4332
+ const { Breadcrumb } = await import("./store-details-ITYKAZSI.js");
4336
4333
  return {
4337
4334
  Component: Outlet4,
4338
4335
  handle: {
4339
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4336
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4340
4337
  }
4341
4338
  };
4342
4339
  },
4343
4340
  children: [
4344
4341
  {
4345
4342
  path: "",
4346
- lazy: () => import("./store-details-TEWRGD33.js"),
4343
+ lazy: () => import("./store-details-ITYKAZSI.js"),
4347
4344
  children: [
4348
4345
  {
4349
4346
  path: "edit",
4350
4347
  handle: { permissions: "seller:update" },
4351
- lazy: () => import("./store-edit-NVILHPML.js")
4348
+ lazy: () => import("./store-edit-NZMI7PNS.js")
4352
4349
  },
4353
4350
  {
4354
4351
  path: "edit-address",
@@ -4368,7 +4365,7 @@ function getRouteMap({
4368
4365
  },
4369
4366
  {
4370
4367
  path: "invite",
4371
- lazy: () => import("./store-member-invite-FUWVTF6K.js")
4368
+ lazy: () => import("./store-member-invite-IEUG54XA.js")
4372
4369
  }
4373
4370
  ]
4374
4371
  }
@@ -4378,7 +4375,7 @@ function getRouteMap({
4378
4375
  },
4379
4376
  {
4380
4377
  path: "/payouts",
4381
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4378
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4382
4379
  handle: {
4383
4380
  breadcrumb: () => "Payouts",
4384
4381
  permissions: "payout:read"
@@ -4396,7 +4393,7 @@ function getRouteMap({
4396
4393
  Component: Outlet4,
4397
4394
  loader,
4398
4395
  handle: {
4399
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4396
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4400
4397
  }
4401
4398
  };
4402
4399
  },
@@ -4411,7 +4408,7 @@ function getRouteMap({
4411
4408
  },
4412
4409
  {
4413
4410
  path: "/reservations",
4414
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4411
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4415
4412
  handle: {
4416
4413
  breadcrumb: () => t("reservations.domain"),
4417
4414
  permissions: "reservation_item:read"
@@ -4436,7 +4433,7 @@ function getRouteMap({
4436
4433
  Component: Outlet4,
4437
4434
  loader,
4438
4435
  handle: {
4439
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4436
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4440
4437
  }
4441
4438
  };
4442
4439
  },
@@ -4462,7 +4459,7 @@ function getRouteMap({
4462
4459
  },
4463
4460
  {
4464
4461
  path: "/offers",
4465
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4462
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4466
4463
  handle: {
4467
4464
  breadcrumb: () => t("offers.domain"),
4468
4465
  permissions: "offer:read"
@@ -4471,7 +4468,7 @@ function getRouteMap({
4471
4468
  {
4472
4469
  path: "",
4473
4470
  lazy: async () => {
4474
- const { OfferListPage } = await import("./offers-ICELN2UZ.js");
4471
+ const { OfferListPage } = await import("./offers-VG334CFD.js");
4475
4472
  return { Component: OfferListPage };
4476
4473
  }
4477
4474
  },
@@ -4484,7 +4481,7 @@ function getRouteMap({
4484
4481
  Component: Outlet4,
4485
4482
  loader,
4486
4483
  handle: {
4487
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4484
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4488
4485
  }
4489
4486
  };
4490
4487
  },
@@ -4492,7 +4489,7 @@ function getRouteMap({
4492
4489
  {
4493
4490
  path: "",
4494
4491
  lazy: async () => {
4495
- const { OfferDetailPage } = await import("./offer-detail-page-DYTD4MGP.js");
4492
+ const { OfferDetailPage } = await import("./offer-detail-page-WWEUCEFC.js");
4496
4493
  return { Component: OfferDetailPage };
4497
4494
  }
4498
4495
  },
@@ -4505,7 +4502,7 @@ function getRouteMap({
4505
4502
  Component: Outlet4,
4506
4503
  loader,
4507
4504
  handle: {
4508
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4505
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4509
4506
  }
4510
4507
  };
4511
4508
  },
@@ -4513,7 +4510,7 @@ function getRouteMap({
4513
4510
  {
4514
4511
  path: "",
4515
4512
  lazy: async () => {
4516
- const { OfferVariantDetailPage } = await import("./offer-variant-detail-page-YBQ3ZDCK.js");
4513
+ const { OfferVariantDetailPage } = await import("./offer-variant-detail-page-FVJE5WLV.js");
4517
4514
  return { Component: OfferVariantDetailPage };
4518
4515
  }
4519
4516
  }
@@ -4525,7 +4522,7 @@ function getRouteMap({
4525
4522
  },
4526
4523
  {
4527
4524
  path: "/inventory",
4528
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4525
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4529
4526
  handle: {
4530
4527
  breadcrumb: () => t("inventory.domain"),
4531
4528
  permissions: "inventory_item:read"
@@ -4537,7 +4534,7 @@ function getRouteMap({
4537
4534
  children: [
4538
4535
  {
4539
4536
  path: "stock",
4540
- lazy: () => import("./inventory-stock-ASIGAL2Z.js")
4537
+ lazy: () => import("./inventory-stock-PZ2ENOGF.js")
4541
4538
  }
4542
4539
  ]
4543
4540
  },
@@ -4549,7 +4546,7 @@ function getRouteMap({
4549
4546
  Component: Outlet4,
4550
4547
  loader,
4551
4548
  handle: {
4552
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4549
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4553
4550
  }
4554
4551
  };
4555
4552
  },
@@ -4594,29 +4591,29 @@ function getRouteMap({
4594
4591
  ]
4595
4592
  },
4596
4593
  {
4597
- element: /* @__PURE__ */ jsx17(ProtectedRoute, {}),
4598
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4594
+ element: /* @__PURE__ */ jsx16(ProtectedRoute, {}),
4595
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4599
4596
  children: [
4600
4597
  {
4601
4598
  path: "/settings",
4602
4599
  handle: {
4603
4600
  breadcrumb: () => t("app.nav.settings.header")
4604
4601
  },
4605
- element: /* @__PURE__ */ jsx17(SettingsLayout, {}),
4602
+ element: /* @__PURE__ */ jsx16(SettingsLayout, {}),
4606
4603
  children: [
4607
4604
  {
4608
- element: /* @__PURE__ */ jsx17(RoutePermissionGuard, {}),
4605
+ element: /* @__PURE__ */ jsx16(RoutePermissionGuard, {}),
4609
4606
  children: mergeRoutes(
4610
4607
  [
4611
4608
  {
4612
4609
  index: true,
4613
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4610
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4614
4611
  lazy: () => import("./settings-AVE3VCCM.js")
4615
4612
  },
4616
4613
  {
4617
4614
  path: "profile",
4618
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4619
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4615
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4616
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
4620
4617
  handle: {
4621
4618
  breadcrumb: () => t("profile.domain")
4622
4619
  },
@@ -4635,8 +4632,8 @@ function getRouteMap({
4635
4632
  },
4636
4633
  {
4637
4634
  path: "regions",
4638
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4639
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4635
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4636
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
4640
4637
  handle: {
4641
4638
  breadcrumb: () => t("regions.domain"),
4642
4639
  permissions: "region:read"
@@ -4661,7 +4658,7 @@ function getRouteMap({
4661
4658
  Component: Outlet4,
4662
4659
  loader,
4663
4660
  handle: {
4664
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4661
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4665
4662
  }
4666
4663
  };
4667
4664
  },
@@ -4691,8 +4688,8 @@ function getRouteMap({
4691
4688
  },
4692
4689
  {
4693
4690
  path: "marketplace",
4694
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4695
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4691
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4692
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
4696
4693
  handle: {
4697
4694
  breadcrumb: () => t("marketplace.domain"),
4698
4695
  permissions: "store:read"
@@ -4721,8 +4718,8 @@ function getRouteMap({
4721
4718
  },
4722
4719
  {
4723
4720
  path: "commissions",
4724
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4725
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4721
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4722
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
4726
4723
  handle: {
4727
4724
  breadcrumb: () => t("commissions.domain"),
4728
4725
  permissions: "commission_rate:read"
@@ -4750,7 +4747,7 @@ function getRouteMap({
4750
4747
  return {
4751
4748
  Component: Outlet4,
4752
4749
  handle: {
4753
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4750
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4754
4751
  }
4755
4752
  };
4756
4753
  },
@@ -4776,8 +4773,8 @@ function getRouteMap({
4776
4773
  },
4777
4774
  {
4778
4775
  path: "users",
4779
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4780
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4776
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4777
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
4781
4778
  handle: {
4782
4779
  breadcrumb: () => t("users.domain"),
4783
4780
  permissions: "user:read"
@@ -4802,7 +4799,7 @@ function getRouteMap({
4802
4799
  Component: Outlet4,
4803
4800
  loader,
4804
4801
  handle: {
4805
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4802
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4806
4803
  }
4807
4804
  };
4808
4805
  },
@@ -4828,8 +4825,8 @@ function getRouteMap({
4828
4825
  },
4829
4826
  {
4830
4827
  path: "sales-channels",
4831
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4832
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4828
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4829
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
4833
4830
  handle: {
4834
4831
  breadcrumb: () => t("salesChannels.domain"),
4835
4832
  permissions: "sales_channel:read"
@@ -4849,19 +4846,19 @@ function getRouteMap({
4849
4846
  {
4850
4847
  path: ":id",
4851
4848
  lazy: async () => {
4852
- const { Breadcrumb, loader } = await import("./sales-channel-detail-V2VBFNLX.js");
4849
+ const { Breadcrumb, loader } = await import("./sales-channel-detail-F37LBP6R.js");
4853
4850
  return {
4854
4851
  Component: Outlet4,
4855
4852
  loader,
4856
4853
  handle: {
4857
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4854
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4858
4855
  }
4859
4856
  };
4860
4857
  },
4861
4858
  children: [
4862
4859
  {
4863
4860
  path: "",
4864
- lazy: () => import("./sales-channel-detail-V2VBFNLX.js"),
4861
+ lazy: () => import("./sales-channel-detail-F37LBP6R.js"),
4865
4862
  children: [
4866
4863
  {
4867
4864
  path: "edit",
@@ -4870,7 +4867,7 @@ function getRouteMap({
4870
4867
  },
4871
4868
  {
4872
4869
  path: "add-products",
4873
- lazy: () => import("./sales-channel-add-products-BGV3V327.js")
4870
+ lazy: () => import("./sales-channel-add-products-MPJ7UCEJ.js")
4874
4871
  },
4875
4872
  {
4876
4873
  path: "metadata/edit",
@@ -4884,8 +4881,8 @@ function getRouteMap({
4884
4881
  },
4885
4882
  {
4886
4883
  path: "locations",
4887
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4888
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4884
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4885
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
4889
4886
  handle: {
4890
4887
  breadcrumb: () => t("locations.domain"),
4891
4888
  permissions: "stock_location:read"
@@ -4902,7 +4899,7 @@ function getRouteMap({
4902
4899
  },
4903
4900
  {
4904
4901
  path: "shipping-profiles",
4905
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4902
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
4906
4903
  handle: {
4907
4904
  breadcrumb: () => t("shippingProfile.domain"),
4908
4905
  permissions: "shipping_profile:read"
@@ -4927,7 +4924,7 @@ function getRouteMap({
4927
4924
  Component: Outlet4,
4928
4925
  loader,
4929
4926
  handle: {
4930
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4927
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4931
4928
  }
4932
4929
  };
4933
4930
  },
@@ -4948,8 +4945,8 @@ function getRouteMap({
4948
4945
  },
4949
4946
  {
4950
4947
  path: "shipping-option-types",
4951
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4952
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4948
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
4949
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
4953
4950
  handle: {
4954
4951
  breadcrumb: () => t("shippingOptionTypes.domain"),
4955
4952
  permissions: "shipping_option_type:read"
@@ -4974,7 +4971,7 @@ function getRouteMap({
4974
4971
  Component: Outlet4,
4975
4972
  loader,
4976
4973
  handle: {
4977
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4974
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
4978
4975
  }
4979
4976
  };
4980
4977
  },
@@ -5002,7 +4999,7 @@ function getRouteMap({
5002
4999
  Component: Outlet4,
5003
5000
  loader,
5004
5001
  handle: {
5005
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
5002
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
5006
5003
  }
5007
5004
  };
5008
5005
  },
@@ -5022,7 +5019,7 @@ function getRouteMap({
5022
5019
  },
5023
5020
  {
5024
5021
  path: "fulfillment-providers",
5025
- lazy: () => import("./location-fulfillment-providers-JSO4KA2L.js")
5022
+ lazy: () => import("./location-fulfillment-providers-XIYMIEFN.js")
5026
5023
  },
5027
5024
  {
5028
5025
  path: "fulfillment-set/:fset_id",
@@ -5079,8 +5076,8 @@ function getRouteMap({
5079
5076
  },
5080
5077
  {
5081
5078
  path: "product-tags",
5082
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
5083
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
5079
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
5080
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
5084
5081
  handle: {
5085
5082
  breadcrumb: () => t("productTags.domain"),
5086
5083
  permissions: "product_tag:read"
@@ -5088,7 +5085,7 @@ function getRouteMap({
5088
5085
  children: [
5089
5086
  {
5090
5087
  path: "",
5091
- lazy: () => import("./product-tag-list-LTBWGZWV.js"),
5088
+ lazy: () => import("./product-tag-list-RKLCU3UE.js"),
5092
5089
  children: [
5093
5090
  {
5094
5091
  path: "create",
@@ -5100,19 +5097,19 @@ function getRouteMap({
5100
5097
  {
5101
5098
  path: ":id",
5102
5099
  lazy: async () => {
5103
- const { Breadcrumb, loader } = await import("./product-tag-detail-MTCL2XBF.js");
5100
+ const { Breadcrumb, loader } = await import("./product-tag-detail-CDSYBTAM.js");
5104
5101
  return {
5105
5102
  Component: Outlet4,
5106
5103
  loader,
5107
5104
  handle: {
5108
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
5105
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
5109
5106
  }
5110
5107
  };
5111
5108
  },
5112
5109
  children: [
5113
5110
  {
5114
5111
  path: "",
5115
- lazy: () => import("./product-tag-detail-MTCL2XBF.js"),
5112
+ lazy: () => import("./product-tag-detail-CDSYBTAM.js"),
5116
5113
  children: [
5117
5114
  {
5118
5115
  path: "edit",
@@ -5131,8 +5128,8 @@ function getRouteMap({
5131
5128
  },
5132
5129
  {
5133
5130
  path: "attributes",
5134
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
5135
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
5131
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
5132
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
5136
5133
  handle: {
5137
5134
  breadcrumb: () => t("attributes.domain"),
5138
5135
  permissions: "product_attribute:read"
@@ -5145,35 +5142,35 @@ function getRouteMap({
5145
5142
  {
5146
5143
  path: "create",
5147
5144
  handle: { permissions: "product_attribute:create" },
5148
- lazy: () => import("./attribute-create-7YTZXJV4.js")
5145
+ lazy: () => import("./attribute-create-C435ZHB2.js")
5149
5146
  }
5150
5147
  ]
5151
5148
  },
5152
5149
  {
5153
5150
  path: ":id",
5154
5151
  lazy: async () => {
5155
- const { Breadcrumb, loader } = await import("./attribute-detail-SXF6Z3B7.js");
5152
+ const { Breadcrumb, loader } = await import("./attribute-detail-SPYDB3I5.js");
5156
5153
  return {
5157
5154
  Component: Outlet4,
5158
5155
  loader,
5159
5156
  handle: {
5160
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
5157
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
5161
5158
  }
5162
5159
  };
5163
5160
  },
5164
5161
  children: [
5165
5162
  {
5166
5163
  path: "",
5167
- lazy: () => import("./attribute-detail-SXF6Z3B7.js"),
5164
+ lazy: () => import("./attribute-detail-SPYDB3I5.js"),
5168
5165
  children: [
5169
5166
  {
5170
5167
  path: "edit",
5171
5168
  handle: { permissions: "product_attribute:update" },
5172
- lazy: () => import("./attribute-edit-4HMUAWXB.js")
5169
+ lazy: () => import("./attribute-edit-AAEAOP5B.js")
5173
5170
  },
5174
5171
  {
5175
5172
  path: "edit-possible-value",
5176
- lazy: () => import("./attribute-edit-possible-value-RVXOKCBF.js")
5173
+ lazy: () => import("./attribute-edit-possible-value-BJSQCTNO.js")
5177
5174
  },
5178
5175
  {
5179
5176
  path: "create-possible-value",
@@ -5191,8 +5188,8 @@ function getRouteMap({
5191
5188
  },
5192
5189
  {
5193
5190
  path: "product-types",
5194
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
5195
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
5191
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
5192
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
5196
5193
  handle: {
5197
5194
  breadcrumb: () => t("productTypes.domain"),
5198
5195
  permissions: "product_type:read"
@@ -5212,19 +5209,19 @@ function getRouteMap({
5212
5209
  {
5213
5210
  path: ":id",
5214
5211
  lazy: async () => {
5215
- const { Breadcrumb, loader } = await import("./product-type-detail-GOG3FDY5.js");
5212
+ const { Breadcrumb, loader } = await import("./product-type-detail-IY7TWXUQ.js");
5216
5213
  return {
5217
5214
  Component: Outlet4,
5218
5215
  loader,
5219
5216
  handle: {
5220
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
5217
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
5221
5218
  }
5222
5219
  };
5223
5220
  },
5224
5221
  children: [
5225
5222
  {
5226
5223
  path: "",
5227
- lazy: () => import("./product-type-detail-GOG3FDY5.js"),
5224
+ lazy: () => import("./product-type-detail-IY7TWXUQ.js"),
5228
5225
  children: [
5229
5226
  {
5230
5227
  path: "edit",
@@ -5243,7 +5240,7 @@ function getRouteMap({
5243
5240
  },
5244
5241
  {
5245
5242
  path: "publishable-api-keys",
5246
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
5243
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
5247
5244
  handle: {
5248
5245
  breadcrumb: () => t("apiKeyManagement.domain.publishable"),
5249
5246
  permissions: "api_key:read"
@@ -5251,7 +5248,7 @@ function getRouteMap({
5251
5248
  children: [
5252
5249
  {
5253
5250
  path: "",
5254
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
5251
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
5255
5252
  children: [
5256
5253
  {
5257
5254
  path: "",
@@ -5274,7 +5271,7 @@ function getRouteMap({
5274
5271
  Component: Outlet4,
5275
5272
  loader,
5276
5273
  handle: {
5277
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
5274
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
5278
5275
  }
5279
5276
  };
5280
5277
  },
@@ -5300,7 +5297,7 @@ function getRouteMap({
5300
5297
  },
5301
5298
  {
5302
5299
  path: "secret-api-keys",
5303
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
5300
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
5304
5301
  handle: {
5305
5302
  breadcrumb: () => t("apiKeyManagement.domain.secret"),
5306
5303
  permissions: "api_key:read"
@@ -5308,7 +5305,7 @@ function getRouteMap({
5308
5305
  children: [
5309
5306
  {
5310
5307
  path: "",
5311
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
5308
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
5312
5309
  children: [
5313
5310
  {
5314
5311
  path: "",
@@ -5331,7 +5328,7 @@ function getRouteMap({
5331
5328
  Component: Outlet4,
5332
5329
  loader,
5333
5330
  handle: {
5334
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
5331
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
5335
5332
  }
5336
5333
  };
5337
5334
  },
@@ -5353,7 +5350,7 @@ function getRouteMap({
5353
5350
  },
5354
5351
  {
5355
5352
  path: "tax-regions",
5356
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
5353
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
5357
5354
  handle: {
5358
5355
  breadcrumb: () => t("taxRegions.domain"),
5359
5356
  permissions: "tax_region:read"
@@ -5375,7 +5372,7 @@ function getRouteMap({
5375
5372
  Component: Outlet4,
5376
5373
  loader: taxRegionLoader,
5377
5374
  handle: {
5378
- breadcrumb: (match) => /* @__PURE__ */ jsx17(TaxRegionDetailBreadcrumb, { ...match })
5375
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(TaxRegionDetailBreadcrumb, { ...match })
5379
5376
  },
5380
5377
  children: [
5381
5378
  {
@@ -5398,11 +5395,11 @@ function getRouteMap({
5398
5395
  },
5399
5396
  {
5400
5397
  path: "overrides/create",
5401
- lazy: () => import("./tax-region-tax-override-create-W7WLHFR3.js")
5398
+ lazy: () => import("./tax-region-tax-override-create-Z6S43XQ6.js")
5402
5399
  },
5403
5400
  {
5404
5401
  path: "overrides/:tax_rate_id/edit",
5405
- lazy: () => import("./tax-region-tax-override-edit-GPE6K7HE.js")
5402
+ lazy: () => import("./tax-region-tax-override-edit-4EOURL2M.js")
5406
5403
  },
5407
5404
  {
5408
5405
  path: "tax-rates/create",
@@ -5426,7 +5423,7 @@ function getRouteMap({
5426
5423
  Component: Outlet4,
5427
5424
  loader,
5428
5425
  handle: {
5429
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
5426
+ breadcrumb: (match) => /* @__PURE__ */ jsx16(Breadcrumb, { ...match })
5430
5427
  }
5431
5428
  };
5432
5429
  },
@@ -5445,11 +5442,11 @@ function getRouteMap({
5445
5442
  },
5446
5443
  {
5447
5444
  path: "overrides/create",
5448
- lazy: () => import("./tax-region-tax-override-create-W7WLHFR3.js")
5445
+ lazy: () => import("./tax-region-tax-override-create-Z6S43XQ6.js")
5449
5446
  },
5450
5447
  {
5451
5448
  path: "overrides/:tax_rate_id/edit",
5452
- lazy: () => import("./tax-region-tax-override-edit-GPE6K7HE.js")
5449
+ lazy: () => import("./tax-region-tax-override-edit-4EOURL2M.js")
5453
5450
  }
5454
5451
  ]
5455
5452
  }
@@ -5461,7 +5458,7 @@ function getRouteMap({
5461
5458
  },
5462
5459
  {
5463
5460
  path: "return-reasons",
5464
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
5461
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
5465
5462
  handle: {
5466
5463
  breadcrumb: () => t("returnReasons.domain"),
5467
5464
  permissions: "return_reason:read"
@@ -5469,7 +5466,7 @@ function getRouteMap({
5469
5466
  children: [
5470
5467
  {
5471
5468
  path: "",
5472
- lazy: () => import("./return-reason-list-OQBRH3PU.js"),
5469
+ lazy: () => import("./return-reason-list-6MQKG72S.js"),
5473
5470
  children: [
5474
5471
  {
5475
5472
  path: "create",
@@ -5492,7 +5489,7 @@ function getRouteMap({
5492
5489
  },
5493
5490
  {
5494
5491
  path: "refund-reasons",
5495
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
5492
+ element: /* @__PURE__ */ jsx16(Outlet4, {}),
5496
5493
  handle: {
5497
5494
  breadcrumb: () => t("refundReasons.domain"),
5498
5495
  permissions: "refund_reason:read"
@@ -5500,7 +5497,7 @@ function getRouteMap({
5500
5497
  children: [
5501
5498
  {
5502
5499
  path: "",
5503
- lazy: () => import("./refund-reason-list-EBG7CCYY.js"),
5500
+ lazy: () => import("./refund-reason-list-ABRFC3OQ.js"),
5504
5501
  children: [
5505
5502
  {
5506
5503
  path: "create",
@@ -5530,10 +5527,10 @@ function getRouteMap({
5530
5527
  ]
5531
5528
  },
5532
5529
  {
5533
- element: /* @__PURE__ */ jsx17(PublicLayout, {}),
5530
+ element: /* @__PURE__ */ jsx16(PublicLayout, {}),
5534
5531
  children: [
5535
5532
  {
5536
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
5533
+ errorElement: /* @__PURE__ */ jsx16(ErrorBoundary, {}),
5537
5534
  children: [
5538
5535
  {
5539
5536
  path: "/login",
@@ -5561,7 +5558,7 @@ function getRouteMap({
5561
5558
 
5562
5559
  // src/app.tsx
5563
5560
  import { useMemo as useMemo7 } from "react";
5564
- import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
5561
+ import { jsx as jsx17, jsxs as jsxs11 } from "react/jsx-runtime";
5565
5562
  function App() {
5566
5563
  const routes = useMemo7(() => {
5567
5564
  return {
@@ -5570,15 +5567,15 @@ function App() {
5570
5567
  publicRoutes: createRouteMap(getRoutesByType(customRoutes, "public"))
5571
5568
  };
5572
5569
  }, []);
5573
- return /* @__PURE__ */ jsx18(TooltipProvider, { children: /* @__PURE__ */ jsx18(HelmetProvider, { children: /* @__PURE__ */ jsx18(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx18(ThemeProvider, { children: /* @__PURE__ */ jsx18(FeatureFlagProvider, { children: /* @__PURE__ */ jsxs11(
5570
+ return /* @__PURE__ */ jsx17(TooltipProvider, { children: /* @__PURE__ */ jsx17(HelmetProvider, { children: /* @__PURE__ */ jsx17(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx17(ThemeProvider, { children: /* @__PURE__ */ jsx17(FeatureFlagProvider, { children: /* @__PURE__ */ jsxs11(
5574
5571
  ExtensionProvider,
5575
5572
  {
5576
5573
  widgets,
5577
5574
  navigation,
5578
5575
  customFields,
5579
5576
  children: [
5580
- /* @__PURE__ */ jsx18(I18n, {}),
5581
- /* @__PURE__ */ jsx18(I18nProvider, { children: /* @__PURE__ */ jsx18(
5577
+ /* @__PURE__ */ jsx17(I18n, {}),
5578
+ /* @__PURE__ */ jsx17(I18nProvider, { children: /* @__PURE__ */ jsx17(
5582
5579
  RouterProvider,
5583
5580
  {
5584
5581
  router: createBrowserRouter(getRouteMap(routes), {
@@ -5586,7 +5583,7 @@ function App() {
5586
5583
  })
5587
5584
  }
5588
5585
  ) }),
5589
- /* @__PURE__ */ jsx18(Toaster, {})
5586
+ /* @__PURE__ */ jsx17(Toaster, {})
5590
5587
  ]
5591
5588
  }
5592
5589
  ) }) }) }) }) });