@dmsi/wedgekit-react 0.0.644 → 0.0.646

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 (68) hide show
  1. package/dist/{chunk-XVWCVBVF.js → chunk-3MV3KMQH.js} +1 -1
  2. package/dist/{chunk-Z3Q7PLVD.js → chunk-3PBA2EZ5.js} +1 -1
  3. package/dist/{chunk-LN3HVXH5.js → chunk-B3T7KBDA.js} +1 -1
  4. package/dist/{chunk-VAARSN7U.js → chunk-EXCAOI2L.js} +3 -3
  5. package/dist/{chunk-OXOMO76M.js → chunk-FCGPQNS2.js} +1 -1
  6. package/dist/{chunk-J2QD64F2.js → chunk-FJXWYGB7.js} +5 -5
  7. package/dist/{chunk-V2GSI3ZX.js → chunk-HIGNJAQA.js} +2 -2
  8. package/dist/{chunk-NUFBAJ6L.js → chunk-ISRG77J6.js} +1 -1
  9. package/dist/{chunk-YXZRGZ2I.js → chunk-REC2XOPI.js} +1 -1
  10. package/dist/{chunk-K22B4L3G.js → chunk-ZSRTAMSW.js} +28 -1
  11. package/dist/components/CalendarRange.cjs +157 -154
  12. package/dist/components/CalendarRange.js +11 -11
  13. package/dist/components/CompactImagesPreview.cjs +6 -3
  14. package/dist/components/CompactImagesPreview.js +2 -2
  15. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.cjs +157 -154
  16. package/dist/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.js +11 -11
  17. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.cjs +157 -154
  18. package/dist/components/DataGrid/ColumnSelectorHeaderCell/index.js +11 -11
  19. package/dist/components/DataGrid/PinnedColumns.cjs +157 -154
  20. package/dist/components/DataGrid/PinnedColumns.js +11 -11
  21. package/dist/components/DataGrid/TableBody/LoadingCell.cjs +157 -154
  22. package/dist/components/DataGrid/TableBody/LoadingCell.js +11 -11
  23. package/dist/components/DataGrid/TableBody/TableBodyRow.cjs +157 -154
  24. package/dist/components/DataGrid/TableBody/TableBodyRow.js +11 -11
  25. package/dist/components/DataGrid/TableBody/index.cjs +157 -154
  26. package/dist/components/DataGrid/TableBody/index.js +11 -11
  27. package/dist/components/DataGrid/index.cjs +158 -155
  28. package/dist/components/DataGrid/index.js +11 -11
  29. package/dist/components/DataGrid/utils.cjs +157 -154
  30. package/dist/components/DataGrid/utils.js +11 -11
  31. package/dist/components/DataGridCell.cjs +61 -58
  32. package/dist/components/DataGridCell.js +5 -5
  33. package/dist/components/DateInput.cjs +150 -147
  34. package/dist/components/DateInput.js +11 -11
  35. package/dist/components/DateRangeInput.cjs +163 -160
  36. package/dist/components/DateRangeInput.js +11 -11
  37. package/dist/components/Menu.cjs +15 -12
  38. package/dist/components/Menu.js +3 -3
  39. package/dist/components/MenuOption.cjs +8 -5
  40. package/dist/components/MenuOption.js +2 -2
  41. package/dist/components/MobileDataGrid/ColumnList.js +1 -1
  42. package/dist/components/MobileDataGrid/ColumnSelector/index.cjs +161 -158
  43. package/dist/components/MobileDataGrid/ColumnSelector/index.js +11 -11
  44. package/dist/components/MobileDataGrid/MobileDataGridCard/index.js +1 -1
  45. package/dist/components/MobileDataGrid/MobileDataGridHeader.cjs +161 -158
  46. package/dist/components/MobileDataGrid/MobileDataGridHeader.js +11 -11
  47. package/dist/components/MobileDataGrid/RowDetailModalProvider/ModalContent.js +1 -1
  48. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.cjs +19 -16
  49. package/dist/components/MobileDataGrid/RowDetailModalProvider/index.js +4 -4
  50. package/dist/components/MobileDataGrid/index.cjs +170 -167
  51. package/dist/components/MobileDataGrid/index.js +11 -11
  52. package/dist/components/Modal.cjs +15 -12
  53. package/dist/components/Modal.js +2 -2
  54. package/dist/components/NestedMenu.cjs +11 -8
  55. package/dist/components/NestedMenu.js +2 -2
  56. package/dist/components/PDFViewer/index.cjs +31 -28
  57. package/dist/components/PDFViewer/index.js +2 -2
  58. package/dist/components/ProductImagePreview/index.cjs +18 -15
  59. package/dist/components/ProductImagePreview/index.js +2 -2
  60. package/dist/components/ProjectBar.cjs +3 -0
  61. package/dist/components/ProjectBar.js +1 -1
  62. package/dist/components/index.cjs +218 -215
  63. package/dist/components/index.js +11 -11
  64. package/dist/components/useMenuSystem.cjs +22 -19
  65. package/dist/components/useMenuSystem.js +2 -2
  66. package/dist/hooks/index.cjs +28 -0
  67. package/dist/hooks/index.js +3 -1
  68. package/package.json +1 -1
@@ -62,7 +62,7 @@ __export(DateRangeInput_exports, {
62
62
  DateRangeInput: () => DateRangeInput
63
63
  });
64
64
  module.exports = __toCommonJS(DateRangeInput_exports);
65
- var import_react40 = require("react");
65
+ var import_react41 = require("react");
66
66
  var import_react_dom5 = require("react-dom");
67
67
 
68
68
  // src/components/Input.tsx
@@ -834,7 +834,7 @@ Percentage.displayName = "Percentage";
834
834
 
835
835
  // src/components/CalendarRange.tsx
836
836
  var import_clsx42 = __toESM(require("clsx"), 1);
837
- var import_react39 = __toESM(require("react"), 1);
837
+ var import_react40 = __toESM(require("react"), 1);
838
838
  var import_polyfill = require("@js-temporal/polyfill");
839
839
 
840
840
  // src/components/DataGridCell.tsx
@@ -890,11 +890,11 @@ var CSS = /* @__PURE__ */ Object.freeze({
890
890
 
891
891
  // src/components/DataGridCell.tsx
892
892
  var import_clsx9 = __toESM(require("clsx"), 1);
893
- var import_react11 = require("react");
893
+ var import_react12 = require("react");
894
894
 
895
895
  // src/components/MenuOption.tsx
896
896
  var import_clsx7 = __toESM(require("clsx"), 1);
897
- var import_react7 = require("react");
897
+ var import_react8 = require("react");
898
898
 
899
899
  // src/hooks/useKeydown.ts
900
900
  var import_react3 = require("react");
@@ -1187,6 +1187,9 @@ function useTableLayout(initialColumns, key, autosync = true) {
1187
1187
  return { columns, setColumns: handleSaveLayout, isReady, getSavedLayout };
1188
1188
  }
1189
1189
 
1190
+ // src/hooks/useEditCell.tsx
1191
+ var import_react7 = require("react");
1192
+
1190
1193
  // src/components/Caption.tsx
1191
1194
  var import_clsx6 = __toESM(require("clsx"), 1);
1192
1195
  var import_jsx_runtime5 = require("react/jsx-runtime");
@@ -1338,12 +1341,12 @@ var MenuOption = ({
1338
1341
  onMouseMove,
1339
1342
  small = false
1340
1343
  }) => {
1341
- const uniqueId = (0, import_react7.useId)();
1342
- const internalRef = (0, import_react7.useRef)(null);
1344
+ const uniqueId = (0, import_react8.useId)();
1345
+ const internalRef = (0, import_react8.useRef)(null);
1343
1346
  const actualRef = ref || internalRef;
1344
- const menuId = (0, import_react7.useRef)(`menu-${uniqueId}`);
1347
+ const menuId = (0, import_react8.useRef)(`menu-${uniqueId}`);
1345
1348
  const isMobile = useMatchesMobile();
1346
- const [isSubMenuHovered, setIsSubMenuHovered] = (0, import_react7.useState)(false);
1349
+ const [isSubMenuHovered, setIsSubMenuHovered] = (0, import_react8.useState)(false);
1347
1350
  const handleMouseEnter = () => {
1348
1351
  if (subMenu && onSubMenuHover && !disabled) {
1349
1352
  onSubMenuHover(menuId.current, subMenuLevel);
@@ -1503,27 +1506,27 @@ function highlightMatch(text, searchValue) {
1503
1506
 
1504
1507
  // src/components/Menu.tsx
1505
1508
  var import_clsx8 = __toESM(require("clsx"), 1);
1506
- var import_react9 = require("react");
1509
+ var import_react10 = require("react");
1507
1510
  var import_react_dom = require("react-dom");
1508
1511
 
1509
1512
  // src/components/useMenuSystem.tsx
1510
- var import_react8 = require("react");
1513
+ var import_react9 = require("react");
1511
1514
  function useSubMenuSystem(mobilePositionTo) {
1512
- const [activeMenus, setActiveMenus] = (0, import_react8.useState)(
1515
+ const [activeMenus, setActiveMenus] = (0, import_react9.useState)(
1513
1516
  {}
1514
1517
  );
1515
- const [activeMenu, setActiveMenu] = (0, import_react8.useState)("");
1516
- const [currentSubMenuLevel, setCurrentSubMenuLevel] = (0, import_react8.useState)(
1518
+ const [activeMenu, setActiveMenu] = (0, import_react9.useState)("");
1519
+ const [currentSubMenuLevel, setCurrentSubMenuLevel] = (0, import_react9.useState)(
1517
1520
  null
1518
1521
  );
1519
- const menuRootRef = (0, import_react8.useRef)(null);
1520
- const subMenuRefs = (0, import_react8.useRef)({});
1521
- const hoverTimeoutRef = (0, import_react8.useRef)(null);
1522
- const closeTimeoutRef = (0, import_react8.useRef)(null);
1523
- const mouseStopTimeoutRef = (0, import_react8.useRef)(null);
1524
- const isMouseMovingRef = (0, import_react8.useRef)(false);
1525
- const pendingOpenActionRef = (0, import_react8.useRef)(null);
1526
- const pendingCloseActionRef = (0, import_react8.useRef)(null);
1522
+ const menuRootRef = (0, import_react9.useRef)(null);
1523
+ const subMenuRefs = (0, import_react9.useRef)({});
1524
+ const hoverTimeoutRef = (0, import_react9.useRef)(null);
1525
+ const closeTimeoutRef = (0, import_react9.useRef)(null);
1526
+ const mouseStopTimeoutRef = (0, import_react9.useRef)(null);
1527
+ const isMouseMovingRef = (0, import_react9.useRef)(false);
1528
+ const pendingOpenActionRef = (0, import_react9.useRef)(null);
1529
+ const pendingCloseActionRef = (0, import_react9.useRef)(null);
1527
1530
  const isMobile = useMatchesMobile();
1528
1531
  const toggleMenu = (menuId, level) => {
1529
1532
  if (closeTimeoutRef.current) {
@@ -1563,7 +1566,7 @@ function useSubMenuSystem(mobilePositionTo) {
1563
1566
  return newActiveMenus;
1564
1567
  });
1565
1568
  };
1566
- const executePendingActions = (0, import_react8.useCallback)(() => {
1569
+ const executePendingActions = (0, import_react9.useCallback)(() => {
1567
1570
  if (pendingCloseActionRef.current) {
1568
1571
  pendingCloseActionRef.current();
1569
1572
  pendingCloseActionRef.current = null;
@@ -1652,7 +1655,7 @@ function useSubMenuSystem(mobilePositionTo) {
1652
1655
  const isMenuActive = (menuId, level) => {
1653
1656
  return activeMenus[level] === menuId;
1654
1657
  };
1655
- (0, import_react8.useEffect)(() => {
1658
+ (0, import_react9.useEffect)(() => {
1656
1659
  const handleClickOutside = (event) => {
1657
1660
  var _a;
1658
1661
  if (Object.keys(activeMenus).length === 0) return;
@@ -1671,7 +1674,7 @@ function useSubMenuSystem(mobilePositionTo) {
1671
1674
  document.removeEventListener("mousedown", handleClickOutside);
1672
1675
  };
1673
1676
  }, [activeMenus]);
1674
- (0, import_react8.useEffect)(() => {
1677
+ (0, import_react9.useEffect)(() => {
1675
1678
  return () => {
1676
1679
  if (hoverTimeoutRef.current) {
1677
1680
  clearTimeout(hoverTimeoutRef.current);
@@ -1749,13 +1752,13 @@ function useSubMenuSystem(mobilePositionTo) {
1749
1752
  };
1750
1753
  }
1751
1754
  function useMenuPosition(elementRef, position = "bottom", options) {
1752
- const [menuPosition, setMenuPosition] = (0, import_react8.useState)({
1755
+ const [menuPosition, setMenuPosition] = (0, import_react9.useState)({
1753
1756
  top: 0,
1754
1757
  left: 0,
1755
1758
  minWidth: 0
1756
1759
  });
1757
1760
  const isMobile = options == null ? void 0 : options.isMobile;
1758
- const updatePosition = (0, import_react8.useCallback)(() => {
1761
+ const updatePosition = (0, import_react9.useCallback)(() => {
1759
1762
  var _a, _b, _c;
1760
1763
  if (!(elementRef == null ? void 0 : elementRef.current)) return;
1761
1764
  const triggerRect = elementRef.current.getBoundingClientRect();
@@ -1803,7 +1806,7 @@ function useMenuPosition(elementRef, position = "bottom", options) {
1803
1806
  minWidth: triggerRect.width
1804
1807
  });
1805
1808
  }, [elementRef, position, options == null ? void 0 : options.menuRef, options == null ? void 0 : options.topOffset, isMobile]);
1806
- (0, import_react8.useEffect)(() => {
1809
+ (0, import_react9.useEffect)(() => {
1807
1810
  if (!(options == null ? void 0 : options.isOpen) || !(options == null ? void 0 : options.setIsOpen)) return;
1808
1811
  const handleClickOutside = (event) => {
1809
1812
  var _a, _b, _c, _d, _e;
@@ -1829,7 +1832,7 @@ function useMenuPosition(elementRef, position = "bottom", options) {
1829
1832
  options == null ? void 0 : options.menuRef,
1830
1833
  options == null ? void 0 : options.additionalRefs
1831
1834
  ]);
1832
- (0, import_react8.useEffect)(() => {
1835
+ (0, import_react9.useEffect)(() => {
1833
1836
  updatePosition();
1834
1837
  const resizeObserver = new ResizeObserver(updatePosition);
1835
1838
  if (elementRef == null ? void 0 : elementRef.current) {
@@ -1910,9 +1913,9 @@ var Menu = (_a) => {
1910
1913
  "menuName",
1911
1914
  "calculateMinMaxHeight"
1912
1915
  ]);
1913
- const internalRef = (0, import_react9.useRef)(null);
1916
+ const internalRef = (0, import_react10.useRef)(null);
1914
1917
  const actualRef = ref || internalRef;
1915
- const [maxHeight, setMaxHeight] = (0, import_react9.useState)("180px");
1918
+ const [maxHeight, setMaxHeight] = (0, import_react10.useState)("180px");
1916
1919
  const isMobile = useMatchesMobile();
1917
1920
  const { menuPosition, updatePosition } = useMenuPosition(
1918
1921
  isMobile && mobilePositionTo ? mobilePositionTo : positionTo,
@@ -1925,7 +1928,7 @@ var Menu = (_a) => {
1925
1928
  isMobile: !!(isMobile && mobilePositionTo)
1926
1929
  }
1927
1930
  );
1928
- (0, import_react9.useEffect)(() => {
1931
+ (0, import_react10.useEffect)(() => {
1929
1932
  if (calculateMinMaxHeight) {
1930
1933
  return;
1931
1934
  }
@@ -1949,7 +1952,7 @@ var Menu = (_a) => {
1949
1952
  cancelAnimationFrame(raf);
1950
1953
  };
1951
1954
  }, [actualRef.current, customMaxHeight, calculateMinMaxHeight]);
1952
- (0, import_react9.useEffect)(() => {
1955
+ (0, import_react10.useEffect)(() => {
1953
1956
  if (!calculateMinMaxHeight) {
1954
1957
  return;
1955
1958
  }
@@ -1960,14 +1963,14 @@ var Menu = (_a) => {
1960
1963
  setMaxHeight(`${calculatedMaxHeight}px`);
1961
1964
  }
1962
1965
  }, [actualRef.current, positionTo == null ? void 0 : positionTo.current, calculateMinMaxHeight]);
1963
- (0, import_react9.useEffect)(() => {
1966
+ (0, import_react10.useEffect)(() => {
1964
1967
  if (!show) {
1965
1968
  return;
1966
1969
  }
1967
1970
  initializeMenuFocus();
1968
1971
  updatePosition();
1969
1972
  }, [show, updatePosition]);
1970
- (0, import_react9.useEffect)(() => {
1973
+ (0, import_react10.useEffect)(() => {
1971
1974
  if (!show || !setShow) {
1972
1975
  return;
1973
1976
  }
@@ -2121,7 +2124,7 @@ var Menu = (_a) => {
2121
2124
  Menu.displayName = "Menu";
2122
2125
 
2123
2126
  // src/components/Search.tsx
2124
- var import_react10 = require("react");
2127
+ var import_react11 = require("react");
2125
2128
  var import_jsx_runtime8 = require("react/jsx-runtime");
2126
2129
  var Search = (_a) => {
2127
2130
  var _b = _a, {
@@ -2149,14 +2152,14 @@ var Search = (_a) => {
2149
2152
  "removeRoundness",
2150
2153
  "autocompletePadding"
2151
2154
  ]);
2152
- const inputRef = (0, import_react10.useRef)(null);
2153
- const inputContainerRef = (0, import_react10.useRef)(null);
2154
- const preventFocusOnInitialRender = (0, import_react10.useRef)(true);
2155
- const [show, setShow] = (0, import_react10.useState)(false);
2156
- const [clearing, setClearing] = (0, import_react10.useState)(false);
2157
- const uniqueId = (0, import_react10.useId)();
2155
+ const inputRef = (0, import_react11.useRef)(null);
2156
+ const inputContainerRef = (0, import_react11.useRef)(null);
2157
+ const preventFocusOnInitialRender = (0, import_react11.useRef)(true);
2158
+ const [show, setShow] = (0, import_react11.useState)(false);
2159
+ const [clearing, setClearing] = (0, import_react11.useState)(false);
2160
+ const uniqueId = (0, import_react11.useId)();
2158
2161
  const searchMenuName = `search-menu-${uniqueId}`;
2159
- (0, import_react10.useEffect)(() => {
2162
+ (0, import_react11.useEffect)(() => {
2160
2163
  var _a2;
2161
2164
  if (preventFocusOnInitialRender.current) {
2162
2165
  preventFocusOnInitialRender.current = false;
@@ -2240,7 +2243,7 @@ Search.displayName = "Search";
2240
2243
 
2241
2244
  // src/components/DataGridCell.tsx
2242
2245
  var import_jsx_runtime9 = require("react/jsx-runtime");
2243
- var DataGridCell = (0, import_react11.memo)(
2246
+ var DataGridCell = (0, import_react12.memo)(
2244
2247
  (_a) => {
2245
2248
  var _b = _a, {
2246
2249
  id,
@@ -2282,10 +2285,10 @@ var DataGridCell = (0, import_react11.memo)(
2282
2285
  "testid"
2283
2286
  ]);
2284
2287
  const Element = type === "header" ? "th" : "td";
2285
- const timerRef = (0, import_react11.useRef)(null);
2286
- const [isGrabbing, setIsGrabbing] = (0, import_react11.useState)(false);
2287
- const [isPointerPressed, setIsPointerPressed] = (0, import_react11.useState)(false);
2288
- (0, import_react11.useEffect)(() => {
2288
+ const timerRef = (0, import_react12.useRef)(null);
2289
+ const [isGrabbing, setIsGrabbing] = (0, import_react12.useState)(false);
2290
+ const [isPointerPressed, setIsPointerPressed] = (0, import_react12.useState)(false);
2291
+ (0, import_react12.useEffect)(() => {
2289
2292
  return () => {
2290
2293
  if (timerRef.current) {
2291
2294
  clearTimeout(timerRef.current);
@@ -2395,12 +2398,12 @@ function DataCellHeader(_a) {
2395
2398
  "useMenuDefaultMinWidth"
2396
2399
  ]);
2397
2400
  var _a2;
2398
- const [showMenu, setShowMenu] = (0, import_react11.useState)(false);
2399
- const [filter, setFilter] = (0, import_react11.useState)(
2401
+ const [showMenu, setShowMenu] = (0, import_react12.useState)(false);
2402
+ const [filter, setFilter] = (0, import_react12.useState)(
2400
2403
  (_a2 = header.column.getFilterValue()) != null ? _a2 : ""
2401
2404
  );
2402
- const ref = (0, import_react11.useRef)(null);
2403
- const predeterminedPinned = (0, import_react11.useRef)(false);
2405
+ const ref = (0, import_react12.useRef)(null);
2406
+ const predeterminedPinned = (0, import_react12.useRef)(false);
2404
2407
  const { column, getContext } = header;
2405
2408
  const { id: columnId, setFilterValue } = column;
2406
2409
  const {
@@ -2410,14 +2413,14 @@ function DataCellHeader(_a) {
2410
2413
  listeners: subMenuListeners,
2411
2414
  mobileHide
2412
2415
  } = useSubMenuSystem(node ? node : ref);
2413
- (0, import_react11.useEffect)(() => {
2416
+ (0, import_react12.useEffect)(() => {
2414
2417
  var _a3, _b2, _c;
2415
2418
  const columnPinning = (_a3 = getContext().table.options.initialState) == null ? void 0 : _a3.columnPinning;
2416
2419
  const left = (_b2 = columnPinning == null ? void 0 : columnPinning.left) != null ? _b2 : [];
2417
2420
  const right = (_c = columnPinning == null ? void 0 : columnPinning.right) != null ? _c : [];
2418
2421
  predeterminedPinned.current = [...left, ...right].includes(columnId);
2419
2422
  }, [columnId, getContext]);
2420
- (0, import_react11.useEffect)(() => {
2423
+ (0, import_react12.useEffect)(() => {
2421
2424
  const handler = setTimeout(() => {
2422
2425
  setFilterValue(filter);
2423
2426
  }, 500);
@@ -2680,7 +2683,7 @@ function DragAlongCell(_a) {
2680
2683
  DragAlongCell.displayName = "DragAlongCell";
2681
2684
 
2682
2685
  // src/components/DataGrid/index.tsx
2683
- var import_react16 = __toESM(require("react"), 1);
2686
+ var import_react17 = __toESM(require("react"), 1);
2684
2687
  var import_react_table3 = require("@tanstack/react-table");
2685
2688
  var import_core = require("@dnd-kit/core");
2686
2689
  var import_sortable2 = require("@dnd-kit/sortable");
@@ -2708,7 +2711,7 @@ function getSortIcon(sort, nextSort = false) {
2708
2711
  }
2709
2712
 
2710
2713
  // src/components/DataGrid/PinnedColumns.tsx
2711
- var import_react15 = __toESM(require("react"), 1);
2714
+ var import_react16 = __toESM(require("react"), 1);
2712
2715
 
2713
2716
  // src/components/DataGrid/TableBody/index.tsx
2714
2717
  var import_react_virtual = require("@tanstack/react-virtual");
@@ -2717,7 +2720,7 @@ var import_clsx12 = __toESM(require("clsx"), 1);
2717
2720
  // src/components/DataGrid/TableBody/TableBodyRow.tsx
2718
2721
  var import_clsx11 = __toESM(require("clsx"), 1);
2719
2722
  var import_react_table = require("@tanstack/react-table");
2720
- var import_react12 = __toESM(require("react"), 1);
2723
+ var import_react13 = __toESM(require("react"), 1);
2721
2724
  var import_jsx_runtime11 = require("react/jsx-runtime");
2722
2725
  var valueFormatters = {
2723
2726
  date: (value) => typeof value === "string" ? formatDate(value) : "",
@@ -2785,7 +2788,7 @@ function TableBodyRow({
2785
2788
  const cellFormat = (_a2 = cell.column.columnDef.meta) == null ? void 0 : _a2.format;
2786
2789
  const cellValue = cellFormat && isValueFormatterKey(cellFormat) ? valueFormatters[cellFormat](cell.getValue()) : cell.getValue();
2787
2790
  const cellAlignment = (_c = (_b = cell.column.columnDef.meta) == null ? void 0 : _b.align) != null ? _c : typeof cellValue === "number" ? "right" : "left";
2788
- return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react12.default.Fragment, { children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2791
+ return ((_d = cell.column.columnDef.meta) == null ? void 0 : _d.useCustomRenderer) ? /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_react13.default.Fragment, { children: (0, import_react_table.flexRender)(cell.column.columnDef.cell, cell.getContext()) }, cell.id) : /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(
2789
2792
  CellElement,
2790
2793
  {
2791
2794
  id: id ? `${id}-row-${row.id}-cell-${cell.id}` : void 0,
@@ -2999,10 +3002,10 @@ function TableBody({
2999
3002
  }
3000
3003
 
3001
3004
  // src/components/DataGrid/ColumnSelectorHeaderCell/index.tsx
3002
- var import_react14 = require("react");
3005
+ var import_react15 = require("react");
3003
3006
 
3004
3007
  // src/components/DataGrid/ColumnSelectorHeaderCell/ColumnSelectorMenuOption.tsx
3005
- var import_react13 = require("react");
3008
+ var import_react14 = require("react");
3006
3009
  var import_jsx_runtime14 = require("react/jsx-runtime");
3007
3010
  function ColumnSelectorMenuOption({
3008
3011
  id,
@@ -3010,7 +3013,7 @@ function ColumnSelectorMenuOption({
3010
3013
  column,
3011
3014
  toggleColumnVisibility
3012
3015
  }) {
3013
- const [isVisible, setIsVisible] = (0, import_react13.useState)(column.getIsVisible());
3016
+ const [isVisible, setIsVisible] = (0, import_react14.useState)(column.getIsVisible());
3014
3017
  const label = typeof column.columnDef.header === "string" ? column.columnDef.header : null;
3015
3018
  return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(MenuOption, { id, testid, defaultChecked: isVisible, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(
3016
3019
  Checkbox,
@@ -3036,8 +3039,8 @@ function ColumnSelectorHeaderCell({
3036
3039
  toggleColumnVisibility,
3037
3040
  resetColumnVisibility
3038
3041
  }) {
3039
- const ref = (0, import_react14.useRef)(null);
3040
- const [show, setShow] = (0, import_react14.useState)(false);
3042
+ const ref = (0, import_react15.useRef)(null);
3043
+ const [show, setShow] = (0, import_react15.useState)(false);
3041
3044
  return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)(
3042
3045
  DataGridCell,
3043
3046
  {
@@ -3206,7 +3209,7 @@ function PinnedColumns(_a) {
3206
3209
  header.id
3207
3210
  );
3208
3211
  }
3209
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react15.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3212
+ return /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_react16.default.Fragment, { children: ((_f = header.column.columnDef.meta) == null ? void 0 : _f.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(DataGridCell, { type: "header", component: "checkbox", locked: true, children: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
3210
3213
  Checkbox,
3211
3214
  {
3212
3215
  checked: allSelectedAcrossPages,
@@ -3288,23 +3291,23 @@ function DataGrid({
3288
3291
  ref
3289
3292
  }) {
3290
3293
  var _a, _b, _c, _d, _e, _f, _g;
3291
- (0, import_react16.useImperativeHandle)(ref, () => ({
3294
+ (0, import_react17.useImperativeHandle)(ref, () => ({
3292
3295
  getSavedLayout: () => {
3293
3296
  return getSavedLayout();
3294
3297
  }
3295
3298
  }));
3296
- const [localSorting, setLocalSorting] = (0, import_react16.useState)([]);
3297
- const [localColumnFilters, setLocalColumnFilters] = (0, import_react16.useState)([]);
3298
- const [localRowSelection, setLocalRowSelection] = (0, import_react16.useState)({});
3299
+ const [localSorting, setLocalSorting] = (0, import_react17.useState)([]);
3300
+ const [localColumnFilters, setLocalColumnFilters] = (0, import_react17.useState)([]);
3301
+ const [localRowSelection, setLocalRowSelection] = (0, import_react17.useState)({});
3299
3302
  const {
3300
3303
  columns: tableColumns,
3301
3304
  setColumns: setTableColumns,
3302
3305
  getSavedLayout
3303
3306
  } = useTableLayout(columns, id != null ? id : testid);
3304
- const [columnOrder, setColumnOrder] = (0, import_react16.useState)(
3307
+ const [columnOrder, setColumnOrder] = (0, import_react17.useState)(
3305
3308
  tableColumns.map((c) => c.id)
3306
3309
  );
3307
- const [columnVisibility, setColumnVisibility] = (0, import_react16.useState)(
3310
+ const [columnVisibility, setColumnVisibility] = (0, import_react17.useState)(
3308
3311
  Object.fromEntries(
3309
3312
  tableColumns.filter((column) => !!column.id).map((column) => {
3310
3313
  var _a2, _b2;
@@ -3312,7 +3315,7 @@ function DataGrid({
3312
3315
  })
3313
3316
  )
3314
3317
  );
3315
- const updateColumnVisibility = (0, import_react16.useCallback)(
3318
+ const updateColumnVisibility = (0, import_react17.useCallback)(
3316
3319
  (updateOrder) => {
3317
3320
  setColumnVisibility(
3318
3321
  Object.fromEntries(
@@ -3326,7 +3329,7 @@ function DataGrid({
3326
3329
  },
3327
3330
  [tableColumns]
3328
3331
  );
3329
- const resetDefaultColumnVisibility = (0, import_react16.useCallback)(() => {
3332
+ const resetDefaultColumnVisibility = (0, import_react17.useCallback)(() => {
3330
3333
  setTableColumns((prev) => {
3331
3334
  columns.forEach((column) => {
3332
3335
  var _a2, _b2;
@@ -3342,7 +3345,7 @@ function DataGrid({
3342
3345
  return [...prev];
3343
3346
  }, true);
3344
3347
  }, [columns, setTableColumns]);
3345
- (0, import_react16.useEffect)(() => {
3348
+ (0, import_react17.useEffect)(() => {
3346
3349
  updateColumnVisibility(true);
3347
3350
  }, [updateColumnVisibility]);
3348
3351
  const sortingState = pagination ? externalSorting != null ? externalSorting : localSorting : localSorting;
@@ -3358,7 +3361,7 @@ function DataGrid({
3358
3361
  (onColumnFiltersChange != null ? onColumnFiltersChange : setLocalColumnFilters)(value);
3359
3362
  } : setLocalColumnFilters;
3360
3363
  const rowSelection = externalRowSelection != null ? externalRowSelection : localRowSelection;
3361
- const setRowSelection = (0, import_react16.useCallback)(
3364
+ const setRowSelection = (0, import_react17.useCallback)(
3362
3365
  (updaterOrValue) => {
3363
3366
  if (pagination) {
3364
3367
  const value = typeof updaterOrValue === "function" ? updaterOrValue(externalRowSelection != null ? externalRowSelection : {}) : updaterOrValue;
@@ -3372,9 +3375,9 @@ function DataGrid({
3372
3375
  },
3373
3376
  [externalRowSelection, onRowSelectionChange, pagination]
3374
3377
  );
3375
- const dndId = (0, import_react16.useId)();
3376
- const containerRef = import_react16.default.useRef(null);
3377
- const toggleColumnVisibility = (0, import_react16.useCallback)(
3378
+ const dndId = (0, import_react17.useId)();
3379
+ const containerRef = import_react17.default.useRef(null);
3380
+ const toggleColumnVisibility = (0, import_react17.useCallback)(
3378
3381
  (columnId, isVisible) => {
3379
3382
  setTableColumns((prev) => {
3380
3383
  const persistedIndex = prev.findIndex((col) => col.id === columnId);
@@ -3622,7 +3625,7 @@ function DataGrid({
3622
3625
  header.id
3623
3626
  );
3624
3627
  }
3625
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react16.default.Fragment, { children: ((_e2 = header.column.columnDef.meta) == null ? void 0 : _e2.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3628
+ return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(import_react17.default.Fragment, { children: ((_e2 = header.column.columnDef.meta) == null ? void 0 : _e2.checkbox) ? /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
3626
3629
  DataGridCell,
3627
3630
  {
3628
3631
  id: id ? `${id}-header-${header.id}` : void 0,
@@ -3828,7 +3831,7 @@ function adaptTableStateSetter(setter) {
3828
3831
  }
3829
3832
 
3830
3833
  // src/components/Select.tsx
3831
- var import_react17 = require("react");
3834
+ var import_react18 = require("react");
3832
3835
  var import_clsx15 = __toESM(require("clsx"), 1);
3833
3836
  var import_jsx_runtime18 = require("react/jsx-runtime");
3834
3837
  var Select = (_a) => {
@@ -3862,11 +3865,11 @@ var Select = (_a) => {
3862
3865
  "value"
3863
3866
  ]);
3864
3867
  var _a2;
3865
- const inputRef = (0, import_react17.useRef)(null);
3866
- const inputContainerRef = (0, import_react17.useRef)(null);
3867
- const preventFocusOnInitialRender = (0, import_react17.useRef)(true);
3868
- const [show, setShow] = (0, import_react17.useState)(false);
3869
- (0, import_react17.useEffect)(() => {
3868
+ const inputRef = (0, import_react18.useRef)(null);
3869
+ const inputContainerRef = (0, import_react18.useRef)(null);
3870
+ const preventFocusOnInitialRender = (0, import_react18.useRef)(true);
3871
+ const [show, setShow] = (0, import_react18.useState)(false);
3872
+ (0, import_react18.useEffect)(() => {
3870
3873
  var _a3;
3871
3874
  if (preventFocusOnInitialRender.current) {
3872
3875
  preventFocusOnInitialRender.current = false;
@@ -4288,7 +4291,7 @@ Button.displayName = "Button";
4288
4291
 
4289
4292
  // src/components/Tooltip.tsx
4290
4293
  var import_clsx19 = __toESM(require("clsx"), 1);
4291
- var import_react18 = require("react");
4294
+ var import_react19 = require("react");
4292
4295
  var import_react_dom2 = require("react-dom");
4293
4296
  var import_jsx_runtime23 = require("react/jsx-runtime");
4294
4297
  var Tooltip = ({
@@ -4301,11 +4304,11 @@ var Tooltip = ({
4301
4304
  offset = 8,
4302
4305
  keepHidden = false
4303
4306
  }) => {
4304
- const ref = (0, import_react18.useRef)(null);
4305
- const tooltipRef = (0, import_react18.useRef)(null);
4306
- const [tooltipPosition, setTooltipPosition] = (0, import_react18.useState)({ top: 0, left: 0 });
4307
- const [isVisible, setIsVisible] = (0, import_react18.useState)(false);
4308
- const [removeOpacity, setRemoveOpacity] = (0, import_react18.useState)(false);
4307
+ const ref = (0, import_react19.useRef)(null);
4308
+ const tooltipRef = (0, import_react19.useRef)(null);
4309
+ const [tooltipPosition, setTooltipPosition] = (0, import_react19.useState)({ top: 0, left: 0 });
4310
+ const [isVisible, setIsVisible] = (0, import_react19.useState)(false);
4311
+ const [removeOpacity, setRemoveOpacity] = (0, import_react19.useState)(false);
4309
4312
  const updatePosition = () => {
4310
4313
  if (!ref.current || !tooltipRef.current) return;
4311
4314
  const rect = ref.current.getBoundingClientRect();
@@ -4344,14 +4347,14 @@ var Tooltip = ({
4344
4347
  setIsVisible(false);
4345
4348
  setRemoveOpacity(false);
4346
4349
  };
4347
- (0, import_react18.useEffect)(() => {
4350
+ (0, import_react19.useEffect)(() => {
4348
4351
  if (isVisible && tooltipRef.current) {
4349
4352
  requestAnimationFrame(() => {
4350
4353
  updatePosition();
4351
4354
  });
4352
4355
  }
4353
4356
  }, [isVisible]);
4354
- (0, import_react18.useEffect)(() => {
4357
+ (0, import_react19.useEffect)(() => {
4355
4358
  if (isVisible) {
4356
4359
  window.addEventListener("resize", updatePosition);
4357
4360
  return () => window.removeEventListener("resize", updatePosition);
@@ -4409,7 +4412,7 @@ var Tooltip = ({
4409
4412
  Tooltip.displayName = "Tooltip";
4410
4413
 
4411
4414
  // src/components/DateInput.tsx
4412
- var import_react19 = require("react");
4415
+ var import_react20 = require("react");
4413
4416
  var import_react_dom3 = require("react-dom");
4414
4417
  var import_jsx_runtime24 = require("react/jsx-runtime");
4415
4418
  var DateInput = (_a) => {
@@ -4434,24 +4437,24 @@ var DateInput = (_a) => {
4434
4437
  "label",
4435
4438
  "isDateAvailable"
4436
4439
  ]);
4437
- const [visible, setVisible] = (0, import_react19.useState)(false);
4438
- const [inputValue, setInputValue] = (0, import_react19.useState)("");
4439
- const [isTyping, setIsTyping] = (0, import_react19.useState)(false);
4440
- const popoverRef = (0, import_react19.useRef)(null);
4441
- const triggerRef = (0, import_react19.useRef)(null);
4442
- const rootRef = (0, import_react19.useRef)(null);
4443
- const [calendarPosition, setCalendarPosition] = (0, import_react19.useState)({
4440
+ const [visible, setVisible] = (0, import_react20.useState)(false);
4441
+ const [inputValue, setInputValue] = (0, import_react20.useState)("");
4442
+ const [isTyping, setIsTyping] = (0, import_react20.useState)(false);
4443
+ const popoverRef = (0, import_react20.useRef)(null);
4444
+ const triggerRef = (0, import_react20.useRef)(null);
4445
+ const rootRef = (0, import_react20.useRef)(null);
4446
+ const [calendarPosition, setCalendarPosition] = (0, import_react20.useState)({
4444
4447
  top: 0,
4445
4448
  left: 0,
4446
4449
  width: 0
4447
4450
  });
4448
4451
  const [from, to] = [value, ""];
4449
- (0, import_react19.useEffect)(() => {
4452
+ (0, import_react20.useEffect)(() => {
4450
4453
  if (!isTyping) {
4451
4454
  setInputValue(formatDisplayValue(from));
4452
4455
  }
4453
4456
  }, [from, isTyping]);
4454
- (0, import_react19.useLayoutEffect)(() => {
4457
+ (0, import_react20.useLayoutEffect)(() => {
4455
4458
  if (visible) {
4456
4459
  updatePosition();
4457
4460
  }
@@ -4466,7 +4469,7 @@ var DateInput = (_a) => {
4466
4469
  });
4467
4470
  }
4468
4471
  };
4469
- (0, import_react19.useEffect)(() => {
4472
+ (0, import_react20.useEffect)(() => {
4470
4473
  updatePosition();
4471
4474
  const resizeObserver = new ResizeObserver(updatePosition);
4472
4475
  if (triggerRef.current) {
@@ -4478,7 +4481,7 @@ var DateInput = (_a) => {
4478
4481
  window.removeEventListener("scroll", updatePosition);
4479
4482
  };
4480
4483
  }, []);
4481
- (0, import_react19.useEffect)(() => {
4484
+ (0, import_react20.useEffect)(() => {
4482
4485
  const handleKeyDown2 = (event) => {
4483
4486
  var _a2;
4484
4487
  if (event.key === "Escape" && popoverRef.current) {
@@ -4491,7 +4494,7 @@ var DateInput = (_a) => {
4491
4494
  document.removeEventListener("keydown", handleKeyDown2);
4492
4495
  };
4493
4496
  });
4494
- (0, import_react19.useEffect)(() => {
4497
+ (0, import_react20.useEffect)(() => {
4495
4498
  const handleClickOutside = (event) => {
4496
4499
  if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
4497
4500
  setVisible(false);
@@ -4712,14 +4715,14 @@ Heading3.displayName = "Heading3";
4712
4715
  var import_jsx_runtime29 = require("react/jsx-runtime");
4713
4716
 
4714
4717
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
4715
- var import_react22 = require("react");
4718
+ var import_react23 = require("react");
4716
4719
 
4717
4720
  // src/components/MobileDataGrid/GridContextProvider/useGridContext.ts
4718
- var import_react21 = require("react");
4721
+ var import_react22 = require("react");
4719
4722
 
4720
4723
  // src/components/MobileDataGrid/GridContextProvider/GridContext.tsx
4721
- var import_react20 = require("react");
4722
- var GridContext = (0, import_react20.createContext)(null);
4724
+ var import_react21 = require("react");
4725
+ var GridContext = (0, import_react21.createContext)(null);
4723
4726
 
4724
4727
  // src/components/MobileDataGrid/ColumnSelector/index.tsx
4725
4728
  var import_jsx_runtime30 = require("react/jsx-runtime");
@@ -4728,12 +4731,12 @@ var import_jsx_runtime30 = require("react/jsx-runtime");
4728
4731
  var import_jsx_runtime31 = require("react/jsx-runtime");
4729
4732
 
4730
4733
  // src/components/MobileDataGrid/GridContextProvider/index.tsx
4731
- var import_react23 = require("react");
4734
+ var import_react24 = require("react");
4732
4735
  var import_jsx_runtime32 = require("react/jsx-runtime");
4733
4736
 
4734
4737
  // src/components/Modal.tsx
4735
4738
  var import_clsx28 = __toESM(require("clsx"), 1);
4736
- var import_react25 = require("react");
4739
+ var import_react26 = require("react");
4737
4740
 
4738
4741
  // src/components/ModalHeader.tsx
4739
4742
  var import_clsx24 = __toESM(require("clsx"), 1);
@@ -4909,10 +4912,10 @@ var import_react_dom4 = require("react-dom");
4909
4912
  var import_react_use = require("react-use");
4910
4913
 
4911
4914
  // src/components/useMounted.tsx
4912
- var import_react24 = require("react");
4915
+ var import_react25 = require("react");
4913
4916
  var useMounted = () => {
4914
- const [isMounted, setIsMounted] = (0, import_react24.useState)(false);
4915
- (0, import_react24.useEffect)(() => {
4917
+ const [isMounted, setIsMounted] = (0, import_react25.useState)(false);
4918
+ (0, import_react25.useEffect)(() => {
4916
4919
  setIsMounted(true);
4917
4920
  return () => setIsMounted(false);
4918
4921
  }, []);
@@ -5006,12 +5009,12 @@ var Modal = ({
5006
5009
  }) => {
5007
5010
  var _a;
5008
5011
  const mounted = useMounted();
5009
- const modalRef = (0, import_react25.useRef)(null);
5010
- const bgRef = (0, import_react25.useRef)(null);
5012
+ const modalRef = (0, import_react26.useRef)(null);
5013
+ const bgRef = (0, import_react26.useRef)(null);
5011
5014
  const wasOpen = (0, import_react_use.usePrevious)(open);
5012
5015
  const isMobile = useMatchesMobile();
5013
5016
  const computedFixedHeightScrolling = isMobile || fixedHeightScrolling;
5014
- (0, import_react25.useEffect)(() => {
5017
+ (0, import_react26.useEffect)(() => {
5015
5018
  if (!mounted) return;
5016
5019
  if (!modalRef.current || !bgRef.current) {
5017
5020
  console.error("Modal or background reference is not set.");
@@ -5031,7 +5034,7 @@ var Modal = ({
5031
5034
  bgFadeIn(bgRef.current);
5032
5035
  }
5033
5036
  }, [mounted, onClose, open, wasOpen]);
5034
- const handleKeyDown = (0, import_react25.useCallback)(
5037
+ const handleKeyDown = (0, import_react26.useCallback)(
5035
5038
  (e) => {
5036
5039
  if (e.key === "Escape") {
5037
5040
  if (onClose) {
@@ -5042,12 +5045,12 @@ var Modal = ({
5042
5045
  },
5043
5046
  [onClose]
5044
5047
  );
5045
- const handleClose = (0, import_react25.useCallback)(() => {
5048
+ const handleClose = (0, import_react26.useCallback)(() => {
5046
5049
  if (onClose) {
5047
5050
  onClose();
5048
5051
  }
5049
5052
  }, [onClose]);
5050
- (0, import_react25.useEffect)(() => {
5053
+ (0, import_react26.useEffect)(() => {
5051
5054
  if (open) {
5052
5055
  document.addEventListener("keyup", handleKeyDown);
5053
5056
  }
@@ -5055,7 +5058,7 @@ var Modal = ({
5055
5058
  document.removeEventListener("keyup", handleKeyDown);
5056
5059
  };
5057
5060
  }, [open, handleKeyDown]);
5058
- (0, import_react25.useEffect)(() => {
5061
+ (0, import_react26.useEffect)(() => {
5059
5062
  if (!open) return;
5060
5063
  const scrollY = window.scrollY;
5061
5064
  const body = document.body;
@@ -5076,7 +5079,7 @@ var Modal = ({
5076
5079
  };
5077
5080
  }, [open]);
5078
5081
  const { sizeClass } = (_a = sizes[size]) != null ? _a : sizes.small;
5079
- const backgroundClickHandler = (0, import_react25.useCallback)(
5082
+ const backgroundClickHandler = (0, import_react26.useCallback)(
5080
5083
  (e) => {
5081
5084
  const target = e.target;
5082
5085
  const currentTarget = e.currentTarget;
@@ -5185,10 +5188,10 @@ var import_jsx_runtime42 = require("react/jsx-runtime");
5185
5188
  var import_jsx_runtime43 = require("react/jsx-runtime");
5186
5189
 
5187
5190
  // src/components/ProductImagePreview/Thumbnail.tsx
5188
- var import_react27 = require("react");
5191
+ var import_react28 = require("react");
5189
5192
 
5190
5193
  // src/components/ImagePlaceholder.tsx
5191
- var import_react26 = require("react");
5194
+ var import_react27 = require("react");
5192
5195
  var import_jsx_runtime44 = require("react/jsx-runtime");
5193
5196
 
5194
5197
  // src/components/ProductImagePreview/Thumbnail.tsx
@@ -5199,11 +5202,11 @@ var import_clsx31 = __toESM(require("clsx"), 1);
5199
5202
  var import_jsx_runtime46 = require("react/jsx-runtime");
5200
5203
 
5201
5204
  // src/components/ProductImagePreview/ProductPrimaryImage.tsx
5202
- var import_react28 = require("react");
5205
+ var import_react29 = require("react");
5203
5206
  var import_jsx_runtime47 = require("react/jsx-runtime");
5204
5207
 
5205
5208
  // src/components/ProductImagePreview/ZoomWindow.tsx
5206
- var import_react29 = require("react");
5209
+ var import_react30 = require("react");
5207
5210
 
5208
5211
  // src/components/Surface.tsx
5209
5212
  var import_clsx32 = __toESM(require("clsx"), 1);
@@ -5248,17 +5251,17 @@ var import_clsx33 = require("clsx");
5248
5251
  var import_jsx_runtime50 = require("react/jsx-runtime");
5249
5252
 
5250
5253
  // src/components/ProductImagePreview/MobileImageCarousel.tsx
5251
- var import_react30 = require("react");
5254
+ var import_react31 = require("react");
5252
5255
  var import_jsx_runtime51 = require("react/jsx-runtime");
5253
5256
 
5254
5257
  // src/components/ProductImagePreview/useProductImagePreview.ts
5255
- var import_react31 = require("react");
5258
+ var import_react32 = require("react");
5256
5259
 
5257
5260
  // src/components/ProductImagePreview/index.tsx
5258
5261
  var import_jsx_runtime52 = require("react/jsx-runtime");
5259
5262
 
5260
5263
  // src/components/CompactImagesPreview.tsx
5261
- var import_react32 = require("react");
5264
+ var import_react33 = require("react");
5262
5265
  var import_clsx34 = __toESM(require("clsx"), 1);
5263
5266
  var import_jsx_runtime53 = require("react/jsx-runtime");
5264
5267
 
@@ -5267,12 +5270,12 @@ var import_clsx35 = __toESM(require("clsx"), 1);
5267
5270
  var import_jsx_runtime54 = require("react/jsx-runtime");
5268
5271
 
5269
5272
  // src/components/ListGroup.tsx
5270
- var import_react33 = require("react");
5273
+ var import_react34 = require("react");
5271
5274
  var import_clsx36 = __toESM(require("clsx"), 1);
5272
5275
  var import_jsx_runtime55 = require("react/jsx-runtime");
5273
5276
 
5274
5277
  // src/components/Pagination.tsx
5275
- var import_react34 = require("react");
5278
+ var import_react35 = require("react");
5276
5279
  var import_clsx37 = __toESM(require("clsx"), 1);
5277
5280
  var import_jsx_runtime56 = require("react/jsx-runtime");
5278
5281
  var Pagination = ({
@@ -5284,7 +5287,7 @@ var Pagination = ({
5284
5287
  className,
5285
5288
  disabled
5286
5289
  }) => {
5287
- const goTo = (0, import_react34.useCallback)(
5290
+ const goTo = (0, import_react35.useCallback)(
5288
5291
  (page) => {
5289
5292
  if (disabled) return;
5290
5293
  onPageChange(page);
@@ -5301,7 +5304,7 @@ var Pagination = ({
5301
5304
  goTo(currentPage + 1);
5302
5305
  }
5303
5306
  };
5304
- const pageTokens = (0, import_react34.useMemo)(() => {
5307
+ const pageTokens = (0, import_react35.useMemo)(() => {
5305
5308
  if (totalPages <= 5) {
5306
5309
  return Array.from({ length: totalPages }, (_, i) => i + 1);
5307
5310
  }
@@ -5424,21 +5427,21 @@ var import_jsx_runtime57 = require("react/jsx-runtime");
5424
5427
  var import_jsx_runtime58 = require("react/jsx-runtime");
5425
5428
 
5426
5429
  // src/components/SearchResultImage/index.tsx
5427
- var import_react35 = require("react");
5430
+ var import_react36 = require("react");
5428
5431
  var import_jsx_runtime59 = require("react/jsx-runtime");
5429
5432
 
5430
5433
  // src/components/Alert.tsx
5431
5434
  var import_clsx38 = __toESM(require("clsx"), 1);
5432
- var import_react36 = require("react");
5435
+ var import_react37 = require("react");
5433
5436
  var import_jsx_runtime60 = require("react/jsx-runtime");
5434
5437
 
5435
5438
  // src/components/OrderCheckIcon.tsx
5436
5439
  var import_jsx_runtime61 = require("react/jsx-runtime");
5437
5440
 
5438
5441
  // src/components/EditingContext.tsx
5439
- var import_react37 = require("react");
5442
+ var import_react38 = require("react");
5440
5443
  var import_jsx_runtime62 = require("react/jsx-runtime");
5441
- var EditingContext = (0, import_react37.createContext)(null);
5444
+ var EditingContext = (0, import_react38.createContext)(null);
5442
5445
 
5443
5446
  // src/components/AccessCard.tsx
5444
5447
  var import_clsx40 = __toESM(require("clsx"), 1);
@@ -5572,7 +5575,7 @@ var import_jsx_runtime64 = require("react/jsx-runtime");
5572
5575
 
5573
5576
  // src/components/AccessCardGroup.tsx
5574
5577
  var import_clsx41 = __toESM(require("clsx"), 1);
5575
- var import_react38 = require("react");
5578
+ var import_react39 = require("react");
5576
5579
  var import_jsx_runtime65 = require("react/jsx-runtime");
5577
5580
 
5578
5581
  // src/components/CalendarRange.tsx
@@ -5687,20 +5690,20 @@ function CalendarRange({
5687
5690
  const fromDate = parseDate(from);
5688
5691
  const toDate = parseDate(to);
5689
5692
  const today = import_polyfill.Temporal.Now.plainDateISO();
5690
- const [baseMonth, setBaseMonth] = (0, import_react39.useState)(
5693
+ const [baseMonth, setBaseMonth] = (0, import_react40.useState)(
5691
5694
  fromDate != null ? fromDate : today.with({ day: 1 })
5692
5695
  );
5693
- const [selecting, setSelecting] = (0, import_react39.useState)("from");
5694
- const [pendingFrom, setPendingFrom] = (0, import_react39.useState)(void 0);
5695
- const [hoveredDate, setHoveredDate] = (0, import_react39.useState)(void 0);
5696
- (0, import_react39.useEffect)(() => {
5696
+ const [selecting, setSelecting] = (0, import_react40.useState)("from");
5697
+ const [pendingFrom, setPendingFrom] = (0, import_react40.useState)(void 0);
5698
+ const [hoveredDate, setHoveredDate] = (0, import_react40.useState)(void 0);
5699
+ (0, import_react40.useEffect)(() => {
5697
5700
  if (fromDate) {
5698
5701
  setBaseMonth(fromDate.with({ day: 1 }));
5699
5702
  } else if (toDate) {
5700
5703
  setBaseMonth(toDate.with({ day: 1 }));
5701
5704
  }
5702
5705
  }, [from, to]);
5703
- (0, import_react39.useEffect)(() => {
5706
+ (0, import_react40.useEffect)(() => {
5704
5707
  if (fromDate && toDate) {
5705
5708
  setSelecting("from");
5706
5709
  setPendingFrom(void 0);
@@ -5846,14 +5849,14 @@ function CalendarPane({
5846
5849
  const years = Array.from({ length: 100 }).map(
5847
5850
  (_, i) => baseMonth.year - 50 + i
5848
5851
  );
5849
- const [monthMenuOpen, setMonthMenuOpen] = (0, import_react39.useState)(false);
5850
- const [yearMenuOpen, setYearMenuOpen] = (0, import_react39.useState)(false);
5851
- const monthMenuRef = (0, import_react39.useRef)(null);
5852
- const yearMenuRef = (0, import_react39.useRef)(null);
5852
+ const [monthMenuOpen, setMonthMenuOpen] = (0, import_react40.useState)(false);
5853
+ const [yearMenuOpen, setYearMenuOpen] = (0, import_react40.useState)(false);
5854
+ const monthMenuRef = (0, import_react40.useRef)(null);
5855
+ const yearMenuRef = (0, import_react40.useRef)(null);
5853
5856
  const month = getMonthData(offset);
5854
5857
  const totalCells = 42;
5855
5858
  const emptyCells = month.firstDayOffset;
5856
- return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react39.default.Fragment, { children: [
5859
+ return /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(import_react40.default.Fragment, { children: [
5857
5860
  /* @__PURE__ */ (0, import_jsx_runtime66.jsxs)(
5858
5861
  "div",
5859
5862
  {
@@ -6067,19 +6070,19 @@ var DateRangeInput = (_a) => {
6067
6070
  "isDateAvailable",
6068
6071
  "onPendingFromChange"
6069
6072
  ]);
6070
- const [visible, setVisible] = (0, import_react40.useState)(false);
6071
- const [inputValue, setInputValue] = (0, import_react40.useState)("");
6072
- const [isTyping, setIsTyping] = (0, import_react40.useState)(false);
6073
- const popoverRef = (0, import_react40.useRef)(null);
6074
- const rootRef = (0, import_react40.useRef)(null);
6075
- const triggerRef = (0, import_react40.useRef)(null);
6076
- const [calendarPosition, setCalendarPosition] = (0, import_react40.useState)({
6073
+ const [visible, setVisible] = (0, import_react41.useState)(false);
6074
+ const [inputValue, setInputValue] = (0, import_react41.useState)("");
6075
+ const [isTyping, setIsTyping] = (0, import_react41.useState)(false);
6076
+ const popoverRef = (0, import_react41.useRef)(null);
6077
+ const rootRef = (0, import_react41.useRef)(null);
6078
+ const triggerRef = (0, import_react41.useRef)(null);
6079
+ const [calendarPosition, setCalendarPosition] = (0, import_react41.useState)({
6077
6080
  top: 0,
6078
6081
  left: 0,
6079
6082
  width: 0
6080
6083
  });
6081
6084
  const [from, to] = value.split("|");
6082
- (0, import_react40.useEffect)(() => {
6085
+ (0, import_react41.useEffect)(() => {
6083
6086
  if (!isTyping) {
6084
6087
  const displayValue = formatDisplayValue2(from, to);
6085
6088
  if (displayValue) {
@@ -6087,7 +6090,7 @@ var DateRangeInput = (_a) => {
6087
6090
  }
6088
6091
  }
6089
6092
  }, [from, to, isTyping, disableRange]);
6090
- (0, import_react40.useLayoutEffect)(() => {
6093
+ (0, import_react41.useLayoutEffect)(() => {
6091
6094
  if (visible) {
6092
6095
  updatePosition();
6093
6096
  }
@@ -6102,7 +6105,7 @@ var DateRangeInput = (_a) => {
6102
6105
  });
6103
6106
  }
6104
6107
  };
6105
- (0, import_react40.useEffect)(() => {
6108
+ (0, import_react41.useEffect)(() => {
6106
6109
  updatePosition();
6107
6110
  const resizeObserver = new ResizeObserver(updatePosition);
6108
6111
  if (triggerRef.current) {
@@ -6114,7 +6117,7 @@ var DateRangeInput = (_a) => {
6114
6117
  window.removeEventListener("scroll", updatePosition);
6115
6118
  };
6116
6119
  }, []);
6117
- (0, import_react40.useEffect)(() => {
6120
+ (0, import_react41.useEffect)(() => {
6118
6121
  const handleKeyDown2 = (event) => {
6119
6122
  var _a2;
6120
6123
  if (event.key === "Escape" && popoverRef.current) {
@@ -6127,7 +6130,7 @@ var DateRangeInput = (_a) => {
6127
6130
  document.removeEventListener("keydown", handleKeyDown2);
6128
6131
  };
6129
6132
  }, []);
6130
- (0, import_react40.useEffect)(() => {
6133
+ (0, import_react41.useEffect)(() => {
6131
6134
  const handleClickOutside = (event) => {
6132
6135
  if (popoverRef.current && !popoverRef.current.contains(event.target) && triggerRef.current && !triggerRef.current.contains(event.target)) {
6133
6136
  setVisible(false);