@gomeniucivan/ui 1.0.10 → 1.0.11

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 (3) hide show
  1. package/dist/index.cjs +751 -569
  2. package/dist/index.js +690 -511
  3. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- var React58 = require('react');
3
+ var React59 = require('react');
4
4
  var lucideReact = require('lucide-react');
5
5
  var jsxRuntime = require('react/jsx-runtime');
6
6
  var clsx = require('clsx');
@@ -13,7 +13,6 @@ var useEmblaCarousel = require('embla-carousel-react');
13
13
  var RechartsPrimitive = require('recharts');
14
14
  var cmdk = require('cmdk');
15
15
  var dateFns = require('date-fns');
16
- require('@gomeniucivan/ui/style.css');
17
16
  var sonner = require('sonner');
18
17
  var vaul = require('vaul');
19
18
  var inputOtp = require('input-otp');
@@ -44,7 +43,7 @@ function _interopNamespace(e) {
44
43
  return Object.freeze(n);
45
44
  }
46
45
 
47
- var React58__namespace = /*#__PURE__*/_interopNamespace(React58);
46
+ var React59__namespace = /*#__PURE__*/_interopNamespace(React59);
48
47
  var useEmblaCarousel__default = /*#__PURE__*/_interopDefault(useEmblaCarousel);
49
48
  var RechartsPrimitive__namespace = /*#__PURE__*/_interopNamespace(RechartsPrimitive);
50
49
  var ResizablePrimitive__namespace = /*#__PURE__*/_interopNamespace(ResizablePrimitive);
@@ -143,7 +142,7 @@ var jsx = (type, props, key) => jsxRuntime.jsx(type, sanitizeProps(type, props),
143
142
  var jsxs = (type, props, key) => jsxRuntime.jsxs(type, sanitizeProps(type, props), key);
144
143
 
145
144
  // src/lib/router.tsx
146
- var RouterContext = React58.createContext(null);
145
+ var RouterContext = React59.createContext(null);
147
146
  var globalNavigate = null;
148
147
  function getPathname() {
149
148
  if (typeof window === "undefined") {
@@ -152,8 +151,8 @@ function getPathname() {
152
151
  return window.location.pathname || "/";
153
152
  }
154
153
  function RouterProvider({ children }) {
155
- const [pathname, setPathname] = React58.useState(() => getPathname());
156
- const navigate = React58.useCallback((path, options = {}) => {
154
+ const [pathname, setPathname] = React59.useState(() => getPathname());
155
+ const navigate = React59.useCallback((path, options = {}) => {
157
156
  if (typeof window === "undefined") {
158
157
  return;
159
158
  }
@@ -164,7 +163,7 @@ function RouterProvider({ children }) {
164
163
  }
165
164
  setPathname(getPathname());
166
165
  }, []);
167
- React58.useEffect(() => {
166
+ React59.useEffect(() => {
168
167
  globalNavigate = navigate;
169
168
  const handlePopState = () => {
170
169
  setPathname(getPathname());
@@ -177,21 +176,21 @@ function RouterProvider({ children }) {
177
176
  }
178
177
  };
179
178
  }, [navigate]);
180
- const value = React58.useMemo(
179
+ const value = React59.useMemo(
181
180
  () => ({ pathname, navigate }),
182
181
  [pathname, navigate]
183
182
  );
184
183
  return /* @__PURE__ */ jsx(RouterContext.Provider, { value, children });
185
184
  }
186
185
  function usePathname() {
187
- const context = React58.useContext(RouterContext);
186
+ const context = React59.useContext(RouterContext);
188
187
  if (!context) {
189
188
  throw new Error("usePathname must be used within a RouterProvider");
190
189
  }
191
190
  return context.pathname;
192
191
  }
193
192
  function useNavigate() {
194
- const context = React58.useContext(RouterContext);
193
+ const context = React59.useContext(RouterContext);
195
194
  if (!context) {
196
195
  throw new Error("useNavigate must be used within a RouterProvider");
197
196
  }
@@ -370,7 +369,7 @@ function createStore(initializer) {
370
369
  return { getState, setState, subscribe };
371
370
  }
372
371
  function useStore(store, selector) {
373
- return React58.useSyncExternalStore(
372
+ return React59.useSyncExternalStore(
374
373
  (notify) => store.subscribe(() => notify()),
375
374
  () => selector(store.getState()),
376
375
  () => selector(store.getState())
@@ -379,6 +378,143 @@ function useStore(store, selector) {
379
378
 
380
379
  // src/lib/constants.ts
381
380
  var FIELD_HEIGHT_MOBILE_CLASS = "h-10 md:h-9";
381
+
382
+ // src/lib/virtual-keyboard.ts
383
+ var KEYBOARD_HEIGHT_THRESHOLD = 80;
384
+ var KEYBOARD_DETECTION_TIMEOUT = 600;
385
+ var isVirtualKeyboardLikelyDevice = false;
386
+ var hasAttemptedVirtualKeyboardDetection = false;
387
+ var pendingKeyboardDetection = null;
388
+ var isReducedMotionPreferred = () => typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
389
+ var scrollElementIntoView = (element) => {
390
+ if (!element || typeof element.scrollIntoView !== "function") {
391
+ return;
392
+ }
393
+ const prefersReducedMotion = isReducedMotionPreferred();
394
+ const scroll = () => element.scrollIntoView({
395
+ behavior: prefersReducedMotion ? "auto" : "smooth",
396
+ block: "center",
397
+ inline: "nearest"
398
+ });
399
+ if (typeof window !== "undefined" && typeof window.requestAnimationFrame === "function") {
400
+ window.requestAnimationFrame(scroll);
401
+ return;
402
+ }
403
+ scroll();
404
+ };
405
+ var getKeyboardOverlap = (viewport) => {
406
+ const windowHeight = typeof window !== "undefined" ? window.innerHeight : 0;
407
+ const overlap = windowHeight - viewport.height - viewport.offsetTop;
408
+ return Math.max(0, overlap);
409
+ };
410
+ var detectVirtualKeyboardDevice = () => {
411
+ if (isVirtualKeyboardLikelyDevice) {
412
+ return Promise.resolve(true);
413
+ }
414
+ if (hasAttemptedVirtualKeyboardDetection) {
415
+ return Promise.resolve(false);
416
+ }
417
+ if (typeof window === "undefined") {
418
+ hasAttemptedVirtualKeyboardDetection = true;
419
+ return Promise.resolve(false);
420
+ }
421
+ const viewport = window.visualViewport;
422
+ if (!viewport) {
423
+ hasAttemptedVirtualKeyboardDetection = true;
424
+ return Promise.resolve(false);
425
+ }
426
+ if (pendingKeyboardDetection) {
427
+ return pendingKeyboardDetection;
428
+ }
429
+ pendingKeyboardDetection = new Promise((resolve) => {
430
+ let resolved = false;
431
+ let timeoutId;
432
+ const finalize = (value) => {
433
+ if (resolved) {
434
+ return;
435
+ }
436
+ resolved = true;
437
+ viewport.removeEventListener("resize", handleViewportChange);
438
+ viewport.removeEventListener("scroll", handleViewportChange);
439
+ if (typeof timeoutId === "number") {
440
+ window.clearTimeout(timeoutId);
441
+ }
442
+ if (value) {
443
+ isVirtualKeyboardLikelyDevice = true;
444
+ } else {
445
+ hasAttemptedVirtualKeyboardDetection = true;
446
+ }
447
+ resolve(value);
448
+ };
449
+ const handleViewportChange = () => {
450
+ const overlap = getKeyboardOverlap(viewport);
451
+ if (overlap > KEYBOARD_HEIGHT_THRESHOLD) {
452
+ finalize(true);
453
+ }
454
+ };
455
+ timeoutId = window.setTimeout(() => finalize(false), KEYBOARD_DETECTION_TIMEOUT);
456
+ handleViewportChange();
457
+ if (!resolved) {
458
+ viewport.addEventListener("resize", handleViewportChange, { passive: true });
459
+ viewport.addEventListener("scroll", handleViewportChange, { passive: true });
460
+ }
461
+ }).finally(() => {
462
+ pendingKeyboardDetection = null;
463
+ });
464
+ return pendingKeyboardDetection;
465
+ };
466
+ var isElementFullyVisibleWithinViewport = (element) => {
467
+ if (typeof window === "undefined") {
468
+ return true;
469
+ }
470
+ const rect = element.getBoundingClientRect();
471
+ const viewport = window.visualViewport;
472
+ if (!viewport) {
473
+ const viewportHeight = window.innerHeight || 0;
474
+ return rect.top >= 0 && rect.bottom <= viewportHeight;
475
+ }
476
+ const viewportTop = viewport.offsetTop;
477
+ const viewportBottom = viewportTop + viewport.height;
478
+ return rect.top >= viewportTop && rect.bottom <= viewportBottom;
479
+ };
480
+ var maybeScrollElementIntoView = (element) => {
481
+ if (!element) {
482
+ return;
483
+ }
484
+ detectVirtualKeyboardDevice().then((keyboardDevice) => {
485
+ if (!keyboardDevice) {
486
+ return;
487
+ }
488
+ if (typeof document !== "undefined" && document.activeElement !== element) {
489
+ return;
490
+ }
491
+ if (!element.isConnected) {
492
+ return;
493
+ }
494
+ if (isElementFullyVisibleWithinViewport(element)) {
495
+ return;
496
+ }
497
+ const triggerScroll = () => scrollElementIntoView(element);
498
+ if (typeof window !== "undefined" && typeof window.requestAnimationFrame === "function") {
499
+ window.requestAnimationFrame(triggerScroll);
500
+ return;
501
+ }
502
+ triggerScroll();
503
+ });
504
+ };
505
+ var __virtualKeyboardTesting = {
506
+ get isVirtualKeyboardLikelyDevice() {
507
+ return isVirtualKeyboardLikelyDevice;
508
+ },
509
+ get hasAttemptedVirtualKeyboardDetection() {
510
+ return hasAttemptedVirtualKeyboardDetection;
511
+ },
512
+ reset() {
513
+ isVirtualKeyboardLikelyDevice = false;
514
+ hasAttemptedVirtualKeyboardDetection = false;
515
+ pendingKeyboardDetection = null;
516
+ }
517
+ };
382
518
  function useDataTableInstance({
383
519
  data,
384
520
  columns,
@@ -387,11 +523,11 @@ function useDataTableInstance({
387
523
  defaultPageSize,
388
524
  getRowId
389
525
  }) {
390
- const [rowSelection, setRowSelection] = React58__namespace.useState({});
391
- const [columnVisibility, setColumnVisibility] = React58__namespace.useState({});
392
- const [columnFilters, setColumnFilters] = React58__namespace.useState([]);
393
- const [sorting, setSorting] = React58__namespace.useState([]);
394
- const [pagination, setPagination] = React58__namespace.useState({
526
+ const [rowSelection, setRowSelection] = React59__namespace.useState({});
527
+ const [columnVisibility, setColumnVisibility] = React59__namespace.useState({});
528
+ const [columnFilters, setColumnFilters] = React59__namespace.useState([]);
529
+ const [sorting, setSorting] = React59__namespace.useState([]);
530
+ const [pagination, setPagination] = React59__namespace.useState({
395
531
  pageIndex: defaultPageIndex != null ? defaultPageIndex : 0,
396
532
  pageSize: defaultPageSize != null ? defaultPageSize : 10
397
533
  });
@@ -558,7 +694,7 @@ var buttonVariants = classVarianceAuthority.cva(
558
694
  }
559
695
  }
560
696
  );
561
- var Button = React58__namespace.forwardRef(
697
+ var Button = React59__namespace.forwardRef(
562
698
  ({
563
699
  className,
564
700
  variant,
@@ -1059,8 +1195,8 @@ function CalendarDayButton({
1059
1195
  ...props
1060
1196
  }) {
1061
1197
  const defaultClassNames = reactDayPicker.getDefaultClassNames();
1062
- const ref = React58__namespace.useRef(null);
1063
- React58__namespace.useEffect(() => {
1198
+ const ref = React59__namespace.useRef(null);
1199
+ React59__namespace.useEffect(() => {
1064
1200
  var _a2;
1065
1201
  if (modifiers.focused) (_a2 = ref.current) == null ? void 0 : _a2.focus();
1066
1202
  }, [modifiers.focused]);
@@ -1165,9 +1301,9 @@ function CardFooter({ className, ...props }) {
1165
1301
  }
1166
1302
  );
1167
1303
  }
1168
- var CarouselContext = React58__namespace.createContext(null);
1304
+ var CarouselContext = React59__namespace.createContext(null);
1169
1305
  function useCarousel() {
1170
- const context = React58__namespace.useContext(CarouselContext);
1306
+ const context = React59__namespace.useContext(CarouselContext);
1171
1307
  if (!context) {
1172
1308
  throw new Error("useCarousel must be used within a <Carousel />");
1173
1309
  }
@@ -1189,20 +1325,20 @@ function Carousel({
1189
1325
  },
1190
1326
  plugins
1191
1327
  );
1192
- const [canScrollPrev, setCanScrollPrev] = React58__namespace.useState(false);
1193
- const [canScrollNext, setCanScrollNext] = React58__namespace.useState(false);
1194
- const onSelect = React58__namespace.useCallback((api2) => {
1328
+ const [canScrollPrev, setCanScrollPrev] = React59__namespace.useState(false);
1329
+ const [canScrollNext, setCanScrollNext] = React59__namespace.useState(false);
1330
+ const onSelect = React59__namespace.useCallback((api2) => {
1195
1331
  if (!api2) return;
1196
1332
  setCanScrollPrev(api2.canScrollPrev());
1197
1333
  setCanScrollNext(api2.canScrollNext());
1198
1334
  }, []);
1199
- const scrollPrev = React58__namespace.useCallback(() => {
1335
+ const scrollPrev = React59__namespace.useCallback(() => {
1200
1336
  api == null ? void 0 : api.scrollPrev();
1201
1337
  }, [api]);
1202
- const scrollNext = React58__namespace.useCallback(() => {
1338
+ const scrollNext = React59__namespace.useCallback(() => {
1203
1339
  api == null ? void 0 : api.scrollNext();
1204
1340
  }, [api]);
1205
- const handleKeyDown = React58__namespace.useCallback(
1341
+ const handleKeyDown = React59__namespace.useCallback(
1206
1342
  (event) => {
1207
1343
  if (event.key === "ArrowLeft") {
1208
1344
  event.preventDefault();
@@ -1214,11 +1350,11 @@ function Carousel({
1214
1350
  },
1215
1351
  [scrollPrev, scrollNext]
1216
1352
  );
1217
- React58__namespace.useEffect(() => {
1353
+ React59__namespace.useEffect(() => {
1218
1354
  if (!api || !setApi) return;
1219
1355
  setApi(api);
1220
1356
  }, [api, setApi]);
1221
- React58__namespace.useEffect(() => {
1357
+ React59__namespace.useEffect(() => {
1222
1358
  if (!api) return;
1223
1359
  onSelect(api);
1224
1360
  api.on("reInit", onSelect);
@@ -1351,9 +1487,9 @@ function CarouselNext({
1351
1487
  );
1352
1488
  }
1353
1489
  var THEMES = { light: "", dark: ".dark" };
1354
- var ChartContext = React58__namespace.createContext(null);
1490
+ var ChartContext = React59__namespace.createContext(null);
1355
1491
  function useChart() {
1356
- const context = React58__namespace.useContext(ChartContext);
1492
+ const context = React59__namespace.useContext(ChartContext);
1357
1493
  if (!context) {
1358
1494
  throw new Error("useChart must be used within a <ChartContainer />");
1359
1495
  }
@@ -1366,7 +1502,7 @@ function ChartContainer({
1366
1502
  config,
1367
1503
  ...props
1368
1504
  }) {
1369
- const uniqueId = React58__namespace.useId();
1505
+ const uniqueId = React59__namespace.useId();
1370
1506
  const chartId = `chart-${id || uniqueId.replace(/:/g, "")}`;
1371
1507
  return /* @__PURE__ */ jsx(ChartContext.Provider, { value: { config }, children: /* @__PURE__ */ jsxs(
1372
1508
  "div",
@@ -1428,7 +1564,7 @@ function ChartTooltipContent({
1428
1564
  labelKey
1429
1565
  }) {
1430
1566
  const { config } = useChart();
1431
- const tooltipLabel = React58__namespace.useMemo(() => {
1567
+ const tooltipLabel = React59__namespace.useMemo(() => {
1432
1568
  var _a2;
1433
1569
  if (hideLabel || !(payload == null ? void 0 : payload.length)) {
1434
1570
  return null;
@@ -1582,7 +1718,7 @@ function getPayloadConfigFromPayload(config, payload, key) {
1582
1718
  }
1583
1719
  return configLabelKey in config ? config[configLabelKey] : config[key];
1584
1720
  }
1585
- var Checkbox = React58__namespace.forwardRef(function Checkbox2({ className, ...props }, ref) {
1721
+ var Checkbox = React59__namespace.forwardRef(function Checkbox2({ className, ...props }, ref) {
1586
1722
  return /* @__PURE__ */ jsx(
1587
1723
  radixUi.Checkbox.Root,
1588
1724
  {
@@ -2287,7 +2423,7 @@ function sanitizeErrors(errors) {
2287
2423
  }, {});
2288
2424
  }
2289
2425
  function useForm(config) {
2290
- const [state, setState] = React58.useState({
2426
+ const [state, setState] = React59.useState({
2291
2427
  values: config.initialValues,
2292
2428
  errors: {},
2293
2429
  fieldErrors: {},
@@ -2295,7 +2431,7 @@ function useForm(config) {
2295
2431
  isSubmitting: false,
2296
2432
  isValid: false
2297
2433
  });
2298
- const validateForm = React58.useCallback((values = state.values) => {
2434
+ const validateForm = React59.useCallback((values = state.values) => {
2299
2435
  const validationErrors = config.validate ? config.validate(values) : {};
2300
2436
  const mergedErrors = sanitizeErrors({
2301
2437
  ...validationErrors,
@@ -2309,7 +2445,7 @@ function useForm(config) {
2309
2445
  }));
2310
2446
  return isValid;
2311
2447
  }, [config.validate, state.fieldErrors, state.values]);
2312
- const setFieldValue = React58.useCallback((field, value) => {
2448
+ const setFieldValue = React59.useCallback((field, value) => {
2313
2449
  setState((prev) => {
2314
2450
  const newValues = { ...prev.values, [field]: value };
2315
2451
  const newFieldErrors = { ...prev.fieldErrors };
@@ -2329,13 +2465,13 @@ function useForm(config) {
2329
2465
  };
2330
2466
  });
2331
2467
  }, [config.validate]);
2332
- const setFieldTouched = React58.useCallback((field, touched = true) => {
2468
+ const setFieldTouched = React59.useCallback((field, touched = true) => {
2333
2469
  setState((prev) => ({
2334
2470
  ...prev,
2335
2471
  touched: { ...prev.touched, [field]: touched }
2336
2472
  }));
2337
2473
  }, []);
2338
- const setFieldError = React58.useCallback((field, error) => {
2474
+ const setFieldError = React59.useCallback((field, error) => {
2339
2475
  setState((prev) => {
2340
2476
  const newFieldErrors = { ...prev.fieldErrors };
2341
2477
  if (error) {
@@ -2357,16 +2493,16 @@ function useForm(config) {
2357
2493
  };
2358
2494
  });
2359
2495
  }, [config.validate]);
2360
- const handleChange = React58.useCallback((e) => {
2496
+ const handleChange = React59.useCallback((e) => {
2361
2497
  const { name, value } = e.target;
2362
2498
  setFieldValue(name, value);
2363
2499
  }, [setFieldValue]);
2364
- const handleBlur = React58.useCallback((e) => {
2500
+ const handleBlur = React59.useCallback((e) => {
2365
2501
  const { name } = e.target;
2366
2502
  setFieldTouched(name, true);
2367
2503
  validateForm();
2368
2504
  }, [setFieldTouched, validateForm]);
2369
- const handleSubmit = React58.useCallback(async (e) => {
2505
+ const handleSubmit = React59.useCallback(async (e) => {
2370
2506
  if (e) {
2371
2507
  e.preventDefault();
2372
2508
  e.stopPropagation();
@@ -2395,7 +2531,7 @@ function useForm(config) {
2395
2531
  setState((prev) => ({ ...prev, isSubmitting: false }));
2396
2532
  }
2397
2533
  }, [config.onSubmit, validateForm, state.values]);
2398
- const resetForm = React58.useCallback(() => {
2534
+ const resetForm = React59.useCallback(() => {
2399
2535
  setState({
2400
2536
  values: config.initialValues,
2401
2537
  errors: {},
@@ -2456,8 +2592,8 @@ function getIsMobile() {
2456
2592
  return widthMatch || uaMatch || userAgentDataMobile;
2457
2593
  }
2458
2594
  function useIsMobile() {
2459
- const [isMobile, setIsMobile] = React58__namespace.useState(() => getIsMobile());
2460
- React58__namespace.useEffect(() => {
2595
+ const [isMobile, setIsMobile] = React59__namespace.useState(() => getIsMobile());
2596
+ React59__namespace.useEffect(() => {
2461
2597
  const mql = window.matchMedia(`(max-width: ${MOBILE_BREAKPOINT - 1}px)`);
2462
2598
  const onChange = () => {
2463
2599
  setIsMobile(getIsMobile());
@@ -2490,11 +2626,11 @@ var createDefaultState = (initialState) => ({
2490
2626
  ...initialState
2491
2627
  });
2492
2628
  var useMobileHeaderState = (initialState) => {
2493
- const defaultState = React58.useMemo(() => createDefaultState(initialState), [initialState]);
2494
- const [navigationStack, setNavigationStack] = React58.useState([defaultState]);
2629
+ const defaultState = React59.useMemo(() => createDefaultState(initialState), [initialState]);
2630
+ const [navigationStack, setNavigationStack] = React59.useState([defaultState]);
2495
2631
  const currentState = navigationStack[navigationStack.length - 1];
2496
2632
  const canGoBack = navigationStack.length > 1;
2497
- const setHeader = React58.useCallback(
2633
+ const setHeader = React59.useCallback(
2498
2634
  (state) => {
2499
2635
  setNavigationStack((prev) => {
2500
2636
  const newStack = [...prev];
@@ -2505,15 +2641,15 @@ var useMobileHeaderState = (initialState) => {
2505
2641
  },
2506
2642
  [defaultState]
2507
2643
  );
2508
- const navigateTo = React58.useCallback((state) => {
2644
+ const navigateTo = React59.useCallback((state) => {
2509
2645
  setNavigationStack((prev) => [...prev, { ...defaultState, ...state }]);
2510
2646
  }, [defaultState]);
2511
- const navigateBack = React58.useCallback(() => {
2647
+ const navigateBack = React59.useCallback(() => {
2512
2648
  if (canGoBack) {
2513
2649
  setNavigationStack((prev) => prev.slice(0, -1));
2514
2650
  }
2515
2651
  }, [canGoBack]);
2516
- const resetNavigation = React58.useCallback(
2652
+ const resetNavigation = React59.useCallback(
2517
2653
  (initialState2) => {
2518
2654
  setNavigationStack([createDefaultState(initialState2 != null ? initialState2 : defaultState)]);
2519
2655
  },
@@ -2533,7 +2669,7 @@ var useMobileHeaderState = (initialState) => {
2533
2669
  var getMobileHeaderContext = () => {
2534
2670
  const globalObject = globalThis;
2535
2671
  if (!globalObject.__GOMENIUCIVAN_MOBILE_HEADER_CONTEXT__) {
2536
- globalObject.__GOMENIUCIVAN_MOBILE_HEADER_CONTEXT__ = React58.createContext(null);
2672
+ globalObject.__GOMENIUCIVAN_MOBILE_HEADER_CONTEXT__ = React59.createContext(null);
2537
2673
  }
2538
2674
  return globalObject.__GOMENIUCIVAN_MOBILE_HEADER_CONTEXT__;
2539
2675
  };
@@ -2543,7 +2679,7 @@ var MobileHeaderProvider = ({ initialState, children }) => {
2543
2679
  return /* @__PURE__ */ jsx(MobileHeaderContext.Provider, { value, children });
2544
2680
  };
2545
2681
  var useMobileHeader = (initialState) => {
2546
- const context = React58.useContext(MobileHeaderContext);
2682
+ const context = React59.useContext(MobileHeaderContext);
2547
2683
  if (context) {
2548
2684
  return context;
2549
2685
  }
@@ -2633,11 +2769,11 @@ var registerNavigationListeners = (onStart, onComplete) => {
2633
2769
  };
2634
2770
  };
2635
2771
  var RouteProgressBar = ({ color, framework }) => {
2636
- const [isActive, setIsActive] = React58.useState(false);
2637
- const [progress, setProgress] = React58.useState(0);
2638
- const animationTimeoutRef = React58.useRef(null);
2639
- const hideTimeoutRef = React58.useRef(null);
2640
- const start = React58.useCallback(() => {
2772
+ const [isActive, setIsActive] = React59.useState(false);
2773
+ const [progress, setProgress] = React59.useState(0);
2774
+ const animationTimeoutRef = React59.useRef(null);
2775
+ const hideTimeoutRef = React59.useRef(null);
2776
+ const start = React59.useCallback(() => {
2641
2777
  if (hideTimeoutRef.current) {
2642
2778
  window.clearTimeout(hideTimeoutRef.current);
2643
2779
  hideTimeoutRef.current = null;
@@ -2645,7 +2781,7 @@ var RouteProgressBar = ({ color, framework }) => {
2645
2781
  setIsActive(true);
2646
2782
  setProgress((current) => current > 0 && current < 0.2 ? current : 0.2);
2647
2783
  }, []);
2648
- const complete = React58.useCallback(() => {
2784
+ const complete = React59.useCallback(() => {
2649
2785
  if (!isActive) {
2650
2786
  return;
2651
2787
  }
@@ -2659,14 +2795,14 @@ var RouteProgressBar = ({ color, framework }) => {
2659
2795
  setProgress(0);
2660
2796
  }, 200);
2661
2797
  }, [isActive]);
2662
- React58.useEffect(() => {
2798
+ React59.useEffect(() => {
2663
2799
  if (typeof window === "undefined") {
2664
2800
  return () => {
2665
2801
  };
2666
2802
  }
2667
2803
  return registerNavigationListeners(start, complete);
2668
2804
  }, [start, complete, framework]);
2669
- React58.useEffect(() => {
2805
+ React59.useEffect(() => {
2670
2806
  if (!isActive) {
2671
2807
  if (animationTimeoutRef.current) {
2672
2808
  window.clearTimeout(animationTimeoutRef.current);
@@ -2692,7 +2828,7 @@ var RouteProgressBar = ({ color, framework }) => {
2692
2828
  }
2693
2829
  };
2694
2830
  }, [isActive]);
2695
- React58.useEffect(() => {
2831
+ React59.useEffect(() => {
2696
2832
  return () => {
2697
2833
  if (animationTimeoutRef.current) {
2698
2834
  window.clearTimeout(animationTimeoutRef.current);
@@ -2702,7 +2838,7 @@ var RouteProgressBar = ({ color, framework }) => {
2702
2838
  }
2703
2839
  };
2704
2840
  }, []);
2705
- const styles = React58.useMemo(() => ({
2841
+ const styles = React59.useMemo(() => ({
2706
2842
  position: "fixed",
2707
2843
  top: 0,
2708
2844
  left: 0,
@@ -3303,8 +3439,8 @@ var initializeMonitoring = (options) => {
3303
3439
  };
3304
3440
  var getMonitor = () => getMonitoringInstance().api;
3305
3441
  var useMonitor = (options) => {
3306
- const optionsRef = React58__namespace.useRef();
3307
- React58__namespace.useEffect(() => {
3442
+ const optionsRef = React59__namespace.useRef();
3443
+ React59__namespace.useEffect(() => {
3308
3444
  if (!options) {
3309
3445
  return;
3310
3446
  }
@@ -3316,7 +3452,7 @@ var useMonitor = (options) => {
3316
3452
  initializeMonitoring(options);
3317
3453
  }
3318
3454
  }, [options]);
3319
- return React58__namespace.useMemo(() => getMonitor(), []);
3455
+ return React59__namespace.useMemo(() => getMonitor(), []);
3320
3456
  };
3321
3457
  function showSonner(message, type = "info", options) {
3322
3458
  const { title, description, duration = 4e3, action } = options || {};
@@ -3363,7 +3499,7 @@ var showWarning = (message, options) => showSonner(message, "warning", options);
3363
3499
  var showInfo = (message, options) => showSonner(message, "info", options);
3364
3500
 
3365
3501
  // src/providers/theme-provider.tsx
3366
- var ThemeContext = React58.createContext(void 0);
3502
+ var ThemeContext = React59.createContext(void 0);
3367
3503
  var DEFAULT_EXTRAS = {
3368
3504
  enabled: false,
3369
3505
  framework: "auto",
@@ -3450,29 +3586,29 @@ var ThemeProvider = ({
3450
3586
  siderbar
3451
3587
  }) => {
3452
3588
  var _a2, _b, _c, _d, _e;
3453
- const [isNativeApp, setIsNativeApp] = React58.useState(Boolean(nativeApp));
3589
+ const [isNativeApp, setIsNativeApp] = React59.useState(Boolean(nativeApp));
3454
3590
  const isMobile = useIsMobile();
3455
- const extrasToken = React58.useMemo(() => createThemeExtrasToken(), []);
3456
- const resolvedExtras = React58.useMemo(() => {
3591
+ const extrasToken = React59.useMemo(() => createThemeExtrasToken(), []);
3592
+ const resolvedExtras = React59.useMemo(() => {
3457
3593
  const runtimeExtras = resolveExtras(extras);
3458
3594
  setThemeExtrasRuntime(extrasToken, runtimeExtras);
3459
3595
  return runtimeExtras;
3460
3596
  }, [extras, extrasToken]);
3461
- const monitoringConfig = React58.useMemo(() => {
3597
+ const monitoringConfig = React59.useMemo(() => {
3462
3598
  if (!monitoring) {
3463
3599
  return { enable: false };
3464
3600
  }
3465
3601
  return monitoring;
3466
3602
  }, [monitoring]);
3467
- React58.useEffect(() => {
3603
+ React59.useEffect(() => {
3468
3604
  initializeMonitoring(monitoringConfig);
3469
3605
  }, [monitoringConfig]);
3470
- React58.useEffect(() => {
3606
+ React59.useEffect(() => {
3471
3607
  return () => {
3472
3608
  resetThemeExtrasRuntime(extrasToken);
3473
3609
  };
3474
3610
  }, [extrasToken]);
3475
- React58.useEffect(() => {
3611
+ React59.useEffect(() => {
3476
3612
  setIsNativeApp(Boolean(nativeApp));
3477
3613
  }, [nativeApp]);
3478
3614
  const getInitialThemeMode = () => {
@@ -3486,16 +3622,16 @@ var ThemeProvider = ({
3486
3622
  }
3487
3623
  return defaultTheme === "system" ? "auto" : defaultTheme;
3488
3624
  };
3489
- const [themeMode, setThemeModeState] = React58.useState(() => getInitialThemeMode());
3490
- const [resolvedThemeMode, setResolvedThemeMode] = React58.useState(
3625
+ const [themeMode, setThemeModeState] = React59.useState(() => getInitialThemeMode());
3626
+ const [resolvedThemeMode, setResolvedThemeMode] = React59.useState(
3491
3627
  () => resolveThemeMode(getInitialThemeMode())
3492
3628
  );
3493
- const [nativeOverlayContainer, setNativeOverlayContainerState] = React58.useState(null);
3494
- React58.useEffect(() => {
3629
+ const [nativeOverlayContainer, setNativeOverlayContainerState] = React59.useState(null);
3630
+ React59.useEffect(() => {
3495
3631
  setResolvedThemeMode(resolveThemeMode(themeMode));
3496
3632
  setThemeMode(themeMode);
3497
3633
  }, [themeMode]);
3498
- React58.useEffect(() => {
3634
+ React59.useEffect(() => {
3499
3635
  var _a3;
3500
3636
  if (typeof window === "undefined") {
3501
3637
  return;
@@ -3507,7 +3643,7 @@ var ThemeProvider = ({
3507
3643
  const nextTheme = defaultTheme === "system" ? "auto" : defaultTheme;
3508
3644
  setThemeModeState((prev) => prev === nextTheme ? prev : nextTheme);
3509
3645
  }, [defaultTheme]);
3510
- React58.useEffect(() => {
3646
+ React59.useEffect(() => {
3511
3647
  if (typeof window === "undefined" || themeMode !== "auto") {
3512
3648
  return;
3513
3649
  }
@@ -3523,7 +3659,7 @@ var ThemeProvider = ({
3523
3659
  mediaQuery.addEventListener("change", handleChange);
3524
3660
  return () => mediaQuery.removeEventListener("change", handleChange);
3525
3661
  }, [themeMode]);
3526
- React58.useEffect(() => {
3662
+ React59.useEffect(() => {
3527
3663
  if (typeof window === "undefined") {
3528
3664
  return;
3529
3665
  }
@@ -3537,7 +3673,7 @@ var ThemeProvider = ({
3537
3673
  window.addEventListener(THEME_MODE_CHANGE_EVENT, handleThemeModeChange);
3538
3674
  return () => window.removeEventListener(THEME_MODE_CHANGE_EVENT, handleThemeModeChange);
3539
3675
  }, []);
3540
- React58.useEffect(() => {
3676
+ React59.useEffect(() => {
3541
3677
  if (typeof window === "undefined") {
3542
3678
  return;
3543
3679
  }
@@ -3555,7 +3691,7 @@ var ThemeProvider = ({
3555
3691
  return () => window.removeEventListener("storage", handleStorage);
3556
3692
  }, []);
3557
3693
  const isDarkMode = resolvedThemeMode === "dark";
3558
- React58.useEffect(() => {
3694
+ React59.useEffect(() => {
3559
3695
  if (typeof document === "undefined") {
3560
3696
  return;
3561
3697
  }
@@ -3565,7 +3701,7 @@ var ThemeProvider = ({
3565
3701
  }, [resolvedExtras]);
3566
3702
  const isNativeLike = isNativeApp;
3567
3703
  const shouldAutoScroll = isNativeLike || isMobile;
3568
- React58.useEffect(() => {
3704
+ React59.useEffect(() => {
3569
3705
  if (typeof document === "undefined" || typeof window === "undefined") {
3570
3706
  return;
3571
3707
  }
@@ -3596,7 +3732,7 @@ var ThemeProvider = ({
3596
3732
  const horizontallyVisible = rect.left >= 0 && rect.right <= viewWidth;
3597
3733
  return verticallyVisible && horizontallyVisible;
3598
3734
  };
3599
- const scrollElementIntoView = (element) => {
3735
+ const scrollElementIntoView2 = (element) => {
3600
3736
  window.setTimeout(() => {
3601
3737
  if (!isElementInViewport(element)) {
3602
3738
  element.scrollIntoView({ behavior: "smooth", block: "center", inline: "nearest" });
@@ -3621,7 +3757,7 @@ var ThemeProvider = ({
3621
3757
  if (!element) {
3622
3758
  return;
3623
3759
  }
3624
- scrollElementIntoView(element);
3760
+ scrollElementIntoView2(element);
3625
3761
  };
3626
3762
  const handlePointerDown = (event) => {
3627
3763
  if (event.pointerType && event.pointerType !== "touch" && event.pointerType !== "pen") {
@@ -3631,7 +3767,7 @@ var ThemeProvider = ({
3631
3767
  if (!element) {
3632
3768
  return;
3633
3769
  }
3634
- scrollElementIntoView(element);
3770
+ scrollElementIntoView2(element);
3635
3771
  };
3636
3772
  document.addEventListener("focusin", handleFocus, true);
3637
3773
  document.addEventListener("pointerdown", handlePointerDown, true);
@@ -3640,19 +3776,19 @@ var ThemeProvider = ({
3640
3776
  document.removeEventListener("pointerdown", handlePointerDown, true);
3641
3777
  };
3642
3778
  }, [shouldAutoScroll]);
3643
- const setThemeModePreference = React58.useCallback(
3779
+ const setThemeModePreference = React59.useCallback(
3644
3780
  (mode) => {
3645
3781
  setThemeModeState((prev) => prev === mode ? prev : mode);
3646
3782
  },
3647
3783
  [setThemeModeState]
3648
3784
  );
3649
- const handleSetIsDarkMode = React58.useCallback(
3785
+ const handleSetIsDarkMode = React59.useCallback(
3650
3786
  (darkMode) => {
3651
3787
  setThemeModePreference(darkMode ? "dark" : "light");
3652
3788
  },
3653
3789
  [setThemeModePreference]
3654
3790
  );
3655
- const progressColor = React58.useMemo(() => {
3791
+ const progressColor = React59.useMemo(() => {
3656
3792
  return isDarkMode ? "#fff" : "#000";
3657
3793
  }, [isDarkMode]);
3658
3794
  const value = {
@@ -3701,7 +3837,7 @@ var ThemeProvider = ({
3701
3837
  ] }) });
3702
3838
  };
3703
3839
  var useTheme = () => {
3704
- const context = React58.useContext(ThemeContext);
3840
+ const context = React59.useContext(ThemeContext);
3705
3841
  if (!context) {
3706
3842
  throw new Error("useTheme must be used within a ThemeProvider");
3707
3843
  }
@@ -3711,26 +3847,9 @@ var useThemeExtras = () => {
3711
3847
  const { extras } = useTheme();
3712
3848
  return extras;
3713
3849
  };
3714
- var isReducedMotionPreferred = () => typeof window !== "undefined" && window.matchMedia("(prefers-reduced-motion: reduce)").matches;
3715
- var scrollInputIntoView = (element) => {
3716
- if (!element || typeof element.scrollIntoView !== "function") {
3717
- return;
3718
- }
3719
- const prefersReducedMotion = isReducedMotionPreferred();
3720
- const scroll = () => element.scrollIntoView({
3721
- behavior: prefersReducedMotion ? "auto" : "smooth",
3722
- block: "center",
3723
- inline: "nearest"
3724
- });
3725
- if (typeof window !== "undefined" && typeof window.requestAnimationFrame === "function") {
3726
- window.requestAnimationFrame(scroll);
3727
- return;
3728
- }
3729
- scroll();
3730
- };
3731
- var Input = React58__namespace.forwardRef(
3850
+ var Input = React59__namespace.forwardRef(
3732
3851
  ({ className, type, onFocus, ...props }, forwardedRef) => {
3733
- const setRefs = React58__namespace.useCallback(
3852
+ const setRefs = React59__namespace.useCallback(
3734
3853
  (node) => {
3735
3854
  if (typeof forwardedRef === "function") {
3736
3855
  forwardedRef(node);
@@ -3740,13 +3859,13 @@ var Input = React58__namespace.forwardRef(
3740
3859
  },
3741
3860
  [forwardedRef]
3742
3861
  );
3743
- const handleFocus = React58__namespace.useCallback(
3862
+ const handleFocus = React59__namespace.useCallback(
3744
3863
  (event) => {
3745
3864
  onFocus == null ? void 0 : onFocus(event);
3746
3865
  if (event.defaultPrevented) {
3747
3866
  return;
3748
3867
  }
3749
- scrollInputIntoView(event.currentTarget);
3868
+ maybeScrollElementIntoView(event.currentTarget);
3750
3869
  },
3751
3870
  [onFocus]
3752
3871
  );
@@ -3811,7 +3930,7 @@ var toNumericValue = (value, decimals) => {
3811
3930
  }
3812
3931
  return parsed;
3813
3932
  };
3814
- var InputNumeric = React58__namespace.forwardRef(
3933
+ var InputNumeric = React59__namespace.forwardRef(
3815
3934
  ({
3816
3935
  value,
3817
3936
  defaultValue,
@@ -3827,8 +3946,8 @@ var InputNumeric = React58__namespace.forwardRef(
3827
3946
  pattern,
3828
3947
  ...rest
3829
3948
  }, ref) => {
3830
- const patternMatcher = React58__namespace.useMemo(() => createPattern(decimals), [decimals]);
3831
- const initialValue = React58__namespace.useMemo(() => {
3949
+ const patternMatcher = React59__namespace.useMemo(() => createPattern(decimals), [decimals]);
3950
+ const initialValue = React59__namespace.useMemo(() => {
3832
3951
  var _a2;
3833
3952
  const source = (_a2 = value != null ? value : defaultValue) != null ? _a2 : null;
3834
3953
  if (source === null) {
@@ -3836,16 +3955,16 @@ var InputNumeric = React58__namespace.forwardRef(
3836
3955
  }
3837
3956
  return toNumberString(source, decimals);
3838
3957
  }, [value, defaultValue, decimals]);
3839
- const [rawValue, setRawValue] = React58__namespace.useState(initialValue);
3840
- const [isFocused, setIsFocused] = React58__namespace.useState(false);
3841
- React58__namespace.useEffect(() => {
3958
+ const [rawValue, setRawValue] = React59__namespace.useState(initialValue);
3959
+ const [isFocused, setIsFocused] = React59__namespace.useState(false);
3960
+ React59__namespace.useEffect(() => {
3842
3961
  if (value === void 0) {
3843
3962
  return;
3844
3963
  }
3845
3964
  const nextRawValue = value === null ? "" : toNumberString(value, decimals);
3846
3965
  setRawValue((previous) => previous === nextRawValue ? previous : nextRawValue);
3847
3966
  }, [value, decimals]);
3848
- const clampValue = React58__namespace.useCallback(
3967
+ const clampValue = React59__namespace.useCallback(
3849
3968
  (numericValue) => {
3850
3969
  if (numericValue === null) {
3851
3970
  return null;
@@ -3890,7 +4009,7 @@ var InputNumeric = React58__namespace.forwardRef(
3890
4009
  }
3891
4010
  onBlur == null ? void 0 : onBlur(event);
3892
4011
  };
3893
- const displayValue = React58__namespace.useMemo(() => {
4012
+ const displayValue = React59__namespace.useMemo(() => {
3894
4013
  if (isFocused) {
3895
4014
  return rawValue;
3896
4015
  }
@@ -3940,7 +4059,7 @@ var formatWithMask = (rawValue, mask, placeholderChar) => {
3940
4059
  }
3941
4060
  return result;
3942
4061
  };
3943
- var InputMask = React58__namespace.forwardRef(
4062
+ var InputMask = React59__namespace.forwardRef(
3944
4063
  ({
3945
4064
  mask,
3946
4065
  placeholderChar = DEFAULT_PLACEHOLDER_CHAR,
@@ -3952,11 +4071,11 @@ var InputMask = React58__namespace.forwardRef(
3952
4071
  }, ref) => {
3953
4072
  var _a2;
3954
4073
  const normalizedPlaceholder = (_a2 = placeholderChar[0]) != null ? _a2 : DEFAULT_PLACEHOLDER_CHAR;
3955
- const placeholderCount = React58__namespace.useMemo(
4074
+ const placeholderCount = React59__namespace.useMemo(
3956
4075
  () => countPlaceholders(mask, normalizedPlaceholder),
3957
4076
  [mask, normalizedPlaceholder]
3958
4077
  );
3959
- const normalizeRawValue = React58__namespace.useCallback(
4078
+ const normalizeRawValue = React59__namespace.useCallback(
3960
4079
  (source) => {
3961
4080
  if (!source) {
3962
4081
  return "";
@@ -3969,20 +4088,20 @@ var InputMask = React58__namespace.forwardRef(
3969
4088
  },
3970
4089
  [placeholderCount]
3971
4090
  );
3972
- const [rawValue, setRawValue] = React58__namespace.useState(
4091
+ const [rawValue, setRawValue] = React59__namespace.useState(
3973
4092
  () => {
3974
4093
  var _a3;
3975
4094
  return normalizeRawValue((_a3 = value != null ? value : defaultValue) != null ? _a3 : "");
3976
4095
  }
3977
4096
  );
3978
- React58__namespace.useEffect(() => {
4097
+ React59__namespace.useEffect(() => {
3979
4098
  if (value === void 0) {
3980
4099
  return;
3981
4100
  }
3982
4101
  const next = normalizeRawValue(value);
3983
4102
  setRawValue((previous) => previous === next ? previous : next);
3984
4103
  }, [value, normalizeRawValue]);
3985
- React58__namespace.useEffect(() => {
4104
+ React59__namespace.useEffect(() => {
3986
4105
  if (value !== void 0) {
3987
4106
  return;
3988
4107
  }
@@ -3995,7 +4114,7 @@ var InputMask = React58__namespace.forwardRef(
3995
4114
  }
3996
4115
  onChange == null ? void 0 : onChange(incoming);
3997
4116
  };
3998
- const formattedValue = React58__namespace.useMemo(
4117
+ const formattedValue = React59__namespace.useMemo(
3999
4118
  () => formatWithMask(rawValue, mask, normalizedPlaceholder),
4000
4119
  [mask, normalizedPlaceholder, rawValue]
4001
4120
  );
@@ -4270,9 +4389,9 @@ var MobileWheelColumn = ({
4270
4389
  onValueChange,
4271
4390
  open
4272
4391
  }) => {
4273
- const listRef = React58__namespace.useRef(null);
4274
- const scrollTimeoutRef = React58__namespace.useRef(null);
4275
- const extendedOptions = React58__namespace.useMemo(() => {
4392
+ const listRef = React59__namespace.useRef(null);
4393
+ const scrollTimeoutRef = React59__namespace.useRef(null);
4394
+ const extendedOptions = React59__namespace.useMemo(() => {
4276
4395
  if (options.length === 0) {
4277
4396
  return [];
4278
4397
  }
@@ -4284,7 +4403,7 @@ var MobileWheelColumn = ({
4284
4403
  }
4285
4404
  return repeated;
4286
4405
  }, [options]);
4287
- const alignToValue = React58__namespace.useCallback(
4406
+ const alignToValue = React59__namespace.useCallback(
4288
4407
  (value, behavior = "auto") => {
4289
4408
  if (!listRef.current || options.length === 0 || extendedOptions.length === 0) {
4290
4409
  return;
@@ -4298,13 +4417,13 @@ var MobileWheelColumn = ({
4298
4417
  },
4299
4418
  [extendedOptions.length, options]
4300
4419
  );
4301
- React58__namespace.useLayoutEffect(() => {
4420
+ React59__namespace.useLayoutEffect(() => {
4302
4421
  if (!open) {
4303
4422
  return;
4304
4423
  }
4305
4424
  alignToValue(selectedValue);
4306
4425
  }, [alignToValue, open, options, selectedValue]);
4307
- React58__namespace.useEffect(
4426
+ React59__namespace.useEffect(
4308
4427
  () => () => {
4309
4428
  if (scrollTimeoutRef.current !== null) {
4310
4429
  clearTimeout(scrollTimeoutRef.current);
@@ -4312,7 +4431,7 @@ var MobileWheelColumn = ({
4312
4431
  },
4313
4432
  []
4314
4433
  );
4315
- const handleScroll2 = React58__namespace.useCallback(
4434
+ const handleScroll2 = React59__namespace.useCallback(
4316
4435
  (event) => {
4317
4436
  if (extendedOptions.length === 0 || options.length === 0) {
4318
4437
  return;
@@ -4426,14 +4545,14 @@ var getDefaultLocale = (locale) => {
4426
4545
  };
4427
4546
  };
4428
4547
  var useLatest = (value) => {
4429
- const ref = React58__namespace.useRef(value);
4430
- React58__namespace.useEffect(() => {
4548
+ const ref = React59__namespace.useRef(value);
4549
+ React59__namespace.useEffect(() => {
4431
4550
  ref.current = value;
4432
4551
  }, [value]);
4433
4552
  return ref;
4434
4553
  };
4435
4554
  var DEFAULT_PRIMARY_COLOR = "hsl(var(--primary))";
4436
- var DatePicker = React58__namespace.forwardRef((props, ref) => {
4555
+ var DatePicker = React59__namespace.forwardRef((props, ref) => {
4437
4556
  var _a2, _b, _c, _d, _e, _f, _g;
4438
4557
  const {
4439
4558
  value: valueProp,
@@ -4476,17 +4595,17 @@ var DatePicker = React58__namespace.forwardRef((props, ref) => {
4476
4595
  const { isNative } = useTheme();
4477
4596
  const isMobile = useIsMobile();
4478
4597
  const shouldUseDrawer = isNative || isMobile;
4479
- const [associatedLabel, setAssociatedLabel] = React58__namespace.useState(null);
4480
- const locale = React58__namespace.useMemo(() => getDefaultLocale(localeProp), [localeProp]);
4598
+ const [associatedLabel, setAssociatedLabel] = React59__namespace.useState(null);
4599
+ const locale = React59__namespace.useMemo(() => getDefaultLocale(localeProp), [localeProp]);
4481
4600
  const onChangeRef = useLatest(onChange);
4482
4601
  const onOpenChangeRef = useLatest(onOpenChange);
4483
4602
  const formatRef = useLatest(format);
4484
4603
  const isValueControlled = valueProp !== void 0;
4485
- const [internalValue, setInternalValue] = React58__namespace.useState(defaultValue);
4604
+ const [internalValue, setInternalValue] = React59__namespace.useState(defaultValue);
4486
4605
  const selectedValue = (_a2 = isValueControlled ? valueProp : internalValue) != null ? _a2 : null;
4487
- const initialPanelMode = React58__namespace.useMemo(() => getPanelModeFromProps(mode, picker), [mode, picker]);
4488
- const [panelMode, setPanelMode] = React58__namespace.useState(initialPanelMode);
4489
- const commitValue = React58__namespace.useCallback(
4606
+ const initialPanelMode = React59__namespace.useMemo(() => getPanelModeFromProps(mode, picker), [mode, picker]);
4607
+ const [panelMode, setPanelMode] = React59__namespace.useState(initialPanelMode);
4608
+ const commitValue = React59__namespace.useCallback(
4490
4609
  (next) => {
4491
4610
  var _a3;
4492
4611
  if (!isValueControlled) {
@@ -4496,18 +4615,18 @@ var DatePicker = React58__namespace.forwardRef((props, ref) => {
4496
4615
  },
4497
4616
  [formatRef, isValueControlled, onChangeRef]
4498
4617
  );
4499
- const [draftValue, setDraftValue] = React58__namespace.useState(selectedValue);
4500
- React58__namespace.useEffect(() => {
4618
+ const [draftValue, setDraftValue] = React59__namespace.useState(selectedValue);
4619
+ React59__namespace.useEffect(() => {
4501
4620
  setDraftValue(selectedValue);
4502
4621
  }, [selectedValue]);
4503
- const [viewDate, setViewDate] = React58__namespace.useState(() => {
4622
+ const [viewDate, setViewDate] = React59__namespace.useState(() => {
4504
4623
  const base = selectedValue != null ? selectedValue : dayjs();
4505
4624
  return clampToRange(base, minDate, maxDate);
4506
4625
  });
4507
4626
  const isOpenControlled = openProp !== void 0;
4508
- const [internalOpen, setInternalOpen] = React58__namespace.useState(Boolean(defaultOpen));
4627
+ const [internalOpen, setInternalOpen] = React59__namespace.useState(Boolean(defaultOpen));
4509
4628
  const open = isOpenControlled ? Boolean(openProp) : internalOpen;
4510
- const setOpenState = React58__namespace.useCallback(
4629
+ const setOpenState = React59__namespace.useCallback(
4511
4630
  (next) => {
4512
4631
  var _a3;
4513
4632
  if (!isOpenControlled) {
@@ -4518,25 +4637,25 @@ var DatePicker = React58__namespace.forwardRef((props, ref) => {
4518
4637
  [isOpenControlled, onOpenChangeRef]
4519
4638
  );
4520
4639
  const activeValue = needConfirm ? draftValue : selectedValue;
4521
- React58__namespace.useEffect(() => {
4640
+ React59__namespace.useEffect(() => {
4522
4641
  if (open) {
4523
4642
  setPanelMode(initialPanelMode);
4524
4643
  setViewDate((prev) => clampToRange(activeValue != null ? activeValue : prev, minDate, maxDate));
4525
4644
  }
4526
4645
  }, [activeValue, initialPanelMode, maxDate, minDate, open]);
4527
- const [inputValue, setInputValue] = React58__namespace.useState(() => formatDateValue(activeValue, formatRef.current));
4528
- const isTypingRef = React58__namespace.useRef(false);
4529
- React58__namespace.useEffect(() => {
4646
+ const [inputValue, setInputValue] = React59__namespace.useState(() => formatDateValue(activeValue, formatRef.current));
4647
+ const isTypingRef = React59__namespace.useRef(false);
4648
+ React59__namespace.useEffect(() => {
4530
4649
  if (!isTypingRef.current) {
4531
4650
  setInputValue(formatDateValue(activeValue, formatRef.current));
4532
4651
  }
4533
4652
  }, [activeValue, formatRef]);
4534
- const primaryColorStyle = React58__namespace.useMemo(
4653
+ const primaryColorStyle = React59__namespace.useMemo(
4535
4654
  () => ({ "--date-primary-color": DEFAULT_PRIMARY_COLOR }),
4536
4655
  []
4537
4656
  );
4538
- const inputRef = React58__namespace.useRef(null);
4539
- const handleOpenChange = React58__namespace.useCallback(
4657
+ const inputRef = React59__namespace.useRef(null);
4658
+ const handleOpenChange = React59__namespace.useCallback(
4540
4659
  (nextOpen) => {
4541
4660
  if (disabled) {
4542
4661
  return;
@@ -4549,11 +4668,11 @@ var DatePicker = React58__namespace.forwardRef((props, ref) => {
4549
4668
  },
4550
4669
  [activeValue, disabled, initialPanelMode, maxDate, minDate, setOpenState]
4551
4670
  );
4552
- const parseInputValue = React58__namespace.useCallback(
4671
+ const parseInputValue = React59__namespace.useCallback(
4553
4672
  (text) => parseDateValue(text, formatRef.current),
4554
4673
  [formatRef]
4555
4674
  );
4556
- const isDateDisabled = React58__namespace.useCallback(
4675
+ const isDateDisabled = React59__namespace.useCallback(
4557
4676
  (date, currentMode) => {
4558
4677
  if (!isWithinRange(date, minDate, maxDate, currentMode)) {
4559
4678
  return true;
@@ -4565,11 +4684,11 @@ var DatePicker = React58__namespace.forwardRef((props, ref) => {
4565
4684
  },
4566
4685
  [disabledDate, maxDate, minDate]
4567
4686
  );
4568
- const formatForDisplay = React58__namespace.useCallback(
4687
+ const formatForDisplay = React59__namespace.useCallback(
4569
4688
  (value) => formatDateValue(value, formatRef.current),
4570
4689
  [formatRef]
4571
4690
  );
4572
- const handleDateSelect = React58__namespace.useCallback(
4691
+ const handleDateSelect = React59__namespace.useCallback(
4573
4692
  (date) => {
4574
4693
  if (isDateDisabled(date, "date")) {
4575
4694
  return;
@@ -5043,7 +5162,7 @@ var DatePicker = React58__namespace.forwardRef((props, ref) => {
5043
5162
  ] })
5044
5163
  ] });
5045
5164
  const panelNode = panelRender ? panelRender(renderedPanel) : renderedPanel;
5046
- React58__namespace.useEffect(() => {
5165
+ React59__namespace.useEffect(() => {
5047
5166
  if (!autoFocus) {
5048
5167
  return;
5049
5168
  }
@@ -5057,7 +5176,7 @@ var DatePicker = React58__namespace.forwardRef((props, ref) => {
5057
5176
  focusInput();
5058
5177
  }
5059
5178
  }, [autoFocus]);
5060
- React58__namespace.useImperativeHandle(ref, () => inputRef.current);
5179
+ React59__namespace.useImperativeHandle(ref, () => inputRef.current);
5061
5180
  const shouldShowPointer = !disabled && (inputReadOnly || shouldUseDrawer);
5062
5181
  const triggerNode = /* @__PURE__ */ jsxs(
5063
5182
  "div",
@@ -5124,17 +5243,17 @@ var DatePicker = React58__namespace.forwardRef((props, ref) => {
5124
5243
  ]
5125
5244
  }
5126
5245
  );
5127
- const mobileBaseValue = React58__namespace.useMemo(() => {
5246
+ const mobileBaseValue = React59__namespace.useMemo(() => {
5128
5247
  var _a3, _b2;
5129
5248
  const base = (_b2 = needConfirm ? (_a3 = draftValue != null ? draftValue : selectedValue) != null ? _a3 : viewDate : activeValue != null ? activeValue : viewDate) != null ? _b2 : dayjs();
5130
5249
  return base.clone();
5131
5250
  }, [activeValue, draftValue, needConfirm, selectedValue, viewDate]);
5132
- const monthOptions = React58__namespace.useMemo(
5251
+ const monthOptions = React59__namespace.useMemo(
5133
5252
  () => locale.months.map((month, index2) => ({ label: month, value: index2 })),
5134
5253
  [locale.months]
5135
5254
  );
5136
5255
  const daysInMonth = mobileBaseValue.daysInMonth();
5137
- const dayOptions = React58__namespace.useMemo(
5256
+ const dayOptions = React59__namespace.useMemo(
5138
5257
  () => Array.from({ length: daysInMonth }, (_, index2) => ({
5139
5258
  label: String(index2 + 1).padStart(2, "0"),
5140
5259
  value: index2 + 1
@@ -5146,14 +5265,14 @@ var DatePicker = React58__namespace.forwardRef((props, ref) => {
5146
5265
  const maxYear = (_e = maxDate == null ? void 0 : maxDate.year()) != null ? _e : currentYear + 100;
5147
5266
  const startYear = Math.min(minYear, maxYear);
5148
5267
  const endYear = Math.max(minYear, maxYear);
5149
- const yearOptions = React58__namespace.useMemo(
5268
+ const yearOptions = React59__namespace.useMemo(
5150
5269
  () => Array.from({ length: endYear - startYear + 1 }, (_, index2) => {
5151
5270
  const year = startYear + index2;
5152
5271
  return { label: String(year), value: year };
5153
5272
  }),
5154
5273
  [endYear, startYear]
5155
5274
  );
5156
- const handlePartChange = React58__namespace.useCallback(
5275
+ const handlePartChange = React59__namespace.useCallback(
5157
5276
  (part, value) => {
5158
5277
  var _a3, _b2;
5159
5278
  const base = (_b2 = needConfirm ? (_a3 = draftValue != null ? draftValue : selectedValue) != null ? _a3 : viewDate : selectedValue != null ? selectedValue : viewDate) != null ? _b2 : dayjs();
@@ -5187,13 +5306,13 @@ var DatePicker = React58__namespace.forwardRef((props, ref) => {
5187
5306
  [commitValue, draftValue, formatForDisplay, isDateDisabled, maxDate, minDate, needConfirm, selectedValue, setViewDate, viewDate]
5188
5307
  );
5189
5308
  const mobileLabelFallback = (_g = (_f = typeof inputRest["aria-label"] === "string" ? inputRest["aria-label"] : void 0) != null ? _f : placeholder) != null ? _g : locale.placeholder;
5190
- const handleDrawerOpenChange = React58__namespace.useCallback(
5309
+ const handleDrawerOpenChange = React59__namespace.useCallback(
5191
5310
  (nextOpen) => {
5192
5311
  handleOpenChange(nextOpen);
5193
5312
  },
5194
5313
  [handleOpenChange]
5195
5314
  );
5196
- React58__namespace.useEffect(() => {
5315
+ React59__namespace.useEffect(() => {
5197
5316
  var _a3, _b2;
5198
5317
  if (!shouldUseDrawer || !open || !id) {
5199
5318
  return;
@@ -5702,7 +5821,7 @@ var gapClasses = {
5702
5821
  middle: gapScale.md,
5703
5822
  large: gapScale.lg
5704
5823
  };
5705
- var Flex = React58__namespace.forwardRef(
5824
+ var Flex = React59__namespace.forwardRef(
5706
5825
  ({
5707
5826
  direction,
5708
5827
  vertical,
@@ -5807,7 +5926,7 @@ function InputOTPSlot({
5807
5926
  ...props
5808
5927
  }) {
5809
5928
  var _a2;
5810
- const inputOTPContext = React58__namespace.useContext(inputOtp.OTPInputContext);
5929
+ const inputOTPContext = React59__namespace.useContext(inputOtp.OTPInputContext);
5811
5930
  const { char, hasFakeCaret, isActive } = (_a2 = inputOTPContext == null ? void 0 : inputOTPContext.slots[index2]) != null ? _a2 : {};
5812
5931
  return /* @__PURE__ */ jsxs(
5813
5932
  "div",
@@ -6163,7 +6282,7 @@ var mobileFooterVariants = Object.keys(
6163
6282
  );
6164
6283
  var noop = () => {
6165
6284
  };
6166
- var MobileFooter = React58__namespace.forwardRef(
6285
+ var MobileFooter = React59__namespace.forwardRef(
6167
6286
  ({
6168
6287
  items,
6169
6288
  value,
@@ -6174,7 +6293,7 @@ var MobileFooter = React58__namespace.forwardRef(
6174
6293
  forceLabels = false,
6175
6294
  ...props
6176
6295
  }, ref) => {
6177
- const [internalValue, setInternalValue] = React58__namespace.useState(() => {
6296
+ const [internalValue, setInternalValue] = React59__namespace.useState(() => {
6178
6297
  var _a2, _b;
6179
6298
  if (value !== void 0) {
6180
6299
  return value;
@@ -6186,7 +6305,7 @@ var MobileFooter = React58__namespace.forwardRef(
6186
6305
  });
6187
6306
  const isControlled = value !== void 0;
6188
6307
  const selectedValue = isControlled ? value : internalValue;
6189
- React58__namespace.useEffect(() => {
6308
+ React59__namespace.useEffect(() => {
6190
6309
  var _a2;
6191
6310
  if (!items.length) {
6192
6311
  return;
@@ -6203,7 +6322,7 @@ var MobileFooter = React58__namespace.forwardRef(
6203
6322
  onChange(fallback);
6204
6323
  }
6205
6324
  }, [items, selectedValue, isControlled, onChange]);
6206
- const handleSelect = React58__namespace.useCallback(
6325
+ const handleSelect = React59__namespace.useCallback(
6207
6326
  (nextValue) => {
6208
6327
  if (nextValue === selectedValue) {
6209
6328
  return;
@@ -6223,7 +6342,7 @@ var MobileFooter = React58__namespace.forwardRef(
6223
6342
  0
6224
6343
  );
6225
6344
  const cellPercentage = 100 / items.length;
6226
- const floatingIndicatorStyle = React58__namespace.useMemo(() => {
6345
+ const floatingIndicatorStyle = React59__namespace.useMemo(() => {
6227
6346
  const size4 = 72;
6228
6347
  const offset4 = cellPercentage / 2;
6229
6348
  return {
@@ -6232,18 +6351,18 @@ var MobileFooter = React58__namespace.forwardRef(
6232
6351
  left: `calc(${cellPercentage}% * ${activeIndex} + ${offset4}% - ${size4 / 2}px)`
6233
6352
  };
6234
6353
  }, [activeIndex, cellPercentage]);
6235
- const pillIndicatorStyle = React58__namespace.useMemo(() => ({
6354
+ const pillIndicatorStyle = React59__namespace.useMemo(() => ({
6236
6355
  width: `calc((100% / ${items.length}) - 0.75rem)`,
6237
6356
  left: `calc((100% / ${items.length}) * ${activeIndex} + 0.375rem)`
6238
6357
  }), [activeIndex, items.length]);
6239
- const minimalIndicatorStyle = React58__namespace.useMemo(
6358
+ const minimalIndicatorStyle = React59__namespace.useMemo(
6240
6359
  () => ({
6241
6360
  width: `calc((100% / ${items.length}) * 0.6)`,
6242
6361
  left: `calc((100% / ${items.length}) * ${activeIndex} + (100% / ${items.length}) * 0.2)`
6243
6362
  }),
6244
6363
  [activeIndex, items.length]
6245
6364
  );
6246
- const curvedIndicatorStyle = React58__namespace.useMemo(() => {
6365
+ const curvedIndicatorStyle = React59__namespace.useMemo(() => {
6247
6366
  const size4 = 64;
6248
6367
  const offset4 = cellPercentage / 2;
6249
6368
  return {
@@ -6572,7 +6691,7 @@ var renderBadge = (badge, active = false) => {
6572
6691
  }
6573
6692
  );
6574
6693
  };
6575
- var MobileHeader = React58__namespace.forwardRef(
6694
+ var MobileHeader = React59__namespace.forwardRef(
6576
6695
  ({
6577
6696
  title,
6578
6697
  subtitle,
@@ -6595,12 +6714,12 @@ var MobileHeader = React58__namespace.forwardRef(
6595
6714
  children,
6596
6715
  ...props
6597
6716
  }, ref) => {
6598
- const [internalSearchValue, setInternalSearchValue] = React58__namespace.useState(
6717
+ const [internalSearchValue, setInternalSearchValue] = React59__namespace.useState(
6599
6718
  () => defaultSearchValue != null ? defaultSearchValue : ""
6600
6719
  );
6601
6720
  const isSearchControlled = searchValue !== void 0;
6602
6721
  const resolvedSearchValue = isSearchControlled ? searchValue : internalSearchValue;
6603
- const handleSearchChange = React58__namespace.useCallback(
6722
+ const handleSearchChange = React59__namespace.useCallback(
6604
6723
  (event) => {
6605
6724
  const nextValue = event.target.value;
6606
6725
  if (!isSearchControlled) {
@@ -6833,26 +6952,26 @@ function composeRefs(...refs) {
6833
6952
  };
6834
6953
  }
6835
6954
  function useComposedRefs(...refs) {
6836
- return React58__namespace.useCallback(composeRefs(...refs), refs);
6955
+ return React59__namespace.useCallback(composeRefs(...refs), refs);
6837
6956
  }
6838
6957
  // @__NO_SIDE_EFFECTS__
6839
6958
  function createSlot(ownerName) {
6840
6959
  const SlotClone = /* @__PURE__ */ createSlotClone(ownerName);
6841
- const Slot22 = React58__namespace.forwardRef((props, forwardedRef) => {
6960
+ const Slot22 = React59__namespace.forwardRef((props, forwardedRef) => {
6842
6961
  const { children, ...slotProps } = props;
6843
- const childrenArray = React58__namespace.Children.toArray(children);
6962
+ const childrenArray = React59__namespace.Children.toArray(children);
6844
6963
  const slottable = childrenArray.find(isSlottable);
6845
6964
  if (slottable) {
6846
6965
  const newElement = slottable.props.children;
6847
6966
  const newChildren = childrenArray.map((child) => {
6848
6967
  if (child === slottable) {
6849
- if (React58__namespace.Children.count(newElement) > 1) return React58__namespace.Children.only(null);
6850
- return React58__namespace.isValidElement(newElement) ? newElement.props.children : null;
6968
+ if (React59__namespace.Children.count(newElement) > 1) return React59__namespace.Children.only(null);
6969
+ return React59__namespace.isValidElement(newElement) ? newElement.props.children : null;
6851
6970
  } else {
6852
6971
  return child;
6853
6972
  }
6854
6973
  });
6855
- return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React58__namespace.isValidElement(newElement) ? React58__namespace.cloneElement(newElement, void 0, newChildren) : null });
6974
+ return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children: React59__namespace.isValidElement(newElement) ? React59__namespace.cloneElement(newElement, void 0, newChildren) : null });
6856
6975
  }
6857
6976
  return /* @__PURE__ */ jsxRuntime.jsx(SlotClone, { ...slotProps, ref: forwardedRef, children });
6858
6977
  });
@@ -6862,24 +6981,24 @@ function createSlot(ownerName) {
6862
6981
  var Slot = /* @__PURE__ */ createSlot("Slot");
6863
6982
  // @__NO_SIDE_EFFECTS__
6864
6983
  function createSlotClone(ownerName) {
6865
- const SlotClone = React58__namespace.forwardRef((props, forwardedRef) => {
6984
+ const SlotClone = React59__namespace.forwardRef((props, forwardedRef) => {
6866
6985
  const { children, ...slotProps } = props;
6867
- if (React58__namespace.isValidElement(children)) {
6986
+ if (React59__namespace.isValidElement(children)) {
6868
6987
  const childrenRef = getElementRef(children);
6869
6988
  const props2 = mergeProps(slotProps, children.props);
6870
- if (children.type !== React58__namespace.Fragment) {
6989
+ if (children.type !== React59__namespace.Fragment) {
6871
6990
  props2.ref = forwardedRef ? composeRefs(forwardedRef, childrenRef) : childrenRef;
6872
6991
  }
6873
- return React58__namespace.cloneElement(children, props2);
6992
+ return React59__namespace.cloneElement(children, props2);
6874
6993
  }
6875
- return React58__namespace.Children.count(children) > 1 ? React58__namespace.Children.only(null) : null;
6994
+ return React59__namespace.Children.count(children) > 1 ? React59__namespace.Children.only(null) : null;
6876
6995
  });
6877
6996
  SlotClone.displayName = `${ownerName}.SlotClone`;
6878
6997
  return SlotClone;
6879
6998
  }
6880
6999
  var SLOTTABLE_IDENTIFIER = Symbol("radix.slottable");
6881
7000
  function isSlottable(child) {
6882
- return React58__namespace.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
7001
+ return React59__namespace.isValidElement(child) && typeof child.type === "function" && "__radixId" in child.type && child.type.__radixId === SLOTTABLE_IDENTIFIER;
6883
7002
  }
6884
7003
  function mergeProps(slotProps, childProps) {
6885
7004
  const overrideProps = { ...childProps };
@@ -6923,7 +7042,7 @@ function getElementRef(element) {
6923
7042
  // src/components/provider/safe-area.tsx
6924
7043
  var defaultEdges = ["top", "right", "bottom", "left"];
6925
7044
  var resolveInset = (edges, edge) => edges.includes(edge) ? `env(safe-area-inset-${edge})` : void 0;
6926
- var SafeArea = React58__namespace.forwardRef(
7045
+ var SafeArea = React59__namespace.forwardRef(
6927
7046
  ({
6928
7047
  edges = defaultEdges,
6929
7048
  asChild,
@@ -6962,21 +7081,21 @@ var MobileLayoutInner = ({
6962
7081
  }) => {
6963
7082
  var _a2, _b, _c, _d, _e;
6964
7083
  const { header: headerState, navigateBack, canGoBack } = useMobileHeader();
6965
- const headerEdges = React58__namespace.useMemo(() => {
7084
+ const headerEdges = React59__namespace.useMemo(() => {
6966
7085
  const edges = [];
6967
7086
  if (safeArea.top) edges.push("top");
6968
7087
  if (safeArea.left) edges.push("left");
6969
7088
  if (safeArea.right) edges.push("right");
6970
7089
  return edges;
6971
7090
  }, [safeArea.top, safeArea.left, safeArea.right]);
6972
- const footerEdges = React58__namespace.useMemo(() => {
7091
+ const footerEdges = React59__namespace.useMemo(() => {
6973
7092
  const edges = [];
6974
7093
  if (safeArea.bottom) edges.push("bottom");
6975
7094
  if (safeArea.left) edges.push("left");
6976
7095
  if (safeArea.right) edges.push("right");
6977
7096
  return edges;
6978
7097
  }, [safeArea.bottom, safeArea.left, safeArea.right]);
6979
- const handleBack = React58__namespace.useCallback(() => {
7098
+ const handleBack = React59__namespace.useCallback(() => {
6980
7099
  if (canGoBack) {
6981
7100
  navigateBack();
6982
7101
  return;
@@ -6986,7 +7105,7 @@ var MobileLayoutInner = ({
6986
7105
  }
6987
7106
  }, [canGoBack, navigateBack]);
6988
7107
  const showBackButton = (_a2 = headerState.back) != null ? _a2 : canGoBack;
6989
- const resolvedLeadingAction = React58__namespace.useMemo(() => {
7108
+ const resolvedLeadingAction = React59__namespace.useMemo(() => {
6990
7109
  if (showBackButton) {
6991
7110
  return {
6992
7111
  value: "mobile-header-back",
@@ -7007,7 +7126,7 @@ var MobileLayoutInner = ({
7007
7126
  const headerVariant = (_d = (_c = (_b = headerState.variant) != null ? _b : variant) != null ? _c : type) != null ? _d : "hero";
7008
7127
  const { show: showFooter = true, activeKey, onChange: footerOnChange, ...footerProps } = footer;
7009
7128
  const footerValue = (_e = footerProps.value) != null ? _e : activeKey;
7010
- const handleFooterSelect = React58__namespace.useCallback(
7129
+ const handleFooterSelect = React59__namespace.useCallback(
7011
7130
  (value) => {
7012
7131
  footerOnChange == null ? void 0 : footerOnChange(value);
7013
7132
  },
@@ -7469,11 +7588,11 @@ function ScrollBar({
7469
7588
  }
7470
7589
  );
7471
7590
  }
7472
- var NativeSelectContext = React58__namespace.createContext(
7591
+ var NativeSelectContext = React59__namespace.createContext(
7473
7592
  void 0
7474
7593
  );
7475
7594
  function useNativeSelectContext() {
7476
- const context = React58__namespace.useContext(NativeSelectContext);
7595
+ const context = React59__namespace.useContext(NativeSelectContext);
7477
7596
  if (!context) {
7478
7597
  throw new Error("useNativeSelectContext must be used within a Select component");
7479
7598
  }
@@ -7489,16 +7608,16 @@ function SelectRoot({
7489
7608
  const { isNative } = useTheme();
7490
7609
  const isMobile = useIsMobile();
7491
7610
  const shouldUseDrawer = isNative || isMobile;
7492
- const [uncontrolledOpen, setUncontrolledOpen] = React58__namespace.useState(defaultOpen != null ? defaultOpen : false);
7611
+ const [uncontrolledOpen, setUncontrolledOpen] = React59__namespace.useState(defaultOpen != null ? defaultOpen : false);
7493
7612
  const open = openProp != null ? openProp : uncontrolledOpen;
7494
- const setOpen = React58__namespace.useCallback(
7613
+ const setOpen = React59__namespace.useCallback(
7495
7614
  (nextOpen) => {
7496
7615
  if (openProp === void 0) setUncontrolledOpen(nextOpen);
7497
7616
  onOpenChange == null ? void 0 : onOpenChange(nextOpen);
7498
7617
  },
7499
7618
  [openProp, onOpenChange]
7500
7619
  );
7501
- const contextValue = React58__namespace.useMemo(
7620
+ const contextValue = React59__namespace.useMemo(
7502
7621
  () => ({
7503
7622
  isNative: shouldUseDrawer,
7504
7623
  open,
@@ -7592,7 +7711,7 @@ function SelectItem({
7592
7711
  ...props
7593
7712
  }) {
7594
7713
  const nativeContext = useNativeSelectContext();
7595
- const handleSelect = React58__namespace.useCallback(
7714
+ const handleSelect = React59__namespace.useCallback(
7596
7715
  (event) => {
7597
7716
  onSelect == null ? void 0 : onSelect(event);
7598
7717
  if (nativeContext.isNative && nativeContext.closeOnSelect && !event.defaultPrevented) {
@@ -7690,7 +7809,7 @@ function Select({
7690
7809
  }
7691
7810
  var noop3 = () => {
7692
7811
  };
7693
- var MultiSelectContext = React58__namespace.createContext({
7812
+ var MultiSelectContext = React59__namespace.createContext({
7694
7813
  isNative: false,
7695
7814
  selectedValues: [],
7696
7815
  setSelectedValues: noop3,
@@ -7700,7 +7819,7 @@ var MultiSelectContext = React58__namespace.createContext({
7700
7819
  setOpen: noop3
7701
7820
  });
7702
7821
  function useMultiSelectContext() {
7703
- return React58__namespace.useContext(MultiSelectContext);
7822
+ return React59__namespace.useContext(MultiSelectContext);
7704
7823
  }
7705
7824
  function MultiSelect({
7706
7825
  value,
@@ -7714,23 +7833,23 @@ function MultiSelect({
7714
7833
  const { isNative } = useTheme();
7715
7834
  const isMobile = useIsMobile();
7716
7835
  const shouldUseDrawer = isNative || isMobile;
7717
- const [internalValue, setInternalValue] = React58__namespace.useState(defaultValue);
7718
- const [uncontrolledOpen, setUncontrolledOpen] = React58__namespace.useState(
7836
+ const [internalValue, setInternalValue] = React59__namespace.useState(defaultValue);
7837
+ const [uncontrolledOpen, setUncontrolledOpen] = React59__namespace.useState(
7719
7838
  defaultOpen != null ? defaultOpen : false
7720
7839
  );
7721
- React58__namespace.useEffect(() => {
7840
+ React59__namespace.useEffect(() => {
7722
7841
  if (value !== void 0) {
7723
7842
  setInternalValue(value);
7724
7843
  }
7725
7844
  }, [value]);
7726
- React58__namespace.useEffect(() => {
7845
+ React59__namespace.useEffect(() => {
7727
7846
  if (openProp !== void 0) {
7728
7847
  setUncontrolledOpen(openProp);
7729
7848
  }
7730
7849
  }, [openProp]);
7731
7850
  const selectedValues = value != null ? value : internalValue;
7732
7851
  const open = openProp != null ? openProp : uncontrolledOpen;
7733
- const setSelectedValues = React58__namespace.useCallback(
7852
+ const setSelectedValues = React59__namespace.useCallback(
7734
7853
  (next) => {
7735
7854
  const resolved = typeof next === "function" ? next(selectedValues) : next;
7736
7855
  if (value === void 0) {
@@ -7740,7 +7859,7 @@ function MultiSelect({
7740
7859
  },
7741
7860
  [onValueChange, selectedValues, value]
7742
7861
  );
7743
- const toggleValue = React58__namespace.useCallback(
7862
+ const toggleValue = React59__namespace.useCallback(
7744
7863
  (item) => {
7745
7864
  setSelectedValues((prev) => {
7746
7865
  if (prev.includes(item)) {
@@ -7751,11 +7870,11 @@ function MultiSelect({
7751
7870
  },
7752
7871
  [setSelectedValues]
7753
7872
  );
7754
- const isSelected = React58__namespace.useCallback(
7873
+ const isSelected = React59__namespace.useCallback(
7755
7874
  (item) => selectedValues.includes(item),
7756
7875
  [selectedValues]
7757
7876
  );
7758
- const setOpen = React58__namespace.useCallback(
7877
+ const setOpen = React59__namespace.useCallback(
7759
7878
  (nextOpen) => {
7760
7879
  if (openProp === void 0) {
7761
7880
  setUncontrolledOpen(nextOpen);
@@ -7764,7 +7883,7 @@ function MultiSelect({
7764
7883
  },
7765
7884
  [onOpenChange, openProp]
7766
7885
  );
7767
- const contextValue = React58__namespace.useMemo(
7886
+ const contextValue = React59__namespace.useMemo(
7768
7887
  () => ({
7769
7888
  isNative: shouldUseDrawer,
7770
7889
  selectedValues,
@@ -7795,7 +7914,7 @@ function MultiSelectTrigger({
7795
7914
  ...props
7796
7915
  }) {
7797
7916
  const context = useMultiSelectContext();
7798
- const handleClick = React58__namespace.useCallback(
7917
+ const handleClick = React59__namespace.useCallback(
7799
7918
  (event) => {
7800
7919
  onClick == null ? void 0 : onClick(event);
7801
7920
  if (context.isNative && !disabled) {
@@ -7838,7 +7957,7 @@ function MultiSelectValue({
7838
7957
  formatValue
7839
7958
  }) {
7840
7959
  const { selectedValues, isNative } = useMultiSelectContext();
7841
- const content = React58__namespace.useMemo(() => {
7960
+ const content = React59__namespace.useMemo(() => {
7842
7961
  if (formatValue) {
7843
7962
  return formatValue(selectedValues);
7844
7963
  }
@@ -8085,7 +8204,7 @@ function SheetDescription({
8085
8204
  }
8086
8205
  var skeletonBaseClass = "relative isolate overflow-hidden rounded-md bg-muted text-transparent";
8087
8206
  var skeletonShimmerClass = "after:absolute after:inset-0 after:-translate-x-full after:animate-[shimmer_1.6s_linear_infinite] after:bg-gradient-to-r after:from-transparent after:via-foreground/10 after:to-transparent after:content-['']";
8088
- var SkeletonRoot = React58__namespace.forwardRef(
8207
+ var SkeletonRoot = React59__namespace.forwardRef(
8089
8208
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8090
8209
  "div",
8091
8210
  {
@@ -8097,7 +8216,7 @@ var SkeletonRoot = React58__namespace.forwardRef(
8097
8216
  )
8098
8217
  );
8099
8218
  SkeletonRoot.displayName = "Skeleton";
8100
- var SkeletonButton = React58__namespace.forwardRef(
8219
+ var SkeletonButton = React59__namespace.forwardRef(
8101
8220
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8102
8221
  SkeletonRoot,
8103
8222
  {
@@ -8108,7 +8227,7 @@ var SkeletonButton = React58__namespace.forwardRef(
8108
8227
  )
8109
8228
  );
8110
8229
  SkeletonButton.displayName = "Skeleton.Button";
8111
- var SkeletonInput = React58__namespace.forwardRef(
8230
+ var SkeletonInput = React59__namespace.forwardRef(
8112
8231
  ({ className, ...props }, ref) => /* @__PURE__ */ jsx(
8113
8232
  SkeletonRoot,
8114
8233
  {
@@ -8177,9 +8296,9 @@ var SIDEBAR_WIDTH = "16rem";
8177
8296
  var SIDEBAR_WIDTH_MOBILE = "18rem";
8178
8297
  var SIDEBAR_WIDTH_ICON = "3rem";
8179
8298
  var SIDEBAR_KEYBOARD_SHORTCUT = "b";
8180
- var SidebarContext = React58__namespace.createContext(null);
8299
+ var SidebarContext = React59__namespace.createContext(null);
8181
8300
  function useSidebar() {
8182
- const context = React58__namespace.useContext(SidebarContext);
8301
+ const context = React59__namespace.useContext(SidebarContext);
8183
8302
  if (!context) {
8184
8303
  throw new Error("useSidebar must be used within a SidebarProvider.");
8185
8304
  }
@@ -8195,10 +8314,10 @@ function SidebarProvider({
8195
8314
  ...props
8196
8315
  }) {
8197
8316
  const isMobile = useIsMobile();
8198
- const [openMobile, setOpenMobile] = React58__namespace.useState(false);
8199
- const [_open, _setOpen] = React58__namespace.useState(defaultOpen);
8317
+ const [openMobile, setOpenMobile] = React59__namespace.useState(false);
8318
+ const [_open, _setOpen] = React59__namespace.useState(defaultOpen);
8200
8319
  const open = openProp != null ? openProp : _open;
8201
- const setOpen = React58__namespace.useCallback(
8320
+ const setOpen = React59__namespace.useCallback(
8202
8321
  (value) => {
8203
8322
  const openState = typeof value === "function" ? value(open) : value;
8204
8323
  if (setOpenProp) {
@@ -8210,10 +8329,10 @@ function SidebarProvider({
8210
8329
  },
8211
8330
  [setOpenProp, open]
8212
8331
  );
8213
- const toggleSidebar = React58__namespace.useCallback(() => {
8332
+ const toggleSidebar = React59__namespace.useCallback(() => {
8214
8333
  return isMobile ? setOpenMobile((open2) => !open2) : setOpen((open2) => !open2);
8215
8334
  }, [isMobile, setOpen, setOpenMobile]);
8216
- React58__namespace.useEffect(() => {
8335
+ React59__namespace.useEffect(() => {
8217
8336
  const handleKeyDown = (event) => {
8218
8337
  if (event.key === SIDEBAR_KEYBOARD_SHORTCUT && (event.metaKey || event.ctrlKey)) {
8219
8338
  event.preventDefault();
@@ -8224,7 +8343,7 @@ function SidebarProvider({
8224
8343
  return () => window.removeEventListener("keydown", handleKeyDown);
8225
8344
  }, [toggleSidebar]);
8226
8345
  const state = open ? "expanded" : "collapsed";
8227
- const contextValue = React58__namespace.useMemo(
8346
+ const contextValue = React59__namespace.useMemo(
8228
8347
  () => ({
8229
8348
  state,
8230
8349
  open,
@@ -8606,7 +8725,7 @@ function SidebarMenuButton({
8606
8725
  }) {
8607
8726
  const Comp = asChild ? radixUi.Slot.Slot : "button";
8608
8727
  const { isMobile, setOpenMobile, state } = useSidebar();
8609
- const handleClick = React58__namespace.useCallback(
8728
+ const handleClick = React59__namespace.useCallback(
8610
8729
  (event) => {
8611
8730
  if (onClick) {
8612
8731
  onClick(event);
@@ -8704,7 +8823,7 @@ function SidebarMenuSkeleton({
8704
8823
  showIcon = false,
8705
8824
  ...props
8706
8825
  }) {
8707
- const width = React58__namespace.useMemo(() => {
8826
+ const width = React59__namespace.useMemo(() => {
8708
8827
  return `${Math.floor(Math.random() * 40) + 50}%`;
8709
8828
  }, []);
8710
8829
  return /* @__PURE__ */ jsxs(
@@ -8775,7 +8894,7 @@ function SidebarMenuSubButton({
8775
8894
  }) {
8776
8895
  const Comp = asChild ? radixUi.Slot.Slot : "a";
8777
8896
  const { isMobile, setOpenMobile } = useSidebar();
8778
- const handleClick = React58__namespace.useCallback(
8897
+ const handleClick = React59__namespace.useCallback(
8779
8898
  (event) => {
8780
8899
  if (onClick) {
8781
8900
  onClick(event);
@@ -8814,7 +8933,7 @@ function Slider({
8814
8933
  max: max2 = 100,
8815
8934
  ...props
8816
8935
  }) {
8817
- const _values = React58__namespace.useMemo(
8936
+ const _values = React59__namespace.useMemo(
8818
8937
  () => Array.isArray(value) ? value : Array.isArray(defaultValue) ? defaultValue : [min2, max2],
8819
8938
  [value, defaultValue, min2, max2]
8820
8939
  );
@@ -8886,7 +9005,7 @@ function Switch({
8886
9005
  {
8887
9006
  "data-slot": "switch",
8888
9007
  className: cn(
8889
- "peer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-primary focus-visible:ring-primary/40 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
9008
+ "peer cursor-pointer data-[state=checked]:bg-primary data-[state=unchecked]:bg-input focus-visible:border-primary focus-visible:ring-primary/40 dark:data-[state=unchecked]:bg-input/80 inline-flex h-[1.15rem] w-8 shrink-0 items-center rounded-full border border-transparent shadow-xs transition-all outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50",
8890
9009
  className
8891
9010
  ),
8892
9011
  ...props,
@@ -9006,17 +9125,17 @@ function TableCaption({
9006
9125
  }
9007
9126
  );
9008
9127
  }
9009
- var TabsContext = React58__namespace.createContext(null);
9128
+ var TabsContext = React59__namespace.createContext(null);
9010
9129
  var useTabsContext = (component) => {
9011
- const context = React58__namespace.useContext(TabsContext);
9130
+ const context = React59__namespace.useContext(TabsContext);
9012
9131
  if (!context) {
9013
9132
  throw new Error(`${component} must be used within <Tabs>`);
9014
9133
  }
9015
9134
  return context;
9016
9135
  };
9017
- var TabsVariantContext = React58__namespace.createContext("default");
9136
+ var TabsVariantContext = React59__namespace.createContext("default");
9018
9137
  var useTabsVariant = (variant) => {
9019
- const contextVariant = React58__namespace.useContext(TabsVariantContext);
9138
+ const contextVariant = React59__namespace.useContext(TabsVariantContext);
9020
9139
  return variant != null ? variant : contextVariant;
9021
9140
  };
9022
9141
  var tabsListVariants = {
@@ -9059,7 +9178,7 @@ var mergeRefs = (...refs) => (node) => {
9059
9178
  }
9060
9179
  });
9061
9180
  };
9062
- var Tabs = React58__namespace.forwardRef(
9181
+ var Tabs = React59__namespace.forwardRef(
9063
9182
  ({
9064
9183
  className,
9065
9184
  children,
@@ -9071,14 +9190,14 @@ var Tabs = React58__namespace.forwardRef(
9071
9190
  ...props
9072
9191
  }, ref) => {
9073
9192
  var _a2;
9074
- const id = React58__namespace.useId();
9193
+ const id = React59__namespace.useId();
9075
9194
  const isControlled = valueProp !== void 0;
9076
- const [uncontrolledValue, setUncontrolledValue] = React58__namespace.useState(
9195
+ const [uncontrolledValue, setUncontrolledValue] = React59__namespace.useState(
9077
9196
  () => defaultValue != null ? defaultValue : null
9078
9197
  );
9079
9198
  const value = (_a2 = isControlled ? valueProp : uncontrolledValue) != null ? _a2 : null;
9080
- const triggersRef = React58__namespace.useRef(/* @__PURE__ */ new Map());
9081
- const setValue = React58__namespace.useCallback(
9199
+ const triggersRef = React59__namespace.useRef(/* @__PURE__ */ new Map());
9200
+ const setValue = React59__namespace.useCallback(
9082
9201
  (nextValue) => {
9083
9202
  if (!isControlled) {
9084
9203
  setUncontrolledValue(nextValue);
@@ -9087,7 +9206,7 @@ var Tabs = React58__namespace.forwardRef(
9087
9206
  },
9088
9207
  [isControlled, onValueChange]
9089
9208
  );
9090
- const registerTrigger = React58__namespace.useCallback(
9209
+ const registerTrigger = React59__namespace.useCallback(
9091
9210
  (triggerValue, node) => {
9092
9211
  if (node) {
9093
9212
  const wasEmpty = triggersRef.current.size === 0;
@@ -9101,7 +9220,7 @@ var Tabs = React58__namespace.forwardRef(
9101
9220
  },
9102
9221
  [defaultValue, isControlled, setUncontrolledValue, value]
9103
9222
  );
9104
- const getTriggerNode = React58__namespace.useCallback(
9223
+ const getTriggerNode = React59__namespace.useCallback(
9105
9224
  (triggerValue) => {
9106
9225
  var _a3;
9107
9226
  if (!triggerValue) {
@@ -9111,7 +9230,7 @@ var Tabs = React58__namespace.forwardRef(
9111
9230
  },
9112
9231
  []
9113
9232
  );
9114
- const focusTriggerByIndex = React58__namespace.useCallback(
9233
+ const focusTriggerByIndex = React59__namespace.useCallback(
9115
9234
  (index2) => {
9116
9235
  const values = Array.from(triggersRef.current.keys());
9117
9236
  if (!values.length) {
@@ -9127,7 +9246,7 @@ var Tabs = React58__namespace.forwardRef(
9127
9246
  },
9128
9247
  [activationMode, setValue]
9129
9248
  );
9130
- const focusNextTrigger = React58__namespace.useCallback(
9249
+ const focusNextTrigger = React59__namespace.useCallback(
9131
9250
  (currentValue, direction) => {
9132
9251
  const values = Array.from(triggersRef.current.keys());
9133
9252
  const currentIndex = values.indexOf(currentValue);
@@ -9138,7 +9257,7 @@ var Tabs = React58__namespace.forwardRef(
9138
9257
  },
9139
9258
  [focusTriggerByIndex]
9140
9259
  );
9141
- const focusEdgeTrigger = React58__namespace.useCallback(
9260
+ const focusEdgeTrigger = React59__namespace.useCallback(
9142
9261
  (edge) => {
9143
9262
  const values = Array.from(triggersRef.current.keys());
9144
9263
  if (!values.length) {
@@ -9148,16 +9267,16 @@ var Tabs = React58__namespace.forwardRef(
9148
9267
  },
9149
9268
  [focusTriggerByIndex]
9150
9269
  );
9151
- const [orientation, setOrientationState] = React58__namespace.useState("horizontal");
9152
- const setOrientation = React58__namespace.useCallback((nextOrientation) => {
9270
+ const [orientation, setOrientationState] = React59__namespace.useState("horizontal");
9271
+ const setOrientation = React59__namespace.useCallback((nextOrientation) => {
9153
9272
  setOrientationState(nextOrientation);
9154
9273
  }, []);
9155
- React58__namespace.useEffect(() => {
9274
+ React59__namespace.useEffect(() => {
9156
9275
  if (!isControlled && value == null && defaultValue) {
9157
9276
  setUncontrolledValue(defaultValue);
9158
9277
  }
9159
9278
  }, [defaultValue, isControlled, setUncontrolledValue, value]);
9160
- const contextValue = React58__namespace.useMemo(
9279
+ const contextValue = React59__namespace.useMemo(
9161
9280
  () => ({
9162
9281
  id,
9163
9282
  value,
@@ -9186,15 +9305,15 @@ var Tabs = React58__namespace.forwardRef(
9186
9305
  }
9187
9306
  );
9188
9307
  Tabs.displayName = "Tabs";
9189
- var TabsList = React58__namespace.forwardRef(
9308
+ var TabsList = React59__namespace.forwardRef(
9190
9309
  ({ className, variant, orientation = "horizontal", ...props }, ref) => {
9191
9310
  const { value: activeValue, setOrientation, getTriggerNode } = useTabsContext("TabsList");
9192
9311
  const activeVariant = useTabsVariant(variant);
9193
9312
  const highlightClass = tabsListHighlightVariants[activeVariant];
9194
- const localRef = React58__namespace.useRef(null);
9195
- const [indicatorStyle, setIndicatorStyle] = React58__namespace.useState(null);
9313
+ const localRef = React59__namespace.useRef(null);
9314
+ const [indicatorStyle, setIndicatorStyle] = React59__namespace.useState(null);
9196
9315
  const highlightEnabled = highlightableVariants.has(activeVariant);
9197
- const updateIndicator = React58__namespace.useCallback(() => {
9316
+ const updateIndicator = React59__namespace.useCallback(() => {
9198
9317
  if (!highlightEnabled) {
9199
9318
  setIndicatorStyle(null);
9200
9319
  return;
@@ -9230,13 +9349,13 @@ var TabsList = React58__namespace.forwardRef(
9230
9349
  transform: `translate3d(${offsetLeft}px, ${offsetTop}px, 0)`
9231
9350
  });
9232
9351
  }, [activeValue, getTriggerNode, highlightEnabled]);
9233
- React58__namespace.useEffect(() => {
9352
+ React59__namespace.useEffect(() => {
9234
9353
  setOrientation(orientation);
9235
9354
  }, [orientation, setOrientation]);
9236
- React58__namespace.useLayoutEffect(() => {
9355
+ React59__namespace.useLayoutEffect(() => {
9237
9356
  updateIndicator();
9238
9357
  }, [updateIndicator]);
9239
- React58__namespace.useEffect(() => {
9358
+ React59__namespace.useEffect(() => {
9240
9359
  if (!highlightEnabled || typeof ResizeObserver === "undefined") {
9241
9360
  return;
9242
9361
  }
@@ -9256,7 +9375,7 @@ var TabsList = React58__namespace.forwardRef(
9256
9375
  observer.disconnect();
9257
9376
  };
9258
9377
  }, [activeValue, getTriggerNode, highlightEnabled, updateIndicator]);
9259
- React58__namespace.useEffect(() => {
9378
+ React59__namespace.useEffect(() => {
9260
9379
  if (!highlightEnabled || typeof MutationObserver === "undefined") {
9261
9380
  return;
9262
9381
  }
@@ -9272,7 +9391,7 @@ var TabsList = React58__namespace.forwardRef(
9272
9391
  observer.disconnect();
9273
9392
  };
9274
9393
  }, [highlightEnabled, updateIndicator]);
9275
- React58__namespace.useEffect(() => {
9394
+ React59__namespace.useEffect(() => {
9276
9395
  if (!highlightEnabled) {
9277
9396
  return;
9278
9397
  }
@@ -9312,7 +9431,7 @@ var TabsList = React58__namespace.forwardRef(
9312
9431
  }
9313
9432
  );
9314
9433
  TabsList.displayName = "TabsList";
9315
- var TabsTrigger = React58__namespace.forwardRef(
9434
+ var TabsTrigger = React59__namespace.forwardRef(
9316
9435
  ({ className, variant, value, disabled, onClick, onKeyDown, ...props }, forwardedRef) => {
9317
9436
  const {
9318
9437
  id,
@@ -9324,11 +9443,11 @@ var TabsTrigger = React58__namespace.forwardRef(
9324
9443
  orientation
9325
9444
  } = useTabsContext("TabsTrigger");
9326
9445
  const activeVariant = useTabsVariant(variant);
9327
- const localRef = React58__namespace.useRef(null);
9446
+ const localRef = React59__namespace.useRef(null);
9328
9447
  const isActive = activeValue === value;
9329
9448
  const triggerId = `${id}-trigger-${value}`;
9330
9449
  const contentId = `${id}-content-${value}`;
9331
- React58__namespace.useEffect(() => {
9450
+ React59__namespace.useEffect(() => {
9332
9451
  registerTrigger(value, localRef.current);
9333
9452
  return () => registerTrigger(value, null);
9334
9453
  }, [registerTrigger, value]);
@@ -9403,7 +9522,7 @@ var TabsTrigger = React58__namespace.forwardRef(
9403
9522
  }
9404
9523
  );
9405
9524
  TabsTrigger.displayName = "TabsTrigger";
9406
- var TabsContent = React58__namespace.forwardRef(
9525
+ var TabsContent = React59__namespace.forwardRef(
9407
9526
  ({ className, variant, value, ...props }, ref) => {
9408
9527
  const { id, value: activeValue } = useTabsContext("TabsContent");
9409
9528
  const activeVariant = useTabsVariant(variant);
@@ -9430,21 +9549,44 @@ var TabsContent = React58__namespace.forwardRef(
9430
9549
  }
9431
9550
  );
9432
9551
  TabsContent.displayName = "TabsContent";
9433
-
9434
- // src/components/ui/textarea/textarea.tsx
9435
- function Textarea({ className, ...props }) {
9436
- return /* @__PURE__ */ jsx(
9437
- "textarea",
9438
- {
9439
- "data-slot": "textarea",
9440
- className: cn(
9441
- "border-input placeholder:text-muted-foreground focus-visible:border-primary focus-visible:ring-primary/40 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
9442
- className
9443
- ),
9444
- ...props
9445
- }
9446
- );
9447
- }
9552
+ var Textarea = React59__namespace.forwardRef(
9553
+ ({ className, onFocus, ...props }, forwardedRef) => {
9554
+ const setRefs = React59__namespace.useCallback(
9555
+ (node) => {
9556
+ if (typeof forwardedRef === "function") {
9557
+ forwardedRef(node);
9558
+ } else if (forwardedRef) {
9559
+ forwardedRef.current = node;
9560
+ }
9561
+ },
9562
+ [forwardedRef]
9563
+ );
9564
+ const handleFocus = React59__namespace.useCallback(
9565
+ (event) => {
9566
+ onFocus == null ? void 0 : onFocus(event);
9567
+ if (event.defaultPrevented) {
9568
+ return;
9569
+ }
9570
+ maybeScrollElementIntoView(event.currentTarget);
9571
+ },
9572
+ [onFocus]
9573
+ );
9574
+ return /* @__PURE__ */ jsx(
9575
+ "textarea",
9576
+ {
9577
+ ref: setRefs,
9578
+ "data-slot": "textarea",
9579
+ onFocus: handleFocus,
9580
+ className: cn(
9581
+ "border-input placeholder:text-muted-foreground focus-visible:border-primary focus-visible:ring-primary/40 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",
9582
+ className
9583
+ ),
9584
+ ...props
9585
+ }
9586
+ );
9587
+ }
9588
+ );
9589
+ Textarea.displayName = "Textarea";
9448
9590
  var toggleVariants = classVarianceAuthority.cva(
9449
9591
  "inline-flex items-center justify-center gap-2 rounded-md text-sm font-medium hover:bg-muted hover:text-muted-foreground disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 [&_svg]:shrink-0 focus-visible:border-primary focus-visible:ring-primary/40 focus-visible:ring-[3px] outline-none transition-[color,box-shadow] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive whitespace-nowrap",
9450
9592
  {
@@ -9480,7 +9622,7 @@ function Toggle({
9480
9622
  }
9481
9623
  );
9482
9624
  }
9483
- var ToggleGroupContext = React58__namespace.createContext({
9625
+ var ToggleGroupContext = React59__namespace.createContext({
9484
9626
  size: "default",
9485
9627
  variant: "default"
9486
9628
  });
@@ -9513,7 +9655,7 @@ function ToggleGroupItem({
9513
9655
  size: size4,
9514
9656
  ...props
9515
9657
  }) {
9516
- const context = React58__namespace.useContext(ToggleGroupContext);
9658
+ const context = React59__namespace.useContext(ToggleGroupContext);
9517
9659
  return /* @__PURE__ */ jsx(
9518
9660
  radixUi.ToggleGroup.Item,
9519
9661
  {
@@ -9657,9 +9799,9 @@ function MobileWheelColumn2({
9657
9799
  onValueChange,
9658
9800
  open
9659
9801
  }) {
9660
- const listRef = React58__namespace.useRef(null);
9661
- const scrollTimeoutRef = React58__namespace.useRef(null);
9662
- const extendedOptions = React58__namespace.useMemo(() => {
9802
+ const listRef = React59__namespace.useRef(null);
9803
+ const scrollTimeoutRef = React59__namespace.useRef(null);
9804
+ const extendedOptions = React59__namespace.useMemo(() => {
9663
9805
  if (options.length === 0) {
9664
9806
  return [];
9665
9807
  }
@@ -9671,7 +9813,7 @@ function MobileWheelColumn2({
9671
9813
  }
9672
9814
  return repeated;
9673
9815
  }, [options]);
9674
- const alignToValue = React58__namespace.useCallback(
9816
+ const alignToValue = React59__namespace.useCallback(
9675
9817
  (value, behavior = "auto") => {
9676
9818
  if (!listRef.current || options.length === 0 || extendedOptions.length === 0) {
9677
9819
  return;
@@ -9685,18 +9827,18 @@ function MobileWheelColumn2({
9685
9827
  },
9686
9828
  [extendedOptions.length, options]
9687
9829
  );
9688
- React58__namespace.useLayoutEffect(() => {
9830
+ React59__namespace.useLayoutEffect(() => {
9689
9831
  if (!open) {
9690
9832
  return;
9691
9833
  }
9692
9834
  alignToValue(selectedValue);
9693
9835
  }, [alignToValue, open, options, selectedValue]);
9694
- React58__namespace.useEffect(() => () => {
9836
+ React59__namespace.useEffect(() => () => {
9695
9837
  if (scrollTimeoutRef.current !== null) {
9696
9838
  clearTimeout(scrollTimeoutRef.current);
9697
9839
  }
9698
9840
  }, []);
9699
- const handleScroll2 = React58__namespace.useCallback(
9841
+ const handleScroll2 = React59__namespace.useCallback(
9700
9842
  (event) => {
9701
9843
  if (extendedOptions.length === 0 || options.length === 0) {
9702
9844
  return;
@@ -9785,7 +9927,7 @@ var MeridiemColumn = ({ value, onChange }) => /* @__PURE__ */ jsxs("div", { clas
9785
9927
  );
9786
9928
  }) })
9787
9929
  ] });
9788
- var TimePicker = React58__namespace.forwardRef((props, ref) => {
9930
+ var TimePicker = React59__namespace.forwardRef((props, ref) => {
9789
9931
  var _a2, _b, _c, _d;
9790
9932
  const {
9791
9933
  value: valueProp,
@@ -9827,21 +9969,21 @@ var TimePicker = React58__namespace.forwardRef((props, ref) => {
9827
9969
  const isMobile = useIsMobile();
9828
9970
  const shouldUseDrawer = isNative || isMobile;
9829
9971
  const isControlled = valueProp !== void 0;
9830
- const [internalValue, setInternalValue] = React58__namespace.useState(defaultValue);
9972
+ const [internalValue, setInternalValue] = React59__namespace.useState(defaultValue);
9831
9973
  const currentValue = (_a2 = isControlled ? valueProp : internalValue) != null ? _a2 : null;
9832
- const parsedValue = React58__namespace.useMemo(() => parseTimeString(currentValue), [currentValue]);
9833
- const resolvedMeridiem = React58__namespace.useMemo(
9974
+ const parsedValue = React59__namespace.useMemo(() => parseTimeString(currentValue), [currentValue]);
9975
+ const resolvedMeridiem = React59__namespace.useMemo(
9834
9976
  () => {
9835
9977
  var _a3;
9836
9978
  return ((_a3 = parsedValue == null ? void 0 : parsedValue.hour) != null ? _a3 : 0) >= 12 ? "PM" : "AM";
9837
9979
  },
9838
9980
  [parsedValue == null ? void 0 : parsedValue.hour]
9839
9981
  );
9840
- const [meridiem, setMeridiem] = React58__namespace.useState(resolvedMeridiem);
9841
- React58__namespace.useEffect(() => {
9982
+ const [meridiem, setMeridiem] = React59__namespace.useState(resolvedMeridiem);
9983
+ React59__namespace.useEffect(() => {
9842
9984
  setMeridiem(resolvedMeridiem);
9843
9985
  }, [resolvedMeridiem]);
9844
- const inferredShowSeconds = React58__namespace.useMemo(() => {
9986
+ const inferredShowSeconds = React59__namespace.useMemo(() => {
9845
9987
  if (typeof showSecondsProp === "boolean") {
9846
9988
  return showSecondsProp;
9847
9989
  }
@@ -9850,12 +9992,12 @@ var TimePicker = React58__namespace.forwardRef((props, ref) => {
9850
9992
  }
9851
9993
  return Boolean(currentValue && currentValue.split(":").length === 3);
9852
9994
  }, [currentValue, format, showSecondsProp]);
9853
- const defaultFormat = React58__namespace.useMemo(
9995
+ const defaultFormat = React59__namespace.useMemo(
9854
9996
  () => use12Hours ? inferredShowSeconds ? "hh:mm:ss A" : "hh:mm A" : inferredShowSeconds ? "HH:mm:ss" : "HH:mm",
9855
9997
  [inferredShowSeconds, use12Hours]
9856
9998
  );
9857
9999
  const resolvedFormat = typeof format === "string" ? format : defaultFormat;
9858
- const formatValue = React58__namespace.useCallback(
10000
+ const formatValue = React59__namespace.useCallback(
9859
10001
  (value) => {
9860
10002
  if (!value) {
9861
10003
  return "";
@@ -9867,21 +10009,21 @@ var TimePicker = React58__namespace.forwardRef((props, ref) => {
9867
10009
  },
9868
10010
  [format, resolvedFormat]
9869
10011
  );
9870
- const [inputValue, setInputValue] = React58__namespace.useState(() => formatValue(parsedValue));
9871
- React58__namespace.useEffect(() => {
10012
+ const [inputValue, setInputValue] = React59__namespace.useState(() => formatValue(parsedValue));
10013
+ React59__namespace.useEffect(() => {
9872
10014
  setInputValue(formatValue(parsedValue));
9873
10015
  }, [formatValue, parsedValue]);
9874
10016
  const allowClearConfig = typeof allowClear === "object" && allowClear !== null && !Array.isArray(allowClear) ? allowClear : void 0;
9875
10017
  const clearIcon = (_b = allowClearConfig == null ? void 0 : allowClearConfig.clearIcon) != null ? _b : /* @__PURE__ */ jsx(lucideReact.X, { className: "h-4 w-4", strokeWidth: 2 });
9876
10018
  const showClear = Boolean(allowClear) && !disabled && Boolean(currentValue);
9877
- const primaryColorStyle = React58__namespace.useMemo(
10019
+ const primaryColorStyle = React59__namespace.useMemo(
9878
10020
  () => ({ "--date-primary-color": DEFAULT_PRIMARY_COLOR2 }),
9879
10021
  []
9880
10022
  );
9881
10023
  const isOpenControlled = openProp !== void 0;
9882
- const [internalOpen, setInternalOpen] = React58__namespace.useState(Boolean(defaultOpen));
10024
+ const [internalOpen, setInternalOpen] = React59__namespace.useState(Boolean(defaultOpen));
9883
10025
  const open = isOpenControlled ? Boolean(openProp) : internalOpen;
9884
- const handleOpenChange = React58__namespace.useCallback(
10026
+ const handleOpenChange = React59__namespace.useCallback(
9885
10027
  (nextOpen) => {
9886
10028
  if (disabled) {
9887
10029
  return;
@@ -9893,7 +10035,7 @@ var TimePicker = React58__namespace.forwardRef((props, ref) => {
9893
10035
  },
9894
10036
  [disabled, isOpenControlled, onOpenChange]
9895
10037
  );
9896
- const commitValue = React58__namespace.useCallback(
10038
+ const commitValue = React59__namespace.useCallback(
9897
10039
  (next) => {
9898
10040
  if (!next) {
9899
10041
  if (!isControlled) {
@@ -9917,7 +10059,7 @@ var TimePicker = React58__namespace.forwardRef((props, ref) => {
9917
10059
  const safeHourStep = Math.max(1, Math.floor(hourStep));
9918
10060
  const safeMinuteStep = Math.max(1, Math.floor(minuteStep));
9919
10061
  const safeSecondStep = Math.max(1, Math.floor(secondStep));
9920
- const hourOptions = React58__namespace.useMemo(() => {
10062
+ const hourOptions = React59__namespace.useMemo(() => {
9921
10063
  if (use12Hours) {
9922
10064
  const values = [];
9923
10065
  for (let hour = 1; hour <= 12; hour += safeHourStep) {
@@ -9935,14 +10077,14 @@ var TimePicker = React58__namespace.forwardRef((props, ref) => {
9935
10077
  }
9936
10078
  return result;
9937
10079
  }, [safeHourStep, use12Hours]);
9938
- const minuteOptions = React58__namespace.useMemo(() => {
10080
+ const minuteOptions = React59__namespace.useMemo(() => {
9939
10081
  const result = [];
9940
10082
  for (let minute = 0; minute < 60; minute += safeMinuteStep) {
9941
10083
  result.push({ label: pad(minute), value: minute });
9942
10084
  }
9943
10085
  return result;
9944
10086
  }, [safeMinuteStep]);
9945
- const secondOptions = React58__namespace.useMemo(() => {
10087
+ const secondOptions = React59__namespace.useMemo(() => {
9946
10088
  if (!inferredShowSeconds) {
9947
10089
  return [];
9948
10090
  }
@@ -9952,7 +10094,7 @@ var TimePicker = React58__namespace.forwardRef((props, ref) => {
9952
10094
  }
9953
10095
  return result;
9954
10096
  }, [inferredShowSeconds, safeSecondStep]);
9955
- const resolvedHourValue = React58__namespace.useMemo(() => {
10097
+ const resolvedHourValue = React59__namespace.useMemo(() => {
9956
10098
  if (!parsedValue) {
9957
10099
  return use12Hours ? 12 : 0;
9958
10100
  }
@@ -9960,7 +10102,7 @@ var TimePicker = React58__namespace.forwardRef((props, ref) => {
9960
10102
  }, [parsedValue, use12Hours]);
9961
10103
  const resolvedMinuteValue = (_c = parsedValue == null ? void 0 : parsedValue.minute) != null ? _c : 0;
9962
10104
  const resolvedSecondValue = (_d = parsedValue == null ? void 0 : parsedValue.second) != null ? _d : 0;
9963
- const handleHourSelect = React58__namespace.useCallback(
10105
+ const handleHourSelect = React59__namespace.useCallback(
9964
10106
  (value) => {
9965
10107
  if (use12Hours) {
9966
10108
  const hour24 = convert12To24(value, meridiem);
@@ -9971,19 +10113,19 @@ var TimePicker = React58__namespace.forwardRef((props, ref) => {
9971
10113
  },
9972
10114
  [baseValue, commitValue, meridiem, use12Hours]
9973
10115
  );
9974
- const handleMinuteSelect = React58__namespace.useCallback(
10116
+ const handleMinuteSelect = React59__namespace.useCallback(
9975
10117
  (value) => {
9976
10118
  commitValue({ ...baseValue, minute: value });
9977
10119
  },
9978
10120
  [baseValue, commitValue]
9979
10121
  );
9980
- const handleSecondSelect = React58__namespace.useCallback(
10122
+ const handleSecondSelect = React59__namespace.useCallback(
9981
10123
  (value) => {
9982
10124
  commitValue({ ...baseValue, second: value });
9983
10125
  },
9984
10126
  [baseValue, commitValue]
9985
10127
  );
9986
- const handleMeridiemChange = React58__namespace.useCallback(
10128
+ const handleMeridiemChange = React59__namespace.useCallback(
9987
10129
  (nextMeridiem) => {
9988
10130
  setMeridiem(nextMeridiem);
9989
10131
  const current = parsedValue != null ? parsedValue : baseValue;
@@ -9998,7 +10140,7 @@ var TimePicker = React58__namespace.forwardRef((props, ref) => {
9998
10140
  },
9999
10141
  [baseValue, commitValue, parsedValue]
10000
10142
  );
10001
- const handleInputChange = React58__namespace.useCallback(
10143
+ const handleInputChange = React59__namespace.useCallback(
10002
10144
  (event) => {
10003
10145
  const nextValue = event.target.value;
10004
10146
  setInputValue(nextValue);
@@ -10106,7 +10248,7 @@ var TimePicker = React58__namespace.forwardRef((props, ref) => {
10106
10248
  ]
10107
10249
  }
10108
10250
  );
10109
- const periodWheelOptions = React58__namespace.useMemo(
10251
+ const periodWheelOptions = React59__namespace.useMemo(
10110
10252
  () => [
10111
10253
  { label: "AM", value: "AM" },
10112
10254
  { label: "PM", value: "PM" }
@@ -10277,7 +10419,7 @@ function DataTable({
10277
10419
  var _a2;
10278
10420
  const rowModel = (_a2 = virtualizedRows == null ? void 0 : virtualizedRows.rows) != null ? _a2 : table.getRowModel().rows;
10279
10421
  const dataIds = dndEnabled ? rowModel.map((row) => Number(row.id)) : [];
10280
- const sortableId = React58__namespace.useId();
10422
+ const sortableId = React59__namespace.useId();
10281
10423
  const sensors = core.useSensors(core.useSensor(core.MouseSensor, {}), core.useSensor(core.TouchSensor, {}), core.useSensor(core.KeyboardSensor, {}));
10282
10424
  function handleDragEnd(event) {
10283
10425
  const { active, over } = event;
@@ -10479,21 +10621,21 @@ function composeEventHandlers(originalEventHandler, ourEventHandler, { checkForD
10479
10621
  function createContextScope(scopeName, createContextScopeDeps = []) {
10480
10622
  let defaultContexts = [];
10481
10623
  function createContext32(rootComponentName, defaultContext) {
10482
- const BaseContext = React58__namespace.createContext(defaultContext);
10624
+ const BaseContext = React59__namespace.createContext(defaultContext);
10483
10625
  const index2 = defaultContexts.length;
10484
10626
  defaultContexts = [...defaultContexts, defaultContext];
10485
10627
  const Provider = (props) => {
10486
10628
  var _a2;
10487
10629
  const { scope, children, ...context } = props;
10488
10630
  const Context = ((_a2 = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a2[index2]) || BaseContext;
10489
- const value = React58__namespace.useMemo(() => context, Object.values(context));
10631
+ const value = React59__namespace.useMemo(() => context, Object.values(context));
10490
10632
  return /* @__PURE__ */ jsxRuntime.jsx(Context.Provider, { value, children });
10491
10633
  };
10492
10634
  Provider.displayName = rootComponentName + "Provider";
10493
10635
  function useContext22(consumerName, scope) {
10494
10636
  var _a2;
10495
10637
  const Context = ((_a2 = scope == null ? void 0 : scope[scopeName]) == null ? void 0 : _a2[index2]) || BaseContext;
10496
- const context = React58__namespace.useContext(Context);
10638
+ const context = React59__namespace.useContext(Context);
10497
10639
  if (context) return context;
10498
10640
  if (defaultContext !== void 0) return defaultContext;
10499
10641
  throw new Error(`\`${consumerName}\` must be used within \`${rootComponentName}\``);
@@ -10502,11 +10644,11 @@ function createContextScope(scopeName, createContextScopeDeps = []) {
10502
10644
  }
10503
10645
  const createScope = () => {
10504
10646
  const scopeContexts = defaultContexts.map((defaultContext) => {
10505
- return React58__namespace.createContext(defaultContext);
10647
+ return React59__namespace.createContext(defaultContext);
10506
10648
  });
10507
10649
  return function useScope(scope) {
10508
10650
  const contexts = (scope == null ? void 0 : scope[scopeName]) || scopeContexts;
10509
- return React58__namespace.useMemo(
10651
+ return React59__namespace.useMemo(
10510
10652
  () => ({ [`__scope${scopeName}`]: { ...scope, [scopeName]: contexts } }),
10511
10653
  [scope, contexts]
10512
10654
  );
@@ -10529,15 +10671,15 @@ function composeContextScopes(...scopes) {
10529
10671
  const currentScope = scopeProps[`__scope${scopeName}`];
10530
10672
  return { ...nextScopes2, ...currentScope };
10531
10673
  }, {});
10532
- return React58__namespace.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
10674
+ return React59__namespace.useMemo(() => ({ [`__scope${baseScope.scopeName}`]: nextScopes }), [nextScopes]);
10533
10675
  };
10534
10676
  };
10535
10677
  createScope.scopeName = baseScope.scopeName;
10536
10678
  return createScope;
10537
10679
  }
10538
- var useLayoutEffect22 = (globalThis == null ? void 0 : globalThis.document) ? React58__namespace.useLayoutEffect : () => {
10680
+ var useLayoutEffect22 = (globalThis == null ? void 0 : globalThis.document) ? React59__namespace.useLayoutEffect : () => {
10539
10681
  };
10540
- var useInsertionEffect = React58__namespace[" useInsertionEffect ".trim().toString()] || useLayoutEffect22;
10682
+ var useInsertionEffect = React59__namespace[" useInsertionEffect ".trim().toString()] || useLayoutEffect22;
10541
10683
  function useControllableState({
10542
10684
  prop,
10543
10685
  defaultProp,
@@ -10552,8 +10694,8 @@ function useControllableState({
10552
10694
  const isControlled = prop !== void 0;
10553
10695
  const value = isControlled ? prop : uncontrolledProp;
10554
10696
  {
10555
- const isControlledRef = React58__namespace.useRef(prop !== void 0);
10556
- React58__namespace.useEffect(() => {
10697
+ const isControlledRef = React59__namespace.useRef(prop !== void 0);
10698
+ React59__namespace.useEffect(() => {
10557
10699
  const wasControlled = isControlledRef.current;
10558
10700
  if (wasControlled !== isControlled) {
10559
10701
  const from = wasControlled ? "controlled" : "uncontrolled";
@@ -10565,7 +10707,7 @@ function useControllableState({
10565
10707
  isControlledRef.current = isControlled;
10566
10708
  }, [isControlled, caller]);
10567
10709
  }
10568
- const setValue = React58__namespace.useCallback(
10710
+ const setValue = React59__namespace.useCallback(
10569
10711
  (nextValue) => {
10570
10712
  var _a2;
10571
10713
  if (isControlled) {
@@ -10585,13 +10727,13 @@ function useUncontrolledState({
10585
10727
  defaultProp,
10586
10728
  onChange
10587
10729
  }) {
10588
- const [value, setValue] = React58__namespace.useState(defaultProp);
10589
- const prevValueRef = React58__namespace.useRef(value);
10590
- const onChangeRef = React58__namespace.useRef(onChange);
10730
+ const [value, setValue] = React59__namespace.useState(defaultProp);
10731
+ const prevValueRef = React59__namespace.useRef(value);
10732
+ const onChangeRef = React59__namespace.useRef(onChange);
10591
10733
  useInsertionEffect(() => {
10592
10734
  onChangeRef.current = onChange;
10593
10735
  }, [onChange]);
10594
- React58__namespace.useEffect(() => {
10736
+ React59__namespace.useEffect(() => {
10595
10737
  var _a2;
10596
10738
  if (prevValueRef.current !== value) {
10597
10739
  (_a2 = onChangeRef.current) == null ? void 0 : _a2.call(onChangeRef, value);
@@ -10624,7 +10766,7 @@ var NODES = [
10624
10766
  ];
10625
10767
  var Primitive = NODES.reduce((primitive, node) => {
10626
10768
  const Slot3 = createSlot(`Primitive.${node}`);
10627
- const Node2 = React58__namespace.forwardRef((props, forwardedRef) => {
10769
+ const Node2 = React59__namespace.forwardRef((props, forwardedRef) => {
10628
10770
  const { asChild, ...primitiveProps } = props;
10629
10771
  const Comp = asChild ? Slot3 : node;
10630
10772
  if (typeof window !== "undefined") {
@@ -10647,14 +10789,14 @@ function createCollection(name) {
10647
10789
  );
10648
10790
  const CollectionProvider = (props) => {
10649
10791
  const { scope, children } = props;
10650
- const ref = React58__namespace.default.useRef(null);
10651
- const itemMap = React58__namespace.default.useRef(/* @__PURE__ */ new Map()).current;
10792
+ const ref = React59__namespace.default.useRef(null);
10793
+ const itemMap = React59__namespace.default.useRef(/* @__PURE__ */ new Map()).current;
10652
10794
  return /* @__PURE__ */ jsxRuntime.jsx(CollectionProviderImpl, { scope, itemMap, collectionRef: ref, children });
10653
10795
  };
10654
10796
  CollectionProvider.displayName = PROVIDER_NAME;
10655
10797
  const COLLECTION_SLOT_NAME = name + "CollectionSlot";
10656
10798
  const CollectionSlotImpl = createSlot(COLLECTION_SLOT_NAME);
10657
- const CollectionSlot = React58__namespace.default.forwardRef(
10799
+ const CollectionSlot = React59__namespace.default.forwardRef(
10658
10800
  (props, forwardedRef) => {
10659
10801
  const { scope, children } = props;
10660
10802
  const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
@@ -10666,13 +10808,13 @@ function createCollection(name) {
10666
10808
  const ITEM_SLOT_NAME = name + "CollectionItemSlot";
10667
10809
  const ITEM_DATA_ATTR = "data-radix-collection-item";
10668
10810
  const CollectionItemSlotImpl = createSlot(ITEM_SLOT_NAME);
10669
- const CollectionItemSlot = React58__namespace.default.forwardRef(
10811
+ const CollectionItemSlot = React59__namespace.default.forwardRef(
10670
10812
  (props, forwardedRef) => {
10671
10813
  const { scope, children, ...itemData } = props;
10672
- const ref = React58__namespace.default.useRef(null);
10814
+ const ref = React59__namespace.default.useRef(null);
10673
10815
  const composedRefs = useComposedRefs(forwardedRef, ref);
10674
10816
  const context = useCollectionContext(ITEM_SLOT_NAME, scope);
10675
- React58__namespace.default.useEffect(() => {
10817
+ React59__namespace.default.useEffect(() => {
10676
10818
  context.itemMap.set(ref, { ref, ...itemData });
10677
10819
  return () => void context.itemMap.delete(ref);
10678
10820
  });
@@ -10682,7 +10824,7 @@ function createCollection(name) {
10682
10824
  CollectionItemSlot.displayName = ITEM_SLOT_NAME;
10683
10825
  function useCollection3(scope) {
10684
10826
  const context = useCollectionContext(name + "CollectionConsumer", scope);
10685
- const getItems = React58__namespace.default.useCallback(() => {
10827
+ const getItems = React59__namespace.default.useCallback(() => {
10686
10828
  const collectionNode = context.collectionRef.current;
10687
10829
  if (!collectionNode) return [];
10688
10830
  const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
@@ -10700,24 +10842,24 @@ function createCollection(name) {
10700
10842
  createCollectionScope3
10701
10843
  ];
10702
10844
  }
10703
- var DirectionContext = React58__namespace.createContext(void 0);
10845
+ var DirectionContext = React59__namespace.createContext(void 0);
10704
10846
  function useDirection(localDir) {
10705
- const globalDir = React58__namespace.useContext(DirectionContext);
10847
+ const globalDir = React59__namespace.useContext(DirectionContext);
10706
10848
  return localDir || globalDir || "ltr";
10707
10849
  }
10708
10850
  function useCallbackRef(callback) {
10709
- const callbackRef = React58__namespace.useRef(callback);
10710
- React58__namespace.useEffect(() => {
10851
+ const callbackRef = React59__namespace.useRef(callback);
10852
+ React59__namespace.useEffect(() => {
10711
10853
  callbackRef.current = callback;
10712
10854
  });
10713
- return React58__namespace.useMemo(() => (...args) => {
10855
+ return React59__namespace.useMemo(() => (...args) => {
10714
10856
  var _a2;
10715
10857
  return (_a2 = callbackRef.current) == null ? void 0 : _a2.call(callbackRef, ...args);
10716
10858
  }, []);
10717
10859
  }
10718
10860
  function useEscapeKeydown(onEscapeKeyDownProp, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
10719
10861
  const onEscapeKeyDown = useCallbackRef(onEscapeKeyDownProp);
10720
- React58__namespace.useEffect(() => {
10862
+ React59__namespace.useEffect(() => {
10721
10863
  const handleKeyDown = (event) => {
10722
10864
  if (event.key === "Escape") {
10723
10865
  onEscapeKeyDown(event);
@@ -10732,12 +10874,12 @@ var CONTEXT_UPDATE = "dismissableLayer.update";
10732
10874
  var POINTER_DOWN_OUTSIDE = "dismissableLayer.pointerDownOutside";
10733
10875
  var FOCUS_OUTSIDE = "dismissableLayer.focusOutside";
10734
10876
  var originalBodyPointerEvents;
10735
- var DismissableLayerContext = React58__namespace.createContext({
10877
+ var DismissableLayerContext = React59__namespace.createContext({
10736
10878
  layers: /* @__PURE__ */ new Set(),
10737
10879
  layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
10738
10880
  branches: /* @__PURE__ */ new Set()
10739
10881
  });
10740
- var DismissableLayer = React58__namespace.forwardRef(
10882
+ var DismissableLayer = React59__namespace.forwardRef(
10741
10883
  (props, forwardedRef) => {
10742
10884
  var _a2;
10743
10885
  const {
@@ -10749,10 +10891,10 @@ var DismissableLayer = React58__namespace.forwardRef(
10749
10891
  onDismiss,
10750
10892
  ...layerProps
10751
10893
  } = props;
10752
- const context = React58__namespace.useContext(DismissableLayerContext);
10753
- const [node, setNode] = React58__namespace.useState(null);
10894
+ const context = React59__namespace.useContext(DismissableLayerContext);
10895
+ const [node, setNode] = React59__namespace.useState(null);
10754
10896
  const ownerDocument = (_a2 = node == null ? void 0 : node.ownerDocument) != null ? _a2 : globalThis == null ? void 0 : globalThis.document;
10755
- const [, force] = React58__namespace.useState({});
10897
+ const [, force] = React59__namespace.useState({});
10756
10898
  const composedRefs = useComposedRefs(forwardedRef, (node2) => setNode(node2));
10757
10899
  const layers = Array.from(context.layers);
10758
10900
  const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
@@ -10785,7 +10927,7 @@ var DismissableLayer = React58__namespace.forwardRef(
10785
10927
  onDismiss();
10786
10928
  }
10787
10929
  }, ownerDocument);
10788
- React58__namespace.useEffect(() => {
10930
+ React59__namespace.useEffect(() => {
10789
10931
  if (!node) return;
10790
10932
  if (disableOutsidePointerEvents) {
10791
10933
  if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
@@ -10802,7 +10944,7 @@ var DismissableLayer = React58__namespace.forwardRef(
10802
10944
  }
10803
10945
  };
10804
10946
  }, [node, ownerDocument, disableOutsidePointerEvents, context]);
10805
- React58__namespace.useEffect(() => {
10947
+ React59__namespace.useEffect(() => {
10806
10948
  return () => {
10807
10949
  if (!node) return;
10808
10950
  context.layers.delete(node);
@@ -10810,7 +10952,7 @@ var DismissableLayer = React58__namespace.forwardRef(
10810
10952
  dispatchUpdate();
10811
10953
  };
10812
10954
  }, [node, context]);
10813
- React58__namespace.useEffect(() => {
10955
+ React59__namespace.useEffect(() => {
10814
10956
  const handleUpdate = () => force({});
10815
10957
  document.addEventListener(CONTEXT_UPDATE, handleUpdate);
10816
10958
  return () => document.removeEventListener(CONTEXT_UPDATE, handleUpdate);
@@ -10836,11 +10978,11 @@ var DismissableLayer = React58__namespace.forwardRef(
10836
10978
  );
10837
10979
  DismissableLayer.displayName = DISMISSABLE_LAYER_NAME;
10838
10980
  var BRANCH_NAME = "DismissableLayerBranch";
10839
- var DismissableLayerBranch = React58__namespace.forwardRef((props, forwardedRef) => {
10840
- const context = React58__namespace.useContext(DismissableLayerContext);
10841
- const ref = React58__namespace.useRef(null);
10981
+ var DismissableLayerBranch = React59__namespace.forwardRef((props, forwardedRef) => {
10982
+ const context = React59__namespace.useContext(DismissableLayerContext);
10983
+ const ref = React59__namespace.useRef(null);
10842
10984
  const composedRefs = useComposedRefs(forwardedRef, ref);
10843
- React58__namespace.useEffect(() => {
10985
+ React59__namespace.useEffect(() => {
10844
10986
  const node = ref.current;
10845
10987
  if (node) {
10846
10988
  context.branches.add(node);
@@ -10854,10 +10996,10 @@ var DismissableLayerBranch = React58__namespace.forwardRef((props, forwardedRef)
10854
10996
  DismissableLayerBranch.displayName = BRANCH_NAME;
10855
10997
  function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
10856
10998
  const handlePointerDownOutside = useCallbackRef(onPointerDownOutside);
10857
- const isPointerInsideReactTreeRef = React58__namespace.useRef(false);
10858
- const handleClickRef = React58__namespace.useRef(() => {
10999
+ const isPointerInsideReactTreeRef = React59__namespace.useRef(false);
11000
+ const handleClickRef = React59__namespace.useRef(() => {
10859
11001
  });
10860
- React58__namespace.useEffect(() => {
11002
+ React59__namespace.useEffect(() => {
10861
11003
  const handlePointerDown = (event) => {
10862
11004
  if (event.target && !isPointerInsideReactTreeRef.current) {
10863
11005
  let handleAndDispatchPointerDownOutsideEvent2 = function() {
@@ -10897,8 +11039,8 @@ function usePointerDownOutside(onPointerDownOutside, ownerDocument = globalThis
10897
11039
  }
10898
11040
  function useFocusOutside(onFocusOutside, ownerDocument = globalThis == null ? void 0 : globalThis.document) {
10899
11041
  const handleFocusOutside = useCallbackRef(onFocusOutside);
10900
- const isFocusInsideReactTreeRef = React58__namespace.useRef(false);
10901
- React58__namespace.useEffect(() => {
11042
+ const isFocusInsideReactTreeRef = React59__namespace.useRef(false);
11043
+ React59__namespace.useEffect(() => {
10902
11044
  const handleFocus = (event) => {
10903
11045
  if (event.target && !isFocusInsideReactTreeRef.current) {
10904
11046
  const eventDetail = { originalEvent: event };
@@ -10931,7 +11073,7 @@ function handleAndDispatchCustomEvent(name, handler, detail, { discrete }) {
10931
11073
  }
10932
11074
  var count = 0;
10933
11075
  function useFocusGuards() {
10934
- React58__namespace.useEffect(() => {
11076
+ React59__namespace.useEffect(() => {
10935
11077
  var _a2, _b;
10936
11078
  const edgeGuards = document.querySelectorAll("[data-radix-focus-guard]");
10937
11079
  document.body.insertAdjacentElement("afterbegin", (_a2 = edgeGuards[0]) != null ? _a2 : createFocusGuard());
@@ -10959,7 +11101,7 @@ var AUTOFOCUS_ON_MOUNT = "focusScope.autoFocusOnMount";
10959
11101
  var AUTOFOCUS_ON_UNMOUNT = "focusScope.autoFocusOnUnmount";
10960
11102
  var EVENT_OPTIONS = { bubbles: false, cancelable: true };
10961
11103
  var FOCUS_SCOPE_NAME = "FocusScope";
10962
- var FocusScope = React58__namespace.forwardRef((props, forwardedRef) => {
11104
+ var FocusScope = React59__namespace.forwardRef((props, forwardedRef) => {
10963
11105
  const {
10964
11106
  loop = false,
10965
11107
  trapped = false,
@@ -10967,12 +11109,12 @@ var FocusScope = React58__namespace.forwardRef((props, forwardedRef) => {
10967
11109
  onUnmountAutoFocus: onUnmountAutoFocusProp,
10968
11110
  ...scopeProps
10969
11111
  } = props;
10970
- const [container, setContainer] = React58__namespace.useState(null);
11112
+ const [container, setContainer] = React59__namespace.useState(null);
10971
11113
  const onMountAutoFocus = useCallbackRef(onMountAutoFocusProp);
10972
11114
  const onUnmountAutoFocus = useCallbackRef(onUnmountAutoFocusProp);
10973
- const lastFocusedElementRef = React58__namespace.useRef(null);
11115
+ const lastFocusedElementRef = React59__namespace.useRef(null);
10974
11116
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContainer(node));
10975
- const focusScope = React58__namespace.useRef({
11117
+ const focusScope = React59__namespace.useRef({
10976
11118
  paused: false,
10977
11119
  pause() {
10978
11120
  this.paused = true;
@@ -10981,7 +11123,7 @@ var FocusScope = React58__namespace.forwardRef((props, forwardedRef) => {
10981
11123
  this.paused = false;
10982
11124
  }
10983
11125
  }).current;
10984
- React58__namespace.useEffect(() => {
11126
+ React59__namespace.useEffect(() => {
10985
11127
  if (trapped) {
10986
11128
  let handleFocusIn2 = function(event) {
10987
11129
  if (focusScope.paused || !container) return;
@@ -11016,7 +11158,7 @@ var FocusScope = React58__namespace.forwardRef((props, forwardedRef) => {
11016
11158
  };
11017
11159
  }
11018
11160
  }, [trapped, container, focusScope.paused]);
11019
- React58__namespace.useEffect(() => {
11161
+ React59__namespace.useEffect(() => {
11020
11162
  if (container) {
11021
11163
  focusScopesStack.add(focusScope);
11022
11164
  const previouslyFocusedElement = document.activeElement;
@@ -11047,7 +11189,7 @@ var FocusScope = React58__namespace.forwardRef((props, forwardedRef) => {
11047
11189
  };
11048
11190
  }
11049
11191
  }, [container, onMountAutoFocus, onUnmountAutoFocus, focusScope]);
11050
- const handleKeyDown = React58__namespace.useCallback(
11192
+ const handleKeyDown = React59__namespace.useCallback(
11051
11193
  (event) => {
11052
11194
  if (!loop && !trapped) return;
11053
11195
  if (focusScope.paused) return;
@@ -11155,10 +11297,10 @@ function arrayRemove(array, item) {
11155
11297
  function removeLinks(items) {
11156
11298
  return items.filter((item) => item.tagName !== "A");
11157
11299
  }
11158
- var useReactId = React58__namespace[" useId ".trim().toString()] || (() => void 0);
11300
+ var useReactId = React59__namespace[" useId ".trim().toString()] || (() => void 0);
11159
11301
  var count2 = 0;
11160
11302
  function useId4(deterministicId) {
11161
- const [id, setId] = React58__namespace.useState(useReactId());
11303
+ const [id, setId] = React59__namespace.useState(useReactId());
11162
11304
  useLayoutEffect22(() => {
11163
11305
  setId((reactId) => reactId != null ? reactId : String(count2++));
11164
11306
  }, [deterministicId]);
@@ -12773,7 +12915,7 @@ var computePosition2 = (reference, floating, options) => {
12773
12915
  var isClient = typeof document !== "undefined";
12774
12916
  var noop4 = function noop5() {
12775
12917
  };
12776
- var index = isClient ? React58.useLayoutEffect : noop4;
12918
+ var index = isClient ? React59.useLayoutEffect : noop4;
12777
12919
  function deepEqual(a, b) {
12778
12920
  if (a === b) {
12779
12921
  return true;
@@ -12833,7 +12975,7 @@ function roundByDPR(element, value) {
12833
12975
  return Math.round(value * dpr) / dpr;
12834
12976
  }
12835
12977
  function useLatestRef(value) {
12836
- const ref = React58__namespace.useRef(value);
12978
+ const ref = React59__namespace.useRef(value);
12837
12979
  index(() => {
12838
12980
  ref.current = value;
12839
12981
  });
@@ -12856,7 +12998,7 @@ function useFloating(options) {
12856
12998
  whileElementsMounted,
12857
12999
  open
12858
13000
  } = options;
12859
- const [data, setData] = React58__namespace.useState({
13001
+ const [data, setData] = React59__namespace.useState({
12860
13002
  x: 0,
12861
13003
  y: 0,
12862
13004
  strategy,
@@ -12864,19 +13006,19 @@ function useFloating(options) {
12864
13006
  middlewareData: {},
12865
13007
  isPositioned: false
12866
13008
  });
12867
- const [latestMiddleware, setLatestMiddleware] = React58__namespace.useState(middleware);
13009
+ const [latestMiddleware, setLatestMiddleware] = React59__namespace.useState(middleware);
12868
13010
  if (!deepEqual(latestMiddleware, middleware)) {
12869
13011
  setLatestMiddleware(middleware);
12870
13012
  }
12871
- const [_reference, _setReference] = React58__namespace.useState(null);
12872
- const [_floating, _setFloating] = React58__namespace.useState(null);
12873
- const setReference = React58__namespace.useCallback((node) => {
13013
+ const [_reference, _setReference] = React59__namespace.useState(null);
13014
+ const [_floating, _setFloating] = React59__namespace.useState(null);
13015
+ const setReference = React59__namespace.useCallback((node) => {
12874
13016
  if (node !== referenceRef.current) {
12875
13017
  referenceRef.current = node;
12876
13018
  _setReference(node);
12877
13019
  }
12878
13020
  }, []);
12879
- const setFloating = React58__namespace.useCallback((node) => {
13021
+ const setFloating = React59__namespace.useCallback((node) => {
12880
13022
  if (node !== floatingRef.current) {
12881
13023
  floatingRef.current = node;
12882
13024
  _setFloating(node);
@@ -12884,14 +13026,14 @@ function useFloating(options) {
12884
13026
  }, []);
12885
13027
  const referenceEl = externalReference || _reference;
12886
13028
  const floatingEl = externalFloating || _floating;
12887
- const referenceRef = React58__namespace.useRef(null);
12888
- const floatingRef = React58__namespace.useRef(null);
12889
- const dataRef = React58__namespace.useRef(data);
13029
+ const referenceRef = React59__namespace.useRef(null);
13030
+ const floatingRef = React59__namespace.useRef(null);
13031
+ const dataRef = React59__namespace.useRef(data);
12890
13032
  const hasWhileElementsMounted = whileElementsMounted != null;
12891
13033
  const whileElementsMountedRef = useLatestRef(whileElementsMounted);
12892
13034
  const platformRef = useLatestRef(platform2);
12893
13035
  const openRef = useLatestRef(open);
12894
- const update = React58__namespace.useCallback(() => {
13036
+ const update = React59__namespace.useCallback(() => {
12895
13037
  if (!referenceRef.current || !floatingRef.current) {
12896
13038
  return;
12897
13039
  }
@@ -12929,7 +13071,7 @@ function useFloating(options) {
12929
13071
  }));
12930
13072
  }
12931
13073
  }, [open]);
12932
- const isMountedRef = React58__namespace.useRef(false);
13074
+ const isMountedRef = React59__namespace.useRef(false);
12933
13075
  index(() => {
12934
13076
  isMountedRef.current = true;
12935
13077
  return () => {
@@ -12946,17 +13088,17 @@ function useFloating(options) {
12946
13088
  update();
12947
13089
  }
12948
13090
  }, [referenceEl, floatingEl, update, whileElementsMountedRef, hasWhileElementsMounted]);
12949
- const refs = React58__namespace.useMemo(() => ({
13091
+ const refs = React59__namespace.useMemo(() => ({
12950
13092
  reference: referenceRef,
12951
13093
  floating: floatingRef,
12952
13094
  setReference,
12953
13095
  setFloating
12954
13096
  }), [setReference, setFloating]);
12955
- const elements = React58__namespace.useMemo(() => ({
13097
+ const elements = React59__namespace.useMemo(() => ({
12956
13098
  reference: referenceEl,
12957
13099
  floating: floatingEl
12958
13100
  }), [referenceEl, floatingEl]);
12959
- const floatingStyles = React58__namespace.useMemo(() => {
13101
+ const floatingStyles = React59__namespace.useMemo(() => {
12960
13102
  const initialStyles = {
12961
13103
  position: strategy,
12962
13104
  left: 0,
@@ -12982,7 +13124,7 @@ function useFloating(options) {
12982
13124
  top: y
12983
13125
  };
12984
13126
  }, [strategy, transform, elements.floating, data.x, data.y]);
12985
- return React58__namespace.useMemo(() => ({
13127
+ return React59__namespace.useMemo(() => ({
12986
13128
  ...data,
12987
13129
  update,
12988
13130
  refs,
@@ -13050,7 +13192,7 @@ var arrow3 = (options, deps) => ({
13050
13192
  options: [options, deps]
13051
13193
  });
13052
13194
  var NAME = "Arrow";
13053
- var Arrow = React58__namespace.forwardRef((props, forwardedRef) => {
13195
+ var Arrow = React59__namespace.forwardRef((props, forwardedRef) => {
13054
13196
  const { children, width = 10, height = 5, ...arrowProps } = props;
13055
13197
  return /* @__PURE__ */ jsxRuntime.jsx(
13056
13198
  Primitive.svg,
@@ -13068,7 +13210,7 @@ var Arrow = React58__namespace.forwardRef((props, forwardedRef) => {
13068
13210
  Arrow.displayName = NAME;
13069
13211
  var Root = Arrow;
13070
13212
  function useSize(element) {
13071
- const [size4, setSize] = React58__namespace.useState(void 0);
13213
+ const [size4, setSize] = React59__namespace.useState(void 0);
13072
13214
  useLayoutEffect22(() => {
13073
13215
  if (element) {
13074
13216
  setSize({ width: element.offsetWidth, height: element.offsetHeight });
@@ -13105,14 +13247,14 @@ var POPPER_NAME = "Popper";
13105
13247
  var [createPopperContext, createPopperScope] = createContextScope(POPPER_NAME);
13106
13248
  var [PopperProvider, usePopperContext] = createPopperContext(POPPER_NAME);
13107
13249
  var ANCHOR_NAME = "PopperAnchor";
13108
- var PopperAnchor = React58__namespace.forwardRef(
13250
+ var PopperAnchor = React59__namespace.forwardRef(
13109
13251
  (props, forwardedRef) => {
13110
13252
  const { __scopePopper, virtualRef, ...anchorProps } = props;
13111
13253
  const context = usePopperContext(ANCHOR_NAME, __scopePopper);
13112
- const ref = React58__namespace.useRef(null);
13254
+ const ref = React59__namespace.useRef(null);
13113
13255
  const composedRefs = useComposedRefs(forwardedRef, ref);
13114
- const anchorRef = React58__namespace.useRef(null);
13115
- React58__namespace.useEffect(() => {
13256
+ const anchorRef = React59__namespace.useRef(null);
13257
+ React59__namespace.useEffect(() => {
13116
13258
  const previousAnchor = anchorRef.current;
13117
13259
  anchorRef.current = (virtualRef == null ? void 0 : virtualRef.current) || ref.current;
13118
13260
  if (previousAnchor !== anchorRef.current) {
@@ -13125,7 +13267,7 @@ var PopperAnchor = React58__namespace.forwardRef(
13125
13267
  PopperAnchor.displayName = ANCHOR_NAME;
13126
13268
  var CONTENT_NAME = "PopperContent";
13127
13269
  var [PopperContentProvider, useContentContext] = createPopperContext(CONTENT_NAME);
13128
- var PopperContent = React58__namespace.forwardRef(
13270
+ var PopperContent = React59__namespace.forwardRef(
13129
13271
  (props, forwardedRef) => {
13130
13272
  var _a2, _b, _c, _d, _e, _f, _g, _h;
13131
13273
  const {
@@ -13145,9 +13287,9 @@ var PopperContent = React58__namespace.forwardRef(
13145
13287
  ...contentProps
13146
13288
  } = props;
13147
13289
  const context = usePopperContext(CONTENT_NAME, __scopePopper);
13148
- const [content, setContent] = React58__namespace.useState(null);
13290
+ const [content, setContent] = React59__namespace.useState(null);
13149
13291
  const composedRefs = useComposedRefs(forwardedRef, (node) => setContent(node));
13150
- const [arrow4, setArrow] = React58__namespace.useState(null);
13292
+ const [arrow4, setArrow] = React59__namespace.useState(null);
13151
13293
  const arrowSize = useSize(arrow4);
13152
13294
  const arrowWidth = (_a2 = arrowSize == null ? void 0 : arrowSize.width) != null ? _a2 : 0;
13153
13295
  const arrowHeight = (_b = arrowSize == null ? void 0 : arrowSize.height) != null ? _b : 0;
@@ -13209,7 +13351,7 @@ var PopperContent = React58__namespace.forwardRef(
13209
13351
  const arrowX = (_c = middlewareData.arrow) == null ? void 0 : _c.x;
13210
13352
  const arrowY = (_d = middlewareData.arrow) == null ? void 0 : _d.y;
13211
13353
  const cannotCenterArrow = ((_e = middlewareData.arrow) == null ? void 0 : _e.centerOffset) !== 0;
13212
- const [contentZIndex, setContentZIndex] = React58__namespace.useState();
13354
+ const [contentZIndex, setContentZIndex] = React59__namespace.useState();
13213
13355
  useLayoutEffect22(() => {
13214
13356
  if (content) setContentZIndex(window.getComputedStyle(content).zIndex);
13215
13357
  }, [content]);
@@ -13275,7 +13417,7 @@ var OPPOSITE_SIDE = {
13275
13417
  bottom: "top",
13276
13418
  left: "right"
13277
13419
  };
13278
- var PopperArrow = React58__namespace.forwardRef(function PopperArrow2(props, forwardedRef) {
13420
+ var PopperArrow = React59__namespace.forwardRef(function PopperArrow2(props, forwardedRef) {
13279
13421
  const { __scopePopper, ...arrowProps } = props;
13280
13422
  const contentContext = useContentContext(ARROW_NAME, __scopePopper);
13281
13423
  const baseSide = OPPOSITE_SIDE[contentContext.placedSide];
@@ -13366,17 +13508,17 @@ var Anchor = PopperAnchor;
13366
13508
  var Content = PopperContent;
13367
13509
  var Arrow2 = PopperArrow;
13368
13510
  var PORTAL_NAME = "Portal";
13369
- var Portal = React58__namespace.forwardRef((props, forwardedRef) => {
13511
+ var Portal = React59__namespace.forwardRef((props, forwardedRef) => {
13370
13512
  var _a2;
13371
13513
  const { container: containerProp, ...portalProps } = props;
13372
- const [mounted, setMounted] = React58__namespace.useState(false);
13514
+ const [mounted, setMounted] = React59__namespace.useState(false);
13373
13515
  useLayoutEffect22(() => setMounted(true), []);
13374
13516
  const container = containerProp || mounted && ((_a2 = globalThis == null ? void 0 : globalThis.document) == null ? void 0 : _a2.body);
13375
13517
  return container ? ReactDOM__namespace.default.createPortal(/* @__PURE__ */ jsxRuntime.jsx(Primitive.div, { ...portalProps, ref: forwardedRef }), container) : null;
13376
13518
  });
13377
13519
  Portal.displayName = PORTAL_NAME;
13378
13520
  function useStateMachine(initialState, machine) {
13379
- return React58__namespace.useReducer((state, event) => {
13521
+ return React59__namespace.useReducer((state, event) => {
13380
13522
  const nextState = machine[state][event];
13381
13523
  return nextState != null ? nextState : state;
13382
13524
  }, initialState);
@@ -13384,17 +13526,17 @@ function useStateMachine(initialState, machine) {
13384
13526
  var Presence = (props) => {
13385
13527
  const { present, children } = props;
13386
13528
  const presence = usePresence(present);
13387
- const child = typeof children === "function" ? children({ present: presence.isPresent }) : React58__namespace.Children.only(children);
13529
+ const child = typeof children === "function" ? children({ present: presence.isPresent }) : React59__namespace.Children.only(children);
13388
13530
  const ref = useComposedRefs(presence.ref, getElementRef2(child));
13389
13531
  const forceMount = typeof children === "function";
13390
- return forceMount || presence.isPresent ? React58__namespace.cloneElement(child, { ref }) : null;
13532
+ return forceMount || presence.isPresent ? React59__namespace.cloneElement(child, { ref }) : null;
13391
13533
  };
13392
13534
  Presence.displayName = "Presence";
13393
13535
  function usePresence(present) {
13394
- const [node, setNode] = React58__namespace.useState();
13395
- const stylesRef = React58__namespace.useRef(null);
13396
- const prevPresentRef = React58__namespace.useRef(present);
13397
- const prevAnimationNameRef = React58__namespace.useRef("none");
13536
+ const [node, setNode] = React59__namespace.useState();
13537
+ const stylesRef = React59__namespace.useRef(null);
13538
+ const prevPresentRef = React59__namespace.useRef(present);
13539
+ const prevAnimationNameRef = React59__namespace.useRef("none");
13398
13540
  const initialState = present ? "mounted" : "unmounted";
13399
13541
  const [state, send] = useStateMachine(initialState, {
13400
13542
  mounted: {
@@ -13409,7 +13551,7 @@ function usePresence(present) {
13409
13551
  MOUNT: "mounted"
13410
13552
  }
13411
13553
  });
13412
- React58__namespace.useEffect(() => {
13554
+ React59__namespace.useEffect(() => {
13413
13555
  const currentAnimationName = getAnimationName(stylesRef.current);
13414
13556
  prevAnimationNameRef.current = state === "mounted" ? currentAnimationName : "none";
13415
13557
  }, [state]);
@@ -13476,7 +13618,7 @@ function usePresence(present) {
13476
13618
  }, [node, send]);
13477
13619
  return {
13478
13620
  isPresent: ["mounted", "unmountSuspended"].includes(state),
13479
- ref: React58__namespace.useCallback((node2) => {
13621
+ ref: React59__namespace.useCallback((node2) => {
13480
13622
  stylesRef.current = node2 ? getComputedStyle(node2) : null;
13481
13623
  setNode(node2);
13482
13624
  }, [])
@@ -13508,13 +13650,13 @@ var [createRovingFocusGroupContext, createRovingFocusGroupScope] = createContext
13508
13650
  [createCollectionScope]
13509
13651
  );
13510
13652
  var [RovingFocusProvider, useRovingFocusContext] = createRovingFocusGroupContext(GROUP_NAME);
13511
- var RovingFocusGroup = React58__namespace.forwardRef(
13653
+ var RovingFocusGroup = React59__namespace.forwardRef(
13512
13654
  (props, forwardedRef) => {
13513
13655
  return /* @__PURE__ */ jsxRuntime.jsx(Collection.Provider, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsxRuntime.jsx(Collection.Slot, { scope: props.__scopeRovingFocusGroup, children: /* @__PURE__ */ jsxRuntime.jsx(RovingFocusGroupImpl, { ...props, ref: forwardedRef }) }) });
13514
13656
  }
13515
13657
  );
13516
13658
  RovingFocusGroup.displayName = GROUP_NAME;
13517
- var RovingFocusGroupImpl = React58__namespace.forwardRef((props, forwardedRef) => {
13659
+ var RovingFocusGroupImpl = React59__namespace.forwardRef((props, forwardedRef) => {
13518
13660
  const {
13519
13661
  __scopeRovingFocusGroup,
13520
13662
  orientation,
@@ -13527,7 +13669,7 @@ var RovingFocusGroupImpl = React58__namespace.forwardRef((props, forwardedRef) =
13527
13669
  preventScrollOnEntryFocus = false,
13528
13670
  ...groupProps
13529
13671
  } = props;
13530
- const ref = React58__namespace.useRef(null);
13672
+ const ref = React59__namespace.useRef(null);
13531
13673
  const composedRefs = useComposedRefs(forwardedRef, ref);
13532
13674
  const direction = useDirection(dir);
13533
13675
  const [currentTabStopId, setCurrentTabStopId] = useControllableState({
@@ -13536,12 +13678,12 @@ var RovingFocusGroupImpl = React58__namespace.forwardRef((props, forwardedRef) =
13536
13678
  onChange: onCurrentTabStopIdChange,
13537
13679
  caller: GROUP_NAME
13538
13680
  });
13539
- const [isTabbingBackOut, setIsTabbingBackOut] = React58__namespace.useState(false);
13681
+ const [isTabbingBackOut, setIsTabbingBackOut] = React59__namespace.useState(false);
13540
13682
  const handleEntryFocus = useCallbackRef(onEntryFocus);
13541
13683
  const getItems = useCollection(__scopeRovingFocusGroup);
13542
- const isClickFocusRef = React58__namespace.useRef(false);
13543
- const [focusableItemsCount, setFocusableItemsCount] = React58__namespace.useState(0);
13544
- React58__namespace.useEffect(() => {
13684
+ const isClickFocusRef = React59__namespace.useRef(false);
13685
+ const [focusableItemsCount, setFocusableItemsCount] = React59__namespace.useState(0);
13686
+ React59__namespace.useEffect(() => {
13545
13687
  const node = ref.current;
13546
13688
  if (node) {
13547
13689
  node.addEventListener(ENTRY_FOCUS, handleEntryFocus);
@@ -13556,16 +13698,16 @@ var RovingFocusGroupImpl = React58__namespace.forwardRef((props, forwardedRef) =
13556
13698
  dir: direction,
13557
13699
  loop,
13558
13700
  currentTabStopId,
13559
- onItemFocus: React58__namespace.useCallback(
13701
+ onItemFocus: React59__namespace.useCallback(
13560
13702
  (tabStopId) => setCurrentTabStopId(tabStopId),
13561
13703
  [setCurrentTabStopId]
13562
13704
  ),
13563
- onItemShiftTab: React58__namespace.useCallback(() => setIsTabbingBackOut(true), []),
13564
- onFocusableItemAdd: React58__namespace.useCallback(
13705
+ onItemShiftTab: React59__namespace.useCallback(() => setIsTabbingBackOut(true), []),
13706
+ onFocusableItemAdd: React59__namespace.useCallback(
13565
13707
  () => setFocusableItemsCount((prevCount) => prevCount + 1),
13566
13708
  []
13567
13709
  ),
13568
- onFocusableItemRemove: React58__namespace.useCallback(
13710
+ onFocusableItemRemove: React59__namespace.useCallback(
13569
13711
  () => setFocusableItemsCount((prevCount) => prevCount - 1),
13570
13712
  []
13571
13713
  ),
@@ -13605,7 +13747,7 @@ var RovingFocusGroupImpl = React58__namespace.forwardRef((props, forwardedRef) =
13605
13747
  );
13606
13748
  });
13607
13749
  var ITEM_NAME = "RovingFocusGroupItem";
13608
- var RovingFocusGroupItem = React58__namespace.forwardRef(
13750
+ var RovingFocusGroupItem = React59__namespace.forwardRef(
13609
13751
  (props, forwardedRef) => {
13610
13752
  const {
13611
13753
  __scopeRovingFocusGroup,
@@ -13621,7 +13763,7 @@ var RovingFocusGroupItem = React58__namespace.forwardRef(
13621
13763
  const isCurrentTabStop = context.currentTabStopId === id;
13622
13764
  const getItems = useCollection(__scopeRovingFocusGroup);
13623
13765
  const { onFocusableItemAdd, onFocusableItemRemove, currentTabStopId } = context;
13624
- React58__namespace.useEffect(() => {
13766
+ React59__namespace.useEffect(() => {
13625
13767
  if (focusable) {
13626
13768
  onFocusableItemAdd();
13627
13769
  return () => onFocusableItemRemove();
@@ -13878,7 +14020,7 @@ function assignRef(ref, value) {
13878
14020
  return ref;
13879
14021
  }
13880
14022
  function useCallbackRef2(initialValue, callback) {
13881
- var ref = React58.useState(function() {
14023
+ var ref = React59.useState(function() {
13882
14024
  return {
13883
14025
  // value
13884
14026
  value: initialValue,
@@ -13902,7 +14044,7 @@ function useCallbackRef2(initialValue, callback) {
13902
14044
  ref.callback = callback;
13903
14045
  return ref.facade;
13904
14046
  }
13905
- var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React58__namespace.useLayoutEffect : React58__namespace.useEffect;
14047
+ var useIsomorphicLayoutEffect = typeof window !== "undefined" ? React59__namespace.useLayoutEffect : React59__namespace.useEffect;
13906
14048
  var currentValues = /* @__PURE__ */ new WeakMap();
13907
14049
  function useMergeRefs(refs, defaultValue) {
13908
14050
  var callbackRef = useCallbackRef2(null, function(newValue) {
@@ -14026,7 +14168,7 @@ var SideCar = function(_a2) {
14026
14168
  if (!Target) {
14027
14169
  throw new Error("Sidecar medium not found");
14028
14170
  }
14029
- return React58__namespace.createElement(Target, __assign({}, rest));
14171
+ return React59__namespace.createElement(Target, __assign({}, rest));
14030
14172
  };
14031
14173
  SideCar.isSideCarExport = true;
14032
14174
  function exportSidecar(medium, exported) {
@@ -14041,9 +14183,9 @@ var effectCar = createSidecarMedium();
14041
14183
  var nothing = function() {
14042
14184
  return;
14043
14185
  };
14044
- var RemoveScroll = React58__namespace.forwardRef(function(props, parentRef) {
14045
- var ref = React58__namespace.useRef(null);
14046
- var _a2 = React58__namespace.useState({
14186
+ var RemoveScroll = React59__namespace.forwardRef(function(props, parentRef) {
14187
+ var ref = React59__namespace.useRef(null);
14188
+ var _a2 = React59__namespace.useState({
14047
14189
  onScrollCapture: nothing,
14048
14190
  onWheelCapture: nothing,
14049
14191
  onTouchMoveCapture: nothing
@@ -14052,11 +14194,11 @@ var RemoveScroll = React58__namespace.forwardRef(function(props, parentRef) {
14052
14194
  var SideCar2 = sideCar;
14053
14195
  var containerRef = useMergeRefs([ref, parentRef]);
14054
14196
  var containerProps = __assign(__assign({}, rest), callbacks);
14055
- return React58__namespace.createElement(
14056
- React58__namespace.Fragment,
14197
+ return React59__namespace.createElement(
14198
+ React59__namespace.Fragment,
14057
14199
  null,
14058
- enabled && React58__namespace.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
14059
- forwardProps ? React58__namespace.cloneElement(React58__namespace.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React58__namespace.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
14200
+ enabled && React59__namespace.createElement(SideCar2, { sideCar: effectCar, removeScrollBar, shards, noRelative, noIsolation, inert, setCallbacks, allowPinchZoom: !!allowPinchZoom, lockRef: ref, gapMode }),
14201
+ forwardProps ? React59__namespace.cloneElement(React59__namespace.Children.only(children), __assign(__assign({}, containerProps), { ref: containerRef })) : React59__namespace.createElement(Container, __assign({}, containerProps, { className, ref: containerRef }), children)
14060
14202
  );
14061
14203
  });
14062
14204
  RemoveScroll.defaultProps = {
@@ -14125,7 +14267,7 @@ var stylesheetSingleton = function() {
14125
14267
  var styleHookSingleton = function() {
14126
14268
  var sheet = stylesheetSingleton();
14127
14269
  return function(styles, isDynamic) {
14128
- React58__namespace.useEffect(function() {
14270
+ React59__namespace.useEffect(function() {
14129
14271
  sheet.add(styles);
14130
14272
  return function() {
14131
14273
  sheet.remove();
@@ -14199,7 +14341,7 @@ var getCurrentUseCounter = function() {
14199
14341
  return isFinite(counter) ? counter : 0;
14200
14342
  };
14201
14343
  var useLockAttribute = function() {
14202
- React58__namespace.useEffect(function() {
14344
+ React59__namespace.useEffect(function() {
14203
14345
  document.body.setAttribute(lockAttribute, (getCurrentUseCounter() + 1).toString());
14204
14346
  return function() {
14205
14347
  var newCounter = getCurrentUseCounter() - 1;
@@ -14214,10 +14356,10 @@ var useLockAttribute = function() {
14214
14356
  var RemoveScrollBar = function(_a2) {
14215
14357
  var noRelative = _a2.noRelative, noImportant = _a2.noImportant, _b = _a2.gapMode, gapMode = _b === void 0 ? "margin" : _b;
14216
14358
  useLockAttribute();
14217
- var gap = React58__namespace.useMemo(function() {
14359
+ var gap = React59__namespace.useMemo(function() {
14218
14360
  return getGapWidth(gapMode);
14219
14361
  }, [gapMode]);
14220
- return React58__namespace.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
14362
+ return React59__namespace.createElement(Style, { styles: getStyles(gap, !noRelative, gapMode, !noImportant ? "!important" : "") });
14221
14363
  };
14222
14364
 
14223
14365
  // node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.js
@@ -14358,16 +14500,16 @@ var generateStyle = function(id) {
14358
14500
  var idCounter = 0;
14359
14501
  var lockStack = [];
14360
14502
  function RemoveScrollSideCar(props) {
14361
- var shouldPreventQueue = React58__namespace.useRef([]);
14362
- var touchStartRef = React58__namespace.useRef([0, 0]);
14363
- var activeAxis = React58__namespace.useRef();
14364
- var id = React58__namespace.useState(idCounter++)[0];
14365
- var Style2 = React58__namespace.useState(styleSingleton)[0];
14366
- var lastProps = React58__namespace.useRef(props);
14367
- React58__namespace.useEffect(function() {
14503
+ var shouldPreventQueue = React59__namespace.useRef([]);
14504
+ var touchStartRef = React59__namespace.useRef([0, 0]);
14505
+ var activeAxis = React59__namespace.useRef();
14506
+ var id = React59__namespace.useState(idCounter++)[0];
14507
+ var Style2 = React59__namespace.useState(styleSingleton)[0];
14508
+ var lastProps = React59__namespace.useRef(props);
14509
+ React59__namespace.useEffect(function() {
14368
14510
  lastProps.current = props;
14369
14511
  }, [props]);
14370
- React58__namespace.useEffect(function() {
14512
+ React59__namespace.useEffect(function() {
14371
14513
  if (props.inert) {
14372
14514
  document.body.classList.add("block-interactivity-".concat(id));
14373
14515
  var allow_1 = __spreadArray([props.lockRef.current], (props.shards || []).map(extractRef)).filter(Boolean);
@@ -14383,7 +14525,7 @@ function RemoveScrollSideCar(props) {
14383
14525
  }
14384
14526
  return;
14385
14527
  }, [props.inert, props.lockRef.current, props.shards]);
14386
- var shouldCancelEvent = React58__namespace.useCallback(function(event, parent) {
14528
+ var shouldCancelEvent = React59__namespace.useCallback(function(event, parent) {
14387
14529
  if ("touches" in event && event.touches.length === 2 || event.type === "wheel" && event.ctrlKey) {
14388
14530
  return !lastProps.current.allowPinchZoom;
14389
14531
  }
@@ -14419,7 +14561,7 @@ function RemoveScrollSideCar(props) {
14419
14561
  var cancelingAxis = activeAxis.current || currentAxis;
14420
14562
  return handleScroll(cancelingAxis, parent, event, cancelingAxis === "h" ? deltaX : deltaY);
14421
14563
  }, []);
14422
- var shouldPrevent = React58__namespace.useCallback(function(_event) {
14564
+ var shouldPrevent = React59__namespace.useCallback(function(_event) {
14423
14565
  var event = _event;
14424
14566
  if (!lockStack.length || lockStack[lockStack.length - 1] !== Style2) {
14425
14567
  return;
@@ -14446,7 +14588,7 @@ function RemoveScrollSideCar(props) {
14446
14588
  }
14447
14589
  }
14448
14590
  }, []);
14449
- var shouldCancel = React58__namespace.useCallback(function(name, delta, target, should) {
14591
+ var shouldCancel = React59__namespace.useCallback(function(name, delta, target, should) {
14450
14592
  var event = { name, delta, target, should, shadowParent: getOutermostShadowParent(target) };
14451
14593
  shouldPreventQueue.current.push(event);
14452
14594
  setTimeout(function() {
@@ -14455,17 +14597,17 @@ function RemoveScrollSideCar(props) {
14455
14597
  });
14456
14598
  }, 1);
14457
14599
  }, []);
14458
- var scrollTouchStart = React58__namespace.useCallback(function(event) {
14600
+ var scrollTouchStart = React59__namespace.useCallback(function(event) {
14459
14601
  touchStartRef.current = getTouchXY(event);
14460
14602
  activeAxis.current = void 0;
14461
14603
  }, []);
14462
- var scrollWheel = React58__namespace.useCallback(function(event) {
14604
+ var scrollWheel = React59__namespace.useCallback(function(event) {
14463
14605
  shouldCancel(event.type, getDeltaXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
14464
14606
  }, []);
14465
- var scrollTouchMove = React58__namespace.useCallback(function(event) {
14607
+ var scrollTouchMove = React59__namespace.useCallback(function(event) {
14466
14608
  shouldCancel(event.type, getTouchXY(event), event.target, shouldCancelEvent(event, props.lockRef.current));
14467
14609
  }, []);
14468
- React58__namespace.useEffect(function() {
14610
+ React59__namespace.useEffect(function() {
14469
14611
  lockStack.push(Style2);
14470
14612
  props.setCallbacks({
14471
14613
  onScrollCapture: scrollWheel,
@@ -14485,11 +14627,11 @@ function RemoveScrollSideCar(props) {
14485
14627
  };
14486
14628
  }, []);
14487
14629
  var removeScrollBar = props.removeScrollBar, inert = props.inert;
14488
- return React58__namespace.createElement(
14489
- React58__namespace.Fragment,
14630
+ return React59__namespace.createElement(
14631
+ React59__namespace.Fragment,
14490
14632
  null,
14491
- inert ? React58__namespace.createElement(Style2, { styles: generateStyle(id) }) : null,
14492
- removeScrollBar ? React58__namespace.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
14633
+ inert ? React59__namespace.createElement(Style2, { styles: generateStyle(id) }) : null,
14634
+ removeScrollBar ? React59__namespace.createElement(RemoveScrollBar, { noRelative: props.noRelative, gapMode: props.gapMode }) : null
14493
14635
  );
14494
14636
  }
14495
14637
  function getOutermostShadowParent(node) {
@@ -14508,8 +14650,8 @@ function getOutermostShadowParent(node) {
14508
14650
  var sidecar_default = exportSidecar(effectCar, RemoveScrollSideCar);
14509
14651
 
14510
14652
  // node_modules/react-remove-scroll/dist/es2015/Combination.js
14511
- var ReactRemoveScroll = React58__namespace.forwardRef(function(props, ref) {
14512
- return React58__namespace.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
14653
+ var ReactRemoveScroll = React59__namespace.forwardRef(function(props, ref) {
14654
+ return React59__namespace.createElement(RemoveScroll, __assign({}, props, { ref, sideCar: sidecar_default }));
14513
14655
  });
14514
14656
  ReactRemoveScroll.classNames = RemoveScroll.classNames;
14515
14657
  var Combination_default = ReactRemoveScroll;
@@ -14537,7 +14679,7 @@ var useRovingFocusGroupScope = createRovingFocusGroupScope();
14537
14679
  var [MenuProvider, useMenuContext] = createMenuContext(MENU_NAME);
14538
14680
  var [MenuRootProvider, useMenuRootContext] = createMenuContext(MENU_NAME);
14539
14681
  var ANCHOR_NAME2 = "MenuAnchor";
14540
- var MenuAnchor = React58__namespace.forwardRef(
14682
+ var MenuAnchor = React59__namespace.forwardRef(
14541
14683
  (props, forwardedRef) => {
14542
14684
  const { __scopeMenu, ...anchorProps } = props;
14543
14685
  const popperScope = usePopperScope(__scopeMenu);
@@ -14551,7 +14693,7 @@ var [PortalProvider, usePortalContext] = createMenuContext(PORTAL_NAME2, {
14551
14693
  });
14552
14694
  var CONTENT_NAME2 = "MenuContent";
14553
14695
  var [MenuContentProvider, useMenuContentContext] = createMenuContext(CONTENT_NAME2);
14554
- var MenuContent = React58__namespace.forwardRef(
14696
+ var MenuContent = React59__namespace.forwardRef(
14555
14697
  (props, forwardedRef) => {
14556
14698
  const portalContext = usePortalContext(CONTENT_NAME2, props.__scopeMenu);
14557
14699
  const { forceMount = portalContext.forceMount, ...contentProps } = props;
@@ -14560,12 +14702,12 @@ var MenuContent = React58__namespace.forwardRef(
14560
14702
  return /* @__PURE__ */ jsxRuntime.jsx(Collection2.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsxRuntime.jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Collection2.Slot, { scope: props.__scopeMenu, children: rootContext.modal ? /* @__PURE__ */ jsxRuntime.jsx(MenuRootContentModal, { ...contentProps, ref: forwardedRef }) : /* @__PURE__ */ jsxRuntime.jsx(MenuRootContentNonModal, { ...contentProps, ref: forwardedRef }) }) }) });
14561
14703
  }
14562
14704
  );
14563
- var MenuRootContentModal = React58__namespace.forwardRef(
14705
+ var MenuRootContentModal = React59__namespace.forwardRef(
14564
14706
  (props, forwardedRef) => {
14565
14707
  const context = useMenuContext(CONTENT_NAME2, props.__scopeMenu);
14566
- const ref = React58__namespace.useRef(null);
14708
+ const ref = React59__namespace.useRef(null);
14567
14709
  const composedRefs = useComposedRefs(forwardedRef, ref);
14568
- React58__namespace.useEffect(() => {
14710
+ React59__namespace.useEffect(() => {
14569
14711
  const content = ref.current;
14570
14712
  if (content) return hideOthers(content);
14571
14713
  }, []);
@@ -14587,7 +14729,7 @@ var MenuRootContentModal = React58__namespace.forwardRef(
14587
14729
  );
14588
14730
  }
14589
14731
  );
14590
- var MenuRootContentNonModal = React58__namespace.forwardRef((props, forwardedRef) => {
14732
+ var MenuRootContentNonModal = React59__namespace.forwardRef((props, forwardedRef) => {
14591
14733
  const context = useMenuContext(CONTENT_NAME2, props.__scopeMenu);
14592
14734
  return /* @__PURE__ */ jsxRuntime.jsx(
14593
14735
  MenuContentImpl,
@@ -14602,7 +14744,7 @@ var MenuRootContentNonModal = React58__namespace.forwardRef((props, forwardedRef
14602
14744
  );
14603
14745
  });
14604
14746
  var Slot2 = createSlot("MenuContent.ScrollLock");
14605
- var MenuContentImpl = React58__namespace.forwardRef(
14747
+ var MenuContentImpl = React59__namespace.forwardRef(
14606
14748
  (props, forwardedRef) => {
14607
14749
  const {
14608
14750
  __scopeMenu,
@@ -14625,16 +14767,16 @@ var MenuContentImpl = React58__namespace.forwardRef(
14625
14767
  const popperScope = usePopperScope(__scopeMenu);
14626
14768
  const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);
14627
14769
  const getItems = useCollection2(__scopeMenu);
14628
- const [currentItemId, setCurrentItemId] = React58__namespace.useState(null);
14629
- const contentRef = React58__namespace.useRef(null);
14770
+ const [currentItemId, setCurrentItemId] = React59__namespace.useState(null);
14771
+ const contentRef = React59__namespace.useRef(null);
14630
14772
  const composedRefs = useComposedRefs(forwardedRef, contentRef, context.onContentChange);
14631
- const timerRef = React58__namespace.useRef(0);
14632
- const searchRef = React58__namespace.useRef("");
14633
- const pointerGraceTimerRef = React58__namespace.useRef(0);
14634
- const pointerGraceIntentRef = React58__namespace.useRef(null);
14635
- const pointerDirRef = React58__namespace.useRef("right");
14636
- const lastPointerXRef = React58__namespace.useRef(0);
14637
- const ScrollLockWrapper = disableOutsideScroll ? Combination_default : React58__namespace.Fragment;
14773
+ const timerRef = React59__namespace.useRef(0);
14774
+ const searchRef = React59__namespace.useRef("");
14775
+ const pointerGraceTimerRef = React59__namespace.useRef(0);
14776
+ const pointerGraceIntentRef = React59__namespace.useRef(null);
14777
+ const pointerDirRef = React59__namespace.useRef("right");
14778
+ const lastPointerXRef = React59__namespace.useRef(0);
14779
+ const ScrollLockWrapper = disableOutsideScroll ? Combination_default : React59__namespace.Fragment;
14638
14780
  const scrollLockWrapperProps = disableOutsideScroll ? { as: Slot2, allowPinchZoom: true } : void 0;
14639
14781
  const handleTypeaheadSearch = (key) => {
14640
14782
  var _a2, _b;
@@ -14654,11 +14796,11 @@ var MenuContentImpl = React58__namespace.forwardRef(
14654
14796
  setTimeout(() => newItem.focus());
14655
14797
  }
14656
14798
  };
14657
- React58__namespace.useEffect(() => {
14799
+ React59__namespace.useEffect(() => {
14658
14800
  return () => window.clearTimeout(timerRef.current);
14659
14801
  }, []);
14660
14802
  useFocusGuards();
14661
- const isPointerMovingToSubmenu = React58__namespace.useCallback((event) => {
14803
+ const isPointerMovingToSubmenu = React59__namespace.useCallback((event) => {
14662
14804
  var _a2, _b;
14663
14805
  const isMovingTowards = pointerDirRef.current === ((_a2 = pointerGraceIntentRef.current) == null ? void 0 : _a2.side);
14664
14806
  return isMovingTowards && isPointerInGraceArea(event, (_b = pointerGraceIntentRef.current) == null ? void 0 : _b.area);
@@ -14668,13 +14810,13 @@ var MenuContentImpl = React58__namespace.forwardRef(
14668
14810
  {
14669
14811
  scope: __scopeMenu,
14670
14812
  searchRef,
14671
- onItemEnter: React58__namespace.useCallback(
14813
+ onItemEnter: React59__namespace.useCallback(
14672
14814
  (event) => {
14673
14815
  if (isPointerMovingToSubmenu(event)) event.preventDefault();
14674
14816
  },
14675
14817
  [isPointerMovingToSubmenu]
14676
14818
  ),
14677
- onItemLeave: React58__namespace.useCallback(
14819
+ onItemLeave: React59__namespace.useCallback(
14678
14820
  (event) => {
14679
14821
  var _a2;
14680
14822
  if (isPointerMovingToSubmenu(event)) return;
@@ -14683,14 +14825,14 @@ var MenuContentImpl = React58__namespace.forwardRef(
14683
14825
  },
14684
14826
  [isPointerMovingToSubmenu]
14685
14827
  ),
14686
- onTriggerLeave: React58__namespace.useCallback(
14828
+ onTriggerLeave: React59__namespace.useCallback(
14687
14829
  (event) => {
14688
14830
  if (isPointerMovingToSubmenu(event)) event.preventDefault();
14689
14831
  },
14690
14832
  [isPointerMovingToSubmenu]
14691
14833
  ),
14692
14834
  pointerGraceTimerRef,
14693
- onPointerGraceIntentChange: React58__namespace.useCallback((intent) => {
14835
+ onPointerGraceIntentChange: React59__namespace.useCallback((intent) => {
14694
14836
  pointerGraceIntentRef.current = intent;
14695
14837
  }, []),
14696
14838
  children: /* @__PURE__ */ jsxRuntime.jsx(ScrollLockWrapper, { ...scrollLockWrapperProps, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -14790,7 +14932,7 @@ var MenuContentImpl = React58__namespace.forwardRef(
14790
14932
  );
14791
14933
  MenuContent.displayName = CONTENT_NAME2;
14792
14934
  var GROUP_NAME2 = "MenuGroup";
14793
- var MenuGroup = React58__namespace.forwardRef(
14935
+ var MenuGroup = React59__namespace.forwardRef(
14794
14936
  (props, forwardedRef) => {
14795
14937
  const { __scopeMenu, ...groupProps } = props;
14796
14938
  return /* @__PURE__ */ jsxRuntime.jsx(Primitive.div, { role: "group", ...groupProps, ref: forwardedRef });
@@ -14798,7 +14940,7 @@ var MenuGroup = React58__namespace.forwardRef(
14798
14940
  );
14799
14941
  MenuGroup.displayName = GROUP_NAME2;
14800
14942
  var LABEL_NAME = "MenuLabel";
14801
- var MenuLabel = React58__namespace.forwardRef(
14943
+ var MenuLabel = React59__namespace.forwardRef(
14802
14944
  (props, forwardedRef) => {
14803
14945
  const { __scopeMenu, ...labelProps } = props;
14804
14946
  return /* @__PURE__ */ jsxRuntime.jsx(Primitive.div, { ...labelProps, ref: forwardedRef });
@@ -14807,14 +14949,14 @@ var MenuLabel = React58__namespace.forwardRef(
14807
14949
  MenuLabel.displayName = LABEL_NAME;
14808
14950
  var ITEM_NAME2 = "MenuItem";
14809
14951
  var ITEM_SELECT = "menu.itemSelect";
14810
- var MenuItem = React58__namespace.forwardRef(
14952
+ var MenuItem = React59__namespace.forwardRef(
14811
14953
  (props, forwardedRef) => {
14812
14954
  const { disabled = false, onSelect, ...itemProps } = props;
14813
- const ref = React58__namespace.useRef(null);
14955
+ const ref = React59__namespace.useRef(null);
14814
14956
  const rootContext = useMenuRootContext(ITEM_NAME2, props.__scopeMenu);
14815
14957
  const contentContext = useMenuContentContext(ITEM_NAME2, props.__scopeMenu);
14816
14958
  const composedRefs = useComposedRefs(forwardedRef, ref);
14817
- const isPointerDownRef = React58__namespace.useRef(false);
14959
+ const isPointerDownRef = React59__namespace.useRef(false);
14818
14960
  const handleSelect = () => {
14819
14961
  const menuItem = ref.current;
14820
14962
  if (!disabled && menuItem) {
@@ -14857,16 +14999,16 @@ var MenuItem = React58__namespace.forwardRef(
14857
14999
  }
14858
15000
  );
14859
15001
  MenuItem.displayName = ITEM_NAME2;
14860
- var MenuItemImpl = React58__namespace.forwardRef(
15002
+ var MenuItemImpl = React59__namespace.forwardRef(
14861
15003
  (props, forwardedRef) => {
14862
15004
  const { __scopeMenu, disabled = false, textValue, ...itemProps } = props;
14863
15005
  const contentContext = useMenuContentContext(ITEM_NAME2, __scopeMenu);
14864
15006
  const rovingFocusGroupScope = useRovingFocusGroupScope(__scopeMenu);
14865
- const ref = React58__namespace.useRef(null);
15007
+ const ref = React59__namespace.useRef(null);
14866
15008
  const composedRefs = useComposedRefs(forwardedRef, ref);
14867
- const [isFocused, setIsFocused] = React58__namespace.useState(false);
14868
- const [textContent, setTextContent] = React58__namespace.useState("");
14869
- React58__namespace.useEffect(() => {
15009
+ const [isFocused, setIsFocused] = React59__namespace.useState(false);
15010
+ const [textContent, setTextContent] = React59__namespace.useState("");
15011
+ React59__namespace.useEffect(() => {
14870
15012
  var _a2;
14871
15013
  const menuItem = ref.current;
14872
15014
  if (menuItem) {
@@ -14915,7 +15057,7 @@ var MenuItemImpl = React58__namespace.forwardRef(
14915
15057
  }
14916
15058
  );
14917
15059
  var CHECKBOX_ITEM_NAME = "MenuCheckboxItem";
14918
- var MenuCheckboxItem = React58__namespace.forwardRef(
15060
+ var MenuCheckboxItem = React59__namespace.forwardRef(
14919
15061
  (props, forwardedRef) => {
14920
15062
  const { checked = false, onCheckedChange, ...checkboxItemProps } = props;
14921
15063
  return /* @__PURE__ */ jsxRuntime.jsx(ItemIndicatorProvider, { scope: props.__scopeMenu, checked, children: /* @__PURE__ */ jsxRuntime.jsx(
@@ -14942,7 +15084,7 @@ var [RadioGroupProvider, useRadioGroupContext] = createMenuContext(
14942
15084
  { value: void 0, onValueChange: () => {
14943
15085
  } }
14944
15086
  );
14945
- var MenuRadioGroup = React58__namespace.forwardRef(
15087
+ var MenuRadioGroup = React59__namespace.forwardRef(
14946
15088
  (props, forwardedRef) => {
14947
15089
  const { value, onValueChange, ...groupProps } = props;
14948
15090
  const handleValueChange = useCallbackRef(onValueChange);
@@ -14951,7 +15093,7 @@ var MenuRadioGroup = React58__namespace.forwardRef(
14951
15093
  );
14952
15094
  MenuRadioGroup.displayName = RADIO_GROUP_NAME;
14953
15095
  var RADIO_ITEM_NAME = "MenuRadioItem";
14954
- var MenuRadioItem = React58__namespace.forwardRef(
15096
+ var MenuRadioItem = React59__namespace.forwardRef(
14955
15097
  (props, forwardedRef) => {
14956
15098
  const { value, ...radioItemProps } = props;
14957
15099
  const context = useRadioGroupContext(RADIO_ITEM_NAME, props.__scopeMenu);
@@ -14982,7 +15124,7 @@ var [ItemIndicatorProvider, useItemIndicatorContext] = createMenuContext(
14982
15124
  ITEM_INDICATOR_NAME,
14983
15125
  { checked: false }
14984
15126
  );
14985
- var MenuItemIndicator = React58__namespace.forwardRef(
15127
+ var MenuItemIndicator = React59__namespace.forwardRef(
14986
15128
  (props, forwardedRef) => {
14987
15129
  const { __scopeMenu, forceMount, ...itemIndicatorProps } = props;
14988
15130
  const indicatorContext = useItemIndicatorContext(ITEM_INDICATOR_NAME, __scopeMenu);
@@ -15004,7 +15146,7 @@ var MenuItemIndicator = React58__namespace.forwardRef(
15004
15146
  );
15005
15147
  MenuItemIndicator.displayName = ITEM_INDICATOR_NAME;
15006
15148
  var SEPARATOR_NAME = "MenuSeparator";
15007
- var MenuSeparator = React58__namespace.forwardRef(
15149
+ var MenuSeparator = React59__namespace.forwardRef(
15008
15150
  (props, forwardedRef) => {
15009
15151
  const { __scopeMenu, ...separatorProps } = props;
15010
15152
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -15020,7 +15162,7 @@ var MenuSeparator = React58__namespace.forwardRef(
15020
15162
  );
15021
15163
  MenuSeparator.displayName = SEPARATOR_NAME;
15022
15164
  var ARROW_NAME2 = "MenuArrow";
15023
- var MenuArrow = React58__namespace.forwardRef(
15165
+ var MenuArrow = React59__namespace.forwardRef(
15024
15166
  (props, forwardedRef) => {
15025
15167
  const { __scopeMenu, ...arrowProps } = props;
15026
15168
  const popperScope = usePopperScope(__scopeMenu);
@@ -15031,21 +15173,21 @@ MenuArrow.displayName = ARROW_NAME2;
15031
15173
  var SUB_NAME = "MenuSub";
15032
15174
  var [MenuSubProvider, useMenuSubContext] = createMenuContext(SUB_NAME);
15033
15175
  var SUB_TRIGGER_NAME = "MenuSubTrigger";
15034
- var MenuSubTrigger = React58__namespace.forwardRef(
15176
+ var MenuSubTrigger = React59__namespace.forwardRef(
15035
15177
  (props, forwardedRef) => {
15036
15178
  const context = useMenuContext(SUB_TRIGGER_NAME, props.__scopeMenu);
15037
15179
  const rootContext = useMenuRootContext(SUB_TRIGGER_NAME, props.__scopeMenu);
15038
15180
  const subContext = useMenuSubContext(SUB_TRIGGER_NAME, props.__scopeMenu);
15039
15181
  const contentContext = useMenuContentContext(SUB_TRIGGER_NAME, props.__scopeMenu);
15040
- const openTimerRef = React58__namespace.useRef(null);
15182
+ const openTimerRef = React59__namespace.useRef(null);
15041
15183
  const { pointerGraceTimerRef, onPointerGraceIntentChange } = contentContext;
15042
15184
  const scope = { __scopeMenu: props.__scopeMenu };
15043
- const clearOpenTimer = React58__namespace.useCallback(() => {
15185
+ const clearOpenTimer = React59__namespace.useCallback(() => {
15044
15186
  if (openTimerRef.current) window.clearTimeout(openTimerRef.current);
15045
15187
  openTimerRef.current = null;
15046
15188
  }, []);
15047
- React58__namespace.useEffect(() => clearOpenTimer, [clearOpenTimer]);
15048
- React58__namespace.useEffect(() => {
15189
+ React59__namespace.useEffect(() => clearOpenTimer, [clearOpenTimer]);
15190
+ React59__namespace.useEffect(() => {
15049
15191
  const pointerGraceTimer = pointerGraceTimerRef.current;
15050
15192
  return () => {
15051
15193
  window.clearTimeout(pointerGraceTimer);
@@ -15135,14 +15277,14 @@ var MenuSubTrigger = React58__namespace.forwardRef(
15135
15277
  );
15136
15278
  MenuSubTrigger.displayName = SUB_TRIGGER_NAME;
15137
15279
  var SUB_CONTENT_NAME = "MenuSubContent";
15138
- var MenuSubContent = React58__namespace.forwardRef(
15280
+ var MenuSubContent = React59__namespace.forwardRef(
15139
15281
  (props, forwardedRef) => {
15140
15282
  const portalContext = usePortalContext(CONTENT_NAME2, props.__scopeMenu);
15141
15283
  const { forceMount = portalContext.forceMount, ...subContentProps } = props;
15142
15284
  const context = useMenuContext(CONTENT_NAME2, props.__scopeMenu);
15143
15285
  const rootContext = useMenuRootContext(CONTENT_NAME2, props.__scopeMenu);
15144
15286
  const subContext = useMenuSubContext(SUB_CONTENT_NAME, props.__scopeMenu);
15145
- const ref = React58__namespace.useRef(null);
15287
+ const ref = React59__namespace.useRef(null);
15146
15288
  const composedRefs = useComposedRefs(forwardedRef, ref);
15147
15289
  return /* @__PURE__ */ jsxRuntime.jsx(Collection2.Provider, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsxRuntime.jsx(Presence, { present: forceMount || context.open, children: /* @__PURE__ */ jsxRuntime.jsx(Collection2.Slot, { scope: props.__scopeMenu, children: /* @__PURE__ */ jsxRuntime.jsx(
15148
15290
  MenuContentImpl,
@@ -15260,7 +15402,7 @@ var [createDropdownMenuContext] = createContextScope(
15260
15402
  var useMenuScope = createMenuScope();
15261
15403
  var [DropdownMenuProvider, useDropdownMenuContext] = createDropdownMenuContext(DROPDOWN_MENU_NAME);
15262
15404
  var TRIGGER_NAME = "DropdownMenuTrigger";
15263
- var DropdownMenuTrigger2 = React58__namespace.forwardRef(
15405
+ var DropdownMenuTrigger2 = React59__namespace.forwardRef(
15264
15406
  (props, forwardedRef) => {
15265
15407
  const { __scopeDropdownMenu, disabled = false, ...triggerProps } = props;
15266
15408
  const context = useDropdownMenuContext(TRIGGER_NAME, __scopeDropdownMenu);
@@ -15296,12 +15438,12 @@ var DropdownMenuTrigger2 = React58__namespace.forwardRef(
15296
15438
  );
15297
15439
  DropdownMenuTrigger2.displayName = TRIGGER_NAME;
15298
15440
  var CONTENT_NAME3 = "DropdownMenuContent";
15299
- var DropdownMenuContent2 = React58__namespace.forwardRef(
15441
+ var DropdownMenuContent2 = React59__namespace.forwardRef(
15300
15442
  (props, forwardedRef) => {
15301
15443
  const { __scopeDropdownMenu, ...contentProps } = props;
15302
15444
  const context = useDropdownMenuContext(CONTENT_NAME3, __scopeDropdownMenu);
15303
15445
  const menuScope = useMenuScope(__scopeDropdownMenu);
15304
- const hasInteractedOutsideRef = React58__namespace.useRef(false);
15446
+ const hasInteractedOutsideRef = React59__namespace.useRef(false);
15305
15447
  return /* @__PURE__ */ jsxRuntime.jsx(
15306
15448
  Content2,
15307
15449
  {
@@ -15339,7 +15481,7 @@ var DropdownMenuContent2 = React58__namespace.forwardRef(
15339
15481
  );
15340
15482
  DropdownMenuContent2.displayName = CONTENT_NAME3;
15341
15483
  var GROUP_NAME3 = "DropdownMenuGroup";
15342
- var DropdownMenuGroup2 = React58__namespace.forwardRef(
15484
+ var DropdownMenuGroup2 = React59__namespace.forwardRef(
15343
15485
  (props, forwardedRef) => {
15344
15486
  const { __scopeDropdownMenu, ...groupProps } = props;
15345
15487
  const menuScope = useMenuScope(__scopeDropdownMenu);
@@ -15348,7 +15490,7 @@ var DropdownMenuGroup2 = React58__namespace.forwardRef(
15348
15490
  );
15349
15491
  DropdownMenuGroup2.displayName = GROUP_NAME3;
15350
15492
  var LABEL_NAME2 = "DropdownMenuLabel";
15351
- var DropdownMenuLabel2 = React58__namespace.forwardRef(
15493
+ var DropdownMenuLabel2 = React59__namespace.forwardRef(
15352
15494
  (props, forwardedRef) => {
15353
15495
  const { __scopeDropdownMenu, ...labelProps } = props;
15354
15496
  const menuScope = useMenuScope(__scopeDropdownMenu);
@@ -15357,7 +15499,7 @@ var DropdownMenuLabel2 = React58__namespace.forwardRef(
15357
15499
  );
15358
15500
  DropdownMenuLabel2.displayName = LABEL_NAME2;
15359
15501
  var ITEM_NAME3 = "DropdownMenuItem";
15360
- var DropdownMenuItem2 = React58__namespace.forwardRef(
15502
+ var DropdownMenuItem2 = React59__namespace.forwardRef(
15361
15503
  (props, forwardedRef) => {
15362
15504
  const { __scopeDropdownMenu, ...itemProps } = props;
15363
15505
  const menuScope = useMenuScope(__scopeDropdownMenu);
@@ -15366,42 +15508,42 @@ var DropdownMenuItem2 = React58__namespace.forwardRef(
15366
15508
  );
15367
15509
  DropdownMenuItem2.displayName = ITEM_NAME3;
15368
15510
  var CHECKBOX_ITEM_NAME2 = "DropdownMenuCheckboxItem";
15369
- var DropdownMenuCheckboxItem2 = React58__namespace.forwardRef((props, forwardedRef) => {
15511
+ var DropdownMenuCheckboxItem2 = React59__namespace.forwardRef((props, forwardedRef) => {
15370
15512
  const { __scopeDropdownMenu, ...checkboxItemProps } = props;
15371
15513
  const menuScope = useMenuScope(__scopeDropdownMenu);
15372
15514
  return /* @__PURE__ */ jsxRuntime.jsx(CheckboxItem, { ...menuScope, ...checkboxItemProps, ref: forwardedRef });
15373
15515
  });
15374
15516
  DropdownMenuCheckboxItem2.displayName = CHECKBOX_ITEM_NAME2;
15375
15517
  var RADIO_GROUP_NAME2 = "DropdownMenuRadioGroup";
15376
- var DropdownMenuRadioGroup2 = React58__namespace.forwardRef((props, forwardedRef) => {
15518
+ var DropdownMenuRadioGroup2 = React59__namespace.forwardRef((props, forwardedRef) => {
15377
15519
  const { __scopeDropdownMenu, ...radioGroupProps } = props;
15378
15520
  const menuScope = useMenuScope(__scopeDropdownMenu);
15379
15521
  return /* @__PURE__ */ jsxRuntime.jsx(RadioGroup2, { ...menuScope, ...radioGroupProps, ref: forwardedRef });
15380
15522
  });
15381
15523
  DropdownMenuRadioGroup2.displayName = RADIO_GROUP_NAME2;
15382
15524
  var RADIO_ITEM_NAME2 = "DropdownMenuRadioItem";
15383
- var DropdownMenuRadioItem2 = React58__namespace.forwardRef((props, forwardedRef) => {
15525
+ var DropdownMenuRadioItem2 = React59__namespace.forwardRef((props, forwardedRef) => {
15384
15526
  const { __scopeDropdownMenu, ...radioItemProps } = props;
15385
15527
  const menuScope = useMenuScope(__scopeDropdownMenu);
15386
15528
  return /* @__PURE__ */ jsxRuntime.jsx(RadioItem, { ...menuScope, ...radioItemProps, ref: forwardedRef });
15387
15529
  });
15388
15530
  DropdownMenuRadioItem2.displayName = RADIO_ITEM_NAME2;
15389
15531
  var INDICATOR_NAME = "DropdownMenuItemIndicator";
15390
- var DropdownMenuItemIndicator = React58__namespace.forwardRef((props, forwardedRef) => {
15532
+ var DropdownMenuItemIndicator = React59__namespace.forwardRef((props, forwardedRef) => {
15391
15533
  const { __scopeDropdownMenu, ...itemIndicatorProps } = props;
15392
15534
  const menuScope = useMenuScope(__scopeDropdownMenu);
15393
15535
  return /* @__PURE__ */ jsxRuntime.jsx(ItemIndicator, { ...menuScope, ...itemIndicatorProps, ref: forwardedRef });
15394
15536
  });
15395
15537
  DropdownMenuItemIndicator.displayName = INDICATOR_NAME;
15396
15538
  var SEPARATOR_NAME2 = "DropdownMenuSeparator";
15397
- var DropdownMenuSeparator2 = React58__namespace.forwardRef((props, forwardedRef) => {
15539
+ var DropdownMenuSeparator2 = React59__namespace.forwardRef((props, forwardedRef) => {
15398
15540
  const { __scopeDropdownMenu, ...separatorProps } = props;
15399
15541
  const menuScope = useMenuScope(__scopeDropdownMenu);
15400
15542
  return /* @__PURE__ */ jsxRuntime.jsx(Separator2, { ...menuScope, ...separatorProps, ref: forwardedRef });
15401
15543
  });
15402
15544
  DropdownMenuSeparator2.displayName = SEPARATOR_NAME2;
15403
15545
  var ARROW_NAME3 = "DropdownMenuArrow";
15404
- var DropdownMenuArrow = React58__namespace.forwardRef(
15546
+ var DropdownMenuArrow = React59__namespace.forwardRef(
15405
15547
  (props, forwardedRef) => {
15406
15548
  const { __scopeDropdownMenu, ...arrowProps } = props;
15407
15549
  const menuScope = useMenuScope(__scopeDropdownMenu);
@@ -15410,14 +15552,14 @@ var DropdownMenuArrow = React58__namespace.forwardRef(
15410
15552
  );
15411
15553
  DropdownMenuArrow.displayName = ARROW_NAME3;
15412
15554
  var SUB_TRIGGER_NAME2 = "DropdownMenuSubTrigger";
15413
- var DropdownMenuSubTrigger2 = React58__namespace.forwardRef((props, forwardedRef) => {
15555
+ var DropdownMenuSubTrigger2 = React59__namespace.forwardRef((props, forwardedRef) => {
15414
15556
  const { __scopeDropdownMenu, ...subTriggerProps } = props;
15415
15557
  const menuScope = useMenuScope(__scopeDropdownMenu);
15416
15558
  return /* @__PURE__ */ jsxRuntime.jsx(SubTrigger, { ...menuScope, ...subTriggerProps, ref: forwardedRef });
15417
15559
  });
15418
15560
  DropdownMenuSubTrigger2.displayName = SUB_TRIGGER_NAME2;
15419
15561
  var SUB_CONTENT_NAME2 = "DropdownMenuSubContent";
15420
- var DropdownMenuSubContent2 = React58__namespace.forwardRef((props, forwardedRef) => {
15562
+ var DropdownMenuSubContent2 = React59__namespace.forwardRef((props, forwardedRef) => {
15421
15563
  const { __scopeDropdownMenu, ...subContentProps } = props;
15422
15564
  const menuScope = useMenuScope(__scopeDropdownMenu);
15423
15565
  return /* @__PURE__ */ jsxRuntime.jsx(
@@ -15643,27 +15785,27 @@ function DataGrid({
15643
15785
  loading: loadingProp
15644
15786
  }) {
15645
15787
  var _a2, _b, _c;
15646
- const normalizedRead = React58__namespace.useMemo(() => normalizeReadConfig(data.read), [data.read]);
15647
- const initialBind = React58__namespace.useMemo(() => {
15788
+ const normalizedRead = React59__namespace.useMemo(() => normalizeReadConfig(data.read), [data.read]);
15789
+ const initialBind = React59__namespace.useMemo(() => {
15648
15790
  var _a3;
15649
15791
  return (_a3 = data.bind) != null ? _a3 : [];
15650
15792
  }, [data.bind]);
15651
15793
  const resolvedPageSize = (_a2 = pageSize == null ? void 0 : pageSize.count) != null ? _a2 : defaultPageSize;
15652
15794
  const pageSizeOptions = (_b = pageSize == null ? void 0 : pageSize.options) != null ? _b : [10, 20, 30, 40, 50];
15653
15795
  const showPageSizeControl = (_c = pageSize == null ? void 0 : pageSize.visible) != null ? _c : true;
15654
- const [rows, setRows] = React58__namespace.useState(() => initialBind);
15655
- const [isFetching, setIsFetching] = React58__namespace.useState(false);
15656
- const [error, setError] = React58__namespace.useState(null);
15657
- const scrollRef = React58__namespace.useRef(null);
15658
- const [scrollOffset, setScrollOffset] = React58__namespace.useState(0);
15659
- const [viewportHeight, setViewportHeight] = React58__namespace.useState(height);
15660
- const abortControllerRef = React58__namespace.useRef(null);
15661
- const [filterValue, setFilterValue] = React58__namespace.useState("");
15662
- const baseColumnDefs = React58__namespace.useMemo(
15796
+ const [rows, setRows] = React59__namespace.useState(() => initialBind);
15797
+ const [isFetching, setIsFetching] = React59__namespace.useState(false);
15798
+ const [error, setError] = React59__namespace.useState(null);
15799
+ const scrollRef = React59__namespace.useRef(null);
15800
+ const [scrollOffset, setScrollOffset] = React59__namespace.useState(0);
15801
+ const [viewportHeight, setViewportHeight] = React59__namespace.useState(height);
15802
+ const abortControllerRef = React59__namespace.useRef(null);
15803
+ const [filterValue, setFilterValue] = React59__namespace.useState("");
15804
+ const baseColumnDefs = React59__namespace.useMemo(
15663
15805
  () => createColumnDefs(columns, sortable),
15664
15806
  [columns, sortable]
15665
15807
  );
15666
- const columnDefs = React58__namespace.useMemo(() => {
15808
+ const columnDefs = React59__namespace.useMemo(() => {
15667
15809
  if (!selectable) {
15668
15810
  return baseColumnDefs;
15669
15811
  }
@@ -15697,8 +15839,8 @@ function DataGrid({
15697
15839
  };
15698
15840
  return [selectionColumn, ...baseColumnDefs];
15699
15841
  }, [baseColumnDefs, selectable]);
15700
- const filterableColumns = React58__namespace.useMemo(() => columns.filter((column) => Boolean(column.item)), [columns]);
15701
- const filteredRows = React58__namespace.useMemo(() => {
15842
+ const filterableColumns = React59__namespace.useMemo(() => columns.filter((column) => Boolean(column.item)), [columns]);
15843
+ const filteredRows = React59__namespace.useMemo(() => {
15702
15844
  if (!filterable || !filterValue.trim()) {
15703
15845
  return rows;
15704
15846
  }
@@ -15720,26 +15862,26 @@ function DataGrid({
15720
15862
  defaultPageSize: pagination ? resolvedPageSize : filteredRows.length || 10,
15721
15863
  getRowId: (_row, index2) => index2.toString()
15722
15864
  });
15723
- React58__namespace.useEffect(() => {
15865
+ React59__namespace.useEffect(() => {
15724
15866
  if (!pagination) {
15725
15867
  table.setPageIndex(0);
15726
15868
  table.setPageSize(filteredRows.length || 1);
15727
15869
  }
15728
15870
  }, [pagination, filteredRows.length, table]);
15729
- React58__namespace.useEffect(() => {
15871
+ React59__namespace.useEffect(() => {
15730
15872
  if (pagination) {
15731
15873
  table.setPageSize(resolvedPageSize);
15732
15874
  }
15733
15875
  }, [pagination, resolvedPageSize, table]);
15734
- React58__namespace.useEffect(() => {
15876
+ React59__namespace.useEffect(() => {
15735
15877
  setRows(initialBind);
15736
15878
  }, [initialBind]);
15737
- React58__namespace.useEffect(() => {
15879
+ React59__namespace.useEffect(() => {
15738
15880
  if (!filterable) {
15739
15881
  setFilterValue("");
15740
15882
  }
15741
15883
  }, [filterable]);
15742
- const fetchData = React58__namespace.useCallback(async () => {
15884
+ const fetchData = React59__namespace.useCallback(async () => {
15743
15885
  var _a3, _b2;
15744
15886
  if (!normalizedRead) {
15745
15887
  return;
@@ -15785,7 +15927,7 @@ function DataGrid({
15785
15927
  setIsFetching(false);
15786
15928
  }
15787
15929
  }, [normalizedRead, onDataChange]);
15788
- React58__namespace.useEffect(() => {
15930
+ React59__namespace.useEffect(() => {
15789
15931
  if (normalizedRead) {
15790
15932
  fetchData().catch(() => {
15791
15933
  });
@@ -15795,7 +15937,7 @@ function DataGrid({
15795
15937
  (_a3 = abortControllerRef.current) == null ? void 0 : _a3.abort();
15796
15938
  };
15797
15939
  }, [normalizedRead, fetchData]);
15798
- React58__namespace.useEffect(() => {
15940
+ React59__namespace.useEffect(() => {
15799
15941
  if (!scrollRef.current) {
15800
15942
  return;
15801
15943
  }
@@ -15817,7 +15959,7 @@ function DataGrid({
15817
15959
  const rowCount = tableRows.length;
15818
15960
  const selectedCount = table.getFilteredSelectedRowModel().rows.length;
15819
15961
  const totalFilteredCount = table.getFilteredRowModel().rows.length;
15820
- React58__namespace.useEffect(() => {
15962
+ React59__namespace.useEffect(() => {
15821
15963
  if (scrollRef.current) {
15822
15964
  scrollRef.current.scrollTop = 0;
15823
15965
  }
@@ -15829,7 +15971,7 @@ function DataGrid({
15829
15971
  tableRows.length,
15830
15972
  Math.ceil((scrollOffset + viewportHeight) / rowHeight) + overscan
15831
15973
  );
15832
- const virtualRows = React58__namespace.useMemo(() => {
15974
+ const virtualRows = React59__namespace.useMemo(() => {
15833
15975
  if (!tableRows.length) {
15834
15976
  return null;
15835
15977
  }
@@ -15912,7 +16054,7 @@ function DataGrid({
15912
16054
  ] });
15913
16055
  }
15914
16056
  DataGrid.displayName = "DataGrid";
15915
- var FormBlock = React58__namespace.forwardRef(
16057
+ var FormBlock = React59__namespace.forwardRef(
15916
16058
  ({ className, ...props }, ref) => {
15917
16059
  return /* @__PURE__ */ jsx(
15918
16060
  "div",
@@ -15925,7 +16067,7 @@ var FormBlock = React58__namespace.forwardRef(
15925
16067
  }
15926
16068
  );
15927
16069
  FormBlock.displayName = "FormBlock";
15928
- var FormError = React58__namespace.forwardRef(
16070
+ var FormError = React59__namespace.forwardRef(
15929
16071
  ({ message, children, className, ...props }, ref) => {
15930
16072
  if (!message && !children) {
15931
16073
  return null;
@@ -15953,7 +16095,7 @@ var resolveFormLike2 = (form) => {
15953
16095
  }
15954
16096
  return (_a2 = form.form) != null ? _a2 : form;
15955
16097
  };
15956
- var FormInput = React58__namespace.forwardRef(
16098
+ var FormInput = React59__namespace.forwardRef(
15957
16099
  ({
15958
16100
  label,
15959
16101
  name,
@@ -16071,7 +16213,7 @@ var resolveFormLike3 = (form) => {
16071
16213
  }
16072
16214
  return (_a2 = form.form) != null ? _a2 : form;
16073
16215
  };
16074
- var FormInputMask = React58__namespace.forwardRef(
16216
+ var FormInputMask = React59__namespace.forwardRef(
16075
16217
  ({
16076
16218
  label,
16077
16219
  name,
@@ -16186,7 +16328,7 @@ var resolveFormLike4 = (form) => {
16186
16328
  }
16187
16329
  return (_a2 = form.form) != null ? _a2 : form;
16188
16330
  };
16189
- var FormInputNumeric = React58__namespace.forwardRef(
16331
+ var FormInputNumeric = React59__namespace.forwardRef(
16190
16332
  ({
16191
16333
  label,
16192
16334
  name,
@@ -16373,18 +16515,18 @@ function FormSelect({
16373
16515
  title: multiContentPropTitle,
16374
16516
  ...restMultiContentProps
16375
16517
  } = multiSelectContentProps;
16376
- const [internalSingleValue, setInternalSingleValue] = React58__namespace.useState(
16518
+ const [internalSingleValue, setInternalSingleValue] = React59__namespace.useState(
16377
16519
  typeof defaultValue === "string" ? defaultValue : ""
16378
16520
  );
16379
- const [internalMultiValue, setInternalMultiValue] = React58__namespace.useState(
16521
+ const [internalMultiValue, setInternalMultiValue] = React59__namespace.useState(
16380
16522
  Array.isArray(defaultValue) ? defaultValue : []
16381
16523
  );
16382
- React58__namespace.useEffect(() => {
16524
+ React59__namespace.useEffect(() => {
16383
16525
  if (typeof defaultValue === "string" && selectPropValue === void 0 && formValue === void 0 && value === void 0) {
16384
16526
  setInternalSingleValue(defaultValue);
16385
16527
  }
16386
16528
  }, [defaultValue, formValue, selectPropValue, value]);
16387
- React58__namespace.useEffect(() => {
16529
+ React59__namespace.useEffect(() => {
16388
16530
  if (Array.isArray(defaultValue) && multiSelectPropValue === void 0 && !Array.isArray(formValue) && !Array.isArray(value)) {
16389
16531
  setInternalMultiValue(defaultValue);
16390
16532
  }
@@ -16392,7 +16534,7 @@ function FormSelect({
16392
16534
  const finalSingleValue = typeof selectPropValue === "string" ? selectPropValue : typeof formValue === "string" ? formValue : typeof value === "string" ? value : internalSingleValue;
16393
16535
  const finalMultiValue = Array.isArray(multiSelectPropValue) ? multiSelectPropValue : Array.isArray(formValue) ? formValue : Array.isArray(value) ? value : internalMultiValue;
16394
16536
  const resolvedError = (_a2 = formTouched ? formError : void 0) != null ? _a2 : error;
16395
- const handleFormChange = React58__namespace.useCallback(
16537
+ const handleFormChange = React59__namespace.useCallback(
16396
16538
  (nextValue) => {
16397
16539
  if (Array.isArray(nextValue)) {
16398
16540
  formSetFieldValue == null ? void 0 : formSetFieldValue(name, nextValue);
@@ -16414,7 +16556,7 @@ function FormSelect({
16414
16556
  },
16415
16557
  [formHandleChange, formSetFieldValue, name]
16416
16558
  );
16417
- const handleSingleChange = React58__namespace.useCallback(
16559
+ const handleSingleChange = React59__namespace.useCallback(
16418
16560
  (nextValue) => {
16419
16561
  if (selectPropValue === void 0 && formValue === void 0 && value === void 0) {
16420
16562
  setInternalSingleValue(nextValue);
@@ -16438,7 +16580,7 @@ function FormSelect({
16438
16580
  name
16439
16581
  ]
16440
16582
  );
16441
- const handleMultiChange = React58__namespace.useCallback(
16583
+ const handleMultiChange = React59__namespace.useCallback(
16442
16584
  (nextValue) => {
16443
16585
  if (multiSelectPropValue === void 0 && !Array.isArray(formValue) && !Array.isArray(value)) {
16444
16586
  setInternalMultiValue(nextValue);
@@ -16462,7 +16604,7 @@ function FormSelect({
16462
16604
  name
16463
16605
  ]
16464
16606
  );
16465
- const handleBlur = React58__namespace.useCallback(
16607
+ const handleBlur = React59__namespace.useCallback(
16466
16608
  (event) => {
16467
16609
  formSetFieldTouched == null ? void 0 : formSetFieldTouched(name, true);
16468
16610
  formHandleBlur == null ? void 0 : formHandleBlur({
@@ -16473,7 +16615,7 @@ function FormSelect({
16473
16615
  },
16474
16616
  [formHandleBlur, formSetFieldTouched, name, onBlur, triggerPropOnBlur]
16475
16617
  );
16476
- const handleMultiBlur = React58__namespace.useCallback(
16618
+ const handleMultiBlur = React59__namespace.useCallback(
16477
16619
  (event) => {
16478
16620
  formSetFieldTouched == null ? void 0 : formSetFieldTouched(name, true);
16479
16621
  formHandleBlur == null ? void 0 : formHandleBlur({
@@ -16486,7 +16628,7 @@ function FormSelect({
16486
16628
  );
16487
16629
  const finalSingleDefaultValue = selectPropDefaultValue != null ? selectPropDefaultValue : typeof defaultValue === "string" ? defaultValue : void 0;
16488
16630
  const finalMultiDefaultValue = multiSelectPropDefaultValue != null ? multiSelectPropDefaultValue : Array.isArray(defaultValue) ? defaultValue : void 0;
16489
- const [mobileDrawerOpen, setMobileDrawerOpen] = React58__namespace.useState(false);
16631
+ const [mobileDrawerOpen, setMobileDrawerOpen] = React59__namespace.useState(false);
16490
16632
  const MobileSelectTrigger = ({ isMulti: isMulti2 = false }) => {
16491
16633
  var _a3;
16492
16634
  const displayValue = isMulti2 ? finalMultiValue.length > 0 ? `${finalMultiValue.length} selected` : placeholder : ((_a3 = options.find((opt) => opt.value === finalSingleValue)) == null ? void 0 : _a3.label) || placeholder;
@@ -16650,7 +16792,7 @@ var resolveFormLike6 = (form) => {
16650
16792
  }
16651
16793
  return (_a2 = form.form) != null ? _a2 : form;
16652
16794
  };
16653
- var FormTextarea = React58__namespace.forwardRef(
16795
+ var FormTextarea = React59__namespace.forwardRef(
16654
16796
  ({
16655
16797
  label,
16656
16798
  name,
@@ -16764,7 +16906,7 @@ var resolveFormLike7 = (form) => {
16764
16906
  }
16765
16907
  return (_a2 = form.form) != null ? _a2 : form;
16766
16908
  };
16767
- var FormRadioGroup = React58__namespace.forwardRef(
16909
+ var FormRadioGroup = React59__namespace.forwardRef(
16768
16910
  ({
16769
16911
  label,
16770
16912
  description,
@@ -16803,7 +16945,7 @@ var FormRadioGroup = React58__namespace.forwardRef(
16803
16945
  } = radioGroupProps;
16804
16946
  const computedValue = (_b = value != null ? value : radioGroupValue !== void 0 ? radioGroupValue : void 0) != null ? _b : formValue !== void 0 && formValue !== null ? String(formValue) : void 0;
16805
16947
  const resolvedDefaultValue = computedValue === void 0 ? defaultValue != null ? defaultValue : radioGroupDefaultValue : void 0;
16806
- const handleChange = React58__namespace.useCallback(
16948
+ const handleChange = React59__namespace.useCallback(
16807
16949
  (nextValue) => {
16808
16950
  var _a3;
16809
16951
  (_a3 = resolvedForm == null ? void 0 : resolvedForm.setFieldValue) == null ? void 0 : _a3.call(resolvedForm, name, nextValue);
@@ -16812,7 +16954,7 @@ var FormRadioGroup = React58__namespace.forwardRef(
16812
16954
  },
16813
16955
  [resolvedForm, name, onChange, radioGroupOnValueChange]
16814
16956
  );
16815
- const handleBlur = React58__namespace.useCallback(
16957
+ const handleBlur = React59__namespace.useCallback(
16816
16958
  (event) => {
16817
16959
  var _a3, _b2;
16818
16960
  (_a3 = resolvedForm == null ? void 0 : resolvedForm.setFieldTouched) == null ? void 0 : _a3.call(resolvedForm, name, true);
@@ -16936,10 +17078,10 @@ function FormDatePicker({
16936
17078
  status: datePickerPropStatus,
16937
17079
  ...restDatePickerProps
16938
17080
  } = datePickerProps;
16939
- const [internalValue, setInternalValue] = React58__namespace.useState(
17081
+ const [internalValue, setInternalValue] = React59__namespace.useState(
16940
17082
  (_a2 = datePickerPropDefaultValue != null ? datePickerPropDefaultValue : defaultValue) != null ? _a2 : null
16941
17083
  );
16942
- React58__namespace.useEffect(() => {
17084
+ React59__namespace.useEffect(() => {
16943
17085
  var _a3;
16944
17086
  if (datePickerPropValue === void 0 && value === void 0 && formValue === void 0) {
16945
17087
  setInternalValue((_a3 = datePickerPropDefaultValue != null ? datePickerPropDefaultValue : defaultValue) != null ? _a3 : null);
@@ -16950,7 +17092,7 @@ function FormDatePicker({
16950
17092
  const finalStatus = datePickerPropStatus != null ? datePickerPropStatus : resolvedError ? "error" : void 0;
16951
17093
  const finalPlaceholder = datePickerPropPlaceholder != null ? datePickerPropPlaceholder : placeholder;
16952
17094
  const { children: labelChildren, ...restLabelProps } = labelProps;
16953
- const handleValueChange = React58__namespace.useCallback(
17095
+ const handleValueChange = React59__namespace.useCallback(
16954
17096
  (nextValue, dateString) => {
16955
17097
  if (datePickerPropValue === void 0 && value === void 0 && formValue === void 0) {
16956
17098
  setInternalValue(nextValue != null ? nextValue : null);
@@ -16982,7 +17124,7 @@ function FormDatePicker({
16982
17124
  value
16983
17125
  ]
16984
17126
  );
16985
- const handleBlur = React58__namespace.useCallback(
17127
+ const handleBlur = React59__namespace.useCallback(
16986
17128
  (event) => {
16987
17129
  formSetFieldTouched == null ? void 0 : formSetFieldTouched(name, true);
16988
17130
  formHandleBlur == null ? void 0 : formHandleBlur({
@@ -17091,10 +17233,10 @@ function FormTimePicker({
17091
17233
  status: timePickerPropStatus,
17092
17234
  ...restTimePickerProps
17093
17235
  } = timePickerProps;
17094
- const [internalValue, setInternalValue] = React58__namespace.useState(
17236
+ const [internalValue, setInternalValue] = React59__namespace.useState(
17095
17237
  (_a2 = timePickerPropDefaultValue != null ? timePickerPropDefaultValue : defaultValue) != null ? _a2 : null
17096
17238
  );
17097
- React58__namespace.useEffect(() => {
17239
+ React59__namespace.useEffect(() => {
17098
17240
  var _a3;
17099
17241
  if (timePickerPropValue === void 0 && value === void 0 && formValue === void 0) {
17100
17242
  setInternalValue((_a3 = timePickerPropDefaultValue != null ? timePickerPropDefaultValue : defaultValue) != null ? _a3 : null);
@@ -17105,7 +17247,7 @@ function FormTimePicker({
17105
17247
  const finalStatus = timePickerPropStatus != null ? timePickerPropStatus : resolvedError ? "error" : void 0;
17106
17248
  const finalPlaceholder = timePickerPropPlaceholder != null ? timePickerPropPlaceholder : placeholder;
17107
17249
  const { children: labelChildren, ...restLabelProps } = labelProps;
17108
- const handleValueChange = React58__namespace.useCallback(
17250
+ const handleValueChange = React59__namespace.useCallback(
17109
17251
  (nextValue, formatted) => {
17110
17252
  if (timePickerPropValue === void 0 && value === void 0 && formValue === void 0) {
17111
17253
  setInternalValue(nextValue != null ? nextValue : null);
@@ -17137,7 +17279,7 @@ function FormTimePicker({
17137
17279
  value
17138
17280
  ]
17139
17281
  );
17140
- const handleBlur = React58__namespace.useCallback(
17282
+ const handleBlur = React59__namespace.useCallback(
17141
17283
  (event) => {
17142
17284
  formSetFieldTouched == null ? void 0 : formSetFieldTouched(name, true);
17143
17285
  formHandleBlur == null ? void 0 : formHandleBlur({
@@ -17213,10 +17355,12 @@ var FormSwitch = ({
17213
17355
  rules
17214
17356
  }) => {
17215
17357
  var _a2;
17216
- const fallbackId = React58__namespace.useId();
17358
+ const fallbackId = React59__namespace.useId();
17217
17359
  const {
17218
17360
  id: providedId,
17219
17361
  onCheckedChange: switchOnCheckedChange,
17362
+ className: switchClassName,
17363
+ disabled: switchDisabled,
17220
17364
  "aria-describedby": ariaDescribedBy,
17221
17365
  "aria-labelledby": ariaLabelledBy,
17222
17366
  ...restSwitchProps
@@ -17235,6 +17379,27 @@ var FormSwitch = ({
17235
17379
  const messageId = resolvedError ? `${switchId}-error` : void 0;
17236
17380
  const combinedAriaDescribedBy = [ariaDescribedBy, descriptionId, messageId].filter(Boolean).join(" ").trim() || void 0;
17237
17381
  const computedAriaLabelledBy = label ? [ariaLabelledBy, `${switchId}-label`].filter(Boolean).join(" ").trim() || void 0 : ariaLabelledBy;
17382
+ const handleLabelClick = React59__namespace.useCallback(
17383
+ (event) => {
17384
+ if (switchDisabled) {
17385
+ return;
17386
+ }
17387
+ const switchElement = document.getElementById(switchId);
17388
+ if (!switchElement) {
17389
+ return;
17390
+ }
17391
+ event.preventDefault();
17392
+ if (typeof switchElement.focus === "function") {
17393
+ try {
17394
+ switchElement.focus({ preventScroll: true });
17395
+ } catch {
17396
+ switchElement.focus();
17397
+ }
17398
+ }
17399
+ switchElement.click();
17400
+ },
17401
+ [switchDisabled, switchId]
17402
+ );
17238
17403
  const handleCheckedChange = (nextState) => {
17239
17404
  var _a3, _b, _c;
17240
17405
  const validationError = rules ? validateSwitch(nextState, rules) : void 0;
@@ -17252,7 +17417,19 @@ var FormSwitch = ({
17252
17417
  };
17253
17418
  return /* @__PURE__ */ jsxs("div", { className: cn("flex items-start justify-between gap-4", className), children: [
17254
17419
  /* @__PURE__ */ jsxs("div", { className: "flex-1 space-y-2", children: [
17255
- label ? /* @__PURE__ */ jsx(FormLabel, { id: `${switchId}-label`, htmlFor: switchId, className: "text-sm leading-none font-medium", children: label }) : null,
17420
+ label ? /* @__PURE__ */ jsx(
17421
+ FormLabel,
17422
+ {
17423
+ id: `${switchId}-label`,
17424
+ htmlFor: switchId,
17425
+ onClick: handleLabelClick,
17426
+ className: cn(
17427
+ "text-sm leading-none font-medium",
17428
+ switchDisabled ? "cursor-not-allowed" : "cursor-pointer"
17429
+ ),
17430
+ children: label
17431
+ }
17432
+ ) : null,
17256
17433
  description ? /* @__PURE__ */ jsx(FormDescription, { id: descriptionId, children: description }) : null,
17257
17434
  /* @__PURE__ */ jsx(FormMessage, { id: messageId, children: resolvedError })
17258
17435
  ] }),
@@ -17264,6 +17441,8 @@ var FormSwitch = ({
17264
17441
  "aria-invalid": Boolean(resolvedError),
17265
17442
  "aria-describedby": combinedAriaDescribedBy,
17266
17443
  "aria-labelledby": computedAriaLabelledBy,
17444
+ className: cn("cursor-pointer", switchClassName),
17445
+ disabled: switchDisabled,
17267
17446
  ...restSwitchProps,
17268
17447
  ...fieldChecked !== void 0 ? { checked: fieldChecked } : { defaultChecked },
17269
17448
  onCheckedChange: handleCheckedChange
@@ -17578,10 +17757,12 @@ exports.Tooltip = Tooltip2;
17578
17757
  exports.TooltipContent = TooltipContent;
17579
17758
  exports.TooltipProvider = TooltipProvider;
17580
17759
  exports.TooltipTrigger = TooltipTrigger;
17760
+ exports.__virtualKeyboardTesting = __virtualKeyboardTesting;
17581
17761
  exports.badgeVariants = badgeVariants;
17582
17762
  exports.buttonVariants = buttonVariants;
17583
17763
  exports.cn = cn;
17584
17764
  exports.createStore = createStore;
17765
+ exports.detectVirtualKeyboardDevice = detectVirtualKeyboardDevice;
17585
17766
  exports.dragColumn = dragColumn;
17586
17767
  exports.formatCurrency = formatCurrency;
17587
17768
  exports.getInitials = getInitials;
@@ -17590,6 +17771,7 @@ exports.getThemeMode = getThemeMode;
17590
17771
  exports.initializeMonitoring = initializeMonitoring;
17591
17772
  exports.isNullOrEmpty = isNullOrEmpty;
17592
17773
  exports.isThemeMode = isThemeMode;
17774
+ exports.maybeScrollElementIntoView = maybeScrollElementIntoView;
17593
17775
  exports.mobileFooterVariantMeta = mobileFooterVariantMeta;
17594
17776
  exports.mobileFooterVariants = mobileFooterVariants;
17595
17777
  exports.mobileHeaderVariantMeta = mobileHeaderVariantMeta;