@synopackageland/ui 0.21.0 → 0.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/cli.js +0 -0
- package/dist/index.js +3505 -3499
- package/dist/json-preview/preview.js +1014 -1008
- package/dist/reka-runtime.json +1 -1
- package/dist/theme.css +1 -1
- package/dist/themes/dsm7-embedded-theme.css +1 -1
- package/dist/themes/dsm7-embedded.css +1 -1
- package/dist/themes/dsm7.css +1 -1
- package/docs/mobile-native.md +10 -2
- package/package.json +59 -66
|
@@ -1163,36 +1163,36 @@ function R0(e, t, n = Ye) {
|
|
|
1163
1163
|
Go = _;
|
|
1164
1164
|
}
|
|
1165
1165
|
} : f = zn, t && a) {
|
|
1166
|
-
const _ = f,
|
|
1167
|
-
f = () => to(_(),
|
|
1166
|
+
const _ = f, x = a === !0 ? 1 / 0 : a;
|
|
1167
|
+
f = () => to(_(), x);
|
|
1168
1168
|
}
|
|
1169
|
-
const y = ca(),
|
|
1169
|
+
const y = ca(), w = () => {
|
|
1170
1170
|
u.stop(), y && y.active && Tc(y.effects, u);
|
|
1171
1171
|
};
|
|
1172
1172
|
if (r && t) {
|
|
1173
1173
|
const _ = t;
|
|
1174
|
-
t = (...
|
|
1175
|
-
const A = _(...
|
|
1176
|
-
return
|
|
1174
|
+
t = (...x) => {
|
|
1175
|
+
const A = _(...x);
|
|
1176
|
+
return w(), A;
|
|
1177
1177
|
};
|
|
1178
1178
|
}
|
|
1179
|
-
let
|
|
1180
|
-
const
|
|
1179
|
+
let C = v ? new Array(e.length).fill(gi) : gi;
|
|
1180
|
+
const b = (_) => {
|
|
1181
1181
|
if (!(!(u.flags & 1) || !u.dirty && !_))
|
|
1182
1182
|
if (t) {
|
|
1183
|
-
const
|
|
1184
|
-
if (_ || a || m || (v ?
|
|
1183
|
+
const x = u.run();
|
|
1184
|
+
if (_ || a || m || (v ? x.some((A, P) => Dt(A, C[P])) : Dt(x, C))) {
|
|
1185
1185
|
p && p();
|
|
1186
1186
|
const A = Go;
|
|
1187
1187
|
Go = u;
|
|
1188
1188
|
try {
|
|
1189
1189
|
const P = [
|
|
1190
|
-
|
|
1190
|
+
x,
|
|
1191
1191
|
// pass undefined as the old value when it's changed for the first time
|
|
1192
|
-
|
|
1192
|
+
C === gi ? void 0 : v && C[0] === gi ? [] : C,
|
|
1193
1193
|
h
|
|
1194
1194
|
];
|
|
1195
|
-
|
|
1195
|
+
C = x, l ? l(t, 3, P) : (
|
|
1196
1196
|
// @ts-expect-error
|
|
1197
1197
|
t(...P)
|
|
1198
1198
|
);
|
|
@@ -1203,16 +1203,16 @@ function R0(e, t, n = Ye) {
|
|
|
1203
1203
|
} else
|
|
1204
1204
|
u.run();
|
|
1205
1205
|
};
|
|
1206
|
-
return s && s(
|
|
1206
|
+
return s && s(b), u = new Cm(f), u.scheduler = i ? () => i(b, !1) : b, h = (_) => D0(_, !1, u), p = u.onStop = () => {
|
|
1207
1207
|
const _ = ts.get(u);
|
|
1208
1208
|
if (_) {
|
|
1209
1209
|
if (l)
|
|
1210
1210
|
l(_, 4);
|
|
1211
1211
|
else
|
|
1212
|
-
for (const
|
|
1212
|
+
for (const x of _) x();
|
|
1213
1213
|
ts.delete(u);
|
|
1214
1214
|
}
|
|
1215
|
-
}, t ? o ?
|
|
1215
|
+
}, t ? o ? b(!0) : C = u.run() : i ? i(b.bind(null, !0), !0) : u.run(), w.pause = u.pause.bind(u), w.resume = u.resume.bind(u), w.stop = w, w;
|
|
1216
1216
|
}
|
|
1217
1217
|
function to(e, t = 1 / 0, n) {
|
|
1218
1218
|
if (t <= 0 || !tt(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t))
|
|
@@ -1517,9 +1517,9 @@ const xo = /* @__PURE__ */ new WeakMap(), tv = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1517
1517
|
mc: u,
|
|
1518
1518
|
pc: f,
|
|
1519
1519
|
pbc: p,
|
|
1520
|
-
o: { insert: h, querySelector: m, createText: v, createComment: y, parentNode:
|
|
1521
|
-
} = c,
|
|
1522
|
-
let { dynamicChildren:
|
|
1520
|
+
o: { insert: h, querySelector: m, createText: v, createComment: y, parentNode: w }
|
|
1521
|
+
} = c, C = Jo(t.props);
|
|
1522
|
+
let { dynamicChildren: b } = t;
|
|
1523
1523
|
const _ = (P, O, $) => {
|
|
1524
1524
|
P.shapeFlag & 16 && u(
|
|
1525
1525
|
P.children,
|
|
@@ -1531,17 +1531,17 @@ const xo = /* @__PURE__ */ new WeakMap(), tv = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1531
1531
|
s,
|
|
1532
1532
|
l
|
|
1533
1533
|
);
|
|
1534
|
-
},
|
|
1534
|
+
}, x = (P = t) => {
|
|
1535
1535
|
const O = Jo(P.props), $ = P.target = $u(P.props, m), S = Iu($, P, v, h);
|
|
1536
1536
|
$ && (i !== "svg" && uf($) ? i = "svg" : i !== "mathml" && cf($) && (i = "mathml"), a && a.isCE && (a.ce._teleportTargets || (a.ce._teleportTargets = /* @__PURE__ */ new Set())).add($), O || (_(P, $, S), sr(P, !1)));
|
|
1537
1537
|
}, A = (P) => {
|
|
1538
1538
|
const O = () => {
|
|
1539
1539
|
if (xo.get(P) === O) {
|
|
1540
1540
|
if (xo.delete(P), Jo(P.props)) {
|
|
1541
|
-
const $ =
|
|
1541
|
+
const $ = w(P.el) || n;
|
|
1542
1542
|
_(P, $, P.anchor), sr(P, !0);
|
|
1543
1543
|
}
|
|
1544
|
-
|
|
1544
|
+
x(P);
|
|
1545
1545
|
}
|
|
1546
1546
|
};
|
|
1547
1547
|
xo.set(P, O), Qt(O, r);
|
|
@@ -1552,7 +1552,7 @@ const xo = /* @__PURE__ */ new WeakMap(), tv = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1552
1552
|
A(t);
|
|
1553
1553
|
return;
|
|
1554
1554
|
}
|
|
1555
|
-
|
|
1555
|
+
C && (_(t, n, O), sr(t, !0)), x();
|
|
1556
1556
|
} else {
|
|
1557
1557
|
t.el = e.el;
|
|
1558
1558
|
const P = t.anchor = e.anchor, O = xo.get(e);
|
|
@@ -1562,9 +1562,9 @@ const xo = /* @__PURE__ */ new WeakMap(), tv = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1562
1562
|
}
|
|
1563
1563
|
t.targetStart = e.targetStart;
|
|
1564
1564
|
const $ = t.target = e.target, S = t.targetAnchor = e.targetAnchor, D = Jo(e.props), M = D ? n : $, q = D ? P : S;
|
|
1565
|
-
if (i === "svg" || uf($) ? i = "svg" : (i === "mathml" || cf($)) && (i = "mathml"),
|
|
1565
|
+
if (i === "svg" || uf($) ? i = "svg" : (i === "mathml" || cf($)) && (i = "mathml"), b ? (p(
|
|
1566
1566
|
e.dynamicChildren,
|
|
1567
|
-
|
|
1567
|
+
b,
|
|
1568
1568
|
M,
|
|
1569
1569
|
a,
|
|
1570
1570
|
r,
|
|
@@ -1580,7 +1580,7 @@ const xo = /* @__PURE__ */ new WeakMap(), tv = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1580
1580
|
i,
|
|
1581
1581
|
s,
|
|
1582
1582
|
!1
|
|
1583
|
-
),
|
|
1583
|
+
), C)
|
|
1584
1584
|
D ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : yi(
|
|
1585
1585
|
t,
|
|
1586
1586
|
n,
|
|
@@ -1604,7 +1604,7 @@ const xo = /* @__PURE__ */ new WeakMap(), tv = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1604
1604
|
c,
|
|
1605
1605
|
1
|
|
1606
1606
|
);
|
|
1607
|
-
sr(t,
|
|
1607
|
+
sr(t, C);
|
|
1608
1608
|
}
|
|
1609
1609
|
},
|
|
1610
1610
|
remove(e, t, n, { um: o, o: { remove: a } }, r) {
|
|
@@ -1619,13 +1619,13 @@ const xo = /* @__PURE__ */ new WeakMap(), tv = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1619
1619
|
} = e, h = Jo(p), m = r || !h, v = xo.get(e);
|
|
1620
1620
|
if (v && (v.flags |= 8, xo.delete(e)), f && (a(c), a(u)), r && a(l), !v && (h || f) && i & 16)
|
|
1621
1621
|
for (let y = 0; y < s.length; y++) {
|
|
1622
|
-
const
|
|
1622
|
+
const w = s[y];
|
|
1623
1623
|
o(
|
|
1624
|
-
|
|
1624
|
+
w,
|
|
1625
1625
|
t,
|
|
1626
1626
|
n,
|
|
1627
1627
|
m,
|
|
1628
|
-
!!
|
|
1628
|
+
!!w.dynamicChildren
|
|
1629
1629
|
);
|
|
1630
1630
|
}
|
|
1631
1631
|
},
|
|
@@ -1648,24 +1648,24 @@ function yi(e, t, n, { o: { insert: o }, m: a }, r = 2) {
|
|
|
1648
1648
|
function j0(e, t, n, o, a, r, {
|
|
1649
1649
|
o: { nextSibling: i, parentNode: s, querySelector: l, insert: c, createText: u }
|
|
1650
1650
|
}, f) {
|
|
1651
|
-
function p(y,
|
|
1652
|
-
let
|
|
1653
|
-
for (;
|
|
1654
|
-
if (
|
|
1655
|
-
if (
|
|
1656
|
-
t.targetStart =
|
|
1657
|
-
else if (
|
|
1658
|
-
t.targetAnchor =
|
|
1651
|
+
function p(y, w) {
|
|
1652
|
+
let C = w;
|
|
1653
|
+
for (; C; ) {
|
|
1654
|
+
if (C && C.nodeType === 8) {
|
|
1655
|
+
if (C.data === "teleport start anchor")
|
|
1656
|
+
t.targetStart = C;
|
|
1657
|
+
else if (C.data === "teleport anchor") {
|
|
1658
|
+
t.targetAnchor = C, y._lpa = t.targetAnchor && i(t.targetAnchor);
|
|
1659
1659
|
break;
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
|
-
|
|
1662
|
+
C = i(C);
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
|
-
function h(y,
|
|
1666
|
-
|
|
1665
|
+
function h(y, w) {
|
|
1666
|
+
w.anchor = f(
|
|
1667
1667
|
i(y),
|
|
1668
|
-
|
|
1668
|
+
w,
|
|
1669
1669
|
s(y),
|
|
1670
1670
|
n,
|
|
1671
1671
|
o,
|
|
@@ -1836,10 +1836,10 @@ function Du(e, t, n, o, a) {
|
|
|
1836
1836
|
onAfterLeave: m,
|
|
1837
1837
|
onLeaveCancelled: v,
|
|
1838
1838
|
onBeforeAppear: y,
|
|
1839
|
-
onAppear:
|
|
1840
|
-
onAfterAppear:
|
|
1841
|
-
onAppearCancelled:
|
|
1842
|
-
} = t, _ = String(e.key),
|
|
1839
|
+
onAppear: w,
|
|
1840
|
+
onAfterAppear: C,
|
|
1841
|
+
onAppearCancelled: b
|
|
1842
|
+
} = t, _ = String(e.key), x = rv(n, e), A = ($, S) => {
|
|
1843
1843
|
$ && gn(
|
|
1844
1844
|
$,
|
|
1845
1845
|
o,
|
|
@@ -1863,15 +1863,15 @@ function Du(e, t, n, o, a) {
|
|
|
1863
1863
|
!0
|
|
1864
1864
|
/* cancelled */
|
|
1865
1865
|
);
|
|
1866
|
-
const D =
|
|
1866
|
+
const D = x[_];
|
|
1867
1867
|
D && Xo(e, D) && D.el[hn] && D.el[hn](), A(S, [$]);
|
|
1868
1868
|
},
|
|
1869
1869
|
enter($) {
|
|
1870
|
-
if (
|
|
1870
|
+
if (x[_] === e) return;
|
|
1871
1871
|
let S = c, D = u, M = f;
|
|
1872
1872
|
if (!n.isMounted)
|
|
1873
1873
|
if (r)
|
|
1874
|
-
S =
|
|
1874
|
+
S = w || c, D = C || u, M = b || f;
|
|
1875
1875
|
else
|
|
1876
1876
|
return;
|
|
1877
1877
|
let q = !1;
|
|
@@ -1891,10 +1891,10 @@ function Du(e, t, n, o, a) {
|
|
|
1891
1891
|
A(p, [$]);
|
|
1892
1892
|
let M = !1;
|
|
1893
1893
|
$[hn] = (U) => {
|
|
1894
|
-
M || (M = !0, S(), U ? A(v, [$]) : A(m, [$]), $[hn] = void 0,
|
|
1894
|
+
M || (M = !0, S(), U ? A(v, [$]) : A(m, [$]), $[hn] = void 0, x[D] === e && delete x[D]);
|
|
1895
1895
|
};
|
|
1896
1896
|
const q = $[hn].bind(null, !1);
|
|
1897
|
-
|
|
1897
|
+
x[D] = e, h ? P(h, [$, q]) : q();
|
|
1898
1898
|
},
|
|
1899
1899
|
clone($) {
|
|
1900
1900
|
const S = Du(
|
|
@@ -2013,28 +2013,28 @@ function gr(e, t, n, o, a = !1) {
|
|
|
2013
2013
|
else {
|
|
2014
2014
|
const v = ct(l), y = /* @__PURE__ */ vt(l);
|
|
2015
2015
|
if (v || y) {
|
|
2016
|
-
const
|
|
2016
|
+
const w = () => {
|
|
2017
2017
|
if (e.f) {
|
|
2018
|
-
const
|
|
2018
|
+
const C = v ? h(l) ? f[l] : u[l] : m() || !e.k ? l.value : u[e.k];
|
|
2019
2019
|
if (a)
|
|
2020
|
-
Ae(
|
|
2021
|
-
else if (Ae(
|
|
2022
|
-
|
|
2020
|
+
Ae(C) && Tc(C, r);
|
|
2021
|
+
else if (Ae(C))
|
|
2022
|
+
C.includes(r) || C.push(r);
|
|
2023
2023
|
else if (v)
|
|
2024
2024
|
u[l] = [r], h(l) && (f[l] = u[l]);
|
|
2025
2025
|
else {
|
|
2026
|
-
const
|
|
2027
|
-
m(l, e.k) && (l.value =
|
|
2026
|
+
const b = [r];
|
|
2027
|
+
m(l, e.k) && (l.value = b), e.k && (u[e.k] = b);
|
|
2028
2028
|
}
|
|
2029
2029
|
} else v ? (u[l] = i, h(l) && (f[l] = i)) : y && (m(l, e.k) && (l.value = i), e.k && (u[e.k] = i));
|
|
2030
2030
|
};
|
|
2031
2031
|
if (i) {
|
|
2032
|
-
const
|
|
2033
|
-
|
|
2032
|
+
const C = () => {
|
|
2033
|
+
w(), rs.delete(e);
|
|
2034
2034
|
};
|
|
2035
|
-
|
|
2035
|
+
C.id = -1, rs.set(e, C), Qt(C, n);
|
|
2036
2036
|
} else
|
|
2037
|
-
ff(e),
|
|
2037
|
+
ff(e), w();
|
|
2038
2038
|
}
|
|
2039
2039
|
}
|
|
2040
2040
|
}
|
|
@@ -2358,11 +2358,11 @@ function n_(e) {
|
|
|
2358
2358
|
updated: m,
|
|
2359
2359
|
activated: v,
|
|
2360
2360
|
deactivated: y,
|
|
2361
|
-
beforeDestroy:
|
|
2362
|
-
beforeUnmount:
|
|
2363
|
-
destroyed:
|
|
2361
|
+
beforeDestroy: w,
|
|
2362
|
+
beforeUnmount: C,
|
|
2363
|
+
destroyed: b,
|
|
2364
2364
|
unmounted: _,
|
|
2365
|
-
render:
|
|
2365
|
+
render: x,
|
|
2366
2366
|
renderTracked: A,
|
|
2367
2367
|
renderTriggered: P,
|
|
2368
2368
|
errorCaptured: O,
|
|
@@ -2410,7 +2410,7 @@ function n_(e) {
|
|
|
2410
2410
|
function Y(W, re) {
|
|
2411
2411
|
Ae(re) ? re.forEach((me) => W(me.bind(n))) : re && W(re.bind(n));
|
|
2412
2412
|
}
|
|
2413
|
-
if (Y(Y0, f), Y(Be, p), Y(uv, h), Y(Gr, m), Y(H0, v), Y(Z0, y), Y(cv, O), Y(Q0, A), Y(X0, P), Y(Re,
|
|
2413
|
+
if (Y(Y0, f), Y(Be, p), Y(uv, h), Y(Gr, m), Y(H0, v), Y(Z0, y), Y(cv, O), Y(Q0, A), Y(X0, P), Y(Re, C), Y(Wt, _), Y(J0, $), Ae(S))
|
|
2414
2414
|
if (S.length) {
|
|
2415
2415
|
const W = e.exposed || (e.exposed = {});
|
|
2416
2416
|
S.forEach((re) => {
|
|
@@ -2421,7 +2421,7 @@ function n_(e) {
|
|
|
2421
2421
|
});
|
|
2422
2422
|
});
|
|
2423
2423
|
} else e.exposed || (e.exposed = {});
|
|
2424
|
-
|
|
2424
|
+
x && e.render === zn && (e.render = x), D != null && (e.inheritAttrs = D), M && (e.components = M), q && (e.directives = q), $ && sv(e);
|
|
2425
2425
|
}
|
|
2426
2426
|
function o_(e, t, n = zn) {
|
|
2427
2427
|
Ae(e) && (e = Nu(e));
|
|
@@ -2743,13 +2743,13 @@ function gf(e) {
|
|
|
2743
2743
|
ctx: m,
|
|
2744
2744
|
inheritAttrs: v
|
|
2745
2745
|
} = e, y = os(e);
|
|
2746
|
-
let
|
|
2746
|
+
let w, C;
|
|
2747
2747
|
try {
|
|
2748
2748
|
if (n.shapeFlag & 4) {
|
|
2749
|
-
const _ = a || o,
|
|
2750
|
-
|
|
2749
|
+
const _ = a || o, x = _;
|
|
2750
|
+
w = Ln(
|
|
2751
2751
|
c.call(
|
|
2752
|
-
|
|
2752
|
+
x,
|
|
2753
2753
|
_,
|
|
2754
2754
|
u,
|
|
2755
2755
|
f,
|
|
@@ -2757,10 +2757,10 @@ function gf(e) {
|
|
|
2757
2757
|
p,
|
|
2758
2758
|
m
|
|
2759
2759
|
)
|
|
2760
|
-
),
|
|
2760
|
+
), C = s;
|
|
2761
2761
|
} else {
|
|
2762
2762
|
const _ = t;
|
|
2763
|
-
|
|
2763
|
+
w = Ln(
|
|
2764
2764
|
_.length > 1 ? _(
|
|
2765
2765
|
f,
|
|
2766
2766
|
{ attrs: s, slots: i, emit: l }
|
|
@@ -2768,24 +2768,24 @@ function gf(e) {
|
|
|
2768
2768
|
f,
|
|
2769
2769
|
null
|
|
2770
2770
|
)
|
|
2771
|
-
),
|
|
2771
|
+
), C = t.props ? s : d_(s);
|
|
2772
2772
|
}
|
|
2773
2773
|
} catch (_) {
|
|
2774
|
-
ao.length = 0, Ws(_, e, 1),
|
|
2774
|
+
ao.length = 0, Ws(_, e, 1), w = K(Rt);
|
|
2775
2775
|
}
|
|
2776
|
-
let
|
|
2777
|
-
if (
|
|
2778
|
-
const _ = Object.keys(
|
|
2779
|
-
_.length &&
|
|
2780
|
-
|
|
2776
|
+
let b = w;
|
|
2777
|
+
if (C && v !== !1) {
|
|
2778
|
+
const _ = Object.keys(C), { shapeFlag: x } = b;
|
|
2779
|
+
_.length && x & 7 && (r && _.some(Rs) && (C = f_(
|
|
2780
|
+
C,
|
|
2781
2781
|
r
|
|
2782
|
-
)),
|
|
2782
|
+
)), b = co(b, C, !1, !0));
|
|
2783
2783
|
}
|
|
2784
|
-
if (n.dirs && (
|
|
2785
|
-
const _ = Ks(
|
|
2784
|
+
if (n.dirs && (b = co(b, null, !1, !0), b.dirs = b.dirs ? b.dirs.concat(n.dirs) : n.dirs), n.transition) {
|
|
2785
|
+
const _ = Ks(b.type) && as(b) || b;
|
|
2786
2786
|
Pr(_, n.transition);
|
|
2787
2787
|
}
|
|
2788
|
-
return
|
|
2788
|
+
return w = b, os(y), w;
|
|
2789
2789
|
}
|
|
2790
2790
|
const d_ = (e) => {
|
|
2791
2791
|
let t;
|
|
@@ -3000,12 +3000,12 @@ function Pv(e, t, n = !1) {
|
|
|
3000
3000
|
const p = r[u], h = i[f] = Ae(p) || De(p) ? { type: p } : Ct({}, p), m = h.type;
|
|
3001
3001
|
let v = !1, y = !0;
|
|
3002
3002
|
if (Ae(m))
|
|
3003
|
-
for (let
|
|
3004
|
-
const
|
|
3005
|
-
if (
|
|
3003
|
+
for (let w = 0; w < m.length; ++w) {
|
|
3004
|
+
const C = m[w], b = De(C) && C.name;
|
|
3005
|
+
if (b === "Boolean") {
|
|
3006
3006
|
v = !0;
|
|
3007
3007
|
break;
|
|
3008
|
-
} else
|
|
3008
|
+
} else b === "String" && (y = !1);
|
|
3009
3009
|
}
|
|
3010
3010
|
else
|
|
3011
3011
|
v = De(m) && m.name === "Boolean";
|
|
@@ -3093,10 +3093,10 @@ function x_(e, t) {
|
|
|
3093
3093
|
y(E, T, L, Z);
|
|
3094
3094
|
break;
|
|
3095
3095
|
case Rt:
|
|
3096
|
-
|
|
3096
|
+
w(E, T, L, Z);
|
|
3097
3097
|
break;
|
|
3098
3098
|
case Vl:
|
|
3099
|
-
E == null &&
|
|
3099
|
+
E == null && C(T, L, Z, se);
|
|
3100
3100
|
break;
|
|
3101
3101
|
case be:
|
|
3102
3102
|
M(
|
|
@@ -3112,7 +3112,7 @@ function x_(e, t) {
|
|
|
3112
3112
|
);
|
|
3113
3113
|
break;
|
|
3114
3114
|
default:
|
|
3115
|
-
ve & 1 ?
|
|
3115
|
+
ve & 1 ? x(
|
|
3116
3116
|
E,
|
|
3117
3117
|
T,
|
|
3118
3118
|
L,
|
|
@@ -3157,13 +3157,13 @@ function x_(e, t) {
|
|
|
3157
3157
|
const H = T.el = E.el;
|
|
3158
3158
|
T.children !== E.children && c(H, T.children);
|
|
3159
3159
|
}
|
|
3160
|
-
},
|
|
3160
|
+
}, w = (E, T, L, Z) => {
|
|
3161
3161
|
E == null ? o(
|
|
3162
3162
|
T.el = l(T.children || ""),
|
|
3163
3163
|
L,
|
|
3164
3164
|
Z
|
|
3165
3165
|
) : T.el = E.el;
|
|
3166
|
-
},
|
|
3166
|
+
}, C = (E, T, L, Z) => {
|
|
3167
3167
|
[E.el, E.anchor] = m(
|
|
3168
3168
|
E.children,
|
|
3169
3169
|
T,
|
|
@@ -3172,7 +3172,7 @@ function x_(e, t) {
|
|
|
3172
3172
|
E.el,
|
|
3173
3173
|
E.anchor
|
|
3174
3174
|
);
|
|
3175
|
-
},
|
|
3175
|
+
}, b = ({ el: E, anchor: T }, L, Z) => {
|
|
3176
3176
|
let H;
|
|
3177
3177
|
for (; E && E !== T; )
|
|
3178
3178
|
H = p(E), o(E, L, Z), E = H;
|
|
@@ -3182,7 +3182,7 @@ function x_(e, t) {
|
|
|
3182
3182
|
for (; E && E !== T; )
|
|
3183
3183
|
L = p(E), a(E), E = L;
|
|
3184
3184
|
a(T);
|
|
3185
|
-
},
|
|
3185
|
+
}, x = (E, T, L, Z, H, J, se, de, ce) => {
|
|
3186
3186
|
if (T.type === "svg" ? se = "svg" : T.type === "math" && (se = "mathml"), E == null)
|
|
3187
3187
|
A(
|
|
3188
3188
|
T,
|
|
@@ -3428,7 +3428,7 @@ function x_(e, t) {
|
|
|
3428
3428
|
if (Hs(E) && (de.ctx.renderer = rt), T_(de, !1, se), de.asyncDep) {
|
|
3429
3429
|
if (H && H.registerDep(de, Y, se), !E.el) {
|
|
3430
3430
|
const ce = de.subTree = K(Rt);
|
|
3431
|
-
|
|
3431
|
+
w(null, ce, T, L), E.placeholder = ce.el;
|
|
3432
3432
|
}
|
|
3433
3433
|
} else
|
|
3434
3434
|
Y(
|
|
@@ -3746,7 +3746,7 @@ function x_(e, t) {
|
|
|
3746
3746
|
return;
|
|
3747
3747
|
}
|
|
3748
3748
|
if (se === Vl) {
|
|
3749
|
-
|
|
3749
|
+
b(E, T, L);
|
|
3750
3750
|
return;
|
|
3751
3751
|
}
|
|
3752
3752
|
if (Z !== 2 && ae & 1 && de)
|
|
@@ -4525,27 +4525,27 @@ function j_(e) {
|
|
|
4525
4525
|
leaveActiveClass: p = `${n}-leave-active`,
|
|
4526
4526
|
leaveToClass: h = `${n}-leave-to`
|
|
4527
4527
|
} = e, m = U_(a), v = m && m[0], y = m && m[1], {
|
|
4528
|
-
onBeforeEnter:
|
|
4529
|
-
onEnter:
|
|
4530
|
-
onEnterCancelled:
|
|
4528
|
+
onBeforeEnter: w,
|
|
4529
|
+
onEnter: C,
|
|
4530
|
+
onEnterCancelled: b,
|
|
4531
4531
|
onLeave: _,
|
|
4532
|
-
onLeaveCancelled:
|
|
4533
|
-
onBeforeAppear: A =
|
|
4534
|
-
onAppear: P =
|
|
4535
|
-
onAppearCancelled: O =
|
|
4532
|
+
onLeaveCancelled: x,
|
|
4533
|
+
onBeforeAppear: A = w,
|
|
4534
|
+
onAppear: P = C,
|
|
4535
|
+
onAppearCancelled: O = b
|
|
4536
4536
|
} = t, $ = (M, q, U, B) => {
|
|
4537
4537
|
M._enterCancelled = B, Wo(M, q ? u : s), Wo(M, q ? c : i), U && U();
|
|
4538
4538
|
}, S = (M, q) => {
|
|
4539
4539
|
M._isLeaving = !1, Wo(M, f), Wo(M, h), Wo(M, p), q && q();
|
|
4540
4540
|
}, D = (M) => (q, U) => {
|
|
4541
|
-
const B = M ? P :
|
|
4541
|
+
const B = M ? P : C, Y = () => $(q, M, U);
|
|
4542
4542
|
Uo(B, [q, Y]), Ef(() => {
|
|
4543
4543
|
Wo(q, M ? l : r), Jn(q, M ? u : s), Cf(B) || Af(q, o, v, Y);
|
|
4544
4544
|
});
|
|
4545
4545
|
};
|
|
4546
4546
|
return Ct(t, {
|
|
4547
4547
|
onBeforeEnter(M) {
|
|
4548
|
-
Uo(
|
|
4548
|
+
Uo(w, [M]), Jn(M, r), Jn(M, i);
|
|
4549
4549
|
},
|
|
4550
4550
|
onBeforeAppear(M) {
|
|
4551
4551
|
Uo(A, [M]), Jn(M, l), Jn(M, c);
|
|
@@ -4560,13 +4560,13 @@ function j_(e) {
|
|
|
4560
4560
|
}), Uo(_, [M, U]);
|
|
4561
4561
|
},
|
|
4562
4562
|
onEnterCancelled(M) {
|
|
4563
|
-
$(M, !1, void 0, !0), Uo(
|
|
4563
|
+
$(M, !1, void 0, !0), Uo(b, [M]);
|
|
4564
4564
|
},
|
|
4565
4565
|
onAppearCancelled(M) {
|
|
4566
4566
|
$(M, !0, void 0, !0), Uo(O, [M]);
|
|
4567
4567
|
},
|
|
4568
4568
|
onLeaveCancelled(M) {
|
|
4569
|
-
S(M), Uo(
|
|
4569
|
+
S(M), Uo(x, [M]);
|
|
4570
4570
|
}
|
|
4571
4571
|
});
|
|
4572
4572
|
}
|
|
@@ -5423,11 +5423,11 @@ function X(e, t, n, o) {
|
|
|
5423
5423
|
}
|
|
5424
5424
|
if (p._zod.traits.add(e), t(p, h), s) {
|
|
5425
5425
|
const v = Object.getPrototypeOf(p), y = p._zod.constr.prototype;
|
|
5426
|
-
let
|
|
5427
|
-
for (;
|
|
5428
|
-
|
|
5429
|
-
const
|
|
5430
|
-
s.has(
|
|
5426
|
+
let w = v;
|
|
5427
|
+
for (; w && w !== y; )
|
|
5428
|
+
w = Object.getPrototypeOf(w);
|
|
5429
|
+
const C = w ?? v;
|
|
5430
|
+
s.has(C) || (s.add(C), Bx(C, i));
|
|
5431
5431
|
}
|
|
5432
5432
|
const m = f.prototype;
|
|
5433
5433
|
for (const v in m)
|
|
@@ -6488,42 +6488,42 @@ const Kk = /* @__PURE__ */ X("$ZodObject", (e, t) => {
|
|
|
6488
6488
|
}
|
|
6489
6489
|
if (y === "__proto__")
|
|
6490
6490
|
continue;
|
|
6491
|
-
const
|
|
6492
|
-
_ instanceof Promise ? p.push(_.then((
|
|
6491
|
+
const w = h[y], C = w._zod.optin, b = w._zod.optout, _ = w._zod.run({ value: f[y], issues: [] }, u);
|
|
6492
|
+
_ instanceof Promise ? p.push(_.then((x) => ms(x, c, y, f, C, b))) : ms(_, c, y, f, C, b);
|
|
6493
6493
|
}
|
|
6494
6494
|
return i ? hg(p, f, c, u, a.value, e, m === !0) : p.length ? Promise.all(p).then(() => c) : c;
|
|
6495
6495
|
};
|
|
6496
6496
|
}), Hk = /* @__PURE__ */ X("$ZodObjectJIT", (e, t) => {
|
|
6497
6497
|
Kk.init(e, t);
|
|
6498
6498
|
const n = e._zod.parse, o = Vc(() => pg(t)), a = On.memoizer, r = (h) => {
|
|
6499
|
-
const m = o.value, v = m.symbolKeys, y = new ok(["payload", "ctx"], { shape: h, inst: e, memo: a, syms: v }),
|
|
6500
|
-
let ${
|
|
6501
|
-
for (let i = 0; i < ${
|
|
6502
|
-
const iss = ${
|
|
6499
|
+
const m = o.value, v = m.symbolKeys, y = new ok(["payload", "ctx"], { shape: h, inst: e, memo: a, syms: v }), w = (x) => `shape[${x}]._zod.run({ value: input[${x}], issues: [] }, ctx)`, C = (x, A) => `
|
|
6500
|
+
let ${x}_ab = false;
|
|
6501
|
+
for (let i = 0; i < ${x}.issues.length; i++) {
|
|
6502
|
+
const iss = ${x}.issues[i];
|
|
6503
6503
|
iss.path = iss.path ? [${A}, ...iss.path] : [${A}];
|
|
6504
6504
|
payload.issues.push(iss);
|
|
6505
|
-
if (iss.continue !== true) ${
|
|
6505
|
+
if (iss.continue !== true) ${x}_ab = true;
|
|
6506
6506
|
}
|
|
6507
|
-
if (${
|
|
6507
|
+
if (${x}_ab && ctx && ctx.abortEarly) {
|
|
6508
6508
|
payload.value = newResult;
|
|
6509
6509
|
return payload;
|
|
6510
6510
|
}`;
|
|
6511
6511
|
y.write("const input = payload.value;");
|
|
6512
|
-
const
|
|
6512
|
+
const b = /* @__PURE__ */ Object.create(null);
|
|
6513
6513
|
let _ = 0;
|
|
6514
|
-
for (const
|
|
6515
|
-
|
|
6514
|
+
for (const x of m.allKeys)
|
|
6515
|
+
b[x] = `key_${_++}`;
|
|
6516
6516
|
y.write(a ? "const newResult = memo.alloc(inst, payload, {}, ctx);" : "const newResult = {};");
|
|
6517
|
-
for (const
|
|
6518
|
-
if (
|
|
6517
|
+
for (const x of m.allKeys) {
|
|
6518
|
+
if (x === "__proto__")
|
|
6519
6519
|
continue;
|
|
6520
|
-
const A =
|
|
6521
|
-
if (y.write(`const ${A} = ${
|
|
6520
|
+
const A = b[x], P = typeof x == "symbol" ? `syms[${v.indexOf(x)}]` : Cx(x), O = `${P} in input`, $ = h[x], S = $?._zod?.optin, D = S !== void 0, M = $?._zod?.optout === "optional";
|
|
6521
|
+
if (y.write(`const ${A} = ${w(P)};`), D && M) {
|
|
6522
6522
|
const q = S === "optional" ? `${A}_present` : `${A}.value !== undefined || ${A}_present`;
|
|
6523
6523
|
y.write(`
|
|
6524
6524
|
const ${A}_present = ${O};
|
|
6525
6525
|
if (!${A}.issues.length || ${A}_present) {
|
|
6526
|
-
if (${A}.issues.length) {${
|
|
6526
|
+
if (${A}.issues.length) {${C(A, P)}
|
|
6527
6527
|
}
|
|
6528
6528
|
|
|
6529
6529
|
if (${q}) {
|
|
@@ -6533,7 +6533,7 @@ const Kk = /* @__PURE__ */ X("$ZodObject", (e, t) => {
|
|
|
6533
6533
|
|
|
6534
6534
|
`);
|
|
6535
6535
|
} else D ? (y.write(`
|
|
6536
|
-
if (${A}.issues.length) {${
|
|
6536
|
+
if (${A}.issues.length) {${C(A, P)}
|
|
6537
6537
|
}
|
|
6538
6538
|
`), S === "defaulted" ? y.write(`newResult[${P}] = ${A}.value;`) : y.write(`
|
|
6539
6539
|
if (${A}.value !== undefined || ${O}) {
|
|
@@ -6541,7 +6541,7 @@ const Kk = /* @__PURE__ */ X("$ZodObject", (e, t) => {
|
|
|
6541
6541
|
}
|
|
6542
6542
|
`)) : y.write(`
|
|
6543
6543
|
const ${A}_present = ${O};
|
|
6544
|
-
if (${A}.issues.length) {${
|
|
6544
|
+
if (${A}.issues.length) {${C(A, P)}
|
|
6545
6545
|
}
|
|
6546
6546
|
if (!${A}_present && !${A}.issues.length) {
|
|
6547
6547
|
payload.issues.push({
|
|
@@ -7135,10 +7135,10 @@ const ki = [], pC = {
|
|
|
7135
7135
|
(t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
|
|
7136
7136
|
const i = e._zod.parse, s = (l, c) => {
|
|
7137
7137
|
if (n === void 0) {
|
|
7138
|
-
const
|
|
7139
|
-
if (
|
|
7138
|
+
const w = Hi(e, /* @__PURE__ */ new Set());
|
|
7139
|
+
if (w === cr)
|
|
7140
7140
|
return e._zod.parse = i, e._zod.run === s && (e._zod.run = i), i(l, c);
|
|
7141
|
-
|
|
7141
|
+
w === br || o ? n = !0 : o = !0;
|
|
7142
7142
|
}
|
|
7143
7143
|
const u = l.value;
|
|
7144
7144
|
if (!vg(u))
|
|
@@ -7154,7 +7154,7 @@ const ki = [], pC = {
|
|
|
7154
7154
|
const m = ki.length, v = i(l, c);
|
|
7155
7155
|
Si = void 0;
|
|
7156
7156
|
const y = ki.length > m ? ki.pop() : void 0;
|
|
7157
|
-
return v instanceof Promise ? v.then((
|
|
7157
|
+
return v instanceof Promise ? v.then((w) => (y && (y.issues = w.issues.length ? Yl(w.issues) : ap), w)) : (y && (y.issues = v.issues.length ? Yl(v.issues) : ap), v);
|
|
7158
7158
|
};
|
|
7159
7159
|
e._zod.parse = s, e._zod.run === i && (e._zod.run = s);
|
|
7160
7160
|
});
|
|
@@ -8238,10 +8238,10 @@ const yE = {
|
|
|
8238
8238
|
const f = typeof c == "number" && c >= (r ?? Number.NEGATIVE_INFINITY), p = typeof l == "number" && l <= (i ?? Number.POSITIVE_INFINITY), h = t.target === "draft-04" || t.target === "openapi-3.0";
|
|
8239
8239
|
if (f ? h ? (a.minimum = c, a.exclusiveMinimum = !0) : a.exclusiveMinimum = c : typeof r == "number" && (a.minimum = r), p ? h ? (a.maximum = l, a.exclusiveMaximum = !0) : a.exclusiveMaximum = l : typeof i == "number" && (a.maximum = i), s) {
|
|
8240
8240
|
const m = /* @__PURE__ */ new Set();
|
|
8241
|
-
for (const
|
|
8242
|
-
Number.isFinite(
|
|
8241
|
+
for (const w of s)
|
|
8242
|
+
Number.isFinite(w) && w !== 0 ? m.add(Math.abs(w)) : Io(e, t, a, o, `A multipleOf divisor of ${w} cannot be represented in JSON Schema`);
|
|
8243
8243
|
const [v, ...y] = m;
|
|
8244
|
-
v !== void 0 && (a.multipleOf = v), y.length && (a.allOf = [...a.allOf ?? [], ...y.map((
|
|
8244
|
+
v !== void 0 && (a.multipleOf = v), y.length && (a.allOf = [...a.allOf ?? [], ...y.map((w) => ({ multipleOf: w }))]);
|
|
8245
8245
|
}
|
|
8246
8246
|
}, xE = (e, t, n, o) => {
|
|
8247
8247
|
n.type = "boolean";
|
|
@@ -8348,8 +8348,8 @@ function Wu(e, t, n) {
|
|
|
8348
8348
|
const v = t[m];
|
|
8349
8349
|
if (!Array.isArray(v))
|
|
8350
8350
|
continue;
|
|
8351
|
-
const y = v.map((
|
|
8352
|
-
y.some((
|
|
8351
|
+
const y = v.map((w) => Wu(e, w, n));
|
|
8352
|
+
y.some((w, C) => w !== v[C]) && (t = { ...t, [m]: y });
|
|
8353
8353
|
}
|
|
8354
8354
|
const o = Array.isArray(t.type) ? t.type : [t.type], a = !o.includes("string") && o.some((m) => m === "number" || m === "integer"), r = t.enum ?? (t.const !== void 0 ? [t.const] : void 0);
|
|
8355
8355
|
if (!a && !r?.some((m) => typeof m == "number"))
|
|
@@ -10144,14 +10144,14 @@ function tP(e, t) {
|
|
|
10144
10144
|
)), i.push(
|
|
10145
10145
|
"Each line is a JSON patch operation (add, remove, replace). Start with /root, then stream /elements and /state patches interleaved so the UI fills in progressively as it streams."
|
|
10146
10146
|
), i.push(""), i.push("Example output (each line is a separate JSON object):"), i.push("");
|
|
10147
|
-
const s = e.data.components, l = e.schema.definition.spec, u = (l.kind === "object" ? l.inner : void 0)?.elements, f = u?.kind === "record" ? u.inner : void 0, h = (f?.kind === "object" ? f.inner : void 0)?.slots !== void 0, m = e.componentNames, v = m[0] || "Component", y = m.length > 1 ? m[1] : v,
|
|
10147
|
+
const s = e.data.components, l = e.schema.definition.spec, u = (l.kind === "object" ? l.inner : void 0)?.elements, f = u?.kind === "record" ? u.inner : void 0, h = (f?.kind === "object" ? f.inner : void 0)?.slots !== void 0, m = e.componentNames, v = m[0] || "Component", y = m.length > 1 ? m[1] : v, w = s?.[v], C = s?.[y], b = w ? Dp(w) : {}, _ = C ? Dp(C) : {}, x = C?.props ? nP(C.props) : null, A = x ? { ..._, [x]: { $item: "title" } } : _, P = [
|
|
10148
10148
|
JSON.stringify({ op: "add", path: "/root", value: "main" }),
|
|
10149
10149
|
JSON.stringify({
|
|
10150
10150
|
op: "add",
|
|
10151
10151
|
path: "/elements/main",
|
|
10152
10152
|
value: {
|
|
10153
10153
|
type: v,
|
|
10154
|
-
props:
|
|
10154
|
+
props: b,
|
|
10155
10155
|
children: ["child-1", "list"]
|
|
10156
10156
|
}
|
|
10157
10157
|
}),
|
|
@@ -10165,7 +10165,7 @@ function tP(e, t) {
|
|
|
10165
10165
|
path: "/elements/list",
|
|
10166
10166
|
value: {
|
|
10167
10167
|
type: v,
|
|
10168
|
-
props:
|
|
10168
|
+
props: b,
|
|
10169
10169
|
repeat: { statePath: "/items", key: "id" },
|
|
10170
10170
|
children: ["item"]
|
|
10171
10171
|
}
|
|
@@ -10215,7 +10215,7 @@ Note: state patches appear right after the elements that use them, so the UI fil
|
|
|
10215
10215
|
), i.push(
|
|
10216
10216
|
'For nested lists, an inner repeat can read an array from the enclosing item with { "statePath": { "$item": "field" } }. This form is valid only inside another repeat. Use an empty field to repeat over the enclosing item itself.'
|
|
10217
10217
|
), i.push(
|
|
10218
|
-
`Example: ${JSON.stringify({ type: v, props:
|
|
10218
|
+
`Example: ${JSON.stringify({ type: v, props: b, repeat: { statePath: "/todos", key: "id" }, children: ["todo-item"] })}`
|
|
10219
10219
|
), i.push(
|
|
10220
10220
|
'Inside children of a repeated element, use { "$item": "field" } to read a field from the current item, and { "$index": true } to get the current array index. For two-way binding to an item field use { "$bindItem": "completed" } on the appropriate prop.'
|
|
10221
10221
|
), i.push(
|
|
@@ -10264,7 +10264,7 @@ Note: state patches appear right after the elements that use them, so the UI fil
|
|
|
10264
10264
|
), i.push(
|
|
10265
10265
|
'Each key in `on` is an event name (from the component\'s supported events), and the value is an action binding: `{ "action": "<actionName>", "params": { ... } }`.'
|
|
10266
10266
|
), i.push(""), i.push("Example:"), i.push(
|
|
10267
|
-
` ${JSON.stringify({ type: v, props:
|
|
10267
|
+
` ${JSON.stringify({ type: v, props: b, on: { press: { action: "setState", params: { statePath: "/saved", value: !0 } } }, children: [] })}`
|
|
10268
10268
|
), i.push(""), i.push(
|
|
10269
10269
|
'Action params can use dynamic references to read from state: { "$state": "/statePath" }.'
|
|
10270
10270
|
), i.push(
|
|
@@ -10272,7 +10272,7 @@ Note: state patches appear right after the elements that use them, so the UI fil
|
|
|
10272
10272
|
), i.push(""), i.push("VISIBILITY CONDITIONS:"), i.push(
|
|
10273
10273
|
"Elements can have an optional `visible` field to conditionally show/hide based on state. IMPORTANT: `visible` is a top-level field on the element object (sibling of type/props/children), NOT inside props."
|
|
10274
10274
|
), i.push(
|
|
10275
|
-
`Correct: ${JSON.stringify({ type: v, props:
|
|
10275
|
+
`Correct: ${JSON.stringify({ type: v, props: b, visible: { $state: "/activeTab", eq: "home" }, children: ["..."] })}`
|
|
10276
10276
|
), i.push(
|
|
10277
10277
|
'- `{ "$state": "/path" }` - visible when state at path is truthy'
|
|
10278
10278
|
), i.push(
|
|
@@ -10792,8 +10792,8 @@ var rP = YA(
|
|
|
10792
10792
|
...Object.keys(p),
|
|
10793
10793
|
...Object.keys(m)
|
|
10794
10794
|
]), y = {};
|
|
10795
|
-
for (const
|
|
10796
|
-
p[
|
|
10795
|
+
for (const w of v)
|
|
10796
|
+
p[w] !== m[w] && (y[w] = w in m ? m[w] : void 0);
|
|
10797
10797
|
p = m, Object.keys(y).length > 0 && a.update(y);
|
|
10798
10798
|
}
|
|
10799
10799
|
);
|
|
@@ -11004,43 +11004,43 @@ var Xg = /* @__PURE__ */ Symbol("json-render:actions"), pP = /* @__PURE__ */ V({
|
|
|
11004
11004
|
params: m.params,
|
|
11005
11005
|
at: y
|
|
11006
11006
|
});
|
|
11007
|
-
let
|
|
11007
|
+
let w = !0, C;
|
|
11008
11008
|
try {
|
|
11009
11009
|
if (m.action === "setState" && m.params) {
|
|
11010
|
-
const
|
|
11011
|
-
|
|
11010
|
+
const x = m.params.statePath, A = m.params.value;
|
|
11011
|
+
x && o(x, A);
|
|
11012
11012
|
return;
|
|
11013
11013
|
}
|
|
11014
11014
|
if (m.action === "pushState" && m.params) {
|
|
11015
|
-
const
|
|
11016
|
-
if (
|
|
11017
|
-
const P = Xu(A, n), O = n(
|
|
11018
|
-
o(
|
|
11015
|
+
const x = m.params.statePath, A = m.params.value;
|
|
11016
|
+
if (x) {
|
|
11017
|
+
const P = Xu(A, n), O = n(x) ?? [];
|
|
11018
|
+
o(x, [...O, P]);
|
|
11019
11019
|
const $ = m.params.clearStatePath;
|
|
11020
11020
|
$ && o($, "");
|
|
11021
11021
|
}
|
|
11022
11022
|
return;
|
|
11023
11023
|
}
|
|
11024
11024
|
if (m.action === "removeState" && m.params) {
|
|
11025
|
-
const
|
|
11026
|
-
if (
|
|
11027
|
-
const P = n(
|
|
11025
|
+
const x = m.params.statePath, A = m.params.index;
|
|
11026
|
+
if (x !== void 0 && A !== void 0) {
|
|
11027
|
+
const P = n(x) ?? [];
|
|
11028
11028
|
o(
|
|
11029
|
-
|
|
11029
|
+
x,
|
|
11030
11030
|
P.filter((O, $) => $ !== A)
|
|
11031
11031
|
);
|
|
11032
11032
|
}
|
|
11033
11033
|
return;
|
|
11034
11034
|
}
|
|
11035
11035
|
if (m.action === "validateForm") {
|
|
11036
|
-
const
|
|
11037
|
-
if (!
|
|
11036
|
+
const x = r?.validateAll;
|
|
11037
|
+
if (!x) {
|
|
11038
11038
|
console.warn(
|
|
11039
11039
|
"validateForm action was dispatched but no ValidationProvider is connected. Ensure ValidationProvider is rendered inside the provider tree."
|
|
11040
11040
|
);
|
|
11041
11041
|
return;
|
|
11042
11042
|
}
|
|
11043
|
-
const A =
|
|
11043
|
+
const A = x(), P = {};
|
|
11044
11044
|
for (const [$, S] of Object.entries(r.fieldStates))
|
|
11045
11045
|
S.result && !S.result.valid && (P[$] = S.result.errors);
|
|
11046
11046
|
const O = m.params?.statePath || "/formValidation";
|
|
@@ -11048,23 +11048,23 @@ var Xg = /* @__PURE__ */ Symbol("json-render:actions"), pP = /* @__PURE__ */ V({
|
|
|
11048
11048
|
return;
|
|
11049
11049
|
}
|
|
11050
11050
|
if (m.action === "push" && m.params) {
|
|
11051
|
-
const
|
|
11052
|
-
if (
|
|
11051
|
+
const x = m.params.screen;
|
|
11052
|
+
if (x) {
|
|
11053
11053
|
const A = n("/currentScreen"), P = n("/navStack") ?? [];
|
|
11054
|
-
A ? o("/navStack", [...P, A]) : o("/navStack", [...P, ""]), o("/currentScreen",
|
|
11054
|
+
A ? o("/navStack", [...P, A]) : o("/navStack", [...P, ""]), o("/currentScreen", x);
|
|
11055
11055
|
}
|
|
11056
11056
|
return;
|
|
11057
11057
|
}
|
|
11058
11058
|
if (m.action === "pop") {
|
|
11059
|
-
const
|
|
11060
|
-
if (
|
|
11061
|
-
const A =
|
|
11062
|
-
o("/navStack",
|
|
11059
|
+
const x = n("/navStack") ?? [];
|
|
11060
|
+
if (x.length > 0) {
|
|
11061
|
+
const A = x[x.length - 1];
|
|
11062
|
+
o("/navStack", x.slice(0, -1)), A ? o("/currentScreen", A) : o("/currentScreen", void 0);
|
|
11063
11063
|
}
|
|
11064
11064
|
return;
|
|
11065
11065
|
}
|
|
11066
|
-
const
|
|
11067
|
-
if (!
|
|
11066
|
+
const b = i.value[m.action];
|
|
11067
|
+
if (!b) {
|
|
11068
11068
|
console.warn(`No handler registered for action: ${m.action}`);
|
|
11069
11069
|
return;
|
|
11070
11070
|
}
|
|
@@ -11072,7 +11072,7 @@ var Xg = /* @__PURE__ */ Symbol("json-render:actions"), pP = /* @__PURE__ */ V({
|
|
|
11072
11072
|
await new Promise((A, P) => {
|
|
11073
11073
|
l.value = {
|
|
11074
11074
|
action: m,
|
|
11075
|
-
handler:
|
|
11075
|
+
handler: b,
|
|
11076
11076
|
resolve: () => {
|
|
11077
11077
|
l.value = null, A();
|
|
11078
11078
|
},
|
|
@@ -11081,12 +11081,12 @@ var Xg = /* @__PURE__ */ Symbol("json-render:actions"), pP = /* @__PURE__ */ V({
|
|
|
11081
11081
|
}
|
|
11082
11082
|
};
|
|
11083
11083
|
});
|
|
11084
|
-
const
|
|
11085
|
-
|
|
11084
|
+
const x = new Set(s.value);
|
|
11085
|
+
x.add(m.action), s.value = x;
|
|
11086
11086
|
try {
|
|
11087
11087
|
await $p({
|
|
11088
11088
|
action: m,
|
|
11089
|
-
handler:
|
|
11089
|
+
handler: b,
|
|
11090
11090
|
setState: o,
|
|
11091
11091
|
navigate: e.navigate,
|
|
11092
11092
|
executeAction: async (A) => {
|
|
@@ -11104,28 +11104,28 @@ var Xg = /* @__PURE__ */ Symbol("json-render:actions"), pP = /* @__PURE__ */ V({
|
|
|
11104
11104
|
try {
|
|
11105
11105
|
await $p({
|
|
11106
11106
|
action: m,
|
|
11107
|
-
handler:
|
|
11107
|
+
handler: b,
|
|
11108
11108
|
setState: o,
|
|
11109
11109
|
navigate: e.navigate,
|
|
11110
|
-
executeAction: async (
|
|
11111
|
-
await u(
|
|
11110
|
+
executeAction: async (x) => {
|
|
11111
|
+
await u(x);
|
|
11112
11112
|
}
|
|
11113
11113
|
});
|
|
11114
11114
|
} finally {
|
|
11115
|
-
const
|
|
11116
|
-
|
|
11115
|
+
const x = new Set(s.value);
|
|
11116
|
+
x.delete(m.action), s.value = x;
|
|
11117
11117
|
}
|
|
11118
|
-
} catch (
|
|
11119
|
-
throw
|
|
11118
|
+
} catch (b) {
|
|
11119
|
+
throw w = !1, C = b, b;
|
|
11120
11120
|
} finally {
|
|
11121
|
-
const
|
|
11121
|
+
const b = Date.now();
|
|
11122
11122
|
OA({
|
|
11123
11123
|
id: v,
|
|
11124
11124
|
name: m.action,
|
|
11125
|
-
ok:
|
|
11126
|
-
at:
|
|
11127
|
-
durationMs:
|
|
11128
|
-
error:
|
|
11125
|
+
ok: w,
|
|
11126
|
+
at: b,
|
|
11127
|
+
durationMs: b - y,
|
|
11128
|
+
error: C
|
|
11129
11129
|
});
|
|
11130
11130
|
}
|
|
11131
11131
|
};
|
|
@@ -11430,7 +11430,7 @@ var od = /* @__PURE__ */ V({
|
|
|
11430
11430
|
if (!m)
|
|
11431
11431
|
return { emit: () => {
|
|
11432
11432
|
}, shouldPreventDefault: !1, bound: !1 };
|
|
11433
|
-
const y = (Array.isArray(m) ? m : [m]).some((
|
|
11433
|
+
const y = (Array.isArray(m) ? m : [m]).some((w) => w.preventDefault);
|
|
11434
11434
|
return {
|
|
11435
11435
|
emit: () => {
|
|
11436
11436
|
u(h);
|
|
@@ -11451,24 +11451,24 @@ var od = /* @__PURE__ */ V({
|
|
|
11451
11451
|
(h, m, v) => {
|
|
11452
11452
|
const y = e.element.watch;
|
|
11453
11453
|
if (!y || !h) return;
|
|
11454
|
-
let
|
|
11454
|
+
let w = !1;
|
|
11455
11455
|
v(() => {
|
|
11456
|
-
|
|
11456
|
+
w = !0;
|
|
11457
11457
|
});
|
|
11458
|
-
const
|
|
11458
|
+
const C = Object.keys(y);
|
|
11459
11459
|
(async () => {
|
|
11460
|
-
for (const
|
|
11461
|
-
if (
|
|
11462
|
-
if (m && h[
|
|
11463
|
-
const _ = y[
|
|
11460
|
+
for (const b of C) {
|
|
11461
|
+
if (w) break;
|
|
11462
|
+
if (m && h[b] === m[b]) continue;
|
|
11463
|
+
const _ = y[b];
|
|
11464
11464
|
if (!_) continue;
|
|
11465
|
-
const
|
|
11465
|
+
const x = Array.isArray(_) ? _ : [_];
|
|
11466
11466
|
await Fp(
|
|
11467
|
-
|
|
11467
|
+
x,
|
|
11468
11468
|
c.value,
|
|
11469
11469
|
r,
|
|
11470
11470
|
a,
|
|
11471
|
-
() =>
|
|
11471
|
+
() => w
|
|
11472
11472
|
);
|
|
11473
11473
|
}
|
|
11474
11474
|
})().catch(console.error);
|
|
@@ -11477,26 +11477,26 @@ var od = /* @__PURE__ */ V({
|
|
|
11477
11477
|
), () => {
|
|
11478
11478
|
const h = c.value;
|
|
11479
11479
|
if (!(e.element.visible === void 0 ? !0 : Ba(e.element.visible, h))) return null;
|
|
11480
|
-
const v = e.element.props, y = EA(v, h),
|
|
11481
|
-
if (!
|
|
11480
|
+
const v = e.element.props, y = EA(v, h), w = CA(v, h), C = w !== e.element.props ? { ...e.element, props: w } : e.element, b = e.registry[C.type] ?? e.fallback;
|
|
11481
|
+
if (!b)
|
|
11482
11482
|
return console.warn(
|
|
11483
|
-
`[json-render] No renderer for component type: ${
|
|
11483
|
+
`[json-render] No renderer for component type: ${C.type}`
|
|
11484
11484
|
), null;
|
|
11485
|
-
const _ = ny.get(e.registry)?.[
|
|
11486
|
-
if (
|
|
11485
|
+
const _ = ny.get(e.registry)?.[C.type];
|
|
11486
|
+
if (C.slots && _?.slots) {
|
|
11487
11487
|
const S = new Set(_.slots);
|
|
11488
|
-
for (const D of Object.keys(
|
|
11488
|
+
for (const D of Object.keys(C.slots))
|
|
11489
11489
|
D === "default" ? console.warn(
|
|
11490
|
-
`[json-render] Component "${
|
|
11490
|
+
`[json-render] Component "${C.type}" uses slots.default. Use "children" for default slot content.`
|
|
11491
11491
|
) : S.has(D) || console.warn(
|
|
11492
|
-
`[json-render] Unknown slot "${D}" on component "${
|
|
11492
|
+
`[json-render] Unknown slot "${D}" on component "${C.type}". Available slots: ${_.slots.join(", ")}`
|
|
11493
11493
|
);
|
|
11494
11494
|
}
|
|
11495
|
-
const
|
|
11495
|
+
const x = (S, D) => S.map((M) => {
|
|
11496
11496
|
const q = e.spec.elements[M];
|
|
11497
11497
|
if (!q) {
|
|
11498
11498
|
if (!e.loading) {
|
|
11499
|
-
const U = D ? `in slot "${D}" of "${
|
|
11499
|
+
const U = D ? `in slot "${D}" of "${C.type}"` : `as child of "${C.type}"`;
|
|
11500
11500
|
console.warn(
|
|
11501
11501
|
`[json-render] Missing element "${M}" referenced ${U}. This element will not render.`
|
|
11502
11502
|
);
|
|
@@ -11512,21 +11512,21 @@ var od = /* @__PURE__ */ V({
|
|
|
11512
11512
|
loading: e.loading,
|
|
11513
11513
|
fallback: e.fallback
|
|
11514
11514
|
});
|
|
11515
|
-
}).filter((M) => M !== null), A =
|
|
11516
|
-
element:
|
|
11515
|
+
}).filter((M) => M !== null), A = C.repeat ? ge(xP, {
|
|
11516
|
+
element: C,
|
|
11517
11517
|
spec: e.spec,
|
|
11518
11518
|
registry: e.registry,
|
|
11519
11519
|
loading: e.loading,
|
|
11520
11520
|
fallback: e.fallback
|
|
11521
|
-
}) :
|
|
11522
|
-
Object.entries(
|
|
11521
|
+
}) : C.children ? x(C.children) : void 0, P = C.slots ? Object.fromEntries(
|
|
11522
|
+
Object.entries(C.slots).filter(([S]) => S !== "default").map(([S, D]) => [
|
|
11523
11523
|
S,
|
|
11524
|
-
() =>
|
|
11524
|
+
() => x(D, S)
|
|
11525
11525
|
])
|
|
11526
11526
|
) : {}, O = ge(
|
|
11527
|
-
|
|
11527
|
+
b,
|
|
11528
11528
|
{
|
|
11529
|
-
element:
|
|
11529
|
+
element: C,
|
|
11530
11530
|
emit: u,
|
|
11531
11531
|
on: f,
|
|
11532
11532
|
bindings: y,
|
|
@@ -11540,7 +11540,7 @@ var od = /* @__PURE__ */ V({
|
|
|
11540
11540
|
) : O;
|
|
11541
11541
|
return ge(
|
|
11542
11542
|
wP,
|
|
11543
|
-
{ elementType:
|
|
11543
|
+
{ elementType: C.type },
|
|
11544
11544
|
{ default: () => $ }
|
|
11545
11545
|
);
|
|
11546
11546
|
};
|
|
@@ -14285,10 +14285,10 @@ const NP = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
14285
14285
|
onClick: {}
|
|
14286
14286
|
},
|
|
14287
14287
|
setup(e) {
|
|
14288
|
-
const t = e, n = da(() => t.disabled), { pending: o, onClick: a } = uy(() => t.onClick), r = k(() => t.loading || o.value), i = { sm: "h-[var(--ui-button-sm,var(--ui-control-sm))] px-2.5", md: "h-[var(--ui-button-md,var(--ui-control-md))] px-[13px]", lg: "h-[var(--ui-button-lg,var(--ui-control-lg))] px-4" }, s = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(null), c = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N(!1), f = /* @__PURE__ */ N(!1), p = (
|
|
14288
|
+
const t = e, n = da(() => t.disabled), { pending: o, onClick: a } = uy(() => t.onClick), r = k(() => t.loading || o.value), i = { sm: "h-[var(--ui-button-sm,var(--ui-control-sm))] px-2.5", md: "h-[var(--ui-button-md,var(--ui-control-md))] px-[13px]", lg: "h-[var(--ui-button-lg,var(--ui-control-lg))] px-4" }, s = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(null), c = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N(!1), f = /* @__PURE__ */ N(!1), p = (w) => w instanceof Element && (w.localName === "svg" || w.hasAttribute("data-icon"));
|
|
14289
14289
|
function h() {
|
|
14290
|
-
const
|
|
14291
|
-
_ !== c.value && (c.value = _),
|
|
14290
|
+
const w = s.value, C = w ? [...w.childNodes].filter((P) => P.nodeType === Node.ELEMENT_NODE || P.nodeType === Node.TEXT_NODE && P.textContent?.trim()) : [], b = !!w?.textContent?.trim(), _ = !!w && !b && C.some(p), x = b && C.length > 1 && p(C[0]), A = b && C.length > 1 && p(C[C.length - 1]);
|
|
14291
|
+
_ !== c.value && (c.value = _), x !== u.value && (u.value = x), A !== f.value && (f.value = A);
|
|
14292
14292
|
}
|
|
14293
14293
|
Be(h), Gr(h);
|
|
14294
14294
|
const m = k(() => t.variant === "primary" || t.variant === "danger"), v = RP(() => t.kind), y = k(
|
|
@@ -14306,7 +14306,7 @@ const NP = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
14306
14306
|
t.variant === "danger-outline" && "border-[var(--ui-danger)] bg-[var(--ui-control-bg)] text-[var(--ui-danger-text)] shadow-[var(--ui-shadow-control)] [--ui-spin-color:var(--ui-danger)] hover:border-[var(--ui-danger-hover)] hover:bg-[var(--ui-danger-soft)] active:border-[var(--ui-danger-active)] active:bg-[var(--ui-danger-soft)] active:shadow-[var(--ui-shadow-control-active)] data-[disabled]:border-[color-mix(in_srgb,var(--ui-danger)_30%,var(--ui-surface))] data-[disabled]:bg-[var(--ui-control-bg-disabled)] data-[disabled]:text-[color-mix(in_srgb,var(--ui-danger)_55%,var(--ui-text))] data-[disabled]:shadow-none"
|
|
14307
14307
|
)
|
|
14308
14308
|
);
|
|
14309
|
-
return (
|
|
14309
|
+
return (w, C) => (g(), I("button", {
|
|
14310
14310
|
ref_key: "buttonEl",
|
|
14311
14311
|
ref: l,
|
|
14312
14312
|
type: e.type,
|
|
@@ -14319,8 +14319,8 @@ const NP = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
14319
14319
|
"aria-busy": r.value || void 0,
|
|
14320
14320
|
"data-ui-hit": "",
|
|
14321
14321
|
"data-syno-pkg-land-ui": "",
|
|
14322
|
-
onClick:
|
|
14323
|
-
(...
|
|
14322
|
+
onClick: C[0] || (C[0] = //@ts-ignore
|
|
14323
|
+
(...b) => d(a) && d(a)(...b))
|
|
14324
14324
|
}, [
|
|
14325
14325
|
r.value ? (g(), I("span", LP, [
|
|
14326
14326
|
K(ad, { size: 16 })
|
|
@@ -14333,7 +14333,7 @@ const NP = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
14333
14333
|
"data-lead": u.value || void 0,
|
|
14334
14334
|
"data-trail": f.value || void 0
|
|
14335
14335
|
}, [
|
|
14336
|
-
z(
|
|
14336
|
+
z(w.$slots, "default")
|
|
14337
14337
|
], 10, FP)
|
|
14338
14338
|
], 10, NP));
|
|
14339
14339
|
}
|
|
@@ -14627,23 +14627,23 @@ function Ft(e, t, n, o = {}) {
|
|
|
14627
14627
|
const { clone: i = !1, passive: s = !1, eventName: l, deep: c = !1, defaultValue: u, shouldEmit: f } = o, p = Kt(), h = n || p?.emit || (p == null || (a = p.$emit) === null || a === void 0 ? void 0 : a.bind(p)) || (p == null || (r = p.proxy) === null || r === void 0 || (r = r.$emit) === null || r === void 0 ? void 0 : r.bind(p?.proxy));
|
|
14628
14628
|
let m = l;
|
|
14629
14629
|
t || (t = "modelValue"), m = m || `update:${t.toString()}`;
|
|
14630
|
-
const v = (
|
|
14631
|
-
f ? f(
|
|
14630
|
+
const v = (C) => i ? typeof i == "function" ? i(C) : oO(C) : C, y = () => UP(e[t]) ? v(e[t]) : u, w = (C) => {
|
|
14631
|
+
f ? f(C) && h(m, C) : h(m, C);
|
|
14632
14632
|
};
|
|
14633
14633
|
if (s) {
|
|
14634
|
-
const
|
|
14635
|
-
let
|
|
14634
|
+
const C = /* @__PURE__ */ N(y());
|
|
14635
|
+
let b = !1;
|
|
14636
14636
|
return te(() => e[t], (_) => {
|
|
14637
|
-
|
|
14638
|
-
}), te(
|
|
14639
|
-
!
|
|
14640
|
-
}, { deep: c }),
|
|
14637
|
+
b || (b = !0, C.value = v(_), Ne(() => b = !1));
|
|
14638
|
+
}), te(C, (_) => {
|
|
14639
|
+
!b && (_ !== e[t] || c) && w(_);
|
|
14640
|
+
}, { deep: c }), C;
|
|
14641
14641
|
} else return k({
|
|
14642
14642
|
get() {
|
|
14643
14643
|
return y();
|
|
14644
14644
|
},
|
|
14645
|
-
set(
|
|
14646
|
-
|
|
14645
|
+
set(C) {
|
|
14646
|
+
w(C);
|
|
14647
14647
|
}
|
|
14648
14648
|
});
|
|
14649
14649
|
}
|
|
@@ -14774,38 +14774,38 @@ function hO(e) {
|
|
|
14774
14774
|
const mO = () => typeof matchMedia == "function" && matchMedia("(pointer: coarse)").matches;
|
|
14775
14775
|
function Ka(e) {
|
|
14776
14776
|
const t = Yr(), n = qP(), o = /* @__PURE__ */ Symbol("primary-control"), a = n?.claimControl?.(o), r = k(() => n?.isPrimaryControl ? n.isPrimaryControl(o) ? n : null : a === !1 ? null : n);
|
|
14777
|
-
n && We(nl, null), te([r, e.value], ([
|
|
14777
|
+
n && We(nl, null), te([r, e.value], ([w, C]) => w?.setValue(C), { immediate: !0 }), te([r, e.disabled], ([w, C]) => w?.setDisabled(C === !0), { immediate: !0 });
|
|
14778
14778
|
const i = n?.defaultControlId ?? n?.controlId, s = () => {
|
|
14779
|
-
const
|
|
14780
|
-
r.value?.setControlId?.(typeof
|
|
14779
|
+
const w = e.id?.() ?? t.id;
|
|
14780
|
+
r.value?.setControlId?.(typeof w == "string" ? w : i);
|
|
14781
14781
|
};
|
|
14782
14782
|
Ut(s), uv(s), Re(() => {
|
|
14783
14783
|
r.value?.setDisabled(!1), n?.releaseControl?.(o);
|
|
14784
14784
|
});
|
|
14785
14785
|
const l = py(), c = e.keyboard, u = c?.element, f = l?.registerTextControl && r.value && u ? { element: () => u() ?? null, active: () => c.active?.() ?? !0 } : null;
|
|
14786
14786
|
f && (Be(() => l.registerTextControl(f)), Re(() => l.unregisterTextControl(f)));
|
|
14787
|
-
const p = (
|
|
14787
|
+
const p = (w) => {
|
|
14788
14788
|
if (!c) return {};
|
|
14789
|
-
const
|
|
14790
|
-
return
|
|
14789
|
+
const C = hO(c.type()), b = f && !C.enterkeyhint ? l.enterKeyHint(f) : void 0;
|
|
14790
|
+
return b && (C.enterkeyhint = b, b === "next" && !w && (C.onKeydown = (_) => {
|
|
14791
14791
|
if (_.key !== "Enter" || _.isComposing || _.keyCode === 229 || _.shiftKey || _.altKey || _.ctrlKey || _.metaKey || !mO()) return;
|
|
14792
|
-
const
|
|
14793
|
-
|
|
14794
|
-
})),
|
|
14792
|
+
const x = l.nextTextControl(f);
|
|
14793
|
+
x && (_.preventDefault(), cO(x));
|
|
14794
|
+
})), C;
|
|
14795
14795
|
}, h = () => ({ class: t.class, style: t.style }), m = () => {
|
|
14796
|
-
const
|
|
14796
|
+
const w = Object.fromEntries(Object.entries(t).filter(([x]) => x !== "class" && x !== "style")), C = [...new Set(`${r.value?.describedBy ?? ""} ${w["aria-describedby"] ?? ""}`.split(/\s+/).filter(Boolean))].join(" ") || void 0, b = e.ariaLabel?.() || w["aria-label"], _ = e.id?.() ?? w.id ?? r.value?.controlId;
|
|
14797
14797
|
return {
|
|
14798
|
-
...le(p(
|
|
14798
|
+
...le(p(w.enterkeyhint !== void 0), { onBlur: r.value?.onBlur }, w),
|
|
14799
14799
|
id: _ === void 0 ? void 0 : String(_),
|
|
14800
|
-
"aria-labelledby": e.ariaLabelledby?.() ??
|
|
14801
|
-
"aria-label":
|
|
14802
|
-
"aria-invalid":
|
|
14803
|
-
"aria-required":
|
|
14804
|
-
"aria-describedby":
|
|
14800
|
+
"aria-labelledby": e.ariaLabelledby?.() ?? w["aria-labelledby"] ?? (b ? void 0 : r.value?.labelId),
|
|
14801
|
+
"aria-label": b === void 0 ? void 0 : String(b),
|
|
14802
|
+
"aria-invalid": w["aria-invalid"] ?? (e.invalid?.() || r.value?.invalid || void 0),
|
|
14803
|
+
"aria-required": w["aria-required"] ?? (r.value?.required || void 0),
|
|
14804
|
+
"aria-describedby": C
|
|
14805
14805
|
};
|
|
14806
14806
|
};
|
|
14807
|
-
function v(
|
|
14808
|
-
r.value?.setValue(
|
|
14807
|
+
function v(w) {
|
|
14808
|
+
r.value?.setValue(w), r.value?.onChange();
|
|
14809
14809
|
}
|
|
14810
14810
|
const y = k(() => !!e.invalid?.() || !!r.value?.invalid || [!0, "true"].includes(t["aria-invalid"]));
|
|
14811
14811
|
return { controlAttrs: m, wrapperAttrs: h, changed: v, invalid: y };
|
|
@@ -14906,21 +14906,21 @@ const kO = ({
|
|
|
14906
14906
|
}, { slots: v }) => {
|
|
14907
14907
|
const {
|
|
14908
14908
|
size: y,
|
|
14909
|
-
color:
|
|
14910
|
-
strokeWidth:
|
|
14911
|
-
absoluteStrokeWidth:
|
|
14909
|
+
color: w,
|
|
14910
|
+
strokeWidth: C = 2,
|
|
14911
|
+
absoluteStrokeWidth: b = !1,
|
|
14912
14912
|
nonScalingStroke: _ = !1,
|
|
14913
|
-
class:
|
|
14914
|
-
} = SO(), A = Pi(a) || Pi(r) || a === !0 || r === !0 ||
|
|
14913
|
+
class: x = ""
|
|
14914
|
+
} = SO(), A = Pi(a) || Pi(r) || a === !0 || r === !0 || b === !0, P = Pi(i) || Pi(s) || i === !0 || s === !0 || _ === !0;
|
|
14915
14915
|
delete m.class;
|
|
14916
14916
|
const O = v.default?.(), [, $, S = []] = bO(o, {
|
|
14917
|
-
color: h ??
|
|
14917
|
+
color: h ?? w,
|
|
14918
14918
|
width: f ?? u ?? y,
|
|
14919
14919
|
height: p ?? u ?? y,
|
|
14920
|
-
strokeWidth: l ?? c ??
|
|
14920
|
+
strokeWidth: l ?? c ?? C,
|
|
14921
14921
|
absoluteStrokeWidth: A,
|
|
14922
14922
|
nonScalingStroke: P,
|
|
14923
|
-
className:
|
|
14923
|
+
className: x,
|
|
14924
14924
|
hasA11yProp: O != null && O.length > 0 || wO(m),
|
|
14925
14925
|
attributes: m
|
|
14926
14926
|
});
|
|
@@ -15161,11 +15161,11 @@ const aT = {
|
|
|
15161
15161
|
n.size === "sm" && "h-[var(--ui-control-sm)] rounded-[var(--ui-radius-control)]",
|
|
15162
15162
|
n.size === "md" && "h-[var(--ui-control-md)] rounded-[var(--ui-radius-control)]",
|
|
15163
15163
|
n.size === "lg" && "h-[var(--ui-control-lg)] rounded-[var(--ui-radius-control)]",
|
|
15164
|
-
|
|
15164
|
+
w.value ? "border-[var(--ui-danger)] focus:border-[var(--ui-danger)]" : "border-[var(--ui-border)] focus:border-[var(--ui-primary)] enabled:hover:not-focus:border-[var(--ui-control-border-hover)]"
|
|
15165
15165
|
)
|
|
15166
15166
|
);
|
|
15167
15167
|
yO(() => u.value ? void 0 : "sm");
|
|
15168
|
-
const h = Me("control"), { controlAttrs: m, wrapperAttrs: v, changed: y, invalid:
|
|
15168
|
+
const h = Me("control"), { controlAttrs: m, wrapperAttrs: v, changed: y, invalid: w } = Ka({
|
|
15169
15169
|
value: () => n.modelValue,
|
|
15170
15170
|
disabled: () => o.value,
|
|
15171
15171
|
id: () => n.id,
|
|
@@ -15174,7 +15174,7 @@ const aT = {
|
|
|
15174
15174
|
invalid: () => n.invalid,
|
|
15175
15175
|
keyboard: { type: () => n.type, element: () => h.value, active: () => !o.value && !n.readonly }
|
|
15176
15176
|
});
|
|
15177
|
-
return (
|
|
15177
|
+
return (C, b) => c.value || s.value ? (g(), I("span", le({ key: 0 }, d(v)(), {
|
|
15178
15178
|
class: ["flex min-w-0 items-center gap-2", u.value ? "max-w-full" : "w-full"],
|
|
15179
15179
|
"data-syno-pkg-land-ui": ""
|
|
15180
15180
|
}), [
|
|
@@ -15192,7 +15192,7 @@ const aT = {
|
|
|
15192
15192
|
disabled: d(o),
|
|
15193
15193
|
readonly: e.readonly,
|
|
15194
15194
|
class: p.value,
|
|
15195
|
-
onInput:
|
|
15195
|
+
onInput: b[0] || (b[0] = (_) => {
|
|
15196
15196
|
d(y)(_.target.value), a("update:modelValue", _.target.value);
|
|
15197
15197
|
})
|
|
15198
15198
|
}), null, 16, rT),
|
|
@@ -15204,7 +15204,7 @@ const aT = {
|
|
|
15204
15204
|
"aria-label": l.value ? d(r)("Hide password") : d(r)("Show password"),
|
|
15205
15205
|
"aria-pressed": l.value,
|
|
15206
15206
|
class: "absolute right-1 flex size-6 [--ui-hit-end-room:4px] items-center justify-center rounded-[var(--ui-radius-sm)] border-0 bg-transparent p-0 text-[var(--ui-text-secondary)] outline-none hover:text-[var(--ui-text)] focus-visible:shadow-[0_0_0_2px_var(--ui-focus-ring)] disabled:opacity-40",
|
|
15207
|
-
onClick:
|
|
15207
|
+
onClick: b[1] || (b[1] = (_) => l.value = !l.value)
|
|
15208
15208
|
}, [
|
|
15209
15209
|
l.value ? (g(), F(d(FO), {
|
|
15210
15210
|
key: 0,
|
|
@@ -15222,7 +15222,7 @@ const aT = {
|
|
|
15222
15222
|
"data-ui-input-unit": "",
|
|
15223
15223
|
class: ue(["shrink-0 whitespace-nowrap text-[length:var(--ui-font-size)] leading-5", d(o) ? "text-[var(--ui-text-disabled)]" : "text-[var(--ui-text)]"])
|
|
15224
15224
|
}, [
|
|
15225
|
-
z(
|
|
15225
|
+
z(C.$slots, "unit", {}, () => [
|
|
15226
15226
|
Oe(Q(e.unit), 1)
|
|
15227
15227
|
])
|
|
15228
15228
|
], 2)) : j("", !0)
|
|
@@ -15239,7 +15239,7 @@ const aT = {
|
|
|
15239
15239
|
readonly: e.readonly,
|
|
15240
15240
|
class: p.value,
|
|
15241
15241
|
"data-syno-pkg-land-ui": "",
|
|
15242
|
-
onInput:
|
|
15242
|
+
onInput: b[2] || (b[2] = (_) => {
|
|
15243
15243
|
d(y)(_.target.value), a("update:modelValue", _.target.value);
|
|
15244
15244
|
})
|
|
15245
15245
|
}), null, 16, sT));
|
|
@@ -15444,16 +15444,16 @@ function Hp(e, t, n, o = {}) {
|
|
|
15444
15444
|
e.key === "ArrowDown",
|
|
15445
15445
|
e.key === "Home",
|
|
15446
15446
|
e.key === "End"
|
|
15447
|
-
],
|
|
15448
|
-
if (!v && !y && (!
|
|
15449
|
-
const
|
|
15450
|
-
if (!
|
|
15447
|
+
], w = h || m, C = f || p;
|
|
15448
|
+
if (!v && !y && (!w && !C || a === "vertical" && C || a === "horizontal" && w)) return null;
|
|
15449
|
+
const b = n ? Array.from(n.querySelectorAll(r)) : i;
|
|
15450
|
+
if (!b.length) return null;
|
|
15451
15451
|
c && e.preventDefault();
|
|
15452
15452
|
let _ = null;
|
|
15453
|
-
return
|
|
15454
|
-
goForward:
|
|
15453
|
+
return C || w ? _ = Ay(b, t, {
|
|
15454
|
+
goForward: w ? m : l === "ltr" ? f : p,
|
|
15455
15455
|
loop: s
|
|
15456
|
-
}) : v ? _ =
|
|
15456
|
+
}) : v ? _ = b.at(0) || null : y && (_ = b.at(-1) || null), u && _?.focus(), _;
|
|
15457
15457
|
}
|
|
15458
15458
|
function Ay(e, t, n, o = e.includes(t) ? e.length : e.length + 1) {
|
|
15459
15459
|
if (--o === 0) return null;
|
|
@@ -15658,7 +15658,7 @@ class _T {
|
|
|
15658
15658
|
u.local.add(this), this.layers.push(f);
|
|
15659
15659
|
const p = r.closest("[data-reka-popper-content-wrapper]") ?? r, h = String(1401 + this.layers.length * 2), m = p.hasAttribute("data-reka-popper-content-wrapper") ? bT(p, "--ui-local-layer-z", h) : su(p, "z-index", h), v = r.previousElementSibling, y = s && v?.getAttribute("data-ui-overlay") === "" ? su(v, "z-index", String(1400 + this.layers.length * 2)) : void 0;
|
|
15660
15660
|
this.reconcile(), c(() => {
|
|
15661
|
-
this.layers = this.layers.filter((
|
|
15661
|
+
this.layers = this.layers.filter((w) => w !== f), m(), y?.(), this.reconcile(), this.layers.length || u.local.delete(this);
|
|
15662
15662
|
});
|
|
15663
15663
|
}, { immediate: !0, flush: "post" });
|
|
15664
15664
|
}
|
|
@@ -15831,7 +15831,7 @@ const Iy = xT(), Jp = /* @__PURE__ */ Symbol("useBodyScrollLock"), ST = /* @__PU
|
|
|
15831
15831
|
padding: 0,
|
|
15832
15832
|
margin: 0
|
|
15833
15833
|
};
|
|
15834
|
-
m > 0 && (document.body.style.paddingRight = typeof y.padding == "number" ? `${y.padding}px` : String(y.padding), document.body.style.marginRight = typeof y.margin == "number" ? `${y.margin}px` : String(y.margin), document.documentElement.style.setProperty("--scrollbar-width", `${m}px`), document.body.style.overflow = "hidden"), qp && (r = lt(document, "touchmove", (
|
|
15834
|
+
m > 0 && (document.body.style.paddingRight = typeof y.padding == "number" ? `${y.padding}px` : String(y.padding), document.body.style.marginRight = typeof y.margin == "number" ? `${y.margin}px` : String(y.margin), document.documentElement.style.setProperty("--scrollbar-width", `${m}px`), document.body.style.overflow = "hidden"), qp && (r = lt(document, "touchmove", (w) => kT(w), { passive: !1 })), Ne(() => {
|
|
15835
15835
|
o.value && (Oy(document, Jp), document.body.style.overflow = "hidden");
|
|
15836
15836
|
});
|
|
15837
15837
|
}, {
|
|
@@ -16177,8 +16177,8 @@ var NT = function(e) {
|
|
|
16177
16177
|
try {
|
|
16178
16178
|
var h = p.getAttribute(o), m = h !== null && h !== "false", v = (wa.get(p) || 0) + 1, y = (r.get(p) || 0) + 1;
|
|
16179
16179
|
wa.set(p, v), r.set(p, y), i.push(p), v === 1 && m && Ti.set(p, !0), y === 1 && p.setAttribute(n, "true"), m || p.setAttribute(o, "true");
|
|
16180
|
-
} catch (
|
|
16181
|
-
console.error("aria-hidden: cannot operate on ", p,
|
|
16180
|
+
} catch (w) {
|
|
16181
|
+
console.error("aria-hidden: cannot operate on ", p, w);
|
|
16182
16182
|
}
|
|
16183
16183
|
});
|
|
16184
16184
|
};
|
|
@@ -16337,34 +16337,34 @@ function UT(e, t) {
|
|
|
16337
16337
|
unmounted: { MOUNT: "mounted" }
|
|
16338
16338
|
}), u = (y) => {
|
|
16339
16339
|
if (yn) {
|
|
16340
|
-
const
|
|
16340
|
+
const w = new CustomEvent(y, {
|
|
16341
16341
|
bubbles: !1,
|
|
16342
16342
|
cancelable: !1
|
|
16343
16343
|
});
|
|
16344
|
-
t.value?.dispatchEvent(
|
|
16344
|
+
t.value?.dispatchEvent(w);
|
|
16345
16345
|
}
|
|
16346
16346
|
};
|
|
16347
|
-
te(e, async (y,
|
|
16348
|
-
const
|
|
16349
|
-
if (await Ne(),
|
|
16350
|
-
const
|
|
16351
|
-
y ? (c("MOUNT"), u("enter"), _ === "none" && u("after-enter")) : _ === "none" || _ === "undefined" || n.value?.display === "none" ? (c("UNMOUNT"), u("leave"), u("after-leave")) :
|
|
16347
|
+
te(e, async (y, w) => {
|
|
16348
|
+
const C = w !== y;
|
|
16349
|
+
if (await Ne(), C) {
|
|
16350
|
+
const b = o.value, _ = Ii(t.value);
|
|
16351
|
+
y ? (c("MOUNT"), u("enter"), _ === "none" && u("after-enter")) : _ === "none" || _ === "undefined" || n.value?.display === "none" ? (c("UNMOUNT"), u("leave"), u("after-leave")) : w && b !== _ ? (c("ANIMATION_OUT"), u("leave")) : (c("UNMOUNT"), u("after-leave"));
|
|
16352
16352
|
}
|
|
16353
16353
|
}, { immediate: !0 });
|
|
16354
16354
|
const f = (y) => {
|
|
16355
16355
|
if (y.target !== t.value) return;
|
|
16356
|
-
const
|
|
16357
|
-
if (
|
|
16356
|
+
const w = Ii(t.value), C = w.includes(CSS.escape(y.animationName)), b = l.value === "mounted" ? "enter" : "leave";
|
|
16357
|
+
if (C && (u(`after-${b}`), c("ANIMATION_END"), !a.value)) {
|
|
16358
16358
|
const _ = t.value.style.animationFillMode;
|
|
16359
16359
|
t.value.style.animationFillMode = "forwards", i = s?.setTimeout(() => {
|
|
16360
16360
|
t.value?.style.animationFillMode === "forwards" && (t.value.style.animationFillMode = _);
|
|
16361
16361
|
});
|
|
16362
16362
|
}
|
|
16363
|
-
|
|
16363
|
+
w === "none" && c("ANIMATION_END");
|
|
16364
16364
|
}, p = (y) => {
|
|
16365
16365
|
y.target === t.value && (o.value = Ii(t.value));
|
|
16366
|
-
}, h = te(t, (y,
|
|
16367
|
-
y ? (n.value = getComputedStyle(y), y.addEventListener("animationstart", p), y.addEventListener("animationcancel", f), y.addEventListener("animationend", f)) : (c("ANIMATION_END"), i !== void 0 && s?.clearTimeout(i),
|
|
16366
|
+
}, h = te(t, (y, w) => {
|
|
16367
|
+
y ? (n.value = getComputedStyle(y), y.addEventListener("animationstart", p), y.addEventListener("animationcancel", f), y.addEventListener("animationend", f)) : (c("ANIMATION_END"), i !== void 0 && s?.clearTimeout(i), w?.removeEventListener("animationstart", p), w?.removeEventListener("animationcancel", f), w?.removeEventListener("animationend", f));
|
|
16368
16368
|
}, { immediate: !0 }), m = te(l, () => {
|
|
16369
16369
|
const y = Ii(t.value);
|
|
16370
16370
|
o.value = l.value === "mounted" ? y : "none";
|
|
@@ -16656,15 +16656,15 @@ var n$ = /* @__PURE__ */ V({
|
|
|
16656
16656
|
r,
|
|
16657
16657
|
() => n.disableOutsidePointerEvents,
|
|
16658
16658
|
() => n.present
|
|
16659
|
-
], ([m, v, y],
|
|
16659
|
+
], ([m, v, y], w, C) => {
|
|
16660
16660
|
if (!(!m || !y) && v) {
|
|
16661
|
-
const
|
|
16662
|
-
Oy(
|
|
16663
|
-
_o.layersWithOutsidePointerEventsDisabled.delete(m), Ty(
|
|
16661
|
+
const b = m.ownerDocument;
|
|
16662
|
+
Oy(b, m), _o.layersWithOutsidePointerEventsDisabled.add(m), C(() => {
|
|
16663
|
+
_o.layersWithOutsidePointerEventsDisabled.delete(m), Ty(b, m);
|
|
16664
16664
|
});
|
|
16665
16665
|
}
|
|
16666
|
-
}, { immediate: !0 }), te([r, () => n.present], ([m, v], y,
|
|
16667
|
-
!m || !v || (l.value.add(m),
|
|
16666
|
+
}, { immediate: !0 }), te([r, () => n.present], ([m, v], y, w) => {
|
|
16667
|
+
!m || !v || (l.value.add(m), w(() => {
|
|
16668
16668
|
l.value.delete(m);
|
|
16669
16669
|
}));
|
|
16670
16670
|
}, { immediate: !0 }), Ut((m) => {
|
|
@@ -16806,35 +16806,35 @@ var c$ = /* @__PURE__ */ V({
|
|
|
16806
16806
|
const h = r.value;
|
|
16807
16807
|
if (!n.trapped) return;
|
|
16808
16808
|
const m = h?.ownerDocument ?? document, v = h ? h.getRootNode() : m;
|
|
16809
|
-
function y(
|
|
16809
|
+
function y(x) {
|
|
16810
16810
|
if (c.paused || !h) return;
|
|
16811
|
-
const A =
|
|
16811
|
+
const A = x.target;
|
|
16812
16812
|
h.contains(A) ? s.value = A : Mn(s.value, { select: !0 });
|
|
16813
16813
|
}
|
|
16814
|
-
function
|
|
16814
|
+
function w(x) {
|
|
16815
16815
|
if (c.paused || !h) return;
|
|
16816
|
-
const A =
|
|
16816
|
+
const A = x.relatedTarget;
|
|
16817
16817
|
A !== null && (h.contains(A) || Mn(s.value, { select: !0 }));
|
|
16818
16818
|
}
|
|
16819
|
-
function x
|
|
16819
|
+
function C(x) {
|
|
16820
16820
|
const A = s.value;
|
|
16821
|
-
if (A === null || !
|
|
16821
|
+
if (A === null || !x.some((S) => S.removedNodes.length > 0)) return;
|
|
16822
16822
|
const O = pt();
|
|
16823
16823
|
if (O && h.contains(O)) return;
|
|
16824
16824
|
h.contains(A) || Mn(h);
|
|
16825
16825
|
}
|
|
16826
|
-
function
|
|
16826
|
+
function b(x) {
|
|
16827
16827
|
if (c.paused || !h) return;
|
|
16828
|
-
const A =
|
|
16828
|
+
const A = x.composedPath()[0];
|
|
16829
16829
|
r$(h, A) || Mn(s.value, { select: !0 });
|
|
16830
16830
|
}
|
|
16831
|
-
v.addEventListener("focusin", y), v.addEventListener("focusout",
|
|
16832
|
-
const _ = new MutationObserver(
|
|
16831
|
+
v.addEventListener("focusin", y), v.addEventListener("focusout", w), v !== m && m.addEventListener("focusin", b);
|
|
16832
|
+
const _ = new MutationObserver(C);
|
|
16833
16833
|
h && _.observe(h, {
|
|
16834
16834
|
childList: !0,
|
|
16835
16835
|
subtree: !0
|
|
16836
16836
|
}), p(() => {
|
|
16837
|
-
v.removeEventListener("focusin", y), v.removeEventListener("focusout",
|
|
16837
|
+
v.removeEventListener("focusin", y), v.removeEventListener("focusout", w), v !== m && m.removeEventListener("focusin", b), _.disconnect();
|
|
16838
16838
|
});
|
|
16839
16839
|
});
|
|
16840
16840
|
function u(p, h) {
|
|
@@ -16847,11 +16847,11 @@ var c$ = /* @__PURE__ */ V({
|
|
|
16847
16847
|
n.present !== !1 && l.add(c);
|
|
16848
16848
|
const m = pt();
|
|
16849
16849
|
!h.contains(m) && n.present !== !1 && u(h, m), p(() => {
|
|
16850
|
-
const y = new CustomEvent(pu, eh),
|
|
16851
|
-
o("unmountAutoFocus",
|
|
16850
|
+
const y = new CustomEvent(pu, eh), w = (C) => {
|
|
16851
|
+
o("unmountAutoFocus", C);
|
|
16852
16852
|
};
|
|
16853
|
-
h.addEventListener(pu,
|
|
16854
|
-
y.defaultPrevented || Mn(m ?? document.body, { select: !0 }), h.removeEventListener(pu,
|
|
16853
|
+
h.addEventListener(pu, w), h.dispatchEvent(y), h.setAttribute("data-focus-scope-unmounting", ""), setTimeout(() => {
|
|
16854
|
+
y.defaultPrevented || Mn(m ?? document.body, { select: !0 }), h.removeEventListener(pu, w), l.remove(c), h.removeAttribute("data-focus-scope-unmounting");
|
|
16855
16855
|
}, 0);
|
|
16856
16856
|
});
|
|
16857
16857
|
}), te(() => n.present, async (p, h) => {
|
|
@@ -16871,8 +16871,8 @@ var c$ = /* @__PURE__ */ V({
|
|
|
16871
16871
|
if (!n.loop && !n.trapped || c.paused) return;
|
|
16872
16872
|
const h = p.key === "Tab" && !p.altKey && !p.ctrlKey && !p.metaKey, m = pt();
|
|
16873
16873
|
if (h && m) {
|
|
16874
|
-
const v = p.currentTarget, [y,
|
|
16875
|
-
y &&
|
|
16874
|
+
const v = p.currentTarget, [y, w] = s$(v);
|
|
16875
|
+
y && w ? !p.shiftKey && m === w ? (p.preventDefault(), n.loop && Mn(y, { select: !0 })) : p.shiftKey && m === y && (p.preventDefault(), n.loop && Mn(w, { select: !0 })) : m === v && p.preventDefault();
|
|
16876
16876
|
}
|
|
16877
16877
|
}
|
|
16878
16878
|
return (p, h) => (g(), F(d(Te), {
|
|
@@ -17453,8 +17453,8 @@ function Tn(e = {}) {
|
|
|
17453
17453
|
}, i = (f = !1) => {
|
|
17454
17454
|
const p = a.collectionRef.value;
|
|
17455
17455
|
if (!p) return [];
|
|
17456
|
-
const h = Array.from(p.querySelectorAll(`[${nh}]`)), m = new Map(h.map((
|
|
17457
|
-
return f ? y : y.filter((
|
|
17456
|
+
const h = Array.from(p.querySelectorAll(`[${nh}]`)), m = new Map(h.map((w, C) => [w, C])), y = Array.from(a.itemMap.value.values()).sort((w, C) => (m.get(w.ref) ?? -1) - (m.get(C.ref) ?? -1));
|
|
17457
|
+
return f ? y : y.filter((w) => w.ref.dataset.disabled !== "");
|
|
17458
17458
|
}, s = /* @__PURE__ */ V({
|
|
17459
17459
|
name: "CollectionSlot",
|
|
17460
17460
|
inheritAttrs: !1,
|
|
@@ -17475,11 +17475,11 @@ function Tn(e = {}) {
|
|
|
17475
17475
|
const { primitiveElement: m, currentElement: v } = Br();
|
|
17476
17476
|
return Ut((y) => {
|
|
17477
17477
|
if (v.value) {
|
|
17478
|
-
const
|
|
17479
|
-
a.itemMap.value.set(
|
|
17478
|
+
const w = qm(v.value);
|
|
17479
|
+
a.itemMap.value.set(w, {
|
|
17480
17480
|
ref: v.value,
|
|
17481
17481
|
value: f.value
|
|
17482
|
-
}), y(() => a.itemMap.value.delete(
|
|
17482
|
+
}), y(() => a.itemMap.value.delete(w));
|
|
17483
17483
|
}
|
|
17484
17484
|
}), () => ge(oc, {
|
|
17485
17485
|
...h,
|
|
@@ -17761,13 +17761,13 @@ var J$ = /* @__PURE__ */ V({
|
|
|
17761
17761
|
"leave"
|
|
17762
17762
|
],
|
|
17763
17763
|
setup(e, { expose: t, emit: n }) {
|
|
17764
|
-
const o = e, a = n, { multiple: r, highlightOnHover: i, loop: s, orientation: l, disabled: c, selectionBehavior: u, dir: f } = /* @__PURE__ */ $t(o), { getItems: p, getItem: h } = Tn({ isProvider: !0 }), { handleTypeaheadSearch: m } = sl(), { primitiveElement: v, currentElement: y } = Br(),
|
|
17764
|
+
const o = e, a = n, { multiple: r, highlightOnHover: i, loop: s, orientation: l, disabled: c, selectionBehavior: u, dir: f } = /* @__PURE__ */ $t(o), { getItems: p, getItem: h } = Tn({ isProvider: !0 }), { handleTypeaheadSearch: m } = sl(), { primitiveElement: v, currentElement: y } = Br(), w = BT(), C = fa(f), b = G$(null);
|
|
17765
17765
|
Y$({
|
|
17766
17766
|
suppressHighlightScroll: /* @__PURE__ */ N(!1),
|
|
17767
17767
|
onHighlightScrollRequest: () => {
|
|
17768
17768
|
}
|
|
17769
17769
|
});
|
|
17770
|
-
const _ = Ga(y),
|
|
17770
|
+
const _ = Ga(y), x = /* @__PURE__ */ N(), A = /* @__PURE__ */ N(!1), P = /* @__PURE__ */ N(!0), O = /* @__PURE__ */ Ft(o, "modelValue", a, {
|
|
17771
17771
|
defaultValue: o.defaultValue ?? (r.value ? [] : void 0),
|
|
17772
17772
|
passive: o.modelValue === void 0,
|
|
17773
17773
|
deep: !0
|
|
@@ -17775,7 +17775,7 @@ var J$ = /* @__PURE__ */ V({
|
|
|
17775
17775
|
function $(E) {
|
|
17776
17776
|
if (A.value = !0, o.multiple) {
|
|
17777
17777
|
const T = Array.isArray(O.value) ? [...O.value] : [], L = T.findIndex((Z) => xr(Z, E, o.by));
|
|
17778
|
-
o.selectionBehavior === "toggle" ? (L === -1 ? T.push(E) : T.splice(L, 1), O.value = T) : (O.value = [E],
|
|
17778
|
+
o.selectionBehavior === "toggle" ? (L === -1 ? T.push(E) : T.splice(L, 1), O.value = T) : (O.value = [E], x.value = E);
|
|
17779
17779
|
} else o.selectionBehavior === "toggle" && xr(O.value, E, o.by) ? O.value = void 0 : O.value = E;
|
|
17780
17780
|
setTimeout(() => {
|
|
17781
17781
|
A.value = !1;
|
|
@@ -17788,8 +17788,8 @@ var J$ = /* @__PURE__ */ V({
|
|
|
17788
17788
|
function re(E, T = !0, L) {
|
|
17789
17789
|
if (!E) return;
|
|
17790
17790
|
S.value = E;
|
|
17791
|
-
const Z =
|
|
17792
|
-
(L ?? P.value) && (Z ? S.value.focus({ preventScroll: !0 }) : S.value.focus()), Z ?
|
|
17791
|
+
const Z = b?.suppressHighlightScroll.value ?? !1;
|
|
17792
|
+
(L ?? P.value) && (Z ? S.value.focus({ preventScroll: !0 }) : S.value.focus()), Z ? b?.onHighlightScrollRequest(T ? () => {
|
|
17793
17793
|
const J = S.value;
|
|
17794
17794
|
J?.isConnected && J.scrollIntoView({ block: "nearest" });
|
|
17795
17795
|
} : void 0) : T && S.value.scrollIntoView({ block: "nearest" });
|
|
@@ -17866,7 +17866,7 @@ var J$ = /* @__PURE__ */ V({
|
|
|
17866
17866
|
return E === "next" ? Z === H : Z === 1;
|
|
17867
17867
|
}
|
|
17868
17868
|
function at(E) {
|
|
17869
|
-
const T = qy(E, l.value,
|
|
17869
|
+
const T = qy(E, l.value, C.value);
|
|
17870
17870
|
if (!T) return;
|
|
17871
17871
|
let L = W();
|
|
17872
17872
|
if (S.value) {
|
|
@@ -17876,7 +17876,7 @@ var J$ = /* @__PURE__ */ V({
|
|
|
17876
17876
|
const Z = L.indexOf(S.value), H = s.value && Z === L.length - 1;
|
|
17877
17877
|
if (H && M.value) {
|
|
17878
17878
|
if (He(T)) {
|
|
17879
|
-
const J = T === "next" ?
|
|
17879
|
+
const J = T === "next" ? w.HOME : w.END;
|
|
17880
17880
|
return B.trigger(new KeyboardEvent("keydown", {
|
|
17881
17881
|
key: J,
|
|
17882
17882
|
shiftKey: E.shiftKey
|
|
@@ -17897,8 +17897,8 @@ var J$ = /* @__PURE__ */ V({
|
|
|
17897
17897
|
if (!(M.value || o.selectionBehavior !== "replace" || !r.value || !Array.isArray(O.value) || (E.altKey || E.ctrlKey || E.metaKey) && !E.shiftKey) && E.shiftKey) {
|
|
17898
17898
|
const Z = p().filter((se) => se.ref.dataset.disabled !== "");
|
|
17899
17899
|
let H = Z.find((se) => se.ref === T)?.value;
|
|
17900
|
-
if (E.key ===
|
|
17901
|
-
const J = pT(Z.map((se) => se.value),
|
|
17900
|
+
if (E.key === w.END ? H = Z.at(-1)?.value : E.key === w.HOME && (H = Z[0]?.value), !H || !x.value) return;
|
|
17901
|
+
const J = pT(Z.map((se) => se.value), x.value, H);
|
|
17902
17902
|
O.value = J;
|
|
17903
17903
|
}
|
|
17904
17904
|
}
|
|
@@ -17935,7 +17935,7 @@ var J$ = /* @__PURE__ */ V({
|
|
|
17935
17935
|
onValueChange: $,
|
|
17936
17936
|
multiple: r,
|
|
17937
17937
|
orientation: l,
|
|
17938
|
-
dir:
|
|
17938
|
+
dir: C,
|
|
17939
17939
|
disabled: c,
|
|
17940
17940
|
highlightOnHover: i,
|
|
17941
17941
|
loop: s,
|
|
@@ -17945,7 +17945,7 @@ var J$ = /* @__PURE__ */ V({
|
|
|
17945
17945
|
virtualKeydownHook: B,
|
|
17946
17946
|
virtualHighlightHook: Y,
|
|
17947
17947
|
by: o.by,
|
|
17948
|
-
firstValue:
|
|
17948
|
+
firstValue: x,
|
|
17949
17949
|
selectionBehavior: u,
|
|
17950
17950
|
focusable: P,
|
|
17951
17951
|
onLeave: nt,
|
|
@@ -17962,7 +17962,7 @@ var J$ = /* @__PURE__ */ V({
|
|
|
17962
17962
|
ref: v,
|
|
17963
17963
|
as: e.as,
|
|
17964
17964
|
"as-child": e.asChild,
|
|
17965
|
-
dir: d(
|
|
17965
|
+
dir: d(C),
|
|
17966
17966
|
"data-disabled": d(c) ? "" : void 0,
|
|
17967
17967
|
onPointerleave: nt,
|
|
17968
17968
|
onFocusout: T[0] || (T[0] = async (L) => {
|
|
@@ -18084,22 +18084,22 @@ var J$ = /* @__PURE__ */ V({
|
|
|
18084
18084
|
}), Wt(() => {
|
|
18085
18085
|
r.focusable.value = !0;
|
|
18086
18086
|
});
|
|
18087
|
-
const { isComposing: u, shouldDeferInput: f, handleCompositionStart: p, handleCompositionUpdate: h, handleCompositionEnd: m } = PT((
|
|
18088
|
-
a.value =
|
|
18087
|
+
const { isComposing: u, shouldDeferInput: f, handleCompositionStart: p, handleCompositionUpdate: h, handleCompositionEnd: m } = PT((b) => {
|
|
18088
|
+
a.value = b.target.value, r.onCompositionEnd(), r.highlightFirstItem();
|
|
18089
18089
|
});
|
|
18090
18090
|
function v() {
|
|
18091
18091
|
r.onCompositionStart(), p();
|
|
18092
18092
|
}
|
|
18093
|
-
function y(
|
|
18094
|
-
f.value || (a.value =
|
|
18093
|
+
function y(b) {
|
|
18094
|
+
f.value || (a.value = b.target.value, r.highlightFirstItem());
|
|
18095
18095
|
}
|
|
18096
|
-
function b
|
|
18097
|
-
u.value || (
|
|
18096
|
+
function w(b) {
|
|
18097
|
+
u.value || (b.preventDefault(), r.onKeydownNavigation(b));
|
|
18098
18098
|
}
|
|
18099
|
-
function
|
|
18100
|
-
u.value || r.onKeydownEnter(
|
|
18099
|
+
function C(b) {
|
|
18100
|
+
u.value || r.onKeydownEnter(b);
|
|
18101
18101
|
}
|
|
18102
|
-
return (
|
|
18102
|
+
return (b, _) => (g(), F(d(Te), {
|
|
18103
18103
|
ref_key: "primitiveElement",
|
|
18104
18104
|
ref: i,
|
|
18105
18105
|
as: e.as,
|
|
@@ -18110,18 +18110,18 @@ var J$ = /* @__PURE__ */ V({
|
|
|
18110
18110
|
"aria-disabled": l.value ?? void 0,
|
|
18111
18111
|
"aria-activedescendant": c.value,
|
|
18112
18112
|
type: "text",
|
|
18113
|
-
onKeydown: [qn(
|
|
18113
|
+
onKeydown: [qn(w, [
|
|
18114
18114
|
"down",
|
|
18115
18115
|
"up",
|
|
18116
18116
|
"home",
|
|
18117
18117
|
"end"
|
|
18118
|
-
]), qn(
|
|
18118
|
+
]), qn(C, ["enter"])],
|
|
18119
18119
|
onInput: y,
|
|
18120
18120
|
onCompositionstart: v,
|
|
18121
18121
|
onCompositionupdate: d(h),
|
|
18122
18122
|
onCompositionend: d(m)
|
|
18123
18123
|
}, {
|
|
18124
|
-
default: R(() => [z(
|
|
18124
|
+
default: R(() => [z(b.$slots, "default", { modelValue: d(a) })]),
|
|
18125
18125
|
_: 3
|
|
18126
18126
|
}, 8, [
|
|
18127
18127
|
"as",
|
|
@@ -18526,30 +18526,30 @@ async function OI(e, t) {
|
|
|
18526
18526
|
elementContext: f = "floating",
|
|
18527
18527
|
altBoundary: p = !1,
|
|
18528
18528
|
padding: h = 0
|
|
18529
|
-
} = ho(t, e), m = Wy(h), y = s[p ? f === "floating" ? "reference" : "floating" : f],
|
|
18529
|
+
} = ho(t, e), m = Wy(h), y = s[p ? f === "floating" ? "reference" : "floating" : f], w = Cs(await r.getClippingRect({
|
|
18530
18530
|
element: (n = await (r.isElement == null ? void 0 : r.isElement(y))) == null || n ? y : y.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(s.floating)),
|
|
18531
18531
|
boundary: c,
|
|
18532
18532
|
rootBoundary: u,
|
|
18533
18533
|
strategy: l
|
|
18534
|
-
})),
|
|
18534
|
+
})), C = f === "floating" ? {
|
|
18535
18535
|
x: o,
|
|
18536
18536
|
y: a,
|
|
18537
18537
|
width: i.floating.width,
|
|
18538
18538
|
height: i.floating.height
|
|
18539
|
-
} : i.reference,
|
|
18539
|
+
} : i.reference, b = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(s.floating)), _ = await (r.isElement == null ? void 0 : r.isElement(b)) && await (r.getScale == null ? void 0 : r.getScale(b)) || {
|
|
18540
18540
|
x: 1,
|
|
18541
18541
|
y: 1
|
|
18542
|
-
},
|
|
18542
|
+
}, x = Cs(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
18543
18543
|
elements: s,
|
|
18544
|
-
rect:
|
|
18545
|
-
offsetParent:
|
|
18544
|
+
rect: C,
|
|
18545
|
+
offsetParent: b,
|
|
18546
18546
|
strategy: l
|
|
18547
|
-
}) :
|
|
18547
|
+
}) : C);
|
|
18548
18548
|
return {
|
|
18549
|
-
top: (
|
|
18550
|
-
bottom: (
|
|
18551
|
-
left: (
|
|
18552
|
-
right: (
|
|
18549
|
+
top: (w.top - x.top + m.top) / _.y,
|
|
18550
|
+
bottom: (x.bottom - w.bottom + m.bottom) / _.y,
|
|
18551
|
+
left: (w.left - x.left + m.left) / _.x,
|
|
18552
|
+
right: (x.right - w.right + m.right) / _.x
|
|
18553
18553
|
};
|
|
18554
18554
|
}
|
|
18555
18555
|
const TI = 50, $I = async (e, t, n) => {
|
|
@@ -18576,14 +18576,14 @@ const TI = 50, $I = async (e, t, n) => {
|
|
|
18576
18576
|
if (!y)
|
|
18577
18577
|
continue;
|
|
18578
18578
|
const {
|
|
18579
|
-
name:
|
|
18580
|
-
fn:
|
|
18579
|
+
name: w,
|
|
18580
|
+
fn: C
|
|
18581
18581
|
} = y, {
|
|
18582
|
-
x:
|
|
18582
|
+
x: b,
|
|
18583
18583
|
y: _,
|
|
18584
|
-
data:
|
|
18584
|
+
data: x,
|
|
18585
18585
|
reset: A
|
|
18586
|
-
} = await
|
|
18586
|
+
} = await C({
|
|
18587
18587
|
x: u,
|
|
18588
18588
|
y: f,
|
|
18589
18589
|
initialPlacement: o,
|
|
@@ -18597,9 +18597,9 @@ const TI = 50, $I = async (e, t, n) => {
|
|
|
18597
18597
|
floating: t
|
|
18598
18598
|
}
|
|
18599
18599
|
});
|
|
18600
|
-
u =
|
|
18601
|
-
...m[
|
|
18602
|
-
...
|
|
18600
|
+
u = b ?? u, f = _ ?? f, m[w] = {
|
|
18601
|
+
...m[w],
|
|
18602
|
+
...x
|
|
18603
18603
|
}, A && h < TI && (h++, typeof A == "object" && (A.placement && (p = A.placement), A.rects && (c = A.rects === !0 ? await i.getElementRects({
|
|
18604
18604
|
reference: e,
|
|
18605
18605
|
floating: t,
|
|
@@ -18637,10 +18637,10 @@ const TI = 50, $I = async (e, t, n) => {
|
|
|
18637
18637
|
const f = Wy(u), p = {
|
|
18638
18638
|
x: n,
|
|
18639
18639
|
y: o
|
|
18640
|
-
}, h = gd(a), m = vd(h), v = await i.getDimensions(c), y = h === "y",
|
|
18641
|
-
let P = A ? A[
|
|
18642
|
-
(!P || !await (i.isElement == null ? void 0 : i.isElement(A))) && (P = s.floating[
|
|
18643
|
-
const O = _ / 2 -
|
|
18640
|
+
}, h = gd(a), m = vd(h), v = await i.getDimensions(c), y = h === "y", w = y ? "top" : "left", C = y ? "bottom" : "right", b = y ? "clientHeight" : "clientWidth", _ = r.reference[m] + r.reference[h] - p[h] - r.floating[m], x = p[h] - r.reference[h], A = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
|
|
18641
|
+
let P = A ? A[b] : 0;
|
|
18642
|
+
(!P || !await (i.isElement == null ? void 0 : i.isElement(A))) && (P = s.floating[b] || r.floating[m]);
|
|
18643
|
+
const O = _ / 2 - x / 2, $ = P / 2 - v[m] / 2 - 1, S = Do(f[w], $), D = Do(f[C], $), M = P - v[m] - D, q = P / 2 - v[m] / 2 + O, U = Uy(S, q, M), B = !l.arrow && Ya(a) != null && q !== U && r.reference[m] / 2 - (q < S ? S : D) - v[m] / 2 < 0, Y = B ? q < S ? q - S : q - M : 0;
|
|
18644
18644
|
return {
|
|
18645
18645
|
[h]: p[h] + Y,
|
|
18646
18646
|
data: {
|
|
@@ -18677,11 +18677,11 @@ const TI = 50, $I = async (e, t, n) => {
|
|
|
18677
18677
|
} = ho(e, t);
|
|
18678
18678
|
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
18679
18679
|
return {};
|
|
18680
|
-
const
|
|
18681
|
-
!p && A &&
|
|
18682
|
-
const P = [s, ...
|
|
18680
|
+
const w = Ro(a), C = Fn(s), b = Ro(s) === s, _ = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), x = p || (b || !v ? [ks(s)] : SI(s)), A = m !== "none";
|
|
18681
|
+
!p && A && x.push(...AI(s, v, m, _));
|
|
18682
|
+
const P = [s, ...x], O = await l.detectOverflow(t, y), $ = [];
|
|
18683
18683
|
let S = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
18684
|
-
if (u && $.push(O[
|
|
18684
|
+
if (u && $.push(O[w]), f) {
|
|
18685
18685
|
const U = xI(a, i, _);
|
|
18686
18686
|
$.push(O[U[0]], O[U[1]]);
|
|
18687
18687
|
}
|
|
@@ -18691,9 +18691,9 @@ const TI = 50, $I = async (e, t, n) => {
|
|
|
18691
18691
|
}], !$.every((U) => U <= 0)) {
|
|
18692
18692
|
var D, M;
|
|
18693
18693
|
const U = (((D = r.flip) == null ? void 0 : D.index) || 0) + 1, B = P[U];
|
|
18694
|
-
if (B && (!(f === "alignment" ?
|
|
18694
|
+
if (B && (!(f === "alignment" ? C !== Fn(B) : !1) || // We leave the current main axis only if every placement on that axis
|
|
18695
18695
|
// overflows the main axis.
|
|
18696
|
-
S.every((re) => Fn(re.placement) ===
|
|
18696
|
+
S.every((re) => Fn(re.placement) === C ? re.overflows[0] > 0 : !0)))
|
|
18697
18697
|
return {
|
|
18698
18698
|
data: {
|
|
18699
18699
|
index: U,
|
|
@@ -18711,7 +18711,7 @@ const TI = 50, $I = async (e, t, n) => {
|
|
|
18711
18711
|
const W = (q = S.filter((re) => {
|
|
18712
18712
|
if (A) {
|
|
18713
18713
|
const me = Fn(re.placement);
|
|
18714
|
-
return me ===
|
|
18714
|
+
return me === C || // Create a bias to the `y` side axis due to horizontal
|
|
18715
18715
|
// reading directions favoring greater width.
|
|
18716
18716
|
me === "y";
|
|
18717
18717
|
}
|
|
@@ -18852,13 +18852,13 @@ const NI = function(e) {
|
|
|
18852
18852
|
mainAxis: i = !0,
|
|
18853
18853
|
crossAxis: s = !1,
|
|
18854
18854
|
limiter: l = {
|
|
18855
|
-
fn: (
|
|
18855
|
+
fn: (C) => {
|
|
18856
18856
|
let {
|
|
18857
|
-
x:
|
|
18857
|
+
x: b,
|
|
18858
18858
|
y: _
|
|
18859
|
-
} =
|
|
18859
|
+
} = C;
|
|
18860
18860
|
return {
|
|
18861
|
-
x:
|
|
18861
|
+
x: b,
|
|
18862
18862
|
y: _
|
|
18863
18863
|
};
|
|
18864
18864
|
}
|
|
@@ -18869,18 +18869,18 @@ const NI = function(e) {
|
|
|
18869
18869
|
y: o
|
|
18870
18870
|
}, f = await r.detectOverflow(t, c), p = Fn(a), h = md(p);
|
|
18871
18871
|
let m = u[h], v = u[p];
|
|
18872
|
-
const y = (
|
|
18872
|
+
const y = (C, b) => Uy(b + f[C === "y" ? "top" : "left"], b, b - f[C === "y" ? "bottom" : "right"]);
|
|
18873
18873
|
i && (m = y(h, m)), s && (v = y(p, v));
|
|
18874
|
-
const
|
|
18874
|
+
const w = l.fn({
|
|
18875
18875
|
...t,
|
|
18876
18876
|
[h]: m,
|
|
18877
18877
|
[p]: v
|
|
18878
18878
|
});
|
|
18879
18879
|
return {
|
|
18880
|
-
...
|
|
18880
|
+
...w,
|
|
18881
18881
|
data: {
|
|
18882
|
-
x:
|
|
18883
|
-
y:
|
|
18882
|
+
x: w.x - n,
|
|
18883
|
+
y: w.y - o,
|
|
18884
18884
|
enabled: {
|
|
18885
18885
|
[h]: i,
|
|
18886
18886
|
[p]: s
|
|
@@ -18909,20 +18909,20 @@ const NI = function(e) {
|
|
|
18909
18909
|
y: r
|
|
18910
18910
|
}, h = Fn(i), m = md(h);
|
|
18911
18911
|
let v = p[m], y = p[h];
|
|
18912
|
-
const
|
|
18913
|
-
mainAxis:
|
|
18912
|
+
const w = ho(c, t), C = typeof w == "number" ? {
|
|
18913
|
+
mainAxis: w,
|
|
18914
18914
|
crossAxis: 0
|
|
18915
18915
|
} : {
|
|
18916
|
-
mainAxis: (n =
|
|
18917
|
-
crossAxis: (o =
|
|
18916
|
+
mainAxis: (n = w.mainAxis) != null ? n : 0,
|
|
18917
|
+
crossAxis: (o = w.crossAxis) != null ? o : 0
|
|
18918
18918
|
};
|
|
18919
18919
|
if (u) {
|
|
18920
|
-
const
|
|
18920
|
+
const x = m === "y" ? "height" : "width", A = s.reference[m] - s.floating[x] + C.mainAxis, P = s.reference[m] + s.reference[x] - C.mainAxis;
|
|
18921
18921
|
v < A ? v = A : v > P && (v = P);
|
|
18922
18922
|
}
|
|
18923
18923
|
if (f) {
|
|
18924
|
-
var
|
|
18925
|
-
const
|
|
18924
|
+
var b, _;
|
|
18925
|
+
const x = m === "y" ? "width" : "height", A = Ky.has(Ro(i)), P = s.reference[h] - s.floating[x] + (A && ((b = l.offset) == null ? void 0 : b[h]) || 0) + (A ? 0 : C.crossAxis), O = s.reference[h] + s.reference[x] + (A ? 0 : ((_ = l.offset) == null ? void 0 : _[h]) || 0) - (A ? C.crossAxis : 0);
|
|
18926
18926
|
y < P ? y = P : y > O && (y = O);
|
|
18927
18927
|
}
|
|
18928
18928
|
return {
|
|
@@ -18951,9 +18951,9 @@ const NI = function(e) {
|
|
|
18951
18951
|
} = o.floating;
|
|
18952
18952
|
let m, v;
|
|
18953
18953
|
c === "top" || c === "bottom" ? (m = c, v = u === (await (a.isRTL == null ? void 0 : a.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (v = c, m = u === "end" ? "top" : "bottom");
|
|
18954
|
-
const y = h - l.top - l.bottom,
|
|
18955
|
-
let A =
|
|
18956
|
-
_ != null && _.enabled.x && (P =
|
|
18954
|
+
const y = h - l.top - l.bottom, w = p - l.left - l.right, C = Do(h - l[m], y), b = Do(p - l[v], w), _ = t.middlewareData.shift, x = !_;
|
|
18955
|
+
let A = C, P = b;
|
|
18956
|
+
_ != null && _.enabled.x && (P = w), _ != null && _.enabled.y && (A = y), x && !u && (f ? P = p - 2 * ro(l.left, l.right) : A = h - 2 * ro(l.top, l.bottom)), await i({
|
|
18957
18957
|
...t,
|
|
18958
18958
|
availableWidth: P,
|
|
18959
18959
|
availableHeight: A
|
|
@@ -19131,8 +19131,8 @@ function ua(e, t, n, o) {
|
|
|
19131
19131
|
const p = on(r), h = Un(o) ? on(o) : o;
|
|
19132
19132
|
let m = p, v = lc(m);
|
|
19133
19133
|
for (; v && h !== m; ) {
|
|
19134
|
-
const y = Da(v),
|
|
19135
|
-
l *= y.x, c *= y.y, u *= y.x, f *= y.y, l +=
|
|
19134
|
+
const y = Da(v), w = v.getBoundingClientRect(), C = Wn(v), b = w.left + (v.clientLeft + parseFloat(C.paddingLeft)) * y.x, _ = w.top + (v.clientTop + parseFloat(C.paddingTop)) * y.y;
|
|
19135
|
+
l *= y.x, c *= y.y, u *= y.x, f *= y.y, l += b, c += _, m = on(v), v = lc(m);
|
|
19136
19136
|
}
|
|
19137
19137
|
}
|
|
19138
19138
|
return Cs({
|
|
@@ -19204,8 +19204,8 @@ function YI(e, t, n) {
|
|
|
19204
19204
|
o ? p || (c = -i.offsetLeft, u = -i.offsetTop) : (s = i.width, l = i.height, p && (c = i.offsetLeft, u = i.offsetTop));
|
|
19205
19205
|
}
|
|
19206
19206
|
if (pl(r) <= 0) {
|
|
19207
|
-
const p = r.ownerDocument, h = p.body, m = getComputedStyle(h), v = p.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, y = Math.abs(r.clientWidth - h.clientWidth - v),
|
|
19208
|
-
|
|
19207
|
+
const p = r.ownerDocument, h = p.body, m = getComputedStyle(h), v = p.compatMode === "CSS1Compat" && parseFloat(m.marginLeft) + parseFloat(m.marginRight) || 0, y = Math.abs(r.clientWidth - h.clientWidth - v), w = getComputedStyle(r).scrollbarGutter === "stable both-edges" ? y / 2 : y;
|
|
19208
|
+
w <= GI && (s -= w);
|
|
19209
19209
|
}
|
|
19210
19210
|
return {
|
|
19211
19211
|
width: s,
|
|
@@ -19381,8 +19381,8 @@ function rD(e, t, n) {
|
|
|
19381
19381
|
} = p;
|
|
19382
19382
|
if (u || t(), !v || !y)
|
|
19383
19383
|
return;
|
|
19384
|
-
const
|
|
19385
|
-
rootMargin: -
|
|
19384
|
+
const w = Di(m), C = Di(r.clientWidth - (h + v)), b = Di(r.clientHeight - (m + y)), _ = Di(h), A = {
|
|
19385
|
+
rootMargin: -w + "px " + -C + "px " + -b + "px " + -_ + "px",
|
|
19386
19386
|
threshold: ro(0, Do(1, f)) || 1
|
|
19387
19387
|
};
|
|
19388
19388
|
let P = !0;
|
|
@@ -19424,29 +19424,29 @@ function iD(e, t, n, o) {
|
|
|
19424
19424
|
layoutShift: s = typeof IntersectionObserver == "function",
|
|
19425
19425
|
animationFrame: l = !1
|
|
19426
19426
|
} = o, c = _d(e), u = a || r ? [...c ? Vr(c) : [], ...t ? Vr(t) : []] : [];
|
|
19427
|
-
u.forEach((
|
|
19428
|
-
a &&
|
|
19427
|
+
u.forEach((w) => {
|
|
19428
|
+
a && w.addEventListener("scroll", n), r && w.addEventListener("resize", n);
|
|
19429
19429
|
});
|
|
19430
19430
|
const f = c && s ? rD(c, n, r) : null;
|
|
19431
19431
|
let p = -1, h = null;
|
|
19432
|
-
i && (h = new ResizeObserver((
|
|
19433
|
-
let [
|
|
19434
|
-
|
|
19435
|
-
var
|
|
19436
|
-
(
|
|
19432
|
+
i && (h = new ResizeObserver((w) => {
|
|
19433
|
+
let [C] = w;
|
|
19434
|
+
C && C.target === c && h && t && (h.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
19435
|
+
var b;
|
|
19436
|
+
(b = h) == null || b.observe(t);
|
|
19437
19437
|
})), n();
|
|
19438
19438
|
}), c && !l && h.observe(c), t && h.observe(t));
|
|
19439
19439
|
let m, v = l ? ua(e) : null;
|
|
19440
19440
|
l && y();
|
|
19441
19441
|
function y() {
|
|
19442
|
-
const
|
|
19443
|
-
v && !Xy(v,
|
|
19442
|
+
const w = ua(e);
|
|
19443
|
+
v && !Xy(v, w) && n(), v = w, m = requestAnimationFrame(y);
|
|
19444
19444
|
}
|
|
19445
19445
|
return n(), () => {
|
|
19446
|
-
var
|
|
19447
|
-
u.forEach((
|
|
19448
|
-
a &&
|
|
19449
|
-
}), f?.(), (
|
|
19446
|
+
var w;
|
|
19447
|
+
u.forEach((C) => {
|
|
19448
|
+
a && C.removeEventListener("scroll", n), r && C.removeEventListener("resize", n);
|
|
19449
|
+
}), f?.(), (w = h) == null || w.disconnect(), h = null, l && cancelAnimationFrame(m);
|
|
19450
19450
|
};
|
|
19451
19451
|
}
|
|
19452
19452
|
const sD = NI, lD = LI, ph = DI, uD = zI, cD = RI, dD = II, fD = FI, pD = (e, t, n) => {
|
|
@@ -19504,7 +19504,7 @@ function vD(e, t, n) {
|
|
|
19504
19504
|
}), l = k(() => {
|
|
19505
19505
|
var P;
|
|
19506
19506
|
return (P = Pe(n.transform)) != null ? P : !0;
|
|
19507
|
-
}), c = k(() => uc(e.value)), u = k(() => uc(t.value)), f = /* @__PURE__ */ N(0), p = /* @__PURE__ */ N(0), h = /* @__PURE__ */ N(s.value), m = /* @__PURE__ */ N(i.value), v = /* @__PURE__ */ Et({}), y = /* @__PURE__ */ N(!1),
|
|
19507
|
+
}), c = k(() => uc(e.value)), u = k(() => uc(t.value)), f = /* @__PURE__ */ N(0), p = /* @__PURE__ */ N(0), h = /* @__PURE__ */ N(s.value), m = /* @__PURE__ */ N(i.value), v = /* @__PURE__ */ Et({}), y = /* @__PURE__ */ N(!1), w = k(() => {
|
|
19508
19508
|
const P = {
|
|
19509
19509
|
position: h.value,
|
|
19510
19510
|
left: "0",
|
|
@@ -19525,8 +19525,8 @@ function vD(e, t, n) {
|
|
|
19525
19525
|
top: $ + "px"
|
|
19526
19526
|
};
|
|
19527
19527
|
});
|
|
19528
|
-
let
|
|
19529
|
-
function
|
|
19528
|
+
let C;
|
|
19529
|
+
function b() {
|
|
19530
19530
|
if (c.value == null || u.value == null)
|
|
19531
19531
|
return;
|
|
19532
19532
|
const P = a.value;
|
|
@@ -19539,24 +19539,24 @@ function vD(e, t, n) {
|
|
|
19539
19539
|
});
|
|
19540
19540
|
}
|
|
19541
19541
|
function _() {
|
|
19542
|
-
typeof
|
|
19542
|
+
typeof C == "function" && (C(), C = void 0);
|
|
19543
19543
|
}
|
|
19544
|
-
function
|
|
19544
|
+
function x() {
|
|
19545
19545
|
if (_(), o === void 0) {
|
|
19546
|
-
|
|
19546
|
+
b();
|
|
19547
19547
|
return;
|
|
19548
19548
|
}
|
|
19549
19549
|
if (c.value != null && u.value != null) {
|
|
19550
|
-
|
|
19550
|
+
C = o(c.value, u.value, b);
|
|
19551
19551
|
return;
|
|
19552
19552
|
}
|
|
19553
19553
|
}
|
|
19554
19554
|
function A() {
|
|
19555
19555
|
a.value || (y.value = !1);
|
|
19556
19556
|
}
|
|
19557
|
-
return te([r, i, s, a],
|
|
19557
|
+
return te([r, i, s, a], b, {
|
|
19558
19558
|
flush: "sync"
|
|
19559
|
-
}), te([c, u],
|
|
19559
|
+
}), te([c, u], x, {
|
|
19560
19560
|
flush: "sync"
|
|
19561
19561
|
}), te(a, A, {
|
|
19562
19562
|
flush: "sync"
|
|
@@ -19567,8 +19567,8 @@ function vD(e, t, n) {
|
|
|
19567
19567
|
placement: /* @__PURE__ */ Zo(m),
|
|
19568
19568
|
middlewareData: /* @__PURE__ */ Zo(v),
|
|
19569
19569
|
isPositioned: /* @__PURE__ */ Zo(y),
|
|
19570
|
-
floatingStyles:
|
|
19571
|
-
update:
|
|
19570
|
+
floatingStyles: w,
|
|
19571
|
+
update: b
|
|
19572
19572
|
};
|
|
19573
19573
|
}
|
|
19574
19574
|
const gD = ["dir"], eb = {
|
|
@@ -19694,17 +19694,17 @@ var bD = /* @__PURE__ */ V({
|
|
|
19694
19694
|
padding: m.value,
|
|
19695
19695
|
boundary: v.value.filter(yI),
|
|
19696
19696
|
altBoundary: v.value.length > 0
|
|
19697
|
-
})),
|
|
19697
|
+
})), w = k(() => ({
|
|
19698
19698
|
mainAxis: n.sideFlip,
|
|
19699
19699
|
crossAxis: n.alignFlip
|
|
19700
|
-
})),
|
|
19700
|
+
})), C = k(() => [
|
|
19701
19701
|
sD({
|
|
19702
19702
|
mainAxis: n.sideOffset + p.value,
|
|
19703
19703
|
alignmentAxis: n.alignOffset
|
|
19704
19704
|
}),
|
|
19705
19705
|
n.prioritizePosition && n.avoidCollisions && ph({
|
|
19706
19706
|
...y.value,
|
|
19707
|
-
...
|
|
19707
|
+
...w.value
|
|
19708
19708
|
}),
|
|
19709
19709
|
n.avoidCollisions && lD({
|
|
19710
19710
|
mainAxis: !0,
|
|
@@ -19714,7 +19714,7 @@ var bD = /* @__PURE__ */ V({
|
|
|
19714
19714
|
}),
|
|
19715
19715
|
!n.prioritizePosition && n.avoidCollisions && ph({
|
|
19716
19716
|
...y.value,
|
|
19717
|
-
...
|
|
19717
|
+
...w.value
|
|
19718
19718
|
}),
|
|
19719
19719
|
uD({
|
|
19720
19720
|
...y.value,
|
|
@@ -19736,15 +19736,15 @@ var bD = /* @__PURE__ */ V({
|
|
|
19736
19736
|
strategy: "referenceHidden",
|
|
19737
19737
|
...y.value
|
|
19738
19738
|
})
|
|
19739
|
-
]),
|
|
19739
|
+
]), b = k(() => n.reference ?? r.anchor.value), { floatingStyles: _, placement: x, isPositioned: A, middlewareData: P } = vD(b, c, {
|
|
19740
19740
|
strategy: n.positionStrategy,
|
|
19741
19741
|
placement: h,
|
|
19742
19742
|
whileElementsMounted: (...U) => iD(...U, {
|
|
19743
19743
|
layoutShift: !n.disableUpdateOnLayoutShift,
|
|
19744
19744
|
animationFrame: n.updatePositionStrategy === "always"
|
|
19745
19745
|
}),
|
|
19746
|
-
middleware:
|
|
19747
|
-
}), O = k(() => ic(
|
|
19746
|
+
middleware: C
|
|
19747
|
+
}), O = k(() => ic(x.value)[0]), $ = k(() => ic(x.value)[1]);
|
|
19748
19748
|
Xm(() => {
|
|
19749
19749
|
A.value && a("placed");
|
|
19750
19750
|
});
|
|
@@ -19877,13 +19877,13 @@ var SD = /* @__PURE__ */ V({
|
|
|
19877
19877
|
defaultValue: o.defaultCurrentTabStopId,
|
|
19878
19878
|
passive: o.currentTabStopId === void 0
|
|
19879
19879
|
}), u = /* @__PURE__ */ N(!1), f = /* @__PURE__ */ N(!1), p = /* @__PURE__ */ N(0), { getItems: h, CollectionSlot: m } = Tn({ isProvider: !0 });
|
|
19880
|
-
function v(
|
|
19881
|
-
const
|
|
19882
|
-
if (
|
|
19883
|
-
const
|
|
19884
|
-
if (
|
|
19885
|
-
const _ = h().map(($) => $.ref).filter(($) => $.dataset.disabled !== ""),
|
|
19886
|
-
|
|
19880
|
+
function v(w) {
|
|
19881
|
+
const C = !f.value;
|
|
19882
|
+
if (w.currentTarget && w.target === w.currentTarget && C && !u.value) {
|
|
19883
|
+
const b = new CustomEvent(j$, U$);
|
|
19884
|
+
if (w.currentTarget.dispatchEvent(b), a("entryFocus", b), !b.defaultPrevented) {
|
|
19885
|
+
const _ = h().map(($) => $.ref).filter(($) => $.dataset.disabled !== ""), x = _.find(($) => $.getAttribute("data-active") === ""), A = _.find(($) => $.getAttribute("data-highlighted") === ""), P = _.find(($) => $.id === c.value), O = [
|
|
19886
|
+
x,
|
|
19887
19887
|
A,
|
|
19888
19888
|
P,
|
|
19889
19889
|
..._
|
|
@@ -19903,8 +19903,8 @@ var SD = /* @__PURE__ */ V({
|
|
|
19903
19903
|
dir: l,
|
|
19904
19904
|
orientation: i,
|
|
19905
19905
|
currentTabStopId: c,
|
|
19906
|
-
onItemFocus: (
|
|
19907
|
-
c.value =
|
|
19906
|
+
onItemFocus: (w) => {
|
|
19907
|
+
c.value = w;
|
|
19908
19908
|
},
|
|
19909
19909
|
onItemShiftTab: () => {
|
|
19910
19910
|
u.value = !0;
|
|
@@ -19915,7 +19915,7 @@ var SD = /* @__PURE__ */ V({
|
|
|
19915
19915
|
onFocusableItemRemove: () => {
|
|
19916
19916
|
p.value--;
|
|
19917
19917
|
}
|
|
19918
|
-
}), (
|
|
19918
|
+
}), (w, C) => (g(), F(d(m), null, {
|
|
19919
19919
|
default: R(() => [K(d(Te), {
|
|
19920
19920
|
tabindex: u.value || p.value === 0 ? -1 : 0,
|
|
19921
19921
|
"data-orientation": d(i),
|
|
@@ -19923,12 +19923,12 @@ var SD = /* @__PURE__ */ V({
|
|
|
19923
19923
|
"as-child": e.asChild,
|
|
19924
19924
|
dir: d(l),
|
|
19925
19925
|
style: { outline: "none" },
|
|
19926
|
-
onMousedown:
|
|
19926
|
+
onMousedown: C[0] || (C[0] = (b) => f.value = !0),
|
|
19927
19927
|
onMouseup: y,
|
|
19928
19928
|
onFocus: v,
|
|
19929
|
-
onBlur:
|
|
19929
|
+
onBlur: C[1] || (C[1] = (b) => u.value = !1)
|
|
19930
19930
|
}, {
|
|
19931
|
-
default: R(() => [z(
|
|
19931
|
+
default: R(() => [z(w.$slots, "default")]),
|
|
19932
19932
|
_: 3
|
|
19933
19933
|
}, 8, [
|
|
19934
19934
|
"tabindex",
|
|
@@ -20111,10 +20111,10 @@ var PD = /* @__PURE__ */ V({
|
|
|
20111
20111
|
if (Ia(D)) return !1;
|
|
20112
20112
|
const M = i.modelValue.value ?? [];
|
|
20113
20113
|
return !iu(M, n.value) && M.length >= D;
|
|
20114
|
-
}), u = k(() => !!(i?.disabled.value || n.disabled || s?.disabled.value)), f = k(() => u.value || c.value), p = k(() => !!s && !i), h = k(() => n.id ?? (p.value ? s?.fieldId.value : void 0)), m = k(() => n.name ?? s?.name.value), v = k(() => s ? n.required || s.required.value : n.required), y = k(() => po(l.value, n.trueValue)),
|
|
20115
|
-
function
|
|
20114
|
+
}), u = k(() => !!(i?.disabled.value || n.disabled || s?.disabled.value)), f = k(() => u.value || c.value), p = k(() => !!s && !i), h = k(() => n.id ?? (p.value ? s?.fieldId.value : void 0)), m = k(() => n.name ?? s?.name.value), v = k(() => s ? n.required || s.required.value : n.required), y = k(() => po(l.value, n.trueValue)), w = k(() => Ia(i?.modelValue.value) ? l.value === "indeterminate" ? "indeterminate" : y.value : iu(i.modelValue.value, n.value));
|
|
20115
|
+
function C() {
|
|
20116
20116
|
if (f.value) return;
|
|
20117
|
-
const D =
|
|
20117
|
+
const D = w.value !== !0;
|
|
20118
20118
|
if (Ia(i?.modelValue.value))
|
|
20119
20119
|
l.value === "indeterminate" ? l.value = n.trueValue : l.value = y.value ? n.falseValue : n.trueValue;
|
|
20120
20120
|
else {
|
|
@@ -20127,19 +20127,19 @@ var PD = /* @__PURE__ */ V({
|
|
|
20127
20127
|
}
|
|
20128
20128
|
p.value && s?.handleControlInput({ value: D });
|
|
20129
20129
|
}
|
|
20130
|
-
te(
|
|
20130
|
+
te(w, (D) => {
|
|
20131
20131
|
p.value && s?.reportControlState({ filled: D === !0 });
|
|
20132
20132
|
});
|
|
20133
|
-
const
|
|
20134
|
-
if (!
|
|
20133
|
+
const b = Ga(r), _ = rl(), x = Yr(), A = k(() => {
|
|
20134
|
+
if (!x["aria-label"])
|
|
20135
20135
|
return h.value && r.value ? document.querySelector(`[for="${h.value}"]`)?.innerText : void 0;
|
|
20136
20136
|
});
|
|
20137
20137
|
function P() {
|
|
20138
20138
|
const D = (M, q) => [M, q].filter(Boolean).join(" ") || void 0;
|
|
20139
20139
|
return {
|
|
20140
|
-
"aria-labelledby": D(
|
|
20141
|
-
"aria-describedby": D(
|
|
20142
|
-
"aria-invalid":
|
|
20140
|
+
"aria-labelledby": D(x["aria-labelledby"], p.value ? s?.labelId.value : void 0),
|
|
20141
|
+
"aria-describedby": D(x["aria-describedby"], s?.describedBy.value),
|
|
20142
|
+
"aria-invalid": x["aria-invalid"] ?? (s?.invalid.value || void 0)
|
|
20143
20143
|
};
|
|
20144
20144
|
}
|
|
20145
20145
|
function O() {
|
|
@@ -20156,13 +20156,13 @@ var PD = /* @__PURE__ */ V({
|
|
|
20156
20156
|
p.value && (S = s?.registerControl({
|
|
20157
20157
|
id: () => h.value,
|
|
20158
20158
|
element: () => r.value,
|
|
20159
|
-
getValue: () =>
|
|
20159
|
+
getValue: () => w.value,
|
|
20160
20160
|
required: () => n.required,
|
|
20161
20161
|
isFilled: (D) => D === !0
|
|
20162
20162
|
}));
|
|
20163
20163
|
}), Re(() => S?.()), AD({
|
|
20164
20164
|
disabled: u,
|
|
20165
|
-
state:
|
|
20165
|
+
state: w
|
|
20166
20166
|
}), (D, M) => (g(), I(be, null, [(g(), F(ht(d(i)?.rovingFocus.value ? d(Sr) : d(Te)), le({
|
|
20167
20167
|
...d(s)?.dataAttributes.value,
|
|
20168
20168
|
...D.$attrs,
|
|
@@ -20175,23 +20175,23 @@ var PD = /* @__PURE__ */ V({
|
|
|
20175
20175
|
"as-child": e.asChild,
|
|
20176
20176
|
as: e.as,
|
|
20177
20177
|
type: e.as === "button" ? "button" : void 0,
|
|
20178
|
-
"aria-checked": d(Cd)(
|
|
20178
|
+
"aria-checked": d(Cd)(w.value) ? "mixed" : w.value,
|
|
20179
20179
|
"aria-required": v.value,
|
|
20180
20180
|
"aria-label": D.$attrs["aria-label"] || A.value,
|
|
20181
|
-
"data-state": d(tb)(
|
|
20181
|
+
"data-state": d(tb)(w.value),
|
|
20182
20182
|
"aria-disabled": f.value ? "true" : void 0,
|
|
20183
20183
|
"data-disabled": u.value ? "" : void 0,
|
|
20184
20184
|
disabled: u.value,
|
|
20185
20185
|
focusable: d(i)?.rovingFocus.value ? !u.value : void 0,
|
|
20186
20186
|
onKeydown: qn(At(() => {
|
|
20187
20187
|
}, ["prevent"]), ["enter"]),
|
|
20188
|
-
onClick:
|
|
20188
|
+
onClick: C,
|
|
20189
20189
|
onFocus: O,
|
|
20190
20190
|
onBlur: $
|
|
20191
20191
|
}), {
|
|
20192
20192
|
default: R(() => [z(D.$slots, "default", {
|
|
20193
20193
|
modelValue: d(l),
|
|
20194
|
-
state:
|
|
20194
|
+
state: w.value
|
|
20195
20195
|
})]),
|
|
20196
20196
|
_: 3
|
|
20197
20197
|
}, 16, [
|
|
@@ -20208,10 +20208,10 @@ var PD = /* @__PURE__ */ V({
|
|
|
20208
20208
|
"disabled",
|
|
20209
20209
|
"focusable",
|
|
20210
20210
|
"onKeydown"
|
|
20211
|
-
])), d(
|
|
20211
|
+
])), d(b) && m.value && !d(i) ? (g(), F(d(si), le({
|
|
20212
20212
|
key: 0,
|
|
20213
20213
|
type: "checkbox",
|
|
20214
|
-
checked: !!
|
|
20214
|
+
checked: !!w.value,
|
|
20215
20215
|
name: m.value,
|
|
20216
20216
|
value: e.value,
|
|
20217
20217
|
disabled: u.value,
|
|
@@ -20465,9 +20465,9 @@ var zD = /* @__PURE__ */ V({
|
|
|
20465
20465
|
setup(e, { emit: t }) {
|
|
20466
20466
|
const n = e, o = t, a = ma(), r = li(), { trapFocus: i, disableOutsidePointerEvents: s, loop: l } = /* @__PURE__ */ $t(n);
|
|
20467
20467
|
Ry(), al(s.value);
|
|
20468
|
-
const c = /* @__PURE__ */ N(""), u = /* @__PURE__ */ N(0), f = /* @__PURE__ */ N(0), p = /* @__PURE__ */ N(null), h = /* @__PURE__ */ N("right"), m = /* @__PURE__ */ N(0), v = /* @__PURE__ */ N(null), y = /* @__PURE__ */ N(), { forwardRef:
|
|
20469
|
-
function
|
|
20470
|
-
const Y = Hp(B, _.value || pt(),
|
|
20468
|
+
const c = /* @__PURE__ */ N(""), u = /* @__PURE__ */ N(0), f = /* @__PURE__ */ N(0), p = /* @__PURE__ */ N(null), h = /* @__PURE__ */ N("right"), m = /* @__PURE__ */ N(0), v = /* @__PURE__ */ N(null), y = /* @__PURE__ */ N(), { forwardRef: w, currentElement: C } = xe(), { handleTypeaheadSearch: b } = sl(), _ = /* @__PURE__ */ N();
|
|
20469
|
+
function x(B) {
|
|
20470
|
+
const Y = Hp(B, _.value || pt(), C.value, {
|
|
20471
20471
|
loop: l.value,
|
|
20472
20472
|
arrowKeyOptions: "vertical",
|
|
20473
20473
|
dir: r?.dir.value,
|
|
@@ -20485,7 +20485,7 @@ var zD = /* @__PURE__ */ V({
|
|
|
20485
20485
|
if (B === void 0) return;
|
|
20486
20486
|
O.value.onOpenChange(!1), O.value = void 0;
|
|
20487
20487
|
}
|
|
20488
|
-
}), te(
|
|
20488
|
+
}), te(C, (B) => {
|
|
20489
20489
|
a.onContentChange(B);
|
|
20490
20490
|
}), Wt(() => {
|
|
20491
20491
|
window.clearTimeout(u.value);
|
|
@@ -20494,11 +20494,11 @@ var zD = /* @__PURE__ */ V({
|
|
|
20494
20494
|
return h.value === p.value?.side && y$(B, p.value?.area);
|
|
20495
20495
|
}
|
|
20496
20496
|
async function S(B) {
|
|
20497
|
-
o("openAutoFocus", B), !B.defaultPrevented && (B.preventDefault(),
|
|
20497
|
+
o("openAutoFocus", B), !B.defaultPrevented && (B.preventDefault(), C.value?.focus({ preventScroll: !0 }));
|
|
20498
20498
|
}
|
|
20499
20499
|
function D(B) {
|
|
20500
20500
|
if (B.defaultPrevented) return;
|
|
20501
|
-
const Y = B.target, W = Y.closest("[data-reka-menu-content]") === B.currentTarget, re = ["input", "textarea"].includes(Y.tagName.toLowerCase()), me = B.ctrlKey || B.altKey || B.metaKey, ie = B.key.length === 1, pe = Hp(B, pt(),
|
|
20501
|
+
const Y = B.target, W = Y.closest("[data-reka-menu-content]") === B.currentTarget, re = ["input", "textarea"].includes(Y.tagName.toLowerCase()), me = B.ctrlKey || B.altKey || B.metaKey, ie = B.key.length === 1, pe = Hp(B, pt(), C.value, {
|
|
20502
20502
|
loop: l.value,
|
|
20503
20503
|
arrowKeyOptions: "vertical",
|
|
20504
20504
|
dir: r?.dir.value,
|
|
@@ -20508,7 +20508,7 @@ var zD = /* @__PURE__ */ V({
|
|
|
20508
20508
|
if (pe) return pe?.focus();
|
|
20509
20509
|
if (B.code === "Space") return;
|
|
20510
20510
|
const _e = y.value?.getItems() ?? [];
|
|
20511
|
-
if (W && (B.key === "Tab" && r.modal.value && B.preventDefault(), !me && ie && !re &&
|
|
20511
|
+
if (W && (B.key === "Tab" && r.modal.value && B.preventDefault(), !me && ie && !re && b(B.key, _e)), B.target !== C.value || !p$.includes(B.key)) return;
|
|
20512
20512
|
B.preventDefault();
|
|
20513
20513
|
const $e = [..._e.map((Fe) => Fe.ref)];
|
|
20514
20514
|
zy.includes(B.key) && $e.reverse(), rc($e);
|
|
@@ -20529,11 +20529,11 @@ var zD = /* @__PURE__ */ V({
|
|
|
20529
20529
|
}
|
|
20530
20530
|
return FD({
|
|
20531
20531
|
onItemEnter: (B) => !!$(B),
|
|
20532
|
-
onItemLeave: (B) => $(B) ? !0 : (["INPUT", "TEXTAREA"].includes(pt()?.tagName || "") ||
|
|
20532
|
+
onItemLeave: (B) => $(B) ? !0 : (["INPUT", "TEXTAREA"].includes(pt()?.tagName || "") || C.value?.focus(), v.value = null, !1),
|
|
20533
20533
|
onTriggerLeave: (B) => !!$(B),
|
|
20534
20534
|
searchRef: c,
|
|
20535
20535
|
highlightedElement: _,
|
|
20536
|
-
onKeydownNavigation:
|
|
20536
|
+
onKeydownNavigation: x,
|
|
20537
20537
|
onKeydownEnter: A,
|
|
20538
20538
|
filterElement: P,
|
|
20539
20539
|
onFilterElementChange: (B) => {
|
|
@@ -20573,7 +20573,7 @@ var zD = /* @__PURE__ */ V({
|
|
|
20573
20573
|
})
|
|
20574
20574
|
}, {
|
|
20575
20575
|
default: R(() => [K(d(xd), {
|
|
20576
|
-
ref: d(
|
|
20576
|
+
ref: d(w),
|
|
20577
20577
|
role: "menu",
|
|
20578
20578
|
as: e.as,
|
|
20579
20579
|
"as-child": e.asChild,
|
|
@@ -21551,7 +21551,7 @@ var pR = /* @__PURE__ */ V({
|
|
|
21551
21551
|
l();
|
|
21552
21552
|
const h = o.content.value?.getBoundingClientRect();
|
|
21553
21553
|
if (h?.width) {
|
|
21554
|
-
const m = o.content.value?.dataset.side, v = m === "right", y = v ? -5 : 5,
|
|
21554
|
+
const m = o.content.value?.dataset.side, v = m === "right", y = v ? -5 : 5, w = h[v ? "left" : "right"], C = h[v ? "right" : "left"];
|
|
21555
21555
|
i.onPointerGraceIntentChange({
|
|
21556
21556
|
area: [
|
|
21557
21557
|
{
|
|
@@ -21559,19 +21559,19 @@ var pR = /* @__PURE__ */ V({
|
|
|
21559
21559
|
y: p.clientY
|
|
21560
21560
|
},
|
|
21561
21561
|
{
|
|
21562
|
-
x:
|
|
21562
|
+
x: w,
|
|
21563
21563
|
y: h.top
|
|
21564
21564
|
},
|
|
21565
21565
|
{
|
|
21566
|
-
x,
|
|
21566
|
+
x: C,
|
|
21567
21567
|
y: h.top
|
|
21568
21568
|
},
|
|
21569
21569
|
{
|
|
21570
|
-
x,
|
|
21570
|
+
x: C,
|
|
21571
21571
|
y: h.bottom
|
|
21572
21572
|
},
|
|
21573
21573
|
{
|
|
21574
|
-
x:
|
|
21574
|
+
x: w,
|
|
21575
21575
|
y: h.bottom
|
|
21576
21576
|
}
|
|
21577
21577
|
],
|
|
@@ -21791,7 +21791,7 @@ var AR = /* @__PURE__ */ V({
|
|
|
21791
21791
|
defaultValue: n.defaultSnapPoint ?? null,
|
|
21792
21792
|
passive: n.snapPoint === void 0,
|
|
21793
21793
|
eventName: "update:snapPoint"
|
|
21794
|
-
}), { modal: s, swipeDirection: l, snapPoints: c, snapToSequentialPoints: u } = /* @__PURE__ */ $t(n), f = /* @__PURE__ */ N(), p = /* @__PURE__ */ N(), h = /* @__PURE__ */ N(), m = /* @__PURE__ */ N(0), v = /* @__PURE__ */ N(0), y = /* @__PURE__ */ N(!1),
|
|
21794
|
+
}), { modal: s, swipeDirection: l, snapPoints: c, snapToSequentialPoints: u } = /* @__PURE__ */ $t(n), f = /* @__PURE__ */ N(), p = /* @__PURE__ */ N(), h = /* @__PURE__ */ N(), m = /* @__PURE__ */ N(0), v = /* @__PURE__ */ N(0), y = /* @__PURE__ */ N(!1), w = /* @__PURE__ */ N(0), C = /* @__PURE__ */ N(!1), b = /* @__PURE__ */ N(!1), _ = wR(), x = $n(null), A = bR(null), P = Lt(void 0, "reka-drawer-content"), O = Lt(void 0, "reka-drawer-title"), $ = Lt(void 0, "reka-drawer-description");
|
|
21795
21795
|
ER({
|
|
21796
21796
|
open: r,
|
|
21797
21797
|
modal: s,
|
|
@@ -21802,9 +21802,9 @@ var AR = /* @__PURE__ */ V({
|
|
|
21802
21802
|
popupHeight: m,
|
|
21803
21803
|
frontmostHeight: v,
|
|
21804
21804
|
hasNestedDrawer: y,
|
|
21805
|
-
nestedOpenDrawerCount:
|
|
21806
|
-
nestedSwiping:
|
|
21807
|
-
isSwiping:
|
|
21805
|
+
nestedOpenDrawerCount: w,
|
|
21806
|
+
nestedSwiping: C,
|
|
21807
|
+
isSwiping: b,
|
|
21808
21808
|
nestedSwipeProgressStore: _,
|
|
21809
21809
|
onOpenChange: D,
|
|
21810
21810
|
onOpenToggle: M,
|
|
@@ -21821,21 +21821,21 @@ var AR = /* @__PURE__ */ V({
|
|
|
21821
21821
|
v.value = q;
|
|
21822
21822
|
},
|
|
21823
21823
|
onNestedDrawerPresenceChange(q) {
|
|
21824
|
-
q ?
|
|
21824
|
+
q ? w.value++ : w.value = Math.max(0, w.value - 1), y.value = w.value > 0, x?.notifyParentHasNestedDrawer?.(q);
|
|
21825
21825
|
},
|
|
21826
21826
|
onNestedSwipingChange(q) {
|
|
21827
|
-
|
|
21827
|
+
C.value = q, x?.notifyParentSwipingChange?.(q);
|
|
21828
21828
|
},
|
|
21829
21829
|
onNestedSwipeProgressChange(q) {
|
|
21830
|
-
_.set(q),
|
|
21830
|
+
_.set(q), x?.notifyParentSwipeProgressChange?.(q), A?.visualStateStore.set({ swipeProgress: q });
|
|
21831
21831
|
},
|
|
21832
21832
|
onSwipingChange(q) {
|
|
21833
|
-
|
|
21833
|
+
b.value = q;
|
|
21834
21834
|
},
|
|
21835
|
-
notifyParentFrontmostHeight:
|
|
21836
|
-
notifyParentSwipingChange:
|
|
21837
|
-
notifyParentSwipeProgressChange:
|
|
21838
|
-
notifyParentHasNestedDrawer:
|
|
21835
|
+
notifyParentFrontmostHeight: x?.onNestedFrontmostHeightChange,
|
|
21836
|
+
notifyParentSwipingChange: x?.onNestedSwipingChange,
|
|
21837
|
+
notifyParentSwipeProgressChange: x?.onNestedSwipeProgressChange,
|
|
21838
|
+
notifyParentHasNestedDrawer: x?.onNestedDrawerPresenceChange,
|
|
21839
21839
|
triggerElement: f,
|
|
21840
21840
|
contentElement: p,
|
|
21841
21841
|
viewportElement: h,
|
|
@@ -21912,16 +21912,16 @@ function DR(e) {
|
|
|
21912
21912
|
if (!f || f.length === 0) return [];
|
|
21913
21913
|
const p = r.value, h = i.value, m = o.value, v = [];
|
|
21914
21914
|
for (const y of f) {
|
|
21915
|
-
const
|
|
21916
|
-
if (
|
|
21917
|
-
const
|
|
21915
|
+
const w = wh(y, p, h);
|
|
21916
|
+
if (w == null || v.some((b) => Math.abs(b.height - w) <= 1)) continue;
|
|
21917
|
+
const C = Math.min(w, Math.min(m, p));
|
|
21918
21918
|
v.push({
|
|
21919
21919
|
value: y,
|
|
21920
|
-
height:
|
|
21921
|
-
offset: Math.max(0, m -
|
|
21920
|
+
height: C,
|
|
21921
|
+
offset: Math.max(0, m - C)
|
|
21922
21922
|
});
|
|
21923
21923
|
}
|
|
21924
|
-
return v.sort((y,
|
|
21924
|
+
return v.sort((y, w) => y.height - w.height);
|
|
21925
21925
|
});
|
|
21926
21926
|
function l() {
|
|
21927
21927
|
if (!n.value || s.value.length === 0) return;
|
|
@@ -21932,11 +21932,11 @@ function DR(e) {
|
|
|
21932
21932
|
function u(f, p, h, m) {
|
|
21933
21933
|
const v = s.value;
|
|
21934
21934
|
if (v.length === 0) return;
|
|
21935
|
-
const y = o.value,
|
|
21936
|
-
let A =
|
|
21937
|
-
if (Math.abs(
|
|
21938
|
-
const S = Math.max(-bh, Math.min(bh,
|
|
21939
|
-
A =
|
|
21935
|
+
const y = o.value, w = h === "up" || h === "down" ? p.y : p.x, C = h === "up" || h === "left" ? -w : w, b = l(), _ = b?.offset ?? 0, x = Math.max(0, Math.min(y, _ + f));
|
|
21936
|
+
let A = x;
|
|
21937
|
+
if (Math.abs(C) >= TR) {
|
|
21938
|
+
const S = Math.max(-bh, Math.min(bh, C));
|
|
21939
|
+
A = x + S * $R;
|
|
21940
21940
|
}
|
|
21941
21941
|
let P = v[0], O = Math.abs(A - P.offset);
|
|
21942
21942
|
for (const S of v) {
|
|
@@ -21948,12 +21948,12 @@ function DR(e) {
|
|
|
21948
21948
|
return;
|
|
21949
21949
|
}
|
|
21950
21950
|
if (m) {
|
|
21951
|
-
const S = [...v].sort((re, me) => re.offset - me.offset), D =
|
|
21951
|
+
const S = [...v].sort((re, me) => re.offset - me.offset), D = b ? S.indexOf(b) : -1;
|
|
21952
21952
|
if (D < 0) {
|
|
21953
21953
|
a(P.value);
|
|
21954
21954
|
return;
|
|
21955
21955
|
}
|
|
21956
|
-
const M = Math.sign(f), U = Math.sign(
|
|
21956
|
+
const M = Math.sign(f), U = Math.sign(C) === M && Math.abs(C) >= IR, B = Math.max(0, Math.min(S.length - 1, D + M)), Y = S[B];
|
|
21957
21957
|
if (U) {
|
|
21958
21958
|
a(Y.value);
|
|
21959
21959
|
return;
|
|
@@ -21993,7 +21993,7 @@ function BR(e, t, n, o) {
|
|
|
21993
21993
|
return null;
|
|
21994
21994
|
}
|
|
21995
21995
|
function qR(e) {
|
|
21996
|
-
const { elementRef: t, directions: n, movementCssVars: o, swipeThreshold: a, canStart: r, ignoreSelectorWhenTouch: i = !0, onDismiss: s, onProgress: l, onCancel: c, onSwipeStart: u, onRelease: f, onSwipingChange: p } = e, h = k(() => Pe(n).includes("up") || Pe(n).includes("down")), m = k(() => Pe(n).includes("left") || Pe(n).includes("right")), v = k(() => Pe(n).includes("up")), y = k(() => Pe(n).includes("down")),
|
|
21996
|
+
const { elementRef: t, directions: n, movementCssVars: o, swipeThreshold: a, canStart: r, ignoreSelectorWhenTouch: i = !0, onDismiss: s, onProgress: l, onCancel: c, onSwipeStart: u, onRelease: f, onSwipingChange: p } = e, h = k(() => Pe(n).includes("up") || Pe(n).includes("down")), m = k(() => Pe(n).includes("left") || Pe(n).includes("right")), v = k(() => Pe(n).includes("up")), y = k(() => Pe(n).includes("down")), w = k(() => Pe(n).includes("left")), C = k(() => Pe(n).includes("right")), b = k(() => h.value === m.value ? null : h.value ? "vertical" : "horizontal"), _ = /* @__PURE__ */ N(!1), x = /* @__PURE__ */ N(void 0), A = /* @__PURE__ */ N({
|
|
21997
21997
|
x: 0,
|
|
21998
21998
|
y: 0
|
|
21999
21999
|
});
|
|
@@ -22037,7 +22037,7 @@ function qR(e) {
|
|
|
22037
22037
|
ee.style.setProperty(o.x, "0px"), ee.style.setProperty(o.y, "0px");
|
|
22038
22038
|
}
|
|
22039
22039
|
function yt() {
|
|
22040
|
-
He(!1),
|
|
22040
|
+
He(!1), x.value = void 0, A.value = {
|
|
22041
22041
|
x: 0,
|
|
22042
22042
|
y: 0
|
|
22043
22043
|
}, P = {
|
|
@@ -22061,7 +22061,7 @@ function qR(e) {
|
|
|
22061
22061
|
}, D = !0, M = !0;
|
|
22062
22062
|
}
|
|
22063
22063
|
function L(ee, G) {
|
|
22064
|
-
const he = (Qe) => Qe >= 0 ? Qe ** 0.5 : -(Math.abs(Qe) ** 0.5), Ce = (Qe, Bt, it) => !Bt && Qe < 0 || !it && Qe > 0 ? he(Qe) : Qe, qe = m.value ? Ce(ee,
|
|
22064
|
+
const he = (Qe) => Qe >= 0 ? Qe ** 0.5 : -(Math.abs(Qe) ** 0.5), Ce = (Qe, Bt, it) => !Bt && Qe < 0 || !it && Qe > 0 ? he(Qe) : Qe, qe = m.value ? Ce(ee, w.value, C.value) : he(ee), Ue = h.value ? Ce(G, v.value, y.value) : he(G);
|
|
22065
22065
|
return {
|
|
22066
22066
|
x: qe,
|
|
22067
22067
|
y: Ue
|
|
@@ -22069,10 +22069,10 @@ function qR(e) {
|
|
|
22069
22069
|
}
|
|
22070
22070
|
function Z(ee, G) {
|
|
22071
22071
|
if (re) return !0;
|
|
22072
|
-
if (W || !Y || !
|
|
22072
|
+
if (W || !Y || !b.value) return !1;
|
|
22073
22073
|
if (!ee.cancelable)
|
|
22074
22074
|
return re = !0, !0;
|
|
22075
|
-
const he =
|
|
22075
|
+
const he = b.value === "vertical", Ce = he ? G.y - P.y : G.x - P.x, qe = he ? G.x - P.x : G.y - P.y, Ue = Math.abs(Ce), Qe = Math.abs(qe);
|
|
22076
22076
|
return Qe >= xh && Qe > Ue + NR ? (re = !0, !0) : Ue >= xh ? (W = !0, !1) : !0;
|
|
22077
22077
|
}
|
|
22078
22078
|
function H(ee, G, he) {
|
|
@@ -22088,7 +22088,7 @@ function qR(e) {
|
|
|
22088
22088
|
M = !1, He(!0), u?.();
|
|
22089
22089
|
}
|
|
22090
22090
|
if (!_.value) return;
|
|
22091
|
-
!O && Bt && (O = Bt,
|
|
22091
|
+
!O && Bt && (O = Bt, x.value = Bt, $ = Yo(Bt, Ue, Qe));
|
|
22092
22092
|
const it = O;
|
|
22093
22093
|
if (it && !S) {
|
|
22094
22094
|
const qt = Yo(it, Ue, Qe);
|
|
@@ -22184,8 +22184,8 @@ function qR(e) {
|
|
|
22184
22184
|
const qe = h.value ? "vertical" : "horizontal", Ue = cc(G, qe);
|
|
22185
22185
|
Ue && (U = !0, B = Ue);
|
|
22186
22186
|
}
|
|
22187
|
-
if (
|
|
22188
|
-
const qe =
|
|
22187
|
+
if (b.value) {
|
|
22188
|
+
const qe = b.value === "vertical" ? "horizontal" : "vertical";
|
|
22189
22189
|
Y = cc(G, qe);
|
|
22190
22190
|
}
|
|
22191
22191
|
const Ce = ee.touches[0];
|
|
@@ -22210,8 +22210,8 @@ function qR(e) {
|
|
|
22210
22210
|
hasHorizontal: m.value,
|
|
22211
22211
|
allowUp: v.value,
|
|
22212
22212
|
allowDown: y.value,
|
|
22213
|
-
allowLeft:
|
|
22214
|
-
allowRight:
|
|
22213
|
+
allowLeft: w.value,
|
|
22214
|
+
allowRight: C.value
|
|
22215
22215
|
});
|
|
22216
22216
|
if (Bt === !1) {
|
|
22217
22217
|
E();
|
|
@@ -22240,7 +22240,7 @@ function qR(e) {
|
|
|
22240
22240
|
}
|
|
22241
22241
|
return {
|
|
22242
22242
|
isSwiping: _,
|
|
22243
|
-
swipeDirection:
|
|
22243
|
+
swipeDirection: x,
|
|
22244
22244
|
dragOffset: A,
|
|
22245
22245
|
restore: ze
|
|
22246
22246
|
};
|
|
@@ -22376,17 +22376,17 @@ var VR = /* @__PURE__ */ V({
|
|
|
22376
22376
|
function y() {
|
|
22377
22377
|
h.value || (a.onOpenChange(!1, v ?? "outside-press"), v = void 0);
|
|
22378
22378
|
}
|
|
22379
|
-
function
|
|
22379
|
+
function w(S) {
|
|
22380
22380
|
v = "escape-key", o("escapeKeyDown", S);
|
|
22381
22381
|
}
|
|
22382
|
-
function
|
|
22382
|
+
function C(S) {
|
|
22383
22383
|
if (h.value) {
|
|
22384
22384
|
S.preventDefault();
|
|
22385
22385
|
return;
|
|
22386
22386
|
}
|
|
22387
22387
|
v = "outside-press", o("pointerDownOutside", S);
|
|
22388
22388
|
}
|
|
22389
|
-
function
|
|
22389
|
+
function b(S) {
|
|
22390
22390
|
if (h.value) {
|
|
22391
22391
|
S.preventDefault();
|
|
22392
22392
|
return;
|
|
@@ -22400,7 +22400,7 @@ var VR = /* @__PURE__ */ V({
|
|
|
22400
22400
|
}
|
|
22401
22401
|
o("interactOutside", S);
|
|
22402
22402
|
}
|
|
22403
|
-
function
|
|
22403
|
+
function x(S) {
|
|
22404
22404
|
o("openAutoFocus", S), !S.defaultPrevented && (n.initialFocus === !1 ? S.preventDefault() : Ey(n.initialFocus) && (S.preventDefault(), Mn(n.initialFocus, { select: !0 })));
|
|
22405
22405
|
}
|
|
22406
22406
|
let A;
|
|
@@ -22443,7 +22443,7 @@ var VR = /* @__PURE__ */ V({
|
|
|
22443
22443
|
"as-child": "",
|
|
22444
22444
|
loop: "",
|
|
22445
22445
|
trapped: n.trapFocus,
|
|
22446
|
-
onMountAutoFocus:
|
|
22446
|
+
onMountAutoFocus: x,
|
|
22447
22447
|
onUnmountAutoFocus: D[0] || (D[0] = (M) => o("closeAutoFocus", M))
|
|
22448
22448
|
}, {
|
|
22449
22449
|
default: R(() => [K(d(ai), le({
|
|
@@ -22460,10 +22460,10 @@ var VR = /* @__PURE__ */ V({
|
|
|
22460
22460
|
...S.$attrs
|
|
22461
22461
|
}, {
|
|
22462
22462
|
onDismiss: y,
|
|
22463
|
-
onEscapeKeyDown:
|
|
22464
|
-
onFocusOutside:
|
|
22463
|
+
onEscapeKeyDown: w,
|
|
22464
|
+
onFocusOutside: b,
|
|
22465
22465
|
onInteractOutside: _,
|
|
22466
|
-
onPointerDownOutside:
|
|
22466
|
+
onPointerDownOutside: C
|
|
22467
22467
|
}), {
|
|
22468
22468
|
default: R(() => [z(S.$slots, "default")]),
|
|
22469
22469
|
_: 3
|
|
@@ -22525,35 +22525,35 @@ var VR = /* @__PURE__ */ V({
|
|
|
22525
22525
|
if (n.finalFocus !== !1)
|
|
22526
22526
|
return Ey(n.finalFocus) ? n.finalFocus : a.triggerElement.value;
|
|
22527
22527
|
}
|
|
22528
|
-
function v(
|
|
22529
|
-
|
|
22528
|
+
function v(w) {
|
|
22529
|
+
w.defaultPrevented || (l.value || m()?.focus(), w.preventDefault()), l.value = !1, c.value = !1;
|
|
22530
22530
|
}
|
|
22531
|
-
function y(
|
|
22532
|
-
|
|
22533
|
-
const
|
|
22534
|
-
a.triggerElement.value?.contains(
|
|
22531
|
+
function y(w) {
|
|
22532
|
+
w.defaultPrevented || (l.value = !0, w.detail.originalEvent.type === "pointerdown" && (c.value = !0));
|
|
22533
|
+
const C = w.target;
|
|
22534
|
+
a.triggerElement.value?.contains(C) && w.preventDefault(), w.detail.originalEvent.type === "focusin" && c.value && w.preventDefault();
|
|
22535
22535
|
}
|
|
22536
|
-
return (
|
|
22536
|
+
return (w, C) => (g(), F(d(dn), { present: e.forceMount || d(a).open.value }, {
|
|
22537
22537
|
default: R(() => [u.value ? (g(), F(Ch, le({
|
|
22538
22538
|
key: 0,
|
|
22539
22539
|
ref: d(i)
|
|
22540
22540
|
}, {
|
|
22541
22541
|
...n,
|
|
22542
22542
|
...d(r),
|
|
22543
|
-
...
|
|
22543
|
+
...w.$attrs
|
|
22544
22544
|
}, {
|
|
22545
22545
|
"trap-focus": p.value,
|
|
22546
22546
|
"disable-outside-pointer-events": !0,
|
|
22547
|
-
onCloseAutoFocus:
|
|
22548
|
-
|
|
22547
|
+
onCloseAutoFocus: C[0] || (C[0] = (b) => {
|
|
22548
|
+
b.defaultPrevented || (b.preventDefault(), m()?.focus());
|
|
22549
22549
|
}),
|
|
22550
|
-
onPointerDownOutside:
|
|
22551
|
-
const _ =
|
|
22552
|
-
(_.button === 2 || _.button === 0 && _.ctrlKey) &&
|
|
22550
|
+
onPointerDownOutside: C[1] || (C[1] = (b) => {
|
|
22551
|
+
const _ = b.detail.originalEvent;
|
|
22552
|
+
(_.button === 2 || _.button === 0 && _.ctrlKey) && b.preventDefault();
|
|
22553
22553
|
}),
|
|
22554
|
-
onFocusOutside:
|
|
22554
|
+
onFocusOutside: C[2] || (C[2] = (b) => b.preventDefault())
|
|
22555
22555
|
}), {
|
|
22556
|
-
default: R(() => [z(
|
|
22556
|
+
default: R(() => [z(w.$slots, "default")]),
|
|
22557
22557
|
_: 3
|
|
22558
22558
|
}, 16, ["trap-focus"])) : (g(), F(Ch, le({
|
|
22559
22559
|
key: 1,
|
|
@@ -22561,14 +22561,14 @@ var VR = /* @__PURE__ */ V({
|
|
|
22561
22561
|
}, {
|
|
22562
22562
|
...n,
|
|
22563
22563
|
...d(r),
|
|
22564
|
-
...
|
|
22564
|
+
...w.$attrs
|
|
22565
22565
|
}, {
|
|
22566
22566
|
"trap-focus": p.value,
|
|
22567
22567
|
"disable-outside-pointer-events": !1,
|
|
22568
22568
|
onCloseAutoFocus: v,
|
|
22569
22569
|
onInteractOutside: y
|
|
22570
22570
|
}), {
|
|
22571
|
-
default: R(() => [z(
|
|
22571
|
+
default: R(() => [z(w.$slots, "default")]),
|
|
22572
22572
|
_: 3
|
|
22573
22573
|
}, 16, ["trap-focus"]))]),
|
|
22574
22574
|
_: 3
|
|
@@ -22909,33 +22909,33 @@ function cM(e) {
|
|
|
22909
22909
|
let r = null, i = null, s, l, c = !1, u = null, f = !1;
|
|
22910
22910
|
function p() {
|
|
22911
22911
|
if (!i) return;
|
|
22912
|
-
const { element: y, paddingBottom:
|
|
22913
|
-
y.style.paddingBottom =
|
|
22912
|
+
const { element: y, paddingBottom: w, scrollPaddingBottom: C, overflowAnchor: b } = i;
|
|
22913
|
+
y.style.paddingBottom = w, y.style.scrollPaddingBottom = C, y.style.overflowAnchor = b, i = null;
|
|
22914
22914
|
}
|
|
22915
|
-
function h(y,
|
|
22916
|
-
const
|
|
22917
|
-
if (i && (!i.element.isConnected || i.element !== y) && p(),
|
|
22915
|
+
function h(y, w) {
|
|
22916
|
+
const C = Math.max(0, Math.ceil(w));
|
|
22917
|
+
if (i && (!i.element.isConnected || i.element !== y) && p(), C === 0) {
|
|
22918
22918
|
p();
|
|
22919
22919
|
return;
|
|
22920
22920
|
}
|
|
22921
22921
|
if (!i) {
|
|
22922
|
-
const
|
|
22922
|
+
const b = (y.ownerDocument.defaultView ?? window).getComputedStyle(y);
|
|
22923
22923
|
i = {
|
|
22924
22924
|
element: y,
|
|
22925
22925
|
paddingBottom: y.style.paddingBottom,
|
|
22926
22926
|
scrollPaddingBottom: y.style.scrollPaddingBottom,
|
|
22927
22927
|
overflowAnchor: y.style.overflowAnchor,
|
|
22928
|
-
computedPaddingBottom: Number.parseFloat(
|
|
22929
|
-
computedScrollPaddingBottom: Number.parseFloat(
|
|
22928
|
+
computedPaddingBottom: Number.parseFloat(b.paddingBottom) || 0,
|
|
22929
|
+
computedScrollPaddingBottom: Number.parseFloat(b.scrollPaddingBottom) || 0
|
|
22930
22930
|
};
|
|
22931
22931
|
}
|
|
22932
|
-
y.style.overflowAnchor = "none", y.style.paddingBottom = `${
|
|
22932
|
+
y.style.overflowAnchor = "none", y.style.paddingBottom = `${C + Math.max(i.computedPaddingBottom, Ri)}px`, y.style.scrollPaddingBottom = `${i.computedScrollPaddingBottom + Ri}px`;
|
|
22933
22933
|
}
|
|
22934
|
-
function m(y,
|
|
22935
|
-
const
|
|
22934
|
+
function m(y, w) {
|
|
22935
|
+
const b = (y.ownerDocument.defaultView ?? window).matchMedia?.("(prefers-reduced-motion: reduce)")?.matches;
|
|
22936
22936
|
y.scrollTo?.({
|
|
22937
|
-
top:
|
|
22938
|
-
behavior:
|
|
22937
|
+
top: w,
|
|
22938
|
+
behavior: b ? "auto" : "smooth"
|
|
22939
22939
|
});
|
|
22940
22940
|
}
|
|
22941
22941
|
function v() {
|
|
@@ -22943,16 +22943,16 @@ function cM(e) {
|
|
|
22943
22943
|
}
|
|
22944
22944
|
Ut((y) => {
|
|
22945
22945
|
if (!Pe(t) || !n.value) return;
|
|
22946
|
-
const
|
|
22947
|
-
let _ = null,
|
|
22946
|
+
const w = n.value, C = w.ownerDocument, b = C.defaultView ?? window;
|
|
22947
|
+
let _ = null, x = 0, A = 0, P = -1, O = -1, $ = null;
|
|
22948
22948
|
function S() {
|
|
22949
|
-
const T =
|
|
22949
|
+
const T = b.visualViewport;
|
|
22950
22950
|
if (!T || T.scale !== 1) return null;
|
|
22951
|
-
const L =
|
|
22951
|
+
const L = b.innerHeight, Z = T.height;
|
|
22952
22952
|
if (L - Z > bu) O = Z;
|
|
22953
22953
|
else if (Math.abs(Z - O) > bu)
|
|
22954
22954
|
return O = -1, null;
|
|
22955
|
-
$ || ($ =
|
|
22955
|
+
$ || ($ = C.createElement("div"), $.style.cssText = "position:fixed;top:0;height:100svh;visibility:hidden", C.body.appendChild($));
|
|
22956
22956
|
const H = $.offsetHeight - Z <= bu, J = Math.max(0, T.offsetTop);
|
|
22957
22957
|
return {
|
|
22958
22958
|
top: J,
|
|
@@ -22960,10 +22960,10 @@ function cM(e) {
|
|
|
22960
22960
|
resizing: H && Math.abs(L - Z) >= 1
|
|
22961
22961
|
};
|
|
22962
22962
|
}
|
|
22963
|
-
const D =
|
|
22963
|
+
const D = b.scrollX, M = b.scrollY;
|
|
22964
22964
|
let q = null;
|
|
22965
22965
|
function U(T) {
|
|
22966
|
-
|
|
22966
|
+
w.style.setProperty(_t.keyboardInset, `${Math.max(0, Math.ceil(T))}px`);
|
|
22967
22967
|
}
|
|
22968
22968
|
function B() {
|
|
22969
22969
|
q?.(), q = null;
|
|
@@ -22974,7 +22974,7 @@ function cM(e) {
|
|
|
22974
22974
|
q = pb(T, (L.top + L.bottom - Z.top - Z.bottom) / 2);
|
|
22975
22975
|
}
|
|
22976
22976
|
function W() {
|
|
22977
|
-
return !Pe(o) || Pe(a) || !r ||
|
|
22977
|
+
return !Pe(o) || Pe(a) || !r || b.scrollX === D && b.scrollY === M || S() == null ? !1 : (b.scrollTo({
|
|
22978
22978
|
left: D,
|
|
22979
22979
|
top: M,
|
|
22980
22980
|
behavior: "instant"
|
|
@@ -22986,10 +22986,10 @@ function cM(e) {
|
|
|
22986
22986
|
function me(T) {
|
|
22987
22987
|
if (Pe(a)) return !1;
|
|
22988
22988
|
const L = Es(T);
|
|
22989
|
-
return !L || !
|
|
22989
|
+
return !L || !w.contains(L) ? !1 : (r !== L && (_ = null), r = L, !0);
|
|
22990
22990
|
}
|
|
22991
22991
|
function ie() {
|
|
22992
|
-
if (B(), Pe(a) || !r || !
|
|
22992
|
+
if (B(), Pe(a) || !r || !w.contains(r)) {
|
|
22993
22993
|
U(0), p();
|
|
22994
22994
|
return;
|
|
22995
22995
|
}
|
|
@@ -22999,8 +22999,8 @@ function cM(e) {
|
|
|
22999
22999
|
U(0), p();
|
|
23000
23000
|
return;
|
|
23001
23001
|
}
|
|
23002
|
-
U(
|
|
23003
|
-
const L = uM(r,
|
|
23002
|
+
U(b.innerHeight - T.bottom);
|
|
23003
|
+
const L = uM(r, w);
|
|
23004
23004
|
if (!L) {
|
|
23005
23005
|
p();
|
|
23006
23006
|
return;
|
|
@@ -23012,7 +23012,7 @@ function cM(e) {
|
|
|
23012
23012
|
const se = Math.max(Z.top, T.top) + Ri, de = Math.min(Z.bottom, T.bottom) - Ri;
|
|
23013
23013
|
if (de <= se) return;
|
|
23014
23014
|
const ce = r.getBoundingClientRect(), ae = L.scrollTop + (ce.top + ce.bottom - se - de) / 2, Se = Math.round(Math.min(J, Math.max(0, ae)));
|
|
23015
|
-
if (_ === L && !T.resizing && Math.abs(
|
|
23015
|
+
if (_ === L && !T.resizing && Math.abs(x - Se) <= 1) {
|
|
23016
23016
|
if (P >= 0) {
|
|
23017
23017
|
const ye = L.scrollTop;
|
|
23018
23018
|
if (Math.abs(ye - Se) <= 1) return;
|
|
@@ -23023,12 +23023,12 @@ function cM(e) {
|
|
|
23023
23023
|
}
|
|
23024
23024
|
} else {
|
|
23025
23025
|
const ye = _ === L ? A + 1 : 1;
|
|
23026
|
-
if (_ = L,
|
|
23026
|
+
if (_ = L, x = Se, A = ye, P = -1, ye <= tM) {
|
|
23027
23027
|
pe();
|
|
23028
23028
|
return;
|
|
23029
23029
|
}
|
|
23030
23030
|
}
|
|
23031
|
-
_ = L,
|
|
23031
|
+
_ = L, x = Se, A = 0, P = L.scrollTop, m(L, Se);
|
|
23032
23032
|
}
|
|
23033
23033
|
function pe() {
|
|
23034
23034
|
s === void 0 && (s = requestAnimationFrame(() => {
|
|
@@ -23096,21 +23096,21 @@ function cM(e) {
|
|
|
23096
23096
|
Ge();
|
|
23097
23097
|
return;
|
|
23098
23098
|
}
|
|
23099
|
-
const Z = iM(
|
|
23099
|
+
const Z = iM(w.getRootNode(), L.clientX, L.clientY);
|
|
23100
23100
|
if (Z === fb) {
|
|
23101
23101
|
Ge();
|
|
23102
23102
|
return;
|
|
23103
23103
|
}
|
|
23104
23104
|
const H = Z ?? rM(T.target);
|
|
23105
|
-
if (!H || !
|
|
23105
|
+
if (!H || !w.contains(H.focusTarget) || !w.contains(H.clickTarget)) {
|
|
23106
23106
|
Ge();
|
|
23107
23107
|
return;
|
|
23108
23108
|
}
|
|
23109
|
-
if (
|
|
23109
|
+
if (b.visualViewport && b.visualViewport.scale !== 1) {
|
|
23110
23110
|
Ge();
|
|
23111
23111
|
return;
|
|
23112
23112
|
}
|
|
23113
|
-
if (pt() === H.focusTarget && (!
|
|
23113
|
+
if (pt() === H.focusTarget && (!b.visualViewport || S() != null)) {
|
|
23114
23114
|
Ge();
|
|
23115
23115
|
return;
|
|
23116
23116
|
}
|
|
@@ -23122,8 +23122,8 @@ function cM(e) {
|
|
|
23122
23122
|
}
|
|
23123
23123
|
sM(H.clickTarget, L), H.clickTarget !== H.focusTarget && pt() === H.focusTarget && H.focusTarget.focus({ preventScroll: !0 }), Ge();
|
|
23124
23124
|
}
|
|
23125
|
-
|
|
23126
|
-
|
|
23125
|
+
C.addEventListener("focus", $e, !0), C.addEventListener("focusin", Fe, !0), C.addEventListener("focusout", nt, !0), C.addEventListener("pointerdown", at, !0), b.addEventListener("scroll", He), b.visualViewport?.addEventListener("resize", ot), b.visualViewport?.addEventListener("scroll", ot), b.visualViewport && b.addEventListener("resize", ot), w.addEventListener("touchstart", rt, { passive: !0 }), w.addEventListener("touchmove", yt, { passive: !0 }), w.addEventListener("touchend", E), w.addEventListener("touchcancel", Ge), me(pt()) && pe(), y(() => {
|
|
23126
|
+
C.removeEventListener("focus", $e, !0), C.removeEventListener("focusin", Fe, !0), C.removeEventListener("focusout", nt, !0), C.removeEventListener("pointerdown", at, !0), b.removeEventListener("scroll", He), b.visualViewport?.removeEventListener("resize", ot), b.visualViewport?.removeEventListener("scroll", ot), b.removeEventListener("resize", ot), w.removeEventListener("touchstart", rt), w.removeEventListener("touchmove", yt), w.removeEventListener("touchend", E), w.removeEventListener("touchcancel", Ge), B(), Ge(), re(), $?.remove(), w.style.removeProperty(_t.keyboardInset);
|
|
23127
23127
|
});
|
|
23128
23128
|
});
|
|
23129
23129
|
}
|
|
@@ -24209,7 +24209,7 @@ var nN = /* @__PURE__ */ V({
|
|
|
24209
24209
|
te(u, () => {
|
|
24210
24210
|
i?.reportControlState({ filled: !v.value });
|
|
24211
24211
|
}), Tn({ isProvider: !0 });
|
|
24212
|
-
const y = fa(r),
|
|
24212
|
+
const y = fa(r), w = Ga(p), C = /* @__PURE__ */ N(/* @__PURE__ */ new Set()), b = k(() => Array.from(C.value).map((A) => A.value).join(";"));
|
|
24213
24213
|
function _(A) {
|
|
24214
24214
|
let P;
|
|
24215
24215
|
if (a.value) {
|
|
@@ -24218,8 +24218,8 @@ var nN = /* @__PURE__ */ V({
|
|
|
24218
24218
|
} else P = A;
|
|
24219
24219
|
u.value = P, i?.handleControlInput({ value: P });
|
|
24220
24220
|
}
|
|
24221
|
-
function
|
|
24222
|
-
return Array.from(
|
|
24221
|
+
function x(A) {
|
|
24222
|
+
return Array.from(C.value).find((P) => jr(A, P.value, n.by));
|
|
24223
24223
|
}
|
|
24224
24224
|
return gb({
|
|
24225
24225
|
triggerElement: p,
|
|
@@ -24244,21 +24244,21 @@ var nN = /* @__PURE__ */ V({
|
|
|
24244
24244
|
triggerPointerDownPosRef: m,
|
|
24245
24245
|
disabled: c,
|
|
24246
24246
|
isEmptyModelValue: v,
|
|
24247
|
-
optionsSet:
|
|
24247
|
+
optionsSet: C,
|
|
24248
24248
|
onOptionAdd: (A) => {
|
|
24249
|
-
const P =
|
|
24250
|
-
P &&
|
|
24249
|
+
const P = x(A.value);
|
|
24250
|
+
P && C.value.delete(P), C.value.add(A);
|
|
24251
24251
|
},
|
|
24252
24252
|
onOptionRemove: (A) => {
|
|
24253
|
-
const P =
|
|
24254
|
-
P &&
|
|
24253
|
+
const P = x(A.value);
|
|
24254
|
+
P && C.value.delete(P);
|
|
24255
24255
|
}
|
|
24256
24256
|
}), (A, P) => (g(), F(d(ll), null, {
|
|
24257
24257
|
default: R(() => [z(A.$slots, "default", {
|
|
24258
24258
|
modelValue: d(u),
|
|
24259
24259
|
open: d(f)
|
|
24260
|
-
}), d(
|
|
24261
|
-
key:
|
|
24260
|
+
}), d(w) && s.value ? (g(), F(rN, {
|
|
24261
|
+
key: b.value,
|
|
24262
24262
|
"aria-hidden": "true",
|
|
24263
24263
|
tabindex: "-1",
|
|
24264
24264
|
multiple: d(a),
|
|
@@ -24271,7 +24271,7 @@ var nN = /* @__PURE__ */ V({
|
|
|
24271
24271
|
default: R(() => [d(Ia)(d(u)) ? (g(), I("option", {
|
|
24272
24272
|
key: 0,
|
|
24273
24273
|
value: e.nullableValue
|
|
24274
|
-
}, null, 8, tN)) : j("v-if", !0), (g(!0), I(be, null, Ve(Array.from(
|
|
24274
|
+
}, null, 8, tN)) : j("v-if", !0), (g(!0), I(be, null, Ve(Array.from(C.value), (O) => (g(), I("option", le({ key: O.value ?? "" }, { ref_for: !0 }, O), null, 16))), 128))]),
|
|
24275
24275
|
_: 1
|
|
24276
24276
|
}, 8, [
|
|
24277
24277
|
"multiple",
|
|
@@ -24584,13 +24584,13 @@ var uN = /* @__PURE__ */ V({
|
|
|
24584
24584
|
const { CollectionSlot: i, getItems: s } = Tn(), l = /* @__PURE__ */ N();
|
|
24585
24585
|
il(l);
|
|
24586
24586
|
const { search: c, handleTypeaheadSearch: u } = sl(), f = /* @__PURE__ */ N(), p = /* @__PURE__ */ N(), h = /* @__PURE__ */ N(), m = /* @__PURE__ */ N(!1), v = /* @__PURE__ */ N(!1), y = /* @__PURE__ */ N(!1);
|
|
24587
|
-
function
|
|
24587
|
+
function w() {
|
|
24588
24588
|
p.value && l.value && rc([p.value, l.value]);
|
|
24589
24589
|
}
|
|
24590
24590
|
te(m, () => {
|
|
24591
|
-
(!r || r.canFocus()) &&
|
|
24591
|
+
(!r || r.canFocus()) && w();
|
|
24592
24592
|
});
|
|
24593
|
-
const { onOpenChange:
|
|
24593
|
+
const { onOpenChange: C, triggerPointerDownPosRef: b } = a;
|
|
24594
24594
|
Ut((O) => {
|
|
24595
24595
|
if (!l.value) return;
|
|
24596
24596
|
let $ = {
|
|
@@ -24599,13 +24599,13 @@ var uN = /* @__PURE__ */ V({
|
|
|
24599
24599
|
};
|
|
24600
24600
|
const S = (M) => {
|
|
24601
24601
|
$ = {
|
|
24602
|
-
x: Math.abs(Math.round(M.pageX) - (
|
|
24603
|
-
y: Math.abs(Math.round(M.pageY) - (
|
|
24602
|
+
x: Math.abs(Math.round(M.pageX) - (b.value?.x ?? 0)),
|
|
24603
|
+
y: Math.abs(Math.round(M.pageY) - (b.value?.y ?? 0))
|
|
24604
24604
|
};
|
|
24605
24605
|
}, D = (M) => {
|
|
24606
|
-
M.pointerType !== "touch" && ($.x <= 10 && $.y <= 10 ? M.preventDefault() : l.value?.contains(M.target) ||
|
|
24606
|
+
M.pointerType !== "touch" && ($.x <= 10 && $.y <= 10 ? M.preventDefault() : l.value?.contains(M.target) || C(!1), document.removeEventListener("pointermove", S), b.value = null);
|
|
24607
24607
|
};
|
|
24608
|
-
|
|
24608
|
+
b.value !== null && (document.addEventListener("pointermove", S), document.addEventListener("pointerup", D, {
|
|
24609
24609
|
capture: !0,
|
|
24610
24610
|
once: !0
|
|
24611
24611
|
})), O(() => {
|
|
@@ -24632,7 +24632,7 @@ var uN = /* @__PURE__ */ V({
|
|
|
24632
24632
|
setTimeout(() => rc(D)), O.preventDefault();
|
|
24633
24633
|
}
|
|
24634
24634
|
}
|
|
24635
|
-
const
|
|
24635
|
+
const x = ei(n, "loop"), A = k(() => n.position === "popper" ? x : {}), P = pa(A.value);
|
|
24636
24636
|
return yb({
|
|
24637
24637
|
content: l,
|
|
24638
24638
|
viewport: f,
|
|
@@ -24656,7 +24656,7 @@ var uN = /* @__PURE__ */ V({
|
|
|
24656
24656
|
const D = !v.value && !S;
|
|
24657
24657
|
(jr(a.modelValue.value, $, a.by) || D) && (h.value = O);
|
|
24658
24658
|
},
|
|
24659
|
-
focusSelectedItem:
|
|
24659
|
+
focusSelectedItem: w,
|
|
24660
24660
|
position: n.position,
|
|
24661
24661
|
isPositioned: m,
|
|
24662
24662
|
searchRef: c
|
|
@@ -24736,15 +24736,15 @@ var pN = /* @__PURE__ */ V({
|
|
|
24736
24736
|
const n = e, o = t, { getItems: a } = Tn(), r = Bo(), i = ml(), s = /* @__PURE__ */ N(!1), l = /* @__PURE__ */ N(!0), c = /* @__PURE__ */ N(), { forwardRef: u, currentElement: f } = xe(), { viewport: p, selectedItem: h, selectedItemText: m, focusSelectedItem: v } = i;
|
|
24737
24737
|
function y() {
|
|
24738
24738
|
if (r.triggerElement.value && r.valueElement.value && c.value && f.value && p?.value && h?.value && m?.value) {
|
|
24739
|
-
const
|
|
24739
|
+
const b = r.triggerElement.value.getBoundingClientRect(), _ = f.value.getBoundingClientRect(), x = r.valueElement.value.getBoundingClientRect(), A = m.value.getBoundingClientRect();
|
|
24740
24740
|
if (r.dir.value !== "rtl") {
|
|
24741
|
-
const He = A.left - _.left, at =
|
|
24741
|
+
const He = A.left - _.left, at = x.left - He, Ge = b.left - at, rt = b.width + Ge, yt = Math.max(rt, _.width), E = window.innerWidth - xn, T = Kp(at, xn, Math.max(xn, E - yt));
|
|
24742
24742
|
c.value.style.minWidth = `${rt}px`, c.value.style.left = `${T}px`;
|
|
24743
24743
|
} else {
|
|
24744
|
-
const He = _.right - A.right, at = window.innerWidth -
|
|
24744
|
+
const He = _.right - A.right, at = window.innerWidth - x.right - He, Ge = window.innerWidth - b.right - at, rt = b.width + Ge, yt = Math.max(rt, _.width), E = window.innerWidth - xn, T = Kp(at, xn, Math.max(xn, E - yt));
|
|
24745
24745
|
c.value.style.minWidth = `${rt}px`, c.value.style.right = `${T}px`;
|
|
24746
24746
|
}
|
|
24747
|
-
const P = a().map((He) => He.ref), O = window.innerHeight - xn * 2, $ = p.value.scrollHeight, S = window.getComputedStyle(f.value), D = Number.parseInt(S.borderTopWidth, 10), M = Number.parseInt(S.paddingTop, 10), q = Number.parseInt(S.borderBottomWidth, 10), U = Number.parseInt(S.paddingBottom, 10), B = D + M + $ + U + q, Y = Math.min(h.value.offsetHeight * 5, B), W = window.getComputedStyle(p.value), re = Number.parseInt(W.paddingTop, 10), me = Number.parseInt(W.paddingBottom, 10), ie =
|
|
24747
|
+
const P = a().map((He) => He.ref), O = window.innerHeight - xn * 2, $ = p.value.scrollHeight, S = window.getComputedStyle(f.value), D = Number.parseInt(S.borderTopWidth, 10), M = Number.parseInt(S.paddingTop, 10), q = Number.parseInt(S.borderBottomWidth, 10), U = Number.parseInt(S.paddingBottom, 10), B = D + M + $ + U + q, Y = Math.min(h.value.offsetHeight * 5, B), W = window.getComputedStyle(p.value), re = Number.parseInt(W.paddingTop, 10), me = Number.parseInt(W.paddingBottom, 10), ie = b.top + b.height / 2 - xn, pe = O - ie, _e = h.value.offsetHeight / 2, $e = h.value.offsetTop + _e, Fe = D + M + $e, nt = B - Fe;
|
|
24748
24748
|
if (Fe <= ie) {
|
|
24749
24749
|
const He = h.value === P.at(-1);
|
|
24750
24750
|
c.value.style.bottom = "0px";
|
|
@@ -24759,27 +24759,27 @@ var pN = /* @__PURE__ */ V({
|
|
|
24759
24759
|
c.value.style.margin = `${xn}px 0`, c.value.style.minHeight = `${Y}px`, c.value.style.maxHeight = `${O}px`, o("placed"), requestAnimationFrame(() => s.value = !0);
|
|
24760
24760
|
}
|
|
24761
24761
|
}
|
|
24762
|
-
const
|
|
24762
|
+
const w = /* @__PURE__ */ N("");
|
|
24763
24763
|
Be(async () => {
|
|
24764
|
-
await Ne(), y(), f.value && (
|
|
24764
|
+
await Ne(), y(), f.value && (w.value = window.getComputedStyle(f.value).zIndex);
|
|
24765
24765
|
});
|
|
24766
|
-
function
|
|
24767
|
-
|
|
24766
|
+
function C(b) {
|
|
24767
|
+
b && l.value === !0 && (y(), v?.(), l.value = !1);
|
|
24768
24768
|
}
|
|
24769
24769
|
return by(r.triggerElement, () => {
|
|
24770
24770
|
y();
|
|
24771
24771
|
}), fN({
|
|
24772
24772
|
contentWrapper: c,
|
|
24773
24773
|
shouldExpandOnScrollRef: s,
|
|
24774
|
-
onScrollButtonChange:
|
|
24775
|
-
}), (
|
|
24774
|
+
onScrollButtonChange: C
|
|
24775
|
+
}), (b, _) => (g(), I("div", {
|
|
24776
24776
|
ref_key: "contentWrapperElement",
|
|
24777
24777
|
ref: c,
|
|
24778
24778
|
style: je({
|
|
24779
24779
|
display: "flex",
|
|
24780
24780
|
flexDirection: "column",
|
|
24781
24781
|
position: "fixed",
|
|
24782
|
-
zIndex:
|
|
24782
|
+
zIndex: w.value
|
|
24783
24783
|
})
|
|
24784
24784
|
}, [K(d(Te), le({
|
|
24785
24785
|
ref: d(u),
|
|
@@ -24788,10 +24788,10 @@ var pN = /* @__PURE__ */ V({
|
|
|
24788
24788
|
maxHeight: "100%"
|
|
24789
24789
|
}
|
|
24790
24790
|
}, {
|
|
24791
|
-
...
|
|
24791
|
+
...b.$attrs,
|
|
24792
24792
|
...n
|
|
24793
24793
|
}), {
|
|
24794
|
-
default: R(() => [z(
|
|
24794
|
+
default: R(() => [z(b.$slots, "default")]),
|
|
24795
24795
|
_: 3
|
|
24796
24796
|
}, 16)], 4));
|
|
24797
24797
|
}
|
|
@@ -25033,22 +25033,22 @@ var AN = /* @__PURE__ */ V({
|
|
|
25033
25033
|
const n = e, o = t, { disabled: a } = /* @__PURE__ */ $t(n), r = Bo(), i = ml(), { forwardRef: s, currentElement: l } = xe(), { CollectionItem: c } = Tn(), u = k(() => jr(r.modelValue?.value, n.value, r.by)), f = /* @__PURE__ */ N(!1), p = /* @__PURE__ */ N(n.textValue ?? ""), h = Lt(void 0, "reka-select-item-text"), m = "select.select";
|
|
25034
25034
|
async function v(_) {
|
|
25035
25035
|
if (_.defaultPrevented) return;
|
|
25036
|
-
const
|
|
25036
|
+
const x = {
|
|
25037
25037
|
originalEvent: _,
|
|
25038
25038
|
value: n.value
|
|
25039
25039
|
};
|
|
25040
|
-
oi(m, y,
|
|
25040
|
+
oi(m, y, x);
|
|
25041
25041
|
}
|
|
25042
25042
|
async function y(_) {
|
|
25043
25043
|
await Ne(), o("select", _), !_.defaultPrevented && (a.value || (r.onValueChange(n.value), r.multiple.value || r.onOpenChange(!1)));
|
|
25044
25044
|
}
|
|
25045
|
-
async function
|
|
25045
|
+
async function w(_) {
|
|
25046
25046
|
await Ne(), !_.defaultPrevented && (a.value ? i.onItemLeave?.() : _.currentTarget?.focus({ preventScroll: !0 }));
|
|
25047
25047
|
}
|
|
25048
|
-
async function
|
|
25048
|
+
async function C(_) {
|
|
25049
25049
|
await Ne(), !_.defaultPrevented && _.currentTarget === pt() && i.onItemLeave?.();
|
|
25050
25050
|
}
|
|
25051
|
-
async function
|
|
25051
|
+
async function b(_) {
|
|
25052
25052
|
await Ne(), !(_.defaultPrevented || i.searchRef?.value !== "" && _.key === " ") && (QM.includes(_.key) && v(_), _.key === " " && _.preventDefault());
|
|
25053
25053
|
}
|
|
25054
25054
|
if (n.value === "") throw new Error("A <SelectItem /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");
|
|
@@ -25062,7 +25062,7 @@ var AN = /* @__PURE__ */ V({
|
|
|
25062
25062
|
onItemTextChange: (_) => {
|
|
25063
25063
|
p.value = ((p.value || _?.textContent) ?? "").trim();
|
|
25064
25064
|
}
|
|
25065
|
-
}), (_,
|
|
25065
|
+
}), (_, x) => (g(), F(d(c), { value: { textValue: p.value } }, {
|
|
25066
25066
|
default: R(() => [K(d(Te), {
|
|
25067
25067
|
ref: d(s),
|
|
25068
25068
|
role: "option",
|
|
@@ -25075,17 +25075,17 @@ var AN = /* @__PURE__ */ V({
|
|
|
25075
25075
|
tabindex: d(a) ? void 0 : -1,
|
|
25076
25076
|
as: e.as,
|
|
25077
25077
|
"as-child": e.asChild,
|
|
25078
|
-
onFocus:
|
|
25079
|
-
onBlur:
|
|
25078
|
+
onFocus: x[0] || (x[0] = (A) => f.value = !0),
|
|
25079
|
+
onBlur: x[1] || (x[1] = (A) => f.value = !1),
|
|
25080
25080
|
onPointerup: v,
|
|
25081
|
-
onPointerdown:
|
|
25081
|
+
onPointerdown: x[2] || (x[2] = (A) => {
|
|
25082
25082
|
A.currentTarget.focus({ preventScroll: !0 });
|
|
25083
25083
|
}),
|
|
25084
|
-
onTouchend:
|
|
25084
|
+
onTouchend: x[3] || (x[3] = At(() => {
|
|
25085
25085
|
}, ["prevent", "stop"])),
|
|
25086
|
-
onPointermove:
|
|
25087
|
-
onPointerleave:
|
|
25088
|
-
onKeydown:
|
|
25086
|
+
onPointermove: w,
|
|
25087
|
+
onPointerleave: C,
|
|
25088
|
+
onKeydown: b
|
|
25089
25089
|
}, {
|
|
25090
25090
|
default: R(() => [z(_.$slots, "default", { selected: u.value })]),
|
|
25091
25091
|
_: 3
|
|
@@ -25282,27 +25282,27 @@ var AN = /* @__PURE__ */ V({
|
|
|
25282
25282
|
});
|
|
25283
25283
|
}), Re(() => p?.());
|
|
25284
25284
|
const { getItems: h } = Tn(), { search: m, handleTypeaheadSearch: v, resetTypeahead: y } = sl();
|
|
25285
|
-
function
|
|
25285
|
+
function w() {
|
|
25286
25286
|
r.value || (n.onOpenChange(!0), y());
|
|
25287
25287
|
}
|
|
25288
|
-
function
|
|
25289
|
-
|
|
25288
|
+
function C(S) {
|
|
25289
|
+
w(), n.triggerPointerDownPosRef.value = {
|
|
25290
25290
|
x: Math.round(S.pageX),
|
|
25291
25291
|
y: Math.round(S.pageY)
|
|
25292
25292
|
};
|
|
25293
25293
|
}
|
|
25294
|
-
function
|
|
25294
|
+
function b(S) {
|
|
25295
25295
|
return S.button === 0 && S.ctrlKey === !1;
|
|
25296
25296
|
}
|
|
25297
25297
|
let _ = !1;
|
|
25298
|
-
function
|
|
25298
|
+
function x(S) {
|
|
25299
25299
|
if (S.defaultPrevented) return;
|
|
25300
25300
|
if (S.pointerType === "touch") return S.preventDefault();
|
|
25301
25301
|
const D = S.target;
|
|
25302
|
-
D.hasPointerCapture(S.pointerId) && D.releasePointerCapture(S.pointerId),
|
|
25302
|
+
D.hasPointerCapture(S.pointerId) && D.releasePointerCapture(S.pointerId), b(S) && (C(S), _ = !0);
|
|
25303
25303
|
}
|
|
25304
25304
|
function A(S) {
|
|
25305
|
-
S.defaultPrevented ||
|
|
25305
|
+
S.defaultPrevented || b(S) && S.preventDefault();
|
|
25306
25306
|
}
|
|
25307
25307
|
function P(S) {
|
|
25308
25308
|
if (S.defaultPrevented) {
|
|
@@ -25312,12 +25312,12 @@ var AN = /* @__PURE__ */ V({
|
|
|
25312
25312
|
_ || S.currentTarget?.focus(), _ = !1;
|
|
25313
25313
|
}
|
|
25314
25314
|
function O(S) {
|
|
25315
|
-
S.defaultPrevented || (S.preventDefault(), S.pointerType === "touch" &&
|
|
25315
|
+
S.defaultPrevented || (S.preventDefault(), S.pointerType === "touch" && C(S));
|
|
25316
25316
|
}
|
|
25317
25317
|
function $(S) {
|
|
25318
25318
|
if (S.defaultPrevented) return;
|
|
25319
25319
|
const D = m.value !== "";
|
|
25320
|
-
!(S.ctrlKey || S.altKey || S.metaKey) && S.key.length === 1 && v(S.key, h()), !(D && S.key === " ") && XM.includes(S.key) && (
|
|
25320
|
+
!(S.ctrlKey || S.altKey || S.metaKey) && S.key.length === 1 && v(S.key, h()), !(D && S.key === " ") && XM.includes(S.key) && (w(), S.preventDefault());
|
|
25321
25321
|
}
|
|
25322
25322
|
return (S, D) => (g(), F(d(hd), {
|
|
25323
25323
|
"as-child": "",
|
|
@@ -25339,7 +25339,7 @@ var AN = /* @__PURE__ */ V({
|
|
|
25339
25339
|
"as-child": e.asChild,
|
|
25340
25340
|
as: e.as,
|
|
25341
25341
|
onClick: P,
|
|
25342
|
-
onPointerdown:
|
|
25342
|
+
onPointerdown: x,
|
|
25343
25343
|
onMousedown: A,
|
|
25344
25344
|
onFocus: u,
|
|
25345
25345
|
onBlur: f,
|
|
@@ -25437,10 +25437,10 @@ var AN = /* @__PURE__ */ V({
|
|
|
25437
25437
|
if (p?.value && h?.value) {
|
|
25438
25438
|
const m = Math.abs(l.value - f.scrollTop);
|
|
25439
25439
|
if (m > 0) {
|
|
25440
|
-
const v = window.innerHeight - xn * 2, y = Number.parseFloat(h.value.style.minHeight),
|
|
25441
|
-
if (
|
|
25442
|
-
const
|
|
25443
|
-
h.value.style.height = `${_}px`, h.value.style.bottom === "0px" && (f.scrollTop =
|
|
25440
|
+
const v = window.innerHeight - xn * 2, y = Number.parseFloat(h.value.style.minHeight), w = Number.parseFloat(h.value.style.height), C = Math.max(y, w);
|
|
25441
|
+
if (C < v) {
|
|
25442
|
+
const b = C + m, _ = Math.min(v, b), x = b - _;
|
|
25443
|
+
h.value.style.height = `${_}px`, h.value.style.bottom === "0px" && (f.scrollTop = x > 0 ? x : 0, h.value.style.justifyContent = "flex-end");
|
|
25444
25444
|
}
|
|
25445
25445
|
}
|
|
25446
25446
|
}
|
|
@@ -25743,13 +25743,13 @@ var XN = /* @__PURE__ */ V({
|
|
|
25743
25743
|
const p = /* @__PURE__ */ N(!1), h = /* @__PURE__ */ N(), m = k(() => f.value ? p.value ? "delayed-open" : "instant-open" : "closed"), { start: v, stop: y } = my(() => {
|
|
25744
25744
|
p.value = !0, f.value = !0;
|
|
25745
25745
|
}, c, { immediate: !1 });
|
|
25746
|
-
function
|
|
25746
|
+
function w() {
|
|
25747
25747
|
y(), p.value = !1, f.value = !0;
|
|
25748
25748
|
}
|
|
25749
|
-
function
|
|
25749
|
+
function C() {
|
|
25750
25750
|
y(), f.value = !1;
|
|
25751
25751
|
}
|
|
25752
|
-
function
|
|
25752
|
+
function b() {
|
|
25753
25753
|
v();
|
|
25754
25754
|
}
|
|
25755
25755
|
return JN({
|
|
@@ -25761,18 +25761,18 @@ var XN = /* @__PURE__ */ V({
|
|
|
25761
25761
|
h.value = _;
|
|
25762
25762
|
},
|
|
25763
25763
|
onTriggerEnter() {
|
|
25764
|
-
r.isOpenDelayed.value ?
|
|
25764
|
+
r.isOpenDelayed.value ? b() : w();
|
|
25765
25765
|
},
|
|
25766
25766
|
onTriggerLeave() {
|
|
25767
|
-
i.value ?
|
|
25767
|
+
i.value ? C() : y();
|
|
25768
25768
|
},
|
|
25769
|
-
onOpen:
|
|
25770
|
-
onClose:
|
|
25769
|
+
onOpen: w,
|
|
25770
|
+
onClose: C,
|
|
25771
25771
|
disableHoverableContent: i,
|
|
25772
25772
|
disableClosingTrigger: s,
|
|
25773
25773
|
disabled: l,
|
|
25774
25774
|
ignoreNonKeyboardFocus: u
|
|
25775
|
-
}), (_,
|
|
25775
|
+
}), (_, x) => (g(), F(d(ll), null, {
|
|
25776
25776
|
default: R(() => [z(_.$slots, "default", { open: d(f) })]),
|
|
25777
25777
|
_: 3
|
|
25778
25778
|
}));
|
|
@@ -26141,7 +26141,7 @@ var XN = /* @__PURE__ */ V({
|
|
|
26141
26141
|
function v() {
|
|
26142
26142
|
n.disableClosingTrigger.value || n.onClose();
|
|
26143
26143
|
}
|
|
26144
|
-
return (y,
|
|
26144
|
+
return (y, w) => (g(), F(d(hd), {
|
|
26145
26145
|
"as-child": "",
|
|
26146
26146
|
reference: e.reference ?? d(r)
|
|
26147
26147
|
}, {
|
|
@@ -26402,23 +26402,23 @@ function TL(e, t, n) {
|
|
|
26402
26402
|
m();
|
|
26403
26403
|
const v = new MutationObserver(m);
|
|
26404
26404
|
v.observe(c, { attributes: !0, attributeFilter: [...Nh, "style"] });
|
|
26405
|
-
const y = PL(c),
|
|
26405
|
+
const y = PL(c), w = () => {
|
|
26406
26406
|
const $ = !!y && OL(c, y);
|
|
26407
26407
|
y && (h.style.zIndex = p.getComputedStyle(y).zIndex, h.style.visibility = $ ? "hidden" : "");
|
|
26408
26408
|
const { left: S, top: D, width: M, height: q } = c.getBoundingClientRect();
|
|
26409
26409
|
if (a.value = $ ? null : { left: S, top: D, width: M, height: q }, !$) {
|
|
26410
26410
|
h.style.setProperty("--ui-floating-owner-width", `${M}px`);
|
|
26411
|
-
const U = Math.max(0, Math.min(D + q, p.innerHeight) - Math.max(D,
|
|
26411
|
+
const U = Math.max(0, Math.min(D + q, p.innerHeight) - Math.max(D, C()));
|
|
26412
26412
|
h.style.setProperty("--ui-floating-owner-height", `${U}px`);
|
|
26413
26413
|
}
|
|
26414
|
-
},
|
|
26414
|
+
}, C = () => {
|
|
26415
26415
|
const $ = c.ownerDocument.getElementById("sds-taskbar")?.getBoundingClientRect();
|
|
26416
26416
|
return $ && $.height > 0 && $.top <= 0 ? Math.max($.bottom, 0) : 0;
|
|
26417
|
-
},
|
|
26418
|
-
r.value = xL({ width: p.innerWidth, height: p.innerHeight },
|
|
26419
|
-
}, _ = typeof ResizeObserver > "u" ? null : new ResizeObserver(
|
|
26420
|
-
_?.observe(c), s =
|
|
26421
|
-
const
|
|
26417
|
+
}, b = () => {
|
|
26418
|
+
r.value = xL({ width: p.innerWidth, height: p.innerHeight }, C()), h.style.setProperty("--ui-floating-max-height", `${r.value.height}px`), i.value = CL({ width: p.innerWidth, coarse: !!p.matchMedia?.("(pointer: coarse)").matches }), i.value ? h.removeAttribute("data-ui-presentation") : h.setAttribute("data-ui-presentation", "mobile"), w();
|
|
26419
|
+
}, _ = typeof ResizeObserver > "u" ? null : new ResizeObserver(b);
|
|
26420
|
+
_?.observe(c), s = b;
|
|
26421
|
+
const x = new MutationObserver(w);
|
|
26422
26422
|
let A = null;
|
|
26423
26423
|
const P = ($) => {
|
|
26424
26424
|
A = $.target;
|
|
@@ -26428,8 +26428,8 @@ function TL(e, t, n) {
|
|
|
26428
26428
|
if (!S) return;
|
|
26429
26429
|
(A?.isConnected && S.contains(A) ? A : S).focus({ preventScroll: !0 });
|
|
26430
26430
|
};
|
|
26431
|
-
h.addEventListener("focusin", P), y ? (y.after(h),
|
|
26432
|
-
v.disconnect(), _?.disconnect(),
|
|
26431
|
+
h.addEventListener("focusin", P), y ? (y.after(h), x.observe(y, { attributes: !0, attributeFilter: ["style", "class"] }), y.addEventListener("focusin", O)) : c.ownerDocument.body.appendChild(h), b(), p.addEventListener("resize", b), h.addEventListener("pointerdown", n, !0), o.value = h, f(() => {
|
|
26432
|
+
v.disconnect(), _?.disconnect(), x.disconnect(), p.removeEventListener("resize", b), h.removeEventListener("pointerdown", n, !0), h.removeEventListener("focusin", P), y?.removeEventListener("focusin", O), h.remove(), o.value = null, s = void 0;
|
|
26433
26433
|
});
|
|
26434
26434
|
}, { flush: "post" }), { element: o, owner: a, locate: () => (s?.(), a.value), area: r, draggable: i };
|
|
26435
26435
|
}
|
|
@@ -26699,11 +26699,11 @@ const Ld = /* @__PURE__ */ V({
|
|
|
26699
26699
|
function y() {
|
|
26700
26700
|
return o.confirmClose ? (v.value = !0, !1) : (p(!1), !0);
|
|
26701
26701
|
}
|
|
26702
|
-
function
|
|
26702
|
+
function w(D, M) {
|
|
26703
26703
|
if (D) return p(!0);
|
|
26704
26704
|
y() || M.cancel();
|
|
26705
26705
|
}
|
|
26706
|
-
function
|
|
26706
|
+
function C() {
|
|
26707
26707
|
v.value = !1, p(!1);
|
|
26708
26708
|
}
|
|
26709
26709
|
wl(
|
|
@@ -26713,7 +26713,7 @@ const Ld = /* @__PURE__ */ V({
|
|
|
26713
26713
|
},
|
|
26714
26714
|
{ enabled: () => o.backDismiss ?? s.value }
|
|
26715
26715
|
);
|
|
26716
|
-
const
|
|
26716
|
+
const b = k(() => ["auto", "large", "full"].includes(o.height) ? o.height : "custom"), _ = k(() => b.value === "custom" ? { "--ui-bottom-sheet-height": o.height } : void 0), x = k(() => !!(o.title || o.description || i.header) || o.showClose), A = () => Fb(i.default), P = Me("anchor");
|
|
26717
26717
|
function O(D) {
|
|
26718
26718
|
if (a("openAutoFocus", D), D.defaultPrevented) return;
|
|
26719
26719
|
const M = P.value?.closest("[data-ui-bottom-sheet]");
|
|
@@ -26735,7 +26735,7 @@ const Ld = /* @__PURE__ */ V({
|
|
|
26735
26735
|
modal: d(o).modal,
|
|
26736
26736
|
"swipe-direction": "down",
|
|
26737
26737
|
"snap-points": d(o).snapPoints,
|
|
26738
|
-
"onUpdate:open":
|
|
26738
|
+
"onUpdate:open": w
|
|
26739
26739
|
}, {
|
|
26740
26740
|
default: R(() => [
|
|
26741
26741
|
D.$slots.trigger ? (g(), F(d(XR), {
|
|
@@ -26767,8 +26767,8 @@ const Ld = /* @__PURE__ */ V({
|
|
|
26767
26767
|
K(d(lb), le(D.$attrs, {
|
|
26768
26768
|
"data-ui-bottom-sheet": "",
|
|
26769
26769
|
"data-ui-sheet": "",
|
|
26770
|
-
"data-ui-sheet-height":
|
|
26771
|
-
"data-ui-sheet-header":
|
|
26770
|
+
"data-ui-sheet-height": b.value,
|
|
26771
|
+
"data-ui-sheet-header": x.value ? void 0 : "none",
|
|
26772
26772
|
"data-modal": d(o).modal ? void 0 : "false",
|
|
26773
26773
|
style: _.value,
|
|
26774
26774
|
onEscapeKeyDown: $,
|
|
@@ -26784,7 +26784,7 @@ const Ld = /* @__PURE__ */ V({
|
|
|
26784
26784
|
"data-ui-bottom-sheet-grabber": "",
|
|
26785
26785
|
"aria-hidden": "true"
|
|
26786
26786
|
}, null, 512),
|
|
26787
|
-
|
|
26787
|
+
x.value ? (g(), I("header", YL, [
|
|
26788
26788
|
oe("div", JL, [
|
|
26789
26789
|
d(o).title ? (g(), F(d(dc), {
|
|
26790
26790
|
key: 0,
|
|
@@ -26866,7 +26866,7 @@ const Ld = /* @__PURE__ */ V({
|
|
|
26866
26866
|
K(Nr, {
|
|
26867
26867
|
variant: "danger",
|
|
26868
26868
|
"data-ui-bottom-sheet-discard": "",
|
|
26869
|
-
onClick:
|
|
26869
|
+
onClick: C
|
|
26870
26870
|
}, {
|
|
26871
26871
|
default: R(() => [
|
|
26872
26872
|
Oe(Q(d(r)("Discard")), 1)
|
|
@@ -27352,15 +27352,15 @@ const mF = {
|
|
|
27352
27352
|
for (const W of Wh(h.value)) v.set(W.value, W.label);
|
|
27353
27353
|
});
|
|
27354
27354
|
const y = k(() => a.modelValue ? v.get(a.modelValue) ?? "" : "");
|
|
27355
|
-
function
|
|
27355
|
+
function w() {
|
|
27356
27356
|
const W = u.value?.$el;
|
|
27357
27357
|
return W ? Array.from(W.querySelectorAll('[role="option"]')).filter(
|
|
27358
27358
|
(re) => re.getAttribute("aria-disabled") !== "true"
|
|
27359
27359
|
) : [];
|
|
27360
27360
|
}
|
|
27361
|
-
function
|
|
27361
|
+
function C(W) {
|
|
27362
27362
|
if (W.key === "Escape" || W.key === "Tab" || (W.stopPropagation(), W.key !== "ArrowDown" && W.key !== "ArrowUp" && W.key !== "Enter")) return;
|
|
27363
|
-
const re =
|
|
27363
|
+
const re = w();
|
|
27364
27364
|
if (re.length) {
|
|
27365
27365
|
if (W.preventDefault(), W.key === "Enter") {
|
|
27366
27366
|
p.value = !0;
|
|
@@ -27371,13 +27371,13 @@ const mF = {
|
|
|
27371
27371
|
p.value = !0, re.at(W.key === "ArrowDown" ? 0 : -1)?.focus();
|
|
27372
27372
|
}
|
|
27373
27373
|
}
|
|
27374
|
-
function
|
|
27374
|
+
function b(W) {
|
|
27375
27375
|
!f.value || p.value || bl() || W.target !== l.value && l.value?.focus();
|
|
27376
27376
|
}
|
|
27377
27377
|
te(s, (W) => {
|
|
27378
27378
|
p.value = !1, W || (i.value = "");
|
|
27379
27379
|
});
|
|
27380
|
-
const _ = Tb({ list: !0 }),
|
|
27380
|
+
const _ = Tb({ list: !0 }), x = k(() => s.value && _.value === "popover"), A = k(() => s.value && _.value === "sheet"), P = /* @__PURE__ */ N("");
|
|
27381
27381
|
te(A, (W) => {
|
|
27382
27382
|
W && (P.value = $b(c.value?.$el) || a.placeholder);
|
|
27383
27383
|
});
|
|
@@ -27390,7 +27390,7 @@ const mF = {
|
|
|
27390
27390
|
function S(W) {
|
|
27391
27391
|
Y(W), r("update:modelValue", W), s.value = !1;
|
|
27392
27392
|
}
|
|
27393
|
-
const D = ui(() => c.value?.$el, () =>
|
|
27393
|
+
const D = ui(() => c.value?.$el, () => x.value), M = qb(() => n.motion), q = jb(() => x.value, () => {
|
|
27394
27394
|
s.value = !1;
|
|
27395
27395
|
}), { controlAttrs: U, wrapperAttrs: B, changed: Y } = Ka({ value: () => a.modelValue, disabled: () => o.value });
|
|
27396
27396
|
return (W, re) => (g(), I("div", le(d(B)(), {
|
|
@@ -27399,7 +27399,7 @@ const mF = {
|
|
|
27399
27399
|
}), [
|
|
27400
27400
|
K(d(oN), {
|
|
27401
27401
|
required: d(U)()["aria-required"] === !0,
|
|
27402
|
-
open:
|
|
27402
|
+
open: x.value,
|
|
27403
27403
|
"model-value": d(a).modelValue,
|
|
27404
27404
|
disabled: d(o),
|
|
27405
27405
|
"onUpdate:open": re[2] || (re[2] = (me) => s.value = me),
|
|
@@ -27447,7 +27447,7 @@ const mF = {
|
|
|
27447
27447
|
class: ["z-[1450] min-w-[min(var(--reka-select-trigger-width),var(--reka-popper-available-width))] overflow-hidden rounded-[var(--ui-radius-md)] border border-[var(--ui-border-floating)] bg-[var(--ui-surface-raised)] p-1 shadow-[var(--ui-shadow-menu)]", d(yl)],
|
|
27448
27448
|
"data-syno-pkg-land-ui": "",
|
|
27449
27449
|
onEscapeKeyDown: d(Sl),
|
|
27450
|
-
onFocusin:
|
|
27450
|
+
onFocusin: b,
|
|
27451
27451
|
onPointerdown: re[1] || (re[1] = (me) => p.value = !0)
|
|
27452
27452
|
}), {
|
|
27453
27453
|
default: R(() => [
|
|
@@ -27461,7 +27461,7 @@ const mF = {
|
|
|
27461
27461
|
"aria-label": d(a).searchPlaceholder,
|
|
27462
27462
|
class: "h-7 w-full rounded-[var(--ui-radius-control)] border border-[var(--ui-border)] bg-[var(--ui-surface)] px-2 text-[length:var(--ui-font-size-control)] text-[var(--ui-text)] outline-none props.placeholder:text-[var(--ui-text-muted)] focus:border-[var(--ui-primary)]",
|
|
27463
27463
|
"data-syno-pkg-land-ui-select-search": "",
|
|
27464
|
-
onKeydown:
|
|
27464
|
+
onKeydown: C
|
|
27465
27465
|
}, null, 40, EF), [
|
|
27466
27466
|
[dx, i.value]
|
|
27467
27467
|
])
|
|
@@ -27634,16 +27634,16 @@ const Qb = /* @__PURE__ */ V({
|
|
|
27634
27634
|
i.value && Ts();
|
|
27635
27635
|
});
|
|
27636
27636
|
function c(_) {
|
|
27637
|
-
const
|
|
27638
|
-
if (
|
|
27639
|
-
const A = _.cut ? [
|
|
27637
|
+
const x = t.resolve?.(_);
|
|
27638
|
+
if (x === !1) return "";
|
|
27639
|
+
const A = _.cut ? [x ?? _.text, _.hint] : [_.hint];
|
|
27640
27640
|
return [...new Set(A.filter((P) => !!P))].join(`
|
|
27641
27641
|
`);
|
|
27642
27642
|
}
|
|
27643
27643
|
function u() {
|
|
27644
27644
|
clearTimeout(l), l = void 0, i.value = !1, a.value = null;
|
|
27645
27645
|
}
|
|
27646
|
-
function f(_,
|
|
27646
|
+
function f(_, x) {
|
|
27647
27647
|
const A = _ ? c(_) : "";
|
|
27648
27648
|
if (!_ || !A) return u();
|
|
27649
27649
|
if (_.element === a.value) return;
|
|
@@ -27651,21 +27651,21 @@ const Qb = /* @__PURE__ */ V({
|
|
|
27651
27651
|
const P = () => {
|
|
27652
27652
|
a.value === _.element && _.element.isConnected && (i.value = !0);
|
|
27653
27653
|
};
|
|
27654
|
-
|
|
27654
|
+
x <= 0 || kl.value ? P() : l = setTimeout(P, x);
|
|
27655
27655
|
}
|
|
27656
27656
|
function p(_) {
|
|
27657
27657
|
if (_.pointerType === "touch" || _.buttons) return;
|
|
27658
|
-
const
|
|
27659
|
-
|
|
27658
|
+
const x = o.value;
|
|
27659
|
+
x && f(Hh(_.target, x), t.delay);
|
|
27660
27660
|
}
|
|
27661
27661
|
let h = null;
|
|
27662
27662
|
function m(_) {
|
|
27663
27663
|
h = i.value && _.pointerType !== "mouse" ? a.value : null, u();
|
|
27664
27664
|
}
|
|
27665
27665
|
function v(_) {
|
|
27666
|
-
const
|
|
27667
|
-
if (h = null, !t.openOnTap || !
|
|
27668
|
-
const P = Hh(_.target,
|
|
27666
|
+
const x = o.value, A = h;
|
|
27667
|
+
if (h = null, !t.openOnTap || !x || _.pointerType !== "touch" && _.pointerType !== "pen") return;
|
|
27668
|
+
const P = Hh(_.target, x);
|
|
27669
27669
|
P && P.element !== A && f(P, 0);
|
|
27670
27670
|
}
|
|
27671
27671
|
function y(_) {
|
|
@@ -27675,25 +27675,25 @@ const Qb = /* @__PURE__ */ V({
|
|
|
27675
27675
|
return !0;
|
|
27676
27676
|
}
|
|
27677
27677
|
}
|
|
27678
|
-
function
|
|
27679
|
-
const
|
|
27680
|
-
|
|
27678
|
+
function w(_) {
|
|
27679
|
+
const x = o.value, A = _.target;
|
|
27680
|
+
x && y(A) && f(LF(A, x), 0);
|
|
27681
27681
|
}
|
|
27682
|
-
function
|
|
27682
|
+
function C() {
|
|
27683
27683
|
a.value && u();
|
|
27684
27684
|
}
|
|
27685
|
-
function
|
|
27685
|
+
function b(_, x) {
|
|
27686
27686
|
if (!_) return;
|
|
27687
|
-
const A =
|
|
27688
|
-
A("pointerover", p), A("pointerleave", u), A("pointerdown", m), A("pointerup", v), A("focusin",
|
|
27687
|
+
const A = x ? _.addEventListener.bind(_) : _.removeEventListener.bind(_);
|
|
27688
|
+
A("pointerover", p), A("pointerleave", u), A("pointerdown", m), A("pointerup", v), A("focusin", w), A("focusout", u);
|
|
27689
27689
|
}
|
|
27690
|
-
return te(o, (_,
|
|
27691
|
-
|
|
27690
|
+
return te(o, (_, x) => {
|
|
27691
|
+
b(x, !1), b(_, !0), u();
|
|
27692
27692
|
}, { immediate: !0, flush: "post" }), te(i, (_) => {
|
|
27693
|
-
_ ? window.addEventListener("scroll",
|
|
27693
|
+
_ ? window.addEventListener("scroll", C, !0) : window.removeEventListener("scroll", C, !0);
|
|
27694
27694
|
}), Re(() => {
|
|
27695
|
-
|
|
27696
|
-
}), (_,
|
|
27695
|
+
b(o.value, !1), window.removeEventListener("scroll", C, !0), clearTimeout(l);
|
|
27696
|
+
}), (_, x) => (g(), I(be, null, [
|
|
27697
27697
|
_.$slots.default && !t.target ? (g(), I("div", {
|
|
27698
27698
|
key: 0,
|
|
27699
27699
|
ref_key: "wrapper",
|
|
@@ -27711,7 +27711,7 @@ const Qb = /* @__PURE__ */ V({
|
|
|
27711
27711
|
K(d(Od), {
|
|
27712
27712
|
open: i.value,
|
|
27713
27713
|
"disable-hoverable-content": "",
|
|
27714
|
-
"onUpdate:open":
|
|
27714
|
+
"onUpdate:open": x[0] || (x[0] = (A) => {
|
|
27715
27715
|
A || u();
|
|
27716
27716
|
})
|
|
27717
27717
|
}, {
|
|
@@ -28409,17 +28409,17 @@ const mz = {
|
|
|
28409
28409
|
const P = i.value;
|
|
28410
28410
|
return !P || typeof getComputedStyle != "function" ? 0 : aw(getComputedStyle(P).getPropertyValue(A)) ?? 0;
|
|
28411
28411
|
}
|
|
28412
|
-
function
|
|
28412
|
+
function w(A, P) {
|
|
28413
28413
|
return Array.from(A.changedTouches).find((O) => O.identifier === P);
|
|
28414
28414
|
}
|
|
28415
|
-
function
|
|
28415
|
+
function C(A) {
|
|
28416
28416
|
if (!s() || A.touches.length !== 1 || !i.value) return;
|
|
28417
28417
|
const P = A.touches[0], O = i.value.getBoundingClientRect();
|
|
28418
28418
|
P.clientX - O.left > bz || (clearTimeout(h), f = { id: P.identifier, x: P.clientX, y: P.clientY, width: O.width || 1, horizontal: null, progress: 0, lastX: P.clientX, lastT: A.timeStamp, speed: 0 });
|
|
28419
28419
|
}
|
|
28420
|
-
function
|
|
28420
|
+
function b(A) {
|
|
28421
28421
|
if (!f) return;
|
|
28422
|
-
const P =
|
|
28422
|
+
const P = w(A, f.id);
|
|
28423
28423
|
if (!P) return;
|
|
28424
28424
|
const O = P.clientX - f.x, $ = P.clientY - f.y;
|
|
28425
28425
|
if (f.horizontal == null) {
|
|
@@ -28435,7 +28435,7 @@ const mz = {
|
|
|
28435
28435
|
S > 0 && (f.speed = (P.clientX - f.lastX) / S), f.lastX = P.clientX, f.lastT = A.timeStamp, f.progress = Math.min(1, Math.max(0, O / f.width)), v(f.progress);
|
|
28436
28436
|
}
|
|
28437
28437
|
function _(A) {
|
|
28438
|
-
if (!f || !
|
|
28438
|
+
if (!f || !w(A, f.id)) return;
|
|
28439
28439
|
const O = f;
|
|
28440
28440
|
if (f = null, !O.horizontal) return;
|
|
28441
28441
|
p.value = !1;
|
|
@@ -28448,13 +28448,13 @@ const mz = {
|
|
|
28448
28448
|
m(i.value), m(n.under);
|
|
28449
28449
|
}, y("--ui-motion-spring-back") + 20);
|
|
28450
28450
|
}
|
|
28451
|
-
function
|
|
28451
|
+
function x() {
|
|
28452
28452
|
m(i.value), m(n.under);
|
|
28453
28453
|
}
|
|
28454
28454
|
return Re(() => clearTimeout(h)), (A, P) => (g(), F(V_, {
|
|
28455
28455
|
name: "ui-push",
|
|
28456
28456
|
css: n.enabled,
|
|
28457
|
-
onAfterLeave:
|
|
28457
|
+
onAfterLeave: x
|
|
28458
28458
|
}, {
|
|
28459
28459
|
default: R(() => [
|
|
28460
28460
|
n.keepMounted || n.show ? Oo((g(), F(ht(n.as), le({
|
|
@@ -28466,8 +28466,8 @@ const mz = {
|
|
|
28466
28466
|
"data-ui-push": n.enabled ? "" : void 0,
|
|
28467
28467
|
"data-ui-push-dragging": p.value ? "" : void 0,
|
|
28468
28468
|
"data-syno-pkg-land-ui": "",
|
|
28469
|
-
onTouchstartPassive:
|
|
28470
|
-
onTouchmove:
|
|
28469
|
+
onTouchstartPassive: C,
|
|
28470
|
+
onTouchmove: b,
|
|
28471
28471
|
onTouchend: _,
|
|
28472
28472
|
onTouchcancel: _
|
|
28473
28473
|
}), {
|
|
@@ -28950,12 +28950,12 @@ const mz = {
|
|
|
28950
28950
|
setup(e, { emit: t }) {
|
|
28951
28951
|
const n = e, o = t, a = /* @__PURE__ */ N([]), r = /* @__PURE__ */ N({}), i = /* @__PURE__ */ N(!1), s = k({
|
|
28952
28952
|
get: () => n.open ?? i.value,
|
|
28953
|
-
set: (
|
|
28954
|
-
n.open === void 0 && (i.value =
|
|
28953
|
+
set: (b) => {
|
|
28954
|
+
n.open === void 0 && (i.value = b), o("update:open", b);
|
|
28955
28955
|
}
|
|
28956
28956
|
}), l = Me("trigger"), c = Tb(() => wL(n.items)), u = k(() => s.value && c.value === "popover"), f = /* @__PURE__ */ N();
|
|
28957
|
-
te(() => s.value && c.value === "sheet", (
|
|
28958
|
-
|
|
28957
|
+
te(() => s.value && c.value === "sheet", (b) => {
|
|
28958
|
+
b && (f.value = $b(l.value?.$el) || void 0);
|
|
28959
28959
|
});
|
|
28960
28960
|
const p = ui(() => l.value?.$el, () => u.value), h = qb(() => n.motion), m = jb(() => u.value, () => {
|
|
28961
28961
|
s.value = !1;
|
|
@@ -28964,26 +28964,26 @@ const mz = {
|
|
|
28964
28964
|
...n.radioValues,
|
|
28965
28965
|
...n.radioValue !== void 0 ? { "": n.radioValue } : {}
|
|
28966
28966
|
}));
|
|
28967
|
-
function b
|
|
28968
|
-
const
|
|
28969
|
-
a.value =
|
|
28967
|
+
function w(b, _) {
|
|
28968
|
+
const x = _ ? [.../* @__PURE__ */ new Set([...v.value, b])] : v.value.filter((A) => A !== b);
|
|
28969
|
+
a.value = x, o("update:checkedKeys", x), o("toggle", b, _);
|
|
28970
28970
|
}
|
|
28971
|
-
function
|
|
28972
|
-
const A = { ...y.value, [
|
|
28973
|
-
r.value = A,
|
|
28971
|
+
function C(b, _, x) {
|
|
28972
|
+
const A = { ...y.value, [x]: b };
|
|
28973
|
+
r.value = A, x === "" && o("update:radioValue", b), o("update:radioValues", A), o("radioSelect", b, _, x);
|
|
28974
28974
|
}
|
|
28975
|
-
return (
|
|
28975
|
+
return (b, _) => (g(), I(be, null, [
|
|
28976
28976
|
K(d(gM), {
|
|
28977
28977
|
open: u.value,
|
|
28978
|
-
"onUpdate:open": _[1] || (_[1] = (
|
|
28978
|
+
"onUpdate:open": _[1] || (_[1] = (x) => s.value = x)
|
|
28979
28979
|
}, {
|
|
28980
28980
|
default: R(() => [
|
|
28981
28981
|
K(d(LM), le({
|
|
28982
28982
|
ref_key: "trigger",
|
|
28983
28983
|
ref: l
|
|
28984
|
-
},
|
|
28984
|
+
}, b.$attrs.id ? { "aria-controls": s.value ? b.$attrs.id : void 0 } : {}, { "as-child": "" }), {
|
|
28985
28985
|
default: R(() => [
|
|
28986
|
-
z(
|
|
28986
|
+
z(b.$slots, "trigger")
|
|
28987
28987
|
]),
|
|
28988
28988
|
_: 3
|
|
28989
28989
|
}, 16),
|
|
@@ -28993,7 +28993,7 @@ const mz = {
|
|
|
28993
28993
|
key: 0,
|
|
28994
28994
|
onOpenAutoFocus: d(GL),
|
|
28995
28995
|
"data-ui-popup": ""
|
|
28996
|
-
}, { ...d(p), ...d(m), ...
|
|
28996
|
+
}, { ...d(p), ...d(m), ...b.$attrs }, {
|
|
28997
28997
|
"data-ui-popup-motion": d(h)() === "none" ? "none" : void 0,
|
|
28998
28998
|
align: n.align,
|
|
28999
28999
|
"side-offset": 4,
|
|
@@ -29009,9 +29009,9 @@ const mz = {
|
|
|
29009
29009
|
floating: d(p),
|
|
29010
29010
|
"radio-indicator": n.radioIndicator,
|
|
29011
29011
|
motion: d(h)(),
|
|
29012
|
-
onSelect: _[0] || (_[0] = (
|
|
29013
|
-
onToggle:
|
|
29014
|
-
onRadio:
|
|
29012
|
+
onSelect: _[0] || (_[0] = (x) => o("select", x)),
|
|
29013
|
+
onToggle: w,
|
|
29014
|
+
onRadio: C
|
|
29015
29015
|
}, null, 8, ["items", "checked-keys", "radio-values", "floating", "radio-indicator", "motion"])
|
|
29016
29016
|
]),
|
|
29017
29017
|
_: 1
|
|
@@ -29022,17 +29022,17 @@ const mz = {
|
|
|
29022
29022
|
]),
|
|
29023
29023
|
_: 3
|
|
29024
29024
|
}, 8, ["open"]),
|
|
29025
|
-
d(c) === "sheet" && n.items.length > 0 ? (g(), F(Zz, le({ key: 0 },
|
|
29025
|
+
d(c) === "sheet" && n.items.length > 0 ? (g(), F(Zz, le({ key: 0 }, b.$attrs, {
|
|
29026
29026
|
open: s.value,
|
|
29027
|
-
"onUpdate:open": _[2] || (_[2] = (
|
|
29027
|
+
"onUpdate:open": _[2] || (_[2] = (x) => s.value = x),
|
|
29028
29028
|
items: n.items,
|
|
29029
29029
|
title: f.value,
|
|
29030
29030
|
"checked-keys": v.value,
|
|
29031
29031
|
"radio-values": y.value,
|
|
29032
29032
|
"radio-indicator": n.radioIndicator,
|
|
29033
|
-
onSelect: _[3] || (_[3] = (
|
|
29034
|
-
onToggle:
|
|
29035
|
-
onRadio:
|
|
29033
|
+
onSelect: _[3] || (_[3] = (x) => o("select", x)),
|
|
29034
|
+
onToggle: w,
|
|
29035
|
+
onRadio: C
|
|
29036
29036
|
}), null, 16, ["open", "items", "title", "checked-keys", "radio-values", "radio-indicator"])) : j("", !0)
|
|
29037
29037
|
], 64));
|
|
29038
29038
|
}
|
|
@@ -29067,10 +29067,10 @@ function Xz(e, t) {
|
|
|
29067
29067
|
}, { flush: "post" }), te(e, (h, m, v) => {
|
|
29068
29068
|
const y = h?.parentElement;
|
|
29069
29069
|
if (!y || typeof ResizeObserver > "u") return;
|
|
29070
|
-
const
|
|
29070
|
+
const w = new ResizeObserver(() => {
|
|
29071
29071
|
n.value && (s ? i(0, 0) : p(y));
|
|
29072
29072
|
});
|
|
29073
|
-
|
|
29073
|
+
w.observe(y), v(() => w.disconnect());
|
|
29074
29074
|
}, { flush: "post" }), te(t.area, () => i(0, 0)), te(t.owner, (h) => {
|
|
29075
29075
|
h && (f && i(h.left - f.left, h.top - f.top), f = h);
|
|
29076
29076
|
});
|
|
@@ -29080,8 +29080,8 @@ function Xz(e, t) {
|
|
|
29080
29080
|
const p = f.target;
|
|
29081
29081
|
if (!o.value || !n.value || f.button !== 0 || p.closest("button,a,input,select,textarea")) return;
|
|
29082
29082
|
f.preventDefault();
|
|
29083
|
-
const h = { x: f.clientX, y: f.clientY, from: n.value }, m = p.ownerDocument.defaultView, v = (
|
|
29084
|
-
s = !0, r({ x: h.from.x +
|
|
29083
|
+
const h = { x: f.clientX, y: f.clientY, from: n.value }, m = p.ownerDocument.defaultView, v = (w) => {
|
|
29084
|
+
s = !0, r({ x: h.from.x + w.clientX - h.x, y: h.from.y + w.clientY - h.y });
|
|
29085
29085
|
};
|
|
29086
29086
|
l?.(), l = () => {
|
|
29087
29087
|
m.removeEventListener("pointermove", v), m.removeEventListener("pointerup", y), m.removeEventListener("pointercancel", y), l = void 0;
|
|
@@ -29139,13 +29139,13 @@ const Qz = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], eB = ["data
|
|
|
29139
29139
|
function c(ie, pe) {
|
|
29140
29140
|
Ub(pe), a(ie === "pointerDownOutside" ? "pointerDownOutside" : "interactOutside", pe), o.closeOnOutside || pe.preventDefault();
|
|
29141
29141
|
}
|
|
29142
|
-
const u = { dim: "bg-[var(--ui-overlay)] backdrop-blur-[1px]", light: "bg-[var(--ui-overlay-light)]", none: "bg-transparent" }, f = _l(), p = k(() => f?.element.value ?? null), { position: h, draggable: m, onPointerdown: v, onKeydown: y } = Xz(Me("handle"), f),
|
|
29142
|
+
const u = { dim: "bg-[var(--ui-overlay)] backdrop-blur-[1px]", light: "bg-[var(--ui-overlay-light)]", none: "bg-transparent" }, f = _l(), p = k(() => f?.element.value ?? null), { position: h, draggable: m, onPointerdown: v, onKeydown: y } = Xz(Me("handle"), f), w = k(() => o.width ? void 0 : o.size), C = k(() => o.width ?? (w.value && `var(--ui-dialog-width-${w.value})`)), b = k(() => !!C.value), _ = gO(), x = k(() => b.value ? void 0 : _.value), A = k(() => ({
|
|
29143
29143
|
left: h.value && `${h.value.x}px`,
|
|
29144
29144
|
top: h.value && `${h.value.y}px`,
|
|
29145
|
-
maxWidth:
|
|
29145
|
+
maxWidth: C.value,
|
|
29146
29146
|
"--ui-dialog-max-width": o.maxWidth,
|
|
29147
|
-
"--ui-dialog-width":
|
|
29148
|
-
"--ui-dialog-floor":
|
|
29147
|
+
"--ui-dialog-width": C.value ?? "var(--ui-dialog-max-width)",
|
|
29148
|
+
"--ui-dialog-floor": x.value && `var(--ui-dialog-width-${x.value})`,
|
|
29149
29149
|
height: o.height && `min(${o.height}, 100%)`,
|
|
29150
29150
|
minHeight: o.minHeight && `min(${o.minHeight}, 100%)`,
|
|
29151
29151
|
maxHeight: o.maxHeight && `min(${o.maxHeight}, 100%)`
|
|
@@ -29240,7 +29240,7 @@ const Qz = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], eB = ["data
|
|
|
29240
29240
|
}, d(o).description ? ie.$attrs : { "aria-describedby": void 0, ...ie.$attrs }, {
|
|
29241
29241
|
"data-ui-dialog": "",
|
|
29242
29242
|
class: ["fixed z-[1201] flex max-h-[85vh] flex-col overflow-hidden border border-[var(--ui-border-subtle)] bg-[var(--ui-surface-raised)] shadow-[var(--ui-shadow-dialog)] outline-none", [
|
|
29243
|
-
|
|
29243
|
+
b.value ? "w-[var(--ui-dialog-room)]" : "w-fit min-w-[min(max(var(--ui-dialog-min-width),var(--ui-dialog-floor,0px)),var(--ui-dialog-max-width),var(--ui-dialog-room))] max-w-[min(var(--ui-dialog-max-width),var(--ui-dialog-room))]",
|
|
29244
29244
|
// Auto side margins centre it: a -50% shift would leave a content-sized panel half the width.
|
|
29245
29245
|
d(h) ? void 0 : "inset-x-0 mx-auto top-1/2 -translate-y-1/2",
|
|
29246
29246
|
// DSM rounds a modal window 3px and only a message box 8px.
|
|
@@ -29248,9 +29248,9 @@ const Qz = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], eB = ["data
|
|
|
29248
29248
|
d(o).fullscreen === !0 && nB
|
|
29249
29249
|
]],
|
|
29250
29250
|
style: A.value,
|
|
29251
|
-
"data-ui-dialog-sizing":
|
|
29252
|
-
"data-ui-dialog-size":
|
|
29253
|
-
"data-ui-dialog-floor":
|
|
29251
|
+
"data-ui-dialog-sizing": b.value ? "fixed" : "content",
|
|
29252
|
+
"data-ui-dialog-size": w.value,
|
|
29253
|
+
"data-ui-dialog-floor": x.value,
|
|
29254
29254
|
"data-ui-dialog-layout": B.value ? "window" : "message",
|
|
29255
29255
|
"data-ui-dialog-fullscreen": d(o).fullscreen === !0 ? "" : d(o).fullscreen || void 0,
|
|
29256
29256
|
"data-syno-pkg-land-ui": "",
|
|
@@ -29457,11 +29457,11 @@ const uB = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29457
29457
|
We(uw, u);
|
|
29458
29458
|
const f = Me("root"), { overflowStart: p, overflowEnd: h } = lw(f, () => n.modelValue), m = Me("thumb");
|
|
29459
29459
|
let v = null, y;
|
|
29460
|
-
function
|
|
29460
|
+
function w(P) {
|
|
29461
29461
|
return a.find((O) => O.value === P)?.element();
|
|
29462
29462
|
}
|
|
29463
|
-
function
|
|
29464
|
-
const O =
|
|
29463
|
+
function C(P) {
|
|
29464
|
+
const O = w(P);
|
|
29465
29465
|
if (!O) return null;
|
|
29466
29466
|
const $ = O.getBoundingClientRect();
|
|
29467
29467
|
return n.variant === "sheet" ? { left: $.left + O.clientLeft, top: $.top + O.clientTop, width: O.clientWidth, height: 2 } : $;
|
|
@@ -29469,9 +29469,9 @@ const uB = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29469
29469
|
te(() => n.modelValue, (P, O) => {
|
|
29470
29470
|
const $ = f.value;
|
|
29471
29471
|
if (v = null, !$ || Cl($)) return;
|
|
29472
|
-
v = $.hasAttribute("data-ui-segment-moving") && m.value ? m.value.getBoundingClientRect() :
|
|
29472
|
+
v = $.hasAttribute("data-ui-segment-moving") && m.value ? m.value.getBoundingClientRect() : C(O);
|
|
29473
29473
|
}, { flush: "pre" });
|
|
29474
|
-
function
|
|
29474
|
+
function b(P) {
|
|
29475
29475
|
const O = f.value, $ = O.getBoundingClientRect(), S = P.left - $.left - O.clientLeft + O.scrollLeft, D = P.top - $.top - O.clientTop + O.scrollTop;
|
|
29476
29476
|
m.value.style.width = `${P.width}px`, m.value.style.height = `${P.height}px`, m.value.style.transform = `translate(${S}px, ${D}px)`;
|
|
29477
29477
|
}
|
|
@@ -29483,14 +29483,14 @@ const uB = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29483
29483
|
te(() => n.modelValue, (P) => {
|
|
29484
29484
|
const O = v;
|
|
29485
29485
|
v = null;
|
|
29486
|
-
const $ = f.value, S = m.value, D =
|
|
29486
|
+
const $ = f.value, S = m.value, D = C(P);
|
|
29487
29487
|
if (!$ || !S || !O || !D || O.width <= 0 || D.width <= 0) return _();
|
|
29488
|
-
clearTimeout(y), S.style.transition = "none",
|
|
29488
|
+
clearTimeout(y), S.style.transition = "none", b(O), $.setAttribute("data-ui-segment-moving", ""), S.offsetWidth, S.style.transition = "";
|
|
29489
29489
|
const M = Ur(S);
|
|
29490
29490
|
if (M < 1) return _();
|
|
29491
|
-
|
|
29491
|
+
b(D), y = setTimeout(_, M + 50);
|
|
29492
29492
|
}, { flush: "post" });
|
|
29493
|
-
function
|
|
29493
|
+
function x(P) {
|
|
29494
29494
|
P.target === m.value && P.propertyName === "transform" && _();
|
|
29495
29495
|
}
|
|
29496
29496
|
Re(() => clearTimeout(y));
|
|
@@ -29519,7 +29519,7 @@ const uB = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29519
29519
|
class: "ui-segment-thumb",
|
|
29520
29520
|
style: je(u.size.value === "sm" ? A : void 0),
|
|
29521
29521
|
"aria-hidden": "true",
|
|
29522
|
-
onTransitionend:
|
|
29522
|
+
onTransitionend: x
|
|
29523
29523
|
}, null, 36)
|
|
29524
29524
|
], 10, uB));
|
|
29525
29525
|
}
|
|
@@ -29569,19 +29569,19 @@ const uB = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29569
29569
|
!s.value && "bg-[var(--ui-surface-subtle)] text-[var(--ui-text-secondary)]",
|
|
29570
29570
|
l.value ? "opacity-40" : !s.value && "hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] active:bg-[var(--ui-surface-selected)]"
|
|
29571
29571
|
)
|
|
29572
|
-
), y = k(() => t.count !== void 0 && t.count !== null && t.count !== ""),
|
|
29572
|
+
), y = k(() => t.count !== void 0 && t.count !== null && t.count !== ""), w = k(
|
|
29573
29573
|
() => nn(
|
|
29574
29574
|
"inline-flex h-4 min-w-4 shrink-0 items-center justify-center whitespace-nowrap rounded-[var(--ui-radius-pill)] px-1 text-[12px] leading-4 font-normal tabular-nums",
|
|
29575
29575
|
s.value && n?.variant.value !== "sheet" ? "bg-[color-mix(in_srgb,var(--ui-primary-foreground)_24%,transparent)] text-[var(--ui-primary-foreground)]" : "bg-[var(--ui-neutral-soft)] text-[var(--ui-neutral-text)]"
|
|
29576
29576
|
)
|
|
29577
29577
|
);
|
|
29578
|
-
function
|
|
29578
|
+
function C() {
|
|
29579
29579
|
const $ = o.value, S = $?.closest("[role=tablist]");
|
|
29580
29580
|
if (!$ || !S || S.scrollWidth <= S.clientWidth) return;
|
|
29581
29581
|
const D = S.getBoundingClientRect(), M = $.getBoundingClientRect();
|
|
29582
29582
|
M.left < D.left + 24 ? S.scrollLeft -= D.left + 24 - M.left : M.right > D.right - 24 && (S.scrollLeft += M.right - (D.right - 24));
|
|
29583
29583
|
}
|
|
29584
|
-
const
|
|
29584
|
+
const b = k(() => t.ariaLabel ?? o.value?.textContent?.trim() ?? ""), _ = k(() => n?.variant.value === "sheet" ? v.value : n?.size.value === "sm" ? h.value : m.value), x = {
|
|
29585
29585
|
get value() {
|
|
29586
29586
|
return t.value;
|
|
29587
29587
|
},
|
|
@@ -29589,8 +29589,8 @@ const uB = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29589
29589
|
element: () => o.value
|
|
29590
29590
|
};
|
|
29591
29591
|
Be(() => {
|
|
29592
|
-
i(), n?.register(
|
|
29593
|
-
}), Re(() => n?.unregister(
|
|
29592
|
+
i(), n?.register(x);
|
|
29593
|
+
}), Re(() => n?.unregister(x));
|
|
29594
29594
|
function A() {
|
|
29595
29595
|
n?.select(t.value);
|
|
29596
29596
|
}
|
|
@@ -29625,10 +29625,10 @@ const uB = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29625
29625
|
tabindex: c.value,
|
|
29626
29626
|
"data-state": s.value ? "selected" : "inactive",
|
|
29627
29627
|
class: _.value,
|
|
29628
|
-
title: p.value ? void 0 :
|
|
29628
|
+
title: p.value ? void 0 : b.value || void 0,
|
|
29629
29629
|
onClick: A,
|
|
29630
29630
|
onKeydown: O,
|
|
29631
|
-
onFocus:
|
|
29631
|
+
onFocus: C
|
|
29632
29632
|
}), [
|
|
29633
29633
|
$.$slots.icon ? (g(), I("span", fB, [
|
|
29634
29634
|
z($.$slots, "icon")
|
|
@@ -29646,7 +29646,7 @@ const uB = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29646
29646
|
y.value ? (g(), I("span", {
|
|
29647
29647
|
key: 2,
|
|
29648
29648
|
"data-ui-segment-count": "",
|
|
29649
|
-
class: ue(
|
|
29649
|
+
class: ue(w.value)
|
|
29650
29650
|
}, Q(t.count), 3)) : j("", !0),
|
|
29651
29651
|
$.$slots.suffix ? (g(), I("span", hB, [
|
|
29652
29652
|
z($.$slots, "suffix")
|
|
@@ -30055,12 +30055,12 @@ const HB = {
|
|
|
30055
30055
|
p();
|
|
30056
30056
|
const h = k(() => a.triggerAction === "adaptive" ? f.value ? "click" : "hover" : a.triggerAction), m = k(() => !a.disabled), v = k(() => !!i.default);
|
|
30057
30057
|
let y;
|
|
30058
|
-
const
|
|
30058
|
+
const w = /* @__PURE__ */ N(null);
|
|
30059
30059
|
Be(() => {
|
|
30060
30060
|
const E = s.value;
|
|
30061
|
-
a.icon !== "info" || a.wrap || !E || E.hasAttribute("data-ui-callout-recall-trigger") || E.closest("[data-ui-app-toolbar], [data-ui-page-header-meta]") && (y = mw("info"),
|
|
30061
|
+
a.icon !== "info" || a.wrap || !E || E.hasAttribute("data-ui-callout-recall-trigger") || E.closest("[data-ui-app-toolbar], [data-ui-page-header-meta]") && (y = mw("info"), w.value = y.id);
|
|
30062
30062
|
}), Re(() => y?.unregister());
|
|
30063
|
-
const
|
|
30063
|
+
const C = k(() => w.value !== null && vw.value === w.value && Wr.size > 0), b = k(() => v.value && !a.forceSimple || C.value), _ = k(() => a.hasPadding ? b.value ? "px-5 py-5" : "px-2.5 py-1.5" : "p-0"), x = k(() => a.tipContainer?.() ?? void 0), A = ui(() => s.value ?? void 0, () => c.value);
|
|
30064
30064
|
let P, O, $, S = !1;
|
|
30065
30065
|
function D() {
|
|
30066
30066
|
clearTimeout(P), clearTimeout(O), clearTimeout($);
|
|
@@ -30208,7 +30208,7 @@ const HB = {
|
|
|
30208
30208
|
]),
|
|
30209
30209
|
_: 3
|
|
30210
30210
|
}),
|
|
30211
|
-
K(d($d), { to:
|
|
30211
|
+
K(d($d), { to: x.value }, {
|
|
30212
30212
|
default: R(() => [
|
|
30213
30213
|
K(d(Td), le({
|
|
30214
30214
|
side: e.side,
|
|
@@ -30233,7 +30233,7 @@ const HB = {
|
|
|
30233
30233
|
z(E.$slots, "default", {}, () => [
|
|
30234
30234
|
Oe(Q(e.content), 1)
|
|
30235
30235
|
]),
|
|
30236
|
-
|
|
30236
|
+
C.value ? (g(), F(yw, { key: 0 })) : j("", !0)
|
|
30237
30237
|
], 34)
|
|
30238
30238
|
]),
|
|
30239
30239
|
_: 3
|
|
@@ -30306,33 +30306,33 @@ const HB = {
|
|
|
30306
30306
|
Be(() => {
|
|
30307
30307
|
y(), u.value = !0, l.value && typeof MutationObserver < "u" && (v = new MutationObserver(y), v.observe(l.value, { subtree: !0, childList: !0, characterData: !0 }));
|
|
30308
30308
|
});
|
|
30309
|
-
let
|
|
30310
|
-
te(m, (
|
|
30311
|
-
if (
|
|
30309
|
+
let w;
|
|
30310
|
+
te(m, (x) => {
|
|
30311
|
+
if (w?.(), w = void 0, !x) return;
|
|
30312
30312
|
const A = p.value, P = o.title || c.value;
|
|
30313
|
-
|
|
30313
|
+
w = KB({
|
|
30314
30314
|
tone: o.tone,
|
|
30315
30315
|
icon: i.value,
|
|
30316
30316
|
label: P.length > 120 ? `${P.slice(0, 119)}…` : P,
|
|
30317
30317
|
restore: () => Jh(A)
|
|
30318
30318
|
});
|
|
30319
30319
|
}, { immediate: !0 }), Re(() => {
|
|
30320
|
-
v?.disconnect(),
|
|
30320
|
+
v?.disconnect(), w?.(), o.dismissScope === "occurrence" && C && Jh(b);
|
|
30321
30321
|
});
|
|
30322
|
-
let
|
|
30322
|
+
let C = !1, b = "";
|
|
30323
30323
|
function _() {
|
|
30324
30324
|
y();
|
|
30325
|
-
const
|
|
30326
|
-
UB(p.value, f.value, o.tone !== "danger" && !
|
|
30325
|
+
const x = o.dismissScope === "occurrence";
|
|
30326
|
+
UB(p.value, f.value, o.tone !== "danger" && !x), C = !0, b = p.value, a("close");
|
|
30327
30327
|
}
|
|
30328
|
-
return (
|
|
30328
|
+
return (x, A) => h.value ? (g(), I("div", {
|
|
30329
30329
|
key: 0,
|
|
30330
30330
|
class: "ui-callout",
|
|
30331
30331
|
"data-tone": e.tone,
|
|
30332
30332
|
"data-variant": "hint",
|
|
30333
30333
|
"data-syno-pkg-land-ui": ""
|
|
30334
30334
|
}, [
|
|
30335
|
-
|
|
30335
|
+
x.$slots.details ? (g(), F(bw, {
|
|
30336
30336
|
key: 0,
|
|
30337
30337
|
wrap: "",
|
|
30338
30338
|
"show-delay": 0,
|
|
@@ -30354,22 +30354,22 @@ const HB = {
|
|
|
30354
30354
|
class: "ui-callout-hint-text"
|
|
30355
30355
|
}, [
|
|
30356
30356
|
e.title ? (g(), I("span", tq, Q(e.title), 1)) : j("", !0),
|
|
30357
|
-
|
|
30358
|
-
z(
|
|
30357
|
+
x.$slots.default ? (g(), I("span", nq, [
|
|
30358
|
+
z(x.$slots, "default")
|
|
30359
30359
|
])) : j("", !0)
|
|
30360
30360
|
], 512)
|
|
30361
30361
|
]),
|
|
30362
30362
|
default: R(() => [
|
|
30363
|
-
z(
|
|
30363
|
+
z(x.$slots, "details")
|
|
30364
30364
|
]),
|
|
30365
30365
|
_: 3
|
|
30366
30366
|
}, 8, ["aria-describedby"])) : j("", !0),
|
|
30367
|
-
|
|
30367
|
+
x.$slots.details ? (g(), I("span", {
|
|
30368
30368
|
key: 1,
|
|
30369
30369
|
id: d(s),
|
|
30370
30370
|
hidden: ""
|
|
30371
30371
|
}, [
|
|
30372
|
-
z(
|
|
30372
|
+
z(x.$slots, "details")
|
|
30373
30373
|
], 8, oq)) : (g(), I(be, { key: 2 }, [
|
|
30374
30374
|
(g(), F(ht(i.value), {
|
|
30375
30375
|
class: "ui-callout-icon",
|
|
@@ -30381,8 +30381,8 @@ const HB = {
|
|
|
30381
30381
|
class: "ui-callout-hint-text"
|
|
30382
30382
|
}, [
|
|
30383
30383
|
e.title ? (g(), I("span", aq, Q(e.title), 1)) : j("", !0),
|
|
30384
|
-
|
|
30385
|
-
z(
|
|
30384
|
+
x.$slots.default ? (g(), I("span", rq, [
|
|
30385
|
+
z(x.$slots, "default")
|
|
30386
30386
|
])) : j("", !0)
|
|
30387
30387
|
], 512)
|
|
30388
30388
|
], 64))
|
|
@@ -30407,11 +30407,11 @@ const HB = {
|
|
|
30407
30407
|
class: "ui-callout-content [overflow-wrap:anywhere]"
|
|
30408
30408
|
}, [
|
|
30409
30409
|
e.title ? (g(), I("div", lq, Q(e.title), 1)) : j("", !0),
|
|
30410
|
-
|
|
30411
|
-
z(
|
|
30410
|
+
x.$slots.default ? (g(), I("div", uq, [
|
|
30411
|
+
z(x.$slots, "default")
|
|
30412
30412
|
])) : j("", !0),
|
|
30413
30413
|
e.code ? (g(), I("code", cq, Q(e.code), 1)) : j("", !0),
|
|
30414
|
-
|
|
30414
|
+
x.$slots.details ? (g(), I("button", {
|
|
30415
30415
|
key: 3,
|
|
30416
30416
|
type: "button",
|
|
30417
30417
|
"data-ui-callout-more": "",
|
|
@@ -30426,7 +30426,7 @@ const HB = {
|
|
|
30426
30426
|
"aria-hidden": "true"
|
|
30427
30427
|
}, null, 8, ["class"])
|
|
30428
30428
|
], 8, dq)) : j("", !0),
|
|
30429
|
-
|
|
30429
|
+
x.$slots.details ? (g(), F(Vd, {
|
|
30430
30430
|
key: 4,
|
|
30431
30431
|
open: r.value,
|
|
30432
30432
|
class: "basis-full"
|
|
@@ -30437,14 +30437,14 @@ const HB = {
|
|
|
30437
30437
|
"data-ui-callout-details": "",
|
|
30438
30438
|
class: "ui-callout-details"
|
|
30439
30439
|
}, [
|
|
30440
|
-
z(
|
|
30440
|
+
z(x.$slots, "details")
|
|
30441
30441
|
], 8, fq)
|
|
30442
30442
|
]),
|
|
30443
30443
|
_: 3
|
|
30444
30444
|
}, 8, ["open"])) : j("", !0)
|
|
30445
30445
|
], 512),
|
|
30446
|
-
|
|
30447
|
-
z(
|
|
30446
|
+
x.$slots.actions ? (g(), I("div", pq, [
|
|
30447
|
+
z(x.$slots, "actions")
|
|
30448
30448
|
])) : j("", !0)
|
|
30449
30449
|
]),
|
|
30450
30450
|
e.dismissible ? (g(), I("button", {
|
|
@@ -30677,22 +30677,22 @@ const Nq = ["data-ui-data-view", "data-fill"], Lq = {
|
|
|
30677
30677
|
const f = k(() => {
|
|
30678
30678
|
const q = { ...a.columnWidths, ...u.value };
|
|
30679
30679
|
return a.columns.every((U) => q[U.key] !== void 0) ? q : void 0;
|
|
30680
|
-
}), p = k(() => f.value ? a.columns.reduce((q, U) => q + f.value[U.key], 0) : 0), h = k(() => !!f.value || a.columns.some((q) => !!q.width)), m = (q) => f.value ? `${f.value[q.key]}px` : q.width, v = (q) => q.resizable ?? a.resizable, y = (q) => tm(q.minWidth) ?? (q.width ? Eq : Aq),
|
|
30681
|
-
function
|
|
30680
|
+
}), p = k(() => f.value ? a.columns.reduce((q, U) => q + f.value[U.key], 0) : 0), h = k(() => !!f.value || a.columns.some((q) => !!q.width)), m = (q) => f.value ? `${f.value[q.key]}px` : q.width, v = (q) => q.resizable ?? a.resizable, y = (q) => tm(q.minWidth) ?? (q.width ? Eq : Aq), w = {};
|
|
30681
|
+
function C() {
|
|
30682
30682
|
return Object.fromEntries(a.columns.map((q) => {
|
|
30683
|
-
const U = Math.round(
|
|
30683
|
+
const U = Math.round(w[q.key]?.getBoundingClientRect().width ?? 0);
|
|
30684
30684
|
return [q.key, f.value?.[q.key] ?? (U || tm(q.width) || y(q))];
|
|
30685
30685
|
}));
|
|
30686
30686
|
}
|
|
30687
|
-
function
|
|
30687
|
+
function b(q) {
|
|
30688
30688
|
u.value = q, o("update:columnWidths", q), a.stateKey && Iq(a.stateKey, { ...am(a.stateKey), columnWidths: q });
|
|
30689
30689
|
}
|
|
30690
30690
|
let _;
|
|
30691
|
-
function
|
|
30692
|
-
const B =
|
|
30691
|
+
function x(q, U) {
|
|
30692
|
+
const B = C(), Y = q.clientX, W = (ie) => ({ ...B, [U.key]: nm(B[U.key] + ie - Y, y(U)) }), re = (ie) => {
|
|
30693
30693
|
u.value = W(ie.clientX);
|
|
30694
30694
|
}, me = (ie) => {
|
|
30695
|
-
_?.(),
|
|
30695
|
+
_?.(), b(W(ie.clientX));
|
|
30696
30696
|
};
|
|
30697
30697
|
_ = () => {
|
|
30698
30698
|
document.removeEventListener("pointermove", re), document.removeEventListener("pointerup", me), document.removeEventListener("pointercancel", me), _ = void 0;
|
|
@@ -30702,8 +30702,8 @@ const Nq = ["data-ui-data-view", "data-fill"], Lq = {
|
|
|
30702
30702
|
const B = q.key === "ArrowRight" ? em : q.key === "ArrowLeft" ? -em : 0;
|
|
30703
30703
|
if (B === 0) return;
|
|
30704
30704
|
q.preventDefault();
|
|
30705
|
-
const Y =
|
|
30706
|
-
|
|
30705
|
+
const Y = C();
|
|
30706
|
+
b({ ...Y, [U.key]: nm(Y[U.key] + B, y(U)) });
|
|
30707
30707
|
}
|
|
30708
30708
|
Re(() => _?.());
|
|
30709
30709
|
const P = k(() => s ? s.value === "mobile" : i.value > 0 && i.value <= Dd), O = k(
|
|
@@ -30822,7 +30822,7 @@ const Nq = ["data-ui-data-view", "data-fill"], Lq = {
|
|
|
30822
30822
|
key: B.key,
|
|
30823
30823
|
ref_for: !0,
|
|
30824
30824
|
ref: (Y) => {
|
|
30825
|
-
|
|
30825
|
+
w[B.key] = Y;
|
|
30826
30826
|
},
|
|
30827
30827
|
class: ue(["relative border-b border-[var(--ui-border)] px-3 py-2 font-normal", [d(Xh)(B), h.value ? "[overflow-wrap:anywhere]" : "whitespace-nowrap"]]),
|
|
30828
30828
|
"data-column-type": B.type ?? "text"
|
|
@@ -30836,7 +30836,7 @@ const Nq = ["data-ui-data-view", "data-fill"], Lq = {
|
|
|
30836
30836
|
tabindex: "0",
|
|
30837
30837
|
"aria-label": c(B.label),
|
|
30838
30838
|
class: "absolute top-0 right-0 z-10 h-full w-2 cursor-col-resize touch-none outline-none hover:bg-[var(--ui-primary-soft)] focus-visible:bg-[var(--ui-primary-soft)]",
|
|
30839
|
-
onPointerdown: At((Y) =>
|
|
30839
|
+
onPointerdown: At((Y) => x(Y, B), ["stop", "prevent"]),
|
|
30840
30840
|
onClick: U[0] || (U[0] = At(() => {
|
|
30841
30841
|
}, ["stop"])),
|
|
30842
30842
|
onKeydown: At((Y) => A(Y, B), ["stop"])
|
|
@@ -31133,7 +31133,7 @@ const Nq = ["data-ui-data-view", "data-fill"], Lq = {
|
|
|
31133
31133
|
p.value ? "px-4 py-3" : "px-[var(--ui-card-padding,20px)] py-[calc(var(--ui-card-padding,20px)*0.8)]"
|
|
31134
31134
|
)
|
|
31135
31135
|
);
|
|
31136
|
-
return (y,
|
|
31136
|
+
return (y, w) => (g(), F(ow, {
|
|
31137
31137
|
padding: "none",
|
|
31138
31138
|
class: "flex flex-col overflow-hidden",
|
|
31139
31139
|
"data-layout": e.layoutType,
|
|
@@ -31165,8 +31165,8 @@ const Nq = ["data-ui-data-view", "data-fill"], Lq = {
|
|
|
31165
31165
|
"aria-controls": d(l),
|
|
31166
31166
|
"aria-labelledby": f.value ? d(s) : void 0,
|
|
31167
31167
|
"aria-label": f.value ? void 0 : e.toggleLabel ?? d(n)("Toggle content"),
|
|
31168
|
-
onClick:
|
|
31169
|
-
(...
|
|
31168
|
+
onClick: w[0] || (w[0] = //@ts-ignore
|
|
31169
|
+
(...C) => d(u) && d(u)(...C))
|
|
31170
31170
|
}, [
|
|
31171
31171
|
K(d(Ha), {
|
|
31172
31172
|
class: ue(d(nn)("size-4 transition-transform duration-[var(--ui-motion-fast)]", !d(c) && "-rotate-90")),
|
|
@@ -31226,17 +31226,17 @@ function TV() {
|
|
|
31226
31226
|
const l = o(r);
|
|
31227
31227
|
let c, u;
|
|
31228
31228
|
const f = () => {
|
|
31229
|
-
clearTimeout(c), clearTimeout(u), r.removeEventListener("transitionend", m), r.removeEventListener("transitioncancel", y), r.removeEventListener("transitionrun",
|
|
31229
|
+
clearTimeout(c), clearTimeout(u), r.removeEventListener("transitionend", m), r.removeEventListener("transitioncancel", y), r.removeEventListener("transitionrun", w), n.delete(r), l();
|
|
31230
31230
|
}, p = () => {
|
|
31231
31231
|
clearTimeout(u), clearTimeout(c), c = setTimeout(f, Ur(r) + im);
|
|
31232
|
-
}, h = (
|
|
31233
|
-
h(
|
|
31234
|
-
}, v = () => (typeof r.getAnimations == "function" ? r.getAnimations() : []).some((
|
|
31235
|
-
h(
|
|
31236
|
-
},
|
|
31237
|
-
h(
|
|
31232
|
+
}, h = (C) => C.target === r, m = (C) => {
|
|
31233
|
+
h(C) && f();
|
|
31234
|
+
}, v = () => (typeof r.getAnimations == "function" ? r.getAnimations() : []).some((C) => C.playState === "running" && "transitionProperty" in C), y = (C) => {
|
|
31235
|
+
h(C) && (clearTimeout(u), u = setTimeout(() => v() ? p() : f(), OV));
|
|
31236
|
+
}, w = (C) => {
|
|
31237
|
+
h(C) && p();
|
|
31238
31238
|
};
|
|
31239
|
-
r.addEventListener("transitionend", m), r.addEventListener("transitioncancel", y), r.addEventListener("transitionrun",
|
|
31239
|
+
r.addEventListener("transitionend", m), r.addEventListener("transitioncancel", y), r.addEventListener("transitionrun", w), n.set(r, { restart: p }), c = setTimeout(f, s + im);
|
|
31240
31240
|
}
|
|
31241
31241
|
return { active: /* @__PURE__ */ Ra(t), begin: o, track: a };
|
|
31242
31242
|
}
|
|
@@ -31354,36 +31354,36 @@ const GV = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
31354
31354
|
const i = Me("root");
|
|
31355
31355
|
We(Nb, i);
|
|
31356
31356
|
const s = so(i), l = /* @__PURE__ */ aa(/* @__PURE__ */ new Set());
|
|
31357
|
-
We(Cb, (
|
|
31358
|
-
l.delete(
|
|
31357
|
+
We(Cb, (x) => (l.add(x), () => {
|
|
31358
|
+
l.delete(x);
|
|
31359
31359
|
}));
|
|
31360
|
-
const c = k(() => n.fullPage || [...l].some((
|
|
31360
|
+
const c = k(() => n.fullPage || [...l].some((x) => x.value === "web") ? "web" : "window"), u = k(() => kb(s.value, c.value));
|
|
31361
31361
|
We(bo, u);
|
|
31362
31362
|
const f = Me("background"), p = Me("portal"), h = n.modalScope, m = h === "app" ? new _T(i, f) : null;
|
|
31363
31363
|
We($y, m);
|
|
31364
31364
|
const v = TL(i, h === "app" && n.dialogBounds === "viewport", () => o("activate"));
|
|
31365
31365
|
v && m?.region(v.element), We(Mb, v);
|
|
31366
|
-
const y = { position: "relative", isolation: "isolate", overflow: "hidden" },
|
|
31366
|
+
const y = { position: "relative", isolation: "isolate", overflow: "hidden" }, w = k(() => ({
|
|
31367
31367
|
...h === "app" ? y : {},
|
|
31368
31368
|
...n.accent ? KV(n.accent, { dark: n.colorScheme === "dark" }) : {}
|
|
31369
|
-
})),
|
|
31369
|
+
})), C = sd();
|
|
31370
31370
|
Ut(() => {
|
|
31371
|
-
const
|
|
31372
|
-
if (!
|
|
31373
|
-
const { height: A, offsetTop: P, keyboardInset: O, keyboard: $ } =
|
|
31374
|
-
|
|
31371
|
+
const x = i.value;
|
|
31372
|
+
if (!x) return;
|
|
31373
|
+
const { height: A, offsetTop: P, keyboardInset: O, keyboard: $ } = C.value;
|
|
31374
|
+
x.style.setProperty("--ui-vvh", `${A}px`), x.style.setProperty("--ui-vv-top", `${P}px`), x.style.setProperty("--ui-kb-inset", `${O}px`), $ ? x.setAttribute("data-ui-keyboard", "open") : x.removeAttribute("data-ui-keyboard");
|
|
31375
31375
|
}, { flush: "post" }), fO(i);
|
|
31376
|
-
const
|
|
31376
|
+
const b = n.fullPage;
|
|
31377
31377
|
let _;
|
|
31378
31378
|
return Be(() => {
|
|
31379
|
-
|
|
31379
|
+
b && (_ = ZV(), document.documentElement.setAttribute("data-ui-page-shell", ""));
|
|
31380
31380
|
}), Re(() => {
|
|
31381
|
-
|
|
31382
|
-
}), te(() => n.fullPage, (
|
|
31383
|
-
if (
|
|
31384
|
-
}), te(() => n.modalScope, (
|
|
31385
|
-
if (
|
|
31386
|
-
}), (
|
|
31381
|
+
b && (_?.(), document.documentElement.removeAttribute("data-ui-page-shell"));
|
|
31382
|
+
}), te(() => n.fullPage, (x) => {
|
|
31383
|
+
if (x !== b) throw new Error("AppRoot full-page is fixed for the mounted root; remount to change it");
|
|
31384
|
+
}), te(() => n.modalScope, (x) => {
|
|
31385
|
+
if (x !== h) throw new Error("AppRoot modal-scope is fixed for the mounted root; remount to change it");
|
|
31386
|
+
}), (x, A) => (g(), I("div", {
|
|
31387
31387
|
ref_key: "root",
|
|
31388
31388
|
ref: i,
|
|
31389
31389
|
"data-ui-app": "",
|
|
@@ -31392,8 +31392,8 @@ const GV = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
31392
31392
|
"data-ui-modal-scope": d(h) === "app" ? "app" : void 0,
|
|
31393
31393
|
"data-ui-accent": e.accent ? "" : void 0,
|
|
31394
31394
|
"data-ui-color-scheme": e.colorScheme === "dark" ? "dark" : void 0,
|
|
31395
|
-
"data-ui-full-page": d(
|
|
31396
|
-
style: je(
|
|
31395
|
+
"data-ui-full-page": d(b) ? "" : void 0,
|
|
31396
|
+
style: je(w.value),
|
|
31397
31397
|
tabindex: d(h) === "app" ? -1 : void 0
|
|
31398
31398
|
}, [
|
|
31399
31399
|
K(d(Py), {
|
|
@@ -31408,14 +31408,14 @@ const GV = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
31408
31408
|
"data-ui-background": "",
|
|
31409
31409
|
style: { height: "100%", overflow: "auto", "overscroll-behavior": "contain" }
|
|
31410
31410
|
}, [
|
|
31411
|
-
z(
|
|
31411
|
+
z(x.$slots, "default")
|
|
31412
31412
|
], 512),
|
|
31413
31413
|
oe("div", {
|
|
31414
31414
|
ref_key: "portal",
|
|
31415
31415
|
ref: p,
|
|
31416
31416
|
"data-ui-portals": ""
|
|
31417
31417
|
}, null, 512)
|
|
31418
|
-
], 64)) : z(
|
|
31418
|
+
], 64)) : z(x.$slots, "default", {}, void 0, void 0, 1)
|
|
31419
31419
|
]),
|
|
31420
31420
|
_: 3
|
|
31421
31421
|
}, 8, ["teleport-to"])
|
|
@@ -31495,69 +31495,75 @@ const e2 = ["data-state", "data-count", "data-hidden"], t2 = ["data-state"], n2
|
|
|
31495
31495
|
setup(e, { expose: t }) {
|
|
31496
31496
|
const n = e, o = ss(e, "open"), a = zt(), r = Pn(), i = /* @__PURE__ */ N(null), s = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(0);
|
|
31497
31497
|
t({ actions: i, count: l });
|
|
31498
|
-
function c(
|
|
31499
|
-
for (let
|
|
31500
|
-
if (
|
|
31501
|
-
for (let
|
|
31502
|
-
if (
|
|
31498
|
+
function c(b, _) {
|
|
31499
|
+
for (let x = b.parentElement; x && x !== _; x = x.parentElement)
|
|
31500
|
+
if (x.matches(Au)) return !1;
|
|
31501
|
+
for (let x = b; x && x !== _; x = x.parentElement)
|
|
31502
|
+
if (x.hasAttribute("hidden") || x instanceof HTMLElement && x.style.display === "none") return !1;
|
|
31503
31503
|
return !0;
|
|
31504
31504
|
}
|
|
31505
|
-
function u(
|
|
31506
|
-
return [...
|
|
31505
|
+
function u(b) {
|
|
31506
|
+
return [...b.querySelectorAll(Au)].filter((_) => c(_, b));
|
|
31507
31507
|
}
|
|
31508
|
-
function f() {
|
|
31509
|
-
|
|
31510
|
-
|
|
31508
|
+
function f(b) {
|
|
31509
|
+
if (!b.textContent?.trim())
|
|
31510
|
+
return (b.getAttribute("aria-label") || b.getAttribute("title"))?.trim() || void 0;
|
|
31511
|
+
}
|
|
31512
|
+
function p() {
|
|
31513
|
+
const b = i.value;
|
|
31514
|
+
if (!b) {
|
|
31511
31515
|
l.value = 0;
|
|
31512
31516
|
return;
|
|
31513
31517
|
}
|
|
31514
|
-
const
|
|
31515
|
-
|
|
31516
|
-
const
|
|
31517
|
-
|
|
31518
|
-
|
|
31518
|
+
const _ = u(b);
|
|
31519
|
+
_.forEach((x, A) => {
|
|
31520
|
+
const P = String(_.length - 1 - A);
|
|
31521
|
+
x.style.getPropertyValue("--ui-fab-i") !== P && x.style.setProperty("--ui-fab-i", P);
|
|
31522
|
+
const O = f(x);
|
|
31523
|
+
O === void 0 ? x.hasAttribute("data-ui-fab-label") && x.removeAttribute("data-ui-fab-label") : x.getAttribute("data-ui-fab-label") !== O && x.setAttribute("data-ui-fab-label", O);
|
|
31524
|
+
}), l.value = _.length;
|
|
31519
31525
|
}
|
|
31520
|
-
let
|
|
31521
|
-
te(i, (
|
|
31522
|
-
|
|
31523
|
-
|
|
31524
|
-
}),
|
|
31525
|
-
}, { immediate: !0, flush: "post" }), Re(() =>
|
|
31526
|
-
const
|
|
31527
|
-
te(
|
|
31528
|
-
|
|
31526
|
+
let h;
|
|
31527
|
+
te(i, (b) => {
|
|
31528
|
+
h?.disconnect(), h = void 0, !(!b || typeof MutationObserver > "u") && (p(), h = new MutationObserver((_) => {
|
|
31529
|
+
p(), o.value && _.some((x) => x.attributeName === "aria-expanded" && x.oldValue === "true" && x.target.getAttribute("aria-expanded") !== "true") && v(!1);
|
|
31530
|
+
}), h.observe(b, { childList: !0, subtree: !0, characterData: !0, attributes: !0, attributeOldValue: !0, attributeFilter: ["hidden", "style", "aria-expanded", "aria-label", "title"] }));
|
|
31531
|
+
}, { immediate: !0, flush: "post" }), Re(() => h?.disconnect());
|
|
31532
|
+
const m = k(() => l.value > 1);
|
|
31533
|
+
te(m, (b) => {
|
|
31534
|
+
b || (o.value = !1);
|
|
31529
31535
|
});
|
|
31530
|
-
function
|
|
31531
|
-
if (!o.value || (o.value = !1, !
|
|
31532
|
-
const
|
|
31533
|
-
(!
|
|
31536
|
+
function v(b = !0) {
|
|
31537
|
+
if (!o.value || (o.value = !1, !b)) return;
|
|
31538
|
+
const _ = document.activeElement;
|
|
31539
|
+
(!_ || _ === document.body || i.value?.contains(_)) && Ne(() => s.value?.focus({ preventScroll: !0 }));
|
|
31534
31540
|
}
|
|
31535
|
-
te(o, (
|
|
31536
|
-
|
|
31541
|
+
te(o, (b) => {
|
|
31542
|
+
b && Ne(() => {
|
|
31537
31543
|
(i.value ? u(i.value)[0] : void 0)?.focus({ preventScroll: !0 });
|
|
31538
31544
|
});
|
|
31539
|
-
}), wl(() => o.value, () =>
|
|
31540
|
-
function
|
|
31541
|
-
|
|
31545
|
+
}), wl(() => o.value, () => v());
|
|
31546
|
+
function y(b) {
|
|
31547
|
+
b.key !== "Escape" || !o.value || b.isComposing || (b.preventDefault(), b.stopPropagation(), v());
|
|
31542
31548
|
}
|
|
31543
|
-
function
|
|
31544
|
-
if (!o.value || !(
|
|
31545
|
-
const
|
|
31546
|
-
!
|
|
31549
|
+
function w(b) {
|
|
31550
|
+
if (!o.value || !(b.target instanceof Element)) return;
|
|
31551
|
+
const _ = b.target.closest(Au);
|
|
31552
|
+
!_ || !i.value?.contains(_) || _.getAttribute("aria-haspopup") && _.getAttribute("aria-haspopup") !== "false" || v(!1);
|
|
31547
31553
|
}
|
|
31548
|
-
const
|
|
31549
|
-
return (
|
|
31554
|
+
const C = k(() => o.value ? "open" : "closed");
|
|
31555
|
+
return (b, _) => (g(), I("div", {
|
|
31550
31556
|
"data-ui-fab-root": "",
|
|
31551
|
-
"data-state":
|
|
31552
|
-
"data-count": l.value === 0 ? "none" :
|
|
31557
|
+
"data-state": C.value,
|
|
31558
|
+
"data-count": l.value === 0 ? "none" : m.value ? "many" : "one",
|
|
31553
31559
|
"data-hidden": n.hidden && !o.value ? "" : void 0,
|
|
31554
31560
|
"data-syno-pkg-land-ui": ""
|
|
31555
31561
|
}, [
|
|
31556
31562
|
oe("div", {
|
|
31557
31563
|
"data-ui-fab-scrim": "",
|
|
31558
|
-
"data-state":
|
|
31564
|
+
"data-state": C.value,
|
|
31559
31565
|
"aria-hidden": "true",
|
|
31560
|
-
onClick:
|
|
31566
|
+
onClick: _[0] || (_[0] = (x) => v())
|
|
31561
31567
|
}, null, 8, t2),
|
|
31562
31568
|
K(d(ri), {
|
|
31563
31569
|
trapped: o.value,
|
|
@@ -31567,20 +31573,20 @@ const e2 = ["data-state", "data-count", "data-hidden"], t2 = ["data-state"], n2
|
|
|
31567
31573
|
default: R(() => [
|
|
31568
31574
|
oe("div", {
|
|
31569
31575
|
"data-ui-fab-stack": "",
|
|
31570
|
-
onKeydown:
|
|
31576
|
+
onKeydown: y
|
|
31571
31577
|
}, [
|
|
31572
31578
|
oe("div", {
|
|
31573
31579
|
id: d(r),
|
|
31574
31580
|
ref_key: "actions",
|
|
31575
31581
|
ref: i,
|
|
31576
31582
|
"data-ui-fab-actions": "",
|
|
31577
|
-
"data-state":
|
|
31578
|
-
role:
|
|
31579
|
-
"aria-label":
|
|
31580
|
-
inert:
|
|
31581
|
-
onClick:
|
|
31583
|
+
"data-state": m.value ? C.value : void 0,
|
|
31584
|
+
role: m.value ? "group" : void 0,
|
|
31585
|
+
"aria-label": m.value ? d(a)("Page actions") : void 0,
|
|
31586
|
+
inert: m.value && !o.value || void 0,
|
|
31587
|
+
onClick: w
|
|
31582
31588
|
}, null, 8, n2),
|
|
31583
|
-
|
|
31589
|
+
m.value ? (g(), I("button", {
|
|
31584
31590
|
key: 0,
|
|
31585
31591
|
ref_key: "toggle",
|
|
31586
31592
|
ref: s,
|
|
@@ -31590,7 +31596,7 @@ const e2 = ["data-state", "data-count", "data-hidden"], t2 = ["data-state"], n2
|
|
|
31590
31596
|
title: d(a)("Page actions"),
|
|
31591
31597
|
"aria-expanded": o.value,
|
|
31592
31598
|
"aria-controls": d(r),
|
|
31593
|
-
onClick:
|
|
31599
|
+
onClick: _[1] || (_[1] = (x) => o.value = !o.value)
|
|
31594
31600
|
}, [
|
|
31595
31601
|
K(d(QO), {
|
|
31596
31602
|
size: 24,
|
|
@@ -31608,27 +31614,27 @@ function s2(e) {
|
|
|
31608
31614
|
const t = /* @__PURE__ */ N(!1), n = /* @__PURE__ */ new WeakMap();
|
|
31609
31615
|
let o = 0, a = 0, r = 0, i;
|
|
31610
31616
|
const s = () => typeof performance > "u" ? Date.now() : performance.now();
|
|
31611
|
-
function l(
|
|
31612
|
-
o = 0, a = 0, t.value !==
|
|
31617
|
+
function l(b) {
|
|
31618
|
+
o = 0, a = 0, t.value !== b && (t.value = b, r = s() + e.settleMs() + 80);
|
|
31613
31619
|
}
|
|
31614
|
-
function c(
|
|
31615
|
-
return e.blocked() || Lr(
|
|
31620
|
+
function c(b) {
|
|
31621
|
+
return e.blocked() || Lr(b.activeElement) || !!b.querySelector(i2);
|
|
31616
31622
|
}
|
|
31617
|
-
function u(
|
|
31618
|
-
return
|
|
31623
|
+
function u(b) {
|
|
31624
|
+
return b instanceof Document ? b.scrollingElement : !(b instanceof Element) || b.matches('input, textarea, select, [contenteditable]:not([contenteditable="false"])') || b.closest("[data-ui-mobile-navigation], [data-ui-tab-bar], [data-ui-fab-root]") ? null : e.column.value?.contains(b) || b === b.ownerDocument.scrollingElement ? b : null;
|
|
31619
31625
|
}
|
|
31620
|
-
function f(
|
|
31621
|
-
return
|
|
31626
|
+
function f(b) {
|
|
31627
|
+
return b.scrollTop >= b.scrollHeight - b.clientHeight - 2;
|
|
31622
31628
|
}
|
|
31623
|
-
function p(
|
|
31629
|
+
function p(b) {
|
|
31624
31630
|
if (!e.enabled()) return;
|
|
31625
|
-
const _ = u(
|
|
31631
|
+
const _ = u(b.target);
|
|
31626
31632
|
if (!_) return;
|
|
31627
|
-
const
|
|
31628
|
-
n.set(_,
|
|
31629
|
-
const P =
|
|
31633
|
+
const x = _.scrollTop, A = n.get(_) ?? x;
|
|
31634
|
+
n.set(_, x);
|
|
31635
|
+
const P = x - A;
|
|
31630
31636
|
if (P === 0 || s() < r) return;
|
|
31631
|
-
if (
|
|
31637
|
+
if (x <= um) return l(!1);
|
|
31632
31638
|
if (P < 0) {
|
|
31633
31639
|
o = 0, a -= P, a >= um && l(!1);
|
|
31634
31640
|
return;
|
|
@@ -31641,29 +31647,29 @@ function s2(e) {
|
|
|
31641
31647
|
const $ = e.bar();
|
|
31642
31648
|
l($ && _.contains($) ? "bottom" : "all");
|
|
31643
31649
|
}
|
|
31644
|
-
function h(
|
|
31645
|
-
const _ = u(
|
|
31650
|
+
function h(b) {
|
|
31651
|
+
const _ = u(b.target);
|
|
31646
31652
|
_ && t.value && f(_) && l(!1);
|
|
31647
31653
|
}
|
|
31648
|
-
function m(
|
|
31649
|
-
!t.value || !(
|
|
31654
|
+
function m(b) {
|
|
31655
|
+
!t.value || !(b.target instanceof Element) || (Lr(b.target) || b.target.closest("[data-ui-mobile-navigation], [data-ui-tab-bar], [data-ui-fab-root]")) && l(!1);
|
|
31650
31656
|
}
|
|
31651
31657
|
let v;
|
|
31652
31658
|
Be(() => {
|
|
31653
|
-
v = e.column.value?.ownerDocument ?? document, v.addEventListener("scroll", p, { capture: !0, passive: !0 }), v.addEventListener("scrollend", h, { capture: !0, passive: !0 }), v.addEventListener("focusin", m, !0),
|
|
31659
|
+
v = e.column.value?.ownerDocument ?? document, v.addEventListener("scroll", p, { capture: !0, passive: !0 }), v.addEventListener("scrollend", h, { capture: !0, passive: !0 }), v.addEventListener("focusin", m, !0), w = v.defaultView?.innerWidth ?? 0, v.defaultView?.addEventListener("resize", C);
|
|
31654
31660
|
});
|
|
31655
31661
|
function y() {
|
|
31656
31662
|
l(!1);
|
|
31657
31663
|
}
|
|
31658
|
-
let
|
|
31659
|
-
function
|
|
31660
|
-
const
|
|
31661
|
-
|
|
31664
|
+
let w = 0;
|
|
31665
|
+
function C() {
|
|
31666
|
+
const b = v?.defaultView?.innerWidth ?? 0;
|
|
31667
|
+
b !== w && (w = b, y());
|
|
31662
31668
|
}
|
|
31663
31669
|
return Re(() => {
|
|
31664
|
-
clearTimeout(i), v?.removeEventListener("scroll", p, { capture: !0 }), v?.removeEventListener("scrollend", h, { capture: !0 }), v?.removeEventListener("focusin", m, !0), v?.defaultView?.removeEventListener("resize",
|
|
31665
|
-
}), te([e.enabled, ...e.reset], y), te(e.blocked, (
|
|
31666
|
-
|
|
31670
|
+
clearTimeout(i), v?.removeEventListener("scroll", p, { capture: !0 }), v?.removeEventListener("scrollend", h, { capture: !0 }), v?.removeEventListener("focusin", m, !0), v?.defaultView?.removeEventListener("resize", C);
|
|
31671
|
+
}), te([e.enabled, ...e.reset], y), te(e.blocked, (b) => {
|
|
31672
|
+
b && (o = 0);
|
|
31667
31673
|
}), t;
|
|
31668
31674
|
}
|
|
31669
31675
|
const xw = /* @__PURE__ */ Symbol("syno-pkg-land-ui-keep-bars"), Sc = (e) => Math.round(Math.min(hc, Math.max(pc, e)));
|
|
@@ -31741,11 +31747,11 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31741
31747
|
We(Dh, v);
|
|
31742
31748
|
const y = so(f, { after: Ie(Dh, void 0), onMeasured: () => {
|
|
31743
31749
|
v.value = !0;
|
|
31744
|
-
} }),
|
|
31745
|
-
We(bo,
|
|
31746
|
-
const
|
|
31747
|
-
|
|
31748
|
-
const
|
|
31750
|
+
} }), w = k(() => n.responsive === !1 ? "window" : kb(y.value, n.wideLayout));
|
|
31751
|
+
We(bo, w);
|
|
31752
|
+
const C = Ie(Cb, null);
|
|
31753
|
+
C && Re(C(k(() => n.responsive === !1 ? "window" : n.wideLayout)));
|
|
31754
|
+
const b = k(() => w.value === "mobile"), _ = /* @__PURE__ */ N(!1);
|
|
31749
31755
|
if (typeof window < "u" && typeof window.matchMedia == "function") {
|
|
31750
31756
|
const fe = window.matchMedia(gL);
|
|
31751
31757
|
_.value = fe.matches;
|
|
@@ -31754,8 +31760,8 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31754
31760
|
};
|
|
31755
31761
|
fe.addEventListener?.("change", et), Re(() => fe.removeEventListener?.("change", et));
|
|
31756
31762
|
}
|
|
31757
|
-
const
|
|
31758
|
-
We(Ob,
|
|
31763
|
+
const x = k(() => _.value && n.responsive !== !1 && !b.value);
|
|
31764
|
+
We(Ob, x);
|
|
31759
31765
|
const A = /* @__PURE__ */ N(!1), P = Nd(() => A.value, {
|
|
31760
31766
|
contains: (fe) => !!f.value?.contains(fe),
|
|
31761
31767
|
fallback: () => m.value
|
|
@@ -31765,7 +31771,7 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31765
31771
|
$.value = !0;
|
|
31766
31772
|
}));
|
|
31767
31773
|
});
|
|
31768
|
-
const S = k(() =>
|
|
31774
|
+
const S = k(() => w.value === "web"), D = k(() => n.navigation === "top" && !b.value);
|
|
31769
31775
|
We(Ab, D);
|
|
31770
31776
|
const M = u2(n.sidebarStorageKey), q = k(() => dL(y.value)), U = /* @__PURE__ */ N(!1);
|
|
31771
31777
|
te(q, () => {
|
|
@@ -31777,9 +31783,9 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31777
31783
|
We(Pb, () => {
|
|
31778
31784
|
W.value++;
|
|
31779
31785
|
}), pz(Y, () => W.value);
|
|
31780
|
-
const re = k(() => S.value && !D.value && !B.value && n.sidebarWidth === void 0), me = k(() => n.sidebarWidth !== void 0 ? n.sidebarWidth : S.value ? `${M.width.value}px` : "var(--ui-sidebar-width)"), ie = k(() => B.value ? `var(--ui-web-sidebar-collapsed-width, ${wu}px)` : me.value), pe = k(() => !!c.sidebar && !
|
|
31781
|
-
We(hL, { state: a, overlay: nt, presentation:
|
|
31782
|
-
const at = k(() => $e.value &&
|
|
31786
|
+
const re = k(() => S.value && !D.value && !B.value && n.sidebarWidth === void 0), me = k(() => n.sidebarWidth !== void 0 ? n.sidebarWidth : S.value ? `${M.width.value}px` : "var(--ui-sidebar-width)"), ie = k(() => B.value ? `var(--ui-web-sidebar-collapsed-width, ${wu}px)` : me.value), pe = k(() => !!c.sidebar && !b.value && !D.value), _e = k(() => pe.value ? B.value ? wu : Number.parseFloat(me.value) || 0 : 0), $e = k(() => !!c.aside), Fe = k(() => Math.round(Math.min(zi, Math.max(Fi, r.value)))), nt = k(() => a.value === "open" && !b.value && (!S.value || y.value - _e.value - Fe.value < pL)), ot = k(() => $e.value && !b.value && a.value === "expanded"), He = k(() => b.value ? "0px" : ot.value ? pe.value ? `calc(${y.value}px - var(--ui-app-sidebar-width))` : `${y.value}px` : a.value === "open" && !nt.value ? `${Fe.value}px` : `${wu}px`);
|
|
31787
|
+
We(hL, { state: a, overlay: nt, presentation: w, regionWidth: He });
|
|
31788
|
+
const at = k(() => $e.value && b.value && a.value !== "collapsed"), Ge = k(() => $e.value && S.value && a.value === "open" && !nt.value), rt = k(() => b.value ? "minmax(0, 1fr)" : [pe.value && "auto", "minmax(0, 1fr)", $e.value && "auto"].filter(Boolean).join(" ")), yt = /* @__PURE__ */ N(!1);
|
|
31783
31789
|
We(mL, yt);
|
|
31784
31790
|
let E;
|
|
31785
31791
|
function T() {
|
|
@@ -31807,13 +31813,13 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31807
31813
|
icon: document.head.querySelector('link[rel~="icon"]')?.href || void 0
|
|
31808
31814
|
};
|
|
31809
31815
|
});
|
|
31810
|
-
const se = k(() => ({ name: n.brandName ?? J.value.name, icon: n.brandIcon ?? J.value.icon })), de = k(() => !!(c.brand || se.value.name || se.value.icon)), ce = k(() => de.value && !
|
|
31816
|
+
const se = k(() => ({ name: n.brandName ?? J.value.name, icon: n.brandIcon ?? J.value.icon })), de = k(() => !!(c.brand || se.value.name || se.value.icon)), ce = k(() => de.value && !b.value && n.wideLayout === "web"), ae = k(() => ce.value || S.value && !D.value), Se = k(() => !!c["sidebar-footer"] && (D.value || S.value)), ve = Me("pageActions"), ye = /* @__PURE__ */ N(0), ke = /* @__PURE__ */ N(!0), ze = yy("(pointer: coarse)"), ee = k(() => b.value && ze.value && n.responsive !== !1), G = /* @__PURE__ */ N(0), he = /* @__PURE__ */ N(0), Ce = Me("fab"), qe = k(() => Ce.value?.actions ?? null), Ue = /* @__PURE__ */ N(!1), Qe = k(() => ee.value && G.value === 0);
|
|
31811
31817
|
function Bt(fe) {
|
|
31812
31818
|
const et = fe ?? n.phoneActions;
|
|
31813
|
-
return et === "inline" || !
|
|
31819
|
+
return et === "inline" || !b.value ? "inline" : Qe.value && he.value === 0 && (et === "fab" || !ke.value) ? "fab" : ke.value ? "bar" : "inline";
|
|
31814
31820
|
}
|
|
31815
|
-
const it = hz(p, (fe) => n.title === void 0 ?
|
|
31816
|
-
phone: () =>
|
|
31821
|
+
const it = hz(p, (fe) => n.title === void 0 ? b.value || x.value : x.value && n.title === fe, {
|
|
31822
|
+
phone: () => b.value,
|
|
31817
31823
|
actions: ve,
|
|
31818
31824
|
actionUsers: ye,
|
|
31819
31825
|
fab: qe,
|
|
@@ -31824,23 +31830,23 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31824
31830
|
We(Bd, it);
|
|
31825
31831
|
const wt = k(() => it.entries.value.at(-1)?.title()), sn = k(() => {
|
|
31826
31832
|
const fe = it.entries.value.at(-1);
|
|
31827
|
-
return
|
|
31833
|
+
return b.value && fe?.back ? fe : void 0;
|
|
31828
31834
|
}), It = k(() => sn.value ? sn.value.title() : n.title ?? wt.value), qt = k(() => n.back || !!sn.value);
|
|
31829
31835
|
function Ja() {
|
|
31830
31836
|
sn.value?.back ? sn.value.back() : o("back");
|
|
31831
31837
|
}
|
|
31832
|
-
const Zn = k(() =>
|
|
31838
|
+
const Zn = k(() => x.value ? It.value : void 0), Ow = k(() => {
|
|
31833
31839
|
const fe = it.entries.value.at(-1);
|
|
31834
31840
|
return n.title === void 0 || !!fe && it.shows(fe);
|
|
31835
31841
|
}), Wd = /* @__PURE__ */ N(!1);
|
|
31836
|
-
te([
|
|
31837
|
-
Wd.value =
|
|
31842
|
+
te([x, () => n.height, Y], () => {
|
|
31843
|
+
Wd.value = x.value && (n.height === "fill" || !!Y.value && getComputedStyle(Y.value).overflowY !== "visible");
|
|
31838
31844
|
}, { flush: "post" });
|
|
31839
|
-
const Tw = k(() =>
|
|
31845
|
+
const Tw = k(() => b.value && n.responsive !== !1), fn = k(() => {
|
|
31840
31846
|
if (ye.value > 0) return;
|
|
31841
31847
|
const fe = n.headerActions[0];
|
|
31842
31848
|
return fe && (fe.type === void 0 || fe.type === "item") && !fe.children?.length ? fe : void 0;
|
|
31843
|
-
}), ci = k(() => n.headerActions.slice(fn.value ? 1 : 0)), di = k(() => !!c.sidebar && !qt.value && !Uw.value), El = k(() => ee.value && !qt.value && !di.value && It.value !== void 0 && !c.brand ? se.value.icon : void 0), $w = k(() =>
|
|
31849
|
+
}), ci = k(() => n.headerActions.slice(fn.value ? 1 : 0)), di = k(() => !!c.sidebar && !qt.value && !Uw.value), El = k(() => ee.value && !qt.value && !di.value && It.value !== void 0 && !c.brand ? se.value.icon : void 0), $w = k(() => b.value && (!!c.sidebar || qt.value || It.value !== void 0 || n.headerActions.length > 0) && (di.value || qt.value || It.value !== void 0 || de.value || n.headerActions.length > 0)), fi = Me("phoneTitle"), Kd = Me("phoneTitleText"), Hd = so(fi), Zd = /* @__PURE__ */ N(!0);
|
|
31844
31850
|
function Gd() {
|
|
31845
31851
|
const fe = fi.value, et = Kd.value;
|
|
31846
31852
|
if (!fe?.clientWidth || !et) return;
|
|
@@ -31923,8 +31929,8 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31923
31929
|
function Vw(fe) {
|
|
31924
31930
|
fe.preventDefault(), h.value?.focus({ preventScroll: !0 });
|
|
31925
31931
|
}
|
|
31926
|
-
wl(() =>
|
|
31927
|
-
const Ol = _l(), jw = k(() => Ol && !Ol.draggable.value ? Ol.element.value : null), Tl = /* @__PURE__ */ N(0), Uw = k(() =>
|
|
31932
|
+
wl(() => b.value && A.value, va);
|
|
31933
|
+
const Ol = _l(), jw = k(() => Ol && !Ol.draggable.value ? Ol.element.value : null), Tl = /* @__PURE__ */ N(0), Uw = k(() => b.value && !!c.tabbar && Tl.value > 0);
|
|
31928
31934
|
We(vL, {
|
|
31929
31935
|
available: k(() => !!c.sidebar),
|
|
31930
31936
|
open: k(() => A.value),
|
|
@@ -31937,7 +31943,7 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31937
31943
|
fe || (fe = !0, Tl.value--);
|
|
31938
31944
|
};
|
|
31939
31945
|
}
|
|
31940
|
-
}), te(
|
|
31946
|
+
}), te(b, (fe) => {
|
|
31941
31947
|
fe || va();
|
|
31942
31948
|
});
|
|
31943
31949
|
const $l = /* @__PURE__ */ N(0);
|
|
@@ -31966,7 +31972,7 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31966
31972
|
};
|
|
31967
31973
|
}, { flush: "sync" });
|
|
31968
31974
|
function Kw(fe) {
|
|
31969
|
-
!
|
|
31975
|
+
!b.value || !A.value || fe.target instanceof Element && fe.target.closest("[data-nav-item],a[href]") && va();
|
|
31970
31976
|
}
|
|
31971
31977
|
return (fe, et) => (g(), I("section", {
|
|
31972
31978
|
ref_key: "root",
|
|
@@ -31979,12 +31985,12 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31979
31985
|
minHeight: n.minHeight,
|
|
31980
31986
|
...ef.value
|
|
31981
31987
|
}),
|
|
31982
|
-
"data-ui-layout-mode":
|
|
31988
|
+
"data-ui-layout-mode": w.value,
|
|
31983
31989
|
"data-ui-navigation": D.value ? "top" : void 0,
|
|
31984
31990
|
"data-ui-layout-height": n.height,
|
|
31985
|
-
"data-ui-layout-short":
|
|
31991
|
+
"data-ui-layout-short": x.value ? Wd.value ? "scroll" : "" : void 0,
|
|
31986
31992
|
"data-ui-layout-scroll": Tw.value ? "page" : void 0,
|
|
31987
|
-
"data-ui-mobile-open":
|
|
31993
|
+
"data-ui-mobile-open": b.value && A.value ? "true" : void 0,
|
|
31988
31994
|
"data-ui-motion-ready": $.value ? "true" : void 0,
|
|
31989
31995
|
"data-ui-sidebar-collapsed": B.value ? "true" : void 0,
|
|
31990
31996
|
"data-ui-sidebar-resizing": pi.value ? "true" : void 0,
|
|
@@ -31997,7 +32003,7 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
31997
32003
|
"data-ui-fab": ee.value && (Ce.value?.count ?? 0) > 0 ? "" : void 0,
|
|
31998
32004
|
"data-syno-pkg-land-ui": ""
|
|
31999
32005
|
}, [
|
|
32000
|
-
|
|
32006
|
+
b.value && fe.$slots.sidebar ? (g(), F(d(sb), {
|
|
32001
32007
|
key: 0,
|
|
32002
32008
|
open: A.value,
|
|
32003
32009
|
"swipe-direction": "left",
|
|
@@ -32136,7 +32142,7 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32136
32142
|
ref: p,
|
|
32137
32143
|
"data-ui-layout-main": "",
|
|
32138
32144
|
class: "flex min-h-0 min-w-0 flex-col bg-[var(--ui-surface)]",
|
|
32139
|
-
inert:
|
|
32145
|
+
inert: b.value && A.value || ot.value || at.value || Ue.value || void 0,
|
|
32140
32146
|
"aria-hidden": ot.value || at.value ? "true" : void 0
|
|
32141
32147
|
}, [
|
|
32142
32148
|
$w.value ? (g(), I("div", {
|
|
@@ -32266,7 +32272,7 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32266
32272
|
z(fe.$slots, "default")
|
|
32267
32273
|
], 2),
|
|
32268
32274
|
z(fe.$slots, "footer"),
|
|
32269
|
-
|
|
32275
|
+
b.value ? z(fe.$slots, "tabbar", {}, void 0, void 0, 2) : j("", !0)
|
|
32270
32276
|
], 8, S2),
|
|
32271
32277
|
ee.value ? (g(), F(a2, {
|
|
32272
32278
|
key: 2,
|
|
@@ -32287,7 +32293,7 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32287
32293
|
state: a.value,
|
|
32288
32294
|
overlay: nt.value,
|
|
32289
32295
|
width: Gn.value ? qo.value : Fe.value,
|
|
32290
|
-
presentation:
|
|
32296
|
+
presentation: w.value
|
|
32291
32297
|
}),
|
|
32292
32298
|
Ge.value ? (g(), I("div", {
|
|
32293
32299
|
key: 0,
|
|
@@ -32563,31 +32569,31 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32563
32569
|
},
|
|
32564
32570
|
emits: ["select"],
|
|
32565
32571
|
setup(e, { emit: t }) {
|
|
32566
|
-
const n = e, o = t, a = zt(), r = Me("root"), i = Me("more"), s = Pn(), l = /* @__PURE__ */ N(1 / 0), c = k(() => n.groups.flatMap((
|
|
32567
|
-
let
|
|
32568
|
-
return n.groups.map((
|
|
32569
|
-
const _ =
|
|
32570
|
-
return { group:
|
|
32571
|
-
}).filter((
|
|
32572
|
+
const n = e, o = t, a = zt(), r = Me("root"), i = Me("more"), s = Pn(), l = /* @__PURE__ */ N(1 / 0), c = k(() => n.groups.flatMap((C) => C.items)), u = k(() => c.value.slice(l.value)), f = k(() => ({ key: s, label: a("More"), children: u.value })), p = k(() => {
|
|
32573
|
+
let C = 0;
|
|
32574
|
+
return n.groups.map((b) => {
|
|
32575
|
+
const _ = b.items.map((x) => ({ item: x, index: C++ }));
|
|
32576
|
+
return { group: b, rows: _ };
|
|
32577
|
+
}).filter((b) => b.rows.length);
|
|
32572
32578
|
}), h = { position: "absolute", visibility: "hidden", pointerEvents: "none" };
|
|
32573
32579
|
let m;
|
|
32574
|
-
const v = (
|
|
32580
|
+
const v = (C) => Number.parseFloat(C) || 0;
|
|
32575
32581
|
function y() {
|
|
32576
|
-
const
|
|
32577
|
-
if (!
|
|
32578
|
-
const
|
|
32582
|
+
const C = r.value;
|
|
32583
|
+
if (!C || !i.value) return;
|
|
32584
|
+
const b = getComputedStyle(C), _ = C.clientWidth - v(b.paddingLeft) - v(b.paddingRight);
|
|
32579
32585
|
if (_ <= 0) return;
|
|
32580
|
-
const
|
|
32581
|
-
if (
|
|
32586
|
+
const x = v(b.columnGap), A = [];
|
|
32587
|
+
if (C.querySelectorAll("[data-nav-group]").forEach((D, M) => {
|
|
32582
32588
|
const q = getComputedStyle(D);
|
|
32583
32589
|
D.querySelectorAll("[data-ui-top-nav-item]").forEach((U, B) => {
|
|
32584
|
-
const Y = B === 0 ? v(q.marginLeft) + v(q.marginRight) + v(q.paddingLeft) + v(q.paddingRight) + v(q.borderLeftWidth) + v(q.borderRightWidth) + (M ?
|
|
32590
|
+
const Y = B === 0 ? v(q.marginLeft) + v(q.marginRight) + v(q.paddingLeft) + v(q.paddingRight) + v(q.borderLeftWidth) + v(q.borderRightWidth) + (M ? x : 0) : v(q.columnGap);
|
|
32585
32591
|
A.push(U.getBoundingClientRect().width + Y);
|
|
32586
32592
|
});
|
|
32587
32593
|
}), !A.length || A.every((D) => D === 0)) return;
|
|
32588
32594
|
let P = A.length;
|
|
32589
32595
|
if (A.reduce((D, M) => D + M, 0) > _) {
|
|
32590
|
-
const D = _ - i.value.getBoundingClientRect().width -
|
|
32596
|
+
const D = _ - i.value.getBoundingClientRect().width - x;
|
|
32591
32597
|
let M = 0;
|
|
32592
32598
|
P = 0;
|
|
32593
32599
|
for (const q of A) {
|
|
@@ -32596,17 +32602,17 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32596
32602
|
}
|
|
32597
32603
|
}
|
|
32598
32604
|
if (l.value === P) return;
|
|
32599
|
-
const O = document.activeElement, $ = O instanceof Element && [...
|
|
32605
|
+
const O = document.activeElement, $ = O instanceof Element && [...C.querySelectorAll("[data-ui-top-nav-item]")].some((D, M) => M >= P && D.contains(O)), S = i.value.contains(O);
|
|
32600
32606
|
l.value = P, Ne(() => {
|
|
32601
|
-
$ ? i.value?.querySelector("button")?.focus() : S && !u.value.length &&
|
|
32607
|
+
$ ? i.value?.querySelector("button")?.focus() : S && !u.value.length && C.querySelector("[data-ui-top-nav-item] button")?.focus();
|
|
32602
32608
|
});
|
|
32603
32609
|
}
|
|
32604
|
-
async function
|
|
32605
|
-
await Ne(), m?.disconnect(), r.value && (m?.observe(r.value), r.value.querySelectorAll("[data-ui-top-nav-item], [data-ui-top-nav-more-wrapper]").forEach((
|
|
32610
|
+
async function w() {
|
|
32611
|
+
await Ne(), m?.disconnect(), r.value && (m?.observe(r.value), r.value.querySelectorAll("[data-ui-top-nav-item], [data-ui-top-nav-more-wrapper]").forEach((C) => m?.observe(C)), y());
|
|
32606
32612
|
}
|
|
32607
32613
|
return Be(() => {
|
|
32608
|
-
typeof ResizeObserver < "u" && (m = new ResizeObserver(y)),
|
|
32609
|
-
}), te(() => n.groups,
|
|
32614
|
+
typeof ResizeObserver < "u" && (m = new ResizeObserver(y)), w();
|
|
32615
|
+
}), te(() => n.groups, w, { deep: !0, flush: "post" }), Re(() => m?.disconnect()), (C, b) => (g(), I("nav", {
|
|
32610
32616
|
ref_key: "root",
|
|
32611
32617
|
ref: r,
|
|
32612
32618
|
class: "relative flex h-full min-w-0 items-center gap-[var(--ui-space-1)] overflow-hidden px-1.5",
|
|
@@ -32614,17 +32620,17 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32614
32620
|
"data-ui-navigation": "top",
|
|
32615
32621
|
"data-syno-pkg-land-ui": ""
|
|
32616
32622
|
}, [
|
|
32617
|
-
(g(!0), I(be, null, Ve(p.value, ({ group: _, rows:
|
|
32623
|
+
(g(!0), I(be, null, Ve(p.value, ({ group: _, rows: x }, A) => (g(), I("div", {
|
|
32618
32624
|
key: A,
|
|
32619
32625
|
role: "group",
|
|
32620
32626
|
"aria-label": _.label,
|
|
32621
|
-
"aria-hidden":
|
|
32622
|
-
inert:
|
|
32623
|
-
style: je(
|
|
32627
|
+
"aria-hidden": x[0].index >= l.value || void 0,
|
|
32628
|
+
inert: x[0].index >= l.value,
|
|
32629
|
+
style: je(x[0].index >= l.value ? h : void 0),
|
|
32624
32630
|
"data-nav-group": "",
|
|
32625
32631
|
class: ue(["flex shrink-0 items-center gap-[var(--ui-space-1)]", A > 0 && "ml-1 border-l border-[var(--ui-border-subtle)] pl-2"])
|
|
32626
32632
|
}, [
|
|
32627
|
-
(g(!0), I(be, null, Ve(
|
|
32633
|
+
(g(!0), I(be, null, Ve(x, ({ item: P, index: O }) => (g(), I("div", {
|
|
32628
32634
|
key: P.key,
|
|
32629
32635
|
"data-ui-top-nav-item": "",
|
|
32630
32636
|
class: "inline-flex shrink-0",
|
|
@@ -32637,7 +32643,7 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32637
32643
|
key: String(O >= l.value),
|
|
32638
32644
|
items: [P],
|
|
32639
32645
|
"model-value": n.modelValue,
|
|
32640
|
-
onSelect:
|
|
32646
|
+
onSelect: b[0] || (b[0] = ($) => o("select", $))
|
|
32641
32647
|
}, null, 8, ["items", "model-value"]))
|
|
32642
32648
|
], 12, oj))), 128))
|
|
32643
32649
|
], 14, nj))), 128)),
|
|
@@ -32655,7 +32661,7 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32655
32661
|
items: [f.value],
|
|
32656
32662
|
"model-value": n.modelValue,
|
|
32657
32663
|
overflow: "",
|
|
32658
|
-
onSelect:
|
|
32664
|
+
onSelect: b[1] || (b[1] = (_) => o("select", _))
|
|
32659
32665
|
}, null, 8, ["items", "model-value"]))
|
|
32660
32666
|
], 12, aj)
|
|
32661
32667
|
], 8, tj));
|
|
@@ -32680,54 +32686,54 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32680
32686
|
emits: ["update:modelValue", "update:expandedKeys", "select", "branchToggle"],
|
|
32681
32687
|
setup(e, { emit: t }) {
|
|
32682
32688
|
const o = Kn(e, { ariaLabel: "Application navigation", clearSearchLabel: "Clear search", searchPlaceholder: "Search" }), a = t, r = Ie(Eb, k(() => !1)), i = Ie(Ab, k(() => !1)), s = /* @__PURE__ */ N(""), l = /* @__PURE__ */ N(/* @__PURE__ */ new Set());
|
|
32683
|
-
function c(
|
|
32684
|
-
return
|
|
32689
|
+
function c(x, A) {
|
|
32690
|
+
return x.flatMap((P) => {
|
|
32685
32691
|
const O = P.children ? c(P.children, A) : [];
|
|
32686
32692
|
return P.label.toLowerCase().includes(A) ? [{ ...P }] : O.length ? [{ ...P, children: O }] : [];
|
|
32687
32693
|
});
|
|
32688
32694
|
}
|
|
32689
32695
|
const u = k(() => {
|
|
32690
|
-
const
|
|
32696
|
+
const x = s.value.trim().toLowerCase();
|
|
32691
32697
|
return o.groups.map((A, P) => ({
|
|
32692
32698
|
group: A,
|
|
32693
32699
|
id: A.label ?? String(P),
|
|
32694
|
-
items:
|
|
32695
|
-
})).filter((A) => !
|
|
32700
|
+
items: x ? c(A.items, x) : A.items
|
|
32701
|
+
})).filter((A) => !x || A.items.length > 0);
|
|
32696
32702
|
}), f = k(() => !!s.value.trim());
|
|
32697
|
-
function p(
|
|
32703
|
+
function p(x) {
|
|
32698
32704
|
const A = new Set(l.value);
|
|
32699
|
-
A.delete(
|
|
32705
|
+
A.delete(x) || A.add(x), l.value = A;
|
|
32700
32706
|
}
|
|
32701
|
-
const h = (
|
|
32702
|
-
function y(
|
|
32707
|
+
const h = (x) => !o.collapsible || f.value || r.value || !l.value.has(x), m = /* @__PURE__ */ N([...o.defaultExpandedKeys]), v = k(() => o.expandedKeys ?? m.value);
|
|
32708
|
+
function y(x, A = o.groups.flatMap((O) => O.items), P = []) {
|
|
32703
32709
|
for (const O of A) {
|
|
32704
|
-
if (O.key ===
|
|
32705
|
-
const $ = O.children ? y(
|
|
32710
|
+
if (O.key === x) return P;
|
|
32711
|
+
const $ = O.children ? y(x, O.children, [...P, O.key]) : void 0;
|
|
32706
32712
|
if ($) return $;
|
|
32707
32713
|
}
|
|
32708
32714
|
return [];
|
|
32709
32715
|
}
|
|
32710
|
-
function
|
|
32711
|
-
const A = y(
|
|
32716
|
+
function w(x) {
|
|
32717
|
+
const A = y(x);
|
|
32712
32718
|
if (!A.length) return;
|
|
32713
32719
|
const P = [.../* @__PURE__ */ new Set([...v.value, ...A])];
|
|
32714
32720
|
m.value = P, a("update:expandedKeys", P);
|
|
32715
32721
|
}
|
|
32716
|
-
te(() => o.modelValue, (
|
|
32717
|
-
|
|
32722
|
+
te(() => o.modelValue, (x) => {
|
|
32723
|
+
x && w(x);
|
|
32718
32724
|
}, { immediate: !0 });
|
|
32719
|
-
const
|
|
32720
|
-
te(() => o.modelValue, (
|
|
32721
|
-
|
|
32725
|
+
const C = Ie(Pb, null);
|
|
32726
|
+
te(() => o.modelValue, (x, A) => {
|
|
32727
|
+
x && A && x !== A && C?.();
|
|
32722
32728
|
});
|
|
32723
|
-
function
|
|
32724
|
-
const A = v.value.includes(
|
|
32725
|
-
m.value = P, a("update:expandedKeys", P), a("branchToggle",
|
|
32729
|
+
function b(x) {
|
|
32730
|
+
const A = v.value.includes(x), P = A ? v.value.filter((O) => O !== x) : [...v.value, x];
|
|
32731
|
+
m.value = P, a("update:expandedKeys", P), a("branchToggle", x, !A);
|
|
32726
32732
|
}
|
|
32727
|
-
function _(
|
|
32728
|
-
|
|
32733
|
+
function _(x) {
|
|
32734
|
+
x.disabled || (a("update:modelValue", x.key), a("select", x), w(x.key));
|
|
32729
32735
|
}
|
|
32730
|
-
return (
|
|
32736
|
+
return (x, A) => d(i) ? (g(), F(rj, {
|
|
32731
32737
|
key: 0,
|
|
32732
32738
|
groups: d(o).groups,
|
|
32733
32739
|
"model-value": d(o).modelValue,
|
|
@@ -32777,7 +32783,7 @@ const c2 = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32777
32783
|
searching: f.value,
|
|
32778
32784
|
collapsed: d(r),
|
|
32779
32785
|
onSelect: _,
|
|
32780
|
-
onToggle:
|
|
32786
|
+
onToggle: b
|
|
32781
32787
|
}, null, 8, ["items", "model-value", "expanded-keys", "searching", "collapsed"])) : j("", !0)
|
|
32782
32788
|
], 2))), 128))
|
|
32783
32789
|
], 8, ij));
|
|
@@ -33043,14 +33049,14 @@ const gj = ["data-ui-title-in-bar"], yj = { class: "min-w-0 flex-auto" }, bj = {
|
|
|
33043
33049
|
S && S.label === $.group ? S.items.push($) : O.push({ label: $.group, items: [$] });
|
|
33044
33050
|
}
|
|
33045
33051
|
return O;
|
|
33046
|
-
}),
|
|
33052
|
+
}), w = /* @__PURE__ */ N(null), C = rB(w, () => a.items, () => a.modelValue), { overflowStart: b, overflowEnd: _ } = lw(w, () => a.modelValue), x = fz(() => a.modelValue), A = {
|
|
33047
33053
|
ArrowRight: (O, $) => (O + 1) % $,
|
|
33048
33054
|
ArrowLeft: (O, $) => (O - 1 + $) % $,
|
|
33049
33055
|
Home: () => 0,
|
|
33050
33056
|
End: (O, $) => $ - 1
|
|
33051
33057
|
};
|
|
33052
33058
|
function P(O) {
|
|
33053
|
-
const $ = A[O.key], S = Array.from(
|
|
33059
|
+
const $ = A[O.key], S = Array.from(w.value?.querySelectorAll("[data-ui-tab-value]:not(:disabled)") ?? []), D = S.indexOf(O.target);
|
|
33054
33060
|
!$ || D < 0 || (O.preventDefault(), S[$(D, S.length)]?.focus());
|
|
33055
33061
|
}
|
|
33056
33062
|
return (O, $) => (g(), F(ht(l.value === "list" || a.fill ? "div" : n), mt(xt(h.value)), {
|
|
@@ -33124,11 +33130,11 @@ const gj = ["data-ui-title-in-bar"], yj = { class: "min-w-0 flex-auto" }, bj = {
|
|
|
33124
33130
|
}, 16, ["model-value", "aria-label"])) : (g(), I("nav", le({
|
|
33125
33131
|
key: 1,
|
|
33126
33132
|
ref_key: "bar",
|
|
33127
|
-
ref:
|
|
33133
|
+
ref: w,
|
|
33128
33134
|
class: ["ui-tab-strip relative flex min-w-0 h-[30px] [@media(pointer:coarse)]:h-[var(--ui-hit-min)] items-end", O.$slots.actions ? "flex-[1_1_auto]" : "w-full"],
|
|
33129
33135
|
"aria-label": a.ariaLabel ?? d(o)("Sections"),
|
|
33130
33136
|
"data-ui-section-tabs-strip": "",
|
|
33131
|
-
"data-overflow-start": d(
|
|
33137
|
+
"data-overflow-start": d(b) ? "" : void 0,
|
|
33132
33138
|
"data-overflow-end": d(_) ? "" : void 0,
|
|
33133
33139
|
"data-syno-pkg-land-ui": ""
|
|
33134
33140
|
}, O.$attrs, { onKeydown: P }), [
|
|
@@ -33147,7 +33153,7 @@ const gj = ["data-ui-title-in-bar"], yj = { class: "min-w-0 flex-auto" }, bj = {
|
|
|
33147
33153
|
}, Q(S.label), 11, Rj))), 128)),
|
|
33148
33154
|
oe("span", {
|
|
33149
33155
|
class: "ui-tab-indicator",
|
|
33150
|
-
style: je(d(
|
|
33156
|
+
style: je(d(C)),
|
|
33151
33157
|
"aria-hidden": "true"
|
|
33152
33158
|
}, null, 4)
|
|
33153
33159
|
], 16, Dj)),
|
|
@@ -33166,7 +33172,7 @@ const gj = ["data-ui-title-in-bar"], yj = { class: "min-w-0 flex-auto" }, bj = {
|
|
|
33166
33172
|
key: 0,
|
|
33167
33173
|
class: "ui-tab-panel",
|
|
33168
33174
|
"data-state": a.modelValue === S.value ? "active" : "inactive",
|
|
33169
|
-
"data-ui-swapped": d(
|
|
33175
|
+
"data-ui-swapped": d(x) && l.value !== "list" ? "" : void 0,
|
|
33170
33176
|
"data-syno-pkg-land-ui": ""
|
|
33171
33177
|
}, [
|
|
33172
33178
|
z(O.$slots, `panel-${S.value}`)
|
|
@@ -33176,7 +33182,7 @@ const gj = ["data-ui-title-in-bar"], yj = { class: "min-w-0 flex-auto" }, bj = {
|
|
|
33176
33182
|
], 64))), 128)) : O.$slots[`panel-${a.modelValue}`] ? (g(), I("div", {
|
|
33177
33183
|
key: a.modelValue,
|
|
33178
33184
|
class: "ui-tab-panel",
|
|
33179
|
-
"data-ui-swapped": d(
|
|
33185
|
+
"data-ui-swapped": d(x) && l.value !== "list" ? "" : void 0,
|
|
33180
33186
|
"data-syno-pkg-land-ui": ""
|
|
33181
33187
|
}, [
|
|
33182
33188
|
z(O.$slots, `panel-${a.modelValue}`)
|
|
@@ -33263,26 +33269,26 @@ const jj = ["data-layout-direction"], Uj = "16px", Wj = /* @__PURE__ */ V({
|
|
|
33263
33269
|
const B = m.indexOf(U);
|
|
33264
33270
|
B >= 0 && m.splice(B, 1);
|
|
33265
33271
|
}
|
|
33266
|
-
const
|
|
33267
|
-
function
|
|
33272
|
+
const w = /* @__PURE__ */ aa([]);
|
|
33273
|
+
function C(U, B) {
|
|
33268
33274
|
const Y = U.element(), W = B.element();
|
|
33269
33275
|
return !Y || !W || Y === W ? 0 : Y.compareDocumentPosition(W) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
33270
33276
|
}
|
|
33271
|
-
function
|
|
33272
|
-
|
|
33277
|
+
function b(U) {
|
|
33278
|
+
w.includes(U) || (w.push(U), w.sort(C));
|
|
33273
33279
|
}
|
|
33274
33280
|
function _(U) {
|
|
33275
|
-
const B =
|
|
33276
|
-
B >= 0 &&
|
|
33281
|
+
const B = w.indexOf(U);
|
|
33282
|
+
B >= 0 && w.splice(B, 1);
|
|
33277
33283
|
}
|
|
33278
|
-
const
|
|
33284
|
+
const x = () => w.filter((U) => U.active());
|
|
33279
33285
|
function A(U) {
|
|
33280
|
-
const B =
|
|
33286
|
+
const B = x();
|
|
33281
33287
|
if (B.includes(U))
|
|
33282
33288
|
return B.at(-1) === U ? "done" : "next";
|
|
33283
33289
|
}
|
|
33284
33290
|
function P(U) {
|
|
33285
|
-
const B =
|
|
33291
|
+
const B = x(), Y = B.indexOf(U);
|
|
33286
33292
|
return Y < 0 ? void 0 : B[Y + 1]?.element() ?? void 0;
|
|
33287
33293
|
}
|
|
33288
33294
|
We(
|
|
@@ -33297,7 +33303,7 @@ const jj = ["data-layout-direction"], Uj = "16px", Wj = /* @__PURE__ */ V({
|
|
|
33297
33303
|
validateMessageDisplayMode: k(() => i.value.validateMessageDisplayMode ?? "popup"),
|
|
33298
33304
|
registerField: v,
|
|
33299
33305
|
unregisterField: y,
|
|
33300
|
-
registerTextControl:
|
|
33306
|
+
registerTextControl: b,
|
|
33301
33307
|
unregisterTextControl: _,
|
|
33302
33308
|
enterKeyHint: A,
|
|
33303
33309
|
nextTextControl: P
|
|
@@ -33501,8 +33507,8 @@ const n3 = ["data-direction", "data-inset", "data-status"], o3 = ["id", "for"],
|
|
|
33501
33507
|
label: `form-item-${p}-label`,
|
|
33502
33508
|
description: `form-item-${p}-description`,
|
|
33503
33509
|
message: `form-item-${p}-message`
|
|
33504
|
-
}, m = /* @__PURE__ */ N(h.control), v = /* @__PURE__ */ N([]), y = k(() => a.modelValue !== void 0),
|
|
33505
|
-
function
|
|
33510
|
+
}, m = /* @__PURE__ */ N(h.control), v = /* @__PURE__ */ N([]), y = k(() => a.modelValue !== void 0), w = /* @__PURE__ */ N(a.initialValue), C = k(() => y.value ? a.modelValue : w.value);
|
|
33511
|
+
function b(G, he) {
|
|
33506
33512
|
if (Object.is(G, he)) return !0;
|
|
33507
33513
|
if (Array.isArray(G) && Array.isArray(he))
|
|
33508
33514
|
return G.length === he.length && G.every((Ce, qe) => Object.is(Ce, he[qe]));
|
|
@@ -33514,15 +33520,15 @@ const n3 = ["data-direction", "data-inset", "data-status"], o3 = ["id", "for"],
|
|
|
33514
33520
|
}
|
|
33515
33521
|
const _ = /* @__PURE__ */ N(
|
|
33516
33522
|
a.initialValue !== void 0 ? a.initialValue : y.value ? a.modelValue : void 0
|
|
33517
|
-
),
|
|
33523
|
+
), x = k(() => !b(C.value, _.value));
|
|
33518
33524
|
function A(G) {
|
|
33519
|
-
y.value || (
|
|
33525
|
+
y.value || (w.value = G);
|
|
33520
33526
|
}
|
|
33521
33527
|
function P(G) {
|
|
33522
33528
|
_.value = G;
|
|
33523
33529
|
}
|
|
33524
33530
|
function O() {
|
|
33525
|
-
_.value =
|
|
33531
|
+
_.value = C.value;
|
|
33526
33532
|
}
|
|
33527
33533
|
const $ = /* @__PURE__ */ N(""), S = /* @__PURE__ */ N(""), D = /* @__PURE__ */ N(""), M = /* @__PURE__ */ N(""), q = /* @__PURE__ */ N(!1), U = /* @__PURE__ */ N(!1), B = k(() => a.disabled === !0 || q.value || c?.disabled === !0), Y = k(() => M.value || s.value.validateStatus || $.value), W = k(() => Y.value === "error"), re = k(() => D.value || S.value || s.value.help), me = k(() => D.value ? D.value : W.value && !s.value.hideValidateMessage && S.value || s.value.help), ie = so(f), pe = k(() => ie.value > 0 && ie.value < rd), _e = k(() => {
|
|
33528
33534
|
const G = s.value.direction ?? l?.direction ?? "auto";
|
|
@@ -33566,7 +33572,7 @@ const n3 = ["data-direction", "data-inset", "data-status"], o3 = ["id", "for"],
|
|
|
33566
33572
|
if (!he.length) return null;
|
|
33567
33573
|
const Ce = ++T;
|
|
33568
33574
|
$.value = "validating", r("validating");
|
|
33569
|
-
const qe = await t3(
|
|
33575
|
+
const qe = await t3(C.value, he, {
|
|
33570
33576
|
trigger: G,
|
|
33571
33577
|
defaultTrigger: s.value.defaultValidateTrigger,
|
|
33572
33578
|
text: o
|
|
@@ -33598,7 +33604,7 @@ const n3 = ["data-direction", "data-inset", "data-status"], o3 = ["id", "for"],
|
|
|
33598
33604
|
q.value = G;
|
|
33599
33605
|
}
|
|
33600
33606
|
function ve() {
|
|
33601
|
-
T++, $.value = "", S.value = "", D.value = "", M.value = "", U.value = !1, a.initialValue !== void 0 && (y.value ? r("update:modelValue", a.initialValue) :
|
|
33607
|
+
T++, $.value = "", S.value = "", D.value = "", M.value = "", U.value = !1, a.initialValue !== void 0 && (y.value ? r("update:modelValue", a.initialValue) : w.value = a.initialValue);
|
|
33602
33608
|
}
|
|
33603
33609
|
function ye() {
|
|
33604
33610
|
const G = f.value;
|
|
@@ -33609,7 +33615,7 @@ const n3 = ["data-direction", "data-inset", "data-status"], o3 = ["id", "for"],
|
|
|
33609
33615
|
validate: L,
|
|
33610
33616
|
resetField: ve,
|
|
33611
33617
|
commit: O,
|
|
33612
|
-
isDirty: () =>
|
|
33618
|
+
isDirty: () => x.value,
|
|
33613
33619
|
ensureVisible: ye
|
|
33614
33620
|
};
|
|
33615
33621
|
Be(() => {
|
|
@@ -33663,7 +33669,7 @@ const n3 = ["data-direction", "data-inset", "data-status"], o3 = ["id", "for"],
|
|
|
33663
33669
|
validate: Z,
|
|
33664
33670
|
resetField: ve,
|
|
33665
33671
|
commit: O,
|
|
33666
|
-
isDirty:
|
|
33672
|
+
isDirty: x,
|
|
33667
33673
|
setInvalid: ce,
|
|
33668
33674
|
resetInvalid: ae,
|
|
33669
33675
|
showPopup: se,
|