@unifiedsoftware/react-ui 2.0.0-alpha.6 → 2.0.0-alpha.7
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.d.ts +127 -114
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -5,9 +5,9 @@ import { VirtualizerOptions as VirtualizerOptions$1, Virtualizer as Virtualizer$
|
|
|
5
5
|
|
|
6
6
|
interface Props$D {
|
|
7
7
|
}
|
|
8
|
-
type NativeAttrs$
|
|
9
|
-
type DividerProps = Props$D & NativeAttrs$
|
|
10
|
-
declare const Divider: react.ForwardRefExoticComponent<Props$D & NativeAttrs$
|
|
8
|
+
type NativeAttrs$F = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$D>;
|
|
9
|
+
type DividerProps = Props$D & NativeAttrs$F;
|
|
10
|
+
declare const Divider: react.ForwardRefExoticComponent<Props$D & NativeAttrs$F & react.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
|
|
12
12
|
type AccordionSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
13
13
|
type AccordionVariant = 'plain' | 'flat' | 'tonal' | 'filled';
|
|
@@ -33,9 +33,9 @@ interface Props$C {
|
|
|
33
33
|
}) => React.ReactNode;
|
|
34
34
|
onChange?: (value: any[]) => void;
|
|
35
35
|
}
|
|
36
|
-
type NativeAttrs$
|
|
37
|
-
type AccordionProps = Props$C & NativeAttrs$
|
|
38
|
-
declare const Accordion: react.ForwardRefExoticComponent<Props$C & NativeAttrs$
|
|
36
|
+
type NativeAttrs$E = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$C>;
|
|
37
|
+
type AccordionProps = Props$C & NativeAttrs$E;
|
|
38
|
+
declare const Accordion: react.ForwardRefExoticComponent<Props$C & NativeAttrs$E & react.RefAttributes<HTMLDivElement>>;
|
|
39
39
|
|
|
40
40
|
interface AccordionItemContextValue {
|
|
41
41
|
value: string;
|
|
@@ -52,9 +52,9 @@ interface Props$B {
|
|
|
52
52
|
isOpen: boolean;
|
|
53
53
|
}) => React.ReactNode;
|
|
54
54
|
}
|
|
55
|
-
type NativeAttrs$
|
|
56
|
-
type AccordionItemProps = Props$B & NativeAttrs$
|
|
57
|
-
declare const AccordionItem: react.ForwardRefExoticComponent<Props$B & NativeAttrs$
|
|
55
|
+
type NativeAttrs$D = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$B>;
|
|
56
|
+
type AccordionItemProps = Props$B & NativeAttrs$D;
|
|
57
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<Props$B & NativeAttrs$D & react.RefAttributes<HTMLDivElement>>;
|
|
58
58
|
|
|
59
59
|
interface Props$A {
|
|
60
60
|
as?: React.ElementType;
|
|
@@ -73,9 +73,9 @@ interface Props$A {
|
|
|
73
73
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
74
74
|
};
|
|
75
75
|
}
|
|
76
|
-
type NativeAttrs$
|
|
77
|
-
type AccordionHeaderProps = Props$A & NativeAttrs$
|
|
78
|
-
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$A & NativeAttrs$
|
|
76
|
+
type NativeAttrs$C = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$A>;
|
|
77
|
+
type AccordionHeaderProps = Props$A & NativeAttrs$C;
|
|
78
|
+
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$A & NativeAttrs$C & react.RefAttributes<HTMLDivElement>>;
|
|
79
79
|
|
|
80
80
|
type AccordionBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
81
81
|
declare const AccordionBody: react.ForwardRefExoticComponent<AccordionBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -407,9 +407,9 @@ interface Props$z {
|
|
|
407
407
|
subtitle?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
408
408
|
};
|
|
409
409
|
}
|
|
410
|
-
type NativeAttrs$
|
|
411
|
-
type ListItemProps = Props$z & NativeAttrs$
|
|
412
|
-
declare const ListItem: react__default.ForwardRefExoticComponent<Props$z & NativeAttrs$
|
|
410
|
+
type NativeAttrs$B = Omit<react__default.HTMLAttributes<HTMLDivElement>, keyof Props$z>;
|
|
411
|
+
type ListItemProps = Props$z & NativeAttrs$B;
|
|
412
|
+
declare const ListItem: react__default.ForwardRefExoticComponent<Props$z & NativeAttrs$B & react__default.RefAttributes<HTMLDivElement>>;
|
|
413
413
|
|
|
414
414
|
interface Props$y {
|
|
415
415
|
expandVisible?: boolean;
|
|
@@ -419,9 +419,9 @@ interface Props$y {
|
|
|
419
419
|
onClose?: () => void;
|
|
420
420
|
onToggle?: () => void;
|
|
421
421
|
}
|
|
422
|
-
type NativeAttrs$
|
|
423
|
-
type ListGroupProps = Props$y & NativeAttrs$
|
|
424
|
-
declare const ListGroup: react.ForwardRefExoticComponent<Props$y & NativeAttrs$
|
|
422
|
+
type NativeAttrs$A = Omit<ListItemProps, keyof Props$y>;
|
|
423
|
+
type ListGroupProps = Props$y & NativeAttrs$A;
|
|
424
|
+
declare const ListGroup: react.ForwardRefExoticComponent<Props$y & NativeAttrs$A & react.RefAttributes<HTMLDivElement>>;
|
|
425
425
|
|
|
426
426
|
interface ListSubheaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
427
427
|
as?: React.ElementType;
|
|
@@ -463,7 +463,7 @@ interface AutocompleteMultipleProps<TAutocompleteItem extends AutocompleteItem,
|
|
|
463
463
|
onChange?: (value: TAutocompleteItem[]) => void;
|
|
464
464
|
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField][]) => void;
|
|
465
465
|
}
|
|
466
|
-
type NativeAttrs$
|
|
466
|
+
type NativeAttrs$z<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$x<TAutocompleteItem, TAutocompleteKeyField>>;
|
|
467
467
|
type Props$x<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = {
|
|
468
468
|
data: TAutocompleteItem[];
|
|
469
469
|
keyField?: TAutocompleteKeyField;
|
|
@@ -485,7 +485,7 @@ type Props$x<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField e
|
|
|
485
485
|
renderItem?: (item: TAutocompleteItem, props: ListItemProps) => React.ReactNode;
|
|
486
486
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
487
487
|
} & (AutocompleteSingleProps<TAutocompleteItem, TAutocompleteKeyField> | AutocompleteMultipleProps<TAutocompleteItem, TAutocompleteKeyField>);
|
|
488
|
-
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$x<TAutocompleteItem, TAutocompleteKeyField> & NativeAttrs$
|
|
488
|
+
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$x<TAutocompleteItem, TAutocompleteKeyField> & NativeAttrs$z<TAutocompleteItem, TAutocompleteKeyField>;
|
|
489
489
|
|
|
490
490
|
declare const Autocomplete: <TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = "key">(props: AutocompleteProps<TAutocompleteItem, TAutocompleteKeyField>) => react_jsx_runtime.JSX.Element;
|
|
491
491
|
|
|
@@ -501,9 +501,9 @@ interface Props$w {
|
|
|
501
501
|
scrollArea?: boolean;
|
|
502
502
|
onClose(): void;
|
|
503
503
|
}
|
|
504
|
-
type NativeAttrs$
|
|
505
|
-
type BackdropProps = Props$w & NativeAttrs$
|
|
506
|
-
declare const Backdrop: react.ForwardRefExoticComponent<Props$w & NativeAttrs$
|
|
504
|
+
type NativeAttrs$y = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$w>;
|
|
505
|
+
type BackdropProps = Props$w & NativeAttrs$y;
|
|
506
|
+
declare const Backdrop: react.ForwardRefExoticComponent<Props$w & NativeAttrs$y & react.RefAttributes<HTMLDivElement>>;
|
|
507
507
|
|
|
508
508
|
type BadgeColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
509
509
|
type BadgePlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
@@ -526,8 +526,8 @@ interface Props$v {
|
|
|
526
526
|
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
527
527
|
};
|
|
528
528
|
}
|
|
529
|
-
type NativeAttrs$
|
|
530
|
-
type BadgeProps = Props$v & NativeAttrs$
|
|
529
|
+
type NativeAttrs$x = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$v>;
|
|
530
|
+
type BadgeProps = Props$v & NativeAttrs$x;
|
|
531
531
|
declare const Badge: React.FC<BadgeProps>;
|
|
532
532
|
|
|
533
533
|
type DataListItem = Record<string, any>;
|
|
@@ -559,8 +559,8 @@ type Props$u<TDataListItem extends DataListItem, TDataListKeyField extends DataL
|
|
|
559
559
|
renderItem?: (item: TDataListItem, props: ListItemProps$1) => React.ReactNode;
|
|
560
560
|
renderNoData?: (props: ResultProps$1) => React.ReactNode;
|
|
561
561
|
} & (DataListSingleProps<TDataListItem, TDataListKeyField> | DataListMultipleProps<TDataListItem, TDataListKeyField>);
|
|
562
|
-
type NativeAttrs$
|
|
563
|
-
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$u<TDataListItem, TDataListKeyField> & NativeAttrs$
|
|
562
|
+
type NativeAttrs$w<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$u<TDataListItem, TDataListKeyField>>;
|
|
563
|
+
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$u<TDataListItem, TDataListKeyField> & NativeAttrs$w<TDataListItem, TDataListKeyField>;
|
|
564
564
|
|
|
565
565
|
declare const DataList: <TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = "key">(props: DataListProps<TDataListItem, TDataListKeyField>) => react_jsx_runtime.JSX.Element;
|
|
566
566
|
|
|
@@ -614,9 +614,9 @@ interface Props$t {
|
|
|
614
614
|
fontStyle?: React.CSSProperties['fontStyle'];
|
|
615
615
|
};
|
|
616
616
|
}
|
|
617
|
-
type NativeAttrs$
|
|
618
|
-
type ButtonProps = Props$t & NativeAttrs$
|
|
619
|
-
declare const Button: react.ForwardRefExoticComponent<Props$t & NativeAttrs$
|
|
617
|
+
type NativeAttrs$v = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$t>;
|
|
618
|
+
type ButtonProps = Props$t & NativeAttrs$v;
|
|
619
|
+
declare const Button: react.ForwardRefExoticComponent<Props$t & NativeAttrs$v & react.RefAttributes<HTMLButtonElement>>;
|
|
620
620
|
|
|
621
621
|
interface Props$s {
|
|
622
622
|
direction?: ButtonGroupDirection;
|
|
@@ -625,9 +625,9 @@ interface Props$s {
|
|
|
625
625
|
size?: ButtonSize;
|
|
626
626
|
disabled?: boolean;
|
|
627
627
|
}
|
|
628
|
-
type NativeAttrs$
|
|
629
|
-
type ButtonGroupProps = Props$s & NativeAttrs$
|
|
630
|
-
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$s & NativeAttrs$
|
|
628
|
+
type NativeAttrs$u = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$s>;
|
|
629
|
+
type ButtonGroupProps = Props$s & NativeAttrs$u;
|
|
630
|
+
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$s & NativeAttrs$u & react.RefAttributes<HTMLDivElement>>;
|
|
631
631
|
|
|
632
632
|
interface ButtonGroupContextValue {
|
|
633
633
|
direction: ButtonGroupDirection;
|
|
@@ -669,9 +669,9 @@ interface Props$r {
|
|
|
669
669
|
underlined?: boolean;
|
|
670
670
|
css?: BoxCSS;
|
|
671
671
|
}
|
|
672
|
-
type NativeAttrs$
|
|
673
|
-
type CardProps = Props$r & NativeAttrs$
|
|
674
|
-
declare const Card: react.ForwardRefExoticComponent<Props$r & NativeAttrs$
|
|
672
|
+
type NativeAttrs$t = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$r>;
|
|
673
|
+
type CardProps = Props$r & NativeAttrs$t;
|
|
674
|
+
declare const Card: react.ForwardRefExoticComponent<Props$r & NativeAttrs$t & react.RefAttributes<HTMLDivElement>>;
|
|
675
675
|
|
|
676
676
|
type CardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
677
677
|
declare const CardBody: react.ForwardRefExoticComponent<CardBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -699,9 +699,9 @@ interface Props$q {
|
|
|
699
699
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
700
700
|
};
|
|
701
701
|
}
|
|
702
|
-
type NativeAttrs$
|
|
703
|
-
type CardHeaderProps = Props$q & NativeAttrs$
|
|
704
|
-
declare const CardHeader: react.ForwardRefExoticComponent<Props$q & NativeAttrs$
|
|
702
|
+
type NativeAttrs$s = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$q>;
|
|
703
|
+
type CardHeaderProps = Props$q & NativeAttrs$s;
|
|
704
|
+
declare const CardHeader: react.ForwardRefExoticComponent<Props$q & NativeAttrs$s & react.RefAttributes<HTMLDivElement>>;
|
|
705
705
|
|
|
706
706
|
interface Props$p {
|
|
707
707
|
as?: React.ElementType;
|
|
@@ -711,9 +711,9 @@ interface Props$p {
|
|
|
711
711
|
bordered?: boolean;
|
|
712
712
|
underlined?: boolean;
|
|
713
713
|
}
|
|
714
|
-
type NativeAttrs$
|
|
715
|
-
type CardFooterProps = Props$p & NativeAttrs$
|
|
716
|
-
declare const CardFooter: react.ForwardRefExoticComponent<Props$p & NativeAttrs$
|
|
714
|
+
type NativeAttrs$r = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$p>;
|
|
715
|
+
type CardFooterProps = Props$p & NativeAttrs$r;
|
|
716
|
+
declare const CardFooter: react.ForwardRefExoticComponent<Props$p & NativeAttrs$r & react.RefAttributes<HTMLDivElement>>;
|
|
717
717
|
|
|
718
718
|
type CardMediaProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
719
719
|
topLeftContent?: React.ReactNode;
|
|
@@ -729,17 +729,17 @@ interface Props$o {
|
|
|
729
729
|
centered?: boolean;
|
|
730
730
|
css?: BoxCSS;
|
|
731
731
|
}
|
|
732
|
-
type NativeAttrs$
|
|
733
|
-
type CardTitleProps = Props$o & NativeAttrs$
|
|
734
|
-
declare const CardTitle: react.ForwardRefExoticComponent<Props$o & NativeAttrs$
|
|
732
|
+
type NativeAttrs$q = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$o>;
|
|
733
|
+
type CardTitleProps = Props$o & NativeAttrs$q;
|
|
734
|
+
declare const CardTitle: react.ForwardRefExoticComponent<Props$o & NativeAttrs$q & react.RefAttributes<HTMLDivElement>>;
|
|
735
735
|
|
|
736
736
|
interface Props$n {
|
|
737
737
|
as?: React.ElementType;
|
|
738
738
|
css?: BoxCSS;
|
|
739
739
|
}
|
|
740
|
-
type NativeAttrs$
|
|
741
|
-
type CardSubtitleProps = Props$n & NativeAttrs$
|
|
742
|
-
declare const CardSubtitle: react.ForwardRefExoticComponent<Props$n & NativeAttrs$
|
|
740
|
+
type NativeAttrs$p = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$n>;
|
|
741
|
+
type CardSubtitleProps = Props$n & NativeAttrs$p;
|
|
742
|
+
declare const CardSubtitle: react.ForwardRefExoticComponent<Props$n & NativeAttrs$p & react.RefAttributes<HTMLDivElement>>;
|
|
743
743
|
|
|
744
744
|
type ChipVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain';
|
|
745
745
|
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
@@ -783,9 +783,9 @@ interface Props$m {
|
|
|
783
783
|
};
|
|
784
784
|
onClose?: () => void;
|
|
785
785
|
}
|
|
786
|
-
type NativeAttrs$
|
|
787
|
-
type ChipProps = Props$m & NativeAttrs$
|
|
788
|
-
declare const Chip: react.ForwardRefExoticComponent<Props$m & NativeAttrs$
|
|
786
|
+
type NativeAttrs$o = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$m>;
|
|
787
|
+
type ChipProps = Props$m & NativeAttrs$o;
|
|
788
|
+
declare const Chip: react.ForwardRefExoticComponent<Props$m & NativeAttrs$o & react.RefAttributes<HTMLDivElement>>;
|
|
789
789
|
|
|
790
790
|
interface CollapseProps {
|
|
791
791
|
children: React.ReactNode;
|
|
@@ -846,9 +846,9 @@ interface Props$l {
|
|
|
846
846
|
onClose: () => void;
|
|
847
847
|
onAfterClose?: () => void;
|
|
848
848
|
}
|
|
849
|
-
type NativeAttrs$
|
|
850
|
-
type DrawerProps = Props$l & NativeAttrs$
|
|
851
|
-
declare const Drawer: react.ForwardRefExoticComponent<Props$l & NativeAttrs$
|
|
849
|
+
type NativeAttrs$n = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$l>;
|
|
850
|
+
type DrawerProps = Props$l & NativeAttrs$n;
|
|
851
|
+
declare const Drawer: react.ForwardRefExoticComponent<Props$l & NativeAttrs$n & react.RefAttributes<HTMLDivElement>>;
|
|
852
852
|
|
|
853
853
|
interface Props$k {
|
|
854
854
|
as?: React.ElementType;
|
|
@@ -866,9 +866,9 @@ interface Props$k {
|
|
|
866
866
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
867
867
|
};
|
|
868
868
|
}
|
|
869
|
-
type NativeAttrs$
|
|
870
|
-
type DrawerHeaderProps = Props$k & NativeAttrs$
|
|
871
|
-
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$k & NativeAttrs$
|
|
869
|
+
type NativeAttrs$m = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$k>;
|
|
870
|
+
type DrawerHeaderProps = Props$k & NativeAttrs$m;
|
|
871
|
+
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$k & NativeAttrs$m & react.RefAttributes<HTMLDivElement>>;
|
|
872
872
|
|
|
873
873
|
type DrawerBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
874
874
|
declare const DrawerBody: react.ForwardRefExoticComponent<DrawerBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -877,9 +877,9 @@ interface Props$j {
|
|
|
877
877
|
as?: React.ElementType;
|
|
878
878
|
bordered?: boolean;
|
|
879
879
|
}
|
|
880
|
-
type NativeAttrs$
|
|
881
|
-
type DrawerFooterProps = Props$j & NativeAttrs$
|
|
882
|
-
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$j & NativeAttrs$
|
|
880
|
+
type NativeAttrs$l = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$j>;
|
|
881
|
+
type DrawerFooterProps = Props$j & NativeAttrs$l;
|
|
882
|
+
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$j & NativeAttrs$l & react.RefAttributes<HTMLDivElement>>;
|
|
883
883
|
|
|
884
884
|
interface DrawerContextValue {
|
|
885
885
|
isOpen: boolean;
|
|
@@ -929,9 +929,9 @@ interface Props$i {
|
|
|
929
929
|
*/
|
|
930
930
|
disabled?: boolean;
|
|
931
931
|
}
|
|
932
|
-
type NativeAttrs$
|
|
933
|
-
type MenuItemProps = Props$i & NativeAttrs$
|
|
934
|
-
declare const MenuItem: react.ForwardRefExoticComponent<Props$i & NativeAttrs$
|
|
932
|
+
type NativeAttrs$k = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$i | 'items'>;
|
|
933
|
+
type MenuItemProps = Props$i & NativeAttrs$k;
|
|
934
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Props$i & NativeAttrs$k & react.RefAttributes<HTMLDivElement>>;
|
|
935
935
|
|
|
936
936
|
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
937
937
|
items?: MenuItemType[];
|
|
@@ -991,8 +991,8 @@ interface Props$h {
|
|
|
991
991
|
*/
|
|
992
992
|
onItemSelect?: (props: MenuItemProps) => void;
|
|
993
993
|
}
|
|
994
|
-
type NativeAttrs$
|
|
995
|
-
type MenuProps = Props$h & NativeAttrs$
|
|
994
|
+
type NativeAttrs$j = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$h | 'items'>;
|
|
995
|
+
type MenuProps = Props$h & NativeAttrs$j & {
|
|
996
996
|
items?: MenuItemType[];
|
|
997
997
|
};
|
|
998
998
|
declare const Menu: React.FC<MenuProps>;
|
|
@@ -1079,7 +1079,7 @@ interface SelectMultipleProps<TSelectItem extends SelectItem, TSelectKeyField ex
|
|
|
1079
1079
|
onChange?: (value: TSelectItem[]) => void;
|
|
1080
1080
|
onValueChange?: (value: TSelectItem[TSelectKeyField][]) => void;
|
|
1081
1081
|
}
|
|
1082
|
-
type NativeAttrs$
|
|
1082
|
+
type NativeAttrs$i<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$g<TSelectItem, TSelectKeyField>>;
|
|
1083
1083
|
type Props$g<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = {
|
|
1084
1084
|
data: TSelectItem[];
|
|
1085
1085
|
keyField?: TSelectKeyField;
|
|
@@ -1099,7 +1099,7 @@ type Props$g<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyFi
|
|
|
1099
1099
|
renderItem?: (item: TSelectItem, props: ListItemProps) => React.ReactNode;
|
|
1100
1100
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
1101
1101
|
} & (SelectSingleProps<TSelectItem, TSelectKeyField> | SelectMultipleProps<TSelectItem, TSelectKeyField>);
|
|
1102
|
-
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props$g<TSelectItem, TSelectKeyField> & NativeAttrs$
|
|
1102
|
+
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props$g<TSelectItem, TSelectKeyField> & NativeAttrs$i<TSelectItem, TSelectKeyField>;
|
|
1103
1103
|
|
|
1104
1104
|
declare const Select: <TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = "key">(props: SelectProps<TSelectItem, TSelectKeyField>) => react_jsx_runtime.JSX.Element;
|
|
1105
1105
|
|
|
@@ -1141,9 +1141,9 @@ interface Props$f {
|
|
|
1141
1141
|
labelPlacement?: SwitchLabelPlacement;
|
|
1142
1142
|
colorScheme?: ColorScheme;
|
|
1143
1143
|
}
|
|
1144
|
-
type NativeAttrs$
|
|
1145
|
-
type SwitchProps = Props$f & NativeAttrs$
|
|
1146
|
-
declare const Switch: react.ForwardRefExoticComponent<Props$f & NativeAttrs$
|
|
1144
|
+
type NativeAttrs$h = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$f | 'value' | 'defaultValue'>;
|
|
1145
|
+
type SwitchProps = Props$f & NativeAttrs$h;
|
|
1146
|
+
declare const Switch: react.ForwardRefExoticComponent<Props$f & NativeAttrs$h & react.RefAttributes<HTMLInputElement>>;
|
|
1147
1147
|
|
|
1148
1148
|
type TabsVariant = 'underlined' | 'outlined' | 'pills';
|
|
1149
1149
|
type TabValue = string | number | symbol;
|
|
@@ -1175,9 +1175,9 @@ interface Props$e<TTabValue extends TabValue = TabValue> {
|
|
|
1175
1175
|
*/
|
|
1176
1176
|
endContent?: React.ReactNode;
|
|
1177
1177
|
}
|
|
1178
|
-
type NativeAttrs$
|
|
1179
|
-
type TabProps<TTabValue extends TabValue = TabValue> = Props$e<TTabValue> & NativeAttrs$
|
|
1180
|
-
declare const Tab: react.ForwardRefExoticComponent<Props$e<TabValue> & NativeAttrs$
|
|
1178
|
+
type NativeAttrs$g = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$e>;
|
|
1179
|
+
type TabProps<TTabValue extends TabValue = TabValue> = Props$e<TTabValue> & NativeAttrs$g;
|
|
1180
|
+
declare const Tab: react.ForwardRefExoticComponent<Props$e<TabValue> & NativeAttrs$g & react.RefAttributes<HTMLDivElement>>;
|
|
1181
1181
|
|
|
1182
1182
|
interface Props$d<TTabValue extends TabValue = TabValue> {
|
|
1183
1183
|
/**
|
|
@@ -1202,9 +1202,9 @@ interface Props$d<TTabValue extends TabValue = TabValue> {
|
|
|
1202
1202
|
*/
|
|
1203
1203
|
onClose?: (value: TTabValue) => void;
|
|
1204
1204
|
}
|
|
1205
|
-
type NativeAttrs$
|
|
1206
|
-
type TabsProps<TTabValue extends TabValue = TabValue> = Props$d<TTabValue> & NativeAttrs$
|
|
1207
|
-
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$d<TTabValue> & NativeAttrs$
|
|
1205
|
+
type NativeAttrs$f = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$d>;
|
|
1206
|
+
type TabsProps<TTabValue extends TabValue = TabValue> = Props$d<TTabValue> & NativeAttrs$f;
|
|
1207
|
+
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$d<TTabValue> & NativeAttrs$f & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1208
1208
|
|
|
1209
1209
|
interface Props$c {
|
|
1210
1210
|
inputRef?: React.RefObject<HTMLInputElement>;
|
|
@@ -1215,9 +1215,9 @@ interface Props$c {
|
|
|
1215
1215
|
endContent?: React.ReactNode;
|
|
1216
1216
|
css?: BoxCSS;
|
|
1217
1217
|
}
|
|
1218
|
-
type NativeAttrs$
|
|
1219
|
-
type TextInputProps = Props$c & NativeAttrs$
|
|
1220
|
-
declare const TextInput: react.ForwardRefExoticComponent<Props$c & NativeAttrs$
|
|
1218
|
+
type NativeAttrs$e = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$c>;
|
|
1219
|
+
type TextInputProps = Props$c & NativeAttrs$e;
|
|
1220
|
+
declare const TextInput: react.ForwardRefExoticComponent<Props$c & NativeAttrs$e & react.RefAttributes<HTMLInputElement>>;
|
|
1221
1221
|
|
|
1222
1222
|
type ToolbarSize = 'auto' | 'sm' | 'md' | 'lg';
|
|
1223
1223
|
|
|
@@ -1243,8 +1243,8 @@ interface Props$b {
|
|
|
1243
1243
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1244
1244
|
};
|
|
1245
1245
|
}
|
|
1246
|
-
type NativeAttrs$
|
|
1247
|
-
type ToolbarProps = Props$b & NativeAttrs$
|
|
1246
|
+
type NativeAttrs$d = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$b>;
|
|
1247
|
+
type ToolbarProps = Props$b & NativeAttrs$d;
|
|
1248
1248
|
declare const Toolbar: React.FC<ToolbarProps>;
|
|
1249
1249
|
|
|
1250
1250
|
interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -1266,9 +1266,9 @@ interface Props$a {
|
|
|
1266
1266
|
as?: React.ElementType;
|
|
1267
1267
|
width?: number;
|
|
1268
1268
|
}
|
|
1269
|
-
type NativeAttrs$
|
|
1270
|
-
type SwipeItemProps = Props$a & NativeAttrs$
|
|
1271
|
-
declare const SwipeItem: react.ForwardRefExoticComponent<Props$a & NativeAttrs$
|
|
1269
|
+
type NativeAttrs$c = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$a>;
|
|
1270
|
+
type SwipeItemProps = Props$a & NativeAttrs$c;
|
|
1271
|
+
declare const SwipeItem: react.ForwardRefExoticComponent<Props$a & NativeAttrs$c & {
|
|
1272
1272
|
children?: react.ReactNode | undefined;
|
|
1273
1273
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1274
1274
|
|
|
@@ -1284,8 +1284,8 @@ interface Props$9 {
|
|
|
1284
1284
|
arrowRightButton?: ButtonProps;
|
|
1285
1285
|
};
|
|
1286
1286
|
}
|
|
1287
|
-
type NativeAttrs$
|
|
1288
|
-
type SwipeProps = Props$9 & NativeAttrs$
|
|
1287
|
+
type NativeAttrs$b = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$9>;
|
|
1288
|
+
type SwipeProps = Props$9 & NativeAttrs$b;
|
|
1289
1289
|
declare const Swipe: React.FC<SwipeProps>;
|
|
1290
1290
|
|
|
1291
1291
|
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
@@ -1312,9 +1312,9 @@ interface Props$8 {
|
|
|
1312
1312
|
onClose: () => void;
|
|
1313
1313
|
onAfterClose?: () => void;
|
|
1314
1314
|
}
|
|
1315
|
-
type NativeAttrs$
|
|
1316
|
-
type ModalProps = Props$8 & NativeAttrs$
|
|
1317
|
-
declare const Modal: react.ForwardRefExoticComponent<Props$8 & NativeAttrs$
|
|
1315
|
+
type NativeAttrs$a = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$8>;
|
|
1316
|
+
type ModalProps = Props$8 & NativeAttrs$a;
|
|
1317
|
+
declare const Modal: react.ForwardRefExoticComponent<Props$8 & NativeAttrs$a & react.RefAttributes<HTMLDivElement>>;
|
|
1318
1318
|
|
|
1319
1319
|
type ModalBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
1320
1320
|
declare const ModalBody: React.FC<ModalBodyProps>;
|
|
@@ -1332,9 +1332,9 @@ interface Props$7 {
|
|
|
1332
1332
|
as?: React.ElementType;
|
|
1333
1333
|
bordered?: boolean;
|
|
1334
1334
|
}
|
|
1335
|
-
type NativeAttrs$
|
|
1336
|
-
type ModalFooterProps = Props$7 & NativeAttrs$
|
|
1337
|
-
declare const ModalFooter: react.ForwardRefExoticComponent<Props$7 & NativeAttrs$
|
|
1335
|
+
type NativeAttrs$9 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$7>;
|
|
1336
|
+
type ModalFooterProps = Props$7 & NativeAttrs$9;
|
|
1337
|
+
declare const ModalFooter: react.ForwardRefExoticComponent<Props$7 & NativeAttrs$9 & react.RefAttributes<HTMLDivElement>>;
|
|
1338
1338
|
|
|
1339
1339
|
interface Props$6 {
|
|
1340
1340
|
as?: React.ElementType;
|
|
@@ -1352,9 +1352,9 @@ interface Props$6 {
|
|
|
1352
1352
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1353
1353
|
};
|
|
1354
1354
|
}
|
|
1355
|
-
type NativeAttrs$
|
|
1356
|
-
type ModalHeaderProps = Props$6 & NativeAttrs$
|
|
1357
|
-
declare const ModalHeader: react.ForwardRefExoticComponent<Props$6 & NativeAttrs$
|
|
1355
|
+
type NativeAttrs$8 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6>;
|
|
1356
|
+
type ModalHeaderProps = Props$6 & NativeAttrs$8;
|
|
1357
|
+
declare const ModalHeader: react.ForwardRefExoticComponent<Props$6 & NativeAttrs$8 & react.RefAttributes<HTMLDivElement>>;
|
|
1358
1358
|
|
|
1359
1359
|
type CheckboxValue = string | number | symbol;
|
|
1360
1360
|
type CheckboxSize = 'sm' | 'md' | 'lg';
|
|
@@ -1368,9 +1368,9 @@ interface Props$5<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
|
1368
1368
|
labelPlacement?: CheckboxLabelPlacement;
|
|
1369
1369
|
colorScheme?: ColorScheme;
|
|
1370
1370
|
}
|
|
1371
|
-
type NativeAttrs$
|
|
1372
|
-
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$5<TCheckboxValue> & NativeAttrs$
|
|
1373
|
-
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$5<TCheckboxValue> & NativeAttrs$
|
|
1371
|
+
type NativeAttrs$7 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$5 | 'defaultValue'>;
|
|
1372
|
+
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$5<TCheckboxValue> & NativeAttrs$7;
|
|
1373
|
+
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$5<TCheckboxValue> & NativeAttrs$7 & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1374
1374
|
|
|
1375
1375
|
interface Props$4<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1376
1376
|
value?: TCheckboxValue[];
|
|
@@ -1384,9 +1384,9 @@ interface Props$4<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
|
1384
1384
|
colorScheme?: ColorScheme;
|
|
1385
1385
|
onChange?: (value: TCheckboxValue[]) => void;
|
|
1386
1386
|
}
|
|
1387
|
-
type NativeAttrs$
|
|
1388
|
-
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$4<TCheckboxValue> & NativeAttrs$
|
|
1389
|
-
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$4<TCheckboxValue> & NativeAttrs$
|
|
1387
|
+
type NativeAttrs$6 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4>;
|
|
1388
|
+
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$4<TCheckboxValue> & NativeAttrs$6;
|
|
1389
|
+
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$4<TCheckboxValue> & NativeAttrs$6 & react.RefAttributes<HTMLTableElement>) => ReturnType<React.FunctionComponent>;
|
|
1390
1390
|
|
|
1391
1391
|
interface CheckboxGroupContextValue<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1392
1392
|
value: TCheckboxValue[];
|
|
@@ -1414,9 +1414,9 @@ interface Props$3<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1414
1414
|
labelPlacement?: RadioLabelPlacement;
|
|
1415
1415
|
colorScheme?: ColorScheme;
|
|
1416
1416
|
}
|
|
1417
|
-
type NativeAttrs$
|
|
1418
|
-
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$3<TRadioValue> & NativeAttrs$
|
|
1419
|
-
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$3<TRadioValue> & NativeAttrs$
|
|
1417
|
+
type NativeAttrs$5 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$3 | 'defaultValue' | 'checked' | 'defaultChecked' | 'onChange'>;
|
|
1418
|
+
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$3<TRadioValue> & NativeAttrs$5;
|
|
1419
|
+
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$3<TRadioValue> & NativeAttrs$5 & react.RefAttributes<HTMLInputElement>) => ReturnType<React.FunctionComponent>;
|
|
1420
1420
|
|
|
1421
1421
|
interface Props$2<TRadioValue extends RadioValue = RadioValue> {
|
|
1422
1422
|
name?: string;
|
|
@@ -1431,9 +1431,9 @@ interface Props$2<TRadioValue extends RadioValue = RadioValue> {
|
|
|
1431
1431
|
colorScheme?: ColorScheme;
|
|
1432
1432
|
onChange?: (value: TRadioValue) => void;
|
|
1433
1433
|
}
|
|
1434
|
-
type NativeAttrs$
|
|
1435
|
-
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props$2<TRadioValue> & NativeAttrs$
|
|
1436
|
-
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props$2<TRadioValue> & NativeAttrs$
|
|
1434
|
+
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$2>;
|
|
1435
|
+
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props$2<TRadioValue> & NativeAttrs$4;
|
|
1436
|
+
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props$2<TRadioValue> & NativeAttrs$4 & react.RefAttributes<HTMLDivElement>) => ReturnType<React.FunctionComponent>;
|
|
1437
1437
|
|
|
1438
1438
|
interface RadioGroupContextValue {
|
|
1439
1439
|
name: string;
|
|
@@ -1455,8 +1455,8 @@ interface Props$1 {
|
|
|
1455
1455
|
endContent?: React.ReactNode;
|
|
1456
1456
|
placement?: NavRailPlacement;
|
|
1457
1457
|
}
|
|
1458
|
-
type NativeAttrs$
|
|
1459
|
-
type NavRailProps = Props$1 & NativeAttrs$
|
|
1458
|
+
type NativeAttrs$3 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$1>;
|
|
1459
|
+
type NavRailProps = Props$1 & NativeAttrs$3;
|
|
1460
1460
|
declare const NavRail: React.FC<NavRailProps>;
|
|
1461
1461
|
|
|
1462
1462
|
interface Props {
|
|
@@ -1466,12 +1466,13 @@ interface Props {
|
|
|
1466
1466
|
label?: React.ReactNode;
|
|
1467
1467
|
selected?: boolean;
|
|
1468
1468
|
}
|
|
1469
|
-
type NativeAttrs = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
|
1470
|
-
type NavRailItemProps = Props & NativeAttrs;
|
|
1471
|
-
declare const NavRailItem: react.ForwardRefExoticComponent<Props & NativeAttrs & react.RefAttributes<HTMLDivElement>>;
|
|
1469
|
+
type NativeAttrs$2 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
|
1470
|
+
type NavRailItemProps = Props & NativeAttrs$2;
|
|
1471
|
+
declare const NavRailItem: react.ForwardRefExoticComponent<Props & NativeAttrs$2 & react.RefAttributes<HTMLDivElement>>;
|
|
1472
1472
|
|
|
1473
1473
|
type DescriptionsLayout = 'row' | 'col';
|
|
1474
1474
|
type DescriptionsSize = 'sm' | 'md' | 'lg';
|
|
1475
|
+
type DescriptionsAlign = React.CSSProperties['textAlign'];
|
|
1475
1476
|
interface DescriptionItemString {
|
|
1476
1477
|
type?: 'string';
|
|
1477
1478
|
value?: string | null;
|
|
@@ -1515,7 +1516,6 @@ type DescriptionItem = {
|
|
|
1515
1516
|
order?: Responsive<number>;
|
|
1516
1517
|
render?: (options: {
|
|
1517
1518
|
content: React.ReactNode;
|
|
1518
|
-
empty: React.ReactNode;
|
|
1519
1519
|
isEmpty: boolean;
|
|
1520
1520
|
mq: ContainerMediaQuery;
|
|
1521
1521
|
}) => React.ReactNode;
|
|
@@ -1526,6 +1526,9 @@ interface DescriptionsProps {
|
|
|
1526
1526
|
layout?: Responsive<DescriptionsLayout>;
|
|
1527
1527
|
size?: Responsive<DescriptionsSize>;
|
|
1528
1528
|
cols?: Responsive<number>;
|
|
1529
|
+
align?: Responsive<DescriptionsAlign>;
|
|
1530
|
+
labelAlign?: Responsive<DescriptionsAlign>;
|
|
1531
|
+
contentAlign?: Responsive<DescriptionsAlign>;
|
|
1529
1532
|
}
|
|
1530
1533
|
declare const Descriptions: React.FC<DescriptionsProps>;
|
|
1531
1534
|
|
|
@@ -1534,11 +1537,21 @@ interface DescriptionProps {
|
|
|
1534
1537
|
}
|
|
1535
1538
|
declare const Description: React.FC<DescriptionProps>;
|
|
1536
1539
|
|
|
1540
|
+
type NativeAttrs$1 = React.HTMLAttributes<HTMLDivElement>;
|
|
1541
|
+
type DescriptionEmptyProps = NativeAttrs$1;
|
|
1542
|
+
declare const DescriptionEmpty: react.ForwardRefExoticComponent<NativeAttrs$1 & react.RefAttributes<HTMLDivElement>>;
|
|
1543
|
+
|
|
1544
|
+
type NativeAttrs = React.HTMLAttributes<HTMLDivElement>;
|
|
1545
|
+
type DescriptionTextProps = NativeAttrs;
|
|
1546
|
+
declare const DescriptionText: react.ForwardRefExoticComponent<NativeAttrs & react.RefAttributes<HTMLDivElement>>;
|
|
1547
|
+
|
|
1537
1548
|
interface DescriptionsContextValue {
|
|
1538
1549
|
mq: ContainerMediaQuery;
|
|
1539
1550
|
layout: DescriptionsLayout;
|
|
1540
1551
|
size: DescriptionsSize;
|
|
1541
1552
|
cols: number;
|
|
1553
|
+
labelAlign?: DescriptionsAlign;
|
|
1554
|
+
contentAlign?: DescriptionsAlign;
|
|
1542
1555
|
}
|
|
1543
1556
|
declare const DescriptionsContext: react.Context<DescriptionsContextValue | null>;
|
|
1544
1557
|
declare const useDescriptionsContext: () => DescriptionsContextValue;
|
|
@@ -1562,4 +1575,4 @@ declare function formatTime(value: Date | string | number, locales?: Intl.Locale
|
|
|
1562
1575
|
declare function formatCurrency(value: number | bigint | Intl.StringNumericLiteral, currency?: string, locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
|
1563
1576
|
declare function formatPercent(value: any, decimals?: number, locales?: Intl.LocalesArgument, options?: Intl.NumberFormatOptions): string;
|
|
1564
1577
|
|
|
1565
|
-
export { Accordion, type AccordionArrow, AccordionBody, type AccordionBodyProps, type AccordionColor, AccordionContent, type AccordionContentProps, AccordionContext, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionSize, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, Autocomplete, type AutocompleteItem, type AutocompleteKeyField, type AutocompleteMultipleProps, type AutocompleteProps, type AutocompleteSingleProps, Backdrop, type BackdropPlacement, type BackdropProps, type BackdropVariant, Badge, type BadgeProps, Button, type ButtonColor, ButtonGroup, ButtonGroupContext, type ButtonGroupContextValue, type ButtonGroupDirection, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, CardSubtitle, type CardSubtitleProps, CardTitle, type CardTitleProps, Checkbox, CheckboxGroup, type CheckboxGroupAlignment, type CheckboxGroupContextValue, type CheckboxGroupDirection, type CheckboxGroupProps, type CheckboxLabelPlacement, type CheckboxProps, type CheckboxSize, type CheckboxValue, Chip, type ChipProps, Collapse, CollapseContent, type CollapseContentProps, CollapseContext, type CollapseContextValue, type CollapseProps, CollapseTrigger, type CollapseTriggerProps, type ColorScheme, type ContainerBreakpoints, ContainerMediaQuery, DataList, type DataListItem, type DataListKeyField, type DataListMultipleProps, type DataListProps, type DataListSingleProps, Description, type DescriptionItem, type DescriptionItemBoolean, type DescriptionItemCurrency, type DescriptionItemDate, type DescriptionItemNumber, type DescriptionItemPercent, type DescriptionItemString, type DescriptionProps, Descriptions, DescriptionsContext, type DescriptionsContextValue, type DescriptionsLayout, type DescriptionsProps, type DescriptionsSize, type Disclosure, Divider, type DividerProps, Drawer, type DrawerBackdrop, DrawerBody, type DrawerBodyProps, type DrawerClose, DrawerContext, type DrawerContextValue, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, type DrawerPosition, type DrawerProps, type DrawerSize, Field, type FieldProps, Icon, type IconColor, type IconProps, type IconSize, type InfiniteData, type InfiniteQueryFunction, type InfiniteQueryOptions, type InfiniteQueryRefetchOptions, type InputColor, type InputSize, type InputVariant, List, ListGroup, type ListGroupProps, ListItem, type ListItemProps, type ListProps, type ListSize, ListSubheader, type ListSubheaderProps, type MediaQuery, Menu, MenuContext, type MenuContextValue, MenuGroup, type MenuGroupItemType, type MenuGroupProps, MenuItem, type MenuItemProps, type MenuItemType, type MenuProps, MenuSubmenu, type MenuSubmenuProps, MenuValueContext, Modal, type ModalBackdrop, ModalBody, type ModalBodyProps, type ModalClose, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalPlacement, type ModalProps, type ModalScrollBehavior, type ModalSize, type MutationError, type MutationFunction, type MutationOK, type MutationResult, MutationStatus, NavRail, NavRailItem, type NavRailItemProps, type NavRailPlacement, type NavRailProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, type QueryFunction, QueryStatus, Radio, RadioGroup, type RadioGroupAlignment, type RadioGroupContextValue, type RadioGroupDirection, type RadioGroupProps, type RadioProps, type RadioSize, type RadioValue, type ReactRef, type Resize, type Responsive, Result, type ResultProps, type ResultStatus, type ScrollAlignment, ScrollArea, type ScrollAreaProps, type ScrollBehavior, type ScrollToOptions, Select, type SelectItem, type SelectKeyField, type SelectMultipleProps, type SelectProps, type SelectSingleProps, Swipe, SwipeItem, type SwipeItemProps, type SwipeProps, Switch, type SwitchProps, type SwitchSize, Tab, type TabProps, Tabs, type TabsAlignment, type TabsProps, type TabsVariant, TextInput, type TextInputProps, Toolbar, type ToolbarProps, type ToolbarSize, Transition, type TransitionProps, type UseContainerMediaQueryOptions, type UseInfiniteQueryOptions, type UseInfiniteQueryResult, type UseMutationOptions, type UseMutationResult, type UseQueryOptions, type UseQueryResult, type UseResizeObserverOptions, type VirtualItem, type Virtualizer, type VirtualizerOptions, assignRef, breakpointsMap, clsx, dateFormat, defaultBreakpoints, formatCurrency, formatDate, formatDateTime, formatPercent, formatShortDateTime, formatTime, getOpenValuesByPathname, hasResizeObserver, mergeRefs, scrollToItem, useAccordion, useAccordionItem, useButtonGroup, useCheckboxGroup, useCollapse, useContainerMediaQuery, useDebounce, useDescriptionsContext, useDisclosure, useDrawer, useEffectEvent, useElementSize, useInfiniteQuery, useLocalStorage, useMediaQuery, useMenu, useMenuItemValue, useModal, useMutation, useOnClickOutside, usePopover, usePrevious, useQuery, useRadioGroup, useResizeObserver, useStep, useValueEffect, useVirtualizer };
|
|
1578
|
+
export { Accordion, type AccordionArrow, AccordionBody, type AccordionBodyProps, type AccordionColor, AccordionContent, type AccordionContentProps, AccordionContext, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemProps, type AccordionProps, type AccordionSize, AccordionTrigger, type AccordionTriggerProps, type AccordionVariant, Autocomplete, type AutocompleteItem, type AutocompleteKeyField, type AutocompleteMultipleProps, type AutocompleteProps, type AutocompleteSingleProps, Backdrop, type BackdropPlacement, type BackdropProps, type BackdropVariant, Badge, type BadgeProps, Button, type ButtonColor, ButtonGroup, ButtonGroupContext, type ButtonGroupContextValue, type ButtonGroupDirection, type ButtonGroupProps, type ButtonProps, type ButtonSize, type ButtonVariant, Card, CardBody, type CardBodyProps, CardFooter, type CardFooterProps, CardHeader, type CardHeaderProps, CardMedia, type CardMediaProps, type CardProps, CardSubtitle, type CardSubtitleProps, CardTitle, type CardTitleProps, Checkbox, CheckboxGroup, type CheckboxGroupAlignment, type CheckboxGroupContextValue, type CheckboxGroupDirection, type CheckboxGroupProps, type CheckboxLabelPlacement, type CheckboxProps, type CheckboxSize, type CheckboxValue, Chip, type ChipProps, Collapse, CollapseContent, type CollapseContentProps, CollapseContext, type CollapseContextValue, type CollapseProps, CollapseTrigger, type CollapseTriggerProps, type ColorScheme, type ContainerBreakpoints, ContainerMediaQuery, DataList, type DataListItem, type DataListKeyField, type DataListMultipleProps, type DataListProps, type DataListSingleProps, Description, DescriptionEmpty, type DescriptionEmptyProps, type DescriptionItem, type DescriptionItemBoolean, type DescriptionItemCurrency, type DescriptionItemDate, type DescriptionItemNumber, type DescriptionItemPercent, type DescriptionItemString, type DescriptionProps, DescriptionText, type DescriptionTextProps, Descriptions, type DescriptionsAlign, DescriptionsContext, type DescriptionsContextValue, type DescriptionsLayout, type DescriptionsProps, type DescriptionsSize, type Disclosure, Divider, type DividerProps, Drawer, type DrawerBackdrop, DrawerBody, type DrawerBodyProps, type DrawerClose, DrawerContext, type DrawerContextValue, DrawerFooter, type DrawerFooterProps, DrawerHeader, type DrawerHeaderProps, type DrawerPlacement, type DrawerPosition, type DrawerProps, type DrawerSize, Field, type FieldProps, Icon, type IconColor, type IconProps, type IconSize, type InfiniteData, type InfiniteQueryFunction, type InfiniteQueryOptions, type InfiniteQueryRefetchOptions, type InputColor, type InputSize, type InputVariant, List, ListGroup, type ListGroupProps, ListItem, type ListItemProps, type ListProps, type ListSize, ListSubheader, type ListSubheaderProps, type MediaQuery, Menu, MenuContext, type MenuContextValue, MenuGroup, type MenuGroupItemType, type MenuGroupProps, MenuItem, type MenuItemProps, type MenuItemType, type MenuProps, MenuSubmenu, type MenuSubmenuProps, MenuValueContext, Modal, type ModalBackdrop, ModalBody, type ModalBodyProps, type ModalClose, ModalFooter, type ModalFooterProps, ModalHeader, type ModalHeaderProps, type ModalPlacement, type ModalProps, type ModalScrollBehavior, type ModalSize, type MutationError, type MutationFunction, type MutationOK, type MutationResult, MutationStatus, NavRail, NavRailItem, type NavRailItemProps, type NavRailPlacement, type NavRailProps, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, type QueryFunction, QueryStatus, Radio, RadioGroup, type RadioGroupAlignment, type RadioGroupContextValue, type RadioGroupDirection, type RadioGroupProps, type RadioProps, type RadioSize, type RadioValue, type ReactRef, type Resize, type Responsive, Result, type ResultProps, type ResultStatus, type ScrollAlignment, ScrollArea, type ScrollAreaProps, type ScrollBehavior, type ScrollToOptions, Select, type SelectItem, type SelectKeyField, type SelectMultipleProps, type SelectProps, type SelectSingleProps, Swipe, SwipeItem, type SwipeItemProps, type SwipeProps, Switch, type SwitchProps, type SwitchSize, Tab, type TabProps, Tabs, type TabsAlignment, type TabsProps, type TabsVariant, TextInput, type TextInputProps, Toolbar, type ToolbarProps, type ToolbarSize, Transition, type TransitionProps, type UseContainerMediaQueryOptions, type UseInfiniteQueryOptions, type UseInfiniteQueryResult, type UseMutationOptions, type UseMutationResult, type UseQueryOptions, type UseQueryResult, type UseResizeObserverOptions, type VirtualItem, type Virtualizer, type VirtualizerOptions, assignRef, breakpointsMap, clsx, dateFormat, defaultBreakpoints, formatCurrency, formatDate, formatDateTime, formatPercent, formatShortDateTime, formatTime, getOpenValuesByPathname, hasResizeObserver, mergeRefs, scrollToItem, useAccordion, useAccordionItem, useButtonGroup, useCheckboxGroup, useCollapse, useContainerMediaQuery, useDebounce, useDescriptionsContext, useDisclosure, useDrawer, useEffectEvent, useElementSize, useInfiniteQuery, useLocalStorage, useMediaQuery, useMenu, useMenuItemValue, useModal, useMutation, useOnClickOutside, usePopover, usePrevious, useQuery, useRadioGroup, useResizeObserver, useStep, useValueEffect, useVirtualizer };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var ol=Object.create;var wo=Object.defineProperty;var rl=Object.getOwnPropertyDescriptor;var nl=Object.getOwnPropertyNames;var il=Object.getPrototypeOf,al=Object.prototype.hasOwnProperty;var sl=(e,o)=>{for(var t in o)wo(e,t,{get:o[t],enumerable:!0})},Tn=(e,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of nl(o))!al.call(e,n)&&n!==t&&wo(e,n,{get:()=>o[n],enumerable:!(r=rl(o,n))||r.enumerable});return e};var w=(e,o,t)=>(t=e!=null?ol(il(e)):{},Tn(o||!e||!e.__esModule?wo(t,"default",{value:e,enumerable:!0}):t,e)),ll=e=>Tn(wo({},"__esModule",{value:!0}),e);var gc={};sl(gc,{Accordion:()=>Mn,AccordionBody:()=>ei,AccordionContent:()=>oi,AccordionContext:()=>No,AccordionHeader:()=>Zn,AccordionItem:()=>kn,AccordionTrigger:()=>ni,Autocomplete:()=>ra,Backdrop:()=>Ot,Badge:()=>ia,Button:()=>De,ButtonGroup:()=>Ii,ButtonGroupContext:()=>so,Card:()=>va,CardBody:()=>Ca,CardFooter:()=>Ma,CardHeader:()=>Sa,CardMedia:()=>Ia,CardSubtitle:()=>jo,CardTitle:()=>er,Checkbox:()=>Os,CheckboxGroup:()=>zs,Chip:()=>Dt,Collapse:()=>Fe,CollapseContent:()=>be,CollapseContext:()=>$o,CollapseTrigger:()=>Te,ContainerMediaQuery:()=>Li,DataList:()=>da,Description:()=>hn,Descriptions:()=>Rc,DescriptionsContext:()=>Lr,Divider:()=>gn,Drawer:()=>Na,DrawerBody:()=>Va,DrawerContext:()=>xo,DrawerFooter:()=>Fa,DrawerHeader:()=>$a,Field:()=>Ga,Icon:()=>E,List:()=>U,ListGroup:()=>qi,ListItem:()=>H,ListSubheader:()=>Yi,Menu:()=>ts,MenuContext:()=>ir,MenuGroup:()=>Kt,MenuItem:()=>he,MenuSubmenu:()=>Gt,MenuValueContext:()=>mt,Modal:()=>Es,ModalBody:()=>Is,ModalFooter:()=>As,ModalHeader:()=>Vs,MutationStatus:()=>Wr,NavRail:()=>Qs,NavRailItem:()=>Zs,Popover:()=>At,PopoverContent:()=>$t,PopoverTrigger:()=>Vt,Portal:()=>Nt,QueryStatus:()=>Ur,Radio:()=>Ks,RadioGroup:()=>Ws,Result:()=>Ne,ScrollArea:()=>z,Select:()=>as,Swipe:()=>Ps,SwipeItem:()=>Rs,Switch:()=>ls,Tab:()=>ms,Tabs:()=>Cs,TextInput:()=>hs,Toolbar:()=>bs,Transition:()=>ge,assignRef:()=>Zt,breakpointsMap:()=>Ue,clsx:()=>L,dateFormat:()=>jt,defaultBreakpoints:()=>Qr,formatCurrency:()=>$r,formatDate:()=>Io,formatDateTime:()=>Dr,formatPercent:()=>kr,formatShortDateTime:()=>Nr,formatTime:()=>Ar,getOpenValuesByPathname:()=>Qa,hasResizeObserver:()=>qr,mergeRefs:()=>J,scrollToItem:()=>Ir,useAccordion:()=>ht,useAccordionItem:()=>ko,useButtonGroup:()=>Ko,useCheckboxGroup:()=>Tr,useCollapse:()=>Oe,useContainerMediaQuery:()=>Yr,useDebounce:()=>fi,useDescriptionsContext:()=>xn,useDisclosure:()=>Ge,useDrawer:()=>or,useEffectEvent:()=>ao,useElementSize:()=>Et,useInfiniteQuery:()=>bi,useLocalStorage:()=>li,useMediaQuery:()=>vi,useMenu:()=>zt,useMenuItemValue:()=>Ua,useModal:()=>qt,useMutation:()=>yi,useOnClickOutside:()=>Fo,usePopover:()=>Z,usePrevious:()=>ci,useQuery:()=>Ti,useRadioGroup:()=>gr,useResizeObserver:()=>gi,useStep:()=>mi,useValueEffect:()=>Si,useVirtualizer:()=>Ke});module.exports=ll(gc);var yn=w(require("clsx")),Rn=require("react");var f="us-";var Sn=require("react/jsx-runtime"),gn=(0,Rn.forwardRef)((e,o)=>{let{className:t,...r}=e;return(0,Sn.jsx)("div",{...r,ref:o,className:(0,yn.default)(`${f}divider`,t)})});var bt=require("react");var Ir=(e,o)=>{let t=e.getBoundingClientRect(),r=o.getBoundingClientRect(),n="smooth",i=o.previousSibling,a=i?.getBoundingClientRect()||r;if(t.left>a.left){let c=0;i&&(c=a.left-t.left+e.scrollLeft+a.width/4),e.scrollTo({behavior:n,left:c})}let l=o.nextSibling,d=l?.getBoundingClientRect()||r;if(t.right<d.right){let c=e.scrollWidth;l&&(c=d.right-t.right+e.scrollLeft-d.width/4),e.scrollTo({behavior:n,left:c})}};function Ln(e){let o,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(t=Ln(e[o]))&&(r&&(r+=" "),r+=t);else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function cl(...e){let o=0,t,r,n="";for(;o<e.length;)(t=e[o++])&&(r=Ln(t))&&(n&&(n+=" "),n+=r);return n}var L=cl;function Zt(e,o){if(e!=null){if(typeof e=="function"){e(o);return}try{e.current=o}catch{throw new Error(`Cannot assign value '${o}' to ref '${e}'`)}}}function ul(...e){return o=>{e.forEach(t=>{Zt(t,o)})}}var J=ul;function jt(e,o="en-US",t){let r=typeof e=="string"||typeof e=="number"?new Date(e):e;return new Intl.DateTimeFormat(o,t).format(r)}function Io(e,o="en-US",t){return jt(e,o,{year:"2-digit",month:"2-digit",day:"2-digit",...t})}function Dr(e,o="en-US",t){return jt(e,o,{year:"numeric",month:"long",day:"2-digit",hour:"2-digit",hour12:!1,minute:"2-digit",...t})}function Nr(e,o="en-US",t){return jt(e,o,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",hour12:!1,minute:"2-digit",...t})}function Ar(e,o="en-US",t){return jt(e,o,{hour:"2-digit",hour12:!1,minute:"2-digit",...t})}function $r(e,o="USD",t="en-US",r){return new Intl.NumberFormat(t,{currency:o,...r,style:"currency"}).format(e)}function kr(e,o=2,t="en-US",r){return new Intl.NumberFormat(t,{minimumFractionDigits:o,maximumFractionDigits:o,...r,style:"percent"}).format(Number(e))}var Do=require("react"),Pn=(0,Do.createContext)(null),ht=()=>{let e=(0,Do.useContext)(Pn);if(!e)throw new Error("`useAccordion` must be used within a `<Accordion />`");return e},No=Pn;var eo=require("react/jsx-runtime"),Vr={isVisible:!0,position:"start"},dl=(0,bt.forwardRef)((e,o)=>{let{children:t,className:r,value:n,defaultValue:i,expandMode:a="multiple",size:l="md",arrow:d=Vr,variant:c="plain",color:p="secondary",splitted:s,bordered:u,shadow:m,indicator:C,onChange:v,...x}=e,T=f,[b,y]=(0,bt.useState)(n??i??[]),g=h=>{n!==void 0?v?.(h):y(h)};return(0,bt.useEffect)(()=>{n!==void 0&&y(n)},[n]),(0,eo.jsx)(No.Provider,{value:{value:b,expandMode:a,arrow:{isVisible:d.isVisible??Vr.isVisible,position:d.position??Vr.position},variant:c,color:p,indicator:C,onChange:g},children:(0,eo.jsxs)("div",{ref:o,className:L(`${T}accordion`,{[`${T}accordion--${l}`]:l,[`${T}accordion--${c}`]:c,[`${T}accordion--${p}`]:p,[`${T}accordion--${p}`]:p,[`${T}accordion--splitted`]:s,[`${T}accordion--bordered`]:u,[`${T}accordion--shadow`]:m},r),...x,children:[(0,eo.jsx)("div",{className:L(`${T}outline`)}),t]})})}),Mn=dl;var ze=require("react"),An=require("uuid");var we=require("react");var Ao=require("react"),En=(0,Ao.createContext)(null),Oe=()=>{let e=(0,Ao.useContext)(En);if(!e)throw new Error("`useCollapse` must be used within a `<Collapse />`");return e},$o=En;var wn=require("react/jsx-runtime"),pl=({children:e,isOpen:o,onOpen:t,onClose:r,onToggle:n})=>{let i=(0,we.useRef)(null),[a,l]=(0,we.useState)(o??!1),[d,c]=(0,we.useState)(!1),[p,s]=we.Children.toArray(e),u=()=>{l(!0),t?.()},m=()=>{l(!1),r?.()},C=()=>{l(v=>!v),n?.()};return(0,we.useEffect)(()=>{o!==void 0&&l(o),setTimeout(()=>{c(!!o)},100)},[o]),(0,wn.jsxs)($o.Provider,{value:{collapseRef:i,isOpen:a,heightAuto:d,onOpen:u,onClose:m,onToggle:C},children:[p,s]})},Fe=pl;var In=w(require("clsx")),Dn=require("react");var Nn=require("react/jsx-runtime"),ml=(0,Dn.forwardRef)(({children:e,style:o,className:t},r)=>{let{collapseRef:n,isOpen:i,heightAuto:a}=Oe(),l=f;return(0,Nn.jsx)("div",{ref:J(r,n),className:(0,In.default)(`${l}collapse`,{[`${l}collapse--is-open`]:i},t),style:{...o,height:i&&a?"auto":i||!i&&a?n.current?.scrollHeight:0},"data-hidden":!i,children:e})}),be=ml;var Tt=require("react");var fl=(0,Tt.forwardRef)(({children:e},o)=>{let{collapseRef:t,onToggle:r}=Oe(),n=f,i=Tt.Children.only(e),{className:a,onClick:l,...d}=i.props;return(0,Tt.cloneElement)(i,{ref:o,className:L(`${n}collapse-trigger`,a),onClick:c=>{t.current&&(r(),l?.(c))},...d})}),Te=fl;var yt=require("react/jsx-runtime"),$n=(0,ze.createContext)(null),ko=()=>{let e=(0,ze.useContext)($n);if(!e)throw new Error("`useAccordionItem` must be used within a `<AccordionItem />`");return e},vl=(0,ze.forwardRef)((e,o)=>{let{children:t,className:r,value:n,variant:i,color:a,indicator:l,...d}=e,[c]=(0,ze.useState)((0,An.v4)()),p=n??c,s=ht(),u=i??s.variant,m=a??s.color,C=l??s.indicator,v=f,x=s.value.includes(p),T=()=>{let b=s.value.indexOf(p),y=s.expandMode==="multiple"?[...s.value]:[];b===-1?y.push(p):y.splice(b,1),s.onChange(y)};return(0,yt.jsx)($n.Provider,{value:{value:p,indicator:C},children:(0,yt.jsxs)("div",{ref:o,className:L(`${v}accordion-item`,{[`${v}accordion-item--selected`]:x,[`${v}accordion-item--${u}`]:u,[`${v}accordion-item--${m}`]:m},r),...d,children:[(0,yt.jsx)("div",{className:L(`${v}outline`)}),(0,yt.jsx)(Fe,{isOpen:x,onToggle:T,children:t})]})})}),kn=vl;var Jn=require("react");var Vn=require("react"),it=require("react/jsx-runtime"),xl=(0,Vn.forwardRef)((e,o)=>(0,it.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-alert-triangle",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,it.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,it.jsx)("path",{d:"M12 9v4"}),(0,it.jsx)("path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z"}),(0,it.jsx)("path",{d:"M12 16h.01"})]})),Hr=xl;var Hn=require("react"),to=require("react/jsx-runtime"),Cl=(0,Hn.forwardRef)((e,o)=>(0,to.jsxs)("svg",{ref:o,stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,to.jsx)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,to.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})]})),re=Cl;var _n=require("react"),oo=require("react/jsx-runtime"),hl=(0,_n.forwardRef)((e,o)=>(0,oo.jsxs)("svg",{ref:o,stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,oo.jsx)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,oo.jsx)("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"})]})),ne=hl;var On=require("react"),Rt=require("react/jsx-runtime"),bl=(0,On.forwardRef)((e,o)=>(0,Rt.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-circle-check",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,Rt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,Rt.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,Rt.jsx)("path",{d:"M9 12l2 2l4 -4"})]})),_r=bl;var Fn=require("react"),gt=require("react/jsx-runtime"),Tl=(0,Fn.forwardRef)((e,o)=>(0,gt.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,gt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,gt.jsx)("path",{d:"M18 6l-12 12"}),(0,gt.jsx)("path",{d:"M6 6l12 12"})]})),q=Tl;var zn=require("react"),at=require("react/jsx-runtime"),yl=(0,zn.forwardRef)((e,o)=>(0,at.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-info-circle",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,at.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,at.jsx)("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),(0,at.jsx)("path",{d:"M12 9h.01"}),(0,at.jsx)("path",{d:"M11 12h1v4h1"})]})),Or=yl;var Bn=require("react"),ro=require("react/jsx-runtime"),Rl=(0,Bn.forwardRef)((e,o)=>(0,ro.jsxs)("svg",{ref:o,stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,ro.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,ro.jsx)("path",{d:"M12 3a9 9 0 1 0 9 9"})]})),Ie=Rl;var Gn=require("react"),St=require("react/jsx-runtime"),gl=(0,Gn.forwardRef)((e,o)=>(0,St.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-circle-x",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,St.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,St.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,St.jsx)("path",{d:"M10 10l4 4m0 -4l-4 4"})]})),Fr=gl;var Kn=require("react"),st=require("react/jsx-runtime"),Sl=(0,Kn.forwardRef)((e,o)=>(0,st.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-arrow-left",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,st.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,st.jsx)("path",{d:"M5 12l14 0"}),(0,st.jsx)("path",{d:"M5 12l6 6"}),(0,st.jsx)("path",{d:"M5 12l6 -6"})]})),zr=Sl;var Xn=require("react"),lt=require("react/jsx-runtime"),Ll=(0,Xn.forwardRef)((e,o)=>(0,lt.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-arrow-right",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,lt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,lt.jsx)("path",{d:"M5 12l14 0"}),(0,lt.jsx)("path",{d:"M13 18l6 -6"}),(0,lt.jsx)("path",{d:"M13 6l6 6"})]})),Br=Ll;var Un=require("react"),no=require("react/jsx-runtime"),Pl=(0,Un.forwardRef)((e,o)=>(0,no.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icons-tabler-outline icon-tabler-check",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,no.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,no.jsx)("path",{d:"M5 12l5 5l10 -10"})]})),Gr=Pl;var Wn=require("react"),io=require("react/jsx-runtime"),Ml=(0,Wn.forwardRef)((e,o)=>(0,io.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-circle",...e,children:[(0,io.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,io.jsx)("path",{d:"M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z"})]})),Kr=Ml;var qn=require("react"),Qn=require("react/jsx-runtime"),El=(0,qn.forwardRef)((e,o)=>(0,Qn.jsx)("svg",{ref:o,stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e})),Vo=El;var Yn=w(require("clsx")),Lt=require("react");var wl=(0,Lt.forwardRef)(({children:e,color:o="inherit",size:t},r)=>{let n=Lt.Children.only(e);return(0,Lt.cloneElement)(n,{ref:r,...n.props,className:(0,Yn.default)(`${f}icon`,{[`${f}icon--${o}`]:o,[`${f}icon--${t}`]:t},n.props.className)})}),E=wl;var N=require("react/jsx-runtime"),Il=(0,Jn.forwardRef)((e,o)=>{let{as:t="div",children:r,className:n,title:i,subtitle:a,startContent:l,endContent:d,bordered:c=!0,collapsible:p=!0,arrow:s,slotProps:u,...m}=e,C=f,{arrow:v}=ht(),x=ko(),{isOpen:T,onToggle:b}=Oe(),y={isVisible:s?.isVisible??v.isVisible,position:s?.position??v.position},g={cursor:"pointer"},h=S=>{S.stopPropagation(),b()},R=(0,N.jsxs)(t,{ref:o,className:L(`${C}accordion-header`,{[`${C}accordion-header--collapsible`]:p,[`${C}accordion-header--bordered`]:c},n),...m,children:[(0,N.jsx)("div",{className:`${C}surface`}),(l!==void 0||y.isVisible&&y.position==="start")&&(0,N.jsx)("div",{...u?.startContent,className:L(`${C}accordion-header__start-content`,u?.startContent?.className),children:y.isVisible&&y.position==="start"?(0,N.jsxs)(N.Fragment,{children:[!p&&s?.isVisible===void 0?(0,N.jsx)(E,{children:(0,N.jsx)(Vo,{})}):(0,N.jsx)(N.Fragment,{children:x.indicator!==void 0?x.indicator({isOpen:T}):(0,N.jsx)(E,{children:T?(0,N.jsx)(ne,{style:g,onClick:h}):(0,N.jsx)(re,{style:g,onClick:h})})}),l]}):l}),(0,N.jsx)("div",{...u?.content,className:L(`${C}accordion-header__content`,u?.content?.className),children:i!==void 0||a!==void 0?(0,N.jsxs)(N.Fragment,{children:[i!==void 0&&(0,N.jsx)("div",{...u?.title,className:L(`${C}accordion-header__title`,u?.title?.className),children:i}),a!==void 0&&(0,N.jsx)("div",{...u?.subtitle,className:L(`${C}accordion-header__subtitle`,u?.subtitle?.className),children:a})]}):r}),(d!==void 0||y.isVisible&&y.position==="end")&&(0,N.jsx)("div",{...u?.endContent,className:L(`${C}accordion-header__end-content`,u?.endContent?.className),children:y.isVisible&&y.position==="end"?(0,N.jsxs)(N.Fragment,{children:[d,!p&&s?.isVisible===void 0?(0,N.jsx)(E,{children:(0,N.jsx)(Vo,{})}):(0,N.jsx)(N.Fragment,{children:x.indicator!==void 0?x.indicator({isOpen:T}):(0,N.jsx)(E,{children:T?(0,N.jsx)(ne,{style:g,onClick:h}):(0,N.jsx)(re,{style:g,onClick:h})})})]}):d})]});return p?(0,N.jsx)(Te,{children:R}):R}),Zn=Il;var jn=require("react");var Pt=require("react/jsx-runtime"),Dl=(0,jn.forwardRef)(({children:e,className:o,...t},r)=>{let n=f;return(0,Pt.jsx)(be,{children:(0,Pt.jsx)("div",{ref:r,children:(0,Pt.jsxs)("div",{className:L(`${n}accordion-body`,o),...t,children:[(0,Pt.jsx)("div",{className:`${n}surface`}),e]})})})}),ei=Dl;var ti=require("react");var Ho=require("react/jsx-runtime"),Nl=(0,ti.forwardRef)(({children:e,className:o,...t},r)=>(0,Ho.jsx)(be,{children:(0,Ho.jsx)("div",{ref:r,children:(0,Ho.jsx)("div",{className:L(`${f}accordion-content`,o),...t,children:e})})})),oi=Nl;var ri=require("react"),ii=require("react/jsx-runtime"),Al=(0,ri.forwardRef)(({children:e},o)=>(0,ii.jsx)(Te,{ref:o,children:e})),ni=Al;var j=require("react");var Be=require("react");var si=require("react");var _o=require("react"),$l=typeof window<"u"?_o.useLayoutEffect:_o.useEffect,ai=$l;function kl(e){let o=(0,si.useRef)(e);ai(()=>{o.current=e},[e])}var Xr=kl;function li(e,o){let t=(0,Be.useCallback)(()=>{if(typeof window>"u")return o;try{let l=window.localStorage.getItem(e);return l?Vl(l):o}catch(l){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,l),o}},[o,e]),[r,n]=(0,Be.useState)(t),i=(0,Be.useCallback)(l=>{typeof window>"u"&&console.warn(`Tried setting localStorage key \u201C${e}\u201D even though environment is not a client`);try{let d=l instanceof Function?l(r):l;window.localStorage.setItem(e,JSON.stringify(d)),n(d),window.dispatchEvent(new Event("local-storage"))}catch(d){console.warn(`Error setting localStorage key \u201C${e}\u201D:`,d)}},[e,r]);(0,Be.useEffect)(()=>{n(t())},[]);let a=(0,Be.useCallback)(()=>{n(t())},[t]);return Xr("storage",a),Xr("local-storage",a),[r,i]}function Vl(e){try{return e==="undefined"?void 0:JSON.parse(e??"")}catch{return}}var Oo=require("react"),ci=e=>{let o=(0,Oo.useRef)();return(0,Oo.useEffect)(()=>{o.current=e}),o.current};var ui=require("react");function Hl({defaultValue:e}={}){let[o,t]=(0,ui.useState)(e||!1);return{isOpen:o,onOpen:()=>{t(!0)},onClose:()=>{t(!1)},onToggle:()=>{t(a=>!a)}}}var Ge=Hl;var pi=require("react"),di=["mousedown","touchstart"],_l=(e,o)=>{(0,pi.useEffect)(()=>{let t=r=>{!e.current||e.current.contains(r.target)||o(r)};return di.forEach(r=>document.addEventListener(r,t)),()=>{di.forEach(r=>document.removeEventListener(r,t))}},[e,o])},Fo=_l;var ye=require("react"),mi=e=>{let[o,t]=(0,ye.useState)(1),r=(0,ye.useMemo)(()=>o+1<=e,[o,e]),n=(0,ye.useMemo)(()=>o-1>=1,[o]),i=(0,ye.useCallback)(c=>{let p=c instanceof Function?c(o):c;if(p>=1&&p<=e){t(p);return}throw new Error("Step not valid")},[e,o]),a=(0,ye.useCallback)(()=>{r&&t(c=>c+1)},[r]),l=(0,ye.useCallback)(()=>{n&&t(c=>c-1)},[n]),d=(0,ye.useCallback)(()=>{t(1)},[]);return[o,{goToNextStep:a,goToPrevStep:l,canGoToNextStep:r,canGoToPrevStep:n,setStep:i,reset:d}]};var zo=require("react");function Ol(e,o){let[t,r]=(0,zo.useState)(e),n=typeof o=="number"?o:o?.delay??500;return(0,zo.useEffect)(()=>{let i=setTimeout(()=>{r(e),typeof o!="number"&&o?.callback?.()},n);return()=>{clearTimeout(i)}},[e,n]),t}var fi=Ol;var Bo=require("react");function Fl(e){let o=i=>typeof window<"u"?window.matchMedia(i).matches:!1,[t,r]=(0,Bo.useState)(o(e));function n(){r(o(e))}return(0,Bo.useEffect)(()=>{let i=window.matchMedia(e);return n(),i.addListener?i.addListener(n):i.addEventListener("change",n),()=>{i.removeListener?i.removeListener(n):i.removeEventListener("change",n)}},[e]),t}var vi=Fl;var xi=require("@tanstack/react-virtual"),Ci=require("react");function zl(e){let{parentRef:o,total:t,count:r=0,overscan:n=5,hasNextPage:i,isFetchingNextPage:a,onFetchNextPage:l,estimateSize:d}=e,c=(0,xi.useVirtualizer)({count:t||(i?r+1:r),getScrollElement:()=>o.current,estimateSize:d,overscan:n});return(0,Ci.useEffect)(()=>{if(!l)return;let[p]=[...c.getVirtualItems()].reverse();p&&p.index>=r-1&&i&&!a&&l?.()},[i,l,r,a,c.getVirtualItems()]),{scrollOffset:c.scrollOffset,hasNextPage:i,getVirtualItems:c.getVirtualItems,getTotalSize:c.getTotalSize,scrollToIndex:(p,s)=>{c.scrollToIndex(p,s)},scrollToOffset:(p,s)=>{c.scrollToOffset(p,s)}}}var Ke=zl;var Re=require("react");var Ur=(n=>(n[n.IDLE=0]="IDLE",n[n.LOADING=1]="LOADING",n[n.SUCCESS=2]="SUCCESS",n[n.ERROR=3]="ERROR",n))(Ur||{});var hi=e=>(o,t,r)=>{async function n(i,a){if(a.length===0)return i;let l=[];for(let c=0;c<a.length;c++){let p=a[c],s=p+1,u=await e.query({page:s}),m=e.onRefetchedPage(u,p);if(i.pages[p]=m.page,l.push(p),!m.isSync)break}let d=a.filter(c=>!l.includes(c));return n(i,d.length===0?[]:[...d,...r])}return n({...o},t)};function bi(e,o=[]){let[t,r]=(0,Re.useState)({pages:[]}),[n,i]=(0,Re.useState)(),[a,l]=(0,Re.useState)(e.disabled?0:1),[d,c]=(0,Re.useState)(!1),[p,s]=(0,Re.useState)(!1),[u,m]=(0,Re.useState)(!0),[C,v]=(0,Re.useState)(!1),x=async()=>{try{l(1),i(void 0),v(!0);let g=t.pages.length-1,h=e.getNextPage(t.pages[g],t.pages),R=await e.query({page:h}),S={pages:[...t.pages,R]};r(S);let P=S.pages.length-1,M=e.getNextPage(S.pages[P],S.pages);m(M!==void 0),v(!1),l(2),e.onSuccess?.(S)}catch(g){i(g),l(3),e.onError?.(g)}finally{v(!1)}},T=g=>{let h={pages:[]};t.pages.forEach((R,S)=>{let P=g(R,S);h[S]=P}),r(h)},b=async(g={})=>{try{l(1),i(void 0),s(!1);let h=[],R=[];g.refetchPage?t.pages.forEach((P,M)=>{g.refetchPage(P,M)?h.push(M):R.push(M)}):g.refetchPages?(h=g.refetchPages(t.pages),R=t.pages.map((P,M)=>M).filter(P=>!h.includes(P))):h=t.pages.map((P,M)=>M);let S;if(g.onRefetchedPage)S=await hi({query:e.query,onRefetchedPage:g.onRefetchedPage})(t,h,R);else{S={...t};for(let P=0;P<h.length;P++){let M=h[P],$=M+1,k=await e.query({page:$});S.pages[M]=k}}r(S),l(2),e.onSuccess?.(S)}catch(h){i(h),l(3),e.onError?.(h)}finally{s(!0)}},y=()=>{r({pages:[]}),i(void 0),l(0),c(!1),s(!1),m(!0),v(!0)};return(0,Re.useEffect)(()=>{if(e.disabled)return;(async()=>{try{l(1),i(void 0),v(!0);let R=await e.query({page:void 0}),S={pages:[R]};r(S);let P=e.getNextPage(R,[R]);m(P!==void 0),v(!1),l(2),e.onSuccess?.(S)}catch(h){i(h),l(3),e.onError?.(h)}finally{d||c(!0),v(!1)}})()},[...o,e.disabled]),{data:t,error:n,status:a,isLoading:a===1,isSuccess:a===2,isError:a===3,isFetching:a===1&&!d,isFetched:d,isRefetching:a===1&&d&&!p,isRefetched:p,hasNextPage:u,isFetchingNextPage:C,fetchNextPage:x,unstable_mutate:T,unstable_refetch:b,unstable_remove:y}}var xe=require("react");function Ti(e,o=[]){let[t,r]=(0,xe.useState)(),[n,i]=(0,xe.useState)(),[a,l]=(0,xe.useState)(e.disabled?0:1),d=(0,xe.useRef)(!1),c=(0,xe.useRef)(!1),[p,s]=(0,xe.useState)(d.current),[u,m]=(0,xe.useState)(c.current),C=async()=>{try{l(1),i(void 0),c.current=!1,m(c.current);let T=await e.query(),b=e.select!==void 0?e.select(T):T;r(b),l(2),e.onSuccess?.(b)}catch(T){i(T),l(3),e.onError?.(T)}finally{c.current=!0,m(c.current)}},v=T=>{r(T)},x=()=>{r(void 0),i(void 0),l(0),d.current=!1,c.current=!1,s(d.current),m(c.current)};return(0,xe.useEffect)(()=>{if(e.disabled)return;(async()=>{try{l(1),i(void 0);let b=await e.query(),y=e.select!==void 0?e.select(b):b;r(y),l(2),e.onSuccess?.(y)}catch(b){i(b),l(3),e.onError?.(b)}finally{d.current||(d.current=!0,s(d.current))}})()},[...o,e.disabled]),{data:t,error:n,status:a,isLoading:a===1,isSuccess:a===2,isError:a===3,isFetching:a===1&&!p,isFetched:p,isRefetching:a===1&&p&&!u,isRefetched:u,mutate:v,refetch:C,remove:x}}var Mt=require("react");var Wr=(n=>(n[n.IDlE=0]="IDlE",n[n.LOADING=1]="LOADING",n[n.SUCCESS=2]="SUCCESS",n[n.ERROR=3]="ERROR",n))(Wr||{});var yi=e=>{let[o,t]=(0,Mt.useState)(0),[r,n]=(0,Mt.useState)(),[i,a]=(0,Mt.useState)(),[l,d]=(0,Mt.useState)(!1),[c,p]=(0,Mt.useState)(!1);return{isLoading:l,isError:c,status:o,data:r,error:i,mutate:async u=>{try{d(!0),t(1);let m=await e.mutation(u);return n(m),t(2),{isError:()=>!1,isOK:()=>!0,data:m}}catch(m){return a(m.message),p(!0),t(3),{isError:()=>!0,isOK:()=>!1,error:m.message}}finally{d(!1)}}}};var Xe=require("react"),Bl={width:0,height:0};function Gl(e){let o=(0,Xe.useRef)(0),[t,r]=(0,Xe.useState)(Bl),n=(0,Xe.useMemo)(()=>typeof window<"u"?new ResizeObserver(i=>{let a=i[0];a&&(cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{(e.ref?.current??e.target)&&(e.callback?.(t),r({width:a.contentRect.width,height:a.contentRect.height}))}))}):null,[]);return(0,Xe.useEffect)(()=>{let i=e.ref?.current??e.target;return i&&n?.observe(i),()=>{n?.disconnect(),o.current&&cancelAnimationFrame(o.current)}},[e.ref?.current,e.target]),t}var Et=Gl;var Ri=require("react");function qr(){return typeof window.ResizeObserver<"u"}function Kl(e){let{ref:o,onResize:t}=e;(0,Ri.useEffect)(()=>{let r=o?.current;if(r)if(qr()){let n=new window.ResizeObserver(i=>{i.length&&t()});return n.observe(r),()=>{r&&n.unobserve(r)}}else return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[o,t])}var gi=Kl;var wt=require("react");function Xl(e){let o=(0,wt.useRef)(null);return(0,wt.useLayoutEffect)(()=>{o.current=e},[e]),(0,wt.useCallback)((...t)=>{let r=o.current;return r(...t)},[])}var ao=Xl;var It=require("react");function Ul(e){let[o,t]=(0,It.useState)(e),r=(0,It.useRef)(null),n=ao(()=>{if(!r.current)return;let a=r.current.next();if(a.done){r.current=null;return}o===a.value?n():t(a.value)});(0,It.useLayoutEffect)(()=>{r.current&&n()});let i=ao(a=>{r.current=a(o),n()});return[o,i]}var Si=Ul;var We=require("react");var Li=(i=>(i[i.XS=0]="XS",i[i.SM=1]="SM",i[i.MD=2]="MD",i[i.LG=3]="LG",i[i.XL=4]="XL",i[i["2XL"]=5]="2XL",i))(Li||{});var Qr={xs:0,sm:576,md:768,lg:992,xl:1200,"2xl":1400},Ue=[{key:"2xl",mq:5},{key:"xl",mq:4},{key:"lg",mq:3},{key:"md",mq:2},{key:"sm",mq:1},{key:"xs",mq:0}];function Yr(e){let o=e.ref,t={...Qr,...e.breakpoints},r=(0,We.useRef)(0),[n,i]=(0,We.useState)(),a=(0,We.useMemo)(()=>typeof window<"u"?new ResizeObserver(l=>{l[0]&&(cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(o.current){let c=o.current.clientWidth;c>=t["2xl"]?i(5):c>=t.xl?i(4):c>=t.lg?i(3):c>=t.md?i(2):c>=t.sm?i(1):i(0)}}))}):null,[]);return(0,We.useEffect)(()=>(o.current&&a?.observe(o.current),()=>{a?.disconnect(),r.current&&cancelAnimationFrame(r.current)}),[o.current]),n}var Pi=w(require("clsx")),Mi=require("react");var Go=require("react"),so=(0,Go.createContext)(null),Ko=()=>(0,Go.useContext)(so);var qe=require("react/jsx-runtime"),De=(0,Mi.forwardRef)(({as:e="button",children:o,className:t,style:r,variant:n,color:i,size:a,iconOnly:l,startContent:d,endContent:c,block:p,loading:s,disabled:u,type:m="button",cssVars:C,...v},x)=>{let T=Ko(),b=f,y=n||"filled",g=i||"primary",h=a||"md",R=u||!1;return y=n??T?.variant??y,g=i??T?.color??g,h=a??T?.size??h,R=s===!0?!0:u??T?.disabled??R,(0,qe.jsxs)(e,{ref:x,className:(0,Pi.default)(`${b}button`,{[`${b}button--${y}`]:y,[`${b}button--${g}`]:g,[`${b}button--${h}`]:h,[`${b}button--block`]:p,[`${b}button--icon-only`]:l,[`${b}button--disabled`]:R},t),disabled:R,type:m,style:{...r,[`--${b}primary-color`]:C?.color,[`--${b}button-font-size`]:C?.fontSize,[`--${b}button-font-weight`]:C?.fontWeight,[`--${b}button-font-style`]:C?.fontStyle},...v,children:[(0,qe.jsx)("div",{className:`${b}overlay`}),(0,qe.jsx)("div",{className:`${b}outline`}),s?(0,qe.jsx)(E,{children:(0,qe.jsx)(Ie,{className:`${b}animation-spin`})}):d,(!s||!l)&&(0,qe.jsx)("div",{className:`${b}button__content`,children:o}),c]})});var Ei=w(require("clsx")),wi=require("react");var Jr=require("react/jsx-runtime"),Ii=(0,wi.forwardRef)(({children:e,direction:o="row",variant:t="filled",color:r="primary",size:n="md",disabled:i,className:a,...l},d)=>{let c=f;return(0,Jr.jsx)(so.Provider,{value:{direction:o,variant:t,color:r,size:n,disabled:i},children:(0,Jr.jsx)("div",{ref:d,className:(0,Ei.default)(`${c}button-group`,{[`${c}button-group--${o}`]:o},a),...l,children:e})})});var Di=w(require("clsx")),Ni=require("react");var Qe=require("react/jsx-runtime"),Wl=(0,Ni.forwardRef)(({as:e="div",children:o,className:t,style:r,variant:n="filled",color:i="primary",size:a="md",startContent:l,endContent:d,closable:c,disabled:p,cssVars:s,onClose:u,...m},C)=>{let v=f,x=T=>{T.stopPropagation(),c&&u?.()};return(0,Qe.jsxs)(e,{ref:C,className:(0,Di.default)(`${v}chip`,{[`${v}chip--${n}`]:n,[`${v}chip--${i}`]:i,[`${v}chip--${a}`]:a,[`${v}chip--disabled`]:p,[`${v}chip--closable`]:c},t),style:{...r,[`--${v}primary-color`]:s?.color,[`--${v}chip-font-size`]:s?.fontSize,[`--${v}chip-font-weight`]:s?.fontWeight,[`--${v}chip-font-style`]:s?.fontStyle},...m,children:[(0,Qe.jsx)("div",{className:`${v}overlay`}),(0,Qe.jsx)("div",{className:`${v}outline`}),l,o,d,c&&(0,Qe.jsx)("div",{className:`${v}chip__closable`,onClick:x,children:(0,Qe.jsx)(E,{children:(0,Qe.jsx)(q,{})})})]})}),Dt=Wl;var le=require("react");var Ai=require("react"),$i=require("react-dom");var ki=require("react/jsx-runtime"),ql=(0,Ai.forwardRef)(({children:e,container:o},t)=>(0,$i.createPortal)((0,ki.jsx)("div",{ref:t,className:`${f}portal`,children:e}),o||document.body)),Nt=ql;var Vi=w(require("clsx")),Hi=require("react"),_i=require("react-transition-group"),Oi=require("react/jsx-runtime"),Ql=(0,Hi.forwardRef)((e,o)=>{let{children:t,className:r,nodeRef:n,name:i,isOpen:a,enter:l=0,leave:d=0,mountOnEnter:c,unmountOnExit:p,onExited:s}=e;return(0,Oi.jsx)(_i.CSSTransition,{nodeRef:n,in:a,appear:!0,timeout:{enter:l,exit:d},mountOnEnter:c,unmountOnExit:p,classNames:(0,Vi.default)(i,r),onExited:s,children:t})}),ge=Ql;var Xo=require("react"),Fi=(0,Xo.createContext)(null),Z=()=>{let e=(0,Xo.useContext)(Fi);if(!e)throw new Error("`usePopover` must be used within a `<Popover />`");return e},zi=Fi;var lo=require("react/jsx-runtime"),Yl=e=>{let{children:o,target:t,autoClose:r=!0,triggerClosable:n=!0,isOpen:i,onOpen:a,onClose:l,onToggle:d,onAfterClose:c}=e,p=(0,le.useRef)(null),s=(0,le.useRef)(null),[u,m]=(0,le.useState)(e.isOpen||!1),[C,v]=le.Children.toArray(o),x=f,T=()=>{i!==void 0?a?.():m(!0)},b=()=>{i!==void 0?l?.():m(!1)},y=()=>{i!==void 0?d?.():m(g=>!g)};return(0,le.useEffect)(()=>{m(i||!1)},[i]),(0,lo.jsxs)(zi.Provider,{value:{triggerRef:p,contentRef:s,target:t,isOpen:u,autoClose:r,triggerClosable:n,onOpen:T,onClose:b,onToggle:y},children:[C,(0,lo.jsx)(ge,{nodeRef:s,isOpen:u,enter:300,leave:150,name:`${x}popover`,unmountOnExit:!0,onExited:c,children:(0,lo.jsx)(Nt,{children:(0,le.cloneElement)(le.Children.only(v),{...v.props,ref:s})})})]})},At=Yl;var Se=require("react");var Gi=require("react/jsx-runtime");function Bi(e){return e==null?null:e.scrollHeight>e.clientHeight?e:Bi(e.parentNode)}var Jl=(0,Se.forwardRef)((e,o)=>{let{children:t,style:r,className:n,onClick:i,...a}=e,{triggerRef:l,contentRef:d,target:c,onClose:p}=Z(),s=f,u=(0,Se.useRef)(null),[m,C]=(0,Se.useState)({position:"absolute",top:0,left:0,visibility:"hidden"}),v=Bi(l.current)||document.body;Et({target:v,callback:()=>{T()}}),Fo(d,b=>{let y=l.current;!y||y.contains(b.target)||p()});let x=b=>{b.stopPropagation(),i?.(b)},T=(0,Se.useCallback)(()=>{let b=d.current?.getBoundingClientRect(),y=l.current?.getBoundingClientRect();if(!b||!y||!v)return;let g={innerWidth:window.innerWidth,innerHeight:window.innerHeight},h={width:y.width,height:y.height,top:y.top+window.scrollY,bottom:y.top+y.height+window.scrollY,left:y.left+window.scrollX,right:y.left+y.width+window.scrollX},R=h.left+b.width>g.innerWidth,S=h.top+b.height>g.innerHeight+window.scrollY,P={...c&&{width:h.width,minWidth:"auto"},position:"absolute",top:S?void 0:h.bottom,bottom:S?g.innerHeight-h.top:void 0,left:R?void 0:h.left,right:R?g.innerWidth-h.right:void 0,visibility:void 0};C(P)},[]);return(0,Se.useEffect)(()=>(T(),v.addEventListener("scroll",T),window.addEventListener("orientationchange",T),()=>{v.removeEventListener("scroll",T),window.removeEventListener("orientationchange",T)}),[]),(0,Gi.jsx)("div",{ref:J(u,o),className:L(`${s}popover`,n),style:{...r,...m},onClick:x,...a,children:t})}),$t=Jl;var kt=require("react");var Zl=(0,kt.forwardRef)((e,o)=>{let{children:t,onClick:r,...n}=e,{isOpen:i,triggerRef:a,triggerClosable:l,onOpen:d,onClose:c}=Z(),p=kt.Children.only(typeof t=="function"?t(i):t),s=u=>{u.preventDefault(),l&&i?c():d(),r?.(u),p.props.onClick?.(u)};return(0,kt.cloneElement)(p,{...p.props,...n,ref:J(o,a),onClick:s})}),Vt=Zl;var K=require("react/jsx-runtime"),jl=({className:e,title:o,subtitle:t,icon:r,status:n,extra:i,size:a="md",...l})=>{let d=f;return(0,K.jsxs)("div",{className:L(`${d}result`,{[`${d}result--${n}`]:n,[`${d}result--${a}`]:a},e),...l,children:[r?(0,K.jsx)("div",{className:`${d}result__icon`,children:r}):n?(0,K.jsx)("div",{className:`${d}result__icon`,children:n==="sucess"?(0,K.jsx)(E,{children:(0,K.jsx)(_r,{})}):n==="info"?(0,K.jsx)(E,{children:(0,K.jsx)(Or,{})}):n==="warning"?(0,K.jsx)(E,{children:(0,K.jsx)(Hr,{})}):n==="danger"?(0,K.jsx)(E,{children:(0,K.jsx)(Fr,{})}):null}):null,(o||t)&&(0,K.jsxs)("div",{className:`${d}result__content`,children:[o&&(0,K.jsx)("div",{className:`${d}result__title`,children:o}),t&&(0,K.jsx)("div",{className:`${d}result__subtitle`,children:t})]}),i&&(0,K.jsx)("div",{className:`${d}result__extra`,children:i})]})},Ne=jl;var Ht=require("react");var Ki=require("react");var Xi=require("react/jsx-runtime"),ec=(0,Ki.forwardRef)(({as:e="div",children:o,className:t,size:r="md",...n},i)=>{let a=f;return(0,Xi.jsx)(e,{ref:i,className:L(`${a}list`,{[`${a}list--${r}`]:r},t),...n,children:o})}),U=ec;var Wi=require("react");var Ui=require("react");var ce=require("react/jsx-runtime"),tc=(0,Ui.forwardRef)(({as:e="div",children:o,className:t,title:r,subtitle:n,startContent:i,endContent:a,level:l=1,hoverable:d,selected:c,disabled:p,slotProps:s,style:u,onClick:m,...C},v)=>{let x=f,T=b=>{m?.(b)};return(0,ce.jsxs)(e,{ref:v,className:L(`${x}list-item`,{[`${x}list-item--hoverable`]:d,[`${x}list-item--selected`]:c,[`${x}list-item--disabled`]:p},t),style:{paddingLeft:l<=1?`var(--${x}list-item-padding-x)`:`calc(${l} * var(--${x}list-item-padding-level))`,...u},onClick:T,...C,children:[(d||c)&&(0,ce.jsx)("div",{className:`${x}overlay`}),i!==void 0&&(0,ce.jsx)("div",{...s?.startContent,className:L(`${x}list-item__start-content`,s?.startContent?.className),children:i}),(0,ce.jsx)("div",{...s?.content,className:L(`${x}list-item__content`,s?.content?.className),children:r!==void 0||n!==void 0?(0,ce.jsxs)(ce.Fragment,{children:[r!==void 0&&(0,ce.jsx)("span",{...s?.title,className:L(`${x}list-item__title`,s?.title?.className),children:r}),n!==void 0&&(0,ce.jsx)("span",{...s?.subtitle,className:L(`${x}list-item__subtitle`,s?.subtitle?.className),children:n})]}):o}),a!==void 0&&(0,ce.jsx)("div",{...s?.endContent,className:L(`${x}list-item__end-content`,s?.endContent?.className),children:a})]})}),H=tc;var O=require("react/jsx-runtime"),oc=(0,Wi.forwardRef)(({children:e,startContent:o,endContent:t,expandVisible:r=!0,expandPosition:n="end",isOpen:i,onOpen:a,onClose:l,onToggle:d,...c},p)=>{let s=i!==void 0?{isOpen:i,onOpen:a,onClose:l,onToggle:d}:Ge();return(0,O.jsx)("div",{className:`${f}list-group`,children:(0,O.jsxs)(Fe,{...s,children:[(0,O.jsx)(Te,{children:(0,O.jsx)(H,{ref:p,startContent:r&&n==="start"?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(E,{children:s.isOpen?(0,O.jsx)(ne,{}):(0,O.jsx)(re,{})}),o]}):o,endContent:r&&n==="end"?(0,O.jsxs)(O.Fragment,{children:[t,(0,O.jsx)(E,{children:s.isOpen?(0,O.jsx)(ne,{}):(0,O.jsx)(re,{})})]}):t,...c})}),(0,O.jsx)(be,{children:(0,O.jsx)("div",{children:(0,O.jsx)(U,{children:e})})})]})})}),qi=oc;var Qi=require("react");var Ye=require("react/jsx-runtime"),rc=(0,Qi.forwardRef)(({as:e="div",title:o,startContent:t,endContent:r,bordered:n=!0,level:i=1,hoverable:a,selected:l,disabled:d,className:c,style:p,...s},u)=>{let m=f;return(0,Ye.jsxs)(e,{ref:u,className:L(`${m}list-subheader ${m}list-item`,{[`${m}list-subheader--bordered`]:n,[`${m}list-item--hoverable`]:a,[`${m}list-item--selected`]:l,[`${m}list-item--disabled`]:d},c),style:{paddingLeft:i<=1?`var(--${m}list-item-padding-x)`:`calc(${i} * var(--${m}list-item-padding-level))`,...p},...s,children:[a&&(0,Ye.jsx)("div",{className:`${m}overlay`}),t&&(0,Ye.jsx)("div",{className:`${m}list-item__start-content`,children:t}),(0,Ye.jsx)("div",{className:`${m}list-item__content`,children:(0,Ye.jsx)("span",{className:`${m}list-item__title`,children:o})}),r&&(0,Ye.jsx)("div",{className:`${m}list-item__end-content`,children:r})]})}),Yi=rc;var Ji=require("react"),Zi=require("react-custom-scrollbars-2");var ct=require("react/jsx-runtime"),nc=(0,Ji.forwardRef)(({children:e,autoHide:o=!1,autoHeight:t=!1,style:r},n)=>{let i=f,a=s=>(0,ct.jsx)("div",{...s,className:L(`${i}scroll-area__view`,s.className)}),l=s=>(0,ct.jsx)("div",{...s,className:L(`${i}scroll-area__track ${i}scroll-area__track--horizontal`,s.className),onClick:u=>{u.stopPropagation(),s.onClick?.(u)}}),d=s=>(0,ct.jsx)("div",{...s,className:L(`${i}scroll-area__track ${i}scroll-area__track--vertical`,s.className),onClick:u=>{u.stopPropagation(),s.onClick?.(u)}}),c=s=>(0,ct.jsx)("div",{...s,className:L(`${i}scroll-area__thumb ${i}scroll-area__thumb--horizontal`,s.className)}),p=s=>(0,ct.jsx)("div",{...s,className:L(`${i}scroll-area__thumb ${i}scroll-area__thumb--vertical`,s.className)});return(0,ct.jsx)(Zi.Scrollbars,{autoHide:o,className:`${i}scroll-area`,renderTrackHorizontal:l,renderTrackVertical:d,renderThumbHorizontal:c,renderThumbVertical:p,renderView:a,autoHeight:t,style:r,ref:s=>{s&&Zt(n,s.container.firstElementChild)},children:e})}),z=nc;var Uo=require("react"),ji=(0,Uo.createContext)(null),Wo=()=>{let e=(0,Uo.useContext)(ji);if(!e)throw new Error("`useAutocomplete` must be used within a `<Autocomplete />`");return e},ea=ji;var co=require("react/jsx-runtime"),ic=()=>{let{data:e,values:o,offset:t,setOffset:r,keyField:n,textField:i,onItemSelect:a,renderItem:l}=Wo(),d=(0,Ht.useRef)(null),{isOpen:c}=Z(),p=s=>{a(s),r(d.current?.scrollHeight||0)};return(0,Ht.useEffect)(()=>{c&&d.current?.scrollTo({top:t})},[c]),(0,co.jsx)(z,{ref:d,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,co.jsx)(U,{children:l?e.map(s=>(0,co.jsx)(Ht.Fragment,{children:l(s,{title:void 0,selected:o.includes(s[n]),hoverable:!0,onClick:()=>p(s)})},s[n])):e.map(s=>(0,co.jsx)(H,{title:s[i],selected:o.includes(s[n]),hoverable:!0,onClick:()=>p(s)},s[n]))})})},ta=ic;var _t=require("react");var Zr=e=>Array.isArray(e)?e:e!==null?[e]:[],uo=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var Je=require("react/jsx-runtime"),ac=()=>{let{data:e,values:o,keyField:t,textField:r,virtual:n,onItemSelect:i,renderItem:a}=Wo(),l=(0,_t.useRef)(null),d=Ke({...n,count:e.length,parentRef:l}),{isOpen:c}=Z(),p=s=>{i(s)};return(0,_t.useEffect)(()=>{if(!c)return;let s=uo(o),u=e.findIndex(m=>m[t]===s);u!==-1&&d.scrollToIndex(u,{align:"start"})},[c]),n?(0,Je.jsx)(z,{ref:l,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Je.jsx)(U,{children:(0,Je.jsx)("div",{style:{height:`${d.getTotalSize()}px`,width:"100%",position:"relative"},children:d.getVirtualItems().map(s=>{let u=s.index>e.length-1,m=e[s.index];return u?(0,Je.jsx)(H,{title:n.hasNextPage?"Loading...":"Nothing more to load",style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`}},s.index):m?a?(0,Je.jsx)(_t.Fragment,{children:a(m,{title:void 0,selected:o.includes(m[t]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`},onClick:()=>p(m)})},s.index):(0,Je.jsx)(H,{title:m[r],selected:o.includes(m[t]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`},onClick:()=>p(m)},s.index):(0,Je.jsx)(H,{title:`Item ${s.index} not found`,style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`}},s.index)})})})}):null},oa=ac;var I=require("react/jsx-runtime"),sc=e=>{let{data:o,value:t,keyField:r="key",textField:n="text",isMultiple:i=!1,disabled:a,loading:l,clearable:d=!0,disclosure:c,virtual:p,placeholder:s,className:u,style:m,color:C="inherit",variant:v="outlined",size:x="md",startContent:T,endContent:b,onFilterChange:y,renderItem:g,renderNoData:h}=e,R=c!==void 0?c:Ge(),S=f,P=(0,j.useRef)(null),[M,$]=(0,j.useState)(""),[k,B]=(0,j.useState)(""),[pe,G]=(0,j.useState)(!1),[Y,se]=(0,j.useState)(!1),W=(0,j.useMemo)(()=>Zr(t),[t]),me=(0,j.useMemo)(()=>o.filter(A=>W.includes(A[r])),[o,W]),[Jt,Er]=(0,j.useState)(0),Mo=()=>{P?.current?.focus()},Ct=A=>{if(e.isMultiple){let ve=o.filter(Ee=>A.includes(Ee[r]));e.onChange?.(ve),e.onValueChange?.(A)}else{let ve=uo(A),Ee=null;ve!==void 0&&(Ee=o.find(Eo=>Eo[r]===ve)??null),e.onChange?.(Ee),e.onValueChange?.(ve)}},wr=A=>{A.stopPropagation(),G(!0),B(""),e.isMultiple?(e.onChange?.([]),e.onValueChange?.([])):(e.onChange?.(null),e.onValueChange?.(null)),G(!1)},V=A=>{!R.isOpen&&R.onOpen(),G(!0),B(A.target.value),y?.(A.target.value)},oe=()=>{if(e.isMultiple){let A=[...W].slice(0,-1);Ct(A)}},fe=A=>{e.isMultiple&&A.key==="Backspace"&&k===""&&oe()},nt=A=>{let ve=A[r];if(e.isMultiple){let Ee=[...W],Eo=W.indexOf(ve);Eo===-1?Ee.push(ve):Ee.splice(Eo,1),Ct(Ee)}else uo(W)!==ve&&Ct([ve]);pe&&$(k),G(!1),P.current?.focus(),e.isMultiple||R.onClose()},el=()=>{R.onOpen(),se(!0)},tl=()=>{if(R.onClose(),!e.isMultiple&&pe){let A=me[0];A!==void 0?(B(A[n]),y?.(M)):(B(""),y?.(M)),G(!1)}};return(0,j.useEffect)(()=>{if(!pe&&!e.isMultiple){let A=me[0];A!==void 0&&B(A[n])}},[me]),(0,j.useEffect)(()=>{Zr(t)[0]===void 0&&(B(""),y?.(""))},[t]),(0,I.jsx)(ea.Provider,{value:{data:o,values:W,keyField:r,textField:n,isMultiple:i,virtual:p,onChange:Ct,onItemSelect:nt,offset:Jt,setOffset:Er,renderItem:g},children:(0,I.jsxs)(At,{target:!0,...R,isOpen:R.isOpen,onOpen:el,onClose:tl,autoClose:"outside",children:[(0,I.jsx)(Vt,{children:(0,I.jsxs)("div",{className:L(`${S}input ${S}input--filterable`,{[`${S}input--${C}`]:C,[`${S}input--${v}`]:v,[`${S}input--${x}`]:x,[`${S}input--focus`]:Y,[`${S}input--disabled`]:a,[`${S}input--clearable`]:d},u),style:m,onClick:Mo,onFocus:()=>{se(!0)},onBlur:()=>{se(!1)},children:[(0,I.jsx)("div",{className:`${S}overlay`}),(0,I.jsx)("div",{className:`${S}outline`}),T&&(0,I.jsx)("div",{className:`${S}input__start-content`,children:T}),(0,I.jsx)("div",{className:`${S}input__content`,children:i&&me.length?(0,I.jsxs)("div",{className:`${S}input__chips`,children:[me.map(A=>(0,I.jsx)(Dt,{variant:"flat",color:"secondary",size:"xs",closable:!0,onClose:()=>nt(A),children:A[n]},A[r])),(0,I.jsx)("input",{ref:P,value:k,placeholder:s,disabled:a,title:k,onChange:V,onKeyDown:fe})]}):(0,I.jsx)("input",{ref:P,className:`${S}input__field`,value:k,placeholder:s,disabled:a,title:k,onChange:V})}),(0,I.jsxs)("div",{className:`${S}input__end-content`,children:[b,l?(0,I.jsx)(E,{children:(0,I.jsx)(Ie,{className:`${S}animation-spin`})}):d?(0,I.jsx)("div",{className:`${S}input__clearable`,children:(0,I.jsx)(De,{type:"button",variant:"text",color:"secondary",size:"xs",iconOnly:!0,onClick:wr,children:(0,I.jsx)(E,{children:(0,I.jsx)(q,{})})})}):null,(0,I.jsx)("div",{style:{pointerEvents:"none"},children:(0,I.jsx)(E,{color:"secondary",children:R.isOpen?(0,I.jsx)(ne,{}):(0,I.jsx)(re,{})})})]})]})}),(0,I.jsx)($t,{style:{maxHeight:"200px"},children:o.length===0?(0,I.jsx)(I.Fragment,{children:h?h({status:"info",title:"No data",size:"sm",onClick:()=>{R.onClose()}}):(0,I.jsx)(Ne,{status:"info",title:"No data",size:"sm",onClick:R.onClose})}):p?(0,I.jsx)(oa,{}):(0,I.jsx)(ta,{})})]})})},ra=sc;var na=w(require("clsx")),ut=require("react");var po=require("react/jsx-runtime"),lc=(0,ut.forwardRef)((e,o)=>{let{children:t,className:r,isOpen:n,placement:i="center",variant:a="opaque",closable:l=!0,scrollable:d=!1,scrollArea:c=!1,onClose:p,...s}=e,u=f,m=(0,ut.useRef)(null),C=()=>{l&&p()};return(0,ut.useEffect)(()=>(n&&(document.body.style.overflow="hidden",m.current&&(m.current.style.overflow="")),()=>{m.current&&(m.current.style.overflow="hidden"),document.body.style.overflow=""}),[n]),(0,ut.useEffect)(()=>{let v=x=>{if(x.key==="Escape"){if(!l)return;p()}};return document.addEventListener("keydown",v),()=>{document.removeEventListener("keydown",v)}},[l]),(0,po.jsx)(ge,{nodeRef:m,isOpen:n,name:`${f}backdrop`,enter:300,leave:300,mountOnEnter:!0,unmountOnExit:!0,children:(0,po.jsx)(Nt,{children:(0,po.jsx)("div",{ref:J(o,m),className:(0,na.default)(`${u}backdrop`,{[`${u}backdrop--${i}`]:i,[`${u}backdrop--${a}`]:a,[`${u}backdrop--scrollable`]:d},r),onClick:C,...s,children:c?(0,po.jsx)(z,{autoHide:!0,children:t}):t})})})}),Ot=lc;var qo=w(require("clsx"));var mo=require("react/jsx-runtime"),cc=({children:e,className:o,color:t="primary",placement:r="top-right",content:n,unstyled:i=!1,slotProps:a})=>{let l=(0,mo.jsxs)("div",{className:(0,qo.default)(`${f}badge`,{[`${f}badge--${r}`]:r,[`${f}badge--${t}`]:t,[`${f}badge--unstyled`]:i},o),children:[(0,mo.jsx)("div",{className:(0,qo.default)(`${f}overlay`)}),n]});return e?(0,mo.jsxs)("div",{...a?.wrapper,className:(0,qo.default)(`${f}badge-wrapper`,a?.wrapper?.className),children:[e,l]}):l},ia=cc;var Ft=require("react");var aa=require("react");var Qo=require("react"),jr=(0,Qo.createContext)(null),Yo=()=>{let e=(0,Qo.useContext)(jr);if(!e)throw new Error("`useDataList` must be used within a `<DataList />`");return e};var fo=require("react/jsx-runtime"),sa=()=>{let{refs:e,data:o,values:t,setOffset:r,keyField:n,textField:i,onItemSelect:a,renderItem:l}=Yo(),d=e.parent,c=p=>{a(p),r(d.current?.scrollHeight||0)};return(0,fo.jsx)(z,{ref:d,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,fo.jsx)(U,{children:l?o.map(p=>(0,fo.jsx)(aa.Fragment,{children:l(p,{title:"",selected:t.includes(p[n]),hoverable:!0,onClick:()=>c(p)})},p[n])):o.map(p=>(0,fo.jsx)(H,{title:p[i],selected:t.includes(p[n]),hoverable:!0,onClick:()=>c(p)},p[n]))})})};var la=require("react");var Ze=require("react/jsx-runtime"),ca=()=>{let{refs:e,data:o,values:t,keyField:r,textField:n,virtual:i,virtualizer:a,onItemSelect:l,renderItem:d}=Yo(),c=e.parent,p=a||Ke({...i,count:o.length,parentRef:c}),s=u=>{l?.(u)};return(0,Ze.jsx)(z,{ref:c,autoHide:!0,style:{width:"100%",height:"100%",position:"relative",maxHeight:"100%"},children:(0,Ze.jsx)(U,{children:(0,Ze.jsx)("div",{style:{height:`${p.getTotalSize()}px`,width:"100%",position:"relative"},children:p.getVirtualItems().map(u=>{let m=u.index>o.length-1,C=o[u.index];return m?(0,Ze.jsx)(H,{title:p.hasNextPage?"Loading...":"Nothing more to load",style:{position:"absolute",top:0,left:0,width:"100%",height:`${u.size}px`,transform:`translateY(${u.start}px)`}},u.index):C?d?(0,Ze.jsx)(la.Fragment,{children:d(C,{title:"",selected:t.includes(C[r]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${u.size}px`,transform:`translateY(${u.start}px)`},onClick:()=>s(C)})},u.index):(0,Ze.jsx)(H,{title:C[n],selected:t.includes(C[r]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${u.size}px`,transform:`translateY(${u.start}px)`},onClick:()=>s(C)},u.index):(0,Ze.jsx)(H,{title:`Item ${u.index} not found`,style:{position:"absolute",top:0,left:0,width:"100%",height:`${u.size}px`,transform:`translateY(${u.start}px)`}},u.index)})})})})};var ua=e=>Array.isArray(e)?e:e!==null?[e]:[],en=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var ee=require("react/jsx-runtime"),da=e=>{let{className:o,data:t,value:r,keyField:n="key",textField:i="text",isMultiple:a=!1,loading:l,mounted:d,virtual:c,virtualizer:p,refs:s,renderItem:u,renderNoData:m,onItemSelect:C}=e,v=f,T={parent:s?.parent?s.parent:(0,Ft.useRef)(null)},b=(0,Ft.useMemo)(()=>ua(r),[r]),[y,g]=(0,Ft.useState)(0),h=S=>{if(e.isMultiple){let P=t.filter(M=>S.includes(M[n]));e.onChange?.(P),e.onValueChange?.(S)}else{let P=en(S),M=null;P!==void 0&&(M=t.find($=>$[n]===P)??null),e.onChange?.(M),e.onValueChange?.(P)}},R=S=>{let P=S[n];if(e.isMultiple){let M=[...b],$=b.indexOf(P);$===-1?M.push(P):M.splice($,1),h(M)}else en(b)!==P&&h([P]);C?.(S)};return(0,ee.jsx)(ee.Fragment,{children:(0,ee.jsx)(jr.Provider,{value:{data:t,values:b,keyField:n,textField:i,isMultiple:a,virtualizer:p,virtual:c,refs:T,onChange:h,onItemSelect:R,offset:y,setOffset:g,renderItem:u},children:(0,ee.jsx)("div",{className:L(`${v}data-list`,o),children:l&&!d?(0,ee.jsx)(Ne,{status:"info",title:"Loading...",icon:(0,ee.jsx)(E,{children:(0,ee.jsx)(Ie,{className:"us-animation-spin"})})}):t.length===0?(0,ee.jsx)(ee.Fragment,{children:m?m({status:"info",title:"No data",size:"sm"}):(0,ee.jsx)(Ne,{status:"info",title:"No data",size:"sm"})}):c?(0,ee.jsx)(ca,{}):(0,ee.jsx)(sa,{})})})})};var fa=require("react");var pa={rounded:"rounded",shadow:"shadow",transitionDuration:"transition",transitionProperty:"transition"};var ma=(e,o,t,r)=>{let n=e?r?`${r}:${e}`:e:r?`${r}:`:"";return o?`${n}${o}-${t}`:`${n}${t}`},uc=(e,o,t)=>{let r=[];if(typeof o=="object"){let n=Object.keys(o);for(let i of n){let a=o[i];a!==void 0&&r.push(ma(e,t,a,i))}}else r.push(ma(e,t,o));return r.join(" ")},Ae=(e,o)=>Object.keys(e).map(r=>{let n=e[r];return n!==void 0?uc(o,n,pa[r]):""});var Jo=require("react"),tn=(0,Jo.createContext)(null),Zo=()=>(0,Jo.useContext)(tn);var dt=require("react/jsx-runtime"),dc=(0,fa.forwardRef)(({as:e="div",children:o,className:t,size:r="md",hoverable:n,selected:i,disabled:a,bordered:l=!0,underlined:d=!0,css:c,...p},s)=>{let u=f;return(0,dt.jsx)(tn.Provider,{value:{underlined:d},children:(0,dt.jsxs)(e,{ref:s,className:L(`${u}card`,{[`${u}card--${r}`]:r,[`${u}card--hoverable`]:n,[`${u}card--selected`]:i,[`${u}card--disabled`]:a,[`${u}card--bordered`]:l},c!==void 0?Ae(c,u):[],t),...p,children:[(0,dt.jsx)("div",{className:`${u}surface`}),(n||i)&&(0,dt.jsx)("div",{className:`${u}overlay`}),(0,dt.jsx)("div",{className:`${u}card__content`,children:o})]})})}),va=dc;var xa=require("react");var ha=require("react/jsx-runtime"),pc=(0,xa.forwardRef)(({children:e,className:o,...t},r)=>(0,ha.jsx)("div",{ref:r,className:L(`${f}card-body`,o),...t,children:e})),Ca=pc;var ga=require("react");var ba=require("react");var Ta=require("react/jsx-runtime"),jo=(0,ba.forwardRef)(({as:e="div",children:o,className:t,css:r,...n},i)=>{let a=f;return(0,Ta.jsx)(e,{ref:i,className:L(`${a}card-subtitle`,r!==void 0?Ae(r,a):[],t),...n,children:o})});var ya=require("react");var Ra=require("react/jsx-runtime"),er=(0,ya.forwardRef)(({as:e="div",children:o,className:t,centered:r,css:n,...i},a)=>{let l=f;return(0,Ra.jsx)(e,{ref:a,className:L(`${l}card-title`,{[`${l}card-title--centered`]:r},n!==void 0?Ae(n,l):[],t),...i,children:o})});var Ce=require("react/jsx-runtime"),mc=(0,ga.forwardRef)(({as:e="div",children:o,className:t,title:r,subtitle:n,startContent:i,endContent:a,underlined:l,bordered:d,centered:c,slotProps:p,...s},u)=>{let m=f,C=Zo(),v=d??l??C?.underlined,{layout:x,gap:T,...b}=p?.content??{};return(0,Ce.jsxs)(e,{ref:u,className:L(`${m}card-header`,{[`${m}card-header--underlined`]:v,[`${m}card-header--centered`]:c},t),...s,children:[i!==void 0&&(0,Ce.jsx)("div",{...p?.startContent,className:L(`${m}card-header__start-content`,p?.startContent?.className),children:i}),(0,Ce.jsx)("div",{...b,className:L(`${m}card-header__content`,{[`${m}card-header__content--${x}`]:x,[`${m}card-header__content--gap`]:T},b.className),children:r!==void 0||n!==void 0?(0,Ce.jsxs)(Ce.Fragment,{children:[r!==void 0&&(0,Ce.jsx)(er,{...p?.title,children:r}),n!==void 0&&(0,Ce.jsx)(jo,{...p?.title,children:n})]}):o}),a!==void 0&&(0,Ce.jsx)("div",{...p?.endContent,className:L(`${m}card-header__end-content`,p?.endContent?.className),children:a})]})}),Sa=mc;var La=w(require("clsx")),Pa=require("react");var Ea=require("react/jsx-runtime"),Ma=(0,Pa.forwardRef)((e,o)=>{let{as:t="div",children:r,className:n,underlined:i,bordered:a,...l}=e,d=f,c=Zo(),p=a??i??c?.underlined;return(0,Ea.jsx)(t,{...l,ref:o,className:(0,La.default)(`${d}card-footer`,{[`${d}card-footer--underlined`]:p},n),children:r})});var wa=require("react");var vo=require("react/jsx-runtime"),Ia=(0,wa.forwardRef)(({children:e,className:o,topLeftContent:t,topRightContent:r,...n},i)=>{let a=f;return(0,vo.jsxs)("div",{ref:i,className:L(`${a}card-media`,o),...n,children:[(0,vo.jsx)("div",{className:L(`${a}card-media__top-left-content`),children:t}),(0,vo.jsx)("div",{className:L(`${a}card-media__top-right-content`),children:r}),e]})});var Da=w(require("clsx")),rr=require("react");var tr=require("react"),xo=(0,tr.createContext)(null),or=()=>{let e=(0,tr.useContext)(xo);if(!e)throw new Error("`useDrawer` must be used within a `<Drawer />`");return e};var Co=require("react/jsx-runtime"),fc=(0,rr.forwardRef)((e,o)=>{let{children:t,className:r,style:n,isOpen:i,size:a="sm",position:l,placement:d,backdrop:c="opaque",closable:p=!0,vars:s,onClose:u,onAfterClose:m,onClick:C,...v}=e,x=f,T=l??d??"left",b=(0,rr.useRef)(null),y=()=>{u()},g=()=>{m?.()};return(0,Co.jsx)(xo.Provider,{value:{isOpen:i,onClose:y},children:(0,Co.jsx)(Ot,{isOpen:i,closable:p,variant:c,placement:T,onClose:y,children:(0,Co.jsx)(ge,{nodeRef:b,isOpen:i,name:`${f}drawer`,enter:600,leave:300,unmountOnExit:!0,onExited:g,children:(0,Co.jsx)("div",{...v,ref:J(o,b),className:(0,Da.default)(`${f}drawer`,{[`${f}drawer--${a}`]:a,[`${f}drawer--${T}`]:T},r),style:{...n,[`--${x}drawer-xs-width`]:s?.xsWidth,[`--${x}drawer-width`]:s?.width},onClick:h=>{h.stopPropagation(),C?.(h)},children:t})})})})}),Na=fc;var pt=w(require("clsx")),Aa=require("react");var F=require("react/jsx-runtime"),$a=(0,Aa.forwardRef)(({as:e="div",children:o,className:t,title:r,subtitle:n,startContent:i,endContent:a,bordered:l=!0,close:d,slotProps:c,...p},s)=>{let{onClose:u}=or(),m=f,C={isVisible:d?.isVisible??!0,position:d?.position??"start"},v={cursor:"pointer"};return(0,F.jsxs)(e,{ref:s,className:(0,pt.default)(`${m}drawer-header`,{[`${m}drawer-header--bordered`]:l},t),...p,children:[(i!==void 0||C.isVisible&&C.position==="start")&&(0,F.jsx)("div",{...c?.startContent,className:(0,pt.default)(`${m}accordion-header__start-content`,c?.startContent?.className),children:C.isVisible&&C.position==="start"?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(E,{color:"secondary",children:(0,F.jsx)(q,{style:v,onClick:u})}),i]}):i}),(0,F.jsx)("div",{...c?.content,className:(0,pt.default)(`${m}drawer-header__content`,c?.content?.className),children:r!==void 0||n!==void 0?(0,F.jsxs)(F.Fragment,{children:[r!==void 0&&(0,F.jsx)("div",{...c?.title,className:(0,pt.default)(`${m}drawer-header__title`,c?.title?.className),children:r}),n!==void 0&&(0,F.jsx)("div",{...c?.subtitle,className:(0,pt.default)(`${m}drawer-header__subtitle`,c?.subtitle?.className),children:n})]}):o}),(a!==void 0||C.isVisible&&C.position==="end")&&(0,F.jsx)("div",{...c?.endContent,className:(0,pt.default)(`${m}accordion-header__end-content`,c?.endContent?.className),children:C.isVisible&&C.position==="end"?(0,F.jsxs)(F.Fragment,{children:[a,(0,F.jsx)(E,{color:"secondary",children:(0,F.jsx)(q,{style:v,onClick:u})})]}):a})]})});var ka=require("react");var Ha=require("react/jsx-runtime"),Va=(0,ka.forwardRef)(({children:e,className:o,...t},r)=>(0,Ha.jsx)("div",{ref:r,className:L(`${f}drawer-body`,o),...t,children:e}));var _a=w(require("clsx")),Oa=require("react");var za=require("react/jsx-runtime"),Fa=(0,Oa.forwardRef)((e,o)=>{let{as:t="div",children:r,className:n,bordered:i=!0,...a}=e,l=f;return(0,za.jsx)(t,{...a,ref:o,className:(0,_a.default)(`${l}drawer-footer`,{[`${l}drawer-footer--bordered`]:i},n),children:r})});var Ba=require("react");var ho=require("react/jsx-runtime"),vc=(0,Ba.forwardRef)(({children:e,label:o},t)=>{{let r=f;return(0,ho.jsxs)("div",{ref:t,className:L(`${r}field`),children:[(0,ho.jsx)("div",{className:`${r}field__label`,children:o}),(0,ho.jsx)("div",{className:`${r}field__content`,children:e})]})}}),Ga=vc;var ja=w(require("clsx")),et=require("react");var nr=require("react"),Ka=(0,nr.createContext)(null),zt=()=>{let e=(0,nr.useContext)(Ka);if(!e)throw new Error("`useMenu` must be used within a `<Menu />`");return e},ir=Ka;var Ja=w(require("clsx")),Za=require("react");var Wa=w(require("clsx")),Bt=require("react");var ar=require("react"),Xa=(0,ar.createContext)([]),Ua=()=>{let e=(0,ar.useContext)(Xa);if(!e)throw new Error("`useMenuValue` must be used within a `<MenuValueContext.Provider />`");return e},mt=Xa;var je=require("react/jsx-runtime"),qa=(0,Bt.forwardRef)((e,o)=>{let{as:t="div",className:r,style:n,value:i,title:a,icon:l,level:d=1,disabled:c,onClick:p,...s}=e,{value:u,originalValue:m,navMode:C,onChange:v,onOpen:x,onItemSelect:T}=zt(),b=(0,Bt.useContext)(mt),y=[...b,i],g=u[d-1]===i,h=R=>{i!==void 0&&v(y),p?.(R),T?.(e)};return(0,Bt.useEffect)(()=>{C==="automatic"&&m.length>0&&m[m.length-1]===i&&(x(b),v(y))},[i,m,C]),(0,je.jsxs)(t,{ref:o,className:(0,Wa.default)(`${f}menu-item`,{[`${f}menu-item--selected`]:g,[`${f}menu-item--disabled`]:c},r),style:{paddingLeft:d<=1?`var(--${f}menu-item-padding-x)`:`calc(${d} * var(--${f}menu-item-padding-level))`,...n},onClick:h,...s,children:[(0,je.jsx)("div",{className:`${f}overlay`,children:(0,je.jsx)("div",{className:`${f}overlay__surface`})}),l&&(0,je.jsx)("div",{className:`${f}menu-item__icon`,children:l}),(0,je.jsx)("div",{className:`${f}menu-item__content`,children:(0,je.jsx)("span",{className:`${f}menu-item__title`,children:a})})]})});qa.displayName="MenuItem";var he=qa;var lr=w(require("clsx")),cr=require("react");var Qa=e=>e.split("/").reduce((o,t)=>{let r=o[o.length-1];return r!=null?o.push(r+"/"+t):o.push(""),o},[]),sr=(e,o)=>{let t=e.indexOf(o),r=[...e];return t===-1?r.push(o):r.splice(t,1),r};var _=require("react/jsx-runtime"),Ya=({children:e,className:o,style:t,value:r,title:n,icon:i,level:a=1,items:l,onClick:d,...c})=>{let{value:p,openValues:s,expandMode:u,onOpen:m}=zt(),C=(0,cr.useContext)(mt),v=s.includes(r),x=[...C,r],T=p[a-1]===r,b=(0,cr.useMemo)(()=>l?.map(({type:g,...h},R)=>g==="item"?(0,_.jsx)(he,{level:a!==void 0?a+1:void 0,...h},R):g==="submenu"?(0,_.jsx)(Ya,{level:a!==void 0?a+1:void 0,...h},R):g==="group"?(0,_.jsx)(Kt,{level:a!==void 0?a+1:void 0,...h},R):(0,_.jsx)(he,{level:a!==void 0?a+1:void 0,...h},R)),[l]),y=g=>{if(u==="multiple"){let h=sr(s,r);m(h)}else if(v){let h=sr(x,r);m(h)}else{let h=sr(C,r);m(h)}d?.(g)};return(0,_.jsx)(mt.Provider,{value:x,children:(0,_.jsx)("div",{className:(0,lr.default)(`${f}menu-submenu`),children:(0,_.jsxs)(Fe,{isOpen:v,children:[(0,_.jsx)(Te,{children:(0,_.jsxs)("div",{className:(0,lr.default)(`${f}menu-item`,{[`${f}menu-item--selected`]:T||l&&x.includes(p)},o),style:{paddingLeft:a<=1?`var(--${f}menu-item-padding-x)`:`calc(${a} * var(--${f}menu-item-padding-level))`,...t},onClick:y,...c,children:[(0,_.jsx)("div",{className:`${f}overlay`,children:(0,_.jsx)("div",{className:`${f}overlay__surface`})}),i&&(0,_.jsx)("div",{className:`${f}menu-item__icon`,children:i}),(0,_.jsx)("div",{className:`${f}menu-item__content`,children:(0,_.jsx)("span",{className:`${f}menu-item__title`,children:n})}),(0,_.jsx)("div",{className:`${f}menu-item__icon`,children:v?(0,_.jsx)(ne,{className:`${f}icon`}):(0,_.jsx)(re,{className:`${f}icon`})})]})}),(0,_.jsx)(be,{children:(0,_.jsx)("ul",{className:(0,lr.default)(`${f}menu`,{[`${f}menu-open`]:!v}),children:b||e})})]})})})},Gt=Ya;var ue=require("react/jsx-runtime"),xc=({children:e,className:o,style:t,title:r,icon:n,level:i=1,items:a,...l})=>{let d=(0,Za.useMemo)(()=>a?.map(({type:c,...p},s)=>c==="item"?(0,ue.jsx)(he,{...p},s):c==="submenu"?(0,ue.jsx)(Gt,{...p},s):(0,ue.jsx)(he,{...p},s)),[a]);return(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsxs)("div",{className:(0,Ja.default)(`${f}menu-group`,o),style:{paddingLeft:i<=1?`var(--${f}menu-group-padding-x)`:`calc(${i} * var(--${f}menu-group-padding-level))`,...t},...l,children:[n&&(0,ue.jsx)("div",{className:`${f}menu-group__icon`,children:n}),(0,ue.jsx)("div",{className:`${f}menu-group__content`,children:(0,ue.jsx)("span",{className:`${f}menu-group__title`,children:r})})]}),d||e]})},Kt=xc;var ft=require("react/jsx-runtime"),es=({children:e,value:o=[],defaultValue:t,openValues:r,expandMode:n="multiple",navMode:i="manual",items:a,onChange:l,onOpen:d,onItemSelect:c,...p})=>{let[s,u]=(0,et.useState)(o??t??[]),[m,C]=(0,et.useState)(r??[]),v=(0,et.useMemo)(()=>a?.map(({type:y,...g},h)=>y==="item"?(0,ft.jsx)(he,{...g},h):y==="submenu"?(0,ft.jsx)(Gt,{...g},h):y==="group"?(0,ft.jsx)(Kt,{...g},h):(0,ft.jsx)(he,{...g},h)),[a]),x=y=>{o!==void 0&&i!=="automatic"?l?.(y):u(y)},T=y=>{r!==void 0?d?.(y):C(y)},b=y=>{c?.(y)};return(0,et.useEffect)(()=>{o!==void 0&&i!=="automatic"&&u(o)},[o]),(0,et.useEffect)(()=>{r!==void 0&&C(r)},[r]),(0,ft.jsx)(ir.Provider,{value:{value:s,originalValue:o,openValues:m,expandMode:n,navMode:i,onOpen:T,onChange:x,onItemSelect:b},children:(0,ft.jsx)("div",{className:(0,ja.default)(`${f}menu`),...p,children:v||e})})};es.displayName="Menu";var ts=es;var ie=require("react");var Xt=require("react");var ur=require("react"),os=(0,ur.createContext)(null),dr=()=>{let e=(0,ur.useContext)(os);if(!e)throw new Error("`useSelect` must be used within a `<Select />`");return e},rs=os;var bo=require("react/jsx-runtime"),Cc=()=>{let{data:e,values:o,offset:t,setOffset:r,keyField:n,textField:i,onItemSelect:a,renderItem:l}=dr(),d=(0,Xt.useRef)(null),{isOpen:c}=Z(),p=(s,u)=>{a(u),r(d.current?.scrollTop||0)};return(0,Xt.useEffect)(()=>{c&&d.current?.scrollTo({top:t})},[c]),(0,bo.jsx)(z,{ref:d,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,bo.jsx)(U,{children:l?e.map(s=>(0,bo.jsx)(Xt.Fragment,{children:l(s,{title:void 0,selected:o.includes(s[n]),hoverable:!0,onClick:u=>p(u,s),onMouseDown:u=>u.preventDefault()})},s[n])):e.map(s=>(0,bo.jsx)(H,{title:s[i],selected:o.includes(s[n]),hoverable:!0,onClick:u=>p(u,s),onMouseDown:u=>u.preventDefault()},s[n]))})})},ns=Cc;var Ut=require("react");var on=e=>Array.isArray(e)?e:e!==null?[e]:[],To=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var tt=require("react/jsx-runtime"),hc=()=>{let{data:e,values:o,keyField:t,textField:r,virtual:n,onItemSelect:i,renderItem:a}=dr(),l=(0,Ut.useRef)(null),d=Ke({...n,count:e.length,parentRef:l}),{isOpen:c}=Z(),p=s=>{i(s)};return(0,Ut.useEffect)(()=>{if(!c)return;let s=To(o),u=e.findIndex(m=>m[t]===s);d.scrollToIndex(u,{align:"start"})},[c]),n?(0,tt.jsx)(z,{ref:l,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,tt.jsx)(U,{children:(0,tt.jsx)("div",{style:{height:`${d.getTotalSize()}px`,width:"100%",position:"relative"},children:d.getVirtualItems().map(s=>{let u=s.index>e.length-1,m=e[s.index];return u?(0,tt.jsx)(H,{title:n.hasNextPage?"Loading...":"Nothing more to load",style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`}},s.index):m?a?(0,tt.jsx)(Ut.Fragment,{children:a(m,{title:void 0,selected:o.includes(m[t]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`},onClick:()=>p(m),onMouseDown:C=>C.preventDefault()})},s.index):(0,tt.jsx)(H,{title:m[r],selected:o.includes(m[t]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`},onClick:()=>p(m),onMouseDown:C=>C.preventDefault()},s.index):(0,tt.jsx)(H,{title:`Item ${s.index} not found`,style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`}},s.index)})})})}):null},is=hc;var D=require("react/jsx-runtime"),bc=e=>{let{data:o,value:t,keyField:r="key",textField:n="text",isMultiple:i=!1,disabled:a,loading:l,clearable:d=!1,disclosure:c,virtual:p,placeholder:s,className:u,style:m,color:C="inherit",variant:v="outlined",size:x="md",startContent:T,endContent:b,renderItem:y,renderNoData:g}=e,h=c!==void 0?c:Ge(),R=f,S=(0,ie.useRef)(null),[P,M]=(0,ie.useState)(""),[$,k]=(0,ie.useState)(!1),[B,pe]=(0,ie.useState)(!1),G=(0,ie.useMemo)(()=>on(t),[t]),Y=(0,ie.useMemo)(()=>o.filter(V=>G.includes(V[r])),[o,G]),[se,W]=(0,ie.useState)(0),me=()=>{S?.current?.focus()},Jt=V=>{if(e.isMultiple){let oe=o.filter(fe=>V.includes(fe[r]));e.onChange?.(oe),e.onValueChange?.(V)}else{let oe=To(V),fe=null;oe!==null&&(fe=o.find(nt=>nt[r]===oe)??null),e.onChange?.(fe),e.onValueChange?.(oe)}},Er=V=>{V.stopPropagation(),k(!0),M(""),e.isMultiple?(e.onChange?.([]),e.onValueChange?.([])):(e.onChange?.(null),e.onValueChange?.(null)),k(!1)},Mo=V=>{let oe=V[r];if(e.isMultiple){let fe=[...G],nt=G.indexOf(oe);nt===-1?fe.push(oe):fe.splice(nt,1),Jt(fe)}else To(G)!==oe&&Jt([oe]);k(!1),S.current?.focus(),e.isMultiple||h.onClose()},Ct=()=>{h.onOpen(),pe(!0)},wr=()=>{if(h.onClose(),!e.isMultiple&&$){let V=Y[0];M(V!==void 0?V[n]:""),k(!1)}};return(0,ie.useEffect)(()=>{if(!$&&!e.isMultiple){let V=Y[0];V!==void 0&&M(V[n])}},[Y]),(0,ie.useEffect)(()=>{on(t)[0]===void 0&&M("")},[t]),(0,D.jsx)(rs.Provider,{value:{data:o,values:G,keyField:r,textField:n,isMultiple:i,virtual:p,onChange:Jt,onItemSelect:Mo,offset:se,setOffset:W,renderItem:y},children:(0,D.jsxs)(At,{target:!0,...h,isOpen:h.isOpen,onOpen:Ct,onClose:wr,autoClose:"outside",children:[(0,D.jsx)(Vt,{children:(0,D.jsxs)("div",{className:L(`${R}input`,{[`${R}input--${C}`]:C,[`${R}input--${v}`]:v,[`${R}input--${x}`]:x,[`${R}input--focus`]:B,[`${R}input--disabled`]:a,[`${R}input--clearable`]:d},u),style:m,onClick:me,onFocus:()=>{pe(!0)},onBlur:()=>{pe(!1)},children:[(0,D.jsx)("input",{type:"text",ref:S,style:{position:"absolute",opacity:0,width:0}}),(0,D.jsx)("div",{className:`${R}overlay`}),(0,D.jsx)("div",{className:`${R}outline`}),T&&(0,D.jsx)("div",{className:`${R}input__start-content`,children:T}),(0,D.jsx)("div",{className:`${R}input__content`,children:i&&Y.length!==0?(0,D.jsx)("div",{className:`${R}input__chips`,children:Y.map(V=>(0,D.jsx)(Dt,{variant:"flat",color:"secondary",size:"xs",closable:!0,onClose:()=>Mo(V),children:V[n]},V[r]))}):(0,D.jsx)("div",{className:`${R}input__search`,title:P,children:P||s})}),(0,D.jsxs)("div",{className:`${R}input__end-content`,children:[b,l?(0,D.jsx)(E,{children:(0,D.jsx)(Ie,{className:`${R}animation-spin`})}):d?(0,D.jsx)("div",{className:`${R}input__clearable`,children:(0,D.jsx)(De,{type:"button",variant:"text",color:"secondary",size:"xs",iconOnly:!0,onClick:Er,children:(0,D.jsx)(E,{children:(0,D.jsx)(q,{})})})}):null,(0,D.jsx)("div",{style:{pointerEvents:"none"},children:(0,D.jsx)(E,{color:"secondary",children:h.isOpen?(0,D.jsx)(ne,{}):(0,D.jsx)(re,{})})})]})]})}),(0,D.jsx)($t,{style:{maxHeight:"200px"},children:o.length===0?(0,D.jsx)(D.Fragment,{children:g?g({status:"info",title:"No data",size:"sm",onClick:()=>{h.onClose()}}):(0,D.jsx)(Ne,{status:"info",title:"No data",size:"sm",onClick:h.onClose})}):p?(0,D.jsx)(is,{}):(0,D.jsx)(ns,{})})]})})},as=bc;var pr=w(require("clsx")),ss=w(require("merge-refs")),$e=require("react");var vt=require("react/jsx-runtime"),ls=(0,$e.forwardRef)(({children:e,className:o,style:t,checked:r,defaultChecked:n,onChange:i,disabled:a,readOnly:l,size:d="md",labelPlacement:c="after",colorScheme:p="default",...s},u)=>{let m=f,C=(0,$e.useRef)(null),[v,x]=(0,$e.useState)(r??n??!1),[T,b]=(0,$e.useState)(!1),y=g=>{r!==void 0?i?.(g):x?.(g.target.checked)};return(0,$e.useEffect)(()=>{r!==void 0&&x(r)},[r]),(0,vt.jsxs)("label",{className:(0,pr.default)(`${m}switch`,{[`${m}switch--checked`]:v,[`${m}switch--focus`]:T,[`${m}switch--disabled`]:a,[`${m}switch--read-only`]:l,[`${m}switch--${d}`]:d,[`${m}switch--${c}`]:c,[`${m}switch--${p}`]:p},o),style:t,onFocus:()=>{b(!0)},onBlur:()=>{b(!1)},children:[(0,vt.jsx)("input",{...s,ref:(0,ss.default)(C,u),type:"checkbox",checked:v,disabled:a,onChange:y}),(0,vt.jsx)("div",{className:(0,pr.default)(`${m}switch__control`),children:(0,vt.jsx)("div",{className:`${m}switch__thumb`})}),e!==void 0&&(0,vt.jsx)("div",{className:(0,pr.default)(`${m}switch__label`),children:e})]})});var us=w(require("clsx")),ds=w(require("merge-refs")),ot=require("react"),ps=require("uuid");var mr=require("react"),rn=(0,mr.createContext)(null),cs=()=>{let e=(0,mr.useContext)(rn);if(!e)throw new Error("`useTabs` must be used within a `<Tabs />`");return e};var te=require("react/jsx-runtime"),ms=(0,ot.forwardRef)(({as:e="div",children:o,className:t,role:r="presentation",value:n,startContent:i,endContent:a,closable:l,disabled:d,onClick:c,...p},s)=>{let u=f,m=(0,ot.useRef)(null),[C]=(0,ot.useState)((0,ps.v4)()),v=n??C,{onClose:x,registerItem:T,...b}=cs(),y=h=>{let R=b.previousTabRef.current,S=m.current;if(S){if(R){let P=R.querySelector(`.${u}tab__indicator`),M=S.querySelector(`.${u}tab__indicator`);if(!P||!M)return;let $={},k=P.getBoundingClientRect(),B=k.left,pe=k.width,G=M.getBoundingClientRect(),Y=G.left,se=G.width,W=pe/se;W?$.transform=`translateX(${(B-Y).toFixed(4)}px) scaleX(${W.toFixed(4)})`:$.opacity=0;let me=[$,{transform:"none"}];M.animate(me,{duration:250,easing:"cubic-bezier(.3,0,0,1)"}),b.previousTabRef.current=m.current}b.previousTabRef.current=m.current,b.onChange(v),c?.(h)}},g=h=>{h.stopPropagation(),x(v)};return(0,ot.useEffect)(()=>{T({value:v,disabled:d}),v===b.value&&(b.previousTabRef.current=m.current)},[v,b.value]),(0,te.jsxs)(e,{ref:(0,ds.default)(m,s,h=>b.tabRefs.current[v]=h),className:(0,us.default)(`${u}tab`,{[`${u}tab--selected`]:v===b.value,[`${u}tab--disabled`]:d,[`${u}tab--closable`]:l},t),role:r,onClick:y,...p,children:[(0,te.jsx)("div",{className:`${u}surface`}),(0,te.jsx)("div",{className:`${u}overlay`}),(0,te.jsxs)("div",{className:`${u}tab__content`,children:[i!==void 0&&(0,te.jsx)("div",{className:`${u}tab__start-content`,children:i}),o,(a||l)&&(0,te.jsxs)("div",{className:`${u}tab__end-content`,children:[a,l&&(0,te.jsx)("div",{className:`${u}tab__closable`,onClick:g,children:(0,te.jsx)(E,{children:(0,te.jsx)(q,{})})})]})]}),(0,te.jsxs)("div",{className:`${u}tab__indicator`,children:[(0,te.jsx)("div",{className:`${u}surface`}),(0,te.jsx)("div",{className:`${u}overlay`})]})]})});var vs=w(require("clsx")),xs=w(require("merge-refs")),Pe=require("react");var fs=require("react"),Le=fs.forwardRef;var nn=require("react/jsx-runtime"),Cs=Le(({children:e,className:o,value:t,defaultValue:r,variant:n="underlined",alignment:i="start",onChange:a,onClose:l,...d},c)=>{let p=(0,Pe.useRef)(null),s=(0,Pe.useRef)({}),u=(0,Pe.useRef)(null),[m,C]=(0,Pe.useState)(t??r),[v,x]=(0,Pe.useState)([]),T=h=>{x(R=>(R.findIndex(P=>P.value)===-1&&R.push(h),R))},b=h=>{let R=p.current;if(!R)return;let S=s.current[h];S&&Ir(R,S)},y=h=>{C(h),a?.(h),b(h)},g=h=>{l?.(h)};return(0,Pe.useEffect)(()=>{t!==void 0&&(C(t),b(t))},[t]),(0,Pe.useEffect)(()=>{if(t===void 0){let h=v.find(R=>!R.disabled);C(h?.value)}},[t,v]),(0,nn.jsx)(rn.Provider,{value:{previousTabRef:u,tabRefs:s,value:m,onChange:y,onClose:g,registerItem:T},children:(0,nn.jsx)("div",{...d,ref:(0,xs.default)(c,p),className:(0,vs.default)(`${f}tabs`,{[`${f}tabs--${n}`]:n,[`${f}tabs--${i}`]:i},o),children:e})})});var Wt=require("react");var ke=require("react/jsx-runtime");var hs=(0,Wt.forwardRef)(({className:e,value:o,defaultValue:t,disabled:r,inputRef:n,color:i="inherit",variant:a="outlined",size:l="md",startContent:d,endContent:c,css:p,style:s,onChange:u,onClick:m,...C},v)=>{let x=f,T=(0,Wt.useRef)(null),[b,y]=(0,Wt.useState)(!1),g=R=>{u?.(R)},h=R=>{m?.(R),T?.current?.focus()};return(0,ke.jsxs)("div",{ref:v,className:L(`${x}input`,{[`${x}input--${i}`]:i,[`${x}input--${a}`]:a,[`${x}input--${l}`]:l,[`${x}input--focus`]:b,[`${x}input--disabled`]:r},p!==void 0?Ae(p,x):[],e),style:s,onFocus:()=>{y(!0)},onBlur:()=>{y(!1)},onClick:h,children:[(0,ke.jsx)("div",{className:`${x}overlay`}),(0,ke.jsx)("div",{className:`${x}outline`}),d&&(0,ke.jsx)("div",{className:`${x}input__start-content`,children:d}),(0,ke.jsx)("div",{className:`${x}input__content`,children:(0,ke.jsx)("input",{ref:J(T,n),className:`${x}input__field`,value:o??"",defaultValue:t,disabled:r,onChange:g,...C})}),c&&(0,ke.jsx)("div",{className:`${x}input__end-content`,children:c})]})});var Me=w(require("clsx"));var Q=require("react/jsx-runtime"),Tc=e=>{let{children:o,className:t,size:r="md",title:n,subtitle:i,startContent:a,endContent:l,startAction:d,endAction:c,slotProps:p,...s}=e,u=f;return(0,Q.jsxs)("div",{className:(0,Me.default)(`${u}toolbar`,{[`${u}toolbar--${r}`]:r},t),...s,children:[(0,Q.jsx)("div",{className:`${u}outline-b`}),(0,Q.jsxs)("div",{className:(0,Me.default)(`${u}toolbar__container`),children:[a!==void 0?(0,Q.jsx)("div",{className:(0,Me.default)(`${u}toolbar__start-content`),children:a}):d!==void 0&&(0,Q.jsx)("div",{className:(0,Me.default)(`${u}toolbar__start-action`),children:d}),(0,Q.jsx)("div",{className:(0,Me.default)(`${u}toolbar__content`),children:n!==void 0||i!==void 0?(0,Q.jsxs)(Q.Fragment,{children:[n!==void 0&&(0,Q.jsx)("div",{...p?.title,className:(0,Me.default)(`${u}toolbar__title`),children:n}),i!==void 0&&(0,Q.jsx)("div",{...p?.subtitle,className:(0,Me.default)(`${u}toolbar__subtitle`),children:i})]}):o}),l!==void 0?(0,Q.jsx)("div",{className:(0,Me.default)(`${u}toolbar__end-content`),children:l}):c!==void 0&&(0,Q.jsx)("div",{className:(0,Me.default)(`${u}toolbar__end-action`),children:c})]})]})},bs=Tc;var Ts=w(require("clsx")),ys=w(require("merge-refs")),fr=require("react");var an=require("react/jsx-runtime"),Rs=(0,fr.forwardRef)(({as:e="div",children:o,width:t,className:r,role:n="presentation",onClick:i,style:a,...l},d)=>{let c=f,p=(0,fr.useRef)(null),s=u=>{i?.(u)};return(0,an.jsx)(e,{ref:(0,ys.default)(p,d),className:(0,Ts.default)(`${c}swipe-item`,r),role:n,onClick:s,style:{...a,...t!==void 0?{width:`${t}px`}:{}},...l,children:(0,an.jsx)("div",{className:`${c}swipe-item__content`,children:o})})});var ln=w(require("clsx")),vr=require("react");var sn=require("react"),gs=(0,sn.createContext)(null);var rt=require("react");var Ss=(e,o)=>{let t=!1,r=!1,n=null;if(o){let i=Array.from(e.children).indexOf(o),a=0,l=0,d=Array.from(e.children);for(let s=i;s<d.length;s++){let u=d[s];if(e.clientWidth<=l+u.clientWidth)break;a++,l+=u.clientWidth}let c=d[i];c?t=!0:t=!1,o=c;let p=d[i+a];p?r=!0:r=!1,n=p}else{let i=0,a=0,l=Array.from(e.children);for(let c=0;c<l.length;c++){let p=l[c];if(e.clientWidth<=a+p.clientWidth)break;i++,a+=p.clientWidth}t=!1,o=null;let d=l[i];d?r=!0:r=!1,n=d}return{isPrevious:t,previousElement:o,isNext:r,nextElement:n}};function yc(e){let o=Et({ref:e.ref,target:e.target}),t=(0,rt.useRef)(null),r=(0,rt.useRef)(null),[n,i]=(0,rt.useState)(!1),[a,l]=(0,rt.useState)(!1),d=(0,rt.useMemo)(()=>{let s=e.ref?.current||e.target;if(!s)return;let u=o.width===s.scrollWidth?null:t.current,m=Ss(s,u);if(m)return i(m.isPrevious),l(m.isNext),r.current=m.nextElement,t.current=m.previousElement,m},[o.width,e.itemLength]);return d?{...d,isPrevious:n,isNext:a,previousRange:()=>{let s=e.ref?.current||e.target,u=t.current;if(!s||!u)return;let m="smooth",C=Array.from(s.children);if(u){let v=Array.from(s.children).indexOf(u),x=Array.from(s.children).slice(0,v+1),T=0,b=0;for(let P of x)T++,b+=P.clientWidth;let y=0,g=0;for(let P of x){if(s.clientWidth<=g+P.clientWidth)break;y++,g+=P.clientWidth}let h=b+T*16-(g+y*16);s.scrollTo({behavior:m,left:h});let R=x[x.length-1-y];i(!!R),t.current=R;let S=C[x.length-1+1];l(!!S),r.current=S}else{t.current=null;let v=0;for(let x of C){if(s.clientWidth<=v+x.clientWidth){r.current=x;break}v+=x.clientWidth}s.scrollTo({behavior:m,left:0})}},nextRange:()=>{let s=e.ref?.current||e.target,u=r.current;if(!s||!u)return;let m="smooth",C=Array.from(s.children);if(u){let v=Array.from(s.children).indexOf(u),x=Array.from(s.children).slice(0,v),T=0,b=0;for(let P=0;P<x.length;P++){let M=x[P];T++,b+=M.clientWidth}let y=0,g=0;for(let P=0;P<x.length;P++){let M=x[P];if(s.clientWidth<=g+M.clientWidth)break;y++,g+=M.clientWidth}let h=b+T*16;s.scrollTo({behavior:m,left:h});let R=x[x.length-1];i(!!R),t.current=R;let S=C[x.length+y];l(!!S),r.current=S}}}:void 0}var Ls=yc;var ae=require("react/jsx-runtime"),Ps=({children:e,className:o,gap:t=0,autoHide:r=!1,alignment:n="start",slotProps:i,...a})=>{let l=f,d=(0,vr.useRef)(null),c=vr.Children.toArray(e),p=Ls({ref:d,itemLength:c.length}),s=m=>{p?.previousRange(),i?.arrowLeftButton?.onClick?.(m)},u=m=>{p?.nextRange(),i?.arrowRightButton?.onClick?.(m)};return(0,ae.jsx)(gs.Provider,{value:{gap:t},children:(0,ae.jsxs)("div",{className:(0,ln.default)(`${l}swipe`,{[`${l}swipe--auto-hide`]:r,[`${l}swipe--${n}`]:n},o),style:{"--us-swipe-gap":`${t}px`},children:[(0,ae.jsx)("div",{className:`${l}swipe__start-content`,children:p?.isPrevious&&(0,ae.jsx)(De,{variant:"filled",color:"primary",iconOnly:!0,...i?.arrowLeftButton,onClick:s,children:(0,ae.jsx)(E,{children:(0,ae.jsx)(zr,{})})})}),(0,ae.jsx)("div",{ref:d,...i?.content,className:(0,ln.default)(`${l}swipe__content`,i?.content?.className),...a,children:e}),(0,ae.jsx)("div",{className:`${l}swipe__end-content`,children:p?.isNext&&(0,ae.jsx)(De,{variant:"filled",color:"primary",iconOnly:!0,...i?.arrowLeftButton,onClick:u,children:(0,ae.jsx)(E,{children:(0,ae.jsx)(Br,{})})})})]})})};var un=w(require("clsx")),Ms=w(require("merge-refs")),Cr=require("react");var xr=require("react"),cn=(0,xr.createContext)(null);function qt(){let e=(0,xr.useContext)(cn);if(!e)throw new Error("useModal must be used within a Modal");return e}var yo=require("react/jsx-runtime"),Es=(0,Cr.forwardRef)(({children:e,className:o,isOpen:t,size:r="md",placement:n="center",backdrop:i="opaque",scrollBehavior:a="outside",fullscreen:l,closable:d=!0,scrollArea:c=!1,slotProps:p,onClose:s,onAfterClose:u,onClick:m,...C},v)=>{let x=f,T=(0,Cr.useRef)(null),b=()=>{s()},y=()=>{u?.()};return(0,yo.jsx)(cn.Provider,{value:{isOpen:t,scrollBehavior:a,scrollArea:c,onClose:b,onAfterClose:y},children:(0,yo.jsx)(Ot,{...p?.wrapper,isOpen:t,closable:d,scrollable:!0,scrollArea:c,variant:i,placement:n,className:(0,un.default)(`${x}modal-wrapper`,{[`${x}modal-wrapper--fullscreen`]:l},p?.wrapper?.className),onClose:b,children:(0,yo.jsx)(ge,{nodeRef:T,isOpen:t,name:`${x}modal`,enter:600,leave:300,unmountOnExit:!0,onExited:y,children:(0,yo.jsx)("div",{...C,ref:(0,Ms.default)(v,T),className:(0,un.default)(`${x}modal`,{[`${x}modal--${r}`]:r,[`${x}modal--${n}`]:n,[`${x}modal--fullscreen`]:l,[`${x}modal--scroll-${a}`]:a},o),onClick:g=>{g.stopPropagation(),m?.(g)},children:e})})})})});var ws=w(require("clsx"));var dn=require("react/jsx-runtime"),Is=e=>{let{children:o,className:t,...r}=e,{scrollBehavior:n,scrollArea:i}=qt(),l=(0,dn.jsx)("div",{className:(0,ws.default)(`${f}modal-body`,t),...r,children:o});return n==="inside"&&i?(0,dn.jsx)(z,{autoHide:!0,children:l}):l};var Ds=w(require("clsx")),Ns=require("react");var $s=require("react/jsx-runtime"),As=(0,Ns.forwardRef)((e,o)=>{let{as:t="div",children:r,className:n,bordered:i=!0,...a}=e,l=f;return(0,$s.jsx)(t,{...a,ref:o,className:(0,Ds.default)(`${l}modal-footer`,{[`${l}modal-footer--bordered`]:i},n),children:r})});var hr=w(require("clsx")),ks=require("react");var X=require("react/jsx-runtime"),Vs=(0,ks.forwardRef)(({as:e="div",children:o,className:t,title:r,subtitle:n,startContent:i,endContent:a,bordered:l=!0,close:d,slotProps:c,...p},s)=>{let{onClose:u}=qt(),m=f,C={isVisible:d?.isVisible??!0,position:d?.position??"end"},v={cursor:"pointer"};return(0,X.jsxs)(e,{...p,ref:s,className:(0,hr.default)(`${m}modal-header`,{[`${m}modal-header--bordered`]:l},t),children:[(i!==void 0||C.isVisible&&C.position==="start")&&(0,X.jsx)("div",{className:`${m}modal-header__start-content`,children:C.isVisible&&C.position==="start"?(0,X.jsxs)("div",{className:"us-d-flex us-items-center us-gap-2",children:[(0,X.jsx)(E,{color:"secondary",children:(0,X.jsx)(q,{style:v,onClick:u})}),i]}):i}),(0,X.jsx)("div",{className:`${m}modal-header__content`,children:r!==void 0||n!==void 0?(0,X.jsxs)(X.Fragment,{children:[r!==void 0&&(0,X.jsx)("div",{...c?.title,className:(0,hr.default)(`${m}modal-header__title`,c?.title?.className),children:r}),n!==void 0&&(0,X.jsx)("div",{...c?.subtitle,className:(0,hr.default)(`${m}modal-header__subtitle`,c?.subtitle?.className),children:n})]}):o}),(a!==void 0||C.isVisible&&C.position==="end")&&(0,X.jsx)("div",{className:`${m}modal-header__end-content`,children:C.isVisible&&C.position==="end"?(0,X.jsxs)("div",{className:"us-d-flex us-items-center us-gap-2",children:[a,(0,X.jsx)(E,{color:"secondary",children:(0,X.jsx)(q,{style:v,onClick:u})})]}):a})]})});var Ro=w(require("clsx")),Hs=w(require("merge-refs")),He=require("react"),_s=require("uuid");var br=require("react"),pn=(0,br.createContext)(null),Tr=()=>(0,br.useContext)(pn);var Ve=require("react/jsx-runtime"),Os=Le(({children:e,className:o,style:t,value:r,checked:n,defaultChecked:i,disabled:a,readOnly:l,size:d,colorScheme:c,labelPlacement:p,onClick:s,onChange:u,...m},C)=>{let v=f,x=(0,He.useRef)(null),T=Tr(),[b]=(0,He.useState)((0,_s.v4)()),y=r??b,[g,h]=(0,He.useState)(n??i??!1),[R,S]=(0,He.useState)(!1),P=a||!1,M=l||!1,$=d||"md",k=p||"after",B=c||"default";P=a??T?.disabled??P,M=l??T?.readOnly??M,$=d??T?.size??$,k=p??T?.labelPlacement??k,B=c??T?.colorScheme??B;let pe=Y=>{if(T){let se=[...T.value],W=se.findIndex(me=>me===y);W===-1?se.push(y):se.splice(W,1),T?.onChange(se)}else n!==void 0?u?.(Y):h(Y.target.checked)},G=Y=>{s?.(Y),x?.current?.focus()};return(0,He.useEffect)(()=>{n!==void 0&&h(n)},[n]),(0,He.useEffect)(()=>{T&&h(T.value.includes(y))},[T]),(0,Ve.jsxs)("label",{className:(0,Ro.default)(`${v}checkbox`,{[`${v}checkbox--checked`]:g,[`${v}checkbox--focus`]:R,[`${v}checkbox--disabled`]:P,[`${v}checkbox--read-only`]:M,[`${v}checkbox--${$}`]:$,[`${v}checkbox--${k}`]:k,[`${v}checkbox--${B}`]:B},o),style:t,onFocus:()=>{S(!0)},onBlur:()=>{S(!1)},children:[(0,Ve.jsx)("input",{...m,ref:(0,Hs.default)(x,C),type:"checkbox",value:String(y),checked:g,disabled:P,onChange:pe,onClick:G}),(0,Ve.jsxs)("div",{className:(0,Ro.default)(`${v}checkbox__control`),children:[(0,Ve.jsx)("div",{className:(0,Ro.default)(`${v}checkbox__tap`)}),(0,Ve.jsx)(E,{children:(0,Ve.jsx)(Gr,{})})]}),e!==void 0&&(0,Ve.jsx)("div",{className:(0,Ro.default)(`${v}checkbox__label`),children:e})]})});var Fs=w(require("clsx")),yr=require("react");var mn=require("react/jsx-runtime"),zs=Le(({children:e,disabled:o=!1,readOnly:t=!1,className:r,value:n,defaultValue:i,direction:a="row",alignment:l="start",size:d="md",labelPlacement:c="after",colorScheme:p="default",onChange:s,...u},m)=>{let C=f,[v,x]=(0,yr.useState)(n??i??[]),T=b=>{if(n!==void 0){s?.(b);return}x(b)};return(0,yr.useEffect)(()=>{n!==void 0&&x(n)},[n]),(0,mn.jsx)(pn.Provider,{value:{value:v,disabled:o,readOnly:t,direction:a,size:d,labelPlacement:c,colorScheme:p,onChange:T},children:(0,mn.jsx)("div",{...u,ref:m,className:(0,Fs.default)(`${C}checkbox-group`,{[`${C}checkbox-group--${d}`]:d,[`${C}checkbox-group--${a}`]:a,[`${C}checkbox-group--${l}`]:l},r),children:e})})});var go=w(require("clsx")),Bs=w(require("merge-refs")),So=require("react"),Gs=require("uuid");var Rr=require("react"),fn=(0,Rr.createContext)(null),gr=()=>{let e=(0,Rr.useContext)(fn);if(!e)throw new Error("`useRadioGroup` must be used within a `<RadioGroup />`");return e};var _e=require("react/jsx-runtime"),Ks=Le(({children:e,style:o,className:t,name:r,value:n,disabled:i,readOnly:a,size:l,labelPlacement:d,colorScheme:c,onClick:p,...s},u)=>{let m=f,C=(0,So.useRef)(null),v=gr(),[x]=(0,So.useState)((0,Gs.v4)()),T=n??x,[b,y]=(0,So.useState)(!1);r=r??v?.name;let g=i||!1,h=a||!1,R=l||"md",S=d||"after",P=c||"default";g=i??v.disabled??g,h=a??v.readOnly??h,R=l??v.size??R,S=d??v.labelPlacement??S,P=c??v.colorScheme??P;let M=v.value===T,$=()=>{v.onChange(T)},k=B=>{p?.(B),C?.current?.focus()};return(0,_e.jsxs)("label",{className:(0,go.default)(`${m}radio`,{[`${m}radio--checked`]:M,[`${m}radio--focus`]:b,[`${m}radio--disabled`]:g,[`${m}radio--read-only`]:h,[`${m}radio--${R}`]:R,[`${m}radio--${S}`]:S,[`${m}radio--${P}`]:P},t),style:o,onFocus:()=>{y(!0)},onBlur:()=>{y(!1)},children:[(0,_e.jsx)("input",{...s,ref:(0,Bs.default)(C,u),type:"radio",name:r,value:String(T),checked:M,disabled:g,onChange:$,onClick:k}),(0,_e.jsxs)("div",{className:(0,go.default)(`${m}radio__control`),children:[(0,_e.jsx)("div",{className:(0,go.default)(`${m}radio__tap`)}),(0,_e.jsx)(E,{children:(0,_e.jsx)(Kr,{})})]}),e!==void 0&&(0,_e.jsx)("div",{className:(0,go.default)(`${m}radio__label`),children:e})]})});var Xs=w(require("clsx")),Lo=require("react"),Us=require("uuid");var vn=require("react/jsx-runtime"),Ws=Le(({children:e,className:o,name:t,value:r,defaultValue:n,disabled:i=!1,readOnly:a=!1,direction:l="row",alignment:d="start",size:c="md",labelPlacement:p="after",colorScheme:s="default",onChange:u,...m},C)=>{let v=f,[x]=(0,Lo.useState)((0,Us.v4)()),[T,b]=(0,Lo.useState)(r??n),y=g=>{if(u!==void 0){u(g);return}b(g)};return(0,Lo.useEffect)(()=>{r!==void 0&&b(r)},[r]),(0,vn.jsx)(fn.Provider,{value:{name:t??x,disabled:i,readOnly:a,value:T,direction:l,size:c,labelPlacement:p,colorScheme:s,onChange:y},children:(0,vn.jsx)("div",{...m,ref:C,role:"radiogroup",className:(0,Xs.default)(`${v}radio-group`,{[`${v}radio-group--${c}`]:c,[`${v}radio-group--${l}`]:l,[`${v}radio-group--${d}`]:d},o),children:e})})});var qs=w(require("clsx"));var xt=require("react/jsx-runtime"),Qs=({className:e,children:o,startContent:t,endContent:r,placement:n="left",...i})=>{let a=f;return(0,xt.jsxs)("div",{className:(0,qs.default)(`${a}nav-rail`,{[`${a}nav-rail--${n}`]:n},e),...i,children:[(0,xt.jsx)("div",{className:`${a}surface`}),t!==void 0&&(0,xt.jsx)("div",{className:`${a}nav-rail__start-content`,children:t}),(0,xt.jsx)("div",{className:`${a}nav-rail__content`,children:o}),r!==void 0&&(0,xt.jsx)("div",{className:`${a}nav-rail__end-content`,children:r})]})};var Ys=w(require("clsx")),Js=require("react");var de=require("react/jsx-runtime"),Zs=(0,Js.forwardRef)((e,o)=>{let{as:t="div",label:r,icon:n,media:i,selected:a,className:l,...d}=e,c=f;return(0,de.jsxs)(t,{ref:o,className:(0,Ys.default)(`${c}nav-rail-item`,l,{[`${c}nav-rail-item--selected`]:a}),...d,children:[(0,de.jsx)("div",{className:`${c}surface`}),(0,de.jsx)("div",{className:`${c}overlay`}),(0,de.jsxs)("div",{className:`${c}nav-rail-item__content`,children:[(0,de.jsx)("div",{className:`${c}nav-rail-item__indicator`}),i!==void 0?(0,de.jsxs)("div",{className:`${c}nav-rail-item__media`,children:[(0,de.jsx)("div",{className:`${c}overlay`}),i]}):n!==void 0?(0,de.jsxs)("div",{className:`${c}nav-rail-item__icon`,children:[(0,de.jsx)("div",{className:`${c}overlay`}),n]}):null,r!==void 0&&(0,de.jsx)("span",{className:`${c}nav-rail-item__label`,children:r})]})]})});var bn=w(require("clsx")),Yt=require("react");var Cn=w(require("clsx")),Mr=require("react");var Sr=require("react"),Lr=(0,Sr.createContext)(null),xn=()=>{let e=(0,Sr.useContext)(Lr);if(!e)throw new Error("`useCollapse` must be used within a `<Collapse />`");return e};var js=require("react");function Pr(e){if(typeof e=="string"||typeof e=="number")return e.toString();if((0,js.isValidElement)(e)){let o=e.props.children;return Pr(o)}return Array.isArray(e)?e.map(Pr).join(""):""}var Qt=require("react/jsx-runtime"),hn=({item:e})=>{let o=f,t={...e,type:e.type??"string"},{mq:r}=xn(),n=(0,Mr.useMemo)(()=>{if(r!==void 0){if(typeof t.span!="object")return t.span??12;for(let l of Ue)if(r>=l.mq&&t.span[l.key]!==void 0)return t.span[l.key];return 12}},[r,t.span]),i=(0,Mr.useMemo)(()=>{if(r!==void 0){if(typeof t.order!="object")return t.order??0;for(let l of Ue)if(r>=l.mq&&t.order[l.key]!==void 0)return t.order[l.key];return 0}},[r,t.order]),a=(0,Mr.useMemo)(()=>{if(!(t.value===void 0||t.value===null)){if(t.type==="date")return t.format?t.format==="date"?Io(t.value,t.locales,t.options):t.format==="datetime"?Dr(t.value,t.locales,t.options):t.format==="short datetime"?Nr(t.value,t.locales,t.options):Ar(t.value,t.locales,t.options):Io(t.value,t.locales,t.options);if(t.type==="boolean"){let l=t.labels?.true??"Yes",d=t.labels?.false??"No";return t.value?l:d}else{if(t.type==="currency")return $r(t.value,t.currency,t.locales,t.options);if(t.type==="percent")return kr(t.value,t.decimals,t.locales,t.options)}return typeof t.value=="string"?t.value:String(t.value)}},[t.type,t.value,t.format,t.locales,t.options,t.currency,t.decimals]);return(0,Qt.jsxs)("div",{className:(0,Cn.default)(`${o}description`),style:{gridColumn:`span ${n} / span ${n}`,order:i},children:[(0,Qt.jsx)("div",{title:Pr(t.label),className:(0,Cn.default)(`${o}description__label`),children:t.label}),(0,Qt.jsx)("div",{title:a,className:`${o}description__content`,children:t.render!==void 0?t.render({content:a??"---",empty:"---",isEmpty:!a,mq:r}):(0,Qt.jsx)("div",{className:`${o}description__text`,children:a})??"---"})]})};var Po=require("react/jsx-runtime"),Rc=({items:e,layout:o="row",size:t="md",cols:r=12})=>{let n=f,i=(0,Yt.useRef)(null),a=Yr({ref:i}),l=(0,Yt.useMemo)(()=>{if(a!==void 0){if(typeof o!="object")return o??"row";for(let p of Ue)if(a>=p.mq&&o[p.key]!==void 0)return o[p.key];return"row"}},[a,o]),d=(0,Yt.useMemo)(()=>{if(a!==void 0){if(typeof t!="object")return t??"md";for(let p of Ue)if(a>=p.mq&&t[p.key]!==void 0)return t[p.key];return"md"}},[a,t]),c=(0,Yt.useMemo)(()=>{if(a!==void 0){if(typeof r!="object")return r??12;for(let p of Ue)if(a>=p.mq&&r[p.key]!==void 0)return r[p.key];return 12}},[a,r]);return(0,Po.jsx)("div",{ref:i,className:(0,bn.default)(`${n}descriptions-wrapper`),children:a!==void 0&&(0,Po.jsx)(Lr.Provider,{value:{mq:a,layout:l,size:d,cols:c},children:(0,Po.jsx)("div",{className:(0,bn.default)(`${n}descriptions`,{[`${n}descriptions--${d}`]:d,[`${n}descriptions--${l}`]:l}),style:{gridTemplateColumns:`repeat(${c}, minmax(0, 1fr))`},children:e.map((p,s)=>(0,Po.jsx)(hn,{item:p},s))})})})};0&&(module.exports={Accordion,AccordionBody,AccordionContent,AccordionContext,AccordionHeader,AccordionItem,AccordionTrigger,Autocomplete,Backdrop,Badge,Button,ButtonGroup,ButtonGroupContext,Card,CardBody,CardFooter,CardHeader,CardMedia,CardSubtitle,CardTitle,Checkbox,CheckboxGroup,Chip,Collapse,CollapseContent,CollapseContext,CollapseTrigger,ContainerMediaQuery,DataList,Description,Descriptions,DescriptionsContext,Divider,Drawer,DrawerBody,DrawerContext,DrawerFooter,DrawerHeader,Field,Icon,List,ListGroup,ListItem,ListSubheader,Menu,MenuContext,MenuGroup,MenuItem,MenuSubmenu,MenuValueContext,Modal,ModalBody,ModalFooter,ModalHeader,MutationStatus,NavRail,NavRailItem,Popover,PopoverContent,PopoverTrigger,Portal,QueryStatus,Radio,RadioGroup,Result,ScrollArea,Select,Swipe,SwipeItem,Switch,Tab,Tabs,TextInput,Toolbar,Transition,assignRef,breakpointsMap,clsx,dateFormat,defaultBreakpoints,formatCurrency,formatDate,formatDateTime,formatPercent,formatShortDateTime,formatTime,getOpenValuesByPathname,hasResizeObserver,mergeRefs,scrollToItem,useAccordion,useAccordionItem,useButtonGroup,useCheckboxGroup,useCollapse,useContainerMediaQuery,useDebounce,useDescriptionsContext,useDisclosure,useDrawer,useEffectEvent,useElementSize,useInfiniteQuery,useLocalStorage,useMediaQuery,useMenu,useMenuItemValue,useModal,useMutation,useOnClickOutside,usePopover,usePrevious,useQuery,useRadioGroup,useResizeObserver,useStep,useValueEffect,useVirtualizer});
|
|
1
|
+
"use strict";var ul=Object.create;var wo=Object.defineProperty;var dl=Object.getOwnPropertyDescriptor;var pl=Object.getOwnPropertyNames;var ml=Object.getPrototypeOf,fl=Object.prototype.hasOwnProperty;var vl=(e,o)=>{for(var t in o)wo(e,t,{get:o[t],enumerable:!0})},Rn=(e,o,t,r)=>{if(o&&typeof o=="object"||typeof o=="function")for(let n of pl(o))!fl.call(e,n)&&n!==t&&wo(e,n,{get:()=>o[n],enumerable:!(r=dl(o,n))||r.enumerable});return e};var E=(e,o,t)=>(t=e!=null?ul(ml(e)):{},Rn(o||!e||!e.__esModule?wo(t,"default",{value:e,enumerable:!0}):t,e)),xl=e=>Rn(wo({},"__esModule",{value:!0}),e);var Dc={};vl(Dc,{Accordion:()=>wn,AccordionBody:()=>oi,AccordionContent:()=>ni,AccordionContext:()=>Ao,AccordionHeader:()=>ei,AccordionItem:()=>Hn,AccordionTrigger:()=>ai,Autocomplete:()=>ia,Backdrop:()=>zt,Badge:()=>sa,Button:()=>Ae,ButtonGroup:()=>Ai,ButtonGroupContext:()=>so,Card:()=>Ca,CardBody:()=>ba,CardFooter:()=>wa,CardHeader:()=>Pa,CardMedia:()=>Aa,CardSubtitle:()=>jo,CardTitle:()=>er,Checkbox:()=>zs,CheckboxGroup:()=>Gs,Chip:()=>Nt,Collapse:()=>Be,CollapseContent:()=>Te,CollapseContext:()=>$o,CollapseTrigger:()=>ye,ContainerMediaQuery:()=>Mi,DataList:()=>ma,Description:()=>Tn,DescriptionEmpty:()=>xn,DescriptionText:()=>hn,Descriptions:()=>Ic,DescriptionsContext:()=>Lr,Divider:()=>Ln,Drawer:()=>$a,DrawerBody:()=>_a,DrawerContext:()=>xo,DrawerFooter:()=>Ba,DrawerHeader:()=>Va,Field:()=>Xa,Icon:()=>w,List:()=>U,ListGroup:()=>Yi,ListItem:()=>H,ListSubheader:()=>Zi,Menu:()=>rs,MenuContext:()=>ir,MenuGroup:()=>Ut,MenuItem:()=>be,MenuSubmenu:()=>Xt,MenuValueContext:()=>ft,Modal:()=>Is,ModalBody:()=>As,ModalFooter:()=>ks,ModalHeader:()=>_s,MutationStatus:()=>Wr,NavRail:()=>Js,NavRailItem:()=>el,Popover:()=>kt,PopoverContent:()=>Vt,PopoverTrigger:()=>_t,Portal:()=>$t,QueryStatus:()=>Ur,Radio:()=>Us,RadioGroup:()=>Qs,Result:()=>Ne,ScrollArea:()=>z,Select:()=>ls,Swipe:()=>Es,SwipeItem:()=>Ss,Switch:()=>us,Tab:()=>vs,Tabs:()=>bs,TextInput:()=>Ts,Toolbar:()=>ys,Transition:()=>Se,assignRef:()=>Zt,breakpointsMap:()=>Ce,clsx:()=>L,dateFormat:()=>jt,defaultBreakpoints:()=>Qr,formatCurrency:()=>$r,formatDate:()=>Io,formatDateTime:()=>Dr,formatPercent:()=>kr,formatShortDateTime:()=>Ar,formatTime:()=>Nr,getOpenValuesByPathname:()=>Ja,hasResizeObserver:()=>qr,mergeRefs:()=>J,scrollToItem:()=>Ir,useAccordion:()=>Tt,useAccordionItem:()=>ko,useButtonGroup:()=>Ko,useCheckboxGroup:()=>Tr,useCollapse:()=>ze,useContainerMediaQuery:()=>Yr,useDebounce:()=>xi,useDescriptionsContext:()=>Cn,useDisclosure:()=>Xe,useDrawer:()=>or,useEffectEvent:()=>ao,useElementSize:()=>It,useInfiniteQuery:()=>yi,useLocalStorage:()=>ui,useMediaQuery:()=>Ci,useMenu:()=>Gt,useMenuItemValue:()=>qa,useModal:()=>Yt,useMutation:()=>gi,useOnClickOutside:()=>Fo,usePopover:()=>Z,usePrevious:()=>di,useQuery:()=>Ri,useRadioGroup:()=>gr,useResizeObserver:()=>Li,useStep:()=>vi,useValueEffect:()=>Pi,useVirtualizer:()=>Ue});module.exports=xl(Dc);var gn=E(require("clsx")),Sn=require("react");var f="us-";var Pn=require("react/jsx-runtime"),Ln=(0,Sn.forwardRef)((e,o)=>{let{className:t,...r}=e;return(0,Pn.jsx)("div",{...r,ref:o,className:(0,gn.default)(`${f}divider`,t)})});var yt=require("react");var Ir=(e,o)=>{let t=e.getBoundingClientRect(),r=o.getBoundingClientRect(),n="smooth",i=o.previousSibling,s=i?.getBoundingClientRect()||r;if(t.left>s.left){let l=0;i&&(l=s.left-t.left+e.scrollLeft+s.width/4),e.scrollTo({behavior:n,left:l})}let c=o.nextSibling,d=c?.getBoundingClientRect()||r;if(t.right<d.right){let l=e.scrollWidth;c&&(l=d.right-t.right+e.scrollLeft-d.width/4),e.scrollTo({behavior:n,left:l})}};function Mn(e){let o,t,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e))for(o=0;o<e.length;o++)e[o]&&(t=Mn(e[o]))&&(r&&(r+=" "),r+=t);else for(o in e)e[o]&&(r&&(r+=" "),r+=o);return r}function Cl(...e){let o=0,t,r,n="";for(;o<e.length;)(t=e[o++])&&(r=Mn(t))&&(n&&(n+=" "),n+=r);return n}var L=Cl;function Zt(e,o){if(e!=null){if(typeof e=="function"){e(o);return}try{e.current=o}catch{throw new Error(`Cannot assign value '${o}' to ref '${e}'`)}}}function hl(...e){return o=>{e.forEach(t=>{Zt(t,o)})}}var J=hl;function jt(e,o="en-US",t){let r=typeof e=="string"||typeof e=="number"?new Date(e):e;return new Intl.DateTimeFormat(o,t).format(r)}function Io(e,o="en-US",t){return jt(e,o,{year:"2-digit",month:"2-digit",day:"2-digit",...t})}function Dr(e,o="en-US",t){return jt(e,o,{year:"numeric",month:"long",day:"2-digit",hour:"2-digit",hour12:!1,minute:"2-digit",...t})}function Ar(e,o="en-US",t){return jt(e,o,{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",hour12:!1,minute:"2-digit",...t})}function Nr(e,o="en-US",t){return jt(e,o,{hour:"2-digit",hour12:!1,minute:"2-digit",...t})}function $r(e,o="USD",t="en-US",r){return new Intl.NumberFormat(t,{currency:o,...r,style:"currency"}).format(e)}function kr(e,o=2,t="en-US",r){return new Intl.NumberFormat(t,{minimumFractionDigits:o,maximumFractionDigits:o,...r,style:"percent"}).format(Number(e))}var Do=require("react"),En=(0,Do.createContext)(null),Tt=()=>{let e=(0,Do.useContext)(En);if(!e)throw new Error("`useAccordion` must be used within a `<Accordion />`");return e},Ao=En;var eo=require("react/jsx-runtime"),Vr={isVisible:!0,position:"start"},bl=(0,yt.forwardRef)((e,o)=>{let{children:t,className:r,value:n,defaultValue:i,expandMode:s="multiple",size:c="md",arrow:d=Vr,variant:l="plain",color:m="secondary",splitted:a,bordered:u,shadow:p,indicator:C,onChange:x,...v}=e,b=f,[T,y]=(0,yt.useState)(n??i??[]),g=h=>{n!==void 0?x?.(h):y(h)};return(0,yt.useEffect)(()=>{n!==void 0&&y(n)},[n]),(0,eo.jsx)(Ao.Provider,{value:{value:T,expandMode:s,arrow:{isVisible:d.isVisible??Vr.isVisible,position:d.position??Vr.position},variant:l,color:m,indicator:C,onChange:g},children:(0,eo.jsxs)("div",{ref:o,className:L(`${b}accordion`,{[`${b}accordion--${c}`]:c,[`${b}accordion--${l}`]:l,[`${b}accordion--${m}`]:m,[`${b}accordion--${m}`]:m,[`${b}accordion--splitted`]:a,[`${b}accordion--bordered`]:u,[`${b}accordion--shadow`]:p},r),...v,children:[(0,eo.jsx)("div",{className:L(`${b}outline`)}),t]})})}),wn=bl;var Ge=require("react"),kn=require("uuid");var Ie=require("react");var No=require("react"),In=(0,No.createContext)(null),ze=()=>{let e=(0,No.useContext)(In);if(!e)throw new Error("`useCollapse` must be used within a `<Collapse />`");return e},$o=In;var Dn=require("react/jsx-runtime"),Tl=({children:e,isOpen:o,onOpen:t,onClose:r,onToggle:n})=>{let i=(0,Ie.useRef)(null),[s,c]=(0,Ie.useState)(o??!1),[d,l]=(0,Ie.useState)(!1),[m,a]=Ie.Children.toArray(e),u=()=>{c(!0),t?.()},p=()=>{c(!1),r?.()},C=()=>{c(x=>!x),n?.()};return(0,Ie.useEffect)(()=>{o!==void 0&&c(o),setTimeout(()=>{l(!!o)},100)},[o]),(0,Dn.jsxs)($o.Provider,{value:{collapseRef:i,isOpen:s,heightAuto:d,onOpen:u,onClose:p,onToggle:C},children:[m,a]})},Be=Tl;var An=E(require("clsx")),Nn=require("react");var $n=require("react/jsx-runtime"),yl=(0,Nn.forwardRef)(({children:e,style:o,className:t},r)=>{let{collapseRef:n,isOpen:i,heightAuto:s}=ze(),c=f;return(0,$n.jsx)("div",{ref:J(r,n),className:(0,An.default)(`${c}collapse`,{[`${c}collapse--is-open`]:i},t),style:{...o,height:i&&s?"auto":i||!i&&s?n.current?.scrollHeight:0},"data-hidden":!i,children:e})}),Te=yl;var Rt=require("react");var Rl=(0,Rt.forwardRef)(({children:e},o)=>{let{collapseRef:t,onToggle:r}=ze(),n=f,i=Rt.Children.only(e),{className:s,onClick:c,...d}=i.props;return(0,Rt.cloneElement)(i,{ref:o,className:L(`${n}collapse-trigger`,s),onClick:l=>{t.current&&(r(),c?.(l))},...d})}),ye=Rl;var gt=require("react/jsx-runtime"),Vn=(0,Ge.createContext)(null),ko=()=>{let e=(0,Ge.useContext)(Vn);if(!e)throw new Error("`useAccordionItem` must be used within a `<AccordionItem />`");return e},gl=(0,Ge.forwardRef)((e,o)=>{let{children:t,className:r,value:n,variant:i,color:s,indicator:c,...d}=e,[l]=(0,Ge.useState)((0,kn.v4)()),m=n??l,a=Tt(),u=i??a.variant,p=s??a.color,C=c??a.indicator,x=f,v=a.value.includes(m),b=()=>{let T=a.value.indexOf(m),y=a.expandMode==="multiple"?[...a.value]:[];T===-1?y.push(m):y.splice(T,1),a.onChange(y)};return(0,gt.jsx)(Vn.Provider,{value:{value:m,indicator:C},children:(0,gt.jsxs)("div",{ref:o,className:L(`${x}accordion-item`,{[`${x}accordion-item--selected`]:v,[`${x}accordion-item--${u}`]:u,[`${x}accordion-item--${p}`]:p},r),...d,children:[(0,gt.jsx)("div",{className:L(`${x}outline`)}),(0,gt.jsx)(Be,{isOpen:v,onToggle:b,children:t})]})})}),Hn=gl;var jn=require("react");var _n=require("react"),at=require("react/jsx-runtime"),Sl=(0,_n.forwardRef)((e,o)=>(0,at.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-alert-triangle",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,at.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,at.jsx)("path",{d:"M12 9v4"}),(0,at.jsx)("path",{d:"M10.363 3.591l-8.106 13.534a1.914 1.914 0 0 0 1.636 2.871h16.214a1.914 1.914 0 0 0 1.636 -2.87l-8.106 -13.536a1.914 1.914 0 0 0 -3.274 0z"}),(0,at.jsx)("path",{d:"M12 16h.01"})]})),Hr=Sl;var On=require("react"),to=require("react/jsx-runtime"),Ll=(0,On.forwardRef)((e,o)=>(0,to.jsxs)("svg",{ref:o,stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,to.jsx)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,to.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})]})),re=Ll;var Fn=require("react"),oo=require("react/jsx-runtime"),Pl=(0,Fn.forwardRef)((e,o)=>(0,oo.jsxs)("svg",{ref:o,stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,oo.jsx)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,oo.jsx)("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"})]})),ne=Pl;var zn=require("react"),St=require("react/jsx-runtime"),Ml=(0,zn.forwardRef)((e,o)=>(0,St.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-circle-check",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,St.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,St.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,St.jsx)("path",{d:"M9 12l2 2l4 -4"})]})),_r=Ml;var Bn=require("react"),Lt=require("react/jsx-runtime"),El=(0,Bn.forwardRef)((e,o)=>(0,Lt.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",strokeWidth:"2",stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,Lt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,Lt.jsx)("path",{d:"M18 6l-12 12"}),(0,Lt.jsx)("path",{d:"M6 6l12 12"})]})),q=El;var Gn=require("react"),st=require("react/jsx-runtime"),wl=(0,Gn.forwardRef)((e,o)=>(0,st.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-info-circle",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,st.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,st.jsx)("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),(0,st.jsx)("path",{d:"M12 9h.01"}),(0,st.jsx)("path",{d:"M11 12h1v4h1"})]})),Or=wl;var Kn=require("react"),ro=require("react/jsx-runtime"),Il=(0,Kn.forwardRef)((e,o)=>(0,ro.jsxs)("svg",{ref:o,stroke:"currentColor",fill:"none",strokeWidth:"2",viewBox:"0 0 24 24",strokeLinecap:"round",strokeLinejoin:"round",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e,children:[(0,ro.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,ro.jsx)("path",{d:"M12 3a9 9 0 1 0 9 9"})]})),De=Il;var Xn=require("react"),Pt=require("react/jsx-runtime"),Dl=(0,Xn.forwardRef)((e,o)=>(0,Pt.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-circle-x",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,Pt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,Pt.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,Pt.jsx)("path",{d:"M10 10l4 4m0 -4l-4 4"})]})),Fr=Dl;var Un=require("react"),lt=require("react/jsx-runtime"),Al=(0,Un.forwardRef)((e,o)=>(0,lt.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-arrow-left",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,lt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,lt.jsx)("path",{d:"M5 12l14 0"}),(0,lt.jsx)("path",{d:"M5 12l6 6"}),(0,lt.jsx)("path",{d:"M5 12l6 -6"})]})),zr=Al;var Wn=require("react"),ct=require("react/jsx-runtime"),Nl=(0,Wn.forwardRef)((e,o)=>(0,ct.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icon-tabler-arrow-right",width:24,height:24,viewBox:"0 0 24 24",strokeWidth:2,stroke:"currentColor",fill:"none",strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,ct.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,ct.jsx)("path",{d:"M5 12l14 0"}),(0,ct.jsx)("path",{d:"M13 18l6 -6"}),(0,ct.jsx)("path",{d:"M13 6l6 6"})]})),Br=Nl;var qn=require("react"),no=require("react/jsx-runtime"),$l=(0,qn.forwardRef)((e,o)=>(0,no.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",className:"icon icon-tabler icons-tabler-outline icon-tabler-check",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round",...e,children:[(0,no.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,no.jsx)("path",{d:"M5 12l5 5l10 -10"})]})),Gr=$l;var Qn=require("react"),io=require("react/jsx-runtime"),kl=(0,Qn.forwardRef)((e,o)=>(0,io.jsxs)("svg",{ref:o,xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",className:"icon icon-tabler icons-tabler-filled icon-tabler-circle",...e,children:[(0,io.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,io.jsx)("path",{d:"M7 3.34a10 10 0 1 1 -4.995 8.984l-.005 -.324l.005 -.324a10 10 0 0 1 4.995 -8.336z"})]})),Kr=kl;var Yn=require("react"),Jn=require("react/jsx-runtime"),Vl=(0,Yn.forwardRef)((e,o)=>(0,Jn.jsx)("svg",{ref:o,stroke:"currentColor",fill:"currentColor",strokeWidth:"0",viewBox:"0 0 24 24",height:"1em",width:"1em",xmlns:"http://www.w3.org/2000/svg",...e})),Vo=Vl;var Zn=E(require("clsx")),Mt=require("react");var Hl=(0,Mt.forwardRef)(({children:e,color:o="inherit",size:t},r)=>{let n=Mt.Children.only(e);return(0,Mt.cloneElement)(n,{ref:r,...n.props,className:(0,Zn.default)(`${f}icon`,{[`${f}icon--${o}`]:o,[`${f}icon--${t}`]:t},n.props.className)})}),w=Hl;var A=require("react/jsx-runtime"),_l=(0,jn.forwardRef)((e,o)=>{let{as:t="div",children:r,className:n,title:i,subtitle:s,startContent:c,endContent:d,bordered:l=!0,collapsible:m=!0,arrow:a,slotProps:u,...p}=e,C=f,{arrow:x}=Tt(),v=ko(),{isOpen:b,onToggle:T}=ze(),y={isVisible:a?.isVisible??x.isVisible,position:a?.position??x.position},g={cursor:"pointer"},h=S=>{S.stopPropagation(),T()},R=(0,A.jsxs)(t,{ref:o,className:L(`${C}accordion-header`,{[`${C}accordion-header--collapsible`]:m,[`${C}accordion-header--bordered`]:l},n),...p,children:[(0,A.jsx)("div",{className:`${C}surface`}),(c!==void 0||y.isVisible&&y.position==="start")&&(0,A.jsx)("div",{...u?.startContent,className:L(`${C}accordion-header__start-content`,u?.startContent?.className),children:y.isVisible&&y.position==="start"?(0,A.jsxs)(A.Fragment,{children:[!m&&a?.isVisible===void 0?(0,A.jsx)(w,{children:(0,A.jsx)(Vo,{})}):(0,A.jsx)(A.Fragment,{children:v.indicator!==void 0?v.indicator({isOpen:b}):(0,A.jsx)(w,{children:b?(0,A.jsx)(ne,{style:g,onClick:h}):(0,A.jsx)(re,{style:g,onClick:h})})}),c]}):c}),(0,A.jsx)("div",{...u?.content,className:L(`${C}accordion-header__content`,u?.content?.className),children:i!==void 0||s!==void 0?(0,A.jsxs)(A.Fragment,{children:[i!==void 0&&(0,A.jsx)("div",{...u?.title,className:L(`${C}accordion-header__title`,u?.title?.className),children:i}),s!==void 0&&(0,A.jsx)("div",{...u?.subtitle,className:L(`${C}accordion-header__subtitle`,u?.subtitle?.className),children:s})]}):r}),(d!==void 0||y.isVisible&&y.position==="end")&&(0,A.jsx)("div",{...u?.endContent,className:L(`${C}accordion-header__end-content`,u?.endContent?.className),children:y.isVisible&&y.position==="end"?(0,A.jsxs)(A.Fragment,{children:[d,!m&&a?.isVisible===void 0?(0,A.jsx)(w,{children:(0,A.jsx)(Vo,{})}):(0,A.jsx)(A.Fragment,{children:v.indicator!==void 0?v.indicator({isOpen:b}):(0,A.jsx)(w,{children:b?(0,A.jsx)(ne,{style:g,onClick:h}):(0,A.jsx)(re,{style:g,onClick:h})})})]}):d})]});return m?(0,A.jsx)(ye,{children:R}):R}),ei=_l;var ti=require("react");var Et=require("react/jsx-runtime"),Ol=(0,ti.forwardRef)(({children:e,className:o,...t},r)=>{let n=f;return(0,Et.jsx)(Te,{children:(0,Et.jsx)("div",{ref:r,children:(0,Et.jsxs)("div",{className:L(`${n}accordion-body`,o),...t,children:[(0,Et.jsx)("div",{className:`${n}surface`}),e]})})})}),oi=Ol;var ri=require("react");var Ho=require("react/jsx-runtime"),Fl=(0,ri.forwardRef)(({children:e,className:o,...t},r)=>(0,Ho.jsx)(Te,{children:(0,Ho.jsx)("div",{ref:r,children:(0,Ho.jsx)("div",{className:L(`${f}accordion-content`,o),...t,children:e})})})),ni=Fl;var ii=require("react"),si=require("react/jsx-runtime"),zl=(0,ii.forwardRef)(({children:e},o)=>(0,si.jsx)(ye,{ref:o,children:e})),ai=zl;var j=require("react");var Ke=require("react");var ci=require("react");var _o=require("react"),Bl=typeof window<"u"?_o.useLayoutEffect:_o.useEffect,li=Bl;function Gl(e){let o=(0,ci.useRef)(e);li(()=>{o.current=e},[e])}var Xr=Gl;function ui(e,o){let t=(0,Ke.useCallback)(()=>{if(typeof window>"u")return o;try{let c=window.localStorage.getItem(e);return c?Kl(c):o}catch(c){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,c),o}},[o,e]),[r,n]=(0,Ke.useState)(t),i=(0,Ke.useCallback)(c=>{typeof window>"u"&&console.warn(`Tried setting localStorage key \u201C${e}\u201D even though environment is not a client`);try{let d=c instanceof Function?c(r):c;window.localStorage.setItem(e,JSON.stringify(d)),n(d),window.dispatchEvent(new Event("local-storage"))}catch(d){console.warn(`Error setting localStorage key \u201C${e}\u201D:`,d)}},[e,r]);(0,Ke.useEffect)(()=>{n(t())},[]);let s=(0,Ke.useCallback)(()=>{n(t())},[t]);return Xr("storage",s),Xr("local-storage",s),[r,i]}function Kl(e){try{return e==="undefined"?void 0:JSON.parse(e??"")}catch{return}}var Oo=require("react"),di=e=>{let o=(0,Oo.useRef)();return(0,Oo.useEffect)(()=>{o.current=e}),o.current};var pi=require("react");function Xl({defaultValue:e}={}){let[o,t]=(0,pi.useState)(e||!1);return{isOpen:o,onOpen:()=>{t(!0)},onClose:()=>{t(!1)},onToggle:()=>{t(s=>!s)}}}var Xe=Xl;var fi=require("react"),mi=["mousedown","touchstart"],Ul=(e,o)=>{(0,fi.useEffect)(()=>{let t=r=>{!e.current||e.current.contains(r.target)||o(r)};return mi.forEach(r=>document.addEventListener(r,t)),()=>{mi.forEach(r=>document.removeEventListener(r,t))}},[e,o])},Fo=Ul;var Re=require("react"),vi=e=>{let[o,t]=(0,Re.useState)(1),r=(0,Re.useMemo)(()=>o+1<=e,[o,e]),n=(0,Re.useMemo)(()=>o-1>=1,[o]),i=(0,Re.useCallback)(l=>{let m=l instanceof Function?l(o):l;if(m>=1&&m<=e){t(m);return}throw new Error("Step not valid")},[e,o]),s=(0,Re.useCallback)(()=>{r&&t(l=>l+1)},[r]),c=(0,Re.useCallback)(()=>{n&&t(l=>l-1)},[n]),d=(0,Re.useCallback)(()=>{t(1)},[]);return[o,{goToNextStep:s,goToPrevStep:c,canGoToNextStep:r,canGoToPrevStep:n,setStep:i,reset:d}]};var zo=require("react");function Wl(e,o){let[t,r]=(0,zo.useState)(e),n=typeof o=="number"?o:o?.delay??500;return(0,zo.useEffect)(()=>{let i=setTimeout(()=>{r(e),typeof o!="number"&&o?.callback?.()},n);return()=>{clearTimeout(i)}},[e,n]),t}var xi=Wl;var Bo=require("react");function ql(e){let o=i=>typeof window<"u"?window.matchMedia(i).matches:!1,[t,r]=(0,Bo.useState)(o(e));function n(){r(o(e))}return(0,Bo.useEffect)(()=>{let i=window.matchMedia(e);return n(),i.addListener?i.addListener(n):i.addEventListener("change",n),()=>{i.removeListener?i.removeListener(n):i.removeEventListener("change",n)}},[e]),t}var Ci=ql;var hi=require("@tanstack/react-virtual"),bi=require("react");function Ql(e){let{parentRef:o,total:t,count:r=0,overscan:n=5,hasNextPage:i,isFetchingNextPage:s,onFetchNextPage:c,estimateSize:d}=e,l=(0,hi.useVirtualizer)({count:t||(i?r+1:r),getScrollElement:()=>o.current,estimateSize:d,overscan:n});return(0,bi.useEffect)(()=>{if(!c)return;let[m]=[...l.getVirtualItems()].reverse();m&&m.index>=r-1&&i&&!s&&c?.()},[i,c,r,s,l.getVirtualItems()]),{scrollOffset:l.scrollOffset,hasNextPage:i,getVirtualItems:l.getVirtualItems,getTotalSize:l.getTotalSize,scrollToIndex:(m,a)=>{l.scrollToIndex(m,a)},scrollToOffset:(m,a)=>{l.scrollToOffset(m,a)}}}var Ue=Ql;var ge=require("react");var Ur=(n=>(n[n.IDLE=0]="IDLE",n[n.LOADING=1]="LOADING",n[n.SUCCESS=2]="SUCCESS",n[n.ERROR=3]="ERROR",n))(Ur||{});var Ti=e=>(o,t,r)=>{async function n(i,s){if(s.length===0)return i;let c=[];for(let l=0;l<s.length;l++){let m=s[l],a=m+1,u=await e.query({page:a}),p=e.onRefetchedPage(u,m);if(i.pages[m]=p.page,c.push(m),!p.isSync)break}let d=s.filter(l=>!c.includes(l));return n(i,d.length===0?[]:[...d,...r])}return n({...o},t)};function yi(e,o=[]){let[t,r]=(0,ge.useState)({pages:[]}),[n,i]=(0,ge.useState)(),[s,c]=(0,ge.useState)(e.disabled?0:1),[d,l]=(0,ge.useState)(!1),[m,a]=(0,ge.useState)(!1),[u,p]=(0,ge.useState)(!0),[C,x]=(0,ge.useState)(!1),v=async()=>{try{c(1),i(void 0),x(!0);let g=t.pages.length-1,h=e.getNextPage(t.pages[g],t.pages),R=await e.query({page:h}),S={pages:[...t.pages,R]};r(S);let P=S.pages.length-1,M=e.getNextPage(S.pages[P],S.pages);p(M!==void 0),x(!1),c(2),e.onSuccess?.(S)}catch(g){i(g),c(3),e.onError?.(g)}finally{x(!1)}},b=g=>{let h={pages:[]};t.pages.forEach((R,S)=>{let P=g(R,S);h[S]=P}),r(h)},T=async(g={})=>{try{c(1),i(void 0),a(!1);let h=[],R=[];g.refetchPage?t.pages.forEach((P,M)=>{g.refetchPage(P,M)?h.push(M):R.push(M)}):g.refetchPages?(h=g.refetchPages(t.pages),R=t.pages.map((P,M)=>M).filter(P=>!h.includes(P))):h=t.pages.map((P,M)=>M);let S;if(g.onRefetchedPage)S=await Ti({query:e.query,onRefetchedPage:g.onRefetchedPage})(t,h,R);else{S={...t};for(let P=0;P<h.length;P++){let M=h[P],$=M+1,k=await e.query({page:$});S.pages[M]=k}}r(S),c(2),e.onSuccess?.(S)}catch(h){i(h),c(3),e.onError?.(h)}finally{a(!0)}},y=()=>{r({pages:[]}),i(void 0),c(0),l(!1),a(!1),p(!0),x(!0)};return(0,ge.useEffect)(()=>{if(e.disabled)return;(async()=>{try{c(1),i(void 0),x(!0);let R=await e.query({page:void 0}),S={pages:[R]};r(S);let P=e.getNextPage(R,[R]);p(P!==void 0),x(!1),c(2),e.onSuccess?.(S)}catch(h){i(h),c(3),e.onError?.(h)}finally{d||l(!0),x(!1)}})()},[...o,e.disabled]),{data:t,error:n,status:s,isLoading:s===1,isSuccess:s===2,isError:s===3,isFetching:s===1&&!d,isFetched:d,isRefetching:s===1&&d&&!m,isRefetched:m,hasNextPage:u,isFetchingNextPage:C,fetchNextPage:v,unstable_mutate:b,unstable_refetch:T,unstable_remove:y}}var xe=require("react");function Ri(e,o=[]){let[t,r]=(0,xe.useState)(),[n,i]=(0,xe.useState)(),[s,c]=(0,xe.useState)(e.disabled?0:1),d=(0,xe.useRef)(!1),l=(0,xe.useRef)(!1),[m,a]=(0,xe.useState)(d.current),[u,p]=(0,xe.useState)(l.current),C=async()=>{try{c(1),i(void 0),l.current=!1,p(l.current);let b=await e.query(),T=e.select!==void 0?e.select(b):b;r(T),c(2),e.onSuccess?.(T)}catch(b){i(b),c(3),e.onError?.(b)}finally{l.current=!0,p(l.current)}},x=b=>{r(b)},v=()=>{r(void 0),i(void 0),c(0),d.current=!1,l.current=!1,a(d.current),p(l.current)};return(0,xe.useEffect)(()=>{if(e.disabled)return;(async()=>{try{c(1),i(void 0);let T=await e.query(),y=e.select!==void 0?e.select(T):T;r(y),c(2),e.onSuccess?.(y)}catch(T){i(T),c(3),e.onError?.(T)}finally{d.current||(d.current=!0,a(d.current))}})()},[...o,e.disabled]),{data:t,error:n,status:s,isLoading:s===1,isSuccess:s===2,isError:s===3,isFetching:s===1&&!m,isFetched:m,isRefetching:s===1&&m&&!u,isRefetched:u,mutate:x,refetch:C,remove:v}}var wt=require("react");var Wr=(n=>(n[n.IDlE=0]="IDlE",n[n.LOADING=1]="LOADING",n[n.SUCCESS=2]="SUCCESS",n[n.ERROR=3]="ERROR",n))(Wr||{});var gi=e=>{let[o,t]=(0,wt.useState)(0),[r,n]=(0,wt.useState)(),[i,s]=(0,wt.useState)(),[c,d]=(0,wt.useState)(!1),[l,m]=(0,wt.useState)(!1);return{isLoading:c,isError:l,status:o,data:r,error:i,mutate:async u=>{try{d(!0),t(1);let p=await e.mutation(u);return n(p),t(2),{isError:()=>!1,isOK:()=>!0,data:p}}catch(p){return s(p.message),m(!0),t(3),{isError:()=>!0,isOK:()=>!1,error:p.message}}finally{d(!1)}}}};var We=require("react"),Yl={width:0,height:0};function Jl(e){let o=(0,We.useRef)(0),[t,r]=(0,We.useState)(Yl),n=(0,We.useMemo)(()=>typeof window<"u"?new ResizeObserver(i=>{let s=i[0];s&&(cancelAnimationFrame(o.current),o.current=requestAnimationFrame(()=>{(e.ref?.current??e.target)&&(e.callback?.(t),r({width:s.contentRect.width,height:s.contentRect.height}))}))}):null,[]);return(0,We.useEffect)(()=>{let i=e.ref?.current??e.target;return i&&n?.observe(i),()=>{n?.disconnect(),o.current&&cancelAnimationFrame(o.current)}},[e.ref?.current,e.target]),t}var It=Jl;var Si=require("react");function qr(){return typeof window.ResizeObserver<"u"}function Zl(e){let{ref:o,onResize:t}=e;(0,Si.useEffect)(()=>{let r=o?.current;if(r)if(qr()){let n=new window.ResizeObserver(i=>{i.length&&t()});return n.observe(r),()=>{r&&n.unobserve(r)}}else return window.addEventListener("resize",t),()=>{window.removeEventListener("resize",t)}},[o,t])}var Li=Zl;var Dt=require("react");function jl(e){let o=(0,Dt.useRef)(null);return(0,Dt.useLayoutEffect)(()=>{o.current=e},[e]),(0,Dt.useCallback)((...t)=>{let r=o.current;return r(...t)},[])}var ao=jl;var At=require("react");function ec(e){let[o,t]=(0,At.useState)(e),r=(0,At.useRef)(null),n=ao(()=>{if(!r.current)return;let s=r.current.next();if(s.done){r.current=null;return}o===s.value?n():t(s.value)});(0,At.useLayoutEffect)(()=>{r.current&&n()});let i=ao(s=>{r.current=s(o),n()});return[o,i]}var Pi=ec;var qe=require("react");var Mi=(i=>(i[i.XS=0]="XS",i[i.SM=1]="SM",i[i.MD=2]="MD",i[i.LG=3]="LG",i[i.XL=4]="XL",i[i["2XL"]=5]="2XL",i))(Mi||{});var Qr={xs:0,sm:576,md:768,lg:992,xl:1200,"2xl":1400},Ce=[{key:"2xl",mq:5},{key:"xl",mq:4},{key:"lg",mq:3},{key:"md",mq:2},{key:"sm",mq:1},{key:"xs",mq:0}];function Yr(e){let o=e.ref,t={...Qr,...e.breakpoints},r=(0,qe.useRef)(0),[n,i]=(0,qe.useState)(),s=(0,qe.useMemo)(()=>typeof window<"u"?new ResizeObserver(c=>{c[0]&&(cancelAnimationFrame(r.current),r.current=requestAnimationFrame(()=>{if(o.current){let l=o.current.clientWidth;l>=t["2xl"]?i(5):l>=t.xl?i(4):l>=t.lg?i(3):l>=t.md?i(2):l>=t.sm?i(1):i(0)}}))}):null,[]);return(0,qe.useEffect)(()=>(o.current&&s?.observe(o.current),()=>{s?.disconnect(),r.current&&cancelAnimationFrame(r.current)}),[o.current]),n}var Ei=E(require("clsx")),wi=require("react");var Go=require("react"),so=(0,Go.createContext)(null),Ko=()=>(0,Go.useContext)(so);var Qe=require("react/jsx-runtime"),Ae=(0,wi.forwardRef)(({as:e="button",children:o,className:t,style:r,variant:n,color:i,size:s,iconOnly:c,startContent:d,endContent:l,block:m,loading:a,disabled:u,type:p="button",cssVars:C,...x},v)=>{let b=Ko(),T=f,y=n||"filled",g=i||"primary",h=s||"md",R=u||!1;return y=n??b?.variant??y,g=i??b?.color??g,h=s??b?.size??h,R=a===!0?!0:u??b?.disabled??R,(0,Qe.jsxs)(e,{ref:v,className:(0,Ei.default)(`${T}button`,{[`${T}button--${y}`]:y,[`${T}button--${g}`]:g,[`${T}button--${h}`]:h,[`${T}button--block`]:m,[`${T}button--icon-only`]:c,[`${T}button--disabled`]:R},t),disabled:R,type:p,style:{...r,[`--${T}primary-color`]:C?.color,[`--${T}button-font-size`]:C?.fontSize,[`--${T}button-font-weight`]:C?.fontWeight,[`--${T}button-font-style`]:C?.fontStyle},...x,children:[(0,Qe.jsx)("div",{className:`${T}overlay`}),(0,Qe.jsx)("div",{className:`${T}outline`}),a?(0,Qe.jsx)(w,{children:(0,Qe.jsx)(De,{className:`${T}animation-spin`})}):d,(!a||!c)&&(0,Qe.jsx)("div",{className:`${T}button__content`,children:o}),l]})});var Ii=E(require("clsx")),Di=require("react");var Jr=require("react/jsx-runtime"),Ai=(0,Di.forwardRef)(({children:e,direction:o="row",variant:t="filled",color:r="primary",size:n="md",disabled:i,className:s,...c},d)=>{let l=f;return(0,Jr.jsx)(so.Provider,{value:{direction:o,variant:t,color:r,size:n,disabled:i},children:(0,Jr.jsx)("div",{ref:d,className:(0,Ii.default)(`${l}button-group`,{[`${l}button-group--${o}`]:o},s),...c,children:e})})});var Ni=E(require("clsx")),$i=require("react");var Ye=require("react/jsx-runtime"),tc=(0,$i.forwardRef)(({as:e="div",children:o,className:t,style:r,variant:n="filled",color:i="primary",size:s="md",startContent:c,endContent:d,closable:l,disabled:m,cssVars:a,onClose:u,...p},C)=>{let x=f,v=b=>{b.stopPropagation(),l&&u?.()};return(0,Ye.jsxs)(e,{ref:C,className:(0,Ni.default)(`${x}chip`,{[`${x}chip--${n}`]:n,[`${x}chip--${i}`]:i,[`${x}chip--${s}`]:s,[`${x}chip--disabled`]:m,[`${x}chip--closable`]:l},t),style:{...r,[`--${x}primary-color`]:a?.color,[`--${x}chip-font-size`]:a?.fontSize,[`--${x}chip-font-weight`]:a?.fontWeight,[`--${x}chip-font-style`]:a?.fontStyle},...p,children:[(0,Ye.jsx)("div",{className:`${x}overlay`}),(0,Ye.jsx)("div",{className:`${x}outline`}),c,o,d,l&&(0,Ye.jsx)("div",{className:`${x}chip__closable`,onClick:v,children:(0,Ye.jsx)(w,{children:(0,Ye.jsx)(q,{})})})]})}),Nt=tc;var le=require("react");var ki=require("react"),Vi=require("react-dom");var Hi=require("react/jsx-runtime"),oc=(0,ki.forwardRef)(({children:e,container:o},t)=>(0,Vi.createPortal)((0,Hi.jsx)("div",{ref:t,className:`${f}portal`,children:e}),o||document.body)),$t=oc;var _i=E(require("clsx")),Oi=require("react"),Fi=require("react-transition-group"),zi=require("react/jsx-runtime"),rc=(0,Oi.forwardRef)((e,o)=>{let{children:t,className:r,nodeRef:n,name:i,isOpen:s,enter:c=0,leave:d=0,mountOnEnter:l,unmountOnExit:m,onExited:a}=e;return(0,zi.jsx)(Fi.CSSTransition,{nodeRef:n,in:s,appear:!0,timeout:{enter:c,exit:d},mountOnEnter:l,unmountOnExit:m,classNames:(0,_i.default)(i,r),onExited:a,children:t})}),Se=rc;var Xo=require("react"),Bi=(0,Xo.createContext)(null),Z=()=>{let e=(0,Xo.useContext)(Bi);if(!e)throw new Error("`usePopover` must be used within a `<Popover />`");return e},Gi=Bi;var lo=require("react/jsx-runtime"),nc=e=>{let{children:o,target:t,autoClose:r=!0,triggerClosable:n=!0,isOpen:i,onOpen:s,onClose:c,onToggle:d,onAfterClose:l}=e,m=(0,le.useRef)(null),a=(0,le.useRef)(null),[u,p]=(0,le.useState)(e.isOpen||!1),[C,x]=le.Children.toArray(o),v=f,b=()=>{i!==void 0?s?.():p(!0)},T=()=>{i!==void 0?c?.():p(!1)},y=()=>{i!==void 0?d?.():p(g=>!g)};return(0,le.useEffect)(()=>{p(i||!1)},[i]),(0,lo.jsxs)(Gi.Provider,{value:{triggerRef:m,contentRef:a,target:t,isOpen:u,autoClose:r,triggerClosable:n,onOpen:b,onClose:T,onToggle:y},children:[C,(0,lo.jsx)(Se,{nodeRef:a,isOpen:u,enter:300,leave:150,name:`${v}popover`,unmountOnExit:!0,onExited:l,children:(0,lo.jsx)($t,{children:(0,le.cloneElement)(le.Children.only(x),{...x.props,ref:a})})})]})},kt=nc;var Le=require("react");var Xi=require("react/jsx-runtime");function Ki(e){return e==null?null:e.scrollHeight>e.clientHeight?e:Ki(e.parentNode)}var ic=(0,Le.forwardRef)((e,o)=>{let{children:t,style:r,className:n,onClick:i,...s}=e,{triggerRef:c,contentRef:d,target:l,onClose:m}=Z(),a=f,u=(0,Le.useRef)(null),[p,C]=(0,Le.useState)({position:"absolute",top:0,left:0,visibility:"hidden"}),x=Ki(c.current)||document.body;It({target:x,callback:()=>{b()}}),Fo(d,T=>{let y=c.current;!y||y.contains(T.target)||m()});let v=T=>{T.stopPropagation(),i?.(T)},b=(0,Le.useCallback)(()=>{let T=d.current?.getBoundingClientRect(),y=c.current?.getBoundingClientRect();if(!T||!y||!x)return;let g={innerWidth:window.innerWidth,innerHeight:window.innerHeight},h={width:y.width,height:y.height,top:y.top+window.scrollY,bottom:y.top+y.height+window.scrollY,left:y.left+window.scrollX,right:y.left+y.width+window.scrollX},R=h.left+T.width>g.innerWidth,S=h.top+T.height>g.innerHeight+window.scrollY,P={...l&&{width:h.width,minWidth:"auto"},position:"absolute",top:S?void 0:h.bottom,bottom:S?g.innerHeight-h.top:void 0,left:R?void 0:h.left,right:R?g.innerWidth-h.right:void 0,visibility:void 0};C(P)},[]);return(0,Le.useEffect)(()=>(b(),x.addEventListener("scroll",b),window.addEventListener("orientationchange",b),()=>{x.removeEventListener("scroll",b),window.removeEventListener("orientationchange",b)}),[]),(0,Xi.jsx)("div",{ref:J(u,o),className:L(`${a}popover`,n),style:{...r,...p},onClick:v,...s,children:t})}),Vt=ic;var Ht=require("react");var ac=(0,Ht.forwardRef)((e,o)=>{let{children:t,onClick:r,...n}=e,{isOpen:i,triggerRef:s,triggerClosable:c,onOpen:d,onClose:l}=Z(),m=Ht.Children.only(typeof t=="function"?t(i):t),a=u=>{u.preventDefault(),c&&i?l():d(),r?.(u),m.props.onClick?.(u)};return(0,Ht.cloneElement)(m,{...m.props,...n,ref:J(o,s),onClick:a})}),_t=ac;var K=require("react/jsx-runtime"),sc=({className:e,title:o,subtitle:t,icon:r,status:n,extra:i,size:s="md",...c})=>{let d=f;return(0,K.jsxs)("div",{className:L(`${d}result`,{[`${d}result--${n}`]:n,[`${d}result--${s}`]:s},e),...c,children:[r?(0,K.jsx)("div",{className:`${d}result__icon`,children:r}):n?(0,K.jsx)("div",{className:`${d}result__icon`,children:n==="sucess"?(0,K.jsx)(w,{children:(0,K.jsx)(_r,{})}):n==="info"?(0,K.jsx)(w,{children:(0,K.jsx)(Or,{})}):n==="warning"?(0,K.jsx)(w,{children:(0,K.jsx)(Hr,{})}):n==="danger"?(0,K.jsx)(w,{children:(0,K.jsx)(Fr,{})}):null}):null,(o||t)&&(0,K.jsxs)("div",{className:`${d}result__content`,children:[o&&(0,K.jsx)("div",{className:`${d}result__title`,children:o}),t&&(0,K.jsx)("div",{className:`${d}result__subtitle`,children:t})]}),i&&(0,K.jsx)("div",{className:`${d}result__extra`,children:i})]})},Ne=sc;var Ot=require("react");var Ui=require("react");var Wi=require("react/jsx-runtime"),lc=(0,Ui.forwardRef)(({as:e="div",children:o,className:t,size:r="md",...n},i)=>{let s=f;return(0,Wi.jsx)(e,{ref:i,className:L(`${s}list`,{[`${s}list--${r}`]:r},t),...n,children:o})}),U=lc;var Qi=require("react");var qi=require("react");var ce=require("react/jsx-runtime"),cc=(0,qi.forwardRef)(({as:e="div",children:o,className:t,title:r,subtitle:n,startContent:i,endContent:s,level:c=1,hoverable:d,selected:l,disabled:m,slotProps:a,style:u,onClick:p,...C},x)=>{let v=f,b=T=>{p?.(T)};return(0,ce.jsxs)(e,{ref:x,className:L(`${v}list-item`,{[`${v}list-item--hoverable`]:d,[`${v}list-item--selected`]:l,[`${v}list-item--disabled`]:m},t),style:{paddingLeft:c<=1?`var(--${v}list-item-padding-x)`:`calc(${c} * var(--${v}list-item-padding-level))`,...u},onClick:b,...C,children:[(d||l)&&(0,ce.jsx)("div",{className:`${v}overlay`}),i!==void 0&&(0,ce.jsx)("div",{...a?.startContent,className:L(`${v}list-item__start-content`,a?.startContent?.className),children:i}),(0,ce.jsx)("div",{...a?.content,className:L(`${v}list-item__content`,a?.content?.className),children:r!==void 0||n!==void 0?(0,ce.jsxs)(ce.Fragment,{children:[r!==void 0&&(0,ce.jsx)("span",{...a?.title,className:L(`${v}list-item__title`,a?.title?.className),children:r}),n!==void 0&&(0,ce.jsx)("span",{...a?.subtitle,className:L(`${v}list-item__subtitle`,a?.subtitle?.className),children:n})]}):o}),s!==void 0&&(0,ce.jsx)("div",{...a?.endContent,className:L(`${v}list-item__end-content`,a?.endContent?.className),children:s})]})}),H=cc;var O=require("react/jsx-runtime"),uc=(0,Qi.forwardRef)(({children:e,startContent:o,endContent:t,expandVisible:r=!0,expandPosition:n="end",isOpen:i,onOpen:s,onClose:c,onToggle:d,...l},m)=>{let a=i!==void 0?{isOpen:i,onOpen:s,onClose:c,onToggle:d}:Xe();return(0,O.jsx)("div",{className:`${f}list-group`,children:(0,O.jsxs)(Be,{...a,children:[(0,O.jsx)(ye,{children:(0,O.jsx)(H,{ref:m,startContent:r&&n==="start"?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(w,{children:a.isOpen?(0,O.jsx)(ne,{}):(0,O.jsx)(re,{})}),o]}):o,endContent:r&&n==="end"?(0,O.jsxs)(O.Fragment,{children:[t,(0,O.jsx)(w,{children:a.isOpen?(0,O.jsx)(ne,{}):(0,O.jsx)(re,{})})]}):t,...l})}),(0,O.jsx)(Te,{children:(0,O.jsx)("div",{children:(0,O.jsx)(U,{children:e})})})]})})}),Yi=uc;var Ji=require("react");var Je=require("react/jsx-runtime"),dc=(0,Ji.forwardRef)(({as:e="div",title:o,startContent:t,endContent:r,bordered:n=!0,level:i=1,hoverable:s,selected:c,disabled:d,className:l,style:m,...a},u)=>{let p=f;return(0,Je.jsxs)(e,{ref:u,className:L(`${p}list-subheader ${p}list-item`,{[`${p}list-subheader--bordered`]:n,[`${p}list-item--hoverable`]:s,[`${p}list-item--selected`]:c,[`${p}list-item--disabled`]:d},l),style:{paddingLeft:i<=1?`var(--${p}list-item-padding-x)`:`calc(${i} * var(--${p}list-item-padding-level))`,...m},...a,children:[s&&(0,Je.jsx)("div",{className:`${p}overlay`}),t&&(0,Je.jsx)("div",{className:`${p}list-item__start-content`,children:t}),(0,Je.jsx)("div",{className:`${p}list-item__content`,children:(0,Je.jsx)("span",{className:`${p}list-item__title`,children:o})}),r&&(0,Je.jsx)("div",{className:`${p}list-item__end-content`,children:r})]})}),Zi=dc;var ji=require("react"),ea=require("react-custom-scrollbars-2");var ut=require("react/jsx-runtime"),pc=(0,ji.forwardRef)(({children:e,autoHide:o=!1,autoHeight:t=!1,style:r},n)=>{let i=f,s=a=>(0,ut.jsx)("div",{...a,className:L(`${i}scroll-area__view`,a.className)}),c=a=>(0,ut.jsx)("div",{...a,className:L(`${i}scroll-area__track ${i}scroll-area__track--horizontal`,a.className),onClick:u=>{u.stopPropagation(),a.onClick?.(u)}}),d=a=>(0,ut.jsx)("div",{...a,className:L(`${i}scroll-area__track ${i}scroll-area__track--vertical`,a.className),onClick:u=>{u.stopPropagation(),a.onClick?.(u)}}),l=a=>(0,ut.jsx)("div",{...a,className:L(`${i}scroll-area__thumb ${i}scroll-area__thumb--horizontal`,a.className)}),m=a=>(0,ut.jsx)("div",{...a,className:L(`${i}scroll-area__thumb ${i}scroll-area__thumb--vertical`,a.className)});return(0,ut.jsx)(ea.Scrollbars,{autoHide:o,className:`${i}scroll-area`,renderTrackHorizontal:c,renderTrackVertical:d,renderThumbHorizontal:l,renderThumbVertical:m,renderView:s,autoHeight:t,style:r,ref:a=>{a&&Zt(n,a.container.firstElementChild)},children:e})}),z=pc;var Uo=require("react"),ta=(0,Uo.createContext)(null),Wo=()=>{let e=(0,Uo.useContext)(ta);if(!e)throw new Error("`useAutocomplete` must be used within a `<Autocomplete />`");return e},oa=ta;var co=require("react/jsx-runtime"),mc=()=>{let{data:e,values:o,offset:t,setOffset:r,keyField:n,textField:i,onItemSelect:s,renderItem:c}=Wo(),d=(0,Ot.useRef)(null),{isOpen:l}=Z(),m=a=>{s(a),r(d.current?.scrollHeight||0)};return(0,Ot.useEffect)(()=>{l&&d.current?.scrollTo({top:t})},[l]),(0,co.jsx)(z,{ref:d,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,co.jsx)(U,{children:c?e.map(a=>(0,co.jsx)(Ot.Fragment,{children:c(a,{title:void 0,selected:o.includes(a[n]),hoverable:!0,onClick:()=>m(a)})},a[n])):e.map(a=>(0,co.jsx)(H,{title:a[i],selected:o.includes(a[n]),hoverable:!0,onClick:()=>m(a)},a[n]))})})},ra=mc;var Ft=require("react");var Zr=e=>Array.isArray(e)?e:e!==null?[e]:[],uo=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var Ze=require("react/jsx-runtime"),fc=()=>{let{data:e,values:o,keyField:t,textField:r,virtual:n,onItemSelect:i,renderItem:s}=Wo(),c=(0,Ft.useRef)(null),d=Ue({...n,count:e.length,parentRef:c}),{isOpen:l}=Z(),m=a=>{i(a)};return(0,Ft.useEffect)(()=>{if(!l)return;let a=uo(o),u=e.findIndex(p=>p[t]===a);u!==-1&&d.scrollToIndex(u,{align:"start"})},[l]),n?(0,Ze.jsx)(z,{ref:c,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Ze.jsx)(U,{children:(0,Ze.jsx)("div",{style:{height:`${d.getTotalSize()}px`,width:"100%",position:"relative"},children:d.getVirtualItems().map(a=>{let u=a.index>e.length-1,p=e[a.index];return u?(0,Ze.jsx)(H,{title:n.hasNextPage?"Loading...":"Nothing more to load",style:{position:"absolute",top:0,left:0,width:"100%",height:`${a.size}px`,transform:`translateY(${a.start}px)`}},a.index):p?s?(0,Ze.jsx)(Ft.Fragment,{children:s(p,{title:void 0,selected:o.includes(p[t]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${a.size}px`,transform:`translateY(${a.start}px)`},onClick:()=>m(p)})},a.index):(0,Ze.jsx)(H,{title:p[r],selected:o.includes(p[t]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${a.size}px`,transform:`translateY(${a.start}px)`},onClick:()=>m(p)},a.index):(0,Ze.jsx)(H,{title:`Item ${a.index} not found`,style:{position:"absolute",top:0,left:0,width:"100%",height:`${a.size}px`,transform:`translateY(${a.start}px)`}},a.index)})})})}):null},na=fc;var D=require("react/jsx-runtime"),vc=e=>{let{data:o,value:t,keyField:r="key",textField:n="text",isMultiple:i=!1,disabled:s,loading:c,clearable:d=!0,disclosure:l,virtual:m,placeholder:a,className:u,style:p,color:C="inherit",variant:x="outlined",size:v="md",startContent:b,endContent:T,onFilterChange:y,renderItem:g,renderNoData:h}=e,R=l!==void 0?l:Xe(),S=f,P=(0,j.useRef)(null),[M,$]=(0,j.useState)(""),[k,B]=(0,j.useState)(""),[pe,G]=(0,j.useState)(!1),[Y,se]=(0,j.useState)(!1),W=(0,j.useMemo)(()=>Zr(t),[t]),me=(0,j.useMemo)(()=>o.filter(N=>W.includes(N[r])),[o,W]),[Jt,Er]=(0,j.useState)(0),Mo=()=>{P?.current?.focus()},bt=N=>{if(e.isMultiple){let ve=o.filter(we=>N.includes(we[r]));e.onChange?.(ve),e.onValueChange?.(N)}else{let ve=uo(N),we=null;ve!==void 0&&(we=o.find(Eo=>Eo[r]===ve)??null),e.onChange?.(we),e.onValueChange?.(ve)}},wr=N=>{N.stopPropagation(),G(!0),B(""),e.isMultiple?(e.onChange?.([]),e.onValueChange?.([])):(e.onChange?.(null),e.onValueChange?.(null)),G(!1)},V=N=>{!R.isOpen&&R.onOpen(),G(!0),B(N.target.value),y?.(N.target.value)},oe=()=>{if(e.isMultiple){let N=[...W].slice(0,-1);bt(N)}},fe=N=>{e.isMultiple&&N.key==="Backspace"&&k===""&&oe()},it=N=>{let ve=N[r];if(e.isMultiple){let we=[...W],Eo=W.indexOf(ve);Eo===-1?we.push(ve):we.splice(Eo,1),bt(we)}else uo(W)!==ve&&bt([ve]);pe&&$(k),G(!1),P.current?.focus(),e.isMultiple||R.onClose()},ll=()=>{R.onOpen(),se(!0)},cl=()=>{if(R.onClose(),!e.isMultiple&&pe){let N=me[0];N!==void 0?(B(N[n]),y?.(M)):(B(""),y?.(M)),G(!1)}};return(0,j.useEffect)(()=>{if(!pe&&!e.isMultiple){let N=me[0];N!==void 0&&B(N[n])}},[me]),(0,j.useEffect)(()=>{Zr(t)[0]===void 0&&(B(""),y?.(""))},[t]),(0,D.jsx)(oa.Provider,{value:{data:o,values:W,keyField:r,textField:n,isMultiple:i,virtual:m,onChange:bt,onItemSelect:it,offset:Jt,setOffset:Er,renderItem:g},children:(0,D.jsxs)(kt,{target:!0,...R,isOpen:R.isOpen,onOpen:ll,onClose:cl,autoClose:"outside",children:[(0,D.jsx)(_t,{children:(0,D.jsxs)("div",{className:L(`${S}input ${S}input--filterable`,{[`${S}input--${C}`]:C,[`${S}input--${x}`]:x,[`${S}input--${v}`]:v,[`${S}input--focus`]:Y,[`${S}input--disabled`]:s,[`${S}input--clearable`]:d},u),style:p,onClick:Mo,onFocus:()=>{se(!0)},onBlur:()=>{se(!1)},children:[(0,D.jsx)("div",{className:`${S}overlay`}),(0,D.jsx)("div",{className:`${S}outline`}),b&&(0,D.jsx)("div",{className:`${S}input__start-content`,children:b}),(0,D.jsx)("div",{className:`${S}input__content`,children:i&&me.length?(0,D.jsxs)("div",{className:`${S}input__chips`,children:[me.map(N=>(0,D.jsx)(Nt,{variant:"flat",color:"secondary",size:"xs",closable:!0,onClose:()=>it(N),children:N[n]},N[r])),(0,D.jsx)("input",{ref:P,value:k,placeholder:a,disabled:s,title:k,onChange:V,onKeyDown:fe})]}):(0,D.jsx)("input",{ref:P,className:`${S}input__field`,value:k,placeholder:a,disabled:s,title:k,onChange:V})}),(0,D.jsxs)("div",{className:`${S}input__end-content`,children:[T,c?(0,D.jsx)(w,{children:(0,D.jsx)(De,{className:`${S}animation-spin`})}):d?(0,D.jsx)("div",{className:`${S}input__clearable`,children:(0,D.jsx)(Ae,{type:"button",variant:"text",color:"secondary",size:"xs",iconOnly:!0,onClick:wr,children:(0,D.jsx)(w,{children:(0,D.jsx)(q,{})})})}):null,(0,D.jsx)("div",{style:{pointerEvents:"none"},children:(0,D.jsx)(w,{color:"secondary",children:R.isOpen?(0,D.jsx)(ne,{}):(0,D.jsx)(re,{})})})]})]})}),(0,D.jsx)(Vt,{style:{maxHeight:"200px"},children:o.length===0?(0,D.jsx)(D.Fragment,{children:h?h({status:"info",title:"No data",size:"sm",onClick:()=>{R.onClose()}}):(0,D.jsx)(Ne,{status:"info",title:"No data",size:"sm",onClick:R.onClose})}):m?(0,D.jsx)(na,{}):(0,D.jsx)(ra,{})})]})})},ia=vc;var aa=E(require("clsx")),dt=require("react");var po=require("react/jsx-runtime"),xc=(0,dt.forwardRef)((e,o)=>{let{children:t,className:r,isOpen:n,placement:i="center",variant:s="opaque",closable:c=!0,scrollable:d=!1,scrollArea:l=!1,onClose:m,...a}=e,u=f,p=(0,dt.useRef)(null),C=()=>{c&&m()};return(0,dt.useEffect)(()=>(n&&(document.body.style.overflow="hidden",p.current&&(p.current.style.overflow="")),()=>{p.current&&(p.current.style.overflow="hidden"),document.body.style.overflow=""}),[n]),(0,dt.useEffect)(()=>{let x=v=>{if(v.key==="Escape"){if(!c)return;m()}};return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[c]),(0,po.jsx)(Se,{nodeRef:p,isOpen:n,name:`${f}backdrop`,enter:300,leave:300,mountOnEnter:!0,unmountOnExit:!0,children:(0,po.jsx)($t,{children:(0,po.jsx)("div",{ref:J(o,p),className:(0,aa.default)(`${u}backdrop`,{[`${u}backdrop--${i}`]:i,[`${u}backdrop--${s}`]:s,[`${u}backdrop--scrollable`]:d},r),onClick:C,...a,children:l?(0,po.jsx)(z,{autoHide:!0,children:t}):t})})})}),zt=xc;var qo=E(require("clsx"));var mo=require("react/jsx-runtime"),Cc=({children:e,className:o,color:t="primary",placement:r="top-right",content:n,unstyled:i=!1,slotProps:s})=>{let c=(0,mo.jsxs)("div",{className:(0,qo.default)(`${f}badge`,{[`${f}badge--${r}`]:r,[`${f}badge--${t}`]:t,[`${f}badge--unstyled`]:i},o),children:[(0,mo.jsx)("div",{className:(0,qo.default)(`${f}overlay`)}),n]});return e?(0,mo.jsxs)("div",{...s?.wrapper,className:(0,qo.default)(`${f}badge-wrapper`,s?.wrapper?.className),children:[e,c]}):c},sa=Cc;var Bt=require("react");var la=require("react");var Qo=require("react"),jr=(0,Qo.createContext)(null),Yo=()=>{let e=(0,Qo.useContext)(jr);if(!e)throw new Error("`useDataList` must be used within a `<DataList />`");return e};var fo=require("react/jsx-runtime"),ca=()=>{let{refs:e,data:o,values:t,setOffset:r,keyField:n,textField:i,onItemSelect:s,renderItem:c}=Yo(),d=e.parent,l=m=>{s(m),r(d.current?.scrollHeight||0)};return(0,fo.jsx)(z,{ref:d,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,fo.jsx)(U,{children:c?o.map(m=>(0,fo.jsx)(la.Fragment,{children:c(m,{title:"",selected:t.includes(m[n]),hoverable:!0,onClick:()=>l(m)})},m[n])):o.map(m=>(0,fo.jsx)(H,{title:m[i],selected:t.includes(m[n]),hoverable:!0,onClick:()=>l(m)},m[n]))})})};var ua=require("react");var je=require("react/jsx-runtime"),da=()=>{let{refs:e,data:o,values:t,keyField:r,textField:n,virtual:i,virtualizer:s,onItemSelect:c,renderItem:d}=Yo(),l=e.parent,m=s||Ue({...i,count:o.length,parentRef:l}),a=u=>{c?.(u)};return(0,je.jsx)(z,{ref:l,autoHide:!0,style:{width:"100%",height:"100%",position:"relative",maxHeight:"100%"},children:(0,je.jsx)(U,{children:(0,je.jsx)("div",{style:{height:`${m.getTotalSize()}px`,width:"100%",position:"relative"},children:m.getVirtualItems().map(u=>{let p=u.index>o.length-1,C=o[u.index];return p?(0,je.jsx)(H,{title:m.hasNextPage?"Loading...":"Nothing more to load",style:{position:"absolute",top:0,left:0,width:"100%",height:`${u.size}px`,transform:`translateY(${u.start}px)`}},u.index):C?d?(0,je.jsx)(ua.Fragment,{children:d(C,{title:"",selected:t.includes(C[r]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${u.size}px`,transform:`translateY(${u.start}px)`},onClick:()=>a(C)})},u.index):(0,je.jsx)(H,{title:C[n],selected:t.includes(C[r]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${u.size}px`,transform:`translateY(${u.start}px)`},onClick:()=>a(C)},u.index):(0,je.jsx)(H,{title:`Item ${u.index} not found`,style:{position:"absolute",top:0,left:0,width:"100%",height:`${u.size}px`,transform:`translateY(${u.start}px)`}},u.index)})})})})};var pa=e=>Array.isArray(e)?e:e!==null?[e]:[],en=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var ee=require("react/jsx-runtime"),ma=e=>{let{className:o,data:t,value:r,keyField:n="key",textField:i="text",isMultiple:s=!1,loading:c,mounted:d,virtual:l,virtualizer:m,refs:a,renderItem:u,renderNoData:p,onItemSelect:C}=e,x=f,b={parent:a?.parent?a.parent:(0,Bt.useRef)(null)},T=(0,Bt.useMemo)(()=>pa(r),[r]),[y,g]=(0,Bt.useState)(0),h=S=>{if(e.isMultiple){let P=t.filter(M=>S.includes(M[n]));e.onChange?.(P),e.onValueChange?.(S)}else{let P=en(S),M=null;P!==void 0&&(M=t.find($=>$[n]===P)??null),e.onChange?.(M),e.onValueChange?.(P)}},R=S=>{let P=S[n];if(e.isMultiple){let M=[...T],$=T.indexOf(P);$===-1?M.push(P):M.splice($,1),h(M)}else en(T)!==P&&h([P]);C?.(S)};return(0,ee.jsx)(ee.Fragment,{children:(0,ee.jsx)(jr.Provider,{value:{data:t,values:T,keyField:n,textField:i,isMultiple:s,virtualizer:m,virtual:l,refs:b,onChange:h,onItemSelect:R,offset:y,setOffset:g,renderItem:u},children:(0,ee.jsx)("div",{className:L(`${x}data-list`,o),children:c&&!d?(0,ee.jsx)(Ne,{status:"info",title:"Loading...",icon:(0,ee.jsx)(w,{children:(0,ee.jsx)(De,{className:"us-animation-spin"})})}):t.length===0?(0,ee.jsx)(ee.Fragment,{children:p?p({status:"info",title:"No data",size:"sm"}):(0,ee.jsx)(Ne,{status:"info",title:"No data",size:"sm"})}):l?(0,ee.jsx)(da,{}):(0,ee.jsx)(ca,{})})})})};var xa=require("react");var fa={rounded:"rounded",shadow:"shadow",transitionDuration:"transition",transitionProperty:"transition"};var va=(e,o,t,r)=>{let n=e?r?`${r}:${e}`:e:r?`${r}:`:"";return o?`${n}${o}-${t}`:`${n}${t}`},hc=(e,o,t)=>{let r=[];if(typeof o=="object"){let n=Object.keys(o);for(let i of n){let s=o[i];s!==void 0&&r.push(va(e,t,s,i))}}else r.push(va(e,t,o));return r.join(" ")},$e=(e,o)=>Object.keys(e).map(r=>{let n=e[r];return n!==void 0?hc(o,n,fa[r]):""});var Jo=require("react"),tn=(0,Jo.createContext)(null),Zo=()=>(0,Jo.useContext)(tn);var pt=require("react/jsx-runtime"),bc=(0,xa.forwardRef)(({as:e="div",children:o,className:t,size:r="md",hoverable:n,selected:i,disabled:s,bordered:c=!0,underlined:d=!0,css:l,...m},a)=>{let u=f;return(0,pt.jsx)(tn.Provider,{value:{underlined:d},children:(0,pt.jsxs)(e,{ref:a,className:L(`${u}card`,{[`${u}card--${r}`]:r,[`${u}card--hoverable`]:n,[`${u}card--selected`]:i,[`${u}card--disabled`]:s,[`${u}card--bordered`]:c},l!==void 0?$e(l,u):[],t),...m,children:[(0,pt.jsx)("div",{className:`${u}surface`}),(n||i)&&(0,pt.jsx)("div",{className:`${u}overlay`}),(0,pt.jsx)("div",{className:`${u}card__content`,children:o})]})})}),Ca=bc;var ha=require("react");var Ta=require("react/jsx-runtime"),Tc=(0,ha.forwardRef)(({children:e,className:o,...t},r)=>(0,Ta.jsx)("div",{ref:r,className:L(`${f}card-body`,o),...t,children:e})),ba=Tc;var La=require("react");var ya=require("react");var Ra=require("react/jsx-runtime"),jo=(0,ya.forwardRef)(({as:e="div",children:o,className:t,css:r,...n},i)=>{let s=f;return(0,Ra.jsx)(e,{ref:i,className:L(`${s}card-subtitle`,r!==void 0?$e(r,s):[],t),...n,children:o})});var ga=require("react");var Sa=require("react/jsx-runtime"),er=(0,ga.forwardRef)(({as:e="div",children:o,className:t,centered:r,css:n,...i},s)=>{let c=f;return(0,Sa.jsx)(e,{ref:s,className:L(`${c}card-title`,{[`${c}card-title--centered`]:r},n!==void 0?$e(n,c):[],t),...i,children:o})});var he=require("react/jsx-runtime"),yc=(0,La.forwardRef)(({as:e="div",children:o,className:t,title:r,subtitle:n,startContent:i,endContent:s,underlined:c,bordered:d,centered:l,slotProps:m,...a},u)=>{let p=f,C=Zo(),x=d??c??C?.underlined,{layout:v,gap:b,...T}=m?.content??{};return(0,he.jsxs)(e,{ref:u,className:L(`${p}card-header`,{[`${p}card-header--underlined`]:x,[`${p}card-header--centered`]:l},t),...a,children:[i!==void 0&&(0,he.jsx)("div",{...m?.startContent,className:L(`${p}card-header__start-content`,m?.startContent?.className),children:i}),(0,he.jsx)("div",{...T,className:L(`${p}card-header__content`,{[`${p}card-header__content--${v}`]:v,[`${p}card-header__content--gap`]:b},T.className),children:r!==void 0||n!==void 0?(0,he.jsxs)(he.Fragment,{children:[r!==void 0&&(0,he.jsx)(er,{...m?.title,children:r}),n!==void 0&&(0,he.jsx)(jo,{...m?.title,children:n})]}):o}),s!==void 0&&(0,he.jsx)("div",{...m?.endContent,className:L(`${p}card-header__end-content`,m?.endContent?.className),children:s})]})}),Pa=yc;var Ma=E(require("clsx")),Ea=require("react");var Ia=require("react/jsx-runtime"),wa=(0,Ea.forwardRef)((e,o)=>{let{as:t="div",children:r,className:n,underlined:i,bordered:s,...c}=e,d=f,l=Zo(),m=s??i??l?.underlined;return(0,Ia.jsx)(t,{...c,ref:o,className:(0,Ma.default)(`${d}card-footer`,{[`${d}card-footer--underlined`]:m},n),children:r})});var Da=require("react");var vo=require("react/jsx-runtime"),Aa=(0,Da.forwardRef)(({children:e,className:o,topLeftContent:t,topRightContent:r,...n},i)=>{let s=f;return(0,vo.jsxs)("div",{ref:i,className:L(`${s}card-media`,o),...n,children:[(0,vo.jsx)("div",{className:L(`${s}card-media__top-left-content`),children:t}),(0,vo.jsx)("div",{className:L(`${s}card-media__top-right-content`),children:r}),e]})});var Na=E(require("clsx")),rr=require("react");var tr=require("react"),xo=(0,tr.createContext)(null),or=()=>{let e=(0,tr.useContext)(xo);if(!e)throw new Error("`useDrawer` must be used within a `<Drawer />`");return e};var Co=require("react/jsx-runtime"),Rc=(0,rr.forwardRef)((e,o)=>{let{children:t,className:r,style:n,isOpen:i,size:s="sm",position:c,placement:d,backdrop:l="opaque",closable:m=!0,vars:a,onClose:u,onAfterClose:p,onClick:C,...x}=e,v=f,b=c??d??"left",T=(0,rr.useRef)(null),y=()=>{u()},g=()=>{p?.()};return(0,Co.jsx)(xo.Provider,{value:{isOpen:i,onClose:y},children:(0,Co.jsx)(zt,{isOpen:i,closable:m,variant:l,placement:b,onClose:y,children:(0,Co.jsx)(Se,{nodeRef:T,isOpen:i,name:`${f}drawer`,enter:600,leave:300,unmountOnExit:!0,onExited:g,children:(0,Co.jsx)("div",{...x,ref:J(o,T),className:(0,Na.default)(`${f}drawer`,{[`${f}drawer--${s}`]:s,[`${f}drawer--${b}`]:b},r),style:{...n,[`--${v}drawer-xs-width`]:a?.xsWidth,[`--${v}drawer-width`]:a?.width},onClick:h=>{h.stopPropagation(),C?.(h)},children:t})})})})}),$a=Rc;var mt=E(require("clsx")),ka=require("react");var F=require("react/jsx-runtime"),Va=(0,ka.forwardRef)(({as:e="div",children:o,className:t,title:r,subtitle:n,startContent:i,endContent:s,bordered:c=!0,close:d,slotProps:l,...m},a)=>{let{onClose:u}=or(),p=f,C={isVisible:d?.isVisible??!0,position:d?.position??"start"},x={cursor:"pointer"};return(0,F.jsxs)(e,{ref:a,className:(0,mt.default)(`${p}drawer-header`,{[`${p}drawer-header--bordered`]:c},t),...m,children:[(i!==void 0||C.isVisible&&C.position==="start")&&(0,F.jsx)("div",{...l?.startContent,className:(0,mt.default)(`${p}accordion-header__start-content`,l?.startContent?.className),children:C.isVisible&&C.position==="start"?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(w,{color:"secondary",children:(0,F.jsx)(q,{style:x,onClick:u})}),i]}):i}),(0,F.jsx)("div",{...l?.content,className:(0,mt.default)(`${p}drawer-header__content`,l?.content?.className),children:r!==void 0||n!==void 0?(0,F.jsxs)(F.Fragment,{children:[r!==void 0&&(0,F.jsx)("div",{...l?.title,className:(0,mt.default)(`${p}drawer-header__title`,l?.title?.className),children:r}),n!==void 0&&(0,F.jsx)("div",{...l?.subtitle,className:(0,mt.default)(`${p}drawer-header__subtitle`,l?.subtitle?.className),children:n})]}):o}),(s!==void 0||C.isVisible&&C.position==="end")&&(0,F.jsx)("div",{...l?.endContent,className:(0,mt.default)(`${p}accordion-header__end-content`,l?.endContent?.className),children:C.isVisible&&C.position==="end"?(0,F.jsxs)(F.Fragment,{children:[s,(0,F.jsx)(w,{color:"secondary",children:(0,F.jsx)(q,{style:x,onClick:u})})]}):s})]})});var Ha=require("react");var Oa=require("react/jsx-runtime"),_a=(0,Ha.forwardRef)(({children:e,className:o,...t},r)=>(0,Oa.jsx)("div",{ref:r,className:L(`${f}drawer-body`,o),...t,children:e}));var Fa=E(require("clsx")),za=require("react");var Ga=require("react/jsx-runtime"),Ba=(0,za.forwardRef)((e,o)=>{let{as:t="div",children:r,className:n,bordered:i=!0,...s}=e,c=f;return(0,Ga.jsx)(t,{...s,ref:o,className:(0,Fa.default)(`${c}drawer-footer`,{[`${c}drawer-footer--bordered`]:i},n),children:r})});var Ka=require("react");var ho=require("react/jsx-runtime"),gc=(0,Ka.forwardRef)(({children:e,label:o},t)=>{{let r=f;return(0,ho.jsxs)("div",{ref:t,className:L(`${r}field`),children:[(0,ho.jsx)("div",{className:`${r}field__label`,children:o}),(0,ho.jsx)("div",{className:`${r}field__content`,children:e})]})}}),Xa=gc;var ts=E(require("clsx")),tt=require("react");var nr=require("react"),Ua=(0,nr.createContext)(null),Gt=()=>{let e=(0,nr.useContext)(Ua);if(!e)throw new Error("`useMenu` must be used within a `<Menu />`");return e},ir=Ua;var ja=E(require("clsx")),es=require("react");var Qa=E(require("clsx")),Kt=require("react");var ar=require("react"),Wa=(0,ar.createContext)([]),qa=()=>{let e=(0,ar.useContext)(Wa);if(!e)throw new Error("`useMenuValue` must be used within a `<MenuValueContext.Provider />`");return e},ft=Wa;var et=require("react/jsx-runtime"),Ya=(0,Kt.forwardRef)((e,o)=>{let{as:t="div",className:r,style:n,value:i,title:s,icon:c,level:d=1,disabled:l,onClick:m,...a}=e,{value:u,originalValue:p,navMode:C,onChange:x,onOpen:v,onItemSelect:b}=Gt(),T=(0,Kt.useContext)(ft),y=[...T,i],g=u[d-1]===i,h=R=>{i!==void 0&&x(y),m?.(R),b?.(e)};return(0,Kt.useEffect)(()=>{C==="automatic"&&p.length>0&&p[p.length-1]===i&&(v(T),x(y))},[i,p,C]),(0,et.jsxs)(t,{ref:o,className:(0,Qa.default)(`${f}menu-item`,{[`${f}menu-item--selected`]:g,[`${f}menu-item--disabled`]:l},r),style:{paddingLeft:d<=1?`var(--${f}menu-item-padding-x)`:`calc(${d} * var(--${f}menu-item-padding-level))`,...n},onClick:h,...a,children:[(0,et.jsx)("div",{className:`${f}overlay`,children:(0,et.jsx)("div",{className:`${f}overlay__surface`})}),c&&(0,et.jsx)("div",{className:`${f}menu-item__icon`,children:c}),(0,et.jsx)("div",{className:`${f}menu-item__content`,children:(0,et.jsx)("span",{className:`${f}menu-item__title`,children:s})})]})});Ya.displayName="MenuItem";var be=Ya;var lr=E(require("clsx")),cr=require("react");var Ja=e=>e.split("/").reduce((o,t)=>{let r=o[o.length-1];return r!=null?o.push(r+"/"+t):o.push(""),o},[]),sr=(e,o)=>{let t=e.indexOf(o),r=[...e];return t===-1?r.push(o):r.splice(t,1),r};var _=require("react/jsx-runtime"),Za=({children:e,className:o,style:t,value:r,title:n,icon:i,level:s=1,items:c,onClick:d,...l})=>{let{value:m,openValues:a,expandMode:u,onOpen:p}=Gt(),C=(0,cr.useContext)(ft),x=a.includes(r),v=[...C,r],b=m[s-1]===r,T=(0,cr.useMemo)(()=>c?.map(({type:g,...h},R)=>g==="item"?(0,_.jsx)(be,{level:s!==void 0?s+1:void 0,...h},R):g==="submenu"?(0,_.jsx)(Za,{level:s!==void 0?s+1:void 0,...h},R):g==="group"?(0,_.jsx)(Ut,{level:s!==void 0?s+1:void 0,...h},R):(0,_.jsx)(be,{level:s!==void 0?s+1:void 0,...h},R)),[c]),y=g=>{if(u==="multiple"){let h=sr(a,r);p(h)}else if(x){let h=sr(v,r);p(h)}else{let h=sr(C,r);p(h)}d?.(g)};return(0,_.jsx)(ft.Provider,{value:v,children:(0,_.jsx)("div",{className:(0,lr.default)(`${f}menu-submenu`),children:(0,_.jsxs)(Be,{isOpen:x,children:[(0,_.jsx)(ye,{children:(0,_.jsxs)("div",{className:(0,lr.default)(`${f}menu-item`,{[`${f}menu-item--selected`]:b||c&&v.includes(m)},o),style:{paddingLeft:s<=1?`var(--${f}menu-item-padding-x)`:`calc(${s} * var(--${f}menu-item-padding-level))`,...t},onClick:y,...l,children:[(0,_.jsx)("div",{className:`${f}overlay`,children:(0,_.jsx)("div",{className:`${f}overlay__surface`})}),i&&(0,_.jsx)("div",{className:`${f}menu-item__icon`,children:i}),(0,_.jsx)("div",{className:`${f}menu-item__content`,children:(0,_.jsx)("span",{className:`${f}menu-item__title`,children:n})}),(0,_.jsx)("div",{className:`${f}menu-item__icon`,children:x?(0,_.jsx)(ne,{className:`${f}icon`}):(0,_.jsx)(re,{className:`${f}icon`})})]})}),(0,_.jsx)(Te,{children:(0,_.jsx)("ul",{className:(0,lr.default)(`${f}menu`,{[`${f}menu-open`]:!x}),children:T||e})})]})})})},Xt=Za;var ue=require("react/jsx-runtime"),Sc=({children:e,className:o,style:t,title:r,icon:n,level:i=1,items:s,...c})=>{let d=(0,es.useMemo)(()=>s?.map(({type:l,...m},a)=>l==="item"?(0,ue.jsx)(be,{...m},a):l==="submenu"?(0,ue.jsx)(Xt,{...m},a):(0,ue.jsx)(be,{...m},a)),[s]);return(0,ue.jsxs)(ue.Fragment,{children:[(0,ue.jsxs)("div",{className:(0,ja.default)(`${f}menu-group`,o),style:{paddingLeft:i<=1?`var(--${f}menu-group-padding-x)`:`calc(${i} * var(--${f}menu-group-padding-level))`,...t},...c,children:[n&&(0,ue.jsx)("div",{className:`${f}menu-group__icon`,children:n}),(0,ue.jsx)("div",{className:`${f}menu-group__content`,children:(0,ue.jsx)("span",{className:`${f}menu-group__title`,children:r})})]}),d||e]})},Ut=Sc;var vt=require("react/jsx-runtime"),os=({children:e,value:o=[],defaultValue:t,openValues:r,expandMode:n="multiple",navMode:i="manual",items:s,onChange:c,onOpen:d,onItemSelect:l,...m})=>{let[a,u]=(0,tt.useState)(o??t??[]),[p,C]=(0,tt.useState)(r??[]),x=(0,tt.useMemo)(()=>s?.map(({type:y,...g},h)=>y==="item"?(0,vt.jsx)(be,{...g},h):y==="submenu"?(0,vt.jsx)(Xt,{...g},h):y==="group"?(0,vt.jsx)(Ut,{...g},h):(0,vt.jsx)(be,{...g},h)),[s]),v=y=>{o!==void 0&&i!=="automatic"?c?.(y):u(y)},b=y=>{r!==void 0?d?.(y):C(y)},T=y=>{l?.(y)};return(0,tt.useEffect)(()=>{o!==void 0&&i!=="automatic"&&u(o)},[o]),(0,tt.useEffect)(()=>{r!==void 0&&C(r)},[r]),(0,vt.jsx)(ir.Provider,{value:{value:a,originalValue:o,openValues:p,expandMode:n,navMode:i,onOpen:b,onChange:v,onItemSelect:T},children:(0,vt.jsx)("div",{className:(0,ts.default)(`${f}menu`),...m,children:x||e})})};os.displayName="Menu";var rs=os;var ie=require("react");var Wt=require("react");var ur=require("react"),ns=(0,ur.createContext)(null),dr=()=>{let e=(0,ur.useContext)(ns);if(!e)throw new Error("`useSelect` must be used within a `<Select />`");return e},is=ns;var bo=require("react/jsx-runtime"),Lc=()=>{let{data:e,values:o,offset:t,setOffset:r,keyField:n,textField:i,onItemSelect:s,renderItem:c}=dr(),d=(0,Wt.useRef)(null),{isOpen:l}=Z(),m=(a,u)=>{s(u),r(d.current?.scrollTop||0)};return(0,Wt.useEffect)(()=>{l&&d.current?.scrollTo({top:t})},[l]),(0,bo.jsx)(z,{ref:d,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,bo.jsx)(U,{children:c?e.map(a=>(0,bo.jsx)(Wt.Fragment,{children:c(a,{title:void 0,selected:o.includes(a[n]),hoverable:!0,onClick:u=>m(u,a),onMouseDown:u=>u.preventDefault()})},a[n])):e.map(a=>(0,bo.jsx)(H,{title:a[i],selected:o.includes(a[n]),hoverable:!0,onClick:u=>m(u,a),onMouseDown:u=>u.preventDefault()},a[n]))})})},as=Lc;var qt=require("react");var on=e=>Array.isArray(e)?e:e!==null?[e]:[],To=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var ot=require("react/jsx-runtime"),Pc=()=>{let{data:e,values:o,keyField:t,textField:r,virtual:n,onItemSelect:i,renderItem:s}=dr(),c=(0,qt.useRef)(null),d=Ue({...n,count:e.length,parentRef:c}),{isOpen:l}=Z(),m=a=>{i(a)};return(0,qt.useEffect)(()=>{if(!l)return;let a=To(o),u=e.findIndex(p=>p[t]===a);d.scrollToIndex(u,{align:"start"})},[l]),n?(0,ot.jsx)(z,{ref:c,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,ot.jsx)(U,{children:(0,ot.jsx)("div",{style:{height:`${d.getTotalSize()}px`,width:"100%",position:"relative"},children:d.getVirtualItems().map(a=>{let u=a.index>e.length-1,p=e[a.index];return u?(0,ot.jsx)(H,{title:n.hasNextPage?"Loading...":"Nothing more to load",style:{position:"absolute",top:0,left:0,width:"100%",height:`${a.size}px`,transform:`translateY(${a.start}px)`}},a.index):p?s?(0,ot.jsx)(qt.Fragment,{children:s(p,{title:void 0,selected:o.includes(p[t]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${a.size}px`,transform:`translateY(${a.start}px)`},onClick:()=>m(p),onMouseDown:C=>C.preventDefault()})},a.index):(0,ot.jsx)(H,{title:p[r],selected:o.includes(p[t]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${a.size}px`,transform:`translateY(${a.start}px)`},onClick:()=>m(p),onMouseDown:C=>C.preventDefault()},a.index):(0,ot.jsx)(H,{title:`Item ${a.index} not found`,style:{position:"absolute",top:0,left:0,width:"100%",height:`${a.size}px`,transform:`translateY(${a.start}px)`}},a.index)})})})}):null},ss=Pc;var I=require("react/jsx-runtime"),Mc=e=>{let{data:o,value:t,keyField:r="key",textField:n="text",isMultiple:i=!1,disabled:s,loading:c,clearable:d=!1,disclosure:l,virtual:m,placeholder:a,className:u,style:p,color:C="inherit",variant:x="outlined",size:v="md",startContent:b,endContent:T,renderItem:y,renderNoData:g}=e,h=l!==void 0?l:Xe(),R=f,S=(0,ie.useRef)(null),[P,M]=(0,ie.useState)(""),[$,k]=(0,ie.useState)(!1),[B,pe]=(0,ie.useState)(!1),G=(0,ie.useMemo)(()=>on(t),[t]),Y=(0,ie.useMemo)(()=>o.filter(V=>G.includes(V[r])),[o,G]),[se,W]=(0,ie.useState)(0),me=()=>{S?.current?.focus()},Jt=V=>{if(e.isMultiple){let oe=o.filter(fe=>V.includes(fe[r]));e.onChange?.(oe),e.onValueChange?.(V)}else{let oe=To(V),fe=null;oe!==null&&(fe=o.find(it=>it[r]===oe)??null),e.onChange?.(fe),e.onValueChange?.(oe)}},Er=V=>{V.stopPropagation(),k(!0),M(""),e.isMultiple?(e.onChange?.([]),e.onValueChange?.([])):(e.onChange?.(null),e.onValueChange?.(null)),k(!1)},Mo=V=>{let oe=V[r];if(e.isMultiple){let fe=[...G],it=G.indexOf(oe);it===-1?fe.push(oe):fe.splice(it,1),Jt(fe)}else To(G)!==oe&&Jt([oe]);k(!1),S.current?.focus(),e.isMultiple||h.onClose()},bt=()=>{h.onOpen(),pe(!0)},wr=()=>{if(h.onClose(),!e.isMultiple&&$){let V=Y[0];M(V!==void 0?V[n]:""),k(!1)}};return(0,ie.useEffect)(()=>{if(!$&&!e.isMultiple){let V=Y[0];V!==void 0&&M(V[n])}},[Y]),(0,ie.useEffect)(()=>{on(t)[0]===void 0&&M("")},[t]),(0,I.jsx)(is.Provider,{value:{data:o,values:G,keyField:r,textField:n,isMultiple:i,virtual:m,onChange:Jt,onItemSelect:Mo,offset:se,setOffset:W,renderItem:y},children:(0,I.jsxs)(kt,{target:!0,...h,isOpen:h.isOpen,onOpen:bt,onClose:wr,autoClose:"outside",children:[(0,I.jsx)(_t,{children:(0,I.jsxs)("div",{className:L(`${R}input`,{[`${R}input--${C}`]:C,[`${R}input--${x}`]:x,[`${R}input--${v}`]:v,[`${R}input--focus`]:B,[`${R}input--disabled`]:s,[`${R}input--clearable`]:d},u),style:p,onClick:me,onFocus:()=>{pe(!0)},onBlur:()=>{pe(!1)},children:[(0,I.jsx)("input",{type:"text",ref:S,style:{position:"absolute",opacity:0,width:0}}),(0,I.jsx)("div",{className:`${R}overlay`}),(0,I.jsx)("div",{className:`${R}outline`}),b&&(0,I.jsx)("div",{className:`${R}input__start-content`,children:b}),(0,I.jsx)("div",{className:`${R}input__content`,children:i&&Y.length!==0?(0,I.jsx)("div",{className:`${R}input__chips`,children:Y.map(V=>(0,I.jsx)(Nt,{variant:"flat",color:"secondary",size:"xs",closable:!0,onClose:()=>Mo(V),children:V[n]},V[r]))}):P!==void 0&&P!==""?(0,I.jsx)("div",{className:`${R}input__search`,title:P,children:P}):a!==void 0&&a!==""?(0,I.jsx)("div",{className:`${R}input__placeholder`,children:a}):(0,I.jsx)(I.Fragment,{})}),(0,I.jsxs)("div",{className:`${R}input__end-content`,children:[T,c?(0,I.jsx)(w,{children:(0,I.jsx)(De,{className:`${R}animation-spin`})}):d?(0,I.jsx)("div",{className:`${R}input__clearable`,children:(0,I.jsx)(Ae,{type:"button",variant:"text",color:"secondary",size:"xs",iconOnly:!0,onClick:Er,children:(0,I.jsx)(w,{children:(0,I.jsx)(q,{})})})}):null,(0,I.jsx)("div",{style:{pointerEvents:"none"},children:(0,I.jsx)(w,{color:"secondary",children:h.isOpen?(0,I.jsx)(ne,{}):(0,I.jsx)(re,{})})})]})]})}),(0,I.jsx)(Vt,{style:{maxHeight:"200px"},children:o.length===0?(0,I.jsx)(I.Fragment,{children:g?g({status:"info",title:"No data",size:"sm",onClick:()=>{h.onClose()}}):(0,I.jsx)(Ne,{status:"info",title:"No data",size:"sm",onClick:h.onClose})}):m?(0,I.jsx)(ss,{}):(0,I.jsx)(as,{})})]})})},ls=Mc;var pr=E(require("clsx")),cs=E(require("merge-refs")),ke=require("react");var xt=require("react/jsx-runtime"),us=(0,ke.forwardRef)(({children:e,className:o,style:t,checked:r,defaultChecked:n,onChange:i,disabled:s,readOnly:c,size:d="md",labelPlacement:l="after",colorScheme:m="default",...a},u)=>{let p=f,C=(0,ke.useRef)(null),[x,v]=(0,ke.useState)(r??n??!1),[b,T]=(0,ke.useState)(!1),y=g=>{r!==void 0?i?.(g):v?.(g.target.checked)};return(0,ke.useEffect)(()=>{r!==void 0&&v(r)},[r]),(0,xt.jsxs)("label",{className:(0,pr.default)(`${p}switch`,{[`${p}switch--checked`]:x,[`${p}switch--focus`]:b,[`${p}switch--disabled`]:s,[`${p}switch--read-only`]:c,[`${p}switch--${d}`]:d,[`${p}switch--${l}`]:l,[`${p}switch--${m}`]:m},o),style:t,onFocus:()=>{T(!0)},onBlur:()=>{T(!1)},children:[(0,xt.jsx)("input",{...a,ref:(0,cs.default)(C,u),type:"checkbox",checked:x,disabled:s,onChange:y}),(0,xt.jsx)("div",{className:(0,pr.default)(`${p}switch__control`),children:(0,xt.jsx)("div",{className:`${p}switch__thumb`})}),e!==void 0&&(0,xt.jsx)("div",{className:(0,pr.default)(`${p}switch__label`),children:e})]})});var ps=E(require("clsx")),ms=E(require("merge-refs")),rt=require("react"),fs=require("uuid");var mr=require("react"),rn=(0,mr.createContext)(null),ds=()=>{let e=(0,mr.useContext)(rn);if(!e)throw new Error("`useTabs` must be used within a `<Tabs />`");return e};var te=require("react/jsx-runtime"),vs=(0,rt.forwardRef)(({as:e="div",children:o,className:t,role:r="presentation",value:n,startContent:i,endContent:s,closable:c,disabled:d,onClick:l,...m},a)=>{let u=f,p=(0,rt.useRef)(null),[C]=(0,rt.useState)((0,fs.v4)()),x=n??C,{onClose:v,registerItem:b,...T}=ds(),y=h=>{let R=T.previousTabRef.current,S=p.current;if(S){if(R){let P=R.querySelector(`.${u}tab__indicator`),M=S.querySelector(`.${u}tab__indicator`);if(!P||!M)return;let $={},k=P.getBoundingClientRect(),B=k.left,pe=k.width,G=M.getBoundingClientRect(),Y=G.left,se=G.width,W=pe/se;W?$.transform=`translateX(${(B-Y).toFixed(4)}px) scaleX(${W.toFixed(4)})`:$.opacity=0;let me=[$,{transform:"none"}];M.animate(me,{duration:250,easing:"cubic-bezier(.3,0,0,1)"}),T.previousTabRef.current=p.current}T.previousTabRef.current=p.current,T.onChange(x),l?.(h)}},g=h=>{h.stopPropagation(),v(x)};return(0,rt.useEffect)(()=>{b({value:x,disabled:d}),x===T.value&&(T.previousTabRef.current=p.current)},[x,T.value]),(0,te.jsxs)(e,{ref:(0,ms.default)(p,a,h=>T.tabRefs.current[x]=h),className:(0,ps.default)(`${u}tab`,{[`${u}tab--selected`]:x===T.value,[`${u}tab--disabled`]:d,[`${u}tab--closable`]:c},t),role:r,onClick:y,...m,children:[(0,te.jsx)("div",{className:`${u}surface`}),(0,te.jsx)("div",{className:`${u}overlay`}),(0,te.jsxs)("div",{className:`${u}tab__content`,children:[i!==void 0&&(0,te.jsx)("div",{className:`${u}tab__start-content`,children:i}),o,(s||c)&&(0,te.jsxs)("div",{className:`${u}tab__end-content`,children:[s,c&&(0,te.jsx)("div",{className:`${u}tab__closable`,onClick:g,children:(0,te.jsx)(w,{children:(0,te.jsx)(q,{})})})]})]}),(0,te.jsxs)("div",{className:`${u}tab__indicator`,children:[(0,te.jsx)("div",{className:`${u}surface`}),(0,te.jsx)("div",{className:`${u}overlay`})]})]})});var Cs=E(require("clsx")),hs=E(require("merge-refs")),Me=require("react");var xs=require("react"),Pe=xs.forwardRef;var nn=require("react/jsx-runtime"),bs=Pe(({children:e,className:o,value:t,defaultValue:r,variant:n="underlined",alignment:i="start",onChange:s,onClose:c,...d},l)=>{let m=(0,Me.useRef)(null),a=(0,Me.useRef)({}),u=(0,Me.useRef)(null),[p,C]=(0,Me.useState)(t??r),[x,v]=(0,Me.useState)([]),b=h=>{v(R=>(R.findIndex(P=>P.value)===-1&&R.push(h),R))},T=h=>{let R=m.current;if(!R)return;let S=a.current[h];S&&Ir(R,S)},y=h=>{C(h),s?.(h),T(h)},g=h=>{c?.(h)};return(0,Me.useEffect)(()=>{t!==void 0&&(C(t),T(t))},[t]),(0,Me.useEffect)(()=>{if(t===void 0){let h=x.find(R=>!R.disabled);C(h?.value)}},[t,x]),(0,nn.jsx)(rn.Provider,{value:{previousTabRef:u,tabRefs:a,value:p,onChange:y,onClose:g,registerItem:b},children:(0,nn.jsx)("div",{...d,ref:(0,hs.default)(l,m),className:(0,Cs.default)(`${f}tabs`,{[`${f}tabs--${n}`]:n,[`${f}tabs--${i}`]:i},o),children:e})})});var Qt=require("react");var Ve=require("react/jsx-runtime");var Ts=(0,Qt.forwardRef)(({className:e,value:o,defaultValue:t,disabled:r,inputRef:n,color:i="inherit",variant:s="outlined",size:c="md",startContent:d,endContent:l,css:m,style:a,onChange:u,onClick:p,...C},x)=>{let v=f,b=(0,Qt.useRef)(null),[T,y]=(0,Qt.useState)(!1),g=R=>{u?.(R)},h=R=>{p?.(R),b?.current?.focus()};return(0,Ve.jsxs)("div",{ref:x,className:L(`${v}input`,{[`${v}input--${i}`]:i,[`${v}input--${s}`]:s,[`${v}input--${c}`]:c,[`${v}input--focus`]:T,[`${v}input--disabled`]:r},m!==void 0?$e(m,v):[],e),style:a,onFocus:()=>{y(!0)},onBlur:()=>{y(!1)},onClick:h,children:[(0,Ve.jsx)("div",{className:`${v}overlay`}),(0,Ve.jsx)("div",{className:`${v}outline`}),d&&(0,Ve.jsx)("div",{className:`${v}input__start-content`,children:d}),(0,Ve.jsx)("div",{className:`${v}input__content`,children:(0,Ve.jsx)("input",{ref:J(b,n),className:`${v}input__field`,value:o??"",defaultValue:t,disabled:r,onChange:g,...C})}),l&&(0,Ve.jsx)("div",{className:`${v}input__end-content`,children:l})]})});var Ee=E(require("clsx"));var Q=require("react/jsx-runtime"),Ec=e=>{let{children:o,className:t,size:r="md",title:n,subtitle:i,startContent:s,endContent:c,startAction:d,endAction:l,slotProps:m,...a}=e,u=f;return(0,Q.jsxs)("div",{className:(0,Ee.default)(`${u}toolbar`,{[`${u}toolbar--${r}`]:r},t),...a,children:[(0,Q.jsx)("div",{className:`${u}outline-b`}),(0,Q.jsxs)("div",{className:(0,Ee.default)(`${u}toolbar__container`),children:[s!==void 0?(0,Q.jsx)("div",{className:(0,Ee.default)(`${u}toolbar__start-content`),children:s}):d!==void 0&&(0,Q.jsx)("div",{className:(0,Ee.default)(`${u}toolbar__start-action`),children:d}),(0,Q.jsx)("div",{className:(0,Ee.default)(`${u}toolbar__content`),children:n!==void 0||i!==void 0?(0,Q.jsxs)(Q.Fragment,{children:[n!==void 0&&(0,Q.jsx)("div",{...m?.title,className:(0,Ee.default)(`${u}toolbar__title`),children:n}),i!==void 0&&(0,Q.jsx)("div",{...m?.subtitle,className:(0,Ee.default)(`${u}toolbar__subtitle`),children:i})]}):o}),c!==void 0?(0,Q.jsx)("div",{className:(0,Ee.default)(`${u}toolbar__end-content`),children:c}):l!==void 0&&(0,Q.jsx)("div",{className:(0,Ee.default)(`${u}toolbar__end-action`),children:l})]})]})},ys=Ec;var Rs=E(require("clsx")),gs=E(require("merge-refs")),fr=require("react");var an=require("react/jsx-runtime"),Ss=(0,fr.forwardRef)(({as:e="div",children:o,width:t,className:r,role:n="presentation",onClick:i,style:s,...c},d)=>{let l=f,m=(0,fr.useRef)(null),a=u=>{i?.(u)};return(0,an.jsx)(e,{ref:(0,gs.default)(m,d),className:(0,Rs.default)(`${l}swipe-item`,r),role:n,onClick:a,style:{...s,...t!==void 0?{width:`${t}px`}:{}},...c,children:(0,an.jsx)("div",{className:`${l}swipe-item__content`,children:o})})});var ln=E(require("clsx")),vr=require("react");var sn=require("react"),Ls=(0,sn.createContext)(null);var nt=require("react");var Ps=(e,o)=>{let t=!1,r=!1,n=null;if(o){let i=Array.from(e.children).indexOf(o),s=0,c=0,d=Array.from(e.children);for(let a=i;a<d.length;a++){let u=d[a];if(e.clientWidth<=c+u.clientWidth)break;s++,c+=u.clientWidth}let l=d[i];l?t=!0:t=!1,o=l;let m=d[i+s];m?r=!0:r=!1,n=m}else{let i=0,s=0,c=Array.from(e.children);for(let l=0;l<c.length;l++){let m=c[l];if(e.clientWidth<=s+m.clientWidth)break;i++,s+=m.clientWidth}t=!1,o=null;let d=c[i];d?r=!0:r=!1,n=d}return{isPrevious:t,previousElement:o,isNext:r,nextElement:n}};function wc(e){let o=It({ref:e.ref,target:e.target}),t=(0,nt.useRef)(null),r=(0,nt.useRef)(null),[n,i]=(0,nt.useState)(!1),[s,c]=(0,nt.useState)(!1),d=(0,nt.useMemo)(()=>{let a=e.ref?.current||e.target;if(!a)return;let u=o.width===a.scrollWidth?null:t.current,p=Ps(a,u);if(p)return i(p.isPrevious),c(p.isNext),r.current=p.nextElement,t.current=p.previousElement,p},[o.width,e.itemLength]);return d?{...d,isPrevious:n,isNext:s,previousRange:()=>{let a=e.ref?.current||e.target,u=t.current;if(!a||!u)return;let p="smooth",C=Array.from(a.children);if(u){let x=Array.from(a.children).indexOf(u),v=Array.from(a.children).slice(0,x+1),b=0,T=0;for(let P of v)b++,T+=P.clientWidth;let y=0,g=0;for(let P of v){if(a.clientWidth<=g+P.clientWidth)break;y++,g+=P.clientWidth}let h=T+b*16-(g+y*16);a.scrollTo({behavior:p,left:h});let R=v[v.length-1-y];i(!!R),t.current=R;let S=C[v.length-1+1];c(!!S),r.current=S}else{t.current=null;let x=0;for(let v of C){if(a.clientWidth<=x+v.clientWidth){r.current=v;break}x+=v.clientWidth}a.scrollTo({behavior:p,left:0})}},nextRange:()=>{let a=e.ref?.current||e.target,u=r.current;if(!a||!u)return;let p="smooth",C=Array.from(a.children);if(u){let x=Array.from(a.children).indexOf(u),v=Array.from(a.children).slice(0,x),b=0,T=0;for(let P=0;P<v.length;P++){let M=v[P];b++,T+=M.clientWidth}let y=0,g=0;for(let P=0;P<v.length;P++){let M=v[P];if(a.clientWidth<=g+M.clientWidth)break;y++,g+=M.clientWidth}let h=T+b*16;a.scrollTo({behavior:p,left:h});let R=v[v.length-1];i(!!R),t.current=R;let S=C[v.length+y];c(!!S),r.current=S}}}:void 0}var Ms=wc;var ae=require("react/jsx-runtime"),Es=({children:e,className:o,gap:t=0,autoHide:r=!1,alignment:n="start",slotProps:i,...s})=>{let c=f,d=(0,vr.useRef)(null),l=vr.Children.toArray(e),m=Ms({ref:d,itemLength:l.length}),a=p=>{m?.previousRange(),i?.arrowLeftButton?.onClick?.(p)},u=p=>{m?.nextRange(),i?.arrowRightButton?.onClick?.(p)};return(0,ae.jsx)(Ls.Provider,{value:{gap:t},children:(0,ae.jsxs)("div",{className:(0,ln.default)(`${c}swipe`,{[`${c}swipe--auto-hide`]:r,[`${c}swipe--${n}`]:n},o),style:{"--us-swipe-gap":`${t}px`},children:[(0,ae.jsx)("div",{className:`${c}swipe__start-content`,children:m?.isPrevious&&(0,ae.jsx)(Ae,{variant:"filled",color:"primary",iconOnly:!0,...i?.arrowLeftButton,onClick:a,children:(0,ae.jsx)(w,{children:(0,ae.jsx)(zr,{})})})}),(0,ae.jsx)("div",{ref:d,...i?.content,className:(0,ln.default)(`${c}swipe__content`,i?.content?.className),...s,children:e}),(0,ae.jsx)("div",{className:`${c}swipe__end-content`,children:m?.isNext&&(0,ae.jsx)(Ae,{variant:"filled",color:"primary",iconOnly:!0,...i?.arrowLeftButton,onClick:u,children:(0,ae.jsx)(w,{children:(0,ae.jsx)(Br,{})})})})]})})};var un=E(require("clsx")),ws=E(require("merge-refs")),Cr=require("react");var xr=require("react"),cn=(0,xr.createContext)(null);function Yt(){let e=(0,xr.useContext)(cn);if(!e)throw new Error("useModal must be used within a Modal");return e}var yo=require("react/jsx-runtime"),Is=(0,Cr.forwardRef)(({children:e,className:o,isOpen:t,size:r="md",placement:n="center",backdrop:i="opaque",scrollBehavior:s="outside",fullscreen:c,closable:d=!0,scrollArea:l=!1,slotProps:m,onClose:a,onAfterClose:u,onClick:p,...C},x)=>{let v=f,b=(0,Cr.useRef)(null),T=()=>{a()},y=()=>{u?.()};return(0,yo.jsx)(cn.Provider,{value:{isOpen:t,scrollBehavior:s,scrollArea:l,onClose:T,onAfterClose:y},children:(0,yo.jsx)(zt,{...m?.wrapper,isOpen:t,closable:d,scrollable:!0,scrollArea:l,variant:i,placement:n,className:(0,un.default)(`${v}modal-wrapper`,{[`${v}modal-wrapper--fullscreen`]:c},m?.wrapper?.className),onClose:T,children:(0,yo.jsx)(Se,{nodeRef:b,isOpen:t,name:`${v}modal`,enter:600,leave:300,unmountOnExit:!0,onExited:y,children:(0,yo.jsx)("div",{...C,ref:(0,ws.default)(x,b),className:(0,un.default)(`${v}modal`,{[`${v}modal--${r}`]:r,[`${v}modal--${n}`]:n,[`${v}modal--fullscreen`]:c,[`${v}modal--scroll-${s}`]:s},o),onClick:g=>{g.stopPropagation(),p?.(g)},children:e})})})})});var Ds=E(require("clsx"));var dn=require("react/jsx-runtime"),As=e=>{let{children:o,className:t,...r}=e,{scrollBehavior:n,scrollArea:i}=Yt(),c=(0,dn.jsx)("div",{className:(0,Ds.default)(`${f}modal-body`,t),...r,children:o});return n==="inside"&&i?(0,dn.jsx)(z,{autoHide:!0,children:c}):c};var Ns=E(require("clsx")),$s=require("react");var Vs=require("react/jsx-runtime"),ks=(0,$s.forwardRef)((e,o)=>{let{as:t="div",children:r,className:n,bordered:i=!0,...s}=e,c=f;return(0,Vs.jsx)(t,{...s,ref:o,className:(0,Ns.default)(`${c}modal-footer`,{[`${c}modal-footer--bordered`]:i},n),children:r})});var hr=E(require("clsx")),Hs=require("react");var X=require("react/jsx-runtime"),_s=(0,Hs.forwardRef)(({as:e="div",children:o,className:t,title:r,subtitle:n,startContent:i,endContent:s,bordered:c=!0,close:d,slotProps:l,...m},a)=>{let{onClose:u}=Yt(),p=f,C={isVisible:d?.isVisible??!0,position:d?.position??"end"},x={cursor:"pointer"};return(0,X.jsxs)(e,{...m,ref:a,className:(0,hr.default)(`${p}modal-header`,{[`${p}modal-header--bordered`]:c},t),children:[(i!==void 0||C.isVisible&&C.position==="start")&&(0,X.jsx)("div",{className:`${p}modal-header__start-content`,children:C.isVisible&&C.position==="start"?(0,X.jsxs)("div",{className:"us-d-flex us-items-center us-gap-2",children:[(0,X.jsx)(w,{color:"secondary",children:(0,X.jsx)(q,{style:x,onClick:u})}),i]}):i}),(0,X.jsx)("div",{className:`${p}modal-header__content`,children:r!==void 0||n!==void 0?(0,X.jsxs)(X.Fragment,{children:[r!==void 0&&(0,X.jsx)("div",{...l?.title,className:(0,hr.default)(`${p}modal-header__title`,l?.title?.className),children:r}),n!==void 0&&(0,X.jsx)("div",{...l?.subtitle,className:(0,hr.default)(`${p}modal-header__subtitle`,l?.subtitle?.className),children:n})]}):o}),(s!==void 0||C.isVisible&&C.position==="end")&&(0,X.jsx)("div",{className:`${p}modal-header__end-content`,children:C.isVisible&&C.position==="end"?(0,X.jsxs)("div",{className:"us-d-flex us-items-center us-gap-2",children:[s,(0,X.jsx)(w,{color:"secondary",children:(0,X.jsx)(q,{style:x,onClick:u})})]}):s})]})});var Ro=E(require("clsx")),Os=E(require("merge-refs")),_e=require("react"),Fs=require("uuid");var br=require("react"),pn=(0,br.createContext)(null),Tr=()=>(0,br.useContext)(pn);var He=require("react/jsx-runtime"),zs=Pe(({children:e,className:o,style:t,value:r,checked:n,defaultChecked:i,disabled:s,readOnly:c,size:d,colorScheme:l,labelPlacement:m,onClick:a,onChange:u,...p},C)=>{let x=f,v=(0,_e.useRef)(null),b=Tr(),[T]=(0,_e.useState)((0,Fs.v4)()),y=r??T,[g,h]=(0,_e.useState)(n??i??!1),[R,S]=(0,_e.useState)(!1),P=s||!1,M=c||!1,$=d||"md",k=m||"after",B=l||"default";P=s??b?.disabled??P,M=c??b?.readOnly??M,$=d??b?.size??$,k=m??b?.labelPlacement??k,B=l??b?.colorScheme??B;let pe=Y=>{if(b){let se=[...b.value],W=se.findIndex(me=>me===y);W===-1?se.push(y):se.splice(W,1),b?.onChange(se)}else n!==void 0?u?.(Y):h(Y.target.checked)},G=Y=>{a?.(Y),v?.current?.focus()};return(0,_e.useEffect)(()=>{n!==void 0&&h(n)},[n]),(0,_e.useEffect)(()=>{b&&h(b.value.includes(y))},[b]),(0,He.jsxs)("label",{className:(0,Ro.default)(`${x}checkbox`,{[`${x}checkbox--checked`]:g,[`${x}checkbox--focus`]:R,[`${x}checkbox--disabled`]:P,[`${x}checkbox--read-only`]:M,[`${x}checkbox--${$}`]:$,[`${x}checkbox--${k}`]:k,[`${x}checkbox--${B}`]:B},o),style:t,onFocus:()=>{S(!0)},onBlur:()=>{S(!1)},children:[(0,He.jsx)("input",{...p,ref:(0,Os.default)(v,C),type:"checkbox",value:String(y),checked:g,disabled:P,onChange:pe,onClick:G}),(0,He.jsxs)("div",{className:(0,Ro.default)(`${x}checkbox__control`),children:[(0,He.jsx)("div",{className:(0,Ro.default)(`${x}checkbox__tap`)}),(0,He.jsx)(w,{children:(0,He.jsx)(Gr,{})})]}),e!==void 0&&(0,He.jsx)("div",{className:(0,Ro.default)(`${x}checkbox__label`),children:e})]})});var Bs=E(require("clsx")),yr=require("react");var mn=require("react/jsx-runtime"),Gs=Pe(({children:e,disabled:o=!1,readOnly:t=!1,className:r,value:n,defaultValue:i,direction:s="row",alignment:c="start",size:d="md",labelPlacement:l="after",colorScheme:m="default",onChange:a,...u},p)=>{let C=f,[x,v]=(0,yr.useState)(n??i??[]),b=T=>{if(n!==void 0){a?.(T);return}v(T)};return(0,yr.useEffect)(()=>{n!==void 0&&v(n)},[n]),(0,mn.jsx)(pn.Provider,{value:{value:x,disabled:o,readOnly:t,direction:s,size:d,labelPlacement:l,colorScheme:m,onChange:b},children:(0,mn.jsx)("div",{...u,ref:p,className:(0,Bs.default)(`${C}checkbox-group`,{[`${C}checkbox-group--${d}`]:d,[`${C}checkbox-group--${s}`]:s,[`${C}checkbox-group--${c}`]:c},r),children:e})})});var go=E(require("clsx")),Ks=E(require("merge-refs")),So=require("react"),Xs=require("uuid");var Rr=require("react"),fn=(0,Rr.createContext)(null),gr=()=>{let e=(0,Rr.useContext)(fn);if(!e)throw new Error("`useRadioGroup` must be used within a `<RadioGroup />`");return e};var Oe=require("react/jsx-runtime"),Us=Pe(({children:e,style:o,className:t,name:r,value:n,disabled:i,readOnly:s,size:c,labelPlacement:d,colorScheme:l,onClick:m,...a},u)=>{let p=f,C=(0,So.useRef)(null),x=gr(),[v]=(0,So.useState)((0,Xs.v4)()),b=n??v,[T,y]=(0,So.useState)(!1);r=r??x?.name;let g=i||!1,h=s||!1,R=c||"md",S=d||"after",P=l||"default";g=i??x.disabled??g,h=s??x.readOnly??h,R=c??x.size??R,S=d??x.labelPlacement??S,P=l??x.colorScheme??P;let M=x.value===b,$=()=>{x.onChange(b)},k=B=>{m?.(B),C?.current?.focus()};return(0,Oe.jsxs)("label",{className:(0,go.default)(`${p}radio`,{[`${p}radio--checked`]:M,[`${p}radio--focus`]:T,[`${p}radio--disabled`]:g,[`${p}radio--read-only`]:h,[`${p}radio--${R}`]:R,[`${p}radio--${S}`]:S,[`${p}radio--${P}`]:P},t),style:o,onFocus:()=>{y(!0)},onBlur:()=>{y(!1)},children:[(0,Oe.jsx)("input",{...a,ref:(0,Ks.default)(C,u),type:"radio",name:r,value:String(b),checked:M,disabled:g,onChange:$,onClick:k}),(0,Oe.jsxs)("div",{className:(0,go.default)(`${p}radio__control`),children:[(0,Oe.jsx)("div",{className:(0,go.default)(`${p}radio__tap`)}),(0,Oe.jsx)(w,{children:(0,Oe.jsx)(Kr,{})})]}),e!==void 0&&(0,Oe.jsx)("div",{className:(0,go.default)(`${p}radio__label`),children:e})]})});var Ws=E(require("clsx")),Lo=require("react"),qs=require("uuid");var vn=require("react/jsx-runtime"),Qs=Pe(({children:e,className:o,name:t,value:r,defaultValue:n,disabled:i=!1,readOnly:s=!1,direction:c="row",alignment:d="start",size:l="md",labelPlacement:m="after",colorScheme:a="default",onChange:u,...p},C)=>{let x=f,[v]=(0,Lo.useState)((0,qs.v4)()),[b,T]=(0,Lo.useState)(r??n),y=g=>{if(u!==void 0){u(g);return}T(g)};return(0,Lo.useEffect)(()=>{r!==void 0&&T(r)},[r]),(0,vn.jsx)(fn.Provider,{value:{name:t??v,disabled:i,readOnly:s,value:b,direction:c,size:l,labelPlacement:m,colorScheme:a,onChange:y},children:(0,vn.jsx)("div",{...p,ref:C,role:"radiogroup",className:(0,Ws.default)(`${x}radio-group`,{[`${x}radio-group--${l}`]:l,[`${x}radio-group--${c}`]:c,[`${x}radio-group--${d}`]:d},o),children:e})})});var Ys=E(require("clsx"));var Ct=require("react/jsx-runtime"),Js=({className:e,children:o,startContent:t,endContent:r,placement:n="left",...i})=>{let s=f;return(0,Ct.jsxs)("div",{className:(0,Ys.default)(`${s}nav-rail`,{[`${s}nav-rail--${n}`]:n},e),...i,children:[(0,Ct.jsx)("div",{className:`${s}surface`}),t!==void 0&&(0,Ct.jsx)("div",{className:`${s}nav-rail__start-content`,children:t}),(0,Ct.jsx)("div",{className:`${s}nav-rail__content`,children:o}),r!==void 0&&(0,Ct.jsx)("div",{className:`${s}nav-rail__end-content`,children:r})]})};var Zs=E(require("clsx")),js=require("react");var de=require("react/jsx-runtime"),el=(0,js.forwardRef)((e,o)=>{let{as:t="div",label:r,icon:n,media:i,selected:s,className:c,...d}=e,l=f;return(0,de.jsxs)(t,{ref:o,className:(0,Zs.default)(`${l}nav-rail-item`,c,{[`${l}nav-rail-item--selected`]:s}),...d,children:[(0,de.jsx)("div",{className:`${l}surface`}),(0,de.jsx)("div",{className:`${l}overlay`}),(0,de.jsxs)("div",{className:`${l}nav-rail-item__content`,children:[(0,de.jsx)("div",{className:`${l}nav-rail-item__indicator`}),i!==void 0?(0,de.jsxs)("div",{className:`${l}nav-rail-item__media`,children:[(0,de.jsx)("div",{className:`${l}overlay`}),i]}):n!==void 0?(0,de.jsxs)("div",{className:`${l}nav-rail-item__icon`,children:[(0,de.jsx)("div",{className:`${l}overlay`}),n]}):null,r!==void 0&&(0,de.jsx)("span",{className:`${l}nav-rail-item__label`,children:r})]})]})});var yn=E(require("clsx")),Fe=require("react");var bn=E(require("clsx")),Mr=require("react");var tl=E(require("clsx")),ol=require("react");var rl=require("react/jsx-runtime"),xn=(0,ol.forwardRef)(({className:e,...o},t)=>(0,rl.jsx)("div",{ref:t,...o,className:(0,tl.default)(`${f}description-empty`,e),children:"---"}));var Sr=require("react"),Lr=(0,Sr.createContext)(null),Cn=()=>{let e=(0,Sr.useContext)(Lr);if(!e)throw new Error("`useCollapse` must be used within a `<Collapse />`");return e};var nl=E(require("clsx")),il=require("react");var al=require("react/jsx-runtime"),hn=(0,il.forwardRef)(({children:e,className:o,...t},r)=>(0,al.jsx)("div",{ref:r,...t,className:(0,nl.default)(`${f}description-text`,o),children:e}));var sl=require("react");function Pr(e){if(typeof e=="string"||typeof e=="number")return e.toString();if((0,sl.isValidElement)(e)){let o=e.props.children;return Pr(o)}return Array.isArray(e)?e.map(Pr).join(""):""}var ht=require("react/jsx-runtime"),Tn=({item:e})=>{let o=f,t={...e,type:e.type??"string"},{mq:r,labelAlign:n,contentAlign:i}=Cn(),s=(0,Mr.useMemo)(()=>{if(r!==void 0){if(typeof t.span!="object")return t.span??12;for(let l of Ce)if(r>=l.mq&&t.span[l.key]!==void 0)return t.span[l.key];return 12}},[r,t.span]),c=(0,Mr.useMemo)(()=>{if(r!==void 0){if(typeof t.order!="object")return t.order??0;for(let l of Ce)if(r>=l.mq&&t.order[l.key]!==void 0)return t.order[l.key];return 0}},[r,t.order]),d=(0,Mr.useMemo)(()=>{if(!(t.value===void 0||t.value===null||t.value==="")){if(t.type==="date")return t.format?t.format==="date"?Io(t.value,t.locales,t.options):t.format==="datetime"?Dr(t.value,t.locales,t.options):t.format==="short datetime"?Ar(t.value,t.locales,t.options):Nr(t.value,t.locales,t.options):Io(t.value,t.locales,t.options);if(t.type==="boolean"){let l=t.labels?.true??"Yes",m=t.labels?.false??"No";return t.value?l:m}else{if(t.type==="currency")return $r(t.value,t.currency,t.locales,t.options);if(t.type==="percent")return kr(t.value,t.decimals,t.locales,t.options)}return typeof t.value=="string"?t.value:String(t.value)}},[t.type,t.value,t.format,t.locales,t.options,t.currency,t.decimals]);return(0,ht.jsxs)("div",{className:(0,bn.default)(`${o}description`),style:{gridColumn:`span ${s} / span ${s}`,order:c},children:[(0,ht.jsx)("div",{title:Pr(t.label),className:(0,bn.default)(`${o}description-label`),style:{textAlign:n},children:t.label}),(0,ht.jsx)("div",{title:d,className:`${o}description__content`,style:{textAlign:i},children:t.render!==void 0?t.render({content:d??"---",isEmpty:!d,mq:r}):d!==void 0?(0,ht.jsx)(hn,{children:d}):(0,ht.jsx)(xn,{})})]})};var Po=require("react/jsx-runtime"),Ic=({items:e,layout:o="row",size:t="md",cols:r=12,align:n="start",labelAlign:i,contentAlign:s})=>{let c=f,d=(0,Fe.useRef)(null),l=Yr({ref:d}),m=(0,Fe.useMemo)(()=>{if(l!==void 0){if(typeof o!="object")return o??"row";for(let v of Ce)if(l>=v.mq&&o[v.key]!==void 0)return o[v.key];return"row"}},[l,o]),a=(0,Fe.useMemo)(()=>{if(l!==void 0){if(typeof t!="object")return t??"md";for(let v of Ce)if(l>=v.mq&&t[v.key]!==void 0)return t[v.key];return"md"}},[l,t]),u=(0,Fe.useMemo)(()=>{if(l!==void 0){if(typeof r!="object")return r??12;for(let v of Ce)if(l>=v.mq&&r[v.key]!==void 0)return r[v.key];return 12}},[l,r]),p=(0,Fe.useMemo)(()=>{if(l!==void 0){if(typeof n!="object")return n??"start";for(let v of Ce)if(l>=v.mq&&n[v.key]!==void 0)return n[v.key];return"start"}},[l,n]),C=(0,Fe.useMemo)(()=>{if(l!==void 0){if(typeof i!="object")return i??void 0;for(let v of Ce)if(l>=v.mq&&i[v.key]!==void 0)return i[v.key]}},[l,i]),x=(0,Fe.useMemo)(()=>{if(l!==void 0){if(typeof s!="object")return s??void 0;for(let v of Ce)if(l>=v.mq&&s[v.key]!==void 0)return s[v.key]}},[l,s]);return(0,Po.jsx)("div",{ref:d,className:(0,yn.default)(`${c}descriptions-wrapper`),children:l!==void 0&&(0,Po.jsx)(Lr.Provider,{value:{mq:l,layout:m,size:a,cols:u,labelAlign:C??p,contentAlign:x??p},children:(0,Po.jsx)("div",{className:(0,yn.default)(`${c}descriptions`,{[`${c}descriptions--${a}`]:a,[`${c}descriptions--${m}`]:m}),style:{gridTemplateColumns:`repeat(${u}, minmax(0, 1fr))`},children:e.map((v,b)=>(0,Po.jsx)(Tn,{item:v},b))})})})};0&&(module.exports={Accordion,AccordionBody,AccordionContent,AccordionContext,AccordionHeader,AccordionItem,AccordionTrigger,Autocomplete,Backdrop,Badge,Button,ButtonGroup,ButtonGroupContext,Card,CardBody,CardFooter,CardHeader,CardMedia,CardSubtitle,CardTitle,Checkbox,CheckboxGroup,Chip,Collapse,CollapseContent,CollapseContext,CollapseTrigger,ContainerMediaQuery,DataList,Description,DescriptionEmpty,DescriptionText,Descriptions,DescriptionsContext,Divider,Drawer,DrawerBody,DrawerContext,DrawerFooter,DrawerHeader,Field,Icon,List,ListGroup,ListItem,ListSubheader,Menu,MenuContext,MenuGroup,MenuItem,MenuSubmenu,MenuValueContext,Modal,ModalBody,ModalFooter,ModalHeader,MutationStatus,NavRail,NavRailItem,Popover,PopoverContent,PopoverTrigger,Portal,QueryStatus,Radio,RadioGroup,Result,ScrollArea,Select,Swipe,SwipeItem,Switch,Tab,Tabs,TextInput,Toolbar,Transition,assignRef,breakpointsMap,clsx,dateFormat,defaultBreakpoints,formatCurrency,formatDate,formatDateTime,formatPercent,formatShortDateTime,formatTime,getOpenValuesByPathname,hasResizeObserver,mergeRefs,scrollToItem,useAccordion,useAccordionItem,useButtonGroup,useCheckboxGroup,useCollapse,useContainerMediaQuery,useDebounce,useDescriptionsContext,useDisclosure,useDrawer,useEffectEvent,useElementSize,useInfiniteQuery,useLocalStorage,useMediaQuery,useMenu,useMenuItemValue,useModal,useMutation,useOnClickOutside,usePopover,usePrevious,useQuery,useRadioGroup,useResizeObserver,useStep,useValueEffect,useVirtualizer});
|