@unifiedsoftware/react-ui 1.0.70 → 1.1.0
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 +224 -140
- package/dist/index.js +1 -1
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@ interface AccordionArrow {
|
|
|
9
9
|
position?: 'start' | 'end';
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
interface Props$
|
|
12
|
+
interface Props$y {
|
|
13
13
|
value?: any[];
|
|
14
14
|
defaultValue?: any[];
|
|
15
15
|
expandMode?: 'single' | 'multiple';
|
|
@@ -17,22 +17,22 @@ interface Props$u {
|
|
|
17
17
|
arrow?: AccordionArrow;
|
|
18
18
|
onChange?: (value: any[]) => void;
|
|
19
19
|
}
|
|
20
|
-
type NativeAttrs$
|
|
21
|
-
type AccordionProps = Props$
|
|
22
|
-
declare const Accordion: react.ForwardRefExoticComponent<Props$
|
|
20
|
+
type NativeAttrs$y = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$y>;
|
|
21
|
+
type AccordionProps = Props$y & NativeAttrs$y;
|
|
22
|
+
declare const Accordion: react.ForwardRefExoticComponent<Props$y & NativeAttrs$y & react.RefAttributes<HTMLDivElement>>;
|
|
23
23
|
|
|
24
24
|
interface AccordionItemContextValue {
|
|
25
25
|
value: string;
|
|
26
26
|
}
|
|
27
27
|
declare const useAccordionItem: () => AccordionItemContextValue;
|
|
28
|
-
interface Props$
|
|
28
|
+
interface Props$x {
|
|
29
29
|
value?: any;
|
|
30
30
|
}
|
|
31
|
-
type NativeAttrs$
|
|
32
|
-
type AccordionItemProps = Props$
|
|
33
|
-
declare const AccordionItem: react.ForwardRefExoticComponent<Props$
|
|
31
|
+
type NativeAttrs$x = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$x>;
|
|
32
|
+
type AccordionItemProps = Props$x & NativeAttrs$x;
|
|
33
|
+
declare const AccordionItem: react.ForwardRefExoticComponent<Props$x & NativeAttrs$x & react.RefAttributes<HTMLDivElement>>;
|
|
34
34
|
|
|
35
|
-
interface Props$
|
|
35
|
+
interface Props$w {
|
|
36
36
|
as?: React.ElementType;
|
|
37
37
|
title?: React.ReactNode;
|
|
38
38
|
subtitle?: React.ReactNode;
|
|
@@ -49,9 +49,9 @@ interface Props$s {
|
|
|
49
49
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
|
-
type NativeAttrs$
|
|
53
|
-
type AccordionHeaderProps = Props$
|
|
54
|
-
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$
|
|
52
|
+
type NativeAttrs$w = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$w>;
|
|
53
|
+
type AccordionHeaderProps = Props$w & NativeAttrs$w;
|
|
54
|
+
declare const AccordionHeader: react.ForwardRefExoticComponent<Props$w & NativeAttrs$w & react.RefAttributes<HTMLDivElement>>;
|
|
55
55
|
|
|
56
56
|
type AccordionBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
57
57
|
declare const AccordionBody: react.ForwardRefExoticComponent<AccordionBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
@@ -145,7 +145,7 @@ interface ScrollToOptions {
|
|
|
145
145
|
}
|
|
146
146
|
type Key = number | string;
|
|
147
147
|
interface Virtualizer {
|
|
148
|
-
scrollOffset: number;
|
|
148
|
+
scrollOffset: number | null;
|
|
149
149
|
hasNextPage?: boolean;
|
|
150
150
|
getVirtualItems: () => VirtualItem[];
|
|
151
151
|
getTotalSize: () => number;
|
|
@@ -316,7 +316,7 @@ interface ListProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
316
316
|
}
|
|
317
317
|
declare const List: react.ForwardRefExoticComponent<ListProps & react.RefAttributes<HTMLDivElement>>;
|
|
318
318
|
|
|
319
|
-
interface Props$
|
|
319
|
+
interface Props$v {
|
|
320
320
|
as?: react__default.ElementType;
|
|
321
321
|
title?: react__default.ReactNode;
|
|
322
322
|
subtitle?: react__default.ReactNode;
|
|
@@ -334,11 +334,11 @@ interface Props$r {
|
|
|
334
334
|
subtitle?: react__default.HTMLAttributes<HTMLDivElement>;
|
|
335
335
|
};
|
|
336
336
|
}
|
|
337
|
-
type NativeAttrs$
|
|
338
|
-
type ListItemProps = Props$
|
|
339
|
-
declare const ListItem: react__default.ForwardRefExoticComponent<Props$
|
|
337
|
+
type NativeAttrs$v = Omit<react__default.HTMLAttributes<HTMLDivElement>, keyof Props$v>;
|
|
338
|
+
type ListItemProps = Props$v & NativeAttrs$v;
|
|
339
|
+
declare const ListItem: react__default.ForwardRefExoticComponent<Props$v & NativeAttrs$v & react__default.RefAttributes<HTMLDivElement>>;
|
|
340
340
|
|
|
341
|
-
interface Props$
|
|
341
|
+
interface Props$u {
|
|
342
342
|
expandVisible?: boolean;
|
|
343
343
|
expandPosition?: 'start' | 'end';
|
|
344
344
|
isOpen?: boolean;
|
|
@@ -346,9 +346,9 @@ interface Props$q {
|
|
|
346
346
|
onClose?: () => void;
|
|
347
347
|
onToggle?: () => void;
|
|
348
348
|
}
|
|
349
|
-
type NativeAttrs$
|
|
350
|
-
type ListGroupProps = Props$
|
|
351
|
-
declare const ListGroup: react.ForwardRefExoticComponent<Props$
|
|
349
|
+
type NativeAttrs$u = Omit<ListItemProps, keyof Props$u>;
|
|
350
|
+
type ListGroupProps = Props$u & NativeAttrs$u;
|
|
351
|
+
declare const ListGroup: react.ForwardRefExoticComponent<Props$u & NativeAttrs$u & react.RefAttributes<HTMLDivElement>>;
|
|
352
352
|
|
|
353
353
|
interface ListSubheaderProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
354
354
|
as?: React.ElementType;
|
|
@@ -390,8 +390,8 @@ interface AutocompleteMultipleProps<TAutocompleteItem extends AutocompleteItem,
|
|
|
390
390
|
onChange?: (value: TAutocompleteItem[]) => void;
|
|
391
391
|
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField][]) => void;
|
|
392
392
|
}
|
|
393
|
-
type NativeAttrs$
|
|
394
|
-
type Props$
|
|
393
|
+
type NativeAttrs$t<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$t<TAutocompleteItem, TAutocompleteKeyField>>;
|
|
394
|
+
type Props$t<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = {
|
|
395
395
|
data: TAutocompleteItem[];
|
|
396
396
|
keyField?: TAutocompleteKeyField;
|
|
397
397
|
textField?: keyof TAutocompleteItem;
|
|
@@ -412,14 +412,14 @@ type Props$p<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField e
|
|
|
412
412
|
renderItem?: (item: TAutocompleteItem, props: ListItemProps) => React.ReactNode;
|
|
413
413
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
414
414
|
} & (AutocompleteSingleProps<TAutocompleteItem, TAutocompleteKeyField> | AutocompleteMultipleProps<TAutocompleteItem, TAutocompleteKeyField>);
|
|
415
|
-
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$
|
|
415
|
+
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$t<TAutocompleteItem, TAutocompleteKeyField> & NativeAttrs$t<TAutocompleteItem, TAutocompleteKeyField>;
|
|
416
416
|
|
|
417
|
-
declare const Autocomplete: <TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends
|
|
417
|
+
declare const Autocomplete: <TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = "key">(props: AutocompleteProps<TAutocompleteItem, TAutocompleteKeyField>) => react_jsx_runtime.JSX.Element;
|
|
418
418
|
|
|
419
419
|
type BackdropPlacement = 'top' | 'left' | 'center' | 'right' | 'bottom';
|
|
420
420
|
type BackdropVariant = 'opaque' | 'blur' | 'transparent';
|
|
421
421
|
|
|
422
|
-
interface Props$
|
|
422
|
+
interface Props$s {
|
|
423
423
|
isOpen: boolean;
|
|
424
424
|
closable?: boolean;
|
|
425
425
|
placement?: BackdropPlacement;
|
|
@@ -428,14 +428,14 @@ interface Props$o {
|
|
|
428
428
|
scrollArea?: boolean;
|
|
429
429
|
onClose(): void;
|
|
430
430
|
}
|
|
431
|
-
type NativeAttrs$
|
|
432
|
-
type BackdropProps = Props$
|
|
433
|
-
declare const Backdrop: react.ForwardRefExoticComponent<Props$
|
|
431
|
+
type NativeAttrs$s = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$s>;
|
|
432
|
+
type BackdropProps = Props$s & NativeAttrs$s;
|
|
433
|
+
declare const Backdrop: react.ForwardRefExoticComponent<Props$s & NativeAttrs$s & react.RefAttributes<HTMLDivElement>>;
|
|
434
434
|
|
|
435
435
|
type BadgeColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
436
436
|
type BadgePlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
437
437
|
|
|
438
|
-
interface Props$
|
|
438
|
+
interface Props$r {
|
|
439
439
|
/**
|
|
440
440
|
* The placement of the badge relative to its content.
|
|
441
441
|
*/
|
|
@@ -453,8 +453,8 @@ interface Props$n {
|
|
|
453
453
|
wrapper?: React.HTMLAttributes<HTMLDivElement>;
|
|
454
454
|
};
|
|
455
455
|
}
|
|
456
|
-
type NativeAttrs$
|
|
457
|
-
type BadgeProps = Props$
|
|
456
|
+
type NativeAttrs$r = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$r>;
|
|
457
|
+
type BadgeProps = Props$r & NativeAttrs$r;
|
|
458
458
|
declare const Badge: React.FC<BadgeProps>;
|
|
459
459
|
|
|
460
460
|
type DataListItem = Record<string, any>;
|
|
@@ -471,7 +471,7 @@ interface DataListMultipleProps<TDataListItem extends DataListItem, TDataListKey
|
|
|
471
471
|
onChange?: (value: TDataListItem[]) => void;
|
|
472
472
|
onValueChange?: (value: TDataListItem[TDataListKeyField][]) => void;
|
|
473
473
|
}
|
|
474
|
-
type Props$
|
|
474
|
+
type Props$q<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = {
|
|
475
475
|
data: TDataListItem[];
|
|
476
476
|
keyField?: TDataListKeyField;
|
|
477
477
|
textField?: keyof DataListItem;
|
|
@@ -486,17 +486,17 @@ type Props$m<TDataListItem extends DataListItem, TDataListKeyField extends DataL
|
|
|
486
486
|
renderItem?: (item: TDataListItem, props: ListItemProps$1) => React.ReactNode;
|
|
487
487
|
renderNoData?: (props: ResultProps$1) => React.ReactNode;
|
|
488
488
|
} & (DataListSingleProps<TDataListItem, TDataListKeyField> | DataListMultipleProps<TDataListItem, TDataListKeyField>);
|
|
489
|
-
type NativeAttrs$
|
|
490
|
-
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$
|
|
489
|
+
type NativeAttrs$q<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$q<TDataListItem, TDataListKeyField>>;
|
|
490
|
+
type DataListProps<TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = 'key'> = Props$q<TDataListItem, TDataListKeyField> & NativeAttrs$q<TDataListItem, TDataListKeyField>;
|
|
491
491
|
|
|
492
|
-
declare const DataList: <TDataListItem extends DataListItem, TDataListKeyField extends
|
|
492
|
+
declare const DataList: <TDataListItem extends DataListItem, TDataListKeyField extends DataListKeyField<TDataListItem> = "key">(props: DataListProps<TDataListItem, TDataListKeyField>) => react_jsx_runtime.JSX.Element;
|
|
493
493
|
|
|
494
494
|
type ButtonVariant = 'filled' | 'outlined' | 'flat' | 'text';
|
|
495
495
|
type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger' | 'inherit';
|
|
496
496
|
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
497
497
|
type ButtonGroupDirection = 'row' | 'col';
|
|
498
498
|
|
|
499
|
-
interface Props$
|
|
499
|
+
interface Props$p {
|
|
500
500
|
/**
|
|
501
501
|
* The HTML element type or React component to render as the button.
|
|
502
502
|
*/
|
|
@@ -535,20 +535,20 @@ interface Props$l {
|
|
|
535
535
|
*/
|
|
536
536
|
disabled?: boolean;
|
|
537
537
|
}
|
|
538
|
-
type NativeAttrs$
|
|
539
|
-
type ButtonProps = Props$
|
|
540
|
-
declare const Button: react.ForwardRefExoticComponent<Props$
|
|
538
|
+
type NativeAttrs$p = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$p>;
|
|
539
|
+
type ButtonProps = Props$p & NativeAttrs$p;
|
|
540
|
+
declare const Button: react.ForwardRefExoticComponent<Props$p & NativeAttrs$p & react.RefAttributes<HTMLButtonElement>>;
|
|
541
541
|
|
|
542
|
-
interface Props$
|
|
542
|
+
interface Props$o {
|
|
543
543
|
direction?: ButtonGroupDirection;
|
|
544
544
|
variant?: ButtonVariant;
|
|
545
545
|
color?: ButtonColor;
|
|
546
546
|
size?: ButtonSize;
|
|
547
547
|
disabled?: boolean;
|
|
548
548
|
}
|
|
549
|
-
type NativeAttrs$
|
|
550
|
-
type ButtonGroupProps = Props$
|
|
551
|
-
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$
|
|
549
|
+
type NativeAttrs$o = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$o>;
|
|
550
|
+
type ButtonGroupProps = Props$o & NativeAttrs$o;
|
|
551
|
+
declare const ButtonGroup: react.ForwardRefExoticComponent<Props$o & NativeAttrs$o & react.RefAttributes<HTMLDivElement>>;
|
|
552
552
|
|
|
553
553
|
interface ButtonGroupContextValue {
|
|
554
554
|
direction: ButtonGroupDirection;
|
|
@@ -580,7 +580,7 @@ type BoxCSS = {
|
|
|
580
580
|
|
|
581
581
|
type CardSize = 'sm' | 'md' | 'lg';
|
|
582
582
|
|
|
583
|
-
interface Props$
|
|
583
|
+
interface Props$n {
|
|
584
584
|
as?: React.ElementType;
|
|
585
585
|
size?: CardSize;
|
|
586
586
|
hoverable?: boolean;
|
|
@@ -589,14 +589,14 @@ interface Props$j {
|
|
|
589
589
|
bordered?: boolean;
|
|
590
590
|
css?: BoxCSS;
|
|
591
591
|
}
|
|
592
|
-
type NativeAttrs$
|
|
593
|
-
type CardProps = Props$
|
|
594
|
-
declare const Card: react.ForwardRefExoticComponent<Props$
|
|
592
|
+
type NativeAttrs$n = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$n>;
|
|
593
|
+
type CardProps = Props$n & NativeAttrs$n;
|
|
594
|
+
declare const Card: react.ForwardRefExoticComponent<Props$n & NativeAttrs$n & react.RefAttributes<HTMLDivElement>>;
|
|
595
595
|
|
|
596
596
|
type CardBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
597
597
|
declare const CardBody: react.ForwardRefExoticComponent<CardBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
598
598
|
|
|
599
|
-
interface Props$
|
|
599
|
+
interface Props$m {
|
|
600
600
|
as?: React.ElementType;
|
|
601
601
|
title?: React.ReactNode;
|
|
602
602
|
subtitle?: React.ReactNode;
|
|
@@ -611,23 +611,23 @@ interface Props$i {
|
|
|
611
611
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
612
612
|
};
|
|
613
613
|
}
|
|
614
|
-
type NativeAttrs$
|
|
615
|
-
type CardHeaderProps = Props$
|
|
616
|
-
declare const CardHeader: react.ForwardRefExoticComponent<Props$
|
|
614
|
+
type NativeAttrs$m = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$m>;
|
|
615
|
+
type CardHeaderProps = Props$m & NativeAttrs$m;
|
|
616
|
+
declare const CardHeader: react.ForwardRefExoticComponent<Props$m & NativeAttrs$m & react.RefAttributes<HTMLDivElement>>;
|
|
617
617
|
|
|
618
|
-
interface Props$
|
|
618
|
+
interface Props$l {
|
|
619
619
|
as?: React.ElementType;
|
|
620
620
|
bordered?: boolean;
|
|
621
621
|
}
|
|
622
|
-
type NativeAttrs$
|
|
623
|
-
type CardFooterProps = Props$
|
|
624
|
-
declare const CardFooter: react.ForwardRefExoticComponent<Props$
|
|
622
|
+
type NativeAttrs$l = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$l>;
|
|
623
|
+
type CardFooterProps = Props$l & NativeAttrs$l;
|
|
624
|
+
declare const CardFooter: react.ForwardRefExoticComponent<Props$l & NativeAttrs$l & react.RefAttributes<HTMLDivElement>>;
|
|
625
625
|
|
|
626
626
|
type ChipVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain';
|
|
627
627
|
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
628
628
|
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
629
629
|
|
|
630
|
-
interface Props$
|
|
630
|
+
interface Props$k {
|
|
631
631
|
/**
|
|
632
632
|
* The HTML element type or React component to render as the chip.
|
|
633
633
|
*/
|
|
@@ -659,9 +659,9 @@ interface Props$g {
|
|
|
659
659
|
closable?: boolean;
|
|
660
660
|
onClose?: () => void;
|
|
661
661
|
}
|
|
662
|
-
type NativeAttrs$
|
|
663
|
-
type ChipProps = Props$
|
|
664
|
-
declare const Chip: react.ForwardRefExoticComponent<Props$
|
|
662
|
+
type NativeAttrs$k = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$k>;
|
|
663
|
+
type ChipProps = Props$k & NativeAttrs$k;
|
|
664
|
+
declare const Chip: react.ForwardRefExoticComponent<Props$k & NativeAttrs$k & react.RefAttributes<HTMLDivElement>>;
|
|
665
665
|
|
|
666
666
|
interface CollapseProps {
|
|
667
667
|
children: React.ReactNode;
|
|
@@ -705,7 +705,7 @@ interface DrawerClose {
|
|
|
705
705
|
}
|
|
706
706
|
type DrawerBackdrop = BackdropVariant;
|
|
707
707
|
|
|
708
|
-
interface Props$
|
|
708
|
+
interface Props$j {
|
|
709
709
|
isOpen: boolean;
|
|
710
710
|
size?: DrawerSize;
|
|
711
711
|
backdrop?: DrawerBackdrop;
|
|
@@ -716,16 +716,17 @@ interface Props$f {
|
|
|
716
716
|
placement?: DrawerPlacement;
|
|
717
717
|
closable?: boolean;
|
|
718
718
|
vars?: {
|
|
719
|
+
width?: string;
|
|
719
720
|
xsWidth?: any;
|
|
720
721
|
};
|
|
721
722
|
onClose: () => void;
|
|
722
723
|
onAfterClose?: () => void;
|
|
723
724
|
}
|
|
724
|
-
type NativeAttrs$
|
|
725
|
-
type DrawerProps = Props$
|
|
726
|
-
declare const Drawer: react.ForwardRefExoticComponent<Props$
|
|
725
|
+
type NativeAttrs$j = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$j>;
|
|
726
|
+
type DrawerProps = Props$j & NativeAttrs$j;
|
|
727
|
+
declare const Drawer: react.ForwardRefExoticComponent<Props$j & NativeAttrs$j & react.RefAttributes<HTMLDivElement>>;
|
|
727
728
|
|
|
728
|
-
interface Props$
|
|
729
|
+
interface Props$i {
|
|
729
730
|
as?: React.ElementType;
|
|
730
731
|
title?: React.ReactNode;
|
|
731
732
|
subtitle?: React.ReactNode;
|
|
@@ -741,20 +742,20 @@ interface Props$e {
|
|
|
741
742
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
742
743
|
};
|
|
743
744
|
}
|
|
744
|
-
type NativeAttrs$
|
|
745
|
-
type DrawerHeaderProps = Props$
|
|
746
|
-
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$
|
|
745
|
+
type NativeAttrs$i = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$i>;
|
|
746
|
+
type DrawerHeaderProps = Props$i & NativeAttrs$i;
|
|
747
|
+
declare const DrawerHeader: react.ForwardRefExoticComponent<Props$i & NativeAttrs$i & react.RefAttributes<HTMLDivElement>>;
|
|
747
748
|
|
|
748
749
|
type DrawerBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
749
750
|
declare const DrawerBody: react.ForwardRefExoticComponent<DrawerBodyProps & react.RefAttributes<HTMLDivElement>>;
|
|
750
751
|
|
|
751
|
-
interface Props$
|
|
752
|
+
interface Props$h {
|
|
752
753
|
as?: React.ElementType;
|
|
753
754
|
bordered?: boolean;
|
|
754
755
|
}
|
|
755
|
-
type NativeAttrs$
|
|
756
|
-
type DrawerFooterProps = Props$
|
|
757
|
-
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$
|
|
756
|
+
type NativeAttrs$h = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$h>;
|
|
757
|
+
type DrawerFooterProps = Props$h & NativeAttrs$h;
|
|
758
|
+
declare const DrawerFooter: react.ForwardRefExoticComponent<Props$h & NativeAttrs$h & react.RefAttributes<HTMLDivElement>>;
|
|
758
759
|
|
|
759
760
|
interface DrawerContextValue {
|
|
760
761
|
isOpen: boolean;
|
|
@@ -778,7 +779,7 @@ interface IconProps {
|
|
|
778
779
|
}
|
|
779
780
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<unknown>>;
|
|
780
781
|
|
|
781
|
-
interface Props$
|
|
782
|
+
interface Props$g {
|
|
782
783
|
/**
|
|
783
784
|
* The HTML element type or React component to render as the menu item.
|
|
784
785
|
*/
|
|
@@ -804,9 +805,9 @@ interface Props$c {
|
|
|
804
805
|
*/
|
|
805
806
|
disabled?: boolean;
|
|
806
807
|
}
|
|
807
|
-
type NativeAttrs$
|
|
808
|
-
type MenuItemProps = Props$
|
|
809
|
-
declare const MenuItem: react.ForwardRefExoticComponent<Props$
|
|
808
|
+
type NativeAttrs$g = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$g | 'items'>;
|
|
809
|
+
type MenuItemProps = Props$g & NativeAttrs$g;
|
|
810
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Props$g & NativeAttrs$g & react.RefAttributes<HTMLDivElement>>;
|
|
810
811
|
|
|
811
812
|
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
812
813
|
items?: MenuItemType[];
|
|
@@ -830,7 +831,7 @@ type MenuItemType = (MenuGroupProps & {
|
|
|
830
831
|
}) | (MenuItemProps & {
|
|
831
832
|
type?: 'item';
|
|
832
833
|
});
|
|
833
|
-
interface Props$
|
|
834
|
+
interface Props$f {
|
|
834
835
|
/**
|
|
835
836
|
* The currently selected value of the menu.
|
|
836
837
|
*/
|
|
@@ -866,8 +867,8 @@ interface Props$b {
|
|
|
866
867
|
*/
|
|
867
868
|
onItemSelect?: (props: MenuItemProps) => void;
|
|
868
869
|
}
|
|
869
|
-
type NativeAttrs$
|
|
870
|
-
type MenuProps = Props$
|
|
870
|
+
type NativeAttrs$f = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$f | 'items'>;
|
|
871
|
+
type MenuProps = Props$f & NativeAttrs$f & {
|
|
871
872
|
items?: MenuItemType[];
|
|
872
873
|
};
|
|
873
874
|
declare const Menu: React.FC<MenuProps>;
|
|
@@ -954,8 +955,8 @@ interface SelectMultipleProps<TSelectItem extends SelectItem, TSelectKeyField ex
|
|
|
954
955
|
onChange?: (value: TSelectItem[]) => void;
|
|
955
956
|
onValueChange?: (value: TSelectItem[TSelectKeyField][]) => void;
|
|
956
957
|
}
|
|
957
|
-
type NativeAttrs$
|
|
958
|
-
type Props$
|
|
958
|
+
type NativeAttrs$e<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$e<TSelectItem, TSelectKeyField>>;
|
|
959
|
+
type Props$e<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = {
|
|
959
960
|
data: TSelectItem[];
|
|
960
961
|
keyField?: TSelectKeyField;
|
|
961
962
|
textField?: keyof TSelectItem;
|
|
@@ -974,25 +975,27 @@ type Props$a<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyFi
|
|
|
974
975
|
renderItem?: (item: TSelectItem, props: ListItemProps) => React.ReactNode;
|
|
975
976
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
976
977
|
} & (SelectSingleProps<TSelectItem, TSelectKeyField> | SelectMultipleProps<TSelectItem, TSelectKeyField>);
|
|
977
|
-
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props$
|
|
978
|
+
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props$e<TSelectItem, TSelectKeyField> & NativeAttrs$e<TSelectItem, TSelectKeyField>;
|
|
978
979
|
|
|
979
|
-
declare const Select: <TSelectItem extends SelectItem, TSelectKeyField extends
|
|
980
|
+
declare const Select: <TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = "key">(props: SelectProps<TSelectItem, TSelectKeyField>) => react_jsx_runtime.JSX.Element;
|
|
980
981
|
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
onChange?: (
|
|
989
|
-
onCheckedChange?: (checked: boolean) => void;
|
|
982
|
+
type ColorScheme = 'default' | 'light' | 'dark';
|
|
983
|
+
|
|
984
|
+
type SwitchSize = 'sm' | 'md' | 'lg';
|
|
985
|
+
|
|
986
|
+
interface Props$d {
|
|
987
|
+
size?: SwitchSize;
|
|
988
|
+
colorScheme?: ColorScheme;
|
|
989
|
+
onChange?: (checked: boolean) => void;
|
|
990
990
|
}
|
|
991
|
-
type NativeAttrs$
|
|
992
|
-
type SwitchProps = Props$
|
|
993
|
-
declare const Switch: react.ForwardRefExoticComponent<Props$
|
|
991
|
+
type NativeAttrs$d = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$d | 'value' | 'defaultValue'>;
|
|
992
|
+
type SwitchProps = Props$d & NativeAttrs$d;
|
|
993
|
+
declare const Switch: react.ForwardRefExoticComponent<Props$d & NativeAttrs$d & react.RefAttributes<HTMLInputElement>>;
|
|
994
994
|
|
|
995
|
-
|
|
995
|
+
type TabValue = string | number | symbol;
|
|
996
|
+
type TabsAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
997
|
+
|
|
998
|
+
interface Props$c<TTabValue extends TabValue = TabValue> {
|
|
996
999
|
/**
|
|
997
1000
|
* The HTML element type or React component to render as the tab.
|
|
998
1001
|
*/
|
|
@@ -1000,7 +1003,7 @@ interface Props$8 {
|
|
|
1000
1003
|
/**
|
|
1001
1004
|
* The value associated with the tab.
|
|
1002
1005
|
*/
|
|
1003
|
-
value?:
|
|
1006
|
+
value?: TTabValue;
|
|
1004
1007
|
/**
|
|
1005
1008
|
* Whether the tab can be closed.
|
|
1006
1009
|
*/
|
|
@@ -1018,41 +1021,37 @@ interface Props$8 {
|
|
|
1018
1021
|
*/
|
|
1019
1022
|
endContent?: React.ReactNode;
|
|
1020
1023
|
}
|
|
1021
|
-
type NativeAttrs$
|
|
1022
|
-
type TabProps = Props$
|
|
1023
|
-
declare const Tab: react.ForwardRefExoticComponent<Props$
|
|
1024
|
-
children?: react.ReactNode;
|
|
1025
|
-
} & react.RefAttributes<HTMLDivElement>>;
|
|
1024
|
+
type NativeAttrs$c = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$c>;
|
|
1025
|
+
type TabProps<TTabValue extends TabValue = TabValue> = Props$c<TTabValue> & NativeAttrs$c;
|
|
1026
|
+
declare const Tab: react.ForwardRefExoticComponent<Props$c<TabValue> & NativeAttrs$c & react.RefAttributes<HTMLDivElement>>;
|
|
1026
1027
|
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
interface Props$7 {
|
|
1028
|
+
interface Props$b<TTabValue extends TabValue = TabValue> {
|
|
1030
1029
|
/**
|
|
1031
1030
|
* The currently selected value of the tabs.
|
|
1032
1031
|
*/
|
|
1033
|
-
value?:
|
|
1032
|
+
value?: TTabValue;
|
|
1034
1033
|
/**
|
|
1035
1034
|
* The default value of the tabs when initially rendered.
|
|
1036
1035
|
*/
|
|
1037
|
-
defaultValue?:
|
|
1036
|
+
defaultValue?: TTabValue;
|
|
1038
1037
|
/**
|
|
1039
1038
|
* The alignment of the tabs.
|
|
1040
1039
|
*/
|
|
1041
|
-
alignment?:
|
|
1040
|
+
alignment?: TabsAlignment;
|
|
1042
1041
|
/**
|
|
1043
1042
|
* A callback function called when the selected tab value changes.
|
|
1044
1043
|
*/
|
|
1045
|
-
onChange?: (value:
|
|
1044
|
+
onChange?: (value: TTabValue) => void;
|
|
1046
1045
|
/**
|
|
1047
1046
|
* A callback function called when a tab is closed.
|
|
1048
1047
|
*/
|
|
1049
|
-
onClose?: (value:
|
|
1048
|
+
onClose?: (value: TTabValue) => void;
|
|
1050
1049
|
}
|
|
1051
|
-
type NativeAttrs$
|
|
1052
|
-
type TabsProps = Props$
|
|
1053
|
-
declare const Tabs: React.
|
|
1050
|
+
type NativeAttrs$b = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$b>;
|
|
1051
|
+
type TabsProps<TTabValue extends TabValue = TabValue> = Props$b<TTabValue> & NativeAttrs$b;
|
|
1052
|
+
declare const Tabs: <TTabValue extends TabValue = TabValue>(props: Props$b<TTabValue> & NativeAttrs$b & react.RefAttributes<HTMLDivElement>) => React.ReactNode;
|
|
1054
1053
|
|
|
1055
|
-
interface Props$
|
|
1054
|
+
interface Props$a {
|
|
1056
1055
|
inputRef?: React.RefObject<HTMLInputElement>;
|
|
1057
1056
|
variant?: InputVariant;
|
|
1058
1057
|
color?: InputColor;
|
|
@@ -1061,13 +1060,13 @@ interface Props$6 {
|
|
|
1061
1060
|
endContent?: React.ReactNode;
|
|
1062
1061
|
css?: BoxCSS;
|
|
1063
1062
|
}
|
|
1064
|
-
type NativeAttrs$
|
|
1065
|
-
type TextInputProps = Props$
|
|
1066
|
-
declare const TextInput: react.ForwardRefExoticComponent<Props$
|
|
1063
|
+
type NativeAttrs$a = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$a>;
|
|
1064
|
+
type TextInputProps = Props$a & NativeAttrs$a;
|
|
1065
|
+
declare const TextInput: react.ForwardRefExoticComponent<Props$a & NativeAttrs$a & react.RefAttributes<HTMLInputElement>>;
|
|
1067
1066
|
|
|
1068
1067
|
type ToolbarSize = 'auto' | 'sm' | 'md' | 'lg';
|
|
1069
1068
|
|
|
1070
|
-
interface Props$
|
|
1069
|
+
interface Props$9 {
|
|
1071
1070
|
size?: ToolbarSize;
|
|
1072
1071
|
title?: React.ReactNode;
|
|
1073
1072
|
subtitle?: React.ReactNode;
|
|
@@ -1089,8 +1088,8 @@ interface Props$5 {
|
|
|
1089
1088
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1090
1089
|
};
|
|
1091
1090
|
}
|
|
1092
|
-
type NativeAttrs$
|
|
1093
|
-
type ToolbarProps = Props$
|
|
1091
|
+
type NativeAttrs$9 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$9>;
|
|
1092
|
+
type ToolbarProps = Props$9 & NativeAttrs$9;
|
|
1094
1093
|
declare const Toolbar: React.FC<ToolbarProps>;
|
|
1095
1094
|
|
|
1096
1095
|
interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
@@ -1105,22 +1104,22 @@ interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
1105
1104
|
}
|
|
1106
1105
|
declare const Transition: react.ForwardRefExoticComponent<TransitionProps & react.RefAttributes<HTMLElement>>;
|
|
1107
1106
|
|
|
1108
|
-
interface Props$
|
|
1107
|
+
interface Props$8 {
|
|
1109
1108
|
/**
|
|
1110
1109
|
* The HTML element type or React component to render as the tab.
|
|
1111
1110
|
*/
|
|
1112
1111
|
as?: React.ElementType;
|
|
1113
1112
|
width?: number;
|
|
1114
1113
|
}
|
|
1115
|
-
type NativeAttrs$
|
|
1116
|
-
type SwipeItemProps = Props$
|
|
1117
|
-
declare const SwipeItem: react.ForwardRefExoticComponent<Props$
|
|
1118
|
-
children?: react.ReactNode;
|
|
1114
|
+
type NativeAttrs$8 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$8>;
|
|
1115
|
+
type SwipeItemProps = Props$8 & NativeAttrs$8;
|
|
1116
|
+
declare const SwipeItem: react.ForwardRefExoticComponent<Props$8 & NativeAttrs$8 & {
|
|
1117
|
+
children?: react.ReactNode | undefined;
|
|
1119
1118
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
1120
1119
|
|
|
1121
1120
|
type SwiperAlignmet = 'start' | 'center' | 'end';
|
|
1122
1121
|
|
|
1123
|
-
interface Props$
|
|
1122
|
+
interface Props$7 {
|
|
1124
1123
|
gap?: number;
|
|
1125
1124
|
alignment?: SwiperAlignmet;
|
|
1126
1125
|
autoHide?: boolean;
|
|
@@ -1129,8 +1128,8 @@ interface Props$3 {
|
|
|
1129
1128
|
arrowRightButton?: ButtonProps;
|
|
1130
1129
|
};
|
|
1131
1130
|
}
|
|
1132
|
-
type NativeAttrs$
|
|
1133
|
-
type SwipeProps = Props$
|
|
1131
|
+
type NativeAttrs$7 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$7>;
|
|
1132
|
+
type SwipeProps = Props$7 & NativeAttrs$7;
|
|
1134
1133
|
declare const Swipe: React.FC<SwipeProps>;
|
|
1135
1134
|
|
|
1136
1135
|
type ModalSize = 'sm' | 'md' | 'lg' | 'xl' | 'full';
|
|
@@ -1142,7 +1141,7 @@ interface ModalClose {
|
|
|
1142
1141
|
type ModalScrollBehavior = 'inside' | 'outside';
|
|
1143
1142
|
type ModalBackdrop = BackdropVariant;
|
|
1144
1143
|
|
|
1145
|
-
interface Props$
|
|
1144
|
+
interface Props$6 {
|
|
1146
1145
|
isOpen: boolean;
|
|
1147
1146
|
size?: ModalSize;
|
|
1148
1147
|
backdrop?: ModalBackdrop;
|
|
@@ -1157,9 +1156,9 @@ interface Props$2 {
|
|
|
1157
1156
|
onClose: () => void;
|
|
1158
1157
|
onAfterClose?: () => void;
|
|
1159
1158
|
}
|
|
1160
|
-
type NativeAttrs$
|
|
1161
|
-
type ModalProps = Props$
|
|
1162
|
-
declare const Modal: react.ForwardRefExoticComponent<Props$
|
|
1159
|
+
type NativeAttrs$6 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6>;
|
|
1160
|
+
type ModalProps = Props$6 & NativeAttrs$6;
|
|
1161
|
+
declare const Modal: react.ForwardRefExoticComponent<Props$6 & NativeAttrs$6 & react.RefAttributes<HTMLDivElement>>;
|
|
1163
1162
|
|
|
1164
1163
|
type ModalBodyProps = React.HTMLAttributes<HTMLDivElement>;
|
|
1165
1164
|
declare const ModalBody: React.FC<ModalBodyProps>;
|
|
@@ -1173,15 +1172,15 @@ interface ModalContextValue {
|
|
|
1173
1172
|
}
|
|
1174
1173
|
declare function useModal(): ModalContextValue;
|
|
1175
1174
|
|
|
1176
|
-
interface Props$
|
|
1175
|
+
interface Props$5 {
|
|
1177
1176
|
as?: React.ElementType;
|
|
1178
1177
|
bordered?: boolean;
|
|
1179
1178
|
}
|
|
1180
|
-
type NativeAttrs$
|
|
1181
|
-
type ModalFooterProps = Props$
|
|
1182
|
-
declare const ModalFooter: react.ForwardRefExoticComponent<Props$
|
|
1179
|
+
type NativeAttrs$5 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$5>;
|
|
1180
|
+
type ModalFooterProps = Props$5 & NativeAttrs$5;
|
|
1181
|
+
declare const ModalFooter: react.ForwardRefExoticComponent<Props$5 & NativeAttrs$5 & react.RefAttributes<HTMLDivElement>>;
|
|
1183
1182
|
|
|
1184
|
-
interface Props {
|
|
1183
|
+
interface Props$4 {
|
|
1185
1184
|
as?: React.ElementType;
|
|
1186
1185
|
title?: React.ReactNode;
|
|
1187
1186
|
subtitle?: React.ReactNode;
|
|
@@ -1197,9 +1196,94 @@ interface Props {
|
|
|
1197
1196
|
subtitle?: React.HTMLAttributes<HTMLDivElement>;
|
|
1198
1197
|
};
|
|
1199
1198
|
}
|
|
1199
|
+
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4>;
|
|
1200
|
+
type ModalHeaderProps = Props$4 & NativeAttrs$4;
|
|
1201
|
+
declare const ModalHeader: react.ForwardRefExoticComponent<Props$4 & NativeAttrs$4 & react.RefAttributes<HTMLDivElement>>;
|
|
1202
|
+
|
|
1203
|
+
type CheckboxValue = string | number | symbol;
|
|
1204
|
+
type CheckboxSize = 'sm' | 'md' | 'lg';
|
|
1205
|
+
type CheckboxGroupDirection = 'row' | 'col';
|
|
1206
|
+
type CheckboxGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1207
|
+
|
|
1208
|
+
interface Props$3<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1209
|
+
value?: TCheckboxValue;
|
|
1210
|
+
size?: CheckboxSize;
|
|
1211
|
+
colorScheme?: ColorScheme;
|
|
1212
|
+
onChange?: (checked: boolean) => void;
|
|
1213
|
+
}
|
|
1214
|
+
type NativeAttrs$3 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$3 | 'defaultValue'>;
|
|
1215
|
+
type CheckboxProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$3<TCheckboxValue> & NativeAttrs$3;
|
|
1216
|
+
declare const Checkbox: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$3<TCheckboxValue> & NativeAttrs$3 & react.RefAttributes<HTMLInputElement>) => React.ReactNode;
|
|
1217
|
+
|
|
1218
|
+
interface Props$2<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1219
|
+
value?: TCheckboxValue[];
|
|
1220
|
+
defaultValue?: TCheckboxValue[];
|
|
1221
|
+
disabled?: boolean;
|
|
1222
|
+
readOnly?: boolean;
|
|
1223
|
+
size?: CheckboxSize;
|
|
1224
|
+
direction?: CheckboxGroupDirection;
|
|
1225
|
+
alignment?: CheckboxGroupAlignment;
|
|
1226
|
+
colorScheme?: ColorScheme;
|
|
1227
|
+
onChange?: (value: TCheckboxValue[]) => void;
|
|
1228
|
+
}
|
|
1229
|
+
type NativeAttrs$2 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$2>;
|
|
1230
|
+
type CheckboxGroupProps<TCheckboxValue extends CheckboxValue = CheckboxValue> = Props$2<TCheckboxValue> & NativeAttrs$2;
|
|
1231
|
+
declare const CheckboxGroup: <TCheckboxValue extends CheckboxValue = CheckboxValue>(props: Props$2<TCheckboxValue> & NativeAttrs$2 & react.RefAttributes<HTMLTableElement>) => React.ReactNode;
|
|
1232
|
+
|
|
1233
|
+
interface CheckboxGroupContextValue<TCheckboxValue extends CheckboxValue = CheckboxValue> {
|
|
1234
|
+
value: TCheckboxValue[];
|
|
1235
|
+
disabled: boolean;
|
|
1236
|
+
readOnly: boolean;
|
|
1237
|
+
size: CheckboxSize;
|
|
1238
|
+
direction?: CheckboxGroupDirection;
|
|
1239
|
+
colorScheme: ColorScheme;
|
|
1240
|
+
onChange: (value: TCheckboxValue[]) => void;
|
|
1241
|
+
}
|
|
1242
|
+
declare const useCheckboxGroup: () => CheckboxGroupContextValue<CheckboxValue> | null;
|
|
1243
|
+
|
|
1244
|
+
type RadioValue = string | number | symbol;
|
|
1245
|
+
type RadioSize = 'sm' | 'md' | 'lg';
|
|
1246
|
+
type RadioGroupDirection = 'row' | 'col';
|
|
1247
|
+
type RadioGroupAlignment = 'start' | 'center' | 'end' | 'stretch';
|
|
1248
|
+
|
|
1249
|
+
interface Props$1<TRadioValue extends RadioValue = RadioValue> {
|
|
1250
|
+
value?: TRadioValue;
|
|
1251
|
+
disabled?: boolean;
|
|
1252
|
+
readOnly?: boolean;
|
|
1253
|
+
size?: RadioSize;
|
|
1254
|
+
colorScheme?: ColorScheme;
|
|
1255
|
+
}
|
|
1256
|
+
type NativeAttrs$1 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$1 | 'defaultValue' | 'checked' | 'defaultChecked' | 'onChange'>;
|
|
1257
|
+
type RadioProps<TRadioValue extends RadioValue = RadioValue> = Props$1<TRadioValue> & NativeAttrs$1;
|
|
1258
|
+
declare const Radio: <TRadioValue extends RadioValue = RadioValue>(props: Props$1<TRadioValue> & NativeAttrs$1 & react.RefAttributes<HTMLInputElement>) => React.ReactNode;
|
|
1259
|
+
|
|
1260
|
+
interface Props<TRadioValue extends RadioValue = RadioValue> {
|
|
1261
|
+
name?: string;
|
|
1262
|
+
value?: TRadioValue;
|
|
1263
|
+
defaultValue?: TRadioValue;
|
|
1264
|
+
disabled?: boolean;
|
|
1265
|
+
readOnly?: boolean;
|
|
1266
|
+
size?: RadioSize;
|
|
1267
|
+
direction?: RadioGroupDirection;
|
|
1268
|
+
alignment?: RadioGroupAlignment;
|
|
1269
|
+
colorScheme?: ColorScheme;
|
|
1270
|
+
onChange?: (value: TRadioValue) => void;
|
|
1271
|
+
}
|
|
1200
1272
|
type NativeAttrs = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
|
1201
|
-
type
|
|
1202
|
-
declare const
|
|
1273
|
+
type RadioGroupProps<TRadioValue extends RadioValue = RadioValue> = Props<TRadioValue> & NativeAttrs;
|
|
1274
|
+
declare const RadioGroup: <TRadioValue extends RadioValue = RadioValue>(props: Props<TRadioValue> & NativeAttrs & react.RefAttributes<HTMLDivElement>) => React.ReactNode;
|
|
1275
|
+
|
|
1276
|
+
interface RadioGroupContextValue {
|
|
1277
|
+
name: string;
|
|
1278
|
+
value?: RadioValue;
|
|
1279
|
+
disabled: boolean;
|
|
1280
|
+
readOnly: boolean;
|
|
1281
|
+
size: RadioSize;
|
|
1282
|
+
direction: RadioGroupDirection;
|
|
1283
|
+
colorScheme: ColorScheme;
|
|
1284
|
+
onChange: (value: RadioValue) => void;
|
|
1285
|
+
}
|
|
1286
|
+
declare const useRadioGroup: () => RadioGroupContextValue;
|
|
1203
1287
|
|
|
1204
1288
|
declare const scrollToItem: (parentElement: Element, currentElement: Element) => void;
|
|
1205
1289
|
|
|
@@ -1212,4 +1296,4 @@ type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
|
|
|
1212
1296
|
declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
|
|
1213
1297
|
declare function mergeRefs<T>(...refs: (ReactRef<T> | null | undefined)[]): (node: T | null) => void;
|
|
1214
1298
|
|
|
1215
|
-
export { Accordion, AccordionBody, type AccordionBodyProps, AccordionContent, type AccordionContentProps, AccordionContext, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, 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, type CardProps, Chip, type ChipProps, Collapse, CollapseContent, type CollapseContentProps, CollapseContext, type CollapseContextValue, type CollapseProps, CollapseTrigger, type CollapseTriggerProps, DataList, type DataListItem, type DataListKeyField, type DataListMultipleProps, type DataListProps, type DataListSingleProps, type Disclosure, 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, 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, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, type QueryFunction, QueryStatus, type ReactRef, type Resize, 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, Tab, type TabProps, Tabs, type
|
|
1299
|
+
export { Accordion, AccordionBody, type AccordionBodyProps, AccordionContent, type AccordionContentProps, AccordionContext, AccordionHeader, type AccordionHeaderProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, 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, type CardProps, Checkbox, CheckboxGroup, type CheckboxGroupAlignment, type CheckboxGroupContextValue, type CheckboxGroupDirection, type CheckboxGroupProps, type CheckboxProps, type CheckboxSize, type CheckboxValue, Chip, type ChipProps, Collapse, CollapseContent, type CollapseContentProps, CollapseContext, type CollapseContextValue, type CollapseProps, CollapseTrigger, type CollapseTriggerProps, type ColorScheme, DataList, type DataListItem, type DataListKeyField, type DataListMultipleProps, type DataListProps, type DataListSingleProps, type Disclosure, 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, 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, Popover, PopoverContent, type PopoverContentProps, type PopoverProps, PopoverTrigger, type PopoverTriggerProps, Portal, type PortalProps, type QueryFunction, QueryStatus, Radio, RadioGroup, type RadioGroupContextValue, type RadioGroupDirection, type RadioGroupProps, type RadioProps, type RadioSize, type RadioValue, type ReactRef, type Resize, 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, TextInput, type TextInputProps, Toolbar, type ToolbarProps, type ToolbarSize, Transition, type TransitionProps, type UseInfiniteQueryOptions, type UseInfiniteQueryResult, type UseMutationOptions, type UseMutationResult, type UseQueryOptions, type UseQueryResult, type UseResizeObserverOptions, type VirtualItem, type Virtualizer, type VirtualizerOptions, assignRef, clsx, getOpenValuesByPathname, hasResizeObserver, mergeRefs, scrollToItem, useAccordion, useAccordionItem, useButtonGroup, useCheckboxGroup, useCollapse, useDebounce, 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 Rs=Object.create;var so=Object.defineProperty;var Ls=Object.getOwnPropertyDescriptor;var Ss=Object.getOwnPropertyNames;var Ms=Object.getPrototypeOf,Es=Object.prototype.hasOwnProperty;var Ps=(e,t)=>{for(var n in t)so(e,n,{get:t[n],enumerable:!0})},yr=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Ss(t))!Es.call(e,r)&&r!==n&&so(e,r,{get:()=>t[r],enumerable:!(o=Ls(t,r))||o.enumerable});return e};var A=(e,t,n)=>(n=e!=null?Rs(Ms(e)):{},yr(t||!e||!e.__esModule?so(n,"default",{value:e,enumerable:!0}):n,e)),ws=e=>yr(so({},"__esModule",{value:!0}),e);var Ba={};Ps(Ba,{Accordion:()=>br,AccordionBody:()=>Ur,AccordionContent:()=>Qr,AccordionContext:()=>lo,AccordionHeader:()=>Kr,AccordionItem:()=>Ar,AccordionTrigger:()=>qr,Autocomplete:()=>Yn,Backdrop:()=>St,Badge:()=>Jn,Button:()=>de,ButtonGroup:()=>bn,ButtonGroupContext:()=>zt,Card:()=>ai,CardBody:()=>ci,CardFooter:()=>vi,CardHeader:()=>pi,Chip:()=>ht,Collapse:()=>De,CollapseContent:()=>ve,CollapseContext:()=>uo,CollapseTrigger:()=>xe,DataList:()=>ri,Drawer:()=>Ci,DrawerBody:()=>bi,DrawerContext:()=>qt,DrawerFooter:()=>Mi,DrawerHeader:()=>Ti,Field:()=>wi,Icon:()=>P,List:()=>K,ListGroup:()=>Fn,ListItem:()=>H,ListSubheader:()=>zn,Menu:()=>Bi,MenuContext:()=>No,MenuGroup:()=>It,MenuItem:()=>me,MenuSubmenu:()=>wt,MenuValueContext:()=>rt,Modal:()=>ps,ModalBody:()=>fs,ModalFooter:()=>hs,ModalHeader:()=>Ts,MutationStatus:()=>ir,Popover:()=>yt,PopoverContent:()=>Tt,PopoverTrigger:()=>bt,Portal:()=>Ct,QueryStatus:()=>nr,Result:()=>we,ScrollArea:()=>_,Select:()=>Ui,Swipe:()=>us,SwipeItem:()=>ss,Switch:()=>Qi,Tab:()=>ji,Tabs:()=>ts,TextInput:()=>os,Toolbar:()=>rs,Transition:()=>ye,assignRef:()=>Vt,clsx:()=>L,getOpenValuesByPathname:()=>Hi,hasResizeObserver:()=>sr,mergeRefs:()=>Q,scrollToItem:()=>Qo,useAccordion:()=>st,useAccordionItem:()=>Ir,useButtonGroup:()=>go,useCollapse:()=>Ae,useDebounce:()=>an,useDisclosure:()=>He,useDrawer:()=>Io,useEffectEvent:()=>Bt,useElementSize:()=>ft,useInfiniteQuery:()=>pn,useLocalStorage:()=>en,useMediaQuery:()=>ln,useMenu:()=>Et,useMenuItemValue:()=>Di,useModal:()=>Ht,useMutation:()=>fn,useOnClickOutside:()=>ho,usePopover:()=>Y,usePrevious:()=>tn,useQuery:()=>mn,useResizeObserver:()=>xn,useStep:()=>sn,useValueEffect:()=>hn,useVirtualizer:()=>ke});module.exports=ws(Ba);var at=require("react");var f="us-";var Qo=(e,t)=>{let n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r="smooth",s=t.previousSibling,a=s?.getBoundingClientRect()||o;if(n.left>a.left){let d=0;s&&(d=a.left-n.left+e.scrollLeft+a.width/4),e.scrollTo({behavior:r,left:d})}let l=t.nextSibling,c=l?.getBoundingClientRect()||o;if(n.right<c.right){let d=e.scrollWidth;l&&(d=c.right-n.right+e.scrollLeft-c.width/4),e.scrollTo({behavior:r,left:d})}};function Tr(e){let t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Tr(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Is(...e){let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=Tr(n))&&(r&&(r+=" "),r+=o);return r}var L=Is;function Vt(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function As(...e){return t=>{e.forEach(n=>{Vt(n,t)})}}var Q=As;var ao=require("react"),gr=(0,ao.createContext)(null),st=()=>{let e=(0,ao.useContext)(gr);if(!e)throw new Error("`useAccordion` must be used within a `<Accordion />`");return e},lo=gr;var qo=require("react/jsx-runtime"),Yo={isVisible:!0,position:"start"},Ds=(0,at.forwardRef)((e,t)=>{let{children:n,className:o,value:r,defaultValue:s,expandMode:a="multiple",size:l="md",arrow:c=Yo,onChange:d,...m}=e,i=f,[u,p]=(0,at.useState)(r??s??[]),v=h=>{r!==void 0?d?.(h):p(h)};return(0,at.useEffect)(()=>{r!==void 0&&p(r)},[r]),(0,qo.jsx)(lo.Provider,{value:{value:u,expandMode:a,arrow:{isVisible:c.isVisible??Yo.isVisible,position:c.position??Yo.position},onChange:v},children:(0,qo.jsx)("div",{ref:t,className:L(`${i}accordion`,{[`${i}accordion--${l}`]:l},o),...m,children:n})})}),br=Ds;var Ne=require("react"),Pr=require("uuid");var Ee=require("react");var co=require("react"),Rr=(0,co.createContext)(null),Ae=()=>{let e=(0,co.useContext)(Rr);if(!e)throw new Error("`useCollapse` must be used within a `<Collapse />`");return e},uo=Rr;var Lr=require("react/jsx-runtime"),Ns=({children:e,isOpen:t,onOpen:n,onClose:o,onToggle:r})=>{let s=(0,Ee.useRef)(null),[a,l]=(0,Ee.useState)(t??!1),[c,d]=(0,Ee.useState)(!1),[m,i]=Ee.Children.toArray(e),u=()=>{l(!0),n?.()},p=()=>{l(!1),o?.()},v=()=>{l(h=>!h),r?.()};return(0,Ee.useEffect)(()=>{t!==void 0&&l(t),setTimeout(()=>{d(!!t)},100)},[t]),(0,Lr.jsxs)(uo.Provider,{value:{collapseRef:s,isOpen:a,heightAuto:c,onOpen:u,onClose:p,onToggle:v},children:[m,i]})},De=Ns;var Sr=A(require("clsx")),Mr=require("react");var Er=require("react/jsx-runtime"),$s=(0,Mr.forwardRef)(({children:e,style:t,className:n},o)=>{let{collapseRef:r,isOpen:s,heightAuto:a}=Ae(),l=f;return(0,Er.jsx)("div",{ref:Q(o,r),className:(0,Sr.default)(`${l}collapse`,{[`${l}collapse--is-open`]:s},n),style:{...t,height:s&&a?"auto":s||!s&&a?r.current?.scrollHeight:0},"data-hidden":!s,children:e})}),ve=$s;var lt=require("react");var Hs=(0,lt.forwardRef)(({children:e},t)=>{let{collapseRef:n,onToggle:o}=Ae(),r=f,s=lt.Children.only(e),{className:a,onClick:l,...c}=s.props;return(0,lt.cloneElement)(s,{ref:t,className:L(`${r}collapse-trigger`,a),onClick:d=>{n.current&&(o(),l?.(d))},...c})}),xe=Hs;var po=require("react/jsx-runtime"),wr=(0,Ne.createContext)(null),Ir=()=>{let e=(0,Ne.useContext)(wr);if(!e)throw new Error("`useAccordionItem` must be used within a `<AccordionItem />`");return e},ks=(0,Ne.forwardRef)((e,t)=>{let{children:n,className:o,value:r,...s}=e,[a]=(0,Ne.useState)((0,Pr.v4)()),l=r??a,{value:c,expandMode:d,onChange:m}=st(),i=f,u=c.includes(l),p=()=>{let v=c.indexOf(l),h=d==="multiple"?[...c]:[];v===-1?h.push(l):h.splice(v,1),m(h)};return(0,po.jsx)(wr.Provider,{value:{value:l},children:(0,po.jsx)("div",{ref:t,className:L(`${i}accordion-item`,o),...s,children:(0,po.jsx)(De,{isOpen:u,onToggle:p,children:n})})})}),Ar=ks;var Gr=require("react");var Dr=require("react"),qe=require("react/jsx-runtime"),Vs=(0,Dr.forwardRef)((e,t)=>(0,qe.jsxs)("svg",{ref:t,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,qe.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,qe.jsx)("path",{d:"M12 9v4"}),(0,qe.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,qe.jsx)("path",{d:"M12 16h.01"})]})),Jo=Vs;var Nr=require("react"),Ot=require("react/jsx-runtime"),Os=(0,Nr.forwardRef)((e,t)=>(0,Ot.jsxs)("svg",{ref:t,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,Ot.jsx)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,Ot.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})]})),j=Os;var $r=require("react"),_t=require("react/jsx-runtime"),_s=(0,$r.forwardRef)((e,t)=>(0,_t.jsxs)("svg",{ref:t,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,_t.jsx)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,_t.jsx)("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"})]})),ee=_s;var Hr=require("react"),ct=require("react/jsx-runtime"),Fs=(0,Hr.forwardRef)((e,t)=>(0,ct.jsxs)("svg",{ref:t,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,ct.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,ct.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,ct.jsx)("path",{d:"M9 12l2 2l4 -4"})]})),Zo=Fs;var kr=require("react"),ut=require("react/jsx-runtime"),Bs=(0,kr.forwardRef)((e,t)=>(0,ut.jsxs)("svg",{ref:t,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,ut.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,ut.jsx)("path",{d:"M18 6l-12 12"}),(0,ut.jsx)("path",{d:"M6 6l12 12"})]})),U=Bs;var Vr=require("react"),Je=require("react/jsx-runtime"),zs=(0,Vr.forwardRef)((e,t)=>(0,Je.jsxs)("svg",{ref:t,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,Je.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,Je.jsx)("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),(0,Je.jsx)("path",{d:"M12 9h.01"}),(0,Je.jsx)("path",{d:"M11 12h1v4h1"})]})),jo=zs;var Or=require("react"),Ft=require("react/jsx-runtime"),Gs=(0,Or.forwardRef)((e,t)=>(0,Ft.jsxs)("svg",{ref:t,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,Ft.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,Ft.jsx)("path",{d:"M12 3a9 9 0 1 0 9 9"})]})),Pe=Gs;var _r=require("react"),dt=require("react/jsx-runtime"),Ks=(0,_r.forwardRef)((e,t)=>(0,dt.jsxs)("svg",{ref:t,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,dt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,dt.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,dt.jsx)("path",{d:"M10 10l4 4m0 -4l-4 4"})]})),er=Ks;var Fr=require("react"),Ze=require("react/jsx-runtime"),Xs=(0,Fr.forwardRef)((e,t)=>(0,Ze.jsxs)("svg",{ref:t,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,Ze.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,Ze.jsx)("path",{d:"M5 12l14 0"}),(0,Ze.jsx)("path",{d:"M5 12l6 6"}),(0,Ze.jsx)("path",{d:"M5 12l6 -6"})]})),tr=Xs;var Br=require("react"),je=require("react/jsx-runtime"),Us=(0,Br.forwardRef)((e,t)=>(0,je.jsxs)("svg",{ref:t,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,je.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,je.jsx)("path",{d:"M5 12l14 0"}),(0,je.jsx)("path",{d:"M13 18l6 -6"}),(0,je.jsx)("path",{d:"M13 6l6 6"})]})),or=Us;var zr=A(require("clsx")),pt=require("react");var Ws=(0,pt.forwardRef)(({children:e,color:t="inherit",size:n="md"},o)=>{let r=pt.Children.only(e);return(0,pt.cloneElement)(r,{ref:o,...r.props,className:(0,zr.default)(`${f}icon`,{[`${f}icon--${t}`]:t,[`${f}icon--${n}`]:n},r.props.className)})}),P=Ws;var N=require("react/jsx-runtime"),Qs=(0,Gr.forwardRef)((e,t)=>{let{as:n="div",children:o,className:r,title:s,subtitle:a,startContent:l,endContent:c,bordered:d=!0,collapsible:m=!0,arrow:i,slotProps:u,...p}=e,v=f,{arrow:h}=st(),{isOpen:C,onToggle:g}=Ae(),y={isVisible:i?.isVisible??h.isVisible,position:i?.position??h.position},x={cursor:"pointer"},b=R=>{R.stopPropagation(),g()},T=(0,N.jsxs)(n,{ref:t,className:L(`${v}accordion-header`,{[`${v}accordion-header--collapsible`]:m},{[`${v}accordion-header--bordered`]:d},r),...p,children:[(l!==void 0||y.isVisible&&y.position==="start")&&(0,N.jsx)("div",{...u?.startContent,className:L(`${v}accordion-header__start-content`,u?.startContent?.className),children:y.isVisible&&y.position==="start"?(0,N.jsxs)(N.Fragment,{children:[!m&&i?.isVisible===void 0?(0,N.jsx)("div",{style:{width:18,height:18}}):(0,N.jsx)(P,{color:"secondary",children:C?(0,N.jsx)(ee,{style:x,onClick:b}):(0,N.jsx)(j,{style:x,onClick:b})}),l]}):l}),(0,N.jsx)("div",{...u?.content,className:L(`${v}accordion-header__content`,u?.content?.className),children:s!==void 0||a!==void 0?(0,N.jsxs)(N.Fragment,{children:[s!==void 0&&(0,N.jsx)("div",{...u?.title,className:L(`${v}accordion-header__title`,u?.title?.className),children:s}),a!==void 0&&(0,N.jsx)("div",{...u?.subtitle,className:L(`${v}accordion-header__subtitle`,u?.subtitle?.className),children:a})]}):o}),(c!==void 0||y.isVisible&&y.position==="end")&&(0,N.jsx)("div",{...u?.endContent,className:L(`${v}accordion-header__end-content`,u?.endContent?.className),children:y.isVisible&&y.position==="end"?(0,N.jsxs)(N.Fragment,{children:[c,!m&&i?.isVisible===void 0?(0,N.jsx)("div",{style:{width:18,height:18}}):(0,N.jsx)(P,{color:"secondary",children:C?(0,N.jsx)(ee,{style:x,onClick:b}):(0,N.jsx)(j,{style:x,onClick:b})})]}):c})]});return m?(0,N.jsx)(xe,{children:T}):T}),Kr=Qs;var Xr=require("react");var mo=require("react/jsx-runtime"),Ys=(0,Xr.forwardRef)(({children:e,className:t,...n},o)=>(0,mo.jsx)(ve,{children:(0,mo.jsx)("div",{ref:o,children:(0,mo.jsx)("div",{className:L(`${f}accordion-body`,t),...n,children:e})})})),Ur=Ys;var Wr=require("react");var fo=require("react/jsx-runtime"),qs=(0,Wr.forwardRef)(({children:e,className:t,...n},o)=>(0,fo.jsx)(ve,{children:(0,fo.jsx)("div",{ref:o,children:(0,fo.jsx)("div",{className:L(`${f}accordion-content`,t),...n,children:e})})})),Qr=qs;var Yr=require("react"),Jr=require("react/jsx-runtime"),Js=(0,Yr.forwardRef)(({children:e},t)=>(0,Jr.jsx)(xe,{ref:t,children:e})),qr=Js;var q=require("react");var $e=require("react");var jr=require("react");var vo=require("react"),Zs=typeof window<"u"?vo.useLayoutEffect:vo.useEffect,Zr=Zs;function js(e){let t=(0,jr.useRef)(e);Zr(()=>{t.current=e},[e])}var rr=js;function en(e,t){let n=(0,$e.useCallback)(()=>{if(typeof window>"u")return t;try{let l=window.localStorage.getItem(e);return l?ea(l):t}catch(l){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,l),t}},[t,e]),[o,r]=(0,$e.useState)(n),s=(0,$e.useCallback)(l=>{typeof window>"u"&&console.warn(`Tried setting localStorage key \u201C${e}\u201D even though environment is not a client`);try{let c=l instanceof Function?l(o):l;window.localStorage.setItem(e,JSON.stringify(c)),r(c),window.dispatchEvent(new Event("local-storage"))}catch(c){console.warn(`Error setting localStorage key \u201C${e}\u201D:`,c)}},[e,o]);(0,$e.useEffect)(()=>{r(n())},[]);let a=(0,$e.useCallback)(()=>{r(n())},[n]);return rr("storage",a),rr("local-storage",a),[o,s]}function ea(e){try{return e==="undefined"?void 0:JSON.parse(e??"")}catch{return}}var xo=require("react"),tn=e=>{let t=(0,xo.useRef)();return(0,xo.useEffect)(()=>{t.current=e}),t.current};var on=require("react");function ta({defaultValue:e}={}){let[t,n]=(0,on.useState)(e||!1);return{isOpen:t,onOpen:()=>{n(!0)},onClose:()=>{n(!1)},onToggle:()=>{n(a=>!a)}}}var He=ta;var nn=require("react"),rn=["mousedown","touchstart"],oa=(e,t)=>{(0,nn.useEffect)(()=>{let n=o=>{!e.current||e.current.contains(o.target)||t(o)};return rn.forEach(o=>document.addEventListener(o,n)),()=>{rn.forEach(o=>document.removeEventListener(o,n))}},[e,t])},ho=oa;var he=require("react"),sn=e=>{let[t,n]=(0,he.useState)(1),o=(0,he.useMemo)(()=>t+1<=e,[t,e]),r=(0,he.useMemo)(()=>t-1>=1,[t]),s=(0,he.useCallback)(d=>{let m=d instanceof Function?d(t):d;if(m>=1&&m<=e){n(m);return}throw new Error("Step not valid")},[e,t]),a=(0,he.useCallback)(()=>{o&&n(d=>d+1)},[o]),l=(0,he.useCallback)(()=>{r&&n(d=>d-1)},[r]),c=(0,he.useCallback)(()=>{n(1)},[]);return[t,{goToNextStep:a,goToPrevStep:l,canGoToNextStep:o,canGoToPrevStep:r,setStep:s,reset:c}]};var Co=require("react");function ra(e,t){let[n,o]=(0,Co.useState)(e),r=typeof t=="number"?t:t?.delay??500;return(0,Co.useEffect)(()=>{let s=setTimeout(()=>{o(e),typeof t!="number"&&t?.callback?.()},r);return()=>{clearTimeout(s)}},[e,r]),n}var an=ra;var yo=require("react");function na(e){let t=s=>typeof window<"u"?window.matchMedia(s).matches:!1,[n,o]=(0,yo.useState)(t(e));function r(){o(t(e))}return(0,yo.useEffect)(()=>{let s=window.matchMedia(e);return r(),s.addListener?s.addListener(r):s.addEventListener("change",r),()=>{s.removeListener?s.removeListener(r):s.removeEventListener("change",r)}},[e]),n}var ln=na;var cn=require("@tanstack/react-virtual"),un=require("react");function ia(e){let{parentRef:t,total:n,count:o=0,overscan:r=5,hasNextPage:s,isFetchingNextPage:a,onFetchNextPage:l,estimateSize:c}=e,d=(0,cn.useVirtualizer)({count:n||(s?o+1:o),getScrollElement:()=>t.current,estimateSize:c,overscan:r});return(0,un.useEffect)(()=>{if(!l)return;let[m]=[...d.getVirtualItems()].reverse();m&&m.index>=o-1&&s&&!a&&l?.()},[s,l,o,a,d.getVirtualItems()]),{scrollOffset:d.scrollOffset,hasNextPage:s,getVirtualItems:d.getVirtualItems,getTotalSize:d.getTotalSize,scrollToIndex:(m,i)=>{d.scrollToIndex(m,i)},scrollToOffset:(m,i)=>{d.scrollToOffset(m,i)}}}var ke=ia;var Ce=require("react");var nr=(r=>(r[r.IDLE=0]="IDLE",r[r.LOADING=1]="LOADING",r[r.SUCCESS=2]="SUCCESS",r[r.ERROR=3]="ERROR",r))(nr||{});var dn=e=>(t,n,o)=>{async function r(s,a){if(a.length===0)return s;let l=[];for(let d=0;d<a.length;d++){let m=a[d],i=m+1,u=await e.query({page:i}),p=e.onRefetchedPage(u,m);if(s.pages[m]=p.page,l.push(m),!p.isSync)break}let c=a.filter(d=>!l.includes(d));return r(s,c.length===0?[]:[...c,...o])}return r({...t},n)};function pn(e,t=[]){let[n,o]=(0,Ce.useState)({pages:[]}),[r,s]=(0,Ce.useState)(),[a,l]=(0,Ce.useState)(e.disabled?0:1),[c,d]=(0,Ce.useState)(!1),[m,i]=(0,Ce.useState)(!1),[u,p]=(0,Ce.useState)(!0),[v,h]=(0,Ce.useState)(!1),C=async()=>{try{l(1),s(void 0),h(!0);let b=n.pages.length-1,T=e.getNextPage(n.pages[b],n.pages),R=await e.query({page:T}),S={pages:[...n.pages,R]};o(S);let M=S.pages.length-1,E=e.getNextPage(S.pages[M],S.pages);p(E!==void 0),h(!1),l(2),e.onSuccess?.(S)}catch(b){s(b),l(3),e.onError?.(b)}finally{h(!1)}},g=b=>{let T={pages:[]};n.pages.forEach((R,S)=>{let M=b(R,S);T[S]=M}),o(T)},y=async(b={})=>{try{l(1),s(void 0),i(!1);let T=[],R=[];b.refetchPage?n.pages.forEach((M,E)=>{b.refetchPage(M,E)?T.push(E):R.push(E)}):b.refetchPages?(T=b.refetchPages(n.pages),R=n.pages.map((M,E)=>E).filter(M=>!T.includes(M))):T=n.pages.map((M,E)=>E);let S;if(b.onRefetchedPage)S=await dn({query:e.query,onRefetchedPage:b.onRefetchedPage})(n,T,R);else{S={...n};for(let M=0;M<T.length;M++){let E=T[M],z=E+1,G=await e.query({page:z});S.pages[E]=G}}o(S),l(2),e.onSuccess?.(S)}catch(T){s(T),l(3),e.onError?.(T)}finally{i(!0)}},x=()=>{o({pages:[]}),s(void 0),l(0),d(!1),i(!1),p(!0),h(!0)};return(0,Ce.useEffect)(()=>{if(e.disabled)return;(async()=>{try{l(1),s(void 0),h(!0);let R=await e.query({page:void 0}),S={pages:[R]};o(S);let M=e.getNextPage(R,[R]);p(M!==void 0),h(!1),l(2),e.onSuccess?.(S)}catch(T){s(T),l(3),e.onError?.(T)}finally{c||d(!0),h(!1)}})()},[...t,e.disabled]),{data:n,error:r,status:a,isLoading:a===1,isSuccess:a===2,isError:a===3,isFetching:a===1&&!c,isFetched:c,isRefetching:a===1&&c&&!m,isRefetched:m,hasNextPage:u,isFetchingNextPage:v,fetchNextPage:C,unstable_mutate:g,unstable_refetch:y,unstable_remove:x}}var ue=require("react");function mn(e,t=[]){let[n,o]=(0,ue.useState)(),[r,s]=(0,ue.useState)(),[a,l]=(0,ue.useState)(e.disabled?0:1),c=(0,ue.useRef)(!1),d=(0,ue.useRef)(!1),[m,i]=(0,ue.useState)(c.current),[u,p]=(0,ue.useState)(d.current),v=async()=>{try{l(1),s(void 0),d.current=!1,p(d.current);let g=await e.query(),y=e.select!==void 0?e.select(g):g;o(y),l(2),e.onSuccess?.(y)}catch(g){s(g),l(3),e.onError?.(g)}finally{d.current=!0,p(d.current)}},h=g=>{o(g)},C=()=>{o(void 0),s(void 0),l(0),c.current=!1,d.current=!1,i(c.current),p(d.current)};return(0,ue.useEffect)(()=>{if(e.disabled)return;(async()=>{try{l(1),s(void 0);let y=await e.query(),x=e.select!==void 0?e.select(y):y;o(x),l(2),e.onSuccess?.(x)}catch(y){s(y),l(3),e.onError?.(y)}finally{c.current||(c.current=!0,i(c.current))}})()},[...t,e.disabled]),{data:n,error:r,status:a,isLoading:a===1,isSuccess:a===2,isError:a===3,isFetching:a===1&&!m,isFetched:m,isRefetching:a===1&&m&&!u,isRefetched:u,mutate:h,refetch:v,remove:C}}var mt=require("react");var ir=(r=>(r[r.IDlE=0]="IDlE",r[r.LOADING=1]="LOADING",r[r.SUCCESS=2]="SUCCESS",r[r.ERROR=3]="ERROR",r))(ir||{});var fn=e=>{let[t,n]=(0,mt.useState)(0),[o,r]=(0,mt.useState)(),[s,a]=(0,mt.useState)(),[l,c]=(0,mt.useState)(!1),[d,m]=(0,mt.useState)(!1);return{isLoading:l,isError:d,status:t,data:o,error:s,mutate:async u=>{try{c(!0),n(1);let p=await e.mutation(u);return r(p),n(2),{isError:()=>!1,isOK:()=>!0,data:p}}catch(p){return a(p.message),m(!0),n(3),{isError:()=>!0,isOK:()=>!1,error:p.message}}finally{c(!1)}}}};var Ve=require("react"),sa={width:0,height:0};function aa(e){let t=(0,Ve.useRef)(0),[n,o]=(0,Ve.useState)(sa),r=(0,Ve.useMemo)(()=>typeof window<"u"?new ResizeObserver(s=>{let a=s[0];a&&(cancelAnimationFrame(t.current),t.current=requestAnimationFrame(()=>{(e.ref?.current??e.target)&&(e.callback?.(n),o({width:a.contentRect.width,height:a.contentRect.height}))}))}):null,[]);return(0,Ve.useEffect)(()=>{let s=e.ref?.current??e.target;return s&&r?.observe(s),()=>{r?.disconnect(),t.current&&cancelAnimationFrame(t.current)}},[e.ref?.current,e.target]),n}var ft=aa;var vn=require("react");function sr(){return typeof window.ResizeObserver<"u"}function la(e){let{ref:t,onResize:n}=e;(0,vn.useEffect)(()=>{let o=t?.current;if(o)if(sr()){let r=new window.ResizeObserver(s=>{s.length&&n()});return r.observe(o),()=>{o&&r.unobserve(o)}}else return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[t,n])}var xn=la;var vt=require("react");function ca(e){let t=(0,vt.useRef)(null);return(0,vt.useLayoutEffect)(()=>{t.current=e},[e]),(0,vt.useCallback)((...n)=>{let o=t.current;return o(...n)},[])}var Bt=ca;var xt=require("react");function ua(e){let[t,n]=(0,xt.useState)(e),o=(0,xt.useRef)(null),r=Bt(()=>{if(!o.current)return;let a=o.current.next();if(a.done){o.current=null;return}t===a.value?r():n(a.value)});(0,xt.useLayoutEffect)(()=>{o.current&&r()});let s=Bt(a=>{o.current=a(t),r()});return[t,s]}var hn=ua;var Cn=A(require("clsx")),yn=require("react");var To=require("react"),zt=(0,To.createContext)(null),go=()=>(0,To.useContext)(zt);var Oe=require("react/jsx-runtime"),de=(0,yn.forwardRef)(({as:e="button",children:t,className:n,role:o="presentation",variant:r,color:s,size:a="md",iconOnly:l,startContent:c,endContent:d,block:m,loading:i,disabled:u,type:p="button",...v},h)=>{let C=go(),g=f,y=r||"filled",x=s||"primary";return y=r??C?.variant??y,x=s??C?.color??x,a=C?.size??a,u=C?.disabled??u,(0,Oe.jsxs)(e,{ref:h,className:(0,Cn.default)(`${g}button`,{[`${g}button--${y}`]:y,[`${g}button--${x}`]:x,[`${g}button--${a}`]:a,[`${g}button--block`]:m,[`${g}button--icon-only`]:l,[`${g}button--disabled`]:u},n),role:o,disabled:u,type:p,...v,children:[(0,Oe.jsx)("div",{className:`${g}overlay`}),(0,Oe.jsx)("div",{className:`${g}outline`}),i?(0,Oe.jsx)(P,{children:(0,Oe.jsx)(Pe,{className:`${g}animation-spin`})}):c,(0,Oe.jsx)("div",{className:`${g}button__content`,children:t}),d]})});var Tn=A(require("clsx")),gn=require("react");var ar=require("react/jsx-runtime"),bn=(0,gn.forwardRef)(({children:e,direction:t="row",variant:n="filled",color:o="primary",size:r="md",disabled:s,className:a,...l},c)=>{let d=f;return(0,ar.jsx)(zt.Provider,{value:{direction:t,variant:n,color:o,size:r,disabled:s},children:(0,ar.jsx)("div",{ref:c,className:(0,Tn.default)(`${d}button-group`,{[`${d}button-group--${t}`]:t},a),...l,children:e})})});var Rn=A(require("clsx")),Ln=require("react");var _e=require("react/jsx-runtime"),da=(0,Ln.forwardRef)(({as:e="div",children:t,className:n,variant:o="filled",color:r="primary",size:s="md",startContent:a,endContent:l,closable:c,onClose:d,...m},i)=>{let u=f,p=v=>{v.stopPropagation(),c&&d?.()};return(0,_e.jsxs)(e,{ref:i,className:(0,Rn.default)(`${u}chip`,{[`${u}chip--${o}`]:o,[`${u}chip--${r}`]:r,[`${u}chip--${s}`]:s,[`${u}chip--closable`]:c},n),...m,children:[(0,_e.jsx)("div",{className:`${u}overlay`}),a,(0,_e.jsx)("div",{className:`${u}outline`}),t,l,c&&(0,_e.jsx)("div",{className:`${u}chip__closable`,onClick:p,children:(0,_e.jsx)(P,{children:(0,_e.jsx)(U,{})})})]})}),ht=da;var ne=require("react");var Sn=require("react"),Mn=require("react-dom");var En=require("react/jsx-runtime"),pa=(0,Sn.forwardRef)(({children:e,container:t},n)=>(0,Mn.createPortal)((0,En.jsx)("div",{ref:n,className:`${f}portal`,children:e}),t||document.body)),Ct=pa;var Pn=A(require("clsx")),wn=require("react"),In=require("react-transition-group"),An=require("react/jsx-runtime"),ma=(0,wn.forwardRef)((e,t)=>{let{children:n,className:o,nodeRef:r,name:s,isOpen:a,enter:l=0,leave:c=0,mountOnEnter:d,unmountOnExit:m,onExited:i}=e;return(0,An.jsx)(In.CSSTransition,{nodeRef:r,in:a,appear:!0,timeout:{enter:l,exit:c},mountOnEnter:d,unmountOnExit:m,classNames:(0,Pn.default)(s,o),onExited:i,children:n})}),ye=ma;var bo=require("react"),Dn=(0,bo.createContext)(null),Y=()=>{let e=(0,bo.useContext)(Dn);if(!e)throw new Error("`usePopover` must be used within a `<Popover />`");return e},Nn=Dn;var Gt=require("react/jsx-runtime"),fa=e=>{let{children:t,target:n,autoClose:o=!0,triggerClosable:r=!0,isOpen:s,onOpen:a,onClose:l,onToggle:c,onAfterClose:d}=e,m=(0,ne.useRef)(null),i=(0,ne.useRef)(null),[u,p]=(0,ne.useState)(e.isOpen||!1),[v,h]=ne.Children.toArray(t),C=f,g=()=>{s!==void 0?a?.():p(!0)},y=()=>{s!==void 0?l?.():p(!1)},x=()=>{s!==void 0?c?.():p(b=>!b)};return(0,ne.useEffect)(()=>{p(s||!1)},[s]),(0,Gt.jsxs)(Nn.Provider,{value:{triggerRef:m,contentRef:i,target:n,isOpen:u,autoClose:o,triggerClosable:r,onOpen:g,onClose:y,onToggle:x},children:[v,(0,Gt.jsx)(ye,{nodeRef:i,isOpen:u,enter:300,leave:150,name:`${C}popover`,unmountOnExit:!0,onExited:d,children:(0,Gt.jsx)(Ct,{children:(0,ne.cloneElement)(ne.Children.only(h),{...h.props,ref:i})})})]})},yt=fa;var Te=require("react");var Hn=require("react/jsx-runtime");function $n(e){return e==null?null:e.scrollHeight>e.clientHeight?e:$n(e.parentNode)}var va=(0,Te.forwardRef)((e,t)=>{let{children:n,style:o,className:r,onClick:s,...a}=e,{triggerRef:l,contentRef:c,target:d,onClose:m}=Y(),i=f,u=(0,Te.useRef)(null),[p,v]=(0,Te.useState)({position:"absolute",top:0,left:0,visibility:"hidden"}),h=$n(l.current)||document.body;ft({target:h,callback:()=>{g()}}),ho(c,y=>{let x=l.current;!x||x.contains(y.target)||m()});let C=y=>{y.stopPropagation(),s?.(y)},g=(0,Te.useCallback)(()=>{let y=c.current?.getBoundingClientRect(),x=l.current?.getBoundingClientRect();if(!y||!x||!h)return;let b={innerWidth:window.innerWidth,innerHeight:window.innerHeight},T={width:x.width,height:x.height,top:x.top+window.scrollY,bottom:x.top+x.height+window.scrollY,left:x.left+window.scrollX,right:x.left+x.width+window.scrollX},R=T.left+y.width>b.innerWidth,S=T.top+y.height>b.innerHeight+window.scrollY,M={...d&&{width:T.width,minWidth:"auto"},position:"absolute",top:S?void 0:T.bottom,bottom:S?b.innerHeight-T.top:void 0,left:R?void 0:T.left,right:R?b.innerWidth-T.right:void 0,visibility:void 0};v(M)},[]);return(0,Te.useEffect)(()=>(g(),h.addEventListener("scroll",g),window.addEventListener("orientationchange",g),()=>{h.removeEventListener("scroll",g),window.removeEventListener("orientationchange",g)}),[]),(0,Hn.jsx)("div",{ref:Q(u,t),className:L(`${i}popover`,r),style:{...o,...p},onClick:C,...a,children:n})}),Tt=va;var gt=require("react");var xa=(0,gt.forwardRef)((e,t)=>{let{children:n,onClick:o,...r}=e,{isOpen:s,triggerRef:a,triggerClosable:l,onOpen:c,onClose:d}=Y(),m=gt.Children.only(typeof n=="function"?n(s):n),i=u=>{u.preventDefault(),l&&s?d():c(),o?.(u),m.props.onClick?.(u)};return(0,gt.cloneElement)(m,{...m.props,...r,ref:Q(t,a),onClick:i})}),bt=xa;var F=require("react/jsx-runtime"),ha=({className:e,title:t,subtitle:n,icon:o,status:r,extra:s,size:a="md",...l})=>{let c=f;return(0,F.jsxs)("div",{className:L(`${c}result`,{[`${c}result--${r}`]:r,[`${c}result--${a}`]:a},e),...l,children:[o?(0,F.jsx)("div",{className:`${c}result__icon`,children:o}):r?(0,F.jsx)("div",{className:`${c}result__icon`,children:r==="sucess"?(0,F.jsx)(P,{children:(0,F.jsx)(Zo,{})}):r==="info"?(0,F.jsx)(P,{children:(0,F.jsx)(jo,{})}):r==="warning"?(0,F.jsx)(P,{children:(0,F.jsx)(Jo,{})}):r==="danger"?(0,F.jsx)(P,{children:(0,F.jsx)(er,{})}):null}):null,(t||n)&&(0,F.jsxs)("div",{className:`${c}result__content`,children:[t&&(0,F.jsx)("div",{className:`${c}result__title`,children:t}),n&&(0,F.jsx)("div",{className:`${c}result__subtitle`,children:n})]}),s&&(0,F.jsx)("div",{className:`${c}result__extra`,children:s})]})},we=ha;var Rt=require("react");var kn=require("react");var Vn=require("react/jsx-runtime"),Ca=(0,kn.forwardRef)(({as:e="div",children:t,className:n,size:o="md",...r},s)=>{let a=f;return(0,Vn.jsx)(e,{ref:s,className:L(`${a}list`,{[`${a}list--${o}`]:o},n),...r,children:t})}),K=Ca;var _n=require("react");var On=require("react");var ie=require("react/jsx-runtime"),ya=(0,On.forwardRef)(({as:e="div",children:t,className:n,title:o,subtitle:r,startContent:s,endContent:a,level:l=1,hoverable:c,selected:d,disabled:m,slotProps:i,style:u,onClick:p,...v},h)=>{let C=f,g=y=>{p?.(y)};return(0,ie.jsxs)(e,{ref:h,className:L(`${C}list-item`,{[`${C}list-item--hoverable`]:c,[`${C}list-item--selected`]:d,[`${C}list-item--disabled`]:m},n),style:{paddingLeft:l<=1?`var(--${C}list-item-padding-x)`:`calc(${l} * var(--${C}list-item-padding-level))`,...u},onClick:g,...v,children:[(c||d)&&(0,ie.jsx)("div",{className:`${C}overlay`}),s!==void 0&&(0,ie.jsx)("div",{...i?.startContent,className:L(`${C}list-item__start-content`,i?.startContent?.className),children:s}),(0,ie.jsx)("div",{...i?.content,className:L(`${C}list-item__content`,i?.content?.className),children:o!==void 0||r!==void 0?(0,ie.jsxs)(ie.Fragment,{children:[o!==void 0&&(0,ie.jsx)("span",{...i?.title,className:L(`${C}list-item__title`,i?.title?.className),children:o}),r!==void 0&&(0,ie.jsx)("span",{...i?.subtitle,className:L(`${C}list-item__subtitle`,i?.subtitle?.className),children:r})]}):t}),a!==void 0&&(0,ie.jsx)("div",{...i?.endContent,className:L(`${C}list-item__end-content`,i?.endContent?.className),children:a})]})}),H=ya;var V=require("react/jsx-runtime"),Ta=(0,_n.forwardRef)(({children:e,startContent:t,endContent:n,expandVisible:o=!0,expandPosition:r="end",isOpen:s,onOpen:a,onClose:l,onToggle:c,...d},m)=>{let i=s!==void 0?{isOpen:s,onOpen:a,onClose:l,onToggle:c}:He();return(0,V.jsx)("div",{className:`${f}list-group`,children:(0,V.jsxs)(De,{...i,children:[(0,V.jsx)(xe,{children:(0,V.jsx)(H,{ref:m,startContent:o&&r==="start"?(0,V.jsxs)(V.Fragment,{children:[(0,V.jsx)(P,{children:i.isOpen?(0,V.jsx)(ee,{}):(0,V.jsx)(j,{})}),t]}):t,endContent:o&&r==="end"?(0,V.jsxs)(V.Fragment,{children:[n,(0,V.jsx)(P,{children:i.isOpen?(0,V.jsx)(ee,{}):(0,V.jsx)(j,{})})]}):n,...d})}),(0,V.jsx)(ve,{children:(0,V.jsx)("div",{children:(0,V.jsx)(K,{children:e})})})]})})}),Fn=Ta;var Bn=require("react");var Fe=require("react/jsx-runtime"),ga=(0,Bn.forwardRef)(({as:e="div",title:t,startContent:n,endContent:o,bordered:r=!0,level:s=1,hoverable:a,selected:l,disabled:c,className:d,style:m,...i},u)=>{let p=f;return(0,Fe.jsxs)(e,{ref:u,className:L(`${p}list-subheader ${p}list-item`,{[`${p}list-subheader--bordered`]:r,[`${p}list-item--hoverable`]:a,[`${p}list-item--selected`]:l,[`${p}list-item--disabled`]:c},d),style:{paddingLeft:s<=1?`var(--${p}list-item-padding-x)`:`calc(${s} * var(--${p}list-item-padding-level))`,...m},...i,children:[a&&(0,Fe.jsx)("div",{className:`${p}overlay`}),n&&(0,Fe.jsx)("div",{className:`${p}list-item__start-content`,children:n}),(0,Fe.jsx)("div",{className:`${p}list-item__content`,children:(0,Fe.jsx)("span",{className:`${p}list-item__title`,children:t})}),o&&(0,Fe.jsx)("div",{className:`${p}list-item__end-content`,children:o})]})}),zn=ga;var Gn=require("react"),Kn=require("react-custom-scrollbars-2");var et=require("react/jsx-runtime"),ba=(0,Gn.forwardRef)(({children:e,autoHide:t=!1,autoHeight:n=!1,style:o},r)=>{let s=f,a=i=>(0,et.jsx)("div",{...i,className:L(`${s}scroll-area__view`,i.className)}),l=i=>(0,et.jsx)("div",{...i,className:L(`${s}scroll-area__track ${s}scroll-area__track--horizontal`,i.className),onClick:u=>{u.stopPropagation(),i.onClick?.(u)}}),c=i=>(0,et.jsx)("div",{...i,className:L(`${s}scroll-area__track ${s}scroll-area__track--vertical`,i.className),onClick:u=>{u.stopPropagation(),i.onClick?.(u)}}),d=i=>(0,et.jsx)("div",{...i,className:L(`${s}scroll-area__thumb ${s}scroll-area__thumb--horizontal`,i.className)}),m=i=>(0,et.jsx)("div",{...i,className:L(`${s}scroll-area__thumb ${s}scroll-area__thumb--vertical`,i.className)});return(0,et.jsx)(Kn.Scrollbars,{autoHide:t,className:`${s}scroll-area`,renderTrackHorizontal:l,renderTrackVertical:c,renderThumbHorizontal:d,renderThumbVertical:m,renderView:a,autoHeight:n,style:o,ref:i=>{i&&Vt(r,i.container.firstElementChild)},children:e})}),_=ba;var Ro=require("react"),Xn=(0,Ro.createContext)(null),Lo=()=>{let e=(0,Ro.useContext)(Xn);if(!e)throw new Error("`useAutocomplete` must be used within a `<Autocomplete />`");return e},Un=Xn;var Kt=require("react/jsx-runtime"),Ra=()=>{let{data:e,values:t,offset:n,setOffset:o,keyField:r,textField:s,onItemSelect:a,renderItem:l}=Lo(),c=(0,Rt.useRef)(null),{isOpen:d}=Y(),m=i=>{a(i),o(c.current?.scrollHeight||0)};return(0,Rt.useEffect)(()=>{d&&c.current?.scrollTo({top:n})},[d]),(0,Kt.jsx)(_,{ref:c,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Kt.jsx)(K,{children:l?e.map(i=>(0,Kt.jsx)(Rt.Fragment,{children:l(i,{title:void 0,selected:t.includes(i[r]),hoverable:!0,onClick:()=>m(i)})},i[r])):e.map(i=>(0,Kt.jsx)(H,{title:i[s],selected:t.includes(i[r]),hoverable:!0,onClick:()=>m(i)},i[r]))})})},Wn=Ra;var Lt=require("react");var lr=e=>Array.isArray(e)?e:e!==null?[e]:[],Xt=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var Be=require("react/jsx-runtime"),La=()=>{let{data:e,values:t,keyField:n,textField:o,virtual:r,onItemSelect:s,renderItem:a}=Lo(),l=(0,Lt.useRef)(null),c=ke({...r,count:e.length,parentRef:l}),{isOpen:d}=Y(),m=i=>{s(i)};return(0,Lt.useEffect)(()=>{if(!d)return;let i=Xt(t),u=e.findIndex(p=>p[n]===i);u!==-1&&c.scrollToIndex(u,{align:"start"})},[d]),r?(0,Be.jsx)(_,{ref:l,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Be.jsx)(K,{children:(0,Be.jsx)("div",{style:{height:`${c.getTotalSize()}px`,width:"100%",position:"relative"},children:c.getVirtualItems().map(i=>{let u=i.index>e.length-1,p=e[i.index];return u?(0,Be.jsx)(H,{title:r.hasNextPage?"Loading...":"Nothing more to load",style:{position:"absolute",top:0,left:0,width:"100%",height:`${i.size}px`,transform:`translateY(${i.start}px)`}},i.index):p?a?(0,Be.jsx)(Lt.Fragment,{children:a(p,{title:void 0,selected:t.includes(p[n]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${i.size}px`,transform:`translateY(${i.start}px)`},onClick:()=>m(p)})},i.index):(0,Be.jsx)(H,{title:p[o],selected:t.includes(p[n]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${i.size}px`,transform:`translateY(${i.start}px)`},onClick:()=>m(p)},i.index):(0,Be.jsx)(H,{title:`Item ${i.index} not found`,style:{position:"absolute",top:0,left:0,width:"100%",height:`${i.size}px`,transform:`translateY(${i.start}px)`}},i.index)})})})}):null},Qn=La;var w=require("react/jsx-runtime"),Sa=e=>{let{data:t,value:n,keyField:o="key",textField:r="text",isMultiple:s=!1,disabled:a,loading:l,clearable:c=!0,disclosure:d,virtual:m,placeholder:i,className:u,style:p,color:v="inherit",variant:h="outlined",size:C="md",startContent:g,endContent:y,onFilterChange:x,renderItem:b,renderNoData:T}=e,R=d!==void 0?d:He(),S=f,M=(0,q.useRef)(null),[E,z]=(0,q.useState)(""),[G,fe]=(0,q.useState)(""),[Re,X]=(0,q.useState)(!1),[Le,Qe]=(0,q.useState)(!1),re=(0,q.useMemo)(()=>lr(n),[n]),Se=(0,q.useMemo)(()=>t.filter(D=>re.includes(D[o])),[t,re]),[kt,Uo]=(0,q.useState)(0),no=()=>{M?.current?.focus()},it=D=>{if(e.isMultiple){let ce=t.filter(Me=>D.includes(Me[o]));e.onChange?.(ce),e.onValueChange?.(D)}else{let ce=Xt(D),Me=null;ce!==void 0&&(Me=t.find(io=>io[o]===ce)??null),e.onChange?.(Me),e.onValueChange?.(ce)}},Wo=D=>{D.stopPropagation(),X(!0),fe(""),e.isMultiple?(e.onChange?.([]),e.onValueChange?.([])):(e.onChange?.(null),e.onValueChange?.(null)),X(!1)},$=D=>{!R.isOpen&&R.onOpen(),X(!0),fe(D.target.value),x?.(D.target.value)},Z=()=>{if(e.isMultiple){let D=[...re].slice(0,-1);it(D)}},le=D=>{e.isMultiple&&D.key==="Backspace"&&G===""&&Z()},Ye=D=>{let ce=D[o];if(e.isMultiple){let Me=[...re],io=re.indexOf(ce);io===-1?Me.push(ce):Me.splice(io,1),it(Me)}else Xt(re)!==ce&&it([ce]);Re&&z(G),X(!1),M.current?.focus(),e.isMultiple||R.onClose()},gs=()=>{R.onOpen(),Qe(!0)},bs=()=>{if(R.onClose(),!e.isMultiple&&Re){let D=Se[0];D!==void 0?(fe(D[r]),x?.(E)):(fe(""),x?.(E)),X(!1)}};return(0,q.useEffect)(()=>{if(!Re&&!e.isMultiple){let D=Se[0];D!==void 0&&fe(D[r])}},[Se]),(0,q.useEffect)(()=>{lr(n)[0]===void 0&&(fe(""),x?.(""))},[n]),(0,w.jsx)(Un.Provider,{value:{data:t,values:re,keyField:o,textField:r,isMultiple:s,virtual:m,onChange:it,onItemSelect:Ye,offset:kt,setOffset:Uo,renderItem:b},children:(0,w.jsxs)(yt,{target:!0,...R,isOpen:R.isOpen,onOpen:gs,onClose:bs,autoClose:"outside",children:[(0,w.jsx)(bt,{children:(0,w.jsxs)("div",{className:L(`${S}input ${S}input--filterable`,{[`${S}input--${v}`]:v,[`${S}input--${h}`]:h,[`${S}input--${C}`]:C,[`${S}input--focus`]:Le,[`${S}input--disabled`]:a,[`${S}input--clearable`]:c},u),style:p,onClick:no,onFocus:()=>{Qe(!0)},onBlur:()=>{Qe(!1)},children:[(0,w.jsx)("div",{className:`${S}overlay`}),(0,w.jsx)("div",{className:`${S}outline`}),g&&(0,w.jsx)("div",{className:`${S}input__start-content`,children:g}),(0,w.jsx)("div",{className:`${S}input__content`,children:s&&Se.length?(0,w.jsxs)("div",{className:`${S}input__chips`,children:[Se.map(D=>(0,w.jsx)(ht,{variant:"flat",color:"secondary",size:"xs",closable:!0,onClose:()=>Ye(D),children:D[r]},D[o])),(0,w.jsx)("input",{ref:M,value:G,placeholder:i,disabled:a,title:G,onChange:$,onKeyDown:le})]}):(0,w.jsx)("input",{ref:M,className:`${S}input__field`,value:G,placeholder:i,disabled:a,title:G,onChange:$})}),(0,w.jsxs)("div",{className:`${S}input__end-content`,children:[y,l?(0,w.jsx)(P,{children:(0,w.jsx)(Pe,{className:`${S}animation-spin`})}):c?(0,w.jsx)("div",{className:`${S}input__clearable`,children:(0,w.jsx)(de,{type:"button",variant:"text",color:"secondary",size:"xs",iconOnly:!0,onClick:Wo,children:(0,w.jsx)(P,{children:(0,w.jsx)(U,{})})})}):null,(0,w.jsx)("div",{style:{pointerEvents:"none"},children:(0,w.jsx)(P,{color:"secondary",children:R.isOpen?(0,w.jsx)(ee,{}):(0,w.jsx)(j,{})})})]})]})}),(0,w.jsx)(Tt,{style:{maxHeight:"200px"},children:t.length===0?(0,w.jsx)(w.Fragment,{children:T?T({status:"info",title:"No data",size:"sm",onClick:()=>{R.onClose()}}):(0,w.jsx)(we,{status:"info",title:"No data",size:"sm",onClick:R.onClose})}):m?(0,w.jsx)(Qn,{}):(0,w.jsx)(Wn,{})})]})})},Yn=Sa;var qn=A(require("clsx")),tt=require("react");var Ut=require("react/jsx-runtime"),Ma=(0,tt.forwardRef)((e,t)=>{let{children:n,className:o,isOpen:r,placement:s="center",variant:a="opaque",closable:l=!0,scrollable:c=!1,scrollArea:d=!1,onClose:m,...i}=e,u=f,p=(0,tt.useRef)(null),v=()=>{l&&m()};return(0,tt.useEffect)(()=>(r&&(document.body.style.overflow="hidden",p.current&&(p.current.style.overflow="")),()=>{p.current&&(p.current.style.overflow="hidden"),document.body.style.overflow=""}),[r]),(0,tt.useEffect)(()=>{let h=C=>{if(C.key==="Escape"){if(!l)return;m()}};return document.addEventListener("keydown",h),()=>{document.removeEventListener("keydown",h)}},[l]),(0,Ut.jsx)(ye,{nodeRef:p,isOpen:r,name:`${f}backdrop`,enter:300,leave:300,mountOnEnter:!0,unmountOnExit:!0,children:(0,Ut.jsx)(Ct,{children:(0,Ut.jsx)("div",{ref:Q(t,p),className:(0,qn.default)(`${u}backdrop`,{[`${u}backdrop--${s}`]:s,[`${u}backdrop--${a}`]:a,[`${u}backdrop--scrollable`]:c},o),onClick:v,...i,children:d?(0,Ut.jsx)(_,{autoHide:!0,children:n}):n})})})}),St=Ma;var So=A(require("clsx"));var Wt=require("react/jsx-runtime"),Ea=({children:e,className:t,color:n="primary",placement:o="top-right",content:r,unstyled:s=!1,slotProps:a})=>{let l=(0,Wt.jsxs)("div",{className:(0,So.default)(`${f}badge`,{[`${f}badge--${o}`]:o,[`${f}badge--${n}`]:n,[`${f}badge--unstyled`]:s},t),children:[(0,Wt.jsx)("div",{className:(0,So.default)(`${f}overlay`)}),r]});return e?(0,Wt.jsxs)("div",{...a?.wrapper,className:(0,So.default)(`${f}badge-wrapper`,a?.wrapper?.className),children:[e,l]}):l},Jn=Ea;var Mt=require("react");var Zn=require("react");var Mo=require("react"),cr=(0,Mo.createContext)(null),Eo=()=>{let e=(0,Mo.useContext)(cr);if(!e)throw new Error("`useDataList` must be used within a `<DataList />`");return e};var Qt=require("react/jsx-runtime"),jn=()=>{let{refs:e,data:t,values:n,setOffset:o,keyField:r,textField:s,onItemSelect:a,renderItem:l}=Eo(),c=e.parent,d=m=>{a(m),o(c.current?.scrollHeight||0)};return(0,Qt.jsx)(_,{ref:c,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Qt.jsx)(K,{children:l?t.map(m=>(0,Qt.jsx)(Zn.Fragment,{children:l(m,{title:"",selected:n.includes(m[r]),hoverable:!0,onClick:()=>d(m)})},m[r])):t.map(m=>(0,Qt.jsx)(H,{title:m[s],selected:n.includes(m[r]),hoverable:!0,onClick:()=>d(m)},m[r]))})})};var ei=require("react");var ze=require("react/jsx-runtime"),ti=()=>{let{refs:e,data:t,values:n,keyField:o,textField:r,virtual:s,virtualizer:a,onItemSelect:l,renderItem:c}=Eo(),d=e.parent,m=a||ke({...s,count:t.length,parentRef:d}),i=u=>{l?.(u)};return(0,ze.jsx)(_,{ref:d,autoHide:!0,style:{width:"100%",height:"100%",position:"relative",maxHeight:"100%"},children:(0,ze.jsx)(K,{children:(0,ze.jsx)("div",{style:{height:`${m.getTotalSize()}px`,width:"100%",position:"relative"},children:m.getVirtualItems().map(u=>{let p=u.index>t.length-1,v=t[u.index];return p?(0,ze.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):v?c?(0,ze.jsx)(ei.Fragment,{children:c(v,{title:"",selected:n.includes(v[o]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${u.size}px`,transform:`translateY(${u.start}px)`},onClick:()=>i(v)})},u.index):(0,ze.jsx)(H,{title:v[r],selected:n.includes(v[o]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${u.size}px`,transform:`translateY(${u.start}px)`},onClick:()=>i(v)},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 oi=e=>Array.isArray(e)?e:e!==null?[e]:[],ur=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var J=require("react/jsx-runtime"),ri=e=>{let{className:t,data:n,value:o,keyField:r="key",textField:s="text",isMultiple:a=!1,loading:l,mounted:c,virtual:d,virtualizer:m,refs:i,renderItem:u,renderNoData:p,onItemSelect:v}=e,h=f,g={parent:i?.parent?i.parent:(0,Mt.useRef)(null)},y=(0,Mt.useMemo)(()=>oi(o),[o]),[x,b]=(0,Mt.useState)(0),T=S=>{if(e.isMultiple){let M=n.filter(E=>S.includes(E[r]));e.onChange?.(M),e.onValueChange?.(S)}else{let M=ur(S),E=null;M!==void 0&&(E=n.find(z=>z[r]===M)??null),e.onChange?.(E),e.onValueChange?.(M)}},R=S=>{let M=S[r];if(e.isMultiple){let E=[...y],z=y.indexOf(M);z===-1?E.push(M):E.splice(z,1),T(E)}else ur(y)!==M&&T([M]);v?.(S)};return(0,J.jsx)(J.Fragment,{children:(0,J.jsx)(cr.Provider,{value:{data:n,values:y,keyField:r,textField:s,isMultiple:a,virtualizer:m,virtual:d,refs:g,onChange:T,onItemSelect:R,offset:x,setOffset:b,renderItem:u},children:(0,J.jsx)("div",{className:L(`${h}data-list`,t),children:l&&!c?(0,J.jsx)(we,{status:"info",title:"Loading...",icon:(0,J.jsx)(P,{children:(0,J.jsx)(Pe,{className:"us-animation-spin"})})}):n.length===0?(0,J.jsx)(J.Fragment,{children:p?p({status:"info",title:"No data",size:"sm"}):(0,J.jsx)(we,{status:"info",title:"No data",size:"sm"})}):d?(0,J.jsx)(ti,{}):(0,J.jsx)(jn,{})})})})};var si=require("react");var ni={rounded:"rounded",shadow:"shadow",transitionDuration:"transition",transitionProperty:"transition"};var ii=(e,t,n,o)=>{let r=e?o?`${o}:${e}`:e:o?`${o}:`:"";return t?`${r}${t}-${n}`:`${r}${n}`},Pa=(e,t,n)=>{let o=[];if(typeof t=="object"){let r=Object.keys(t);for(let s of r){let a=t[s];a!==void 0&&o.push(ii(e,n,a,s))}}else o.push(ii(e,n,t));return o.join(" ")},Yt=(e,t)=>Object.keys(e).map(o=>{let r=e[o];return r!==void 0?Pa(t,r,ni[o]):""});var Po=require("react/jsx-runtime"),wa=(0,si.forwardRef)(({as:e="div",children:t,className:n,size:o="md",hoverable:r,selected:s,disabled:a,bordered:l=!0,css:c,...d},m)=>{let i=f;return(0,Po.jsxs)(e,{ref:m,className:L(`${i}card`,{[`${i}card--${o}`]:o,[`${i}card--hoverable`]:r,[`${i}card--selected`]:s,[`${i}card--disabled`]:a,[`${i}card--bordered`]:l},c!==void 0?Yt(c,i):[],n),...d,children:[(r||s)&&(0,Po.jsx)("div",{className:`${i}overlay`}),t]})}),ai=wa;var li=require("react");var ui=require("react/jsx-runtime"),Ia=(0,li.forwardRef)(({children:e,className:t,...n},o)=>(0,ui.jsx)("div",{ref:o,className:L(`${f}card-body`,t),...n,children:e})),ci=Ia;var di=require("react");var pe=require("react/jsx-runtime"),Aa=(0,di.forwardRef)(({as:e="div",children:t,className:n,title:o,subtitle:r,startContent:s,endContent:a,bordered:l=!0,slotProps:c,...d},m)=>{let i=f;return(0,pe.jsxs)(e,{ref:m,className:L(`${i}card-header`,{[`${i}card-header--bordered`]:l},n),...d,children:[s!==void 0&&(0,pe.jsx)("div",{...c?.startContent,className:L(`${i}card-header__start-content`,c?.startContent?.className),children:s}),(0,pe.jsx)("div",{...c?.content,className:L(`${i}card-header__content`,c?.content?.className),children:o!==void 0||r!==void 0?(0,pe.jsxs)(pe.Fragment,{children:[o!==void 0&&(0,pe.jsx)("div",{...c?.title,className:L(`${i}card-header__title`,c?.title?.className),children:o}),r!==void 0&&(0,pe.jsx)("div",{...c?.subtitle,className:L(`${i}card-header__subtitle`,c?.subtitle?.className),children:r})]}):t}),a!==void 0&&(0,pe.jsx)("div",{...c?.endContent,className:L(`${i}card-header__end-content`,c?.endContent?.className),children:a})]})}),pi=Aa;var mi=A(require("clsx")),fi=require("react");var xi=require("react/jsx-runtime"),vi=(0,fi.forwardRef)((e,t)=>{let{as:n="div",children:o,className:r,bordered:s=!0,...a}=e,l=f;return(0,xi.jsx)(n,{...a,ref:t,className:(0,mi.default)(`${l}card-footer`,{[`${l}card-footer--bordered`]:s},r),children:o})});var hi=A(require("clsx")),Ao=require("react");var wo=require("react"),qt=(0,wo.createContext)(null),Io=()=>{let e=(0,wo.useContext)(qt);if(!e)throw new Error("`useDrawer` must be used within a `<Drawer />`");return e};var Jt=require("react/jsx-runtime"),Da=(0,Ao.forwardRef)((e,t)=>{let{children:n,className:o,isOpen:r,size:s="sm",position:a,placement:l,backdrop:c="opaque",closable:d=!0,vars:m,style:i,onClose:u,onAfterClose:p,onClick:v,...h}=e,C=f,g=a??l??"left",y=(0,Ao.useRef)(null),x=()=>{u()},b=()=>{p?.()};return(0,Jt.jsx)(qt.Provider,{value:{isOpen:r,onClose:x},children:(0,Jt.jsx)(St,{isOpen:r,closable:d,variant:c,placement:g,onClose:x,children:(0,Jt.jsx)(ye,{nodeRef:y,isOpen:r,name:`${f}drawer`,enter:600,leave:300,unmountOnExit:!0,onExited:b,children:(0,Jt.jsx)("div",{...h,ref:Q(t,y),className:(0,hi.default)(`${f}drawer`,{[`${f}drawer--${s}`]:s,[`${f}drawer--${g}`]:g},o),style:{...i,[`--${C}drawer-xs-width`]:m?.xsWidth},onClick:T=>{T.stopPropagation(),v?.(T)},children:n})})})})}),Ci=Da;var ot=A(require("clsx")),yi=require("react");var O=require("react/jsx-runtime"),Ti=(0,yi.forwardRef)(({as:e="div",children:t,className:n,title:o,subtitle:r,startContent:s,endContent:a,bordered:l=!0,close:c,slotProps:d,...m},i)=>{let{onClose:u}=Io(),p=f,v={isVisible:c?.isVisible??!0,position:c?.position??"start"},h={cursor:"pointer"};return(0,O.jsxs)(e,{ref:i,className:(0,ot.default)(`${p}drawer-header`,{[`${p}drawer-header--bordered`]:l},n),...m,children:[(s!==void 0||v.isVisible&&v.position==="start")&&(0,O.jsx)("div",{...d?.startContent,className:(0,ot.default)(`${p}accordion-header__start-content`,d?.startContent?.className),children:v.isVisible&&v.position==="start"?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(P,{color:"secondary",children:(0,O.jsx)(U,{style:h,onClick:u})}),s]}):s}),(0,O.jsx)("div",{...d?.content,className:(0,ot.default)(`${p}drawer-header__content`,d?.content?.className),children:o!==void 0||r!==void 0?(0,O.jsxs)(O.Fragment,{children:[o!==void 0&&(0,O.jsx)("div",{...d?.title,className:(0,ot.default)(`${p}drawer-header__title`,d?.title?.className),children:o}),r!==void 0&&(0,O.jsx)("div",{...d?.subtitle,className:(0,ot.default)(`${p}drawer-header__subtitle`,d?.subtitle?.className),children:r})]}):t}),(a!==void 0||v.isVisible&&v.position==="end")&&(0,O.jsx)("div",{...d?.endContent,className:(0,ot.default)(`${p}accordion-header__end-content`,d?.endContent?.className),children:v.isVisible&&v.position==="end"?(0,O.jsxs)(O.Fragment,{children:[a,(0,O.jsx)(P,{color:"secondary",children:(0,O.jsx)(U,{style:h,onClick:u})})]}):a})]})});var gi=require("react");var Ri=require("react/jsx-runtime"),bi=(0,gi.forwardRef)(({children:e,className:t,...n},o)=>(0,Ri.jsx)("div",{ref:o,className:L(`${f}drawer-body`,t),...n,children:e}));var Li=A(require("clsx")),Si=require("react");var Ei=require("react/jsx-runtime"),Mi=(0,Si.forwardRef)((e,t)=>{let{as:n="div",children:o,className:r,bordered:s=!0,...a}=e,l=f;return(0,Ei.jsx)(n,{...a,ref:t,className:(0,Li.default)(`${l}drawer-footer`,{[`${l}drawer-footer--bordered`]:s},r),children:o})});var Pi=require("react");var Zt=require("react/jsx-runtime"),Na=(0,Pi.forwardRef)(({children:e,label:t},n)=>{{let o=f;return(0,Zt.jsxs)("div",{ref:n,className:L(`${o}field`),children:[(0,Zt.jsx)("div",{className:`${o}field__label`,children:t}),(0,Zt.jsx)("div",{className:`${o}field__content`,children:e})]})}}),wi=Na;var _i=A(require("clsx")),Ke=require("react");var Do=require("react"),Ii=(0,Do.createContext)(null),Et=()=>{let e=(0,Do.useContext)(Ii);if(!e)throw new Error("`useMenu` must be used within a `<Menu />`");return e},No=Ii;var Vi=A(require("clsx")),Oi=require("react");var Ni=A(require("clsx")),Pt=require("react");var $o=require("react"),Ai=(0,$o.createContext)([]),Di=()=>{let e=(0,$o.useContext)(Ai);if(!e)throw new Error("`useMenuValue` must be used within a `<MenuValueContext.Provider />`");return e},rt=Ai;var Ge=require("react/jsx-runtime"),$i=(0,Pt.forwardRef)((e,t)=>{let{as:n="div",className:o,style:r,value:s,title:a,icon:l,level:c=1,disabled:d,onClick:m,...i}=e,{value:u,originalValue:p,navMode:v,onChange:h,onOpen:C,onItemSelect:g}=Et(),y=(0,Pt.useContext)(rt),x=[...y,s],b=u[c-1]===s,T=R=>{s!==void 0&&h(x),m?.(R),g?.(e)};return(0,Pt.useEffect)(()=>{v==="automatic"&&p.length>0&&p[p.length-1]===s&&(C(y),h(x))},[s,p,v]),(0,Ge.jsxs)(n,{ref:t,className:(0,Ni.default)(`${f}menu-item`,{[`${f}menu-item--selected`]:b,[`${f}menu-item--disabled`]:d},o),style:{paddingLeft:c<=1?`var(--${f}menu-item-padding-x)`:`calc(${c} * var(--${f}menu-item-padding-level))`,...r},onClick:T,...i,children:[(0,Ge.jsx)("div",{className:`${f}overlay`,children:(0,Ge.jsx)("div",{className:`${f}overlay__surface`})}),l&&(0,Ge.jsx)("div",{className:`${f}menu-item__icon`,children:l}),(0,Ge.jsx)("div",{className:`${f}menu-item__content`,children:(0,Ge.jsx)("span",{className:`${f}menu-item__title`,children:a})})]})});$i.displayName="MenuItem";var me=$i;var ko=A(require("clsx")),Vo=require("react");var Hi=e=>e.split("/").reduce((t,n)=>{let o=t[t.length-1];return o!=null?t.push(o+"/"+n):t.push(""),t},[]),Ho=(e,t)=>{let n=e.indexOf(t),o=[...e];return n===-1?o.push(t):o.splice(n,1),o};var k=require("react/jsx-runtime"),ki=({children:e,className:t,style:n,value:o,title:r,icon:s,level:a=1,items:l,onClick:c,...d})=>{let{value:m,openValues:i,expandMode:u,onOpen:p}=Et(),v=(0,Vo.useContext)(rt),h=i.includes(o),C=[...v,o],g=m[a-1]===o,y=(0,Vo.useMemo)(()=>l?.map(({type:b,...T},R)=>b==="item"?(0,k.jsx)(me,{level:a!==void 0?a+1:void 0,...T},R):b==="submenu"?(0,k.jsx)(ki,{level:a!==void 0?a+1:void 0,...T},R):b==="group"?(0,k.jsx)(It,{level:a!==void 0?a+1:void 0,...T},R):(0,k.jsx)(me,{level:a!==void 0?a+1:void 0,...T},R)),[l]),x=b=>{if(u==="multiple"){let T=Ho(i,o);p(T)}else if(h){let T=Ho(C,o);p(T)}else{let T=Ho(v,o);p(T)}c?.(b)};return(0,k.jsx)(rt.Provider,{value:C,children:(0,k.jsx)("div",{className:(0,ko.default)(`${f}menu-submenu`),children:(0,k.jsxs)(De,{isOpen:h,children:[(0,k.jsx)(xe,{children:(0,k.jsxs)("div",{className:(0,ko.default)(`${f}menu-item`,{[`${f}menu-item--selected`]:g||l&&C.includes(m)},t),style:{paddingLeft:a<=1?`var(--${f}menu-item-padding-x)`:`calc(${a} * var(--${f}menu-item-padding-level))`,...n},onClick:x,...d,children:[(0,k.jsx)("div",{className:`${f}overlay`,children:(0,k.jsx)("div",{className:`${f}overlay__surface`})}),s&&(0,k.jsx)("div",{className:`${f}menu-item__icon`,children:s}),(0,k.jsx)("div",{className:`${f}menu-item__content`,children:(0,k.jsx)("span",{className:`${f}menu-item__title`,children:r})}),(0,k.jsx)("div",{className:`${f}menu-item__icon`,children:h?(0,k.jsx)(ee,{className:`${f}icon`}):(0,k.jsx)(j,{className:`${f}icon`})})]})}),(0,k.jsx)(ve,{children:(0,k.jsx)("ul",{className:(0,ko.default)(`${f}menu`,{[`${f}menu-open`]:!h}),children:y||e})})]})})})},wt=ki;var se=require("react/jsx-runtime"),$a=({children:e,className:t,style:n,title:o,icon:r,level:s=1,items:a,...l})=>{let c=(0,Oi.useMemo)(()=>a?.map(({type:d,...m},i)=>d==="item"?(0,se.jsx)(me,{...m},i):d==="submenu"?(0,se.jsx)(wt,{...m},i):(0,se.jsx)(me,{...m},i)),[a]);return(0,se.jsxs)(se.Fragment,{children:[(0,se.jsxs)("div",{className:(0,Vi.default)(`${f}menu-group`,t),style:{paddingLeft:s<=1?`var(--${f}menu-group-padding-x)`:`calc(${s} * var(--${f}menu-group-padding-level))`,...n},...l,children:[r&&(0,se.jsx)("div",{className:`${f}menu-group__icon`,children:r}),(0,se.jsx)("div",{className:`${f}menu-group__content`,children:(0,se.jsx)("span",{className:`${f}menu-group__title`,children:o})})]}),c||e]})},It=$a;var nt=require("react/jsx-runtime"),Fi=({children:e,value:t=[],defaultValue:n,openValues:o,expandMode:r="multiple",navMode:s="manual",items:a,onChange:l,onOpen:c,onItemSelect:d,...m})=>{let[i,u]=(0,Ke.useState)(t??n??[]),[p,v]=(0,Ke.useState)(o??[]),h=(0,Ke.useMemo)(()=>a?.map(({type:x,...b},T)=>x==="item"?(0,nt.jsx)(me,{...b},T):x==="submenu"?(0,nt.jsx)(wt,{...b},T):x==="group"?(0,nt.jsx)(It,{...b},T):(0,nt.jsx)(me,{...b},T)),[a]),C=x=>{t!==void 0&&s!=="automatic"?l?.(x):u(x)},g=x=>{o!==void 0?c?.(x):v(x)},y=x=>{d?.(x)};return(0,Ke.useEffect)(()=>{t!==void 0&&s!=="automatic"&&u(t)},[t]),(0,Ke.useEffect)(()=>{o!==void 0&&v(o)},[o]),(0,nt.jsx)(No.Provider,{value:{value:i,originalValue:t,openValues:p,expandMode:r,navMode:s,onOpen:g,onChange:C,onItemSelect:y},children:(0,nt.jsx)("div",{className:(0,_i.default)(`${f}menu`),...m,children:h||e})})};Fi.displayName="Menu";var Bi=Fi;var te=require("react");var At=require("react");var Oo=require("react"),zi=(0,Oo.createContext)(null),_o=()=>{let e=(0,Oo.useContext)(zi);if(!e)throw new Error("`useSelect` must be used within a `<Select />`");return e},Gi=zi;var jt=require("react/jsx-runtime"),Ha=()=>{let{data:e,values:t,offset:n,setOffset:o,keyField:r,textField:s,onItemSelect:a,renderItem:l}=_o(),c=(0,At.useRef)(null),{isOpen:d}=Y(),m=(i,u)=>{a(u),o(c.current?.scrollTop||0)};return(0,At.useEffect)(()=>{d&&c.current?.scrollTo({top:n})},[d]),(0,jt.jsx)(_,{ref:c,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,jt.jsx)(K,{children:l?e.map(i=>(0,jt.jsx)(At.Fragment,{children:l(i,{title:void 0,selected:t.includes(i[r]),hoverable:!0,onClick:u=>m(u,i),onMouseDown:u=>u.preventDefault()})},i[r])):e.map(i=>(0,jt.jsx)(H,{title:i[s],selected:t.includes(i[r]),hoverable:!0,onClick:u=>m(u,i),onMouseDown:u=>u.preventDefault()},i[r]))})})},Ki=Ha;var Dt=require("react");var dr=e=>Array.isArray(e)?e:e!==null?[e]:[],eo=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var Xe=require("react/jsx-runtime"),ka=()=>{let{data:e,values:t,keyField:n,textField:o,virtual:r,onItemSelect:s,renderItem:a}=_o(),l=(0,Dt.useRef)(null),c=ke({...r,count:e.length,parentRef:l}),{isOpen:d}=Y(),m=i=>{s(i)};return(0,Dt.useEffect)(()=>{if(!d)return;let i=eo(t),u=e.findIndex(p=>p[n]===i);c.scrollToIndex(u,{align:"start"})},[d]),r?(0,Xe.jsx)(_,{ref:l,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Xe.jsx)(K,{children:(0,Xe.jsx)("div",{style:{height:`${c.getTotalSize()}px`,width:"100%",position:"relative"},children:c.getVirtualItems().map(i=>{let u=i.index>e.length-1,p=e[i.index];return u?(0,Xe.jsx)(H,{title:r.hasNextPage?"Loading...":"Nothing more to load",style:{position:"absolute",top:0,left:0,width:"100%",height:`${i.size}px`,transform:`translateY(${i.start}px)`}},i.index):p?a?(0,Xe.jsx)(Dt.Fragment,{children:a(p,{title:void 0,selected:t.includes(p[n]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${i.size}px`,transform:`translateY(${i.start}px)`},onClick:()=>m(p),onMouseDown:v=>v.preventDefault()})},i.index):(0,Xe.jsx)(H,{title:p[o],selected:t.includes(p[n]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${i.size}px`,transform:`translateY(${i.start}px)`},onClick:()=>m(p),onMouseDown:v=>v.preventDefault()},i.index):(0,Xe.jsx)(H,{title:`Item ${i.index} not found`,style:{position:"absolute",top:0,left:0,width:"100%",height:`${i.size}px`,transform:`translateY(${i.start}px)`}},i.index)})})})}):null},Xi=ka;var I=require("react/jsx-runtime"),Va=e=>{let{data:t,value:n,keyField:o="key",textField:r="text",isMultiple:s=!1,disabled:a,loading:l,clearable:c=!1,disclosure:d,virtual:m,placeholder:i,className:u,style:p,color:v="inherit",variant:h="outlined",size:C="md",startContent:g,endContent:y,renderItem:x,renderNoData:b}=e,T=d!==void 0?d:He(),R=f,S=(0,te.useRef)(null),[M,E]=(0,te.useState)(""),[z,G]=(0,te.useState)(!1),[fe,Re]=(0,te.useState)(!1),X=(0,te.useMemo)(()=>dr(n),[n]),Le=(0,te.useMemo)(()=>t.filter($=>X.includes($[o])),[t,X]),[Qe,re]=(0,te.useState)(0),Se=()=>{S?.current?.focus()},kt=$=>{if(e.isMultiple){let Z=t.filter(le=>$.includes(le[o]));e.onChange?.(Z),e.onValueChange?.($)}else{let Z=eo($),le=null;Z!==null&&(le=t.find(Ye=>Ye[o]===Z)??null),e.onChange?.(le),e.onValueChange?.(Z)}},Uo=$=>{$.stopPropagation(),G(!0),E(""),e.isMultiple?(e.onChange?.([]),e.onValueChange?.([])):(e.onChange?.(null),e.onValueChange?.(null)),G(!1)},no=$=>{let Z=$[o];if(e.isMultiple){let le=[...X],Ye=X.indexOf(Z);Ye===-1?le.push(Z):le.splice(Ye,1),kt(le)}else eo(X)!==Z&&kt([Z]);G(!1),S.current?.focus(),e.isMultiple||T.onClose()},it=()=>{T.onOpen(),Re(!0)},Wo=()=>{if(T.onClose(),!e.isMultiple&&z){let $=Le[0];E($!==void 0?$[r]:""),G(!1)}};return(0,te.useEffect)(()=>{if(!z&&!e.isMultiple){let $=Le[0];$!==void 0&&E($[r])}},[Le]),(0,te.useEffect)(()=>{dr(n)[0]===void 0&&E("")},[n]),(0,I.jsx)(Gi.Provider,{value:{data:t,values:X,keyField:o,textField:r,isMultiple:s,virtual:m,onChange:kt,onItemSelect:no,offset:Qe,setOffset:re,renderItem:x},children:(0,I.jsxs)(yt,{target:!0,...T,isOpen:T.isOpen,onOpen:it,onClose:Wo,autoClose:"outside",children:[(0,I.jsx)(bt,{children:(0,I.jsxs)("div",{className:L(`${R}input`,{[`${R}input--${v}`]:v,[`${R}input--${h}`]:h,[`${R}input--${C}`]:C,[`${R}input--focus`]:fe,[`${R}input--disabled`]:a,[`${R}input--clearable`]:c},u),style:p,onClick:Se,onFocus:()=>{Re(!0)},onBlur:()=>{Re(!1)},children:[(0,I.jsx)("input",{type:"text",ref:S,style:{position:"absolute",opacity:0}}),(0,I.jsx)("div",{className:`${R}overlay`}),(0,I.jsx)("div",{className:`${R}outline`}),g&&(0,I.jsx)("div",{className:`${R}input__start-content`,children:g}),(0,I.jsx)("div",{className:`${R}input__content`,children:s&&Le.length!==0?(0,I.jsx)("div",{className:`${R}input__chips`,children:Le.map($=>(0,I.jsx)(ht,{variant:"flat",color:"secondary",size:"xs",closable:!0,onClose:()=>no($),children:$[r]},$[o]))}):(0,I.jsx)("div",{className:`${R}input__search`,title:M,children:M||i})}),(0,I.jsxs)("div",{className:`${R}input__end-content`,children:[y,l?(0,I.jsx)(P,{children:(0,I.jsx)(Pe,{className:`${R}animation-spin`})}):c?(0,I.jsx)("div",{className:`${R}input__clearable`,children:(0,I.jsx)(de,{type:"button",variant:"text",color:"secondary",size:"xs",iconOnly:!0,onClick:Uo,children:(0,I.jsx)(P,{children:(0,I.jsx)(U,{})})})}):null,(0,I.jsx)("div",{style:{pointerEvents:"none"},children:(0,I.jsx)(P,{color:"secondary",children:T.isOpen?(0,I.jsx)(ee,{}):(0,I.jsx)(j,{})})})]})]})}),(0,I.jsx)(Tt,{style:{maxHeight:"200px"},children:t.length===0?(0,I.jsx)(I.Fragment,{children:b?b({status:"info",title:"No data",size:"sm",onClick:()=>{T.onClose()}}):(0,I.jsx)(we,{status:"info",title:"No data",size:"sm",onClick:T.onClose})}):m?(0,I.jsx)(Xi,{}):(0,I.jsx)(Ki,{})})]})})},Ui=Va;var Wi=A(require("clsx")),Nt=require("react");var to=require("react/jsx-runtime"),Oa=(0,Nt.forwardRef)(({id:e,name:t,value:n,defaultValue:o,checked:r,defaultChecked:s,onChange:a,onCheckedChange:l,disabled:c,className:d,...m},i)=>{let[u,p]=(0,Nt.useState)(r),v=f,h=C=>{let{value:g,checked:y}=C.target;p(y),a?.(g),l?.(y)};return(0,Nt.useEffect)(()=>{r!==void 0&&p(r)},[r]),(0,to.jsxs)("label",{ref:i,htmlFor:e,className:(0,Wi.default)(`${v}switch`,{[`${v}switch--checked`]:!!u},d),...m,children:[(0,to.jsx)("input",{type:"checkbox",id:e,name:t,value:n,defaultValue:o,checked:u,defaultChecked:s,disabled:c,onChange:h}),(0,to.jsx)("div",{className:`${v}switch__thumb`})]})}),Qi=Oa;var qi=A(require("clsx")),Ji=A(require("merge-refs")),Ue=require("react"),Zi=require("uuid");var Fo=require("react"),pr=(0,Fo.createContext)(null),Yi=()=>{let e=(0,Fo.useContext)(pr);if(!e)throw new Error("`useTabs` must be used within a `<Tabs />`");return e};var ae=require("react/jsx-runtime"),ji=(0,Ue.forwardRef)(({as:e="div",children:t,className:n,role:o="presentation",value:r,startContent:s,endContent:a,closable:l,disabled:c,onClick:d,...m},i)=>{let u=f,p=(0,Ue.useRef)(null),[v]=(0,Ue.useState)((0,Zi.v4)()),h=r??v,{onClose:C,registerItem:g,...y}=Yi(),x=T=>{let R=y.previousTabRef.current,S=p.current;if(S){if(R){let M=R.querySelector(`.${u}tab__indicator`),E=S.querySelector(`.${u}tab__indicator`);if(!M||!E)return;let z={},G=M.getBoundingClientRect(),fe=G.left,Re=G.width,X=E.getBoundingClientRect(),Le=X.left,Qe=X.width,re=Re/Qe;re?z.transform=`translateX(${(fe-Le).toFixed(4)}px) scaleX(${re.toFixed(4)})`:z.opacity=0;let Se=[z,{transform:"none"}];E.animate(Se,{duration:250,easing:"cubic-bezier(.3,0,0,1)"}),y.previousTabRef.current=p.current}y.previousTabRef.current=p.current,y.onChange(h),d?.(T)}},b=T=>{T.stopPropagation(),C(h)};return(0,Ue.useEffect)(()=>{g({value:h,disabled:c}),h===y.value&&(y.previousTabRef.current=p.current)},[h,y.value]),(0,ae.jsxs)(e,{ref:(0,Ji.default)(p,i,T=>y.tabRefs.current[h]=T),className:(0,qi.default)(`${u}tab`,{[`${u}tab--selected`]:h===y.value,[`${u}tab--disabled`]:c},n),role:o,onClick:x,...m,children:[(0,ae.jsx)("div",{className:`${u}overlay`,children:(0,ae.jsx)("div",{className:`${u}overlay__surface`})}),(0,ae.jsxs)("div",{className:`${u}tab__content`,children:[s&&(0,ae.jsx)("div",{className:`${u}tab__start-content`,children:s}),t,a||l&&(0,ae.jsxs)("div",{className:`${u}tab__end-content`,children:[a,l&&(0,ae.jsx)(de,{variant:"text",color:"secondary",iconOnly:!0,size:"xs",onClick:b,children:(0,ae.jsx)(P,{children:(0,ae.jsx)(U,{})})})]})]}),(0,ae.jsx)("div",{className:`${u}tab__indicator`})]})});var es=A(require("clsx")),ge=require("react");var oo=require("react/jsx-runtime"),ts=({children:e,className:t,value:n,defaultValue:o,alignment:r="start",onChange:s,onClose:a,...l})=>{let c=(0,ge.useRef)(null),d=(0,ge.useRef)({}),m=(0,ge.useRef)(null),[i,u]=(0,ge.useState)(n??o),[p,v]=(0,ge.useState)([]),h=x=>{v(b=>(b.findIndex(R=>R.value)===-1&&b.push(x),b))},C=x=>{let b=c.current;if(!b)return;let T=d.current[x];T&&Qo(b,T)},g=x=>{u(x),s?.(x),C(x)},y=x=>{a?.(x)};return(0,ge.useEffect)(()=>{n!==void 0&&(u(n),C(n))},[n]),(0,ge.useEffect)(()=>{if(n===void 0){let x=p.find(b=>!b.disabled);u(x?.value)}},[n,p]),(0,oo.jsxs)(pr.Provider,{value:{previousTabRef:m,tabRefs:d,value:i,onChange:g,onClose:y,registerItem:h},children:[(0,oo.jsx)("div",{ref:c,className:(0,es.default)(`${f}tabs`,{[`${f}tabs--${r}`]:r},t),...l,children:e}),(0,oo.jsx)("div",{className:`${f}divider`})]})};var $t=require("react");var Ie=require("react/jsx-runtime");var os=(0,$t.forwardRef)(({className:e,value:t,defaultValue:n,disabled:o,inputRef:r,color:s="inherit",variant:a="outlined",size:l="md",startContent:c,endContent:d,css:m,style:i,onChange:u,onClick:p,...v},h)=>{let[C,g]=(0,$t.useState)(!1),y=(0,$t.useRef)(null),x=f,b=R=>{u?.(R)},T=R=>{p?.(R),y?.current?.focus()};return(0,Ie.jsxs)("div",{ref:h,className:L(`${x}input`,{[`${x}input--${s}`]:s,[`${x}input--${a}`]:a,[`${x}input--${l}`]:l,[`${x}input--focus`]:C,[`${x}input--disabled`]:o},m!==void 0?Yt(m,x):[],e),style:i,onFocus:()=>{g(!0)},onBlur:()=>{g(!1)},onClick:T,children:[(0,Ie.jsx)("div",{className:`${x}overlay`}),(0,Ie.jsx)("div",{className:`${x}outline`}),c&&(0,Ie.jsx)("div",{className:`${x}input__start-content`,children:c}),(0,Ie.jsx)("div",{className:`${x}input__content`,children:(0,Ie.jsx)("input",{ref:Q(y,r),className:`${x}input__field`,value:t,defaultValue:n,disabled:o,onChange:b,...v})}),d&&(0,Ie.jsx)("div",{className:`${x}input__end-content`,children:d})]})});var be=A(require("clsx"));var W=require("react/jsx-runtime"),_a=e=>{let{children:t,className:n,size:o="md",title:r,subtitle:s,startContent:a,endContent:l,startAction:c,endAction:d,slotProps:m,...i}=e,u=f;return(0,W.jsxs)("div",{className:(0,be.default)(`${u}toolbar`,{[`${u}toolbar--${o}`]:o},n),...i,children:[(0,W.jsx)("div",{className:`${u}outline-b`}),(0,W.jsxs)("div",{className:(0,be.default)(`${u}toolbar__container`),children:[a!==void 0?(0,W.jsx)("div",{className:(0,be.default)(`${u}toolbar__start-content`),children:a}):c!==void 0&&(0,W.jsx)("div",{className:(0,be.default)(`${u}toolbar__start-action`),children:c}),(0,W.jsx)("div",{className:(0,be.default)(`${u}toolbar__content`),children:r!==void 0||s!==void 0?(0,W.jsxs)(W.Fragment,{children:[r!==void 0&&(0,W.jsx)("div",{...m?.title,className:(0,be.default)(`${u}toolbar__title`),children:r}),s!==void 0&&(0,W.jsx)("div",{...m?.subtitle,className:(0,be.default)(`${u}toolbar__subtitle`),children:s})]}):t}),l!==void 0?(0,W.jsx)("div",{className:(0,be.default)(`${u}toolbar__end-content`),children:l}):d!==void 0&&(0,W.jsx)("div",{className:(0,be.default)(`${u}toolbar__end-action`),children:d})]})]})},rs=_a;var ns=A(require("clsx")),is=A(require("merge-refs")),Bo=require("react");var mr=require("react/jsx-runtime"),ss=(0,Bo.forwardRef)(({as:e="div",children:t,width:n,className:o,role:r="presentation",onClick:s,style:a,...l},c)=>{let d=f,m=(0,Bo.useRef)(null),i=u=>{s?.(u)};return(0,mr.jsx)(e,{ref:(0,is.default)(m,c),className:(0,ns.default)(`${d}swipe-item`,o),role:r,onClick:i,style:{...a,...n!==void 0?{width:`${n}px`}:{}},...l,children:(0,mr.jsx)("div",{className:`${d}swipe-item__content`,children:t})})});var vr=A(require("clsx")),zo=require("react");var fr=require("react"),as=(0,fr.createContext)(null);var We=require("react");var ls=(e,t)=>{let n=!1,o=!1,r=null;if(t){let s=Array.from(e.children).indexOf(t),a=0,l=0,c=Array.from(e.children);for(let i=s;i<c.length;i++){let u=c[i];if(e.clientWidth<=l+u.clientWidth)break;a++,l+=u.clientWidth}let d=c[s];d?n=!0:n=!1,t=d;let m=c[s+a];m?o=!0:o=!1,r=m}else{let s=0,a=0,l=Array.from(e.children);for(let d=0;d<l.length;d++){let m=l[d];if(e.clientWidth<=a+m.clientWidth)break;s++,a+=m.clientWidth}n=!1,t=null;let c=l[s];c?o=!0:o=!1,r=c}return{isPrevious:n,previousElement:t,isNext:o,nextElement:r}};function Fa(e){let t=ft({ref:e.ref,target:e.target}),n=(0,We.useRef)(null),o=(0,We.useRef)(null),[r,s]=(0,We.useState)(!1),[a,l]=(0,We.useState)(!1),c=(0,We.useMemo)(()=>{let i=e.ref?.current||e.target;if(!i)return;let u=t.width===i.scrollWidth?null:n.current,p=ls(i,u);if(p)return s(p.isPrevious),l(p.isNext),o.current=p.nextElement,n.current=p.previousElement,p},[t.width,e.itemLength]);return c?{...c,isPrevious:r,isNext:a,previousRange:()=>{let i=e.ref?.current||e.target,u=n.current;if(!i||!u)return;let p="smooth",v=Array.from(i.children);if(u){let h=Array.from(i.children).indexOf(u),C=Array.from(i.children).slice(0,h+1),g=0,y=0;for(let M of C)g++,y+=M.clientWidth;let x=0,b=0;for(let M of C){if(i.clientWidth<=b+M.clientWidth)break;x++,b+=M.clientWidth}let T=y+g*16-(b+x*16);i.scrollTo({behavior:p,left:T});let R=C[C.length-1-x];s(!!R),n.current=R;let S=v[C.length-1+1];l(!!S),o.current=S}else{n.current=null;let h=0;for(let C of v){if(i.clientWidth<=h+C.clientWidth){o.current=C;break}h+=C.clientWidth}i.scrollTo({behavior:p,left:0})}},nextRange:()=>{let i=e.ref?.current||e.target,u=o.current;if(!i||!u)return;let p="smooth",v=Array.from(i.children);if(u){let h=Array.from(i.children).indexOf(u),C=Array.from(i.children).slice(0,h),g=0,y=0;for(let M=0;M<C.length;M++){let E=C[M];g++,y+=E.clientWidth}let x=0,b=0;for(let M=0;M<C.length;M++){let E=C[M];if(i.clientWidth<=b+E.clientWidth)break;x++,b+=E.clientWidth}let T=y+g*16;i.scrollTo({behavior:p,left:T});let R=C[C.length-1];s(!!R),n.current=R;let S=v[C.length+x];l(!!S),o.current=S}}}:void 0}var cs=Fa;var oe=require("react/jsx-runtime"),us=({children:e,className:t,gap:n=0,autoHide:o=!1,alignment:r="start",slotProps:s,...a})=>{let l=f,c=(0,zo.useRef)(null),d=zo.Children.toArray(e),m=cs({ref:c,itemLength:d.length}),i=p=>{m?.previousRange(),s?.arrowLeftButton?.onClick?.(p)},u=p=>{m?.nextRange(),s?.arrowRightButton?.onClick?.(p)};return(0,oe.jsx)(as.Provider,{value:{gap:n},children:(0,oe.jsxs)("div",{className:(0,vr.default)(`${l}swipe-wrapper`,{[`${l}swipe-wrapper--auto-hide`]:o},t),children:[(0,oe.jsx)("div",{className:`${l}swipe-wrapper__left`,children:m?.isPrevious&&(0,oe.jsx)(de,{variant:"filled",color:"primary",iconOnly:!0,...s?.arrowLeftButton,onClick:i,children:(0,oe.jsx)(P,{children:(0,oe.jsx)(tr,{})})})}),(0,oe.jsx)("div",{ref:c,className:(0,vr.default)(`${l}swipe`,{[`${l}swipe--${r}`]:r}),style:{"--us-swipe-gap":`${n}px`},...a,children:e}),(0,oe.jsx)("div",{className:`${l}swipe-wrapper__right`,children:m?.isNext&&(0,oe.jsx)(de,{variant:"filled",color:"primary",iconOnly:!0,...s?.arrowLeftButton,onClick:u,children:(0,oe.jsx)(P,{children:(0,oe.jsx)(or,{})})})})]})})};var hr=A(require("clsx")),ds=A(require("merge-refs")),Ko=require("react");var Go=require("react"),xr=(0,Go.createContext)(null);function Ht(){let e=(0,Go.useContext)(xr);if(!e)throw new Error("useModal must be used within a Modal");return e}var ro=require("react/jsx-runtime"),ps=(0,Ko.forwardRef)(({children:e,className:t,isOpen:n,size:o="md",placement:r="center",backdrop:s="opaque",scrollBehavior:a="outside",fullscreen:l,closable:c=!0,scrollArea:d=!1,slotProps:m,onClose:i,onAfterClose:u,onClick:p,...v},h)=>{let C=f,g=(0,Ko.useRef)(null),y=()=>{i()},x=()=>{u?.()};return(0,ro.jsx)(xr.Provider,{value:{isOpen:n,scrollBehavior:a,scrollArea:d,onClose:y,onAfterClose:x},children:(0,ro.jsx)(St,{...m?.wrapper,isOpen:n,closable:c,scrollable:!0,scrollArea:d,variant:s,placement:r,className:(0,hr.default)(`${C}modal-wrapper`,{[`${C}modal-wrapper--fullscreen`]:l},m?.wrapper?.className),onClose:y,children:(0,ro.jsx)(ye,{nodeRef:g,isOpen:n,name:`${C}modal`,enter:600,leave:300,unmountOnExit:!0,onExited:x,children:(0,ro.jsx)("div",{...v,ref:(0,ds.default)(h,g),className:(0,hr.default)(`${C}modal`,{[`${C}modal--${o}`]:o,[`${C}modal--${r}`]:r,[`${C}modal--fullscreen`]:l,[`${C}modal--scroll-${a}`]:a},t),onClick:b=>{b.stopPropagation(),p?.(b)},children:e})})})})});var ms=A(require("clsx"));var Cr=require("react/jsx-runtime"),fs=e=>{let{children:t,className:n,...o}=e,{scrollBehavior:r,scrollArea:s}=Ht(),l=(0,Cr.jsx)("div",{className:(0,ms.default)(`${f}modal-body`,n),...o,children:t});return r==="inside"&&s?(0,Cr.jsx)(_,{autoHide:!0,children:l}):l};var vs=A(require("clsx")),xs=require("react");var Cs=require("react/jsx-runtime"),hs=(0,xs.forwardRef)((e,t)=>{let{as:n="div",children:o,className:r,bordered:s=!0,...a}=e,l=f;return(0,Cs.jsx)(n,{...a,ref:t,className:(0,vs.default)(`${l}modal-footer`,{[`${l}modal-footer--bordered`]:s},r),children:o})});var Xo=A(require("clsx")),ys=require("react");var B=require("react/jsx-runtime"),Ts=(0,ys.forwardRef)(({as:e="div",children:t,className:n,title:o,subtitle:r,startContent:s,endContent:a,bordered:l=!0,close:c,slotProps:d,...m},i)=>{let{onClose:u}=Ht(),p=f,v={isVisible:c?.isVisible??!0,position:c?.position??"end"},h={cursor:"pointer"};return(0,B.jsxs)(e,{...m,ref:i,className:(0,Xo.default)(`${p}modal-header`,{[`${p}modal-header--bordered`]:l},n),children:[(s!==void 0||v.isVisible&&v.position==="start")&&(0,B.jsx)("div",{className:`${p}modal-header__start-content`,children:v.isVisible&&v.position==="start"?(0,B.jsxs)("div",{className:"us-d-flex us-items-center us-gap-2",children:[(0,B.jsx)(P,{color:"secondary",children:(0,B.jsx)(U,{style:h,onClick:u})}),s]}):s}),(0,B.jsx)("div",{className:`${p}modal-header__content`,children:o!==void 0||r!==void 0?(0,B.jsxs)(B.Fragment,{children:[o!==void 0&&(0,B.jsx)("div",{...d?.title,className:(0,Xo.default)(`${p}modal-header__title`,d?.title?.className),children:o}),r!==void 0&&(0,B.jsx)("div",{...d?.subtitle,className:(0,Xo.default)(`${p}modal-header__subtitle`,d?.subtitle?.className),children:r})]}):t}),(a!==void 0||v.isVisible&&v.position==="end")&&(0,B.jsx)("div",{className:`${p}modal-header__end-content`,children:v.isVisible&&v.position==="end"?(0,B.jsxs)("div",{className:"us-d-flex us-items-center us-gap-2",children:[a,(0,B.jsx)(P,{color:"secondary",children:(0,B.jsx)(U,{style:h,onClick:u})})]}):a})]})});0&&(module.exports={Accordion,AccordionBody,AccordionContent,AccordionContext,AccordionHeader,AccordionItem,AccordionTrigger,Autocomplete,Backdrop,Badge,Button,ButtonGroup,ButtonGroupContext,Card,CardBody,CardFooter,CardHeader,Chip,Collapse,CollapseContent,CollapseContext,CollapseTrigger,DataList,Drawer,DrawerBody,DrawerContext,DrawerFooter,DrawerHeader,Field,Icon,List,ListGroup,ListItem,ListSubheader,Menu,MenuContext,MenuGroup,MenuItem,MenuSubmenu,MenuValueContext,Modal,ModalBody,ModalFooter,ModalHeader,MutationStatus,Popover,PopoverContent,PopoverTrigger,Portal,QueryStatus,Result,ScrollArea,Select,Swipe,SwipeItem,Switch,Tab,Tabs,TextInput,Toolbar,Transition,assignRef,clsx,getOpenValuesByPathname,hasResizeObserver,mergeRefs,scrollToItem,useAccordion,useAccordionItem,useButtonGroup,useCollapse,useDebounce,useDisclosure,useDrawer,useEffectEvent,useElementSize,useInfiniteQuery,useLocalStorage,useMediaQuery,useMenu,useMenuItemValue,useModal,useMutation,useOnClickOutside,usePopover,usePrevious,useQuery,useResizeObserver,useStep,useValueEffect,useVirtualizer});
|
|
1
|
+
"use strict";var is=Object.create;var ho=Object.defineProperty;var ss=Object.getOwnPropertyDescriptor;var ls=Object.getOwnPropertyNames;var cs=Object.getPrototypeOf,us=Object.prototype.hasOwnProperty;var ds=(e,t)=>{for(var n in t)ho(e,n,{get:t[n],enumerable:!0})},zr=(e,t,n,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ls(t))!us.call(e,r)&&r!==n&&ho(e,r,{get:()=>t[r],enumerable:!(o=ss(t,r))||o.enumerable});return e};var P=(e,t,n)=>(n=e!=null?is(cs(e)):{},zr(t||!e||!e.__esModule?ho(n,"default",{value:e,enumerable:!0}):n,e)),ps=e=>zr(ho({},"__esModule",{value:!0}),e);var Ll={};ds(Ll,{Accordion:()=>Kr,AccordionBody:()=>hn,AccordionContent:()=>Tn,AccordionContext:()=>To,AccordionHeader:()=>vn,AccordionItem:()=>jr,AccordionTrigger:()=>Rn,Autocomplete:()=>Ta,Backdrop:()=>At,Badge:()=>Ra,Button:()=>Ie,ButtonGroup:()=>Un,ButtonGroupContext:()=>Yt,Card:()=>Aa,CardBody:()=>Na,CardFooter:()=>Oa,CardHeader:()=>$a,Checkbox:()=>Yi,CheckboxGroup:()=>Ji,Chip:()=>gt,Collapse:()=>_e,CollapseContent:()=>xe,CollapseContext:()=>Ro,CollapseTrigger:()=>he,DataList:()=>Ea,Drawer:()=>Ba,DrawerBody:()=>Ua,DrawerContext:()=>ro,DrawerFooter:()=>qa,DrawerHeader:()=>Ka,Field:()=>ja,Icon:()=>w,List:()=>X,ListGroup:()=>ua,ListItem:()=>$,ListSubheader:()=>pa,Menu:()=>di,MenuContext:()=>Go,MenuGroup:()=>$t,MenuItem:()=>ve,MenuSubmenu:()=>Vt,MenuValueContext:()=>lt,Modal:()=>_i,ModalBody:()=>Fi,ModalFooter:()=>Gi,ModalHeader:()=>Ui,MutationStatus:()=>gr,Popover:()=>Lt,PopoverContent:()=>Mt,PopoverTrigger:()=>wt,Portal:()=>St,QueryStatus:()=>yr,Radio:()=>es,RadioGroup:()=>rs,Result:()=>Ae,ScrollArea:()=>B,Select:()=>xi,Swipe:()=>$i,SwipeItem:()=>Di,Switch:()=>Ci,Tab:()=>gi,Tabs:()=>Ei,TextInput:()=>wi,Toolbar:()=>Pi,Transition:()=>be,assignRef:()=>Bt,clsx:()=>L,getOpenValuesByPathname:()=>ai,hasResizeObserver:()=>Sr,mergeRefs:()=>Y,scrollToItem:()=>ur,useAccordion:()=>pt,useAccordionItem:()=>Zr,useButtonGroup:()=>Ao,useCheckboxGroup:()=>nr,useCollapse:()=>He,useDebounce:()=>An,useDisclosure:()=>ze,useDrawer:()=>Fo,useEffectEvent:()=>Qt,useElementSize:()=>bt,useInfiniteQuery:()=>$n,useLocalStorage:()=>Ln,useMediaQuery:()=>Dn,useMenu:()=>Nt,useMenuItemValue:()=>oi,useModal:()=>Ft,useMutation:()=>_n,useOnClickOutside:()=>Eo,usePopover:()=>q,usePrevious:()=>Mn,useQuery:()=>Hn,useRadioGroup:()=>sr,useResizeObserver:()=>Fn,useStep:()=>In,useValueEffect:()=>zn,useVirtualizer:()=>Be});module.exports=ps(Ll);var mt=require("react");var f="us-";var ur=(e,t)=>{let n=e.getBoundingClientRect(),o=t.getBoundingClientRect(),r="smooth",i=t.previousSibling,l=i?.getBoundingClientRect()||o;if(n.left>l.left){let d=0;i&&(d=l.left-n.left+e.scrollLeft+l.width/4),e.scrollTo({behavior:r,left:d})}let s=t.nextSibling,u=s?.getBoundingClientRect()||o;if(n.right<u.right){let d=e.scrollWidth;s&&(d=u.right-n.right+e.scrollLeft-u.width/4),e.scrollTo({behavior:r,left:d})}};function Br(e){let t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(n=Br(e[t]))&&(o&&(o+=" "),o+=n);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function ms(...e){let t=0,n,o,r="";for(;t<e.length;)(n=e[t++])&&(o=Br(n))&&(r&&(r+=" "),r+=o);return r}var L=ms;function Bt(e,t){if(e!=null){if(typeof e=="function"){e(t);return}try{e.current=t}catch{throw new Error(`Cannot assign value '${t}' to ref '${e}'`)}}}function fs(...e){return t=>{e.forEach(n=>{Bt(n,t)})}}var Y=fs;var Co=require("react"),Gr=(0,Co.createContext)(null),pt=()=>{let e=(0,Co.useContext)(Gr);if(!e)throw new Error("`useAccordion` must be used within a `<Accordion />`");return e},To=Gr;var pr=require("react/jsx-runtime"),dr={isVisible:!0,position:"start"},vs=(0,mt.forwardRef)((e,t)=>{let{children:n,className:o,value:r,defaultValue:i,expandMode:l="multiple",size:s="md",arrow:u=dr,onChange:d,...m}=e,a=f,[c,p]=(0,mt.useState)(r??i??[]),v=C=>{r!==void 0?d?.(C):p(C)};return(0,mt.useEffect)(()=>{r!==void 0&&p(r)},[r]),(0,pr.jsx)(To.Provider,{value:{value:c,expandMode:l,arrow:{isVisible:u.isVisible??dr.isVisible,position:u.position??dr.position},onChange:v},children:(0,pr.jsx)("div",{ref:t,className:L(`${a}accordion`,{[`${a}accordion--${s}`]:s},o),...m,children:n})})}),Kr=vs;var Oe=require("react"),qr=require("uuid");var we=require("react");var bo=require("react"),Xr=(0,bo.createContext)(null),He=()=>{let e=(0,bo.useContext)(Xr);if(!e)throw new Error("`useCollapse` must be used within a `<Collapse />`");return e},Ro=Xr;var Ur=require("react/jsx-runtime"),xs=({children:e,isOpen:t,onOpen:n,onClose:o,onToggle:r})=>{let i=(0,we.useRef)(null),[l,s]=(0,we.useState)(t??!1),[u,d]=(0,we.useState)(!1),[m,a]=we.Children.toArray(e),c=()=>{s(!0),n?.()},p=()=>{s(!1),o?.()},v=()=>{s(C=>!C),r?.()};return(0,we.useEffect)(()=>{t!==void 0&&s(t),setTimeout(()=>{d(!!t)},100)},[t]),(0,Ur.jsxs)(Ro.Provider,{value:{collapseRef:i,isOpen:l,heightAuto:u,onOpen:c,onClose:p,onToggle:v},children:[m,a]})},_e=xs;var Wr=P(require("clsx")),Qr=require("react");var Yr=require("react/jsx-runtime"),hs=(0,Qr.forwardRef)(({children:e,style:t,className:n},o)=>{let{collapseRef:r,isOpen:i,heightAuto:l}=He(),s=f;return(0,Yr.jsx)("div",{ref:Y(o,r),className:(0,Wr.default)(`${s}collapse`,{[`${s}collapse--is-open`]:i},n),style:{...t,height:i&&l?"auto":i||!i&&l?r.current?.scrollHeight:0},"data-hidden":!i,children:e})}),xe=hs;var ft=require("react");var Cs=(0,ft.forwardRef)(({children:e},t)=>{let{collapseRef:n,onToggle:o}=He(),r=f,i=ft.Children.only(e),{className:l,onClick:s,...u}=i.props;return(0,ft.cloneElement)(i,{ref:t,className:L(`${r}collapse-trigger`,l),onClick:d=>{n.current&&(o(),s?.(d))},...u})}),he=Cs;var yo=require("react/jsx-runtime"),Jr=(0,Oe.createContext)(null),Zr=()=>{let e=(0,Oe.useContext)(Jr);if(!e)throw new Error("`useAccordionItem` must be used within a `<AccordionItem />`");return e},Ts=(0,Oe.forwardRef)((e,t)=>{let{children:n,className:o,value:r,...i}=e,[l]=(0,Oe.useState)((0,qr.v4)()),s=r??l,{value:u,expandMode:d,onChange:m}=pt(),a=f,c=u.includes(s),p=()=>{let v=u.indexOf(s),C=d==="multiple"?[...u]:[];v===-1?C.push(s):C.splice(v,1),m(C)};return(0,yo.jsx)(Jr.Provider,{value:{value:s},children:(0,yo.jsx)("div",{ref:t,className:L(`${a}accordion-item`,o),...i,children:(0,yo.jsx)(_e,{isOpen:c,onToggle:p,children:n})})})}),jr=Ts;var fn=require("react");var en=require("react"),tt=require("react/jsx-runtime"),bs=(0,en.forwardRef)((e,t)=>(0,tt.jsxs)("svg",{ref:t,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,tt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,tt.jsx)("path",{d:"M12 9v4"}),(0,tt.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,tt.jsx)("path",{d:"M12 16h.01"})]})),mr=bs;var tn=require("react"),Gt=require("react/jsx-runtime"),Rs=(0,tn.forwardRef)((e,t)=>(0,Gt.jsxs)("svg",{ref:t,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,Gt.jsx)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,Gt.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})]})),ee=Rs;var on=require("react"),Kt=require("react/jsx-runtime"),ys=(0,on.forwardRef)((e,t)=>(0,Kt.jsxs)("svg",{ref:t,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,Kt.jsx)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,Kt.jsx)("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"})]})),te=ys;var rn=require("react"),vt=require("react/jsx-runtime"),gs=(0,rn.forwardRef)((e,t)=>(0,vt.jsxs)("svg",{ref:t,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,vt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,vt.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,vt.jsx)("path",{d:"M9 12l2 2l4 -4"})]})),fr=gs;var nn=require("react"),xt=require("react/jsx-runtime"),Ss=(0,nn.forwardRef)((e,t)=>(0,xt.jsxs)("svg",{ref:t,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,xt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,xt.jsx)("path",{d:"M18 6l-12 12"}),(0,xt.jsx)("path",{d:"M6 6l12 12"})]})),U=Ss;var an=require("react"),ot=require("react/jsx-runtime"),Ls=(0,an.forwardRef)((e,t)=>(0,ot.jsxs)("svg",{ref:t,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,ot.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,ot.jsx)("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),(0,ot.jsx)("path",{d:"M12 9h.01"}),(0,ot.jsx)("path",{d:"M11 12h1v4h1"})]})),vr=Ls;var sn=require("react"),Xt=require("react/jsx-runtime"),Ms=(0,sn.forwardRef)((e,t)=>(0,Xt.jsxs)("svg",{ref:t,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,Xt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,Xt.jsx)("path",{d:"M12 3a9 9 0 1 0 9 9"})]})),Pe=Ms;var ln=require("react"),ht=require("react/jsx-runtime"),Es=(0,ln.forwardRef)((e,t)=>(0,ht.jsxs)("svg",{ref:t,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,ht.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,ht.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,ht.jsx)("path",{d:"M10 10l4 4m0 -4l-4 4"})]})),xr=Es;var cn=require("react"),rt=require("react/jsx-runtime"),ws=(0,cn.forwardRef)((e,t)=>(0,rt.jsxs)("svg",{ref:t,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,rt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,rt.jsx)("path",{d:"M5 12l14 0"}),(0,rt.jsx)("path",{d:"M5 12l6 6"}),(0,rt.jsx)("path",{d:"M5 12l6 -6"})]})),hr=ws;var un=require("react"),nt=require("react/jsx-runtime"),Ps=(0,un.forwardRef)((e,t)=>(0,nt.jsxs)("svg",{ref:t,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,nt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,nt.jsx)("path",{d:"M5 12l14 0"}),(0,nt.jsx)("path",{d:"M13 18l6 -6"}),(0,nt.jsx)("path",{d:"M13 6l6 6"})]})),Cr=Ps;var dn=require("react"),Ut=require("react/jsx-runtime"),Is=(0,dn.forwardRef)((e,t)=>(0,Ut.jsxs)("svg",{ref:t,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,Ut.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,Ut.jsx)("path",{d:"M5 12l5 5l10 -10"})]})),Tr=Is;var pn=require("react"),Wt=require("react/jsx-runtime"),As=(0,pn.forwardRef)((e,t)=>(0,Wt.jsxs)("svg",{ref:t,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,Wt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,Wt.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"})]})),br=As;var mn=P(require("clsx")),Ct=require("react");var Ds=(0,Ct.forwardRef)(({children:e,color:t="inherit",size:n="md"},o)=>{let r=Ct.Children.only(e);return(0,Ct.cloneElement)(r,{ref:o,...r.props,className:(0,mn.default)(`${f}icon`,{[`${f}icon--${t}`]:t,[`${f}icon--${n}`]:n},r.props.className)})}),w=Ds;var N=require("react/jsx-runtime"),Ns=(0,fn.forwardRef)((e,t)=>{let{as:n="div",children:o,className:r,title:i,subtitle:l,startContent:s,endContent:u,bordered:d=!0,collapsible:m=!0,arrow:a,slotProps:c,...p}=e,v=f,{arrow:C}=pt(),{isOpen:x,onToggle:y}=He(),T={isVisible:a?.isVisible??C.isVisible,position:a?.position??C.position},b={cursor:"pointer"},R=g=>{g.stopPropagation(),y()},h=(0,N.jsxs)(n,{ref:t,className:L(`${v}accordion-header`,{[`${v}accordion-header--collapsible`]:m},{[`${v}accordion-header--bordered`]:d},r),...p,children:[(s!==void 0||T.isVisible&&T.position==="start")&&(0,N.jsx)("div",{...c?.startContent,className:L(`${v}accordion-header__start-content`,c?.startContent?.className),children:T.isVisible&&T.position==="start"?(0,N.jsxs)(N.Fragment,{children:[!m&&a?.isVisible===void 0?(0,N.jsx)("div",{style:{width:18,height:18}}):(0,N.jsx)(w,{color:"secondary",children:x?(0,N.jsx)(te,{style:b,onClick:R}):(0,N.jsx)(ee,{style:b,onClick:R})}),s]}):s}),(0,N.jsx)("div",{...c?.content,className:L(`${v}accordion-header__content`,c?.content?.className),children:i!==void 0||l!==void 0?(0,N.jsxs)(N.Fragment,{children:[i!==void 0&&(0,N.jsx)("div",{...c?.title,className:L(`${v}accordion-header__title`,c?.title?.className),children:i}),l!==void 0&&(0,N.jsx)("div",{...c?.subtitle,className:L(`${v}accordion-header__subtitle`,c?.subtitle?.className),children:l})]}):o}),(u!==void 0||T.isVisible&&T.position==="end")&&(0,N.jsx)("div",{...c?.endContent,className:L(`${v}accordion-header__end-content`,c?.endContent?.className),children:T.isVisible&&T.position==="end"?(0,N.jsxs)(N.Fragment,{children:[u,!m&&a?.isVisible===void 0?(0,N.jsx)("div",{style:{width:18,height:18}}):(0,N.jsx)(w,{color:"secondary",children:x?(0,N.jsx)(te,{style:b,onClick:R}):(0,N.jsx)(ee,{style:b,onClick:R})})]}):u})]});return m?(0,N.jsx)(he,{children:h}):h}),vn=Ns;var xn=require("react");var go=require("react/jsx-runtime"),ks=(0,xn.forwardRef)(({children:e,className:t,...n},o)=>(0,go.jsx)(xe,{children:(0,go.jsx)("div",{ref:o,children:(0,go.jsx)("div",{className:L(`${f}accordion-body`,t),...n,children:e})})})),hn=ks;var Cn=require("react");var So=require("react/jsx-runtime"),Vs=(0,Cn.forwardRef)(({children:e,className:t,...n},o)=>(0,So.jsx)(xe,{children:(0,So.jsx)("div",{ref:o,children:(0,So.jsx)("div",{className:L(`${f}accordion-content`,t),...n,children:e})})})),Tn=Vs;var bn=require("react"),yn=require("react/jsx-runtime"),$s=(0,bn.forwardRef)(({children:e},t)=>(0,yn.jsx)(he,{ref:t,children:e})),Rn=$s;var J=require("react");var Fe=require("react");var Sn=require("react");var Lo=require("react"),Hs=typeof window<"u"?Lo.useLayoutEffect:Lo.useEffect,gn=Hs;function _s(e){let t=(0,Sn.useRef)(e);gn(()=>{t.current=e},[e])}var Rr=_s;function Ln(e,t){let n=(0,Fe.useCallback)(()=>{if(typeof window>"u")return t;try{let s=window.localStorage.getItem(e);return s?Os(s):t}catch(s){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,s),t}},[t,e]),[o,r]=(0,Fe.useState)(n),i=(0,Fe.useCallback)(s=>{typeof window>"u"&&console.warn(`Tried setting localStorage key \u201C${e}\u201D even though environment is not a client`);try{let u=s instanceof Function?s(o):s;window.localStorage.setItem(e,JSON.stringify(u)),r(u),window.dispatchEvent(new Event("local-storage"))}catch(u){console.warn(`Error setting localStorage key \u201C${e}\u201D:`,u)}},[e,o]);(0,Fe.useEffect)(()=>{r(n())},[]);let l=(0,Fe.useCallback)(()=>{r(n())},[n]);return Rr("storage",l),Rr("local-storage",l),[o,i]}function Os(e){try{return e==="undefined"?void 0:JSON.parse(e??"")}catch{return}}var Mo=require("react"),Mn=e=>{let t=(0,Mo.useRef)();return(0,Mo.useEffect)(()=>{t.current=e}),t.current};var En=require("react");function Fs({defaultValue:e}={}){let[t,n]=(0,En.useState)(e||!1);return{isOpen:t,onOpen:()=>{n(!0)},onClose:()=>{n(!1)},onToggle:()=>{n(l=>!l)}}}var ze=Fs;var Pn=require("react"),wn=["mousedown","touchstart"],zs=(e,t)=>{(0,Pn.useEffect)(()=>{let n=o=>{!e.current||e.current.contains(o.target)||t(o)};return wn.forEach(o=>document.addEventListener(o,n)),()=>{wn.forEach(o=>document.removeEventListener(o,n))}},[e,t])},Eo=zs;var Ce=require("react"),In=e=>{let[t,n]=(0,Ce.useState)(1),o=(0,Ce.useMemo)(()=>t+1<=e,[t,e]),r=(0,Ce.useMemo)(()=>t-1>=1,[t]),i=(0,Ce.useCallback)(d=>{let m=d instanceof Function?d(t):d;if(m>=1&&m<=e){n(m);return}throw new Error("Step not valid")},[e,t]),l=(0,Ce.useCallback)(()=>{o&&n(d=>d+1)},[o]),s=(0,Ce.useCallback)(()=>{r&&n(d=>d-1)},[r]),u=(0,Ce.useCallback)(()=>{n(1)},[]);return[t,{goToNextStep:l,goToPrevStep:s,canGoToNextStep:o,canGoToPrevStep:r,setStep:i,reset:u}]};var wo=require("react");function Bs(e,t){let[n,o]=(0,wo.useState)(e),r=typeof t=="number"?t:t?.delay??500;return(0,wo.useEffect)(()=>{let i=setTimeout(()=>{o(e),typeof t!="number"&&t?.callback?.()},r);return()=>{clearTimeout(i)}},[e,r]),n}var An=Bs;var Po=require("react");function Gs(e){let t=i=>typeof window<"u"?window.matchMedia(i).matches:!1,[n,o]=(0,Po.useState)(t(e));function r(){o(t(e))}return(0,Po.useEffect)(()=>{let i=window.matchMedia(e);return r(),i.addListener?i.addListener(r):i.addEventListener("change",r),()=>{i.removeListener?i.removeListener(r):i.removeEventListener("change",r)}},[e]),n}var Dn=Gs;var Nn=require("@tanstack/react-virtual"),kn=require("react");function Ks(e){let{parentRef:t,total:n,count:o=0,overscan:r=5,hasNextPage:i,isFetchingNextPage:l,onFetchNextPage:s,estimateSize:u}=e,d=(0,Nn.useVirtualizer)({count:n||(i?o+1:o),getScrollElement:()=>t.current,estimateSize:u,overscan:r});return(0,kn.useEffect)(()=>{if(!s)return;let[m]=[...d.getVirtualItems()].reverse();m&&m.index>=o-1&&i&&!l&&s?.()},[i,s,o,l,d.getVirtualItems()]),{scrollOffset:d.scrollOffset,hasNextPage:i,getVirtualItems:d.getVirtualItems,getTotalSize:d.getTotalSize,scrollToIndex:(m,a)=>{d.scrollToIndex(m,a)},scrollToOffset:(m,a)=>{d.scrollToOffset(m,a)}}}var Be=Ks;var Te=require("react");var yr=(r=>(r[r.IDLE=0]="IDLE",r[r.LOADING=1]="LOADING",r[r.SUCCESS=2]="SUCCESS",r[r.ERROR=3]="ERROR",r))(yr||{});var Vn=e=>(t,n,o)=>{async function r(i,l){if(l.length===0)return i;let s=[];for(let d=0;d<l.length;d++){let m=l[d],a=m+1,c=await e.query({page:a}),p=e.onRefetchedPage(c,m);if(i.pages[m]=p.page,s.push(m),!p.isSync)break}let u=l.filter(d=>!s.includes(d));return r(i,u.length===0?[]:[...u,...o])}return r({...t},n)};function $n(e,t=[]){let[n,o]=(0,Te.useState)({pages:[]}),[r,i]=(0,Te.useState)(),[l,s]=(0,Te.useState)(e.disabled?0:1),[u,d]=(0,Te.useState)(!1),[m,a]=(0,Te.useState)(!1),[c,p]=(0,Te.useState)(!0),[v,C]=(0,Te.useState)(!1),x=async()=>{try{s(1),i(void 0),C(!0);let R=n.pages.length-1,h=e.getNextPage(n.pages[R],n.pages),g=await e.query({page:h}),S={pages:[...n.pages,g]};o(S);let M=S.pages.length-1,E=e.getNextPage(S.pages[M],S.pages);p(E!==void 0),C(!1),s(2),e.onSuccess?.(S)}catch(R){i(R),s(3),e.onError?.(R)}finally{C(!1)}},y=R=>{let h={pages:[]};n.pages.forEach((g,S)=>{let M=R(g,S);h[S]=M}),o(h)},T=async(R={})=>{try{s(1),i(void 0),a(!1);let h=[],g=[];R.refetchPage?n.pages.forEach((M,E)=>{R.refetchPage(M,E)?h.push(E):g.push(E)}):R.refetchPages?(h=R.refetchPages(n.pages),g=n.pages.map((M,E)=>E).filter(M=>!h.includes(M))):h=n.pages.map((M,E)=>E);let S;if(R.onRefetchedPage)S=await Vn({query:e.query,onRefetchedPage:R.onRefetchedPage})(n,h,g);else{S={...n};for(let M=0;M<h.length;M++){let E=h[M],k=E+1,z=await e.query({page:k});S.pages[E]=z}}o(S),s(2),e.onSuccess?.(S)}catch(h){i(h),s(3),e.onError?.(h)}finally{a(!0)}},b=()=>{o({pages:[]}),i(void 0),s(0),d(!1),a(!1),p(!0),C(!0)};return(0,Te.useEffect)(()=>{if(e.disabled)return;(async()=>{try{s(1),i(void 0),C(!0);let g=await e.query({page:void 0}),S={pages:[g]};o(S);let M=e.getNextPage(g,[g]);p(M!==void 0),C(!1),s(2),e.onSuccess?.(S)}catch(h){i(h),s(3),e.onError?.(h)}finally{u||d(!0),C(!1)}})()},[...t,e.disabled]),{data:n,error:r,status:l,isLoading:l===1,isSuccess:l===2,isError:l===3,isFetching:l===1&&!u,isFetched:u,isRefetching:l===1&&u&&!m,isRefetched:m,hasNextPage:c,isFetchingNextPage:v,fetchNextPage:x,unstable_mutate:y,unstable_refetch:T,unstable_remove:b}}var me=require("react");function Hn(e,t=[]){let[n,o]=(0,me.useState)(),[r,i]=(0,me.useState)(),[l,s]=(0,me.useState)(e.disabled?0:1),u=(0,me.useRef)(!1),d=(0,me.useRef)(!1),[m,a]=(0,me.useState)(u.current),[c,p]=(0,me.useState)(d.current),v=async()=>{try{s(1),i(void 0),d.current=!1,p(d.current);let y=await e.query(),T=e.select!==void 0?e.select(y):y;o(T),s(2),e.onSuccess?.(T)}catch(y){i(y),s(3),e.onError?.(y)}finally{d.current=!0,p(d.current)}},C=y=>{o(y)},x=()=>{o(void 0),i(void 0),s(0),u.current=!1,d.current=!1,a(u.current),p(d.current)};return(0,me.useEffect)(()=>{if(e.disabled)return;(async()=>{try{s(1),i(void 0);let T=await e.query(),b=e.select!==void 0?e.select(T):T;o(b),s(2),e.onSuccess?.(b)}catch(T){i(T),s(3),e.onError?.(T)}finally{u.current||(u.current=!0,a(u.current))}})()},[...t,e.disabled]),{data:n,error:r,status:l,isLoading:l===1,isSuccess:l===2,isError:l===3,isFetching:l===1&&!m,isFetched:m,isRefetching:l===1&&m&&!c,isRefetched:c,mutate:C,refetch:v,remove:x}}var Tt=require("react");var gr=(r=>(r[r.IDlE=0]="IDlE",r[r.LOADING=1]="LOADING",r[r.SUCCESS=2]="SUCCESS",r[r.ERROR=3]="ERROR",r))(gr||{});var _n=e=>{let[t,n]=(0,Tt.useState)(0),[o,r]=(0,Tt.useState)(),[i,l]=(0,Tt.useState)(),[s,u]=(0,Tt.useState)(!1),[d,m]=(0,Tt.useState)(!1);return{isLoading:s,isError:d,status:t,data:o,error:i,mutate:async c=>{try{u(!0),n(1);let p=await e.mutation(c);return r(p),n(2),{isError:()=>!1,isOK:()=>!0,data:p}}catch(p){return l(p.message),m(!0),n(3),{isError:()=>!0,isOK:()=>!1,error:p.message}}finally{u(!1)}}}};var Ge=require("react"),Xs={width:0,height:0};function Us(e){let t=(0,Ge.useRef)(0),[n,o]=(0,Ge.useState)(Xs),r=(0,Ge.useMemo)(()=>typeof window<"u"?new ResizeObserver(i=>{let l=i[0];l&&(cancelAnimationFrame(t.current),t.current=requestAnimationFrame(()=>{(e.ref?.current??e.target)&&(e.callback?.(n),o({width:l.contentRect.width,height:l.contentRect.height}))}))}):null,[]);return(0,Ge.useEffect)(()=>{let i=e.ref?.current??e.target;return i&&r?.observe(i),()=>{r?.disconnect(),t.current&&cancelAnimationFrame(t.current)}},[e.ref?.current,e.target]),n}var bt=Us;var On=require("react");function Sr(){return typeof window.ResizeObserver<"u"}function Ws(e){let{ref:t,onResize:n}=e;(0,On.useEffect)(()=>{let o=t?.current;if(o)if(Sr()){let r=new window.ResizeObserver(i=>{i.length&&n()});return r.observe(o),()=>{o&&r.unobserve(o)}}else return window.addEventListener("resize",n),()=>{window.removeEventListener("resize",n)}},[t,n])}var Fn=Ws;var Rt=require("react");function Qs(e){let t=(0,Rt.useRef)(null);return(0,Rt.useLayoutEffect)(()=>{t.current=e},[e]),(0,Rt.useCallback)((...n)=>{let o=t.current;return o(...n)},[])}var Qt=Qs;var yt=require("react");function Ys(e){let[t,n]=(0,yt.useState)(e),o=(0,yt.useRef)(null),r=Qt(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}t===l.value?r():n(l.value)});(0,yt.useLayoutEffect)(()=>{o.current&&r()});let i=Qt(l=>{o.current=l(t),r()});return[t,i]}var zn=Ys;var Bn=P(require("clsx")),Gn=require("react");var Io=require("react"),Yt=(0,Io.createContext)(null),Ao=()=>(0,Io.useContext)(Yt);var Ke=require("react/jsx-runtime"),Ie=(0,Gn.forwardRef)(({as:e="button",children:t,className:n,role:o="presentation",variant:r,color:i,size:l,iconOnly:s,startContent:u,endContent:d,block:m,loading:a,disabled:c,type:p="button",...v},C)=>{let x=Ao(),y=f,T=r||"filled",b=i||"primary",R=l||"md",h=c||!1;return T=r??x?.variant??T,b=i??x?.color??b,R=l??x?.size??R,h=c??x?.disabled??h,(0,Ke.jsxs)(e,{ref:C,className:(0,Bn.default)(`${y}button`,{[`${y}button--${T}`]:T,[`${y}button--${b}`]:b,[`${y}button--${R}`]:R,[`${y}button--block`]:m,[`${y}button--icon-only`]:s,[`${y}button--disabled`]:h},n),role:o,disabled:h,type:p,...v,children:[(0,Ke.jsx)("div",{className:`${y}overlay`}),(0,Ke.jsx)("div",{className:`${y}outline`}),a?(0,Ke.jsx)(w,{children:(0,Ke.jsx)(Pe,{className:`${y}animation-spin`})}):u,(0,Ke.jsx)("div",{className:`${y}button__content`,children:t}),d]})});var Kn=P(require("clsx")),Xn=require("react");var Lr=require("react/jsx-runtime"),Un=(0,Xn.forwardRef)(({children:e,direction:t="row",variant:n="filled",color:o="primary",size:r="md",disabled:i,className:l,...s},u)=>{let d=f;return(0,Lr.jsx)(Yt.Provider,{value:{direction:t,variant:n,color:o,size:r,disabled:i},children:(0,Lr.jsx)("div",{ref:u,className:(0,Kn.default)(`${d}button-group`,{[`${d}button-group--${t}`]:t},l),...s,children:e})})});var Wn=P(require("clsx")),Qn=require("react");var Xe=require("react/jsx-runtime"),qs=(0,Qn.forwardRef)(({as:e="div",children:t,className:n,variant:o="filled",color:r="primary",size:i="md",startContent:l,endContent:s,closable:u,onClose:d,...m},a)=>{let c=f,p=v=>{v.stopPropagation(),u&&d?.()};return(0,Xe.jsxs)(e,{ref:a,className:(0,Wn.default)(`${c}chip`,{[`${c}chip--${o}`]:o,[`${c}chip--${r}`]:r,[`${c}chip--${i}`]:i,[`${c}chip--closable`]:u},n),...m,children:[(0,Xe.jsx)("div",{className:`${c}overlay`}),(0,Xe.jsx)("div",{className:`${c}outline`}),l,t,s,u&&(0,Xe.jsx)("div",{className:`${c}chip__closable`,onClick:p,children:(0,Xe.jsx)(w,{children:(0,Xe.jsx)(U,{})})})]})}),gt=qs;var se=require("react");var Yn=require("react"),qn=require("react-dom");var Jn=require("react/jsx-runtime"),Js=(0,Yn.forwardRef)(({children:e,container:t},n)=>(0,qn.createPortal)((0,Jn.jsx)("div",{ref:n,className:`${f}portal`,children:e}),t||document.body)),St=Js;var Zn=P(require("clsx")),jn=require("react"),ea=require("react-transition-group"),ta=require("react/jsx-runtime"),Zs=(0,jn.forwardRef)((e,t)=>{let{children:n,className:o,nodeRef:r,name:i,isOpen:l,enter:s=0,leave:u=0,mountOnEnter:d,unmountOnExit:m,onExited:a}=e;return(0,ta.jsx)(ea.CSSTransition,{nodeRef:r,in:l,appear:!0,timeout:{enter:s,exit:u},mountOnEnter:d,unmountOnExit:m,classNames:(0,Zn.default)(i,o),onExited:a,children:n})}),be=Zs;var Do=require("react"),oa=(0,Do.createContext)(null),q=()=>{let e=(0,Do.useContext)(oa);if(!e)throw new Error("`usePopover` must be used within a `<Popover />`");return e},ra=oa;var qt=require("react/jsx-runtime"),js=e=>{let{children:t,target:n,autoClose:o=!0,triggerClosable:r=!0,isOpen:i,onOpen:l,onClose:s,onToggle:u,onAfterClose:d}=e,m=(0,se.useRef)(null),a=(0,se.useRef)(null),[c,p]=(0,se.useState)(e.isOpen||!1),[v,C]=se.Children.toArray(t),x=f,y=()=>{i!==void 0?l?.():p(!0)},T=()=>{i!==void 0?s?.():p(!1)},b=()=>{i!==void 0?u?.():p(R=>!R)};return(0,se.useEffect)(()=>{p(i||!1)},[i]),(0,qt.jsxs)(ra.Provider,{value:{triggerRef:m,contentRef:a,target:n,isOpen:c,autoClose:o,triggerClosable:r,onOpen:y,onClose:T,onToggle:b},children:[v,(0,qt.jsx)(be,{nodeRef:a,isOpen:c,enter:300,leave:150,name:`${x}popover`,unmountOnExit:!0,onExited:d,children:(0,qt.jsx)(St,{children:(0,se.cloneElement)(se.Children.only(C),{...C.props,ref:a})})})]})},Lt=js;var Re=require("react");var aa=require("react/jsx-runtime");function na(e){return e==null?null:e.scrollHeight>e.clientHeight?e:na(e.parentNode)}var el=(0,Re.forwardRef)((e,t)=>{let{children:n,style:o,className:r,onClick:i,...l}=e,{triggerRef:s,contentRef:u,target:d,onClose:m}=q(),a=f,c=(0,Re.useRef)(null),[p,v]=(0,Re.useState)({position:"absolute",top:0,left:0,visibility:"hidden"}),C=na(s.current)||document.body;bt({target:C,callback:()=>{y()}}),Eo(u,T=>{let b=s.current;!b||b.contains(T.target)||m()});let x=T=>{T.stopPropagation(),i?.(T)},y=(0,Re.useCallback)(()=>{let T=u.current?.getBoundingClientRect(),b=s.current?.getBoundingClientRect();if(!T||!b||!C)return;let R={innerWidth:window.innerWidth,innerHeight:window.innerHeight},h={width:b.width,height:b.height,top:b.top+window.scrollY,bottom:b.top+b.height+window.scrollY,left:b.left+window.scrollX,right:b.left+b.width+window.scrollX},g=h.left+T.width>R.innerWidth,S=h.top+T.height>R.innerHeight+window.scrollY,M={...d&&{width:h.width,minWidth:"auto"},position:"absolute",top:S?void 0:h.bottom,bottom:S?R.innerHeight-h.top:void 0,left:g?void 0:h.left,right:g?R.innerWidth-h.right:void 0,visibility:void 0};v(M)},[]);return(0,Re.useEffect)(()=>(y(),C.addEventListener("scroll",y),window.addEventListener("orientationchange",y),()=>{C.removeEventListener("scroll",y),window.removeEventListener("orientationchange",y)}),[]),(0,aa.jsx)("div",{ref:Y(c,t),className:L(`${a}popover`,r),style:{...o,...p},onClick:x,...l,children:n})}),Mt=el;var Et=require("react");var tl=(0,Et.forwardRef)((e,t)=>{let{children:n,onClick:o,...r}=e,{isOpen:i,triggerRef:l,triggerClosable:s,onOpen:u,onClose:d}=q(),m=Et.Children.only(typeof n=="function"?n(i):n),a=c=>{c.preventDefault(),s&&i?d():u(),o?.(c),m.props.onClick?.(c)};return(0,Et.cloneElement)(m,{...m.props,...r,ref:Y(t,l),onClick:a})}),wt=tl;var G=require("react/jsx-runtime"),ol=({className:e,title:t,subtitle:n,icon:o,status:r,extra:i,size:l="md",...s})=>{let u=f;return(0,G.jsxs)("div",{className:L(`${u}result`,{[`${u}result--${r}`]:r,[`${u}result--${l}`]:l},e),...s,children:[o?(0,G.jsx)("div",{className:`${u}result__icon`,children:o}):r?(0,G.jsx)("div",{className:`${u}result__icon`,children:r==="sucess"?(0,G.jsx)(w,{children:(0,G.jsx)(fr,{})}):r==="info"?(0,G.jsx)(w,{children:(0,G.jsx)(vr,{})}):r==="warning"?(0,G.jsx)(w,{children:(0,G.jsx)(mr,{})}):r==="danger"?(0,G.jsx)(w,{children:(0,G.jsx)(xr,{})}):null}):null,(t||n)&&(0,G.jsxs)("div",{className:`${u}result__content`,children:[t&&(0,G.jsx)("div",{className:`${u}result__title`,children:t}),n&&(0,G.jsx)("div",{className:`${u}result__subtitle`,children:n})]}),i&&(0,G.jsx)("div",{className:`${u}result__extra`,children:i})]})},Ae=ol;var Pt=require("react");var ia=require("react");var sa=require("react/jsx-runtime"),rl=(0,ia.forwardRef)(({as:e="div",children:t,className:n,size:o="md",...r},i)=>{let l=f;return(0,sa.jsx)(e,{ref:i,className:L(`${l}list`,{[`${l}list--${o}`]:o},n),...r,children:t})}),X=rl;var ca=require("react");var la=require("react");var le=require("react/jsx-runtime"),nl=(0,la.forwardRef)(({as:e="div",children:t,className:n,title:o,subtitle:r,startContent:i,endContent:l,level:s=1,hoverable:u,selected:d,disabled:m,slotProps:a,style:c,onClick:p,...v},C)=>{let x=f,y=T=>{p?.(T)};return(0,le.jsxs)(e,{ref:C,className:L(`${x}list-item`,{[`${x}list-item--hoverable`]:u,[`${x}list-item--selected`]:d,[`${x}list-item--disabled`]:m},n),style:{paddingLeft:s<=1?`var(--${x}list-item-padding-x)`:`calc(${s} * var(--${x}list-item-padding-level))`,...c},onClick:y,...v,children:[(u||d)&&(0,le.jsx)("div",{className:`${x}overlay`}),i!==void 0&&(0,le.jsx)("div",{...a?.startContent,className:L(`${x}list-item__start-content`,a?.startContent?.className),children:i}),(0,le.jsx)("div",{...a?.content,className:L(`${x}list-item__content`,a?.content?.className),children:o!==void 0||r!==void 0?(0,le.jsxs)(le.Fragment,{children:[o!==void 0&&(0,le.jsx)("span",{...a?.title,className:L(`${x}list-item__title`,a?.title?.className),children:o}),r!==void 0&&(0,le.jsx)("span",{...a?.subtitle,className:L(`${x}list-item__subtitle`,a?.subtitle?.className),children:r})]}):t}),l!==void 0&&(0,le.jsx)("div",{...a?.endContent,className:L(`${x}list-item__end-content`,a?.endContent?.className),children:l})]})}),$=nl;var O=require("react/jsx-runtime"),al=(0,ca.forwardRef)(({children:e,startContent:t,endContent:n,expandVisible:o=!0,expandPosition:r="end",isOpen:i,onOpen:l,onClose:s,onToggle:u,...d},m)=>{let a=i!==void 0?{isOpen:i,onOpen:l,onClose:s,onToggle:u}:ze();return(0,O.jsx)("div",{className:`${f}list-group`,children:(0,O.jsxs)(_e,{...a,children:[(0,O.jsx)(he,{children:(0,O.jsx)($,{ref:m,startContent:o&&r==="start"?(0,O.jsxs)(O.Fragment,{children:[(0,O.jsx)(w,{children:a.isOpen?(0,O.jsx)(te,{}):(0,O.jsx)(ee,{})}),t]}):t,endContent:o&&r==="end"?(0,O.jsxs)(O.Fragment,{children:[n,(0,O.jsx)(w,{children:a.isOpen?(0,O.jsx)(te,{}):(0,O.jsx)(ee,{})})]}):n,...d})}),(0,O.jsx)(xe,{children:(0,O.jsx)("div",{children:(0,O.jsx)(X,{children:e})})})]})})}),ua=al;var da=require("react");var Ue=require("react/jsx-runtime"),il=(0,da.forwardRef)(({as:e="div",title:t,startContent:n,endContent:o,bordered:r=!0,level:i=1,hoverable:l,selected:s,disabled:u,className:d,style:m,...a},c)=>{let p=f;return(0,Ue.jsxs)(e,{ref:c,className:L(`${p}list-subheader ${p}list-item`,{[`${p}list-subheader--bordered`]:r,[`${p}list-item--hoverable`]:l,[`${p}list-item--selected`]:s,[`${p}list-item--disabled`]:u},d),style:{paddingLeft:i<=1?`var(--${p}list-item-padding-x)`:`calc(${i} * var(--${p}list-item-padding-level))`,...m},...a,children:[l&&(0,Ue.jsx)("div",{className:`${p}overlay`}),n&&(0,Ue.jsx)("div",{className:`${p}list-item__start-content`,children:n}),(0,Ue.jsx)("div",{className:`${p}list-item__content`,children:(0,Ue.jsx)("span",{className:`${p}list-item__title`,children:t})}),o&&(0,Ue.jsx)("div",{className:`${p}list-item__end-content`,children:o})]})}),pa=il;var ma=require("react"),fa=require("react-custom-scrollbars-2");var at=require("react/jsx-runtime"),sl=(0,ma.forwardRef)(({children:e,autoHide:t=!1,autoHeight:n=!1,style:o},r)=>{let i=f,l=a=>(0,at.jsx)("div",{...a,className:L(`${i}scroll-area__view`,a.className)}),s=a=>(0,at.jsx)("div",{...a,className:L(`${i}scroll-area__track ${i}scroll-area__track--horizontal`,a.className),onClick:c=>{c.stopPropagation(),a.onClick?.(c)}}),u=a=>(0,at.jsx)("div",{...a,className:L(`${i}scroll-area__track ${i}scroll-area__track--vertical`,a.className),onClick:c=>{c.stopPropagation(),a.onClick?.(c)}}),d=a=>(0,at.jsx)("div",{...a,className:L(`${i}scroll-area__thumb ${i}scroll-area__thumb--horizontal`,a.className)}),m=a=>(0,at.jsx)("div",{...a,className:L(`${i}scroll-area__thumb ${i}scroll-area__thumb--vertical`,a.className)});return(0,at.jsx)(fa.Scrollbars,{autoHide:t,className:`${i}scroll-area`,renderTrackHorizontal:s,renderTrackVertical:u,renderThumbHorizontal:d,renderThumbVertical:m,renderView:l,autoHeight:n,style:o,ref:a=>{a&&Bt(r,a.container.firstElementChild)},children:e})}),B=sl;var No=require("react"),va=(0,No.createContext)(null),ko=()=>{let e=(0,No.useContext)(va);if(!e)throw new Error("`useAutocomplete` must be used within a `<Autocomplete />`");return e},xa=va;var Jt=require("react/jsx-runtime"),ll=()=>{let{data:e,values:t,offset:n,setOffset:o,keyField:r,textField:i,onItemSelect:l,renderItem:s}=ko(),u=(0,Pt.useRef)(null),{isOpen:d}=q(),m=a=>{l(a),o(u.current?.scrollHeight||0)};return(0,Pt.useEffect)(()=>{d&&u.current?.scrollTo({top:n})},[d]),(0,Jt.jsx)(B,{ref:u,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Jt.jsx)(X,{children:s?e.map(a=>(0,Jt.jsx)(Pt.Fragment,{children:s(a,{title:void 0,selected:t.includes(a[r]),hoverable:!0,onClick:()=>m(a)})},a[r])):e.map(a=>(0,Jt.jsx)($,{title:a[i],selected:t.includes(a[r]),hoverable:!0,onClick:()=>m(a)},a[r]))})})},ha=ll;var It=require("react");var Mr=e=>Array.isArray(e)?e:e!==null?[e]:[],Zt=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var We=require("react/jsx-runtime"),cl=()=>{let{data:e,values:t,keyField:n,textField:o,virtual:r,onItemSelect:i,renderItem:l}=ko(),s=(0,It.useRef)(null),u=Be({...r,count:e.length,parentRef:s}),{isOpen:d}=q(),m=a=>{i(a)};return(0,It.useEffect)(()=>{if(!d)return;let a=Zt(t),c=e.findIndex(p=>p[n]===a);c!==-1&&u.scrollToIndex(c,{align:"start"})},[d]),r?(0,We.jsx)(B,{ref:s,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,We.jsx)(X,{children:(0,We.jsx)("div",{style:{height:`${u.getTotalSize()}px`,width:"100%",position:"relative"},children:u.getVirtualItems().map(a=>{let c=a.index>e.length-1,p=e[a.index];return c?(0,We.jsx)($,{title:r.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?l?(0,We.jsx)(It.Fragment,{children:l(p,{title:void 0,selected:t.includes(p[n]),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,We.jsx)($,{title:p[o],selected:t.includes(p[n]),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,We.jsx)($,{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},Ca=cl;var I=require("react/jsx-runtime"),ul=e=>{let{data:t,value:n,keyField:o="key",textField:r="text",isMultiple:i=!1,disabled:l,loading:s,clearable:u=!0,disclosure:d,virtual:m,placeholder:a,className:c,style:p,color:v="inherit",variant:C="outlined",size:x="md",startContent:y,endContent:T,onFilterChange:b,renderItem:R,renderNoData:h}=e,g=d!==void 0?d:ze(),S=f,M=(0,J.useRef)(null),[E,k]=(0,J.useState)(""),[z,ne]=(0,J.useState)(""),[Q,_]=(0,J.useState)(!1),[ae,Le]=(0,J.useState)(!1),ie=(0,J.useMemo)(()=>Mr(n),[n]),Me=(0,J.useMemo)(()=>t.filter(D=>ie.includes(D[o])),[t,ie]),[zt,lr]=(0,J.useState)(0),vo=()=>{M?.current?.focus()},dt=D=>{if(e.isMultiple){let pe=t.filter(Ee=>D.includes(Ee[o]));e.onChange?.(pe),e.onValueChange?.(D)}else{let pe=Zt(D),Ee=null;pe!==void 0&&(Ee=t.find(xo=>xo[o]===pe)??null),e.onChange?.(Ee),e.onValueChange?.(pe)}},cr=D=>{D.stopPropagation(),_(!0),ne(""),e.isMultiple?(e.onChange?.([]),e.onValueChange?.([])):(e.onChange?.(null),e.onValueChange?.(null)),_(!1)},V=D=>{!g.isOpen&&g.onOpen(),_(!0),ne(D.target.value),b?.(D.target.value)},j=()=>{if(e.isMultiple){let D=[...ie].slice(0,-1);dt(D)}},de=D=>{e.isMultiple&&D.key==="Backspace"&&z===""&&j()},et=D=>{let pe=D[o];if(e.isMultiple){let Ee=[...ie],xo=ie.indexOf(pe);xo===-1?Ee.push(pe):Ee.splice(xo,1),dt(Ee)}else Zt(ie)!==pe&&dt([pe]);Q&&k(z),_(!1),M.current?.focus(),e.isMultiple||g.onClose()},ns=()=>{g.onOpen(),Le(!0)},as=()=>{if(g.onClose(),!e.isMultiple&&Q){let D=Me[0];D!==void 0?(ne(D[r]),b?.(E)):(ne(""),b?.(E)),_(!1)}};return(0,J.useEffect)(()=>{if(!Q&&!e.isMultiple){let D=Me[0];D!==void 0&&ne(D[r])}},[Me]),(0,J.useEffect)(()=>{Mr(n)[0]===void 0&&(ne(""),b?.(""))},[n]),(0,I.jsx)(xa.Provider,{value:{data:t,values:ie,keyField:o,textField:r,isMultiple:i,virtual:m,onChange:dt,onItemSelect:et,offset:zt,setOffset:lr,renderItem:R},children:(0,I.jsxs)(Lt,{target:!0,...g,isOpen:g.isOpen,onOpen:ns,onClose:as,autoClose:"outside",children:[(0,I.jsx)(wt,{children:(0,I.jsxs)("div",{className:L(`${S}input ${S}input--filterable`,{[`${S}input--${v}`]:v,[`${S}input--${C}`]:C,[`${S}input--${x}`]:x,[`${S}input--focus`]:ae,[`${S}input--disabled`]:l,[`${S}input--clearable`]:u},c),style:p,onClick:vo,onFocus:()=>{Le(!0)},onBlur:()=>{Le(!1)},children:[(0,I.jsx)("div",{className:`${S}overlay`}),(0,I.jsx)("div",{className:`${S}outline`}),y&&(0,I.jsx)("div",{className:`${S}input__start-content`,children:y}),(0,I.jsx)("div",{className:`${S}input__content`,children:i&&Me.length?(0,I.jsxs)("div",{className:`${S}input__chips`,children:[Me.map(D=>(0,I.jsx)(gt,{variant:"flat",color:"secondary",size:"xs",closable:!0,onClose:()=>et(D),children:D[r]},D[o])),(0,I.jsx)("input",{ref:M,value:z,placeholder:a,disabled:l,title:z,onChange:V,onKeyDown:de})]}):(0,I.jsx)("input",{ref:M,className:`${S}input__field`,value:z,placeholder:a,disabled:l,title:z,onChange:V})}),(0,I.jsxs)("div",{className:`${S}input__end-content`,children:[T,s?(0,I.jsx)(w,{children:(0,I.jsx)(Pe,{className:`${S}animation-spin`})}):u?(0,I.jsx)("div",{className:`${S}input__clearable`,children:(0,I.jsx)(Ie,{type:"button",variant:"text",color:"secondary",size:"xs",iconOnly:!0,onClick:cr,children:(0,I.jsx)(w,{children:(0,I.jsx)(U,{})})})}):null,(0,I.jsx)("div",{style:{pointerEvents:"none"},children:(0,I.jsx)(w,{color:"secondary",children:g.isOpen?(0,I.jsx)(te,{}):(0,I.jsx)(ee,{})})})]})]})}),(0,I.jsx)(Mt,{style:{maxHeight:"200px"},children:t.length===0?(0,I.jsx)(I.Fragment,{children:h?h({status:"info",title:"No data",size:"sm",onClick:()=>{g.onClose()}}):(0,I.jsx)(Ae,{status:"info",title:"No data",size:"sm",onClick:g.onClose})}):m?(0,I.jsx)(Ca,{}):(0,I.jsx)(ha,{})})]})})},Ta=ul;var ba=P(require("clsx")),it=require("react");var jt=require("react/jsx-runtime"),dl=(0,it.forwardRef)((e,t)=>{let{children:n,className:o,isOpen:r,placement:i="center",variant:l="opaque",closable:s=!0,scrollable:u=!1,scrollArea:d=!1,onClose:m,...a}=e,c=f,p=(0,it.useRef)(null),v=()=>{s&&m()};return(0,it.useEffect)(()=>(r&&(document.body.style.overflow="hidden",p.current&&(p.current.style.overflow="")),()=>{p.current&&(p.current.style.overflow="hidden"),document.body.style.overflow=""}),[r]),(0,it.useEffect)(()=>{let C=x=>{if(x.key==="Escape"){if(!s)return;m()}};return document.addEventListener("keydown",C),()=>{document.removeEventListener("keydown",C)}},[s]),(0,jt.jsx)(be,{nodeRef:p,isOpen:r,name:`${f}backdrop`,enter:300,leave:300,mountOnEnter:!0,unmountOnExit:!0,children:(0,jt.jsx)(St,{children:(0,jt.jsx)("div",{ref:Y(t,p),className:(0,ba.default)(`${c}backdrop`,{[`${c}backdrop--${i}`]:i,[`${c}backdrop--${l}`]:l,[`${c}backdrop--scrollable`]:u},o),onClick:v,...a,children:d?(0,jt.jsx)(B,{autoHide:!0,children:n}):n})})})}),At=dl;var Vo=P(require("clsx"));var eo=require("react/jsx-runtime"),pl=({children:e,className:t,color:n="primary",placement:o="top-right",content:r,unstyled:i=!1,slotProps:l})=>{let s=(0,eo.jsxs)("div",{className:(0,Vo.default)(`${f}badge`,{[`${f}badge--${o}`]:o,[`${f}badge--${n}`]:n,[`${f}badge--unstyled`]:i},t),children:[(0,eo.jsx)("div",{className:(0,Vo.default)(`${f}overlay`)}),r]});return e?(0,eo.jsxs)("div",{...l?.wrapper,className:(0,Vo.default)(`${f}badge-wrapper`,l?.wrapper?.className),children:[e,s]}):s},Ra=pl;var Dt=require("react");var ya=require("react");var $o=require("react"),Er=(0,$o.createContext)(null),Ho=()=>{let e=(0,$o.useContext)(Er);if(!e)throw new Error("`useDataList` must be used within a `<DataList />`");return e};var to=require("react/jsx-runtime"),ga=()=>{let{refs:e,data:t,values:n,setOffset:o,keyField:r,textField:i,onItemSelect:l,renderItem:s}=Ho(),u=e.parent,d=m=>{l(m),o(u.current?.scrollHeight||0)};return(0,to.jsx)(B,{ref:u,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,to.jsx)(X,{children:s?t.map(m=>(0,to.jsx)(ya.Fragment,{children:s(m,{title:"",selected:n.includes(m[r]),hoverable:!0,onClick:()=>d(m)})},m[r])):t.map(m=>(0,to.jsx)($,{title:m[i],selected:n.includes(m[r]),hoverable:!0,onClick:()=>d(m)},m[r]))})})};var Sa=require("react");var Qe=require("react/jsx-runtime"),La=()=>{let{refs:e,data:t,values:n,keyField:o,textField:r,virtual:i,virtualizer:l,onItemSelect:s,renderItem:u}=Ho(),d=e.parent,m=l||Be({...i,count:t.length,parentRef:d}),a=c=>{s?.(c)};return(0,Qe.jsx)(B,{ref:d,autoHide:!0,style:{width:"100%",height:"100%",position:"relative",maxHeight:"100%"},children:(0,Qe.jsx)(X,{children:(0,Qe.jsx)("div",{style:{height:`${m.getTotalSize()}px`,width:"100%",position:"relative"},children:m.getVirtualItems().map(c=>{let p=c.index>t.length-1,v=t[c.index];return p?(0,Qe.jsx)($,{title:m.hasNextPage?"Loading...":"Nothing more to load",style:{position:"absolute",top:0,left:0,width:"100%",height:`${c.size}px`,transform:`translateY(${c.start}px)`}},c.index):v?u?(0,Qe.jsx)(Sa.Fragment,{children:u(v,{title:"",selected:n.includes(v[o]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${c.size}px`,transform:`translateY(${c.start}px)`},onClick:()=>a(v)})},c.index):(0,Qe.jsx)($,{title:v[r],selected:n.includes(v[o]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${c.size}px`,transform:`translateY(${c.start}px)`},onClick:()=>a(v)},c.index):(0,Qe.jsx)($,{title:`Item ${c.index} not found`,style:{position:"absolute",top:0,left:0,width:"100%",height:`${c.size}px`,transform:`translateY(${c.start}px)`}},c.index)})})})})};var Ma=e=>Array.isArray(e)?e:e!==null?[e]:[],wr=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var Z=require("react/jsx-runtime"),Ea=e=>{let{className:t,data:n,value:o,keyField:r="key",textField:i="text",isMultiple:l=!1,loading:s,mounted:u,virtual:d,virtualizer:m,refs:a,renderItem:c,renderNoData:p,onItemSelect:v}=e,C=f,y={parent:a?.parent?a.parent:(0,Dt.useRef)(null)},T=(0,Dt.useMemo)(()=>Ma(o),[o]),[b,R]=(0,Dt.useState)(0),h=S=>{if(e.isMultiple){let M=n.filter(E=>S.includes(E[r]));e.onChange?.(M),e.onValueChange?.(S)}else{let M=wr(S),E=null;M!==void 0&&(E=n.find(k=>k[r]===M)??null),e.onChange?.(E),e.onValueChange?.(M)}},g=S=>{let M=S[r];if(e.isMultiple){let E=[...T],k=T.indexOf(M);k===-1?E.push(M):E.splice(k,1),h(E)}else wr(T)!==M&&h([M]);v?.(S)};return(0,Z.jsx)(Z.Fragment,{children:(0,Z.jsx)(Er.Provider,{value:{data:n,values:T,keyField:r,textField:i,isMultiple:l,virtualizer:m,virtual:d,refs:y,onChange:h,onItemSelect:g,offset:b,setOffset:R,renderItem:c},children:(0,Z.jsx)("div",{className:L(`${C}data-list`,t),children:s&&!u?(0,Z.jsx)(Ae,{status:"info",title:"Loading...",icon:(0,Z.jsx)(w,{children:(0,Z.jsx)(Pe,{className:"us-animation-spin"})})}):n.length===0?(0,Z.jsx)(Z.Fragment,{children:p?p({status:"info",title:"No data",size:"sm"}):(0,Z.jsx)(Ae,{status:"info",title:"No data",size:"sm"})}):d?(0,Z.jsx)(La,{}):(0,Z.jsx)(ga,{})})})})};var Ia=require("react");var wa={rounded:"rounded",shadow:"shadow",transitionDuration:"transition",transitionProperty:"transition"};var Pa=(e,t,n,o)=>{let r=e?o?`${o}:${e}`:e:o?`${o}:`:"";return t?`${r}${t}-${n}`:`${r}${n}`},ml=(e,t,n)=>{let o=[];if(typeof t=="object"){let r=Object.keys(t);for(let i of r){let l=t[i];l!==void 0&&o.push(Pa(e,n,l,i))}}else o.push(Pa(e,n,t));return o.join(" ")},oo=(e,t)=>Object.keys(e).map(o=>{let r=e[o];return r!==void 0?ml(t,r,wa[o]):""});var _o=require("react/jsx-runtime"),fl=(0,Ia.forwardRef)(({as:e="div",children:t,className:n,size:o="md",hoverable:r,selected:i,disabled:l,bordered:s=!0,css:u,...d},m)=>{let a=f;return(0,_o.jsxs)(e,{ref:m,className:L(`${a}card`,{[`${a}card--${o}`]:o,[`${a}card--hoverable`]:r,[`${a}card--selected`]:i,[`${a}card--disabled`]:l,[`${a}card--bordered`]:s},u!==void 0?oo(u,a):[],n),...d,children:[(r||i)&&(0,_o.jsx)("div",{className:`${a}overlay`}),t]})}),Aa=fl;var Da=require("react");var ka=require("react/jsx-runtime"),vl=(0,Da.forwardRef)(({children:e,className:t,...n},o)=>(0,ka.jsx)("div",{ref:o,className:L(`${f}card-body`,t),...n,children:e})),Na=vl;var Va=require("react");var fe=require("react/jsx-runtime"),xl=(0,Va.forwardRef)(({as:e="div",children:t,className:n,title:o,subtitle:r,startContent:i,endContent:l,bordered:s=!0,slotProps:u,...d},m)=>{let a=f;return(0,fe.jsxs)(e,{ref:m,className:L(`${a}card-header`,{[`${a}card-header--bordered`]:s},n),...d,children:[i!==void 0&&(0,fe.jsx)("div",{...u?.startContent,className:L(`${a}card-header__start-content`,u?.startContent?.className),children:i}),(0,fe.jsx)("div",{...u?.content,className:L(`${a}card-header__content`,u?.content?.className),children:o!==void 0||r!==void 0?(0,fe.jsxs)(fe.Fragment,{children:[o!==void 0&&(0,fe.jsx)("div",{...u?.title,className:L(`${a}card-header__title`,u?.title?.className),children:o}),r!==void 0&&(0,fe.jsx)("div",{...u?.subtitle,className:L(`${a}card-header__subtitle`,u?.subtitle?.className),children:r})]}):t}),l!==void 0&&(0,fe.jsx)("div",{...u?.endContent,className:L(`${a}card-header__end-content`,u?.endContent?.className),children:l})]})}),$a=xl;var Ha=P(require("clsx")),_a=require("react");var Fa=require("react/jsx-runtime"),Oa=(0,_a.forwardRef)((e,t)=>{let{as:n="div",children:o,className:r,bordered:i=!0,...l}=e,s=f;return(0,Fa.jsx)(n,{...l,ref:t,className:(0,Ha.default)(`${s}card-footer`,{[`${s}card-footer--bordered`]:i},r),children:o})});var za=P(require("clsx")),zo=require("react");var Oo=require("react"),ro=(0,Oo.createContext)(null),Fo=()=>{let e=(0,Oo.useContext)(ro);if(!e)throw new Error("`useDrawer` must be used within a `<Drawer />`");return e};var no=require("react/jsx-runtime"),hl=(0,zo.forwardRef)((e,t)=>{let{children:n,className:o,isOpen:r,size:i="sm",position:l,placement:s,backdrop:u="opaque",closable:d=!0,vars:m,style:a,onClose:c,onAfterClose:p,onClick:v,...C}=e,x=f,y=l??s??"left",T=(0,zo.useRef)(null),b=()=>{c()},R=()=>{p?.()};return(0,no.jsx)(ro.Provider,{value:{isOpen:r,onClose:b},children:(0,no.jsx)(At,{isOpen:r,closable:d,variant:u,placement:y,onClose:b,children:(0,no.jsx)(be,{nodeRef:T,isOpen:r,name:`${f}drawer`,enter:600,leave:300,unmountOnExit:!0,onExited:R,children:(0,no.jsx)("div",{...C,ref:Y(t,T),className:(0,za.default)(`${f}drawer`,{[`${f}drawer--${i}`]:i,[`${f}drawer--${y}`]:y},o),style:{...a,[`--${x}drawer-xs-width`]:m?.xsWidth,[`--${x}drawer-width`]:m?.width},onClick:h=>{h.stopPropagation(),v?.(h)},children:n})})})})}),Ba=hl;var st=P(require("clsx")),Ga=require("react");var F=require("react/jsx-runtime"),Ka=(0,Ga.forwardRef)(({as:e="div",children:t,className:n,title:o,subtitle:r,startContent:i,endContent:l,bordered:s=!0,close:u,slotProps:d,...m},a)=>{let{onClose:c}=Fo(),p=f,v={isVisible:u?.isVisible??!0,position:u?.position??"start"},C={cursor:"pointer"};return(0,F.jsxs)(e,{ref:a,className:(0,st.default)(`${p}drawer-header`,{[`${p}drawer-header--bordered`]:s},n),...m,children:[(i!==void 0||v.isVisible&&v.position==="start")&&(0,F.jsx)("div",{...d?.startContent,className:(0,st.default)(`${p}accordion-header__start-content`,d?.startContent?.className),children:v.isVisible&&v.position==="start"?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(w,{color:"secondary",children:(0,F.jsx)(U,{style:C,onClick:c})}),i]}):i}),(0,F.jsx)("div",{...d?.content,className:(0,st.default)(`${p}drawer-header__content`,d?.content?.className),children:o!==void 0||r!==void 0?(0,F.jsxs)(F.Fragment,{children:[o!==void 0&&(0,F.jsx)("div",{...d?.title,className:(0,st.default)(`${p}drawer-header__title`,d?.title?.className),children:o}),r!==void 0&&(0,F.jsx)("div",{...d?.subtitle,className:(0,st.default)(`${p}drawer-header__subtitle`,d?.subtitle?.className),children:r})]}):t}),(l!==void 0||v.isVisible&&v.position==="end")&&(0,F.jsx)("div",{...d?.endContent,className:(0,st.default)(`${p}accordion-header__end-content`,d?.endContent?.className),children:v.isVisible&&v.position==="end"?(0,F.jsxs)(F.Fragment,{children:[l,(0,F.jsx)(w,{color:"secondary",children:(0,F.jsx)(U,{style:C,onClick:c})})]}):l})]})});var Xa=require("react");var Wa=require("react/jsx-runtime"),Ua=(0,Xa.forwardRef)(({children:e,className:t,...n},o)=>(0,Wa.jsx)("div",{ref:o,className:L(`${f}drawer-body`,t),...n,children:e}));var Qa=P(require("clsx")),Ya=require("react");var Ja=require("react/jsx-runtime"),qa=(0,Ya.forwardRef)((e,t)=>{let{as:n="div",children:o,className:r,bordered:i=!0,...l}=e,s=f;return(0,Ja.jsx)(n,{...l,ref:t,className:(0,Qa.default)(`${s}drawer-footer`,{[`${s}drawer-footer--bordered`]:i},r),children:o})});var Za=require("react");var ao=require("react/jsx-runtime"),Cl=(0,Za.forwardRef)(({children:e,label:t},n)=>{{let o=f;return(0,ao.jsxs)("div",{ref:n,className:L(`${o}field`),children:[(0,ao.jsx)("div",{className:`${o}field__label`,children:t}),(0,ao.jsx)("div",{className:`${o}field__content`,children:e})]})}}),ja=Cl;var ci=P(require("clsx")),qe=require("react");var Bo=require("react"),ei=(0,Bo.createContext)(null),Nt=()=>{let e=(0,Bo.useContext)(ei);if(!e)throw new Error("`useMenu` must be used within a `<Menu />`");return e},Go=ei;var si=P(require("clsx")),li=require("react");var ri=P(require("clsx")),kt=require("react");var Ko=require("react"),ti=(0,Ko.createContext)([]),oi=()=>{let e=(0,Ko.useContext)(ti);if(!e)throw new Error("`useMenuValue` must be used within a `<MenuValueContext.Provider />`");return e},lt=ti;var Ye=require("react/jsx-runtime"),ni=(0,kt.forwardRef)((e,t)=>{let{as:n="div",className:o,style:r,value:i,title:l,icon:s,level:u=1,disabled:d,onClick:m,...a}=e,{value:c,originalValue:p,navMode:v,onChange:C,onOpen:x,onItemSelect:y}=Nt(),T=(0,kt.useContext)(lt),b=[...T,i],R=c[u-1]===i,h=g=>{i!==void 0&&C(b),m?.(g),y?.(e)};return(0,kt.useEffect)(()=>{v==="automatic"&&p.length>0&&p[p.length-1]===i&&(x(T),C(b))},[i,p,v]),(0,Ye.jsxs)(n,{ref:t,className:(0,ri.default)(`${f}menu-item`,{[`${f}menu-item--selected`]:R,[`${f}menu-item--disabled`]:d},o),style:{paddingLeft:u<=1?`var(--${f}menu-item-padding-x)`:`calc(${u} * var(--${f}menu-item-padding-level))`,...r},onClick:h,...a,children:[(0,Ye.jsx)("div",{className:`${f}overlay`,children:(0,Ye.jsx)("div",{className:`${f}overlay__surface`})}),s&&(0,Ye.jsx)("div",{className:`${f}menu-item__icon`,children:s}),(0,Ye.jsx)("div",{className:`${f}menu-item__content`,children:(0,Ye.jsx)("span",{className:`${f}menu-item__title`,children:l})})]})});ni.displayName="MenuItem";var ve=ni;var Uo=P(require("clsx")),Wo=require("react");var ai=e=>e.split("/").reduce((t,n)=>{let o=t[t.length-1];return o!=null?t.push(o+"/"+n):t.push(""),t},[]),Xo=(e,t)=>{let n=e.indexOf(t),o=[...e];return n===-1?o.push(t):o.splice(n,1),o};var H=require("react/jsx-runtime"),ii=({children:e,className:t,style:n,value:o,title:r,icon:i,level:l=1,items:s,onClick:u,...d})=>{let{value:m,openValues:a,expandMode:c,onOpen:p}=Nt(),v=(0,Wo.useContext)(lt),C=a.includes(o),x=[...v,o],y=m[l-1]===o,T=(0,Wo.useMemo)(()=>s?.map(({type:R,...h},g)=>R==="item"?(0,H.jsx)(ve,{level:l!==void 0?l+1:void 0,...h},g):R==="submenu"?(0,H.jsx)(ii,{level:l!==void 0?l+1:void 0,...h},g):R==="group"?(0,H.jsx)($t,{level:l!==void 0?l+1:void 0,...h},g):(0,H.jsx)(ve,{level:l!==void 0?l+1:void 0,...h},g)),[s]),b=R=>{if(c==="multiple"){let h=Xo(a,o);p(h)}else if(C){let h=Xo(x,o);p(h)}else{let h=Xo(v,o);p(h)}u?.(R)};return(0,H.jsx)(lt.Provider,{value:x,children:(0,H.jsx)("div",{className:(0,Uo.default)(`${f}menu-submenu`),children:(0,H.jsxs)(_e,{isOpen:C,children:[(0,H.jsx)(he,{children:(0,H.jsxs)("div",{className:(0,Uo.default)(`${f}menu-item`,{[`${f}menu-item--selected`]:y||s&&x.includes(m)},t),style:{paddingLeft:l<=1?`var(--${f}menu-item-padding-x)`:`calc(${l} * var(--${f}menu-item-padding-level))`,...n},onClick:b,...d,children:[(0,H.jsx)("div",{className:`${f}overlay`,children:(0,H.jsx)("div",{className:`${f}overlay__surface`})}),i&&(0,H.jsx)("div",{className:`${f}menu-item__icon`,children:i}),(0,H.jsx)("div",{className:`${f}menu-item__content`,children:(0,H.jsx)("span",{className:`${f}menu-item__title`,children:r})}),(0,H.jsx)("div",{className:`${f}menu-item__icon`,children:C?(0,H.jsx)(te,{className:`${f}icon`}):(0,H.jsx)(ee,{className:`${f}icon`})})]})}),(0,H.jsx)(xe,{children:(0,H.jsx)("ul",{className:(0,Uo.default)(`${f}menu`,{[`${f}menu-open`]:!C}),children:T||e})})]})})})},Vt=ii;var ce=require("react/jsx-runtime"),Tl=({children:e,className:t,style:n,title:o,icon:r,level:i=1,items:l,...s})=>{let u=(0,li.useMemo)(()=>l?.map(({type:d,...m},a)=>d==="item"?(0,ce.jsx)(ve,{...m},a):d==="submenu"?(0,ce.jsx)(Vt,{...m},a):(0,ce.jsx)(ve,{...m},a)),[l]);return(0,ce.jsxs)(ce.Fragment,{children:[(0,ce.jsxs)("div",{className:(0,si.default)(`${f}menu-group`,t),style:{paddingLeft:i<=1?`var(--${f}menu-group-padding-x)`:`calc(${i} * var(--${f}menu-group-padding-level))`,...n},...s,children:[r&&(0,ce.jsx)("div",{className:`${f}menu-group__icon`,children:r}),(0,ce.jsx)("div",{className:`${f}menu-group__content`,children:(0,ce.jsx)("span",{className:`${f}menu-group__title`,children:o})})]}),u||e]})},$t=Tl;var ct=require("react/jsx-runtime"),ui=({children:e,value:t=[],defaultValue:n,openValues:o,expandMode:r="multiple",navMode:i="manual",items:l,onChange:s,onOpen:u,onItemSelect:d,...m})=>{let[a,c]=(0,qe.useState)(t??n??[]),[p,v]=(0,qe.useState)(o??[]),C=(0,qe.useMemo)(()=>l?.map(({type:b,...R},h)=>b==="item"?(0,ct.jsx)(ve,{...R},h):b==="submenu"?(0,ct.jsx)(Vt,{...R},h):b==="group"?(0,ct.jsx)($t,{...R},h):(0,ct.jsx)(ve,{...R},h)),[l]),x=b=>{t!==void 0&&i!=="automatic"?s?.(b):c(b)},y=b=>{o!==void 0?u?.(b):v(b)},T=b=>{d?.(b)};return(0,qe.useEffect)(()=>{t!==void 0&&i!=="automatic"&&c(t)},[t]),(0,qe.useEffect)(()=>{o!==void 0&&v(o)},[o]),(0,ct.jsx)(Go.Provider,{value:{value:a,originalValue:t,openValues:p,expandMode:r,navMode:i,onOpen:y,onChange:x,onItemSelect:T},children:(0,ct.jsx)("div",{className:(0,ci.default)(`${f}menu`),...m,children:C||e})})};ui.displayName="Menu";var di=ui;var oe=require("react");var Ht=require("react");var Qo=require("react"),pi=(0,Qo.createContext)(null),Yo=()=>{let e=(0,Qo.useContext)(pi);if(!e)throw new Error("`useSelect` must be used within a `<Select />`");return e},mi=pi;var io=require("react/jsx-runtime"),bl=()=>{let{data:e,values:t,offset:n,setOffset:o,keyField:r,textField:i,onItemSelect:l,renderItem:s}=Yo(),u=(0,Ht.useRef)(null),{isOpen:d}=q(),m=(a,c)=>{l(c),o(u.current?.scrollTop||0)};return(0,Ht.useEffect)(()=>{d&&u.current?.scrollTo({top:n})},[d]),(0,io.jsx)(B,{ref:u,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,io.jsx)(X,{children:s?e.map(a=>(0,io.jsx)(Ht.Fragment,{children:s(a,{title:void 0,selected:t.includes(a[r]),hoverable:!0,onClick:c=>m(c,a),onMouseDown:c=>c.preventDefault()})},a[r])):e.map(a=>(0,io.jsx)($,{title:a[i],selected:t.includes(a[r]),hoverable:!0,onClick:c=>m(c,a),onMouseDown:c=>c.preventDefault()},a[r]))})})},fi=bl;var _t=require("react");var Pr=e=>Array.isArray(e)?e:e!==null?[e]:[],so=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var Je=require("react/jsx-runtime"),Rl=()=>{let{data:e,values:t,keyField:n,textField:o,virtual:r,onItemSelect:i,renderItem:l}=Yo(),s=(0,_t.useRef)(null),u=Be({...r,count:e.length,parentRef:s}),{isOpen:d}=q(),m=a=>{i(a)};return(0,_t.useEffect)(()=>{if(!d)return;let a=so(t),c=e.findIndex(p=>p[n]===a);u.scrollToIndex(c,{align:"start"})},[d]),r?(0,Je.jsx)(B,{ref:s,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Je.jsx)(X,{children:(0,Je.jsx)("div",{style:{height:`${u.getTotalSize()}px`,width:"100%",position:"relative"},children:u.getVirtualItems().map(a=>{let c=a.index>e.length-1,p=e[a.index];return c?(0,Je.jsx)($,{title:r.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?l?(0,Je.jsx)(_t.Fragment,{children:l(p,{title:void 0,selected:t.includes(p[n]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${a.size}px`,transform:`translateY(${a.start}px)`},onClick:()=>m(p),onMouseDown:v=>v.preventDefault()})},a.index):(0,Je.jsx)($,{title:p[o],selected:t.includes(p[n]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${a.size}px`,transform:`translateY(${a.start}px)`},onClick:()=>m(p),onMouseDown:v=>v.preventDefault()},a.index):(0,Je.jsx)($,{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},vi=Rl;var A=require("react/jsx-runtime"),yl=e=>{let{data:t,value:n,keyField:o="key",textField:r="text",isMultiple:i=!1,disabled:l,loading:s,clearable:u=!1,disclosure:d,virtual:m,placeholder:a,className:c,style:p,color:v="inherit",variant:C="outlined",size:x="md",startContent:y,endContent:T,renderItem:b,renderNoData:R}=e,h=d!==void 0?d:ze(),g=f,S=(0,oe.useRef)(null),[M,E]=(0,oe.useState)(""),[k,z]=(0,oe.useState)(!1),[ne,Q]=(0,oe.useState)(!1),_=(0,oe.useMemo)(()=>Pr(n),[n]),ae=(0,oe.useMemo)(()=>t.filter(V=>_.includes(V[o])),[t,_]),[Le,ie]=(0,oe.useState)(0),Me=()=>{S?.current?.focus()},zt=V=>{if(e.isMultiple){let j=t.filter(de=>V.includes(de[o]));e.onChange?.(j),e.onValueChange?.(V)}else{let j=so(V),de=null;j!==null&&(de=t.find(et=>et[o]===j)??null),e.onChange?.(de),e.onValueChange?.(j)}},lr=V=>{V.stopPropagation(),z(!0),E(""),e.isMultiple?(e.onChange?.([]),e.onValueChange?.([])):(e.onChange?.(null),e.onValueChange?.(null)),z(!1)},vo=V=>{let j=V[o];if(e.isMultiple){let de=[..._],et=_.indexOf(j);et===-1?de.push(j):de.splice(et,1),zt(de)}else so(_)!==j&&zt([j]);z(!1),S.current?.focus(),e.isMultiple||h.onClose()},dt=()=>{h.onOpen(),Q(!0)},cr=()=>{if(h.onClose(),!e.isMultiple&&k){let V=ae[0];E(V!==void 0?V[r]:""),z(!1)}};return(0,oe.useEffect)(()=>{if(!k&&!e.isMultiple){let V=ae[0];V!==void 0&&E(V[r])}},[ae]),(0,oe.useEffect)(()=>{Pr(n)[0]===void 0&&E("")},[n]),(0,A.jsx)(mi.Provider,{value:{data:t,values:_,keyField:o,textField:r,isMultiple:i,virtual:m,onChange:zt,onItemSelect:vo,offset:Le,setOffset:ie,renderItem:b},children:(0,A.jsxs)(Lt,{target:!0,...h,isOpen:h.isOpen,onOpen:dt,onClose:cr,autoClose:"outside",children:[(0,A.jsx)(wt,{children:(0,A.jsxs)("div",{className:L(`${g}input`,{[`${g}input--${v}`]:v,[`${g}input--${C}`]:C,[`${g}input--${x}`]:x,[`${g}input--focus`]:ne,[`${g}input--disabled`]:l,[`${g}input--clearable`]:u},c),style:p,onClick:Me,onFocus:()=>{Q(!0)},onBlur:()=>{Q(!1)},children:[(0,A.jsx)("input",{type:"text",ref:S,style:{position:"absolute",opacity:0}}),(0,A.jsx)("div",{className:`${g}overlay`}),(0,A.jsx)("div",{className:`${g}outline`}),y&&(0,A.jsx)("div",{className:`${g}input__start-content`,children:y}),(0,A.jsx)("div",{className:`${g}input__content`,children:i&&ae.length!==0?(0,A.jsx)("div",{className:`${g}input__chips`,children:ae.map(V=>(0,A.jsx)(gt,{variant:"flat",color:"secondary",size:"xs",closable:!0,onClose:()=>vo(V),children:V[r]},V[o]))}):(0,A.jsx)("div",{className:`${g}input__search`,title:M,children:M||a})}),(0,A.jsxs)("div",{className:`${g}input__end-content`,children:[T,s?(0,A.jsx)(w,{children:(0,A.jsx)(Pe,{className:`${g}animation-spin`})}):u?(0,A.jsx)("div",{className:`${g}input__clearable`,children:(0,A.jsx)(Ie,{type:"button",variant:"text",color:"secondary",size:"xs",iconOnly:!0,onClick:lr,children:(0,A.jsx)(w,{children:(0,A.jsx)(U,{})})})}):null,(0,A.jsx)("div",{style:{pointerEvents:"none"},children:(0,A.jsx)(w,{color:"secondary",children:h.isOpen?(0,A.jsx)(te,{}):(0,A.jsx)(ee,{})})})]})]})}),(0,A.jsx)(Mt,{style:{maxHeight:"200px"},children:t.length===0?(0,A.jsx)(A.Fragment,{children:R?R({status:"info",title:"No data",size:"sm",onClick:()=>{h.onClose()}}):(0,A.jsx)(Ae,{status:"info",title:"No data",size:"sm",onClick:h.onClose})}):m?(0,A.jsx)(vi,{}):(0,A.jsx)(fi,{})})]})})},xi=yl;var qo=P(require("clsx")),hi=P(require("merge-refs")),De=require("react");var ut=require("react/jsx-runtime"),Ci=(0,De.forwardRef)(({children:e,className:t,style:n,checked:o,defaultChecked:r,size:i="md",colorScheme:l="default",onChange:s,disabled:u,readOnly:d,...m},a)=>{let c=f,p=(0,De.useRef)(null),[v,C]=(0,De.useState)(o??r??!1),[x,y]=(0,De.useState)(!1),T=b=>{o!==void 0?s?.(b.target.checked):C?.(b.target.checked)};return(0,De.useEffect)(()=>{o!==void 0&&C(o)},[o]),(0,ut.jsxs)("label",{className:(0,qo.default)(`${c}switch`,{[`${c}switch--checked`]:v,[`${c}switch--focus`]:x,[`${c}switch--disabled`]:u,[`${c}switch--read-only`]:d,[`${c}switch--${i}`]:i,[`${c}switch--${l}`]:l},t),style:n,onFocus:()=>{y(!0)},onBlur:()=>{y(!1)},children:[(0,ut.jsx)("input",{...m,ref:(0,hi.default)(p,a),type:"checkbox",checked:v,disabled:u,onChange:T}),(0,ut.jsx)("div",{className:(0,qo.default)(`${c}switch__control`),children:(0,ut.jsx)("div",{className:`${c}switch__thumb`})}),e!==void 0&&(0,ut.jsx)("div",{className:(0,qo.default)(`${c}switch__label`),children:e})]})});var bi=P(require("clsx")),Ri=P(require("merge-refs")),Ze=require("react"),yi=require("uuid");var Jo=require("react"),Ir=(0,Jo.createContext)(null),Ti=()=>{let e=(0,Jo.useContext)(Ir);if(!e)throw new Error("`useTabs` must be used within a `<Tabs />`");return e};var ue=require("react/jsx-runtime"),gi=(0,Ze.forwardRef)(({as:e="div",children:t,className:n,role:o="presentation",value:r,startContent:i,endContent:l,closable:s,disabled:u,onClick:d,...m},a)=>{let c=f,p=(0,Ze.useRef)(null),[v]=(0,Ze.useState)((0,yi.v4)()),C=r??v,{onClose:x,registerItem:y,...T}=Ti(),b=h=>{let g=T.previousTabRef.current,S=p.current;if(S){if(g){let M=g.querySelector(`.${c}tab__indicator`),E=S.querySelector(`.${c}tab__indicator`);if(!M||!E)return;let k={},z=M.getBoundingClientRect(),ne=z.left,Q=z.width,_=E.getBoundingClientRect(),ae=_.left,Le=_.width,ie=Q/Le;ie?k.transform=`translateX(${(ne-ae).toFixed(4)}px) scaleX(${ie.toFixed(4)})`:k.opacity=0;let Me=[k,{transform:"none"}];E.animate(Me,{duration:250,easing:"cubic-bezier(.3,0,0,1)"}),T.previousTabRef.current=p.current}T.previousTabRef.current=p.current,T.onChange(C),d?.(h)}},R=h=>{h.stopPropagation(),x(C)};return(0,Ze.useEffect)(()=>{y({value:C,disabled:u}),C===T.value&&(T.previousTabRef.current=p.current)},[C,T.value]),(0,ue.jsxs)(e,{ref:(0,Ri.default)(p,a,h=>T.tabRefs.current[C]=h),className:(0,bi.default)(`${c}tab`,{[`${c}tab--selected`]:C===T.value,[`${c}tab--disabled`]:u,[`${c}tab--closable`]:s},n),role:o,onClick:b,...m,children:[(0,ue.jsx)("div",{className:`${c}overlay`,children:(0,ue.jsx)("div",{className:`${c}overlay__surface`})}),(0,ue.jsxs)("div",{className:`${c}tab__content`,children:[i!==void 0&&(0,ue.jsx)("div",{className:`${c}tab__start-content`,children:i}),t,(l||s)&&(0,ue.jsxs)("div",{className:`${c}tab__end-content`,children:[l,s&&(0,ue.jsx)("div",{className:`${c}tab__closable`,onClick:R,children:(0,ue.jsx)(w,{children:(0,ue.jsx)(U,{})})})]})]}),(0,ue.jsx)("div",{className:`${c}tab__indicator`})]})});var Li=P(require("clsx")),Mi=P(require("merge-refs")),ge=require("react");var Si=require("react");function ye(e){return(0,Si.forwardRef)(e)}var lo=require("react/jsx-runtime"),Ei=ye(({children:e,className:t,value:n,defaultValue:o,alignment:r="start",onChange:i,onClose:l,...s},u)=>{let d=(0,ge.useRef)(null),m=(0,ge.useRef)({}),a=(0,ge.useRef)(null),[c,p]=(0,ge.useState)(n??o),[v,C]=(0,ge.useState)([]),x=R=>{C(h=>(h.findIndex(S=>S.value)===-1&&h.push(R),h))},y=R=>{let h=d.current;if(!h)return;let g=m.current[R];g&&ur(h,g)},T=R=>{p(R),i?.(R),y(R)},b=R=>{l?.(R)};return(0,ge.useEffect)(()=>{n!==void 0&&(p(n),y(n))},[n]),(0,ge.useEffect)(()=>{if(n===void 0){let R=v.find(h=>!h.disabled);p(R?.value)}},[n,v]),(0,lo.jsxs)(Ir.Provider,{value:{previousTabRef:a,tabRefs:m,value:c,onChange:T,onClose:b,registerItem:x},children:[(0,lo.jsx)("div",{...s,ref:(0,Mi.default)(u,d),className:(0,Li.default)(`${f}tabs`,{[`${f}tabs--${r}`]:r},t),children:e}),(0,lo.jsx)("div",{className:`${f}divider`})]})});var Ot=require("react");var Ne=require("react/jsx-runtime");var wi=(0,Ot.forwardRef)(({className:e,value:t,defaultValue:n,disabled:o,inputRef:r,color:i="inherit",variant:l="outlined",size:s="md",startContent:u,endContent:d,css:m,style:a,onChange:c,onClick:p,...v},C)=>{let x=f,y=(0,Ot.useRef)(null),[T,b]=(0,Ot.useState)(!1),R=g=>{c?.(g)},h=g=>{p?.(g),y?.current?.focus()};return(0,Ne.jsxs)("div",{ref:C,className:L(`${x}input`,{[`${x}input--${i}`]:i,[`${x}input--${l}`]:l,[`${x}input--${s}`]:s,[`${x}input--focus`]:T,[`${x}input--disabled`]:o},m!==void 0?oo(m,x):[],e),style:a,onFocus:()=>{b(!0)},onBlur:()=>{b(!1)},onClick:h,children:[(0,Ne.jsx)("div",{className:`${x}overlay`}),(0,Ne.jsx)("div",{className:`${x}outline`}),u&&(0,Ne.jsx)("div",{className:`${x}input__start-content`,children:u}),(0,Ne.jsx)("div",{className:`${x}input__content`,children:(0,Ne.jsx)("input",{ref:Y(y,r),className:`${x}input__field`,value:t,defaultValue:n,disabled:o,onChange:R,...v})}),d&&(0,Ne.jsx)("div",{className:`${x}input__end-content`,children:d})]})});var Se=P(require("clsx"));var W=require("react/jsx-runtime"),gl=e=>{let{children:t,className:n,size:o="md",title:r,subtitle:i,startContent:l,endContent:s,startAction:u,endAction:d,slotProps:m,...a}=e,c=f;return(0,W.jsxs)("div",{className:(0,Se.default)(`${c}toolbar`,{[`${c}toolbar--${o}`]:o},n),...a,children:[(0,W.jsx)("div",{className:`${c}outline-b`}),(0,W.jsxs)("div",{className:(0,Se.default)(`${c}toolbar__container`),children:[l!==void 0?(0,W.jsx)("div",{className:(0,Se.default)(`${c}toolbar__start-content`),children:l}):u!==void 0&&(0,W.jsx)("div",{className:(0,Se.default)(`${c}toolbar__start-action`),children:u}),(0,W.jsx)("div",{className:(0,Se.default)(`${c}toolbar__content`),children:r!==void 0||i!==void 0?(0,W.jsxs)(W.Fragment,{children:[r!==void 0&&(0,W.jsx)("div",{...m?.title,className:(0,Se.default)(`${c}toolbar__title`),children:r}),i!==void 0&&(0,W.jsx)("div",{...m?.subtitle,className:(0,Se.default)(`${c}toolbar__subtitle`),children:i})]}):t}),s!==void 0?(0,W.jsx)("div",{className:(0,Se.default)(`${c}toolbar__end-content`),children:s}):d!==void 0&&(0,W.jsx)("div",{className:(0,Se.default)(`${c}toolbar__end-action`),children:d})]})]})},Pi=gl;var Ii=P(require("clsx")),Ai=P(require("merge-refs")),Zo=require("react");var Ar=require("react/jsx-runtime"),Di=(0,Zo.forwardRef)(({as:e="div",children:t,width:n,className:o,role:r="presentation",onClick:i,style:l,...s},u)=>{let d=f,m=(0,Zo.useRef)(null),a=c=>{i?.(c)};return(0,Ar.jsx)(e,{ref:(0,Ai.default)(m,u),className:(0,Ii.default)(`${d}swipe-item`,o),role:r,onClick:a,style:{...l,...n!==void 0?{width:`${n}px`}:{}},...s,children:(0,Ar.jsx)("div",{className:`${d}swipe-item__content`,children:t})})});var Nr=P(require("clsx")),jo=require("react");var Dr=require("react"),Ni=(0,Dr.createContext)(null);var je=require("react");var ki=(e,t)=>{let n=!1,o=!1,r=null;if(t){let i=Array.from(e.children).indexOf(t),l=0,s=0,u=Array.from(e.children);for(let a=i;a<u.length;a++){let c=u[a];if(e.clientWidth<=s+c.clientWidth)break;l++,s+=c.clientWidth}let d=u[i];d?n=!0:n=!1,t=d;let m=u[i+l];m?o=!0:o=!1,r=m}else{let i=0,l=0,s=Array.from(e.children);for(let d=0;d<s.length;d++){let m=s[d];if(e.clientWidth<=l+m.clientWidth)break;i++,l+=m.clientWidth}n=!1,t=null;let u=s[i];u?o=!0:o=!1,r=u}return{isPrevious:n,previousElement:t,isNext:o,nextElement:r}};function Sl(e){let t=bt({ref:e.ref,target:e.target}),n=(0,je.useRef)(null),o=(0,je.useRef)(null),[r,i]=(0,je.useState)(!1),[l,s]=(0,je.useState)(!1),u=(0,je.useMemo)(()=>{let a=e.ref?.current||e.target;if(!a)return;let c=t.width===a.scrollWidth?null:n.current,p=ki(a,c);if(p)return i(p.isPrevious),s(p.isNext),o.current=p.nextElement,n.current=p.previousElement,p},[t.width,e.itemLength]);return u?{...u,isPrevious:r,isNext:l,previousRange:()=>{let a=e.ref?.current||e.target,c=n.current;if(!a||!c)return;let p="smooth",v=Array.from(a.children);if(c){let C=Array.from(a.children).indexOf(c),x=Array.from(a.children).slice(0,C+1),y=0,T=0;for(let M of x)y++,T+=M.clientWidth;let b=0,R=0;for(let M of x){if(a.clientWidth<=R+M.clientWidth)break;b++,R+=M.clientWidth}let h=T+y*16-(R+b*16);a.scrollTo({behavior:p,left:h});let g=x[x.length-1-b];i(!!g),n.current=g;let S=v[x.length-1+1];s(!!S),o.current=S}else{n.current=null;let C=0;for(let x of v){if(a.clientWidth<=C+x.clientWidth){o.current=x;break}C+=x.clientWidth}a.scrollTo({behavior:p,left:0})}},nextRange:()=>{let a=e.ref?.current||e.target,c=o.current;if(!a||!c)return;let p="smooth",v=Array.from(a.children);if(c){let C=Array.from(a.children).indexOf(c),x=Array.from(a.children).slice(0,C),y=0,T=0;for(let M=0;M<x.length;M++){let E=x[M];y++,T+=E.clientWidth}let b=0,R=0;for(let M=0;M<x.length;M++){let E=x[M];if(a.clientWidth<=R+E.clientWidth)break;b++,R+=E.clientWidth}let h=T+y*16;a.scrollTo({behavior:p,left:h});let g=x[x.length-1];i(!!g),n.current=g;let S=v[x.length+b];s(!!S),o.current=S}}}:void 0}var Vi=Sl;var re=require("react/jsx-runtime"),$i=({children:e,className:t,gap:n=0,autoHide:o=!1,alignment:r="start",slotProps:i,...l})=>{let s=f,u=(0,jo.useRef)(null),d=jo.Children.toArray(e),m=Vi({ref:u,itemLength:d.length}),a=p=>{m?.previousRange(),i?.arrowLeftButton?.onClick?.(p)},c=p=>{m?.nextRange(),i?.arrowRightButton?.onClick?.(p)};return(0,re.jsx)(Ni.Provider,{value:{gap:n},children:(0,re.jsxs)("div",{className:(0,Nr.default)(`${s}swipe-wrapper`,{[`${s}swipe-wrapper--auto-hide`]:o},t),children:[(0,re.jsx)("div",{className:`${s}swipe-wrapper__left`,children:m?.isPrevious&&(0,re.jsx)(Ie,{variant:"filled",color:"primary",iconOnly:!0,...i?.arrowLeftButton,onClick:a,children:(0,re.jsx)(w,{children:(0,re.jsx)(hr,{})})})}),(0,re.jsx)("div",{ref:u,className:(0,Nr.default)(`${s}swipe`,{[`${s}swipe--${r}`]:r}),style:{"--us-swipe-gap":`${n}px`},...l,children:e}),(0,re.jsx)("div",{className:`${s}swipe-wrapper__right`,children:m?.isNext&&(0,re.jsx)(Ie,{variant:"filled",color:"primary",iconOnly:!0,...i?.arrowLeftButton,onClick:c,children:(0,re.jsx)(w,{children:(0,re.jsx)(Cr,{})})})})]})})};var Vr=P(require("clsx")),Hi=P(require("merge-refs")),tr=require("react");var er=require("react"),kr=(0,er.createContext)(null);function Ft(){let e=(0,er.useContext)(kr);if(!e)throw new Error("useModal must be used within a Modal");return e}var co=require("react/jsx-runtime"),_i=(0,tr.forwardRef)(({children:e,className:t,isOpen:n,size:o="md",placement:r="center",backdrop:i="opaque",scrollBehavior:l="outside",fullscreen:s,closable:u=!0,scrollArea:d=!1,slotProps:m,onClose:a,onAfterClose:c,onClick:p,...v},C)=>{let x=f,y=(0,tr.useRef)(null),T=()=>{a()},b=()=>{c?.()};return(0,co.jsx)(kr.Provider,{value:{isOpen:n,scrollBehavior:l,scrollArea:d,onClose:T,onAfterClose:b},children:(0,co.jsx)(At,{...m?.wrapper,isOpen:n,closable:u,scrollable:!0,scrollArea:d,variant:i,placement:r,className:(0,Vr.default)(`${x}modal-wrapper`,{[`${x}modal-wrapper--fullscreen`]:s},m?.wrapper?.className),onClose:T,children:(0,co.jsx)(be,{nodeRef:y,isOpen:n,name:`${x}modal`,enter:600,leave:300,unmountOnExit:!0,onExited:b,children:(0,co.jsx)("div",{...v,ref:(0,Hi.default)(C,y),className:(0,Vr.default)(`${x}modal`,{[`${x}modal--${o}`]:o,[`${x}modal--${r}`]:r,[`${x}modal--fullscreen`]:s,[`${x}modal--scroll-${l}`]:l},t),onClick:R=>{R.stopPropagation(),p?.(R)},children:e})})})})});var Oi=P(require("clsx"));var $r=require("react/jsx-runtime"),Fi=e=>{let{children:t,className:n,...o}=e,{scrollBehavior:r,scrollArea:i}=Ft(),s=(0,$r.jsx)("div",{className:(0,Oi.default)(`${f}modal-body`,n),...o,children:t});return r==="inside"&&i?(0,$r.jsx)(B,{autoHide:!0,children:s}):s};var zi=P(require("clsx")),Bi=require("react");var Ki=require("react/jsx-runtime"),Gi=(0,Bi.forwardRef)((e,t)=>{let{as:n="div",children:o,className:r,bordered:i=!0,...l}=e,s=f;return(0,Ki.jsx)(n,{...l,ref:t,className:(0,zi.default)(`${s}modal-footer`,{[`${s}modal-footer--bordered`]:i},r),children:o})});var or=P(require("clsx")),Xi=require("react");var K=require("react/jsx-runtime"),Ui=(0,Xi.forwardRef)(({as:e="div",children:t,className:n,title:o,subtitle:r,startContent:i,endContent:l,bordered:s=!0,close:u,slotProps:d,...m},a)=>{let{onClose:c}=Ft(),p=f,v={isVisible:u?.isVisible??!0,position:u?.position??"end"},C={cursor:"pointer"};return(0,K.jsxs)(e,{...m,ref:a,className:(0,or.default)(`${p}modal-header`,{[`${p}modal-header--bordered`]:s},n),children:[(i!==void 0||v.isVisible&&v.position==="start")&&(0,K.jsx)("div",{className:`${p}modal-header__start-content`,children:v.isVisible&&v.position==="start"?(0,K.jsxs)("div",{className:"us-d-flex us-items-center us-gap-2",children:[(0,K.jsx)(w,{color:"secondary",children:(0,K.jsx)(U,{style:C,onClick:c})}),i]}):i}),(0,K.jsx)("div",{className:`${p}modal-header__content`,children:o!==void 0||r!==void 0?(0,K.jsxs)(K.Fragment,{children:[o!==void 0&&(0,K.jsx)("div",{...d?.title,className:(0,or.default)(`${p}modal-header__title`,d?.title?.className),children:o}),r!==void 0&&(0,K.jsx)("div",{...d?.subtitle,className:(0,or.default)(`${p}modal-header__subtitle`,d?.subtitle?.className),children:r})]}):t}),(l!==void 0||v.isVisible&&v.position==="end")&&(0,K.jsx)("div",{className:`${p}modal-header__end-content`,children:v.isVisible&&v.position==="end"?(0,K.jsxs)("div",{className:"us-d-flex us-items-center us-gap-2",children:[l,(0,K.jsx)(w,{color:"secondary",children:(0,K.jsx)(U,{style:C,onClick:c})})]}):l})]})});var uo=P(require("clsx")),Wi=P(require("merge-refs")),Ve=require("react"),Qi=require("uuid");var rr=require("react"),Hr=(0,rr.createContext)(null),nr=()=>(0,rr.useContext)(Hr);var ke=require("react/jsx-runtime"),Yi=ye(({children:e,className:t,style:n,value:o,checked:r,defaultChecked:i,disabled:l,readOnly:s,size:u,colorScheme:d,onClick:m,onChange:a,...c},p)=>{let v=f,C=(0,Ve.useRef)(null),x=nr(),[y]=(0,Ve.useState)((0,Qi.v4)()),T=o??y,[b,R]=(0,Ve.useState)(r??i??!1),[h,g]=(0,Ve.useState)(!1),S=u||"md",M=l||!1,E=s||!1,k=d||"default";S=u??x?.size??S,M=l??x?.disabled??M,E=s??x?.readOnly??E,k=d??x?.colorScheme??k;let z=Q=>{if(x){let _=[...x.value],ae=_.findIndex(Le=>Le===T);ae===-1?_.push(T):_.splice(ae,1),x?.onChange(_)}else r!==void 0?a?.(Q.target.checked):R(Q.target.checked)},ne=Q=>{m?.(Q),C?.current?.focus()};return(0,Ve.useEffect)(()=>{r!==void 0&&R(r)},[r]),(0,Ve.useEffect)(()=>{x&&R(x.value.includes(T))},[x]),(0,ke.jsxs)("label",{className:(0,uo.default)(`${v}checkbox`,{[`${v}checkbox--checked`]:b,[`${v}checkbox--focus`]:h,[`${v}checkbox--disabled`]:M,[`${v}checkbox--read-only`]:E,[`${v}checkbox--${S}`]:S,[`${v}checkbox--${k}`]:k},t),style:n,onFocus:()=>{g(!0)},onBlur:()=>{g(!1)},children:[(0,ke.jsx)("input",{...c,ref:(0,Wi.default)(C,p),type:"checkbox",value:String(T),checked:b,disabled:M,onChange:z,onClick:ne}),(0,ke.jsxs)("div",{className:(0,uo.default)(`${v}checkbox__control`),children:[(0,ke.jsx)("div",{className:(0,uo.default)(`${v}checkbox__tap`)}),(0,ke.jsx)(w,{children:(0,ke.jsx)(Tr,{})})]}),e!==void 0&&(0,ke.jsx)("div",{className:(0,uo.default)(`${v}checkbox__label`),children:e})]})});var qi=P(require("clsx")),ar=require("react");var _r=require("react/jsx-runtime"),Ji=ye(({children:e,disabled:t=!1,readOnly:n=!1,className:o,value:r,defaultValue:i,size:l="md",direction:s="row",alignment:u="start",colorScheme:d="default",onChange:m,...a},c)=>{let p=f,[v,C]=(0,ar.useState)(r??i??[]),x=y=>{if(r!==void 0){m?.(y);return}C(y)};return(0,ar.useEffect)(()=>{r!==void 0&&C(r)},[r]),(0,_r.jsx)(Hr.Provider,{value:{value:v,disabled:t,readOnly:n,size:l,direction:s,colorScheme:d,onChange:x},children:(0,_r.jsx)("div",{...a,ref:c,className:(0,qi.default)(`${p}checkbox-group`,{[`${p}checkbox-group--${l}`]:l,[`${p}checkbox-group--${s}`]:s,[`${p}checkbox-group--${u}`]:u},o),children:e})})});var po=P(require("clsx")),Zi=P(require("merge-refs")),mo=require("react"),ji=require("uuid");var ir=require("react"),Or=(0,ir.createContext)(null),sr=()=>{let e=(0,ir.useContext)(Or);if(!e)throw new Error("`useRadioGroup` must be used within a `<RadioGroup />`");return e};var $e=require("react/jsx-runtime"),es=ye(({children:e,style:t,className:n,name:o,value:r,disabled:i,readOnly:l,size:s,colorScheme:u,onClick:d,...m},a)=>{let c=f,p=(0,mo.useRef)(null),v=sr(),[C]=(0,mo.useState)((0,ji.v4)()),x=r??C,[y,T]=(0,mo.useState)(!1);o=o??v?.name;let b=i||!1,R=l||!1,h=s||"md",g=u||"default";b=i??v.disabled??b,R=l??v.readOnly??R,h=s??v.size??h,g=u??v.colorScheme??g;let S=v.value===x,M=()=>{v.onChange(x)},E=k=>{d?.(k),p?.current?.focus()};return(0,$e.jsxs)("label",{className:(0,po.default)(`${c}radio`,{[`${c}radio--checked`]:S,[`${c}radio--focus`]:y,[`${c}radio--disabled`]:b,[`${c}radio--read-only`]:R,[`${c}radio--${h}`]:h,[`${c}radio--${g}`]:g},n),style:t,onFocus:()=>{T(!0)},onBlur:()=>{T(!1)},children:[(0,$e.jsx)("input",{...m,ref:(0,Zi.default)(p,a),type:"radio",name:o,value:String(x),checked:S,disabled:b,onChange:M,onClick:E}),(0,$e.jsxs)("div",{className:(0,po.default)(`${c}radio__control`),children:[(0,$e.jsx)("div",{className:(0,po.default)(`${c}radio__tap`)}),(0,$e.jsx)(w,{children:(0,$e.jsx)(br,{})})]}),e!==void 0&&(0,$e.jsx)("div",{className:(0,po.default)(`${c}radio__label`),children:e})]})});var ts=P(require("clsx")),fo=require("react"),os=require("uuid");var Fr=require("react/jsx-runtime"),rs=ye(({children:e,className:t,name:n,value:o,defaultValue:r,disabled:i=!1,readOnly:l=!1,size:s="md",direction:u="row",alignment:d="start",colorScheme:m="default",onChange:a,...c},p)=>{let v=f,[C]=(0,fo.useState)((0,os.v4)()),[x,y]=(0,fo.useState)(o??r),T=b=>{if(o!==void 0){a?.(b);return}y(b)};return(0,fo.useEffect)(()=>{o!==void 0&&y(o)},[o]),(0,Fr.jsx)(Or.Provider,{value:{name:n??C,disabled:i,readOnly:l,value:x,size:s,direction:u,colorScheme:m,onChange:T},children:(0,Fr.jsx)("div",{...c,ref:p,className:(0,ts.default)(`${v}radio-group`,{[`${v}radio-group--${s}`]:s,[`${v}radio-group--${u}`]:u,[`${v}radio-group--${d}`]:d},t),children:e})})});0&&(module.exports={Accordion,AccordionBody,AccordionContent,AccordionContext,AccordionHeader,AccordionItem,AccordionTrigger,Autocomplete,Backdrop,Badge,Button,ButtonGroup,ButtonGroupContext,Card,CardBody,CardFooter,CardHeader,Checkbox,CheckboxGroup,Chip,Collapse,CollapseContent,CollapseContext,CollapseTrigger,DataList,Drawer,DrawerBody,DrawerContext,DrawerFooter,DrawerHeader,Field,Icon,List,ListGroup,ListItem,ListSubheader,Menu,MenuContext,MenuGroup,MenuItem,MenuSubmenu,MenuValueContext,Modal,ModalBody,ModalFooter,ModalHeader,MutationStatus,Popover,PopoverContent,PopoverTrigger,Portal,QueryStatus,Radio,RadioGroup,Result,ScrollArea,Select,Swipe,SwipeItem,Switch,Tab,Tabs,TextInput,Toolbar,Transition,assignRef,clsx,getOpenValuesByPathname,hasResizeObserver,mergeRefs,scrollToItem,useAccordion,useAccordionItem,useButtonGroup,useCheckboxGroup,useCollapse,useDebounce,useDisclosure,useDrawer,useEffectEvent,useElementSize,useInfiniteQuery,useLocalStorage,useMediaQuery,useMenu,useMenuItemValue,useModal,useMutation,useOnClickOutside,usePopover,usePrevious,useQuery,useRadioGroup,useResizeObserver,useStep,useValueEffect,useVirtualizer});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@unifiedsoftware/react-ui",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"react-dom": "^18.2.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@tanstack/react-virtual": "3.
|
|
24
|
+
"@tanstack/react-virtual": "3.7.0",
|
|
25
25
|
"clsx": "^2.1.1",
|
|
26
26
|
"merge-refs": "^1.3.0",
|
|
27
27
|
"react-custom-scrollbars-2": "^4.5.0",
|