@qodo/design-system 0.19.0 → 0.19.2
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/design-system.css +1 -1
- package/dist/index.cjs.js +40 -40
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.d.ts +4 -2
- package/dist/index.esm.js +591 -585
- package/dist/index.esm.js.map +1 -1
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -2,7 +2,7 @@ import * as d from "react";
|
|
|
2
2
|
import F, { forwardRef as Ie, createElement as dn, useLayoutEffect as zi, useState as Ee, createContext as da, useContext as ua, useRef as me, useEffect as ot, useMemo as un, memo as Tm, isValidElement as _m, Children as Am, cloneElement as Im, useId as Mm, useCallback as ye } from "react";
|
|
3
3
|
import * as Nn from "react-dom";
|
|
4
4
|
import Om, { flushSync as fa } from "react-dom";
|
|
5
|
-
const
|
|
5
|
+
const cR = {
|
|
6
6
|
primary: {
|
|
7
7
|
50: "#eff6ff",
|
|
8
8
|
100: "#dbeafe",
|
|
@@ -27,19 +27,19 @@ const ck = {
|
|
|
27
27
|
500: "#ef4444",
|
|
28
28
|
600: "#dc2626"
|
|
29
29
|
}
|
|
30
|
-
},
|
|
30
|
+
}, dR = {
|
|
31
31
|
xs: "0.25rem",
|
|
32
32
|
sm: "0.5rem",
|
|
33
33
|
md: "1rem",
|
|
34
34
|
lg: "1.5rem",
|
|
35
35
|
xl: "2rem",
|
|
36
36
|
"2xl": "3rem"
|
|
37
|
-
},
|
|
37
|
+
}, uR = {
|
|
38
38
|
sm: "0.25rem",
|
|
39
39
|
md: "0.375rem",
|
|
40
40
|
lg: "0.5rem",
|
|
41
41
|
xl: "0.75rem"
|
|
42
|
-
},
|
|
42
|
+
}, fR = {
|
|
43
43
|
fontFamily: {
|
|
44
44
|
sans: ["Inter", "system-ui", "sans-serif"],
|
|
45
45
|
mono: ["JetBrains Mono", "monospace"]
|
|
@@ -63,10 +63,10 @@ var Kr = { exports: {} }, mr = {};
|
|
|
63
63
|
* This source code is licensed under the MIT license found in the
|
|
64
64
|
* LICENSE file in the root directory of this source tree.
|
|
65
65
|
*/
|
|
66
|
-
var
|
|
66
|
+
var Rs;
|
|
67
67
|
function Dm() {
|
|
68
|
-
if (
|
|
69
|
-
|
|
68
|
+
if (Rs) return mr;
|
|
69
|
+
Rs = 1;
|
|
70
70
|
var e = F, t = Symbol.for("react.element"), r = Symbol.for("react.fragment"), n = Object.prototype.hasOwnProperty, o = e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner, a = { key: !0, ref: !0, __self: !0, __source: !0 };
|
|
71
71
|
function i(l, c, u) {
|
|
72
72
|
var f, p = {}, g = null, m = null;
|
|
@@ -115,10 +115,10 @@ function $m() {
|
|
|
115
115
|
fe.unshift("Warning: " + D), Function.prototype.apply.call(console[w], console, fe);
|
|
116
116
|
}
|
|
117
117
|
}
|
|
118
|
-
var S = !1, N = !1, T = !1, j = !1,
|
|
118
|
+
var S = !1, N = !1, T = !1, j = !1, R = !1, W;
|
|
119
119
|
W = Symbol.for("react.module.reference");
|
|
120
120
|
function U(w) {
|
|
121
|
-
return !!(typeof w == "string" || typeof w == "function" || w === n || w === a ||
|
|
121
|
+
return !!(typeof w == "string" || typeof w == "function" || w === n || w === a || R || w === o || w === u || w === f || j || w === m || S || N || T || typeof w == "object" && w !== null && (w.$$typeof === g || w.$$typeof === p || w.$$typeof === i || w.$$typeof === l || w.$$typeof === c || // This needs to include all possible module reference object
|
|
122
122
|
// types supported by any Flight configuration anywhere since
|
|
123
123
|
// we don't know which Flight build this will end up being used
|
|
124
124
|
// with.
|
|
@@ -623,7 +623,7 @@ Check the top-level render call using <` + H + ">.");
|
|
|
623
623
|
}
|
|
624
624
|
}
|
|
625
625
|
var Es = {};
|
|
626
|
-
function
|
|
626
|
+
function ks(w, D, H, ne, ue, fe) {
|
|
627
627
|
{
|
|
628
628
|
var de = U(w);
|
|
629
629
|
if (!de) {
|
|
@@ -668,13 +668,13 @@ React keys must be passed directly to JSX without using spread:
|
|
|
668
668
|
}
|
|
669
669
|
}
|
|
670
670
|
function Em(w, D, H) {
|
|
671
|
-
return
|
|
671
|
+
return ks(w, D, H, !0);
|
|
672
672
|
}
|
|
673
|
-
function
|
|
674
|
-
return
|
|
673
|
+
function km(w, D, H) {
|
|
674
|
+
return ks(w, D, H, !1);
|
|
675
675
|
}
|
|
676
|
-
var
|
|
677
|
-
gr.Fragment = n, gr.jsx =
|
|
676
|
+
var Rm = km, Nm = Em;
|
|
677
|
+
gr.Fragment = n, gr.jsx = Rm, gr.jsxs = Nm;
|
|
678
678
|
})()), gr;
|
|
679
679
|
}
|
|
680
680
|
var js;
|
|
@@ -996,9 +996,9 @@ const be = (e) => {
|
|
|
996
996
|
"bottom-left",
|
|
997
997
|
// Deprecated since Tailwind CSS v4.1.0, see https://github.com/tailwindlabs/tailwindcss/pull/17378
|
|
998
998
|
"left-bottom"
|
|
999
|
-
], N = () => [...S(), X, Y], T = () => ["auto", "hidden", "clip", "visible", "scroll"], j = () => ["auto", "contain", "none"],
|
|
999
|
+
], N = () => [...S(), X, Y], T = () => ["auto", "hidden", "clip", "visible", "scroll"], j = () => ["auto", "contain", "none"], R = () => [X, Y, c], W = () => [zt, "full", "auto", ...R()], U = () => [dt, "none", "subgrid", X, Y], re = () => ["auto", {
|
|
1000
1000
|
span: ["full", dt, X, Y]
|
|
1001
|
-
}, dt, X, Y], te = () => [dt, "auto", X, Y], Q = () => ["auto", "min", "max", "fr", X, Y], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], M = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...
|
|
1001
|
+
}, dt, X, Y], te = () => [dt, "auto", X, Y], Q = () => ["auto", "min", "max", "fr", X, Y], V = () => ["start", "end", "center", "between", "around", "evenly", "stretch", "baseline", "center-safe", "end-safe"], M = () => ["start", "end", "center", "stretch", "center-safe", "end-safe"], A = () => ["auto", ...R()], O = () => [zt, "auto", "full", "dvw", "dvh", "lvw", "lvh", "svw", "svh", "min", "max", "fit", ...R()], E = () => [e, X, Y], I = () => [...S(), Ms, Is, {
|
|
1002
1002
|
position: [X, Y]
|
|
1003
1003
|
}], B = () => ["no-repeat", {
|
|
1004
1004
|
repeat: ["", "x", "y", "space", "round"]
|
|
@@ -1019,7 +1019,7 @@ const be = (e) => {
|
|
|
1019
1019
|
b,
|
|
1020
1020
|
X,
|
|
1021
1021
|
Y
|
|
1022
|
-
], ee = () => ["none", se, X, Y], oe = () => ["none", se, X, Y], ce = () => [se, X, Y], ie = () => [zt, "full", ...
|
|
1022
|
+
], ee = () => ["none", se, X, Y], oe = () => ["none", se, X, Y], ce = () => [se, X, Y], ie = () => [zt, "full", ...R()];
|
|
1023
1023
|
return {
|
|
1024
1024
|
cacheSize: 500,
|
|
1025
1025
|
theme: {
|
|
@@ -1275,7 +1275,7 @@ const be = (e) => {
|
|
|
1275
1275
|
* @see https://tailwindcss.com/docs/flex-basis
|
|
1276
1276
|
*/
|
|
1277
1277
|
basis: [{
|
|
1278
|
-
basis: [zt, "full", "auto", l, ...
|
|
1278
|
+
basis: [zt, "full", "auto", l, ...R()]
|
|
1279
1279
|
}],
|
|
1280
1280
|
/**
|
|
1281
1281
|
* Flex Direction
|
|
@@ -1401,21 +1401,21 @@ const be = (e) => {
|
|
|
1401
1401
|
* @see https://tailwindcss.com/docs/gap
|
|
1402
1402
|
*/
|
|
1403
1403
|
gap: [{
|
|
1404
|
-
gap:
|
|
1404
|
+
gap: R()
|
|
1405
1405
|
}],
|
|
1406
1406
|
/**
|
|
1407
1407
|
* Gap X
|
|
1408
1408
|
* @see https://tailwindcss.com/docs/gap
|
|
1409
1409
|
*/
|
|
1410
1410
|
"gap-x": [{
|
|
1411
|
-
"gap-x":
|
|
1411
|
+
"gap-x": R()
|
|
1412
1412
|
}],
|
|
1413
1413
|
/**
|
|
1414
1414
|
* Gap Y
|
|
1415
1415
|
* @see https://tailwindcss.com/docs/gap
|
|
1416
1416
|
*/
|
|
1417
1417
|
"gap-y": [{
|
|
1418
|
-
"gap-y":
|
|
1418
|
+
"gap-y": R()
|
|
1419
1419
|
}],
|
|
1420
1420
|
/**
|
|
1421
1421
|
* Justify Content
|
|
@@ -1490,63 +1490,63 @@ const be = (e) => {
|
|
|
1490
1490
|
* @see https://tailwindcss.com/docs/padding
|
|
1491
1491
|
*/
|
|
1492
1492
|
p: [{
|
|
1493
|
-
p:
|
|
1493
|
+
p: R()
|
|
1494
1494
|
}],
|
|
1495
1495
|
/**
|
|
1496
1496
|
* Padding X
|
|
1497
1497
|
* @see https://tailwindcss.com/docs/padding
|
|
1498
1498
|
*/
|
|
1499
1499
|
px: [{
|
|
1500
|
-
px:
|
|
1500
|
+
px: R()
|
|
1501
1501
|
}],
|
|
1502
1502
|
/**
|
|
1503
1503
|
* Padding Y
|
|
1504
1504
|
* @see https://tailwindcss.com/docs/padding
|
|
1505
1505
|
*/
|
|
1506
1506
|
py: [{
|
|
1507
|
-
py:
|
|
1507
|
+
py: R()
|
|
1508
1508
|
}],
|
|
1509
1509
|
/**
|
|
1510
1510
|
* Padding Start
|
|
1511
1511
|
* @see https://tailwindcss.com/docs/padding
|
|
1512
1512
|
*/
|
|
1513
1513
|
ps: [{
|
|
1514
|
-
ps:
|
|
1514
|
+
ps: R()
|
|
1515
1515
|
}],
|
|
1516
1516
|
/**
|
|
1517
1517
|
* Padding End
|
|
1518
1518
|
* @see https://tailwindcss.com/docs/padding
|
|
1519
1519
|
*/
|
|
1520
1520
|
pe: [{
|
|
1521
|
-
pe:
|
|
1521
|
+
pe: R()
|
|
1522
1522
|
}],
|
|
1523
1523
|
/**
|
|
1524
1524
|
* Padding Top
|
|
1525
1525
|
* @see https://tailwindcss.com/docs/padding
|
|
1526
1526
|
*/
|
|
1527
1527
|
pt: [{
|
|
1528
|
-
pt:
|
|
1528
|
+
pt: R()
|
|
1529
1529
|
}],
|
|
1530
1530
|
/**
|
|
1531
1531
|
* Padding Right
|
|
1532
1532
|
* @see https://tailwindcss.com/docs/padding
|
|
1533
1533
|
*/
|
|
1534
1534
|
pr: [{
|
|
1535
|
-
pr:
|
|
1535
|
+
pr: R()
|
|
1536
1536
|
}],
|
|
1537
1537
|
/**
|
|
1538
1538
|
* Padding Bottom
|
|
1539
1539
|
* @see https://tailwindcss.com/docs/padding
|
|
1540
1540
|
*/
|
|
1541
1541
|
pb: [{
|
|
1542
|
-
pb:
|
|
1542
|
+
pb: R()
|
|
1543
1543
|
}],
|
|
1544
1544
|
/**
|
|
1545
1545
|
* Padding Left
|
|
1546
1546
|
* @see https://tailwindcss.com/docs/padding
|
|
1547
1547
|
*/
|
|
1548
1548
|
pl: [{
|
|
1549
|
-
pl:
|
|
1549
|
+
pl: R()
|
|
1550
1550
|
}],
|
|
1551
1551
|
/**
|
|
1552
1552
|
* Margin
|
|
@@ -1616,7 +1616,7 @@ const be = (e) => {
|
|
|
1616
1616
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1617
1617
|
*/
|
|
1618
1618
|
"space-x": [{
|
|
1619
|
-
"space-x":
|
|
1619
|
+
"space-x": R()
|
|
1620
1620
|
}],
|
|
1621
1621
|
/**
|
|
1622
1622
|
* Space Between X Reverse
|
|
@@ -1628,7 +1628,7 @@ const be = (e) => {
|
|
|
1628
1628
|
* @see https://tailwindcss.com/docs/margin#adding-space-between-children
|
|
1629
1629
|
*/
|
|
1630
1630
|
"space-y": [{
|
|
1631
|
-
"space-y":
|
|
1631
|
+
"space-y": R()
|
|
1632
1632
|
}],
|
|
1633
1633
|
/**
|
|
1634
1634
|
* Space Between Y Reverse
|
|
@@ -1797,7 +1797,7 @@ const be = (e) => {
|
|
|
1797
1797
|
leading: [
|
|
1798
1798
|
/** Deprecated since Tailwind CSS v4.0.0. @see https://github.com/tailwindlabs/tailwindcss.com/issues/2027#issuecomment-2620152757 */
|
|
1799
1799
|
a,
|
|
1800
|
-
...
|
|
1800
|
+
...R()
|
|
1801
1801
|
]
|
|
1802
1802
|
}],
|
|
1803
1803
|
/**
|
|
@@ -1898,7 +1898,7 @@ const be = (e) => {
|
|
|
1898
1898
|
* @see https://tailwindcss.com/docs/text-indent
|
|
1899
1899
|
*/
|
|
1900
1900
|
indent: [{
|
|
1901
|
-
indent:
|
|
1901
|
+
indent: R()
|
|
1902
1902
|
}],
|
|
1903
1903
|
/**
|
|
1904
1904
|
* Vertical Alignment
|
|
@@ -2862,21 +2862,21 @@ const be = (e) => {
|
|
|
2862
2862
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2863
2863
|
*/
|
|
2864
2864
|
"border-spacing": [{
|
|
2865
|
-
"border-spacing":
|
|
2865
|
+
"border-spacing": R()
|
|
2866
2866
|
}],
|
|
2867
2867
|
/**
|
|
2868
2868
|
* Border Spacing X
|
|
2869
2869
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2870
2870
|
*/
|
|
2871
2871
|
"border-spacing-x": [{
|
|
2872
|
-
"border-spacing-x":
|
|
2872
|
+
"border-spacing-x": R()
|
|
2873
2873
|
}],
|
|
2874
2874
|
/**
|
|
2875
2875
|
* Border Spacing Y
|
|
2876
2876
|
* @see https://tailwindcss.com/docs/border-spacing
|
|
2877
2877
|
*/
|
|
2878
2878
|
"border-spacing-y": [{
|
|
2879
|
-
"border-spacing-y":
|
|
2879
|
+
"border-spacing-y": R()
|
|
2880
2880
|
}],
|
|
2881
2881
|
/**
|
|
2882
2882
|
* Table Layout
|
|
@@ -3168,126 +3168,126 @@ const be = (e) => {
|
|
|
3168
3168
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3169
3169
|
*/
|
|
3170
3170
|
"scroll-m": [{
|
|
3171
|
-
"scroll-m":
|
|
3171
|
+
"scroll-m": R()
|
|
3172
3172
|
}],
|
|
3173
3173
|
/**
|
|
3174
3174
|
* Scroll Margin X
|
|
3175
3175
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3176
3176
|
*/
|
|
3177
3177
|
"scroll-mx": [{
|
|
3178
|
-
"scroll-mx":
|
|
3178
|
+
"scroll-mx": R()
|
|
3179
3179
|
}],
|
|
3180
3180
|
/**
|
|
3181
3181
|
* Scroll Margin Y
|
|
3182
3182
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3183
3183
|
*/
|
|
3184
3184
|
"scroll-my": [{
|
|
3185
|
-
"scroll-my":
|
|
3185
|
+
"scroll-my": R()
|
|
3186
3186
|
}],
|
|
3187
3187
|
/**
|
|
3188
3188
|
* Scroll Margin Start
|
|
3189
3189
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3190
3190
|
*/
|
|
3191
3191
|
"scroll-ms": [{
|
|
3192
|
-
"scroll-ms":
|
|
3192
|
+
"scroll-ms": R()
|
|
3193
3193
|
}],
|
|
3194
3194
|
/**
|
|
3195
3195
|
* Scroll Margin End
|
|
3196
3196
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3197
3197
|
*/
|
|
3198
3198
|
"scroll-me": [{
|
|
3199
|
-
"scroll-me":
|
|
3199
|
+
"scroll-me": R()
|
|
3200
3200
|
}],
|
|
3201
3201
|
/**
|
|
3202
3202
|
* Scroll Margin Top
|
|
3203
3203
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3204
3204
|
*/
|
|
3205
3205
|
"scroll-mt": [{
|
|
3206
|
-
"scroll-mt":
|
|
3206
|
+
"scroll-mt": R()
|
|
3207
3207
|
}],
|
|
3208
3208
|
/**
|
|
3209
3209
|
* Scroll Margin Right
|
|
3210
3210
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3211
3211
|
*/
|
|
3212
3212
|
"scroll-mr": [{
|
|
3213
|
-
"scroll-mr":
|
|
3213
|
+
"scroll-mr": R()
|
|
3214
3214
|
}],
|
|
3215
3215
|
/**
|
|
3216
3216
|
* Scroll Margin Bottom
|
|
3217
3217
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3218
3218
|
*/
|
|
3219
3219
|
"scroll-mb": [{
|
|
3220
|
-
"scroll-mb":
|
|
3220
|
+
"scroll-mb": R()
|
|
3221
3221
|
}],
|
|
3222
3222
|
/**
|
|
3223
3223
|
* Scroll Margin Left
|
|
3224
3224
|
* @see https://tailwindcss.com/docs/scroll-margin
|
|
3225
3225
|
*/
|
|
3226
3226
|
"scroll-ml": [{
|
|
3227
|
-
"scroll-ml":
|
|
3227
|
+
"scroll-ml": R()
|
|
3228
3228
|
}],
|
|
3229
3229
|
/**
|
|
3230
3230
|
* Scroll Padding
|
|
3231
3231
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3232
3232
|
*/
|
|
3233
3233
|
"scroll-p": [{
|
|
3234
|
-
"scroll-p":
|
|
3234
|
+
"scroll-p": R()
|
|
3235
3235
|
}],
|
|
3236
3236
|
/**
|
|
3237
3237
|
* Scroll Padding X
|
|
3238
3238
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3239
3239
|
*/
|
|
3240
3240
|
"scroll-px": [{
|
|
3241
|
-
"scroll-px":
|
|
3241
|
+
"scroll-px": R()
|
|
3242
3242
|
}],
|
|
3243
3243
|
/**
|
|
3244
3244
|
* Scroll Padding Y
|
|
3245
3245
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3246
3246
|
*/
|
|
3247
3247
|
"scroll-py": [{
|
|
3248
|
-
"scroll-py":
|
|
3248
|
+
"scroll-py": R()
|
|
3249
3249
|
}],
|
|
3250
3250
|
/**
|
|
3251
3251
|
* Scroll Padding Start
|
|
3252
3252
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3253
3253
|
*/
|
|
3254
3254
|
"scroll-ps": [{
|
|
3255
|
-
"scroll-ps":
|
|
3255
|
+
"scroll-ps": R()
|
|
3256
3256
|
}],
|
|
3257
3257
|
/**
|
|
3258
3258
|
* Scroll Padding End
|
|
3259
3259
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3260
3260
|
*/
|
|
3261
3261
|
"scroll-pe": [{
|
|
3262
|
-
"scroll-pe":
|
|
3262
|
+
"scroll-pe": R()
|
|
3263
3263
|
}],
|
|
3264
3264
|
/**
|
|
3265
3265
|
* Scroll Padding Top
|
|
3266
3266
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3267
3267
|
*/
|
|
3268
3268
|
"scroll-pt": [{
|
|
3269
|
-
"scroll-pt":
|
|
3269
|
+
"scroll-pt": R()
|
|
3270
3270
|
}],
|
|
3271
3271
|
/**
|
|
3272
3272
|
* Scroll Padding Right
|
|
3273
3273
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3274
3274
|
*/
|
|
3275
3275
|
"scroll-pr": [{
|
|
3276
|
-
"scroll-pr":
|
|
3276
|
+
"scroll-pr": R()
|
|
3277
3277
|
}],
|
|
3278
3278
|
/**
|
|
3279
3279
|
* Scroll Padding Bottom
|
|
3280
3280
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3281
3281
|
*/
|
|
3282
3282
|
"scroll-pb": [{
|
|
3283
|
-
"scroll-pb":
|
|
3283
|
+
"scroll-pb": R()
|
|
3284
3284
|
}],
|
|
3285
3285
|
/**
|
|
3286
3286
|
* Scroll Padding Left
|
|
3287
3287
|
* @see https://tailwindcss.com/docs/scroll-padding
|
|
3288
3288
|
*/
|
|
3289
3289
|
"scroll-pl": [{
|
|
3290
|
-
"scroll-pl":
|
|
3290
|
+
"scroll-pl": R()
|
|
3291
3291
|
}],
|
|
3292
3292
|
/**
|
|
3293
3293
|
* Scroll Snap Align
|
|
@@ -3448,7 +3448,7 @@ const be = (e) => {
|
|
|
3448
3448
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3449
3449
|
};
|
|
3450
3450
|
}, xg = /* @__PURE__ */ Jm(hg);
|
|
3451
|
-
function
|
|
3451
|
+
function k(...e) {
|
|
3452
3452
|
return xg(Ui(e));
|
|
3453
3453
|
}
|
|
3454
3454
|
function bg(e, t, r) {
|
|
@@ -3553,12 +3553,12 @@ const ve = (e, t) => {
|
|
|
3553
3553
|
* This source code is licensed under the ISC license.
|
|
3554
3554
|
* See the LICENSE file in the root directory of this source tree.
|
|
3555
3555
|
*/
|
|
3556
|
-
const
|
|
3556
|
+
const kg = [
|
|
3557
3557
|
["path", { d: "m21 16-4 4-4-4", key: "f6ql7i" }],
|
|
3558
3558
|
["path", { d: "M17 20V4", key: "1ejh1v" }],
|
|
3559
3559
|
["path", { d: "m3 8 4-4 4 4", key: "11wl7u" }],
|
|
3560
3560
|
["path", { d: "M7 4v16", key: "1glfcx" }]
|
|
3561
|
-
],
|
|
3561
|
+
], Rg = ve("arrow-up-down", kg);
|
|
3562
3562
|
/**
|
|
3563
3563
|
* @license lucide-react v0.525.0 - ISC
|
|
3564
3564
|
*
|
|
@@ -3778,7 +3778,11 @@ const iv = [
|
|
|
3778
3778
|
xs: "h-fit rounded-md text-xs px-2 py-1.5",
|
|
3779
3779
|
sm: "h-9 rounded-md px-3",
|
|
3780
3780
|
lg: "h-11 rounded-md px-8",
|
|
3781
|
-
icon: "h-10 w-10"
|
|
3781
|
+
icon: "h-10 w-10",
|
|
3782
|
+
// TODO: remove "icon" size - not a standard, but it is used in platform https://linear.app/qodo/issue/IDE-3442/ui-remove-size-icon-used-for-button-in-platform
|
|
3783
|
+
"icon-sm": "h-7 w-7 p-1.5 rounded-md",
|
|
3784
|
+
"icon-md": "h-8 w-8 p-1.5 rounded-md",
|
|
3785
|
+
"icon-lg": "h-[45px] w-[45px] p-3 rounded-md"
|
|
3782
3786
|
}
|
|
3783
3787
|
},
|
|
3784
3788
|
defaultVariants: {
|
|
@@ -3790,7 +3794,7 @@ const iv = [
|
|
|
3790
3794
|
({ className: e, variant: t, size: r, loading: n, children: o, disabled: a, ...i }, l) => /* @__PURE__ */ s.jsxs(
|
|
3791
3795
|
"button",
|
|
3792
3796
|
{
|
|
3793
|
-
className:
|
|
3797
|
+
className: k(ll({ variant: t, size: r, className: e })),
|
|
3794
3798
|
ref: l,
|
|
3795
3799
|
disabled: a || n,
|
|
3796
3800
|
...i,
|
|
@@ -3803,13 +3807,13 @@ const iv = [
|
|
|
3803
3807
|
);
|
|
3804
3808
|
mt.displayName = "Button";
|
|
3805
3809
|
const lv = nr(
|
|
3806
|
-
"qodo qodo-input file:text-foreground placeholder:text-muted-
|
|
3810
|
+
"qodo qodo-input file:text-foreground placeholder:text-purple-muted-400 selection:bg-primary selection:text-primary-foreground border-input-neutral-idle flex h-9 w-full min-w-0 rounded-md border bg-purple-muted-900 px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium focus-visible:ring-none focus-visible:ring-none aria-invalid:border-red-600 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 disabled:cursor-not-allowed disabled:opacity-50 dark:disabled:bg-purple-muted-700 disabled:border-purple-muted-500 disabled:text-purple-muted-400 read-only:bg-purple-muted-700 read-only:border-purple-muted-400 read-only:cursor-default read-only:text-purple-muted-200 md:text-sm dark:border-input-neutral-idle dark:bg-purple-muted-900 dark:text-foreground dark:placeholder:text-[var(--color-purple-muted-400)] [:not(:placeholder-shown)]:bg-purple-muted-700",
|
|
3807
3811
|
{
|
|
3808
3812
|
variants: {
|
|
3809
3813
|
variant: {
|
|
3810
|
-
default: "bg-purple-muted-700 border-purple-muted-
|
|
3811
|
-
secondary: "bg-secondary border-secondary text-secondary-foreground placeholder:text-muted-
|
|
3812
|
-
accent: "bg-accent border-accent text-accent-foreground placeholder:text-muted-
|
|
3814
|
+
default: "dark:focus-visible:bg-fill-input-neutral-idle dark:hover:bg-purple-muted-700 border-purple-muted-600 hover:bg-fill-input-neutral-hover focus:bg-purple-muted-700 focus:border-purple-muted-600 focus-visible:ring-none focus-visible:ring-none",
|
|
3815
|
+
secondary: "bg-secondary border-secondary text-secondary-foreground placeholder:text-color-purple-muted-400 dark:bg-secondary dark:border-secondary dark:text-secondary-foreground dark:placeholder:text-purple-muted-400",
|
|
3816
|
+
accent: "bg-accent border-accent text-accent-foreground placeholder:text-color-purple-muted-400 dark:bg-accent dark:border-accent dark:text-accent-foreground dark:placeholder:text-purple-muted-400",
|
|
3813
3817
|
success: "bg-success border-success text-success-foreground placeholder:text-success-foreground/70 dark:bg-success dark:border-success dark:text-success-foreground dark:placeholder:text-success-foreground/70",
|
|
3814
3818
|
warning: "bg-warning border-warning text-warning-foreground placeholder:text-warning-foreground/70 dark:bg-warning dark:border-warning dark:text-warning-foreground dark:placeholder:text-warning-foreground/70",
|
|
3815
3819
|
destructive: "border-destructive bg-purple-muted-700 text-purple-muted-200 placeholder:text-destructive-foreground/70 dark:border-destructive dark:placeholder:text-destructive-foreground/70"
|
|
@@ -3827,7 +3831,7 @@ const lv = nr(
|
|
|
3827
3831
|
type: r,
|
|
3828
3832
|
"data-slot": "input",
|
|
3829
3833
|
"aria-invalid": n || void 0,
|
|
3830
|
-
className:
|
|
3834
|
+
className: k(lv({ variant: t, className: e })),
|
|
3831
3835
|
...o
|
|
3832
3836
|
}
|
|
3833
3837
|
)
|
|
@@ -4085,12 +4089,12 @@ var yv = "DismissableLayer", Bo = "dismissableLayer.update", wv = "dismissableLa
|
|
|
4085
4089
|
onInteractOutside: i,
|
|
4086
4090
|
onDismiss: l,
|
|
4087
4091
|
...c
|
|
4088
|
-
} = e, u = d.useContext(ul), [f, p] = d.useState(null), g = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = d.useState({}), b = ae(t, (j) => p(j)), v = Array.from(u.layers), [x] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = v.indexOf(x), h = f ? v.indexOf(f) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, S = h >= y, N =
|
|
4089
|
-
const
|
|
4092
|
+
} = e, u = d.useContext(ul), [f, p] = d.useState(null), g = (f == null ? void 0 : f.ownerDocument) ?? (globalThis == null ? void 0 : globalThis.document), [, m] = d.useState({}), b = ae(t, (j) => p(j)), v = Array.from(u.layers), [x] = [...u.layersWithOutsidePointerEventsDisabled].slice(-1), y = v.indexOf(x), h = f ? v.indexOf(f) : -1, C = u.layersWithOutsidePointerEventsDisabled.size > 0, S = h >= y, N = kv((j) => {
|
|
4093
|
+
const R = j.target, W = [...u.branches].some((U) => U.contains(R));
|
|
4090
4094
|
!S || W || (o == null || o(j), i == null || i(j), j.defaultPrevented || l == null || l());
|
|
4091
|
-
}, g), T =
|
|
4092
|
-
const
|
|
4093
|
-
[...u.branches].some((U) => U.contains(
|
|
4095
|
+
}, g), T = Rv((j) => {
|
|
4096
|
+
const R = j.target;
|
|
4097
|
+
[...u.branches].some((U) => U.contains(R)) || (a == null || a(j), i == null || i(j), j.defaultPrevented || l == null || l());
|
|
4094
4098
|
}, g);
|
|
4095
4099
|
return bv((j) => {
|
|
4096
4100
|
h === u.layers.size - 1 && (n == null || n(j), !j.defaultPrevented && l && (j.preventDefault(), l()));
|
|
@@ -4135,7 +4139,7 @@ var Sv = "DismissableLayerBranch", Ev = d.forwardRef((e, t) => {
|
|
|
4135
4139
|
}, [r.branches]), /* @__PURE__ */ s.jsx(q.div, { ...e, ref: o });
|
|
4136
4140
|
});
|
|
4137
4141
|
Ev.displayName = Sv;
|
|
4138
|
-
function
|
|
4142
|
+
function kv(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
4139
4143
|
const r = Ve(e), n = d.useRef(!1), o = d.useRef(() => {
|
|
4140
4144
|
});
|
|
4141
4145
|
return d.useEffect(() => {
|
|
@@ -4165,7 +4169,7 @@ function Rv(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
|
4165
4169
|
onPointerDownCapture: () => n.current = !0
|
|
4166
4170
|
};
|
|
4167
4171
|
}
|
|
4168
|
-
function
|
|
4172
|
+
function Rv(e, t = globalThis == null ? void 0 : globalThis.document) {
|
|
4169
4173
|
const r = Ve(e), n = d.useRef(!1);
|
|
4170
4174
|
return d.useEffect(() => {
|
|
4171
4175
|
const o = (a) => {
|
|
@@ -4553,7 +4557,7 @@ const Hv = async (e, t, r) => {
|
|
|
4553
4557
|
middlewareData: m
|
|
4554
4558
|
};
|
|
4555
4559
|
};
|
|
4556
|
-
async function
|
|
4560
|
+
async function Rr(e, t) {
|
|
4557
4561
|
var r;
|
|
4558
4562
|
t === void 0 && (t = {});
|
|
4559
4563
|
const {
|
|
@@ -4622,7 +4626,7 @@ const Kv = (e) => ({
|
|
|
4622
4626
|
}, m = va(o), b = ga(m), v = await i.getDimensions(u), x = m === "y", y = x ? "top" : "left", h = x ? "bottom" : "right", C = x ? "clientHeight" : "clientWidth", S = a.reference[b] + a.reference[m] - g[m] - a.floating[b], N = g[m] - a.reference[m], T = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(u));
|
|
4623
4627
|
let j = T ? T[C] : 0;
|
|
4624
4628
|
(!j || !await (i.isElement == null ? void 0 : i.isElement(T))) && (j = l.floating[C] || a.floating[b]);
|
|
4625
|
-
const
|
|
4629
|
+
const R = S / 2 - N / 2, W = j / 2 - v[b] / 2 - 1, U = vt(p[y], W), re = vt(p[h], W), te = U, Q = j - v[b] - re, V = j / 2 - v[b] / 2 + R, M = Go(te, V, Q), A = !c.arrow && lr(o) != null && V !== M && a.reference[b] / 2 - (V < te ? U : re) - v[b] / 2 < 0, O = A ? V < te ? V - te : V - Q : 0;
|
|
4626
4630
|
return {
|
|
4627
4631
|
[m]: g[m] + O,
|
|
4628
4632
|
data: {
|
|
@@ -4661,11 +4665,11 @@ const Kv = (e) => ({
|
|
|
4661
4665
|
return {};
|
|
4662
4666
|
const y = it(o), h = Xe(l), C = it(l) === l, S = await (c.isRTL == null ? void 0 : c.isRTL(u.floating)), N = g || (C || !v ? [pn(l)] : Bv(l)), T = b !== "none";
|
|
4663
4667
|
!g && T && N.push(...qv(l, v, b, S));
|
|
4664
|
-
const j = [l, ...N],
|
|
4668
|
+
const j = [l, ...N], R = await Rr(t, x), W = [];
|
|
4665
4669
|
let U = ((n = a.flip) == null ? void 0 : n.overflows) || [];
|
|
4666
|
-
if (f && W.push(
|
|
4670
|
+
if (f && W.push(R[y]), p) {
|
|
4667
4671
|
const V = Vv(o, i, S);
|
|
4668
|
-
W.push(
|
|
4672
|
+
W.push(R[V[0]], R[V[1]]);
|
|
4669
4673
|
}
|
|
4670
4674
|
if (U = [...U, {
|
|
4671
4675
|
placement: o,
|
|
@@ -4741,7 +4745,7 @@ const Xv = function(e) {
|
|
|
4741
4745
|
} = st(e, t);
|
|
4742
4746
|
switch (n) {
|
|
4743
4747
|
case "referenceHidden": {
|
|
4744
|
-
const a = await
|
|
4748
|
+
const a = await Rr(t, {
|
|
4745
4749
|
...o,
|
|
4746
4750
|
elementContext: "reference"
|
|
4747
4751
|
}), i = Ks(a, r.reference);
|
|
@@ -4753,7 +4757,7 @@ const Xv = function(e) {
|
|
|
4753
4757
|
};
|
|
4754
4758
|
}
|
|
4755
4759
|
case "escaped": {
|
|
4756
|
-
const a = await
|
|
4760
|
+
const a = await Rr(t, {
|
|
4757
4761
|
...o,
|
|
4758
4762
|
altBoundary: !0
|
|
4759
4763
|
}), i = Ks(a, r.floating);
|
|
@@ -4847,7 +4851,7 @@ const Jv = function(e) {
|
|
|
4847
4851
|
} = st(e, t), u = {
|
|
4848
4852
|
x: r,
|
|
4849
4853
|
y: n
|
|
4850
|
-
}, f = await
|
|
4854
|
+
}, f = await Rr(t, c), p = Xe(it(o)), g = ma(p);
|
|
4851
4855
|
let m = u[g], b = u[p];
|
|
4852
4856
|
if (a) {
|
|
4853
4857
|
const x = g === "y" ? "top" : "left", y = g === "y" ? "bottom" : "right", h = m + f[x], C = m - f[y];
|
|
@@ -4932,21 +4936,21 @@ const Jv = function(e) {
|
|
|
4932
4936
|
apply: c = () => {
|
|
4933
4937
|
},
|
|
4934
4938
|
...u
|
|
4935
|
-
} = st(e, t), f = await
|
|
4939
|
+
} = st(e, t), f = await Rr(t, u), p = it(o), g = lr(o), m = Xe(o) === "y", {
|
|
4936
4940
|
width: b,
|
|
4937
4941
|
height: v
|
|
4938
4942
|
} = a.floating;
|
|
4939
4943
|
let x, y;
|
|
4940
4944
|
p === "top" || p === "bottom" ? (x = p, y = g === (await (i.isRTL == null ? void 0 : i.isRTL(l.floating)) ? "start" : "end") ? "left" : "right") : (y = p, x = g === "end" ? "top" : "bottom");
|
|
4941
4945
|
const h = v - f.top - f.bottom, C = b - f.left - f.right, S = vt(v - f[x], h), N = vt(b - f[y], C), T = !t.middlewareData.shift;
|
|
4942
|
-
let j = S,
|
|
4943
|
-
if ((r = t.middlewareData.shift) != null && r.enabled.x && (
|
|
4946
|
+
let j = S, R = N;
|
|
4947
|
+
if ((r = t.middlewareData.shift) != null && r.enabled.x && (R = C), (n = t.middlewareData.shift) != null && n.enabled.y && (j = h), T && !g) {
|
|
4944
4948
|
const U = _e(f.left, 0), re = _e(f.right, 0), te = _e(f.top, 0), Q = _e(f.bottom, 0);
|
|
4945
|
-
m ?
|
|
4949
|
+
m ? R = b - 2 * (U !== 0 || re !== 0 ? U + re : _e(f.left, f.right)) : j = v - 2 * (te !== 0 || Q !== 0 ? te + Q : _e(f.top, f.bottom));
|
|
4946
4950
|
}
|
|
4947
4951
|
await c({
|
|
4948
4952
|
...t,
|
|
4949
|
-
availableWidth:
|
|
4953
|
+
availableWidth: R,
|
|
4950
4954
|
availableHeight: j
|
|
4951
4955
|
});
|
|
4952
4956
|
const W = await i.getDimensions(l.floating);
|
|
@@ -5348,7 +5352,7 @@ const Sh = async function(e) {
|
|
|
5348
5352
|
function Eh(e) {
|
|
5349
5353
|
return Ge(e).direction === "rtl";
|
|
5350
5354
|
}
|
|
5351
|
-
const
|
|
5355
|
+
const kh = {
|
|
5352
5356
|
convertOffsetParentRelativeRectToViewportRelativeRect: ph,
|
|
5353
5357
|
getDocumentElement: Qe,
|
|
5354
5358
|
getClippingRect: yh,
|
|
@@ -5363,7 +5367,7 @@ const Rh = {
|
|
|
5363
5367
|
function Sl(e, t) {
|
|
5364
5368
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
5365
5369
|
}
|
|
5366
|
-
function
|
|
5370
|
+
function Rh(e, t) {
|
|
5367
5371
|
let r = null, n;
|
|
5368
5372
|
const o = Qe(e);
|
|
5369
5373
|
function a() {
|
|
@@ -5423,7 +5427,7 @@ function Nh(e, t, r, n) {
|
|
|
5423
5427
|
passive: !0
|
|
5424
5428
|
}), a && y.addEventListener("resize", r);
|
|
5425
5429
|
});
|
|
5426
|
-
const p = u && l ?
|
|
5430
|
+
const p = u && l ? Rh(u, r) : null;
|
|
5427
5431
|
let g = -1, m = null;
|
|
5428
5432
|
i && (m = new ResizeObserver((y) => {
|
|
5429
5433
|
let [h] = y;
|
|
@@ -5447,7 +5451,7 @@ function Nh(e, t, r, n) {
|
|
|
5447
5451
|
}
|
|
5448
5452
|
const jh = Jv, Ph = Qv, Th = Yv, _h = th, Ah = Xv, ei = Kv, Ih = eh, Mh = (e, t, r) => {
|
|
5449
5453
|
const n = /* @__PURE__ */ new Map(), o = {
|
|
5450
|
-
platform:
|
|
5454
|
+
platform: kh,
|
|
5451
5455
|
...r
|
|
5452
5456
|
}, a = {
|
|
5453
5457
|
...o.platform,
|
|
@@ -5530,7 +5534,7 @@ function $h(e) {
|
|
|
5530
5534
|
E !== T.current && (T.current = E, v(E));
|
|
5531
5535
|
}, []), C = d.useCallback((E) => {
|
|
5532
5536
|
E !== j.current && (j.current = E, y(E));
|
|
5533
|
-
}, []), S = a || b, N = i || x, T = d.useRef(null), j = d.useRef(null),
|
|
5537
|
+
}, []), S = a || b, N = i || x, T = d.useRef(null), j = d.useRef(null), R = d.useRef(f), W = c != null, U = So(c), re = So(o), te = So(u), Q = d.useCallback(() => {
|
|
5534
5538
|
if (!T.current || !j.current)
|
|
5535
5539
|
return;
|
|
5536
5540
|
const E = {
|
|
@@ -5547,13 +5551,13 @@ function $h(e) {
|
|
|
5547
5551
|
// setting it to `true` when `open === false` (must be specified).
|
|
5548
5552
|
isPositioned: te.current !== !1
|
|
5549
5553
|
};
|
|
5550
|
-
V.current && !gn(
|
|
5554
|
+
V.current && !gn(R.current, B) && (R.current = B, Nn.flushSync(() => {
|
|
5551
5555
|
p(B);
|
|
5552
5556
|
}));
|
|
5553
5557
|
});
|
|
5554
5558
|
}, [g, t, r, re, te]);
|
|
5555
5559
|
an(() => {
|
|
5556
|
-
u === !1 &&
|
|
5560
|
+
u === !1 && R.current.isPositioned && (R.current.isPositioned = !1, p((E) => ({
|
|
5557
5561
|
...E,
|
|
5558
5562
|
isPositioned: !1
|
|
5559
5563
|
})));
|
|
@@ -5648,7 +5652,7 @@ const Lh = (e) => {
|
|
|
5648
5652
|
...Lh(e),
|
|
5649
5653
|
options: [e, t]
|
|
5650
5654
|
});
|
|
5651
|
-
var Uh = "Arrow",
|
|
5655
|
+
var Uh = "Arrow", kl = d.forwardRef((e, t) => {
|
|
5652
5656
|
const { children: r, width: n = 10, height: o = 5, ...a } = e;
|
|
5653
5657
|
return /* @__PURE__ */ s.jsx(
|
|
5654
5658
|
q.svg,
|
|
@@ -5663,8 +5667,8 @@ var Uh = "Arrow", Rl = d.forwardRef((e, t) => {
|
|
|
5663
5667
|
}
|
|
5664
5668
|
);
|
|
5665
5669
|
});
|
|
5666
|
-
|
|
5667
|
-
var Hh =
|
|
5670
|
+
kl.displayName = Uh;
|
|
5671
|
+
var Hh = kl;
|
|
5668
5672
|
function $n(e) {
|
|
5669
5673
|
const [t, r] = d.useState(void 0);
|
|
5670
5674
|
return Se(() => {
|
|
@@ -5687,7 +5691,7 @@ function $n(e) {
|
|
|
5687
5691
|
r(void 0);
|
|
5688
5692
|
}, [e]), t;
|
|
5689
5693
|
}
|
|
5690
|
-
var ya = "Popper", [
|
|
5694
|
+
var ya = "Popper", [Rl, bt] = Ce(ya), [Kh, Nl] = Rl(ya), jl = (e) => {
|
|
5691
5695
|
const { __scopePopper: t, children: r } = e, [n, o] = d.useState(null);
|
|
5692
5696
|
return /* @__PURE__ */ s.jsx(Kh, { scope: t, anchor: n, onAnchorChange: o, children: r });
|
|
5693
5697
|
};
|
|
@@ -5702,7 +5706,7 @@ var Pl = "PopperAnchor", Tl = d.forwardRef(
|
|
|
5702
5706
|
}
|
|
5703
5707
|
);
|
|
5704
5708
|
Tl.displayName = Pl;
|
|
5705
|
-
var wa = "PopperContent", [Yh, Xh] =
|
|
5709
|
+
var wa = "PopperContent", [Yh, Xh] = Rl(wa), _l = d.forwardRef(
|
|
5706
5710
|
(e, t) => {
|
|
5707
5711
|
var _, K, ee, oe, ce, ie;
|
|
5708
5712
|
const {
|
|
@@ -5720,7 +5724,7 @@ var wa = "PopperContent", [Yh, Xh] = kl(wa), _l = d.forwardRef(
|
|
|
5720
5724
|
updatePositionStrategy: m = "optimized",
|
|
5721
5725
|
onPlaced: b,
|
|
5722
5726
|
...v
|
|
5723
|
-
} = e, x = Nl(wa, r), [y, h] = d.useState(null), C = ae(t, (Ne) => h(Ne)), [S, N] = d.useState(null), T = $n(S), j = (T == null ? void 0 : T.width) ?? 0,
|
|
5727
|
+
} = e, x = Nl(wa, r), [y, h] = d.useState(null), C = ae(t, (Ne) => h(Ne)), [S, N] = d.useState(null), T = $n(S), j = (T == null ? void 0 : T.width) ?? 0, R = (T == null ? void 0 : T.height) ?? 0, W = n + (a !== "center" ? "-" + a : ""), U = typeof f == "number" ? f : { top: 0, right: 0, bottom: 0, left: 0, ...f }, re = Array.isArray(u) ? u : [u], te = re.length > 0, Q = {
|
|
5724
5728
|
padding: U,
|
|
5725
5729
|
boundary: re.filter(Jh),
|
|
5726
5730
|
// with `strategy: 'fixed'`, this is the only way to get it to respect boundaries
|
|
@@ -5736,7 +5740,7 @@ var wa = "PopperContent", [Yh, Xh] = kl(wa), _l = d.forwardRef(
|
|
|
5736
5740
|
reference: x.anchor
|
|
5737
5741
|
},
|
|
5738
5742
|
middleware: [
|
|
5739
|
-
Fh({ mainAxis: o +
|
|
5743
|
+
Fh({ mainAxis: o + R, alignmentAxis: i }),
|
|
5740
5744
|
c && Vh({
|
|
5741
5745
|
mainAxis: !0,
|
|
5742
5746
|
crossAxis: !1,
|
|
@@ -5752,7 +5756,7 @@ var wa = "PopperContent", [Yh, Xh] = kl(wa), _l = d.forwardRef(
|
|
|
5752
5756
|
}
|
|
5753
5757
|
}),
|
|
5754
5758
|
S && qh({ element: S, padding: l }),
|
|
5755
|
-
Qh({ arrowWidth: j, arrowHeight:
|
|
5759
|
+
Qh({ arrowWidth: j, arrowHeight: R }),
|
|
5756
5760
|
g && zh({ strategy: "referenceHidden", ...Q })
|
|
5757
5761
|
]
|
|
5758
5762
|
}), [I, B] = Ml(A), J = Ve(b);
|
|
@@ -6040,7 +6044,7 @@ function cx(e, t, r) {
|
|
|
6040
6044
|
return e.concat(a || Array.prototype.slice.call(t));
|
|
6041
6045
|
}
|
|
6042
6046
|
var sn = "right-scroll-bar-position", ln = "width-before-scroll-bar", dx = "with-scroll-bars-hidden", ux = "--removed-body-scroll-bar-size";
|
|
6043
|
-
function
|
|
6047
|
+
function ko(e, t) {
|
|
6044
6048
|
return typeof e == "function" ? e(t) : e && (e.current = t), e;
|
|
6045
6049
|
}
|
|
6046
6050
|
function fx(e, t) {
|
|
@@ -6068,7 +6072,7 @@ var px = typeof window < "u" ? d.useLayoutEffect : d.useEffect, ri = /* @__PURE_
|
|
|
6068
6072
|
function mx(e, t) {
|
|
6069
6073
|
var r = fx(null, function(n) {
|
|
6070
6074
|
return e.forEach(function(o) {
|
|
6071
|
-
return
|
|
6075
|
+
return ko(o, n);
|
|
6072
6076
|
});
|
|
6073
6077
|
});
|
|
6074
6078
|
return px(function() {
|
|
@@ -6076,9 +6080,9 @@ function mx(e, t) {
|
|
|
6076
6080
|
if (n) {
|
|
6077
6081
|
var o = new Set(n), a = new Set(e), i = r.current;
|
|
6078
6082
|
o.forEach(function(l) {
|
|
6079
|
-
a.has(l) ||
|
|
6083
|
+
a.has(l) || ko(l, null);
|
|
6080
6084
|
}), a.forEach(function(l) {
|
|
6081
|
-
o.has(l) ||
|
|
6085
|
+
o.has(l) || ko(l, i);
|
|
6082
6086
|
});
|
|
6083
6087
|
}
|
|
6084
6088
|
ri.set(r, e);
|
|
@@ -6160,12 +6164,12 @@ Fl.isSideCarExport = !0;
|
|
|
6160
6164
|
function xx(e, t) {
|
|
6161
6165
|
return e.useMedium(t), Fl;
|
|
6162
6166
|
}
|
|
6163
|
-
var Vl = hx(),
|
|
6167
|
+
var Vl = hx(), Ro = function() {
|
|
6164
6168
|
}, Gn = d.forwardRef(function(e, t) {
|
|
6165
6169
|
var r = d.useRef(null), n = d.useState({
|
|
6166
|
-
onScrollCapture:
|
|
6167
|
-
onWheelCapture:
|
|
6168
|
-
onTouchMoveCapture:
|
|
6170
|
+
onScrollCapture: Ro,
|
|
6171
|
+
onWheelCapture: Ro,
|
|
6172
|
+
onTouchMoveCapture: Ro
|
|
6169
6173
|
}), o = n[0], a = n[1], i = e.forwardProps, l = e.children, c = e.className, u = e.removeScrollBar, f = e.enabled, p = e.shards, g = e.sideCar, m = e.noRelative, b = e.noIsolation, v = e.inert, x = e.allowPinchZoom, y = e.as, h = y === void 0 ? "div" : y, C = e.gapMode, S = Ll(e, ["forwardProps", "children", "className", "removeScrollBar", "enabled", "shards", "sideCar", "noRelative", "noIsolation", "inert", "allowPinchZoom", "as", "gapMode"]), N = g, T = mx([r, t]), j = Ye(Ye({}, S), o);
|
|
6170
6174
|
return d.createElement(
|
|
6171
6175
|
d.Fragment,
|
|
@@ -6227,20 +6231,20 @@ var Sx = function() {
|
|
|
6227
6231
|
return e(n, o), null;
|
|
6228
6232
|
};
|
|
6229
6233
|
return t;
|
|
6230
|
-
},
|
|
6234
|
+
}, kx = {
|
|
6231
6235
|
left: 0,
|
|
6232
6236
|
top: 0,
|
|
6233
6237
|
right: 0,
|
|
6234
6238
|
gap: 0
|
|
6235
6239
|
}, No = function(e) {
|
|
6236
6240
|
return parseInt(e || "", 10) || 0;
|
|
6237
|
-
},
|
|
6241
|
+
}, Rx = function(e) {
|
|
6238
6242
|
var t = window.getComputedStyle(document.body), r = t[e === "padding" ? "paddingLeft" : "marginLeft"], n = t[e === "padding" ? "paddingTop" : "marginTop"], o = t[e === "padding" ? "paddingRight" : "marginRight"];
|
|
6239
6243
|
return [No(r), No(n), No(o)];
|
|
6240
6244
|
}, Nx = function(e) {
|
|
6241
6245
|
if (e === void 0 && (e = "margin"), typeof window > "u")
|
|
6242
|
-
return
|
|
6243
|
-
var t =
|
|
6246
|
+
return kx;
|
|
6247
|
+
var t = Rx(e), r = document.documentElement.clientWidth, n = window.innerWidth;
|
|
6244
6248
|
return {
|
|
6245
6249
|
left: t[0],
|
|
6246
6250
|
top: t[1],
|
|
@@ -6420,10 +6424,10 @@ function Gx(e) {
|
|
|
6420
6424
|
var y = tn(v), h = r.current, C = "deltaX" in v ? v.deltaX : h[0] - y[0], S = "deltaY" in v ? v.deltaY : h[1] - y[1], N, T = v.target, j = Math.abs(C) > Math.abs(S) ? "h" : "v";
|
|
6421
6425
|
if ("touches" in v && j === "h" && T.type === "range")
|
|
6422
6426
|
return !1;
|
|
6423
|
-
var
|
|
6424
|
-
if (!
|
|
6427
|
+
var R = oi(j, T);
|
|
6428
|
+
if (!R)
|
|
6425
6429
|
return !0;
|
|
6426
|
-
if (
|
|
6430
|
+
if (R ? N = j : (N = j === "v" ? "h" : "v", R = oi(j, T)), !R)
|
|
6427
6431
|
return !1;
|
|
6428
6432
|
if (!n.current && "changedTouches" in v && (C || S) && (n.current = N), !N)
|
|
6429
6433
|
return !0;
|
|
@@ -6489,7 +6493,7 @@ var Dr = d.forwardRef(function(e, t) {
|
|
|
6489
6493
|
return d.createElement(Gn, Ye({}, e, { ref: t, sideCar: zx }));
|
|
6490
6494
|
});
|
|
6491
6495
|
Dr.classNames = Gn.classNames;
|
|
6492
|
-
var qx = [" ", "Enter", "ArrowUp", "ArrowDown"], Ux = [" ", "Enter"], At = "Select", [Wn, zn, Hx] = _n(At), [ur,
|
|
6496
|
+
var qx = [" ", "Enter", "ArrowUp", "ArrowDown"], Ux = [" ", "Enter"], At = "Select", [Wn, zn, Hx] = _n(At), [ur, pR] = Ce(At, [
|
|
6493
6497
|
Hx,
|
|
6494
6498
|
bt
|
|
6495
6499
|
]), qn = bt(), [Kx, yt] = ur(At), [Yx, Xx] = ur(At), ql = (e) => {
|
|
@@ -6508,7 +6512,7 @@ var qx = [" ", "Enter", "ArrowUp", "ArrowDown"], Ux = [" ", "Enter"], At = "Sele
|
|
|
6508
6512
|
disabled: g,
|
|
6509
6513
|
required: m,
|
|
6510
6514
|
form: b
|
|
6511
|
-
} = e, v = qn(t), [x, y] = d.useState(null), [h, C] = d.useState(null), [S, N] = d.useState(!1), T = $t(u), [j,
|
|
6515
|
+
} = e, v = qn(t), [x, y] = d.useState(null), [h, C] = d.useState(null), [S, N] = d.useState(!1), T = $t(u), [j, R] = we({
|
|
6512
6516
|
prop: n,
|
|
6513
6517
|
defaultProp: o ?? !1,
|
|
6514
6518
|
onChange: a,
|
|
@@ -6534,7 +6538,7 @@ var qx = [" ", "Enter", "ArrowUp", "ArrowDown"], Ux = [" ", "Enter"], At = "Sele
|
|
|
6534
6538
|
value: W,
|
|
6535
6539
|
onValueChange: U,
|
|
6536
6540
|
open: j,
|
|
6537
|
-
onOpenChange:
|
|
6541
|
+
onOpenChange: R,
|
|
6538
6542
|
dir: T,
|
|
6539
6543
|
triggerPointerDownPosRef: re,
|
|
6540
6544
|
disabled: g,
|
|
@@ -6687,7 +6691,7 @@ var Fe = 10, [Ql, wt] = ur(It), Qx = "SelectContentImpl", eb = /* @__PURE__ */ g
|
|
|
6687
6691
|
avoidCollisions: x,
|
|
6688
6692
|
//
|
|
6689
6693
|
...y
|
|
6690
|
-
} = e, h = yt(It, r), [C, S] = d.useState(null), [N, T] = d.useState(null), j = ae(t, (_) => S(_)), [
|
|
6694
|
+
} = e, h = yt(It, r), [C, S] = d.useState(null), [N, T] = d.useState(null), j = ae(t, (_) => S(_)), [R, W] = d.useState(null), [U, re] = d.useState(
|
|
6691
6695
|
null
|
|
6692
6696
|
), te = zn(r), [Q, V] = d.useState(!1), M = d.useRef(!1);
|
|
6693
6697
|
d.useEffect(() => {
|
|
@@ -6701,8 +6705,8 @@ var Fe = 10, [Ql, wt] = ur(It), Qx = "SelectContentImpl", eb = /* @__PURE__ */ g
|
|
|
6701
6705
|
},
|
|
6702
6706
|
[te, N]
|
|
6703
6707
|
), O = d.useCallback(
|
|
6704
|
-
() => A([
|
|
6705
|
-
[A,
|
|
6708
|
+
() => A([R, C]),
|
|
6709
|
+
[A, R, C]
|
|
6706
6710
|
);
|
|
6707
6711
|
d.useEffect(() => {
|
|
6708
6712
|
Q && O();
|
|
@@ -6765,7 +6769,7 @@ var Fe = 10, [Ql, wt] = ur(It), Qx = "SelectContentImpl", eb = /* @__PURE__ */ g
|
|
|
6765
6769
|
viewport: N,
|
|
6766
6770
|
onViewportChange: T,
|
|
6767
6771
|
itemRefCallback: P,
|
|
6768
|
-
selectedItem:
|
|
6772
|
+
selectedItem: R,
|
|
6769
6773
|
onItemLeave: G,
|
|
6770
6774
|
itemTextRefCallback: Z,
|
|
6771
6775
|
focusSelectedItem: O,
|
|
@@ -6839,9 +6843,9 @@ ec.displayName = Qx;
|
|
|
6839
6843
|
var tb = "SelectItemAlignedPosition", tc = d.forwardRef((e, t) => {
|
|
6840
6844
|
const { __scopeSelect: r, onPlaced: n, ...o } = e, a = yt(It, r), i = wt(It, r), [l, c] = d.useState(null), [u, f] = d.useState(null), p = ae(t, (j) => f(j)), g = zn(r), m = d.useRef(!1), b = d.useRef(!0), { viewport: v, selectedItem: x, selectedItemText: y, focusSelectedItem: h } = i, C = d.useCallback(() => {
|
|
6841
6845
|
if (a.trigger && a.valueNode && l && u && v && x && y) {
|
|
6842
|
-
const j = a.trigger.getBoundingClientRect(),
|
|
6846
|
+
const j = a.trigger.getBoundingClientRect(), R = u.getBoundingClientRect(), W = a.valueNode.getBoundingClientRect(), U = y.getBoundingClientRect();
|
|
6843
6847
|
if (a.dir !== "rtl") {
|
|
6844
|
-
const ce = U.left -
|
|
6848
|
+
const ce = U.left - R.left, ie = W.left - ce, Ne = j.left - ie, Oe = j.width + Ne, Ue = Math.max(Oe, R.width), Le = window.innerWidth - Fe, ct = Ds(ie, [
|
|
6845
6849
|
Fe,
|
|
6846
6850
|
// Prevents the content from going off the starting edge of the
|
|
6847
6851
|
// viewport. It may still go off the ending edge, but this can be
|
|
@@ -6852,7 +6856,7 @@ var tb = "SelectItemAlignedPosition", tc = d.forwardRef((e, t) => {
|
|
|
6852
6856
|
]);
|
|
6853
6857
|
l.style.minWidth = Oe + "px", l.style.left = ct + "px";
|
|
6854
6858
|
} else {
|
|
6855
|
-
const ce =
|
|
6859
|
+
const ce = R.right - U.right, ie = window.innerWidth - W.right - ce, Ne = window.innerWidth - j.right - ie, Oe = j.width + Ne, Ue = Math.max(Oe, R.width), Le = window.innerWidth - Fe, ct = Ds(ie, [
|
|
6856
6860
|
Fe,
|
|
6857
6861
|
Math.max(Fe, Le - Ue)
|
|
6858
6862
|
]);
|
|
@@ -7293,8 +7297,8 @@ function bc(e, t, r) {
|
|
|
7293
7297
|
function db(e, t) {
|
|
7294
7298
|
return e.map((r, n) => e[(t + n) % e.length]);
|
|
7295
7299
|
}
|
|
7296
|
-
var ub = ql, yc = Hl, fb = Yl, pb = Xl, mb = Zl, wc = Jl, gb = rc, vb = oc, Cc = sc, Sc = lc, hb = cc, xb = uc, Ec = fc,
|
|
7297
|
-
const
|
|
7300
|
+
var ub = ql, yc = Hl, fb = Yl, pb = Xl, mb = Zl, wc = Jl, gb = rc, vb = oc, Cc = sc, Sc = lc, hb = cc, xb = uc, Ec = fc, kc = pc, Rc = gc;
|
|
7301
|
+
const mR = ub, gR = vb, vR = fb, bb = d.forwardRef(({ className: e, children: t, readOnly: r, ...n }, o) => {
|
|
7298
7302
|
const a = (i) => {
|
|
7299
7303
|
r && i.preventDefault();
|
|
7300
7304
|
};
|
|
@@ -7306,8 +7310,8 @@ const mk = ub, gk = vb, vk = fb, bb = d.forwardRef(({ className: e, children: t,
|
|
|
7306
7310
|
disabled: n.disabled,
|
|
7307
7311
|
onPointerDown: n.disabled ? n.onPointerDown : a,
|
|
7308
7312
|
tabIndex: r ? 0 : void 0,
|
|
7309
|
-
className:
|
|
7310
|
-
|
|
7313
|
+
className: k(
|
|
7314
|
+
k(
|
|
7311
7315
|
"qodo qodo-select-trigger flex h-9 w-full min-w-0 items-center justify-between",
|
|
7312
7316
|
"rounded-md border bg-purple-muted-700 border-purple-muted-500",
|
|
7313
7317
|
"text-sm data-[placeholder]:text-muted-foreground [&:not([data-placeholder])]:text-purple-muted-300 md:text-sm selection:bg-primary selection:text-primary-foreground",
|
|
@@ -7332,7 +7336,7 @@ const Nc = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
7332
7336
|
Ec,
|
|
7333
7337
|
{
|
|
7334
7338
|
ref: r,
|
|
7335
|
-
className:
|
|
7339
|
+
className: k(
|
|
7336
7340
|
"qodo qodo-select-scroll-up-button flex cursor-default items-center justify-center py-1",
|
|
7337
7341
|
e
|
|
7338
7342
|
),
|
|
@@ -7342,10 +7346,10 @@ const Nc = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
7342
7346
|
));
|
|
7343
7347
|
Nc.displayName = Ec.displayName;
|
|
7344
7348
|
const jc = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
7345
|
-
|
|
7349
|
+
kc,
|
|
7346
7350
|
{
|
|
7347
7351
|
ref: r,
|
|
7348
|
-
className:
|
|
7352
|
+
className: k(
|
|
7349
7353
|
"qodo qodo-select-scroll-down-button flex cursor-default items-center justify-center py-1",
|
|
7350
7354
|
e
|
|
7351
7355
|
),
|
|
@@ -7353,13 +7357,13 @@ const jc = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
7353
7357
|
children: /* @__PURE__ */ s.jsx(jn, { className: "h-4 w-4" })
|
|
7354
7358
|
}
|
|
7355
7359
|
));
|
|
7356
|
-
jc.displayName =
|
|
7360
|
+
jc.displayName = kc.displayName;
|
|
7357
7361
|
const yb = d.forwardRef(
|
|
7358
7362
|
({ className: e, children: t, position: r = "popper", container: n = null, ...o }, a) => /* @__PURE__ */ s.jsx(mb, { container: n, children: /* @__PURE__ */ s.jsxs(
|
|
7359
7363
|
wc,
|
|
7360
7364
|
{
|
|
7361
7365
|
ref: a,
|
|
7362
|
-
className:
|
|
7366
|
+
className: k(
|
|
7363
7367
|
"qodo qodo-select-content relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border bg-purple-muted-600 border-purple-muted-500 text-purple-muted-300 shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
7364
7368
|
r === "popper" && "data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",
|
|
7365
7369
|
e
|
|
@@ -7371,7 +7375,7 @@ const yb = d.forwardRef(
|
|
|
7371
7375
|
/* @__PURE__ */ s.jsx(
|
|
7372
7376
|
gb,
|
|
7373
7377
|
{
|
|
7374
|
-
className:
|
|
7378
|
+
className: k(
|
|
7375
7379
|
"p-1",
|
|
7376
7380
|
r === "popper" && "h-[var(--radix-select-trigger-height)] w-[var(--radix-select-trigger-width)]"
|
|
7377
7381
|
),
|
|
@@ -7388,7 +7392,7 @@ const wb = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
7388
7392
|
Cc,
|
|
7389
7393
|
{
|
|
7390
7394
|
ref: r,
|
|
7391
|
-
className:
|
|
7395
|
+
className: k(
|
|
7392
7396
|
"qodo qodo-select-label py-1.5 pl-8 pr-2 text-sm font-semibold",
|
|
7393
7397
|
e
|
|
7394
7398
|
),
|
|
@@ -7401,8 +7405,8 @@ const Cb = d.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
|
|
|
7401
7405
|
{
|
|
7402
7406
|
ref: n,
|
|
7403
7407
|
title: r.value,
|
|
7404
|
-
className:
|
|
7405
|
-
|
|
7408
|
+
className: k(
|
|
7409
|
+
k(
|
|
7406
7410
|
"qodo qodo-select-item relative w-full cursor-default select-none rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none",
|
|
7407
7411
|
"focus:bg-purple-muted-500 focus:text-purple-100 text-purple-100",
|
|
7408
7412
|
"data-[disabled]:pointer-events-none data-[disabled]:opacity-50",
|
|
@@ -7419,23 +7423,23 @@ const Cb = d.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
|
|
|
7419
7423
|
));
|
|
7420
7424
|
Cb.displayName = Sc.displayName;
|
|
7421
7425
|
const Sb = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
7422
|
-
|
|
7426
|
+
Rc,
|
|
7423
7427
|
{
|
|
7424
7428
|
ref: r,
|
|
7425
|
-
className:
|
|
7429
|
+
className: k(
|
|
7426
7430
|
"qodo qodo-select-separator -mx-1 my-1 h-px bg-muted",
|
|
7427
7431
|
e
|
|
7428
7432
|
),
|
|
7429
7433
|
...t
|
|
7430
7434
|
}
|
|
7431
7435
|
));
|
|
7432
|
-
Sb.displayName =
|
|
7433
|
-
var ii = 1, Eb = 0.9,
|
|
7436
|
+
Sb.displayName = Rc.displayName;
|
|
7437
|
+
var ii = 1, Eb = 0.9, kb = 0.8, Rb = 0.17, jo = 0.1, Po = 0.999, Nb = 0.9999, jb = 0.99, Pb = /[\\\/_+.#"@\[\(\{&]/, Tb = /[\\\/_+.#"@\[\(\{&]/g, _b = /[\s-]/, Pc = /[\s-]/g;
|
|
7434
7438
|
function Zo(e, t, r, n, o, a, i) {
|
|
7435
7439
|
if (a === t.length) return o === e.length ? ii : jb;
|
|
7436
7440
|
var l = `${o},${a}`;
|
|
7437
7441
|
if (i[l] !== void 0) return i[l];
|
|
7438
|
-
for (var c = n.charAt(a), u = r.indexOf(c, o), f = 0, p, g, m, b; u >= 0; ) p = Zo(e, t, r, n, u + 1, a + 1, i), p > f && (u === o ? p *= ii : Pb.test(e.charAt(u - 1)) ? (p *=
|
|
7442
|
+
for (var c = n.charAt(a), u = r.indexOf(c, o), f = 0, p, g, m, b; u >= 0; ) p = Zo(e, t, r, n, u + 1, a + 1, i), p > f && (u === o ? p *= ii : Pb.test(e.charAt(u - 1)) ? (p *= kb, m = e.slice(o, u - 1).match(Tb), m && o > 0 && (p *= Math.pow(Po, m.length))) : _b.test(e.charAt(u - 1)) ? (p *= Eb, b = e.slice(o, u - 1).match(Pc), b && o > 0 && (p *= Math.pow(Po, b.length))) : (p *= Rb, o > 0 && (p *= Math.pow(Po, u - o))), e.charAt(u) !== t.charAt(a) && (p *= Nb)), (p < jo && r.charAt(u - 1) === n.charAt(a + 1) || n.charAt(a + 1) === n.charAt(a) && r.charAt(u - 1) !== n.charAt(a)) && (g = Zo(e, t, r, n, u + 1, a + 2, i), g * jo > p && (p = g * jo)), p > f && (f = p), u = r.indexOf(c, u + 1);
|
|
7439
7443
|
return i[l] = f, f;
|
|
7440
7444
|
}
|
|
7441
7445
|
function li(e) {
|
|
@@ -7447,11 +7451,11 @@ function Ab(e, t, r) {
|
|
|
7447
7451
|
function Ib(e, t) {
|
|
7448
7452
|
return d.useReducer((r, n) => t[r][n] ?? r, e);
|
|
7449
7453
|
}
|
|
7450
|
-
var
|
|
7454
|
+
var ke = (e) => {
|
|
7451
7455
|
const { present: t, children: r } = e, n = Mb(t), o = typeof r == "function" ? r({ present: n.isPresent }) : d.Children.only(r), a = ae(n.ref, Ob(o));
|
|
7452
7456
|
return typeof r == "function" || n.isPresent ? d.cloneElement(o, { ref: a }) : null;
|
|
7453
7457
|
};
|
|
7454
|
-
|
|
7458
|
+
ke.displayName = "Presence";
|
|
7455
7459
|
function Mb(e) {
|
|
7456
7460
|
const [t, r] = d.useState(), n = d.useRef(null), o = d.useRef(e), a = d.useRef("none"), i = e ? "mounted" : "unmounted", [l, c] = Ib(i, {
|
|
7457
7461
|
mounted: {
|
|
@@ -7509,7 +7513,7 @@ function Ob(e) {
|
|
|
7509
7513
|
let t = (n = Object.getOwnPropertyDescriptor(e.props, "ref")) == null ? void 0 : n.get, r = t && "isReactWarning" in t && t.isReactWarning;
|
|
7510
7514
|
return r ? e.ref : (t = (o = Object.getOwnPropertyDescriptor(e, "ref")) == null ? void 0 : o.get, r = t && "isReactWarning" in t && t.isReactWarning, r ? e.props.ref : e.props.ref || e.ref);
|
|
7511
7515
|
}
|
|
7512
|
-
var Un = "Dialog", [Tc,
|
|
7516
|
+
var Un = "Dialog", [Tc, hR] = Ce(Un), [Db, We] = Tc(Un), _c = (e) => {
|
|
7513
7517
|
const {
|
|
7514
7518
|
__scopeDialog: t,
|
|
7515
7519
|
children: r,
|
|
@@ -7551,7 +7555,7 @@ var Ac = "DialogTrigger", Ic = d.forwardRef(
|
|
|
7551
7555
|
"aria-haspopup": "dialog",
|
|
7552
7556
|
"aria-expanded": o.open,
|
|
7553
7557
|
"aria-controls": o.contentId,
|
|
7554
|
-
"data-state":
|
|
7558
|
+
"data-state": ka(o.open),
|
|
7555
7559
|
...n,
|
|
7556
7560
|
ref: a,
|
|
7557
7561
|
onClick: L(e.onClick, o.onOpenToggle)
|
|
@@ -7564,13 +7568,13 @@ var Sa = "DialogPortal", [$b, Mc] = Tc(Sa, {
|
|
|
7564
7568
|
forceMount: void 0
|
|
7565
7569
|
}), Oc = (e) => {
|
|
7566
7570
|
const { __scopeDialog: t, forceMount: r, children: n, container: o } = e, a = We(Sa, t);
|
|
7567
|
-
return /* @__PURE__ */ s.jsx($b, { scope: t, forceMount: r, children: d.Children.map(n, (i) => /* @__PURE__ */ s.jsx(
|
|
7571
|
+
return /* @__PURE__ */ s.jsx($b, { scope: t, forceMount: r, children: d.Children.map(n, (i) => /* @__PURE__ */ s.jsx(ke, { present: r || a.open, children: /* @__PURE__ */ s.jsx(dr, { asChild: !0, container: o, children: i }) })) });
|
|
7568
7572
|
};
|
|
7569
7573
|
Oc.displayName = Sa;
|
|
7570
7574
|
var hn = "DialogOverlay", Dc = d.forwardRef(
|
|
7571
7575
|
(e, t) => {
|
|
7572
7576
|
const r = Mc(hn, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, a = We(hn, e.__scopeDialog);
|
|
7573
|
-
return a.modal ? /* @__PURE__ */ s.jsx(
|
|
7577
|
+
return a.modal ? /* @__PURE__ */ s.jsx(ke, { present: n || a.open, children: /* @__PURE__ */ s.jsx(Fb, { ...o, ref: t }) }) : null;
|
|
7574
7578
|
}
|
|
7575
7579
|
);
|
|
7576
7580
|
Dc.displayName = hn;
|
|
@@ -7583,7 +7587,7 @@ var Lb = /* @__PURE__ */ gt("DialogOverlay.RemoveScroll"), Fb = d.forwardRef(
|
|
|
7583
7587
|
/* @__PURE__ */ s.jsx(Dr, { as: Lb, allowPinchZoom: !0, shards: [o.contentRef], children: /* @__PURE__ */ s.jsx(
|
|
7584
7588
|
q.div,
|
|
7585
7589
|
{
|
|
7586
|
-
"data-state":
|
|
7590
|
+
"data-state": ka(o.open),
|
|
7587
7591
|
...n,
|
|
7588
7592
|
ref: t,
|
|
7589
7593
|
style: { pointerEvents: "auto", ...n.style }
|
|
@@ -7594,7 +7598,7 @@ var Lb = /* @__PURE__ */ gt("DialogOverlay.RemoveScroll"), Fb = d.forwardRef(
|
|
|
7594
7598
|
), Mt = "DialogContent", $c = d.forwardRef(
|
|
7595
7599
|
(e, t) => {
|
|
7596
7600
|
const r = Mc(Mt, e.__scopeDialog), { forceMount: n = r.forceMount, ...o } = e, a = We(Mt, e.__scopeDialog);
|
|
7597
|
-
return /* @__PURE__ */ s.jsx(
|
|
7601
|
+
return /* @__PURE__ */ s.jsx(ke, { present: n || a.open, children: a.modal ? /* @__PURE__ */ s.jsx(Vb, { ...o, ref: t }) : /* @__PURE__ */ s.jsx(Bb, { ...o, ref: t }) });
|
|
7598
7602
|
}
|
|
7599
7603
|
);
|
|
7600
7604
|
$c.displayName = Mt;
|
|
@@ -7668,7 +7672,7 @@ var Vb = d.forwardRef(
|
|
|
7668
7672
|
id: l.contentId,
|
|
7669
7673
|
"aria-describedby": l.descriptionId,
|
|
7670
7674
|
"aria-labelledby": l.titleId,
|
|
7671
|
-
"data-state":
|
|
7675
|
+
"data-state": ka(l.open),
|
|
7672
7676
|
...i,
|
|
7673
7677
|
ref: u,
|
|
7674
7678
|
onDismiss: () => l.onOpenChange(!1)
|
|
@@ -7711,10 +7715,10 @@ var Gc = "DialogClose", Wc = d.forwardRef(
|
|
|
7711
7715
|
}
|
|
7712
7716
|
);
|
|
7713
7717
|
Wc.displayName = Gc;
|
|
7714
|
-
function
|
|
7718
|
+
function ka(e) {
|
|
7715
7719
|
return e ? "open" : "closed";
|
|
7716
7720
|
}
|
|
7717
|
-
var zc = "DialogTitleWarning", [
|
|
7721
|
+
var zc = "DialogTitleWarning", [xR, qc] = cv(zc, {
|
|
7718
7722
|
contentName: Mt,
|
|
7719
7723
|
titleName: Ea,
|
|
7720
7724
|
docsSlug: "dialog"
|
|
@@ -7734,7 +7738,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7734
7738
|
const o = (a = e.current) == null ? void 0 : a.getAttribute("aria-describedby");
|
|
7735
7739
|
t && o && (document.getElementById(t) || console.warn(n));
|
|
7736
7740
|
}, [n, e, t]), null;
|
|
7737
|
-
}, Uc = _c, qb = Ic, Hc = Oc, Kc = Dc, Yc = $c, Ub = Fc, Hb = Bc, Xc = Wc, hr = '[cmdk-group=""]', To = '[cmdk-group-items=""]', Kb = '[cmdk-group-heading=""]', Zc = '[cmdk-item=""]', ci = `${Zc}:not([aria-disabled="true"])`, Jo = "cmdk-item-select", Yt = "data-value", Yb = (e, t, r) => Ab(e, t, r), Jc = d.createContext(void 0), $r = () => d.useContext(Jc), Qc = d.createContext(void 0),
|
|
7741
|
+
}, Uc = _c, qb = Ic, Hc = Oc, Kc = Dc, Yc = $c, Ub = Fc, Hb = Bc, Xc = Wc, hr = '[cmdk-group=""]', To = '[cmdk-group-items=""]', Kb = '[cmdk-group-heading=""]', Zc = '[cmdk-item=""]', ci = `${Zc}:not([aria-disabled="true"])`, Jo = "cmdk-item-select", Yt = "data-value", Yb = (e, t, r) => Ab(e, t, r), Jc = d.createContext(void 0), $r = () => d.useContext(Jc), Qc = d.createContext(void 0), Ra = () => d.useContext(Qc), ed = d.createContext(void 0), td = d.forwardRef((e, t) => {
|
|
7738
7742
|
let r = Xt(() => {
|
|
7739
7743
|
var P, G;
|
|
7740
7744
|
return { search: "", value: (G = (P = e.value) != null ? P : e.defaultValue) != null ? G : "", selectedItemId: void 0, filtered: { count: 0, items: /* @__PURE__ */ new Map(), groups: /* @__PURE__ */ new Set() } };
|
|
@@ -7769,7 +7773,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7769
7773
|
}
|
|
7770
7774
|
}, emit: () => {
|
|
7771
7775
|
i.current.forEach((P) => P());
|
|
7772
|
-
} }), []),
|
|
7776
|
+
} }), []), R = d.useMemo(() => ({ value: (P, G, Z) => {
|
|
7773
7777
|
var z;
|
|
7774
7778
|
G !== ((z = a.current.get(P)) == null ? void 0 : z.value) && (a.current.set(P, { value: G, keywords: Z }), r.current.filtered.items.set(P, W(G, Z)), T(2, () => {
|
|
7775
7779
|
U(), j.emit();
|
|
@@ -7908,14 +7912,14 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7908
7912
|
}
|
|
7909
7913
|
}
|
|
7910
7914
|
}
|
|
7911
|
-
} }, d.createElement("label", { "cmdk-label": "", htmlFor:
|
|
7915
|
+
} }, d.createElement("label", { "cmdk-label": "", htmlFor: R.inputId, id: R.labelId, style: ly }, c), Hn(e, (P) => d.createElement(Qc.Provider, { value: j }, d.createElement(Jc.Provider, { value: R }, P))));
|
|
7912
7916
|
}), Xb = d.forwardRef((e, t) => {
|
|
7913
7917
|
var r, n;
|
|
7914
7918
|
let o = ge(), a = d.useRef(null), i = d.useContext(ed), l = $r(), c = rd(e), u = (n = (r = c.current) == null ? void 0 : r.forceMount) != null ? n : i == null ? void 0 : i.forceMount;
|
|
7915
7919
|
Ot(() => {
|
|
7916
7920
|
if (!u) return l.item(o, i == null ? void 0 : i.id);
|
|
7917
7921
|
}, [u]);
|
|
7918
|
-
let f = nd(o, a, [e.value, e.children, a], e.keywords), p =
|
|
7922
|
+
let f = nd(o, a, [e.value, e.children, a], e.keywords), p = Ra(), g = xt((T) => T.value && T.value === f.current), m = xt((T) => u || l.filter() === !1 ? !0 : T.search ? T.filtered.items.get(o) > 0 : !0);
|
|
7919
7923
|
d.useEffect(() => {
|
|
7920
7924
|
let T = a.current;
|
|
7921
7925
|
if (!(!T || e.disabled)) return T.addEventListener(Jo, b), () => T.removeEventListener(Jo, b);
|
|
@@ -7939,7 +7943,7 @@ For more information, see https://radix-ui.com/primitives/docs/components/${t.do
|
|
|
7939
7943
|
let { alwaysRender: r, ...n } = e, o = d.useRef(null), a = xt((i) => !i.search);
|
|
7940
7944
|
return !r && !a ? null : d.createElement(q.div, { ref: at(o, t), ...n, "cmdk-separator": "", role: "separator" });
|
|
7941
7945
|
}), Qb = d.forwardRef((e, t) => {
|
|
7942
|
-
let { onValueChange: r, ...n } = e, o = e.value != null, a =
|
|
7946
|
+
let { onValueChange: r, ...n } = e, o = e.value != null, a = Ra(), i = xt((u) => u.search), l = xt((u) => u.selectedItemId), c = $r();
|
|
7943
7947
|
return d.useEffect(() => {
|
|
7944
7948
|
e.value != null && a.setState("search", e.value);
|
|
7945
7949
|
}, [e.value]), d.createElement(q.input, { ref: t, ...n, "cmdk-input": "", autoComplete: "off", autoCorrect: "off", spellCheck: !1, "aria-autocomplete": "list", role: "combobox", "aria-expanded": !0, "aria-controls": c.listId, "aria-labelledby": c.labelId, "aria-activedescendant": l, id: c.inputId, type: "text", value: o ? e.value : i, onChange: (u) => {
|
|
@@ -7993,7 +7997,7 @@ function Xt(e) {
|
|
|
7993
7997
|
return t.current === void 0 && (t.current = e()), t;
|
|
7994
7998
|
}
|
|
7995
7999
|
function xt(e) {
|
|
7996
|
-
let t =
|
|
8000
|
+
let t = Ra(), r = () => e(t.snapshot());
|
|
7997
8001
|
return d.useSyncExternalStore(t.subscribe, r, r);
|
|
7998
8002
|
}
|
|
7999
8003
|
function nd(e, t, r, n = []) {
|
|
@@ -8026,12 +8030,12 @@ function Hn({ asChild: e, children: t }, r) {
|
|
|
8026
8030
|
return e && d.isValidElement(t) ? d.cloneElement(iy(t), { ref: t.ref }, r(t.props.children)) : r(t);
|
|
8027
8031
|
}
|
|
8028
8032
|
var ly = { position: "absolute", width: "1px", height: "1px", padding: "0", margin: "-1px", overflow: "hidden", clip: "rect(0, 0, 0, 0)", whiteSpace: "nowrap", borderWidth: "0" };
|
|
8029
|
-
function
|
|
8033
|
+
function bR({
|
|
8030
8034
|
...e
|
|
8031
8035
|
}) {
|
|
8032
8036
|
return /* @__PURE__ */ s.jsx(Uc, { "data-slot": "dialog", ...e });
|
|
8033
8037
|
}
|
|
8034
|
-
function
|
|
8038
|
+
function yR({
|
|
8035
8039
|
...e
|
|
8036
8040
|
}) {
|
|
8037
8041
|
return /* @__PURE__ */ s.jsx(qb, { "data-slot": "dialog-trigger", ...e });
|
|
@@ -8041,7 +8045,7 @@ function cy({
|
|
|
8041
8045
|
}) {
|
|
8042
8046
|
return /* @__PURE__ */ s.jsx(Hc, { "data-slot": "dialog-portal", ...e });
|
|
8043
8047
|
}
|
|
8044
|
-
function
|
|
8048
|
+
function wR({
|
|
8045
8049
|
...e
|
|
8046
8050
|
}) {
|
|
8047
8051
|
return /* @__PURE__ */ s.jsx(Xc, { "data-slot": "dialog-close", ...e });
|
|
@@ -8054,7 +8058,7 @@ function dy({
|
|
|
8054
8058
|
Kc,
|
|
8055
8059
|
{
|
|
8056
8060
|
"data-slot": "dialog-overlay",
|
|
8057
|
-
className:
|
|
8061
|
+
className: k(
|
|
8058
8062
|
"qodo qodo-dialog-overlay,",
|
|
8059
8063
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/80",
|
|
8060
8064
|
e
|
|
@@ -8063,7 +8067,7 @@ function dy({
|
|
|
8063
8067
|
}
|
|
8064
8068
|
);
|
|
8065
8069
|
}
|
|
8066
|
-
function
|
|
8070
|
+
function CR({
|
|
8067
8071
|
className: e,
|
|
8068
8072
|
children: t,
|
|
8069
8073
|
showCloseButton: r = !0,
|
|
@@ -8075,7 +8079,7 @@ function Ck({
|
|
|
8075
8079
|
Yc,
|
|
8076
8080
|
{
|
|
8077
8081
|
"data-slot": "dialog-content",
|
|
8078
|
-
className:
|
|
8082
|
+
className: k(
|
|
8079
8083
|
"qodo qodo-dialog-content bg-background data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 sm:max-w-lg dark:bg-background dark:border-border",
|
|
8080
8084
|
e
|
|
8081
8085
|
),
|
|
@@ -8098,12 +8102,12 @@ function Ck({
|
|
|
8098
8102
|
)
|
|
8099
8103
|
] });
|
|
8100
8104
|
}
|
|
8101
|
-
function
|
|
8105
|
+
function SR({ className: e, ...t }) {
|
|
8102
8106
|
return /* @__PURE__ */ s.jsx(
|
|
8103
8107
|
"div",
|
|
8104
8108
|
{
|
|
8105
8109
|
"data-slot": "dialog-header",
|
|
8106
|
-
className:
|
|
8110
|
+
className: k(
|
|
8107
8111
|
"qodo qodo-dialog-header flex flex-col gap-2 text-center sm:text-left",
|
|
8108
8112
|
e
|
|
8109
8113
|
),
|
|
@@ -8111,12 +8115,12 @@ function Sk({ className: e, ...t }) {
|
|
|
8111
8115
|
}
|
|
8112
8116
|
);
|
|
8113
8117
|
}
|
|
8114
|
-
function
|
|
8118
|
+
function ER({ className: e, ...t }) {
|
|
8115
8119
|
return /* @__PURE__ */ s.jsx(
|
|
8116
8120
|
"div",
|
|
8117
8121
|
{
|
|
8118
8122
|
"data-slot": "dialog-footer",
|
|
8119
|
-
className:
|
|
8123
|
+
className: k(
|
|
8120
8124
|
"qodo qodo-dialog-footer flex flex-col-reverse gap-2 sm:flex-row sm:justify-end",
|
|
8121
8125
|
e
|
|
8122
8126
|
),
|
|
@@ -8124,7 +8128,7 @@ function Ek({ className: e, ...t }) {
|
|
|
8124
8128
|
}
|
|
8125
8129
|
);
|
|
8126
8130
|
}
|
|
8127
|
-
function
|
|
8131
|
+
function kR({
|
|
8128
8132
|
className: e,
|
|
8129
8133
|
...t
|
|
8130
8134
|
}) {
|
|
@@ -8132,7 +8136,7 @@ function Rk({
|
|
|
8132
8136
|
Ub,
|
|
8133
8137
|
{
|
|
8134
8138
|
"data-slot": "dialog-title",
|
|
8135
|
-
className:
|
|
8139
|
+
className: k(
|
|
8136
8140
|
"qodo qodo-dialog-title text-lg leading-none font-semibold",
|
|
8137
8141
|
e
|
|
8138
8142
|
),
|
|
@@ -8140,7 +8144,7 @@ function Rk({
|
|
|
8140
8144
|
}
|
|
8141
8145
|
);
|
|
8142
8146
|
}
|
|
8143
|
-
function
|
|
8147
|
+
function RR({
|
|
8144
8148
|
className: e,
|
|
8145
8149
|
...t
|
|
8146
8150
|
}) {
|
|
@@ -8148,7 +8152,7 @@ function kk({
|
|
|
8148
8152
|
Hb,
|
|
8149
8153
|
{
|
|
8150
8154
|
"data-slot": "dialog-description",
|
|
8151
|
-
className:
|
|
8155
|
+
className: k(
|
|
8152
8156
|
"qodo qodo-dialog-description text-muted-foreground text-sm dark:text-muted-foreground",
|
|
8153
8157
|
e
|
|
8154
8158
|
),
|
|
@@ -8164,7 +8168,7 @@ function od({
|
|
|
8164
8168
|
Lt,
|
|
8165
8169
|
{
|
|
8166
8170
|
"data-slot": "command",
|
|
8167
|
-
className:
|
|
8171
|
+
className: k(
|
|
8168
8172
|
"qodo qodo-command bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",
|
|
8169
8173
|
e
|
|
8170
8174
|
),
|
|
@@ -8180,7 +8184,7 @@ function ad({
|
|
|
8180
8184
|
"div",
|
|
8181
8185
|
{
|
|
8182
8186
|
"data-slot": "command-input-wrapper",
|
|
8183
|
-
className:
|
|
8187
|
+
className: k(
|
|
8184
8188
|
"qodo qodo-command-input-wrapper",
|
|
8185
8189
|
"flex h-9 items-center gap-2 border-b border-[var(--border-panel-neutral)] px-3 text-purple-muted-300"
|
|
8186
8190
|
),
|
|
@@ -8190,7 +8194,7 @@ function ad({
|
|
|
8190
8194
|
Lt.Input,
|
|
8191
8195
|
{
|
|
8192
8196
|
"data-slot": "command-input",
|
|
8193
|
-
className:
|
|
8197
|
+
className: k(
|
|
8194
8198
|
"qodo qodo-command-input",
|
|
8195
8199
|
"placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",
|
|
8196
8200
|
e
|
|
@@ -8210,7 +8214,7 @@ function sd({
|
|
|
8210
8214
|
Lt.List,
|
|
8211
8215
|
{
|
|
8212
8216
|
"data-slot": "command-list",
|
|
8213
|
-
className:
|
|
8217
|
+
className: k(
|
|
8214
8218
|
"qodo qodo-command-list max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",
|
|
8215
8219
|
e
|
|
8216
8220
|
),
|
|
@@ -8225,7 +8229,7 @@ function id({
|
|
|
8225
8229
|
Lt.Empty,
|
|
8226
8230
|
{
|
|
8227
8231
|
"data-slot": "command-empty",
|
|
8228
|
-
className:
|
|
8232
|
+
className: k(
|
|
8229
8233
|
"qodo qodo-command-empty",
|
|
8230
8234
|
"py-6 text-center text-sm text-purple-muted-300"
|
|
8231
8235
|
),
|
|
@@ -8241,7 +8245,7 @@ function uy({
|
|
|
8241
8245
|
Lt.Loading,
|
|
8242
8246
|
{
|
|
8243
8247
|
"data-slot": "command-loading",
|
|
8244
|
-
className:
|
|
8248
|
+
className: k(
|
|
8245
8249
|
"qodo qodo-command-loading",
|
|
8246
8250
|
"py-6 text-center text-sm text-purple-muted-300",
|
|
8247
8251
|
e
|
|
@@ -8258,7 +8262,7 @@ function ld({
|
|
|
8258
8262
|
Lt.Group,
|
|
8259
8263
|
{
|
|
8260
8264
|
"data-slot": "command-group",
|
|
8261
|
-
className:
|
|
8265
|
+
className: k(
|
|
8262
8266
|
"qodo qodo-command-group",
|
|
8263
8267
|
"text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",
|
|
8264
8268
|
e
|
|
@@ -8275,7 +8279,7 @@ function cd({
|
|
|
8275
8279
|
Lt.Item,
|
|
8276
8280
|
{
|
|
8277
8281
|
"data-slot": "command-item",
|
|
8278
|
-
className:
|
|
8282
|
+
className: k(
|
|
8279
8283
|
"qodo qodo-command-item",
|
|
8280
8284
|
"data-[selected=true]:bg-purple-muted-500 data-[selected=true]:text-purple-100 [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
8281
8285
|
e
|
|
@@ -8284,7 +8288,7 @@ function cd({
|
|
|
8284
8288
|
}
|
|
8285
8289
|
);
|
|
8286
8290
|
}
|
|
8287
|
-
var Kn = "Popover", [dd,
|
|
8291
|
+
var Kn = "Popover", [dd, NR] = Ce(Kn, [
|
|
8288
8292
|
bt
|
|
8289
8293
|
]), Lr = bt(), [fy, Ct] = dd(Kn), ud = (e) => {
|
|
8290
8294
|
const {
|
|
@@ -8348,13 +8352,13 @@ var Na = "PopoverPortal", [my, gy] = dd(Na, {
|
|
|
8348
8352
|
forceMount: void 0
|
|
8349
8353
|
}), gd = (e) => {
|
|
8350
8354
|
const { __scopePopover: t, forceMount: r, children: n, container: o } = e, a = Ct(Na, t);
|
|
8351
|
-
return /* @__PURE__ */ s.jsx(my, { scope: t, forceMount: r, children: /* @__PURE__ */ s.jsx(
|
|
8355
|
+
return /* @__PURE__ */ s.jsx(my, { scope: t, forceMount: r, children: /* @__PURE__ */ s.jsx(ke, { present: r || a.open, children: /* @__PURE__ */ s.jsx(dr, { asChild: !0, container: o, children: n }) }) });
|
|
8352
8356
|
};
|
|
8353
8357
|
gd.displayName = Na;
|
|
8354
8358
|
var tr = "PopoverContent", vd = d.forwardRef(
|
|
8355
8359
|
(e, t) => {
|
|
8356
8360
|
const r = gy(tr, e.__scopePopover), { forceMount: n = r.forceMount, ...o } = e, a = Ct(tr, e.__scopePopover);
|
|
8357
|
-
return /* @__PURE__ */ s.jsx(
|
|
8361
|
+
return /* @__PURE__ */ s.jsx(ke, { present: n || a.open, children: a.modal ? /* @__PURE__ */ s.jsx(hy, { ...o, ref: t }) : /* @__PURE__ */ s.jsx(xy, { ...o, ref: t }) });
|
|
8358
8362
|
}
|
|
8359
8363
|
);
|
|
8360
8364
|
vd.displayName = tr;
|
|
@@ -8495,7 +8499,7 @@ wy.displayName = yy;
|
|
|
8495
8499
|
function bd(e) {
|
|
8496
8500
|
return e ? "open" : "closed";
|
|
8497
8501
|
}
|
|
8498
|
-
var Cy = ud, Sy = md, Ey = gd,
|
|
8502
|
+
var Cy = ud, Sy = md, Ey = gd, ky = vd;
|
|
8499
8503
|
function ja({
|
|
8500
8504
|
...e
|
|
8501
8505
|
}) {
|
|
@@ -8513,12 +8517,12 @@ function Ta({
|
|
|
8513
8517
|
...n
|
|
8514
8518
|
}) {
|
|
8515
8519
|
return /* @__PURE__ */ s.jsx(Ey, { children: /* @__PURE__ */ s.jsx(
|
|
8516
|
-
|
|
8520
|
+
ky,
|
|
8517
8521
|
{
|
|
8518
8522
|
"data-slot": "popover-content",
|
|
8519
8523
|
align: t,
|
|
8520
8524
|
sideOffset: r,
|
|
8521
|
-
className:
|
|
8525
|
+
className: k(
|
|
8522
8526
|
"qodo qodo-popover-content bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 origin-(--radix-popover-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",
|
|
8523
8527
|
e
|
|
8524
8528
|
),
|
|
@@ -8543,8 +8547,8 @@ const yd = d.forwardRef(
|
|
|
8543
8547
|
loadingText: g = "Loading...",
|
|
8544
8548
|
...m
|
|
8545
8549
|
}, b) => {
|
|
8546
|
-
const [v, x] = d.useState(!1), [y, h] = d.useState(""), [C, S] = d.useState(0), N = d.useRef(null), T = e.find((
|
|
8547
|
-
h(
|
|
8550
|
+
const [v, x] = d.useState(!1), [y, h] = d.useState(""), [C, S] = d.useState(0), N = d.useRef(null), T = e.find((R) => R.value === t), j = (R) => {
|
|
8551
|
+
h(R), f == null || f(R);
|
|
8548
8552
|
};
|
|
8549
8553
|
return d.useEffect(() => {
|
|
8550
8554
|
N.current && S(N.current.offsetWidth);
|
|
@@ -8552,15 +8556,15 @@ const yd = d.forwardRef(
|
|
|
8552
8556
|
/* @__PURE__ */ s.jsx(Pa, { asChild: !0, children: /* @__PURE__ */ s.jsxs(
|
|
8553
8557
|
mt,
|
|
8554
8558
|
{
|
|
8555
|
-
ref: (
|
|
8556
|
-
typeof b == "function" ? b(
|
|
8559
|
+
ref: (R) => {
|
|
8560
|
+
typeof b == "function" ? b(R) : b && (b.current = R), N.current = R;
|
|
8557
8561
|
},
|
|
8558
8562
|
variant: "outline",
|
|
8559
8563
|
role: "combobox",
|
|
8560
8564
|
"aria-expanded": v,
|
|
8561
8565
|
"aria-invalid": c || void 0,
|
|
8562
8566
|
"data-readonly": l || void 0,
|
|
8563
|
-
className:
|
|
8567
|
+
className: k(
|
|
8564
8568
|
"qodo qodo-combobox w-full h-9 px-3 py-1 justify-between rounded-md",
|
|
8565
8569
|
"border border-purple-muted-500 bg-purple-muted-700 hover:bg-purple-muted-700",
|
|
8566
8570
|
"text-sm md:text-sm text-purple-muted-300 hover:text-purple-muted-300 focus:text-purple-muted-300 active:text-purple-muted-300 selection:bg-primary selection:text-primary-foreground",
|
|
@@ -8604,15 +8608,15 @@ const yd = d.forwardRef(
|
|
|
8604
8608
|
),
|
|
8605
8609
|
/* @__PURE__ */ s.jsx(sd, { children: p ? /* @__PURE__ */ s.jsx(uy, { children: g }) : /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
8606
8610
|
/* @__PURE__ */ s.jsx(id, { className: "flex justify-center items-center p-6 text-center text-sm text-purple-muted-300", children: a }),
|
|
8607
|
-
/* @__PURE__ */ s.jsx(ld, { children: e.map((
|
|
8608
|
-
const W = t ===
|
|
8611
|
+
/* @__PURE__ */ s.jsx(ld, { children: e.map((R) => {
|
|
8612
|
+
const W = t === R.value;
|
|
8609
8613
|
return /* @__PURE__ */ s.jsxs(
|
|
8610
8614
|
cd,
|
|
8611
8615
|
{
|
|
8612
|
-
value:
|
|
8613
|
-
keywords: [
|
|
8614
|
-
disabled:
|
|
8615
|
-
className:
|
|
8616
|
+
value: R.value,
|
|
8617
|
+
keywords: [R.label],
|
|
8618
|
+
disabled: R.disabled,
|
|
8619
|
+
className: k(
|
|
8616
8620
|
"text-purple-100 hover:bg-purple-muted-500",
|
|
8617
8621
|
"focus:bg-purple-muted-500 focus:text-purple-100",
|
|
8618
8622
|
{
|
|
@@ -8628,16 +8632,16 @@ const yd = d.forwardRef(
|
|
|
8628
8632
|
/* @__PURE__ */ s.jsx(
|
|
8629
8633
|
sr,
|
|
8630
8634
|
{
|
|
8631
|
-
className:
|
|
8635
|
+
className: k("mr-2 h-4 w-4", {
|
|
8632
8636
|
"opacity-100": W,
|
|
8633
8637
|
"opacity-0": !W
|
|
8634
8638
|
})
|
|
8635
8639
|
}
|
|
8636
8640
|
),
|
|
8637
|
-
|
|
8641
|
+
R.label
|
|
8638
8642
|
]
|
|
8639
8643
|
},
|
|
8640
|
-
|
|
8644
|
+
R.value
|
|
8641
8645
|
);
|
|
8642
8646
|
}) })
|
|
8643
8647
|
] }) })
|
|
@@ -8650,7 +8654,7 @@ const yd = d.forwardRef(
|
|
|
8650
8654
|
}
|
|
8651
8655
|
);
|
|
8652
8656
|
yd.displayName = "Combobox";
|
|
8653
|
-
const
|
|
8657
|
+
const Ry = nr(
|
|
8654
8658
|
"qodo qodo-badge inline-flex items-center dark:font-normal border transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 font-light gap-1",
|
|
8655
8659
|
{
|
|
8656
8660
|
variants: {
|
|
@@ -8664,7 +8668,7 @@ const ky = nr(
|
|
|
8664
8668
|
error: "border-[var(--border-tag-negative-idle)] bg-[var(--fill-tag-negative-idle)] text-[var(--text-tag-negative-idle)] hover:text-[var(--text-tag-negative-hover)] hover:bg-[var(--fill-tag-negative-hover)] hover:border-[var(--border-tag-negative-hover)] aria-active:text-[var(--text-tag-negative-active)] aria-active:bg-[var(--fill-tag-negative-active)] aria-active:border-[var(--border-tag-negative-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-negative-disabled)] aria-disabled:bg-[var(--fill-tag-negative-disabled)] aria-disabled:border-[var(--border-tag-negative-disabled)] ",
|
|
8665
8669
|
pending: "border-[var(--border-tag-emphasis-idle)] bg-[var(--fill-tag-emphasis-idle)] text-[var(--text-tag-emphasis-idle)] hover:text-[var(--text-tag-emphasis-hover)] hover:bg-[var(--fill-tag-emphasis-hover)] hover:border-[var(--border-tag-emphasis-hover)] aria-active:text-[var(--text-tag-emphasis-active)] aria-active:bg-[var(--fill-tag-emphasis-active)] aria-active:border-[var(--border-tag-emphasis-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-emphasis-disabled)] aria-disabled:bg-[var(--fill-tag-emphasis-disabled)] aria-disabled:border-[var(--border-tag-emphasis-disabled)] ",
|
|
8666
8670
|
warning: "border-[var(--border-tag-warning-idle)] bg-[var(--fill-tag-warning-idle)] text-[var(--text-tag-warning-idle)] hover:text-[var(--text-tag-warning-hover)] hover:bg-[var(--fill-tag-warning-hover)] hover:border-[var(--border-tag-warning-hover)] aria-active:text-[var(--text-tag-warning-active)] aria-active:bg-[var(--fill-tag-warning-active)] aria-active:border-[var(--border-tag-warning-active)] aria-disabled:cursor-not-allowed aria-disabled:text-[var(--text-tag-warning-disabled)] aria-disabled:bg-[var(--fill-tag-warning-disabled)] aria-disabled:border-[var(--border-tag-warning-disabled)] ",
|
|
8667
|
-
text: "bg-transparent border-transparent text-primary-foreground p-0"
|
|
8671
|
+
text: "bg-transparent border-transparent text-primary-foreground !p-0"
|
|
8668
8672
|
},
|
|
8669
8673
|
size: {
|
|
8670
8674
|
xs: "text-[10px] px-1.5 py-0.5 rounded-sm bg-transparent hover:bg-transparent aria-disabled:bg-transparent aria-active:bg-transparent",
|
|
@@ -8692,7 +8696,7 @@ function jr({
|
|
|
8692
8696
|
{
|
|
8693
8697
|
"aria-disabled": n,
|
|
8694
8698
|
"aria-active": o,
|
|
8695
|
-
className:
|
|
8699
|
+
className: k(Ry({ variant: t, size: r }), e),
|
|
8696
8700
|
...a
|
|
8697
8701
|
}
|
|
8698
8702
|
);
|
|
@@ -8705,7 +8709,7 @@ function Ny({
|
|
|
8705
8709
|
"div",
|
|
8706
8710
|
{
|
|
8707
8711
|
"data-slot": "card",
|
|
8708
|
-
className:
|
|
8712
|
+
className: k(
|
|
8709
8713
|
"qodo qodo-card bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm dark:bg-card dark:text-card-foreground dark:border-border",
|
|
8710
8714
|
e
|
|
8711
8715
|
),
|
|
@@ -8718,7 +8722,7 @@ function jy({ className: e, ...t }) {
|
|
|
8718
8722
|
"div",
|
|
8719
8723
|
{
|
|
8720
8724
|
"data-slot": "card-header",
|
|
8721
|
-
className:
|
|
8725
|
+
className: k(
|
|
8722
8726
|
"qodo qodo-card-header @container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-1.5 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",
|
|
8723
8727
|
e
|
|
8724
8728
|
),
|
|
@@ -8731,7 +8735,7 @@ function Py({ className: e, ...t }) {
|
|
|
8731
8735
|
"div",
|
|
8732
8736
|
{
|
|
8733
8737
|
"data-slot": "card-title",
|
|
8734
|
-
className:
|
|
8738
|
+
className: k(
|
|
8735
8739
|
"qodo qodo-card-title leading-none font-semibold",
|
|
8736
8740
|
e
|
|
8737
8741
|
),
|
|
@@ -8744,7 +8748,7 @@ function Ty({ className: e, ...t }) {
|
|
|
8744
8748
|
"div",
|
|
8745
8749
|
{
|
|
8746
8750
|
"data-slot": "card-description",
|
|
8747
|
-
className:
|
|
8751
|
+
className: k(
|
|
8748
8752
|
"qodo qodo-card-description text-muted-foreground text-sm dark:text-muted-foreground",
|
|
8749
8753
|
e
|
|
8750
8754
|
),
|
|
@@ -8752,12 +8756,12 @@ function Ty({ className: e, ...t }) {
|
|
|
8752
8756
|
}
|
|
8753
8757
|
);
|
|
8754
8758
|
}
|
|
8755
|
-
function
|
|
8759
|
+
function jR({ className: e, ...t }) {
|
|
8756
8760
|
return /* @__PURE__ */ s.jsx(
|
|
8757
8761
|
"div",
|
|
8758
8762
|
{
|
|
8759
8763
|
"data-slot": "card-action",
|
|
8760
|
-
className:
|
|
8764
|
+
className: k(
|
|
8761
8765
|
"qodo qodo-card-action col-start-2 row-span-2 row-start-1 self-start justify-self-end",
|
|
8762
8766
|
e
|
|
8763
8767
|
),
|
|
@@ -8770,17 +8774,17 @@ function _y({ className: e, ...t }) {
|
|
|
8770
8774
|
"div",
|
|
8771
8775
|
{
|
|
8772
8776
|
"data-slot": "card-content",
|
|
8773
|
-
className:
|
|
8777
|
+
className: k("qodo qodo-card-content px-6", e),
|
|
8774
8778
|
...t
|
|
8775
8779
|
}
|
|
8776
8780
|
);
|
|
8777
8781
|
}
|
|
8778
|
-
function
|
|
8782
|
+
function PR({ className: e, ...t }) {
|
|
8779
8783
|
return /* @__PURE__ */ s.jsx(
|
|
8780
8784
|
"div",
|
|
8781
8785
|
{
|
|
8782
8786
|
"data-slot": "card-footer",
|
|
8783
|
-
className:
|
|
8787
|
+
className: k(
|
|
8784
8788
|
"qodo qodo-card-footer flex items-center px-6 [.border-t]:pt-6",
|
|
8785
8789
|
e
|
|
8786
8790
|
),
|
|
@@ -8788,7 +8792,7 @@ function Pk({ className: e, ...t }) {
|
|
|
8788
8792
|
}
|
|
8789
8793
|
);
|
|
8790
8794
|
}
|
|
8791
|
-
var _a = "Progress", Aa = 100, [Ay,
|
|
8795
|
+
var _a = "Progress", Aa = 100, [Ay, TR] = Ce(_a), [Iy, My] = Ay(_a), wd = d.forwardRef(
|
|
8792
8796
|
(e, t) => {
|
|
8793
8797
|
const {
|
|
8794
8798
|
__scopeProgress: r,
|
|
@@ -8862,7 +8866,7 @@ function $y(e, t) {
|
|
|
8862
8866
|
Defaulting to \`null\`.`;
|
|
8863
8867
|
}
|
|
8864
8868
|
var Ly = wd, Fy = Sd;
|
|
8865
|
-
function
|
|
8869
|
+
function _R({
|
|
8866
8870
|
className: e,
|
|
8867
8871
|
value: t,
|
|
8868
8872
|
...r
|
|
@@ -8871,7 +8875,7 @@ function _k({
|
|
|
8871
8875
|
Ly,
|
|
8872
8876
|
{
|
|
8873
8877
|
"data-slot": "progress",
|
|
8874
|
-
className:
|
|
8878
|
+
className: k(
|
|
8875
8879
|
"qodo qodo-progress bg-primary/20 relative h-2 w-full overflow-hidden rounded-full dark:bg-primary/20",
|
|
8876
8880
|
e
|
|
8877
8881
|
),
|
|
@@ -8894,7 +8898,7 @@ function Vy({
|
|
|
8894
8898
|
return /* @__PURE__ */ s.jsx(
|
|
8895
8899
|
"div",
|
|
8896
8900
|
{
|
|
8897
|
-
className:
|
|
8901
|
+
className: k(
|
|
8898
8902
|
"qodo qodo-skeleton animate-pulse rounded-md bg-neutral-900/10 dark:bg-neutral-50/10",
|
|
8899
8903
|
e
|
|
8900
8904
|
),
|
|
@@ -8902,7 +8906,7 @@ function Vy({
|
|
|
8902
8906
|
}
|
|
8903
8907
|
);
|
|
8904
8908
|
}
|
|
8905
|
-
var Yn = "Switch", [By,
|
|
8909
|
+
var Yn = "Switch", [By, AR] = Ce(Yn), [Gy, Wy] = By(Yn), kd = d.forwardRef(
|
|
8906
8910
|
(e, t) => {
|
|
8907
8911
|
const {
|
|
8908
8912
|
__scopeSwitch: r,
|
|
@@ -8957,10 +8961,10 @@ var Yn = "Switch", [By, Ak] = Ce(Yn), [Gy, Wy] = By(Yn), Rd = d.forwardRef(
|
|
|
8957
8961
|
] });
|
|
8958
8962
|
}
|
|
8959
8963
|
);
|
|
8960
|
-
|
|
8961
|
-
var
|
|
8964
|
+
kd.displayName = Yn;
|
|
8965
|
+
var Rd = "SwitchThumb", Nd = d.forwardRef(
|
|
8962
8966
|
(e, t) => {
|
|
8963
|
-
const { __scopeSwitch: r, ...n } = e, o = Wy(
|
|
8967
|
+
const { __scopeSwitch: r, ...n } = e, o = Wy(Rd, r);
|
|
8964
8968
|
return /* @__PURE__ */ s.jsx(
|
|
8965
8969
|
q.span,
|
|
8966
8970
|
{
|
|
@@ -8972,7 +8976,7 @@ var kd = "SwitchThumb", Nd = d.forwardRef(
|
|
|
8972
8976
|
);
|
|
8973
8977
|
}
|
|
8974
8978
|
);
|
|
8975
|
-
Nd.displayName =
|
|
8979
|
+
Nd.displayName = Rd;
|
|
8976
8980
|
var zy = "SwitchBubbleInput", jd = d.forwardRef(
|
|
8977
8981
|
({
|
|
8978
8982
|
__scopeSwitch: e,
|
|
@@ -9018,7 +9022,7 @@ jd.displayName = zy;
|
|
|
9018
9022
|
function Pd(e) {
|
|
9019
9023
|
return e ? "checked" : "unchecked";
|
|
9020
9024
|
}
|
|
9021
|
-
var qy =
|
|
9025
|
+
var qy = kd, Uy = Nd;
|
|
9022
9026
|
const Hy = nr(
|
|
9023
9027
|
"qodo qodo-switch peer inline-flex shrink-0 items-center rounded-full border transition-all outline-none shadow-lg p-0.5 disabled:cursor-not-allowed",
|
|
9024
9028
|
{
|
|
@@ -9046,12 +9050,12 @@ const Hy = nr(
|
|
|
9046
9050
|
}
|
|
9047
9051
|
}
|
|
9048
9052
|
);
|
|
9049
|
-
function
|
|
9053
|
+
function IR({ className: e, size: t, ...r }) {
|
|
9050
9054
|
return /* @__PURE__ */ s.jsx(
|
|
9051
9055
|
qy,
|
|
9052
9056
|
{
|
|
9053
9057
|
"data-slot": "switch",
|
|
9054
|
-
className:
|
|
9058
|
+
className: k(
|
|
9055
9059
|
Hy({ size: t }),
|
|
9056
9060
|
// NOT CHECKED
|
|
9057
9061
|
"data-[state=unchecked]:border-[var(--border-input-neutral-idle)] data-[state=unchecked]:bg-[var(--fill-input-neutral-idle)]",
|
|
@@ -9070,7 +9074,7 @@ function Ik({ className: e, size: t, ...r }) {
|
|
|
9070
9074
|
Uy,
|
|
9071
9075
|
{
|
|
9072
9076
|
"data-slot": "switch-thumb",
|
|
9073
|
-
className:
|
|
9077
|
+
className: k(
|
|
9074
9078
|
Ky({ size: t }),
|
|
9075
9079
|
// NOT CHECKED
|
|
9076
9080
|
"data-[state=unchecked]:bg-[var(--icon-input-neutral-idle)]",
|
|
@@ -9134,7 +9138,7 @@ const _d = nr(
|
|
|
9134
9138
|
}
|
|
9135
9139
|
}
|
|
9136
9140
|
);
|
|
9137
|
-
function
|
|
9141
|
+
function MR({
|
|
9138
9142
|
className: e,
|
|
9139
9143
|
variant: t,
|
|
9140
9144
|
size: r,
|
|
@@ -9144,7 +9148,7 @@ function Mk({
|
|
|
9144
9148
|
Yy,
|
|
9145
9149
|
{
|
|
9146
9150
|
"data-slot": "toggle",
|
|
9147
|
-
className:
|
|
9151
|
+
className: k(_d({ variant: t, size: r, className: e })),
|
|
9148
9152
|
...n
|
|
9149
9153
|
}
|
|
9150
9154
|
);
|
|
@@ -9175,9 +9179,9 @@ var tw = d.forwardRef((e, t) => {
|
|
|
9175
9179
|
caller: Fr
|
|
9176
9180
|
}), [y, h] = d.useState(!1), C = Ve(u), S = Ad(r), N = d.useRef(!1), [T, j] = d.useState(0);
|
|
9177
9181
|
return d.useEffect(() => {
|
|
9178
|
-
const
|
|
9179
|
-
if (
|
|
9180
|
-
return
|
|
9182
|
+
const R = g.current;
|
|
9183
|
+
if (R)
|
|
9184
|
+
return R.addEventListener(_o, C), () => R.removeEventListener(_o, C);
|
|
9181
9185
|
}, [C]), /* @__PURE__ */ s.jsx(
|
|
9182
9186
|
Qy,
|
|
9183
9187
|
{
|
|
@@ -9187,16 +9191,16 @@ var tw = d.forwardRef((e, t) => {
|
|
|
9187
9191
|
loop: o,
|
|
9188
9192
|
currentTabStopId: v,
|
|
9189
9193
|
onItemFocus: d.useCallback(
|
|
9190
|
-
(
|
|
9194
|
+
(R) => x(R),
|
|
9191
9195
|
[x]
|
|
9192
9196
|
),
|
|
9193
9197
|
onItemShiftTab: d.useCallback(() => h(!0), []),
|
|
9194
9198
|
onFocusableItemAdd: d.useCallback(
|
|
9195
|
-
() => j((
|
|
9199
|
+
() => j((R) => R + 1),
|
|
9196
9200
|
[]
|
|
9197
9201
|
),
|
|
9198
9202
|
onFocusableItemRemove: d.useCallback(
|
|
9199
|
-
() => j((
|
|
9203
|
+
() => j((R) => R - 1),
|
|
9200
9204
|
[]
|
|
9201
9205
|
),
|
|
9202
9206
|
children: /* @__PURE__ */ s.jsx(
|
|
@@ -9210,11 +9214,11 @@ var tw = d.forwardRef((e, t) => {
|
|
|
9210
9214
|
onMouseDown: L(e.onMouseDown, () => {
|
|
9211
9215
|
N.current = !0;
|
|
9212
9216
|
}),
|
|
9213
|
-
onFocus: L(e.onFocus, (
|
|
9217
|
+
onFocus: L(e.onFocus, (R) => {
|
|
9214
9218
|
const W = !N.current;
|
|
9215
|
-
if (
|
|
9219
|
+
if (R.target === R.currentTarget && W && !y) {
|
|
9216
9220
|
const U = new CustomEvent(_o, Xy);
|
|
9217
|
-
if (
|
|
9221
|
+
if (R.currentTarget.dispatchEvent(U), !U.defaultPrevented) {
|
|
9218
9222
|
const re = S().filter((A) => A.focusable), te = re.find((A) => A.active), Q = re.find((A) => A.id === v), M = [te, Q, ...re].filter(
|
|
9219
9223
|
Boolean
|
|
9220
9224
|
).map((A) => A.ref.current);
|
|
@@ -9313,7 +9317,7 @@ function Dd(e, t = !1) {
|
|
|
9313
9317
|
function aw(e, t) {
|
|
9314
9318
|
return e.map((r, n) => e[(t + n) % e.length]);
|
|
9315
9319
|
}
|
|
9316
|
-
var Xn = Id, Zn = Od, Et = "ToggleGroup", [$d,
|
|
9320
|
+
var Xn = Id, Zn = Od, Et = "ToggleGroup", [$d, OR] = Ce(Et, [
|
|
9317
9321
|
St
|
|
9318
9322
|
]), Ld = St(), Ma = F.forwardRef((e, t) => {
|
|
9319
9323
|
const { type: r, ...n } = e;
|
|
@@ -9444,7 +9448,7 @@ const Wd = d.createContext({
|
|
|
9444
9448
|
size: "default",
|
|
9445
9449
|
variant: "default"
|
|
9446
9450
|
});
|
|
9447
|
-
function
|
|
9451
|
+
function DR({
|
|
9448
9452
|
className: e,
|
|
9449
9453
|
variant: t,
|
|
9450
9454
|
size: r,
|
|
@@ -9457,7 +9461,7 @@ function Dk({
|
|
|
9457
9461
|
"data-slot": "toggle-group",
|
|
9458
9462
|
"data-variant": t,
|
|
9459
9463
|
"data-size": r,
|
|
9460
|
-
className:
|
|
9464
|
+
className: k(
|
|
9461
9465
|
"qodo qodo-toggle-group group/toggle-group flex w-fit items-center rounded-md data-[variant=outline]:shadow-xs dark:data-[variant=outline]:shadow-xs",
|
|
9462
9466
|
e
|
|
9463
9467
|
),
|
|
@@ -9466,7 +9470,7 @@ function Dk({
|
|
|
9466
9470
|
}
|
|
9467
9471
|
);
|
|
9468
9472
|
}
|
|
9469
|
-
function $
|
|
9473
|
+
function $R({
|
|
9470
9474
|
className: e,
|
|
9471
9475
|
children: t,
|
|
9472
9476
|
variant: r,
|
|
@@ -9480,7 +9484,7 @@ function $k({
|
|
|
9480
9484
|
"data-slot": "toggle-group-item",
|
|
9481
9485
|
"data-variant": a.variant || r,
|
|
9482
9486
|
"data-size": a.size || n,
|
|
9483
|
-
className:
|
|
9487
|
+
className: k(
|
|
9484
9488
|
_d({
|
|
9485
9489
|
variant: a.variant || r,
|
|
9486
9490
|
size: a.size || n
|
|
@@ -9553,7 +9557,7 @@ Hd.displayName = Ud;
|
|
|
9553
9557
|
var Da = "CollapsibleContent", Kd = d.forwardRef(
|
|
9554
9558
|
(e, t) => {
|
|
9555
9559
|
const { forceMount: r, ...n } = e, o = Oa(Da, e.__scopeCollapsible);
|
|
9556
|
-
return /* @__PURE__ */ s.jsx(
|
|
9560
|
+
return /* @__PURE__ */ s.jsx(ke, { present: r || o.open, children: ({ present: a }) => /* @__PURE__ */ s.jsx(mw, { ...n, ref: t, present: a }) });
|
|
9557
9561
|
}
|
|
9558
9562
|
);
|
|
9559
9563
|
Kd.displayName = Da;
|
|
@@ -9593,7 +9597,7 @@ var mw = d.forwardRef((e, t) => {
|
|
|
9593
9597
|
function $a(e) {
|
|
9594
9598
|
return e ? "open" : "closed";
|
|
9595
9599
|
}
|
|
9596
|
-
var gw = qd, vw = Hd, hw = Kd, ze = "Accordion", xw = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [La, bw, yw] = _n(ze), [Qn,
|
|
9600
|
+
var gw = qd, vw = Hd, hw = Kd, ze = "Accordion", xw = ["Home", "End", "ArrowDown", "ArrowUp", "ArrowLeft", "ArrowRight"], [La, bw, yw] = _n(ze), [Qn, LR] = Ce(ze, [
|
|
9597
9601
|
yw,
|
|
9598
9602
|
zd
|
|
9599
9603
|
]), Fa = zd(), Yd = F.forwardRef(
|
|
@@ -9661,10 +9665,10 @@ var [Xd, ww] = Qn(ze), [Zd, Cw] = Qn(
|
|
|
9661
9665
|
children: /* @__PURE__ */ s.jsx(Zd, { scope: e.__scopeAccordion, collapsible: !0, children: /* @__PURE__ */ s.jsx(Jd, { ...a, ref: t }) })
|
|
9662
9666
|
}
|
|
9663
9667
|
);
|
|
9664
|
-
}), [
|
|
9668
|
+
}), [kw, eo] = Qn(ze), Jd = F.forwardRef(
|
|
9665
9669
|
(e, t) => {
|
|
9666
9670
|
const { __scopeAccordion: r, disabled: n, dir: o, orientation: a = "vertical", ...i } = e, l = F.useRef(null), c = ae(l, t), u = bw(r), p = $t(o) === "ltr", g = L(e.onKeyDown, (m) => {
|
|
9667
|
-
var
|
|
9671
|
+
var R;
|
|
9668
9672
|
if (!xw.includes(m.key)) return;
|
|
9669
9673
|
const b = m.target, v = u().filter((W) => {
|
|
9670
9674
|
var U;
|
|
@@ -9699,10 +9703,10 @@ var [Xd, ww] = Qn(ze), [Zd, Cw] = Qn(
|
|
|
9699
9703
|
break;
|
|
9700
9704
|
}
|
|
9701
9705
|
const j = h % y;
|
|
9702
|
-
(
|
|
9706
|
+
(R = v[j].ref.current) == null || R.focus();
|
|
9703
9707
|
});
|
|
9704
9708
|
return /* @__PURE__ */ s.jsx(
|
|
9705
|
-
|
|
9709
|
+
kw,
|
|
9706
9710
|
{
|
|
9707
9711
|
scope: r,
|
|
9708
9712
|
disabled: n,
|
|
@@ -9720,11 +9724,11 @@ var [Xd, ww] = Qn(ze), [Zd, Cw] = Qn(
|
|
|
9720
9724
|
}
|
|
9721
9725
|
);
|
|
9722
9726
|
}
|
|
9723
|
-
), yn = "AccordionItem", [
|
|
9727
|
+
), yn = "AccordionItem", [Rw, Va] = Qn(yn), Qd = F.forwardRef(
|
|
9724
9728
|
(e, t) => {
|
|
9725
9729
|
const { __scopeAccordion: r, value: n, ...o } = e, a = eo(yn, r), i = ww(yn, r), l = Fa(r), c = ge(), u = n && i.value.includes(n) || !1, f = a.disabled || e.disabled;
|
|
9726
9730
|
return /* @__PURE__ */ s.jsx(
|
|
9727
|
-
|
|
9731
|
+
Rw,
|
|
9728
9732
|
{
|
|
9729
9733
|
scope: r,
|
|
9730
9734
|
open: u,
|
|
@@ -9809,12 +9813,12 @@ function au(e) {
|
|
|
9809
9813
|
return e ? "open" : "closed";
|
|
9810
9814
|
}
|
|
9811
9815
|
var Nw = Yd, jw = Qd, Pw = tu, Tw = ru, _w = ou;
|
|
9812
|
-
function
|
|
9816
|
+
function FR({
|
|
9813
9817
|
...e
|
|
9814
9818
|
}) {
|
|
9815
9819
|
return /* @__PURE__ */ s.jsx(Nw, { "data-slot": "accordion", ...e });
|
|
9816
9820
|
}
|
|
9817
|
-
function
|
|
9821
|
+
function VR({
|
|
9818
9822
|
className: e,
|
|
9819
9823
|
...t
|
|
9820
9824
|
}) {
|
|
@@ -9822,7 +9826,7 @@ function Vk({
|
|
|
9822
9826
|
jw,
|
|
9823
9827
|
{
|
|
9824
9828
|
"data-slot": "accordion-item",
|
|
9825
|
-
className:
|
|
9829
|
+
className: k(
|
|
9826
9830
|
"qodo qodo-accordion-item border-b border-[var(--border-interactive-neutral-idle)] text-[var(--text-interactive-neutral-idle)] text-base font-medium leading-6 hover:text-[var(--text-interactive-neutral-hover)]",
|
|
9827
9831
|
e
|
|
9828
9832
|
),
|
|
@@ -9830,7 +9834,7 @@ function Vk({
|
|
|
9830
9834
|
}
|
|
9831
9835
|
);
|
|
9832
9836
|
}
|
|
9833
|
-
function
|
|
9837
|
+
function BR({
|
|
9834
9838
|
className: e,
|
|
9835
9839
|
children: t,
|
|
9836
9840
|
...r
|
|
@@ -9839,7 +9843,7 @@ function Bk({
|
|
|
9839
9843
|
Tw,
|
|
9840
9844
|
{
|
|
9841
9845
|
"data-slot": "accordion-trigger",
|
|
9842
|
-
className:
|
|
9846
|
+
className: k(
|
|
9843
9847
|
"qodo qodo-accordion-trigger focus-visible:border-ring focus-visible:ring-ring/50 flex flex-1 items-start justify-between gap-4 rounded-md py-4 text-left text-sm font-medium transition-all outline-none text-text-interactive-neutral-idle focus-visible:ring-[3px] disabled:pointer-events-none disabled:opacity-50 [&[data-state=open]>svg]:rotate-180 dark:focus-visible:border-ring dark:focus-visible:ring-ring/50 cursor-pointer hover:text-[var(--text-interactive-neutral-hover)]",
|
|
9844
9848
|
e
|
|
9845
9849
|
),
|
|
@@ -9851,7 +9855,7 @@ function Bk({
|
|
|
9851
9855
|
}
|
|
9852
9856
|
) });
|
|
9853
9857
|
}
|
|
9854
|
-
function
|
|
9858
|
+
function GR({
|
|
9855
9859
|
className: e,
|
|
9856
9860
|
children: t,
|
|
9857
9861
|
...r
|
|
@@ -9860,7 +9864,7 @@ function Gk({
|
|
|
9860
9864
|
_w,
|
|
9861
9865
|
{
|
|
9862
9866
|
"data-slot": "accordion-content",
|
|
9863
|
-
className:
|
|
9867
|
+
className: k(
|
|
9864
9868
|
"qodo qodo-accordion-content",
|
|
9865
9869
|
"data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down overflow-hidden text-sm text-foreground dark:text-foreground"
|
|
9866
9870
|
),
|
|
@@ -9868,7 +9872,7 @@ function Gk({
|
|
|
9868
9872
|
children: /* @__PURE__ */ s.jsx(
|
|
9869
9873
|
"div",
|
|
9870
9874
|
{
|
|
9871
|
-
className:
|
|
9875
|
+
className: k(
|
|
9872
9876
|
"pt-0 pb-4 text-text-interactive-neutral-idle font-normal text-sm",
|
|
9873
9877
|
e
|
|
9874
9878
|
),
|
|
@@ -9878,7 +9882,7 @@ function Gk({
|
|
|
9878
9882
|
}
|
|
9879
9883
|
);
|
|
9880
9884
|
}
|
|
9881
|
-
var to = "Tabs", [Aw,
|
|
9885
|
+
var to = "Tabs", [Aw, WR] = Ce(to, [
|
|
9882
9886
|
St
|
|
9883
9887
|
]), su = St(), [Iw, Ba] = Aw(to), iu = d.forwardRef(
|
|
9884
9888
|
(e, t) => {
|
|
@@ -9992,7 +9996,7 @@ var fu = "TabsContent", pu = d.forwardRef(
|
|
|
9992
9996
|
return d.useEffect(() => {
|
|
9993
9997
|
const g = requestAnimationFrame(() => p.current = !1);
|
|
9994
9998
|
return () => cancelAnimationFrame(g);
|
|
9995
|
-
}, []), /* @__PURE__ */ s.jsx(
|
|
9999
|
+
}, []), /* @__PURE__ */ s.jsx(ke, { present: o || f, children: ({ present: g }) => /* @__PURE__ */ s.jsx(
|
|
9996
10000
|
q.div,
|
|
9997
10001
|
{
|
|
9998
10002
|
"data-state": f ? "active" : "inactive",
|
|
@@ -10021,7 +10025,7 @@ function gu(e, t) {
|
|
|
10021
10025
|
return `${e}-content-${t}`;
|
|
10022
10026
|
}
|
|
10023
10027
|
var Mw = iu, Ow = cu, Dw = uu, $w = pu;
|
|
10024
|
-
function
|
|
10028
|
+
function zR({
|
|
10025
10029
|
className: e,
|
|
10026
10030
|
...t
|
|
10027
10031
|
}) {
|
|
@@ -10029,12 +10033,12 @@ function zk({
|
|
|
10029
10033
|
Mw,
|
|
10030
10034
|
{
|
|
10031
10035
|
"data-slot": "tabs",
|
|
10032
|
-
className:
|
|
10036
|
+
className: k("qodo qodo-tabs flex flex-col gap-2", e),
|
|
10033
10037
|
...t
|
|
10034
10038
|
}
|
|
10035
10039
|
);
|
|
10036
10040
|
}
|
|
10037
|
-
function
|
|
10041
|
+
function qR({
|
|
10038
10042
|
className: e,
|
|
10039
10043
|
...t
|
|
10040
10044
|
}) {
|
|
@@ -10042,7 +10046,7 @@ function qk({
|
|
|
10042
10046
|
Ow,
|
|
10043
10047
|
{
|
|
10044
10048
|
"data-slot": "tabs-list",
|
|
10045
|
-
className:
|
|
10049
|
+
className: k(
|
|
10046
10050
|
"inline-flex w-full items-end justify-start gap-4",
|
|
10047
10051
|
e
|
|
10048
10052
|
),
|
|
@@ -10050,7 +10054,7 @@ function qk({
|
|
|
10050
10054
|
}
|
|
10051
10055
|
);
|
|
10052
10056
|
}
|
|
10053
|
-
function
|
|
10057
|
+
function UR({
|
|
10054
10058
|
className: e,
|
|
10055
10059
|
...t
|
|
10056
10060
|
}) {
|
|
@@ -10058,7 +10062,7 @@ function Uk({
|
|
|
10058
10062
|
Dw,
|
|
10059
10063
|
{
|
|
10060
10064
|
"data-slot": "tabs-trigger",
|
|
10061
|
-
className:
|
|
10065
|
+
className: k(
|
|
10062
10066
|
"text-[var(--text-interactive-neutral-idle)] hover:text-[var(--text-interactive-neutral-hover)] data-[state=active]:text-[var(--text-interactive-emphasis-active)] focus-visible:ring-ring/50 focus-visible:outline-ring inline-flex items-center justify-center gap-1.5 border-b border-transparent py-4 text-xs font-normal whitespace-nowrap transition-[color,border-color] focus-visible:ring-[3px] focus-visible:outline-1 disabled:pointer-events-none disabled:opacity-50 disabled:cursor-not-allowed data-[state=active]:border-[var(--color-purple-400)] relative -mb-px tracking-[0.01em] leading-[150%] cursor-pointer [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",
|
|
10063
10067
|
e
|
|
10064
10068
|
),
|
|
@@ -10066,7 +10070,7 @@ function Uk({
|
|
|
10066
10070
|
}
|
|
10067
10071
|
);
|
|
10068
10072
|
}
|
|
10069
|
-
function
|
|
10073
|
+
function HR({
|
|
10070
10074
|
className: e,
|
|
10071
10075
|
...t
|
|
10072
10076
|
}) {
|
|
@@ -10074,7 +10078,7 @@ function Hk({
|
|
|
10074
10078
|
$w,
|
|
10075
10079
|
{
|
|
10076
10080
|
"data-slot": "tabs-content",
|
|
10077
|
-
className:
|
|
10081
|
+
className: k("flex-1 outline-none", e),
|
|
10078
10082
|
...t
|
|
10079
10083
|
}
|
|
10080
10084
|
);
|
|
@@ -10325,13 +10329,13 @@ const Su = (e) => e.render(Xw(e)), Eu = da(void 0), Zw = (e) => {
|
|
|
10325
10329
|
const n = () => e === "submit" || e === "reset" ? "default" : t;
|
|
10326
10330
|
return /* @__PURE__ */ s.jsx(mt, { type: e, variant: n(), ...r });
|
|
10327
10331
|
};
|
|
10328
|
-
var
|
|
10332
|
+
var ku = {
|
|
10329
10333
|
color: void 0,
|
|
10330
10334
|
size: void 0,
|
|
10331
10335
|
className: void 0,
|
|
10332
10336
|
style: void 0,
|
|
10333
10337
|
attr: void 0
|
|
10334
|
-
}, hi = F.createContext && /* @__PURE__ */ F.createContext(
|
|
10338
|
+
}, hi = F.createContext && /* @__PURE__ */ F.createContext(ku), e0 = ["attr", "size", "title"];
|
|
10335
10339
|
function t0(e, t) {
|
|
10336
10340
|
if (e == null) return {};
|
|
10337
10341
|
var r = r0(e, t), n, o;
|
|
@@ -10400,15 +10404,15 @@ function a0(e, t) {
|
|
|
10400
10404
|
}
|
|
10401
10405
|
return (t === "string" ? String : Number)(e);
|
|
10402
10406
|
}
|
|
10403
|
-
function
|
|
10407
|
+
function Ru(e) {
|
|
10404
10408
|
return e && e.map((t, r) => /* @__PURE__ */ F.createElement(t.tag, Cn({
|
|
10405
10409
|
key: r
|
|
10406
|
-
}, t.attr),
|
|
10410
|
+
}, t.attr), Ru(t.child)));
|
|
10407
10411
|
}
|
|
10408
10412
|
function Nu(e) {
|
|
10409
10413
|
return (t) => /* @__PURE__ */ F.createElement(s0, wn({
|
|
10410
10414
|
attr: Cn({}, e.attr)
|
|
10411
|
-
}, t),
|
|
10415
|
+
}, t), Ru(e.child));
|
|
10412
10416
|
}
|
|
10413
10417
|
function s0(e) {
|
|
10414
10418
|
var t = (r) => {
|
|
@@ -10431,7 +10435,7 @@ function s0(e) {
|
|
|
10431
10435
|
xmlns: "http://www.w3.org/2000/svg"
|
|
10432
10436
|
}), a && /* @__PURE__ */ F.createElement("title", null, a), e.children);
|
|
10433
10437
|
};
|
|
10434
|
-
return hi !== void 0 ? /* @__PURE__ */ F.createElement(hi.Consumer, null, (r) => t(r)) : t(
|
|
10438
|
+
return hi !== void 0 ? /* @__PURE__ */ F.createElement(hi.Consumer, null, (r) => t(r)) : t(ku);
|
|
10435
10439
|
}
|
|
10436
10440
|
function i0(e) {
|
|
10437
10441
|
return Nu({ attr: { viewBox: "0 0 24 24" }, child: [{ tag: "g", attr: { id: "Circle_Info" }, child: [{ tag: "g", attr: {}, child: [{ tag: "g", attr: {}, child: [{ tag: "path", attr: { d: "M11.5,15a.5.5,0,0,0,1,0h0V10.981a.5.5,0,0,0-1,0Z" }, child: [] }, { tag: "circle", attr: { cx: "12", cy: "8.999", r: "0.5" }, child: [] }] }, { tag: "path", attr: { d: "M12,2.065A9.934,9.934,0,1,1,2.066,12,9.945,9.945,0,0,1,12,2.065Zm0,18.867A8.934,8.934,0,1,0,3.066,12,8.944,8.944,0,0,0,12,20.932Z" }, child: [] }] }] }] })(e);
|
|
@@ -10457,7 +10461,7 @@ function za({
|
|
|
10457
10461
|
c0,
|
|
10458
10462
|
{
|
|
10459
10463
|
"data-slot": "label",
|
|
10460
|
-
className:
|
|
10464
|
+
className: k(
|
|
10461
10465
|
"qodo qodo-label flex items-center text-purple-muted-300 gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50",
|
|
10462
10466
|
e
|
|
10463
10467
|
),
|
|
@@ -10491,7 +10495,7 @@ function u0({ className: e, ...t }) {
|
|
|
10491
10495
|
"div",
|
|
10492
10496
|
{
|
|
10493
10497
|
"data-slot": "form-item",
|
|
10494
|
-
className:
|
|
10498
|
+
className: k("qodo qodo-form-item grid gap-2", e),
|
|
10495
10499
|
...t
|
|
10496
10500
|
}
|
|
10497
10501
|
) });
|
|
@@ -10505,7 +10509,7 @@ function f0({
|
|
|
10505
10509
|
za,
|
|
10506
10510
|
{
|
|
10507
10511
|
"data-slot": "form-label",
|
|
10508
|
-
className:
|
|
10512
|
+
className: k(
|
|
10509
10513
|
"data-[error=true]:text-destructive font-normal text-sm",
|
|
10510
10514
|
e
|
|
10511
10515
|
),
|
|
@@ -10534,7 +10538,7 @@ function m0({ className: e, ...t }) {
|
|
|
10534
10538
|
{
|
|
10535
10539
|
"data-slot": "form-description",
|
|
10536
10540
|
id: r,
|
|
10537
|
-
className:
|
|
10541
|
+
className: k("text-purple-muted-300 text-sm", e),
|
|
10538
10542
|
...t
|
|
10539
10543
|
}
|
|
10540
10544
|
);
|
|
@@ -10546,13 +10550,13 @@ function g0({ className: e, ...t }) {
|
|
|
10546
10550
|
{
|
|
10547
10551
|
"data-slot": "form-message",
|
|
10548
10552
|
id: n,
|
|
10549
|
-
className:
|
|
10553
|
+
className: k("text-destructive text-sm", e),
|
|
10550
10554
|
...t,
|
|
10551
10555
|
children: o
|
|
10552
10556
|
}
|
|
10553
10557
|
) : null;
|
|
10554
10558
|
}
|
|
10555
|
-
var [no,
|
|
10559
|
+
var [no, KR] = Ce("Tooltip", [
|
|
10556
10560
|
bt
|
|
10557
10561
|
]), oo = bt(), _u = "TooltipProvider", v0 = 700, ra = "tooltip.open", [h0, qa] = no(_u), Au = (e) => {
|
|
10558
10562
|
const {
|
|
@@ -10673,20 +10677,20 @@ var Ua = "TooltipPortal", [b0, y0] = no(Ua, {
|
|
|
10673
10677
|
forceMount: void 0
|
|
10674
10678
|
}), Ou = (e) => {
|
|
10675
10679
|
const { __scopeTooltip: t, forceMount: r, children: n, container: o } = e, a = Vr(Ua, t);
|
|
10676
|
-
return /* @__PURE__ */ s.jsx(b0, { scope: t, forceMount: r, children: /* @__PURE__ */ s.jsx(
|
|
10680
|
+
return /* @__PURE__ */ s.jsx(b0, { scope: t, forceMount: r, children: /* @__PURE__ */ s.jsx(ke, { present: r || a.open, children: /* @__PURE__ */ s.jsx(dr, { asChild: !0, container: o, children: n }) }) });
|
|
10677
10681
|
};
|
|
10678
10682
|
Ou.displayName = Ua;
|
|
10679
10683
|
var rr = "TooltipContent", Du = d.forwardRef(
|
|
10680
10684
|
(e, t) => {
|
|
10681
10685
|
const r = y0(rr, e.__scopeTooltip), { forceMount: n = r.forceMount, side: o = "top", ...a } = e, i = Vr(rr, e.__scopeTooltip);
|
|
10682
|
-
return /* @__PURE__ */ s.jsx(
|
|
10686
|
+
return /* @__PURE__ */ s.jsx(ke, { present: n || i.open, children: i.disableHoverableContent ? /* @__PURE__ */ s.jsx($u, { side: o, ...a, ref: t }) : /* @__PURE__ */ s.jsx(w0, { side: o, ...a, ref: t }) });
|
|
10683
10687
|
}
|
|
10684
10688
|
), w0 = d.forwardRef((e, t) => {
|
|
10685
10689
|
const r = Vr(rr, e.__scopeTooltip), n = qa(rr, e.__scopeTooltip), o = d.useRef(null), a = ae(t, o), [i, l] = d.useState(null), { trigger: c, onClose: u } = r, f = o.current, { onPointerInTransitChange: p } = n, g = d.useCallback(() => {
|
|
10686
10690
|
l(null), p(!1);
|
|
10687
10691
|
}, [p]), m = d.useCallback(
|
|
10688
10692
|
(b, v) => {
|
|
10689
|
-
const x = b.currentTarget, y = { x: b.clientX, y: b.clientY }, h =
|
|
10693
|
+
const x = b.currentTarget, y = { x: b.clientX, y: b.clientY }, h = k0(y, x.getBoundingClientRect()), C = R0(y, h), S = N0(v.getBoundingClientRect()), N = P0([...C, ...S]);
|
|
10690
10694
|
l(N), p(!0);
|
|
10691
10695
|
},
|
|
10692
10696
|
[p]
|
|
@@ -10770,7 +10774,7 @@ var Lu = "TooltipArrow", Fu = d.forwardRef(
|
|
|
10770
10774
|
}
|
|
10771
10775
|
);
|
|
10772
10776
|
Fu.displayName = Lu;
|
|
10773
|
-
function
|
|
10777
|
+
function k0(e, t) {
|
|
10774
10778
|
const r = Math.abs(t.top - e.y), n = Math.abs(t.bottom - e.y), o = Math.abs(t.right - e.x), a = Math.abs(t.left - e.x);
|
|
10775
10779
|
switch (Math.min(r, n, o, a)) {
|
|
10776
10780
|
case a:
|
|
@@ -10785,7 +10789,7 @@ function R0(e, t) {
|
|
|
10785
10789
|
throw new Error("unreachable");
|
|
10786
10790
|
}
|
|
10787
10791
|
}
|
|
10788
|
-
function
|
|
10792
|
+
function R0(e, t, r = 5) {
|
|
10789
10793
|
const n = [];
|
|
10790
10794
|
switch (t) {
|
|
10791
10795
|
case "top":
|
|
@@ -10898,7 +10902,7 @@ function Wu({
|
|
|
10898
10902
|
{
|
|
10899
10903
|
"data-slot": "tooltip-content",
|
|
10900
10904
|
sideOffset: t,
|
|
10901
|
-
className:
|
|
10905
|
+
className: k(
|
|
10902
10906
|
"qodo qodo-tooltip-content bg-purple-muted-700 border border-purple-muted-600 text-primary-foreground animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",
|
|
10903
10907
|
e,
|
|
10904
10908
|
{ "py-2.5": n }
|
|
@@ -11030,7 +11034,7 @@ qu.displayName = Ha;
|
|
|
11030
11034
|
var Uu = "RadioIndicator", Hu = d.forwardRef(
|
|
11031
11035
|
(e, t) => {
|
|
11032
11036
|
const { __scopeRadio: r, forceMount: n, ...o } = e, a = W0(Uu, r);
|
|
11033
|
-
return /* @__PURE__ */ s.jsx(
|
|
11037
|
+
return /* @__PURE__ */ s.jsx(ke, { present: n || a.checked, children: /* @__PURE__ */ s.jsx(
|
|
11034
11038
|
q.span,
|
|
11035
11039
|
{
|
|
11036
11040
|
"data-state": Yu(a.checked),
|
|
@@ -11087,7 +11091,7 @@ Ku.displayName = z0;
|
|
|
11087
11091
|
function Yu(e) {
|
|
11088
11092
|
return e ? "checked" : "unchecked";
|
|
11089
11093
|
}
|
|
11090
|
-
var q0 = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], ao = "RadioGroup", [U0,
|
|
11094
|
+
var q0 = ["ArrowUp", "ArrowDown", "ArrowLeft", "ArrowRight"], ao = "RadioGroup", [U0, YR] = Ce(ao, [
|
|
11091
11095
|
St,
|
|
11092
11096
|
zu
|
|
11093
11097
|
]), Xu = St(), Zu = zu(), [H0, K0] = U0(ao), Ju = d.forwardRef(
|
|
@@ -11207,7 +11211,7 @@ function Q0({
|
|
|
11207
11211
|
"data-slot": "radio-group",
|
|
11208
11212
|
"data-readonly": r || void 0,
|
|
11209
11213
|
disabled: n.disabled || r,
|
|
11210
|
-
className:
|
|
11214
|
+
className: k("qodo qodo-radio-group grid gap-3 group", e),
|
|
11211
11215
|
...n
|
|
11212
11216
|
}
|
|
11213
11217
|
);
|
|
@@ -11220,7 +11224,7 @@ function eC({
|
|
|
11220
11224
|
Z0,
|
|
11221
11225
|
{
|
|
11222
11226
|
"data-slot": "radio-group-item",
|
|
11223
|
-
className:
|
|
11227
|
+
className: k(
|
|
11224
11228
|
"qodo qodo-radio-group-item cursor-pointer border-[var(--border-input-neutral-idle)] bg-[var(--fill-input-neutral-idle)] focus-visible:border-ring focus-visible:ring-ring/50",
|
|
11225
11229
|
"aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",
|
|
11226
11230
|
"aspect-square size-4 shrink-0 rounded-full border shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px]",
|
|
@@ -11260,7 +11264,7 @@ const rf = F.forwardRef((e, t) => {
|
|
|
11260
11264
|
i || (p == null || p({
|
|
11261
11265
|
target: { value: v }
|
|
11262
11266
|
}), o == null || o(v));
|
|
11263
|
-
}, b =
|
|
11267
|
+
}, b = k(
|
|
11264
11268
|
"qodo qodo-custom-radio-group",
|
|
11265
11269
|
"flex",
|
|
11266
11270
|
{
|
|
@@ -11293,11 +11297,11 @@ const Ka = ({
|
|
|
11293
11297
|
labelClassName: n,
|
|
11294
11298
|
descriptionClassName: o,
|
|
11295
11299
|
labelWrapperClassName: a
|
|
11296
|
-
}) => /* @__PURE__ */ s.jsxs("div", { className:
|
|
11300
|
+
}) => /* @__PURE__ */ s.jsxs("div", { className: k("flex flex-col gap-2", a), children: [
|
|
11297
11301
|
e && /* @__PURE__ */ s.jsx(
|
|
11298
11302
|
"div",
|
|
11299
11303
|
{
|
|
11300
|
-
className:
|
|
11304
|
+
className: k(
|
|
11301
11305
|
"text-[var(--text-bg-neutral-mid)] font-normal text-sm",
|
|
11302
11306
|
"group-has-[button:disabled]/radio-item:opacity-70",
|
|
11303
11307
|
"group-has-[button:disabled]/checkbox-item:opacity-70",
|
|
@@ -11312,7 +11316,7 @@ const Ka = ({
|
|
|
11312
11316
|
t && /* @__PURE__ */ s.jsx(
|
|
11313
11317
|
"div",
|
|
11314
11318
|
{
|
|
11315
|
-
className:
|
|
11319
|
+
className: k(
|
|
11316
11320
|
"text-sm text-[var(--text-bg-neutral-mild)] font-normal",
|
|
11317
11321
|
o
|
|
11318
11322
|
),
|
|
@@ -11338,7 +11342,7 @@ const nf = ({
|
|
|
11338
11342
|
za,
|
|
11339
11343
|
{
|
|
11340
11344
|
htmlFor: f,
|
|
11341
|
-
className:
|
|
11345
|
+
className: k(
|
|
11342
11346
|
"group/radio-item flex items-start p-4 rounded-lg gap-2 transition-all duration-200",
|
|
11343
11347
|
"font-normal leading-5 cursor-pointer",
|
|
11344
11348
|
"has-[button:disabled]:cursor-not-allowed has-[button:disabled]:hover:bg-transparent",
|
|
@@ -11375,12 +11379,12 @@ const nf = ({
|
|
|
11375
11379
|
);
|
|
11376
11380
|
};
|
|
11377
11381
|
nf.displayName = "RadioGroupItemComponent";
|
|
11378
|
-
const tC = Ft(rf), rC = (e) => /* @__PURE__ */ s.jsx("hr", { className: "w-full h-px border-[var(--base-sidebar-border)]", ...e }), nC = ({ children: e, description: t, className: r }) => /* @__PURE__ */ s.jsxs("div", { className:
|
|
11382
|
+
const tC = Ft(rf), rC = (e) => /* @__PURE__ */ s.jsx("hr", { className: "w-full h-px border-[var(--base-sidebar-border)]", ...e }), nC = ({ children: e, description: t, className: r }) => /* @__PURE__ */ s.jsxs("div", { className: k("space-y-1", r), children: [
|
|
11379
11383
|
/* @__PURE__ */ s.jsx("h2", { className: "flex items-center gap-2.5 text-2xl text-white", children: e }),
|
|
11380
11384
|
t && /* @__PURE__ */ s.jsx("span", { className: "text-sm text-purple-muted-300", children: t })
|
|
11381
11385
|
] }), of = F.forwardRef(
|
|
11382
11386
|
({ direction: e = "horizontal", className: t, ...r }, n) => {
|
|
11383
|
-
const o =
|
|
11387
|
+
const o = k(
|
|
11384
11388
|
"flex flex-row gap-6",
|
|
11385
11389
|
{
|
|
11386
11390
|
"flex-col": e === "vertical"
|
|
@@ -11401,7 +11405,7 @@ function oC({
|
|
|
11401
11405
|
{
|
|
11402
11406
|
"data-slot": "textarea",
|
|
11403
11407
|
rows: t,
|
|
11404
|
-
className:
|
|
11408
|
+
className: k(
|
|
11405
11409
|
"qodo qodo-textarea border-input px-3 py-2 focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20",
|
|
11406
11410
|
"dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex min-h-16 w-full rounded-md border bg-transparent",
|
|
11407
11411
|
"placeholder:text-purple-muted-400 text-purple-muted-300 shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] selection:bg-primary selection:text-primary-foreground disabled:cursor-not-allowed disabled:opacity-50 disabled:bg-purple-muted-700 disabled:border-purple-muted-500 disabled:text-purple-muted-400 read-only:bg-purple-muted-700 read-only:border-purple-muted-400 read-only:cursor-default read-only:text-purple-muted-200 md:text-sm",
|
|
@@ -11420,7 +11424,7 @@ const aC = F.forwardRef(
|
|
|
11420
11424
|
{
|
|
11421
11425
|
...r,
|
|
11422
11426
|
ref: n,
|
|
11423
|
-
className:
|
|
11427
|
+
className: k(
|
|
11424
11428
|
{
|
|
11425
11429
|
"font-plex-mono text-sm leading-relaxed rounded dark:bg-fill-input-neutral-idle px-3 py-2 border-0": e === "code"
|
|
11426
11430
|
},
|
|
@@ -11442,7 +11446,7 @@ const aC = F.forwardRef(
|
|
|
11442
11446
|
variant: a,
|
|
11443
11447
|
disabled: n,
|
|
11444
11448
|
size: "sm",
|
|
11445
|
-
className:
|
|
11449
|
+
className: k(
|
|
11446
11450
|
"flex items-center gap-1 px-2 py-0.5",
|
|
11447
11451
|
"font-normal whitespace-nowrap",
|
|
11448
11452
|
o
|
|
@@ -11479,7 +11483,7 @@ const aC = F.forwardRef(
|
|
|
11479
11483
|
"div",
|
|
11480
11484
|
{
|
|
11481
11485
|
onClick: r,
|
|
11482
|
-
className:
|
|
11486
|
+
className: k(
|
|
11483
11487
|
"bg-transparent hover:bg-purple-muted-800 rounded-sm py-1 px-2",
|
|
11484
11488
|
a
|
|
11485
11489
|
),
|
|
@@ -11543,7 +11547,7 @@ const aC = F.forwardRef(
|
|
|
11543
11547
|
onResetTags: C = () => {
|
|
11544
11548
|
}
|
|
11545
11549
|
}) => {
|
|
11546
|
-
const [S, N] = Ee(""), [T, j] = Ee(!1),
|
|
11550
|
+
const [S, N] = Ee(""), [T, j] = Ee(!1), R = me(null), W = me(null), U = me(null), [re, te] = Ee();
|
|
11547
11551
|
ot(() => {
|
|
11548
11552
|
W.current && te(W.current.offsetWidth);
|
|
11549
11553
|
}, []);
|
|
@@ -11596,7 +11600,7 @@ const aC = F.forwardRef(
|
|
|
11596
11600
|
children: /* @__PURE__ */ s.jsx(
|
|
11597
11601
|
"div",
|
|
11598
11602
|
{
|
|
11599
|
-
className:
|
|
11603
|
+
className: k(
|
|
11600
11604
|
"max-h-[200px] overflow-y-auto flex flex-col gap-1 p-1",
|
|
11601
11605
|
u
|
|
11602
11606
|
),
|
|
@@ -11612,7 +11616,7 @@ const aC = F.forwardRef(
|
|
|
11612
11616
|
tagVariant: t,
|
|
11613
11617
|
onClick: () => {
|
|
11614
11618
|
var _;
|
|
11615
|
-
V($), N(""), j(!1), (_ =
|
|
11619
|
+
V($), N(""), j(!1), (_ = R.current) == null || _.focus();
|
|
11616
11620
|
}
|
|
11617
11621
|
},
|
|
11618
11622
|
$.id
|
|
@@ -11639,19 +11643,19 @@ const aC = F.forwardRef(
|
|
|
11639
11643
|
onClick: A
|
|
11640
11644
|
}
|
|
11641
11645
|
);
|
|
11642
|
-
return /* @__PURE__ */ s.jsx("div", { className:
|
|
11646
|
+
return /* @__PURE__ */ s.jsx("div", { className: k("w-full", c), children: /* @__PURE__ */ s.jsxs(ja, { open: T && !l, onOpenChange: j, modal: !1, children: [
|
|
11643
11647
|
/* @__PURE__ */ s.jsx(Pa, { className: "w-full", children: /* @__PURE__ */ s.jsxs(
|
|
11644
11648
|
"div",
|
|
11645
11649
|
{
|
|
11646
11650
|
ref: W,
|
|
11647
11651
|
tabIndex: -1,
|
|
11648
|
-
className:
|
|
11652
|
+
className: k(
|
|
11649
11653
|
"flex items-center gap-2 border border-[var(--border-tag-neutral-idle)] bg-purple-muted-800 py-0.5 px-3 rounded-md scrollbar-thin",
|
|
11650
11654
|
{ "opacity-60": l }
|
|
11651
11655
|
),
|
|
11652
11656
|
onClick: ($) => {
|
|
11653
11657
|
var _;
|
|
11654
|
-
$.stopPropagation(), j(!0), (_ =
|
|
11658
|
+
$.stopPropagation(), j(!0), (_ = R.current) == null || _.focus();
|
|
11655
11659
|
},
|
|
11656
11660
|
children: [
|
|
11657
11661
|
G(),
|
|
@@ -11665,7 +11669,7 @@ const aC = F.forwardRef(
|
|
|
11665
11669
|
/* @__PURE__ */ s.jsx(
|
|
11666
11670
|
Tn,
|
|
11667
11671
|
{
|
|
11668
|
-
ref:
|
|
11672
|
+
ref: R,
|
|
11669
11673
|
value: S,
|
|
11670
11674
|
onChange: O,
|
|
11671
11675
|
onClick: ($) => $.stopPropagation(),
|
|
@@ -11674,7 +11678,7 @@ const aC = F.forwardRef(
|
|
|
11674
11678
|
onKeyDown: J,
|
|
11675
11679
|
placeholder: r,
|
|
11676
11680
|
disabled: l || Q,
|
|
11677
|
-
className:
|
|
11681
|
+
className: k(
|
|
11678
11682
|
"m-0 h-6.5 flex-1 min-w-[6rem] border-0 bg-transparent dark:bg-transparent p-0 shadow-none focus-visible:outline-none focus-visible:ring-0 font-normal text-xs",
|
|
11679
11683
|
"placeholder:text-[var(--text-input-neutral-placeholder)] dark:placeholder:text-[var(--text-input-neutral-placeholder)] placeholder:text-xs"
|
|
11680
11684
|
)
|
|
@@ -11715,7 +11719,7 @@ const dC = Ft(cC), uC = 12, bi = {
|
|
|
11715
11719
|
}, yi = {
|
|
11716
11720
|
LTR: "ltr"
|
|
11717
11721
|
};
|
|
11718
|
-
var sf = typeof global == "object" && global && global.Object === Object && global, fC = typeof self == "object" && self && self.Object === Object && self,
|
|
11722
|
+
var sf = typeof global == "object" && global && global.Object === Object && global, fC = typeof self == "object" && self && self.Object === Object && self, kt = sf || fC || Function("return this")(), Sn = kt.Symbol, lf = Object.prototype, pC = lf.hasOwnProperty, mC = lf.toString, xr = Sn ? Sn.toStringTag : void 0;
|
|
11719
11723
|
function gC(e) {
|
|
11720
11724
|
var t = pC.call(e, xr), r = e[xr];
|
|
11721
11725
|
try {
|
|
@@ -11742,18 +11746,18 @@ function cf(e) {
|
|
|
11742
11746
|
var t = typeof e;
|
|
11743
11747
|
return e != null && (t == "object" || t == "function");
|
|
11744
11748
|
}
|
|
11745
|
-
var CC = "[object AsyncFunction]", SC = "[object Function]", EC = "[object GeneratorFunction]",
|
|
11749
|
+
var CC = "[object AsyncFunction]", SC = "[object Function]", EC = "[object GeneratorFunction]", kC = "[object Proxy]";
|
|
11746
11750
|
function df(e) {
|
|
11747
11751
|
if (!cf(e))
|
|
11748
11752
|
return !1;
|
|
11749
11753
|
var t = Br(e);
|
|
11750
|
-
return t == SC || t == EC || t == CC || t ==
|
|
11754
|
+
return t == SC || t == EC || t == CC || t == kC;
|
|
11751
11755
|
}
|
|
11752
|
-
var Mo =
|
|
11756
|
+
var Mo = kt["__core-js_shared__"], Ci = (function() {
|
|
11753
11757
|
var e = /[^.]+$/.exec(Mo && Mo.keys && Mo.keys.IE_PROTO || "");
|
|
11754
11758
|
return e ? "Symbol(src)_1." + e : "";
|
|
11755
11759
|
})();
|
|
11756
|
-
function
|
|
11760
|
+
function RC(e) {
|
|
11757
11761
|
return !!Ci && Ci in e;
|
|
11758
11762
|
}
|
|
11759
11763
|
var NC = Function.prototype, jC = NC.toString;
|
|
@@ -11774,7 +11778,7 @@ var PC = /[\\^$.*+?()[\]{}|]/g, TC = /^\[object .+?Constructor\]$/, _C = Functio
|
|
|
11774
11778
|
"^" + IC.call(MC).replace(PC, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
11775
11779
|
);
|
|
11776
11780
|
function DC(e) {
|
|
11777
|
-
if (!cf(e) ||
|
|
11781
|
+
if (!cf(e) || RC(e))
|
|
11778
11782
|
return !1;
|
|
11779
11783
|
var t = df(e) ? OC : TC;
|
|
11780
11784
|
return t.test(Vt(e));
|
|
@@ -11786,7 +11790,7 @@ function Gr(e, t) {
|
|
|
11786
11790
|
var r = $C(e, t);
|
|
11787
11791
|
return DC(r) ? r : void 0;
|
|
11788
11792
|
}
|
|
11789
|
-
var oa = Gr(
|
|
11793
|
+
var oa = Gr(kt, "WeakMap"), LC = 9007199254740991;
|
|
11790
11794
|
function uf(e) {
|
|
11791
11795
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= LC;
|
|
11792
11796
|
}
|
|
@@ -11810,7 +11814,7 @@ var pf = Object.prototype, GC = pf.hasOwnProperty, WC = pf.propertyIsEnumerable,
|
|
|
11810
11814
|
function qC() {
|
|
11811
11815
|
return !1;
|
|
11812
11816
|
}
|
|
11813
|
-
var mf = typeof exports == "object" && exports && !exports.nodeType && exports, Ei = mf && typeof module == "object" && module && !module.nodeType && module, UC = Ei && Ei.exports === mf,
|
|
11817
|
+
var mf = typeof exports == "object" && exports && !exports.nodeType && exports, Ei = mf && typeof module == "object" && module && !module.nodeType && module, UC = Ei && Ei.exports === mf, ki = UC ? kt.Buffer : void 0, HC = ki ? ki.isBuffer : void 0, KC = HC || qC, YC = "[object Arguments]", XC = "[object Array]", ZC = "[object Boolean]", JC = "[object Date]", QC = "[object Error]", e1 = "[object Function]", t1 = "[object Map]", r1 = "[object Number]", n1 = "[object Object]", o1 = "[object RegExp]", a1 = "[object Set]", s1 = "[object String]", i1 = "[object WeakMap]", l1 = "[object ArrayBuffer]", c1 = "[object DataView]", d1 = "[object Float32Array]", u1 = "[object Float64Array]", f1 = "[object Int8Array]", p1 = "[object Int16Array]", m1 = "[object Int32Array]", g1 = "[object Uint8Array]", v1 = "[object Uint8ClampedArray]", h1 = "[object Uint16Array]", x1 = "[object Uint32Array]", pe = {};
|
|
11814
11818
|
pe[d1] = pe[u1] = pe[f1] = pe[p1] = pe[m1] = pe[g1] = pe[v1] = pe[h1] = pe[x1] = !0;
|
|
11815
11819
|
pe[YC] = pe[XC] = pe[l1] = pe[ZC] = pe[c1] = pe[JC] = pe[QC] = pe[e1] = pe[t1] = pe[r1] = pe[n1] = pe[o1] = pe[a1] = pe[s1] = pe[i1] = !1;
|
|
11816
11820
|
function b1(e) {
|
|
@@ -11821,28 +11825,28 @@ function y1(e) {
|
|
|
11821
11825
|
return e(t);
|
|
11822
11826
|
};
|
|
11823
11827
|
}
|
|
11824
|
-
var gf = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
11828
|
+
var gf = typeof exports == "object" && exports && !exports.nodeType && exports, kr = gf && typeof module == "object" && module && !module.nodeType && module, w1 = kr && kr.exports === gf, Oo = w1 && sf.process, Ri = (function() {
|
|
11825
11829
|
try {
|
|
11826
|
-
var e =
|
|
11830
|
+
var e = kr && kr.require && kr.require("util").types;
|
|
11827
11831
|
return e || Oo && Oo.binding && Oo.binding("util");
|
|
11828
11832
|
} catch {
|
|
11829
11833
|
}
|
|
11830
|
-
})(), Ni =
|
|
11834
|
+
})(), Ni = Ri && Ri.isTypedArray, C1 = Ni ? y1(Ni) : b1;
|
|
11831
11835
|
function S1(e, t) {
|
|
11832
11836
|
return function(r) {
|
|
11833
11837
|
return e(t(r));
|
|
11834
11838
|
};
|
|
11835
11839
|
}
|
|
11836
|
-
var E1 = S1(Object.keys, Object),
|
|
11840
|
+
var E1 = S1(Object.keys, Object), k1 = Object.prototype, R1 = k1.hasOwnProperty;
|
|
11837
11841
|
function N1(e) {
|
|
11838
11842
|
if (!ff(e))
|
|
11839
11843
|
return E1(e);
|
|
11840
11844
|
var t = [];
|
|
11841
11845
|
for (var r in Object(e))
|
|
11842
|
-
|
|
11846
|
+
R1.call(e, r) && r != "constructor" && t.push(r);
|
|
11843
11847
|
return t;
|
|
11844
11848
|
}
|
|
11845
|
-
var aa = Gr(
|
|
11849
|
+
var aa = Gr(kt, "Map"), sa = Gr(kt, "DataView"), ia = Gr(kt, "Promise"), la = Gr(kt, "Set"), ji = "[object Map]", j1 = "[object Object]", Pi = "[object Promise]", Ti = "[object Set]", _i = "[object WeakMap]", Ai = "[object DataView]", P1 = Vt(sa), T1 = Vt(aa), _1 = Vt(ia), A1 = Vt(la), I1 = Vt(oa), Tt = Br;
|
|
11846
11850
|
(sa && Tt(new sa(new ArrayBuffer(1))) != Ai || aa && Tt(new aa()) != ji || ia && Tt(ia.resolve()) != Pi || la && Tt(new la()) != Ti || oa && Tt(new oa()) != _i) && (Tt = function(e) {
|
|
11847
11851
|
var t = Br(e), r = t == j1 ? e.constructor : void 0, n = r ? Vt(r) : "";
|
|
11848
11852
|
if (n)
|
|
@@ -11948,7 +11952,7 @@ function bf({
|
|
|
11948
11952
|
}, v = () => p ? /* @__PURE__ */ s.jsx(Bg, { className: "w-2 h-2 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)]" }) : /* @__PURE__ */ s.jsx(
|
|
11949
11953
|
sr,
|
|
11950
11954
|
{
|
|
11951
|
-
className:
|
|
11955
|
+
className: k(
|
|
11952
11956
|
"h-4 w-4 flex-shrink-0 transition-opacity text-[var(--text-interactive-neutral-idle)] opacity-0",
|
|
11953
11957
|
{ "opacity-100": g }
|
|
11954
11958
|
)
|
|
@@ -11969,7 +11973,7 @@ function bf({
|
|
|
11969
11973
|
}, y = () => /* @__PURE__ */ s.jsxs(
|
|
11970
11974
|
"div",
|
|
11971
11975
|
{
|
|
11972
|
-
className:
|
|
11976
|
+
className: k("flex items-center w-full gap-2 flex-row", {
|
|
11973
11977
|
"flex-row-reverse": a === yi.LTR
|
|
11974
11978
|
}),
|
|
11975
11979
|
style: { paddingLeft: c },
|
|
@@ -11989,7 +11993,7 @@ function bf({
|
|
|
11989
11993
|
{
|
|
11990
11994
|
disabled: e.disabled || o,
|
|
11991
11995
|
onSelect: () => r(e.value, i),
|
|
11992
|
-
className:
|
|
11996
|
+
className: k(
|
|
11993
11997
|
"text-[var(--text-interactive-neutral-idle)] hover:text-[var(--text-interactive-neutral-hover)]! cursor-pointer disabled:cursor-not-allowed",
|
|
11994
11998
|
"focus:text-[var(--text-interactive-neutral-active)] data-[selected=true]:text-[var(--text-interactive-neutral-hover)]!",
|
|
11995
11999
|
{
|
|
@@ -12022,7 +12026,7 @@ function q1({
|
|
|
12022
12026
|
}) {
|
|
12023
12027
|
const [x, y] = Ee(0), [h, C] = Ee(!1), S = me(null), N = o === bi.MULTIPLE, [T, j] = Ee(
|
|
12024
12028
|
e !== void 0 ? e : N ? [] : ""
|
|
12025
|
-
),
|
|
12029
|
+
), R = F1(T), W = new Set(R);
|
|
12026
12030
|
ot(() => {
|
|
12027
12031
|
S.current && y(S.current.offsetWidth);
|
|
12028
12032
|
}, [T]);
|
|
@@ -12054,13 +12058,13 @@ function q1({
|
|
|
12054
12058
|
E.has(O) ? E.delete(O) : E.add(O), hf(t, E);
|
|
12055
12059
|
}
|
|
12056
12060
|
const M = () => {
|
|
12057
|
-
const O = xf(t,
|
|
12061
|
+
const O = xf(t, R);
|
|
12058
12062
|
return O.length === 0 ? /* @__PURE__ */ s.jsx(
|
|
12059
12063
|
jr,
|
|
12060
12064
|
{
|
|
12061
12065
|
variant: p,
|
|
12062
12066
|
size: "md",
|
|
12063
|
-
className:
|
|
12067
|
+
className: k("text-purple-muted-300", f),
|
|
12064
12068
|
children: a
|
|
12065
12069
|
}
|
|
12066
12070
|
) : O.map((I) => {
|
|
@@ -12070,7 +12074,7 @@ function q1({
|
|
|
12070
12074
|
{
|
|
12071
12075
|
variant: p,
|
|
12072
12076
|
size: "md",
|
|
12073
|
-
className:
|
|
12077
|
+
className: k("text-[var(--text-bg-neutral-mid)]", f),
|
|
12074
12078
|
children: /* @__PURE__ */ s.jsxs("div", { className: "flex items-center gap-1", children: [
|
|
12075
12079
|
B && /* @__PURE__ */ s.jsx("div", { className: "flex-shrink-0", children: B }),
|
|
12076
12080
|
/* @__PURE__ */ s.jsx("span", { children: J })
|
|
@@ -12093,7 +12097,7 @@ function q1({
|
|
|
12093
12097
|
/* @__PURE__ */ s.jsx(Pa, { asChild: !0, disabled: n, children: /* @__PURE__ */ s.jsxs(
|
|
12094
12098
|
"div",
|
|
12095
12099
|
{
|
|
12096
|
-
className:
|
|
12100
|
+
className: k(
|
|
12097
12101
|
"flex items-center gap-1.5 justify-between py-1 px-3 w-[100%] border border-[var(--border-interactive-neutral-idle)] bg-[var(--fill-input-neutral-idle)] rounded-sm scrollbar-thin",
|
|
12098
12102
|
"aria-invalid:!border-destructive aria-invalid:!ring-destructive/20 dark:aria-invalid:!ring-destructive/40",
|
|
12099
12103
|
{
|
|
@@ -12109,7 +12113,7 @@ function q1({
|
|
|
12109
12113
|
/* @__PURE__ */ s.jsx(
|
|
12110
12114
|
"div",
|
|
12111
12115
|
{
|
|
12112
|
-
className:
|
|
12116
|
+
className: k(
|
|
12113
12117
|
"flex justify-start text-start w-[100%] whitespace-nowrap overflow-x-auto gap-1.5",
|
|
12114
12118
|
c
|
|
12115
12119
|
),
|
|
@@ -12189,7 +12193,7 @@ const U1 = Ft(yf), wf = F.forwardRef((e, t) => {
|
|
|
12189
12193
|
r === void 0 && m(N), u == null || u({
|
|
12190
12194
|
target: { value: N }
|
|
12191
12195
|
}), o == null || o(N);
|
|
12192
|
-
}, y =
|
|
12196
|
+
}, y = k(
|
|
12193
12197
|
"qodo qodo-custom-checkbox-group",
|
|
12194
12198
|
"flex",
|
|
12195
12199
|
{
|
|
@@ -12212,7 +12216,7 @@ const U1 = Ft(yf), wf = F.forwardRef((e, t) => {
|
|
|
12212
12216
|
return /* @__PURE__ */ s.jsx("div", { ref: t, className: y, ...p, children: h() });
|
|
12213
12217
|
});
|
|
12214
12218
|
wf.displayName = "CheckboxGroupComponent";
|
|
12215
|
-
var io = "Checkbox", [H1,
|
|
12219
|
+
var io = "Checkbox", [H1, XR] = Ce(io), [K1, Qa] = H1(io);
|
|
12216
12220
|
function Y1(e) {
|
|
12217
12221
|
const {
|
|
12218
12222
|
__scopeCheckbox: t,
|
|
@@ -12351,11 +12355,11 @@ var es = d.forwardRef(
|
|
|
12351
12355
|
}
|
|
12352
12356
|
);
|
|
12353
12357
|
es.displayName = io;
|
|
12354
|
-
var Ef = "CheckboxIndicator",
|
|
12358
|
+
var Ef = "CheckboxIndicator", kf = d.forwardRef(
|
|
12355
12359
|
(e, t) => {
|
|
12356
12360
|
const { __scopeCheckbox: r, forceMount: n, ...o } = e, a = Qa(Ef, r);
|
|
12357
12361
|
return /* @__PURE__ */ s.jsx(
|
|
12358
|
-
|
|
12362
|
+
ke,
|
|
12359
12363
|
{
|
|
12360
12364
|
present: n || pt(a.checked) || a.checked === !0,
|
|
12361
12365
|
children: /* @__PURE__ */ s.jsx(
|
|
@@ -12372,8 +12376,8 @@ var Ef = "CheckboxIndicator", Rf = d.forwardRef(
|
|
|
12372
12376
|
);
|
|
12373
12377
|
}
|
|
12374
12378
|
);
|
|
12375
|
-
|
|
12376
|
-
var
|
|
12379
|
+
kf.displayName = Ef;
|
|
12380
|
+
var Rf = "CheckboxBubbleInput", Nf = d.forwardRef(
|
|
12377
12381
|
({ __scopeCheckbox: e, ...t }, r) => {
|
|
12378
12382
|
const {
|
|
12379
12383
|
control: n,
|
|
@@ -12387,7 +12391,7 @@ var kf = "CheckboxBubbleInput", Nf = d.forwardRef(
|
|
|
12387
12391
|
form: p,
|
|
12388
12392
|
bubbleInput: g,
|
|
12389
12393
|
setBubbleInput: m
|
|
12390
|
-
} = Qa(
|
|
12394
|
+
} = Qa(Rf, e), b = ae(r, m), v = Vn(a), x = $n(n);
|
|
12391
12395
|
d.useEffect(() => {
|
|
12392
12396
|
const h = g;
|
|
12393
12397
|
if (!h) return;
|
|
@@ -12431,7 +12435,7 @@ var kf = "CheckboxBubbleInput", Nf = d.forwardRef(
|
|
|
12431
12435
|
);
|
|
12432
12436
|
}
|
|
12433
12437
|
);
|
|
12434
|
-
Nf.displayName =
|
|
12438
|
+
Nf.displayName = Rf;
|
|
12435
12439
|
function X1(e) {
|
|
12436
12440
|
return typeof e == "function";
|
|
12437
12441
|
}
|
|
@@ -12445,7 +12449,7 @@ const Pf = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
12445
12449
|
es,
|
|
12446
12450
|
{
|
|
12447
12451
|
ref: r,
|
|
12448
|
-
className:
|
|
12452
|
+
className: k(
|
|
12449
12453
|
"h-4 w-4 shrink-0 rounded-xs shadow disabled:cursor-not-allowed bg-[var(--fill-input-neutral-idle)] border border-[var(--border-input-neutral-idle)] hover:border-[var(--border-input-neutral-hover)] hover:bg-[var(--fill-input-neutral-hover)] ",
|
|
12450
12454
|
"active:border-[var(--border-input-neutral-active)] active:bg-[var(--fill-input-neutral-active)] disabled:border-[var(--border-input-neutral-disabled)] disabled:bg-[var(--fill-input-neutral-disabled)] ",
|
|
12451
12455
|
"hover:disabled:border-[var(--border-input-neutral-disabled)] hover:disabled:bg-[var(--fill-input-neutral-disabled)] ",
|
|
@@ -12454,9 +12458,9 @@ const Pf = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
12454
12458
|
),
|
|
12455
12459
|
...t,
|
|
12456
12460
|
children: /* @__PURE__ */ s.jsx(
|
|
12457
|
-
|
|
12461
|
+
kf,
|
|
12458
12462
|
{
|
|
12459
|
-
className:
|
|
12463
|
+
className: k("flex items-center justify-center text-current"),
|
|
12460
12464
|
children: t.checked === "indeterminate" ? /* @__PURE__ */ s.jsx(Zg, { className: "h-4 w-4 stroke-[var(--icon-input-emphasis-idle)]" }) : /* @__PURE__ */ s.jsx(sr, { className: "h-4 w-4 stroke-[var(--icon-input-emphasis-idle)]" })
|
|
12461
12465
|
}
|
|
12462
12466
|
)
|
|
@@ -12480,7 +12484,7 @@ const Tf = ({
|
|
|
12480
12484
|
za,
|
|
12481
12485
|
{
|
|
12482
12486
|
htmlFor: r,
|
|
12483
|
-
className:
|
|
12487
|
+
className: k(
|
|
12484
12488
|
"group/checkbox-item flex items-start p-4 rounded-lg gap-2 transition-all duration-200",
|
|
12485
12489
|
"font-normal text-purple-muted-200 dark:text-purple-muted-200 leading-5",
|
|
12486
12490
|
{
|
|
@@ -12498,7 +12502,7 @@ const Tf = ({
|
|
|
12498
12502
|
disabled: e || t,
|
|
12499
12503
|
checked: n,
|
|
12500
12504
|
onCheckedChange: o,
|
|
12501
|
-
className:
|
|
12505
|
+
className: k("mt-0.5", f)
|
|
12502
12506
|
}
|
|
12503
12507
|
),
|
|
12504
12508
|
/* @__PURE__ */ s.jsx(
|
|
@@ -12527,7 +12531,7 @@ const Z1 = Ft(
|
|
|
12527
12531
|
onSubmit: a = () => {
|
|
12528
12532
|
},
|
|
12529
12533
|
...i
|
|
12530
|
-
} = e, { handleSubmit: l } = o, c =
|
|
12534
|
+
} = e, { handleSubmit: l } = o, c = k("qodo qodo-form", "flex flex-col gap-6", t);
|
|
12531
12535
|
return /* @__PURE__ */ s.jsx(Zw, { methods: o, disabled: r, readOnly: n, children: /* @__PURE__ */ s.jsx("form", { className: c, onSubmit: l(a), ...i }) });
|
|
12532
12536
|
};
|
|
12533
12537
|
Me.Button = Qw;
|
|
@@ -12683,14 +12687,14 @@ function ES(e) {
|
|
|
12683
12687
|
getById: (i) => t().getElementById(i)
|
|
12684
12688
|
};
|
|
12685
12689
|
}
|
|
12686
|
-
function
|
|
12690
|
+
function kS(e) {
|
|
12687
12691
|
return new Proxy({}, {
|
|
12688
12692
|
get(t, r) {
|
|
12689
12693
|
return r === "style" ? (n) => e({ style: n }).style : e;
|
|
12690
12694
|
}
|
|
12691
12695
|
});
|
|
12692
12696
|
}
|
|
12693
|
-
var
|
|
12697
|
+
var RS = () => (e) => Array.from(new Set(e)), Of = typeof globalThis.document < "u" ? zi : ot;
|
|
12694
12698
|
function En(e) {
|
|
12695
12699
|
const t = e().value ?? e().defaultValue, r = e().isEqual ?? Object.is, [n] = Ee(t), [o, a] = Ee(n), i = e().value !== void 0, l = me(o);
|
|
12696
12700
|
l.current = i ? e().value : o;
|
|
@@ -12885,17 +12889,17 @@ function PS(e, t = {}) {
|
|
|
12885
12889
|
}
|
|
12886
12890
|
y((J = e.states[M]) == null ? void 0 : J.entry);
|
|
12887
12891
|
}
|
|
12888
|
-
})), j = me(void 0),
|
|
12892
|
+
})), j = me(void 0), R = me(Zt.NotStarted);
|
|
12889
12893
|
Of(() => {
|
|
12890
12894
|
queueMicrotask(() => {
|
|
12891
|
-
const O =
|
|
12892
|
-
|
|
12895
|
+
const O = R.current === Zt.Started;
|
|
12896
|
+
R.current = Zt.Started, n(O ? "rehydrating..." : "initializing...");
|
|
12893
12897
|
const E = j.current ?? T.initial;
|
|
12894
12898
|
T.invoke(E, O ? T.get() : Do);
|
|
12895
12899
|
});
|
|
12896
12900
|
const M = u.current, A = T.ref.current;
|
|
12897
12901
|
return () => {
|
|
12898
|
-
n("unmounting..."), j.current = A,
|
|
12902
|
+
n("unmounting..."), j.current = A, R.current = Zt.Stopped, M.forEach((O) => O == null ? void 0 : O()), u.current = /* @__PURE__ */ new Map(), f.current = null, queueMicrotask(() => {
|
|
12899
12903
|
y(e.exit);
|
|
12900
12904
|
});
|
|
12901
12905
|
};
|
|
@@ -12903,7 +12907,7 @@ function PS(e, t = {}) {
|
|
|
12903
12907
|
const W = () => "ref" in T ? T.ref.current : T.get(), U = (M) => {
|
|
12904
12908
|
queueMicrotask(() => {
|
|
12905
12909
|
var J, P;
|
|
12906
|
-
if (
|
|
12910
|
+
if (R.current !== Zt.Started) return;
|
|
12907
12911
|
p.current = g.current, g.current = M;
|
|
12908
12912
|
let A = W();
|
|
12909
12913
|
const O = (
|
|
@@ -12928,7 +12932,7 @@ function PS(e, t = {}) {
|
|
|
12928
12932
|
refs: v,
|
|
12929
12933
|
computed: N,
|
|
12930
12934
|
event: m(),
|
|
12931
|
-
getStatus: () =>
|
|
12935
|
+
getStatus: () => R.current
|
|
12932
12936
|
};
|
|
12933
12937
|
}
|
|
12934
12938
|
function Df(e) {
|
|
@@ -12946,7 +12950,7 @@ function Di(e) {
|
|
|
12946
12950
|
fa(() => e());
|
|
12947
12951
|
});
|
|
12948
12952
|
}
|
|
12949
|
-
var _S =
|
|
12953
|
+
var _S = kS((e) => e);
|
|
12950
12954
|
function AS(...e) {
|
|
12951
12955
|
return (t) => {
|
|
12952
12956
|
const r = [];
|
|
@@ -13048,7 +13052,7 @@ const [$S, ns] = Wr({
|
|
|
13048
13052
|
return /* @__PURE__ */ s.jsx(et.div, { ...o, ref: t });
|
|
13049
13053
|
});
|
|
13050
13054
|
Ff.displayName = "StepsIndicator";
|
|
13051
|
-
const [LS,
|
|
13055
|
+
const [LS, ZR] = Wr({
|
|
13052
13056
|
name: "StepsItemContext",
|
|
13053
13057
|
hookName: "useStepsItemContext",
|
|
13054
13058
|
providerName: "<StepsItem />"
|
|
@@ -13351,7 +13355,7 @@ var qS = {
|
|
|
13351
13355
|
if (!pS(t, 0, e))
|
|
13352
13356
|
throw new RangeError(`[zag-js/steps] step index ${t} is out of bounds`);
|
|
13353
13357
|
};
|
|
13354
|
-
|
|
13358
|
+
RS()([
|
|
13355
13359
|
"count",
|
|
13356
13360
|
"dir",
|
|
13357
13361
|
"getRootNode",
|
|
@@ -13364,7 +13368,7 @@ kS()([
|
|
|
13364
13368
|
"step",
|
|
13365
13369
|
"defaultStep"
|
|
13366
13370
|
]);
|
|
13367
|
-
const [
|
|
13371
|
+
const [JR, HS] = Wr({
|
|
13368
13372
|
name: "EnvironmentContext",
|
|
13369
13373
|
hookName: "useEnvironmentContext",
|
|
13370
13374
|
providerName: "<EnvironmentProvider />",
|
|
@@ -13374,7 +13378,7 @@ const [Jk, HS] = Wr({
|
|
|
13374
13378
|
getDocument: () => document,
|
|
13375
13379
|
getWindow: () => window
|
|
13376
13380
|
}
|
|
13377
|
-
}), [
|
|
13381
|
+
}), [QR, KS] = Wr({
|
|
13378
13382
|
name: "LocaleContext",
|
|
13379
13383
|
hookName: "useLocaleContext",
|
|
13380
13384
|
providerName: "<LocaleProvider />",
|
|
@@ -13428,7 +13432,7 @@ const Hf = da(void 0), ZS = ({ children: e, step: t }) => /* @__PURE__ */ s.jsx(
|
|
|
13428
13432
|
step: t,
|
|
13429
13433
|
...r
|
|
13430
13434
|
}) => {
|
|
13431
|
-
const n =
|
|
13435
|
+
const n = k(
|
|
13432
13436
|
"qodo qodo-steps",
|
|
13433
13437
|
"flex flex-col gap-4",
|
|
13434
13438
|
e
|
|
@@ -13438,19 +13442,19 @@ const Hf = da(void 0), ZS = ({ children: e, step: t }) => /* @__PURE__ */ s.jsx(
|
|
|
13438
13442
|
className: e,
|
|
13439
13443
|
...t
|
|
13440
13444
|
}) => {
|
|
13441
|
-
const r =
|
|
13445
|
+
const r = k("flex flex-row gap-4", e);
|
|
13442
13446
|
return /* @__PURE__ */ s.jsx(Bf, { className: r, ...t });
|
|
13443
13447
|
}, eE = ({
|
|
13444
13448
|
className: e,
|
|
13445
13449
|
...t
|
|
13446
13450
|
}) => {
|
|
13447
|
-
const r =
|
|
13451
|
+
const r = k("flex flex-row items-center gap-4", e);
|
|
13448
13452
|
return /* @__PURE__ */ s.jsx(Vf, { className: r, ...t });
|
|
13449
13453
|
}, tE = ({
|
|
13450
13454
|
className: e,
|
|
13451
13455
|
...t
|
|
13452
13456
|
}) => {
|
|
13453
|
-
const r =
|
|
13457
|
+
const r = k(
|
|
13454
13458
|
"flex flex-row items-center gap-4 text-purple-muted-100 text-sm",
|
|
13455
13459
|
e
|
|
13456
13460
|
);
|
|
@@ -13460,13 +13464,13 @@ const Hf = da(void 0), ZS = ({ children: e, step: t }) => /* @__PURE__ */ s.jsx(
|
|
|
13460
13464
|
className: t,
|
|
13461
13465
|
...r
|
|
13462
13466
|
}) => {
|
|
13463
|
-
const { step: n } = Kf(), o = e === n, a = e < n, i =
|
|
13467
|
+
const { step: n } = Kf(), o = e === n, a = e < n, i = k(
|
|
13464
13468
|
"flex items-center justify-center w-8 h-8 rounded-full text-white",
|
|
13465
13469
|
a && "bg-green-700",
|
|
13466
13470
|
o && "bg-green-600",
|
|
13467
13471
|
!a && !o && "bg-purple-muted-500",
|
|
13468
13472
|
t
|
|
13469
|
-
), l =
|
|
13473
|
+
), l = k({
|
|
13470
13474
|
"text-white": o,
|
|
13471
13475
|
"text-purple-muted-300": !a && e !== n
|
|
13472
13476
|
});
|
|
@@ -13476,7 +13480,7 @@ const Hf = da(void 0), ZS = ({ children: e, step: t }) => /* @__PURE__ */ s.jsx(
|
|
|
13476
13480
|
className: t,
|
|
13477
13481
|
...r
|
|
13478
13482
|
}) => {
|
|
13479
|
-
const { step: n } = Kf(), o = e < n, a =
|
|
13483
|
+
const { step: n } = Kf(), o = e < n, a = k(
|
|
13480
13484
|
"min-w-12 h-px",
|
|
13481
13485
|
o ? "bg-green-400" : "bg-gray-400",
|
|
13482
13486
|
t
|
|
@@ -13486,19 +13490,19 @@ const Hf = da(void 0), ZS = ({ children: e, step: t }) => /* @__PURE__ */ s.jsx(
|
|
|
13486
13490
|
className: e,
|
|
13487
13491
|
...t
|
|
13488
13492
|
}) => {
|
|
13489
|
-
const r =
|
|
13493
|
+
const r = k(e);
|
|
13490
13494
|
return /* @__PURE__ */ s.jsx(Lf, { className: r, ...t });
|
|
13491
13495
|
}, aE = ({
|
|
13492
13496
|
className: e,
|
|
13493
13497
|
...t
|
|
13494
13498
|
}) => {
|
|
13495
|
-
const r =
|
|
13499
|
+
const r = k(e);
|
|
13496
13500
|
return /* @__PURE__ */ s.jsx($f, { className: r, ...t });
|
|
13497
13501
|
}, sE = ({
|
|
13498
13502
|
className: e,
|
|
13499
13503
|
...t
|
|
13500
13504
|
}) => {
|
|
13501
|
-
const r =
|
|
13505
|
+
const r = k(
|
|
13502
13506
|
"bg-primary text-white px-4 py-2 rounded-md",
|
|
13503
13507
|
e
|
|
13504
13508
|
);
|
|
@@ -13507,7 +13511,7 @@ const Hf = da(void 0), ZS = ({ children: e, step: t }) => /* @__PURE__ */ s.jsx(
|
|
|
13507
13511
|
className: e,
|
|
13508
13512
|
...t
|
|
13509
13513
|
}) => {
|
|
13510
|
-
const r =
|
|
13514
|
+
const r = k(
|
|
13511
13515
|
"bg-primary text-white px-4 py-2 rounded-md",
|
|
13512
13516
|
e
|
|
13513
13517
|
);
|
|
@@ -13562,7 +13566,7 @@ const Yf = d.forwardRef(({ className: e, wrapperClassName: t, ...r }, n) => /* @
|
|
|
13562
13566
|
"div",
|
|
13563
13567
|
{
|
|
13564
13568
|
"data-table-scroll-container": !0,
|
|
13565
|
-
className:
|
|
13569
|
+
className: k(
|
|
13566
13570
|
"max-h-[100%] min-h-0 overflow-auto rounded-lg border border-purple-muted-600",
|
|
13567
13571
|
t
|
|
13568
13572
|
),
|
|
@@ -13570,7 +13574,7 @@ const Yf = d.forwardRef(({ className: e, wrapperClassName: t, ...r }, n) => /* @
|
|
|
13570
13574
|
"table",
|
|
13571
13575
|
{
|
|
13572
13576
|
ref: n,
|
|
13573
|
-
className:
|
|
13577
|
+
className: k("w-full caption-bottom text-sm", e),
|
|
13574
13578
|
...r
|
|
13575
13579
|
}
|
|
13576
13580
|
)
|
|
@@ -13581,7 +13585,7 @@ const Xf = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13581
13585
|
"thead",
|
|
13582
13586
|
{
|
|
13583
13587
|
ref: r,
|
|
13584
|
-
className:
|
|
13588
|
+
className: k(
|
|
13585
13589
|
"sticky top-0 z-10 b-0 [&>tr]:hover:bg-transparent",
|
|
13586
13590
|
e
|
|
13587
13591
|
),
|
|
@@ -13593,7 +13597,7 @@ const Zf = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13593
13597
|
"tbody",
|
|
13594
13598
|
{
|
|
13595
13599
|
ref: r,
|
|
13596
|
-
className:
|
|
13600
|
+
className: k(
|
|
13597
13601
|
"[&_tr:last-child]:border-0 [&_tr:first-child]:border-top-0",
|
|
13598
13602
|
e
|
|
13599
13603
|
),
|
|
@@ -13605,7 +13609,7 @@ const uE = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13605
13609
|
"tfoot",
|
|
13606
13610
|
{
|
|
13607
13611
|
ref: r,
|
|
13608
|
-
className:
|
|
13612
|
+
className: k(
|
|
13609
13613
|
"border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",
|
|
13610
13614
|
e
|
|
13611
13615
|
),
|
|
@@ -13617,7 +13621,7 @@ const nt = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13617
13621
|
"tr",
|
|
13618
13622
|
{
|
|
13619
13623
|
ref: r,
|
|
13620
|
-
className:
|
|
13624
|
+
className: k(
|
|
13621
13625
|
"border-b border-purple-muted-600 transition-colors hover:bg-muted/50 data-[state=selected]:bg-purple-muted-600/30",
|
|
13622
13626
|
e,
|
|
13623
13627
|
{ "cursor-pointer hover:bg-purple-muted-600/20": !!t.onClick }
|
|
@@ -13630,7 +13634,7 @@ const Jf = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13630
13634
|
"th",
|
|
13631
13635
|
{
|
|
13632
13636
|
ref: r,
|
|
13633
|
-
className:
|
|
13637
|
+
className: k(
|
|
13634
13638
|
"h-12 px-4 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0",
|
|
13635
13639
|
e
|
|
13636
13640
|
),
|
|
@@ -13642,7 +13646,7 @@ const ft = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13642
13646
|
"td",
|
|
13643
13647
|
{
|
|
13644
13648
|
ref: r,
|
|
13645
|
-
className:
|
|
13649
|
+
className: k("p-4 align-middle [&:has([role=checkbox])]:pr-0", e),
|
|
13646
13650
|
...t
|
|
13647
13651
|
}
|
|
13648
13652
|
));
|
|
@@ -13651,7 +13655,7 @@ const fE = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13651
13655
|
"caption",
|
|
13652
13656
|
{
|
|
13653
13657
|
ref: r,
|
|
13654
|
-
className:
|
|
13658
|
+
className: k("mt-4 text-sm text-muted-foreground", e),
|
|
13655
13659
|
...t
|
|
13656
13660
|
}
|
|
13657
13661
|
));
|
|
@@ -13919,7 +13923,7 @@ const pE = ({ title: e = "No results" }) => /* @__PURE__ */ s.jsx("div", { class
|
|
|
13919
13923
|
{
|
|
13920
13924
|
role: "navigation",
|
|
13921
13925
|
"aria-label": "pagination",
|
|
13922
|
-
className:
|
|
13926
|
+
className: k(
|
|
13923
13927
|
"qodo qodo-pagination mx-auto flex w-full justify-center",
|
|
13924
13928
|
e
|
|
13925
13929
|
),
|
|
@@ -13931,12 +13935,12 @@ const ep = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
13931
13935
|
"ul",
|
|
13932
13936
|
{
|
|
13933
13937
|
ref: r,
|
|
13934
|
-
className:
|
|
13938
|
+
className: k("flex flex-row items-center gap-1", e),
|
|
13935
13939
|
...t
|
|
13936
13940
|
}
|
|
13937
13941
|
));
|
|
13938
13942
|
ep.displayName = "PaginationContent";
|
|
13939
|
-
const Sr = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx("li", { ref: r, className:
|
|
13943
|
+
const Sr = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx("li", { ref: r, className: k("", e), ...t }));
|
|
13940
13944
|
Sr.displayName = "PaginationItem";
|
|
13941
13945
|
const tp = ({
|
|
13942
13946
|
className: e,
|
|
@@ -13947,7 +13951,7 @@ const tp = ({
|
|
|
13947
13951
|
"a",
|
|
13948
13952
|
{
|
|
13949
13953
|
"aria-current": t ? "page" : void 0,
|
|
13950
|
-
className:
|
|
13954
|
+
className: k(
|
|
13951
13955
|
ll({
|
|
13952
13956
|
variant: t ? "outline" : "ghost",
|
|
13953
13957
|
size: r
|
|
@@ -13965,7 +13969,7 @@ const rp = ({
|
|
|
13965
13969
|
"span",
|
|
13966
13970
|
{
|
|
13967
13971
|
"aria-hidden": !0,
|
|
13968
|
-
className:
|
|
13972
|
+
className: k("flex h-9 w-9 items-center justify-center", e),
|
|
13969
13973
|
...t,
|
|
13970
13974
|
children: [
|
|
13971
13975
|
/* @__PURE__ */ s.jsx(al, { className: "h-4 w-4" }),
|
|
@@ -13985,19 +13989,19 @@ const vE = ({
|
|
|
13985
13989
|
const i = un(() => {
|
|
13986
13990
|
const m = "text-purple-muted-300 dark:text-purple-muted-300", b = "hover:bg-purple-muted-600 hover:text-purple-muted-300 dark:hover:bg-purple-muted-600 dark:hover:text-purple-muted-300", v = "bg-purple-muted-600 text-purple-muted-300 dark:bg-purple-muted-600 dark:text-purple-muted-300", x = "border-none flex items-center justify-center w-8 h-8", y = "pointer-events-none opacity-50 cursor-not-allowed";
|
|
13987
13991
|
return {
|
|
13988
|
-
previous:
|
|
13992
|
+
previous: k(
|
|
13989
13993
|
n === 1 || t ? "pointer-events-none opacity-50" : "cursor-pointer",
|
|
13990
13994
|
x,
|
|
13991
13995
|
m,
|
|
13992
13996
|
t && y
|
|
13993
13997
|
),
|
|
13994
|
-
next:
|
|
13998
|
+
next: k(
|
|
13995
13999
|
n === r || t ? "pointer-events-none opacity-50" : "cursor-pointer",
|
|
13996
14000
|
x,
|
|
13997
14001
|
m,
|
|
13998
14002
|
t && y
|
|
13999
14003
|
),
|
|
14000
|
-
link: (h) =>
|
|
14004
|
+
link: (h) => k(
|
|
14001
14005
|
x,
|
|
14002
14006
|
t ? "cursor-not-allowed" : "cursor-pointer",
|
|
14003
14007
|
m,
|
|
@@ -14191,9 +14195,9 @@ const bE = 150, nn = {
|
|
|
14191
14195
|
loadMoreThreshold: x = yE,
|
|
14192
14196
|
endOfResultsMessage: y
|
|
14193
14197
|
}) => {
|
|
14194
|
-
const h = e.getVisibleFlatColumns().length, C = m === nn.PAGINATION && e.options.manualPagination && e.options.onPaginationChange, S = e.getRowModel().rows.length === 0, N = e.getCoreRowModel().rows.length === 0 && !o, T = !o && (a || N || S), j = "hover:bg-transparent cursor-default",
|
|
14198
|
+
const h = e.getVisibleFlatColumns().length, C = m === nn.PAGINATION && e.options.manualPagination && e.options.onPaginationChange, S = e.getRowModel().rows.length === 0, N = e.getCoreRowModel().rows.length === 0 && !o, T = !o && (a || N || S), j = "hover:bg-transparent cursor-default", R = me(null), W = ye(() => R.current ? R.current.querySelector(
|
|
14195
14199
|
"[data-table-scroll-container]"
|
|
14196
|
-
) ||
|
|
14200
|
+
) || R.current : null, []), { loadMoreRef: U, hasMore: re } = xE({
|
|
14197
14201
|
enabled: m === nn.INFINITE_SCROLL,
|
|
14198
14202
|
onLoadMore: b,
|
|
14199
14203
|
hasMore: v,
|
|
@@ -14243,6 +14247,7 @@ const bE = 150, nn = {
|
|
|
14243
14247
|
{
|
|
14244
14248
|
"data-state": O ? "selected" : void 0,
|
|
14245
14249
|
onClick: () => i == null ? void 0 : i(M.original),
|
|
14250
|
+
className: "group",
|
|
14246
14251
|
children: M.getVisibleCells().map((I) => /* @__PURE__ */ s.jsx(
|
|
14247
14252
|
ft,
|
|
14248
14253
|
{
|
|
@@ -14275,12 +14280,12 @@ const bE = 150, nn = {
|
|
|
14275
14280
|
)
|
|
14276
14281
|
] }) : V;
|
|
14277
14282
|
};
|
|
14278
|
-
return /* @__PURE__ */ s.jsxs("div", { className:
|
|
14279
|
-
/* @__PURE__ */ s.jsx("div", { ref:
|
|
14283
|
+
return /* @__PURE__ */ s.jsxs("div", { className: k("qodo qodo-table", "flex flex-col h-full w-full"), children: [
|
|
14284
|
+
/* @__PURE__ */ s.jsx("div", { ref: R, className: "flex-1 min-h-0", children: /* @__PURE__ */ s.jsxs(
|
|
14280
14285
|
Yf,
|
|
14281
14286
|
{
|
|
14282
14287
|
wrapperClassName: f,
|
|
14283
|
-
className:
|
|
14288
|
+
className: k({
|
|
14284
14289
|
"h-[100%]": T
|
|
14285
14290
|
}),
|
|
14286
14291
|
children: [
|
|
@@ -14333,9 +14338,9 @@ const bE = 150, nn = {
|
|
|
14333
14338
|
children: [
|
|
14334
14339
|
i,
|
|
14335
14340
|
/* @__PURE__ */ s.jsx(
|
|
14336
|
-
|
|
14341
|
+
Rg,
|
|
14337
14342
|
{
|
|
14338
|
-
className:
|
|
14343
|
+
className: k("ml-2 h-4 w-4", {
|
|
14339
14344
|
invisible: !n
|
|
14340
14345
|
})
|
|
14341
14346
|
}
|
|
@@ -14350,11 +14355,11 @@ var ca = ["Enter", " "], wE = ["ArrowDown", "PageUp", "Home"], np = ["ArrowUp",
|
|
|
14350
14355
|
}, EE = {
|
|
14351
14356
|
ltr: ["ArrowLeft"],
|
|
14352
14357
|
rtl: ["ArrowRight"]
|
|
14353
|
-
}, zr = "Menu", [Tr,
|
|
14354
|
-
|
|
14358
|
+
}, zr = "Menu", [Tr, kE, RE] = _n(zr), [Bt, op] = Ce(zr, [
|
|
14359
|
+
RE,
|
|
14355
14360
|
bt,
|
|
14356
14361
|
St
|
|
14357
|
-
]), qr = bt(), ap = St(), [sp,
|
|
14362
|
+
]), qr = bt(), ap = St(), [sp, Rt] = Bt(zr), [NE, Ur] = Bt(zr), ip = (e) => {
|
|
14358
14363
|
const { __scopeMenu: t, open: r = !1, children: n, dir: o, onOpenChange: a, modal: i = !0 } = e, l = qr(t), [c, u] = d.useState(null), f = d.useRef(!1), p = Ve(a), g = $t(o);
|
|
14359
14364
|
return d.useEffect(() => {
|
|
14360
14365
|
const m = () => {
|
|
@@ -14396,18 +14401,18 @@ os.displayName = jE;
|
|
|
14396
14401
|
var as = "MenuPortal", [PE, lp] = Bt(as, {
|
|
14397
14402
|
forceMount: void 0
|
|
14398
14403
|
}), cp = (e) => {
|
|
14399
|
-
const { __scopeMenu: t, forceMount: r, children: n, container: o } = e, a =
|
|
14400
|
-
return /* @__PURE__ */ s.jsx(PE, { scope: t, forceMount: r, children: /* @__PURE__ */ s.jsx(
|
|
14404
|
+
const { __scopeMenu: t, forceMount: r, children: n, container: o } = e, a = Rt(as, t);
|
|
14405
|
+
return /* @__PURE__ */ s.jsx(PE, { scope: t, forceMount: r, children: /* @__PURE__ */ s.jsx(ke, { present: r || a.open, children: /* @__PURE__ */ s.jsx(dr, { asChild: !0, container: o, children: n }) }) });
|
|
14401
14406
|
};
|
|
14402
14407
|
cp.displayName = as;
|
|
14403
14408
|
var $e = "MenuContent", [TE, ss] = Bt($e), dp = d.forwardRef(
|
|
14404
14409
|
(e, t) => {
|
|
14405
|
-
const r = lp($e, e.__scopeMenu), { forceMount: n = r.forceMount, ...o } = e, a =
|
|
14406
|
-
return /* @__PURE__ */ s.jsx(Tr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s.jsx(
|
|
14410
|
+
const r = lp($e, e.__scopeMenu), { forceMount: n = r.forceMount, ...o } = e, a = Rt($e, e.__scopeMenu), i = Ur($e, e.__scopeMenu);
|
|
14411
|
+
return /* @__PURE__ */ s.jsx(Tr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s.jsx(ke, { present: n || a.open, children: /* @__PURE__ */ s.jsx(Tr.Slot, { scope: e.__scopeMenu, children: i.modal ? /* @__PURE__ */ s.jsx(_E, { ...o, ref: t }) : /* @__PURE__ */ s.jsx(AE, { ...o, ref: t }) }) }) });
|
|
14407
14412
|
}
|
|
14408
14413
|
), _E = d.forwardRef(
|
|
14409
14414
|
(e, t) => {
|
|
14410
|
-
const r =
|
|
14415
|
+
const r = Rt($e, e.__scopeMenu), n = d.useRef(null), o = ae(t, n);
|
|
14411
14416
|
return d.useEffect(() => {
|
|
14412
14417
|
const a = n.current;
|
|
14413
14418
|
if (a) return Bn(a);
|
|
@@ -14429,7 +14434,7 @@ var $e = "MenuContent", [TE, ss] = Bt($e), dp = d.forwardRef(
|
|
|
14429
14434
|
);
|
|
14430
14435
|
}
|
|
14431
14436
|
), AE = d.forwardRef((e, t) => {
|
|
14432
|
-
const r =
|
|
14437
|
+
const r = Rt($e, e.__scopeMenu);
|
|
14433
14438
|
return /* @__PURE__ */ s.jsx(
|
|
14434
14439
|
is,
|
|
14435
14440
|
{
|
|
@@ -14458,7 +14463,7 @@ var $e = "MenuContent", [TE, ss] = Bt($e), dp = d.forwardRef(
|
|
|
14458
14463
|
onDismiss: m,
|
|
14459
14464
|
disableOutsideScroll: b,
|
|
14460
14465
|
...v
|
|
14461
|
-
} = e, x =
|
|
14466
|
+
} = e, x = Rt($e, r), y = Ur($e, r), h = qr(r), C = ap(r), S = kE(r), [N, T] = d.useState(null), j = d.useRef(null), R = ae(t, j, x.onContentChange), W = d.useRef(0), U = d.useRef(""), re = d.useRef(0), te = d.useRef(null), Q = d.useRef("right"), V = d.useRef(0), M = b ? Dr : d.Fragment, A = b ? { as: IE, allowPinchZoom: !0 } : void 0, O = (I) => {
|
|
14462
14467
|
var _, K;
|
|
14463
14468
|
const B = U.current + I, J = S().filter((ee) => !ee.disabled), P = document.activeElement, G = (_ = J.find((ee) => ee.ref.current === P)) == null ? void 0 : _.textValue, Z = J.map((ee) => ee.textValue), z = qE(Z, B, G), $ = (K = J.find((ee) => ee.textValue === z)) == null ? void 0 : K.ref.current;
|
|
14464
14469
|
(function ee(oe) {
|
|
@@ -14542,7 +14547,7 @@ var $e = "MenuContent", [TE, ss] = Bt($e), dp = d.forwardRef(
|
|
|
14542
14547
|
dir: y.dir,
|
|
14543
14548
|
...h,
|
|
14544
14549
|
...v,
|
|
14545
|
-
ref:
|
|
14550
|
+
ref: R,
|
|
14546
14551
|
style: { outline: "none", ...v.style },
|
|
14547
14552
|
onKeyDown: L(v.onKeyDown, (I) => {
|
|
14548
14553
|
const J = I.target.closest("[data-radix-menu-content]") === I.currentTarget, P = I.ctrlKey || I.altKey || I.metaKey, G = I.key.length === 1;
|
|
@@ -14593,9 +14598,9 @@ var OE = "MenuLabel", up = d.forwardRef(
|
|
|
14593
14598
|
}
|
|
14594
14599
|
);
|
|
14595
14600
|
up.displayName = OE;
|
|
14596
|
-
var
|
|
14601
|
+
var kn = "MenuItem", Gi = "menu.itemSelect", co = d.forwardRef(
|
|
14597
14602
|
(e, t) => {
|
|
14598
|
-
const { disabled: r = !1, onSelect: n, ...o } = e, a = d.useRef(null), i = Ur(
|
|
14603
|
+
const { disabled: r = !1, onSelect: n, ...o } = e, a = d.useRef(null), i = Ur(kn, e.__scopeMenu), l = ss(kn, e.__scopeMenu), c = ae(t, a), u = d.useRef(!1), f = () => {
|
|
14599
14604
|
const p = a.current;
|
|
14600
14605
|
if (!r && p) {
|
|
14601
14606
|
const g = new CustomEvent(Gi, { bubbles: !0, cancelable: !0 });
|
|
@@ -14625,10 +14630,10 @@ var Rn = "MenuItem", Gi = "menu.itemSelect", co = d.forwardRef(
|
|
|
14625
14630
|
);
|
|
14626
14631
|
}
|
|
14627
14632
|
);
|
|
14628
|
-
co.displayName =
|
|
14633
|
+
co.displayName = kn;
|
|
14629
14634
|
var fp = d.forwardRef(
|
|
14630
14635
|
(e, t) => {
|
|
14631
|
-
const { __scopeMenu: r, disabled: n = !1, textValue: o, ...a } = e, i = ss(
|
|
14636
|
+
const { __scopeMenu: r, disabled: n = !1, textValue: o, ...a } = e, i = ss(kn, r), l = ap(r), c = d.useRef(null), u = ae(t, c), [f, p] = d.useState(!1), [g, m] = d.useState("");
|
|
14632
14637
|
return d.useEffect(() => {
|
|
14633
14638
|
const b = c.current;
|
|
14634
14639
|
b && m((b.textContent ?? "").trim());
|
|
@@ -14671,13 +14676,13 @@ var fp = d.forwardRef(
|
|
|
14671
14676
|
co,
|
|
14672
14677
|
{
|
|
14673
14678
|
role: "menuitemcheckbox",
|
|
14674
|
-
"aria-checked":
|
|
14679
|
+
"aria-checked": Rn(r) ? "mixed" : r,
|
|
14675
14680
|
...o,
|
|
14676
14681
|
ref: t,
|
|
14677
14682
|
"data-state": us(r),
|
|
14678
14683
|
onSelect: L(
|
|
14679
14684
|
o.onSelect,
|
|
14680
|
-
() => n == null ? void 0 : n(
|
|
14685
|
+
() => n == null ? void 0 : n(Rn(r) ? !0 : !r),
|
|
14681
14686
|
{ checkForDefaultPrevented: !1 }
|
|
14682
14687
|
)
|
|
14683
14688
|
}
|
|
@@ -14727,9 +14732,9 @@ var cs = "MenuItemIndicator", [xp, FE] = Bt(
|
|
|
14727
14732
|
(e, t) => {
|
|
14728
14733
|
const { __scopeMenu: r, forceMount: n, ...o } = e, a = FE(cs, r);
|
|
14729
14734
|
return /* @__PURE__ */ s.jsx(
|
|
14730
|
-
|
|
14735
|
+
ke,
|
|
14731
14736
|
{
|
|
14732
|
-
present: n ||
|
|
14737
|
+
present: n || Rn(a.checked) || a.checked === !0,
|
|
14733
14738
|
children: /* @__PURE__ */ s.jsx(
|
|
14734
14739
|
q.span,
|
|
14735
14740
|
{
|
|
@@ -14766,7 +14771,7 @@ var BE = "MenuArrow", wp = d.forwardRef(
|
|
|
14766
14771
|
);
|
|
14767
14772
|
wp.displayName = BE;
|
|
14768
14773
|
var ds = "MenuSub", [GE, Cp] = Bt(ds), Sp = (e) => {
|
|
14769
|
-
const { __scopeMenu: t, children: r, open: n = !1, onOpenChange: o } = e, a =
|
|
14774
|
+
const { __scopeMenu: t, children: r, open: n = !1, onOpenChange: o } = e, a = Rt(ds, t), i = qr(t), [l, c] = d.useState(null), [u, f] = d.useState(null), p = Ve(o);
|
|
14770
14775
|
return d.useEffect(() => (a.open === !1 && p(!1), () => p(!1)), [a.open, p]), /* @__PURE__ */ s.jsx(Mr, { ...i, children: /* @__PURE__ */ s.jsx(
|
|
14771
14776
|
sp,
|
|
14772
14777
|
{
|
|
@@ -14792,7 +14797,7 @@ var ds = "MenuSub", [GE, Cp] = Bt(ds), Sp = (e) => {
|
|
|
14792
14797
|
Sp.displayName = ds;
|
|
14793
14798
|
var Er = "MenuSubTrigger", Ep = d.forwardRef(
|
|
14794
14799
|
(e, t) => {
|
|
14795
|
-
const r =
|
|
14800
|
+
const r = Rt(Er, e.__scopeMenu), n = Ur(Er, e.__scopeMenu), o = Cp(Er, e.__scopeMenu), a = ss(Er, e.__scopeMenu), i = d.useRef(null), { pointerGraceTimerRef: l, onPointerGraceIntentChange: c } = a, u = { __scopeMenu: e.__scopeMenu }, f = d.useCallback(() => {
|
|
14796
14801
|
i.current && window.clearTimeout(i.current), i.current = null;
|
|
14797
14802
|
}, []);
|
|
14798
14803
|
return d.useEffect(() => f, [f]), d.useEffect(() => {
|
|
@@ -14861,10 +14866,10 @@ var Er = "MenuSubTrigger", Ep = d.forwardRef(
|
|
|
14861
14866
|
}
|
|
14862
14867
|
);
|
|
14863
14868
|
Ep.displayName = Er;
|
|
14864
|
-
var
|
|
14869
|
+
var kp = "MenuSubContent", Rp = d.forwardRef(
|
|
14865
14870
|
(e, t) => {
|
|
14866
|
-
const r = lp($e, e.__scopeMenu), { forceMount: n = r.forceMount, ...o } = e, a =
|
|
14867
|
-
return /* @__PURE__ */ s.jsx(Tr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s.jsx(
|
|
14871
|
+
const r = lp($e, e.__scopeMenu), { forceMount: n = r.forceMount, ...o } = e, a = Rt($e, e.__scopeMenu), i = Ur($e, e.__scopeMenu), l = Cp(kp, e.__scopeMenu), c = d.useRef(null), u = ae(t, c);
|
|
14872
|
+
return /* @__PURE__ */ s.jsx(Tr.Provider, { scope: e.__scopeMenu, children: /* @__PURE__ */ s.jsx(ke, { present: n || a.open, children: /* @__PURE__ */ s.jsx(Tr.Slot, { scope: e.__scopeMenu, children: /* @__PURE__ */ s.jsx(
|
|
14868
14873
|
is,
|
|
14869
14874
|
{
|
|
14870
14875
|
id: l.contentId,
|
|
@@ -14896,15 +14901,15 @@ var Rp = "MenuSubContent", kp = d.forwardRef(
|
|
|
14896
14901
|
) }) }) });
|
|
14897
14902
|
}
|
|
14898
14903
|
);
|
|
14899
|
-
|
|
14904
|
+
Rp.displayName = kp;
|
|
14900
14905
|
function Np(e) {
|
|
14901
14906
|
return e ? "open" : "closed";
|
|
14902
14907
|
}
|
|
14903
|
-
function
|
|
14908
|
+
function Rn(e) {
|
|
14904
14909
|
return e === "indeterminate";
|
|
14905
14910
|
}
|
|
14906
14911
|
function us(e) {
|
|
14907
|
-
return
|
|
14912
|
+
return Rn(e) ? "indeterminate" : e ? "checked" : "unchecked";
|
|
14908
14913
|
}
|
|
14909
14914
|
function WE(e) {
|
|
14910
14915
|
const t = document.activeElement;
|
|
@@ -14940,10 +14945,10 @@ function HE(e, t) {
|
|
|
14940
14945
|
function _r(e) {
|
|
14941
14946
|
return (t) => t.pointerType === "mouse" ? e(t) : void 0;
|
|
14942
14947
|
}
|
|
14943
|
-
var KE = ip, YE = os, XE = cp, ZE = dp, JE = ls, QE = up,
|
|
14948
|
+
var KE = ip, YE = os, XE = cp, ZE = dp, JE = ls, QE = up, ek = co, tk = pp, rk = gp, nk = hp, ok = bp, ak = yp, sk = wp, ik = Sp, lk = Ep, ck = Rp, uo = "DropdownMenu", [dk, aN] = Ce(
|
|
14944
14949
|
uo,
|
|
14945
14950
|
[op]
|
|
14946
|
-
),
|
|
14951
|
+
), Re = op(), [uk, jp] = dk(uo), Pp = (e) => {
|
|
14947
14952
|
const {
|
|
14948
14953
|
__scopeDropdownMenu: t,
|
|
14949
14954
|
children: r,
|
|
@@ -14952,14 +14957,14 @@ var KE = ip, YE = os, XE = cp, ZE = dp, JE = ls, QE = up, eR = co, tR = pp, rR =
|
|
|
14952
14957
|
defaultOpen: a,
|
|
14953
14958
|
onOpenChange: i,
|
|
14954
14959
|
modal: l = !0
|
|
14955
|
-
} = e, c =
|
|
14960
|
+
} = e, c = Re(t), u = d.useRef(null), [f, p] = we({
|
|
14956
14961
|
prop: o,
|
|
14957
14962
|
defaultProp: a ?? !1,
|
|
14958
14963
|
onChange: i,
|
|
14959
14964
|
caller: uo
|
|
14960
14965
|
});
|
|
14961
14966
|
return /* @__PURE__ */ s.jsx(
|
|
14962
|
-
|
|
14967
|
+
uk,
|
|
14963
14968
|
{
|
|
14964
14969
|
scope: t,
|
|
14965
14970
|
triggerId: ge(),
|
|
@@ -14976,7 +14981,7 @@ var KE = ip, YE = os, XE = cp, ZE = dp, JE = ls, QE = up, eR = co, tR = pp, rR =
|
|
|
14976
14981
|
Pp.displayName = uo;
|
|
14977
14982
|
var Tp = "DropdownMenuTrigger", _p = d.forwardRef(
|
|
14978
14983
|
(e, t) => {
|
|
14979
|
-
const { __scopeDropdownMenu: r, disabled: n = !1, ...o } = e, a = jp(Tp, r), i =
|
|
14984
|
+
const { __scopeDropdownMenu: r, disabled: n = !1, ...o } = e, a = jp(Tp, r), i = Re(r);
|
|
14980
14985
|
return /* @__PURE__ */ s.jsx(YE, { asChild: !0, ...i, children: /* @__PURE__ */ s.jsx(
|
|
14981
14986
|
q.button,
|
|
14982
14987
|
{
|
|
@@ -15001,14 +15006,14 @@ var Tp = "DropdownMenuTrigger", _p = d.forwardRef(
|
|
|
15001
15006
|
}
|
|
15002
15007
|
);
|
|
15003
15008
|
_p.displayName = Tp;
|
|
15004
|
-
var
|
|
15005
|
-
const { __scopeDropdownMenu: t, ...r } = e, n =
|
|
15009
|
+
var fk = "DropdownMenuPortal", Ap = (e) => {
|
|
15010
|
+
const { __scopeDropdownMenu: t, ...r } = e, n = Re(t);
|
|
15006
15011
|
return /* @__PURE__ */ s.jsx(XE, { ...n, ...r });
|
|
15007
15012
|
};
|
|
15008
|
-
Ap.displayName =
|
|
15013
|
+
Ap.displayName = fk;
|
|
15009
15014
|
var Ip = "DropdownMenuContent", Mp = d.forwardRef(
|
|
15010
15015
|
(e, t) => {
|
|
15011
|
-
const { __scopeDropdownMenu: r, ...n } = e, o = jp(Ip, r), a =
|
|
15016
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = jp(Ip, r), a = Re(r), i = d.useRef(!1);
|
|
15012
15017
|
return /* @__PURE__ */ s.jsx(
|
|
15013
15018
|
ZE,
|
|
15014
15019
|
{
|
|
@@ -15038,76 +15043,76 @@ var Ip = "DropdownMenuContent", Mp = d.forwardRef(
|
|
|
15038
15043
|
}
|
|
15039
15044
|
);
|
|
15040
15045
|
Mp.displayName = Ip;
|
|
15041
|
-
var
|
|
15046
|
+
var pk = "DropdownMenuGroup", Op = d.forwardRef(
|
|
15042
15047
|
(e, t) => {
|
|
15043
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
15048
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Re(r);
|
|
15044
15049
|
return /* @__PURE__ */ s.jsx(JE, { ...o, ...n, ref: t });
|
|
15045
15050
|
}
|
|
15046
15051
|
);
|
|
15047
|
-
Op.displayName =
|
|
15048
|
-
var
|
|
15052
|
+
Op.displayName = pk;
|
|
15053
|
+
var mk = "DropdownMenuLabel", Dp = d.forwardRef(
|
|
15049
15054
|
(e, t) => {
|
|
15050
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
15055
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Re(r);
|
|
15051
15056
|
return /* @__PURE__ */ s.jsx(QE, { ...o, ...n, ref: t });
|
|
15052
15057
|
}
|
|
15053
15058
|
);
|
|
15054
|
-
Dp.displayName =
|
|
15055
|
-
var
|
|
15059
|
+
Dp.displayName = mk;
|
|
15060
|
+
var gk = "DropdownMenuItem", $p = d.forwardRef(
|
|
15056
15061
|
(e, t) => {
|
|
15057
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
15058
|
-
return /* @__PURE__ */ s.jsx(
|
|
15062
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Re(r);
|
|
15063
|
+
return /* @__PURE__ */ s.jsx(ek, { ...o, ...n, ref: t });
|
|
15059
15064
|
}
|
|
15060
15065
|
);
|
|
15061
|
-
$p.displayName =
|
|
15062
|
-
var
|
|
15063
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
15064
|
-
return /* @__PURE__ */ s.jsx(
|
|
15066
|
+
$p.displayName = gk;
|
|
15067
|
+
var vk = "DropdownMenuCheckboxItem", Lp = d.forwardRef((e, t) => {
|
|
15068
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Re(r);
|
|
15069
|
+
return /* @__PURE__ */ s.jsx(tk, { ...o, ...n, ref: t });
|
|
15065
15070
|
});
|
|
15066
|
-
Lp.displayName =
|
|
15067
|
-
var
|
|
15068
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
15069
|
-
return /* @__PURE__ */ s.jsx(
|
|
15071
|
+
Lp.displayName = vk;
|
|
15072
|
+
var hk = "DropdownMenuRadioGroup", Fp = d.forwardRef((e, t) => {
|
|
15073
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Re(r);
|
|
15074
|
+
return /* @__PURE__ */ s.jsx(rk, { ...o, ...n, ref: t });
|
|
15070
15075
|
});
|
|
15071
|
-
Fp.displayName =
|
|
15072
|
-
var
|
|
15073
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
15074
|
-
return /* @__PURE__ */ s.jsx(
|
|
15076
|
+
Fp.displayName = hk;
|
|
15077
|
+
var xk = "DropdownMenuRadioItem", Vp = d.forwardRef((e, t) => {
|
|
15078
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Re(r);
|
|
15079
|
+
return /* @__PURE__ */ s.jsx(nk, { ...o, ...n, ref: t });
|
|
15075
15080
|
});
|
|
15076
|
-
Vp.displayName =
|
|
15077
|
-
var
|
|
15078
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
15079
|
-
return /* @__PURE__ */ s.jsx(
|
|
15081
|
+
Vp.displayName = xk;
|
|
15082
|
+
var bk = "DropdownMenuItemIndicator", Bp = d.forwardRef((e, t) => {
|
|
15083
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Re(r);
|
|
15084
|
+
return /* @__PURE__ */ s.jsx(ok, { ...o, ...n, ref: t });
|
|
15080
15085
|
});
|
|
15081
|
-
Bp.displayName =
|
|
15082
|
-
var
|
|
15083
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
15084
|
-
return /* @__PURE__ */ s.jsx(
|
|
15086
|
+
Bp.displayName = bk;
|
|
15087
|
+
var yk = "DropdownMenuSeparator", Gp = d.forwardRef((e, t) => {
|
|
15088
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Re(r);
|
|
15089
|
+
return /* @__PURE__ */ s.jsx(ak, { ...o, ...n, ref: t });
|
|
15085
15090
|
});
|
|
15086
|
-
Gp.displayName =
|
|
15087
|
-
var
|
|
15091
|
+
Gp.displayName = yk;
|
|
15092
|
+
var wk = "DropdownMenuArrow", Ck = d.forwardRef(
|
|
15088
15093
|
(e, t) => {
|
|
15089
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
15090
|
-
return /* @__PURE__ */ s.jsx(
|
|
15094
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Re(r);
|
|
15095
|
+
return /* @__PURE__ */ s.jsx(sk, { ...o, ...n, ref: t });
|
|
15091
15096
|
}
|
|
15092
15097
|
);
|
|
15093
|
-
|
|
15094
|
-
var
|
|
15095
|
-
const { __scopeDropdownMenu: t, children: r, open: n, onOpenChange: o, defaultOpen: a } = e, i =
|
|
15098
|
+
Ck.displayName = wk;
|
|
15099
|
+
var Sk = (e) => {
|
|
15100
|
+
const { __scopeDropdownMenu: t, children: r, open: n, onOpenChange: o, defaultOpen: a } = e, i = Re(t), [l, c] = we({
|
|
15096
15101
|
prop: n,
|
|
15097
15102
|
defaultProp: a ?? !1,
|
|
15098
15103
|
onChange: o,
|
|
15099
15104
|
caller: "DropdownMenuSub"
|
|
15100
15105
|
});
|
|
15101
|
-
return /* @__PURE__ */ s.jsx(
|
|
15102
|
-
},
|
|
15103
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
15104
|
-
return /* @__PURE__ */ s.jsx(
|
|
15106
|
+
return /* @__PURE__ */ s.jsx(ik, { ...i, open: l, onOpenChange: c, children: r });
|
|
15107
|
+
}, Ek = "DropdownMenuSubTrigger", Wp = d.forwardRef((e, t) => {
|
|
15108
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Re(r);
|
|
15109
|
+
return /* @__PURE__ */ s.jsx(lk, { ...o, ...n, ref: t });
|
|
15105
15110
|
});
|
|
15106
|
-
Wp.displayName =
|
|
15107
|
-
var
|
|
15108
|
-
const { __scopeDropdownMenu: r, ...n } = e, o =
|
|
15111
|
+
Wp.displayName = Ek;
|
|
15112
|
+
var kk = "DropdownMenuSubContent", zp = d.forwardRef((e, t) => {
|
|
15113
|
+
const { __scopeDropdownMenu: r, ...n } = e, o = Re(r);
|
|
15109
15114
|
return /* @__PURE__ */ s.jsx(
|
|
15110
|
-
|
|
15115
|
+
ck,
|
|
15111
15116
|
{
|
|
15112
15117
|
...o,
|
|
15113
15118
|
...n,
|
|
@@ -15123,13 +15128,13 @@ var RR = "DropdownMenuSubContent", zp = d.forwardRef((e, t) => {
|
|
|
15123
15128
|
}
|
|
15124
15129
|
);
|
|
15125
15130
|
});
|
|
15126
|
-
zp.displayName =
|
|
15127
|
-
var
|
|
15128
|
-
const
|
|
15131
|
+
zp.displayName = kk;
|
|
15132
|
+
var Rk = Pp, Nk = _p, qp = Ap, Up = Mp, jk = Op, Hp = Dp, Kp = $p, Yp = Lp, Pk = Fp, Xp = Vp, Zp = Bp, Jp = Gp, Tk = Sk, Qp = Wp, em = zp;
|
|
15133
|
+
const _k = Rk, Ak = Nk, Ik = jk, Mk = qp, Ok = Tk, Dk = Pk, tm = d.forwardRef(({ className: e, inset: t, children: r, ...n }, o) => /* @__PURE__ */ s.jsxs(
|
|
15129
15134
|
Qp,
|
|
15130
15135
|
{
|
|
15131
15136
|
ref: o,
|
|
15132
|
-
className:
|
|
15137
|
+
className: k(
|
|
15133
15138
|
"qodo qodo-dropdown-menu-sub-trigger flex cursor-default gap-2 select-none items-center rounded-sm px-2 py-1.5 text-sm outline-none hover:text-[var(--text-interactive-neutral-hover)] hover:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",
|
|
15134
15139
|
t && "pl-8",
|
|
15135
15140
|
e
|
|
@@ -15146,7 +15151,7 @@ const rm = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
15146
15151
|
em,
|
|
15147
15152
|
{
|
|
15148
15153
|
ref: r,
|
|
15149
|
-
className:
|
|
15154
|
+
className: k(
|
|
15150
15155
|
"z-50 min-w-[8rem] overflow-hidden cursor-pointer rounded-sm border shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",
|
|
15151
15156
|
"text-[var(--text-interactive-neutral-idle)] bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] px-1 py-1",
|
|
15152
15157
|
e
|
|
@@ -15160,7 +15165,7 @@ const nm = d.forwardRef(({ className: e, sideOffset: t = 4, ...r }, n) => /* @__
|
|
|
15160
15165
|
{
|
|
15161
15166
|
ref: n,
|
|
15162
15167
|
sideOffset: t,
|
|
15163
|
-
className:
|
|
15168
|
+
className: k(
|
|
15164
15169
|
"qodo qodo-dropdown-menu-content z-50 min-w-[8rem] overflow-hidden rounded-sm border text-[var(--text-interactive-neutral-idle)] bg-[var(--fill-interactive-neutral-idle)] border-[var(--border-interactive-neutral-idle)] px-1 py-1 ",
|
|
15165
15170
|
"data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 [&_svg]:text-inherit dark:[&_svg]:text-inherit",
|
|
15166
15171
|
e
|
|
@@ -15173,7 +15178,7 @@ const fs = d.forwardRef(({ className: e, inset: t, ...r }, n) => /* @__PURE__ */
|
|
|
15173
15178
|
Kp,
|
|
15174
15179
|
{
|
|
15175
15180
|
ref: n,
|
|
15176
|
-
className:
|
|
15181
|
+
className: k(
|
|
15177
15182
|
"w-full qodo qodo-dropdown-menu-item relative flex select-none items-center gap-2 rounded-xs px-2 py-1.5 text-sm outline-none transition-colors focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&>svg]:size-4 [&>svg]:shrink-0 focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] cursor-pointer data-[disabled]:cursor-default",
|
|
15178
15183
|
t && "pl-8",
|
|
15179
15184
|
e
|
|
@@ -15186,7 +15191,7 @@ const om = d.forwardRef(({ className: e, children: t, checked: r, ...n }, o) =>
|
|
|
15186
15191
|
Yp,
|
|
15187
15192
|
{
|
|
15188
15193
|
ref: o,
|
|
15189
|
-
className:
|
|
15194
|
+
className: k(
|
|
15190
15195
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:cursor-default",
|
|
15191
15196
|
e
|
|
15192
15197
|
),
|
|
@@ -15203,7 +15208,7 @@ const am = d.forwardRef(({ className: e, children: t, ...r }, n) => /* @__PURE__
|
|
|
15203
15208
|
Xp,
|
|
15204
15209
|
{
|
|
15205
15210
|
ref: n,
|
|
15206
|
-
className:
|
|
15211
|
+
className: k(
|
|
15207
15212
|
"relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-[var(--fill-interactive-neutral-hover)] active:bg-[var(--fill-interactive-emphasis-active)] data-[disabled]:pointer-events-none data-[disabled]:opacity-50 focus:text-[var(--text-interactive-neutral-hover)] active:text-[var(--text-interactive-emphasis-active)] data-[disabled]:cursor-default",
|
|
15208
15213
|
e
|
|
15209
15214
|
),
|
|
@@ -15219,7 +15224,7 @@ const ps = d.forwardRef(({ className: e, inset: t, ...r }, n) => /* @__PURE__ */
|
|
|
15219
15224
|
Hp,
|
|
15220
15225
|
{
|
|
15221
15226
|
ref: n,
|
|
15222
|
-
className:
|
|
15227
|
+
className: k(
|
|
15223
15228
|
"px-2 py-1.5 text-sm font-semibold",
|
|
15224
15229
|
t && "pl-8",
|
|
15225
15230
|
e
|
|
@@ -15232,7 +15237,7 @@ const Nt = d.forwardRef(({ className: e, ...t }, r) => /* @__PURE__ */ s.jsx(
|
|
|
15232
15237
|
Jp,
|
|
15233
15238
|
{
|
|
15234
15239
|
ref: r,
|
|
15235
|
-
className:
|
|
15240
|
+
className: k("-mx-1 my-1 h-px bg-purple-muted-500", e),
|
|
15236
15241
|
...t
|
|
15237
15242
|
}
|
|
15238
15243
|
));
|
|
@@ -15243,7 +15248,7 @@ const sm = ({
|
|
|
15243
15248
|
}) => /* @__PURE__ */ s.jsx(
|
|
15244
15249
|
"span",
|
|
15245
15250
|
{
|
|
15246
|
-
className:
|
|
15251
|
+
className: k(
|
|
15247
15252
|
"ml-auto text-xs tracking-widest [&>svg]:size-4 self-end",
|
|
15248
15253
|
e
|
|
15249
15254
|
),
|
|
@@ -15251,7 +15256,7 @@ const sm = ({
|
|
|
15251
15256
|
}
|
|
15252
15257
|
);
|
|
15253
15258
|
sm.displayName = "DropdownMenuEndAndornment";
|
|
15254
|
-
const $
|
|
15259
|
+
const $k = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
15255
15260
|
am,
|
|
15256
15261
|
{
|
|
15257
15262
|
className: "m-0 rounded-none gap-2 pl-3 pr-9 py-1.5",
|
|
@@ -15263,19 +15268,19 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15263
15268
|
e.label
|
|
15264
15269
|
]
|
|
15265
15270
|
}
|
|
15266
|
-
),
|
|
15271
|
+
), Lk = ({
|
|
15267
15272
|
radioGroupItem: e
|
|
15268
15273
|
}) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
15269
15274
|
/* @__PURE__ */ s.jsx(
|
|
15270
|
-
|
|
15275
|
+
Dk,
|
|
15271
15276
|
{
|
|
15272
15277
|
value: e.value,
|
|
15273
15278
|
onValueChange: e.onValueChange,
|
|
15274
|
-
children: e.radioItems.map((t, r) => /* @__PURE__ */ s.jsx($
|
|
15279
|
+
children: e.radioItems.map((t, r) => /* @__PURE__ */ s.jsx($k, { radioItem: t }, `item-${r}`))
|
|
15275
15280
|
}
|
|
15276
15281
|
),
|
|
15277
15282
|
e.separator && /* @__PURE__ */ s.jsx(Nt, {})
|
|
15278
|
-
] }),
|
|
15283
|
+
] }), Fk = ({ actionItem: e }) => /* @__PURE__ */ s.jsxs("div", { className: "w-full [&>button]:w-full", children: [
|
|
15279
15284
|
/* @__PURE__ */ s.jsx(
|
|
15280
15285
|
lo,
|
|
15281
15286
|
{
|
|
@@ -15301,7 +15306,7 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15301
15306
|
}
|
|
15302
15307
|
),
|
|
15303
15308
|
e.separator && /* @__PURE__ */ s.jsx(Nt, {})
|
|
15304
|
-
] }),
|
|
15309
|
+
] }), Vk = ({ checkboxItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
15305
15310
|
om,
|
|
15306
15311
|
{
|
|
15307
15312
|
className: "gap-2 m-0 rounded-none py-1.5 pl-3 pr-9 outline-none",
|
|
@@ -15314,15 +15319,15 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15314
15319
|
e.label
|
|
15315
15320
|
]
|
|
15316
15321
|
}
|
|
15317
|
-
),
|
|
15322
|
+
), Bk = ({
|
|
15318
15323
|
checkboxGroupItem: e
|
|
15319
15324
|
}) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
15320
|
-
/* @__PURE__ */ s.jsx(
|
|
15325
|
+
/* @__PURE__ */ s.jsx(Ik, { children: e.checkboxes.map((t, r) => /* @__PURE__ */ s.jsx(Vk, { checkboxItem: t }, `item-${r}`)) }),
|
|
15321
15326
|
e.separator && /* @__PURE__ */ s.jsx(Nt, {})
|
|
15322
|
-
] }),
|
|
15327
|
+
] }), Gk = ({
|
|
15323
15328
|
subMenuItem: e
|
|
15324
15329
|
}) => /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
15325
|
-
/* @__PURE__ */ s.jsxs(
|
|
15330
|
+
/* @__PURE__ */ s.jsxs(Ok, { children: [
|
|
15326
15331
|
/* @__PURE__ */ s.jsxs(
|
|
15327
15332
|
tm,
|
|
15328
15333
|
{
|
|
@@ -15334,41 +15339,41 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15334
15339
|
]
|
|
15335
15340
|
}
|
|
15336
15341
|
),
|
|
15337
|
-
/* @__PURE__ */ s.jsx(
|
|
15342
|
+
/* @__PURE__ */ s.jsx(Mk, { children: /* @__PURE__ */ s.jsx(rm, { children: e.subItems.map(
|
|
15338
15343
|
(t, r) => im(t, r)
|
|
15339
15344
|
) }) })
|
|
15340
15345
|
] }),
|
|
15341
15346
|
e.separator && /* @__PURE__ */ s.jsx(Nt, {})
|
|
15342
|
-
] }),
|
|
15347
|
+
] }), Wk = ({ menuItem: e }) => /* @__PURE__ */ s.jsx(ps, { className: "text-purple-muted-300 px-3 font-normal", children: e.label }), zk = () => /* @__PURE__ */ s.jsx(Nt, {}), im = (e, t) => {
|
|
15343
15348
|
switch (e.type) {
|
|
15344
15349
|
case "ActionMenuItem":
|
|
15345
|
-
return /* @__PURE__ */ s.jsx(
|
|
15350
|
+
return /* @__PURE__ */ s.jsx(Fk, { actionItem: e }, `item-${t}`);
|
|
15346
15351
|
case "CheckboxGroup":
|
|
15347
|
-
return /* @__PURE__ */ s.jsx(
|
|
15352
|
+
return /* @__PURE__ */ s.jsx(Bk, { checkboxGroupItem: e }, `item-${t}`);
|
|
15348
15353
|
case "RadioGroup":
|
|
15349
|
-
return /* @__PURE__ */ s.jsx(
|
|
15354
|
+
return /* @__PURE__ */ s.jsx(Lk, { radioGroupItem: e }, `item-${t}`);
|
|
15350
15355
|
case "SubMenuItem":
|
|
15351
|
-
return /* @__PURE__ */ s.jsx(
|
|
15356
|
+
return /* @__PURE__ */ s.jsx(Gk, { subMenuItem: e }, `item-${t}`);
|
|
15352
15357
|
case "MenuLabel":
|
|
15353
|
-
return /* @__PURE__ */ s.jsx(
|
|
15358
|
+
return /* @__PURE__ */ s.jsx(Wk, { menuItem: e }, `item-${t}`);
|
|
15354
15359
|
case "Separator":
|
|
15355
|
-
return /* @__PURE__ */ s.jsx(
|
|
15360
|
+
return /* @__PURE__ */ s.jsx(zk, {}, `item-${t}`);
|
|
15356
15361
|
default:
|
|
15357
15362
|
return null;
|
|
15358
15363
|
}
|
|
15359
|
-
},
|
|
15364
|
+
}, qk = {
|
|
15360
15365
|
s: "min-w-[140px]",
|
|
15361
15366
|
m: "min-w-[249px]",
|
|
15362
15367
|
l: "min-w-[257px]"
|
|
15363
|
-
},
|
|
15368
|
+
}, Uk = ({ header: e }) => /* @__PURE__ */ s.jsxs("div", { className: "flex flex-col gap-1", children: [
|
|
15364
15369
|
/* @__PURE__ */ s.jsx("span", { className: "text-purple-muted-300", children: e.title }),
|
|
15365
15370
|
/* @__PURE__ */ s.jsx("span", { children: e.label })
|
|
15366
|
-
] }),
|
|
15371
|
+
] }), Hk = ({
|
|
15367
15372
|
header: e
|
|
15368
15373
|
}) => e ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
15369
|
-
/* @__PURE__ */ s.jsx(ps, { className: "text-purple-100 font-normal px-3", children: e.type === "MenuTitleHeader" && /* @__PURE__ */ s.jsx(
|
|
15374
|
+
/* @__PURE__ */ s.jsx(ps, { className: "text-purple-100 font-normal px-3", children: e.type === "MenuTitleHeader" && /* @__PURE__ */ s.jsx(Uk, { header: e }) }),
|
|
15370
15375
|
/* @__PURE__ */ s.jsx(Nt, { className: "bg-purple-muted-500" })
|
|
15371
|
-
] }) : null,
|
|
15376
|
+
] }) : null, Kk = ({
|
|
15372
15377
|
footer: e
|
|
15373
15378
|
}) => e ? /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
15374
15379
|
/* @__PURE__ */ s.jsx(Nt, { className: "bg-purple-muted-500" }),
|
|
@@ -15384,7 +15389,7 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15384
15389
|
]
|
|
15385
15390
|
}
|
|
15386
15391
|
)
|
|
15387
|
-
] }) : null,
|
|
15392
|
+
] }) : null, Yk = ({
|
|
15388
15393
|
menuItems: e,
|
|
15389
15394
|
header: t,
|
|
15390
15395
|
footer: r,
|
|
@@ -15397,16 +15402,16 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15397
15402
|
className: u = ""
|
|
15398
15403
|
}) => {
|
|
15399
15404
|
const f = bg(
|
|
15400
|
-
|
|
15405
|
+
qk,
|
|
15401
15406
|
{
|
|
15402
15407
|
[o]: o,
|
|
15403
15408
|
className: u
|
|
15404
15409
|
},
|
|
15405
15410
|
!1
|
|
15406
15411
|
);
|
|
15407
|
-
return /* @__PURE__ */ s.jsx("div", { className:
|
|
15412
|
+
return /* @__PURE__ */ s.jsx("div", { className: k("qodo qodo-dropdown"), children: /* @__PURE__ */ s.jsxs(_k, { modal: l, children: [
|
|
15408
15413
|
/* @__PURE__ */ s.jsx(
|
|
15409
|
-
|
|
15414
|
+
Ak,
|
|
15410
15415
|
{
|
|
15411
15416
|
asChild: a,
|
|
15412
15417
|
className: "select-none outline-none flex items-center",
|
|
@@ -15421,14 +15426,14 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15421
15426
|
align: "end",
|
|
15422
15427
|
className: f,
|
|
15423
15428
|
children: [
|
|
15424
|
-
/* @__PURE__ */ s.jsx(
|
|
15429
|
+
/* @__PURE__ */ s.jsx(Hk, { header: t }),
|
|
15425
15430
|
e.filter((p) => !p.isHidden).map((p, g) => im(p, g)),
|
|
15426
|
-
/* @__PURE__ */ s.jsx(
|
|
15431
|
+
/* @__PURE__ */ s.jsx(Kk, { footer: r })
|
|
15427
15432
|
]
|
|
15428
15433
|
}
|
|
15429
15434
|
)
|
|
15430
15435
|
] }) });
|
|
15431
|
-
},
|
|
15436
|
+
}, Xk = ({
|
|
15432
15437
|
triggerAriaLabel: e = "Open actions menu",
|
|
15433
15438
|
className: t,
|
|
15434
15439
|
...r
|
|
@@ -15438,13 +15443,13 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15438
15443
|
variant: "ghost",
|
|
15439
15444
|
size: "icon",
|
|
15440
15445
|
"aria-label": e,
|
|
15441
|
-
className:
|
|
15446
|
+
className: k("flex items-center justify-center h-4 w-4", t),
|
|
15442
15447
|
...r,
|
|
15443
15448
|
children: /* @__PURE__ */ s.jsx(al, { className: "h-4 w-4" })
|
|
15444
15449
|
}
|
|
15445
15450
|
), sN = ({
|
|
15446
15451
|
menuItems: e = [],
|
|
15447
|
-
triggerElement: t =
|
|
15452
|
+
triggerElement: t = Xk,
|
|
15448
15453
|
triggerProps: r = {},
|
|
15449
15454
|
className: n,
|
|
15450
15455
|
size: o = "s",
|
|
@@ -15452,12 +15457,12 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15452
15457
|
side: i = "bottom",
|
|
15453
15458
|
modal: l = !1
|
|
15454
15459
|
}) => /* @__PURE__ */ s.jsx("div", { className: n, onClick: (c) => c.stopPropagation(), children: /* @__PURE__ */ s.jsx(
|
|
15455
|
-
|
|
15460
|
+
Yk,
|
|
15456
15461
|
{
|
|
15457
15462
|
triggerElement: /* @__PURE__ */ s.jsx(
|
|
15458
15463
|
t,
|
|
15459
15464
|
{
|
|
15460
|
-
className:
|
|
15465
|
+
className: k(
|
|
15461
15466
|
"flex items-center justify-center",
|
|
15462
15467
|
r == null ? void 0 : r.className
|
|
15463
15468
|
),
|
|
@@ -15471,7 +15476,7 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15471
15476
|
modal: l,
|
|
15472
15477
|
disabled: r == null ? void 0 : r.disabled
|
|
15473
15478
|
}
|
|
15474
|
-
) }),
|
|
15479
|
+
) }), Zk = {
|
|
15475
15480
|
// Password Manager Blocking (all valid data attributes)
|
|
15476
15481
|
"data-lpignore": "true",
|
|
15477
15482
|
"data-1p-ignore": "true",
|
|
@@ -15495,52 +15500,52 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15495
15500
|
disableFilterIcon: o = !0,
|
|
15496
15501
|
...a
|
|
15497
15502
|
}) => {
|
|
15498
|
-
const i = r === Wi.LARGE ? "pl-12 py-3 pr-4 h-[45px]" : "pl-9 py-1.5 pr-2 h-[33px]", l =
|
|
15503
|
+
const i = r === Wi.LARGE ? "pl-12 py-3 pr-4 h-[45px]" : "pl-9 py-1.5 pr-2 h-[33px]", l = k(
|
|
15499
15504
|
"absolute top-1/2 h-4 w-4 -translate-y-1/2",
|
|
15500
15505
|
n ? "text-purple-muted-600" : "text-purple-muted-400"
|
|
15501
|
-
), c =
|
|
15506
|
+
), c = k(
|
|
15502
15507
|
"text-purple-muted-200 dark:border-purple-muted-600 dark:text-purple-muted-200 dark:bg-[#1C1C1C] dark:placeholder:text-purple-muted-400 pl-9",
|
|
15503
15508
|
{ "pr-9": !o }
|
|
15504
15509
|
);
|
|
15505
15510
|
return /* @__PURE__ */ s.jsxs(
|
|
15506
15511
|
"div",
|
|
15507
15512
|
{
|
|
15508
|
-
className:
|
|
15513
|
+
className: k("qodo qodo-search-input", "relative", e),
|
|
15509
15514
|
children: [
|
|
15510
|
-
/* @__PURE__ */ s.jsx(il, { className:
|
|
15515
|
+
/* @__PURE__ */ s.jsx(il, { className: k(l, "left-3") }),
|
|
15511
15516
|
/* @__PURE__ */ s.jsx(
|
|
15512
15517
|
Tn,
|
|
15513
15518
|
{
|
|
15514
|
-
className:
|
|
15519
|
+
className: k(i, c, t),
|
|
15515
15520
|
disabled: n,
|
|
15516
15521
|
...a,
|
|
15517
|
-
...
|
|
15522
|
+
...Zk
|
|
15518
15523
|
}
|
|
15519
15524
|
),
|
|
15520
|
-
!o && /* @__PURE__ */ s.jsx(Ug, { className:
|
|
15525
|
+
!o && /* @__PURE__ */ s.jsx(Ug, { className: k(l, "right-3") })
|
|
15521
15526
|
]
|
|
15522
15527
|
}
|
|
15523
15528
|
);
|
|
15524
|
-
},
|
|
15529
|
+
}, Jk = /^(([^<>()[\]\\.,;:\s@"]+(\.[^<>()[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/, Qk = (e) => e.split(/[,\s]+/).map((t) => t.trim()).filter(Boolean), eR = (e, t) => {
|
|
15525
15530
|
var n;
|
|
15526
15531
|
if (!(t != null && t.length)) return !0;
|
|
15527
15532
|
const r = (n = e.split("@")[1]) == null ? void 0 : n.toLowerCase();
|
|
15528
15533
|
return t.some(
|
|
15529
15534
|
(o) => r === o.toLowerCase()
|
|
15530
15535
|
);
|
|
15531
|
-
},
|
|
15532
|
-
const n =
|
|
15536
|
+
}, tR = (e, t) => e.map((r) => {
|
|
15537
|
+
const n = Jk.test(r), o = n ? eR(r, t == null ? void 0 : t.domains) : void 0;
|
|
15533
15538
|
return {
|
|
15534
15539
|
email: r,
|
|
15535
15540
|
isValid: n && o !== !1,
|
|
15536
15541
|
isDomainValid: o
|
|
15537
15542
|
};
|
|
15538
|
-
}),
|
|
15539
|
-
const n =
|
|
15543
|
+
}), rR = (e, t, r) => {
|
|
15544
|
+
const n = tR(e, r), o = [...t];
|
|
15540
15545
|
for (const a of n)
|
|
15541
15546
|
o.some((l) => l.email === a.email) || o.push(a);
|
|
15542
15547
|
return o;
|
|
15543
|
-
},
|
|
15548
|
+
}, nR = ({
|
|
15544
15549
|
onChange: e = () => {
|
|
15545
15550
|
},
|
|
15546
15551
|
organization: t
|
|
@@ -15557,10 +15562,10 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15557
15562
|
[o]
|
|
15558
15563
|
), i = ye(
|
|
15559
15564
|
(u) => {
|
|
15560
|
-
const f =
|
|
15565
|
+
const f = Qk(u);
|
|
15561
15566
|
if (f.length === 0)
|
|
15562
15567
|
return;
|
|
15563
|
-
const p =
|
|
15568
|
+
const p = rR(f, r, t);
|
|
15564
15569
|
a(p);
|
|
15565
15570
|
},
|
|
15566
15571
|
[r, a, t]
|
|
@@ -15583,7 +15588,7 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15583
15588
|
clearAll: l,
|
|
15584
15589
|
notify: o
|
|
15585
15590
|
};
|
|
15586
|
-
},
|
|
15591
|
+
}, oR = (e) => {
|
|
15587
15592
|
const {
|
|
15588
15593
|
draft: t,
|
|
15589
15594
|
setDraft: r,
|
|
@@ -15620,7 +15625,7 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15620
15625
|
}
|
|
15621
15626
|
[",", ";", " "].includes(f.key) && (f.preventDefault(), t.trim() && (n(t), r("")));
|
|
15622
15627
|
};
|
|
15623
|
-
},
|
|
15628
|
+
}, aR = ({ email: e, isValid: t, onRemove: r }) => {
|
|
15624
15629
|
const n = (o) => {
|
|
15625
15630
|
o.stopPropagation(), r(e);
|
|
15626
15631
|
};
|
|
@@ -15644,7 +15649,7 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15644
15649
|
]
|
|
15645
15650
|
}
|
|
15646
15651
|
);
|
|
15647
|
-
},
|
|
15652
|
+
}, sR = ({
|
|
15648
15653
|
hasContent: e,
|
|
15649
15654
|
onClearAll: t,
|
|
15650
15655
|
emails: r,
|
|
@@ -15734,7 +15739,7 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15734
15739
|
invalidEmailError: c = "Invalid email",
|
|
15735
15740
|
invalidDomainError: u = "Email domain is not allowed"
|
|
15736
15741
|
}) => {
|
|
15737
|
-
const f = me(null), p = me(null), [g, m] = Ee(""), [b, v] = Ee(!1), { emails: x, setEmails: y, addTokens: h, removeToken: C, clearAll: S, notify: N } =
|
|
15742
|
+
const f = me(null), p = me(null), [g, m] = Ee(""), [b, v] = Ee(!1), { emails: x, setEmails: y, addTokens: h, removeToken: C, clearAll: S, notify: N } = nR({ onChange: e, organization: o }), T = oR({
|
|
15738
15743
|
draft: g,
|
|
15739
15744
|
setDraft: m,
|
|
15740
15745
|
addTokens: h,
|
|
@@ -15748,7 +15753,7 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15748
15753
|
var J;
|
|
15749
15754
|
const B = ((J = o == null ? void 0 : o.domains) == null ? void 0 : J[0]) || "example.com";
|
|
15750
15755
|
return r({ domain: B });
|
|
15751
|
-
},
|
|
15756
|
+
}, R = ye(
|
|
15752
15757
|
(B) => {
|
|
15753
15758
|
m(B.target.value);
|
|
15754
15759
|
},
|
|
@@ -15773,16 +15778,16 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15773
15778
|
J && ((P = f.current) != null && P.contains(J)) || g.trim() && (h(g), m(""));
|
|
15774
15779
|
},
|
|
15775
15780
|
[g, h]
|
|
15776
|
-
), V = x.length > 0, M = !V && g.length === 0, A = V || g.length > 0, O =
|
|
15781
|
+
), V = x.length > 0, M = !V && g.length === 0, A = V || g.length > 0, O = k(
|
|
15777
15782
|
"bg-transparent text-sm outline-none border-0 p-0 h-6 shadow-none focus-visible:ring-0 whitespace-nowrap text-purple-muted-200 placeholder:text-purple-muted-400",
|
|
15778
15783
|
V ? "flex-none shrink-0 overflow-x-auto overflow-y-hidden no-scrollbar" : "flex-1 !min-w-full overflow-hidden",
|
|
15779
15784
|
{ "opacity-50 cursor-not-allowed": t },
|
|
15780
15785
|
a
|
|
15781
|
-
), E =
|
|
15786
|
+
), E = k(
|
|
15782
15787
|
"inline-flex items-center gap-1 no-scrollbar",
|
|
15783
15788
|
V ? "w-max" : "w-full",
|
|
15784
15789
|
i
|
|
15785
|
-
), I =
|
|
15790
|
+
), I = k(
|
|
15786
15791
|
"qodo qodo-email-chips-input",
|
|
15787
15792
|
"relative w-full max-w-full min-w-0 overflow-hidden rounded-md border pl-9 pr-14 py-2 pl-9 pr-14 py-2 focus-within:ring-1 border-purple-muted-500 dark:bg-purple-muted-800 focus-within:ring-purple-muted-400",
|
|
15788
15793
|
l
|
|
@@ -15804,7 +15809,7 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15804
15809
|
/* @__PURE__ */ s.jsx("div", { className: "absolute left-3 top-1/2 -translate-y-1/2 text-purple-muted-400", children: /* @__PURE__ */ s.jsx(Yg, { className: "w-4 h-4" }) }),
|
|
15805
15810
|
/* @__PURE__ */ s.jsx("div", { className: "w-full text-start max-w-full min-w-0 overflow-x-auto overflow-y-hidden no-scrollbar", children: /* @__PURE__ */ s.jsxs("div", { className: E, children: [
|
|
15806
15811
|
x.map((B, J) => /* @__PURE__ */ s.jsx(
|
|
15807
|
-
|
|
15812
|
+
aR,
|
|
15808
15813
|
{
|
|
15809
15814
|
email: B.email,
|
|
15810
15815
|
isValid: B.isValid,
|
|
@@ -15817,7 +15822,7 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15817
15822
|
{
|
|
15818
15823
|
ref: p,
|
|
15819
15824
|
value: g,
|
|
15820
|
-
onChange:
|
|
15825
|
+
onChange: R,
|
|
15821
15826
|
onKeyDown: T,
|
|
15822
15827
|
onBlur: W,
|
|
15823
15828
|
onPaste: U,
|
|
@@ -15828,7 +15833,7 @@ const $R = ({ radioItem: e }) => /* @__PURE__ */ s.jsxs(
|
|
|
15828
15833
|
)
|
|
15829
15834
|
] }) }),
|
|
15830
15835
|
/* @__PURE__ */ s.jsx(
|
|
15831
|
-
|
|
15836
|
+
sR,
|
|
15832
15837
|
{
|
|
15833
15838
|
hasContent: A,
|
|
15834
15839
|
onClearAll: S,
|
|
@@ -15859,20 +15864,20 @@ function cN({
|
|
|
15859
15864
|
icon: c,
|
|
15860
15865
|
iconClassName: u
|
|
15861
15866
|
}) {
|
|
15862
|
-
const f =
|
|
15867
|
+
const f = k(
|
|
15863
15868
|
"px-6 py-4 gap-1 flex flex-row items-center gap-4",
|
|
15864
15869
|
"border-[var(--border-panel-neutral)] rounded-md fill-[var(--fill-panel-neutral)]",
|
|
15865
15870
|
{ "px-4": !!c },
|
|
15866
15871
|
l
|
|
15867
|
-
), p =
|
|
15872
|
+
), p = k(
|
|
15868
15873
|
"p-0 m-0 text-xs",
|
|
15869
15874
|
"text-[var(--color-text-bg-neutral-mild)] dark:text-[var(--color-text-bg-neutral-mild)] font-normal",
|
|
15870
15875
|
o
|
|
15871
|
-
), g =
|
|
15876
|
+
), g = k(
|
|
15872
15877
|
"w-8 h-8 flex items-center justify-center",
|
|
15873
15878
|
"bg-purple-muted-600 rounded-full p-2.5",
|
|
15874
15879
|
u
|
|
15875
|
-
), m =
|
|
15880
|
+
), m = k(
|
|
15876
15881
|
"text-xl font-medium p-0 m-0 leading-5",
|
|
15877
15882
|
{
|
|
15878
15883
|
"text-muted-foreground dark:text-white": i === on.DEFAULT,
|
|
@@ -15894,37 +15899,37 @@ function cN({
|
|
|
15894
15899
|
] });
|
|
15895
15900
|
}
|
|
15896
15901
|
export {
|
|
15897
|
-
|
|
15898
|
-
|
|
15899
|
-
|
|
15900
|
-
|
|
15902
|
+
FR as Accordion,
|
|
15903
|
+
GR as AccordionContent,
|
|
15904
|
+
VR as AccordionItem,
|
|
15905
|
+
BR as AccordionTrigger,
|
|
15901
15906
|
sN as ActionsCell,
|
|
15902
15907
|
jr as Badge,
|
|
15903
15908
|
rN as BadgeCell,
|
|
15904
15909
|
Bi as BaseCell,
|
|
15905
15910
|
mt as Button,
|
|
15906
15911
|
Ny as Card,
|
|
15907
|
-
|
|
15912
|
+
jR as CardAction,
|
|
15908
15913
|
_y as CardContent,
|
|
15909
15914
|
Ty as CardDescription,
|
|
15910
|
-
|
|
15915
|
+
PR as CardFooter,
|
|
15911
15916
|
jy as CardHeader,
|
|
15912
15917
|
Py as CardTitle,
|
|
15913
15918
|
Tf as Checkbox,
|
|
15914
15919
|
wf as CheckboxGroup,
|
|
15915
15920
|
bg as ClassHelper,
|
|
15916
15921
|
yd as Combobox,
|
|
15917
|
-
|
|
15918
|
-
|
|
15919
|
-
|
|
15920
|
-
|
|
15921
|
-
|
|
15922
|
-
|
|
15922
|
+
bR as Dialog,
|
|
15923
|
+
wR as DialogClose,
|
|
15924
|
+
CR as DialogContent,
|
|
15925
|
+
RR as DialogDescription,
|
|
15926
|
+
ER as DialogFooter,
|
|
15927
|
+
SR as DialogHeader,
|
|
15923
15928
|
dy as DialogOverlay,
|
|
15924
15929
|
cy as DialogPortal,
|
|
15925
|
-
|
|
15926
|
-
|
|
15927
|
-
|
|
15930
|
+
kR as DialogTitle,
|
|
15931
|
+
yR as DialogTrigger,
|
|
15932
|
+
Yk as Dropdown,
|
|
15928
15933
|
lN as EmailChipsInput,
|
|
15929
15934
|
Me as Form,
|
|
15930
15935
|
Zw as FormProvider,
|
|
@@ -15932,39 +15937,40 @@ export {
|
|
|
15932
15937
|
cN as InsightCard,
|
|
15933
15938
|
nN as NumberCell,
|
|
15934
15939
|
nn as PAGINATION_MODE,
|
|
15935
|
-
|
|
15940
|
+
_R as Progress,
|
|
15936
15941
|
rf as RadioGroup,
|
|
15937
15942
|
nf as RadioGroupItem,
|
|
15938
15943
|
iN as SearchInput,
|
|
15939
|
-
|
|
15944
|
+
q1 as Select,
|
|
15940
15945
|
yb as SelectContent,
|
|
15941
|
-
|
|
15946
|
+
gR as SelectGroup,
|
|
15942
15947
|
Cb as SelectItem,
|
|
15943
15948
|
wb as SelectLabel,
|
|
15944
15949
|
jc as SelectScrollDownButton,
|
|
15945
15950
|
Nc as SelectScrollUpButton,
|
|
15946
15951
|
Sb as SelectSeparator,
|
|
15947
15952
|
bb as SelectTrigger,
|
|
15948
|
-
|
|
15953
|
+
mR as SelectV1,
|
|
15954
|
+
vR as SelectValue,
|
|
15949
15955
|
Vy as Skeleton,
|
|
15950
15956
|
oN as SortableHeaderCell,
|
|
15951
15957
|
eN as Steps,
|
|
15952
|
-
|
|
15958
|
+
IR as Switch,
|
|
15953
15959
|
tN as Table,
|
|
15954
|
-
|
|
15955
|
-
|
|
15956
|
-
|
|
15957
|
-
|
|
15960
|
+
zR as Tabs,
|
|
15961
|
+
HR as TabsContent,
|
|
15962
|
+
qR as TabsList,
|
|
15963
|
+
UR as TabsTrigger,
|
|
15958
15964
|
lC as TagsInput,
|
|
15959
|
-
|
|
15960
|
-
|
|
15961
|
-
$
|
|
15965
|
+
MR as Toggle,
|
|
15966
|
+
DR as ToggleGroup,
|
|
15967
|
+
$R as ToggleGroupItem,
|
|
15962
15968
|
lo as Tooltip,
|
|
15963
|
-
|
|
15964
|
-
|
|
15965
|
-
|
|
15966
|
-
|
|
15967
|
-
|
|
15969
|
+
uR as borderRadius,
|
|
15970
|
+
k as cn,
|
|
15971
|
+
cR as colors,
|
|
15972
|
+
dR as spacing,
|
|
15973
|
+
fR as typography,
|
|
15968
15974
|
Jw as useFormContext
|
|
15969
15975
|
};
|
|
15970
15976
|
//# sourceMappingURL=index.esm.js.map
|