@turtleclub/ui 0.5.0 → 0.5.1-beta.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,98 +2,97 @@ $ rm -rf dist && bun run build:code && bun run build:types && bun run build:css
2
2
  $ vite build
3
3
  vite v7.1.12 building for production...
4
4
  transforming...
5
- src/components/molecules/token-selector.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
6
- src/components/molecules/token-selector.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/molecules/token-selector.tsx" was ignored.
7
5
  src/components/ui/toggle.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
8
6
  src/components/ui/toggle.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/toggle.tsx" was ignored.
9
- src/components/ui/navigation-bar.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
10
- src/components/ui/navigation-bar.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/navigation-bar.tsx" was ignored.
11
- src/components/ui/dialog.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
12
- src/components/ui/dialog.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/dialog.tsx" was ignored.
7
+ src/components/ui/label.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
8
+ src/components/ui/label.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/label.tsx" was ignored.
9
+ src/components/ui/scroll-area.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
10
+ src/components/ui/scroll-area.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/scroll-area.tsx" was ignored.
11
+ src/components/ui/popover.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
12
+ src/components/ui/popover.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/popover.tsx" was ignored.
13
13
  src/components/ui/select.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
14
14
  src/components/ui/select.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/select.tsx" was ignored.
15
+ src/components/ui/dialog.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
16
+ src/components/ui/dialog.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/dialog.tsx" was ignored.
17
+ src/components/ui/table-shadcn.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
18
+ src/components/ui/table-shadcn.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/table-shadcn.tsx" was ignored.
15
19
  src/components/ui/segment-control.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
16
20
  src/components/ui/segment-control.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/segment-control.tsx" was ignored.
17
21
  src/components/ui/dropdown.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
18
22
  src/components/ui/dropdown.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/dropdown.tsx" was ignored.
23
+ src/components/ui/checkbox.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
24
+ src/components/ui/checkbox.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/checkbox.tsx" was ignored.
25
+ src/components/ui/field.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
26
+ src/components/ui/field.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/field.tsx" was ignored.
19
27
  src/components/ui/input-group.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
20
28
  src/components/ui/input-group.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/input-group.tsx" was ignored.
29
+ src/components/ui/table.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
30
+ src/components/ui/table.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/table.tsx" was ignored.
21
31
  src/components/ui/slider.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
22
32
  src/components/ui/slider.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/slider.tsx" was ignored.
33
+ src/components/ui/navigation-bar.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
34
+ src/components/ui/navigation-bar.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/navigation-bar.tsx" was ignored.
35
+ src/components/molecules/token-selector.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
36
+ src/components/molecules/token-selector.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/molecules/token-selector.tsx" was ignored.
23
37
  src/components/ui/alert-dialog.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
24
38
  src/components/ui/alert-dialog.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/alert-dialog.tsx" was ignored.
25
- src/components/ui/popover.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
26
- src/components/ui/popover.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/popover.tsx" was ignored.
27
- src/components/ui/table.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
28
- src/components/ui/table.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/table.tsx" was ignored.
29
- src/components/ui/scroll-area.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
30
- src/components/ui/scroll-area.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/scroll-area.tsx" was ignored.
31
- src/components/ui/field.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
32
- src/components/ui/field.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/field.tsx" was ignored.
33
- src/components/ui/table-shadcn.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
34
- src/components/ui/table-shadcn.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/table-shadcn.tsx" was ignored.
35
- src/components/ui/label.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
36
- src/components/ui/label.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/label.tsx" was ignored.
37
39
  src/components/ui/tooltip.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
38
40
  src/components/ui/tooltip.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/tooltip.tsx" was ignored.
39
41
  src/components/ui/command.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
40
42
  src/components/ui/command.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/command.tsx" was ignored.
41
- src/components/ui/sidebar.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
42
- src/components/ui/sidebar.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/sidebar.tsx" was ignored.
43
43
  src/components/ui/collapsible.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
44
44
  src/components/ui/collapsible.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/collapsible.tsx" was ignored.
45
- src/components/ui/checkbox.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
46
- src/components/ui/checkbox.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/checkbox.tsx" was ignored.
47
- ../../node_modules/.bun/@radix-ui+react-tooltip@1.2.8+dfc90389513bb65c/node_modules/@radix-ui/react-tooltip/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-tooltip@1.2.8+dfc90389513bb65c/node_modules/@radix-ui/react-tooltip/dist/index.mjs" was ignored.
45
+ src/components/ui/sidebar.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
46
+ src/components/ui/sidebar.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/sidebar.tsx" was ignored.
48
47
  ../../node_modules/.bun/next-themes@0.4.6+dfc90389513bb65c/node_modules/next-themes/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/next-themes@0.4.6+dfc90389513bb65c/node_modules/next-themes/dist/index.mjs" was ignored.
49
- ../../node_modules/.bun/sonner@2.0.7+dfc90389513bb65c/node_modules/sonner/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/sonner@2.0.7+dfc90389513bb65c/node_modules/sonner/dist/index.mjs" was ignored.
50
48
  ../../node_modules/.bun/@radix-ui+react-switch@1.2.6+dfc90389513bb65c/node_modules/@radix-ui/react-switch/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-switch@1.2.6+dfc90389513bb65c/node_modules/@radix-ui/react-switch/dist/index.mjs" was ignored.
51
- src/components/features/data-table/data-table.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
52
- src/components/features/data-table/data-table.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/features/data-table/data-table.tsx" was ignored.
53
- src/components/molecules/widget/base-selector.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
54
- src/components/molecules/widget/base-selector.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/molecules/widget/base-selector.tsx" was ignored.
55
- src/hooks/useIsMobile.ts (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
56
- src/hooks/useIsMobile.ts (1:0): Module level directives cause errors when bundled, "use client" in "src/hooks/useIsMobile.ts" was ignored.
57
49
  ../../node_modules/.bun/@radix-ui+react-toggle@1.1.10+dfc90389513bb65c/node_modules/@radix-ui/react-toggle/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-toggle@1.1.10+dfc90389513bb65c/node_modules/@radix-ui/react-toggle/dist/index.mjs" was ignored.
58
50
  ../../node_modules/.bun/@radix-ui+react-toggle-group@1.1.11+dfc90389513bb65c/node_modules/@radix-ui/react-toggle-group/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-toggle-group@1.1.11+dfc90389513bb65c/node_modules/@radix-ui/react-toggle-group/dist/index.mjs" was ignored.
59
- ../../node_modules/.bun/@radix-ui+react-hover-card@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-hover-card/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-hover-card@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-hover-card/dist/index.mjs" was ignored.
51
+ ../../node_modules/.bun/sonner@2.0.7+dfc90389513bb65c/node_modules/sonner/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/sonner@2.0.7+dfc90389513bb65c/node_modules/sonner/dist/index.mjs" was ignored.
52
+ ../../node_modules/.bun/@radix-ui+react-label@2.1.7+dfc90389513bb65c/node_modules/@radix-ui/react-label/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-label@2.1.7+dfc90389513bb65c/node_modules/@radix-ui/react-label/dist/index.mjs" was ignored.
53
+ ../../node_modules/.bun/@radix-ui+react-scroll-area@1.2.10+dfc90389513bb65c/node_modules/@radix-ui/react-scroll-area/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-scroll-area@1.2.10+dfc90389513bb65c/node_modules/@radix-ui/react-scroll-area/dist/index.mjs" was ignored.
54
+ ../../node_modules/.bun/@radix-ui+react-popover@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-popover/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-popover@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-popover/dist/index.mjs" was ignored.
60
55
  ../../node_modules/.bun/@radix-ui+react-dialog@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-dialog/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-dialog@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-dialog/dist/index.mjs" was ignored.
56
+ ../../node_modules/.bun/@radix-ui+react-avatar@1.1.10+dfc90389513bb65c/node_modules/@radix-ui/react-avatar/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-avatar@1.1.10+dfc90389513bb65c/node_modules/@radix-ui/react-avatar/dist/index.mjs" was ignored.
57
+ ../../node_modules/.bun/@radix-ui+react-checkbox@1.3.3+dfc90389513bb65c/node_modules/@radix-ui/react-checkbox/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-checkbox@1.3.3+dfc90389513bb65c/node_modules/@radix-ui/react-checkbox/dist/index.mjs" was ignored.
58
+ ../../node_modules/.bun/@radix-ui+react-hover-card@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-hover-card/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-hover-card@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-hover-card/dist/index.mjs" was ignored.
59
+ ../../node_modules/.bun/@radix-ui+react-alert-dialog@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-alert-dialog@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs" was ignored.
61
60
  ../../node_modules/.bun/@radix-ui+react-dropdown-menu@2.1.16+dfc90389513bb65c/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-dropdown-menu@2.1.16+dfc90389513bb65c/node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs" was ignored.
62
- ../../node_modules/.bun/@radix-ui+react-select@2.2.6+dfc90389513bb65c/node_modules/@radix-ui/react-select/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-select@2.2.6+dfc90389513bb65c/node_modules/@radix-ui/react-select/dist/index.mjs" was ignored.
63
- ../../node_modules/.bun/@radix-ui+react-navigation-menu@1.2.14+dfc90389513bb65c/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-navigation-menu@1.2.14+dfc90389513bb65c/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs" was ignored.
64
61
  ../../node_modules/.bun/@radix-ui+react-slider@1.3.6+dfc90389513bb65c/node_modules/@radix-ui/react-slider/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-slider@1.3.6+dfc90389513bb65c/node_modules/@radix-ui/react-slider/dist/index.mjs" was ignored.
65
- ../../node_modules/.bun/@radix-ui+react-popover@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-popover/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-popover@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-popover/dist/index.mjs" was ignored.
66
- ../../node_modules/.bun/@radix-ui+react-alert-dialog@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-alert-dialog@1.1.15+dfc90389513bb65c/node_modules/@radix-ui/react-alert-dialog/dist/index.mjs" was ignored.
67
- ../../node_modules/.bun/@radix-ui+react-avatar@1.1.10+dfc90389513bb65c/node_modules/@radix-ui/react-avatar/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-avatar@1.1.10+dfc90389513bb65c/node_modules/@radix-ui/react-avatar/dist/index.mjs" was ignored.
68
- ../../node_modules/.bun/@radix-ui+react-scroll-area@1.2.10+dfc90389513bb65c/node_modules/@radix-ui/react-scroll-area/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-scroll-area@1.2.10+dfc90389513bb65c/node_modules/@radix-ui/react-scroll-area/dist/index.mjs" was ignored.
69
- ../../node_modules/.bun/@radix-ui+react-label@2.1.7+dfc90389513bb65c/node_modules/@radix-ui/react-label/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-label@2.1.7+dfc90389513bb65c/node_modules/@radix-ui/react-label/dist/index.mjs" was ignored.
62
+ ../../node_modules/.bun/@radix-ui+react-select@2.2.6+dfc90389513bb65c/node_modules/@radix-ui/react-select/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-select@2.2.6+dfc90389513bb65c/node_modules/@radix-ui/react-select/dist/index.mjs" was ignored.
63
+ ../../node_modules/.bun/@radix-ui+react-tooltip@1.2.8+dfc90389513bb65c/node_modules/@radix-ui/react-tooltip/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-tooltip@1.2.8+dfc90389513bb65c/node_modules/@radix-ui/react-tooltip/dist/index.mjs" was ignored.
70
64
  ../../node_modules/.bun/cmdk@1.1.1+dfc90389513bb65c/node_modules/cmdk/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/cmdk@1.1.1+dfc90389513bb65c/node_modules/cmdk/dist/index.mjs" was ignored.
71
65
  ../../node_modules/.bun/@radix-ui+react-collapsible@1.1.12+dfc90389513bb65c/node_modules/@radix-ui/react-collapsible/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-collapsible@1.1.12+dfc90389513bb65c/node_modules/@radix-ui/react-collapsible/dist/index.mjs" was ignored.
72
- ../../node_modules/.bun/@radix-ui+react-checkbox@1.3.3+dfc90389513bb65c/node_modules/@radix-ui/react-checkbox/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-checkbox@1.3.3+dfc90389513bb65c/node_modules/@radix-ui/react-checkbox/dist/index.mjs" was ignored.
73
- src/components/ui/sheet.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
74
- src/components/ui/sheet.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/sheet.tsx" was ignored.
66
+ ../../node_modules/.bun/@radix-ui+react-navigation-menu@1.2.14+dfc90389513bb65c/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-navigation-menu@1.2.14+dfc90389513bb65c/node_modules/@radix-ui/react-navigation-menu/dist/index.mjs" was ignored.
75
67
  src/components/ui/animated-background/animated-background.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
76
68
  src/components/ui/animated-background/animated-background.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/animated-background/animated-background.tsx" was ignored.
77
- ../../node_modules/.bun/@radix-ui+react-dismissable-layer@1.1.11+dfc90389513bb65c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-dismissable-layer@1.1.11+dfc90389513bb65c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs" was ignored.
78
- ../../node_modules/.bun/@radix-ui+react-portal@1.1.9+dfc90389513bb65c/node_modules/@radix-ui/react-portal/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-portal@1.1.9+dfc90389513bb65c/node_modules/@radix-ui/react-portal/dist/index.mjs" was ignored.
79
- ../../node_modules/.bun/@radix-ui+react-popper@1.2.8+dfc90389513bb65c/node_modules/@radix-ui/react-popper/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-popper@1.2.8+dfc90389513bb65c/node_modules/@radix-ui/react-popper/dist/index.mjs" was ignored.
80
- ../../node_modules/.bun/@radix-ui+react-presence@1.1.5+dfc90389513bb65c/node_modules/@radix-ui/react-presence/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-presence@1.1.5+dfc90389513bb65c/node_modules/@radix-ui/react-presence/dist/index.mjs" was ignored.
69
+ src/components/molecules/widget/base-selector.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
70
+ src/components/molecules/widget/base-selector.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/molecules/widget/base-selector.tsx" was ignored.
71
+ src/components/features/data-table/data-table.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
72
+ src/components/features/data-table/data-table.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/features/data-table/data-table.tsx" was ignored.
73
+ src/components/ui/sheet.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
74
+ src/components/ui/sheet.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/sheet.tsx" was ignored.
75
+ src/hooks/useIsMobile.ts (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
76
+ src/hooks/useIsMobile.ts (1:0): Module level directives cause errors when bundled, "use client" in "src/hooks/useIsMobile.ts" was ignored.
81
77
  ../../node_modules/.bun/@radix-ui+react-roving-focus@1.1.11+dfc90389513bb65c/node_modules/@radix-ui/react-roving-focus/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-roving-focus@1.1.11+dfc90389513bb65c/node_modules/@radix-ui/react-roving-focus/dist/index.mjs" was ignored.
78
+ ../../node_modules/.bun/@radix-ui+react-presence@1.1.5+dfc90389513bb65c/node_modules/@radix-ui/react-presence/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-presence@1.1.5+dfc90389513bb65c/node_modules/@radix-ui/react-presence/dist/index.mjs" was ignored.
79
+ ../../node_modules/.bun/@radix-ui+react-dismissable-layer@1.1.11+dfc90389513bb65c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-dismissable-layer@1.1.11+dfc90389513bb65c/node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs" was ignored.
82
80
  ../../node_modules/.bun/@radix-ui+react-focus-guards@1.1.3+4bcfe187168658ad/node_modules/@radix-ui/react-focus-guards/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-focus-guards@1.1.3+4bcfe187168658ad/node_modules/@radix-ui/react-focus-guards/dist/index.mjs" was ignored.
83
81
  ../../node_modules/.bun/@radix-ui+react-focus-scope@1.1.7+dfc90389513bb65c/node_modules/@radix-ui/react-focus-scope/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-focus-scope@1.1.7+dfc90389513bb65c/node_modules/@radix-ui/react-focus-scope/dist/index.mjs" was ignored.
84
- ../../node_modules/.bun/@radix-ui+react-menu@2.1.16+dfc90389513bb65c/node_modules/@radix-ui/react-menu/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-menu@2.1.16+dfc90389513bb65c/node_modules/@radix-ui/react-menu/dist/index.mjs" was ignored.
82
+ ../../node_modules/.bun/@radix-ui+react-popper@1.2.8+dfc90389513bb65c/node_modules/@radix-ui/react-popper/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-popper@1.2.8+dfc90389513bb65c/node_modules/@radix-ui/react-popper/dist/index.mjs" was ignored.
83
+ ../../node_modules/.bun/@radix-ui+react-portal@1.1.9+dfc90389513bb65c/node_modules/@radix-ui/react-portal/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-portal@1.1.9+dfc90389513bb65c/node_modules/@radix-ui/react-portal/dist/index.mjs" was ignored.
85
84
  ../../node_modules/.bun/@radix-ui+react-collection@1.1.7+dfc90389513bb65c/node_modules/@radix-ui/react-collection/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-collection@1.1.7+dfc90389513bb65c/node_modules/@radix-ui/react-collection/dist/index.mjs" was ignored.
85
+ ../../node_modules/.bun/@radix-ui+react-menu@2.1.16+dfc90389513bb65c/node_modules/@radix-ui/react-menu/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@radix-ui+react-menu@2.1.16+dfc90389513bb65c/node_modules/@radix-ui/react-menu/dist/index.mjs" was ignored.
86
86
  src/components/features/data-table/sortable-header.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
87
87
  src/components/features/data-table/sortable-header.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/features/data-table/sortable-header.tsx" was ignored.
88
- src/components/molecules/widget/asset-list/asset-list.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
89
- src/components/molecules/widget/asset-list/asset-list.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/molecules/widget/asset-list/asset-list.tsx" was ignored.
90
88
  src/components/molecules/opportunity/opportunity-list/opportunity-list.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
91
89
  src/components/molecules/opportunity/opportunity-list/opportunity-list.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/molecules/opportunity/opportunity-list/opportunity-list.tsx" was ignored.
92
- ../../node_modules/.bun/@number-flow+react@0.5.10+dfc90389513bb65c/node_modules/@number-flow/react/dist/NumberFlow-client-48rw3j0J.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@number-flow+react@0.5.10+dfc90389513bb65c/node_modules/@number-flow/react/dist/NumberFlow-client-48rw3j0J.mjs" was ignored.
93
- ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs" was ignored.
90
+ src/components/molecules/widget/asset-list/asset-list.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.
91
+ src/components/molecules/widget/asset-list/asset-list.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/molecules/widget/asset-list/asset-list.tsx" was ignored.
94
92
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/AnimatePresence/PopChild.mjs" was ignored.
95
93
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs" was ignored.
96
94
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs" was ignored.
95
+ ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs" was ignored.
97
96
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/LazyMotion/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/LazyMotion/index.mjs" was ignored.
98
97
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/MotionConfig/index.mjs" was ignored.
99
98
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/motion/utils/use-visual-state.mjs" was ignored.
@@ -134,11 +133,12 @@ transforming...
134
133
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/AnimateSharedLayout.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/AnimateSharedLayout.mjs" was ignored.
135
134
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs" was ignored.
136
135
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/value/use-inverted-scale.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/value/use-inverted-scale.mjs" was ignored.
136
+ ../../node_modules/.bun/@number-flow+react@0.5.10+dfc90389513bb65c/node_modules/@number-flow/react/dist/NumberFlow-client-48rw3j0J.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/@number-flow+react@0.5.10+dfc90389513bb65c/node_modules/@number-flow/react/dist/NumberFlow-client-48rw3j0J.mjs" was ignored.
137
137
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/utils/use-constant.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/utils/use-constant.mjs" was ignored.
138
138
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/context/LazyContext.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/context/LazyContext.mjs" was ignored.
139
139
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/utils/use-is-mounted.mjs" was ignored.
140
- ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/value/use-combine-values.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/value/use-combine-values.mjs" was ignored.
141
140
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/value/use-computed.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/value/use-computed.mjs" was ignored.
141
+ ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/value/use-combine-values.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/value/use-combine-values.mjs" was ignored.
142
142
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/Reorder/Group.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/Reorder/Group.mjs" was ignored.
143
143
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/Reorder/Item.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/components/Reorder/Item.mjs" was ignored.
144
144
  ../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/motion/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/.bun/framer-motion@12.23.24/node_modules/framer-motion/dist/es/motion/index.mjs" was ignored.
@@ -155,9 +155,9 @@ transforming...
155
155
  ✓ 2227 modules transformed.
156
156
  rendering chunks...
157
157
  computing gzip size...
158
- dist/index.js 924.23 kB │ gzip: 225.88 kB │ map: 2,639.99 kB
159
- dist/index.cjs 612.76 kB │ gzip: 185.34 kB │ map: 2,535.45 kB
160
- ✓ built in 18.75s
158
+ dist/index.js 923.76 kB │ gzip: 225.83 kB │ map: 2,639.23 kB
159
+ dist/index.cjs 612.77 kB │ gzip: 185.34 kB │ map: 2,534.87 kB
160
+ ✓ built in 18.72s
161
161
  $ tsc -p .
162
162
  $ BUILD_CSS=true vite build
163
163
  vite v7.1.12 building for production...
@@ -166,4 +166,4 @@ transforming...
166
166
  rendering chunks...
167
167
  computing gzip size...
168
168
  dist/styles.css 117.56 kB │ gzip: 18.47 kB
169
- ✓ built in 663ms
169
+ ✓ built in 826ms
package/CHANGELOG.md CHANGED
@@ -3,6 +3,12 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [0.5.1-beta.0](https://github.com/turtledev/packages/compare/@turtleclub/ui@0.5.0...@turtleclub/ui@0.5.1-beta.0) (2025-10-27)
7
+
8
+ ### Bug Fixes
9
+
10
+ - data table empty state ([#153](https://github.com/turtledev/packages/issues/153)) ([e8b02cb](https://github.com/turtledev/packages/commit/e8b02cb2d4966e5d3097302c364092bc70969ebc))
11
+
6
12
  # [0.5.0](https://github.com/turtledev/packages/compare/@turtleclub/ui@0.5.0-beta.1...@turtleclub/ui@0.5.0) (2025-10-27)
7
13
 
8
14
  **Note:** Version bump only for package @turtleclub/ui
package/dist/index.cjs CHANGED
@@ -229,5 +229,5 @@ For more information, see https://radix-ui.com/primitives/docs/components/alert-
229
229
  * @license MIT license.
230
230
  * @copyright (c) 2099 Kent C. Dodds
231
231
  * @author Kent C. Dodds <me@kentcdodds.com> (https://kentcdodds.com)
232
- */const He={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function vI(e,t,n){var r;if(n=n||{},n.threshold=(r=n.threshold)!=null?r:He.MATCHES,!n.accessors){const i=Tf(e,t,n);return{rankedValue:e,rank:i,accessorIndex:-1,accessorThreshold:n.threshold,passed:i>=n.threshold}}const o=wI(e,n.accessors),s={rankedValue:e,rank:He.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let i=0;i<o.length;i++){const l=o[i];let c=Tf(l.itemValue,t,n);const{minRanking:u,maxRanking:f,threshold:d=n.threshold}=l.attributes;c<u&&c>=He.MATCHES?c=u:c>f&&(c=f),c=Math.min(c,f),c>=d&&c>s.rank&&(s.rank=c,s.passed=!0,s.accessorIndex=i,s.accessorThreshold=d,s.rankedValue=l.itemValue)}return s}function Tf(e,t,n){return e=Af(e,n),t=Af(t,n),t.length>e.length?He.NO_MATCH:e===t?He.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?He.EQUAL:e.startsWith(t)?He.STARTS_WITH:e.includes(` ${t}`)?He.WORD_STARTS_WITH:e.includes(t)?He.CONTAINS:t.length===1?He.NO_MATCH:xI(e).includes(t)?He.ACRONYM:yI(e,t))}function xI(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(s=>{t+=s.substr(0,1)})}),t}function yI(e,t){let n=0,r=0;function o(c,u,f){for(let d=f,m=u.length;d<m;d++)if(u[d]===c)return n+=1,d+1;return-1}function s(c){const u=1/c,f=n/t.length;return He.MATCHES+f*u}const i=o(t[0],e,0);if(i<0)return He.NO_MATCH;r=i;for(let c=1,u=t.length;c<u;c++){const f=t[c];if(r=o(f,e,r),!(r>-1))return He.NO_MATCH}const l=r-i;return s(l)}function Af(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=gI(e)),e}function bI(e,t){let n=t;typeof t=="object"&&(n=t.accessor);const r=n(e);return r==null?[]:Array.isArray(r)?r:[String(r)]}function wI(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],i=CI(s),l=bI(e,s);for(let c=0,u=l.length;c<u;c++)n.push({itemValue:l[c],attributes:i})}return n}const Mf={maxRanking:1/0,minRanking:-1/0};function CI(e){return typeof e=="function"?Mf:{...Mf,...e}}const SI=(e,t,n,r)=>{const o=vI(e.getValue(t),n);return r({itemRank:o}),o.passed};function RI({title:e,value:t,className:n}){return a.jsxs("div",{className:S("flex flex-col items-start gap-1",n),children:[a.jsx("div",{className:"text-muted-foreground text-xs",children:e}),a.jsx("div",{className:"text-sm",children:t})]})}function jI({headers:e}){return[...Array(12).keys()].map(t=>a.jsx(xs,{children:e.map(n=>a.jsx(Rc,{className:"h-12 animate-pulse",children:a.jsx("div",{})},n))},t))}function EI({className:e}){return a.jsx("div",{className:e,children:[...Array(12).keys()].map(t=>a.jsx(Xe,{className:"h-40 animate-pulse",variant:"border"},t))})}function _I({columns:e,data:t,isLoading:n,slot:r,enableExpand:o,enableSearch:s,renderSubComponent:i,initialSorting:l=[],initialColumnVisibility:c,grid:u}){const[f,d]=_.useState(""),[m,h]=_.useState(l),[v,g]=_.useState({}),[y,x]=_.useState({}),[b,w]=_.useState(c??{}),C=fI({data:t,columns:e,filterFns:{fuzzy:SI},state:{expanded:y,rowSelection:v,sorting:m,globalFilter:f,columnVisibility:b},onColumnVisibilityChange:w,onRowSelectionChange:g,onSortingChange:h,onGlobalFilterChange:d,onExpandedChange:x,globalFilterFn:"fuzzy",getRowCanExpand:o?()=>!0:void 0,getCoreRowModel:tI(),getFilteredRowModel:aI(),getSortedRowModel:lI(),getExpandedRowModel:nI()}),R=_.useMemo(()=>C.getHeaderGroups().map(T=>T.headers).flat(),[C]);return a.jsxs("div",{className:"space-y-3",children:[a.jsxs("div",{className:"flex items-center gap-1",children:[r,a.jsx("span",{className:"grow"}),s&&a.jsx(su,{id:"search-bar",value:f??"",onChange:T=>d(String(T)),placeholder:"Search columns ..."})]}),C.getRowModel().rows?.length?u?.displayAsGrid?n?a.jsx(EI,{className:S("grid gap-1","grid-cols-1 md:grid-cols-2 xl:grid-cols-3",u.className)}):a.jsx("div",{className:S("grid gap-1","grid-cols-1 md:grid-cols-2 xl:grid-cols-3",u.className),children:C.getRowModel().rows.map(T=>a.jsx(_.Fragment,{children:a.jsxs(Xe,{"data-state":T.getIsSelected()&&"selected",variant:"border",children:[a.jsxs(jp,{className:"flex items-center gap-2",children:[a.jsx(Ep,{className:"line-clamp-1 grow text-base",children:T.getVisibleCells().filter(E=>E.column.id===u.headerSlot)?.map(E=>a.jsx(_.Fragment,{children:Bn(E.column.columnDef.cell,E.getContext())},E.id))}),T.getVisibleCells().filter(E=>E.column.id===u?.rightSlot)?.map(E=>a.jsx(_.Fragment,{children:Bn(E.column.columnDef.cell,E.getContext())},E.id))]}),a.jsx(Rl,{className:"flew-wrap flex gap-3",children:T.getVisibleCells().filter(E=>E.column.id!==u.headerSlot&&E.column.id!==u.rightSlot&&!u.excludeColumns?.includes(E.column.id)).map(E=>a.jsx(RI,{title:Bn(E.column.columnDef.header,R.find(j=>j.id===E.column.id)?.getContext()),value:Bn(E.column.columnDef.cell,E.getContext())},E.id))}),T.getIsExpanded()&&i({row:T})]})},T.id))}):a.jsxs(Ev,{children:[a.jsx(_v,{children:a.jsx(xs,{children:R.map(T=>a.jsx(Av,{children:a.jsx(pI,{header:T})},T.id))})}),a.jsx(Tv,{children:n?a.jsx(jI,{headers:R.map(T=>T.id)}):C.getRowModel().rows.map(T=>a.jsxs(_.Fragment,{children:[a.jsx(xs,{"data-state":T.getIsSelected()&&"selected",children:T.getVisibleCells().map(E=>a.jsx(Rc,{children:Bn(E.column.columnDef.cell,E.getContext())},E.id))}),T.getIsExpanded()&&a.jsx("tr",{children:a.jsx("td",{colSpan:T.getVisibleCells().length,children:i({row:T})})})]},T.id))})]}):a.jsx("div",{className:"bg-neutral-alpha-2 m-12 h-48 rounded-lg shadow",children:"No results available."})]})}function TI({row:e}){return e.getCanExpand()?a.jsx("button",{onClick:e.getToggleExpandedHandler(),className:"flex cursor-pointer items-center justify-center",children:e.getIsExpanded()?a.jsx(pt,{className:"text-foreground size-3.5"}):a.jsx(jl,{className:"text-muted-foreground size-3.5"})}):void 0}function AI({children:e,sidebarSlot:t,sidebarFooter:n,topSlot:r,items:o,linkComponent:s}){return a.jsxs(py,{children:[a.jsx(Yy,{items:o,sidebarFooter:n,sidebarSlot:t,linkComponent:s}),a.jsx(qy,{topSlot:r,children:e})]})}function Yy({items:e,sidebarSlot:t,sidebarFooter:n,linkComponent:r="a"}){return a.jsxs(my,{children:[a.jsx(gy,{children:a.jsxs("div",{className:"border-gradient-white border-opacity-20 relative h-[72px] w-full rounded-full shadow",children:[a.jsx(zg,{className:"absolute -top-2 -left-2 aspect-square h-[86px]"}),a.jsxs("div",{className:"text-primary mt-2 -space-y-1.5 pl-20",children:[a.jsx("div",{className:"text-3xl leading-tight font-bold",children:"Turtle"}),a.jsx("div",{className:"pl-1 text-sm font-medium",children:"Partner Portal"})]})]})}),a.jsxs(xy,{children:[a.jsx(il,{children:a.jsx(yy,{children:a.jsx(by,{children:e.map(o=>o?.children?.length?a.jsx(Ay,{className:"group/collapsible",children:a.jsxs(al,{children:[a.jsx(My,{asChild:!0,children:a.jsxs(ll,{children:[o.icon&&a.jsx(o.icon,{}),a.jsx("span",{className:"grow",children:o.title}),a.jsx(jl,{className:"transition-all group-data-[state=open]/collapsible:rotate-90"})]})}),a.jsx(Py,{children:a.jsx(Cy,{children:o.children.map(s=>a.jsx(Sy,{children:a.jsx(Ry,{asChild:!0,isActive:s.isActive,children:a.jsxs(r,{href:s.url,children:[s.icon&&a.jsx(s.icon,{}),a.jsx("span",{className:"grow",children:s.title}),a.jsx("div",{className:"relative size-[18px] shrink-0 group-data-[active=false]/menu-sub-button:hidden",children:a.jsx(Jn,{className:"text-primary absolute top-[-15px] left-[-15px] size-12"})})]})})},s.title))})})]})}):a.jsx(al,{children:a.jsx(ll,{asChild:!0,isActive:o.isActive,children:a.jsxs(r,{href:o.url,children:[o.icon&&a.jsx(o.icon,{}),a.jsx("span",{className:"grow",children:o.title}),a.jsx("div",{className:"relative size-[18px] shrink-0 group-data-[active=false]/menu-button:hidden",children:a.jsx(Jn,{className:"text-primary absolute top-[-15px] left-[-15px] size-12"})})]})})},o.title))})})}),a.jsx("span",{className:"grow"}),a.jsx(il,{children:t})]}),a.jsx(vy,{children:n})]})}function qy({children:e,topSlot:t}){const{state:n,isMobile:r}=wr();return a.jsxs("div",{className:S("fixed inset-0 flex h-svh flex-col items-stretch gap-1 py-2 pr-2",n==="collapsed"||r?"pl-2":"left-64"),children:[a.jsxs("div",{className:"flex gap-1",children:[a.jsx(hy,{className:"bg-background border-border !rounded-sm"}),t]}),a.jsx("main",{className:S("bg-background border-border max-h-[96svh] grow overflow-y-auto rounded-lg border p-6"),children:e})]})}function MI({icon:e,title:t,description:n,action:r}){return a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{children:e}),a.jsxs("div",{className:"grow",children:[a.jsx(j0,{children:t}),a.jsx(E0,{children:n})]}),r]})}function PI({trigger:e,content:t,className:n,side:r,asChild:o}){const{isMobile:s}=dy();return a.jsx("div",{className:n,children:s?a.jsxs(ii,{children:[a.jsx(ai,{className:"flex items-center justify-center",asChild:o,children:e}),a.jsx(li,{side:r,children:t})]}):a.jsxs(no,{children:[a.jsx(ro,{className:"flex items-center justify-center",asChild:o,children:e}),a.jsx(Vl,{children:a.jsx(oo,{side:r,children:t})})]})})}const iu=({filters:e,activeFilters:t,onFiltersChange:n,variant:r="badge",multipleFilters:o=!0,showSearch:s=!0,searchValue:i="",onSearchChange:l,searchPlaceholder:c="Search tokens...",searchDebounceDelay:u=300})=>{const f=_.useCallback(d=>{if(r==="badge"&&o){const m=t.includes(d)?t.filter(h=>h!==d):[...t,d];n(m)}else{const m=t.includes(d)&&t.length===1?[]:[d];n(m)}},[t,n,r,o]);return a.jsxs("div",{className:"space-y-3",children:[s&&l&&a.jsx(su,{value:i,onChange:l,placeholder:c,debounce:u}),e.length>0&&a.jsx(a.Fragment,{children:r==="badge"?a.jsx("div",{className:"flex flex-wrap gap-2 px-2",children:e.map(d=>a.jsxs(Wr,{variant:t.includes(d.id)?"default":"muted",className:"bg-muted cursor-pointer rounded-full",onClick:()=>f(d.id),children:[d.icon&&a.jsx("span",{className:"mr-1",children:d.icon}),d.label]},d.id))}):a.jsx(Tx,{variant:"segment",className:"w-full",value:t[0],onChange:d=>f(d),items:e.map(d=>({value:d.id,label:d.label}))})})]})};function NI({assets:e,searchQuery:t,activeFilterIds:n,filters:r}){return _.useMemo(()=>{let o=e;if(t){const s=t.toLowerCase();o=o.filter(i=>i.symbol.toLowerCase().includes(s)||i.name.toLowerCase().includes(s)||i.address?.toLowerCase().includes(s))}if(n.length>0){const s=r.filter(i=>n.includes(i.id)).map(i=>i.filterFn);o=o.filter(i=>s.every(l=>l(i)))}return o},[e,t,n,r])}const II={1:"https://storage.googleapis.com/turtle-assets/tokens/eth.png",747474:"https://storage.googleapis.com/turtle-assets/partners/polygon/katana.svg"};function kI({assets:e,groupByChain:t}){return _.useMemo(()=>{const n=[...e].sort((s,i)=>{const l=parseFloat(s.balanceUSD.replace(/[$,]/g,"")||"0");return parseFloat(i.balanceUSD.replace(/[$,]/g,"")||"0")-l});if(!t)return[{id:"all-assets",items:n}];const r=n.reduce((s,i)=>(s[i.chainId]||(s[i.chainId]={id:i.chainId,title:i.chainName,icon:II[Number(i.chainId)],items:[]}),s[i.chainId].items.push(i),s),{});console.log("chainGroups",r);const o=Object.values(r);return o.sort((s,i)=>{const l=s.items.length>0?parseFloat(s.items[0].balanceUSD.replace(/[$,]/g,"")||"0"):0,c=i.items.length>0?parseFloat(i.items[0].balanceUSD.replace(/[$,]/g,"")||"0"):0;if(l===c){const u=s.items.filter(d=>parseFloat(d.balance)>0).length;return i.items.filter(d=>parseFloat(d.balance)>0).length-u}return c-l}),o},[e,t])}const DI=[{id:"all",label:"All",filterFn:e=>parseFloat(e.balance)>0},{id:"stablecoins",label:"Stables",filterFn:e=>["USDC","USDT","DAI","USD"].includes(e.symbol.toUpperCase())||["USDC","USDT","DAI","USD"].includes(e.name.toUpperCase())},{id:"eth",label:"ETH",filterFn:e=>["ETH"].includes(e.symbol.toUpperCase())||["ETH"].includes(e.name.toUpperCase())},{id:"btc",label:"BTC",filterFn:e=>["BTC"].includes(e.symbol.toUpperCase())||["BTC"].includes(e.name.toUpperCase())}],OI=({assets:e,onAssetClick:t,groupByChain:n=!0,showChainIcon:r=!1,filters:o=DI,filterVariant:s="badge",multipleFilters:i=!1,showSearch:l=!0,searchPlaceholder:c="Search tokens...",searchDebounceDelay:u=300,className:f,itemClassName:d,emptyState:m})=>{const[h,v]=_.useState(""),[g,y]=_.useState(["all"]),x=NI({assets:e,searchQuery:h,activeFilterIds:g,filters:o}),b=kI({assets:x,groupByChain:n}),w=C=>a.jsx(Ly,{icon:r&&C.chainIcon?a.jsxs("div",{className:"relative",children:[C.icon,a.jsx("div",{className:"bg-background border-border absolute -right-1 -bottom-1 flex h-4 w-4 items-center justify-center rounded-full border",children:C.chainIcon})]}):C.icon,symbol:C.symbol,name:C.name,balance:C.balance,balanceUSD:C.balanceUSD,onClick:()=>t?.(C),className:d});return a.jsxs("div",{className:S("flex h-full flex-col",f),children:[a.jsx("div",{className:"mb-8 flex-shrink-0",children:a.jsx(iu,{filters:o.map(({filterFn:C,...R})=>R),activeFilters:g,onFiltersChange:y,variant:s,multipleFilters:i,showSearch:l,searchValue:h,onSearchChange:v,searchPlaceholder:c,searchDebounceDelay:u})}),a.jsx(pi,{className:"flex-1",children:a.jsx("div",{className:"pb-4",children:a.jsx(eu,{groups:b,renderItem:w,getItemKey:C=>C.id,showGroupHeaders:n,emptyState:m||a.jsx("div",{className:"text-muted-foreground py-8 text-center",children:h||g.length>0?"No assets match your filters":"No assets available"})})})})]})},xo=p.forwardRef(({className:e,onSelect:t,selected:n=!1,children:r,...o},s)=>a.jsx(Xe,{ref:s,variant:"border",className:S("bg-background w-full cursor-pointer p-4 transition-all duration-200 hover:shadow-md",n&&"ring-primary border-text-foreground/60 ring-2 ring-offset-2",e),onClick:t,...o,children:a.jsx("div",{className:"flex flex-col gap-2",children:r})}));xo.displayName="WidgetItem";const yo=p.forwardRef(({className:e,children:t,...n},r)=>a.jsx("div",{ref:r,className:S("flex items-start justify-between gap-4",e),...n,children:t}));yo.displayName="WidgetItemTop";const bo=p.forwardRef(({className:e,children:t,...n},r)=>a.jsx("div",{ref:r,className:S("flex items-end justify-between gap-4",e),...n,children:t}));bo.displayName="WidgetItemBottom";const Jt=p.forwardRef(({className:e,children:t,...n},r)=>a.jsx("div",{ref:r,className:S("flex min-w-0 flex-1 flex-col items-start justify-start gap-1",e),...n,children:t}));Jt.displayName="WidgetItemLeft";const en=p.forwardRef(({className:e,children:t,...n},r)=>a.jsx("div",{ref:r,className:S("flex flex-col items-end justify-between gap-1",e),...n,children:t}));en.displayName="WidgetItemRight";const wo=p.forwardRef(({className:e,stats:t,separator:n=" | ",...r},o)=>{const s=t.filter(i=>i.value);return s.length===0?null:a.jsx("div",{ref:o,className:S("text-muted-foreground flex gap-2 text-xs",e),...r,children:s.map((i,l)=>a.jsxs(p.Fragment,{children:[l>0&&a.jsx("span",{children:n}),a.jsxs("span",{className:"flex items-center justify-center gap-1",children:[a.jsxs("span",{children:[i.label,": "]}),i.icon?a.jsxs("span",{className:"flex gap-1",children:[i.icon," ",i.value]}):a.jsx("span",{children:i.value})]})]},i.label))})});wo.displayName="WidgetItemStats";const au=p.forwardRef(({value:e,onSelect:t,selected:n=!1,...r},o)=>{const{icon:s,name:i,tvl:l,apr:c,incentives:u,chain:f,turtleBoost:d}=e,m=a.jsx("div",{className:"bg-primary/20 flex h-6 w-6 items-center justify-center rounded-full",children:a.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M12 2L13.09 8.26L20 7L18.74 13.09L22 14L16.74 19.26L17 21L10.91 19.74L10 22L8.09 15.74L2 17L3.26 10.91L0 10L5.26 4.74L5 3L11.09 4.26L12 2Z"})})}),h=p.useMemo(()=>d?[{label:"TVL",value:l||""},{label:"Turtle Boost",value:d,icon:a.jsx(Mp,{size:12})}]:[{label:"TVL",value:l||""}],[]);return a.jsxs(xo,{ref:o,onSelect:t,selected:n,...r,children:[a.jsxs(yo,{children:[a.jsx(Jt,{children:a.jsx(ot,{icon:s||m,textSize:"base",iconSize:"lg",children:i})}),a.jsx(en,{children:c&&a.jsx("span",{className:"text-md text-foreground font-semibold",children:c})})]}),a.jsxs(bo,{children:[a.jsxs(Jt,{children:[f&&a.jsx(Sn,{items:[f],label:"Chains",size:"sm"}),a.jsx(wo,{stats:h})]}),a.jsx(en,{children:a.jsx("div",{className:"flex flex-col items-end gap-1",children:u&&a.jsx(Sn,{items:u,label:"Rewards",size:"sm"})})})]})]})});au.displayName="OpportunityItem";const Xy=p.forwardRef(({value:e,onSelect:t,selected:n=!1,...r},o)=>{const{icon:s,name:i,tvl:l,participants:c,aprRange:u,rewards:f,chains:d}=e,m=a.jsx("div",{className:"bg-primary/20 flex h-6 w-6 items-center justify-center rounded-full",children:a.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"})})}),h=[{label:"TVL",value:l},{label:"Participants",value:c||""}];return a.jsxs(xo,{ref:o,onSelect:t,selected:n,...r,children:[a.jsxs(yo,{children:[a.jsx(Jt,{children:a.jsx(ot,{icon:s||m,textSize:"base",iconSize:"lg",children:i})}),a.jsx(en,{children:a.jsx("span",{className:"text-md text-foreground font-semibold",children:u||"N/A"})})]}),a.jsxs(bo,{children:[a.jsxs(Jt,{children:[d&&a.jsx(Sn,{items:d,label:"Chains",size:"sm"}),a.jsx(wo,{stats:h})]}),a.jsx(en,{className:"flex flex-col items-end gap-1",children:f&&a.jsx(Sn,{items:f,label:"Rewards",size:"sm"})})]})]})});Xy.displayName="CampaignItem";const Zy=p.forwardRef(({value:e,onSelect:t,selected:n=!1,...r},o)=>{const{icon:s,name:i,chains:l,tvl:c,turtleBoost:u,category:f}=e,d=a.jsx("div",{className:"bg-primary/20 flex h-6 w-6 items-center justify-center rounded-full",children:a.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z"})})}),m=p.useMemo(()=>[{label:"TVL",value:c},{label:"Turtle Boost",value:u,icon:a.jsx(Mp,{size:12})}],[c,u]);return a.jsxs(xo,{ref:o,onSelect:t,selected:n,...r,children:[a.jsxs(yo,{children:[a.jsx(Jt,{children:a.jsx(ot,{icon:s||d,textSize:"base",iconSize:"lg",children:i})}),a.jsx(en,{children:a.jsx("span",{className:"text-md text-foreground font-semibold",children:u})})]}),a.jsxs(bo,{children:[a.jsx(Jt,{children:a.jsx(wo,{stats:m})}),a.jsx(en,{children:l&&a.jsx(Sn,{items:l,label:"Available on",size:"sm"})})]})]})});Zy.displayName="DealItem";const Gt=(e,t,n)=>{const r=document.createElement(e),[o,s]=Array.isArray(t)?[void 0,t]:[t,n];return o&&Object.assign(r,o),s?.forEach(i=>r.appendChild(i)),r},LI=(e,t)=>{var n;return t==="left"?e.offsetLeft:(((n=e.offsetParent instanceof HTMLElement?e.offsetParent:null)==null?void 0:n.offsetWidth)??0)-e.offsetWidth-e.offsetLeft},FI=e=>e.offsetWidth>0&&e.offsetHeight>0,VI=(e,t)=>{!customElements.get(e)&&customElements.define(e,t)};function $I(e,t,{reverse:n=!1}={}){const r=e.length;for(let o=n?r-1:0;n?o>=0:o<r;n?o--:o++)t(e[o],o)}function BI(e,t,n,r){const o=t.formatToParts(e);n&&o.unshift({type:"prefix",value:n}),r&&o.push({type:"suffix",value:r});const s=[],i=[],l=[],c=[],u={},f=g=>`${g}:${u[g]=(u[g]??-1)+1}`;let d="",m=!1,h=!1;for(const g of o){d+=g.value;const y=g.type==="minusSign"||g.type==="plusSign"?"sign":g.type;y==="integer"?(m=!0,i.push(...g.value.split("").map(x=>({type:y,value:parseInt(x)})))):y==="group"?i.push({type:y,value:g.value}):y==="decimal"?(h=!0,l.push({type:y,value:g.value,key:f(y)})):y==="fraction"?l.push(...g.value.split("").map(x=>({type:y,value:parseInt(x),key:f(y),pos:-1-u[y]}))):(m||h?c:s).push({type:y,value:g.value,key:f(y)})}const v=[];for(let g=i.length-1;g>=0;g--){const y=i[g];v.unshift(y.type==="integer"?{...y,key:f(y.type),pos:u[y.type]}:{...y,key:f(y.type)})}return{pre:s,integer:v,fraction:l,post:c,valueAsString:d,value:typeof e=="string"?parseFloat(e):e}}const zI=String.raw,HI=(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0})(),GI=typeof CSS<"u"&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),Pf=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):null,Rs="--_number-flow-d-opacity",lu="--_number-flow-d-width",js="--_number-flow-dx",cu="--_number-flow-d",UI=(()=>{try{return CSS.registerProperty({name:Rs,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:js,syntax:"<length>",inherits:!0,initialValue:"0px"}),CSS.registerProperty({name:lu,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:cu,syntax:"<number>",inherits:!0,initialValue:"0"}),!0}catch{return!1}})(),WI="var(--number-flow-char-height, 1em)",Bt="var(--number-flow-mask-height, 0.25em)",Nf=`calc(${Bt} / 2)`,ml="var(--number-flow-mask-width, 0.5em)",pn=`calc(${ml} / var(--scale-x))`,Ho="#000 0, transparent 71%",If=zI`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:${WI} !important}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${lu}) / var(--width));transform:translateX(var(${js})) scaleX(var(--scale-x));margin:0 calc(-1 * ${ml});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${pn},#000 calc(100% - ${pn}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${Bt},#000 calc(100% - ${Bt}),transparent 100% ),radial-gradient(at bottom right,${Ho}),radial-gradient(at bottom left,${Ho}),radial-gradient(at top left,${Ho}),radial-gradient(at top right,${Ho});-webkit-mask-size:100% calc(100% - ${Bt} * 2),calc(100% - ${pn} * 2) 100%,${pn} ${Bt},${pn} ${Bt},${pn} ${Bt},${pn} ${Bt};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${Nf} ${ml};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${js})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${cu})}.digit__num,.number .section::after{padding:${Nf} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${Rs}))}`,KI=HTMLElement,YI=GI&&HI&&UI;let Go;class Qy extends KI{constructor(){super(),this.created=!1,this.batched=!1;const{animated:t,...n}=this.constructor.defaultProps;this._animated=this.computedAnimated=t,Object.assign(this,n)}get animated(){return this._animated}set animated(t){var n;this.animated!==t&&(this._animated=t,(n=this.shadowRoot)==null||n.getAnimations().forEach(r=>r.finish()))}set data(t){var n;if(t==null)return;const{pre:r,integer:o,fraction:s,post:i,value:l}=t;if(this.created){const c=this._data;this._data=t,this.computedTrend=typeof this.trend=="function"?this.trend(c.value,l):this.trend,this.computedAnimated=YI&&this._animated&&(!this.respectMotionPreference||!(Pf!=null&&Pf.matches))&&FI(this),(n=this.plugins)==null||n.forEach(u=>{var f;return(f=u.onUpdate)==null?void 0:f.call(u,t,c,this)}),this.batched||this.willUpdate(),this._pre.update(r),this._num.update({integer:o,fraction:s}),this._post.update(i),this.batched||this.didUpdate()}else{this._data=t,this.attachShadow({mode:"open"});try{this._internals??(this._internals=this.attachInternals()),this._internals.role="img"}catch{}if(typeof CSSStyleSheet<"u"&&this.shadowRoot.adoptedStyleSheets)Go||(Go=new CSSStyleSheet,Go.replaceSync(If)),this.shadowRoot.adoptedStyleSheets=[Go];else{const c=document.createElement("style");c.textContent=If,this.shadowRoot.appendChild(c)}this._pre=new Df(this,r,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new qI(this,o,s),this.shadowRoot.appendChild(this._num.el),this._post=new Df(this,i,{justify:"left",part:"right"}),this.shadowRoot.appendChild(this._post.el),this.created=!0}try{this._internals.ariaLabel=t.valueAsString}catch{}}willUpdate(){this._pre.willUpdate(),this._num.willUpdate(),this._post.willUpdate()}didUpdate(){if(!this.computedAnimated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();const t=new AbortController;Promise.all(this.shadowRoot.getAnimations().map(n=>n.finished)).then(()=>{t.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)}),this._abortAnimationsFinish=t}}Qy.defaultProps={transformTiming:{duration:900,easing:"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"},spinTiming:void 0,opacityTiming:{duration:450,easing:"ease-out"},animated:!0,trend:(e,t)=>Math.sign(t-e),respectMotionPreference:!0,plugins:void 0,digits:void 0};class qI{constructor(t,n,r,{className:o,...s}={}){this.flow=t,this._integer=new kf(t,n,{justify:"right",part:"integer"}),this._fraction=new kf(t,r,{justify:"left",part:"fraction"}),this._inner=Gt("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=Gt("span",{...s,part:"number",className:`number ${o??""}`},[this._inner])}willUpdate(){this._prevWidth=this.el.offsetWidth,this._prevLeft=this.el.getBoundingClientRect().left,this._integer.willUpdate(),this._fraction.willUpdate()}update({integer:t,fraction:n}){this._integer.update(t),this._fraction.update(n)}didUpdate(){const t=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();const n=this._prevLeft-t.left,r=this.el.offsetWidth,o=this._prevWidth-r;this.el.style.setProperty("--width",String(r)),this.el.animate({[js]:[`${n}px`,"0px"],[lu]:[o,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class Jy{constructor(t,n,{justify:r,className:o,...s},i){this.flow=t,this.children=new Map,this.onCharRemove=c=>()=>{this.children.delete(c)},this.justify=r;const l=n.map(c=>this.addChar(c).el);this.el=Gt("span",{...s,className:`section section--justify-${r} ${o??""}`},i?i(l):l)}addChar(t,{startDigitsAtZero:n=!1,...r}={}){const o=t.type==="integer"||t.type==="fraction"?new tb(this,t.type,n?0:t.value,t.pos,{...r,onRemove:this.onCharRemove(t.key)}):new XI(this,t.type,t.value,{...r,onRemove:this.onCharRemove(t.key)});return this.children.set(t.key,o),o}unpop(t){t.el.removeAttribute("inert"),t.el.style.top="",t.el.style[this.justify]=""}pop(t){t.forEach(n=>{n.el.style.top=`${n.el.offsetTop}px`,n.el.style[this.justify]=`${LI(n.el,this.justify)}px`}),t.forEach(n=>{n.el.setAttribute("inert",""),n.present=!1})}addNewAndUpdateExisting(t){const n=new Map,r=new Map,o=this.justify==="left",s=o?"prepend":"append";if($I(t,i=>{let l;this.children.has(i.key)?(l=this.children.get(i.key),r.set(i,l),this.unpop(l),l.present=!0):(l=this.addChar(i,{startDigitsAtZero:!0,animateIn:!0}),n.set(i,l)),this.el[s](l.el)},{reverse:o}),this.flow.computedAnimated){const i=this.el.getBoundingClientRect();n.forEach(l=>{l.willUpdate(i)})}n.forEach((i,l)=>{i.update(l.value)}),r.forEach((i,l)=>{i.update(l.value)})}willUpdate(){const t=this.el.getBoundingClientRect();this._prevOffset=t[this.justify],this.children.forEach(n=>n.willUpdate(t))}didUpdate(){const t=this.el.getBoundingClientRect();this.children.forEach(o=>o.didUpdate(t));const n=t[this.justify],r=this._prevOffset-n;r&&this.children.size&&this.el.animate({transform:[`translateX(${r}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}class kf extends Jy{update(t){const n=new Map;this.children.forEach((r,o)=>{t.find(s=>s.key===o)||n.set(o,r),this.unpop(r)}),this.addNewAndUpdateExisting(t),n.forEach(r=>{r instanceof tb&&r.update(0)}),this.pop(n)}}class Df extends Jy{update(t){const n=new Map;this.children.forEach((r,o)=>{t.find(s=>s.key===o)||n.set(o,r)}),this.pop(n),this.addNewAndUpdateExisting(t)}}class hl{constructor(t,n,{onRemove:r,animateIn:o=!1}={}){this.flow=t,this.el=n,this._present=!0,this._remove=()=>{var s;this.el.remove(),(s=this._onRemove)==null||s.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&o&&this.el.animate({[Rs]:[-.9999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),this._onRemove=r}get present(){return this._present}set present(t){if(this._present!==t){if(this._present=t,t?this.el.removeAttribute("inert"):this.el.setAttribute("inert",""),!this.flow.computedAnimated){t||this._remove();return}this.el.style.setProperty("--_number-flow-d-opacity",t?"0":"-.999"),this.el.animate({[Rs]:t?[-.9999,0]:[.999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),t?this.flow.removeEventListener("animationsfinish",this._remove):this.flow.addEventListener("animationsfinish",this._remove,{once:!0})}}}class eb extends hl{constructor(t,n,r,o){super(t.flow,r,o),this.section=t,this.value=n,this.el=r}}class tb extends eb{constructor(t,n,r,o,s){var i,l;const c=(((l=(i=t.flow.digits)==null?void 0:i[o])==null?void 0:l.max)??9)+1,u=Array.from({length:c}).map((d,m)=>{const h=Gt("span",{className:"digit__num"},[document.createTextNode(String(m))]);return m!==r&&h.setAttribute("inert",""),h.style.setProperty("--n",String(m)),h}),f=Gt("span",{part:`digit ${n}-digit`,className:"digit"},u);f.style.setProperty("--current",String(r)),f.style.setProperty("--length",String(c)),super(t,r,f,s),this.pos=o,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=u,this.length=c}willUpdate(t){const n=this.el.getBoundingClientRect();this._prevValue=this.value;const r=n[this.section.justify]-t[this.section.justify],o=n.width/2;this._prevCenter=this.section.justify==="left"?r+o:r-o}update(t){this.el.style.setProperty("--current",String(t)),this._numbers.forEach((n,r)=>r===t?n.removeAttribute("inert"):n.setAttribute("inert","")),this.value=t}didUpdate(t){const n=this.el.getBoundingClientRect(),r=n[this.section.justify]-t[this.section.justify],o=n.width/2,s=this.section.justify==="left"?r+o:r-o,i=this._prevCenter-s;i&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});const l=this.getDelta();l&&(this.el.classList.add("is-spinning"),this.el.animate({[cu]:[-l,0]},{...this.flow.spinTiming??this.flow.transformTiming,composite:"accumulate"}),this.flow.addEventListener("animationsfinish",this._onAnimationsFinish,{once:!0}))}getDelta(){var t;if(this.flow.plugins)for(const o of this.flow.plugins){const s=(t=o.getDelta)==null?void 0:t.call(o,this.value,this._prevValue,this);if(s!=null)return s}const n=this.value-this._prevValue,r=this.flow.computedTrend||Math.sign(n);return r<0&&this.value>this._prevValue?this.value-this.length-this._prevValue:r>0&&this.value<this._prevValue?this.length-this._prevValue+this.value:n}}class XI extends eb{constructor(t,n,r,o){const s=Gt("span",{className:"symbol__value",textContent:r});super(t,r,Gt("span",{part:`symbol ${n}`,className:"symbol"},[s]),o),this.type=n,this._children=new Map,this._onChildRemove=i=>()=>{this._children.delete(i)},this._children.set(r,new hl(this.flow,s,{onRemove:this._onChildRemove(r)}))}willUpdate(t){if(this.type==="decimal")return;const n=this.el.getBoundingClientRect();this._prevOffset=n[this.section.justify]-t[this.section.justify]}update(t){if(this.value!==t){const n=this._children.get(this.value);n&&(n.present=!1);const r=this._children.get(t);if(r)r.present=!0;else{const o=Gt("span",{className:"symbol__value",textContent:t});this.el.appendChild(o),this._children.set(t,new hl(this.flow,o,{animateIn:!0,onRemove:this._onChildRemove(t)}))}}this.value=t}didUpdate(t){if(this.type==="decimal")return;const n=this.el.getBoundingClientRect()[this.section.justify]-t[this.section.justify],r=this._prevOffset-n;r&&this.el.animate({transform:[`translateX(${r}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}const ZI=parseInt(p.version.match(/^(\d+)\./)?.[1]),uu=ZI>=19,QI=["data","digits"];class du extends Qy{attributeChangedCallback(t,n,r){this[t]=JSON.parse(r)}}du.observedAttributes=uu?[]:QI;VI("number-flow-react",du);const JI={},Of=uu?e=>e:JSON.stringify;function Lf(e){const{transformTiming:t,spinTiming:n,opacityTiming:r,animated:o,respectMotionPreference:s,trend:i,plugins:l,...c}=e;return[{transformTiming:t,spinTiming:n,opacityTiming:r,animated:o,respectMotionPreference:s,trend:i,plugins:l},c]}class ek extends p.Component{updateProperties(t){if(!this.el)return;this.el.batched=!this.props.isolate;const[n]=Lf(this.props);Object.entries(n).forEach(([r,o])=>{this.el[r]=o??du.defaultProps[r]}),t?.onAnimationsStart&&this.el.removeEventListener("animationsstart",t.onAnimationsStart),this.props.onAnimationsStart&&this.el.addEventListener("animationsstart",this.props.onAnimationsStart),t?.onAnimationsFinish&&this.el.removeEventListener("animationsfinish",t.onAnimationsFinish),this.props.onAnimationsFinish&&this.el.addEventListener("animationsfinish",this.props.onAnimationsFinish)}componentDidMount(){this.updateProperties(),uu&&this.el&&(this.el.digits=this.props.digits,this.el.data=this.props.data)}getSnapshotBeforeUpdate(t){if(this.updateProperties(t),t.data!==this.props.data){if(this.props.group)return this.props.group.willUpdate(),()=>this.props.group?.didUpdate();if(!this.props.isolate)return this.el?.willUpdate(),()=>this.el?.didUpdate()}return null}componentDidUpdate(t,n,r){r?.()}handleRef(t){this.props.innerRef&&(this.props.innerRef.current=t),this.el=t}render(){const[t,{innerRef:n,className:r,data:o,willChange:s,isolate:i,group:l,digits:c,onAnimationsStart:u,onAnimationsFinish:f,...d}]=Lf(this.props);return p.createElement("number-flow-react",{ref:this.handleRef,"data-will-change":s?"":void 0,class:r,...d,dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0,digits:Of(c),data:Of(o)})}constructor(t){super(t),this.handleRef=this.handleRef.bind(this)}}const aa=p.forwardRef(function({value:t,locales:n,format:r,prefix:o,suffix:s,...i},l){p.useImperativeHandle(l,()=>c.current,[]);const c=p.useRef(),u=p.useContext(tk);u?.useRegister(c);const f=p.useMemo(()=>n?JSON.stringify(n):"",[n]),d=p.useMemo(()=>r?JSON.stringify(r):"",[r]),m=p.useMemo(()=>{const h=JI[`${f}:${d}`]??=new Intl.NumberFormat(n,r);return BI(t,h,o,s)},[t,f,d,o,s]);return p.createElement(ek,{...i,group:u,data:m,innerRef:c})}),tk=p.createContext(void 0),nb=({apr:e,aprBreakdown:t,showBoostedRewards:n=!1,showBoostedRewardsDescription:r=!1})=>{const o=t.filter(s=>s.boost);return a.jsxs(am,{children:[a.jsx(lm,{asChild:!0,children:a.jsxs("span",{className:"text-accent inline-flex items-center gap-1 text-2xl font-semibold",children:[a.jsx(aa,{value:e,format:{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}}),a.jsx(Tp,{size:16,className:"text-muted-foreground cursor-pointer font-bold"})]})}),a.jsxs(cm,{children:[a.jsx("h3",{className:"text-accent text-sm",children:"Rewards"}),a.jsxs("div",{className:"flex flex-col gap-2",children:[t.filter(s=>!s.boost).map(s=>a.jsxs("div",{className:"flex justify-between",children:[a.jsx(ot,{textSize:"xs",icon:s.iconUrl,iconSize:"sm",className:"text-muted-foreground",children:s.name}),a.jsx("span",{className:"text-accent text-sm font-semibold",children:a.jsx(aa,{value:parseFloat(s.apr)/100,format:{style:"percent",minimumFractionDigits:2,maximumFractionDigits:3}})})]},s.name)),a.jsx(kt,{}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-accent text-sm",children:"Net Reward Rate"}),a.jsx("span",{className:"text-accent text-sm font-semibold",children:a.jsx(aa,{value:e,format:{style:"percent",minimumFractionDigits:3,maximumFractionDigits:3}})})]}),n&&o.length>0&&a.jsxs(a.Fragment,{children:[a.jsx(kt,{}),a.jsx("h3",{className:"text-accent text-sm",children:"Boosted Rewards"}),a.jsx("div",{className:"flex justify-between",children:a.jsx("span",{className:"text-accent text-sm font-semibold",children:o.map(s=>a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(ot,{textSize:"xs",icon:s.iconUrl,iconSize:"sm",className:"text-muted-foreground",children:s.description}),r&&s.description&&a.jsx("span",{className:"text-muted-foreground text-xs",children:s.description})]},s.name))})})]})]})]})]})},nk=({value:e})=>{const{depositAmount:t,apr:n,symbol:r,price:o}=e,s=_.useMemo(()=>{const i=t*n/12,l=i*o,c=t*n,u=c*o;return{monthlyReward:i.toFixed(4),monthlyRewardUsd:l.toFixed(2),yearlyReward:c.toFixed(4),yearlyRewardUsd:u.toFixed(2)}},[t,n,r,o]);return _.useEffect(()=>{},[t,n,r,o]),a.jsxs("div",{className:"space-y-1",children:[a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Monthly"}),a.jsxs("span",{className:"text-muted-foreground text-sm font-semibold",children:[s.monthlyReward," ",r," ($",s.monthlyRewardUsd,")"]})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Yearly"}),a.jsxs("span",{className:"text-muted-foreground text-sm font-semibold",children:[s.yearlyReward," ",r," ($",s.yearlyRewardUsd,")"]})]})]})},rb=({type:e})=>a.jsxs(Wr,{variant:"muted",className:"gap-2",children:[a.jsx(Ow,{size:16})," ",e]}),ob=()=>{const e=[{icon:a.jsx(Vw,{size:16}),description:"Lorem ipsum dolor sit, amet consectetur adipisicing elit. Porro expedita amet hic beatae similique vero recusandae necessitatibus"},{icon:a.jsx(Kw,{size:16}),description:"Lend your USDT with Morpho and earn USDT rewards"},{icon:a.jsx(kw,{size:16}),description:"Rewards are automatically distributed every block and accrue to your position"}];return a.jsx("div",{className:"flex w-full flex-col gap-3",children:e.map(t=>a.jsxs("div",{className:"flex gap-3",children:[a.jsx("div",{className:"text-muted-foreground flex h-4 w-4 flex-shrink-0 items-center justify-center",children:t.icon}),a.jsx("p",{className:"text-muted-foreground flex-1 text-xs",children:t.description})]},t.description))})},sb=({iconUrl:e,name:t,onClick:n})=>a.jsxs(Xe,{variant:"border",rounded:"full",onClick:n,className:"flex cursor-pointer items-center justify-between gap-3",children:[a.jsx(ot,{icon:e,textSize:"sm",iconSize:"base",children:t}),a.jsx(pt,{className:"text-muted-foreground h-4 w-4"})]}),rk=p.forwardRef(({className:e,value:t,onOpportunityClick:n,hideDisclaimer:r,opportunitySelector:o,...s},i)=>a.jsxs("div",{className:"text-foreground space-y-2",children:[a.jsx(Xe,{variant:"shadow",ref:i,className:S("space-y-3",e),...s,children:a.jsxs("div",{className:"flex justify-between",children:[a.jsx(nb,{apr:parseFloat(t.totalApr)/100,aprBreakdown:t.aprBreakdown,showBoostedRewardsDescription:!1,showBoostedRewards:!0}),o==="new"&&a.jsx(sb,{iconUrl:t.icon,name:t.name,onClick:n}),o==="old"&&a.jsx(Jc,{icon:Qc(t.icon,t.vaultSymbol),text:t.name,onClick:n,size:"sm"})]})}),!r&&a.jsx(Xe,{ref:i,variant:"border",gradient:"white",className:S("space-y-3",e),...s,children:a.jsxs("div",{className:"flex flex-col items-center justify-between gap-3",children:[a.jsxs("div",{className:"flex w-full justify-between p-1",children:[a.jsx(rb,{type:t.type}),a.jsxs("span",{className:"text-foreground text-sm font-semibold",children:["TVL: ",t.tvlUsd]})]}),a.jsx(kt,{}),a.jsx(ob,{})]})})]}));function ok({opportunities:e,searchQuery:t,activeFilterIds:n,filters:r}){return _.useMemo(()=>{let o=e;if(t){const s=t.toLowerCase();o=o.filter(i=>i.name.toLowerCase().includes(s)||i.partner?.name.toLowerCase().includes(s)||i.chain.name.toLowerCase().includes(s))}if(n.length>0){const s=r.filter(i=>n.includes(i.id)).map(i=>i.filterFn);o=o.filter(i=>s.every(l=>l(i)))}return o},[e,t,n,r])}function sk({opportunities:e,groupBy:t}){return _.useMemo(()=>{const n=[...e].sort((s,i)=>{const l=parseFloat(s.apr?.replace("%","")||"0");return parseFloat(i.apr?.replace("%","")||"0")-l});if(t==="none")return[{id:"all-opportunities",items:n}];const r=n.reduce((s,i)=>{let l,c,u;switch(t){case"partner":l=i.partner?.name||"other",c=i.partner?.name||"Other",u=i.partner?.icon;break;case"chain":l=i.chain.name||"other",c=i.chain.name||"Other",u=i.chain.icon;break;default:l="all",c="All"}return s[l]||(s[l]={id:l,title:c,icon:u,items:[]}),s[l].items.push(i),s},{}),o=Object.values(r);return o.sort((s,i)=>{const l=s.items.length>0?parseFloat(s.items[0].apr?.replace("%","")||"0"):0;return(i.items.length>0?parseFloat(i.items[0].apr?.replace("%","")||"0"):0)-l}),o},[e,t])}const ik=[{id:"all",label:"All",filterFn:e=>!0},{id:"stablecoins",label:"Stables",filterFn:e=>e.name.includes("USD")},{id:"eth",label:"ETH",filterFn:e=>e.name.includes("ETH")},{id:"btc",label:"BTC",filterFn:e=>e.name.includes("BTC")}],ak=({opportunities:e,onOpportunityClick:t,groupBy:n="none",filters:r=ik,filterVariant:o="badge",multipleFilters:s=!0,showSearch:i=!0,searchPlaceholder:l="Search opportunities...",searchDebounceDelay:c=300,className:u,itemClassName:f,emptyState:d})=>{const[m,h]=_.useState(""),[v,g]=_.useState([]),y=ok({opportunities:e,searchQuery:m,activeFilterIds:v,filters:r}),x=sk({opportunities:y,groupBy:n}),b=w=>a.jsx(au,{value:w,onSelect:()=>t?.(w),className:f});return a.jsxs("div",{className:S("flex h-full flex-col",u),children:[a.jsx("div",{className:"mb-4 flex-shrink-0",children:a.jsx(iu,{filters:r.map(({filterFn:w,...C})=>C),activeFilters:v,onFiltersChange:g,variant:o,multipleFilters:s,showSearch:i,searchValue:m,onSearchChange:h,searchPlaceholder:l,searchDebounceDelay:c})}),a.jsx(pi,{className:"flex-1",children:a.jsx(eu,{groups:x,renderItem:b,getItemKey:w=>w.name,showGroupHeaders:n!=="none",emptyState:d||a.jsx("div",{className:"text-muted-foreground py-8 text-center",children:m||v.length>0?"No opportunities match your filters":"No opportunities available"})})})]})},lk={colors:{neonGreen:"oklch(0.86 0.16 142.5)",darkGreen:"oklch(0.24 0.16 142.5)",ninjaBlack:"oklch(0.1 0.005 120)",wiseWhite:"oklch(0.98 0 0)",wiseGray:"oklch(0.17 0.003 120)",mintCream:"oklch(0.95 0.046 109)",turtleYellow:"oklch(0.97 0.21 98.2)",turtleRed:"oklch(0.6 0.28 29)",whiteTransparent:"oklch(0.98 0 0 / 0.02)",light:{background:"oklch(1 0 0)",foreground:"oklch(0.141 0.005 285.823)",card:"oklch(1 0 0)",cardForeground:"oklch(0.141 0.005 285.823)",popover:"oklch(1 0 0)",popoverForeground:"oklch(0.141 0.005 285.823)",primary:"oklch(0.21 0.006 285.885)",primaryForeground:"oklch(0.985 0 0)",secondary:"oklch(0.967 0.001 286.375)",secondaryForeground:"oklch(0.21 0.006 285.885)",muted:"oklch(0.967 0.001 286.375)",mutedForeground:"oklch(0.552 0.016 285.938)",accent:"oklch(0.967 0.001 286.375)",accentForeground:"oklch(0.21 0.006 285.885)",destructive:"oklch(0.577 0.245 27.325)",border:"oklch(0.92 0.004 286.32)",input:"oklch(0.92 0.004 286.32)",ring:"oklch(0.705 0.015 286.067)"},dark:{background:"oklch(0.141 0.005 285.823)",foreground:"oklch(0.985 0 0)",card:"oklch(0.21 0.006 285.885)",cardForeground:"oklch(0.985 0 0)",popover:"oklch(0.21 0.006 285.885)",popoverForeground:"oklch(0.985 0 0)",primary:"oklch(0.92 0.004 286.32)",primaryForeground:"oklch(0.21 0.006 285.885)",secondary:"oklch(0.274 0.006 286.033)",secondaryForeground:"oklch(0.985 0 0)",muted:"oklch(0.274 0.006 286.033)",mutedForeground:"oklch(0.705 0.015 286.067)",accent:"oklch(0.274 0.006 286.033)",accentForeground:"oklch(0.985 0 0)",destructive:"oklch(0.704 0.191 22.216)",border:"oklch(1 0 0 / 10%)",input:"oklch(1 0 0 / 15%)",ring:"oklch(0.552 0.016 285.938)"}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.5rem","2xl":"2rem","3xl":"3rem","4xl":"4rem"},radius:{none:"0",sm:"calc(0.625rem - 4px)",md:"calc(0.625rem - 2px)",lg:"0.625rem",xl:"calc(0.625rem + 4px)",full:"9999px"},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}]},fontWeight:{normal:"400",medium:"500",semibold:"600",bold:"700"},shadow:{xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"}};exports.AlertDialog=l4;exports.AlertDialogAction=h4;exports.AlertDialogCancel=g4;exports.AlertDialogContent=u4;exports.AlertDialogDescription=m4;exports.AlertDialogFooter=f4;exports.AlertDialogHeader=d4;exports.AlertDialogOverlay=R0;exports.AlertDialogPortal=S0;exports.AlertDialogTitle=p4;exports.AlertDialogTrigger=c4;exports.AnimatedBackground=e_;exports.ArrowIcon=Hg;exports.AssetFilters=iu;exports.AssetList=OI;exports.AssetRow=Ly;exports.Avatar=cs;exports.AvatarFallback=us;exports.AvatarImage=Ol;exports.Badge=Wr;exports.Banner=a3;exports.BaseSelector=Jc;exports.BetaIcon=Wg;exports.Button=Wt;exports.CampaignItem=Xy;exports.Card=Xe;exports.CardContent=Rl;exports.CardDescription=aw;exports.CardFooter=lw;exports.CardHeader=jp;exports.CardTitle=Ep;exports.Checkbox=rA;exports.Chip=bl;exports.Collapsible=Ay;exports.CollapsibleContent=Py;exports.CollapsibleTrigger=My;exports.Combobox=X0;exports.Command=ui;exports.CommandDialog=yN;exports.CommandEmpty=Uc;exports.CommandGroup=Yn;exports.CommandInput=Hc;exports.CommandItem=hn;exports.CommandList=Gc;exports.CommandSeparator=Y0;exports.CommandShortcut=bN;exports.DataTable=_I;exports.DealItem=Zy;exports.Dialog=xv;exports.DialogClose=qT;exports.DialogContent=wv;exports.DialogDescription=Rv;exports.DialogFooter=XT;exports.DialogHeader=Cv;exports.DialogOverlay=bv;exports.DialogPortal=yv;exports.DialogTitle=Sv;exports.DialogTrigger=YT;exports.DotIcon=Jn;exports.DropdownMenu=CM;exports.DropdownMenuCheckboxItem=TM;exports.DropdownMenuContent=jM;exports.DropdownMenuGroup=EM;exports.DropdownMenuItem=_M;exports.DropdownMenuLabel=PM;exports.DropdownMenuPortal=SM;exports.DropdownMenuRadioGroup=AM;exports.DropdownMenuRadioItem=MM;exports.DropdownMenuSeparator=NM;exports.DropdownMenuShortcut=IM;exports.DropdownMenuSub=kM;exports.DropdownMenuSubContent=OM;exports.DropdownMenuSubTrigger=DM;exports.DropdownMenuTrigger=RM;exports.ExpandToggle=TI;exports.Field=_4;exports.FieldContent=T4;exports.FieldDescription=P4;exports.FieldError=I4;exports.FieldGroup=j4;exports.FieldLabel=A4;exports.FieldLegend=R4;exports.FieldSeparator=N4;exports.FieldSet=S4;exports.FieldTitle=M4;exports.HeadingH1=v4;exports.HeadingH2=x4;exports.HeadingH3=j0;exports.HeadingH4=y4;exports.HeadingH5=b4;exports.HeadingH6=E0;exports.HoverCard=am;exports.HoverCardContent=cm;exports.HoverCardTrigger=lm;exports.IconAnimation=wl;exports.IconList=Sn;exports.InfoCard=ns;exports.Input=yr;exports.InputGroup=$M;exports.InputGroupAddon=zM;exports.InputGroupButton=GM;exports.InputGroupInput=WM;exports.InputGroupText=UM;exports.InputGroupTextarea=KM;exports.IssueIcon=Kg;exports.Label=T0;exports.LabelWithIcon=ot;exports.ManagedTable=Jw;exports.MultiSelect=q0;exports.NavigationBar=Cl;exports.NavigationItem=Sl;exports.NavigationMenu=vP;exports.NavigationMenuContent=wP;exports.NavigationMenuIndicator=SP;exports.NavigationMenuItem=yP;exports.NavigationMenuLink=CP;exports.NavigationMenuList=xP;exports.NavigationMenuTrigger=bP;exports.NavigationMenuViewport=qx;exports.OpportunityApr=nb;exports.OpportunityDetailsV1=Qw;exports.OpportunityDisclaimer=ob;exports.OpportunityItem=au;exports.OpportunityList=ak;exports.OpportunityRateEstimator=nk;exports.OpportunitySection=rk;exports.OpportunitySelector=sb;exports.OpportunityType=rb;exports.PageHeading=MI;exports.Popover=ii;exports.PopoverAnchor=Y4;exports.PopoverContent=li;exports.PopoverTrigger=ai;exports.RouteDetails=c3;exports.ScrollArea=pi;exports.ScrollBar=uy;exports.SearchBar=su;exports.SegmentControl=Tx;exports.Select=Yg;exports.SelectContent=Xg;exports.SelectGroup=kT;exports.SelectItem=Zg;exports.SelectLabel=OT;exports.SelectScrollDownButton=Jg;exports.SelectScrollUpButton=Qg;exports.SelectSeparator=LT;exports.SelectTrigger=qg;exports.SelectValue=DT;exports.Separator=kt;exports.ShadTableCell=Rc;exports.Sidebar=my;exports.SidebarContent=xy;exports.SidebarFooter=vy;exports.SidebarGroup=il;exports.SidebarGroupAction=JN;exports.SidebarGroupContent=yy;exports.SidebarGroupLabel=QN;exports.SidebarHeader=gy;exports.SidebarInput=XN;exports.SidebarInset=qN;exports.SidebarMenu=by;exports.SidebarMenuAction=e3;exports.SidebarMenuBadge=t3;exports.SidebarMenuButton=ll;exports.SidebarMenuItem=al;exports.SidebarMenuSkeleton=n3;exports.SidebarMenuSub=Cy;exports.SidebarMenuSubButton=Ry;exports.SidebarMenuSubItem=Sy;exports.SidebarProvider=py;exports.SidebarRail=YN;exports.SidebarSeparator=ZN;exports.SidebarTrigger=hy;exports.Slider=HP;exports.SlippageSelector=Oy;exports.SwapDetails=Dy;exports.SwapInput=ky;exports.Switch=L1;exports.Table=Ev;exports.TableBody=Tv;exports.TableCaption=QT;exports.TableCell=eC;exports.TableFooter=ZT;exports.TableHead=Av;exports.TableHeader=_v;exports.TableRow=xs;exports.Tabs=h3;exports.Textarea=Ax;exports.Toaster=$b;exports.Toggle=ow;exports.ToggleGroup=sw;exports.ToggleGroupItem=iw;exports.TokenSelector=Iy;exports.Tooltip=no;exports.TooltipContent=oo;exports.TooltipProvider=$s;exports.TooltipTrigger=ro;exports.TurtleAvatar=JS;exports.TurtleContainer=qy;exports.TurtleIcon=zg;exports.TurtleSidebar=Yy;exports.TurtleSidebarLayout=AI;exports.TurtleTooltip=PI;exports.TxStatus=Ny;exports.UpdateIcon=Ug;exports.WarningIcon=Gg;exports.WidgetItem=xo;exports.WidgetItemBottom=bo;exports.WidgetItemLeft=Jt;exports.WidgetItemRight=en;exports.WidgetItemStats=wo;exports.WidgetItemTop=yo;exports.WidgetListItems=eu;exports.badgeVariants=jv;exports.buttonVariants=Zr;exports.cardVariants=Rp;exports.chipVariants=yp;exports.cn=S;exports.hoverCardContentVariants=Wo;exports.iconAnimationVariants=bp;exports.iconUrlToImg=Qc;exports.inputVariants=qa;exports.labelWithIconVariants=wp;exports.navigationBarVariants=Cp;exports.navigationItemVariants=Sp;exports.navigationMenuTriggerStyle=Yx;exports.toggleVariants=yl;exports.tokens=lk;exports.useSidebar=wr;
232
+ */const He={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0};function vI(e,t,n){var r;if(n=n||{},n.threshold=(r=n.threshold)!=null?r:He.MATCHES,!n.accessors){const i=Tf(e,t,n);return{rankedValue:e,rank:i,accessorIndex:-1,accessorThreshold:n.threshold,passed:i>=n.threshold}}const o=wI(e,n.accessors),s={rankedValue:e,rank:He.NO_MATCH,accessorIndex:-1,accessorThreshold:n.threshold,passed:!1};for(let i=0;i<o.length;i++){const l=o[i];let c=Tf(l.itemValue,t,n);const{minRanking:u,maxRanking:f,threshold:d=n.threshold}=l.attributes;c<u&&c>=He.MATCHES?c=u:c>f&&(c=f),c=Math.min(c,f),c>=d&&c>s.rank&&(s.rank=c,s.passed=!0,s.accessorIndex=i,s.accessorThreshold=d,s.rankedValue=l.itemValue)}return s}function Tf(e,t,n){return e=Af(e,n),t=Af(t,n),t.length>e.length?He.NO_MATCH:e===t?He.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?He.EQUAL:e.startsWith(t)?He.STARTS_WITH:e.includes(` ${t}`)?He.WORD_STARTS_WITH:e.includes(t)?He.CONTAINS:t.length===1?He.NO_MATCH:xI(e).includes(t)?He.ACRONYM:yI(e,t))}function xI(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(s=>{t+=s.substr(0,1)})}),t}function yI(e,t){let n=0,r=0;function o(c,u,f){for(let d=f,m=u.length;d<m;d++)if(u[d]===c)return n+=1,d+1;return-1}function s(c){const u=1/c,f=n/t.length;return He.MATCHES+f*u}const i=o(t[0],e,0);if(i<0)return He.NO_MATCH;r=i;for(let c=1,u=t.length;c<u;c++){const f=t[c];if(r=o(f,e,r),!(r>-1))return He.NO_MATCH}const l=r-i;return s(l)}function Af(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=gI(e)),e}function bI(e,t){let n=t;typeof t=="object"&&(n=t.accessor);const r=n(e);return r==null?[]:Array.isArray(r)?r:[String(r)]}function wI(e,t){const n=[];for(let r=0,o=t.length;r<o;r++){const s=t[r],i=CI(s),l=bI(e,s);for(let c=0,u=l.length;c<u;c++)n.push({itemValue:l[c],attributes:i})}return n}const Mf={maxRanking:1/0,minRanking:-1/0};function CI(e){return typeof e=="function"?Mf:{...Mf,...e}}const SI=(e,t,n,r)=>{const o=vI(e.getValue(t),n);return r({itemRank:o}),o.passed};function RI({title:e,value:t,className:n}){return a.jsxs("div",{className:S("flex flex-col items-start gap-1",n),children:[a.jsx("div",{className:"text-muted-foreground text-xs",children:e}),a.jsx("div",{className:"text-sm",children:t})]})}function jI({headers:e}){return[...Array(12).keys()].map(t=>a.jsx(xs,{children:e.map(n=>a.jsx(Rc,{className:"h-12 animate-pulse",children:a.jsx("div",{})},n))},t))}function EI({className:e}){return a.jsx("div",{className:e,children:[...Array(12).keys()].map(t=>a.jsx(Xe,{className:"h-40 animate-pulse",variant:"border"},t))})}function _I({columns:e,data:t,isLoading:n,slot:r,enableExpand:o,enableSearch:s,renderSubComponent:i,initialSorting:l=[],initialColumnVisibility:c,grid:u}){const[f,d]=_.useState(""),[m,h]=_.useState(l),[v,g]=_.useState({}),[y,x]=_.useState({}),[b,w]=_.useState(c??{}),C=fI({data:t,columns:e,filterFns:{fuzzy:SI},state:{expanded:y,rowSelection:v,sorting:m,globalFilter:f,columnVisibility:b},onColumnVisibilityChange:w,onRowSelectionChange:g,onSortingChange:h,onGlobalFilterChange:d,onExpandedChange:x,globalFilterFn:"fuzzy",getRowCanExpand:o?()=>!0:void 0,getCoreRowModel:tI(),getFilteredRowModel:aI(),getSortedRowModel:lI(),getExpandedRowModel:nI()}),R=_.useMemo(()=>C.getHeaderGroups().map(T=>T.headers).flat(),[C]);return a.jsxs("div",{className:"space-y-3",children:[r||s?a.jsxs("div",{className:"flex items-center gap-1",children:[r,a.jsx("span",{className:"grow"}),s&&a.jsx(su,{id:"search-bar",value:f??"",onChange:T=>d(String(T)),placeholder:"Search columns ..."})]}):null,C.getRowModel().rows?.length?u?.displayAsGrid?n?a.jsx(EI,{className:S("grid gap-1","grid-cols-1 md:grid-cols-2 xl:grid-cols-3",u.className)}):a.jsx("div",{className:S("grid gap-1","grid-cols-1 md:grid-cols-2 xl:grid-cols-3",u.className),children:C.getRowModel().rows.map(T=>a.jsx(_.Fragment,{children:a.jsxs(Xe,{"data-state":T.getIsSelected()&&"selected",variant:"border",children:[a.jsxs(jp,{className:"flex items-center gap-2",children:[a.jsx(Ep,{className:"line-clamp-1 grow text-base",children:T.getVisibleCells().filter(E=>E.column.id===u.headerSlot)?.map(E=>a.jsx(_.Fragment,{children:Bn(E.column.columnDef.cell,E.getContext())},E.id))}),T.getVisibleCells().filter(E=>E.column.id===u?.rightSlot)?.map(E=>a.jsx(_.Fragment,{children:Bn(E.column.columnDef.cell,E.getContext())},E.id))]}),a.jsx(Rl,{className:"flew-wrap flex gap-3",children:T.getVisibleCells().filter(E=>E.column.id!==u.headerSlot&&E.column.id!==u.rightSlot&&!u.excludeColumns?.includes(E.column.id)).map(E=>a.jsx(RI,{title:Bn(E.column.columnDef.header,R.find(j=>j.id===E.column.id)?.getContext()),value:Bn(E.column.columnDef.cell,E.getContext())},E.id))}),T.getIsExpanded()&&i({row:T})]})},T.id))}):a.jsxs(Ev,{children:[a.jsx(_v,{children:a.jsx(xs,{children:R.map(T=>a.jsx(Av,{children:a.jsx(pI,{header:T})},T.id))})}),a.jsx(Tv,{children:n?a.jsx(jI,{headers:R.map(T=>T.id)}):C.getRowModel().rows.map(T=>a.jsxs(_.Fragment,{children:[a.jsx(xs,{"data-state":T.getIsSelected()&&"selected",children:T.getVisibleCells().map(E=>a.jsx(Rc,{children:Bn(E.column.columnDef.cell,E.getContext())},E.id))}),T.getIsExpanded()&&a.jsx("tr",{children:a.jsx("td",{colSpan:T.getVisibleCells().length,children:i({row:T})})})]},T.id))})]}):a.jsx("div",{className:"bg-neutral-alpha-2 m-12 h-48 rounded-lg shadow",children:"No results available."})]})}function TI({row:e}){return e.getCanExpand()?a.jsx("button",{onClick:e.getToggleExpandedHandler(),className:"flex cursor-pointer items-center justify-center",children:e.getIsExpanded()?a.jsx(pt,{className:"text-foreground size-3.5"}):a.jsx(jl,{className:"text-muted-foreground size-3.5"})}):void 0}function AI({children:e,sidebarSlot:t,sidebarFooter:n,topSlot:r,items:o,linkComponent:s}){return a.jsxs(py,{children:[a.jsx(Yy,{items:o,sidebarFooter:n,sidebarSlot:t,linkComponent:s}),a.jsx(qy,{topSlot:r,children:e})]})}function Yy({items:e,sidebarSlot:t,sidebarFooter:n,linkComponent:r="a"}){return a.jsxs(my,{children:[a.jsx(gy,{children:a.jsxs("div",{className:"border-gradient-white border-opacity-20 relative h-[72px] w-full rounded-full shadow",children:[a.jsx(zg,{className:"absolute -top-2 -left-2 aspect-square h-[86px]"}),a.jsxs("div",{className:"text-primary mt-2 -space-y-1.5 pl-20",children:[a.jsx("div",{className:"text-3xl leading-tight font-bold",children:"Turtle"}),a.jsx("div",{className:"pl-1 text-sm font-medium",children:"Partner Portal"})]})]})}),a.jsxs(xy,{children:[a.jsx(il,{children:a.jsx(yy,{children:a.jsx(by,{children:e.map(o=>o?.children?.length?a.jsx(Ay,{className:"group/collapsible",children:a.jsxs(al,{children:[a.jsx(My,{asChild:!0,children:a.jsxs(ll,{children:[o.icon&&a.jsx(o.icon,{}),a.jsx("span",{className:"grow",children:o.title}),a.jsx(jl,{className:"transition-all group-data-[state=open]/collapsible:rotate-90"})]})}),a.jsx(Py,{children:a.jsx(Cy,{children:o.children.map(s=>a.jsx(Sy,{children:a.jsx(Ry,{asChild:!0,isActive:s.isActive,children:a.jsxs(r,{href:s.url,children:[s.icon&&a.jsx(s.icon,{}),a.jsx("span",{className:"grow",children:s.title}),a.jsx("div",{className:"relative size-[18px] shrink-0 group-data-[active=false]/menu-sub-button:hidden",children:a.jsx(Jn,{className:"text-primary absolute top-[-15px] left-[-15px] size-12"})})]})})},s.title))})})]})}):a.jsx(al,{children:a.jsx(ll,{asChild:!0,isActive:o.isActive,children:a.jsxs(r,{href:o.url,children:[o.icon&&a.jsx(o.icon,{}),a.jsx("span",{className:"grow",children:o.title}),a.jsx("div",{className:"relative size-[18px] shrink-0 group-data-[active=false]/menu-button:hidden",children:a.jsx(Jn,{className:"text-primary absolute top-[-15px] left-[-15px] size-12"})})]})})},o.title))})})}),a.jsx("span",{className:"grow"}),a.jsx(il,{children:t})]}),a.jsx(vy,{children:n})]})}function qy({children:e,topSlot:t}){const{state:n,isMobile:r}=wr();return a.jsxs("div",{className:S("fixed inset-0 flex h-svh flex-col items-stretch gap-1 py-2 pr-2",n==="collapsed"||r?"pl-2":"left-64"),children:[a.jsxs("div",{className:"flex gap-1",children:[a.jsx(hy,{className:"bg-background border-border !rounded-sm"}),t]}),a.jsx("main",{className:S("bg-background border-border max-h-[96svh] grow overflow-y-auto rounded-lg border p-6"),children:e})]})}function MI({icon:e,title:t,description:n,action:r}){return a.jsxs("div",{className:"flex items-center gap-3",children:[a.jsx("div",{children:e}),a.jsxs("div",{className:"grow",children:[a.jsx(j0,{children:t}),a.jsx(E0,{children:n})]}),r]})}function PI({trigger:e,content:t,className:n,side:r,asChild:o}){const{isMobile:s}=dy();return a.jsx("div",{className:n,children:s?a.jsxs(ii,{children:[a.jsx(ai,{className:"flex items-center justify-center",asChild:o,children:e}),a.jsx(li,{side:r,children:t})]}):a.jsxs(no,{children:[a.jsx(ro,{className:"flex items-center justify-center",asChild:o,children:e}),a.jsx(Vl,{children:a.jsx(oo,{side:r,children:t})})]})})}const iu=({filters:e,activeFilters:t,onFiltersChange:n,variant:r="badge",multipleFilters:o=!0,showSearch:s=!0,searchValue:i="",onSearchChange:l,searchPlaceholder:c="Search tokens...",searchDebounceDelay:u=300})=>{const f=_.useCallback(d=>{if(r==="badge"&&o){const m=t.includes(d)?t.filter(h=>h!==d):[...t,d];n(m)}else{const m=t.includes(d)&&t.length===1?[]:[d];n(m)}},[t,n,r,o]);return a.jsxs("div",{className:"space-y-3",children:[s&&l&&a.jsx(su,{value:i,onChange:l,placeholder:c,debounce:u}),e.length>0&&a.jsx(a.Fragment,{children:r==="badge"?a.jsx("div",{className:"flex flex-wrap gap-2 px-2",children:e.map(d=>a.jsxs(Wr,{variant:t.includes(d.id)?"default":"muted",className:"bg-muted cursor-pointer rounded-full",onClick:()=>f(d.id),children:[d.icon&&a.jsx("span",{className:"mr-1",children:d.icon}),d.label]},d.id))}):a.jsx(Tx,{variant:"segment",className:"w-full",value:t[0],onChange:d=>f(d),items:e.map(d=>({value:d.id,label:d.label}))})})]})};function NI({assets:e,searchQuery:t,activeFilterIds:n,filters:r}){return _.useMemo(()=>{let o=e;if(t){const s=t.toLowerCase();o=o.filter(i=>i.symbol.toLowerCase().includes(s)||i.name.toLowerCase().includes(s)||i.address?.toLowerCase().includes(s))}if(n.length>0){const s=r.filter(i=>n.includes(i.id)).map(i=>i.filterFn);o=o.filter(i=>s.every(l=>l(i)))}return o},[e,t,n,r])}const II={1:"https://storage.googleapis.com/turtle-assets/tokens/eth.png",747474:"https://storage.googleapis.com/turtle-assets/partners/polygon/katana.svg"};function kI({assets:e,groupByChain:t}){return _.useMemo(()=>{const n=[...e].sort((s,i)=>{const l=parseFloat(s.balanceUSD.replace(/[$,]/g,"")||"0");return parseFloat(i.balanceUSD.replace(/[$,]/g,"")||"0")-l});if(!t)return[{id:"all-assets",items:n}];const r=n.reduce((s,i)=>(s[i.chainId]||(s[i.chainId]={id:i.chainId,title:i.chainName,icon:II[Number(i.chainId)],items:[]}),s[i.chainId].items.push(i),s),{});console.log("chainGroups",r);const o=Object.values(r);return o.sort((s,i)=>{const l=s.items.length>0?parseFloat(s.items[0].balanceUSD.replace(/[$,]/g,"")||"0"):0,c=i.items.length>0?parseFloat(i.items[0].balanceUSD.replace(/[$,]/g,"")||"0"):0;if(l===c){const u=s.items.filter(d=>parseFloat(d.balance)>0).length;return i.items.filter(d=>parseFloat(d.balance)>0).length-u}return c-l}),o},[e,t])}const DI=[{id:"all",label:"All",filterFn:e=>parseFloat(e.balance)>0},{id:"stablecoins",label:"Stables",filterFn:e=>["USDC","USDT","DAI","USD"].includes(e.symbol.toUpperCase())||["USDC","USDT","DAI","USD"].includes(e.name.toUpperCase())},{id:"eth",label:"ETH",filterFn:e=>["ETH"].includes(e.symbol.toUpperCase())||["ETH"].includes(e.name.toUpperCase())},{id:"btc",label:"BTC",filterFn:e=>["BTC"].includes(e.symbol.toUpperCase())||["BTC"].includes(e.name.toUpperCase())}],OI=({assets:e,onAssetClick:t,groupByChain:n=!0,showChainIcon:r=!1,filters:o=DI,filterVariant:s="badge",multipleFilters:i=!1,showSearch:l=!0,searchPlaceholder:c="Search tokens...",searchDebounceDelay:u=300,className:f,itemClassName:d,emptyState:m})=>{const[h,v]=_.useState(""),[g,y]=_.useState(["all"]),x=NI({assets:e,searchQuery:h,activeFilterIds:g,filters:o}),b=kI({assets:x,groupByChain:n}),w=C=>a.jsx(Ly,{icon:r&&C.chainIcon?a.jsxs("div",{className:"relative",children:[C.icon,a.jsx("div",{className:"bg-background border-border absolute -right-1 -bottom-1 flex h-4 w-4 items-center justify-center rounded-full border",children:C.chainIcon})]}):C.icon,symbol:C.symbol,name:C.name,balance:C.balance,balanceUSD:C.balanceUSD,onClick:()=>t?.(C),className:d});return a.jsxs("div",{className:S("flex h-full flex-col",f),children:[a.jsx("div",{className:"mb-8 flex-shrink-0",children:a.jsx(iu,{filters:o.map(({filterFn:C,...R})=>R),activeFilters:g,onFiltersChange:y,variant:s,multipleFilters:i,showSearch:l,searchValue:h,onSearchChange:v,searchPlaceholder:c,searchDebounceDelay:u})}),a.jsx(pi,{className:"flex-1",children:a.jsx("div",{className:"pb-4",children:a.jsx(eu,{groups:b,renderItem:w,getItemKey:C=>C.id,showGroupHeaders:n,emptyState:m||a.jsx("div",{className:"text-muted-foreground py-8 text-center",children:h||g.length>0?"No assets match your filters":"No assets available"})})})})]})},xo=p.forwardRef(({className:e,onSelect:t,selected:n=!1,children:r,...o},s)=>a.jsx(Xe,{ref:s,variant:"border",className:S("bg-background w-full cursor-pointer p-4 transition-all duration-200 hover:shadow-md",n&&"ring-primary border-text-foreground/60 ring-2 ring-offset-2",e),onClick:t,...o,children:a.jsx("div",{className:"flex flex-col gap-2",children:r})}));xo.displayName="WidgetItem";const yo=p.forwardRef(({className:e,children:t,...n},r)=>a.jsx("div",{ref:r,className:S("flex items-start justify-between gap-4",e),...n,children:t}));yo.displayName="WidgetItemTop";const bo=p.forwardRef(({className:e,children:t,...n},r)=>a.jsx("div",{ref:r,className:S("flex items-end justify-between gap-4",e),...n,children:t}));bo.displayName="WidgetItemBottom";const Jt=p.forwardRef(({className:e,children:t,...n},r)=>a.jsx("div",{ref:r,className:S("flex min-w-0 flex-1 flex-col items-start justify-start gap-1",e),...n,children:t}));Jt.displayName="WidgetItemLeft";const en=p.forwardRef(({className:e,children:t,...n},r)=>a.jsx("div",{ref:r,className:S("flex flex-col items-end justify-between gap-1",e),...n,children:t}));en.displayName="WidgetItemRight";const wo=p.forwardRef(({className:e,stats:t,separator:n=" | ",...r},o)=>{const s=t.filter(i=>i.value);return s.length===0?null:a.jsx("div",{ref:o,className:S("text-muted-foreground flex gap-2 text-xs",e),...r,children:s.map((i,l)=>a.jsxs(p.Fragment,{children:[l>0&&a.jsx("span",{children:n}),a.jsxs("span",{className:"flex items-center justify-center gap-1",children:[a.jsxs("span",{children:[i.label,": "]}),i.icon?a.jsxs("span",{className:"flex gap-1",children:[i.icon," ",i.value]}):a.jsx("span",{children:i.value})]})]},i.label))})});wo.displayName="WidgetItemStats";const au=p.forwardRef(({value:e,onSelect:t,selected:n=!1,...r},o)=>{const{icon:s,name:i,tvl:l,apr:c,incentives:u,chain:f,turtleBoost:d}=e,m=a.jsx("div",{className:"bg-primary/20 flex h-6 w-6 items-center justify-center rounded-full",children:a.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M12 2L13.09 8.26L20 7L18.74 13.09L22 14L16.74 19.26L17 21L10.91 19.74L10 22L8.09 15.74L2 17L3.26 10.91L0 10L5.26 4.74L5 3L11.09 4.26L12 2Z"})})}),h=p.useMemo(()=>d?[{label:"TVL",value:l||""},{label:"Turtle Boost",value:d,icon:a.jsx(Mp,{size:12})}]:[{label:"TVL",value:l||""}],[]);return a.jsxs(xo,{ref:o,onSelect:t,selected:n,...r,children:[a.jsxs(yo,{children:[a.jsx(Jt,{children:a.jsx(ot,{icon:s||m,textSize:"base",iconSize:"lg",children:i})}),a.jsx(en,{children:c&&a.jsx("span",{className:"text-md text-foreground font-semibold",children:c})})]}),a.jsxs(bo,{children:[a.jsxs(Jt,{children:[f&&a.jsx(Sn,{items:[f],label:"Chains",size:"sm"}),a.jsx(wo,{stats:h})]}),a.jsx(en,{children:a.jsx("div",{className:"flex flex-col items-end gap-1",children:u&&a.jsx(Sn,{items:u,label:"Rewards",size:"sm"})})})]})]})});au.displayName="OpportunityItem";const Xy=p.forwardRef(({value:e,onSelect:t,selected:n=!1,...r},o)=>{const{icon:s,name:i,tvl:l,participants:c,aprRange:u,rewards:f,chains:d}=e,m=a.jsx("div",{className:"bg-primary/20 flex h-6 w-6 items-center justify-center rounded-full",children:a.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.41 0-8-3.59-8-8s3.59-8 8-8 8 3.59 8 8-3.59 8-8 8zm4.59-12.42L10 14.17l-2.59-2.58L6 13l4 4 8-8z"})})}),h=[{label:"TVL",value:l},{label:"Participants",value:c||""}];return a.jsxs(xo,{ref:o,onSelect:t,selected:n,...r,children:[a.jsxs(yo,{children:[a.jsx(Jt,{children:a.jsx(ot,{icon:s||m,textSize:"base",iconSize:"lg",children:i})}),a.jsx(en,{children:a.jsx("span",{className:"text-md text-foreground font-semibold",children:u||"N/A"})})]}),a.jsxs(bo,{children:[a.jsxs(Jt,{children:[d&&a.jsx(Sn,{items:d,label:"Chains",size:"sm"}),a.jsx(wo,{stats:h})]}),a.jsx(en,{className:"flex flex-col items-end gap-1",children:f&&a.jsx(Sn,{items:f,label:"Rewards",size:"sm"})})]})]})});Xy.displayName="CampaignItem";const Zy=p.forwardRef(({value:e,onSelect:t,selected:n=!1,...r},o)=>{const{icon:s,name:i,chains:l,tvl:c,turtleBoost:u,category:f}=e,d=a.jsx("div",{className:"bg-primary/20 flex h-6 w-6 items-center justify-center rounded-full",children:a.jsx("svg",{className:"h-4 w-4",viewBox:"0 0 24 24",fill:"currentColor",children:a.jsx("path",{d:"M21.41 11.58l-9-9C12.05 2.22 11.55 2 11 2H4c-1.1 0-2 .9-2 2v7c0 .55.22 1.05.59 1.42l9 9c.36.36.86.58 1.41.58s1.05-.22 1.41-.59l7-7c.37-.36.59-.86.59-1.41s-.23-1.06-.59-1.42zM5.5 7C4.67 7 4 6.33 4 5.5S4.67 4 5.5 4 7 4.67 7 5.5 6.33 7 5.5 7z"})})}),m=p.useMemo(()=>[{label:"TVL",value:c},{label:"Turtle Boost",value:u,icon:a.jsx(Mp,{size:12})}],[c,u]);return a.jsxs(xo,{ref:o,onSelect:t,selected:n,...r,children:[a.jsxs(yo,{children:[a.jsx(Jt,{children:a.jsx(ot,{icon:s||d,textSize:"base",iconSize:"lg",children:i})}),a.jsx(en,{children:a.jsx("span",{className:"text-md text-foreground font-semibold",children:u})})]}),a.jsxs(bo,{children:[a.jsx(Jt,{children:a.jsx(wo,{stats:m})}),a.jsx(en,{children:l&&a.jsx(Sn,{items:l,label:"Available on",size:"sm"})})]})]})});Zy.displayName="DealItem";const Gt=(e,t,n)=>{const r=document.createElement(e),[o,s]=Array.isArray(t)?[void 0,t]:[t,n];return o&&Object.assign(r,o),s?.forEach(i=>r.appendChild(i)),r},LI=(e,t)=>{var n;return t==="left"?e.offsetLeft:(((n=e.offsetParent instanceof HTMLElement?e.offsetParent:null)==null?void 0:n.offsetWidth)??0)-e.offsetWidth-e.offsetLeft},FI=e=>e.offsetWidth>0&&e.offsetHeight>0,VI=(e,t)=>{!customElements.get(e)&&customElements.define(e,t)};function $I(e,t,{reverse:n=!1}={}){const r=e.length;for(let o=n?r-1:0;n?o>=0:o<r;n?o--:o++)t(e[o],o)}function BI(e,t,n,r){const o=t.formatToParts(e);n&&o.unshift({type:"prefix",value:n}),r&&o.push({type:"suffix",value:r});const s=[],i=[],l=[],c=[],u={},f=g=>`${g}:${u[g]=(u[g]??-1)+1}`;let d="",m=!1,h=!1;for(const g of o){d+=g.value;const y=g.type==="minusSign"||g.type==="plusSign"?"sign":g.type;y==="integer"?(m=!0,i.push(...g.value.split("").map(x=>({type:y,value:parseInt(x)})))):y==="group"?i.push({type:y,value:g.value}):y==="decimal"?(h=!0,l.push({type:y,value:g.value,key:f(y)})):y==="fraction"?l.push(...g.value.split("").map(x=>({type:y,value:parseInt(x),key:f(y),pos:-1-u[y]}))):(m||h?c:s).push({type:y,value:g.value,key:f(y)})}const v=[];for(let g=i.length-1;g>=0;g--){const y=i[g];v.unshift(y.type==="integer"?{...y,key:f(y.type),pos:u[y.type]}:{...y,key:f(y.type)})}return{pre:s,integer:v,fraction:l,post:c,valueAsString:d,value:typeof e=="string"?parseFloat(e):e}}const zI=String.raw,HI=(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0})(),GI=typeof CSS<"u"&&CSS.supports&&CSS.supports("line-height","mod(1,1)"),Pf=typeof matchMedia<"u"?matchMedia("(prefers-reduced-motion: reduce)"):null,Rs="--_number-flow-d-opacity",lu="--_number-flow-d-width",js="--_number-flow-dx",cu="--_number-flow-d",UI=(()=>{try{return CSS.registerProperty({name:Rs,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:js,syntax:"<length>",inherits:!0,initialValue:"0px"}),CSS.registerProperty({name:lu,syntax:"<number>",inherits:!1,initialValue:"0"}),CSS.registerProperty({name:cu,syntax:"<number>",inherits:!0,initialValue:"0"}),!0}catch{return!1}})(),WI="var(--number-flow-char-height, 1em)",Bt="var(--number-flow-mask-height, 0.25em)",Nf=`calc(${Bt} / 2)`,ml="var(--number-flow-mask-width, 0.5em)",pn=`calc(${ml} / var(--scale-x))`,Ho="#000 0, transparent 71%",If=zI`:host{display:inline-block;direction:ltr;white-space:nowrap;isolation:isolate;line-height:${WI} !important}.number,.number__inner{display:inline-block;transform-origin:left top}:host([data-will-change]) :is(.number,.number__inner,.section,.digit,.digit__num,.symbol){will-change:transform}.number{--scale-x:calc(1 + var(${lu}) / var(--width));transform:translateX(var(${js})) scaleX(var(--scale-x));margin:0 calc(-1 * ${ml});position:relative;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 ${pn},#000 calc(100% - ${pn}),transparent ),linear-gradient(to bottom,transparent 0,#000 ${Bt},#000 calc(100% - ${Bt}),transparent 100% ),radial-gradient(at bottom right,${Ho}),radial-gradient(at bottom left,${Ho}),radial-gradient(at top left,${Ho}),radial-gradient(at top right,${Ho});-webkit-mask-size:100% calc(100% - ${Bt} * 2),calc(100% - ${pn} * 2) 100%,${pn} ${Bt},${pn} ${Bt},${pn} ${Bt},${pn} ${Bt};-webkit-mask-position:center,center,top left,top right,bottom right,bottom left;-webkit-mask-repeat:no-repeat}.number__inner{padding:${Nf} ${ml};transform:scaleX(calc(1 / var(--scale-x))) translateX(calc(-1 * var(${js})))}:host > :not(.number){z-index:5}.section,.symbol{display:inline-block;position:relative;isolation:isolate}.section::after{content:'\200b';display:inline-block}.section--justify-left{transform-origin:center left}.section--justify-right{transform-origin:center right}.section > [inert],.symbol > [inert]{margin:0 !important;position:absolute !important;z-index:-1}.digit{display:inline-block;position:relative;--c:var(--current) + var(${cu})}.digit__num,.number .section::after{padding:${Nf} 0}.digit__num{display:inline-block;--offset-raw:mod(var(--length) + var(--n) - mod(var(--c),var(--length)),var(--length));--offset:calc( var(--offset-raw) - var(--length) * round(down,var(--offset-raw) / (var(--length) / 2),1) );--y:clamp(-100%,var(--offset) * 100%,100%);transform:translateY(var(--y))}.digit__num[inert]{position:absolute;top:0;left:50%;transform:translateX(-50%) translateY(var(--y))}.digit:not(.is-spinning) .digit__num[inert]{display:none}.symbol__value{display:inline-block;mix-blend-mode:plus-lighter;white-space:pre}.section--justify-left .symbol > [inert]{left:0}.section--justify-right .symbol > [inert]{right:0}.animate-presence{opacity:calc(1 + var(${Rs}))}`,KI=HTMLElement,YI=GI&&HI&&UI;let Go;class Qy extends KI{constructor(){super(),this.created=!1,this.batched=!1;const{animated:t,...n}=this.constructor.defaultProps;this._animated=this.computedAnimated=t,Object.assign(this,n)}get animated(){return this._animated}set animated(t){var n;this.animated!==t&&(this._animated=t,(n=this.shadowRoot)==null||n.getAnimations().forEach(r=>r.finish()))}set data(t){var n;if(t==null)return;const{pre:r,integer:o,fraction:s,post:i,value:l}=t;if(this.created){const c=this._data;this._data=t,this.computedTrend=typeof this.trend=="function"?this.trend(c.value,l):this.trend,this.computedAnimated=YI&&this._animated&&(!this.respectMotionPreference||!(Pf!=null&&Pf.matches))&&FI(this),(n=this.plugins)==null||n.forEach(u=>{var f;return(f=u.onUpdate)==null?void 0:f.call(u,t,c,this)}),this.batched||this.willUpdate(),this._pre.update(r),this._num.update({integer:o,fraction:s}),this._post.update(i),this.batched||this.didUpdate()}else{this._data=t,this.attachShadow({mode:"open"});try{this._internals??(this._internals=this.attachInternals()),this._internals.role="img"}catch{}if(typeof CSSStyleSheet<"u"&&this.shadowRoot.adoptedStyleSheets)Go||(Go=new CSSStyleSheet,Go.replaceSync(If)),this.shadowRoot.adoptedStyleSheets=[Go];else{const c=document.createElement("style");c.textContent=If,this.shadowRoot.appendChild(c)}this._pre=new Df(this,r,{justify:"right",part:"left"}),this.shadowRoot.appendChild(this._pre.el),this._num=new qI(this,o,s),this.shadowRoot.appendChild(this._num.el),this._post=new Df(this,i,{justify:"left",part:"right"}),this.shadowRoot.appendChild(this._post.el),this.created=!0}try{this._internals.ariaLabel=t.valueAsString}catch{}}willUpdate(){this._pre.willUpdate(),this._num.willUpdate(),this._post.willUpdate()}didUpdate(){if(!this.computedAnimated)return;this._abortAnimationsFinish?this._abortAnimationsFinish.abort():this.dispatchEvent(new Event("animationsstart")),this._pre.didUpdate(),this._num.didUpdate(),this._post.didUpdate();const t=new AbortController;Promise.all(this.shadowRoot.getAnimations().map(n=>n.finished)).then(()=>{t.signal.aborted||(this.dispatchEvent(new Event("animationsfinish")),this._abortAnimationsFinish=void 0)}),this._abortAnimationsFinish=t}}Qy.defaultProps={transformTiming:{duration:900,easing:"linear(0,.005,.019,.039,.066,.096,.129,.165,.202,.24,.278,.316,.354,.39,.426,.461,.494,.526,.557,.586,.614,.64,.665,.689,.711,.731,.751,.769,.786,.802,.817,.831,.844,.856,.867,.877,.887,.896,.904,.912,.919,.925,.931,.937,.942,.947,.951,.955,.959,.962,.965,.968,.971,.973,.976,.978,.98,.981,.983,.984,.986,.987,.988,.989,.99,.991,.992,.992,.993,.994,.994,.995,.995,.996,.996,.9963,.9967,.9969,.9972,.9975,.9977,.9979,.9981,.9982,.9984,.9985,.9987,.9988,.9989,1)"},spinTiming:void 0,opacityTiming:{duration:450,easing:"ease-out"},animated:!0,trend:(e,t)=>Math.sign(t-e),respectMotionPreference:!0,plugins:void 0,digits:void 0};class qI{constructor(t,n,r,{className:o,...s}={}){this.flow=t,this._integer=new kf(t,n,{justify:"right",part:"integer"}),this._fraction=new kf(t,r,{justify:"left",part:"fraction"}),this._inner=Gt("span",{className:"number__inner"},[this._integer.el,this._fraction.el]),this.el=Gt("span",{...s,part:"number",className:`number ${o??""}`},[this._inner])}willUpdate(){this._prevWidth=this.el.offsetWidth,this._prevLeft=this.el.getBoundingClientRect().left,this._integer.willUpdate(),this._fraction.willUpdate()}update({integer:t,fraction:n}){this._integer.update(t),this._fraction.update(n)}didUpdate(){const t=this.el.getBoundingClientRect();this._integer.didUpdate(),this._fraction.didUpdate();const n=this._prevLeft-t.left,r=this.el.offsetWidth,o=this._prevWidth-r;this.el.style.setProperty("--width",String(r)),this.el.animate({[js]:[`${n}px`,"0px"],[lu]:[o,0]},{...this.flow.transformTiming,composite:"accumulate"})}}class Jy{constructor(t,n,{justify:r,className:o,...s},i){this.flow=t,this.children=new Map,this.onCharRemove=c=>()=>{this.children.delete(c)},this.justify=r;const l=n.map(c=>this.addChar(c).el);this.el=Gt("span",{...s,className:`section section--justify-${r} ${o??""}`},i?i(l):l)}addChar(t,{startDigitsAtZero:n=!1,...r}={}){const o=t.type==="integer"||t.type==="fraction"?new tb(this,t.type,n?0:t.value,t.pos,{...r,onRemove:this.onCharRemove(t.key)}):new XI(this,t.type,t.value,{...r,onRemove:this.onCharRemove(t.key)});return this.children.set(t.key,o),o}unpop(t){t.el.removeAttribute("inert"),t.el.style.top="",t.el.style[this.justify]=""}pop(t){t.forEach(n=>{n.el.style.top=`${n.el.offsetTop}px`,n.el.style[this.justify]=`${LI(n.el,this.justify)}px`}),t.forEach(n=>{n.el.setAttribute("inert",""),n.present=!1})}addNewAndUpdateExisting(t){const n=new Map,r=new Map,o=this.justify==="left",s=o?"prepend":"append";if($I(t,i=>{let l;this.children.has(i.key)?(l=this.children.get(i.key),r.set(i,l),this.unpop(l),l.present=!0):(l=this.addChar(i,{startDigitsAtZero:!0,animateIn:!0}),n.set(i,l)),this.el[s](l.el)},{reverse:o}),this.flow.computedAnimated){const i=this.el.getBoundingClientRect();n.forEach(l=>{l.willUpdate(i)})}n.forEach((i,l)=>{i.update(l.value)}),r.forEach((i,l)=>{i.update(l.value)})}willUpdate(){const t=this.el.getBoundingClientRect();this._prevOffset=t[this.justify],this.children.forEach(n=>n.willUpdate(t))}didUpdate(){const t=this.el.getBoundingClientRect();this.children.forEach(o=>o.didUpdate(t));const n=t[this.justify],r=this._prevOffset-n;r&&this.children.size&&this.el.animate({transform:[`translateX(${r}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}class kf extends Jy{update(t){const n=new Map;this.children.forEach((r,o)=>{t.find(s=>s.key===o)||n.set(o,r),this.unpop(r)}),this.addNewAndUpdateExisting(t),n.forEach(r=>{r instanceof tb&&r.update(0)}),this.pop(n)}}class Df extends Jy{update(t){const n=new Map;this.children.forEach((r,o)=>{t.find(s=>s.key===o)||n.set(o,r)}),this.pop(n),this.addNewAndUpdateExisting(t)}}class hl{constructor(t,n,{onRemove:r,animateIn:o=!1}={}){this.flow=t,this.el=n,this._present=!0,this._remove=()=>{var s;this.el.remove(),(s=this._onRemove)==null||s.call(this)},this.el.classList.add("animate-presence"),this.flow.computedAnimated&&o&&this.el.animate({[Rs]:[-.9999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),this._onRemove=r}get present(){return this._present}set present(t){if(this._present!==t){if(this._present=t,t?this.el.removeAttribute("inert"):this.el.setAttribute("inert",""),!this.flow.computedAnimated){t||this._remove();return}this.el.style.setProperty("--_number-flow-d-opacity",t?"0":"-.999"),this.el.animate({[Rs]:t?[-.9999,0]:[.999,0]},{...this.flow.opacityTiming,composite:"accumulate"}),t?this.flow.removeEventListener("animationsfinish",this._remove):this.flow.addEventListener("animationsfinish",this._remove,{once:!0})}}}class eb extends hl{constructor(t,n,r,o){super(t.flow,r,o),this.section=t,this.value=n,this.el=r}}class tb extends eb{constructor(t,n,r,o,s){var i,l;const c=(((l=(i=t.flow.digits)==null?void 0:i[o])==null?void 0:l.max)??9)+1,u=Array.from({length:c}).map((d,m)=>{const h=Gt("span",{className:"digit__num"},[document.createTextNode(String(m))]);return m!==r&&h.setAttribute("inert",""),h.style.setProperty("--n",String(m)),h}),f=Gt("span",{part:`digit ${n}-digit`,className:"digit"},u);f.style.setProperty("--current",String(r)),f.style.setProperty("--length",String(c)),super(t,r,f,s),this.pos=o,this._onAnimationsFinish=()=>{this.el.classList.remove("is-spinning")},this._numbers=u,this.length=c}willUpdate(t){const n=this.el.getBoundingClientRect();this._prevValue=this.value;const r=n[this.section.justify]-t[this.section.justify],o=n.width/2;this._prevCenter=this.section.justify==="left"?r+o:r-o}update(t){this.el.style.setProperty("--current",String(t)),this._numbers.forEach((n,r)=>r===t?n.removeAttribute("inert"):n.setAttribute("inert","")),this.value=t}didUpdate(t){const n=this.el.getBoundingClientRect(),r=n[this.section.justify]-t[this.section.justify],o=n.width/2,s=this.section.justify==="left"?r+o:r-o,i=this._prevCenter-s;i&&this.el.animate({transform:[`translateX(${i}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"});const l=this.getDelta();l&&(this.el.classList.add("is-spinning"),this.el.animate({[cu]:[-l,0]},{...this.flow.spinTiming??this.flow.transformTiming,composite:"accumulate"}),this.flow.addEventListener("animationsfinish",this._onAnimationsFinish,{once:!0}))}getDelta(){var t;if(this.flow.plugins)for(const o of this.flow.plugins){const s=(t=o.getDelta)==null?void 0:t.call(o,this.value,this._prevValue,this);if(s!=null)return s}const n=this.value-this._prevValue,r=this.flow.computedTrend||Math.sign(n);return r<0&&this.value>this._prevValue?this.value-this.length-this._prevValue:r>0&&this.value<this._prevValue?this.length-this._prevValue+this.value:n}}class XI extends eb{constructor(t,n,r,o){const s=Gt("span",{className:"symbol__value",textContent:r});super(t,r,Gt("span",{part:`symbol ${n}`,className:"symbol"},[s]),o),this.type=n,this._children=new Map,this._onChildRemove=i=>()=>{this._children.delete(i)},this._children.set(r,new hl(this.flow,s,{onRemove:this._onChildRemove(r)}))}willUpdate(t){if(this.type==="decimal")return;const n=this.el.getBoundingClientRect();this._prevOffset=n[this.section.justify]-t[this.section.justify]}update(t){if(this.value!==t){const n=this._children.get(this.value);n&&(n.present=!1);const r=this._children.get(t);if(r)r.present=!0;else{const o=Gt("span",{className:"symbol__value",textContent:t});this.el.appendChild(o),this._children.set(t,new hl(this.flow,o,{animateIn:!0,onRemove:this._onChildRemove(t)}))}}this.value=t}didUpdate(t){if(this.type==="decimal")return;const n=this.el.getBoundingClientRect()[this.section.justify]-t[this.section.justify],r=this._prevOffset-n;r&&this.el.animate({transform:[`translateX(${r}px)`,"none"]},{...this.flow.transformTiming,composite:"accumulate"})}}const ZI=parseInt(p.version.match(/^(\d+)\./)?.[1]),uu=ZI>=19,QI=["data","digits"];class du extends Qy{attributeChangedCallback(t,n,r){this[t]=JSON.parse(r)}}du.observedAttributes=uu?[]:QI;VI("number-flow-react",du);const JI={},Of=uu?e=>e:JSON.stringify;function Lf(e){const{transformTiming:t,spinTiming:n,opacityTiming:r,animated:o,respectMotionPreference:s,trend:i,plugins:l,...c}=e;return[{transformTiming:t,spinTiming:n,opacityTiming:r,animated:o,respectMotionPreference:s,trend:i,plugins:l},c]}class ek extends p.Component{updateProperties(t){if(!this.el)return;this.el.batched=!this.props.isolate;const[n]=Lf(this.props);Object.entries(n).forEach(([r,o])=>{this.el[r]=o??du.defaultProps[r]}),t?.onAnimationsStart&&this.el.removeEventListener("animationsstart",t.onAnimationsStart),this.props.onAnimationsStart&&this.el.addEventListener("animationsstart",this.props.onAnimationsStart),t?.onAnimationsFinish&&this.el.removeEventListener("animationsfinish",t.onAnimationsFinish),this.props.onAnimationsFinish&&this.el.addEventListener("animationsfinish",this.props.onAnimationsFinish)}componentDidMount(){this.updateProperties(),uu&&this.el&&(this.el.digits=this.props.digits,this.el.data=this.props.data)}getSnapshotBeforeUpdate(t){if(this.updateProperties(t),t.data!==this.props.data){if(this.props.group)return this.props.group.willUpdate(),()=>this.props.group?.didUpdate();if(!this.props.isolate)return this.el?.willUpdate(),()=>this.el?.didUpdate()}return null}componentDidUpdate(t,n,r){r?.()}handleRef(t){this.props.innerRef&&(this.props.innerRef.current=t),this.el=t}render(){const[t,{innerRef:n,className:r,data:o,willChange:s,isolate:i,group:l,digits:c,onAnimationsStart:u,onAnimationsFinish:f,...d}]=Lf(this.props);return p.createElement("number-flow-react",{ref:this.handleRef,"data-will-change":s?"":void 0,class:r,...d,dangerouslySetInnerHTML:{__html:""},suppressHydrationWarning:!0,digits:Of(c),data:Of(o)})}constructor(t){super(t),this.handleRef=this.handleRef.bind(this)}}const aa=p.forwardRef(function({value:t,locales:n,format:r,prefix:o,suffix:s,...i},l){p.useImperativeHandle(l,()=>c.current,[]);const c=p.useRef(),u=p.useContext(tk);u?.useRegister(c);const f=p.useMemo(()=>n?JSON.stringify(n):"",[n]),d=p.useMemo(()=>r?JSON.stringify(r):"",[r]),m=p.useMemo(()=>{const h=JI[`${f}:${d}`]??=new Intl.NumberFormat(n,r);return BI(t,h,o,s)},[t,f,d,o,s]);return p.createElement(ek,{...i,group:u,data:m,innerRef:c})}),tk=p.createContext(void 0),nb=({apr:e,aprBreakdown:t,showBoostedRewards:n=!1,showBoostedRewardsDescription:r=!1})=>{const o=t.filter(s=>s.boost);return a.jsxs(am,{children:[a.jsx(lm,{asChild:!0,children:a.jsxs("span",{className:"text-accent inline-flex items-center gap-1 text-2xl font-semibold",children:[a.jsx(aa,{value:e,format:{style:"percent",minimumFractionDigits:2,maximumFractionDigits:2}}),a.jsx(Tp,{size:16,className:"text-muted-foreground cursor-pointer font-bold"})]})}),a.jsxs(cm,{children:[a.jsx("h3",{className:"text-accent text-sm",children:"Rewards"}),a.jsxs("div",{className:"flex flex-col gap-2",children:[t.filter(s=>!s.boost).map(s=>a.jsxs("div",{className:"flex justify-between",children:[a.jsx(ot,{textSize:"xs",icon:s.iconUrl,iconSize:"sm",className:"text-muted-foreground",children:s.name}),a.jsx("span",{className:"text-accent text-sm font-semibold",children:a.jsx(aa,{value:parseFloat(s.apr)/100,format:{style:"percent",minimumFractionDigits:2,maximumFractionDigits:3}})})]},s.name)),a.jsx(kt,{}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-accent text-sm",children:"Net Reward Rate"}),a.jsx("span",{className:"text-accent text-sm font-semibold",children:a.jsx(aa,{value:e,format:{style:"percent",minimumFractionDigits:3,maximumFractionDigits:3}})})]}),n&&o.length>0&&a.jsxs(a.Fragment,{children:[a.jsx(kt,{}),a.jsx("h3",{className:"text-accent text-sm",children:"Boosted Rewards"}),a.jsx("div",{className:"flex justify-between",children:a.jsx("span",{className:"text-accent text-sm font-semibold",children:o.map(s=>a.jsxs("div",{className:"flex flex-col gap-2",children:[a.jsx(ot,{textSize:"xs",icon:s.iconUrl,iconSize:"sm",className:"text-muted-foreground",children:s.description}),r&&s.description&&a.jsx("span",{className:"text-muted-foreground text-xs",children:s.description})]},s.name))})})]})]})]})]})},nk=({value:e})=>{const{depositAmount:t,apr:n,symbol:r,price:o}=e,s=_.useMemo(()=>{const i=t*n/12,l=i*o,c=t*n,u=c*o;return{monthlyReward:i.toFixed(4),monthlyRewardUsd:l.toFixed(2),yearlyReward:c.toFixed(4),yearlyRewardUsd:u.toFixed(2)}},[t,n,r,o]);return _.useEffect(()=>{},[t,n,r,o]),a.jsxs("div",{className:"space-y-1",children:[a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Monthly"}),a.jsxs("span",{className:"text-muted-foreground text-sm font-semibold",children:[s.monthlyReward," ",r," ($",s.monthlyRewardUsd,")"]})]}),a.jsxs("div",{className:"flex justify-between",children:[a.jsx("span",{className:"text-muted-foreground text-sm",children:"Yearly"}),a.jsxs("span",{className:"text-muted-foreground text-sm font-semibold",children:[s.yearlyReward," ",r," ($",s.yearlyRewardUsd,")"]})]})]})},rb=({type:e})=>a.jsxs(Wr,{variant:"muted",className:"gap-2",children:[a.jsx(Ow,{size:16})," ",e]}),ob=()=>{const e=[{icon:a.jsx(Vw,{size:16}),description:"Lorem ipsum dolor sit, amet consectetur adipisicing elit. Porro expedita amet hic beatae similique vero recusandae necessitatibus"},{icon:a.jsx(Kw,{size:16}),description:"Lend your USDT with Morpho and earn USDT rewards"},{icon:a.jsx(kw,{size:16}),description:"Rewards are automatically distributed every block and accrue to your position"}];return a.jsx("div",{className:"flex w-full flex-col gap-3",children:e.map(t=>a.jsxs("div",{className:"flex gap-3",children:[a.jsx("div",{className:"text-muted-foreground flex h-4 w-4 flex-shrink-0 items-center justify-center",children:t.icon}),a.jsx("p",{className:"text-muted-foreground flex-1 text-xs",children:t.description})]},t.description))})},sb=({iconUrl:e,name:t,onClick:n})=>a.jsxs(Xe,{variant:"border",rounded:"full",onClick:n,className:"flex cursor-pointer items-center justify-between gap-3",children:[a.jsx(ot,{icon:e,textSize:"sm",iconSize:"base",children:t}),a.jsx(pt,{className:"text-muted-foreground h-4 w-4"})]}),rk=p.forwardRef(({className:e,value:t,onOpportunityClick:n,hideDisclaimer:r,opportunitySelector:o,...s},i)=>a.jsxs("div",{className:"text-foreground space-y-2",children:[a.jsx(Xe,{variant:"shadow",ref:i,className:S("space-y-3",e),...s,children:a.jsxs("div",{className:"flex justify-between",children:[a.jsx(nb,{apr:parseFloat(t.totalApr)/100,aprBreakdown:t.aprBreakdown,showBoostedRewardsDescription:!1,showBoostedRewards:!0}),o==="new"&&a.jsx(sb,{iconUrl:t.icon,name:t.name,onClick:n}),o==="old"&&a.jsx(Jc,{icon:Qc(t.icon,t.vaultSymbol),text:t.name,onClick:n,size:"sm"})]})}),!r&&a.jsx(Xe,{ref:i,variant:"border",gradient:"white",className:S("space-y-3",e),...s,children:a.jsxs("div",{className:"flex flex-col items-center justify-between gap-3",children:[a.jsxs("div",{className:"flex w-full justify-between p-1",children:[a.jsx(rb,{type:t.type}),a.jsxs("span",{className:"text-foreground text-sm font-semibold",children:["TVL: ",t.tvlUsd]})]}),a.jsx(kt,{}),a.jsx(ob,{})]})})]}));function ok({opportunities:e,searchQuery:t,activeFilterIds:n,filters:r}){return _.useMemo(()=>{let o=e;if(t){const s=t.toLowerCase();o=o.filter(i=>i.name.toLowerCase().includes(s)||i.partner?.name.toLowerCase().includes(s)||i.chain.name.toLowerCase().includes(s))}if(n.length>0){const s=r.filter(i=>n.includes(i.id)).map(i=>i.filterFn);o=o.filter(i=>s.every(l=>l(i)))}return o},[e,t,n,r])}function sk({opportunities:e,groupBy:t}){return _.useMemo(()=>{const n=[...e].sort((s,i)=>{const l=parseFloat(s.apr?.replace("%","")||"0");return parseFloat(i.apr?.replace("%","")||"0")-l});if(t==="none")return[{id:"all-opportunities",items:n}];const r=n.reduce((s,i)=>{let l,c,u;switch(t){case"partner":l=i.partner?.name||"other",c=i.partner?.name||"Other",u=i.partner?.icon;break;case"chain":l=i.chain.name||"other",c=i.chain.name||"Other",u=i.chain.icon;break;default:l="all",c="All"}return s[l]||(s[l]={id:l,title:c,icon:u,items:[]}),s[l].items.push(i),s},{}),o=Object.values(r);return o.sort((s,i)=>{const l=s.items.length>0?parseFloat(s.items[0].apr?.replace("%","")||"0"):0;return(i.items.length>0?parseFloat(i.items[0].apr?.replace("%","")||"0"):0)-l}),o},[e,t])}const ik=[{id:"all",label:"All",filterFn:e=>!0},{id:"stablecoins",label:"Stables",filterFn:e=>e.name.includes("USD")},{id:"eth",label:"ETH",filterFn:e=>e.name.includes("ETH")},{id:"btc",label:"BTC",filterFn:e=>e.name.includes("BTC")}],ak=({opportunities:e,onOpportunityClick:t,groupBy:n="none",filters:r=ik,filterVariant:o="badge",multipleFilters:s=!0,showSearch:i=!0,searchPlaceholder:l="Search opportunities...",searchDebounceDelay:c=300,className:u,itemClassName:f,emptyState:d})=>{const[m,h]=_.useState(""),[v,g]=_.useState([]),y=ok({opportunities:e,searchQuery:m,activeFilterIds:v,filters:r}),x=sk({opportunities:y,groupBy:n}),b=w=>a.jsx(au,{value:w,onSelect:()=>t?.(w),className:f});return a.jsxs("div",{className:S("flex h-full flex-col",u),children:[a.jsx("div",{className:"mb-4 flex-shrink-0",children:a.jsx(iu,{filters:r.map(({filterFn:w,...C})=>C),activeFilters:v,onFiltersChange:g,variant:o,multipleFilters:s,showSearch:i,searchValue:m,onSearchChange:h,searchPlaceholder:l,searchDebounceDelay:c})}),a.jsx(pi,{className:"flex-1",children:a.jsx(eu,{groups:x,renderItem:b,getItemKey:w=>w.name,showGroupHeaders:n!=="none",emptyState:d||a.jsx("div",{className:"text-muted-foreground py-8 text-center",children:m||v.length>0?"No opportunities match your filters":"No opportunities available"})})})]})},lk={colors:{neonGreen:"oklch(0.86 0.16 142.5)",darkGreen:"oklch(0.24 0.16 142.5)",ninjaBlack:"oklch(0.1 0.005 120)",wiseWhite:"oklch(0.98 0 0)",wiseGray:"oklch(0.17 0.003 120)",mintCream:"oklch(0.95 0.046 109)",turtleYellow:"oklch(0.97 0.21 98.2)",turtleRed:"oklch(0.6 0.28 29)",whiteTransparent:"oklch(0.98 0 0 / 0.02)",light:{background:"oklch(1 0 0)",foreground:"oklch(0.141 0.005 285.823)",card:"oklch(1 0 0)",cardForeground:"oklch(0.141 0.005 285.823)",popover:"oklch(1 0 0)",popoverForeground:"oklch(0.141 0.005 285.823)",primary:"oklch(0.21 0.006 285.885)",primaryForeground:"oklch(0.985 0 0)",secondary:"oklch(0.967 0.001 286.375)",secondaryForeground:"oklch(0.21 0.006 285.885)",muted:"oklch(0.967 0.001 286.375)",mutedForeground:"oklch(0.552 0.016 285.938)",accent:"oklch(0.967 0.001 286.375)",accentForeground:"oklch(0.21 0.006 285.885)",destructive:"oklch(0.577 0.245 27.325)",border:"oklch(0.92 0.004 286.32)",input:"oklch(0.92 0.004 286.32)",ring:"oklch(0.705 0.015 286.067)"},dark:{background:"oklch(0.141 0.005 285.823)",foreground:"oklch(0.985 0 0)",card:"oklch(0.21 0.006 285.885)",cardForeground:"oklch(0.985 0 0)",popover:"oklch(0.21 0.006 285.885)",popoverForeground:"oklch(0.985 0 0)",primary:"oklch(0.92 0.004 286.32)",primaryForeground:"oklch(0.21 0.006 285.885)",secondary:"oklch(0.274 0.006 286.033)",secondaryForeground:"oklch(0.985 0 0)",muted:"oklch(0.274 0.006 286.033)",mutedForeground:"oklch(0.705 0.015 286.067)",accent:"oklch(0.274 0.006 286.033)",accentForeground:"oklch(0.985 0 0)",destructive:"oklch(0.704 0.191 22.216)",border:"oklch(1 0 0 / 10%)",input:"oklch(1 0 0 / 15%)",ring:"oklch(0.552 0.016 285.938)"}},spacing:{xs:"0.25rem",sm:"0.5rem",md:"0.75rem",lg:"1rem",xl:"1.5rem","2xl":"2rem","3xl":"3rem","4xl":"4rem"},radius:{none:"0",sm:"calc(0.625rem - 4px)",md:"calc(0.625rem - 2px)",lg:"0.625rem",xl:"calc(0.625rem + 4px)",full:"9999px"},fontSize:{xs:["0.75rem",{lineHeight:"1rem"}],sm:["0.875rem",{lineHeight:"1.25rem"}],base:["1rem",{lineHeight:"1.5rem"}],lg:["1.125rem",{lineHeight:"1.75rem"}],xl:["1.25rem",{lineHeight:"1.75rem"}],"2xl":["1.5rem",{lineHeight:"2rem"}],"3xl":["1.875rem",{lineHeight:"2.25rem"}]},fontWeight:{normal:"400",medium:"500",semibold:"600",bold:"700"},shadow:{xs:"0 1px 2px 0 rgb(0 0 0 / 0.05)",sm:"0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1)"}};exports.AlertDialog=l4;exports.AlertDialogAction=h4;exports.AlertDialogCancel=g4;exports.AlertDialogContent=u4;exports.AlertDialogDescription=m4;exports.AlertDialogFooter=f4;exports.AlertDialogHeader=d4;exports.AlertDialogOverlay=R0;exports.AlertDialogPortal=S0;exports.AlertDialogTitle=p4;exports.AlertDialogTrigger=c4;exports.AnimatedBackground=e_;exports.ArrowIcon=Hg;exports.AssetFilters=iu;exports.AssetList=OI;exports.AssetRow=Ly;exports.Avatar=cs;exports.AvatarFallback=us;exports.AvatarImage=Ol;exports.Badge=Wr;exports.Banner=a3;exports.BaseSelector=Jc;exports.BetaIcon=Wg;exports.Button=Wt;exports.CampaignItem=Xy;exports.Card=Xe;exports.CardContent=Rl;exports.CardDescription=aw;exports.CardFooter=lw;exports.CardHeader=jp;exports.CardTitle=Ep;exports.Checkbox=rA;exports.Chip=bl;exports.Collapsible=Ay;exports.CollapsibleContent=Py;exports.CollapsibleTrigger=My;exports.Combobox=X0;exports.Command=ui;exports.CommandDialog=yN;exports.CommandEmpty=Uc;exports.CommandGroup=Yn;exports.CommandInput=Hc;exports.CommandItem=hn;exports.CommandList=Gc;exports.CommandSeparator=Y0;exports.CommandShortcut=bN;exports.DataTable=_I;exports.DealItem=Zy;exports.Dialog=xv;exports.DialogClose=qT;exports.DialogContent=wv;exports.DialogDescription=Rv;exports.DialogFooter=XT;exports.DialogHeader=Cv;exports.DialogOverlay=bv;exports.DialogPortal=yv;exports.DialogTitle=Sv;exports.DialogTrigger=YT;exports.DotIcon=Jn;exports.DropdownMenu=CM;exports.DropdownMenuCheckboxItem=TM;exports.DropdownMenuContent=jM;exports.DropdownMenuGroup=EM;exports.DropdownMenuItem=_M;exports.DropdownMenuLabel=PM;exports.DropdownMenuPortal=SM;exports.DropdownMenuRadioGroup=AM;exports.DropdownMenuRadioItem=MM;exports.DropdownMenuSeparator=NM;exports.DropdownMenuShortcut=IM;exports.DropdownMenuSub=kM;exports.DropdownMenuSubContent=OM;exports.DropdownMenuSubTrigger=DM;exports.DropdownMenuTrigger=RM;exports.ExpandToggle=TI;exports.Field=_4;exports.FieldContent=T4;exports.FieldDescription=P4;exports.FieldError=I4;exports.FieldGroup=j4;exports.FieldLabel=A4;exports.FieldLegend=R4;exports.FieldSeparator=N4;exports.FieldSet=S4;exports.FieldTitle=M4;exports.HeadingH1=v4;exports.HeadingH2=x4;exports.HeadingH3=j0;exports.HeadingH4=y4;exports.HeadingH5=b4;exports.HeadingH6=E0;exports.HoverCard=am;exports.HoverCardContent=cm;exports.HoverCardTrigger=lm;exports.IconAnimation=wl;exports.IconList=Sn;exports.InfoCard=ns;exports.Input=yr;exports.InputGroup=$M;exports.InputGroupAddon=zM;exports.InputGroupButton=GM;exports.InputGroupInput=WM;exports.InputGroupText=UM;exports.InputGroupTextarea=KM;exports.IssueIcon=Kg;exports.Label=T0;exports.LabelWithIcon=ot;exports.ManagedTable=Jw;exports.MultiSelect=q0;exports.NavigationBar=Cl;exports.NavigationItem=Sl;exports.NavigationMenu=vP;exports.NavigationMenuContent=wP;exports.NavigationMenuIndicator=SP;exports.NavigationMenuItem=yP;exports.NavigationMenuLink=CP;exports.NavigationMenuList=xP;exports.NavigationMenuTrigger=bP;exports.NavigationMenuViewport=qx;exports.OpportunityApr=nb;exports.OpportunityDetailsV1=Qw;exports.OpportunityDisclaimer=ob;exports.OpportunityItem=au;exports.OpportunityList=ak;exports.OpportunityRateEstimator=nk;exports.OpportunitySection=rk;exports.OpportunitySelector=sb;exports.OpportunityType=rb;exports.PageHeading=MI;exports.Popover=ii;exports.PopoverAnchor=Y4;exports.PopoverContent=li;exports.PopoverTrigger=ai;exports.RouteDetails=c3;exports.ScrollArea=pi;exports.ScrollBar=uy;exports.SearchBar=su;exports.SegmentControl=Tx;exports.Select=Yg;exports.SelectContent=Xg;exports.SelectGroup=kT;exports.SelectItem=Zg;exports.SelectLabel=OT;exports.SelectScrollDownButton=Jg;exports.SelectScrollUpButton=Qg;exports.SelectSeparator=LT;exports.SelectTrigger=qg;exports.SelectValue=DT;exports.Separator=kt;exports.ShadTableCell=Rc;exports.Sidebar=my;exports.SidebarContent=xy;exports.SidebarFooter=vy;exports.SidebarGroup=il;exports.SidebarGroupAction=JN;exports.SidebarGroupContent=yy;exports.SidebarGroupLabel=QN;exports.SidebarHeader=gy;exports.SidebarInput=XN;exports.SidebarInset=qN;exports.SidebarMenu=by;exports.SidebarMenuAction=e3;exports.SidebarMenuBadge=t3;exports.SidebarMenuButton=ll;exports.SidebarMenuItem=al;exports.SidebarMenuSkeleton=n3;exports.SidebarMenuSub=Cy;exports.SidebarMenuSubButton=Ry;exports.SidebarMenuSubItem=Sy;exports.SidebarProvider=py;exports.SidebarRail=YN;exports.SidebarSeparator=ZN;exports.SidebarTrigger=hy;exports.Slider=HP;exports.SlippageSelector=Oy;exports.SwapDetails=Dy;exports.SwapInput=ky;exports.Switch=L1;exports.Table=Ev;exports.TableBody=Tv;exports.TableCaption=QT;exports.TableCell=eC;exports.TableFooter=ZT;exports.TableHead=Av;exports.TableHeader=_v;exports.TableRow=xs;exports.Tabs=h3;exports.Textarea=Ax;exports.Toaster=$b;exports.Toggle=ow;exports.ToggleGroup=sw;exports.ToggleGroupItem=iw;exports.TokenSelector=Iy;exports.Tooltip=no;exports.TooltipContent=oo;exports.TooltipProvider=$s;exports.TooltipTrigger=ro;exports.TurtleAvatar=JS;exports.TurtleContainer=qy;exports.TurtleIcon=zg;exports.TurtleSidebar=Yy;exports.TurtleSidebarLayout=AI;exports.TurtleTooltip=PI;exports.TxStatus=Ny;exports.UpdateIcon=Ug;exports.WarningIcon=Gg;exports.WidgetItem=xo;exports.WidgetItemBottom=bo;exports.WidgetItemLeft=Jt;exports.WidgetItemRight=en;exports.WidgetItemStats=wo;exports.WidgetItemTop=yo;exports.WidgetListItems=eu;exports.badgeVariants=jv;exports.buttonVariants=Zr;exports.cardVariants=Rp;exports.chipVariants=yp;exports.cn=S;exports.hoverCardContentVariants=Wo;exports.iconAnimationVariants=bp;exports.iconUrlToImg=Qc;exports.inputVariants=qa;exports.labelWithIconVariants=wp;exports.navigationBarVariants=Cp;exports.navigationItemVariants=Sp;exports.navigationMenuTriggerStyle=Yx;exports.toggleVariants=yl;exports.tokens=lk;exports.useSidebar=wr;
233
233
  //# sourceMappingURL=index.cjs.map