@danxbot/ui 3.3.1 → 3.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +745 -700
- package/dist/index.js.map +1 -1
- package/dist/types/components/AppShell.d.ts +39 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as p, jsxs as M, Fragment as dt } from "react/jsx-runtime";
|
|
2
2
|
import * as b from "react";
|
|
3
|
-
import zl, { createElement as zh, useState as Pe, useRef as
|
|
3
|
+
import zl, { createElement as zh, useState as Pe, useRef as Qe, useLayoutEffect as Bl, useId as Dn, Component as sR, useMemo as st, useEffect as at, useCallback as Xe, Children as iR, isValidElement as aR, Fragment as ey, useSyncExternalStore as Hl, useContext as no, createContext as ro, memo as Gl } from "react";
|
|
4
4
|
import * as gn from "react-dom";
|
|
5
5
|
import { createPortal as lR } from "react-dom";
|
|
6
6
|
const cR = {
|
|
@@ -518,7 +518,7 @@ const fR = (e, t) => {
|
|
|
518
518
|
c,
|
|
519
519
|
ze,
|
|
520
520
|
_e
|
|
521
|
-
], L = () => ["", ct, Ls, po], W = () => ["solid", "dashed", "dotted", "double"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"],
|
|
521
|
+
], L = () => ["", ct, Ls, po], W = () => ["solid", "dashed", "dotted", "double"], Y = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], q = () => [ct, cu, jh, Wh], ee = () => [
|
|
522
522
|
// Deprecated since Tailwind CSS v4.0.0
|
|
523
523
|
"",
|
|
524
524
|
"none",
|
|
@@ -2160,10 +2160,10 @@ const fR = (e, t) => {
|
|
|
2160
2160
|
"mask-linear": [ct]
|
|
2161
2161
|
}],
|
|
2162
2162
|
"mask-image-linear-from-pos": [{
|
|
2163
|
-
"mask-linear-from":
|
|
2163
|
+
"mask-linear-from": q()
|
|
2164
2164
|
}],
|
|
2165
2165
|
"mask-image-linear-to-pos": [{
|
|
2166
|
-
"mask-linear-to":
|
|
2166
|
+
"mask-linear-to": q()
|
|
2167
2167
|
}],
|
|
2168
2168
|
"mask-image-linear-from-color": [{
|
|
2169
2169
|
"mask-linear-from": P()
|
|
@@ -2172,10 +2172,10 @@ const fR = (e, t) => {
|
|
|
2172
2172
|
"mask-linear-to": P()
|
|
2173
2173
|
}],
|
|
2174
2174
|
"mask-image-t-from-pos": [{
|
|
2175
|
-
"mask-t-from":
|
|
2175
|
+
"mask-t-from": q()
|
|
2176
2176
|
}],
|
|
2177
2177
|
"mask-image-t-to-pos": [{
|
|
2178
|
-
"mask-t-to":
|
|
2178
|
+
"mask-t-to": q()
|
|
2179
2179
|
}],
|
|
2180
2180
|
"mask-image-t-from-color": [{
|
|
2181
2181
|
"mask-t-from": P()
|
|
@@ -2184,10 +2184,10 @@ const fR = (e, t) => {
|
|
|
2184
2184
|
"mask-t-to": P()
|
|
2185
2185
|
}],
|
|
2186
2186
|
"mask-image-r-from-pos": [{
|
|
2187
|
-
"mask-r-from":
|
|
2187
|
+
"mask-r-from": q()
|
|
2188
2188
|
}],
|
|
2189
2189
|
"mask-image-r-to-pos": [{
|
|
2190
|
-
"mask-r-to":
|
|
2190
|
+
"mask-r-to": q()
|
|
2191
2191
|
}],
|
|
2192
2192
|
"mask-image-r-from-color": [{
|
|
2193
2193
|
"mask-r-from": P()
|
|
@@ -2196,10 +2196,10 @@ const fR = (e, t) => {
|
|
|
2196
2196
|
"mask-r-to": P()
|
|
2197
2197
|
}],
|
|
2198
2198
|
"mask-image-b-from-pos": [{
|
|
2199
|
-
"mask-b-from":
|
|
2199
|
+
"mask-b-from": q()
|
|
2200
2200
|
}],
|
|
2201
2201
|
"mask-image-b-to-pos": [{
|
|
2202
|
-
"mask-b-to":
|
|
2202
|
+
"mask-b-to": q()
|
|
2203
2203
|
}],
|
|
2204
2204
|
"mask-image-b-from-color": [{
|
|
2205
2205
|
"mask-b-from": P()
|
|
@@ -2208,10 +2208,10 @@ const fR = (e, t) => {
|
|
|
2208
2208
|
"mask-b-to": P()
|
|
2209
2209
|
}],
|
|
2210
2210
|
"mask-image-l-from-pos": [{
|
|
2211
|
-
"mask-l-from":
|
|
2211
|
+
"mask-l-from": q()
|
|
2212
2212
|
}],
|
|
2213
2213
|
"mask-image-l-to-pos": [{
|
|
2214
|
-
"mask-l-to":
|
|
2214
|
+
"mask-l-to": q()
|
|
2215
2215
|
}],
|
|
2216
2216
|
"mask-image-l-from-color": [{
|
|
2217
2217
|
"mask-l-from": P()
|
|
@@ -2220,10 +2220,10 @@ const fR = (e, t) => {
|
|
|
2220
2220
|
"mask-l-to": P()
|
|
2221
2221
|
}],
|
|
2222
2222
|
"mask-image-x-from-pos": [{
|
|
2223
|
-
"mask-x-from":
|
|
2223
|
+
"mask-x-from": q()
|
|
2224
2224
|
}],
|
|
2225
2225
|
"mask-image-x-to-pos": [{
|
|
2226
|
-
"mask-x-to":
|
|
2226
|
+
"mask-x-to": q()
|
|
2227
2227
|
}],
|
|
2228
2228
|
"mask-image-x-from-color": [{
|
|
2229
2229
|
"mask-x-from": P()
|
|
@@ -2232,10 +2232,10 @@ const fR = (e, t) => {
|
|
|
2232
2232
|
"mask-x-to": P()
|
|
2233
2233
|
}],
|
|
2234
2234
|
"mask-image-y-from-pos": [{
|
|
2235
|
-
"mask-y-from":
|
|
2235
|
+
"mask-y-from": q()
|
|
2236
2236
|
}],
|
|
2237
2237
|
"mask-image-y-to-pos": [{
|
|
2238
|
-
"mask-y-to":
|
|
2238
|
+
"mask-y-to": q()
|
|
2239
2239
|
}],
|
|
2240
2240
|
"mask-image-y-from-color": [{
|
|
2241
2241
|
"mask-y-from": P()
|
|
@@ -2247,10 +2247,10 @@ const fR = (e, t) => {
|
|
|
2247
2247
|
"mask-radial": [ze, _e]
|
|
2248
2248
|
}],
|
|
2249
2249
|
"mask-image-radial-from-pos": [{
|
|
2250
|
-
"mask-radial-from":
|
|
2250
|
+
"mask-radial-from": q()
|
|
2251
2251
|
}],
|
|
2252
2252
|
"mask-image-radial-to-pos": [{
|
|
2253
|
-
"mask-radial-to":
|
|
2253
|
+
"mask-radial-to": q()
|
|
2254
2254
|
}],
|
|
2255
2255
|
"mask-image-radial-from-color": [{
|
|
2256
2256
|
"mask-radial-from": P()
|
|
@@ -2274,10 +2274,10 @@ const fR = (e, t) => {
|
|
|
2274
2274
|
"mask-conic": [ct]
|
|
2275
2275
|
}],
|
|
2276
2276
|
"mask-image-conic-from-pos": [{
|
|
2277
|
-
"mask-conic-from":
|
|
2277
|
+
"mask-conic-from": q()
|
|
2278
2278
|
}],
|
|
2279
2279
|
"mask-image-conic-to-pos": [{
|
|
2280
|
-
"mask-conic-to":
|
|
2280
|
+
"mask-conic-to": q()
|
|
2281
2281
|
}],
|
|
2282
2282
|
"mask-image-conic-from-color": [{
|
|
2283
2283
|
"mask-conic-from": P()
|
|
@@ -3169,7 +3169,7 @@ const fR = (e, t) => {
|
|
|
3169
3169
|
orderSensitiveModifiers: ["*", "**", "after", "backdrop", "before", "details-content", "file", "first-letter", "first-line", "marker", "placeholder", "selection"]
|
|
3170
3170
|
};
|
|
3171
3171
|
}, nN = /* @__PURE__ */ AR(tN);
|
|
3172
|
-
function
|
|
3172
|
+
function K(...e) {
|
|
3173
3173
|
return nN(dR(e));
|
|
3174
3174
|
}
|
|
3175
3175
|
const rN = {
|
|
@@ -3206,7 +3206,7 @@ function xe({
|
|
|
3206
3206
|
strokeWidth: oN[n],
|
|
3207
3207
|
strokeLinecap: "round",
|
|
3208
3208
|
strokeLinejoin: "round",
|
|
3209
|
-
className:
|
|
3209
|
+
className: K("dx-icon shrink-0", o),
|
|
3210
3210
|
style: { "--dx-icon-size": rN[n], ...s },
|
|
3211
3211
|
...r ? { role: "img", "aria-label": r } : { "aria-hidden": !0, focusable: !1 },
|
|
3212
3212
|
...a,
|
|
@@ -4426,7 +4426,7 @@ var mn = DN(), VN = (e) => {
|
|
|
4426
4426
|
"saturation",
|
|
4427
4427
|
"color",
|
|
4428
4428
|
"luminosity"
|
|
4429
|
-
],
|
|
4429
|
+
], q = () => [ut, du, rg, ng], ee = () => [
|
|
4430
4430
|
// Deprecated since Tailwind CSS v4.0.0
|
|
4431
4431
|
"",
|
|
4432
4432
|
"none",
|
|
@@ -5801,37 +5801,37 @@ var mn = DN(), VN = (e) => {
|
|
|
5801
5801
|
* @see https://tailwindcss.com/docs/mask-image
|
|
5802
5802
|
*/
|
|
5803
5803
|
"mask-image-linear-pos": [{ "mask-linear": [ut] }],
|
|
5804
|
-
"mask-image-linear-from-pos": [{ "mask-linear-from":
|
|
5805
|
-
"mask-image-linear-to-pos": [{ "mask-linear-to":
|
|
5804
|
+
"mask-image-linear-from-pos": [{ "mask-linear-from": q() }],
|
|
5805
|
+
"mask-image-linear-to-pos": [{ "mask-linear-to": q() }],
|
|
5806
5806
|
"mask-image-linear-from-color": [{ "mask-linear-from": P() }],
|
|
5807
5807
|
"mask-image-linear-to-color": [{ "mask-linear-to": P() }],
|
|
5808
|
-
"mask-image-t-from-pos": [{ "mask-t-from":
|
|
5809
|
-
"mask-image-t-to-pos": [{ "mask-t-to":
|
|
5808
|
+
"mask-image-t-from-pos": [{ "mask-t-from": q() }],
|
|
5809
|
+
"mask-image-t-to-pos": [{ "mask-t-to": q() }],
|
|
5810
5810
|
"mask-image-t-from-color": [{ "mask-t-from": P() }],
|
|
5811
5811
|
"mask-image-t-to-color": [{ "mask-t-to": P() }],
|
|
5812
|
-
"mask-image-r-from-pos": [{ "mask-r-from":
|
|
5813
|
-
"mask-image-r-to-pos": [{ "mask-r-to":
|
|
5812
|
+
"mask-image-r-from-pos": [{ "mask-r-from": q() }],
|
|
5813
|
+
"mask-image-r-to-pos": [{ "mask-r-to": q() }],
|
|
5814
5814
|
"mask-image-r-from-color": [{ "mask-r-from": P() }],
|
|
5815
5815
|
"mask-image-r-to-color": [{ "mask-r-to": P() }],
|
|
5816
|
-
"mask-image-b-from-pos": [{ "mask-b-from":
|
|
5817
|
-
"mask-image-b-to-pos": [{ "mask-b-to":
|
|
5816
|
+
"mask-image-b-from-pos": [{ "mask-b-from": q() }],
|
|
5817
|
+
"mask-image-b-to-pos": [{ "mask-b-to": q() }],
|
|
5818
5818
|
"mask-image-b-from-color": [{ "mask-b-from": P() }],
|
|
5819
5819
|
"mask-image-b-to-color": [{ "mask-b-to": P() }],
|
|
5820
|
-
"mask-image-l-from-pos": [{ "mask-l-from":
|
|
5821
|
-
"mask-image-l-to-pos": [{ "mask-l-to":
|
|
5820
|
+
"mask-image-l-from-pos": [{ "mask-l-from": q() }],
|
|
5821
|
+
"mask-image-l-to-pos": [{ "mask-l-to": q() }],
|
|
5822
5822
|
"mask-image-l-from-color": [{ "mask-l-from": P() }],
|
|
5823
5823
|
"mask-image-l-to-color": [{ "mask-l-to": P() }],
|
|
5824
|
-
"mask-image-x-from-pos": [{ "mask-x-from":
|
|
5825
|
-
"mask-image-x-to-pos": [{ "mask-x-to":
|
|
5824
|
+
"mask-image-x-from-pos": [{ "mask-x-from": q() }],
|
|
5825
|
+
"mask-image-x-to-pos": [{ "mask-x-to": q() }],
|
|
5826
5826
|
"mask-image-x-from-color": [{ "mask-x-from": P() }],
|
|
5827
5827
|
"mask-image-x-to-color": [{ "mask-x-to": P() }],
|
|
5828
|
-
"mask-image-y-from-pos": [{ "mask-y-from":
|
|
5829
|
-
"mask-image-y-to-pos": [{ "mask-y-to":
|
|
5828
|
+
"mask-image-y-from-pos": [{ "mask-y-from": q() }],
|
|
5829
|
+
"mask-image-y-to-pos": [{ "mask-y-to": q() }],
|
|
5830
5830
|
"mask-image-y-from-color": [{ "mask-y-from": P() }],
|
|
5831
5831
|
"mask-image-y-to-color": [{ "mask-y-to": P() }],
|
|
5832
5832
|
"mask-image-radial": [{ "mask-radial": [Be, Fe] }],
|
|
5833
|
-
"mask-image-radial-from-pos": [{ "mask-radial-from":
|
|
5834
|
-
"mask-image-radial-to-pos": [{ "mask-radial-to":
|
|
5833
|
+
"mask-image-radial-from-pos": [{ "mask-radial-from": q() }],
|
|
5834
|
+
"mask-image-radial-to-pos": [{ "mask-radial-to": q() }],
|
|
5835
5835
|
"mask-image-radial-from-color": [{ "mask-radial-from": P() }],
|
|
5836
5836
|
"mask-image-radial-to-color": [{ "mask-radial-to": P() }],
|
|
5837
5837
|
"mask-image-radial-shape": [{ "mask-radial": ["circle", "ellipse"] }],
|
|
@@ -5840,8 +5840,8 @@ var mn = DN(), VN = (e) => {
|
|
|
5840
5840
|
],
|
|
5841
5841
|
"mask-image-radial-pos": [{ "mask-radial-at": C() }],
|
|
5842
5842
|
"mask-image-conic-pos": [{ "mask-conic": [ut] }],
|
|
5843
|
-
"mask-image-conic-from-pos": [{ "mask-conic-from":
|
|
5844
|
-
"mask-image-conic-to-pos": [{ "mask-conic-to":
|
|
5843
|
+
"mask-image-conic-from-pos": [{ "mask-conic-from": q() }],
|
|
5844
|
+
"mask-image-conic-to-pos": [{ "mask-conic-to": q() }],
|
|
5845
5845
|
"mask-image-conic-from-color": [{ "mask-conic-from": P() }],
|
|
5846
5846
|
"mask-image-conic-to-color": [{ "mask-conic-to": P() }],
|
|
5847
5847
|
/**
|
|
@@ -6762,7 +6762,7 @@ function Wl({ size: e = "md", label: t, className: n, style: r, ref: o, ...s })
|
|
|
6762
6762
|
ref: o,
|
|
6763
6763
|
viewBox: "0 0 24 24",
|
|
6764
6764
|
fill: "none",
|
|
6765
|
-
className:
|
|
6765
|
+
className: K("dx-icon shrink-0 animate-spin", n),
|
|
6766
6766
|
style: { "--dx-icon-size": lI[e], ...r },
|
|
6767
6767
|
...t ? { role: "status", "aria-label": t } : { "aria-hidden": !0 },
|
|
6768
6768
|
...s,
|
|
@@ -6910,7 +6910,7 @@ function Vt({
|
|
|
6910
6910
|
"aria-disabled": f,
|
|
6911
6911
|
...h
|
|
6912
6912
|
}) {
|
|
6913
|
-
const [g, x] = Pe([]), y =
|
|
6913
|
+
const [g, x] = Pe([]), y = Qe(0), w = i || c || f === !0 || f === "true";
|
|
6914
6914
|
function v(C) {
|
|
6915
6915
|
if (m?.(C), t === "link" || w) return;
|
|
6916
6916
|
const S = C.currentTarget.getBoundingClientRect(), R = Math.max(C.clientX - S.left, S.right - C.clientX), N = Math.max(C.clientY - S.top, S.bottom - C.clientY), E = 2 * Math.hypot(R, N), I = {
|
|
@@ -6926,7 +6926,7 @@ function Vt({
|
|
|
6926
6926
|
ref: d,
|
|
6927
6927
|
defaultTagName: "button",
|
|
6928
6928
|
props: {
|
|
6929
|
-
className:
|
|
6929
|
+
className: K(cI({ variant: t, size: n, iconOnly: r, fullWidth: o }), e),
|
|
6930
6930
|
disabled: c ?? i,
|
|
6931
6931
|
"aria-disabled": f,
|
|
6932
6932
|
"data-loading": i || void 0,
|
|
@@ -6952,7 +6952,7 @@ function Vt({
|
|
|
6952
6952
|
/* @__PURE__ */ M(
|
|
6953
6953
|
"span",
|
|
6954
6954
|
{
|
|
6955
|
-
className:
|
|
6955
|
+
className: K(
|
|
6956
6956
|
"inline-flex items-center gap-[inherit] transition-[var(--tx-colors),opacity] duration-(--dur-fast)",
|
|
6957
6957
|
i && "opacity-0"
|
|
6958
6958
|
),
|
|
@@ -8325,16 +8325,16 @@ function Pi(e) {
|
|
|
8325
8325
|
} = e, g = "rootStore" in t ? t.rootStore : t, x = g.useState("open"), y = g.useState("domReferenceElement"), w = g.useState("floatingElement"), {
|
|
8326
8326
|
events: v,
|
|
8327
8327
|
dataRef: C
|
|
8328
|
-
} = g.context, S = de(() => C.current.floatingContext?.nodeId), R = o === !1, N = wd(y) && R, E = kt(o), I = kt(s), k = kt(c), T = kt(x), A = co(f), V = hv(), D = b.useRef(!1), _ = b.useRef(!1), F = b.useRef(!1), z = b.useRef(null), O = b.useRef(""), G = b.useRef(""), P = b.useRef(null), H = b.useRef(null), $ = ln(P, d, V?.beforeInsideRef), U = ln(H, V?.afterInsideRef), j = wt(), B = wt(), L = Oo(), W = V != null, Y = cl(w),
|
|
8328
|
+
} = g.context, S = de(() => C.current.floatingContext?.nodeId), R = o === !1, N = wd(y) && R, E = kt(o), I = kt(s), k = kt(c), T = kt(x), A = co(f), V = hv(), D = b.useRef(!1), _ = b.useRef(!1), F = b.useRef(!1), z = b.useRef(null), O = b.useRef(""), G = b.useRef(""), P = b.useRef(null), H = b.useRef(null), $ = ln(P, d, V?.beforeInsideRef), U = ln(H, V?.afterInsideRef), j = wt(), B = wt(), L = Oo(), W = V != null, Y = cl(w), q = de((Z = Y) => Z ? Mi(Z) : []), ee = de(() => h?.().filter((Z) => Z != null) ?? []);
|
|
8329
8329
|
b.useEffect(() => {
|
|
8330
8330
|
if (r || !a)
|
|
8331
8331
|
return;
|
|
8332
8332
|
function Z(J) {
|
|
8333
|
-
J.key === "Tab" && ke(Y, Pt(je(Y))) &&
|
|
8333
|
+
J.key === "Tab" && ke(Y, Pt(je(Y))) && q().length === 0 && !N && vt(J);
|
|
8334
8334
|
}
|
|
8335
8335
|
const ne = je(Y);
|
|
8336
8336
|
return Ye(ne, "keydown", Z);
|
|
8337
|
-
}, [r, Y, a, N,
|
|
8337
|
+
}, [r, Y, a, N, q]), b.useEffect(() => {
|
|
8338
8338
|
if (r || !x)
|
|
8339
8339
|
return;
|
|
8340
8340
|
const Z = je(Y);
|
|
@@ -8383,7 +8383,7 @@ function Pi(e) {
|
|
|
8383
8383
|
});
|
|
8384
8384
|
return;
|
|
8385
8385
|
}
|
|
8386
|
-
const ie =
|
|
8386
|
+
const ie = q(), ae = z.current, ye = (ae && ie.includes(ae) ? ae : null) || ie[ie.length - 1] || Y;
|
|
8387
8387
|
gt(ye) && ye.focus();
|
|
8388
8388
|
}
|
|
8389
8389
|
if (C.current.insideReactTree) {
|
|
@@ -8408,7 +8408,7 @@ function Pi(e) {
|
|
|
8408
8408
|
const pe = gt(y) ? y : null;
|
|
8409
8409
|
if (!(!w && !pe))
|
|
8410
8410
|
return Gn(pe && Ye(pe, "focusout", ce), pe && Ye(pe, "pointerdown", ne), w && Ye(w, "focusin", J), w && Ye(w, "focusout", ce), w && V && Ye(w, "focusout", me, !0));
|
|
8411
|
-
}, [r, y, w, Y, a, A, V, g, l, i,
|
|
8411
|
+
}, [r, y, w, Y, a, A, V, g, l, i, q, N, S, C, j, B, L, u, m, ee]), b.useEffect(() => {
|
|
8412
8412
|
if (r || !w || !x)
|
|
8413
8413
|
return;
|
|
8414
8414
|
const Z = Array.from(V?.portalNode?.querySelectorAll(`[${pi("portal")}]`) || []), J = (A ? bg(A.nodesRef.current, S()) : []).find((le) => wd(le.context?.elements.domReference || null))?.context?.elements.domReference, me = [...[w, ...Z, P.current, H.current, V?.beforeOutsideRef.current, V?.afterOutsideRef.current, ...ee()], J, wr(m), wr(u), N ? y : null].filter((le) => le != null), pe = Cg(me, {
|
|
@@ -8428,7 +8428,7 @@ function Pi(e) {
|
|
|
8428
8428
|
if (ce === void 0 || ce === !1 || ke(Y, ne))
|
|
8429
8429
|
return;
|
|
8430
8430
|
let pe = null;
|
|
8431
|
-
const se = () => (pe == null && (pe =
|
|
8431
|
+
const se = () => (pe == null && (pe = q(Y)), pe[0] || Y);
|
|
8432
8432
|
let oe;
|
|
8433
8433
|
ce === !0 || ce === null ? oe = se() : oe = wr(ce), oe = oe || se();
|
|
8434
8434
|
const le = ke(Y, Pt(Z));
|
|
@@ -8444,7 +8444,7 @@ function Pi(e) {
|
|
|
8444
8444
|
}
|
|
8445
8445
|
});
|
|
8446
8446
|
});
|
|
8447
|
-
}, [r, x, Y,
|
|
8447
|
+
}, [r, x, Y, q, E, k, T]), ge(() => {
|
|
8448
8448
|
if (r || !Y)
|
|
8449
8449
|
return;
|
|
8450
8450
|
const Z = je(Y), ne = Pt(Z), J = k.current == null;
|
|
@@ -8521,7 +8521,7 @@ function Pi(e) {
|
|
|
8521
8521
|
ref: $,
|
|
8522
8522
|
onFocus: (Z) => {
|
|
8523
8523
|
if (a) {
|
|
8524
|
-
const ne =
|
|
8524
|
+
const ne = q();
|
|
8525
8525
|
Za(ne[ne.length - 1]);
|
|
8526
8526
|
} else V?.portalNode && (D.current = !1, ss(Z, V.portalNode) ? Ff(y)?.focus() : wr(m ?? V.beforeOutsideRef)?.focus());
|
|
8527
8527
|
}
|
|
@@ -8529,7 +8529,7 @@ function Pi(e) {
|
|
|
8529
8529
|
"data-type": "inside",
|
|
8530
8530
|
ref: U,
|
|
8531
8531
|
onFocus: (Z) => {
|
|
8532
|
-
a ? Za(
|
|
8532
|
+
a ? Za(q()[0]) : V?.portalNode && (l && (D.current = !0), ss(Z, V.portalNode) ? dv(y)?.focus() : wr(u ?? V.afterOutsideRef)?.focus());
|
|
8533
8533
|
}
|
|
8534
8534
|
})]
|
|
8535
8535
|
});
|
|
@@ -8753,7 +8753,7 @@ function Ns(e, t = {}) {
|
|
|
8753
8753
|
const X = E.current, re = X === "pen" || !X ? "mouse" : X, he = y(), ie = typeof he == "function" ? he() : he;
|
|
8754
8754
|
return typeof ie == "string" ? ie : ie[re];
|
|
8755
8755
|
}
|
|
8756
|
-
function
|
|
8756
|
+
function q(X) {
|
|
8757
8757
|
const re = Y();
|
|
8758
8758
|
return re === "intentional" && X.type !== "click" || re === "sloppy" && X.type === "click";
|
|
8759
8759
|
}
|
|
@@ -8762,7 +8762,7 @@ function Ns(e, t = {}) {
|
|
|
8762
8762
|
return D(X) || he;
|
|
8763
8763
|
}
|
|
8764
8764
|
function te(X) {
|
|
8765
|
-
if (
|
|
8765
|
+
if (q(X)) {
|
|
8766
8766
|
X.type !== "click" && !D(X) && (U.clear(), R.current = !1), A();
|
|
8767
8767
|
return;
|
|
8768
8768
|
}
|
|
@@ -11302,7 +11302,7 @@ function rp(e, t = {}) {
|
|
|
11302
11302
|
}
|
|
11303
11303
|
}
|
|
11304
11304
|
it(L) && it(W) && !g.context.triggerElements.hasElement(L) && ke(L, W) && (Y = W);
|
|
11305
|
-
const
|
|
11305
|
+
const q = Y == null ? !1 : V(W, Y, B), ee = g.select("open"), te = k.current?.() ?? g.select("transitionStatus") === "ending", Z = !ee && te && C.current, ne = !q && it(Y) && it(W) && ke(W, Y) && Z, J = U > 0 && !j, ce = q && (ee || Z) || ne, me = !ee || q;
|
|
11306
11306
|
if (ce) {
|
|
11307
11307
|
A() && g.setOpen(!0, we(Lt, $, Y));
|
|
11308
11308
|
return;
|
|
@@ -11442,7 +11442,7 @@ function op(e, t) {
|
|
|
11442
11442
|
process.env.NODE_ENV !== "production" && (a && (l || console.warn("`useListNavigation` looping must be enabled to allow escaping."), m || console.warn("`useListNavigation` must be virtual to allow escaping.")), x === "vertical" && R && console.warn("In grid list navigation mode, the `orientation` should", 'be either "horizontal" or "both".'));
|
|
11443
11443
|
const N = "rootStore" in e ? e.rootStore : e, E = N.useState("open"), I = N.useState("floatingElement"), k = N.useState("domReferenceElement"), T = N.context.dataRef, A = cl(I), V = wd(k), D = kt(A), _ = lo(), F = co(C), z = b.useRef(d), O = b.useRef(i ?? -1), G = b.useRef(null), P = b.useRef(!0), H = de((X) => {
|
|
11444
11444
|
o(O.current === -1 ? null : O.current, X);
|
|
11445
|
-
}), $ = b.useRef(!!I), U = b.useRef(E), j = b.useRef(!1), B = b.useRef(!1), L = b.useRef(null), W = kt(g), Y = kt(E),
|
|
11445
|
+
}), $ = b.useRef(!!I), U = b.useRef(E), j = b.useRef(!1), B = b.useRef(!1), L = b.useRef(null), W = kt(g), Y = kt(E), q = kt(i), ee = kt(v), te = Oo(), Z = Oo(), ne = de(() => {
|
|
11446
11446
|
function X(ae) {
|
|
11447
11447
|
m ? F?.events.emit("virtualfocus", ae) : L.current = Za(ae, {
|
|
11448
11448
|
sync: j.current,
|
|
@@ -11473,7 +11473,7 @@ function op(e, t) {
|
|
|
11473
11473
|
}
|
|
11474
11474
|
if (I)
|
|
11475
11475
|
if (r == null) {
|
|
11476
|
-
if (j.current = !1,
|
|
11476
|
+
if (j.current = !1, q.current != null)
|
|
11477
11477
|
return;
|
|
11478
11478
|
if ($.current && (O.current = -1, ne()), (!U.current || !$.current) && z.current && (G.current != null || z.current === !0 && G.current == null)) {
|
|
11479
11479
|
let X = 0;
|
|
@@ -11484,7 +11484,7 @@ function op(e, t) {
|
|
|
11484
11484
|
}
|
|
11485
11485
|
} else Yr(n.current, r) || (O.current = r, ne(), B.current = !1);
|
|
11486
11486
|
}
|
|
11487
|
-
}, [s, E, I, r,
|
|
11487
|
+
}, [s, E, I, r, q, c, n, x, u, H, ne, Z]), ge(() => {
|
|
11488
11488
|
if (!s || I || !F || m || !$.current)
|
|
11489
11489
|
return;
|
|
11490
11490
|
const X = F.nodesRef.current, re = X.find((ae) => ae.id === _)?.context?.elements.floating, he = Pt(je(k ?? re ?? null)), ie = X.some((ae) => ae.context && ke(ae.context.elements.floating, he));
|
|
@@ -11604,7 +11604,7 @@ function op(e, t) {
|
|
|
11604
11604
|
Ee && (vt(ie), ae ? (O.current = pe(), H(ie)) : X(ie));
|
|
11605
11605
|
return;
|
|
11606
11606
|
}
|
|
11607
|
-
$e && (
|
|
11607
|
+
$e && (q.current != null && (O.current = q.current), vt(ie), !ae && h ? X(ie) : se(ie), ae && H(ie));
|
|
11608
11608
|
}
|
|
11609
11609
|
},
|
|
11610
11610
|
onFocus(ie) {
|
|
@@ -11615,7 +11615,7 @@ function op(e, t) {
|
|
|
11615
11615
|
onMouseDown: re,
|
|
11616
11616
|
onClick: re
|
|
11617
11617
|
};
|
|
11618
|
-
}, [se, d, pe, c, H, N, h, x, me, u,
|
|
11618
|
+
}, [se, d, pe, c, H, N, h, x, me, u, q, m]), Q = b.useMemo(() => ({
|
|
11619
11619
|
...le,
|
|
11620
11620
|
...be
|
|
11621
11621
|
}), [le, be]);
|
|
@@ -11781,23 +11781,23 @@ function ip(e = {}) {
|
|
|
11781
11781
|
let B = !1;
|
|
11782
11782
|
switch (m) {
|
|
11783
11783
|
case "top": {
|
|
11784
|
-
const L = O ? Nt / 2 : Nt * 4, W = O || F ? o + L : o - L, Y = O ? o - L : F ? o + L : o - L,
|
|
11785
|
-
B = wa(R, N, W,
|
|
11784
|
+
const L = O ? Nt / 2 : Nt * 4, W = O || F ? o + L : o - L, Y = O ? o - L : F ? o + L : o - L, q = s + Nt + 1, ee = F || O ? _.bottom - Nt : _.top, te = F ? O ? _.bottom - Nt : _.top : _.bottom - Nt;
|
|
11785
|
+
B = wa(R, N, W, q, Y, q, _.left, ee, _.right, te);
|
|
11786
11786
|
break;
|
|
11787
11787
|
}
|
|
11788
11788
|
case "bottom": {
|
|
11789
|
-
const L = O ? Nt / 2 : Nt * 4, W = O || F ? o + L : o - L, Y = O ? o - L : F ? o + L : o - L,
|
|
11790
|
-
B = wa(R, N, W,
|
|
11789
|
+
const L = O ? Nt / 2 : Nt * 4, W = O || F ? o + L : o - L, Y = O ? o - L : F ? o + L : o - L, q = s - Nt, ee = F || O ? _.top + Nt : _.bottom, te = F ? O ? _.top + Nt : _.bottom : _.top + Nt;
|
|
11790
|
+
B = wa(R, N, W, q, Y, q, _.left, ee, _.right, te);
|
|
11791
11791
|
break;
|
|
11792
11792
|
}
|
|
11793
11793
|
case "left": {
|
|
11794
|
-
const L = G ? Nt / 2 : Nt * 4, W = G || z ? s + L : s - L, Y = G ? s - L : z ? s + L : s - L,
|
|
11795
|
-
B = wa(R, N, ee, _.top, te, _.bottom,
|
|
11794
|
+
const L = G ? Nt / 2 : Nt * 4, W = G || z ? s + L : s - L, Y = G ? s - L : z ? s + L : s - L, q = o + Nt + 1, ee = z || G ? _.right - Nt : _.left, te = z ? G ? _.right - Nt : _.left : _.right - Nt;
|
|
11795
|
+
B = wa(R, N, ee, _.top, te, _.bottom, q, W, q, Y);
|
|
11796
11796
|
break;
|
|
11797
11797
|
}
|
|
11798
11798
|
case "right": {
|
|
11799
|
-
const L = G ? Nt / 2 : Nt * 4, W = G || z ? s + L : s - L, Y = G ? s - L : z ? s + L : s - L,
|
|
11800
|
-
B = wa(R, N,
|
|
11799
|
+
const L = G ? Nt / 2 : Nt * 4, W = G || z ? s + L : s - L, Y = G ? s - L : z ? s + L : s - L, q = o - Nt, ee = z || G ? _.left + Nt : _.right, te = z ? G ? _.left + Nt : _.right : _.left + Nt;
|
|
11800
|
+
B = wa(R, N, q, W, q, Y, ee, _.top, te, _.bottom);
|
|
11801
11801
|
break;
|
|
11802
11802
|
}
|
|
11803
11803
|
}
|
|
@@ -12509,7 +12509,7 @@ function tP(e, t) {
|
|
|
12509
12509
|
bottom: U.bottom || 0,
|
|
12510
12510
|
left: U.left || 0
|
|
12511
12511
|
});
|
|
12512
|
-
const j = 1, B = o === "bottom" ? j : 0, L = o === "top" ? j : 0, W = o === "right" ? j : 0, Y = o === "left" ? j : 0,
|
|
12512
|
+
const j = 1, B = o === "bottom" ? j : 0, L = o === "top" ? j : 0, W = o === "right" ? j : 0, Y = o === "left" ? j : 0, q = {
|
|
12513
12513
|
boundary: l === "clipping-ancestors" ? "clippingAncestors" : l,
|
|
12514
12514
|
padding: U
|
|
12515
12515
|
}, ee = b.useRef(null), te = kt(s), Z = kt(a), ne = typeof s != "function" ? s : 0, J = typeof a != "function" ? a : 0, ce = [];
|
|
@@ -12522,7 +12522,7 @@ function tP(e, t) {
|
|
|
12522
12522
|
};
|
|
12523
12523
|
}, [ne, J, P, o]));
|
|
12524
12524
|
const me = k === "none" && I !== "shift", pe = !me && (u || A || I === "shift"), se = I === "none" ? null : nM({
|
|
12525
|
-
...
|
|
12525
|
+
...q,
|
|
12526
12526
|
// Ensure the popup flips if it's been limited by its --available-height and it resizes.
|
|
12527
12527
|
// Since the size() padding is smaller than the flip() padding, flip() will take precedence.
|
|
12528
12528
|
padding: {
|
|
@@ -12535,7 +12535,7 @@ function tP(e, t) {
|
|
|
12535
12535
|
crossAxis: k === "flip" ? "alignment" : !1,
|
|
12536
12536
|
fallbackAxisSideDirection: T
|
|
12537
12537
|
}), oe = me ? null : eM({
|
|
12538
|
-
...
|
|
12538
|
+
...q,
|
|
12539
12539
|
// Use the Layout Viewport to avoid shifting around when pinch-zooming.
|
|
12540
12540
|
rootBoundary: V,
|
|
12541
12541
|
mainAxis: k !== "none",
|
|
@@ -12551,9 +12551,9 @@ function tP(e, t) {
|
|
|
12551
12551
|
offset: We / 2 + ot / 2
|
|
12552
12552
|
};
|
|
12553
12553
|
})
|
|
12554
|
-
}, [
|
|
12554
|
+
}, [q, u, A, V, U, k]);
|
|
12555
12555
|
I === "shift" || k === "shift" || i === "center" ? ce.push(oe, se) : ce.push(se, oe), ce.push(rM({
|
|
12556
|
-
...
|
|
12556
|
+
...q,
|
|
12557
12557
|
apply({
|
|
12558
12558
|
elements: {
|
|
12559
12559
|
floating: Ge
|
|
@@ -12668,12 +12668,12 @@ function tP(e, t) {
|
|
|
12668
12668
|
position: "absolute",
|
|
12669
12669
|
top: re.arrow?.y,
|
|
12670
12670
|
left: re.arrow?.x
|
|
12671
|
-
}), [re.arrow]),
|
|
12671
|
+
}), [re.arrow]), Je = re.arrow?.centerOffset !== 0;
|
|
12672
12672
|
return b.useMemo(() => ({
|
|
12673
12673
|
positionerStyles: Re,
|
|
12674
12674
|
arrowStyles: He,
|
|
12675
12675
|
arrowRef: ee,
|
|
12676
|
-
arrowUncentered:
|
|
12676
|
+
arrowUncentered: Je,
|
|
12677
12677
|
side: De,
|
|
12678
12678
|
align: Se,
|
|
12679
12679
|
physicalSide: Le,
|
|
@@ -12682,7 +12682,7 @@ function tP(e, t) {
|
|
|
12682
12682
|
context: ae,
|
|
12683
12683
|
isPositioned: ye,
|
|
12684
12684
|
update: he
|
|
12685
|
-
}), [Re, He, ee,
|
|
12685
|
+
}), [Re, He, ee, Je, De, Se, Le, Oe, fe, ae, ye, he]);
|
|
12686
12686
|
}
|
|
12687
12687
|
function qg(e) {
|
|
12688
12688
|
return e != null && "current" in e;
|
|
@@ -13410,13 +13410,13 @@ const ew = Iv(function(t, n) {
|
|
|
13410
13410
|
}, le = U();
|
|
13411
13411
|
le === 0 ? (H.clear(), oe()) : H.start(le, oe);
|
|
13412
13412
|
}
|
|
13413
|
-
},
|
|
13413
|
+
}, q = x.useState("triggerProps", I);
|
|
13414
13414
|
return ve("button", t, {
|
|
13415
13415
|
state: {
|
|
13416
13416
|
open: v
|
|
13417
13417
|
},
|
|
13418
13418
|
ref: [n, E, S],
|
|
13419
|
-
props: [L, W, I || O !== "none" ?
|
|
13419
|
+
props: [L, W, I || O !== "none" ? q : void 0, {
|
|
13420
13420
|
onMouseOver(ne) {
|
|
13421
13421
|
Y(ne.nativeEvent);
|
|
13422
13422
|
},
|
|
@@ -13684,9 +13684,9 @@ function Yn({
|
|
|
13684
13684
|
ref: i,
|
|
13685
13685
|
"aria-labelledby": l,
|
|
13686
13686
|
"aria-label": c,
|
|
13687
|
-
className:
|
|
13687
|
+
className: K(CP, "max-w-[calc(20rem*var(--ui-scale))] p-4", o),
|
|
13688
13688
|
children: [
|
|
13689
|
-
r && /* @__PURE__ */ p(Xv, { className:
|
|
13689
|
+
r && /* @__PURE__ */ p(Xv, { className: K(aw), children: /* @__PURE__ */ p("span", { className: K(lw) }) }),
|
|
13690
13690
|
s
|
|
13691
13691
|
]
|
|
13692
13692
|
}
|
|
@@ -13710,7 +13710,7 @@ function Pn({ content: e, children: t, side: n = "top", className: r, defaultOpe
|
|
|
13710
13710
|
children: /* @__PURE__ */ M(
|
|
13711
13711
|
ow,
|
|
13712
13712
|
{
|
|
13713
|
-
className:
|
|
13713
|
+
className: K(
|
|
13714
13714
|
/* dx-tooltip is a stable hook for the overlay screenshot pass.
|
|
13715
13715
|
Base UI does not put role="tooltip" on the popup — it wires
|
|
13716
13716
|
aria-describedby from the trigger instead — so there is no
|
|
@@ -13731,7 +13731,7 @@ function Pn({ content: e, children: t, side: n = "top", className: r, defaultOpe
|
|
|
13731
13731
|
),
|
|
13732
13732
|
children: [
|
|
13733
13733
|
e,
|
|
13734
|
-
/* @__PURE__ */ p(sw, { className:
|
|
13734
|
+
/* @__PURE__ */ p(sw, { className: K(aw), children: /* @__PURE__ */ p("span", { className: K(lw) }) })
|
|
13735
13735
|
]
|
|
13736
13736
|
}
|
|
13737
13737
|
)
|
|
@@ -13779,7 +13779,7 @@ function Tn({
|
|
|
13779
13779
|
"aria-disabled": m || void 0,
|
|
13780
13780
|
"aria-describedby": m ? d : void 0,
|
|
13781
13781
|
onClick: f,
|
|
13782
|
-
className:
|
|
13782
|
+
className: K(
|
|
13783
13783
|
/* `shrink-0` is load-bearing, not tidiness. `iconOnly` sizes the box
|
|
13784
13784
|
with `aspect-square` off a definite height, but a flex item still
|
|
13785
13785
|
shrinks: in a row with a `flex-1` label beside it this control was
|
|
@@ -13852,7 +13852,7 @@ function Ht({
|
|
|
13852
13852
|
ref: a,
|
|
13853
13853
|
...l
|
|
13854
13854
|
}) {
|
|
13855
|
-
return /* @__PURE__ */ M("span", { ref: a, className:
|
|
13855
|
+
return /* @__PURE__ */ M("span", { ref: a, className: K(EP({ tone: t, size: n, dot: r }), e), ...l, children: [
|
|
13856
13856
|
r && /* @__PURE__ */ M("span", { className: "relative flex size-1.5", "aria-hidden": !0, children: [
|
|
13857
13857
|
s && /* The halo expands and fades UNDER a solid core that never moves.
|
|
13858
13858
|
Animating the dot itself would make the badge's baseline shift;
|
|
@@ -13861,7 +13861,7 @@ function Ht({
|
|
|
13861
13861
|
/* @__PURE__ */ p(
|
|
13862
13862
|
"span",
|
|
13863
13863
|
{
|
|
13864
|
-
className:
|
|
13864
|
+
className: K(
|
|
13865
13865
|
"absolute inline-flex size-full rounded-full opacity-70",
|
|
13866
13866
|
"[animation:dx-ping_1.6s_var(--ease-out-strong)_infinite]",
|
|
13867
13867
|
sb[t ?? "neutral"]
|
|
@@ -13871,7 +13871,7 @@ function Ht({
|
|
|
13871
13871
|
/* @__PURE__ */ p(
|
|
13872
13872
|
"span",
|
|
13873
13873
|
{
|
|
13874
|
-
className:
|
|
13874
|
+
className: K("relative inline-flex size-1.5 rounded-full", sb[t ?? "neutral"])
|
|
13875
13875
|
}
|
|
13876
13876
|
)
|
|
13877
13877
|
] }),
|
|
@@ -13907,13 +13907,13 @@ function cw({ shape: e, sweep: t, className: n, width: r, height: o, style: s, r
|
|
|
13907
13907
|
{
|
|
13908
13908
|
ref: i,
|
|
13909
13909
|
"aria-hidden": !0,
|
|
13910
|
-
className:
|
|
13910
|
+
className: K(RP({ shape: e, sweep: t }), n),
|
|
13911
13911
|
style: { width: r, height: o, ...s }
|
|
13912
13912
|
}
|
|
13913
13913
|
);
|
|
13914
13914
|
}
|
|
13915
13915
|
function d3({ lines: e = 3, className: t }) {
|
|
13916
|
-
return /* @__PURE__ */ p("span", { className:
|
|
13916
|
+
return /* @__PURE__ */ p("span", { className: K("flex flex-col gap-2", t), children: Array.from({ length: e }, (n, r) => /* @__PURE__ */ p(
|
|
13917
13917
|
cw,
|
|
13918
13918
|
{
|
|
13919
13919
|
shape: "text",
|
|
@@ -13923,12 +13923,12 @@ function d3({ lines: e = 3, className: t }) {
|
|
|
13923
13923
|
)) });
|
|
13924
13924
|
}
|
|
13925
13925
|
function NP({ active: e, message: t, children: n, className: r }) {
|
|
13926
|
-
return /* @__PURE__ */ M("div", { className:
|
|
13926
|
+
return /* @__PURE__ */ M("div", { className: K("relative", r), children: [
|
|
13927
13927
|
/* @__PURE__ */ p("div", { inert: e || void 0, children: n }),
|
|
13928
13928
|
e && /* @__PURE__ */ p(
|
|
13929
13929
|
"div",
|
|
13930
13930
|
{
|
|
13931
|
-
className:
|
|
13931
|
+
className: K(
|
|
13932
13932
|
"absolute inset-0 z-(--z-overlay) grid place-items-center rounded-[inherit]",
|
|
13933
13933
|
/* `veil`, not `scrim`: a scrim is built to push a whole page back
|
|
13934
13934
|
behind a modal, and using it here lays a grey sheet over content
|
|
@@ -13948,7 +13948,7 @@ function NP({ active: e, message: t, children: n, className: r }) {
|
|
|
13948
13948
|
{
|
|
13949
13949
|
role: "status",
|
|
13950
13950
|
"aria-live": "polite",
|
|
13951
|
-
className:
|
|
13951
|
+
className: K(
|
|
13952
13952
|
"flex items-center gap-3 rounded-lg border border-border bg-surface-overlay",
|
|
13953
13953
|
"px-4 py-3 shadow-lg",
|
|
13954
13954
|
"animate-rise-in"
|
|
@@ -14512,14 +14512,14 @@ const gw = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
14512
14512
|
errors: [],
|
|
14513
14513
|
value: null,
|
|
14514
14514
|
initialValue: null
|
|
14515
|
-
}),
|
|
14515
|
+
}), q = !L && (S ? null : W.state.valid), ee = b.useMemo(() => ({
|
|
14516
14516
|
disabled: S,
|
|
14517
14517
|
touched: _,
|
|
14518
14518
|
dirty: D,
|
|
14519
|
-
valid:
|
|
14519
|
+
valid: q,
|
|
14520
14520
|
filled: k,
|
|
14521
14521
|
focused: A
|
|
14522
|
-
}), [S, _, D,
|
|
14522
|
+
}), [S, _, D, q, k, A]), te = MP({
|
|
14523
14523
|
setValidityData: Y,
|
|
14524
14524
|
validate: C,
|
|
14525
14525
|
validityData: W,
|
|
@@ -14999,7 +14999,7 @@ function Pr({
|
|
|
14999
14999
|
name: s,
|
|
15000
15000
|
disabled: o,
|
|
15001
15001
|
invalid: m,
|
|
15002
|
-
className:
|
|
15002
|
+
className: K(u.root(), a),
|
|
15003
15003
|
children: i === "inline" ? /* @__PURE__ */ M(dt, { children: [
|
|
15004
15004
|
l,
|
|
15005
15005
|
/* @__PURE__ */ M("div", { className: "flex min-w-0 flex-col gap-0.5", children: [
|
|
@@ -15017,7 +15017,7 @@ function Pr({
|
|
|
15017
15017
|
);
|
|
15018
15018
|
}
|
|
15019
15019
|
function p3({ legend: e, description: t, className: n, children: r, ref: o }) {
|
|
15020
|
-
return /* @__PURE__ */ M(Sw, { ref: o, className:
|
|
15020
|
+
return /* @__PURE__ */ M(Sw, { ref: o, className: K("flex min-w-0 flex-col gap-3", n), children: [
|
|
15021
15021
|
e && /* @__PURE__ */ p(Ew, { className: "font-sans text-sm font-semibold text-primary", children: e }),
|
|
15022
15022
|
t && /* @__PURE__ */ p("p", { className: "-mt-2 text-2xs text-tertiary", children: t }),
|
|
15023
15023
|
r
|
|
@@ -15111,7 +15111,7 @@ function hs({
|
|
|
15111
15111
|
Cp,
|
|
15112
15112
|
{
|
|
15113
15113
|
ref: s,
|
|
15114
|
-
className:
|
|
15114
|
+
className: K(DP({ size: t, hasLeading: l, hasTrailing: c }), e),
|
|
15115
15115
|
...i
|
|
15116
15116
|
}
|
|
15117
15117
|
);
|
|
@@ -15121,7 +15121,7 @@ function hs({
|
|
|
15121
15121
|
c && /* Trailing content is often interactive (a clear button, a reveal
|
|
15122
15122
|
toggle), so pointer events are restored here even though the
|
|
15123
15123
|
wrapper disables them for the common decorative case. */
|
|
15124
|
-
/* @__PURE__ */ p("span", { className:
|
|
15124
|
+
/* @__PURE__ */ p("span", { className: K(cb({ side: "trailing", size: t }), "[&>*]:pointer-events-auto"), children: a })
|
|
15125
15125
|
] });
|
|
15126
15126
|
}
|
|
15127
15127
|
const VP = Rt({
|
|
@@ -15163,7 +15163,7 @@ function m3({ className: e, size: t, resize: n, rows: r = 4, ref: o, ...s }) {
|
|
|
15163
15163
|
{
|
|
15164
15164
|
ref: o,
|
|
15165
15165
|
render: /* @__PURE__ */ p("textarea", { rows: r }),
|
|
15166
|
-
className:
|
|
15166
|
+
className: K(VP({ size: t, resize: n }), e),
|
|
15167
15167
|
...s
|
|
15168
15168
|
}
|
|
15169
15169
|
);
|
|
@@ -15246,7 +15246,7 @@ const LP = "data-parent", kw = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
15246
15246
|
controlId: P,
|
|
15247
15247
|
registerControlId: H,
|
|
15248
15248
|
getDescriptionProps: $
|
|
15249
|
-
} = sn(), U = FP(), j = U?.allValues === void 0 ? void 0 : U.parent, B = j !== void 0, L = E || O.disabled || U?.disabled || a, W = I ?? d, Y = v ?? W,
|
|
15249
|
+
} = sn(), U = FP(), j = U?.allValues === void 0 ? void 0 : U.parent, B = j !== void 0, L = E || O.disabled || U?.disabled || a, W = I ?? d, Y = v ?? W, q = yt(), ee = yt();
|
|
15250
15250
|
let te = c || P;
|
|
15251
15251
|
B && (h ? te = ee : Y !== void 0 ? te = `${j.id}-${Y}` : te ||= ee);
|
|
15252
15252
|
let Z = {};
|
|
@@ -15275,7 +15275,7 @@ const LP = "data-parent", kw = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
15275
15275
|
return () => {
|
|
15276
15276
|
!le.current || H === pt || (le.current = !1, H(Se, void 0));
|
|
15277
15277
|
};
|
|
15278
|
-
}, [H, oe]), _r(se,
|
|
15278
|
+
}, [H, oe]), _r(se, q, X, void 0, !U && !L, d);
|
|
15279
15279
|
const ae = b.useRef(null), ye = Q.registerInput, Ee = U ? Y : void 0, $e = b.useCallback((Se) => ye(Se, {
|
|
15280
15280
|
controlRef: se,
|
|
15281
15281
|
value: Ee
|
|
@@ -15310,8 +15310,8 @@ const LP = "data-parent", kw = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
15310
15310
|
}
|
|
15311
15311
|
const Oe = Se.currentTarget.checked, He = we(Et, Se.nativeEvent);
|
|
15312
15312
|
if (f?.(Oe, He), !He.isCanceled && (ce?.(Oe, He), !He.isCanceled && (re(Oe), Y !== void 0 && U !== void 0 && !h && !B))) {
|
|
15313
|
-
const
|
|
15314
|
-
U.setValue(
|
|
15313
|
+
const Je = Oe ? [...U.value, Y] : U.value.filter((Ge) => Ge !== Y);
|
|
15314
|
+
U.setValue(Je, He);
|
|
15315
15315
|
}
|
|
15316
15316
|
},
|
|
15317
15317
|
onClick(Se) {
|
|
@@ -15348,7 +15348,7 @@ const LP = "data-parent", kw = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
15348
15348
|
state: Ke,
|
|
15349
15349
|
ref: [be, se, n],
|
|
15350
15350
|
props: [{
|
|
15351
|
-
id: C ? te ?? void 0 :
|
|
15351
|
+
id: C ? te ?? void 0 : q,
|
|
15352
15352
|
role: "checkbox",
|
|
15353
15353
|
"aria-checked": ie ? "mixed" : he,
|
|
15354
15354
|
"aria-readonly": g || void 0,
|
|
@@ -15365,14 +15365,14 @@ const LP = "data-parent", kw = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
15365
15365
|
onKeyDown(Se) {
|
|
15366
15366
|
if (Se.key !== "Enter" || (Se.preventBaseUIHandler(), Se.defaultPrevented))
|
|
15367
15367
|
return;
|
|
15368
|
-
const Oe = ae.current?.form ?? null, He = Se.currentTarget,
|
|
15368
|
+
const Oe = ae.current?.form ?? null, He = Se.currentTarget, Je = Se.nativeEvent, Ge = Se.preventDefault, Ze = Je.preventDefault;
|
|
15369
15369
|
let Ae = !1;
|
|
15370
15370
|
Se.preventDefault = () => {
|
|
15371
15371
|
Ae = !0, Ge.call(Se);
|
|
15372
|
-
},
|
|
15373
|
-
Ae = !0, Ze.call(
|
|
15374
|
-
}, Ze.call(
|
|
15375
|
-
Se.preventDefault = Ge,
|
|
15372
|
+
}, Je.preventDefault = () => {
|
|
15373
|
+
Ae = !0, Ze.call(Je);
|
|
15374
|
+
}, Ze.call(Je), ft(He).queueMicrotask(() => {
|
|
15375
|
+
Se.preventDefault = Ge, Je.preventDefault = Ze, Ae || _P(Oe)?.click();
|
|
15376
15376
|
});
|
|
15377
15377
|
},
|
|
15378
15378
|
onClick(Se) {
|
|
@@ -15507,13 +15507,13 @@ const Tw = {
|
|
|
15507
15507
|
} = _t({
|
|
15508
15508
|
disabled: z,
|
|
15509
15509
|
native: m
|
|
15510
|
-
}),
|
|
15510
|
+
}), q = Cc(i, F, G, !m, j), ee = {
|
|
15511
15511
|
id: m ? U : $,
|
|
15512
15512
|
role: "switch",
|
|
15513
15513
|
"aria-checked": B,
|
|
15514
15514
|
"aria-readonly": f || void 0,
|
|
15515
15515
|
"aria-required": h || void 0,
|
|
15516
|
-
"aria-labelledby":
|
|
15516
|
+
"aria-labelledby": q,
|
|
15517
15517
|
onFocus() {
|
|
15518
15518
|
z || T(!0);
|
|
15519
15519
|
},
|
|
@@ -15793,16 +15793,16 @@ const Aw = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
15793
15793
|
k(j.current);
|
|
15794
15794
|
}
|
|
15795
15795
|
}, [$, O, k]);
|
|
15796
|
-
const Y = yt(),
|
|
15796
|
+
const Y = yt(), q = br({
|
|
15797
15797
|
id: d,
|
|
15798
15798
|
implicit: !1,
|
|
15799
15799
|
controlRef: U
|
|
15800
|
-
}), ee = m ? void 0 :
|
|
15800
|
+
}), ee = m ? void 0 : q, te = Cc(l, F, j, !m, ee), Z = {
|
|
15801
15801
|
role: "radio",
|
|
15802
15802
|
"aria-checked": $,
|
|
15803
15803
|
"aria-labelledby": te,
|
|
15804
15804
|
[Rp]: $ ? "" : void 0,
|
|
15805
|
-
id: m ?
|
|
15805
|
+
id: m ? q : Y,
|
|
15806
15806
|
onKeyDown(be) {
|
|
15807
15807
|
be.key === "Enter" && be.preventDefault();
|
|
15808
15808
|
},
|
|
@@ -16249,7 +16249,7 @@ const QP = [qv], Fw = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
16249
16249
|
return () => {
|
|
16250
16250
|
L.current === J && (L.current = null), B.current === J ? me ? (me(), B.current = null) : W(null) : me?.();
|
|
16251
16251
|
};
|
|
16252
|
-
}),
|
|
16252
|
+
}), q = de(() => {
|
|
16253
16253
|
const J = V.current;
|
|
16254
16254
|
if (!J)
|
|
16255
16255
|
return O ?? null;
|
|
@@ -16258,7 +16258,7 @@ const QP = [qv], Fw = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
16258
16258
|
return O ?? null;
|
|
16259
16259
|
return null;
|
|
16260
16260
|
});
|
|
16261
|
-
_r(j, z, O ?? null,
|
|
16261
|
+
_r(j, z, O ?? null, q, !_, d), zn(O, () => {
|
|
16262
16262
|
A(F), E(O !== k.initialValue), I(O != null), N.change(O);
|
|
16263
16263
|
const J = L.current;
|
|
16264
16264
|
O == null && J && !J.disabled && W(J);
|
|
@@ -16342,7 +16342,7 @@ const JP = Rt({
|
|
|
16342
16342
|
defaultVariants: { size: "md" }
|
|
16343
16343
|
});
|
|
16344
16344
|
function Od({ size: e, className: t, ref: n, ...r }) {
|
|
16345
|
-
return /* @__PURE__ */ p(kw, { ref: n, className:
|
|
16345
|
+
return /* @__PURE__ */ p(kw, { ref: n, className: K(JP({ size: e }), t), ...r, children: /* @__PURE__ */ M(
|
|
16346
16346
|
Iw,
|
|
16347
16347
|
{
|
|
16348
16348
|
keepMounted: !0,
|
|
@@ -16358,7 +16358,7 @@ function Od({ size: e, className: t, ref: n, ...r }) {
|
|
|
16358
16358
|
strokeLinejoin: "round",
|
|
16359
16359
|
pathLength: "1",
|
|
16360
16360
|
strokeDasharray: "1",
|
|
16361
|
-
className:
|
|
16361
|
+
className: K(
|
|
16362
16362
|
"[stroke-dashoffset:1] transition-[var(--tx-colors),stroke-dashoffset] ease-pen",
|
|
16363
16363
|
"duration-(--dur-slow)",
|
|
16364
16364
|
"group-data-checked/checkbox:[stroke-dashoffset:0]",
|
|
@@ -16375,7 +16375,7 @@ function Od({ size: e, className: t, ref: n, ...r }) {
|
|
|
16375
16375
|
"span",
|
|
16376
16376
|
{
|
|
16377
16377
|
"aria-hidden": !0,
|
|
16378
|
-
className:
|
|
16378
|
+
className: K(
|
|
16379
16379
|
"absolute h-[3px] w-[55%] rounded-full bg-current",
|
|
16380
16380
|
"origin-center scale-x-0 opacity-0",
|
|
16381
16381
|
"transition-[var(--tx-colors),scale,opacity] duration-(--dur-base) ease-snappy",
|
|
@@ -16449,7 +16449,7 @@ const e2 = Rt({
|
|
|
16449
16449
|
"group-active/switch:not-data-disabled:w-[calc((var(--switch-h)-8px)*1.15)]"
|
|
16450
16450
|
].join(" ");
|
|
16451
16451
|
function Cl({ size: e, className: t, ref: n, ...r }) {
|
|
16452
|
-
return /* @__PURE__ */ p(Mw, { ref: n, className:
|
|
16452
|
+
return /* @__PURE__ */ p(Mw, { ref: n, className: K(e2({ size: e }), t), ...r, children: /* @__PURE__ */ p(Pw, { className: t2 }) });
|
|
16453
16453
|
}
|
|
16454
16454
|
const n2 = Rt({
|
|
16455
16455
|
base: [
|
|
@@ -16473,11 +16473,11 @@ const n2 = Rt({
|
|
|
16473
16473
|
defaultVariants: { size: "md" }
|
|
16474
16474
|
});
|
|
16475
16475
|
function $w({ size: e, className: t, ref: n, ...r }) {
|
|
16476
|
-
return /* @__PURE__ */ p(Aw, { ref: n, className:
|
|
16476
|
+
return /* @__PURE__ */ p(Aw, { ref: n, className: K(n2({ size: e }), t), ...r, children: /* @__PURE__ */ p(
|
|
16477
16477
|
Dw,
|
|
16478
16478
|
{
|
|
16479
16479
|
keepMounted: !0,
|
|
16480
|
-
className:
|
|
16480
|
+
className: K(
|
|
16481
16481
|
"size-[55%] rounded-full bg-accent",
|
|
16482
16482
|
"scale-0 opacity-0",
|
|
16483
16483
|
/* --ease-snappy overshoots ~3%, so the dot arrives slightly too big
|
|
@@ -16502,7 +16502,7 @@ function h3({
|
|
|
16502
16502
|
Fw,
|
|
16503
16503
|
{
|
|
16504
16504
|
ref: r,
|
|
16505
|
-
className:
|
|
16505
|
+
className: K(
|
|
16506
16506
|
"flex min-w-0",
|
|
16507
16507
|
t === "vertical" ? "flex-col gap-3" : "flex-row flex-wrap gap-x-6 gap-y-3",
|
|
16508
16508
|
e
|
|
@@ -16585,7 +16585,7 @@ function y3({ label: e, description: t, className: n, size: r, ...o }) {
|
|
|
16585
16585
|
return /* @__PURE__ */ M(
|
|
16586
16586
|
"label",
|
|
16587
16587
|
{
|
|
16588
|
-
className:
|
|
16588
|
+
className: K(
|
|
16589
16589
|
"group/card relative flex cursor-pointer items-start gap-3 rounded-lg border p-4",
|
|
16590
16590
|
"border-border bg-surface",
|
|
16591
16591
|
"transition-[var(--tx-colors),box-shadow] duration-(--dur-fast) ease-hover",
|
|
@@ -17058,7 +17058,7 @@ function f2({
|
|
|
17058
17058
|
e && /* @__PURE__ */ p(Nc, { render: e }),
|
|
17059
17059
|
/* @__PURE__ */ M(zi, { children: [
|
|
17060
17060
|
/* @__PURE__ */ p(Fi, { className: m.backdrop() }),
|
|
17061
|
-
/* @__PURE__ */ M(Li, { ref: u, className:
|
|
17061
|
+
/* @__PURE__ */ M(Li, { ref: u, className: K(m.popup(), l), children: [
|
|
17062
17062
|
/* @__PURE__ */ M("div", { className: m.header(), children: [
|
|
17063
17063
|
/* @__PURE__ */ M("div", { className: "min-w-0 flex-1", children: [
|
|
17064
17064
|
/* @__PURE__ */ p(Bi, { className: m.title(), children: r }),
|
|
@@ -17102,7 +17102,7 @@ function p2({
|
|
|
17102
17102
|
e && /* @__PURE__ */ p(d2, { render: e }),
|
|
17103
17103
|
/* @__PURE__ */ M(zi, { children: [
|
|
17104
17104
|
/* @__PURE__ */ p(Fi, { className: d.backdrop() }),
|
|
17105
|
-
/* @__PURE__ */ M(Li, { ref: m, className:
|
|
17105
|
+
/* @__PURE__ */ M(Li, { ref: m, className: K(d.popup(), u), children: [
|
|
17106
17106
|
/* @__PURE__ */ M("div", { className: "flex items-start gap-4 p-6", children: [
|
|
17107
17107
|
a && /* @__PURE__ */ p("span", { className: "grid size-10 shrink-0 place-items-center rounded-full bg-danger-subtle text-danger-text", children: /* @__PURE__ */ p(xe, { name: "triangle-alert", size: "md" }) }),
|
|
17108
17108
|
/* @__PURE__ */ M("div", { className: "min-w-0 flex-1", children: [
|
|
@@ -17646,7 +17646,7 @@ const y2 = {
|
|
|
17646
17646
|
}), H = b.useRef(!1), $ = b.useRef({
|
|
17647
17647
|
x: 0,
|
|
17648
17648
|
y: 0
|
|
17649
|
-
}), U = b.useRef(null), j = b.useRef(null), B = d.useState("toastIndex", r.id), L = d.useState("toastVisibleIndex", r.id), W = d.useState("toastOffsetY", r.id), Y = d.useState("focused"),
|
|
17649
|
+
}), U = b.useRef(null), j = b.useRef(null), B = d.useState("toastIndex", r.id), L = d.useState("toastVisibleIndex", r.id), W = d.useState("toastOffsetY", r.id), Y = d.useState("focused"), q = d.useState("expanded");
|
|
17650
17650
|
jt({
|
|
17651
17651
|
open: r.transitionStatus !== "ending",
|
|
17652
17652
|
ref: V,
|
|
@@ -17764,8 +17764,8 @@ const y2 = {
|
|
|
17764
17764
|
let Te = T;
|
|
17765
17765
|
if (!y && Math.sqrt(ae * ae + ye * ye) >= w2) {
|
|
17766
17766
|
w(!0);
|
|
17767
|
-
const He = u.includes("left") || u.includes("right"),
|
|
17768
|
-
if (He &&
|
|
17767
|
+
const He = u.includes("left") || u.includes("right"), Je = u.includes("up") || u.includes("down");
|
|
17768
|
+
if (He && Je) {
|
|
17769
17769
|
const Ge = Math.abs(ae), Ze = Math.abs(ye);
|
|
17770
17770
|
Te = Ge > Ze ? "horizontal" : "vertical", A(Te);
|
|
17771
17771
|
}
|
|
@@ -17839,10 +17839,10 @@ const y2 = {
|
|
|
17839
17839
|
setDescriptionId: k,
|
|
17840
17840
|
recalculateHeight: ee,
|
|
17841
17841
|
visibleIndex: L,
|
|
17842
|
-
expanded:
|
|
17843
|
-
}), [r, E, k, ee, L,
|
|
17842
|
+
expanded: q
|
|
17843
|
+
}), [r, E, k, ee, L, q]), fe = {
|
|
17844
17844
|
transitionStatus: r.transitionStatus,
|
|
17845
|
-
expanded:
|
|
17845
|
+
expanded: q,
|
|
17846
17846
|
limited: r.limited || !1,
|
|
17847
17847
|
type: r.type,
|
|
17848
17848
|
swiping: g,
|
|
@@ -18041,7 +18041,7 @@ function w3({ position: e = "bottom-right" }) {
|
|
|
18041
18041
|
return /* @__PURE__ */ p(Qw, { children: /* @__PURE__ */ p(
|
|
18042
18042
|
Hw,
|
|
18043
18043
|
{
|
|
18044
|
-
className:
|
|
18044
|
+
className: K(
|
|
18045
18045
|
"fixed z-(--z-toast) flex w-[min(24rem,calc(100vw-2rem))] flex-col outline-none",
|
|
18046
18046
|
S2[e]
|
|
18047
18047
|
),
|
|
@@ -18051,7 +18051,7 @@ function w3({ position: e = "bottom-right" }) {
|
|
|
18051
18051
|
Gw,
|
|
18052
18052
|
{
|
|
18053
18053
|
toast: r,
|
|
18054
|
-
className:
|
|
18054
|
+
className: K(
|
|
18055
18055
|
/* dx-toast is a stable hook for the overlay screenshot pass —
|
|
18056
18056
|
Base UI gives the root role="dialog", which is not something
|
|
18057
18057
|
a test can select on unambiguously. */
|
|
@@ -18089,7 +18089,7 @@ function w3({ position: e = "bottom-right" }) {
|
|
|
18089
18089
|
style: { zIndex: t.length - o },
|
|
18090
18090
|
swipeDirection: n ? "up" : "down",
|
|
18091
18091
|
children: /* @__PURE__ */ M("div", { className: "flex items-start gap-3", children: [
|
|
18092
|
-
/* @__PURE__ */ p(xe, { name: s.icon, size: "md", className:
|
|
18092
|
+
/* @__PURE__ */ p(xe, { name: s.icon, size: "md", className: K("mt-px", s.className) }),
|
|
18093
18093
|
/* @__PURE__ */ M("div", { className: "min-w-0 flex-1", children: [
|
|
18094
18094
|
/* @__PURE__ */ p(Yw, { className: "text-sm font-semibold text-primary" }),
|
|
18095
18095
|
/* @__PURE__ */ p(qw, { className: "mt-0.5 text-xs text-secondary text-pretty" }),
|
|
@@ -18492,14 +18492,14 @@ const c0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
18492
18492
|
} = Uo(), C = N2(), S = zp(!0), R = v.useState("parent"), N = v.useState("floatingRootContext"), E = v.useState("floatingTreeRoot"), I = v.useState("mounted"), k = v.useState("open"), T = v.useState("modal"), A = v.useState("openMethod"), V = v.useState("activeTriggerElement"), D = v.useState("transitionStatus"), _ = v.useState("positionerElement"), F = v.useState("instantType"), z = v.useState("adaptiveOrigin"), O = v.useState("lastOpenChangeReason"), G = v.useState("floatingNodeId"), P = v.useState("floatingParentNodeId"), H = N.useState("domReferenceElement"), $ = b.useRef(null), U = sc(_);
|
|
18493
18493
|
let j = r, B = c, L = u, W = l, Y = x;
|
|
18494
18494
|
R.type === "context-menu" && (j = r ?? R.context?.anchor, W = W ?? "start", !a && W !== "center" && (L = t.alignOffset ?? 2, B = t.sideOffset ?? -5));
|
|
18495
|
-
let
|
|
18496
|
-
R.type === "menu" ? (
|
|
18495
|
+
let q = a, ee = W;
|
|
18496
|
+
R.type === "menu" ? (q = q ?? "inline-end", ee = ee ?? "start", Y = t.collisionAvoidance ?? zf) : R.type === "menubar" && (q = q ?? (R.context.orientation === "vertical" ? "inline-end" : "bottom"), ee = ee ?? "start");
|
|
18497
18497
|
const te = R.type === "context-menu", Z = Ai({
|
|
18498
18498
|
anchor: j,
|
|
18499
18499
|
floatingRootContext: N,
|
|
18500
18500
|
positionMethod: S ? "fixed" : o,
|
|
18501
18501
|
mounted: I,
|
|
18502
|
-
side:
|
|
18502
|
+
side: q,
|
|
18503
18503
|
sideOffset: B,
|
|
18504
18504
|
align: ee,
|
|
18505
18505
|
alignOffset: L,
|
|
@@ -18914,7 +18914,7 @@ const g0 = Yf(function(t) {
|
|
|
18914
18914
|
process.env.NODE_ENV !== "production" && O.type !== void 0 && l !== void 0 && console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored.");
|
|
18915
18915
|
const {
|
|
18916
18916
|
openMethod: Y,
|
|
18917
|
-
triggerProps:
|
|
18917
|
+
triggerProps: q
|
|
18918
18918
|
} = up(A);
|
|
18919
18919
|
R.useSyncedValues({
|
|
18920
18920
|
disabled: a,
|
|
@@ -19040,12 +19040,12 @@ const g0 = Yf(function(t) {
|
|
|
19040
19040
|
onMouseMove() {
|
|
19041
19041
|
R.set("allowMouseEnter", !0);
|
|
19042
19042
|
}
|
|
19043
|
-
},
|
|
19043
|
+
}, q);
|
|
19044
19044
|
return ae["aria-haspopup"] = "menu", ae["aria-expanded"] = A, ae;
|
|
19045
|
-
}, [R, fe.reference, oe.reference, me.reference,
|
|
19046
|
-
const ae = rn(oe.trigger, me.trigger,
|
|
19045
|
+
}, [R, fe.reference, oe.reference, me.reference, q, A]), Q = b.useMemo(() => {
|
|
19046
|
+
const ae = rn(oe.trigger, me.trigger, q);
|
|
19047
19047
|
return ae["aria-haspopup"] = "menu", ae["aria-expanded"] = !1, ae;
|
|
19048
|
-
}, [oe.trigger, me.trigger,
|
|
19048
|
+
}, [oe.trigger, me.trigger, q]), X = b.useMemo(() => rn(ks, {
|
|
19049
19049
|
id: E,
|
|
19050
19050
|
role: "menu",
|
|
19051
19051
|
"aria-labelledby": V?.id,
|
|
@@ -19207,13 +19207,13 @@ const x0 = Iv(function(t, n) {
|
|
|
19207
19207
|
toggle: !0,
|
|
19208
19208
|
ignoreMouse: !1,
|
|
19209
19209
|
stickIfOpen: E.type === void 0 ? W : !1
|
|
19210
|
-
}),
|
|
19210
|
+
}), q = _v(C, {
|
|
19211
19211
|
enabled: !O && j
|
|
19212
19212
|
}), ee = _2({
|
|
19213
19213
|
open: S,
|
|
19214
19214
|
enabled: F,
|
|
19215
19215
|
mouseDownAction: "open"
|
|
19216
|
-
}), te = b.useMemo(() => rn(
|
|
19216
|
+
}), te = b.useMemo(() => rn(q.reference, Y.reference), [q.reference, Y.reference]), Z = y.useState("triggerProps", _), {
|
|
19217
19217
|
preFocusGuardRef: ne,
|
|
19218
19218
|
handlePreFocusGuardFocus: J,
|
|
19219
19219
|
handleFocusTargetFocus: ce
|
|
@@ -19340,7 +19340,7 @@ function Wp({
|
|
|
19340
19340
|
align: n,
|
|
19341
19341
|
sideOffset: 6,
|
|
19342
19342
|
className: "z-(--z-popover) outline-none",
|
|
19343
|
-
children: /* @__PURE__ */ p(a0, { className:
|
|
19343
|
+
children: /* @__PURE__ */ p(a0, { className: K(L2, s), children: i })
|
|
19344
19344
|
}
|
|
19345
19345
|
) })
|
|
19346
19346
|
] });
|
|
@@ -19351,21 +19351,21 @@ function gs({ className: e, selected: t, children: n, ref: r, ...o }) {
|
|
|
19351
19351
|
{
|
|
19352
19352
|
ref: r,
|
|
19353
19353
|
"data-selected": t || void 0,
|
|
19354
|
-
className:
|
|
19354
|
+
className: K(y0, t && z2, e),
|
|
19355
19355
|
...o,
|
|
19356
19356
|
children: n
|
|
19357
19357
|
}
|
|
19358
19358
|
);
|
|
19359
19359
|
}
|
|
19360
19360
|
function E3({ className: e, children: t, ...n }) {
|
|
19361
|
-
return /* @__PURE__ */ p(u0, { className:
|
|
19361
|
+
return /* @__PURE__ */ p(u0, { className: K("flex flex-col", e), ...n, children: t });
|
|
19362
19362
|
}
|
|
19363
19363
|
function R3({ className: e, children: t, ref: n, ...r }) {
|
|
19364
19364
|
return /* @__PURE__ */ M(
|
|
19365
19365
|
d0,
|
|
19366
19366
|
{
|
|
19367
19367
|
ref: n,
|
|
19368
|
-
className:
|
|
19368
|
+
className: K(
|
|
19369
19369
|
y0,
|
|
19370
19370
|
"data-checked:bg-surface-selected data-checked:font-medium data-checked:text-accent-text",
|
|
19371
19371
|
/* Checked AND highlighted — see SELECTED_ITEM. Base UI spells this
|
|
@@ -19389,7 +19389,7 @@ function gi({ label: e, children: t }) {
|
|
|
19389
19389
|
] });
|
|
19390
19390
|
}
|
|
19391
19391
|
function v0({ className: e }) {
|
|
19392
|
-
return /* @__PURE__ */ p(Tc, { className:
|
|
19392
|
+
return /* @__PURE__ */ p(Tc, { className: K("my-1 h-px bg-border-subtle", e) });
|
|
19393
19393
|
}
|
|
19394
19394
|
function Mc(e, t, n = (r, o) => r === o) {
|
|
19395
19395
|
return e.length === t.length && e.every((r, o) => n(r, t[o]));
|
|
@@ -19475,7 +19475,7 @@ const E0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
19475
19475
|
validation: H
|
|
19476
19476
|
} = Kt(), {
|
|
19477
19477
|
labelId: $
|
|
19478
|
-
} = sn(), [U, j] = b.useState(), B = r ?? jp($, U), L = F || i, W = z ?? x, [Y,
|
|
19478
|
+
} = sn(), [U, j] = b.useState(), B = r ?? jp($, U), L = F || i, W = z ?? x, [Y, q] = on({
|
|
19479
19479
|
controlled: N,
|
|
19480
19480
|
default: s ?? f,
|
|
19481
19481
|
name: "Slider"
|
|
@@ -19493,21 +19493,21 @@ const E0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
19493
19493
|
const Te = de((De, Se) => {
|
|
19494
19494
|
if (Number.isNaN(De) || H2(De, Y))
|
|
19495
19495
|
return !1;
|
|
19496
|
-
const Oe = Se.event, He = Oe.constructor,
|
|
19497
|
-
return Object.defineProperty(
|
|
19496
|
+
const Oe = Se.event, He = Oe.constructor, Je = new He(Oe.type, Oe);
|
|
19497
|
+
return Object.defineProperty(Je, "target", {
|
|
19498
19498
|
writable: !0,
|
|
19499
19499
|
value: {
|
|
19500
19500
|
value: De,
|
|
19501
19501
|
name: W
|
|
19502
19502
|
}
|
|
19503
|
-
}), Se.event =
|
|
19503
|
+
}), Se.event = Je, A(De, Se), Se.isCanceled ? !1 : (me.current = Se.reason, q(De), !0);
|
|
19504
19504
|
}), Ne = de((De, Se, Oe) => {
|
|
19505
19505
|
const He = C0(De, Se, f, d, ye, Ee);
|
|
19506
19506
|
if (S0(He, C, h)) {
|
|
19507
|
-
const
|
|
19507
|
+
const Je = "key" in Oe ? fr : Hn, Ge = Te(He, we(Je, Oe.nativeEvent, void 0, {
|
|
19508
19508
|
activeThumbIndex: Se
|
|
19509
19509
|
}));
|
|
19510
|
-
O(!0), Ge && V(He, Rn(
|
|
19510
|
+
O(!0), Ge && V(He, Rn(Je, Oe.nativeEvent));
|
|
19511
19511
|
}
|
|
19512
19512
|
});
|
|
19513
19513
|
process.env.NODE_ENV !== "production" && f >= d && tr("Slider `max` must be greater than `min`."), ge(() => {
|
|
@@ -19826,7 +19826,7 @@ const I0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
19826
19826
|
didSwap: !1
|
|
19827
19827
|
};
|
|
19828
19828
|
}
|
|
19829
|
-
function
|
|
19829
|
+
function q(se) {
|
|
19830
19830
|
w.current = D ? A.slice() : null, $.current = null, U.current = A;
|
|
19831
19831
|
const oe = y.current;
|
|
19832
19832
|
let le = oe;
|
|
@@ -19905,7 +19905,7 @@ const I0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
19905
19905
|
x: oe.clientX,
|
|
19906
19906
|
y: oe.clientY
|
|
19907
19907
|
};
|
|
19908
|
-
|
|
19908
|
+
q(le);
|
|
19909
19909
|
const fe = Y(le);
|
|
19910
19910
|
if (fe == null)
|
|
19911
19911
|
return;
|
|
@@ -19950,7 +19950,7 @@ const I0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
19950
19950
|
x: se.clientX,
|
|
19951
19951
|
y: se.clientY
|
|
19952
19952
|
};
|
|
19953
|
-
|
|
19953
|
+
q(fe);
|
|
19954
19954
|
const be = Y(fe);
|
|
19955
19955
|
if (be == null)
|
|
19956
19956
|
return;
|
|
@@ -20082,7 +20082,7 @@ const A0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
20082
20082
|
renderBeforeHydration: L,
|
|
20083
20083
|
setActive: W,
|
|
20084
20084
|
setIndicatorPosition: Y,
|
|
20085
|
-
state:
|
|
20085
|
+
state: q,
|
|
20086
20086
|
step: ee,
|
|
20087
20087
|
thumbRefs: te,
|
|
20088
20088
|
values: Z
|
|
@@ -20126,13 +20126,13 @@ const A0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
20126
20126
|
Ue.disconnect();
|
|
20127
20127
|
};
|
|
20128
20128
|
}, [I, He, D]);
|
|
20129
|
-
const
|
|
20129
|
+
const Je = me ? "bottom" : "insetInlineStart", Ge = me ? "left" : "top";
|
|
20130
20130
|
let Ze;
|
|
20131
20131
|
ce ? N === Te ? Ze = 2 : Oe === Te && (Ze = 1) : N === Te && (Ze = 1);
|
|
20132
20132
|
let Ae;
|
|
20133
20133
|
!D && !Number.isFinite(Ke) ? Ae = Mn : Ae = {
|
|
20134
20134
|
position: "absolute",
|
|
20135
|
-
[
|
|
20135
|
+
[Je]: D ? "var(--position)" : `${Ke}%`,
|
|
20136
20136
|
[Ge]: "50%",
|
|
20137
20137
|
translate: `${(me || !pe ? -1 : 1) * 50}% ${(me ? 1 : -1) * 50}%`,
|
|
20138
20138
|
zIndex: Ze,
|
|
@@ -20229,7 +20229,7 @@ const A0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
20229
20229
|
onKeyDown: w
|
|
20230
20230
|
}), lt = ln(be, T.inputRef, g);
|
|
20231
20231
|
return ve("div", t, {
|
|
20232
|
-
state:
|
|
20232
|
+
state: q,
|
|
20233
20233
|
ref: [n, Ee, fe],
|
|
20234
20234
|
props: [{
|
|
20235
20235
|
"data-index": Te,
|
|
@@ -20375,7 +20375,7 @@ function V0({
|
|
|
20375
20375
|
const I = Math.floor((s - o) / i);
|
|
20376
20376
|
return I > 20 ? [] : Array.from({ length: I + 1 }, (k, T) => ({ value: o + T * i }));
|
|
20377
20377
|
}, [m, o, s, i]), E = (I) => (I - o) / (s - o) * 100;
|
|
20378
|
-
return /* @__PURE__ */ M("div", { className:
|
|
20378
|
+
return /* @__PURE__ */ M("div", { className: K(w.root(), x), children: [
|
|
20379
20379
|
/* @__PURE__ */ M(
|
|
20380
20380
|
E0,
|
|
20381
20381
|
{
|
|
@@ -20427,7 +20427,7 @@ function V0({
|
|
|
20427
20427
|
"span",
|
|
20428
20428
|
{
|
|
20429
20429
|
"aria-hidden": !0,
|
|
20430
|
-
className:
|
|
20430
|
+
className: K(
|
|
20431
20431
|
"pointer-events-none absolute bottom-[calc(100%+0.5rem)] left-1/2 -translate-x-1/2",
|
|
20432
20432
|
"rounded-md border border-border bg-surface-inset px-2 py-1",
|
|
20433
20433
|
"font-mono text-2xs tabular-nums whitespace-nowrap text-primary shadow-md",
|
|
@@ -20680,137 +20680,182 @@ function k3({
|
|
|
20680
20680
|
header: o,
|
|
20681
20681
|
contentLandmark: s = "main",
|
|
20682
20682
|
navLabel: i = "Main",
|
|
20683
|
-
|
|
20684
|
-
|
|
20683
|
+
scroll: a = "content",
|
|
20684
|
+
scrollResetKey: l,
|
|
20685
|
+
children: c,
|
|
20686
|
+
className: u
|
|
20685
20687
|
}) {
|
|
20686
|
-
const
|
|
20688
|
+
const m = s === "main" ? "main" : "div", d = a === "content", [f, h] = Pe(!1), g = Qe(null);
|
|
20689
|
+
at(() => {
|
|
20690
|
+
l !== void 0 && g.current?.scrollTo({ top: 0, behavior: "instant" });
|
|
20691
|
+
}, [l]);
|
|
20692
|
+
const [x, y] = Pe(!1), w = /* @__PURE__ */ p(
|
|
20687
20693
|
wb,
|
|
20688
20694
|
{
|
|
20689
20695
|
sections: t,
|
|
20690
20696
|
activeId: n,
|
|
20691
|
-
collapsed:
|
|
20697
|
+
collapsed: f,
|
|
20692
20698
|
label: i,
|
|
20693
|
-
onNavigate: () =>
|
|
20699
|
+
onNavigate: () => y(!1)
|
|
20694
20700
|
}
|
|
20695
20701
|
);
|
|
20696
|
-
return
|
|
20697
|
-
/*
|
|
20698
|
-
|
|
20699
|
-
|
|
20700
|
-
|
|
20701
|
-
|
|
20702
|
-
|
|
20703
|
-
|
|
20704
|
-
|
|
20705
|
-
|
|
20706
|
-
|
|
20707
|
-
|
|
20708
|
-
|
|
20709
|
-
|
|
20710
|
-
|
|
20711
|
-
|
|
20712
|
-
|
|
20713
|
-
|
|
20714
|
-
|
|
20715
|
-
|
|
20716
|
-
|
|
20717
|
-
|
|
20718
|
-
|
|
20719
|
-
|
|
20720
|
-
|
|
20721
|
-
|
|
20722
|
-
|
|
20723
|
-
|
|
20724
|
-
|
|
20725
|
-
|
|
20726
|
-
|
|
20727
|
-
|
|
20728
|
-
|
|
20729
|
-
|
|
20730
|
-
|
|
20731
|
-
|
|
20732
|
-
|
|
20733
|
-
|
|
20734
|
-
|
|
20735
|
-
|
|
20736
|
-
|
|
20737
|
-
|
|
20738
|
-
|
|
20739
|
-
|
|
20740
|
-
|
|
20702
|
+
return (
|
|
20703
|
+
/* THE ONE VIEWPORT UNIT. Everything below it is `flex-1` and `min-h-0`,
|
|
20704
|
+
so no descendant — here or in a consumer's screen — ever has a reason to
|
|
20705
|
+
name `dvh` or subtract a token from it. */
|
|
20706
|
+
/* @__PURE__ */ M("div", { className: K("flex bg-canvas", d ? "h-dvh" : "min-h-dvh", u), children: [
|
|
20707
|
+
/* @__PURE__ */ M(
|
|
20708
|
+
"aside",
|
|
20709
|
+
{
|
|
20710
|
+
className: K(
|
|
20711
|
+
"hidden shrink-0 flex-col border-r border-border-subtle bg-surface lg:flex",
|
|
20712
|
+
/* Bounded: nothing. A flex item in a row of a fixed height is
|
|
20713
|
+
stretched to it by `align-items`, so the nav list's own
|
|
20714
|
+
`min-h-0 flex-1 overflow-y-auto` engages with no viewport unit and
|
|
20715
|
+
no stickiness. Unbounded: the row's height comes from its content,
|
|
20716
|
+
so the aside has to state the viewport itself and stay put while
|
|
20717
|
+
the page scrolls past it — the ONE place a second viewport unit is
|
|
20718
|
+
unavoidable, and the reason it lives behind an opt-out. */
|
|
20719
|
+
!d && "sticky top-0 h-dvh",
|
|
20720
|
+
"transition-[var(--tx-colors),width] duration-(--dur-slow) ease-emphasis",
|
|
20721
|
+
f ? "w-14" : "w-60"
|
|
20722
|
+
),
|
|
20723
|
+
children: [
|
|
20724
|
+
/* @__PURE__ */ M("div", { className: K("flex h-control-xl shrink-0 items-center gap-2 px-3", f && "justify-center"), children: [
|
|
20725
|
+
!f && /* @__PURE__ */ p("div", { className: "min-w-0 flex-1", children: e }),
|
|
20726
|
+
/* @__PURE__ */ p(
|
|
20727
|
+
Tn,
|
|
20728
|
+
{
|
|
20729
|
+
label: f ? "Expand sidebar" : "Collapse sidebar",
|
|
20730
|
+
tooltipSide: "right",
|
|
20731
|
+
onClick: () => h((v) => !v),
|
|
20732
|
+
icon: /* @__PURE__ */ p(
|
|
20733
|
+
xe,
|
|
20734
|
+
{
|
|
20735
|
+
name: "panel-left",
|
|
20736
|
+
size: "sm",
|
|
20737
|
+
className: K("transition-[var(--tx-colors),transform,translate,scale,rotate] duration-(--dur-base)", f && "rotate-180")
|
|
20738
|
+
}
|
|
20739
|
+
)
|
|
20740
|
+
}
|
|
20741
|
+
)
|
|
20742
|
+
] }),
|
|
20743
|
+
/* @__PURE__ */ p("div", { className: "relative min-h-0 flex-1 overflow-y-auto px-2 py-2", children: w }),
|
|
20744
|
+
r && /* @__PURE__ */ p("div", { className: "shrink-0 border-t border-border-subtle p-2", children: r })
|
|
20745
|
+
]
|
|
20746
|
+
}
|
|
20747
|
+
),
|
|
20748
|
+
/* @__PURE__ */ M("div", { className: K("flex min-w-0 flex-1 flex-col", d && "min-h-0"), children: [
|
|
20749
|
+
/* @__PURE__ */ M(
|
|
20750
|
+
"header",
|
|
20751
|
+
{
|
|
20752
|
+
className: K(
|
|
20753
|
+
"z-(--z-sticky) flex h-control-xl shrink-0 items-center gap-3",
|
|
20754
|
+
"border-b border-border-subtle bg-canvas/85 px-4 backdrop-blur-md",
|
|
20755
|
+
/* FIXED BY STRUCTURE when the shell is bounded: the header sits
|
|
20756
|
+
OUTSIDE the scroller, so there is nothing for it to stick to.
|
|
20757
|
+
`sticky top-0` there would be a declaration that reads as intent
|
|
20758
|
+
and does nothing. */
|
|
20759
|
+
!d && "sticky top-0"
|
|
20760
|
+
),
|
|
20761
|
+
children: [
|
|
20762
|
+
/* @__PURE__ */ M(Ap, { open: x, onOpenChange: y, children: [
|
|
20741
20763
|
/* @__PURE__ */ p(
|
|
20742
|
-
|
|
20764
|
+
Nc,
|
|
20743
20765
|
{
|
|
20744
|
-
|
|
20745
|
-
|
|
20746
|
-
|
|
20747
|
-
|
|
20766
|
+
render: (
|
|
20767
|
+
/* `hideTooltip` on every Base UI `render` slot in this file:
|
|
20768
|
+
the slot expects ONE element it can merge props and a ref
|
|
20769
|
+
into, and a tooltip wrapper would swallow both. The name
|
|
20770
|
+
still comes from `label` — that part is never optional. */
|
|
20771
|
+
/* @__PURE__ */ p(
|
|
20772
|
+
Tn,
|
|
20773
|
+
{
|
|
20774
|
+
label: "Open navigation",
|
|
20775
|
+
hideTooltip: !0,
|
|
20776
|
+
className: "lg:hidden",
|
|
20777
|
+
icon: /* @__PURE__ */ p(xe, { name: "menu", size: "sm" })
|
|
20778
|
+
}
|
|
20779
|
+
)
|
|
20780
|
+
)
|
|
20748
20781
|
}
|
|
20749
|
-
)
|
|
20750
|
-
)
|
|
20751
|
-
}
|
|
20752
|
-
),
|
|
20753
|
-
/* @__PURE__ */ M(zi, { children: [
|
|
20754
|
-
/* @__PURE__ */ p(
|
|
20755
|
-
Fi,
|
|
20756
|
-
{
|
|
20757
|
-
className: q(
|
|
20758
|
-
"fixed inset-0 z-(--z-overlay) bg-scrim lg:hidden",
|
|
20759
|
-
"transition-[var(--tx-colors),opacity] duration-(--dur-slower) ease-standard",
|
|
20760
|
-
"data-starting-style:opacity-0 data-ending-style:opacity-0"
|
|
20761
|
-
)
|
|
20762
|
-
}
|
|
20763
|
-
),
|
|
20764
|
-
/* @__PURE__ */ M(
|
|
20765
|
-
Li,
|
|
20766
|
-
{
|
|
20767
|
-
className: q(
|
|
20768
|
-
"fixed inset-y-0 left-0 z-(--z-drawer) flex w-72 flex-col",
|
|
20769
|
-
"border-r border-border bg-surface shadow-xl outline-none lg:hidden",
|
|
20770
|
-
/* Slides from the edge it lives on, so it reads as coming
|
|
20771
|
-
from off-screen rather than materialising in place. */
|
|
20772
|
-
"transition-[var(--tx-colors),transform,translate,scale,rotate] duration-(--dur-slower) ease-emphasis",
|
|
20773
|
-
"data-starting-style:-translate-x-full data-ending-style:-translate-x-full"
|
|
20774
20782
|
),
|
|
20775
|
-
children: [
|
|
20776
|
-
/* @__PURE__ */ p(
|
|
20777
|
-
|
|
20778
|
-
|
|
20779
|
-
|
|
20780
|
-
|
|
20781
|
-
|
|
20782
|
-
|
|
20783
|
-
|
|
20783
|
+
/* @__PURE__ */ M(zi, { children: [
|
|
20784
|
+
/* @__PURE__ */ p(
|
|
20785
|
+
Fi,
|
|
20786
|
+
{
|
|
20787
|
+
className: K(
|
|
20788
|
+
"fixed inset-0 z-(--z-overlay) bg-scrim lg:hidden",
|
|
20789
|
+
"transition-[var(--tx-colors),opacity] duration-(--dur-slower) ease-standard",
|
|
20790
|
+
"data-starting-style:opacity-0 data-ending-style:opacity-0"
|
|
20791
|
+
)
|
|
20792
|
+
}
|
|
20793
|
+
),
|
|
20794
|
+
/* @__PURE__ */ M(
|
|
20795
|
+
Li,
|
|
20796
|
+
{
|
|
20797
|
+
className: K(
|
|
20798
|
+
"fixed inset-y-0 left-0 z-(--z-drawer) flex w-72 flex-col",
|
|
20799
|
+
"border-r border-border bg-surface shadow-xl outline-none lg:hidden",
|
|
20800
|
+
/* Slides from the edge it lives on, so it reads as coming
|
|
20801
|
+
from off-screen rather than materialising in place. */
|
|
20802
|
+
"transition-[var(--tx-colors),transform,translate,scale,rotate] duration-(--dur-slower) ease-emphasis",
|
|
20803
|
+
"data-starting-style:-translate-x-full data-ending-style:-translate-x-full"
|
|
20804
|
+
),
|
|
20805
|
+
children: [
|
|
20806
|
+
/* @__PURE__ */ p(Bi, { className: "sr-only", children: "Navigation" }),
|
|
20807
|
+
/* @__PURE__ */ M("div", { className: "flex h-control-xl shrink-0 items-center justify-between gap-2 px-3", children: [
|
|
20808
|
+
/* @__PURE__ */ p("div", { className: "min-w-0 flex-1", children: e }),
|
|
20809
|
+
/* @__PURE__ */ p(
|
|
20810
|
+
$i,
|
|
20811
|
+
{
|
|
20812
|
+
render: /* @__PURE__ */ p(
|
|
20813
|
+
Tn,
|
|
20814
|
+
{
|
|
20815
|
+
label: "Close navigation",
|
|
20816
|
+
hideTooltip: !0,
|
|
20817
|
+
icon: /* @__PURE__ */ p(xe, { name: "x", size: "sm" })
|
|
20818
|
+
}
|
|
20819
|
+
)
|
|
20820
|
+
}
|
|
20821
|
+
)
|
|
20822
|
+
] }),
|
|
20823
|
+
/* @__PURE__ */ p("div", { className: "relative min-h-0 flex-1 overflow-y-auto px-2 py-2", children: /* @__PURE__ */ p(
|
|
20824
|
+
wb,
|
|
20784
20825
|
{
|
|
20785
|
-
|
|
20786
|
-
|
|
20787
|
-
|
|
20826
|
+
sections: t,
|
|
20827
|
+
activeId: n,
|
|
20828
|
+
collapsed: !1,
|
|
20829
|
+
label: i,
|
|
20830
|
+
onNavigate: () => y(!1)
|
|
20788
20831
|
}
|
|
20789
|
-
)
|
|
20790
|
-
|
|
20791
|
-
|
|
20792
|
-
] }),
|
|
20793
|
-
/* @__PURE__ */ p("div", { className: "min-h-0 flex-1 overflow-y-auto px-2 py-2", children: /* @__PURE__ */ p(
|
|
20794
|
-
wb,
|
|
20795
|
-
{
|
|
20796
|
-
sections: t,
|
|
20797
|
-
activeId: n,
|
|
20798
|
-
collapsed: !1,
|
|
20799
|
-
label: i,
|
|
20800
|
-
onNavigate: () => f(!1)
|
|
20832
|
+
) }),
|
|
20833
|
+
r && /* @__PURE__ */ p("div", { className: "shrink-0 border-t border-border-subtle p-2", children: r })
|
|
20834
|
+
]
|
|
20801
20835
|
}
|
|
20802
|
-
)
|
|
20803
|
-
|
|
20804
|
-
|
|
20805
|
-
|
|
20806
|
-
|
|
20807
|
-
|
|
20808
|
-
|
|
20809
|
-
|
|
20810
|
-
|
|
20811
|
-
|
|
20836
|
+
)
|
|
20837
|
+
] })
|
|
20838
|
+
] }),
|
|
20839
|
+
o
|
|
20840
|
+
]
|
|
20841
|
+
}
|
|
20842
|
+
),
|
|
20843
|
+
/* @__PURE__ */ p(
|
|
20844
|
+
m,
|
|
20845
|
+
{
|
|
20846
|
+
ref: g,
|
|
20847
|
+
"data-app-shell-content": "",
|
|
20848
|
+
tabIndex: d ? 0 : -1,
|
|
20849
|
+
className: K(
|
|
20850
|
+
"flex min-w-0 flex-1 flex-col outline-none",
|
|
20851
|
+
d && "relative min-h-0 overflow-y-auto focus-visible:outline-2 focus-visible:-outline-offset-2 focus-visible:outline-accent-border"
|
|
20852
|
+
),
|
|
20853
|
+
children: c
|
|
20854
|
+
}
|
|
20855
|
+
)
|
|
20856
|
+
] })
|
|
20812
20857
|
] })
|
|
20813
|
-
|
|
20858
|
+
);
|
|
20814
20859
|
}
|
|
20815
20860
|
function wb({
|
|
20816
20861
|
sections: e,
|
|
@@ -20830,7 +20875,7 @@ function wb({
|
|
|
20830
20875
|
a.href || u.preventDefault(), a.onClick?.(), o();
|
|
20831
20876
|
},
|
|
20832
20877
|
"aria-current": l ? "page" : void 0,
|
|
20833
|
-
className:
|
|
20878
|
+
className: K(
|
|
20834
20879
|
"flex h-control-md items-center gap-3 rounded-md px-2.5",
|
|
20835
20880
|
"text-sm font-medium",
|
|
20836
20881
|
"transition-[var(--tx-colors)] duration-(--dur-fast) ease-hover",
|
|
@@ -21137,7 +21182,7 @@ function mO({
|
|
|
21137
21182
|
ref: a
|
|
21138
21183
|
}) {
|
|
21139
21184
|
const l = W0({ size: o, tone: s }), c = e === null;
|
|
21140
|
-
return /* @__PURE__ */ M(_0, { ref: a, value: e, className:
|
|
21185
|
+
return /* @__PURE__ */ M(_0, { ref: a, value: e, className: K(l.root(), i), children: [
|
|
21141
21186
|
(t || r) && /* @__PURE__ */ M("div", { className: l.header(), children: [
|
|
21142
21187
|
t && /* @__PURE__ */ p(L0, { className: l.label(), children: t }),
|
|
21143
21188
|
r && /* @__PURE__ */ p("span", { className: l.value(), children: c ? "—" : n(e) })
|
|
@@ -21145,7 +21190,7 @@ function mO({
|
|
|
21145
21190
|
/* @__PURE__ */ p(F0, { className: l.track(), children: /* @__PURE__ */ p(
|
|
21146
21191
|
$0,
|
|
21147
21192
|
{
|
|
21148
|
-
className:
|
|
21193
|
+
className: K(
|
|
21149
21194
|
l.indicator(),
|
|
21150
21195
|
/* Indeterminate is a short bar sweeping the track, NOT a full bar
|
|
21151
21196
|
pulsing. A pulsing full bar says "finished, and stuck"; a
|
|
@@ -21170,7 +21215,7 @@ function hO({
|
|
|
21170
21215
|
ref: c
|
|
21171
21216
|
}) {
|
|
21172
21217
|
const u = W0({ size: i, tone: a });
|
|
21173
|
-
return /* @__PURE__ */ M(B0, { ref: c, value: e, min: t, max: n, className:
|
|
21218
|
+
return /* @__PURE__ */ M(B0, { ref: c, value: e, min: t, max: n, className: K(u.root(), l), children: [
|
|
21174
21219
|
(r || s) && /* @__PURE__ */ M("div", { className: u.header(), children: [
|
|
21175
21220
|
r && /* @__PURE__ */ p(U0, { className: u.label(), children: r }),
|
|
21176
21221
|
s && /* @__PURE__ */ p("span", { className: u.value(), children: o(e) })
|
|
@@ -21227,14 +21272,14 @@ function yO({
|
|
|
21227
21272
|
return /* @__PURE__ */ M(
|
|
21228
21273
|
"div",
|
|
21229
21274
|
{
|
|
21230
|
-
className:
|
|
21275
|
+
className: K(j0({ size: n }), s),
|
|
21231
21276
|
role: "progressbar",
|
|
21232
21277
|
"aria-valuenow": i ? void 0 : Math.round(e),
|
|
21233
21278
|
"aria-valuemin": 0,
|
|
21234
21279
|
"aria-valuemax": 100,
|
|
21235
21280
|
"aria-label": t,
|
|
21236
21281
|
children: [
|
|
21237
|
-
/* @__PURE__ */ M("svg", { viewBox: "0 0 24 24", className:
|
|
21282
|
+
/* @__PURE__ */ M("svg", { viewBox: "0 0 24 24", className: K("size-full -rotate-90", i && "animate-spin"), children: [
|
|
21238
21283
|
/* @__PURE__ */ p("circle", { cx: "12", cy: "12", r: "10", fill: "none", strokeWidth: "2.5", className: "stroke-surface-inset" }),
|
|
21239
21284
|
/* @__PURE__ */ p(
|
|
21240
21285
|
"circle",
|
|
@@ -21248,7 +21293,7 @@ function yO({
|
|
|
21248
21293
|
pathLength: "1",
|
|
21249
21294
|
strokeDasharray: "1",
|
|
21250
21295
|
strokeDashoffset: 1 - a,
|
|
21251
|
-
className:
|
|
21296
|
+
className: K(
|
|
21252
21297
|
"transition-[var(--tx-colors),stroke-dashoffset] duration-(--dur-slow) ease-emphasis",
|
|
21253
21298
|
K0[r ?? "accent"]
|
|
21254
21299
|
),
|
|
@@ -21276,7 +21321,7 @@ function vO({
|
|
|
21276
21321
|
return /* @__PURE__ */ M(
|
|
21277
21322
|
"div",
|
|
21278
21323
|
{
|
|
21279
|
-
className:
|
|
21324
|
+
className: K(j0({ size: r }), i),
|
|
21280
21325
|
role: "progressbar",
|
|
21281
21326
|
"aria-valuenow": Math.min(100, u),
|
|
21282
21327
|
"aria-valuemin": 0,
|
|
@@ -21299,7 +21344,7 @@ function vO({
|
|
|
21299
21344
|
pathLength: "1",
|
|
21300
21345
|
strokeDasharray: `${g.length} 1`,
|
|
21301
21346
|
strokeDashoffset: -g.start,
|
|
21302
|
-
className:
|
|
21347
|
+
className: K(
|
|
21303
21348
|
"transition-[var(--tx-colors),stroke-dasharray,stroke-dashoffset] duration-(--dur-slow) ease-emphasis",
|
|
21304
21349
|
K0[g.tone]
|
|
21305
21350
|
),
|
|
@@ -21336,7 +21381,7 @@ function T3({
|
|
|
21336
21381
|
hint: l,
|
|
21337
21382
|
className: c
|
|
21338
21383
|
}) {
|
|
21339
|
-
const u = Dn(), m =
|
|
21384
|
+
const u = Dn(), m = Qe(0), [d, f] = Pe(!1), [h, g] = Pe([]);
|
|
21340
21385
|
function x(y) {
|
|
21341
21386
|
if (!y) return;
|
|
21342
21387
|
const w = Array.from(y), v = s ? w.filter((S) => S.size > s) : [], C = s ? w.filter((S) => S.size <= s) : w;
|
|
@@ -21344,7 +21389,7 @@ function T3({
|
|
|
21344
21389
|
v.map((S) => `${S.name} is ${ka(S.size)} — the limit is ${ka(s)}`)
|
|
21345
21390
|
), C.length && t?.(C);
|
|
21346
21391
|
}
|
|
21347
|
-
return /* @__PURE__ */ M("div", { className:
|
|
21392
|
+
return /* @__PURE__ */ M("div", { className: K("flex w-full min-w-0 flex-col gap-3", c), children: [
|
|
21348
21393
|
/* @__PURE__ */ M(
|
|
21349
21394
|
"label",
|
|
21350
21395
|
{
|
|
@@ -21359,7 +21404,7 @@ function T3({
|
|
|
21359
21404
|
onDrop: (y) => {
|
|
21360
21405
|
y.preventDefault(), m.current = 0, f(!1), i || x(y.dataTransfer.files);
|
|
21361
21406
|
},
|
|
21362
|
-
className:
|
|
21407
|
+
className: K(
|
|
21363
21408
|
"flex cursor-pointer flex-col items-center justify-center gap-2 rounded-xl px-6 py-10 text-center",
|
|
21364
21409
|
/* `dx-ground-sunken`: the interaction fills mix from the surface a
|
|
21365
21410
|
thing is painted ON, and this well is two ramp steps below the
|
|
@@ -21379,7 +21424,7 @@ function T3({
|
|
|
21379
21424
|
/* @__PURE__ */ p(
|
|
21380
21425
|
"span",
|
|
21381
21426
|
{
|
|
21382
|
-
className:
|
|
21427
|
+
className: K(
|
|
21383
21428
|
"grid size-12 place-items-center rounded-full bg-surface-raised text-tertiary",
|
|
21384
21429
|
"transition-[var(--tx-colors),translate] duration-(--dur-base) ease-snappy",
|
|
21385
21430
|
d && "-translate-y-1 bg-accent text-accent-contrast"
|
|
@@ -21502,7 +21547,7 @@ function M3({
|
|
|
21502
21547
|
Yn,
|
|
21503
21548
|
{
|
|
21504
21549
|
align: "start",
|
|
21505
|
-
className:
|
|
21550
|
+
className: K("w-auto p-3", c),
|
|
21506
21551
|
trigger: /* @__PURE__ */ p(
|
|
21507
21552
|
Vt,
|
|
21508
21553
|
{
|
|
@@ -21510,7 +21555,7 @@ function M3({
|
|
|
21510
21555
|
disabled: a,
|
|
21511
21556
|
className: "w-full justify-between font-normal",
|
|
21512
21557
|
leadingIcon: /* @__PURE__ */ p(xe, { name: "calendar", size: "sm", className: "text-tertiary" }),
|
|
21513
|
-
children: /* @__PURE__ */ p("span", { className:
|
|
21558
|
+
children: /* @__PURE__ */ p("span", { className: K("flex-1 text-left", !I && "text-field-placeholder"), children: I ?? i })
|
|
21514
21559
|
}
|
|
21515
21560
|
),
|
|
21516
21561
|
children: /* @__PURE__ */ M("div", { className: "flex w-[17.5rem] flex-col gap-3 pointer-coarse:w-[20.5rem]", children: [
|
|
@@ -21558,7 +21603,7 @@ function M3({
|
|
|
21558
21603
|
onMouseEnter: () => x(k),
|
|
21559
21604
|
onMouseLeave: () => x(null),
|
|
21560
21605
|
onKeyDown: (_) => E(_, k),
|
|
21561
|
-
className:
|
|
21606
|
+
className: K(
|
|
21562
21607
|
"dx-tap grid h-9 place-items-center rounded-md text-sm tabular-nums",
|
|
21563
21608
|
"transition-[var(--tx-colors)] duration-(--dur-instant)",
|
|
21564
21609
|
"disabled:pointer-events-none disabled:opacity-30",
|
|
@@ -21647,7 +21692,7 @@ function P3({ nodes: e, defaultExpanded: t = [], selectedId: n, onSelect: r, cla
|
|
|
21647
21692
|
break;
|
|
21648
21693
|
}
|
|
21649
21694
|
}
|
|
21650
|
-
return /* @__PURE__ */ p("div", { role: "tree", className:
|
|
21695
|
+
return /* @__PURE__ */ p("div", { role: "tree", className: K("flex min-w-0 flex-col", o), children: a.map(({ node: d, depth: f }, h) => {
|
|
21651
21696
|
const g = !!d.children?.length, x = s.has(d.id), y = d.id === n;
|
|
21652
21697
|
return /* @__PURE__ */ M(
|
|
21653
21698
|
"div",
|
|
@@ -21661,7 +21706,7 @@ function P3({ nodes: e, defaultExpanded: t = [], selectedId: n, onSelect: r, cla
|
|
|
21661
21706
|
tabIndex: y || !n && h === 0 ? 0 : -1,
|
|
21662
21707
|
onKeyDown: (w) => m(w, h, d),
|
|
21663
21708
|
onClick: () => !d.disabled && r?.(d),
|
|
21664
|
-
className:
|
|
21709
|
+
className: K(
|
|
21665
21710
|
"flex h-control-sm cursor-pointer items-center gap-1.5 rounded-md pr-2 outline-none",
|
|
21666
21711
|
"text-sm transition-colors duration-(--dur-instant)",
|
|
21667
21712
|
/* The selected row keeps a hover of its OWN. Written as a single
|
|
@@ -21688,7 +21733,7 @@ function P3({ nodes: e, defaultExpanded: t = [], selectedId: n, onSelect: r, cla
|
|
|
21688
21733
|
{
|
|
21689
21734
|
name: "chevron-right",
|
|
21690
21735
|
size: "xs",
|
|
21691
|
-
className:
|
|
21736
|
+
className: K(
|
|
21692
21737
|
"transition-[var(--tx-colors),transform,translate,scale,rotate] duration-(--dur-base) ease-snappy",
|
|
21693
21738
|
x && "rotate-90"
|
|
21694
21739
|
)
|
|
@@ -21705,7 +21750,7 @@ function P3({ nodes: e, defaultExpanded: t = [], selectedId: n, onSelect: r, cla
|
|
|
21705
21750
|
{
|
|
21706
21751
|
name: d.icon,
|
|
21707
21752
|
size: "sm",
|
|
21708
|
-
className:
|
|
21753
|
+
className: K("shrink-0", y ? "text-accent-text" : "text-tertiary")
|
|
21709
21754
|
}
|
|
21710
21755
|
),
|
|
21711
21756
|
/* @__PURE__ */ p("span", { className: "min-w-0 flex-1 truncate", children: d.label }),
|
|
@@ -21766,7 +21811,7 @@ function O3({
|
|
|
21766
21811
|
/* @__PURE__ */ p(
|
|
21767
21812
|
Fi,
|
|
21768
21813
|
{
|
|
21769
|
-
className:
|
|
21814
|
+
className: K(
|
|
21770
21815
|
"fixed inset-0 z-(--z-overlay) bg-scrim backdrop-blur-[2px]",
|
|
21771
21816
|
"transition-[var(--tx-colors),opacity] duration-(--dur-slower) ease-standard",
|
|
21772
21817
|
"data-starting-style:opacity-0",
|
|
@@ -21777,7 +21822,7 @@ function O3({
|
|
|
21777
21822
|
/* @__PURE__ */ M(
|
|
21778
21823
|
Li,
|
|
21779
21824
|
{
|
|
21780
|
-
className:
|
|
21825
|
+
className: K(
|
|
21781
21826
|
/* Sits at 15% from the top rather than centred. A palette centred
|
|
21782
21827
|
vertically puts the list you are reading below the middle of the
|
|
21783
21828
|
screen and moves your eye down as it filters; anchored high, the
|
|
@@ -21826,7 +21871,7 @@ function O3({
|
|
|
21826
21871
|
onClick: () => {
|
|
21827
21872
|
g.onSelect(), n(!1);
|
|
21828
21873
|
},
|
|
21829
|
-
className:
|
|
21874
|
+
className: K(
|
|
21830
21875
|
"dx-tap flex w-full items-center gap-3 rounded-md px-3 py-2.5 text-left",
|
|
21831
21876
|
"transition-colors duration-(--dur-instant)",
|
|
21832
21877
|
x ? "bg-surface-hover text-primary" : "text-secondary"
|
|
@@ -22039,7 +22084,7 @@ const Q0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
22039
22084
|
validation: O
|
|
22040
22085
|
} = Kt(), {
|
|
22041
22086
|
clearErrors: G
|
|
22042
|
-
} = kn(), P = D || u, H = F ?? f, $ = a === "any" ? 1 : a, [U, j] = b.useState(!1), B = o ?? Number.MIN_SAFE_INTEGER, L = s ?? Number.MAX_SAFE_INTEGER, W = o ?? 0, Y = S?.style,
|
|
22087
|
+
} = kn(), P = D || u, H = F ?? f, $ = a === "any" ? 1 : a, [U, j] = b.useState(!1), B = o ?? Number.MIN_SAFE_INTEGER, L = s ?? Number.MAX_SAFE_INTEGER, W = o ?? 0, Y = S?.style, q = b.useRef(null), ee = ln(I, O.inputRef), te = br({
|
|
22043
22088
|
id: r
|
|
22044
22089
|
}), [Z, ne] = on({
|
|
22045
22090
|
controlled: g,
|
|
@@ -22089,13 +22134,13 @@ const Q0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
22089
22134
|
let Re = "text";
|
|
22090
22135
|
B >= 0 && (Re = "decimal"), re(Re);
|
|
22091
22136
|
}, [B]), b.useEffect(function() {
|
|
22092
|
-
const Re =
|
|
22137
|
+
const Re = q.current;
|
|
22093
22138
|
if (P || m || !w || !Re)
|
|
22094
22139
|
return;
|
|
22095
22140
|
function Ke(Le) {
|
|
22096
22141
|
if (
|
|
22097
22142
|
// Allow pinch-zooming.
|
|
22098
|
-
Le.ctrlKey || Pt(je(
|
|
22143
|
+
Le.ctrlKey || Pt(je(q.current)) !== q.current
|
|
22099
22144
|
)
|
|
22100
22145
|
return;
|
|
22101
22146
|
Le.preventDefault(), le.current = !0;
|
|
@@ -22117,7 +22162,7 @@ const Q0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
22117
22162
|
inputValue: be,
|
|
22118
22163
|
scrubbing: U
|
|
22119
22164
|
}), [z, P, m, c, J, be, U]), $e = b.useMemo(() => ({
|
|
22120
|
-
inputRef:
|
|
22165
|
+
inputRef: q,
|
|
22121
22166
|
minWithDefault: B,
|
|
22122
22167
|
maxWithDefault: L,
|
|
22123
22168
|
id: te,
|
|
@@ -22140,7 +22185,7 @@ const Q0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
22140
22185
|
setIsScrubbing: j,
|
|
22141
22186
|
state: Ee,
|
|
22142
22187
|
onValueCommitted: oe
|
|
22143
|
-
}), [
|
|
22188
|
+
}), [q, B, L, te, ae, ye, ie, pe, ce, H, f, X, he, o, s, Q, R, Ee, oe]), Te = ve("div", t, {
|
|
22144
22189
|
ref: n,
|
|
22145
22190
|
state: Ee,
|
|
22146
22191
|
props: T,
|
|
@@ -22151,7 +22196,7 @@ const Q0 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
22151
22196
|
children: [Te, /* @__PURE__ */ p("input", {
|
|
22152
22197
|
...O.getValidationProps(P, {
|
|
22153
22198
|
onFocus() {
|
|
22154
|
-
|
|
22199
|
+
q.current?.focus();
|
|
22155
22200
|
},
|
|
22156
22201
|
onChange(Ne) {
|
|
22157
22202
|
if (Ne.nativeEvent.defaultPrevented || P || m)
|
|
@@ -22476,8 +22521,8 @@ const oA = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
22476
22521
|
} = sn(), j = b.useRef(!1), B = b.useRef(!1), L = b.useRef(null);
|
|
22477
22522
|
return _r(R, m, D, void 0, !T, y), ge(() => {
|
|
22478
22523
|
if (L.current != null) {
|
|
22479
|
-
const
|
|
22480
|
-
L.current = null, R.current?.setSelectionRange(
|
|
22524
|
+
const q = L.current;
|
|
22525
|
+
L.current = null, R.current?.setSelectionRange(q, q);
|
|
22481
22526
|
}
|
|
22482
22527
|
}), zn(D, () => {
|
|
22483
22528
|
if (F(x), B.current && !H()) {
|
|
@@ -22505,22 +22550,22 @@ const oA = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
22505
22550
|
// If the server's locale does not match the client's locale, the formatting may not match,
|
|
22506
22551
|
// causing a hydration mismatch.
|
|
22507
22552
|
suppressHydrationWarning: !0,
|
|
22508
|
-
onFocus(
|
|
22509
|
-
if (
|
|
22553
|
+
onFocus(q) {
|
|
22554
|
+
if (q.defaultPrevented || T || (G(!0), j.current))
|
|
22510
22555
|
return;
|
|
22511
22556
|
j.current = !0;
|
|
22512
|
-
const ee =
|
|
22557
|
+
const ee = q.currentTarget, te = ee.value.length;
|
|
22513
22558
|
ee.setSelectionRange(te, te);
|
|
22514
22559
|
},
|
|
22515
|
-
onBlur(
|
|
22516
|
-
if (
|
|
22560
|
+
onBlur(q) {
|
|
22561
|
+
if (q.defaultPrevented || T || (O(!0), G(!1), A))
|
|
22517
22562
|
return;
|
|
22518
22563
|
const ee = !a.current, te = I.current;
|
|
22519
22564
|
if (a.current = !0, _.trim() === "") {
|
|
22520
|
-
const fe = we(Sn,
|
|
22565
|
+
const fe = we(Sn, q.nativeEvent);
|
|
22521
22566
|
if (w(null, fe), fe.isCanceled)
|
|
22522
22567
|
return;
|
|
22523
|
-
z === "onBlur" && $.commit(null), (ee || te || D !== null) && N(null, Rn(Sn,
|
|
22568
|
+
z === "onBlur" && $.commit(null), (ee || te || D !== null) && N(null, Rn(Sn, q.nativeEvent));
|
|
22524
22569
|
return;
|
|
22525
22570
|
}
|
|
22526
22571
|
const Z = l.current, ne = rs(_, S, Z);
|
|
@@ -22529,10 +22574,10 @@ const oA = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
22529
22574
|
const J = nm(Z);
|
|
22530
22575
|
let ce;
|
|
22531
22576
|
!ee && !J ? ce = D : J ? ce = Z0(ne, Z) : ce = ne;
|
|
22532
|
-
const me = Rn(lg,
|
|
22577
|
+
const me = Rn(lg, q.nativeEvent), pe = D !== ce, se = ee || pe || te;
|
|
22533
22578
|
let oe = ce;
|
|
22534
22579
|
if (pe) {
|
|
22535
|
-
const fe = we(lg,
|
|
22580
|
+
const fe = we(lg, q.nativeEvent);
|
|
22536
22581
|
if (B.current = !0, w(ce, fe), fe.isCanceled) {
|
|
22537
22582
|
B.current = !1;
|
|
22538
22583
|
return;
|
|
@@ -22543,13 +22588,13 @@ const oA = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
22543
22588
|
const le = Jn(oe, S, Z);
|
|
22544
22589
|
_ !== le && C(le);
|
|
22545
22590
|
},
|
|
22546
|
-
onChange(
|
|
22547
|
-
if (
|
|
22591
|
+
onChange(q) {
|
|
22592
|
+
if (q.nativeEvent.defaultPrevented)
|
|
22548
22593
|
return;
|
|
22549
22594
|
a.current = !1;
|
|
22550
|
-
const ee =
|
|
22595
|
+
const ee = q.currentTarget.value;
|
|
22551
22596
|
if (ee.trim() === "") {
|
|
22552
|
-
C(ee), w(null, we(Sn,
|
|
22597
|
+
C(ee), w(null, we(Sn, q.nativeEvent));
|
|
22553
22598
|
return;
|
|
22554
22599
|
}
|
|
22555
22600
|
const te = c();
|
|
@@ -22558,57 +22603,57 @@ const oA = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
22558
22603
|
BO.test(J)))
|
|
22559
22604
|
return;
|
|
22560
22605
|
const ne = rs(ee, S, l.current);
|
|
22561
|
-
C(ee), ne !== null && w(ne, we(Hn,
|
|
22606
|
+
C(ee), ne !== null && w(ne, we(Hn, q.nativeEvent));
|
|
22562
22607
|
},
|
|
22563
|
-
onKeyDown(
|
|
22564
|
-
if (
|
|
22608
|
+
onKeyDown(q) {
|
|
22609
|
+
if (q.defaultPrevented || A || T)
|
|
22565
22610
|
return;
|
|
22566
|
-
const ee =
|
|
22567
|
-
let ne = Z.has(
|
|
22611
|
+
const ee = q.nativeEvent, te = !a.current, Z = c();
|
|
22612
|
+
let ne = Z.has(q.key);
|
|
22568
22613
|
const {
|
|
22569
22614
|
decimal: J,
|
|
22570
22615
|
currency: ce,
|
|
22571
22616
|
percentSign: me
|
|
22572
|
-
} = tm(S, l.current), pe =
|
|
22617
|
+
} = tm(S, l.current), pe = q.currentTarget.selectionStart, se = q.currentTarget.selectionEnd, oe = pe === 0 && se === _.length, le = (ye) => pe != null && se != null && ye >= pe && ye < se;
|
|
22573
22618
|
[[Au, q0], [Rb, Y0]].forEach(([ye, Ee]) => {
|
|
22574
|
-
if (ye.test(
|
|
22619
|
+
if (ye.test(q.key) && Array.from(Z).some(($e) => ye.test($e))) {
|
|
22575
22620
|
const $e = _.search(Ee), Te = $e !== -1 && le($e);
|
|
22576
22621
|
ne = !(Au.test(_) || Rb.test(_)) || oe || Te;
|
|
22577
22622
|
}
|
|
22578
22623
|
}), [J, ce, me].forEach((ye) => {
|
|
22579
|
-
if (
|
|
22624
|
+
if (q.key === ye) {
|
|
22580
22625
|
const Ee = _.indexOf(ye), $e = le(Ee);
|
|
22581
22626
|
ne = Ee === -1 || oe || $e;
|
|
22582
22627
|
}
|
|
22583
22628
|
});
|
|
22584
|
-
const be = oA.has(
|
|
22629
|
+
const be = oA.has(q.key), Q = q.key === "ArrowUp" || q.key === "ArrowDown";
|
|
22585
22630
|
if (
|
|
22586
22631
|
// Allow composition events (e.g., pinyin)
|
|
22587
22632
|
// event.nativeEvent.isComposing does not work in Safari:
|
|
22588
22633
|
// https://bugs.webkit.org/show_bug.cgi?id=165004
|
|
22589
|
-
|
|
22634
|
+
q.which === 229 || q.altKey && !Q || q.ctrlKey || q.metaKey || ne || Sb(q.key) || be
|
|
22590
22635
|
)
|
|
22591
22636
|
return;
|
|
22592
22637
|
let X = null;
|
|
22593
|
-
if (
|
|
22638
|
+
if (q.key === "Home" && g != null ? X = g : q.key === "End" && h != null && (X = h), q.key.length > 1 && !Q && X === null)
|
|
22594
22639
|
return;
|
|
22595
|
-
const re = te ? rs(_, S, l.current) : null, he = u(
|
|
22596
|
-
|
|
22640
|
+
const re = te ? rs(_, S, l.current) : null, he = u(q);
|
|
22641
|
+
q.preventDefault(), q.stopPropagation();
|
|
22597
22642
|
const ie = Rn(fr, ee);
|
|
22598
22643
|
let ae = !1;
|
|
22599
22644
|
(Q || X !== null) && (a.current = !0), Q ? (te || (E.current = k.current), ae = d(he, {
|
|
22600
|
-
direction:
|
|
22645
|
+
direction: q.key === "ArrowUp" ? 1 : -1,
|
|
22601
22646
|
currentValue: re,
|
|
22602
22647
|
event: ee,
|
|
22603
22648
|
reason: fr
|
|
22604
22649
|
})) : X !== null && (ae = w(X, we(fr, ee))), ae && N(E.current, ie);
|
|
22605
22650
|
},
|
|
22606
|
-
onPaste(
|
|
22607
|
-
if (
|
|
22651
|
+
onPaste(q) {
|
|
22652
|
+
if (q.defaultPrevented || A || T)
|
|
22608
22653
|
return;
|
|
22609
22654
|
let ee = "";
|
|
22610
22655
|
try {
|
|
22611
|
-
ee =
|
|
22656
|
+
ee = q.clipboardData?.getData("text/plain") ?? "";
|
|
22612
22657
|
} catch {
|
|
22613
22658
|
if (process.env.NODE_ENV !== "production") {
|
|
22614
22659
|
const me = Wn.captureOwnerStack?.() || "";
|
|
@@ -22616,11 +22661,11 @@ const oA = /* @__PURE__ */ new Set(["Backspace", "Delete", "ArrowLeft", "ArrowRi
|
|
|
22616
22661
|
}
|
|
22617
22662
|
return;
|
|
22618
22663
|
}
|
|
22619
|
-
|
|
22620
|
-
const te =
|
|
22621
|
-
ce !== null && (a.current = !1, L.current = Z + ee.length, w(ce, we(ui,
|
|
22664
|
+
q.preventDefault();
|
|
22665
|
+
const te = q.currentTarget, Z = te.selectionStart, ne = te.selectionEnd, J = _.slice(0, Z) + ee + _.slice(ne), ce = rs(J, S, l.current);
|
|
22666
|
+
ce !== null && (a.current = !1, L.current = Z + ee.length, w(ce, we(ui, q.nativeEvent)), C(J));
|
|
22622
22667
|
}
|
|
22623
|
-
}, i, (
|
|
22668
|
+
}, i, (q) => $.getValidationProps(T, q)],
|
|
22624
22669
|
stateAttributesMapping: Os
|
|
22625
22670
|
});
|
|
22626
22671
|
});
|
|
@@ -22698,9 +22743,9 @@ const aA = {
|
|
|
22698
22743
|
const L = I.current, W = S.current;
|
|
22699
22744
|
if (!L || !W)
|
|
22700
22745
|
return;
|
|
22701
|
-
const Y = iA(a, W),
|
|
22702
|
-
x: ee(Math.round(
|
|
22703
|
-
y: ee(Math.round(
|
|
22746
|
+
const Y = iA(a, W), q = k.current, ee = (Z, ne, J, ce) => Z + ne < J ? ce - ne : Z + ne > ce ? J - ne : Z, te = {
|
|
22747
|
+
x: ee(Math.round(q.x + j), L.offsetWidth / 2, Y.left, Y.right),
|
|
22748
|
+
y: ee(Math.round(q.y + B), L.offsetHeight / 2, Y.top, Y.bottom)
|
|
22704
22749
|
};
|
|
22705
22750
|
k.current = te, O(L, te.x, te.y);
|
|
22706
22751
|
}), P = de((j, {
|
|
@@ -22757,9 +22802,9 @@ const aA = {
|
|
|
22757
22802
|
}));
|
|
22758
22803
|
}
|
|
22759
22804
|
}
|
|
22760
|
-
const Y = ft(d.current),
|
|
22805
|
+
const Y = ft(d.current), q = Gn(Ye(Y, "pointerup", L, !0), Ye(Y, "pointermove", W, !0));
|
|
22761
22806
|
return () => {
|
|
22762
|
-
T.clear(),
|
|
22807
|
+
T.clear(), q();
|
|
22763
22808
|
};
|
|
22764
22809
|
}, [v, C, h, f, F, g, d, P, G, s, i, y, x, w, T]), b.useEffect(() => () => {
|
|
22765
22810
|
if (R.current) {
|
|
@@ -22889,7 +22934,7 @@ function D3({
|
|
|
22889
22934
|
...s
|
|
22890
22935
|
}) {
|
|
22891
22936
|
const i = cA({ size: e });
|
|
22892
|
-
return /* @__PURE__ */ M(Q0, { ref: o, className:
|
|
22937
|
+
return /* @__PURE__ */ M(Q0, { ref: o, className: K("flex w-full min-w-0 flex-col gap-1.5", t), ...s, children: [
|
|
22893
22938
|
r && /* @__PURE__ */ M(o1, { className: i.scrub(), children: [
|
|
22894
22939
|
/* @__PURE__ */ M("span", { className: "inline-flex items-center gap-1", children: [
|
|
22895
22940
|
/* @__PURE__ */ p(xe, { name: "arrow-up-down", size: "xs", className: "rotate-90" }),
|
|
@@ -22898,9 +22943,9 @@ function D3({
|
|
|
22898
22943
|
/* @__PURE__ */ p(s1, { className: "drop-shadow-md", children: /* @__PURE__ */ p(xe, { name: "arrow-up-down", size: "sm", className: "rotate-90 text-primary" }) })
|
|
22899
22944
|
] }),
|
|
22900
22945
|
/* @__PURE__ */ M(J0, { className: i.group(), children: [
|
|
22901
|
-
!n && /* @__PURE__ */ p(n1, { className:
|
|
22946
|
+
!n && /* @__PURE__ */ p(n1, { className: K(i.stepper(), "border-r border-field-border"), children: /* @__PURE__ */ p(xe, { name: "minus", size: "sm" }) }),
|
|
22902
22947
|
/* @__PURE__ */ p(r1, { className: i.input() }),
|
|
22903
|
-
!n && /* @__PURE__ */ p(t1, { className:
|
|
22948
|
+
!n && /* @__PURE__ */ p(t1, { className: K(i.stepper(), "border-l border-field-border"), children: /* @__PURE__ */ p(xe, { name: "plus", size: "sm" }) })
|
|
22904
22949
|
] })
|
|
22905
22950
|
] });
|
|
22906
22951
|
}
|
|
@@ -23025,7 +23070,7 @@ const a1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
23025
23070
|
default: a,
|
|
23026
23071
|
name: "OTPField",
|
|
23027
23072
|
state: "value"
|
|
23028
|
-
}),
|
|
23073
|
+
}), q = b.useRef(null), ee = b.useRef([]), te = b.useRef(null), Z = b.useRef(null), ne = b.useMemo(() => ({
|
|
23029
23074
|
get current() {
|
|
23030
23075
|
return ee.current[0] ?? null;
|
|
23031
23076
|
}
|
|
@@ -23050,7 +23095,7 @@ const a1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
23050
23095
|
function Le() {
|
|
23051
23096
|
let We = O.inputRef.current?.form ?? ee.current[0]?.form ?? null;
|
|
23052
23097
|
if (m) {
|
|
23053
|
-
const ot = je(
|
|
23098
|
+
const ot = je(q.current).getElementById(m);
|
|
23054
23099
|
ot?.tagName === "FORM" && (We = ot);
|
|
23055
23100
|
}
|
|
23056
23101
|
We && typeof We.requestSubmit == "function" && We.requestSubmit();
|
|
@@ -23079,8 +23124,8 @@ const a1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
23079
23124
|
return;
|
|
23080
23125
|
}
|
|
23081
23126
|
Ee(We), Te(!0), P(!0), ot.currentTarget.select();
|
|
23082
|
-
}),
|
|
23083
|
-
ke(
|
|
23127
|
+
}), Je = de((We) => {
|
|
23128
|
+
ke(q.current, We.relatedTarget) || (H(!0), Te(!1), P(!1), G === "onBlur" && O.commit(re.current));
|
|
23084
23129
|
}), Ge = b.useCallback((We) => {
|
|
23085
23130
|
if (J != null)
|
|
23086
23131
|
return We === 0 ? J : `${J}-${We + 1}`;
|
|
@@ -23102,7 +23147,7 @@ const a1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
23102
23147
|
focusInput: Re,
|
|
23103
23148
|
queueFocusInput: Ke,
|
|
23104
23149
|
getInputId: Ge,
|
|
23105
|
-
handleInputBlur:
|
|
23150
|
+
handleInputBlur: Je,
|
|
23106
23151
|
handleInputFocus: He,
|
|
23107
23152
|
inputMode: be,
|
|
23108
23153
|
inputAriaLabelledBy: me,
|
|
@@ -23118,8 +23163,8 @@ const a1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
23118
23163
|
state: Ze,
|
|
23119
23164
|
validationType: x,
|
|
23120
23165
|
value: X
|
|
23121
|
-
}), [Ne, i, B, Re, m, Ge,
|
|
23122
|
-
ref: [n,
|
|
23166
|
+
}), [Ne, i, B, Re, m, Ge, Je, He, be, me, _, d, h, le, Ke, v, Oe, C, y, Se, Ze, x, X]), mt = ve("div", t, {
|
|
23167
|
+
ref: [n, q],
|
|
23123
23168
|
state: Ze,
|
|
23124
23169
|
props: [{
|
|
23125
23170
|
role: "group",
|
|
@@ -23268,27 +23313,27 @@ const l1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
23268
23313
|
onChange(W) {
|
|
23269
23314
|
if (W.defaultPrevented || m || I)
|
|
23270
23315
|
return;
|
|
23271
|
-
const Y = W.currentTarget.value, [
|
|
23272
|
-
if (ee && E(Y, Rn(Hn, W.nativeEvent)),
|
|
23316
|
+
const Y = W.currentTarget.value, [q, ee] = Sl(Y, S, D, T);
|
|
23317
|
+
if (ee && E(Y, Rn(Hn, W.nativeEvent)), q === "") {
|
|
23273
23318
|
Y === "" ? A(Du(_, z), we(Sn, W.nativeEvent)) : P !== "" && (W.currentTarget.value = P, W.currentTarget.select());
|
|
23274
23319
|
return;
|
|
23275
23320
|
}
|
|
23276
|
-
const te = Ib(_, z,
|
|
23321
|
+
const te = Ib(_, z, q, S, D, T), Z = A(te, we(Hn, W.nativeEvent));
|
|
23277
23322
|
if (Z != null) {
|
|
23278
|
-
const ne = Math.min(z +
|
|
23323
|
+
const ne = Math.min(z + q.length, S - 1);
|
|
23279
23324
|
h(ne, Z);
|
|
23280
23325
|
}
|
|
23281
23326
|
},
|
|
23282
23327
|
onKeyDown(W) {
|
|
23283
23328
|
if (W.defaultPrevented || m)
|
|
23284
23329
|
return;
|
|
23285
|
-
const Y = 0,
|
|
23330
|
+
const Y = 0, q = Math.max(S - 1, Y), ee = Math.min(_.length, q), te = (W.ctrlKey || W.metaKey) && !W.altKey, Z = G === "rtl", ne = Z ? "ArrowRight" : "ArrowLeft", J = Z ? "ArrowLeft" : "ArrowRight";
|
|
23286
23331
|
if (W.key === ne) {
|
|
23287
23332
|
vt(W), f(te ? Y : Math.max(Y, z - 1));
|
|
23288
23333
|
return;
|
|
23289
23334
|
}
|
|
23290
23335
|
if (W.key === J) {
|
|
23291
|
-
vt(W), f(te ? ee : Math.min(
|
|
23336
|
+
vt(W), f(te ? ee : Math.min(q, z + 1));
|
|
23292
23337
|
return;
|
|
23293
23338
|
}
|
|
23294
23339
|
if (W.key === "Home" || W.key === "ArrowUp") {
|
|
@@ -23338,12 +23383,12 @@ const l1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
23338
23383
|
return;
|
|
23339
23384
|
}
|
|
23340
23385
|
W.preventDefault();
|
|
23341
|
-
const [
|
|
23342
|
-
if (ee && E(Y, Rn(ui, W.nativeEvent)),
|
|
23386
|
+
const [q, ee] = Sl(Y, S, D, T);
|
|
23387
|
+
if (ee && E(Y, Rn(ui, W.nativeEvent)), q === "")
|
|
23343
23388
|
return;
|
|
23344
|
-
const te = A(Ib(_, z,
|
|
23389
|
+
const te = A(Ib(_, z, q, S, D, T), we(ui, W.nativeEvent));
|
|
23345
23390
|
if (te != null) {
|
|
23346
|
-
const Z = Math.min(z +
|
|
23391
|
+
const Z = Math.min(z + q.length, S - 1);
|
|
23347
23392
|
h(Z, te);
|
|
23348
23393
|
}
|
|
23349
23394
|
}
|
|
@@ -23368,13 +23413,13 @@ function V3({
|
|
|
23368
23413
|
{
|
|
23369
23414
|
ref: r,
|
|
23370
23415
|
length: e,
|
|
23371
|
-
className:
|
|
23416
|
+
className: K("flex items-center gap-2", n),
|
|
23372
23417
|
...o,
|
|
23373
23418
|
children: Array.from({ length: e }, (s, i) => /* @__PURE__ */ M("span", { className: "flex items-center gap-2", children: [
|
|
23374
23419
|
/* @__PURE__ */ p(
|
|
23375
23420
|
l1,
|
|
23376
23421
|
{
|
|
23377
|
-
className:
|
|
23422
|
+
className: K(
|
|
23378
23423
|
"grid h-control-md w-11 place-items-center rounded-md",
|
|
23379
23424
|
"border border-field-border bg-field",
|
|
23380
23425
|
"text-center font-mono text-lg tabular-nums text-primary",
|
|
@@ -23677,7 +23722,7 @@ function EA(e) {
|
|
|
23677
23722
|
setFilled: L,
|
|
23678
23723
|
name: W,
|
|
23679
23724
|
disabled: Y,
|
|
23680
|
-
setTouched:
|
|
23725
|
+
setTouched: q,
|
|
23681
23726
|
setFocused: ee,
|
|
23682
23727
|
validationMode: te,
|
|
23683
23728
|
validation: Z
|
|
@@ -23685,7 +23730,7 @@ function EA(e) {
|
|
|
23685
23730
|
id: t
|
|
23686
23731
|
}), ce = SA({
|
|
23687
23732
|
locale: H
|
|
23688
|
-
}), [me, pe] = b.useState(!1), [se, oe] = b.useState(null), le = b.useRef([]), fe = b.useRef([]), be = b.useRef(null), Q = b.useRef(null), X = b.useRef(null), re = b.useRef(null), he = b.useRef(null), ie = b.useRef(!0), ae = b.useRef(!1), ye = b.useRef(null), Ee = b.useRef(null), $e = b.useRef(null), Te = b.useRef(_u), Ne = b.useRef(null), Re = b.useRef([]), Ke = b.useRef(null), Le = Y || h, De = W ?? d, Se = u === "multiple", Oe = u === "single", He = a !== void 0 || i !== void 0,
|
|
23733
|
+
}), [me, pe] = b.useState(!1), [se, oe] = b.useState(null), le = b.useRef([]), fe = b.useRef([]), be = b.useRef(null), Q = b.useRef(null), X = b.useRef(null), re = b.useRef(null), he = b.useRef(null), ie = b.useRef(!0), ae = b.useRef(!1), ye = b.useRef(null), Ee = b.useRef(null), $e = b.useRef(null), Te = b.useRef(_u), Ne = b.useRef(null), Re = b.useRef([]), Ke = b.useRef(null), Le = Y || h, De = W ?? d, Se = u === "multiple", Oe = u === "single", He = a !== void 0 || i !== void 0, Je = v !== void 0, Ge = C !== void 0;
|
|
23689
23734
|
let Ze;
|
|
23690
23735
|
N === "always" ? Ze = "always" : Ze = N ? "input-change" : !1;
|
|
23691
23736
|
const [Ae, mt] = on({
|
|
@@ -23703,7 +23748,7 @@ function EA(e) {
|
|
|
23703
23748
|
default: c,
|
|
23704
23749
|
name: "Combobox",
|
|
23705
23750
|
state: "open"
|
|
23706
|
-
}), St = fm(v), Ue = se ?? String(lt).trim(), ht = Oe ? _n(Ae, T) : "", $t = Oe && !me && Ue !== "" && ht.length === Ue.length && ce.contains(ht, Ue), qt = $t ? "" : Ue, dn =
|
|
23751
|
+
}), St = fm(v), Ue = se ?? String(lt).trim(), ht = Oe ? _n(Ae, T) : "", $t = Oe && !me && Ue !== "" && ht.length === Ue.length && ce.contains(ht, Ue), qt = $t ? "" : Ue, dn = Je && Ge && $t, Gt = b.useMemo(() => v ? St ? v.flatMap((Ie) => Ie.items) : v : hn, [v, St]), en = b.useMemo(() => {
|
|
23707
23752
|
if (C && !dn)
|
|
23708
23753
|
return C;
|
|
23709
23754
|
if (!v)
|
|
@@ -23750,7 +23795,7 @@ function EA(e) {
|
|
|
23750
23795
|
return Ie;
|
|
23751
23796
|
}, [C, dn, v, St, qt, O, We, T, Gt]), Yt = b.useMemo(() => St ? en.flatMap((Ve) => Ve.items) : en, [en, St]), et = At(() => {
|
|
23752
23797
|
let Ie = null;
|
|
23753
|
-
return _ && Me &&
|
|
23798
|
+
return _ && Me && Je && u !== "none" && (Ie = Vu(Yt, Ae, V, Se)), new Tv({
|
|
23754
23799
|
id: J,
|
|
23755
23800
|
labelId: void 0,
|
|
23756
23801
|
selectedValue: Ae,
|
|
@@ -23879,9 +23924,9 @@ function EA(e) {
|
|
|
23879
23924
|
Ft(Ie);
|
|
23880
23925
|
}
|
|
23881
23926
|
}), Fs = de((Ie, Ve) => {
|
|
23882
|
-
if (Me !== Ie && (Ve.reason === $o &&
|
|
23927
|
+
if (Me !== Ie && (Ve.reason === $o && Je && Yt.length === 0 && !he.current && Ve.allowPropagation(), e.onOpenChange?.(Ie, Ve), !Ve.isCanceled && (Ie && rr && !vn && se !== null && (pe(!1), oe(null), lt !== "" && Ve.reason !== Hn && sr("", we(Sn, Ve.event))), !Ie && me && (Oe ? (vn || oe(Ue), Ue === "" && pe(!1)) : Se && (vn || oe(Ue), rr && or({
|
|
23883
23928
|
activeIndex: null
|
|
23884
|
-
}), (!rr || vn) && sr("", we(Sn, Ve.event)))), Ct(Ie), !Ie && rr && (Ve.reason === Mr || Ve.reason === Ti) && (
|
|
23929
|
+
}), (!rr || vn) && sr("", we(Sn, Ve.event)))), Ct(Ie), !Ie && rr && (Ve.reason === Mr || Ve.reason === Ti) && (q(!0), ee(!1), te === "onBlur")))) {
|
|
23885
23930
|
const It = u === "none" ? lt : Ae;
|
|
23886
23931
|
Z.commit(It);
|
|
23887
23932
|
}
|
|
@@ -23938,11 +23983,11 @@ function EA(e) {
|
|
|
23938
23983
|
}), [ru]), ge(function() {
|
|
23939
23984
|
if (Me || (Ke.current = null, u === "none"))
|
|
23940
23985
|
return;
|
|
23941
|
-
const Ve =
|
|
23986
|
+
const Ve = Je ? Gt : Re.current;
|
|
23942
23987
|
or({
|
|
23943
23988
|
selectedIndex: Vu(Ve, Ae, V, Se)
|
|
23944
23989
|
});
|
|
23945
|
-
}, [Me, Ae, u, Se,
|
|
23990
|
+
}, [Me, Ae, u, Se, Je, Gt, V, or]), ge(() => {
|
|
23946
23991
|
v && (Re.current = Yt, le.current.length = Yt.length);
|
|
23947
23992
|
}, [v, Yt]), ge(() => {
|
|
23948
23993
|
const Ie = Ne.current;
|
|
@@ -23957,7 +24002,7 @@ function EA(e) {
|
|
|
23957
24002
|
return;
|
|
23958
24003
|
const Lr = et.state.selectedValue, $s = et.state.selectionMode === "multiple", rR = $s && Array.isArray(Lr) ? Lr[Lr.length - 1] : Lr, Lh = et.state.selectionMode !== "none" && rR != null;
|
|
23959
24004
|
if (Lh || Zn) {
|
|
23960
|
-
const oR =
|
|
24005
|
+
const oR = Je || Ge ? Yt : Re.current;
|
|
23961
24006
|
et.set("activeIndex", Lh ? Vu(oR, Lr, et.state.isItemEqualToValue, $s) : null);
|
|
23962
24007
|
} else Ze === "always" && et.set("activeIndex", 0);
|
|
23963
24008
|
});
|
|
@@ -23965,7 +24010,7 @@ function EA(e) {
|
|
|
23965
24010
|
}
|
|
23966
24011
|
if (!Me && !vn)
|
|
23967
24012
|
return;
|
|
23968
|
-
const It =
|
|
24013
|
+
const It = Je || Ge ? Yt : Re.current, Tt = et.state.activeIndex;
|
|
23969
24014
|
if (Tt == null) {
|
|
23970
24015
|
if (Ze === "always" && It.length > 0) {
|
|
23971
24016
|
et.set("activeIndex", 0);
|
|
@@ -23985,7 +24030,7 @@ function EA(e) {
|
|
|
23985
24030
|
Ze,
|
|
23986
24031
|
Ko,
|
|
23987
24032
|
Ge,
|
|
23988
|
-
|
|
24033
|
+
Je,
|
|
23989
24034
|
Yt,
|
|
23990
24035
|
vn,
|
|
23991
24036
|
Me,
|
|
@@ -24000,10 +24045,10 @@ function EA(e) {
|
|
|
24000
24045
|
}
|
|
24001
24046
|
L(Se ? Array.isArray(Ae) && Ae.length > 0 : Ae != null);
|
|
24002
24047
|
}, [L, u, lt, Ae, Se]), b.useEffect(() => {
|
|
24003
|
-
|
|
24048
|
+
Je && Ze && Yt.length === 0 && or({
|
|
24004
24049
|
activeIndex: null
|
|
24005
24050
|
});
|
|
24006
|
-
}, [
|
|
24051
|
+
}, [Je, Ze, Yt.length, or]);
|
|
24007
24052
|
function XE(Ie) {
|
|
24008
24053
|
const Ve = B.initialValue;
|
|
24009
24054
|
return Array.isArray(Ie) && Array.isArray(Ve) ? !Mc(Ie, Ve, (It, Tt) => jn(It, Tt, V)) : Ie !== Ve;
|
|
@@ -24152,10 +24197,10 @@ function EA(e) {
|
|
|
24152
24197
|
}, [et, J, Ae, Me, Oh, tu, v, su, iu, ou, au, Ah, nu, u, De, Le, g, x, w, D, R, T, z, V, $, He, _, Ze, f]);
|
|
24153
24198
|
const ZE = ln(y, Z.inputRef), QE = b.useMemo(() => ({
|
|
24154
24199
|
query: Ue,
|
|
24155
|
-
hasItems:
|
|
24200
|
+
hasItems: Je,
|
|
24156
24201
|
filteredItems: en,
|
|
24157
24202
|
flatFilteredItems: Yt
|
|
24158
|
-
}), [Ue,
|
|
24203
|
+
}), [Ue, Je, en, Yt]), JE = b.useMemo(() => Array.isArray(Xn) ? "" : Qn(Xn, A), [Xn, A]), eR = Se && Array.isArray(Ae) && Ae.length > 0, lu = Se || u === "none" && GE ? void 0 : De, tR = b.useMemo(() => !Se || !Array.isArray(Ae) || !De ? null : Ae.map((Ie) => {
|
|
24159
24204
|
const Ve = Qn(Ie, A);
|
|
24160
24205
|
return /* @__PURE__ */ p("input", {
|
|
24161
24206
|
type: "hidden",
|
|
@@ -24218,7 +24263,7 @@ function EA(e) {
|
|
|
24218
24263
|
children: /* @__PURE__ */ p(am.Provider, {
|
|
24219
24264
|
value: na,
|
|
24220
24265
|
children: /* @__PURE__ */ p(cm.Provider, {
|
|
24221
|
-
value:
|
|
24266
|
+
value: Je,
|
|
24222
24267
|
children: /* @__PURE__ */ p(lm.Provider, {
|
|
24223
24268
|
value: QE,
|
|
24224
24269
|
children: /* @__PURE__ */ p(um.Provider, {
|
|
@@ -24337,7 +24382,7 @@ const xm = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
24337
24382
|
validation: h
|
|
24338
24383
|
} = Kt(), {
|
|
24339
24384
|
labelId: g
|
|
24340
|
-
} = sn(), x = x1(), w = !!gm(!0), v = pn(), C = dm(), S = qn(), R = ue(v, Ce.required), N = ue(v, Ce.disabled), E = ue(v, Ce.readOnly), I = ue(v, Ce.name), k = ue(v, Ce.form), T = ue(v, Ce.selectionMode), A = ue(v, Ce.autoHighlight), V = ue(v, Ce.inputProps), D = ue(v, Ce.triggerProps), _ = ue(v, Ce.open), F = ue(v, Ce.mounted), z = ue(v, Ce.selectedValue), O = ue(v, Ce.id), G = ue(v, Ce.inline), P = ue(v, Ce.modal), H = !!A, $ = y1(v), U = u || N || s, j = Dc(), B = w || G, L = !B || P, W = yt(i ?? (B ? void 0 : O)), Y = w ? uw : c, [
|
|
24385
|
+
} = sn(), x = x1(), w = !!gm(!0), v = pn(), C = dm(), S = qn(), R = ue(v, Ce.required), N = ue(v, Ce.disabled), E = ue(v, Ce.readOnly), I = ue(v, Ce.name), k = ue(v, Ce.form), T = ue(v, Ce.selectionMode), A = ue(v, Ce.autoHighlight), V = ue(v, Ce.inputProps), D = ue(v, Ce.triggerProps), _ = ue(v, Ce.open), F = ue(v, Ce.mounted), z = ue(v, Ce.selectedValue), O = ue(v, Ce.id), G = ue(v, Ce.inline), P = ue(v, Ce.modal), H = !!A, $ = y1(v), U = u || N || s, j = Dc(), B = w || G, L = !B || P, W = yt(i ?? (B ? void 0 : O)), Y = w ? uw : c, [q, ee] = b.useState(null), te = b.useRef(!1), Z = b.useRef(null), ne = b.useRef(!1), J = T === "none" && !w, ce = de((Q) => {
|
|
24341
24386
|
const X = w || v.state.inline;
|
|
24342
24387
|
X && !v.state.hasInputValue && v.state.setInputValue("", we(Et)), v.update({
|
|
24343
24388
|
inputElement: Q,
|
|
@@ -24376,7 +24421,7 @@ const xm = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
24376
24421
|
state: oe,
|
|
24377
24422
|
ref: [n, v.state.inputRef, ce],
|
|
24378
24423
|
props: [V, D, {
|
|
24379
|
-
value:
|
|
24424
|
+
value: q ?? C,
|
|
24380
24425
|
"aria-readonly": E || void 0,
|
|
24381
24426
|
"aria-required": R || void 0,
|
|
24382
24427
|
"aria-labelledby": g,
|
|
@@ -24524,7 +24569,7 @@ const S1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
24524
24569
|
W.current = me.pointerType;
|
|
24525
24570
|
}
|
|
24526
24571
|
const {
|
|
24527
|
-
reference:
|
|
24572
|
+
reference: q
|
|
24528
24573
|
} = sp(O, {
|
|
24529
24574
|
enabled: !V && !C && !v && w === "single",
|
|
24530
24575
|
listRef: y.state.labelsRef,
|
|
@@ -24558,7 +24603,7 @@ const S1 = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
24558
24603
|
return ve("button", t, {
|
|
24559
24604
|
ref: [n, te, J],
|
|
24560
24605
|
state: ne,
|
|
24561
|
-
props: [I, ee,
|
|
24606
|
+
props: [I, ee, q, {
|
|
24562
24607
|
id: j,
|
|
24563
24608
|
tabIndex: k ? 0 : -1,
|
|
24564
24609
|
role: k ? "combobox" : void 0,
|
|
@@ -25379,7 +25424,7 @@ const $1 = [
|
|
|
25379
25424
|
"has-disabled:opacity-45"
|
|
25380
25425
|
];
|
|
25381
25426
|
function z1(e) {
|
|
25382
|
-
const t =
|
|
25427
|
+
const t = Qe(null), [n, r] = Pe(null);
|
|
25383
25428
|
return {
|
|
25384
25429
|
anchorRef: t,
|
|
25385
25430
|
handleOpenChange: ((...s) => {
|
|
@@ -25408,7 +25453,7 @@ function _3({
|
|
|
25408
25453
|
...a,
|
|
25409
25454
|
onOpenChange: c,
|
|
25410
25455
|
children: [
|
|
25411
|
-
/* @__PURE__ */ M("div", { ref: l, className:
|
|
25456
|
+
/* @__PURE__ */ M("div", { ref: l, className: K(L1, "h-control-md", n), children: [
|
|
25412
25457
|
/* @__PURE__ */ p(xe, { name: "search", size: "sm", className: "shrink-0 text-tertiary" }),
|
|
25413
25458
|
/* @__PURE__ */ p(
|
|
25414
25459
|
xm,
|
|
@@ -25443,7 +25488,7 @@ function _3({
|
|
|
25443
25488
|
}
|
|
25444
25489
|
)
|
|
25445
25490
|
] }),
|
|
25446
|
-
/* @__PURE__ */ p(Cm, { children: /* @__PURE__ */ p(Sm, { sideOffset: 6, className: "z-(--z-popover) outline-none", children: /* @__PURE__ */ M(Em, { className:
|
|
25491
|
+
/* @__PURE__ */ p(Cm, { children: /* @__PURE__ */ p(Sm, { sideOffset: 6, className: "z-(--z-popover) outline-none", children: /* @__PURE__ */ M(Em, { className: K($1), style: u, children: [
|
|
25447
25492
|
/* @__PURE__ */ p(Im, { className: "px-3 py-6 text-center text-sm text-tertiary", children: t }),
|
|
25448
25493
|
/* @__PURE__ */ p(vm, { children: r })
|
|
25449
25494
|
] }) }) })
|
|
@@ -25456,7 +25501,7 @@ function F3({ className: e, children: t, ref: n, ...r }) {
|
|
|
25456
25501
|
M1,
|
|
25457
25502
|
{
|
|
25458
25503
|
ref: n,
|
|
25459
|
-
className:
|
|
25504
|
+
className: K(
|
|
25460
25505
|
"dx-tap relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2 pr-2 pl-8",
|
|
25461
25506
|
"text-sm text-secondary outline-none",
|
|
25462
25507
|
"transition-[var(--tx-colors)] duration-(--dur-instant)",
|
|
@@ -25505,12 +25550,12 @@ function L3({
|
|
|
25505
25550
|
A1,
|
|
25506
25551
|
{
|
|
25507
25552
|
ref: c,
|
|
25508
|
-
className:
|
|
25553
|
+
className: K(L1, "min-h-control-md flex-wrap gap-1.5 py-1.5", r),
|
|
25509
25554
|
children: [
|
|
25510
25555
|
/* @__PURE__ */ p(RA, { children: (d) => d.map((f, h) => /* @__PURE__ */ M(
|
|
25511
25556
|
D1,
|
|
25512
25557
|
{
|
|
25513
|
-
className:
|
|
25558
|
+
className: K(
|
|
25514
25559
|
"flex items-center gap-1.5 rounded-md bg-accent-subtle py-1 pr-1 pl-2",
|
|
25515
25560
|
"text-xs font-medium text-accent-text",
|
|
25516
25561
|
"animate-scale-in"
|
|
@@ -25541,7 +25586,7 @@ function L3({
|
|
|
25541
25586
|
]
|
|
25542
25587
|
}
|
|
25543
25588
|
),
|
|
25544
|
-
/* @__PURE__ */ p(Cm, { children: /* @__PURE__ */ p(Sm, { sideOffset: 6, className: "z-(--z-popover) outline-none", children: /* @__PURE__ */ M(Em, { className:
|
|
25589
|
+
/* @__PURE__ */ p(Cm, { children: /* @__PURE__ */ p(Sm, { sideOffset: 6, className: "z-(--z-popover) outline-none", children: /* @__PURE__ */ M(Em, { className: K($1), style: m, children: [
|
|
25545
25590
|
/* @__PURE__ */ p(Im, { className: "px-3 py-6 text-center text-sm text-tertiary", children: t }),
|
|
25546
25591
|
/* @__PURE__ */ p(vm, { children: o })
|
|
25547
25592
|
] }) }) })
|
|
@@ -25656,7 +25701,7 @@ function BA(e) {
|
|
|
25656
25701
|
default: i,
|
|
25657
25702
|
name: "Select",
|
|
25658
25703
|
state: "open"
|
|
25659
|
-
}), L = b.useRef([]), W = b.useRef([]), Y = b.useRef(null),
|
|
25704
|
+
}), L = b.useRef([]), W = b.useRef([]), Y = b.useRef(null), q = b.useRef(null), ee = b.useRef(0), te = b.useRef(null), Z = b.useRef([]), ne = b.useRef(!1), J = b.useRef(null), ce = b.useRef(null), me = b.useRef({
|
|
25660
25705
|
allowSelectedMouseUp: !1,
|
|
25661
25706
|
allowUnselectedMouseUp: !1,
|
|
25662
25707
|
dragY: 0
|
|
@@ -25739,17 +25784,17 @@ function BA(e) {
|
|
|
25739
25784
|
}), He = de((Ue) => {
|
|
25740
25785
|
const ht = B1(Ue.scrollHeight, Ue.clientHeight), $t = Dd(Ue.scrollTop, ht), qt = $t > 0, dn = $t < ht;
|
|
25741
25786
|
Q.set("scrollUpArrowVisible", qt), Q.set("scrollDownArrowVisible", dn);
|
|
25742
|
-
}),
|
|
25787
|
+
}), Je = Vv({
|
|
25743
25788
|
open: j,
|
|
25744
25789
|
onOpenChange: De,
|
|
25745
25790
|
elements: {
|
|
25746
25791
|
reference: he,
|
|
25747
25792
|
floating: ie
|
|
25748
25793
|
}
|
|
25749
|
-
}), Ge = Rs(
|
|
25794
|
+
}), Ge = Rs(Je, {
|
|
25750
25795
|
enabled: !d && !P,
|
|
25751
25796
|
event: "mousedown"
|
|
25752
|
-
}), Ze = Ns(
|
|
25797
|
+
}), Ze = Ns(Je), Ae = op(Je, {
|
|
25753
25798
|
enabled: !d && !P,
|
|
25754
25799
|
listRef: L,
|
|
25755
25800
|
activeIndex: X,
|
|
@@ -25759,7 +25804,7 @@ function BA(e) {
|
|
|
25759
25804
|
Ue === null && !j || Q.set("activeIndex", Ue);
|
|
25760
25805
|
},
|
|
25761
25806
|
focusItemOnHover: N
|
|
25762
|
-
}), mt = sp(
|
|
25807
|
+
}), mt = sp(Je, {
|
|
25763
25808
|
enabled: !d && !P && (j || !v),
|
|
25764
25809
|
listRef: W,
|
|
25765
25810
|
activeIndex: X,
|
|
@@ -25800,7 +25845,7 @@ function BA(e) {
|
|
|
25800
25845
|
});
|
|
25801
25846
|
const Ft = b.useMemo(() => ({
|
|
25802
25847
|
store: Q,
|
|
25803
|
-
floatingContext:
|
|
25848
|
+
floatingContext: Je,
|
|
25804
25849
|
required: f,
|
|
25805
25850
|
disabled: P,
|
|
25806
25851
|
readOnly: d,
|
|
@@ -25810,7 +25855,7 @@ function BA(e) {
|
|
|
25810
25855
|
setOpen: De,
|
|
25811
25856
|
listRef: L,
|
|
25812
25857
|
popupRef: Y,
|
|
25813
|
-
scrollHandlerRef:
|
|
25858
|
+
scrollHandlerRef: q,
|
|
25814
25859
|
handleScrollArrowVisibility: He,
|
|
25815
25860
|
scrollArrowsMountedCountRef: ee,
|
|
25816
25861
|
itemProps: lt,
|
|
@@ -25825,7 +25870,7 @@ function BA(e) {
|
|
|
25825
25870
|
onOpenChangeComplete: y,
|
|
25826
25871
|
alignItemWithTriggerActiveRef: pe,
|
|
25827
25872
|
initialValueRef: Re
|
|
25828
|
-
}), [Q,
|
|
25873
|
+
}), [Q, Je, f, P, d, v, N, Oe, De, lt, z, y, He]), Me = ln(x, z.inputRef), Ct = v ? void 0 : H, St = b.useMemo(() => !v || !Array.isArray($) || !H ? null : $.map((Ue) => {
|
|
25829
25874
|
const ht = Qn(Ue, S);
|
|
25830
25875
|
return /* @__PURE__ */ p("input", {
|
|
25831
25876
|
type: "hidden",
|
|
@@ -25924,20 +25969,20 @@ const HA = 400, GA = {
|
|
|
25924
25969
|
} = _t({
|
|
25925
25970
|
disabled: E,
|
|
25926
25971
|
native: a
|
|
25927
|
-
}), L = x.useStateSetter("triggerElement"), W = wt(), Y = wt(),
|
|
25972
|
+
}), L = x.useStateSetter("triggerElement"), W = wt(), Y = wt(), q = wt();
|
|
25928
25973
|
b.useEffect(() => {
|
|
25929
25974
|
if (I)
|
|
25930
|
-
return
|
|
25975
|
+
return q.start(HA, () => {
|
|
25931
25976
|
w.current.allowUnselectedMouseUp = !0, w.current.allowSelectedMouseUp = !0;
|
|
25932
25977
|
}), () => {
|
|
25933
|
-
|
|
25978
|
+
q.clear();
|
|
25934
25979
|
};
|
|
25935
25980
|
w.current = {
|
|
25936
25981
|
allowSelectedMouseUp: !1,
|
|
25937
25982
|
allowUnselectedMouseUp: !1,
|
|
25938
25983
|
dragY: 0
|
|
25939
25984
|
}, Y.clear();
|
|
25940
|
-
}, [I, w, Y,
|
|
25985
|
+
}, [I, w, Y, q]);
|
|
25941
25986
|
const ee = rn(A, {
|
|
25942
25987
|
id: P,
|
|
25943
25988
|
role: "combobox",
|
|
@@ -26119,9 +26164,9 @@ const K1 = {
|
|
|
26119
26164
|
disableAnchorTracking: g ?? W,
|
|
26120
26165
|
collisionAvoidance: y,
|
|
26121
26166
|
keepMounted: !0
|
|
26122
|
-
}),
|
|
26167
|
+
}), q = W ? "none" : Y.side, ee = W ? WA : Y.positionerStyles, te = {
|
|
26123
26168
|
open: D,
|
|
26124
|
-
side:
|
|
26169
|
+
side: q,
|
|
26125
26170
|
align: Y.align,
|
|
26126
26171
|
anchorHidden: Y.anchorHidden
|
|
26127
26172
|
};
|
|
@@ -26162,12 +26207,12 @@ const K1 = {
|
|
|
26162
26207
|
}
|
|
26163
26208
|
}), me = b.useMemo(() => ({
|
|
26164
26209
|
...Y,
|
|
26165
|
-
side:
|
|
26210
|
+
side: q,
|
|
26166
26211
|
alignItemWithTriggerActive: W,
|
|
26167
26212
|
setControlledAlignItemWithTrigger: L,
|
|
26168
26213
|
scrollUpArrowRef: U,
|
|
26169
26214
|
scrollDownArrowRef: j
|
|
26170
|
-
}), [Y,
|
|
26215
|
+
}), [Y, q, W, L]);
|
|
26171
26216
|
return /* @__PURE__ */ p(Fr, {
|
|
26172
26217
|
elementsRef: S,
|
|
26173
26218
|
labelsRef: R,
|
|
@@ -26307,7 +26352,7 @@ const jA = {
|
|
|
26307
26352
|
}
|
|
26308
26353
|
const Oe = Ke + Se + ie + re;
|
|
26309
26354
|
let He = Math.min(Ne, Oe);
|
|
26310
|
-
const
|
|
26355
|
+
const Je = Ne - he - ie, Ge = Oe - He, Ze = Re - $e;
|
|
26311
26356
|
H.style.left = `${Ot(De, Ee, Ze - fe.width)}px`, H.style.height = `${He}px`, H.style.maxHeight = "none", H.style.marginTop = `${he}px`, H.style.marginBottom = `${ie}px`, te.style.height = "100%";
|
|
26312
26357
|
const Ae = Ma(Q), mt = Ge >= Ae - Cr;
|
|
26313
26358
|
mt && (He = Math.min(Ne, fe.height) - (Ge - Ae));
|
|
@@ -26319,7 +26364,7 @@ const jA = {
|
|
|
26319
26364
|
const lt = Math.max(ae, He);
|
|
26320
26365
|
if (mt) {
|
|
26321
26366
|
const Ft = Math.max(0, Ne - Oe);
|
|
26322
|
-
H.style.top = fe.height >=
|
|
26367
|
+
H.style.top = fe.height >= Je ? "0" : `${Ft}px`, H.style.height = `${He}px`, Q.scrollTop = Ma(Q);
|
|
26323
26368
|
} else
|
|
26324
26369
|
H.style.bottom = "0", Q.scrollTop = Ge;
|
|
26325
26370
|
if (Le) {
|
|
@@ -26339,7 +26384,7 @@ const jA = {
|
|
|
26339
26384
|
}
|
|
26340
26385
|
return Ye(te, "resize", Z);
|
|
26341
26386
|
}, [m, N, H, _]);
|
|
26342
|
-
const
|
|
26387
|
+
const q = {
|
|
26343
26388
|
...$ ? {
|
|
26344
26389
|
role: "presentation",
|
|
26345
26390
|
"aria-orientation": void 0
|
|
@@ -26364,7 +26409,7 @@ const jA = {
|
|
|
26364
26409
|
ref: [n, c],
|
|
26365
26410
|
state: Y,
|
|
26366
26411
|
stateAttributesMapping: jA,
|
|
26367
|
-
props: [O,
|
|
26412
|
+
props: [O, q, Ms(G), a]
|
|
26368
26413
|
});
|
|
26369
26414
|
return /* @__PURE__ */ M(b.Fragment, {
|
|
26370
26415
|
children: [!V && bs.getElement(A), /* @__PURE__ */ p(Pi, {
|
|
@@ -26507,8 +26552,8 @@ const Z1 = /* @__PURE__ */ b.memo(/* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
26507
26552
|
return;
|
|
26508
26553
|
const W = f.state.value;
|
|
26509
26554
|
if (C) {
|
|
26510
|
-
const Y = Array.isArray(W) ? W : [],
|
|
26511
|
-
x(
|
|
26555
|
+
const Y = Array.isArray(W) ? W : [], q = T ? d1(Y, i, V) : [...Y, i];
|
|
26556
|
+
x(q, we(Ro, L));
|
|
26512
26557
|
} else
|
|
26513
26558
|
x(i, we(Ro, L)), g(!1, we(Ro, L));
|
|
26514
26559
|
}
|
|
@@ -26523,10 +26568,10 @@ const Z1 = /* @__PURE__ */ b.memo(/* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
26523
26568
|
f.set("activeIndex", D), L.key === " " && w.current && L.preventDefault();
|
|
26524
26569
|
},
|
|
26525
26570
|
onClick(L) {
|
|
26526
|
-
const W = F.current !== "touch", Y = L.nativeEvent.pointerType,
|
|
26571
|
+
const W = F.current !== "touch", Y = L.nativeEvent.pointerType, q = W && Rf(L.nativeEvent) && // Generic no-pointer `detail === 0` clicks stay tied to highlight state. Virtual
|
|
26527
26572
|
// clicks that carry browser pointer data, including an empty string from assistive
|
|
26528
26573
|
// technology, can activate unhighlighted items.
|
|
26529
|
-
(Y !== void 0 || I), ee = W && !
|
|
26574
|
+
(Y !== void 0 || I), ee = W && !q && !z.current;
|
|
26530
26575
|
z.current = !1, !(E || ee) && H(L.nativeEvent);
|
|
26531
26576
|
},
|
|
26532
26577
|
onPointerEnter(L) {
|
|
@@ -26729,7 +26774,7 @@ function Vd(e, t = []) {
|
|
|
26729
26774
|
}), t;
|
|
26730
26775
|
}
|
|
26731
26776
|
function QA(e) {
|
|
26732
|
-
const t =
|
|
26777
|
+
const t = Qe(e), n = t.current;
|
|
26733
26778
|
return n.length === e.length && n.every(
|
|
26734
26779
|
(o, s) => Object.is(o.value, e[s]?.value) && Object.is(o.label, e[s]?.label)
|
|
26735
26780
|
) || (t.current = e), t.current;
|
|
@@ -26757,7 +26802,7 @@ function Xr({
|
|
|
26757
26802
|
...a,
|
|
26758
26803
|
...c ? { items: c } : {},
|
|
26759
26804
|
children: [
|
|
26760
|
-
/* @__PURE__ */ M(H1, { ref: o, "aria-label": i, className:
|
|
26805
|
+
/* @__PURE__ */ M(H1, { ref: o, "aria-label": i, className: K(ZA({ size: e }), n), children: [
|
|
26761
26806
|
/* @__PURE__ */ p(
|
|
26762
26807
|
G1,
|
|
26763
26808
|
{
|
|
@@ -26786,7 +26831,7 @@ function Xr({
|
|
|
26786
26831
|
/* @__PURE__ */ p(W1, { children: /* @__PURE__ */ p(q1, { sideOffset: 6, className: "z-(--z-popover) outline-none", children: /* @__PURE__ */ p(
|
|
26787
26832
|
Y1,
|
|
26788
26833
|
{
|
|
26789
|
-
className:
|
|
26834
|
+
className: K(
|
|
26790
26835
|
"max-h-[min(24rem,var(--available-height))] min-w-[var(--anchor-width)] overflow-y-auto",
|
|
26791
26836
|
"dx-ground-overlay rounded-lg border border-border bg-surface-overlay p-1 shadow-lg",
|
|
26792
26837
|
"origin-[var(--transform-origin)]",
|
|
@@ -26806,7 +26851,7 @@ function pr({ className: e, children: t, ref: n, ...r }) {
|
|
|
26806
26851
|
Z1,
|
|
26807
26852
|
{
|
|
26808
26853
|
ref: n,
|
|
26809
|
-
className:
|
|
26854
|
+
className: K(
|
|
26810
26855
|
"dx-tap relative flex cursor-pointer select-none items-center gap-2 rounded-md py-2 pr-2 pl-8",
|
|
26811
26856
|
"text-sm text-secondary outline-none",
|
|
26812
26857
|
"transition-[var(--tx-colors)] duration-(--dur-instant)",
|
|
@@ -26848,7 +26893,7 @@ function tD({ label: e, children: t }) {
|
|
|
26848
26893
|
] });
|
|
26849
26894
|
}
|
|
26850
26895
|
function z3({ className: e }) {
|
|
26851
|
-
return /* @__PURE__ */ p(YA, { className:
|
|
26896
|
+
return /* @__PURE__ */ p(YA, { className: K("my-1 h-px bg-border-subtle", e) });
|
|
26852
26897
|
}
|
|
26853
26898
|
function nD({
|
|
26854
26899
|
value: e,
|
|
@@ -26870,7 +26915,7 @@ function nD({
|
|
|
26870
26915
|
type: "button",
|
|
26871
26916
|
disabled: s,
|
|
26872
26917
|
"aria-label": o,
|
|
26873
|
-
className:
|
|
26918
|
+
className: K(
|
|
26874
26919
|
"dx-tap group/status inline-flex items-center gap-1 rounded-full outline-none",
|
|
26875
26920
|
"transition-[var(--tx-colors),box-shadow,opacity] duration-(--dur-fast) ease-hover",
|
|
26876
26921
|
"hover:not-disabled:opacity-85",
|
|
@@ -26896,7 +26941,7 @@ function nD({
|
|
|
26896
26941
|
{
|
|
26897
26942
|
type: "button",
|
|
26898
26943
|
onClick: () => n(l.value),
|
|
26899
|
-
className:
|
|
26944
|
+
className: K(
|
|
26900
26945
|
"dx-tap flex items-center justify-between gap-2 rounded-md px-1.5 py-1.5",
|
|
26901
26946
|
"text-left outline-none transition-[var(--tx-colors)] duration-(--dur-instant)",
|
|
26902
26947
|
"hover:bg-surface-hover focus-visible:bg-surface-hover"
|
|
@@ -26996,7 +27041,7 @@ function Vm({
|
|
|
26996
27041
|
activates on Enter and Space, and announces as actionable — none of
|
|
26997
27042
|
which a div with an onClick does. */
|
|
26998
27043
|
defaultTagName: n ? "button" : "div",
|
|
26999
|
-
props: { className:
|
|
27044
|
+
props: { className: K(c.root(), s), children: i, ...l }
|
|
27000
27045
|
});
|
|
27001
27046
|
}
|
|
27002
27047
|
function rC({
|
|
@@ -27008,10 +27053,10 @@ function rC({
|
|
|
27008
27053
|
className: s
|
|
27009
27054
|
}) {
|
|
27010
27055
|
const i = Dm();
|
|
27011
|
-
return /* @__PURE__ */ M("div", { className:
|
|
27056
|
+
return /* @__PURE__ */ M("div", { className: K(i.header(), s), children: [
|
|
27012
27057
|
r,
|
|
27013
27058
|
/* @__PURE__ */ M("div", { className: "flex min-w-0 flex-1 flex-col gap-1", children: [
|
|
27014
|
-
e && /* @__PURE__ */ p(o, { className:
|
|
27059
|
+
e && /* @__PURE__ */ p(o, { className: K(i.title(), "text-md"), children: e }),
|
|
27015
27060
|
t && /* @__PURE__ */ p("p", { className: i.description(), children: t })
|
|
27016
27061
|
] }),
|
|
27017
27062
|
n
|
|
@@ -27019,7 +27064,7 @@ function rC({
|
|
|
27019
27064
|
}
|
|
27020
27065
|
function B3({ className: e, children: t }) {
|
|
27021
27066
|
const n = Dm();
|
|
27022
|
-
return /* @__PURE__ */ p("div", { className:
|
|
27067
|
+
return /* @__PURE__ */ p("div", { className: K(n.footer(), e), children: t });
|
|
27023
27068
|
}
|
|
27024
27069
|
const rD = Rt({
|
|
27025
27070
|
slots: {
|
|
@@ -27104,7 +27149,7 @@ function H3({
|
|
|
27104
27149
|
A `render` prop overrides it for the link case. */
|
|
27105
27150
|
defaultTagName: c ? "button" : "div",
|
|
27106
27151
|
props: {
|
|
27107
|
-
className:
|
|
27152
|
+
className: K(x.root(), d),
|
|
27108
27153
|
...g,
|
|
27109
27154
|
children: /* @__PURE__ */ M(dt, { children: [
|
|
27110
27155
|
/* @__PURE__ */ M("div", { className: x.top(), children: [
|
|
@@ -27170,27 +27215,27 @@ const Ki = {
|
|
|
27170
27215
|
tabActivationDirection: k
|
|
27171
27216
|
});
|
|
27172
27217
|
}, [A, V, k]);
|
|
27173
|
-
const D = de((Y,
|
|
27218
|
+
const D = de((Y, q) => {
|
|
27174
27219
|
const ee = Db(g, Y, i, w);
|
|
27175
|
-
|
|
27176
|
-
}), _ = de((Y,
|
|
27177
|
-
s?.(Y, we(
|
|
27220
|
+
q.activationDirection = ee, s?.(Y, q), !q.isCanceled && x(Y);
|
|
27221
|
+
}), _ = de((Y, q) => {
|
|
27222
|
+
s?.(Y, we(q, void 0, void 0, {
|
|
27178
27223
|
activationDirection: "none"
|
|
27179
27224
|
}));
|
|
27180
|
-
}), F = de((Y,
|
|
27225
|
+
}), F = de((Y, q) => (h((ee) => {
|
|
27181
27226
|
const te = new Map(ee);
|
|
27182
|
-
return te.set(Y,
|
|
27227
|
+
return te.set(Y, q), te;
|
|
27183
27228
|
}), () => {
|
|
27184
27229
|
h((ee) => {
|
|
27185
|
-
if (ee.get(Y) !==
|
|
27230
|
+
if (ee.get(Y) !== q)
|
|
27186
27231
|
return ee;
|
|
27187
27232
|
const te = new Map(ee);
|
|
27188
27233
|
return te.delete(Y), te;
|
|
27189
27234
|
});
|
|
27190
27235
|
})), z = b.useCallback((Y) => f.get(Y), [f]), O = b.useCallback((Y) => {
|
|
27191
|
-
for (const
|
|
27192
|
-
if (Y ===
|
|
27193
|
-
return
|
|
27236
|
+
for (const q of w.values())
|
|
27237
|
+
if (Y === q.value)
|
|
27238
|
+
return q.id;
|
|
27194
27239
|
}, [w]), G = b.useMemo(() => ({
|
|
27195
27240
|
getTabElementBySelectedValue: S,
|
|
27196
27241
|
getTabIdByPanelValue: O,
|
|
@@ -27224,18 +27269,18 @@ const Ki = {
|
|
|
27224
27269
|
return;
|
|
27225
27270
|
}
|
|
27226
27271
|
B.current = !0, C.current = w.keys().next().value;
|
|
27227
|
-
const
|
|
27228
|
-
if (!
|
|
27272
|
+
const q = P?.disabled, ee = P == null && g !== null;
|
|
27273
|
+
if (!q && g === U.current && (j.current = !1), j.current && q && g === U.current)
|
|
27229
27274
|
return;
|
|
27230
27275
|
const te = $.current;
|
|
27231
|
-
if (
|
|
27276
|
+
if (q || ee) {
|
|
27232
27277
|
const Z = H ?? null;
|
|
27233
27278
|
if (g === Z) {
|
|
27234
27279
|
$.current = !1;
|
|
27235
27280
|
return;
|
|
27236
27281
|
}
|
|
27237
27282
|
let ne = dg;
|
|
27238
|
-
te ? ne = fg :
|
|
27283
|
+
te ? ne = fg : q && (ne = Jy), Y(Z, ne);
|
|
27239
27284
|
return;
|
|
27240
27285
|
}
|
|
27241
27286
|
te && P != null && (_(g, fg), $.current = !1);
|
|
@@ -27678,7 +27723,7 @@ const _c = Rt({
|
|
|
27678
27723
|
});
|
|
27679
27724
|
function iD({ variant: e, className: t, children: n, ref: r, ...o }) {
|
|
27680
27725
|
const s = _c({ variant: e });
|
|
27681
|
-
return /* @__PURE__ */ p(oC, { ref: r, className:
|
|
27726
|
+
return /* @__PURE__ */ p(oC, { ref: r, className: K(s.root(), t), ...o, children: n });
|
|
27682
27727
|
}
|
|
27683
27728
|
function _b(e) {
|
|
27684
27729
|
if (e.scrollWidth <= e.clientWidth) return;
|
|
@@ -27692,7 +27737,7 @@ function _b(e) {
|
|
|
27692
27737
|
i = Math.max(0, Math.min(i, e.scrollWidth - e.clientWidth)), !(Math.abs(i - s) < 1) && e.scrollTo({ left: i, behavior: uC() ? "auto" : "smooth" });
|
|
27693
27738
|
}
|
|
27694
27739
|
function aD({ className: e, children: t, variant: n }) {
|
|
27695
|
-
const r = _c({ variant: n }), o =
|
|
27740
|
+
const r = _c({ variant: n }), o = Qe(null);
|
|
27696
27741
|
return at(() => {
|
|
27697
27742
|
const s = o.current;
|
|
27698
27743
|
if (!s) return;
|
|
@@ -27703,14 +27748,14 @@ function aD({ className: e, children: t, variant: n }) {
|
|
|
27703
27748
|
attributes: !0,
|
|
27704
27749
|
attributeFilter: ["data-active"]
|
|
27705
27750
|
}), () => i.disconnect();
|
|
27706
|
-
}, []), /* @__PURE__ */ M(cC, { ref: o, className:
|
|
27751
|
+
}, []), /* @__PURE__ */ M(cC, { ref: o, className: K(r.list(), e), children: [
|
|
27707
27752
|
t,
|
|
27708
27753
|
/* @__PURE__ */ p(aC, { className: r.indicator() })
|
|
27709
27754
|
] });
|
|
27710
27755
|
}
|
|
27711
27756
|
function lD({ className: e, children: t, variant: n, ref: r, ...o }) {
|
|
27712
27757
|
const s = _c({ variant: n });
|
|
27713
|
-
return /* @__PURE__ */ p(iC, { ref: r, className:
|
|
27758
|
+
return /* @__PURE__ */ p(iC, { ref: r, className: K(s.tab(), e), ...o, children: t });
|
|
27714
27759
|
}
|
|
27715
27760
|
function cD({ className: e, children: t, ref: n, ...r }) {
|
|
27716
27761
|
const o = _c();
|
|
@@ -27718,7 +27763,7 @@ function cD({ className: e, children: t, ref: n, ...r }) {
|
|
|
27718
27763
|
lC,
|
|
27719
27764
|
{
|
|
27720
27765
|
ref: n,
|
|
27721
|
-
className:
|
|
27766
|
+
className: K(
|
|
27722
27767
|
o.panel(),
|
|
27723
27768
|
/* Content fades and rises a little on arrival. Deliberately subtle and
|
|
27724
27769
|
quick — a panel that makes an entrance every time you switch tabs
|
|
@@ -28305,7 +28350,7 @@ function bD({ className: e, children: t, ref: n, ...r }) {
|
|
|
28305
28350
|
{
|
|
28306
28351
|
ref: n,
|
|
28307
28352
|
multiple: !0,
|
|
28308
|
-
className:
|
|
28353
|
+
className: K("flex min-w-0 flex-col", e),
|
|
28309
28354
|
...r,
|
|
28310
28355
|
children: t
|
|
28311
28356
|
}
|
|
@@ -28316,13 +28361,13 @@ function xD({ title: e, meta: t, className: n, children: r, ref: o, ...s }) {
|
|
|
28316
28361
|
gC,
|
|
28317
28362
|
{
|
|
28318
28363
|
ref: o,
|
|
28319
|
-
className:
|
|
28364
|
+
className: K("border-b border-border-subtle last:border-b-0", n),
|
|
28320
28365
|
...s,
|
|
28321
28366
|
children: [
|
|
28322
28367
|
/* @__PURE__ */ p(bC, { children: /* @__PURE__ */ M(
|
|
28323
28368
|
xC,
|
|
28324
28369
|
{
|
|
28325
|
-
className:
|
|
28370
|
+
className: K(
|
|
28326
28371
|
"group/trigger flex w-full cursor-pointer items-center gap-3 py-4 text-left",
|
|
28327
28372
|
"font-medium text-primary outline-none",
|
|
28328
28373
|
"transition-colors duration-(--dur-fast) ease-hover",
|
|
@@ -28345,7 +28390,7 @@ function xD({ title: e, meta: t, className: n, children: r, ref: o, ...s }) {
|
|
|
28345
28390
|
/* @__PURE__ */ p(
|
|
28346
28391
|
vC,
|
|
28347
28392
|
{
|
|
28348
|
-
className:
|
|
28393
|
+
className: K(
|
|
28349
28394
|
"overflow-hidden text-sm text-secondary",
|
|
28350
28395
|
"h-(--accordion-panel-height) transition-[var(--tx-colors),height,opacity] duration-(--dur-slow) ease-emphasis",
|
|
28351
28396
|
"data-starting-style:h-0 data-starting-style:opacity-0",
|
|
@@ -28379,7 +28424,7 @@ function wC(e, t = !1) {
|
|
|
28379
28424
|
}
|
|
28380
28425
|
function wD({ items: e, maxItems: t = 4, className: n }) {
|
|
28381
28426
|
const o = e.length > t ? [e[0], "ellipsis", ...e.slice(-2)] : e;
|
|
28382
|
-
return /* @__PURE__ */ p("nav", { "aria-label": "Breadcrumb", className:
|
|
28427
|
+
return /* @__PURE__ */ p("nav", { "aria-label": "Breadcrumb", className: K("min-w-0", n), children: /* @__PURE__ */ p("ol", { className: "flex min-w-0 flex-wrap items-center gap-1 text-sm", children: o.map((s, i) => {
|
|
28383
28428
|
const a = i === o.length - 1;
|
|
28384
28429
|
return /* @__PURE__ */ M("li", { className: "flex min-w-0 items-center gap-1", children: [
|
|
28385
28430
|
i > 0 && /* @__PURE__ */ p(xe, { name: "chevron-right", size: "xs", className: "shrink-0 text-tertiary" }),
|
|
@@ -28408,7 +28453,7 @@ function G3({
|
|
|
28408
28453
|
className: o
|
|
28409
28454
|
}) {
|
|
28410
28455
|
const s = wC("sm"), i = CD(e, t, s ? 0 : r);
|
|
28411
|
-
return /* @__PURE__ */ M("nav", { "aria-label": "Pagination", className:
|
|
28456
|
+
return /* @__PURE__ */ M("nav", { "aria-label": "Pagination", className: K("flex items-center gap-1", o), children: [
|
|
28412
28457
|
/* @__PURE__ */ p(
|
|
28413
28458
|
Tn,
|
|
28414
28459
|
{
|
|
@@ -28541,7 +28586,7 @@ function U3({
|
|
|
28541
28586
|
}) {
|
|
28542
28587
|
Lc(t, n);
|
|
28543
28588
|
const m = RD(t, n), d = ED(t, n), f = n === t.length - 1, g = `stepper-blocked-${Dn()}`, x = l === "vertical";
|
|
28544
|
-
return /* @__PURE__ */ M("div", { className:
|
|
28589
|
+
return /* @__PURE__ */ M("div", { className: K("flex min-w-0 flex-col gap-6", u), children: [
|
|
28545
28590
|
/* @__PURE__ */ M("div", { className: "flex flex-wrap items-center gap-3", children: [
|
|
28546
28591
|
/* @__PURE__ */ M("p", { className: "text-2xs font-semibold tracking-widest text-tertiary uppercase", children: [
|
|
28547
28592
|
"Step ",
|
|
@@ -28561,7 +28606,7 @@ function U3({
|
|
|
28561
28606
|
"ol",
|
|
28562
28607
|
{
|
|
28563
28608
|
"aria-label": e,
|
|
28564
|
-
className:
|
|
28609
|
+
className: K(
|
|
28565
28610
|
"flex min-w-0",
|
|
28566
28611
|
/* `relative` pairs with `overflow-x-auto`: each step's status carries
|
|
28567
28612
|
an `sr-only` span, which is `position: absolute`, and an
|
|
@@ -28576,7 +28621,7 @@ function U3({
|
|
|
28576
28621
|
"span",
|
|
28577
28622
|
{
|
|
28578
28623
|
"aria-hidden": "true",
|
|
28579
|
-
className:
|
|
28624
|
+
className: K(
|
|
28580
28625
|
"grid size-7 shrink-0 place-items-center rounded-full border",
|
|
28581
28626
|
"font-mono text-2xs tabular-nums",
|
|
28582
28627
|
"transition-colors duration-(--dur-base) ease-hover",
|
|
@@ -28589,7 +28634,7 @@ function U3({
|
|
|
28589
28634
|
/* @__PURE__ */ p(
|
|
28590
28635
|
"span",
|
|
28591
28636
|
{
|
|
28592
|
-
className:
|
|
28637
|
+
className: K(
|
|
28593
28638
|
"truncate text-sm font-medium",
|
|
28594
28639
|
"transition-colors duration-(--dur-fast) ease-hover",
|
|
28595
28640
|
C.label
|
|
@@ -28609,14 +28654,14 @@ function U3({
|
|
|
28609
28654
|
{
|
|
28610
28655
|
"data-status": v,
|
|
28611
28656
|
"aria-current": w === n ? "step" : void 0,
|
|
28612
|
-
className:
|
|
28657
|
+
className: K("flex min-w-0 items-center gap-3", !x && "flex-1"),
|
|
28613
28658
|
children: [
|
|
28614
28659
|
S ? /* @__PURE__ */ p(
|
|
28615
28660
|
"button",
|
|
28616
28661
|
{
|
|
28617
28662
|
type: "button",
|
|
28618
28663
|
onClick: () => r(w),
|
|
28619
|
-
className:
|
|
28664
|
+
className: K(
|
|
28620
28665
|
N,
|
|
28621
28666
|
"dx-tap cursor-pointer text-left outline-none",
|
|
28622
28667
|
"transition-colors duration-(--dur-fast) ease-hover",
|
|
@@ -28751,7 +28796,7 @@ const Qo = (e) => (t) => t ? {
|
|
|
28751
28796
|
} = OD(s), d = yt(), f = wt(), h = wt(), {
|
|
28752
28797
|
nonce: g,
|
|
28753
28798
|
disableStyleElements: x
|
|
28754
|
-
} = Xp(), [y, w] = b.useState(!1), [v, C] = b.useState(!1), [S, R] = b.useState(!1), [N, E] = b.useState(!1), [I, k] = b.useState(!1), [T, A] = b.useState(Lb), [V, D] = b.useState(Lb), [_, F] = b.useState(MD), [z, O] = b.useState(PD), G = b.useRef(null), P = b.useRef(null), H = b.useRef(null), $ = b.useRef(null), U = b.useRef(null), j = b.useRef(null), B = b.useRef(null), L = b.useRef(null), W = b.useRef(0), Y = b.useRef(0),
|
|
28799
|
+
} = Xp(), [y, w] = b.useState(!1), [v, C] = b.useState(!1), [S, R] = b.useState(!1), [N, E] = b.useState(!1), [I, k] = b.useState(!1), [T, A] = b.useState(Lb), [V, D] = b.useState(Lb), [_, F] = b.useState(MD), [z, O] = b.useState(PD), G = b.useRef(null), P = b.useRef(null), H = b.useRef(null), $ = b.useRef(null), U = b.useRef(null), j = b.useRef(null), B = b.useRef(null), L = b.useRef(null), W = b.useRef(0), Y = b.useRef(0), q = b.useRef(0), ee = b.useRef(0), te = b.useRef("vertical"), Z = b.useRef(TD), ne = b.useRef(null);
|
|
28755
28800
|
function J(he) {
|
|
28756
28801
|
const ie = he ? R : C, ae = he ? f : h;
|
|
28757
28802
|
ie(!0), ae.start(ID, () => {
|
|
@@ -28769,7 +28814,7 @@ const Qo = (e) => (t) => t ? {
|
|
|
28769
28814
|
return;
|
|
28770
28815
|
L.current = he.pointerId, W.current = he.clientY, Y.current = he.clientX, te.current = he.currentTarget.getAttribute("data-orientation");
|
|
28771
28816
|
const ie = P.current;
|
|
28772
|
-
ie && (
|
|
28817
|
+
ie && (q.current = ie.scrollTop, ee.current = ie.scrollLeft, me()), (te.current === "vertical" ? U.current : j.current)?.setPointerCapture(he.pointerId);
|
|
28773
28818
|
}), se = de((he) => {
|
|
28774
28819
|
if (he.pointerId !== L.current)
|
|
28775
28820
|
return;
|
|
@@ -28789,7 +28834,7 @@ const Qo = (e) => (t) => t ? {
|
|
|
28789
28834
|
const ae = te.current === "vertical", ye = ae ? U.current : j.current, Ee = ae ? H.current : $.current;
|
|
28790
28835
|
if (!ye || !Ee)
|
|
28791
28836
|
return;
|
|
28792
|
-
const $e = ae ? "y" : "x", Te = Wr(Ee, "padding", $e), Ne = Wr(ye, "margin", $e), Re = ae ? ye.offsetHeight : ye.offsetWidth, Le = (ae ? Ee.offsetHeight : Ee.offsetWidth) - Re - Te - Ne, De = ae ? he.clientY - W.current : he.clientX - Y.current, Se = Le <= 0 ? 0 : De / Le, Oe = ae ? ie.scrollHeight : ie.scrollWidth, He = ae ? ie.clientHeight : ie.clientWidth, Ge = (ae ?
|
|
28837
|
+
const $e = ae ? "y" : "x", Te = Wr(Ee, "padding", $e), Ne = Wr(ye, "margin", $e), Re = ae ? ye.offsetHeight : ye.offsetWidth, Le = (ae ? Ee.offsetHeight : Ee.offsetWidth) - Re - Te - Ne, De = ae ? he.clientY - W.current : he.clientX - Y.current, Se = Le <= 0 ? 0 : De / Le, Oe = ae ? ie.scrollHeight : ie.scrollWidth, He = ae ? ie.clientHeight : ie.clientWidth, Ge = (ae ? q.current : ee.current) + Se * (Oe - He);
|
|
28793
28838
|
ae ? ie.scrollTop = Ge : ie.scrollLeft = Ge, he.preventDefault(), J(ae);
|
|
28794
28839
|
});
|
|
28795
28840
|
function le(he) {
|
|
@@ -28939,21 +28984,21 @@ const EC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
28939
28984
|
const P = a.current, H = l.current, $ = c.current, U = u.current, j = m.current, B = d.current;
|
|
28940
28985
|
if (!P)
|
|
28941
28986
|
return;
|
|
28942
|
-
const L = P.scrollHeight, W = P.scrollWidth, Y = P.clientHeight,
|
|
28943
|
-
if (Z[0] = Y, Z[1] = L, Z[2] =
|
|
28987
|
+
const L = P.scrollHeight, W = P.scrollWidth, Y = P.clientHeight, q = P.clientWidth, ee = P.scrollTop, te = P.scrollLeft, Z = A.current, ne = Number.isNaN(Z[0]);
|
|
28988
|
+
if (Z[0] = Y, Z[1] = L, Z[2] = q, Z[3] = W, ne && v(!0), L === 0 || W === 0)
|
|
28944
28989
|
return;
|
|
28945
|
-
const J = VD(P), ce = J.y, me = J.x, pe =
|
|
28990
|
+
const J = VD(P), ce = J.y, me = J.x, pe = q / W, se = Y / L, oe = Math.max(0, W - q), le = Math.max(0, L - Y);
|
|
28946
28991
|
let fe = 0, be = 0;
|
|
28947
28992
|
me || (fe = Dd(k === "rtl" ? -te : te, oe), be = oe - fe);
|
|
28948
|
-
const Q = ce ? 0 : Dd(ee, le), X = ce ? 0 : le - Q, re = me ? 0 :
|
|
28993
|
+
const Q = ce ? 0 : Dd(ee, le), X = ce ? 0 : le - Q, re = me ? 0 : q, he = ce ? 0 : Y;
|
|
28949
28994
|
let ie = 0, ae = 0;
|
|
28950
28995
|
!me && !ce && (ie = H?.offsetWidth || 0, ae = $?.offsetHeight || 0);
|
|
28951
|
-
const ye = f.width === 0 && f.height === 0, Ee = ye ? ie : 0, $e = ye ? ae : 0, Te = Wr($, "padding", "x"), Ne = Wr(H, "padding", "y"), Re = Wr(j, "margin", "x"), Ke = Wr(U, "margin", "y"), Le = re - Te - Re, De = he - Ne - Ke, Se = $ ? Math.min($.offsetWidth - Ee, Le) : Le, Oe = H ? Math.min(H.offsetHeight - $e, De) : De, He = Math.max(Fd, Se * pe),
|
|
28996
|
+
const ye = f.width === 0 && f.height === 0, Ee = ye ? ie : 0, $e = ye ? ae : 0, Te = Wr($, "padding", "x"), Ne = Wr(H, "padding", "y"), Re = Wr(j, "margin", "x"), Ke = Wr(U, "margin", "y"), Le = re - Te - Re, De = he - Ne - Ke, Se = $ ? Math.min($.offsetWidth - Ee, Le) : Le, Oe = H ? Math.min(H.offsetHeight - $e, De) : De, He = Math.max(Fd, Se * pe), Je = Math.max(Fd, Oe * se);
|
|
28952
28997
|
if (g((Ae) => Da(Ae, {
|
|
28953
28998
|
width: He,
|
|
28954
|
-
height:
|
|
28999
|
+
height: Je
|
|
28955
29000
|
})), H && U) {
|
|
28956
|
-
const Ae = H.offsetHeight -
|
|
29001
|
+
const Ae = H.offsetHeight - Je - Ne - Ke, mt = Bb(U, "--scroll-area-thumb-height", ee, le, L, Je, Ae);
|
|
28957
29002
|
U.style.transform = `translate3d(0,${mt}px,0)`;
|
|
28958
29003
|
}
|
|
28959
29004
|
if ($ && j) {
|
|
@@ -29142,10 +29187,10 @@ const $d = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
29142
29187
|
const $ = k ? f.current : h.current;
|
|
29143
29188
|
if (!P || !$)
|
|
29144
29189
|
return;
|
|
29145
|
-
const U = k ? "y" : "x", j = Wr(P, "margin", U), B = Wr($, "padding", U), L = k ? P.offsetHeight : P.offsetWidth, W = $.getBoundingClientRect(), Y = k ? O.clientY - W.top - L / 2 - B + j / 2 : O.clientX - W.left - L / 2 - B + j / 2,
|
|
29190
|
+
const U = k ? "y" : "x", j = Wr(P, "margin", U), B = Wr($, "padding", U), L = k ? P.offsetHeight : P.offsetWidth, W = $.getBoundingClientRect(), Y = k ? O.clientY - W.top - L / 2 - B + j / 2 : O.clientX - W.left - L / 2 - B + j / 2, q = k ? H.scrollHeight : H.scrollWidth, ee = k ? H.clientHeight : H.clientWidth, Z = (k ? $.offsetHeight : $.offsetWidth) - L - B - j;
|
|
29146
29191
|
if (Z <= 0)
|
|
29147
29192
|
return;
|
|
29148
|
-
const ne = Y / Z, J =
|
|
29193
|
+
const ne = Y / Z, J = q - ee;
|
|
29149
29194
|
S(), k ? H.scrollTop = ne * J : A === "rtl" ? H.scrollLeft = -(1 - ne) * J : H.scrollLeft = ne * J, C({
|
|
29150
29195
|
x: H.scrollLeft,
|
|
29151
29196
|
y: H.scrollTop
|
|
@@ -29418,7 +29463,7 @@ const TC = /* @__PURE__ */ b.forwardRef(function(t, n) {
|
|
|
29418
29463
|
});
|
|
29419
29464
|
process.env.NODE_ENV !== "production" && (TC.displayName = "CollapsiblePanel");
|
|
29420
29465
|
function Gb({ orientation: e = "horizontal", label: t, className: n, ref: r }) {
|
|
29421
|
-
return t ? /* @__PURE__ */ M("div", { className:
|
|
29466
|
+
return t ? /* @__PURE__ */ M("div", { className: K("flex items-center gap-3", n), role: "separator", children: [
|
|
29422
29467
|
/* @__PURE__ */ p("span", { className: "h-px flex-1 bg-border-subtle" }),
|
|
29423
29468
|
/* @__PURE__ */ p("span", { className: "text-2xs font-semibold tracking-widest text-tertiary uppercase", children: t }),
|
|
29424
29469
|
/* @__PURE__ */ p("span", { className: "h-px flex-1 bg-border-subtle" })
|
|
@@ -29427,7 +29472,7 @@ function Gb({ orientation: e = "horizontal", label: t, className: n, ref: r }) {
|
|
|
29427
29472
|
{
|
|
29428
29473
|
ref: r,
|
|
29429
29474
|
orientation: e,
|
|
29430
|
-
className:
|
|
29475
|
+
className: K(
|
|
29431
29476
|
"shrink-0 bg-border-subtle",
|
|
29432
29477
|
e === "horizontal" ? "h-px w-full" : "h-full w-px",
|
|
29433
29478
|
n
|
|
@@ -29436,7 +29481,7 @@ function Gb({ orientation: e = "horizontal", label: t, className: n, ref: r }) {
|
|
|
29436
29481
|
);
|
|
29437
29482
|
}
|
|
29438
29483
|
function W3({ children: e, maxHeight: t, className: n }) {
|
|
29439
|
-
return /* @__PURE__ */ M(CC, { className:
|
|
29484
|
+
return /* @__PURE__ */ M(CC, { className: K("relative min-w-0", n), children: [
|
|
29440
29485
|
/* @__PURE__ */ p(
|
|
29441
29486
|
EC,
|
|
29442
29487
|
{
|
|
@@ -29449,7 +29494,7 @@ function W3({ children: e, maxHeight: t, className: n }) {
|
|
|
29449
29494
|
$d,
|
|
29450
29495
|
{
|
|
29451
29496
|
orientation: "vertical",
|
|
29452
|
-
className:
|
|
29497
|
+
className: K(
|
|
29453
29498
|
"flex w-2.5 touch-none justify-center p-0.5 select-none",
|
|
29454
29499
|
"opacity-0 transition-[var(--tx-colors),opacity] duration-(--dur-base)",
|
|
29455
29500
|
"data-hovering:opacity-100 data-scrolling:opacity-100"
|
|
@@ -29461,7 +29506,7 @@ function W3({ children: e, maxHeight: t, className: n }) {
|
|
|
29461
29506
|
$d,
|
|
29462
29507
|
{
|
|
29463
29508
|
orientation: "horizontal",
|
|
29464
|
-
className:
|
|
29509
|
+
className: K(
|
|
29465
29510
|
"flex h-2.5 touch-none flex-col justify-center p-0.5 select-none",
|
|
29466
29511
|
"opacity-0 transition-[var(--tx-colors),opacity] duration-(--dur-base)",
|
|
29467
29512
|
"data-hovering:opacity-100 data-scrolling:opacity-100"
|
|
@@ -29487,12 +29532,12 @@ function MC({
|
|
|
29487
29532
|
defaultOpen: t,
|
|
29488
29533
|
open: n,
|
|
29489
29534
|
onOpenChange: r,
|
|
29490
|
-
className:
|
|
29535
|
+
className: K("flex min-w-0 flex-col", a),
|
|
29491
29536
|
children: [
|
|
29492
29537
|
/* @__PURE__ */ M(
|
|
29493
29538
|
IC,
|
|
29494
29539
|
{
|
|
29495
|
-
className:
|
|
29540
|
+
className: K(
|
|
29496
29541
|
"group/collapsible flex cursor-pointer items-center gap-2 self-start rounded-md",
|
|
29497
29542
|
"text-sm font-medium text-secondary outline-none",
|
|
29498
29543
|
"transition-colors duration-(--dur-fast) hover:text-primary",
|
|
@@ -29514,7 +29559,7 @@ function MC({
|
|
|
29514
29559
|
/* @__PURE__ */ p(
|
|
29515
29560
|
TC,
|
|
29516
29561
|
{
|
|
29517
|
-
className:
|
|
29562
|
+
className: K(
|
|
29518
29563
|
"overflow-hidden",
|
|
29519
29564
|
"h-(--collapsible-panel-height) transition-[var(--tx-colors),height,opacity] duration-(--dur-slow) ease-emphasis",
|
|
29520
29565
|
"data-starting-style:h-0 data-starting-style:opacity-0",
|
|
@@ -29538,7 +29583,7 @@ function PC({
|
|
|
29538
29583
|
return /* @__PURE__ */ M(
|
|
29539
29584
|
"div",
|
|
29540
29585
|
{
|
|
29541
|
-
className:
|
|
29586
|
+
className: K(
|
|
29542
29587
|
"flex flex-col items-center justify-center gap-3 px-6 py-16 text-center",
|
|
29543
29588
|
s
|
|
29544
29589
|
),
|
|
@@ -29564,7 +29609,7 @@ const $D = {
|
|
|
29564
29609
|
danger: "border-danger-border bg-danger-subtle text-danger-text"
|
|
29565
29610
|
};
|
|
29566
29611
|
function j3({ items: e, className: t }) {
|
|
29567
|
-
return /* @__PURE__ */ p("ol", { className:
|
|
29612
|
+
return /* @__PURE__ */ p("ol", { className: K("flex min-w-0 flex-col", t), children: e.map((n, r) => /* @__PURE__ */ M("li", { className: "relative flex min-w-0 gap-4 pb-6 last:pb-0", children: [
|
|
29568
29613
|
r < e.length - 1 && /* @__PURE__ */ p(
|
|
29569
29614
|
"span",
|
|
29570
29615
|
{
|
|
@@ -29575,7 +29620,7 @@ function j3({ items: e, className: t }) {
|
|
|
29575
29620
|
/* @__PURE__ */ p(
|
|
29576
29621
|
"span",
|
|
29577
29622
|
{
|
|
29578
|
-
className:
|
|
29623
|
+
className: K(
|
|
29579
29624
|
"relative z-1 grid size-8 shrink-0 place-items-center rounded-full border",
|
|
29580
29625
|
$D[n.tone ?? "neutral"]
|
|
29581
29626
|
),
|
|
@@ -29616,7 +29661,7 @@ function Ub({
|
|
|
29616
29661
|
"li",
|
|
29617
29662
|
{
|
|
29618
29663
|
"data-state": e.state,
|
|
29619
|
-
className:
|
|
29664
|
+
className: K(
|
|
29620
29665
|
"flex min-w-0 items-start gap-3 rounded-lg border border-border-subtle bg-surface px-3 py-2.5",
|
|
29621
29666
|
"transition-colors duration-(--dur-fast) ease-hover"
|
|
29622
29667
|
),
|
|
@@ -29648,7 +29693,7 @@ function K3({
|
|
|
29648
29693
|
three of these would offer three landmarks — the `landmark-unique`
|
|
29649
29694
|
finding the docs' code blocks already produced once. A checklist is
|
|
29650
29695
|
content, not page structure. */
|
|
29651
|
-
/* @__PURE__ */ M("div", { role: "group", "aria-label": e, className:
|
|
29696
|
+
/* @__PURE__ */ M("div", { role: "group", "aria-label": e, className: K("flex min-w-0 flex-col gap-4", l), children: [
|
|
29652
29697
|
/* @__PURE__ */ p("div", { className: "flex flex-wrap items-center gap-2", children: c.map((d) => (
|
|
29653
29698
|
/* EVERY declared state, including the zeroes — see `tallyChecklist`. */
|
|
29654
29699
|
/* @__PURE__ */ p(OC, { option: d.option, children: `${d.count} ${d.option.label}` }, d.option.value)
|
|
@@ -29881,7 +29926,7 @@ const BD = Rt({
|
|
|
29881
29926
|
defaultVariants: { size: "md", iconOnly: !1 }
|
|
29882
29927
|
});
|
|
29883
29928
|
function $C({ size: e, iconOnly: t, className: n, children: r, ref: o, ...s }) {
|
|
29884
|
-
return /* @__PURE__ */ p(AC, { ref: o, className:
|
|
29929
|
+
return /* @__PURE__ */ p(AC, { ref: o, className: K(BD({ size: e, iconOnly: t }), n), ...s, children: r });
|
|
29885
29930
|
}
|
|
29886
29931
|
function HD({
|
|
29887
29932
|
className: e,
|
|
@@ -29894,7 +29939,7 @@ function HD({
|
|
|
29894
29939
|
VC,
|
|
29895
29940
|
{
|
|
29896
29941
|
ref: r,
|
|
29897
|
-
className:
|
|
29942
|
+
className: K(
|
|
29898
29943
|
"inline-flex items-center gap-1",
|
|
29899
29944
|
t === "segmented" && "rounded-lg border border-border bg-surface-inset p-1",
|
|
29900
29945
|
e
|
|
@@ -29909,7 +29954,7 @@ function q3({ className: e, children: t, ref: n, ...r }) {
|
|
|
29909
29954
|
FC,
|
|
29910
29955
|
{
|
|
29911
29956
|
ref: n,
|
|
29912
|
-
className:
|
|
29957
|
+
className: K(
|
|
29913
29958
|
"flex min-w-0 flex-wrap items-center gap-1 rounded-lg border border-border bg-surface p-1.5",
|
|
29914
29959
|
e
|
|
29915
29960
|
),
|
|
@@ -29922,7 +29967,7 @@ function Y3({ className: e }) {
|
|
|
29922
29967
|
return /* @__PURE__ */ p(
|
|
29923
29968
|
_C,
|
|
29924
29969
|
{
|
|
29925
|
-
className:
|
|
29970
|
+
className: K("mx-1 h-5 w-px shrink-0 self-center bg-border", e)
|
|
29926
29971
|
}
|
|
29927
29972
|
);
|
|
29928
29973
|
}
|
|
@@ -29969,7 +30014,7 @@ function UD(e, t, { isValid: n, enabled: r = !0 }) {
|
|
|
29969
30014
|
if (!e || !r) return o();
|
|
29970
30015
|
const c = qm(e, n);
|
|
29971
30016
|
return c === void 0 ? o() : c;
|
|
29972
|
-
}), a =
|
|
30017
|
+
}), a = Qe(!1);
|
|
29973
30018
|
at(() => {
|
|
29974
30019
|
if (!(!e || !r)) {
|
|
29975
30020
|
if (!a.current) {
|
|
@@ -30002,7 +30047,7 @@ function X3({
|
|
|
30002
30047
|
className: i,
|
|
30003
30048
|
ref: a
|
|
30004
30049
|
}) {
|
|
30005
|
-
const l = wC(n === !1 ? "sm" : n), c = n !== !1 && l && r, u =
|
|
30050
|
+
const l = wC(n === !1 ? "sm" : n), c = n !== !1 && l && r, u = Qe(null), m = Qe(/* @__PURE__ */ new Map()), [d, f] = Pe(0), [h, g] = Pe(!1), [x, y] = Pe(null), [w, v, C] = UD(o, {}, {
|
|
30006
30051
|
isValid: WD
|
|
30007
30052
|
}), S = Xe((F) => (m.current.set(F.id, F), f((z) => z + 1), () => {
|
|
30008
30053
|
m.current.delete(F.id), f((z) => z + 1);
|
|
@@ -30113,7 +30158,7 @@ function X3({
|
|
|
30113
30158
|
"data-direction": t,
|
|
30114
30159
|
"data-narrow": c || void 0,
|
|
30115
30160
|
"data-dragging": h || void 0,
|
|
30116
|
-
className:
|
|
30161
|
+
className: K(
|
|
30117
30162
|
/* Fills the box it is given, in BOTH axes. A layout primitive that
|
|
30118
30163
|
sizes to its content is the wrong default: panels have no
|
|
30119
30164
|
intrinsic height, so an auto-height group collapses to whatever
|
|
@@ -30155,7 +30200,7 @@ function X3({
|
|
|
30155
30200
|
{
|
|
30156
30201
|
value: E,
|
|
30157
30202
|
onValueChange: (F) => y(typeof F == "string" ? F : null),
|
|
30158
|
-
className:
|
|
30203
|
+
className: K("size-full min-h-0", i),
|
|
30159
30204
|
children: [
|
|
30160
30205
|
/* @__PURE__ */ p(aD, { children: N.map((F) => /* @__PURE__ */ p(lD, { value: F.id, children: F.label }, F.id)) }),
|
|
30161
30206
|
_
|
|
@@ -30176,7 +30221,7 @@ function Z3({
|
|
|
30176
30221
|
className: l,
|
|
30177
30222
|
ref: c
|
|
30178
30223
|
}) {
|
|
30179
|
-
const u = zC("Panel"), m =
|
|
30224
|
+
const u = zC("Panel"), m = Qe(null), { register: d } = u;
|
|
30180
30225
|
Bl(() => {
|
|
30181
30226
|
const w = m.current;
|
|
30182
30227
|
if (w)
|
|
@@ -30216,7 +30261,7 @@ function Z3({
|
|
|
30216
30261
|
"data-panel": t,
|
|
30217
30262
|
"data-collapsed": h || void 0,
|
|
30218
30263
|
style: u.narrow === "stack" ? g : x,
|
|
30219
|
-
className:
|
|
30264
|
+
className: K(
|
|
30220
30265
|
/* COLUMN, deliberately. As a row, the cross axis is vertical: content
|
|
30221
30266
|
stretches to the panel's height but takes its own WIDTH, so a panel
|
|
30222
30267
|
sized to 58% renders its content at whatever the text needed and
|
|
@@ -30253,7 +30298,7 @@ function Q3({
|
|
|
30253
30298
|
className: o,
|
|
30254
30299
|
ref: s
|
|
30255
30300
|
}) {
|
|
30256
|
-
const i = zC("PanelResizer"), a =
|
|
30301
|
+
const i = zC("PanelResizer"), a = Qe(null), l = Qe(null), c = Dn(), u = i.direction === "horizontal", d = (a.current ? i.neighbours(a.current) : null)?.[0], f = d ? i.sizes[d.id] : void 0, h = (w) => {
|
|
30257
30302
|
if (r || w.button !== 0) return;
|
|
30258
30303
|
const v = a.current;
|
|
30259
30304
|
v && (v.setPointerCapture(w.pointerId), l.current = {
|
|
@@ -30322,7 +30367,7 @@ function Q3({
|
|
|
30322
30367
|
onPointerCancel: x,
|
|
30323
30368
|
onKeyDown: y,
|
|
30324
30369
|
onDoubleClick: () => !r && i.resetLayout(),
|
|
30325
|
-
className:
|
|
30370
|
+
className: K(
|
|
30326
30371
|
"group/resizer relative flex shrink-0 items-center justify-center",
|
|
30327
30372
|
/* The visible line is 1px; the HIT AREA is not. A one-pixel drag
|
|
30328
30373
|
target is a well-known way to make a splitter feel broken, so the
|
|
@@ -30340,7 +30385,7 @@ function Q3({
|
|
|
30340
30385
|
"span",
|
|
30341
30386
|
{
|
|
30342
30387
|
"aria-hidden": !0,
|
|
30343
|
-
className:
|
|
30388
|
+
className: K(
|
|
30344
30389
|
"relative rounded-full bg-border-strong opacity-0 transition-[var(--tx-colors),opacity] duration-(--dur-fast)",
|
|
30345
30390
|
"group-hover/resizer:opacity-100 group-focus-visible/resizer:opacity-100",
|
|
30346
30391
|
"[[data-panel-group][data-dragging]_&]:opacity-100",
|
|
@@ -30520,15 +30565,15 @@ const XD = {
|
|
|
30520
30565
|
};
|
|
30521
30566
|
function Nl({ src: e, name: t, fallback: n, status: r, size: o, shape: s, className: i, ref: a }) {
|
|
30522
30567
|
const l = WC({ size: o, shape: s });
|
|
30523
|
-
return /* @__PURE__ */ M(HC, { ref: a, className:
|
|
30568
|
+
return /* @__PURE__ */ M(HC, { ref: a, className: K(l.root(), i), children: [
|
|
30524
30569
|
e && /* @__PURE__ */ p(GC, { src: e, alt: t, className: l.image() }),
|
|
30525
|
-
/* @__PURE__ */ p(UC, { className:
|
|
30526
|
-
r && /* @__PURE__ */ p("span", { className:
|
|
30570
|
+
/* @__PURE__ */ p(UC, { className: K(l.fallback(), "grid size-full place-items-center", qD(t)), children: n ?? YD(t) }),
|
|
30571
|
+
r && /* @__PURE__ */ p("span", { className: K(l.status(), XD[r]), "aria-label": r, role: "img" })
|
|
30527
30572
|
] });
|
|
30528
30573
|
}
|
|
30529
30574
|
function J3({ children: e, max: t = 4, size: n = "md", className: r }) {
|
|
30530
30575
|
const o = Array.isArray(e) ? e : [e], s = o.slice(0, t), i = o.length - s.length, a = WC({ size: n });
|
|
30531
|
-
return /* @__PURE__ */ M("div", { className:
|
|
30576
|
+
return /* @__PURE__ */ M("div", { className: K("flex items-center", r), children: [
|
|
30532
30577
|
s.map((l, c) => /* @__PURE__ */ p(
|
|
30533
30578
|
"span",
|
|
30534
30579
|
{
|
|
@@ -30541,7 +30586,7 @@ function J3({ children: e, max: t = 4, size: n = "md", className: r }) {
|
|
|
30541
30586
|
i > 0 && /* @__PURE__ */ M(
|
|
30542
30587
|
"span",
|
|
30543
30588
|
{
|
|
30544
|
-
className:
|
|
30589
|
+
className: K(
|
|
30545
30590
|
a.root(),
|
|
30546
30591
|
a.fallback(),
|
|
30547
30592
|
"relative -ml-2 bg-surface-raised text-tertiary ring-2 ring-canvas"
|
|
@@ -30602,7 +30647,7 @@ function eV({
|
|
|
30602
30647
|
ref: u
|
|
30603
30648
|
}) {
|
|
30604
30649
|
const m = ZD({ size: l });
|
|
30605
|
-
return /* @__PURE__ */ M("div", { ref: u, className:
|
|
30650
|
+
return /* @__PURE__ */ M("div", { ref: u, className: K(m.box(), c), children: [
|
|
30606
30651
|
/* @__PURE__ */ M("div", { className: m.root(), children: [
|
|
30607
30652
|
/* @__PURE__ */ p("span", { className: m.label(), children: e }),
|
|
30608
30653
|
/* @__PURE__ */ M("span", { className: "flex items-baseline gap-1.5", children: [
|
|
@@ -30610,7 +30655,7 @@ function eV({
|
|
|
30610
30655
|
n && /* @__PURE__ */ p("span", { className: m.unit(), children: n })
|
|
30611
30656
|
] }),
|
|
30612
30657
|
(r || i) && /* @__PURE__ */ M("span", { className: "flex flex-wrap items-center gap-2", children: [
|
|
30613
|
-
r && /* @__PURE__ */ M("span", { className:
|
|
30658
|
+
r && /* @__PURE__ */ M("span", { className: K(m.delta(), QD[s]), children: [
|
|
30614
30659
|
o && /* @__PURE__ */ p(xe, { name: JD[o], size: "xs" }),
|
|
30615
30660
|
r
|
|
30616
30661
|
] }),
|
|
@@ -30642,7 +30687,7 @@ const tV = Rt({
|
|
|
30642
30687
|
defaultVariants: { size: "md", align: "start" }
|
|
30643
30688
|
});
|
|
30644
30689
|
function e4({ stats: e, size: t = "md", align: n = "start", className: r, ref: o }) {
|
|
30645
|
-
return e.length === 0 ? null : /* @__PURE__ */ p("div", { ref: o, className:
|
|
30690
|
+
return e.length === 0 ? null : /* @__PURE__ */ p("div", { ref: o, className: K(tV({ size: t, align: n }), r), children: e.map((s, i) => (
|
|
30646
30691
|
/* INDEX IS THE KEY DELIBERATELY. A readout is a fixed, hand-authored
|
|
30647
30692
|
list per screen — never reordered, never filtered — so there is no
|
|
30648
30693
|
identity for a key to preserve. Keying on the label would read better
|
|
@@ -30664,7 +30709,7 @@ function t4({ values: e, sentiment: t = "neutral", className: n }) {
|
|
|
30664
30709
|
viewBox: "0 0 100 30",
|
|
30665
30710
|
preserveAspectRatio: "none",
|
|
30666
30711
|
"aria-hidden": !0,
|
|
30667
|
-
className:
|
|
30712
|
+
className: K("h-10 w-24 shrink-0 overflow-visible", nV[t], n),
|
|
30668
30713
|
children: [
|
|
30669
30714
|
/* @__PURE__ */ p(
|
|
30670
30715
|
"path",
|
|
@@ -32594,14 +32639,14 @@ function n4({
|
|
|
32594
32639
|
getFilteredRowModel: jV(),
|
|
32595
32640
|
...f ? { getRowId: f } : {}
|
|
32596
32641
|
}), C = v.getRowModel().rows, S = !i && C.length === 0, R = w.length;
|
|
32597
|
-
return /* @__PURE__ */ M("div", { className:
|
|
32642
|
+
return /* @__PURE__ */ M("div", { className: K("flex min-w-0 flex-col gap-3", d), children: [
|
|
32598
32643
|
m?.(v),
|
|
32599
32644
|
/* @__PURE__ */ p(
|
|
32600
32645
|
NP,
|
|
32601
32646
|
{
|
|
32602
32647
|
active: a && !i,
|
|
32603
32648
|
message: "Updating…",
|
|
32604
|
-
className:
|
|
32649
|
+
className: K(
|
|
32605
32650
|
"min-w-0 overflow-hidden rounded-xl border border-border bg-surface",
|
|
32606
32651
|
"shadow-sm"
|
|
32607
32652
|
),
|
|
@@ -32620,7 +32665,7 @@ function n4({
|
|
|
32620
32665
|
colSpan: E.colSpan,
|
|
32621
32666
|
style: E.column.columnDef.size ? { width: `${E.column.columnDef.size}px` } : void 0,
|
|
32622
32667
|
"aria-sort": k === "asc" ? "ascending" : k === "desc" ? "descending" : I ? "none" : void 0,
|
|
32623
|
-
className:
|
|
32668
|
+
className: K(
|
|
32624
32669
|
"h-12 whitespace-nowrap border-b border-border bg-surface-raised",
|
|
32625
32670
|
"font-semibold uppercase tracking-widest text-2xs text-tertiary",
|
|
32626
32671
|
Wu[n]
|
|
@@ -32630,7 +32675,7 @@ function n4({
|
|
|
32630
32675
|
{
|
|
32631
32676
|
type: "button",
|
|
32632
32677
|
onClick: E.column.getToggleSortingHandler(),
|
|
32633
|
-
className:
|
|
32678
|
+
className: K(
|
|
32634
32679
|
"dx-tap group/sort -mx-1.5 flex h-8 items-center gap-1.5 rounded-sm px-1.5",
|
|
32635
32680
|
"uppercase tracking-widest transition-colors duration-(--dur-fast)",
|
|
32636
32681
|
"hover:text-primary",
|
|
@@ -32643,7 +32688,7 @@ function n4({
|
|
|
32643
32688
|
{
|
|
32644
32689
|
name: "arrow-up",
|
|
32645
32690
|
size: "xs",
|
|
32646
|
-
className:
|
|
32691
|
+
className: K(
|
|
32647
32692
|
"transition-[var(--tx-colors),rotate,opacity] duration-(--dur-base) ease-snappy",
|
|
32648
32693
|
k === "desc" && "rotate-180",
|
|
32649
32694
|
!k && "opacity-0 group-hover/sort:opacity-40"
|
|
@@ -32658,7 +32703,7 @@ function n4({
|
|
|
32658
32703
|
);
|
|
32659
32704
|
}) }, N.id)) }),
|
|
32660
32705
|
/* @__PURE__ */ M("tbody", { children: [
|
|
32661
|
-
i && Array.from({ length: l }).map((N, E) => /* @__PURE__ */ p("tr", { className: Zb[n], children: Array.from({ length: R }).map((I, k) => /* @__PURE__ */ p("td", { className:
|
|
32706
|
+
i && Array.from({ length: l }).map((N, E) => /* @__PURE__ */ p("tr", { className: Zb[n], children: Array.from({ length: R }).map((I, k) => /* @__PURE__ */ p("td", { className: K("border-b border-border-subtle", Wu[n]), children: /* @__PURE__ */ p(
|
|
32662
32707
|
cw,
|
|
32663
32708
|
{
|
|
32664
32709
|
shape: "pill",
|
|
@@ -32674,7 +32719,7 @@ function n4({
|
|
|
32674
32719
|
{
|
|
32675
32720
|
"data-selected": E || void 0,
|
|
32676
32721
|
onClick: u ? () => u(N.original) : void 0,
|
|
32677
|
-
className:
|
|
32722
|
+
className: K(
|
|
32678
32723
|
Zb[n],
|
|
32679
32724
|
"border-b border-border-subtle transition-colors duration-(--dur-fast)",
|
|
32680
32725
|
"last:border-b-0",
|
|
@@ -32690,7 +32735,7 @@ function n4({
|
|
|
32690
32735
|
children: N.getVisibleCells().map((I) => /* @__PURE__ */ p(
|
|
32691
32736
|
"td",
|
|
32692
32737
|
{
|
|
32693
|
-
className:
|
|
32738
|
+
className: K("align-middle text-primary", Wu[n]),
|
|
32694
32739
|
children: Uu(I.column.columnDef.cell, I.getContext())
|
|
32695
32740
|
},
|
|
32696
32741
|
I.id
|
|
@@ -32736,7 +32781,7 @@ function r4({
|
|
|
32736
32781
|
mono: n = !1
|
|
32737
32782
|
}) {
|
|
32738
32783
|
return /* @__PURE__ */ M("div", { className: "min-w-0", children: [
|
|
32739
|
-
/* @__PURE__ */ p("div", { className:
|
|
32784
|
+
/* @__PURE__ */ p("div", { className: K("truncate font-medium text-primary", n && "font-mono text-xs"), children: e }),
|
|
32740
32785
|
t && /* @__PURE__ */ p("div", { className: "mt-0.5 truncate text-xs text-tertiary", children: t })
|
|
32741
32786
|
] });
|
|
32742
32787
|
}
|
|
@@ -33811,7 +33856,7 @@ function B_({ node: e, renderCode: t }) {
|
|
|
33811
33856
|
n,
|
|
33812
33857
|
{
|
|
33813
33858
|
id: e.id,
|
|
33814
|
-
className:
|
|
33859
|
+
className: K(
|
|
33815
33860
|
"mt-4 mb-1 scroll-mt-4 font-display font-semibold text-primary first:mt-0",
|
|
33816
33861
|
z_[e.level]
|
|
33817
33862
|
),
|
|
@@ -33849,7 +33894,7 @@ function H_({
|
|
|
33849
33894
|
n,
|
|
33850
33895
|
{
|
|
33851
33896
|
start: e.ordered && e.start !== 1 ? e.start : void 0,
|
|
33852
|
-
className:
|
|
33897
|
+
className: K(
|
|
33853
33898
|
"my-1.5 flex flex-col pl-5 marker:text-tertiary",
|
|
33854
33899
|
e.tight ? "gap-1" : "gap-2",
|
|
33855
33900
|
/* A checkbox IS the marker. Leaving the disc in place gives every task
|
|
@@ -33878,7 +33923,7 @@ function G_({
|
|
|
33878
33923
|
className: "mt-0.5 size-3.5 shrink-0 accent-accent"
|
|
33879
33924
|
}
|
|
33880
33925
|
),
|
|
33881
|
-
/* @__PURE__ */ p("span", { className:
|
|
33926
|
+
/* @__PURE__ */ p("span", { className: K("min-w-0 flex-1", e.checked && "text-tertiary line-through"), children: o })
|
|
33882
33927
|
] });
|
|
33883
33928
|
}
|
|
33884
33929
|
const lx = {
|
|
@@ -33903,7 +33948,7 @@ function U_({ node: e }) {
|
|
|
33903
33948
|
"th",
|
|
33904
33949
|
{
|
|
33905
33950
|
scope: "col",
|
|
33906
|
-
className:
|
|
33951
|
+
className: K(
|
|
33907
33952
|
"border-b border-border-subtle bg-surface-inset px-3 py-1.5 font-semibold text-primary",
|
|
33908
33953
|
lx[e.align[n] ?? "left"]
|
|
33909
33954
|
),
|
|
@@ -33914,7 +33959,7 @@ function U_({ node: e }) {
|
|
|
33914
33959
|
/* @__PURE__ */ p("tbody", { children: e.rows.map((t, n) => /* @__PURE__ */ p("tr", { children: t.map((r, o) => /* @__PURE__ */ p(
|
|
33915
33960
|
"td",
|
|
33916
33961
|
{
|
|
33917
|
-
className:
|
|
33962
|
+
className: K(
|
|
33918
33963
|
"border-b border-border-subtle px-3 py-1.5 text-secondary last:border-b-0",
|
|
33919
33964
|
lx[e.align[o] ?? "left"]
|
|
33920
33965
|
),
|
|
@@ -34888,7 +34933,7 @@ const FF = Gl(function({
|
|
|
34888
34933
|
}
|
|
34889
34934
|
});
|
|
34890
34935
|
function qu(e, t, n) {
|
|
34891
|
-
const [r, o] = Pe(t), s = e !== void 0, i =
|
|
34936
|
+
const [r, o] = Pe(t), s = e !== void 0, i = Qe(n);
|
|
34892
34937
|
i.current = n;
|
|
34893
34938
|
const a = Xe(
|
|
34894
34939
|
(l) => {
|
|
@@ -34931,7 +34976,7 @@ function yS({
|
|
|
34931
34976
|
h ?? (k && r ? "rendered" : "source"),
|
|
34932
34977
|
g
|
|
34933
34978
|
), D = T.includes(A) ? A : "source", _ = st(() => R.split(`
|
|
34934
|
-
`).length, [R]), [F, z] = Pe(!1), O =
|
|
34979
|
+
`).length, [R]), [F, z] = Pe(!1), O = Qe(void 0), G = Xe(() => {
|
|
34935
34980
|
navigator.clipboard?.writeText(R).then(() => {
|
|
34936
34981
|
z(!0), clearTimeout(O.current), O.current = setTimeout(() => z(!1), 1600);
|
|
34937
34982
|
}).catch(() => {
|
|
@@ -34965,7 +35010,7 @@ function yS({
|
|
|
34965
35010
|
F,
|
|
34966
35011
|
_
|
|
34967
35012
|
]
|
|
34968
|
-
), W = Wo(), Y = U ? c : l,
|
|
35013
|
+
), W = Wo(), Y = U ? c : l, q = Y === void 0 ? void 0 : { maxHeight: `calc(${Y} * 1lh + 2 * var(--code-pad-y))` };
|
|
34969
35014
|
return /* @__PURE__ */ p(tF, { value: L, children: /* @__PURE__ */ M(
|
|
34970
35015
|
"div",
|
|
34971
35016
|
{
|
|
@@ -34973,7 +35018,7 @@ function yS({
|
|
|
34973
35018
|
"data-code-root": "",
|
|
34974
35019
|
"data-view": D,
|
|
34975
35020
|
"data-read-only": r ? "" : void 0,
|
|
34976
|
-
className:
|
|
35021
|
+
className: K(W.root(), v),
|
|
34977
35022
|
...S,
|
|
34978
35023
|
children: [
|
|
34979
35024
|
w ?? /* @__PURE__ */ p(KF, {}),
|
|
@@ -34991,7 +35036,7 @@ function yS({
|
|
|
34991
35036
|
wrap: E,
|
|
34992
35037
|
indent: x,
|
|
34993
35038
|
placeholder: y,
|
|
34994
|
-
style:
|
|
35039
|
+
style: q,
|
|
34995
35040
|
collapsed: U,
|
|
34996
35041
|
tabLeaves: j,
|
|
34997
35042
|
onTabLeavesChange: B
|
|
@@ -35004,11 +35049,11 @@ function yS({
|
|
|
35004
35049
|
/* @__PURE__ */ p(
|
|
35005
35050
|
"div",
|
|
35006
35051
|
{
|
|
35007
|
-
className:
|
|
35052
|
+
className: K(
|
|
35008
35053
|
"flex min-w-0 flex-1",
|
|
35009
35054
|
D === "split" && "border-t border-border-subtle md:border-t-0 md:border-l"
|
|
35010
35055
|
),
|
|
35011
|
-
children: /* @__PURE__ */ p(HF, { text: R, style:
|
|
35056
|
+
children: /* @__PURE__ */ p(HF, { text: R, style: q, collapsed: U })
|
|
35012
35057
|
}
|
|
35013
35058
|
)
|
|
35014
35059
|
] }),
|
|
@@ -35049,7 +35094,7 @@ function BF({
|
|
|
35049
35094
|
onTabLeavesChange: d
|
|
35050
35095
|
}) {
|
|
35051
35096
|
const f = Wo(), h = _F(e, n), g = st(() => e.split(`
|
|
35052
|
-
`).length, [e]), x = s !== void 0 && !i, y = x ? String(s + g - 1).length : 0, w =
|
|
35097
|
+
`).length, [e]), x = s !== void 0 && !i, y = x ? String(s + g - 1).length : 0, w = Qe(m), v = (S) => {
|
|
35053
35098
|
w.current = S, d(S);
|
|
35054
35099
|
}, C = (S) => {
|
|
35055
35100
|
const R = S.currentTarget;
|
|
@@ -35084,7 +35129,7 @@ function BF({
|
|
|
35084
35129
|
{
|
|
35085
35130
|
"data-code-scroller": "",
|
|
35086
35131
|
style: c,
|
|
35087
|
-
className:
|
|
35132
|
+
className: K(f.scroller(), u && "overflow-hidden"),
|
|
35088
35133
|
...o ? { tabIndex: 0, role: "group", "aria-label": r } : {},
|
|
35089
35134
|
children: /* @__PURE__ */ M(
|
|
35090
35135
|
"div",
|
|
@@ -35092,15 +35137,15 @@ function BF({
|
|
|
35092
35137
|
"data-code-layers": "",
|
|
35093
35138
|
...x ? { "data-gutter": "" } : {},
|
|
35094
35139
|
style: { "--code-digits": y },
|
|
35095
|
-
className:
|
|
35140
|
+
className: K(f.layers(), i ? "w-full" : "w-max min-w-full"),
|
|
35096
35141
|
children: [
|
|
35097
|
-
x && /* @__PURE__ */ p("div", { "data-code-gutter": "", "aria-hidden": "true", className:
|
|
35142
|
+
x && /* @__PURE__ */ p("div", { "data-code-gutter": "", "aria-hidden": "true", className: K(f.gutter(), "dx-code-nowrap"), children: /* @__PURE__ */ p($F, { count: g, from: s }) }),
|
|
35098
35143
|
/* @__PURE__ */ p(
|
|
35099
35144
|
"pre",
|
|
35100
35145
|
{
|
|
35101
35146
|
"data-code-pre": "",
|
|
35102
35147
|
"aria-hidden": o ? void 0 : "true",
|
|
35103
|
-
className:
|
|
35148
|
+
className: K(
|
|
35104
35149
|
f.pre(),
|
|
35105
35150
|
i ? "dx-code-wrap min-w-0 flex-1" : "dx-code-nowrap w-max shrink-0"
|
|
35106
35151
|
),
|
|
@@ -35126,7 +35171,7 @@ function BF({
|
|
|
35126
35171
|
"data-enable-grammarly": "false",
|
|
35127
35172
|
wrap: i ? "soft" : "off",
|
|
35128
35173
|
style: { left: "var(--code-gutter-w)" },
|
|
35129
|
-
className:
|
|
35174
|
+
className: K(f.textarea(), i ? "dx-code-wrap" : "dx-code-nowrap")
|
|
35130
35175
|
}
|
|
35131
35176
|
)
|
|
35132
35177
|
]
|
|
@@ -35146,7 +35191,7 @@ function HF({
|
|
|
35146
35191
|
{
|
|
35147
35192
|
"data-code-preview": "",
|
|
35148
35193
|
style: t,
|
|
35149
|
-
className:
|
|
35194
|
+
className: K(r.rendered(), n && "overflow-hidden"),
|
|
35150
35195
|
children: /* @__PURE__ */ p(
|
|
35151
35196
|
jc,
|
|
35152
35197
|
{
|
|
@@ -35178,11 +35223,11 @@ function HF({
|
|
|
35178
35223
|
}
|
|
35179
35224
|
function vS({ children: e, className: t }) {
|
|
35180
35225
|
const n = Wo();
|
|
35181
|
-
return /* @__PURE__ */ p("div", { "data-code-toolbar": "", className:
|
|
35226
|
+
return /* @__PURE__ */ p("div", { "data-code-toolbar": "", className: K(n.toolbar(), t), children: e });
|
|
35182
35227
|
}
|
|
35183
35228
|
function wS({ className: e }) {
|
|
35184
35229
|
const { filename: t, language: n } = Yi("CodeEditorCaption"), r = Wo();
|
|
35185
|
-
return /* @__PURE__ */ p("span", { "data-code-caption": "", className:
|
|
35230
|
+
return /* @__PURE__ */ p("span", { "data-code-caption": "", className: K(r.caption(), e), children: t ?? n ?? "code" });
|
|
35186
35231
|
}
|
|
35187
35232
|
function GF({ className: e }) {
|
|
35188
35233
|
const { copy: t, copied: n } = Yi("CodeEditorCopyButton"), r = Wo();
|
|
@@ -35193,7 +35238,7 @@ function GF({ className: e }) {
|
|
|
35193
35238
|
onClick: t,
|
|
35194
35239
|
"data-code-copy": "",
|
|
35195
35240
|
"aria-label": n ? "Copied" : "Copy code",
|
|
35196
|
-
className:
|
|
35241
|
+
className: K(r.control(), e),
|
|
35197
35242
|
children: /* @__PURE__ */ p(xe, { name: n ? "check" : "copy", size: "xs" })
|
|
35198
35243
|
}
|
|
35199
35244
|
) });
|
|
@@ -35208,7 +35253,7 @@ function UF({ className: e }) {
|
|
|
35208
35253
|
pressed: t,
|
|
35209
35254
|
onPressedChange: n,
|
|
35210
35255
|
"aria-label": "Soft wrap",
|
|
35211
|
-
className:
|
|
35256
|
+
className: K("dx-tap shrink-0", e),
|
|
35212
35257
|
children: /* @__PURE__ */ p(xe, { name: "corner-down-left", size: "xs" })
|
|
35213
35258
|
}
|
|
35214
35259
|
) });
|
|
@@ -35232,7 +35277,7 @@ function jF({ className: e }) {
|
|
|
35232
35277
|
},
|
|
35233
35278
|
"aria-label": "View",
|
|
35234
35279
|
"data-code-views": "",
|
|
35235
|
-
className:
|
|
35280
|
+
className: K("shrink-0 p-0.5", e),
|
|
35236
35281
|
children: r.map((o) => /* @__PURE__ */ p(Pn, { content: hx[o], children: /* @__PURE__ */ p(
|
|
35237
35282
|
$C,
|
|
35238
35283
|
{
|
|
@@ -35240,7 +35285,7 @@ function jF({ className: e }) {
|
|
|
35240
35285
|
iconOnly: !0,
|
|
35241
35286
|
value: o,
|
|
35242
35287
|
"aria-label": hx[o],
|
|
35243
|
-
className:
|
|
35288
|
+
className: K("dx-tap shrink-0", o === "split" && "hidden md:inline-flex"),
|
|
35244
35289
|
children: /* @__PURE__ */ p(xe, { name: WF[o], size: "xs" })
|
|
35245
35290
|
}
|
|
35246
35291
|
) }, o))
|
|
@@ -37201,7 +37246,7 @@ function hL(e, t) {
|
|
|
37201
37246
|
} : null;
|
|
37202
37247
|
}
|
|
37203
37248
|
function gL(e, t) {
|
|
37204
|
-
const [n, r] = Pe(0), o =
|
|
37249
|
+
const [n, r] = Pe(0), o = Qe(null);
|
|
37205
37250
|
return at(() => {
|
|
37206
37251
|
if (!e) return;
|
|
37207
37252
|
const s = e.root.ownerDocument, i = () => r((a) => a + 1);
|
|
@@ -37284,7 +37329,7 @@ function bL({ surface: e, state: t, run: n, container: r }) {
|
|
|
37284
37329
|
"aria-label": `Line type — currently ${m ? xL(m) : "text"}`,
|
|
37285
37330
|
onMouseDown: (d) => d.preventDefault(),
|
|
37286
37331
|
onClick: () => c(!0),
|
|
37287
|
-
className:
|
|
37332
|
+
className: K(
|
|
37288
37333
|
/* Naming a transition REPLACES the global colour one, so fading
|
|
37289
37334
|
only `opacity` here left this control cutting between themes —
|
|
37290
37335
|
and snapping to `text-secondary` on hover — while the line it
|
|
@@ -37327,7 +37372,7 @@ function yL({ surface: e, state: t, run: n, container: r }) {
|
|
|
37327
37372
|
}, [e, r, o, t.source]), !o || s === null || !e ? null : /* @__PURE__ */ M(
|
|
37328
37373
|
"div",
|
|
37329
37374
|
{
|
|
37330
|
-
className:
|
|
37375
|
+
className: K(
|
|
37331
37376
|
"absolute left-8 z-20 flex items-center gap-1 rounded-lg border border-border-subtle",
|
|
37332
37377
|
"bg-surface px-1.5 py-1 shadow-lg"
|
|
37333
37378
|
),
|
|
@@ -37359,7 +37404,7 @@ function vL({
|
|
|
37359
37404
|
s.key === "Enter" && (s.preventDefault(), n(o({ target: s.target.value })));
|
|
37360
37405
|
},
|
|
37361
37406
|
onBlur: (s) => n(o({ target: s.target.value })),
|
|
37362
|
-
className:
|
|
37407
|
+
className: K(
|
|
37363
37408
|
"h-7 w-56 rounded border border-border-subtle bg-surface-inset px-2 text-sm",
|
|
37364
37409
|
"text-primary outline-none focus:border-accent"
|
|
37365
37410
|
)
|
|
@@ -37398,7 +37443,7 @@ function wL({ language: e, run: t }) {
|
|
|
37398
37443
|
value: e,
|
|
37399
37444
|
onMouseDown: (r) => r.stopPropagation(),
|
|
37400
37445
|
onChange: (r) => t(pL(r.target.value)),
|
|
37401
|
-
className:
|
|
37446
|
+
className: K(
|
|
37402
37447
|
"h-7 rounded border border-border-subtle bg-surface-inset px-1.5 text-sm",
|
|
37403
37448
|
"text-primary outline-none focus:border-accent"
|
|
37404
37449
|
),
|
|
@@ -37564,7 +37609,7 @@ function c4({
|
|
|
37564
37609
|
className: a,
|
|
37565
37610
|
minHeight: l = 240
|
|
37566
37611
|
}) {
|
|
37567
|
-
const c =
|
|
37612
|
+
const c = Qe(null), u = Qe(null), [m, d] = Pe(e.length === 0), f = Dn(), [h, g] = Pe(null), [x, y] = Pe(0), [w, v] = Pe(null), C = Qe(t);
|
|
37568
37613
|
C.current = t, at(() => {
|
|
37569
37614
|
if (!c.current) return;
|
|
37570
37615
|
const E = new lL(c.current, e, {
|
|
@@ -37603,7 +37648,7 @@ function c4({
|
|
|
37603
37648
|
}
|
|
37604
37649
|
return [...E.entries()];
|
|
37605
37650
|
}, []);
|
|
37606
|
-
return /* @__PURE__ */ M("div", { className:
|
|
37651
|
+
return /* @__PURE__ */ M("div", { className: K("flex flex-col rounded-lg border border-border-subtle bg-surface", a), children: [
|
|
37607
37652
|
/* @__PURE__ */ p("span", { id: f, className: o ? "sr-only" : "px-3 pt-2 text-sm font-medium text-secondary", children: r }),
|
|
37608
37653
|
!n && /* @__PURE__ */ M(
|
|
37609
37654
|
"div",
|
|
@@ -38225,7 +38270,7 @@ function u4(e) {
|
|
|
38225
38270
|
return t;
|
|
38226
38271
|
}
|
|
38227
38272
|
function HL(e) {
|
|
38228
|
-
const t =
|
|
38273
|
+
const t = Qe(null);
|
|
38229
38274
|
t.current ??= new AL(e);
|
|
38230
38275
|
const n = t.current;
|
|
38231
38276
|
return n.setCallbacks(e), at(() => _L(n), [n]), n;
|
|
@@ -38239,7 +38284,7 @@ function GL(e, t) {
|
|
|
38239
38284
|
if (l)
|
|
38240
38285
|
return e.registerItem({ id: n, container: r, index: o, element: l });
|
|
38241
38286
|
}, [e, l, n, r, o]);
|
|
38242
|
-
const d = `${a?.distance ?? ""}/${a?.delay ?? ""}/${a?.tolerance ?? ""}`, f =
|
|
38287
|
+
const d = `${a?.distance ?? ""}/${a?.delay ?? ""}/${a?.tolerance ?? ""}`, f = Qe(a);
|
|
38243
38288
|
f.current = a, at(() => {
|
|
38244
38289
|
if (!u || i) return;
|
|
38245
38290
|
const g = VL(e, u, {
|
|
@@ -38292,9 +38337,9 @@ function nd(e, t, n, r) {
|
|
|
38292
38337
|
};
|
|
38293
38338
|
}
|
|
38294
38339
|
function jL(e, t = {}) {
|
|
38295
|
-
const [n, r] = Pe(""), o =
|
|
38340
|
+
const [n, r] = Pe(""), o = Qe(t);
|
|
38296
38341
|
o.current = t;
|
|
38297
|
-
const s =
|
|
38342
|
+
const s = Qe(null), i = Qe(null), a = Qe(null), l = Qe(0);
|
|
38298
38343
|
return at(() => {
|
|
38299
38344
|
function c() {
|
|
38300
38345
|
i.current !== null && (window.clearTimeout(i.current), i.current = null, a.current = null);
|
|
@@ -38667,7 +38712,7 @@ function mE(e, t) {
|
|
|
38667
38712
|
const nz = () => {
|
|
38668
38713
|
};
|
|
38669
38714
|
function rz(e) {
|
|
38670
|
-
const t =
|
|
38715
|
+
const t = Qe([]), n = Qe([]), r = Qe(null), o = Xe(() => {
|
|
38671
38716
|
const i = t.current;
|
|
38672
38717
|
if (i.length === 0) return;
|
|
38673
38718
|
const a = new Set(n.current), l = i.filter((f) => !a.has(f.id));
|
|
@@ -38735,7 +38780,7 @@ function Ch({
|
|
|
38735
38780
|
[u, m, d]
|
|
38736
38781
|
);
|
|
38737
38782
|
at(() => zL(i, f), [i, f]);
|
|
38738
|
-
const h =
|
|
38783
|
+
const h = Qe({
|
|
38739
38784
|
item: /* @__PURE__ */ new Map(),
|
|
38740
38785
|
container: /* @__PURE__ */ new Map()
|
|
38741
38786
|
}), g = Xe(
|
|
@@ -38748,7 +38793,7 @@ function Ch({
|
|
|
38748
38793
|
() => ({ session: i, instructionsId: l, renderCarried: n, registerLabel: g, census: a }),
|
|
38749
38794
|
[i, l, n, g, a]
|
|
38750
38795
|
);
|
|
38751
|
-
return /* @__PURE__ */ M("div", { className:
|
|
38796
|
+
return /* @__PURE__ */ M("div", { className: K(c.root(), r), children: [
|
|
38752
38797
|
/* @__PURE__ */ p(qL, { id: l, strings: e }),
|
|
38753
38798
|
/* @__PURE__ */ p(
|
|
38754
38799
|
KL,
|
|
@@ -38781,7 +38826,7 @@ function Sh({
|
|
|
38781
38826
|
ref: a,
|
|
38782
38827
|
"data-dnd-container": e,
|
|
38783
38828
|
"data-dnd-over": l ? "true" : void 0,
|
|
38784
|
-
className:
|
|
38829
|
+
className: K(u.container(), r),
|
|
38785
38830
|
children: /* @__PURE__ */ M(XL, { value: d, children: [
|
|
38786
38831
|
o,
|
|
38787
38832
|
m && m.markerAt !== null && m.restCount === 0 && /* @__PURE__ */ p(gE, { shift: m, at: m.restCount })
|
|
@@ -38817,11 +38862,11 @@ function Eh({
|
|
|
38817
38862
|
ref: d,
|
|
38818
38863
|
"data-dnd-item": e,
|
|
38819
38864
|
"data-dnd-dragging": g ? "true" : void 0,
|
|
38820
|
-
className:
|
|
38865
|
+
className: K(x.item(), r),
|
|
38821
38866
|
children: /* @__PURE__ */ p(
|
|
38822
38867
|
"div",
|
|
38823
38868
|
{
|
|
38824
|
-
className:
|
|
38869
|
+
className: K(
|
|
38825
38870
|
x.shift(),
|
|
38826
38871
|
/* THE HOLE, never the card. The card is always somewhere else while
|
|
38827
38872
|
it is carried — `CarriedCard` below — so this one is invisible,
|
|
@@ -38895,13 +38940,13 @@ function iz({ label: e, className: t, children: n }) {
|
|
|
38895
38940
|
const C = v.split(/\s+/).filter((S) => S && S !== r);
|
|
38896
38941
|
C.length ? x.setAttribute("aria-describedby", C.join(" ")) : x.removeAttribute("aria-describedby");
|
|
38897
38942
|
};
|
|
38898
|
-
}, [m, c, r, n]), c ? /* @__PURE__ */ p("div", { className:
|
|
38943
|
+
}, [m, c, r, n]), c ? /* @__PURE__ */ p("div", { className: K(u.surface(), t), children: n }) : /* @__PURE__ */ p(
|
|
38899
38944
|
"div",
|
|
38900
38945
|
{
|
|
38901
38946
|
ref: g,
|
|
38902
38947
|
"data-dnd-handle": i,
|
|
38903
38948
|
"data-dnd-surface": "",
|
|
38904
|
-
className:
|
|
38949
|
+
className: K(u.surface(), t),
|
|
38905
38950
|
...f ? {
|
|
38906
38951
|
role: "button",
|
|
38907
38952
|
tabIndex: 0,
|
|
@@ -38916,7 +38961,7 @@ function hE({ label: e, className: t, children: n }) {
|
|
|
38916
38961
|
const { instructionsId: r, census: o } = Jc("DragDropHandle"), { axis: s } = wh("DragDropHandle"), { id: i, setHandleRef: a, label: l } = dE("DragDropHandle"), c = uE();
|
|
38917
38962
|
at(() => c ? void 0 : o.source(i), [o, i, c]);
|
|
38918
38963
|
const u = jo({ axis: s }), m = n ?? /* @__PURE__ */ p(xe, { name: "grip-vertical", size: "sm" });
|
|
38919
|
-
return c ? /* @__PURE__ */ p("span", { "aria-hidden": "true", className:
|
|
38964
|
+
return c ? /* @__PURE__ */ p("span", { "aria-hidden": "true", className: K(u.handle(), t), children: m }) : /* @__PURE__ */ p(
|
|
38920
38965
|
"span",
|
|
38921
38966
|
{
|
|
38922
38967
|
ref: a,
|
|
@@ -38925,7 +38970,7 @@ function hE({ label: e, className: t, children: n }) {
|
|
|
38925
38970
|
tabIndex: 0,
|
|
38926
38971
|
"aria-label": e ?? `Reorder ${l ?? i}`,
|
|
38927
38972
|
"aria-describedby": r,
|
|
38928
|
-
className:
|
|
38973
|
+
className: K(u.handle(), t),
|
|
38929
38974
|
children: m
|
|
38930
38975
|
}
|
|
38931
38976
|
);
|
|
@@ -39120,7 +39165,7 @@ function d4({
|
|
|
39120
39165
|
children: /* @__PURE__ */ p(
|
|
39121
39166
|
"div",
|
|
39122
39167
|
{
|
|
39123
|
-
className:
|
|
39168
|
+
className: K(m.root(), c),
|
|
39124
39169
|
tabIndex: 0,
|
|
39125
39170
|
role: "group",
|
|
39126
39171
|
"aria-label": e,
|
|
@@ -39222,7 +39267,7 @@ function xE({
|
|
|
39222
39267
|
const u = t === "tile", m = e.status === "uploading", d = e.status === "error", f = e.thumbnailUrl ?? (ii(e) === "image" ? e.url : void 0), h = st(() => d ? e.error ?? "Upload failed" : m ? e.progress === void 0 ? "Uploading…" : `${Math.round(e.progress)}%` : n !== void 0 ? n : e.size === void 0 ? "" : bE(e.size), [d, m, n, e.error, e.progress, e.size]), g = /* @__PURE__ */ M(
|
|
39223
39268
|
"div",
|
|
39224
39269
|
{
|
|
39225
|
-
className:
|
|
39270
|
+
className: K(
|
|
39226
39271
|
/* Above the full-card trigger, so a button click is a button click.
|
|
39227
39272
|
z-index rather than stopPropagation: propagation still fires the
|
|
39228
39273
|
card's handler on keyboard activation, which is where that trick
|
|
@@ -39260,7 +39305,7 @@ function xE({
|
|
|
39260
39305
|
ref: c,
|
|
39261
39306
|
"data-attachment": e.id,
|
|
39262
39307
|
"data-status": e.status ?? "ready",
|
|
39263
|
-
className:
|
|
39308
|
+
className: K(
|
|
39264
39309
|
/* `dx-ground-raised` so the action buttons inside mix their hover from
|
|
39265
39310
|
the tile they sit on, not from the page behind it. */
|
|
39266
39311
|
"dx-ground-raised group/attachment relative isolate overflow-hidden border bg-surface-raised",
|
|
@@ -39298,21 +39343,21 @@ function xE({
|
|
|
39298
39343
|
) : /* @__PURE__ */ p(xe, { name: ii(e), size: "lg", className: "text-tertiary" }) }),
|
|
39299
39344
|
/* @__PURE__ */ M("div", { className: "pointer-events-none absolute inset-x-0 bottom-0 z-0 flex flex-col gap-0.5 bg-linear-to-t from-black/72 to-transparent px-2.5 pt-6 pb-2", children: [
|
|
39300
39345
|
/* @__PURE__ */ p("span", { className: "truncate text-2xs font-semibold text-white", children: e.name }),
|
|
39301
|
-
h !== "" && /* @__PURE__ */ p("span", { className:
|
|
39346
|
+
h !== "" && /* @__PURE__ */ p("span", { className: K("truncate text-2xs", d ? "text-danger" : "text-white/70"), children: h })
|
|
39302
39347
|
] }),
|
|
39303
39348
|
g
|
|
39304
39349
|
] }) : /* @__PURE__ */ M(dt, { children: [
|
|
39305
39350
|
/* @__PURE__ */ p("div", { className: "relative grid size-9 shrink-0 place-items-center overflow-hidden rounded-md bg-surface-inset", children: f ? /* @__PURE__ */ p("img", { src: f, alt: "", loading: "lazy", className: "size-full object-cover" }) : /* @__PURE__ */ p(xe, { name: ii(e), size: "sm", className: "text-tertiary" }) }),
|
|
39306
39351
|
/* @__PURE__ */ M("div", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
39307
39352
|
/* @__PURE__ */ p("span", { className: "truncate text-sm font-medium text-primary", children: e.name }),
|
|
39308
|
-
h !== "" && /* @__PURE__ */ p("span", { className:
|
|
39353
|
+
h !== "" && /* @__PURE__ */ p("span", { className: K("truncate text-2xs", d ? "text-danger-text" : "text-tertiary"), children: h })
|
|
39309
39354
|
] }),
|
|
39310
39355
|
g
|
|
39311
39356
|
] }),
|
|
39312
39357
|
m && /* @__PURE__ */ p("div", { className: "pointer-events-none absolute inset-x-0 bottom-0 z-20 h-0.5 bg-border-subtle", children: /* @__PURE__ */ p(
|
|
39313
39358
|
"div",
|
|
39314
39359
|
{
|
|
39315
|
-
className:
|
|
39360
|
+
className: K(
|
|
39316
39361
|
"h-full bg-accent transition-[var(--tx-colors),width] duration-(--dur-slow) ease-(--ease-standard)",
|
|
39317
39362
|
e.progress === void 0 && "w-1/3 animate-sweep"
|
|
39318
39363
|
),
|
|
@@ -39338,7 +39383,7 @@ function Ix({
|
|
|
39338
39383
|
onClick: n,
|
|
39339
39384
|
disabled: r,
|
|
39340
39385
|
"aria-label": t,
|
|
39341
|
-
className:
|
|
39386
|
+
className: K(
|
|
39342
39387
|
"dx-tap grid size-6 shrink-0 cursor-pointer place-items-center rounded-md outline-none",
|
|
39343
39388
|
"transition-[var(--tx-colors),opacity] duration-(--dur-fast)",
|
|
39344
39389
|
"focus-visible:ring-2 focus-visible:ring-focus-ring",
|
|
@@ -39397,7 +39442,7 @@ function yE({
|
|
|
39397
39442
|
return /* @__PURE__ */ M(
|
|
39398
39443
|
"div",
|
|
39399
39444
|
{
|
|
39400
|
-
className:
|
|
39445
|
+
className: K(
|
|
39401
39446
|
t === "tile" ? "flex flex-wrap gap-2" : "flex flex-col gap-1.5",
|
|
39402
39447
|
a
|
|
39403
39448
|
),
|
|
@@ -39417,7 +39462,7 @@ function yE({
|
|
|
39417
39462
|
c > 0 && /* @__PURE__ */ M(
|
|
39418
39463
|
"div",
|
|
39419
39464
|
{
|
|
39420
|
-
className:
|
|
39465
|
+
className: K(
|
|
39421
39466
|
"grid place-items-center rounded-xl border border-dashed border-border text-sm font-medium text-tertiary",
|
|
39422
39467
|
t === "tile" ? "aspect-4/3 w-36 shrink-0" : "h-9 w-full"
|
|
39423
39468
|
),
|
|
@@ -39452,7 +39497,7 @@ function dz({
|
|
|
39452
39497
|
className: x,
|
|
39453
39498
|
ref: y
|
|
39454
39499
|
}) {
|
|
39455
|
-
const w =
|
|
39500
|
+
const w = Qe(null), [v, C] = Pe(!1), S = !c && !i && (e.trim().length > 0 || r.length > 0), R = () => {
|
|
39456
39501
|
S && n(e, r);
|
|
39457
39502
|
}, N = (k) => {
|
|
39458
39503
|
k.key !== "Enter" || k.shiftKey || k.nativeEvent.isComposing || (k.preventDefault(), R());
|
|
@@ -39465,7 +39510,7 @@ function dz({
|
|
|
39465
39510
|
const T = [...k.dataTransfer.files];
|
|
39466
39511
|
T.length > 0 && o(T);
|
|
39467
39512
|
};
|
|
39468
|
-
return /* @__PURE__ */ M("div", { className:
|
|
39513
|
+
return /* @__PURE__ */ M("div", { className: K("flex flex-col gap-1.5", x), children: [
|
|
39469
39514
|
/* @__PURE__ */ M(
|
|
39470
39515
|
"div",
|
|
39471
39516
|
{
|
|
@@ -39477,7 +39522,7 @@ function dz({
|
|
|
39477
39522
|
},
|
|
39478
39523
|
onDrop: I,
|
|
39479
39524
|
"data-dragging": v || void 0,
|
|
39480
|
-
className:
|
|
39525
|
+
className: K(
|
|
39481
39526
|
"relative flex flex-col gap-2 rounded-2xl border bg-field p-2.5",
|
|
39482
39527
|
"transition-[var(--tx-colors),box-shadow] duration-(--dur-fast) ease-(--ease-standard)",
|
|
39483
39528
|
"focus-within:border-accent focus-within:ring-4 focus-within:ring-focus-halo",
|
|
@@ -39507,7 +39552,7 @@ function dz({
|
|
|
39507
39552
|
disabled: c,
|
|
39508
39553
|
rows: 1,
|
|
39509
39554
|
"aria-label": l,
|
|
39510
|
-
className:
|
|
39555
|
+
className: K(
|
|
39511
39556
|
"field-sizing-content w-full resize-none bg-transparent px-1 py-1",
|
|
39512
39557
|
"text-sm text-primary outline-none placeholder:text-field-placeholder"
|
|
39513
39558
|
),
|
|
@@ -39539,7 +39584,7 @@ function dz({
|
|
|
39539
39584
|
onClick: () => w.current?.click(),
|
|
39540
39585
|
disabled: c,
|
|
39541
39586
|
"aria-label": "Attach files",
|
|
39542
|
-
className:
|
|
39587
|
+
className: K(
|
|
39543
39588
|
"dx-tap grid size-7 shrink-0 cursor-pointer place-items-center rounded-lg text-tertiary outline-none",
|
|
39544
39589
|
"transition-colors duration-(--dur-fast) hover:bg-surface-hover hover:text-primary",
|
|
39545
39590
|
"focus-visible:ring-2 focus-visible:ring-focus-ring",
|
|
@@ -39569,7 +39614,7 @@ function dz({
|
|
|
39569
39614
|
onClick: R,
|
|
39570
39615
|
disabled: !S,
|
|
39571
39616
|
"aria-label": "Send message",
|
|
39572
|
-
className:
|
|
39617
|
+
className: K(
|
|
39573
39618
|
"dx-tap grid size-8 shrink-0 cursor-pointer place-items-center rounded-xl outline-none",
|
|
39574
39619
|
"transition-[var(--tx-colors),transform] duration-(--dur-fast) ease-(--ease-snappy)",
|
|
39575
39620
|
"focus-visible:ring-2 focus-visible:ring-focus-ring",
|
|
@@ -39724,7 +39769,7 @@ function vE({ code: e, language: t, filename: n, streaming: r, className: o }) {
|
|
|
39724
39769
|
value: e,
|
|
39725
39770
|
language: t,
|
|
39726
39771
|
filename: n,
|
|
39727
|
-
className:
|
|
39772
|
+
className: K("my-2", o),
|
|
39728
39773
|
toolbar: r ? /* @__PURE__ */ p(vS, { children: /* @__PURE__ */ p(wS, {}) }) : void 0
|
|
39729
39774
|
}
|
|
39730
39775
|
);
|
|
@@ -39743,7 +39788,7 @@ const bz = Gl(function({ block: t, index: n }) {
|
|
|
39743
39788
|
r,
|
|
39744
39789
|
{
|
|
39745
39790
|
start: t.ordered ? t.start : void 0,
|
|
39746
|
-
className:
|
|
39791
|
+
className: K(
|
|
39747
39792
|
"my-1.5 flex flex-col gap-1 pl-5",
|
|
39748
39793
|
t.ordered ? "list-decimal" : "list-disc",
|
|
39749
39794
|
"marker:text-tertiary"
|
|
@@ -39761,7 +39806,7 @@ const bz = Gl(function({ block: t, index: n }) {
|
|
|
39761
39806
|
}
|
|
39762
39807
|
}), xz = Gl(function({ children: t, className: n }) {
|
|
39763
39808
|
const r = st(() => mz(t), [t]);
|
|
39764
|
-
return /* @__PURE__ */ p("div", { className:
|
|
39809
|
+
return /* @__PURE__ */ p("div", { className: K("text-sm leading-relaxed text-secondary", n), children: r.map((o, s) => /* @__PURE__ */ p(bz, { block: o, index: s }, `${o.kind}-${s}`)) });
|
|
39765
39810
|
}), za = [
|
|
39766
39811
|
"var(--color-accent)",
|
|
39767
39812
|
"var(--color-info)",
|
|
@@ -39808,14 +39853,14 @@ function yz({
|
|
|
39808
39853
|
/* Marker for the overlay and visual gates — same reason as the effort
|
|
39809
39854
|
panel: the popup's own DOM has no selector a probe can name without
|
|
39810
39855
|
depending on an implementation detail. */
|
|
39811
|
-
/* @__PURE__ */ M("div", { "data-context-panel": "", className:
|
|
39856
|
+
/* @__PURE__ */ M("div", { "data-context-panel": "", className: K("flex w-72 flex-col gap-3", s && l), children: [
|
|
39812
39857
|
/* @__PURE__ */ M("div", { className: "flex flex-col gap-1.5", children: [
|
|
39813
39858
|
/* @__PURE__ */ M("div", { className: "flex items-baseline justify-between gap-3", children: [
|
|
39814
39859
|
/* @__PURE__ */ p("span", { id: c, className: "text-sm font-semibold text-primary", children: "Context window" }),
|
|
39815
39860
|
/* @__PURE__ */ p(
|
|
39816
39861
|
"span",
|
|
39817
39862
|
{
|
|
39818
|
-
className:
|
|
39863
|
+
className: K(
|
|
39819
39864
|
"font-mono text-2xs tabular-nums",
|
|
39820
39865
|
f === "danger" ? "text-danger-text" : f === "warning" ? "text-warning-text" : "text-tertiary"
|
|
39821
39866
|
),
|
|
@@ -39864,7 +39909,7 @@ function yz({
|
|
|
39864
39909
|
/* @__PURE__ */ p("div", { className: "h-1 w-full overflow-hidden rounded-full bg-surface-inset", children: /* @__PURE__ */ p(
|
|
39865
39910
|
"div",
|
|
39866
39911
|
{
|
|
39867
|
-
className:
|
|
39912
|
+
className: K(
|
|
39868
39913
|
"h-full rounded-full transition-[var(--tx-colors),width] duration-(--dur-slow) ease-(--ease-standard)",
|
|
39869
39914
|
y.percent >= o * 100 ? "bg-danger" : y.percent >= r * 100 ? "bg-warning" : "bg-accent"
|
|
39870
39915
|
),
|
|
@@ -39885,7 +39930,7 @@ function yz({
|
|
|
39885
39930
|
{
|
|
39886
39931
|
type: "button",
|
|
39887
39932
|
"aria-label": `Context window, ${h}`,
|
|
39888
|
-
className:
|
|
39933
|
+
className: K(
|
|
39889
39934
|
"dx-tap group/context inline-flex cursor-pointer items-center gap-2 rounded-md px-2 py-1",
|
|
39890
39935
|
"transition-colors duration-(--dur-fast) hover:bg-surface-hover",
|
|
39891
39936
|
"outline-none focus-visible:ring-2 focus-visible:ring-focus-ring",
|
|
@@ -39896,7 +39941,7 @@ function yz({
|
|
|
39896
39941
|
/* @__PURE__ */ M(
|
|
39897
39942
|
"span",
|
|
39898
39943
|
{
|
|
39899
|
-
className:
|
|
39944
|
+
className: K(
|
|
39900
39945
|
"font-mono text-2xs tabular-nums transition-colors duration-(--dur-fast)",
|
|
39901
39946
|
f === "danger" ? "text-danger-text" : f === "warning" ? "text-warning-text" : "text-tertiary group-hover/context:text-secondary"
|
|
39902
39947
|
),
|
|
@@ -39947,7 +39992,7 @@ function vz({ fraction: e, tone: t }) {
|
|
|
39947
39992
|
strokeWidth: "5",
|
|
39948
39993
|
strokeDasharray: "1",
|
|
39949
39994
|
strokeDashoffset: 1 - n,
|
|
39950
|
-
className:
|
|
39995
|
+
className: K(
|
|
39951
39996
|
"transition-[var(--tx-colors),stroke-dashoffset] duration-(--dur-slow) ease-(--ease-standard)",
|
|
39952
39997
|
t === "danger" ? "stroke-danger" : t === "warning" ? "stroke-warning" : "stroke-accent"
|
|
39953
39998
|
)
|
|
@@ -39960,7 +40005,7 @@ function wE({ children: e, active: t = !0, className: n }) {
|
|
|
39960
40005
|
"span",
|
|
39961
40006
|
{
|
|
39962
40007
|
"aria-live": "polite",
|
|
39963
|
-
className:
|
|
40008
|
+
className: K(
|
|
39964
40009
|
"text-2xs font-medium",
|
|
39965
40010
|
t ? "animate-shimmer bg-[linear-gradient(90deg,var(--color-tertiary)_20%,var(--color-primary)_45%,var(--color-tertiary)_70%)] bg-[length:220%_100%] bg-clip-text text-transparent" : "text-tertiary",
|
|
39966
40011
|
n
|
|
@@ -39976,7 +40021,7 @@ const wz = {
|
|
|
39976
40021
|
};
|
|
39977
40022
|
function Cz({ part: e, defaultOpen: t = !1, className: n }) {
|
|
39978
40023
|
const r = wz[e.status], { added: o, removed: s } = e.stats ?? {}, i = /* @__PURE__ */ M("span", { className: "flex w-full items-center gap-2 text-left", children: [
|
|
39979
|
-
/* @__PURE__ */ p(xe, { name: r.icon, size: "xs", className:
|
|
40024
|
+
/* @__PURE__ */ p(xe, { name: r.icon, size: "xs", className: K("shrink-0", r.className) }),
|
|
39980
40025
|
/* @__PURE__ */ p("span", { className: "min-w-0 flex-1 truncate text-xs text-secondary", children: e.status === "running" ? /* @__PURE__ */ p(wE, { children: e.summary }) : e.summary }),
|
|
39981
40026
|
o !== void 0 && o > 0 && /* @__PURE__ */ M("span", { className: "shrink-0 font-mono text-2xs text-success", children: [
|
|
39982
40027
|
"+",
|
|
@@ -39998,7 +40043,7 @@ function Cz({ part: e, defaultOpen: t = !1, className: n }) {
|
|
|
39998
40043
|
return e.detail === void 0 ? /* @__PURE__ */ p(
|
|
39999
40044
|
"div",
|
|
40000
40045
|
{
|
|
40001
|
-
className:
|
|
40046
|
+
className: K(
|
|
40002
40047
|
"my-1 flex items-center rounded-md border border-border-subtle bg-surface-raised px-2.5 py-1.5",
|
|
40003
40048
|
n
|
|
40004
40049
|
),
|
|
@@ -40008,7 +40053,7 @@ function Cz({ part: e, defaultOpen: t = !1, className: n }) {
|
|
|
40008
40053
|
MC,
|
|
40009
40054
|
{
|
|
40010
40055
|
defaultOpen: t,
|
|
40011
|
-
className:
|
|
40056
|
+
className: K("my-1", n),
|
|
40012
40057
|
chevron: !1,
|
|
40013
40058
|
triggerClassName: "dx-ground-raised w-full self-stretch border border-border-subtle bg-surface-raised px-2.5 py-1.5 text-left hover:border-border hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-focus-ring",
|
|
40014
40059
|
trigger: i,
|
|
@@ -40166,7 +40211,7 @@ function Rz({
|
|
|
40166
40211
|
"div",
|
|
40167
40212
|
{
|
|
40168
40213
|
role: "note",
|
|
40169
|
-
className:
|
|
40214
|
+
className: K(
|
|
40170
40215
|
"mx-auto my-1 flex max-w-prose items-center gap-2 rounded-md border border-border-subtle bg-surface-raised px-3 py-1.5 text-2xs text-tertiary",
|
|
40171
40216
|
u
|
|
40172
40217
|
),
|
|
@@ -40187,7 +40232,7 @@ function Rz({
|
|
|
40187
40232
|
ref: m,
|
|
40188
40233
|
"data-message": e.id,
|
|
40189
40234
|
"data-role": e.role,
|
|
40190
|
-
className:
|
|
40235
|
+
className: K(
|
|
40191
40236
|
"group/message flex w-full gap-3",
|
|
40192
40237
|
h ? "justify-end" : "justify-start",
|
|
40193
40238
|
s ? "mt-1" : "mt-5 first:mt-0",
|
|
@@ -40202,11 +40247,11 @@ function Rz({
|
|
|
40202
40247
|
src: e.author?.avatarUrl
|
|
40203
40248
|
}
|
|
40204
40249
|
) }),
|
|
40205
|
-
/* @__PURE__ */ M("div", { className:
|
|
40250
|
+
/* @__PURE__ */ M("div", { className: K("flex min-w-0 flex-col", h ? "max-w-[min(42rem,85%)]" : "flex-1"), children: [
|
|
40206
40251
|
!s && (e.author?.name || a) && /* @__PURE__ */ M(
|
|
40207
40252
|
"div",
|
|
40208
40253
|
{
|
|
40209
|
-
className:
|
|
40254
|
+
className: K(
|
|
40210
40255
|
"mb-1 flex items-baseline gap-2 text-2xs text-tertiary",
|
|
40211
40256
|
h && "justify-end"
|
|
40212
40257
|
),
|
|
@@ -40222,7 +40267,7 @@ function Rz({
|
|
|
40222
40267
|
/* @__PURE__ */ p(
|
|
40223
40268
|
"div",
|
|
40224
40269
|
{
|
|
40225
|
-
className:
|
|
40270
|
+
className: K(
|
|
40226
40271
|
h ? "rounded-2xl rounded-br-md bg-accent-subtle px-3.5 py-2.5 text-sm text-primary" : "min-w-0"
|
|
40227
40272
|
),
|
|
40228
40273
|
children: y
|
|
@@ -40231,7 +40276,7 @@ function Rz({
|
|
|
40231
40276
|
o && o.length > 0 && !e.streaming && /* @__PURE__ */ M(
|
|
40232
40277
|
"div",
|
|
40233
40278
|
{
|
|
40234
|
-
className:
|
|
40279
|
+
className: K(
|
|
40235
40280
|
"mt-1.5 flex items-center gap-0.5",
|
|
40236
40281
|
h && "justify-end",
|
|
40237
40282
|
/* Revealed on hover or focus, but ALWAYS present in the DOM and
|
|
@@ -40281,7 +40326,7 @@ function Dx({
|
|
|
40281
40326
|
onClick: () => e.onClick(t),
|
|
40282
40327
|
"aria-label": e.label,
|
|
40283
40328
|
"aria-pressed": e.active,
|
|
40284
|
-
className:
|
|
40329
|
+
className: K(
|
|
40285
40330
|
"dx-tap grid size-6 shrink-0 cursor-pointer place-items-center rounded-md outline-none",
|
|
40286
40331
|
"transition-colors duration-(--dur-fast)",
|
|
40287
40332
|
"hover:bg-surface-hover focus-visible:ring-2 focus-visible:ring-focus-ring",
|
|
@@ -40295,13 +40340,13 @@ function f4({ children: e, variant: t = "rule", className: n }) {
|
|
|
40295
40340
|
return t === "note" ? /* @__PURE__ */ p(
|
|
40296
40341
|
"div",
|
|
40297
40342
|
{
|
|
40298
|
-
className:
|
|
40343
|
+
className: K(
|
|
40299
40344
|
"my-2 flex items-center gap-2 rounded-md border border-border-subtle bg-surface-raised px-3 py-1.5 text-2xs text-tertiary",
|
|
40300
40345
|
n
|
|
40301
40346
|
),
|
|
40302
40347
|
children: e
|
|
40303
40348
|
}
|
|
40304
|
-
) : /* @__PURE__ */ M("div", { className:
|
|
40349
|
+
) : /* @__PURE__ */ M("div", { className: K("my-3 flex items-center gap-3", n), children: [
|
|
40305
40350
|
/* @__PURE__ */ p("span", { className: "h-px flex-1 bg-border-subtle" }),
|
|
40306
40351
|
/* @__PURE__ */ p("span", { className: "text-2xs font-semibold tracking-widest text-tertiary uppercase", children: e }),
|
|
40307
40352
|
/* @__PURE__ */ p("span", { className: "h-px flex-1 bg-border-subtle" })
|
|
@@ -40315,7 +40360,7 @@ function Nz({
|
|
|
40315
40360
|
className: o,
|
|
40316
40361
|
ref: s
|
|
40317
40362
|
}) {
|
|
40318
|
-
const i =
|
|
40363
|
+
const i = Qe(null), a = Qe(null), l = Qe(!0), [c, u] = Pe(!1), m = Xe((f = "smooth") => {
|
|
40319
40364
|
const h = i.current;
|
|
40320
40365
|
h && (h.scrollTo({ top: h.scrollHeight, behavior: f }), l.current = !0, u(!1));
|
|
40321
40366
|
}, []), d = Xe(() => {
|
|
@@ -40349,7 +40394,7 @@ function Nz({
|
|
|
40349
40394
|
role: "log",
|
|
40350
40395
|
"aria-live": "polite",
|
|
40351
40396
|
"aria-relevant": "additions text",
|
|
40352
|
-
className:
|
|
40397
|
+
className: K(
|
|
40353
40398
|
"min-h-0 flex-1 overflow-y-auto overscroll-contain outline-none",
|
|
40354
40399
|
"focus-visible:ring-2 focus-visible:ring-focus-ring focus-visible:ring-inset",
|
|
40355
40400
|
o
|
|
@@ -40369,7 +40414,7 @@ function Nz({
|
|
|
40369
40414
|
{
|
|
40370
40415
|
type: "button",
|
|
40371
40416
|
onClick: () => m(),
|
|
40372
|
-
className:
|
|
40417
|
+
className: K(
|
|
40373
40418
|
"dx-tap absolute bottom-3 left-1/2 flex -translate-x-1/2 cursor-pointer items-center justify-center gap-1.5",
|
|
40374
40419
|
/* `dx-ground-overlay`: this pill paints itself on the overlay
|
|
40375
40420
|
surface, which on dark sits ABOVE the neutral hover fill — so
|
|
@@ -40416,14 +40461,14 @@ function kz({
|
|
|
40416
40461
|
onOpenChange: u,
|
|
40417
40462
|
side: s,
|
|
40418
40463
|
align: i,
|
|
40419
|
-
className:
|
|
40464
|
+
className: K("min-w-60", l),
|
|
40420
40465
|
trigger: /* @__PURE__ */ M(
|
|
40421
40466
|
"button",
|
|
40422
40467
|
{
|
|
40423
40468
|
type: "button",
|
|
40424
40469
|
disabled: a,
|
|
40425
40470
|
"aria-label": `Model: ${g?.name ?? t}`,
|
|
40426
|
-
className:
|
|
40471
|
+
className: K(
|
|
40427
40472
|
/* `whitespace-nowrap` because a model NAME is one token even when it
|
|
40428
40473
|
contains a space: squeezed into a narrow composer, "Opus 5" broke
|
|
40429
40474
|
across two lines and made the whole toolbar row twice as tall. A
|
|
@@ -40519,7 +40564,7 @@ function Vx({
|
|
|
40519
40564
|
{
|
|
40520
40565
|
name: "check",
|
|
40521
40566
|
size: "xs",
|
|
40522
|
-
className:
|
|
40567
|
+
className: K("shrink-0 text-accent-text", !t && "invisible")
|
|
40523
40568
|
}
|
|
40524
40569
|
),
|
|
40525
40570
|
/* @__PURE__ */ M("span", { className: "flex min-w-0 flex-1 flex-col", children: [
|
|
@@ -40561,7 +40606,7 @@ function Tz({
|
|
|
40561
40606
|
`input[type=range]`, not `role="slider"`, and the panel has no other
|
|
40562
40607
|
unique selector — a marker class is how the tooltip and toast cases
|
|
40563
40608
|
already solve this. */
|
|
40564
|
-
/* @__PURE__ */ M("div", { "data-effort-panel": "", className:
|
|
40609
|
+
/* @__PURE__ */ M("div", { "data-effort-panel": "", className: K("flex flex-col gap-1", o && l), children: [
|
|
40565
40610
|
/* @__PURE__ */ M("div", { className: "flex items-baseline gap-1.5", children: [
|
|
40566
40611
|
/* @__PURE__ */ p("span", { className: "text-sm font-semibold text-primary", children: "Effort" }),
|
|
40567
40612
|
/* @__PURE__ */ p("span", { className: "text-sm text-secondary", children: u?.label }),
|
|
@@ -40606,14 +40651,14 @@ function Tz({
|
|
|
40606
40651
|
{
|
|
40607
40652
|
side: s,
|
|
40608
40653
|
align: i,
|
|
40609
|
-
className:
|
|
40654
|
+
className: K("w-auto p-3", l),
|
|
40610
40655
|
trigger: /* @__PURE__ */ M(
|
|
40611
40656
|
"button",
|
|
40612
40657
|
{
|
|
40613
40658
|
type: "button",
|
|
40614
40659
|
disabled: a,
|
|
40615
40660
|
"aria-label": `Effort: ${u?.label ?? t}`,
|
|
40616
|
-
className:
|
|
40661
|
+
className: K(
|
|
40617
40662
|
"dx-tap inline-flex cursor-pointer items-center gap-1.5 rounded-md px-2 py-1 text-xs font-medium",
|
|
40618
40663
|
"text-secondary transition-colors duration-(--dur-fast)",
|
|
40619
40664
|
"hover:bg-surface-hover hover:text-primary",
|
|
@@ -40624,7 +40669,7 @@ function Tz({
|
|
|
40624
40669
|
/* @__PURE__ */ p("span", { "aria-hidden": !0, className: "flex items-end gap-px", children: e.map((f, h) => /* @__PURE__ */ p(
|
|
40625
40670
|
"span",
|
|
40626
40671
|
{
|
|
40627
|
-
className:
|
|
40672
|
+
className: K(
|
|
40628
40673
|
"w-0.5 rounded-full transition-colors duration-(--dur-fast)",
|
|
40629
40674
|
h <= c ? "bg-accent" : "bg-border"
|
|
40630
40675
|
),
|
|
@@ -40693,7 +40738,7 @@ function Mz({
|
|
|
40693
40738
|
"section",
|
|
40694
40739
|
{
|
|
40695
40740
|
"data-chat-surface": C,
|
|
40696
|
-
className:
|
|
40741
|
+
className: K(
|
|
40697
40742
|
"flex min-h-0 flex-col bg-canvas",
|
|
40698
40743
|
C === "sidebar" && "h-full border-l border-border-subtle",
|
|
40699
40744
|
C === "popover" && "h-[32rem] w-[26rem]",
|
|
@@ -40763,7 +40808,7 @@ function p4({
|
|
|
40763
40808
|
{
|
|
40764
40809
|
type: "button",
|
|
40765
40810
|
"aria-label": "Open chat",
|
|
40766
|
-
className:
|
|
40811
|
+
className: K(
|
|
40767
40812
|
"grid size-12 cursor-pointer place-items-center rounded-full bg-accent text-accent-contrast",
|
|
40768
40813
|
"shadow-lg outline-none transition-[var(--tx-colors),transform] duration-(--dur-fast) ease-(--ease-snappy)",
|
|
40769
40814
|
"hover:bg-accent-hover active:scale-95 focus-visible:ring-2 focus-visible:ring-focus-ring"
|
|
@@ -41215,7 +41260,7 @@ function qz(e) {
|
|
|
41215
41260
|
return t.setUTCFullYear(e.year, e.month, 0), { year: t.getUTCFullYear(), month: t.getUTCMonth() + 1, day: t.getUTCDate() };
|
|
41216
41261
|
}
|
|
41217
41262
|
function Yz(e, t) {
|
|
41218
|
-
const { month: n, weekStartsOn: r, onMonthChange: o } = t, [s, i] = Pe(e), [a, l] = Pe(!1), c =
|
|
41263
|
+
const { month: n, weekStartsOn: r, onMonthChange: o } = t, [s, i] = Pe(e), [a, l] = Pe(!1), c = Qe(s), u = Xe(
|
|
41219
41264
|
(d) => {
|
|
41220
41265
|
Mo(c.current, d) || (c.current = d, i(d), (d.year !== n.year || d.month !== n.month) && o?.(d));
|
|
41221
41266
|
},
|
|
@@ -41335,7 +41380,7 @@ function E4({
|
|
|
41335
41380
|
}, [x]), w = Yz(
|
|
41336
41381
|
Xz(x, e, o, s),
|
|
41337
41382
|
{ month: e, weekStartsOn: r, onMonthChange: l }
|
|
41338
|
-
), v =
|
|
41383
|
+
), v = Qe(/* @__PURE__ */ new Map()), C = Qe(!1);
|
|
41339
41384
|
at(() => {
|
|
41340
41385
|
C.current && v.current.get(Bn(w.focusedDay))?.focus();
|
|
41341
41386
|
}, [w.focusedDay]);
|
|
@@ -41373,7 +41418,7 @@ function E4({
|
|
|
41373
41418
|
}),
|
|
41374
41419
|
[y, n, t, c]
|
|
41375
41420
|
), R = y[0] ?? [];
|
|
41376
|
-
return /* @__PURE__ */ M("div", { className:
|
|
41421
|
+
return /* @__PURE__ */ M("div", { className: K(h.root(), d), children: [
|
|
41377
41422
|
/* @__PURE__ */ M(
|
|
41378
41423
|
"table",
|
|
41379
41424
|
{
|
|
@@ -41420,7 +41465,7 @@ function E4({
|
|
|
41420
41465
|
children: /* @__PURE__ */ M(
|
|
41421
41466
|
"div",
|
|
41422
41467
|
{
|
|
41423
|
-
className:
|
|
41468
|
+
className: K(
|
|
41424
41469
|
h.cellInner(),
|
|
41425
41470
|
!T && "bg-canvas-subtle",
|
|
41426
41471
|
V && "bg-surface-selected"
|
|
@@ -41435,7 +41480,7 @@ function E4({
|
|
|
41435
41480
|
/* @__PURE__ */ p(
|
|
41436
41481
|
"span",
|
|
41437
41482
|
{
|
|
41438
|
-
className:
|
|
41483
|
+
className: K(
|
|
41439
41484
|
h.dayNumber(),
|
|
41440
41485
|
!T && "text-tertiary",
|
|
41441
41486
|
T && !A && "text-secondary",
|
|
@@ -41452,7 +41497,7 @@ function E4({
|
|
|
41452
41497
|
type: "button",
|
|
41453
41498
|
tabIndex: w.insideCell && D ? 0 : -1,
|
|
41454
41499
|
"aria-label": $l(O.event, t, P.label, u),
|
|
41455
|
-
className:
|
|
41500
|
+
className: K(
|
|
41456
41501
|
h.bar(),
|
|
41457
41502
|
/* Only the clipped end loses its radius, so the
|
|
41458
41503
|
bar reads as continuing rather than ending. */
|
|
@@ -41507,7 +41552,7 @@ function E4({
|
|
|
41507
41552
|
"button",
|
|
41508
41553
|
{
|
|
41509
41554
|
type: "button",
|
|
41510
|
-
className:
|
|
41555
|
+
className: K(h.bar(), "relative! w-full"),
|
|
41511
41556
|
"aria-label": $l(O, t, G.label, u),
|
|
41512
41557
|
style: {
|
|
41513
41558
|
background: G.fill,
|
|
@@ -41685,9 +41730,9 @@ function Ys(e, t, n) {
|
|
|
41685
41730
|
return Ei(e, t, n);
|
|
41686
41731
|
}
|
|
41687
41732
|
function o5(e) {
|
|
41688
|
-
const { zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l, disabled: c } = e, [u, m] = Pe(null), [d, f] = Pe(null), [h, g] = Pe(!1), x =
|
|
41733
|
+
const { zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l, disabled: c } = e, [u, m] = Pe(null), [d, f] = Pe(null), [h, g] = Pe(!1), x = Qe({ zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l });
|
|
41689
41734
|
x.current = { zone: t, days: n, snapMinutes: r, measure: o, onCommit: s, onCreate: i, onAnnounce: a, locale: l };
|
|
41690
|
-
const y =
|
|
41735
|
+
const y = Qe({ columns: [], origin: null, anchor: null, last: null, spoken: null, point: null }), w = Xe(() => {
|
|
41691
41736
|
y.current.columns = x.current.measure();
|
|
41692
41737
|
}, []);
|
|
41693
41738
|
at(() => {
|
|
@@ -41704,7 +41749,7 @@ function o5(e) {
|
|
|
41704
41749
|
const v = Xe((V) => {
|
|
41705
41750
|
const D = IE(V, x.current.zone, x.current.locale);
|
|
41706
41751
|
y.current.spoken !== D && (y.current.spoken = D, x.current.onAnnounce?.(D));
|
|
41707
|
-
}, []), C =
|
|
41752
|
+
}, []), C = Qe(
|
|
41708
41753
|
/* @__PURE__ */ new Map()
|
|
41709
41754
|
), S = Xe(
|
|
41710
41755
|
(V) => (D) => {
|
|
@@ -41766,7 +41811,7 @@ function o5(e) {
|
|
|
41766
41811
|
} }, F.cb = S(F), C.current.set(_, F)), F.event = V, F.cb;
|
|
41767
41812
|
},
|
|
41768
41813
|
[S]
|
|
41769
|
-
), N =
|
|
41814
|
+
), N = Qe(null), E = Xe(
|
|
41770
41815
|
(V) => !V || c || !i ? void 0 : Si(V, {
|
|
41771
41816
|
onPress: (_, F) => !F.target?.closest("button"),
|
|
41772
41817
|
onActivate: (_) => {
|
|
@@ -41872,7 +41917,7 @@ function l5({
|
|
|
41872
41917
|
endExclusive: Kr(t, I, { minutes: k })
|
|
41873
41918
|
}), i?.();
|
|
41874
41919
|
};
|
|
41875
|
-
return /* @__PURE__ */ M("div", { className:
|
|
41920
|
+
return /* @__PURE__ */ M("div", { className: K(c.root(), l), children: [
|
|
41876
41921
|
/* @__PURE__ */ M("div", { children: [
|
|
41877
41922
|
/* @__PURE__ */ p("div", { className: c.title(), children: e.title }),
|
|
41878
41923
|
/* @__PURE__ */ M("div", { className: c.meta(), children: [
|
|
@@ -41913,7 +41958,7 @@ function l5({
|
|
|
41913
41958
|
] });
|
|
41914
41959
|
}
|
|
41915
41960
|
function c5(e) {
|
|
41916
|
-
const { zone: t, snapMinutes: n, days: r, onCommit: o, onAnnounce: s, locale: i } = e, [a, l] = Pe(null), [c, u] = Pe({}), m =
|
|
41961
|
+
const { zone: t, snapMinutes: n, days: r, onCommit: o, onAnnounce: s, locale: i } = e, [a, l] = Pe(null), [c, u] = Pe({}), m = Qe(null), d = Xe(
|
|
41917
41962
|
(x, y) => {
|
|
41918
41963
|
const w = r[Math.max(0, Math.min(r.length - 1, y))];
|
|
41919
41964
|
w && s?.(
|
|
@@ -42078,7 +42123,7 @@ function R4({
|
|
|
42078
42123
|
className: v,
|
|
42079
42124
|
label: C = "Schedule"
|
|
42080
42125
|
}) {
|
|
42081
|
-
const S = u5(), R =
|
|
42126
|
+
const S = u5(), R = Qe(null), N = Qe([]), [E, I] = Pe(""), k = n5({ fixed: m }), T = st(
|
|
42082
42127
|
() => e.length > 0 ? Bx(t, e[0], s) : [],
|
|
42083
42128
|
[e, t, s]
|
|
42084
42129
|
), A = st(() => e.reduce(
|
|
@@ -42109,22 +42154,22 @@ function R4({
|
|
|
42109
42154
|
const $ = jx / Math.max(1, A);
|
|
42110
42155
|
return e.map((U, j) => {
|
|
42111
42156
|
const B = [];
|
|
42112
|
-
for (const
|
|
42113
|
-
if (
|
|
42114
|
-
const ee = of(t, e,
|
|
42115
|
-
ee && ee.endColumn > ee.startColumn || B.push(...zz(t, [U],
|
|
42116
|
-
}
|
|
42117
|
-
const L = B.map((
|
|
42118
|
-
key: `${
|
|
42119
|
-
start:
|
|
42120
|
-
end:
|
|
42121
|
-
})), W = t5(L, { mode: u, minSpan: $, maxLanes: c, minWidth: 0.16 }), Y = new Map(L.map((
|
|
42157
|
+
for (const q of n) {
|
|
42158
|
+
if (q.allDay) continue;
|
|
42159
|
+
const ee = of(t, e, q);
|
|
42160
|
+
ee && ee.endColumn > ee.startColumn || B.push(...zz(t, [U], q));
|
|
42161
|
+
}
|
|
42162
|
+
const L = B.map((q, ee) => ({
|
|
42163
|
+
key: `${q.event.id}:${ee}`,
|
|
42164
|
+
start: q.top,
|
|
42165
|
+
end: q.bottom
|
|
42166
|
+
})), W = t5(L, { mode: u, minSpan: $, maxLanes: c, minWidth: 0.16 }), Y = new Map(L.map((q, ee) => [q.key, B[ee]]));
|
|
42122
42167
|
return {
|
|
42123
42168
|
day: U,
|
|
42124
42169
|
dayIndex: j,
|
|
42125
|
-
events: W.map((
|
|
42126
|
-
...Y.get(
|
|
42127
|
-
placement:
|
|
42170
|
+
events: W.map((q) => ({
|
|
42171
|
+
...Y.get(q.key),
|
|
42172
|
+
placement: q
|
|
42128
42173
|
}))
|
|
42129
42174
|
};
|
|
42130
42175
|
});
|
|
@@ -42176,7 +42221,7 @@ function R4({
|
|
|
42176
42221
|
const U = nn(t, $);
|
|
42177
42222
|
return k >= U && k < nn(t, ws($));
|
|
42178
42223
|
}), H = P >= 0 ? Ei(t, e[P], k) : -1;
|
|
42179
|
-
return /* @__PURE__ */ M("div", { className:
|
|
42224
|
+
return /* @__PURE__ */ M("div", { className: K(S.root(), v), "aria-label": C, children: [
|
|
42180
42225
|
/* @__PURE__ */ M("div", { className: S.header(), children: [
|
|
42181
42226
|
/* @__PURE__ */ M("div", { className: S.headerRow(), children: [
|
|
42182
42227
|
/* @__PURE__ */ p("div", { className: S.gutter(), style: { width: Ua }, children: /* @__PURE__ */ p("div", { className: S.zoneLabel(), children: Bz(t, k, y) }) }),
|
|
@@ -42187,7 +42232,7 @@ function R4({
|
|
|
42187
42232
|
/* @__PURE__ */ p(
|
|
42188
42233
|
"span",
|
|
42189
42234
|
{
|
|
42190
|
-
className:
|
|
42235
|
+
className: K(
|
|
42191
42236
|
S.dayDigit(),
|
|
42192
42237
|
U ? "bg-accent font-semibold text-accent-contrast" : "text-primary"
|
|
42193
42238
|
),
|
|
@@ -42210,7 +42255,7 @@ function R4({
|
|
|
42210
42255
|
"button",
|
|
42211
42256
|
{
|
|
42212
42257
|
type: "button",
|
|
42213
|
-
className:
|
|
42258
|
+
className: K(
|
|
42214
42259
|
S.bandBar(),
|
|
42215
42260
|
!$.isStart && "rounded-l-none",
|
|
42216
42261
|
!$.isEnd && "rounded-r-none"
|
|
@@ -42288,7 +42333,7 @@ function R4({
|
|
|
42288
42333
|
"aria-label": `Events on ${Fl($.day, y)}`,
|
|
42289
42334
|
children: [
|
|
42290
42335
|
$.events.map(({ event: U, top: j, bottom: B, isStart: L, isEnd: W, placement: Y }) => {
|
|
42291
|
-
const
|
|
42336
|
+
const q = Ll(U.paletteKey), ee = G.preview(O.preview(U)), te = G.grabbedId === U.id, Z = O.draft?.id === U.id || te, ne = Z ? Ys(t, $.day, ee.start) : Y.start, J = Z ? Ys(t, $.day, ee.endExclusive) : Y.end, me = (B - j) * A < 30, pe = !!f && U.editable !== !1;
|
|
42292
42337
|
return /* @__PURE__ */ M("li", { className: "contents", children: [
|
|
42293
42338
|
/* @__PURE__ */ p(
|
|
42294
42339
|
d5,
|
|
@@ -42309,7 +42354,7 @@ function R4({
|
|
|
42309
42354
|
"button",
|
|
42310
42355
|
{
|
|
42311
42356
|
type: "button",
|
|
42312
|
-
className:
|
|
42357
|
+
className: K(
|
|
42313
42358
|
S.event(),
|
|
42314
42359
|
me && "flex-row items-center gap-1",
|
|
42315
42360
|
pe && "cursor-grab",
|
|
@@ -42321,7 +42366,7 @@ function R4({
|
|
|
42321
42366
|
!L && "rounded-t-none",
|
|
42322
42367
|
!W && "rounded-b-none"
|
|
42323
42368
|
),
|
|
42324
|
-
"aria-label": $l(U, t,
|
|
42369
|
+
"aria-label": $l(U, t, q.label, y),
|
|
42325
42370
|
ref: pe ? O.bindEvent(U, "move") : void 0,
|
|
42326
42371
|
"data-dragging": Z ? "" : void 0,
|
|
42327
42372
|
style: {
|
|
@@ -42330,20 +42375,20 @@ function R4({
|
|
|
42330
42375
|
left: `calc(${Y.left * 100}% + 1px)`,
|
|
42331
42376
|
width: `calc(${Y.width * 100}% - 2px)`,
|
|
42332
42377
|
zIndex: 10 + Y.zIndex,
|
|
42333
|
-
background:
|
|
42334
|
-
color:
|
|
42335
|
-
borderLeft: `3px solid ${
|
|
42378
|
+
background: q.fill,
|
|
42379
|
+
color: q.text,
|
|
42380
|
+
borderLeft: `3px solid ${q.edge}`,
|
|
42336
42381
|
/* A 1px rim on any lane past the first is what stops a
|
|
42337
42382
|
cascade becoming mush — the overlapping chips need
|
|
42338
42383
|
an edge to read against each other. */
|
|
42339
|
-
boxShadow: Y.column > 0 ? `inset 0 0 0 1px ${
|
|
42384
|
+
boxShadow: Y.column > 0 ? `inset 0 0 0 1px ${q.edge}` : void 0
|
|
42340
42385
|
},
|
|
42341
42386
|
onClick: () => o?.(U),
|
|
42342
42387
|
onKeyDown: pe ? (se) => G.onKeyDown(U, se) : void 0,
|
|
42343
42388
|
"data-grabbed": te ? "" : void 0,
|
|
42344
42389
|
children: w ? w(U) : /* @__PURE__ */ M(dt, { children: [
|
|
42345
42390
|
/* @__PURE__ */ p("span", { className: "truncate font-medium", children: U.title }),
|
|
42346
|
-
/* @__PURE__ */ p("span", { className:
|
|
42391
|
+
/* @__PURE__ */ p("span", { className: K("truncate opacity-80", me && "shrink-0"), children: Dr(U.start, t, y) })
|
|
42347
42392
|
] })
|
|
42348
42393
|
}
|
|
42349
42394
|
)
|
|
@@ -42353,7 +42398,7 @@ function R4({
|
|
|
42353
42398
|
"span",
|
|
42354
42399
|
{
|
|
42355
42400
|
"aria-hidden": "true",
|
|
42356
|
-
className:
|
|
42401
|
+
className: K(S.resizeHandle(), "top-0"),
|
|
42357
42402
|
style: { top: ne * A, left: `calc(${Y.left * 100}% + 1px)`, width: `calc(${Y.width * 100}% - 2px)`, position: "absolute", zIndex: 20 + Y.zIndex },
|
|
42358
42403
|
ref: O.bindEvent(U, "resize-start")
|
|
42359
42404
|
}
|
|
@@ -42362,7 +42407,7 @@ function R4({
|
|
|
42362
42407
|
"span",
|
|
42363
42408
|
{
|
|
42364
42409
|
"aria-hidden": "true",
|
|
42365
|
-
className:
|
|
42410
|
+
className: K(S.resizeHandle()),
|
|
42366
42411
|
style: { top: J * A - 20, left: `calc(${Y.left * 100}% + 1px)`, width: `calc(${Y.width * 100}% - 2px)`, position: "absolute", zIndex: 20 + Y.zIndex },
|
|
42367
42412
|
ref: O.bindEvent(U, "resize-end")
|
|
42368
42413
|
}
|
|
@@ -42514,11 +42559,11 @@ function I4({
|
|
|
42514
42559
|
] })
|
|
42515
42560
|
] }),
|
|
42516
42561
|
(e || t) && /* @__PURE__ */ M("div", { className: "flex flex-col gap-0.5 border-t border-border-subtle pt-2", children: [
|
|
42517
|
-
e && /* @__PURE__ */ p(Js, { children: /* @__PURE__ */ M("button", { type: "button", className:
|
|
42562
|
+
e && /* @__PURE__ */ p(Js, { children: /* @__PURE__ */ M("button", { type: "button", className: K(Wa), onClick: e, children: [
|
|
42518
42563
|
/* @__PURE__ */ p(xe, { name: "user", size: "sm" }),
|
|
42519
42564
|
"Profile"
|
|
42520
42565
|
] }) }),
|
|
42521
|
-
t && /* @__PURE__ */ p(Js, { children: /* @__PURE__ */ M("button", { type: "button", className:
|
|
42566
|
+
t && /* @__PURE__ */ p(Js, { children: /* @__PURE__ */ M("button", { type: "button", className: K(Wa), onClick: t, children: [
|
|
42522
42567
|
/* @__PURE__ */ p(xe, { name: "shield-check", size: "sm" }),
|
|
42523
42568
|
"Roles & Permissions"
|
|
42524
42569
|
] }) })
|
|
@@ -42538,8 +42583,8 @@ function I4({
|
|
|
42538
42583
|
] }) : /* @__PURE__ */ p("p", { className: "text-xs text-tertiary", children: "No role is assigned for this team." })
|
|
42539
42584
|
] }),
|
|
42540
42585
|
l.length > 1 && n && /* @__PURE__ */ M("div", { className: "flex flex-col gap-0.5 border-t border-border-subtle pt-2", children: [
|
|
42541
|
-
/* @__PURE__ */ p("span", { className:
|
|
42542
|
-
l.map((u) => /* @__PURE__ */ p(Js, { children: /* @__PURE__ */ M("button", { type: "button", className:
|
|
42586
|
+
/* @__PURE__ */ p("span", { className: K(Kx, "px-1 pb-1"), children: "Switch team" }),
|
|
42587
|
+
l.map((u) => /* @__PURE__ */ p(Js, { children: /* @__PURE__ */ M("button", { type: "button", className: K(Wa), onClick: () => n(u.id), children: [
|
|
42543
42588
|
/* @__PURE__ */ p(xe, { name: "users", size: "sm" }),
|
|
42544
42589
|
u.name
|
|
42545
42590
|
] }) }, u.id))
|
|
@@ -42548,7 +42593,7 @@ function I4({
|
|
|
42548
42593
|
"button",
|
|
42549
42594
|
{
|
|
42550
42595
|
type: "button",
|
|
42551
|
-
className:
|
|
42596
|
+
className: K(Wa, "text-danger-text hover:bg-danger-subtle hover:text-danger-text focus-visible:bg-danger-subtle focus-visible:text-danger-text"),
|
|
42552
42597
|
onClick: r,
|
|
42553
42598
|
children: [
|
|
42554
42599
|
/* @__PURE__ */ p(xe, { name: "log-out", size: "sm" }),
|
|
@@ -42900,7 +42945,7 @@ function T5({
|
|
|
42900
42945
|
return /* @__PURE__ */ M(
|
|
42901
42946
|
"article",
|
|
42902
42947
|
{
|
|
42903
|
-
className:
|
|
42948
|
+
className: K(
|
|
42904
42949
|
"flex min-w-0 flex-col gap-2 rounded-lg border border-border-subtle bg-surface-sunken p-3",
|
|
42905
42950
|
o
|
|
42906
42951
|
),
|
|
@@ -42971,7 +43016,7 @@ function AE({
|
|
|
42971
43016
|
className: u
|
|
42972
43017
|
}) {
|
|
42973
43018
|
const [m, d] = Pe(c), f = OE[kh(s, Ih(i))], h = Dn();
|
|
42974
|
-
return /* @__PURE__ */ M(Vm, { variant: "raised", padding: "md", className:
|
|
43019
|
+
return /* @__PURE__ */ M(Vm, { variant: "raised", padding: "md", className: K("gap-3", u), children: [
|
|
42975
43020
|
/* @__PURE__ */ M("div", { className: "flex flex-wrap items-start justify-between gap-3", children: [
|
|
42976
43021
|
/* @__PURE__ */ M("div", { className: "flex min-w-0 flex-wrap items-center gap-2", children: [
|
|
42977
43022
|
/* @__PURE__ */ p(Ht, { size: "sm", tone: "neutral", className: "font-mono", children: e.ref }),
|
|
@@ -42992,7 +43037,7 @@ function AE({
|
|
|
42992
43037
|
onClick: () => d((g) => !g),
|
|
42993
43038
|
"aria-expanded": m,
|
|
42994
43039
|
"aria-controls": h,
|
|
42995
|
-
className:
|
|
43040
|
+
className: K(
|
|
42996
43041
|
"dx-tap flex w-fit items-center gap-1.5 rounded-md px-2 py-1",
|
|
42997
43042
|
"text-xs font-medium text-tertiary transition-colors duration-(--dur-fast)",
|
|
42998
43043
|
"hover:bg-surface-hover hover:text-primary"
|
|
@@ -43003,7 +43048,7 @@ function AE({
|
|
|
43003
43048
|
{
|
|
43004
43049
|
name: "chevron-right",
|
|
43005
43050
|
size: "xs",
|
|
43006
|
-
className:
|
|
43051
|
+
className: K(
|
|
43007
43052
|
/* The colour half is not optional: naming a transition REPLACES
|
|
43008
43053
|
the global one, so a bare `transition-transform` leaves this
|
|
43009
43054
|
chevron cutting between themes while the label beside it
|
|
@@ -43069,13 +43114,13 @@ function A5({
|
|
|
43069
43114
|
return c.length === 0 ? /* @__PURE__ */ p(
|
|
43070
43115
|
"div",
|
|
43071
43116
|
{
|
|
43072
|
-
className:
|
|
43117
|
+
className: K(
|
|
43073
43118
|
"rounded-xl border border-dashed border-border-subtle bg-surface-sunken p-8 text-center",
|
|
43074
43119
|
s
|
|
43075
43120
|
),
|
|
43076
43121
|
children: /* @__PURE__ */ p("p", { className: "text-sm text-tertiary", children: "Nothing on the public roadmap yet." })
|
|
43077
43122
|
}
|
|
43078
|
-
) : /* @__PURE__ */ p("div", { className:
|
|
43123
|
+
) : /* @__PURE__ */ p("div", { className: K("flex min-w-0 flex-col gap-8", s), children: c.map(({ domain: u, domainIndex: m, items: d }) => /* @__PURE__ */ M("section", { "aria-labelledby": `swimlane-${u.slug}`, className: "flex flex-col gap-3", children: [
|
|
43079
43124
|
/* @__PURE__ */ p(
|
|
43080
43125
|
"h3",
|
|
43081
43126
|
{
|
|
@@ -43159,7 +43204,7 @@ function A4({
|
|
|
43159
43204
|
return kh(w, f) === u;
|
|
43160
43205
|
})
|
|
43161
43206
|
})).filter((g) => g.items.length > 0), [e, n, l, u, d, f]);
|
|
43162
|
-
return /* @__PURE__ */ M("div", { className:
|
|
43207
|
+
return /* @__PURE__ */ M("div", { className: K("flex min-w-0 flex-col gap-6", a), children: [
|
|
43163
43208
|
/* @__PURE__ */ M("header", { className: "flex flex-col gap-1", children: [
|
|
43164
43209
|
/* @__PURE__ */ p("h1", { className: "font-display text-lg font-semibold text-primary", children: "Use-Case Ledger" }),
|
|
43165
43210
|
/* @__PURE__ */ p("p", { className: "text-sm text-secondary", children: "Every roadmap item and the use cases behind it — internal and customer-facing alike." })
|
|
@@ -43220,7 +43265,7 @@ function D4({
|
|
|
43220
43265
|
tracks: o,
|
|
43221
43266
|
className: s
|
|
43222
43267
|
}) {
|
|
43223
|
-
return /* @__PURE__ */ M("div", { className:
|
|
43268
|
+
return /* @__PURE__ */ M("div", { className: K("flex min-w-0 flex-col gap-6", s), children: [
|
|
43224
43269
|
/* @__PURE__ */ M("header", { className: "flex flex-col gap-1", children: [
|
|
43225
43270
|
/* @__PURE__ */ p("h1", { className: "font-display text-lg font-semibold text-primary", children: "Roadmap" }),
|
|
43226
43271
|
/* @__PURE__ */ p("p", { className: "text-sm text-secondary", children: "What we're building, organized by area." })
|
|
@@ -43270,7 +43315,7 @@ function V4({
|
|
|
43270
43315
|
}));
|
|
43271
43316
|
o(C);
|
|
43272
43317
|
}
|
|
43273
|
-
return /* @__PURE__ */ M(Vm, { variant: "sunken", padding: "md", className:
|
|
43318
|
+
return /* @__PURE__ */ M(Vm, { variant: "sunken", padding: "md", className: K("gap-4", i), children: [
|
|
43274
43319
|
/* @__PURE__ */ p(
|
|
43275
43320
|
rC,
|
|
43276
43321
|
{
|
|
@@ -43382,7 +43427,7 @@ function _4({
|
|
|
43382
43427
|
}));
|
|
43383
43428
|
o(v);
|
|
43384
43429
|
}
|
|
43385
|
-
return /* @__PURE__ */ M(Vm, { variant: "sunken", padding: "md", className:
|
|
43430
|
+
return /* @__PURE__ */ M(Vm, { variant: "sunken", padding: "md", className: K("gap-4", i), children: [
|
|
43386
43431
|
/* @__PURE__ */ p(
|
|
43387
43432
|
rC,
|
|
43388
43433
|
{
|
|
@@ -43482,9 +43527,9 @@ function z5({
|
|
|
43482
43527
|
className: r
|
|
43483
43528
|
}) {
|
|
43484
43529
|
if (e === null)
|
|
43485
|
-
return /* @__PURE__ */ p("p", { className:
|
|
43530
|
+
return /* @__PURE__ */ p("p", { className: K("text-xs text-tertiary", r), "data-band": "none", children: t });
|
|
43486
43531
|
const o = F5(e), s = Math.round(e * 100);
|
|
43487
|
-
return /* @__PURE__ */ p("div", { className:
|
|
43532
|
+
return /* @__PURE__ */ p("div", { className: K("flex flex-col gap-1", r), "data-band": o, children: /* @__PURE__ */ p(
|
|
43488
43533
|
hO,
|
|
43489
43534
|
{
|
|
43490
43535
|
value: s,
|
|
@@ -43516,14 +43561,14 @@ function Zx({
|
|
|
43516
43561
|
tone: s.tone,
|
|
43517
43562
|
size: r,
|
|
43518
43563
|
"data-state": e,
|
|
43519
|
-
className:
|
|
43564
|
+
className: K(
|
|
43520
43565
|
/* A square-ish box for the glyph. The padding comes off the spacing
|
|
43521
43566
|
scale like everything else, so it tracks the size control. */
|
|
43522
43567
|
i && "px-1",
|
|
43523
43568
|
o
|
|
43524
43569
|
),
|
|
43525
43570
|
icon: /* @__PURE__ */ p(xe, { name: s.icon, size: "xs" }),
|
|
43526
|
-
children: /* @__PURE__ */ p("span", { className:
|
|
43571
|
+
children: /* @__PURE__ */ p("span", { className: K(i && "sr-only"), children: s.label })
|
|
43527
43572
|
}
|
|
43528
43573
|
);
|
|
43529
43574
|
}
|
|
@@ -43537,7 +43582,7 @@ const B5 = {
|
|
|
43537
43582
|
};
|
|
43538
43583
|
function ld({ kind: e, children: t }) {
|
|
43539
43584
|
const n = B5[e];
|
|
43540
|
-
return /* @__PURE__ */ M("span", { "data-absence": e, className:
|
|
43585
|
+
return /* @__PURE__ */ M("span", { "data-absence": e, className: K("inline-flex items-center gap-1.5", n.className), children: [
|
|
43541
43586
|
/* @__PURE__ */ p(xe, { name: n.icon, size: "xs" }),
|
|
43542
43587
|
t
|
|
43543
43588
|
] });
|
|
@@ -43570,7 +43615,7 @@ function $4({
|
|
|
43570
43615
|
"button",
|
|
43571
43616
|
{
|
|
43572
43617
|
type: "button",
|
|
43573
|
-
className:
|
|
43618
|
+
className: K(
|
|
43574
43619
|
"dx-tap group inline-flex max-w-full gap-1.5 rounded-sm text-left",
|
|
43575
43620
|
/* A wrapping value is several lines tall; centring the badge against
|
|
43576
43621
|
the block would float it beside the middle line. Aligned to the top
|
|
@@ -43592,7 +43637,7 @@ function $4({
|
|
|
43592
43637
|
i ?? /* @__PURE__ */ p(
|
|
43593
43638
|
"span",
|
|
43594
43639
|
{
|
|
43595
|
-
className:
|
|
43640
|
+
className: K(
|
|
43596
43641
|
"min-w-0 text-sm text-primary",
|
|
43597
43642
|
/* `truncate` sets `overflow-hidden` and `white-space: nowrap`
|
|
43598
43643
|
together, so wrapping is not "drop truncate" — the wrap case
|
|
@@ -43644,7 +43689,7 @@ function $4({
|
|
|
43644
43689
|
),
|
|
43645
43690
|
/* @__PURE__ */ p(Zx, { state: e.state, alwaysShow: !0 })
|
|
43646
43691
|
] }),
|
|
43647
|
-
/* @__PURE__ */ p("p", { className:
|
|
43692
|
+
/* @__PURE__ */ p("p", { className: K("text-md text-primary", c && "text-danger-text"), children: f }),
|
|
43648
43693
|
/* @__PURE__ */ p(z5, { confidence: e.confidence })
|
|
43649
43694
|
] }),
|
|
43650
43695
|
/* @__PURE__ */ p(Gb, {}),
|
|
@@ -43657,7 +43702,7 @@ function $4({
|
|
|
43657
43702
|
children: /* @__PURE__ */ p(
|
|
43658
43703
|
"span",
|
|
43659
43704
|
{
|
|
43660
|
-
className:
|
|
43705
|
+
className: K(
|
|
43661
43706
|
e.check.passed === !1 && "text-danger-text",
|
|
43662
43707
|
e.check.passed === null && "text-tertiary"
|
|
43663
43708
|
),
|
|
@@ -43941,9 +43986,9 @@ function $E(e, t) {
|
|
|
43941
43986
|
}
|
|
43942
43987
|
const Jx = (e, t, n) => Math.min(Math.max(e, t), n);
|
|
43943
43988
|
function e3(e) {
|
|
43944
|
-
const { layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s } = e, [i, a] = Pe({}), [l, c] = Pe(null), [u, m] = Pe(!1), d =
|
|
43989
|
+
const { layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s } = e, [i, a] = Pe({}), [l, c] = Pe(null), [u, m] = Pe(!1), d = Qe({ layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s, offsets: i });
|
|
43945
43990
|
d.current = { layoutBoxOf: t, planeSize: n, onNodeClick: r, onNodeDragEnd: o, disabled: s, offsets: i };
|
|
43946
|
-
const f =
|
|
43991
|
+
const f = Qe(null), h = Qe({ frame: null, drag: null, pan: null, point: null }), g = Xe(() => {
|
|
43947
43992
|
const I = f.current;
|
|
43948
43993
|
if (!I) return;
|
|
43949
43994
|
const k = I.getBoundingClientRect();
|
|
@@ -43997,7 +44042,7 @@ function e3(e) {
|
|
|
43997
44042
|
};
|
|
43998
44043
|
I.addEventListener("click", k, { capture: !0, once: !0 }), setTimeout(() => I.removeEventListener("click", k, { capture: !0 }), 0);
|
|
43999
44044
|
}
|
|
44000
|
-
const C =
|
|
44045
|
+
const C = Qe(/* @__PURE__ */ new Map()), S = Xe(
|
|
44001
44046
|
(I) => (k) => {
|
|
44002
44047
|
if (k)
|
|
44003
44048
|
return Si(k, {
|
|
@@ -44103,13 +44148,13 @@ function z4({
|
|
|
44103
44148
|
disabled: u,
|
|
44104
44149
|
className: m
|
|
44105
44150
|
}) {
|
|
44106
|
-
const d = Dn(), [f, h] = Pe([e.id]), [g, x] = Pe(null), y =
|
|
44151
|
+
const d = Dn(), [f, h] = Pe([e.id]), [g, x] = Pe(null), y = Qe(e.id);
|
|
44107
44152
|
y.current !== e.id && (y.current = e.id, h([e.id]), x(null));
|
|
44108
44153
|
const w = st(() => {
|
|
44109
44154
|
const B = [];
|
|
44110
44155
|
let L = e;
|
|
44111
44156
|
for (const W of f) {
|
|
44112
|
-
const Y = L && L.id === W ? L : L?.children?.find((
|
|
44157
|
+
const Y = L && L.id === W ? L : L?.children?.find((q) => q.id === W);
|
|
44113
44158
|
if (!Y) break;
|
|
44114
44159
|
B.push(Y), L = Y;
|
|
44115
44160
|
}
|
|
@@ -44148,7 +44193,7 @@ function z4({
|
|
|
44148
44193
|
onNodeClick: E,
|
|
44149
44194
|
onNodeDragEnd: c,
|
|
44150
44195
|
disabled: u
|
|
44151
|
-
}), { clearOffsets: k } = I, T = `${v.id}:${r}:${o}`, A =
|
|
44196
|
+
}), { clearOffsets: k } = I, T = `${v.id}:${r}:${o}`, A = Qe(T);
|
|
44152
44197
|
at(() => {
|
|
44153
44198
|
A.current !== T && (A.current = T, k());
|
|
44154
44199
|
}, [T, k]);
|
|
@@ -44165,7 +44210,7 @@ function z4({
|
|
|
44165
44210
|
};
|
|
44166
44211
|
},
|
|
44167
44212
|
[R, I.offsets]
|
|
44168
|
-
), D =
|
|
44213
|
+
), D = Qe(null), _ = g && R.has(g) ? g : v.id, F = Xe((B) => {
|
|
44169
44214
|
x(B), queueMicrotask(() => {
|
|
44170
44215
|
const L = D.current?.querySelector(
|
|
44171
44216
|
`[data-canvas-node="${CSS.escape(B)}"]`
|
|
@@ -44186,17 +44231,17 @@ function z4({
|
|
|
44186
44231
|
function G(B, L) {
|
|
44187
44232
|
const W = R.get(B);
|
|
44188
44233
|
if (!W?.parentId) return null;
|
|
44189
|
-
const Y = C.nodes.filter((ee) => ee.parentId === W.parentId),
|
|
44190
|
-
return Y[
|
|
44234
|
+
const Y = C.nodes.filter((ee) => ee.parentId === W.parentId), q = Y.findIndex((ee) => ee.id === B);
|
|
44235
|
+
return Y[q + L]?.id ?? null;
|
|
44191
44236
|
}
|
|
44192
44237
|
function P(B, L) {
|
|
44193
|
-
const W = r === "vertical", Y = W ? "ArrowLeft" : "ArrowUp",
|
|
44238
|
+
const W = r === "vertical", Y = W ? "ArrowLeft" : "ArrowUp", q = W ? "ArrowRight" : "ArrowDown", ee = W ? "ArrowUp" : "ArrowLeft", te = W ? "ArrowDown" : "ArrowRight";
|
|
44194
44239
|
let Z = null;
|
|
44195
44240
|
switch (B.key) {
|
|
44196
44241
|
case Y:
|
|
44197
44242
|
Z = G(L.id, -1);
|
|
44198
44243
|
break;
|
|
44199
|
-
case
|
|
44244
|
+
case q:
|
|
44200
44245
|
Z = G(L.id, 1);
|
|
44201
44246
|
break;
|
|
44202
44247
|
case ee:
|
|
@@ -44217,7 +44262,7 @@ function z4({
|
|
|
44217
44262
|
}
|
|
44218
44263
|
Z && (B.preventDefault(), F(Z));
|
|
44219
44264
|
}
|
|
44220
|
-
const H =
|
|
44265
|
+
const H = Qe(null), { bindViewport: $ } = I, U = Xe(
|
|
44221
44266
|
(B) => {
|
|
44222
44267
|
H.current = B, $(B);
|
|
44223
44268
|
},
|
|
@@ -44234,7 +44279,7 @@ function z4({
|
|
|
44234
44279
|
return /* @__PURE__ */ M(
|
|
44235
44280
|
"div",
|
|
44236
44281
|
{
|
|
44237
|
-
className:
|
|
44282
|
+
className: K(
|
|
44238
44283
|
/* `relative` is what makes `overflow-hidden` true for the canvas's
|
|
44239
44284
|
out-of-flow contents. The "showing X, level N" announcement is
|
|
44240
44285
|
`sr-only` — `position: absolute` — and an unpositioned clipper is
|
|
@@ -44263,7 +44308,7 @@ function z4({
|
|
|
44263
44308
|
{
|
|
44264
44309
|
ref: U,
|
|
44265
44310
|
"data-canvas-viewport": !0,
|
|
44266
|
-
className:
|
|
44311
|
+
className: K(
|
|
44267
44312
|
"relative min-w-0 overflow-auto overscroll-contain bg-canvas-subtle",
|
|
44268
44313
|
/* NO TEXT SELECTION ANYWHERE ON THE CANVAS. Seen in a screenshot, not
|
|
44269
44314
|
reasoned about: a pan drags across whatever node bodies lie under
|
|
@@ -44327,8 +44372,8 @@ function z4({
|
|
|
44327
44372
|
"data-canvas-dragging": W || void 0,
|
|
44328
44373
|
tabIndex: B.id === _ ? 0 : -1,
|
|
44329
44374
|
onFocus: () => x(B.id),
|
|
44330
|
-
onKeyDown: (
|
|
44331
|
-
className:
|
|
44375
|
+
onKeyDown: (q) => P(q, B),
|
|
44376
|
+
className: K(
|
|
44332
44377
|
"pointer-events-auto absolute rounded-lg border bg-surface-raised outline-none",
|
|
44333
44378
|
/* NOT a bare `transition-transform`: `transition-property`
|
|
44334
44379
|
is not additive, so naming one property drops the base
|
|
@@ -44568,7 +44613,7 @@ export {
|
|
|
44568
44613
|
o4 as checkCoverage,
|
|
44569
44614
|
$$ as chordsOf,
|
|
44570
44615
|
GD as clearStored,
|
|
44571
|
-
|
|
44616
|
+
K as cn,
|
|
44572
44617
|
ai as comparePlainDate,
|
|
44573
44618
|
F5 as confidenceBand,
|
|
44574
44619
|
Al as constructAt,
|