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

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 (131) hide show
  1. package/dist/{add-campaign-promotions-PBGDZSCD.js → add-campaign-promotions-VFRAB2NN.js} +3 -3
  2. package/dist/{adjust-inventory-BBAU3NMM.js → adjust-inventory-TWESAGKE.js} +1 -1
  3. package/dist/{api-key-management-detail-ZGGQBQAM.js → api-key-management-detail-ZFA3YPJ6.js} +1 -1
  4. package/dist/{attribute-create-C435ZHB2.js → attribute-create-OHAZ4X75.js} +1 -1
  5. package/dist/{attribute-detail-SPYDB3I5.js → attribute-detail-YJ4ZZYCL.js} +1 -1
  6. package/dist/{attribute-list-SCFBKH4L.js → attribute-list-MEXPF4TG.js} +1 -1
  7. package/dist/{campaign-detail-BHRCOKL3.js → campaign-detail-3HKWD7UR.js} +5 -5
  8. package/dist/{categories-metadata-MJAYSCTW.js → categories-metadata-6LMZAUOF.js} +1 -1
  9. package/dist/{category-detail-GVEDFNM7.js → category-detail-RWLX5N2M.js} +3 -3
  10. package/dist/{category-products-VVF5NXCE.js → category-products-HS4FHYZM.js} +2 -2
  11. package/dist/{chunk-PAG3PYAQ.js → chunk-2RVWPHH7.js} +1 -1
  12. package/dist/{chunk-RW3NEG36.js → chunk-6CD2A2OS.js} +2 -2
  13. package/dist/{chunk-HFM6N7R3.js → chunk-AYT2CZ4A.js} +1 -1
  14. package/dist/{chunk-B7QLJF77.js → chunk-BDXJOPLO.js} +1 -1
  15. package/dist/{chunk-Q6M2TNLO.js → chunk-BEBP26XV.js} +0 -290
  16. package/dist/{chunk-BQZ5P3IA.js → chunk-BVAVPYHI.js} +1 -1
  17. package/dist/{chunk-VWPX7GLC.js → chunk-DBGBLXBS.js} +1 -1
  18. package/dist/{chunk-6UYV7B42.js → chunk-EACE4252.js} +2 -2
  19. package/dist/{chunk-5TIADRZ7.js → chunk-FPIFYOMN.js} +1 -1
  20. package/dist/{chunk-Q732RWRD.js → chunk-FS4E6GS6.js} +2 -2
  21. package/dist/{chunk-R2ODJ3D3.js → chunk-GD7FWYHP.js} +1 -1
  22. package/dist/{chunk-G2KWNZV6.js → chunk-HEGUG6HH.js} +1 -1
  23. package/dist/{chunk-NQEXDESI.js → chunk-IAJ5F227.js} +1 -1
  24. package/dist/{chunk-P2KYQNXQ.js → chunk-JNZPAM34.js} +1 -1
  25. package/dist/{chunk-6P7HBAUM.js → chunk-KRCHKYDN.js} +1 -1
  26. package/dist/{chunk-VE5FQQTG.js → chunk-N2733YCW.js} +1 -1
  27. package/dist/{chunk-B6KT5U7W.js → chunk-NHDNRGKP.js} +1 -1
  28. package/dist/{chunk-7YBZ2PEZ.js → chunk-NYMDLCWP.js} +1 -1
  29. package/dist/{chunk-EJGGX3ON.js → chunk-OUXIGGB5.js} +3 -3
  30. package/dist/{chunk-5ENOJFDI.js → chunk-OVVFJY7I.js} +1 -1
  31. package/dist/{chunk-ESNSDIEC.js → chunk-PDPCFFFH.js} +1 -1
  32. package/dist/{chunk-JBT2FR4K.js → chunk-QQNSPKSH.js} +1 -1
  33. package/dist/{chunk-M336ZIRO.js → chunk-R2DDRU77.js} +1 -1
  34. package/dist/{chunk-7I7G5ZJE.js → chunk-RJYASAQO.js} +1 -1
  35. package/dist/{chunk-NCDKLTDP.js → chunk-T3T6OYAT.js} +1 -1
  36. package/dist/{chunk-XMIDY45X.js → chunk-TDLIW2TU.js} +1 -1
  37. package/dist/{chunk-ENKVW7JW.js → chunk-TUDKRZ6P.js} +1 -1
  38. package/dist/{chunk-MXM5ZD4Y.js → chunk-W5U6NPSN.js} +10 -25
  39. package/dist/{chunk-5SNW2DCY.js → chunk-YTQY4EOW.js} +1 -1
  40. package/dist/{collection-add-products-HCY2YT3W.js → collection-add-products-FFYCZINV.js} +2 -2
  41. package/dist/{collection-detail-QAEPOJZX.js → collection-detail-JT4DSP7V.js} +3 -3
  42. package/dist/{collection-list-AWLZYMWL.js → collection-list-3DODRV34.js} +2 -2
  43. package/dist/{collection-metadata-XM2EBCWF.js → collection-metadata-7XMJPJCT.js} +1 -1
  44. package/dist/{customer-detail-XO7RBVUC.js → customer-detail-AMGUVNTH.js} +1 -1
  45. package/dist/{customer-group-detail-4G53UKOS.js → customer-group-detail-PDA3JCAZ.js} +1 -1
  46. package/dist/{customer-group-list-5VA7HGD5.js → customer-group-list-2NP5GAKQ.js} +1 -1
  47. package/dist/{customer-group-metadata-FUJFFWCO.js → customer-group-metadata-B7LBRM5F.js} +1 -1
  48. package/dist/{customer-metadata-GWZC456X.js → customer-metadata-WL5W5JSC.js} +1 -1
  49. package/dist/{customers-add-customer-group-MYC76YGW.js → customers-add-customer-group-GNDYPKUO.js} +1 -1
  50. package/dist/{edit-inventory-item-ZSV4WF6G.js → edit-inventory-item-QNTKH7KR.js} +1 -1
  51. package/dist/{edit-inventory-item-attributes-NWSAQMKX.js → edit-inventory-item-attributes-KB4GVOGP.js} +1 -1
  52. package/dist/{edit-rules-RJC3AYJN.js → edit-rules-HIC7UOV5.js} +1 -1
  53. package/dist/extension-targets.d.ts +2 -0
  54. package/dist/index.css +45 -3
  55. package/dist/index.d.ts +1 -3
  56. package/dist/index.js +703 -1118
  57. package/dist/{inventory-detail-7HB5QEL4.js → inventory-detail-OLBIFY6Y.js} +1 -1
  58. package/dist/{inventory-metadata-FGHOW3YG.js → inventory-metadata-2QNV2PF7.js} +1 -1
  59. package/dist/{inventory-stock-PZ2ENOGF.js → inventory-stock-M5YSKXC4.js} +1 -1
  60. package/dist/{location-detail-B2BWLVAD.js → location-detail-FFKVKFUX.js} +1 -1
  61. package/dist/{location-fulfillment-providers-XIYMIEFN.js → location-fulfillment-providers-YY2TKMLH.js} +2 -2
  62. package/dist/{location-list-VIAP63HV.js → location-list-R3OABFPG.js} +1 -1
  63. package/dist/{location-service-zone-shipping-option-create-6O2JXV6I.js → location-service-zone-shipping-option-create-EMPXW67L.js} +1 -1
  64. package/dist/{login-TZHRVYA5.js → login-ZCAW7Z7Q.js} +1 -1
  65. package/dist/{manage-locations-ZFIRHMNH.js → manage-locations-TCMY6A4J.js} +145 -34
  66. package/dist/{marketplace-detail-4IP5HIEW.js → marketplace-detail-BIQF75Y7.js} +1 -1
  67. package/dist/{marketplace-metadata-EGDXYKCE.js → marketplace-metadata-U6LXZNTN.js} +1 -1
  68. package/dist/{offers-VG334CFD.js → offers-KJTLBFTM.js} +2 -2
  69. package/dist/{order-create-exchange-CC7CQECO.js → order-create-exchange-TSGTAOEF.js} +1 -1
  70. package/dist/{order-create-refund-FJLL4CUD.js → order-create-refund-KYTIPPQK.js} +1 -1
  71. package/dist/{order-detail-3ODC5NOT.js → order-detail-P7R4U4YU.js} +2 -2
  72. package/dist/{order-edit-billing-address-SBVWRA25.js → order-edit-billing-address-6ALJ7U6O.js} +2 -2
  73. package/dist/{order-edit-email-BREEW246.js → order-edit-email-CYCFGHE4.js} +1 -1
  74. package/dist/{order-edit-shipping-address-XUG74AFY.js → order-edit-shipping-address-XJUKP3JP.js} +1 -1
  75. package/dist/{order-metadata-VIG5MGYV.js → order-metadata-PQKBD7ZT.js} +1 -1
  76. package/dist/{order-request-transfer-RYVK4WYW.js → order-request-transfer-R3FCUU7R.js} +1 -1
  77. package/dist/pages/index.js +28 -28
  78. package/dist/{price-list-create-JFXLTNOJ.js → price-list-create-PHJFJOQA.js} +3 -3
  79. package/dist/{price-list-detail-5YTX66KF.js → price-list-detail-CGZ5DS6T.js} +3 -3
  80. package/dist/{price-list-prices-add-HVTEQOWQ.js → price-list-prices-add-O5JDIJ3O.js} +3 -3
  81. package/dist/{price-list-prices-edit-OVHIDATP.js → price-list-prices-edit-ITO6ZTGD.js} +1 -1
  82. package/dist/{product-add-existing-attributes-2UFTXE2N.js → product-add-existing-attributes-5XGJZSIY.js} +1 -1
  83. package/dist/{product-create-SHIGHLQN.js → product-create-P7F2RZPS.js} +4 -4
  84. package/dist/{product-detail-UGSTCK7J.js → product-detail-G6HRH4ND.js} +1 -1
  85. package/dist/{product-list-XDJB3HX7.js → product-list-O35LY6T7.js} +3 -3
  86. package/dist/{product-media-CO3F57JT.js → product-media-3ERT2APJ.js} +2 -2
  87. package/dist/{product-metadata-5CRGB7TR.js → product-metadata-2QQGBVV5.js} +1 -1
  88. package/dist/{product-organization-TNS7GBKN.js → product-organization-VXTSCBHU.js} +1 -1
  89. package/dist/{product-tag-create-QORH6X2D.js → product-tag-create-4CDCZZNR.js} +1 -1
  90. package/dist/{product-tag-detail-CDSYBTAM.js → product-tag-detail-5YX4ET5N.js} +4 -4
  91. package/dist/{product-tag-edit-JWYVCPCC.js → product-tag-edit-UBXKLVUN.js} +1 -1
  92. package/dist/{product-tag-list-RKLCU3UE.js → product-tag-list-GNGDIW54.js} +4 -4
  93. package/dist/{product-tag-metadata-BCUPIIJ5.js → product-tag-metadata-CDXKXZPM.js} +1 -1
  94. package/dist/{product-type-detail-IY7TWXUQ.js → product-type-detail-A3MUWNM4.js} +3 -3
  95. package/dist/{product-type-metadata-DKBBQB6R.js → product-type-metadata-IISED7XQ.js} +1 -1
  96. package/dist/{product-variant-detail-XHMS2UT5.js → product-variant-detail-TIULIJ3X.js} +1 -1
  97. package/dist/{product-variant-edit-4DPXTYPT.js → product-variant-edit-Y4BJFQTK.js} +1 -1
  98. package/dist/{product-variant-metadata-ETVJBXSW.js → product-variant-metadata-7SKGOEEA.js} +1 -1
  99. package/dist/{promotion-create-7ZUJ4W2J.js → promotion-create-D6PTGIAY.js} +1 -1
  100. package/dist/{promotion-detail-SWO4PZDC.js → promotion-detail-4VYJAJ2N.js} +4 -4
  101. package/dist/{promotion-list-S4B6SVD6.js → promotion-list-6OBFAIOU.js} +4 -4
  102. package/dist/{refund-reason-create-P5FUFEGK.js → refund-reason-create-DAOTHCMY.js} +1 -1
  103. package/dist/{refund-reason-edit-AKOTWXCE.js → refund-reason-edit-M3AKWJZR.js} +1 -1
  104. package/dist/{refund-reason-list-ABRFC3OQ.js → refund-reason-list-WGRCZWXL.js} +2 -2
  105. package/dist/{region-metadata-Q6HEMCHD.js → region-metadata-IK6ZPUJW.js} +1 -1
  106. package/dist/{reservation-detail-5GYGVM3M.js → reservation-detail-7PLHNOS4.js} +1 -1
  107. package/dist/{reservation-metadata-P4G3JEDW.js → reservation-metadata-L42C7DPK.js} +1 -1
  108. package/dist/{reset-password-VJY5CXJU.js → reset-password-EUAOKJDU.js} +1 -1
  109. package/dist/{sales-channel-add-products-MPJ7UCEJ.js → sales-channel-add-products-EHFMW73I.js} +2 -2
  110. package/dist/{sales-channel-detail-F37LBP6R.js → sales-channel-detail-5CL3LMRD.js} +3 -3
  111. package/dist/{sales-channel-list-XAWN5OKC.js → sales-channel-list-ZEERNIJZ.js} +1 -1
  112. package/dist/{sales-channel-metadata-NBWFH4QX.js → sales-channel-metadata-OFHAFCOM.js} +1 -1
  113. package/dist/{shipping-option-type-create-M23CI42D.js → shipping-option-type-create-4TZVLPFU.js} +1 -1
  114. package/dist/{shipping-option-type-detail-QIJZQ5WW.js → shipping-option-type-detail-TPG7NKCT.js} +3 -3
  115. package/dist/{shipping-option-type-edit-WXTEQM32.js → shipping-option-type-edit-BIWXDVMF.js} +1 -1
  116. package/dist/{shipping-option-type-list-PRXZQSPR.js → shipping-option-type-list-5DOYVCD6.js} +3 -3
  117. package/dist/{shipping-profile-metadata-S7Z3IC6I.js → shipping-profile-metadata-SQFRUAIH.js} +1 -1
  118. package/dist/{store-create-J4SL6SY3.js → store-create-RYYOB2FV.js} +1 -1
  119. package/dist/{store-details-ITYKAZSI.js → store-details-A2L6YQDB.js} +3 -3
  120. package/dist/{store-edit-NZMI7PNS.js → store-edit-BORBEPWF.js} +2 -2
  121. package/dist/{store-list-RXPN3VVO.js → store-list-JADJQPSK.js} +2 -2
  122. package/dist/{tax-region-create-PIDKQEWT.js → tax-region-create-Q2QYTIHC.js} +2 -2
  123. package/dist/{tax-region-detail-7RNNZ4UE.js → tax-region-detail-AJ2O7YKC.js} +1 -1
  124. package/dist/{tax-region-edit-I27QZZPB.js → tax-region-edit-A6C4VTTZ.js} +1 -1
  125. package/dist/{tax-region-metadata-6YIZSRLO.js → tax-region-metadata-6QI4VPCV.js} +1 -1
  126. package/dist/{tax-region-province-detail-AHS5SRP5.js → tax-region-province-detail-SZAUBE23.js} +1 -1
  127. package/dist/{tax-region-tax-override-create-Z6S43XQ6.js → tax-region-tax-override-create-IPHOMPVG.js} +3 -3
  128. package/dist/{tax-region-tax-override-edit-4EOURL2M.js → tax-region-tax-override-edit-IV57DNYU.js} +3 -3
  129. package/dist/{user-metadata-2PEU2IJE.js → user-metadata-M72ZGLGH.js} +1 -1
  130. package/package.json +6 -6
  131. package/dist/chunk-WMA3WTCM.js +0 -117
package/dist/index.js CHANGED
@@ -11,9 +11,6 @@ import {
11
11
  import {
12
12
  isClientError
13
13
  } from "./chunk-C6SUTRP2.js";
14
- import {
15
- InfiniteList
16
- } from "./chunk-WMA3WTCM.js";
17
14
  import "./chunk-FMFVTERD.js";
18
15
  import "./chunk-JRTZWK77.js";
19
16
  import {
@@ -29,7 +26,7 @@ import {
29
26
  } from "./chunk-KDE4HKH2.js";
30
27
  import {
31
28
  I18n
32
- } from "./chunk-Q6M2TNLO.js";
29
+ } from "./chunk-BEBP26XV.js";
33
30
  import {
34
31
  SwitchBox
35
32
  } from "./chunk-2EME4AWX.js";
@@ -60,10 +57,8 @@ import "./chunk-IKAUNMRC.js";
60
57
  import "./chunk-EIWPJWKF.js";
61
58
  import "./chunk-46WEBDVJ.js";
62
59
  import {
63
- notificationQueryKeys,
64
- useNotifications,
65
60
  useProductTags
66
- } from "./chunk-MXM5ZD4Y.js";
61
+ } from "./chunk-W5U6NPSN.js";
67
62
  import {
68
63
  useLogout
69
64
  } from "./chunk-DSQRFZCO.js";
@@ -138,9 +133,7 @@ import {
138
133
  queryClient
139
134
  } from "./chunk-RHKRREUU.js";
140
135
  import "./chunk-ZA2KFUFR.js";
141
- import {
142
- sdk
143
- } from "./chunk-DTGEFKK4.js";
136
+ import "./chunk-DTGEFKK4.js";
144
137
  import "./chunk-NBMM2TZK.js";
145
138
 
146
139
  // src/app.tsx
@@ -223,52 +216,23 @@ var useTheme = () => {
223
216
  return context;
224
217
  };
225
218
 
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
- };
219
+ // src/providers/sidebar-provider/index.ts
220
+ import {
221
+ SIDEBAR_RAIL_FADE,
222
+ SidebarProvider,
223
+ useCollapsedSidebar,
224
+ useSidebar
225
+ } from "@mercurjs/dashboard-shared";
262
226
 
263
227
  // src/providers/keybind-provider/hooks.tsx
264
228
  import { default as debounceFn } from "lodash.debounce";
265
- import { useCallback, useContext as useContext3, useEffect as useEffect3, useState as useState3 } from "react";
229
+ import { useCallback, useContext as useContext2, useEffect as useEffect2, useState as useState2 } from "react";
266
230
  import { useTranslation } from "react-i18next";
267
231
  import { useNavigate } from "react-router-dom";
268
232
 
269
233
  // src/providers/keybind-provider/keybind-context.tsx
270
- import { createContext as createContext3 } from "react";
271
- var KeybindContext = createContext3(null);
234
+ import { createContext as createContext2 } from "react";
235
+ var KeybindContext = createContext2(null);
272
236
 
273
237
  // src/providers/keybind-provider/utils.ts
274
238
  var findFirstPlatformMatch = (keys) => {
@@ -336,7 +300,7 @@ var useShortcuts = ({
336
300
  shortcuts = [],
337
301
  debounce
338
302
  }) => {
339
- const [keys, setKeys] = useState3([]);
303
+ const [keys, setKeys] = useState2([]);
340
304
  const navigate = useNavigate();
341
305
  const removeKeys = useCallback(
342
306
  debounceFn(() => setKeys([]), debounce),
@@ -357,14 +321,14 @@ var useShortcuts = ({
357
321
  }, debounce / 2),
358
322
  []
359
323
  );
360
- useEffect3(() => {
324
+ useEffect2(() => {
361
325
  if (keys.length > 0 && shortcuts.length > 0) {
362
326
  const shortcut = findShortcut(shortcuts, keys);
363
327
  invokeShortcut(shortcut);
364
328
  }
365
329
  return () => invokeShortcut.cancel();
366
330
  }, [keys, shortcuts, invokeShortcut]);
367
- useEffect3(() => {
331
+ useEffect2(() => {
368
332
  const listener = (event) => {
369
333
  const target = event.target;
370
334
  if (target.tagName === "INPUT" || target.tagName === "TEXTAREA" || target.contentEditable === "true") {
@@ -521,14 +485,14 @@ var useGlobalShortcuts = () => {
521
485
  };
522
486
 
523
487
  // 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";
488
+ import { useCallback as useCallback2, useMemo, useState as useState3 } from "react";
489
+ import { jsx as jsx2 } from "react/jsx-runtime";
526
490
  var KeybindProvider = ({
527
491
  shortcuts,
528
492
  debounce = 500,
529
493
  children
530
494
  }) => {
531
- const [storeShortcuts, setStoreCommands] = useState4(
495
+ const [storeShortcuts, setStoreCommands] = useState3(
532
496
  shortcuts.map((shr) => getShortcutWithDefaultValues(shr))
533
497
  );
534
498
  const registerShortcut = useCallback2(
@@ -557,11 +521,11 @@ var KeybindProvider = ({
557
521
  }),
558
522
  [storeShortcuts, registerShortcut, getKeysByPlatform]
559
523
  );
560
- return /* @__PURE__ */ jsx3(KeybindContext.Provider, { value: commandsContext, children });
524
+ return /* @__PURE__ */ jsx2(KeybindContext.Provider, { value: commandsContext, children });
561
525
  };
562
526
 
563
527
  // src/providers/search-provider/search-provider.tsx
564
- import { useEffect as useEffect6, useState as useState7 } from "react";
528
+ import { useEffect as useEffect5, useState as useState6 } from "react";
565
529
 
566
530
  // src/components/search/search.tsx
567
531
  import {
@@ -580,14 +544,14 @@ import {
580
544
  forwardRef,
581
545
  Fragment,
582
546
  useCallback as useCallback4,
583
- useEffect as useEffect5,
547
+ useEffect as useEffect4,
584
548
  useImperativeHandle,
585
549
  useMemo as useMemo3,
586
550
  useRef,
587
- useState as useState6
551
+ useState as useState5
588
552
  } from "react";
589
553
  import { useTranslation as useTranslation3 } from "react-i18next";
590
- import { useLocation as useLocation2, useNavigate as useNavigate2 } from "react-router-dom";
554
+ import { useLocation, useNavigate as useNavigate2 } from "react-router-dom";
591
555
  import {
592
556
  ArrowUturnLeft,
593
557
  MagnifyingGlass,
@@ -621,7 +585,7 @@ var SEARCH_LIMIT_INCREMENT = 20;
621
585
 
622
586
  // src/components/search/use-search-results.tsx
623
587
  import { keepPreviousData } from "@tanstack/react-query";
624
- import { useCallback as useCallback3, useEffect as useEffect4, useMemo as useMemo2, useState as useState5 } from "react";
588
+ import { useCallback as useCallback3, useEffect as useEffect3, useMemo as useMemo2, useState as useState4 } from "react";
625
589
  import { useTranslation as useTranslation2 } from "react-i18next";
626
590
  var useSearchResults = ({
627
591
  q,
@@ -885,8 +849,8 @@ var useDynamicSearchResults = (currentArea, limit, q) => {
885
849
  };
886
850
  };
887
851
  var useDebouncedSearch = (value, delay) => {
888
- const [debouncedValue, setDebouncedValue] = useState5(value);
889
- useEffect4(() => {
852
+ const [debouncedValue, setDebouncedValue] = useState4(value);
853
+ useEffect3(() => {
890
854
  const handler = setTimeout(() => {
891
855
  setDebouncedValue(value);
892
856
  }, delay);
@@ -1050,13 +1014,13 @@ function transformDynamicSearchResults(type, limit, t2, response) {
1050
1014
  }
1051
1015
 
1052
1016
  // src/components/search/search.tsx
1053
- import { jsx as jsx4, jsxs } from "react/jsx-runtime";
1017
+ import { jsx as jsx3, jsxs } from "react/jsx-runtime";
1054
1018
  var Search = () => {
1055
- const [area, setArea] = useState6("all");
1056
- const [search, setSearch] = useState6("");
1057
- const [limit, setLimit] = useState6(DEFAULT_SEARCH_LIMIT);
1019
+ const [area, setArea] = useState5("all");
1020
+ const [search, setSearch] = useState5("");
1021
+ const [limit, setLimit] = useState5(DEFAULT_SEARCH_LIMIT);
1058
1022
  const { open, onOpenChange } = useSearch();
1059
- const location = useLocation2();
1023
+ const location = useLocation();
1060
1024
  const { t: t2 } = useTranslation3();
1061
1025
  const navigate = useNavigate2();
1062
1026
  const inputRef = useRef(null);
@@ -1084,7 +1048,7 @@ var Search = () => {
1084
1048
  },
1085
1049
  [onOpenChange, handleReset]
1086
1050
  );
1087
- useEffect5(() => {
1051
+ useEffect4(() => {
1088
1052
  handleOpenChange(false);
1089
1053
  }, [location.pathname, handleOpenChange]);
1090
1054
  const handleSelect = (item) => {
@@ -1134,7 +1098,7 @@ var Search = () => {
1134
1098
  return isFetching && !dynamicResults.length && !filteredStaticResults.length;
1135
1099
  }, [isFetching, dynamicResults, filteredStaticResults]);
1136
1100
  return /* @__PURE__ */ jsxs(CommandDialog, { open, onOpenChange: handleOpenChange, children: [
1137
- /* @__PURE__ */ jsx4(
1101
+ /* @__PURE__ */ jsx3(
1138
1102
  CommandInput,
1139
1103
  {
1140
1104
  isFetching,
@@ -1148,18 +1112,18 @@ var Search = () => {
1148
1112
  }
1149
1113
  ),
1150
1114
  /* @__PURE__ */ jsxs(CommandList, { ref: listRef, children: [
1151
- showLoading && /* @__PURE__ */ jsx4(CommandLoading, {}),
1115
+ showLoading && /* @__PURE__ */ jsx3(CommandLoading, {}),
1152
1116
  dynamicResults.map((group) => {
1153
1117
  return /* @__PURE__ */ jsxs(CommandGroup, { heading: group.title, children: [
1154
1118
  group.items.map((item) => {
1155
- return /* @__PURE__ */ jsx4(
1119
+ return /* @__PURE__ */ jsx3(
1156
1120
  CommandItem,
1157
1121
  {
1158
1122
  onSelect: () => handleSelect(item),
1159
1123
  value: item.value,
1160
1124
  className: "flex items-center justify-between",
1161
1125
  children: /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-3", children: [
1162
- item.thumbnail && /* @__PURE__ */ jsx4(
1126
+ item.thumbnail && /* @__PURE__ */ jsx3(
1163
1127
  Thumbnail,
1164
1128
  {
1165
1129
  alt: item.title,
@@ -1167,34 +1131,34 @@ var Search = () => {
1167
1131
  size: "small"
1168
1132
  }
1169
1133
  ),
1170
- /* @__PURE__ */ jsx4("span", { children: item.title }),
1171
- item.subtitle && /* @__PURE__ */ jsx4("span", { className: "text-ui-fg-muted", children: item.subtitle })
1134
+ /* @__PURE__ */ jsx3("span", { children: item.title }),
1135
+ item.subtitle && /* @__PURE__ */ jsx3("span", { className: "text-ui-fg-muted", children: item.subtitle })
1172
1136
  ] })
1173
1137
  },
1174
1138
  item.id
1175
1139
  );
1176
1140
  }),
1177
- group.hasMore && area === "all" && /* @__PURE__ */ jsx4(
1141
+ group.hasMore && area === "all" && /* @__PURE__ */ jsx3(
1178
1142
  CommandItem,
1179
1143
  {
1180
1144
  onSelect: () => handleShowMore(group.area),
1181
1145
  hidden: true,
1182
1146
  value: `${group.title}:show:more`,
1183
1147
  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") })
1148
+ /* @__PURE__ */ jsx3(Plus, {}),
1149
+ /* @__PURE__ */ jsx3(Text, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.showMore") })
1186
1150
  ] })
1187
1151
  }
1188
1152
  ),
1189
- group.hasMore && area === group.area && /* @__PURE__ */ jsx4(
1153
+ group.hasMore && area === group.area && /* @__PURE__ */ jsx3(
1190
1154
  CommandItem,
1191
1155
  {
1192
1156
  onSelect: handleLoadMore,
1193
1157
  hidden: true,
1194
1158
  value: `${group.title}:load:more`,
1195
1159
  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", {
1160
+ /* @__PURE__ */ jsx3(Plus, {}),
1161
+ /* @__PURE__ */ jsx3(Text, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.loadMore", {
1198
1162
  count: Math.min(
1199
1163
  SEARCH_LIMIT_INCREMENT,
1200
1164
  group.count - limit
@@ -1206,7 +1170,7 @@ var Search = () => {
1206
1170
  ] }, group.title);
1207
1171
  }),
1208
1172
  filteredStaticResults.map((group) => {
1209
- return /* @__PURE__ */ jsx4(
1173
+ return /* @__PURE__ */ jsx3(
1210
1174
  CommandGroup,
1211
1175
  {
1212
1176
  heading: t2(`app.keyboardShortcuts.${group.title}`),
@@ -1217,15 +1181,15 @@ var Search = () => {
1217
1181
  onSelect: () => handleSelect(item),
1218
1182
  className: "flex items-center justify-between",
1219
1183
  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) => {
1184
+ /* @__PURE__ */ jsx3("span", { children: item.label }),
1185
+ /* @__PURE__ */ jsx3("div", { className: "flex items-center gap-x-1.5", children: item.keys.Mac?.map((key, index) => {
1222
1186
  return /* @__PURE__ */ jsxs(
1223
1187
  "div",
1224
1188
  {
1225
1189
  className: "flex items-center gap-x-1",
1226
1190
  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") })
1191
+ /* @__PURE__ */ jsx3(Kbd, { children: key }),
1192
+ index < (item.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx3("span", { className: "txt-compact-xsmall text-ui-fg-subtle", children: t2("app.keyboardShortcuts.then") })
1229
1193
  ]
1230
1194
  },
1231
1195
  index
@@ -1240,11 +1204,11 @@ var Search = () => {
1240
1204
  group.title
1241
1205
  );
1242
1206
  }),
1243
- !showLoading && /* @__PURE__ */ jsx4(CommandEmpty, { q: search })
1207
+ !showLoading && /* @__PURE__ */ jsx3(CommandEmpty, { q: search })
1244
1208
  ] })
1245
1209
  ] });
1246
1210
  };
1247
- var CommandPalette = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
1211
+ var CommandPalette = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
1248
1212
  Command,
1249
1213
  {
1250
1214
  shouldFilter: false,
@@ -1262,8 +1226,8 @@ var CommandDialog = ({ children, ...props }) => {
1262
1226
  const preserveHeight = useMemo3(() => {
1263
1227
  return props.isLoading && Children.count(children) === 0;
1264
1228
  }, [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" }),
1229
+ return /* @__PURE__ */ jsx3(RadixDialog.Root, { ...props, children: /* @__PURE__ */ jsxs(RadixDialog.Portal, { children: [
1230
+ /* @__PURE__ */ jsx3(RadixDialog.Overlay, { className: "bg-ui-bg-overlay fixed inset-0" }),
1267
1231
  /* @__PURE__ */ jsxs(
1268
1232
  RadixDialog.Content,
1269
1233
  {
@@ -1275,21 +1239,21 @@ var CommandDialog = ({ children, ...props }) => {
1275
1239
  }
1276
1240
  ),
1277
1241
  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: [
1242
+ /* @__PURE__ */ jsx3(RadixDialog.Title, { className: "sr-only", children: t2("app.search.title") }),
1243
+ /* @__PURE__ */ jsx3(RadixDialog.Description, { className: "sr-only", children: t2("app.search.description") }),
1244
+ /* @__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 }),
1245
+ /* @__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
1246
  /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-x-2", children: [
1283
- /* @__PURE__ */ jsx4(Text, { size: "xsmall", leading: "compact", children: t2("app.search.navigation") }),
1247
+ /* @__PURE__ */ jsx3(Text, { size: "xsmall", leading: "compact", children: t2("app.search.navigation") }),
1284
1248
  /* @__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" })
1249
+ /* @__PURE__ */ jsx3(Kbd, { className: "bg-ui-bg-field-component", children: "\u2193" }),
1250
+ /* @__PURE__ */ jsx3(Kbd, { className: "bg-ui-bg-field-component", children: "\u2191" })
1287
1251
  ] })
1288
1252
  ] }),
1289
- /* @__PURE__ */ jsx4("div", { className: "bg-ui-border-strong h-3 w-px" }),
1253
+ /* @__PURE__ */ jsx3("div", { className: "bg-ui-border-strong h-3 w-px" }),
1290
1254
  /* @__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" })
1255
+ /* @__PURE__ */ jsx3(Text, { size: "xsmall", leading: "compact", children: t2("app.search.openResult") }),
1256
+ /* @__PURE__ */ jsx3(Kbd, { className: "bg-ui-bg-field-component", children: "\u21B5" })
1293
1257
  ] })
1294
1258
  ] }) })
1295
1259
  ]
@@ -1316,19 +1280,19 @@ var CommandInput = forwardRef(
1316
1280
  () => innerRef.current
1317
1281
  );
1318
1282
  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(
1283
+ /* @__PURE__ */ jsx3("div", { className: "px-4 pt-4", children: /* @__PURE__ */ jsxs(DropdownMenu, { dir: direction, children: [
1284
+ /* @__PURE__ */ jsx3(DropdownMenu.Trigger, { asChild: true, children: /* @__PURE__ */ jsxs(
1321
1285
  Badge,
1322
1286
  {
1323
1287
  size: "2xsmall",
1324
1288
  className: "hover:bg-ui-bg-base-pressed transition-fg cursor-pointer",
1325
1289
  children: [
1326
1290
  t2(`app.search.groups.${area}`),
1327
- /* @__PURE__ */ jsx4(TriangleDownMini, { className: "text-ui-fg-muted" })
1291
+ /* @__PURE__ */ jsx3(TriangleDownMini, { className: "text-ui-fg-muted" })
1328
1292
  ]
1329
1293
  }
1330
1294
  ) }),
1331
- /* @__PURE__ */ jsx4(
1295
+ /* @__PURE__ */ jsx3(
1332
1296
  DropdownMenu.Content,
1333
1297
  {
1334
1298
  align: "start",
@@ -1337,15 +1301,15 @@ var CommandInput = forwardRef(
1337
1301
  e.preventDefault();
1338
1302
  innerRef.current?.focus();
1339
1303
  },
1340
- children: /* @__PURE__ */ jsx4(
1304
+ children: /* @__PURE__ */ jsx3(
1341
1305
  DropdownMenu.RadioGroup,
1342
1306
  {
1343
1307
  value: area,
1344
1308
  onValueChange: (v) => setArea(v),
1345
1309
  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, {})
1310
+ area2 === "command" && /* @__PURE__ */ jsx3(DropdownMenu.Separator, {}),
1311
+ /* @__PURE__ */ jsx3(DropdownMenu.RadioItem, { value: area2, children: t2(`app.search.groups.${area2}`) }),
1312
+ area2 === "all" && /* @__PURE__ */ jsx3(DropdownMenu.Separator, {})
1349
1313
  ] }, area2))
1350
1314
  }
1351
1315
  )
@@ -1353,17 +1317,17 @@ var CommandInput = forwardRef(
1353
1317
  )
1354
1318
  ] }) }),
1355
1319
  /* @__PURE__ */ jsxs("div", { className: "relative flex items-center gap-x-2 px-4 py-3", children: [
1356
- onBack && /* @__PURE__ */ jsx4(
1320
+ onBack && /* @__PURE__ */ jsx3(
1357
1321
  IconButton,
1358
1322
  {
1359
1323
  type: "button",
1360
1324
  size: "small",
1361
1325
  variant: "transparent",
1362
1326
  onClick: onBack,
1363
- children: /* @__PURE__ */ jsx4(ArrowUturnLeft, { className: "text-ui-fg-muted" })
1327
+ children: /* @__PURE__ */ jsx3(ArrowUturnLeft, { className: "text-ui-fg-muted" })
1364
1328
  }
1365
1329
  ),
1366
- /* @__PURE__ */ jsx4(
1330
+ /* @__PURE__ */ jsx3(
1367
1331
  Command.Input,
1368
1332
  {
1369
1333
  ref: innerRef,
@@ -1377,8 +1341,8 @@ var CommandInput = forwardRef(
1377
1341
  }
1378
1342
  ),
1379
1343
  /* @__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(
1344
+ isFetching && /* @__PURE__ */ jsx3(Spinner, { className: "text-ui-fg-muted animate-spin" }),
1345
+ value && /* @__PURE__ */ jsx3(
1382
1346
  Button,
1383
1347
  {
1384
1348
  variant: "transparent",
@@ -1398,7 +1362,7 @@ var CommandInput = forwardRef(
1398
1362
  }
1399
1363
  );
1400
1364
  CommandInput.displayName = Command.Input.displayName;
1401
- var CommandList = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
1365
+ var CommandList = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
1402
1366
  Command.List,
1403
1367
  {
1404
1368
  ref,
@@ -1412,11 +1376,11 @@ var CommandList = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ j
1412
1376
  CommandList.displayName = Command.List.displayName;
1413
1377
  var CommandEmpty = forwardRef((props, ref) => {
1414
1378
  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" }),
1379
+ 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: [
1380
+ /* @__PURE__ */ jsx3(MagnifyingGlass, { className: "text-ui-fg-subtle" }),
1417
1381
  /* @__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") })
1382
+ /* @__PURE__ */ jsx3(Text, { size: "small", weight: "plus", leading: "compact", children: props.q ? t2("app.search.noResultsTitle") : t2("app.search.emptySearchTitle") }),
1383
+ /* @__PURE__ */ jsx3(Text, { size: "small", className: "text-ui-fg-muted", children: props.q ? t2("app.search.noResultsMessage") : t2("app.search.emptySearchMessage") })
1420
1384
  ] })
1421
1385
  ] }) });
1422
1386
  });
@@ -1429,14 +1393,14 @@ var CommandLoading = forwardRef((props, ref) => {
1429
1393
  ...props,
1430
1394
  className: "bg-ui-bg-base flex flex-col",
1431
1395
  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))
1396
+ /* @__PURE__ */ jsx3("div", { className: "w-full px-2 pb-1 pt-3", children: /* @__PURE__ */ jsx3(Skeleton, { className: "h-5 w-10" }) }),
1397
+ 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
1398
  ]
1435
1399
  }
1436
1400
  );
1437
1401
  });
1438
1402
  CommandLoading.displayName = Command.Loading.displayName;
1439
- var CommandGroup = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
1403
+ var CommandGroup = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
1440
1404
  Command.Group,
1441
1405
  {
1442
1406
  ref,
@@ -1448,7 +1412,7 @@ var CommandGroup = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */
1448
1412
  }
1449
1413
  ));
1450
1414
  CommandGroup.displayName = Command.Group.displayName;
1451
- var CommandSeparator = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
1415
+ var CommandSeparator = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
1452
1416
  Command.Separator,
1453
1417
  {
1454
1418
  ref,
@@ -1457,7 +1421,7 @@ var CommandSeparator = forwardRef(({ className, ...props }, ref) => /* @__PURE__
1457
1421
  }
1458
1422
  ));
1459
1423
  CommandSeparator.displayName = Command.Separator.displayName;
1460
- var CommandItem = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx4(
1424
+ var CommandItem = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx3(
1461
1425
  Command.Item,
1462
1426
  {
1463
1427
  ref,
@@ -1471,13 +1435,13 @@ var CommandItem = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ j
1471
1435
  CommandItem.displayName = Command.Item.displayName;
1472
1436
 
1473
1437
  // src/providers/search-provider/search-context.tsx
1474
- import { createContext as createContext4 } from "react";
1475
- var SearchContext = createContext4(null);
1438
+ import { createContext as createContext3 } from "react";
1439
+ var SearchContext = createContext3(null);
1476
1440
 
1477
1441
  // src/providers/search-provider/search-provider.tsx
1478
- import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
1442
+ import { jsx as jsx4, jsxs as jsxs2 } from "react/jsx-runtime";
1479
1443
  var SearchProvider = ({ children }) => {
1480
- const [open, setOpen] = useState7(false);
1444
+ const [open, setOpen] = useState6(false);
1481
1445
  const { mobile, toggle } = useSidebar();
1482
1446
  const toggleSearch = () => {
1483
1447
  const update = !open;
@@ -1486,7 +1450,7 @@ var SearchProvider = ({ children }) => {
1486
1450
  }
1487
1451
  setOpen(update);
1488
1452
  };
1489
- useEffect6(() => {
1453
+ useEffect5(() => {
1490
1454
  const onKeyDown = (e) => {
1491
1455
  if (e.key === "k" && (e.metaKey || e.ctrlKey)) {
1492
1456
  setOpen((prev) => !prev);
@@ -1507,16 +1471,16 @@ var SearchProvider = ({ children }) => {
1507
1471
  },
1508
1472
  children: [
1509
1473
  children,
1510
- /* @__PURE__ */ jsx5(Search, {})
1474
+ /* @__PURE__ */ jsx4(Search, {})
1511
1475
  ]
1512
1476
  }
1513
1477
  );
1514
1478
  };
1515
1479
 
1516
1480
  // src/providers/search-provider/use-search.tsx
1517
- import { useContext as useContext4 } from "react";
1481
+ import { useContext as useContext3 } from "react";
1518
1482
  var useSearch = () => {
1519
- const context = useContext4(SearchContext);
1483
+ const context = useContext3(SearchContext);
1520
1484
  if (!context) {
1521
1485
  throw new Error("useSearch must be used within a SearchProvider");
1522
1486
  }
@@ -1534,11 +1498,11 @@ import { Outlet as Outlet4 } from "react-router-dom";
1534
1498
  // src/components/authentication/protected-route/protected-route.tsx
1535
1499
  import { Spinner as Spinner2 } from "@medusajs/icons";
1536
1500
  import { useMemo as useMemo4 } from "react";
1537
- import { Navigate, Outlet, useLocation as useLocation3 } from "react-router-dom";
1501
+ import { Navigate, Outlet, useLocation as useLocation2 } from "react-router-dom";
1538
1502
  import { PermissionsProvider } from "@mercurjs/dashboard-shared";
1539
- import { jsx as jsx6 } from "react/jsx-runtime";
1503
+ import { jsx as jsx5 } from "react/jsx-runtime";
1540
1504
  var ProtectedRoute = () => {
1541
- const location = useLocation3();
1505
+ const location = useLocation2();
1542
1506
  const isRbacEnabled = useFeatureFlag("rbac");
1543
1507
  const { user, isLoading: isLoadingUser } = useMe();
1544
1508
  const { data: permissionsResponse, isLoading: isLoadingPermissions } = useMePermissions({
@@ -1554,18 +1518,18 @@ var ProtectedRoute = () => {
1554
1518
  };
1555
1519
  }, [permissionsResponse]);
1556
1520
  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" }) });
1521
+ return /* @__PURE__ */ jsx5("div", { className: "flex min-h-screen items-center justify-center", children: /* @__PURE__ */ jsx5(Spinner2, { className: "text-ui-fg-interactive animate-spin" }) });
1558
1522
  }
1559
1523
  if (!user) {
1560
- return /* @__PURE__ */ jsx6(Navigate, { to: "/login", state: { from: location }, replace: true });
1524
+ return /* @__PURE__ */ jsx5(Navigate, { to: "/login", state: { from: location }, replace: true });
1561
1525
  }
1562
- return /* @__PURE__ */ jsx6(
1526
+ return /* @__PURE__ */ jsx5(
1563
1527
  PermissionsProvider,
1564
1528
  {
1565
1529
  policy,
1566
1530
  isLoading: isLoadingPermissions,
1567
1531
  isRbacEnabled,
1568
- children: /* @__PURE__ */ jsx6(SidebarProvider, { children: /* @__PURE__ */ jsx6(SearchProvider, { children: /* @__PURE__ */ jsx6(Outlet, {}) }) })
1532
+ children: /* @__PURE__ */ jsx5(SidebarProvider, { children: /* @__PURE__ */ jsx5(SearchProvider, { children: /* @__PURE__ */ jsx5(Outlet, {}) }) })
1569
1533
  }
1570
1534
  );
1571
1535
  };
@@ -1585,28 +1549,28 @@ import {
1585
1549
  Tag,
1586
1550
  Users
1587
1551
  } from "@medusajs/icons";
1588
- import { Avatar as Avatar2, Divider, DropdownMenu as DropdownMenu3, Text as Text7, clx as clx6 } from "@medusajs/ui";
1552
+ import { Avatar as Avatar2, Divider, DropdownMenu as DropdownMenu3, Text as Text5, clx as clx5 } from "@medusajs/ui";
1589
1553
  import { useMemo as useMemo5 } from "react";
1590
- import { useTranslation as useTranslation9 } from "react-i18next";
1591
- import { Link as Link3, useLocation as useLocation7, useNavigate as useNavigate4 } from "react-router-dom";
1554
+ import { useTranslation as useTranslation8 } from "react-i18next";
1555
+ import { Link as Link3, useLocation as useLocation6, useNavigate as useNavigate4 } from "react-router-dom";
1592
1556
 
1593
1557
  // src/components/layout/nav-item/nav-item.tsx
1594
1558
  import {
1595
1559
  useCallback as useCallback5,
1596
- useEffect as useEffect7,
1597
- useState as useState8
1560
+ useEffect as useEffect6,
1561
+ useState as useState7
1598
1562
  } from "react";
1599
- import { Kbd as Kbd2, Text as Text2, clx as clx2 } from "@medusajs/ui";
1563
+ import { Kbd as Kbd2, Text as Text2, Tooltip, clx as clx2 } from "@medusajs/ui";
1600
1564
  import { Collapsible as RadixCollapsible } from "radix-ui";
1601
1565
  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";
1566
+ import { NavLink, useLocation as useLocation3 } from "react-router-dom";
1567
+ import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
1604
1568
  var NestedNavLabel = ({
1605
1569
  label,
1606
1570
  translationNs
1607
1571
  }) => {
1608
1572
  const { t: t2 } = useTranslation4(translationNs);
1609
- return /* @__PURE__ */ jsx7(Text2, { size: "small", weight: "plus", leading: "compact", children: translationNs ? t2(label) : label });
1573
+ return /* @__PURE__ */ jsx6(Text2, { size: "small", weight: "plus", leading: "compact", children: translationNs ? t2(label) : label });
1610
1574
  };
1611
1575
  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
1576
  var ACTIVE_NAV_LINK_CLASSES = "bg-ui-bg-base shadow-elevation-card-rest text-ui-fg-base hover:bg-ui-bg-base";
@@ -1619,26 +1583,31 @@ var getIsOpen = (to, items, pathname) => {
1619
1583
  };
1620
1584
  var NavItemTooltip = ({
1621
1585
  to,
1586
+ label,
1622
1587
  children
1623
1588
  }) => {
1624
1589
  const { t: t2 } = useTranslation4();
1590
+ const { state } = useSidebar();
1625
1591
  const globalShortcuts = useGlobalShortcuts();
1626
1592
  const shortcut = globalShortcuts.find((s) => s.to === to);
1627
- return /* @__PURE__ */ jsx7(
1593
+ if (state === "collapsed" && label) {
1594
+ return /* @__PURE__ */ jsx6(Tooltip, { content: label, side: "right", delayDuration: 0, children: /* @__PURE__ */ jsx6("div", { className: "w-full", children }) });
1595
+ }
1596
+ return /* @__PURE__ */ jsx6(
1628
1597
  ConditionalTooltip,
1629
1598
  {
1630
1599
  showTooltip: !!shortcut,
1631
1600
  maxWidth: 9999,
1632
1601
  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") })
1602
+ /* @__PURE__ */ jsx6("span", { children: shortcut?.label }),
1603
+ /* @__PURE__ */ jsx6("div", { className: "flex items-center gap-x-1", children: shortcut?.keys.Mac?.map((key, index) => /* @__PURE__ */ jsxs3("div", { className: "flex items-center gap-x-1", children: [
1604
+ /* @__PURE__ */ jsx6(Kbd2, { children: key }, key),
1605
+ index < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx6("span", { className: "txt-compact-xsmall text-ui-fg-muted", children: t2("app.keyboardShortcuts.then") })
1637
1606
  ] }, index)) })
1638
1607
  ] }),
1639
1608
  side: "right",
1640
1609
  delayDuration: 1500,
1641
- children: /* @__PURE__ */ jsx7("div", { className: "w-full", children })
1610
+ children: /* @__PURE__ */ jsx6("div", { className: "w-full", children })
1642
1611
  }
1643
1612
  );
1644
1613
  };
@@ -1652,10 +1621,10 @@ var NavItem = ({
1652
1621
  translationNs
1653
1622
  }) => {
1654
1623
  const { t: t2 } = useTranslation4(translationNs);
1655
- const { pathname } = useLocation4();
1624
+ const { pathname } = useLocation3();
1656
1625
  const displayLabel = translationNs ? t2(label) : label;
1657
- const [open, setOpen] = useState8(getIsOpen(to, items, pathname));
1658
- useEffect7(() => {
1626
+ const [open, setOpen] = useState7(getIsOpen(to, items, pathname));
1627
+ useEffect6(() => {
1659
1628
  setOpen(getIsOpen(to, items, pathname));
1660
1629
  }, [pathname, to, items]);
1661
1630
  const navLinkClassNames = useCallback5(
@@ -1691,7 +1660,7 @@ var NavItem = ({
1691
1660
  className: "px-3",
1692
1661
  "data-testid": `sidebar-nav-item-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1693
1662
  children: [
1694
- /* @__PURE__ */ jsx7(NavItemTooltip, { to, children: /* @__PURE__ */ jsxs3(
1663
+ /* @__PURE__ */ jsx6(NavItemTooltip, { to, label: displayLabel, children: /* @__PURE__ */ jsxs3(
1695
1664
  NavLink,
1696
1665
  {
1697
1666
  to,
@@ -1706,81 +1675,98 @@ var NavItem = ({
1706
1675
  },
1707
1676
  "data-testid": `sidebar-nav-link-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1708
1677
  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 })
1678
+ type !== "setting" && /* @__PURE__ */ jsx6("div", { className: "flex size-6 shrink-0 items-center justify-center", children: /* @__PURE__ */ jsx6(Icon, { icon, type }) }),
1679
+ /* @__PURE__ */ jsx6(
1680
+ Text2,
1681
+ {
1682
+ size: "small",
1683
+ weight: "plus",
1684
+ leading: "compact",
1685
+ className: clx2("shrink-0 whitespace-nowrap", SIDEBAR_RAIL_FADE),
1686
+ children: displayLabel
1687
+ }
1688
+ )
1711
1689
  ]
1712
1690
  }
1713
1691
  ) }),
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 }
1692
+ items && items.length > 0 && /* @__PURE__ */ jsxs3(
1693
+ RadixCollapsible.Root,
1694
+ {
1695
+ open,
1696
+ onOpenChange: setOpen,
1697
+ className: "group-data-[state=collapsed]/sidebar:hidden",
1698
+ children: [
1699
+ /* @__PURE__ */ jsxs3(
1700
+ RadixCollapsible.Trigger,
1701
+ {
1702
+ className: clx2(
1703
+ "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",
1704
+ { "pl-2": isSetting }
1705
+ ),
1706
+ children: [
1707
+ /* @__PURE__ */ jsx6("div", { className: "flex size-6 items-center justify-center", children: /* @__PURE__ */ jsx6(Icon, { icon, type }) }),
1708
+ /* @__PURE__ */ jsx6(Text2, { size: "small", weight: "plus", leading: "compact", children: displayLabel })
1709
+ ]
1710
+ }
1721
1711
  ),
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,
1712
+ /* @__PURE__ */ jsx6(RadixCollapsible.Content, { children: /* @__PURE__ */ jsx6(
1713
+ "div",
1714
+ {
1715
+ className: "flex flex-col gap-y-0.5 pb-2 pt-0.5",
1716
+ "data-testid": `sidebar-nav-nested-items-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1717
+ children: /* @__PURE__ */ jsxs3("ul", { className: "flex flex-col gap-y-0.5", children: [
1718
+ /* @__PURE__ */ jsx6("li", { className: "flex w-full items-center gap-x-1 lg:hidden", children: /* @__PURE__ */ jsx6(NavItemTooltip, { to, children: /* @__PURE__ */ jsx6(
1719
+ NavLink,
1720
+ {
1721
+ to,
1722
+ end: true,
1723
+ className: ({ isActive }) => {
1724
+ return clx2(
1725
+ navLinkClassNames({
1726
+ to,
1727
+ isActive,
1728
+ isSetting,
1729
+ isNested: true
1730
+ })
1731
+ );
1732
+ },
1733
+ "data-testid": `sidebar-nav-link-nested-${to.replace(/\//g, "-").replace(/^-/, "")}`,
1734
+ children: /* @__PURE__ */ jsx6(Text2, { size: "small", weight: "plus", leading: "compact", children: displayLabel })
1735
+ }
1736
+ ) }) }),
1737
+ items.map((item) => {
1738
+ return /* @__PURE__ */ jsx6("li", { className: "flex h-7 items-center", children: /* @__PURE__ */ jsx6(NavItemTooltip, { to: item.to, children: /* @__PURE__ */ jsx6(
1739
+ NavLink,
1772
1740
  {
1773
- label: item.label,
1774
- translationNs: item.translationNs
1741
+ to: item.to,
1742
+ end: true,
1743
+ className: ({ isActive }) => {
1744
+ return clx2(
1745
+ navLinkClassNames({
1746
+ to: item.to,
1747
+ isActive,
1748
+ isSetting,
1749
+ isNested: true
1750
+ })
1751
+ );
1752
+ },
1753
+ "data-testid": `sidebar-nav-link-nested-${item.to.replace(/\//g, "-").replace(/^-/, "")}`,
1754
+ children: /* @__PURE__ */ jsx6(
1755
+ NestedNavLabel,
1756
+ {
1757
+ label: item.label,
1758
+ translationNs: item.translationNs
1759
+ }
1760
+ )
1775
1761
  }
1776
- )
1777
- }
1778
- ) }) }, item.to);
1779
- })
1780
- ] })
1781
- }
1782
- ) })
1783
- ] })
1762
+ ) }) }, item.to);
1763
+ })
1764
+ ] })
1765
+ }
1766
+ ) })
1767
+ ]
1768
+ }
1769
+ )
1784
1770
  ]
1785
1771
  }
1786
1772
  );
@@ -1789,28 +1775,29 @@ var Icon = ({ icon, type }) => {
1789
1775
  if (!icon) {
1790
1776
  return null;
1791
1777
  }
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;
1778
+ return type === "extension" ? /* @__PURE__ */ jsx6("div", { className: "flex h-5 w-5 items-center justify-center rounded-[4px] bg-ui-bg-base shadow-borders-base", children: /* @__PURE__ */ jsx6("div", { className: "h-[15px] w-[15px] overflow-hidden rounded-sm", children: icon }) }) : icon;
1793
1779
  };
1794
1780
 
1795
1781
  // src/components/layout/shell/shell.tsx
1796
1782
  import { SidebarLeft, TriangleRightMini, XMark } from "@medusajs/icons";
1797
- import { IconButton as IconButton4, clx as clx4 } from "@medusajs/ui";
1783
+ import { IconButton as IconButton2, clx as clx3 } from "@medusajs/ui";
1798
1784
  import { AnimatePresence } from "motion/react";
1799
1785
  import { Dialog as RadixDialog2 } from "radix-ui";
1800
- import { useEffect as useEffect9, useState as useState10 } from "react";
1801
- import { useTranslation as useTranslation6 } from "react-i18next";
1786
+ import { useEffect as useEffect7, useState as useState8 } from "react";
1787
+ import { useTranslation as useTranslation5 } from "react-i18next";
1802
1788
  import {
1803
1789
  Link,
1804
1790
  Outlet as Outlet2,
1805
1791
  useMatches,
1806
1792
  useNavigation
1807
1793
  } from "react-router-dom";
1794
+ import { WidgetZone } from "@mercurjs/dashboard-shared";
1808
1795
 
1809
1796
  // src/components/common/progress-bar/progress-bar.tsx
1810
1797
  import { motion } from "motion/react";
1811
- import { jsx as jsx8 } from "react/jsx-runtime";
1798
+ import { jsx as jsx7 } from "react/jsx-runtime";
1812
1799
  var ProgressBar = ({ duration = 2 }) => {
1813
- return /* @__PURE__ */ jsx8(
1800
+ return /* @__PURE__ */ jsx7(
1814
1801
  motion.div,
1815
1802
  {
1816
1803
  className: "bg-ui-fg-subtle size-full",
@@ -1833,443 +1820,38 @@ var ProgressBar = ({ duration = 2 }) => {
1833
1820
  );
1834
1821
  };
1835
1822
 
1836
- // src/components/layout/notifications/notifications.tsx
1837
- import {
1838
- BellAlert,
1839
- BellAlertDone,
1840
- InformationCircleSolid
1841
- } from "@medusajs/icons";
1842
- import { clx as clx3, Drawer, Heading, IconButton as IconButton3, Text as Text4 } from "@medusajs/ui";
1843
- import { formatDistance } from "date-fns";
1844
- import { useEffect as useEffect8, useState as useState9 } from "react";
1845
- import { useTranslation as useTranslation5 } from "react-i18next";
1846
-
1847
- // src/components/common/file-preview/file-preview.tsx
1848
- import { ArrowDownTray, Spinner as Spinner3 } from "@medusajs/icons";
1849
- import { IconButton as IconButton2, Text as Text3 } from "@medusajs/ui";
1850
- import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
1851
- var FilePreview = ({
1852
- filename,
1853
- url,
1854
- loading,
1855
- activity,
1856
- actions,
1857
- hideThumbnail
1858
- }) => {
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: [
1860
- /* @__PURE__ */ jsxs4("div", { className: "flex flex-row items-center gap-3", children: [
1861
- !hideThumbnail && /* @__PURE__ */ jsx9(FileThumbnail, {}),
1862
- /* @__PURE__ */ jsxs4("div", { className: "flex flex-col justify-center", children: [
1863
- /* @__PURE__ */ jsx9(
1864
- Text3,
1865
- {
1866
- size: "small",
1867
- leading: "compact",
1868
- className: "truncate max-w-[260px]",
1869
- children: filename
1870
- }
1871
- ),
1872
- loading && !!activity && /* @__PURE__ */ jsx9(
1873
- Text3,
1874
- {
1875
- leading: "compact",
1876
- size: "xsmall",
1877
- className: "text-ui-fg-interactive",
1878
- children: activity
1879
- }
1880
- )
1881
- ] })
1882
- ] }),
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, {}) }) })
1886
- ] }) });
1887
- };
1888
- var FileThumbnail = () => {
1889
- return /* @__PURE__ */ jsxs4(
1890
- "svg",
1891
- {
1892
- width: "24",
1893
- height: "32",
1894
- viewBox: "0 0 24 32",
1895
- fill: "none",
1896
- xmlns: "http://www.w3.org/2000/svg",
1897
- children: [
1898
- /* @__PURE__ */ jsx9(
1899
- "path",
1900
- {
1901
- 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",
1902
- fill: "url(#paint0_linear_6594_388107)",
1903
- stroke: "url(#paint1_linear_6594_388107)",
1904
- "stroke-width": "0.5"
1905
- }
1906
- ),
1907
- /* @__PURE__ */ jsx9(
1908
- "path",
1909
- {
1910
- opacity: "0.4",
1911
- d: "M17.7857 12.8125V13.5357H10.3393V10.9643H15.9375C16.9569 10.9643 17.7857 11.7931 17.7857 12.8125ZM6.21429 16.9107V15.0893H8.78571V16.9107H6.21429ZM10.3393 16.9107V15.0893H17.7857V16.9107H10.3393ZM15.9375 21.0357H10.3393V18.4643H17.7857V19.1875C17.7857 20.2069 16.9569 21.0357 15.9375 21.0357ZM6.21429 19.1875V18.4643H8.78571V21.0357H8.0625C7.0431 21.0357 6.21429 20.2069 6.21429 19.1875ZM8.0625 10.9643H8.78571V13.5357H6.21429V12.8125C6.21429 11.7931 7.0431 10.9643 8.0625 10.9643Z",
1912
- fill: "url(#paint2_linear_6594_388107)",
1913
- stroke: "url(#paint3_linear_6594_388107)",
1914
- "stroke-width": "0.428571"
1915
- }
1916
- ),
1917
- /* @__PURE__ */ jsxs4("defs", { children: [
1918
- /* @__PURE__ */ jsxs4(
1919
- "linearGradient",
1920
- {
1921
- id: "paint0_linear_6594_388107",
1922
- x1: "12",
1923
- y1: "0",
1924
- x2: "12",
1925
- y2: "32",
1926
- gradientUnits: "userSpaceOnUse",
1927
- children: [
1928
- /* @__PURE__ */ jsx9("stop", { "stop-color": "#F4F4F5" }),
1929
- /* @__PURE__ */ jsx9("stop", { offset: "1", "stop-color": "#E4E4E7" })
1930
- ]
1931
- }
1932
- ),
1933
- /* @__PURE__ */ jsxs4(
1934
- "linearGradient",
1935
- {
1936
- id: "paint1_linear_6594_388107",
1937
- x1: "12",
1938
- y1: "0",
1939
- x2: "12",
1940
- y2: "32",
1941
- gradientUnits: "userSpaceOnUse",
1942
- children: [
1943
- /* @__PURE__ */ jsx9("stop", { "stop-color": "#E4E4E7" }),
1944
- /* @__PURE__ */ jsx9("stop", { offset: "1", "stop-color": "#D4D4D8" })
1945
- ]
1946
- }
1947
- ),
1948
- /* @__PURE__ */ jsxs4(
1949
- "linearGradient",
1950
- {
1951
- id: "paint2_linear_6594_388107",
1952
- x1: "12",
1953
- y1: "10.75",
1954
- x2: "12",
1955
- y2: "21.25",
1956
- gradientUnits: "userSpaceOnUse",
1957
- children: [
1958
- /* @__PURE__ */ jsx9("stop", { "stop-color": "#52525B" }),
1959
- /* @__PURE__ */ jsx9("stop", { offset: "1", "stop-color": "#A1A1AA" })
1960
- ]
1961
- }
1962
- ),
1963
- /* @__PURE__ */ jsxs4(
1964
- "linearGradient",
1965
- {
1966
- id: "paint3_linear_6594_388107",
1967
- x1: "12",
1968
- y1: "10.75",
1969
- x2: "12",
1970
- y2: "21.25",
1971
- gradientUnits: "userSpaceOnUse",
1972
- children: [
1973
- /* @__PURE__ */ jsx9("stop", { "stop-color": "#18181B" }),
1974
- /* @__PURE__ */ jsx9("stop", { offset: "1", "stop-color": "#52525B" })
1975
- ]
1976
- }
1977
- )
1978
- ] })
1979
- ]
1980
- }
1981
- );
1982
- };
1983
-
1984
- // src/components/layout/notifications/notifications.tsx
1985
- import { Fragment as Fragment2, jsx as jsx10, jsxs as jsxs5 } from "react/jsx-runtime";
1986
- var LAST_READ_NOTIFICATION_KEY = "notificationsLastReadAt";
1987
- var Notifications = () => {
1988
- const { t: t2 } = useTranslation5();
1989
- const [open, setOpen] = useState9(false);
1990
- const [hasUnread, setHasUnread] = useUnreadNotifications();
1991
- const [lastReadAt, setLastReadAt] = useState9(
1992
- localStorage.getItem(LAST_READ_NOTIFICATION_KEY)
1993
- );
1994
- useEffect8(() => {
1995
- const onKeyDown = (e) => {
1996
- if (e.key === "n" && (e.metaKey || e.ctrlKey)) {
1997
- setOpen((prev) => !prev);
1998
- }
1999
- };
2000
- document.addEventListener("keydown", onKeyDown);
2001
- return () => {
2002
- document.removeEventListener("keydown", onKeyDown);
2003
- };
2004
- }, []);
2005
- const handleOnOpen = (shouldOpen) => {
2006
- if (shouldOpen) {
2007
- setHasUnread(false);
2008
- setOpen(true);
2009
- localStorage.setItem(
2010
- LAST_READ_NOTIFICATION_KEY,
2011
- (/* @__PURE__ */ new Date()).toISOString()
2012
- );
2013
- } else {
2014
- setOpen(false);
2015
- setLastReadAt(localStorage.getItem(LAST_READ_NOTIFICATION_KEY));
2016
- }
2017
- };
2018
- return /* @__PURE__ */ jsxs5(
2019
- Drawer,
2020
- {
2021
- open,
2022
- onOpenChange: handleOnOpen,
2023
- "data-testid": "notifications-drawer",
2024
- children: [
2025
- /* @__PURE__ */ jsx10(Drawer.Trigger, { asChild: true, children: /* @__PURE__ */ jsx10(
2026
- IconButton3,
2027
- {
2028
- variant: "transparent",
2029
- size: "small",
2030
- className: "text-ui-fg-muted hover:text-ui-fg-subtle",
2031
- "data-testid": "notifications-trigger-button",
2032
- children: hasUnread ? /* @__PURE__ */ jsx10(BellAlertDone, { "data-testid": "notifications-icon-unread" }) : /* @__PURE__ */ jsx10(BellAlert, { "data-testid": "notifications-icon" })
2033
- }
2034
- ) }),
2035
- /* @__PURE__ */ jsxs5(Drawer.Content, { "data-testid": "notifications-content", children: [
2036
- /* @__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(
2039
- Drawer.Description,
2040
- {
2041
- className: "sr-only",
2042
- "data-testid": "notifications-description",
2043
- children: t2("notifications.accessibility.description")
2044
- }
2045
- )
2046
- ] }),
2047
- /* @__PURE__ */ jsx10(
2048
- Drawer.Body,
2049
- {
2050
- className: "overflow-y-auto px-0",
2051
- "data-testid": "notifications-body",
2052
- children: /* @__PURE__ */ jsx10("div", { "data-testid": "notifications-list", children: /* @__PURE__ */ jsx10(
2053
- InfiniteList,
2054
- {
2055
- responseKey: "notifications",
2056
- queryKey: notificationQueryKeys.all,
2057
- queryFn: (params) => sdk.admin.notifications.query({
2058
- ...params
2059
- }),
2060
- queryOptions: { enabled: open },
2061
- renderEmpty: () => /* @__PURE__ */ jsx10(NotificationsEmptyState, { t: t2 }),
2062
- renderItem: (notification) => {
2063
- return /* @__PURE__ */ jsx10(
2064
- Notification,
2065
- {
2066
- notification,
2067
- unread: Date.parse(notification.created_at) > (lastReadAt ? Date.parse(lastReadAt) : 0)
2068
- },
2069
- notification.id
2070
- );
2071
- }
2072
- }
2073
- ) })
2074
- }
2075
- )
2076
- ] })
2077
- ]
2078
- }
2079
- );
2080
- };
2081
- var Notification = ({
2082
- notification,
2083
- unread
2084
- }) => {
2085
- const data = notification.data;
2086
- if (!data?.title) {
2087
- return null;
2088
- }
2089
- return /* @__PURE__ */ jsx10(Fragment2, { children: /* @__PURE__ */ jsxs5(
2090
- "div",
2091
- {
2092
- className: "relative flex items-start justify-center gap-3 border-b p-6",
2093
- "data-testid": `notification-${notification.id}`,
2094
- children: [
2095
- /* @__PURE__ */ jsx10(
2096
- "div",
2097
- {
2098
- className: "text-ui-fg-muted flex size-5 items-center justify-center",
2099
- "data-testid": `notification-${notification.id}-icon`,
2100
- children: /* @__PURE__ */ jsx10(InformationCircleSolid, {})
2101
- }
2102
- ),
2103
- /* @__PURE__ */ jsxs5(
2104
- "div",
2105
- {
2106
- className: "flex w-full flex-col gap-y-3",
2107
- "data-testid": `notification-${notification.id}-content`,
2108
- children: [
2109
- /* @__PURE__ */ jsxs5(
2110
- "div",
2111
- {
2112
- className: "flex flex-col",
2113
- "data-testid": `notification-${notification.id}-header`,
2114
- children: [
2115
- /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between", children: [
2116
- /* @__PURE__ */ jsx10(
2117
- Text4,
2118
- {
2119
- size: "small",
2120
- leading: "compact",
2121
- weight: "plus",
2122
- "data-testid": `notification-${notification.id}-title`,
2123
- children: data.title
2124
- }
2125
- ),
2126
- /* @__PURE__ */ jsxs5(
2127
- "div",
2128
- {
2129
- className: "align-center flex items-center justify-center gap-2",
2130
- "data-testid": `notification-${notification.id}-meta`,
2131
- children: [
2132
- /* @__PURE__ */ jsx10(
2133
- Text4,
2134
- {
2135
- as: "span",
2136
- className: clx3("text-ui-fg-subtle", {
2137
- "text-ui-fg-base": unread
2138
- }),
2139
- size: "small",
2140
- leading: "compact",
2141
- weight: "plus",
2142
- "data-testid": `notification-${notification.id}-time`,
2143
- children: formatDistance(notification.created_at, /* @__PURE__ */ new Date(), {
2144
- addSuffix: true
2145
- })
2146
- }
2147
- ),
2148
- unread && /* @__PURE__ */ jsx10(
2149
- "div",
2150
- {
2151
- className: "bg-ui-bg-interactive h-2 w-2 rounded",
2152
- role: "status",
2153
- "data-testid": `notification-${notification.id}-unread-indicator`
2154
- }
2155
- )
2156
- ]
2157
- }
2158
- )
2159
- ] }),
2160
- !!data.description && /* @__PURE__ */ jsx10(
2161
- Text4,
2162
- {
2163
- className: "text-ui-fg-subtle whitespace-pre-line",
2164
- size: "small",
2165
- "data-testid": `notification-${notification.id}-description`,
2166
- children: data.description
2167
- }
2168
- )
2169
- ]
2170
- }
2171
- ),
2172
- !!data?.file?.url && /* @__PURE__ */ jsx10(
2173
- FilePreview,
2174
- {
2175
- filename: data.file.filename ?? "",
2176
- url: data.file.url,
2177
- hideThumbnail: true,
2178
- "data-testid": `notification-${notification.id}-file`
2179
- }
2180
- )
2181
- ]
2182
- }
2183
- )
2184
- ]
2185
- }
2186
- ) });
2187
- };
2188
- var NotificationsEmptyState = ({ t: t2 }) => {
2189
- return /* @__PURE__ */ jsxs5(
2190
- "div",
2191
- {
2192
- className: "flex h-full flex-col items-center justify-center",
2193
- "data-testid": "notifications-empty-state",
2194
- children: [
2195
- /* @__PURE__ */ jsx10(BellAlertDone, { "data-testid": "notifications-empty-icon" }),
2196
- /* @__PURE__ */ jsx10(
2197
- Text4,
2198
- {
2199
- size: "small",
2200
- leading: "compact",
2201
- weight: "plus",
2202
- className: "mt-3",
2203
- "data-testid": "notifications-empty-title",
2204
- children: t2("notifications.emptyState.title")
2205
- }
2206
- ),
2207
- /* @__PURE__ */ jsx10(
2208
- Text4,
2209
- {
2210
- size: "small",
2211
- className: "text-ui-fg-muted mt-1 max-w-[294px] text-center",
2212
- "data-testid": "notifications-empty-description",
2213
- children: t2("notifications.emptyState.description")
2214
- }
2215
- )
2216
- ]
2217
- }
2218
- );
2219
- };
2220
- var useUnreadNotifications = () => {
2221
- const [hasUnread, setHasUnread] = useState9(false);
2222
- const { notifications } = useNotifications(
2223
- { limit: 1, offset: 0, fields: "created_at" },
2224
- { refetchInterval: 6e4 }
2225
- );
2226
- const lastNotification = notifications?.[0];
2227
- useEffect8(() => {
2228
- if (!lastNotification) {
2229
- return;
2230
- }
2231
- const lastNotificationAsTimestamp = Date.parse(lastNotification.created_at);
2232
- const lastReadDatetime = localStorage.getItem(LAST_READ_NOTIFICATION_KEY);
2233
- const lastReadAsTimestamp = lastReadDatetime ? Date.parse(lastReadDatetime) : 0;
2234
- if (lastNotificationAsTimestamp > lastReadAsTimestamp) {
2235
- setHasUnread(true);
2236
- }
2237
- }, [lastNotification]);
2238
- return [hasUnread, setHasUnread];
2239
- };
2240
-
2241
1823
  // src/components/layout/shell/shell.tsx
2242
- import { jsx as jsx11, jsxs as jsxs6 } from "react/jsx-runtime";
1824
+ import { jsx as jsx8, jsxs as jsxs4 } from "react/jsx-runtime";
2243
1825
  var Shell = ({ children }) => {
2244
1826
  const globalShortcuts = useGlobalShortcuts();
2245
1827
  const navigation2 = useNavigation();
2246
1828
  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 }),
2249
- /* @__PURE__ */ jsxs6("div", { children: [
2250
- /* @__PURE__ */ jsx11(MobileSidebarContainer, { children }),
2251
- /* @__PURE__ */ jsx11(DesktopSidebarContainer, { children })
1829
+ return /* @__PURE__ */ jsx8(KeybindProvider, { shortcuts: globalShortcuts, children: /* @__PURE__ */ jsxs4("div", { className: "relative flex h-screen flex-col items-start overflow-hidden lg:flex-row", children: [
1830
+ /* @__PURE__ */ jsx8(NavigationBar, { loading }),
1831
+ /* @__PURE__ */ jsxs4("div", { children: [
1832
+ /* @__PURE__ */ jsx8(MobileSidebarContainer, { children }),
1833
+ /* @__PURE__ */ jsx8(DesktopSidebarContainer, { children })
2252
1834
  ] }),
2253
- /* @__PURE__ */ jsxs6("div", { className: "flex h-screen w-full flex-col overflow-auto", children: [
2254
- /* @__PURE__ */ jsx11(Topbar, {}),
2255
- /* @__PURE__ */ jsx11(
1835
+ /* @__PURE__ */ jsxs4("div", { className: "flex h-screen w-full flex-col overflow-auto", children: [
1836
+ /* @__PURE__ */ jsx8(Topbar, {}),
1837
+ /* @__PURE__ */ jsx8(
2256
1838
  "main",
2257
1839
  {
2258
- className: clx4(
1840
+ className: clx3(
2259
1841
  "flex h-full w-full flex-col items-center overflow-y-auto transition-opacity delay-200 duration-200",
2260
1842
  {
2261
1843
  "opacity-25": loading
2262
1844
  }
2263
1845
  ),
2264
- children: /* @__PURE__ */ jsx11(Gutter, { children: /* @__PURE__ */ jsx11(Outlet2, {}) })
1846
+ children: /* @__PURE__ */ jsx8(Gutter, { children: /* @__PURE__ */ jsx8(Outlet2, {}) })
2265
1847
  }
2266
1848
  )
2267
1849
  ] })
2268
1850
  ] }) });
2269
1851
  };
2270
1852
  var NavigationBar = ({ loading }) => {
2271
- const [showBar, setShowBar] = useState10(false);
2272
- useEffect9(() => {
1853
+ const [showBar, setShowBar] = useState8(false);
1854
+ useEffect7(() => {
2273
1855
  let timeout;
2274
1856
  if (loading) {
2275
1857
  timeout = setTimeout(() => {
@@ -2282,10 +1864,10 @@ var NavigationBar = ({ loading }) => {
2282
1864
  clearTimeout(timeout);
2283
1865
  };
2284
1866
  }, [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 }) });
1867
+ return /* @__PURE__ */ jsx8("div", { className: "fixed inset-x-0 top-0 z-50 h-1", children: /* @__PURE__ */ jsx8(AnimatePresence, { children: showBar ? /* @__PURE__ */ jsx8(ProgressBar, {}) : null }) });
2286
1868
  };
2287
1869
  var Gutter = ({ children }) => {
2288
- return /* @__PURE__ */ jsx11("div", { className: "flex w-full max-w-[1600px] flex-col gap-y-2 p-3", children });
1870
+ return /* @__PURE__ */ jsx8("div", { className: "flex w-full max-w-[1600px] flex-col gap-y-2 p-3", children });
2289
1871
  };
2290
1872
  var Breadcrumbs = () => {
2291
1873
  const matches = useMatches();
@@ -2304,29 +1886,29 @@ var Breadcrumbs = () => {
2304
1886
  path: match.pathname
2305
1887
  };
2306
1888
  }).filter(Boolean);
2307
- return /* @__PURE__ */ jsx11(
1889
+ return /* @__PURE__ */ jsx8(
2308
1890
  "ol",
2309
1891
  {
2310
- className: clx4(
1892
+ className: clx3(
2311
1893
  "text-ui-fg-muted txt-compact-small-plus flex select-none items-center"
2312
1894
  ),
2313
1895
  children: crumbs.map((crumb, index) => {
2314
1896
  const isLast = index === crumbs.length - 1;
2315
1897
  const isSingle = crumbs.length === 1;
2316
- return /* @__PURE__ */ jsxs6("li", { className: clx4("flex items-center"), children: [
2317
- !isLast ? /* @__PURE__ */ jsx11(
1898
+ return /* @__PURE__ */ jsxs4("li", { className: clx3("flex items-center"), children: [
1899
+ !isLast ? /* @__PURE__ */ jsx8(
2318
1900
  Link,
2319
1901
  {
2320
1902
  className: "transition-fg hover:text-ui-fg-subtle",
2321
1903
  to: crumb.path,
2322
1904
  children: crumb.label
2323
1905
  }
2324
- ) : /* @__PURE__ */ jsxs6("div", { children: [
2325
- !isSingle && /* @__PURE__ */ jsx11("span", { className: "block lg:hidden", children: "..." }),
2326
- /* @__PURE__ */ jsx11(
1906
+ ) : /* @__PURE__ */ jsxs4("div", { children: [
1907
+ !isSingle && /* @__PURE__ */ jsx8("span", { className: "block lg:hidden", children: "..." }),
1908
+ /* @__PURE__ */ jsx8(
2327
1909
  "span",
2328
1910
  {
2329
- className: clx4({
1911
+ className: clx3({
2330
1912
  "hidden lg:block": !isSingle
2331
1913
  }),
2332
1914
  children: crumb.label
@@ -2334,91 +1916,95 @@ var Breadcrumbs = () => {
2334
1916
  index
2335
1917
  )
2336
1918
  ] }),
2337
- !isLast && /* @__PURE__ */ jsx11("span", { className: "mx-2", children: /* @__PURE__ */ jsx11(TriangleRightMini, { className: "rtl:rotate-180" }) })
1919
+ !isLast && /* @__PURE__ */ jsx8("span", { className: "mx-2", children: /* @__PURE__ */ jsx8(TriangleRightMini, { className: "rtl:rotate-180" }) })
2338
1920
  ] }, index);
2339
1921
  })
2340
1922
  }
2341
1923
  );
2342
1924
  };
2343
1925
  var ToggleSidebar = () => {
2344
- const { toggle } = useSidebar();
2345
- return /* @__PURE__ */ jsxs6("div", { children: [
2346
- /* @__PURE__ */ jsx11(
2347
- IconButton4,
1926
+ const { toggle, state } = useSidebar();
1927
+ return /* @__PURE__ */ jsxs4("div", { children: [
1928
+ /* @__PURE__ */ jsx8(
1929
+ IconButton2,
2348
1930
  {
2349
1931
  className: "hidden lg:flex",
2350
1932
  variant: "transparent",
2351
1933
  onClick: () => toggle("desktop"),
2352
1934
  size: "small",
2353
- children: /* @__PURE__ */ jsx11(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
1935
+ "aria-expanded": state === "expanded",
1936
+ children: /* @__PURE__ */ jsx8(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
2354
1937
  }
2355
1938
  ),
2356
- /* @__PURE__ */ jsx11(
2357
- IconButton4,
1939
+ /* @__PURE__ */ jsx8(
1940
+ IconButton2,
2358
1941
  {
2359
1942
  className: "hidden max-lg:flex",
2360
1943
  variant: "transparent",
2361
1944
  onClick: () => toggle("mobile"),
2362
1945
  size: "small",
2363
- children: /* @__PURE__ */ jsx11(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
1946
+ children: /* @__PURE__ */ jsx8(SidebarLeft, { className: "text-ui-fg-muted rtl:rotate-180" })
2364
1947
  }
2365
1948
  )
2366
1949
  ] });
2367
1950
  };
2368
1951
  var Topbar = () => {
2369
- return /* @__PURE__ */ jsxs6("div", { className: "grid w-full grid-cols-2 border-b p-3", children: [
2370
- /* @__PURE__ */ jsxs6("div", { className: "flex items-center gap-x-1.5", children: [
2371
- /* @__PURE__ */ jsx11(ToggleSidebar, {}),
2372
- /* @__PURE__ */ jsx11(Breadcrumbs, {})
1952
+ return /* @__PURE__ */ jsxs4("div", { className: "grid w-full grid-cols-2 border-b p-3", children: [
1953
+ /* @__PURE__ */ jsxs4("div", { className: "flex items-center gap-x-1.5", children: [
1954
+ /* @__PURE__ */ jsx8(ToggleSidebar, {}),
1955
+ /* @__PURE__ */ jsx8(Breadcrumbs, {})
2373
1956
  ] }),
2374
- /* @__PURE__ */ jsx11("div", { className: "flex items-center justify-end gap-x-3", children: /* @__PURE__ */ jsx11(Notifications, {}) })
1957
+ /* @__PURE__ */ jsx8("div", { className: "flex items-center justify-end gap-x-3", children: /* @__PURE__ */ jsx8(WidgetZone, { id: "topbar" }) })
2375
1958
  ] });
2376
1959
  };
2377
1960
  var DesktopSidebarContainer = ({ children }) => {
2378
- const { desktop } = useSidebar();
2379
- return /* @__PURE__ */ jsx11(
1961
+ const { state } = useSidebar();
1962
+ return /* @__PURE__ */ jsx8(
2380
1963
  "div",
2381
1964
  {
2382
- className: clx4("hidden h-screen w-[220px] border-e", {
2383
- "lg:flex": desktop
2384
- }),
1965
+ "data-state": state,
1966
+ className: clx3(
1967
+ "group/sidebar hidden h-screen w-[220px] shrink-0 overflow-x-hidden border-e lg:flex",
1968
+ "transition-[width] duration-200 ease-sidebar motion-reduce:transition-none",
1969
+ "data-[state=collapsed]:w-[52px]"
1970
+ ),
2385
1971
  children
2386
1972
  }
2387
1973
  );
2388
1974
  };
2389
1975
  var MobileSidebarContainer = ({ children }) => {
2390
- const { t: t2 } = useTranslation6();
1976
+ const { t: t2 } = useTranslation5();
2391
1977
  const { mobile, toggle } = useSidebar();
2392
- return /* @__PURE__ */ jsx11(RadixDialog2.Root, { open: mobile, onOpenChange: () => toggle("mobile"), children: /* @__PURE__ */ jsxs6(RadixDialog2.Portal, { children: [
2393
- /* @__PURE__ */ jsx11(
1978
+ return /* @__PURE__ */ jsx8(RadixDialog2.Root, { open: mobile, onOpenChange: () => toggle("mobile"), children: /* @__PURE__ */ jsxs4(RadixDialog2.Portal, { children: [
1979
+ /* @__PURE__ */ jsx8(
2394
1980
  RadixDialog2.Overlay,
2395
1981
  {
2396
- className: clx4(
1982
+ className: clx3(
2397
1983
  "bg-ui-bg-overlay fixed inset-0",
2398
1984
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0"
2399
1985
  )
2400
1986
  }
2401
1987
  ),
2402
- /* @__PURE__ */ jsxs6(
1988
+ /* @__PURE__ */ jsxs4(
2403
1989
  RadixDialog2.Content,
2404
1990
  {
2405
- className: clx4(
1991
+ className: clx3(
2406
1992
  "bg-ui-bg-subtle shadow-elevation-modal fixed inset-y-2 start-2 flex w-full max-w-[304px] flex-col overflow-hidden rounded-lg border-r",
2407
1993
  "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:slide-out-to-start-1/2 data-[state=open]:slide-in-from-start-1/2 duration-200"
2408
1994
  ),
2409
1995
  children: [
2410
- /* @__PURE__ */ jsxs6("div", { className: "p-3", children: [
2411
- /* @__PURE__ */ jsx11(RadixDialog2.Close, { asChild: true, children: /* @__PURE__ */ jsx11(
2412
- IconButton4,
1996
+ /* @__PURE__ */ jsxs4("div", { className: "p-3", children: [
1997
+ /* @__PURE__ */ jsx8(RadixDialog2.Close, { asChild: true, children: /* @__PURE__ */ jsx8(
1998
+ IconButton2,
2413
1999
  {
2414
2000
  size: "small",
2415
2001
  variant: "transparent",
2416
2002
  className: "text-ui-fg-subtle",
2417
- children: /* @__PURE__ */ jsx11(XMark, {})
2003
+ children: /* @__PURE__ */ jsx8(XMark, {})
2418
2004
  }
2419
2005
  ) }),
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") })
2006
+ /* @__PURE__ */ jsx8(RadixDialog2.Title, { className: "sr-only", children: t2("app.nav.accessibility.title") }),
2007
+ /* @__PURE__ */ jsx8(RadixDialog2.Description, { className: "sr-only", children: t2("app.nav.accessibility.description") })
2422
2008
  ] }),
2423
2009
  children
2424
2010
  ]
@@ -2441,58 +2027,58 @@ import {
2441
2027
  import {
2442
2028
  Avatar,
2443
2029
  DropdownMenu as DropdownMenu2,
2444
- Heading as Heading2,
2445
- IconButton as IconButton5,
2030
+ Heading,
2031
+ IconButton as IconButton3,
2446
2032
  Input,
2447
2033
  Kbd as Kbd3,
2448
- Text as Text5,
2449
- clx as clx5
2034
+ Text as Text3,
2035
+ clx as clx4
2450
2036
  } from "@medusajs/ui";
2451
2037
  import { Dialog as RadixDialog3 } from "radix-ui";
2452
- 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";
2038
+ import { useTranslation as useTranslation6 } from "react-i18next";
2039
+ import { useState as useState9 } from "react";
2040
+ import { Link as Link2, useLocation as useLocation4, useNavigate as useNavigate3 } from "react-router-dom";
2041
+ import { jsx as jsx9, jsxs as jsxs5 } from "react/jsx-runtime";
2456
2042
  var UserMenu = () => {
2457
- const { t: t2 } = useTranslation7();
2458
- const location = useLocation5();
2043
+ const { t: t2 } = useTranslation6();
2044
+ const location = useLocation4();
2459
2045
  const direction = useDocumentDirection();
2460
- const [openMenu, setOpenMenu] = useState11(false);
2461
- const [openModal, setOpenModal] = useState11(false);
2046
+ const [openMenu, setOpenMenu] = useState9(false);
2047
+ const [openModal, setOpenModal] = useState9(false);
2462
2048
  const toggleModal = () => {
2463
2049
  setOpenMenu(false);
2464
2050
  setOpenModal(!openModal);
2465
2051
  };
2466
- return /* @__PURE__ */ jsxs7("div", { "data-testid": "sidebar-user-menu", children: [
2467
- /* @__PURE__ */ jsxs7(DropdownMenu2, { dir: direction, open: openMenu, onOpenChange: setOpenMenu, "data-testid": "sidebar-user-menu-dropdown", children: [
2468
- /* @__PURE__ */ jsx12(UserBadge, {}),
2469
- /* @__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" }),
2052
+ return /* @__PURE__ */ jsxs5("div", { "data-testid": "sidebar-user-menu", children: [
2053
+ /* @__PURE__ */ jsxs5(DropdownMenu2, { dir: direction, open: openMenu, onOpenChange: setOpenMenu, "data-testid": "sidebar-user-menu-dropdown", children: [
2054
+ /* @__PURE__ */ jsx9(UserBadge, {}),
2055
+ /* @__PURE__ */ jsxs5(DropdownMenu2.Content, { className: "min-w-[var(--radix-dropdown-menu-trigger-width)] max-w-[var(--radix-dropdown-menu-trigger-width)]", "data-testid": "sidebar-user-menu-content", children: [
2056
+ /* @__PURE__ */ jsx9(UserItem, {}),
2057
+ /* @__PURE__ */ jsx9(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-1" }),
2058
+ /* @__PURE__ */ jsx9(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-profile-settings", children: /* @__PURE__ */ jsxs5(Link2, { to: "/settings/profile", state: { from: location.pathname }, children: [
2059
+ /* @__PURE__ */ jsx9(UserIcon, { className: "text-ui-fg-subtle me-2" }),
2474
2060
  t2("app.menus.user.profileSettings")
2475
2061
  ] }) }),
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" }),
2062
+ /* @__PURE__ */ jsx9(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-2" }),
2063
+ /* @__PURE__ */ jsx9(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-documentation", children: /* @__PURE__ */ jsxs5(Link2, { to: "https://docs.mercurjs.com/welcome", target: "_blank", children: [
2064
+ /* @__PURE__ */ jsx9(BookOpen, { className: "text-ui-fg-subtle me-2" }),
2479
2065
  t2("app.menus.user.documentation")
2480
2066
  ] }) }),
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" }),
2067
+ /* @__PURE__ */ jsx9(DropdownMenu2.Item, { asChild: true, "data-testid": "sidebar-user-menu-changelog", children: /* @__PURE__ */ jsxs5(Link2, { to: "https://www.mercurjs.com/updates", target: "_blank", children: [
2068
+ /* @__PURE__ */ jsx9(TimelineVertical, { className: "text-ui-fg-subtle me-2" }),
2483
2069
  t2("app.menus.user.changelog")
2484
2070
  ] }) }),
2485
- /* @__PURE__ */ jsx12(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-3" }),
2486
- /* @__PURE__ */ jsxs7(DropdownMenu2.Item, { onClick: toggleModal, "data-testid": "sidebar-user-menu-shortcuts", children: [
2487
- /* @__PURE__ */ jsx12(Keyboard, { className: "text-ui-fg-subtle me-2" }),
2071
+ /* @__PURE__ */ jsx9(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-3" }),
2072
+ /* @__PURE__ */ jsxs5(DropdownMenu2.Item, { onClick: toggleModal, "data-testid": "sidebar-user-menu-shortcuts", children: [
2073
+ /* @__PURE__ */ jsx9(Keyboard, { className: "text-ui-fg-subtle me-2" }),
2488
2074
  t2("app.menus.user.shortcuts")
2489
2075
  ] }),
2490
- /* @__PURE__ */ jsx12(ThemeToggle, {}),
2491
- /* @__PURE__ */ jsx12(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-4" }),
2492
- /* @__PURE__ */ jsx12(Logout, {})
2076
+ /* @__PURE__ */ jsx9(ThemeToggle, {}),
2077
+ /* @__PURE__ */ jsx9(DropdownMenu2.Separator, { "data-testid": "sidebar-user-menu-separator-4" }),
2078
+ /* @__PURE__ */ jsx9(Logout, {})
2493
2079
  ] })
2494
2080
  ] }),
2495
- /* @__PURE__ */ jsx12(GlobalKeybindsModal, { open: openModal, onOpenChange: setOpenModal })
2081
+ /* @__PURE__ */ jsx9(GlobalKeybindsModal, { open: openModal, onOpenChange: setOpenModal })
2496
2082
  ] });
2497
2083
  };
2498
2084
  var UserBadge = () => {
@@ -2501,19 +2087,19 @@ var UserBadge = () => {
2501
2087
  const displayName = name || user?.email;
2502
2088
  const fallback = displayName ? displayName[0].toUpperCase() : null;
2503
2089
  if (isPending) {
2504
- 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]" })
2090
+ return /* @__PURE__ */ jsxs5("button", { className: "shadow-borders-base flex max-w-[192px] select-none items-center gap-x-2 overflow-hidden text-ellipsis whitespace-nowrap rounded-full py-1 ps-1 pe-2.5", children: [
2091
+ /* @__PURE__ */ jsx9(Skeleton, { className: "h-5 w-5 rounded-full" }),
2092
+ /* @__PURE__ */ jsx9(Skeleton, { className: "h-[9px] w-[70px]" })
2507
2093
  ] });
2508
2094
  }
2509
2095
  if (isError) {
2510
2096
  throw error;
2511
2097
  }
2512
- return /* @__PURE__ */ jsx12("div", { className: "p-3", "data-testid": "sidebar-user-menu-badge", children: /* @__PURE__ */ jsxs7(
2098
+ return /* @__PURE__ */ jsx9("div", { className: "p-3", "data-testid": "sidebar-user-menu-badge", children: /* @__PURE__ */ jsxs5(
2513
2099
  DropdownMenu2.Trigger,
2514
2100
  {
2515
2101
  disabled: !user,
2516
- className: clx5(
2102
+ className: clx4(
2517
2103
  "bg-ui-bg-subtle grid w-full cursor-pointer grid-cols-[24px_1fr_15px] items-center gap-2 rounded-md py-1 ps-0.5 pe-2 outline-none",
2518
2104
  "hover:bg-ui-bg-subtle-hover",
2519
2105
  "data-[state=open]:bg-ui-bg-subtle-hover",
@@ -2521,9 +2107,9 @@ var UserBadge = () => {
2521
2107
  ),
2522
2108
  "data-testid": "sidebar-user-menu-trigger",
2523
2109
  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(
2526
- Text5,
2110
+ /* @__PURE__ */ jsx9("div", { className: "flex size-6 shrink-0 items-center justify-center", "data-testid": "sidebar-user-menu-avatar-container", children: fallback ? /* @__PURE__ */ jsx9(Avatar, { size: "xsmall", fallback, "data-testid": "sidebar-user-menu-avatar" }) : /* @__PURE__ */ jsx9(Skeleton, { className: "h-6 w-6 rounded-full" }) }),
2111
+ /* @__PURE__ */ jsx9("div", { className: clx4("flex items-center overflow-hidden whitespace-nowrap", SIDEBAR_RAIL_FADE), "data-testid": "sidebar-user-menu-name-container", children: displayName ? /* @__PURE__ */ jsx9(
2112
+ Text3,
2527
2113
  {
2528
2114
  size: "xsmall",
2529
2115
  weight: "plus",
@@ -2532,22 +2118,22 @@ var UserBadge = () => {
2532
2118
  "data-testid": "sidebar-user-menu-name",
2533
2119
  children: displayName
2534
2120
  }
2535
- ) : /* @__PURE__ */ jsx12(Skeleton, { className: "h-[9px] w-[70px]" }) }),
2536
- /* @__PURE__ */ jsx12(EllipsisHorizontal, { className: "text-ui-fg-muted" })
2121
+ ) : /* @__PURE__ */ jsx9(Skeleton, { className: "h-[9px] w-[70px]" }) }),
2122
+ /* @__PURE__ */ jsx9(EllipsisHorizontal, { className: clx4("text-ui-fg-muted", SIDEBAR_RAIL_FADE) })
2537
2123
  ]
2538
2124
  }
2539
2125
  ) });
2540
2126
  };
2541
2127
  var ThemeToggle = () => {
2542
- const { t: t2 } = useTranslation7();
2128
+ const { t: t2 } = useTranslation6();
2543
2129
  const { theme, setTheme } = useTheme();
2544
- return /* @__PURE__ */ jsxs7(DropdownMenu2.SubMenu, { "data-testid": "sidebar-user-menu-theme-toggle", children: [
2545
- /* @__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") })
2130
+ return /* @__PURE__ */ jsxs5(DropdownMenu2.SubMenu, { "data-testid": "sidebar-user-menu-theme-toggle", children: [
2131
+ /* @__PURE__ */ jsxs5(DropdownMenu2.SubMenuTrigger, { dir: "ltr", className: "rounded-md rtl:rotate-180", "data-testid": "sidebar-user-menu-theme-trigger", children: [
2132
+ /* @__PURE__ */ jsx9(CircleHalfSolid, { className: "text-ui-fg-subtle me-2" }),
2133
+ /* @__PURE__ */ jsx9("span", { className: "rtl:rotate-180", children: t2("app.menus.user.theme.label") })
2548
2134
  ] }),
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(
2135
+ /* @__PURE__ */ jsx9(DropdownMenu2.SubMenuContent, { "data-testid": "sidebar-user-menu-theme-content", children: /* @__PURE__ */ jsxs5(DropdownMenu2.RadioGroup, { value: theme, "data-testid": "sidebar-user-menu-theme-radio-group", children: [
2136
+ /* @__PURE__ */ jsx9(
2551
2137
  DropdownMenu2.RadioItem,
2552
2138
  {
2553
2139
  value: "system",
@@ -2559,7 +2145,7 @@ var ThemeToggle = () => {
2559
2145
  children: t2("app.menus.user.theme.system")
2560
2146
  }
2561
2147
  ),
2562
- /* @__PURE__ */ jsx12(
2148
+ /* @__PURE__ */ jsx9(
2563
2149
  DropdownMenu2.RadioItem,
2564
2150
  {
2565
2151
  value: "light",
@@ -2571,7 +2157,7 @@ var ThemeToggle = () => {
2571
2157
  children: t2("app.menus.user.theme.light")
2572
2158
  }
2573
2159
  ),
2574
- /* @__PURE__ */ jsx12(
2160
+ /* @__PURE__ */ jsx9(
2575
2161
  DropdownMenu2.RadioItem,
2576
2162
  {
2577
2163
  value: "dark",
@@ -2587,7 +2173,7 @@ var ThemeToggle = () => {
2587
2173
  ] });
2588
2174
  };
2589
2175
  var Logout = () => {
2590
- const { t: t2 } = useTranslation7();
2176
+ const { t: t2 } = useTranslation6();
2591
2177
  const navigate = useNavigate3();
2592
2178
  const { mutateAsync: logoutMutation } = useLogout();
2593
2179
  const handleLogout = async () => {
@@ -2598,33 +2184,33 @@ var Logout = () => {
2598
2184
  }
2599
2185
  });
2600
2186
  };
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") })
2187
+ return /* @__PURE__ */ jsx9(DropdownMenu2.Item, { onClick: handleLogout, "data-testid": "sidebar-user-menu-logout", children: /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-2", children: [
2188
+ /* @__PURE__ */ jsx9(OpenRectArrowOut, { className: "text-ui-fg-subtle" }),
2189
+ /* @__PURE__ */ jsx9("span", { children: t2("app.menus.actions.logout") })
2604
2190
  ] }) });
2605
2191
  };
2606
2192
  var GlobalKeybindsModal = (props) => {
2607
- const { t: t2 } = useTranslation7();
2193
+ const { t: t2 } = useTranslation6();
2608
2194
  const globalShortcuts = useGlobalShortcuts();
2609
- const [searchValue, onSearchValueChange] = useState11("");
2195
+ const [searchValue, onSearchValueChange] = useState9("");
2610
2196
  const searchResults = searchValue ? globalShortcuts.filter((shortcut) => {
2611
2197
  return shortcut.label.toLowerCase().includes(searchValue?.toLowerCase());
2612
2198
  }) : 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" }),
2615
- /* @__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
- /* @__PURE__ */ jsxs7("div", { className: "flex flex-col gap-y-3 px-6 py-4", "data-testid": "shortcuts-modal-header", children: [
2617
- /* @__PURE__ */ jsxs7("div", { className: "flex items-center justify-between", "data-testid": "shortcuts-modal-header-top", children: [
2618
- /* @__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" })
2199
+ return /* @__PURE__ */ jsx9(RadixDialog3.Root, { ...props, "data-testid": "shortcuts-modal", children: /* @__PURE__ */ jsxs5(RadixDialog3.Portal, { children: [
2200
+ /* @__PURE__ */ jsx9(RadixDialog3.Overlay, { className: "bg-ui-bg-overlay fixed inset-0", "data-testid": "shortcuts-modal-overlay" }),
2201
+ /* @__PURE__ */ jsxs5(RadixDialog3.Content, { className: "bg-ui-bg-subtle shadow-elevation-modal fixed left-[50%] top-[50%] flex h-full max-h-[612px] w-full max-w-[560px] translate-x-[-50%] translate-y-[-50%] flex-col divide-y overflow-hidden rounded-lg", "data-testid": "shortcuts-modal-content", children: [
2202
+ /* @__PURE__ */ jsxs5("div", { className: "flex flex-col gap-y-3 px-6 py-4", "data-testid": "shortcuts-modal-header", children: [
2203
+ /* @__PURE__ */ jsxs5("div", { className: "flex items-center justify-between", "data-testid": "shortcuts-modal-header-top", children: [
2204
+ /* @__PURE__ */ jsxs5("div", { "data-testid": "shortcuts-modal-title-container", children: [
2205
+ /* @__PURE__ */ jsx9(RadixDialog3.Title, { asChild: true, children: /* @__PURE__ */ jsx9(Heading, { "data-testid": "shortcuts-modal-title", children: t2("app.menus.user.shortcuts") }) }),
2206
+ /* @__PURE__ */ jsx9(RadixDialog3.Description, { className: "sr-only", "data-testid": "shortcuts-modal-description" })
2621
2207
  ] }),
2622
- /* @__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, {}) }) })
2208
+ /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-2", "data-testid": "shortcuts-modal-close-container", children: [
2209
+ /* @__PURE__ */ jsx9(Kbd3, { "data-testid": "shortcuts-modal-close-hint", children: "esc" }),
2210
+ /* @__PURE__ */ jsx9(RadixDialog3.Close, { asChild: true, children: /* @__PURE__ */ jsx9(IconButton3, { variant: "transparent", size: "small", "data-testid": "shortcuts-modal-close-button", children: /* @__PURE__ */ jsx9(XMark2, {}) }) })
2625
2211
  ] })
2626
2212
  ] }),
2627
- /* @__PURE__ */ jsx12("div", { "data-testid": "shortcuts-modal-search-container", children: /* @__PURE__ */ jsx12(
2213
+ /* @__PURE__ */ jsx9("div", { "data-testid": "shortcuts-modal-search-container", children: /* @__PURE__ */ jsx9(
2628
2214
  Input,
2629
2215
  {
2630
2216
  type: "search",
@@ -2634,18 +2220,18 @@ var GlobalKeybindsModal = (props) => {
2634
2220
  }
2635
2221
  ) })
2636
2222
  ] }),
2637
- /* @__PURE__ */ jsx12("div", { className: "flex flex-col divide-y overflow-y-auto", "data-testid": "shortcuts-modal-list", children: searchResults.map((shortcut, index) => {
2638
- return /* @__PURE__ */ jsxs7(
2223
+ /* @__PURE__ */ jsx9("div", { className: "flex flex-col divide-y overflow-y-auto", "data-testid": "shortcuts-modal-list", children: searchResults.map((shortcut, index) => {
2224
+ return /* @__PURE__ */ jsxs5(
2639
2225
  "div",
2640
2226
  {
2641
2227
  className: "text-ui-fg-subtle flex items-center justify-between px-6 py-3",
2642
2228
  "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}`,
2643
2229
  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) => {
2646
- 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") })
2230
+ /* @__PURE__ */ jsx9(Text3, { size: "small", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-label`, children: shortcut.label }),
2231
+ /* @__PURE__ */ jsx9("div", { className: "flex items-center gap-x-1", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-keys`, children: shortcut.keys.Mac?.map((key, index2) => {
2232
+ return /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-1", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-key-${index2}`, children: [
2233
+ /* @__PURE__ */ jsx9(Kbd3, { "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-kbd-${index2}`, children: key }),
2234
+ index2 < (shortcut.keys.Mac?.length || 0) - 1 && /* @__PURE__ */ jsx9("span", { className: "txt-compact-xsmall text-ui-fg-subtle", "data-testid": `shortcut-item-${shortcut.label.toLowerCase().replace(/\s/g, "-")}-separator-${index2}`, children: t2("app.keyboardShortcuts.then") })
2649
2235
  ] }, index2);
2650
2236
  }) })
2651
2237
  ]
@@ -2660,7 +2246,7 @@ var UserItem = () => {
2660
2246
  const { user, isPending, isError, error } = useMe();
2661
2247
  const loaded = !isPending && !!user;
2662
2248
  if (!loaded) {
2663
- return /* @__PURE__ */ jsx12("div", {});
2249
+ return /* @__PURE__ */ jsx9("div", {});
2664
2250
  }
2665
2251
  const name = [user.first_name, user.last_name].filter(Boolean).join(" ");
2666
2252
  const email = user.email;
@@ -2669,8 +2255,8 @@ var UserItem = () => {
2669
2255
  if (isError) {
2670
2256
  throw error;
2671
2257
  }
2672
- 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(
2258
+ return /* @__PURE__ */ jsxs5("div", { className: "flex items-center gap-x-3 overflow-hidden px-2 py-1", "data-testid": "sidebar-user-menu-item", children: [
2259
+ /* @__PURE__ */ jsx9(
2674
2260
  Avatar,
2675
2261
  {
2676
2262
  size: "small",
@@ -2680,9 +2266,9 @@ var UserItem = () => {
2680
2266
  "data-testid": "sidebar-user-menu-item-avatar"
2681
2267
  }
2682
2268
  ),
2683
- /* @__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(
2685
- Text5,
2269
+ /* @__PURE__ */ jsxs5("div", { className: "block w-full min-w-0 max-w-[187px] overflow-hidden whitespace-nowrap", "data-testid": "sidebar-user-menu-item-details", children: [
2270
+ /* @__PURE__ */ jsx9(
2271
+ Text3,
2686
2272
  {
2687
2273
  size: "small",
2688
2274
  weight: "plus",
@@ -2692,8 +2278,8 @@ var UserItem = () => {
2692
2278
  children: name || email
2693
2279
  }
2694
2280
  ),
2695
- !!name && /* @__PURE__ */ jsx12(
2696
- Text5,
2281
+ !!name && /* @__PURE__ */ jsx9(
2282
+ Text3,
2697
2283
  {
2698
2284
  size: "xsmall",
2699
2285
  leading: "compact",
@@ -2716,18 +2302,18 @@ import {
2716
2302
 
2717
2303
  // src/components/utilities/error-boundary/error-boundary.tsx
2718
2304
  import { ExclamationCircle } from "@medusajs/icons";
2719
- import { Text as Text6 } from "@medusajs/ui";
2720
- 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";
2305
+ import { Text as Text4 } from "@medusajs/ui";
2306
+ import { useTranslation as useTranslation7 } from "react-i18next";
2307
+ import { Navigate as Navigate2, useLocation as useLocation5, useRouteError } from "react-router-dom";
2308
+ import { jsx as jsx10, jsxs as jsxs6 } from "react/jsx-runtime";
2723
2309
  var ErrorBoundary = () => {
2724
2310
  const error = useRouteError();
2725
- const location = useLocation6();
2726
- const { t: t2 } = useTranslation8();
2311
+ const location = useLocation5();
2312
+ const { t: t2 } = useTranslation7();
2727
2313
  let code = null;
2728
2314
  if (isClientError(error)) {
2729
2315
  if (error.status === 401) {
2730
- return /* @__PURE__ */ jsx13(Navigate2, { to: "/login", state: { from: location }, replace: true });
2316
+ return /* @__PURE__ */ jsx10(Navigate2, { to: "/login", state: { from: location }, replace: true });
2731
2317
  }
2732
2318
  code = error.status ?? null;
2733
2319
  }
@@ -2754,12 +2340,12 @@ var ErrorBoundary = () => {
2754
2340
  message = t2("errorBoundary.defaultMessage");
2755
2341
  break;
2756
2342
  }
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, {}),
2759
- /* @__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(
2762
- Text6,
2343
+ return /* @__PURE__ */ jsx10("div", { className: "flex size-full min-h-[calc(100vh-57px-24px)] items-center justify-center", children: /* @__PURE__ */ jsx10("div", { className: "flex flex-col gap-y-6", children: /* @__PURE__ */ jsxs6("div", { className: "text-ui-fg-subtle flex flex-col items-center gap-y-3", children: [
2344
+ /* @__PURE__ */ jsx10(ExclamationCircle, {}),
2345
+ /* @__PURE__ */ jsxs6("div", { className: "flex flex-col items-center justify-center gap-y-1", children: [
2346
+ /* @__PURE__ */ jsx10(Text4, { size: "small", leading: "compact", weight: "plus", children: title }),
2347
+ /* @__PURE__ */ jsx10(
2348
+ Text4,
2763
2349
  {
2764
2350
  size: "small",
2765
2351
  className: "text-ui-fg-muted text-balance text-center",
@@ -2962,7 +2548,7 @@ var ROUTE_PERMISSIONS = {
2962
2548
  var getRoutePermission = (path) => ROUTE_PERMISSIONS[path];
2963
2549
 
2964
2550
  // src/components/layout/main-layout/main-layout.tsx
2965
- import { jsx as jsx14, jsxs as jsxs9 } from "react/jsx-runtime";
2551
+ import { jsx as jsx11, jsxs as jsxs7 } from "react/jsx-runtime";
2966
2552
  var navId = (to) => to.replace(/^\//, "");
2967
2553
  var toCoreNavItem = (route) => ({
2968
2554
  id: navId(route.to),
@@ -2976,7 +2562,7 @@ var toCoreNavItem = (route) => ({
2976
2562
  }))
2977
2563
  });
2978
2564
  var MainLayout = () => {
2979
- return /* @__PURE__ */ jsx14(Shell, { children: /* @__PURE__ */ jsx14(MainSidebar, {}) });
2565
+ return /* @__PURE__ */ jsx11(Shell, { children: /* @__PURE__ */ jsx11(MainSidebar, {}) });
2980
2566
  };
2981
2567
  var allMenuItems = menuItemsModule.menuItems ?? [];
2982
2568
  var addNestedItems = (to, menuItems, items) => {
@@ -3019,50 +2605,50 @@ var MainSidebar = () => {
3019
2605
  const customRoutesWithNested = customMenuItems.sort((a, b) => (a.rank ?? 0) - (b.rank ?? 0)).map((item) => ({
3020
2606
  label: item.label,
3021
2607
  to: item.path,
3022
- icon: item.icon ? /* @__PURE__ */ jsx14(item.icon, {}) : void 0,
2608
+ icon: item.icon ? /* @__PURE__ */ jsx11(item.icon, {}) : void 0,
3023
2609
  translationNs: item.translationNs,
3024
2610
  items: addNestedItems(item.path, visibleMenuItems)
3025
2611
  }));
3026
- return /* @__PURE__ */ jsx14(
2612
+ return /* @__PURE__ */ jsx11(
3027
2613
  "aside",
3028
2614
  {
3029
- className: "flex flex-1 flex-col justify-between overflow-y-auto",
2615
+ className: "flex flex-1 flex-col justify-between overflow-y-auto overflow-x-hidden",
3030
2616
  "data-testid": "sidebar",
3031
- children: /* @__PURE__ */ jsxs9("div", { className: "flex flex-1 flex-col", children: [
3032
- /* @__PURE__ */ jsxs9(
2617
+ children: /* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col", children: [
2618
+ /* @__PURE__ */ jsxs7(
3033
2619
  "div",
3034
2620
  {
3035
2621
  className: "sticky top-0 bg-ui-bg-subtle",
3036
2622
  "data-testid": "sidebar-header-section",
3037
2623
  children: [
3038
- /* @__PURE__ */ jsx14(Header, {}),
3039
- /* @__PURE__ */ jsx14("div", { className: "px-3", children: /* @__PURE__ */ jsx14(Divider, { variant: "dashed" }) })
2624
+ /* @__PURE__ */ jsx11(Header, {}),
2625
+ /* @__PURE__ */ jsx11("div", { className: "px-3", children: /* @__PURE__ */ jsx11(Divider, { variant: "dashed" }) })
3040
2626
  ]
3041
2627
  }
3042
2628
  ),
3043
- /* @__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(
2629
+ /* @__PURE__ */ jsxs7("div", { className: "flex flex-1 flex-col justify-between", children: [
2630
+ /* @__PURE__ */ jsx11("div", { className: "flex flex-1 flex-col", children: /* @__PURE__ */ jsxs7(
3045
2631
  "nav",
3046
2632
  {
3047
2633
  className: "flex flex-col gap-y-1 py-3",
3048
2634
  "data-testid": "sidebar-core-routes",
3049
2635
  children: [
3050
- /* @__PURE__ */ jsx14(Searchbar, {}),
2636
+ /* @__PURE__ */ jsx11(Searchbar, {}),
3051
2637
  routesWithNested.map((route) => {
3052
- return /* @__PURE__ */ jsx14(NavItem, { ...route }, route.to);
2638
+ return /* @__PURE__ */ jsx11(NavItem, { ...route }, route.to);
3053
2639
  }),
3054
- customRoutesWithNested.map((route) => /* @__PURE__ */ jsx14(NavItem, { ...route }, route.to))
2640
+ customRoutesWithNested.map((route) => /* @__PURE__ */ jsx11(NavItem, { ...route }, route.to))
3055
2641
  ]
3056
2642
  }
3057
2643
  ) }),
3058
- /* @__PURE__ */ jsx14(UtilitySection, {})
2644
+ /* @__PURE__ */ jsx11(UtilitySection, {})
3059
2645
  ] }),
3060
- /* @__PURE__ */ jsx14(
2646
+ /* @__PURE__ */ jsx11(
3061
2647
  "div",
3062
2648
  {
3063
2649
  className: "sticky bottom-0 bg-ui-bg-subtle",
3064
2650
  "data-testid": "sidebar-user-section",
3065
- children: /* @__PURE__ */ jsx14(UserSection, {})
2651
+ children: /* @__PURE__ */ jsx11(UserSection, {})
3066
2652
  }
3067
2653
  )
3068
2654
  ] })
@@ -3070,7 +2656,7 @@ var MainSidebar = () => {
3070
2656
  );
3071
2657
  };
3072
2658
  var Logout2 = () => {
3073
- const { t: t2 } = useTranslation9();
2659
+ const { t: t2 } = useTranslation8();
3074
2660
  const navigate = useNavigate4();
3075
2661
  const { mutateAsync: logoutMutation } = useLogout();
3076
2662
  const handleLogout = async () => {
@@ -3081,20 +2667,20 @@ var Logout2 = () => {
3081
2667
  }
3082
2668
  });
3083
2669
  };
3084
- return /* @__PURE__ */ jsx14(
2670
+ return /* @__PURE__ */ jsx11(
3085
2671
  DropdownMenu3.Item,
3086
2672
  {
3087
2673
  onClick: handleLogout,
3088
2674
  "data-testid": "sidebar-header-dropdown-logout",
3089
- 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") })
2675
+ children: /* @__PURE__ */ jsxs7("div", { className: "flex items-center gap-x-2", children: [
2676
+ /* @__PURE__ */ jsx11(OpenRectArrowOut2, { className: "text-ui-fg-subtle" }),
2677
+ /* @__PURE__ */ jsx11("span", { children: t2("app.menus.actions.logout") })
3092
2678
  ] })
3093
2679
  }
3094
2680
  );
3095
2681
  };
3096
2682
  var Header = () => {
3097
- const { t: t2 } = useTranslation9();
2683
+ const { t: t2 } = useTranslation8();
3098
2684
  const { store, isPending, isError, error } = useStore();
3099
2685
  const direction = useDocumentDirection();
3100
2686
  const name = store?.name;
@@ -3103,12 +2689,12 @@ var Header = () => {
3103
2689
  if (isError) {
3104
2690
  throw error;
3105
2691
  }
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: [
3107
- /* @__PURE__ */ jsxs9(
2692
+ return /* @__PURE__ */ jsx11("div", { className: "w-full p-3", "data-testid": "sidebar-header-dropdown", children: /* @__PURE__ */ jsxs7(DropdownMenu3, { dir: direction, "data-testid": "sidebar-header-dropdown-menu", children: [
2693
+ /* @__PURE__ */ jsxs7(
3108
2694
  DropdownMenu3.Trigger,
3109
2695
  {
3110
2696
  disabled: !isLoaded,
3111
- className: clx6(
2697
+ className: clx5(
3112
2698
  "grid w-full grid-cols-[24px_1fr_15px] items-center gap-x-3 rounded-md bg-ui-bg-subtle p-0.5 pe-2 outline-none transition-fg",
3113
2699
  "hover:bg-ui-bg-subtle-hover",
3114
2700
  "data-[state=open]:bg-ui-bg-subtle-hover",
@@ -3116,7 +2702,7 @@ var Header = () => {
3116
2702
  ),
3117
2703
  "data-testid": "sidebar-header-dropdown-trigger",
3118
2704
  children: [
3119
- fallback ? /* @__PURE__ */ jsx14(
2705
+ fallback ? /* @__PURE__ */ jsx11(
3120
2706
  Avatar2,
3121
2707
  {
3122
2708
  variant: "squared",
@@ -3124,14 +2710,14 @@ var Header = () => {
3124
2710
  fallback,
3125
2711
  "data-testid": "sidebar-header-dropdown-avatar"
3126
2712
  }
3127
- ) : /* @__PURE__ */ jsx14(Skeleton, { className: "h-6 w-6 rounded-md" }),
3128
- /* @__PURE__ */ jsx14(
2713
+ ) : /* @__PURE__ */ jsx11(Skeleton, { className: "h-6 w-6 rounded-md" }),
2714
+ /* @__PURE__ */ jsx11(
3129
2715
  "div",
3130
2716
  {
3131
- className: "block overflow-hidden text-start",
2717
+ className: clx5("block overflow-hidden whitespace-nowrap text-start", SIDEBAR_RAIL_FADE),
3132
2718
  "data-testid": "sidebar-header-dropdown-store-name",
3133
- children: name ? /* @__PURE__ */ jsx14(
3134
- Text7,
2719
+ children: name ? /* @__PURE__ */ jsx11(
2720
+ Text5,
3135
2721
  {
3136
2722
  size: "small",
3137
2723
  weight: "plus",
@@ -3139,26 +2725,26 @@ var Header = () => {
3139
2725
  className: "truncate",
3140
2726
  children: store.name
3141
2727
  }
3142
- ) : /* @__PURE__ */ jsx14(Skeleton, { className: "h-[9px] w-[120px]" })
2728
+ ) : /* @__PURE__ */ jsx11(Skeleton, { className: "h-[9px] w-[120px]" })
3143
2729
  }
3144
2730
  ),
3145
- /* @__PURE__ */ jsx14(EllipsisHorizontal2, { className: "text-ui-fg-muted" })
2731
+ /* @__PURE__ */ jsx11(EllipsisHorizontal2, { className: clx5("text-ui-fg-muted", SIDEBAR_RAIL_FADE) })
3146
2732
  ]
3147
2733
  }
3148
2734
  ),
3149
- isLoaded && /* @__PURE__ */ jsxs9(
2735
+ isLoaded && /* @__PURE__ */ jsxs7(
3150
2736
  DropdownMenu3.Content,
3151
2737
  {
3152
2738
  className: "w-[var(--radix-dropdown-menu-trigger-width)] min-w-0",
3153
2739
  "data-testid": "sidebar-header-dropdown-content",
3154
2740
  children: [
3155
- /* @__PURE__ */ jsxs9(
2741
+ /* @__PURE__ */ jsxs7(
3156
2742
  "div",
3157
2743
  {
3158
2744
  className: "flex items-center gap-x-3 px-2 py-1",
3159
2745
  "data-testid": "sidebar-header-dropdown-user-info",
3160
2746
  children: [
3161
- /* @__PURE__ */ jsx14(
2747
+ /* @__PURE__ */ jsx11(
3162
2748
  Avatar2,
3163
2749
  {
3164
2750
  variant: "squared",
@@ -3167,14 +2753,14 @@ var Header = () => {
3167
2753
  "data-testid": "sidebar-header-dropdown-user-avatar"
3168
2754
  }
3169
2755
  ),
3170
- /* @__PURE__ */ jsxs9(
2756
+ /* @__PURE__ */ jsxs7(
3171
2757
  "div",
3172
2758
  {
3173
2759
  className: "flex flex-col overflow-hidden",
3174
2760
  "data-testid": "sidebar-header-dropdown-user-details",
3175
2761
  children: [
3176
- /* @__PURE__ */ jsx14(
3177
- Text7,
2762
+ /* @__PURE__ */ jsx11(
2763
+ Text5,
3178
2764
  {
3179
2765
  size: "small",
3180
2766
  weight: "plus",
@@ -3184,8 +2770,8 @@ var Header = () => {
3184
2770
  children: name
3185
2771
  }
3186
2772
  ),
3187
- /* @__PURE__ */ jsx14(
3188
- Text7,
2773
+ /* @__PURE__ */ jsx11(
2774
+ Text5,
3189
2775
  {
3190
2776
  size: "xsmall",
3191
2777
  leading: "compact",
@@ -3200,31 +2786,31 @@ var Header = () => {
3200
2786
  ]
3201
2787
  }
3202
2788
  ),
3203
- /* @__PURE__ */ jsx14(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-1" }),
3204
- /* @__PURE__ */ jsx14(
2789
+ /* @__PURE__ */ jsx11(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-1" }),
2790
+ /* @__PURE__ */ jsx11(
3205
2791
  DropdownMenu3.Item,
3206
2792
  {
3207
2793
  className: "gap-x-2",
3208
2794
  asChild: true,
3209
2795
  "data-testid": "sidebar-header-dropdown-store-settings",
3210
- children: /* @__PURE__ */ jsxs9(Link3, { to: "/settings/marketplace", children: [
3211
- /* @__PURE__ */ jsx14(BuildingStorefront, { className: "text-ui-fg-subtle" }),
2796
+ children: /* @__PURE__ */ jsxs7(Link3, { to: "/settings/marketplace", children: [
2797
+ /* @__PURE__ */ jsx11(BuildingStorefront, { className: "text-ui-fg-subtle" }),
3212
2798
  t2("app.nav.main.marketplaceSettings")
3213
2799
  ] })
3214
2800
  }
3215
2801
  ),
3216
- /* @__PURE__ */ jsx14(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-2" }),
3217
- /* @__PURE__ */ jsx14(Logout2, {})
2802
+ /* @__PURE__ */ jsx11(DropdownMenu3.Separator, { "data-testid": "sidebar-header-dropdown-separator-2" }),
2803
+ /* @__PURE__ */ jsx11(Logout2, {})
3218
2804
  ]
3219
2805
  }
3220
2806
  )
3221
2807
  ] }) });
3222
2808
  };
3223
2809
  var useCoreRoutes = () => {
3224
- const { t: t2 } = useTranslation9();
2810
+ const { t: t2 } = useTranslation8();
3225
2811
  return [
3226
2812
  {
3227
- icon: /* @__PURE__ */ jsx14(ShoppingCart, {}),
2813
+ icon: /* @__PURE__ */ jsx11(ShoppingCart, {}),
3228
2814
  label: t2("orders.domain"),
3229
2815
  to: "/orders",
3230
2816
  items: [
@@ -3236,7 +2822,7 @@ var useCoreRoutes = () => {
3236
2822
  ]
3237
2823
  },
3238
2824
  {
3239
- icon: /* @__PURE__ */ jsx14(Tag, {}),
2825
+ icon: /* @__PURE__ */ jsx11(Tag, {}),
3240
2826
  label: t2("products.domain"),
3241
2827
  to: "/products",
3242
2828
  items: [
@@ -3260,7 +2846,7 @@ var useCoreRoutes = () => {
3260
2846
  ]
3261
2847
  },
3262
2848
  {
3263
- icon: /* @__PURE__ */ jsx14(Buildings, {}),
2849
+ icon: /* @__PURE__ */ jsx11(Buildings, {}),
3264
2850
  label: t2("inventory.domain"),
3265
2851
  to: "/inventory",
3266
2852
  items: [
@@ -3271,7 +2857,7 @@ var useCoreRoutes = () => {
3271
2857
  ]
3272
2858
  },
3273
2859
  {
3274
- icon: /* @__PURE__ */ jsx14(Users, {}),
2860
+ icon: /* @__PURE__ */ jsx11(Users, {}),
3275
2861
  label: t2("customers.domain"),
3276
2862
  to: "/customers",
3277
2863
  items: [
@@ -3282,7 +2868,7 @@ var useCoreRoutes = () => {
3282
2868
  ]
3283
2869
  },
3284
2870
  {
3285
- icon: /* @__PURE__ */ jsx14(ReceiptPercent, {}),
2871
+ icon: /* @__PURE__ */ jsx11(ReceiptPercent, {}),
3286
2872
  label: t2("promotions.domain"),
3287
2873
  to: "/promotions",
3288
2874
  items: [
@@ -3293,12 +2879,12 @@ var useCoreRoutes = () => {
3293
2879
  ]
3294
2880
  },
3295
2881
  {
3296
- icon: /* @__PURE__ */ jsx14(CurrencyDollar, {}),
2882
+ icon: /* @__PURE__ */ jsx11(CurrencyDollar, {}),
3297
2883
  label: t2("priceLists.domain"),
3298
2884
  to: "/price-lists"
3299
2885
  },
3300
2886
  {
3301
- icon: /* @__PURE__ */ jsx14(BuildingStorefront, {}),
2887
+ icon: /* @__PURE__ */ jsx11(BuildingStorefront, {}),
3302
2888
  label: t2("stores.domain"),
3303
2889
  to: "/stores",
3304
2890
  items: [
@@ -3309,72 +2895,72 @@ var useCoreRoutes = () => {
3309
2895
  ]
3310
2896
  },
3311
2897
  {
3312
- icon: /* @__PURE__ */ jsx14(CreditCardRefresh, {}),
2898
+ icon: /* @__PURE__ */ jsx11(CreditCardRefresh, {}),
3313
2899
  label: t2("payouts.domain"),
3314
2900
  to: "/payouts"
3315
2901
  }
3316
2902
  ];
3317
2903
  };
3318
2904
  var Searchbar = () => {
3319
- const { t: t2 } = useTranslation9();
2905
+ const { t: t2 } = useTranslation8();
3320
2906
  const { toggleSearch } = useSearch();
3321
- return /* @__PURE__ */ jsx14("div", { className: "px-3", "data-testid": "sidebar-search", children: /* @__PURE__ */ jsxs9(
2907
+ return /* @__PURE__ */ jsx11("div", { className: "px-3", "data-testid": "sidebar-search", children: /* @__PURE__ */ jsxs7(
3322
2908
  "button",
3323
2909
  {
3324
2910
  onClick: toggleSearch,
3325
- 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",
2911
+ className: clx5(
2912
+ "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
2913
  "hover:bg-ui-bg-subtle-hover",
3328
2914
  "focus-visible:shadow-borders-focus"
3329
2915
  ),
3330
2916
  "data-testid": "sidebar-search-button",
3331
2917
  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" })
2918
+ /* @__PURE__ */ jsx11(MagnifyingGlass2, { className: "shrink-0" }),
2919
+ /* @__PURE__ */ jsx11("div", { className: clx5("flex-1 whitespace-nowrap text-start", SIDEBAR_RAIL_FADE), children: /* @__PURE__ */ jsx11(Text5, { size: "small", leading: "compact", weight: "plus", children: t2("app.search.label") }) }),
2920
+ /* @__PURE__ */ jsx11(Text5, { size: "small", leading: "compact", className: clx5("text-ui-fg-muted", SIDEBAR_RAIL_FADE), children: "\u2318K" })
3335
2921
  ]
3336
2922
  }
3337
2923
  ) });
3338
2924
  };
3339
2925
  var UtilitySection = () => {
3340
- const location = useLocation7();
3341
- const { t: t2 } = useTranslation9();
3342
- return /* @__PURE__ */ jsx14("div", { className: "flex flex-col gap-y-0.5 py-3", children: /* @__PURE__ */ jsx14(
2926
+ const location = useLocation6();
2927
+ const { t: t2 } = useTranslation8();
2928
+ return /* @__PURE__ */ jsx11("div", { className: "flex flex-col gap-y-0.5 py-3", children: /* @__PURE__ */ jsx11(
3343
2929
  NavItem,
3344
2930
  {
3345
2931
  label: t2("app.nav.settings.header"),
3346
2932
  to: "/settings",
3347
2933
  from: location.pathname,
3348
- icon: /* @__PURE__ */ jsx14(CogSixTooth, {})
2934
+ icon: /* @__PURE__ */ jsx11(CogSixTooth, {})
3349
2935
  }
3350
2936
  ) });
3351
2937
  };
3352
2938
  var UserSection = () => {
3353
- return /* @__PURE__ */ jsxs9("div", { children: [
3354
- /* @__PURE__ */ jsx14("div", { className: "px-3", children: /* @__PURE__ */ jsx14(Divider, { variant: "dashed" }) }),
3355
- /* @__PURE__ */ jsx14(UserMenu, {})
2939
+ return /* @__PURE__ */ jsxs7("div", { children: [
2940
+ /* @__PURE__ */ jsx11("div", { className: "px-3", children: /* @__PURE__ */ jsx11(Divider, { variant: "dashed" }) }),
2941
+ /* @__PURE__ */ jsx11(UserMenu, {})
3356
2942
  ] });
3357
2943
  };
3358
2944
 
3359
2945
  // src/components/layout/public-layout/public-layout.tsx
3360
2946
  import { Outlet as Outlet3 } from "react-router-dom";
3361
- import { jsx as jsx15 } from "react/jsx-runtime";
2947
+ import { jsx as jsx12 } from "react/jsx-runtime";
3362
2948
  var PublicLayout = () => {
3363
- return /* @__PURE__ */ jsx15(Outlet3, {});
2949
+ return /* @__PURE__ */ jsx12(Outlet3, {});
3364
2950
  };
3365
2951
 
3366
2952
  // src/components/layout/settings-layout/settings-layout.tsx
3367
- import { useEffect as useEffect10, useMemo as useMemo6, useState as useState12 } from "react";
2953
+ import { useEffect as useEffect8, useMemo as useMemo6, useState as useState10 } from "react";
3368
2954
  import { ArrowUturnLeft as ArrowUturnLeft2, MinusMini } from "@medusajs/icons";
3369
- import { Divider as Divider2, IconButton as IconButton6, Text as Text8, clx as clx7 } from "@medusajs/ui";
2955
+ import { Divider as Divider2, IconButton as IconButton4, Text as Text6, clx as clx6 } from "@medusajs/ui";
3370
2956
  import { Collapsible as RadixCollapsible2 } from "radix-ui";
3371
- import { useTranslation as useTranslation10 } from "react-i18next";
3372
- import { Link as Link4, useLocation as useLocation8 } from "react-router-dom";
2957
+ import { useTranslation as useTranslation9 } from "react-i18next";
2958
+ import { Link as Link4, useLocation as useLocation7 } from "react-router-dom";
3373
2959
  import menuItemsModule2 from "virtual:mercur/menu-items";
3374
2960
  import { usePermissions as usePermissions2 } from "@mercurjs/dashboard-shared";
3375
- import { jsx as jsx16, jsxs as jsxs10 } from "react/jsx-runtime";
2961
+ import { jsx as jsx13, jsxs as jsxs8 } from "react/jsx-runtime";
3376
2962
  var SettingsLayout = () => {
3377
- return /* @__PURE__ */ jsx16(Shell, { children: /* @__PURE__ */ jsx16(SettingsSidebar, {}) });
2963
+ return /* @__PURE__ */ jsx13(Shell, { children: /* @__PURE__ */ jsx13(SettingsSidebar, {}) });
3378
2964
  };
3379
2965
  var allMenuItems2 = menuItemsModule2.menuItems ?? [];
3380
2966
  var useExtensionNavItems = () => {
@@ -3395,7 +2981,7 @@ var useExtensionNavItems = () => {
3395
2981
  );
3396
2982
  };
3397
2983
  var useSettingRoutes = () => {
3398
- const { t: t2 } = useTranslation10();
2984
+ const { t: t2 } = useTranslation9();
3399
2985
  const extensionNavItems = useExtensionNavItems();
3400
2986
  return useMemo6(
3401
2987
  () => [
@@ -3453,7 +3039,7 @@ var useSettingRoutes = () => {
3453
3039
  );
3454
3040
  };
3455
3041
  var useDeveloperRoutes = () => {
3456
- const { t: t2 } = useTranslation10();
3042
+ const { t: t2 } = useTranslation9();
3457
3043
  return useMemo6(
3458
3044
  () => [
3459
3045
  {
@@ -3469,7 +3055,7 @@ var useDeveloperRoutes = () => {
3469
3055
  );
3470
3056
  };
3471
3057
  var useMyAccountRoutes = () => {
3472
- const { t: t2 } = useTranslation10();
3058
+ const { t: t2 } = useTranslation9();
3473
3059
  return useMemo6(
3474
3060
  () => [
3475
3061
  {
@@ -3495,31 +3081,31 @@ var SettingsSidebar = () => {
3495
3081
  const routes = useSettingRoutes().filter(canReach);
3496
3082
  const developerRoutes = useDeveloperRoutes().filter(canReach);
3497
3083
  const myAccountRoutes = useMyAccountRoutes();
3498
- const { t: t2 } = useTranslation10();
3499
- return /* @__PURE__ */ jsxs10("aside", { className: "relative flex flex-1 flex-col justify-between overflow-y-auto", children: [
3500
- /* @__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" }) })
3084
+ const { t: t2 } = useTranslation9();
3085
+ return /* @__PURE__ */ jsxs8("aside", { className: "relative flex flex-1 flex-col justify-between overflow-y-auto", children: [
3086
+ /* @__PURE__ */ jsxs8("div", { className: "sticky top-0 bg-ui-bg-subtle", children: [
3087
+ /* @__PURE__ */ jsx13(Header2, {}),
3088
+ /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx13(Divider2, { variant: "dashed" }) })
3503
3089
  ] }),
3504
- /* @__PURE__ */ jsxs10("div", { className: "flex flex-1 flex-col", children: [
3505
- /* @__PURE__ */ jsxs10("div", { className: "flex flex-1 flex-col overflow-y-auto", children: [
3506
- /* @__PURE__ */ jsx16(
3090
+ /* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col", children: [
3091
+ /* @__PURE__ */ jsxs8("div", { className: "flex flex-1 flex-col overflow-y-auto", children: [
3092
+ /* @__PURE__ */ jsx13(
3507
3093
  RadixCollapsibleSection,
3508
3094
  {
3509
3095
  label: t2("app.nav.settings.general"),
3510
3096
  items: routes
3511
3097
  }
3512
3098
  ),
3513
- /* @__PURE__ */ jsx16("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx16(Divider2, { variant: "dashed" }) }),
3514
- /* @__PURE__ */ jsx16(
3099
+ /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx13(Divider2, { variant: "dashed" }) }),
3100
+ /* @__PURE__ */ jsx13(
3515
3101
  RadixCollapsibleSection,
3516
3102
  {
3517
3103
  label: t2("app.nav.settings.developer"),
3518
3104
  items: developerRoutes
3519
3105
  }
3520
3106
  ),
3521
- /* @__PURE__ */ jsx16("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx16(Divider2, { variant: "dashed" }) }),
3522
- /* @__PURE__ */ jsx16(
3107
+ /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center px-3", children: /* @__PURE__ */ jsx13(Divider2, { variant: "dashed" }) }),
3108
+ /* @__PURE__ */ jsx13(
3523
3109
  RadixCollapsibleSection,
3524
3110
  {
3525
3111
  label: t2("app.nav.settings.myAccount"),
@@ -3527,32 +3113,32 @@ var SettingsSidebar = () => {
3527
3113
  }
3528
3114
  )
3529
3115
  ] }),
3530
- /* @__PURE__ */ jsx16("div", { className: "sticky bottom-0 bg-ui-bg-subtle", children: /* @__PURE__ */ jsx16(UserSection2, {}) })
3116
+ /* @__PURE__ */ jsx13("div", { className: "sticky bottom-0 bg-ui-bg-subtle", children: /* @__PURE__ */ jsx13(UserSection2, {}) })
3531
3117
  ] })
3532
3118
  ] });
3533
3119
  };
3534
3120
  var Header2 = () => {
3535
- const [from, setFrom] = useState12("/orders");
3536
- const { t: t2 } = useTranslation10();
3537
- const location = useLocation8();
3538
- useEffect10(() => {
3121
+ const [from, setFrom] = useState10("/orders");
3122
+ const { t: t2 } = useTranslation9();
3123
+ const location = useLocation7();
3124
+ useEffect8(() => {
3539
3125
  if (location.state?.from) {
3540
3126
  setFrom(getSafeFromValue(location.state.from));
3541
3127
  }
3542
3128
  }, [location]);
3543
- return /* @__PURE__ */ jsx16("div", { className: "bg-ui-bg-subtle p-3", children: /* @__PURE__ */ jsx16(
3129
+ return /* @__PURE__ */ jsx13("div", { className: "bg-ui-bg-subtle p-3", children: /* @__PURE__ */ jsx13(
3544
3130
  Link4,
3545
3131
  {
3546
3132
  to: from,
3547
3133
  replace: true,
3548
- className: clx7(
3134
+ className: clx6(
3549
3135
  "flex items-center rounded-md bg-ui-bg-subtle outline-none transition-fg",
3550
3136
  "hover:bg-ui-bg-subtle-hover",
3551
3137
  "focus-visible:shadow-borders-focus"
3552
3138
  ),
3553
- 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") })
3139
+ children: /* @__PURE__ */ jsxs8("div", { className: "flex items-center gap-x-2.5 px-2 py-1", children: [
3140
+ /* @__PURE__ */ jsx13("div", { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx13(ArrowUturnLeft2, { className: "text-ui-fg-subtle" }) }),
3141
+ /* @__PURE__ */ jsx13(Text6, { leading: "compact", weight: "plus", size: "small", children: t2("app.nav.settings.header") })
3556
3142
  ] })
3557
3143
  }
3558
3144
  ) });
@@ -3561,24 +3147,24 @@ var RadixCollapsibleSection = ({
3561
3147
  label,
3562
3148
  items
3563
3149
  }) => {
3564
- 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" }) }) })
3150
+ return /* @__PURE__ */ jsxs8(RadixCollapsible2.Root, { defaultOpen: true, className: "py-3", children: [
3151
+ /* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsxs8("div", { className: "flex h-7 items-center justify-between px-2 text-ui-fg-muted", children: [
3152
+ /* @__PURE__ */ jsx13(Text6, { size: "small", leading: "compact", children: label }),
3153
+ /* @__PURE__ */ jsx13(RadixCollapsible2.Trigger, { asChild: true, children: /* @__PURE__ */ jsx13(IconButton4, { size: "2xsmall", variant: "transparent", className: "static", children: /* @__PURE__ */ jsx13(MinusMini, { className: "text-ui-fg-muted" }) }) })
3568
3154
  ] }) }),
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)) }) }) })
3155
+ /* @__PURE__ */ jsx13(RadixCollapsible2.Content, { children: /* @__PURE__ */ jsx13("div", { className: "pt-0.5", children: /* @__PURE__ */ jsx13("nav", { className: "flex flex-col gap-y-0.5", children: items.map((setting) => /* @__PURE__ */ jsx13(NavItem, { type: "setting", ...setting }, setting.to)) }) }) })
3570
3156
  ] });
3571
3157
  };
3572
3158
  var UserSection2 = () => {
3573
- return /* @__PURE__ */ jsxs10("div", { children: [
3574
- /* @__PURE__ */ jsx16("div", { className: "px-3", children: /* @__PURE__ */ jsx16(Divider2, { variant: "dashed" }) }),
3575
- /* @__PURE__ */ jsx16(UserMenu, {})
3159
+ return /* @__PURE__ */ jsxs8("div", { children: [
3160
+ /* @__PURE__ */ jsx13("div", { className: "px-3", children: /* @__PURE__ */ jsx13(Divider2, { variant: "dashed" }) }),
3161
+ /* @__PURE__ */ jsx13(UserMenu, {})
3576
3162
  ] });
3577
3163
  };
3578
3164
 
3579
3165
  // src/get-route-map.tsx
3580
3166
  import { RoutePermissionGuard } from "@mercurjs/dashboard-shared";
3581
- import { jsx as jsx17 } from "react/jsx-runtime";
3167
+ import { jsx as jsx14 } from "react/jsx-runtime";
3582
3168
  function mergeRoutes(baseRoutes, customRoutes2) {
3583
3169
  const result = baseRoutes.map((route) => ({ ...route }));
3584
3170
  for (const customRoute of customRoutes2) {
@@ -3612,27 +3198,27 @@ function getRouteMap({
3612
3198
  }) {
3613
3199
  return [
3614
3200
  {
3615
- element: /* @__PURE__ */ jsx17(ProtectedRoute, {}),
3616
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3201
+ element: /* @__PURE__ */ jsx14(ProtectedRoute, {}),
3202
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3617
3203
  children: [
3618
3204
  {
3619
- element: /* @__PURE__ */ jsx17(MainLayout, {}),
3205
+ element: /* @__PURE__ */ jsx14(MainLayout, {}),
3620
3206
  children: [
3621
3207
  {
3622
3208
  // Pathless wrapper so every route below — including extension
3623
3209
  // routes merged in from virtual:mercur/routes — is enforced
3624
3210
  // without each one wiring its own guard element.
3625
- element: /* @__PURE__ */ jsx17(RoutePermissionGuard, {}),
3211
+ element: /* @__PURE__ */ jsx14(RoutePermissionGuard, {}),
3626
3212
  children: mergeRoutes(
3627
3213
  [
3628
3214
  {
3629
3215
  path: "/",
3630
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3216
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3631
3217
  lazy: () => import("./home-I3OILW5Z.js")
3632
3218
  },
3633
3219
  {
3634
3220
  path: "/products",
3635
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3221
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3636
3222
  handle: {
3637
3223
  breadcrumb: () => t("products.domain"),
3638
3224
  permissions: "product:read"
@@ -3640,12 +3226,12 @@ function getRouteMap({
3640
3226
  children: [
3641
3227
  {
3642
3228
  path: "",
3643
- lazy: () => import("./product-list-XDJB3HX7.js"),
3229
+ lazy: () => import("./product-list-O35LY6T7.js"),
3644
3230
  children: [
3645
3231
  {
3646
3232
  path: "create",
3647
3233
  handle: { permissions: "product:create" },
3648
- lazy: () => import("./product-create-SHIGHLQN.js")
3234
+ lazy: () => import("./product-create-P7F2RZPS.js")
3649
3235
  },
3650
3236
  {
3651
3237
  path: "bulk-edit",
@@ -3655,21 +3241,21 @@ function getRouteMap({
3655
3241
  },
3656
3242
  {
3657
3243
  path: ":id",
3658
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3244
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3659
3245
  lazy: async () => {
3660
- const { Breadcrumb, loader } = await import("./product-detail-UGSTCK7J.js");
3246
+ const { Breadcrumb, loader } = await import("./product-detail-G6HRH4ND.js");
3661
3247
  return {
3662
3248
  Component: Outlet4,
3663
3249
  loader,
3664
3250
  handle: {
3665
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3251
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3666
3252
  }
3667
3253
  };
3668
3254
  },
3669
3255
  children: [
3670
3256
  {
3671
3257
  path: "",
3672
- lazy: () => import("./product-detail-UGSTCK7J.js"),
3258
+ lazy: () => import("./product-detail-G6HRH4ND.js"),
3673
3259
  children: [
3674
3260
  {
3675
3261
  path: "edit",
@@ -3678,7 +3264,7 @@ function getRouteMap({
3678
3264
  },
3679
3265
  {
3680
3266
  path: "edit-variant",
3681
- lazy: () => import("./product-variant-edit-4DPXTYPT.js")
3267
+ lazy: () => import("./product-variant-edit-Y4BJFQTK.js")
3682
3268
  },
3683
3269
  {
3684
3270
  path: "sales-channels",
@@ -3694,7 +3280,7 @@ function getRouteMap({
3694
3280
  },
3695
3281
  {
3696
3282
  path: "attributes/add",
3697
- lazy: () => import("./product-add-existing-attributes-2UFTXE2N.js")
3283
+ lazy: () => import("./product-add-existing-attributes-5XGJZSIY.js")
3698
3284
  },
3699
3285
  {
3700
3286
  path: "attributes/:attribute_id/edit",
@@ -3702,7 +3288,7 @@ function getRouteMap({
3702
3288
  },
3703
3289
  {
3704
3290
  path: "organization",
3705
- lazy: () => import("./product-organization-TNS7GBKN.js")
3291
+ lazy: () => import("./product-organization-VXTSCBHU.js")
3706
3292
  },
3707
3293
  {
3708
3294
  path: "shipping-profile",
@@ -3710,7 +3296,7 @@ function getRouteMap({
3710
3296
  },
3711
3297
  {
3712
3298
  path: "media",
3713
- lazy: () => import("./product-media-CO3F57JT.js")
3299
+ lazy: () => import("./product-media-3ERT2APJ.js")
3714
3300
  },
3715
3301
  {
3716
3302
  path: "variants/create",
@@ -3718,35 +3304,35 @@ function getRouteMap({
3718
3304
  },
3719
3305
  {
3720
3306
  path: "metadata/edit",
3721
- lazy: () => import("./product-metadata-5CRGB7TR.js")
3307
+ lazy: () => import("./product-metadata-2QQGBVV5.js")
3722
3308
  }
3723
3309
  ]
3724
3310
  },
3725
3311
  {
3726
3312
  path: "variants/:variant_id",
3727
3313
  lazy: async () => {
3728
- const { Breadcrumb, loader } = await import("./product-variant-detail-XHMS2UT5.js");
3314
+ const { Breadcrumb, loader } = await import("./product-variant-detail-TIULIJ3X.js");
3729
3315
  return {
3730
3316
  Component: Outlet4,
3731
3317
  loader,
3732
3318
  handle: {
3733
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3319
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3734
3320
  }
3735
3321
  };
3736
3322
  },
3737
3323
  children: [
3738
3324
  {
3739
3325
  path: "",
3740
- lazy: () => import("./product-variant-detail-XHMS2UT5.js"),
3326
+ lazy: () => import("./product-variant-detail-TIULIJ3X.js"),
3741
3327
  children: [
3742
3328
  {
3743
3329
  path: "edit",
3744
3330
  handle: { permissions: "product:update" },
3745
- lazy: () => import("./product-variant-edit-4DPXTYPT.js")
3331
+ lazy: () => import("./product-variant-edit-Y4BJFQTK.js")
3746
3332
  },
3747
3333
  {
3748
3334
  path: "metadata/edit",
3749
- lazy: () => import("./product-variant-metadata-ETVJBXSW.js")
3335
+ lazy: () => import("./product-variant-metadata-7SKGOEEA.js")
3750
3336
  }
3751
3337
  ]
3752
3338
  }
@@ -3758,7 +3344,7 @@ function getRouteMap({
3758
3344
  },
3759
3345
  {
3760
3346
  path: "/categories",
3761
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3347
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3762
3348
  handle: {
3763
3349
  breadcrumb: () => t("categories.domain"),
3764
3350
  permissions: "product_category:read"
@@ -3782,19 +3368,19 @@ function getRouteMap({
3782
3368
  {
3783
3369
  path: ":id",
3784
3370
  lazy: async () => {
3785
- const { Breadcrumb, loader } = await import("./category-detail-GVEDFNM7.js");
3371
+ const { Breadcrumb, loader } = await import("./category-detail-RWLX5N2M.js");
3786
3372
  return {
3787
3373
  Component: Outlet4,
3788
3374
  loader,
3789
3375
  handle: {
3790
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3376
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3791
3377
  }
3792
3378
  };
3793
3379
  },
3794
3380
  children: [
3795
3381
  {
3796
3382
  path: "",
3797
- lazy: () => import("./category-detail-GVEDFNM7.js"),
3383
+ lazy: () => import("./category-detail-RWLX5N2M.js"),
3798
3384
  children: [
3799
3385
  {
3800
3386
  path: "edit",
@@ -3811,7 +3397,7 @@ function getRouteMap({
3811
3397
  },
3812
3398
  {
3813
3399
  path: "products",
3814
- lazy: () => import("./category-products-VVF5NXCE.js")
3400
+ lazy: () => import("./category-products-HS4FHYZM.js")
3815
3401
  },
3816
3402
  {
3817
3403
  path: "organize",
@@ -3819,7 +3405,7 @@ function getRouteMap({
3819
3405
  },
3820
3406
  {
3821
3407
  path: "metadata/edit",
3822
- lazy: () => import("./categories-metadata-MJAYSCTW.js")
3408
+ lazy: () => import("./categories-metadata-6LMZAUOF.js")
3823
3409
  }
3824
3410
  ]
3825
3411
  }
@@ -3829,7 +3415,7 @@ function getRouteMap({
3829
3415
  },
3830
3416
  {
3831
3417
  path: "/orders",
3832
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3418
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3833
3419
  handle: {
3834
3420
  breadcrumb: () => t("orders.domain"),
3835
3421
  permissions: "order:read"
@@ -3842,19 +3428,19 @@ function getRouteMap({
3842
3428
  {
3843
3429
  path: ":id",
3844
3430
  lazy: async () => {
3845
- const { Breadcrumb, loader } = await import("./order-detail-3ODC5NOT.js");
3431
+ const { Breadcrumb, loader } = await import("./order-detail-P7R4U4YU.js");
3846
3432
  return {
3847
3433
  Component: Outlet4,
3848
3434
  loader,
3849
3435
  handle: {
3850
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3436
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3851
3437
  }
3852
3438
  };
3853
3439
  },
3854
3440
  children: [
3855
3441
  {
3856
3442
  path: "",
3857
- lazy: () => import("./order-detail-3ODC5NOT.js"),
3443
+ lazy: () => import("./order-detail-P7R4U4YU.js"),
3858
3444
  children: [
3859
3445
  {
3860
3446
  path: "returns",
@@ -3866,7 +3452,7 @@ function getRouteMap({
3866
3452
  },
3867
3453
  {
3868
3454
  path: "exchanges",
3869
- lazy: () => import("./order-create-exchange-CC7CQECO.js")
3455
+ lazy: () => import("./order-create-exchange-TSGTAOEF.js")
3870
3456
  },
3871
3457
  {
3872
3458
  path: "edits",
@@ -3874,27 +3460,27 @@ function getRouteMap({
3874
3460
  },
3875
3461
  {
3876
3462
  path: "refund",
3877
- lazy: () => import("./order-create-refund-FJLL4CUD.js")
3463
+ lazy: () => import("./order-create-refund-KYTIPPQK.js")
3878
3464
  },
3879
3465
  {
3880
3466
  path: "transfer",
3881
- lazy: () => import("./order-request-transfer-RYVK4WYW.js")
3467
+ lazy: () => import("./order-request-transfer-R3FCUU7R.js")
3882
3468
  },
3883
3469
  {
3884
3470
  path: "email",
3885
- lazy: () => import("./order-edit-email-BREEW246.js")
3471
+ lazy: () => import("./order-edit-email-CYCFGHE4.js")
3886
3472
  },
3887
3473
  {
3888
3474
  path: "shipping-address",
3889
- lazy: () => import("./order-edit-shipping-address-XUG74AFY.js")
3475
+ lazy: () => import("./order-edit-shipping-address-XJUKP3JP.js")
3890
3476
  },
3891
3477
  {
3892
3478
  path: "billing-address",
3893
- lazy: () => import("./order-edit-billing-address-SBVWRA25.js")
3479
+ lazy: () => import("./order-edit-billing-address-6ALJ7U6O.js")
3894
3480
  },
3895
3481
  {
3896
3482
  path: "metadata/edit",
3897
- lazy: () => import("./order-metadata-VIG5MGYV.js")
3483
+ lazy: () => import("./order-metadata-PQKBD7ZT.js")
3898
3484
  }
3899
3485
  ]
3900
3486
  }
@@ -3904,7 +3490,7 @@ function getRouteMap({
3904
3490
  },
3905
3491
  {
3906
3492
  path: "/promotions",
3907
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3493
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3908
3494
  handle: {
3909
3495
  breadcrumb: () => t("promotions.domain"),
3910
3496
  permissions: "promotion:read"
@@ -3912,29 +3498,29 @@ function getRouteMap({
3912
3498
  children: [
3913
3499
  {
3914
3500
  path: "",
3915
- lazy: () => import("./promotion-list-S4B6SVD6.js")
3501
+ lazy: () => import("./promotion-list-6OBFAIOU.js")
3916
3502
  },
3917
3503
  {
3918
3504
  path: "create",
3919
3505
  handle: { permissions: "promotion:create" },
3920
- lazy: () => import("./promotion-create-7ZUJ4W2J.js")
3506
+ lazy: () => import("./promotion-create-D6PTGIAY.js")
3921
3507
  },
3922
3508
  {
3923
3509
  path: ":id",
3924
3510
  lazy: async () => {
3925
- const { Breadcrumb, loader } = await import("./promotion-detail-SWO4PZDC.js");
3511
+ const { Breadcrumb, loader } = await import("./promotion-detail-4VYJAJ2N.js");
3926
3512
  return {
3927
3513
  Component: Outlet4,
3928
3514
  loader,
3929
3515
  handle: {
3930
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3516
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3931
3517
  }
3932
3518
  };
3933
3519
  },
3934
3520
  children: [
3935
3521
  {
3936
3522
  path: "",
3937
- lazy: () => import("./promotion-detail-SWO4PZDC.js"),
3523
+ lazy: () => import("./promotion-detail-4VYJAJ2N.js"),
3938
3524
  children: [
3939
3525
  {
3940
3526
  path: "edit",
@@ -3947,7 +3533,7 @@ function getRouteMap({
3947
3533
  },
3948
3534
  {
3949
3535
  path: ":ruleType/edit",
3950
- lazy: () => import("./edit-rules-RJC3AYJN.js")
3536
+ lazy: () => import("./edit-rules-HIC7UOV5.js")
3951
3537
  }
3952
3538
  ]
3953
3539
  }
@@ -3957,7 +3543,7 @@ function getRouteMap({
3957
3543
  },
3958
3544
  {
3959
3545
  path: "/campaigns",
3960
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3546
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
3961
3547
  handle: {
3962
3548
  breadcrumb: () => t("campaigns.domain"),
3963
3549
  permissions: "campaign:read"
@@ -3976,19 +3562,19 @@ function getRouteMap({
3976
3562
  {
3977
3563
  path: ":id",
3978
3564
  lazy: async () => {
3979
- const { Breadcrumb, loader } = await import("./campaign-detail-BHRCOKL3.js");
3565
+ const { Breadcrumb, loader } = await import("./campaign-detail-3HKWD7UR.js");
3980
3566
  return {
3981
3567
  Component: Outlet4,
3982
3568
  loader,
3983
3569
  handle: {
3984
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3570
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
3985
3571
  }
3986
3572
  };
3987
3573
  },
3988
3574
  children: [
3989
3575
  {
3990
3576
  path: "",
3991
- lazy: () => import("./campaign-detail-BHRCOKL3.js"),
3577
+ lazy: () => import("./campaign-detail-3HKWD7UR.js"),
3992
3578
  children: [
3993
3579
  {
3994
3580
  path: "edit",
@@ -4005,7 +3591,7 @@ function getRouteMap({
4005
3591
  },
4006
3592
  {
4007
3593
  path: "add-promotions",
4008
- lazy: () => import("./add-campaign-promotions-PBGDZSCD.js")
3594
+ lazy: () => import("./add-campaign-promotions-VFRAB2NN.js")
4009
3595
  }
4010
3596
  ]
4011
3597
  }
@@ -4015,7 +3601,7 @@ function getRouteMap({
4015
3601
  },
4016
3602
  {
4017
3603
  path: "/reviews",
4018
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3604
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4019
3605
  handle: {
4020
3606
  breadcrumb: () => t("reviews.domain"),
4021
3607
  permissions: "review:read"
@@ -4034,7 +3620,7 @@ function getRouteMap({
4034
3620
  Component: Outlet4,
4035
3621
  loader,
4036
3622
  handle: {
4037
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3623
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4038
3624
  }
4039
3625
  };
4040
3626
  },
@@ -4060,7 +3646,7 @@ function getRouteMap({
4060
3646
  },
4061
3647
  {
4062
3648
  path: "/collections",
4063
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3649
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4064
3650
  handle: {
4065
3651
  breadcrumb: () => t("collections.domain"),
4066
3652
  permissions: "product_collection:read"
@@ -4068,7 +3654,7 @@ function getRouteMap({
4068
3654
  children: [
4069
3655
  {
4070
3656
  path: "",
4071
- lazy: () => import("./collection-list-AWLZYMWL.js"),
3657
+ lazy: () => import("./collection-list-3DODRV34.js"),
4072
3658
  children: [
4073
3659
  {
4074
3660
  path: "create",
@@ -4080,19 +3666,19 @@ function getRouteMap({
4080
3666
  {
4081
3667
  path: ":id",
4082
3668
  lazy: async () => {
4083
- const { Breadcrumb, loader } = await import("./collection-detail-QAEPOJZX.js");
3669
+ const { Breadcrumb, loader } = await import("./collection-detail-JT4DSP7V.js");
4084
3670
  return {
4085
3671
  Component: Outlet4,
4086
3672
  loader,
4087
3673
  handle: {
4088
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3674
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4089
3675
  }
4090
3676
  };
4091
3677
  },
4092
3678
  children: [
4093
3679
  {
4094
3680
  path: "",
4095
- lazy: () => import("./collection-detail-QAEPOJZX.js"),
3681
+ lazy: () => import("./collection-detail-JT4DSP7V.js"),
4096
3682
  children: [
4097
3683
  {
4098
3684
  path: "edit",
@@ -4109,11 +3695,11 @@ function getRouteMap({
4109
3695
  },
4110
3696
  {
4111
3697
  path: "products",
4112
- lazy: () => import("./collection-add-products-HCY2YT3W.js")
3698
+ lazy: () => import("./collection-add-products-FFYCZINV.js")
4113
3699
  },
4114
3700
  {
4115
3701
  path: "metadata/edit",
4116
- lazy: () => import("./collection-metadata-XM2EBCWF.js")
3702
+ lazy: () => import("./collection-metadata-7XMJPJCT.js")
4117
3703
  }
4118
3704
  ]
4119
3705
  }
@@ -4123,7 +3709,7 @@ function getRouteMap({
4123
3709
  },
4124
3710
  {
4125
3711
  path: "/price-lists",
4126
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3712
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4127
3713
  handle: {
4128
3714
  breadcrumb: () => t("priceLists.domain"),
4129
3715
  permissions: "price_list:read"
@@ -4136,26 +3722,26 @@ function getRouteMap({
4136
3722
  {
4137
3723
  path: "create",
4138
3724
  handle: { permissions: "price_list:create" },
4139
- lazy: () => import("./price-list-create-JFXLTNOJ.js")
3725
+ lazy: () => import("./price-list-create-PHJFJOQA.js")
4140
3726
  }
4141
3727
  ]
4142
3728
  },
4143
3729
  {
4144
3730
  path: ":id",
4145
3731
  lazy: async () => {
4146
- const { Breadcrumb, loader } = await import("./price-list-detail-5YTX66KF.js");
3732
+ const { Breadcrumb, loader } = await import("./price-list-detail-CGZ5DS6T.js");
4147
3733
  return {
4148
3734
  Component: Outlet4,
4149
3735
  loader,
4150
3736
  handle: {
4151
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3737
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4152
3738
  }
4153
3739
  };
4154
3740
  },
4155
3741
  children: [
4156
3742
  {
4157
3743
  path: "",
4158
- lazy: () => import("./price-list-detail-5YTX66KF.js"),
3744
+ lazy: () => import("./price-list-detail-CGZ5DS6T.js"),
4159
3745
  children: [
4160
3746
  {
4161
3747
  path: "edit",
@@ -4172,11 +3758,11 @@ function getRouteMap({
4172
3758
  },
4173
3759
  {
4174
3760
  path: "products/add",
4175
- lazy: () => import("./price-list-prices-add-HVTEQOWQ.js")
3761
+ lazy: () => import("./price-list-prices-add-O5JDIJ3O.js")
4176
3762
  },
4177
3763
  {
4178
3764
  path: "products/edit",
4179
- lazy: () => import("./price-list-prices-edit-OVHIDATP.js")
3765
+ lazy: () => import("./price-list-prices-edit-ITO6ZTGD.js")
4180
3766
  }
4181
3767
  ]
4182
3768
  }
@@ -4186,7 +3772,7 @@ function getRouteMap({
4186
3772
  },
4187
3773
  {
4188
3774
  path: "/customers",
4189
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3775
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4190
3776
  handle: {
4191
3777
  breadcrumb: () => t("customers.domain"),
4192
3778
  permissions: "customer:read"
@@ -4206,19 +3792,19 @@ function getRouteMap({
4206
3792
  {
4207
3793
  path: ":id",
4208
3794
  lazy: async () => {
4209
- const { Breadcrumb, loader } = await import("./customer-detail-XO7RBVUC.js");
3795
+ const { Breadcrumb, loader } = await import("./customer-detail-AMGUVNTH.js");
4210
3796
  return {
4211
3797
  Component: Outlet4,
4212
3798
  loader,
4213
3799
  handle: {
4214
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3800
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4215
3801
  }
4216
3802
  };
4217
3803
  },
4218
3804
  children: [
4219
3805
  {
4220
3806
  path: "",
4221
- lazy: () => import("./customer-detail-XO7RBVUC.js"),
3807
+ lazy: () => import("./customer-detail-AMGUVNTH.js"),
4222
3808
  children: [
4223
3809
  {
4224
3810
  path: "edit",
@@ -4235,15 +3821,15 @@ function getRouteMap({
4235
3821
  },
4236
3822
  {
4237
3823
  path: "add-customer-groups",
4238
- lazy: () => import("./customers-add-customer-group-MYC76YGW.js")
3824
+ lazy: () => import("./customers-add-customer-group-GNDYPKUO.js")
4239
3825
  },
4240
3826
  {
4241
3827
  path: ":order_id/transfer",
4242
- lazy: () => import("./order-request-transfer-RYVK4WYW.js")
3828
+ lazy: () => import("./order-request-transfer-R3FCUU7R.js")
4243
3829
  },
4244
3830
  {
4245
3831
  path: "metadata/edit",
4246
- lazy: () => import("./customer-metadata-GWZC456X.js")
3832
+ lazy: () => import("./customer-metadata-WL5W5JSC.js")
4247
3833
  }
4248
3834
  ]
4249
3835
  }
@@ -4253,7 +3839,7 @@ function getRouteMap({
4253
3839
  },
4254
3840
  {
4255
3841
  path: "/customer-groups",
4256
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3842
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4257
3843
  handle: {
4258
3844
  breadcrumb: () => t("customerGroups.domain"),
4259
3845
  permissions: "customer_group:read"
@@ -4261,7 +3847,7 @@ function getRouteMap({
4261
3847
  children: [
4262
3848
  {
4263
3849
  path: "",
4264
- lazy: () => import("./customer-group-list-5VA7HGD5.js"),
3850
+ lazy: () => import("./customer-group-list-2NP5GAKQ.js"),
4265
3851
  children: [
4266
3852
  {
4267
3853
  path: "create",
@@ -4273,19 +3859,19 @@ function getRouteMap({
4273
3859
  {
4274
3860
  path: ":id",
4275
3861
  lazy: async () => {
4276
- const { Breadcrumb, loader } = await import("./customer-group-detail-4G53UKOS.js");
3862
+ const { Breadcrumb, loader } = await import("./customer-group-detail-PDA3JCAZ.js");
4277
3863
  return {
4278
3864
  Component: Outlet4,
4279
3865
  loader,
4280
3866
  handle: {
4281
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3867
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4282
3868
  }
4283
3869
  };
4284
3870
  },
4285
3871
  children: [
4286
3872
  {
4287
3873
  path: "",
4288
- lazy: () => import("./customer-group-detail-4G53UKOS.js"),
3874
+ lazy: () => import("./customer-group-detail-PDA3JCAZ.js"),
4289
3875
  children: [
4290
3876
  {
4291
3877
  path: "edit",
@@ -4298,7 +3884,7 @@ function getRouteMap({
4298
3884
  },
4299
3885
  {
4300
3886
  path: "metadata/edit",
4301
- lazy: () => import("./customer-group-metadata-FUJFFWCO.js")
3887
+ lazy: () => import("./customer-group-metadata-B7LBRM5F.js")
4302
3888
  }
4303
3889
  ]
4304
3890
  }
@@ -4308,7 +3894,7 @@ function getRouteMap({
4308
3894
  },
4309
3895
  {
4310
3896
  path: "/stores",
4311
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3897
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4312
3898
  handle: {
4313
3899
  breadcrumb: () => t("stores.domain"),
4314
3900
  permissions: "seller:read"
@@ -4316,12 +3902,12 @@ function getRouteMap({
4316
3902
  children: [
4317
3903
  {
4318
3904
  path: "",
4319
- lazy: () => import("./store-list-RXPN3VVO.js"),
3905
+ lazy: () => import("./store-list-JADJQPSK.js"),
4320
3906
  children: [
4321
3907
  {
4322
3908
  path: "create",
4323
3909
  handle: { permissions: "seller:create" },
4324
- lazy: () => import("./store-create-J4SL6SY3.js")
3910
+ lazy: () => import("./store-create-RYYOB2FV.js")
4325
3911
  },
4326
3912
  {
4327
3913
  path: "bulk-edit",
@@ -4332,23 +3918,23 @@ function getRouteMap({
4332
3918
  {
4333
3919
  path: ":id",
4334
3920
  lazy: async () => {
4335
- const { Breadcrumb } = await import("./store-details-ITYKAZSI.js");
3921
+ const { Breadcrumb } = await import("./store-details-A2L6YQDB.js");
4336
3922
  return {
4337
3923
  Component: Outlet4,
4338
3924
  handle: {
4339
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3925
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4340
3926
  }
4341
3927
  };
4342
3928
  },
4343
3929
  children: [
4344
3930
  {
4345
3931
  path: "",
4346
- lazy: () => import("./store-details-ITYKAZSI.js"),
3932
+ lazy: () => import("./store-details-A2L6YQDB.js"),
4347
3933
  children: [
4348
3934
  {
4349
3935
  path: "edit",
4350
3936
  handle: { permissions: "seller:update" },
4351
- lazy: () => import("./store-edit-NZMI7PNS.js")
3937
+ lazy: () => import("./store-edit-BORBEPWF.js")
4352
3938
  },
4353
3939
  {
4354
3940
  path: "edit-address",
@@ -4378,7 +3964,7 @@ function getRouteMap({
4378
3964
  },
4379
3965
  {
4380
3966
  path: "/payouts",
4381
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
3967
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4382
3968
  handle: {
4383
3969
  breadcrumb: () => "Payouts",
4384
3970
  permissions: "payout:read"
@@ -4396,7 +3982,7 @@ function getRouteMap({
4396
3982
  Component: Outlet4,
4397
3983
  loader,
4398
3984
  handle: {
4399
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
3985
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4400
3986
  }
4401
3987
  };
4402
3988
  },
@@ -4411,7 +3997,7 @@ function getRouteMap({
4411
3997
  },
4412
3998
  {
4413
3999
  path: "/reservations",
4414
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4000
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4415
4001
  handle: {
4416
4002
  breadcrumb: () => t("reservations.domain"),
4417
4003
  permissions: "reservation_item:read"
@@ -4431,19 +4017,19 @@ function getRouteMap({
4431
4017
  {
4432
4018
  path: ":id",
4433
4019
  lazy: async () => {
4434
- const { Breadcrumb, loader } = await import("./reservation-detail-5GYGVM3M.js");
4020
+ const { Breadcrumb, loader } = await import("./reservation-detail-7PLHNOS4.js");
4435
4021
  return {
4436
4022
  Component: Outlet4,
4437
4023
  loader,
4438
4024
  handle: {
4439
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4025
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4440
4026
  }
4441
4027
  };
4442
4028
  },
4443
4029
  children: [
4444
4030
  {
4445
4031
  path: "",
4446
- lazy: () => import("./reservation-detail-5GYGVM3M.js"),
4032
+ lazy: () => import("./reservation-detail-7PLHNOS4.js"),
4447
4033
  children: [
4448
4034
  {
4449
4035
  path: "edit",
@@ -4452,7 +4038,7 @@ function getRouteMap({
4452
4038
  },
4453
4039
  {
4454
4040
  path: "metadata/edit",
4455
- lazy: () => import("./reservation-metadata-P4G3JEDW.js")
4041
+ lazy: () => import("./reservation-metadata-L42C7DPK.js")
4456
4042
  }
4457
4043
  ]
4458
4044
  }
@@ -4462,7 +4048,7 @@ function getRouteMap({
4462
4048
  },
4463
4049
  {
4464
4050
  path: "/offers",
4465
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4051
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4466
4052
  handle: {
4467
4053
  breadcrumb: () => t("offers.domain"),
4468
4054
  permissions: "offer:read"
@@ -4471,7 +4057,7 @@ function getRouteMap({
4471
4057
  {
4472
4058
  path: "",
4473
4059
  lazy: async () => {
4474
- const { OfferListPage } = await import("./offers-VG334CFD.js");
4060
+ const { OfferListPage } = await import("./offers-KJTLBFTM.js");
4475
4061
  return { Component: OfferListPage };
4476
4062
  }
4477
4063
  },
@@ -4484,7 +4070,7 @@ function getRouteMap({
4484
4070
  Component: Outlet4,
4485
4071
  loader,
4486
4072
  handle: {
4487
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4073
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4488
4074
  }
4489
4075
  };
4490
4076
  },
@@ -4505,7 +4091,7 @@ function getRouteMap({
4505
4091
  Component: Outlet4,
4506
4092
  loader,
4507
4093
  handle: {
4508
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4094
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4509
4095
  }
4510
4096
  };
4511
4097
  },
@@ -4525,7 +4111,7 @@ function getRouteMap({
4525
4111
  },
4526
4112
  {
4527
4113
  path: "/inventory",
4528
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4114
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4529
4115
  handle: {
4530
4116
  breadcrumb: () => t("inventory.domain"),
4531
4117
  permissions: "inventory_item:read"
@@ -4537,47 +4123,47 @@ function getRouteMap({
4537
4123
  children: [
4538
4124
  {
4539
4125
  path: "stock",
4540
- lazy: () => import("./inventory-stock-PZ2ENOGF.js")
4126
+ lazy: () => import("./inventory-stock-M5YSKXC4.js")
4541
4127
  }
4542
4128
  ]
4543
4129
  },
4544
4130
  {
4545
4131
  path: ":id",
4546
4132
  lazy: async () => {
4547
- const { Breadcrumb, loader } = await import("./inventory-detail-7HB5QEL4.js");
4133
+ const { Breadcrumb, loader } = await import("./inventory-detail-OLBIFY6Y.js");
4548
4134
  return {
4549
4135
  Component: Outlet4,
4550
4136
  loader,
4551
4137
  handle: {
4552
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4138
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4553
4139
  }
4554
4140
  };
4555
4141
  },
4556
4142
  children: [
4557
4143
  {
4558
4144
  path: "",
4559
- lazy: () => import("./inventory-detail-7HB5QEL4.js"),
4145
+ lazy: () => import("./inventory-detail-OLBIFY6Y.js"),
4560
4146
  children: [
4561
4147
  {
4562
4148
  path: "edit",
4563
4149
  handle: { permissions: "inventory_item:update" },
4564
- lazy: () => import("./edit-inventory-item-ZSV4WF6G.js")
4150
+ lazy: () => import("./edit-inventory-item-QNTKH7KR.js")
4565
4151
  },
4566
4152
  {
4567
4153
  path: "attributes",
4568
- lazy: () => import("./edit-inventory-item-attributes-NWSAQMKX.js")
4154
+ lazy: () => import("./edit-inventory-item-attributes-KB4GVOGP.js")
4569
4155
  },
4570
4156
  {
4571
4157
  path: "metadata/edit",
4572
- lazy: () => import("./inventory-metadata-FGHOW3YG.js")
4158
+ lazy: () => import("./inventory-metadata-2QNV2PF7.js")
4573
4159
  },
4574
4160
  {
4575
4161
  path: "locations",
4576
- lazy: () => import("./manage-locations-ZFIRHMNH.js")
4162
+ lazy: () => import("./manage-locations-TCMY6A4J.js")
4577
4163
  },
4578
4164
  {
4579
4165
  path: "locations/:location_id",
4580
- lazy: () => import("./adjust-inventory-BBAU3NMM.js")
4166
+ lazy: () => import("./adjust-inventory-TWESAGKE.js")
4581
4167
  }
4582
4168
  ]
4583
4169
  }
@@ -4594,29 +4180,29 @@ function getRouteMap({
4594
4180
  ]
4595
4181
  },
4596
4182
  {
4597
- element: /* @__PURE__ */ jsx17(ProtectedRoute, {}),
4598
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4183
+ element: /* @__PURE__ */ jsx14(ProtectedRoute, {}),
4184
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4599
4185
  children: [
4600
4186
  {
4601
4187
  path: "/settings",
4602
4188
  handle: {
4603
4189
  breadcrumb: () => t("app.nav.settings.header")
4604
4190
  },
4605
- element: /* @__PURE__ */ jsx17(SettingsLayout, {}),
4191
+ element: /* @__PURE__ */ jsx14(SettingsLayout, {}),
4606
4192
  children: [
4607
4193
  {
4608
- element: /* @__PURE__ */ jsx17(RoutePermissionGuard, {}),
4194
+ element: /* @__PURE__ */ jsx14(RoutePermissionGuard, {}),
4609
4195
  children: mergeRoutes(
4610
4196
  [
4611
4197
  {
4612
4198
  index: true,
4613
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4199
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4614
4200
  lazy: () => import("./settings-AVE3VCCM.js")
4615
4201
  },
4616
4202
  {
4617
4203
  path: "profile",
4618
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4619
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4204
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4205
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
4620
4206
  handle: {
4621
4207
  breadcrumb: () => t("profile.domain")
4622
4208
  },
@@ -4635,8 +4221,8 @@ function getRouteMap({
4635
4221
  },
4636
4222
  {
4637
4223
  path: "regions",
4638
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4639
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4224
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4225
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
4640
4226
  handle: {
4641
4227
  breadcrumb: () => t("regions.domain"),
4642
4228
  permissions: "region:read"
@@ -4661,7 +4247,7 @@ function getRouteMap({
4661
4247
  Component: Outlet4,
4662
4248
  loader,
4663
4249
  handle: {
4664
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4250
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4665
4251
  }
4666
4252
  };
4667
4253
  },
@@ -4681,7 +4267,7 @@ function getRouteMap({
4681
4267
  },
4682
4268
  {
4683
4269
  path: "metadata/edit",
4684
- lazy: () => import("./region-metadata-Q6HEMCHD.js")
4270
+ lazy: () => import("./region-metadata-IK6ZPUJW.js")
4685
4271
  }
4686
4272
  ]
4687
4273
  }
@@ -4691,8 +4277,8 @@ function getRouteMap({
4691
4277
  },
4692
4278
  {
4693
4279
  path: "marketplace",
4694
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4695
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4280
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4281
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
4696
4282
  handle: {
4697
4283
  breadcrumb: () => t("marketplace.domain"),
4698
4284
  permissions: "store:read"
@@ -4700,7 +4286,7 @@ function getRouteMap({
4700
4286
  children: [
4701
4287
  {
4702
4288
  path: "",
4703
- lazy: () => import("./marketplace-detail-4IP5HIEW.js"),
4289
+ lazy: () => import("./marketplace-detail-BIQF75Y7.js"),
4704
4290
  children: [
4705
4291
  {
4706
4292
  path: "edit",
@@ -4713,7 +4299,7 @@ function getRouteMap({
4713
4299
  },
4714
4300
  {
4715
4301
  path: "metadata/edit",
4716
- lazy: () => import("./marketplace-metadata-EGDXYKCE.js")
4302
+ lazy: () => import("./marketplace-metadata-U6LXZNTN.js")
4717
4303
  }
4718
4304
  ]
4719
4305
  }
@@ -4721,8 +4307,8 @@ function getRouteMap({
4721
4307
  },
4722
4308
  {
4723
4309
  path: "commissions",
4724
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4725
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4310
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4311
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
4726
4312
  handle: {
4727
4313
  breadcrumb: () => t("commissions.domain"),
4728
4314
  permissions: "commission_rate:read"
@@ -4750,7 +4336,7 @@ function getRouteMap({
4750
4336
  return {
4751
4337
  Component: Outlet4,
4752
4338
  handle: {
4753
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4339
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4754
4340
  }
4755
4341
  };
4756
4342
  },
@@ -4776,8 +4362,8 @@ function getRouteMap({
4776
4362
  },
4777
4363
  {
4778
4364
  path: "users",
4779
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4780
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4365
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4366
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
4781
4367
  handle: {
4782
4368
  breadcrumb: () => t("users.domain"),
4783
4369
  permissions: "user:read"
@@ -4802,7 +4388,7 @@ function getRouteMap({
4802
4388
  Component: Outlet4,
4803
4389
  loader,
4804
4390
  handle: {
4805
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4391
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4806
4392
  }
4807
4393
  };
4808
4394
  },
@@ -4818,7 +4404,7 @@ function getRouteMap({
4818
4404
  },
4819
4405
  {
4820
4406
  path: "metadata/edit",
4821
- lazy: () => import("./user-metadata-2PEU2IJE.js")
4407
+ lazy: () => import("./user-metadata-M72ZGLGH.js")
4822
4408
  }
4823
4409
  ]
4824
4410
  }
@@ -4828,8 +4414,8 @@ function getRouteMap({
4828
4414
  },
4829
4415
  {
4830
4416
  path: "sales-channels",
4831
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4832
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4417
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4418
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
4833
4419
  handle: {
4834
4420
  breadcrumb: () => t("salesChannels.domain"),
4835
4421
  permissions: "sales_channel:read"
@@ -4837,7 +4423,7 @@ function getRouteMap({
4837
4423
  children: [
4838
4424
  {
4839
4425
  path: "",
4840
- lazy: () => import("./sales-channel-list-XAWN5OKC.js"),
4426
+ lazy: () => import("./sales-channel-list-ZEERNIJZ.js"),
4841
4427
  children: [
4842
4428
  {
4843
4429
  path: "create",
@@ -4849,19 +4435,19 @@ function getRouteMap({
4849
4435
  {
4850
4436
  path: ":id",
4851
4437
  lazy: async () => {
4852
- const { Breadcrumb, loader } = await import("./sales-channel-detail-F37LBP6R.js");
4438
+ const { Breadcrumb, loader } = await import("./sales-channel-detail-5CL3LMRD.js");
4853
4439
  return {
4854
4440
  Component: Outlet4,
4855
4441
  loader,
4856
4442
  handle: {
4857
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4443
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4858
4444
  }
4859
4445
  };
4860
4446
  },
4861
4447
  children: [
4862
4448
  {
4863
4449
  path: "",
4864
- lazy: () => import("./sales-channel-detail-F37LBP6R.js"),
4450
+ lazy: () => import("./sales-channel-detail-5CL3LMRD.js"),
4865
4451
  children: [
4866
4452
  {
4867
4453
  path: "edit",
@@ -4870,11 +4456,11 @@ function getRouteMap({
4870
4456
  },
4871
4457
  {
4872
4458
  path: "add-products",
4873
- lazy: () => import("./sales-channel-add-products-MPJ7UCEJ.js")
4459
+ lazy: () => import("./sales-channel-add-products-EHFMW73I.js")
4874
4460
  },
4875
4461
  {
4876
4462
  path: "metadata/edit",
4877
- lazy: () => import("./sales-channel-metadata-NBWFH4QX.js")
4463
+ lazy: () => import("./sales-channel-metadata-OFHAFCOM.js")
4878
4464
  }
4879
4465
  ]
4880
4466
  }
@@ -4884,8 +4470,8 @@ function getRouteMap({
4884
4470
  },
4885
4471
  {
4886
4472
  path: "locations",
4887
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4888
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4473
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4474
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
4889
4475
  handle: {
4890
4476
  breadcrumb: () => t("locations.domain"),
4891
4477
  permissions: "stock_location:read"
@@ -4893,7 +4479,7 @@ function getRouteMap({
4893
4479
  children: [
4894
4480
  {
4895
4481
  path: "",
4896
- lazy: () => import("./location-list-VIAP63HV.js")
4482
+ lazy: () => import("./location-list-R3OABFPG.js")
4897
4483
  },
4898
4484
  {
4899
4485
  path: "create",
@@ -4902,7 +4488,7 @@ function getRouteMap({
4902
4488
  },
4903
4489
  {
4904
4490
  path: "shipping-profiles",
4905
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4491
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
4906
4492
  handle: {
4907
4493
  breadcrumb: () => t("shippingProfile.domain"),
4908
4494
  permissions: "shipping_profile:read"
@@ -4927,7 +4513,7 @@ function getRouteMap({
4927
4513
  Component: Outlet4,
4928
4514
  loader,
4929
4515
  handle: {
4930
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4516
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4931
4517
  }
4932
4518
  };
4933
4519
  },
@@ -4938,7 +4524,7 @@ function getRouteMap({
4938
4524
  children: [
4939
4525
  {
4940
4526
  path: "metadata/edit",
4941
- lazy: () => import("./shipping-profile-metadata-S7Z3IC6I.js")
4527
+ lazy: () => import("./shipping-profile-metadata-SQFRUAIH.js")
4942
4528
  }
4943
4529
  ]
4944
4530
  }
@@ -4948,8 +4534,8 @@ function getRouteMap({
4948
4534
  },
4949
4535
  {
4950
4536
  path: "shipping-option-types",
4951
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
4952
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4537
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4538
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
4953
4539
  handle: {
4954
4540
  breadcrumb: () => t("shippingOptionTypes.domain"),
4955
4541
  permissions: "shipping_option_type:read"
@@ -4957,36 +4543,36 @@ function getRouteMap({
4957
4543
  children: [
4958
4544
  {
4959
4545
  path: "",
4960
- lazy: () => import("./shipping-option-type-list-PRXZQSPR.js"),
4546
+ lazy: () => import("./shipping-option-type-list-5DOYVCD6.js"),
4961
4547
  children: [
4962
4548
  {
4963
4549
  path: "create",
4964
4550
  handle: { permissions: "shipping_option_type:create" },
4965
- lazy: () => import("./shipping-option-type-create-M23CI42D.js")
4551
+ lazy: () => import("./shipping-option-type-create-4TZVLPFU.js")
4966
4552
  }
4967
4553
  ]
4968
4554
  },
4969
4555
  {
4970
4556
  path: ":id",
4971
4557
  lazy: async () => {
4972
- const { Breadcrumb, loader } = await import("./shipping-option-type-detail-QIJZQ5WW.js");
4558
+ const { Breadcrumb, loader } = await import("./shipping-option-type-detail-TPG7NKCT.js");
4973
4559
  return {
4974
4560
  Component: Outlet4,
4975
4561
  loader,
4976
4562
  handle: {
4977
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4563
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
4978
4564
  }
4979
4565
  };
4980
4566
  },
4981
4567
  children: [
4982
4568
  {
4983
4569
  path: "",
4984
- lazy: () => import("./shipping-option-type-detail-QIJZQ5WW.js"),
4570
+ lazy: () => import("./shipping-option-type-detail-TPG7NKCT.js"),
4985
4571
  children: [
4986
4572
  {
4987
4573
  path: "edit",
4988
4574
  handle: { permissions: "shipping_option_type:update" },
4989
- lazy: () => import("./shipping-option-type-edit-WXTEQM32.js")
4575
+ lazy: () => import("./shipping-option-type-edit-BIWXDVMF.js")
4990
4576
  }
4991
4577
  ]
4992
4578
  }
@@ -4997,19 +4583,19 @@ function getRouteMap({
4997
4583
  {
4998
4584
  path: ":location_id",
4999
4585
  lazy: async () => {
5000
- const { Breadcrumb, loader } = await import("./location-detail-B2BWLVAD.js");
4586
+ const { Breadcrumb, loader } = await import("./location-detail-FFKVKFUX.js");
5001
4587
  return {
5002
4588
  Component: Outlet4,
5003
4589
  loader,
5004
4590
  handle: {
5005
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4591
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
5006
4592
  }
5007
4593
  };
5008
4594
  },
5009
4595
  children: [
5010
4596
  {
5011
4597
  path: "",
5012
- lazy: () => import("./location-detail-B2BWLVAD.js"),
4598
+ lazy: () => import("./location-detail-FFKVKFUX.js"),
5013
4599
  children: [
5014
4600
  {
5015
4601
  path: "edit",
@@ -5022,7 +4608,7 @@ function getRouteMap({
5022
4608
  },
5023
4609
  {
5024
4610
  path: "fulfillment-providers",
5025
- lazy: () => import("./location-fulfillment-providers-XIYMIEFN.js")
4611
+ lazy: () => import("./location-fulfillment-providers-YY2TKMLH.js")
5026
4612
  },
5027
4613
  {
5028
4614
  path: "fulfillment-set/:fset_id",
@@ -5049,7 +4635,7 @@ function getRouteMap({
5049
4635
  {
5050
4636
  path: "create",
5051
4637
  handle: { permissions: "shipping_option:create" },
5052
- lazy: () => import("./location-service-zone-shipping-option-create-6O2JXV6I.js")
4638
+ lazy: () => import("./location-service-zone-shipping-option-create-EMPXW67L.js")
5053
4639
  },
5054
4640
  {
5055
4641
  path: ":so_id",
@@ -5079,8 +4665,8 @@ function getRouteMap({
5079
4665
  },
5080
4666
  {
5081
4667
  path: "product-tags",
5082
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
5083
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4668
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4669
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
5084
4670
  handle: {
5085
4671
  breadcrumb: () => t("productTags.domain"),
5086
4672
  permissions: "product_tag:read"
@@ -5088,40 +4674,40 @@ function getRouteMap({
5088
4674
  children: [
5089
4675
  {
5090
4676
  path: "",
5091
- lazy: () => import("./product-tag-list-RKLCU3UE.js"),
4677
+ lazy: () => import("./product-tag-list-GNGDIW54.js"),
5092
4678
  children: [
5093
4679
  {
5094
4680
  path: "create",
5095
4681
  handle: { permissions: "product_tag:create" },
5096
- lazy: () => import("./product-tag-create-QORH6X2D.js")
4682
+ lazy: () => import("./product-tag-create-4CDCZZNR.js")
5097
4683
  }
5098
4684
  ]
5099
4685
  },
5100
4686
  {
5101
4687
  path: ":id",
5102
4688
  lazy: async () => {
5103
- const { Breadcrumb, loader } = await import("./product-tag-detail-CDSYBTAM.js");
4689
+ const { Breadcrumb, loader } = await import("./product-tag-detail-5YX4ET5N.js");
5104
4690
  return {
5105
4691
  Component: Outlet4,
5106
4692
  loader,
5107
4693
  handle: {
5108
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4694
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
5109
4695
  }
5110
4696
  };
5111
4697
  },
5112
4698
  children: [
5113
4699
  {
5114
4700
  path: "",
5115
- lazy: () => import("./product-tag-detail-CDSYBTAM.js"),
4701
+ lazy: () => import("./product-tag-detail-5YX4ET5N.js"),
5116
4702
  children: [
5117
4703
  {
5118
4704
  path: "edit",
5119
4705
  handle: { permissions: "product_tag:update" },
5120
- lazy: () => import("./product-tag-edit-JWYVCPCC.js")
4706
+ lazy: () => import("./product-tag-edit-UBXKLVUN.js")
5121
4707
  },
5122
4708
  {
5123
4709
  path: "metadata/edit",
5124
- lazy: () => import("./product-tag-metadata-BCUPIIJ5.js")
4710
+ lazy: () => import("./product-tag-metadata-CDXKXZPM.js")
5125
4711
  }
5126
4712
  ]
5127
4713
  }
@@ -5131,8 +4717,8 @@ function getRouteMap({
5131
4717
  },
5132
4718
  {
5133
4719
  path: "attributes",
5134
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
5135
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4720
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4721
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
5136
4722
  handle: {
5137
4723
  breadcrumb: () => t("attributes.domain"),
5138
4724
  permissions: "product_attribute:read"
@@ -5140,31 +4726,31 @@ function getRouteMap({
5140
4726
  children: [
5141
4727
  {
5142
4728
  path: "",
5143
- lazy: () => import("./attribute-list-SCFBKH4L.js"),
4729
+ lazy: () => import("./attribute-list-MEXPF4TG.js"),
5144
4730
  children: [
5145
4731
  {
5146
4732
  path: "create",
5147
4733
  handle: { permissions: "product_attribute:create" },
5148
- lazy: () => import("./attribute-create-C435ZHB2.js")
4734
+ lazy: () => import("./attribute-create-OHAZ4X75.js")
5149
4735
  }
5150
4736
  ]
5151
4737
  },
5152
4738
  {
5153
4739
  path: ":id",
5154
4740
  lazy: async () => {
5155
- const { Breadcrumb, loader } = await import("./attribute-detail-SPYDB3I5.js");
4741
+ const { Breadcrumb, loader } = await import("./attribute-detail-YJ4ZZYCL.js");
5156
4742
  return {
5157
4743
  Component: Outlet4,
5158
4744
  loader,
5159
4745
  handle: {
5160
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4746
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
5161
4747
  }
5162
4748
  };
5163
4749
  },
5164
4750
  children: [
5165
4751
  {
5166
4752
  path: "",
5167
- lazy: () => import("./attribute-detail-SPYDB3I5.js"),
4753
+ lazy: () => import("./attribute-detail-YJ4ZZYCL.js"),
5168
4754
  children: [
5169
4755
  {
5170
4756
  path: "edit",
@@ -5191,8 +4777,8 @@ function getRouteMap({
5191
4777
  },
5192
4778
  {
5193
4779
  path: "product-types",
5194
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
5195
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4780
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
4781
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
5196
4782
  handle: {
5197
4783
  breadcrumb: () => t("productTypes.domain"),
5198
4784
  permissions: "product_type:read"
@@ -5212,19 +4798,19 @@ function getRouteMap({
5212
4798
  {
5213
4799
  path: ":id",
5214
4800
  lazy: async () => {
5215
- const { Breadcrumb, loader } = await import("./product-type-detail-IY7TWXUQ.js");
4801
+ const { Breadcrumb, loader } = await import("./product-type-detail-A3MUWNM4.js");
5216
4802
  return {
5217
4803
  Component: Outlet4,
5218
4804
  loader,
5219
4805
  handle: {
5220
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4806
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
5221
4807
  }
5222
4808
  };
5223
4809
  },
5224
4810
  children: [
5225
4811
  {
5226
4812
  path: "",
5227
- lazy: () => import("./product-type-detail-IY7TWXUQ.js"),
4813
+ lazy: () => import("./product-type-detail-A3MUWNM4.js"),
5228
4814
  children: [
5229
4815
  {
5230
4816
  path: "edit",
@@ -5233,7 +4819,7 @@ function getRouteMap({
5233
4819
  },
5234
4820
  {
5235
4821
  path: "metadata/edit",
5236
- lazy: () => import("./product-type-metadata-DKBBQB6R.js")
4822
+ lazy: () => import("./product-type-metadata-IISED7XQ.js")
5237
4823
  }
5238
4824
  ]
5239
4825
  }
@@ -5243,7 +4829,7 @@ function getRouteMap({
5243
4829
  },
5244
4830
  {
5245
4831
  path: "publishable-api-keys",
5246
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4832
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
5247
4833
  handle: {
5248
4834
  breadcrumb: () => t("apiKeyManagement.domain.publishable"),
5249
4835
  permissions: "api_key:read"
@@ -5251,7 +4837,7 @@ function getRouteMap({
5251
4837
  children: [
5252
4838
  {
5253
4839
  path: "",
5254
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4840
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
5255
4841
  children: [
5256
4842
  {
5257
4843
  path: "",
@@ -5269,19 +4855,19 @@ function getRouteMap({
5269
4855
  {
5270
4856
  path: ":id",
5271
4857
  lazy: async () => {
5272
- const { Breadcrumb, loader } = await import("./api-key-management-detail-ZGGQBQAM.js");
4858
+ const { Breadcrumb, loader } = await import("./api-key-management-detail-ZFA3YPJ6.js");
5273
4859
  return {
5274
4860
  Component: Outlet4,
5275
4861
  loader,
5276
4862
  handle: {
5277
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4863
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
5278
4864
  }
5279
4865
  };
5280
4866
  },
5281
4867
  children: [
5282
4868
  {
5283
4869
  path: "",
5284
- lazy: () => import("./api-key-management-detail-ZGGQBQAM.js"),
4870
+ lazy: () => import("./api-key-management-detail-ZFA3YPJ6.js"),
5285
4871
  children: [
5286
4872
  {
5287
4873
  path: "edit",
@@ -5300,7 +4886,7 @@ function getRouteMap({
5300
4886
  },
5301
4887
  {
5302
4888
  path: "secret-api-keys",
5303
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4889
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
5304
4890
  handle: {
5305
4891
  breadcrumb: () => t("apiKeyManagement.domain.secret"),
5306
4892
  permissions: "api_key:read"
@@ -5308,7 +4894,7 @@ function getRouteMap({
5308
4894
  children: [
5309
4895
  {
5310
4896
  path: "",
5311
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4897
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
5312
4898
  children: [
5313
4899
  {
5314
4900
  path: "",
@@ -5326,19 +4912,19 @@ function getRouteMap({
5326
4912
  {
5327
4913
  path: ":id",
5328
4914
  lazy: async () => {
5329
- const { Breadcrumb, loader } = await import("./api-key-management-detail-ZGGQBQAM.js");
4915
+ const { Breadcrumb, loader } = await import("./api-key-management-detail-ZFA3YPJ6.js");
5330
4916
  return {
5331
4917
  Component: Outlet4,
5332
4918
  loader,
5333
4919
  handle: {
5334
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
4920
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
5335
4921
  }
5336
4922
  };
5337
4923
  },
5338
4924
  children: [
5339
4925
  {
5340
4926
  path: "",
5341
- lazy: () => import("./api-key-management-detail-ZGGQBQAM.js"),
4927
+ lazy: () => import("./api-key-management-detail-ZFA3YPJ6.js"),
5342
4928
  children: [
5343
4929
  {
5344
4930
  path: "edit",
@@ -5353,7 +4939,7 @@ function getRouteMap({
5353
4939
  },
5354
4940
  {
5355
4941
  path: "tax-regions",
5356
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
4942
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
5357
4943
  handle: {
5358
4944
  breadcrumb: () => t("taxRegions.domain"),
5359
4945
  permissions: "tax_region:read"
@@ -5366,7 +4952,7 @@ function getRouteMap({
5366
4952
  {
5367
4953
  path: "create",
5368
4954
  handle: { permissions: "tax_region:create" },
5369
- lazy: () => import("./tax-region-create-PIDKQEWT.js")
4955
+ lazy: () => import("./tax-region-create-Q2QYTIHC.js")
5370
4956
  }
5371
4957
  ]
5372
4958
  },
@@ -5375,13 +4961,13 @@ function getRouteMap({
5375
4961
  Component: Outlet4,
5376
4962
  loader: taxRegionLoader,
5377
4963
  handle: {
5378
- breadcrumb: (match) => /* @__PURE__ */ jsx17(TaxRegionDetailBreadcrumb, { ...match })
4964
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(TaxRegionDetailBreadcrumb, { ...match })
5379
4965
  },
5380
4966
  children: [
5381
4967
  {
5382
4968
  path: "",
5383
4969
  lazy: async () => {
5384
- const { Component } = await import("./tax-region-detail-7RNNZ4UE.js");
4970
+ const { Component } = await import("./tax-region-detail-AJ2O7YKC.js");
5385
4971
  return {
5386
4972
  Component
5387
4973
  };
@@ -5390,7 +4976,7 @@ function getRouteMap({
5390
4976
  {
5391
4977
  path: "edit",
5392
4978
  handle: { permissions: "tax_region:update" },
5393
- lazy: () => import("./tax-region-edit-I27QZZPB.js")
4979
+ lazy: () => import("./tax-region-edit-A6C4VTTZ.js")
5394
4980
  },
5395
4981
  {
5396
4982
  path: "provinces/create",
@@ -5398,11 +4984,11 @@ function getRouteMap({
5398
4984
  },
5399
4985
  {
5400
4986
  path: "overrides/create",
5401
- lazy: () => import("./tax-region-tax-override-create-Z6S43XQ6.js")
4987
+ lazy: () => import("./tax-region-tax-override-create-IPHOMPVG.js")
5402
4988
  },
5403
4989
  {
5404
4990
  path: "overrides/:tax_rate_id/edit",
5405
- lazy: () => import("./tax-region-tax-override-edit-4EOURL2M.js")
4991
+ lazy: () => import("./tax-region-tax-override-edit-IV57DNYU.js")
5406
4992
  },
5407
4993
  {
5408
4994
  path: "tax-rates/create",
@@ -5414,26 +5000,26 @@ function getRouteMap({
5414
5000
  },
5415
5001
  {
5416
5002
  path: "metadata/edit",
5417
- lazy: () => import("./tax-region-metadata-6YIZSRLO.js")
5003
+ lazy: () => import("./tax-region-metadata-6QI4VPCV.js")
5418
5004
  }
5419
5005
  ]
5420
5006
  },
5421
5007
  {
5422
5008
  path: "provinces/:province_id",
5423
5009
  lazy: async () => {
5424
- const { Breadcrumb, loader } = await import("./tax-region-province-detail-AHS5SRP5.js");
5010
+ const { Breadcrumb, loader } = await import("./tax-region-province-detail-SZAUBE23.js");
5425
5011
  return {
5426
5012
  Component: Outlet4,
5427
5013
  loader,
5428
5014
  handle: {
5429
- breadcrumb: (match) => /* @__PURE__ */ jsx17(Breadcrumb, { ...match })
5015
+ breadcrumb: (match) => /* @__PURE__ */ jsx14(Breadcrumb, { ...match })
5430
5016
  }
5431
5017
  };
5432
5018
  },
5433
5019
  children: [
5434
5020
  {
5435
5021
  path: "",
5436
- lazy: () => import("./tax-region-province-detail-AHS5SRP5.js"),
5022
+ lazy: () => import("./tax-region-province-detail-SZAUBE23.js"),
5437
5023
  children: [
5438
5024
  {
5439
5025
  path: "tax-rates/create",
@@ -5445,11 +5031,11 @@ function getRouteMap({
5445
5031
  },
5446
5032
  {
5447
5033
  path: "overrides/create",
5448
- lazy: () => import("./tax-region-tax-override-create-Z6S43XQ6.js")
5034
+ lazy: () => import("./tax-region-tax-override-create-IPHOMPVG.js")
5449
5035
  },
5450
5036
  {
5451
5037
  path: "overrides/:tax_rate_id/edit",
5452
- lazy: () => import("./tax-region-tax-override-edit-4EOURL2M.js")
5038
+ lazy: () => import("./tax-region-tax-override-edit-IV57DNYU.js")
5453
5039
  }
5454
5040
  ]
5455
5041
  }
@@ -5461,7 +5047,7 @@ function getRouteMap({
5461
5047
  },
5462
5048
  {
5463
5049
  path: "return-reasons",
5464
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
5050
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
5465
5051
  handle: {
5466
5052
  breadcrumb: () => t("returnReasons.domain"),
5467
5053
  permissions: "return_reason:read"
@@ -5492,7 +5078,7 @@ function getRouteMap({
5492
5078
  },
5493
5079
  {
5494
5080
  path: "refund-reasons",
5495
- element: /* @__PURE__ */ jsx17(Outlet4, {}),
5081
+ element: /* @__PURE__ */ jsx14(Outlet4, {}),
5496
5082
  handle: {
5497
5083
  breadcrumb: () => t("refundReasons.domain"),
5498
5084
  permissions: "refund_reason:read"
@@ -5500,12 +5086,12 @@ function getRouteMap({
5500
5086
  children: [
5501
5087
  {
5502
5088
  path: "",
5503
- lazy: () => import("./refund-reason-list-ABRFC3OQ.js"),
5089
+ lazy: () => import("./refund-reason-list-WGRCZWXL.js"),
5504
5090
  children: [
5505
5091
  {
5506
5092
  path: "create",
5507
5093
  handle: { permissions: "refund_reason:create" },
5508
- lazy: () => import("./refund-reason-create-P5FUFEGK.js")
5094
+ lazy: () => import("./refund-reason-create-DAOTHCMY.js")
5509
5095
  },
5510
5096
  {
5511
5097
  path: ":id",
@@ -5513,7 +5099,7 @@ function getRouteMap({
5513
5099
  {
5514
5100
  path: "edit",
5515
5101
  handle: { permissions: "refund_reason:update" },
5516
- lazy: () => import("./refund-reason-edit-AKOTWXCE.js")
5102
+ lazy: () => import("./refund-reason-edit-M3AKWJZR.js")
5517
5103
  }
5518
5104
  ]
5519
5105
  }
@@ -5530,18 +5116,18 @@ function getRouteMap({
5530
5116
  ]
5531
5117
  },
5532
5118
  {
5533
- element: /* @__PURE__ */ jsx17(PublicLayout, {}),
5119
+ element: /* @__PURE__ */ jsx14(PublicLayout, {}),
5534
5120
  children: [
5535
5121
  {
5536
- errorElement: /* @__PURE__ */ jsx17(ErrorBoundary, {}),
5122
+ errorElement: /* @__PURE__ */ jsx14(ErrorBoundary, {}),
5537
5123
  children: [
5538
5124
  {
5539
5125
  path: "/login",
5540
- lazy: () => import("./login-TZHRVYA5.js")
5126
+ lazy: () => import("./login-ZCAW7Z7Q.js")
5541
5127
  },
5542
5128
  {
5543
5129
  path: "/reset-password",
5544
- lazy: () => import("./reset-password-VJY5CXJU.js")
5130
+ lazy: () => import("./reset-password-EUAOKJDU.js")
5545
5131
  },
5546
5132
  {
5547
5133
  path: "/invite",
@@ -5561,7 +5147,7 @@ function getRouteMap({
5561
5147
 
5562
5148
  // src/app.tsx
5563
5149
  import { useMemo as useMemo7 } from "react";
5564
- import { jsx as jsx18, jsxs as jsxs11 } from "react/jsx-runtime";
5150
+ import { jsx as jsx15, jsxs as jsxs9 } from "react/jsx-runtime";
5565
5151
  function App() {
5566
5152
  const routes = useMemo7(() => {
5567
5153
  return {
@@ -5570,15 +5156,15 @@ function App() {
5570
5156
  publicRoutes: createRouteMap(getRoutesByType(customRoutes, "public"))
5571
5157
  };
5572
5158
  }, []);
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(
5159
+ return /* @__PURE__ */ jsx15(TooltipProvider, { children: /* @__PURE__ */ jsx15(HelmetProvider, { children: /* @__PURE__ */ jsx15(QueryClientProvider, { client: queryClient, children: /* @__PURE__ */ jsx15(ThemeProvider, { children: /* @__PURE__ */ jsx15(FeatureFlagProvider, { children: /* @__PURE__ */ jsxs9(
5574
5160
  ExtensionProvider,
5575
5161
  {
5576
5162
  widgets,
5577
5163
  navigation,
5578
5164
  customFields,
5579
5165
  children: [
5580
- /* @__PURE__ */ jsx18(I18n, {}),
5581
- /* @__PURE__ */ jsx18(I18nProvider, { children: /* @__PURE__ */ jsx18(
5166
+ /* @__PURE__ */ jsx15(I18n, {}),
5167
+ /* @__PURE__ */ jsx15(I18nProvider, { children: /* @__PURE__ */ jsx15(
5582
5168
  RouterProvider,
5583
5169
  {
5584
5170
  router: createBrowserRouter(getRouteMap(routes), {
@@ -5586,7 +5172,7 @@ function App() {
5586
5172
  })
5587
5173
  }
5588
5174
  ) }),
5589
- /* @__PURE__ */ jsx18(Toaster, {})
5175
+ /* @__PURE__ */ jsx15(Toaster, {})
5590
5176
  ]
5591
5177
  }
5592
5178
  ) }) }) }) }) });
@@ -5611,7 +5197,6 @@ export {
5611
5197
  _DataTable as DataTable,
5612
5198
  FileUpload,
5613
5199
  Form,
5614
- Notifications,
5615
5200
  PRODUCT_DETAIL_FIELDS,
5616
5201
  PRODUCT_DETAIL_QUERY,
5617
5202
  PermissionGuard,