@danxbot/ui 20.21.3 → 20.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/confidence.css +19 -0
- package/dist/index.js +260 -254
- package/dist/index.js.map +1 -1
- package/dist/styles.css +1 -1
- package/dist/theme.css +6 -0
- package/dist/types/components/Badge.d.ts +3 -0
- package/dist/types/components/focus-web/types.d.ts +1 -1
- package/dist/types/icons/data.d.ts +15 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -176,6 +176,8 @@ const zP = {
|
|
|
176
176
|
hash: [["line", { x1: "4", x2: "20", y1: "9", y2: "9" }], ["line", { x1: "4", x2: "20", y1: "15", y2: "15" }], ["line", { x1: "10", x2: "8", y1: "3", y2: "21" }], ["line", { x1: "16", x2: "14", y1: "3", y2: "21" }]],
|
|
177
177
|
milestone: [["path", { d: "M12 13v8" }], ["path", { d: "M12 3v3" }], ["path", { d: "M4 6a1 1 0 0 0-1 1v5a1 1 0 0 0 1 1h13a2 2 0 0 0 1.152-.365l3.424-2.317a1 1 0 0 0 0-1.635l-3.424-2.318A2 2 0 0 0 17 6z" }]],
|
|
178
178
|
signature: [["path", { d: "m21 17-2.156-1.868A.5.5 0 0 0 18 15.5v.5a1 1 0 0 1-1 1h-2a1 1 0 0 1-1-1c0-2.545-3.991-3.97-8.5-4a1 1 0 0 0 0 5c4.153 0 4.745-11.295 5.708-13.5a2.5 2.5 0 1 1 3.31 3.284" }], ["path", { d: "M3 21h18" }]],
|
|
179
|
+
/* --- pacing --- */
|
|
180
|
+
timer: [["line", { x1: "10", x2: "14", y1: "2", y2: "2" }], ["line", { x1: "12", x2: "15", y1: "14", y2: "11" }], ["circle", { cx: "12", cy: "14", r: "8" }]],
|
|
179
181
|
/* --- text authoring --- */
|
|
180
182
|
"align-center": [["path", { d: "M21 5H3" }], ["path", { d: "M17 12H7" }], ["path", { d: "M19 19H5" }]],
|
|
181
183
|
"align-left": [["path", { d: "M21 5H3" }], ["path", { d: "M15 12H3" }], ["path", { d: "M17 19H3" }]],
|
|
@@ -510,7 +512,7 @@ const HP = (e, t) => {
|
|
|
510
512
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
511
513
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
512
514
|
pO.test(e) && !hO.test(e)
|
|
513
|
-
), am = () => !1, xO = (e) => mO.test(e), vO = (e) => gO.test(e), yO = (e) => !je(e) && !We(e), wO = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), CO = (e) =>
|
|
515
|
+
), am = () => !1, xO = (e) => mO.test(e), vO = (e) => gO.test(e), yO = (e) => !je(e) && !We(e), wO = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), CO = (e) => $o(e, rC, am), je = (e) => Q1.test(e), qo = (e) => $o(e, oC, bO), Ev = (e) => $o(e, TO, ht), EO = (e) => $o(e, iC, eC), SO = (e) => $o(e, sC, am), Sv = (e) => $o(e, tC, am), kO = (e) => $o(e, nC, vO), Dl = (e) => $o(e, aC, xO), We = (e) => J1.test(e), Vi = (e) => ws(e, oC), NO = (e) => ws(e, sC), kv = (e) => ws(e, tC), RO = (e) => ws(e, rC), IO = (e) => ws(e, nC), _l = (e) => ws(e, aC, !0), MO = (e) => ws(e, iC, !0), $o = (e, t, n) => {
|
|
514
516
|
const r = Q1.exec(e);
|
|
515
517
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
516
518
|
}, ws = (e, t, n = !1) => {
|
|
@@ -543,7 +545,7 @@ const HP = (e, t) => {
|
|
|
543
545
|
repeat: ["", "x", "y", "space", "round"]
|
|
544
546
|
}], U = () => ["auto", "cover", "contain", RO, CO, {
|
|
545
547
|
size: [We, je]
|
|
546
|
-
}], G = () => [Mf, Vi,
|
|
548
|
+
}], G = () => [Mf, Vi, qo], Y = () => [
|
|
547
549
|
// Deprecated since Tailwind CSS v4.0.0
|
|
548
550
|
"",
|
|
549
551
|
"none",
|
|
@@ -551,7 +553,7 @@ const HP = (e, t) => {
|
|
|
551
553
|
l,
|
|
552
554
|
We,
|
|
553
555
|
je
|
|
554
|
-
], q = () => ["", ht, Vi,
|
|
556
|
+
], q = () => ["", ht, Vi, qo], X = () => ["solid", "dashed", "dotted", "double"], W = () => ["normal", "multiply", "screen", "overlay", "darken", "lighten", "color-dodge", "color-burn", "hard-light", "soft-light", "difference", "exclusion", "hue", "saturation", "color", "luminosity"], j = () => [ht, Mf, kv, Sv], te = () => [
|
|
555
557
|
// Deprecated since Tailwind CSS v4.0.0
|
|
556
558
|
"",
|
|
557
559
|
"none",
|
|
@@ -1359,7 +1361,7 @@ const HP = (e, t) => {
|
|
|
1359
1361
|
* @see https://tailwindcss.com/docs/font-size
|
|
1360
1362
|
*/
|
|
1361
1363
|
"font-size": [{
|
|
1362
|
-
text: ["base", n, Vi,
|
|
1364
|
+
text: ["base", n, Vi, qo]
|
|
1363
1365
|
}],
|
|
1364
1366
|
/**
|
|
1365
1367
|
* Font Smoothing
|
|
@@ -1514,7 +1516,7 @@ const HP = (e, t) => {
|
|
|
1514
1516
|
* @see https://tailwindcss.com/docs/text-decoration-thickness
|
|
1515
1517
|
*/
|
|
1516
1518
|
"text-decoration-thickness": [{
|
|
1517
|
-
decoration: [ht, "from-font", "auto", We,
|
|
1519
|
+
decoration: [ht, "from-font", "auto", We, qo]
|
|
1518
1520
|
}],
|
|
1519
1521
|
/**
|
|
1520
1522
|
* Text Decoration Color
|
|
@@ -2036,7 +2038,7 @@ const HP = (e, t) => {
|
|
|
2036
2038
|
* @see https://tailwindcss.com/docs/outline-width
|
|
2037
2039
|
*/
|
|
2038
2040
|
"outline-w": [{
|
|
2039
|
-
outline: ["", ht, Vi,
|
|
2041
|
+
outline: ["", ht, Vi, qo]
|
|
2040
2042
|
}],
|
|
2041
2043
|
/**
|
|
2042
2044
|
* Outline Color
|
|
@@ -2111,7 +2113,7 @@ const HP = (e, t) => {
|
|
|
2111
2113
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
2112
2114
|
*/
|
|
2113
2115
|
"ring-offset-w": [{
|
|
2114
|
-
"ring-offset": [ht,
|
|
2116
|
+
"ring-offset": [ht, qo]
|
|
2115
2117
|
}],
|
|
2116
2118
|
/**
|
|
2117
2119
|
* Ring Offset Color
|
|
@@ -3124,7 +3126,7 @@ const HP = (e, t) => {
|
|
|
3124
3126
|
* @see https://tailwindcss.com/docs/stroke-width
|
|
3125
3127
|
*/
|
|
3126
3128
|
"stroke-w": [{
|
|
3127
|
-
stroke: [ht, Vi,
|
|
3129
|
+
stroke: [ht, Vi, qo, Ev]
|
|
3128
3130
|
}],
|
|
3129
3131
|
/**
|
|
3130
3132
|
* Stroke
|
|
@@ -4343,7 +4345,7 @@ var Rn = uA(), dA = (e) => {
|
|
|
4343
4345
|
// For example, `hsl(0 0% 0%)` would be classified as a length without this check.
|
|
4344
4346
|
// I could also use lookbehind assertion in `lengthUnitRegex` but that isn't supported widely enough.
|
|
4345
4347
|
aD.test(e) && !lD.test(e)
|
|
4346
|
-
), gm = () => !1, hD = (e) => cD.test(e), mD = (e) => uD.test(e), gD = (e) => !Ge(e) && !qe(e), bD = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), xD = (e) =>
|
|
4348
|
+
), gm = () => !1, hD = (e) => cD.test(e), mD = (e) => uD.test(e), gD = (e) => !Ge(e) && !qe(e), bD = (e) => e.startsWith("@container") && (e[10] === "/" && e[11] !== void 0 || e[11] === "s" && e[16] !== void 0 && e.startsWith("-size/", 10) || e[11] === "n" && e[18] !== void 0 && e.startsWith("-normal/", 10)), xD = (e) => Fo(e, DC, gm), Ge = (e) => IC.test(e), Ko = (e) => Fo(e, _C, pD), Dv = (e) => Fo(e, ND, mt), vD = (e) => Fo(e, FC, PC), yD = (e) => Fo(e, $C, gm), _v = (e) => Fo(e, OC, gm), wD = (e) => Fo(e, AC, mD), Fl = (e) => Fo(e, LC, hD), qe = (e) => MC.test(e), zi = (e) => Cs(e, _C), CD = (e) => Cs(e, $C), $v = (e) => Cs(e, OC), ED = (e) => Cs(e, DC), SD = (e) => Cs(e, AC), Ll = (e) => Cs(e, LC, !0), kD = (e) => Cs(e, FC, !0), Fo = (e, t, n) => {
|
|
4347
4349
|
const r = IC.exec(e);
|
|
4348
4350
|
return r ? r[1] ? t(r[1]) : n(r[2]) : !1;
|
|
4349
4351
|
}, Cs = (e, t, n = !1) => {
|
|
@@ -4434,7 +4436,7 @@ var Rn = uA(), dA = (e) => {
|
|
|
4434
4436
|
ED,
|
|
4435
4437
|
xD,
|
|
4436
4438
|
{ size: [qe, Ge] }
|
|
4437
|
-
], G = () => [Pf, zi,
|
|
4439
|
+
], G = () => [Pf, zi, Ko], Y = () => [
|
|
4438
4440
|
// Deprecated since Tailwind CSS v4.0.0
|
|
4439
4441
|
"",
|
|
4440
4442
|
"none",
|
|
@@ -4442,7 +4444,7 @@ var Rn = uA(), dA = (e) => {
|
|
|
4442
4444
|
l,
|
|
4443
4445
|
qe,
|
|
4444
4446
|
Ge
|
|
4445
|
-
], q = () => ["", mt, zi,
|
|
4447
|
+
], q = () => ["", mt, zi, Ko], X = () => ["solid", "dashed", "dotted", "double"], W = () => [
|
|
4446
4448
|
"normal",
|
|
4447
4449
|
"multiply",
|
|
4448
4450
|
"screen",
|
|
@@ -5134,7 +5136,7 @@ var Rn = uA(), dA = (e) => {
|
|
|
5134
5136
|
* Font Size
|
|
5135
5137
|
* @see https://tailwindcss.com/docs/font-size
|
|
5136
5138
|
*/
|
|
5137
|
-
"font-size": [{ text: ["base", n, zi,
|
|
5139
|
+
"font-size": [{ text: ["base", n, zi, Ko] }],
|
|
5138
5140
|
/**
|
|
5139
5141
|
* Font Smoothing
|
|
5140
5142
|
* @see https://tailwindcss.com/docs/font-smoothing
|
|
@@ -5287,7 +5289,7 @@ var Rn = uA(), dA = (e) => {
|
|
|
5287
5289
|
*/
|
|
5288
5290
|
"text-decoration-thickness": [
|
|
5289
5291
|
{
|
|
5290
|
-
decoration: [mt, "from-font", "auto", qe,
|
|
5292
|
+
decoration: [mt, "from-font", "auto", qe, Ko]
|
|
5291
5293
|
}
|
|
5292
5294
|
],
|
|
5293
5295
|
/**
|
|
@@ -5702,7 +5704,7 @@ var Rn = uA(), dA = (e) => {
|
|
|
5702
5704
|
* Outline Width
|
|
5703
5705
|
* @see https://tailwindcss.com/docs/outline-width
|
|
5704
5706
|
*/
|
|
5705
|
-
"outline-w": [{ outline: ["", mt, zi,
|
|
5707
|
+
"outline-w": [{ outline: ["", mt, zi, Ko] }],
|
|
5706
5708
|
/**
|
|
5707
5709
|
* Outline Color
|
|
5708
5710
|
* @see https://tailwindcss.com/docs/outline-color
|
|
@@ -5769,7 +5771,7 @@ var Rn = uA(), dA = (e) => {
|
|
|
5769
5771
|
* @deprecated since Tailwind CSS v4.0.0
|
|
5770
5772
|
* @see https://github.com/tailwindlabs/tailwindcss/blob/v4.0.0/packages/tailwindcss/src/utilities.ts#L4158
|
|
5771
5773
|
*/
|
|
5772
|
-
"ring-offset-w": [{ "ring-offset": [mt,
|
|
5774
|
+
"ring-offset-w": [{ "ring-offset": [mt, Ko] }],
|
|
5773
5775
|
/**
|
|
5774
5776
|
* Ring Offset Color
|
|
5775
5777
|
* @see https://v3.tailwindcss.com/docs/ring-offset-color
|
|
@@ -6564,7 +6566,7 @@ var Rn = uA(), dA = (e) => {
|
|
|
6564
6566
|
*/
|
|
6565
6567
|
"stroke-w": [
|
|
6566
6568
|
{
|
|
6567
|
-
stroke: [mt, zi,
|
|
6569
|
+
stroke: [mt, zi, Ko, Dv]
|
|
6568
6570
|
}
|
|
6569
6571
|
],
|
|
6570
6572
|
/**
|
|
@@ -6895,7 +6897,7 @@ function ym(e) {
|
|
|
6895
6897
|
return xm ? !1 : !Uc && e.width === 0 && e.height === 0 || Uc && e.width === 1 && e.height === 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "mouse" || // iOS VoiceOver returns 0.333• for width/height.
|
|
6896
6898
|
e.width < 1 && e.height < 1 && e.pressure === 0 && e.detail === 0 && e.pointerType === "touch";
|
|
6897
6899
|
}
|
|
6898
|
-
function
|
|
6900
|
+
function No(e, t) {
|
|
6899
6901
|
const n = ["mouse", "pen"];
|
|
6900
6902
|
return t || n.push("", void 0), n.includes(e);
|
|
6901
6903
|
}
|
|
@@ -6953,11 +6955,11 @@ function Yu(e) {
|
|
|
6953
6955
|
return !1;
|
|
6954
6956
|
}
|
|
6955
6957
|
}
|
|
6956
|
-
const YD = /transform|translate|scale|rotate|perspective|filter/, XD = /paint|layout|strict|content/,
|
|
6958
|
+
const YD = /transform|translate|scale|rotate|perspective|filter/, XD = /paint|layout|strict|content/, Yo = (e) => !!e && e !== "none";
|
|
6957
6959
|
let Af;
|
|
6958
6960
|
function Cm(e) {
|
|
6959
6961
|
const t = ut(e) ? On(e) : e;
|
|
6960
|
-
return
|
|
6962
|
+
return Yo(t.transform) || Yo(t.translate) || Yo(t.scale) || Yo(t.rotate) || Yo(t.perspective) || !Em() && (Yo(t.backdropFilter) || Yo(t.filter)) || YD.test(t.willChange || "") || XD.test(t.contain || "");
|
|
6961
6963
|
}
|
|
6962
6964
|
function ZD(e) {
|
|
6963
6965
|
let t = eo(e);
|
|
@@ -7087,9 +7089,9 @@ function Gc(e) {
|
|
|
7087
7089
|
return e ? e.hasAttribute(Qp) ? e : e.querySelector(`[${Qp}]`) || e : null;
|
|
7088
7090
|
}
|
|
7089
7091
|
function JD(e, t) {
|
|
7090
|
-
return t != null && !
|
|
7092
|
+
return t != null && !No(t) ? 0 : typeof e == "function" ? e() : e;
|
|
7091
7093
|
}
|
|
7092
|
-
function
|
|
7094
|
+
function Po(e, t, n) {
|
|
7093
7095
|
const r = JD(e, n);
|
|
7094
7096
|
return typeof r == "number" ? r : r?.[t];
|
|
7095
7097
|
}
|
|
@@ -7102,7 +7104,7 @@ function UC(e, t) {
|
|
|
7102
7104
|
function e_(e) {
|
|
7103
7105
|
return e?.includes("mouse") && e !== "mousedown";
|
|
7104
7106
|
}
|
|
7105
|
-
const Tt = "none", Lr = "trigger-press", Gt = "trigger-hover", Ws = "trigger-focus", ja = "outside-press",
|
|
7107
|
+
const Tt = "none", Lr = "trigger-press", Gt = "trigger-hover", Ws = "trigger-focus", ja = "outside-press", Ro = "item-press", Ju = "close-press", Vv = "clear-press", t_ = "chip-remove-press", zv = "track-press", n_ = "increment-press", r_ = "decrement-press", rr = "input-change", Fn = "input-clear", Bv = "input-blur", va = "input-paste", jC = "input-press", to = "focus-out", Es = "escape-key", ya = "list-navigation", Fr = "keyboard", ed = "pointer", o_ = "drag", Hv = "wheel", Uv = "scrub", km = "cancel-open", na = "sibling-open", GC = "disabled", jv = "missing", Gv = "initial", td = "imperative-action", s_ = "window-resize";
|
|
7106
7108
|
function Ie(e, t, n, r) {
|
|
7107
7109
|
let o = !1, s = !1;
|
|
7108
7110
|
const i = r ?? Ct;
|
|
@@ -7166,8 +7168,8 @@ function a_(e) {
|
|
|
7166
7168
|
return;
|
|
7167
7169
|
}
|
|
7168
7170
|
o.current = {
|
|
7169
|
-
open:
|
|
7170
|
-
close:
|
|
7171
|
+
open: Po(o.current, "open"),
|
|
7172
|
+
close: Po(n, "close")
|
|
7171
7173
|
};
|
|
7172
7174
|
}, [n, i, o, s]), /* @__PURE__ */ u(Nm.Provider, {
|
|
7173
7175
|
value: w.useMemo(() => ({
|
|
@@ -7222,7 +7224,7 @@ function l_(e, t = {
|
|
|
7222
7224
|
setIsInstantPhase: m
|
|
7223
7225
|
}, i.current = o, a.current = {
|
|
7224
7226
|
open: 0,
|
|
7225
|
-
close:
|
|
7227
|
+
close: Po(l.current, "close")
|
|
7226
7228
|
}, b !== null && b !== o ? (m(!0), x?.setIsInstantPhase(!0), x?.onOpenChange(!1, Ie(Tt))) : (m(!1), x?.setIsInstantPhase(!1));
|
|
7227
7229
|
}, [n, o, r, i, a, l, d, p]), Se(() => () => {
|
|
7228
7230
|
if (i.current === o) {
|
|
@@ -7371,7 +7373,7 @@ const WC = {
|
|
|
7371
7373
|
position: "fixed",
|
|
7372
7374
|
top: 0,
|
|
7373
7375
|
left: 0
|
|
7374
|
-
},
|
|
7376
|
+
}, Lo = {
|
|
7375
7377
|
...WC,
|
|
7376
7378
|
position: "absolute"
|
|
7377
7379
|
}, Vr = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
@@ -7404,13 +7406,13 @@ const ri = Math.min, Xr = Math.max, oi = Math.round, rs = Math.floor, Zr = (e) =
|
|
|
7404
7406
|
function qC(e, t, n) {
|
|
7405
7407
|
return Xr(e, ri(t, n));
|
|
7406
7408
|
}
|
|
7407
|
-
function
|
|
7409
|
+
function Oo(e, t) {
|
|
7408
7410
|
return typeof e == "function" ? e(t) : e;
|
|
7409
7411
|
}
|
|
7410
7412
|
function sr(e) {
|
|
7411
7413
|
return e.split("-")[0];
|
|
7412
7414
|
}
|
|
7413
|
-
function
|
|
7415
|
+
function Vo(e) {
|
|
7414
7416
|
return e.split("-")[1];
|
|
7415
7417
|
}
|
|
7416
7418
|
function Rm(e) {
|
|
@@ -7428,7 +7430,7 @@ function Mm(e) {
|
|
|
7428
7430
|
}
|
|
7429
7431
|
function m_(e, t, n) {
|
|
7430
7432
|
n === void 0 && (n = !1);
|
|
7431
|
-
const r =
|
|
7433
|
+
const r = Vo(e), o = Mm(e), s = Im(o);
|
|
7432
7434
|
let i = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
7433
7435
|
return t.reference[s] > t.floating[s] && (i = Wc(i)), [i, Wc(i)];
|
|
7434
7436
|
}
|
|
@@ -7453,7 +7455,7 @@ function v_(e, t, n) {
|
|
|
7453
7455
|
}
|
|
7454
7456
|
}
|
|
7455
7457
|
function y_(e, t, n, r) {
|
|
7456
|
-
const o =
|
|
7458
|
+
const o = Vo(e);
|
|
7457
7459
|
let s = v_(sr(e), n === "start", r);
|
|
7458
7460
|
return o && (s = s.map((i) => i + "-" + o), t && (s = s.concat(s.map(eh)))), s;
|
|
7459
7461
|
}
|
|
@@ -7499,7 +7501,7 @@ function wa(e) {
|
|
|
7499
7501
|
function Ul(e, t, n) {
|
|
7500
7502
|
return Math.floor(e / t) !== n;
|
|
7501
7503
|
}
|
|
7502
|
-
function
|
|
7504
|
+
function Io(e, t) {
|
|
7503
7505
|
return t < 0 || t >= e.length;
|
|
7504
7506
|
}
|
|
7505
7507
|
function Mc(e, t) {
|
|
@@ -7620,7 +7622,7 @@ function C_(e, {
|
|
|
7620
7622
|
disabledIndices: a
|
|
7621
7623
|
}), o && (p = o(t, d, p)));
|
|
7622
7624
|
}
|
|
7623
|
-
|
|
7625
|
+
Io(e, p) && (p = d);
|
|
7624
7626
|
}
|
|
7625
7627
|
if (n === "both") {
|
|
7626
7628
|
const m = rs(d / i);
|
|
@@ -7647,7 +7649,7 @@ function C_(e, {
|
|
|
7647
7649
|
disabledIndices: a
|
|
7648
7650
|
}), o && (p = o(t, d, p))), Ul(p, i, m) && (p = d));
|
|
7649
7651
|
const g = rs(l / i) === m;
|
|
7650
|
-
|
|
7652
|
+
Io(e, p) && (r && g ? (p = t.key === (s ? is : ss) ? l : fn(e, {
|
|
7651
7653
|
startingIndex: d - d % i - 1,
|
|
7652
7654
|
disabledIndices: a
|
|
7653
7655
|
}), o && (p = o(t, d, p))) : p = d);
|
|
@@ -7810,8 +7812,8 @@ function Yv(e) {
|
|
|
7810
7812
|
delete n.dataset.tabindex, r ? n.setAttribute("tabindex", r) : n.removeAttribute("tabindex");
|
|
7811
7813
|
});
|
|
7812
7814
|
}
|
|
7813
|
-
function
|
|
7814
|
-
return e.filter((o) => o.parentId === t).flatMap((o) => [...!n || o.context?.open ? [o] : [], ...
|
|
7815
|
+
function Ao(e, t, n = !0) {
|
|
7816
|
+
return e.filter((o) => o.parentId === t).flatMap((o) => [...!n || o.context?.open ? [o] : [], ...Ao(e, o.id, n)]);
|
|
7815
7817
|
}
|
|
7816
7818
|
function Xv(e, t) {
|
|
7817
7819
|
let n = [], r = e.find((o) => o.id === t)?.parentId;
|
|
@@ -7925,7 +7927,7 @@ function D_(e, t = "mui") {
|
|
|
7925
7927
|
}, [n, t]), o;
|
|
7926
7928
|
}
|
|
7927
7929
|
const ry = ir.useId;
|
|
7928
|
-
function
|
|
7930
|
+
function Do(e, t) {
|
|
7929
7931
|
if (ry !== void 0) {
|
|
7930
7932
|
const n = ry();
|
|
7931
7933
|
return e ?? (t ? `${t}-${n}` : n);
|
|
@@ -7954,7 +7956,7 @@ function lE(e = {}) {
|
|
|
7954
7956
|
container: n,
|
|
7955
7957
|
componentProps: r = Ct,
|
|
7956
7958
|
elementProps: o
|
|
7957
|
-
} = e, s =
|
|
7959
|
+
} = e, s = Do(), a = aE()?.portalNode, [c, l] = w.useState(null), [d, f] = w.useState(null), p = ve((x) => {
|
|
7958
7960
|
x !== null && f(x);
|
|
7959
7961
|
}), h = w.useRef(null);
|
|
7960
7962
|
Se(() => {
|
|
@@ -8084,12 +8086,12 @@ const Fm = /* @__PURE__ */ w.createContext(null);
|
|
|
8084
8086
|
process.env.NODE_ENV !== "production" && (Fm.displayName = "FloatingNodeContext");
|
|
8085
8087
|
const Lm = /* @__PURE__ */ w.createContext(null);
|
|
8086
8088
|
process.env.NODE_ENV !== "production" && (Lm.displayName = "FloatingTreeContext");
|
|
8087
|
-
const
|
|
8089
|
+
const zo = () => w.useContext(Fm)?.id || null, Bo = (e) => {
|
|
8088
8090
|
const t = w.useContext(Lm);
|
|
8089
8091
|
return e ?? t;
|
|
8090
8092
|
};
|
|
8091
8093
|
function Vm(e) {
|
|
8092
|
-
const t =
|
|
8094
|
+
const t = Do(), n = Bo(e), r = zo();
|
|
8093
8095
|
return Se(() => {
|
|
8094
8096
|
if (!t)
|
|
8095
8097
|
return;
|
|
@@ -8106,7 +8108,7 @@ function uE(e) {
|
|
|
8106
8108
|
const {
|
|
8107
8109
|
children: t,
|
|
8108
8110
|
id: n
|
|
8109
|
-
} = e, r =
|
|
8111
|
+
} = e, r = zo();
|
|
8110
8112
|
return /* @__PURE__ */ u(Fm.Provider, {
|
|
8111
8113
|
value: w.useMemo(() => ({
|
|
8112
8114
|
id: n,
|
|
@@ -8133,15 +8135,15 @@ function U_(e, t) {
|
|
|
8133
8135
|
return e instanceof n.KeyboardEvent ? "keyboard" : e instanceof n.FocusEvent ? t || "keyboard" : "pointerType" in e ? e.pointerType || "keyboard" : "touches" in e ? "touch" : e instanceof n.MouseEvent ? t || (e.detail === 0 ? "keyboard" : "mouse") : "";
|
|
8134
8136
|
}
|
|
8135
8137
|
const oy = 20;
|
|
8136
|
-
let
|
|
8138
|
+
let wo = [];
|
|
8137
8139
|
function zm() {
|
|
8138
|
-
|
|
8140
|
+
wo = wo.filter((e) => e.deref()?.isConnected);
|
|
8139
8141
|
}
|
|
8140
8142
|
function sy(e) {
|
|
8141
|
-
zm(), e && wn(e) !== "body" && (
|
|
8143
|
+
zm(), e && wn(e) !== "body" && (wo.push(new WeakRef(e)), wo.length > oy && (wo = wo.slice(-oy)));
|
|
8142
8144
|
}
|
|
8143
8145
|
function iy() {
|
|
8144
|
-
return zm(),
|
|
8146
|
+
return zm(), wo[wo.length - 1]?.deref();
|
|
8145
8147
|
}
|
|
8146
8148
|
function j_(e) {
|
|
8147
8149
|
return e ? Tm(e) ? e : Ga(e)[0] || e : null;
|
|
@@ -8174,7 +8176,7 @@ function Wa(e) {
|
|
|
8174
8176
|
} = e, g = "rootStore" in t ? t.rootStore : t, x = g.useState("open"), b = g.useState("domReferenceElement"), y = g.useState("floatingElement"), {
|
|
8175
8177
|
events: v,
|
|
8176
8178
|
dataRef: C
|
|
8177
|
-
} = g.context, E = ve(() => C.current.floatingContext?.nodeId), S = o === !1, N = Jp(b) && S, k = At(o), I = At(s), M = At(l), T = At(x), D =
|
|
8179
|
+
} = g.context, E = ve(() => C.current.floatingContext?.nodeId), S = o === !1, N = Jp(b) && S, k = At(o), I = At(s), M = At(l), T = At(x), D = Bo(h), O = aE(), _ = w.useRef(!1), P = w.useRef(!1), $ = w.useRef(!1), V = w.useRef(null), F = w.useRef(""), H = w.useRef(""), A = w.useRef(null), z = w.useRef(null), L = yn(A, p, O?.beforeInsideRef), U = yn(z, O?.afterInsideRef), G = Nt(), Y = Nt(), q = gs(), X = O != null, W = Gc(y), j = ve((re = W) => re ? Ga(re) : []), te = ve(() => m?.().filter((re) => re != null) ?? []);
|
|
8178
8180
|
w.useEffect(() => {
|
|
8179
8181
|
if (r || !a)
|
|
8180
8182
|
return;
|
|
@@ -8224,7 +8226,7 @@ function Wa(e) {
|
|
|
8224
8226
|
function ae(ce) {
|
|
8225
8227
|
const ue = ce.relatedTarget, le = ce.currentTarget, be = Et(ce);
|
|
8226
8228
|
a && ue == null && be != null && $e(y, be) && sy(be), queueMicrotask(() => {
|
|
8227
|
-
const Ee = E(), oe = g.context.triggerElements, Q = te(), de = ue?.hasAttribute(Ca("focus-guard")) && [A.current, z.current, O?.beforeInsideRef.current, O?.afterInsideRef.current, O?.beforeOutsideRef.current, O?.afterOutsideRef.current, jr(f), jr(d)].includes(ue), we = !($e(b, ue) || $e(y, ue) || $e(ue, y) || $e(O?.portalNode, ue) || Q.some((Z) => Z === ue || $e(Z, ue)) || oe.hasMatchingElement((Z) => $e(Z, ue)) || de || D && (
|
|
8229
|
+
const Ee = E(), oe = g.context.triggerElements, Q = te(), de = ue?.hasAttribute(Ca("focus-guard")) && [A.current, z.current, O?.beforeInsideRef.current, O?.afterInsideRef.current, O?.beforeOutsideRef.current, O?.afterOutsideRef.current, jr(f), jr(d)].includes(ue), we = !($e(b, ue) || $e(y, ue) || $e(ue, y) || $e(O?.portalNode, ue) || Q.some((Z) => Z === ue || $e(Z, ue)) || oe.hasMatchingElement((Z) => $e(Z, ue)) || de || D && (Ao(D.nodesRef.current, Ee).find((Z) => $e(Z.context?.elements.floating, ue) || $e(Z.context?.elements.domReference, ue)) || Xv(D.nodesRef.current, Ee).find((Z) => [Z.context?.elements.floating, Gc(Z.context?.elements.floating)].includes(ue) || Z.context?.elements.domReference === ue)));
|
|
8228
8230
|
if (le === b && W && ay(W), i && le !== b && !nd(be) && Lt(re) === re.body) {
|
|
8229
8231
|
if (wt(W) && (W.focus(), i === "popup")) {
|
|
8230
8232
|
q.request(() => {
|
|
@@ -8326,7 +8328,7 @@ function Wa(e) {
|
|
|
8326
8328
|
}
|
|
8327
8329
|
return () => {
|
|
8328
8330
|
v.off("openchange", ae);
|
|
8329
|
-
const me = Lt(re), ce = te(), ue = $e(y, me) || ce.some((oe) => oe === me || $e(oe, me)) || D &&
|
|
8331
|
+
const me = Lt(re), ce = te(), ue = $e(y, me) || ce.some((oe) => oe === me || $e(oe, me)) || D && Ao(D.nodesRef.current, E(), !1).some((oe) => $e(oe.context?.elements.floating, me)), le = I.current, be = F.current, Ee = fe(be);
|
|
8330
8332
|
queueMicrotask(() => {
|
|
8331
8333
|
const oe = j_(Ee), Q = typeof le != "boolean";
|
|
8332
8334
|
if (le && !_.current && wt(oe) && // If the focus moved somewhere else after mount, avoid returning focus
|
|
@@ -8405,11 +8407,11 @@ function xi(e, t = {}) {
|
|
|
8405
8407
|
}
|
|
8406
8408
|
return {
|
|
8407
8409
|
onPointerDown(b) {
|
|
8408
|
-
f.current =
|
|
8410
|
+
f.current = No(b.pointerType, !0) && ym(b.nativeEvent) ? "virtual" : b.pointerType;
|
|
8409
8411
|
},
|
|
8410
8412
|
onMouseDown(b) {
|
|
8411
8413
|
const y = f.current, v = b.nativeEvent, C = l.select("open");
|
|
8412
|
-
if (b.button !== 0 || r === "click" ||
|
|
8414
|
+
if (b.button !== 0 || r === "click" || No(y, !0) && s)
|
|
8413
8415
|
return;
|
|
8414
8416
|
const E = x(C, b.currentTarget, (k) => k === "click" || k === "mousedown"), S = Et(v);
|
|
8415
8417
|
if (Qu(S)) {
|
|
@@ -8429,7 +8431,7 @@ function xi(e, t = {}) {
|
|
|
8429
8431
|
f.current = void 0;
|
|
8430
8432
|
return;
|
|
8431
8433
|
}
|
|
8432
|
-
if (
|
|
8434
|
+
if (No(y, !0) && s)
|
|
8433
8435
|
return;
|
|
8434
8436
|
const v = l.select("open"), C = x(v, b.currentTarget, (E) => E === "click" || E === "mousedown" || E === "keydown" || E === "keyup");
|
|
8435
8437
|
g(C, b.nativeEvent, b.currentTarget, y);
|
|
@@ -8487,7 +8489,7 @@ function W_(e, t = {}) {
|
|
|
8487
8489
|
}));
|
|
8488
8490
|
}), b = ve((C) => {
|
|
8489
8491
|
s ? d.current || (x(C.clientX, C.clientY, C.currentTarget), m([])) : x(C.clientX, C.clientY, C.currentTarget);
|
|
8490
|
-
}), y =
|
|
8492
|
+
}), y = No(f) ? i : s;
|
|
8491
8493
|
w.useEffect(() => {
|
|
8492
8494
|
if (!n) {
|
|
8493
8495
|
g(a);
|
|
@@ -8547,14 +8549,14 @@ function vi(e, t = {}) {
|
|
|
8547
8549
|
externalTree: c
|
|
8548
8550
|
} = t, l = "rootStore" in e ? e.rootStore : e, d = l.useState("open"), f = l.useState("floatingElement"), {
|
|
8549
8551
|
dataRef: p
|
|
8550
|
-
} = l.context, h =
|
|
8552
|
+
} = l.context, h = Bo(c), m = ve(typeof o == "function" ? o : () => !1), g = typeof o == "function" ? m : o, x = g !== !1, b = ve(() => s), {
|
|
8551
8553
|
escapeKey: y,
|
|
8552
8554
|
outsidePress: v
|
|
8553
8555
|
} = K_(a), C = w.useRef(!1), E = w.useRef(!1), S = w.useRef(!1), N = w.useRef(!1), k = w.useRef(""), I = w.useRef(null), M = Nt(), T = Nt(), D = ve(() => {
|
|
8554
8556
|
T.clear(), p.current.insideReactTree = !1;
|
|
8555
8557
|
}), O = ve((L) => {
|
|
8556
8558
|
const U = p.current.floatingContext?.nodeId;
|
|
8557
|
-
return (h ?
|
|
8559
|
+
return (h ? Ao(h.nodesRef.current, U) : []).some((Y) => Y.context?.open && !Y.context.dataRef.current[L]);
|
|
8558
8560
|
}), _ = ve((L) => Df(L, l.select("floatingElement")) || Df(L, l.select("domReferenceElement"))), P = ve((L) => {
|
|
8559
8561
|
i() && l.setOpen(!1, Ie(Lr, L.nativeEvent));
|
|
8560
8562
|
}), $ = ve((L) => {
|
|
@@ -8607,7 +8609,7 @@ function vi(e, t = {}) {
|
|
|
8607
8609
|
return de === "intentional" && Q.type !== "click" || de === "sloppy" && Q.type === "click";
|
|
8608
8610
|
}
|
|
8609
8611
|
function te(Q) {
|
|
8610
|
-
const de = p.current.floatingContext?.nodeId, we = h &&
|
|
8612
|
+
const de = p.current.floatingContext?.nodeId, we = h && Ao(h.nodesRef.current, de).some((Z) => Df(Q, Z.context?.elements.floating));
|
|
8611
8613
|
return _(Q) || we;
|
|
8612
8614
|
}
|
|
8613
8615
|
function se(Q) {
|
|
@@ -8787,7 +8789,7 @@ function cy(e, t, n) {
|
|
|
8787
8789
|
y: r.y
|
|
8788
8790
|
};
|
|
8789
8791
|
}
|
|
8790
|
-
const m =
|
|
8792
|
+
const m = Vo(t);
|
|
8791
8793
|
return m && (h[i] += p * (m === "end" ? 1 : -1) * (n && l ? -1 : 1)), h;
|
|
8792
8794
|
}
|
|
8793
8795
|
async function Y_(e, t) {
|
|
@@ -8806,7 +8808,7 @@ async function Y_(e, t) {
|
|
|
8806
8808
|
elementContext: f = "floating",
|
|
8807
8809
|
altBoundary: p = !1,
|
|
8808
8810
|
padding: h = 0
|
|
8809
|
-
} =
|
|
8811
|
+
} = Oo(t, e), m = KC(h), x = a[p ? f === "floating" ? "reference" : "floating" : f], b = wa(await s.getClippingRect({
|
|
8810
8812
|
element: (n = await (s.isElement == null ? void 0 : s.isElement(x))) == null || n ? x : x.contextElement || await (s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)),
|
|
8811
8813
|
boundary: l,
|
|
8812
8814
|
rootBoundary: d,
|
|
@@ -8917,7 +8919,7 @@ const X_ = 50, Z_ = async (e, t, n) => {
|
|
|
8917
8919
|
fallbackAxisSideDirection: m = "none",
|
|
8918
8920
|
flipAlignment: g = !0,
|
|
8919
8921
|
...x
|
|
8920
|
-
} =
|
|
8922
|
+
} = Oo(e, t);
|
|
8921
8923
|
if ((n = s.arrow) != null && n.alignmentOffset)
|
|
8922
8924
|
return {};
|
|
8923
8925
|
const b = sr(o), y = tr(a), v = sr(a) === a, C = await (c.isRTL == null ? void 0 : c.isRTL(l.floating)), E = p || (v || !g ? [Wc(a)] : g_(a)), S = m !== "none";
|
|
@@ -8983,7 +8985,7 @@ async function J_(e, t) {
|
|
|
8983
8985
|
placement: n,
|
|
8984
8986
|
platform: r,
|
|
8985
8987
|
elements: o
|
|
8986
|
-
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = sr(n), a =
|
|
8988
|
+
} = e, s = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), i = sr(n), a = Vo(n), c = tr(n) === "y", l = fE.has(i) ? -1 : 1, d = s && c ? -1 : 1, f = Oo(t, e);
|
|
8987
8989
|
let {
|
|
8988
8990
|
mainAxis: p,
|
|
8989
8991
|
crossAxis: h,
|
|
@@ -9053,7 +9055,7 @@ const e$ = function(e) {
|
|
|
9053
9055
|
}
|
|
9054
9056
|
},
|
|
9055
9057
|
...l
|
|
9056
|
-
} =
|
|
9058
|
+
} = Oo(e, t), d = {
|
|
9057
9059
|
x: n,
|
|
9058
9060
|
y: r
|
|
9059
9061
|
}, f = await s.detectOverflow(t, l), p = tr(o), h = Rm(p);
|
|
@@ -9093,12 +9095,12 @@ const e$ = function(e) {
|
|
|
9093
9095
|
offset: l = 0,
|
|
9094
9096
|
mainAxis: d = !0,
|
|
9095
9097
|
crossAxis: f = !0
|
|
9096
|
-
} =
|
|
9098
|
+
} = Oo(e, t), p = {
|
|
9097
9099
|
x: o,
|
|
9098
9100
|
y: s
|
|
9099
9101
|
}, h = tr(i), m = Rm(h);
|
|
9100
9102
|
let g = p[m], x = p[h];
|
|
9101
|
-
const b =
|
|
9103
|
+
const b = Oo(l, t), y = typeof b == "number" ? {
|
|
9102
9104
|
mainAxis: b,
|
|
9103
9105
|
crossAxis: 0
|
|
9104
9106
|
} : {
|
|
@@ -9134,7 +9136,7 @@ const e$ = function(e) {
|
|
|
9134
9136
|
apply: i = () => {
|
|
9135
9137
|
},
|
|
9136
9138
|
...a
|
|
9137
|
-
} =
|
|
9139
|
+
} = Oo(e, t), c = await o.detectOverflow(t, a), l = sr(n), d = Vo(n), f = tr(n) === "y", {
|
|
9138
9140
|
width: p,
|
|
9139
9141
|
height: h
|
|
9140
9142
|
} = r.floating;
|
|
@@ -10443,7 +10445,7 @@ function SE(e) {
|
|
|
10443
10445
|
return (t) => t === "touch" ? e.current : !0;
|
|
10444
10446
|
}
|
|
10445
10447
|
function jm(e, t = !1) {
|
|
10446
|
-
const n =
|
|
10448
|
+
const n = Do(), r = zo() != null, o = zt(() => e(n, r)).current;
|
|
10447
10449
|
return EE({
|
|
10448
10450
|
popupStore: o,
|
|
10449
10451
|
treatPopupAsFloatingElement: t,
|
|
@@ -10793,7 +10795,7 @@ function RE(e) {
|
|
|
10793
10795
|
open: t = !1,
|
|
10794
10796
|
onOpenChange: n,
|
|
10795
10797
|
elements: r = {}
|
|
10796
|
-
} = e, o =
|
|
10798
|
+
} = e, o = Do(), s = zo() != null;
|
|
10797
10799
|
if (process.env.NODE_ENV !== "production") {
|
|
10798
10800
|
const a = r.reference;
|
|
10799
10801
|
a && !ut(a) && console.error("Cannot pass a virtual element to the `elements.reference` option,", "as it must be a real DOM element. Use `context.setPositionReference()`", "instead.");
|
|
@@ -10824,7 +10826,7 @@ function eF(e, t) {
|
|
|
10824
10826
|
const {
|
|
10825
10827
|
nodeId: n,
|
|
10826
10828
|
externalTree: r
|
|
10827
|
-
} = e, o = t.useState("referenceElement"), s = t.useState("floatingElement"), i = t.useState("domReferenceElement"), a = t.useState("open"), c = t.useState("floatingId"), [l, d] = w.useState(null), [f, p] = w.useState(void 0), [h, m] = w.useState(void 0), g = w.useRef(null), x =
|
|
10829
|
+
} = e, o = t.useState("referenceElement"), s = t.useState("floatingElement"), i = t.useState("domReferenceElement"), a = t.useState("open"), c = t.useState("floatingId"), [l, d] = w.useState(null), [f, p] = w.useState(void 0), [h, m] = w.useState(void 0), g = w.useRef(null), x = Bo(r), b = w.useMemo(() => ({
|
|
10828
10830
|
reference: o,
|
|
10829
10831
|
floating: s,
|
|
10830
10832
|
domReference: i
|
|
@@ -11013,7 +11015,7 @@ function Xm(e, t = {}) {
|
|
|
11013
11015
|
nodeId: o
|
|
11014
11016
|
} = t, s = "rootStore" in e ? e.rootStore : e, i = s.useState("open"), a = s.useState("floatingElement"), c = s.useState("domReferenceElement"), {
|
|
11015
11017
|
dataRef: l
|
|
11016
|
-
} = s.context, d =
|
|
11018
|
+
} = s.context, d = Bo(), f = zo(), p = Ym(s), h = Nt(), m = ve(() => UC(l.current.openEvent?.type, p.interactedInside)), g = ve(() => e_(l.current.openEvent?.type)), x = ve(() => {
|
|
11017
11019
|
Yc(p);
|
|
11018
11020
|
});
|
|
11019
11021
|
Se(() => {
|
|
@@ -11035,10 +11037,10 @@ function Xm(e, t = {}) {
|
|
|
11035
11037
|
if (!n)
|
|
11036
11038
|
return;
|
|
11037
11039
|
function b() {
|
|
11038
|
-
return !!(d && f &&
|
|
11040
|
+
return !!(d && f && Ao(d.nodesRef.current, f).length > 0);
|
|
11039
11041
|
}
|
|
11040
11042
|
function y(k) {
|
|
11041
|
-
const I =
|
|
11043
|
+
const I = Po(r, "close", p.pointerType), M = () => {
|
|
11042
11044
|
s.setOpen(!1, Ie(Gt, k)), d?.events.emit("floating.closed", k);
|
|
11043
11045
|
};
|
|
11044
11046
|
I ? p.openChangeTimeout.start(I, M) : (p.openChangeTimeout.clear(), M());
|
|
@@ -11062,7 +11064,7 @@ function Xm(e, t = {}) {
|
|
|
11062
11064
|
if (jc(k.relatedTarget, s.context.triggerElements))
|
|
11063
11065
|
return;
|
|
11064
11066
|
const I = l.current.floatingContext?.nodeId ?? o, M = k.relatedTarget;
|
|
11065
|
-
if (!(d && I && ut(M) &&
|
|
11067
|
+
if (!(d && I && ut(M) && Ao(d.nodesRef.current, I, !1).some((D) => $e(D.context?.elements.floating, M)))) {
|
|
11066
11068
|
if (p.handler) {
|
|
11067
11069
|
p.handler(k);
|
|
11068
11070
|
return;
|
|
@@ -11102,7 +11104,7 @@ function Zm(e, t = {}) {
|
|
|
11102
11104
|
} = t, g = "rootStore" in e ? e.rootStore : e, {
|
|
11103
11105
|
dataRef: x,
|
|
11104
11106
|
events: b
|
|
11105
|
-
} = g.context, y =
|
|
11107
|
+
} = g.context, y = Bo(l), v = Ym(g), C = w.useRef(!1), E = At(o), S = At(r), N = At(i), k = At(n), I = At(h), M = At(p), T = ve(() => UC(x.current.openEvent?.type, v.interactedInside)), D = ve(() => I.current?.() !== !1), O = ve(($, V, F) => {
|
|
11106
11108
|
const H = g.context.triggerElements;
|
|
11107
11109
|
if (H.hasElement(V))
|
|
11108
11110
|
return !$ || !$e($, V);
|
|
@@ -11130,7 +11132,7 @@ function Zm(e, t = {}) {
|
|
|
11130
11132
|
if (!n)
|
|
11131
11133
|
return;
|
|
11132
11134
|
function $(L, U = !0) {
|
|
11133
|
-
const G =
|
|
11135
|
+
const G = Po(S.current, "close", v.pointerType);
|
|
11134
11136
|
G ? v.openChangeTimeout.start(G, () => {
|
|
11135
11137
|
g.setOpen(!1, Ie(Gt, L)), y?.events.emit("floating.closed", L);
|
|
11136
11138
|
}) : U && (v.openChangeTimeout.clear(), g.setOpen(!1, Ie(Gt, L)), y?.events.emit("floating.closed", L));
|
|
@@ -11139,9 +11141,9 @@ function Zm(e, t = {}) {
|
|
|
11139
11141
|
if (!ut(V))
|
|
11140
11142
|
return;
|
|
11141
11143
|
function F(L) {
|
|
11142
|
-
if (v.openChangeTimeout.clear(), v.blockMouseMove = !1, s && !
|
|
11144
|
+
if (v.openChangeTimeout.clear(), v.blockMouseMove = !1, s && !No(v.pointerType))
|
|
11143
11145
|
return;
|
|
11144
|
-
const U = Lv(N.current), G =
|
|
11146
|
+
const U = Lv(N.current), G = Po(S.current, "open", v.pointerType), Y = Et(L), q = L.currentTarget ?? null, X = g.select("domReferenceElement");
|
|
11145
11147
|
let W = q;
|
|
11146
11148
|
if (ut(Y) && !g.context.triggerElements.hasElement(Y)) {
|
|
11147
11149
|
for (const me of g.context.triggerElements.elements())
|
|
@@ -11207,7 +11209,7 @@ function Zm(e, t = {}) {
|
|
|
11207
11209
|
const {
|
|
11208
11210
|
nativeEvent: F
|
|
11209
11211
|
} = V, H = V.currentTarget, A = g.select("domReferenceElement"), z = g.select("open"), L = O(A, H, V.target);
|
|
11210
|
-
if (s && !
|
|
11212
|
+
if (s && !No(v.pointerType))
|
|
11211
11213
|
return;
|
|
11212
11214
|
if (z && L && v.handleCloseOptions?.blockPointerEvents) {
|
|
11213
11215
|
const Y = g.select("floatingElement");
|
|
@@ -11289,7 +11291,7 @@ function Qm(e, t) {
|
|
|
11289
11291
|
grid: E
|
|
11290
11292
|
} = t, S = E != null;
|
|
11291
11293
|
process.env.NODE_ENV !== "production" && (a && (c || console.warn("`useListNavigation` looping must be enabled to allow escaping."), f || console.warn("`useListNavigation` must be virtual to allow escaping.")), x === "vertical" && S && console.warn("In grid list navigation mode, the `orientation` should", 'be either "horizontal" or "both".'));
|
|
11292
|
-
const N = "rootStore" in e ? e.rootStore : e, k = N.useState("open"), I = N.useState("floatingElement"), M = N.useState("domReferenceElement"), T = N.context.dataRef, D = Gc(I), O = Jp(M), _ = At(D), P =
|
|
11294
|
+
const N = "rootStore" in e ? e.rootStore : e, k = N.useState("open"), I = N.useState("floatingElement"), M = N.useState("domReferenceElement"), T = N.context.dataRef, D = Gc(I), O = Jp(M), _ = At(D), P = zo(), $ = Bo(C), V = w.useRef(p), F = w.useRef(i ?? -1), H = w.useRef(null), A = w.useRef(!0), z = ve((Q) => {
|
|
11293
11295
|
o(F.current === -1 ? null : F.current, Q);
|
|
11294
11296
|
}), L = w.useRef(!!I), U = w.useRef(k), G = w.useRef(!1), Y = w.useRef(!1), q = w.useRef(null), X = At(g), W = At(k), j = At(i), te = At(v), se = gs(), re = gs(), K = ve(() => {
|
|
11295
11297
|
function Q(ee) {
|
|
@@ -11331,7 +11333,7 @@ function Qm(e, t) {
|
|
|
11331
11333
|
};
|
|
11332
11334
|
de();
|
|
11333
11335
|
}
|
|
11334
|
-
} else
|
|
11336
|
+
} else Io(n.current, r) || (F.current = r, K(), Y.current = !1);
|
|
11335
11337
|
}
|
|
11336
11338
|
}, [s, k, I, r, j, l, n, x, d, z, K, re]), Se(() => {
|
|
11337
11339
|
if (!s || I || !$ || f || !L.current)
|
|
@@ -11382,7 +11384,7 @@ function Qm(e, t) {
|
|
|
11382
11384
|
startingIndex: de,
|
|
11383
11385
|
decrement: !0,
|
|
11384
11386
|
disabledIndices: g
|
|
11385
|
-
})),
|
|
11387
|
+
})), Io(n.current, F.current) && (F.current = -1), z(Q);
|
|
11386
11388
|
}
|
|
11387
11389
|
}), ue = w.useMemo(() => ({
|
|
11388
11390
|
onFocus(de) {
|
|
@@ -11590,7 +11592,7 @@ function eg(e = {}) {
|
|
|
11590
11592
|
if (I && ut(v.relatedTarget) && $e(E, v.relatedTarget))
|
|
11591
11593
|
return;
|
|
11592
11594
|
function D() {
|
|
11593
|
-
return !!(d &&
|
|
11595
|
+
return !!(d && Ao(d.nodesRef.current, l).length > 0);
|
|
11594
11596
|
}
|
|
11595
11597
|
function O() {
|
|
11596
11598
|
D() || b();
|
|
@@ -12021,7 +12023,7 @@ const bF = {
|
|
|
12021
12023
|
...Cn
|
|
12022
12024
|
}, CF = 300;
|
|
12023
12025
|
function St(e) {
|
|
12024
|
-
return
|
|
12026
|
+
return Do(e, "base-ui");
|
|
12025
12027
|
}
|
|
12026
12028
|
function PE(e, t) {
|
|
12027
12029
|
const n = w.useRef(null);
|
|
@@ -12235,7 +12237,7 @@ const kF = (e) => ({
|
|
|
12235
12237
|
element: l,
|
|
12236
12238
|
padding: d = 0,
|
|
12237
12239
|
offsetParent: f = "real"
|
|
12238
|
-
} =
|
|
12240
|
+
} = Oo(e, t) || {};
|
|
12239
12241
|
if (l == null)
|
|
12240
12242
|
return {};
|
|
12241
12243
|
const p = KC(d), h = {
|
|
@@ -12244,7 +12246,7 @@ const kF = (e) => ({
|
|
|
12244
12246
|
}, m = Mm(o), g = Im(m), x = await i.getDimensions(l), b = m === "y", y = b ? "top" : "left", v = b ? "bottom" : "right", C = b ? "clientHeight" : "clientWidth", E = s.reference[g] + s.reference[m] - h[m] - s.floating[g], S = h[m] - s.reference[m], N = f === "real" ? await i.getOffsetParent?.(l) : a.floating;
|
|
12245
12247
|
let k = a.floating[C] || s.floating[g];
|
|
12246
12248
|
(!k || !await i.isElement?.(N)) && (k = a.floating[C] || s.floating[g]);
|
|
12247
|
-
const I = E / 2 - S / 2, M = k / 2 - x[g] / 2 - 1, T = Math.min(p[y], M), D = Math.min(p[v], M), O = T, _ = k - x[g] - D, P = k / 2 - x[g] / 2 + I, $ = qC(O, P, _), V = !c.arrow &&
|
|
12249
|
+
const I = E / 2 - S / 2, M = k / 2 - x[g] / 2 - 1, T = Math.min(p[y], M), D = Math.min(p[v], M), O = T, _ = k - x[g] - D, P = k / 2 - x[g] / 2 + I, $ = qC(O, P, _), V = !c.arrow && Vo(o) != null && P !== $ && s.reference[g] / 2 - (P < O ? T : D) - x[g] / 2 < 0, F = V ? P < O ? P - O : P - _ : 0;
|
|
12248
12250
|
return {
|
|
12249
12251
|
[m]: h[m] + F,
|
|
12250
12252
|
data: {
|
|
@@ -12297,7 +12299,7 @@ function Ny(e, t, n) {
|
|
|
12297
12299
|
} = e;
|
|
12298
12300
|
return {
|
|
12299
12301
|
side: $E(t, sr(o), n),
|
|
12300
|
-
align:
|
|
12302
|
+
align: Vo(o) || "center",
|
|
12301
12303
|
anchor: {
|
|
12302
12304
|
width: r.reference.width,
|
|
12303
12305
|
height: r.reference.height
|
|
@@ -12509,7 +12511,7 @@ function MF(e, t) {
|
|
|
12509
12511
|
if (m && x && Ee.reference && Ee.floating)
|
|
12510
12512
|
return fy(Ee.reference, Ee.floating, we, le);
|
|
12511
12513
|
}, [m, x, Ee, we, le]);
|
|
12512
|
-
const he = sr(Z), pe = $E(o, he, A), Ce =
|
|
12514
|
+
const he = sr(Z), pe = $E(o, he, A), Ce = Vo(Z) || "center", Te = !!de.hide?.referenceHidden;
|
|
12513
12515
|
Se(() => {
|
|
12514
12516
|
E && x && ye && he !== z && k(he);
|
|
12515
12517
|
}, [E, x, ye, he, z]);
|
|
@@ -12852,7 +12854,7 @@ function Ql(e) {
|
|
|
12852
12854
|
}
|
|
12853
12855
|
const ag = /* @__PURE__ */ w.createContext(void 0);
|
|
12854
12856
|
process.env.NODE_ENV !== "production" && (ag.displayName = "ToolbarRootContext");
|
|
12855
|
-
function
|
|
12857
|
+
function Ho(e) {
|
|
12856
12858
|
const t = w.useContext(ag);
|
|
12857
12859
|
if (t === void 0 && !e)
|
|
12858
12860
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: ToolbarRootContext is missing. Toolbar parts must be placed within <Toolbar.Root>." : nt(69));
|
|
@@ -12883,7 +12885,7 @@ const HE = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
12883
12885
|
initialFocus: i,
|
|
12884
12886
|
finalFocus: a,
|
|
12885
12887
|
...c
|
|
12886
|
-
} = t, l = ks(), d = DE(), f =
|
|
12888
|
+
} = t, l = ks(), d = DE(), f = Ho(!0) != null, {
|
|
12887
12889
|
context: p,
|
|
12888
12890
|
hasClosePart: h
|
|
12889
12891
|
} = VF(), m = l.useState("open"), g = l.useState("openMethod"), x = l.useState("instantType"), b = l.useState("transitionStatus"), y = l.useState("popupProps"), v = l.useState("titleElementId"), C = l.useState("descriptionElementId"), E = l.useState("modal"), S = l.useState("mounted"), N = l.useState("openChangeReason"), k = l.useState("activeTriggerElement"), I = l.useState("floatingRootContext"), M = I.useState("floatingId"), T = l.useState("disabled"), D = l.useState("openOnHover"), O = l.useState("closeDelay");
|
|
@@ -13212,7 +13214,7 @@ const qE = yE(function(t, n) {
|
|
|
13212
13214
|
x.useSyncedValue("isInstantPhase", D);
|
|
13213
13215
|
const P = x.useState("disabled"), $ = c ?? P, V = At($), F = x.useState("trackCursorAxis"), H = x.useState("disableHoverablePopup"), A = w.useRef(!1), z = Nt(), L = w.useRef(void 0);
|
|
13214
13216
|
function U() {
|
|
13215
|
-
return O ?
|
|
13217
|
+
return O ? Po(T.current, "open") === 0 ? 0 : l ?? M ?? $y : S;
|
|
13216
13218
|
}
|
|
13217
13219
|
function G(K) {
|
|
13218
13220
|
const J = E.current;
|
|
@@ -13233,7 +13235,7 @@ const qE = yE(function(t, n) {
|
|
|
13233
13235
|
restMs: U,
|
|
13234
13236
|
delay() {
|
|
13235
13237
|
return f == null && O ? {
|
|
13236
|
-
close:
|
|
13238
|
+
close: Po(T.current, "close")
|
|
13237
13239
|
} : {
|
|
13238
13240
|
close: N
|
|
13239
13241
|
};
|
|
@@ -13253,7 +13255,7 @@ const qE = yE(function(t, n) {
|
|
|
13253
13255
|
return;
|
|
13254
13256
|
}
|
|
13255
13257
|
if (J && !fe && ce && !V.current && !x.select("open") && me && // Match the hover hook's non-strict mouse fallback for mouse-only event sequences.
|
|
13256
|
-
|
|
13258
|
+
No(L.current)) {
|
|
13257
13259
|
const ue = () => {
|
|
13258
13260
|
!A.current && !V.current && !x.select("open") && x.setOpen(!0, Ie(Gt, K, me));
|
|
13259
13261
|
}, le = U();
|
|
@@ -13621,7 +13623,7 @@ function nL({
|
|
|
13621
13623
|
[e, t, n]
|
|
13622
13624
|
), null;
|
|
13623
13625
|
}
|
|
13624
|
-
function
|
|
13626
|
+
function vo({ children: e }) {
|
|
13625
13627
|
return /* @__PURE__ */ u(jE, { render: e });
|
|
13626
13628
|
}
|
|
13627
13629
|
function Kt({ content: e, children: t, side: n = "top", className: r, defaultOpen: o, enterable: s = !1, open: i, onOpenChange: a }) {
|
|
@@ -14064,6 +14066,8 @@ const sL = ft({
|
|
|
14064
14066
|
success: "border-success-border bg-success-subtle text-success-text",
|
|
14065
14067
|
warning: "border-warning-border bg-warning-subtle text-warning-text",
|
|
14066
14068
|
danger: "border-danger-border bg-danger-subtle text-danger-text",
|
|
14069
|
+
// DX-4657 - between `warning` (amber) and `danger` (red): a "hold" that is worse than a caution and not yet a stop.
|
|
14070
|
+
orange: "border-orange-border bg-orange-subtle text-orange-text",
|
|
14067
14071
|
info: "border-info-border bg-info-subtle text-info-text",
|
|
14068
14072
|
// DX-3662 — the 8th tone, a quieter grey for a closed/inert fact.
|
|
14069
14073
|
// See `authored.css`'s own `--color-muted` comment for why this is a
|
|
@@ -14088,6 +14092,7 @@ const sL = ft({
|
|
|
14088
14092
|
success: "bg-success",
|
|
14089
14093
|
warning: "bg-warning",
|
|
14090
14094
|
danger: "bg-danger",
|
|
14095
|
+
orange: "bg-orange",
|
|
14091
14096
|
info: "bg-info",
|
|
14092
14097
|
muted: "bg-muted"
|
|
14093
14098
|
};
|
|
@@ -14208,16 +14213,16 @@ function fL(e, t, n) {
|
|
|
14208
14213
|
if (!(r > 0)) return null;
|
|
14209
14214
|
const o = Kf(r * 0.9, 18, 42) * Hy[n], s = Kf(r * 0.28, 6, 12) * Hy[n];
|
|
14210
14215
|
return {
|
|
14211
|
-
reachPx:
|
|
14212
|
-
diagonal:
|
|
14213
|
-
reachX:
|
|
14214
|
-
reachY:
|
|
14215
|
-
swellX:
|
|
14216
|
-
swellY:
|
|
14216
|
+
reachPx: Xo(o),
|
|
14217
|
+
diagonal: Xo(Math.hypot(e, t)),
|
|
14218
|
+
reachX: Xo(1 + o / e),
|
|
14219
|
+
reachY: Xo(1 + o / t),
|
|
14220
|
+
swellX: Xo(1 + s / e),
|
|
14221
|
+
swellY: Xo(1 + s / t),
|
|
14217
14222
|
/* A turn that is right for an icon is a swinging door on a card: the angle
|
|
14218
14223
|
shrinks as the thing gets longer, so the corners sweep about the same
|
|
14219
14224
|
distance whatever is wrapped. */
|
|
14220
|
-
tilt:
|
|
14225
|
+
tilt: Xo(Kf(432 / Math.max(e, t), 1.5, 9))
|
|
14221
14226
|
};
|
|
14222
14227
|
}
|
|
14223
14228
|
const lS = [
|
|
@@ -14234,7 +14239,7 @@ function hL(e) {
|
|
|
14234
14239
|
function Kf(e, t, n) {
|
|
14235
14240
|
return Math.min(n, Math.max(t, e));
|
|
14236
14241
|
}
|
|
14237
|
-
function
|
|
14242
|
+
function Xo(e) {
|
|
14238
14243
|
return Math.round(e * 1e3) / 1e3;
|
|
14239
14244
|
}
|
|
14240
14245
|
const mL = 520;
|
|
@@ -17547,7 +17552,7 @@ function TV(e, t) {
|
|
|
17547
17552
|
}
|
|
17548
17553
|
const kg = /* @__PURE__ */ w.createContext(void 0);
|
|
17549
17554
|
process.env.NODE_ENV !== "production" && (kg.displayName = "DialogRootContext");
|
|
17550
|
-
function
|
|
17555
|
+
function Uo(e) {
|
|
17551
17556
|
const t = w.useContext(kg);
|
|
17552
17557
|
if (!e && t === void 0)
|
|
17553
17558
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: DialogRootContext is missing. Dialog parts must be placed within <Dialog.Root>." : nt(27));
|
|
@@ -17560,7 +17565,7 @@ const Ja = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
17560
17565
|
style: s,
|
|
17561
17566
|
forceRender: i = !1,
|
|
17562
17567
|
...a
|
|
17563
|
-
} = t, c =
|
|
17568
|
+
} = t, c = Uo(), l = c.useState("open"), d = c.useState("nested"), f = c.useState("mounted"), p = c.useState("transitionStatus");
|
|
17564
17569
|
return Ne("div", t, {
|
|
17565
17570
|
state: {
|
|
17566
17571
|
open: l,
|
|
@@ -17588,7 +17593,7 @@ const el = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
17588
17593
|
disabled: i = !1,
|
|
17589
17594
|
nativeButton: a = !0,
|
|
17590
17595
|
...c
|
|
17591
|
-
} = t, l =
|
|
17596
|
+
} = t, l = Uo(), d = l.useState("open"), {
|
|
17592
17597
|
getButtonProps: f,
|
|
17593
17598
|
buttonRef: p
|
|
17594
17599
|
} = Bt({
|
|
@@ -17616,7 +17621,7 @@ const Ng = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
17616
17621
|
style: s,
|
|
17617
17622
|
id: i,
|
|
17618
17623
|
...a
|
|
17619
|
-
} = t, c =
|
|
17624
|
+
} = t, c = Uo(), l = St(i);
|
|
17620
17625
|
return c.useSyncedValueWithCleanup("descriptionElementId", l), Ne("p", t, {
|
|
17621
17626
|
ref: n,
|
|
17622
17627
|
props: [{
|
|
@@ -17649,7 +17654,7 @@ const OV = {
|
|
|
17649
17654
|
finalFocus: i,
|
|
17650
17655
|
initialFocus: a,
|
|
17651
17656
|
...c
|
|
17652
|
-
} = t, l =
|
|
17657
|
+
} = t, l = Uo(), d = l.useState("descriptionElementId"), f = l.useState("disablePointerDismissal"), p = l.useState("floatingRootContext"), h = l.useState("popupProps"), m = l.useState("modal"), g = l.useState("mounted"), x = l.useState("nested"), b = l.useState("nestedOpenDialogCount"), y = l.useState("open"), v = l.useState("openMethod"), C = l.useState("titleElementId"), E = l.useState("transitionStatus"), S = l.useState("role"), N = p.useState("floatingId");
|
|
17653
17658
|
PV(), tn({
|
|
17654
17659
|
open: y,
|
|
17655
17660
|
ref: l.context.popupRef,
|
|
@@ -17698,7 +17703,7 @@ const nl = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
17698
17703
|
const {
|
|
17699
17704
|
keepMounted: r = !1,
|
|
17700
17705
|
...o
|
|
17701
|
-
} = t, s =
|
|
17706
|
+
} = t, s = Uo(), i = s.useState("mounted"), a = s.useState("modal"), c = s.useState("open");
|
|
17702
17707
|
return i || r ? /* @__PURE__ */ u(Rg.Provider, {
|
|
17703
17708
|
value: r,
|
|
17704
17709
|
children: /* @__PURE__ */ R(bi, {
|
|
@@ -17835,7 +17840,7 @@ function US(e, t) {
|
|
|
17835
17840
|
handle: d,
|
|
17836
17841
|
triggerId: f,
|
|
17837
17842
|
defaultTriggerId: p = null
|
|
17838
|
-
} = t, h = e === "drawer", m = e === "alert-dialog", g = m ? !0 : c, x = m || a, b = m ? "alertdialog" : "dialog", y =
|
|
17843
|
+
} = t, h = e === "drawer", m = e === "alert-dialog", g = m ? !0 : c, x = m || a, b = m ? "alertdialog" : "dialog", y = Uo(!0), v = y != null, C = {
|
|
17839
17844
|
modal: g,
|
|
17840
17845
|
disablePointerDismissal: x,
|
|
17841
17846
|
nested: v,
|
|
@@ -17882,7 +17887,7 @@ const rl = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
17882
17887
|
style: s,
|
|
17883
17888
|
id: i,
|
|
17884
17889
|
...a
|
|
17885
|
-
} = t, c =
|
|
17890
|
+
} = t, c = Uo(), l = St(i);
|
|
17886
17891
|
return c.useSyncedValueWithCleanup("titleElementId", l), Ne("h2", t, {
|
|
17887
17892
|
ref: n,
|
|
17888
17893
|
props: [{
|
|
@@ -17902,7 +17907,7 @@ const Pd = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
17902
17907
|
payload: l,
|
|
17903
17908
|
handle: d,
|
|
17904
17909
|
...f
|
|
17905
|
-
} = t, p =
|
|
17910
|
+
} = t, p = Uo(!0), m = md(d) ?? p;
|
|
17906
17911
|
if (!m)
|
|
17907
17912
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Dialog.Trigger> must be used within <Dialog.Root> or provided with a handle." : nt(79));
|
|
17908
17913
|
const g = St(c), x = m.useState("floatingRootContext"), b = m.useState("isOpenedByTrigger", g), y = m.useState("triggerPopupId", g), v = w.useRef(null), {
|
|
@@ -18103,7 +18108,7 @@ function vs({
|
|
|
18103
18108
|
function cQ({ children: e }) {
|
|
18104
18109
|
return /* @__PURE__ */ u(el, { render: e });
|
|
18105
18110
|
}
|
|
18106
|
-
function
|
|
18111
|
+
function jo({
|
|
18107
18112
|
trigger: e,
|
|
18108
18113
|
open: t,
|
|
18109
18114
|
onOpenChange: n,
|
|
@@ -19628,7 +19633,7 @@ function Yz(e) {
|
|
|
19628
19633
|
const _ = fn(T, {
|
|
19629
19634
|
disabledIndices: f
|
|
19630
19635
|
});
|
|
19631
|
-
|
|
19636
|
+
Io(T, _) || E(_);
|
|
19632
19637
|
}
|
|
19633
19638
|
Ay(x.current, D, s, n);
|
|
19634
19639
|
});
|
|
@@ -19640,7 +19645,7 @@ function Yz(e) {
|
|
|
19640
19645
|
const T = fn(M, {
|
|
19641
19646
|
disabledIndices: f
|
|
19642
19647
|
});
|
|
19643
|
-
|
|
19648
|
+
Io(M, T) || E(T);
|
|
19644
19649
|
}
|
|
19645
19650
|
}, [f, i, C, y, E]);
|
|
19646
19651
|
const N = ve((M, T, D) => o ? o(M, T, D, y) : D), k = ve((M) => {
|
|
@@ -19672,7 +19677,7 @@ function Yz(e) {
|
|
|
19672
19677
|
startingIndex: H,
|
|
19673
19678
|
decrement: U,
|
|
19674
19679
|
disabledIndices: f
|
|
19675
|
-
})), H !== C && !
|
|
19680
|
+
})), H !== C && !Io(y.current, H) && (d && M.stopPropagation(), (g || T || L || U) && M.preventDefault(), E(H, !0), queueMicrotask(() => {
|
|
19676
19681
|
y.current[H]?.focus();
|
|
19677
19682
|
}));
|
|
19678
19683
|
});
|
|
@@ -19782,7 +19787,7 @@ const ik = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
19782
19787
|
render: f,
|
|
19783
19788
|
style: p,
|
|
19784
19789
|
...h
|
|
19785
|
-
} = t, m =
|
|
19790
|
+
} = t, m = Ho(!0), g = $g(), x = l !== void 0 || r !== void 0, b = (m?.disabled ?? !1) || (g?.disabled ?? !1) || o, [y, v] = un({
|
|
19786
19791
|
controlled: l,
|
|
19787
19792
|
default: l === void 0 ? r ?? In : void 0,
|
|
19788
19793
|
name: "ToggleGroup",
|
|
@@ -19844,7 +19849,7 @@ const _d = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
19844
19849
|
});
|
|
19845
19850
|
process.env.NODE_ENV !== "production" && (_d.displayName = "Separator");
|
|
19846
19851
|
const ak = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
19847
|
-
const o =
|
|
19852
|
+
const o = Ho().orientation === "vertical" ? "horizontal" : "vertical";
|
|
19848
19853
|
return /* @__PURE__ */ u(_d, {
|
|
19849
19854
|
orientation: o,
|
|
19850
19855
|
...t,
|
|
@@ -19903,7 +19908,7 @@ const ck = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
19903
19908
|
} = t, {
|
|
19904
19909
|
orientation: c,
|
|
19905
19910
|
disabled: l
|
|
19906
|
-
} =
|
|
19911
|
+
} = Ho(), d = l || o, f = w.useMemo(() => ({
|
|
19907
19912
|
disabled: d
|
|
19908
19913
|
}), [d]), h = Ne("div", t, {
|
|
19909
19914
|
state: {
|
|
@@ -19933,7 +19938,7 @@ const uk = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
19933
19938
|
} = t, {
|
|
19934
19939
|
disabled: d,
|
|
19935
19940
|
orientation: f
|
|
19936
|
-
} =
|
|
19941
|
+
} = Ho(), p = $g(), h = d || (p?.disabled ?? !1) || o, m = w.useMemo(() => ({
|
|
19937
19942
|
disabled: h,
|
|
19938
19943
|
focusableWhenDisabled: s
|
|
19939
19944
|
}), [h, s]), {
|
|
@@ -19983,7 +19988,7 @@ const dk = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
19983
19988
|
} = t, {
|
|
19984
19989
|
disabled: l,
|
|
19985
19990
|
orientation: d
|
|
19986
|
-
} =
|
|
19991
|
+
} = Ho(), f = $g(), p = l || (f?.disabled ?? !1) || i, h = w.useMemo(() => ({
|
|
19987
19992
|
disabled: p,
|
|
19988
19993
|
focusableWhenDisabled: o
|
|
19989
19994
|
}), [p, o]), {
|
|
@@ -21219,7 +21224,7 @@ function D5(e) {
|
|
|
21219
21224
|
const t = _k.exec(e);
|
|
21220
21225
|
return t ? t[2].length : 0;
|
|
21221
21226
|
}
|
|
21222
|
-
function
|
|
21227
|
+
function xo(e) {
|
|
21223
21228
|
return (t, n) => {
|
|
21224
21229
|
const r = oo(t, n)[0], o = xr(r.text), s = o ? r.text.slice(0, r.text.length - o.body.length) : "", i = o ? o.body : r.text, a = _k.exec(i), c = a ? a[1] : /^\s*/.exec(i)[0], l = a ? i.slice(a[0].length) : i.slice(c.length), d = e === 0 ? `${s}${c}${l}` : `${s}${c}${"#".repeat(e)} ${l}`;
|
|
21225
21230
|
return d === r.text ? null : Si(n, [r], [d]);
|
|
@@ -21228,7 +21233,7 @@ function bo(e) {
|
|
|
21228
21233
|
function hw(e) {
|
|
21229
21234
|
return (t, n) => {
|
|
21230
21235
|
const r = oo(t, n)[0], o = D5(r.text), s = Math.max(0, Math.min(6, o + e));
|
|
21231
|
-
return s === o ? null :
|
|
21236
|
+
return s === o ? null : xo(s)(t, n);
|
|
21232
21237
|
};
|
|
21233
21238
|
}
|
|
21234
21239
|
const _5 = /^(\s*)([-*+])(\s+)/, $5 = /^(\s*)(\d{1,9})([.)])(\s+)/;
|
|
@@ -21813,13 +21818,13 @@ const jg = [
|
|
|
21813
21818
|
{ key: "ctrl+k", label: "Ctrl+K", description: "Insert link", group: "formatting", command: j5() },
|
|
21814
21819
|
{ key: "ctrl+shift+i", label: "Ctrl+Shift+I", description: "Insert image", group: "formatting", request: "pickImages" },
|
|
21815
21820
|
/* Headings */
|
|
21816
|
-
{ key: "ctrl+0", label: "Ctrl+0", description: "Convert to paragraph", group: "headings", command:
|
|
21817
|
-
{ key: "ctrl+1", label: "Ctrl+1", description: "Heading 1", group: "headings", command:
|
|
21818
|
-
{ key: "ctrl+2", label: "Ctrl+2", description: "Heading 2", group: "headings", command:
|
|
21819
|
-
{ key: "ctrl+3", label: "Ctrl+3", description: "Heading 3", group: "headings", command:
|
|
21820
|
-
{ key: "ctrl+4", label: "Ctrl+4", description: "Heading 4", group: "headings", command:
|
|
21821
|
-
{ key: "ctrl+5", label: "Ctrl+5", description: "Heading 5", group: "headings", command:
|
|
21822
|
-
{ key: "ctrl+6", label: "Ctrl+6", description: "Heading 6", group: "headings", command:
|
|
21821
|
+
{ key: "ctrl+0", label: "Ctrl+0", description: "Convert to paragraph", group: "headings", command: xo(0) },
|
|
21822
|
+
{ key: "ctrl+1", label: "Ctrl+1", description: "Heading 1", group: "headings", command: xo(1) },
|
|
21823
|
+
{ key: "ctrl+2", label: "Ctrl+2", description: "Heading 2", group: "headings", command: xo(2) },
|
|
21824
|
+
{ key: "ctrl+3", label: "Ctrl+3", description: "Heading 3", group: "headings", command: xo(3) },
|
|
21825
|
+
{ key: "ctrl+4", label: "Ctrl+4", description: "Heading 4", group: "headings", command: xo(4) },
|
|
21826
|
+
{ key: "ctrl+5", label: "Ctrl+5", description: "Heading 5", group: "headings", command: xo(5) },
|
|
21827
|
+
{ key: "ctrl+6", label: "Ctrl+6", description: "Heading 6", group: "headings", command: xo(6) },
|
|
21823
21828
|
{ key: "ctrl+shift+comma", label: "Ctrl+Shift+,", description: "Decrease heading level", group: "headings", command: hw(-1) },
|
|
21824
21829
|
{ key: "ctrl+shift+period", label: "Ctrl+Shift+.", description: "Increase heading level", group: "headings", command: hw(1) },
|
|
21825
21830
|
/* Lists */
|
|
@@ -22933,7 +22938,7 @@ function zd(e) {
|
|
|
22933
22938
|
}
|
|
22934
22939
|
const Wg = /* @__PURE__ */ w.createContext(void 0);
|
|
22935
22940
|
process.env.NODE_ENV !== "production" && (Wg.displayName = "MenuRootContext");
|
|
22936
|
-
function
|
|
22941
|
+
function Go(e) {
|
|
22937
22942
|
const t = w.useContext(Wg);
|
|
22938
22943
|
if (t === void 0 && !e)
|
|
22939
22944
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: MenuRootContext is missing. Menu parts must be placed within <Menu.Root>." : nt(36));
|
|
@@ -22978,7 +22983,7 @@ function F4(e) {
|
|
|
22978
22983
|
onClick(h) {
|
|
22979
22984
|
t && l.emit("close", {
|
|
22980
22985
|
domEvent: h,
|
|
22981
|
-
reason:
|
|
22986
|
+
reason: Ro
|
|
22982
22987
|
});
|
|
22983
22988
|
},
|
|
22984
22989
|
onMouseUp(h) {
|
|
@@ -23065,7 +23070,7 @@ const Xg = {
|
|
|
23065
23070
|
label: i
|
|
23066
23071
|
}), x = zd(!0), b = St(s), {
|
|
23067
23072
|
store: y
|
|
23068
|
-
} =
|
|
23073
|
+
} = Go(), v = y.useState("disabled"), C = c || v, E = y.useState("isActive", g.index), S = y.useState("itemProps"), [N, k] = un({
|
|
23069
23074
|
controlled: d,
|
|
23070
23075
|
default: f ?? !1,
|
|
23071
23076
|
name: "MenuCheckboxItem",
|
|
@@ -23088,7 +23093,7 @@ const Xg = {
|
|
|
23088
23093
|
checked: N
|
|
23089
23094
|
}), [C, E, N]);
|
|
23090
23095
|
function D(_) {
|
|
23091
|
-
const P = Ie(
|
|
23096
|
+
const P = Ie(Ro, _.nativeEvent, void 0, {
|
|
23092
23097
|
preventUnmountOnClose: bt
|
|
23093
23098
|
});
|
|
23094
23099
|
p?.(!N, P), !P.isCanceled && k(($) => !$);
|
|
@@ -23173,7 +23178,7 @@ const Jk = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
23173
23178
|
label: i
|
|
23174
23179
|
}), h = zd(!0), m = St(s), {
|
|
23175
23180
|
store: g
|
|
23176
|
-
} =
|
|
23181
|
+
} = Go(), x = g.useState("disabled"), b = c || x, y = g.useState("isActive", p.index), v = g.useState("itemProps"), {
|
|
23177
23182
|
getItemProps: C,
|
|
23178
23183
|
itemRef: E
|
|
23179
23184
|
} = Yg({
|
|
@@ -23205,10 +23210,10 @@ const eN = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
23205
23210
|
...a
|
|
23206
23211
|
} = t, {
|
|
23207
23212
|
store: c
|
|
23208
|
-
} =
|
|
23213
|
+
} = Go(), {
|
|
23209
23214
|
side: l,
|
|
23210
23215
|
align: d
|
|
23211
|
-
} = zd(), f =
|
|
23216
|
+
} = zd(), f = Ho(!0) != null, p = c.useState("open"), h = c.useState("transitionStatus"), m = c.useState("popupProps"), g = c.useState("mounted"), x = c.useState("instantType"), b = c.useState("activeTriggerElement"), y = c.useState("parent"), v = c.useState("lastOpenChangeReason"), C = c.useState("rootId"), E = c.useState("floatingRootContext"), S = c.useState("floatingTreeRoot"), N = c.useState("closeDelay"), k = c.useState("hoverEnabled"), I = c.useState("disabled"), M = c.useState("openMethod"), T = y.type === "context-menu";
|
|
23212
23217
|
tn({
|
|
23213
23218
|
open: p,
|
|
23214
23219
|
ref: c.context.popupRef,
|
|
@@ -23276,7 +23281,7 @@ const tN = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
23276
23281
|
...o
|
|
23277
23282
|
} = t, {
|
|
23278
23283
|
store: s
|
|
23279
|
-
} =
|
|
23284
|
+
} = Go();
|
|
23280
23285
|
return s.useState("mounted") || r ? /* @__PURE__ */ u(Zg.Provider, {
|
|
23281
23286
|
value: r,
|
|
23282
23287
|
children: /* @__PURE__ */ u(bi, {
|
|
@@ -23306,7 +23311,7 @@ const nN = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
23306
23311
|
...y
|
|
23307
23312
|
} = t, {
|
|
23308
23313
|
store: v
|
|
23309
|
-
} =
|
|
23314
|
+
} = Go(), C = V4(), E = qg(!0), S = v.useState("parent"), N = v.useState("floatingRootContext"), k = v.useState("floatingTreeRoot"), I = v.useState("mounted"), M = v.useState("open"), T = v.useState("modal"), D = v.useState("openMethod"), O = v.useState("activeTriggerElement"), _ = v.useState("transitionStatus"), P = v.useState("positionerElement"), $ = v.useState("instantType"), V = v.useState("adaptiveOrigin"), F = v.useState("lastOpenChangeReason"), H = v.useState("floatingNodeId"), A = v.useState("floatingParentNodeId"), z = N.useState("domReferenceElement"), L = w.useRef(null), U = id(P);
|
|
23310
23315
|
let G = r, Y = l, q = d, X = c, W = x;
|
|
23311
23316
|
S.type === "context-menu" && (G = r ?? S.context?.anchor, X = X ?? "start", !a && X !== "center" && (q = t.alignOffset ?? 2, Y = t.sideOffset ?? -5));
|
|
23312
23317
|
let j = a, te = X;
|
|
@@ -23502,7 +23507,7 @@ const oN = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
23502
23507
|
label: i
|
|
23503
23508
|
}), m = zd(!0), g = St(s), {
|
|
23504
23509
|
store: x
|
|
23505
|
-
} =
|
|
23510
|
+
} = Go(), b = x.useState("isActive", h.index), y = x.useState("itemProps"), {
|
|
23506
23511
|
value: v,
|
|
23507
23512
|
setValue: C,
|
|
23508
23513
|
disabled: E
|
|
@@ -23524,7 +23529,7 @@ const oN = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
23524
23529
|
checked: k
|
|
23525
23530
|
}), [N, b, k]);
|
|
23526
23531
|
function D(_) {
|
|
23527
|
-
const P = Ie(
|
|
23532
|
+
const P = Ie(Ro, _.nativeEvent, void 0, {
|
|
23528
23533
|
preventUnmountOnClose: bt
|
|
23529
23534
|
});
|
|
23530
23535
|
C(d, P);
|
|
@@ -23708,7 +23713,7 @@ const cN = Um(function(t) {
|
|
|
23708
23713
|
triggerId: m,
|
|
23709
23714
|
defaultTriggerId: g = null,
|
|
23710
23715
|
highlightItemOnHover: x = !0
|
|
23711
|
-
} = t, b = qg(!0), y =
|
|
23716
|
+
} = t, b = qg(!0), y = Go(!0), v = aN(!0), C = W4(), E = w.useMemo(() => C && y ? {
|
|
23712
23717
|
type: "menu",
|
|
23713
23718
|
store: y.store
|
|
23714
23719
|
} : v ? {
|
|
@@ -23727,7 +23732,7 @@ const cN = Um(function(t) {
|
|
|
23727
23732
|
parent: E
|
|
23728
23733
|
});
|
|
23729
23734
|
S.useControlledProp("openProp", r), S.useControlledProp("triggerIdProp", m), S.useContextCallback("onOpenChangeComplete", s);
|
|
23730
|
-
const N =
|
|
23735
|
+
const N = Do(), k = Do(), I = S.useState("floatingTreeRoot"), M = Vm(I), T = zo(), D = S.useState("open"), O = S.useState("activeTriggerElement"), _ = S.useState("positionerElement"), P = S.useState("hoverEnabled"), $ = S.useState("disabled"), V = S.useState("lastOpenChangeReason"), F = S.useState("parent"), H = S.useState("activeIndex"), A = S.useState("payload"), z = S.useState("floatingParentNodeId"), L = w.useRef(null), U = w.useRef(F.type !== "context-menu"), G = Nt(), Y = w.useRef(!0), q = Nt(), X = z != null;
|
|
23731
23736
|
process.env.NODE_ENV !== "production" && F.type !== void 0 && c !== void 0 && console.warn("Base UI: The `modal` prop is not supported on nested menus. It will be ignored.");
|
|
23732
23737
|
const {
|
|
23733
23738
|
openMethod: W,
|
|
@@ -23784,7 +23789,7 @@ const cN = Um(function(t) {
|
|
|
23784
23789
|
ee && ke === Ws ? (Y.current = !1, q.start(300, () => {
|
|
23785
23790
|
Y.current = !0;
|
|
23786
23791
|
})) : (Y.current = !0, q.clear());
|
|
23787
|
-
const Oe = (ke === Lr || ke ===
|
|
23792
|
+
const Oe = (ke === Lr || ke === Ro) && _e.detail === 0, Me = !ee && (ke === Es || ke == null), Ye = {
|
|
23788
23793
|
open: ee,
|
|
23789
23794
|
openChangeReason: ke
|
|
23790
23795
|
};
|
|
@@ -23964,10 +23969,10 @@ const dN = yE(function(t, n) {
|
|
|
23964
23969
|
handle: p,
|
|
23965
23970
|
payload: h,
|
|
23966
23971
|
...m
|
|
23967
|
-
} = t, g =
|
|
23972
|
+
} = t, g = Go(!0), b = md(p) ?? g?.store;
|
|
23968
23973
|
if (!b)
|
|
23969
23974
|
throw new Error(process.env.NODE_ENV !== "production" ? "Base UI: <Menu.Trigger> must be either used within a <Menu.Root> component or provided with a handle." : nt(85));
|
|
23970
|
-
const y = St(c), v = b.useState("isTriggerActive", y), C = b.useState("floatingRootContext"), E = b.useState("isOpenedByTrigger", y), S = b.useState("triggerPopupId", y), N = w.useRef(null), k = Z4(), I = bd(!0), M =
|
|
23975
|
+
const y = St(c), v = b.useState("isTriggerActive", y), C = b.useState("floatingRootContext"), E = b.useState("isOpenedByTrigger", y), S = b.useState("triggerPopupId", y), N = w.useRef(null), k = Z4(), I = bd(!0), M = Bo(), T = w.useMemo(() => M ?? new $m(), [M]), D = Vm(T), O = zo(), {
|
|
23971
23976
|
registerTrigger: _,
|
|
23972
23977
|
isMountedByThisTrigger: P
|
|
23973
23978
|
} = cd(y, N, b, {
|
|
@@ -25672,7 +25677,7 @@ function z3({
|
|
|
25672
25677
|
/* @__PURE__ */ u("span", { className: "flex-1", children: "This secret will be removed when you save." }),
|
|
25673
25678
|
/* @__PURE__ */ u(Ze, { variant: "link", size: "xs", disabled: p, onClick: _, children: "Undo" })
|
|
25674
25679
|
] }) : T && /* @__PURE__ */ u("div", { children: /* @__PURE__ */ u(
|
|
25675
|
-
|
|
25680
|
+
jo,
|
|
25676
25681
|
{
|
|
25677
25682
|
open: E,
|
|
25678
25683
|
onOpenChange: S,
|
|
@@ -25749,7 +25754,7 @@ function Hd() {
|
|
|
25749
25754
|
return e;
|
|
25750
25755
|
}
|
|
25751
25756
|
const H3 = 500, yh = 16;
|
|
25752
|
-
function
|
|
25757
|
+
function Co(e, t, n) {
|
|
25753
25758
|
if (!e)
|
|
25754
25759
|
return 0;
|
|
25755
25760
|
const r = getComputedStyle(e), o = `${t}${n === "x" ? "Inline" : "Block"}`, s = parseFloat(r[`${o}Start`]);
|
|
@@ -25853,7 +25858,7 @@ const j3 = {
|
|
|
25853
25858
|
const ee = se.current === "vertical", ye = ee ? U.current : G.current, ke = ee ? z.current : L.current;
|
|
25854
25859
|
if (!ye || !ke)
|
|
25855
25860
|
return;
|
|
25856
|
-
const Fe = ee ? "y" : "x", _e =
|
|
25861
|
+
const Fe = ee ? "y" : "x", _e = Co(ke, "padding", Fe), Oe = Co(ye, "margin", Fe), Me = ee ? ye.offsetHeight : ye.offsetWidth, he = (ee ? ke.offsetHeight : ke.offsetWidth) - Me - _e - Oe, pe = ee ? we.clientY - X.current : we.clientX - W.current, Ce = he <= 0 ? 0 : pe / he, Te = ee ? Z.scrollHeight : Z.scrollWidth, Be = ee ? Z.clientHeight : Z.clientWidth, Ve = (ee ? j.current : te.current) + Ce * (Te - Be);
|
|
25857
25862
|
ee ? Z.scrollTop = Ve : Z.scrollLeft = Ve, we.preventDefault(), J(ee);
|
|
25858
25863
|
});
|
|
25859
25864
|
function le(we) {
|
|
@@ -26025,7 +26030,7 @@ const kN = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
26025
26030
|
const oe = ae ? 0 : wh(te, le), Q = ae ? 0 : le - oe, de = fe ? 0 : j, we = ae ? 0 : W;
|
|
26026
26031
|
let Z = 0, ee = 0;
|
|
26027
26032
|
!fe && !ae && (Z = z?.offsetWidth || 0, ee = L?.offsetHeight || 0);
|
|
26028
|
-
const ye = h.width === 0 && h.height === 0, ke = ye ? Z : 0, Fe = ye ? ee : 0, _e =
|
|
26033
|
+
const ye = h.width === 0 && h.height === 0, ke = ye ? Z : 0, Fe = ye ? ee : 0, _e = Co(L, "padding", "x"), Oe = Co(z, "padding", "y"), Me = Co(G, "margin", "x"), Ye = Co(U, "margin", "y"), he = de - _e - Me, pe = we - Oe - Ye, Ce = L ? Math.min(L.offsetWidth - ke, he) : he, Te = z ? Math.min(z.offsetHeight - Fe, pe) : pe, Be = Math.max(yh, Ce * me), Qe = Math.max(yh, Te * ce);
|
|
26029
26034
|
if (g((He) => nc(He, {
|
|
26030
26035
|
width: Be,
|
|
26031
26036
|
height: Qe
|
|
@@ -26219,7 +26224,7 @@ const Ch = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
26219
26224
|
const L = M ? h.current : m.current;
|
|
26220
26225
|
if (!A || !L)
|
|
26221
26226
|
return;
|
|
26222
|
-
const U = M ? "y" : "x", G =
|
|
26227
|
+
const U = M ? "y" : "x", G = Co(A, "margin", U), Y = Co(L, "padding", U), q = M ? A.offsetHeight : A.offsetWidth, X = L.getBoundingClientRect(), W = M ? F.clientY - X.top - q / 2 - Y + G / 2 : F.clientX - X.left - q / 2 - Y + G / 2, j = M ? z.scrollHeight : z.scrollWidth, te = M ? z.clientHeight : z.clientWidth, re = (M ? L.offsetHeight : L.offsetWidth) - q - Y - G;
|
|
26223
26228
|
if (re <= 0)
|
|
26224
26229
|
return;
|
|
26225
26230
|
const K = W / re, J = j - te;
|
|
@@ -27388,7 +27393,7 @@ const pB = "data-parent", zN = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
27388
27393
|
id: C ? void 0 : se ?? void 0,
|
|
27389
27394
|
required: b,
|
|
27390
27395
|
ref: _e,
|
|
27391
|
-
style: X ?
|
|
27396
|
+
style: X ? Lo : qn,
|
|
27392
27397
|
tabIndex: -1,
|
|
27393
27398
|
type: "checkbox",
|
|
27394
27399
|
"aria-hidden": !0,
|
|
@@ -27627,7 +27632,7 @@ const HN = {
|
|
|
27627
27632
|
id: G,
|
|
27628
27633
|
name: F,
|
|
27629
27634
|
required: m,
|
|
27630
|
-
style: F ?
|
|
27635
|
+
style: F ? Lo : qn,
|
|
27631
27636
|
tabIndex: -1,
|
|
27632
27637
|
type: "checkbox",
|
|
27633
27638
|
"aria-hidden": !0,
|
|
@@ -27815,7 +27820,7 @@ const GN = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
27815
27820
|
id: te,
|
|
27816
27821
|
name: N,
|
|
27817
27822
|
tabIndex: -1,
|
|
27818
|
-
style: N ?
|
|
27823
|
+
style: N ? Lo : qn,
|
|
27819
27824
|
"aria-hidden": !0,
|
|
27820
27825
|
...l !== void 0 ? {
|
|
27821
27826
|
value: mu(l)
|
|
@@ -29159,7 +29164,7 @@ function tR(e, t, n) {
|
|
|
29159
29164
|
setDescriptionId: s
|
|
29160
29165
|
} = vb(), i = n === "title" ? o : s, a = t ?? (n === "title" ? r.title : r.description);
|
|
29161
29166
|
return {
|
|
29162
|
-
id:
|
|
29167
|
+
id: Do(e),
|
|
29163
29168
|
children: a,
|
|
29164
29169
|
type: r.type,
|
|
29165
29170
|
setId: i
|
|
@@ -30866,7 +30871,7 @@ function pH(e) {
|
|
|
30866
30871
|
return { platform: e, steps: "Turn off the reduce-motion (or remove-animations) setting in your system's accessibility settings." };
|
|
30867
30872
|
}
|
|
30868
30873
|
}
|
|
30869
|
-
const
|
|
30874
|
+
const Zo = ["sm", "md", "lg"], hH = [
|
|
30870
30875
|
{ value: "system", label: "System" },
|
|
30871
30876
|
{ value: "full", label: "Full" },
|
|
30872
30877
|
{ value: "reduced", label: "Reduced" }
|
|
@@ -30906,7 +30911,7 @@ function xH({
|
|
|
30906
30911
|
] });
|
|
30907
30912
|
}
|
|
30908
30913
|
function DQ({ className: e, triggerClassName: t, iconOnly: n = !1 }) {
|
|
30909
|
-
const { theme: r, setTheme: o } = oH(), { scale: s, setScale: i } = sH(), { contrast: a, setContrast: c } = iH(), { motion: l, setMotion: d } = aH(), f = dH(), p = Nb(TR), h =
|
|
30914
|
+
const { theme: r, setTheme: o } = oH(), { scale: s, setScale: i } = sH(), { contrast: a, setContrast: c } = iH(), { motion: l, setMotion: d } = aH(), f = dH(), p = Nb(TR), h = Zo.indexOf(s);
|
|
30910
30915
|
return /* @__PURE__ */ u(
|
|
30911
30916
|
gn,
|
|
30912
30917
|
{
|
|
@@ -30957,17 +30962,17 @@ function DQ({ className: e, triggerClassName: t, iconOnly: n = !1 }) {
|
|
|
30957
30962
|
/* @__PURE__ */ R("div", { className: "flex flex-col gap-2", children: [
|
|
30958
30963
|
/* @__PURE__ */ u("span", { className: "text-2xs font-semibold tracking-widest text-tertiary uppercase", children: "Text size" }),
|
|
30959
30964
|
/* @__PURE__ */ R("div", { className: "px-[calc(var(--spacing)*2.75)]", children: [
|
|
30960
|
-
/* @__PURE__ */ u("div", { className: "relative h-5 select-none", "aria-hidden": !0, children:
|
|
30965
|
+
/* @__PURE__ */ u("div", { className: "relative h-5 select-none", "aria-hidden": !0, children: Zo.map((m, g) => /* @__PURE__ */ u(
|
|
30961
30966
|
"span",
|
|
30962
30967
|
{
|
|
30963
30968
|
className: s === m ? "absolute bottom-0 -translate-x-1/2 font-display leading-none text-accent-text" : "absolute bottom-0 -translate-x-1/2 font-display leading-none text-tertiary",
|
|
30964
30969
|
style: {
|
|
30965
|
-
left: `${g / (
|
|
30970
|
+
left: `${g / (Zo.length - 1) * 100}%`,
|
|
30966
30971
|
fontSize: bH[m],
|
|
30967
30972
|
/* `translate`, not `transform` — same Tailwind v4 property as
|
|
30968
30973
|
the Slider's own extreme labels. */
|
|
30969
30974
|
...g === 0 ? { translate: "none", left: 0 } : {},
|
|
30970
|
-
...g ===
|
|
30975
|
+
...g === Zo.length - 1 ? { translate: "none", left: "auto", right: 0 } : {}
|
|
30971
30976
|
},
|
|
30972
30977
|
children: "Aa"
|
|
30973
30978
|
},
|
|
@@ -30981,11 +30986,11 @@ function DQ({ className: e, triggerClassName: t, iconOnly: n = !1 }) {
|
|
|
30981
30986
|
max: 2,
|
|
30982
30987
|
step: 1,
|
|
30983
30988
|
value: h,
|
|
30984
|
-
onValueChange: (m) => i(
|
|
30989
|
+
onValueChange: (m) => i(Zo[Number(m)]),
|
|
30985
30990
|
showValue: !1,
|
|
30986
30991
|
tooltip: "never",
|
|
30987
|
-
marks:
|
|
30988
|
-
format: (m) => Hw[
|
|
30992
|
+
marks: Zo.map((m, g) => ({ value: g, label: Hw[m] })),
|
|
30993
|
+
format: (m) => Hw[Zo[m]]
|
|
30989
30994
|
}
|
|
30990
30995
|
)
|
|
30991
30996
|
] })
|
|
@@ -33338,7 +33343,7 @@ const nI = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
33338
33343
|
required: l,
|
|
33339
33344
|
"aria-hidden": !0,
|
|
33340
33345
|
tabIndex: -1,
|
|
33341
|
-
style: z ?
|
|
33346
|
+
style: z ? Lo : qn,
|
|
33342
33347
|
suppressHydrationWarning: !0
|
|
33343
33348
|
})]
|
|
33344
33349
|
});
|
|
@@ -34393,7 +34398,7 @@ const dI = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
34393
34398
|
required: C,
|
|
34394
34399
|
"aria-hidden": !0,
|
|
34395
34400
|
tabIndex: -1,
|
|
34396
|
-
style: q ?
|
|
34401
|
+
style: q ? Lo : qn
|
|
34397
34402
|
})]
|
|
34398
34403
|
})
|
|
34399
34404
|
});
|
|
@@ -34640,7 +34645,7 @@ function Q6(e, t, n, r, o, s, i, a, c, l = 2) {
|
|
|
34640
34645
|
prevIndex: t > c ? a : t,
|
|
34641
34646
|
stopEvent: !0
|
|
34642
34647
|
});
|
|
34643
|
-
return
|
|
34648
|
+
return Io(n.current, d) ? void 0 : d;
|
|
34644
34649
|
}
|
|
34645
34650
|
const Fb = /* @__PURE__ */ w.createContext(void 0);
|
|
34646
34651
|
process.env.NODE_ENV !== "production" && (Fb.displayName = "ComboboxRootContext");
|
|
@@ -35120,7 +35125,7 @@ function oU(e) {
|
|
|
35120
35125
|
}), CP = ve((Le, Ue) => {
|
|
35121
35126
|
const _t = Et(Le), $t = Fe.current ?? Le;
|
|
35122
35127
|
Fe.current = null;
|
|
35123
|
-
const sn = Ie(
|
|
35128
|
+
const sn = Ie(Ro, $t), _n = _t?.closest("a")?.getAttribute("href");
|
|
35124
35129
|
if (_n) {
|
|
35125
35130
|
_n.startsWith("#") && Fi(!1, sn);
|
|
35126
35131
|
return;
|
|
@@ -35435,7 +35440,7 @@ function oU(e) {
|
|
|
35435
35440
|
readOnly: g,
|
|
35436
35441
|
value: IP,
|
|
35437
35442
|
ref: NP,
|
|
35438
|
-
style: If ?
|
|
35443
|
+
style: If ? Lo : qn,
|
|
35439
35444
|
tabIndex: -1,
|
|
35440
35445
|
"aria-hidden": !0,
|
|
35441
35446
|
suppressHydrationWarning: !0
|
|
@@ -35526,7 +35531,7 @@ const Kb = /* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
35526
35531
|
...c,
|
|
35527
35532
|
"aria-label": "Dismiss",
|
|
35528
35533
|
tabIndex: void 0,
|
|
35529
|
-
style:
|
|
35534
|
+
style: Lo
|
|
35530
35535
|
});
|
|
35531
35536
|
});
|
|
35532
35537
|
process.env.NODE_ENV !== "production" && (Kb.displayName = "ComboboxInternalDismissButton");
|
|
@@ -37091,7 +37096,7 @@ function wU(e) {
|
|
|
37091
37096
|
required: h && !(v && Ye),
|
|
37092
37097
|
readOnly: p,
|
|
37093
37098
|
ref: ze,
|
|
37094
|
-
style: z ?
|
|
37099
|
+
style: z ? Lo : qn,
|
|
37095
37100
|
tabIndex: -1,
|
|
37096
37101
|
"aria-hidden": !0,
|
|
37097
37102
|
suppressHydrationWarning: !0
|
|
@@ -37429,7 +37434,7 @@ const NU = {
|
|
|
37429
37434
|
alignItemWithTriggerActive: N,
|
|
37430
37435
|
isPositioned: k,
|
|
37431
37436
|
setControlledAlignItemWithTrigger: I
|
|
37432
|
-
} = XI(), M =
|
|
37437
|
+
} = XI(), M = Ho(!0) != null, T = cr(), {
|
|
37433
37438
|
nonce: D,
|
|
37434
37439
|
disableStyleElements: O
|
|
37435
37440
|
} = ib(), _ = xe(c, lt.id), P = xe(c, lt.open), $ = xe(c, lt.openMethod), V = xe(c, lt.mounted), F = xe(c, lt.popupProps), H = xe(c, lt.transitionStatus), A = xe(c, lt.triggerElement), z = xe(c, lt.positionerElement), L = xe(c, lt.listElement), U = w.useRef(!1), G = w.useRef(!1), Y = w.useRef({}), q = gs(), X = ve((se) => {
|
|
@@ -37713,9 +37718,9 @@ const tM = /* @__PURE__ */ w.memo(/* @__PURE__ */ w.forwardRef(function(t, n) {
|
|
|
37713
37718
|
const X = h.state.value;
|
|
37714
37719
|
if (C) {
|
|
37715
37720
|
const W = Array.isArray(X) ? X : [], j = T ? mI(W, i, O) : [...W, i];
|
|
37716
|
-
x(j, Ie(
|
|
37721
|
+
x(j, Ie(Ro, q));
|
|
37717
37722
|
} else
|
|
37718
|
-
x(i, Ie(
|
|
37723
|
+
x(i, Ie(Ro, q)), g(!1, Ie(Ro, q));
|
|
37719
37724
|
}
|
|
37720
37725
|
function L() {
|
|
37721
37726
|
b.current.dragY = 0;
|
|
@@ -38120,7 +38125,7 @@ function aM({
|
|
|
38120
38125
|
]
|
|
38121
38126
|
}
|
|
38122
38127
|
);
|
|
38123
|
-
return p ? /* @__PURE__ */ u("div", { children: m }, d.value) : /* @__PURE__ */ u(
|
|
38128
|
+
return p ? /* @__PURE__ */ u("div", { children: m }, d.value) : /* @__PURE__ */ u(vo, { children: m }, d.value);
|
|
38124
38129
|
}) })
|
|
38125
38130
|
}
|
|
38126
38131
|
);
|
|
@@ -38173,7 +38178,7 @@ function QQ({
|
|
|
38173
38178
|
] }),
|
|
38174
38179
|
/* @__PURE__ */ u("span", { className: "flex shrink-0 items-center gap-0.5", children: ["asc", "desc"].map((p) => {
|
|
38175
38180
|
const h = f.value === t.field && p === t.direction, m = l0(f, p);
|
|
38176
|
-
return /* @__PURE__ */ u(
|
|
38181
|
+
return /* @__PURE__ */ u(vo, { children: /* @__PURE__ */ u(
|
|
38177
38182
|
ot,
|
|
38178
38183
|
{
|
|
38179
38184
|
icon: /* @__PURE__ */ u(ie, { name: p === "asc" ? "arrow-up" : "arrow-down", size: "xs" }),
|
|
@@ -41285,14 +41290,14 @@ function bJ(e) {
|
|
|
41285
41290
|
] })
|
|
41286
41291
|
);
|
|
41287
41292
|
}
|
|
41288
|
-
function
|
|
41293
|
+
function Eo(e, t) {
|
|
41289
41294
|
return typeof e == "function" ? e(t) : e;
|
|
41290
41295
|
}
|
|
41291
41296
|
function Kn(e, t) {
|
|
41292
41297
|
return (n) => {
|
|
41293
41298
|
t.setState((r) => ({
|
|
41294
41299
|
...r,
|
|
41295
|
-
[e]:
|
|
41300
|
+
[e]: Eo(n, r[e])
|
|
41296
41301
|
}));
|
|
41297
41302
|
};
|
|
41298
41303
|
}
|
|
@@ -41675,7 +41680,7 @@ const Oj = {
|
|
|
41675
41680
|
return (n = (r = t.getState().columnFilters) == null ? void 0 : r.findIndex((o) => o.id === e.id)) != null ? n : -1;
|
|
41676
41681
|
}, e.setFilterValue = (n) => {
|
|
41677
41682
|
t.setColumnFilters((r) => {
|
|
41678
|
-
const o = e.getFilterFn(), s = r?.find((d) => d.id === e.id), i =
|
|
41683
|
+
const o = e.getFilterFn(), s = r?.find((d) => d.id === e.id), i = Eo(n, s ? s.value : void 0);
|
|
41679
41684
|
if (N0(o, i, e)) {
|
|
41680
41685
|
var a;
|
|
41681
41686
|
return (a = r?.filter((d) => d.id !== e.id)) != null ? a : [];
|
|
@@ -41699,7 +41704,7 @@ const Oj = {
|
|
|
41699
41704
|
e.setColumnFilters = (t) => {
|
|
41700
41705
|
const n = e.getAllLeafColumns(), r = (o) => {
|
|
41701
41706
|
var s;
|
|
41702
|
-
return (s =
|
|
41707
|
+
return (s = Eo(t, o)) == null ? void 0 : s.filter((i) => {
|
|
41703
41708
|
const a = n.find((c) => c.id === i.id);
|
|
41704
41709
|
if (a) {
|
|
41705
41710
|
const c = a.getFilterFn();
|
|
@@ -42324,14 +42329,14 @@ const Xj = {
|
|
|
42324
42329
|
});
|
|
42325
42330
|
}
|
|
42326
42331
|
}, e.setPagination = (r) => {
|
|
42327
|
-
const o = (s) =>
|
|
42332
|
+
const o = (s) => Eo(r, s);
|
|
42328
42333
|
return e.options.onPaginationChange == null ? void 0 : e.options.onPaginationChange(o);
|
|
42329
42334
|
}, e.resetPagination = (r) => {
|
|
42330
42335
|
var o;
|
|
42331
42336
|
e.setPagination(r ? xp() : (o = e.initialState.pagination) != null ? o : xp());
|
|
42332
42337
|
}, e.setPageIndex = (r) => {
|
|
42333
42338
|
e.setPagination((o) => {
|
|
42334
|
-
let s =
|
|
42339
|
+
let s = Eo(r, o.pageIndex);
|
|
42335
42340
|
const i = typeof e.options.pageCount > "u" || e.options.pageCount === -1 ? Number.MAX_SAFE_INTEGER : e.options.pageCount - 1;
|
|
42336
42341
|
return s = Math.max(0, Math.min(s, i)), {
|
|
42337
42342
|
...o,
|
|
@@ -42346,7 +42351,7 @@ const Xj = {
|
|
|
42346
42351
|
e.setPageSize(r ? Ph : (o = (s = e.initialState) == null || (s = s.pagination) == null ? void 0 : s.pageSize) != null ? o : Ph);
|
|
42347
42352
|
}, e.setPageSize = (r) => {
|
|
42348
42353
|
e.setPagination((o) => {
|
|
42349
|
-
const s = Math.max(1,
|
|
42354
|
+
const s = Math.max(1, Eo(r, o.pageSize)), i = o.pageSize * o.pageIndex, a = Math.floor(i / s);
|
|
42350
42355
|
return {
|
|
42351
42356
|
...o,
|
|
42352
42357
|
pageIndex: a,
|
|
@@ -42355,7 +42360,7 @@ const Xj = {
|
|
|
42355
42360
|
});
|
|
42356
42361
|
}, e.setPageCount = (r) => e.setPagination((o) => {
|
|
42357
42362
|
var s;
|
|
42358
|
-
let i =
|
|
42363
|
+
let i = Eo(r, (s = e.options.pageCount) != null ? s : -1);
|
|
42359
42364
|
return typeof i == "number" && (i = Math.max(-1, i)), {
|
|
42360
42365
|
...o,
|
|
42361
42366
|
pageCount: i
|
|
@@ -42636,14 +42641,14 @@ function Ah(e, t, n) {
|
|
|
42636
42641
|
}
|
|
42637
42642
|
}), o ? "all" : s ? "some" : !1;
|
|
42638
42643
|
}
|
|
42639
|
-
const Dh = /([0-9]+)/gm, nG = (e, t, n) => GM(
|
|
42644
|
+
const Dh = /([0-9]+)/gm, nG = (e, t, n) => GM(_o(e.getValue(n)).toLowerCase(), _o(t.getValue(n)).toLowerCase()), rG = (e, t, n) => GM(_o(e.getValue(n)), _o(t.getValue(n))), oG = (e, t, n) => Nx(_o(e.getValue(n)).toLowerCase(), _o(t.getValue(n)).toLowerCase()), sG = (e, t, n) => Nx(_o(e.getValue(n)), _o(t.getValue(n))), iG = (e, t, n) => {
|
|
42640
42645
|
const r = e.getValue(n), o = t.getValue(n);
|
|
42641
42646
|
return r > o ? 1 : r < o ? -1 : 0;
|
|
42642
42647
|
}, aG = (e, t, n) => Nx(e.getValue(n), t.getValue(n));
|
|
42643
42648
|
function Nx(e, t) {
|
|
42644
42649
|
return e === t ? 0 : e > t ? 1 : -1;
|
|
42645
42650
|
}
|
|
42646
|
-
function
|
|
42651
|
+
function _o(e) {
|
|
42647
42652
|
return typeof e == "number" ? isNaN(e) || e === 1 / 0 || e === -1 / 0 ? "" : String(e) : typeof e == "string" ? e : "";
|
|
42648
42653
|
}
|
|
42649
42654
|
function GM(e, t) {
|
|
@@ -42823,7 +42828,7 @@ function uG(e) {
|
|
|
42823
42828
|
o.setState(o.initialState);
|
|
42824
42829
|
},
|
|
42825
42830
|
setOptions: (p) => {
|
|
42826
|
-
const h =
|
|
42831
|
+
const h = Eo(p, o.options);
|
|
42827
42832
|
o.options = i(h);
|
|
42828
42833
|
},
|
|
42829
42834
|
getState: () => o.options.state,
|
|
@@ -47158,7 +47163,7 @@ function Fa(e, t, n) {
|
|
|
47158
47163
|
function M2(e, t, n) {
|
|
47159
47164
|
return pn(e, t) + n * zx(e, t);
|
|
47160
47165
|
}
|
|
47161
|
-
function
|
|
47166
|
+
function So(e, t, n, r = "compatible") {
|
|
47162
47167
|
const { days: o = 0, hours: s = 0, minutes: i = 0 } = n;
|
|
47163
47168
|
let a = t;
|
|
47164
47169
|
if (o !== 0) {
|
|
@@ -49445,7 +49450,7 @@ function UJ(e, t, n, r) {
|
|
|
49445
49450
|
return o + Math.round((s - o) / i) * i;
|
|
49446
49451
|
}
|
|
49447
49452
|
const jJ = Vn, Q0 = /* @__PURE__ */ new Map();
|
|
49448
|
-
function
|
|
49453
|
+
function Wo(e, t) {
|
|
49449
49454
|
const n = `${e ?? ""}|${JSON.stringify(t)}`;
|
|
49450
49455
|
let r = Q0.get(n);
|
|
49451
49456
|
return r || (r = new Intl.DateTimeFormat(e, t), Q0.set(n, r)), r;
|
|
@@ -49456,16 +49461,16 @@ function Jr(e) {
|
|
|
49456
49461
|
}
|
|
49457
49462
|
const Ai = { timeZone: "UTC" };
|
|
49458
49463
|
function Uh(e, t, n) {
|
|
49459
|
-
return
|
|
49464
|
+
return Wo(n, { ...Ai, weekday: t }).format(Jr(e));
|
|
49460
49465
|
}
|
|
49461
49466
|
function z2(e, t) {
|
|
49462
|
-
return
|
|
49467
|
+
return Wo(t, { ...Ai, day: "numeric" }).format(Jr(e));
|
|
49463
49468
|
}
|
|
49464
49469
|
function GJ(e, t) {
|
|
49465
|
-
return
|
|
49470
|
+
return Wo(t, { ...Ai, year: "numeric", month: "long" }).format(Jr(e));
|
|
49466
49471
|
}
|
|
49467
49472
|
function Ru(e, t) {
|
|
49468
|
-
return
|
|
49473
|
+
return Wo(t, {
|
|
49469
49474
|
...Ai,
|
|
49470
49475
|
weekday: "long",
|
|
49471
49476
|
day: "numeric",
|
|
@@ -49475,10 +49480,10 @@ function Ru(e, t) {
|
|
|
49475
49480
|
}
|
|
49476
49481
|
function io(e, t, n, r = !0) {
|
|
49477
49482
|
const o = Un(t, e), s = !r || o.minute === 0 ? { timeZone: t, hour: "numeric" } : { timeZone: t, hour: "numeric", minute: "2-digit" };
|
|
49478
|
-
return
|
|
49483
|
+
return Wo(n, s).format(new Date(e));
|
|
49479
49484
|
}
|
|
49480
49485
|
function g7(e, t, n) {
|
|
49481
|
-
return
|
|
49486
|
+
return Wo(n, { timeZone: e, timeZoneName: "shortOffset" }).formatToParts(
|
|
49482
49487
|
new Date(t)
|
|
49483
49488
|
).find((o) => o.type === "timeZoneName")?.value ?? e;
|
|
49484
49489
|
}
|
|
@@ -49486,14 +49491,14 @@ function b7(e, t, n) {
|
|
|
49486
49491
|
return e.allDay ? x7(e, n) : v7(e, t, n);
|
|
49487
49492
|
}
|
|
49488
49493
|
function x7(e, t) {
|
|
49489
|
-
const n = y7(e.endExclusive), r = n.year === e.start.year && n.month === e.start.month && n.day === e.start.day, o =
|
|
49494
|
+
const n = y7(e.endExclusive), r = n.year === e.start.year && n.month === e.start.month && n.day === e.start.day, o = Wo(t, { ...Ai, day: "numeric", month: "long" });
|
|
49490
49495
|
return r ? `All day, ${o.format(Jr(e.start))}` : `All day, ${o.format(Jr(e.start))} to ${o.format(Jr(n))}`;
|
|
49491
49496
|
}
|
|
49492
49497
|
function v7(e, t, n) {
|
|
49493
49498
|
const r = io(e.start, t, n), o = io(e.endExclusive, t, n), s = Un(t, e.start), i = Un(t, e.endExclusive);
|
|
49494
49499
|
if (s.year === i.year && s.month === i.month && s.day === i.day)
|
|
49495
49500
|
return `${r} to ${o}`;
|
|
49496
|
-
const a =
|
|
49501
|
+
const a = Wo(n, { ...Ai, day: "numeric", month: "long" }), c = { year: i.year, month: i.month, day: i.day };
|
|
49497
49502
|
return `${r} to ${o} on ${a.format(Jr(c))}`;
|
|
49498
49503
|
}
|
|
49499
49504
|
function y7(e) {
|
|
@@ -49508,7 +49513,7 @@ function Iu(e, t, n, r) {
|
|
|
49508
49513
|
const o = [e.title, b7(e, t, r)];
|
|
49509
49514
|
return e.calendarLabel ? o.push(e.calendarLabel) : n && o.push(n), o.join(", ");
|
|
49510
49515
|
}
|
|
49511
|
-
function
|
|
49516
|
+
function bo(e, t) {
|
|
49512
49517
|
return {
|
|
49513
49518
|
key: e,
|
|
49514
49519
|
label: t,
|
|
@@ -49518,13 +49523,14 @@ function Zo(e, t) {
|
|
|
49518
49523
|
};
|
|
49519
49524
|
}
|
|
49520
49525
|
const w7 = [
|
|
49521
|
-
|
|
49522
|
-
|
|
49523
|
-
|
|
49524
|
-
|
|
49525
|
-
|
|
49526
|
-
|
|
49527
|
-
|
|
49526
|
+
bo("iris", "Violet"),
|
|
49527
|
+
bo("aqua", "Teal"),
|
|
49528
|
+
bo("mint", "Green"),
|
|
49529
|
+
bo("amber", "Amber"),
|
|
49530
|
+
bo("rose", "Red"),
|
|
49531
|
+
bo("azure", "Blue"),
|
|
49532
|
+
bo("orchid", "Magenta"),
|
|
49533
|
+
bo("slate", "Grey")
|
|
49528
49534
|
], e1 = "iris", $c = new Map(w7.map((e) => [e.key, e]));
|
|
49529
49535
|
function Va(e) {
|
|
49530
49536
|
return e === void 0 ? $c.get(e1) : $c.get(e) ?? $c.get(e1);
|
|
@@ -49997,10 +50003,10 @@ function Rp(e, t, n, r = B2) {
|
|
|
49997
50003
|
}
|
|
49998
50004
|
function t1(e, t, n, r) {
|
|
49999
50005
|
if (t === "resize-end")
|
|
50000
|
-
return { ...e, endExclusive:
|
|
50006
|
+
return { ...e, endExclusive: So(r, e.endExclusive, n) };
|
|
50001
50007
|
if (t === "resize-start")
|
|
50002
|
-
return { ...e, start:
|
|
50003
|
-
const o =
|
|
50008
|
+
return { ...e, start: So(r, e.start, n) };
|
|
50009
|
+
const o = So(r, e.start, n);
|
|
50004
50010
|
return { ...e, start: o, endExclusive: o + (e.endExclusive - e.start) };
|
|
50005
50011
|
}
|
|
50006
50012
|
function Cc(e, t, n = B2) {
|
|
@@ -50214,7 +50220,7 @@ function L7({
|
|
|
50214
50220
|
s({
|
|
50215
50221
|
...e,
|
|
50216
50222
|
start: I,
|
|
50217
|
-
endExclusive:
|
|
50223
|
+
endExclusive: So(t, I, { minutes: M })
|
|
50218
50224
|
}), i?.();
|
|
50219
50225
|
};
|
|
50220
50226
|
return /* @__PURE__ */ R("div", { className: B(l.root(), c), children: [
|
|
@@ -50269,7 +50275,7 @@ function V7(e) {
|
|
|
50269
50275
|
), h = Re(
|
|
50270
50276
|
(x) => {
|
|
50271
50277
|
if (a !== x.id) return x;
|
|
50272
|
-
const b =
|
|
50278
|
+
const b = So(t, x.start, l);
|
|
50273
50279
|
return { ...x, start: b, endExclusive: b + (x.endExclusive - x.start) };
|
|
50274
50280
|
},
|
|
50275
50281
|
[l, a, t]
|
|
@@ -50295,12 +50301,12 @@ function V7(e) {
|
|
|
50295
50301
|
}
|
|
50296
50302
|
const v = (S) => {
|
|
50297
50303
|
b.preventDefault(), d((N) => {
|
|
50298
|
-
const k = { ...N, minutes: (N.minutes ?? 0) + S }, I =
|
|
50304
|
+
const k = { ...N, minutes: (N.minutes ?? 0) + S }, I = So(t, x.start, k);
|
|
50299
50305
|
return p({ ...x, start: I, endExclusive: I }, E(k)), k;
|
|
50300
50306
|
});
|
|
50301
50307
|
}, C = (S) => {
|
|
50302
50308
|
b.preventDefault(), d((N) => {
|
|
50303
|
-
const k = { ...N, days: (N.days ?? 0) + S }, I =
|
|
50309
|
+
const k = { ...N, days: (N.days ?? 0) + S }, I = So(t, x.start, k);
|
|
50304
50310
|
return p({ ...x, start: I, endExclusive: I }, E(k)), k;
|
|
50305
50311
|
});
|
|
50306
50312
|
};
|
|
@@ -50323,7 +50329,7 @@ function V7(e) {
|
|
|
50323
50329
|
[a, s, n, p, t]
|
|
50324
50330
|
);
|
|
50325
50331
|
function g(x) {
|
|
50326
|
-
const b = f.current ?? x, y =
|
|
50332
|
+
const b = f.current ?? x, y = So(t, b.start, l), v = {
|
|
50327
50333
|
...b,
|
|
50328
50334
|
start: y,
|
|
50329
50335
|
endExclusive: y + (b.endExclusive - b.start)
|
|
@@ -50888,18 +50894,18 @@ function JJ({
|
|
|
50888
50894
|
] })
|
|
50889
50895
|
] }),
|
|
50890
50896
|
(r || o) && /* @__PURE__ */ R("div", { className: "flex flex-col gap-0.5 border-t border-border-subtle pt-2", children: [
|
|
50891
|
-
r && /* @__PURE__ */ u(
|
|
50897
|
+
r && /* @__PURE__ */ u(vo, { children: /* @__PURE__ */ R("button", { type: "button", className: B(Sc), onClick: r, children: [
|
|
50892
50898
|
/* @__PURE__ */ u(ie, { name: "user", size: "sm" }),
|
|
50893
50899
|
"Profile"
|
|
50894
50900
|
] }) }),
|
|
50895
|
-
o && /* @__PURE__ */ u(
|
|
50901
|
+
o && /* @__PURE__ */ u(vo, { children: /* @__PURE__ */ R("button", { type: "button", className: B(Sc), onClick: o, children: [
|
|
50896
50902
|
/* @__PURE__ */ u(ie, { name: "shield-check", size: "sm" }),
|
|
50897
50903
|
"Roles & Permissions"
|
|
50898
50904
|
] }) })
|
|
50899
50905
|
] }),
|
|
50900
50906
|
/* @__PURE__ */ R("div", { className: "flex flex-col gap-1.5 border-t border-border-subtle px-1 py-3", children: [
|
|
50901
50907
|
/* @__PURE__ */ u("span", { className: jh, children: "Your access" }),
|
|
50902
|
-
d ? s ? /* @__PURE__ */ u(
|
|
50908
|
+
d ? s ? /* @__PURE__ */ u(vo, { children: /* @__PURE__ */ R(
|
|
50903
50909
|
"button",
|
|
50904
50910
|
{
|
|
50905
50911
|
type: "button",
|
|
@@ -50920,12 +50926,12 @@ function JJ({
|
|
|
50920
50926
|
t,
|
|
50921
50927
|
f.length > 1 && i && /* @__PURE__ */ R("div", { className: "flex flex-col gap-0.5 border-t border-border-subtle pt-2", children: [
|
|
50922
50928
|
/* @__PURE__ */ u("span", { className: B(jh, "px-1 pb-1"), children: "Switch team" }),
|
|
50923
|
-
f.map((p) => /* @__PURE__ */ u(
|
|
50929
|
+
f.map((p) => /* @__PURE__ */ u(vo, { children: /* @__PURE__ */ R("button", { type: "button", className: B(Sc), onClick: () => i(p.id), children: [
|
|
50924
50930
|
/* @__PURE__ */ u(ie, { name: "users", size: "sm" }),
|
|
50925
50931
|
p.name
|
|
50926
50932
|
] }) }, p.id))
|
|
50927
50933
|
] }),
|
|
50928
|
-
a && /* @__PURE__ */ u("div", { className: "flex flex-col gap-0.5 border-t border-border-subtle pt-2", children: /* @__PURE__ */ u(
|
|
50934
|
+
a && /* @__PURE__ */ u("div", { className: "flex flex-col gap-0.5 border-t border-border-subtle pt-2", children: /* @__PURE__ */ u(vo, { children: /* @__PURE__ */ R(
|
|
50929
50935
|
"button",
|
|
50930
50936
|
{
|
|
50931
50937
|
type: "button",
|
|
@@ -50980,7 +50986,7 @@ function eee({ onSwitchTeam: e, className: t }) {
|
|
|
50980
50986
|
),
|
|
50981
50987
|
children: /* @__PURE__ */ R("div", { className: "flex w-full min-w-0 flex-col gap-0.5", children: [
|
|
50982
50988
|
/* @__PURE__ */ u("span", { className: B(U7, "px-1.5 pt-1 pb-1.5"), children: "Switch team" }),
|
|
50983
|
-
r.map((i) => /* @__PURE__ */ u(
|
|
50989
|
+
r.map((i) => /* @__PURE__ */ u(vo, { children: /* @__PURE__ */ R(
|
|
50984
50990
|
"button",
|
|
50985
50991
|
{
|
|
50986
50992
|
type: "button",
|
|
@@ -51140,7 +51146,7 @@ function nee({
|
|
|
51140
51146
|
)
|
|
51141
51147
|
] }),
|
|
51142
51148
|
/* @__PURE__ */ u("div", { className: "flex flex-col gap-2 border-t border-border-subtle pt-4", children: /* @__PURE__ */ u(
|
|
51143
|
-
|
|
51149
|
+
jo,
|
|
51144
51150
|
{
|
|
51145
51151
|
trigger: /* @__PURE__ */ R(Ze, { variant: "outline", size: "sm", children: [
|
|
51146
51152
|
/* @__PURE__ */ u(ie, { name: "refresh-cw", size: "sm" }),
|
|
@@ -51642,7 +51648,7 @@ function oee({
|
|
|
51642
51648
|
}
|
|
51643
51649
|
),
|
|
51644
51650
|
i && /* @__PURE__ */ u(
|
|
51645
|
-
|
|
51651
|
+
jo,
|
|
51646
51652
|
{
|
|
51647
51653
|
open: h !== null,
|
|
51648
51654
|
onOpenChange: (b) => {
|
|
@@ -51692,7 +51698,7 @@ function iW({
|
|
|
51692
51698
|
}) {
|
|
51693
51699
|
const r = e.disabledReason ?? (t ? "Removing…" : void 0);
|
|
51694
51700
|
return /* @__PURE__ */ u(
|
|
51695
|
-
|
|
51701
|
+
jo,
|
|
51696
51702
|
{
|
|
51697
51703
|
trigger: /* @__PURE__ */ u(
|
|
51698
51704
|
ot,
|
|
@@ -51854,7 +51860,7 @@ function lW({
|
|
|
51854
51860
|
}) {
|
|
51855
51861
|
const [r, o] = ne(!1);
|
|
51856
51862
|
return e.current ? /* @__PURE__ */ u("span", { className: "text-2xs text-tertiary", children: "This session" }) : /* @__PURE__ */ u(
|
|
51857
|
-
|
|
51863
|
+
jo,
|
|
51858
51864
|
{
|
|
51859
51865
|
open: r,
|
|
51860
51866
|
onOpenChange: o,
|
|
@@ -52026,7 +52032,7 @@ function fW({
|
|
|
52026
52032
|
}) {
|
|
52027
52033
|
const [r, o] = ne(!1);
|
|
52028
52034
|
return /* @__PURE__ */ u(
|
|
52029
|
-
|
|
52035
|
+
jo,
|
|
52030
52036
|
{
|
|
52031
52037
|
open: r,
|
|
52032
52038
|
onOpenChange: o,
|
|
@@ -52062,7 +52068,7 @@ function pW({
|
|
|
52062
52068
|
/* @__PURE__ */ R("div", { className: "flex min-w-0 items-center gap-1", children: [
|
|
52063
52069
|
/* @__PURE__ */ u(dt, { tone: "accent", size: "sm", children: `+ ${t.label}` }),
|
|
52064
52070
|
r && /* @__PURE__ */ u(
|
|
52065
|
-
|
|
52071
|
+
jo,
|
|
52066
52072
|
{
|
|
52067
52073
|
open: o,
|
|
52068
52074
|
onOpenChange: s,
|
|
@@ -52360,7 +52366,7 @@ const vW = {
|
|
|
52360
52366
|
denied: { tone: "neutral", title: "Denied" },
|
|
52361
52367
|
expired: { tone: "warning", title: "This request expired" }
|
|
52362
52368
|
};
|
|
52363
|
-
function
|
|
52369
|
+
function Mo({ state: e, children: t }) {
|
|
52364
52370
|
const { tone: n, title: r } = vW[e];
|
|
52365
52371
|
return /* @__PURE__ */ u(Dt, { tone: n, title: r, children: t });
|
|
52366
52372
|
}
|
|
@@ -52401,7 +52407,7 @@ function sT({
|
|
|
52401
52407
|
] });
|
|
52402
52408
|
}
|
|
52403
52409
|
function iT({ note: e, fallback: t }) {
|
|
52404
|
-
return e === void 0 ? /* @__PURE__ */ u(
|
|
52410
|
+
return e === void 0 ? /* @__PURE__ */ u(Mo, { state: "expired", children: t }) : /* @__PURE__ */ u(Mo, { state: "expired", children: /* @__PURE__ */ R("div", { className: "flex flex-col gap-1", children: [
|
|
52405
52411
|
/* @__PURE__ */ u("span", { className: "font-medium text-primary", children: e.reason }),
|
|
52406
52412
|
/* @__PURE__ */ u("span", { children: e.nextStep }),
|
|
52407
52413
|
/* @__PURE__ */ u("span", { children: "Nothing was granted, so there is nothing for you to approve or deny." })
|
|
@@ -52437,11 +52443,11 @@ function CW({
|
|
|
52437
52443
|
const r = t.roleLabel ? ` with the ${t.roleLabel} role` : "";
|
|
52438
52444
|
switch (e) {
|
|
52439
52445
|
case "approved":
|
|
52440
|
-
return /* @__PURE__ */ u(
|
|
52446
|
+
return /* @__PURE__ */ u(Mo, { state: e, children: `The requester is picking up its key${r}. You can close this page.` });
|
|
52441
52447
|
case "claimed":
|
|
52442
|
-
return /* @__PURE__ */ u(
|
|
52448
|
+
return /* @__PURE__ */ u(Mo, { state: e, children: `The requester has its key${r}. If that was not you, revoke the key from your API keys.` });
|
|
52443
52449
|
case "denied":
|
|
52444
|
-
return /* @__PURE__ */ u(
|
|
52450
|
+
return /* @__PURE__ */ u(Mo, { state: e, children: "The requester was refused and holds no key. It has to ask again to get access." });
|
|
52445
52451
|
case "expired":
|
|
52446
52452
|
return /* @__PURE__ */ u(iT, { note: n, fallback: "Nothing was granted. Ask the requester to start a new request." });
|
|
52447
52453
|
}
|
|
@@ -52525,17 +52531,17 @@ function kW({
|
|
|
52525
52531
|
const o = t.grantedKeys && t.grantedKeys.length > 0 ? aT(t.grantedKeys, n).map((s) => s.label) : null;
|
|
52526
52532
|
switch (e) {
|
|
52527
52533
|
case "approved":
|
|
52528
|
-
return /* @__PURE__ */ u(
|
|
52534
|
+
return /* @__PURE__ */ u(Mo, { state: e, children: o ? /* @__PURE__ */ R(Ke, { children: [
|
|
52529
52535
|
"The agent's key now also holds these permissions, on top of its role. It picks them up on its next call.",
|
|
52530
52536
|
/* @__PURE__ */ u(s1, { labels: o })
|
|
52531
52537
|
] }) : "The agent picks up the permissions you approved on its next call. You can close this page." });
|
|
52532
52538
|
case "claimed":
|
|
52533
|
-
return /* @__PURE__ */ u(
|
|
52539
|
+
return /* @__PURE__ */ u(Mo, { state: e, children: o ? /* @__PURE__ */ R(Ke, { children: [
|
|
52534
52540
|
"The agent's key holds these permissions now. If that was not you, remove them from the key in your agent sessions.",
|
|
52535
52541
|
/* @__PURE__ */ u(s1, { labels: o })
|
|
52536
52542
|
] }) : "The agent has the permissions you approved. If that was not you, remove them from the key in your agent sessions." });
|
|
52537
52543
|
case "denied":
|
|
52538
|
-
return /* @__PURE__ */ u(
|
|
52544
|
+
return /* @__PURE__ */ u(Mo, { state: e, children: "The agent was refused these permissions and its key is unchanged. It has to ask again to get them." });
|
|
52539
52545
|
case "expired":
|
|
52540
52546
|
return /* @__PURE__ */ u(iT, { note: r, fallback: "Nothing was granted. Ask the agent to start a new request." });
|
|
52541
52547
|
}
|
|
@@ -52658,7 +52664,7 @@ function MW({
|
|
|
52658
52664
|
}
|
|
52659
52665
|
),
|
|
52660
52666
|
/* @__PURE__ */ u(
|
|
52661
|
-
|
|
52667
|
+
jo,
|
|
52662
52668
|
{
|
|
52663
52669
|
trigger: /* @__PURE__ */ u(
|
|
52664
52670
|
ot,
|
|
@@ -58578,13 +58584,13 @@ function UX(e) {
|
|
|
58578
58584
|
function Vee() {
|
|
58579
58585
|
_u.clear();
|
|
58580
58586
|
}
|
|
58581
|
-
const QT = -1, Qt = /* @__PURE__ */ new Map(), gr = /* @__PURE__ */ new Map(), qr = /* @__PURE__ */ new Map(), Kr = /* @__PURE__ */ new Map(), Ba = /* @__PURE__ */ new Set(),
|
|
58582
|
-
let ps = 0,
|
|
58587
|
+
const QT = -1, Qt = /* @__PURE__ */ new Map(), gr = /* @__PURE__ */ new Map(), qr = /* @__PURE__ */ new Map(), Kr = /* @__PURE__ */ new Map(), Ba = /* @__PURE__ */ new Set(), yo = /* @__PURE__ */ new Map();
|
|
58588
|
+
let ps = 0, ko;
|
|
58583
58589
|
function jX(e) {
|
|
58584
|
-
e !==
|
|
58590
|
+
e !== ko && (ko = e, Qt.clear(), gr.clear(), qr.clear(), Js.clear(), ps += 1, sZ());
|
|
58585
58591
|
}
|
|
58586
58592
|
function mf() {
|
|
58587
|
-
return
|
|
58593
|
+
return ko;
|
|
58588
58594
|
}
|
|
58589
58595
|
const Nc = Object.freeze([]);
|
|
58590
58596
|
function Dr(e, t) {
|
|
@@ -58593,13 +58599,13 @@ function Dr(e, t) {
|
|
|
58593
58599
|
const n = hf(e);
|
|
58594
58600
|
if (!n)
|
|
58595
58601
|
return { verdict: "rejected-shape", keys: Nc, reason: "missing __type or id" };
|
|
58596
|
-
if (
|
|
58602
|
+
if (ko !== void 0 && t.tenant !== ko)
|
|
58597
58603
|
return {
|
|
58598
58604
|
verdict: "dropped-tenant",
|
|
58599
58605
|
keys: Nc,
|
|
58600
|
-
reason: `stamped for tenant ${String(t.tenant)}; this store now serves ${String(
|
|
58606
|
+
reason: `stamped for tenant ${String(t.tenant)}; this store now serves ${String(ko)}`
|
|
58601
58607
|
};
|
|
58602
|
-
|
|
58608
|
+
ko === void 0 && t.tenant !== void 0 && Zt(
|
|
58603
58609
|
"recordStore",
|
|
58604
58610
|
"a write carried a tenant but the store has none — call setRecordStoreTenant() or the cross-tenant guard is inert."
|
|
58605
58611
|
), t.source === "broadcast" && t.tag !== void 0 && Zt(
|
|
@@ -58845,18 +58851,18 @@ function ev(e) {
|
|
|
58845
58851
|
}
|
|
58846
58852
|
function oP(e) {
|
|
58847
58853
|
Js.add(e), Wn === null && (Wn = rZ(() => {
|
|
58848
|
-
Wn = null,
|
|
58854
|
+
Wn = null, To();
|
|
58849
58855
|
}));
|
|
58850
58856
|
}
|
|
58851
58857
|
function oZ() {
|
|
58852
58858
|
!rP || !Jx || document.addEventListener("visibilitychange", () => {
|
|
58853
58859
|
!document.hidden || Wn === null || (ev(Wn), Wn = setTimeout(() => {
|
|
58854
|
-
Wn = null,
|
|
58860
|
+
Wn = null, To();
|
|
58855
58861
|
}, 0));
|
|
58856
58862
|
});
|
|
58857
58863
|
}
|
|
58858
58864
|
oZ();
|
|
58859
|
-
function
|
|
58865
|
+
function To() {
|
|
58860
58866
|
if (Wn !== null && (ev(Wn), Wn = null), Js.size === 0) return;
|
|
58861
58867
|
const e = Js;
|
|
58862
58868
|
Js = /* @__PURE__ */ new Set();
|
|
@@ -58919,20 +58925,20 @@ function lZ(e, t) {
|
|
|
58919
58925
|
});
|
|
58920
58926
|
}
|
|
58921
58927
|
function ov(e) {
|
|
58922
|
-
for (const n of e)
|
|
58928
|
+
for (const n of e) yo.set(n, (yo.get(n) ?? 0) + 1);
|
|
58923
58929
|
let t = !1;
|
|
58924
58930
|
return () => {
|
|
58925
58931
|
if (!t) {
|
|
58926
58932
|
t = !0;
|
|
58927
58933
|
for (const n of e) {
|
|
58928
|
-
const r = (
|
|
58929
|
-
r <= 0 ?
|
|
58934
|
+
const r = (yo.get(n) ?? 0) - 1;
|
|
58935
|
+
r <= 0 ? yo.delete(n) : yo.set(n, r);
|
|
58930
58936
|
}
|
|
58931
58937
|
}
|
|
58932
58938
|
};
|
|
58933
58939
|
}
|
|
58934
58940
|
function cZ() {
|
|
58935
|
-
const e = /* @__PURE__ */ new Set(), t = [...
|
|
58941
|
+
const e = /* @__PURE__ */ new Set(), t = [...yo.keys()];
|
|
58936
58942
|
for (const r of Kr.keys()) t.push(r);
|
|
58937
58943
|
for (const [r, o] of Qt) o.layers.length > 0 && t.push(r);
|
|
58938
58944
|
for (; t.length > 0; ) {
|
|
@@ -58963,10 +58969,10 @@ function Qh(e, t) {
|
|
|
58963
58969
|
for (const n of Object.values(e)) Qh(n, t);
|
|
58964
58970
|
}
|
|
58965
58971
|
function Bee() {
|
|
58966
|
-
Wn !== null && (ev(Wn), Wn = null), Qt.clear(), gr.clear(), qr.clear(), Kr.clear(), Ba.clear(),
|
|
58972
|
+
Wn !== null && (ev(Wn), Wn = null), Qt.clear(), gr.clear(), qr.clear(), Kr.clear(), Ba.clear(), yo.clear(), Js = /* @__PURE__ */ new Set(), la = nv, ps = 0, ko = void 0;
|
|
58967
58973
|
}
|
|
58968
58974
|
function Hee() {
|
|
58969
|
-
return { records: Qt.size, memos: gr.size, roots:
|
|
58975
|
+
return { records: Qt.size, memos: gr.size, roots: yo.size, listeners: Kr.size };
|
|
58970
58976
|
}
|
|
58971
58977
|
function mi(e) {
|
|
58972
58978
|
if (typeof e != "object" || e === null || Array.isArray(e)) return !1;
|
|
@@ -59927,7 +59933,7 @@ function qZ(e, t = {}) {
|
|
|
59927
59933
|
const n = t.tenant ?? mf(), r = e.type.type;
|
|
59928
59934
|
if (e.kind === "create") return KZ(e, r, n, t.tag);
|
|
59929
59935
|
const o = e.id, s = po(r, o), i = e.kind === "update" ? e.at : void 0, a = e.kind !== "update" ? {} : i === void 0 ? pP(e.patch) : YZ(e.patch), c = e.kind === "delete" ? (/* @__PURE__ */ new Date()).toISOString() : void 0, l = tP(r, o, { fields: a, at: i, tombstone: c });
|
|
59930
|
-
|
|
59936
|
+
To();
|
|
59931
59937
|
let d = !1;
|
|
59932
59938
|
return {
|
|
59933
59939
|
id: o,
|
|
@@ -59948,10 +59954,10 @@ function qZ(e, t = {}) {
|
|
|
59948
59954
|
through: l,
|
|
59949
59955
|
values: { ...h?.values ?? {}, ...WZ(s, Object.keys(a), i) }
|
|
59950
59956
|
});
|
|
59951
|
-
WX(s, l, Object.keys(a), i), $u(s, l),
|
|
59957
|
+
WX(s, l, Object.keys(a), i), $u(s, l), To();
|
|
59952
59958
|
},
|
|
59953
59959
|
rollback() {
|
|
59954
|
-
d || (d = !0, $u(s, l),
|
|
59960
|
+
d || (d = !0, $u(s, l), To());
|
|
59955
59961
|
}
|
|
59956
59962
|
};
|
|
59957
59963
|
}
|
|
@@ -59961,10 +59967,10 @@ function KZ(e, t, n, r) {
|
|
|
59961
59967
|
fields: { ...pP(e.fields), id: o },
|
|
59962
59968
|
created: !0
|
|
59963
59969
|
}), a = LZ(s, t, e.lists, e.position ?? "start");
|
|
59964
|
-
|
|
59970
|
+
To();
|
|
59965
59971
|
let c = !1;
|
|
59966
59972
|
const l = () => {
|
|
59967
|
-
H1(s, null), $u(s, i),
|
|
59973
|
+
H1(s, null), $u(s, i), To();
|
|
59968
59974
|
};
|
|
59969
59975
|
return {
|
|
59970
59976
|
id: o,
|
|
@@ -59983,7 +59989,7 @@ function KZ(e, t, n, r) {
|
|
|
59983
59989
|
const p = new Set([r, ...a.map((h) => h.tag)].filter((h) => h !== void 0));
|
|
59984
59990
|
p.size === 0 && p.add(void 0);
|
|
59985
59991
|
for (const h of p) Dr(d, { source: "fetch", tag: h, tenant: n });
|
|
59986
|
-
H1(s, f.key), $u(s, i),
|
|
59992
|
+
H1(s, f.key), $u(s, i), To();
|
|
59987
59993
|
},
|
|
59988
59994
|
rollback() {
|
|
59989
59995
|
c || (c = !0, l());
|
|
@@ -60016,7 +60022,7 @@ export {
|
|
|
60016
60022
|
QJ as AccountMenuSection,
|
|
60017
60023
|
cee as AgentKeysList,
|
|
60018
60024
|
oQ as AgentWorkingSpinner,
|
|
60019
|
-
|
|
60025
|
+
jo as AlertDialog,
|
|
60020
60026
|
Ww as AmbiguousTimeError,
|
|
60021
60027
|
lee as ApiKeysPanel,
|
|
60022
60028
|
_Q as AppShell,
|
|
@@ -60184,7 +60190,7 @@ export {
|
|
|
60184
60190
|
dee as PermissionRequestPanel,
|
|
60185
60191
|
kee as PhaseManager,
|
|
60186
60192
|
gn as Popover,
|
|
60187
|
-
|
|
60193
|
+
vo as PopoverClose,
|
|
60188
60194
|
rW as ProfileForm,
|
|
60189
60195
|
ree as ProfilePage,
|
|
60190
60196
|
TH as Progress,
|
|
@@ -60282,7 +60288,7 @@ export {
|
|
|
60282
60288
|
GT as WIDE_RING_THRESHOLD,
|
|
60283
60289
|
TZ as acquireSlot,
|
|
60284
60290
|
Ar as addDays,
|
|
60285
|
-
|
|
60291
|
+
So as addDuration,
|
|
60286
60292
|
Kw as addMonths,
|
|
60287
60293
|
hw as adjustHeading,
|
|
60288
60294
|
WU as advanceBlockReason,
|
|
@@ -60358,7 +60364,7 @@ export {
|
|
|
60358
60364
|
Bx as fitBox,
|
|
60359
60365
|
V9 as fitBoxWithFloor,
|
|
60360
60366
|
L9 as fitWidth,
|
|
60361
|
-
|
|
60367
|
+
To as flushRecordNotifications,
|
|
60362
60368
|
zJ as formatBoolean,
|
|
60363
60369
|
os as formatBytes,
|
|
60364
60370
|
MH as formatCompactNumber,
|
|
@@ -60481,7 +60487,7 @@ export {
|
|
|
60481
60487
|
Ree as scoredConfidence,
|
|
60482
60488
|
xc as scrollVelocity,
|
|
60483
60489
|
l3 as setFenceLanguage,
|
|
60484
|
-
|
|
60490
|
+
xo as setHeading,
|
|
60485
60491
|
jX as setRecordStoreTenant,
|
|
60486
60492
|
r1 as setSimSettings,
|
|
60487
60493
|
kc as simulateLatency,
|