@turtleclub/ui 0.3.0-beta.44 → 0.3.0-beta.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.turbo/turbo-build.log +41 -41
- package/CHANGELOG.md +12 -0
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/types/components/molecules/route-details.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/components/molecules/route-details.tsx +17 -5
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,61 +1,62 @@
|
|
|
1
1
|
$ rm -rf dist && bun run build:code && bun run build:types && bun run build:css
|
|
2
2
|
$ vite build
|
|
3
|
-
[36mvite v7.1.
|
|
3
|
+
[36mvite v7.1.9 [32mbuilding for production...[36m[39m
|
|
4
4
|
transforming...
|
|
5
|
-
[
|
|
6
|
-
[
|
|
7
|
-
[
|
|
5
|
+
[33msrc/components/features/data-table.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
6
|
+
[33msrc/components/features/data-table.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/features/data-table.tsx" was ignored.[39m
|
|
7
|
+
[33msrc/components/molecules/token-selector.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
8
|
+
[33msrc/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.[39m
|
|
8
9
|
[33msrc/components/ui/toggle.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
9
10
|
[33msrc/components/ui/toggle.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/toggle.tsx" was ignored.[39m
|
|
10
|
-
[33msrc/components/ui/alert-dialog.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
11
|
-
[33msrc/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.[39m
|
|
12
11
|
[33msrc/components/ui/table.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
13
12
|
[33msrc/components/ui/table.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/table.tsx" was ignored.[39m
|
|
14
|
-
[33msrc/components/ui/select.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
15
|
-
[33msrc/components/ui/select.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/select.tsx" was ignored.[39m
|
|
16
|
-
[33msrc/components/ui/table-shadcn.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
17
|
-
[33msrc/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.[39m
|
|
18
|
-
[33msrc/components/molecules/token-selector.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
19
|
-
[33msrc/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.[39m
|
|
20
|
-
[33msrc/components/features/data-table.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
21
|
-
[33msrc/components/features/data-table.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/features/data-table.tsx" was ignored.[39m
|
|
22
13
|
[33msrc/components/ui/dropdown.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
23
14
|
[33msrc/components/ui/dropdown.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/dropdown.tsx" was ignored.[39m
|
|
24
|
-
[33msrc/components/ui/slider.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
25
|
-
[33msrc/components/ui/slider.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/slider.tsx" was ignored.[39m
|
|
26
15
|
[33msrc/components/ui/checkbox.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
27
16
|
[33msrc/components/ui/checkbox.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/checkbox.tsx" was ignored.[39m
|
|
28
|
-
[
|
|
29
|
-
[
|
|
30
|
-
[
|
|
17
|
+
[33msrc/components/ui/alert-dialog.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
18
|
+
[33msrc/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.[39m
|
|
19
|
+
[33msrc/components/ui/select.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
20
|
+
[33msrc/components/ui/select.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/select.tsx" was ignored.[39m
|
|
21
|
+
[33msrc/components/ui/slider.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
22
|
+
[33msrc/components/ui/slider.tsx (1:0): Module level directives cause errors when bundled, "use client" in "src/components/ui/slider.tsx" was ignored.[39m
|
|
23
|
+
[33msrc/components/ui/table-shadcn.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
24
|
+
[33msrc/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.[39m
|
|
25
|
+
[33m../../node_modules/@radix-ui/react-switch/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-switch/dist/index.mjs" was ignored.[39m
|
|
31
26
|
[33m../../node_modules/next-themes/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/next-themes/dist/index.mjs" was ignored.[39m
|
|
32
|
-
[33m../../node_modules/@radix-ui/react-
|
|
27
|
+
[33m../../node_modules/@radix-ui/react-toggle-group/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-toggle-group/dist/index.mjs" was ignored.[39m
|
|
28
|
+
[33m../../node_modules/@radix-ui/react-hover-card/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-hover-card/dist/index.mjs" was ignored.[39m
|
|
29
|
+
[33m../../node_modules/@radix-ui/react-toggle/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-toggle/dist/index.mjs" was ignored.[39m
|
|
33
30
|
[33m../../node_modules/sonner/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/sonner/dist/index.mjs" was ignored.[39m
|
|
31
|
+
[33m../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-scroll-area/dist/index.mjs" was ignored.[39m
|
|
32
|
+
[33msrc/components/molecules/widget/base-selector.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
33
|
+
[33msrc/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.[39m
|
|
34
|
+
[33m../../node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs" was ignored.[39m
|
|
35
|
+
[33m../../node_modules/@radix-ui/react-avatar/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-avatar/dist/index.mjs" was ignored.[39m
|
|
34
36
|
[33m../../node_modules/@radix-ui/react-dialog/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-dialog/dist/index.mjs" was ignored.[39m
|
|
35
|
-
[33m../../node_modules/@radix-ui/react-
|
|
37
|
+
[33m../../node_modules/@radix-ui/react-navigation-menu/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-navigation-menu/dist/index.mjs" was ignored.[39m
|
|
38
|
+
[33m../../node_modules/@radix-ui/react-checkbox/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-checkbox/dist/index.mjs" was ignored.[39m
|
|
36
39
|
[33m../../node_modules/@radix-ui/react-label/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-label/dist/index.mjs" was ignored.[39m
|
|
40
|
+
[33m../../node_modules/@radix-ui/react-tooltip/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-tooltip/dist/index.mjs" was ignored.[39m
|
|
41
|
+
[33m../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-alert-dialog/dist/index.mjs" was ignored.[39m
|
|
37
42
|
[33m../../node_modules/@radix-ui/react-select/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-select/dist/index.mjs" was ignored.[39m
|
|
38
|
-
[33m../../node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-dropdown-menu/dist/index.mjs" was ignored.[39m
|
|
39
|
-
[33m../../node_modules/@radix-ui/react-checkbox/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-checkbox/dist/index.mjs" was ignored.[39m
|
|
40
43
|
[33m../../node_modules/@radix-ui/react-slider/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-slider/dist/index.mjs" was ignored.[39m
|
|
41
|
-
[33m../../node_modules/@radix-ui/react-tooltip/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-tooltip/dist/index.mjs" was ignored.[39m
|
|
42
|
-
[33m../../node_modules/@radix-ui/react-navigation-menu/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-navigation-menu/dist/index.mjs" was ignored.[39m
|
|
43
|
-
[33m../../node_modules/@radix-ui/react-avatar/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-avatar/dist/index.mjs" was ignored.[39m
|
|
44
44
|
[33msrc/components/ui/animated-background/animated-background.tsx (1:0): Error when using sourcemap for reporting an error: Can't resolve original location of error.[39m
|
|
45
45
|
[33msrc/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.[39m
|
|
46
|
-
[
|
|
47
|
-
[
|
|
48
|
-
[33m../../node_modules/@radix-ui/react-
|
|
46
|
+
[33m../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-roving-focus/dist/index.mjs" was ignored.[39m
|
|
47
|
+
[33m../../node_modules/@radix-ui/react-popper/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-popper/dist/index.mjs" was ignored.[39m
|
|
48
|
+
[33m../../node_modules/@radix-ui/react-portal/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-portal/dist/index.mjs" was ignored.[39m
|
|
49
|
+
[33m../../node_modules/@radix-ui/react-presence/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-presence/dist/index.mjs" was ignored.[39m
|
|
49
50
|
[33m../../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-dismissable-layer/dist/index.mjs" was ignored.[39m
|
|
51
|
+
[33m../../node_modules/@radix-ui/react-menu/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-menu/dist/index.mjs" was ignored.[39m
|
|
50
52
|
[33m../../node_modules/@radix-ui/react-focus-scope/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-focus-scope/dist/index.mjs" was ignored.[39m
|
|
51
|
-
[33m../../node_modules/@radix-ui/react-portal/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-portal/dist/index.mjs" was ignored.[39m
|
|
52
53
|
[33m../../node_modules/@radix-ui/react-focus-guards/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-focus-guards/dist/index.mjs" was ignored.[39m
|
|
53
|
-
[33m../../node_modules/@radix-ui/react-
|
|
54
|
-
[33m../../node_modules/@radix-ui/react-menu/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-menu/dist/index.mjs" was ignored.[39m
|
|
55
|
-
[33msrc/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.[39m
|
|
56
|
-
[33msrc/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.[39m
|
|
54
|
+
[33m../../node_modules/@radix-ui/react-collection/dist/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@radix-ui/react-collection/dist/index.mjs" was ignored.[39m
|
|
57
55
|
[33msrc/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.[39m
|
|
58
56
|
[33msrc/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.[39m
|
|
57
|
+
[33msrc/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.[39m
|
|
58
|
+
[33msrc/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.[39m
|
|
59
|
+
[33m../../node_modules/@number-flow/react/dist/NumberFlow-client-48rw3j0J.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@number-flow/react/dist/NumberFlow-client-48rw3j0J.mjs" was ignored.[39m
|
|
59
60
|
[33m../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/framer-motion/dist/es/components/AnimatePresence/index.mjs" was ignored.[39m
|
|
60
61
|
[33m../../node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/framer-motion/dist/es/components/LayoutGroup/index.mjs" was ignored.[39m
|
|
61
62
|
[33m../../node_modules/framer-motion/dist/es/components/LazyMotion/index.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/framer-motion/dist/es/components/LazyMotion/index.mjs" was ignored.[39m
|
|
@@ -98,7 +99,6 @@ transforming...
|
|
|
98
99
|
[33m../../node_modules/framer-motion/dist/es/components/AnimateSharedLayout.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/framer-motion/dist/es/components/AnimateSharedLayout.mjs" was ignored.[39m
|
|
99
100
|
[33m../../node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/framer-motion/dist/es/context/DeprecatedLayoutGroupContext.mjs" was ignored.[39m
|
|
100
101
|
[33m../../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/framer-motion/dist/es/value/use-inverted-scale.mjs" was ignored.[39m
|
|
101
|
-
[33m../../node_modules/@number-flow/react/dist/NumberFlow-client-48rw3j0J.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/@number-flow/react/dist/NumberFlow-client-48rw3j0J.mjs" was ignored.[39m
|
|
102
102
|
[33m../../node_modules/framer-motion/dist/es/utils/use-constant.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/framer-motion/dist/es/utils/use-constant.mjs" was ignored.[39m
|
|
103
103
|
[33m../../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/framer-motion/dist/es/components/AnimatePresence/PresenceChild.mjs" was ignored.[39m
|
|
104
104
|
[33m../../node_modules/framer-motion/dist/es/context/LazyContext.mjs (1:0): Module level directives cause errors when bundled, "use client" in "../../node_modules/framer-motion/dist/es/context/LazyContext.mjs" was ignored.[39m
|
|
@@ -122,15 +122,15 @@ transforming...
|
|
|
122
122
|
[32m✓[39m 2212 modules transformed.
|
|
123
123
|
rendering chunks...
|
|
124
124
|
computing gzip size...
|
|
125
|
-
[2mdist/[22m[36mindex.js [39m[1m[33m770.
|
|
126
|
-
[2mdist/[22m[36mindex.cjs [39m[1m[33m516.
|
|
127
|
-
[32m✓ built in 10.
|
|
125
|
+
[2mdist/[22m[36mindex.js [39m[1m[33m770.40 kB[39m[22m[2m │ gzip: 191.74 kB[22m[2m │ map: 2,333.95 kB[22m
|
|
126
|
+
[2mdist/[22m[36mindex.cjs [39m[1m[33m516.80 kB[39m[22m[2m │ gzip: 154.89 kB[22m[2m │ map: 2,250.57 kB[22m
|
|
127
|
+
[32m✓ built in 10.92s[39m
|
|
128
128
|
$ tsc -p .
|
|
129
129
|
$ BUILD_CSS=true vite build
|
|
130
|
-
[36mvite v7.1.
|
|
130
|
+
[36mvite v7.1.9 [32mbuilding for production...[36m[39m
|
|
131
131
|
transforming...
|
|
132
132
|
[32m✓[39m 1 modules transformed.
|
|
133
133
|
rendering chunks...
|
|
134
134
|
computing gzip size...
|
|
135
|
-
[2mdist/[22m[35mstyles.css [39m[1m[
|
|
136
|
-
[32m✓ built in
|
|
135
|
+
[2mdist/[22m[35mstyles.css [39m[1m[2m90.82 kB[22m[1m[22m[2m │ gzip: 14.73 kB[22m
|
|
136
|
+
[32m✓ built in 481ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,18 @@
|
|
|
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.3.0-beta.46](https://github.com/turtledev/packages/compare/@turtleclub/ui@0.3.0-beta.45...@turtleclub/ui@0.3.0-beta.46) (2025-10-07)
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
- **ui:** adjust route-details layout by replacing sm:inline-block with sm:block for better consistency ([5778782](https://github.com/turtledev/packages/commit/5778782eced60112c3b73d84b96c764076171079))
|
|
11
|
+
|
|
12
|
+
# [0.3.0-beta.45](https://github.com/turtledev/packages/compare/@turtleclub/ui@0.3.0-beta.44...@turtleclub/ui@0.3.0-beta.45) (2025-10-07)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
- **ui:** improve route-details layout and conditional rendering ([ca6340e](https://github.com/turtledev/packages/commit/ca6340e4fba3bf718324c05feaa4bd327f049267))
|
|
17
|
+
|
|
6
18
|
# [0.3.0-beta.44](https://github.com/turtledev/packages/compare/@turtleclub/ui@0.3.0-beta.43...@turtleclub/ui@0.3.0-beta.44) (2025-09-30)
|
|
7
19
|
|
|
8
20
|
**Note:** Version bump only for package @turtleclub/ui
|
package/dist/index.cjs
CHANGED
|
@@ -175,7 +175,7 @@ You can add a description to the \`${Dn}\` by passing a \`${Zx}\` component as a
|
|
|
175
175
|
|
|
176
176
|
Alternatively, you can use your own component as a description by assigning it an \`id\` and passing the same value to the \`aria-describedby\` prop in \`${Dn}\`. If the description is confusing or duplicative for sighted users, you can use the \`@radix-ui/react-visually-hidden\` primitive as a wrapper around your description component.
|
|
177
177
|
|
|
178
|
-
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return p.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},dD=Gx,fD=Ux,pD=Wx,hD=Kx,mD=Yx,gD=Jx,vD=ty,xD=qx,yD=Qx;function wD({...e}){return c.jsx(dD,{"data-slot":"alert-dialog",...e})}function bD({...e}){return c.jsx(fD,{"data-slot":"alert-dialog-trigger",...e})}function ny({...e}){return c.jsx(pD,{"data-slot":"alert-dialog-portal",...e,container:document.querySelectorAll(".turtle-widget-root")[0]??void 0})}function ry({className:e,...t}){return c.jsx(hD,{"data-slot":"alert-dialog-overlay",className:A("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function SD({className:e,...t}){return c.jsxs(ny,{children:[c.jsx(ry,{}),c.jsx(mD,{"data-slot":"alert-dialog-content",className:A("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 border-border rounded-turtle fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 border p-10 shadow-lg duration-200 sm:max-w-lg",e),...t})]})}function CD({className:e,...t}){return c.jsx("div",{"data-slot":"alert-dialog-header",className:A("flex flex-col gap-2 text-center sm:text-left",e),...t})}function RD({className:e,...t}){return c.jsx("div",{"data-slot":"alert-dialog-footer",className:A("flex flex-col-reverse gap-2 sm:flex-row sm:justify-evenly",e),...t})}function ED({className:e,...t}){return c.jsx(xD,{"data-slot":"alert-dialog-title",className:A("text-lg font-semibold",e),...t})}function TD({className:e,...t}){return c.jsx(yD,{"data-slot":"alert-dialog-description",className:A("text-muted-foreground text-sm",e),...t})}function PD({className:e,...t}){return c.jsx(gD,{className:A(Pr({variant:"green"}),e),...t})}function AD({className:e,...t}){return c.jsx(vD,{className:A(Pr({variant:"default"}),e),...t})}const oy=p.forwardRef(({className:e,title:t,description:n,txHash:r,explorerUrl:o,estimatedTime:s,amount:i,token:a,protocol:l,steps:d=[],variant:f="default",completed:u=!1,cancelled:h=!1,onViewDetails:m,onClose:v,showActions:g=!0,...x},y)=>{const w=h?"Transaction Cancelled":u?"Transaction Completed":"Processing Transaction",b=h?"Transaction was cancelled by user":u?"Your transaction has been successfully processed!":"Please wait while your transaction is being processed...",S=({size:E="w-4 h-4"})=>c.jsx("svg",{className:E,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})}),C=()=>c.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),P=E=>E.length<=12?E:`${E.slice(0,6)}...${E.slice(-6)}`;return c.jsxs(nt,{ref:y,className:A("p-4 text-center space-y-3",f==="compact"&&"p-3 space-y-2",e),...x,children:[c.jsx("div",{className:"flex justify-center",children:c.jsx(Fa,{spinning:!u&&!h,size:f==="compact"?"sm":"default",children:h?c.jsx(np,{className:A(f==="compact"?"w-5 h-5":"w-6 h-6","text-destructive")}):u?c.jsx(za,{className:A(f==="compact"?"w-5 h-5":"w-6 h-6","text-primary")}):c.jsx(Gb,{className:A(f==="compact"?"w-5 h-5":"w-6 h-6","text-primary")})})}),c.jsxs("div",{className:"space-y-1",children:[c.jsx("h3",{className:A("font-medium text-foreground",f==="compact"?"text-xs":"text-sm"),children:t||w}),c.jsx("p",{className:A("text-muted-foreground","text-xs"),children:n||b})]}),u&&!h&&(i||a||l)&&c.jsxs("div",{className:"p-2 bg-muted/50 rounded-lg space-y-1",children:[i&&a&&c.jsxs("div",{className:"text-xs font-medium",children:[i," ",a]}),l&&c.jsxs("div",{className:"text-xs text-muted-foreground",children:["via ",l]})]}),r&&!h&&c.jsxs("div",{className:"space-y-1",children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Transaction Hash"}),o?c.jsxs("a",{href:`${o}/tx/${r}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-xs text-primary hover:text-primary/80 transition-colors",children:[P(r),c.jsx(S,{})]}):c.jsx("div",{className:"text-xs font-mono text-foreground",children:P(r)})]}),!u&&!h&&s&&c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Estimated time: ",s]}),!u&&!h&&d.length>0&&c.jsxs("div",{className:"space-y-2 pt-2 border-t border-border",children:[c.jsx("div",{className:"text-xs font-medium text-muted-foreground text-left",children:"Progress"}),c.jsx("div",{className:"space-y-2",children:d.map((E,T)=>c.jsxs("div",{className:"flex items-center gap-3 text-left",children:[c.jsx("div",{className:A("flex items-center justify-center w-5 h-5 rounded-full border-2 flex-shrink-0",E.completed&&"bg-primary border-primary text-primary-foreground",E.current&&!E.completed&&"border-primary text-primary animate-pulse",!E.completed&&!E.current&&"border-muted-foreground/30 text-muted-foreground"),children:E.completed?c.jsx(C,{}):E.current?c.jsx("div",{className:"w-2 h-2 rounded-full bg-primary animate-pulse"}):c.jsx("div",{className:"w-2 h-2 rounded-full bg-muted-foreground/30"})}),c.jsxs("div",{className:"flex-1 flex items-center justify-between",children:[c.jsx("span",{className:A("text-xs",E.completed&&"text-foreground",E.current&&!E.completed&&"text-foreground font-medium",!E.completed&&!E.current&&"text-muted-foreground"),children:E.label}),E.txHash&&o&&c.jsxs("a",{href:`${o}/tx/${E.txHash}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-primary hover:text-primary/80 transition-colors ml-2",title:`View transaction: ${E.txHash}`,children:[c.jsxs("span",{className:"font-mono",children:[E.txHash.slice(0,6),"...",E.txHash.slice(-4)]}),c.jsx(S,{size:"w-3 h-3"})]})]})]},T))})]}),(u||h)&&g&&(m||v)&&c.jsxs("div",{className:A("flex gap-2 pt-2",f==="compact"?"flex-col":"flex-row justify-center"),children:[!h&&m&&c.jsx(fr,{size:f==="compact"?"sm":"default",onClick:m,children:"View Details"}),v&&c.jsx(fr,{variant:"default",size:f==="compact"?"sm":"default",onClick:v,children:h?"Try Again":"Done"})]})]})});oy.displayName="TxStatus";const sy=({tokens:e,value:t,onValueChange:n,placeholder:r="Select token",disabled:o,className:s,variant:i="bordered",size:a="default",showBalance:l=!0})=>{const d=t||(e.length>0?e[0].address:void 0),f=e.find(u=>u.address===d);return R.useEffect(()=>{!t&&e.length>0&&n&&n(e[0].address)},[t,e,n]),c.jsxs(gg,{value:d,onValueChange:n,disabled:o,children:[c.jsx(vg,{className:A("w-auto min-w-[80px] bg-muted hover:bg-muted/80 rounded-md font-medium","focus:ring-2 focus:ring-primary/20 focus:outline-none",a==="xs"&&"min-w-[80px] gap-2",a==="sm"&&"min-w-[75px] gap-1.5",a==="default"&&"min-w-[80px] gap-1.5",s),children:f?c.jsxs("div",{className:A("flex items-center",a==="xs"&&"gap-2",a==="sm"&&"gap-1.5",a==="default"&&"gap-1.5"),children:[c.jsx("span",{className:A("flex items-center justify-center",a==="xs"&&"w-3.5 h-3",a==="sm"&&"w-4 h-3.5",a==="default"&&"w-5 h-4"),children:f.icon}),c.jsx("span",{className:A("font-medium",a==="xs"&&"text-xs",a==="sm"&&"text-sm",a==="default"&&"text-sm"),children:f.symbol})]}):c.jsx("span",{className:A("text-muted-foreground",a==="xs"&&"text-xs",a==="sm"&&"text-sm",a==="default"&&"text-sm"),children:r})}),c.jsx(xg,{className:"border border-muted gap-2",children:e.map(u=>c.jsx(yg,{value:u.address,className:"cursor-pointer py-2",children:c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:A("flex items-center justify-center",a==="xs"&&"w-3.5 h-3.5",a==="sm"&&"w-4 h-4",a==="default"&&"w-5 h-4"),children:u.icon}),c.jsx("span",{className:A("font-medium",a==="xs"&&"text-xs",a==="sm"&&"text-sm",a==="default"&&"text-sm"),children:u.symbol})]}),l&&c.jsxs("span",{className:"text-white/80 text-xs",children:["≈ ",u.balance]})]})},u.address))})]})},lc=(e,t="")=>e?c.jsx("img",{src:e,alt:t,className:"h-4 w-4 rounded-full"}):c.jsx("div",{className:"bg-muted flex h-4 w-4 items-center justify-center rounded-full text-xs",children:t.charAt(0)}),cc=({icon:e,text:t,onClick:n,className:r,variant:o="bordered",size:s="default",placeholder:i="Select",showIcon:a=!0})=>{const l=t||e;return c.jsx("div",{onClick:n,className:A("bg-muted hover:bg-secondary inline-flex w-auto min-w-[80px] cursor-pointer items-center justify-between rounded-full font-medium","focus:ring-primary/20 transition-colors focus:ring-2 focus:outline-none",o==="bordered"&&"border-border border",s==="xs"&&"h-7 min-w-[80px] gap-2 px-2.5 py-1",s==="sm"&&"h-8 min-w-[75px] gap-1.5 px-3 py-1.5",s==="default"&&"h-10 min-w-[80px] gap-1.5 px-3 py-2",r),role:"button",tabIndex:0,children:l?c.jsxs("div",{className:A("flex items-center",s==="xs"&&"gap-2",s==="sm"&&"gap-1.5",s==="default"&&"gap-1.5"),children:[a&&e&&c.jsx("span",{className:A("flex items-center justify-center",s==="xs"&&"h-3 w-3.5",s==="sm"&&"h-3.5 w-4",s==="default"&&"h-4 w-5"),children:e}),c.jsx("span",{className:A("font-medium",s==="xs"&&"text-xs",s==="sm"&&"text-sm",s==="default"&&"text-sm"),children:t})]}):c.jsx("span",{className:A("text-muted-foreground",s==="xs"&&"text-xs",s==="sm"&&"text-sm",s==="default"&&"text-sm"),children:i})})},iy=p.forwardRef(({className:e,value:t="",tokens:n,selectedToken:r,usdValue:o,balance:s,placeholder:i="0",disabled:a=!1,hideTokenSelector:l=!1,isWalletConnected:d=!0,onChange:f,onMaxClick:u,onTokenChange:h,useCustomTokenSelector:m=!1,selectedTokenData:v,onCustomTokenSelectorClick:g,...x},y)=>{const w=m?v:n.find(S=>S.address===r),b=S=>{const C=S.target.value;/^\d*\.?\d*$/.test(C)&&f?.(C)};return d?c.jsxs(nt,{variant:"shadow",ref:y,className:A("space-y-3",a&&"opacity-50",e),...x,children:[c.jsxs("div",{className:"flex items-center gap-6",children:[c.jsx("div",{className:"flex-1",children:c.jsx(js,{variant:"nofocus",value:t,onChange:b,placeholder:i,disabled:a,className:"h-auto border-none bg-transparent p-0 text-4xl font-[400] focus:ring-0"})}),!l&&(m?c.jsx(cc,{icon:w?.icon?typeof w.icon=="string"?lc(w.icon,w.symbol):w.icon:void 0,text:w?.symbol||"",onClick:g,placeholder:"Select token",size:"sm",variant:"bordered",className:A("rounded-full",a&&"cursor-not-allowed opacity-50"),showIcon:!0}):c.jsx(sy,{tokens:n,value:r,onValueChange:h,disabled:a,placeholder:"Select token",size:"sm",variant:"default",className:"rounded-full"}))]}),c.jsxs("div",{className:"text-muted-foreground flex items-center justify-between text-sm",children:[c.jsx("div",{children:o?c.jsxs("span",{children:["≈ ",o]}):t?c.jsx("span",{className:"text-destructive/50",children:"Insufficient balance"}):null}),c.jsxs("div",{className:"flex items-center gap-2",children:[s&&c.jsxs("span",{className:"text-sm",children:["Balance: ",s," ",w?.symbol||""]}),u&&c.jsx(Va,{variant:"default",size:"xs",onClick:u,className:A("hover:bg-primary hover:text-primary-foreground h-5 cursor-pointer px-2 py-0.5 text-xs transition-colors",a&&"cursor-not-allowed opacity-50"),children:"MAX"})]})]})]}):c.jsx(nt,{ref:y,className:A("flex items-center justify-center py-8",e),...x,children:c.jsx("div",{className:"text-center",children:c.jsx("p",{className:"text-muted-foreground text-sm",children:"Connect your wallet to continue"})})})});iy.displayName="SwapInput";const ay=p.forwardRef(({className:e,details:t,...n},r)=>{const{deposit:o,receive:s,equivalentInUsd:i,slippage:a,setSlippage:l}=t;return c.jsxs("div",{className:"animate-in fade-in-0 space-y-2 px-2 py-4 transition-all duration-300",children:[c.jsxs("div",{className:"flex items-center justify-between text-sm",children:[c.jsx("span",{className:"text-foreground text-sm font-semibold",children:"Amount Out"}),c.jsx("span",{className:"font-medium",children:s})]}),a!==void 0&&l&&c.jsx(ly,{className:"text-sm",value:a,onChange:l}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("span",{className:"text-sm font-medium",children:[o," = ",s]}),c.jsxs("span",{className:"text-muted-foreground text-xs",children:["(≈ $",i,")"]})]})]})});ay.displayName="SwapDetails";const MD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAARCAMAAAAc0/kUAAAAmVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VHQRUAAAAMnRSTlMA+/gFbmv8t7pvYzBsPwnh7syrgDsbEcZF5aCGZjjYz7+nmnl0WVNLI+evjGCyIfIlkBMlEnEAAAI9SURBVDjLdZWJcuowDEXlmCxk30khCQHCvlb//3FPMnmdkrinM0UjrjddywCAhBkKnCDwUr3zFkYhDCRo4Hav198rko7h0cDY+kHmCsWgC+DNifOHpV4/y/T5JRBljIaYYGDD205z1q1AqjO7FBtepNfnC03eErjnkUfUEnlq27CmpRJgJKQUdwFqOXsW6jAKHnnFrp7PRvi7xqQZjQdw0cQDmPCLUrsetwfXrWvT9GdzBcnNPncx6s1PfLfDBTBrfIAOGw1WBEhHdlW9crTIHwezoigljLngESZkmAHxsnBtOx/Ytu2kpzMtkg3bT0HSX0bRl2cgY8RRu3DS7XVn7o+B9yrL+FmCHEEnyLlaNQrUkFS87ZwEG546BGJB0fKIgr6YcG/QhgknPIeDmVOeON+puUlwQ0FFoqAwKHXbImGJX2J1h3ZznJPmAx67AamqoSXohirBQ1C0ghBUE3r3OBbjhuMzO+jBCK7CjacIUHT2BGfpCVR+D1VKKFrSZytlWby84OD2q23qJO35aQ0XPpIwdiQ84+ltvwk6uO8sVii/OZQRvykwISyKK1v1DROCocMWmLqaLinZ7jUocr7ENTSqOave9H1/9u4Q6o+6dt3DBvffuHB985NZi1eQwGZqyVs0WPHTgxfo6X/8R1tbXotaKiDITEvzDnUNuUkKOdgnMK4SXuqof7cSOqZunrgE4o8XNZvjf8X7Ev+8zHr9ytTnbWAi/W9AwG/KHRRDTVUHNmu9vrroF/G5Fv8A6Myb3BGIV6EAAAAASUVORK5CYII=",_D=({value:e,className:t})=>{const{steps:n}=e,r=R.useMemo(()=>n.length>2,[n]),o=i=>c.jsx("div",{className:"bg-primary/20 flex h-6 w-6 items-center justify-center rounded-full",children:c.jsx("span",{className:"text-primary text-xs font-bold",children:i.charAt(0)})}),s=i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase();return n.length===0?null:c.jsxs("div",{className:"px-3 pb-3",children:[c.jsx("div",{className:"text-sm font-medium",children:"Swap Route"}),c.jsxs("div",{className:"mb-1 flex items-center gap-1 text-[10px]",children:[c.jsx("span",{className:"text-sm opacity-50",children:"Powered by"}),c.jsx("img",{src:MD,className:"w-10",alt:"Enso"})]}),c.jsx(Qo,{className:"mt-2 rounded-md whitespace-nowrap",children:c.jsx("div",{className:"grid w-full auto-cols-fr grid-flow-col items-center gap-2 py-2",children:n.map((i,a)=>c.jsx(p.Fragment,{children:c.jsx(nt,{variant:"border",children:c.jsxs(Jf,{className:"space-y-2 pt-4",children:[c.jsx("div",{className:"text-secondary-foreground text-sm",children:s(i.type)}),c.jsxs("div",{className:"flex flex-row items-center gap-2",children:[c.jsxs(We,{icon:i.in.icon||o(i.in.symbol),textSize:"xs",iconSize:"xs",children:[!r&&c.jsx("span",{className:"gap-2",children:i.in.symbol}),i.type==="approve"&&c.jsxs("span",{className:"gap-2",children:[" ",i.amount]})]}),i.type!=="approve"&&c.jsxs(c.Fragment,{children:[c.jsx(Cb,{className:"text-primary size-4 shrink-0"}),c.jsx(We,{icon:i.out.icon||o(i.out.symbol),textSize:"xs",iconSize:"xs",children:!r&&c.jsx("span",{className:"gap-2",children:i.in.symbol})})]})]})]})})},`${i.in.symbol}-${i.type}-${a}`))})})]})},Vd={MIN:.1,MAX:100},ND=/^\d*\.?\d*$/,jD=10,DD="w-10",ID=e=>ND.test(e),kD=(e,t,n)=>!isNaN(e)&&e>=t&&e<=n,co=e=>e.toString();function ly({value:e,onChange:t,className:n,label:r="Max Slippage",minValue:o=Vd.MIN,maxValue:s=Vd.MAX}){const[i,a]=R.useState(!1),[l,d]=R.useState(co(e));R.useEffect(()=>{i||d(co(e))},[e,i]);const f=R.useCallback(()=>{a(!0),d(co(e))},[e]),u=R.useCallback(()=>{d(co(e)),a(!1)},[e]),h=R.useCallback(()=>{const x=parseFloat(l);kD(x,o,s)?(t(x),a(!1)):u()},[l,o,s,t,u]),m=R.useCallback(x=>{const y=x.target.value;if(!ID(y))return;if(y===""||y==="."){d(y);return}const w=parseFloat(y);!isNaN(w)&&w>s||d(y)},[s]),v=R.useCallback(x=>{switch(x.key){case"Enter":x.preventDefault(),h();break;case"Escape":x.preventDefault(),u();break}},[h,u]),g=R.useCallback(()=>{h()},[h]);return c.jsxs("div",{className:A("flex items-center justify-between",n),children:[c.jsx("span",{className:"text-xs font-medium text-muted-foreground",id:"slippage-label",children:r}),c.jsxs("div",{className:"flex items-center gap-1",children:[i?c.jsx("input",{type:"text",value:l,onChange:m,onKeyDown:v,onBlur:g,className:A(DD,"text-xs text-right bg-transparent border-none outline-none","text-foreground focus:ring-0 focus:outline-none"),"aria-labelledby":"slippage-label","aria-describedby":"slippage-range",autoFocus:!0,autoComplete:"off",spellCheck:!1}):c.jsxs("span",{className:"text-xs font-medium text-foreground","aria-live":"polite",children:[e,"%"]}),c.jsx("button",{onClick:f,className:A("p-1 hover:bg-muted rounded transition-colors","text-muted-foreground hover:text-foreground","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),"aria-label":`Edit slippage value. Current value: ${e}%`,type:"button",children:c.jsx(Lb,{size:jD})})]}),c.jsxs("span",{id:"slippage-range",className:"sr-only",children:["Enter a value between ",o,"% and ",s,"%"]})]})}const OD=({tabs:e,defaultValue:t,value:n,onValueChange:r,layout:o,className:s})=>{const[i,a]=R.useState(t||n||e.find(h=>!h.disabled)?.value||e[0]?.value),l=n??i,d=h=>{n===void 0&&a(h),r?.(h)},f=R.useMemo(()=>e.find(h=>h.value===l)?.content,[l,e]),u=R.useMemo(()=>o?o(f):c.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:f}),[f,o]);return c.jsxs("div",{className:A("flex flex-col",s),children:[c.jsx($a,{variant:"menuBar",activeValue:l,className:"mb-2",children:e.map(h=>c.jsx(Ba,{value:h.value,active:h.value===l,onClick:()=>!h.disabled&&d(h.value),disabled:h.disabled,variant:"menuBarDefault",children:h.label},h.value))}),u]})},uc=({groups:e,renderItem:t,filterFn:n,getItemKey:r,className:o,groupClassName:s,itemClassName:i,showGroupHeaders:a=!0,emptyState:l=c.jsx("div",{className:"text-muted-foreground py-8 text-center",children:"No items found"})})=>{const d=R.useMemo(()=>e.map(u=>({...u,items:n?u.items.filter(n):u.items})).filter(u=>u.items.length>0),[e,n]);return d.some(u=>u.items.length>0)?c.jsx("div",{className:A("space-y-4",o),children:d.map(u=>c.jsxs("div",{className:A("space-y-2",s),children:[a&&u.title&&c.jsx(We,{icon:u.icon,textSize:"sm",iconSize:"base",children:u.title}),c.jsx("div",{className:"space-y-1",children:u.items.map((h,m)=>c.jsx("div",{className:A("rounded-turtle transition-colors",i),children:t(h)},r?r(h):`${u.id}-${m}`))})]},u.id))}):c.jsx("div",{className:o,children:l})},cy=({icon:e,symbol:t,name:n,balance:r,balanceUSD:o,onClick:s,className:i})=>c.jsxs("div",{onClick:s,className:A("rounded-turtle flex cursor-pointer items-center justify-between px-3.5 py-2.5 transition-colors","hover:bg-secondary",i),children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:"text-xl",children:e}),c.jsxs("div",{children:[c.jsx("div",{className:"text-sm font-medium",children:t}),c.jsx("div",{className:"text-muted-foreground text-xs",children:n})]})]}),c.jsxs("div",{className:"text-right",children:[c.jsx("div",{className:"text-sm font-medium",children:r}),c.jsxs("div",{className:"text-muted-foreground text-xs",children:["(",o,")"]})]})]});/**
|
|
178
|
+
For more information, see https://radix-ui.com/primitives/docs/components/alert-dialog`;return p.useEffect(()=>{document.getElementById(e.current?.getAttribute("aria-describedby"))||console.warn(t)},[t,e]),null},dD=Gx,fD=Ux,pD=Wx,hD=Kx,mD=Yx,gD=Jx,vD=ty,xD=qx,yD=Qx;function wD({...e}){return c.jsx(dD,{"data-slot":"alert-dialog",...e})}function bD({...e}){return c.jsx(fD,{"data-slot":"alert-dialog-trigger",...e})}function ny({...e}){return c.jsx(pD,{"data-slot":"alert-dialog-portal",...e,container:document.querySelectorAll(".turtle-widget-root")[0]??void 0})}function ry({className:e,...t}){return c.jsx(hD,{"data-slot":"alert-dialog-overlay",className:A("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function SD({className:e,...t}){return c.jsxs(ny,{children:[c.jsx(ry,{}),c.jsx(mD,{"data-slot":"alert-dialog-content",className:A("bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 border-border rounded-turtle fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 border p-10 shadow-lg duration-200 sm:max-w-lg",e),...t})]})}function CD({className:e,...t}){return c.jsx("div",{"data-slot":"alert-dialog-header",className:A("flex flex-col gap-2 text-center sm:text-left",e),...t})}function RD({className:e,...t}){return c.jsx("div",{"data-slot":"alert-dialog-footer",className:A("flex flex-col-reverse gap-2 sm:flex-row sm:justify-evenly",e),...t})}function ED({className:e,...t}){return c.jsx(xD,{"data-slot":"alert-dialog-title",className:A("text-lg font-semibold",e),...t})}function TD({className:e,...t}){return c.jsx(yD,{"data-slot":"alert-dialog-description",className:A("text-muted-foreground text-sm",e),...t})}function PD({className:e,...t}){return c.jsx(gD,{className:A(Pr({variant:"green"}),e),...t})}function AD({className:e,...t}){return c.jsx(vD,{className:A(Pr({variant:"default"}),e),...t})}const oy=p.forwardRef(({className:e,title:t,description:n,txHash:r,explorerUrl:o,estimatedTime:s,amount:i,token:a,protocol:l,steps:d=[],variant:f="default",completed:u=!1,cancelled:h=!1,onViewDetails:m,onClose:v,showActions:g=!0,...x},y)=>{const w=h?"Transaction Cancelled":u?"Transaction Completed":"Processing Transaction",b=h?"Transaction was cancelled by user":u?"Your transaction has been successfully processed!":"Please wait while your transaction is being processed...",S=({size:E="w-4 h-4"})=>c.jsx("svg",{className:E,fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M10 6H6a2 2 0 00-2 2v10a2 2 0 002 2h10a2 2 0 002-2v-4M14 4h6m0 0v6m0-6L10 14"})}),C=()=>c.jsx("svg",{className:"w-4 h-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:c.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M5 13l4 4L19 7"})}),P=E=>E.length<=12?E:`${E.slice(0,6)}...${E.slice(-6)}`;return c.jsxs(nt,{ref:y,className:A("p-4 text-center space-y-3",f==="compact"&&"p-3 space-y-2",e),...x,children:[c.jsx("div",{className:"flex justify-center",children:c.jsx(Fa,{spinning:!u&&!h,size:f==="compact"?"sm":"default",children:h?c.jsx(np,{className:A(f==="compact"?"w-5 h-5":"w-6 h-6","text-destructive")}):u?c.jsx(za,{className:A(f==="compact"?"w-5 h-5":"w-6 h-6","text-primary")}):c.jsx(Gb,{className:A(f==="compact"?"w-5 h-5":"w-6 h-6","text-primary")})})}),c.jsxs("div",{className:"space-y-1",children:[c.jsx("h3",{className:A("font-medium text-foreground",f==="compact"?"text-xs":"text-sm"),children:t||w}),c.jsx("p",{className:A("text-muted-foreground","text-xs"),children:n||b})]}),u&&!h&&(i||a||l)&&c.jsxs("div",{className:"p-2 bg-muted/50 rounded-lg space-y-1",children:[i&&a&&c.jsxs("div",{className:"text-xs font-medium",children:[i," ",a]}),l&&c.jsxs("div",{className:"text-xs text-muted-foreground",children:["via ",l]})]}),r&&!h&&c.jsxs("div",{className:"space-y-1",children:[c.jsx("div",{className:"text-xs text-muted-foreground",children:"Transaction Hash"}),o?c.jsxs("a",{href:`${o}/tx/${r}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 text-xs text-primary hover:text-primary/80 transition-colors",children:[P(r),c.jsx(S,{})]}):c.jsx("div",{className:"text-xs font-mono text-foreground",children:P(r)})]}),!u&&!h&&s&&c.jsxs("div",{className:"text-xs text-muted-foreground",children:["Estimated time: ",s]}),!u&&!h&&d.length>0&&c.jsxs("div",{className:"space-y-2 pt-2 border-t border-border",children:[c.jsx("div",{className:"text-xs font-medium text-muted-foreground text-left",children:"Progress"}),c.jsx("div",{className:"space-y-2",children:d.map((E,T)=>c.jsxs("div",{className:"flex items-center gap-3 text-left",children:[c.jsx("div",{className:A("flex items-center justify-center w-5 h-5 rounded-full border-2 flex-shrink-0",E.completed&&"bg-primary border-primary text-primary-foreground",E.current&&!E.completed&&"border-primary text-primary animate-pulse",!E.completed&&!E.current&&"border-muted-foreground/30 text-muted-foreground"),children:E.completed?c.jsx(C,{}):E.current?c.jsx("div",{className:"w-2 h-2 rounded-full bg-primary animate-pulse"}):c.jsx("div",{className:"w-2 h-2 rounded-full bg-muted-foreground/30"})}),c.jsxs("div",{className:"flex-1 flex items-center justify-between",children:[c.jsx("span",{className:A("text-xs",E.completed&&"text-foreground",E.current&&!E.completed&&"text-foreground font-medium",!E.completed&&!E.current&&"text-muted-foreground"),children:E.label}),E.txHash&&o&&c.jsxs("a",{href:`${o}/tx/${E.txHash}`,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-1 text-xs text-primary hover:text-primary/80 transition-colors ml-2",title:`View transaction: ${E.txHash}`,children:[c.jsxs("span",{className:"font-mono",children:[E.txHash.slice(0,6),"...",E.txHash.slice(-4)]}),c.jsx(S,{size:"w-3 h-3"})]})]})]},T))})]}),(u||h)&&g&&(m||v)&&c.jsxs("div",{className:A("flex gap-2 pt-2",f==="compact"?"flex-col":"flex-row justify-center"),children:[!h&&m&&c.jsx(fr,{size:f==="compact"?"sm":"default",onClick:m,children:"View Details"}),v&&c.jsx(fr,{variant:"default",size:f==="compact"?"sm":"default",onClick:v,children:h?"Try Again":"Done"})]})]})});oy.displayName="TxStatus";const sy=({tokens:e,value:t,onValueChange:n,placeholder:r="Select token",disabled:o,className:s,variant:i="bordered",size:a="default",showBalance:l=!0})=>{const d=t||(e.length>0?e[0].address:void 0),f=e.find(u=>u.address===d);return R.useEffect(()=>{!t&&e.length>0&&n&&n(e[0].address)},[t,e,n]),c.jsxs(gg,{value:d,onValueChange:n,disabled:o,children:[c.jsx(vg,{className:A("w-auto min-w-[80px] bg-muted hover:bg-muted/80 rounded-md font-medium","focus:ring-2 focus:ring-primary/20 focus:outline-none",a==="xs"&&"min-w-[80px] gap-2",a==="sm"&&"min-w-[75px] gap-1.5",a==="default"&&"min-w-[80px] gap-1.5",s),children:f?c.jsxs("div",{className:A("flex items-center",a==="xs"&&"gap-2",a==="sm"&&"gap-1.5",a==="default"&&"gap-1.5"),children:[c.jsx("span",{className:A("flex items-center justify-center",a==="xs"&&"w-3.5 h-3",a==="sm"&&"w-4 h-3.5",a==="default"&&"w-5 h-4"),children:f.icon}),c.jsx("span",{className:A("font-medium",a==="xs"&&"text-xs",a==="sm"&&"text-sm",a==="default"&&"text-sm"),children:f.symbol})]}):c.jsx("span",{className:A("text-muted-foreground",a==="xs"&&"text-xs",a==="sm"&&"text-sm",a==="default"&&"text-sm"),children:r})}),c.jsx(xg,{className:"border border-muted gap-2",children:e.map(u=>c.jsx(yg,{value:u.address,className:"cursor-pointer py-2",children:c.jsxs("div",{className:"flex flex-col gap-2",children:[c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsx("span",{className:A("flex items-center justify-center",a==="xs"&&"w-3.5 h-3.5",a==="sm"&&"w-4 h-4",a==="default"&&"w-5 h-4"),children:u.icon}),c.jsx("span",{className:A("font-medium",a==="xs"&&"text-xs",a==="sm"&&"text-sm",a==="default"&&"text-sm"),children:u.symbol})]}),l&&c.jsxs("span",{className:"text-white/80 text-xs",children:["≈ ",u.balance]})]})},u.address))})]})},lc=(e,t="")=>e?c.jsx("img",{src:e,alt:t,className:"h-4 w-4 rounded-full"}):c.jsx("div",{className:"bg-muted flex h-4 w-4 items-center justify-center rounded-full text-xs",children:t.charAt(0)}),cc=({icon:e,text:t,onClick:n,className:r,variant:o="bordered",size:s="default",placeholder:i="Select",showIcon:a=!0})=>{const l=t||e;return c.jsx("div",{onClick:n,className:A("bg-muted hover:bg-secondary inline-flex w-auto min-w-[80px] cursor-pointer items-center justify-between rounded-full font-medium","focus:ring-primary/20 transition-colors focus:ring-2 focus:outline-none",o==="bordered"&&"border-border border",s==="xs"&&"h-7 min-w-[80px] gap-2 px-2.5 py-1",s==="sm"&&"h-8 min-w-[75px] gap-1.5 px-3 py-1.5",s==="default"&&"h-10 min-w-[80px] gap-1.5 px-3 py-2",r),role:"button",tabIndex:0,children:l?c.jsxs("div",{className:A("flex items-center",s==="xs"&&"gap-2",s==="sm"&&"gap-1.5",s==="default"&&"gap-1.5"),children:[a&&e&&c.jsx("span",{className:A("flex items-center justify-center",s==="xs"&&"h-3 w-3.5",s==="sm"&&"h-3.5 w-4",s==="default"&&"h-4 w-5"),children:e}),c.jsx("span",{className:A("font-medium",s==="xs"&&"text-xs",s==="sm"&&"text-sm",s==="default"&&"text-sm"),children:t})]}):c.jsx("span",{className:A("text-muted-foreground",s==="xs"&&"text-xs",s==="sm"&&"text-sm",s==="default"&&"text-sm"),children:i})})},iy=p.forwardRef(({className:e,value:t="",tokens:n,selectedToken:r,usdValue:o,balance:s,placeholder:i="0",disabled:a=!1,hideTokenSelector:l=!1,isWalletConnected:d=!0,onChange:f,onMaxClick:u,onTokenChange:h,useCustomTokenSelector:m=!1,selectedTokenData:v,onCustomTokenSelectorClick:g,...x},y)=>{const w=m?v:n.find(S=>S.address===r),b=S=>{const C=S.target.value;/^\d*\.?\d*$/.test(C)&&f?.(C)};return d?c.jsxs(nt,{variant:"shadow",ref:y,className:A("space-y-3",a&&"opacity-50",e),...x,children:[c.jsxs("div",{className:"flex items-center gap-6",children:[c.jsx("div",{className:"flex-1",children:c.jsx(js,{variant:"nofocus",value:t,onChange:b,placeholder:i,disabled:a,className:"h-auto border-none bg-transparent p-0 text-4xl font-[400] focus:ring-0"})}),!l&&(m?c.jsx(cc,{icon:w?.icon?typeof w.icon=="string"?lc(w.icon,w.symbol):w.icon:void 0,text:w?.symbol||"",onClick:g,placeholder:"Select token",size:"sm",variant:"bordered",className:A("rounded-full",a&&"cursor-not-allowed opacity-50"),showIcon:!0}):c.jsx(sy,{tokens:n,value:r,onValueChange:h,disabled:a,placeholder:"Select token",size:"sm",variant:"default",className:"rounded-full"}))]}),c.jsxs("div",{className:"text-muted-foreground flex items-center justify-between text-sm",children:[c.jsx("div",{children:o?c.jsxs("span",{children:["≈ ",o]}):t?c.jsx("span",{className:"text-destructive/50",children:"Insufficient balance"}):null}),c.jsxs("div",{className:"flex items-center gap-2",children:[s&&c.jsxs("span",{className:"text-sm",children:["Balance: ",s," ",w?.symbol||""]}),u&&c.jsx(Va,{variant:"default",size:"xs",onClick:u,className:A("hover:bg-primary hover:text-primary-foreground h-5 cursor-pointer px-2 py-0.5 text-xs transition-colors",a&&"cursor-not-allowed opacity-50"),children:"MAX"})]})]})]}):c.jsx(nt,{ref:y,className:A("flex items-center justify-center py-8",e),...x,children:c.jsx("div",{className:"text-center",children:c.jsx("p",{className:"text-muted-foreground text-sm",children:"Connect your wallet to continue"})})})});iy.displayName="SwapInput";const ay=p.forwardRef(({className:e,details:t,...n},r)=>{const{deposit:o,receive:s,equivalentInUsd:i,slippage:a,setSlippage:l}=t;return c.jsxs("div",{className:"animate-in fade-in-0 space-y-2 px-2 py-4 transition-all duration-300",children:[c.jsxs("div",{className:"flex items-center justify-between text-sm",children:[c.jsx("span",{className:"text-foreground text-sm font-semibold",children:"Amount Out"}),c.jsx("span",{className:"font-medium",children:s})]}),a!==void 0&&l&&c.jsx(ly,{className:"text-sm",value:a,onChange:l}),c.jsxs("div",{className:"flex items-center gap-2",children:[c.jsxs("span",{className:"text-sm font-medium",children:[o," = ",s]}),c.jsxs("span",{className:"text-muted-foreground text-xs",children:["(≈ $",i,")"]})]})]})});ay.displayName="SwapDetails";const MD="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAARCAMAAAAc0/kUAAAAmVBMVEUAAAD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////VHQRUAAAAMnRSTlMA+/gFbmv8t7pvYzBsPwnh7syrgDsbEcZF5aCGZjjYz7+nmnl0WVNLI+evjGCyIfIlkBMlEnEAAAI9SURBVDjLdZWJcuowDEXlmCxk30khCQHCvlb//3FPMnmdkrinM0UjrjddywCAhBkKnCDwUr3zFkYhDCRo4Hav198rko7h0cDY+kHmCsWgC+DNifOHpV4/y/T5JRBljIaYYGDD205z1q1AqjO7FBtepNfnC03eErjnkUfUEnlq27CmpRJgJKQUdwFqOXsW6jAKHnnFrp7PRvi7xqQZjQdw0cQDmPCLUrsetwfXrWvT9GdzBcnNPncx6s1PfLfDBTBrfIAOGw1WBEhHdlW9crTIHwezoigljLngESZkmAHxsnBtOx/Ytu2kpzMtkg3bT0HSX0bRl2cgY8RRu3DS7XVn7o+B9yrL+FmCHEEnyLlaNQrUkFS87ZwEG546BGJB0fKIgr6YcG/QhgknPIeDmVOeON+puUlwQ0FFoqAwKHXbImGJX2J1h3ZznJPmAx67AamqoSXohirBQ1C0ghBUE3r3OBbjhuMzO+jBCK7CjacIUHT2BGfpCVR+D1VKKFrSZytlWby84OD2q23qJO35aQ0XPpIwdiQ84+ltvwk6uO8sVii/OZQRvykwISyKK1v1DROCocMWmLqaLinZ7jUocr7ENTSqOave9H1/9u4Q6o+6dt3DBvffuHB985NZi1eQwGZqyVs0WPHTgxfo6X/8R1tbXotaKiDITEvzDnUNuUkKOdgnMK4SXuqof7cSOqZunrgE4o8XNZvjf8X7Ev+8zHr9ytTnbWAi/W9AwG/KHRRDTVUHNmu9vrroF/G5Fv8A6Myb3BGIV6EAAAAASUVORK5CYII=",_D=({value:e,className:t})=>{const{steps:n}=e,r=R.useMemo(()=>n.length>2,[n]),o=i=>c.jsx("div",{className:"bg-primary/20 flex size-3 items-center justify-center rounded-full",children:c.jsx("span",{className:"text-primary text-xs font-bold",children:i.charAt(0)})}),s=i=>i.charAt(0).toUpperCase()+i.slice(1).toLowerCase();return n.length===0?null:c.jsxs("div",{className:"px-3 pb-3",children:[c.jsx("div",{className:"text-sm font-medium",children:"Swap Route"}),c.jsxs("div",{className:"mb-1 flex items-center gap-1 text-[10px]",children:[c.jsx("span",{className:"text-sm opacity-50",children:"Powered by"}),c.jsx("img",{src:MD,className:"w-10",alt:"Enso"})]}),c.jsx(Qo,{className:"mt-2 rounded-md whitespace-nowrap",children:c.jsx("div",{className:"grid w-full auto-cols-fr grid-flow-col items-center gap-2 py-2",children:n.map((i,a)=>c.jsx(p.Fragment,{children:c.jsx(nt,{variant:"border",children:c.jsxs(Jf,{className:"space-y-2 pt-4",children:[c.jsx("div",{className:"text-secondary-foreground text-sm",children:s(i.type)}),c.jsxs("div",{className:"flex flex-row items-center gap-2",children:[c.jsxs(We,{icon:i.in.icon||o(i.in.symbol),textSize:"xs",iconSize:"xs",children:[!r&&c.jsx("span",{className:"hidden gap-2 sm:block",children:i.in.symbol}),i.type==="approve"&&c.jsxs("span",{className:"gap-2",children:[" ",i.amount]})]}),i.type!=="approve"&&c.jsxs(c.Fragment,{children:[c.jsx(Cb,{className:"text-primary size-4 shrink-0"}),c.jsx(We,{icon:i.out.icon||o(i.out.symbol),textSize:"xs",iconSize:"xs",children:!r&&c.jsx("span",{className:"hidden gap-2 sm:block",children:i.in.symbol})})]})]})]})})},`${i.in.symbol}-${i.type}-${a}`))})})]})},Vd={MIN:.1,MAX:100},ND=/^\d*\.?\d*$/,jD=10,DD="w-10",ID=e=>ND.test(e),kD=(e,t,n)=>!isNaN(e)&&e>=t&&e<=n,co=e=>e.toString();function ly({value:e,onChange:t,className:n,label:r="Max Slippage",minValue:o=Vd.MIN,maxValue:s=Vd.MAX}){const[i,a]=R.useState(!1),[l,d]=R.useState(co(e));R.useEffect(()=>{i||d(co(e))},[e,i]);const f=R.useCallback(()=>{a(!0),d(co(e))},[e]),u=R.useCallback(()=>{d(co(e)),a(!1)},[e]),h=R.useCallback(()=>{const x=parseFloat(l);kD(x,o,s)?(t(x),a(!1)):u()},[l,o,s,t,u]),m=R.useCallback(x=>{const y=x.target.value;if(!ID(y))return;if(y===""||y==="."){d(y);return}const w=parseFloat(y);!isNaN(w)&&w>s||d(y)},[s]),v=R.useCallback(x=>{switch(x.key){case"Enter":x.preventDefault(),h();break;case"Escape":x.preventDefault(),u();break}},[h,u]),g=R.useCallback(()=>{h()},[h]);return c.jsxs("div",{className:A("flex items-center justify-between",n),children:[c.jsx("span",{className:"text-xs font-medium text-muted-foreground",id:"slippage-label",children:r}),c.jsxs("div",{className:"flex items-center gap-1",children:[i?c.jsx("input",{type:"text",value:l,onChange:m,onKeyDown:v,onBlur:g,className:A(DD,"text-xs text-right bg-transparent border-none outline-none","text-foreground focus:ring-0 focus:outline-none"),"aria-labelledby":"slippage-label","aria-describedby":"slippage-range",autoFocus:!0,autoComplete:"off",spellCheck:!1}):c.jsxs("span",{className:"text-xs font-medium text-foreground","aria-live":"polite",children:[e,"%"]}),c.jsx("button",{onClick:f,className:A("p-1 hover:bg-muted rounded transition-colors","text-muted-foreground hover:text-foreground","focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2"),"aria-label":`Edit slippage value. Current value: ${e}%`,type:"button",children:c.jsx(Lb,{size:jD})})]}),c.jsxs("span",{id:"slippage-range",className:"sr-only",children:["Enter a value between ",o,"% and ",s,"%"]})]})}const OD=({tabs:e,defaultValue:t,value:n,onValueChange:r,layout:o,className:s})=>{const[i,a]=R.useState(t||n||e.find(h=>!h.disabled)?.value||e[0]?.value),l=n??i,d=h=>{n===void 0&&a(h),r?.(h)},f=R.useMemo(()=>e.find(h=>h.value===l)?.content,[l,e]),u=R.useMemo(()=>o?o(f):c.jsx("div",{className:"flex-1 min-h-0 overflow-hidden",children:f}),[f,o]);return c.jsxs("div",{className:A("flex flex-col",s),children:[c.jsx($a,{variant:"menuBar",activeValue:l,className:"mb-2",children:e.map(h=>c.jsx(Ba,{value:h.value,active:h.value===l,onClick:()=>!h.disabled&&d(h.value),disabled:h.disabled,variant:"menuBarDefault",children:h.label},h.value))}),u]})},uc=({groups:e,renderItem:t,filterFn:n,getItemKey:r,className:o,groupClassName:s,itemClassName:i,showGroupHeaders:a=!0,emptyState:l=c.jsx("div",{className:"text-muted-foreground py-8 text-center",children:"No items found"})})=>{const d=R.useMemo(()=>e.map(u=>({...u,items:n?u.items.filter(n):u.items})).filter(u=>u.items.length>0),[e,n]);return d.some(u=>u.items.length>0)?c.jsx("div",{className:A("space-y-4",o),children:d.map(u=>c.jsxs("div",{className:A("space-y-2",s),children:[a&&u.title&&c.jsx(We,{icon:u.icon,textSize:"sm",iconSize:"base",children:u.title}),c.jsx("div",{className:"space-y-1",children:u.items.map((h,m)=>c.jsx("div",{className:A("rounded-turtle transition-colors",i),children:t(h)},r?r(h):`${u.id}-${m}`))})]},u.id))}):c.jsx("div",{className:o,children:l})},cy=({icon:e,symbol:t,name:n,balance:r,balanceUSD:o,onClick:s,className:i})=>c.jsxs("div",{onClick:s,className:A("rounded-turtle flex cursor-pointer items-center justify-between px-3.5 py-2.5 transition-colors","hover:bg-secondary",i),children:[c.jsxs("div",{className:"flex items-center gap-3",children:[c.jsx("span",{className:"text-xl",children:e}),c.jsxs("div",{children:[c.jsx("div",{className:"text-sm font-medium",children:t}),c.jsx("div",{className:"text-muted-foreground text-xs",children:n})]})]}),c.jsxs("div",{className:"text-right",children:[c.jsx("div",{className:"text-sm font-medium",children:r}),c.jsxs("div",{className:"text-muted-foreground text-xs",children:["(",o,")"]})]})]});/**
|
|
179
179
|
* table-core
|
|
180
180
|
*
|
|
181
181
|
* Copyright (c) TanStack
|