shadcn-ui-react 0.7.7 → 0.7.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.cjs CHANGED
@@ -306,15 +306,13 @@ __export(index_exports, {
306
306
  buttonVariants: () => buttonVariants,
307
307
  cn: () => cn,
308
308
  iconButtonVariants: () => iconButtonVariants,
309
- inputVariants: () => inputVariants,
310
309
  navigationMenuTriggerStyle: () => navigationMenuTriggerStyle,
311
310
  reducer: () => reducer,
312
311
  toast: () => toast,
313
312
  toggleVariants: () => toggleVariants,
314
313
  useFormField: () => useFormField,
315
314
  useSidebar: () => useSidebar,
316
- useToast: () => useToast,
317
- variants: () => variants
315
+ useToast: () => useToast
318
316
  });
319
317
  module.exports = __toCommonJS(index_exports);
320
318
 
@@ -6589,7 +6587,7 @@ function Form({
6589
6587
  }
6590
6588
 
6591
6589
  // src/components/Form/form-checkbox.tsx
6592
- var React47 = __toESM(require("react"), 1);
6590
+ var React46 = __toESM(require("react"), 1);
6593
6591
  var import_lucide_react4 = require("lucide-react");
6594
6592
  var import_react_hook_form3 = require("react-hook-form");
6595
6593
 
@@ -6614,13 +6612,109 @@ var Label3 = React43.forwardRef((_a, ref) => {
6614
6612
  Label3.displayName = LabelPrimitive.Root.displayName;
6615
6613
 
6616
6614
  // src/components/Form/form-field.tsx
6617
- var React46 = __toESM(require("react"), 1);
6615
+ var React45 = __toESM(require("react"), 1);
6618
6616
  var import_react_slot4 = require("@radix-ui/react-slot");
6619
6617
  var import_lucide_react3 = require("lucide-react");
6620
6618
  var import_react_hook_form2 = require("react-hook-form");
6621
6619
 
6622
6620
  // src/components/input.tsx
6623
6621
  var React44 = __toESM(require("react"), 1);
6622
+
6623
+ // src/components/Form/utils/form-utils.ts
6624
+ var formInputVariants = {
6625
+ outline: "rounded-md border border-input bg-input backdrop-blur-sm shadow-sm hover:border-primary/60 focus:border-primary focus:ring-2 focus:ring-primary/20",
6626
+ soft: "rounded-md border border-transparent bg-muted/60 shadow-sm hover:bg-muted focus:bg-input/80 focus:ring-2 focus:ring-primary/20",
6627
+ ghost: "rounded-md border border-transparent bg-transparent hover:bg-muted/50 focus:ring-2 focus:ring-ring",
6628
+ filled: "rounded-md border border-input bg-muted/70 shadow-inner hover:bg-muted focus:bg-input/70 focus:ring-2 focus:ring-primary/20",
6629
+ flushed: "rounded-none border-0 border-b border-input px-0 shadow-none focus:border-b-2 focus:border-primary focus:ring-0",
6630
+ unstyled: "border-0 shadow-none focus:ring-0",
6631
+ link: "h-auto border-0 bg-transparent p-0 text-primary shadow-none underline-offset-4 focus:underline focus:ring-0"
6632
+ };
6633
+ var variants = formInputVariants;
6634
+ var formSizeVariants = {
6635
+ "2xs": {
6636
+ control: "h-7 px-2 text-xs",
6637
+ flushedControl: "h-7 text-xs",
6638
+ linkControl: "text-xs",
6639
+ selectItem: "h-7 text-xs",
6640
+ searchInput: "h-7 px-2 text-xs",
6641
+ checkbox: "size-3",
6642
+ label: "text-xs",
6643
+ description: "text-xs",
6644
+ message: "text-xs"
6645
+ },
6646
+ xs: {
6647
+ control: "h-8 px-2.5 text-xs",
6648
+ flushedControl: "h-8 text-xs",
6649
+ linkControl: "text-xs",
6650
+ selectItem: "h-8 text-xs",
6651
+ searchInput: "h-8 px-2.5 text-xs",
6652
+ checkbox: "size-3.5",
6653
+ label: "text-xs",
6654
+ description: "text-xs",
6655
+ message: "text-xs"
6656
+ },
6657
+ sm: {
6658
+ control: "h-9 px-3 text-sm",
6659
+ flushedControl: "h-9 text-sm",
6660
+ linkControl: "text-sm",
6661
+ selectItem: "h-8 text-sm",
6662
+ searchInput: "h-9 px-3 text-sm",
6663
+ checkbox: "size-4",
6664
+ label: "text-sm",
6665
+ description: "text-sm",
6666
+ message: "text-sm"
6667
+ },
6668
+ md: {
6669
+ control: "h-10 px-3.5 text-sm",
6670
+ flushedControl: "h-10 text-sm",
6671
+ linkControl: "text-sm",
6672
+ selectItem: "h-9 text-sm",
6673
+ searchInput: "h-10 px-3.5 text-sm",
6674
+ checkbox: "size-4",
6675
+ label: "text-sm",
6676
+ description: "text-sm",
6677
+ message: "text-sm"
6678
+ },
6679
+ lg: {
6680
+ control: "h-11 px-4 text-base",
6681
+ flushedControl: "h-11 text-base",
6682
+ linkControl: "text-base",
6683
+ selectItem: "h-10 text-base",
6684
+ searchInput: "h-11 px-4 text-base",
6685
+ checkbox: "size-5",
6686
+ label: "text-base",
6687
+ description: "text-sm",
6688
+ message: "text-sm"
6689
+ },
6690
+ xl: {
6691
+ control: "h-12 px-4 text-base",
6692
+ flushedControl: "h-12 text-base",
6693
+ linkControl: "text-base",
6694
+ selectItem: "h-11 text-base",
6695
+ searchInput: "h-12 px-4 text-base",
6696
+ checkbox: "size-6",
6697
+ label: "text-base",
6698
+ description: "text-sm",
6699
+ message: "text-sm"
6700
+ },
6701
+ "2xl": {
6702
+ control: "h-14 px-5 text-lg",
6703
+ flushedControl: "h-14 text-lg",
6704
+ linkControl: "text-lg",
6705
+ selectItem: "h-12 text-lg",
6706
+ searchInput: "h-14 px-5 text-lg",
6707
+ checkbox: "size-7",
6708
+ label: "text-lg",
6709
+ description: "text-base",
6710
+ message: "text-base"
6711
+ }
6712
+ };
6713
+ function getFormSizeClasses(size = "md", customSize) {
6714
+ return __spreadValues(__spreadValues({}, formSizeVariants[size]), customSize);
6715
+ }
6716
+
6717
+ // src/components/input.tsx
6624
6718
  var import_jsx_runtime20 = require("react/jsx-runtime");
6625
6719
  var Input = React44.forwardRef(
6626
6720
  (_a, ref) => {
@@ -6628,6 +6722,7 @@ var Input = React44.forwardRef(
6628
6722
  className,
6629
6723
  variant = "outline",
6630
6724
  size = "md",
6725
+ customSize,
6631
6726
  leading,
6632
6727
  trailing,
6633
6728
  classNameDefault = true,
@@ -6637,45 +6732,32 @@ var Input = React44.forwardRef(
6637
6732
  "className",
6638
6733
  "variant",
6639
6734
  "size",
6735
+ "customSize",
6640
6736
  "leading",
6641
6737
  "trailing",
6642
6738
  "classNameDefault",
6643
6739
  "invalid",
6644
6740
  "disabled"
6645
6741
  ]);
6646
- const base = "block w-full bg-transparent text-foreground placeholder:text-muted-foreground outline-none transition disabled:opacity-50 disabled:cursor-not-allowed";
6647
- const sizeCls = size === "sm" ? "h-9 px-3 text-sm" : size === "lg" ? "h-11 px-4 text-base" : "h-10 px-3.5 text-sm";
6648
- const variants3 = {
6649
- outline: "rounded-md border border-input bg-input backdrop-blur-sm shadow-sm hover:border-primary/60 focus:border-primary focus:ring-2 focus:ring-primary/20",
6650
- soft: "rounded-md border border-transparent bg-muted/60 hover:bg-muted shadow-sm focus:bg-input/80 focus:ring-2 focus:ring-primary/20",
6651
- ghost: "rounded-md border border-transparent bg-transparent hover:bg-muted/50 focus:ring-2 focus:ring-ring",
6652
- filled: "rounded-md border border-input bg-muted/70 hover:bg-muted shadow-inner focus:bg-input/70 focus:ring-2 focus:ring-primary/20",
6653
- flushed: (
6654
- // sin bordes laterales/superior, solo inferior; sin sombras ni radios
6655
- "rounded-none border-0 border-b border-input px-0 shadow-none focus:border-b-2 focus:border-primary focus:ring-0"
6656
- ),
6657
- unstyled: (
6658
- // sin estilos, útil para inputs embebidos o controles muy custom
6659
- "border-0 shadow-none focus:ring-0"
6660
- ),
6661
- link: (
6662
- // aspecto tipo enlace: inline height-auto, sin paddings ni borde
6663
- "border-0 p-0 h-auto shadow-none bg-transparent text-primary underline-offset-4 focus:underline focus:ring-0"
6664
- )
6665
- };
6666
- const errorCls = invalid ? "border-destructive focus:border-destructive focus:ring-destructive/20" : "";
6667
- const iconPadLeft = leading && variant !== "flushed" && variant !== "link" ? size === "lg" ? "pl-12" : "pl-10" : "";
6668
- const iconPadRight = trailing && variant !== "flushed" && variant !== "link" ? size === "lg" ? "pr-12" : "pr-10" : "";
6669
- const specialSizeForFlushed = variant === "flushed" ? size === "sm" ? "h-9 text-sm" : size === "lg" ? "h-11 text-base" : "h-10 text-sm" : "";
6670
- const specialSizeForLink = variant === "link" ? "text-sm" : "";
6742
+ const sizeClasses = getFormSizeClasses(size, customSize);
6743
+ const base = "block w-full bg-transparent text-foreground placeholder:text-muted-foreground outline-none transition disabled:cursor-not-allowed disabled:opacity-50";
6744
+ const inputSizeClass = variant === "flushed" ? sizeClasses.flushedControl : variant === "link" ? sizeClasses.linkControl : sizeClasses.control;
6745
+ const errorClass = invalid ? "border-destructive focus:border-destructive focus:ring-destructive/20" : "";
6746
+ const hasIconPadding = variant !== "flushed" && variant !== "link";
6747
+ const iconPaddingLeft = leading && hasIconPadding ? size === "xl" || size === "2xl" ? "pl-14" : size === "lg" ? "pl-12" : size === "2xs" || size === "xs" ? "pl-8" : "pl-10" : "";
6748
+ const iconPaddingRight = trailing && hasIconPadding ? size === "xl" || size === "2xl" ? "pr-14" : size === "lg" ? "pr-12" : size === "2xs" || size === "xs" ? "pr-8" : "pr-10" : "";
6749
+ const iconSizeClass = size === "2xl" ? "text-[1.3rem]" : size === "xl" ? "text-[1.2rem]" : size === "lg" ? "text-[1.15rem]" : size === "2xs" || size === "xs" ? "text-[0.85rem]" : "text-[1rem]";
6750
+ const iconPositionClass = size === "2xs" || size === "xs" ? "left-2" : size === "xl" || size === "2xl" ? "left-4" : "left-3";
6751
+ const trailingIconPositionClass = size === "2xs" || size === "xs" ? "right-2" : size === "xl" || size === "2xl" ? "right-4" : "right-3";
6671
6752
  return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)("div", { className: cn("relative", disabled && "opacity-80"), children: [
6672
6753
  leading ? /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
6673
6754
  "span",
6674
6755
  {
6675
6756
  className: cn(
6676
- "pointer-events-none absolute left-3 top-1/2 -translate-y-1/2 opacity-60",
6677
- size === "lg" ? "text-[1.15rem]" : "text-[1rem]",
6678
- variant === "flushed" || variant === "link" ? "hidden" : ""
6757
+ "pointer-events-none absolute top-1/2 -translate-y-1/2 opacity-60",
6758
+ iconPositionClass,
6759
+ iconSizeClass,
6760
+ !hasIconPadding && "hidden"
6679
6761
  ),
6680
6762
  children: leading
6681
6763
  }
@@ -6688,11 +6770,11 @@ var Input = React44.forwardRef(
6688
6770
  disabled,
6689
6771
  className: classNameDefault ? cn(
6690
6772
  base,
6691
- variants3[variant],
6692
- variant === "flushed" ? specialSizeForFlushed : variant === "link" ? specialSizeForLink : sizeCls,
6693
- errorCls,
6694
- iconPadLeft,
6695
- iconPadRight,
6773
+ formInputVariants[variant],
6774
+ inputSizeClass,
6775
+ errorClass,
6776
+ iconPaddingLeft,
6777
+ iconPaddingRight,
6696
6778
  className
6697
6779
  ) : className,
6698
6780
  "data-private": true
@@ -6702,9 +6784,10 @@ var Input = React44.forwardRef(
6702
6784
  "span",
6703
6785
  {
6704
6786
  className: cn(
6705
- "absolute right-3 top-1/2 -translate-y-1/2 opacity-70",
6706
- size === "lg" ? "text-[1.15rem]" : "text-[1rem]",
6707
- variant === "flushed" || variant === "link" ? "hidden" : ""
6787
+ "absolute top-1/2 -translate-y-1/2 opacity-70",
6788
+ trailingIconPositionClass,
6789
+ iconSizeClass,
6790
+ !hasIconPadding && "hidden"
6708
6791
  ),
6709
6792
  children: trailing
6710
6793
  }
@@ -6714,151 +6797,9 @@ var Input = React44.forwardRef(
6714
6797
  );
6715
6798
  Input.displayName = "Input";
6716
6799
 
6717
- // src/components/select.tsx
6718
- var import_react_icons9 = require("@radix-ui/react-icons");
6719
- var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
6720
- var React45 = __toESM(require("react"), 1);
6721
- var import_jsx_runtime21 = require("react/jsx-runtime");
6722
- var Select2 = SelectPrimitive.Root;
6723
- var SelectGroup = SelectPrimitive.Group;
6724
- var SelectValue = SelectPrimitive.Value;
6725
- var SelectTrigger = React45.forwardRef((_a, ref) => {
6726
- var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6727
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
6728
- SelectPrimitive.Trigger,
6729
- __spreadProps(__spreadValues({
6730
- ref,
6731
- className: cn(
6732
- "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
6733
- className
6734
- )
6735
- }, props), {
6736
- children: [
6737
- children,
6738
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_icons9.CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
6739
- ]
6740
- })
6741
- );
6742
- });
6743
- SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
6744
- var SelectScrollUpButton = React45.forwardRef((_a, ref) => {
6745
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6746
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6747
- SelectPrimitive.ScrollUpButton,
6748
- __spreadProps(__spreadValues({
6749
- ref,
6750
- className: cn(
6751
- "flex cursor-default items-center justify-center py-1",
6752
- className
6753
- )
6754
- }, props), {
6755
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_icons9.ChevronUpIcon, {})
6756
- })
6757
- );
6758
- });
6759
- SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
6760
- var SelectScrollDownButton = React45.forwardRef((_a, ref) => {
6761
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6762
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6763
- SelectPrimitive.ScrollDownButton,
6764
- __spreadProps(__spreadValues({
6765
- ref,
6766
- className: cn(
6767
- "flex cursor-default items-center justify-center py-1",
6768
- className
6769
- )
6770
- }, props), {
6771
- children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_icons9.ChevronDownIcon, {})
6772
- })
6773
- );
6774
- });
6775
- SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
6776
- var SelectContent = React45.forwardRef((_a, ref) => {
6777
- var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
6778
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
6779
- SelectPrimitive.Content,
6780
- __spreadProps(__spreadValues({
6781
- ref,
6782
- className: cn(
6783
- "relative z-50 max-h-96 min-w-32 overflow-hidden bg-popover border border-border text-popover-foreground rounded-md shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
6784
- position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
6785
- className
6786
- ),
6787
- position
6788
- }, props), {
6789
- children: [
6790
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectScrollUpButton, {}),
6791
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6792
- SelectPrimitive.Viewport,
6793
- {
6794
- className: cn(
6795
- "p-1",
6796
- position === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"
6797
- ),
6798
- children
6799
- }
6800
- ),
6801
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectScrollDownButton, {})
6802
- ]
6803
- })
6804
- ) });
6805
- });
6806
- SelectContent.displayName = SelectPrimitive.Content.displayName;
6807
- var SelectLabel = React45.forwardRef((_a, ref) => {
6808
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6809
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6810
- SelectPrimitive.Label,
6811
- __spreadValues({
6812
- ref,
6813
- className: cn("px-2 py-1.5 text-sm font-semibold", className)
6814
- }, props)
6815
- );
6816
- });
6817
- SelectLabel.displayName = SelectPrimitive.Label.displayName;
6818
- var SelectItem = React45.forwardRef((_a, ref) => {
6819
- var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
6820
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
6821
- SelectPrimitive.Item,
6822
- __spreadProps(__spreadValues({
6823
- ref,
6824
- className: cn(
6825
- "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
6826
- className
6827
- )
6828
- }, props), {
6829
- children: [
6830
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_react_icons9.CheckIcon, { className: "h-4 w-4" }) }) }),
6831
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(SelectPrimitive.ItemText, { children })
6832
- ]
6833
- })
6834
- );
6835
- });
6836
- SelectItem.displayName = SelectPrimitive.Item.displayName;
6837
- var SelectSeparator = React45.forwardRef((_a, ref) => {
6838
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6839
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6840
- SelectPrimitive.Separator,
6841
- __spreadValues({
6842
- ref,
6843
- className: cn("-mx-1 my-1 h-px bg-muted", className)
6844
- }, props)
6845
- );
6846
- });
6847
- SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
6848
-
6849
6800
  // src/components/Form/form-field.tsx
6850
- var import_jsx_runtime22 = require("react/jsx-runtime");
6851
- var inputVariants = {
6852
- outline: "rounded-md border border-input bg-input backdrop-blur-sm shadow-sm hover:border-primary/60 focus:border-primary focus:ring-2 focus:ring-primary/20",
6853
- soft: "rounded-md border border-transparent bg-muted/60 shadow-sm hover:bg-muted focus:bg-input/80 focus:ring-2 focus:ring-primary/20",
6854
- ghost: "rounded-md border border-transparent bg-transparent hover:bg-muted/50 focus:ring-2 focus:ring-ring",
6855
- filled: "rounded-md border border-input bg-muted/70 shadow-inner hover:bg-muted focus:bg-input/70 focus:ring-2 focus:ring-primary/20",
6856
- flushed: "rounded-none border-0 border-b border-input px-0 shadow-none focus:border-b-2 focus:border-primary focus:ring-0",
6857
- unstyled: "border-0 shadow-none focus:ring-0",
6858
- link: "h-auto border-0 bg-transparent p-0 text-primary shadow-none underline-offset-4 focus:underline focus:ring-0"
6859
- };
6860
- var variants = inputVariants;
6861
- var FormFieldContext = React46.createContext(
6801
+ var import_jsx_runtime21 = require("react/jsx-runtime");
6802
+ var FormFieldContext = React45.createContext(
6862
6803
  null
6863
6804
  );
6864
6805
  function getErrorMessage(error) {
@@ -6880,6 +6821,7 @@ var FormField = (_a) => {
6880
6821
  requiredLabelClassName,
6881
6822
  variant = "outline",
6882
6823
  size = "md",
6824
+ customSize,
6883
6825
  rules,
6884
6826
  shouldUnregister,
6885
6827
  defaultValue,
@@ -6901,6 +6843,7 @@ var FormField = (_a) => {
6901
6843
  "requiredLabelClassName",
6902
6844
  "variant",
6903
6845
  "size",
6846
+ "customSize",
6904
6847
  "rules",
6905
6848
  "shouldUnregister",
6906
6849
  "defaultValue",
@@ -6911,7 +6854,7 @@ var FormField = (_a) => {
6911
6854
  ]);
6912
6855
  const form = (0, import_react_hook_form2.useFormContext)();
6913
6856
  const controllerControl = control != null ? control : form == null ? void 0 : form.control;
6914
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FormFieldContext.Provider, { value: { name }, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6857
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FormFieldContext.Provider, { value: { name }, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6915
6858
  import_react_hook_form2.Controller,
6916
6859
  {
6917
6860
  control: controllerControl,
@@ -6922,14 +6865,14 @@ var FormField = (_a) => {
6922
6865
  render: ({ field, fieldState }) => {
6923
6866
  var _a2;
6924
6867
  const fieldError = getErrorMessage(fieldState.error);
6925
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(FormItem, { className: itemClassName, children: [
6926
- label ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
6868
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(FormItem, { className: itemClassName, children: [
6869
+ label ? /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(
6927
6870
  FormLabel,
6928
6871
  {
6929
6872
  className: cn("flex items-center gap-0.5", labelClassName),
6930
6873
  children: [
6931
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: label }),
6932
- requiredLabel ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6874
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("span", { children: label }),
6875
+ requiredLabel ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6933
6876
  import_lucide_react3.Asterisk,
6934
6877
  {
6935
6878
  "aria-hidden": "true",
@@ -6942,7 +6885,7 @@ var FormField = (_a) => {
6942
6885
  ]
6943
6886
  }
6944
6887
  ) : null,
6945
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6888
+ /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
6946
6889
  Input,
6947
6890
  __spreadProps(__spreadValues(__spreadValues({}, field), inputProps), {
6948
6891
  value: (_a2 = field.value) != null ? _a2 : "",
@@ -6961,30 +6904,31 @@ var FormField = (_a) => {
6961
6904
  invalid: invalid || Boolean(fieldError),
6962
6905
  variant,
6963
6906
  size,
6907
+ customSize,
6964
6908
  placeholder,
6965
6909
  className: cn(className),
6966
6910
  classNameDefault
6967
6911
  })
6968
6912
  ) }),
6969
- fieldError ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FormMessage, { className: messageClassName, children: fieldError }) : null
6913
+ fieldError ? /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FormMessage, { className: messageClassName, children: fieldError }) : null
6970
6914
  ] });
6971
6915
  }
6972
6916
  }
6973
6917
  ) });
6974
6918
  };
6975
6919
  FormField.displayName = "FormField";
6976
- var FormItemContext = React46.createContext(null);
6977
- var FormItem = React46.forwardRef((_a, ref) => {
6920
+ var FormItemContext = React45.createContext(null);
6921
+ var FormItem = React45.forwardRef((_a, ref) => {
6978
6922
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
6979
- const id = React46.useId();
6980
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
6923
+ const id = React45.useId();
6924
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(FormItemContext.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime21.jsx)("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
6981
6925
  });
6982
6926
  FormItem.displayName = "FormItem";
6983
6927
  var useFormField = () => {
6984
6928
  var _a;
6985
- const generatedId = React46.useId();
6986
- const fieldContext = React46.useContext(FormFieldContext);
6987
- const itemContext = React46.useContext(FormItemContext);
6929
+ const generatedId = React45.useId();
6930
+ const fieldContext = React45.useContext(FormFieldContext);
6931
+ const itemContext = React45.useContext(FormItemContext);
6988
6932
  const formContext = (0, import_react_hook_form2.useFormContext)();
6989
6933
  const id = (_a = itemContext == null ? void 0 : itemContext.id) != null ? _a : generatedId;
6990
6934
  if (!fieldContext || !formContext) {
@@ -7008,10 +6952,10 @@ var useFormField = () => {
7008
6952
  formMessageId: `${id}-form-item-message`
7009
6953
  }, fieldState);
7010
6954
  };
7011
- var FormLabel = React46.forwardRef((_a, ref) => {
6955
+ var FormLabel = React45.forwardRef((_a, ref) => {
7012
6956
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7013
6957
  const { error, formItemId } = useFormField();
7014
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6958
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7015
6959
  Label3,
7016
6960
  __spreadValues({
7017
6961
  ref,
@@ -7021,10 +6965,10 @@ var FormLabel = React46.forwardRef((_a, ref) => {
7021
6965
  );
7022
6966
  });
7023
6967
  FormLabel.displayName = "FormLabel";
7024
- var FormControl = React46.forwardRef((_a, ref) => {
6968
+ var FormControl = React45.forwardRef((_a, ref) => {
7025
6969
  var props = __objRest(_a, []);
7026
6970
  const { error, formItemId, formDescriptionId, formMessageId } = useFormField();
7027
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6971
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7028
6972
  import_react_slot4.Slot,
7029
6973
  __spreadValues({
7030
6974
  ref,
@@ -7035,10 +6979,10 @@ var FormControl = React46.forwardRef((_a, ref) => {
7035
6979
  );
7036
6980
  });
7037
6981
  FormControl.displayName = "FormControl";
7038
- var FormDescription = React46.forwardRef((_a, ref) => {
6982
+ var FormDescription = React45.forwardRef((_a, ref) => {
7039
6983
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7040
6984
  const { formDescriptionId } = useFormField();
7041
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
6985
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7042
6986
  "p",
7043
6987
  __spreadValues({
7044
6988
  ref,
@@ -7048,12 +6992,12 @@ var FormDescription = React46.forwardRef((_a, ref) => {
7048
6992
  );
7049
6993
  });
7050
6994
  FormDescription.displayName = "FormDescription";
7051
- var FormMessage = React46.forwardRef((_a, ref) => {
6995
+ var FormMessage = React45.forwardRef((_a, ref) => {
7052
6996
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
7053
6997
  const { error, formMessageId } = useFormField();
7054
6998
  const body = error ? getErrorMessage(error) : children;
7055
6999
  if (!body) return null;
7056
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7000
+ return /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
7057
7001
  "p",
7058
7002
  __spreadProps(__spreadValues({
7059
7003
  ref,
@@ -7065,69 +7009,435 @@ var FormMessage = React46.forwardRef((_a, ref) => {
7065
7009
  );
7066
7010
  });
7067
7011
  FormMessage.displayName = "FormMessage";
7068
- var getDefaultOptionValue = (item) => {
7069
- var _a;
7070
- if (typeof item === "string") return item;
7071
- if (item && typeof item === "object" && "value" in item) {
7072
- return String((_a = item.value) != null ? _a : "");
7073
- }
7074
- return String(item != null ? item : "");
7075
- };
7076
- var getDefaultOptionLabel = (item) => {
7077
- if (item && typeof item === "object" && "label" in item) {
7078
- return item.label;
7079
- }
7080
- return getDefaultOptionValue(item);
7081
- };
7082
- var FormSelect = ({
7083
- name,
7084
- control,
7085
- rules,
7086
- shouldUnregister,
7087
- defaultValue,
7088
- placeholder,
7089
- label,
7090
- requiredLabel,
7091
- className,
7092
- itemClassName,
7093
- contentClassName,
7094
- labelClassName,
7095
- messageClassName,
7096
- requiredLabelClassName,
7097
- options,
7098
- items,
7099
- getOptionValue = getDefaultOptionValue,
7100
- getOptionLabel = getDefaultOptionLabel,
7101
- getOptionDisabled,
7102
- getOptionData,
7103
- children,
7104
- onChange,
7105
- onChangeItem,
7106
- disabled,
7107
- size = "md",
7108
- variant = "outline",
7109
- invalid,
7110
- searchable = false,
7111
- searchPlaceholder = "Buscar\u2026",
7112
- emptyText = "No hay resultados"
7113
- }) => {
7114
- const form = (0, import_react_hook_form2.useFormContext)();
7012
+
7013
+ // src/components/Form/form-checkbox.tsx
7014
+ var import_jsx_runtime22 = require("react/jsx-runtime");
7015
+ var FormCheckbox = (_a) => {
7016
+ var _b = _a, {
7017
+ name,
7018
+ control,
7019
+ rules,
7020
+ shouldUnregister,
7021
+ defaultValue,
7022
+ label,
7023
+ description,
7024
+ requiredLabel,
7025
+ className,
7026
+ itemClassName,
7027
+ checkboxClassName,
7028
+ labelClassName,
7029
+ descriptionClassName,
7030
+ messageClassName,
7031
+ requiredLabelClassName,
7032
+ onChange
7033
+ } = _b, checkboxProps = __objRest(_b, [
7034
+ "name",
7035
+ "control",
7036
+ "rules",
7037
+ "shouldUnregister",
7038
+ "defaultValue",
7039
+ "label",
7040
+ "description",
7041
+ "requiredLabel",
7042
+ "className",
7043
+ "itemClassName",
7044
+ "checkboxClassName",
7045
+ "labelClassName",
7046
+ "descriptionClassName",
7047
+ "messageClassName",
7048
+ "requiredLabelClassName",
7049
+ "onChange"
7050
+ ]);
7051
+ var _a2;
7052
+ const generatedId = React46.useId();
7053
+ const form = (0, import_react_hook_form3.useFormContext)();
7115
7054
  const controllerControl = control != null ? control : form == null ? void 0 : form.control;
7116
- const [query, setQuery] = React46.useState("");
7117
- const searchRef = React46.useRef(null);
7118
- const triggerBase = "relative inline-flex w-full items-center justify-between text-foreground outline-none ring-offset-background transition placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50";
7119
- const sizeTrigger = {
7120
- sm: "h-9 px-3 text-sm",
7121
- md: "h-10 px-3.5 text-sm",
7122
- lg: "h-11 px-4 text-base"
7123
- };
7124
- const contentBase = "rounded-md border border-border bg-popover text-popover-foreground shadow-md";
7125
- const itemSize = {
7126
- sm: "h-8 text-sm",
7127
- md: "h-9 text-sm",
7128
- lg: "h-10 text-base"
7129
- };
7130
- const normalizedOptions = React46.useMemo(() => {
7055
+ const checkboxId = (_a2 = checkboxProps.id) != null ? _a2 : `${generatedId}-checkbox`;
7056
+ const descriptionId = `${generatedId}-description`;
7057
+ const messageId = `${generatedId}-message`;
7058
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7059
+ import_react_hook_form3.Controller,
7060
+ {
7061
+ control: controllerControl,
7062
+ name,
7063
+ rules,
7064
+ shouldUnregister,
7065
+ defaultValue,
7066
+ render: ({ field, fieldState }) => {
7067
+ var _a3;
7068
+ const checked = Boolean(field.value);
7069
+ const fieldError = (_a3 = fieldState.error) == null ? void 0 : _a3.message;
7070
+ const hasError = Boolean(fieldError);
7071
+ return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FormItem, { className: cn("space-y-1.5", itemClassName), children: /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
7072
+ "div",
7073
+ {
7074
+ className: cn(
7075
+ "flex items-start gap-3 rounded-lg border border-transparent p-1 transition-colors",
7076
+ hasError && "border-destructive/20 bg-destructive/5",
7077
+ className
7078
+ ),
7079
+ children: [
7080
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7081
+ Checkbox,
7082
+ __spreadProps(__spreadValues({}, checkboxProps), {
7083
+ ref: field.ref,
7084
+ id: checkboxId,
7085
+ checked,
7086
+ invalid: hasError || checkboxProps.invalid,
7087
+ "aria-invalid": hasError || checkboxProps.invalid || void 0,
7088
+ "aria-describedby": [description ? descriptionId : void 0, hasError ? messageId : void 0].filter(Boolean).join(" ") || void 0,
7089
+ className: cn("mt-0.5", checkboxClassName),
7090
+ onBlur: field.onBlur,
7091
+ onCheckedChange: (value) => {
7092
+ const nextValue = value === true;
7093
+ field.onChange(nextValue);
7094
+ onChange == null ? void 0 : onChange(nextValue);
7095
+ }
7096
+ })
7097
+ ),
7098
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)("div", { className: "min-w-0 flex-1", children: [
7099
+ label ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
7100
+ Label3,
7101
+ {
7102
+ htmlFor: checkboxId,
7103
+ className: cn(
7104
+ "inline-flex cursor-pointer items-start gap-1 text-sm font-medium leading-none text-foreground",
7105
+ checkboxProps.disabled && "cursor-not-allowed text-muted-foreground",
7106
+ hasError && "text-destructive",
7107
+ labelClassName
7108
+ ),
7109
+ children: [
7110
+ /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: label }),
7111
+ requiredLabel ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7112
+ import_lucide_react4.Asterisk,
7113
+ {
7114
+ "aria-hidden": "true",
7115
+ className: cn(
7116
+ "mt-0.5 h-3 w-3 shrink-0 text-red-500",
7117
+ requiredLabelClassName
7118
+ )
7119
+ }
7120
+ ) : null
7121
+ ]
7122
+ }
7123
+ ) : null,
7124
+ description ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7125
+ "p",
7126
+ {
7127
+ id: descriptionId,
7128
+ className: cn(
7129
+ "mt-1 text-sm leading-relaxed text-muted-foreground",
7130
+ descriptionClassName
7131
+ ),
7132
+ children: description
7133
+ }
7134
+ ) : null,
7135
+ fieldError ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7136
+ "p",
7137
+ {
7138
+ id: messageId,
7139
+ className: cn(
7140
+ "mt-1 text-sm font-medium text-destructive",
7141
+ messageClassName
7142
+ ),
7143
+ children: fieldError
7144
+ }
7145
+ ) : null
7146
+ ] })
7147
+ ]
7148
+ }
7149
+ ) });
7150
+ }
7151
+ }
7152
+ );
7153
+ };
7154
+ FormCheckbox.displayName = "FormCheckbox";
7155
+
7156
+ // src/components/Form/form-select.tsx
7157
+ var React48 = __toESM(require("react"), 1);
7158
+ var import_react_slot5 = require("@radix-ui/react-slot");
7159
+ var import_lucide_react5 = require("lucide-react");
7160
+ var import_react_hook_form4 = require("react-hook-form");
7161
+
7162
+ // src/components/select.tsx
7163
+ var import_react_icons9 = require("@radix-ui/react-icons");
7164
+ var SelectPrimitive = __toESM(require("@radix-ui/react-select"), 1);
7165
+ var React47 = __toESM(require("react"), 1);
7166
+ var import_jsx_runtime23 = require("react/jsx-runtime");
7167
+ var Select2 = SelectPrimitive.Root;
7168
+ var SelectGroup = SelectPrimitive.Group;
7169
+ var SelectValue = SelectPrimitive.Value;
7170
+ var SelectTrigger = React47.forwardRef((_a, ref) => {
7171
+ var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
7172
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
7173
+ SelectPrimitive.Trigger,
7174
+ __spreadProps(__spreadValues({
7175
+ ref,
7176
+ className: cn(
7177
+ "flex h-9 w-full items-center justify-between whitespace-nowrap rounded-md border border-input bg-transparent px-3 py-2 text-sm shadow-sm ring-offset-background placeholder:text-muted-foreground focus:outline-none focus:ring-1 focus:ring-ring disabled:cursor-not-allowed disabled:opacity-50 [&>span]:line-clamp-1",
7178
+ className
7179
+ )
7180
+ }, props), {
7181
+ children: [
7182
+ children,
7183
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_icons9.CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
7184
+ ]
7185
+ })
7186
+ );
7187
+ });
7188
+ SelectTrigger.displayName = SelectPrimitive.Trigger.displayName;
7189
+ var SelectScrollUpButton = React47.forwardRef((_a, ref) => {
7190
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7191
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7192
+ SelectPrimitive.ScrollUpButton,
7193
+ __spreadProps(__spreadValues({
7194
+ ref,
7195
+ className: cn(
7196
+ "flex cursor-default items-center justify-center py-1",
7197
+ className
7198
+ )
7199
+ }, props), {
7200
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_icons9.ChevronUpIcon, {})
7201
+ })
7202
+ );
7203
+ });
7204
+ SelectScrollUpButton.displayName = SelectPrimitive.ScrollUpButton.displayName;
7205
+ var SelectScrollDownButton = React47.forwardRef((_a, ref) => {
7206
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7207
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7208
+ SelectPrimitive.ScrollDownButton,
7209
+ __spreadProps(__spreadValues({
7210
+ ref,
7211
+ className: cn(
7212
+ "flex cursor-default items-center justify-center py-1",
7213
+ className
7214
+ )
7215
+ }, props), {
7216
+ children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_icons9.ChevronDownIcon, {})
7217
+ })
7218
+ );
7219
+ });
7220
+ SelectScrollDownButton.displayName = SelectPrimitive.ScrollDownButton.displayName;
7221
+ var SelectContent = React47.forwardRef((_a, ref) => {
7222
+ var _b = _a, { className, children, position = "popper" } = _b, props = __objRest(_b, ["className", "children", "position"]);
7223
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
7224
+ SelectPrimitive.Content,
7225
+ __spreadProps(__spreadValues({
7226
+ ref,
7227
+ className: cn(
7228
+ "relative z-50 max-h-96 min-w-32 overflow-hidden bg-popover border border-border text-popover-foreground rounded-md shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
7229
+ position === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
7230
+ className
7231
+ ),
7232
+ position
7233
+ }, props), {
7234
+ children: [
7235
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectScrollUpButton, {}),
7236
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7237
+ SelectPrimitive.Viewport,
7238
+ {
7239
+ className: cn(
7240
+ "p-1",
7241
+ position === "popper" && "h-(--radix-select-trigger-height) w-full min-w-(--radix-select-trigger-width)"
7242
+ ),
7243
+ children
7244
+ }
7245
+ ),
7246
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectScrollDownButton, {})
7247
+ ]
7248
+ })
7249
+ ) });
7250
+ });
7251
+ SelectContent.displayName = SelectPrimitive.Content.displayName;
7252
+ var SelectLabel = React47.forwardRef((_a, ref) => {
7253
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7254
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7255
+ SelectPrimitive.Label,
7256
+ __spreadValues({
7257
+ ref,
7258
+ className: cn("px-2 py-1.5 text-sm font-semibold", className)
7259
+ }, props)
7260
+ );
7261
+ });
7262
+ SelectLabel.displayName = SelectPrimitive.Label.displayName;
7263
+ var SelectItem = React47.forwardRef((_a, ref) => {
7264
+ var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
7265
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
7266
+ SelectPrimitive.Item,
7267
+ __spreadProps(__spreadValues({
7268
+ ref,
7269
+ className: cn(
7270
+ "relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-2 pr-8 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-disabled:pointer-events-none data-disabled:opacity-50",
7271
+ className
7272
+ )
7273
+ }, props), {
7274
+ children: [
7275
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_react_icons9.CheckIcon, { className: "h-4 w-4" }) }) }),
7276
+ /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(SelectPrimitive.ItemText, { children })
7277
+ ]
7278
+ })
7279
+ );
7280
+ });
7281
+ SelectItem.displayName = SelectPrimitive.Item.displayName;
7282
+ var SelectSeparator = React47.forwardRef((_a, ref) => {
7283
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7284
+ return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7285
+ SelectPrimitive.Separator,
7286
+ __spreadValues({
7287
+ ref,
7288
+ className: cn("-mx-1 my-1 h-px bg-muted", className)
7289
+ }, props)
7290
+ );
7291
+ });
7292
+ SelectSeparator.displayName = SelectPrimitive.Separator.displayName;
7293
+
7294
+ // src/components/Form/form-select.tsx
7295
+ var import_jsx_runtime24 = require("react/jsx-runtime");
7296
+ var FormFieldContext2 = React48.createContext(
7297
+ null
7298
+ );
7299
+ function getErrorMessage2(error) {
7300
+ const message2 = error == null ? void 0 : error.message;
7301
+ return typeof message2 === "string" ? message2 : void 0;
7302
+ }
7303
+ var FormItemContext2 = React48.createContext(null);
7304
+ var FormItem2 = React48.forwardRef((_a, ref) => {
7305
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7306
+ const id = React48.useId();
7307
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FormItemContext2.Provider, { value: { id }, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", __spreadValues({ ref, className: cn("space-y-2", className) }, props)) });
7308
+ });
7309
+ FormItem2.displayName = "FormItem";
7310
+ var useFormField2 = () => {
7311
+ var _a;
7312
+ const generatedId = React48.useId();
7313
+ const fieldContext = React48.useContext(FormFieldContext2);
7314
+ const itemContext = React48.useContext(FormItemContext2);
7315
+ const formContext = (0, import_react_hook_form4.useFormContext)();
7316
+ const id = (_a = itemContext == null ? void 0 : itemContext.id) != null ? _a : generatedId;
7317
+ if (!fieldContext || !formContext) {
7318
+ return {
7319
+ id,
7320
+ formItemId: `${id}-form-item`,
7321
+ formDescriptionId: `${id}-form-item-description`,
7322
+ formMessageId: `${id}-form-item-message`,
7323
+ error: void 0
7324
+ };
7325
+ }
7326
+ const fieldState = formContext.getFieldState(
7327
+ fieldContext.name,
7328
+ formContext.formState
7329
+ );
7330
+ return __spreadValues({
7331
+ id,
7332
+ name: fieldContext.name,
7333
+ formItemId: `${id}-form-item`,
7334
+ formDescriptionId: `${id}-form-item-description`,
7335
+ formMessageId: `${id}-form-item-message`
7336
+ }, fieldState);
7337
+ };
7338
+ var FormLabel2 = React48.forwardRef((_a, ref) => {
7339
+ var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7340
+ const { error, formItemId } = useFormField2();
7341
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
7342
+ Label3,
7343
+ __spreadValues({
7344
+ ref,
7345
+ className: cn(error && "text-destructive", className),
7346
+ htmlFor: formItemId
7347
+ }, props)
7348
+ );
7349
+ });
7350
+ FormLabel2.displayName = "FormLabel";
7351
+ var FormControl2 = React48.forwardRef((_a, ref) => {
7352
+ var props = __objRest(_a, []);
7353
+ const { error, formItemId, formDescriptionId, formMessageId } = useFormField2();
7354
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
7355
+ import_react_slot5.Slot,
7356
+ __spreadValues({
7357
+ ref,
7358
+ id: formItemId,
7359
+ "aria-describedby": error ? `${formDescriptionId} ${formMessageId}` : formDescriptionId,
7360
+ "aria-invalid": Boolean(error)
7361
+ }, props)
7362
+ );
7363
+ });
7364
+ FormControl2.displayName = "FormControl";
7365
+ var FormMessage2 = React48.forwardRef((_a, ref) => {
7366
+ var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
7367
+ const { error, formMessageId } = useFormField2();
7368
+ const body = error ? getErrorMessage2(error) : children;
7369
+ if (!body) return null;
7370
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
7371
+ "p",
7372
+ __spreadProps(__spreadValues({
7373
+ ref,
7374
+ id: formMessageId,
7375
+ className: cn("text-[0.8rem] font-medium text-destructive", className)
7376
+ }, props), {
7377
+ children: body
7378
+ })
7379
+ );
7380
+ });
7381
+ FormMessage2.displayName = "FormMessage";
7382
+ var getDefaultOptionValue = (item) => {
7383
+ var _a;
7384
+ if (typeof item === "string") return item;
7385
+ if (item && typeof item === "object" && "value" in item) {
7386
+ return String((_a = item.value) != null ? _a : "");
7387
+ }
7388
+ return String(item != null ? item : "");
7389
+ };
7390
+ var getDefaultOptionLabel = (item) => {
7391
+ if (item && typeof item === "object" && "label" in item) {
7392
+ return item.label;
7393
+ }
7394
+ return getDefaultOptionValue(item);
7395
+ };
7396
+ var FormSelect = ({
7397
+ name,
7398
+ control,
7399
+ rules,
7400
+ shouldUnregister,
7401
+ defaultValue,
7402
+ placeholder,
7403
+ label,
7404
+ requiredLabel,
7405
+ className,
7406
+ itemClassName,
7407
+ contentClassName,
7408
+ searchInputClassName,
7409
+ labelClassName,
7410
+ messageClassName,
7411
+ requiredLabelClassName,
7412
+ options,
7413
+ items,
7414
+ getOptionValue = getDefaultOptionValue,
7415
+ getOptionLabel = getDefaultOptionLabel,
7416
+ getOptionDisabled,
7417
+ getOptionData,
7418
+ children,
7419
+ onChange,
7420
+ onChangeItem,
7421
+ disabled,
7422
+ size = "md",
7423
+ customSize,
7424
+ variant = "outline",
7425
+ invalid,
7426
+ searchable = false,
7427
+ searchPlaceholder = "Buscar\u2026",
7428
+ emptyText = "No hay resultados",
7429
+ position = "popper"
7430
+ }) => {
7431
+ const form = (0, import_react_hook_form4.useFormContext)();
7432
+ const controllerControl = control != null ? control : form == null ? void 0 : form.control;
7433
+ const [query, setQuery] = React48.useState("");
7434
+ const searchRef = React48.useRef(null);
7435
+ const sizeClasses = getFormSizeClasses(size, customSize);
7436
+ const triggerBase = "relative inline-flex w-full items-center justify-between text-foreground outline-none ring-offset-background transition placeholder:text-muted-foreground disabled:cursor-not-allowed disabled:opacity-50";
7437
+ const triggerSizeClass = variant === "flushed" ? sizeClasses.flushedControl : variant === "link" ? sizeClasses.linkControl : sizeClasses.control;
7438
+ const contentBase = "z-50 rounded-md border border-border bg-popover text-popover-foreground shadow-md !overflow-hidden";
7439
+ const contentViewport = "[&_[data-radix-select-viewport]]:max-h-72 [&_[data-radix-select-viewport]]:overflow-y-auto [&_[data-radix-select-viewport]]:overscroll-contain [&_[data-radix-select-viewport]]:[scrollbar-gutter:stable]";
7440
+ const normalizedOptions = React48.useMemo(() => {
7131
7441
  if (options) return options;
7132
7442
  return (items != null ? items : []).map((item) => {
7133
7443
  var _a;
@@ -7146,7 +7456,7 @@ var FormSelect = ({
7146
7456
  items,
7147
7457
  options
7148
7458
  ]);
7149
- const filteredOptions = React46.useMemo(() => {
7459
+ const filteredOptions = React48.useMemo(() => {
7150
7460
  if (!searchable || !query.trim()) return normalizedOptions;
7151
7461
  const normalizedQuery = query.trim().toLowerCase();
7152
7462
  return normalizedOptions.filter((option) => {
@@ -7155,10 +7465,8 @@ var FormSelect = ({
7155
7465
  return `${label2} ${option.value}`.toLowerCase().includes(normalizedQuery);
7156
7466
  });
7157
7467
  }, [normalizedOptions, query, searchable]);
7158
- const specialFlushed = variant === "flushed" ? size === "sm" ? "h-9 text-sm" : size === "lg" ? "h-11 text-base" : "h-10 text-sm" : "";
7159
- const specialLink = variant === "link" ? "text-sm" : "";
7160
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FormFieldContext.Provider, { value: { name }, children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7161
- import_react_hook_form2.Controller,
7468
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FormFieldContext2.Provider, { value: { name }, children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
7469
+ import_react_hook_form4.Controller,
7162
7470
  {
7163
7471
  control: controllerControl,
7164
7472
  name,
@@ -7167,17 +7475,22 @@ var FormSelect = ({
7167
7475
  defaultValue,
7168
7476
  render: ({ field, fieldState }) => {
7169
7477
  var _a;
7170
- const fieldError = getErrorMessage(fieldState.error);
7478
+ const fieldError = getErrorMessage2(fieldState.error);
7479
+ const hasError = Boolean(invalid || fieldError);
7171
7480
  const hasOptions = filteredOptions.length > 0;
7172
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(FormItem, { children: [
7173
- label ? /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
7174
- FormLabel,
7481
+ return /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(FormItem2, { children: [
7482
+ label ? /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
7483
+ FormLabel2,
7175
7484
  {
7176
- className: cn("flex items-center gap-0.5", labelClassName),
7485
+ className: cn(
7486
+ "flex items-center gap-0.5",
7487
+ sizeClasses.label,
7488
+ labelClassName
7489
+ ),
7177
7490
  children: [
7178
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("span", { children: label }),
7179
- requiredLabel ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7180
- import_lucide_react3.Asterisk,
7491
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("span", { children: label }),
7492
+ requiredLabel ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
7493
+ import_lucide_react5.Asterisk,
7181
7494
  {
7182
7495
  "aria-hidden": "true",
7183
7496
  className: cn(
@@ -7189,7 +7502,7 @@ var FormSelect = ({
7189
7502
  ]
7190
7503
  }
7191
7504
  ) : null,
7192
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
7505
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
7193
7506
  Select2,
7194
7507
  {
7195
7508
  value: (_a = field.value) != null ? _a : "",
@@ -7204,226 +7517,128 @@ var FormSelect = ({
7204
7517
  (_a2 = selectedOption == null ? void 0 : selectedOption.data) != null ? _a2 : null
7205
7518
  );
7206
7519
  },
7520
+ onOpenChange: (open) => {
7521
+ if (open && searchable) {
7522
+ requestAnimationFrame(() => {
7523
+ var _a2;
7524
+ (_a2 = searchRef.current) == null ? void 0 : _a2.focus();
7525
+ });
7526
+ }
7527
+ if (!open) {
7528
+ setQuery("");
7529
+ }
7530
+ },
7207
7531
  disabled,
7208
7532
  children: [
7209
- /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FormControl, { children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7533
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(FormControl2, { children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
7210
7534
  SelectTrigger,
7211
7535
  {
7212
7536
  className: cn(
7213
7537
  triggerBase,
7214
7538
  variants[variant],
7215
- variant === "flushed" ? specialFlushed : variant === "link" ? specialLink : sizeTrigger[size],
7216
- (invalid || fieldError) && "border-destructive ring-destructive focus:ring-destructive/40",
7539
+ triggerSizeClass,
7540
+ hasError && "border-destructive ring-destructive focus:ring-destructive/40",
7217
7541
  className
7218
7542
  ),
7219
- children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(SelectValue, { placeholder })
7543
+ children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(SelectValue, { placeholder })
7220
7544
  }
7221
7545
  ) }),
7222
- /* @__PURE__ */ (0, import_jsx_runtime22.jsxs)(
7546
+ /* @__PURE__ */ (0, import_jsx_runtime24.jsxs)(
7223
7547
  SelectContent,
7224
7548
  {
7225
- className: cn(contentBase, contentClassName),
7549
+ position,
7550
+ sideOffset: 6,
7551
+ className: cn(
7552
+ contentBase,
7553
+ contentViewport,
7554
+ "w-(--radix-select-trigger-width) min-w-(--radix-select-trigger-width)",
7555
+ contentClassName
7556
+ ),
7226
7557
  onCloseAutoFocus: (event) => {
7227
- if (!searchable) return;
7228
- event.preventDefault();
7229
- requestAnimationFrame(() => {
7230
- var _a2;
7231
- return (_a2 = searchRef.current) == null ? void 0 : _a2.focus();
7232
- });
7558
+ if (searchable) {
7559
+ event.preventDefault();
7560
+ }
7561
+ },
7562
+ onWheelCapture: (event) => {
7563
+ event.stopPropagation();
7564
+ },
7565
+ onTouchMoveCapture: (event) => {
7566
+ event.stopPropagation();
7233
7567
  },
7234
7568
  children: [
7235
- searchable && normalizedOptions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "sticky top-0 z-10 border-b border-border bg-popover p-2", children: /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7569
+ searchable && normalizedOptions.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)("div", { className: "sticky top-0 z-10 border-b border-border bg-popover p-2", children: /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
7236
7570
  "input",
7237
7571
  {
7238
7572
  ref: searchRef,
7239
7573
  value: query,
7240
7574
  onChange: (event) => setQuery(event.target.value),
7241
7575
  placeholder: searchPlaceholder,
7242
- className: "w-full rounded-md border border-input bg-input px-3 py-2 text-sm outline-none focus:ring-2 focus:ring-primary/20",
7576
+ className: cn(
7577
+ "w-full rounded-md border border-input bg-input outline-none focus:ring-2 focus:ring-primary/20",
7578
+ sizeClasses.searchInput,
7579
+ searchInputClassName
7580
+ ),
7243
7581
  onKeyDown: (event) => {
7244
- if (event.key !== "Escape") event.stopPropagation();
7582
+ if (event.key !== "Escape") {
7583
+ event.stopPropagation();
7584
+ }
7245
7585
  },
7246
7586
  onPointerDown: (event) => event.stopPropagation(),
7247
7587
  onClick: (event) => event.stopPropagation()
7248
7588
  }
7249
7589
  ) }) : null,
7250
7590
  children && !searchable ? children : null,
7251
- !children || searchable ? hasOptions ? filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
7591
+ !children || searchable ? hasOptions ? filteredOptions.map((option) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
7252
7592
  SelectItem,
7253
7593
  {
7254
7594
  value: option.value,
7255
7595
  disabled: option.disabled,
7256
- className: cn(itemSize[size], itemClassName),
7596
+ className: cn(
7597
+ sizeClasses.selectItem,
7598
+ itemClassName
7599
+ ),
7257
7600
  children: option.label
7258
- },
7259
- option.value
7260
- )) : /* @__PURE__ */ (0, import_jsx_runtime22.jsx)("div", { className: "px-3 py-2 text-sm text-muted-foreground", children: emptyText }) : null
7261
- ]
7262
- }
7263
- )
7264
- ]
7265
- }
7266
- ),
7267
- fieldError ? /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(FormMessage, { className: messageClassName, children: fieldError }) : null
7268
- ] });
7269
- }
7270
- }
7271
- ) });
7272
- };
7273
- FormSelect.displayName = "FormSelect";
7274
-
7275
- // src/components/Form/form-checkbox.tsx
7276
- var import_jsx_runtime23 = require("react/jsx-runtime");
7277
- var FormCheckbox = (_a) => {
7278
- var _b = _a, {
7279
- name,
7280
- control,
7281
- rules,
7282
- shouldUnregister,
7283
- defaultValue,
7284
- label,
7285
- description,
7286
- requiredLabel,
7287
- className,
7288
- itemClassName,
7289
- checkboxClassName,
7290
- labelClassName,
7291
- descriptionClassName,
7292
- messageClassName,
7293
- requiredLabelClassName,
7294
- onChange
7295
- } = _b, checkboxProps = __objRest(_b, [
7296
- "name",
7297
- "control",
7298
- "rules",
7299
- "shouldUnregister",
7300
- "defaultValue",
7301
- "label",
7302
- "description",
7303
- "requiredLabel",
7304
- "className",
7305
- "itemClassName",
7306
- "checkboxClassName",
7307
- "labelClassName",
7308
- "descriptionClassName",
7309
- "messageClassName",
7310
- "requiredLabelClassName",
7311
- "onChange"
7312
- ]);
7313
- var _a2;
7314
- const generatedId = React47.useId();
7315
- const form = (0, import_react_hook_form3.useFormContext)();
7316
- const controllerControl = control != null ? control : form == null ? void 0 : form.control;
7317
- const checkboxId = (_a2 = checkboxProps.id) != null ? _a2 : `${generatedId}-checkbox`;
7318
- const descriptionId = `${generatedId}-description`;
7319
- const messageId = `${generatedId}-message`;
7320
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7321
- import_react_hook_form3.Controller,
7322
- {
7323
- control: controllerControl,
7324
- name,
7325
- rules,
7326
- shouldUnregister,
7327
- defaultValue,
7328
- render: ({ field, fieldState }) => {
7329
- var _a3;
7330
- const checked = Boolean(field.value);
7331
- const fieldError = (_a3 = fieldState.error) == null ? void 0 : _a3.message;
7332
- const hasError = Boolean(fieldError);
7333
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(FormItem, { className: cn("space-y-1.5", itemClassName), children: /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
7334
- "div",
7335
- {
7336
- className: cn(
7337
- "flex items-start gap-3 rounded-lg border border-transparent p-1 transition-colors",
7338
- hasError && "border-destructive/20 bg-destructive/5",
7339
- className
7340
- ),
7341
- children: [
7342
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7343
- Checkbox,
7344
- __spreadProps(__spreadValues({}, checkboxProps), {
7345
- ref: field.ref,
7346
- id: checkboxId,
7347
- checked,
7348
- invalid: hasError || checkboxProps.invalid,
7349
- "aria-invalid": hasError || checkboxProps.invalid || void 0,
7350
- "aria-describedby": [description ? descriptionId : void 0, hasError ? messageId : void 0].filter(Boolean).join(" ") || void 0,
7351
- className: cn("mt-0.5", checkboxClassName),
7352
- onBlur: field.onBlur,
7353
- onCheckedChange: (value) => {
7354
- const nextValue = value === true;
7355
- field.onChange(nextValue);
7356
- onChange == null ? void 0 : onChange(nextValue);
7357
- }
7358
- })
7359
- ),
7360
- /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)("div", { className: "min-w-0 flex-1", children: [
7361
- label ? /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(
7362
- Label3,
7363
- {
7364
- htmlFor: checkboxId,
7365
- className: cn(
7366
- "inline-flex cursor-pointer items-start gap-1 text-sm font-medium leading-none text-foreground",
7367
- checkboxProps.disabled && "cursor-not-allowed text-muted-foreground",
7368
- hasError && "text-destructive",
7369
- labelClassName
7370
- ),
7371
- children: [
7372
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)("span", { children: label }),
7373
- requiredLabel ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7374
- import_lucide_react4.Asterisk,
7601
+ },
7602
+ option.value
7603
+ )) : /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
7604
+ "div",
7375
7605
  {
7376
- "aria-hidden": "true",
7377
7606
  className: cn(
7378
- "mt-0.5 h-3 w-3 shrink-0 text-red-500",
7379
- requiredLabelClassName
7380
- )
7607
+ "px-3 py-2 text-muted-foreground",
7608
+ sizeClasses.message
7609
+ ),
7610
+ children: emptyText
7381
7611
  }
7382
7612
  ) : null
7383
7613
  ]
7384
7614
  }
7385
- ) : null,
7386
- description ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7387
- "p",
7388
- {
7389
- id: descriptionId,
7390
- className: cn(
7391
- "mt-1 text-sm leading-relaxed text-muted-foreground",
7392
- descriptionClassName
7393
- ),
7394
- children: description
7395
- }
7396
- ) : null,
7397
- fieldError ? /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
7398
- "p",
7399
- {
7400
- id: messageId,
7401
- className: cn(
7402
- "mt-1 text-sm font-medium text-destructive",
7403
- messageClassName
7404
- ),
7405
- children: fieldError
7406
- }
7407
- ) : null
7408
- ] })
7409
- ]
7410
- }
7411
- ) });
7615
+ )
7616
+ ]
7617
+ }
7618
+ ),
7619
+ fieldError ? /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
7620
+ FormMessage2,
7621
+ {
7622
+ className: cn(sizeClasses.message, messageClassName),
7623
+ children: fieldError
7624
+ }
7625
+ ) : null
7626
+ ] });
7412
7627
  }
7413
7628
  }
7414
- );
7629
+ ) });
7415
7630
  };
7416
- FormCheckbox.displayName = "FormCheckbox";
7631
+ FormSelect.displayName = "FormSelect";
7417
7632
 
7418
7633
  // src/components/hover-card.tsx
7419
7634
  var HoverCardPrimitive = __toESM(require("@radix-ui/react-hover-card"), 1);
7420
- var React48 = __toESM(require("react"), 1);
7421
- var import_jsx_runtime24 = require("react/jsx-runtime");
7635
+ var React49 = __toESM(require("react"), 1);
7636
+ var import_jsx_runtime25 = require("react/jsx-runtime");
7422
7637
  var HoverCard = HoverCardPrimitive.Root;
7423
7638
  var HoverCardTrigger = HoverCardPrimitive.Trigger;
7424
- var HoverCardContent = React48.forwardRef((_a, ref) => {
7639
+ var HoverCardContent = React49.forwardRef((_a, ref) => {
7425
7640
  var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
7426
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
7641
+ return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
7427
7642
  HoverCardPrimitive.Content,
7428
7643
  __spreadValues({
7429
7644
  ref,
@@ -7439,46 +7654,46 @@ var HoverCardContent = React48.forwardRef((_a, ref) => {
7439
7654
  HoverCardContent.displayName = HoverCardPrimitive.Content.displayName;
7440
7655
 
7441
7656
  // src/components/icons.tsx
7442
- var import_lucide_react5 = require("lucide-react");
7657
+ var import_lucide_react6 = require("lucide-react");
7443
7658
  var IconsApp = {
7444
- dashboard: import_lucide_react5.LayoutDashboardIcon,
7445
- logo: import_lucide_react5.Command,
7446
- login: import_lucide_react5.LogIn,
7447
- close: import_lucide_react5.X,
7448
- profile: import_lucide_react5.User2Icon,
7449
- spinner: import_lucide_react5.Loader2,
7450
- kanban: import_lucide_react5.CircuitBoardIcon,
7451
- chevronLeft: import_lucide_react5.ChevronLeft,
7452
- chevronRight: import_lucide_react5.ChevronRight,
7453
- trash: import_lucide_react5.Trash,
7454
- employee: import_lucide_react5.UserX2Icon,
7455
- post: import_lucide_react5.FileText,
7456
- page: import_lucide_react5.File,
7457
- media: import_lucide_react5.Image,
7458
- settings: import_lucide_react5.Settings,
7459
- billing: import_lucide_react5.CreditCard,
7460
- ellipsis: import_lucide_react5.MoreVertical,
7461
- add: import_lucide_react5.Plus,
7462
- warning: import_lucide_react5.AlertTriangle,
7463
- user: import_lucide_react5.User,
7464
- arrowRight: import_lucide_react5.ArrowRight,
7465
- help: import_lucide_react5.HelpCircle,
7466
- pizza: import_lucide_react5.Pizza,
7467
- sun: import_lucide_react5.SunMedium,
7468
- moon: import_lucide_react5.Moon,
7469
- laptop: import_lucide_react5.Laptop,
7470
- check: import_lucide_react5.Check
7659
+ dashboard: import_lucide_react6.LayoutDashboardIcon,
7660
+ logo: import_lucide_react6.Command,
7661
+ login: import_lucide_react6.LogIn,
7662
+ close: import_lucide_react6.X,
7663
+ profile: import_lucide_react6.User2Icon,
7664
+ spinner: import_lucide_react6.Loader2,
7665
+ kanban: import_lucide_react6.CircuitBoardIcon,
7666
+ chevronLeft: import_lucide_react6.ChevronLeft,
7667
+ chevronRight: import_lucide_react6.ChevronRight,
7668
+ trash: import_lucide_react6.Trash,
7669
+ employee: import_lucide_react6.UserX2Icon,
7670
+ post: import_lucide_react6.FileText,
7671
+ page: import_lucide_react6.File,
7672
+ media: import_lucide_react6.Image,
7673
+ settings: import_lucide_react6.Settings,
7674
+ billing: import_lucide_react6.CreditCard,
7675
+ ellipsis: import_lucide_react6.MoreVertical,
7676
+ add: import_lucide_react6.Plus,
7677
+ warning: import_lucide_react6.AlertTriangle,
7678
+ user: import_lucide_react6.User,
7679
+ arrowRight: import_lucide_react6.ArrowRight,
7680
+ help: import_lucide_react6.HelpCircle,
7681
+ pizza: import_lucide_react6.Pizza,
7682
+ sun: import_lucide_react6.SunMedium,
7683
+ moon: import_lucide_react6.Moon,
7684
+ laptop: import_lucide_react6.Laptop,
7685
+ check: import_lucide_react6.Check
7471
7686
  };
7472
7687
  var Icons = IconsApp;
7473
7688
 
7474
7689
  // src/components/input-otp.tsx
7475
7690
  var import_react_icons10 = require("@radix-ui/react-icons");
7476
7691
  var import_input_otp = require("input-otp");
7477
- var React49 = __toESM(require("react"), 1);
7478
- var import_jsx_runtime25 = require("react/jsx-runtime");
7479
- var InputOTP = React49.forwardRef((_a, ref) => {
7692
+ var React50 = __toESM(require("react"), 1);
7693
+ var import_jsx_runtime26 = require("react/jsx-runtime");
7694
+ var InputOTP = React50.forwardRef((_a, ref) => {
7480
7695
  var _b = _a, { className, containerClassName } = _b, props = __objRest(_b, ["className", "containerClassName"]);
7481
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
7696
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7482
7697
  import_input_otp.OTPInput,
7483
7698
  __spreadValues({
7484
7699
  ref,
@@ -7491,16 +7706,16 @@ var InputOTP = React49.forwardRef((_a, ref) => {
7491
7706
  );
7492
7707
  });
7493
7708
  InputOTP.displayName = "InputOTP";
7494
- var InputOTPGroup = React49.forwardRef((_a, ref) => {
7709
+ var InputOTPGroup = React50.forwardRef((_a, ref) => {
7495
7710
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7496
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", __spreadValues({ ref, className: cn("flex items-center", className) }, props));
7711
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", __spreadValues({ ref, className: cn("flex items-center", className) }, props));
7497
7712
  });
7498
7713
  InputOTPGroup.displayName = "InputOTPGroup";
7499
- var InputOTPSlot = React49.forwardRef((_a, ref) => {
7714
+ var InputOTPSlot = React50.forwardRef((_a, ref) => {
7500
7715
  var _b = _a, { index, className } = _b, props = __objRest(_b, ["index", "className"]);
7501
- const inputOTPContext = React49.useContext(import_input_otp.OTPInputContext);
7716
+ const inputOTPContext = React50.useContext(import_input_otp.OTPInputContext);
7502
7717
  const { char, hasFakeCaret, isActive } = inputOTPContext.slots[index];
7503
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)(
7718
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
7504
7719
  "div",
7505
7720
  __spreadProps(__spreadValues({
7506
7721
  ref,
@@ -7513,31 +7728,31 @@ var InputOTPSlot = React49.forwardRef((_a, ref) => {
7513
7728
  }, props), {
7514
7729
  children: [
7515
7730
  char,
7516
- hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "animate-caret-blink h-4 w-px bg-foreground duration-1000" }) })
7731
+ hasFakeCaret && /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "pointer-events-none absolute inset-0 flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", { className: "animate-caret-blink h-4 w-px bg-foreground duration-1000" }) })
7517
7732
  ]
7518
7733
  })
7519
7734
  );
7520
7735
  });
7521
7736
  InputOTPSlot.displayName = "InputOTPSlot";
7522
- var InputOTPSeparator = React49.forwardRef((_a, ref) => {
7737
+ var InputOTPSeparator = React50.forwardRef((_a, ref) => {
7523
7738
  var props = __objRest(_a, []);
7524
- return /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", __spreadProps(__spreadValues({ ref, role: "separator" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(import_react_icons10.DashIcon, {}) }));
7739
+ return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("div", __spreadProps(__spreadValues({ ref, role: "separator" }, props), { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons10.DashIcon, {}) }));
7525
7740
  });
7526
7741
  InputOTPSeparator.displayName = "InputOTPSeparator";
7527
7742
 
7528
7743
  // src/components/menubar.tsx
7529
7744
  var import_react_icons11 = require("@radix-ui/react-icons");
7530
7745
  var MenubarPrimitive = __toESM(require("@radix-ui/react-menubar"), 1);
7531
- var React50 = __toESM(require("react"), 1);
7532
- var import_jsx_runtime26 = require("react/jsx-runtime");
7746
+ var React51 = __toESM(require("react"), 1);
7747
+ var import_jsx_runtime27 = require("react/jsx-runtime");
7533
7748
  var MenubarMenu = MenubarPrimitive.Menu;
7534
7749
  var MenubarGroup = MenubarPrimitive.Group;
7535
7750
  var MenubarPortal = MenubarPrimitive.Portal;
7536
7751
  var MenubarSub = MenubarPrimitive.Sub;
7537
7752
  var MenubarRadioGroup = MenubarPrimitive.RadioGroup;
7538
- var Menubar = React50.forwardRef((_a, ref) => {
7753
+ var Menubar = React51.forwardRef((_a, ref) => {
7539
7754
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7540
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7755
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
7541
7756
  MenubarPrimitive.Root,
7542
7757
  __spreadValues({
7543
7758
  ref,
@@ -7549,9 +7764,9 @@ var Menubar = React50.forwardRef((_a, ref) => {
7549
7764
  );
7550
7765
  });
7551
7766
  Menubar.displayName = MenubarPrimitive.Root.displayName;
7552
- var MenubarTrigger = React50.forwardRef((_a, ref) => {
7767
+ var MenubarTrigger = React51.forwardRef((_a, ref) => {
7553
7768
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7554
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7769
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
7555
7770
  MenubarPrimitive.Trigger,
7556
7771
  __spreadValues({
7557
7772
  ref,
@@ -7563,9 +7778,9 @@ var MenubarTrigger = React50.forwardRef((_a, ref) => {
7563
7778
  );
7564
7779
  });
7565
7780
  MenubarTrigger.displayName = MenubarPrimitive.Trigger.displayName;
7566
- var MenubarSubTrigger = React50.forwardRef((_a, ref) => {
7781
+ var MenubarSubTrigger = React51.forwardRef((_a, ref) => {
7567
7782
  var _b = _a, { className, inset, children } = _b, props = __objRest(_b, ["className", "inset", "children"]);
7568
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
7783
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
7569
7784
  MenubarPrimitive.SubTrigger,
7570
7785
  __spreadProps(__spreadValues({
7571
7786
  ref,
@@ -7577,15 +7792,15 @@ var MenubarSubTrigger = React50.forwardRef((_a, ref) => {
7577
7792
  }, props), {
7578
7793
  children: [
7579
7794
  children,
7580
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons11.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
7795
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react_icons11.ChevronRightIcon, { className: "ml-auto h-4 w-4" })
7581
7796
  ]
7582
7797
  })
7583
7798
  );
7584
7799
  });
7585
7800
  MenubarSubTrigger.displayName = MenubarPrimitive.SubTrigger.displayName;
7586
- var MenubarSubContent = React50.forwardRef((_a, ref) => {
7801
+ var MenubarSubContent = React51.forwardRef((_a, ref) => {
7587
7802
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7588
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7803
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
7589
7804
  MenubarPrimitive.SubContent,
7590
7805
  __spreadValues({
7591
7806
  ref,
@@ -7597,10 +7812,10 @@ var MenubarSubContent = React50.forwardRef((_a, ref) => {
7597
7812
  );
7598
7813
  });
7599
7814
  MenubarSubContent.displayName = MenubarPrimitive.SubContent.displayName;
7600
- var MenubarContent = React50.forwardRef(
7815
+ var MenubarContent = React51.forwardRef(
7601
7816
  (_a, ref) => {
7602
7817
  var _b = _a, { className, align = "start", alignOffset = -4, sideOffset = 8 } = _b, props = __objRest(_b, ["className", "align", "alignOffset", "sideOffset"]);
7603
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7818
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(MenubarPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
7604
7819
  MenubarPrimitive.Content,
7605
7820
  __spreadValues({
7606
7821
  ref,
@@ -7616,9 +7831,9 @@ var MenubarContent = React50.forwardRef(
7616
7831
  }
7617
7832
  );
7618
7833
  MenubarContent.displayName = MenubarPrimitive.Content.displayName;
7619
- var MenubarItem = React50.forwardRef((_a, ref) => {
7834
+ var MenubarItem = React51.forwardRef((_a, ref) => {
7620
7835
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
7621
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7836
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
7622
7837
  MenubarPrimitive.Item,
7623
7838
  __spreadValues({
7624
7839
  ref,
@@ -7631,9 +7846,9 @@ var MenubarItem = React50.forwardRef((_a, ref) => {
7631
7846
  );
7632
7847
  });
7633
7848
  MenubarItem.displayName = MenubarPrimitive.Item.displayName;
7634
- var MenubarCheckboxItem = React50.forwardRef((_a, ref) => {
7849
+ var MenubarCheckboxItem = React51.forwardRef((_a, ref) => {
7635
7850
  var _b = _a, { className, children, checked } = _b, props = __objRest(_b, ["className", "children", "checked"]);
7636
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
7851
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
7637
7852
  MenubarPrimitive.CheckboxItem,
7638
7853
  __spreadProps(__spreadValues({
7639
7854
  ref,
@@ -7644,16 +7859,16 @@ var MenubarCheckboxItem = React50.forwardRef((_a, ref) => {
7644
7859
  checked
7645
7860
  }, props), {
7646
7861
  children: [
7647
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons11.CheckIcon, { className: "h-4 w-4" }) }) }),
7862
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react_icons11.CheckIcon, { className: "h-4 w-4" }) }) }),
7648
7863
  children
7649
7864
  ]
7650
7865
  })
7651
7866
  );
7652
7867
  });
7653
7868
  MenubarCheckboxItem.displayName = MenubarPrimitive.CheckboxItem.displayName;
7654
- var MenubarRadioItem = React50.forwardRef((_a, ref) => {
7869
+ var MenubarRadioItem = React51.forwardRef((_a, ref) => {
7655
7870
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
7656
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsxs)(
7871
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(
7657
7872
  MenubarPrimitive.RadioItem,
7658
7873
  __spreadProps(__spreadValues({
7659
7874
  ref,
@@ -7663,16 +7878,16 @@ var MenubarRadioItem = React50.forwardRef((_a, ref) => {
7663
7878
  )
7664
7879
  }, props), {
7665
7880
  children: [
7666
- /* @__PURE__ */ (0, import_jsx_runtime26.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(import_react_icons11.DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
7881
+ /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("span", { className: "absolute left-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(MenubarPrimitive.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(import_react_icons11.DotFilledIcon, { className: "h-4 w-4 fill-current" }) }) }),
7667
7882
  children
7668
7883
  ]
7669
7884
  })
7670
7885
  );
7671
7886
  });
7672
7887
  MenubarRadioItem.displayName = MenubarPrimitive.RadioItem.displayName;
7673
- var MenubarLabel = React50.forwardRef((_a, ref) => {
7888
+ var MenubarLabel = React51.forwardRef((_a, ref) => {
7674
7889
  var _b = _a, { className, inset } = _b, props = __objRest(_b, ["className", "inset"]);
7675
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7890
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
7676
7891
  MenubarPrimitive.Label,
7677
7892
  __spreadValues({
7678
7893
  ref,
@@ -7685,9 +7900,9 @@ var MenubarLabel = React50.forwardRef((_a, ref) => {
7685
7900
  );
7686
7901
  });
7687
7902
  MenubarLabel.displayName = MenubarPrimitive.Label.displayName;
7688
- var MenubarSeparator = React50.forwardRef((_a, ref) => {
7903
+ var MenubarSeparator = React51.forwardRef((_a, ref) => {
7689
7904
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7690
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7905
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
7691
7906
  MenubarPrimitive.Separator,
7692
7907
  __spreadValues({
7693
7908
  ref,
@@ -7702,7 +7917,7 @@ var MenubarShortcut = (_a) => {
7702
7917
  } = _b, props = __objRest(_b, [
7703
7918
  "className"
7704
7919
  ]);
7705
- return /* @__PURE__ */ (0, import_jsx_runtime26.jsx)(
7920
+ return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
7706
7921
  "span",
7707
7922
  __spreadValues({
7708
7923
  className: cn(
@@ -7715,7 +7930,7 @@ var MenubarShortcut = (_a) => {
7715
7930
  MenubarShortcut.displayname = "MenubarShortcut";
7716
7931
 
7717
7932
  // src/components/modal.tsx
7718
- var import_jsx_runtime27 = require("react/jsx-runtime");
7933
+ var import_jsx_runtime28 = require("react/jsx-runtime");
7719
7934
  var Modal = ({
7720
7935
  title,
7721
7936
  description,
@@ -7729,12 +7944,12 @@ var Modal = ({
7729
7944
  onClose();
7730
7945
  }
7731
7946
  };
7732
- return /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(Dialog, { open: isOpen, onOpenChange: onChange, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(DialogContent, { className, children: [
7733
- /* @__PURE__ */ (0, import_jsx_runtime27.jsxs)(DialogHeader, { children: [
7734
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DialogTitle, { children: title }),
7735
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(DialogDescription, { children: description })
7947
+ return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Dialog, { open: isOpen, onOpenChange: onChange, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(DialogContent, { className, children: [
7948
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(DialogHeader, { children: [
7949
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DialogTitle, { children: title }),
7950
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(DialogDescription, { children: description })
7736
7951
  ] }),
7737
- /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { children })
7952
+ /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { children })
7738
7953
  ] }) });
7739
7954
  };
7740
7955
 
@@ -7742,11 +7957,11 @@ var Modal = ({
7742
7957
  var import_react_icons12 = require("@radix-ui/react-icons");
7743
7958
  var NavigationMenuPrimitive = __toESM(require("@radix-ui/react-navigation-menu"), 1);
7744
7959
  var import_class_variance_authority6 = require("class-variance-authority");
7745
- var React51 = __toESM(require("react"), 1);
7746
- var import_jsx_runtime28 = require("react/jsx-runtime");
7747
- var NavigationMenu = React51.forwardRef((_a, ref) => {
7960
+ var React52 = __toESM(require("react"), 1);
7961
+ var import_jsx_runtime29 = require("react/jsx-runtime");
7962
+ var NavigationMenu = React52.forwardRef((_a, ref) => {
7748
7963
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
7749
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
7964
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
7750
7965
  NavigationMenuPrimitive.Root,
7751
7966
  __spreadProps(__spreadValues({
7752
7967
  ref,
@@ -7757,15 +7972,15 @@ var NavigationMenu = React51.forwardRef((_a, ref) => {
7757
7972
  }, props), {
7758
7973
  children: [
7759
7974
  children,
7760
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(NavigationMenuViewport, {})
7975
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(NavigationMenuViewport, {})
7761
7976
  ]
7762
7977
  })
7763
7978
  );
7764
7979
  });
7765
7980
  NavigationMenu.displayName = NavigationMenuPrimitive.Root.displayName;
7766
- var NavigationMenuList = React51.forwardRef((_a, ref) => {
7981
+ var NavigationMenuList = React52.forwardRef((_a, ref) => {
7767
7982
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7768
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
7983
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
7769
7984
  NavigationMenuPrimitive.List,
7770
7985
  __spreadValues({
7771
7986
  ref,
@@ -7781,9 +7996,9 @@ var NavigationMenuItem = NavigationMenuPrimitive.Item;
7781
7996
  var navigationMenuTriggerStyle = (0, import_class_variance_authority6.cva)(
7782
7997
  "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"
7783
7998
  );
7784
- var NavigationMenuTrigger = React51.forwardRef((_a, ref) => {
7999
+ var NavigationMenuTrigger = React52.forwardRef((_a, ref) => {
7785
8000
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
7786
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)(
8001
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
7787
8002
  NavigationMenuPrimitive.Trigger,
7788
8003
  __spreadProps(__spreadValues({
7789
8004
  ref,
@@ -7792,7 +8007,7 @@ var NavigationMenuTrigger = React51.forwardRef((_a, ref) => {
7792
8007
  children: [
7793
8008
  children,
7794
8009
  " ",
7795
- /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
8010
+ /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
7796
8011
  import_react_icons12.ChevronDownIcon,
7797
8012
  {
7798
8013
  className: "relative top-[1px] ml-1 h-3 w-3 transition duration-300 group-data-[state=open]:rotate-180",
@@ -7804,9 +8019,9 @@ var NavigationMenuTrigger = React51.forwardRef((_a, ref) => {
7804
8019
  );
7805
8020
  });
7806
8021
  NavigationMenuTrigger.displayName = NavigationMenuPrimitive.Trigger.displayName;
7807
- var NavigationMenuContent = React51.forwardRef((_a, ref) => {
8022
+ var NavigationMenuContent = React52.forwardRef((_a, ref) => {
7808
8023
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7809
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
8024
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
7810
8025
  NavigationMenuPrimitive.Content,
7811
8026
  __spreadValues({
7812
8027
  ref,
@@ -7819,9 +8034,9 @@ var NavigationMenuContent = React51.forwardRef((_a, ref) => {
7819
8034
  });
7820
8035
  NavigationMenuContent.displayName = NavigationMenuPrimitive.Content.displayName;
7821
8036
  var NavigationMenuLink = NavigationMenuPrimitive.Link;
7822
- var NavigationMenuViewport = React51.forwardRef((_a, ref) => {
8037
+ var NavigationMenuViewport = React52.forwardRef((_a, ref) => {
7823
8038
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7824
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
8039
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: cn("absolute left-0 top-full flex justify-center"), children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
7825
8040
  NavigationMenuPrimitive.Viewport,
7826
8041
  __spreadValues({
7827
8042
  className: cn(
@@ -7833,9 +8048,9 @@ var NavigationMenuViewport = React51.forwardRef((_a, ref) => {
7833
8048
  ) });
7834
8049
  });
7835
8050
  NavigationMenuViewport.displayName = NavigationMenuPrimitive.Viewport.displayName;
7836
- var NavigationMenuIndicator = React51.forwardRef((_a, ref) => {
8051
+ var NavigationMenuIndicator = React52.forwardRef((_a, ref) => {
7837
8052
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7838
- return /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(
8053
+ return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
7839
8054
  NavigationMenuPrimitive.Indicator,
7840
8055
  __spreadProps(__spreadValues({
7841
8056
  ref,
@@ -7844,7 +8059,7 @@ var NavigationMenuIndicator = React51.forwardRef((_a, ref) => {
7844
8059
  className
7845
8060
  )
7846
8061
  }, props), {
7847
- children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
8062
+ children: /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("div", { className: "relative top-[60%] h-2 w-2 rotate-45 rounded-tl-sm bg-border shadow-md" })
7848
8063
  })
7849
8064
  );
7850
8065
  });
@@ -7852,12 +8067,12 @@ NavigationMenuIndicator.displayName = NavigationMenuPrimitive.Indicator.displayN
7852
8067
 
7853
8068
  // src/components/pagination.tsx
7854
8069
  var import_react_icons13 = require("@radix-ui/react-icons");
7855
- var React52 = __toESM(require("react"), 1);
7856
- var import_lucide_react6 = require("lucide-react");
7857
- var import_jsx_runtime29 = require("react/jsx-runtime");
8070
+ var React53 = __toESM(require("react"), 1);
8071
+ var import_lucide_react7 = require("lucide-react");
8072
+ var import_jsx_runtime30 = require("react/jsx-runtime");
7858
8073
  var Pagination = (_a) => {
7859
8074
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7860
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
8075
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
7861
8076
  "nav",
7862
8077
  __spreadValues({
7863
8078
  role: "navigation",
@@ -7867,9 +8082,9 @@ var Pagination = (_a) => {
7867
8082
  );
7868
8083
  };
7869
8084
  Pagination.displayName = "Pagination";
7870
- var PaginationContent = React52.forwardRef((_a, ref) => {
8085
+ var PaginationContent = React53.forwardRef((_a, ref) => {
7871
8086
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7872
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
8087
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
7873
8088
  "ul",
7874
8089
  __spreadValues({
7875
8090
  ref,
@@ -7878,9 +8093,9 @@ var PaginationContent = React52.forwardRef((_a, ref) => {
7878
8093
  );
7879
8094
  });
7880
8095
  PaginationContent.displayName = "PaginationContent";
7881
- var PaginationItem = React52.forwardRef((_a, ref) => {
8096
+ var PaginationItem = React53.forwardRef((_a, ref) => {
7882
8097
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7883
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("li", __spreadValues({ ref, className: cn("", className) }, props));
8098
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("li", __spreadValues({ ref, className: cn("", className) }, props));
7884
8099
  });
7885
8100
  PaginationItem.displayName = "PaginationItem";
7886
8101
  var PaginationLink = (_a) => {
@@ -7893,7 +8108,7 @@ var PaginationLink = (_a) => {
7893
8108
  "isActive",
7894
8109
  "size"
7895
8110
  ]);
7896
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(
8111
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
7897
8112
  "a",
7898
8113
  __spreadValues({
7899
8114
  "aria-current": isActive ? "page" : void 0,
@@ -7914,7 +8129,7 @@ var PaginationPreviousLast = (_a) => {
7914
8129
  } = _b, props = __objRest(_b, [
7915
8130
  "className"
7916
8131
  ]);
7917
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
8132
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
7918
8133
  PaginationLink,
7919
8134
  __spreadProps(__spreadValues({
7920
8135
  "aria-label": "Go to previous page",
@@ -7922,8 +8137,8 @@ var PaginationPreviousLast = (_a) => {
7922
8137
  className: cn("gap-1 pl-2.5", className)
7923
8138
  }, props), {
7924
8139
  children: [
7925
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react6.ChevronLeft, { className: "h-4 w-4" }),
7926
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "sr-only", children: "Previous Last" })
8140
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react7.ChevronLeft, { className: "h-4 w-4" }),
8141
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "sr-only", children: "Previous Last" })
7927
8142
  ]
7928
8143
  })
7929
8144
  );
@@ -7935,7 +8150,7 @@ var PaginationPrevious = (_a) => {
7935
8150
  } = _b, props = __objRest(_b, [
7936
8151
  "className"
7937
8152
  ]);
7938
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
8153
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
7939
8154
  PaginationLink,
7940
8155
  __spreadProps(__spreadValues({
7941
8156
  "aria-label": "Go to previous page",
@@ -7943,8 +8158,8 @@ var PaginationPrevious = (_a) => {
7943
8158
  className: cn("gap-1 pl-2.5", className)
7944
8159
  }, props), {
7945
8160
  children: [
7946
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons13.ChevronLeftIcon, { className: "h-4 w-4" }),
7947
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { children: "Previous" })
8161
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_icons13.ChevronLeftIcon, { className: "h-4 w-4" }),
8162
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: "Previous" })
7948
8163
  ]
7949
8164
  })
7950
8165
  );
@@ -7956,7 +8171,7 @@ var PaginationNext = (_a) => {
7956
8171
  } = _b, props = __objRest(_b, [
7957
8172
  "className"
7958
8173
  ]);
7959
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
8174
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
7960
8175
  PaginationLink,
7961
8176
  __spreadProps(__spreadValues({
7962
8177
  "aria-label": "Go to next page",
@@ -7964,8 +8179,8 @@ var PaginationNext = (_a) => {
7964
8179
  className: cn("gap-1 pr-2.5", className)
7965
8180
  }, props), {
7966
8181
  children: [
7967
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { children: "Next" }),
7968
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons13.ChevronRightIcon, { className: "h-4 w-4" })
8182
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { children: "Next" }),
8183
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_icons13.ChevronRightIcon, { className: "h-4 w-4" })
7969
8184
  ]
7970
8185
  })
7971
8186
  );
@@ -7977,7 +8192,7 @@ var PaginationNextLast = (_a) => {
7977
8192
  } = _b, props = __objRest(_b, [
7978
8193
  "className"
7979
8194
  ]);
7980
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
8195
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
7981
8196
  PaginationLink,
7982
8197
  __spreadProps(__spreadValues({
7983
8198
  "aria-label": "Go to next page",
@@ -7985,8 +8200,8 @@ var PaginationNextLast = (_a) => {
7985
8200
  className: cn("gap-1 pr-2.5", className)
7986
8201
  }, props), {
7987
8202
  children: [
7988
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "sr-only", children: "Next Last" }),
7989
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_lucide_react6.ChevronRight, { className: "h-4 w-4" })
8203
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "sr-only", children: "Next Last" }),
8204
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_lucide_react7.ChevronRight, { className: "h-4 w-4" })
7990
8205
  ]
7991
8206
  })
7992
8207
  );
@@ -7998,15 +8213,15 @@ var PaginationEllipsis = (_a) => {
7998
8213
  } = _b, props = __objRest(_b, [
7999
8214
  "className"
8000
8215
  ]);
8001
- return /* @__PURE__ */ (0, import_jsx_runtime29.jsxs)(
8216
+ return /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
8002
8217
  "span",
8003
8218
  __spreadProps(__spreadValues({
8004
8219
  "aria-hidden": true,
8005
8220
  className: cn("flex h-9 w-9 items-center justify-center", className)
8006
8221
  }, props), {
8007
8222
  children: [
8008
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)(import_react_icons13.DotsHorizontalIcon, { className: "h-4 w-4" }),
8009
- /* @__PURE__ */ (0, import_jsx_runtime29.jsx)("span", { className: "sr-only", children: "More pages" })
8223
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_react_icons13.DotsHorizontalIcon, { className: "h-4 w-4" }),
8224
+ /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "sr-only", children: "More pages" })
8010
8225
  ]
8011
8226
  })
8012
8227
  );
@@ -8015,14 +8230,14 @@ PaginationEllipsis.displayName = "PaginationEllipsis";
8015
8230
 
8016
8231
  // src/components/popover.tsx
8017
8232
  var PopoverPrimitive = __toESM(require("@radix-ui/react-popover"), 1);
8018
- var React53 = __toESM(require("react"), 1);
8019
- var import_jsx_runtime30 = require("react/jsx-runtime");
8233
+ var React54 = __toESM(require("react"), 1);
8234
+ var import_jsx_runtime31 = require("react/jsx-runtime");
8020
8235
  var Popover = PopoverPrimitive.Root;
8021
8236
  var PopoverTrigger = PopoverPrimitive.Trigger;
8022
8237
  var PopoverAnchor = PopoverPrimitive.Anchor;
8023
- var PopoverContent = React53.forwardRef((_a, ref) => {
8238
+ var PopoverContent = React54.forwardRef((_a, ref) => {
8024
8239
  var _b = _a, { className, align = "center", sideOffset = 4 } = _b, props = __objRest(_b, ["className", "align", "sideOffset"]);
8025
- return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
8240
+ return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(PopoverPrimitive.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
8026
8241
  PopoverPrimitive.Content,
8027
8242
  __spreadValues({
8028
8243
  ref,
@@ -8039,11 +8254,11 @@ PopoverContent.displayName = PopoverPrimitive.Content.displayName;
8039
8254
 
8040
8255
  // src/components/progress.tsx
8041
8256
  var ProgressPrimitive = __toESM(require("@radix-ui/react-progress"), 1);
8042
- var React54 = __toESM(require("react"), 1);
8043
- var import_jsx_runtime31 = require("react/jsx-runtime");
8044
- var Progress = React54.forwardRef((_a, ref) => {
8257
+ var React55 = __toESM(require("react"), 1);
8258
+ var import_jsx_runtime32 = require("react/jsx-runtime");
8259
+ var Progress = React55.forwardRef((_a, ref) => {
8045
8260
  var _b = _a, { className, value } = _b, props = __objRest(_b, ["className", "value"]);
8046
- return /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
8261
+ return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
8047
8262
  ProgressPrimitive.Root,
8048
8263
  __spreadProps(__spreadValues({
8049
8264
  ref,
@@ -8052,7 +8267,7 @@ var Progress = React54.forwardRef((_a, ref) => {
8052
8267
  className
8053
8268
  )
8054
8269
  }, props), {
8055
- children: /* @__PURE__ */ (0, import_jsx_runtime31.jsx)(
8270
+ children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
8056
8271
  ProgressPrimitive.Indicator,
8057
8272
  {
8058
8273
  className: "h-full w-full flex-1 bg-primary transition-all",
@@ -8067,11 +8282,11 @@ Progress.displayName = ProgressPrimitive.Root.displayName;
8067
8282
  // src/components/radio-group.tsx
8068
8283
  var import_react_icons14 = require("@radix-ui/react-icons");
8069
8284
  var RadioGroupPrimitive = __toESM(require("@radix-ui/react-radio-group"), 1);
8070
- var React55 = __toESM(require("react"), 1);
8071
- var import_jsx_runtime32 = require("react/jsx-runtime");
8072
- var RadioGroup4 = React55.forwardRef((_a, ref) => {
8285
+ var React56 = __toESM(require("react"), 1);
8286
+ var import_jsx_runtime33 = require("react/jsx-runtime");
8287
+ var RadioGroup4 = React56.forwardRef((_a, ref) => {
8073
8288
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8074
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
8289
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
8075
8290
  RadioGroupPrimitive.Root,
8076
8291
  __spreadProps(__spreadValues({
8077
8292
  className: cn("grid gap-2", className)
@@ -8081,9 +8296,9 @@ var RadioGroup4 = React55.forwardRef((_a, ref) => {
8081
8296
  );
8082
8297
  });
8083
8298
  RadioGroup4.displayName = RadioGroupPrimitive.Root.displayName;
8084
- var RadioGroupItem = React55.forwardRef((_a, ref) => {
8299
+ var RadioGroupItem = React56.forwardRef((_a, ref) => {
8085
8300
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8086
- return /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(
8301
+ return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
8087
8302
  RadioGroupPrimitive.Item,
8088
8303
  __spreadProps(__spreadValues({
8089
8304
  ref,
@@ -8092,7 +8307,7 @@ var RadioGroupItem = React55.forwardRef((_a, ref) => {
8092
8307
  className
8093
8308
  )
8094
8309
  }, props), {
8095
- children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime32.jsx)(import_react_icons14.CheckIcon, { className: "h-3.5 w-3.5 fill-primary" }) })
8310
+ children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(RadioGroupPrimitive.Indicator, { className: "flex items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react_icons14.CheckIcon, { className: "h-3.5 w-3.5 fill-primary" }) })
8096
8311
  })
8097
8312
  );
8098
8313
  });
@@ -8101,14 +8316,14 @@ RadioGroupItem.displayName = RadioGroupPrimitive.Item.displayName;
8101
8316
  // src/components/resizable.tsx
8102
8317
  var import_react_icons15 = require("@radix-ui/react-icons");
8103
8318
  var ResizablePrimitive = __toESM(require("react-resizable-panels"), 1);
8104
- var import_jsx_runtime33 = require("react/jsx-runtime");
8319
+ var import_jsx_runtime34 = require("react/jsx-runtime");
8105
8320
  var ResizablePanelGroup = (_a) => {
8106
8321
  var _b = _a, {
8107
8322
  className
8108
8323
  } = _b, props = __objRest(_b, [
8109
8324
  "className"
8110
8325
  ]);
8111
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
8326
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
8112
8327
  ResizablePrimitive.Group,
8113
8328
  __spreadValues({
8114
8329
  className: cn("flex h-full w-full aria-[orientation=vertical]:flex-col", className)
@@ -8124,7 +8339,7 @@ var ResizableHandle = (_a) => {
8124
8339
  "withHandle",
8125
8340
  "className"
8126
8341
  ]);
8127
- return /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(
8342
+ return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
8128
8343
  ResizablePrimitive.Separator,
8129
8344
  __spreadProps(__spreadValues({
8130
8345
  className: cn(
@@ -8132,35 +8347,35 @@ var ResizableHandle = (_a) => {
8132
8347
  className
8133
8348
  )
8134
8349
  }, props), {
8135
- children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime33.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime33.jsx)(import_react_icons15.DragHandleDots2Icon, { className: "h-2.5 w-2.5" }) })
8350
+ children: withHandle && /* @__PURE__ */ (0, import_jsx_runtime34.jsx)("div", { className: "z-10 flex h-4 w-3 items-center justify-center rounded-sm border bg-border", children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(import_react_icons15.DragHandleDots2Icon, { className: "h-2.5 w-2.5" }) })
8136
8351
  })
8137
8352
  );
8138
8353
  };
8139
8354
 
8140
8355
  // src/components/scroll-area.tsx
8141
8356
  var ScrollAreaPrimitive = __toESM(require("@radix-ui/react-scroll-area"), 1);
8142
- var React56 = __toESM(require("react"), 1);
8143
- var import_jsx_runtime34 = require("react/jsx-runtime");
8144
- var ScrollArea = React56.forwardRef((_a, ref) => {
8357
+ var React57 = __toESM(require("react"), 1);
8358
+ var import_jsx_runtime35 = require("react/jsx-runtime");
8359
+ var ScrollArea = React57.forwardRef((_a, ref) => {
8145
8360
  var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
8146
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsxs)(
8361
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsxs)(
8147
8362
  ScrollAreaPrimitive.Root,
8148
8363
  __spreadProps(__spreadValues({
8149
8364
  ref,
8150
8365
  className: cn("relative overflow-hidden", className)
8151
8366
  }, props), {
8152
8367
  children: [
8153
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
8154
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ScrollBar, {}),
8155
- /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ScrollAreaPrimitive.Corner, {})
8368
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ScrollAreaPrimitive.Viewport, { className: "h-full w-full rounded-[inherit]", children }),
8369
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ScrollBar, {}),
8370
+ /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ScrollAreaPrimitive.Corner, {})
8156
8371
  ]
8157
8372
  })
8158
8373
  );
8159
8374
  });
8160
8375
  ScrollArea.displayName = ScrollAreaPrimitive.Root.displayName;
8161
- var ScrollBar = React56.forwardRef((_a, ref) => {
8376
+ var ScrollBar = React57.forwardRef((_a, ref) => {
8162
8377
  var _b = _a, { className, orientation = "vertical" } = _b, props = __objRest(_b, ["className", "orientation"]);
8163
- return /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(
8378
+ return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
8164
8379
  ScrollAreaPrimitive.ScrollAreaScrollbar,
8165
8380
  __spreadProps(__spreadValues({
8166
8381
  ref,
@@ -8172,7 +8387,7 @@ var ScrollBar = React56.forwardRef((_a, ref) => {
8172
8387
  className
8173
8388
  )
8174
8389
  }, props), {
8175
- children: /* @__PURE__ */ (0, import_jsx_runtime34.jsx)(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
8390
+ children: /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(ScrollAreaPrimitive.ScrollAreaThumb, { className: "relative flex-1 rounded-full bg-border" })
8176
8391
  })
8177
8392
  );
8178
8393
  });
@@ -8181,7 +8396,7 @@ ScrollBar.displayName = ScrollAreaPrimitive.ScrollAreaScrollbar.displayName;
8181
8396
  // src/components/search-input.tsx
8182
8397
  var import_react33 = __toESM(require("react"), 1);
8183
8398
  var import_use_debounce = require("use-debounce");
8184
- var import_jsx_runtime35 = require("react/jsx-runtime");
8399
+ var import_jsx_runtime36 = require("react/jsx-runtime");
8185
8400
  function SearchInput({
8186
8401
  value = "",
8187
8402
  placeholder,
@@ -8202,7 +8417,7 @@ function SearchInput({
8202
8417
  setSearchTerm(nextValue);
8203
8418
  debouncedSearch(nextValue);
8204
8419
  };
8205
- return /* @__PURE__ */ (0, import_jsx_runtime35.jsx)(
8420
+ return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
8206
8421
  Input,
8207
8422
  {
8208
8423
  placeholder: placeholder || "Search...",
@@ -8215,10 +8430,10 @@ function SearchInput({
8215
8430
  }
8216
8431
 
8217
8432
  // src/components/searchable-select.tsx
8218
- var React58 = __toESM(require("react"), 1);
8433
+ var React59 = __toESM(require("react"), 1);
8219
8434
  var SelectPrimitive2 = __toESM(require("@radix-ui/react-select"), 1);
8220
8435
  var import_react_icons16 = require("@radix-ui/react-icons");
8221
- var import_jsx_runtime36 = require("react/jsx-runtime");
8436
+ var import_jsx_runtime37 = require("react/jsx-runtime");
8222
8437
  function normalizeText(value) {
8223
8438
  return String(value != null ? value : "").normalize("NFD").replace(new RegExp("\\p{Diacritic}", "gu"), "").toLowerCase();
8224
8439
  }
@@ -8248,10 +8463,10 @@ function SearchableSelect(_a) {
8248
8463
  "itemClassName",
8249
8464
  "searchInputClassName"
8250
8465
  ]);
8251
- const [open, setOpen] = React58.useState(false);
8252
- const [query, setQuery] = React58.useState("");
8253
- const inputRef = React58.useRef(null);
8254
- const filteredItems = React58.useMemo(() => {
8466
+ const [open, setOpen] = React59.useState(false);
8467
+ const [query, setQuery] = React59.useState("");
8468
+ const inputRef = React59.useRef(null);
8469
+ const filteredItems = React59.useMemo(() => {
8255
8470
  const normalizedQuery = normalizeText(query.trim());
8256
8471
  if (!normalizedQuery) return items;
8257
8472
  return items.filter((item) => {
@@ -8262,7 +8477,7 @@ function SearchableSelect(_a) {
8262
8477
  return haystack.includes(normalizedQuery);
8263
8478
  });
8264
8479
  }, [items, query]);
8265
- return /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
8480
+ return /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
8266
8481
  SelectPrimitive2.Root,
8267
8482
  __spreadProps(__spreadValues({
8268
8483
  open,
@@ -8281,7 +8496,7 @@ function SearchableSelect(_a) {
8281
8496
  }
8282
8497
  }, rootProps), {
8283
8498
  children: [
8284
- /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
8499
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
8285
8500
  SelectPrimitive2.Trigger,
8286
8501
  {
8287
8502
  className: cn(
@@ -8289,12 +8504,12 @@ function SearchableSelect(_a) {
8289
8504
  triggerClassName
8290
8505
  ),
8291
8506
  children: [
8292
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SelectPrimitive2.Value, { placeholder }),
8293
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SelectPrimitive2.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_icons16.CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
8507
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SelectPrimitive2.Value, { placeholder }),
8508
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SelectPrimitive2.Icon, { asChild: true, children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_icons16.CaretSortIcon, { className: "h-4 w-4 opacity-50" }) })
8294
8509
  ]
8295
8510
  }
8296
8511
  ),
8297
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SelectPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
8512
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SelectPrimitive2.Portal, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
8298
8513
  SelectPrimitive2.Content,
8299
8514
  {
8300
8515
  position: "popper",
@@ -8310,8 +8525,8 @@ function SearchableSelect(_a) {
8310
8525
  });
8311
8526
  },
8312
8527
  children: [
8313
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "border-b border-border bg-popover p-2", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)("div", { className: "relative", children: [
8314
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
8528
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "border-b border-border bg-popover p-2", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)("div", { className: "relative", children: [
8529
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
8315
8530
  "input",
8316
8531
  {
8317
8532
  ref: inputRef,
@@ -8327,7 +8542,7 @@ function SearchableSelect(_a) {
8327
8542
  )
8328
8543
  }
8329
8544
  ),
8330
- query ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(
8545
+ query ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
8331
8546
  "button",
8332
8547
  {
8333
8548
  type: "button",
@@ -8338,11 +8553,11 @@ function SearchableSelect(_a) {
8338
8553
  (_a2 = inputRef.current) == null ? void 0 : _a2.focus();
8339
8554
  },
8340
8555
  className: "absolute right-2 top-1/2 -translate-y-1/2 rounded-sm opacity-70 transition hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring/40",
8341
- children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_icons16.Cross2Icon, { className: "h-3.5 w-3.5" })
8556
+ children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_icons16.Cross2Icon, { className: "h-3.5 w-3.5" })
8342
8557
  }
8343
8558
  ) : null
8344
8559
  ] }) }),
8345
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SelectPrimitive2.Viewport, { className: "max-h-80 p-1", children: filteredItems.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { className: "px-3 py-2 text-sm text-muted-foreground", children: emptyText }) : filteredItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime36.jsxs)(
8560
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SelectPrimitive2.Viewport, { className: "max-h-80 p-1", children: filteredItems.length === 0 ? /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("div", { className: "px-3 py-2 text-sm text-muted-foreground", children: emptyText }) : filteredItems.map((item) => /* @__PURE__ */ (0, import_jsx_runtime37.jsxs)(
8346
8561
  SelectPrimitive2.Item,
8347
8562
  {
8348
8563
  value: item.value,
@@ -8352,8 +8567,8 @@ function SearchableSelect(_a) {
8352
8567
  itemClassName
8353
8568
  ),
8354
8569
  children: [
8355
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SelectPrimitive2.ItemText, { children: item.label }),
8356
- /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(SelectPrimitive2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime36.jsx)(import_react_icons16.CheckIcon, { className: "h-4 w-4" }) }) })
8570
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SelectPrimitive2.ItemText, { children: item.label }),
8571
+ /* @__PURE__ */ (0, import_jsx_runtime37.jsx)("span", { className: "absolute right-2 flex h-3.5 w-3.5 items-center justify-center", children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(SelectPrimitive2.ItemIndicator, { children: /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(import_react_icons16.CheckIcon, { className: "h-4 w-4" }) }) })
8357
8572
  ]
8358
8573
  },
8359
8574
  item.value
@@ -8368,12 +8583,12 @@ function SearchableSelect(_a) {
8368
8583
 
8369
8584
  // src/components/separator.tsx
8370
8585
  var SeparatorPrimitive = __toESM(require("@radix-ui/react-separator"), 1);
8371
- var React59 = __toESM(require("react"), 1);
8372
- var import_jsx_runtime37 = require("react/jsx-runtime");
8373
- var Separator6 = React59.forwardRef(
8586
+ var React60 = __toESM(require("react"), 1);
8587
+ var import_jsx_runtime38 = require("react/jsx-runtime");
8588
+ var Separator6 = React60.forwardRef(
8374
8589
  (_a, ref) => {
8375
8590
  var _b = _a, { className, orientation = "horizontal", decorative = true } = _b, props = __objRest(_b, ["className", "orientation", "decorative"]);
8376
- return /* @__PURE__ */ (0, import_jsx_runtime37.jsx)(
8591
+ return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
8377
8592
  SeparatorPrimitive.Root,
8378
8593
  __spreadValues({
8379
8594
  ref,
@@ -8394,15 +8609,15 @@ Separator6.displayName = SeparatorPrimitive.Root.displayName;
8394
8609
  var SheetPrimitive = __toESM(require("@radix-ui/react-dialog"), 1);
8395
8610
  var import_react_icons17 = require("@radix-ui/react-icons");
8396
8611
  var import_class_variance_authority7 = require("class-variance-authority");
8397
- var React60 = __toESM(require("react"), 1);
8398
- var import_jsx_runtime38 = require("react/jsx-runtime");
8612
+ var React61 = __toESM(require("react"), 1);
8613
+ var import_jsx_runtime39 = require("react/jsx-runtime");
8399
8614
  var Sheet = SheetPrimitive.Root;
8400
8615
  var SheetTrigger = SheetPrimitive.Trigger;
8401
8616
  var SheetClose = SheetPrimitive.Close;
8402
8617
  var SheetPortal = SheetPrimitive.Portal;
8403
- var SheetOverlay = React60.forwardRef((_a, ref) => {
8618
+ var SheetOverlay = React61.forwardRef((_a, ref) => {
8404
8619
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8405
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
8620
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
8406
8621
  SheetPrimitive.Overlay,
8407
8622
  __spreadProps(__spreadValues({
8408
8623
  className: cn(
@@ -8431,11 +8646,11 @@ var sheetVariants = (0, import_class_variance_authority7.cva)(
8431
8646
  }
8432
8647
  }
8433
8648
  );
8434
- var SheetContent = React60.forwardRef((_a, ref) => {
8649
+ var SheetContent = React61.forwardRef((_a, ref) => {
8435
8650
  var _b = _a, { side = "right", className, children } = _b, props = __objRest(_b, ["side", "className", "children"]);
8436
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(SheetPortal, { children: [
8437
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(SheetOverlay, {}),
8438
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(
8651
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(SheetPortal, { children: [
8652
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(SheetOverlay, {}),
8653
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(
8439
8654
  SheetPrimitive.Content,
8440
8655
  __spreadProps(__spreadValues({
8441
8656
  ref,
@@ -8443,9 +8658,9 @@ var SheetContent = React60.forwardRef((_a, ref) => {
8443
8658
  }, props), {
8444
8659
  children: [
8445
8660
  children,
8446
- /* @__PURE__ */ (0, import_jsx_runtime38.jsxs)(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: [
8447
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(import_react_icons17.Cross2Icon, { className: "h-4 w-4" }),
8448
- /* @__PURE__ */ (0, import_jsx_runtime38.jsx)("span", { className: "sr-only", children: "Close" })
8661
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsxs)(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: [
8662
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(import_react_icons17.Cross2Icon, { className: "h-4 w-4" }),
8663
+ /* @__PURE__ */ (0, import_jsx_runtime39.jsx)("span", { className: "sr-only", children: "Close" })
8449
8664
  ] })
8450
8665
  ]
8451
8666
  })
@@ -8459,7 +8674,7 @@ var SheetHeader = (_a) => {
8459
8674
  } = _b, props = __objRest(_b, [
8460
8675
  "className"
8461
8676
  ]);
8462
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
8677
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
8463
8678
  "div",
8464
8679
  __spreadValues({
8465
8680
  className: cn(
@@ -8476,7 +8691,7 @@ var SheetFooter = (_a) => {
8476
8691
  } = _b, props = __objRest(_b, [
8477
8692
  "className"
8478
8693
  ]);
8479
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
8694
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
8480
8695
  "div",
8481
8696
  __spreadValues({
8482
8697
  className: cn(
@@ -8487,9 +8702,9 @@ var SheetFooter = (_a) => {
8487
8702
  );
8488
8703
  };
8489
8704
  SheetFooter.displayName = "SheetFooter";
8490
- var SheetTitle = React60.forwardRef((_a, ref) => {
8705
+ var SheetTitle = React61.forwardRef((_a, ref) => {
8491
8706
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8492
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
8707
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
8493
8708
  SheetPrimitive.Title,
8494
8709
  __spreadValues({
8495
8710
  ref,
@@ -8498,9 +8713,9 @@ var SheetTitle = React60.forwardRef((_a, ref) => {
8498
8713
  );
8499
8714
  });
8500
8715
  SheetTitle.displayName = SheetPrimitive.Title.displayName;
8501
- var SheetDescription = React60.forwardRef((_a, ref) => {
8716
+ var SheetDescription = React61.forwardRef((_a, ref) => {
8502
8717
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8503
- return /* @__PURE__ */ (0, import_jsx_runtime38.jsx)(
8718
+ return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
8504
8719
  SheetPrimitive.Description,
8505
8720
  __spreadValues({
8506
8721
  ref,
@@ -8511,14 +8726,14 @@ var SheetDescription = React60.forwardRef((_a, ref) => {
8511
8726
  SheetDescription.displayName = SheetPrimitive.Description.displayName;
8512
8727
 
8513
8728
  // src/components/skeleton.tsx
8514
- var import_jsx_runtime39 = require("react/jsx-runtime");
8729
+ var import_jsx_runtime40 = require("react/jsx-runtime");
8515
8730
  function Skeleton(_a) {
8516
8731
  var _b = _a, {
8517
8732
  className
8518
8733
  } = _b, props = __objRest(_b, [
8519
8734
  "className"
8520
8735
  ]);
8521
- return /* @__PURE__ */ (0, import_jsx_runtime39.jsx)(
8736
+ return /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(
8522
8737
  "div",
8523
8738
  __spreadValues({
8524
8739
  className: cn("animate-pulse rounded-md bg-primary/10", className)
@@ -8528,11 +8743,11 @@ function Skeleton(_a) {
8528
8743
 
8529
8744
  // src/components/slider.tsx
8530
8745
  var SliderPrimitive = __toESM(require("@radix-ui/react-slider"), 1);
8531
- var React61 = __toESM(require("react"), 1);
8532
- var import_jsx_runtime40 = require("react/jsx-runtime");
8533
- var Slider = React61.forwardRef((_a, ref) => {
8746
+ var React62 = __toESM(require("react"), 1);
8747
+ var import_jsx_runtime41 = require("react/jsx-runtime");
8748
+ var Slider = React62.forwardRef((_a, ref) => {
8534
8749
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8535
- return /* @__PURE__ */ (0, import_jsx_runtime40.jsxs)(
8750
+ return /* @__PURE__ */ (0, import_jsx_runtime41.jsxs)(
8536
8751
  SliderPrimitive.Root,
8537
8752
  __spreadProps(__spreadValues({
8538
8753
  ref,
@@ -8542,8 +8757,8 @@ var Slider = React61.forwardRef((_a, ref) => {
8542
8757
  )
8543
8758
  }, props), {
8544
8759
  children: [
8545
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
8546
- /* @__PURE__ */ (0, import_jsx_runtime40.jsx)(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" })
8760
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SliderPrimitive.Track, { className: "relative h-1.5 w-full grow overflow-hidden rounded-full bg-primary/20", children: /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(SliderPrimitive.Range, { className: "absolute h-full bg-primary" }) }),
8761
+ /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(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" })
8547
8762
  ]
8548
8763
  })
8549
8764
  );
@@ -8553,11 +8768,11 @@ Slider.displayName = SliderPrimitive.Root.displayName;
8553
8768
  // src/components/sonner.tsx
8554
8769
  var import_next_themes = require("next-themes");
8555
8770
  var import_sonner = require("sonner");
8556
- var import_jsx_runtime41 = require("react/jsx-runtime");
8771
+ var import_jsx_runtime42 = require("react/jsx-runtime");
8557
8772
  var ToasterSonner = (_a) => {
8558
8773
  var props = __objRest(_a, []);
8559
8774
  const { theme = "system" } = (0, import_next_themes.useTheme)();
8560
- return /* @__PURE__ */ (0, import_jsx_runtime41.jsx)(
8775
+ return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
8561
8776
  import_sonner.Toaster,
8562
8777
  __spreadValues({
8563
8778
  theme,
@@ -8576,11 +8791,11 @@ var ToasterSonner = (_a) => {
8576
8791
 
8577
8792
  // src/components/switch.tsx
8578
8793
  var SwitchPrimitives = __toESM(require("@radix-ui/react-switch"), 1);
8579
- var React62 = __toESM(require("react"), 1);
8580
- var import_jsx_runtime42 = require("react/jsx-runtime");
8581
- var Switch = React62.forwardRef((_a, ref) => {
8794
+ var React63 = __toESM(require("react"), 1);
8795
+ var import_jsx_runtime43 = require("react/jsx-runtime");
8796
+ var Switch = React63.forwardRef((_a, ref) => {
8582
8797
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8583
- return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
8798
+ return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8584
8799
  SwitchPrimitives.Root,
8585
8800
  __spreadProps(__spreadValues({
8586
8801
  className: cn(
@@ -8589,7 +8804,7 @@ var Switch = React62.forwardRef((_a, ref) => {
8589
8804
  )
8590
8805
  }, props), {
8591
8806
  ref,
8592
- children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(
8807
+ children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8593
8808
  SwitchPrimitives.Thumb,
8594
8809
  {
8595
8810
  className: cn(
@@ -8603,12 +8818,12 @@ var Switch = React62.forwardRef((_a, ref) => {
8603
8818
  Switch.displayName = SwitchPrimitives.Root.displayName;
8604
8819
 
8605
8820
  // src/components/table.tsx
8606
- var React63 = __toESM(require("react"), 1);
8607
- var import_jsx_runtime43 = require("react/jsx-runtime");
8608
- var Table = React63.forwardRef(
8821
+ var React64 = __toESM(require("react"), 1);
8822
+ var import_jsx_runtime44 = require("react/jsx-runtime");
8823
+ var Table = React64.forwardRef(
8609
8824
  (_a, ref) => {
8610
8825
  var _b = _a, { className, containerClassName } = _b, props = __objRest(_b, ["className", "containerClassName"]);
8611
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("div", { className: cn("relative w-full overflow-visible", containerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8826
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("div", { className: cn("relative w-full overflow-visible", containerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
8612
8827
  "table",
8613
8828
  __spreadValues({
8614
8829
  ref,
@@ -8618,14 +8833,14 @@ var Table = React63.forwardRef(
8618
8833
  }
8619
8834
  );
8620
8835
  Table.displayName = "Table";
8621
- var TableHeader = React63.forwardRef((_a, ref) => {
8836
+ var TableHeader = React64.forwardRef((_a, ref) => {
8622
8837
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8623
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b", className) }, props));
8838
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)("thead", __spreadValues({ ref, className: cn("[&_tr]:border-b", className) }, props));
8624
8839
  });
8625
8840
  TableHeader.displayName = "TableHeader";
8626
- var TableBody = React63.forwardRef((_a, ref) => {
8841
+ var TableBody = React64.forwardRef((_a, ref) => {
8627
8842
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8628
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8843
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
8629
8844
  "tbody",
8630
8845
  __spreadValues({
8631
8846
  ref,
@@ -8634,9 +8849,9 @@ var TableBody = React63.forwardRef((_a, ref) => {
8634
8849
  );
8635
8850
  });
8636
8851
  TableBody.displayName = "TableBody";
8637
- var TableFooter = React63.forwardRef((_a, ref) => {
8852
+ var TableFooter = React64.forwardRef((_a, ref) => {
8638
8853
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8639
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8854
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
8640
8855
  "tfoot",
8641
8856
  __spreadValues({
8642
8857
  ref,
@@ -8648,9 +8863,9 @@ var TableFooter = React63.forwardRef((_a, ref) => {
8648
8863
  );
8649
8864
  });
8650
8865
  TableFooter.displayName = "TableFooter";
8651
- var TableRow = React63.forwardRef((_a, ref) => {
8866
+ var TableRow = React64.forwardRef((_a, ref) => {
8652
8867
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8653
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8868
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
8654
8869
  "tr",
8655
8870
  __spreadValues({
8656
8871
  ref,
@@ -8662,9 +8877,9 @@ var TableRow = React63.forwardRef((_a, ref) => {
8662
8877
  );
8663
8878
  });
8664
8879
  TableRow.displayName = "TableRow";
8665
- var TableHead = React63.forwardRef((_a, ref) => {
8880
+ var TableHead = React64.forwardRef((_a, ref) => {
8666
8881
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8667
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8882
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
8668
8883
  "th",
8669
8884
  __spreadValues({
8670
8885
  ref,
@@ -8676,9 +8891,9 @@ var TableHead = React63.forwardRef((_a, ref) => {
8676
8891
  );
8677
8892
  });
8678
8893
  TableHead.displayName = "TableHead";
8679
- var TableCell = React63.forwardRef((_a, ref) => {
8894
+ var TableCell = React64.forwardRef((_a, ref) => {
8680
8895
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8681
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8896
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
8682
8897
  "td",
8683
8898
  __spreadValues({
8684
8899
  ref,
@@ -8690,9 +8905,9 @@ var TableCell = React63.forwardRef((_a, ref) => {
8690
8905
  );
8691
8906
  });
8692
8907
  TableCell.displayName = "TableCell";
8693
- var TableCaption = React63.forwardRef((_a, ref) => {
8908
+ var TableCaption = React64.forwardRef((_a, ref) => {
8694
8909
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8695
- return /* @__PURE__ */ (0, import_jsx_runtime43.jsx)(
8910
+ return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
8696
8911
  "caption",
8697
8912
  __spreadValues({
8698
8913
  ref,
@@ -8704,12 +8919,12 @@ TableCaption.displayName = "TableCaption";
8704
8919
 
8705
8920
  // src/components/tabs.tsx
8706
8921
  var TabsPrimitive = __toESM(require("@radix-ui/react-tabs"), 1);
8707
- var React64 = __toESM(require("react"), 1);
8708
- var import_jsx_runtime44 = require("react/jsx-runtime");
8922
+ var React65 = __toESM(require("react"), 1);
8923
+ var import_jsx_runtime45 = require("react/jsx-runtime");
8709
8924
  var Tabs = TabsPrimitive.Root;
8710
- var TabsList = React64.forwardRef((_a, ref) => {
8925
+ var TabsList = React65.forwardRef((_a, ref) => {
8711
8926
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8712
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
8927
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
8713
8928
  TabsPrimitive.List,
8714
8929
  __spreadValues({
8715
8930
  ref,
@@ -8721,9 +8936,9 @@ var TabsList = React64.forwardRef((_a, ref) => {
8721
8936
  );
8722
8937
  });
8723
8938
  TabsList.displayName = TabsPrimitive.List.displayName;
8724
- var TabsTrigger = React64.forwardRef((_a, ref) => {
8939
+ var TabsTrigger = React65.forwardRef((_a, ref) => {
8725
8940
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8726
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
8941
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
8727
8942
  TabsPrimitive.Trigger,
8728
8943
  __spreadValues({
8729
8944
  ref,
@@ -8735,9 +8950,9 @@ var TabsTrigger = React64.forwardRef((_a, ref) => {
8735
8950
  );
8736
8951
  });
8737
8952
  TabsTrigger.displayName = TabsPrimitive.Trigger.displayName;
8738
- var TabsContent = React64.forwardRef((_a, ref) => {
8953
+ var TabsContent = React65.forwardRef((_a, ref) => {
8739
8954
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8740
- return /* @__PURE__ */ (0, import_jsx_runtime44.jsx)(
8955
+ return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
8741
8956
  TabsPrimitive.Content,
8742
8957
  __spreadValues({
8743
8958
  ref,
@@ -8751,12 +8966,12 @@ var TabsContent = React64.forwardRef((_a, ref) => {
8751
8966
  TabsContent.displayName = TabsPrimitive.Content.displayName;
8752
8967
 
8753
8968
  // src/components/textarea.tsx
8754
- var React65 = __toESM(require("react"), 1);
8755
- var import_jsx_runtime45 = require("react/jsx-runtime");
8756
- var Textarea = React65.forwardRef(
8969
+ var React66 = __toESM(require("react"), 1);
8970
+ var import_jsx_runtime46 = require("react/jsx-runtime");
8971
+ var Textarea = React66.forwardRef(
8757
8972
  (_a, ref) => {
8758
8973
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8759
- return /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(
8974
+ return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
8760
8975
  "textarea",
8761
8976
  __spreadValues({
8762
8977
  className: cn(
@@ -8774,12 +8989,12 @@ Textarea.displayName = "Textarea";
8774
8989
  var import_react_icons18 = require("@radix-ui/react-icons");
8775
8990
  var ToastPrimitives = __toESM(require("@radix-ui/react-toast"), 1);
8776
8991
  var import_class_variance_authority8 = require("class-variance-authority");
8777
- var React66 = __toESM(require("react"), 1);
8778
- var import_jsx_runtime46 = require("react/jsx-runtime");
8992
+ var React67 = __toESM(require("react"), 1);
8993
+ var import_jsx_runtime47 = require("react/jsx-runtime");
8779
8994
  var ToastProvider = ToastPrimitives.Provider;
8780
- var ToastViewport = React66.forwardRef((_a, ref) => {
8995
+ var ToastViewport = React67.forwardRef((_a, ref) => {
8781
8996
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8782
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
8997
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8783
8998
  ToastPrimitives.Viewport,
8784
8999
  __spreadValues({
8785
9000
  ref,
@@ -8805,9 +9020,9 @@ var toastVariants = (0, import_class_variance_authority8.cva)(
8805
9020
  }
8806
9021
  }
8807
9022
  );
8808
- var Toast = React66.forwardRef((_a, ref) => {
9023
+ var Toast = React67.forwardRef((_a, ref) => {
8809
9024
  var _b = _a, { className, variant } = _b, props = __objRest(_b, ["className", "variant"]);
8810
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
9025
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8811
9026
  ToastPrimitives.Root,
8812
9027
  __spreadValues({
8813
9028
  ref,
@@ -8816,9 +9031,9 @@ var Toast = React66.forwardRef((_a, ref) => {
8816
9031
  );
8817
9032
  });
8818
9033
  Toast.displayName = ToastPrimitives.Root.displayName;
8819
- var ToastAction = React66.forwardRef((_a, ref) => {
9034
+ var ToastAction = React67.forwardRef((_a, ref) => {
8820
9035
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8821
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
9036
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8822
9037
  ToastPrimitives.Action,
8823
9038
  __spreadValues({
8824
9039
  ref,
@@ -8830,9 +9045,9 @@ var ToastAction = React66.forwardRef((_a, ref) => {
8830
9045
  );
8831
9046
  });
8832
9047
  ToastAction.displayName = ToastPrimitives.Action.displayName;
8833
- var ToastClose = React66.forwardRef((_a, ref) => {
9048
+ var ToastClose = React67.forwardRef((_a, ref) => {
8834
9049
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8835
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
9050
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8836
9051
  ToastPrimitives.Close,
8837
9052
  __spreadProps(__spreadValues({
8838
9053
  ref,
@@ -8842,14 +9057,14 @@ var ToastClose = React66.forwardRef((_a, ref) => {
8842
9057
  ),
8843
9058
  "toast-close": ""
8844
9059
  }, props), {
8845
- children: /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(import_react_icons18.Cross2Icon, { className: "h-4 w-4" })
9060
+ children: /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(import_react_icons18.Cross2Icon, { className: "h-4 w-4" })
8846
9061
  })
8847
9062
  );
8848
9063
  });
8849
9064
  ToastClose.displayName = ToastPrimitives.Close.displayName;
8850
- var ToastTitle = React66.forwardRef((_a, ref) => {
9065
+ var ToastTitle = React67.forwardRef((_a, ref) => {
8851
9066
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8852
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
9067
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8853
9068
  ToastPrimitives.Title,
8854
9069
  __spreadValues({
8855
9070
  ref,
@@ -8858,9 +9073,9 @@ var ToastTitle = React66.forwardRef((_a, ref) => {
8858
9073
  );
8859
9074
  });
8860
9075
  ToastTitle.displayName = ToastPrimitives.Title.displayName;
8861
- var ToastDescription = React66.forwardRef((_a, ref) => {
9076
+ var ToastDescription = React67.forwardRef((_a, ref) => {
8862
9077
  var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8863
- return /* @__PURE__ */ (0, import_jsx_runtime46.jsx)(
9078
+ return /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
8864
9079
  ToastPrimitives.Description,
8865
9080
  __spreadValues({
8866
9081
  ref,
@@ -8871,7 +9086,7 @@ var ToastDescription = React66.forwardRef((_a, ref) => {
8871
9086
  ToastDescription.displayName = ToastPrimitives.Description.displayName;
8872
9087
 
8873
9088
  // src/components/use-toast.ts
8874
- var React67 = __toESM(require("react"), 1);
9089
+ var React68 = __toESM(require("react"), 1);
8875
9090
  var TOAST_LIMIT = 1;
8876
9091
  var TOAST_REMOVE_DELAY = 1e6;
8877
9092
  var count = 0;
@@ -8966,8 +9181,8 @@ function toast(_a) {
8966
9181
  };
8967
9182
  }
8968
9183
  function useToast() {
8969
- const [state, setState] = React67.useState(memoryState);
8970
- React67.useEffect(() => {
9184
+ const [state, setState] = React68.useState(memoryState);
9185
+ React68.useEffect(() => {
8971
9186
  listeners.push(setState);
8972
9187
  return () => {
8973
9188
  const index = listeners.indexOf(setState);
@@ -8983,30 +9198,30 @@ function useToast() {
8983
9198
  }
8984
9199
 
8985
9200
  // src/components/toaster.tsx
8986
- var import_jsx_runtime47 = require("react/jsx-runtime");
9201
+ var import_jsx_runtime48 = require("react/jsx-runtime");
8987
9202
  function Toaster() {
8988
9203
  const { toasts } = useToast();
8989
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(ToastProvider, { children: [
9204
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(ToastProvider, { children: [
8990
9205
  toasts.map(function(_a) {
8991
9206
  var _b = _a, { id, title, description, action } = _b, props = __objRest(_b, ["id", "title", "description", "action"]);
8992
- return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(Toast, __spreadProps(__spreadValues({}, props), { children: [
8993
- /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)("div", { className: "grid gap-1", children: [
8994
- title && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ToastTitle, { children: title }),
8995
- description && /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ToastDescription, { children: description })
9207
+ return /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)(Toast, __spreadProps(__spreadValues({}, props), { children: [
9208
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsxs)("div", { className: "grid gap-1", children: [
9209
+ title && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ToastTitle, { children: title }),
9210
+ description && /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ToastDescription, { children: description })
8996
9211
  ] }),
8997
9212
  action,
8998
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ToastClose, {})
9213
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ToastClose, {})
8999
9214
  ] }), id);
9000
9215
  }),
9001
- /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(ToastViewport, {})
9216
+ /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(ToastViewport, {})
9002
9217
  ] });
9003
9218
  }
9004
9219
 
9005
9220
  // src/components/toggle.tsx
9006
9221
  var TogglePrimitive = __toESM(require("@radix-ui/react-toggle"), 1);
9007
9222
  var import_class_variance_authority9 = require("class-variance-authority");
9008
- var React68 = __toESM(require("react"), 1);
9009
- var import_jsx_runtime48 = require("react/jsx-runtime");
9223
+ var React69 = __toESM(require("react"), 1);
9224
+ var import_jsx_runtime49 = require("react/jsx-runtime");
9010
9225
  var toggleVariants = (0, import_class_variance_authority9.cva)(
9011
9226
  "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",
9012
9227
  {
@@ -9027,9 +9242,9 @@ var toggleVariants = (0, import_class_variance_authority9.cva)(
9027
9242
  }
9028
9243
  }
9029
9244
  );
9030
- var Toggle = React68.forwardRef((_a, ref) => {
9245
+ var Toggle = React69.forwardRef((_a, ref) => {
9031
9246
  var _b = _a, { className, variant, size } = _b, props = __objRest(_b, ["className", "variant", "size"]);
9032
- return /* @__PURE__ */ (0, import_jsx_runtime48.jsx)(
9247
+ return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
9033
9248
  TogglePrimitive.Root,
9034
9249
  __spreadValues({
9035
9250
  ref,
@@ -9041,29 +9256,29 @@ Toggle.displayName = TogglePrimitive.Root.displayName;
9041
9256
 
9042
9257
  // src/components/toggle-group.tsx
9043
9258
  var ToggleGroupPrimitive = __toESM(require("@radix-ui/react-toggle-group"), 1);
9044
- var React69 = __toESM(require("react"), 1);
9045
- var import_jsx_runtime49 = require("react/jsx-runtime");
9046
- var ToggleGroupContext = React69.createContext({
9259
+ var React70 = __toESM(require("react"), 1);
9260
+ var import_jsx_runtime50 = require("react/jsx-runtime");
9261
+ var ToggleGroupContext = React70.createContext({
9047
9262
  size: "default",
9048
9263
  variant: "default"
9049
9264
  });
9050
- var ToggleGroup = React69.forwardRef((_a, ref) => {
9265
+ var ToggleGroup = React70.forwardRef((_a, ref) => {
9051
9266
  var _b = _a, { className, variant, size, children } = _b, props = __objRest(_b, ["className", "variant", "size", "children"]);
9052
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
9267
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
9053
9268
  ToggleGroupPrimitive.Root,
9054
9269
  __spreadProps(__spreadValues({
9055
9270
  ref,
9056
9271
  className: cn("flex items-center justify-center gap-1", className)
9057
9272
  }, props), {
9058
- children: /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
9273
+ children: /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(ToggleGroupContext.Provider, { value: { variant, size }, children })
9059
9274
  })
9060
9275
  );
9061
9276
  });
9062
9277
  ToggleGroup.displayName = ToggleGroupPrimitive.Root.displayName;
9063
- var ToggleGroupItem = React69.forwardRef((_a, ref) => {
9278
+ var ToggleGroupItem = React70.forwardRef((_a, ref) => {
9064
9279
  var _b = _a, { className, children, variant, size } = _b, props = __objRest(_b, ["className", "children", "variant", "size"]);
9065
- const context = React69.useContext(ToggleGroupContext);
9066
- return /* @__PURE__ */ (0, import_jsx_runtime49.jsx)(
9280
+ const context = React70.useContext(ToggleGroupContext);
9281
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
9067
9282
  ToggleGroupPrimitive.Item,
9068
9283
  __spreadProps(__spreadValues({
9069
9284
  ref,
@@ -9083,14 +9298,14 @@ ToggleGroupItem.displayName = ToggleGroupPrimitive.Item.displayName;
9083
9298
 
9084
9299
  // src/components/tooltip.tsx
9085
9300
  var TooltipPrimitive = __toESM(require("@radix-ui/react-tooltip"), 1);
9086
- var React70 = __toESM(require("react"), 1);
9087
- var import_jsx_runtime50 = require("react/jsx-runtime");
9301
+ var React71 = __toESM(require("react"), 1);
9302
+ var import_jsx_runtime51 = require("react/jsx-runtime");
9088
9303
  var TooltipProvider = TooltipPrimitive.Provider;
9089
9304
  var Tooltip = TooltipPrimitive.Root;
9090
9305
  var TooltipTrigger = TooltipPrimitive.Trigger;
9091
- var TooltipContent = React70.forwardRef((_a, ref) => {
9306
+ var TooltipContent = React71.forwardRef((_a, ref) => {
9092
9307
  var _b = _a, { className, sideOffset = 4 } = _b, props = __objRest(_b, ["className", "sideOffset"]);
9093
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(
9308
+ return /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
9094
9309
  TooltipPrimitive.Content,
9095
9310
  __spreadValues({
9096
9311
  ref,
@@ -9105,10 +9320,10 @@ var TooltipContent = React70.forwardRef((_a, ref) => {
9105
9320
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
9106
9321
 
9107
9322
  // src/components/ui/input.tsx
9108
- var React71 = __toESM(require("react"), 1);
9109
- var import_lucide_react7 = require("lucide-react");
9110
- var import_jsx_runtime51 = require("react/jsx-runtime");
9111
- var UiInput = React71.forwardRef(
9323
+ var React72 = __toESM(require("react"), 1);
9324
+ var import_lucide_react8 = require("lucide-react");
9325
+ var import_jsx_runtime52 = require("react/jsx-runtime");
9326
+ var UiInput = React72.forwardRef(
9112
9327
  (_a, ref) => {
9113
9328
  var _b = _a, {
9114
9329
  label,
@@ -9133,12 +9348,12 @@ var UiInput = React71.forwardRef(
9133
9348
  "invalid",
9134
9349
  "className"
9135
9350
  ]);
9136
- const generatedId = React71.useId();
9351
+ const generatedId = React72.useId();
9137
9352
  const inputId = htmlFormItemId != null ? htmlFormItemId : generatedId;
9138
9353
  const messageId = `${inputId}-message`;
9139
9354
  const hasError = Boolean(errorMessage || invalid);
9140
- return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)("div", { className: cn("w-full space-y-1.5", containerClassName), children: [
9141
- label ? /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)(
9355
+ return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: cn("w-full space-y-1.5", containerClassName), children: [
9356
+ label ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
9142
9357
  Label3,
9143
9358
  {
9144
9359
  className: cn(
@@ -9148,9 +9363,9 @@ var UiInput = React71.forwardRef(
9148
9363
  ),
9149
9364
  htmlFor: inputId,
9150
9365
  children: [
9151
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("span", { children: label }),
9152
- requiredLabel ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
9153
- import_lucide_react7.Asterisk,
9366
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: label }),
9367
+ requiredLabel ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9368
+ import_lucide_react8.Asterisk,
9154
9369
  {
9155
9370
  "aria-hidden": "true",
9156
9371
  className: cn(
@@ -9162,7 +9377,7 @@ var UiInput = React71.forwardRef(
9162
9377
  ]
9163
9378
  }
9164
9379
  ) : null,
9165
- /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
9380
+ /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9166
9381
  Input,
9167
9382
  __spreadProps(__spreadValues({}, inputProps), {
9168
9383
  ref,
@@ -9173,7 +9388,7 @@ var UiInput = React71.forwardRef(
9173
9388
  className
9174
9389
  })
9175
9390
  ),
9176
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(
9391
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9177
9392
  "p",
9178
9393
  {
9179
9394
  id: messageId,
@@ -9187,8 +9402,8 @@ var UiInput = React71.forwardRef(
9187
9402
  UiInput.displayName = "UiInput";
9188
9403
 
9189
9404
  // src/components/ui/select.tsx
9190
- var React72 = __toESM(require("react"), 1);
9191
- var import_lucide_react8 = require("lucide-react");
9405
+ var React73 = __toESM(require("react"), 1);
9406
+ var import_lucide_react9 = require("lucide-react");
9192
9407
 
9193
9408
  // src/types/select.ts
9194
9409
  var selectVariants = {
@@ -9203,7 +9418,7 @@ var selectVariants = {
9203
9418
  var variants2 = selectVariants;
9204
9419
 
9205
9420
  // src/components/ui/select.tsx
9206
- var import_jsx_runtime52 = require("react/jsx-runtime");
9421
+ var import_jsx_runtime53 = require("react/jsx-runtime");
9207
9422
  function UiSelect({
9208
9423
  label,
9209
9424
  placeholder,
@@ -9226,7 +9441,7 @@ function UiSelect({
9226
9441
  errorMessage,
9227
9442
  htmlFormItemId
9228
9443
  }) {
9229
- const generatedId = React72.useId();
9444
+ const generatedId = React73.useId();
9230
9445
  const triggerId = htmlFormItemId != null ? htmlFormItemId : generatedId;
9231
9446
  const messageId = `${triggerId}-message`;
9232
9447
  const hasError = Boolean(errorMessage);
@@ -9243,8 +9458,8 @@ function UiSelect({
9243
9458
  };
9244
9459
  const specialFlushed = variant === "flushed" ? size === "sm" ? "h-9 text-sm" : size === "lg" ? "h-11 text-base" : "h-10 text-sm" : "";
9245
9460
  const specialLink = variant === "link" ? "text-sm" : "";
9246
- return /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)("div", { className: cn("w-full space-y-1.5", selectClassName), children: [
9247
- label ? /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
9461
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: cn("w-full space-y-1.5", selectClassName), children: [
9462
+ label ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
9248
9463
  Label3,
9249
9464
  {
9250
9465
  className: cn(
@@ -9254,9 +9469,9 @@ function UiSelect({
9254
9469
  ),
9255
9470
  htmlFor: triggerId,
9256
9471
  children: [
9257
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)("span", { children: label }),
9258
- requiredLabel ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9259
- import_lucide_react8.Asterisk,
9472
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: label }),
9473
+ requiredLabel ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9474
+ import_lucide_react9.Asterisk,
9260
9475
  {
9261
9476
  "aria-hidden": "true",
9262
9477
  className: cn(
@@ -9268,7 +9483,7 @@ function UiSelect({
9268
9483
  ]
9269
9484
  }
9270
9485
  ) : null,
9271
- /* @__PURE__ */ (0, import_jsx_runtime52.jsxs)(
9486
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
9272
9487
  Select2,
9273
9488
  {
9274
9489
  value,
@@ -9276,7 +9491,7 @@ function UiSelect({
9276
9491
  onValueChange: onChange,
9277
9492
  disabled,
9278
9493
  children: [
9279
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9494
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9280
9495
  SelectTrigger,
9281
9496
  {
9282
9497
  id: triggerId,
@@ -9289,10 +9504,10 @@ function UiSelect({
9289
9504
  hasError && "border-destructive ring-destructive focus:ring-destructive/40",
9290
9505
  className
9291
9506
  ),
9292
- children: /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectValue, { placeholder })
9507
+ children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectValue, { placeholder })
9293
9508
  }
9294
9509
  ),
9295
- /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(SelectContent, { className: contentClassName, children: children != null ? children : items == null ? void 0 : items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9510
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(SelectContent, { className: contentClassName, children: children != null ? children : items == null ? void 0 : items.map((item) => /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9296
9511
  SelectItem,
9297
9512
  {
9298
9513
  value: item.value,
@@ -9305,7 +9520,7 @@ function UiSelect({
9305
9520
  ]
9306
9521
  }
9307
9522
  ),
9308
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime52.jsx)(
9523
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9309
9524
  "p",
9310
9525
  {
9311
9526
  id: messageId,
@@ -9317,10 +9532,10 @@ function UiSelect({
9317
9532
  }
9318
9533
 
9319
9534
  // src/components/ui/ui-checkbox.tsx
9320
- var React73 = __toESM(require("react"), 1);
9321
- var import_lucide_react9 = require("lucide-react");
9322
- var import_jsx_runtime53 = require("react/jsx-runtime");
9323
- var UiCheckbox = React73.forwardRef(
9535
+ var React74 = __toESM(require("react"), 1);
9536
+ var import_lucide_react10 = require("lucide-react");
9537
+ var import_jsx_runtime54 = require("react/jsx-runtime");
9538
+ var UiCheckbox = React74.forwardRef(
9324
9539
  (_a, ref) => {
9325
9540
  var _b = _a, {
9326
9541
  label,
@@ -9352,7 +9567,7 @@ var UiCheckbox = React73.forwardRef(
9352
9567
  "className"
9353
9568
  ]);
9354
9569
  const hasError = Boolean(errorMessage || invalid);
9355
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("div", { className: cn("w-full", containerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
9570
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: cn("w-full", containerClassName), children: /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
9356
9571
  "div",
9357
9572
  {
9358
9573
  className: cn(
@@ -9361,7 +9576,7 @@ var UiCheckbox = React73.forwardRef(
9361
9576
  contentClassName
9362
9577
  ),
9363
9578
  children: [
9364
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9579
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9365
9580
  Checkbox,
9366
9581
  __spreadValues({
9367
9582
  ref,
@@ -9370,8 +9585,8 @@ var UiCheckbox = React73.forwardRef(
9370
9585
  className: cn("mt-0.5", className)
9371
9586
  }, checkboxProps)
9372
9587
  ),
9373
- /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)("div", { className: "min-w-0 flex-1", children: [
9374
- label ? /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
9588
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)("div", { className: "min-w-0 flex-1", children: [
9589
+ label ? /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(
9375
9590
  Label3,
9376
9591
  {
9377
9592
  htmlFor: htmlFormItemId,
@@ -9382,9 +9597,9 @@ var UiCheckbox = React73.forwardRef(
9382
9597
  labelClassName
9383
9598
  ),
9384
9599
  children: [
9385
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { children: label }),
9386
- requiredLabel ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9387
- import_lucide_react9.Asterisk,
9600
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("span", { children: label }),
9601
+ requiredLabel ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9602
+ import_lucide_react10.Asterisk,
9388
9603
  {
9389
9604
  "aria-hidden": "true",
9390
9605
  className: cn(
@@ -9396,7 +9611,7 @@ var UiCheckbox = React73.forwardRef(
9396
9611
  ]
9397
9612
  }
9398
9613
  ) : null,
9399
- description ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9614
+ description ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9400
9615
  "p",
9401
9616
  {
9402
9617
  className: cn(
@@ -9406,7 +9621,7 @@ var UiCheckbox = React73.forwardRef(
9406
9621
  children: description
9407
9622
  }
9408
9623
  ) : null,
9409
- errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
9624
+ errorMessage ? /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(
9410
9625
  "p",
9411
9626
  {
9412
9627
  className: cn(
@@ -9426,7 +9641,7 @@ UiCheckbox.displayName = "UiCheckbox";
9426
9641
 
9427
9642
  // src/hooks/use-sidebar.tsx
9428
9643
  var import_react34 = require("react");
9429
- var import_jsx_runtime54 = require("react/jsx-runtime");
9644
+ var import_jsx_runtime55 = require("react/jsx-runtime");
9430
9645
  var SidebarContext = (0, import_react34.createContext)({
9431
9646
  isMinimized: false,
9432
9647
  toggle: () => {
@@ -9440,11 +9655,11 @@ var SidebarProvider = ({
9440
9655
  const toggle = () => {
9441
9656
  setIsMinimized(!isMinimized);
9442
9657
  };
9443
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(SidebarContext.Provider, { value: { isMinimized, toggle }, children });
9658
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(SidebarContext.Provider, { value: { isMinimized, toggle }, children });
9444
9659
  };
9445
9660
 
9446
9661
  // src/shared/alert-modal.tsx
9447
- var import_jsx_runtime55 = require("react/jsx-runtime");
9662
+ var import_jsx_runtime56 = require("react/jsx-runtime");
9448
9663
  var AlertModal = ({
9449
9664
  isOpen,
9450
9665
  onClose,
@@ -9457,7 +9672,7 @@ var AlertModal = ({
9457
9672
  className,
9458
9673
  children
9459
9674
  }) => {
9460
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
9675
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
9461
9676
  Modal,
9462
9677
  {
9463
9678
  title,
@@ -9465,9 +9680,9 @@ var AlertModal = ({
9465
9680
  isOpen,
9466
9681
  onClose,
9467
9682
  className,
9468
- children: children ? children : /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: "flex w-full items-center justify-end space-x-2 pt-6", children: [
9469
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Button, { disabled: loading, variant: "outline", onClick: onClose, children: cancelText }),
9470
- /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(
9683
+ children: children ? children : /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { className: "flex w-full items-center justify-end space-x-2 pt-6", children: [
9684
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Button, { disabled: loading, variant: "outline", onClick: onClose, children: cancelText }),
9685
+ /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
9471
9686
  Button,
9472
9687
  {
9473
9688
  disabled: loading,
@@ -9483,21 +9698,21 @@ var AlertModal = ({
9483
9698
  };
9484
9699
 
9485
9700
  // src/shared/breadcrumbs.tsx
9486
- var import_lucide_react10 = require("lucide-react");
9701
+ var import_lucide_react11 = require("lucide-react");
9487
9702
  var import_react35 = require("react");
9488
- var import_jsx_runtime56 = require("react/jsx-runtime");
9703
+ var import_jsx_runtime57 = require("react/jsx-runtime");
9489
9704
  function Breadcrumbs({
9490
9705
  items,
9491
9706
  className,
9492
9707
  classNameList,
9493
- separator = /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(import_lucide_react10.Slash, {})
9708
+ separator = /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react11.Slash, {})
9494
9709
  }) {
9495
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(Breadcrumb, { className, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(BreadcrumbList, { className: classNameList, children: items.map((item, index) => {
9710
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(Breadcrumb, { className, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BreadcrumbList, { className: classNameList, children: items.map((item, index) => {
9496
9711
  var _a;
9497
9712
  const isLast = index === items.length - 1;
9498
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)(import_react35.Fragment, { children: [
9499
- !isLast ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(BreadcrumbItem, { className: item.className, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(BreadcrumbLink, { href: (_a = item.link) != null ? _a : "#", children: item.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(BreadcrumbItem, { className: item.className, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(BreadcrumbPage, { children: item.title }) }),
9500
- !isLast ? /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(BreadcrumbSeparator, { children: separator }) : null
9713
+ return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(import_react35.Fragment, { children: [
9714
+ !isLast ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BreadcrumbItem, { className: item.className, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BreadcrumbLink, { href: (_a = item.link) != null ? _a : "#", children: item.title }) }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BreadcrumbItem, { className: item.className, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BreadcrumbPage, { children: item.title }) }),
9715
+ !isLast ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(BreadcrumbSeparator, { children: separator }) : null
9501
9716
  ] }, `${item.title}-${index}`);
9502
9717
  }) }) });
9503
9718
  }
@@ -9507,8 +9722,8 @@ var import_react36 = require("react");
9507
9722
  var import_framer_motion = require("framer-motion");
9508
9723
  var import_react_icons19 = require("@radix-ui/react-icons");
9509
9724
  var import_react_table = require("@tanstack/react-table");
9510
- var import_lucide_react11 = require("lucide-react");
9511
- var import_jsx_runtime57 = require("react/jsx-runtime");
9725
+ var import_lucide_react12 = require("lucide-react");
9726
+ var import_jsx_runtime58 = require("react/jsx-runtime");
9512
9727
  var ACCENT_COLOR = {
9513
9728
  primary: "var(--primary)",
9514
9729
  emerald: "#10b981",
@@ -9786,16 +10001,16 @@ function DataTable({
9786
10001
  const accentOn = !!dtAccent;
9787
10002
  const dataAccent = accentOn ? "on" : "off";
9788
10003
  const headerIsSticky = stickyHeader && !headerScroll;
9789
- return /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
10004
+ return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
9790
10005
  "div",
9791
10006
  {
9792
10007
  "data-accent": dataAccent,
9793
10008
  className: cn(ui.root, heightClassName),
9794
10009
  style: accentOn ? { "--dt-accent": dtAccent } : void 0,
9795
10010
  children: [
9796
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(ScrollArea, { className: "h-full", children: [
9797
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: "relative w-max min-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(Table, { className: cn(ui.table), children: [
9798
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TableHeader, { className: cn(ui.thead), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TableRow, { className: cn(ui.trHead), children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10011
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "min-h-0 flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(ScrollArea, { className: "h-full", children: [
10012
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "relative w-max min-w-full", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Table, { className: cn(ui.table), children: [
10013
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TableHeader, { className: cn(ui.thead), children: table.getHeaderGroups().map((headerGroup) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TableRow, { className: cn(ui.trHead), children: headerGroup.headers.map((header) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9799
10014
  TableHead,
9800
10015
  {
9801
10016
  className: cn(
@@ -9809,7 +10024,7 @@ function DataTable({
9809
10024
  },
9810
10025
  header.id
9811
10026
  )) }, headerGroup.id)) }),
9812
- animate ? /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_framer_motion.AnimatePresence, { mode: "wait", initial: false, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10027
+ animate ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_framer_motion.AnimatePresence, { mode: "wait", initial: false, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9813
10028
  import_framer_motion.motion.tbody,
9814
10029
  {
9815
10030
  className: cn(ui.tbody),
@@ -9817,7 +10032,7 @@ function DataTable({
9817
10032
  animate: { opacity: 1, y: 0 },
9818
10033
  exit: { opacity: 0, y: -6 },
9819
10034
  transition: { duration: 0.18 },
9820
- children: table.getRowModel().rows.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10035
+ children: table.getRowModel().rows.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9821
10036
  TableRow,
9822
10037
  {
9823
10038
  "data-accent": dataAccent,
@@ -9827,13 +10042,13 @@ function DataTable({
9827
10042
  ui.tr,
9828
10043
  clickable ? ui.trClickable : void 0
9829
10044
  ),
9830
- children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TableCell, { className: cn(ui.td), children: (0, import_react_table.flexRender)(
10045
+ children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TableCell, { className: cn(ui.td), children: (0, import_react_table.flexRender)(
9831
10046
  cell.column.columnDef.cell,
9832
10047
  cell.getContext()
9833
10048
  ) }, cell.id))
9834
10049
  },
9835
10050
  row.id
9836
- )) : emptyData || /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TableRow, { "data-accent": dataAccent, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10051
+ )) : emptyData || /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TableRow, { "data-accent": dataAccent, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9837
10052
  TableCell,
9838
10053
  {
9839
10054
  colSpan: columns.length,
@@ -9846,7 +10061,7 @@ function DataTable({
9846
10061
  ) })
9847
10062
  },
9848
10063
  pageKey
9849
- ) }) : /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TableBody, { className: cn(ui.tbody), children: table.getRowModel().rows.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10064
+ ) }) : /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TableBody, { className: cn(ui.tbody), children: table.getRowModel().rows.length ? table.getRowModel().rows.map((row) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9850
10065
  TableRow,
9851
10066
  {
9852
10067
  "data-accent": dataAccent,
@@ -9856,13 +10071,13 @@ function DataTable({
9856
10071
  ui.tr,
9857
10072
  clickable ? ui.trClickable : void 0
9858
10073
  ),
9859
- children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TableCell, { className: cn(ui.td), children: (0, import_react_table.flexRender)(
10074
+ children: row.getVisibleCells().map((cell) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TableCell, { className: cn(ui.td), children: (0, import_react_table.flexRender)(
9860
10075
  cell.column.columnDef.cell,
9861
10076
  cell.getContext()
9862
10077
  ) }, cell.id))
9863
10078
  },
9864
10079
  row.id
9865
- )) : emptyData || /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(TableRow, { "data-accent": dataAccent, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10080
+ )) : emptyData || /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TableRow, { "data-accent": dataAccent, children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9866
10081
  TableCell,
9867
10082
  {
9868
10083
  colSpan: columns.length,
@@ -9874,11 +10089,11 @@ function DataTable({
9874
10089
  }
9875
10090
  ) }) })
9876
10091
  ] }) }),
9877
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(ScrollBar, { orientation: "horizontal" })
10092
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(ScrollBar, { orientation: "horizontal" })
9878
10093
  ] }) }),
9879
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: cn(ui.footer), children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: cn(ui.footerInner), children: /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-[1fr_auto] sm:items-center", children: [
9880
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: cn(ui.metaWrap), children: [
9881
- isRowsSelected && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { children: [
10094
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: cn(ui.footer), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: cn(ui.footerInner), children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "grid grid-cols-1 gap-3 sm:grid-cols-[1fr_auto] sm:items-center", children: [
10095
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: cn(ui.metaWrap), children: [
10096
+ isRowsSelected && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
9882
10097
  table.getFilteredSelectedRowModel().rows.length,
9883
10098
  " ",
9884
10099
  ofLabel,
@@ -9887,36 +10102,36 @@ function DataTable({
9887
10102
  " ",
9888
10103
  rowsSelectedLabel
9889
10104
  ] }),
9890
- typeof totalRows === "number" && /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { children: [
10105
+ typeof totalRows === "number" && /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { children: [
9891
10106
  "Total: ",
9892
10107
  totalRows,
9893
10108
  " registros"
9894
10109
  ] })
9895
10110
  ] }),
9896
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: cn(ui.controlsWrap), children: [
9897
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center gap-2", children: [
9898
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("p", { className: cn(ui.pageSizeLabel), children: rowPerPageLabel }),
9899
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)(
10111
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: cn(ui.controlsWrap), children: [
10112
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-2", children: [
10113
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("p", { className: cn(ui.pageSizeLabel), children: rowPerPageLabel }),
10114
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(
9900
10115
  Select2,
9901
10116
  {
9902
10117
  value: `${pageSize}`,
9903
10118
  onValueChange: (v) => changePageSize(Number(v)),
9904
10119
  children: [
9905
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10120
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9906
10121
  SelectTrigger,
9907
10122
  {
9908
10123
  "data-accent": dataAccent,
9909
10124
  className: cn(ui.pageSizeTrigger),
9910
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectValue, { placeholder: `${pageSize}` })
10125
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SelectValue, { placeholder: `${pageSize}` })
9911
10126
  }
9912
10127
  ),
9913
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectContent, { side: "top", children: pageSizeOptions.map((size) => /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(SelectItem, { value: `${size}`, children: size }, size)) })
10128
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SelectContent, { side: "top", children: pageSizeOptions.map((size) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(SelectItem, { value: `${size}`, children: size }, size)) })
9914
10129
  ]
9915
10130
  }
9916
10131
  )
9917
10132
  ] }),
9918
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "flex items-center gap-2", children: [
9919
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: cn(ui.pageLabel), children: [
10133
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center gap-2", children: [
10134
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: cn(ui.pageLabel), children: [
9920
10135
  pageLabel,
9921
10136
  " ",
9922
10137
  pageIndex + 1,
@@ -9925,7 +10140,7 @@ function DataTable({
9925
10140
  " ",
9926
10141
  safePageCount
9927
10142
  ] }),
9928
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10143
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9929
10144
  Button,
9930
10145
  {
9931
10146
  "data-accent": dataAccent,
@@ -9934,10 +10149,10 @@ function DataTable({
9934
10149
  className: cn("hidden lg:flex", ui.navButton),
9935
10150
  onClick: () => goToPage(0),
9936
10151
  disabled: pageIndex === 0,
9937
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react_icons19.DoubleArrowLeftIcon, { className: "h-4 w-4" })
10152
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_icons19.DoubleArrowLeftIcon, { className: "h-4 w-4" })
9938
10153
  }
9939
10154
  ),
9940
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10155
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9941
10156
  Button,
9942
10157
  {
9943
10158
  "data-accent": dataAccent,
@@ -9946,10 +10161,10 @@ function DataTable({
9946
10161
  className: cn(ui.navButton),
9947
10162
  onClick: () => goToPage(pageIndex - 1),
9948
10163
  disabled: pageIndex === 0,
9949
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react11.ChevronLeft, { className: "h-4 w-4" })
10164
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react12.ChevronLeft, { className: "h-4 w-4" })
9950
10165
  }
9951
10166
  ),
9952
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10167
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9953
10168
  Button,
9954
10169
  {
9955
10170
  "data-accent": dataAccent,
@@ -9958,10 +10173,10 @@ function DataTable({
9958
10173
  className: cn(ui.navButton),
9959
10174
  onClick: () => goToPage(pageIndex + 1),
9960
10175
  disabled: pageIndex + 1 >= safePageCount,
9961
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_lucide_react11.ChevronRight, { className: "h-4 w-4" })
10176
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_lucide_react12.ChevronRight, { className: "h-4 w-4" })
9962
10177
  }
9963
10178
  ),
9964
- /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(
10179
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(
9965
10180
  Button,
9966
10181
  {
9967
10182
  "data-accent": dataAccent,
@@ -9970,11 +10185,11 @@ function DataTable({
9970
10185
  className: cn("hidden lg:flex", ui.navButton),
9971
10186
  onClick: () => goToPage(safePageCount - 1),
9972
10187
  disabled: pageIndex + 1 >= safePageCount,
9973
- children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)(import_react_icons19.DoubleArrowRightIcon, { className: "h-4 w-4" })
10188
+ children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(import_react_icons19.DoubleArrowRightIcon, { className: "h-4 w-4" })
9974
10189
  }
9975
10190
  )
9976
10191
  ] }),
9977
- /* @__PURE__ */ (0, import_jsx_runtime57.jsxs)("div", { className: "text-muted-foreground w-full text-center text-xs sm:hidden", children: [
10192
+ /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "text-muted-foreground w-full text-center text-xs sm:hidden", children: [
9978
10193
  pageLabel,
9979
10194
  " ",
9980
10195
  pageIndex + 1,
@@ -9991,7 +10206,7 @@ function DataTable({
9991
10206
  }
9992
10207
 
9993
10208
  // src/shared/data-table-skeleton.tsx
9994
- var import_jsx_runtime58 = require("react/jsx-runtime");
10209
+ var import_jsx_runtime59 = require("react/jsx-runtime");
9995
10210
  function DataTableSkeleton({
9996
10211
  columnCount,
9997
10212
  rowCount = 10,
@@ -9999,31 +10214,31 @@ function DataTableSkeleton({
9999
10214
  filterableColumnCount = 0,
10000
10215
  showViewOptions = true
10001
10216
  }) {
10002
- return /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "w-full space-y-3 overflow-auto", children: [
10003
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex w-full items-center justify-between space-x-2 overflow-auto p-1", children: [
10004
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-1 items-center space-x-2 space-y-4", children: [
10005
- searchableColumnCount > 0 ? Array.from({ length: searchableColumnCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Skeleton, { className: "h-10 w-37.5 lg:w-62.5" }, i)) : null,
10006
- filterableColumnCount > 0 ? Array.from({ length: filterableColumnCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Skeleton, { className: "h-10 w-17.5 border-dashed" }, i)) : null
10217
+ return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "w-full space-y-3 overflow-auto", children: [
10218
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex w-full items-center justify-between space-x-2 overflow-auto p-1", children: [
10219
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex flex-1 items-center space-x-2 space-y-4", children: [
10220
+ searchableColumnCount > 0 ? Array.from({ length: searchableColumnCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Skeleton, { className: "h-10 w-37.5 lg:w-62.5" }, i)) : null,
10221
+ filterableColumnCount > 0 ? Array.from({ length: filterableColumnCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Skeleton, { className: "h-10 w-17.5 border-dashed" }, i)) : null
10007
10222
  ] }),
10008
- showViewOptions ? /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Skeleton, { className: "ml-auto hidden h-7 w-17.5 lg:flex" }) : null
10223
+ showViewOptions ? /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Skeleton, { className: "ml-auto hidden h-7 w-17.5 lg:flex" }) : null
10009
10224
  ] }),
10010
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "rounded-md border", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)(Table, { children: [
10011
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TableHeader, { children: Array.from({ length: 1 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) }),
10012
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TableBody, { children: Array.from({ length: rowCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) })
10225
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "rounded-md border", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(Table, { children: [
10226
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TableHeader, { children: Array.from({ length: 1 }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TableHead, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) }),
10227
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TableBody, { children: Array.from({ length: rowCount }).map((_, i) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TableRow, { className: "hover:bg-transparent", children: Array.from({ length: columnCount }).map((_2, i2) => /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(TableCell, { children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Skeleton, { className: "h-6 w-full" }) }, i2)) }, i)) })
10013
10228
  ] }) }),
10014
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("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: [
10015
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Skeleton, { className: "h-8 w-40" }) }),
10016
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex flex-col items-center gap-4 sm:flex-row sm:gap-6 lg:gap-8", children: [
10017
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center space-x-2", children: [
10018
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Skeleton, { className: "h-8 w-24" }),
10019
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Skeleton, { className: "h-8 w-17.5" })
10229
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("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: [
10230
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex-1", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Skeleton, { className: "h-8 w-40" }) }),
10231
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex flex-col items-center gap-4 sm:flex-row sm:gap-6 lg:gap-8", children: [
10232
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center space-x-2", children: [
10233
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Skeleton, { className: "h-8 w-24" }),
10234
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Skeleton, { className: "h-8 w-17.5" })
10020
10235
  ] }),
10021
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)("div", { className: "flex w-25 items-center justify-center text-sm font-medium", children: /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Skeleton, { className: "h-8 w-20" }) }),
10022
- /* @__PURE__ */ (0, import_jsx_runtime58.jsxs)("div", { className: "flex items-center space-x-2", children: [
10023
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Skeleton, { className: "hidden size-8 lg:block" }),
10024
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Skeleton, { className: "size-8" }),
10025
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Skeleton, { className: "size-8" }),
10026
- /* @__PURE__ */ (0, import_jsx_runtime58.jsx)(Skeleton, { className: "hidden size-8 lg:block" })
10236
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { className: "flex w-25 items-center justify-center text-sm font-medium", children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Skeleton, { className: "h-8 w-20" }) }),
10237
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: "flex items-center space-x-2", children: [
10238
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Skeleton, { className: "hidden size-8 lg:block" }),
10239
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Skeleton, { className: "size-8" }),
10240
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Skeleton, { className: "size-8" }),
10241
+ /* @__PURE__ */ (0, import_jsx_runtime59.jsx)(Skeleton, { className: "hidden size-8 lg:block" })
10027
10242
  ] })
10028
10243
  ] })
10029
10244
  ] })
@@ -10032,7 +10247,7 @@ function DataTableSkeleton({
10032
10247
 
10033
10248
  // src/shared/dropzone.tsx
10034
10249
  var import_react_dropzone = require("react-dropzone");
10035
- var import_jsx_runtime59 = require("react/jsx-runtime");
10250
+ var import_jsx_runtime60 = require("react/jsx-runtime");
10036
10251
  function Dropzone({
10037
10252
  label,
10038
10253
  onChange,
@@ -10055,9 +10270,9 @@ function Dropzone({
10055
10270
  },
10056
10271
  accept
10057
10272
  }, options));
10058
- return /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("div", { className: cn("space-y-2", className), children: [
10059
- label && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: cn("font-medium", labelClassName), children: label }),
10060
- /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)(
10273
+ return /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", { className: cn("space-y-2", className), children: [
10274
+ label && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: cn("font-medium", labelClassName), children: label }),
10275
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)(
10061
10276
  "div",
10062
10277
  __spreadProps(__spreadValues({}, getRootProps()), {
10063
10278
  className: cn(
@@ -10066,12 +10281,12 @@ function Dropzone({
10066
10281
  dropzoneClassName
10067
10282
  ),
10068
10283
  children: [
10069
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("input", __spreadValues({}, getInputProps())),
10070
- /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("p", { className: cn("text-gray-600", descriptionClassName), children: isDragActive ? descriptionActive : description })
10284
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("input", __spreadValues({}, getInputProps())),
10285
+ /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("p", { className: cn("text-gray-600", descriptionClassName), children: isDragActive ? descriptionActive : description })
10071
10286
  ]
10072
10287
  })
10073
10288
  ),
10074
- value && value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("ul", { className: cn("text-sm text-gray-700 space-y-1", valueClassName), children: value.map((file, idx) => /* @__PURE__ */ (0, import_jsx_runtime59.jsxs)("li", { children: [
10289
+ value && value.length > 0 && /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("ul", { className: cn("text-sm text-gray-700 space-y-1", valueClassName), children: value.map((file, idx) => /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("li", { children: [
10075
10290
  "\u2022 ",
10076
10291
  file.name
10077
10292
  ] }, idx)) })
@@ -10080,10 +10295,10 @@ function Dropzone({
10080
10295
 
10081
10296
  // src/shared/fileupload.tsx
10082
10297
  var import_react_icons20 = require("@radix-ui/react-icons");
10083
- var import_lucide_react12 = require("lucide-react");
10298
+ var import_lucide_react13 = require("lucide-react");
10084
10299
  var import_react37 = require("react");
10085
10300
  var import_react_dropzone2 = require("react-dropzone");
10086
- var import_jsx_runtime60 = require("react/jsx-runtime");
10301
+ var import_jsx_runtime61 = require("react/jsx-runtime");
10087
10302
  function FileUpload({
10088
10303
  onChange,
10089
10304
  value = [],
@@ -10099,18 +10314,18 @@ function FileUpload({
10099
10314
  onChange(acceptedFiles);
10100
10315
  }
10101
10316
  }, options));
10102
- return /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("div", { className: cn("flex items-center justify-center", className), children: /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
10317
+ return /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: cn("flex items-center justify-center", className), children: /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
10103
10318
  "div",
10104
10319
  {
10105
10320
  className: cn(
10106
10321
  "relative h-36 w-36 overflow-hidden rounded-full bg-gray-200 shadow-2xl",
10107
10322
  classNameContent
10108
10323
  ),
10109
- children: /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("div", __spreadProps(__spreadValues({}, getRootProps({ className: "dropzone cursor-pointer" })), { children: [
10110
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)("input", __spreadValues({}, getInputProps())),
10111
- value.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(ImagePreview, { file: value[0] }) : /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_react_icons20.AvatarIcon, { className: "h-36 w-36 text-gray-100" }),
10112
- /* @__PURE__ */ (0, import_jsx_runtime60.jsxs)("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: [
10113
- /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(import_lucide_react12.CameraIcon, { className: "h-4 w-4 text-muted-foreground" }),
10324
+ children: /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", __spreadProps(__spreadValues({}, getRootProps({ className: "dropzone cursor-pointer" })), { children: [
10325
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("input", __spreadValues({}, getInputProps())),
10326
+ value.length > 0 ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(ImagePreview, { file: value[0] }) : /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_react_icons20.AvatarIcon, { className: "h-36 w-36 text-gray-100" }),
10327
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("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: [
10328
+ /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(import_lucide_react13.CameraIcon, { className: "h-4 w-4 text-muted-foreground" }),
10114
10329
  label
10115
10330
  ] })
10116
10331
  ] }))
@@ -10126,7 +10341,7 @@ function ImagePreview({ file }) {
10126
10341
  URL.revokeObjectURL(url);
10127
10342
  };
10128
10343
  }, [file]);
10129
- return objectUrl ? /* @__PURE__ */ (0, import_jsx_runtime60.jsx)(
10344
+ return objectUrl ? /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
10130
10345
  "img",
10131
10346
  {
10132
10347
  src: objectUrl,
@@ -10137,23 +10352,23 @@ function ImagePreview({ file }) {
10137
10352
  }
10138
10353
 
10139
10354
  // src/shared/heading.tsx
10140
- var import_jsx_runtime61 = require("react/jsx-runtime");
10355
+ var import_jsx_runtime62 = require("react/jsx-runtime");
10141
10356
  function Heading({ title, description, className }) {
10142
- return /* @__PURE__ */ (0, import_jsx_runtime61.jsxs)("div", { className, children: [
10143
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("div", { className: "text-lg font-bold tracking-tight text-primary sm:text-3xl", children: title }),
10144
- /* @__PURE__ */ (0, import_jsx_runtime61.jsx)("p", { className: "text-sm text-muted-foreground", children: description })
10357
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsxs)("div", { className, children: [
10358
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("div", { className: "text-lg font-bold tracking-tight text-primary sm:text-3xl", children: title }),
10359
+ /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("p", { className: "text-sm text-muted-foreground", children: description })
10145
10360
  ] });
10146
10361
  }
10147
10362
 
10148
10363
  // src/shared/page-head.tsx
10149
10364
  var import_react_helmet_next = require("react-helmet-next");
10150
- var import_jsx_runtime62 = require("react/jsx-runtime");
10365
+ var import_jsx_runtime63 = require("react/jsx-runtime");
10151
10366
  function PageHead({ title = "shadcn-ui-react" }) {
10152
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(import_react_helmet_next.Helmet, { children: /* @__PURE__ */ (0, import_jsx_runtime62.jsx)("title", { children: title }) });
10367
+ return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(import_react_helmet_next.Helmet, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("title", { children: title }) });
10153
10368
  }
10154
10369
 
10155
10370
  // src/shared/pagination-section.tsx
10156
- var import_jsx_runtime63 = require("react/jsx-runtime");
10371
+ var import_jsx_runtime64 = require("react/jsx-runtime");
10157
10372
  function PaginationSection({
10158
10373
  totalPosts,
10159
10374
  postsPerPage,
@@ -10191,17 +10406,17 @@ function PaginationSection({
10191
10406
  }
10192
10407
  };
10193
10408
  const renderPages = () => {
10194
- const renderedPages = activePages.map((page, idx) => /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
10409
+ const renderedPages = activePages.map((page, idx) => /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
10195
10410
  PaginationItem,
10196
10411
  {
10197
10412
  className: currentPage === page ? "rounded-md bg-primary" : "",
10198
- children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(PaginationLink, { onClick: () => setCurrentPage(page), size: void 0, children: page })
10413
+ children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(PaginationLink, { onClick: () => setCurrentPage(page), size: void 0, children: page })
10199
10414
  },
10200
10415
  idx
10201
10416
  ));
10202
10417
  if (activePages[0] > 1) {
10203
10418
  renderedPages.unshift(
10204
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
10419
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
10205
10420
  PaginationEllipsis,
10206
10421
  {
10207
10422
  onClick: () => setCurrentPage(activePages[0] - 1)
@@ -10212,7 +10427,7 @@ function PaginationSection({
10212
10427
  }
10213
10428
  if (activePages[activePages.length - 1] < pageNumbers.length) {
10214
10429
  renderedPages.push(
10215
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
10430
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
10216
10431
  PaginationEllipsis,
10217
10432
  {
10218
10433
  onClick: () => setCurrentPage(activePages[activePages.length - 1] + 1)
@@ -10223,21 +10438,21 @@ function PaginationSection({
10223
10438
  }
10224
10439
  return renderedPages;
10225
10440
  };
10226
- return /* @__PURE__ */ (0, import_jsx_runtime63.jsx)("div", { className: "p-4", children: /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(Pagination, { children: /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(PaginationContent, { children: [
10227
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(PaginationItem, { children: [
10228
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(
10441
+ return /* @__PURE__ */ (0, import_jsx_runtime64.jsx)("div", { className: "p-4", children: /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(Pagination, { children: /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(PaginationContent, { children: [
10442
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(PaginationItem, { children: [
10443
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(
10229
10444
  PaginationPreviousLast,
10230
10445
  {
10231
10446
  onClick: handlePrevPageLast,
10232
10447
  size: void 0
10233
10448
  }
10234
10449
  ),
10235
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(PaginationPrevious, { onClick: handlePrevPage, size: void 0 })
10450
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(PaginationPrevious, { onClick: handlePrevPage, size: void 0 })
10236
10451
  ] }),
10237
10452
  renderPages(),
10238
- /* @__PURE__ */ (0, import_jsx_runtime63.jsxs)(PaginationItem, { children: [
10239
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(PaginationNext, { onClick: handleNextPage, size: void 0 }),
10240
- /* @__PURE__ */ (0, import_jsx_runtime63.jsx)(PaginationNextLast, { onClick: handleNextPageLast, size: void 0 })
10453
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsxs)(PaginationItem, { children: [
10454
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(PaginationNext, { onClick: handleNextPage, size: void 0 }),
10455
+ /* @__PURE__ */ (0, import_jsx_runtime64.jsx)(PaginationNextLast, { onClick: handleNextPageLast, size: void 0 })
10241
10456
  ] })
10242
10457
  ] }) }) });
10243
10458
  }
@@ -10490,13 +10705,11 @@ function PaginationSection({
10490
10705
  buttonVariants,
10491
10706
  cn,
10492
10707
  iconButtonVariants,
10493
- inputVariants,
10494
10708
  navigationMenuTriggerStyle,
10495
10709
  reducer,
10496
10710
  toast,
10497
10711
  toggleVariants,
10498
10712
  useFormField,
10499
10713
  useSidebar,
10500
- useToast,
10501
- variants
10714
+ useToast
10502
10715
  });