@speakeasy-api/moonshine 1.33.2 → 1.33.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Modal/index.d.ts +3 -1
- package/dist/{createCustomLucideIcon-B5P5_njE.mjs → createCustomLucideIcon-CatlpFc0.mjs} +2 -2
- package/dist/{createCustomLucideIcon-B5P5_njE.mjs.map → createCustomLucideIcon-CatlpFc0.mjs.map} +1 -1
- package/dist/{gems-Wkf3QMR5.mjs → gems-DQ7pOLLr.mjs} +2 -2
- package/dist/{gems-Wkf3QMR5.mjs.map → gems-DQ7pOLLr.mjs.map} +1 -1
- package/dist/{go-BxYDOcIq.mjs → go-DsW1bFpz.mjs} +2 -2
- package/dist/{go-BxYDOcIq.mjs.map → go-DsW1bFpz.mjs.map} +1 -1
- package/dist/{index-DV61VJVX.mjs → index-C9bJtuJ5.mjs} +892 -864
- package/dist/index-C9bJtuJ5.mjs.map +1 -0
- package/dist/{maven-BxbhxZ2O.mjs → maven-Dub5liK1.mjs} +2 -2
- package/dist/{maven-BxbhxZ2O.mjs.map → maven-Dub5liK1.mjs.map} +1 -1
- package/dist/moonshine.es.js +1 -1
- package/dist/{npm-rRLPQX6S.mjs → npm-BYcG5_q9.mjs} +2 -2
- package/dist/{npm-rRLPQX6S.mjs.map → npm-BYcG5_q9.mjs.map} +1 -1
- package/dist/{nuget-BMqy59Vb.mjs → nuget-D86y5HDl.mjs} +2 -2
- package/dist/{nuget-BMqy59Vb.mjs.map → nuget-D86y5HDl.mjs.map} +1 -1
- package/dist/{packagist-CLfa62Yw.mjs → packagist-BFSSrw4p.mjs} +2 -2
- package/dist/{packagist-CLfa62Yw.mjs.map → packagist-BFSSrw4p.mjs.map} +1 -1
- package/dist/{pypi-DB-wDPV5.mjs → pypi-2SUX-2OR.mjs} +2 -2
- package/dist/{pypi-DB-wDPV5.mjs.map → pypi-2SUX-2OR.mjs.map} +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/utilities.d.ts +1 -1
- package/dist/index-DV61VJVX.mjs.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import { jsx as o, Fragment as de, jsxs as w } from "react/jsx-runtime";
|
|
2
2
|
import * as c from "react";
|
|
3
|
-
import re, { isValidElement as me, useState as
|
|
3
|
+
import re, { isValidElement as me, useState as K, useLayoutEffect as pt, Suspense as af, lazy as Aa, useEffect as oe, useMemo as ye, Children as he, cloneElement as go, createContext as tn, useContext as nn, forwardRef as ve, memo as sf, useRef as ce, useCallback as pe, Fragment as Hs, useId as lf, createElement as Vr } from "react";
|
|
4
4
|
import Fs from "lucide-react/dynamicIconImports";
|
|
5
5
|
import { useRive as cf, Layout as df, Fit as uf, useViewModelInstanceBoolean as ff } from "@rive-app/react-canvas-lite";
|
|
6
6
|
import { Virtuoso as vo, GroupedVirtuoso as pf } from "react-virtuoso";
|
|
7
7
|
import * as Kn from "react-dom";
|
|
8
8
|
import mf from "react-dom";
|
|
9
9
|
import { X as hf, ChevronRight as gf, Check as Xn, Circle as vf, TerminalIcon as bf, Copy as yf, ChevronUp as Vs, Loader2 as xf, Merge as wf, GitPullRequestClosed as Cf, GitPullRequest as Nf, ChevronDown as js, Sun as Sf, Moon as Ef, UserCheck as kf, XIcon as Rf, CheckIcon as Mf } from "lucide-react";
|
|
10
|
-
import { motion as
|
|
10
|
+
import { motion as Z, AnimatePresence as Ce, useInView as Pf, MotionConfig as If } from "motion/react";
|
|
11
11
|
import { codeToTokens as Tf } from "shiki";
|
|
12
12
|
import { DndContext as Af, useDraggable as Ws, useDndMonitor as Gs, DragOverlay as _f, useDroppable as Lf } from "@dnd-kit/core";
|
|
13
13
|
import { restrictToWindowEdges as Of } from "@dnd-kit/modifiers";
|
|
@@ -375,9 +375,9 @@ const be = (e) => {
|
|
|
375
375
|
const r = ni.exec(e);
|
|
376
376
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
377
377
|
}, ri = (e) => e === "position", A1 = /* @__PURE__ */ new Set(["image", "url"]), oi = (e) => A1.has(e), _1 = /* @__PURE__ */ new Set(["length", "size", "percentage"]), ai = (e) => _1.has(e), si = (e) => e === "length", L1 = (e) => e === "number", O1 = (e) => e === "family-name", D1 = (e) => e === "shadow", za = () => {
|
|
378
|
-
const e = be("color"), t = be("font"), n = be("text"), r = be("font-weight"), a = be("tracking"), s = be("leading"), i = be("breakpoint"), l = be("container"), d = be("spacing"), u = be("radius"), p = be("shadow"), f = be("inset-shadow"), g = be("drop-shadow"), m = be("blur"), v = be("perspective"), h = be("aspect"), b = be("ease"), x = be("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", "contain", "none"], E = () => [j, V, d], k = () => [wt, "full", "auto", ...E()], N = () => [dt, "none", "subgrid", j, V],
|
|
378
|
+
const e = be("color"), t = be("font"), n = be("text"), r = be("font-weight"), a = be("tracking"), s = be("leading"), i = be("breakpoint"), l = be("container"), d = be("spacing"), u = be("radius"), p = be("shadow"), f = be("inset-shadow"), g = be("drop-shadow"), m = be("blur"), v = be("perspective"), h = be("aspect"), b = be("ease"), x = be("animate"), C = () => ["auto", "avoid", "all", "avoid-page", "page", "left", "right", "column"], S = () => ["bottom", "center", "left", "left-bottom", "left-top", "right", "right-bottom", "right-top", "top"], R = () => ["auto", "hidden", "clip", "visible", "scroll"], M = () => ["auto", "contain", "none"], E = () => [j, V, d], k = () => [wt, "full", "auto", ...E()], N = () => [dt, "none", "subgrid", j, V], D = () => ["auto", {
|
|
379
379
|
span: ["full", dt, j, V]
|
|
380
|
-
}, j, V],
|
|
380
|
+
}, j, V], z = () => [dt, "auto", j, V], $ = () => ["auto", "min", "max", "fr", j, V], T = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline"], B = () => ["start", "end", "center", "stretch"], A = () => ["auto", ...E()], W = () => [wt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...E()], O = () => [e, j, V], G = () => [Da, ut], _ = () => [
|
|
381
381
|
// Deprecated since Tailwind CSS v4.0.0
|
|
382
382
|
"",
|
|
383
383
|
"none",
|
|
@@ -385,14 +385,14 @@ const be = (e) => {
|
|
|
385
385
|
u,
|
|
386
386
|
j,
|
|
387
387
|
V
|
|
388
|
-
],
|
|
388
|
+
], I = () => ["", te, vn, ut], q = () => ["solid", "dashed", "dotted", "double"], ne = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], P = () => [
|
|
389
389
|
// Deprecated since Tailwind CSS v4.0.0
|
|
390
390
|
"",
|
|
391
391
|
"none",
|
|
392
392
|
m,
|
|
393
393
|
j,
|
|
394
394
|
V
|
|
395
|
-
],
|
|
395
|
+
], U = () => ["center", "top", "top-right", "right", "bottom-right", "bottom", "bottom-left", "left", "top-left", j, V], X = () => ["none", te, j, V], F = () => ["none", te, j, V], Q = () => [te, j, V], L = () => [wt, "full", ...E()];
|
|
396
396
|
return {
|
|
397
397
|
cacheSize: 500,
|
|
398
398
|
theme: {
|
|
@@ -703,21 +703,21 @@ const be = (e) => {
|
|
|
703
703
|
* @see https://tailwindcss.com/docs/grid-column
|
|
704
704
|
*/
|
|
705
705
|
"col-start-end": [{
|
|
706
|
-
col:
|
|
706
|
+
col: D()
|
|
707
707
|
}],
|
|
708
708
|
/**
|
|
709
709
|
* Grid Column Start
|
|
710
710
|
* @see https://tailwindcss.com/docs/grid-column
|
|
711
711
|
*/
|
|
712
712
|
"col-start": [{
|
|
713
|
-
"col-start":
|
|
713
|
+
"col-start": z()
|
|
714
714
|
}],
|
|
715
715
|
/**
|
|
716
716
|
* Grid Column End
|
|
717
717
|
* @see https://tailwindcss.com/docs/grid-column
|
|
718
718
|
*/
|
|
719
719
|
"col-end": [{
|
|
720
|
-
"col-end":
|
|
720
|
+
"col-end": z()
|
|
721
721
|
}],
|
|
722
722
|
/**
|
|
723
723
|
* Grid Template Rows
|
|
@@ -731,21 +731,21 @@ const be = (e) => {
|
|
|
731
731
|
* @see https://tailwindcss.com/docs/grid-row
|
|
732
732
|
*/
|
|
733
733
|
"row-start-end": [{
|
|
734
|
-
row:
|
|
734
|
+
row: D()
|
|
735
735
|
}],
|
|
736
736
|
/**
|
|
737
737
|
* Grid Row Start
|
|
738
738
|
* @see https://tailwindcss.com/docs/grid-row
|
|
739
739
|
*/
|
|
740
740
|
"row-start": [{
|
|
741
|
-
"row-start":
|
|
741
|
+
"row-start": z()
|
|
742
742
|
}],
|
|
743
743
|
/**
|
|
744
744
|
* Grid Row End
|
|
745
745
|
* @see https://tailwindcss.com/docs/grid-row
|
|
746
746
|
*/
|
|
747
747
|
"row-end": [{
|
|
748
|
-
"row-end":
|
|
748
|
+
"row-end": z()
|
|
749
749
|
}],
|
|
750
750
|
/**
|
|
751
751
|
* Grid Auto Flow
|
|
@@ -759,14 +759,14 @@ const be = (e) => {
|
|
|
759
759
|
* @see https://tailwindcss.com/docs/grid-auto-columns
|
|
760
760
|
*/
|
|
761
761
|
"auto-cols": [{
|
|
762
|
-
"auto-cols":
|
|
762
|
+
"auto-cols": $()
|
|
763
763
|
}],
|
|
764
764
|
/**
|
|
765
765
|
* Grid Auto Rows
|
|
766
766
|
* @see https://tailwindcss.com/docs/grid-auto-rows
|
|
767
767
|
*/
|
|
768
768
|
"auto-rows": [{
|
|
769
|
-
"auto-rows":
|
|
769
|
+
"auto-rows": $()
|
|
770
770
|
}],
|
|
771
771
|
/**
|
|
772
772
|
* Gap
|
|
@@ -794,63 +794,63 @@ const be = (e) => {
|
|
|
794
794
|
* @see https://tailwindcss.com/docs/justify-content
|
|
795
795
|
*/
|
|
796
796
|
"justify-content": [{
|
|
797
|
-
justify: [...
|
|
797
|
+
justify: [...T(), "normal"]
|
|
798
798
|
}],
|
|
799
799
|
/**
|
|
800
800
|
* Justify Items
|
|
801
801
|
* @see https://tailwindcss.com/docs/justify-items
|
|
802
802
|
*/
|
|
803
803
|
"justify-items": [{
|
|
804
|
-
"justify-items": [
|
|
804
|
+
"justify-items": [...B(), "normal"]
|
|
805
805
|
}],
|
|
806
806
|
/**
|
|
807
807
|
* Justify Self
|
|
808
808
|
* @see https://tailwindcss.com/docs/justify-self
|
|
809
809
|
*/
|
|
810
810
|
"justify-self": [{
|
|
811
|
-
"justify-self": ["auto",
|
|
811
|
+
"justify-self": ["auto", ...B()]
|
|
812
812
|
}],
|
|
813
813
|
/**
|
|
814
814
|
* Align Content
|
|
815
815
|
* @see https://tailwindcss.com/docs/align-content
|
|
816
816
|
*/
|
|
817
817
|
"align-content": [{
|
|
818
|
-
content: ["normal", ...
|
|
818
|
+
content: ["normal", ...T()]
|
|
819
819
|
}],
|
|
820
820
|
/**
|
|
821
821
|
* Align Items
|
|
822
822
|
* @see https://tailwindcss.com/docs/align-items
|
|
823
823
|
*/
|
|
824
824
|
"align-items": [{
|
|
825
|
-
items: [
|
|
825
|
+
items: [...B(), "baseline"]
|
|
826
826
|
}],
|
|
827
827
|
/**
|
|
828
828
|
* Align Self
|
|
829
829
|
* @see https://tailwindcss.com/docs/align-self
|
|
830
830
|
*/
|
|
831
831
|
"align-self": [{
|
|
832
|
-
self: ["auto",
|
|
832
|
+
self: ["auto", ...B(), "baseline"]
|
|
833
833
|
}],
|
|
834
834
|
/**
|
|
835
835
|
* Place Content
|
|
836
836
|
* @see https://tailwindcss.com/docs/place-content
|
|
837
837
|
*/
|
|
838
838
|
"place-content": [{
|
|
839
|
-
"place-content":
|
|
839
|
+
"place-content": T()
|
|
840
840
|
}],
|
|
841
841
|
/**
|
|
842
842
|
* Place Items
|
|
843
843
|
* @see https://tailwindcss.com/docs/place-items
|
|
844
844
|
*/
|
|
845
845
|
"place-items": [{
|
|
846
|
-
"place-items": [
|
|
846
|
+
"place-items": [...B(), "baseline"]
|
|
847
847
|
}],
|
|
848
848
|
/**
|
|
849
849
|
* Place Self
|
|
850
850
|
* @see https://tailwindcss.com/docs/place-self
|
|
851
851
|
*/
|
|
852
852
|
"place-self": [{
|
|
853
|
-
"place-self": ["auto",
|
|
853
|
+
"place-self": ["auto", ...B()]
|
|
854
854
|
}],
|
|
855
855
|
// Spacing
|
|
856
856
|
/**
|
|
@@ -921,63 +921,63 @@ const be = (e) => {
|
|
|
921
921
|
* @see https://tailwindcss.com/docs/margin
|
|
922
922
|
*/
|
|
923
923
|
m: [{
|
|
924
|
-
m:
|
|
924
|
+
m: A()
|
|
925
925
|
}],
|
|
926
926
|
/**
|
|
927
927
|
* Margin X
|
|
928
928
|
* @see https://tailwindcss.com/docs/margin
|
|
929
929
|
*/
|
|
930
930
|
mx: [{
|
|
931
|
-
mx:
|
|
931
|
+
mx: A()
|
|
932
932
|
}],
|
|
933
933
|
/**
|
|
934
934
|
* Margin Y
|
|
935
935
|
* @see https://tailwindcss.com/docs/margin
|
|
936
936
|
*/
|
|
937
937
|
my: [{
|
|
938
|
-
my:
|
|
938
|
+
my: A()
|
|
939
939
|
}],
|
|
940
940
|
/**
|
|
941
941
|
* Margin Start
|
|
942
942
|
* @see https://tailwindcss.com/docs/margin
|
|
943
943
|
*/
|
|
944
944
|
ms: [{
|
|
945
|
-
ms:
|
|
945
|
+
ms: A()
|
|
946
946
|
}],
|
|
947
947
|
/**
|
|
948
948
|
* Margin End
|
|
949
949
|
* @see https://tailwindcss.com/docs/margin
|
|
950
950
|
*/
|
|
951
951
|
me: [{
|
|
952
|
-
me:
|
|
952
|
+
me: A()
|
|
953
953
|
}],
|
|
954
954
|
/**
|
|
955
955
|
* Margin Top
|
|
956
956
|
* @see https://tailwindcss.com/docs/margin
|
|
957
957
|
*/
|
|
958
958
|
mt: [{
|
|
959
|
-
mt:
|
|
959
|
+
mt: A()
|
|
960
960
|
}],
|
|
961
961
|
/**
|
|
962
962
|
* Margin Right
|
|
963
963
|
* @see https://tailwindcss.com/docs/margin
|
|
964
964
|
*/
|
|
965
965
|
mr: [{
|
|
966
|
-
mr:
|
|
966
|
+
mr: A()
|
|
967
967
|
}],
|
|
968
968
|
/**
|
|
969
969
|
* Margin Bottom
|
|
970
970
|
* @see https://tailwindcss.com/docs/margin
|
|
971
971
|
*/
|
|
972
972
|
mb: [{
|
|
973
|
-
mb:
|
|
973
|
+
mb: A()
|
|
974
974
|
}],
|
|
975
975
|
/**
|
|
976
976
|
* Margin Left
|
|
977
977
|
* @see https://tailwindcss.com/docs/margin
|
|
978
978
|
*/
|
|
979
979
|
ml: [{
|
|
980
|
-
ml:
|
|
980
|
+
ml: A()
|
|
981
981
|
}],
|
|
982
982
|
/**
|
|
983
983
|
* Space Between X
|
|
@@ -1011,14 +1011,14 @@ const be = (e) => {
|
|
|
1011
1011
|
* @see https://tailwindcss.com/docs/width#setting-both-width-and-height
|
|
1012
1012
|
*/
|
|
1013
1013
|
size: [{
|
|
1014
|
-
size:
|
|
1014
|
+
size: W()
|
|
1015
1015
|
}],
|
|
1016
1016
|
/**
|
|
1017
1017
|
* Width
|
|
1018
1018
|
* @see https://tailwindcss.com/docs/width
|
|
1019
1019
|
*/
|
|
1020
1020
|
w: [{
|
|
1021
|
-
w: [l, "screen", ...
|
|
1021
|
+
w: [l, "screen", ...W()]
|
|
1022
1022
|
}],
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Min-Width
|
|
@@ -1030,7 +1030,7 @@ const be = (e) => {
|
|
|
1030
1030
|
"screen",
|
|
1031
1031
|
/** Deprecated. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1032
1032
|
"none",
|
|
1033
|
-
...
|
|
1033
|
+
...W()
|
|
1034
1034
|
]
|
|
1035
1035
|
}],
|
|
1036
1036
|
/**
|
|
@@ -1048,7 +1048,7 @@ const be = (e) => {
|
|
|
1048
1048
|
{
|
|
1049
1049
|
screen: [i]
|
|
1050
1050
|
},
|
|
1051
|
-
...
|
|
1051
|
+
...W()
|
|
1052
1052
|
]
|
|
1053
1053
|
}],
|
|
1054
1054
|
/**
|
|
@@ -1056,21 +1056,21 @@ const be = (e) => {
|
|
|
1056
1056
|
* @see https://tailwindcss.com/docs/height
|
|
1057
1057
|
*/
|
|
1058
1058
|
h: [{
|
|
1059
|
-
h: ["screen", ...
|
|
1059
|
+
h: ["screen", ...W()]
|
|
1060
1060
|
}],
|
|
1061
1061
|
/**
|
|
1062
1062
|
* Min-Height
|
|
1063
1063
|
* @see https://tailwindcss.com/docs/min-height
|
|
1064
1064
|
*/
|
|
1065
1065
|
"min-h": [{
|
|
1066
|
-
"min-h": ["screen", "none", ...
|
|
1066
|
+
"min-h": ["screen", "none", ...W()]
|
|
1067
1067
|
}],
|
|
1068
1068
|
/**
|
|
1069
1069
|
* Max-Height
|
|
1070
1070
|
* @see https://tailwindcss.com/docs/max-height
|
|
1071
1071
|
*/
|
|
1072
1072
|
"max-h": [{
|
|
1073
|
-
"max-h": ["screen", ...
|
|
1073
|
+
"max-h": ["screen", ...W()]
|
|
1074
1074
|
}],
|
|
1075
1075
|
// ------------------
|
|
1076
1076
|
// --- Typography ---
|
|
@@ -1202,14 +1202,14 @@ const be = (e) => {
|
|
|
1202
1202
|
* @see https://v3.tailwindcss.com/docs/placeholder-color
|
|
1203
1203
|
*/
|
|
1204
1204
|
"placeholder-color": [{
|
|
1205
|
-
placeholder:
|
|
1205
|
+
placeholder: O()
|
|
1206
1206
|
}],
|
|
1207
1207
|
/**
|
|
1208
1208
|
* Text Color
|
|
1209
1209
|
* @see https://tailwindcss.com/docs/text-color
|
|
1210
1210
|
*/
|
|
1211
1211
|
"text-color": [{
|
|
1212
|
-
text:
|
|
1212
|
+
text: O()
|
|
1213
1213
|
}],
|
|
1214
1214
|
/**
|
|
1215
1215
|
* Text Decoration
|
|
@@ -1221,7 +1221,7 @@ const be = (e) => {
|
|
|
1221
1221
|
* @see https://tailwindcss.com/docs/text-decoration-style
|
|
1222
1222
|
*/
|
|
1223
1223
|
"text-decoration-style": [{
|
|
1224
|
-
decoration: [...
|
|
1224
|
+
decoration: [...q(), "wavy"]
|
|
1225
1225
|
}],
|
|
1226
1226
|
/**
|
|
1227
1227
|
* Text Decoration Thickness
|
|
@@ -1235,7 +1235,7 @@ const be = (e) => {
|
|
|
1235
1235
|
* @see https://tailwindcss.com/docs/text-decoration-color
|
|
1236
1236
|
*/
|
|
1237
1237
|
"text-decoration-color": [{
|
|
1238
|
-
decoration:
|
|
1238
|
+
decoration: O()
|
|
1239
1239
|
}],
|
|
1240
1240
|
/**
|
|
1241
1241
|
* Text Underline Offset
|
|
@@ -1368,49 +1368,49 @@ const be = (e) => {
|
|
|
1368
1368
|
* @see https://tailwindcss.com/docs/background-color
|
|
1369
1369
|
*/
|
|
1370
1370
|
"bg-color": [{
|
|
1371
|
-
bg:
|
|
1371
|
+
bg: O()
|
|
1372
1372
|
}],
|
|
1373
1373
|
/**
|
|
1374
1374
|
* Gradient Color Stops From Position
|
|
1375
1375
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1376
1376
|
*/
|
|
1377
1377
|
"gradient-from-pos": [{
|
|
1378
|
-
from:
|
|
1378
|
+
from: G()
|
|
1379
1379
|
}],
|
|
1380
1380
|
/**
|
|
1381
1381
|
* Gradient Color Stops Via Position
|
|
1382
1382
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1383
1383
|
*/
|
|
1384
1384
|
"gradient-via-pos": [{
|
|
1385
|
-
via:
|
|
1385
|
+
via: G()
|
|
1386
1386
|
}],
|
|
1387
1387
|
/**
|
|
1388
1388
|
* Gradient Color Stops To Position
|
|
1389
1389
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1390
1390
|
*/
|
|
1391
1391
|
"gradient-to-pos": [{
|
|
1392
|
-
to:
|
|
1392
|
+
to: G()
|
|
1393
1393
|
}],
|
|
1394
1394
|
/**
|
|
1395
1395
|
* Gradient Color Stops From
|
|
1396
1396
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1397
1397
|
*/
|
|
1398
1398
|
"gradient-from": [{
|
|
1399
|
-
from:
|
|
1399
|
+
from: O()
|
|
1400
1400
|
}],
|
|
1401
1401
|
/**
|
|
1402
1402
|
* Gradient Color Stops Via
|
|
1403
1403
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1404
1404
|
*/
|
|
1405
1405
|
"gradient-via": [{
|
|
1406
|
-
via:
|
|
1406
|
+
via: O()
|
|
1407
1407
|
}],
|
|
1408
1408
|
/**
|
|
1409
1409
|
* Gradient Color Stops To
|
|
1410
1410
|
* @see https://tailwindcss.com/docs/gradient-color-stops
|
|
1411
1411
|
*/
|
|
1412
1412
|
"gradient-to": [{
|
|
1413
|
-
to:
|
|
1413
|
+
to: O()
|
|
1414
1414
|
}],
|
|
1415
1415
|
// ---------------
|
|
1416
1416
|
// --- Borders ---
|
|
@@ -1420,175 +1420,175 @@ const be = (e) => {
|
|
|
1420
1420
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1421
1421
|
*/
|
|
1422
1422
|
rounded: [{
|
|
1423
|
-
rounded:
|
|
1423
|
+
rounded: _()
|
|
1424
1424
|
}],
|
|
1425
1425
|
/**
|
|
1426
1426
|
* Border Radius Start
|
|
1427
1427
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1428
1428
|
*/
|
|
1429
1429
|
"rounded-s": [{
|
|
1430
|
-
"rounded-s":
|
|
1430
|
+
"rounded-s": _()
|
|
1431
1431
|
}],
|
|
1432
1432
|
/**
|
|
1433
1433
|
* Border Radius End
|
|
1434
1434
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1435
1435
|
*/
|
|
1436
1436
|
"rounded-e": [{
|
|
1437
|
-
"rounded-e":
|
|
1437
|
+
"rounded-e": _()
|
|
1438
1438
|
}],
|
|
1439
1439
|
/**
|
|
1440
1440
|
* Border Radius Top
|
|
1441
1441
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1442
1442
|
*/
|
|
1443
1443
|
"rounded-t": [{
|
|
1444
|
-
"rounded-t":
|
|
1444
|
+
"rounded-t": _()
|
|
1445
1445
|
}],
|
|
1446
1446
|
/**
|
|
1447
1447
|
* Border Radius Right
|
|
1448
1448
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1449
1449
|
*/
|
|
1450
1450
|
"rounded-r": [{
|
|
1451
|
-
"rounded-r":
|
|
1451
|
+
"rounded-r": _()
|
|
1452
1452
|
}],
|
|
1453
1453
|
/**
|
|
1454
1454
|
* Border Radius Bottom
|
|
1455
1455
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1456
1456
|
*/
|
|
1457
1457
|
"rounded-b": [{
|
|
1458
|
-
"rounded-b":
|
|
1458
|
+
"rounded-b": _()
|
|
1459
1459
|
}],
|
|
1460
1460
|
/**
|
|
1461
1461
|
* Border Radius Left
|
|
1462
1462
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1463
1463
|
*/
|
|
1464
1464
|
"rounded-l": [{
|
|
1465
|
-
"rounded-l":
|
|
1465
|
+
"rounded-l": _()
|
|
1466
1466
|
}],
|
|
1467
1467
|
/**
|
|
1468
1468
|
* Border Radius Start Start
|
|
1469
1469
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1470
1470
|
*/
|
|
1471
1471
|
"rounded-ss": [{
|
|
1472
|
-
"rounded-ss":
|
|
1472
|
+
"rounded-ss": _()
|
|
1473
1473
|
}],
|
|
1474
1474
|
/**
|
|
1475
1475
|
* Border Radius Start End
|
|
1476
1476
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1477
1477
|
*/
|
|
1478
1478
|
"rounded-se": [{
|
|
1479
|
-
"rounded-se":
|
|
1479
|
+
"rounded-se": _()
|
|
1480
1480
|
}],
|
|
1481
1481
|
/**
|
|
1482
1482
|
* Border Radius End End
|
|
1483
1483
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1484
1484
|
*/
|
|
1485
1485
|
"rounded-ee": [{
|
|
1486
|
-
"rounded-ee":
|
|
1486
|
+
"rounded-ee": _()
|
|
1487
1487
|
}],
|
|
1488
1488
|
/**
|
|
1489
1489
|
* Border Radius End Start
|
|
1490
1490
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1491
1491
|
*/
|
|
1492
1492
|
"rounded-es": [{
|
|
1493
|
-
"rounded-es":
|
|
1493
|
+
"rounded-es": _()
|
|
1494
1494
|
}],
|
|
1495
1495
|
/**
|
|
1496
1496
|
* Border Radius Top Left
|
|
1497
1497
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1498
1498
|
*/
|
|
1499
1499
|
"rounded-tl": [{
|
|
1500
|
-
"rounded-tl":
|
|
1500
|
+
"rounded-tl": _()
|
|
1501
1501
|
}],
|
|
1502
1502
|
/**
|
|
1503
1503
|
* Border Radius Top Right
|
|
1504
1504
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1505
1505
|
*/
|
|
1506
1506
|
"rounded-tr": [{
|
|
1507
|
-
"rounded-tr":
|
|
1507
|
+
"rounded-tr": _()
|
|
1508
1508
|
}],
|
|
1509
1509
|
/**
|
|
1510
1510
|
* Border Radius Bottom Right
|
|
1511
1511
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1512
1512
|
*/
|
|
1513
1513
|
"rounded-br": [{
|
|
1514
|
-
"rounded-br":
|
|
1514
|
+
"rounded-br": _()
|
|
1515
1515
|
}],
|
|
1516
1516
|
/**
|
|
1517
1517
|
* Border Radius Bottom Left
|
|
1518
1518
|
* @see https://tailwindcss.com/docs/border-radius
|
|
1519
1519
|
*/
|
|
1520
1520
|
"rounded-bl": [{
|
|
1521
|
-
"rounded-bl":
|
|
1521
|
+
"rounded-bl": _()
|
|
1522
1522
|
}],
|
|
1523
1523
|
/**
|
|
1524
1524
|
* Border Width
|
|
1525
1525
|
* @see https://tailwindcss.com/docs/border-width
|
|
1526
1526
|
*/
|
|
1527
1527
|
"border-w": [{
|
|
1528
|
-
border:
|
|
1528
|
+
border: I()
|
|
1529
1529
|
}],
|
|
1530
1530
|
/**
|
|
1531
1531
|
* Border Width X
|
|
1532
1532
|
* @see https://tailwindcss.com/docs/border-width
|
|
1533
1533
|
*/
|
|
1534
1534
|
"border-w-x": [{
|
|
1535
|
-
"border-x":
|
|
1535
|
+
"border-x": I()
|
|
1536
1536
|
}],
|
|
1537
1537
|
/**
|
|
1538
1538
|
* Border Width Y
|
|
1539
1539
|
* @see https://tailwindcss.com/docs/border-width
|
|
1540
1540
|
*/
|
|
1541
1541
|
"border-w-y": [{
|
|
1542
|
-
"border-y":
|
|
1542
|
+
"border-y": I()
|
|
1543
1543
|
}],
|
|
1544
1544
|
/**
|
|
1545
1545
|
* Border Width Start
|
|
1546
1546
|
* @see https://tailwindcss.com/docs/border-width
|
|
1547
1547
|
*/
|
|
1548
1548
|
"border-w-s": [{
|
|
1549
|
-
"border-s":
|
|
1549
|
+
"border-s": I()
|
|
1550
1550
|
}],
|
|
1551
1551
|
/**
|
|
1552
1552
|
* Border Width End
|
|
1553
1553
|
* @see https://tailwindcss.com/docs/border-width
|
|
1554
1554
|
*/
|
|
1555
1555
|
"border-w-e": [{
|
|
1556
|
-
"border-e":
|
|
1556
|
+
"border-e": I()
|
|
1557
1557
|
}],
|
|
1558
1558
|
/**
|
|
1559
1559
|
* Border Width Top
|
|
1560
1560
|
* @see https://tailwindcss.com/docs/border-width
|
|
1561
1561
|
*/
|
|
1562
1562
|
"border-w-t": [{
|
|
1563
|
-
"border-t":
|
|
1563
|
+
"border-t": I()
|
|
1564
1564
|
}],
|
|
1565
1565
|
/**
|
|
1566
1566
|
* Border Width Right
|
|
1567
1567
|
* @see https://tailwindcss.com/docs/border-width
|
|
1568
1568
|
*/
|
|
1569
1569
|
"border-w-r": [{
|
|
1570
|
-
"border-r":
|
|
1570
|
+
"border-r": I()
|
|
1571
1571
|
}],
|
|
1572
1572
|
/**
|
|
1573
1573
|
* Border Width Bottom
|
|
1574
1574
|
* @see https://tailwindcss.com/docs/border-width
|
|
1575
1575
|
*/
|
|
1576
1576
|
"border-w-b": [{
|
|
1577
|
-
"border-b":
|
|
1577
|
+
"border-b": I()
|
|
1578
1578
|
}],
|
|
1579
1579
|
/**
|
|
1580
1580
|
* Border Width Left
|
|
1581
1581
|
* @see https://tailwindcss.com/docs/border-width
|
|
1582
1582
|
*/
|
|
1583
1583
|
"border-w-l": [{
|
|
1584
|
-
"border-l":
|
|
1584
|
+
"border-l": I()
|
|
1585
1585
|
}],
|
|
1586
1586
|
/**
|
|
1587
1587
|
* Divide Width X
|
|
1588
1588
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1589
1589
|
*/
|
|
1590
1590
|
"divide-x": [{
|
|
1591
|
-
"divide-x":
|
|
1591
|
+
"divide-x": I()
|
|
1592
1592
|
}],
|
|
1593
1593
|
/**
|
|
1594
1594
|
* Divide Width X Reverse
|
|
@@ -1600,7 +1600,7 @@ const be = (e) => {
|
|
|
1600
1600
|
* @see https://tailwindcss.com/docs/border-width#between-children
|
|
1601
1601
|
*/
|
|
1602
1602
|
"divide-y": [{
|
|
1603
|
-
"divide-y":
|
|
1603
|
+
"divide-y": I()
|
|
1604
1604
|
}],
|
|
1605
1605
|
/**
|
|
1606
1606
|
* Divide Width Y Reverse
|
|
@@ -1612,91 +1612,91 @@ const be = (e) => {
|
|
|
1612
1612
|
* @see https://tailwindcss.com/docs/border-style
|
|
1613
1613
|
*/
|
|
1614
1614
|
"border-style": [{
|
|
1615
|
-
border: [...
|
|
1615
|
+
border: [...q(), "hidden", "none"]
|
|
1616
1616
|
}],
|
|
1617
1617
|
/**
|
|
1618
1618
|
* Divide Style
|
|
1619
1619
|
* @see https://tailwindcss.com/docs/border-style#setting-the-divider-style
|
|
1620
1620
|
*/
|
|
1621
1621
|
"divide-style": [{
|
|
1622
|
-
divide: [...
|
|
1622
|
+
divide: [...q(), "hidden", "none"]
|
|
1623
1623
|
}],
|
|
1624
1624
|
/**
|
|
1625
1625
|
* Border Color
|
|
1626
1626
|
* @see https://tailwindcss.com/docs/border-color
|
|
1627
1627
|
*/
|
|
1628
1628
|
"border-color": [{
|
|
1629
|
-
border:
|
|
1629
|
+
border: O()
|
|
1630
1630
|
}],
|
|
1631
1631
|
/**
|
|
1632
1632
|
* Border Color X
|
|
1633
1633
|
* @see https://tailwindcss.com/docs/border-color
|
|
1634
1634
|
*/
|
|
1635
1635
|
"border-color-x": [{
|
|
1636
|
-
"border-x":
|
|
1636
|
+
"border-x": O()
|
|
1637
1637
|
}],
|
|
1638
1638
|
/**
|
|
1639
1639
|
* Border Color Y
|
|
1640
1640
|
* @see https://tailwindcss.com/docs/border-color
|
|
1641
1641
|
*/
|
|
1642
1642
|
"border-color-y": [{
|
|
1643
|
-
"border-y":
|
|
1643
|
+
"border-y": O()
|
|
1644
1644
|
}],
|
|
1645
1645
|
/**
|
|
1646
1646
|
* Border Color S
|
|
1647
1647
|
* @see https://tailwindcss.com/docs/border-color
|
|
1648
1648
|
*/
|
|
1649
1649
|
"border-color-s": [{
|
|
1650
|
-
"border-s":
|
|
1650
|
+
"border-s": O()
|
|
1651
1651
|
}],
|
|
1652
1652
|
/**
|
|
1653
1653
|
* Border Color E
|
|
1654
1654
|
* @see https://tailwindcss.com/docs/border-color
|
|
1655
1655
|
*/
|
|
1656
1656
|
"border-color-e": [{
|
|
1657
|
-
"border-e":
|
|
1657
|
+
"border-e": O()
|
|
1658
1658
|
}],
|
|
1659
1659
|
/**
|
|
1660
1660
|
* Border Color Top
|
|
1661
1661
|
* @see https://tailwindcss.com/docs/border-color
|
|
1662
1662
|
*/
|
|
1663
1663
|
"border-color-t": [{
|
|
1664
|
-
"border-t":
|
|
1664
|
+
"border-t": O()
|
|
1665
1665
|
}],
|
|
1666
1666
|
/**
|
|
1667
1667
|
* Border Color Right
|
|
1668
1668
|
* @see https://tailwindcss.com/docs/border-color
|
|
1669
1669
|
*/
|
|
1670
1670
|
"border-color-r": [{
|
|
1671
|
-
"border-r":
|
|
1671
|
+
"border-r": O()
|
|
1672
1672
|
}],
|
|
1673
1673
|
/**
|
|
1674
1674
|
* Border Color Bottom
|
|
1675
1675
|
* @see https://tailwindcss.com/docs/border-color
|
|
1676
1676
|
*/
|
|
1677
1677
|
"border-color-b": [{
|
|
1678
|
-
"border-b":
|
|
1678
|
+
"border-b": O()
|
|
1679
1679
|
}],
|
|
1680
1680
|
/**
|
|
1681
1681
|
* Border Color Left
|
|
1682
1682
|
* @see https://tailwindcss.com/docs/border-color
|
|
1683
1683
|
*/
|
|
1684
1684
|
"border-color-l": [{
|
|
1685
|
-
"border-l":
|
|
1685
|
+
"border-l": O()
|
|
1686
1686
|
}],
|
|
1687
1687
|
/**
|
|
1688
1688
|
* Divide Color
|
|
1689
1689
|
* @see https://tailwindcss.com/docs/divide-color
|
|
1690
1690
|
*/
|
|
1691
1691
|
"divide-color": [{
|
|
1692
|
-
divide:
|
|
1692
|
+
divide: O()
|
|
1693
1693
|
}],
|
|
1694
1694
|
/**
|
|
1695
1695
|
* Outline Style
|
|
1696
1696
|
* @see https://tailwindcss.com/docs/outline-style
|
|
1697
1697
|
*/
|
|
1698
1698
|
"outline-style": [{
|
|
1699
|
-
outline: [...
|
|
1699
|
+
outline: [...q(), "none", "hidden"]
|
|
1700
1700
|
}],
|
|
1701
1701
|
/**
|
|
1702
1702
|
* Outline Offset
|
|
@@ -1741,7 +1741,7 @@ const be = (e) => {
|
|
|
1741
1741
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-shadow-color
|
|
1742
1742
|
*/
|
|
1743
1743
|
"shadow-color": [{
|
|
1744
|
-
shadow:
|
|
1744
|
+
shadow: O()
|
|
1745
1745
|
}],
|
|
1746
1746
|
/**
|
|
1747
1747
|
* Inset Box Shadow
|
|
@@ -1755,14 +1755,14 @@ const be = (e) => {
|
|
|
1755
1755
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-shadow-color
|
|
1756
1756
|
*/
|
|
1757
1757
|
"inset-shadow-color": [{
|
|
1758
|
-
"inset-shadow":
|
|
1758
|
+
"inset-shadow": O()
|
|
1759
1759
|
}],
|
|
1760
1760
|
/**
|
|
1761
1761
|
* Ring Width
|
|
1762
1762
|
* @see https://tailwindcss.com/docs/box-shadow#adding-a-ring
|
|
1763
1763
|
*/
|
|
1764
1764
|
"ring-w": [{
|
|
1765
|
-
ring:
|
|
1765
|
+
ring: I()
|
|
1766
1766
|
}],
|
|
1767
1767
|
/**
|
|
1768
1768
|
* Ring Width Inset
|
|
@@ -1776,7 +1776,7 @@ const be = (e) => {
|
|
|
1776
1776
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-ring-color
|
|
1777
1777
|
*/
|
|
1778
1778
|
"ring-color": [{
|
|
1779
|
-
ring:
|
|
1779
|
+
ring: O()
|
|
1780
1780
|
}],
|
|
1781
1781
|
/**
|
|
1782
1782
|
* Ring Offset Width
|
|
@@ -1794,21 +1794,21 @@ const be = (e) => {
|
|
|
1794
1794
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
1795
1795
|
*/
|
|
1796
1796
|
"ring-offset-color": [{
|
|
1797
|
-
"ring-offset":
|
|
1797
|
+
"ring-offset": O()
|
|
1798
1798
|
}],
|
|
1799
1799
|
/**
|
|
1800
1800
|
* Inset Ring Width
|
|
1801
1801
|
* @see https://tailwindcss.com/docs/box-shadow#adding-an-inset-ring
|
|
1802
1802
|
*/
|
|
1803
1803
|
"inset-ring-w": [{
|
|
1804
|
-
"inset-ring":
|
|
1804
|
+
"inset-ring": I()
|
|
1805
1805
|
}],
|
|
1806
1806
|
/**
|
|
1807
1807
|
* Inset Ring Color
|
|
1808
1808
|
* @see https://tailwindcss.com/docs/box-shadow#setting-the-inset-ring-color
|
|
1809
1809
|
*/
|
|
1810
1810
|
"inset-ring-color": [{
|
|
1811
|
-
"inset-ring":
|
|
1811
|
+
"inset-ring": O()
|
|
1812
1812
|
}],
|
|
1813
1813
|
/**
|
|
1814
1814
|
* Opacity
|
|
@@ -2105,35 +2105,35 @@ const be = (e) => {
|
|
|
2105
2105
|
* @see https://tailwindcss.com/docs/perspective-origin
|
|
2106
2106
|
*/
|
|
2107
2107
|
"perspective-origin": [{
|
|
2108
|
-
"perspective-origin":
|
|
2108
|
+
"perspective-origin": U()
|
|
2109
2109
|
}],
|
|
2110
2110
|
/**
|
|
2111
2111
|
* Rotate
|
|
2112
2112
|
* @see https://tailwindcss.com/docs/rotate
|
|
2113
2113
|
*/
|
|
2114
2114
|
rotate: [{
|
|
2115
|
-
rotate:
|
|
2115
|
+
rotate: X()
|
|
2116
2116
|
}],
|
|
2117
2117
|
/**
|
|
2118
2118
|
* Rotate X
|
|
2119
2119
|
* @see https://tailwindcss.com/docs/rotate
|
|
2120
2120
|
*/
|
|
2121
2121
|
"rotate-x": [{
|
|
2122
|
-
"rotate-x":
|
|
2122
|
+
"rotate-x": X()
|
|
2123
2123
|
}],
|
|
2124
2124
|
/**
|
|
2125
2125
|
* Rotate Y
|
|
2126
2126
|
* @see https://tailwindcss.com/docs/rotate
|
|
2127
2127
|
*/
|
|
2128
2128
|
"rotate-y": [{
|
|
2129
|
-
"rotate-y":
|
|
2129
|
+
"rotate-y": X()
|
|
2130
2130
|
}],
|
|
2131
2131
|
/**
|
|
2132
2132
|
* Rotate Z
|
|
2133
2133
|
* @see https://tailwindcss.com/docs/rotate
|
|
2134
2134
|
*/
|
|
2135
2135
|
"rotate-z": [{
|
|
2136
|
-
"rotate-z":
|
|
2136
|
+
"rotate-z": X()
|
|
2137
2137
|
}],
|
|
2138
2138
|
/**
|
|
2139
2139
|
* Scale
|
|
@@ -2201,7 +2201,7 @@ const be = (e) => {
|
|
|
2201
2201
|
* @see https://tailwindcss.com/docs/transform-origin
|
|
2202
2202
|
*/
|
|
2203
2203
|
"transform-origin": [{
|
|
2204
|
-
origin:
|
|
2204
|
+
origin: U()
|
|
2205
2205
|
}],
|
|
2206
2206
|
/**
|
|
2207
2207
|
* Transform Style
|
|
@@ -2215,28 +2215,28 @@ const be = (e) => {
|
|
|
2215
2215
|
* @see https://tailwindcss.com/docs/translate
|
|
2216
2216
|
*/
|
|
2217
2217
|
translate: [{
|
|
2218
|
-
translate:
|
|
2218
|
+
translate: L()
|
|
2219
2219
|
}],
|
|
2220
2220
|
/**
|
|
2221
2221
|
* Translate X
|
|
2222
2222
|
* @see https://tailwindcss.com/docs/translate
|
|
2223
2223
|
*/
|
|
2224
2224
|
"translate-x": [{
|
|
2225
|
-
"translate-x":
|
|
2225
|
+
"translate-x": L()
|
|
2226
2226
|
}],
|
|
2227
2227
|
/**
|
|
2228
2228
|
* Translate Y
|
|
2229
2229
|
* @see https://tailwindcss.com/docs/translate
|
|
2230
2230
|
*/
|
|
2231
2231
|
"translate-y": [{
|
|
2232
|
-
"translate-y":
|
|
2232
|
+
"translate-y": L()
|
|
2233
2233
|
}],
|
|
2234
2234
|
/**
|
|
2235
2235
|
* Translate Z
|
|
2236
2236
|
* @see https://tailwindcss.com/docs/translate
|
|
2237
2237
|
*/
|
|
2238
2238
|
"translate-z": [{
|
|
2239
|
-
"translate-z":
|
|
2239
|
+
"translate-z": L()
|
|
2240
2240
|
}],
|
|
2241
2241
|
/**
|
|
2242
2242
|
* Translate None
|
|
@@ -2251,7 +2251,7 @@ const be = (e) => {
|
|
|
2251
2251
|
* @see https://tailwindcss.com/docs/accent-color
|
|
2252
2252
|
*/
|
|
2253
2253
|
accent: [{
|
|
2254
|
-
accent:
|
|
2254
|
+
accent: O()
|
|
2255
2255
|
}],
|
|
2256
2256
|
/**
|
|
2257
2257
|
* Appearance
|
|
@@ -2265,7 +2265,7 @@ const be = (e) => {
|
|
|
2265
2265
|
* @see https://tailwindcss.com/docs/just-in-time-mode#caret-color-utilities
|
|
2266
2266
|
*/
|
|
2267
2267
|
"caret-color": [{
|
|
2268
|
-
caret:
|
|
2268
|
+
caret: O()
|
|
2269
2269
|
}],
|
|
2270
2270
|
/**
|
|
2271
2271
|
* Color Scheme
|
|
@@ -2511,7 +2511,7 @@ const be = (e) => {
|
|
|
2511
2511
|
* @see https://tailwindcss.com/docs/fill
|
|
2512
2512
|
*/
|
|
2513
2513
|
fill: [{
|
|
2514
|
-
fill: ["none", ...
|
|
2514
|
+
fill: ["none", ...O()]
|
|
2515
2515
|
}],
|
|
2516
2516
|
/**
|
|
2517
2517
|
* Stroke Width
|
|
@@ -2525,7 +2525,7 @@ const be = (e) => {
|
|
|
2525
2525
|
* @see https://tailwindcss.com/docs/stroke
|
|
2526
2526
|
*/
|
|
2527
2527
|
stroke: [{
|
|
2528
|
-
stroke: ["none", ...
|
|
2528
|
+
stroke: ["none", ...O()]
|
|
2529
2529
|
}],
|
|
2530
2530
|
// ---------------------
|
|
2531
2531
|
// --- Accessibility ---
|
|
@@ -2774,7 +2774,7 @@ function Ge(...e) {
|
|
|
2774
2774
|
function ae(...e) {
|
|
2775
2775
|
return c.useCallback(Ge(...e), e);
|
|
2776
2776
|
}
|
|
2777
|
-
var
|
|
2777
|
+
var Ne = c.forwardRef((e, t) => {
|
|
2778
2778
|
const { children: n, ...r } = e, a = c.Children.toArray(n), s = a.find(W1);
|
|
2779
2779
|
if (s) {
|
|
2780
2780
|
const i = s.props.children, l = a.map((d) => d === s ? c.Children.count(i) > 1 ? c.Children.only(null) : c.isValidElement(i) ? i.props.children : null : d);
|
|
@@ -2782,7 +2782,7 @@ var Re = c.forwardRef((e, t) => {
|
|
|
2782
2782
|
}
|
|
2783
2783
|
return /* @__PURE__ */ o(Kr, { ...r, ref: t, children: n });
|
|
2784
2784
|
});
|
|
2785
|
-
|
|
2785
|
+
Ne.displayName = "Slot";
|
|
2786
2786
|
var Kr = c.forwardRef((e, t) => {
|
|
2787
2787
|
const { children: n, ...r } = e;
|
|
2788
2788
|
if (c.isValidElement(n)) {
|
|
@@ -2956,22 +2956,22 @@ const Y1 = rt(
|
|
|
2956
2956
|
const [g, m] = c.useState(null), v = c.useRef(null), h = c.useRef(null);
|
|
2957
2957
|
process.env.NODE_ENV === "development" && !r && (() => {
|
|
2958
2958
|
if (!p.children) return;
|
|
2959
|
-
const B = c.Children.toArray(p.children),
|
|
2960
|
-
(
|
|
2961
|
-
),
|
|
2962
|
-
|
|
2959
|
+
const B = c.Children.toArray(p.children), A = B.some(
|
|
2960
|
+
(G) => typeof G == "string" && G.trim().length > 0 || typeof G == "number" || c.isValidElement(G) && (G.type === Ln || G.type?.displayName === "ButtonText")
|
|
2961
|
+
), W = p["aria-label"];
|
|
2962
|
+
!A && !W && console.warn(
|
|
2963
2963
|
"Button: Buttons should either contain Button.Text or have an aria-label for accessibility. Consider using IconButton for icon-only buttons."
|
|
2964
|
-
), B.filter((
|
|
2965
|
-
if (typeof
|
|
2964
|
+
), B.filter((G) => {
|
|
2965
|
+
if (typeof G == "string" || typeof G == "number")
|
|
2966
2966
|
return !1;
|
|
2967
|
-
if (c.isValidElement(
|
|
2968
|
-
const
|
|
2967
|
+
if (c.isValidElement(G)) {
|
|
2968
|
+
const _ = G.type?.displayName;
|
|
2969
2969
|
return ![
|
|
2970
2970
|
"ButtonText",
|
|
2971
2971
|
"ButtonLeftIcon",
|
|
2972
2972
|
"ButtonRightIcon",
|
|
2973
2973
|
"ButtonIcon"
|
|
2974
|
-
].includes(
|
|
2974
|
+
].includes(_ || "");
|
|
2975
2975
|
}
|
|
2976
2976
|
return !0;
|
|
2977
2977
|
}).length > 0 && console.warn(
|
|
@@ -2981,8 +2981,8 @@ const Y1 = rt(
|
|
|
2981
2981
|
const b = c.useRef({
|
|
2982
2982
|
target: 220,
|
|
2983
2983
|
current: 220
|
|
2984
|
-
}), x = e === "brand", C = (
|
|
2985
|
-
switch (
|
|
2984
|
+
}), x = e === "brand", C = (T) => {
|
|
2985
|
+
switch (T) {
|
|
2986
2986
|
case "xs":
|
|
2987
2987
|
return "gap-1";
|
|
2988
2988
|
case "sm":
|
|
@@ -2997,33 +2997,33 @@ const Y1 = rt(
|
|
|
2997
2997
|
};
|
|
2998
2998
|
if (Z1(
|
|
2999
2999
|
c.useCallback(
|
|
3000
|
-
(
|
|
3000
|
+
(T, B) => {
|
|
3001
3001
|
if (!v.current) return;
|
|
3002
|
-
const
|
|
3002
|
+
const A = b.current;
|
|
3003
3003
|
if (g && h.current) {
|
|
3004
|
-
const
|
|
3005
|
-
g.y -
|
|
3006
|
-
g.x -
|
|
3004
|
+
const _ = h.current.width / 2, I = h.current.height / 2, q = Math.atan2(
|
|
3005
|
+
g.y - I,
|
|
3006
|
+
g.x - _
|
|
3007
3007
|
) * (180 / Math.PI);
|
|
3008
|
-
|
|
3008
|
+
A.target = (q + 360) % 360;
|
|
3009
3009
|
} else
|
|
3010
|
-
|
|
3011
|
-
const
|
|
3012
|
-
if (
|
|
3013
|
-
|
|
3010
|
+
A.target = 220;
|
|
3011
|
+
const W = Math.abs(A.target - A.current);
|
|
3012
|
+
if (W < 0.1) {
|
|
3013
|
+
W > 0 && (A.current = A.target, v.current.style.setProperty(
|
|
3014
3014
|
"--gradient-rotation",
|
|
3015
|
-
`${Math.round(
|
|
3015
|
+
`${Math.round(A.target)}deg`
|
|
3016
3016
|
));
|
|
3017
3017
|
return;
|
|
3018
3018
|
}
|
|
3019
|
-
const
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3019
|
+
const O = Math.min(B / 1e3 * 8, 1), G = X1(
|
|
3020
|
+
A.current,
|
|
3021
|
+
A.target,
|
|
3022
|
+
O
|
|
3023
3023
|
);
|
|
3024
|
-
|
|
3024
|
+
A.current = G, v.current.style.setProperty(
|
|
3025
3025
|
"--gradient-rotation",
|
|
3026
|
-
`${Math.round(
|
|
3026
|
+
`${Math.round(G)}deg`
|
|
3027
3027
|
);
|
|
3028
3028
|
},
|
|
3029
3029
|
[g]
|
|
@@ -3031,77 +3031,102 @@ const Y1 = rt(
|
|
|
3031
3031
|
x
|
|
3032
3032
|
// Only enable animation for brand variant
|
|
3033
3033
|
), process.env.NODE_ENV === "development") {
|
|
3034
|
-
const
|
|
3034
|
+
const T = {
|
|
3035
3035
|
default: "primary",
|
|
3036
3036
|
destructive: "destructive-primary",
|
|
3037
3037
|
outline: "secondary",
|
|
3038
3038
|
ghost: "tertiary",
|
|
3039
3039
|
link: "a semantic <a> tag"
|
|
3040
3040
|
};
|
|
3041
|
-
e && e in
|
|
3042
|
-
`Button: The variant "${e}" is deprecated. Please use "${
|
|
3041
|
+
e && e in T && console.warn(
|
|
3042
|
+
`Button: The variant "${e}" is deprecated. Please use "${T[e]}" instead.`
|
|
3043
3043
|
);
|
|
3044
3044
|
}
|
|
3045
3045
|
const S = c.useCallback(
|
|
3046
|
-
(
|
|
3046
|
+
(T) => {
|
|
3047
3047
|
if (x && v.current) {
|
|
3048
|
-
const B = v.current.getBoundingClientRect(),
|
|
3049
|
-
m({ x:
|
|
3048
|
+
const B = v.current.getBoundingClientRect(), A = T.clientX - B.left, W = T.clientY - B.top;
|
|
3049
|
+
m({ x: A, y: W });
|
|
3050
3050
|
}
|
|
3051
|
-
u?.(
|
|
3051
|
+
u?.(T);
|
|
3052
3052
|
},
|
|
3053
3053
|
[x, u]
|
|
3054
3054
|
), R = c.useCallback(
|
|
3055
|
-
(
|
|
3055
|
+
(T) => {
|
|
3056
3056
|
if (x && v.current) {
|
|
3057
3057
|
const B = v.current.getBoundingClientRect();
|
|
3058
3058
|
h.current = {
|
|
3059
3059
|
width: B.width,
|
|
3060
3060
|
height: B.height
|
|
3061
3061
|
};
|
|
3062
|
-
const
|
|
3063
|
-
m({ x:
|
|
3062
|
+
const A = T.clientX - B.left, W = T.clientY - B.top;
|
|
3063
|
+
m({ x: A, y: W });
|
|
3064
3064
|
}
|
|
3065
|
-
s?.(
|
|
3065
|
+
s?.(T);
|
|
3066
3066
|
},
|
|
3067
3067
|
[x, s]
|
|
3068
3068
|
), M = c.useCallback(
|
|
3069
|
-
(
|
|
3070
|
-
x && (m(null), h.current = null, b.current.target = 220), i?.(
|
|
3069
|
+
(T) => {
|
|
3070
|
+
x && (m(null), h.current = null, b.current.target = 220), i?.(T);
|
|
3071
3071
|
},
|
|
3072
3072
|
[x, i]
|
|
3073
3073
|
), E = c.useCallback(
|
|
3074
|
-
(
|
|
3075
|
-
l?.(
|
|
3074
|
+
(T) => {
|
|
3075
|
+
l?.(T);
|
|
3076
3076
|
},
|
|
3077
3077
|
[l]
|
|
3078
3078
|
), k = c.useCallback(
|
|
3079
|
-
(
|
|
3080
|
-
d?.(
|
|
3079
|
+
(T) => {
|
|
3080
|
+
d?.(T);
|
|
3081
3081
|
},
|
|
3082
3082
|
[d]
|
|
3083
3083
|
);
|
|
3084
3084
|
c.useEffect(() => {
|
|
3085
3085
|
x && v.current && (v.current.style.setProperty("--gradient-rotation", "220deg"), Object.assign(b.current, { target: 220, current: 220 }));
|
|
3086
3086
|
}, [x]);
|
|
3087
|
-
const N =
|
|
3088
|
-
(
|
|
3089
|
-
|
|
3087
|
+
const N = c.forwardRef((T, B) => {
|
|
3088
|
+
if (!x)
|
|
3089
|
+
return /* @__PURE__ */ o(Ne, { ...T, ref: B });
|
|
3090
|
+
const A = c.Children.only(T.children);
|
|
3091
|
+
if (!c.isValidElement(A))
|
|
3092
|
+
return /* @__PURE__ */ o(Ne, { ...T, ref: B });
|
|
3093
|
+
const W = /* @__PURE__ */ o(
|
|
3094
|
+
"span",
|
|
3095
|
+
{
|
|
3096
|
+
className: "bg-btn-brand hover:bg-btn-brand-hover disabled:bg-btn-brand-disabled pointer-events-none absolute inset-0 -z-10 rounded-[inherit]"
|
|
3097
|
+
},
|
|
3098
|
+
"brand-bg"
|
|
3099
|
+
), O = c.cloneElement(
|
|
3100
|
+
A,
|
|
3101
|
+
{
|
|
3102
|
+
...A.props,
|
|
3103
|
+
children: A.props.children ? [
|
|
3104
|
+
W,
|
|
3105
|
+
A.props.children
|
|
3106
|
+
] : W
|
|
3107
|
+
}
|
|
3108
|
+
);
|
|
3109
|
+
return /* @__PURE__ */ o(Ne, { ...T, ref: B, children: O });
|
|
3110
|
+
});
|
|
3111
|
+
N.displayName = "BrandSlot";
|
|
3112
|
+
const D = r ? N : "button", z = c.useCallback(
|
|
3113
|
+
(T) => {
|
|
3114
|
+
v.current = T, typeof f == "function" ? f(T) : f && T && (f.current = T);
|
|
3090
3115
|
},
|
|
3091
3116
|
[f]
|
|
3092
|
-
),
|
|
3117
|
+
), $ = c.useMemo(() => r ? p.children : c.Children.map(p.children, (T) => typeof T == "string" || typeof T == "number" ? /* @__PURE__ */ o(Ln, { children: T }) : T), [p.children, r]);
|
|
3093
3118
|
return /* @__PURE__ */ o(
|
|
3094
|
-
|
|
3119
|
+
D,
|
|
3095
3120
|
{
|
|
3096
3121
|
className: y(Y1({ variant: e, size: t, context: n }), a),
|
|
3097
|
-
ref:
|
|
3122
|
+
ref: z,
|
|
3098
3123
|
onMouseEnter: R,
|
|
3099
3124
|
onMouseLeave: M,
|
|
3100
3125
|
onMouseMove: S,
|
|
3101
3126
|
onMouseDown: E,
|
|
3102
3127
|
onMouseUp: k,
|
|
3103
3128
|
...p,
|
|
3104
|
-
children: r ?
|
|
3129
|
+
children: r ? $ : /* @__PURE__ */ w(de, { children: [
|
|
3105
3130
|
x && /* @__PURE__ */ o("span", { className: "bg-btn-brand hover:bg-btn-brand-hover disabled:bg-btn-brand-disabled pointer-events-none absolute inset-0 z-10 rounded-[inherit]" }),
|
|
3106
3131
|
/* @__PURE__ */ o(
|
|
3107
3132
|
"span",
|
|
@@ -3111,7 +3136,7 @@ const Y1 = rt(
|
|
|
3111
3136
|
C(t),
|
|
3112
3137
|
x ? "z-20" : ""
|
|
3113
3138
|
),
|
|
3114
|
-
children:
|
|
3139
|
+
children: $
|
|
3115
3140
|
}
|
|
3116
3141
|
)
|
|
3117
3142
|
] })
|
|
@@ -3154,7 +3179,7 @@ const J1 = {
|
|
|
3154
3179
|
return n;
|
|
3155
3180
|
return "xs";
|
|
3156
3181
|
}, Yn = () => {
|
|
3157
|
-
const [e, t] =
|
|
3182
|
+
const [e, t] = K(
|
|
3158
3183
|
Fa(window.innerWidth)
|
|
3159
3184
|
);
|
|
3160
3185
|
return pt(() => {
|
|
@@ -3174,13 +3199,13 @@ const J1 = {
|
|
|
3174
3199
|
}
|
|
3175
3200
|
return n;
|
|
3176
3201
|
}, Xr = {
|
|
3177
|
-
npm: () => import("./npm-
|
|
3178
|
-
pypi: () => import("./pypi-
|
|
3179
|
-
nuget: () => import("./nuget-
|
|
3180
|
-
go: () => import("./go-
|
|
3181
|
-
gems: () => import("./gems-
|
|
3182
|
-
maven: () => import("./maven-
|
|
3183
|
-
packagist: () => import("./packagist-
|
|
3202
|
+
npm: () => import("./npm-BYcG5_q9.mjs"),
|
|
3203
|
+
pypi: () => import("./pypi-2SUX-2OR.mjs"),
|
|
3204
|
+
nuget: () => import("./nuget-D86y5HDl.mjs"),
|
|
3205
|
+
go: () => import("./go-DsW1bFpz.mjs"),
|
|
3206
|
+
gems: () => import("./gems-DQ7pOLLr.mjs"),
|
|
3207
|
+
maven: () => import("./maven-Dub5liK1.mjs"),
|
|
3208
|
+
packagist: () => import("./packagist-BFSSrw4p.mjs")
|
|
3184
3209
|
};
|
|
3185
3210
|
function Q1() {
|
|
3186
3211
|
return /* @__PURE__ */ o("div", {});
|
|
@@ -3200,7 +3225,7 @@ function np(e) {
|
|
|
3200
3225
|
) : Aa(Fs[e]);
|
|
3201
3226
|
return kr.set(e, t), t;
|
|
3202
3227
|
}
|
|
3203
|
-
function
|
|
3228
|
+
function Y({ name: e, size: t = "small", ...n }) {
|
|
3204
3229
|
const r = np(e), a = Yn(), s = So(a, t, "small"), i = tp[s];
|
|
3205
3230
|
return /* @__PURE__ */ o(af, { fallback: ep, children: /* @__PURE__ */ o(r, { ...n, size: i }) });
|
|
3206
3231
|
}
|
|
@@ -3238,7 +3263,7 @@ function dp({
|
|
|
3238
3263
|
animationDuration: i = 40,
|
|
3239
3264
|
className: l
|
|
3240
3265
|
}) {
|
|
3241
|
-
const [d, u] =
|
|
3266
|
+
const [d, u] = K(
|
|
3242
3267
|
s ? 0 : e
|
|
3243
3268
|
), p = d;
|
|
3244
3269
|
oe(() => {
|
|
@@ -3347,7 +3372,7 @@ const On = ({
|
|
|
3347
3372
|
a
|
|
3348
3373
|
),
|
|
3349
3374
|
children: [
|
|
3350
|
-
n && /* @__PURE__ */ o("div", { className: "flex-shrink-0 rounded-[8px] border p-2", children: /* @__PURE__ */ o(
|
|
3375
|
+
n && /* @__PURE__ */ o("div", { className: "flex-shrink-0 rounded-[8px] border p-2", children: /* @__PURE__ */ o(Y, { name: n.name, size: n.size }) }),
|
|
3351
3376
|
/* @__PURE__ */ w("div", { className: "flex min-w-0 flex-grow flex-col gap-1", children: [
|
|
3352
3377
|
/* @__PURE__ */ o("div", { className: "text-md leading-none font-semibold tracking-tight", children: e }),
|
|
3353
3378
|
t && /* @__PURE__ */ o("div", { className: "text-card-foreground mt-1 flex items-center text-sm", children: t })
|
|
@@ -3566,7 +3591,7 @@ const bp = rt(
|
|
|
3566
3591
|
`Badge: The variant "${e}" is deprecated. Please use "${d[e]}" instead.`
|
|
3567
3592
|
);
|
|
3568
3593
|
}
|
|
3569
|
-
const i = n ?
|
|
3594
|
+
const i = n ? Ne : "span", l = c.useMemo(() => n ? a.children : c.Children.map(a.children, (d) => typeof d == "string" || typeof d == "number" ? /* @__PURE__ */ o(Dn, { children: d }) : d), [a.children, n]);
|
|
3570
3595
|
return /* @__PURE__ */ o(
|
|
3571
3596
|
i,
|
|
3572
3597
|
{
|
|
@@ -3871,7 +3896,7 @@ const kp = await import("./speakeasy-logo-ByBTXLWb.mjs"), Rp = rt("relative", {
|
|
|
3871
3896
|
onMouseLeave: a,
|
|
3872
3897
|
...s
|
|
3873
3898
|
}) => {
|
|
3874
|
-
const [i, l] =
|
|
3899
|
+
const [i, l] = K(!1), d = Ep(), [u, p] = K("loop-dark"), { rive: f, RiveComponent: g } = cf({
|
|
3875
3900
|
src: kp.default,
|
|
3876
3901
|
stateMachines: u,
|
|
3877
3902
|
autoplay: !0,
|
|
@@ -4141,12 +4166,12 @@ function Fp(...e) {
|
|
|
4141
4166
|
};
|
|
4142
4167
|
return n.scopeName = t.scopeName, n;
|
|
4143
4168
|
}
|
|
4144
|
-
var
|
|
4169
|
+
var Se = globalThis?.document ? c.useLayoutEffect : () => {
|
|
4145
4170
|
}, Vp = c.useId || (() => {
|
|
4146
4171
|
}), jp = 0;
|
|
4147
4172
|
function ge(e) {
|
|
4148
4173
|
const [t, n] = c.useState(Vp());
|
|
4149
|
-
return
|
|
4174
|
+
return Se(() => {
|
|
4150
4175
|
n((r) => r ?? String(jp++));
|
|
4151
4176
|
}, [e]), t ? `radix-${t}` : "";
|
|
4152
4177
|
}
|
|
@@ -4200,9 +4225,9 @@ var Gp = [
|
|
|
4200
4225
|
"span",
|
|
4201
4226
|
"svg",
|
|
4202
4227
|
"ul"
|
|
4203
|
-
],
|
|
4228
|
+
], J = Gp.reduce((e, t) => {
|
|
4204
4229
|
const n = c.forwardRef((r, a) => {
|
|
4205
|
-
const { asChild: s, ...i } = r, l = s ?
|
|
4230
|
+
const { asChild: s, ...i } = r, l = s ? Ne : t;
|
|
4206
4231
|
return typeof window < "u" && (window[Symbol.for("radix-ui")] = !0), /* @__PURE__ */ o(l, { ...i, ref: a });
|
|
4207
4232
|
});
|
|
4208
4233
|
return n.displayName = `Primitive.${t}`, { ...e, [t]: n };
|
|
@@ -4234,11 +4259,11 @@ var Kp = "DismissableLayer", Jr = "dismissableLayer.update", Xp = "dismissableLa
|
|
|
4234
4259
|
onDismiss: l,
|
|
4235
4260
|
...d
|
|
4236
4261
|
} = e, u = c.useContext(xi), [p, f] = c.useState(null), g = p?.ownerDocument ?? globalThis?.document, [, m] = c.useState({}), v = ae(t, (k) => f(k)), h = Array.from(u.layers), [b] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), x = h.indexOf(b), C = p ? h.indexOf(p) : -1, S = u.layersWithOutsidePointerEventsDisabled.size > 0, R = C >= x, M = Jp((k) => {
|
|
4237
|
-
const N = k.target,
|
|
4238
|
-
!R ||
|
|
4262
|
+
const N = k.target, D = [...u.branches].some((z) => z.contains(N));
|
|
4263
|
+
!R || D || (a?.(k), i?.(k), k.defaultPrevented || l?.());
|
|
4239
4264
|
}, g), E = Qp((k) => {
|
|
4240
4265
|
const N = k.target;
|
|
4241
|
-
[...u.branches].some((
|
|
4266
|
+
[...u.branches].some((z) => z.contains(N)) || (s?.(k), i?.(k), k.defaultPrevented || l?.());
|
|
4242
4267
|
}, g);
|
|
4243
4268
|
return Up((k) => {
|
|
4244
4269
|
C === u.layers.size - 1 && (r?.(k), !k.defaultPrevented && l && (k.preventDefault(), l()));
|
|
@@ -4253,7 +4278,7 @@ var Kp = "DismissableLayer", Jr = "dismissableLayer.update", Xp = "dismissableLa
|
|
|
4253
4278
|
const k = () => m({});
|
|
4254
4279
|
return document.addEventListener(Jr, k), () => document.removeEventListener(Jr, k);
|
|
4255
4280
|
}, []), /* @__PURE__ */ o(
|
|
4256
|
-
|
|
4281
|
+
J.div,
|
|
4257
4282
|
{
|
|
4258
4283
|
...d,
|
|
4259
4284
|
ref: v,
|
|
@@ -4280,7 +4305,7 @@ var Yp = "DismissableLayerBranch", qp = c.forwardRef((e, t) => {
|
|
|
4280
4305
|
return n.branches.add(s), () => {
|
|
4281
4306
|
n.branches.delete(s);
|
|
4282
4307
|
};
|
|
4283
|
-
}, [n.branches]), /* @__PURE__ */ o(
|
|
4308
|
+
}, [n.branches]), /* @__PURE__ */ o(J.div, { ...e, ref: a });
|
|
4284
4309
|
});
|
|
4285
4310
|
qp.displayName = Yp;
|
|
4286
4311
|
function Jp(e, t = globalThis?.document) {
|
|
@@ -4399,7 +4424,7 @@ var Pr = "focusScope.autoFocusOnMount", Ir = "focusScope.autoFocusOnUnmount", Za
|
|
|
4399
4424
|
},
|
|
4400
4425
|
[n, r, m.paused]
|
|
4401
4426
|
);
|
|
4402
|
-
return /* @__PURE__ */ o(
|
|
4427
|
+
return /* @__PURE__ */ o(J.div, { tabIndex: -1, ...i, ref: g, onKeyDown: v });
|
|
4403
4428
|
});
|
|
4404
4429
|
rn.displayName = em;
|
|
4405
4430
|
function tm(e, { select: t = !1 } = {}) {
|
|
@@ -4465,9 +4490,9 @@ function sm(e) {
|
|
|
4465
4490
|
}
|
|
4466
4491
|
var im = "Portal", zt = c.forwardRef((e, t) => {
|
|
4467
4492
|
const { container: n, ...r } = e, [a, s] = c.useState(!1);
|
|
4468
|
-
|
|
4493
|
+
Se(() => s(!0), []);
|
|
4469
4494
|
const i = n || a && globalThis?.document?.body;
|
|
4470
|
-
return i ? mf.createPortal(/* @__PURE__ */ o(
|
|
4495
|
+
return i ? mf.createPortal(/* @__PURE__ */ o(J.div, { ...r, ref: t }), i) : null;
|
|
4471
4496
|
});
|
|
4472
4497
|
zt.displayName = im;
|
|
4473
4498
|
function lm(e, t) {
|
|
@@ -4495,13 +4520,13 @@ function cm(e) {
|
|
|
4495
4520
|
return c.useEffect(() => {
|
|
4496
4521
|
const u = Cn(r.current);
|
|
4497
4522
|
s.current = l === "mounted" ? u : "none";
|
|
4498
|
-
}, [l]),
|
|
4523
|
+
}, [l]), Se(() => {
|
|
4499
4524
|
const u = r.current, p = a.current;
|
|
4500
4525
|
if (p !== e) {
|
|
4501
4526
|
const g = s.current, m = Cn(u);
|
|
4502
4527
|
e ? d("MOUNT") : m === "none" || u?.display === "none" ? d("UNMOUNT") : d(p && g !== m ? "ANIMATION_OUT" : "UNMOUNT"), a.current = e;
|
|
4503
4528
|
}
|
|
4504
|
-
}, [e, d]),
|
|
4529
|
+
}, [e, d]), Se(() => {
|
|
4505
4530
|
if (t) {
|
|
4506
4531
|
let u;
|
|
4507
4532
|
const p = t.ownerDocument.defaultView ?? window, f = (m) => {
|
|
@@ -4574,7 +4599,7 @@ function Ar(e, t) {
|
|
|
4574
4599
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
4575
4600
|
}
|
|
4576
4601
|
function mm(e, t) {
|
|
4577
|
-
var n =
|
|
4602
|
+
var n = K(function() {
|
|
4578
4603
|
return {
|
|
4579
4604
|
// value
|
|
4580
4605
|
value: e,
|
|
@@ -4953,8 +4978,8 @@ function Wm(e) {
|
|
|
4953
4978
|
return !1;
|
|
4954
4979
|
if (!r.current && "changedTouches" in h && (S || R) && (r.current = M), !M)
|
|
4955
4980
|
return !0;
|
|
4956
|
-
var
|
|
4957
|
-
return Hm(
|
|
4981
|
+
var D = r.current || M;
|
|
4982
|
+
return Hm(D, b, h, D === "h" ? S : R, !0);
|
|
4958
4983
|
}, []), d = c.useCallback(function(h) {
|
|
4959
4984
|
var b = h;
|
|
4960
4985
|
if (!(!St.length || St[St.length - 1] !== s)) {
|
|
@@ -5098,7 +5123,7 @@ var Ai = "DialogTrigger", _i = c.forwardRef(
|
|
|
5098
5123
|
(e, t) => {
|
|
5099
5124
|
const { __scopeDialog: n, ...r } = e, a = ze(Ai, n), s = ae(t, a.triggerRef);
|
|
5100
5125
|
return /* @__PURE__ */ o(
|
|
5101
|
-
|
|
5126
|
+
J.button,
|
|
5102
5127
|
{
|
|
5103
5128
|
type: "button",
|
|
5104
5129
|
"aria-haspopup": "dialog",
|
|
@@ -5133,8 +5158,8 @@ var Jm = c.forwardRef(
|
|
|
5133
5158
|
return (
|
|
5134
5159
|
// Make sure `Content` is scrollable even when it doesn't live inside `RemoveScroll`
|
|
5135
5160
|
// ie. when `Overlay` and `Content` are siblings
|
|
5136
|
-
/* @__PURE__ */ o(on, { as:
|
|
5137
|
-
|
|
5161
|
+
/* @__PURE__ */ o(on, { as: Ne, allowPinchZoom: !0, shards: [a.contentRef], children: /* @__PURE__ */ o(
|
|
5162
|
+
J.div,
|
|
5138
5163
|
{
|
|
5139
5164
|
"data-state": Do(a.open),
|
|
5140
5165
|
...r,
|
|
@@ -5235,14 +5260,14 @@ var Qm = c.forwardRef(
|
|
|
5235
5260
|
), _o = "DialogTitle", Lo = c.forwardRef(
|
|
5236
5261
|
(e, t) => {
|
|
5237
5262
|
const { __scopeDialog: n, ...r } = e, a = ze(_o, n);
|
|
5238
|
-
return /* @__PURE__ */ o(
|
|
5263
|
+
return /* @__PURE__ */ o(J.h2, { id: a.titleId, ...r, ref: t });
|
|
5239
5264
|
}
|
|
5240
5265
|
);
|
|
5241
5266
|
Lo.displayName = _o;
|
|
5242
5267
|
var Di = "DialogDescription", Oo = c.forwardRef(
|
|
5243
5268
|
(e, t) => {
|
|
5244
5269
|
const { __scopeDialog: n, ...r } = e, a = ze(Di, n);
|
|
5245
|
-
return /* @__PURE__ */ o(
|
|
5270
|
+
return /* @__PURE__ */ o(J.p, { id: a.descriptionId, ...r, ref: t });
|
|
5246
5271
|
}
|
|
5247
5272
|
);
|
|
5248
5273
|
Oo.displayName = Di;
|
|
@@ -5250,7 +5275,7 @@ var zi = "DialogClose", $n = c.forwardRef(
|
|
|
5250
5275
|
(e, t) => {
|
|
5251
5276
|
const { __scopeDialog: n, ...r } = e, a = ze(zi, n);
|
|
5252
5277
|
return /* @__PURE__ */ o(
|
|
5253
|
-
|
|
5278
|
+
J.button,
|
|
5254
5279
|
{
|
|
5255
5280
|
type: "button",
|
|
5256
5281
|
...r,
|
|
@@ -5285,8 +5310,8 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
5285
5310
|
}, [r, e, t]), null;
|
|
5286
5311
|
}, Hi = Po, o0 = _i, Fi = To, zo = Ao, $o = Zt, Vi = Lo, ji = Oo, Wi = $n, Wt = '[cmdk-group=""]', Dr = '[cmdk-group-items=""]', a0 = '[cmdk-group-heading=""]', Gi = '[cmdk-item=""]', as = `${Gi}:not([aria-disabled="true"])`, eo = "cmdk-item-select", kt = "data-value", s0 = (e, t, n) => Bp(e, t, n), Ui = c.createContext(void 0), an = () => c.useContext(Ui), Ki = c.createContext(void 0), Bo = () => c.useContext(Ki), Xi = c.createContext(void 0), Zi = c.forwardRef((e, t) => {
|
|
5287
5312
|
let n = Rt(() => {
|
|
5288
|
-
var P,
|
|
5289
|
-
return { search: "", value: (
|
|
5313
|
+
var P, U;
|
|
5314
|
+
return { search: "", value: (U = (P = e.value) != null ? P : e.defaultValue) != null ? U : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
5290
5315
|
}), r = Rt(() => /* @__PURE__ */ new Set()), a = Rt(() => /* @__PURE__ */ new Map()), s = Rt(() => /* @__PURE__ */ new Map()), i = Rt(() => /* @__PURE__ */ new Set()), l = Yi(e), { label: d, children: u, value: p, onValueChange: f, filter: g, shouldFilter: m, loop: v, disablePointerSelection: h = !1, vimBindings: b = !0, ...x } = e, C = ge(), S = ge(), R = ge(), M = c.useRef(null), E = v0();
|
|
5291
5316
|
gt(() => {
|
|
5292
5317
|
if (p !== void 0) {
|
|
@@ -5294,12 +5319,12 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
5294
5319
|
n.current.value = P, k.emit();
|
|
5295
5320
|
}
|
|
5296
5321
|
}, [p]), gt(() => {
|
|
5297
|
-
E(6,
|
|
5322
|
+
E(6, B);
|
|
5298
5323
|
}, []);
|
|
5299
|
-
let k = c.useMemo(() => ({ subscribe: (P) => (i.current.add(P), () => i.current.delete(P)), snapshot: () => n.current, setState: (P,
|
|
5300
|
-
var F, Q,
|
|
5301
|
-
if (!Object.is(n.current[P],
|
|
5302
|
-
if (n.current[P] =
|
|
5324
|
+
let k = c.useMemo(() => ({ subscribe: (P) => (i.current.add(P), () => i.current.delete(P)), snapshot: () => n.current, setState: (P, U, X) => {
|
|
5325
|
+
var F, Q, L, ee;
|
|
5326
|
+
if (!Object.is(n.current[P], U)) {
|
|
5327
|
+
if (n.current[P] = U, P === "search") T(), z(), E(1, $);
|
|
5303
5328
|
else if (P === "value") {
|
|
5304
5329
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
5305
5330
|
let se = document.getElementById(R);
|
|
@@ -5307,10 +5332,10 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
5307
5332
|
}
|
|
5308
5333
|
if (E(7, () => {
|
|
5309
5334
|
var se;
|
|
5310
|
-
n.current.selectedItemId = (se =
|
|
5311
|
-
}),
|
|
5312
|
-
let se =
|
|
5313
|
-
(ee = (
|
|
5335
|
+
n.current.selectedItemId = (se = A()) == null ? void 0 : se.id, k.emit();
|
|
5336
|
+
}), X || E(5, B), ((Q = l.current) == null ? void 0 : Q.value) !== void 0) {
|
|
5337
|
+
let se = U ?? "";
|
|
5338
|
+
(ee = (L = l.current).onValueChange) == null || ee.call(L, se);
|
|
5314
5339
|
return;
|
|
5315
5340
|
}
|
|
5316
5341
|
}
|
|
@@ -5318,117 +5343,117 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
5318
5343
|
}
|
|
5319
5344
|
}, emit: () => {
|
|
5320
5345
|
i.current.forEach((P) => P());
|
|
5321
|
-
} }), []), N = c.useMemo(() => ({ value: (P,
|
|
5346
|
+
} }), []), N = c.useMemo(() => ({ value: (P, U, X) => {
|
|
5322
5347
|
var F;
|
|
5323
|
-
|
|
5324
|
-
|
|
5348
|
+
U !== ((F = s.current.get(P)) == null ? void 0 : F.value) && (s.current.set(P, { value: U, keywords: X }), n.current.filtered.items.set(P, D(U, X)), E(2, () => {
|
|
5349
|
+
z(), k.emit();
|
|
5325
5350
|
}));
|
|
5326
|
-
}, item: (P,
|
|
5327
|
-
|
|
5351
|
+
}, item: (P, U) => (r.current.add(P), U && (a.current.has(U) ? a.current.get(U).add(P) : a.current.set(U, /* @__PURE__ */ new Set([P]))), E(3, () => {
|
|
5352
|
+
T(), z(), n.current.value || $(), k.emit();
|
|
5328
5353
|
}), () => {
|
|
5329
5354
|
s.current.delete(P), r.current.delete(P), n.current.filtered.items.delete(P);
|
|
5330
|
-
let
|
|
5355
|
+
let X = A();
|
|
5331
5356
|
E(4, () => {
|
|
5332
|
-
|
|
5357
|
+
T(), X?.getAttribute("id") === P && $(), k.emit();
|
|
5333
5358
|
});
|
|
5334
5359
|
}), group: (P) => (a.current.has(P) || a.current.set(P, /* @__PURE__ */ new Set()), () => {
|
|
5335
5360
|
s.current.delete(P), a.current.delete(P);
|
|
5336
5361
|
}), filter: () => l.current.shouldFilter, label: d || e["aria-label"], getDisablePointerSelection: () => l.current.disablePointerSelection, listId: C, inputId: R, labelId: S, listInnerRef: M }), []);
|
|
5337
|
-
function
|
|
5338
|
-
var
|
|
5339
|
-
let Q = (F = (
|
|
5340
|
-
return P ? Q(P, n.current.search,
|
|
5362
|
+
function D(P, U) {
|
|
5363
|
+
var X, F;
|
|
5364
|
+
let Q = (F = (X = l.current) == null ? void 0 : X.filter) != null ? F : s0;
|
|
5365
|
+
return P ? Q(P, n.current.search, U) : 0;
|
|
5341
5366
|
}
|
|
5342
|
-
function
|
|
5367
|
+
function z() {
|
|
5343
5368
|
if (!n.current.search || l.current.shouldFilter === !1) return;
|
|
5344
|
-
let P = n.current.filtered.items,
|
|
5369
|
+
let P = n.current.filtered.items, U = [];
|
|
5345
5370
|
n.current.filtered.groups.forEach((F) => {
|
|
5346
|
-
let Q = a.current.get(F),
|
|
5371
|
+
let Q = a.current.get(F), L = 0;
|
|
5347
5372
|
Q.forEach((ee) => {
|
|
5348
5373
|
let se = P.get(ee);
|
|
5349
|
-
|
|
5350
|
-
}),
|
|
5374
|
+
L = Math.max(se, L);
|
|
5375
|
+
}), U.push([F, L]);
|
|
5351
5376
|
});
|
|
5352
|
-
let
|
|
5353
|
-
|
|
5354
|
-
var
|
|
5377
|
+
let X = M.current;
|
|
5378
|
+
W().sort((F, Q) => {
|
|
5379
|
+
var L, ee;
|
|
5355
5380
|
let se = F.getAttribute("id"), ie = Q.getAttribute("id");
|
|
5356
|
-
return ((
|
|
5381
|
+
return ((L = P.get(ie)) != null ? L : 0) - ((ee = P.get(se)) != null ? ee : 0);
|
|
5357
5382
|
}).forEach((F) => {
|
|
5358
5383
|
let Q = F.closest(Dr);
|
|
5359
|
-
Q ? Q.appendChild(F.parentElement === Q ? F : F.closest(`${Dr} > *`)) :
|
|
5360
|
-
}),
|
|
5384
|
+
Q ? Q.appendChild(F.parentElement === Q ? F : F.closest(`${Dr} > *`)) : X.appendChild(F.parentElement === X ? F : F.closest(`${Dr} > *`));
|
|
5385
|
+
}), U.sort((F, Q) => Q[1] - F[1]).forEach((F) => {
|
|
5361
5386
|
var Q;
|
|
5362
|
-
let
|
|
5363
|
-
|
|
5387
|
+
let L = (Q = M.current) == null ? void 0 : Q.querySelector(`${Wt}[${kt}="${encodeURIComponent(F[0])}"]`);
|
|
5388
|
+
L?.parentElement.appendChild(L);
|
|
5364
5389
|
});
|
|
5365
5390
|
}
|
|
5366
|
-
function
|
|
5367
|
-
let P =
|
|
5368
|
-
k.setState("value",
|
|
5391
|
+
function $() {
|
|
5392
|
+
let P = W().find((X) => X.getAttribute("aria-disabled") !== "true"), U = P?.getAttribute(kt);
|
|
5393
|
+
k.setState("value", U || void 0);
|
|
5369
5394
|
}
|
|
5370
|
-
function
|
|
5371
|
-
var P,
|
|
5395
|
+
function T() {
|
|
5396
|
+
var P, U, X, F;
|
|
5372
5397
|
if (!n.current.search || l.current.shouldFilter === !1) {
|
|
5373
5398
|
n.current.filtered.count = r.current.size;
|
|
5374
5399
|
return;
|
|
5375
5400
|
}
|
|
5376
5401
|
n.current.filtered.groups = /* @__PURE__ */ new Set();
|
|
5377
5402
|
let Q = 0;
|
|
5378
|
-
for (let
|
|
5379
|
-
let ee = (
|
|
5380
|
-
n.current.filtered.items.set(
|
|
5403
|
+
for (let L of r.current) {
|
|
5404
|
+
let ee = (U = (P = s.current.get(L)) == null ? void 0 : P.value) != null ? U : "", se = (F = (X = s.current.get(L)) == null ? void 0 : X.keywords) != null ? F : [], ie = D(ee, se);
|
|
5405
|
+
n.current.filtered.items.set(L, ie), ie > 0 && Q++;
|
|
5381
5406
|
}
|
|
5382
|
-
for (let [
|
|
5383
|
-
n.current.filtered.groups.add(
|
|
5407
|
+
for (let [L, ee] of a.current) for (let se of ee) if (n.current.filtered.items.get(se) > 0) {
|
|
5408
|
+
n.current.filtered.groups.add(L);
|
|
5384
5409
|
break;
|
|
5385
5410
|
}
|
|
5386
5411
|
n.current.filtered.count = Q;
|
|
5387
5412
|
}
|
|
5388
|
-
function
|
|
5389
|
-
var P,
|
|
5390
|
-
let F =
|
|
5391
|
-
F && (((P = F.parentElement) == null ? void 0 : P.firstChild) === F && ((
|
|
5413
|
+
function B() {
|
|
5414
|
+
var P, U, X;
|
|
5415
|
+
let F = A();
|
|
5416
|
+
F && (((P = F.parentElement) == null ? void 0 : P.firstChild) === F && ((X = (U = F.closest(Wt)) == null ? void 0 : U.querySelector(a0)) == null || X.scrollIntoView({ block: "nearest" })), F.scrollIntoView({ block: "nearest" }));
|
|
5392
5417
|
}
|
|
5393
|
-
function
|
|
5418
|
+
function A() {
|
|
5394
5419
|
var P;
|
|
5395
5420
|
return (P = M.current) == null ? void 0 : P.querySelector(`${Gi}[aria-selected="true"]`);
|
|
5396
5421
|
}
|
|
5397
|
-
function
|
|
5422
|
+
function W() {
|
|
5398
5423
|
var P;
|
|
5399
5424
|
return Array.from(((P = M.current) == null ? void 0 : P.querySelectorAll(as)) || []);
|
|
5400
5425
|
}
|
|
5401
|
-
function
|
|
5402
|
-
let
|
|
5403
|
-
|
|
5426
|
+
function O(P) {
|
|
5427
|
+
let U = W()[P];
|
|
5428
|
+
U && k.setState("value", U.getAttribute(kt));
|
|
5404
5429
|
}
|
|
5405
|
-
function
|
|
5406
|
-
var
|
|
5407
|
-
let
|
|
5408
|
-
(
|
|
5430
|
+
function G(P) {
|
|
5431
|
+
var U;
|
|
5432
|
+
let X = A(), F = W(), Q = F.findIndex((ee) => ee === X), L = F[Q + P];
|
|
5433
|
+
(U = l.current) != null && U.loop && (L = Q + P < 0 ? F[F.length - 1] : Q + P === F.length ? F[0] : F[Q + P]), L && k.setState("value", L.getAttribute(kt));
|
|
5409
5434
|
}
|
|
5410
|
-
function
|
|
5411
|
-
let
|
|
5412
|
-
for (;
|
|
5413
|
-
F ? k.setState("value", F.getAttribute(kt)) :
|
|
5435
|
+
function _(P) {
|
|
5436
|
+
let U = A(), X = U?.closest(Wt), F;
|
|
5437
|
+
for (; X && !F; ) X = P > 0 ? h0(X, Wt) : g0(X, Wt), F = X?.querySelector(as);
|
|
5438
|
+
F ? k.setState("value", F.getAttribute(kt)) : G(P);
|
|
5414
5439
|
}
|
|
5415
|
-
let
|
|
5416
|
-
P.preventDefault(), P.metaKey ?
|
|
5440
|
+
let I = () => O(W().length - 1), q = (P) => {
|
|
5441
|
+
P.preventDefault(), P.metaKey ? I() : P.altKey ? _(1) : G(1);
|
|
5417
5442
|
}, ne = (P) => {
|
|
5418
|
-
P.preventDefault(), P.metaKey ?
|
|
5443
|
+
P.preventDefault(), P.metaKey ? O(0) : P.altKey ? _(-1) : G(-1);
|
|
5419
5444
|
};
|
|
5420
|
-
return c.createElement(
|
|
5421
|
-
var
|
|
5422
|
-
(
|
|
5423
|
-
let
|
|
5424
|
-
if (!(P.defaultPrevented ||
|
|
5445
|
+
return c.createElement(J.div, { ref: t, tabIndex: -1, ...x, "cmdk-root": "", onKeyDown: (P) => {
|
|
5446
|
+
var U;
|
|
5447
|
+
(U = x.onKeyDown) == null || U.call(x, P);
|
|
5448
|
+
let X = P.nativeEvent.isComposing || P.keyCode === 229;
|
|
5449
|
+
if (!(P.defaultPrevented || X)) switch (P.key) {
|
|
5425
5450
|
case "n":
|
|
5426
5451
|
case "j": {
|
|
5427
|
-
b && P.ctrlKey &&
|
|
5452
|
+
b && P.ctrlKey && q(P);
|
|
5428
5453
|
break;
|
|
5429
5454
|
}
|
|
5430
5455
|
case "ArrowDown": {
|
|
5431
|
-
|
|
5456
|
+
q(P);
|
|
5432
5457
|
break;
|
|
5433
5458
|
}
|
|
5434
5459
|
case "p":
|
|
@@ -5441,16 +5466,16 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
5441
5466
|
break;
|
|
5442
5467
|
}
|
|
5443
5468
|
case "Home": {
|
|
5444
|
-
P.preventDefault(),
|
|
5469
|
+
P.preventDefault(), O(0);
|
|
5445
5470
|
break;
|
|
5446
5471
|
}
|
|
5447
5472
|
case "End": {
|
|
5448
|
-
P.preventDefault(),
|
|
5473
|
+
P.preventDefault(), I();
|
|
5449
5474
|
break;
|
|
5450
5475
|
}
|
|
5451
5476
|
case "Enter": {
|
|
5452
5477
|
P.preventDefault();
|
|
5453
|
-
let F =
|
|
5478
|
+
let F = A();
|
|
5454
5479
|
if (F) {
|
|
5455
5480
|
let Q = new Event(eo);
|
|
5456
5481
|
F.dispatchEvent(Q);
|
|
@@ -5478,20 +5503,20 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
5478
5503
|
}
|
|
5479
5504
|
if (!m) return null;
|
|
5480
5505
|
let { disabled: b, value: x, onSelect: C, forceMount: S, keywords: R, ...M } = e;
|
|
5481
|
-
return c.createElement(
|
|
5506
|
+
return c.createElement(J.div, { ref: Ge(s, t), ...M, id: a, "cmdk-item": "", role: "option", "aria-disabled": !!b, "aria-selected": !!g, "data-disabled": !!b, "data-selected": !!g, onPointerMove: b || l.getDisablePointerSelection() ? void 0 : h, onClick: b ? void 0 : v }, e.children);
|
|
5482
5507
|
}), l0 = c.forwardRef((e, t) => {
|
|
5483
5508
|
let { heading: n, children: r, forceMount: a, ...s } = e, i = ge(), l = c.useRef(null), d = c.useRef(null), u = ge(), p = an(), f = Qe((m) => a || p.filter() === !1 ? !0 : m.search ? m.filtered.groups.has(i) : !0);
|
|
5484
5509
|
gt(() => p.group(i), []), qi(i, l, [e.value, e.heading, d]);
|
|
5485
5510
|
let g = c.useMemo(() => ({ id: i, forceMount: a }), [a]);
|
|
5486
|
-
return c.createElement(
|
|
5511
|
+
return c.createElement(J.div, { ref: Ge(l, t), ...s, "cmdk-group": "", role: "presentation", hidden: f ? void 0 : !0 }, n && c.createElement("div", { ref: d, "cmdk-group-heading": "", "aria-hidden": !0, id: u }, n), tr(e, (m) => c.createElement("div", { "cmdk-group-items": "", role: "group", "aria-labelledby": n ? u : void 0 }, c.createElement(Xi.Provider, { value: g }, m))));
|
|
5487
5512
|
}), c0 = c.forwardRef((e, t) => {
|
|
5488
5513
|
let { alwaysRender: n, ...r } = e, a = c.useRef(null), s = Qe((i) => !i.search);
|
|
5489
|
-
return !n && !s ? null : c.createElement(
|
|
5514
|
+
return !n && !s ? null : c.createElement(J.div, { ref: Ge(a, t), ...r, "cmdk-separator": "", role: "separator" });
|
|
5490
5515
|
}), d0 = c.forwardRef((e, t) => {
|
|
5491
5516
|
let { onValueChange: n, ...r } = e, a = e.value != null, s = Bo(), i = Qe((u) => u.search), l = Qe((u) => u.selectedItemId), d = an();
|
|
5492
5517
|
return c.useEffect(() => {
|
|
5493
5518
|
e.value != null && s.setState("search", e.value);
|
|
5494
|
-
}, [e.value]), c.createElement(
|
|
5519
|
+
}, [e.value]), c.createElement(J.input, { ref: t, ...r, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": d.listId, "aria-labelledby": d.labelId, "aria-activedescendant": l, id: d.inputId, type: "text", value: a ? e.value : i, onChange: (u) => {
|
|
5495
5520
|
a || s.setState("search", u.target.value), n?.(u.target.value);
|
|
5496
5521
|
} });
|
|
5497
5522
|
}), u0 = c.forwardRef((e, t) => {
|
|
@@ -5508,14 +5533,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
5508
5533
|
cancelAnimationFrame(f), g.unobserve(u);
|
|
5509
5534
|
};
|
|
5510
5535
|
}
|
|
5511
|
-
}, []), c.createElement(
|
|
5536
|
+
}, []), c.createElement(J.div, { ref: Ge(s, t), ...a, "cmdk-list": "", role: "listbox", tabIndex: -1, "aria-activedescendant": l, "aria-label": r, id: d.listId }, tr(e, (u) => c.createElement("div", { ref: Ge(i, d.listInnerRef), "cmdk-list-sizer": "" }, u)));
|
|
5512
5537
|
}), f0 = c.forwardRef((e, t) => {
|
|
5513
5538
|
let { open: n, onOpenChange: r, overlayClassName: a, contentClassName: s, container: i, ...l } = e;
|
|
5514
5539
|
return c.createElement(Hi, { open: n, onOpenChange: r }, c.createElement(Fi, { container: i }, c.createElement(zo, { "cmdk-overlay": "", className: a }), c.createElement($o, { "aria-label": e.label, "cmdk-dialog": "", className: s }, c.createElement(Zi, { ref: t, ...l }))));
|
|
5515
|
-
}), p0 = c.forwardRef((e, t) => Qe((n) => n.filtered.count === 0) ? c.createElement(
|
|
5540
|
+
}), p0 = c.forwardRef((e, t) => Qe((n) => n.filtered.count === 0) ? c.createElement(J.div, { ref: t, ...e, "cmdk-empty": "", role: "presentation" }) : null), m0 = c.forwardRef((e, t) => {
|
|
5516
5541
|
let { progress: n, children: r, label: a = "Loading...", ...s } = e;
|
|
5517
|
-
return c.createElement(
|
|
5518
|
-
}),
|
|
5542
|
+
return c.createElement(J.div, { ref: t, ...s, "cmdk-loading": "", role: "progressbar", "aria-valuenow": n, "aria-valuemin": 0, "aria-valuemax": 100, "aria-label": a }, tr(e, (i) => c.createElement("div", { "aria-hidden": !0 }, i)));
|
|
5543
|
+
}), Ee = Object.assign(Zi, { List: u0, Item: i0, Input: d0, Group: l0, Separator: c0, Dialog: f0, Empty: p0, Loading: m0 });
|
|
5519
5544
|
function h0(e, t) {
|
|
5520
5545
|
let n = e.nextElementSibling;
|
|
5521
5546
|
for (; n; ) {
|
|
@@ -5669,7 +5694,7 @@ const C0 = Object.assign(Hi, {
|
|
|
5669
5694
|
Title: nl,
|
|
5670
5695
|
Description: rl
|
|
5671
5696
|
}), yt = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(
|
|
5672
|
-
|
|
5697
|
+
Ee,
|
|
5673
5698
|
{
|
|
5674
5699
|
ref: n,
|
|
5675
5700
|
className: y(
|
|
@@ -5679,11 +5704,11 @@ const C0 = Object.assign(Hi, {
|
|
|
5679
5704
|
...t
|
|
5680
5705
|
}
|
|
5681
5706
|
));
|
|
5682
|
-
yt.displayName =
|
|
5707
|
+
yt.displayName = Ee.displayName;
|
|
5683
5708
|
const Fo = c.forwardRef(({ ...e }, t) => /* @__PURE__ */ w("div", { className: "flex items-center gap-2 border-b px-3", "cmdk-input-wrapper": "", children: [
|
|
5684
|
-
/* @__PURE__ */ o(
|
|
5709
|
+
/* @__PURE__ */ o(Y, { name: "search" }),
|
|
5685
5710
|
/* @__PURE__ */ o(
|
|
5686
|
-
|
|
5711
|
+
Ee.Input,
|
|
5687
5712
|
{
|
|
5688
5713
|
ref: t,
|
|
5689
5714
|
className: y(
|
|
@@ -5693,27 +5718,27 @@ const Fo = c.forwardRef(({ ...e }, t) => /* @__PURE__ */ w("div", { className: "
|
|
|
5693
5718
|
}
|
|
5694
5719
|
)
|
|
5695
5720
|
] }));
|
|
5696
|
-
Fo.displayName =
|
|
5721
|
+
Fo.displayName = Ee.Input.displayName;
|
|
5697
5722
|
const Vo = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(
|
|
5698
|
-
|
|
5723
|
+
Ee.List,
|
|
5699
5724
|
{
|
|
5700
5725
|
ref: n,
|
|
5701
5726
|
className: y("max-h-[300px] overflow-x-hidden overflow-y-auto", e),
|
|
5702
5727
|
...t
|
|
5703
5728
|
}
|
|
5704
5729
|
));
|
|
5705
|
-
Vo.displayName =
|
|
5730
|
+
Vo.displayName = Ee.List.displayName;
|
|
5706
5731
|
const ol = c.forwardRef((e, t) => /* @__PURE__ */ o(
|
|
5707
|
-
|
|
5732
|
+
Ee.Empty,
|
|
5708
5733
|
{
|
|
5709
5734
|
ref: t,
|
|
5710
5735
|
className: "py-6 text-center text-sm",
|
|
5711
5736
|
...e
|
|
5712
5737
|
}
|
|
5713
5738
|
));
|
|
5714
|
-
ol.displayName =
|
|
5739
|
+
ol.displayName = Ee.Empty.displayName;
|
|
5715
5740
|
const jo = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(
|
|
5716
|
-
|
|
5741
|
+
Ee.Group,
|
|
5717
5742
|
{
|
|
5718
5743
|
ref: n,
|
|
5719
5744
|
className: y(
|
|
@@ -5723,18 +5748,18 @@ const jo = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(
|
|
|
5723
5748
|
...t
|
|
5724
5749
|
}
|
|
5725
5750
|
));
|
|
5726
|
-
jo.displayName =
|
|
5751
|
+
jo.displayName = Ee.Group.displayName;
|
|
5727
5752
|
const iv = ({ children: e, ...t }) => /* @__PURE__ */ o(C0, { ...t, children: /* @__PURE__ */ o(Zt, { className: "overflow-hidden p-0 shadow-lg", children: /* @__PURE__ */ o(yt, { className: "[&_[cmdk-group-heading]]:text-muted-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5", children: e }) }) }), N0 = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(
|
|
5728
|
-
|
|
5753
|
+
Ee.Separator,
|
|
5729
5754
|
{
|
|
5730
5755
|
ref: n,
|
|
5731
5756
|
className: y("bg-border -mx-1 h-px", e),
|
|
5732
5757
|
...t
|
|
5733
5758
|
}
|
|
5734
5759
|
));
|
|
5735
|
-
N0.displayName =
|
|
5760
|
+
N0.displayName = Ee.Separator.displayName;
|
|
5736
5761
|
const Ie = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(
|
|
5737
|
-
|
|
5762
|
+
Ee.Item,
|
|
5738
5763
|
{
|
|
5739
5764
|
ref: n,
|
|
5740
5765
|
className: y(
|
|
@@ -5744,7 +5769,7 @@ const Ie = c.forwardRef(({ className: e, ...t }, n) => /* @__PURE__ */ o(
|
|
|
5744
5769
|
...t
|
|
5745
5770
|
}
|
|
5746
5771
|
));
|
|
5747
|
-
Ie.displayName =
|
|
5772
|
+
Ie.displayName = Ee.Item.displayName;
|
|
5748
5773
|
const S0 = ({
|
|
5749
5774
|
className: e,
|
|
5750
5775
|
...t
|
|
@@ -5759,7 +5784,7 @@ const S0 = ({
|
|
|
5759
5784
|
}
|
|
5760
5785
|
);
|
|
5761
5786
|
S0.displayName = "CommandShortcut";
|
|
5762
|
-
const E0 = ["top", "right", "bottom", "left"], et = Math.min,
|
|
5787
|
+
const E0 = ["top", "right", "bottom", "left"], et = Math.min, ke = Math.max, Bn = Math.round, Rn = Math.floor, He = (e) => ({
|
|
5763
5788
|
x: e,
|
|
5764
5789
|
y: e
|
|
5765
5790
|
}), k0 = {
|
|
@@ -5772,7 +5797,7 @@ const E0 = ["top", "right", "bottom", "left"], et = Math.min, Ee = Math.max, Bn
|
|
|
5772
5797
|
end: "start"
|
|
5773
5798
|
};
|
|
5774
5799
|
function to(e, t, n) {
|
|
5775
|
-
return
|
|
5800
|
+
return ke(e, et(t, n));
|
|
5776
5801
|
}
|
|
5777
5802
|
function Xe(e, t) {
|
|
5778
5803
|
return typeof e == "function" ? e(t) : e;
|
|
@@ -6042,17 +6067,17 @@ const L0 = (e) => ({
|
|
|
6042
6067
|
}, m = Uo(a), v = Go(m), h = await i.getDimensions(u), b = m === "y", x = b ? "top" : "left", C = b ? "bottom" : "right", S = b ? "clientHeight" : "clientWidth", R = s.reference[v] + s.reference[m] - g[m] - s.floating[v], M = g[m] - s.reference[m], E = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
6043
6068
|
let k = E ? E[S] : 0;
|
|
6044
6069
|
(!k || !await (i.isElement == null ? void 0 : i.isElement(E))) && (k = l.floating[S] || s.floating[v]);
|
|
6045
|
-
const N = R / 2 - M / 2,
|
|
6070
|
+
const N = R / 2 - M / 2, D = k / 2 - h[v] / 2 - 1, z = et(f[x], D), $ = et(f[C], D), T = z, B = k - h[v] - $, A = k / 2 - h[v] / 2 + N, W = to(T, A, B), O = !d.arrow && $t(a) != null && A !== W && s.reference[v] / 2 - (A < T ? z : $) - h[v] / 2 < 0, G = O ? A < T ? A - T : A - B : 0;
|
|
6046
6071
|
return {
|
|
6047
|
-
[m]: g[m] +
|
|
6072
|
+
[m]: g[m] + G,
|
|
6048
6073
|
data: {
|
|
6049
|
-
[m]:
|
|
6050
|
-
centerOffset:
|
|
6051
|
-
...
|
|
6052
|
-
alignmentOffset:
|
|
6074
|
+
[m]: W,
|
|
6075
|
+
centerOffset: A - W - G,
|
|
6076
|
+
...O && {
|
|
6077
|
+
alignmentOffset: G
|
|
6053
6078
|
}
|
|
6054
6079
|
},
|
|
6055
|
-
reset:
|
|
6080
|
+
reset: O
|
|
6056
6081
|
};
|
|
6057
6082
|
}
|
|
6058
6083
|
}), O0 = function(e) {
|
|
@@ -6081,53 +6106,53 @@ const L0 = (e) => ({
|
|
|
6081
6106
|
return {};
|
|
6082
6107
|
const x = Ze(a), C = tt(l), S = Ze(l) === l, R = await (d.isRTL == null ? void 0 : d.isRTL(u.floating)), M = g || (S || !h ? [Hn(l)] : P0(l)), E = v !== "none";
|
|
6083
6108
|
!g && E && M.push(...T0(l, h, v, R));
|
|
6084
|
-
const k = [l, ...M], N = await Yt(t, b),
|
|
6085
|
-
let
|
|
6086
|
-
if (p &&
|
|
6087
|
-
const
|
|
6088
|
-
|
|
6109
|
+
const k = [l, ...M], N = await Yt(t, b), D = [];
|
|
6110
|
+
let z = ((r = s.flip) == null ? void 0 : r.overflows) || [];
|
|
6111
|
+
if (p && D.push(N[x]), f) {
|
|
6112
|
+
const A = M0(a, i, R);
|
|
6113
|
+
D.push(N[A[0]], N[A[1]]);
|
|
6089
6114
|
}
|
|
6090
|
-
if (
|
|
6115
|
+
if (z = [...z, {
|
|
6091
6116
|
placement: a,
|
|
6092
|
-
overflows:
|
|
6093
|
-
}], !
|
|
6094
|
-
var
|
|
6095
|
-
const
|
|
6096
|
-
if (
|
|
6117
|
+
overflows: D
|
|
6118
|
+
}], !D.every((A) => A <= 0)) {
|
|
6119
|
+
var $, T;
|
|
6120
|
+
const A = ((($ = s.flip) == null ? void 0 : $.index) || 0) + 1, W = k[A];
|
|
6121
|
+
if (W)
|
|
6097
6122
|
return {
|
|
6098
6123
|
data: {
|
|
6099
|
-
index:
|
|
6100
|
-
overflows:
|
|
6124
|
+
index: A,
|
|
6125
|
+
overflows: z
|
|
6101
6126
|
},
|
|
6102
6127
|
reset: {
|
|
6103
|
-
placement:
|
|
6128
|
+
placement: W
|
|
6104
6129
|
}
|
|
6105
6130
|
};
|
|
6106
|
-
let
|
|
6107
|
-
if (!
|
|
6131
|
+
let O = (T = z.filter((G) => G.overflows[0] <= 0).sort((G, _) => G.overflows[1] - _.overflows[1])[0]) == null ? void 0 : T.placement;
|
|
6132
|
+
if (!O)
|
|
6108
6133
|
switch (m) {
|
|
6109
6134
|
case "bestFit": {
|
|
6110
|
-
var
|
|
6111
|
-
const
|
|
6135
|
+
var B;
|
|
6136
|
+
const G = (B = z.filter((_) => {
|
|
6112
6137
|
if (E) {
|
|
6113
|
-
const
|
|
6114
|
-
return
|
|
6138
|
+
const I = tt(_.placement);
|
|
6139
|
+
return I === C || // Create a bias to the `y` side axis due to horizontal
|
|
6115
6140
|
// reading directions favoring greater width.
|
|
6116
|
-
|
|
6141
|
+
I === "y";
|
|
6117
6142
|
}
|
|
6118
6143
|
return !0;
|
|
6119
|
-
}).map((
|
|
6120
|
-
|
|
6144
|
+
}).map((_) => [_.placement, _.overflows.filter((I) => I > 0).reduce((I, q) => I + q, 0)]).sort((_, I) => _[1] - I[1])[0]) == null ? void 0 : B[0];
|
|
6145
|
+
G && (O = G);
|
|
6121
6146
|
break;
|
|
6122
6147
|
}
|
|
6123
6148
|
case "initialPlacement":
|
|
6124
|
-
|
|
6149
|
+
O = l;
|
|
6125
6150
|
break;
|
|
6126
6151
|
}
|
|
6127
|
-
if (a !==
|
|
6152
|
+
if (a !== O)
|
|
6128
6153
|
return {
|
|
6129
6154
|
reset: {
|
|
6130
|
-
placement:
|
|
6155
|
+
placement: O
|
|
6131
6156
|
}
|
|
6132
6157
|
};
|
|
6133
6158
|
}
|
|
@@ -6359,16 +6384,16 @@ const $0 = function(e) {
|
|
|
6359
6384
|
const C = h - p.top - p.bottom, S = v - p.left - p.right, R = et(h - p[b], C), M = et(v - p[x], S), E = !t.middlewareData.shift;
|
|
6360
6385
|
let k = R, N = M;
|
|
6361
6386
|
if ((n = t.middlewareData.shift) != null && n.enabled.x && (N = S), (r = t.middlewareData.shift) != null && r.enabled.y && (k = C), E && !g) {
|
|
6362
|
-
const
|
|
6363
|
-
m ? N = v - 2 * (
|
|
6387
|
+
const z = ke(p.left, 0), $ = ke(p.right, 0), T = ke(p.top, 0), B = ke(p.bottom, 0);
|
|
6388
|
+
m ? N = v - 2 * (z !== 0 || $ !== 0 ? z + $ : ke(p.left, p.right)) : k = h - 2 * (T !== 0 || B !== 0 ? T + B : ke(p.top, p.bottom));
|
|
6364
6389
|
}
|
|
6365
6390
|
await d({
|
|
6366
6391
|
...t,
|
|
6367
6392
|
availableWidth: N,
|
|
6368
6393
|
availableHeight: k
|
|
6369
6394
|
});
|
|
6370
|
-
const
|
|
6371
|
-
return v !==
|
|
6395
|
+
const D = await i.getDimensions(l.floating);
|
|
6396
|
+
return v !== D.width || h !== D.height ? {
|
|
6372
6397
|
reset: {
|
|
6373
6398
|
rects: !0
|
|
6374
6399
|
}
|
|
@@ -6382,7 +6407,7 @@ function nr() {
|
|
|
6382
6407
|
function Bt(e) {
|
|
6383
6408
|
return sl(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
6384
6409
|
}
|
|
6385
|
-
function
|
|
6410
|
+
function Re(e) {
|
|
6386
6411
|
var t;
|
|
6387
6412
|
return (e == null || (t = e.ownerDocument) == null ? void 0 : t.defaultView) || window;
|
|
6388
6413
|
}
|
|
@@ -6391,16 +6416,16 @@ function je(e) {
|
|
|
6391
6416
|
return (t = (sl(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
6392
6417
|
}
|
|
6393
6418
|
function sl(e) {
|
|
6394
|
-
return nr() ? e instanceof Node || e instanceof
|
|
6419
|
+
return nr() ? e instanceof Node || e instanceof Re(e).Node : !1;
|
|
6395
6420
|
}
|
|
6396
6421
|
function Oe(e) {
|
|
6397
|
-
return nr() ? e instanceof Element || e instanceof
|
|
6422
|
+
return nr() ? e instanceof Element || e instanceof Re(e).Element : !1;
|
|
6398
6423
|
}
|
|
6399
6424
|
function Fe(e) {
|
|
6400
|
-
return nr() ? e instanceof HTMLElement || e instanceof
|
|
6425
|
+
return nr() ? e instanceof HTMLElement || e instanceof Re(e).HTMLElement : !1;
|
|
6401
6426
|
}
|
|
6402
6427
|
function cs(e) {
|
|
6403
|
-
return !nr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof
|
|
6428
|
+
return !nr() || typeof ShadowRoot > "u" ? !1 : e instanceof ShadowRoot || e instanceof Re(e).ShadowRoot;
|
|
6404
6429
|
}
|
|
6405
6430
|
function sn(e) {
|
|
6406
6431
|
const {
|
|
@@ -6445,7 +6470,7 @@ function It(e) {
|
|
|
6445
6470
|
return ["html", "body", "#document"].includes(Bt(e));
|
|
6446
6471
|
}
|
|
6447
6472
|
function De(e) {
|
|
6448
|
-
return
|
|
6473
|
+
return Re(e).getComputedStyle(e);
|
|
6449
6474
|
}
|
|
6450
6475
|
function or(e) {
|
|
6451
6476
|
return Oe(e) ? {
|
|
@@ -6475,7 +6500,7 @@ function il(e) {
|
|
|
6475
6500
|
function qt(e, t, n) {
|
|
6476
6501
|
var r;
|
|
6477
6502
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
6478
|
-
const a = il(e), s = a === ((r = e.ownerDocument) == null ? void 0 : r.body), i =
|
|
6503
|
+
const a = il(e), s = a === ((r = e.ownerDocument) == null ? void 0 : r.body), i = Re(a);
|
|
6479
6504
|
if (s) {
|
|
6480
6505
|
const l = ro(i);
|
|
6481
6506
|
return t.concat(i, i.visualViewport || [], sn(a) ? a : [], l && n ? qt(l) : []);
|
|
@@ -6515,14 +6540,14 @@ function Pt(e) {
|
|
|
6515
6540
|
}
|
|
6516
6541
|
const W0 = /* @__PURE__ */ He(0);
|
|
6517
6542
|
function cl(e) {
|
|
6518
|
-
const t =
|
|
6543
|
+
const t = Re(e);
|
|
6519
6544
|
return !Xo() || !t.visualViewport ? W0 : {
|
|
6520
6545
|
x: t.visualViewport.offsetLeft,
|
|
6521
6546
|
y: t.visualViewport.offsetTop
|
|
6522
6547
|
};
|
|
6523
6548
|
}
|
|
6524
6549
|
function G0(e, t, n) {
|
|
6525
|
-
return t === void 0 && (t = !1), !n || t && n !==
|
|
6550
|
+
return t === void 0 && (t = !1), !n || t && n !== Re(e) ? !1 : t;
|
|
6526
6551
|
}
|
|
6527
6552
|
function vt(e, t, n, r) {
|
|
6528
6553
|
t === void 0 && (t = !1), n === void 0 && (n = !1);
|
|
@@ -6532,11 +6557,11 @@ function vt(e, t, n, r) {
|
|
|
6532
6557
|
const l = G0(s, n, r) ? cl(s) : He(0);
|
|
6533
6558
|
let d = (a.left + l.x) / i.x, u = (a.top + l.y) / i.y, p = a.width / i.x, f = a.height / i.y;
|
|
6534
6559
|
if (s) {
|
|
6535
|
-
const g =
|
|
6560
|
+
const g = Re(s), m = r && Oe(r) ? Re(r) : r;
|
|
6536
6561
|
let v = g, h = ro(v);
|
|
6537
6562
|
for (; h && r && m !== v; ) {
|
|
6538
6563
|
const b = Pt(h), x = h.getBoundingClientRect(), C = De(h), S = x.left + (h.clientLeft + parseFloat(C.paddingLeft)) * b.x, R = x.top + (h.clientTop + parseFloat(C.paddingTop)) * b.y;
|
|
6539
|
-
d *= b.x, u *= b.y, p *= b.x, f *= b.y, d += S, u += R, v =
|
|
6564
|
+
d *= b.x, u *= b.y, p *= b.x, f *= b.y, d += S, u += R, v = Re(h), h = ro(v);
|
|
6540
6565
|
}
|
|
6541
6566
|
}
|
|
6542
6567
|
return Fn({
|
|
@@ -6592,10 +6617,10 @@ function K0(e) {
|
|
|
6592
6617
|
return Array.from(e.getClientRects());
|
|
6593
6618
|
}
|
|
6594
6619
|
function X0(e) {
|
|
6595
|
-
const t = je(e), n = or(e), r = e.ownerDocument.body, a =
|
|
6620
|
+
const t = je(e), n = or(e), r = e.ownerDocument.body, a = ke(t.scrollWidth, t.clientWidth, r.scrollWidth, r.clientWidth), s = ke(t.scrollHeight, t.clientHeight, r.scrollHeight, r.clientHeight);
|
|
6596
6621
|
let i = -n.scrollLeft + Yo(e);
|
|
6597
6622
|
const l = -n.scrollTop;
|
|
6598
|
-
return De(r).direction === "rtl" && (i +=
|
|
6623
|
+
return De(r).direction === "rtl" && (i += ke(t.clientWidth, r.clientWidth) - a), {
|
|
6599
6624
|
width: a,
|
|
6600
6625
|
height: s,
|
|
6601
6626
|
x: i,
|
|
@@ -6603,7 +6628,7 @@ function X0(e) {
|
|
|
6603
6628
|
};
|
|
6604
6629
|
}
|
|
6605
6630
|
function Z0(e, t) {
|
|
6606
|
-
const n =
|
|
6631
|
+
const n = Re(e), r = je(e), a = n.visualViewport;
|
|
6607
6632
|
let s = r.clientWidth, i = r.clientHeight, l = 0, d = 0;
|
|
6608
6633
|
if (a) {
|
|
6609
6634
|
s = a.width, i = a.height;
|
|
@@ -6671,7 +6696,7 @@ function J0(e) {
|
|
|
6671
6696
|
} = e;
|
|
6672
6697
|
const i = [...n === "clippingAncestors" ? rr(t) ? [] : q0(t, this._c) : [].concat(n), r], l = i[0], d = i.reduce((u, p) => {
|
|
6673
6698
|
const f = ds(t, p, a);
|
|
6674
|
-
return u.top =
|
|
6699
|
+
return u.top = ke(f.top, u.top), u.right = et(f.right, u.right), u.bottom = et(f.bottom, u.bottom), u.left = ke(f.left, u.left), u;
|
|
6675
6700
|
}, ds(t, l, a));
|
|
6676
6701
|
return {
|
|
6677
6702
|
width: d.right - d.left,
|
|
@@ -6722,7 +6747,7 @@ function us(e, t) {
|
|
|
6722
6747
|
return je(e) === n && (n = n.ownerDocument.body), n;
|
|
6723
6748
|
}
|
|
6724
6749
|
function fl(e, t) {
|
|
6725
|
-
const n =
|
|
6750
|
+
const n = Re(e);
|
|
6726
6751
|
if (rr(e))
|
|
6727
6752
|
return n;
|
|
6728
6753
|
if (!Fe(e)) {
|
|
@@ -6788,7 +6813,7 @@ function oh(e, t) {
|
|
|
6788
6813
|
return;
|
|
6789
6814
|
const v = Rn(f), h = Rn(a.clientWidth - (p + g)), b = Rn(a.clientHeight - (f + m)), x = Rn(p), S = {
|
|
6790
6815
|
rootMargin: -v + "px " + -h + "px " + -b + "px " + -x + "px",
|
|
6791
|
-
threshold:
|
|
6816
|
+
threshold: ke(0, et(1, d)) || 1
|
|
6792
6817
|
};
|
|
6793
6818
|
let R = !0;
|
|
6794
6819
|
function M(E) {
|
|
@@ -6931,84 +6956,84 @@ function ph(e) {
|
|
|
6931
6956
|
isPositioned: !1
|
|
6932
6957
|
}), [g, m] = c.useState(r);
|
|
6933
6958
|
Vn(g, r) || m(r);
|
|
6934
|
-
const [v, h] = c.useState(null), [b, x] = c.useState(null), C = c.useCallback((
|
|
6935
|
-
|
|
6936
|
-
}, []), S = c.useCallback((
|
|
6937
|
-
|
|
6938
|
-
}, []), R = s || v, M = i || b, E = c.useRef(null), k = c.useRef(null), N = c.useRef(p),
|
|
6959
|
+
const [v, h] = c.useState(null), [b, x] = c.useState(null), C = c.useCallback((_) => {
|
|
6960
|
+
_ !== E.current && (E.current = _, h(_));
|
|
6961
|
+
}, []), S = c.useCallback((_) => {
|
|
6962
|
+
_ !== k.current && (k.current = _, x(_));
|
|
6963
|
+
}, []), R = s || v, M = i || b, E = c.useRef(null), k = c.useRef(null), N = c.useRef(p), D = d != null, z = $r(d), $ = $r(a), T = $r(u), B = c.useCallback(() => {
|
|
6939
6964
|
if (!E.current || !k.current)
|
|
6940
6965
|
return;
|
|
6941
|
-
const
|
|
6966
|
+
const _ = {
|
|
6942
6967
|
placement: t,
|
|
6943
6968
|
strategy: n,
|
|
6944
6969
|
middleware: g
|
|
6945
6970
|
};
|
|
6946
|
-
|
|
6947
|
-
const
|
|
6948
|
-
...
|
|
6971
|
+
$.current && (_.platform = $.current), fh(E.current, k.current, _).then((I) => {
|
|
6972
|
+
const q = {
|
|
6973
|
+
...I,
|
|
6949
6974
|
// The floating element's position may be recomputed while it's closed
|
|
6950
6975
|
// but still mounted (such as when transitioning out). To ensure
|
|
6951
6976
|
// `isPositioned` will be `false` initially on the next open, avoid
|
|
6952
6977
|
// setting it to `true` when `open === false` (must be specified).
|
|
6953
|
-
isPositioned:
|
|
6978
|
+
isPositioned: T.current !== !1
|
|
6954
6979
|
};
|
|
6955
|
-
|
|
6956
|
-
f(
|
|
6980
|
+
A.current && !Vn(N.current, q) && (N.current = q, Kn.flushSync(() => {
|
|
6981
|
+
f(q);
|
|
6957
6982
|
}));
|
|
6958
6983
|
});
|
|
6959
|
-
}, [g, t, n,
|
|
6984
|
+
}, [g, t, n, $, T]);
|
|
6960
6985
|
_n(() => {
|
|
6961
|
-
u === !1 && N.current.isPositioned && (N.current.isPositioned = !1, f((
|
|
6962
|
-
...
|
|
6986
|
+
u === !1 && N.current.isPositioned && (N.current.isPositioned = !1, f((_) => ({
|
|
6987
|
+
..._,
|
|
6963
6988
|
isPositioned: !1
|
|
6964
6989
|
})));
|
|
6965
6990
|
}, [u]);
|
|
6966
|
-
const
|
|
6967
|
-
_n(() => (
|
|
6968
|
-
|
|
6991
|
+
const A = c.useRef(!1);
|
|
6992
|
+
_n(() => (A.current = !0, () => {
|
|
6993
|
+
A.current = !1;
|
|
6969
6994
|
}), []), _n(() => {
|
|
6970
6995
|
if (R && (E.current = R), M && (k.current = M), R && M) {
|
|
6971
|
-
if (
|
|
6972
|
-
return
|
|
6973
|
-
|
|
6996
|
+
if (z.current)
|
|
6997
|
+
return z.current(R, M, B);
|
|
6998
|
+
B();
|
|
6974
6999
|
}
|
|
6975
|
-
}, [R, M,
|
|
6976
|
-
const
|
|
7000
|
+
}, [R, M, B, z, D]);
|
|
7001
|
+
const W = c.useMemo(() => ({
|
|
6977
7002
|
reference: E,
|
|
6978
7003
|
floating: k,
|
|
6979
7004
|
setReference: C,
|
|
6980
7005
|
setFloating: S
|
|
6981
|
-
}), [C, S]),
|
|
7006
|
+
}), [C, S]), O = c.useMemo(() => ({
|
|
6982
7007
|
reference: R,
|
|
6983
7008
|
floating: M
|
|
6984
|
-
}), [R, M]),
|
|
6985
|
-
const
|
|
7009
|
+
}), [R, M]), G = c.useMemo(() => {
|
|
7010
|
+
const _ = {
|
|
6986
7011
|
position: n,
|
|
6987
7012
|
left: 0,
|
|
6988
7013
|
top: 0
|
|
6989
7014
|
};
|
|
6990
|
-
if (!
|
|
6991
|
-
return
|
|
6992
|
-
const
|
|
7015
|
+
if (!O.floating)
|
|
7016
|
+
return _;
|
|
7017
|
+
const I = ps(O.floating, p.x), q = ps(O.floating, p.y);
|
|
6993
7018
|
return l ? {
|
|
6994
|
-
...
|
|
6995
|
-
transform: "translate(" +
|
|
6996
|
-
...ml(
|
|
7019
|
+
..._,
|
|
7020
|
+
transform: "translate(" + I + "px, " + q + "px)",
|
|
7021
|
+
...ml(O.floating) >= 1.5 && {
|
|
6997
7022
|
willChange: "transform"
|
|
6998
7023
|
}
|
|
6999
7024
|
} : {
|
|
7000
7025
|
position: n,
|
|
7001
|
-
left:
|
|
7002
|
-
top:
|
|
7026
|
+
left: I,
|
|
7027
|
+
top: q
|
|
7003
7028
|
};
|
|
7004
|
-
}, [n, l,
|
|
7029
|
+
}, [n, l, O.floating, p.x, p.y]);
|
|
7005
7030
|
return c.useMemo(() => ({
|
|
7006
7031
|
...p,
|
|
7007
|
-
update:
|
|
7008
|
-
refs:
|
|
7009
|
-
elements:
|
|
7010
|
-
floatingStyles:
|
|
7011
|
-
}), [p,
|
|
7032
|
+
update: B,
|
|
7033
|
+
refs: W,
|
|
7034
|
+
elements: O,
|
|
7035
|
+
floatingStyles: G
|
|
7036
|
+
}), [p, B, W, O, G]);
|
|
7012
7037
|
}
|
|
7013
7038
|
const mh = (e) => {
|
|
7014
7039
|
function t(n) {
|
|
@@ -7056,7 +7081,7 @@ const mh = (e) => {
|
|
|
7056
7081
|
var Ch = "Arrow", hl = c.forwardRef((e, t) => {
|
|
7057
7082
|
const { children: n, width: r = 10, height: a = 5, ...s } = e;
|
|
7058
7083
|
return /* @__PURE__ */ o(
|
|
7059
|
-
|
|
7084
|
+
J.svg,
|
|
7060
7085
|
{
|
|
7061
7086
|
...s,
|
|
7062
7087
|
ref: t,
|
|
@@ -7072,7 +7097,7 @@ hl.displayName = Ch;
|
|
|
7072
7097
|
var Nh = hl;
|
|
7073
7098
|
function gl(e) {
|
|
7074
7099
|
const [t, n] = c.useState(void 0);
|
|
7075
|
-
return
|
|
7100
|
+
return Se(() => {
|
|
7076
7101
|
if (e) {
|
|
7077
7102
|
n({ width: e.offsetWidth, height: e.offsetHeight });
|
|
7078
7103
|
const r = new ResizeObserver((a) => {
|
|
@@ -7102,7 +7127,7 @@ var xl = "PopperAnchor", wl = c.forwardRef(
|
|
|
7102
7127
|
const { __scopePopper: n, virtualRef: r, ...a } = e, s = bl(xl, n), i = c.useRef(null), l = ae(t, i);
|
|
7103
7128
|
return c.useEffect(() => {
|
|
7104
7129
|
s.onAnchorChange(r?.current || i.current);
|
|
7105
|
-
}), r ? null : /* @__PURE__ */ o(
|
|
7130
|
+
}), r ? null : /* @__PURE__ */ o(J.div, { ...a, ref: l });
|
|
7106
7131
|
}
|
|
7107
7132
|
);
|
|
7108
7133
|
wl.displayName = xl;
|
|
@@ -7123,16 +7148,16 @@ var Jo = "PopperContent", [Eh, kh] = vl(Jo), Cl = c.forwardRef(
|
|
|
7123
7148
|
updatePositionStrategy: m = "optimized",
|
|
7124
7149
|
onPlaced: v,
|
|
7125
7150
|
...h
|
|
7126
|
-
} = e, b = bl(Jo, n), [x, C] = c.useState(null), S = ae(t, (
|
|
7127
|
-
padding:
|
|
7128
|
-
boundary:
|
|
7151
|
+
} = e, b = bl(Jo, n), [x, C] = c.useState(null), S = ae(t, (L) => C(L)), [R, M] = c.useState(null), E = gl(R), k = E?.width ?? 0, N = E?.height ?? 0, D = r + (s !== "center" ? "-" + s : ""), z = typeof p == "number" ? p : { top: 0, right: 0, bottom: 0, left: 0, ...p }, $ = Array.isArray(u) ? u : [u], T = $.length > 0, B = {
|
|
7152
|
+
padding: z,
|
|
7153
|
+
boundary: $.filter(Mh),
|
|
7129
7154
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
7130
|
-
altBoundary:
|
|
7131
|
-
}, { refs:
|
|
7155
|
+
altBoundary: T
|
|
7156
|
+
}, { refs: A, floatingStyles: W, placement: O, isPositioned: G, middlewareData: _ } = ph({
|
|
7132
7157
|
// default to `fixed` strategy so users don't have to pick and we also avoid focus scroll issues
|
|
7133
7158
|
strategy: "fixed",
|
|
7134
|
-
placement:
|
|
7135
|
-
whileElementsMounted: (...
|
|
7159
|
+
placement: D,
|
|
7160
|
+
whileElementsMounted: (...L) => ah(...L, {
|
|
7136
7161
|
animationFrame: m === "always"
|
|
7137
7162
|
}),
|
|
7138
7163
|
elements: {
|
|
@@ -7144,46 +7169,46 @@ var Jo = "PopperContent", [Eh, kh] = vl(Jo), Cl = c.forwardRef(
|
|
|
7144
7169
|
mainAxis: !0,
|
|
7145
7170
|
crossAxis: !1,
|
|
7146
7171
|
limiter: f === "partial" ? vh() : void 0,
|
|
7147
|
-
|
|
7172
|
+
...B
|
|
7148
7173
|
}),
|
|
7149
|
-
d && bh({
|
|
7174
|
+
d && bh({ ...B }),
|
|
7150
7175
|
yh({
|
|
7151
|
-
|
|
7152
|
-
apply: ({ elements:
|
|
7153
|
-
const { width: ue, height: fe } = ee.reference, Pe =
|
|
7176
|
+
...B,
|
|
7177
|
+
apply: ({ elements: L, rects: ee, availableWidth: se, availableHeight: ie }) => {
|
|
7178
|
+
const { width: ue, height: fe } = ee.reference, Pe = L.floating.style;
|
|
7154
7179
|
Pe.setProperty("--radix-popper-available-width", `${se}px`), Pe.setProperty("--radix-popper-available-height", `${ie}px`), Pe.setProperty("--radix-popper-anchor-width", `${ue}px`), Pe.setProperty("--radix-popper-anchor-height", `${fe}px`);
|
|
7155
7180
|
}
|
|
7156
7181
|
}),
|
|
7157
7182
|
R && wh({ element: R, padding: l }),
|
|
7158
7183
|
Ph({ arrowWidth: k, arrowHeight: N }),
|
|
7159
|
-
g && xh({ strategy: "referenceHidden",
|
|
7184
|
+
g && xh({ strategy: "referenceHidden", ...B })
|
|
7160
7185
|
]
|
|
7161
|
-
}), [
|
|
7162
|
-
|
|
7163
|
-
|
|
7164
|
-
}, [
|
|
7165
|
-
const P =
|
|
7166
|
-
return
|
|
7186
|
+
}), [I, q] = El(O), ne = Me(v);
|
|
7187
|
+
Se(() => {
|
|
7188
|
+
G && ne?.();
|
|
7189
|
+
}, [G, ne]);
|
|
7190
|
+
const P = _.arrow?.x, U = _.arrow?.y, X = _.arrow?.centerOffset !== 0, [F, Q] = c.useState();
|
|
7191
|
+
return Se(() => {
|
|
7167
7192
|
x && Q(window.getComputedStyle(x).zIndex);
|
|
7168
7193
|
}, [x]), /* @__PURE__ */ o(
|
|
7169
7194
|
"div",
|
|
7170
7195
|
{
|
|
7171
|
-
ref:
|
|
7196
|
+
ref: A.setFloating,
|
|
7172
7197
|
"data-radix-popper-content-wrapper": "",
|
|
7173
7198
|
style: {
|
|
7174
|
-
...
|
|
7175
|
-
transform:
|
|
7199
|
+
...W,
|
|
7200
|
+
transform: G ? W.transform : "translate(0, -200%)",
|
|
7176
7201
|
// keep off the page when measuring
|
|
7177
7202
|
minWidth: "max-content",
|
|
7178
7203
|
zIndex: F,
|
|
7179
7204
|
"--radix-popper-transform-origin": [
|
|
7180
|
-
|
|
7181
|
-
|
|
7205
|
+
_.transformOrigin?.x,
|
|
7206
|
+
_.transformOrigin?.y
|
|
7182
7207
|
].join(" "),
|
|
7183
7208
|
// hide the content if using the hide middleware and should be hidden
|
|
7184
7209
|
// set visibility to hidden and disable pointer events so the UI behaves
|
|
7185
7210
|
// as if the PopperContent isn't there at all
|
|
7186
|
-
...
|
|
7211
|
+
..._.hide?.referenceHidden && {
|
|
7187
7212
|
visibility: "hidden",
|
|
7188
7213
|
pointerEvents: "none"
|
|
7189
7214
|
}
|
|
@@ -7193,23 +7218,23 @@ var Jo = "PopperContent", [Eh, kh] = vl(Jo), Cl = c.forwardRef(
|
|
|
7193
7218
|
Eh,
|
|
7194
7219
|
{
|
|
7195
7220
|
scope: n,
|
|
7196
|
-
placedSide:
|
|
7221
|
+
placedSide: I,
|
|
7197
7222
|
onArrowChange: M,
|
|
7198
7223
|
arrowX: P,
|
|
7199
|
-
arrowY:
|
|
7200
|
-
shouldHideArrow:
|
|
7224
|
+
arrowY: U,
|
|
7225
|
+
shouldHideArrow: X,
|
|
7201
7226
|
children: /* @__PURE__ */ o(
|
|
7202
|
-
|
|
7227
|
+
J.div,
|
|
7203
7228
|
{
|
|
7204
|
-
"data-side":
|
|
7205
|
-
"data-align":
|
|
7229
|
+
"data-side": I,
|
|
7230
|
+
"data-align": q,
|
|
7206
7231
|
...h,
|
|
7207
7232
|
ref: S,
|
|
7208
7233
|
style: {
|
|
7209
7234
|
...h.style,
|
|
7210
7235
|
// if the PopperContent hasn't been placed yet (not all measurements done)
|
|
7211
7236
|
// we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
7212
|
-
animation:
|
|
7237
|
+
animation: G ? void 0 : "none"
|
|
7213
7238
|
}
|
|
7214
7239
|
}
|
|
7215
7240
|
)
|
|
@@ -7330,7 +7355,7 @@ Pl.displayName = Ml;
|
|
|
7330
7355
|
var Il = "PopoverTrigger", Tl = c.forwardRef(
|
|
7331
7356
|
(e, t) => {
|
|
7332
7357
|
const { __scopePopover: n, ...r } = e, a = at(Il, n), s = dn(n), i = ae(t, a.triggerRef), l = /* @__PURE__ */ o(
|
|
7333
|
-
|
|
7358
|
+
J.button,
|
|
7334
7359
|
{
|
|
7335
7360
|
type: "button",
|
|
7336
7361
|
"aria-haspopup": "dialog",
|
|
@@ -7366,7 +7391,7 @@ var _h = c.forwardRef(
|
|
|
7366
7391
|
return c.useEffect(() => {
|
|
7367
7392
|
const i = r.current;
|
|
7368
7393
|
if (i) return er(i);
|
|
7369
|
-
}, []), /* @__PURE__ */ o(on, { as:
|
|
7394
|
+
}, []), /* @__PURE__ */ o(on, { as: Ne, allowPinchZoom: !0, children: /* @__PURE__ */ o(
|
|
7370
7395
|
Ll,
|
|
7371
7396
|
{
|
|
7372
7397
|
...e,
|
|
@@ -7473,7 +7498,7 @@ var _h = c.forwardRef(
|
|
|
7473
7498
|
(e, t) => {
|
|
7474
7499
|
const { __scopePopover: n, ...r } = e, a = at(Ol, n);
|
|
7475
7500
|
return /* @__PURE__ */ o(
|
|
7476
|
-
|
|
7501
|
+
J.button,
|
|
7477
7502
|
{
|
|
7478
7503
|
type: "button",
|
|
7479
7504
|
...r,
|
|
@@ -7536,18 +7561,18 @@ function uv({
|
|
|
7536
7561
|
}) {
|
|
7537
7562
|
const [h, b] = c.useState(!1), [x, C] = c.useState(""), S = c.useMemo(() => e || (t ? t.flatMap((N) => N.options) : []), [e, t]), R = c.useMemo(() => {
|
|
7538
7563
|
const N = t || (e ? [{ label: "", options: e }] : []);
|
|
7539
|
-
return x ? N.map((
|
|
7540
|
-
label:
|
|
7541
|
-
options:
|
|
7542
|
-
(
|
|
7564
|
+
return x ? N.map((D) => ({
|
|
7565
|
+
label: D.label,
|
|
7566
|
+
options: D.options.filter(
|
|
7567
|
+
(z) => z.label.toLowerCase().includes(x.toLowerCase())
|
|
7543
7568
|
)
|
|
7544
|
-
})).filter((
|
|
7569
|
+
})).filter((D) => D.options.length > 0) : N;
|
|
7545
7570
|
}, [x, e, t]), M = c.useMemo(() => {
|
|
7546
|
-
const { row: N, header:
|
|
7547
|
-
(
|
|
7548
|
-
|
|
7571
|
+
const { row: N, header: D, padding: z, max: $ } = Fh.heights, B = R.some((W) => W.label) ? R.length * D : 0, A = R.reduce(
|
|
7572
|
+
(W, O) => W + O.options.length * N,
|
|
7573
|
+
B
|
|
7549
7574
|
);
|
|
7550
|
-
return Math.min(
|
|
7575
|
+
return Math.min(A + z, $);
|
|
7551
7576
|
}, [R]), E = c.useCallback(
|
|
7552
7577
|
(N) => {
|
|
7553
7578
|
r?.(N === n ? void 0 : N), b(!1), C("");
|
|
@@ -7563,7 +7588,7 @@ function uv({
|
|
|
7563
7588
|
disabled: i,
|
|
7564
7589
|
"aria-expanded": h,
|
|
7565
7590
|
children: [
|
|
7566
|
-
l ? /* @__PURE__ */ o("div", { className: "h-4 w-4 animate-spin", children: /* @__PURE__ */ o(
|
|
7591
|
+
l ? /* @__PURE__ */ o("div", { className: "h-4 w-4 animate-spin", children: /* @__PURE__ */ o(Y, { name: "loader-circle" }) }) : /* @__PURE__ */ o("div", { className: "h-4 w-4 shrink-0 opacity-50", children: /* @__PURE__ */ o(Y, { name: "chevrons-up-down" }) }),
|
|
7567
7592
|
!v && /* @__PURE__ */ o("span", { children: k?.label || f })
|
|
7568
7593
|
]
|
|
7569
7594
|
}
|
|
@@ -7582,27 +7607,27 @@ function uv({
|
|
|
7582
7607
|
{
|
|
7583
7608
|
style: { height: M },
|
|
7584
7609
|
data: R,
|
|
7585
|
-
itemContent: (N,
|
|
7610
|
+
itemContent: (N, D) => /* @__PURE__ */ o(jo, { heading: D.label, children: D.options.map((z) => /* @__PURE__ */ w(
|
|
7586
7611
|
Ie,
|
|
7587
7612
|
{
|
|
7588
|
-
value:
|
|
7589
|
-
onSelect: () => E(
|
|
7590
|
-
disabled:
|
|
7613
|
+
value: z.value,
|
|
7614
|
+
onSelect: () => E(z.value),
|
|
7615
|
+
disabled: z.disabled,
|
|
7591
7616
|
children: [
|
|
7592
7617
|
/* @__PURE__ */ o(
|
|
7593
7618
|
"div",
|
|
7594
7619
|
{
|
|
7595
7620
|
className: y(
|
|
7596
7621
|
"mr-2 h-4 w-4",
|
|
7597
|
-
n ===
|
|
7622
|
+
n === z.value ? "opacity-100" : "opacity-0"
|
|
7598
7623
|
),
|
|
7599
|
-
children: /* @__PURE__ */ o(
|
|
7624
|
+
children: /* @__PURE__ */ o(Y, { name: "check" })
|
|
7600
7625
|
}
|
|
7601
7626
|
),
|
|
7602
|
-
|
|
7627
|
+
z.label
|
|
7603
7628
|
]
|
|
7604
7629
|
},
|
|
7605
|
-
|
|
7630
|
+
z.value
|
|
7606
7631
|
)) })
|
|
7607
7632
|
}
|
|
7608
7633
|
) })
|
|
@@ -7807,11 +7832,11 @@ const vs = {
|
|
|
7807
7832
|
}, [e, t]);
|
|
7808
7833
|
};
|
|
7809
7834
|
function pv({ items: e, renderItem: t, className: n }) {
|
|
7810
|
-
const [r, a] =
|
|
7835
|
+
const [r, a] = K(
|
|
7811
7836
|
e.find((N) => N.active)?.href ?? null
|
|
7812
|
-
), [s, i] =
|
|
7837
|
+
), [s, i] = K(null), [l, d] = K(0), [u, p] = K(null), [f, g] = K(null), m = ce(/* @__PURE__ */ new Map()), v = ce(null), h = ce(!1), b = ce(!1);
|
|
7813
7838
|
pt(() => {
|
|
7814
|
-
const N = e.find((
|
|
7839
|
+
const N = e.find((D) => D.active)?.href ?? e[0]?.href;
|
|
7815
7840
|
a(N);
|
|
7816
7841
|
}, [e]), pt(() => {
|
|
7817
7842
|
if (!b.current && r) {
|
|
@@ -7828,10 +7853,10 @@ function pv({ items: e, renderItem: t, className: n }) {
|
|
|
7828
7853
|
p(null);
|
|
7829
7854
|
return;
|
|
7830
7855
|
}
|
|
7831
|
-
const
|
|
7856
|
+
const D = N.offsetWidth, z = N.offsetLeft, $ = (D - l) / 2;
|
|
7832
7857
|
p({
|
|
7833
|
-
scaleX:
|
|
7834
|
-
left:
|
|
7858
|
+
scaleX: D / l,
|
|
7859
|
+
left: z + $
|
|
7835
7860
|
});
|
|
7836
7861
|
}, [r, l, e]), pt(() => {
|
|
7837
7862
|
if (!s || !l) {
|
|
@@ -7843,10 +7868,10 @@ function pv({ items: e, renderItem: t, className: n }) {
|
|
|
7843
7868
|
g(null);
|
|
7844
7869
|
return;
|
|
7845
7870
|
}
|
|
7846
|
-
const
|
|
7871
|
+
const D = N.offsetWidth, z = N.offsetLeft, $ = (D - l) / 2;
|
|
7847
7872
|
g({
|
|
7848
|
-
scaleX:
|
|
7849
|
-
left:
|
|
7873
|
+
scaleX: D / l,
|
|
7874
|
+
left: z + $
|
|
7850
7875
|
});
|
|
7851
7876
|
}, [s, l, e]);
|
|
7852
7877
|
const x = h2(() => {
|
|
@@ -7883,7 +7908,7 @@ function pv({ items: e, renderItem: t, className: n }) {
|
|
|
7883
7908
|
onMouseLeave: R,
|
|
7884
7909
|
children: [
|
|
7885
7910
|
/* @__PURE__ */ o(Ce, { children: f && l > 0 && /* @__PURE__ */ o(
|
|
7886
|
-
|
|
7911
|
+
Z.div,
|
|
7887
7912
|
{
|
|
7888
7913
|
className: "bg-surface-secondary-default absolute inset-y-0 my-auto h-[calc(100%-10px)] rounded-xs",
|
|
7889
7914
|
style: {
|
|
@@ -7912,15 +7937,15 @@ function pv({ items: e, renderItem: t, className: n }) {
|
|
|
7912
7937
|
isActive: r === N.href,
|
|
7913
7938
|
isHovered: s === N.href,
|
|
7914
7939
|
handlers: k(N.href),
|
|
7915
|
-
ref: (
|
|
7916
|
-
|
|
7940
|
+
ref: (D) => {
|
|
7941
|
+
D ? m.current.set(N.href, D) : m.current.delete(N.href);
|
|
7917
7942
|
},
|
|
7918
7943
|
renderItem: t
|
|
7919
7944
|
},
|
|
7920
7945
|
N.href
|
|
7921
7946
|
)),
|
|
7922
7947
|
u && l > 0 && /* @__PURE__ */ o(
|
|
7923
|
-
|
|
7948
|
+
Z.div,
|
|
7924
7949
|
{
|
|
7925
7950
|
className: "bg-surface-primary-inverse absolute bottom-0 h-[2px]",
|
|
7926
7951
|
style: {
|
|
@@ -7946,7 +7971,7 @@ function pv({ items: e, renderItem: t, className: n }) {
|
|
|
7946
7971
|
const g2 = sf(
|
|
7947
7972
|
ve(function({ item: t, isActive: n, isHovered: r, handlers: a, renderItem: s }, i) {
|
|
7948
7973
|
return /* @__PURE__ */ o(
|
|
7949
|
-
|
|
7974
|
+
Z.div,
|
|
7950
7975
|
{
|
|
7951
7976
|
ref: i,
|
|
7952
7977
|
className: y(
|
|
@@ -8128,7 +8153,7 @@ function N2({
|
|
|
8128
8153
|
snippetClassName: u,
|
|
8129
8154
|
showLineNumbers: p = !1
|
|
8130
8155
|
}) {
|
|
8131
|
-
const [f, g] =
|
|
8156
|
+
const [f, g] = K(!1), [m, v] = K(0), h = ce(null);
|
|
8132
8157
|
oe(() => {
|
|
8133
8158
|
const E = () => {
|
|
8134
8159
|
if (h.current) {
|
|
@@ -8140,7 +8165,7 @@ function N2({
|
|
|
8140
8165
|
const k = new ResizeObserver(E);
|
|
8141
8166
|
return h.current && k.observe(h.current), () => k.disconnect();
|
|
8142
8167
|
}, []);
|
|
8143
|
-
const [b, x] =
|
|
8168
|
+
const [b, x] = K(void 0), C = e.split(`
|
|
8144
8169
|
`).length > 1, { theme: S } = qn();
|
|
8145
8170
|
oe(() => {
|
|
8146
8171
|
if (!n) return;
|
|
@@ -8197,24 +8222,24 @@ function N2({
|
|
|
8197
8222
|
className: "relative ml-2 border-none bg-transparent outline-none",
|
|
8198
8223
|
onClick: R,
|
|
8199
8224
|
children: /* @__PURE__ */ o(Ce, { mode: "wait", initial: !1, children: f ? /* @__PURE__ */ o(
|
|
8200
|
-
|
|
8225
|
+
Z.span,
|
|
8201
8226
|
{
|
|
8202
8227
|
variants: ys,
|
|
8203
8228
|
initial: "hidden",
|
|
8204
8229
|
animate: "visible",
|
|
8205
8230
|
className: "text-green-500",
|
|
8206
|
-
children: /* @__PURE__ */ o(
|
|
8231
|
+
children: /* @__PURE__ */ o(Y, { name: "check", stroke: "currentColor" })
|
|
8207
8232
|
},
|
|
8208
8233
|
"checkmark"
|
|
8209
8234
|
) : /* @__PURE__ */ o(
|
|
8210
|
-
|
|
8235
|
+
Z.span,
|
|
8211
8236
|
{
|
|
8212
8237
|
variants: ys,
|
|
8213
8238
|
initial: "hidden",
|
|
8214
8239
|
animate: "visible",
|
|
8215
8240
|
className: "text-body-muted hover:text-body",
|
|
8216
8241
|
exit: "hidden",
|
|
8217
|
-
children: /* @__PURE__ */ o(
|
|
8242
|
+
children: /* @__PURE__ */ o(Y, { name: "copy", stroke: "currentColor" })
|
|
8218
8243
|
},
|
|
8219
8244
|
"copy"
|
|
8220
8245
|
) })
|
|
@@ -8238,14 +8263,14 @@ function sa(e) {
|
|
|
8238
8263
|
const l = e + "CollectionSlot", d = re.forwardRef(
|
|
8239
8264
|
(m, v) => {
|
|
8240
8265
|
const { scope: h, children: b } = m, x = s(l, h), C = ae(v, x.collectionRef);
|
|
8241
|
-
return /* @__PURE__ */ o(
|
|
8266
|
+
return /* @__PURE__ */ o(Ne, { ref: C, children: b });
|
|
8242
8267
|
}
|
|
8243
8268
|
);
|
|
8244
8269
|
d.displayName = l;
|
|
8245
8270
|
const u = e + "CollectionItemSlot", p = "data-radix-collection-item", f = re.forwardRef(
|
|
8246
8271
|
(m, v) => {
|
|
8247
8272
|
const { scope: h, children: b, ...x } = m, C = re.useRef(null), S = ae(v, C), R = s(u, h);
|
|
8248
|
-
return re.useEffect(() => (R.itemMap.set(C, { ref: C, ...x }), () => void R.itemMap.delete(C))), /* @__PURE__ */ o(
|
|
8273
|
+
return re.useEffect(() => (R.itemMap.set(C, { ref: C, ...x }), () => void R.itemMap.delete(C))), /* @__PURE__ */ o(Ne, { [p]: "", ref: S, children: b });
|
|
8249
8274
|
}
|
|
8250
8275
|
);
|
|
8251
8276
|
f.displayName = u;
|
|
@@ -8321,7 +8346,7 @@ var I2 = c.forwardRef((e, t) => {
|
|
|
8321
8346
|
[]
|
|
8322
8347
|
),
|
|
8323
8348
|
children: /* @__PURE__ */ o(
|
|
8324
|
-
|
|
8349
|
+
J.div,
|
|
8325
8350
|
{
|
|
8326
8351
|
tabIndex: x || E === 0 ? -1 : 0,
|
|
8327
8352
|
"data-orientation": r,
|
|
@@ -8332,14 +8357,14 @@ var I2 = c.forwardRef((e, t) => {
|
|
|
8332
8357
|
M.current = !0;
|
|
8333
8358
|
}),
|
|
8334
8359
|
onFocus: H(e.onFocus, (N) => {
|
|
8335
|
-
const
|
|
8336
|
-
if (N.target === N.currentTarget &&
|
|
8337
|
-
const
|
|
8338
|
-
if (N.currentTarget.dispatchEvent(
|
|
8339
|
-
const
|
|
8360
|
+
const D = !M.current;
|
|
8361
|
+
if (N.target === N.currentTarget && D && !x) {
|
|
8362
|
+
const z = new CustomEvent(Br, E2);
|
|
8363
|
+
if (N.currentTarget.dispatchEvent(z), !z.defaultPrevented) {
|
|
8364
|
+
const $ = R().filter((O) => O.focusable), T = $.find((O) => O.active), B = $.find((O) => O.id === h), W = [T, B, ...$].filter(
|
|
8340
8365
|
Boolean
|
|
8341
|
-
).map((
|
|
8342
|
-
Kl(
|
|
8366
|
+
).map((O) => O.ref.current);
|
|
8367
|
+
Kl(W, p);
|
|
8343
8368
|
}
|
|
8344
8369
|
}
|
|
8345
8370
|
M.current = !1;
|
|
@@ -8369,7 +8394,7 @@ var I2 = c.forwardRef((e, t) => {
|
|
|
8369
8394
|
focusable: r,
|
|
8370
8395
|
active: a,
|
|
8371
8396
|
children: /* @__PURE__ */ o(
|
|
8372
|
-
|
|
8397
|
+
J.span,
|
|
8373
8398
|
{
|
|
8374
8399
|
tabIndex: p ? 0 : -1,
|
|
8375
8400
|
"data-orientation": u.orientation,
|
|
@@ -8546,48 +8571,48 @@ var Te = "MenuContent", [U2, da] = xt(Te), tc = c.forwardRef(
|
|
|
8546
8571
|
onDismiss: m,
|
|
8547
8572
|
disableOutsideScroll: v,
|
|
8548
8573
|
...h
|
|
8549
|
-
} = e, b = st(Te, n), x = pn(Te, n), C = fn(n), S = Yl(n), R = F2(n), [M, E] = c.useState(null), k = c.useRef(null), N = ae(t, k, b.onContentChange),
|
|
8550
|
-
const
|
|
8551
|
-
(function
|
|
8552
|
-
|
|
8553
|
-
})(
|
|
8574
|
+
} = e, b = st(Te, n), x = pn(Te, n), C = fn(n), S = Yl(n), R = F2(n), [M, E] = c.useState(null), k = c.useRef(null), N = ae(t, k, b.onContentChange), D = c.useRef(0), z = c.useRef(""), $ = c.useRef(0), T = c.useRef(null), B = c.useRef("right"), A = c.useRef(0), W = v ? on : c.Fragment, O = v ? { as: Ne, allowPinchZoom: !0 } : void 0, G = (I) => {
|
|
8575
|
+
const q = z.current + I, ne = R().filter((L) => !L.disabled), P = document.activeElement, U = ne.find((L) => L.ref.current === P)?.textValue, X = ne.map((L) => L.textValue), F = sg(X, q, U), Q = ne.find((L) => L.textValue === F)?.ref.current;
|
|
8576
|
+
(function L(ee) {
|
|
8577
|
+
z.current = ee, window.clearTimeout(D.current), ee !== "" && (D.current = window.setTimeout(() => L(""), 1e3));
|
|
8578
|
+
})(q), Q && setTimeout(() => Q.focus());
|
|
8554
8579
|
};
|
|
8555
|
-
c.useEffect(() => () => window.clearTimeout(
|
|
8556
|
-
const
|
|
8580
|
+
c.useEffect(() => () => window.clearTimeout(D.current), []), Jn();
|
|
8581
|
+
const _ = c.useCallback((I) => B.current === T.current?.side && lg(I, T.current?.area), []);
|
|
8557
8582
|
return /* @__PURE__ */ o(
|
|
8558
8583
|
U2,
|
|
8559
8584
|
{
|
|
8560
8585
|
scope: n,
|
|
8561
|
-
searchRef:
|
|
8586
|
+
searchRef: z,
|
|
8562
8587
|
onItemEnter: c.useCallback(
|
|
8563
|
-
(
|
|
8564
|
-
|
|
8588
|
+
(I) => {
|
|
8589
|
+
_(I) && I.preventDefault();
|
|
8565
8590
|
},
|
|
8566
|
-
[
|
|
8591
|
+
[_]
|
|
8567
8592
|
),
|
|
8568
8593
|
onItemLeave: c.useCallback(
|
|
8569
|
-
(
|
|
8570
|
-
|
|
8594
|
+
(I) => {
|
|
8595
|
+
_(I) || (k.current?.focus(), E(null));
|
|
8571
8596
|
},
|
|
8572
|
-
[
|
|
8597
|
+
[_]
|
|
8573
8598
|
),
|
|
8574
8599
|
onTriggerLeave: c.useCallback(
|
|
8575
|
-
(
|
|
8576
|
-
|
|
8600
|
+
(I) => {
|
|
8601
|
+
_(I) && I.preventDefault();
|
|
8577
8602
|
},
|
|
8578
|
-
[
|
|
8603
|
+
[_]
|
|
8579
8604
|
),
|
|
8580
|
-
pointerGraceTimerRef:
|
|
8581
|
-
onPointerGraceIntentChange: c.useCallback((
|
|
8582
|
-
|
|
8605
|
+
pointerGraceTimerRef: $,
|
|
8606
|
+
onPointerGraceIntentChange: c.useCallback((I) => {
|
|
8607
|
+
T.current = I;
|
|
8583
8608
|
}, []),
|
|
8584
|
-
children: /* @__PURE__ */ o(
|
|
8609
|
+
children: /* @__PURE__ */ o(W, { ...O, children: /* @__PURE__ */ o(
|
|
8585
8610
|
rn,
|
|
8586
8611
|
{
|
|
8587
8612
|
asChild: !0,
|
|
8588
8613
|
trapped: a,
|
|
8589
|
-
onMountAutoFocus: H(s, (
|
|
8590
|
-
|
|
8614
|
+
onMountAutoFocus: H(s, (I) => {
|
|
8615
|
+
I.preventDefault(), k.current?.focus({ preventScroll: !0 });
|
|
8591
8616
|
}),
|
|
8592
8617
|
onUnmountAutoFocus: i,
|
|
8593
8618
|
children: /* @__PURE__ */ o(
|
|
@@ -8610,8 +8635,8 @@ var Te = "MenuContent", [U2, da] = xt(Te), tc = c.forwardRef(
|
|
|
8610
8635
|
loop: r,
|
|
8611
8636
|
currentTabStopId: M,
|
|
8612
8637
|
onCurrentTabStopIdChange: E,
|
|
8613
|
-
onEntryFocus: H(d, (
|
|
8614
|
-
x.isUsingKeyboardRef.current ||
|
|
8638
|
+
onEntryFocus: H(d, (I) => {
|
|
8639
|
+
x.isUsingKeyboardRef.current || I.preventDefault();
|
|
8615
8640
|
}),
|
|
8616
8641
|
preventScrollOnEntryFocus: !0,
|
|
8617
8642
|
children: /* @__PURE__ */ o(
|
|
@@ -8626,25 +8651,25 @@ var Te = "MenuContent", [U2, da] = xt(Te), tc = c.forwardRef(
|
|
|
8626
8651
|
...h,
|
|
8627
8652
|
ref: N,
|
|
8628
8653
|
style: { outline: "none", ...h.style },
|
|
8629
|
-
onKeyDown: H(h.onKeyDown, (
|
|
8630
|
-
const ne =
|
|
8631
|
-
ne && (
|
|
8632
|
-
const
|
|
8633
|
-
if (
|
|
8634
|
-
|
|
8635
|
-
const Q = R().filter((
|
|
8636
|
-
Xl.includes(
|
|
8654
|
+
onKeyDown: H(h.onKeyDown, (I) => {
|
|
8655
|
+
const ne = I.target.closest("[data-radix-menu-content]") === I.currentTarget, P = I.ctrlKey || I.altKey || I.metaKey, U = I.key.length === 1;
|
|
8656
|
+
ne && (I.key === "Tab" && I.preventDefault(), !P && U && G(I.key));
|
|
8657
|
+
const X = k.current;
|
|
8658
|
+
if (I.target !== X || !$2.includes(I.key)) return;
|
|
8659
|
+
I.preventDefault();
|
|
8660
|
+
const Q = R().filter((L) => !L.disabled).map((L) => L.ref.current);
|
|
8661
|
+
Xl.includes(I.key) && Q.reverse(), og(Q);
|
|
8637
8662
|
}),
|
|
8638
|
-
onBlur: H(e.onBlur, (
|
|
8639
|
-
|
|
8663
|
+
onBlur: H(e.onBlur, (I) => {
|
|
8664
|
+
I.currentTarget.contains(I.target) || (window.clearTimeout(D.current), z.current = "");
|
|
8640
8665
|
}),
|
|
8641
8666
|
onPointerMove: H(
|
|
8642
8667
|
e.onPointerMove,
|
|
8643
|
-
Qt((
|
|
8644
|
-
const
|
|
8645
|
-
if (
|
|
8646
|
-
const P =
|
|
8647
|
-
|
|
8668
|
+
Qt((I) => {
|
|
8669
|
+
const q = I.target, ne = A.current !== I.clientX;
|
|
8670
|
+
if (I.currentTarget.contains(q) && ne) {
|
|
8671
|
+
const P = I.clientX > A.current ? "right" : "left";
|
|
8672
|
+
B.current = P, A.current = I.clientX;
|
|
8648
8673
|
}
|
|
8649
8674
|
})
|
|
8650
8675
|
)
|
|
@@ -8664,14 +8689,14 @@ tc.displayName = Te;
|
|
|
8664
8689
|
var Z2 = "MenuGroup", fa = c.forwardRef(
|
|
8665
8690
|
(e, t) => {
|
|
8666
8691
|
const { __scopeMenu: n, ...r } = e;
|
|
8667
|
-
return /* @__PURE__ */ o(
|
|
8692
|
+
return /* @__PURE__ */ o(J.div, { role: "group", ...r, ref: t });
|
|
8668
8693
|
}
|
|
8669
8694
|
);
|
|
8670
8695
|
fa.displayName = Z2;
|
|
8671
8696
|
var Y2 = "MenuLabel", nc = c.forwardRef(
|
|
8672
8697
|
(e, t) => {
|
|
8673
8698
|
const { __scopeMenu: n, ...r } = e;
|
|
8674
|
-
return /* @__PURE__ */ o(
|
|
8699
|
+
return /* @__PURE__ */ o(J.div, { ...r, ref: t });
|
|
8675
8700
|
}
|
|
8676
8701
|
);
|
|
8677
8702
|
nc.displayName = Y2;
|
|
@@ -8719,7 +8744,7 @@ var rc = c.forwardRef(
|
|
|
8719
8744
|
disabled: r,
|
|
8720
8745
|
textValue: a ?? g,
|
|
8721
8746
|
children: /* @__PURE__ */ o(D2, { asChild: !0, ...l, focusable: !r, children: /* @__PURE__ */ o(
|
|
8722
|
-
|
|
8747
|
+
J.div,
|
|
8723
8748
|
{
|
|
8724
8749
|
role: "menuitem",
|
|
8725
8750
|
"data-highlighted": p ? "" : void 0,
|
|
@@ -8808,7 +8833,7 @@ var pa = "MenuItemIndicator", [cc, eg] = xt(
|
|
|
8808
8833
|
{
|
|
8809
8834
|
present: r || Wn(s.checked) || s.checked === !0,
|
|
8810
8835
|
children: /* @__PURE__ */ o(
|
|
8811
|
-
|
|
8836
|
+
J.span,
|
|
8812
8837
|
{
|
|
8813
8838
|
...a,
|
|
8814
8839
|
ref: t,
|
|
@@ -8824,7 +8849,7 @@ var tg = "MenuSeparator", uc = c.forwardRef(
|
|
|
8824
8849
|
(e, t) => {
|
|
8825
8850
|
const { __scopeMenu: n, ...r } = e;
|
|
8826
8851
|
return /* @__PURE__ */ o(
|
|
8827
|
-
|
|
8852
|
+
J.div,
|
|
8828
8853
|
{
|
|
8829
8854
|
role: "separator",
|
|
8830
8855
|
"aria-orientation": "horizontal",
|
|
@@ -9049,7 +9074,7 @@ var wc = "DropdownMenuTrigger", Cc = c.forwardRef(
|
|
|
9049
9074
|
(e, t) => {
|
|
9050
9075
|
const { __scopeDropdownMenu: n, disabled: r = !1, ...a } = e, s = yc(wc, n), i = xe(n);
|
|
9051
9076
|
return /* @__PURE__ */ o(dg, { asChild: !0, ...i, children: /* @__PURE__ */ o(
|
|
9052
|
-
|
|
9077
|
+
J.button,
|
|
9053
9078
|
{
|
|
9054
9079
|
type: "button",
|
|
9055
9080
|
id: s.triggerId,
|
|
@@ -9353,7 +9378,7 @@ const e3 = ({
|
|
|
9353
9378
|
/* @__PURE__ */ o(va, {}),
|
|
9354
9379
|
he.map(n, (a, s) => /* @__PURE__ */ o(Hs, { children: a }, s)),
|
|
9355
9380
|
/* @__PURE__ */ w(dr, { onSelect: r, children: [
|
|
9356
|
-
/* @__PURE__ */ o(
|
|
9381
|
+
/* @__PURE__ */ o(Y, { name: "log-out" }),
|
|
9357
9382
|
"Logout"
|
|
9358
9383
|
] })
|
|
9359
9384
|
] }), dr = ({
|
|
@@ -9389,13 +9414,13 @@ function xv({
|
|
|
9389
9414
|
isDisabled: g = !1,
|
|
9390
9415
|
maxAttachments: m = 1
|
|
9391
9416
|
}) {
|
|
9392
|
-
const [v, h] =
|
|
9417
|
+
const [v, h] = K(!1), b = ce(null), x = ye(() => p || b, [p]), C = ce(null), S = ye(() => {
|
|
9393
9418
|
const N = r?.split(`
|
|
9394
9419
|
`).length ?? 0;
|
|
9395
9420
|
if (N === 0)
|
|
9396
9421
|
return 0;
|
|
9397
|
-
const
|
|
9398
|
-
return
|
|
9422
|
+
const D = N * 20;
|
|
9423
|
+
return D > l ? `${l}px` : `${D}px`;
|
|
9399
9424
|
}, [r, l]), R = pe(
|
|
9400
9425
|
(N) => {
|
|
9401
9426
|
N.preventDefault(), N.stopPropagation(), h(!0);
|
|
@@ -9403,16 +9428,16 @@ function xv({
|
|
|
9403
9428
|
[]
|
|
9404
9429
|
), M = pe(
|
|
9405
9430
|
async (N) => {
|
|
9406
|
-
const
|
|
9407
|
-
N.map(async (
|
|
9431
|
+
const D = await Promise.all(
|
|
9432
|
+
N.map(async (z) => ({
|
|
9408
9433
|
id: crypto.randomUUID(),
|
|
9409
|
-
name:
|
|
9410
|
-
type:
|
|
9411
|
-
size:
|
|
9412
|
-
bytes: await
|
|
9434
|
+
name: z.name,
|
|
9435
|
+
type: z.type,
|
|
9436
|
+
size: z.size,
|
|
9437
|
+
bytes: await z.arrayBuffer()
|
|
9413
9438
|
}))
|
|
9414
9439
|
);
|
|
9415
|
-
s?.(
|
|
9440
|
+
s?.(D);
|
|
9416
9441
|
},
|
|
9417
9442
|
[s]
|
|
9418
9443
|
), E = pe(
|
|
@@ -9485,7 +9510,7 @@ function xv({
|
|
|
9485
9510
|
i.length >= m || x.current?.click();
|
|
9486
9511
|
},
|
|
9487
9512
|
children: [
|
|
9488
|
-
/* @__PURE__ */ o(
|
|
9513
|
+
/* @__PURE__ */ o(Y, { name: "paperclip", className: "h-4 w-4" }),
|
|
9489
9514
|
/* @__PURE__ */ o(
|
|
9490
9515
|
"input",
|
|
9491
9516
|
{
|
|
@@ -9500,7 +9525,7 @@ function xv({
|
|
|
9500
9525
|
}
|
|
9501
9526
|
),
|
|
9502
9527
|
/* @__PURE__ */ o("div", { className: "ml-auto", children: /* @__PURE__ */ o(
|
|
9503
|
-
|
|
9528
|
+
Z.button,
|
|
9504
9529
|
{
|
|
9505
9530
|
onClick: (N) => {
|
|
9506
9531
|
N.preventDefault(), N.stopPropagation(), t(N);
|
|
@@ -9511,7 +9536,7 @@ function xv({
|
|
|
9511
9536
|
whileHover: r && !d && { scale: 1.05 } || void 0,
|
|
9512
9537
|
whileTap: r && !d && { scale: 0.95 } || void 0,
|
|
9513
9538
|
children: /* @__PURE__ */ o(
|
|
9514
|
-
|
|
9539
|
+
Y,
|
|
9515
9540
|
{
|
|
9516
9541
|
name: d ? u : "arrow-up",
|
|
9517
9542
|
strokeWidth: 2.5,
|
|
@@ -9534,7 +9559,7 @@ function xv({
|
|
|
9534
9559
|
onClick: () => N.onClick(N.id),
|
|
9535
9560
|
children: [
|
|
9536
9561
|
N.icon && /* @__PURE__ */ o(
|
|
9537
|
-
|
|
9562
|
+
Y,
|
|
9538
9563
|
{
|
|
9539
9564
|
name: N.icon,
|
|
9540
9565
|
className: y(
|
|
@@ -9552,7 +9577,7 @@ function xv({
|
|
|
9552
9577
|
] });
|
|
9553
9578
|
}
|
|
9554
9579
|
function t3({ attachment: e }) {
|
|
9555
|
-
const [t, n] =
|
|
9580
|
+
const [t, n] = K(null);
|
|
9556
9581
|
oe(() => {
|
|
9557
9582
|
async function a() {
|
|
9558
9583
|
if (!e.type.startsWith("image/"))
|
|
@@ -9582,7 +9607,7 @@ function t3({ attachment: e }) {
|
|
|
9582
9607
|
}
|
|
9583
9608
|
}, [e.type]);
|
|
9584
9609
|
return /* @__PURE__ */ w(
|
|
9585
|
-
|
|
9610
|
+
Z.div,
|
|
9586
9611
|
{
|
|
9587
9612
|
initial: { opacity: 0, scale: 0 },
|
|
9588
9613
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -9599,7 +9624,7 @@ function t3({ attachment: e }) {
|
|
|
9599
9624
|
className: "size-full rounded-lg object-cover",
|
|
9600
9625
|
alt: e.name
|
|
9601
9626
|
}
|
|
9602
|
-
) : /* @__PURE__ */ o(
|
|
9627
|
+
) : /* @__PURE__ */ o(Y, { name: r, className: "size-full py-1" }) }),
|
|
9603
9628
|
/* @__PURE__ */ o(
|
|
9604
9629
|
"div",
|
|
9605
9630
|
{
|
|
@@ -9613,7 +9638,7 @@ function t3({ attachment: e }) {
|
|
|
9613
9638
|
{
|
|
9614
9639
|
className: "hover:text-foreground ml-1 cursor-pointer",
|
|
9615
9640
|
onClick: () => e.onRemove?.(e.id),
|
|
9616
|
-
children: /* @__PURE__ */ o(
|
|
9641
|
+
children: /* @__PURE__ */ o(Y, { name: "x", className: "size-3" })
|
|
9617
9642
|
}
|
|
9618
9643
|
)
|
|
9619
9644
|
]
|
|
@@ -9752,8 +9777,8 @@ function s3({
|
|
|
9752
9777
|
"slug"
|
|
9753
9778
|
), [p, e]), x = c.useMemo(() => {
|
|
9754
9779
|
if (!e.length) return 0;
|
|
9755
|
-
const N = [...e.map((
|
|
9756
|
-
return Math.round(
|
|
9780
|
+
const N = [...e.map((T) => T.slug.length)].sort((T, B) => T - B), D = Math.floor(N.length / 2), z = N.length % 2 === 0 ? (N[D - 1] + N[D]) / 2 : N[D], $ = 8 * 1.125;
|
|
9781
|
+
return Math.round(z * $ * 1.2);
|
|
9757
9782
|
}, [e]), C = c.useRef(null), S = (k) => {
|
|
9758
9783
|
u(k), k && C.current?.scrollToIndex({ index: g, align: "start" });
|
|
9759
9784
|
}, R = c.memo(
|
|
@@ -9790,8 +9815,8 @@ function s3({
|
|
|
9790
9815
|
},
|
|
9791
9816
|
[g, b.length]
|
|
9792
9817
|
), E = c.useMemo(() => {
|
|
9793
|
-
const { row: k, header: N, padding:
|
|
9794
|
-
return Math.min(
|
|
9818
|
+
const { row: k, header: N, padding: D, max: z } = a3.heights, T = b.some((A) => A.label) ? b.length * N : 0, B = b.reduce((A) => k + A, T);
|
|
9819
|
+
return Math.min(B + D, z);
|
|
9795
9820
|
}, [b]);
|
|
9796
9821
|
return /* @__PURE__ */ w(ta, { open: d, onOpenChange: S, children: [
|
|
9797
9822
|
/* @__PURE__ */ o(na, { asChild: !0, className: "flex flex-row items-center", children: /* @__PURE__ */ w(
|
|
@@ -9816,7 +9841,7 @@ function s3({
|
|
|
9816
9841
|
}
|
|
9817
9842
|
),
|
|
9818
9843
|
/* @__PURE__ */ o(
|
|
9819
|
-
|
|
9844
|
+
Y,
|
|
9820
9845
|
{
|
|
9821
9846
|
name: d ? "chevron-up" : "chevron-down",
|
|
9822
9847
|
className: "flex-shrink-0"
|
|
@@ -9858,7 +9883,7 @@ function i3({
|
|
|
9858
9883
|
setNewWorkspaceName: i,
|
|
9859
9884
|
backButtonEnabled: l = !0
|
|
9860
9885
|
}) {
|
|
9861
|
-
const d = re.useRef(null), [u, p] =
|
|
9886
|
+
const d = re.useRef(null), [u, p] = K(!1), [f, g] = K(t), [m, v] = K(!1), [h, b] = K(null);
|
|
9862
9887
|
re.useEffect(() => {
|
|
9863
9888
|
e && setTimeout(() => {
|
|
9864
9889
|
d.current?.focus();
|
|
@@ -9946,7 +9971,7 @@ function i3({
|
|
|
9946
9971
|
] }),
|
|
9947
9972
|
/* @__PURE__ */ w("div", { className: "border-neutral-softest bg-background flex border-t px-8 py-4", children: [
|
|
9948
9973
|
l && r && /* @__PURE__ */ w(Ue, { variant: "secondary", onClick: r, children: [
|
|
9949
|
-
/* @__PURE__ */ o(
|
|
9974
|
+
/* @__PURE__ */ o(Y, { name: "chevron-left", size: "small" }),
|
|
9950
9975
|
"Back"
|
|
9951
9976
|
] }),
|
|
9952
9977
|
/* @__PURE__ */ o("div", { className: "ml-auto", children: /* @__PURE__ */ o(
|
|
@@ -9955,7 +9980,7 @@ function i3({
|
|
|
9955
9980
|
variant: "secondary",
|
|
9956
9981
|
disabled: !s || !s.match(/^[a-z0-9]+(?:-[a-z0-9]+)*$/),
|
|
9957
9982
|
onClick: C,
|
|
9958
|
-
children: m ? /* @__PURE__ */ o(
|
|
9983
|
+
children: m ? /* @__PURE__ */ o(Y, { name: "loader", className: "animate-spin" }) : "Create"
|
|
9959
9984
|
}
|
|
9960
9985
|
) })
|
|
9961
9986
|
] })
|
|
@@ -10011,7 +10036,7 @@ function ya({
|
|
|
10011
10036
|
placeholder: r
|
|
10012
10037
|
}) {
|
|
10013
10038
|
return /* @__PURE__ */ w("div", { className: "border-neutral-softest relative flex items-center gap-2 border-b p-3", children: [
|
|
10014
|
-
/* @__PURE__ */ o(
|
|
10039
|
+
/* @__PURE__ */ o(Y, { name: "search", className: "text-muted-foreground" }),
|
|
10015
10040
|
/* @__PURE__ */ o(
|
|
10016
10041
|
"input",
|
|
10017
10042
|
{
|
|
@@ -10027,7 +10052,7 @@ function ya({
|
|
|
10027
10052
|
{
|
|
10028
10053
|
className: "hover:bg-accent text-muted-foreground flex h-8 w-8 cursor-pointer items-center justify-center rounded-sm",
|
|
10029
10054
|
onClick: () => n(""),
|
|
10030
|
-
children: /* @__PURE__ */ o(
|
|
10055
|
+
children: /* @__PURE__ */ o(Y, { name: "x", size: "small" })
|
|
10031
10056
|
}
|
|
10032
10057
|
) })
|
|
10033
10058
|
] });
|
|
@@ -10041,7 +10066,7 @@ function Cs({
|
|
|
10041
10066
|
onSelectRecent: s,
|
|
10042
10067
|
filterOrgFunc: i
|
|
10043
10068
|
}) {
|
|
10044
|
-
const l = ce(null), [d, u] =
|
|
10069
|
+
const l = ce(null), [d, u] = K(""), p = ce(null), [f, g] = K(e);
|
|
10045
10070
|
return oe(() => {
|
|
10046
10071
|
g(e.filter((m) => i(m, d)));
|
|
10047
10072
|
}, [d, i, e]), oe(() => {
|
|
@@ -10081,7 +10106,7 @@ function Cs({
|
|
|
10081
10106
|
children: [
|
|
10082
10107
|
/* @__PURE__ */ o(ur, { name: m.label }),
|
|
10083
10108
|
/* @__PURE__ */ o(le, { className: "truncate", children: m.slug }),
|
|
10084
|
-
!t && n?.slug === m.slug && /* @__PURE__ */ o("div", { className: "ml-auto", children: /* @__PURE__ */ o(
|
|
10109
|
+
!t && n?.slug === m.slug && /* @__PURE__ */ o("div", { className: "ml-auto", children: /* @__PURE__ */ o(Y, { name: "chevron-right", size: "small" }) })
|
|
10085
10110
|
]
|
|
10086
10111
|
},
|
|
10087
10112
|
m.slug
|
|
@@ -10097,9 +10122,9 @@ function Cs({
|
|
|
10097
10122
|
t && "text-accent-foreground font-semibold"
|
|
10098
10123
|
),
|
|
10099
10124
|
children: [
|
|
10100
|
-
/* @__PURE__ */ o(
|
|
10125
|
+
/* @__PURE__ */ o(Y, { name: "history" }),
|
|
10101
10126
|
/* @__PURE__ */ o(le, { children: "Recently used" }),
|
|
10102
|
-
t && /* @__PURE__ */ o("div", { className: "ml-auto", children: /* @__PURE__ */ o(
|
|
10127
|
+
t && /* @__PURE__ */ o("div", { className: "ml-auto", children: /* @__PURE__ */ o(Y, { name: "chevron-right", size: "2xl" }) })
|
|
10103
10128
|
]
|
|
10104
10129
|
}
|
|
10105
10130
|
) })
|
|
@@ -10135,7 +10160,7 @@ function d3({
|
|
|
10135
10160
|
enableCreate: a = !0,
|
|
10136
10161
|
filterWorkspaceFunc: s
|
|
10137
10162
|
}) {
|
|
10138
|
-
const i = ce(null), [l, d] =
|
|
10163
|
+
const i = ce(null), [l, d] = K(""), u = ce(null), [p, f] = K(
|
|
10139
10164
|
e?.workspaces || []
|
|
10140
10165
|
);
|
|
10141
10166
|
return oe(() => {
|
|
@@ -10189,7 +10214,7 @@ function d3({
|
|
|
10189
10214
|
onSelect: n,
|
|
10190
10215
|
className: y("m-1 cursor-pointer !items-center p-4 text-base"),
|
|
10191
10216
|
children: [
|
|
10192
|
-
/* @__PURE__ */ o(
|
|
10217
|
+
/* @__PURE__ */ o(Y, { name: "plus" }),
|
|
10193
10218
|
/* @__PURE__ */ o(le, { children: "Create workspace" })
|
|
10194
10219
|
]
|
|
10195
10220
|
}
|
|
@@ -10204,7 +10229,7 @@ function u3({
|
|
|
10204
10229
|
selectedWorkspace: a,
|
|
10205
10230
|
handleCreateViewOpen: s
|
|
10206
10231
|
}) {
|
|
10207
|
-
const [i, l] =
|
|
10232
|
+
const [i, l] = K(""), d = ce(null), [u, p] = K(
|
|
10208
10233
|
e
|
|
10209
10234
|
);
|
|
10210
10235
|
return oe(() => {
|
|
@@ -10245,7 +10270,7 @@ function u3({
|
|
|
10245
10270
|
onSelect: s,
|
|
10246
10271
|
className: y("m-1 cursor-pointer !items-center p-4 text-base"),
|
|
10247
10272
|
children: [
|
|
10248
|
-
/* @__PURE__ */ o(
|
|
10273
|
+
/* @__PURE__ */ o(Y, { name: "plus" }),
|
|
10249
10274
|
/* @__PURE__ */ o(le, { children: "Create workspace" })
|
|
10250
10275
|
]
|
|
10251
10276
|
}
|
|
@@ -10253,7 +10278,7 @@ function u3({
|
|
|
10253
10278
|
] });
|
|
10254
10279
|
}
|
|
10255
10280
|
function f3({ onSubmit: e }) {
|
|
10256
|
-
const [t, n] =
|
|
10281
|
+
const [t, n] = K(""), r = ce(null);
|
|
10257
10282
|
return oe(() => {
|
|
10258
10283
|
r.current && r.current.focus();
|
|
10259
10284
|
}, []), /* @__PURE__ */ w(yt, { className: "relative", children: [
|
|
@@ -10341,24 +10366,24 @@ function wv({
|
|
|
10341
10366
|
d ?? !1
|
|
10342
10367
|
), [C, S] = c.useState(
|
|
10343
10368
|
e.length === 0
|
|
10344
|
-
), [R, M] = c.useState(""), E = c.useRef(null), [k, N] = c.useState(a.length > 0), { isTransitioning:
|
|
10369
|
+
), [R, M] = c.useState(""), E = c.useRef(null), [k, N] = c.useState(a.length > 0), { isTransitioning: D, startTransition: z, setIsTransitioning: $ } = p3(), [T, B] = c.useState(null);
|
|
10345
10370
|
c.useLayoutEffect(() => {
|
|
10346
|
-
C && (
|
|
10371
|
+
C && (B("org"), $(!0));
|
|
10347
10372
|
}, [C]);
|
|
10348
|
-
const
|
|
10349
|
-
(
|
|
10350
|
-
t(
|
|
10373
|
+
const A = c.useCallback(
|
|
10374
|
+
(q, ne) => {
|
|
10375
|
+
t(q, ne), h(q), m(ne);
|
|
10351
10376
|
},
|
|
10352
10377
|
[t]
|
|
10353
|
-
),
|
|
10354
|
-
h(
|
|
10355
|
-
}, []),
|
|
10356
|
-
async (
|
|
10378
|
+
), W = c.useCallback((q) => {
|
|
10379
|
+
h(q), N(!1);
|
|
10380
|
+
}, []), O = c.useCallback(
|
|
10381
|
+
async (q, ne) => {
|
|
10357
10382
|
if (ne) {
|
|
10358
|
-
const P = await n(
|
|
10383
|
+
const P = await n(q, ne);
|
|
10359
10384
|
if (!P.success)
|
|
10360
10385
|
return P;
|
|
10361
|
-
const
|
|
10386
|
+
const U = {
|
|
10362
10387
|
id: ne,
|
|
10363
10388
|
label: ne,
|
|
10364
10389
|
slug: ne,
|
|
@@ -10366,42 +10391,42 @@ function wv({
|
|
|
10366
10391
|
createdAt: /* @__PURE__ */ new Date(),
|
|
10367
10392
|
updatedAt: /* @__PURE__ */ new Date()
|
|
10368
10393
|
};
|
|
10369
|
-
return l ? (t(
|
|
10394
|
+
return l ? (t(q, U), { success: !0 }) : (z(() => {
|
|
10370
10395
|
h(
|
|
10371
|
-
(
|
|
10372
|
-
...
|
|
10373
|
-
workspaces: [...
|
|
10396
|
+
(X) => X ? {
|
|
10397
|
+
...X,
|
|
10398
|
+
workspaces: [...X.workspaces, U]
|
|
10374
10399
|
} : null
|
|
10375
|
-
), M(""), x(!1), m(
|
|
10400
|
+
), M(""), x(!1), m(U), B(null), N(!1);
|
|
10376
10401
|
}), { success: !0 });
|
|
10377
10402
|
}
|
|
10378
10403
|
return { success: !1, error: "No workspace name provided" };
|
|
10379
10404
|
},
|
|
10380
|
-
[n, l, t,
|
|
10381
|
-
),
|
|
10382
|
-
async (
|
|
10383
|
-
const ne = await i(
|
|
10405
|
+
[n, l, t, z]
|
|
10406
|
+
), G = c.useCallback(
|
|
10407
|
+
async (q) => {
|
|
10408
|
+
const ne = await i(q);
|
|
10384
10409
|
function P() {
|
|
10385
10410
|
h(ne), S(!1), x(!0);
|
|
10386
10411
|
}
|
|
10387
10412
|
return document.startViewTransition ? document.startViewTransition(() => P()) : P(), ne;
|
|
10388
10413
|
},
|
|
10389
10414
|
[i]
|
|
10390
|
-
),
|
|
10391
|
-
|
|
10415
|
+
), _ = c.useCallback(() => {
|
|
10416
|
+
z(() => {
|
|
10392
10417
|
E.current && s && (E.current.style.height = `${s}px`), x(!0);
|
|
10393
10418
|
});
|
|
10394
|
-
}, [
|
|
10395
|
-
const
|
|
10396
|
-
|
|
10419
|
+
}, [z]), I = c.useCallback(() => {
|
|
10420
|
+
const q = document.documentElement;
|
|
10421
|
+
q.classList.add("view-transition-reverse"), z(
|
|
10397
10422
|
() => {
|
|
10398
10423
|
x(!1), S(!1);
|
|
10399
10424
|
},
|
|
10400
10425
|
() => {
|
|
10401
|
-
|
|
10426
|
+
q.classList.remove("view-transition-reverse");
|
|
10402
10427
|
}
|
|
10403
10428
|
);
|
|
10404
|
-
}, [
|
|
10429
|
+
}, [z]);
|
|
10405
10430
|
return /* @__PURE__ */ o(
|
|
10406
10431
|
"div",
|
|
10407
10432
|
{
|
|
@@ -10411,15 +10436,15 @@ function wv({
|
|
|
10411
10436
|
children: C ? /* @__PURE__ */ o(
|
|
10412
10437
|
"div",
|
|
10413
10438
|
{
|
|
10414
|
-
style: { viewTransitionName:
|
|
10439
|
+
style: { viewTransitionName: D ? "create-dialog" : "" },
|
|
10415
10440
|
className: "h-full w-full",
|
|
10416
|
-
children: /* @__PURE__ */ o(f3, { onSubmit:
|
|
10441
|
+
children: /* @__PURE__ */ o(f3, { onSubmit: G })
|
|
10417
10442
|
}
|
|
10418
10443
|
) : b ? /* @__PURE__ */ o(
|
|
10419
10444
|
"div",
|
|
10420
10445
|
{
|
|
10421
10446
|
style: {
|
|
10422
|
-
viewTransitionName:
|
|
10447
|
+
viewTransitionName: D ? "create-dialog" : ""
|
|
10423
10448
|
},
|
|
10424
10449
|
className: "h-full w-full",
|
|
10425
10450
|
children: /* @__PURE__ */ o(
|
|
@@ -10428,9 +10453,9 @@ function wv({
|
|
|
10428
10453
|
backButtonEnabled: e.length > 0,
|
|
10429
10454
|
open: b,
|
|
10430
10455
|
selectedOrg: v,
|
|
10431
|
-
onBack:
|
|
10456
|
+
onBack: T === null ? I : void 0,
|
|
10432
10457
|
allOrgs: e,
|
|
10433
|
-
onSubmit: (
|
|
10458
|
+
onSubmit: (q, ne) => O(q, ne),
|
|
10434
10459
|
newWorkspaceName: R,
|
|
10435
10460
|
setNewWorkspaceName: M
|
|
10436
10461
|
}
|
|
@@ -10440,7 +10465,7 @@ function wv({
|
|
|
10440
10465
|
"div",
|
|
10441
10466
|
{
|
|
10442
10467
|
style: {
|
|
10443
|
-
viewTransitionName:
|
|
10468
|
+
viewTransitionName: D ? "workspace-content" : ""
|
|
10444
10469
|
},
|
|
10445
10470
|
className: "flex w-full",
|
|
10446
10471
|
children: /* @__PURE__ */ o(
|
|
@@ -10449,14 +10474,14 @@ function wv({
|
|
|
10449
10474
|
orgs: e,
|
|
10450
10475
|
selectedOrg: v,
|
|
10451
10476
|
selectedWorkspace: g,
|
|
10452
|
-
handleSelect:
|
|
10477
|
+
handleSelect: A,
|
|
10453
10478
|
showRecents: k,
|
|
10454
10479
|
setShowRecents: N,
|
|
10455
10480
|
emptyText: r,
|
|
10456
10481
|
height: s,
|
|
10457
10482
|
recents: a,
|
|
10458
|
-
handleCreateWorkspaceViewOpen:
|
|
10459
|
-
handleSelectOrg:
|
|
10483
|
+
handleCreateWorkspaceViewOpen: _,
|
|
10484
|
+
handleSelectOrg: W,
|
|
10460
10485
|
filterOrgFunc: p,
|
|
10461
10486
|
filterWorkspaceFunc: f
|
|
10462
10487
|
}
|
|
@@ -10708,17 +10733,17 @@ function Nv({
|
|
|
10708
10733
|
useContainer: i = !1,
|
|
10709
10734
|
className: l
|
|
10710
10735
|
}) {
|
|
10711
|
-
const [d, u] =
|
|
10736
|
+
const [d, u] = K(!1), p = () => {
|
|
10712
10737
|
u(!0), a?.();
|
|
10713
10738
|
}, f = s ?? v3[e], g = /* @__PURE__ */ w("div", { className: h3, children: [
|
|
10714
|
-
/* @__PURE__ */ o("div", { className: "flex-shrink-0", children: f && /* @__PURE__ */ o(
|
|
10739
|
+
/* @__PURE__ */ o("div", { className: "flex-shrink-0", children: f && /* @__PURE__ */ o(Y, { name: f, size: "small" }) }),
|
|
10715
10740
|
/* @__PURE__ */ o("div", { children: t })
|
|
10716
10741
|
] }), m = r && /* @__PURE__ */ o("div", { className: "ml-auto self-start", children: /* @__PURE__ */ o(
|
|
10717
10742
|
"button",
|
|
10718
10743
|
{
|
|
10719
10744
|
className: "hover:bg-accent/10 p-2 hover:rounded-lg",
|
|
10720
10745
|
onClick: p,
|
|
10721
|
-
children: /* @__PURE__ */ o(
|
|
10746
|
+
children: /* @__PURE__ */ o(Y, { name: "x" })
|
|
10722
10747
|
}
|
|
10723
10748
|
) });
|
|
10724
10749
|
return /* @__PURE__ */ o(
|
|
@@ -10765,7 +10790,7 @@ function b3({
|
|
|
10765
10790
|
onTabChange: n,
|
|
10766
10791
|
className: r
|
|
10767
10792
|
}) {
|
|
10768
|
-
const [a, s] =
|
|
10793
|
+
const [a, s] = K(
|
|
10769
10794
|
t || e[0].props.id
|
|
10770
10795
|
);
|
|
10771
10796
|
oe(() => {
|
|
@@ -10800,7 +10825,7 @@ const y3 = "_table_1wgyk_1", x3 = "_tableHeader_1wgyk_22", w3 = "_tableCell_1wgy
|
|
|
10800
10825
|
};
|
|
10801
10826
|
var C3 = "VisuallyHidden", wa = c.forwardRef(
|
|
10802
10827
|
(e, t) => /* @__PURE__ */ o(
|
|
10803
|
-
|
|
10828
|
+
J.span,
|
|
10804
10829
|
{
|
|
10805
10830
|
...e,
|
|
10806
10831
|
ref: t,
|
|
@@ -10913,7 +10938,7 @@ var lo = "TooltipTrigger", rd = c.forwardRef(
|
|
|
10913
10938
|
(e, t) => {
|
|
10914
10939
|
const { __scopeTooltip: n, ...r } = e, a = mn(lo, n), s = Ca(lo, n), i = pr(n), l = c.useRef(null), d = ae(t, l, a.onTriggerChange), u = c.useRef(!1), p = c.useRef(!1), f = c.useCallback(() => u.current = !1, []);
|
|
10915
10940
|
return c.useEffect(() => () => document.removeEventListener("pointerup", f), [f]), /* @__PURE__ */ o(cn, { asChild: !0, ...i, children: /* @__PURE__ */ o(
|
|
10916
|
-
|
|
10941
|
+
J.button,
|
|
10917
10942
|
{
|
|
10918
10943
|
"aria-describedby": a.open ? a.contentId : void 0,
|
|
10919
10944
|
"data-state": a.stateAttribute,
|
|
@@ -11235,7 +11260,7 @@ function K3({
|
|
|
11235
11260
|
{
|
|
11236
11261
|
className: y("mt-1.5 shrink-0", a && "opacity-100"),
|
|
11237
11262
|
children: l ? /* @__PURE__ */ o(
|
|
11238
|
-
|
|
11263
|
+
Z.div,
|
|
11239
11264
|
{
|
|
11240
11265
|
initial: { scale: 0.8 },
|
|
11241
11266
|
animate: { scale: 1 },
|
|
@@ -11279,7 +11304,7 @@ const X3 = (e) => ({
|
|
|
11279
11304
|
}, Y3 = ({
|
|
11280
11305
|
isCollapsed: e
|
|
11281
11306
|
}) => /* @__PURE__ */ o(
|
|
11282
|
-
|
|
11307
|
+
Z.div,
|
|
11283
11308
|
{
|
|
11284
11309
|
initial: "up",
|
|
11285
11310
|
animate: e ? "down" : "up",
|
|
@@ -11307,7 +11332,7 @@ function q3({
|
|
|
11307
11332
|
/* @__PURE__ */ new Set()
|
|
11308
11333
|
), d = (f) => n.includes(f + 1), u = e[a]?.commands || [], p = c.useMemo(() => u.findIndex((f) => !i.has(f.code)), [i, u]);
|
|
11309
11334
|
return /* @__PURE__ */ w(
|
|
11310
|
-
|
|
11335
|
+
Z.div,
|
|
11311
11336
|
{
|
|
11312
11337
|
layout: !0,
|
|
11313
11338
|
className: "relative overflow-hidden select-none",
|
|
@@ -11318,7 +11343,7 @@ function q3({
|
|
|
11318
11343
|
children: [
|
|
11319
11344
|
/* @__PURE__ */ o("div", { className: "w-full py-6", children: /* @__PURE__ */ o("div", { className: "flex items-center", children: /* @__PURE__ */ o(Ye, { variant: "lg", as: "h2", children: "Getting Started" }) }) }),
|
|
11320
11345
|
/* @__PURE__ */ o(Ce, { initial: !1, children: /* @__PURE__ */ o(
|
|
11321
|
-
|
|
11346
|
+
Z.div,
|
|
11322
11347
|
{
|
|
11323
11348
|
initial: { height: 0, opacity: 0 },
|
|
11324
11349
|
animate: { height: "auto", opacity: 1 },
|
|
@@ -11343,7 +11368,7 @@ function q3({
|
|
|
11343
11368
|
{
|
|
11344
11369
|
path: u[p]?.path ?? "~/sdk-project",
|
|
11345
11370
|
children: /* @__PURE__ */ o(
|
|
11346
|
-
|
|
11371
|
+
Z.div,
|
|
11347
11372
|
{
|
|
11348
11373
|
initial: { height: 0, opacity: 0 },
|
|
11349
11374
|
animate: { height: "auto", opacity: 1 },
|
|
@@ -11353,7 +11378,7 @@ function q3({
|
|
|
11353
11378
|
ease: [0.645, 0.045, 0.355, 1]
|
|
11354
11379
|
},
|
|
11355
11380
|
children: /* @__PURE__ */ o("div", { className: "space-y-6", children: /* @__PURE__ */ o(Ce, { mode: "wait", children: u.map((f, g) => /* @__PURE__ */ o(
|
|
11356
|
-
|
|
11381
|
+
Z.div,
|
|
11357
11382
|
{
|
|
11358
11383
|
...X3(g),
|
|
11359
11384
|
children: /* @__PURE__ */ o(
|
|
@@ -11417,7 +11442,7 @@ function J3({
|
|
|
11417
11442
|
}
|
|
11418
11443
|
),
|
|
11419
11444
|
/* @__PURE__ */ o(Ce, { mode: "sync", children: l && /* @__PURE__ */ o(
|
|
11420
|
-
|
|
11445
|
+
Z.div,
|
|
11421
11446
|
{
|
|
11422
11447
|
id: `step-content-${s}`,
|
|
11423
11448
|
initial: { opacity: 0, height: 0 },
|
|
@@ -11457,14 +11482,14 @@ function Q3({
|
|
|
11457
11482
|
}, a = e ? "complete" : t ? "active" : "default", { circle: s, text: i } = r[a];
|
|
11458
11483
|
return /* @__PURE__ */ w("div", { className: "relative z-20 flex h-6 w-6 items-center justify-center", children: [
|
|
11459
11484
|
/* @__PURE__ */ o(
|
|
11460
|
-
|
|
11485
|
+
Z.div,
|
|
11461
11486
|
{
|
|
11462
11487
|
className: y("absolute inset-0 rounded-full", s),
|
|
11463
11488
|
initial: !1
|
|
11464
11489
|
}
|
|
11465
11490
|
),
|
|
11466
11491
|
/* @__PURE__ */ o(
|
|
11467
|
-
|
|
11492
|
+
Z.div,
|
|
11468
11493
|
{
|
|
11469
11494
|
className: y(
|
|
11470
11495
|
"relative z-20 flex h-full w-full items-center justify-center rounded-full",
|
|
@@ -11473,7 +11498,7 @@ function Q3({
|
|
|
11473
11498
|
),
|
|
11474
11499
|
initial: !1,
|
|
11475
11500
|
children: /* @__PURE__ */ o(Ce, { mode: "wait", children: e ? /* @__PURE__ */ o(
|
|
11476
|
-
|
|
11501
|
+
Z.div,
|
|
11477
11502
|
{
|
|
11478
11503
|
initial: { opacity: 0, scale: 0.5 },
|
|
11479
11504
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -11483,7 +11508,7 @@ function Q3({
|
|
|
11483
11508
|
},
|
|
11484
11509
|
"check"
|
|
11485
11510
|
) : /* @__PURE__ */ o(
|
|
11486
|
-
|
|
11511
|
+
Z.div,
|
|
11487
11512
|
{
|
|
11488
11513
|
initial: { opacity: 0, scale: 0.5 },
|
|
11489
11514
|
animate: { opacity: 1, scale: 1 },
|
|
@@ -11512,7 +11537,7 @@ function e5({
|
|
|
11512
11537
|
depth: t,
|
|
11513
11538
|
expandedRowKeys: n
|
|
11514
11539
|
}) {
|
|
11515
|
-
const [r, a] =
|
|
11540
|
+
const [r, a] = K(
|
|
11516
11541
|
n ?? /* @__PURE__ */ new Set()
|
|
11517
11542
|
), s = pe(
|
|
11518
11543
|
(i) => {
|
|
@@ -11589,7 +11614,7 @@ function t5(e) {
|
|
|
11589
11614
|
className: h,
|
|
11590
11615
|
hideHeader: b,
|
|
11591
11616
|
cellPadding: x
|
|
11592
|
-
} = e, [C, S] =
|
|
11617
|
+
} = e, [C, S] = K(!1), R = async () => {
|
|
11593
11618
|
S(!0), await p?.(), S(!1);
|
|
11594
11619
|
}, M = ye(() => {
|
|
11595
11620
|
if (!Ys(l))
|
|
@@ -11946,7 +11971,7 @@ function Ev({
|
|
|
11946
11971
|
className: l,
|
|
11947
11972
|
...d
|
|
11948
11973
|
}) {
|
|
11949
|
-
const [u, p] =
|
|
11974
|
+
const [u, p] = K(!1), f = pe(
|
|
11950
11975
|
(h) => {
|
|
11951
11976
|
d.onFocus && d.onFocus(h), p(!0);
|
|
11952
11977
|
},
|
|
@@ -12000,7 +12025,7 @@ function Ev({
|
|
|
12000
12025
|
l
|
|
12001
12026
|
),
|
|
12002
12027
|
children: [
|
|
12003
|
-
a && /* @__PURE__ */ o(
|
|
12028
|
+
a && /* @__PURE__ */ o(Y, { name: a, size: "small" }),
|
|
12004
12029
|
v
|
|
12005
12030
|
]
|
|
12006
12031
|
}
|
|
@@ -12065,7 +12090,7 @@ const i5 = "_pageHeader_z7r3c_1", l5 = "_contextBar_z7r3c_6", c5 = "_titleBar_z7
|
|
|
12065
12090
|
asChild: d = !1,
|
|
12066
12091
|
...u
|
|
12067
12092
|
}, p) => {
|
|
12068
|
-
const f = d ?
|
|
12093
|
+
const f = d ? Ne : "a", g = d ? gd({ underline: r, variant: t }) : "";
|
|
12069
12094
|
return /* @__PURE__ */ w(
|
|
12070
12095
|
f,
|
|
12071
12096
|
{
|
|
@@ -12078,9 +12103,9 @@ const i5 = "_pageHeader_z7r3c_1", l5 = "_contextBar_z7r3c_6", c5 = "_titleBar_z7
|
|
|
12078
12103
|
),
|
|
12079
12104
|
...u,
|
|
12080
12105
|
children: [
|
|
12081
|
-
s && /* @__PURE__ */ o(Ps, { size: n, children: /* @__PURE__ */ o(
|
|
12106
|
+
s && /* @__PURE__ */ o(Ps, { size: n, children: /* @__PURE__ */ o(Y, { name: s, size: "small" }) }),
|
|
12082
12107
|
d ? /* @__PURE__ */ o(Co, { children: e }) : /* @__PURE__ */ o(h5, { underline: r, variant: t, children: e }),
|
|
12083
|
-
i && /* @__PURE__ */ o(Ps, { size: n, children: /* @__PURE__ */ o(
|
|
12108
|
+
i && /* @__PURE__ */ o(Ps, { size: n, children: /* @__PURE__ */ o(Y, { name: i, size: "small" }) })
|
|
12084
12109
|
]
|
|
12085
12110
|
}
|
|
12086
12111
|
);
|
|
@@ -12259,7 +12284,7 @@ function kv({
|
|
|
12259
12284
|
title: a,
|
|
12260
12285
|
className: s
|
|
12261
12286
|
}) {
|
|
12262
|
-
const [i, l] =
|
|
12287
|
+
const [i, l] = K(null);
|
|
12263
12288
|
return oe(() => {
|
|
12264
12289
|
b5.includes(t) && v5(/* @__PURE__ */ Object.assign({ "../../assets/icons/external/github.svg": () => import("./github-kgjMtfE7.mjs"), "../../assets/icons/external/maven.svg": () => import("./maven-W_nkSDNW.mjs"), "../../assets/icons/external/npm.svg": () => import("./npm-BWTcVvFH.mjs"), "../../assets/icons/external/nuget.svg": () => import("./nuget-CV5HU1JR.mjs"), "../../assets/icons/external/packagist.svg": () => import("./packagist-D01fn9N_.mjs"), "../../assets/icons/external/pypi.svg": () => import("./pypi-DLh6kIJe.mjs"), "../../assets/icons/external/rubygems.svg": () => import("./rubygems-DeiNjcDV.mjs"), "../../assets/icons/external/terraform.svg": () => import("./terraform-C4aktQ0o.mjs") }), `../../assets/icons/external/${t}.svg`, 6).then(
|
|
12265
12290
|
(d) => l(d.default)
|
|
@@ -12275,7 +12300,7 @@ function kv({
|
|
|
12275
12300
|
s
|
|
12276
12301
|
),
|
|
12277
12302
|
children: [
|
|
12278
|
-
i ? /* @__PURE__ */ o(i, {}) : /* @__PURE__ */ o(
|
|
12303
|
+
i ? /* @__PURE__ */ o(i, {}) : /* @__PURE__ */ o(Y, { name: "external-link" }),
|
|
12279
12304
|
/* @__PURE__ */ o("p", { className: "text-xs font-normal", children: n })
|
|
12280
12305
|
]
|
|
12281
12306
|
}
|
|
@@ -12404,11 +12429,11 @@ var N5 = [" ", "Enter", "ArrowUp", "ArrowDown"], S5 = [" ", "Enter"], gn = "Sele
|
|
|
12404
12429
|
prop: r,
|
|
12405
12430
|
defaultProp: a,
|
|
12406
12431
|
onChange: s
|
|
12407
|
-
}), [
|
|
12432
|
+
}), [D, z] = Ke({
|
|
12408
12433
|
prop: i,
|
|
12409
12434
|
defaultProp: l,
|
|
12410
12435
|
onChange: d
|
|
12411
|
-
}),
|
|
12436
|
+
}), $ = c.useRef(null), T = b ? v || !!b.closest("form") : !0, [B, A] = c.useState(/* @__PURE__ */ new Set()), W = Array.from(B).map((O) => O.props.value).join(";");
|
|
12412
12437
|
return /* @__PURE__ */ o(ln, { ...h, children: /* @__PURE__ */ w(
|
|
12413
12438
|
k5,
|
|
12414
12439
|
{
|
|
@@ -12421,31 +12446,31 @@ var N5 = [" ", "Enter", "ArrowUp", "ArrowDown"], S5 = [" ", "Enter"], gn = "Sele
|
|
|
12421
12446
|
valueNodeHasChildren: R,
|
|
12422
12447
|
onValueNodeHasChildrenChange: M,
|
|
12423
12448
|
contentId: ge(),
|
|
12424
|
-
value:
|
|
12425
|
-
onValueChange:
|
|
12449
|
+
value: D,
|
|
12450
|
+
onValueChange: z,
|
|
12426
12451
|
open: k,
|
|
12427
12452
|
onOpenChange: N,
|
|
12428
12453
|
dir: E,
|
|
12429
|
-
triggerPointerDownPosRef:
|
|
12454
|
+
triggerPointerDownPosRef: $,
|
|
12430
12455
|
disabled: g,
|
|
12431
12456
|
children: [
|
|
12432
12457
|
/* @__PURE__ */ o(yr.Provider, { scope: t, children: /* @__PURE__ */ o(
|
|
12433
12458
|
R5,
|
|
12434
12459
|
{
|
|
12435
12460
|
scope: e.__scopeSelect,
|
|
12436
|
-
onNativeOptionAdd: c.useCallback((
|
|
12437
|
-
|
|
12461
|
+
onNativeOptionAdd: c.useCallback((O) => {
|
|
12462
|
+
A((G) => new Set(G).add(O));
|
|
12438
12463
|
}, []),
|
|
12439
|
-
onNativeOptionRemove: c.useCallback((
|
|
12440
|
-
|
|
12441
|
-
const
|
|
12442
|
-
return
|
|
12464
|
+
onNativeOptionRemove: c.useCallback((O) => {
|
|
12465
|
+
A((G) => {
|
|
12466
|
+
const _ = new Set(G);
|
|
12467
|
+
return _.delete(O), _;
|
|
12443
12468
|
});
|
|
12444
12469
|
}, []),
|
|
12445
12470
|
children: n
|
|
12446
12471
|
}
|
|
12447
12472
|
) }),
|
|
12448
|
-
|
|
12473
|
+
T ? /* @__PURE__ */ w(
|
|
12449
12474
|
eu,
|
|
12450
12475
|
{
|
|
12451
12476
|
"aria-hidden": !0,
|
|
@@ -12453,16 +12478,16 @@ var N5 = [" ", "Enter", "ArrowUp", "ArrowDown"], S5 = [" ", "Enter"], gn = "Sele
|
|
|
12453
12478
|
tabIndex: -1,
|
|
12454
12479
|
name: p,
|
|
12455
12480
|
autoComplete: f,
|
|
12456
|
-
value:
|
|
12457
|
-
onChange: (
|
|
12481
|
+
value: D,
|
|
12482
|
+
onChange: (O) => z(O.target.value),
|
|
12458
12483
|
disabled: g,
|
|
12459
12484
|
form: v,
|
|
12460
12485
|
children: [
|
|
12461
|
-
|
|
12462
|
-
Array.from(
|
|
12486
|
+
D === void 0 ? /* @__PURE__ */ o("option", { value: "" }) : null,
|
|
12487
|
+
Array.from(B)
|
|
12463
12488
|
]
|
|
12464
12489
|
},
|
|
12465
|
-
|
|
12490
|
+
W
|
|
12466
12491
|
) : null
|
|
12467
12492
|
]
|
|
12468
12493
|
}
|
|
@@ -12481,7 +12506,7 @@ var Pd = "SelectTrigger", Id = c.forwardRef(
|
|
|
12481
12506
|
});
|
|
12482
12507
|
};
|
|
12483
12508
|
return /* @__PURE__ */ o(cn, { asChild: !0, ...s, children: /* @__PURE__ */ o(
|
|
12484
|
-
|
|
12509
|
+
J.button,
|
|
12485
12510
|
{
|
|
12486
12511
|
type: "button",
|
|
12487
12512
|
role: "combobox",
|
|
@@ -12516,10 +12541,10 @@ Id.displayName = Pd;
|
|
|
12516
12541
|
var Td = "SelectValue", Ad = c.forwardRef(
|
|
12517
12542
|
(e, t) => {
|
|
12518
12543
|
const { __scopeSelect: n, className: r, style: a, children: s, placeholder: i = "", ...l } = e, d = it(Td, n), { onValueNodeHasChildrenChange: u } = d, p = s !== void 0, f = ae(t, d.onValueNodeChange);
|
|
12519
|
-
return
|
|
12544
|
+
return Se(() => {
|
|
12520
12545
|
u(p);
|
|
12521
12546
|
}, [u, p]), /* @__PURE__ */ o(
|
|
12522
|
-
|
|
12547
|
+
J.span,
|
|
12523
12548
|
{
|
|
12524
12549
|
...l,
|
|
12525
12550
|
ref: f,
|
|
@@ -12533,7 +12558,7 @@ Ad.displayName = Td;
|
|
|
12533
12558
|
var P5 = "SelectIcon", _d = c.forwardRef(
|
|
12534
12559
|
(e, t) => {
|
|
12535
12560
|
const { __scopeSelect: n, children: r, ...a } = e;
|
|
12536
|
-
return /* @__PURE__ */ o(
|
|
12561
|
+
return /* @__PURE__ */ o(J.span, { "aria-hidden": !0, ...a, ref: t, children: r || "▼" });
|
|
12537
12562
|
}
|
|
12538
12563
|
);
|
|
12539
12564
|
_d.displayName = P5;
|
|
@@ -12542,7 +12567,7 @@ Ld.displayName = I5;
|
|
|
12542
12567
|
var bt = "SelectContent", Od = c.forwardRef(
|
|
12543
12568
|
(e, t) => {
|
|
12544
12569
|
const n = it(bt, e.__scopeSelect), [r, a] = c.useState();
|
|
12545
|
-
if (
|
|
12570
|
+
if (Se(() => {
|
|
12546
12571
|
a(new DocumentFragment());
|
|
12547
12572
|
}, []), !n.open) {
|
|
12548
12573
|
const s = r;
|
|
@@ -12577,61 +12602,61 @@ var Le = 10, [Dd, lt] = Ft(bt), T5 = "SelectContentImpl", zd = c.forwardRef(
|
|
|
12577
12602
|
avoidCollisions: b,
|
|
12578
12603
|
//
|
|
12579
12604
|
...x
|
|
12580
|
-
} = e, C = it(bt, n), [S, R] = c.useState(null), [M, E] = c.useState(null), k = ae(t, (
|
|
12605
|
+
} = e, C = it(bt, n), [S, R] = c.useState(null), [M, E] = c.useState(null), k = ae(t, (L) => R(L)), [N, D] = c.useState(null), [z, $] = c.useState(
|
|
12581
12606
|
null
|
|
12582
|
-
),
|
|
12607
|
+
), T = xr(n), [B, A] = c.useState(!1), W = c.useRef(!1);
|
|
12583
12608
|
c.useEffect(() => {
|
|
12584
12609
|
if (S) return er(S);
|
|
12585
12610
|
}, [S]), Jn();
|
|
12586
|
-
const
|
|
12587
|
-
(
|
|
12588
|
-
const [ee, ...se] =
|
|
12589
|
-
for (const fe of
|
|
12611
|
+
const O = c.useCallback(
|
|
12612
|
+
(L) => {
|
|
12613
|
+
const [ee, ...se] = T().map((fe) => fe.ref.current), [ie] = se.slice(-1), ue = document.activeElement;
|
|
12614
|
+
for (const fe of L)
|
|
12590
12615
|
if (fe === ue || (fe?.scrollIntoView({ block: "nearest" }), fe === ee && M && (M.scrollTop = 0), fe === ie && M && (M.scrollTop = M.scrollHeight), fe?.focus(), document.activeElement !== ue)) return;
|
|
12591
12616
|
},
|
|
12592
|
-
[
|
|
12593
|
-
),
|
|
12594
|
-
() =>
|
|
12595
|
-
[
|
|
12617
|
+
[T, M]
|
|
12618
|
+
), G = c.useCallback(
|
|
12619
|
+
() => O([N, S]),
|
|
12620
|
+
[O, N, S]
|
|
12596
12621
|
);
|
|
12597
12622
|
c.useEffect(() => {
|
|
12598
|
-
|
|
12599
|
-
}, [
|
|
12600
|
-
const { onOpenChange:
|
|
12623
|
+
B && G();
|
|
12624
|
+
}, [B, G]);
|
|
12625
|
+
const { onOpenChange: _, triggerPointerDownPosRef: I } = C;
|
|
12601
12626
|
c.useEffect(() => {
|
|
12602
12627
|
if (S) {
|
|
12603
|
-
let
|
|
12628
|
+
let L = { x: 0, y: 0 };
|
|
12604
12629
|
const ee = (ie) => {
|
|
12605
|
-
|
|
12606
|
-
x: Math.abs(Math.round(ie.pageX) - (
|
|
12607
|
-
y: Math.abs(Math.round(ie.pageY) - (
|
|
12630
|
+
L = {
|
|
12631
|
+
x: Math.abs(Math.round(ie.pageX) - (I.current?.x ?? 0)),
|
|
12632
|
+
y: Math.abs(Math.round(ie.pageY) - (I.current?.y ?? 0))
|
|
12608
12633
|
};
|
|
12609
12634
|
}, se = (ie) => {
|
|
12610
|
-
|
|
12635
|
+
L.x <= 10 && L.y <= 10 ? ie.preventDefault() : S.contains(ie.target) || _(!1), document.removeEventListener("pointermove", ee), I.current = null;
|
|
12611
12636
|
};
|
|
12612
|
-
return
|
|
12637
|
+
return I.current !== null && (document.addEventListener("pointermove", ee), document.addEventListener("pointerup", se, { capture: !0, once: !0 })), () => {
|
|
12613
12638
|
document.removeEventListener("pointermove", ee), document.removeEventListener("pointerup", se, { capture: !0 });
|
|
12614
12639
|
};
|
|
12615
12640
|
}
|
|
12616
|
-
}, [S,
|
|
12617
|
-
const
|
|
12618
|
-
return window.addEventListener("blur",
|
|
12619
|
-
window.removeEventListener("blur",
|
|
12641
|
+
}, [S, _, I]), c.useEffect(() => {
|
|
12642
|
+
const L = () => _(!1);
|
|
12643
|
+
return window.addEventListener("blur", L), window.addEventListener("resize", L), () => {
|
|
12644
|
+
window.removeEventListener("blur", L), window.removeEventListener("resize", L);
|
|
12620
12645
|
};
|
|
12621
|
-
}, [
|
|
12622
|
-
const [
|
|
12623
|
-
const ee =
|
|
12646
|
+
}, [_]);
|
|
12647
|
+
const [q, ne] = tu((L) => {
|
|
12648
|
+
const ee = T().filter((ue) => !ue.disabled), se = ee.find((ue) => ue.ref.current === document.activeElement), ie = nu(ee, L, se);
|
|
12624
12649
|
ie && setTimeout(() => ie.ref.current.focus());
|
|
12625
12650
|
}), P = c.useCallback(
|
|
12626
|
-
(
|
|
12627
|
-
const ie = !
|
|
12628
|
-
(C.value !== void 0 && C.value === ee || ie) && (
|
|
12651
|
+
(L, ee, se) => {
|
|
12652
|
+
const ie = !W.current && !se;
|
|
12653
|
+
(C.value !== void 0 && C.value === ee || ie) && (D(L), ie && (W.current = !0));
|
|
12629
12654
|
},
|
|
12630
12655
|
[C.value]
|
|
12631
|
-
),
|
|
12632
|
-
(
|
|
12633
|
-
const ie = !
|
|
12634
|
-
(C.value !== void 0 && C.value === ee || ie) &&
|
|
12656
|
+
), U = c.useCallback(() => S?.focus(), [S]), X = c.useCallback(
|
|
12657
|
+
(L, ee, se) => {
|
|
12658
|
+
const ie = !W.current && !se;
|
|
12659
|
+
(C.value !== void 0 && C.value === ee || ie) && $(L);
|
|
12635
12660
|
},
|
|
12636
12661
|
[C.value]
|
|
12637
12662
|
), F = r === "popper" ? co : $d, Q = F === co ? {
|
|
@@ -12655,23 +12680,23 @@ var Le = 10, [Dd, lt] = Ft(bt), T5 = "SelectContentImpl", zd = c.forwardRef(
|
|
|
12655
12680
|
onViewportChange: E,
|
|
12656
12681
|
itemRefCallback: P,
|
|
12657
12682
|
selectedItem: N,
|
|
12658
|
-
onItemLeave:
|
|
12659
|
-
itemTextRefCallback:
|
|
12660
|
-
focusSelectedItem:
|
|
12661
|
-
selectedItemText:
|
|
12683
|
+
onItemLeave: U,
|
|
12684
|
+
itemTextRefCallback: X,
|
|
12685
|
+
focusSelectedItem: G,
|
|
12686
|
+
selectedItemText: z,
|
|
12662
12687
|
position: r,
|
|
12663
|
-
isPositioned:
|
|
12664
|
-
searchRef:
|
|
12665
|
-
children: /* @__PURE__ */ o(on, { as:
|
|
12688
|
+
isPositioned: B,
|
|
12689
|
+
searchRef: q,
|
|
12690
|
+
children: /* @__PURE__ */ o(on, { as: Ne, allowPinchZoom: !0, children: /* @__PURE__ */ o(
|
|
12666
12691
|
rn,
|
|
12667
12692
|
{
|
|
12668
12693
|
asChild: !0,
|
|
12669
12694
|
trapped: C.open,
|
|
12670
|
-
onMountAutoFocus: (
|
|
12671
|
-
|
|
12695
|
+
onMountAutoFocus: (L) => {
|
|
12696
|
+
L.preventDefault();
|
|
12672
12697
|
},
|
|
12673
|
-
onUnmountAutoFocus: H(a, (
|
|
12674
|
-
C.trigger?.focus({ preventScroll: !0 }),
|
|
12698
|
+
onUnmountAutoFocus: H(a, (L) => {
|
|
12699
|
+
C.trigger?.focus({ preventScroll: !0 }), L.preventDefault();
|
|
12675
12700
|
}),
|
|
12676
12701
|
children: /* @__PURE__ */ o(
|
|
12677
12702
|
Dt,
|
|
@@ -12680,7 +12705,7 @@ var Le = 10, [Dd, lt] = Ft(bt), T5 = "SelectContentImpl", zd = c.forwardRef(
|
|
|
12680
12705
|
disableOutsidePointerEvents: !0,
|
|
12681
12706
|
onEscapeKeyDown: s,
|
|
12682
12707
|
onPointerDownOutside: i,
|
|
12683
|
-
onFocusOutside: (
|
|
12708
|
+
onFocusOutside: (L) => L.preventDefault(),
|
|
12684
12709
|
onDismiss: () => C.onOpenChange(!1),
|
|
12685
12710
|
children: /* @__PURE__ */ o(
|
|
12686
12711
|
F,
|
|
@@ -12689,10 +12714,10 @@ var Le = 10, [Dd, lt] = Ft(bt), T5 = "SelectContentImpl", zd = c.forwardRef(
|
|
|
12689
12714
|
id: C.contentId,
|
|
12690
12715
|
"data-state": C.open ? "open" : "closed",
|
|
12691
12716
|
dir: C.dir,
|
|
12692
|
-
onContextMenu: (
|
|
12717
|
+
onContextMenu: (L) => L.preventDefault(),
|
|
12693
12718
|
...x,
|
|
12694
12719
|
...Q,
|
|
12695
|
-
onPlaced: () =>
|
|
12720
|
+
onPlaced: () => A(!0),
|
|
12696
12721
|
ref: k,
|
|
12697
12722
|
style: {
|
|
12698
12723
|
// flex layout so we can place the scroll buttons properly
|
|
@@ -12702,15 +12727,15 @@ var Le = 10, [Dd, lt] = Ft(bt), T5 = "SelectContentImpl", zd = c.forwardRef(
|
|
|
12702
12727
|
outline: "none",
|
|
12703
12728
|
...x.style
|
|
12704
12729
|
},
|
|
12705
|
-
onKeyDown: H(x.onKeyDown, (
|
|
12706
|
-
const ee =
|
|
12707
|
-
if (
|
|
12708
|
-
let ie =
|
|
12709
|
-
if (["ArrowUp", "End"].includes(
|
|
12710
|
-
const ue =
|
|
12730
|
+
onKeyDown: H(x.onKeyDown, (L) => {
|
|
12731
|
+
const ee = L.ctrlKey || L.altKey || L.metaKey;
|
|
12732
|
+
if (L.key === "Tab" && L.preventDefault(), !ee && L.key.length === 1 && ne(L.key), ["ArrowUp", "ArrowDown", "Home", "End"].includes(L.key)) {
|
|
12733
|
+
let ie = T().filter((ue) => !ue.disabled).map((ue) => ue.ref.current);
|
|
12734
|
+
if (["ArrowUp", "End"].includes(L.key) && (ie = ie.slice().reverse()), ["ArrowUp", "ArrowDown"].includes(L.key)) {
|
|
12735
|
+
const ue = L.target, fe = ie.indexOf(ue);
|
|
12711
12736
|
ie = ie.slice(fe + 1);
|
|
12712
12737
|
}
|
|
12713
|
-
setTimeout(() =>
|
|
12738
|
+
setTimeout(() => O(ie)), L.preventDefault();
|
|
12714
12739
|
}
|
|
12715
12740
|
})
|
|
12716
12741
|
}
|
|
@@ -12727,9 +12752,9 @@ zd.displayName = T5;
|
|
|
12727
12752
|
var A5 = "SelectItemAlignedPosition", $d = c.forwardRef((e, t) => {
|
|
12728
12753
|
const { __scopeSelect: n, onPlaced: r, ...a } = e, s = it(bt, n), i = lt(bt, n), [l, d] = c.useState(null), [u, p] = c.useState(null), f = ae(t, (k) => p(k)), g = xr(n), m = c.useRef(!1), v = c.useRef(!0), { viewport: h, selectedItem: b, selectedItemText: x, focusSelectedItem: C } = i, S = c.useCallback(() => {
|
|
12729
12754
|
if (s.trigger && s.valueNode && l && u && h && b && x) {
|
|
12730
|
-
const k = s.trigger.getBoundingClientRect(), N = u.getBoundingClientRect(),
|
|
12755
|
+
const k = s.trigger.getBoundingClientRect(), N = u.getBoundingClientRect(), D = s.valueNode.getBoundingClientRect(), z = x.getBoundingClientRect();
|
|
12731
12756
|
if (s.dir !== "rtl") {
|
|
12732
|
-
const ue =
|
|
12757
|
+
const ue = z.left - N.left, fe = D.left - ue, Pe = k.left - fe, ct = k.width + Pe, Cr = Math.max(ct, N.width), Nr = window.innerWidth - Le, Sr = Is(fe, [
|
|
12733
12758
|
Le,
|
|
12734
12759
|
// Prevents the content from going off the starting edge of the
|
|
12735
12760
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -12740,33 +12765,33 @@ var A5 = "SelectItemAlignedPosition", $d = c.forwardRef((e, t) => {
|
|
|
12740
12765
|
]);
|
|
12741
12766
|
l.style.minWidth = ct + "px", l.style.left = Sr + "px";
|
|
12742
12767
|
} else {
|
|
12743
|
-
const ue = N.right -
|
|
12768
|
+
const ue = N.right - z.right, fe = window.innerWidth - D.right - ue, Pe = window.innerWidth - k.right - fe, ct = k.width + Pe, Cr = Math.max(ct, N.width), Nr = window.innerWidth - Le, Sr = Is(fe, [
|
|
12744
12769
|
Le,
|
|
12745
12770
|
Math.max(Le, Nr - Cr)
|
|
12746
12771
|
]);
|
|
12747
12772
|
l.style.minWidth = ct + "px", l.style.right = Sr + "px";
|
|
12748
12773
|
}
|
|
12749
|
-
const
|
|
12750
|
-
if (ee <=
|
|
12751
|
-
const ue =
|
|
12774
|
+
const $ = g(), T = window.innerHeight - Le * 2, B = h.scrollHeight, A = window.getComputedStyle(u), W = parseInt(A.borderTopWidth, 10), O = parseInt(A.paddingTop, 10), G = parseInt(A.borderBottomWidth, 10), _ = parseInt(A.paddingBottom, 10), I = W + O + B + _ + G, q = Math.min(b.offsetHeight * 5, I), ne = window.getComputedStyle(h), P = parseInt(ne.paddingTop, 10), U = parseInt(ne.paddingBottom, 10), X = k.top + k.height / 2 - Le, F = T - X, Q = b.offsetHeight / 2, L = b.offsetTop + Q, ee = W + O + L, se = I - ee;
|
|
12775
|
+
if (ee <= X) {
|
|
12776
|
+
const ue = $.length > 0 && b === $[$.length - 1].ref.current;
|
|
12752
12777
|
l.style.bottom = "0px";
|
|
12753
12778
|
const fe = u.clientHeight - h.offsetTop - h.offsetHeight, Pe = Math.max(
|
|
12754
12779
|
F,
|
|
12755
12780
|
Q + // viewport might have padding bottom, include it to avoid a scrollable viewport
|
|
12756
|
-
(ue ?
|
|
12781
|
+
(ue ? U : 0) + fe + G
|
|
12757
12782
|
), ct = ee + Pe;
|
|
12758
12783
|
l.style.height = ct + "px";
|
|
12759
12784
|
} else {
|
|
12760
|
-
const ue =
|
|
12785
|
+
const ue = $.length > 0 && b === $[0].ref.current;
|
|
12761
12786
|
l.style.top = "0px";
|
|
12762
12787
|
const Pe = Math.max(
|
|
12763
|
-
|
|
12764
|
-
|
|
12788
|
+
X,
|
|
12789
|
+
W + h.offsetTop + // viewport might have padding top, include it to avoid a scrollable viewport
|
|
12765
12790
|
(ue ? P : 0) + Q
|
|
12766
12791
|
) + se;
|
|
12767
|
-
l.style.height = Pe + "px", h.scrollTop = ee -
|
|
12792
|
+
l.style.height = Pe + "px", h.scrollTop = ee - X + h.offsetTop;
|
|
12768
12793
|
}
|
|
12769
|
-
l.style.margin = `${Le}px 0`, l.style.minHeight =
|
|
12794
|
+
l.style.margin = `${Le}px 0`, l.style.minHeight = q + "px", l.style.maxHeight = T + "px", r?.(), requestAnimationFrame(() => m.current = !0);
|
|
12770
12795
|
}
|
|
12771
12796
|
}, [
|
|
12772
12797
|
g,
|
|
@@ -12780,9 +12805,9 @@ var A5 = "SelectItemAlignedPosition", $d = c.forwardRef((e, t) => {
|
|
|
12780
12805
|
s.dir,
|
|
12781
12806
|
r
|
|
12782
12807
|
]);
|
|
12783
|
-
|
|
12808
|
+
Se(() => S(), [S]);
|
|
12784
12809
|
const [R, M] = c.useState();
|
|
12785
|
-
|
|
12810
|
+
Se(() => {
|
|
12786
12811
|
u && M(window.getComputedStyle(u).zIndex);
|
|
12787
12812
|
}, [u]);
|
|
12788
12813
|
const E = c.useCallback(
|
|
@@ -12809,7 +12834,7 @@ var A5 = "SelectItemAlignedPosition", $d = c.forwardRef((e, t) => {
|
|
|
12809
12834
|
zIndex: R
|
|
12810
12835
|
},
|
|
12811
12836
|
children: /* @__PURE__ */ o(
|
|
12812
|
-
|
|
12837
|
+
J.div,
|
|
12813
12838
|
{
|
|
12814
12839
|
...a,
|
|
12815
12840
|
ref: f,
|
|
@@ -12872,7 +12897,7 @@ var [L5, Ra] = Ft(bt, {}), uo = "SelectViewport", Bd = c.forwardRef(
|
|
|
12872
12897
|
}
|
|
12873
12898
|
),
|
|
12874
12899
|
/* @__PURE__ */ o(yr.Slot, { scope: n, children: /* @__PURE__ */ o(
|
|
12875
|
-
|
|
12900
|
+
J.div,
|
|
12876
12901
|
{
|
|
12877
12902
|
"data-radix-select-viewport": "",
|
|
12878
12903
|
role: "presentation",
|
|
@@ -12914,14 +12939,14 @@ Bd.displayName = uo;
|
|
|
12914
12939
|
var Hd = "SelectGroup", [O5, D5] = Ft(Hd), Fd = c.forwardRef(
|
|
12915
12940
|
(e, t) => {
|
|
12916
12941
|
const { __scopeSelect: n, ...r } = e, a = ge();
|
|
12917
|
-
return /* @__PURE__ */ o(O5, { scope: n, id: a, children: /* @__PURE__ */ o(
|
|
12942
|
+
return /* @__PURE__ */ o(O5, { scope: n, id: a, children: /* @__PURE__ */ o(J.div, { role: "group", "aria-labelledby": a, ...r, ref: t }) });
|
|
12918
12943
|
}
|
|
12919
12944
|
);
|
|
12920
12945
|
Fd.displayName = Hd;
|
|
12921
12946
|
var Vd = "SelectLabel", jd = c.forwardRef(
|
|
12922
12947
|
(e, t) => {
|
|
12923
12948
|
const { __scopeSelect: n, ...r } = e, a = D5(Vd, n);
|
|
12924
|
-
return /* @__PURE__ */ o(
|
|
12949
|
+
return /* @__PURE__ */ o(J.div, { id: a.id, ...r, ref: t });
|
|
12925
12950
|
}
|
|
12926
12951
|
);
|
|
12927
12952
|
jd.displayName = Vd;
|
|
@@ -12962,7 +12987,7 @@ var Gn = "SelectItem", [z5, Wd] = Ft(Gn), Gd = c.forwardRef(
|
|
|
12962
12987
|
disabled: a,
|
|
12963
12988
|
textValue: p,
|
|
12964
12989
|
children: /* @__PURE__ */ o(
|
|
12965
|
-
|
|
12990
|
+
J.div,
|
|
12966
12991
|
{
|
|
12967
12992
|
role: "option",
|
|
12968
12993
|
"aria-labelledby": h,
|
|
@@ -13014,8 +13039,8 @@ var Kt = "SelectItemText", Ud = c.forwardRef(
|
|
|
13014
13039
|
() => /* @__PURE__ */ o("option", { value: d.value, disabled: d.disabled, children: m }, d.value),
|
|
13015
13040
|
[d.disabled, d.value, m]
|
|
13016
13041
|
), { onNativeOptionAdd: h, onNativeOptionRemove: b } = u;
|
|
13017
|
-
return
|
|
13018
|
-
/* @__PURE__ */ o(
|
|
13042
|
+
return Se(() => (h(v), () => b(v)), [h, b, v]), /* @__PURE__ */ w(de, { children: [
|
|
13043
|
+
/* @__PURE__ */ o(J.span, { id: d.textId, ...s, ref: g }),
|
|
13019
13044
|
d.isSelected && i.valueNode && !i.valueNodeHasChildren ? Kn.createPortal(s.children, i.valueNode) : null
|
|
13020
13045
|
] });
|
|
13021
13046
|
}
|
|
@@ -13024,13 +13049,13 @@ Ud.displayName = Kt;
|
|
|
13024
13049
|
var Kd = "SelectItemIndicator", Xd = c.forwardRef(
|
|
13025
13050
|
(e, t) => {
|
|
13026
13051
|
const { __scopeSelect: n, ...r } = e;
|
|
13027
|
-
return Wd(Kd, n).isSelected ? /* @__PURE__ */ o(
|
|
13052
|
+
return Wd(Kd, n).isSelected ? /* @__PURE__ */ o(J.span, { "aria-hidden": !0, ...r, ref: t }) : null;
|
|
13028
13053
|
}
|
|
13029
13054
|
);
|
|
13030
13055
|
Xd.displayName = Kd;
|
|
13031
13056
|
var fo = "SelectScrollUpButton", Zd = c.forwardRef((e, t) => {
|
|
13032
13057
|
const n = lt(fo, e.__scopeSelect), r = Ra(fo, e.__scopeSelect), [a, s] = c.useState(!1), i = ae(t, r.onScrollButtonChange);
|
|
13033
|
-
return
|
|
13058
|
+
return Se(() => {
|
|
13034
13059
|
if (n.viewport && n.isPositioned) {
|
|
13035
13060
|
let l = function() {
|
|
13036
13061
|
const u = d.scrollTop > 0;
|
|
@@ -13054,7 +13079,7 @@ var fo = "SelectScrollUpButton", Zd = c.forwardRef((e, t) => {
|
|
|
13054
13079
|
Zd.displayName = fo;
|
|
13055
13080
|
var po = "SelectScrollDownButton", Yd = c.forwardRef((e, t) => {
|
|
13056
13081
|
const n = lt(po, e.__scopeSelect), r = Ra(po, e.__scopeSelect), [a, s] = c.useState(!1), i = ae(t, r.onScrollButtonChange);
|
|
13057
|
-
return
|
|
13082
|
+
return Se(() => {
|
|
13058
13083
|
if (n.viewport && n.isPositioned) {
|
|
13059
13084
|
let l = function() {
|
|
13060
13085
|
const u = d.scrollHeight - d.clientHeight, p = Math.ceil(d.scrollTop) < u;
|
|
@@ -13080,10 +13105,10 @@ var qd = c.forwardRef((e, t) => {
|
|
|
13080
13105
|
const { __scopeSelect: n, onAutoScroll: r, ...a } = e, s = lt("SelectScrollButton", n), i = c.useRef(null), l = xr(n), d = c.useCallback(() => {
|
|
13081
13106
|
i.current !== null && (window.clearInterval(i.current), i.current = null);
|
|
13082
13107
|
}, []);
|
|
13083
|
-
return c.useEffect(() => () => d(), [d]),
|
|
13108
|
+
return c.useEffect(() => () => d(), [d]), Se(() => {
|
|
13084
13109
|
l().find((p) => p.ref.current === document.activeElement)?.ref.current?.scrollIntoView({ block: "nearest" });
|
|
13085
13110
|
}, [l]), /* @__PURE__ */ o(
|
|
13086
|
-
|
|
13111
|
+
J.div,
|
|
13087
13112
|
{
|
|
13088
13113
|
"aria-hidden": !0,
|
|
13089
13114
|
...a,
|
|
@@ -13103,7 +13128,7 @@ var qd = c.forwardRef((e, t) => {
|
|
|
13103
13128
|
}), $5 = "SelectSeparator", Jd = c.forwardRef(
|
|
13104
13129
|
(e, t) => {
|
|
13105
13130
|
const { __scopeSelect: n, ...r } = e;
|
|
13106
|
-
return /* @__PURE__ */ o(
|
|
13131
|
+
return /* @__PURE__ */ o(J.div, { "aria-hidden": !0, ...r, ref: t });
|
|
13107
13132
|
}
|
|
13108
13133
|
);
|
|
13109
13134
|
Jd.displayName = $5;
|
|
@@ -13272,81 +13297,81 @@ function Tv({
|
|
|
13272
13297
|
tooltips: a = !0,
|
|
13273
13298
|
className: s
|
|
13274
13299
|
}) {
|
|
13275
|
-
const [i, l] =
|
|
13300
|
+
const [i, l] = K(null), [d, u] = K(null), [p, f] = K(!1), [g, m] = K(!1), v = ce(!1), h = Yn(), b = So(
|
|
13276
13301
|
h,
|
|
13277
13302
|
n,
|
|
13278
13303
|
"medium"
|
|
13279
|
-
), x = 0.6, C = ra[b] * 4, S = C * x, R = e.slice(0, t), M = e.slice(t), E = Math.max(0, e.length - t), k = ce(null), N = ce(null), [
|
|
13304
|
+
), x = 0.6, C = ra[b] * 4, S = C * x, R = e.slice(0, t), M = e.slice(t), E = Math.max(0, e.length - t), k = ce(null), N = ce(null), [D, z] = K(0);
|
|
13280
13305
|
oe(() => {
|
|
13281
13306
|
if (N.current) {
|
|
13282
|
-
const
|
|
13283
|
-
N.current?.offsetWidth &&
|
|
13307
|
+
const _ = () => {
|
|
13308
|
+
N.current?.offsetWidth && z(N.current.offsetWidth);
|
|
13284
13309
|
};
|
|
13285
|
-
|
|
13286
|
-
const
|
|
13287
|
-
return
|
|
13310
|
+
_();
|
|
13311
|
+
const I = new ResizeObserver(_);
|
|
13312
|
+
return I.observe(N.current), () => I.disconnect();
|
|
13288
13313
|
}
|
|
13289
13314
|
}, [i, R]), oe(() => {
|
|
13290
13315
|
i !== null ? (f(!0), u(i)) : f(!1);
|
|
13291
13316
|
}, [i]);
|
|
13292
|
-
const
|
|
13317
|
+
const $ = (_, I) => _ * S + C / 2 - I / 2, T = () => {
|
|
13293
13318
|
l(null), m(!1), v.current = !1;
|
|
13294
|
-
},
|
|
13319
|
+
}, B = () => {
|
|
13295
13320
|
v.current = !0;
|
|
13296
|
-
},
|
|
13297
|
-
l(
|
|
13298
|
-
},
|
|
13321
|
+
}, A = (_) => {
|
|
13322
|
+
l(_), _ < t ? m(!1) : m(!0);
|
|
13323
|
+
}, W = () => {
|
|
13299
13324
|
r === "interactive" && setTimeout(() => {
|
|
13300
13325
|
v.current && m(!0);
|
|
13301
13326
|
}, 400);
|
|
13302
|
-
},
|
|
13303
|
-
if (d === null ||
|
|
13304
|
-
const
|
|
13327
|
+
}, O = g ? e.length * S + C - S : R.length * S + C - S + (E > 0 ? S : 0), G = (_) => {
|
|
13328
|
+
if (d === null || _ === null) return {};
|
|
13329
|
+
const I = _ > d ? 1 : -1;
|
|
13305
13330
|
return {
|
|
13306
|
-
initial: { opacity: 0, x: -15 *
|
|
13331
|
+
initial: { opacity: 0, x: -15 * I },
|
|
13307
13332
|
animate: { opacity: 1, x: 0 },
|
|
13308
|
-
exit: { opacity: 0, x: 20 *
|
|
13333
|
+
exit: { opacity: 0, x: 20 * I },
|
|
13309
13334
|
transition: { duration: 0.2 }
|
|
13310
13335
|
};
|
|
13311
13336
|
};
|
|
13312
13337
|
return /* @__PURE__ */ w(
|
|
13313
|
-
|
|
13338
|
+
Z.div,
|
|
13314
13339
|
{
|
|
13315
13340
|
ref: k,
|
|
13316
13341
|
className: y("relative", s),
|
|
13317
13342
|
style: { height: C },
|
|
13318
|
-
animate: { width:
|
|
13343
|
+
animate: { width: O },
|
|
13319
13344
|
transition: { duration: 0.3, ease: "easeInOut" },
|
|
13320
|
-
onMouseEnter:
|
|
13321
|
-
onMouseLeave:
|
|
13345
|
+
onMouseEnter: B,
|
|
13346
|
+
onMouseLeave: T,
|
|
13322
13347
|
children: [
|
|
13323
|
-
R.map((
|
|
13348
|
+
R.map((_, I) => /* @__PURE__ */ o(
|
|
13324
13349
|
Ts,
|
|
13325
13350
|
{
|
|
13326
|
-
avatar:
|
|
13351
|
+
avatar: _,
|
|
13327
13352
|
avatarSize: n,
|
|
13328
|
-
index:
|
|
13353
|
+
index: I,
|
|
13329
13354
|
size: C,
|
|
13330
13355
|
offsetX: S,
|
|
13331
13356
|
hoveredIndex: r === "interactive" ? i : null,
|
|
13332
|
-
handleMouseEnter:
|
|
13357
|
+
handleMouseEnter: A,
|
|
13333
13358
|
totalFaces: R.length,
|
|
13334
13359
|
isExpanded: g,
|
|
13335
13360
|
maxFaces: t,
|
|
13336
13361
|
interactive: r !== "static"
|
|
13337
13362
|
},
|
|
13338
|
-
|
|
13363
|
+
_.name
|
|
13339
13364
|
)),
|
|
13340
|
-
r === "interactive" && /* @__PURE__ */ o(Ce, { children: g && M.map((
|
|
13365
|
+
r === "interactive" && /* @__PURE__ */ o(Ce, { children: g && M.map((_, I) => /* @__PURE__ */ o(
|
|
13341
13366
|
Ts,
|
|
13342
13367
|
{
|
|
13343
|
-
avatar:
|
|
13368
|
+
avatar: _,
|
|
13344
13369
|
avatarSize: n,
|
|
13345
|
-
index:
|
|
13370
|
+
index: I + t,
|
|
13346
13371
|
size: C,
|
|
13347
13372
|
offsetX: S,
|
|
13348
13373
|
hoveredIndex: i,
|
|
13349
|
-
handleMouseEnter:
|
|
13374
|
+
handleMouseEnter: A,
|
|
13350
13375
|
totalFaces: e.length,
|
|
13351
13376
|
isExpanded: g,
|
|
13352
13377
|
maxFaces: t,
|
|
@@ -13356,17 +13381,17 @@ function Tv({
|
|
|
13356
13381
|
exit: { opacity: 0, scale: 0.5, x: -C / 2 },
|
|
13357
13382
|
transition: { duration: 0.3, ease: "easeInOut" }
|
|
13358
13383
|
},
|
|
13359
|
-
|
|
13384
|
+
_.name
|
|
13360
13385
|
)) }),
|
|
13361
13386
|
/* @__PURE__ */ o(Ce, { children: a && p && i !== null && /* @__PURE__ */ o(
|
|
13362
|
-
|
|
13387
|
+
Z.div,
|
|
13363
13388
|
{
|
|
13364
13389
|
ref: N,
|
|
13365
13390
|
layout: !0,
|
|
13366
13391
|
initial: { opacity: 0 },
|
|
13367
13392
|
animate: {
|
|
13368
13393
|
opacity: 1,
|
|
13369
|
-
x:
|
|
13394
|
+
x: $(i ?? 0, D)
|
|
13370
13395
|
},
|
|
13371
13396
|
exit: { opacity: 0 },
|
|
13372
13397
|
transition: { duration: 0.15, ease: "easeOut" },
|
|
@@ -13375,9 +13400,9 @@ function Tv({
|
|
|
13375
13400
|
top: C + 4
|
|
13376
13401
|
},
|
|
13377
13402
|
children: /* @__PURE__ */ o(Ce, { mode: "wait", children: /* @__PURE__ */ o(
|
|
13378
|
-
|
|
13403
|
+
Z.span,
|
|
13379
13404
|
{
|
|
13380
|
-
...
|
|
13405
|
+
...G(i),
|
|
13381
13406
|
children: e[i].name
|
|
13382
13407
|
},
|
|
13383
13408
|
e[i].name
|
|
@@ -13385,13 +13410,13 @@ function Tv({
|
|
|
13385
13410
|
}
|
|
13386
13411
|
) }),
|
|
13387
13412
|
E > 0 && !g && /* @__PURE__ */ o(
|
|
13388
|
-
|
|
13413
|
+
Z.div,
|
|
13389
13414
|
{
|
|
13390
13415
|
className: "absolute z-0",
|
|
13391
13416
|
style: {
|
|
13392
13417
|
left: R.length * S
|
|
13393
13418
|
},
|
|
13394
|
-
onMouseEnter:
|
|
13419
|
+
onMouseEnter: W,
|
|
13395
13420
|
whileHover: { scale: r === "interactive" ? 1.1 : 1 },
|
|
13396
13421
|
children: /* @__PURE__ */ w(
|
|
13397
13422
|
"div",
|
|
@@ -13427,7 +13452,7 @@ function Ts({
|
|
|
13427
13452
|
...f
|
|
13428
13453
|
}) {
|
|
13429
13454
|
return /* @__PURE__ */ o(
|
|
13430
|
-
|
|
13455
|
+
Z.div,
|
|
13431
13456
|
{
|
|
13432
13457
|
className: "absolute",
|
|
13433
13458
|
style: {
|
|
@@ -13481,7 +13506,7 @@ var Ma = "Switch", [Q5, Av] = Ve(Ma), [e4, t4] = Q5(Ma), hu = c.forwardRef(
|
|
|
13481
13506
|
});
|
|
13482
13507
|
return /* @__PURE__ */ w(e4, { scope: n, checked: x, disabled: l, children: [
|
|
13483
13508
|
/* @__PURE__ */ o(
|
|
13484
|
-
|
|
13509
|
+
J.button,
|
|
13485
13510
|
{
|
|
13486
13511
|
type: "button",
|
|
13487
13512
|
role: "switch",
|
|
@@ -13520,7 +13545,7 @@ var gu = "SwitchThumb", vu = c.forwardRef(
|
|
|
13520
13545
|
(e, t) => {
|
|
13521
13546
|
const { __scopeSwitch: n, ...r } = e, a = t4(gu, n);
|
|
13522
13547
|
return /* @__PURE__ */ o(
|
|
13523
|
-
|
|
13548
|
+
J.span,
|
|
13524
13549
|
{
|
|
13525
13550
|
"data-state": bu(a.checked),
|
|
13526
13551
|
"data-disabled": a.disabled ? "" : void 0,
|
|
@@ -13620,13 +13645,13 @@ const wu = ({
|
|
|
13620
13645
|
highlighted: n,
|
|
13621
13646
|
...r
|
|
13622
13647
|
}) => /* @__PURE__ */ w(
|
|
13623
|
-
|
|
13648
|
+
Z.button,
|
|
13624
13649
|
{
|
|
13625
13650
|
className: "text-codeline-xs hover:text-highlight relative flex items-center rounded-full px-5 py-1 uppercase",
|
|
13626
13651
|
...r,
|
|
13627
13652
|
children: [
|
|
13628
13653
|
n && /* @__PURE__ */ o(
|
|
13629
|
-
|
|
13654
|
+
Z.span,
|
|
13630
13655
|
{
|
|
13631
13656
|
layoutId: "segmented-highlight",
|
|
13632
13657
|
className: y(
|
|
@@ -13731,7 +13756,7 @@ function Lv({
|
|
|
13731
13756
|
className: "hover:text-foreground ml-auto cursor-pointer",
|
|
13732
13757
|
onClick: s,
|
|
13733
13758
|
title: "Close",
|
|
13734
|
-
children: /* @__PURE__ */ o(
|
|
13759
|
+
children: /* @__PURE__ */ o(Y, { name: "x", className: "h-3.5 w-3.5" })
|
|
13735
13760
|
}
|
|
13736
13761
|
)
|
|
13737
13762
|
] }),
|
|
@@ -13755,7 +13780,7 @@ function c4() {
|
|
|
13755
13780
|
}), [r]);
|
|
13756
13781
|
}
|
|
13757
13782
|
const d4 = () => {
|
|
13758
|
-
const [e, t] =
|
|
13783
|
+
const [e, t] = K(!1);
|
|
13759
13784
|
return oe(() => (t(!0), () => t(!1)), []), e;
|
|
13760
13785
|
}, Mn = [
|
|
13761
13786
|
{ key: "light", icon: /* @__PURE__ */ o(Sf, {}) },
|
|
@@ -13831,7 +13856,7 @@ function u4({
|
|
|
13831
13856
|
}
|
|
13832
13857
|
),
|
|
13833
13858
|
/* @__PURE__ */ o(
|
|
13834
|
-
|
|
13859
|
+
Z.div,
|
|
13835
13860
|
{
|
|
13836
13861
|
initial: {
|
|
13837
13862
|
transform: d ? `translateY(${l}%)` : `translateX(${l}%)`
|
|
@@ -13883,7 +13908,7 @@ const Nu = ({ children: e, className: t }) => {
|
|
|
13883
13908
|
children: [
|
|
13884
13909
|
!n && a,
|
|
13885
13910
|
/* @__PURE__ */ w(
|
|
13886
|
-
|
|
13911
|
+
Z.div,
|
|
13887
13912
|
{
|
|
13888
13913
|
layout: !0,
|
|
13889
13914
|
className: "flex w-full flex-col",
|
|
@@ -13925,7 +13950,7 @@ const Eu = ({
|
|
|
13925
13950
|
}) => {
|
|
13926
13951
|
const { collapsed: r } = Vt(), [a, s] = H1(he.toArray(e), (i) => me(i) ? i.type.displayName === "AppLayout.Nav" : !1);
|
|
13927
13952
|
return /* @__PURE__ */ w(
|
|
13928
|
-
|
|
13953
|
+
Z.div,
|
|
13929
13954
|
{
|
|
13930
13955
|
initial: !1,
|
|
13931
13956
|
layout: "position",
|
|
@@ -13951,7 +13976,7 @@ const Eu = ({
|
|
|
13951
13976
|
Eu.displayName = "AppLayout.Sidebar";
|
|
13952
13977
|
const ku = ({ className: e }) => {
|
|
13953
13978
|
const { collapsed: t } = Vt();
|
|
13954
|
-
return /* @__PURE__ */ o(
|
|
13979
|
+
return /* @__PURE__ */ o(Z.div, { "data-theme-switcher": !0, className: y("mt-auto mb-6", e), children: /* @__PURE__ */ o(u4, { orientation: t ? "vertical" : "horizontal" }) });
|
|
13955
13980
|
};
|
|
13956
13981
|
ku.displayName = "AppLayout.ThemeSwitcher";
|
|
13957
13982
|
const Ru = ({
|
|
@@ -13989,7 +14014,7 @@ const f4 = () => /* @__PURE__ */ o("span", { className: "text-muted-foreground t
|
|
|
13989
14014
|
disabled: a = !1,
|
|
13990
14015
|
...s
|
|
13991
14016
|
}, i) => /* @__PURE__ */ o(
|
|
13992
|
-
e ?
|
|
14017
|
+
e ? Ne : "a",
|
|
13993
14018
|
{
|
|
13994
14019
|
ref: i,
|
|
13995
14020
|
className: y(
|
|
@@ -14021,7 +14046,7 @@ const Iu = ({
|
|
|
14021
14046
|
},
|
|
14022
14047
|
"aria-label": "Toggle sidebar",
|
|
14023
14048
|
children: /* @__PURE__ */ o(
|
|
14024
|
-
|
|
14049
|
+
Y,
|
|
14025
14050
|
{
|
|
14026
14051
|
name: "panel-left",
|
|
14027
14052
|
className: "text-muted group-hover:!text-primary size-4"
|
|
@@ -14079,8 +14104,8 @@ const Lu = re.forwardRef(
|
|
|
14079
14104
|
const { collapsed: p } = Vt();
|
|
14080
14105
|
if (r)
|
|
14081
14106
|
return r({ title: t, icon: n, active: s });
|
|
14082
|
-
const f = e ?
|
|
14083
|
-
|
|
14107
|
+
const f = e ? Ne : "a", g = /* @__PURE__ */ o(Y, { name: n, className: "size-5", strokeWidth: 1.3 }), m = p ? null : /* @__PURE__ */ o(
|
|
14108
|
+
Z.span,
|
|
14084
14109
|
{
|
|
14085
14110
|
initial: { opacity: 0 },
|
|
14086
14111
|
animate: { opacity: 1 },
|
|
@@ -14162,7 +14187,7 @@ const p4 = {
|
|
|
14162
14187
|
defaultCollapsed: t = !1,
|
|
14163
14188
|
keybinds: n
|
|
14164
14189
|
}) => {
|
|
14165
|
-
const r = n ?? p4, [a, s] =
|
|
14190
|
+
const r = n ?? p4, [a, s] = K(t);
|
|
14166
14191
|
return oe(() => {
|
|
14167
14192
|
s(t);
|
|
14168
14193
|
}, [t]), /* @__PURE__ */ o(
|
|
@@ -14209,7 +14234,7 @@ const zu = ({
|
|
|
14209
14234
|
}) => {
|
|
14210
14235
|
const { setNodeRef: l, attributes: d, listeners: u, transform: p } = Ws({
|
|
14211
14236
|
id: t
|
|
14212
|
-
}), [f, g] =
|
|
14237
|
+
}), [f, g] = K(n);
|
|
14213
14238
|
Gs({
|
|
14214
14239
|
onDragEnd: (v) => {
|
|
14215
14240
|
g((h) => ({
|
|
@@ -14266,7 +14291,7 @@ const $u = ({
|
|
|
14266
14291
|
n && "text-body-muted/70 cursor-not-allowed",
|
|
14267
14292
|
r
|
|
14268
14293
|
),
|
|
14269
|
-
children: /* @__PURE__ */ o(
|
|
14294
|
+
children: /* @__PURE__ */ o(Y, { name: a, size: "small" })
|
|
14270
14295
|
}
|
|
14271
14296
|
),
|
|
14272
14297
|
/* @__PURE__ */ o(hn, { className: "border-zinc-100 px-2 py-1 text-xs shadow-none select-none dark:border-zinc-900", children: e })
|
|
@@ -14283,7 +14308,7 @@ const g4 = ({
|
|
|
14283
14308
|
...e,
|
|
14284
14309
|
...t,
|
|
14285
14310
|
className: "text-body-muted hover:text-foreground active:text-foreground h-full cursor-move",
|
|
14286
|
-
children: /* @__PURE__ */ o(
|
|
14311
|
+
children: /* @__PURE__ */ o(Y, { name: "grip-vertical", className: "h-4 w-4" })
|
|
14287
14312
|
}
|
|
14288
14313
|
), Dv = Object.assign(Du, {
|
|
14289
14314
|
Item: $u,
|
|
@@ -14298,7 +14323,7 @@ function zv({
|
|
|
14298
14323
|
animationTrigger: s = "inView",
|
|
14299
14324
|
animationDuration: i = 1
|
|
14300
14325
|
}) {
|
|
14301
|
-
const l = ye(() => e.split(""), [e]), [d, u] =
|
|
14326
|
+
const l = ye(() => e.split(""), [e]), [d, u] = K(0), p = ce(null), f = Pf(p, { once: s === "inView" });
|
|
14302
14327
|
oe(() => {
|
|
14303
14328
|
if (!r) {
|
|
14304
14329
|
u(l.length);
|
|
@@ -14310,7 +14335,7 @@ function zv({
|
|
|
14310
14335
|
}, [r, f, s, l]);
|
|
14311
14336
|
const g = ye(
|
|
14312
14337
|
() => l.slice(0, d).map((m, v) => /* @__PURE__ */ o(
|
|
14313
|
-
|
|
14338
|
+
Z.span,
|
|
14314
14339
|
{
|
|
14315
14340
|
className: y(
|
|
14316
14341
|
"py-0.5 leading-7 first:pl-0.5",
|
|
@@ -14449,7 +14474,7 @@ Hu.displayName = "ResizablePanel.Pane";
|
|
|
14449
14474
|
const b4 = ({
|
|
14450
14475
|
direction: e
|
|
14451
14476
|
}) => {
|
|
14452
|
-
const [t, n] =
|
|
14477
|
+
const [t, n] = K(!1);
|
|
14453
14478
|
return /* @__PURE__ */ o(
|
|
14454
14479
|
bo,
|
|
14455
14480
|
{
|
|
@@ -14470,7 +14495,7 @@ const b4 = ({
|
|
|
14470
14495
|
e === "vertical" ? "cursor-ns-resize" : "cursor-ew-resize",
|
|
14471
14496
|
t && "text-foreground"
|
|
14472
14497
|
),
|
|
14473
|
-
children: /* @__PURE__ */ o(
|
|
14498
|
+
children: /* @__PURE__ */ o(Y, { name: "grip-vertical", className: "h-8 w-5" })
|
|
14474
14499
|
}
|
|
14475
14500
|
)
|
|
14476
14501
|
}
|
|
@@ -14493,17 +14518,17 @@ const b4 = ({
|
|
|
14493
14518
|
showLanguageSelector: d = !0,
|
|
14494
14519
|
wordWrap: u = !0
|
|
14495
14520
|
}) => {
|
|
14496
|
-
const p = ce(null), f = he.toArray(e).filter((
|
|
14497
|
-
if (!me(
|
|
14498
|
-
const
|
|
14499
|
-
return
|
|
14500
|
-
`Invalid child type: ${
|
|
14501
|
-
),
|
|
14521
|
+
const p = ce(null), f = he.toArray(e).filter(($) => {
|
|
14522
|
+
if (!me($)) return !1;
|
|
14523
|
+
const T = $.type, B = T.displayName === "CodePlayground.Header" || T.displayName === "CodePlayground.Footer" || T.displayName === "CodePlayground.Code";
|
|
14524
|
+
return B || console.warn(
|
|
14525
|
+
`Invalid child type: ${T.displayName}. Must be one of: CodePlayground.Header, CodePlayground.Footer`
|
|
14526
|
+
), B;
|
|
14502
14527
|
}), g = f.find(
|
|
14503
|
-
(
|
|
14504
|
-
), [m, v] =
|
|
14505
|
-
const
|
|
14506
|
-
return /* @__PURE__ */ o(gp, { className: "w-full", children: Array.from({ length:
|
|
14528
|
+
($) => me($) && $.type.displayName === "CodePlayground.Header"
|
|
14529
|
+
), [m, v] = K(null), h = t[r], { theme: b } = qn(), x = ye(() => {
|
|
14530
|
+
const $ = p.current?.getBoundingClientRect().height ?? 400, T = Math.ceil($ / 40);
|
|
14531
|
+
return /* @__PURE__ */ o(gp, { className: "w-full", children: Array.from({ length: T }).map((B, A) => /* @__PURE__ */ o("div", { id: `skeleton-line-${A}`, className: "h-4 w-full" }, A)) });
|
|
14507
14532
|
}, [p.current]), C = i || (h.loading ? /* @__PURE__ */ o("div", { className: "flex items-center p-4", children: x }) : m ? /* @__PURE__ */ o(
|
|
14508
14533
|
aa,
|
|
14509
14534
|
{
|
|
@@ -14514,21 +14539,21 @@ const b4 = ({
|
|
|
14514
14539
|
}
|
|
14515
14540
|
) : null), S = ye(
|
|
14516
14541
|
() => f.find(
|
|
14517
|
-
(
|
|
14542
|
+
($) => me($) && $.type.displayName === "CodePlayground.Code"
|
|
14518
14543
|
),
|
|
14519
14544
|
[f]
|
|
14520
14545
|
), R = S ? re.cloneElement(S, {
|
|
14521
14546
|
__children__: C,
|
|
14522
14547
|
ref: p
|
|
14523
14548
|
}) : /* @__PURE__ */ o(Ia, { __children__: C, ref: p }), M = f.find(
|
|
14524
|
-
(
|
|
14549
|
+
($) => me($) && $.type.displayName === "CodePlayground.Footer"
|
|
14525
14550
|
), E = pe(
|
|
14526
|
-
async (
|
|
14527
|
-
const
|
|
14528
|
-
v(
|
|
14551
|
+
async ($, T) => {
|
|
14552
|
+
const A = await Fl($, T, b === "dark" ? Hl : oa);
|
|
14553
|
+
v(A);
|
|
14529
14554
|
},
|
|
14530
14555
|
[b]
|
|
14531
|
-
), [k, N] =
|
|
14556
|
+
), [k, N] = K(!1), D = pe(() => {
|
|
14532
14557
|
N(!0), navigator.clipboard.writeText(h.code ?? ""), setTimeout(() => {
|
|
14533
14558
|
N(!1);
|
|
14534
14559
|
}, 1e3);
|
|
@@ -14536,9 +14561,9 @@ const b4 = ({
|
|
|
14536
14561
|
oe(() => {
|
|
14537
14562
|
h.code && E(h.code, r);
|
|
14538
14563
|
}, [h, r, E]);
|
|
14539
|
-
const
|
|
14540
|
-
(
|
|
14541
|
-
s?.(
|
|
14564
|
+
const z = pe(
|
|
14565
|
+
($) => {
|
|
14566
|
+
s?.($);
|
|
14542
14567
|
},
|
|
14543
14568
|
[s]
|
|
14544
14569
|
);
|
|
@@ -14556,10 +14581,10 @@ const b4 = ({
|
|
|
14556
14581
|
Z5,
|
|
14557
14582
|
{
|
|
14558
14583
|
value: r,
|
|
14559
|
-
onValueChange:
|
|
14584
|
+
onValueChange: z,
|
|
14560
14585
|
children: [
|
|
14561
14586
|
/* @__PURE__ */ o(du, { className: "text-body gap-1.5 !border-none !bg-transparent !p-0 !shadow-none !ring-0 select-none", children: /* @__PURE__ */ o(Y5, {}) }),
|
|
14562
|
-
/* @__PURE__ */ o(pu, { side: "bottom", align: "start", alignOffset: -30, children: Object.keys(t).map((
|
|
14587
|
+
/* @__PURE__ */ o(pu, { side: "bottom", align: "start", alignOffset: -30, children: Object.keys(t).map(($) => /* @__PURE__ */ o(mu, { value: $, children: Ff($) }, $)) })
|
|
14563
14588
|
]
|
|
14564
14589
|
}
|
|
14565
14590
|
) })
|
|
@@ -14571,27 +14596,27 @@ const b4 = ({
|
|
|
14571
14596
|
{
|
|
14572
14597
|
role: "button",
|
|
14573
14598
|
className: y("ml-2 border-none bg-transparent outline-none"),
|
|
14574
|
-
onClick:
|
|
14599
|
+
onClick: D,
|
|
14575
14600
|
children: /* @__PURE__ */ o(Ce, { mode: "wait", initial: !1, children: k ? /* @__PURE__ */ o(
|
|
14576
|
-
|
|
14601
|
+
Z.span,
|
|
14577
14602
|
{
|
|
14578
14603
|
variants: Ds,
|
|
14579
14604
|
initial: "hidden",
|
|
14580
14605
|
animate: "visible",
|
|
14581
14606
|
className: "text-green-500",
|
|
14582
14607
|
exit: "hidden",
|
|
14583
|
-
children: /* @__PURE__ */ o(
|
|
14608
|
+
children: /* @__PURE__ */ o(Y, { name: "check", stroke: "currentColor" })
|
|
14584
14609
|
},
|
|
14585
14610
|
"checkmark"
|
|
14586
14611
|
) : /* @__PURE__ */ o(
|
|
14587
|
-
|
|
14612
|
+
Z.span,
|
|
14588
14613
|
{
|
|
14589
14614
|
variants: Ds,
|
|
14590
14615
|
initial: "hidden",
|
|
14591
14616
|
animate: "visible",
|
|
14592
14617
|
className: "text-body-muted hover:text-foreground",
|
|
14593
14618
|
exit: "hidden",
|
|
14594
|
-
children: /* @__PURE__ */ o(
|
|
14619
|
+
children: /* @__PURE__ */ o(Y, { name: "copy", stroke: "currentColor" })
|
|
14595
14620
|
},
|
|
14596
14621
|
"copy"
|
|
14597
14622
|
) })
|
|
@@ -14753,7 +14778,7 @@ const Ku = ({
|
|
|
14753
14778
|
customStyles: m,
|
|
14754
14779
|
...v
|
|
14755
14780
|
}) => {
|
|
14756
|
-
const [h, b] =
|
|
14781
|
+
const [h, b] = K(!1), x = (S) => {
|
|
14757
14782
|
S.stopPropagation(), p?.(e), b(!1);
|
|
14758
14783
|
}, C = ye(
|
|
14759
14784
|
() => /* @__PURE__ */ o(
|
|
@@ -14767,7 +14792,7 @@ const Ku = ({
|
|
|
14767
14792
|
onMouseEnter: () => b(!0),
|
|
14768
14793
|
onMouseLeave: () => b(!1),
|
|
14769
14794
|
onClick: x,
|
|
14770
|
-
children: /* @__PURE__ */ o(
|
|
14795
|
+
children: /* @__PURE__ */ o(Y, { name: "x", className: "h-3.5 w-3.5" })
|
|
14771
14796
|
}
|
|
14772
14797
|
),
|
|
14773
14798
|
[h, p, e, r]
|
|
@@ -14806,10 +14831,10 @@ const Ku = ({
|
|
|
14806
14831
|
{
|
|
14807
14832
|
onMouseEnter: () => b(!0),
|
|
14808
14833
|
className: "text-body-muted ml-auto flex h-full w-3 items-center justify-center text-xs",
|
|
14809
|
-
children: h ? a ? C : /* @__PURE__ */ o(
|
|
14834
|
+
children: h ? a ? C : /* @__PURE__ */ o(Y, { name: "circle", className: "fill-foreground h-2.5 w-2.5" }) : /* @__PURE__ */ o(Y, { name: "circle", className: "fill-foreground h-2.5 w-2.5" })
|
|
14810
14835
|
}
|
|
14811
14836
|
),
|
|
14812
|
-
d && /* @__PURE__ */ o("div", { className: "text-muted-foreground ml-auto flex h-full w-3 items-center justify-center", children: /* @__PURE__ */ o(
|
|
14837
|
+
d && /* @__PURE__ */ o("div", { className: "text-muted-foreground ml-auto flex h-full w-3 items-center justify-center", children: /* @__PURE__ */ o(Y, { name: "loader-circle", className: "size-5 animate-spin" }) }),
|
|
14813
14838
|
d && /* @__PURE__ */ o("div", { className: "pointer-events-none absolute bottom-0 left-0 h-0.5 w-full overflow-hidden", children: /* @__PURE__ */ o(
|
|
14814
14839
|
"div",
|
|
14815
14840
|
{
|
|
@@ -14859,7 +14884,7 @@ const jv = Object.assign(Wu, {
|
|
|
14859
14884
|
function Wv({
|
|
14860
14885
|
children: e
|
|
14861
14886
|
}) {
|
|
14862
|
-
const [t, n] =
|
|
14887
|
+
const [t, n] = K([]), [r, a] = K(0), [s, i] = K(!1), [l, d] = K("forward"), u = (v) => {
|
|
14863
14888
|
s || (n([v]), a(0), i(!0), d("forward"));
|
|
14864
14889
|
}, p = () => {
|
|
14865
14890
|
i(!1), setTimeout(() => {
|
|
@@ -14909,7 +14934,7 @@ function Ju() {
|
|
|
14909
14934
|
throw new Error("useModal must be used within a ModalProvider");
|
|
14910
14935
|
return e;
|
|
14911
14936
|
}
|
|
14912
|
-
const w4 =
|
|
14937
|
+
const w4 = Z.create(Ye), Fr = 0.15;
|
|
14913
14938
|
function Gv({ renderTitle: e }) {
|
|
14914
14939
|
const {
|
|
14915
14940
|
screens: t,
|
|
@@ -14947,7 +14972,7 @@ function Gv({ renderTitle: e }) {
|
|
|
14947
14972
|
Uf(d, "No current screen");
|
|
14948
14973
|
const u = i === "forward";
|
|
14949
14974
|
return /* @__PURE__ */ o(Ce, { children: r && /* @__PURE__ */ w(
|
|
14950
|
-
|
|
14975
|
+
Z.div,
|
|
14951
14976
|
{
|
|
14952
14977
|
className: "fixed inset-0 z-50 flex flex-col bg-transparent",
|
|
14953
14978
|
initial: { opacity: 0 },
|
|
@@ -14963,7 +14988,7 @@ function Gv({ renderTitle: e }) {
|
|
|
14963
14988
|
onClick: s,
|
|
14964
14989
|
className: "hover:bg-muted mr-2 rounded-full border p-2 disabled:opacity-50 disabled:hover:bg-transparent",
|
|
14965
14990
|
"aria-label": "Go back",
|
|
14966
|
-
children: /* @__PURE__ */ o(
|
|
14991
|
+
children: /* @__PURE__ */ o(Y, { name: "chevron-left", className: "size-4" })
|
|
14967
14992
|
}
|
|
14968
14993
|
),
|
|
14969
14994
|
/* @__PURE__ */ o("div", { className: "relative h-7 w-fit min-w-xs overflow-x-hidden", children: /* @__PURE__ */ o(Ce, { initial: !1, mode: "sync", custom: u, children: /* @__PURE__ */ o(
|
|
@@ -14988,12 +15013,12 @@ function Gv({ renderTitle: e }) {
|
|
|
14988
15013
|
onClick: a,
|
|
14989
15014
|
className: "hover:bg-muted rounded-full border p-2",
|
|
14990
15015
|
"aria-label": "Close modal",
|
|
14991
|
-
children: /* @__PURE__ */ o(
|
|
15016
|
+
children: /* @__PURE__ */ o(Y, { name: "x", className: "size-4" })
|
|
14992
15017
|
}
|
|
14993
15018
|
)
|
|
14994
15019
|
] }),
|
|
14995
15020
|
/* @__PURE__ */ o("div", { className: "relative flex-1 overflow-hidden", children: /* @__PURE__ */ o(Ce, { initial: !1, mode: "wait", custom: u, children: /* @__PURE__ */ o(
|
|
14996
|
-
|
|
15021
|
+
Z.div,
|
|
14997
15022
|
{
|
|
14998
15023
|
className: "absolute inset-0 overflow-auto",
|
|
14999
15024
|
custom: u,
|
|
@@ -15030,10 +15055,13 @@ en.displayName = "IconButton";
|
|
|
15030
15055
|
const Uv = ({
|
|
15031
15056
|
closable: e = !1,
|
|
15032
15057
|
className: t,
|
|
15033
|
-
layout: n = "default"
|
|
15058
|
+
layout: n = "default",
|
|
15059
|
+
onClose: r
|
|
15034
15060
|
}) => {
|
|
15035
|
-
const { screens:
|
|
15036
|
-
|
|
15061
|
+
const { screens: a, currentIndex: s, isOpen: i, close: l } = Ju(), d = a[s], u = (p) => {
|
|
15062
|
+
e && !p && (l(), r?.(d));
|
|
15063
|
+
};
|
|
15064
|
+
return !i || !d ? null : /* @__PURE__ */ o(Po, { open: i, onOpenChange: u, children: /* @__PURE__ */ w(To, { children: [
|
|
15037
15065
|
/* @__PURE__ */ o(Ao, { className: "bg-surface-secondary fixed top-0 z-10 h-screen w-screen opacity-85" }),
|
|
15038
15066
|
n === "default" ? /* @__PURE__ */ w(
|
|
15039
15067
|
Zt,
|
|
@@ -15048,7 +15076,7 @@ const Uv = ({
|
|
|
15048
15076
|
{
|
|
15049
15077
|
variant: "tertiary",
|
|
15050
15078
|
icon: /* @__PURE__ */ o(
|
|
15051
|
-
|
|
15079
|
+
Y,
|
|
15052
15080
|
{
|
|
15053
15081
|
name: "x",
|
|
15054
15082
|
className: "text-neutral-default hover:text-neutral-default/80 size-7 focus:outline-none"
|
|
@@ -15058,8 +15086,8 @@ const Uv = ({
|
|
|
15058
15086
|
className: "absolute top-4 right-4 focus:ring-0 focus:outline-none focus-visible:ring-0"
|
|
15059
15087
|
}
|
|
15060
15088
|
) }),
|
|
15061
|
-
|
|
15062
|
-
/* @__PURE__ */ o(Oo, { children:
|
|
15089
|
+
d.title && /* @__PURE__ */ o(Lo, { className: "text-display-sm", children: d.title }),
|
|
15090
|
+
/* @__PURE__ */ o(Oo, { children: d.component })
|
|
15063
15091
|
]
|
|
15064
15092
|
}
|
|
15065
15093
|
) : /* @__PURE__ */ w(
|
|
@@ -15075,7 +15103,7 @@ const Uv = ({
|
|
|
15075
15103
|
{
|
|
15076
15104
|
variant: "tertiary",
|
|
15077
15105
|
icon: /* @__PURE__ */ o(
|
|
15078
|
-
|
|
15106
|
+
Y,
|
|
15079
15107
|
{
|
|
15080
15108
|
name: "x",
|
|
15081
15109
|
className: "text-neutral-default hover:text-neutral-default/80 size-7 focus:outline-none"
|
|
@@ -15085,7 +15113,7 @@ const Uv = ({
|
|
|
15085
15113
|
className: "absolute top-4 right-4 focus:ring-0 focus:outline-none focus-visible:ring-0"
|
|
15086
15114
|
}
|
|
15087
15115
|
) }),
|
|
15088
|
-
|
|
15116
|
+
d.component
|
|
15089
15117
|
]
|
|
15090
15118
|
}
|
|
15091
15119
|
)
|
|
@@ -15206,7 +15234,7 @@ function N4({
|
|
|
15206
15234
|
}) {
|
|
15207
15235
|
const r = he.toArray(e), s = r.filter(
|
|
15208
15236
|
(f) => me(f) && f.type === ho
|
|
15209
|
-
).length, i = ce(null), [l, d] =
|
|
15237
|
+
).length, i = ce(null), [l, d] = K(null);
|
|
15210
15238
|
let u = 0;
|
|
15211
15239
|
const p = r.map((f) => {
|
|
15212
15240
|
if (me(f) && f.type === ho) {
|
|
@@ -15270,7 +15298,7 @@ const Kv = Object.assign(N4, {
|
|
|
15270
15298
|
exit: { opacity: 0, y: -10, filter: "blur(4px)" }
|
|
15271
15299
|
};
|
|
15272
15300
|
return /* @__PURE__ */ o(
|
|
15273
|
-
|
|
15301
|
+
Z.span,
|
|
15274
15302
|
{
|
|
15275
15303
|
className: y("inline-flex", n),
|
|
15276
15304
|
variants: r,
|
|
@@ -15279,7 +15307,7 @@ const Kv = Object.assign(N4, {
|
|
|
15279
15307
|
exit: "hidden",
|
|
15280
15308
|
style: { willChange: "transform, opacity" },
|
|
15281
15309
|
children: t.split("").map((s, i) => /* @__PURE__ */ o(
|
|
15282
|
-
|
|
15310
|
+
Z.span,
|
|
15283
15311
|
{
|
|
15284
15312
|
variants: a,
|
|
15285
15313
|
className: "block",
|
|
@@ -15296,10 +15324,10 @@ function S4({
|
|
|
15296
15324
|
className: t
|
|
15297
15325
|
}) {
|
|
15298
15326
|
if (!e) return null;
|
|
15299
|
-
const { model: n, onModelChange: r, availableModels: a } = e, [s, i] =
|
|
15327
|
+
const { model: n, onModelChange: r, availableModels: a } = e, [s, i] = K(!1), l = a.find((f) => f.value === n) || {
|
|
15300
15328
|
label: "Unknown",
|
|
15301
15329
|
value: ""
|
|
15302
|
-
}, d = ce(l.label), [u, p] =
|
|
15330
|
+
}, d = ce(l.label), [u, p] = K(null);
|
|
15303
15331
|
return oe(() => {
|
|
15304
15332
|
if (l.label !== d.current) {
|
|
15305
15333
|
const f = d.current;
|
|
@@ -15317,14 +15345,14 @@ function S4({
|
|
|
15317
15345
|
t
|
|
15318
15346
|
),
|
|
15319
15347
|
children: /* @__PURE__ */ w(
|
|
15320
|
-
|
|
15348
|
+
Z.div,
|
|
15321
15349
|
{
|
|
15322
15350
|
layout: !0,
|
|
15323
15351
|
transition: { type: "spring", stiffness: 320, damping: 50 },
|
|
15324
15352
|
className: "relative inline-flex items-center gap-1 overflow-hidden whitespace-nowrap",
|
|
15325
15353
|
children: [
|
|
15326
15354
|
/* @__PURE__ */ o(Ce, { initial: !1, children: u && /* @__PURE__ */ o(
|
|
15327
|
-
|
|
15355
|
+
Z.div,
|
|
15328
15356
|
{
|
|
15329
15357
|
initial: { opacity: 1 },
|
|
15330
15358
|
animate: { opacity: 1 },
|
|
@@ -15335,7 +15363,7 @@ function S4({
|
|
|
15335
15363
|
}
|
|
15336
15364
|
) }),
|
|
15337
15365
|
/* @__PURE__ */ o(zs, { label: l.label }, l.value),
|
|
15338
|
-
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(
|
|
15366
|
+
/* @__PURE__ */ o("span", { children: /* @__PURE__ */ o(Y, { name: "chevron-down", className: "size-3" }) })
|
|
15339
15367
|
]
|
|
15340
15368
|
}
|
|
15341
15369
|
)
|
|
@@ -15360,7 +15388,7 @@ function S4({
|
|
|
15360
15388
|
),
|
|
15361
15389
|
children: [
|
|
15362
15390
|
/* @__PURE__ */ o("span", { children: f.label }),
|
|
15363
|
-
f.value === n && /* @__PURE__ */ o(
|
|
15391
|
+
f.value === n && /* @__PURE__ */ o(Y, { name: "check", className: "size-3" })
|
|
15364
15392
|
]
|
|
15365
15393
|
},
|
|
15366
15394
|
f.value
|
|
@@ -15397,7 +15425,7 @@ const mt = (e, t, n, r) => {
|
|
|
15397
15425
|
type: t,
|
|
15398
15426
|
disabled: e,
|
|
15399
15427
|
variant: "secondary",
|
|
15400
|
-
icon: /* @__PURE__ */ o(
|
|
15428
|
+
icon: /* @__PURE__ */ o(Y, { name: "arrow-up", className: "size-4" }),
|
|
15401
15429
|
"aria-label": "Send message",
|
|
15402
15430
|
className: y("h-8 w-8 rounded-[7px]", n)
|
|
15403
15431
|
}
|
|
@@ -15427,7 +15455,7 @@ function E4({
|
|
|
15427
15455
|
onModelChange: s,
|
|
15428
15456
|
availableModels: i,
|
|
15429
15457
|
initialInput: l
|
|
15430
|
-
} = Ta(), [d, u] =
|
|
15458
|
+
} = Ta(), [d, u] = K(l || ""), [p, f] = K(!1), g = ce(null), m = () => {
|
|
15431
15459
|
const b = g.current;
|
|
15432
15460
|
b && (b.style.height = "auto", b.style.height = `${b.scrollHeight}px`);
|
|
15433
15461
|
};
|
|
@@ -15708,7 +15736,7 @@ function Xv({
|
|
|
15708
15736
|
executeToolCall: e,
|
|
15709
15737
|
requiresApproval: t
|
|
15710
15738
|
}) {
|
|
15711
|
-
const [n, r] =
|
|
15739
|
+
const [n, r] = K(null), a = async (i) => {
|
|
15712
15740
|
try {
|
|
15713
15741
|
return await e(i);
|
|
15714
15742
|
} catch (l) {
|
|
@@ -15756,7 +15784,7 @@ function I4({
|
|
|
15756
15784
|
className: t,
|
|
15757
15785
|
components: n
|
|
15758
15786
|
}) {
|
|
15759
|
-
const { state: r, toolCallId: a, args: s, result: i } = e, [l, d] =
|
|
15787
|
+
const { state: r, toolCallId: a, args: s, result: i } = e, [l, d] = K(!1), { toolCallApproval: u } = Ta(), p = a === u?.pendingToolCall?.toolCallId;
|
|
15760
15788
|
oe(() => {
|
|
15761
15789
|
p && d(!0);
|
|
15762
15790
|
}, [p]), oe(() => {
|
|
@@ -15764,7 +15792,7 @@ function I4({
|
|
|
15764
15792
|
}, [r]);
|
|
15765
15793
|
const f = (m) => typeof m == "string" ? m : typeof m == "object" && m !== null ? JSON.stringify(m, null, 2) : String(m), g = ye(() => p ? "pending" : r === "call" ? "in-progress" : r === "result" ? f(i).includes(rf) || f(i).includes(of) ? "error" : "success" : "pending", [r, p, i]);
|
|
15766
15794
|
return /* @__PURE__ */ o(If, { transition: { duration: 0.2 }, children: /* @__PURE__ */ w(
|
|
15767
|
-
|
|
15795
|
+
Z.div,
|
|
15768
15796
|
{
|
|
15769
15797
|
className: y(
|
|
15770
15798
|
"overflow-hidden rounded-lg border transition-all duration-300",
|
|
@@ -15795,7 +15823,7 @@ function I4({
|
|
|
15795
15823
|
className: "h-6 w-6",
|
|
15796
15824
|
"aria-label": l ? "Collapse" : "Expand",
|
|
15797
15825
|
icon: /* @__PURE__ */ o(
|
|
15798
|
-
|
|
15826
|
+
Z.svg,
|
|
15799
15827
|
{
|
|
15800
15828
|
xmlns: "http://www.w3.org/2000/svg",
|
|
15801
15829
|
className: "h-4 w-4",
|
|
@@ -15825,7 +15853,7 @@ function I4({
|
|
|
15825
15853
|
}
|
|
15826
15854
|
),
|
|
15827
15855
|
/* @__PURE__ */ o(
|
|
15828
|
-
|
|
15856
|
+
Z.div,
|
|
15829
15857
|
{
|
|
15830
15858
|
variants: {
|
|
15831
15859
|
expanded: {
|
|
@@ -15851,7 +15879,7 @@ function I4({
|
|
|
15851
15879
|
},
|
|
15852
15880
|
className: "overflow-hidden",
|
|
15853
15881
|
children: /* @__PURE__ */ w(
|
|
15854
|
-
|
|
15882
|
+
Z.div,
|
|
15855
15883
|
{
|
|
15856
15884
|
variants: {
|
|
15857
15885
|
expanded: {
|
|
@@ -15866,7 +15894,7 @@ function I4({
|
|
|
15866
15894
|
className: "space-y-3 p-4",
|
|
15867
15895
|
children: [
|
|
15868
15896
|
s && Object.keys(s).length > 0 ? /* @__PURE__ */ o(
|
|
15869
|
-
|
|
15897
|
+
Z.div,
|
|
15870
15898
|
{
|
|
15871
15899
|
variants: {
|
|
15872
15900
|
expanded: { y: 0, opacity: 1 },
|
|
@@ -15883,7 +15911,7 @@ function I4({
|
|
|
15883
15911
|
}
|
|
15884
15912
|
) : null,
|
|
15885
15913
|
r === "result" && i ? /* @__PURE__ */ o(
|
|
15886
|
-
|
|
15914
|
+
Z.div,
|
|
15887
15915
|
{
|
|
15888
15916
|
variants: {
|
|
15889
15917
|
expanded: { y: 0, opacity: 1 },
|
|
@@ -15933,7 +15961,7 @@ const T4 = ({
|
|
|
15933
15961
|
switch (e) {
|
|
15934
15962
|
case "success":
|
|
15935
15963
|
return /* @__PURE__ */ o(
|
|
15936
|
-
|
|
15964
|
+
Z.div,
|
|
15937
15965
|
{
|
|
15938
15966
|
className: y(r, "bg-success", t),
|
|
15939
15967
|
initial: { scale: 0.8 },
|
|
@@ -15944,7 +15972,7 @@ const T4 = ({
|
|
|
15944
15972
|
);
|
|
15945
15973
|
case "error":
|
|
15946
15974
|
return /* @__PURE__ */ o(
|
|
15947
|
-
|
|
15975
|
+
Z.div,
|
|
15948
15976
|
{
|
|
15949
15977
|
className: y(r, "bg-destructive", t),
|
|
15950
15978
|
initial: { scale: 0.8 },
|
|
@@ -15956,7 +15984,7 @@ const T4 = ({
|
|
|
15956
15984
|
case "pending":
|
|
15957
15985
|
return /* @__PURE__ */ w(de, { children: [
|
|
15958
15986
|
/* @__PURE__ */ o(
|
|
15959
|
-
|
|
15987
|
+
Z.div,
|
|
15960
15988
|
{
|
|
15961
15989
|
className: "absolute inset-0 rounded-full",
|
|
15962
15990
|
initial: { opacity: 0 },
|
|
@@ -15965,7 +15993,7 @@ const T4 = ({
|
|
|
15965
15993
|
}
|
|
15966
15994
|
),
|
|
15967
15995
|
/* @__PURE__ */ o(
|
|
15968
|
-
|
|
15996
|
+
Z.div,
|
|
15969
15997
|
{
|
|
15970
15998
|
className: "absolute inset-0",
|
|
15971
15999
|
initial: { opacity: 0 },
|
|
@@ -15983,7 +16011,7 @@ const T4 = ({
|
|
|
15983
16011
|
}
|
|
15984
16012
|
),
|
|
15985
16013
|
/* @__PURE__ */ o(
|
|
15986
|
-
|
|
16014
|
+
Z.div,
|
|
15987
16015
|
{
|
|
15988
16016
|
className: y("relative h-4 w-4 rounded-full", t),
|
|
15989
16017
|
initial: { scale: 0.8 },
|
|
@@ -15996,7 +16024,7 @@ const T4 = ({
|
|
|
15996
16024
|
case "in-progress":
|
|
15997
16025
|
return /* @__PURE__ */ w(de, { children: [
|
|
15998
16026
|
/* @__PURE__ */ o(
|
|
15999
|
-
|
|
16027
|
+
Z.div,
|
|
16000
16028
|
{
|
|
16001
16029
|
className: "bg-information-fill/20 absolute inset-0 rounded-full",
|
|
16002
16030
|
initial: { opacity: 0 },
|
|
@@ -16005,7 +16033,7 @@ const T4 = ({
|
|
|
16005
16033
|
}
|
|
16006
16034
|
),
|
|
16007
16035
|
/* @__PURE__ */ o(
|
|
16008
|
-
|
|
16036
|
+
Z.div,
|
|
16009
16037
|
{
|
|
16010
16038
|
className: "absolute inset-0",
|
|
16011
16039
|
initial: { opacity: 0 },
|
|
@@ -16023,7 +16051,7 @@ const T4 = ({
|
|
|
16023
16051
|
}
|
|
16024
16052
|
),
|
|
16025
16053
|
/* @__PURE__ */ o(
|
|
16026
|
-
|
|
16054
|
+
Z.div,
|
|
16027
16055
|
{
|
|
16028
16056
|
className: y(
|
|
16029
16057
|
n,
|
|
@@ -16202,7 +16230,7 @@ export {
|
|
|
16202
16230
|
b3 as F,
|
|
16203
16231
|
J4 as G,
|
|
16204
16232
|
Ye as H,
|
|
16205
|
-
|
|
16233
|
+
Y as I,
|
|
16206
16234
|
Ms as J,
|
|
16207
16235
|
Ev as K,
|
|
16208
16236
|
gi as L,
|
|
@@ -16316,4 +16344,4 @@ export {
|
|
|
16316
16344
|
Yn as y,
|
|
16317
16345
|
ur as z
|
|
16318
16346
|
};
|
|
16319
|
-
//# sourceMappingURL=index-
|
|
16347
|
+
//# sourceMappingURL=index-C9bJtuJ5.mjs.map
|