shadcn-ui-react 0.2.5 → 0.2.8

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.
package/dist/index.js CHANGED
@@ -34,11 +34,6 @@ var __export = (target, all) => {
34
34
  __defProp(target, name, { get: all[name], enumerable: true });
35
35
  };
36
36
 
37
- // src/components/accordion.tsx
38
- import * as AccordionPrimitive from "@radix-ui/react-accordion";
39
- import { ChevronDownIcon } from "@radix-ui/react-icons";
40
- import * as React from "react";
41
-
42
37
  // src/utils/utils.ts
43
38
  import { clsx } from "clsx";
44
39
  import { twMerge } from "tailwind-merge";
@@ -46,7 +41,10 @@ function cn(...inputs) {
46
41
  return twMerge(clsx(inputs));
47
42
  }
48
43
 
49
- // src/components/accordion.tsx
44
+ // src/components/Accordion/accordion.tsx
45
+ import * as AccordionPrimitive from "@radix-ui/react-accordion";
46
+ import { ChevronDownIcon } from "@radix-ui/react-icons";
47
+ import * as React from "react";
50
48
  import { jsx, jsxs } from "react/jsx-runtime";
51
49
  var Accordion = AccordionPrimitive.Root;
52
50
  var AccordionItem = React.forwardRef((_a, ref) => {
@@ -367,7 +365,7 @@ var Button = React5.forwardRef(
367
365
  Button.displayName = "Button";
368
366
 
369
367
  // node_modules/react-day-picker/dist/esm/DayPicker.js
370
- import React32, { useCallback, useMemo } from "react";
368
+ import React32, { useCallback as useCallback2, useMemo, useRef as useRef2 } from "react";
371
369
 
372
370
  // node_modules/react-day-picker/dist/esm/UI.js
373
371
  var UI;
@@ -412,6 +410,17 @@ var SelectionState;
412
410
  SelectionState2["range_start"] = "range_start";
413
411
  SelectionState2["selected"] = "selected";
414
412
  })(SelectionState || (SelectionState = {}));
413
+ var Animation;
414
+ (function(Animation2) {
415
+ Animation2["weeks_before_enter"] = "weeks_before_enter";
416
+ Animation2["weeks_before_exit"] = "weeks_before_exit";
417
+ Animation2["weeks_after_enter"] = "weeks_after_enter";
418
+ Animation2["weeks_after_exit"] = "weeks_after_exit";
419
+ Animation2["caption_after_enter"] = "caption_after_enter";
420
+ Animation2["caption_after_exit"] = "caption_after_exit";
421
+ Animation2["caption_before_enter"] = "caption_before_enter";
422
+ Animation2["caption_before_exit"] = "caption_before_exit";
423
+ })(Animation || (Animation = {}));
415
424
 
416
425
  // node_modules/@date-fns/tz/constants/index.js
417
426
  var constructFromSymbol = Symbol.for("constructDateFrom");
@@ -688,8 +697,8 @@ function getDefaultOptions() {
688
697
  // node_modules/date-fns/startOfWeek.js
689
698
  function startOfWeek(date, options) {
690
699
  var _a, _b, _c, _d, _e, _f, _g, _h;
691
- const defaultOptions3 = getDefaultOptions();
692
- const weekStartsOn = (_h = (_g = (_d = (_c = options == null ? void 0 : options.weekStartsOn) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) != null ? _d : defaultOptions3.weekStartsOn) != null ? _g : (_f = (_e = defaultOptions3.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.weekStartsOn) != null ? _h : 0;
700
+ const defaultOptions2 = getDefaultOptions();
701
+ const weekStartsOn = (_h = (_g = (_d = (_c = options == null ? void 0 : options.weekStartsOn) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) != null ? _d : defaultOptions2.weekStartsOn) != null ? _g : (_f = (_e = defaultOptions2.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.weekStartsOn) != null ? _h : 0;
693
702
  const _date = toDate(date, options == null ? void 0 : options.in);
694
703
  const day = _date.getDay();
695
704
  const diff = (day < weekStartsOn ? 7 : 0) + day - weekStartsOn;
@@ -915,8 +924,8 @@ function startOfYear(date, options) {
915
924
  // node_modules/date-fns/endOfWeek.js
916
925
  function endOfWeek(date, options) {
917
926
  var _a, _b, _c, _d, _e, _f, _g, _h;
918
- const defaultOptions3 = getDefaultOptions();
919
- const weekStartsOn = (_h = (_g = (_d = (_c = options == null ? void 0 : options.weekStartsOn) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) != null ? _d : defaultOptions3.weekStartsOn) != null ? _g : (_f = (_e = defaultOptions3.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.weekStartsOn) != null ? _h : 0;
927
+ const defaultOptions2 = getDefaultOptions();
928
+ const weekStartsOn = (_h = (_g = (_d = (_c = options == null ? void 0 : options.weekStartsOn) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.weekStartsOn) != null ? _d : defaultOptions2.weekStartsOn) != null ? _g : (_f = (_e = defaultOptions2.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.weekStartsOn) != null ? _h : 0;
920
929
  const _date = toDate(date, options == null ? void 0 : options.in);
921
930
  const day = _date.getDay();
922
931
  const diff = (day < weekStartsOn ? -7 : 0) + 6 - (day - weekStartsOn);
@@ -1459,8 +1468,8 @@ function getWeekYear(date, options) {
1459
1468
  var _a, _b, _c, _d, _e, _f, _g, _h;
1460
1469
  const _date = toDate(date, options == null ? void 0 : options.in);
1461
1470
  const year = _date.getFullYear();
1462
- const defaultOptions3 = getDefaultOptions();
1463
- const firstWeekContainsDate = (_h = (_g = (_d = (_c = options == null ? void 0 : options.firstWeekContainsDate) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) != null ? _d : defaultOptions3.firstWeekContainsDate) != null ? _g : (_f = (_e = defaultOptions3.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.firstWeekContainsDate) != null ? _h : 1;
1471
+ const defaultOptions2 = getDefaultOptions();
1472
+ const firstWeekContainsDate = (_h = (_g = (_d = (_c = options == null ? void 0 : options.firstWeekContainsDate) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) != null ? _d : defaultOptions2.firstWeekContainsDate) != null ? _g : (_f = (_e = defaultOptions2.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.firstWeekContainsDate) != null ? _h : 1;
1464
1473
  const firstWeekOfNextYear = constructFrom((options == null ? void 0 : options.in) || date, 0);
1465
1474
  firstWeekOfNextYear.setFullYear(year + 1, 0, firstWeekContainsDate);
1466
1475
  firstWeekOfNextYear.setHours(0, 0, 0, 0);
@@ -1481,8 +1490,8 @@ function getWeekYear(date, options) {
1481
1490
  // node_modules/date-fns/startOfWeekYear.js
1482
1491
  function startOfWeekYear(date, options) {
1483
1492
  var _a, _b, _c, _d, _e, _f, _g, _h;
1484
- const defaultOptions3 = getDefaultOptions();
1485
- const firstWeekContainsDate = (_h = (_g = (_d = (_c = options == null ? void 0 : options.firstWeekContainsDate) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) != null ? _d : defaultOptions3.firstWeekContainsDate) != null ? _g : (_f = (_e = defaultOptions3.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.firstWeekContainsDate) != null ? _h : 1;
1493
+ const defaultOptions2 = getDefaultOptions();
1494
+ const firstWeekContainsDate = (_h = (_g = (_d = (_c = options == null ? void 0 : options.firstWeekContainsDate) != null ? _c : (_b = (_a = options == null ? void 0 : options.locale) == null ? void 0 : _a.options) == null ? void 0 : _b.firstWeekContainsDate) != null ? _d : defaultOptions2.firstWeekContainsDate) != null ? _g : (_f = (_e = defaultOptions2.locale) == null ? void 0 : _e.options) == null ? void 0 : _f.firstWeekContainsDate) != null ? _h : 1;
1486
1495
  const year = getWeekYear(date, options);
1487
1496
  const firstWeek = constructFrom((options == null ? void 0 : options.in) || date, 0);
1488
1497
  firstWeek.setFullYear(year, 0, firstWeekContainsDate);
@@ -2296,10 +2305,10 @@ var doubleQuoteRegExp = /''/g;
2296
2305
  var unescapedLatinCharacterRegExp = /[a-zA-Z]/;
2297
2306
  function format(date, formatStr, options) {
2298
2307
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
2299
- const defaultOptions3 = getDefaultOptions();
2300
- const locale = (_b = (_a = options == null ? void 0 : options.locale) != null ? _a : defaultOptions3.locale) != null ? _b : enUS;
2301
- const firstWeekContainsDate = (_j = (_i = (_f = (_e = options == null ? void 0 : options.firstWeekContainsDate) != null ? _e : (_d = (_c = options == null ? void 0 : options.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.firstWeekContainsDate) != null ? _f : defaultOptions3.firstWeekContainsDate) != null ? _i : (_h = (_g = defaultOptions3.locale) == null ? void 0 : _g.options) == null ? void 0 : _h.firstWeekContainsDate) != null ? _j : 1;
2302
- const weekStartsOn = (_r = (_q = (_n = (_m = options == null ? void 0 : options.weekStartsOn) != null ? _m : (_l = (_k = options == null ? void 0 : options.locale) == null ? void 0 : _k.options) == null ? void 0 : _l.weekStartsOn) != null ? _n : defaultOptions3.weekStartsOn) != null ? _q : (_p = (_o = defaultOptions3.locale) == null ? void 0 : _o.options) == null ? void 0 : _p.weekStartsOn) != null ? _r : 0;
2308
+ const defaultOptions2 = getDefaultOptions();
2309
+ const locale = (_b = (_a = options == null ? void 0 : options.locale) != null ? _a : defaultOptions2.locale) != null ? _b : enUS;
2310
+ const firstWeekContainsDate = (_j = (_i = (_f = (_e = options == null ? void 0 : options.firstWeekContainsDate) != null ? _e : (_d = (_c = options == null ? void 0 : options.locale) == null ? void 0 : _c.options) == null ? void 0 : _d.firstWeekContainsDate) != null ? _f : defaultOptions2.firstWeekContainsDate) != null ? _i : (_h = (_g = defaultOptions2.locale) == null ? void 0 : _g.options) == null ? void 0 : _h.firstWeekContainsDate) != null ? _j : 1;
2311
+ const weekStartsOn = (_r = (_q = (_n = (_m = options == null ? void 0 : options.weekStartsOn) != null ? _m : (_l = (_k = options == null ? void 0 : options.locale) == null ? void 0 : _k.options) == null ? void 0 : _l.weekStartsOn) != null ? _n : defaultOptions2.weekStartsOn) != null ? _q : (_p = (_o = defaultOptions2.locale) == null ? void 0 : _o.options) == null ? void 0 : _p.weekStartsOn) != null ? _r : 0;
2303
2312
  const originalDate = toDate(date, options == null ? void 0 : options.in);
2304
2313
  if (!isValid(originalDate)) {
2305
2314
  throw new RangeError("Invalid time value");
@@ -2491,140 +2500,140 @@ var DateLib = class {
2491
2500
  return new Date(year, monthIndex, date);
2492
2501
  };
2493
2502
  this.addDays = (date, amount) => {
2494
- var _a, _b, _c;
2495
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.addDays) == null ? void 0 : _b.call(_a, date, amount)) != null ? _c : addDays(date, amount);
2503
+ var _a;
2504
+ return ((_a = this.overrides) == null ? void 0 : _a.addDays) ? this.overrides.addDays(date, amount) : addDays(date, amount);
2496
2505
  };
2497
2506
  this.addMonths = (date, amount) => {
2498
- var _a, _b, _c;
2499
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.addMonths) == null ? void 0 : _b.call(_a, date, amount)) != null ? _c : addMonths(date, amount);
2507
+ var _a;
2508
+ return ((_a = this.overrides) == null ? void 0 : _a.addMonths) ? this.overrides.addMonths(date, amount) : addMonths(date, amount);
2500
2509
  };
2501
2510
  this.addWeeks = (date, amount) => {
2502
- var _a, _b, _c;
2503
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.addWeeks) == null ? void 0 : _b.call(_a, date, amount)) != null ? _c : addWeeks(date, amount);
2511
+ var _a;
2512
+ return ((_a = this.overrides) == null ? void 0 : _a.addWeeks) ? this.overrides.addWeeks(date, amount) : addWeeks(date, amount);
2504
2513
  };
2505
2514
  this.addYears = (date, amount) => {
2506
- var _a, _b, _c;
2507
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.addYears) == null ? void 0 : _b.call(_a, date, amount)) != null ? _c : addYears(date, amount);
2515
+ var _a;
2516
+ return ((_a = this.overrides) == null ? void 0 : _a.addYears) ? this.overrides.addYears(date, amount) : addYears(date, amount);
2508
2517
  };
2509
2518
  this.differenceInCalendarDays = (dateLeft, dateRight) => {
2510
- var _a, _b, _c;
2511
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.differenceInCalendarDays) == null ? void 0 : _b.call(_a, dateLeft, dateRight)) != null ? _c : differenceInCalendarDays(dateLeft, dateRight);
2519
+ var _a;
2520
+ return ((_a = this.overrides) == null ? void 0 : _a.differenceInCalendarDays) ? this.overrides.differenceInCalendarDays(dateLeft, dateRight) : differenceInCalendarDays(dateLeft, dateRight);
2512
2521
  };
2513
2522
  this.differenceInCalendarMonths = (dateLeft, dateRight) => {
2514
- var _a, _b, _c;
2515
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.differenceInCalendarMonths) == null ? void 0 : _b.call(_a, dateLeft, dateRight)) != null ? _c : differenceInCalendarMonths(dateLeft, dateRight);
2523
+ var _a;
2524
+ return ((_a = this.overrides) == null ? void 0 : _a.differenceInCalendarMonths) ? this.overrides.differenceInCalendarMonths(dateLeft, dateRight) : differenceInCalendarMonths(dateLeft, dateRight);
2516
2525
  };
2517
2526
  this.eachMonthOfInterval = (interval) => {
2518
- var _a, _b, _c;
2519
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.eachMonthOfInterval) == null ? void 0 : _b.call(_a, interval)) != null ? _c : eachMonthOfInterval(interval);
2527
+ var _a;
2528
+ return ((_a = this.overrides) == null ? void 0 : _a.eachMonthOfInterval) ? this.overrides.eachMonthOfInterval(interval) : eachMonthOfInterval(interval);
2520
2529
  };
2521
- this.endOfBroadcastWeek = (date, dateLib) => {
2522
- var _a, _b, _c;
2523
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.endOfBroadcastWeek) == null ? void 0 : _b.call(_a, date, dateLib)) != null ? _c : endOfBroadcastWeek(date, this);
2530
+ this.endOfBroadcastWeek = (date) => {
2531
+ var _a;
2532
+ return ((_a = this.overrides) == null ? void 0 : _a.endOfBroadcastWeek) ? this.overrides.endOfBroadcastWeek(date, this) : endOfBroadcastWeek(date, this);
2524
2533
  };
2525
2534
  this.endOfISOWeek = (date) => {
2526
- var _a, _b, _c;
2527
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.endOfISOWeek) == null ? void 0 : _b.call(_a, date)) != null ? _c : endOfISOWeek(date);
2535
+ var _a;
2536
+ return ((_a = this.overrides) == null ? void 0 : _a.endOfISOWeek) ? this.overrides.endOfISOWeek(date) : endOfISOWeek(date);
2528
2537
  };
2529
2538
  this.endOfMonth = (date) => {
2530
- var _a, _b, _c;
2531
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.endOfMonth) == null ? void 0 : _b.call(_a, date)) != null ? _c : endOfMonth(date);
2539
+ var _a;
2540
+ return ((_a = this.overrides) == null ? void 0 : _a.endOfMonth) ? this.overrides.endOfMonth(date) : endOfMonth(date);
2532
2541
  };
2533
- this.endOfWeek = (date, options2) => {
2534
- var _a, _b, _c;
2535
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.endOfWeek) == null ? void 0 : _b.call(_a, date, options2 != null ? options2 : this.options)) != null ? _c : endOfWeek(date, options2 != null ? options2 : this.options);
2542
+ this.endOfWeek = (date) => {
2543
+ var _a;
2544
+ return ((_a = this.overrides) == null ? void 0 : _a.endOfWeek) ? this.overrides.endOfWeek(date, this.options) : endOfWeek(date, this.options);
2536
2545
  };
2537
2546
  this.endOfYear = (date) => {
2538
- var _a, _b, _c;
2539
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.endOfYear) == null ? void 0 : _b.call(_a, date)) != null ? _c : endOfYear(date);
2547
+ var _a;
2548
+ return ((_a = this.overrides) == null ? void 0 : _a.endOfYear) ? this.overrides.endOfYear(date) : endOfYear(date);
2540
2549
  };
2541
- this.format = (date, formatStr, options2) => {
2542
- var _a, _b, _c;
2543
- const formatted = (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.format) == null ? void 0 : _b.call(_a, date, formatStr, options2 != null ? options2 : this.options)) != null ? _c : format(date, formatStr, options2 != null ? options2 : this.options);
2550
+ this.format = (date, formatStr) => {
2551
+ var _a;
2552
+ const formatted = ((_a = this.overrides) == null ? void 0 : _a.format) ? this.overrides.format(date, formatStr, this.options) : format(date, formatStr, this.options);
2544
2553
  if (this.options.numerals && this.options.numerals !== "latn") {
2545
2554
  return this.replaceDigits(formatted);
2546
2555
  }
2547
2556
  return formatted;
2548
2557
  };
2549
2558
  this.getISOWeek = (date) => {
2550
- var _a, _b, _c;
2551
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.getISOWeek) == null ? void 0 : _b.call(_a, date)) != null ? _c : getISOWeek(date);
2559
+ var _a;
2560
+ return ((_a = this.overrides) == null ? void 0 : _a.getISOWeek) ? this.overrides.getISOWeek(date) : getISOWeek(date);
2552
2561
  };
2553
2562
  this.getMonth = (date) => {
2554
- var _a, _b, _c;
2555
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.getMonth) == null ? void 0 : _b.call(_a, date)) != null ? _c : getMonth(date);
2563
+ var _a;
2564
+ return ((_a = this.overrides) == null ? void 0 : _a.getMonth) ? this.overrides.getMonth(date, this.options) : getMonth(date, this.options);
2556
2565
  };
2557
2566
  this.getYear = (date) => {
2558
- var _a, _b, _c;
2559
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.getYear) == null ? void 0 : _b.call(_a, date)) != null ? _c : getYear(date);
2567
+ var _a;
2568
+ return ((_a = this.overrides) == null ? void 0 : _a.getYear) ? this.overrides.getYear(date, this.options) : getYear(date, this.options);
2560
2569
  };
2561
- this.getWeek = (date, options2) => {
2562
- var _a, _b, _c;
2563
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.getWeek) == null ? void 0 : _b.call(_a, date, options2 != null ? options2 : this.options)) != null ? _c : getWeek(date, options2 != null ? options2 : this.options);
2570
+ this.getWeek = (date) => {
2571
+ var _a;
2572
+ return ((_a = this.overrides) == null ? void 0 : _a.getWeek) ? this.overrides.getWeek(date, this.options) : getWeek(date, this.options);
2564
2573
  };
2565
2574
  this.isAfter = (date, dateToCompare) => {
2566
- var _a, _b, _c;
2567
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.isAfter) == null ? void 0 : _b.call(_a, date, dateToCompare)) != null ? _c : isAfter(date, dateToCompare);
2575
+ var _a;
2576
+ return ((_a = this.overrides) == null ? void 0 : _a.isAfter) ? this.overrides.isAfter(date, dateToCompare) : isAfter(date, dateToCompare);
2568
2577
  };
2569
2578
  this.isBefore = (date, dateToCompare) => {
2570
- var _a, _b, _c;
2571
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.isBefore) == null ? void 0 : _b.call(_a, date, dateToCompare)) != null ? _c : isBefore(date, dateToCompare);
2579
+ var _a;
2580
+ return ((_a = this.overrides) == null ? void 0 : _a.isBefore) ? this.overrides.isBefore(date, dateToCompare) : isBefore(date, dateToCompare);
2572
2581
  };
2573
2582
  this.isDate = (value) => {
2574
- var _a, _b, _c;
2575
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.isDate) == null ? void 0 : _b.call(_a, value)) != null ? _c : isDate(value);
2583
+ var _a;
2584
+ return ((_a = this.overrides) == null ? void 0 : _a.isDate) ? this.overrides.isDate(value) : isDate(value);
2576
2585
  };
2577
2586
  this.isSameDay = (dateLeft, dateRight) => {
2578
- var _a, _b, _c;
2579
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.isSameDay) == null ? void 0 : _b.call(_a, dateLeft, dateRight)) != null ? _c : isSameDay(dateLeft, dateRight);
2587
+ var _a;
2588
+ return ((_a = this.overrides) == null ? void 0 : _a.isSameDay) ? this.overrides.isSameDay(dateLeft, dateRight) : isSameDay(dateLeft, dateRight);
2580
2589
  };
2581
2590
  this.isSameMonth = (dateLeft, dateRight) => {
2582
- var _a, _b, _c;
2583
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.isSameMonth) == null ? void 0 : _b.call(_a, dateLeft, dateRight)) != null ? _c : isSameMonth(dateLeft, dateRight);
2591
+ var _a;
2592
+ return ((_a = this.overrides) == null ? void 0 : _a.isSameMonth) ? this.overrides.isSameMonth(dateLeft, dateRight) : isSameMonth(dateLeft, dateRight);
2584
2593
  };
2585
2594
  this.isSameYear = (dateLeft, dateRight) => {
2586
- var _a, _b, _c;
2587
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.isSameYear) == null ? void 0 : _b.call(_a, dateLeft, dateRight)) != null ? _c : isSameYear(dateLeft, dateRight);
2595
+ var _a;
2596
+ return ((_a = this.overrides) == null ? void 0 : _a.isSameYear) ? this.overrides.isSameYear(dateLeft, dateRight) : isSameYear(dateLeft, dateRight);
2588
2597
  };
2589
2598
  this.max = (dates) => {
2590
- var _a, _b, _c;
2591
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.max) == null ? void 0 : _b.call(_a, dates)) != null ? _c : max(dates);
2599
+ var _a;
2600
+ return ((_a = this.overrides) == null ? void 0 : _a.max) ? this.overrides.max(dates) : max(dates);
2592
2601
  };
2593
2602
  this.min = (dates) => {
2594
- var _a, _b, _c;
2595
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.min) == null ? void 0 : _b.call(_a, dates)) != null ? _c : min(dates);
2603
+ var _a;
2604
+ return ((_a = this.overrides) == null ? void 0 : _a.min) ? this.overrides.min(dates) : min(dates);
2596
2605
  };
2597
2606
  this.setMonth = (date, month) => {
2598
- var _a, _b, _c;
2599
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.setMonth) == null ? void 0 : _b.call(_a, date, month)) != null ? _c : setMonth(date, month);
2607
+ var _a;
2608
+ return ((_a = this.overrides) == null ? void 0 : _a.setMonth) ? this.overrides.setMonth(date, month) : setMonth(date, month);
2600
2609
  };
2601
2610
  this.setYear = (date, year) => {
2602
- var _a, _b, _c;
2603
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.setYear) == null ? void 0 : _b.call(_a, date, year)) != null ? _c : setYear(date, year);
2611
+ var _a;
2612
+ return ((_a = this.overrides) == null ? void 0 : _a.setYear) ? this.overrides.setYear(date, year) : setYear(date, year);
2604
2613
  };
2605
- this.startOfBroadcastWeek = (date, dateLib) => {
2606
- var _a, _b, _c;
2607
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.startOfBroadcastWeek) == null ? void 0 : _b.call(_a, date, dateLib != null ? dateLib : this)) != null ? _c : startOfBroadcastWeek(date, dateLib != null ? dateLib : this);
2614
+ this.startOfBroadcastWeek = (date) => {
2615
+ var _a;
2616
+ return ((_a = this.overrides) == null ? void 0 : _a.startOfBroadcastWeek) ? this.overrides.startOfBroadcastWeek(date, this) : startOfBroadcastWeek(date, this);
2608
2617
  };
2609
2618
  this.startOfDay = (date) => {
2610
- var _a, _b, _c;
2611
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.startOfDay) == null ? void 0 : _b.call(_a, date)) != null ? _c : startOfDay(date);
2619
+ var _a;
2620
+ return ((_a = this.overrides) == null ? void 0 : _a.startOfDay) ? this.overrides.startOfDay(date) : startOfDay(date);
2612
2621
  };
2613
2622
  this.startOfISOWeek = (date) => {
2614
- var _a, _b, _c;
2615
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.startOfISOWeek) == null ? void 0 : _b.call(_a, date)) != null ? _c : startOfISOWeek(date);
2623
+ var _a;
2624
+ return ((_a = this.overrides) == null ? void 0 : _a.startOfISOWeek) ? this.overrides.startOfISOWeek(date) : startOfISOWeek(date);
2616
2625
  };
2617
2626
  this.startOfMonth = (date) => {
2618
- var _a, _b, _c;
2619
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.startOfMonth) == null ? void 0 : _b.call(_a, date)) != null ? _c : startOfMonth(date);
2627
+ var _a;
2628
+ return ((_a = this.overrides) == null ? void 0 : _a.startOfMonth) ? this.overrides.startOfMonth(date) : startOfMonth(date);
2620
2629
  };
2621
2630
  this.startOfWeek = (date) => {
2622
- var _a, _b, _c;
2623
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.startOfWeek) == null ? void 0 : _b.call(_a, date)) != null ? _c : startOfWeek(date, this.options);
2631
+ var _a;
2632
+ return ((_a = this.overrides) == null ? void 0 : _a.startOfWeek) ? this.overrides.startOfWeek(date, this.options) : startOfWeek(date, this.options);
2624
2633
  };
2625
2634
  this.startOfYear = (date) => {
2626
- var _a, _b, _c;
2627
- return (_c = (_b = (_a = this.overrides) == null ? void 0 : _a.startOfYear) == null ? void 0 : _b.call(_a, date)) != null ? _c : startOfYear(date);
2635
+ var _a;
2636
+ return ((_a = this.overrides) == null ? void 0 : _a.startOfYear) ? this.overrides.startOfYear(date) : startOfYear(date);
2628
2637
  };
2629
2638
  this.options = __spreadValues({ locale: enUS }, options);
2630
2639
  this.overrides = overrides;
@@ -2735,7 +2744,7 @@ function Chevron(props) {
2735
2744
  orientation === "up" && React8.createElement("polygon", { points: "6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28" }),
2736
2745
  orientation === "down" && React8.createElement("polygon", { points: "6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72" }),
2737
2746
  orientation === "left" && React8.createElement("polygon", { points: "16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20" }),
2738
- orientation === "right" && React8.createElement("polygon", { points: "8 18.612 14.1888889 12.5 8 6.37733333 9.91111111 4.5 18 12.5 9.91111111 20.5" })
2747
+ orientation === "right" && React8.createElement("polygon", { points: "8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20" })
2739
2748
  );
2740
2749
  }
2741
2750
 
@@ -2837,21 +2846,31 @@ function MonthsDropdown(props) {
2837
2846
  }
2838
2847
 
2839
2848
  // node_modules/react-day-picker/dist/esm/components/Nav.js
2840
- import React19 from "react";
2849
+ import React19, { useCallback } from "react";
2841
2850
  function Nav(props) {
2842
2851
  const _a = props, { onPreviousClick, onNextClick, previousMonth, nextMonth } = _a, navProps = __objRest(_a, ["onPreviousClick", "onNextClick", "previousMonth", "nextMonth"]);
2843
2852
  const { components, classNames, labels: { labelPrevious: labelPrevious2, labelNext: labelNext2 } } = useDayPicker();
2853
+ const handleNextClick = useCallback((e) => {
2854
+ if (nextMonth) {
2855
+ onNextClick == null ? void 0 : onNextClick(e);
2856
+ }
2857
+ }, [nextMonth, onNextClick]);
2858
+ const handlePreviousClick = useCallback((e) => {
2859
+ if (previousMonth) {
2860
+ onPreviousClick == null ? void 0 : onPreviousClick(e);
2861
+ }
2862
+ }, [previousMonth, onPreviousClick]);
2844
2863
  return React19.createElement(
2845
2864
  "nav",
2846
2865
  __spreadValues({}, navProps),
2847
2866
  React19.createElement(
2848
2867
  components.PreviousMonthButton,
2849
- { type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, disabled: previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: props.onPreviousClick },
2868
+ { type: "button", className: classNames[UI.PreviousMonthButton], tabIndex: previousMonth ? void 0 : -1, "aria-disabled": previousMonth ? void 0 : true, "aria-label": labelPrevious2(previousMonth), onClick: handlePreviousClick },
2850
2869
  React19.createElement(components.Chevron, { disabled: previousMonth ? void 0 : true, className: classNames[UI.Chevron], orientation: "left" })
2851
2870
  ),
2852
2871
  React19.createElement(
2853
2872
  components.NextMonthButton,
2854
- { type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, disabled: nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: props.onNextClick },
2873
+ { type: "button", className: classNames[UI.NextMonthButton], tabIndex: nextMonth ? void 0 : -1, "aria-disabled": nextMonth ? void 0 : true, "aria-label": labelNext2(nextMonth), onClick: handleNextClick },
2855
2874
  React19.createElement(components.Chevron, { disabled: nextMonth ? void 0 : true, orientation: "right", className: classNames[UI.Chevron] })
2856
2875
  )
2857
2876
  );
@@ -2880,7 +2899,8 @@ function PreviousMonthButton(props) {
2880
2899
  // node_modules/react-day-picker/dist/esm/components/Root.js
2881
2900
  import React23 from "react";
2882
2901
  function Root4(props) {
2883
- return React23.createElement("div", __spreadValues({}, props));
2902
+ const _a = props, { rootRef } = _a, rest = __objRest(_a, ["rootRef"]);
2903
+ return React23.createElement("div", __spreadProps(__spreadValues({}, rest), { ref: rootRef }));
2884
2904
  }
2885
2905
 
2886
2906
  // node_modules/react-day-picker/dist/esm/components/Select.js
@@ -2973,6 +2993,9 @@ function getDefaultClassNames() {
2973
2993
  for (const key in SelectionState) {
2974
2994
  classNames[SelectionState[key]] = `rdp-${SelectionState[key]}`;
2975
2995
  }
2996
+ for (const key in Animation) {
2997
+ classNames[Animation[key]] = `rdp-${Animation[key]}`;
2998
+ }
2976
2999
  return classNames;
2977
3000
  }
2978
3001
 
@@ -3187,6 +3210,137 @@ function labelYearDropdown(options) {
3187
3210
  return "Choose the Year";
3188
3211
  }
3189
3212
 
3213
+ // node_modules/react-day-picker/dist/esm/useAnimation.js
3214
+ import { useLayoutEffect, useRef } from "react";
3215
+ var asHtmlElement = (element) => {
3216
+ if (element instanceof HTMLElement)
3217
+ return element;
3218
+ return null;
3219
+ };
3220
+ var queryMonthEls = (element) => {
3221
+ var _a;
3222
+ return [
3223
+ ...(_a = element.querySelectorAll("[data-animated-month]")) != null ? _a : []
3224
+ ];
3225
+ };
3226
+ var queryMonthEl = (element) => asHtmlElement(element.querySelector("[data-animated-month]"));
3227
+ var queryCaptionEl = (element) => asHtmlElement(element.querySelector("[data-animated-caption]"));
3228
+ var queryWeeksEl = (element) => asHtmlElement(element.querySelector("[data-animated-weeks]"));
3229
+ var queryNavEl = (element) => asHtmlElement(element.querySelector("[data-animated-nav]"));
3230
+ var queryWeekdaysEl = (element) => asHtmlElement(element.querySelector("[data-animated-weekdays]"));
3231
+ function useAnimation(rootElRef, enabled, { classNames, months, focused, dateLib }) {
3232
+ const previousRootElSnapshotRef = useRef(null);
3233
+ const previousMonthsRef = useRef(months);
3234
+ const animatingRef = useRef(false);
3235
+ useLayoutEffect(() => {
3236
+ const previousMonths = previousMonthsRef.current;
3237
+ previousMonthsRef.current = months;
3238
+ if (!enabled || !rootElRef.current || // safety check because the ref can be set to anything by consumers
3239
+ !(rootElRef.current instanceof HTMLElement) || // validation required for the animation to work as expected
3240
+ months.length === 0 || previousMonths.length === 0 || months.length !== previousMonths.length) {
3241
+ return;
3242
+ }
3243
+ const isSameMonth2 = dateLib.isSameMonth(months[0].date, previousMonths[0].date);
3244
+ const isAfterPreviousMonth = dateLib.isAfter(months[0].date, previousMonths[0].date);
3245
+ const captionAnimationClass = isAfterPreviousMonth ? classNames[Animation.caption_after_enter] : classNames[Animation.caption_before_enter];
3246
+ const weeksAnimationClass = isAfterPreviousMonth ? classNames[Animation.weeks_after_enter] : classNames[Animation.weeks_before_enter];
3247
+ const previousRootElSnapshot = previousRootElSnapshotRef.current;
3248
+ const rootElSnapshot = rootElRef.current.cloneNode(true);
3249
+ if (rootElSnapshot instanceof HTMLElement) {
3250
+ const currentMonthElsSnapshot = queryMonthEls(rootElSnapshot);
3251
+ currentMonthElsSnapshot.forEach((currentMonthElSnapshot) => {
3252
+ if (!(currentMonthElSnapshot instanceof HTMLElement))
3253
+ return;
3254
+ const previousMonthElSnapshot = queryMonthEl(currentMonthElSnapshot);
3255
+ if (previousMonthElSnapshot && currentMonthElSnapshot.contains(previousMonthElSnapshot)) {
3256
+ currentMonthElSnapshot.removeChild(previousMonthElSnapshot);
3257
+ }
3258
+ const captionEl = queryCaptionEl(currentMonthElSnapshot);
3259
+ if (captionEl) {
3260
+ captionEl.classList.remove(captionAnimationClass);
3261
+ }
3262
+ const weeksEl = queryWeeksEl(currentMonthElSnapshot);
3263
+ if (weeksEl) {
3264
+ weeksEl.classList.remove(weeksAnimationClass);
3265
+ }
3266
+ });
3267
+ previousRootElSnapshotRef.current = rootElSnapshot;
3268
+ } else {
3269
+ previousRootElSnapshotRef.current = null;
3270
+ }
3271
+ if (animatingRef.current || isSameMonth2 || // skip animation if a day is focused because it can cause issues to the animation and is better for a11y
3272
+ focused) {
3273
+ return;
3274
+ }
3275
+ const previousMonthEls = previousRootElSnapshot instanceof HTMLElement ? queryMonthEls(previousRootElSnapshot) : [];
3276
+ const currentMonthEls = queryMonthEls(rootElRef.current);
3277
+ if (currentMonthEls && currentMonthEls.every((el) => el instanceof HTMLElement) && previousMonthEls && previousMonthEls.every((el) => el instanceof HTMLElement)) {
3278
+ animatingRef.current = true;
3279
+ const cleanUpFunctions = [];
3280
+ rootElRef.current.style.isolation = "isolate";
3281
+ const navEl = queryNavEl(rootElRef.current);
3282
+ if (navEl) {
3283
+ navEl.style.zIndex = "1";
3284
+ }
3285
+ currentMonthEls.forEach((currentMonthEl, index) => {
3286
+ const previousMonthEl = previousMonthEls[index];
3287
+ if (!previousMonthEl) {
3288
+ return;
3289
+ }
3290
+ currentMonthEl.style.position = "relative";
3291
+ currentMonthEl.style.overflow = "hidden";
3292
+ const captionEl = queryCaptionEl(currentMonthEl);
3293
+ if (captionEl) {
3294
+ captionEl.classList.add(captionAnimationClass);
3295
+ }
3296
+ const weeksEl = queryWeeksEl(currentMonthEl);
3297
+ if (weeksEl) {
3298
+ weeksEl.classList.add(weeksAnimationClass);
3299
+ }
3300
+ const cleanUp = () => {
3301
+ animatingRef.current = false;
3302
+ if (rootElRef.current) {
3303
+ rootElRef.current.style.isolation = "";
3304
+ }
3305
+ if (navEl) {
3306
+ navEl.style.zIndex = "";
3307
+ }
3308
+ if (captionEl) {
3309
+ captionEl.classList.remove(captionAnimationClass);
3310
+ }
3311
+ if (weeksEl) {
3312
+ weeksEl.classList.remove(weeksAnimationClass);
3313
+ }
3314
+ currentMonthEl.style.position = "";
3315
+ currentMonthEl.style.overflow = "";
3316
+ if (currentMonthEl.contains(previousMonthEl)) {
3317
+ currentMonthEl.removeChild(previousMonthEl);
3318
+ }
3319
+ };
3320
+ cleanUpFunctions.push(cleanUp);
3321
+ previousMonthEl.style.pointerEvents = "none";
3322
+ previousMonthEl.style.position = "absolute";
3323
+ previousMonthEl.style.overflow = "hidden";
3324
+ previousMonthEl.setAttribute("aria-hidden", "true");
3325
+ const previousWeekdaysEl = queryWeekdaysEl(previousMonthEl);
3326
+ if (previousWeekdaysEl) {
3327
+ previousWeekdaysEl.style.opacity = "0";
3328
+ }
3329
+ const previousCaptionEl = queryCaptionEl(previousMonthEl);
3330
+ if (previousCaptionEl) {
3331
+ previousCaptionEl.classList.add(isAfterPreviousMonth ? classNames[Animation.caption_before_exit] : classNames[Animation.caption_after_exit]);
3332
+ previousCaptionEl.addEventListener("animationend", cleanUp);
3333
+ }
3334
+ const previousWeeksEl = queryWeeksEl(previousMonthEl);
3335
+ if (previousWeeksEl) {
3336
+ previousWeeksEl.classList.add(isAfterPreviousMonth ? classNames[Animation.weeks_before_exit] : classNames[Animation.weeks_after_exit]);
3337
+ }
3338
+ currentMonthEl.insertBefore(previousMonthEl, currentMonthEl.firstChild);
3339
+ });
3340
+ }
3341
+ });
3342
+ }
3343
+
3190
3344
  // node_modules/react-day-picker/dist/esm/useCalendar.js
3191
3345
  import { useEffect } from "react";
3192
3346
 
@@ -3248,7 +3402,7 @@ function getDisplayMonths(firstDisplayedMonth, calendarEndMonth, props, dateLib)
3248
3402
 
3249
3403
  // node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.js
3250
3404
  function getInitialMonth(props, dateLib) {
3251
- const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1, endMonth, startMonth } = props;
3405
+ const { month, defaultMonth, today = dateLib.today(), numberOfMonths = 1, endMonth, startMonth, timeZone } = props;
3252
3406
  let initialMonth = month || defaultMonth || today;
3253
3407
  const { differenceInCalendarMonths: differenceInCalendarMonths2, addMonths: addMonths2, startOfMonth: startOfMonth2 } = dateLib;
3254
3408
  if (endMonth && differenceInCalendarMonths2(endMonth, initialMonth) < 0) {
@@ -3258,6 +3412,7 @@ function getInitialMonth(props, dateLib) {
3258
3412
  if (startMonth && differenceInCalendarMonths2(initialMonth, startMonth) < 0) {
3259
3413
  initialMonth = startMonth;
3260
3414
  }
3415
+ initialMonth = timeZone ? new TZDate(initialMonth, timeZone) : initialMonth;
3261
3416
  return startOfMonth2(initialMonth);
3262
3417
  }
3263
3418
 
@@ -3487,35 +3642,39 @@ function useCalendar(props, dateLib) {
3487
3642
  import { useState as useState2 } from "react";
3488
3643
 
3489
3644
  // node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.js
3645
+ var FocusTargetPriority;
3646
+ (function(FocusTargetPriority2) {
3647
+ FocusTargetPriority2[FocusTargetPriority2["Today"] = 0] = "Today";
3648
+ FocusTargetPriority2[FocusTargetPriority2["Selected"] = 1] = "Selected";
3649
+ FocusTargetPriority2[FocusTargetPriority2["LastFocused"] = 2] = "LastFocused";
3650
+ FocusTargetPriority2[FocusTargetPriority2["FocusedModifier"] = 3] = "FocusedModifier";
3651
+ })(FocusTargetPriority || (FocusTargetPriority = {}));
3652
+ function isFocusableDay(modifiers) {
3653
+ return !modifiers[DayFlag.disabled] && !modifiers[DayFlag.hidden] && !modifiers[DayFlag.outside];
3654
+ }
3490
3655
  function calculateFocusTarget(days, getModifiers, isSelected, lastFocused) {
3491
3656
  let focusTarget;
3492
- let index = 0;
3493
- let found = false;
3494
- while (index < days.length && !found) {
3495
- const day = days[index];
3657
+ let foundFocusTargetPriority = -1;
3658
+ for (const day of days) {
3496
3659
  const modifiers = getModifiers(day);
3497
- if (!modifiers[DayFlag.disabled] && !modifiers[DayFlag.hidden] && !modifiers[DayFlag.outside]) {
3498
- if (modifiers[DayFlag.focused]) {
3660
+ if (isFocusableDay(modifiers)) {
3661
+ if (modifiers[DayFlag.focused] && foundFocusTargetPriority < FocusTargetPriority.FocusedModifier) {
3499
3662
  focusTarget = day;
3500
- found = true;
3501
- } else if (lastFocused == null ? void 0 : lastFocused.isEqualTo(day)) {
3663
+ foundFocusTargetPriority = FocusTargetPriority.FocusedModifier;
3664
+ } else if ((lastFocused == null ? void 0 : lastFocused.isEqualTo(day)) && foundFocusTargetPriority < FocusTargetPriority.LastFocused) {
3502
3665
  focusTarget = day;
3503
- found = true;
3504
- } else if (isSelected(day.date)) {
3666
+ foundFocusTargetPriority = FocusTargetPriority.LastFocused;
3667
+ } else if (isSelected(day.date) && foundFocusTargetPriority < FocusTargetPriority.Selected) {
3505
3668
  focusTarget = day;
3506
- found = true;
3507
- } else if (modifiers[DayFlag.today]) {
3669
+ foundFocusTargetPriority = FocusTargetPriority.Selected;
3670
+ } else if (modifiers[DayFlag.today] && foundFocusTargetPriority < FocusTargetPriority.Today) {
3508
3671
  focusTarget = day;
3509
- found = true;
3672
+ foundFocusTargetPriority = FocusTargetPriority.Today;
3510
3673
  }
3511
3674
  }
3512
- index++;
3513
3675
  }
3514
3676
  if (!focusTarget) {
3515
- focusTarget = days.find((day) => {
3516
- const m = getModifiers(day);
3517
- return !m[DayFlag.disabled] && !m[DayFlag.hidden] && !m[DayFlag.outside];
3518
- });
3677
+ focusTarget = days.find((day) => isFocusableDay(getModifiers(day)));
3519
3678
  }
3520
3679
  return focusTarget;
3521
3680
  }
@@ -4041,34 +4200,34 @@ function DayPicker(props) {
4041
4200
  const { labelDayButton: labelDayButton2, labelGridcell: labelGridcell2, labelGrid: labelGrid2, labelMonthDropdown: labelMonthDropdown2, labelNav: labelNav2, labelWeekday: labelWeekday2, labelWeekNumber: labelWeekNumber2, labelWeekNumberHeader: labelWeekNumberHeader2, labelYearDropdown: labelYearDropdown2 } = labels;
4042
4201
  const weekdays = useMemo(() => getWeekdays(dateLib, props.ISOWeek), [dateLib, props.ISOWeek]);
4043
4202
  const isInteractive = mode !== void 0 || onDayClick !== void 0;
4044
- const handlePreviousClick = useCallback(() => {
4203
+ const handlePreviousClick = useCallback2(() => {
4045
4204
  if (!previousMonth)
4046
4205
  return;
4047
4206
  goToMonth(previousMonth);
4048
4207
  onPrevClick == null ? void 0 : onPrevClick(previousMonth);
4049
4208
  }, [previousMonth, goToMonth, onPrevClick]);
4050
- const handleNextClick = useCallback(() => {
4209
+ const handleNextClick = useCallback2(() => {
4051
4210
  if (!nextMonth)
4052
4211
  return;
4053
4212
  goToMonth(nextMonth);
4054
4213
  onNextClick == null ? void 0 : onNextClick(nextMonth);
4055
4214
  }, [goToMonth, nextMonth, onNextClick]);
4056
- const handleDayClick = useCallback((day, m) => (e) => {
4215
+ const handleDayClick = useCallback2((day, m) => (e) => {
4057
4216
  e.preventDefault();
4058
4217
  e.stopPropagation();
4059
4218
  setFocused(day);
4060
4219
  select == null ? void 0 : select(day.date, m, e);
4061
4220
  onDayClick == null ? void 0 : onDayClick(day.date, m, e);
4062
4221
  }, [select, onDayClick, setFocused]);
4063
- const handleDayFocus = useCallback((day, m) => (e) => {
4222
+ const handleDayFocus = useCallback2((day, m) => (e) => {
4064
4223
  setFocused(day);
4065
4224
  onDayFocus == null ? void 0 : onDayFocus(day.date, m, e);
4066
4225
  }, [onDayFocus, setFocused]);
4067
- const handleDayBlur = useCallback((day, m) => (e) => {
4226
+ const handleDayBlur = useCallback2((day, m) => (e) => {
4068
4227
  blur();
4069
4228
  onDayBlur == null ? void 0 : onDayBlur(day.date, m, e);
4070
4229
  }, [blur, onDayBlur]);
4071
- const handleDayKeyDown = useCallback((day, modifiers) => (e) => {
4230
+ const handleDayKeyDown = useCallback2((day, modifiers) => (e) => {
4072
4231
  const keyMap = {
4073
4232
  ArrowLeft: ["day", props.dir === "rtl" ? "after" : "before"],
4074
4233
  ArrowRight: ["day", props.dir === "rtl" ? "before" : "after"],
@@ -4087,18 +4246,18 @@ function DayPicker(props) {
4087
4246
  }
4088
4247
  onDayKeyDown == null ? void 0 : onDayKeyDown(day.date, modifiers, e);
4089
4248
  }, [moveFocus, onDayKeyDown, props.dir]);
4090
- const handleDayMouseEnter = useCallback((day, modifiers) => (e) => {
4249
+ const handleDayMouseEnter = useCallback2((day, modifiers) => (e) => {
4091
4250
  onDayMouseEnter == null ? void 0 : onDayMouseEnter(day.date, modifiers, e);
4092
4251
  }, [onDayMouseEnter]);
4093
- const handleDayMouseLeave = useCallback((day, modifiers) => (e) => {
4252
+ const handleDayMouseLeave = useCallback2((day, modifiers) => (e) => {
4094
4253
  onDayMouseLeave == null ? void 0 : onDayMouseLeave(day.date, modifiers, e);
4095
4254
  }, [onDayMouseLeave]);
4096
- const handleMonthChange = useCallback((date) => (e) => {
4255
+ const handleMonthChange = useCallback2((date) => (e) => {
4097
4256
  const selectedMonth = Number(e.target.value);
4098
4257
  const month = dateLib.setMonth(dateLib.startOfMonth(date), selectedMonth);
4099
4258
  goToMonth(month);
4100
4259
  }, [dateLib, goToMonth]);
4101
- const handleYearChange = useCallback((date) => (e) => {
4260
+ const handleYearChange = useCallback2((date) => (e) => {
4102
4261
  const selectedYear = Number(e.target.value);
4103
4262
  const month = dateLib.setYear(dateLib.startOfMonth(date), selectedYear);
4104
4263
  goToMonth(month);
@@ -4108,6 +4267,13 @@ function DayPicker(props) {
4108
4267
  style: __spreadValues(__spreadValues({}, styles == null ? void 0 : styles[UI.Root]), props.style)
4109
4268
  }), [classNames, props.className, props.style, styles]);
4110
4269
  const dataAttributes = getDataAttributes(props);
4270
+ const rootElRef = useRef2(null);
4271
+ useAnimation(rootElRef, Boolean(props.animate), {
4272
+ classNames,
4273
+ months,
4274
+ focused,
4275
+ dateLib
4276
+ });
4111
4277
  const contextValue = {
4112
4278
  dayPickerProps: props,
4113
4279
  selected: selectedValue,
@@ -4129,33 +4295,45 @@ function DayPicker(props) {
4129
4295
  { value: contextValue },
4130
4296
  React32.createElement(
4131
4297
  components.Root,
4132
- __spreadValues({ className, style, dir: props.dir, id: props.id, lang: props.lang, nonce: props.nonce, title: props.title, role: props.role, "aria-label": props["aria-label"] }, dataAttributes),
4298
+ __spreadValues({ rootRef: props.animate ? rootElRef : void 0, className, style, dir: props.dir, id: props.id, lang: props.lang, nonce: props.nonce, title: props.title, role: props.role, "aria-label": props["aria-label"] }, dataAttributes),
4133
4299
  React32.createElement(
4134
4300
  components.Months,
4135
4301
  { className: classNames[UI.Months], style: styles == null ? void 0 : styles[UI.Months] },
4136
- !props.hideNavigation && React32.createElement(components.Nav, { className: classNames[UI.Nav], style: styles == null ? void 0 : styles[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
4302
+ !props.hideNavigation && React32.createElement(components.Nav, { "data-animated-nav": props.animate ? "true" : void 0, className: classNames[UI.Nav], style: styles == null ? void 0 : styles[UI.Nav], "aria-label": labelNav2(), onPreviousClick: handlePreviousClick, onNextClick: handleNextClick, previousMonth, nextMonth }),
4137
4303
  months.map((calendarMonth, displayIndex) => {
4138
4304
  const dropdownMonths = getMonthOptions(calendarMonth.date, navStart, navEnd, formatters2, dateLib);
4139
4305
  const dropdownYears = getYearOptions(navStart, navEnd, formatters2, dateLib);
4140
4306
  return React32.createElement(
4141
4307
  components.Month,
4142
- { className: classNames[UI.Month], style: styles == null ? void 0 : styles[UI.Month], key: displayIndex, displayIndex, calendarMonth },
4143
- React32.createElement(components.MonthCaption, { className: classNames[UI.MonthCaption], style: styles == null ? void 0 : styles[UI.MonthCaption], calendarMonth, displayIndex }, (captionLayout == null ? void 0 : captionLayout.startsWith("dropdown")) ? React32.createElement(
4308
+ { "data-animated-month": props.animate ? "true" : void 0, className: classNames[UI.Month], style: styles == null ? void 0 : styles[UI.Month], key: displayIndex, displayIndex, calendarMonth },
4309
+ React32.createElement(components.MonthCaption, { "data-animated-caption": props.animate ? "true" : void 0, className: classNames[UI.MonthCaption], style: styles == null ? void 0 : styles[UI.MonthCaption], calendarMonth, displayIndex }, (captionLayout == null ? void 0 : captionLayout.startsWith("dropdown")) ? React32.createElement(
4144
4310
  components.DropdownNav,
4145
4311
  { className: classNames[UI.Dropdowns], style: styles == null ? void 0 : styles[UI.Dropdowns] },
4146
- captionLayout === "dropdown" || captionLayout === "dropdown-months" ? React32.createElement(components.MonthsDropdown, { className: classNames[UI.MonthsDropdown], "aria-label": labelMonthDropdown2(), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date), options: dropdownMonths, style: styles == null ? void 0 : styles[UI.Dropdown], value: dateLib.getMonth(calendarMonth.date) }) : React32.createElement("span", { role: "status", "aria-live": "polite" }, formatMonthDropdown2(calendarMonth.date, dateLib)),
4147
- captionLayout === "dropdown" || captionLayout === "dropdown-years" ? React32.createElement(components.YearsDropdown, { className: classNames[UI.YearsDropdown], "aria-label": labelYearDropdown2(dateLib.options), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date), options: dropdownYears, style: styles == null ? void 0 : styles[UI.Dropdown], value: dateLib.getYear(calendarMonth.date) }) : React32.createElement("span", { role: "status", "aria-live": "polite" }, formatYearDropdown2(calendarMonth.date, dateLib))
4312
+ captionLayout === "dropdown" || captionLayout === "dropdown-months" ? React32.createElement(components.MonthsDropdown, { className: classNames[UI.MonthsDropdown], "aria-label": labelMonthDropdown2(), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleMonthChange(calendarMonth.date), options: dropdownMonths, style: styles == null ? void 0 : styles[UI.Dropdown], value: dateLib.getMonth(calendarMonth.date) }) : React32.createElement("span", null, formatMonthDropdown2(calendarMonth.date, dateLib)),
4313
+ captionLayout === "dropdown" || captionLayout === "dropdown-years" ? React32.createElement(components.YearsDropdown, { className: classNames[UI.YearsDropdown], "aria-label": labelYearDropdown2(dateLib.options), classNames, components, disabled: Boolean(props.disableNavigation), onChange: handleYearChange(calendarMonth.date), options: dropdownYears, style: styles == null ? void 0 : styles[UI.Dropdown], value: dateLib.getYear(calendarMonth.date) }) : React32.createElement("span", null, formatYearDropdown2(calendarMonth.date, dateLib)),
4314
+ React32.createElement("span", { role: "status", "aria-live": "polite", style: {
4315
+ border: 0,
4316
+ clip: "rect(0 0 0 0)",
4317
+ height: "1px",
4318
+ margin: "-1px",
4319
+ overflow: "hidden",
4320
+ padding: 0,
4321
+ position: "absolute",
4322
+ width: "1px",
4323
+ whiteSpace: "nowrap",
4324
+ wordWrap: "normal"
4325
+ } }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))
4148
4326
  ) : React32.createElement(components.CaptionLabel, { className: classNames[UI.CaptionLabel], role: "status", "aria-live": "polite" }, formatCaption2(calendarMonth.date, dateLib.options, dateLib))),
4149
4327
  React32.createElement(
4150
4328
  components.MonthGrid,
4151
4329
  { role: "grid", "aria-multiselectable": mode === "multiple" || mode === "range", "aria-label": labelGrid2(calendarMonth.date, dateLib.options, dateLib) || void 0, className: classNames[UI.MonthGrid], style: styles == null ? void 0 : styles[UI.MonthGrid] },
4152
4330
  !props.hideWeekdays && React32.createElement(
4153
4331
  components.Weekdays,
4154
- { className: classNames[UI.Weekdays], style: styles == null ? void 0 : styles[UI.Weekdays] },
4332
+ { "data-animated-weekdays": props.animate ? "true" : void 0, className: classNames[UI.Weekdays], style: styles == null ? void 0 : styles[UI.Weekdays] },
4155
4333
  showWeekNumber && React32.createElement(components.WeekNumberHeader, { "aria-label": labelWeekNumberHeader2(dateLib.options), className: classNames[UI.WeekNumberHeader], style: styles == null ? void 0 : styles[UI.WeekNumberHeader], scope: "col" }, formatWeekNumberHeader2()),
4156
4334
  weekdays.map((weekday, i) => React32.createElement(components.Weekday, { "aria-label": labelWeekday2(weekday, dateLib.options, dateLib), className: classNames[UI.Weekday], key: i, style: styles == null ? void 0 : styles[UI.Weekday], scope: "col" }, formatWeekdayName2(weekday, dateLib.options, dateLib)))
4157
4335
  ),
4158
- React32.createElement(components.Weeks, { className: classNames[UI.Weeks], style: styles == null ? void 0 : styles[UI.Weeks] }, calendarMonth.weeks.map((week, weekIndex) => {
4336
+ React32.createElement(components.Weeks, { "data-animated-weeks": props.animate ? "true" : void 0, className: classNames[UI.Weeks], style: styles == null ? void 0 : styles[UI.Weeks] }, calendarMonth.weeks.map((week, weekIndex) => {
4159
4337
  return React32.createElement(
4160
4338
  components.Week,
4161
4339
  { className: classNames[UI.Week], key: week.weekNumber, style: styles == null ? void 0 : styles[UI.Week], week },
@@ -4166,7 +4344,7 @@ function DayPicker(props) {
4166
4344
  const { date } = day;
4167
4345
  const modifiers = getModifiers(day);
4168
4346
  modifiers[DayFlag.focused] = !modifiers.hidden && Boolean(focused == null ? void 0 : focused.isEqualTo(day));
4169
- modifiers[SelectionState.selected] = !modifiers.disabled && ((isSelected == null ? void 0 : isSelected(date)) || modifiers.selected);
4347
+ modifiers[SelectionState.selected] = (isSelected == null ? void 0 : isSelected(date)) || modifiers.selected;
4170
4348
  if (isDateRange(selectedValue)) {
4171
4349
  const { from, to } = selectedValue;
4172
4350
  modifiers[SelectionState.range_start] = Boolean(from && to && dateLib.isSameDay(date, from));
@@ -5195,327 +5373,40 @@ var DropdownMenuShortcut = (_a) => {
5195
5373
  };
5196
5374
  DropdownMenuShortcut.displayName = "DropdownMenuShortcut";
5197
5375
 
5198
- // src/components/form.tsx
5199
- import { Slot as Slot3 } from "@radix-ui/react-slot";
5200
- import * as React43 from "react";
5201
-
5202
- // node_modules/react-hook-form/dist/index.esm.mjs
5203
- import React41 from "react";
5204
- var isCheckBoxInput = (element) => element.type === "checkbox";
5205
- var isDateObject = (value) => value instanceof Date;
5206
- var isNullOrUndefined = (value) => value == null;
5207
- var isObjectType = (value) => typeof value === "object";
5208
- var isObject = (value) => !isNullOrUndefined(value) && !Array.isArray(value) && isObjectType(value) && !isDateObject(value);
5209
- var getEventValue = (event) => isObject(event) && event.target ? isCheckBoxInput(event.target) ? event.target.checked : event.target.value : event;
5210
- var getNodeParentName = (name) => name.substring(0, name.search(/\.\d+(\.|$)/)) || name;
5211
- var isNameInFieldArray = (names, name) => names.has(getNodeParentName(name));
5212
- var isPlainObject = (tempObject) => {
5213
- const prototypeCopy = tempObject.constructor && tempObject.constructor.prototype;
5214
- return isObject(prototypeCopy) && prototypeCopy.hasOwnProperty("isPrototypeOf");
5215
- };
5216
- var isWeb = typeof window !== "undefined" && typeof window.HTMLElement !== "undefined" && typeof document !== "undefined";
5217
- function cloneObject(data) {
5218
- let copy;
5219
- const isArray = Array.isArray(data);
5220
- const isFileListInstance = typeof FileList !== "undefined" ? data instanceof FileList : false;
5221
- if (data instanceof Date) {
5222
- copy = new Date(data);
5223
- } else if (data instanceof Set) {
5224
- copy = new Set(data);
5225
- } else if (!(isWeb && (data instanceof Blob || isFileListInstance)) && (isArray || isObject(data))) {
5226
- copy = isArray ? [] : {};
5227
- if (!isArray && !isPlainObject(data)) {
5228
- copy = data;
5229
- } else {
5230
- for (const key in data) {
5231
- if (data.hasOwnProperty(key)) {
5232
- copy[key] = cloneObject(data[key]);
5233
- }
5234
- }
5235
- }
5236
- } else {
5237
- return data;
5238
- }
5239
- return copy;
5240
- }
5241
- var compact = (value) => Array.isArray(value) ? value.filter(Boolean) : [];
5242
- var isUndefined = (val) => val === void 0;
5243
- var get = (object, path, defaultValue) => {
5244
- if (!path || !isObject(object)) {
5245
- return defaultValue;
5246
- }
5247
- const result = compact(path.split(/[,[\].]+?/)).reduce((result2, key) => isNullOrUndefined(result2) ? result2 : result2[key], object);
5248
- return isUndefined(result) || result === object ? isUndefined(object[path]) ? defaultValue : object[path] : result;
5249
- };
5250
- var isBoolean = (value) => typeof value === "boolean";
5251
- var isKey = (value) => /^\w*$/.test(value);
5252
- var stringToPath = (input) => compact(input.replace(/["|']|\]/g, "").split(/\.|\[/));
5253
- var set = (object, path, value) => {
5254
- let index = -1;
5255
- const tempPath = isKey(path) ? [path] : stringToPath(path);
5256
- const length = tempPath.length;
5257
- const lastIndex = length - 1;
5258
- while (++index < length) {
5259
- const key = tempPath[index];
5260
- let newValue = value;
5261
- if (index !== lastIndex) {
5262
- const objValue = object[key];
5263
- newValue = isObject(objValue) || Array.isArray(objValue) ? objValue : !isNaN(+tempPath[index + 1]) ? [] : {};
5264
- }
5265
- if (key === "__proto__" || key === "constructor" || key === "prototype") {
5266
- return;
5267
- }
5268
- object[key] = newValue;
5269
- object = object[key];
5270
- }
5271
- return object;
5272
- };
5273
- var EVENTS = {
5274
- BLUR: "blur",
5275
- FOCUS_OUT: "focusout",
5276
- CHANGE: "change"
5277
- };
5278
- var VALIDATION_MODE = {
5279
- onBlur: "onBlur",
5280
- onChange: "onChange",
5281
- onSubmit: "onSubmit",
5282
- onTouched: "onTouched",
5283
- all: "all"
5284
- };
5285
- var HookFormContext = React41.createContext(null);
5286
- var useFormContext = () => React41.useContext(HookFormContext);
5287
- var FormProvider = (props) => {
5288
- const _a = props, { children } = _a, data = __objRest(_a, ["children"]);
5289
- return React41.createElement(HookFormContext.Provider, { value: data }, children);
5290
- };
5291
- var getProxyFormState = (formState, control, localProxyFormState, isRoot = true) => {
5292
- const result = {
5293
- defaultValues: control._defaultValues
5294
- };
5295
- for (const key in formState) {
5296
- Object.defineProperty(result, key, {
5297
- get: () => {
5298
- const _key = key;
5299
- if (control._proxyFormState[_key] !== VALIDATION_MODE.all) {
5300
- control._proxyFormState[_key] = !isRoot || VALIDATION_MODE.all;
5301
- }
5302
- localProxyFormState && (localProxyFormState[_key] = true);
5303
- return formState[_key];
5304
- }
5305
- });
5306
- }
5307
- return result;
5308
- };
5309
- var isEmptyObject = (value) => isObject(value) && !Object.keys(value).length;
5310
- var shouldRenderFormState = (formStateData, _proxyFormState, updateFormState, isRoot) => {
5311
- updateFormState(formStateData);
5312
- const _a = formStateData, { name } = _a, formState = __objRest(_a, ["name"]);
5313
- return isEmptyObject(formState) || Object.keys(formState).length >= Object.keys(_proxyFormState).length || Object.keys(formState).find((key) => _proxyFormState[key] === (!isRoot || VALIDATION_MODE.all));
5314
- };
5315
- var convertToArrayPayload = (value) => Array.isArray(value) ? value : [value];
5316
- var shouldSubscribeByName = (name, signalName, exact) => !name || !signalName || name === signalName || convertToArrayPayload(name).some((currentName) => currentName && (exact ? currentName === signalName : currentName.startsWith(signalName) || signalName.startsWith(currentName)));
5317
- function useSubscribe(props) {
5318
- const _props = React41.useRef(props);
5319
- _props.current = props;
5320
- React41.useEffect(() => {
5321
- const subscription = !props.disabled && _props.current.subject && _props.current.subject.subscribe({
5322
- next: _props.current.next
5323
- });
5324
- return () => {
5325
- subscription && subscription.unsubscribe();
5326
- };
5327
- }, [props.disabled]);
5328
- }
5329
- function useFormState(props) {
5330
- const methods = useFormContext();
5331
- const { control = methods.control, disabled, name, exact } = props || {};
5332
- const [formState, updateFormState] = React41.useState(control._formState);
5333
- const _mounted = React41.useRef(true);
5334
- const _localProxyFormState = React41.useRef({
5335
- isDirty: false,
5336
- isLoading: false,
5337
- dirtyFields: false,
5338
- touchedFields: false,
5339
- validatingFields: false,
5340
- isValidating: false,
5341
- isValid: false,
5342
- errors: false
5343
- });
5344
- const _name = React41.useRef(name);
5345
- _name.current = name;
5346
- useSubscribe({
5347
- disabled,
5348
- next: (value) => _mounted.current && shouldSubscribeByName(_name.current, value.name, exact) && shouldRenderFormState(value, _localProxyFormState.current, control._updateFormState) && updateFormState(__spreadValues(__spreadValues({}, control._formState), value)),
5349
- subject: control._subjects.state
5350
- });
5351
- React41.useEffect(() => {
5352
- _mounted.current = true;
5353
- _localProxyFormState.current.isValid && control._updateValid(true);
5354
- return () => {
5355
- _mounted.current = false;
5356
- };
5357
- }, [control]);
5358
- return React41.useMemo(() => getProxyFormState(formState, control, _localProxyFormState.current, false), [formState, control]);
5359
- }
5360
- var isString = (value) => typeof value === "string";
5361
- var generateWatchOutput = (names, _names, formValues, isGlobal, defaultValue) => {
5362
- if (isString(names)) {
5363
- isGlobal && _names.watch.add(names);
5364
- return get(formValues, names, defaultValue);
5365
- }
5366
- if (Array.isArray(names)) {
5367
- return names.map((fieldName) => (isGlobal && _names.watch.add(fieldName), get(formValues, fieldName)));
5368
- }
5369
- isGlobal && (_names.watchAll = true);
5370
- return formValues;
5371
- };
5372
- function useWatch(props) {
5373
- const methods = useFormContext();
5374
- const { control = methods.control, name, defaultValue, disabled, exact } = props || {};
5375
- const _name = React41.useRef(name);
5376
- _name.current = name;
5377
- useSubscribe({
5378
- disabled,
5379
- subject: control._subjects.values,
5380
- next: (formState) => {
5381
- if (shouldSubscribeByName(_name.current, formState.name, exact)) {
5382
- updateValue(cloneObject(generateWatchOutput(_name.current, control._names, formState.values || control._formValues, false, defaultValue)));
5383
- }
5384
- }
5385
- });
5386
- const [value, updateValue] = React41.useState(control._getWatch(name, defaultValue));
5387
- React41.useEffect(() => control._removeUnmounted());
5388
- return value;
5389
- }
5390
- function useController(props) {
5391
- const methods = useFormContext();
5392
- const { name, disabled, control = methods.control, shouldUnregister } = props;
5393
- const isArrayField = isNameInFieldArray(control._names.array, name);
5394
- const value = useWatch({
5395
- control,
5396
- name,
5397
- defaultValue: get(control._formValues, name, get(control._defaultValues, name, props.defaultValue)),
5398
- exact: true
5399
- });
5400
- const formState = useFormState({
5401
- control,
5402
- name,
5403
- exact: true
5404
- });
5405
- const _registerProps = React41.useRef(control.register(name, __spreadValues(__spreadProps(__spreadValues({}, props.rules), {
5406
- value
5407
- }), isBoolean(props.disabled) ? { disabled: props.disabled } : {})));
5408
- const fieldState = React41.useMemo(() => Object.defineProperties({}, {
5409
- invalid: {
5410
- enumerable: true,
5411
- get: () => !!get(formState.errors, name)
5412
- },
5413
- isDirty: {
5414
- enumerable: true,
5415
- get: () => !!get(formState.dirtyFields, name)
5416
- },
5417
- isTouched: {
5418
- enumerable: true,
5419
- get: () => !!get(formState.touchedFields, name)
5420
- },
5421
- isValidating: {
5422
- enumerable: true,
5423
- get: () => !!get(formState.validatingFields, name)
5424
- },
5425
- error: {
5426
- enumerable: true,
5427
- get: () => get(formState.errors, name)
5428
- }
5429
- }), [formState, name]);
5430
- const field = React41.useMemo(() => __spreadProps(__spreadValues({
5431
- name,
5432
- value
5433
- }, isBoolean(disabled) || formState.disabled ? { disabled: formState.disabled || disabled } : {}), {
5434
- onChange: (event) => _registerProps.current.onChange({
5435
- target: {
5436
- value: getEventValue(event),
5437
- name
5438
- },
5439
- type: EVENTS.CHANGE
5440
- }),
5441
- onBlur: () => _registerProps.current.onBlur({
5442
- target: {
5443
- value: get(control._formValues, name),
5444
- name
5445
- },
5446
- type: EVENTS.BLUR
5447
- }),
5448
- ref: (elm) => {
5449
- const field2 = get(control._fields, name);
5450
- if (field2 && elm) {
5451
- field2._f.ref = {
5452
- focus: () => elm.focus(),
5453
- select: () => elm.select(),
5454
- setCustomValidity: (message2) => elm.setCustomValidity(message2),
5455
- reportValidity: () => elm.reportValidity()
5456
- };
5457
- }
5458
- }
5459
- }), [
5460
- name,
5461
- control._formValues,
5462
- disabled,
5463
- formState.disabled,
5464
- value,
5465
- control._fields
5466
- ]);
5467
- React41.useEffect(() => {
5468
- const _shouldUnregisterField = control._options.shouldUnregister || shouldUnregister;
5469
- const updateMounted = (name2, value2) => {
5470
- const field2 = get(control._fields, name2);
5471
- if (field2 && field2._f) {
5472
- field2._f.mount = value2;
5473
- }
5474
- };
5475
- updateMounted(name, true);
5476
- if (_shouldUnregisterField) {
5477
- const value2 = cloneObject(get(control._options.defaultValues, name));
5478
- set(control._defaultValues, name, value2);
5479
- if (isUndefined(get(control._formValues, name))) {
5480
- set(control._formValues, name, value2);
5481
- }
5482
- }
5483
- !isArrayField && control.register(name);
5484
- return () => {
5485
- (isArrayField ? _shouldUnregisterField && !control._state.action : _shouldUnregisterField) ? control.unregister(name) : updateMounted(name, false);
5486
- };
5487
- }, [name, control, isArrayField, shouldUnregister]);
5488
- React41.useEffect(() => {
5489
- control._updateDisabledField({
5490
- disabled,
5491
- fields: control._fields,
5492
- name
5493
- });
5494
- }, [disabled, name, control]);
5495
- return React41.useMemo(() => ({
5496
- field,
5497
- formState,
5498
- fieldState
5499
- }), [field, formState, fieldState]);
5500
- }
5501
- var Controller = (props) => props.render(useController(props));
5502
- var defaultOptions2 = {
5503
- mode: VALIDATION_MODE.onSubmit,
5504
- reValidateMode: VALIDATION_MODE.onChange,
5505
- shouldFocusError: true
5376
+ // src/components/Form/form.tsx
5377
+ import {
5378
+ FormProvider
5379
+ } from "react-hook-form";
5380
+ import { jsx as jsx16 } from "react/jsx-runtime";
5381
+ var Form = ({
5382
+ children,
5383
+ methods,
5384
+ onSubmit = () => {
5385
+ },
5386
+ onError,
5387
+ formProps = {}
5388
+ }) => {
5389
+ return /* @__PURE__ */ jsx16(FormProvider, __spreadProps(__spreadValues({}, methods), { children: /* @__PURE__ */ jsx16("form", __spreadProps(__spreadValues({ onSubmit: methods.handleSubmit(onSubmit, onError) }, formProps), { children })) }));
5506
5390
  };
5507
5391
 
5508
- // src/components/label.tsx
5392
+ // src/components/Form/form-field.tsx
5393
+ import {
5394
+ Controller,
5395
+ useFormContext
5396
+ } from "react-hook-form";
5397
+ import React43 from "react";
5398
+
5399
+ // src/components/Label/label.tsx
5509
5400
  import * as LabelPrimitive from "@radix-ui/react-label";
5510
5401
  import { cva as cva4 } from "class-variance-authority";
5511
- import * as React42 from "react";
5512
- import { jsx as jsx16 } from "react/jsx-runtime";
5402
+ import * as React41 from "react";
5403
+ import { jsx as jsx17 } from "react/jsx-runtime";
5513
5404
  var labelVariants = cva4(
5514
5405
  "text-sm font-medium leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70"
5515
5406
  );
5516
- var Label3 = React42.forwardRef((_a, ref) => {
5407
+ var Label3 = React41.forwardRef((_a, ref) => {
5517
5408
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5518
- return /* @__PURE__ */ jsx16(
5409
+ return /* @__PURE__ */ jsx17(
5519
5410
  LabelPrimitive.Root,
5520
5411
  __spreadValues({
5521
5412
  ref,
@@ -5525,32 +5416,99 @@ var Label3 = React42.forwardRef((_a, ref) => {
5525
5416
  });
5526
5417
  Label3.displayName = LabelPrimitive.Root.displayName;
5527
5418
 
5528
- // src/components/form.tsx
5529
- import { jsx as jsx17 } from "react/jsx-runtime";
5530
- var Form = FormProvider;
5419
+ // src/components/Form/form-field.tsx
5420
+ import { Slot as Slot3 } from "@radix-ui/react-slot";
5421
+
5422
+ // src/components/input.tsx
5423
+ import * as React42 from "react";
5424
+ import { jsx as jsx18 } from "react/jsx-runtime";
5425
+ var Input = React42.forwardRef(
5426
+ (_a, ref) => {
5427
+ var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
5428
+ return /* @__PURE__ */ jsx18(
5429
+ "input",
5430
+ __spreadValues({
5431
+ type,
5432
+ className: cn(
5433
+ "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
5434
+ className
5435
+ ),
5436
+ ref
5437
+ }, props)
5438
+ );
5439
+ }
5440
+ );
5441
+ Input.displayName = "Input";
5442
+
5443
+ // src/components/Form/form-field.tsx
5444
+ import { jsx as jsx19, jsxs as jsxs9 } from "react/jsx-runtime";
5531
5445
  var FormFieldContext = React43.createContext(
5532
- {}
5446
+ null
5533
5447
  );
5534
5448
  var FormField = (_a) => {
5535
- var props = __objRest(_a, []);
5536
- return /* @__PURE__ */ jsx17(FormFieldContext.Provider, { value: { name: props.name }, children: /* @__PURE__ */ jsx17(Controller, __spreadValues({}, props)) });
5537
- };
5538
- var useFormField = () => {
5539
- const fieldContext = React43.useContext(FormFieldContext);
5540
- const itemContext = React43.useContext(FormItemContext);
5541
- const { getFieldState, formState } = useFormContext();
5542
- const fieldState = getFieldState(fieldContext.name, formState);
5543
- if (!fieldContext) {
5544
- throw new Error("useFormField should be used within <FormField>");
5545
- }
5546
- const { id } = itemContext;
5547
- return __spreadValues({
5548
- id,
5549
- name: fieldContext.name,
5550
- formItemId: `${id}-form-item`,
5551
- formDescriptionId: `${id}-form-item-description`,
5552
- formMessageId: `${id}-form-item-message`
5553
- }, fieldState);
5449
+ var _b = _a, {
5450
+ name,
5451
+ control,
5452
+ label,
5453
+ placeholder,
5454
+ required,
5455
+ className = "px-4 py-6 shadow-inner drop-shadow-xl",
5456
+ classNameLabel,
5457
+ classNameMessage,
5458
+ classNameRequired,
5459
+ rules,
5460
+ shouldUnregister,
5461
+ defaultValue,
5462
+ onChange
5463
+ } = _b, inputProps = __objRest(_b, [
5464
+ "name",
5465
+ "control",
5466
+ "label",
5467
+ "placeholder",
5468
+ "required",
5469
+ "className",
5470
+ "classNameLabel",
5471
+ "classNameMessage",
5472
+ "classNameRequired",
5473
+ "rules",
5474
+ "shouldUnregister",
5475
+ "defaultValue",
5476
+ "onChange"
5477
+ ]);
5478
+ var _a2;
5479
+ const {
5480
+ formState: { errors }
5481
+ } = useFormContext();
5482
+ const fieldError = (_a2 = errors[name]) == null ? void 0 : _a2.message;
5483
+ return /* @__PURE__ */ jsx19(FormFieldContext.Provider, { value: { name }, children: /* @__PURE__ */ jsx19(
5484
+ Controller,
5485
+ {
5486
+ control,
5487
+ name,
5488
+ rules,
5489
+ shouldUnregister,
5490
+ defaultValue,
5491
+ render: ({ field }) => /* @__PURE__ */ jsxs9(FormItem, { children: [
5492
+ label && /* @__PURE__ */ jsxs9(FormLabel, { className: classNameLabel, children: [
5493
+ label,
5494
+ required && /* @__PURE__ */ jsx19("span", { className: cn("text-red-500", classNameRequired), children: "*" })
5495
+ ] }),
5496
+ /* @__PURE__ */ jsx19(FormControl, { children: /* @__PURE__ */ jsx19(
5497
+ Input,
5498
+ __spreadProps(__spreadValues(__spreadValues({}, field), inputProps), {
5499
+ onChange: (e) => {
5500
+ field.onChange(e);
5501
+ onChange == null ? void 0 : onChange(e.target.value);
5502
+ },
5503
+ placeholder,
5504
+ required,
5505
+ className
5506
+ })
5507
+ ) }),
5508
+ fieldError && /* @__PURE__ */ jsx19(FormMessage, { className: classNameMessage, children: fieldError })
5509
+ ] })
5510
+ }
5511
+ ) });
5554
5512
  };
5555
5513
  var FormItemContext = React43.createContext(
5556
5514
  {}
@@ -5558,13 +5516,13 @@ var FormItemContext = React43.createContext(
5558
5516
  var FormItem = React43.forwardRef((_a, ref) => {
5559
5517
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5560
5518
  const id = React43.useId();
5561
- return /* @__PURE__ */ jsx17(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx17("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
5519
+ return /* @__PURE__ */ jsx19(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ jsx19("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
5562
5520
  });
5563
5521
  FormItem.displayName = "FormItem";
5564
5522
  var FormLabel = React43.forwardRef((_a, ref) => {
5565
5523
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5566
5524
  const { error, formItemId } = useFormField();
5567
- return /* @__PURE__ */ jsx17(
5525
+ return /* @__PURE__ */ jsx19(
5568
5526
  Label3,
5569
5527
  __spreadValues({
5570
5528
  ref,
@@ -5574,10 +5532,37 @@ var FormLabel = React43.forwardRef((_a, ref) => {
5574
5532
  );
5575
5533
  });
5576
5534
  FormLabel.displayName = "FormLabel";
5535
+ var useFormField = () => {
5536
+ const fieldContext = React43.useContext(FormFieldContext);
5537
+ const itemContext = React43.useContext(FormItemContext);
5538
+ const { getFieldState, formState } = useFormContext();
5539
+ if (!fieldContext) {
5540
+ const { id: id2 } = itemContext;
5541
+ return {
5542
+ id: itemContext.id,
5543
+ formItemId: `${id2}-form-item`,
5544
+ formDescriptionId: `${id2}-form-item-description`,
5545
+ formMessageId: `${id2}-form-item-message`,
5546
+ error: null
5547
+ };
5548
+ }
5549
+ const fieldState = getFieldState(fieldContext.name, formState);
5550
+ if (!fieldContext) {
5551
+ throw new Error("useFormField should be used within <FormField>");
5552
+ }
5553
+ const { id } = itemContext;
5554
+ return __spreadValues({
5555
+ id,
5556
+ name: fieldContext.name,
5557
+ formItemId: `${id}-form-item`,
5558
+ formDescriptionId: `${id}-form-item-description`,
5559
+ formMessageId: `${id}-form-item-message`
5560
+ }, fieldState);
5561
+ };
5577
5562
  var FormControl = React43.forwardRef((_a, ref) => {
5578
5563
  var props = __objRest(_a, []);
5579
5564
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
5580
- return /* @__PURE__ */ jsx17(
5565
+ return /* @__PURE__ */ jsx19(
5581
5566
  Slot3,
5582
5567
  __spreadValues({
5583
5568
  ref,
@@ -5591,7 +5576,7 @@ FormControl.displayName = "FormControl";
5591
5576
  var FormDescription = React43.forwardRef((_a, ref) => {
5592
5577
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5593
5578
  const { formDescriptionId } = useFormField();
5594
- return /* @__PURE__ */ jsx17(
5579
+ return /* @__PURE__ */ jsx19(
5595
5580
  "p",
5596
5581
  __spreadValues({
5597
5582
  ref,
@@ -5608,7 +5593,7 @@ var FormMessage = React43.forwardRef((_a, ref) => {
5608
5593
  if (!body) {
5609
5594
  return null;
5610
5595
  }
5611
- return /* @__PURE__ */ jsx17(
5596
+ return /* @__PURE__ */ jsx19(
5612
5597
  "p",
5613
5598
  __spreadProps(__spreadValues({
5614
5599
  ref,
@@ -5624,12 +5609,12 @@ FormMessage.displayName = "FormMessage";
5624
5609
  // src/components/hover-card.tsx
5625
5610
  import * as HoverCardPrimitive from "@radix-ui/react-hover-card";
5626
5611
  import * as React44 from "react";
5627
- import { jsx as jsx18 } from "react/jsx-runtime";
5612
+ import { jsx as jsx20 } from "react/jsx-runtime";
5628
5613
  var HoverCard = HoverCardPrimitive.Root;
5629
5614
  var HoverCardTrigger = HoverCardPrimitive.Trigger;
5630
5615
  var HoverCardContent = React44.forwardRef((_a, ref) => {
5631
5616
  var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
5632
- return /* @__PURE__ */ jsx18(
5617
+ return /* @__PURE__ */ jsx20(
5633
5618
  HoverCardPrimitive.Content,
5634
5619
  __spreadValues({
5635
5620
  ref,
@@ -5706,35 +5691,14 @@ var IconsApp = __spreadValues({
5706
5691
  }, icon);
5707
5692
  var Icons = IconsApp;
5708
5693
 
5709
- // src/components/input.tsx
5694
+ // src/components/input-otp.tsx
5695
+ import { DashIcon } from "@radix-ui/react-icons";
5696
+ import { OTPInput, OTPInputContext } from "input-otp";
5710
5697
  import * as React45 from "react";
5711
- import { jsx as jsx19 } from "react/jsx-runtime";
5712
- var Input = React45.forwardRef(
5713
- (_a, ref) => {
5714
- var _b = _a, { className, type } = _b, props = __objRest(_b, ["className", "type"]);
5715
- return /* @__PURE__ */ jsx19(
5716
- "input",
5717
- __spreadValues({
5718
- type,
5719
- className: cn(
5720
- "flex h-9 w-full rounded-md border border-input bg-transparent px-3 py-1 text-sm shadow-sm transition-colors file:border-0 file:bg-transparent file:text-sm file:font-medium placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50",
5721
- className
5722
- ),
5723
- ref
5724
- }, props)
5725
- );
5726
- }
5727
- );
5728
- Input.displayName = "Input";
5729
-
5730
- // src/components/input-otp.tsx
5731
- import { DashIcon } from "@radix-ui/react-icons";
5732
- import { OTPInput, OTPInputContext } from "input-otp";
5733
- import * as React46 from "react";
5734
- import { jsx as jsx20, jsxs as jsxs9 } from "react/jsx-runtime";
5735
- var InputOTP = React46.forwardRef((_a, ref) => {
5698
+ import { jsx as jsx21, jsxs as jsxs10 } from "react/jsx-runtime";
5699
+ var InputOTP = React45.forwardRef((_a, ref) => {
5736
5700
  var _b = _a, { className, containerClassName } = _b, props = __objRest(_b, ["className", "containerClassName"]);
5737
- return /* @__PURE__ */ jsx20(
5701
+ return /* @__PURE__ */ jsx21(
5738
5702
  OTPInput,
5739
5703
  __spreadValues({
5740
5704
  ref,
@@ -5747,16 +5711,16 @@ var InputOTP = React46.forwardRef((_a, ref) => {
5747
5711
  );
5748
5712
  });
5749
5713
  InputOTP.displayName = "InputOTP";
5750
- var InputOTPGroup = React46.forwardRef((_a, ref) => {
5714
+ var InputOTPGroup = React45.forwardRef((_a, ref) => {
5751
5715
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5752
- return /* @__PURE__ */ jsx20("div", __spreadValues({ ref, className: cn("flex items-center", className) }, props));
5716
+ return /* @__PURE__ */ jsx21("div", __spreadValues({ ref, className: cn("flex items-center", className) }, props));
5753
5717
  });
5754
5718
  InputOTPGroup.displayName = "InputOTPGroup";
5755
- var InputOTPSlot = React46.forwardRef((_a, ref) => {
5719
+ var InputOTPSlot = React45.forwardRef((_a, ref) => {
5756
5720
  var _b = _a, { index, className } = _b, props = __objRest(_b, ["index", "className"]);
5757
- const inputOTPContext = React46.useContext(OTPInputContext);
5721
+ const inputOTPContext = React45.useContext(OTPInputContext);
5758
5722
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
5759
- return /* @__PURE__ */ jsxs9(
5723
+ return /* @__PURE__ */ jsxs10(
5760
5724
  "div",
5761
5725
  __spreadProps(__spreadValues({
5762
5726
  ref,
@@ -5768,15 +5732,15 @@ var InputOTPSlot = React46.forwardRef((_a, ref) => {
5768
5732
  }, props), {
5769
5733
  children: [
5770
5734
  char,
5771
- hasFakeCaret && /* @__PURE__ */ jsx20("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx20("div", { className: "animate-caret-blink h-4 w-px bg-foreground duration-1000" }) })
5735
+ hasFakeCaret && /* @__PURE__ */ jsx21("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ jsx21("div", { className: "animate-caret-blink h-4 w-px bg-foreground duration-1000" }) })
5772
5736
  ]
5773
5737
  })
5774
5738
  );
5775
5739
  });
5776
5740
  InputOTPSlot.displayName = "InputOTPSlot";
5777
- var InputOTPSeparator = React46.forwardRef((_a, ref) => {
5741
+ var InputOTPSeparator = React45.forwardRef((_a, ref) => {
5778
5742
  var props = __objRest(_a, []);
5779
- return /* @__PURE__ */ jsx20("div", __spreadProps(__spreadValues({ ref, role: "separator" }, props), { children: /* @__PURE__ */ jsx20(DashIcon, {}) }));
5743
+ return /* @__PURE__ */ jsx21("div", __spreadProps(__spreadValues({ ref, role: "separator" }, props), { children: /* @__PURE__ */ jsx21(DashIcon, {}) }));
5780
5744
  });
5781
5745
  InputOTPSeparator.displayName = "InputOTPSeparator";
5782
5746
 
@@ -5787,16 +5751,16 @@ import {
5787
5751
  DotFilledIcon as DotFilledIcon3
5788
5752
  } from "@radix-ui/react-icons";
5789
5753
  import * as MenubarPrimitive from "@radix-ui/react-menubar";
5790
- import * as React47 from "react";
5791
- import { jsx as jsx21, jsxs as jsxs10 } from "react/jsx-runtime";
5754
+ import * as React46 from "react";
5755
+ import { jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
5792
5756
  var MenubarMenu = MenubarPrimitive.Menu;
5793
5757
  var MenubarGroup = MenubarPrimitive.Group;
5794
5758
  var MenubarPortal = MenubarPrimitive.Portal;
5795
5759
  var MenubarSub = MenubarPrimitive.Sub;
5796
5760
  var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
5797
- var Menubar = React47.forwardRef((_a, ref) => {
5761
+ var Menubar = React46.forwardRef((_a, ref) => {
5798
5762
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5799
- return /* @__PURE__ */ jsx21(
5763
+ return /* @__PURE__ */ jsx22(
5800
5764
  MenubarPrimitive.Root,
5801
5765
  __spreadValues({
5802
5766
  ref,
@@ -5808,9 +5772,9 @@ var Menubar = React47.forwardRef((_a, ref) => {
5808
5772
  );
5809
5773
  });
5810
5774
  Menubar.displayName = MenubarPrimitive.Root.displayName;
5811
- var MenubarTrigger = React47.forwardRef((_a, ref) => {
5775
+ var MenubarTrigger = React46.forwardRef((_a, ref) => {
5812
5776
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5813
- return /* @__PURE__ */ jsx21(
5777
+ return /* @__PURE__ */ jsx22(
5814
5778
  MenubarPrimitive.Trigger,
5815
5779
  __spreadValues({
5816
5780
  ref,
@@ -5822,9 +5786,9 @@ var MenubarTrigger = React47.forwardRef((_a, ref) => {
5822
5786
  );
5823
5787
  });
5824
5788
  MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
5825
- var MenubarSubTrigger = React47.forwardRef((_a, ref) => {
5789
+ var MenubarSubTrigger = React46.forwardRef((_a, ref) => {
5826
5790
  var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
5827
- return /* @__PURE__ */ jsxs10(
5791
+ return /* @__PURE__ */ jsxs11(
5828
5792
  MenubarPrimitive.SubTrigger,
5829
5793
  __spreadProps(__spreadValues({
5830
5794
  ref,
@@ -5836,15 +5800,15 @@ var MenubarSubTrigger = React47.forwardRef((_a, ref) => {
5836
5800
  }, props), {
5837
5801
  children: [
5838
5802
  children,
5839
- /* @__PURE__ */ jsx21(ChevronRightIcon4, { className: "ml-auto h-4 w-4" })
5803
+ /* @__PURE__ */ jsx22(ChevronRightIcon4, { className: "ml-auto h-4 w-4" })
5840
5804
  ]
5841
5805
  })
5842
5806
  );
5843
5807
  });
5844
5808
  MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
5845
- var MenubarSubContent = React47.forwardRef((_a, ref) => {
5809
+ var MenubarSubContent = React46.forwardRef((_a, ref) => {
5846
5810
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5847
- return /* @__PURE__ */ jsx21(
5811
+ return /* @__PURE__ */ jsx22(
5848
5812
  MenubarPrimitive.SubContent,
5849
5813
  __spreadValues({
5850
5814
  ref,
@@ -5856,10 +5820,10 @@ var MenubarSubContent = React47.forwardRef((_a, ref) => {
5856
5820
  );
5857
5821
  });
5858
5822
  MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
5859
- var MenubarContent = React47.forwardRef(
5823
+ var MenubarContent = React46.forwardRef(
5860
5824
  (_a, ref) => {
5861
5825
  var _b = _a, { className, align = "start", alignOffset = -4, sideOffset = 8 } = _b, props = __objRest(_b, ["className", "align", "alignOffset", "sideOffset"]);
5862
- return /* @__PURE__ */ jsx21(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx21(
5826
+ return /* @__PURE__ */ jsx22(MenubarPrimitive.Portal, { children: /* @__PURE__ */ jsx22(
5863
5827
  MenubarPrimitive.Content,
5864
5828
  __spreadValues({
5865
5829
  ref,
@@ -5875,9 +5839,9 @@ var MenubarContent = React47.forwardRef(
5875
5839
  }
5876
5840
  );
5877
5841
  MenubarContent.displayName = MenubarPrimitive.Content.displayName;
5878
- var MenubarItem = React47.forwardRef((_a, ref) => {
5842
+ var MenubarItem = React46.forwardRef((_a, ref) => {
5879
5843
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
5880
- return /* @__PURE__ */ jsx21(
5844
+ return /* @__PURE__ */ jsx22(
5881
5845
  MenubarPrimitive.Item,
5882
5846
  __spreadValues({
5883
5847
  ref,
@@ -5890,9 +5854,9 @@ var MenubarItem = React47.forwardRef((_a, ref) => {
5890
5854
  );
5891
5855
  });
5892
5856
  MenubarItem.displayName = MenubarPrimitive.Item.displayName;
5893
- var MenubarCheckboxItem = React47.forwardRef((_a, ref) => {
5857
+ var MenubarCheckboxItem = React46.forwardRef((_a, ref) => {
5894
5858
  var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
5895
- return /* @__PURE__ */ jsxs10(
5859
+ return /* @__PURE__ */ jsxs11(
5896
5860
  MenubarPrimitive.CheckboxItem,
5897
5861
  __spreadProps(__spreadValues({
5898
5862
  ref,
@@ -5903,16 +5867,16 @@ var MenubarCheckboxItem = React47.forwardRef((_a, ref) => {
5903
5867
  checked
5904
5868
  }, props), {
5905
5869
  children: [
5906
- /* @__PURE__ */ jsx21("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx21(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx21(CheckIcon4, { className: "h-4 w-4" }) }) }),
5870
+ /* @__PURE__ */ jsx22("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx22(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx22(CheckIcon4, { className: "h-4 w-4" }) }) }),
5907
5871
  children
5908
5872
  ]
5909
5873
  })
5910
5874
  );
5911
5875
  });
5912
5876
  MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
5913
- var MenubarRadioItem = React47.forwardRef((_a, ref) => {
5877
+ var MenubarRadioItem = React46.forwardRef((_a, ref) => {
5914
5878
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
5915
- return /* @__PURE__ */ jsxs10(
5879
+ return /* @__PURE__ */ jsxs11(
5916
5880
  MenubarPrimitive.RadioItem,
5917
5881
  __spreadProps(__spreadValues({
5918
5882
  ref,
@@ -5922,16 +5886,16 @@ var MenubarRadioItem = React47.forwardRef((_a, ref) => {
5922
5886
  )
5923
5887
  }, props), {
5924
5888
  children: [
5925
- /* @__PURE__ */ jsx21("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx21(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx21(DotFilledIcon3, { className: "h-4 w-4 fill-current" }) }) }),
5889
+ /* @__PURE__ */ jsx22("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx22(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx22(DotFilledIcon3, { className: "h-4 w-4 fill-current" }) }) }),
5926
5890
  children
5927
5891
  ]
5928
5892
  })
5929
5893
  );
5930
5894
  });
5931
5895
  MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
5932
- var MenubarLabel = React47.forwardRef((_a, ref) => {
5896
+ var MenubarLabel = React46.forwardRef((_a, ref) => {
5933
5897
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
5934
- return /* @__PURE__ */ jsx21(
5898
+ return /* @__PURE__ */ jsx22(
5935
5899
  MenubarPrimitive.Label,
5936
5900
  __spreadValues({
5937
5901
  ref,
@@ -5944,9 +5908,9 @@ var MenubarLabel = React47.forwardRef((_a, ref) => {
5944
5908
  );
5945
5909
  });
5946
5910
  MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
5947
- var MenubarSeparator = React47.forwardRef((_a, ref) => {
5911
+ var MenubarSeparator = React46.forwardRef((_a, ref) => {
5948
5912
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
5949
- return /* @__PURE__ */ jsx21(
5913
+ return /* @__PURE__ */ jsx22(
5950
5914
  MenubarPrimitive.Separator,
5951
5915
  __spreadValues({
5952
5916
  ref,
@@ -5961,7 +5925,7 @@ var MenubarShortcut = (_a) => {
5961
5925
  } = _b, props = __objRest(_b, [
5962
5926
  "className"
5963
5927
  ]);
5964
- return /* @__PURE__ */ jsx21(
5928
+ return /* @__PURE__ */ jsx22(
5965
5929
  "span",
5966
5930
  __spreadValues({
5967
5931
  className: cn(
@@ -5974,7 +5938,7 @@ var MenubarShortcut = (_a) => {
5974
5938
  MenubarShortcut.displayname = "MenubarShortcut";
5975
5939
 
5976
5940
  // src/components/modal.tsx
5977
- import { jsx as jsx22, jsxs as jsxs11 } from "react/jsx-runtime";
5941
+ import { jsx as jsx23, jsxs as jsxs12 } from "react/jsx-runtime";
5978
5942
  var Modal = ({
5979
5943
  title,
5980
5944
  description,
@@ -5988,12 +5952,12 @@ var Modal = ({
5988
5952
  onClose();
5989
5953
  }
5990
5954
  };
5991
- return /* @__PURE__ */ jsx22(Dialog, { open: isOpen, onOpenChange: onChange, children: /* @__PURE__ */ jsxs11(DialogContent, { className, children: [
5992
- /* @__PURE__ */ jsxs11(DialogHeader, { children: [
5993
- /* @__PURE__ */ jsx22(DialogTitle, { children: title }),
5994
- /* @__PURE__ */ jsx22(DialogDescription, { children: description })
5955
+ return /* @__PURE__ */ jsx23(Dialog, { open: isOpen, onOpenChange: onChange, children: /* @__PURE__ */ jsxs12(DialogContent, { className, children: [
5956
+ /* @__PURE__ */ jsxs12(DialogHeader, { children: [
5957
+ /* @__PURE__ */ jsx23(DialogTitle, { children: title }),
5958
+ /* @__PURE__ */ jsx23(DialogDescription, { children: description })
5995
5959
  ] }),
5996
- /* @__PURE__ */ jsx22("div", { children })
5960
+ /* @__PURE__ */ jsx23("div", { children })
5997
5961
  ] }) });
5998
5962
  };
5999
5963
 
@@ -6001,11 +5965,11 @@ var Modal = ({
6001
5965
  import { ChevronDownIcon as ChevronDownIcon2 } from "@radix-ui/react-icons";
6002
5966
  import * as NavigationMenuPrimitive from "@radix-ui/react-navigation-menu";
6003
5967
  import { cva as cva5 } from "class-variance-authority";
6004
- import * as React48 from "react";
6005
- import { jsx as jsx23, jsxs as jsxs12 } from "react/jsx-runtime";
6006
- var NavigationMenu = React48.forwardRef((_a, ref) => {
5968
+ import * as React47 from "react";
5969
+ import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
5970
+ var NavigationMenu = React47.forwardRef((_a, ref) => {
6007
5971
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6008
- return /* @__PURE__ */ jsxs12(
5972
+ return /* @__PURE__ */ jsxs13(
6009
5973
  NavigationMenuPrimitive.Root,
6010
5974
  __spreadProps(__spreadValues({
6011
5975
  ref,
@@ -6016,15 +5980,15 @@ var NavigationMenu = React48.forwardRef((_a, ref) => {
6016
5980
  }, props), {
6017
5981
  children: [
6018
5982
  children,
6019
- /* @__PURE__ */ jsx23(NavigationMenuViewport, {})
5983
+ /* @__PURE__ */ jsx24(NavigationMenuViewport, {})
6020
5984
  ]
6021
5985
  })
6022
5986
  );
6023
5987
  });
6024
5988
  NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
6025
- var NavigationMenuList = React48.forwardRef((_a, ref) => {
5989
+ var NavigationMenuList = React47.forwardRef((_a, ref) => {
6026
5990
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6027
- return /* @__PURE__ */ jsx23(
5991
+ return /* @__PURE__ */ jsx24(
6028
5992
  NavigationMenuPrimitive.List,
6029
5993
  __spreadValues({
6030
5994
  ref,
@@ -6040,9 +6004,9 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
6040
6004
  var navigationMenuTriggerStyle = cva5(
6041
6005
  "group inline-flex h-9 w-max items-center justify-center rounded-md bg-background px-4 py-2 text-sm font-medium transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground focus:outline-none disabled:pointer-events-none disabled:opacity-50 data-[active]:bg-accent/50 data-[state=open]:bg-accent/50"
6042
6006
  );
6043
- var NavigationMenuTrigger = React48.forwardRef((_a, ref) => {
6007
+ var NavigationMenuTrigger = React47.forwardRef((_a, ref) => {
6044
6008
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6045
- return /* @__PURE__ */ jsxs12(
6009
+ return /* @__PURE__ */ jsxs13(
6046
6010
  NavigationMenuPrimitive.Trigger,
6047
6011
  __spreadProps(__spreadValues({
6048
6012
  ref,
@@ -6051,7 +6015,7 @@ var NavigationMenuTrigger = React48.forwardRef((_a, ref) => {
6051
6015
  children: [
6052
6016
  children,
6053
6017
  " ",
6054
- /* @__PURE__ */ jsx23(
6018
+ /* @__PURE__ */ jsx24(
6055
6019
  ChevronDownIcon2,
6056
6020
  {
6057
6021
  className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
@@ -6063,9 +6027,9 @@ var NavigationMenuTrigger = React48.forwardRef((_a, ref) => {
6063
6027
  );
6064
6028
  });
6065
6029
  NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
6066
- var NavigationMenuContent = React48.forwardRef((_a, ref) => {
6030
+ var NavigationMenuContent = React47.forwardRef((_a, ref) => {
6067
6031
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6068
- return /* @__PURE__ */ jsx23(
6032
+ return /* @__PURE__ */ jsx24(
6069
6033
  NavigationMenuPrimitive.Content,
6070
6034
  __spreadValues({
6071
6035
  ref,
@@ -6078,9 +6042,9 @@ var NavigationMenuContent = React48.forwardRef((_a, ref) => {
6078
6042
  });
6079
6043
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
6080
6044
  var NavigationMenuLink = NavigationMenuPrimitive.Link;
6081
- var NavigationMenuViewport = React48.forwardRef((_a, ref) => {
6045
+ var NavigationMenuViewport = React47.forwardRef((_a, ref) => {
6082
6046
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6083
- return /* @__PURE__ */ jsx23("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx23(
6047
+ return /* @__PURE__ */ jsx24("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ jsx24(
6084
6048
  NavigationMenuPrimitive.Viewport,
6085
6049
  __spreadValues({
6086
6050
  className: cn(
@@ -6092,9 +6056,9 @@ var NavigationMenuViewport = React48.forwardRef((_a, ref) => {
6092
6056
  ) });
6093
6057
  });
6094
6058
  NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
6095
- var NavigationMenuIndicator = React48.forwardRef((_a, ref) => {
6059
+ var NavigationMenuIndicator = React47.forwardRef((_a, ref) => {
6096
6060
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6097
- return /* @__PURE__ */ jsx23(
6061
+ return /* @__PURE__ */ jsx24(
6098
6062
  NavigationMenuPrimitive.Indicator,
6099
6063
  __spreadProps(__spreadValues({
6100
6064
  ref,
@@ -6103,7 +6067,7 @@ var NavigationMenuIndicator = React48.forwardRef((_a, ref) => {
6103
6067
  className
6104
6068
  )
6105
6069
  }, props), {
6106
- children: /* @__PURE__ */ jsx23("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
6070
+ children: /* @__PURE__ */ jsx24("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
6107
6071
  })
6108
6072
  );
6109
6073
  });
@@ -6115,12 +6079,12 @@ import {
6115
6079
  ChevronRightIcon as ChevronRightIcon5,
6116
6080
  DotsHorizontalIcon as DotsHorizontalIcon2
6117
6081
  } from "@radix-ui/react-icons";
6118
- import * as React49 from "react";
6082
+ import * as React48 from "react";
6119
6083
  import { ChevronLeft as ChevronLeft2, ChevronRight as ChevronRight2 } from "lucide-react";
6120
- import { jsx as jsx24, jsxs as jsxs13 } from "react/jsx-runtime";
6084
+ import { jsx as jsx25, jsxs as jsxs14 } from "react/jsx-runtime";
6121
6085
  var Pagination = (_a) => {
6122
6086
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6123
- return /* @__PURE__ */ jsx24(
6087
+ return /* @__PURE__ */ jsx25(
6124
6088
  "nav",
6125
6089
  __spreadValues({
6126
6090
  role: "navigation",
@@ -6130,9 +6094,9 @@ var Pagination = (_a) => {
6130
6094
  );
6131
6095
  };
6132
6096
  Pagination.displayName = "Pagination";
6133
- var PaginationContent = React49.forwardRef((_a, ref) => {
6097
+ var PaginationContent = React48.forwardRef((_a, ref) => {
6134
6098
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6135
- return /* @__PURE__ */ jsx24(
6099
+ return /* @__PURE__ */ jsx25(
6136
6100
  "ul",
6137
6101
  __spreadValues({
6138
6102
  ref,
@@ -6141,9 +6105,9 @@ var PaginationContent = React49.forwardRef((_a, ref) => {
6141
6105
  );
6142
6106
  });
6143
6107
  PaginationContent.displayName = "PaginationContent";
6144
- var PaginationItem = React49.forwardRef((_a, ref) => {
6108
+ var PaginationItem = React48.forwardRef((_a, ref) => {
6145
6109
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6146
- return /* @__PURE__ */ jsx24("li", __spreadValues({ ref, className: cn("", className) }, props));
6110
+ return /* @__PURE__ */ jsx25("li", __spreadValues({ ref, className: cn("", className) }, props));
6147
6111
  });
6148
6112
  PaginationItem.displayName = "PaginationItem";
6149
6113
  var PaginationLink = (_a) => {
@@ -6156,7 +6120,7 @@ var PaginationLink = (_a) => {
6156
6120
  "isActive",
6157
6121
  "size"
6158
6122
  ]);
6159
- return /* @__PURE__ */ jsx24(
6123
+ return /* @__PURE__ */ jsx25(
6160
6124
  "a",
6161
6125
  __spreadValues({
6162
6126
  "aria-current": isActive ? "page" : void 0,
@@ -6177,7 +6141,7 @@ var PaginationPreviousLast = (_a) => {
6177
6141
  } = _b, props = __objRest(_b, [
6178
6142
  "className"
6179
6143
  ]);
6180
- return /* @__PURE__ */ jsxs13(
6144
+ return /* @__PURE__ */ jsxs14(
6181
6145
  PaginationLink,
6182
6146
  __spreadProps(__spreadValues({
6183
6147
  "aria-label": "Go to previous page",
@@ -6185,8 +6149,8 @@ var PaginationPreviousLast = (_a) => {
6185
6149
  className: cn("gap-1 pl-2.5", className)
6186
6150
  }, props), {
6187
6151
  children: [
6188
- /* @__PURE__ */ jsx24(ChevronLeft2, { className: "h-4 w-4" }),
6189
- /* @__PURE__ */ jsx24("span", { className: "sr-only", children: "Previous Last" })
6152
+ /* @__PURE__ */ jsx25(ChevronLeft2, { className: "h-4 w-4" }),
6153
+ /* @__PURE__ */ jsx25("span", { className: "sr-only", children: "Previous Last" })
6190
6154
  ]
6191
6155
  })
6192
6156
  );
@@ -6198,7 +6162,7 @@ var PaginationPrevious = (_a) => {
6198
6162
  } = _b, props = __objRest(_b, [
6199
6163
  "className"
6200
6164
  ]);
6201
- return /* @__PURE__ */ jsxs13(
6165
+ return /* @__PURE__ */ jsxs14(
6202
6166
  PaginationLink,
6203
6167
  __spreadProps(__spreadValues({
6204
6168
  "aria-label": "Go to previous page",
@@ -6206,8 +6170,8 @@ var PaginationPrevious = (_a) => {
6206
6170
  className: cn("gap-1 pl-2.5", className)
6207
6171
  }, props), {
6208
6172
  children: [
6209
- /* @__PURE__ */ jsx24(ChevronLeftIcon, { className: "h-4 w-4" }),
6210
- /* @__PURE__ */ jsx24("span", { children: "Previous" })
6173
+ /* @__PURE__ */ jsx25(ChevronLeftIcon, { className: "h-4 w-4" }),
6174
+ /* @__PURE__ */ jsx25("span", { children: "Previous" })
6211
6175
  ]
6212
6176
  })
6213
6177
  );
@@ -6219,7 +6183,7 @@ var PaginationNext = (_a) => {
6219
6183
  } = _b, props = __objRest(_b, [
6220
6184
  "className"
6221
6185
  ]);
6222
- return /* @__PURE__ */ jsxs13(
6186
+ return /* @__PURE__ */ jsxs14(
6223
6187
  PaginationLink,
6224
6188
  __spreadProps(__spreadValues({
6225
6189
  "aria-label": "Go to next page",
@@ -6227,8 +6191,8 @@ var PaginationNext = (_a) => {
6227
6191
  className: cn("gap-1 pr-2.5", className)
6228
6192
  }, props), {
6229
6193
  children: [
6230
- /* @__PURE__ */ jsx24("span", { children: "Next" }),
6231
- /* @__PURE__ */ jsx24(ChevronRightIcon5, { className: "h-4 w-4" })
6194
+ /* @__PURE__ */ jsx25("span", { children: "Next" }),
6195
+ /* @__PURE__ */ jsx25(ChevronRightIcon5, { className: "h-4 w-4" })
6232
6196
  ]
6233
6197
  })
6234
6198
  );
@@ -6240,7 +6204,7 @@ var PaginationNextLast = (_a) => {
6240
6204
  } = _b, props = __objRest(_b, [
6241
6205
  "className"
6242
6206
  ]);
6243
- return /* @__PURE__ */ jsxs13(
6207
+ return /* @__PURE__ */ jsxs14(
6244
6208
  PaginationLink,
6245
6209
  __spreadProps(__spreadValues({
6246
6210
  "aria-label": "Go to next page",
@@ -6248,8 +6212,8 @@ var PaginationNextLast = (_a) => {
6248
6212
  className: cn("gap-1 pr-2.5", className)
6249
6213
  }, props), {
6250
6214
  children: [
6251
- /* @__PURE__ */ jsx24("span", { className: "sr-only", children: "Next Last" }),
6252
- /* @__PURE__ */ jsx24(ChevronRight2, { className: "h-4 w-4" })
6215
+ /* @__PURE__ */ jsx25("span", { className: "sr-only", children: "Next Last" }),
6216
+ /* @__PURE__ */ jsx25(ChevronRight2, { className: "h-4 w-4" })
6253
6217
  ]
6254
6218
  })
6255
6219
  );
@@ -6261,15 +6225,15 @@ var PaginationEllipsis = (_a) => {
6261
6225
  } = _b, props = __objRest(_b, [
6262
6226
  "className"
6263
6227
  ]);
6264
- return /* @__PURE__ */ jsxs13(
6228
+ return /* @__PURE__ */ jsxs14(
6265
6229
  "span",
6266
6230
  __spreadProps(__spreadValues({
6267
6231
  "aria-hidden": true,
6268
6232
  className: cn("flex h-9 w-9 items-center justify-center", className)
6269
6233
  }, props), {
6270
6234
  children: [
6271
- /* @__PURE__ */ jsx24(DotsHorizontalIcon2, { className: "h-4 w-4" }),
6272
- /* @__PURE__ */ jsx24("span", { className: "sr-only", children: "More pages" })
6235
+ /* @__PURE__ */ jsx25(DotsHorizontalIcon2, { className: "h-4 w-4" }),
6236
+ /* @__PURE__ */ jsx25("span", { className: "sr-only", children: "More pages" })
6273
6237
  ]
6274
6238
  })
6275
6239
  );
@@ -6278,14 +6242,14 @@ PaginationEllipsis.displayName = "PaginationEllipsis";
6278
6242
 
6279
6243
  // src/components/popover.tsx
6280
6244
  import * as PopoverPrimitive from "@radix-ui/react-popover";
6281
- import * as React50 from "react";
6282
- import { jsx as jsx25 } from "react/jsx-runtime";
6245
+ import * as React49 from "react";
6246
+ import { jsx as jsx26 } from "react/jsx-runtime";
6283
6247
  var Popover = PopoverPrimitive.Root;
6284
6248
  var PopoverTrigger = PopoverPrimitive.Trigger;
6285
6249
  var PopoverAnchor = PopoverPrimitive.Anchor;
6286
- var PopoverContent = React50.forwardRef((_a, ref) => {
6250
+ var PopoverContent = React49.forwardRef((_a, ref) => {
6287
6251
  var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
6288
- return /* @__PURE__ */ jsx25(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx25(
6252
+ return /* @__PURE__ */ jsx26(PopoverPrimitive.Portal, { children: /* @__PURE__ */ jsx26(
6289
6253
  PopoverPrimitive.Content,
6290
6254
  __spreadValues({
6291
6255
  ref,
@@ -6302,11 +6266,11 @@ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
6302
6266
 
6303
6267
  // src/components/progress.tsx
6304
6268
  import * as ProgressPrimitive from "@radix-ui/react-progress";
6305
- import * as React51 from "react";
6306
- import { jsx as jsx26 } from "react/jsx-runtime";
6307
- var Progress = React51.forwardRef((_a, ref) => {
6269
+ import * as React50 from "react";
6270
+ import { jsx as jsx27 } from "react/jsx-runtime";
6271
+ var Progress = React50.forwardRef((_a, ref) => {
6308
6272
  var _b = _a, { className, value } = _b, props = __objRest(_b, ["className", "value"]);
6309
- return /* @__PURE__ */ jsx26(
6273
+ return /* @__PURE__ */ jsx27(
6310
6274
  ProgressPrimitive.Root,
6311
6275
  __spreadProps(__spreadValues({
6312
6276
  ref,
@@ -6315,7 +6279,7 @@ var Progress = React51.forwardRef((_a, ref) => {
6315
6279
  className
6316
6280
  )
6317
6281
  }, props), {
6318
- children: /* @__PURE__ */ jsx26(
6282
+ children: /* @__PURE__ */ jsx27(
6319
6283
  ProgressPrimitive.Indicator,
6320
6284
  {
6321
6285
  className: "h-full w-full flex-1 bg-primary transition-all",
@@ -6330,11 +6294,11 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
6330
6294
  // src/components/radio-group.tsx
6331
6295
  import { CheckIcon as CheckIcon5 } from "@radix-ui/react-icons";
6332
6296
  import * as RadioGroupPrimitive from "@radix-ui/react-radio-group";
6333
- import * as React52 from "react";
6334
- import { jsx as jsx27 } from "react/jsx-runtime";
6335
- var RadioGroup4 = React52.forwardRef((_a, ref) => {
6297
+ import * as React51 from "react";
6298
+ import { jsx as jsx28 } from "react/jsx-runtime";
6299
+ var RadioGroup4 = React51.forwardRef((_a, ref) => {
6336
6300
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6337
- return /* @__PURE__ */ jsx27(
6301
+ return /* @__PURE__ */ jsx28(
6338
6302
  RadioGroupPrimitive.Root,
6339
6303
  __spreadProps(__spreadValues({
6340
6304
  className: cn("grid gap-2", className)
@@ -6344,9 +6308,9 @@ var RadioGroup4 = React52.forwardRef((_a, ref) => {
6344
6308
  );
6345
6309
  });
6346
6310
  RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
6347
- var RadioGroupItem = React52.forwardRef((_a, ref) => {
6311
+ var RadioGroupItem = React51.forwardRef((_a, ref) => {
6348
6312
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6349
- return /* @__PURE__ */ jsx27(
6313
+ return /* @__PURE__ */ jsx28(
6350
6314
  RadioGroupPrimitive.Item,
6351
6315
  __spreadProps(__spreadValues({
6352
6316
  ref,
@@ -6355,7 +6319,7 @@ var RadioGroupItem = React52.forwardRef((_a, ref) => {
6355
6319
  className
6356
6320
  )
6357
6321
  }, props), {
6358
- children: /* @__PURE__ */ jsx27(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx27(CheckIcon5, { className: "h-3.5 w-3.5 fill-primary" }) })
6322
+ children: /* @__PURE__ */ jsx28(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ jsx28(CheckIcon5, { className: "h-3.5 w-3.5 fill-primary" }) })
6359
6323
  })
6360
6324
  );
6361
6325
  });
@@ -6364,14 +6328,14 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
6364
6328
  // src/components/resizable.tsx
6365
6329
  import { DragHandleDots2Icon } from "@radix-ui/react-icons";
6366
6330
  import * as ResizablePrimitive from "react-resizable-panels";
6367
- import { jsx as jsx28 } from "react/jsx-runtime";
6331
+ import { jsx as jsx29 } from "react/jsx-runtime";
6368
6332
  var ResizablePanelGroup = (_a) => {
6369
6333
  var _b = _a, {
6370
6334
  className
6371
6335
  } = _b, props = __objRest(_b, [
6372
6336
  "className"
6373
6337
  ]);
6374
- return /* @__PURE__ */ jsx28(
6338
+ return /* @__PURE__ */ jsx29(
6375
6339
  ResizablePrimitive.PanelGroup,
6376
6340
  __spreadValues({
6377
6341
  className: cn(
@@ -6390,7 +6354,7 @@ var ResizableHandle = (_a) => {
6390
6354
  "withHandle",
6391
6355
  "className"
6392
6356
  ]);
6393
- return /* @__PURE__ */ jsx28(
6357
+ return /* @__PURE__ */ jsx29(
6394
6358
  ResizablePrimitive.PanelResizeHandle,
6395
6359
  __spreadProps(__spreadValues({
6396
6360
  className: cn(
@@ -6398,35 +6362,35 @@ var ResizableHandle = (_a) => {
6398
6362
  className
6399
6363
  )
6400
6364
  }, props), {
6401
- children: withHandle && /* @__PURE__ */ jsx28("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx28(DragHandleDots2Icon, { className: "h-2.5 w-2.5" }) })
6365
+ children: withHandle && /* @__PURE__ */ jsx29("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ jsx29(DragHandleDots2Icon, { className: "h-2.5 w-2.5" }) })
6402
6366
  })
6403
6367
  );
6404
6368
  };
6405
6369
 
6406
6370
  // src/components/scroll-area.tsx
6407
6371
  import * as ScrollAreaPrimitive from "@radix-ui/react-scroll-area";
6408
- import * as React53 from "react";
6409
- import { jsx as jsx29, jsxs as jsxs14 } from "react/jsx-runtime";
6410
- var ScrollArea = React53.forwardRef((_a, ref) => {
6372
+ import * as React52 from "react";
6373
+ import { jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
6374
+ var ScrollArea = React52.forwardRef((_a, ref) => {
6411
6375
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6412
- return /* @__PURE__ */ jsxs14(
6376
+ return /* @__PURE__ */ jsxs15(
6413
6377
  ScrollAreaPrimitive.Root,
6414
6378
  __spreadProps(__spreadValues({
6415
6379
  ref,
6416
6380
  className: cn("relative overflow-hidden", className)
6417
6381
  }, props), {
6418
6382
  children: [
6419
- /* @__PURE__ */ jsx29(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
6420
- /* @__PURE__ */ jsx29(ScrollBar, {}),
6421
- /* @__PURE__ */ jsx29(ScrollAreaPrimitive.Corner, {})
6383
+ /* @__PURE__ */ jsx30(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
6384
+ /* @__PURE__ */ jsx30(ScrollBar, {}),
6385
+ /* @__PURE__ */ jsx30(ScrollAreaPrimitive.Corner, {})
6422
6386
  ]
6423
6387
  })
6424
6388
  );
6425
6389
  });
6426
6390
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
6427
- var ScrollBar = React53.forwardRef((_a, ref) => {
6391
+ var ScrollBar = React52.forwardRef((_a, ref) => {
6428
6392
  var _b = _a, { className, orientation = "vertical" } = _b, props = __objRest(_b, ["className", "orientation"]);
6429
- return /* @__PURE__ */ jsx29(
6393
+ return /* @__PURE__ */ jsx30(
6430
6394
  ScrollAreaPrimitive.ScrollAreaScrollbar,
6431
6395
  __spreadProps(__spreadValues({
6432
6396
  ref,
@@ -6438,12 +6402,48 @@ var ScrollBar = React53.forwardRef((_a, ref) => {
6438
6402
  className
6439
6403
  )
6440
6404
  }, props), {
6441
- children: /* @__PURE__ */ jsx29(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
6405
+ children: /* @__PURE__ */ jsx30(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
6442
6406
  })
6443
6407
  );
6444
6408
  });
6445
6409
  ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
6446
6410
 
6411
+ // src/components/search-input.tsx
6412
+ import React53, { useCallback as useCallback4 } from "react";
6413
+ import { useDebounce } from "use-debounce";
6414
+ import { jsx as jsx31 } from "react/jsx-runtime";
6415
+ function SearchInput({
6416
+ value,
6417
+ placeholder,
6418
+ className,
6419
+ debounceTime = 750,
6420
+ onSearch
6421
+ }) {
6422
+ const [searchTerm, setSearchTerm] = React53.useState(value);
6423
+ const [debouncedValue] = useDebounce(searchTerm, debounceTime);
6424
+ const handleSettingSearchParams = useCallback4((newSearchValue) => {
6425
+ if (newSearchValue === "" || newSearchValue === void 0 || !newSearchValue) {
6426
+ onSearch(newSearchValue);
6427
+ return;
6428
+ }
6429
+ }, []);
6430
+ React53.useEffect(() => {
6431
+ handleSettingSearchParams(debouncedValue);
6432
+ }, [debouncedValue, handleSettingSearchParams]);
6433
+ React53.useEffect(() => {
6434
+ setSearchTerm(value);
6435
+ }, [value]);
6436
+ return /* @__PURE__ */ jsx31(
6437
+ Input,
6438
+ {
6439
+ placeholder: placeholder || `Search...`,
6440
+ value: searchTerm,
6441
+ onChange: (event) => setSearchTerm(event.target.value),
6442
+ className: cn("w-full md:max-w-sm", className)
6443
+ }
6444
+ );
6445
+ }
6446
+
6447
6447
  // src/components/select.tsx
6448
6448
  import {
6449
6449
  CaretSortIcon,
@@ -6453,13 +6453,13 @@ import {
6453
6453
  } from "@radix-ui/react-icons";
6454
6454
  import * as SelectPrimitive from "@radix-ui/react-select";
6455
6455
  import * as React54 from "react";
6456
- import { jsx as jsx30, jsxs as jsxs15 } from "react/jsx-runtime";
6456
+ import { jsx as jsx32, jsxs as jsxs16 } from "react/jsx-runtime";
6457
6457
  var Select2 = SelectPrimitive.Root;
6458
6458
  var SelectGroup = SelectPrimitive.Group;
6459
6459
  var SelectValue = SelectPrimitive.Value;
6460
6460
  var SelectTrigger = React54.forwardRef((_a, ref) => {
6461
6461
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6462
- return /* @__PURE__ */ jsxs15(
6462
+ return /* @__PURE__ */ jsxs16(
6463
6463
  SelectPrimitive.Trigger,
6464
6464
  __spreadProps(__spreadValues({
6465
6465
  ref,
@@ -6470,7 +6470,7 @@ var SelectTrigger = React54.forwardRef((_a, ref) => {
6470
6470
  }, props), {
6471
6471
  children: [
6472
6472
  children,
6473
- /* @__PURE__ */ jsx30(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx30(CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
6473
+ /* @__PURE__ */ jsx32(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ jsx32(CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
6474
6474
  ]
6475
6475
  })
6476
6476
  );
@@ -6478,7 +6478,7 @@ var SelectTrigger = React54.forwardRef((_a, ref) => {
6478
6478
  SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
6479
6479
  var SelectScrollUpButton = React54.forwardRef((_a, ref) => {
6480
6480
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6481
- return /* @__PURE__ */ jsx30(
6481
+ return /* @__PURE__ */ jsx32(
6482
6482
  SelectPrimitive.ScrollUpButton,
6483
6483
  __spreadProps(__spreadValues({
6484
6484
  ref,
@@ -6487,14 +6487,14 @@ var SelectScrollUpButton = React54.forwardRef((_a, ref) => {
6487
6487
  className
6488
6488
  )
6489
6489
  }, props), {
6490
- children: /* @__PURE__ */ jsx30(ChevronUpIcon, {})
6490
+ children: /* @__PURE__ */ jsx32(ChevronUpIcon, {})
6491
6491
  })
6492
6492
  );
6493
6493
  });
6494
6494
  SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
6495
6495
  var SelectScrollDownButton = React54.forwardRef((_a, ref) => {
6496
6496
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6497
- return /* @__PURE__ */ jsx30(
6497
+ return /* @__PURE__ */ jsx32(
6498
6498
  SelectPrimitive.ScrollDownButton,
6499
6499
  __spreadProps(__spreadValues({
6500
6500
  ref,
@@ -6503,14 +6503,14 @@ var SelectScrollDownButton = React54.forwardRef((_a, ref) => {
6503
6503
  className
6504
6504
  )
6505
6505
  }, props), {
6506
- children: /* @__PURE__ */ jsx30(ChevronDownIcon3, {})
6506
+ children: /* @__PURE__ */ jsx32(ChevronDownIcon3, {})
6507
6507
  })
6508
6508
  );
6509
6509
  });
6510
6510
  SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
6511
6511
  var SelectContent = React54.forwardRef((_a, ref) => {
6512
6512
  var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
6513
- return /* @__PURE__ */ jsx30(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs15(
6513
+ return /* @__PURE__ */ jsx32(SelectPrimitive.Portal, { children: /* @__PURE__ */ jsxs16(
6514
6514
  SelectPrimitive.Content,
6515
6515
  __spreadProps(__spreadValues({
6516
6516
  ref,
@@ -6522,8 +6522,8 @@ var SelectContent = React54.forwardRef((_a, ref) => {
6522
6522
  position
6523
6523
  }, props), {
6524
6524
  children: [
6525
- /* @__PURE__ */ jsx30(SelectScrollUpButton, {}),
6526
- /* @__PURE__ */ jsx30(
6525
+ /* @__PURE__ */ jsx32(SelectScrollUpButton, {}),
6526
+ /* @__PURE__ */ jsx32(
6527
6527
  SelectPrimitive.Viewport,
6528
6528
  {
6529
6529
  className: cn(
@@ -6533,7 +6533,7 @@ var SelectContent = React54.forwardRef((_a, ref) => {
6533
6533
  children
6534
6534
  }
6535
6535
  ),
6536
- /* @__PURE__ */ jsx30(SelectScrollDownButton, {})
6536
+ /* @__PURE__ */ jsx32(SelectScrollDownButton, {})
6537
6537
  ]
6538
6538
  })
6539
6539
  ) });
@@ -6541,7 +6541,7 @@ var SelectContent = React54.forwardRef((_a, ref) => {
6541
6541
  SelectContent.displayName = SelectPrimitive.Content.displayName;
6542
6542
  var SelectLabel = React54.forwardRef((_a, ref) => {
6543
6543
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6544
- return /* @__PURE__ */ jsx30(
6544
+ return /* @__PURE__ */ jsx32(
6545
6545
  SelectPrimitive.Label,
6546
6546
  __spreadValues({
6547
6547
  ref,
@@ -6552,7 +6552,7 @@ var SelectLabel = React54.forwardRef((_a, ref) => {
6552
6552
  SelectLabel.displayName = SelectPrimitive.Label.displayName;
6553
6553
  var SelectItem = React54.forwardRef((_a, ref) => {
6554
6554
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6555
- return /* @__PURE__ */ jsxs15(
6555
+ return /* @__PURE__ */ jsxs16(
6556
6556
  SelectPrimitive.Item,
6557
6557
  __spreadProps(__spreadValues({
6558
6558
  ref,
@@ -6562,8 +6562,8 @@ var SelectItem = React54.forwardRef((_a, ref) => {
6562
6562
  )
6563
6563
  }, props), {
6564
6564
  children: [
6565
- /* @__PURE__ */ jsx30("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx30(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx30(CheckIcon6, { className: "h-4 w-4" }) }) }),
6566
- /* @__PURE__ */ jsx30(SelectPrimitive.ItemText, { children })
6565
+ /* @__PURE__ */ jsx32("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ jsx32(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ jsx32(CheckIcon6, { className: "h-4 w-4" }) }) }),
6566
+ /* @__PURE__ */ jsx32(SelectPrimitive.ItemText, { children })
6567
6567
  ]
6568
6568
  })
6569
6569
  );
@@ -6571,7 +6571,7 @@ var SelectItem = React54.forwardRef((_a, ref) => {
6571
6571
  SelectItem.displayName = SelectPrimitive.Item.displayName;
6572
6572
  var SelectSeparator = React54.forwardRef((_a, ref) => {
6573
6573
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6574
- return /* @__PURE__ */ jsx30(
6574
+ return /* @__PURE__ */ jsx32(
6575
6575
  SelectPrimitive.Separator,
6576
6576
  __spreadValues({
6577
6577
  ref,
@@ -6584,11 +6584,11 @@ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
6584
6584
  // src/components/separator.tsx
6585
6585
  import * as SeparatorPrimitive from "@radix-ui/react-separator";
6586
6586
  import * as React55 from "react";
6587
- import { jsx as jsx31 } from "react/jsx-runtime";
6587
+ import { jsx as jsx33 } from "react/jsx-runtime";
6588
6588
  var Separator5 = React55.forwardRef(
6589
6589
  (_a, ref) => {
6590
6590
  var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
6591
- return /* @__PURE__ */ jsx31(
6591
+ return /* @__PURE__ */ jsx33(
6592
6592
  SeparatorPrimitive.Root,
6593
6593
  __spreadValues({
6594
6594
  ref,
@@ -6610,14 +6610,14 @@ import * as SheetPrimitive from "@radix-ui/react-dialog";
6610
6610
  import { Cross2Icon as Cross2Icon2 } from "@radix-ui/react-icons";
6611
6611
  import { cva as cva6 } from "class-variance-authority";
6612
6612
  import * as React56 from "react";
6613
- import { jsx as jsx32, jsxs as jsxs16 } from "react/jsx-runtime";
6613
+ import { jsx as jsx34, jsxs as jsxs17 } from "react/jsx-runtime";
6614
6614
  var Sheet = SheetPrimitive.Root;
6615
6615
  var SheetTrigger = SheetPrimitive.Trigger;
6616
6616
  var SheetClose = SheetPrimitive.Close;
6617
6617
  var SheetPortal = SheetPrimitive.Portal;
6618
6618
  var SheetOverlay = React56.forwardRef((_a, ref) => {
6619
6619
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6620
- return /* @__PURE__ */ jsx32(
6620
+ return /* @__PURE__ */ jsx34(
6621
6621
  SheetPrimitive.Overlay,
6622
6622
  __spreadProps(__spreadValues({
6623
6623
  className: cn(
@@ -6648,9 +6648,9 @@ var sheetVariants = cva6(
6648
6648
  );
6649
6649
  var SheetContent = React56.forwardRef((_a, ref) => {
6650
6650
  var _b = _a, { side = "right", className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
6651
- return /* @__PURE__ */ jsxs16(SheetPortal, { children: [
6652
- /* @__PURE__ */ jsx32(SheetOverlay, {}),
6653
- /* @__PURE__ */ jsxs16(
6651
+ return /* @__PURE__ */ jsxs17(SheetPortal, { children: [
6652
+ /* @__PURE__ */ jsx34(SheetOverlay, {}),
6653
+ /* @__PURE__ */ jsxs17(
6654
6654
  SheetPrimitive.Content,
6655
6655
  __spreadProps(__spreadValues({
6656
6656
  ref,
@@ -6658,9 +6658,9 @@ var SheetContent = React56.forwardRef((_a, ref) => {
6658
6658
  }, props), {
6659
6659
  children: [
6660
6660
  children,
6661
- /* @__PURE__ */ jsxs16(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
6662
- /* @__PURE__ */ jsx32(Cross2Icon2, { className: "h-4 w-4" }),
6663
- /* @__PURE__ */ jsx32("span", { className: "sr-only", children: "Close" })
6661
+ /* @__PURE__ */ jsxs17(SheetPrimitive.Close, { className: "absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary", children: [
6662
+ /* @__PURE__ */ jsx34(Cross2Icon2, { className: "h-4 w-4" }),
6663
+ /* @__PURE__ */ jsx34("span", { className: "sr-only", children: "Close" })
6664
6664
  ] })
6665
6665
  ]
6666
6666
  })
@@ -6674,7 +6674,7 @@ var SheetHeader = (_a) => {
6674
6674
  } = _b, props = __objRest(_b, [
6675
6675
  "className"
6676
6676
  ]);
6677
- return /* @__PURE__ */ jsx32(
6677
+ return /* @__PURE__ */ jsx34(
6678
6678
  "div",
6679
6679
  __spreadValues({
6680
6680
  className: cn(
@@ -6691,7 +6691,7 @@ var SheetFooter = (_a) => {
6691
6691
  } = _b, props = __objRest(_b, [
6692
6692
  "className"
6693
6693
  ]);
6694
- return /* @__PURE__ */ jsx32(
6694
+ return /* @__PURE__ */ jsx34(
6695
6695
  "div",
6696
6696
  __spreadValues({
6697
6697
  className: cn(
@@ -6704,7 +6704,7 @@ var SheetFooter = (_a) => {
6704
6704
  SheetFooter.displayName = "SheetFooter";
6705
6705
  var SheetTitle = React56.forwardRef((_a, ref) => {
6706
6706
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6707
- return /* @__PURE__ */ jsx32(
6707
+ return /* @__PURE__ */ jsx34(
6708
6708
  SheetPrimitive.Title,
6709
6709
  __spreadValues({
6710
6710
  ref,
@@ -6715,7 +6715,7 @@ var SheetTitle = React56.forwardRef((_a, ref) => {
6715
6715
  SheetTitle.displayName = SheetPrimitive.Title.displayName;
6716
6716
  var SheetDescription = React56.forwardRef((_a, ref) => {
6717
6717
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6718
- return /* @__PURE__ */ jsx32(
6718
+ return /* @__PURE__ */ jsx34(
6719
6719
  SheetPrimitive.Description,
6720
6720
  __spreadValues({
6721
6721
  ref,
@@ -6726,14 +6726,14 @@ var SheetDescription = React56.forwardRef((_a, ref) => {
6726
6726
  SheetDescription.displayName = SheetPrimitive.Description.displayName;
6727
6727
 
6728
6728
  // src/components/skeleton.tsx
6729
- import { jsx as jsx33 } from "react/jsx-runtime";
6729
+ import { jsx as jsx35 } from "react/jsx-runtime";
6730
6730
  function Skeleton(_a) {
6731
6731
  var _b = _a, {
6732
6732
  className
6733
6733
  } = _b, props = __objRest(_b, [
6734
6734
  "className"
6735
6735
  ]);
6736
- return /* @__PURE__ */ jsx33(
6736
+ return /* @__PURE__ */ jsx35(
6737
6737
  "div",
6738
6738
  __spreadValues({
6739
6739
  className: cn("animate-pulse rounded-md bg-primary/10", className)
@@ -6744,10 +6744,10 @@ function Skeleton(_a) {
6744
6744
  // src/components/slider.tsx
6745
6745
  import * as SliderPrimitive from "@radix-ui/react-slider";
6746
6746
  import * as React57 from "react";
6747
- import { jsx as jsx34, jsxs as jsxs17 } from "react/jsx-runtime";
6747
+ import { jsx as jsx36, jsxs as jsxs18 } from "react/jsx-runtime";
6748
6748
  var Slider = React57.forwardRef((_a, ref) => {
6749
6749
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6750
- return /* @__PURE__ */ jsxs17(
6750
+ return /* @__PURE__ */ jsxs18(
6751
6751
  SliderPrimitive.Root,
6752
6752
  __spreadProps(__spreadValues({
6753
6753
  ref,
@@ -6757,8 +6757,8 @@ var Slider = React57.forwardRef((_a, ref) => {
6757
6757
  )
6758
6758
  }, props), {
6759
6759
  children: [
6760
- /* @__PURE__ */ jsx34(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ jsx34(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
6761
- /* @__PURE__ */ jsx34(SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
6760
+ /* @__PURE__ */ jsx36(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ jsx36(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
6761
+ /* @__PURE__ */ jsx36(SliderPrimitive.Thumb, { className: "block h-4 w-4 rounded-full border border-primary/50 bg-background shadow transition-colors focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50" })
6762
6762
  ]
6763
6763
  })
6764
6764
  );
@@ -6768,11 +6768,11 @@ Slider.displayName = SliderPrimitive.Root.displayName;
6768
6768
  // src/components/sonner.tsx
6769
6769
  import { useTheme } from "next-themes";
6770
6770
  import { Toaster as Sonner } from "sonner";
6771
- import { jsx as jsx35 } from "react/jsx-runtime";
6771
+ import { jsx as jsx37 } from "react/jsx-runtime";
6772
6772
  var Toaster = (_a) => {
6773
6773
  var props = __objRest(_a, []);
6774
6774
  const { theme = "system" } = useTheme();
6775
- return /* @__PURE__ */ jsx35(
6775
+ return /* @__PURE__ */ jsx37(
6776
6776
  Sonner,
6777
6777
  __spreadValues({
6778
6778
  theme,
@@ -6792,10 +6792,10 @@ var Toaster = (_a) => {
6792
6792
  // src/components/switch.tsx
6793
6793
  import * as SwitchPrimitives from "@radix-ui/react-switch";
6794
6794
  import * as React58 from "react";
6795
- import { jsx as jsx36 } from "react/jsx-runtime";
6795
+ import { jsx as jsx38 } from "react/jsx-runtime";
6796
6796
  var Switch = React58.forwardRef((_a, ref) => {
6797
6797
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6798
- return /* @__PURE__ */ jsx36(
6798
+ return /* @__PURE__ */ jsx38(
6799
6799
  SwitchPrimitives.Root,
6800
6800
  __spreadProps(__spreadValues({
6801
6801
  className: cn(
@@ -6804,7 +6804,7 @@ var Switch = React58.forwardRef((_a, ref) => {
6804
6804
  )
6805
6805
  }, props), {
6806
6806
  ref,
6807
- children: /* @__PURE__ */ jsx36(
6807
+ children: /* @__PURE__ */ jsx38(
6808
6808
  SwitchPrimitives.Thumb,
6809
6809
  {
6810
6810
  className: cn(
@@ -6819,10 +6819,10 @@ Switch.displayName = SwitchPrimitives.Root.displayName;
6819
6819
 
6820
6820
  // src/components/table.tsx
6821
6821
  import * as React59 from "react";
6822
- import { jsx as jsx37 } from "react/jsx-runtime";
6822
+ import { jsx as jsx39 } from "react/jsx-runtime";
6823
6823
  var Table = React59.forwardRef((_a, ref) => {
6824
6824
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6825
- return /* @__PURE__ */ jsx37("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx37(
6825
+ return /* @__PURE__ */ jsx39("div", { className: "relative w-full overflow-auto", children: /* @__PURE__ */ jsx39(
6826
6826
  "table",
6827
6827
  __spreadValues({
6828
6828
  ref,
@@ -6833,12 +6833,12 @@ var Table = React59.forwardRef((_a, ref) => {
6833
6833
  Table.displayName = "Table";
6834
6834
  var TableHeader = React59.forwardRef((_a, ref) => {
6835
6835
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6836
- return /* @__PURE__ */ jsx37("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b", className) }, props));
6836
+ return /* @__PURE__ */ jsx39("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b", className) }, props));
6837
6837
  });
6838
6838
  TableHeader.displayName = "TableHeader";
6839
6839
  var TableBody = React59.forwardRef((_a, ref) => {
6840
6840
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6841
- return /* @__PURE__ */ jsx37(
6841
+ return /* @__PURE__ */ jsx39(
6842
6842
  "tbody",
6843
6843
  __spreadValues({
6844
6844
  ref,
@@ -6849,7 +6849,7 @@ var TableBody = React59.forwardRef((_a, ref) => {
6849
6849
  TableBody.displayName = "TableBody";
6850
6850
  var TableFooter = React59.forwardRef((_a, ref) => {
6851
6851
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6852
- return /* @__PURE__ */ jsx37(
6852
+ return /* @__PURE__ */ jsx39(
6853
6853
  "tfoot",
6854
6854
  __spreadValues({
6855
6855
  ref,
@@ -6863,7 +6863,7 @@ var TableFooter = React59.forwardRef((_a, ref) => {
6863
6863
  TableFooter.displayName = "TableFooter";
6864
6864
  var TableRow = React59.forwardRef((_a, ref) => {
6865
6865
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6866
- return /* @__PURE__ */ jsx37(
6866
+ return /* @__PURE__ */ jsx39(
6867
6867
  "tr",
6868
6868
  __spreadValues({
6869
6869
  ref,
@@ -6877,7 +6877,7 @@ var TableRow = React59.forwardRef((_a, ref) => {
6877
6877
  TableRow.displayName = "TableRow";
6878
6878
  var TableHead = React59.forwardRef((_a, ref) => {
6879
6879
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6880
- return /* @__PURE__ */ jsx37(
6880
+ return /* @__PURE__ */ jsx39(
6881
6881
  "th",
6882
6882
  __spreadValues({
6883
6883
  ref,
@@ -6891,7 +6891,7 @@ var TableHead = React59.forwardRef((_a, ref) => {
6891
6891
  TableHead.displayName = "TableHead";
6892
6892
  var TableCell = React59.forwardRef((_a, ref) => {
6893
6893
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6894
- return /* @__PURE__ */ jsx37(
6894
+ return /* @__PURE__ */ jsx39(
6895
6895
  "td",
6896
6896
  __spreadValues({
6897
6897
  ref,
@@ -6905,7 +6905,7 @@ var TableCell = React59.forwardRef((_a, ref) => {
6905
6905
  TableCell.displayName = "TableCell";
6906
6906
  var TableCaption = React59.forwardRef((_a, ref) => {
6907
6907
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6908
- return /* @__PURE__ */ jsx37(
6908
+ return /* @__PURE__ */ jsx39(
6909
6909
  "caption",
6910
6910
  __spreadValues({
6911
6911
  ref,
@@ -6918,11 +6918,11 @@ TableCaption.displayName = "TableCaption";
6918
6918
  // src/components/tabs.tsx
6919
6919
  import * as TabsPrimitive from "@radix-ui/react-tabs";
6920
6920
  import * as React60 from "react";
6921
- import { jsx as jsx38 } from "react/jsx-runtime";
6921
+ import { jsx as jsx40 } from "react/jsx-runtime";
6922
6922
  var Tabs = TabsPrimitive.Root;
6923
6923
  var TabsList = React60.forwardRef((_a, ref) => {
6924
6924
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6925
- return /* @__PURE__ */ jsx38(
6925
+ return /* @__PURE__ */ jsx40(
6926
6926
  TabsPrimitive.List,
6927
6927
  __spreadValues({
6928
6928
  ref,
@@ -6936,7 +6936,7 @@ var TabsList = React60.forwardRef((_a, ref) => {
6936
6936
  TabsList.displayName = TabsPrimitive.List.displayName;
6937
6937
  var TabsTrigger = React60.forwardRef((_a, ref) => {
6938
6938
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6939
- return /* @__PURE__ */ jsx38(
6939
+ return /* @__PURE__ */ jsx40(
6940
6940
  TabsPrimitive.Trigger,
6941
6941
  __spreadValues({
6942
6942
  ref,
@@ -6950,7 +6950,7 @@ var TabsTrigger = React60.forwardRef((_a, ref) => {
6950
6950
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
6951
6951
  var TabsContent = React60.forwardRef((_a, ref) => {
6952
6952
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6953
- return /* @__PURE__ */ jsx38(
6953
+ return /* @__PURE__ */ jsx40(
6954
6954
  TabsPrimitive.Content,
6955
6955
  __spreadValues({
6956
6956
  ref,
@@ -6965,11 +6965,11 @@ TabsContent.displayName = TabsPrimitive.Content.displayName;
6965
6965
 
6966
6966
  // src/components/textarea.tsx
6967
6967
  import * as React61 from "react";
6968
- import { jsx as jsx39 } from "react/jsx-runtime";
6968
+ import { jsx as jsx41 } from "react/jsx-runtime";
6969
6969
  var Textarea = React61.forwardRef(
6970
6970
  (_a, ref) => {
6971
6971
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6972
- return /* @__PURE__ */ jsx39(
6972
+ return /* @__PURE__ */ jsx41(
6973
6973
  "textarea",
6974
6974
  __spreadValues({
6975
6975
  className: cn(
@@ -6988,11 +6988,11 @@ import { Cross2Icon as Cross2Icon3 } from "@radix-ui/react-icons";
6988
6988
  import * as ToastPrimitives from "@radix-ui/react-toast";
6989
6989
  import { cva as cva7 } from "class-variance-authority";
6990
6990
  import * as React62 from "react";
6991
- import { jsx as jsx40 } from "react/jsx-runtime";
6991
+ import { jsx as jsx42 } from "react/jsx-runtime";
6992
6992
  var ToastProvider = ToastPrimitives.Provider;
6993
6993
  var ToastViewport = React62.forwardRef((_a, ref) => {
6994
6994
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6995
- return /* @__PURE__ */ jsx40(
6995
+ return /* @__PURE__ */ jsx42(
6996
6996
  ToastPrimitives.Viewport,
6997
6997
  __spreadValues({
6998
6998
  ref,
@@ -7020,7 +7020,7 @@ var toastVariants = cva7(
7020
7020
  );
7021
7021
  var Toast = React62.forwardRef((_a, ref) => {
7022
7022
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
7023
- return /* @__PURE__ */ jsx40(
7023
+ return /* @__PURE__ */ jsx42(
7024
7024
  ToastPrimitives.Root,
7025
7025
  __spreadValues({
7026
7026
  ref,
@@ -7031,7 +7031,7 @@ var Toast = React62.forwardRef((_a, ref) => {
7031
7031
  Toast.displayName = ToastPrimitives.Root.displayName;
7032
7032
  var ToastAction = React62.forwardRef((_a, ref) => {
7033
7033
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7034
- return /* @__PURE__ */ jsx40(
7034
+ return /* @__PURE__ */ jsx42(
7035
7035
  ToastPrimitives.Action,
7036
7036
  __spreadValues({
7037
7037
  ref,
@@ -7045,7 +7045,7 @@ var ToastAction = React62.forwardRef((_a, ref) => {
7045
7045
  ToastAction.displayName = ToastPrimitives.Action.displayName;
7046
7046
  var ToastClose = React62.forwardRef((_a, ref) => {
7047
7047
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7048
- return /* @__PURE__ */ jsx40(
7048
+ return /* @__PURE__ */ jsx42(
7049
7049
  ToastPrimitives.Close,
7050
7050
  __spreadProps(__spreadValues({
7051
7051
  ref,
@@ -7055,14 +7055,14 @@ var ToastClose = React62.forwardRef((_a, ref) => {
7055
7055
  ),
7056
7056
  "toast-close": ""
7057
7057
  }, props), {
7058
- children: /* @__PURE__ */ jsx40(Cross2Icon3, { className: "h-4 w-4" })
7058
+ children: /* @__PURE__ */ jsx42(Cross2Icon3, { className: "h-4 w-4" })
7059
7059
  })
7060
7060
  );
7061
7061
  });
7062
7062
  ToastClose.displayName = ToastPrimitives.Close.displayName;
7063
7063
  var ToastTitle = React62.forwardRef((_a, ref) => {
7064
7064
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7065
- return /* @__PURE__ */ jsx40(
7065
+ return /* @__PURE__ */ jsx42(
7066
7066
  ToastPrimitives.Title,
7067
7067
  __spreadValues({
7068
7068
  ref,
@@ -7073,7 +7073,7 @@ var ToastTitle = React62.forwardRef((_a, ref) => {
7073
7073
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
7074
7074
  var ToastDescription = React62.forwardRef((_a, ref) => {
7075
7075
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7076
- return /* @__PURE__ */ jsx40(
7076
+ return /* @__PURE__ */ jsx42(
7077
7077
  ToastPrimitives.Description,
7078
7078
  __spreadValues({
7079
7079
  ref,
@@ -7087,7 +7087,7 @@ ToastDescription.displayName = ToastPrimitives.Description.displayName;
7087
7087
  import * as TogglePrimitive from "@radix-ui/react-toggle";
7088
7088
  import { cva as cva8 } from "class-variance-authority";
7089
7089
  import * as React63 from "react";
7090
- import { jsx as jsx41 } from "react/jsx-runtime";
7090
+ import { jsx as jsx43 } from "react/jsx-runtime";
7091
7091
  var toggleVariants = cva8(
7092
7092
  "inline-flex items-center justify-center rounded-md text-sm font-medium transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-ring disabled:pointer-events-none disabled:opacity-50 data-[state=on]:bg-accent data-[state=on]:text-accent-foreground",
7093
7093
  {
@@ -7110,7 +7110,7 @@ var toggleVariants = cva8(
7110
7110
  );
7111
7111
  var Toggle = React63.forwardRef((_a, ref) => {
7112
7112
  var _b = _a, { className, variant, size } = _b, props = __objRest(_b, ["className", "variant", "size"]);
7113
- return /* @__PURE__ */ jsx41(
7113
+ return /* @__PURE__ */ jsx43(
7114
7114
  TogglePrimitive.Root,
7115
7115
  __spreadValues({
7116
7116
  ref,
@@ -7123,20 +7123,20 @@ Toggle.displayName = TogglePrimitive.Root.displayName;
7123
7123
  // src/components/toggle-group.tsx
7124
7124
  import * as ToggleGroupPrimitive from "@radix-ui/react-toggle-group";
7125
7125
  import * as React64 from "react";
7126
- import { jsx as jsx42 } from "react/jsx-runtime";
7126
+ import { jsx as jsx44 } from "react/jsx-runtime";
7127
7127
  var ToggleGroupContext = React64.createContext({
7128
7128
  size: "default",
7129
7129
  variant: "default"
7130
7130
  });
7131
7131
  var ToggleGroup = React64.forwardRef((_a, ref) => {
7132
7132
  var _b = _a, { className, variant, size, children } = _b, props = __objRest(_b, ["className", "variant", "size", "children"]);
7133
- return /* @__PURE__ */ jsx42(
7133
+ return /* @__PURE__ */ jsx44(
7134
7134
  ToggleGroupPrimitive.Root,
7135
7135
  __spreadProps(__spreadValues({
7136
7136
  ref,
7137
7137
  className: cn("flex items-center justify-center gap-1", className)
7138
7138
  }, props), {
7139
- children: /* @__PURE__ */ jsx42(ToggleGroupContext.Provider, { value: { variant, size }, children })
7139
+ children: /* @__PURE__ */ jsx44(ToggleGroupContext.Provider, { value: { variant, size }, children })
7140
7140
  })
7141
7141
  );
7142
7142
  });
@@ -7144,7 +7144,7 @@ ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
7144
7144
  var ToggleGroupItem = React64.forwardRef((_a, ref) => {
7145
7145
  var _b = _a, { className, children, variant, size } = _b, props = __objRest(_b, ["className", "children", "variant", "size"]);
7146
7146
  const context = React64.useContext(ToggleGroupContext);
7147
- return /* @__PURE__ */ jsx42(
7147
+ return /* @__PURE__ */ jsx44(
7148
7148
  ToggleGroupPrimitive.Item,
7149
7149
  __spreadProps(__spreadValues({
7150
7150
  ref,
@@ -7165,13 +7165,13 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
7165
7165
  // src/components/tooltip.tsx
7166
7166
  import * as TooltipPrimitive from "@radix-ui/react-tooltip";
7167
7167
  import * as React65 from "react";
7168
- import { jsx as jsx43 } from "react/jsx-runtime";
7168
+ import { jsx as jsx45 } from "react/jsx-runtime";
7169
7169
  var TooltipProvider = TooltipPrimitive.Provider;
7170
7170
  var Tooltip = TooltipPrimitive.Root;
7171
7171
  var TooltipTrigger = TooltipPrimitive.Trigger;
7172
7172
  var TooltipContent = React65.forwardRef((_a, ref) => {
7173
7173
  var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
7174
- return /* @__PURE__ */ jsx43(
7174
+ return /* @__PURE__ */ jsx45(
7175
7175
  TooltipPrimitive.Content,
7176
7176
  __spreadValues({
7177
7177
  ref,
@@ -7297,44 +7297,8 @@ function useToast() {
7297
7297
  });
7298
7298
  }
7299
7299
 
7300
- // src/components/search-input.tsx
7301
- import React67, { useCallback as useCallback3 } from "react";
7302
- import { useDebounce } from "use-debounce";
7303
- import { jsx as jsx44 } from "react/jsx-runtime";
7304
- function SearchInput({
7305
- value,
7306
- placeholder,
7307
- className,
7308
- debounceTime = 750,
7309
- onSearch
7310
- }) {
7311
- const [searchTerm, setSearchTerm] = React67.useState(value);
7312
- const [debouncedValue] = useDebounce(searchTerm, debounceTime);
7313
- const handleSettingSearchParams = useCallback3((newSearchValue) => {
7314
- if (newSearchValue === "" || newSearchValue === void 0 || !newSearchValue) {
7315
- onSearch(newSearchValue);
7316
- return;
7317
- }
7318
- }, []);
7319
- React67.useEffect(() => {
7320
- handleSettingSearchParams(debouncedValue);
7321
- }, [debouncedValue, handleSettingSearchParams]);
7322
- React67.useEffect(() => {
7323
- setSearchTerm(value);
7324
- }, [value]);
7325
- return /* @__PURE__ */ jsx44(
7326
- Input,
7327
- {
7328
- placeholder: placeholder || `Search...`,
7329
- value: searchTerm,
7330
- onChange: (event) => setSearchTerm(event.target.value),
7331
- className: cn("w-full md:max-w-sm", className)
7332
- }
7333
- );
7334
- }
7335
-
7336
7300
  // src/shared/alert-modal.tsx
7337
- import { jsx as jsx45, jsxs as jsxs18 } from "react/jsx-runtime";
7301
+ import { jsx as jsx46, jsxs as jsxs19 } from "react/jsx-runtime";
7338
7302
  var AlertModal = ({
7339
7303
  isOpen,
7340
7304
  onClose,
@@ -7347,7 +7311,7 @@ var AlertModal = ({
7347
7311
  className,
7348
7312
  children
7349
7313
  }) => {
7350
- return /* @__PURE__ */ jsx45(
7314
+ return /* @__PURE__ */ jsx46(
7351
7315
  Modal,
7352
7316
  {
7353
7317
  title,
@@ -7355,9 +7319,9 @@ var AlertModal = ({
7355
7319
  isOpen,
7356
7320
  onClose,
7357
7321
  className,
7358
- children: children ? children : /* @__PURE__ */ jsxs18("div", { className: "flex w-full items-center justify-end space-x-2 pt-6", children: [
7359
- /* @__PURE__ */ jsx45(Button, { disabled: loading, variant: "outline", onClick: onClose, children: cancelText }),
7360
- /* @__PURE__ */ jsx45(Button, { disabled: loading, variant: "destructive", onClick: onConfirm, children: confirmText })
7322
+ children: children ? children : /* @__PURE__ */ jsxs19("div", { className: "flex w-full items-center justify-end space-x-2 pt-6", children: [
7323
+ /* @__PURE__ */ jsx46(Button, { disabled: loading, variant: "outline", onClick: onClose, children: cancelText }),
7324
+ /* @__PURE__ */ jsx46(Button, { disabled: loading, variant: "destructive", onClick: onConfirm, children: confirmText })
7361
7325
  ] })
7362
7326
  }
7363
7327
  );
@@ -7366,57 +7330,17 @@ var AlertModal = ({
7366
7330
  // src/shared/breadcrumbs.tsx
7367
7331
  import { Slash } from "lucide-react";
7368
7332
  import { Fragment } from "react";
7369
- import { jsx as jsx46, jsxs as jsxs19 } from "react/jsx-runtime";
7333
+ import { jsx as jsx47, jsxs as jsxs20 } from "react/jsx-runtime";
7370
7334
  function Breadcrumbs({ items, className, classNameList }) {
7371
- return /* @__PURE__ */ jsx46(Breadcrumb, { className, children: /* @__PURE__ */ jsx46(BreadcrumbList, { className: classNameList, children: items.map((item, index) => /* @__PURE__ */ jsxs19(Fragment, { children: [
7372
- index !== items.length - 1 && /* @__PURE__ */ jsx46(BreadcrumbItem, { className: item.className, children: /* @__PURE__ */ jsx46(BreadcrumbLink, { href: item.link, children: item.title }) }),
7373
- index < items.length - 1 && /* @__PURE__ */ jsx46(BreadcrumbSeparator, { children: /* @__PURE__ */ jsx46(Slash, {}) }),
7374
- index === items.length - 1 && /* @__PURE__ */ jsx46(BreadcrumbPage, { children: item.title })
7335
+ return /* @__PURE__ */ jsx47(Breadcrumb, { className, children: /* @__PURE__ */ jsx47(BreadcrumbList, { className: classNameList, children: items.map((item, index) => /* @__PURE__ */ jsxs20(Fragment, { children: [
7336
+ index !== items.length - 1 && /* @__PURE__ */ jsx47(BreadcrumbItem, { className: item.className, children: /* @__PURE__ */ jsx47(BreadcrumbLink, { href: item.link, children: item.title }) }),
7337
+ index < items.length - 1 && /* @__PURE__ */ jsx47(BreadcrumbSeparator, { children: /* @__PURE__ */ jsx47(Slash, {}) }),
7338
+ index === items.length - 1 && /* @__PURE__ */ jsx47(BreadcrumbPage, { children: item.title })
7375
7339
  ] }, item.title)) }) });
7376
7340
  }
7377
7341
 
7378
- // src/shared/data-table-skeleton.tsx
7379
- import { jsx as jsx47, jsxs as jsxs20 } from "react/jsx-runtime";
7380
- function DataTableSkeleton({
7381
- columnCount,
7382
- rowCount = 10,
7383
- searchableColumnCount = 0,
7384
- filterableColumnCount = 0,
7385
- showViewOptions = true
7386
- }) {
7387
- return /* @__PURE__ */ jsxs20("div", { className: "w-full space-y-3 overflow-auto", children: [
7388
- /* @__PURE__ */ jsxs20("div", { className: "flex w-full items-center justify-between space-x-2 overflow-auto p-1", children: [
7389
- /* @__PURE__ */ jsxs20("div", { className: "flex flex-1 items-center space-x-2 space-y-4", children: [
7390
- searchableColumnCount > 0 ? Array.from({ length: searchableColumnCount }).map((_, i) => /* @__PURE__ */ jsx47(Skeleton, { className: "h-10 w-[150px] lg:w-[250px]" }, i)) : null,
7391
- filterableColumnCount > 0 ? Array.from({ length: filterableColumnCount }).map((_, i) => /* @__PURE__ */ jsx47(Skeleton, { className: "h-10 w-[70px] border-dashed" }, i)) : null
7392
- ] }),
7393
- showViewOptions ? /* @__PURE__ */ jsx47(Skeleton, { className: "ml-auto hidden h-7 w-[70px] lg:flex" }) : null
7394
- ] }),
7395
- /* @__PURE__ */ jsx47("div", { className: "rounded-md border", children: /* @__PURE__ */ jsxs20(Table, { children: [
7396
- /* @__PURE__ */ jsx47(TableHeader, { children: Array.from({ length: 1 }).map((_, i) => /* @__PURE__ */ jsx47(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ jsx47(TableHead, { children: /* @__PURE__ */ jsx47(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) }),
7397
- /* @__PURE__ */ jsx47(TableBody, { children: Array.from({ length: rowCount }).map((_, i) => /* @__PURE__ */ jsx47(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ jsx47(TableCell, { children: /* @__PURE__ */ jsx47(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) })
7398
- ] }) }),
7399
- /* @__PURE__ */ jsxs20("div", { className: "flex w-full flex-col items-center justify-between gap-4 overflow-auto px-2 py-1 sm:flex-row sm:gap-8", children: [
7400
- /* @__PURE__ */ jsx47("div", { className: "flex-1", children: /* @__PURE__ */ jsx47(Skeleton, { className: "h-8 w-40" }) }),
7401
- /* @__PURE__ */ jsxs20("div", { className: "flex flex-col items-center gap-4 sm:flex-row sm:gap-6 lg:gap-8", children: [
7402
- /* @__PURE__ */ jsxs20("div", { className: "flex items-center space-x-2", children: [
7403
- /* @__PURE__ */ jsx47(Skeleton, { className: "h-8 w-24" }),
7404
- /* @__PURE__ */ jsx47(Skeleton, { className: "h-8 w-[70px]" })
7405
- ] }),
7406
- /* @__PURE__ */ jsx47("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: /* @__PURE__ */ jsx47(Skeleton, { className: "h-8 w-20" }) }),
7407
- /* @__PURE__ */ jsxs20("div", { className: "flex items-center space-x-2", children: [
7408
- /* @__PURE__ */ jsx47(Skeleton, { className: "hidden size-8 lg:block" }),
7409
- /* @__PURE__ */ jsx47(Skeleton, { className: "size-8" }),
7410
- /* @__PURE__ */ jsx47(Skeleton, { className: "size-8" }),
7411
- /* @__PURE__ */ jsx47(Skeleton, { className: "hidden size-8 lg:block" })
7412
- ] })
7413
- ] })
7414
- ] })
7415
- ] });
7416
- }
7417
-
7418
7342
  // src/shared/data-table.tsx
7419
- import React68, { useEffect as useEffect4 } from "react";
7343
+ import React67, { useEffect as useEffect4 } from "react";
7420
7344
  import {
7421
7345
  DoubleArrowLeftIcon,
7422
7346
  DoubleArrowRightIcon
@@ -7450,7 +7374,7 @@ function DataTable({
7450
7374
  onPageChange,
7451
7375
  onClick
7452
7376
  }) {
7453
- const [pagination, setPagination] = React68.useState({
7377
+ const [pagination, setPagination] = React67.useState({
7454
7378
  pageIndex: Math.max(page - 1, 0),
7455
7379
  pageSize: perPage
7456
7380
  });
@@ -7466,6 +7390,11 @@ function DataTable({
7466
7390
  manualPagination: true,
7467
7391
  manualFiltering: true
7468
7392
  });
7393
+ const onClickItem = (row) => {
7394
+ if (onClick) {
7395
+ onClick(row);
7396
+ }
7397
+ };
7469
7398
  useEffect4(() => {
7470
7399
  if (onPageChange) {
7471
7400
  onPageChange(pagination.pageIndex);
@@ -7489,7 +7418,7 @@ function DataTable({
7489
7418
  TableRow,
7490
7419
  {
7491
7420
  "data-state": row.getIsSelected() ? "selected" : void 0,
7492
- onClick: () => onClick(row.original),
7421
+ onClick: () => onClickItem(row.original),
7493
7422
  className: rowClassName,
7494
7423
  children: row.getVisibleCells().map((cell) => /* @__PURE__ */ jsx48(TableCell, { className: cellClassName, children: flexRender(
7495
7424
  cell.column.columnDef.cell,
@@ -7600,12 +7529,52 @@ function DataTable({
7600
7529
  ] });
7601
7530
  }
7602
7531
 
7532
+ // src/shared/data-table-skeleton.tsx
7533
+ import { jsx as jsx49, jsxs as jsxs22 } from "react/jsx-runtime";
7534
+ function DataTableSkeleton({
7535
+ columnCount,
7536
+ rowCount = 10,
7537
+ searchableColumnCount = 0,
7538
+ filterableColumnCount = 0,
7539
+ showViewOptions = true
7540
+ }) {
7541
+ return /* @__PURE__ */ jsxs22("div", { className: "w-full space-y-3 overflow-auto", children: [
7542
+ /* @__PURE__ */ jsxs22("div", { className: "flex w-full items-center justify-between space-x-2 overflow-auto p-1", children: [
7543
+ /* @__PURE__ */ jsxs22("div", { className: "flex flex-1 items-center space-x-2 space-y-4", children: [
7544
+ searchableColumnCount > 0 ? Array.from({ length: searchableColumnCount }).map((_, i) => /* @__PURE__ */ jsx49(Skeleton, { className: "h-10 w-[150px] lg:w-[250px]" }, i)) : null,
7545
+ filterableColumnCount > 0 ? Array.from({ length: filterableColumnCount }).map((_, i) => /* @__PURE__ */ jsx49(Skeleton, { className: "h-10 w-[70px] border-dashed" }, i)) : null
7546
+ ] }),
7547
+ showViewOptions ? /* @__PURE__ */ jsx49(Skeleton, { className: "ml-auto hidden h-7 w-[70px] lg:flex" }) : null
7548
+ ] }),
7549
+ /* @__PURE__ */ jsx49("div", { className: "rounded-md border", children: /* @__PURE__ */ jsxs22(Table, { children: [
7550
+ /* @__PURE__ */ jsx49(TableHeader, { children: Array.from({ length: 1 }).map((_, i) => /* @__PURE__ */ jsx49(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ jsx49(TableHead, { children: /* @__PURE__ */ jsx49(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) }),
7551
+ /* @__PURE__ */ jsx49(TableBody, { children: Array.from({ length: rowCount }).map((_, i) => /* @__PURE__ */ jsx49(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ jsx49(TableCell, { children: /* @__PURE__ */ jsx49(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) })
7552
+ ] }) }),
7553
+ /* @__PURE__ */ jsxs22("div", { className: "flex w-full flex-col items-center justify-between gap-4 overflow-auto px-2 py-1 sm:flex-row sm:gap-8", children: [
7554
+ /* @__PURE__ */ jsx49("div", { className: "flex-1", children: /* @__PURE__ */ jsx49(Skeleton, { className: "h-8 w-40" }) }),
7555
+ /* @__PURE__ */ jsxs22("div", { className: "flex flex-col items-center gap-4 sm:flex-row sm:gap-6 lg:gap-8", children: [
7556
+ /* @__PURE__ */ jsxs22("div", { className: "flex items-center space-x-2", children: [
7557
+ /* @__PURE__ */ jsx49(Skeleton, { className: "h-8 w-24" }),
7558
+ /* @__PURE__ */ jsx49(Skeleton, { className: "h-8 w-[70px]" })
7559
+ ] }),
7560
+ /* @__PURE__ */ jsx49("div", { className: "flex w-[100px] items-center justify-center text-sm font-medium", children: /* @__PURE__ */ jsx49(Skeleton, { className: "h-8 w-20" }) }),
7561
+ /* @__PURE__ */ jsxs22("div", { className: "flex items-center space-x-2", children: [
7562
+ /* @__PURE__ */ jsx49(Skeleton, { className: "hidden size-8 lg:block" }),
7563
+ /* @__PURE__ */ jsx49(Skeleton, { className: "size-8" }),
7564
+ /* @__PURE__ */ jsx49(Skeleton, { className: "size-8" }),
7565
+ /* @__PURE__ */ jsx49(Skeleton, { className: "hidden size-8 lg:block" })
7566
+ ] })
7567
+ ] })
7568
+ ] })
7569
+ ] });
7570
+ }
7571
+
7603
7572
  // src/shared/fileupload.tsx
7604
7573
  import { AvatarIcon } from "@radix-ui/react-icons";
7605
7574
  import { CameraIcon } from "lucide-react";
7606
7575
  import { useEffect as useEffect5, useState as useState5 } from "react";
7607
7576
  import { useDropzone } from "react-dropzone";
7608
- import { jsx as jsx49, jsxs as jsxs22 } from "react/jsx-runtime";
7577
+ import { jsx as jsx50, jsxs as jsxs23 } from "react/jsx-runtime";
7609
7578
  function FileUpload({
7610
7579
  onChange,
7611
7580
  value,
@@ -7623,18 +7592,18 @@ function FileUpload({
7623
7592
  const onUpdateFile = (newFiles) => {
7624
7593
  onChange(newFiles);
7625
7594
  };
7626
- return /* @__PURE__ */ jsx49("div", { className: cn("flex items-center justify-center", className), children: /* @__PURE__ */ jsx49(
7595
+ return /* @__PURE__ */ jsx50("div", { className: cn("flex items-center justify-center", className), children: /* @__PURE__ */ jsx50(
7627
7596
  "div",
7628
7597
  {
7629
7598
  className: cn(
7630
7599
  "relative h-36 w-36 overflow-hidden rounded-full bg-gray-200 shadow-2xl ",
7631
7600
  classNameContent
7632
7601
  ),
7633
- children: /* @__PURE__ */ jsxs22("div", __spreadProps(__spreadValues({}, getRootProps({ className: "dropzone cursor-pointer" })), { children: [
7634
- /* @__PURE__ */ jsx49("input", __spreadValues({}, getInputProps())),
7635
- value && !!value.length ? /* @__PURE__ */ jsx49(ImagePreview, { file: value[0] }) : /* @__PURE__ */ jsx49(AvatarIcon, { className: "h-36 w-36 text-gray-100" }),
7636
- /* @__PURE__ */ jsxs22("p", { className: "absolute -bottom-5 left-1/2 flex w-full -translate-x-1/2 -translate-y-1/2 transform flex-col items-center justify-center bg-gray-300 bg-opacity-50 py-1 text-xs font-normal text-muted-foreground ", children: [
7637
- /* @__PURE__ */ jsx49(CameraIcon, { className: "h-4 w-4 text-muted-foreground" }),
7602
+ children: /* @__PURE__ */ jsxs23("div", __spreadProps(__spreadValues({}, getRootProps({ className: "dropzone cursor-pointer" })), { children: [
7603
+ /* @__PURE__ */ jsx50("input", __spreadValues({}, getInputProps())),
7604
+ value && !!value.length ? /* @__PURE__ */ jsx50(ImagePreview, { file: value[0] }) : /* @__PURE__ */ jsx50(AvatarIcon, { className: "h-36 w-36 text-gray-100" }),
7605
+ /* @__PURE__ */ jsxs23("p", { className: "absolute -bottom-5 left-1/2 flex w-full -translate-x-1/2 -translate-y-1/2 transform flex-col items-center justify-center bg-gray-300 bg-opacity-50 py-1 text-xs font-normal text-muted-foreground ", children: [
7606
+ /* @__PURE__ */ jsx50(CameraIcon, { className: "h-4 w-4 text-muted-foreground" }),
7638
7607
  label
7639
7608
  ] })
7640
7609
  ] }))
@@ -7650,7 +7619,7 @@ function ImagePreview({ file }) {
7650
7619
  URL.revokeObjectURL(url);
7651
7620
  };
7652
7621
  }, [file]);
7653
- return objectUrl ? /* @__PURE__ */ jsx49(
7622
+ return objectUrl ? /* @__PURE__ */ jsx50(
7654
7623
  "img",
7655
7624
  {
7656
7625
  src: objectUrl,
@@ -7661,19 +7630,19 @@ function ImagePreview({ file }) {
7661
7630
  }
7662
7631
 
7663
7632
  // src/shared/heading.tsx
7664
- import { jsx as jsx50, jsxs as jsxs23 } from "react/jsx-runtime";
7633
+ import { jsx as jsx51, jsxs as jsxs24 } from "react/jsx-runtime";
7665
7634
  function Heading({ title, description, className }) {
7666
- return /* @__PURE__ */ jsxs23("div", { className, children: [
7667
- /* @__PURE__ */ jsx50("h2", { className: "text-xl font-bold tracking-tight text-primary sm:text-3xl", children: title }),
7668
- /* @__PURE__ */ jsx50("p", { className: "text-sm text-muted-foreground", children: description })
7635
+ return /* @__PURE__ */ jsxs24("div", { className, children: [
7636
+ /* @__PURE__ */ jsx51("h2", { className: "text-xl font-bold tracking-tight text-primary sm:text-3xl", children: title }),
7637
+ /* @__PURE__ */ jsx51("p", { className: "text-sm text-muted-foreground", children: description })
7669
7638
  ] });
7670
7639
  }
7671
7640
 
7672
7641
  // src/shared/page-head.tsx
7673
7642
  import { Helmet } from "react-helmet-next";
7674
- import { jsx as jsx51, jsxs as jsxs24 } from "react/jsx-runtime";
7643
+ import { jsx as jsx52, jsxs as jsxs25 } from "react/jsx-runtime";
7675
7644
  function PageHead({ title = "shadcn-ui-react" }) {
7676
- return /* @__PURE__ */ jsx51(Helmet, { children: /* @__PURE__ */ jsxs24("title", { children: [
7645
+ return /* @__PURE__ */ jsx52(Helmet, { children: /* @__PURE__ */ jsxs25("title", { children: [
7677
7646
  " ",
7678
7647
  title,
7679
7648
  " "
@@ -7681,7 +7650,7 @@ function PageHead({ title = "shadcn-ui-react" }) {
7681
7650
  }
7682
7651
 
7683
7652
  // src/shared/pagination-section.tsx
7684
- import { jsx as jsx52, jsxs as jsxs25 } from "react/jsx-runtime";
7653
+ import { jsx as jsx53, jsxs as jsxs26 } from "react/jsx-runtime";
7685
7654
  function PaginationSection({
7686
7655
  totalPosts,
7687
7656
  postsPerPage,
@@ -7719,17 +7688,17 @@ function PaginationSection({
7719
7688
  }
7720
7689
  };
7721
7690
  const renderPages = () => {
7722
- const renderedPages = activePages.map((page, idx) => /* @__PURE__ */ jsx52(
7691
+ const renderedPages = activePages.map((page, idx) => /* @__PURE__ */ jsx53(
7723
7692
  PaginationItem,
7724
7693
  {
7725
7694
  className: currentPage === page ? "rounded-md bg-primary" : "",
7726
- children: /* @__PURE__ */ jsx52(PaginationLink, { onClick: () => setCurrentPage(page), size: void 0, children: page })
7695
+ children: /* @__PURE__ */ jsx53(PaginationLink, { onClick: () => setCurrentPage(page), size: void 0, children: page })
7727
7696
  },
7728
7697
  idx
7729
7698
  ));
7730
7699
  if (activePages[0] > 1) {
7731
7700
  renderedPages.unshift(
7732
- /* @__PURE__ */ jsx52(
7701
+ /* @__PURE__ */ jsx53(
7733
7702
  PaginationEllipsis,
7734
7703
  {
7735
7704
  onClick: () => setCurrentPage(activePages[0] - 1)
@@ -7740,7 +7709,7 @@ function PaginationSection({
7740
7709
  }
7741
7710
  if (activePages[activePages.length - 1] < pageNumbers.length) {
7742
7711
  renderedPages.push(
7743
- /* @__PURE__ */ jsx52(
7712
+ /* @__PURE__ */ jsx53(
7744
7713
  PaginationEllipsis,
7745
7714
  {
7746
7715
  onClick: () => setCurrentPage(activePages[activePages.length - 1] + 1)
@@ -7751,21 +7720,21 @@ function PaginationSection({
7751
7720
  }
7752
7721
  return renderedPages;
7753
7722
  };
7754
- return /* @__PURE__ */ jsx52("div", { className: "p-4", children: /* @__PURE__ */ jsx52(Pagination, { children: /* @__PURE__ */ jsxs25(PaginationContent, { children: [
7755
- /* @__PURE__ */ jsxs25(PaginationItem, { children: [
7756
- /* @__PURE__ */ jsx52(
7723
+ return /* @__PURE__ */ jsx53("div", { className: "p-4", children: /* @__PURE__ */ jsx53(Pagination, { children: /* @__PURE__ */ jsxs26(PaginationContent, { children: [
7724
+ /* @__PURE__ */ jsxs26(PaginationItem, { children: [
7725
+ /* @__PURE__ */ jsx53(
7757
7726
  PaginationPreviousLast,
7758
7727
  {
7759
7728
  onClick: handlePrevPageLast,
7760
7729
  size: void 0
7761
7730
  }
7762
7731
  ),
7763
- /* @__PURE__ */ jsx52(PaginationPrevious, { onClick: handlePrevPage, size: void 0 })
7732
+ /* @__PURE__ */ jsx53(PaginationPrevious, { onClick: handlePrevPage, size: void 0 })
7764
7733
  ] }),
7765
7734
  renderPages(),
7766
- /* @__PURE__ */ jsxs25(PaginationItem, { children: [
7767
- /* @__PURE__ */ jsx52(PaginationNext, { onClick: handleNextPage, size: void 0 }),
7768
- /* @__PURE__ */ jsx52(PaginationNextLast, { onClick: handleNextPageLast, size: void 0 })
7735
+ /* @__PURE__ */ jsxs26(PaginationItem, { children: [
7736
+ /* @__PURE__ */ jsx53(PaginationNext, { onClick: handleNextPage, size: void 0 }),
7737
+ /* @__PURE__ */ jsx53(PaginationNextLast, { onClick: handleNextPageLast, size: void 0 })
7769
7738
  ] })
7770
7739
  ] }) }) });
7771
7740
  }