@unifiedsoftware/react-ui 1.0.35 → 1.0.37
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 +61 -40
- package/dist/index.js +1 -1
- package/package.json +1 -13
package/dist/index.d.ts
CHANGED
|
@@ -258,8 +258,8 @@ interface AutocompleteMultipleProps<TAutocompleteItem extends AutocompleteItem,
|
|
|
258
258
|
onChange?: (value: TAutocompleteItem[]) => void;
|
|
259
259
|
onValueChange?: (value: TAutocompleteItem[TAutocompleteKeyField][]) => void;
|
|
260
260
|
}
|
|
261
|
-
type NativeAttrs$
|
|
262
|
-
type Props$
|
|
261
|
+
type NativeAttrs$c<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$c<TAutocompleteItem, TAutocompleteKeyField>>;
|
|
262
|
+
type Props$c<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = {
|
|
263
263
|
data: TAutocompleteItem[];
|
|
264
264
|
keyField?: TAutocompleteKeyField;
|
|
265
265
|
textField?: keyof TAutocompleteItem;
|
|
@@ -277,7 +277,7 @@ type Props$a<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField e
|
|
|
277
277
|
renderItem?: (item: TAutocompleteItem, props: ListItemProps) => React.ReactNode;
|
|
278
278
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
279
279
|
} & (AutocompleteSingleProps<TAutocompleteItem, TAutocompleteKeyField> | AutocompleteMultipleProps<TAutocompleteItem, TAutocompleteKeyField>);
|
|
280
|
-
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$
|
|
280
|
+
type AutocompleteProps<TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends AutocompleteKeyField<TAutocompleteItem> = 'key'> = Props$c<TAutocompleteItem, TAutocompleteKeyField> & NativeAttrs$c<TAutocompleteItem, TAutocompleteKeyField>;
|
|
281
281
|
|
|
282
282
|
declare const Autocomplete: <TAutocompleteItem extends AutocompleteItem, TAutocompleteKeyField extends keyof TAutocompleteItem = "key">(props: AutocompleteProps<TAutocompleteItem, TAutocompleteKeyField>) => react_jsx_runtime.JSX.Element;
|
|
283
283
|
|
|
@@ -289,7 +289,7 @@ declare const Backdrop: react.ForwardRefExoticComponent<BackdropProps & react.Re
|
|
|
289
289
|
|
|
290
290
|
type BadgePlacement = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
291
291
|
|
|
292
|
-
interface Props$
|
|
292
|
+
interface Props$b {
|
|
293
293
|
/**
|
|
294
294
|
* The placement of the badge relative to its content.
|
|
295
295
|
*/
|
|
@@ -299,15 +299,15 @@ interface Props$9 {
|
|
|
299
299
|
*/
|
|
300
300
|
content?: React.ReactNode;
|
|
301
301
|
}
|
|
302
|
-
type NativeAttrs$
|
|
303
|
-
type BadgeProps = Props$
|
|
302
|
+
type NativeAttrs$b = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$b>;
|
|
303
|
+
type BadgeProps = Props$b & NativeAttrs$b;
|
|
304
304
|
declare const Badge: React.FC<BadgeProps>;
|
|
305
305
|
|
|
306
306
|
type ButtonVariant = 'filled' | 'outlined' | 'flat' | 'text' | 'plain';
|
|
307
307
|
type ButtonColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
308
308
|
type ButtonSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
309
309
|
|
|
310
|
-
interface Props$
|
|
310
|
+
interface Props$a {
|
|
311
311
|
/**
|
|
312
312
|
* The HTML element type or React component to render as the button.
|
|
313
313
|
*/
|
|
@@ -346,9 +346,9 @@ interface Props$8 {
|
|
|
346
346
|
*/
|
|
347
347
|
disabled?: boolean;
|
|
348
348
|
}
|
|
349
|
-
type NativeAttrs$
|
|
350
|
-
type ButtonProps = Props$
|
|
351
|
-
declare const Button: react.ForwardRefExoticComponent<Props$
|
|
349
|
+
type NativeAttrs$a = Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, keyof Props$a>;
|
|
350
|
+
type ButtonProps = Props$a & NativeAttrs$a;
|
|
351
|
+
declare const Button: react.ForwardRefExoticComponent<Props$a & NativeAttrs$a & react.RefAttributes<HTMLButtonElement>>;
|
|
352
352
|
|
|
353
353
|
type CardSize = 'sm' | 'md' | 'lg';
|
|
354
354
|
|
|
@@ -382,7 +382,7 @@ type ChipVariant = 'filled' | 'outlined' | 'text';
|
|
|
382
382
|
type ChipColor = 'primary' | 'secondary' | 'success' | 'info' | 'warning' | 'danger';
|
|
383
383
|
type ChipSize = 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
384
384
|
|
|
385
|
-
interface Props$
|
|
385
|
+
interface Props$9 {
|
|
386
386
|
/**
|
|
387
387
|
* The HTML element type or React component to render as the chip.
|
|
388
388
|
*/
|
|
@@ -400,9 +400,9 @@ interface Props$7 {
|
|
|
400
400
|
*/
|
|
401
401
|
size?: ChipSize;
|
|
402
402
|
}
|
|
403
|
-
type NativeAttrs$
|
|
404
|
-
type ChipProps = Props$
|
|
405
|
-
declare const Chip: react.ForwardRefExoticComponent<Props$
|
|
403
|
+
type NativeAttrs$9 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$9>;
|
|
404
|
+
type ChipProps = Props$9 & NativeAttrs$9;
|
|
405
|
+
declare const Chip: react.ForwardRefExoticComponent<Props$9 & NativeAttrs$9 & react.RefAttributes<HTMLDivElement>>;
|
|
406
406
|
|
|
407
407
|
interface CollapseProps {
|
|
408
408
|
children: React.ReactNode;
|
|
@@ -458,7 +458,7 @@ interface IconProps {
|
|
|
458
458
|
}
|
|
459
459
|
declare const Icon: react.ForwardRefExoticComponent<IconProps & react.RefAttributes<unknown>>;
|
|
460
460
|
|
|
461
|
-
interface Props$
|
|
461
|
+
interface Props$8 {
|
|
462
462
|
/**
|
|
463
463
|
* The HTML element type or React component to render as the menu item.
|
|
464
464
|
*/
|
|
@@ -484,9 +484,9 @@ interface Props$6 {
|
|
|
484
484
|
*/
|
|
485
485
|
disabled?: boolean;
|
|
486
486
|
}
|
|
487
|
-
type NativeAttrs$
|
|
488
|
-
type MenuItemProps = Props$
|
|
489
|
-
declare const MenuItem: react.ForwardRefExoticComponent<Props$
|
|
487
|
+
type NativeAttrs$8 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$8 | 'items'>;
|
|
488
|
+
type MenuItemProps = Props$8 & NativeAttrs$8;
|
|
489
|
+
declare const MenuItem: react.ForwardRefExoticComponent<Props$8 & NativeAttrs$8 & react.RefAttributes<HTMLDivElement>>;
|
|
490
490
|
|
|
491
491
|
type MenuSubmenuProps = Omit<MenuItemProps, 'items'> & {
|
|
492
492
|
items?: MenuItemType[];
|
|
@@ -510,7 +510,7 @@ type MenuItemType = (MenuGroupProps & {
|
|
|
510
510
|
}) | (MenuItemProps & {
|
|
511
511
|
type?: 'item';
|
|
512
512
|
});
|
|
513
|
-
interface Props$
|
|
513
|
+
interface Props$7 {
|
|
514
514
|
/**
|
|
515
515
|
* The currently selected value of the menu.
|
|
516
516
|
*/
|
|
@@ -546,8 +546,8 @@ interface Props$5 {
|
|
|
546
546
|
*/
|
|
547
547
|
onItemSelect?: (props: MenuItemProps) => void;
|
|
548
548
|
}
|
|
549
|
-
type NativeAttrs$
|
|
550
|
-
type MenuProps = Props$
|
|
549
|
+
type NativeAttrs$7 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$7 | 'items'>;
|
|
550
|
+
type MenuProps = Props$7 & NativeAttrs$7 & {
|
|
551
551
|
items?: MenuItemType[];
|
|
552
552
|
};
|
|
553
553
|
declare const Menu: React.FC<MenuProps>;
|
|
@@ -634,8 +634,8 @@ interface SelectMultipleProps<TSelectItem extends SelectItem, TSelectKeyField ex
|
|
|
634
634
|
onChange?: (value: TSelectItem[]) => void;
|
|
635
635
|
onValueChange?: (value: TSelectItem[TSelectKeyField][]) => void;
|
|
636
636
|
}
|
|
637
|
-
type NativeAttrs$
|
|
638
|
-
type Props$
|
|
637
|
+
type NativeAttrs$6<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$6<TSelectItem, TSelectKeyField>>;
|
|
638
|
+
type Props$6<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = {
|
|
639
639
|
data: TSelectItem[];
|
|
640
640
|
keyField?: TSelectKeyField;
|
|
641
641
|
textField?: keyof TSelectItem;
|
|
@@ -651,11 +651,11 @@ type Props$4<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyFi
|
|
|
651
651
|
renderItem?: (item: TSelectItem, props: ListItemProps) => React.ReactNode;
|
|
652
652
|
renderNoData?: (props: ResultProps) => React.ReactNode;
|
|
653
653
|
} & (SelectSingleProps<TSelectItem, TSelectKeyField> | SelectMultipleProps<TSelectItem, TSelectKeyField>);
|
|
654
|
-
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props$
|
|
654
|
+
type SelectProps<TSelectItem extends SelectItem, TSelectKeyField extends SelectKeyField<TSelectItem> = 'key'> = Props$6<TSelectItem, TSelectKeyField> & NativeAttrs$6<TSelectItem, TSelectKeyField>;
|
|
655
655
|
|
|
656
656
|
declare const Select: <TSelectItem extends SelectItem, TSelectKeyField extends keyof TSelectItem = "key">(props: SelectProps<TSelectItem, TSelectKeyField>) => react_jsx_runtime.JSX.Element;
|
|
657
657
|
|
|
658
|
-
interface Props$
|
|
658
|
+
interface Props$5 {
|
|
659
659
|
name?: string;
|
|
660
660
|
value?: string;
|
|
661
661
|
defaultValue?: string;
|
|
@@ -665,11 +665,11 @@ interface Props$3 {
|
|
|
665
665
|
onChange?: (value: string) => void;
|
|
666
666
|
onCheckedChange?: (checked: boolean) => void;
|
|
667
667
|
}
|
|
668
|
-
type NativeAttrs$
|
|
669
|
-
type SwitchProps = Props$
|
|
670
|
-
declare const Switch: react.ForwardRefExoticComponent<Props$
|
|
668
|
+
type NativeAttrs$5 = Omit<React.LabelHTMLAttributes<HTMLLabelElement>, keyof Props$5>;
|
|
669
|
+
type SwitchProps = Props$5 & NativeAttrs$5;
|
|
670
|
+
declare const Switch: react.ForwardRefExoticComponent<Props$5 & NativeAttrs$5 & react.RefAttributes<HTMLLabelElement>>;
|
|
671
671
|
|
|
672
|
-
interface Props$
|
|
672
|
+
interface Props$4 {
|
|
673
673
|
/**
|
|
674
674
|
* The HTML element type or React component to render as the tab.
|
|
675
675
|
*/
|
|
@@ -695,15 +695,15 @@ interface Props$2 {
|
|
|
695
695
|
*/
|
|
696
696
|
endContent?: React.ReactNode;
|
|
697
697
|
}
|
|
698
|
-
type NativeAttrs$
|
|
699
|
-
type TabProps = Props$
|
|
700
|
-
declare const Tab: react.ForwardRefExoticComponent<Props$
|
|
698
|
+
type NativeAttrs$4 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$4>;
|
|
699
|
+
type TabProps = Props$4 & NativeAttrs$4;
|
|
700
|
+
declare const Tab: react.ForwardRefExoticComponent<Props$4 & NativeAttrs$4 & {
|
|
701
701
|
children?: react.ReactNode;
|
|
702
702
|
} & react.RefAttributes<HTMLDivElement>>;
|
|
703
703
|
|
|
704
704
|
type TabsAlignmet = 'start' | 'center' | 'end' | 'stretch';
|
|
705
705
|
|
|
706
|
-
interface Props$
|
|
706
|
+
interface Props$3 {
|
|
707
707
|
/**
|
|
708
708
|
* The currently selected value of the tabs.
|
|
709
709
|
*/
|
|
@@ -725,18 +725,18 @@ interface Props$1 {
|
|
|
725
725
|
*/
|
|
726
726
|
onClose?: (value: any) => void;
|
|
727
727
|
}
|
|
728
|
-
type NativeAttrs$
|
|
729
|
-
type TabsProps = Props$
|
|
728
|
+
type NativeAttrs$3 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$3>;
|
|
729
|
+
type TabsProps = Props$3 & NativeAttrs$3;
|
|
730
730
|
declare const Tabs: React.FC<TabsProps>;
|
|
731
731
|
|
|
732
|
-
interface Props {
|
|
732
|
+
interface Props$2 {
|
|
733
733
|
inputRef?: React.RefObject<HTMLInputElement>;
|
|
734
734
|
startContent?: React.ReactNode;
|
|
735
735
|
endContent?: React.ReactNode;
|
|
736
736
|
}
|
|
737
|
-
type NativeAttrs = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props>;
|
|
738
|
-
type TextInputProps = Props & NativeAttrs;
|
|
739
|
-
declare const TextInput: react.ForwardRefExoticComponent<Props & NativeAttrs & react.RefAttributes<HTMLInputElement>>;
|
|
737
|
+
type NativeAttrs$2 = Omit<React.InputHTMLAttributes<HTMLInputElement>, keyof Props$2>;
|
|
738
|
+
type TextInputProps = Props$2 & NativeAttrs$2;
|
|
739
|
+
declare const TextInput: react.ForwardRefExoticComponent<Props$2 & NativeAttrs$2 & react.RefAttributes<HTMLInputElement>>;
|
|
740
740
|
|
|
741
741
|
type ToolbarSize = 'auto' | 'sm' | 'md' | 'lg';
|
|
742
742
|
|
|
@@ -763,6 +763,27 @@ interface TransitionProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
763
763
|
}
|
|
764
764
|
declare const Transition: react.ForwardRefExoticComponent<TransitionProps & react.RefAttributes<HTMLElement>>;
|
|
765
765
|
|
|
766
|
+
interface Props$1 {
|
|
767
|
+
/**
|
|
768
|
+
* The HTML element type or React component to render as the tab.
|
|
769
|
+
*/
|
|
770
|
+
as?: React.ElementType;
|
|
771
|
+
width?: number;
|
|
772
|
+
}
|
|
773
|
+
type NativeAttrs$1 = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props$1>;
|
|
774
|
+
type SwipeItemProps = Props$1 & NativeAttrs$1;
|
|
775
|
+
declare const SwipeItem: react.ForwardRefExoticComponent<Props$1 & NativeAttrs$1 & {
|
|
776
|
+
children?: react.ReactNode;
|
|
777
|
+
} & react.RefAttributes<HTMLDivElement>>;
|
|
778
|
+
|
|
779
|
+
interface Props {
|
|
780
|
+
gap?: number;
|
|
781
|
+
autoHide?: boolean;
|
|
782
|
+
}
|
|
783
|
+
type NativeAttrs = Omit<React.HTMLAttributes<HTMLDivElement>, keyof Props>;
|
|
784
|
+
type SwipeProps = Props & NativeAttrs;
|
|
785
|
+
declare const Swipe: React.FC<SwipeProps>;
|
|
786
|
+
|
|
766
787
|
declare const scrollToItem: (parentElement: Element, currentElement: Element) => void;
|
|
767
788
|
|
|
768
789
|
type ClassDictionary = Record<string, any>;
|
|
@@ -774,4 +795,4 @@ type ReactRef<T> = React.RefCallback<T> | React.MutableRefObject<T>;
|
|
|
774
795
|
declare function assignRef<T = any>(ref: ReactRef<T> | null | undefined, value: T): void;
|
|
775
796
|
declare function mergeRefs<T>(...refs: (ReactRef<T> | null | undefined)[]): (node: T | null) => void;
|
|
776
797
|
|
|
777
|
-
export { Accordion, AccordionContent, AccordionContentProps, AccordionHeader, AccordionHeaderProps, AccordionItem, AccordionItemProps, AccordionPanel, AccordionPanelProps, AccordionProps, AccordionTrigger, AccordionTriggerProps, Autocomplete, AutocompleteItem, AutocompleteKeyField, AutocompleteMultipleProps, AutocompleteProps, AutocompleteSingleProps, Backdrop, BackdropProps, Badge, BadgeProps, Button, ButtonColor, ButtonProps, ButtonSize, ButtonVariant, Card, CardBody, CardBodyProps, CardHeader, CardHeaderProps, CardProps, Chip, ChipProps, Collapse, CollapseContent, CollapseContentProps, CollapseContext, CollapseContextValue, CollapseProps, CollapseTrigger, CollapseTriggerProps, Disclosure, Drawer, DrawerPosition, DrawerProps, DrawerSize, Field, FieldProps, Icon, IconProps, InfiniteData, List, ListGroup, ListGroupProps, ListItem, ListItemProps, ListProps, ListSize, ListSubheader, ListSubheaderProps, Menu, MenuContext, MenuContextValue, MenuGroup, MenuGroupItemType, MenuGroupProps, MenuItem, MenuItemProps, MenuItemType, MenuProps, MenuSubmenu, MenuSubmenuProps, MenuValueContext, Popover, PopoverContent, PopoverContentProps, PopoverProps, PopoverTrigger, PopoverTriggerProps, Portal, PortalProps, QueryFunction, QueryOptions, QueryStatus, ReactRef, Resize, Result, ResultProps, ResultStatus, ScrollAlignment, ScrollArea, ScrollAreaProps, ScrollBehavior, ScrollToOptions, Select, SelectItem, SelectKeyField, SelectMultipleProps, SelectProps, SelectSingleProps, Switch, SwitchProps, Tab, TabProps, Tabs, TabsAlignmet, TabsProps, TextInput, TextInputProps, Toolbar, ToolbarProps, ToolbarSize, Transition, TransitionProps, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseResizeObserverOptions, VirtualItem, Virtualizer, VirtualizerOptions, assignRef, clsx, getOpenValuesByPathname, hasResizeObserver, mergeRefs, scrollToItem, useAccordionItem, useCollapse, useDebounce, useDisclosure, useEffectEvent, useElementSize, useInfiniteQuery, useLocalStorage, useMediaQuery, useMenu, useMenuItemValue, useOnClickOutside, usePopover, usePrevious, useResizeObserver, useStep, useValueEffect, useVirtualizer };
|
|
798
|
+
export { Accordion, AccordionContent, AccordionContentProps, AccordionHeader, AccordionHeaderProps, AccordionItem, AccordionItemProps, AccordionPanel, AccordionPanelProps, AccordionProps, AccordionTrigger, AccordionTriggerProps, Autocomplete, AutocompleteItem, AutocompleteKeyField, AutocompleteMultipleProps, AutocompleteProps, AutocompleteSingleProps, Backdrop, BackdropProps, Badge, BadgeProps, Button, ButtonColor, ButtonProps, ButtonSize, ButtonVariant, Card, CardBody, CardBodyProps, CardHeader, CardHeaderProps, CardProps, Chip, ChipProps, Collapse, CollapseContent, CollapseContentProps, CollapseContext, CollapseContextValue, CollapseProps, CollapseTrigger, CollapseTriggerProps, Disclosure, Drawer, DrawerPosition, DrawerProps, DrawerSize, Field, FieldProps, Icon, IconProps, InfiniteData, List, ListGroup, ListGroupProps, ListItem, ListItemProps, ListProps, ListSize, ListSubheader, ListSubheaderProps, Menu, MenuContext, MenuContextValue, MenuGroup, MenuGroupItemType, MenuGroupProps, MenuItem, MenuItemProps, MenuItemType, MenuProps, MenuSubmenu, MenuSubmenuProps, MenuValueContext, Popover, PopoverContent, PopoverContentProps, PopoverProps, PopoverTrigger, PopoverTriggerProps, Portal, PortalProps, QueryFunction, QueryOptions, QueryStatus, ReactRef, Resize, Result, ResultProps, ResultStatus, ScrollAlignment, ScrollArea, ScrollAreaProps, ScrollBehavior, ScrollToOptions, Select, SelectItem, SelectKeyField, SelectMultipleProps, SelectProps, SelectSingleProps, Swipe, SwipeItem, SwipeItemProps, SwipeProps, Switch, SwitchProps, Tab, TabProps, Tabs, TabsAlignmet, TabsProps, TextInput, TextInputProps, Toolbar, ToolbarProps, ToolbarSize, Transition, TransitionProps, UseInfiniteQueryOptions, UseInfiniteQueryResult, UseResizeObserverOptions, VirtualItem, Virtualizer, VirtualizerOptions, assignRef, clsx, getOpenValuesByPathname, hasResizeObserver, mergeRefs, scrollToItem, useAccordionItem, useCollapse, useDebounce, useDisclosure, useEffectEvent, useElementSize, useInfiniteQuery, useLocalStorage, useMediaQuery, useMenu, useMenuItemValue, useOnClickOutside, usePopover, usePrevious, useResizeObserver, useStep, useValueEffect, useVirtualizer };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var $n=Object.create;var _t=Object.defineProperty;var _n=Object.getOwnPropertyDescriptor;var Hn=Object.getOwnPropertyNames;var kn=Object.getPrototypeOf,On=Object.prototype.hasOwnProperty;var Vn=(e,t)=>{for(var r in t)_t(e,r,{get:t[r],enumerable:!0})},So=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Hn(t))!On.call(e,n)&&n!==r&&_t(e,n,{get:()=>t[n],enumerable:!(o=_n(t,n))||o.enumerable});return e};var N=(e,t,r)=>(r=e!=null?$n(kn(e)):{},So(t||!e||!e.__esModule?_t(r,"default",{value:e,enumerable:!0}):r,e)),Fn=e=>So(_t({},"__esModule",{value:!0}),e);var Ys={};Vn(Ys,{Accordion:()=>Eo,AccordionContent:()=>dr,AccordionHeader:()=>cr,AccordionItem:()=>qo,AccordionPanel:()=>pr,AccordionTrigger:()=>vr,Autocomplete:()=>zr,Backdrop:()=>qt,Badge:()=>Kr,Button:()=>ae,Card:()=>Ur,CardBody:()=>Wr,CardHeader:()=>qr,Chip:()=>Zr,Collapse:()=>Te,CollapseContent:()=>le,CollapseContext:()=>Bt,CollapseTrigger:()=>ie,Drawer:()=>tn,Field:()=>rn,Icon:()=>I,List:()=>W,ListGroup:()=>Nr,ListItem:()=>_,ListSubheader:()=>_r,Menu:()=>xn,MenuContext:()=>to,MenuGroup:()=>mt,MenuItem:()=>oe,MenuSubmenu:()=>pt,MenuValueContext:()=>De,Popover:()=>et,PopoverContent:()=>tt,PopoverTrigger:()=>rt,Portal:()=>je,QueryStatus:()=>mo,Result:()=>nt,ScrollArea:()=>ue,Select:()=>yn,Switch:()=>bn,Tab:()=>Mn,Tabs:()=>wn,TextInput:()=>An,Toolbar:()=>Nn,Transition:()=>be,assignRef:()=>ht,clsx:()=>T,getOpenValuesByPathname:()=>un,hasResizeObserver:()=>fo,mergeRefs:()=>ve,scrollToItem:()=>uo,useAccordionItem:()=>Yo,useCollapse:()=>he,useDebounce:()=>ko,useDisclosure:()=>ne,useEffectEvent:()=>Tt,useElementSize:()=>Dt,useInfiniteQuery:()=>Do,useLocalStorage:()=>Ao,useMediaQuery:()=>Oo,useMenu:()=>ct,useMenuItemValue:()=>ln,useOnClickOutside:()=>Ot,usePopover:()=>V,usePrevious:()=>No,useResizeObserver:()=>Bo,useStep:()=>Ho,useValueEffect:()=>Go,useVirtualizer:()=>Ke});module.exports=Fn(Ys);var Io=require("react");var a="us-";var uo=(e,t)=>{let r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),n="smooth",l=t.previousSibling,i=l?.getBoundingClientRect()||o;if(r.left>i.left){let p=0;l&&(p=i.left-r.left+e.scrollLeft+i.width/4),e.scrollTo({behavior:n,left:p})}let c=t.nextSibling,u=c?.getBoundingClientRect()||o;if(r.right<u.right){let p=e.scrollWidth;c&&(p=u.right-r.right+e.scrollLeft-u.width/4),e.scrollTo({behavior:n,left:p})}};function Po(e){let t,r,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]&&(r=Po(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function Dn(...e){let t=0,r,o,n="";for(;t<e.length;)(r=e[t++])&&(o=Po(r))&&(n&&(n+=" "),n+=o);return n}var T=Dn;function ht(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 zn(...e){return t=>{e.forEach(r=>{ht(r,t)})}}var ve=zn;var Mo=require("react/jsx-runtime"),Bn=(0,Io.forwardRef)((e,t)=>{let{children:r,className:o,...n}=e;return(0,Mo.jsx)("div",{ref:t,className:T(`${a}accordion`,o),...n,children:r})}),Eo=Bn;var ye=require("react"),Wo=require("uuid");var xe=require("react");var wo=require("react");var Ht=require("react"),Gn=typeof window<"u"?Ht.useLayoutEffect:Ht.useEffect,Lo=Gn;function Kn(e){let t=(0,wo.useRef)(e);Lo(()=>{t.current=e},[e])}var po=Kn;function Ao(e,t){let r=(0,xe.useCallback)(()=>{if(typeof window>"u")return t;try{let c=window.localStorage.getItem(e);return c?Xn(c):t}catch(c){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,c),t}},[t,e]),[o,n]=(0,xe.useState)(r),l=(0,xe.useCallback)(c=>{typeof window>"u"&&console.warn(`Tried setting localStorage key \u201C${e}\u201D even though environment is not a client`);try{let u=c instanceof Function?c(o):c;window.localStorage.setItem(e,JSON.stringify(u)),n(u),window.dispatchEvent(new Event("local-storage"))}catch(u){console.warn(`Error setting localStorage key \u201C${e}\u201D:`,u)}},[e,o]);(0,xe.useEffect)(()=>{n(r())},[]);let i=(0,xe.useCallback)(()=>{n(r())},[r]);return po("storage",i),po("local-storage",i),[o,l]}function Xn(e){try{return e==="undefined"?void 0:JSON.parse(e??"")}catch{return}}var kt=require("react"),No=e=>{let t=(0,kt.useRef)();return(0,kt.useEffect)(()=>{t.current=e}),t.current};var $o=require("react");function Un({defaultValue:e}={}){let[t,r]=(0,$o.useState)(e||!1);return{isOpen:t,onOpen:()=>{r(!0)},onClose:()=>{r(!1)},onToggle:()=>{r(i=>!i)}}}var ne=Un;var _o=require("react"),Wn=(e,t)=>{(0,_o.useEffect)(()=>{let r=o=>{!e.current||e.current.contains(o.target)||t(o)};return document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}},[e,t])},Ot=Wn;var se=require("react"),Ho=e=>{let[t,r]=(0,se.useState)(1),o=(0,se.useMemo)(()=>t+1<=e,[t,e]),n=(0,se.useMemo)(()=>t-1>=1,[t]),l=(0,se.useCallback)(p=>{let m=p instanceof Function?p(t):p;if(m>=1&&m<=e){r(m);return}throw new Error("Step not valid")},[e,t]),i=(0,se.useCallback)(()=>{o&&r(p=>p+1)},[o]),c=(0,se.useCallback)(()=>{n&&r(p=>p-1)},[n]),u=(0,se.useCallback)(()=>{r(1)},[]);return[t,{goToNextStep:i,goToPrevStep:c,canGoToNextStep:o,canGoToPrevStep:n,setStep:l,reset:u}]};var Vt=require("react");function Qn(e,t){let[r,o]=(0,Vt.useState)(e);return(0,Vt.useEffect)(()=>{let n=setTimeout(()=>o(e),t||500);return()=>{clearTimeout(n)}},[e,t]),r}var ko=Qn;var Ft=require("react");function Yn(e){let t=l=>typeof window<"u"?window.matchMedia(l).matches:!1,[r,o]=(0,Ft.useState)(t(e));function n(){o(t(e))}return(0,Ft.useEffect)(()=>{let l=window.matchMedia(e);return n(),l.addListener?l.addListener(n):l.addEventListener("change",n),()=>{l.removeListener?l.removeListener(n):l.removeEventListener("change",n)}},[e]),r}var Oo=Yn;var Vo=require("@tanstack/react-virtual"),Fo=require("react");function qn(e){let{parentRef:t,total:r,count:o=0,overscan:n=5,hasNextPage:l,isFetchingNextPage:i,onFetchNextPage:c,estimateSize:u}=e,p=(0,Vo.useVirtualizer)({count:r||(l?o+1:o),getScrollElement:()=>t.current,estimateSize:u,overscan:n});return(0,Fo.useEffect)(()=>{if(!c)return;let[m]=[...p.getVirtualItems()].reverse();m&&m.index>=o-1&&l&&!i&&c?.()},[l,c,o,i,p.getVirtualItems()]),{getVirtualItems:p.getVirtualItems,getTotalSize:p.getTotalSize,scrollToIndex:(m,s)=>{p.scrollToIndex(m,s)},scrollToOffset:(m,s)=>{p.scrollToOffset(m,s)}}}var Ke=qn;var Ce=require("react");var mo=(n=>(n[n.IDLE=0]="IDLE",n[n.LOADING=1]="LOADING",n[n.SUCCESS=2]="SUCCESS",n[n.ERROR=3]="ERROR",n))(mo||{});function Jn(e,t=[]){let[r,o]=(0,Ce.useState)(0),[n,l]=(0,Ce.useState)({pages:[]}),[i,c]=(0,Ce.useState)(),[u,p]=(0,Ce.useState)(!0),[m,s]=(0,Ce.useState)(!1),x=async()=>{try{o(1),c(void 0),s(!0);let f=n.pages.length-1,y=e.getNextPage(n.pages[f],n.pages),v=await e.query({page:y}),g={pages:[...n.pages,v]};l(g);let b=g.pages.length-1,C=e.getNextPage(g.pages[b],g.pages);p(C!==void 0),s(!1),o(2)}catch(f){c(f),o(3)}};return(0,Ce.useEffect)(()=>{(async()=>{try{o(1),c(void 0),s(!0);let y=void 0,v=await e.query({page:y});l({pages:[v]});let g=e.getNextPage(v,[v]);p(g!==void 0),s(!1),o(2)}catch(y){c(y),o(3)}})()},t),{status:r,data:n,error:i,hasNextPage:u,isFetchingNextPage:m,fetchNextPage:x}}var Do=Jn;var ge=require("react"),Zn={width:0,height:0};function jn(e){let t=(0,ge.useRef)(0),[r,o]=(0,ge.useState)(Zn),n=(0,ge.useMemo)(()=>typeof window<"u"?new ResizeObserver(l=>{let i=l[0];i&&(cancelAnimationFrame(t.current),t.current=requestAnimationFrame(()=>{(e.ref?.current??e.target)&&(e.callback?.(r),o({width:i.contentRect.width,height:i.contentRect.height}))}))}):null,[]);return(0,ge.useEffect)(()=>{let l=e.ref?.current??e.target;return l&&n?.observe(l),()=>{n?.disconnect(),t.current&&cancelAnimationFrame(t.current)}},[e.ref?.current,e.target]),r}var Dt=jn;var zo=require("react");function fo(){return typeof window.ResizeObserver<"u"}function es(e){let{ref:t,onResize:r}=e;(0,zo.useEffect)(()=>{let o=t?.current;if(o)if(fo()){let n=new window.ResizeObserver(l=>{l.length&&r()});return n.observe(o),()=>{o&&n.unobserve(o)}}else return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[t,r])}var Bo=es;var Xe=require("react");function ts(e){let t=(0,Xe.useRef)(null);return(0,Xe.useLayoutEffect)(()=>{t.current=e},[e]),(0,Xe.useCallback)((...r)=>{let o=t.current;return o(...r)},[])}var Tt=ts;var Ue=require("react");function os(e){let[t,r]=(0,Ue.useState)(e),o=(0,Ue.useRef)(null),n=Tt(()=>{if(!o.current)return;let i=o.current.next();if(i.done){o.current=null;return}t===i.value?n():r(i.value)});(0,Ue.useLayoutEffect)(()=>{o.current&&n()});let l=Tt(i=>{o.current=i(t),n()});return[t,l]}var Go=os;var fe=require("react");var zt=require("react"),Ko=(0,zt.createContext)(null),he=()=>{let e=(0,zt.useContext)(Ko);if(!e)throw new Error("`useCollapse` must be used within a `<Collapse />`");return e},Bt=Ko;var Xo=require("react/jsx-runtime"),rs=({children:e,isOpen:t,onOpen:r,onClose:o,onToggle:n})=>{let l=(0,fe.useRef)(null),[i,c]=(0,fe.useState)(t??!1),[u,p]=(0,fe.useState)(!1),[m,s]=fe.Children.toArray(e),x=()=>{c(!0),r?.()},f=()=>{c(!1),o?.()},y=()=>{c(v=>!v),n?.()};return(0,fe.useEffect)(()=>{t!==void 0&&c(t),setTimeout(()=>{p(!!t)},100)},[t]),(0,Xo.jsxs)(Bt.Provider,{value:{collapseRef:l,isOpen:i,heightAuto:u,onOpen:x,onClose:f,onToggle:y},children:[m,s]})},Te=rs;var Uo=N(require("clsx")),We=require("react");var ns=(0,We.forwardRef)(({children:e},t)=>{let{collapseRef:r,isOpen:o,heightAuto:n}=he(),l=We.Children.only(e);return(0,We.cloneElement)(l,{...l.props,ref:i=>{r.current=i,t!==null&&(t.current=i)},style:{...l.props.style,height:o&&n?"auto":o||!o&&n?r.current?.scrollHeight:0},className:(0,Uo.default)(`${a}collapse`,l.props.className)})}),le=ns;var Qe=require("react");var ss=(0,Qe.forwardRef)(({children:e},t)=>{let{collapseRef:r,onToggle:o}=he(),n=Qe.Children.only(e),{onClick:l,...i}=n.props;return(0,Qe.cloneElement)(n,{ref:t,onClick:c=>{r.current&&(o(),l?.(c))},...i})}),ie=ss;var Gt=require("react/jsx-runtime"),Qo=(0,ye.createContext)(null),Yo=()=>{let e=(0,ye.useContext)(Qo);if(!e)throw new Error("`useAccordionItem` must be used within a `<AccordionItem />`");return e},ls=(0,ye.forwardRef)((e,t)=>{let{children:r,className:o,value:n,...l}=e,[i]=(0,ye.useState)((0,Wo.v4)()),c=n??i,{isOpen:u,onOpen:p,onClose:m,onToggle:s}=ne({defaultValue:!0}),x=a;return(0,Gt.jsx)(Qo.Provider,{value:{value:c},children:(0,Gt.jsx)("div",{ref:t,className:T(`${x}accordion-item`,o),...l,children:(0,Gt.jsx)(Te,{isOpen:u,onOpen:p,onClose:m,onToggle:s,children:r})})})}),qo=ls;var ar=require("react");var Jo=require("react"),_e=require("react/jsx-runtime"),is=(0,Jo.forwardRef)((e,t)=>(0,_e.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,_e.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,_e.jsx)("path",{d:"M12 9v4"}),(0,_e.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,_e.jsx)("path",{d:"M12 16h.01"})]})),vo=is;var Zo=require("react"),yt=require("react/jsx-runtime"),as=(0,Zo.forwardRef)((e,t)=>(0,yt.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,yt.jsx)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,yt.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})]})),K=as;var jo=require("react"),Rt=require("react/jsx-runtime"),cs=(0,jo.forwardRef)((e,t)=>(0,Rt.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,Rt.jsx)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,Rt.jsx)("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"})]})),X=cs;var er=require("react"),Ye=require("react/jsx-runtime"),us=(0,er.forwardRef)((e,t)=>(0,Ye.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,Ye.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,Ye.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,Ye.jsx)("path",{d:"M9 12l2 2l4 -4"})]})),xo=us;var tr=require("react"),qe=require("react/jsx-runtime"),ps=(0,tr.forwardRef)((e,t)=>(0,qe.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,qe.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,qe.jsx)("path",{d:"M18 6l-12 12"}),(0,qe.jsx)("path",{d:"M6 6l12 12"})]})),He=ps;var or=require("react"),ke=require("react/jsx-runtime"),ms=(0,or.forwardRef)((e,t)=>(0,ke.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,ke.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,ke.jsx)("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),(0,ke.jsx)("path",{d:"M12 9h.01"}),(0,ke.jsx)("path",{d:"M11 12h1v4h1"})]})),Co=ms;var rr=require("react"),bt=require("react/jsx-runtime"),ds=(0,rr.forwardRef)((e,t)=>(0,bt.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,bt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,bt.jsx)("path",{d:"M12 3a9 9 0 1 0 9 9"})]})),Oe=ds;var nr=require("react"),Je=require("react/jsx-runtime"),fs=(0,nr.forwardRef)((e,t)=>(0,Je.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,Je.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,Je.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,Je.jsx)("path",{d:"M10 10l4 4m0 -4l-4 4"})]})),go=fs;var lr=N(require("clsx")),ir=require("react");var sr=N(require("clsx")),Ze=require("react");var vs=(0,Ze.forwardRef)(({children:e,size:t},r)=>{let o=Ze.Children.only(e);return(0,Ze.cloneElement)(o,{ref:r,...o.props,className:(0,sr.default)(`${a}icon`,{[`${a}font-size-${t}`]:t},o.props.className)})}),I=vs;var Re=require("react/jsx-runtime"),ae=(0,ir.forwardRef)(({as:e="button",children:t,className:r,role:o="presentation",variant:n="text",color:l="primary",size:i="md",iconOnly:c,startContent:u,endContent:p,block:m,loading:s,disabled:x,...f},y)=>{let v=a;return(0,Re.jsxs)(e,{ref:y,className:(0,lr.default)(`${v}button`,{[`${v}button--${n}`]:n,[`${v}button--${l}`]:l,[`${v}button--${i}`]:i,[`${v}button--block`]:m,[`${v}button--icon-only`]:c,[`${v}button--disabled`]:x},r),role:o,disabled:x,...f,children:[(0,Re.jsx)("div",{className:`${v}overlay`}),(0,Re.jsx)("div",{className:`${v}outline`}),s?(0,Re.jsx)(I,{children:(0,Re.jsx)(Oe,{className:`${v}animation-spin`})}):u,(0,Re.jsx)("div",{className:`${v}button__content`,children:t}),p]})});var O=require("react/jsx-runtime"),xs=(0,ar.forwardRef)((e,t)=>{let{className:r,title:o,subtitle:n,startContent:l,endContent:i,...c}=e,u=a,{isOpen:p}=he();return(0,O.jsx)(ie,{children:(0,O.jsxs)("div",{ref:t,className:T(`${u}accordion-header`,r),...c,children:[l&&(0,O.jsx)("div",{className:`${u}accordion-header__start-content`,children:l}),(0,O.jsxs)("div",{className:`${u}accordion-header__content`,children:[(0,O.jsx)("div",{className:`${u}accordion-header__title`,children:o}),n&&(0,O.jsx)("div",{className:`${u}accordion-header__subtitle`,children:n})]}),(0,O.jsx)("div",{className:`${u}accordion-header__end-content`,children:(0,O.jsxs)("div",{className:"us-d-flex us-items-center us-gap-1",children:[i,(0,O.jsx)(ae,{type:"button",variant:"text",color:"secondary",size:"sm",iconOnly:!0,children:(0,O.jsx)(I,{children:p?(0,O.jsx)(X,{}):(0,O.jsx)(K,{})})})]})})]})})}),cr=xs;var ur=require("react");var Kt=require("react/jsx-runtime"),Cs=(0,ur.forwardRef)(({children:e,className:t,...r},o)=>(0,Kt.jsx)(le,{children:(0,Kt.jsx)("div",{ref:o,children:(0,Kt.jsx)("div",{className:T(`${a}accordion-panel`,t),...r,children:e})})})),pr=Cs;var mr=require("react");var Xt=require("react/jsx-runtime"),gs=(0,mr.forwardRef)(({children:e,className:t,...r},o)=>(0,Xt.jsx)(le,{children:(0,Xt.jsx)("div",{ref:o,children:(0,Xt.jsx)("div",{className:T(`${a}accordion-content`,t),...r,children:e})})})),dr=gs;var fr=require("react"),xr=require("react/jsx-runtime"),hs=(0,fr.forwardRef)(({children:e},t)=>(0,xr.jsx)(ie,{ref:t,children:e})),vr=hs;var F=require("react");var U=require("react");var Cr=require("react"),gr=require("react-dom");var hr=require("react/jsx-runtime"),Ts=(0,Cr.forwardRef)(({children:e,container:t},r)=>(0,gr.createPortal)((0,hr.jsx)("div",{ref:r,className:`${a}portal`,children:e}),t||document.body)),je=Ts;var Tr=N(require("clsx")),yr=require("react"),Rr=require("react-transition-group"),br=require("react/jsx-runtime"),ys=(0,yr.forwardRef)((e,t)=>{let{children:r,className:o,nodeRef:n,name:l,isOpen:i,enter:c=0,leave:u=0,mountOnEnter:p,unmountOnExit:m,onExited:s}=e;return(0,br.jsx)(Rr.CSSTransition,{nodeRef:n,in:i,appear:!0,timeout:{enter:c,exit:u},mountOnEnter:p,unmountOnExit:m,classNames:(0,Tr.default)(l,o),onExited:s,children:r})}),be=ys;var Ut=require("react"),Sr=(0,Ut.createContext)(null),V=()=>{let e=(0,Ut.useContext)(Sr);if(!e)throw new Error("`usePopover` must be used within a `<Popover />`");return e},Pr=Sr;var St=require("react/jsx-runtime"),Rs=e=>{let{children:t,target:r,autoClose:o=!0,triggerClosable:n=!0,isOpen:l,onOpen:i,onClose:c,onToggle:u,onAfterClose:p}=e,m=(0,U.useRef)(null),s=(0,U.useRef)(null),[x,f]=(0,U.useState)(e.isOpen||!1),[y,v]=U.Children.toArray(t),g=a,b=()=>{l!==void 0?i?.():f(!0)},C=()=>{l!==void 0?c?.():f(!1)},d=()=>{l!==void 0?u?.():f(h=>!h)};return(0,U.useEffect)(()=>{f(l||!1)},[l]),(0,St.jsxs)(Pr.Provider,{value:{triggerRef:m,contentRef:s,target:r,isOpen:x,autoClose:o,triggerClosable:n,onOpen:b,onClose:C,onToggle:d},children:[y,(0,St.jsx)(be,{nodeRef:s,isOpen:x,enter:300,leave:150,name:`${g}popover`,unmountOnExit:!0,onExited:p,children:(0,St.jsx)(je,{children:(0,U.cloneElement)(U.Children.only(v),{...v.props,ref:s})})})]})},et=Rs;var ce=require("react");var Er=require("react/jsx-runtime");function Ir(e){return e==null?null:e.scrollHeight>e.clientHeight?e:Ir(e.parentNode)}var bs=(0,ce.forwardRef)((e,t)=>{let{children:r,style:o,className:n,onClick:l,...i}=e,{triggerRef:c,contentRef:u,target:p,onClose:m}=V(),s=a,x=(0,ce.useRef)(null),[f,y]=(0,ce.useState)({position:"absolute",top:0,left:0,visibility:"hidden"}),v=Ir(c.current)||document.body;Dt({target:v,callback:()=>{b()}}),Ot(u,C=>{let d=c.current;!d||d.contains(C.target)||m()});let g=C=>{C.stopPropagation(),l?.(C)},b=(0,ce.useCallback)(()=>{let C=u.current?.getBoundingClientRect(),d=c.current?.getBoundingClientRect();if(!C||!d||!v)return;let h={innerWidth:window.innerWidth,innerHeight:window.innerHeight},R={width:d.width,height:d.height,top:d.top+window.scrollY,bottom:d.top+d.height+window.scrollY,left:d.left+window.scrollX,right:d.left+d.width+window.scrollX},E=R.left+C.width>h.innerWidth,re=R.top+C.height>h.innerHeight+window.scrollY,B={...p&&{width:R.width,minWidth:"auto"},position:"absolute",top:re?void 0:R.bottom,bottom:re?h.innerHeight-R.top:void 0,left:E?void 0:R.left,right:E?h.innerWidth-R.right:void 0,visibility:void 0};y(B)},[]);return(0,ce.useEffect)(()=>(b(),v.addEventListener("scroll",b),window.addEventListener("orientationchange",b),()=>{v.removeEventListener("scroll",b),window.removeEventListener("orientationchange",b)}),[]),(0,Er.jsx)("div",{ref:ve(x,t),className:T(`${s}popover`,n),style:{...o,...f},onClick:g,...i,children:r})}),tt=bs;var ot=require("react");var Ss=(0,ot.forwardRef)((e,t)=>{let{children:r,onClick:o,...n}=e,{isOpen:l,triggerRef:i,triggerClosable:c,onOpen:u,onClose:p}=V(),m=ot.Children.only(typeof r=="function"?r(l):r),s=x=>{x.preventDefault(),c&&l?p():u(),o?.(x),m.props.onClick?.(x)};return(0,ot.cloneElement)(m,{...m.props,...n,ref:ve(t,i),onClick:s})}),rt=Ss;var $=require("react/jsx-runtime"),Ps=({className:e,title:t,subtitle:r,icon:o,status:n,extra:l,size:i="md",...c})=>{let u=a;return(0,$.jsxs)("div",{className:T(`${u}result`,{[`${u}result--${n}`]:n,[`${u}result--${i}`]:i},e),...c,children:[o?(0,$.jsx)("div",{className:`${u}result__icon`,children:o}):n?(0,$.jsx)("div",{className:`${u}result__icon`,children:n==="sucess"?(0,$.jsx)(I,{children:(0,$.jsx)(xo,{})}):n==="info"?(0,$.jsx)(I,{children:(0,$.jsx)(Co,{})}):n==="warning"?(0,$.jsx)(I,{children:(0,$.jsx)(vo,{})}):n==="danger"?(0,$.jsx)(I,{children:(0,$.jsx)(go,{})}):null}):null,(t||r)&&(0,$.jsxs)("div",{className:`${u}result__content`,children:[t&&(0,$.jsx)("div",{className:`${u}result__title`,children:t}),r&&(0,$.jsx)("div",{className:`${u}result__subtitle`,children:r})]}),l&&(0,$.jsx)("div",{className:`${u}result__extra`,children:l})]})},nt=Ps;var st=require("react");var Mr=require("react");var Lr=require("react/jsx-runtime"),Is=(0,Mr.forwardRef)(({as:e="div",children:t,className:r,size:o="md",...n},l)=>{let i=a;return(0,Lr.jsx)(e,{ref:l,className:T(`${i}list`,{[`${i}list--${o}`]:o},r),...n,children:t})}),W=Is;var Ar=require("react");var wr=require("react");var Q=require("react/jsx-runtime"),Es=(0,wr.forwardRef)(({as:e="div",children:t,className:r,title:o,subtitle:n,startContent:l,endContent:i,level:c=1,hoverable:u,selected:p,disabled:m,slotProps:s,style:x,onClick:f,...y},v)=>{let g=a,b=C=>{f?.(C)};return(0,Q.jsxs)(e,{ref:v,className:T(`${g}list-item`,{[`${g}list-item--hoverable`]:u,[`${g}list-item--selected`]:p,[`${g}list-item--disabled`]:m},r),style:{paddingLeft:c<=1?`var(--${g}list-item-padding-x)`:`calc(${c} * var(--${g}list-item-padding-level))`,...x},onClick:b,...y,children:[(u||p)&&(0,Q.jsx)("div",{className:`${g}overlay`}),l&&(0,Q.jsx)("div",{className:`${g}list-item__start-content`,children:l}),(0,Q.jsx)("div",{className:`${g}list-item__content`,children:o||n?(0,Q.jsxs)(Q.Fragment,{children:[(0,Q.jsx)("span",{...s?.title,className:T(`${g}list-item__title`,s?.title?.className),children:o}),(0,Q.jsx)("span",{...s?.subtitle,className:T(`${g}list-item__subtitle`,s?.subtitle?.className),children:n})]}):t}),i&&(0,Q.jsx)("div",{className:`${g}list-item__end-content`,children:i})]})}),_=Es;var L=require("react/jsx-runtime"),Ms=(0,Ar.forwardRef)(({children:e,startContent:t,endContent:r,expandVisible:o=!0,expandPosition:n="end",isOpen:l,onOpen:i,onClose:c,onToggle:u,...p},m)=>{let s=l!==void 0?{isOpen:l,onOpen:i,onClose:c,onToggle:u}:ne();return(0,L.jsx)("div",{className:`${a}list-group`,children:(0,L.jsxs)(Te,{...s,children:[(0,L.jsx)(ie,{children:(0,L.jsx)(_,{ref:m,startContent:o&&n==="start"?(0,L.jsxs)(L.Fragment,{children:[(0,L.jsx)(I,{children:s.isOpen?(0,L.jsx)(X,{}):(0,L.jsx)(K,{})}),t]}):t,endContent:o&&n==="end"?(0,L.jsxs)(L.Fragment,{children:[r,(0,L.jsx)(I,{children:s.isOpen?(0,L.jsx)(X,{}):(0,L.jsx)(K,{})})]}):r,...p})}),(0,L.jsx)(le,{children:(0,L.jsx)("div",{children:(0,L.jsx)(W,{children:e})})})]})})}),Nr=Ms;var $r=require("react");var Ve=require("react/jsx-runtime"),Ls=(0,$r.forwardRef)(({as:e="div",title:t,startContent:r,endContent:o,className:n,...l},i)=>{let c=a;return(0,Ve.jsxs)(e,{ref:i,className:T(`${c}list-subheader`,n),...l,children:[r&&(0,Ve.jsx)("div",{className:`${c}list-subheader__start-content`,children:r}),(0,Ve.jsx)("div",{className:`${c}list-subheader__content`,children:(0,Ve.jsx)("span",{className:`${c}list-subheader__title`,children:t})}),o&&(0,Ve.jsx)("div",{className:`${c}list-subheader__end-content`,children:o})]})}),_r=Ls;var Hr=require("react"),kr=require("react-custom-scrollbars-2");var Fe=require("react/jsx-runtime"),ws=(0,Hr.forwardRef)(({children:e,autoHide:t=!1,autoHeight:r=!1,style:o},n)=>{let l=a,i=s=>(0,Fe.jsx)("div",{...s,className:T(`${l}scroll-area__view`,s.className)}),c=s=>(0,Fe.jsx)("div",{...s,className:T(`${l}scroll-area__track ${l}scroll-area__track--horizontal`,s.className)}),u=s=>(0,Fe.jsx)("div",{...s,className:T(`${l}scroll-area__track ${l}scroll-area__track--vertical`,s.className)}),p=s=>(0,Fe.jsx)("div",{...s,className:T(`${l}scroll-area__thumb ${l}scroll-area__thumb--horizontal`,s.className)}),m=s=>(0,Fe.jsx)("div",{...s,className:T(`${l}scroll-area__thumb ${l}scroll-area__thumb--vertical`,s.className)});return(0,Fe.jsx)(kr.Scrollbars,{autoHide:t,className:`${l}scroll-area`,renderTrackHorizontal:c,renderTrackVertical:u,renderThumbHorizontal:p,renderThumbVertical:m,renderView:i,autoHeight:r,style:o,ref:s=>{s&&ht(n,s.container.firstElementChild)},children:e})}),ue=ws;var Wt=require("react"),Or=(0,Wt.createContext)(null),Qt=()=>{let e=(0,Wt.useContext)(Or);if(!e)throw new Error("`useAutocomplete` must be used within a `<Autocomplete />`");return e},Vr=Or;var Pt=require("react/jsx-runtime"),As=()=>{let{data:e,values:t,offset:r,setOffset:o,keyField:n,textField:l,onItemSelect:i,renderItem:c}=Qt(),u=(0,st.useRef)(null),{isOpen:p}=V(),m=s=>{i(s),o(u.current?.scrollHeight||0)};return(0,st.useEffect)(()=>{p&&u.current?.scrollTo({top:r})},[p]),(0,Pt.jsx)(ue,{ref:u,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Pt.jsx)(W,{children:c?e.map(s=>(0,Pt.jsx)(st.Fragment,{children:c(s,{title:"",selected:t.includes(s[n]),hoverable:!0,onClick:()=>m(s)})},s[n])):e.map(s=>(0,Pt.jsx)(_,{title:s[l],selected:t.includes(s[n]),hoverable:!0,onClick:()=>m(s)},s[n]))})})},Fr=As;var lt=require("react");var ho=e=>Array.isArray(e)?e:e!==null?[e]:[],It=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var Se=require("react/jsx-runtime"),Ns=()=>{let{data:e,values:t,keyField:r,textField:o,virtual:n,onItemSelect:l,renderItem:i}=Qt(),c=(0,lt.useRef)(null),u=Ke({...n,count:e.length,parentRef:c}),{isOpen:p}=V(),m=s=>{l(s)};return(0,lt.useEffect)(()=>{if(!p)return;let s=It(t),x=e.findIndex(f=>f[r]===s);x!==-1&&u.scrollToIndex(x,{align:"start"})},[p]),n?(0,Se.jsx)(ue,{ref:c,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Se.jsx)(W,{children:(0,Se.jsx)("div",{style:{height:`${u.getTotalSize()}px`,width:"100%",position:"relative"},children:u.getVirtualItems().map(s=>{let x=s.index>e.length-1,f=e[s.index];return x?(0,Se.jsx)(_,{title:n.hasNextPage?"Loading...":"Nothing more to load",style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`}},s.index):f?i?(0,Se.jsx)(lt.Fragment,{children:i(f,{title:"",selected:t.includes(f[r]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`},onClick:()=>m(f)})},s.index):(0,Se.jsx)(_,{title:f[o],selected:t.includes(f[r]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`},onClick:()=>m(f)},s.index):(0,Se.jsx)(_,{title:`Item ${s.index} not found`,style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`}},s.index)})})})}):null},Dr=Ns;var P=require("react/jsx-runtime"),$s=e=>{let{data:t,value:r,keyField:o="key",textField:n="text",isMultiple:l=!1,disabled:i,loading:c,clearable:u=!0,disclosure:p,virtual:m,placeholder:s,className:x,style:f,startContent:y,endContent:v,onFilterChange:g,renderItem:b,renderNoData:C}=e,d=p!==void 0?p:ne(),h=a,R=(0,F.useRef)(null),[E,re]=(0,F.useState)(""),[B,G]=(0,F.useState)(""),[J,H]=(0,F.useState)(!1),[we,Ae]=(0,F.useState)(!1),Z=(0,F.useMemo)(()=>ho(r),[r]),Ne=(0,F.useMemo)(()=>t.filter(w=>Z.includes(w[o])),[t,Z]),[$e,Be]=(0,F.useState)(0),Ct=()=>{R?.current?.focus()},gt=w=>{if(e.isMultiple){let ee=t.filter(de=>w.includes(de[o]));e.onChange?.(ee),e.onValueChange?.(w)}else{let ee=It(w),de=null;ee!==void 0&&(de=t.find($t=>$t[o]===ee)??null),e.onChange?.(de),e.onValueChange?.(ee)}},co=w=>{w.stopPropagation(),H(!0),G(""),e.isMultiple?(e.onChange?.([]),e.onValueChange?.([])):(e.onChange?.(null),e.onValueChange?.(null)),H(!1)},A=w=>{!d.isOpen&&d.onOpen(),H(!0),G(w.target.value),g?.(w.target.value)},D=w=>{let ee=w[o];if(e.isMultiple){let de=[...Z],$t=Z.indexOf(ee);$t===-1?de.push(ee):de.splice($t,1),gt(de)}else It(Z)!==ee&>([ee]);J&&re(B),H(!1),R.current?.focus(),d.onClose()},j=()=>{d.onOpen(),Ae(!0)},Ge=()=>{if(d.onClose(),!e.isMultiple&&J){let w=Ne[0];w!==void 0?(G(w[n]),g?.(E)):(G(""),g?.(E)),H(!1)}};return(0,F.useEffect)(()=>{if(!J&&!e.isMultiple){let w=Ne[0];w!==void 0&&G(w[n])}},[Ne]),(0,F.useEffect)(()=>{ho(r)[0]===void 0&&(G(""),g?.(""))},[r]),(0,P.jsx)(Vr.Provider,{value:{data:t,values:Z,keyField:o,textField:n,isMultiple:l,virtual:m,onChange:gt,onItemSelect:D,offset:$e,setOffset:Be,renderItem:b},children:(0,P.jsxs)(et,{target:!0,...d,isOpen:d.isOpen,onOpen:j,onClose:Ge,autoClose:"outside",children:[(0,P.jsx)(rt,{children:(0,P.jsxs)("div",{className:T(`${h}input ${h}input--filterable`,{[`${h}input--focus`]:we,[`${h}input--disabled`]:i,[`${h}input--clearable`]:u},x),style:f,onClick:Ct,onFocus:()=>{Ae(!0)},onBlur:()=>{Ae(!1)},children:[(0,P.jsx)("div",{className:`${h}outline`}),(0,P.jsxs)("div",{className:`${h}input__content`,children:[y&&(0,P.jsx)("div",{className:`${h}input__start-content`,children:y}),(0,P.jsx)("input",{ref:R,className:`${h}input__field`,value:B,placeholder:s,disabled:i,onChange:A}),(0,P.jsxs)("div",{className:`${h}input__end-content`,children:[v,c?(0,P.jsx)(I,{children:(0,P.jsx)(Oe,{className:`${h}animation-spin`})}):u?(0,P.jsx)("div",{className:`${h}input__clearable`,children:(0,P.jsx)(ae,{color:"secondary",variant:"plain",size:"xs",iconOnly:!0,onClick:co,children:(0,P.jsx)(I,{children:(0,P.jsx)(He,{})})})}):null,(0,P.jsx)("div",{style:{pointerEvents:"none"},children:(0,P.jsx)(I,{children:d.isOpen?(0,P.jsx)(X,{}):(0,P.jsx)(K,{})})})]})]})]})}),(0,P.jsx)(tt,{style:{maxHeight:"200px"},children:t.length===0?(0,P.jsx)(P.Fragment,{children:C?C({status:"info",title:"No data",size:"sm",onClick:()=>{d.onClose()}}):(0,P.jsx)(nt,{status:"info",title:"No data",size:"sm",onClick:d.onClose})}):m?(0,P.jsx)(Dr,{}):(0,P.jsx)(Fr,{})})]})})},zr=$s;var Br=N(require("clsx")),Yt=require("react"),Gr=require("react-merge-refs");var it=require("react/jsx-runtime"),_s=(0,Yt.forwardRef)((e,t)=>{let{children:r,className:o,isOpen:n,onClose:l,...i}=e,c=(0,Yt.useRef)(null);return(0,it.jsx)(be,{nodeRef:c,isOpen:n,name:`${a}backdrop`,enter:300,leave:300,mountOnEnter:!0,unmountOnExit:!0,children:(0,it.jsx)(je,{children:(0,it.jsxs)("div",{ref:(0,Gr.mergeRefs)([t,c]),className:(0,Br.default)(`${a}backdrop`,o),tabIndex:-1,...i,children:[(0,it.jsx)("div",{className:`${a}backdrop__overlay`,onClick:l}),r]})})})}),qt=_s;var To=N(require("clsx"));var Jt=require("react/jsx-runtime"),Hs=({children:e,placement:t,content:r})=>(0,Jt.jsxs)("div",{className:(0,To.default)(`${a}badge-wrapper`),children:[e,(0,Jt.jsx)("div",{className:(0,To.default)(`${a}badge`,{[`${a}badge--${t}`]:t}),children:r})]}),Kr=Hs;var Xr=require("react");var Zt=require("react/jsx-runtime"),ks=(0,Xr.forwardRef)(({as:e="div",children:t,className:r,size:o="md",hoverable:n,selected:l,disabled:i,...c},u)=>{let p=a;return(0,Zt.jsxs)(e,{ref:u,className:T(`${p}card`,{[`${p}card--${o}`]:o,[`${p}card--hoverable`]:n,[`${p}card--selected`]:l,[`${p}card--disabled`]:i},r),...c,children:[(n||l)&&(0,Zt.jsx)("div",{className:`${p}overlay`}),t]})}),Ur=ks;var Qr=require("react/jsx-runtime"),Os=({children:e,className:t,...r})=>(0,Qr.jsx)("div",{className:T(`${a}card-body`,t),...r,children:e}),Wr=Os;var Yr=require("react");var te=require("react/jsx-runtime"),Vs=(0,Yr.forwardRef)(({as:e="div",children:t,className:r,title:o,subtitle:n,startContent:l,endContent:i,bordered:c=!0,slotProps:u,...p},m)=>{let s=a;return(0,te.jsxs)(e,{ref:m,className:T(`${s}card-header`,{[`${s}card-header--bordered`]:c},r),...p,children:[l&&(0,te.jsx)("div",{className:`${s}card-header__start-content`,children:l}),(0,te.jsx)("div",{className:`${s}card-header__content`,children:o||n?(0,te.jsxs)(te.Fragment,{children:[(0,te.jsx)("span",{...u?.title,className:T(`${s}card-header__title`,u?.title?.className),children:o}),(0,te.jsx)("span",{...u?.subtitle,className:T(`${s}card-header__subtitle`,u?.subtitle?.className),children:n})]}):t}),i&&(0,te.jsx)("div",{className:`${s}card-header__end-content`,children:i})]})}),qr=Vs;var yo=N(require("clsx")),Jr=require("react");var Et=require("react/jsx-runtime"),Fs=(0,Jr.forwardRef)(({as:e="div",children:t,className:r,variant:o="text",color:n="primary",size:l="md",...i},c)=>(0,Et.jsxs)(e,{ref:c,className:(0,yo.default)(`${a}chip`,{[`${a}chip--${o}`]:o,[`${a}chip--${n}`]:n,[`${a}chip--${l}`]:l},r),...i,children:[(0,Et.jsx)("div",{className:(0,yo.default)(`${a}overlay`)}),(0,Et.jsx)("div",{className:`${a}outline`}),t]})),Zr=Fs;var jr=N(require("clsx")),jt=require("react"),en=require("react-merge-refs");var at=require("react/jsx-runtime"),Ds=(0,jt.forwardRef)((e,t)=>{let{children:r,className:o,isOpen:n,size:l="md",position:i="left",onClose:c}=e,u=(0,jt.useRef)(null);return(0,at.jsx)(qt,{isOpen:n,onClose:()=>{c()},children:(0,at.jsx)(be,{nodeRef:u,isOpen:n,name:`${a}drawer`,enter:600,leave:300,unmountOnExit:!0,children:(0,at.jsxs)("div",{ref:(0,en.mergeRefs)([t,u]),className:(0,jr.default)(`${a}drawer`,{[`${a}drawer--${l}`]:l,[`${a}drawer--${i}`]:i},o),children:[(0,at.jsx)("div",{className:`${a}drawer__overlay`}),r]})})})}),tn=Ds;var on=require("react");var Mt=require("react/jsx-runtime"),zs=(0,on.forwardRef)(({children:e,label:t},r)=>{{let o=a;return(0,Mt.jsxs)("div",{ref:r,className:T(`${o}field`),children:[(0,Mt.jsx)("div",{className:`${o}field__label`,children:t}),(0,Mt.jsx)("div",{className:`${o}field__content`,children:e})]})}}),rn=zs;var fn=N(require("clsx")),Ie=require("react");var eo=require("react"),nn=(0,eo.createContext)(null),ct=()=>{let e=(0,eo.useContext)(nn);if(!e)throw new Error("`useMenu` must be used within a `<Menu />`");return e},to=nn;var mn=N(require("clsx")),dn=require("react");var an=N(require("clsx")),ut=require("react");var oo=require("react"),sn=(0,oo.createContext)([]),ln=()=>{let e=(0,oo.useContext)(sn);if(!e)throw new Error("`useMenuValue` must be used within a `<MenuValueContext.Provider />`");return e},De=sn;var Pe=require("react/jsx-runtime"),cn=(0,ut.forwardRef)((e,t)=>{let{as:r="div",className:o,style:n,value:l,title:i,icon:c,level:u=1,disabled:p,onClick:m,...s}=e,{value:x,originalValue:f,navMode:y,onChange:v,onOpen:g,onItemSelect:b}=ct(),C=(0,ut.useContext)(De),d=[...C,l],h=x[u-1]===l,R=E=>{l!==void 0&&v(d),m?.(E),b?.(e)};return(0,ut.useEffect)(()=>{y==="automatic"&&f.length>0&&f[f.length-1]===l&&(g(C),v(d))},[l,f,y]),(0,Pe.jsxs)(r,{ref:t,className:(0,an.default)(`${a}menu-item`,{[`${a}menu-item--selected`]:h,[`${a}menu-item--disabled`]:p},o),style:{paddingLeft:u<=1?`var(--${a}menu-item-padding-x)`:`calc(${u} * var(--${a}menu-item-padding-level))`,...n},onClick:R,...s,children:[(0,Pe.jsx)("div",{className:`${a}overlay`,children:(0,Pe.jsx)("div",{className:`${a}overlay__surface`})}),c&&(0,Pe.jsx)("div",{className:`${a}menu-item__icon`,children:c}),(0,Pe.jsx)("div",{className:`${a}menu-item__content`,children:(0,Pe.jsx)("span",{className:`${a}menu-item__title`,children:i})})]})});cn.displayName="MenuItem";var oe=cn;var no=N(require("clsx")),so=require("react");var un=e=>e.split("/").reduce((t,r)=>{let o=t[t.length-1];return o!=null?t.push(o+"/"+r):t.push(""),t},[]),ro=(e,t)=>{let r=e.indexOf(t),o=[...e];return r===-1?o.push(t):o.splice(r,1),o};var M=require("react/jsx-runtime"),pn=({children:e,className:t,style:r,value:o,title:n,icon:l,level:i=1,items:c,onClick:u,...p})=>{let{value:m,openValues:s,expandMode:x,onOpen:f}=ct(),y=(0,so.useContext)(De),v=s.includes(o),g=[...y,o],b=m[i-1]===o,C=(0,so.useMemo)(()=>c?.map(({type:h,...R},E)=>h==="item"?(0,M.jsx)(oe,{level:i!==void 0?i+1:void 0,...R},E):h==="submenu"?(0,M.jsx)(pn,{level:i!==void 0?i+1:void 0,...R},E):h==="group"?(0,M.jsx)(mt,{level:i!==void 0?i+1:void 0,...R},E):(0,M.jsx)(oe,{level:i!==void 0?i+1:void 0,...R},E)),[c]),d=h=>{if(x==="multiple"){let R=ro(s,o);f(R)}else if(v){let R=ro(g,o);f(R)}else{let R=ro(y,o);f(R)}u?.(h)};return(0,M.jsx)(De.Provider,{value:g,children:(0,M.jsx)("div",{className:(0,no.default)(`${a}menu-submenu`),children:(0,M.jsxs)(Te,{isOpen:v,children:[(0,M.jsx)(ie,{children:(0,M.jsxs)("div",{className:(0,no.default)(`${a}menu-item`,{[`${a}menu-item--selected`]:b||c&&g.includes(m)},t),style:{paddingLeft:i<=1?`var(--${a}menu-item-padding-x)`:`calc(${i} * var(--${a}menu-item-padding-level))`,...r},onClick:d,...p,children:[(0,M.jsx)("div",{className:`${a}overlay`,children:(0,M.jsx)("div",{className:`${a}overlay__surface`})}),l&&(0,M.jsx)("div",{className:`${a}menu-item__icon`,children:l}),(0,M.jsx)("div",{className:`${a}menu-item__content`,children:(0,M.jsx)("span",{className:`${a}menu-item__title`,children:n})}),(0,M.jsx)("div",{className:`${a}menu-item__icon`,children:v?(0,M.jsx)(X,{className:`${a}icon`}):(0,M.jsx)(K,{className:`${a}icon`})})]})}),(0,M.jsx)(le,{children:(0,M.jsx)("ul",{className:(0,no.default)(`${a}menu`,{[`${a}menu-open`]:!v}),children:C||e})})]})})})},pt=pn;var Y=require("react/jsx-runtime"),Bs=({children:e,className:t,style:r,title:o,icon:n,level:l=1,items:i,...c})=>{let u=(0,dn.useMemo)(()=>i?.map(({type:p,...m},s)=>p==="item"?(0,Y.jsx)(oe,{...m},s):p==="submenu"?(0,Y.jsx)(pt,{...m},s):(0,Y.jsx)(oe,{...m},s)),[i]);return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)("div",{className:(0,mn.default)(`${a}menu-group`,t),style:{paddingLeft:l<=1?`var(--${a}menu-group-padding-x)`:`calc(${l} * var(--${a}menu-group-padding-level))`,...r},...c,children:[n&&(0,Y.jsx)("div",{className:`${a}menu-group__icon`,children:n}),(0,Y.jsx)("div",{className:`${a}menu-group__content`,children:(0,Y.jsx)("span",{className:`${a}menu-group__title`,children:o})})]}),u||e]})},mt=Bs;var ze=require("react/jsx-runtime"),vn=({children:e,value:t=[],defaultValue:r,openValues:o,expandMode:n="multiple",navMode:l="manual",items:i,onChange:c,onOpen:u,onItemSelect:p,...m})=>{let[s,x]=(0,Ie.useState)(t??r??[]),[f,y]=(0,Ie.useState)(o??[]),v=(0,Ie.useMemo)(()=>i?.map(({type:d,...h},R)=>d==="item"?(0,ze.jsx)(oe,{...h},R):d==="submenu"?(0,ze.jsx)(pt,{...h},R):d==="group"?(0,ze.jsx)(mt,{...h},R):(0,ze.jsx)(oe,{...h},R)),[i]),g=d=>{t!==void 0&&l!=="automatic"?c?.(d):x(d)},b=d=>{o!==void 0?u?.(d):y(d)},C=d=>{p?.(d)};return(0,Ie.useEffect)(()=>{t!==void 0&&l!=="automatic"&&x(t)},[t]),(0,Ie.useEffect)(()=>{o!==void 0&&y(o)},[o]),(0,ze.jsx)(to.Provider,{value:{value:s,originalValue:t,openValues:f,expandMode:n,navMode:l,onOpen:b,onChange:g,onItemSelect:C},children:(0,ze.jsx)("div",{className:(0,fn.default)(`${a}menu`),...m,children:v||e})})};vn.displayName="Menu";var xn=vn;var z=require("react");var dt=require("react");var lo=require("react"),Cn=(0,lo.createContext)(null),io=()=>{let e=(0,lo.useContext)(Cn);if(!e)throw new Error("`useSelect` must be used within a `<Select />`");return e},gn=Cn;var Lt=require("react/jsx-runtime"),Gs=()=>{let{data:e,values:t,offset:r,setOffset:o,keyField:n,textField:l,onItemSelect:i,renderItem:c}=io(),u=(0,dt.useRef)(null),{isOpen:p}=V(),m=s=>{i(s),o(u.current?.scrollHeight||0)};return(0,dt.useEffect)(()=>{p&&u.current?.scrollTo({top:r})},[p]),(0,Lt.jsx)(ue,{ref:u,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Lt.jsx)(W,{children:c?e.map(s=>(0,Lt.jsx)(dt.Fragment,{children:c(s,{title:"",selected:t.includes(s[n]),hoverable:!0,onClick:()=>m(s)})},s[n])):e.map(s=>(0,Lt.jsx)(_,{title:s[l],selected:t.includes(s[n]),hoverable:!0,onClick:()=>m(s)},s[n]))})})},hn=Gs;var ft=require("react");var Ro=e=>Array.isArray(e)?e:e!==null?[e]:[],wt=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var Ee=require("react/jsx-runtime"),Ks=()=>{let{data:e,values:t,keyField:r,textField:o,virtual:n,onItemSelect:l,renderItem:i}=io(),c=(0,ft.useRef)(null),u=Ke({...n,count:e.length,parentRef:c}),{isOpen:p}=V(),m=s=>{l(s)};return(0,ft.useEffect)(()=>{if(!p)return;let s=wt(t),x=e.findIndex(f=>f[r]===s);u.scrollToIndex(x,{align:"start"})},[p]),n?(0,Ee.jsx)(ue,{ref:c,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Ee.jsx)(W,{children:(0,Ee.jsx)("div",{style:{height:`${u.getTotalSize()}px`,width:"100%",position:"relative"},children:u.getVirtualItems().map(s=>{let x=s.index>e.length-1,f=e[s.index];return x?(0,Ee.jsx)(_,{title:n.hasNextPage?"Loading...":"Nothing more to load",style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`}},s.index):f?i?(0,Ee.jsx)(ft.Fragment,{children:i(f,{title:"",selected:t.includes(f[r]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`},onClick:()=>m(f)})},s.index):(0,Ee.jsx)(_,{title:f[o],selected:t.includes(f[r]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`},onClick:()=>m(f)},s.index):(0,Ee.jsx)(_,{title:`Item ${s.index} not found`,style:{position:"absolute",top:0,left:0,width:"100%",height:`${s.size}px`,transform:`translateY(${s.start}px)`}},s.index)})})})}):null},Tn=Ks;var S=require("react/jsx-runtime"),Xs=e=>{let{data:t,value:r,keyField:o="key",textField:n="text",isMultiple:l=!1,disabled:i,loading:c,clearable:u=!0,disclosure:p,virtual:m,placeholder:s,className:x,style:f,startContent:y,endContent:v,renderItem:g,renderNoData:b}=e,C=p!==void 0?p:ne(),d=a,h=(0,z.useRef)(null),[R,E]=(0,z.useState)(""),[re,B]=(0,z.useState)(!1),[G,J]=(0,z.useState)(!1),H=(0,z.useMemo)(()=>Ro(r),[r]),we=(0,z.useMemo)(()=>t.filter(A=>H.includes(A[o])),[t,H]),[Ae,Z]=(0,z.useState)(0),Ne=()=>{h?.current?.focus()},$e=A=>{if(e.isMultiple){let D=t.filter(j=>A.includes(j[o]));e.onChange?.(D),e.onValueChange?.(A)}else{let D=wt(A),j=null;D!==null&&(j=t.find(Ge=>Ge[o]===D)??null),e.onChange?.(j),e.onValueChange?.(D)}},Be=A=>{A.stopPropagation(),B(!0),E(""),e.isMultiple?(e.onChange?.([]),e.onValueChange?.([])):(e.onChange?.(null),e.onValueChange?.(null)),B(!1)},Ct=A=>{let D=A[o];if(e.isMultiple){let j=[...H],Ge=H.indexOf(D);Ge===-1?j.push(D):j.splice(Ge,1),$e(j)}else wt(H)!==D&&$e([D]);B(!1),h.current?.focus(),C.onClose()},gt=()=>{C.onOpen(),J(!0)},co=()=>{if(C.onClose(),!e.isMultiple&&re){let A=we[0];E(A!==void 0?A[n]:""),B(!1)}};return(0,z.useEffect)(()=>{if(!re&&!e.isMultiple){let A=we[0];A!==void 0&&E(A[n])}},[we]),(0,z.useEffect)(()=>{Ro(r)[0]===void 0&&E("")},[r]),(0,S.jsx)(gn.Provider,{value:{data:t,values:H,keyField:o,textField:n,isMultiple:l,virtual:m,onChange:$e,onItemSelect:Ct,offset:Ae,setOffset:Z,renderItem:g},children:(0,S.jsxs)(et,{target:!0,...C,isOpen:C.isOpen,onOpen:gt,onClose:co,autoClose:"outside",children:[(0,S.jsx)(rt,{children:(0,S.jsxs)("div",{className:T(`${d}input`,{[`${d}input--focus`]:G,[`${d}input--disabled`]:i,[`${d}input--clearable`]:u},x),style:f,onClick:Ne,onFocus:()=>{J(!0)},onBlur:()=>{J(!1)},children:[(0,S.jsx)("input",{type:"text",ref:h,style:{position:"absolute",opacity:0}}),(0,S.jsx)("div",{className:`${d}outline`}),(0,S.jsxs)("div",{className:`${d}input__content`,children:[y&&(0,S.jsx)("div",{className:`${d}input__start-content`,children:y}),(0,S.jsx)("div",{className:`${d}input__field`,children:R||s}),(0,S.jsxs)("div",{className:`${d}input__end-content`,children:[v,c?(0,S.jsx)(I,{children:(0,S.jsx)(Oe,{className:`${d}animation-spin`})}):u?(0,S.jsx)("div",{className:`${d}input__clearable`,children:(0,S.jsx)(ae,{color:"secondary",variant:"plain",size:"xs",iconOnly:!0,onClick:Be,children:(0,S.jsx)(I,{children:(0,S.jsx)(He,{})})})}):null,(0,S.jsx)("div",{style:{pointerEvents:"none"},children:(0,S.jsx)(I,{children:C.isOpen?(0,S.jsx)(X,{}):(0,S.jsx)(K,{})})})]})]})]})}),(0,S.jsx)(tt,{style:{maxHeight:"200px"},children:t.length===0?(0,S.jsx)(S.Fragment,{children:b?b({status:"info",title:"No data",size:"sm",onClick:()=>{C.onClose()}}):(0,S.jsx)(nt,{status:"info",title:"No data",size:"sm",onClick:C.onClose})}):m?(0,S.jsx)(Tn,{}):(0,S.jsx)(hn,{})})]})})},yn=Xs;var Rn=N(require("clsx")),vt=require("react");var At=require("react/jsx-runtime"),Us=(0,vt.forwardRef)(({id:e,name:t,value:r,defaultValue:o,checked:n,defaultChecked:l,onChange:i,onCheckedChange:c,disabled:u,className:p,...m},s)=>{let[x,f]=(0,vt.useState)(n),y=a,v=g=>{let{value:b,checked:C}=g.target;f(C),i?.(b),c?.(C)};return(0,vt.useEffect)(()=>{n!==void 0&&f(n)},[n]),(0,At.jsxs)("label",{ref:s,htmlFor:e,className:(0,Rn.default)(`${y}switch`,{[`${y}switch--checked`]:!!x},p),...m,children:[(0,At.jsx)("input",{type:"checkbox",id:e,name:t,value:r,defaultValue:o,checked:x,defaultChecked:l,disabled:u,onChange:v}),(0,At.jsx)("div",{className:`${y}switch__thumb`})]})}),bn=Us;var Pn=N(require("clsx")),In=N(require("merge-refs")),Me=require("react"),En=require("uuid");var ao=require("react"),bo=(0,ao.createContext)(null),Sn=()=>{let e=(0,ao.useContext)(bo);if(!e)throw new Error("`useTabs` must be used within a `<Tabs />`");return e};var q=require("react/jsx-runtime"),Mn=(0,Me.forwardRef)(({as:e="div",children:t,className:r,role:o="presentation",value:n,startContent:l,endContent:i,closable:c,disabled:u,onClick:p,...m},s)=>{let x=a,f=(0,Me.useRef)(null),[y]=(0,Me.useState)((0,En.v4)()),v=n??y,{onClose:g,registerItem:b,...C}=Sn(),d=R=>{let E=C.previousTabRef.current,re=f.current;if(re){if(E){let B=E.querySelector(`.${x}tab__indicator`),G=re.querySelector(`.${x}tab__indicator`);if(!B||!G)return;let J={},H=B.getBoundingClientRect(),we=H.left,Ae=H.width,Z=G.getBoundingClientRect(),Ne=Z.left,$e=Z.width,Be=Ae/$e;Be?J.transform=`translateX(${(we-Ne).toFixed(4)}px) scaleX(${Be.toFixed(4)})`:J.opacity=0;let Ct=[J,{transform:"none"}];G.animate(Ct,{duration:250,easing:"cubic-bezier(.3,0,0,1)"}),C.previousTabRef.current=f.current}C.previousTabRef.current=f.current,C.onChange(v),p?.(R)}},h=R=>{R.stopPropagation(),g(v)};return(0,Me.useEffect)(()=>{b({value:v,disabled:u}),v===C.value&&(C.previousTabRef.current=f.current)},[v,C.value]),(0,q.jsxs)(e,{ref:(0,In.default)(f,s,R=>C.tabRefs.current[v]=R),className:(0,Pn.default)(`${x}tab`,{[`${x}tab--selected`]:v===C.value,[`${x}tab--disabled`]:u},r),role:o,onClick:d,...m,children:[(0,q.jsx)("div",{className:`${x}overlay`,children:(0,q.jsx)("div",{className:`${x}overlay__surface`})}),(0,q.jsxs)("div",{className:`${x}tab__content`,children:[l&&(0,q.jsx)("div",{className:`${x}tab__start-content`,children:l}),t,i||c&&(0,q.jsxs)("div",{className:`${x}tab__end-content`,children:[i,c&&(0,q.jsx)(ae,{variant:"text",color:"secondary",iconOnly:!0,size:"xs",onClick:h,children:(0,q.jsx)(I,{children:(0,q.jsx)(He,{})})})]})]}),(0,q.jsx)("div",{className:`${x}tab__indicator`})]})});var Ln=N(require("clsx")),pe=require("react");var Nt=require("react/jsx-runtime"),wn=({children:e,className:t,value:r,defaultValue:o,alignment:n="start",onChange:l,onClose:i,...c})=>{let u=(0,pe.useRef)(null),p=(0,pe.useRef)({}),m=(0,pe.useRef)(null),[s,x]=(0,pe.useState)(r??o),[f,y]=(0,pe.useState)([]),v=d=>{y(h=>(h.findIndex(E=>E.value)===-1&&h.push(d),h))},g=d=>{let h=u.current;if(!h)return;let R=p.current[d];R&&uo(h,R)},b=d=>{x(d),l?.(d),g(d)},C=d=>{i?.(d)};return(0,pe.useEffect)(()=>{r!==void 0&&(x(r),g(r))},[r]),(0,pe.useEffect)(()=>{if(r===void 0){let d=f.find(h=>!h.disabled);x(d?.value)}},[r,f]),(0,Nt.jsxs)(bo.Provider,{value:{previousTabRef:m,tabRefs:p,value:s,onChange:b,onClose:C,registerItem:v},children:[(0,Nt.jsx)("div",{ref:u,className:(0,Ln.default)(`${a}tabs`,{[`${a}tabs--${n}`]:n},t),...c,children:e}),(0,Nt.jsx)("div",{className:`${a}divider`})]})};var xt=require("react");var Le=require("react/jsx-runtime");var Ws=(0,xt.forwardRef)(({className:e,value:t,defaultValue:r,disabled:o,inputRef:n,startContent:l,endContent:i,style:c,onChange:u,onClick:p,...m},s)=>{let[x,f]=(0,xt.useState)(!1),y=(0,xt.useRef)(null),v=a,g=C=>{u?.(C)},b=C=>{p?.(C),y?.current?.focus()};return(0,Le.jsxs)("div",{ref:s,className:T(`${v}input`,{[`${v}input--focus`]:x,[`${v}input--disabled`]:o},e),style:c,onFocus:()=>{f(!0)},onBlur:()=>{f(!1)},onClick:b,children:[(0,Le.jsx)("div",{className:`${v}outline`}),(0,Le.jsxs)("div",{className:`${v}input__content`,children:[l&&(0,Le.jsx)("div",{className:`${v}input__start-content`,children:l}),(0,Le.jsx)("input",{ref:ve(y,n),className:`${v}input__field`,value:t,defaultValue:r,disabled:o,onChange:g,...m}),i&&(0,Le.jsx)("div",{className:`${v}input__end-content`,children:i})]})]})}),An=Ws;var me=N(require("clsx"));var k=require("react/jsx-runtime"),Qs=e=>{let{children:t,className:r,size:o="md",title:n,subtitle:l,startContent:i,endContent:c,startAction:u,endAction:p,...m}=e,s=a;return(0,k.jsxs)("div",{className:(0,me.default)(`${s}toolbar`,{[`${s}toolbar--${o}`]:o},r),...m,children:[(0,k.jsx)("div",{className:`${s}outline-b`}),(0,k.jsxs)("div",{className:(0,me.default)(`${s}toolbar__container`),children:[i?(0,k.jsx)("div",{className:(0,me.default)(`${s}toolbar__start-content`),children:i}):u&&(0,k.jsx)("div",{className:(0,me.default)(`${s}toolbar__start-action`),children:u}),(0,k.jsx)("div",{className:(0,me.default)(`${s}toolbar__content`),children:n||l?(0,k.jsxs)(k.Fragment,{children:[n&&(0,k.jsx)("div",{className:(0,me.default)(`${s}toolbar__title`),children:n}),l&&(0,k.jsx)("div",{className:(0,me.default)(`${s}toolbar__subtitle`),children:l})]}):t}),c?(0,k.jsx)("div",{className:(0,me.default)(`${s}toolbar__end-content`),children:c}):p&&(0,k.jsx)("div",{className:(0,me.default)(`${s}toolbar__end-action`),children:p})]})]})},Nn=Qs;0&&(module.exports={Accordion,AccordionContent,AccordionHeader,AccordionItem,AccordionPanel,AccordionTrigger,Autocomplete,Backdrop,Badge,Button,Card,CardBody,CardHeader,Chip,Collapse,CollapseContent,CollapseContext,CollapseTrigger,Drawer,Field,Icon,List,ListGroup,ListItem,ListSubheader,Menu,MenuContext,MenuGroup,MenuItem,MenuSubmenu,MenuValueContext,Popover,PopoverContent,PopoverTrigger,Portal,QueryStatus,Result,ScrollArea,Select,Switch,Tab,Tabs,TextInput,Toolbar,Transition,assignRef,clsx,getOpenValuesByPathname,hasResizeObserver,mergeRefs,scrollToItem,useAccordionItem,useCollapse,useDebounce,useDisclosure,useEffectEvent,useElementSize,useInfiniteQuery,useLocalStorage,useMediaQuery,useMenu,useMenuItemValue,useOnClickOutside,usePopover,usePrevious,useResizeObserver,useStep,useValueEffect,useVirtualizer});
|
|
1
|
+
"use strict";var jn=Object.create;var Ft=Object.defineProperty;var es=Object.getOwnPropertyDescriptor;var ts=Object.getOwnPropertyNames;var os=Object.getPrototypeOf,rs=Object.prototype.hasOwnProperty;var ns=(e,t)=>{for(var r in t)Ft(e,r,{get:t[r],enumerable:!0})},ko=(e,t,r,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of ts(t))!rs.call(e,s)&&s!==r&&Ft(e,s,{get:()=>t[s],enumerable:!(o=es(t,s))||o.enumerable});return e};var L=(e,t,r)=>(r=e!=null?jn(os(e)):{},ko(t||!e||!e.__esModule?Ft(r,"default",{value:e,enumerable:!0}):r,e)),ss=e=>ko(Ft({},"__esModule",{value:!0}),e);var gi={};ns(gi,{Accordion:()=>Oo,AccordionContent:()=>Pr,AccordionHeader:()=>Rr,AccordionItem:()=>ir,AccordionPanel:()=>br,AccordionTrigger:()=>Er,Autocomplete:()=>jr,Backdrop:()=>eo,Badge:()=>on,Button:()=>K,Card:()=>nn,CardBody:()=>sn,CardHeader:()=>cn,Chip:()=>pn,Collapse:()=>Re,CollapseContent:()=>ae,CollapseContext:()=>Wt,CollapseTrigger:()=>ce,Drawer:()=>fn,Field:()=>xn,Icon:()=>E,List:()=>q,ListGroup:()=>Kr,ListItem:()=>O,ListSubheader:()=>Wr,Menu:()=>wn,MenuContext:()=>so,MenuGroup:()=>ht,MenuItem:()=>se,MenuSubmenu:()=>xt,MenuValueContext:()=>Ke,Popover:()=>st,PopoverContent:()=>it,PopoverTrigger:()=>at,Portal:()=>nt,QueryStatus:()=>go,Result:()=>ct,ScrollArea:()=>pe,Select:()=>$n,Swipe:()=>Zn,SwipeItem:()=>Un,Switch:()=>Hn,Tab:()=>Dn,Tabs:()=>Gn,TextInput:()=>Bn,Toolbar:()=>Kn,Transition:()=>Se,assignRef:()=>St,clsx:()=>R,getOpenValuesByPathname:()=>yn,hasResizeObserver:()=>Co,mergeRefs:()=>xe,scrollToItem:()=>xo,useAccordionItem:()=>sr,useCollapse:()=>Te,useDebounce:()=>Wo,useDisclosure:()=>ie,useEffectEvent:()=>Pt,useElementSize:()=>Ye,useInfiniteQuery:()=>qo,useLocalStorage:()=>zo,useMediaQuery:()=>Uo,useMenu:()=>ft,useMenuItemValue:()=>Cn,useOnClickOutside:()=>Gt,usePopover:()=>z,usePrevious:()=>Go,useResizeObserver:()=>Zo,useStep:()=>Xo,useValueEffect:()=>jo,useVirtualizer:()=>Qe});module.exports=ss(gi);var _o=require("react");var u="us-";var xo=(e,t)=>{let r=e.getBoundingClientRect(),o=t.getBoundingClientRect(),s="smooth",i=t.previousSibling,l=i?.getBoundingClientRect()||o;if(r.left>l.left){let p=0;i&&(p=l.left-r.left+e.scrollLeft+l.width/4),e.scrollTo({behavior:s,left:p})}let a=t.nextSibling,c=a?.getBoundingClientRect()||o;if(r.right<c.right){let p=e.scrollWidth;a&&(p=c.right-r.right+e.scrollLeft-c.width/4),e.scrollTo({behavior:s,left:p})}};function Ho(e){let t,r,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]&&(r=Ho(e[t]))&&(o&&(o+=" "),o+=r);else for(t in e)e[t]&&(o&&(o+=" "),o+=t);return o}function is(...e){let t=0,r,o,s="";for(;t<e.length;)(r=e[t++])&&(o=Ho(r))&&(s&&(s+=" "),s+=o);return s}var R=is;function St(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 ls(...e){return t=>{e.forEach(r=>{St(r,t)})}}var xe=ls;var Vo=require("react/jsx-runtime"),as=(0,_o.forwardRef)((e,t)=>{let{children:r,className:o,...s}=e;return(0,Vo.jsx)("div",{ref:t,className:R(`${u}accordion`,o),...s,children:r})}),Oo=as;var ye=require("react"),rr=require("uuid");var he=require("react");var Do=require("react");var Dt=require("react"),cs=typeof window<"u"?Dt.useLayoutEffect:Dt.useEffect,Fo=cs;function us(e){let t=(0,Do.useRef)(e);Fo(()=>{t.current=e},[e])}var ho=us;function zo(e,t){let r=(0,he.useCallback)(()=>{if(typeof window>"u")return t;try{let a=window.localStorage.getItem(e);return a?ps(a):t}catch(a){return console.warn(`Error reading localStorage key \u201C${e}\u201D:`,a),t}},[t,e]),[o,s]=(0,he.useState)(r),i=(0,he.useCallback)(a=>{typeof window>"u"&&console.warn(`Tried setting localStorage key \u201C${e}\u201D even though environment is not a client`);try{let c=a instanceof Function?a(o):a;window.localStorage.setItem(e,JSON.stringify(c)),s(c),window.dispatchEvent(new Event("local-storage"))}catch(c){console.warn(`Error setting localStorage key \u201C${e}\u201D:`,c)}},[e,o]);(0,he.useEffect)(()=>{s(r())},[]);let l=(0,he.useCallback)(()=>{s(r())},[r]);return ho("storage",l),ho("local-storage",l),[o,i]}function ps(e){try{return e==="undefined"?void 0:JSON.parse(e??"")}catch{return}}var zt=require("react"),Go=e=>{let t=(0,zt.useRef)();return(0,zt.useEffect)(()=>{t.current=e}),t.current};var Bo=require("react");function ms({defaultValue:e}={}){let[t,r]=(0,Bo.useState)(e||!1);return{isOpen:t,onOpen:()=>{r(!0)},onClose:()=>{r(!1)},onToggle:()=>{r(l=>!l)}}}var ie=ms;var Ko=require("react"),ds=(e,t)=>{(0,Ko.useEffect)(()=>{let r=o=>{!e.current||e.current.contains(o.target)||t(o)};return document.addEventListener("click",r),()=>{document.removeEventListener("click",r)}},[e,t])},Gt=ds;var le=require("react"),Xo=e=>{let[t,r]=(0,le.useState)(1),o=(0,le.useMemo)(()=>t+1<=e,[t,e]),s=(0,le.useMemo)(()=>t-1>=1,[t]),i=(0,le.useCallback)(p=>{let m=p instanceof Function?p(t):p;if(m>=1&&m<=e){r(m);return}throw new Error("Step not valid")},[e,t]),l=(0,le.useCallback)(()=>{o&&r(p=>p+1)},[o]),a=(0,le.useCallback)(()=>{s&&r(p=>p-1)},[s]),c=(0,le.useCallback)(()=>{r(1)},[]);return[t,{goToNextStep:l,goToPrevStep:a,canGoToNextStep:o,canGoToPrevStep:s,setStep:i,reset:c}]};var Bt=require("react");function fs(e,t){let[r,o]=(0,Bt.useState)(e);return(0,Bt.useEffect)(()=>{let s=setTimeout(()=>o(e),t||500);return()=>{clearTimeout(s)}},[e,t]),r}var Wo=fs;var Kt=require("react");function vs(e){let t=i=>typeof window<"u"?window.matchMedia(i).matches:!1,[r,o]=(0,Kt.useState)(t(e));function s(){o(t(e))}return(0,Kt.useEffect)(()=>{let i=window.matchMedia(e);return s(),i.addListener?i.addListener(s):i.addEventListener("change",s),()=>{i.removeListener?i.removeListener(s):i.removeEventListener("change",s)}},[e]),r}var Uo=vs;var Qo=require("@tanstack/react-virtual"),Yo=require("react");function xs(e){let{parentRef:t,total:r,count:o=0,overscan:s=5,hasNextPage:i,isFetchingNextPage:l,onFetchNextPage:a,estimateSize:c}=e,p=(0,Qo.useVirtualizer)({count:r||(i?o+1:o),getScrollElement:()=>t.current,estimateSize:c,overscan:s});return(0,Yo.useEffect)(()=>{if(!a)return;let[m]=[...p.getVirtualItems()].reverse();m&&m.index>=o-1&&i&&!l&&a?.()},[i,a,o,l,p.getVirtualItems()]),{getVirtualItems:p.getVirtualItems,getTotalSize:p.getTotalSize,scrollToIndex:(m,n)=>{p.scrollToIndex(m,n)},scrollToOffset:(m,n)=>{p.scrollToOffset(m,n)}}}var Qe=xs;var ge=require("react");var go=(s=>(s[s.IDLE=0]="IDLE",s[s.LOADING=1]="LOADING",s[s.SUCCESS=2]="SUCCESS",s[s.ERROR=3]="ERROR",s))(go||{});function hs(e,t=[]){let[r,o]=(0,ge.useState)(0),[s,i]=(0,ge.useState)({pages:[]}),[l,a]=(0,ge.useState)(),[c,p]=(0,ge.useState)(!0),[m,n]=(0,ge.useState)(!1),d=async()=>{try{o(1),a(void 0),n(!0);let f=s.pages.length-1,T=e.getNextPage(s.pages[f],s.pages),x=await e.query({page:T}),h={pages:[...s.pages,x]};i(h);let b=h.pages.length-1,g=e.getNextPage(h.pages[b],h.pages);p(g!==void 0),n(!1),o(2)}catch(f){a(f),o(3)}};return(0,ge.useEffect)(()=>{(async()=>{try{o(1),a(void 0),n(!0);let T=void 0,x=await e.query({page:T});i({pages:[x]});let h=e.getNextPage(x,[x]);p(h!==void 0),n(!1),o(2)}catch(T){a(T),o(3)}})()},t),{status:r,data:s,error:l,hasNextPage:c,isFetchingNextPage:m,fetchNextPage:d}}var qo=hs;var Ce=require("react"),gs={width:0,height:0};function Cs(e){let t=(0,Ce.useRef)(0),[r,o]=(0,Ce.useState)(gs),s=(0,Ce.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?.(r),o({width:l.contentRect.width,height:l.contentRect.height}))}))}):null,[]);return(0,Ce.useEffect)(()=>{let i=e.ref?.current??e.target;return i&&s?.observe(i),()=>{s?.disconnect(),t.current&&cancelAnimationFrame(t.current)}},[e.ref?.current,e.target]),r}var Ye=Cs;var Jo=require("react");function Co(){return typeof window.ResizeObserver<"u"}function Ts(e){let{ref:t,onResize:r}=e;(0,Jo.useEffect)(()=>{let o=t?.current;if(o)if(Co()){let s=new window.ResizeObserver(i=>{i.length&&r()});return s.observe(o),()=>{o&&s.unobserve(o)}}else return window.addEventListener("resize",r),()=>{window.removeEventListener("resize",r)}},[t,r])}var Zo=Ts;var qe=require("react");function Rs(e){let t=(0,qe.useRef)(null);return(0,qe.useLayoutEffect)(()=>{t.current=e},[e]),(0,qe.useCallback)((...r)=>{let o=t.current;return o(...r)},[])}var Pt=Rs;var Je=require("react");function ys(e){let[t,r]=(0,Je.useState)(e),o=(0,Je.useRef)(null),s=Pt(()=>{if(!o.current)return;let l=o.current.next();if(l.done){o.current=null;return}t===l.value?s():r(l.value)});(0,Je.useLayoutEffect)(()=>{o.current&&s()});let i=Pt(l=>{o.current=l(t),s()});return[t,i]}var jo=ys;var ve=require("react");var Xt=require("react"),er=(0,Xt.createContext)(null),Te=()=>{let e=(0,Xt.useContext)(er);if(!e)throw new Error("`useCollapse` must be used within a `<Collapse />`");return e},Wt=er;var tr=require("react/jsx-runtime"),bs=({children:e,isOpen:t,onOpen:r,onClose:o,onToggle:s})=>{let i=(0,ve.useRef)(null),[l,a]=(0,ve.useState)(t??!1),[c,p]=(0,ve.useState)(!1),[m,n]=ve.Children.toArray(e),d=()=>{a(!0),r?.()},f=()=>{a(!1),o?.()},T=()=>{a(x=>!x),s?.()};return(0,ve.useEffect)(()=>{t!==void 0&&a(t),setTimeout(()=>{p(!!t)},100)},[t]),(0,tr.jsxs)(Wt.Provider,{value:{collapseRef:i,isOpen:l,heightAuto:c,onOpen:d,onClose:f,onToggle:T},children:[m,n]})},Re=bs;var or=L(require("clsx")),Ze=require("react");var Ss=(0,Ze.forwardRef)(({children:e},t)=>{let{collapseRef:r,isOpen:o,heightAuto:s}=Te(),i=Ze.Children.only(e);return(0,Ze.cloneElement)(i,{...i.props,ref:l=>{r.current=l,t!==null&&(t.current=l)},style:{...i.props.style,height:o&&s?"auto":o||!o&&s?r.current?.scrollHeight:0},className:(0,or.default)(`${u}collapse`,i.props.className)})}),ae=Ss;var je=require("react");var Ps=(0,je.forwardRef)(({children:e},t)=>{let{collapseRef:r,onToggle:o}=Te(),s=je.Children.only(e),{onClick:i,...l}=s.props;return(0,je.cloneElement)(s,{ref:t,onClick:a=>{r.current&&(o(),i?.(a))},...l})}),ce=Ps;var Ut=require("react/jsx-runtime"),nr=(0,ye.createContext)(null),sr=()=>{let e=(0,ye.useContext)(nr);if(!e)throw new Error("`useAccordionItem` must be used within a `<AccordionItem />`");return e},Is=(0,ye.forwardRef)((e,t)=>{let{children:r,className:o,value:s,...i}=e,[l]=(0,ye.useState)((0,rr.v4)()),a=s??l,{isOpen:c,onOpen:p,onClose:m,onToggle:n}=ie({defaultValue:!0}),d=u;return(0,Ut.jsx)(nr.Provider,{value:{value:a},children:(0,Ut.jsx)("div",{ref:t,className:R(`${d}accordion-item`,o),...i,children:(0,Ut.jsx)(Re,{isOpen:c,onOpen:p,onClose:m,onToggle:n,children:r})})})}),ir=Is;var Tr=require("react");var lr=require("react"),_e=require("react/jsx-runtime"),Es=(0,lr.forwardRef)((e,t)=>(0,_e.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,_e.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,_e.jsx)("path",{d:"M12 9v4"}),(0,_e.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,_e.jsx)("path",{d:"M12 16h.01"})]})),To=Es;var ar=require("react"),It=require("react/jsx-runtime"),ws=(0,ar.forwardRef)((e,t)=>(0,It.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,It.jsx)("path",{fill:"none",d:"M0 0h24v24H0V0z"}),(0,It.jsx)("path",{d:"M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"})]})),U=ws;var cr=require("react"),Et=require("react/jsx-runtime"),Ms=(0,cr.forwardRef)((e,t)=>(0,Et.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,Et.jsx)("path",{fill:"none",d:"M0 0h24v24H0z"}),(0,Et.jsx)("path",{d:"M7.41 15.41L12 10.83l4.59 4.58L18 14l-6-6-6 6z"})]})),Q=Ms;var ur=require("react"),et=require("react/jsx-runtime"),Ls=(0,ur.forwardRef)((e,t)=>(0,et.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,et.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,et.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,et.jsx)("path",{d:"M9 12l2 2l4 -4"})]})),Ro=Ls;var pr=require("react"),tt=require("react/jsx-runtime"),As=(0,pr.forwardRef)((e,t)=>(0,tt.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,tt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,tt.jsx)("path",{d:"M18 6l-12 12"}),(0,tt.jsx)("path",{d:"M6 6l12 12"})]})),Oe=As;var mr=require("react"),Ve=require("react/jsx-runtime"),Ns=(0,mr.forwardRef)((e,t)=>(0,Ve.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,Ve.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,Ve.jsx)("path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 0 0 -18 0"}),(0,Ve.jsx)("path",{d:"M12 9h.01"}),(0,Ve.jsx)("path",{d:"M11 12h1v4h1"})]})),yo=Ns;var dr=require("react"),wt=require("react/jsx-runtime"),$s=(0,dr.forwardRef)((e,t)=>(0,wt.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,wt.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,wt.jsx)("path",{d:"M12 3a9 9 0 1 0 9 9"})]})),Fe=$s;var fr=require("react"),ot=require("react/jsx-runtime"),ks=(0,fr.forwardRef)((e,t)=>(0,ot.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,ot.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,ot.jsx)("path",{d:"M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"}),(0,ot.jsx)("path",{d:"M10 10l4 4m0 -4l-4 4"})]})),bo=ks;var vr=require("react"),De=require("react/jsx-runtime"),Hs=(0,vr.forwardRef)((e,t)=>(0,De.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,De.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,De.jsx)("path",{d:"M5 12l14 0"}),(0,De.jsx)("path",{d:"M5 12l6 6"}),(0,De.jsx)("path",{d:"M5 12l6 -6"})]})),So=Hs;var xr=require("react"),ze=require("react/jsx-runtime"),_s=(0,xr.forwardRef)((e,t)=>(0,ze.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,ze.jsx)("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),(0,ze.jsx)("path",{d:"M5 12l14 0"}),(0,ze.jsx)("path",{d:"M13 18l6 -6"}),(0,ze.jsx)("path",{d:"M13 6l6 6"})]})),Po=_s;var gr=L(require("clsx")),Cr=require("react");var hr=L(require("clsx")),rt=require("react");var Os=(0,rt.forwardRef)(({children:e,size:t},r)=>{let o=rt.Children.only(e);return(0,rt.cloneElement)(o,{ref:r,...o.props,className:(0,hr.default)(`${u}icon`,{[`${u}font-size-${t}`]:t},o.props.className)})}),E=Os;var be=require("react/jsx-runtime"),K=(0,Cr.forwardRef)(({as:e="button",children:t,className:r,role:o="presentation",variant:s="text",color:i="primary",size:l="md",iconOnly:a,startContent:c,endContent:p,block:m,loading:n,disabled:d,...f},T)=>{let x=u;return(0,be.jsxs)(e,{ref:T,className:(0,gr.default)(`${x}button`,{[`${x}button--${s}`]:s,[`${x}button--${i}`]:i,[`${x}button--${l}`]:l,[`${x}button--block`]:m,[`${x}button--icon-only`]:a,[`${x}button--disabled`]:d},r),role:o,disabled:d,...f,children:[(0,be.jsx)("div",{className:`${x}overlay`}),(0,be.jsx)("div",{className:`${x}outline`}),n?(0,be.jsx)(E,{children:(0,be.jsx)(Fe,{className:`${x}animation-spin`})}):c,(0,be.jsx)("div",{className:`${x}button__content`,children:t}),p]})});var D=require("react/jsx-runtime"),Vs=(0,Tr.forwardRef)((e,t)=>{let{className:r,title:o,subtitle:s,startContent:i,endContent:l,...a}=e,c=u,{isOpen:p}=Te();return(0,D.jsx)(ce,{children:(0,D.jsxs)("div",{ref:t,className:R(`${c}accordion-header`,r),...a,children:[i&&(0,D.jsx)("div",{className:`${c}accordion-header__start-content`,children:i}),(0,D.jsxs)("div",{className:`${c}accordion-header__content`,children:[(0,D.jsx)("div",{className:`${c}accordion-header__title`,children:o}),s&&(0,D.jsx)("div",{className:`${c}accordion-header__subtitle`,children:s})]}),(0,D.jsx)("div",{className:`${c}accordion-header__end-content`,children:(0,D.jsxs)("div",{className:"us-d-flex us-items-center us-gap-1",children:[l,(0,D.jsx)(K,{type:"button",variant:"text",color:"secondary",size:"sm",iconOnly:!0,children:(0,D.jsx)(E,{children:p?(0,D.jsx)(Q,{}):(0,D.jsx)(U,{})})})]})})]})})}),Rr=Vs;var yr=require("react");var Qt=require("react/jsx-runtime"),Fs=(0,yr.forwardRef)(({children:e,className:t,...r},o)=>(0,Qt.jsx)(ae,{children:(0,Qt.jsx)("div",{ref:o,children:(0,Qt.jsx)("div",{className:R(`${u}accordion-panel`,t),...r,children:e})})})),br=Fs;var Sr=require("react");var Yt=require("react/jsx-runtime"),Ds=(0,Sr.forwardRef)(({children:e,className:t,...r},o)=>(0,Yt.jsx)(ae,{children:(0,Yt.jsx)("div",{ref:o,children:(0,Yt.jsx)("div",{className:R(`${u}accordion-content`,t),...r,children:e})})})),Pr=Ds;var Ir=require("react"),wr=require("react/jsx-runtime"),zs=(0,Ir.forwardRef)(({children:e},t)=>(0,wr.jsx)(ce,{ref:t,children:e})),Er=zs;var G=require("react");var Y=require("react");var Mr=require("react"),Lr=require("react-dom");var Ar=require("react/jsx-runtime"),Gs=(0,Mr.forwardRef)(({children:e,container:t},r)=>(0,Lr.createPortal)((0,Ar.jsx)("div",{ref:r,className:`${u}portal`,children:e}),t||document.body)),nt=Gs;var Nr=L(require("clsx")),$r=require("react"),kr=require("react-transition-group"),Hr=require("react/jsx-runtime"),Bs=(0,$r.forwardRef)((e,t)=>{let{children:r,className:o,nodeRef:s,name:i,isOpen:l,enter:a=0,leave:c=0,mountOnEnter:p,unmountOnExit:m,onExited:n}=e;return(0,Hr.jsx)(kr.CSSTransition,{nodeRef:s,in:l,appear:!0,timeout:{enter:a,exit:c},mountOnEnter:p,unmountOnExit:m,classNames:(0,Nr.default)(i,o),onExited:n,children:r})}),Se=Bs;var qt=require("react"),_r=(0,qt.createContext)(null),z=()=>{let e=(0,qt.useContext)(_r);if(!e)throw new Error("`usePopover` must be used within a `<Popover />`");return e},Or=_r;var Mt=require("react/jsx-runtime"),Ks=e=>{let{children:t,target:r,autoClose:o=!0,triggerClosable:s=!0,isOpen:i,onOpen:l,onClose:a,onToggle:c,onAfterClose:p}=e,m=(0,Y.useRef)(null),n=(0,Y.useRef)(null),[d,f]=(0,Y.useState)(e.isOpen||!1),[T,x]=Y.Children.toArray(t),h=u,b=()=>{i!==void 0?l?.():f(!0)},g=()=>{i!==void 0?a?.():f(!1)},v=()=>{i!==void 0?c?.():f(C=>!C)};return(0,Y.useEffect)(()=>{f(i||!1)},[i]),(0,Mt.jsxs)(Or.Provider,{value:{triggerRef:m,contentRef:n,target:r,isOpen:d,autoClose:o,triggerClosable:s,onOpen:b,onClose:g,onToggle:v},children:[T,(0,Mt.jsx)(Se,{nodeRef:n,isOpen:d,enter:300,leave:150,name:`${h}popover`,unmountOnExit:!0,onExited:p,children:(0,Mt.jsx)(nt,{children:(0,Y.cloneElement)(Y.Children.only(x),{...x.props,ref:n})})})]})},st=Ks;var ue=require("react");var Fr=require("react/jsx-runtime");function Vr(e){return e==null?null:e.scrollHeight>e.clientHeight?e:Vr(e.parentNode)}var Xs=(0,ue.forwardRef)((e,t)=>{let{children:r,style:o,className:s,onClick:i,...l}=e,{triggerRef:a,contentRef:c,target:p,onClose:m}=z(),n=u,d=(0,ue.useRef)(null),[f,T]=(0,ue.useState)({position:"absolute",top:0,left:0,visibility:"hidden"}),x=Vr(a.current)||document.body;Ye({target:x,callback:()=>{b()}}),Gt(c,g=>{let v=a.current;!v||v.contains(g.target)||m()});let h=g=>{g.stopPropagation(),i?.(g)},b=(0,ue.useCallback)(()=>{let g=c.current?.getBoundingClientRect(),v=a.current?.getBoundingClientRect();if(!g||!v||!x)return;let C={innerWidth:window.innerWidth,innerHeight:window.innerHeight},y={width:v.width,height:v.height,top:v.top+window.scrollY,bottom:v.top+v.height+window.scrollY,left:v.left+window.scrollX,right:v.left+v.width+window.scrollX},S=y.left+g.width>C.innerWidth,_=y.top+g.height>C.innerHeight+window.scrollY,w={...p&&{width:y.width,minWidth:"auto"},position:"absolute",top:_?void 0:y.bottom,bottom:_?C.innerHeight-y.top:void 0,left:S?void 0:y.left,right:S?C.innerWidth-y.right:void 0,visibility:void 0};T(w)},[]);return(0,ue.useEffect)(()=>(b(),x.addEventListener("scroll",b),window.addEventListener("orientationchange",b),()=>{x.removeEventListener("scroll",b),window.removeEventListener("orientationchange",b)}),[]),(0,Fr.jsx)("div",{ref:xe(d,t),className:R(`${n}popover`,s),style:{...o,...f},onClick:h,...l,children:r})}),it=Xs;var lt=require("react");var Ws=(0,lt.forwardRef)((e,t)=>{let{children:r,onClick:o,...s}=e,{isOpen:i,triggerRef:l,triggerClosable:a,onOpen:c,onClose:p}=z(),m=lt.Children.only(typeof r=="function"?r(i):r),n=d=>{d.preventDefault(),a&&i?p():c(),o?.(d),m.props.onClick?.(d)};return(0,lt.cloneElement)(m,{...m.props,...s,ref:xe(t,l),onClick:n})}),at=Ws;var H=require("react/jsx-runtime"),Us=({className:e,title:t,subtitle:r,icon:o,status:s,extra:i,size:l="md",...a})=>{let c=u;return(0,H.jsxs)("div",{className:R(`${c}result`,{[`${c}result--${s}`]:s,[`${c}result--${l}`]:l},e),...a,children:[o?(0,H.jsx)("div",{className:`${c}result__icon`,children:o}):s?(0,H.jsx)("div",{className:`${c}result__icon`,children:s==="sucess"?(0,H.jsx)(E,{children:(0,H.jsx)(Ro,{})}):s==="info"?(0,H.jsx)(E,{children:(0,H.jsx)(yo,{})}):s==="warning"?(0,H.jsx)(E,{children:(0,H.jsx)(To,{})}):s==="danger"?(0,H.jsx)(E,{children:(0,H.jsx)(bo,{})}):null}):null,(t||r)&&(0,H.jsxs)("div",{className:`${c}result__content`,children:[t&&(0,H.jsx)("div",{className:`${c}result__title`,children:t}),r&&(0,H.jsx)("div",{className:`${c}result__subtitle`,children:r})]}),i&&(0,H.jsx)("div",{className:`${c}result__extra`,children:i})]})},ct=Us;var ut=require("react");var Dr=require("react");var zr=require("react/jsx-runtime"),Qs=(0,Dr.forwardRef)(({as:e="div",children:t,className:r,size:o="md",...s},i)=>{let l=u;return(0,zr.jsx)(e,{ref:i,className:R(`${l}list`,{[`${l}list--${o}`]:o},r),...s,children:t})}),q=Qs;var Br=require("react");var Gr=require("react");var J=require("react/jsx-runtime"),Ys=(0,Gr.forwardRef)(({as:e="div",children:t,className:r,title:o,subtitle:s,startContent:i,endContent:l,level:a=1,hoverable:c,selected:p,disabled:m,slotProps:n,style:d,onClick:f,...T},x)=>{let h=u,b=g=>{f?.(g)};return(0,J.jsxs)(e,{ref:x,className:R(`${h}list-item`,{[`${h}list-item--hoverable`]:c,[`${h}list-item--selected`]:p,[`${h}list-item--disabled`]:m},r),style:{paddingLeft:a<=1?`var(--${h}list-item-padding-x)`:`calc(${a} * var(--${h}list-item-padding-level))`,...d},onClick:b,...T,children:[(c||p)&&(0,J.jsx)("div",{className:`${h}overlay`}),i&&(0,J.jsx)("div",{className:`${h}list-item__start-content`,children:i}),(0,J.jsx)("div",{className:`${h}list-item__content`,children:o||s?(0,J.jsxs)(J.Fragment,{children:[(0,J.jsx)("span",{...n?.title,className:R(`${h}list-item__title`,n?.title?.className),children:o}),(0,J.jsx)("span",{...n?.subtitle,className:R(`${h}list-item__subtitle`,n?.subtitle?.className),children:s})]}):t}),l&&(0,J.jsx)("div",{className:`${h}list-item__end-content`,children:l})]})}),O=Ys;var A=require("react/jsx-runtime"),qs=(0,Br.forwardRef)(({children:e,startContent:t,endContent:r,expandVisible:o=!0,expandPosition:s="end",isOpen:i,onOpen:l,onClose:a,onToggle:c,...p},m)=>{let n=i!==void 0?{isOpen:i,onOpen:l,onClose:a,onToggle:c}:ie();return(0,A.jsx)("div",{className:`${u}list-group`,children:(0,A.jsxs)(Re,{...n,children:[(0,A.jsx)(ce,{children:(0,A.jsx)(O,{ref:m,startContent:o&&s==="start"?(0,A.jsxs)(A.Fragment,{children:[(0,A.jsx)(E,{children:n.isOpen?(0,A.jsx)(Q,{}):(0,A.jsx)(U,{})}),t]}):t,endContent:o&&s==="end"?(0,A.jsxs)(A.Fragment,{children:[r,(0,A.jsx)(E,{children:n.isOpen?(0,A.jsx)(Q,{}):(0,A.jsx)(U,{})})]}):r,...p})}),(0,A.jsx)(ae,{children:(0,A.jsx)("div",{children:(0,A.jsx)(q,{children:e})})})]})})}),Kr=qs;var Xr=require("react");var Ge=require("react/jsx-runtime"),Js=(0,Xr.forwardRef)(({as:e="div",title:t,startContent:r,endContent:o,className:s,...i},l)=>{let a=u;return(0,Ge.jsxs)(e,{ref:l,className:R(`${a}list-subheader ${a}list-item`,s),...i,children:[r&&(0,Ge.jsx)("div",{className:`${a}list-item__start-content`,children:r}),(0,Ge.jsx)("div",{className:`${a}list-item__content`,children:(0,Ge.jsx)("span",{className:`${a}list-item__title`,children:t})}),o&&(0,Ge.jsx)("div",{className:`${a}list-item__end-content`,children:o})]})}),Wr=Js;var Ur=require("react"),Qr=require("react-custom-scrollbars-2");var Be=require("react/jsx-runtime"),Zs=(0,Ur.forwardRef)(({children:e,autoHide:t=!1,autoHeight:r=!1,style:o},s)=>{let i=u,l=n=>(0,Be.jsx)("div",{...n,className:R(`${i}scroll-area__view`,n.className)}),a=n=>(0,Be.jsx)("div",{...n,className:R(`${i}scroll-area__track ${i}scroll-area__track--horizontal`,n.className)}),c=n=>(0,Be.jsx)("div",{...n,className:R(`${i}scroll-area__track ${i}scroll-area__track--vertical`,n.className)}),p=n=>(0,Be.jsx)("div",{...n,className:R(`${i}scroll-area__thumb ${i}scroll-area__thumb--horizontal`,n.className)}),m=n=>(0,Be.jsx)("div",{...n,className:R(`${i}scroll-area__thumb ${i}scroll-area__thumb--vertical`,n.className)});return(0,Be.jsx)(Qr.Scrollbars,{autoHide:t,className:`${i}scroll-area`,renderTrackHorizontal:a,renderTrackVertical:c,renderThumbHorizontal:p,renderThumbVertical:m,renderView:l,autoHeight:r,style:o,ref:n=>{n&&St(s,n.container.firstElementChild)},children:e})}),pe=Zs;var Jt=require("react"),Yr=(0,Jt.createContext)(null),Zt=()=>{let e=(0,Jt.useContext)(Yr);if(!e)throw new Error("`useAutocomplete` must be used within a `<Autocomplete />`");return e},qr=Yr;var Lt=require("react/jsx-runtime"),js=()=>{let{data:e,values:t,offset:r,setOffset:o,keyField:s,textField:i,onItemSelect:l,renderItem:a}=Zt(),c=(0,ut.useRef)(null),{isOpen:p}=z(),m=n=>{l(n),o(c.current?.scrollHeight||0)};return(0,ut.useEffect)(()=>{p&&c.current?.scrollTo({top:r})},[p]),(0,Lt.jsx)(pe,{ref:c,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Lt.jsx)(q,{children:a?e.map(n=>(0,Lt.jsx)(ut.Fragment,{children:a(n,{title:"",selected:t.includes(n[s]),hoverable:!0,onClick:()=>m(n)})},n[s])):e.map(n=>(0,Lt.jsx)(O,{title:n[i],selected:t.includes(n[s]),hoverable:!0,onClick:()=>m(n)},n[s]))})})},Jr=js;var pt=require("react");var Io=e=>Array.isArray(e)?e:e!==null?[e]:[],At=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var Pe=require("react/jsx-runtime"),ei=()=>{let{data:e,values:t,keyField:r,textField:o,virtual:s,onItemSelect:i,renderItem:l}=Zt(),a=(0,pt.useRef)(null),c=Qe({...s,count:e.length,parentRef:a}),{isOpen:p}=z(),m=n=>{i(n)};return(0,pt.useEffect)(()=>{if(!p)return;let n=At(t),d=e.findIndex(f=>f[r]===n);d!==-1&&c.scrollToIndex(d,{align:"start"})},[p]),s?(0,Pe.jsx)(pe,{ref:a,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,Pe.jsx)(q,{children:(0,Pe.jsx)("div",{style:{height:`${c.getTotalSize()}px`,width:"100%",position:"relative"},children:c.getVirtualItems().map(n=>{let d=n.index>e.length-1,f=e[n.index];return d?(0,Pe.jsx)(O,{title:s.hasNextPage?"Loading...":"Nothing more to load",style:{position:"absolute",top:0,left:0,width:"100%",height:`${n.size}px`,transform:`translateY(${n.start}px)`}},n.index):f?l?(0,Pe.jsx)(pt.Fragment,{children:l(f,{title:"",selected:t.includes(f[r]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${n.size}px`,transform:`translateY(${n.start}px)`},onClick:()=>m(f)})},n.index):(0,Pe.jsx)(O,{title:f[o],selected:t.includes(f[r]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${n.size}px`,transform:`translateY(${n.start}px)`},onClick:()=>m(f)},n.index):(0,Pe.jsx)(O,{title:`Item ${n.index} not found`,style:{position:"absolute",top:0,left:0,width:"100%",height:`${n.size}px`,transform:`translateY(${n.start}px)`}},n.index)})})})}):null},Zr=ei;var I=require("react/jsx-runtime"),ti=e=>{let{data:t,value:r,keyField:o="key",textField:s="text",isMultiple:i=!1,disabled:l,loading:a,clearable:c=!0,disclosure:p,virtual:m,placeholder:n,className:d,style:f,startContent:T,endContent:x,onFilterChange:h,renderItem:b,renderNoData:g}=e,v=p!==void 0?p:ie(),C=u,y=(0,G.useRef)(null),[S,_]=(0,G.useState)(""),[w,k]=(0,G.useState)(""),[ee,V]=(0,G.useState)(!1),[Ne,$e]=(0,G.useState)(!1),te=(0,G.useMemo)(()=>Io(r),[r]),ke=(0,G.useMemo)(()=>t.filter(N=>te.includes(N[o])),[t,te]),[He,We]=(0,G.useState)(0),yt=()=>{y?.current?.focus()},bt=N=>{if(e.isMultiple){let re=t.filter(fe=>N.includes(fe[o]));e.onChange?.(re),e.onValueChange?.(N)}else{let re=At(N),fe=null;re!==void 0&&(fe=t.find(Vt=>Vt[o]===re)??null),e.onChange?.(fe),e.onValueChange?.(re)}},vo=N=>{N.stopPropagation(),V(!0),k(""),e.isMultiple?(e.onChange?.([]),e.onValueChange?.([])):(e.onChange?.(null),e.onValueChange?.(null)),V(!1)},$=N=>{!v.isOpen&&v.onOpen(),V(!0),k(N.target.value),h?.(N.target.value)},B=N=>{let re=N[o];if(e.isMultiple){let fe=[...te],Vt=te.indexOf(re);Vt===-1?fe.push(re):fe.splice(Vt,1),bt(fe)}else At(te)!==re&&bt([re]);ee&&_(w),V(!1),y.current?.focus(),v.onClose()},oe=()=>{v.onOpen(),$e(!0)},Ue=()=>{if(v.onClose(),!e.isMultiple&&ee){let N=ke[0];N!==void 0?(k(N[s]),h?.(S)):(k(""),h?.(S)),V(!1)}};return(0,G.useEffect)(()=>{if(!ee&&!e.isMultiple){let N=ke[0];N!==void 0&&k(N[s])}},[ke]),(0,G.useEffect)(()=>{Io(r)[0]===void 0&&(k(""),h?.(""))},[r]),(0,I.jsx)(qr.Provider,{value:{data:t,values:te,keyField:o,textField:s,isMultiple:i,virtual:m,onChange:bt,onItemSelect:B,offset:He,setOffset:We,renderItem:b},children:(0,I.jsxs)(st,{target:!0,...v,isOpen:v.isOpen,onOpen:oe,onClose:Ue,autoClose:"outside",children:[(0,I.jsx)(at,{children:(0,I.jsxs)("div",{className:R(`${C}input ${C}input--filterable`,{[`${C}input--focus`]:Ne,[`${C}input--disabled`]:l,[`${C}input--clearable`]:c},d),style:f,onClick:yt,onFocus:()=>{$e(!0)},onBlur:()=>{$e(!1)},children:[(0,I.jsx)("div",{className:`${C}outline`}),(0,I.jsxs)("div",{className:`${C}input__content`,children:[T&&(0,I.jsx)("div",{className:`${C}input__start-content`,children:T}),(0,I.jsx)("input",{ref:y,className:`${C}input__field`,value:w,placeholder:n,disabled:l,onChange:$}),(0,I.jsxs)("div",{className:`${C}input__end-content`,children:[x,a?(0,I.jsx)(E,{children:(0,I.jsx)(Fe,{className:`${C}animation-spin`})}):c?(0,I.jsx)("div",{className:`${C}input__clearable`,children:(0,I.jsx)(K,{color:"secondary",variant:"plain",size:"xs",iconOnly:!0,onClick:vo,children:(0,I.jsx)(E,{children:(0,I.jsx)(Oe,{})})})}):null,(0,I.jsx)("div",{style:{pointerEvents:"none"},children:(0,I.jsx)(E,{children:v.isOpen?(0,I.jsx)(Q,{}):(0,I.jsx)(U,{})})})]})]})]})}),(0,I.jsx)(it,{style:{maxHeight:"200px"},children:t.length===0?(0,I.jsx)(I.Fragment,{children:g?g({status:"info",title:"No data",size:"sm",onClick:()=>{v.onClose()}}):(0,I.jsx)(ct,{status:"info",title:"No data",size:"sm",onClick:v.onClose})}):m?(0,I.jsx)(Zr,{}):(0,I.jsx)(Jr,{})})]})})},jr=ti;var en=L(require("clsx")),jt=require("react"),tn=require("react-merge-refs");var mt=require("react/jsx-runtime"),oi=(0,jt.forwardRef)((e,t)=>{let{children:r,className:o,isOpen:s,onClose:i,...l}=e,a=(0,jt.useRef)(null);return(0,mt.jsx)(Se,{nodeRef:a,isOpen:s,name:`${u}backdrop`,enter:300,leave:300,mountOnEnter:!0,unmountOnExit:!0,children:(0,mt.jsx)(nt,{children:(0,mt.jsxs)("div",{ref:(0,tn.mergeRefs)([t,a]),className:(0,en.default)(`${u}backdrop`,o),tabIndex:-1,...l,children:[(0,mt.jsx)("div",{className:`${u}backdrop__overlay`,onClick:i}),r]})})})}),eo=oi;var Eo=L(require("clsx"));var to=require("react/jsx-runtime"),ri=({children:e,placement:t,content:r})=>(0,to.jsxs)("div",{className:(0,Eo.default)(`${u}badge-wrapper`),children:[e,(0,to.jsx)("div",{className:(0,Eo.default)(`${u}badge`,{[`${u}badge--${t}`]:t}),children:r})]}),on=ri;var rn=require("react");var oo=require("react/jsx-runtime"),ni=(0,rn.forwardRef)(({as:e="div",children:t,className:r,size:o="md",hoverable:s,selected:i,disabled:l,...a},c)=>{let p=u;return(0,oo.jsxs)(e,{ref:c,className:R(`${p}card`,{[`${p}card--${o}`]:o,[`${p}card--hoverable`]:s,[`${p}card--selected`]:i,[`${p}card--disabled`]:l},r),...a,children:[(s||i)&&(0,oo.jsx)("div",{className:`${p}overlay`}),t]})}),nn=ni;var ln=require("react/jsx-runtime"),si=({children:e,className:t,...r})=>(0,ln.jsx)("div",{className:R(`${u}card-body`,t),...r,children:e}),sn=si;var an=require("react");var ne=require("react/jsx-runtime"),ii=(0,an.forwardRef)(({as:e="div",children:t,className:r,title:o,subtitle:s,startContent:i,endContent:l,bordered:a=!0,slotProps:c,...p},m)=>{let n=u;return(0,ne.jsxs)(e,{ref:m,className:R(`${n}card-header`,{[`${n}card-header--bordered`]:a},r),...p,children:[i&&(0,ne.jsx)("div",{className:`${n}card-header__start-content`,children:i}),(0,ne.jsx)("div",{className:`${n}card-header__content`,children:o||s?(0,ne.jsxs)(ne.Fragment,{children:[(0,ne.jsx)("span",{...c?.title,className:R(`${n}card-header__title`,c?.title?.className),children:o}),(0,ne.jsx)("span",{...c?.subtitle,className:R(`${n}card-header__subtitle`,c?.subtitle?.className),children:s})]}):t}),l&&(0,ne.jsx)("div",{className:`${n}card-header__end-content`,children:l})]})}),cn=ii;var wo=L(require("clsx")),un=require("react");var Nt=require("react/jsx-runtime"),li=(0,un.forwardRef)(({as:e="div",children:t,className:r,variant:o="text",color:s="primary",size:i="md",...l},a)=>(0,Nt.jsxs)(e,{ref:a,className:(0,wo.default)(`${u}chip`,{[`${u}chip--${o}`]:o,[`${u}chip--${s}`]:s,[`${u}chip--${i}`]:i},r),...l,children:[(0,Nt.jsx)("div",{className:(0,wo.default)(`${u}overlay`)}),(0,Nt.jsx)("div",{className:`${u}outline`}),t]})),pn=li;var mn=L(require("clsx")),ro=require("react"),dn=require("react-merge-refs");var dt=require("react/jsx-runtime"),ai=(0,ro.forwardRef)((e,t)=>{let{children:r,className:o,isOpen:s,size:i="md",position:l="left",onClose:a}=e,c=(0,ro.useRef)(null);return(0,dt.jsx)(eo,{isOpen:s,onClose:()=>{a()},children:(0,dt.jsx)(Se,{nodeRef:c,isOpen:s,name:`${u}drawer`,enter:600,leave:300,unmountOnExit:!0,children:(0,dt.jsxs)("div",{ref:(0,dn.mergeRefs)([t,c]),className:(0,mn.default)(`${u}drawer`,{[`${u}drawer--${i}`]:i,[`${u}drawer--${l}`]:l},o),children:[(0,dt.jsx)("div",{className:`${u}drawer__overlay`}),r]})})})}),fn=ai;var vn=require("react");var $t=require("react/jsx-runtime"),ci=(0,vn.forwardRef)(({children:e,label:t},r)=>{{let o=u;return(0,$t.jsxs)("div",{ref:r,className:R(`${o}field`),children:[(0,$t.jsx)("div",{className:`${o}field__label`,children:t}),(0,$t.jsx)("div",{className:`${o}field__content`,children:e})]})}}),xn=ci;var In=L(require("clsx")),Ee=require("react");var no=require("react"),hn=(0,no.createContext)(null),ft=()=>{let e=(0,no.useContext)(hn);if(!e)throw new Error("`useMenu` must be used within a `<Menu />`");return e},so=hn;var Sn=L(require("clsx")),Pn=require("react");var Tn=L(require("clsx")),vt=require("react");var io=require("react"),gn=(0,io.createContext)([]),Cn=()=>{let e=(0,io.useContext)(gn);if(!e)throw new Error("`useMenuValue` must be used within a `<MenuValueContext.Provider />`");return e},Ke=gn;var Ie=require("react/jsx-runtime"),Rn=(0,vt.forwardRef)((e,t)=>{let{as:r="div",className:o,style:s,value:i,title:l,icon:a,level:c=1,disabled:p,onClick:m,...n}=e,{value:d,originalValue:f,navMode:T,onChange:x,onOpen:h,onItemSelect:b}=ft(),g=(0,vt.useContext)(Ke),v=[...g,i],C=d[c-1]===i,y=S=>{i!==void 0&&x(v),m?.(S),b?.(e)};return(0,vt.useEffect)(()=>{T==="automatic"&&f.length>0&&f[f.length-1]===i&&(h(g),x(v))},[i,f,T]),(0,Ie.jsxs)(r,{ref:t,className:(0,Tn.default)(`${u}menu-item`,{[`${u}menu-item--selected`]:C,[`${u}menu-item--disabled`]:p},o),style:{paddingLeft:c<=1?`var(--${u}menu-item-padding-x)`:`calc(${c} * var(--${u}menu-item-padding-level))`,...s},onClick:y,...n,children:[(0,Ie.jsx)("div",{className:`${u}overlay`,children:(0,Ie.jsx)("div",{className:`${u}overlay__surface`})}),a&&(0,Ie.jsx)("div",{className:`${u}menu-item__icon`,children:a}),(0,Ie.jsx)("div",{className:`${u}menu-item__content`,children:(0,Ie.jsx)("span",{className:`${u}menu-item__title`,children:l})})]})});Rn.displayName="MenuItem";var se=Rn;var ao=L(require("clsx")),co=require("react");var yn=e=>e.split("/").reduce((t,r)=>{let o=t[t.length-1];return o!=null?t.push(o+"/"+r):t.push(""),t},[]),lo=(e,t)=>{let r=e.indexOf(t),o=[...e];return r===-1?o.push(t):o.splice(r,1),o};var M=require("react/jsx-runtime"),bn=({children:e,className:t,style:r,value:o,title:s,icon:i,level:l=1,items:a,onClick:c,...p})=>{let{value:m,openValues:n,expandMode:d,onOpen:f}=ft(),T=(0,co.useContext)(Ke),x=n.includes(o),h=[...T,o],b=m[l-1]===o,g=(0,co.useMemo)(()=>a?.map(({type:C,...y},S)=>C==="item"?(0,M.jsx)(se,{level:l!==void 0?l+1:void 0,...y},S):C==="submenu"?(0,M.jsx)(bn,{level:l!==void 0?l+1:void 0,...y},S):C==="group"?(0,M.jsx)(ht,{level:l!==void 0?l+1:void 0,...y},S):(0,M.jsx)(se,{level:l!==void 0?l+1:void 0,...y},S)),[a]),v=C=>{if(d==="multiple"){let y=lo(n,o);f(y)}else if(x){let y=lo(h,o);f(y)}else{let y=lo(T,o);f(y)}c?.(C)};return(0,M.jsx)(Ke.Provider,{value:h,children:(0,M.jsx)("div",{className:(0,ao.default)(`${u}menu-submenu`),children:(0,M.jsxs)(Re,{isOpen:x,children:[(0,M.jsx)(ce,{children:(0,M.jsxs)("div",{className:(0,ao.default)(`${u}menu-item`,{[`${u}menu-item--selected`]:b||a&&h.includes(m)},t),style:{paddingLeft:l<=1?`var(--${u}menu-item-padding-x)`:`calc(${l} * var(--${u}menu-item-padding-level))`,...r},onClick:v,...p,children:[(0,M.jsx)("div",{className:`${u}overlay`,children:(0,M.jsx)("div",{className:`${u}overlay__surface`})}),i&&(0,M.jsx)("div",{className:`${u}menu-item__icon`,children:i}),(0,M.jsx)("div",{className:`${u}menu-item__content`,children:(0,M.jsx)("span",{className:`${u}menu-item__title`,children:s})}),(0,M.jsx)("div",{className:`${u}menu-item__icon`,children:x?(0,M.jsx)(Q,{className:`${u}icon`}):(0,M.jsx)(U,{className:`${u}icon`})})]})}),(0,M.jsx)(ae,{children:(0,M.jsx)("ul",{className:(0,ao.default)(`${u}menu`,{[`${u}menu-open`]:!x}),children:g||e})})]})})})},xt=bn;var Z=require("react/jsx-runtime"),ui=({children:e,className:t,style:r,title:o,icon:s,level:i=1,items:l,...a})=>{let c=(0,Pn.useMemo)(()=>l?.map(({type:p,...m},n)=>p==="item"?(0,Z.jsx)(se,{...m},n):p==="submenu"?(0,Z.jsx)(xt,{...m},n):(0,Z.jsx)(se,{...m},n)),[l]);return(0,Z.jsxs)(Z.Fragment,{children:[(0,Z.jsxs)("div",{className:(0,Sn.default)(`${u}menu-group`,t),style:{paddingLeft:i<=1?`var(--${u}menu-group-padding-x)`:`calc(${i} * var(--${u}menu-group-padding-level))`,...r},...a,children:[s&&(0,Z.jsx)("div",{className:`${u}menu-group__icon`,children:s}),(0,Z.jsx)("div",{className:`${u}menu-group__content`,children:(0,Z.jsx)("span",{className:`${u}menu-group__title`,children:o})})]}),c||e]})},ht=ui;var Xe=require("react/jsx-runtime"),En=({children:e,value:t=[],defaultValue:r,openValues:o,expandMode:s="multiple",navMode:i="manual",items:l,onChange:a,onOpen:c,onItemSelect:p,...m})=>{let[n,d]=(0,Ee.useState)(t??r??[]),[f,T]=(0,Ee.useState)(o??[]),x=(0,Ee.useMemo)(()=>l?.map(({type:v,...C},y)=>v==="item"?(0,Xe.jsx)(se,{...C},y):v==="submenu"?(0,Xe.jsx)(xt,{...C},y):v==="group"?(0,Xe.jsx)(ht,{...C},y):(0,Xe.jsx)(se,{...C},y)),[l]),h=v=>{t!==void 0&&i!=="automatic"?a?.(v):d(v)},b=v=>{o!==void 0?c?.(v):T(v)},g=v=>{p?.(v)};return(0,Ee.useEffect)(()=>{t!==void 0&&i!=="automatic"&&d(t)},[t]),(0,Ee.useEffect)(()=>{o!==void 0&&T(o)},[o]),(0,Xe.jsx)(so.Provider,{value:{value:n,originalValue:t,openValues:f,expandMode:s,navMode:i,onOpen:b,onChange:h,onItemSelect:g},children:(0,Xe.jsx)("div",{className:(0,In.default)(`${u}menu`),...m,children:x||e})})};En.displayName="Menu";var wn=En;var X=require("react");var gt=require("react");var uo=require("react"),Mn=(0,uo.createContext)(null),po=()=>{let e=(0,uo.useContext)(Mn);if(!e)throw new Error("`useSelect` must be used within a `<Select />`");return e},Ln=Mn;var kt=require("react/jsx-runtime"),pi=()=>{let{data:e,values:t,offset:r,setOffset:o,keyField:s,textField:i,onItemSelect:l,renderItem:a}=po(),c=(0,gt.useRef)(null),{isOpen:p}=z(),m=n=>{l(n),o(c.current?.scrollHeight||0)};return(0,gt.useEffect)(()=>{p&&c.current?.scrollTo({top:r})},[p]),(0,kt.jsx)(pe,{ref:c,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,kt.jsx)(q,{children:a?e.map(n=>(0,kt.jsx)(gt.Fragment,{children:a(n,{title:"",selected:t.includes(n[s]),hoverable:!0,onClick:()=>m(n)})},n[s])):e.map(n=>(0,kt.jsx)(O,{title:n[i],selected:t.includes(n[s]),hoverable:!0,onClick:()=>m(n)},n[s]))})})},An=pi;var Ct=require("react");var Mo=e=>Array.isArray(e)?e:e!==null?[e]:[],Ht=e=>Array.isArray(e)?e.length!==0?e[0]:null:e;var we=require("react/jsx-runtime"),mi=()=>{let{data:e,values:t,keyField:r,textField:o,virtual:s,onItemSelect:i,renderItem:l}=po(),a=(0,Ct.useRef)(null),c=Qe({...s,count:e.length,parentRef:a}),{isOpen:p}=z(),m=n=>{i(n)};return(0,Ct.useEffect)(()=>{if(!p)return;let n=Ht(t),d=e.findIndex(f=>f[r]===n);c.scrollToIndex(d,{align:"start"})},[p]),s?(0,we.jsx)(pe,{ref:a,autoHide:!0,autoHeight:!0,style:{width:"100%",height:"100%",position:"relative"},children:(0,we.jsx)(q,{children:(0,we.jsx)("div",{style:{height:`${c.getTotalSize()}px`,width:"100%",position:"relative"},children:c.getVirtualItems().map(n=>{let d=n.index>e.length-1,f=e[n.index];return d?(0,we.jsx)(O,{title:s.hasNextPage?"Loading...":"Nothing more to load",style:{position:"absolute",top:0,left:0,width:"100%",height:`${n.size}px`,transform:`translateY(${n.start}px)`}},n.index):f?l?(0,we.jsx)(Ct.Fragment,{children:l(f,{title:"",selected:t.includes(f[r]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${n.size}px`,transform:`translateY(${n.start}px)`},onClick:()=>m(f)})},n.index):(0,we.jsx)(O,{title:f[o],selected:t.includes(f[r]),hoverable:!0,style:{position:"absolute",top:0,left:0,width:"100%",height:`${n.size}px`,transform:`translateY(${n.start}px)`},onClick:()=>m(f)},n.index):(0,we.jsx)(O,{title:`Item ${n.index} not found`,style:{position:"absolute",top:0,left:0,width:"100%",height:`${n.size}px`,transform:`translateY(${n.start}px)`}},n.index)})})})}):null},Nn=mi;var P=require("react/jsx-runtime"),di=e=>{let{data:t,value:r,keyField:o="key",textField:s="text",isMultiple:i=!1,disabled:l,loading:a,clearable:c=!0,disclosure:p,virtual:m,placeholder:n,className:d,style:f,startContent:T,endContent:x,renderItem:h,renderNoData:b}=e,g=p!==void 0?p:ie(),v=u,C=(0,X.useRef)(null),[y,S]=(0,X.useState)(""),[_,w]=(0,X.useState)(!1),[k,ee]=(0,X.useState)(!1),V=(0,X.useMemo)(()=>Mo(r),[r]),Ne=(0,X.useMemo)(()=>t.filter($=>V.includes($[o])),[t,V]),[$e,te]=(0,X.useState)(0),ke=()=>{C?.current?.focus()},He=$=>{if(e.isMultiple){let B=t.filter(oe=>$.includes(oe[o]));e.onChange?.(B),e.onValueChange?.($)}else{let B=Ht($),oe=null;B!==null&&(oe=t.find(Ue=>Ue[o]===B)??null),e.onChange?.(oe),e.onValueChange?.(B)}},We=$=>{$.stopPropagation(),w(!0),S(""),e.isMultiple?(e.onChange?.([]),e.onValueChange?.([])):(e.onChange?.(null),e.onValueChange?.(null)),w(!1)},yt=$=>{let B=$[o];if(e.isMultiple){let oe=[...V],Ue=V.indexOf(B);Ue===-1?oe.push(B):oe.splice(Ue,1),He(oe)}else Ht(V)!==B&&He([B]);w(!1),C.current?.focus(),g.onClose()},bt=()=>{g.onOpen(),ee(!0)},vo=()=>{if(g.onClose(),!e.isMultiple&&_){let $=Ne[0];S($!==void 0?$[s]:""),w(!1)}};return(0,X.useEffect)(()=>{if(!_&&!e.isMultiple){let $=Ne[0];$!==void 0&&S($[s])}},[Ne]),(0,X.useEffect)(()=>{Mo(r)[0]===void 0&&S("")},[r]),(0,P.jsx)(Ln.Provider,{value:{data:t,values:V,keyField:o,textField:s,isMultiple:i,virtual:m,onChange:He,onItemSelect:yt,offset:$e,setOffset:te,renderItem:h},children:(0,P.jsxs)(st,{target:!0,...g,isOpen:g.isOpen,onOpen:bt,onClose:vo,autoClose:"outside",children:[(0,P.jsx)(at,{children:(0,P.jsxs)("div",{className:R(`${v}input`,{[`${v}input--focus`]:k,[`${v}input--disabled`]:l,[`${v}input--clearable`]:c},d),style:f,onClick:ke,onFocus:()=>{ee(!0)},onBlur:()=>{ee(!1)},children:[(0,P.jsx)("input",{type:"text",ref:C,style:{position:"absolute",opacity:0}}),(0,P.jsx)("div",{className:`${v}outline`}),(0,P.jsxs)("div",{className:`${v}input__content`,children:[T&&(0,P.jsx)("div",{className:`${v}input__start-content`,children:T}),(0,P.jsx)("div",{className:`${v}input__field`,children:y||n}),(0,P.jsxs)("div",{className:`${v}input__end-content`,children:[x,a?(0,P.jsx)(E,{children:(0,P.jsx)(Fe,{className:`${v}animation-spin`})}):c?(0,P.jsx)("div",{className:`${v}input__clearable`,children:(0,P.jsx)(K,{color:"secondary",variant:"plain",size:"xs",iconOnly:!0,onClick:We,children:(0,P.jsx)(E,{children:(0,P.jsx)(Oe,{})})})}):null,(0,P.jsx)("div",{style:{pointerEvents:"none"},children:(0,P.jsx)(E,{children:g.isOpen?(0,P.jsx)(Q,{}):(0,P.jsx)(U,{})})})]})]})]})}),(0,P.jsx)(it,{style:{maxHeight:"200px"},children:t.length===0?(0,P.jsx)(P.Fragment,{children:b?b({status:"info",title:"No data",size:"sm",onClick:()=>{g.onClose()}}):(0,P.jsx)(ct,{status:"info",title:"No data",size:"sm",onClick:g.onClose})}):m?(0,P.jsx)(Nn,{}):(0,P.jsx)(An,{})})]})})},$n=di;var kn=L(require("clsx")),Tt=require("react");var _t=require("react/jsx-runtime"),fi=(0,Tt.forwardRef)(({id:e,name:t,value:r,defaultValue:o,checked:s,defaultChecked:i,onChange:l,onCheckedChange:a,disabled:c,className:p,...m},n)=>{let[d,f]=(0,Tt.useState)(s),T=u,x=h=>{let{value:b,checked:g}=h.target;f(g),l?.(b),a?.(g)};return(0,Tt.useEffect)(()=>{s!==void 0&&f(s)},[s]),(0,_t.jsxs)("label",{ref:n,htmlFor:e,className:(0,kn.default)(`${T}switch`,{[`${T}switch--checked`]:!!d},p),...m,children:[(0,_t.jsx)("input",{type:"checkbox",id:e,name:t,value:r,defaultValue:o,checked:d,defaultChecked:i,disabled:c,onChange:x}),(0,_t.jsx)("div",{className:`${T}switch__thumb`})]})}),Hn=fi;var On=L(require("clsx")),Vn=L(require("merge-refs")),Me=require("react"),Fn=require("uuid");var mo=require("react"),Lo=(0,mo.createContext)(null),_n=()=>{let e=(0,mo.useContext)(Lo);if(!e)throw new Error("`useTabs` must be used within a `<Tabs />`");return e};var j=require("react/jsx-runtime"),Dn=(0,Me.forwardRef)(({as:e="div",children:t,className:r,role:o="presentation",value:s,startContent:i,endContent:l,closable:a,disabled:c,onClick:p,...m},n)=>{let d=u,f=(0,Me.useRef)(null),[T]=(0,Me.useState)((0,Fn.v4)()),x=s??T,{onClose:h,registerItem:b,...g}=_n(),v=y=>{let S=g.previousTabRef.current,_=f.current;if(_){if(S){let w=S.querySelector(`.${d}tab__indicator`),k=_.querySelector(`.${d}tab__indicator`);if(!w||!k)return;let ee={},V=w.getBoundingClientRect(),Ne=V.left,$e=V.width,te=k.getBoundingClientRect(),ke=te.left,He=te.width,We=$e/He;We?ee.transform=`translateX(${(Ne-ke).toFixed(4)}px) scaleX(${We.toFixed(4)})`:ee.opacity=0;let yt=[ee,{transform:"none"}];k.animate(yt,{duration:250,easing:"cubic-bezier(.3,0,0,1)"}),g.previousTabRef.current=f.current}g.previousTabRef.current=f.current,g.onChange(x),p?.(y)}},C=y=>{y.stopPropagation(),h(x)};return(0,Me.useEffect)(()=>{b({value:x,disabled:c}),x===g.value&&(g.previousTabRef.current=f.current)},[x,g.value]),(0,j.jsxs)(e,{ref:(0,Vn.default)(f,n,y=>g.tabRefs.current[x]=y),className:(0,On.default)(`${d}tab`,{[`${d}tab--selected`]:x===g.value,[`${d}tab--disabled`]:c},r),role:o,onClick:v,...m,children:[(0,j.jsx)("div",{className:`${d}overlay`,children:(0,j.jsx)("div",{className:`${d}overlay__surface`})}),(0,j.jsxs)("div",{className:`${d}tab__content`,children:[i&&(0,j.jsx)("div",{className:`${d}tab__start-content`,children:i}),t,l||a&&(0,j.jsxs)("div",{className:`${d}tab__end-content`,children:[l,a&&(0,j.jsx)(K,{variant:"text",color:"secondary",iconOnly:!0,size:"xs",onClick:C,children:(0,j.jsx)(E,{children:(0,j.jsx)(Oe,{})})})]})]}),(0,j.jsx)("div",{className:`${d}tab__indicator`})]})});var zn=L(require("clsx")),me=require("react");var Ot=require("react/jsx-runtime"),Gn=({children:e,className:t,value:r,defaultValue:o,alignment:s="start",onChange:i,onClose:l,...a})=>{let c=(0,me.useRef)(null),p=(0,me.useRef)({}),m=(0,me.useRef)(null),[n,d]=(0,me.useState)(r??o),[f,T]=(0,me.useState)([]),x=v=>{T(C=>(C.findIndex(S=>S.value)===-1&&C.push(v),C))},h=v=>{let C=c.current;if(!C)return;let y=p.current[v];y&&xo(C,y)},b=v=>{d(v),i?.(v),h(v)},g=v=>{l?.(v)};return(0,me.useEffect)(()=>{r!==void 0&&(d(r),h(r))},[r]),(0,me.useEffect)(()=>{if(r===void 0){let v=f.find(C=>!C.disabled);d(v?.value)}},[r,f]),(0,Ot.jsxs)(Lo.Provider,{value:{previousTabRef:m,tabRefs:p,value:n,onChange:b,onClose:g,registerItem:x},children:[(0,Ot.jsx)("div",{ref:c,className:(0,zn.default)(`${u}tabs`,{[`${u}tabs--${s}`]:s},t),...a,children:e}),(0,Ot.jsx)("div",{className:`${u}divider`})]})};var Rt=require("react");var Le=require("react/jsx-runtime");var vi=(0,Rt.forwardRef)(({className:e,value:t,defaultValue:r,disabled:o,inputRef:s,startContent:i,endContent:l,style:a,onChange:c,onClick:p,...m},n)=>{let[d,f]=(0,Rt.useState)(!1),T=(0,Rt.useRef)(null),x=u,h=g=>{c?.(g)},b=g=>{p?.(g),T?.current?.focus()};return(0,Le.jsxs)("div",{ref:n,className:R(`${x}input`,{[`${x}input--focus`]:d,[`${x}input--disabled`]:o},e),style:a,onFocus:()=>{f(!0)},onBlur:()=>{f(!1)},onClick:b,children:[(0,Le.jsx)("div",{className:`${x}outline`}),(0,Le.jsxs)("div",{className:`${x}input__content`,children:[i&&(0,Le.jsx)("div",{className:`${x}input__start-content`,children:i}),(0,Le.jsx)("input",{ref:xe(T,s),className:`${x}input__field`,value:t,defaultValue:r,disabled:o,onChange:h,...m}),l&&(0,Le.jsx)("div",{className:`${x}input__end-content`,children:l})]})]})}),Bn=vi;var de=L(require("clsx"));var F=require("react/jsx-runtime"),xi=e=>{let{children:t,className:r,size:o="md",title:s,subtitle:i,startContent:l,endContent:a,startAction:c,endAction:p,...m}=e,n=u;return(0,F.jsxs)("div",{className:(0,de.default)(`${n}toolbar`,{[`${n}toolbar--${o}`]:o},r),...m,children:[(0,F.jsx)("div",{className:`${n}outline-b`}),(0,F.jsxs)("div",{className:(0,de.default)(`${n}toolbar__container`),children:[l?(0,F.jsx)("div",{className:(0,de.default)(`${n}toolbar__start-content`),children:l}):c&&(0,F.jsx)("div",{className:(0,de.default)(`${n}toolbar__start-action`),children:c}),(0,F.jsx)("div",{className:(0,de.default)(`${n}toolbar__content`),children:s||i?(0,F.jsxs)(F.Fragment,{children:[s&&(0,F.jsx)("div",{className:(0,de.default)(`${n}toolbar__title`),children:s}),i&&(0,F.jsx)("div",{className:(0,de.default)(`${n}toolbar__subtitle`),children:i})]}):t}),a?(0,F.jsx)("div",{className:(0,de.default)(`${n}toolbar__end-content`),children:a}):p&&(0,F.jsx)("div",{className:(0,de.default)(`${n}toolbar__end-action`),children:p})]})]})},Kn=xi;var Xn=L(require("clsx")),Wn=L(require("merge-refs")),fo=require("react");var Ao=require("react/jsx-runtime"),Un=(0,fo.forwardRef)(({as:e="div",children:t,width:r,className:o,role:s="presentation",onClick:i,style:l,...a},c)=>{let p=u,m=(0,fo.useRef)(null),n=d=>{i?.(d)};return(0,Ao.jsx)(e,{ref:(0,Wn.default)(m,c),className:(0,Xn.default)(`${p}swipe-item`,o),role:s,onClick:n,style:{...l,...r!==void 0?{width:`${r}px`}:{}},...a,children:(0,Ao.jsx)("div",{className:`${p}swipe-item__content`,children:t})})});var $o=L(require("clsx")),Jn=require("react");var No=require("react"),Qn=(0,No.createContext)(null);var Ae=require("react");var Yn=(e,t)=>{let r=!1,o=null,s=!1,i=null;if(t){console.log("prev text",t.textContent);let l=Array.from(e.children).indexOf(t),a=0,c=0,p=Array.from(e.children);for(let d=l;d<p.length;d++){let f=p[d];if(e.clientWidth<=c+f.clientWidth)break;a++,c+=f.clientWidth}let m=p[l];m?r=!0:r=!1,o=m;let n=p[l+a];n?s=!0:s=!1,i=n}else{let l=0,a=0,c=Array.from(e.children);for(let m=0;m<c.length;m++){let n=c[m];if(e.clientWidth<=a+n.clientWidth)break;l++,a+=n.clientWidth}r=!1,o=null;let p=c[l];p?s=!0:s=!1,i=p}return{isPrevious:r,previousElement:o,isNext:s,nextElement:i}};function hi(e){let t=Ye({ref:e.ref,target:e.target}),r=(0,Ae.useRef)(null),o=(0,Ae.useRef)(null),[s,i]=(0,Ae.useState)(!1),[l,a]=(0,Ae.useState)(!1),c=(0,Ae.useMemo)(()=>{let n=e.ref?.current||e.target;if(!n)return;let d=Yn(n,r.current);if(d)return i(d.isPrevious),a(d.isNext),o.current=d.nextElement,r.current=d.previousElement,d},[t.width]);return c?{...c,isPrevious:s,isNext:l,previousRange:()=>{let n=e.ref?.current||e.target,d=r.current;if(!n||!d)return;let f="smooth",T=Array.from(n.children);if(d){let x=Array.from(n.children).indexOf(d),h=Array.from(n.children).slice(0,x+1),b=0,g=0;for(let w of h)b++,g+=w.clientWidth;let v=0,C=0;for(let w of h){if(n.clientWidth<=C+w.clientWidth)break;v++,C+=w.clientWidth}let y=g+b*16-(C+v*16);n.scrollTo({behavior:f,left:y});let S=h[h.length-1-v];i(!!S),r.current=S;let _=T[h.length-1+1];a(!!_),o.current=_}else{r.current=null;let x=0;for(let h of T){if(n.clientWidth<=x+h.clientWidth){o.current=h;break}x+=h.clientWidth}n.scrollTo({behavior:f,left:0})}},nextRange:()=>{let n=e.ref?.current||e.target,d=o.current;if(!n||!d)return;let f="smooth",T=Array.from(n.children);if(d){let x=Array.from(n.children).indexOf(d),h=Array.from(n.children).slice(0,x),b=0,g=0;for(let w=0;w<h.length;w++){let k=h[w];b++,g+=k.clientWidth}let v=0,C=0;for(let w=0;w<h.length;w++){let k=h[w];if(n.clientWidth<=C+k.clientWidth)break;v++,C+=k.clientWidth}let y=g+b*16;n.scrollTo({behavior:f,left:y});let S=h[h.length-1];i(!!S),r.current=S;let _=T[h.length+v];a(!!_),o.current=_}}}:void 0}var qn=hi;var W=require("react/jsx-runtime"),Zn=({children:e,className:t,gap:r=0,autoHide:o=!1,...s})=>{let i=u,l=(0,Jn.useRef)(null),a=qn({ref:l});return(0,W.jsx)(Qn.Provider,{value:{gap:r},children:(0,W.jsxs)("div",{className:(0,$o.default)(`${i}swipe-wrapper`,{[`${i}swipe-wrapper--auto-hide`]:o}),children:[(0,W.jsx)("div",{className:`${i}swipe-wrapper__left`,children:a?.isPrevious&&(0,W.jsx)(K,{variant:"filled",color:"primary",iconOnly:!0,onClick:a.previousRange,children:(0,W.jsx)(E,{children:(0,W.jsx)(So,{})})})}),(0,W.jsx)("div",{ref:l,className:(0,$o.default)(`${i}swipe`,t),style:{["--us-swipe-gap"]:`${r}px`},...s,children:e}),(0,W.jsx)("div",{className:`${i}swipe-wrapper__right`,children:a?.isNext&&(0,W.jsx)(K,{variant:"filled",color:"primary",iconOnly:!0,onClick:a.nextRange,children:(0,W.jsx)(E,{children:(0,W.jsx)(Po,{})})})})]})})};0&&(module.exports={Accordion,AccordionContent,AccordionHeader,AccordionItem,AccordionPanel,AccordionTrigger,Autocomplete,Backdrop,Badge,Button,Card,CardBody,CardHeader,Chip,Collapse,CollapseContent,CollapseContext,CollapseTrigger,Drawer,Field,Icon,List,ListGroup,ListItem,ListSubheader,Menu,MenuContext,MenuGroup,MenuItem,MenuSubmenu,MenuValueContext,Popover,PopoverContent,PopoverTrigger,Portal,QueryStatus,Result,ScrollArea,Select,Swipe,SwipeItem,Switch,Tab,Tabs,TextInput,Toolbar,Transition,assignRef,clsx,getOpenValuesByPathname,hasResizeObserver,mergeRefs,scrollToItem,useAccordionItem,useCollapse,useDebounce,useDisclosure,useEffectEvent,useElementSize,useInfiniteQuery,useLocalStorage,useMediaQuery,useMenu,useMenuItemValue,useOnClickOutside,usePopover,usePrevious,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.0.37",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -21,8 +21,6 @@
|
|
|
21
21
|
"react-dom": "^16.0.0 || ^17.0.2 || ^18.2.0"
|
|
22
22
|
},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@progress/kendo-data-query": "^1.6.0",
|
|
25
|
-
"@progress/kendo-react-dropdowns": "^5.16.1",
|
|
26
24
|
"@tanstack/react-virtual": "3.0.0-beta.68",
|
|
27
25
|
"clsx": "^2.0.0",
|
|
28
26
|
"merge-refs": "^1.2.1",
|
|
@@ -32,16 +30,6 @@
|
|
|
32
30
|
"react-transition-group": "^4.4.5",
|
|
33
31
|
"uuid": "^9.0.1"
|
|
34
32
|
},
|
|
35
|
-
"devDependencies": {
|
|
36
|
-
"@types/node": "^18.16.1",
|
|
37
|
-
"@types/react": "^18.2.37",
|
|
38
|
-
"@types/react-dom": "^18.2.15",
|
|
39
|
-
"clean-package": "2.2.0",
|
|
40
|
-
"react": "^18.2.0",
|
|
41
|
-
"react-dom": "^18.2.0",
|
|
42
|
-
"tsup": "6.7.0",
|
|
43
|
-
"typescript": "^4.9.5"
|
|
44
|
-
},
|
|
45
33
|
"clean-package": "../../../clean-package.config.json",
|
|
46
34
|
"types": "dist/index.d.ts"
|
|
47
35
|
}
|