@synopackageland/ui 0.25.20 → 0.25.21
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 +20 -0
- package/dist/composables/elementWidth.d.ts +8 -1
- package/dist/index.js +4892 -4871
- package/dist/json-preview/preview.js +864 -844
- package/dist/reka-runtime.json +2 -2
- package/package.json +1 -99
|
@@ -1176,12 +1176,12 @@ function D_(e, t, n = at) {
|
|
|
1176
1176
|
return y(), O;
|
|
1177
1177
|
};
|
|
1178
1178
|
}
|
|
1179
|
-
let
|
|
1180
|
-
const
|
|
1179
|
+
let k = m ? new Array(e.length).fill(Ri) : Ri;
|
|
1180
|
+
const C = (w) => {
|
|
1181
1181
|
if (!(!(u.flags & 1) || !u.dirty && !w))
|
|
1182
1182
|
if (t) {
|
|
1183
1183
|
const _ = u.run();
|
|
1184
|
-
if (w || a || v || (m ? _.some((O, T) => Mt(O,
|
|
1184
|
+
if (w || a || v || (m ? _.some((O, T) => Mt(O, k[T])) : Mt(_, k))) {
|
|
1185
1185
|
p && p();
|
|
1186
1186
|
const O = na;
|
|
1187
1187
|
na = u;
|
|
@@ -1189,10 +1189,10 @@ function D_(e, t, n = at) {
|
|
|
1189
1189
|
const T = [
|
|
1190
1190
|
_,
|
|
1191
1191
|
// pass undefined as the old value when it's changed for the first time
|
|
1192
|
-
|
|
1192
|
+
k === Ri ? void 0 : m && k[0] === Ri ? [] : k,
|
|
1193
1193
|
h
|
|
1194
1194
|
];
|
|
1195
|
-
|
|
1195
|
+
k = _, l ? l(t, 3, T) : (
|
|
1196
1196
|
// @ts-expect-error
|
|
1197
1197
|
t(...T)
|
|
1198
1198
|
);
|
|
@@ -1203,7 +1203,7 @@ function D_(e, t, n = at) {
|
|
|
1203
1203
|
} else
|
|
1204
1204
|
u.run();
|
|
1205
1205
|
};
|
|
1206
|
-
return s && s(
|
|
1206
|
+
return s && s(C), u = new im(f), u.scheduler = i ? () => i(C, !1) : C, h = (w) => I_(w, !1, u), p = u.onStop = () => {
|
|
1207
1207
|
const w = ys.get(u);
|
|
1208
1208
|
if (w) {
|
|
1209
1209
|
if (l)
|
|
@@ -1212,7 +1212,7 @@ function D_(e, t, n = at) {
|
|
|
1212
1212
|
for (const _ of w) _();
|
|
1213
1213
|
ys.delete(u);
|
|
1214
1214
|
}
|
|
1215
|
-
}, t ? o ?
|
|
1215
|
+
}, t ? o ? C(!0) : k = u.run() : i ? i(C.bind(null, !0), !0) : u.run(), y.pause = u.pause.bind(u), y.resume = u.resume.bind(u), y.stop = y, y;
|
|
1216
1216
|
}
|
|
1217
1217
|
function so(e, t = 1 / 0, n) {
|
|
1218
1218
|
if (t <= 0 || !st(e) || e.__v_skip || (n = n || /* @__PURE__ */ new Map(), (n.get(e) || 0) >= t))
|
|
@@ -1518,8 +1518,8 @@ const Po = /* @__PURE__ */ new WeakMap(), Nm = /* @__PURE__ */ Symbol("_vte"), c
|
|
|
1518
1518
|
pc: f,
|
|
1519
1519
|
pbc: p,
|
|
1520
1520
|
o: { insert: h, querySelector: v, createText: m, createComment: b, parentNode: y }
|
|
1521
|
-
} = c,
|
|
1522
|
-
let { dynamicChildren:
|
|
1521
|
+
} = c, k = aa(t.props);
|
|
1522
|
+
let { dynamicChildren: C } = t;
|
|
1523
1523
|
const w = (T, D, $) => {
|
|
1524
1524
|
T.shapeFlag & 16 && u(
|
|
1525
1525
|
T.children,
|
|
@@ -1532,8 +1532,8 @@ const Po = /* @__PURE__ */ new WeakMap(), Nm = /* @__PURE__ */ Symbol("_vte"), c
|
|
|
1532
1532
|
l
|
|
1533
1533
|
);
|
|
1534
1534
|
}, _ = (T = t) => {
|
|
1535
|
-
const D = aa(T.props), $ = T.target = tc(T.props, v),
|
|
1536
|
-
$ && (i !== "svg" && Uf($) ? i = "svg" : i !== "mathml" && Kf($) && (i = "mathml"), a && a.isCE && (a.ce._teleportTargets || (a.ce._teleportTargets = /* @__PURE__ */ new Set())).add($), D || (w(T, $,
|
|
1535
|
+
const D = aa(T.props), $ = T.target = tc(T.props, v), E = nc($, T, m, h);
|
|
1536
|
+
$ && (i !== "svg" && Uf($) ? i = "svg" : i !== "mathml" && Kf($) && (i = "mathml"), a && a.isCE && (a.ce._teleportTargets || (a.ce._teleportTargets = /* @__PURE__ */ new Set())).add($), D || (w(T, $, E), Sr(T, !1)));
|
|
1537
1537
|
}, O = (T) => {
|
|
1538
1538
|
const D = () => {
|
|
1539
1539
|
if (Po.get(T) === D) {
|
|
@@ -1552,7 +1552,7 @@ const Po = /* @__PURE__ */ new WeakMap(), Nm = /* @__PURE__ */ Symbol("_vte"), c
|
|
|
1552
1552
|
O(t);
|
|
1553
1553
|
return;
|
|
1554
1554
|
}
|
|
1555
|
-
|
|
1555
|
+
k && (w(t, n, D), Sr(t, !0)), _();
|
|
1556
1556
|
} else {
|
|
1557
1557
|
t.el = e.el;
|
|
1558
1558
|
const T = t.anchor = e.anchor, D = Po.get(e);
|
|
@@ -1561,10 +1561,10 @@ const Po = /* @__PURE__ */ new WeakMap(), Nm = /* @__PURE__ */ Symbol("_vte"), c
|
|
|
1561
1561
|
return;
|
|
1562
1562
|
}
|
|
1563
1563
|
t.targetStart = e.targetStart;
|
|
1564
|
-
const $ = t.target = e.target,
|
|
1565
|
-
if (i === "svg" || Uf($) ? i = "svg" : (i === "mathml" || Kf($)) && (i = "mathml"),
|
|
1564
|
+
const $ = t.target = e.target, E = t.targetAnchor = e.targetAnchor, R = aa(e.props), P = R ? n : $, q = R ? T : E;
|
|
1565
|
+
if (i === "svg" || Uf($) ? i = "svg" : (i === "mathml" || Kf($)) && (i = "mathml"), C ? (p(
|
|
1566
1566
|
e.dynamicChildren,
|
|
1567
|
-
|
|
1567
|
+
C,
|
|
1568
1568
|
P,
|
|
1569
1569
|
a,
|
|
1570
1570
|
r,
|
|
@@ -1580,7 +1580,7 @@ const Po = /* @__PURE__ */ new WeakMap(), Nm = /* @__PURE__ */ Symbol("_vte"), c
|
|
|
1580
1580
|
i,
|
|
1581
1581
|
s,
|
|
1582
1582
|
!1
|
|
1583
|
-
),
|
|
1583
|
+
), k)
|
|
1584
1584
|
R ? t.props && e.props && t.props.to !== e.props.to && (t.props.to = e.props.to) : Mi(
|
|
1585
1585
|
t,
|
|
1586
1586
|
n,
|
|
@@ -1600,11 +1600,11 @@ const Po = /* @__PURE__ */ new WeakMap(), Nm = /* @__PURE__ */ Symbol("_vte"), c
|
|
|
1600
1600
|
} else R && Mi(
|
|
1601
1601
|
t,
|
|
1602
1602
|
$,
|
|
1603
|
-
|
|
1603
|
+
E,
|
|
1604
1604
|
c,
|
|
1605
1605
|
1
|
|
1606
1606
|
);
|
|
1607
|
-
Sr(t,
|
|
1607
|
+
Sr(t, k);
|
|
1608
1608
|
}
|
|
1609
1609
|
},
|
|
1610
1610
|
remove(e, t, n, { um: o, o: { remove: a } }, r) {
|
|
@@ -1649,17 +1649,17 @@ function V_(e, t, n, o, a, r, {
|
|
|
1649
1649
|
o: { nextSibling: i, parentNode: s, querySelector: l, insert: c, createText: u }
|
|
1650
1650
|
}, f) {
|
|
1651
1651
|
function p(b, y) {
|
|
1652
|
-
let
|
|
1653
|
-
for (;
|
|
1654
|
-
if (
|
|
1655
|
-
if (
|
|
1656
|
-
t.targetStart =
|
|
1657
|
-
else if (
|
|
1658
|
-
t.targetAnchor =
|
|
1652
|
+
let k = y;
|
|
1653
|
+
for (; k; ) {
|
|
1654
|
+
if (k && k.nodeType === 8) {
|
|
1655
|
+
if (k.data === "teleport start anchor")
|
|
1656
|
+
t.targetStart = k;
|
|
1657
|
+
else if (k.data === "teleport anchor") {
|
|
1658
|
+
t.targetAnchor = k, b._lpa = t.targetAnchor && i(t.targetAnchor);
|
|
1659
1659
|
break;
|
|
1660
1660
|
}
|
|
1661
1661
|
}
|
|
1662
|
-
|
|
1662
|
+
k = i(k);
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
1665
|
function h(b, y) {
|
|
@@ -1837,26 +1837,26 @@ function oc(e, t, n, o, a) {
|
|
|
1837
1837
|
onLeaveCancelled: m,
|
|
1838
1838
|
onBeforeAppear: b,
|
|
1839
1839
|
onAppear: y,
|
|
1840
|
-
onAfterAppear:
|
|
1841
|
-
onAppearCancelled:
|
|
1842
|
-
} = t, w = String(e.key), _ = Bm(n, e), O = ($,
|
|
1840
|
+
onAfterAppear: k,
|
|
1841
|
+
onAppearCancelled: C
|
|
1842
|
+
} = t, w = String(e.key), _ = Bm(n, e), O = ($, E) => {
|
|
1843
1843
|
$ && gn(
|
|
1844
1844
|
$,
|
|
1845
1845
|
o,
|
|
1846
1846
|
9,
|
|
1847
|
-
|
|
1847
|
+
E
|
|
1848
1848
|
);
|
|
1849
|
-
}, T = ($,
|
|
1850
|
-
const R =
|
|
1851
|
-
O($,
|
|
1849
|
+
}, T = ($, E) => {
|
|
1850
|
+
const R = E[1];
|
|
1851
|
+
O($, E), De($) ? $.every((P) => P.length <= 1) && R() : $.length <= 1 && R();
|
|
1852
1852
|
}, D = {
|
|
1853
1853
|
mode: i,
|
|
1854
1854
|
persisted: s,
|
|
1855
1855
|
beforeEnter($) {
|
|
1856
|
-
let
|
|
1856
|
+
let E = l;
|
|
1857
1857
|
if (!n.isMounted)
|
|
1858
1858
|
if (r)
|
|
1859
|
-
|
|
1859
|
+
E = b || l;
|
|
1860
1860
|
else
|
|
1861
1861
|
return;
|
|
1862
1862
|
$[hn] && $[hn](
|
|
@@ -1864,14 +1864,14 @@ function oc(e, t, n, o, a) {
|
|
|
1864
1864
|
/* cancelled */
|
|
1865
1865
|
);
|
|
1866
1866
|
const R = _[w];
|
|
1867
|
-
R && ra(e, R) && R.el[hn] && R.el[hn](), O(
|
|
1867
|
+
R && ra(e, R) && R.el[hn] && R.el[hn](), O(E, [$]);
|
|
1868
1868
|
},
|
|
1869
1869
|
enter($) {
|
|
1870
1870
|
if (_[w] === e) return;
|
|
1871
|
-
let
|
|
1871
|
+
let E = c, R = u, P = f;
|
|
1872
1872
|
if (!n.isMounted)
|
|
1873
1873
|
if (r)
|
|
1874
|
-
|
|
1874
|
+
E = y || c, R = k || u, P = C || f;
|
|
1875
1875
|
else
|
|
1876
1876
|
return;
|
|
1877
1877
|
let q = !1;
|
|
@@ -1879,32 +1879,32 @@ function oc(e, t, n, o, a) {
|
|
|
1879
1879
|
q || (q = !0, j ? O(P, [$]) : O(R, [$]), D.delayedLeave && D.delayedLeave(), $[mr] = void 0);
|
|
1880
1880
|
};
|
|
1881
1881
|
const L = $[mr].bind(null, !1);
|
|
1882
|
-
|
|
1882
|
+
E ? T(E, [$, L]) : L();
|
|
1883
1883
|
},
|
|
1884
|
-
leave($,
|
|
1884
|
+
leave($, E) {
|
|
1885
1885
|
const R = String(e.key);
|
|
1886
1886
|
if ($[mr] && $[mr](
|
|
1887
1887
|
!0
|
|
1888
1888
|
/* cancelled */
|
|
1889
1889
|
), n.isUnmounting)
|
|
1890
|
-
return
|
|
1890
|
+
return E();
|
|
1891
1891
|
O(p, [$]);
|
|
1892
1892
|
let P = !1;
|
|
1893
1893
|
$[hn] = (L) => {
|
|
1894
|
-
P || (P = !0,
|
|
1894
|
+
P || (P = !0, E(), L ? O(m, [$]) : O(v, [$]), $[hn] = void 0, _[R] === e && delete _[R]);
|
|
1895
1895
|
};
|
|
1896
1896
|
const q = $[hn].bind(null, !1);
|
|
1897
1897
|
_[R] = e, h ? T(h, [$, q]) : q();
|
|
1898
1898
|
},
|
|
1899
1899
|
clone($) {
|
|
1900
|
-
const
|
|
1900
|
+
const E = oc(
|
|
1901
1901
|
$,
|
|
1902
1902
|
t,
|
|
1903
1903
|
n,
|
|
1904
1904
|
o,
|
|
1905
1905
|
a
|
|
1906
1906
|
);
|
|
1907
|
-
return a && a(
|
|
1907
|
+
return a && a(E), E;
|
|
1908
1908
|
}
|
|
1909
1909
|
};
|
|
1910
1910
|
return D;
|
|
@@ -2015,24 +2015,24 @@ function Dr(e, t, n, o, a = !1) {
|
|
|
2015
2015
|
if (m || b) {
|
|
2016
2016
|
const y = () => {
|
|
2017
2017
|
if (e.f) {
|
|
2018
|
-
const
|
|
2018
|
+
const k = m ? h(l) ? f[l] : u[l] : v() || !e.k ? l.value : u[e.k];
|
|
2019
2019
|
if (a)
|
|
2020
|
-
De(
|
|
2021
|
-
else if (De(
|
|
2022
|
-
|
|
2020
|
+
De(k) && Qc(k, r);
|
|
2021
|
+
else if (De(k))
|
|
2022
|
+
k.includes(r) || k.push(r);
|
|
2023
2023
|
else if (m)
|
|
2024
2024
|
u[l] = [r], h(l) && (f[l] = u[l]);
|
|
2025
2025
|
else {
|
|
2026
|
-
const
|
|
2027
|
-
v(l, e.k) && (l.value =
|
|
2026
|
+
const C = [r];
|
|
2027
|
+
v(l, e.k) && (l.value = C), e.k && (u[e.k] = C);
|
|
2028
2028
|
}
|
|
2029
2029
|
} else m ? (u[l] = i, h(l) && (f[l] = i)) : b && (v(l, e.k) && (l.value = i), e.k && (u[e.k] = i));
|
|
2030
2030
|
};
|
|
2031
2031
|
if (i) {
|
|
2032
|
-
const
|
|
2032
|
+
const k = () => {
|
|
2033
2033
|
y(), xs.delete(e);
|
|
2034
2034
|
};
|
|
2035
|
-
|
|
2035
|
+
k.id = -1, xs.set(e, k), en(k, n);
|
|
2036
2036
|
} else
|
|
2037
2037
|
Zf(e), y();
|
|
2038
2038
|
}
|
|
@@ -2359,8 +2359,8 @@ function tx(e) {
|
|
|
2359
2359
|
activated: m,
|
|
2360
2360
|
deactivated: b,
|
|
2361
2361
|
beforeDestroy: y,
|
|
2362
|
-
beforeUnmount:
|
|
2363
|
-
destroyed:
|
|
2362
|
+
beforeUnmount: k,
|
|
2363
|
+
destroyed: C,
|
|
2364
2364
|
unmounted: w,
|
|
2365
2365
|
render: _,
|
|
2366
2366
|
renderTracked: O,
|
|
@@ -2368,7 +2368,7 @@ function tx(e) {
|
|
|
2368
2368
|
errorCaptured: D,
|
|
2369
2369
|
serverPrefetch: $,
|
|
2370
2370
|
// public API
|
|
2371
|
-
expose:
|
|
2371
|
+
expose: E,
|
|
2372
2372
|
inheritAttrs: R,
|
|
2373
2373
|
// assets
|
|
2374
2374
|
components: P,
|
|
@@ -2410,10 +2410,10 @@ function tx(e) {
|
|
|
2410
2410
|
function H(V, K) {
|
|
2411
2411
|
De(K) ? K.forEach((le) => V(le.bind(n))) : K && V(K.bind(n));
|
|
2412
2412
|
}
|
|
2413
|
-
if (H(G_, f), H(We, p), H(id, h), H(Ga, v), H(K_, m), H(H_, b), H(Wm, D), H(X_, O), H(J_, T), H(Re,
|
|
2414
|
-
if (
|
|
2413
|
+
if (H(G_, f), H(We, p), H(id, h), H(Ga, v), H(K_, m), H(H_, b), H(Wm, D), H(X_, O), H(J_, T), H(Re, k), H(Ut, w), H(Y_, $), De(E))
|
|
2414
|
+
if (E.length) {
|
|
2415
2415
|
const V = e.exposed || (e.exposed = {});
|
|
2416
|
-
|
|
2416
|
+
E.forEach((K) => {
|
|
2417
2417
|
Object.defineProperty(V, K, {
|
|
2418
2418
|
get: () => n[K],
|
|
2419
2419
|
set: (le) => n[K] = le,
|
|
@@ -2743,7 +2743,7 @@ function Qf(e) {
|
|
|
2743
2743
|
ctx: v,
|
|
2744
2744
|
inheritAttrs: m
|
|
2745
2745
|
} = e, b = ws(e);
|
|
2746
|
-
let y,
|
|
2746
|
+
let y, k;
|
|
2747
2747
|
try {
|
|
2748
2748
|
if (n.shapeFlag & 4) {
|
|
2749
2749
|
const w = a || o, _ = w;
|
|
@@ -2757,7 +2757,7 @@ function Qf(e) {
|
|
|
2757
2757
|
p,
|
|
2758
2758
|
v
|
|
2759
2759
|
)
|
|
2760
|
-
),
|
|
2760
|
+
), k = s;
|
|
2761
2761
|
} else {
|
|
2762
2762
|
const w = t;
|
|
2763
2763
|
y = qn(
|
|
@@ -2768,24 +2768,24 @@ function Qf(e) {
|
|
|
2768
2768
|
f,
|
|
2769
2769
|
null
|
|
2770
2770
|
)
|
|
2771
|
-
),
|
|
2771
|
+
), k = t.props ? s : cx(s);
|
|
2772
2772
|
}
|
|
2773
2773
|
} catch (w) {
|
|
2774
2774
|
co.length = 0, ul(w, e, 1), y = Z(Nt);
|
|
2775
2775
|
}
|
|
2776
|
-
let
|
|
2777
|
-
if (
|
|
2778
|
-
const w = Object.keys(
|
|
2779
|
-
w.length && _ & 7 && (r && w.some(Xs) && (
|
|
2780
|
-
|
|
2776
|
+
let C = y;
|
|
2777
|
+
if (k && m !== !1) {
|
|
2778
|
+
const w = Object.keys(k), { shapeFlag: _ } = C;
|
|
2779
|
+
w.length && _ & 7 && (r && w.some(Xs) && (k = dx(
|
|
2780
|
+
k,
|
|
2781
2781
|
r
|
|
2782
|
-
)),
|
|
2782
|
+
)), C = go(C, k, !1, !0));
|
|
2783
2783
|
}
|
|
2784
|
-
if (n.dirs && (
|
|
2785
|
-
const w = cl(
|
|
2784
|
+
if (n.dirs && (C = go(C, null, !1, !0), C.dirs = C.dirs ? C.dirs.concat(n.dirs) : n.dirs), n.transition) {
|
|
2785
|
+
const w = cl(C.type) && _s(C) || C;
|
|
2786
2786
|
Wr(w, n.transition);
|
|
2787
2787
|
}
|
|
2788
|
-
return y =
|
|
2788
|
+
return y = C, ws(b), y;
|
|
2789
2789
|
}
|
|
2790
2790
|
const cx = (e) => {
|
|
2791
2791
|
let t;
|
|
@@ -3001,11 +3001,11 @@ function lg(e, t, n = !1) {
|
|
|
3001
3001
|
let m = !1, b = !0;
|
|
3002
3002
|
if (De(v))
|
|
3003
3003
|
for (let y = 0; y < v.length; ++y) {
|
|
3004
|
-
const
|
|
3005
|
-
if (
|
|
3004
|
+
const k = v[y], C = je(k) && k.name;
|
|
3005
|
+
if (C === "Boolean") {
|
|
3006
3006
|
m = !0;
|
|
3007
3007
|
break;
|
|
3008
|
-
} else
|
|
3008
|
+
} else C === "String" && (b = !1);
|
|
3009
3009
|
}
|
|
3010
3010
|
else
|
|
3011
3011
|
m = je(v) && v.name === "Boolean";
|
|
@@ -3096,7 +3096,7 @@ function _x(e, t) {
|
|
|
3096
3096
|
y(S, A, F, G);
|
|
3097
3097
|
break;
|
|
3098
3098
|
case du:
|
|
3099
|
-
S == null &&
|
|
3099
|
+
S == null && k(A, F, G, fe);
|
|
3100
3100
|
break;
|
|
3101
3101
|
case xe:
|
|
3102
3102
|
P(
|
|
@@ -3163,7 +3163,7 @@ function _x(e, t) {
|
|
|
3163
3163
|
F,
|
|
3164
3164
|
G
|
|
3165
3165
|
) : A.el = S.el;
|
|
3166
|
-
},
|
|
3166
|
+
}, k = (S, A, F, G) => {
|
|
3167
3167
|
[S.el, S.anchor] = v(
|
|
3168
3168
|
S.children,
|
|
3169
3169
|
A,
|
|
@@ -3172,7 +3172,7 @@ function _x(e, t) {
|
|
|
3172
3172
|
S.el,
|
|
3173
3173
|
S.anchor
|
|
3174
3174
|
);
|
|
3175
|
-
},
|
|
3175
|
+
}, C = ({ el: S, anchor: A }, F, G) => {
|
|
3176
3176
|
let Y;
|
|
3177
3177
|
for (; S && S !== A; )
|
|
3178
3178
|
Y = p(S), o(S, F, G), S = Y;
|
|
@@ -3277,7 +3277,7 @@ function _x(e, t) {
|
|
|
3277
3277
|
let $e;
|
|
3278
3278
|
if (F && Yo(F, !1), ($e = Ee.onVnodeBeforeUpdate) && Nn($e, F, A, S), Ae && Go(A, S, F, "beforeUpdate"), F && Yo(F, !0), // #6385 the old vnode may be a user-wrapped non-isomorphic block
|
|
3279
3279
|
// Force full diff when block metadata is unstable.
|
|
3280
|
-
ne && (!S.dynamicChildren || S.dynamicChildren.length !== ne.length) && (pe = 0, fe = !1, ne = null), (ye.innerHTML && Ee.innerHTML == null || ye.textContent && Ee.textContent == null) && u(ve, ""), ne ?
|
|
3280
|
+
ne && (!S.dynamicChildren || S.dynamicChildren.length !== ne.length) && (pe = 0, fe = !1, ne = null), (ye.innerHTML && Ee.innerHTML == null || ye.textContent && Ee.textContent == null) && u(ve, ""), ne ? E(
|
|
3281
3281
|
S.dynamicChildren,
|
|
3282
3282
|
ne,
|
|
3283
3283
|
ve,
|
|
@@ -3310,7 +3310,7 @@ function _x(e, t) {
|
|
|
3310
3310
|
(($e = Ee.onVnodeUpdated) || Ae) && en(() => {
|
|
3311
3311
|
$e && Nn($e, F, A, S), Ae && Go(A, S, F, "updated");
|
|
3312
3312
|
}, G);
|
|
3313
|
-
},
|
|
3313
|
+
}, E = (S, A, F, G, Y, Q, fe) => {
|
|
3314
3314
|
for (let ve = 0; ve < A.length; ve++) {
|
|
3315
3315
|
const pe = S[ve], ne = A[ve], Ae = (
|
|
3316
3316
|
// oldVNode may be an errored async setup() component inside Suspense
|
|
@@ -3375,7 +3375,7 @@ function _x(e, t) {
|
|
|
3375
3375
|
pe
|
|
3376
3376
|
)) : ye > 0 && ye & 64 && Ee && // #2715 the previous fragment could've been a BAILed one as a result
|
|
3377
3377
|
// of renderSlot() with no valid children
|
|
3378
|
-
S.dynamicChildren && S.dynamicChildren.length === Ee.length ? (
|
|
3378
|
+
S.dynamicChildren && S.dynamicChildren.length === Ee.length ? (E(
|
|
3379
3379
|
S.dynamicChildren,
|
|
3380
3380
|
Ee,
|
|
3381
3381
|
F,
|
|
@@ -3746,7 +3746,7 @@ function _x(e, t) {
|
|
|
3746
3746
|
return;
|
|
3747
3747
|
}
|
|
3748
3748
|
if (fe === du) {
|
|
3749
|
-
|
|
3749
|
+
C(S, A, F);
|
|
3750
3750
|
return;
|
|
3751
3751
|
}
|
|
3752
3752
|
if (G !== 2 && ne & 1 && ve)
|
|
@@ -3877,7 +3877,7 @@ function _x(e, t) {
|
|
|
3877
3877
|
mt: L,
|
|
3878
3878
|
mc: D,
|
|
3879
3879
|
pc: K,
|
|
3880
|
-
pbc:
|
|
3880
|
+
pbc: E,
|
|
3881
3881
|
n: ge,
|
|
3882
3882
|
o: e
|
|
3883
3883
|
};
|
|
@@ -4526,19 +4526,19 @@ function qx(e) {
|
|
|
4526
4526
|
leaveToClass: h = `${n}-leave-to`
|
|
4527
4527
|
} = e, v = Vx(a), m = v && v[0], b = v && v[1], {
|
|
4528
4528
|
onBeforeEnter: y,
|
|
4529
|
-
onEnter:
|
|
4530
|
-
onEnterCancelled:
|
|
4529
|
+
onEnter: k,
|
|
4530
|
+
onEnterCancelled: C,
|
|
4531
4531
|
onLeave: w,
|
|
4532
4532
|
onLeaveCancelled: _,
|
|
4533
4533
|
onBeforeAppear: O = y,
|
|
4534
|
-
onAppear: T =
|
|
4535
|
-
onAppearCancelled: D =
|
|
4534
|
+
onAppear: T = k,
|
|
4535
|
+
onAppearCancelled: D = C
|
|
4536
4536
|
} = t, $ = (P, q, L, j) => {
|
|
4537
4537
|
P._enterCancelled = j, Xo(P, q ? u : s), Xo(P, q ? c : i), L && L();
|
|
4538
|
-
},
|
|
4538
|
+
}, E = (P, q) => {
|
|
4539
4539
|
P._isLeaving = !1, Xo(P, f), Xo(P, h), Xo(P, p), q && q();
|
|
4540
4540
|
}, R = (P) => (q, L) => {
|
|
4541
|
-
const j = P ? T :
|
|
4541
|
+
const j = P ? T : k, H = () => $(q, P, L);
|
|
4542
4542
|
Jo(j, [q, H]), lp(() => {
|
|
4543
4543
|
Xo(q, P ? l : r), oo(q, P ? u : s), sp(j) || up(q, o, m, H);
|
|
4544
4544
|
});
|
|
@@ -4554,19 +4554,19 @@ function qx(e) {
|
|
|
4554
4554
|
onAppear: R(!0),
|
|
4555
4555
|
onLeave(P, q) {
|
|
4556
4556
|
P._isLeaving = !0;
|
|
4557
|
-
const L = () =>
|
|
4557
|
+
const L = () => E(P, q);
|
|
4558
4558
|
oo(P, f), P._enterCancelled ? (oo(P, p), fp(P)) : (fp(P), oo(P, p)), lp(() => {
|
|
4559
4559
|
P._isLeaving && (Xo(P, f), oo(P, h), sp(w) || up(P, o, b, L));
|
|
4560
4560
|
}), Jo(w, [P, L]);
|
|
4561
4561
|
},
|
|
4562
4562
|
onEnterCancelled(P) {
|
|
4563
|
-
$(P, !1, void 0, !0), Jo(
|
|
4563
|
+
$(P, !1, void 0, !0), Jo(C, [P]);
|
|
4564
4564
|
},
|
|
4565
4565
|
onAppearCancelled(P) {
|
|
4566
4566
|
$(P, !0, void 0, !0), Jo(D, [P]);
|
|
4567
4567
|
},
|
|
4568
4568
|
onLeaveCancelled(P) {
|
|
4569
|
-
|
|
4569
|
+
E(P), Jo(_, [P]);
|
|
4570
4570
|
}
|
|
4571
4571
|
});
|
|
4572
4572
|
}
|
|
@@ -5426,8 +5426,8 @@ function te(e, t, n, o) {
|
|
|
5426
5426
|
let y = m;
|
|
5427
5427
|
for (; y && y !== b; )
|
|
5428
5428
|
y = Object.getPrototypeOf(y);
|
|
5429
|
-
const
|
|
5430
|
-
s.has(
|
|
5429
|
+
const k = y ?? m;
|
|
5430
|
+
s.has(k) || (s.add(k), FS(k, i));
|
|
5431
5431
|
}
|
|
5432
5432
|
const v = f.prototype;
|
|
5433
5433
|
for (const m in v)
|
|
@@ -6488,15 +6488,15 @@ const WC = /* @__PURE__ */ te("$ZodObject", (e, t) => {
|
|
|
6488
6488
|
}
|
|
6489
6489
|
if (b === "__proto__")
|
|
6490
6490
|
continue;
|
|
6491
|
-
const y = h[b],
|
|
6492
|
-
w instanceof Promise ? p.push(w.then((_) => Is(_, c, b, f,
|
|
6491
|
+
const y = h[b], k = y._zod.optin, C = y._zod.optout, w = y._zod.run({ value: f[b], issues: [] }, u);
|
|
6492
|
+
w instanceof Promise ? p.push(w.then((_) => Is(_, c, b, f, k, C))) : Is(w, c, b, f, k, C);
|
|
6493
6493
|
}
|
|
6494
6494
|
return i ? Gg(p, f, c, u, a.value, e, v === !0) : p.length ? Promise.all(p).then(() => c) : c;
|
|
6495
6495
|
};
|
|
6496
6496
|
}), UC = /* @__PURE__ */ te("$ZodObjectJIT", (e, t) => {
|
|
6497
6497
|
WC.init(e, t);
|
|
6498
6498
|
const n = e._zod.parse, o = fd(() => Zg(t)), a = $n.memoizer, r = (h) => {
|
|
6499
|
-
const v = o.value, m = v.symbolKeys, b = new tC(["payload", "ctx"], { shape: h, inst: e, memo: a, syms: m }), y = (_) => `shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`,
|
|
6499
|
+
const v = o.value, m = v.symbolKeys, b = new tC(["payload", "ctx"], { shape: h, inst: e, memo: a, syms: m }), y = (_) => `shape[${_}]._zod.run({ value: input[${_}], issues: [] }, ctx)`, k = (_, O) => `
|
|
6500
6500
|
let ${_}_ab = false;
|
|
6501
6501
|
for (let i = 0; i < ${_}.issues.length; i++) {
|
|
6502
6502
|
const iss = ${_}.issues[i];
|
|
@@ -6509,21 +6509,21 @@ const WC = /* @__PURE__ */ te("$ZodObject", (e, t) => {
|
|
|
6509
6509
|
return payload;
|
|
6510
6510
|
}`;
|
|
6511
6511
|
b.write("const input = payload.value;");
|
|
6512
|
-
const
|
|
6512
|
+
const C = /* @__PURE__ */ Object.create(null);
|
|
6513
6513
|
let w = 0;
|
|
6514
6514
|
for (const _ of v.allKeys)
|
|
6515
|
-
|
|
6515
|
+
C[_] = `key_${w++}`;
|
|
6516
6516
|
b.write(a ? "const newResult = memo.alloc(inst, payload, {}, ctx);" : "const newResult = {};");
|
|
6517
6517
|
for (const _ of v.allKeys) {
|
|
6518
6518
|
if (_ === "__proto__")
|
|
6519
6519
|
continue;
|
|
6520
|
-
const O =
|
|
6520
|
+
const O = C[_], T = typeof _ == "symbol" ? `syms[${m.indexOf(_)}]` : SS(_), D = `${T} in input`, $ = h[_], E = $?._zod?.optin, R = E !== void 0, P = $?._zod?.optout === "optional";
|
|
6521
6521
|
if (b.write(`const ${O} = ${y(T)};`), R && P) {
|
|
6522
|
-
const q =
|
|
6522
|
+
const q = E === "optional" ? `${O}_present` : `${O}.value !== undefined || ${O}_present`;
|
|
6523
6523
|
b.write(`
|
|
6524
6524
|
const ${O}_present = ${D};
|
|
6525
6525
|
if (!${O}.issues.length || ${O}_present) {
|
|
6526
|
-
if (${O}.issues.length) {${
|
|
6526
|
+
if (${O}.issues.length) {${k(O, T)}
|
|
6527
6527
|
}
|
|
6528
6528
|
|
|
6529
6529
|
if (${q}) {
|
|
@@ -6533,15 +6533,15 @@ const WC = /* @__PURE__ */ te("$ZodObject", (e, t) => {
|
|
|
6533
6533
|
|
|
6534
6534
|
`);
|
|
6535
6535
|
} else R ? (b.write(`
|
|
6536
|
-
if (${O}.issues.length) {${
|
|
6536
|
+
if (${O}.issues.length) {${k(O, T)}
|
|
6537
6537
|
}
|
|
6538
|
-
`),
|
|
6538
|
+
`), E === "defaulted" ? b.write(`newResult[${T}] = ${O}.value;`) : b.write(`
|
|
6539
6539
|
if (${O}.value !== undefined || ${D}) {
|
|
6540
6540
|
newResult[${T}] = ${O}.value;
|
|
6541
6541
|
}
|
|
6542
6542
|
`)) : b.write(`
|
|
6543
6543
|
const ${O}_present = ${D};
|
|
6544
|
-
if (${O}.issues.length) {${
|
|
6544
|
+
if (${O}.issues.length) {${k(O, T)}
|
|
6545
6545
|
}
|
|
6546
6546
|
if (!${O}_present && !${O}.issues.length) {
|
|
6547
6547
|
payload.issues.push({
|
|
@@ -8349,7 +8349,7 @@ function vc(e, t, n) {
|
|
|
8349
8349
|
if (!Array.isArray(m))
|
|
8350
8350
|
continue;
|
|
8351
8351
|
const b = m.map((y) => vc(e, y, n));
|
|
8352
|
-
b.some((y,
|
|
8352
|
+
b.some((y, k) => y !== m[k]) && (t = { ...t, [v]: b });
|
|
8353
8353
|
}
|
|
8354
8354
|
const o = Array.isArray(t.type) ? t.type : [t.type], a = !o.includes("string") && o.some((v) => v === "number" || v === "integer"), r = t.enum ?? (t.const !== void 0 ? [t.const] : void 0);
|
|
8355
8355
|
if (!a && !r?.some((v) => typeof v == "number"))
|
|
@@ -10144,14 +10144,14 @@ function QP(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, v = e.componentNames, m = v[0] || "Component", b = v.length > 1 ? v[1] : m, y = s?.[m],
|
|
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, v = e.componentNames, m = v[0] || "Component", b = v.length > 1 ? v[1] : m, y = s?.[m], k = s?.[b], C = y ? vh(y) : {}, w = k ? vh(k) : {}, _ = k?.props ? eO(k.props) : null, O = _ ? { ...w, [_]: { $item: "title" } } : w, T = [
|
|
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: m,
|
|
10154
|
-
props:
|
|
10154
|
+
props: C,
|
|
10155
10155
|
children: ["child-1", "list"]
|
|
10156
10156
|
}
|
|
10157
10157
|
}),
|
|
@@ -10165,7 +10165,7 @@ function QP(e, t) {
|
|
|
10165
10165
|
path: "/elements/list",
|
|
10166
10166
|
value: {
|
|
10167
10167
|
type: m,
|
|
10168
|
-
props:
|
|
10168
|
+
props: C,
|
|
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: m, props:
|
|
10218
|
+
`Example: ${JSON.stringify({ type: m, props: C, 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(
|
|
@@ -10249,10 +10249,10 @@ Note: state patches appear right after the elements that use them, so the UI fil
|
|
|
10249
10249
|
}
|
|
10250
10250
|
i.push("");
|
|
10251
10251
|
}
|
|
10252
|
-
const $ = e.data.actions,
|
|
10252
|
+
const $ = e.data.actions, E = e.schema.builtInActions ?? [], R = $ && e.actionNames.length > 0, P = E.length > 0;
|
|
10253
10253
|
if (R || P) {
|
|
10254
10254
|
i.push("AVAILABLE ACTIONS:"), i.push("");
|
|
10255
|
-
for (const he of
|
|
10255
|
+
for (const he of E)
|
|
10256
10256
|
i.push(`- ${he.name}: ${he.description} [built-in]`);
|
|
10257
10257
|
if (R)
|
|
10258
10258
|
for (const [he, be] of Object.entries($))
|
|
@@ -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: m, props:
|
|
10267
|
+
` ${JSON.stringify({ type: m, props: C, 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: m, props:
|
|
10275
|
+
`Correct: ${JSON.stringify({ type: m, props: C, 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(
|
|
@@ -11004,7 +11004,7 @@ var Dy = /* @__PURE__ */ Symbol("json-render:actions"), dO = /* @__PURE__ */ U({
|
|
|
11004
11004
|
params: v.params,
|
|
11005
11005
|
at: b
|
|
11006
11006
|
});
|
|
11007
|
-
let y = !0,
|
|
11007
|
+
let y = !0, k;
|
|
11008
11008
|
try {
|
|
11009
11009
|
if (v.action === "setState" && v.params) {
|
|
11010
11010
|
const _ = v.params.statePath, O = v.params.value;
|
|
@@ -11041,8 +11041,8 @@ var Dy = /* @__PURE__ */ Symbol("json-render:actions"), dO = /* @__PURE__ */ U({
|
|
|
11041
11041
|
return;
|
|
11042
11042
|
}
|
|
11043
11043
|
const O = _(), T = {};
|
|
11044
|
-
for (const [$,
|
|
11045
|
-
|
|
11044
|
+
for (const [$, E] of Object.entries(r.fieldStates))
|
|
11045
|
+
E.result && !E.result.valid && (T[$] = E.result.errors);
|
|
11046
11046
|
const D = v.params?.statePath || "/formValidation";
|
|
11047
11047
|
o(D, { valid: O, errors: T });
|
|
11048
11048
|
return;
|
|
@@ -11063,8 +11063,8 @@ var Dy = /* @__PURE__ */ Symbol("json-render:actions"), dO = /* @__PURE__ */ U({
|
|
|
11063
11063
|
}
|
|
11064
11064
|
return;
|
|
11065
11065
|
}
|
|
11066
|
-
const
|
|
11067
|
-
if (!
|
|
11066
|
+
const C = i.value[v.action];
|
|
11067
|
+
if (!C) {
|
|
11068
11068
|
console.warn(`No handler registered for action: ${v.action}`);
|
|
11069
11069
|
return;
|
|
11070
11070
|
}
|
|
@@ -11072,7 +11072,7 @@ var Dy = /* @__PURE__ */ Symbol("json-render:actions"), dO = /* @__PURE__ */ U({
|
|
|
11072
11072
|
await new Promise((O, T) => {
|
|
11073
11073
|
l.value = {
|
|
11074
11074
|
action: v,
|
|
11075
|
-
handler:
|
|
11075
|
+
handler: C,
|
|
11076
11076
|
resolve: () => {
|
|
11077
11077
|
l.value = null, O();
|
|
11078
11078
|
},
|
|
@@ -11086,7 +11086,7 @@ var Dy = /* @__PURE__ */ Symbol("json-render:actions"), dO = /* @__PURE__ */ U({
|
|
|
11086
11086
|
try {
|
|
11087
11087
|
await ph({
|
|
11088
11088
|
action: v,
|
|
11089
|
-
handler:
|
|
11089
|
+
handler: C,
|
|
11090
11090
|
setState: o,
|
|
11091
11091
|
navigate: e.navigate,
|
|
11092
11092
|
executeAction: async (O) => {
|
|
@@ -11104,7 +11104,7 @@ var Dy = /* @__PURE__ */ Symbol("json-render:actions"), dO = /* @__PURE__ */ U({
|
|
|
11104
11104
|
try {
|
|
11105
11105
|
await ph({
|
|
11106
11106
|
action: v,
|
|
11107
|
-
handler:
|
|
11107
|
+
handler: C,
|
|
11108
11108
|
setState: o,
|
|
11109
11109
|
navigate: e.navigate,
|
|
11110
11110
|
executeAction: async (_) => {
|
|
@@ -11115,17 +11115,17 @@ var Dy = /* @__PURE__ */ Symbol("json-render:actions"), dO = /* @__PURE__ */ U({
|
|
|
11115
11115
|
const _ = new Set(s.value);
|
|
11116
11116
|
_.delete(v.action), s.value = _;
|
|
11117
11117
|
}
|
|
11118
|
-
} catch (
|
|
11119
|
-
throw y = !1,
|
|
11118
|
+
} catch (C) {
|
|
11119
|
+
throw y = !1, k = C, C;
|
|
11120
11120
|
} finally {
|
|
11121
|
-
const
|
|
11121
|
+
const C = Date.now();
|
|
11122
11122
|
AP({
|
|
11123
11123
|
id: m,
|
|
11124
11124
|
name: v.action,
|
|
11125
11125
|
ok: y,
|
|
11126
|
-
at:
|
|
11127
|
-
durationMs:
|
|
11128
|
-
error:
|
|
11126
|
+
at: C,
|
|
11127
|
+
durationMs: C - b,
|
|
11128
|
+
error: k
|
|
11129
11129
|
});
|
|
11130
11130
|
}
|
|
11131
11131
|
};
|
|
@@ -11455,12 +11455,12 @@ var Ad = /* @__PURE__ */ U({
|
|
|
11455
11455
|
m(() => {
|
|
11456
11456
|
y = !0;
|
|
11457
11457
|
});
|
|
11458
|
-
const
|
|
11458
|
+
const k = Object.keys(b);
|
|
11459
11459
|
(async () => {
|
|
11460
|
-
for (const
|
|
11460
|
+
for (const C of k) {
|
|
11461
11461
|
if (y) break;
|
|
11462
|
-
if (v && h[
|
|
11463
|
-
const w = b[
|
|
11462
|
+
if (v && h[C] === v[C]) continue;
|
|
11463
|
+
const w = b[C];
|
|
11464
11464
|
if (!w) continue;
|
|
11465
11465
|
const _ = Array.isArray(w) ? w : [w];
|
|
11466
11466
|
await wh(
|
|
@@ -11477,26 +11477,26 @@ var Ad = /* @__PURE__ */ U({
|
|
|
11477
11477
|
), () => {
|
|
11478
11478
|
const h = c.value;
|
|
11479
11479
|
if (!(e.element.visible === void 0 ? !0 : Ka(e.element.visible, h))) return null;
|
|
11480
|
-
const m = e.element.props, b = kP(m, h), y = SP(m, h),
|
|
11481
|
-
if (!
|
|
11480
|
+
const m = e.element.props, b = kP(m, h), y = SP(m, h), k = y !== e.element.props ? { ...e.element, props: y } : e.element, C = e.registry[k.type] ?? e.fallback;
|
|
11481
|
+
if (!C)
|
|
11482
11482
|
return console.warn(
|
|
11483
|
-
`[json-render] No renderer for component type: ${
|
|
11483
|
+
`[json-render] No renderer for component type: ${k.type}`
|
|
11484
11484
|
), null;
|
|
11485
|
-
const w = Ly.get(e.registry)?.[
|
|
11486
|
-
if (
|
|
11487
|
-
const
|
|
11488
|
-
for (const R of Object.keys(
|
|
11485
|
+
const w = Ly.get(e.registry)?.[k.type];
|
|
11486
|
+
if (k.slots && w?.slots) {
|
|
11487
|
+
const E = new Set(w.slots);
|
|
11488
|
+
for (const R of Object.keys(k.slots))
|
|
11489
11489
|
R === "default" ? console.warn(
|
|
11490
|
-
`[json-render] Component "${
|
|
11491
|
-
) :
|
|
11492
|
-
`[json-render] Unknown slot "${R}" on component "${
|
|
11490
|
+
`[json-render] Component "${k.type}" uses slots.default. Use "children" for default slot content.`
|
|
11491
|
+
) : E.has(R) || console.warn(
|
|
11492
|
+
`[json-render] Unknown slot "${R}" on component "${k.type}". Available slots: ${w.slots.join(", ")}`
|
|
11493
11493
|
);
|
|
11494
11494
|
}
|
|
11495
|
-
const _ = (
|
|
11495
|
+
const _ = (E, R) => E.map((P) => {
|
|
11496
11496
|
const q = e.spec.elements[P];
|
|
11497
11497
|
if (!q) {
|
|
11498
11498
|
if (!e.loading) {
|
|
11499
|
-
const L = R ? `in slot "${R}" of "${
|
|
11499
|
+
const L = R ? `in slot "${R}" of "${k.type}"` : `as child of "${k.type}"`;
|
|
11500
11500
|
console.warn(
|
|
11501
11501
|
`[json-render] Missing element "${P}" referenced ${L}. This element will not render.`
|
|
11502
11502
|
);
|
|
@@ -11512,21 +11512,21 @@ var Ad = /* @__PURE__ */ U({
|
|
|
11512
11512
|
loading: e.loading,
|
|
11513
11513
|
fallback: e.fallback
|
|
11514
11514
|
});
|
|
11515
|
-
}).filter((P) => P !== null), O =
|
|
11516
|
-
element:
|
|
11515
|
+
}).filter((P) => P !== null), O = k.repeat ? _e(wO, {
|
|
11516
|
+
element: k,
|
|
11517
11517
|
spec: e.spec,
|
|
11518
11518
|
registry: e.registry,
|
|
11519
11519
|
loading: e.loading,
|
|
11520
11520
|
fallback: e.fallback
|
|
11521
|
-
}) :
|
|
11522
|
-
Object.entries(
|
|
11523
|
-
|
|
11524
|
-
() => _(R,
|
|
11521
|
+
}) : k.children ? _(k.children) : void 0, T = k.slots ? Object.fromEntries(
|
|
11522
|
+
Object.entries(k.slots).filter(([E]) => E !== "default").map(([E, R]) => [
|
|
11523
|
+
E,
|
|
11524
|
+
() => _(R, E)
|
|
11525
11525
|
])
|
|
11526
11526
|
) : {}, D = _e(
|
|
11527
|
-
|
|
11527
|
+
C,
|
|
11528
11528
|
{
|
|
11529
|
-
element:
|
|
11529
|
+
element: k,
|
|
11530
11530
|
emit: u,
|
|
11531
11531
|
on: f,
|
|
11532
11532
|
bindings: b,
|
|
@@ -11540,7 +11540,7 @@ var Ad = /* @__PURE__ */ U({
|
|
|
11540
11540
|
) : D;
|
|
11541
11541
|
return _e(
|
|
11542
11542
|
yO,
|
|
11543
|
-
{ elementType:
|
|
11543
|
+
{ elementType: k.type },
|
|
11544
11544
|
{ default: () => $ }
|
|
11545
11545
|
);
|
|
11546
11546
|
};
|
|
@@ -11885,17 +11885,17 @@ const TO = ({
|
|
|
11885
11885
|
const {
|
|
11886
11886
|
size: b,
|
|
11887
11887
|
color: y,
|
|
11888
|
-
strokeWidth:
|
|
11889
|
-
absoluteStrokeWidth:
|
|
11888
|
+
strokeWidth: k = 2,
|
|
11889
|
+
absoluteStrokeWidth: C = !1,
|
|
11890
11890
|
nonScalingStroke: w = !1,
|
|
11891
11891
|
class: _ = ""
|
|
11892
|
-
} = OO(), O = Ui(a) || Ui(r) || a === !0 || r === !0 ||
|
|
11892
|
+
} = OO(), O = Ui(a) || Ui(r) || a === !0 || r === !0 || C === !0, T = Ui(i) || Ui(s) || i === !0 || s === !0 || w === !0;
|
|
11893
11893
|
delete v.class;
|
|
11894
|
-
const D = m.default?.(), [, $,
|
|
11894
|
+
const D = m.default?.(), [, $, E = []] = CO(o, {
|
|
11895
11895
|
color: h ?? y,
|
|
11896
11896
|
width: f ?? u ?? b,
|
|
11897
11897
|
height: p ?? u ?? b,
|
|
11898
|
-
strokeWidth: l ?? c ??
|
|
11898
|
+
strokeWidth: l ?? c ?? k,
|
|
11899
11899
|
absoluteStrokeWidth: O,
|
|
11900
11900
|
nonScalingStroke: T,
|
|
11901
11901
|
className: _,
|
|
@@ -11903,7 +11903,7 @@ const TO = ({
|
|
|
11903
11903
|
attributes: v
|
|
11904
11904
|
});
|
|
11905
11905
|
return _e("svg", $, [
|
|
11906
|
-
...
|
|
11906
|
+
...E.map(([R, P]) => _e(R, P)),
|
|
11907
11907
|
...D ?? []
|
|
11908
11908
|
]);
|
|
11909
11909
|
};
|
|
@@ -14729,7 +14729,7 @@ const xT = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
14729
14729
|
lg: "min-h-[var(--ui-button-lg,var(--ui-control-lg))] py-[max(0px,calc((var(--ui-button-lg,var(--ui-control-lg))_-_2px_-_1lh)_/_2))] px-4"
|
|
14730
14730
|
}, s = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(null), c = /* @__PURE__ */ N(!1), u = /* @__PURE__ */ N(!1), f = /* @__PURE__ */ N(!1), p = (y) => y instanceof Element && (y.localName === "svg" || y.hasAttribute("data-icon"));
|
|
14731
14731
|
function h() {
|
|
14732
|
-
const y = s.value,
|
|
14732
|
+
const y = s.value, k = y ? [...y.childNodes].filter((T) => T.nodeType === Node.ELEMENT_NODE || T.nodeType === Node.TEXT_NODE && T.textContent?.trim()) : [], C = !!y?.textContent?.trim(), w = !!y && !C && k.some(p), _ = C && k.length > 1 && p(k[0]), O = C && k.length > 1 && p(k[k.length - 1]);
|
|
14733
14733
|
w !== c.value && (c.value = w), _ !== u.value && (u.value = _), O !== f.value && (f.value = O);
|
|
14734
14734
|
}
|
|
14735
14735
|
We(h), Ga(h);
|
|
@@ -14753,7 +14753,7 @@ const xT = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
14753
14753
|
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"
|
|
14754
14754
|
)
|
|
14755
14755
|
);
|
|
14756
|
-
return (y,
|
|
14756
|
+
return (y, k) => (g(), I("button", {
|
|
14757
14757
|
ref_key: "buttonEl",
|
|
14758
14758
|
ref: l,
|
|
14759
14759
|
type: e.type,
|
|
@@ -14766,8 +14766,8 @@ const xT = ["type", "disabled", "data-disabled", "data-loading", "data-kind", "d
|
|
|
14766
14766
|
"aria-busy": r.value || void 0,
|
|
14767
14767
|
"data-ui-hit": "",
|
|
14768
14768
|
"data-syno-pkg-land-ui": "",
|
|
14769
|
-
onClick:
|
|
14770
|
-
(...
|
|
14769
|
+
onClick: k[0] || (k[0] = //@ts-ignore
|
|
14770
|
+
(...C) => d(a) && d(a)(...C))
|
|
14771
14771
|
}, [
|
|
14772
14772
|
r.value ? (g(), I("span", ST, [
|
|
14773
14773
|
Z(Od, { size: 16 })
|
|
@@ -15080,23 +15080,23 @@ function Bt(e, t, n, o = {}) {
|
|
|
15080
15080
|
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));
|
|
15081
15081
|
let v = l;
|
|
15082
15082
|
t || (t = "modelValue"), v = v || `update:${t.toString()}`;
|
|
15083
|
-
const m = (
|
|
15084
|
-
f ? f(
|
|
15083
|
+
const m = (k) => i ? typeof i == "function" ? i(k) : jT(k) : k, b = () => TT(e[t]) ? m(e[t]) : u, y = (k) => {
|
|
15084
|
+
f ? f(k) && h(v, k) : h(v, k);
|
|
15085
15085
|
};
|
|
15086
15086
|
if (s) {
|
|
15087
|
-
const
|
|
15088
|
-
let
|
|
15087
|
+
const k = /* @__PURE__ */ N(b());
|
|
15088
|
+
let C = !1;
|
|
15089
15089
|
return ee(() => e[t], (w) => {
|
|
15090
|
-
|
|
15091
|
-
}), ee(
|
|
15092
|
-
!
|
|
15093
|
-
}, { deep: c }),
|
|
15090
|
+
C || (C = !0, k.value = m(w), Be(() => C = !1));
|
|
15091
|
+
}), ee(k, (w) => {
|
|
15092
|
+
!C && (w !== e[t] || c) && y(w);
|
|
15093
|
+
}, { deep: c }), k;
|
|
15094
15094
|
} else return x({
|
|
15095
15095
|
get() {
|
|
15096
15096
|
return b();
|
|
15097
15097
|
},
|
|
15098
|
-
set(
|
|
15099
|
-
y(
|
|
15098
|
+
set(k) {
|
|
15099
|
+
y(k);
|
|
15100
15100
|
}
|
|
15101
15101
|
});
|
|
15102
15102
|
}
|
|
@@ -15227,7 +15227,7 @@ function e$(e) {
|
|
|
15227
15227
|
const t$ = () => typeof matchMedia == "function" && matchMedia("(pointer: coarse)").matches;
|
|
15228
15228
|
function er(e) {
|
|
15229
15229
|
const t = di(), n = AT(), o = /* @__PURE__ */ Symbol("primary-control"), a = n?.claimControl?.(o), r = x(() => n?.isPrimaryControl ? n.isPrimaryControl(o) ? n : null : a === !1 ? null : n);
|
|
15230
|
-
n && Ze(_l, null), ee([r, e.value], ([y,
|
|
15230
|
+
n && Ze(_l, null), ee([r, e.value], ([y, k]) => y?.setValue(k), { immediate: !0 }), ee([r, e.disabled], ([y, k]) => y?.setDisabled(k === !0), { immediate: !0 });
|
|
15231
15231
|
const i = n?.defaultControlId ?? n?.controlId, s = () => {
|
|
15232
15232
|
const y = e.id?.() ?? t.id;
|
|
15233
15233
|
r.value?.setControlId?.(typeof y == "string" ? y : i);
|
|
@@ -15239,22 +15239,22 @@ function er(e) {
|
|
|
15239
15239
|
f && (We(() => l.registerTextControl(f)), Re(() => l.unregisterTextControl(f)));
|
|
15240
15240
|
const p = (y) => {
|
|
15241
15241
|
if (!c) return {};
|
|
15242
|
-
const
|
|
15243
|
-
return
|
|
15242
|
+
const k = e$(c.type()), C = f && !k.enterkeyhint ? l.enterKeyHint(f) : void 0;
|
|
15243
|
+
return C && (k.enterkeyhint = C, C === "next" && !y && (k.onKeydown = (w) => {
|
|
15244
15244
|
if (w.key !== "Enter" || w.isComposing || w.keyCode === 229 || w.shiftKey || w.altKey || w.ctrlKey || w.metaKey || !t$()) return;
|
|
15245
15245
|
const _ = l.nextTextControl(f);
|
|
15246
15246
|
_ && (w.preventDefault(), YT(_));
|
|
15247
|
-
})),
|
|
15247
|
+
})), k;
|
|
15248
15248
|
}, h = () => ({ class: t.class, style: t.style }), v = () => {
|
|
15249
|
-
const y = Object.fromEntries(Object.entries(t).filter(([_]) => _ !== "class" && _ !== "style")),
|
|
15249
|
+
const y = Object.fromEntries(Object.entries(t).filter(([_]) => _ !== "class" && _ !== "style")), k = [...new Set(`${r.value?.describedBy ?? ""} ${y["aria-describedby"] ?? ""}`.split(/\s+/).filter(Boolean))].join(" ") || void 0, C = e.ariaLabel?.() || y["aria-label"], w = e.id?.() ?? y.id ?? r.value?.controlId;
|
|
15250
15250
|
return {
|
|
15251
15251
|
...ce(p(y.enterkeyhint !== void 0), { onBlur: r.value?.onBlur }, y),
|
|
15252
15252
|
id: w === void 0 ? void 0 : String(w),
|
|
15253
|
-
"aria-labelledby": e.ariaLabelledby?.() ?? y["aria-labelledby"] ?? (
|
|
15254
|
-
"aria-label":
|
|
15253
|
+
"aria-labelledby": e.ariaLabelledby?.() ?? y["aria-labelledby"] ?? (C ? void 0 : r.value?.labelId),
|
|
15254
|
+
"aria-label": C === void 0 ? void 0 : String(C),
|
|
15255
15255
|
"aria-invalid": y["aria-invalid"] ?? (e.invalid?.() || r.value?.invalid || void 0),
|
|
15256
15256
|
"aria-required": y["aria-required"] ?? (r.value?.required || void 0),
|
|
15257
|
-
"aria-describedby":
|
|
15257
|
+
"aria-describedby": k
|
|
15258
15258
|
};
|
|
15259
15259
|
};
|
|
15260
15260
|
function m(y) {
|
|
@@ -15313,7 +15313,7 @@ const r$ = ["value", "type", "name", "placeholder", "disabled", "readonly"], i$
|
|
|
15313
15313
|
invalid: () => n.invalid,
|
|
15314
15314
|
keyboard: { type: () => n.type, element: () => h.value, active: () => !o.value && !n.readonly }
|
|
15315
15315
|
});
|
|
15316
|
-
return (
|
|
15316
|
+
return (k, C) => c.value || s.value ? (g(), I("span", ce({ key: 0 }, d(m)(), {
|
|
15317
15317
|
class: ["flex min-w-0 items-center gap-2", u.value ? "max-w-full" : "w-full"],
|
|
15318
15318
|
"data-syno-pkg-land-ui": ""
|
|
15319
15319
|
}), [
|
|
@@ -15331,7 +15331,7 @@ const r$ = ["value", "type", "name", "placeholder", "disabled", "readonly"], i$
|
|
|
15331
15331
|
disabled: d(o),
|
|
15332
15332
|
readonly: e.readonly,
|
|
15333
15333
|
class: p.value,
|
|
15334
|
-
onInput:
|
|
15334
|
+
onInput: C[0] || (C[0] = (w) => {
|
|
15335
15335
|
d(b)(w.target.value), a("update:modelValue", w.target.value);
|
|
15336
15336
|
})
|
|
15337
15337
|
}), null, 16, r$),
|
|
@@ -15343,7 +15343,7 @@ const r$ = ["value", "type", "name", "placeholder", "disabled", "readonly"], i$
|
|
|
15343
15343
|
"aria-label": l.value ? d(r)("Hide password") : d(r)("Show password"),
|
|
15344
15344
|
"aria-pressed": l.value,
|
|
15345
15345
|
class: "absolute right-1 flex size-6 [--ui-hit-end-room:4px] items-center justify-center rounded-[var(--ui-radius-inner)] border-0 bg-transparent p-0 text-[var(--ui-text-secondary)] outline-none hover:text-[var(--ui-text)] focus-visible:shadow-[var(--ui-shadow-focus)] disabled:opacity-40",
|
|
15346
|
-
onClick:
|
|
15346
|
+
onClick: C[1] || (C[1] = (w) => l.value = !l.value)
|
|
15347
15347
|
}, [
|
|
15348
15348
|
l.value ? (g(), z(d(WO), {
|
|
15349
15349
|
key: 0,
|
|
@@ -15361,7 +15361,7 @@ const r$ = ["value", "type", "name", "placeholder", "disabled", "readonly"], i$
|
|
|
15361
15361
|
"data-ui-input-unit": "",
|
|
15362
15362
|
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)]"])
|
|
15363
15363
|
}, [
|
|
15364
|
-
B(
|
|
15364
|
+
B(k.$slots, "unit", {}, () => [
|
|
15365
15365
|
Ie(oe(e.unit), 1)
|
|
15366
15366
|
])
|
|
15367
15367
|
], 2)) : W("", !0)
|
|
@@ -15378,7 +15378,7 @@ const r$ = ["value", "type", "name", "placeholder", "disabled", "readonly"], i$
|
|
|
15378
15378
|
readonly: e.readonly,
|
|
15379
15379
|
class: p.value,
|
|
15380
15380
|
"data-syno-pkg-land-ui": "",
|
|
15381
|
-
onInput:
|
|
15381
|
+
onInput: C[2] || (C[2] = (w) => {
|
|
15382
15382
|
d(b)(w.target.value), a("update:modelValue", w.target.value);
|
|
15383
15383
|
})
|
|
15384
15384
|
}), null, 16, s$));
|
|
@@ -15583,16 +15583,16 @@ function Oh(e, t, n, o = {}) {
|
|
|
15583
15583
|
e.key === "ArrowDown",
|
|
15584
15584
|
e.key === "Home",
|
|
15585
15585
|
e.key === "End"
|
|
15586
|
-
], y = h || v,
|
|
15587
|
-
if (!m && !b && (!y && !
|
|
15588
|
-
const
|
|
15589
|
-
if (!
|
|
15586
|
+
], y = h || v, k = f || p;
|
|
15587
|
+
if (!m && !b && (!y && !k || a === "vertical" && k || a === "horizontal" && y)) return null;
|
|
15588
|
+
const C = n ? Array.from(n.querySelectorAll(r)) : i;
|
|
15589
|
+
if (!C.length) return null;
|
|
15590
15590
|
c && e.preventDefault();
|
|
15591
15591
|
let w = null;
|
|
15592
|
-
return
|
|
15592
|
+
return k || y ? w = lb(C, t, {
|
|
15593
15593
|
goForward: y ? v : l === "ltr" ? f : p,
|
|
15594
15594
|
loop: s
|
|
15595
|
-
}) : m ? w =
|
|
15595
|
+
}) : m ? w = C.at(0) || null : b && (w = C.at(-1) || null), u && w?.focus(), w;
|
|
15596
15596
|
}
|
|
15597
15597
|
function lb(e, t, n, o = e.includes(t) ? e.length : e.length + 1) {
|
|
15598
15598
|
if (--o === 0) return null;
|
|
@@ -15958,40 +15958,44 @@ function k$(e) {
|
|
|
15958
15958
|
}
|
|
15959
15959
|
const pb = k$(), Dh = /* @__PURE__ */ Symbol("useBodyScrollLock"), C$ = /* @__PURE__ */ Yy(() => {
|
|
15960
15960
|
const e = /* @__PURE__ */ N(/* @__PURE__ */ new Map());
|
|
15961
|
-
let t;
|
|
15962
|
-
const
|
|
15963
|
-
const
|
|
15964
|
-
return () =>
|
|
15965
|
-
},
|
|
15966
|
-
for (const
|
|
15961
|
+
let t, n = 0;
|
|
15962
|
+
const o = (l, c, u = l.getPropertyValue(c)) => {
|
|
15963
|
+
const f = l.getPropertyPriority(c);
|
|
15964
|
+
return () => l.setProperty(c, u, f);
|
|
15965
|
+
}, a = x(() => {
|
|
15966
|
+
for (const l of e.value.values()) if (l) return !0;
|
|
15967
15967
|
return !1;
|
|
15968
|
-
}),
|
|
15969
|
-
let
|
|
15970
|
-
const
|
|
15971
|
-
t?.(), t = void 0, db(document, Dh), kh &&
|
|
15968
|
+
}), r = tr({ scrollBody: /* @__PURE__ */ N(!0) });
|
|
15969
|
+
let i = null;
|
|
15970
|
+
const s = () => {
|
|
15971
|
+
n && cancelAnimationFrame(n), n = 0, t?.(), t = void 0, db(document, Dh), kh && i?.();
|
|
15972
15972
|
};
|
|
15973
|
-
return ee(
|
|
15973
|
+
return ee(a, (l, c) => {
|
|
15974
15974
|
if (!yn) return;
|
|
15975
|
-
if (!
|
|
15976
|
-
|
|
15975
|
+
if (!l) {
|
|
15976
|
+
c && s();
|
|
15977
15977
|
return;
|
|
15978
15978
|
}
|
|
15979
|
-
const
|
|
15979
|
+
const u = document.body.style, f = o(u, "overflow"), p = o(u, "padding-right"), h = o(u, "margin-right"), v = o(document.documentElement.style, "--scrollbar-width");
|
|
15980
15980
|
t = () => {
|
|
15981
|
-
|
|
15981
|
+
p(), h(), v(), f();
|
|
15982
15982
|
};
|
|
15983
|
-
const
|
|
15984
|
-
|
|
15985
|
-
|
|
15986
|
-
|
|
15987
|
-
|
|
15988
|
-
|
|
15989
|
-
|
|
15990
|
-
|
|
15991
|
-
|
|
15983
|
+
const m = () => {
|
|
15984
|
+
if (n = 0, !a.value) return;
|
|
15985
|
+
const b = window.innerWidth - document.documentElement.clientWidth, y = {
|
|
15986
|
+
padding: b,
|
|
15987
|
+
margin: 0
|
|
15988
|
+
}, k = r.scrollBody?.value ? typeof r.scrollBody.value == "object" ? pb({
|
|
15989
|
+
padding: r.scrollBody.value.padding === !0 ? b : r.scrollBody.value.padding,
|
|
15990
|
+
margin: r.scrollBody.value.margin === !0 ? b : r.scrollBody.value.margin
|
|
15991
|
+
}, y) : y : {
|
|
15992
|
+
padding: 0,
|
|
15993
|
+
margin: 0
|
|
15994
|
+
};
|
|
15995
|
+
b > 0 && (document.body.style.paddingRight = typeof k.padding == "number" ? `${k.padding}px` : String(k.padding), document.body.style.marginRight = typeof k.margin == "number" ? `${k.margin}px` : String(k.margin), document.documentElement.style.setProperty("--scrollbar-width", `${b}px`), document.body.style.overflow = "hidden"), document.body.style.overflow = "hidden";
|
|
15992
15996
|
};
|
|
15993
|
-
|
|
15994
|
-
|
|
15997
|
+
n && cancelAnimationFrame(n), n = typeof requestAnimationFrame == "function" ? requestAnimationFrame(m) : (m(), 0), kh && (i = ct(document, "touchmove", (b) => E$(b), { passive: !1 })), Be(() => {
|
|
15998
|
+
a.value && cb(document, Dh);
|
|
15995
15999
|
});
|
|
15996
16000
|
}, {
|
|
15997
16001
|
immediate: !0,
|
|
@@ -16496,16 +16500,16 @@ function K$(e, t) {
|
|
|
16496
16500
|
unmounted: { MOUNT: "mounted" }
|
|
16497
16501
|
}), f = (y) => {
|
|
16498
16502
|
if (yn) {
|
|
16499
|
-
const
|
|
16503
|
+
const k = new CustomEvent(y, {
|
|
16500
16504
|
bubbles: !1,
|
|
16501
16505
|
cancelable: !1
|
|
16502
16506
|
});
|
|
16503
|
-
t.value?.dispatchEvent(
|
|
16507
|
+
t.value?.dispatchEvent(k);
|
|
16504
16508
|
}
|
|
16505
16509
|
};
|
|
16506
|
-
ee(e, async (y,
|
|
16507
|
-
const
|
|
16508
|
-
if (await Be(),
|
|
16510
|
+
ee(e, async (y, k) => {
|
|
16511
|
+
const C = k !== y;
|
|
16512
|
+
if (await Be(), C) {
|
|
16509
16513
|
const w = o.value;
|
|
16510
16514
|
if (y) {
|
|
16511
16515
|
u("MOUNT"), f("enter"), l(() => {
|
|
@@ -16514,23 +16518,23 @@ function K$(e, t) {
|
|
|
16514
16518
|
return;
|
|
16515
16519
|
}
|
|
16516
16520
|
const _ = wr(t.value);
|
|
16517
|
-
_ === "none" || _ === "undefined" || n.value?.display === "none" ? (u("UNMOUNT"), f("leave"), f("after-leave")) :
|
|
16521
|
+
_ === "none" || _ === "undefined" || n.value?.display === "none" ? (u("UNMOUNT"), f("leave"), f("after-leave")) : k && w !== _ ? (u("ANIMATION_OUT"), f("leave")) : (u("UNMOUNT"), f("after-leave"));
|
|
16518
16522
|
}
|
|
16519
16523
|
}, { immediate: !0 });
|
|
16520
16524
|
const p = (y) => {
|
|
16521
16525
|
if (y.target !== t.value) return;
|
|
16522
|
-
const
|
|
16523
|
-
if (
|
|
16526
|
+
const k = wr(t.value), C = k.includes(CSS.escape(y.animationName)), w = c.value === "mounted" ? "enter" : "leave";
|
|
16527
|
+
if (C && (f(`after-${w}`), u("ANIMATION_END"), !a.value)) {
|
|
16524
16528
|
const _ = t.value.style.animationFillMode;
|
|
16525
16529
|
t.value.style.animationFillMode = "forwards", i = s?.setTimeout(() => {
|
|
16526
16530
|
t.value?.style.animationFillMode === "forwards" && (t.value.style.animationFillMode = _);
|
|
16527
16531
|
});
|
|
16528
16532
|
}
|
|
16529
|
-
|
|
16533
|
+
k === "none" && u("ANIMATION_END");
|
|
16530
16534
|
}, h = (y) => {
|
|
16531
16535
|
y.target === t.value && (o.value = wr(t.value));
|
|
16532
|
-
}, v = ee(t, (y,
|
|
16533
|
-
y ? (n.value = getComputedStyle(y), y.addEventListener("animationstart", h), y.addEventListener("animationcancel", p), y.addEventListener("animationend", p)) : (u("ANIMATION_END"), i !== void 0 && s?.clearTimeout(i),
|
|
16536
|
+
}, v = ee(t, (y, k) => {
|
|
16537
|
+
y ? (n.value = getComputedStyle(y), y.addEventListener("animationstart", h), y.addEventListener("animationcancel", p), y.addEventListener("animationend", p)) : (u("ANIMATION_END"), i !== void 0 && s?.clearTimeout(i), k?.removeEventListener("animationstart", h), k?.removeEventListener("animationcancel", p), k?.removeEventListener("animationend", p));
|
|
16534
16538
|
}, { immediate: !0 }), m = ee(c, () => {
|
|
16535
16539
|
if (c.value !== "mounted") {
|
|
16536
16540
|
o.value = "none";
|
|
@@ -16827,11 +16831,11 @@ var aI = /* @__PURE__ */ U({
|
|
|
16827
16831
|
r,
|
|
16828
16832
|
() => n.disableOutsidePointerEvents,
|
|
16829
16833
|
() => n.present
|
|
16830
|
-
], ([v, m, b], y,
|
|
16834
|
+
], ([v, m, b], y, k) => {
|
|
16831
16835
|
if (!(!v || !b) && m) {
|
|
16832
|
-
const
|
|
16833
|
-
cb(
|
|
16834
|
-
Ao.layersWithOutsidePointerEventsDisabled.delete(v), db(
|
|
16836
|
+
const C = v.ownerDocument;
|
|
16837
|
+
cb(C, v), Ao.layersWithOutsidePointerEventsDisabled.add(v), k(() => {
|
|
16838
|
+
Ao.layersWithOutsidePointerEventsDisabled.delete(v), db(C, v);
|
|
16835
16839
|
});
|
|
16836
16840
|
}
|
|
16837
16841
|
}, { immediate: !0 }), ee([r, () => n.present], ([v, m], b, y) => {
|
|
@@ -16987,25 +16991,25 @@ var fI = /* @__PURE__ */ U({
|
|
|
16987
16991
|
const O = _.relatedTarget;
|
|
16988
16992
|
O !== null && (h.contains(O) || zn(s.value, { select: !0 }));
|
|
16989
16993
|
}
|
|
16990
|
-
function
|
|
16994
|
+
function k(_) {
|
|
16991
16995
|
const O = s.value;
|
|
16992
|
-
if (O === null || !_.some((
|
|
16996
|
+
if (O === null || !_.some((E) => E.removedNodes.length > 0)) return;
|
|
16993
16997
|
const D = vt();
|
|
16994
16998
|
if (D && h.contains(D)) return;
|
|
16995
16999
|
h.contains(O) || zn(h);
|
|
16996
17000
|
}
|
|
16997
|
-
function
|
|
17001
|
+
function C(_) {
|
|
16998
17002
|
if (c.paused || !h) return;
|
|
16999
17003
|
const O = _.composedPath()[0];
|
|
17000
17004
|
sI(h, O) || zn(s.value, { select: !0 });
|
|
17001
17005
|
}
|
|
17002
|
-
m.addEventListener("focusin", b), m.addEventListener("focusout", y), m !== v && v.addEventListener("focusin",
|
|
17003
|
-
const w = new MutationObserver(
|
|
17006
|
+
m.addEventListener("focusin", b), m.addEventListener("focusout", y), m !== v && v.addEventListener("focusin", C);
|
|
17007
|
+
const w = new MutationObserver(k);
|
|
17004
17008
|
h && w.observe(h, {
|
|
17005
17009
|
childList: !0,
|
|
17006
17010
|
subtree: !0
|
|
17007
17011
|
}), p(() => {
|
|
17008
|
-
m.removeEventListener("focusin", b), m.removeEventListener("focusout", y), m !== v && v.removeEventListener("focusin",
|
|
17012
|
+
m.removeEventListener("focusin", b), m.removeEventListener("focusout", y), m !== v && v.removeEventListener("focusin", C), w.disconnect();
|
|
17009
17013
|
});
|
|
17010
17014
|
});
|
|
17011
17015
|
function u(p, h) {
|
|
@@ -17018,8 +17022,8 @@ var fI = /* @__PURE__ */ U({
|
|
|
17018
17022
|
n.present !== !1 && l.add(c);
|
|
17019
17023
|
const v = vt();
|
|
17020
17024
|
!h.contains(v) && n.present !== !1 && u(h, v), p(() => {
|
|
17021
|
-
const b = new CustomEvent(Nu, Nh), y = (
|
|
17022
|
-
o("unmountAutoFocus",
|
|
17025
|
+
const b = new CustomEvent(Nu, Nh), y = (k) => {
|
|
17026
|
+
o("unmountAutoFocus", k);
|
|
17023
17027
|
};
|
|
17024
17028
|
h.addEventListener(Nu, y), h.dispatchEvent(b), h.setAttribute("data-focus-scope-unmounting", ""), setTimeout(() => {
|
|
17025
17029
|
b.defaultPrevented || zn(v ?? document.body, { select: !0 }), h.removeEventListener(Nu, y), l.remove(c), h.removeAttribute("data-focus-scope-unmounting");
|
|
@@ -17624,7 +17628,7 @@ function In(e = {}) {
|
|
|
17624
17628
|
}, i = (f = !1) => {
|
|
17625
17629
|
const p = a.collectionRef.value;
|
|
17626
17630
|
if (!p) return [];
|
|
17627
|
-
const h = Array.from(p.querySelectorAll(`[${Fh}]`)), v = new Map(h.map((y,
|
|
17631
|
+
const h = Array.from(p.querySelectorAll(`[${Fh}]`)), v = new Map(h.map((y, k) => [y, k])), b = Array.from(a.itemMap.value.values()).sort((y, k) => (v.get(y.ref) ?? -1) - (v.get(k.ref) ?? -1));
|
|
17628
17632
|
return f ? b : b.filter((y) => y.ref.dataset.disabled !== "");
|
|
17629
17633
|
}, s = /* @__PURE__ */ U({
|
|
17630
17634
|
name: "CollectionSlot",
|
|
@@ -17932,7 +17936,7 @@ var QI = /* @__PURE__ */ U({
|
|
|
17932
17936
|
"leave"
|
|
17933
17937
|
],
|
|
17934
17938
|
setup(e, { expose: t, emit: n }) {
|
|
17935
|
-
const o = e, a = n, { multiple: r, highlightOnHover: i, loop: s, orientation: l, disabled: c, selectionBehavior: u, dir: f } = /* @__PURE__ */ It(o), { getItems: p, getItem: h } = In({ isProvider: !0 }), { handleTypeaheadSearch: v } = Cl(), { primitiveElement: m, currentElement: b } = ti(), y = V$(),
|
|
17939
|
+
const o = e, a = n, { multiple: r, highlightOnHover: i, loop: s, orientation: l, disabled: c, selectionBehavior: u, dir: f } = /* @__PURE__ */ It(o), { getItems: p, getItem: h } = In({ isProvider: !0 }), { handleTypeaheadSearch: v } = Cl(), { primitiveElement: m, currentElement: b } = ti(), y = V$(), k = ga(f), C = JI(null);
|
|
17936
17940
|
XI({
|
|
17937
17941
|
suppressHighlightScroll: /* @__PURE__ */ N(!1),
|
|
17938
17942
|
onHighlightScrollRequest: () => {
|
|
@@ -17952,18 +17956,18 @@ var QI = /* @__PURE__ */ U({
|
|
|
17952
17956
|
O.value = !1;
|
|
17953
17957
|
}, 1);
|
|
17954
17958
|
}
|
|
17955
|
-
const
|
|
17959
|
+
const E = /* @__PURE__ */ N(null), R = /* @__PURE__ */ N(null), P = /* @__PURE__ */ N(!1), q = /* @__PURE__ */ N(!1), L = /* @__PURE__ */ ps(), j = /* @__PURE__ */ ps(), H = /* @__PURE__ */ ps();
|
|
17956
17960
|
function V() {
|
|
17957
17961
|
return p().map((S) => S.ref).filter((S) => S.dataset.disabled !== "");
|
|
17958
17962
|
}
|
|
17959
17963
|
function K(S, A = !0, F) {
|
|
17960
17964
|
if (!S) return;
|
|
17961
|
-
|
|
17962
|
-
const G =
|
|
17963
|
-
(F ?? T.value) && (G ?
|
|
17964
|
-
const Q =
|
|
17965
|
+
E.value = S;
|
|
17966
|
+
const G = C?.suppressHighlightScroll.value ?? !1;
|
|
17967
|
+
(F ?? T.value) && (G ? E.value.focus({ preventScroll: !0 }) : E.value.focus()), G ? C?.onHighlightScrollRequest(A ? () => {
|
|
17968
|
+
const Q = E.value;
|
|
17965
17969
|
Q?.isConnected && Q.scrollIntoView({ block: "nearest" });
|
|
17966
|
-
} : void 0) : A &&
|
|
17970
|
+
} : void 0) : A && E.value.scrollIntoView({ block: "nearest" });
|
|
17967
17971
|
const Y = h(S);
|
|
17968
17972
|
a("highlight", Y);
|
|
17969
17973
|
}
|
|
@@ -17971,13 +17975,13 @@ var QI = /* @__PURE__ */ U({
|
|
|
17971
17975
|
if (P.value) H.trigger(S);
|
|
17972
17976
|
else {
|
|
17973
17977
|
const A = p().find((F) => Fr(F.value, S, o.by));
|
|
17974
|
-
A && (
|
|
17978
|
+
A && (E.value = A.ref, K(A.ref));
|
|
17975
17979
|
}
|
|
17976
17980
|
}
|
|
17977
17981
|
function he(S) {
|
|
17978
|
-
if (
|
|
17982
|
+
if (E.value && E.value.isConnected) {
|
|
17979
17983
|
if (S.ctrlKey || S.metaKey || S.altKey) return;
|
|
17980
|
-
S.preventDefault(), S.stopPropagation(), q.value ||
|
|
17984
|
+
S.preventDefault(), S.stopPropagation(), q.value || E.value.click();
|
|
17981
17985
|
}
|
|
17982
17986
|
}
|
|
17983
17987
|
function be(S) {
|
|
@@ -18015,8 +18019,8 @@ var QI = /* @__PURE__ */ U({
|
|
|
18015
18019
|
});
|
|
18016
18020
|
}
|
|
18017
18021
|
function Je(S) {
|
|
18018
|
-
const A =
|
|
18019
|
-
A?.isConnected && (R.value = A),
|
|
18022
|
+
const A = E.value;
|
|
18023
|
+
A?.isConnected && (R.value = A), E.value = null, a("leave", S);
|
|
18020
18024
|
}
|
|
18021
18025
|
function ae(S) {
|
|
18022
18026
|
const A = new CustomEvent("listbox.entryFocus", {
|
|
@@ -18037,14 +18041,14 @@ var QI = /* @__PURE__ */ U({
|
|
|
18037
18041
|
return S === "next" ? G === Y : G === 1;
|
|
18038
18042
|
}
|
|
18039
18043
|
function we(S) {
|
|
18040
|
-
const A = xb(S, l.value,
|
|
18044
|
+
const A = xb(S, l.value, k.value);
|
|
18041
18045
|
if (!A) return;
|
|
18042
18046
|
let F = V();
|
|
18043
|
-
if (
|
|
18047
|
+
if (E.value) {
|
|
18044
18048
|
if (A === "last") F.reverse();
|
|
18045
18049
|
else if (A === "prev" || A === "next") {
|
|
18046
18050
|
A === "prev" && F.reverse();
|
|
18047
|
-
const G = F.indexOf(
|
|
18051
|
+
const G = F.indexOf(E.value), Y = s.value && G === F.length - 1;
|
|
18048
18052
|
if (Y && P.value) {
|
|
18049
18053
|
if (ge(A)) {
|
|
18050
18054
|
const Q = A === "next" ? y.HOME : y.END;
|
|
@@ -18059,7 +18063,7 @@ var QI = /* @__PURE__ */ U({
|
|
|
18059
18063
|
de(S, F[0]);
|
|
18060
18064
|
}
|
|
18061
18065
|
if (F.length) {
|
|
18062
|
-
const G = !
|
|
18066
|
+
const G = !E.value && A === "prev" ? F.length - 1 : 0;
|
|
18063
18067
|
K(F[G]);
|
|
18064
18068
|
}
|
|
18065
18069
|
if (P.value) return j.trigger(S);
|
|
@@ -18096,7 +18100,7 @@ var QI = /* @__PURE__ */ U({
|
|
|
18096
18100
|
immediate: !0,
|
|
18097
18101
|
deep: !0
|
|
18098
18102
|
}), t({
|
|
18099
|
-
highlightedElement:
|
|
18103
|
+
highlightedElement: E,
|
|
18100
18104
|
highlightItem: le,
|
|
18101
18105
|
highlightFirstItem: Xe,
|
|
18102
18106
|
highlightSelected: ze,
|
|
@@ -18106,11 +18110,11 @@ var QI = /* @__PURE__ */ U({
|
|
|
18106
18110
|
onValueChange: $,
|
|
18107
18111
|
multiple: r,
|
|
18108
18112
|
orientation: l,
|
|
18109
|
-
dir:
|
|
18113
|
+
dir: k,
|
|
18110
18114
|
disabled: c,
|
|
18111
18115
|
highlightOnHover: i,
|
|
18112
18116
|
loop: s,
|
|
18113
|
-
highlightedElement:
|
|
18117
|
+
highlightedElement: E,
|
|
18114
18118
|
isVirtual: P,
|
|
18115
18119
|
virtualFocusHook: L,
|
|
18116
18120
|
virtualKeydownHook: j,
|
|
@@ -18133,12 +18137,12 @@ var QI = /* @__PURE__ */ U({
|
|
|
18133
18137
|
ref: m,
|
|
18134
18138
|
as: e.as,
|
|
18135
18139
|
"as-child": e.asChild,
|
|
18136
|
-
dir: d(
|
|
18140
|
+
dir: d(k),
|
|
18137
18141
|
"data-disabled": d(c) ? "" : void 0,
|
|
18138
18142
|
onPointerleave: Je,
|
|
18139
18143
|
onFocusout: A[0] || (A[0] = async (F) => {
|
|
18140
18144
|
const G = F.relatedTarget || F.target;
|
|
18141
|
-
await Be(),
|
|
18145
|
+
await Be(), E.value && d(b) && !d(b).contains(G) && Je(F);
|
|
18142
18146
|
})
|
|
18143
18147
|
}, {
|
|
18144
18148
|
default: M(() => [B(S.$slots, "default", { modelValue: d(D) }), d(w) && e.name ? (g(), z(d(xi), {
|
|
@@ -18255,22 +18259,22 @@ var QI = /* @__PURE__ */ U({
|
|
|
18255
18259
|
}), Ut(() => {
|
|
18256
18260
|
r.focusable.value = !0;
|
|
18257
18261
|
});
|
|
18258
|
-
const { isComposing: u, shouldDeferInput: f, handleCompositionStart: p, handleCompositionUpdate: h, handleCompositionEnd: v } = T$((
|
|
18259
|
-
a.value =
|
|
18262
|
+
const { isComposing: u, shouldDeferInput: f, handleCompositionStart: p, handleCompositionUpdate: h, handleCompositionEnd: v } = T$((C) => {
|
|
18263
|
+
a.value = C.target.value, r.onCompositionEnd(), r.highlightFirstItem();
|
|
18260
18264
|
});
|
|
18261
18265
|
function m() {
|
|
18262
18266
|
r.onCompositionStart(), p();
|
|
18263
18267
|
}
|
|
18264
|
-
function b(
|
|
18265
|
-
f.value || (a.value =
|
|
18268
|
+
function b(C) {
|
|
18269
|
+
f.value || (a.value = C.target.value, r.highlightFirstItem());
|
|
18266
18270
|
}
|
|
18267
|
-
function y(
|
|
18268
|
-
u.value || (
|
|
18271
|
+
function y(C) {
|
|
18272
|
+
u.value || (C.preventDefault(), r.onKeydownNavigation(C));
|
|
18269
18273
|
}
|
|
18270
|
-
function
|
|
18271
|
-
u.value || r.onKeydownEnter(
|
|
18274
|
+
function k(C) {
|
|
18275
|
+
u.value || r.onKeydownEnter(C);
|
|
18272
18276
|
}
|
|
18273
|
-
return (
|
|
18277
|
+
return (C, w) => (g(), z(d(Fe), {
|
|
18274
18278
|
ref_key: "primitiveElement",
|
|
18275
18279
|
ref: i,
|
|
18276
18280
|
as: e.as,
|
|
@@ -18286,13 +18290,13 @@ var QI = /* @__PURE__ */ U({
|
|
|
18286
18290
|
"up",
|
|
18287
18291
|
"home",
|
|
18288
18292
|
"end"
|
|
18289
|
-
]), Kn(
|
|
18293
|
+
]), Kn(k, ["enter"])],
|
|
18290
18294
|
onInput: b,
|
|
18291
18295
|
onCompositionstart: m,
|
|
18292
18296
|
onCompositionupdate: d(h),
|
|
18293
18297
|
onCompositionend: d(v)
|
|
18294
18298
|
}, {
|
|
18295
|
-
default: M(() => [B(
|
|
18299
|
+
default: M(() => [B(C.$slots, "default", { modelValue: d(a) })]),
|
|
18296
18300
|
_: 3
|
|
18297
18301
|
}, 8, [
|
|
18298
18302
|
"as",
|
|
@@ -18702,20 +18706,20 @@ async function $D(e, t) {
|
|
|
18702
18706
|
boundary: c,
|
|
18703
18707
|
rootBoundary: u,
|
|
18704
18708
|
strategy: l
|
|
18705
|
-
})),
|
|
18709
|
+
})), k = f === "floating" ? {
|
|
18706
18710
|
x: o,
|
|
18707
18711
|
y: a,
|
|
18708
18712
|
width: i.floating.width,
|
|
18709
18713
|
height: i.floating.height
|
|
18710
|
-
} : i.reference,
|
|
18714
|
+
} : i.reference, C = await (r.getOffsetParent == null ? void 0 : r.getOffsetParent(s.floating)), w = await (r.isElement == null ? void 0 : r.isElement(C)) && await (r.getScale == null ? void 0 : r.getScale(C)) || {
|
|
18711
18715
|
x: 1,
|
|
18712
18716
|
y: 1
|
|
18713
18717
|
}, _ = Vs(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
18714
18718
|
elements: s,
|
|
18715
|
-
rect:
|
|
18716
|
-
offsetParent:
|
|
18719
|
+
rect: k,
|
|
18720
|
+
offsetParent: C,
|
|
18717
18721
|
strategy: l
|
|
18718
|
-
}) :
|
|
18722
|
+
}) : k);
|
|
18719
18723
|
return {
|
|
18720
18724
|
top: (y.top - _.top + v.top) / w.y,
|
|
18721
18725
|
bottom: (_.bottom - y.bottom + v.bottom) / w.y,
|
|
@@ -18748,13 +18752,13 @@ const ID = 50, DD = async (e, t, n) => {
|
|
|
18748
18752
|
continue;
|
|
18749
18753
|
const {
|
|
18750
18754
|
name: y,
|
|
18751
|
-
fn:
|
|
18755
|
+
fn: k
|
|
18752
18756
|
} = b, {
|
|
18753
|
-
x:
|
|
18757
|
+
x: C,
|
|
18754
18758
|
y: w,
|
|
18755
18759
|
data: _,
|
|
18756
18760
|
reset: O
|
|
18757
|
-
} = await
|
|
18761
|
+
} = await k({
|
|
18758
18762
|
x: u,
|
|
18759
18763
|
y: f,
|
|
18760
18764
|
initialPlacement: o,
|
|
@@ -18768,7 +18772,7 @@ const ID = 50, DD = async (e, t, n) => {
|
|
|
18768
18772
|
floating: t
|
|
18769
18773
|
}
|
|
18770
18774
|
});
|
|
18771
|
-
u =
|
|
18775
|
+
u = C ?? u, f = w ?? f, v[y] = {
|
|
18772
18776
|
...v[y],
|
|
18773
18777
|
..._
|
|
18774
18778
|
}, O && h < ID && (h++, typeof O == "object" && (O.placement && (p = O.placement), O.rects && (c = O.rects === !0 ? await i.getElementRects({
|
|
@@ -18808,10 +18812,10 @@ const ID = 50, DD = async (e, t, n) => {
|
|
|
18808
18812
|
const f = Eb(u), p = {
|
|
18809
18813
|
x: n,
|
|
18810
18814
|
y: o
|
|
18811
|
-
}, h = Vd(a), v = qd(h), m = await i.getDimensions(c), b = h === "y", y = b ? "top" : "left",
|
|
18812
|
-
let T = O ? O[
|
|
18813
|
-
(!T || !await (i.isElement == null ? void 0 : i.isElement(O))) && (T = s.floating[
|
|
18814
|
-
const D = w / 2 - _ / 2, $ = T / 2 - m[v] / 2 - 1,
|
|
18815
|
+
}, h = Vd(a), v = qd(h), m = await i.getDimensions(c), b = h === "y", y = b ? "top" : "left", k = b ? "bottom" : "right", C = b ? "clientHeight" : "clientWidth", w = r.reference[v] + r.reference[h] - p[h] - r.floating[v], _ = p[h] - r.reference[h], O = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(c));
|
|
18816
|
+
let T = O ? O[C] : 0;
|
|
18817
|
+
(!T || !await (i.isElement == null ? void 0 : i.isElement(O))) && (T = s.floating[C] || r.floating[v]);
|
|
18818
|
+
const D = w / 2 - _ / 2, $ = T / 2 - m[v] / 2 - 1, E = zo(f[y], $), R = zo(f[k], $), P = T - m[v] - R, q = T / 2 - m[v] / 2 + D, L = Cb(E, q, P), j = !l.arrow && or(a) != null && q !== L && r.reference[v] / 2 - (q < E ? E : R) - m[v] / 2 < 0, H = j ? q < E ? q - E : q - P : 0;
|
|
18815
18819
|
return {
|
|
18816
18820
|
[h]: p[h] + H,
|
|
18817
18821
|
data: {
|
|
@@ -18848,41 +18852,41 @@ const ID = 50, DD = async (e, t, n) => {
|
|
|
18848
18852
|
} = wo(e, t);
|
|
18849
18853
|
if ((n = r.arrow) != null && n.alignmentOffset)
|
|
18850
18854
|
return {};
|
|
18851
|
-
const y = Bo(a),
|
|
18855
|
+
const y = Bo(a), k = Vn(s), C = Bo(s) === s, w = await (l.isRTL == null ? void 0 : l.isRTL(c.floating)), _ = p || (C || !m ? [qs(s)] : CD(s)), O = v !== "none";
|
|
18852
18856
|
!p && O && _.push(...OD(s, m, v, w));
|
|
18853
18857
|
const T = [s, ..._], D = await l.detectOverflow(t, b), $ = [];
|
|
18854
|
-
let
|
|
18858
|
+
let E = ((o = r.flip) == null ? void 0 : o.overflows) || [];
|
|
18855
18859
|
if (u && $.push(D[y]), f) {
|
|
18856
18860
|
const L = kD(a, i, w);
|
|
18857
18861
|
$.push(D[L[0]], D[L[1]]);
|
|
18858
18862
|
}
|
|
18859
|
-
if (
|
|
18863
|
+
if (E = [...E, {
|
|
18860
18864
|
placement: a,
|
|
18861
18865
|
overflows: $
|
|
18862
18866
|
}], !$.every((L) => L <= 0)) {
|
|
18863
18867
|
var R, P;
|
|
18864
18868
|
const L = (((R = r.flip) == null ? void 0 : R.index) || 0) + 1, j = T[L];
|
|
18865
|
-
if (j && (!(f === "alignment" ?
|
|
18869
|
+
if (j && (!(f === "alignment" ? k !== Vn(j) : !1) || // We leave the current main axis only if every placement on that axis
|
|
18866
18870
|
// overflows the main axis.
|
|
18867
|
-
|
|
18871
|
+
E.every((K) => Vn(K.placement) === k ? K.overflows[0] > 0 : !0)))
|
|
18868
18872
|
return {
|
|
18869
18873
|
data: {
|
|
18870
18874
|
index: L,
|
|
18871
|
-
overflows:
|
|
18875
|
+
overflows: E
|
|
18872
18876
|
},
|
|
18873
18877
|
reset: {
|
|
18874
18878
|
placement: j
|
|
18875
18879
|
}
|
|
18876
18880
|
};
|
|
18877
|
-
let H = (P =
|
|
18881
|
+
let H = (P = E.filter((V) => V.overflows[0] <= 0).sort((V, K) => V.overflows[1] - K.overflows[1])[0]) == null ? void 0 : P.placement;
|
|
18878
18882
|
if (!H)
|
|
18879
18883
|
switch (h) {
|
|
18880
18884
|
case "bestFit": {
|
|
18881
18885
|
var q;
|
|
18882
|
-
const V = (q =
|
|
18886
|
+
const V = (q = E.filter((K) => {
|
|
18883
18887
|
if (O) {
|
|
18884
18888
|
const le = Vn(K.placement);
|
|
18885
|
-
return le ===
|
|
18889
|
+
return le === k || // Create a bias to the `y` side axis due to horizontal
|
|
18886
18890
|
// reading directions favoring greater width.
|
|
18887
18891
|
le === "y";
|
|
18888
18892
|
}
|
|
@@ -19023,13 +19027,13 @@ const FD = function(e) {
|
|
|
19023
19027
|
mainAxis: i = !0,
|
|
19024
19028
|
crossAxis: s = !1,
|
|
19025
19029
|
limiter: l = {
|
|
19026
|
-
fn: (
|
|
19030
|
+
fn: (k) => {
|
|
19027
19031
|
let {
|
|
19028
|
-
x:
|
|
19032
|
+
x: C,
|
|
19029
19033
|
y: w
|
|
19030
|
-
} =
|
|
19034
|
+
} = k;
|
|
19031
19035
|
return {
|
|
19032
|
-
x:
|
|
19036
|
+
x: C,
|
|
19033
19037
|
y: w
|
|
19034
19038
|
};
|
|
19035
19039
|
}
|
|
@@ -19040,7 +19044,7 @@ const FD = function(e) {
|
|
|
19040
19044
|
y: o
|
|
19041
19045
|
}, f = await r.detectOverflow(t, c), p = Vn(a), h = Bd(p);
|
|
19042
19046
|
let v = u[h], m = u[p];
|
|
19043
|
-
const b = (
|
|
19047
|
+
const b = (k, C) => Cb(C + f[k === "y" ? "top" : "left"], C, C - f[k === "y" ? "bottom" : "right"]);
|
|
19044
19048
|
i && (v = b(h, v)), s && (m = b(p, m));
|
|
19045
19049
|
const y = l.fn({
|
|
19046
19050
|
...t,
|
|
@@ -19080,7 +19084,7 @@ const FD = function(e) {
|
|
|
19080
19084
|
y: r
|
|
19081
19085
|
}, h = Vn(i), v = Bd(h);
|
|
19082
19086
|
let m = p[v], b = p[h];
|
|
19083
|
-
const y = wo(c, t),
|
|
19087
|
+
const y = wo(c, t), k = typeof y == "number" ? {
|
|
19084
19088
|
mainAxis: y,
|
|
19085
19089
|
crossAxis: 0
|
|
19086
19090
|
} : {
|
|
@@ -19088,12 +19092,12 @@ const FD = function(e) {
|
|
|
19088
19092
|
crossAxis: (o = y.crossAxis) != null ? o : 0
|
|
19089
19093
|
};
|
|
19090
19094
|
if (u) {
|
|
19091
|
-
const _ = v === "y" ? "height" : "width", O = s.reference[v] - s.floating[_] +
|
|
19095
|
+
const _ = v === "y" ? "height" : "width", O = s.reference[v] - s.floating[_] + k.mainAxis, T = s.reference[v] + s.reference[_] - k.mainAxis;
|
|
19092
19096
|
m < O ? m = O : m > T && (m = T);
|
|
19093
19097
|
}
|
|
19094
19098
|
if (f) {
|
|
19095
|
-
var
|
|
19096
|
-
const _ = v === "y" ? "width" : "height", O = Ab.has(Bo(i)), T = s.reference[h] - s.floating[_] + (O && ((
|
|
19099
|
+
var C, w;
|
|
19100
|
+
const _ = v === "y" ? "width" : "height", O = Ab.has(Bo(i)), T = s.reference[h] - s.floating[_] + (O && ((C = l.offset) == null ? void 0 : C[h]) || 0) + (O ? 0 : k.crossAxis), D = s.reference[h] + s.reference[_] + (O ? 0 : ((w = l.offset) == null ? void 0 : w[h]) || 0) - (O ? k.crossAxis : 0);
|
|
19097
19101
|
b < T ? b = T : b > D && (b = D);
|
|
19098
19102
|
}
|
|
19099
19103
|
return {
|
|
@@ -19122,8 +19126,8 @@ const FD = function(e) {
|
|
|
19122
19126
|
} = o.floating;
|
|
19123
19127
|
let v, m;
|
|
19124
19128
|
c === "top" || c === "bottom" ? (v = c, m = u === (await (a.isRTL == null ? void 0 : a.isRTL(r.floating)) ? "start" : "end") ? "left" : "right") : (m = c, v = u === "end" ? "top" : "bottom");
|
|
19125
|
-
const b = h - l.top - l.bottom, y = p - l.left - l.right,
|
|
19126
|
-
let O =
|
|
19129
|
+
const b = h - l.top - l.bottom, y = p - l.left - l.right, k = zo(h - l[v], b), C = zo(p - l[m], y), w = t.middlewareData.shift, _ = !w;
|
|
19130
|
+
let O = k, T = C;
|
|
19127
19131
|
w != null && w.enabled.x && (T = y), w != null && w.enabled.y && (O = b), _ && !u && (f ? T = p - 2 * fo(l.left, l.right) : O = h - 2 * fo(l.top, l.bottom)), await i({
|
|
19128
19132
|
...t,
|
|
19129
19133
|
availableWidth: T,
|
|
@@ -19302,8 +19306,8 @@ function ha(e, t, n, o) {
|
|
|
19302
19306
|
const p = an(r), h = Gn(o) ? an(o) : o;
|
|
19303
19307
|
let v = p, m = Ic(v);
|
|
19304
19308
|
for (; m && h !== v; ) {
|
|
19305
|
-
const b = za(m), y = m.getBoundingClientRect(),
|
|
19306
|
-
l *= b.x, c *= b.y, u *= b.x, f *= b.y, l +=
|
|
19309
|
+
const b = za(m), y = m.getBoundingClientRect(), k = Yn(m), C = y.left + (m.clientLeft + parseFloat(k.paddingLeft)) * b.x, w = y.top + (m.clientTop + parseFloat(k.paddingTop)) * b.y;
|
|
19310
|
+
l *= b.x, c *= b.y, u *= b.x, f *= b.y, l += C, c += w, v = an(m), m = Ic(v);
|
|
19307
19311
|
}
|
|
19308
19312
|
}
|
|
19309
19313
|
return Vs({
|
|
@@ -19552,19 +19556,19 @@ function sR(e, t, n) {
|
|
|
19552
19556
|
} = p;
|
|
19553
19557
|
if (u || t(), !m || !b)
|
|
19554
19558
|
return;
|
|
19555
|
-
const y = Gi(v),
|
|
19556
|
-
rootMargin: -y + "px " + -
|
|
19559
|
+
const y = Gi(v), k = Gi(r.clientWidth - (h + m)), C = Gi(r.clientHeight - (v + b)), w = Gi(h), O = {
|
|
19560
|
+
rootMargin: -y + "px " + -k + "px " + -C + "px " + -w + "px",
|
|
19557
19561
|
threshold: fo(0, zo(1, f)) || 1
|
|
19558
19562
|
};
|
|
19559
19563
|
let T = !0;
|
|
19560
19564
|
function D($) {
|
|
19561
|
-
const
|
|
19565
|
+
const E = $[0].intersectionRatio;
|
|
19562
19566
|
if (!Db(p, e.getBoundingClientRect()))
|
|
19563
19567
|
return s();
|
|
19564
|
-
if (
|
|
19568
|
+
if (E !== f) {
|
|
19565
19569
|
if (!T)
|
|
19566
19570
|
return s();
|
|
19567
|
-
|
|
19571
|
+
E ? s(!1, E) : a = setTimeout(() => {
|
|
19568
19572
|
s(!1, 1e-7);
|
|
19569
19573
|
}, 1e3);
|
|
19570
19574
|
}
|
|
@@ -19601,10 +19605,10 @@ function lR(e, t, n, o) {
|
|
|
19601
19605
|
const f = c && s ? sR(c, n, r) : null;
|
|
19602
19606
|
let p = -1, h = null;
|
|
19603
19607
|
i && (h = new ResizeObserver((y) => {
|
|
19604
|
-
let [
|
|
19605
|
-
|
|
19606
|
-
var
|
|
19607
|
-
(
|
|
19608
|
+
let [k] = y;
|
|
19609
|
+
k && k.target === c && h && t && (h.unobserve(t), cancelAnimationFrame(p), p = requestAnimationFrame(() => {
|
|
19610
|
+
var C;
|
|
19611
|
+
(C = h) == null || C.observe(t);
|
|
19608
19612
|
})), n();
|
|
19609
19613
|
}), c && !l && h.observe(c), t && h.observe(t));
|
|
19610
19614
|
let v, m = l ? ha(e) : null;
|
|
@@ -19615,8 +19619,8 @@ function lR(e, t, n, o) {
|
|
|
19615
19619
|
}
|
|
19616
19620
|
return n(), () => {
|
|
19617
19621
|
var y;
|
|
19618
|
-
u.forEach((
|
|
19619
|
-
a &&
|
|
19622
|
+
u.forEach((k) => {
|
|
19623
|
+
a && k.removeEventListener("scroll", n), r && k.removeEventListener("resize", n);
|
|
19620
19624
|
}), f?.(), (y = h) == null || y.disconnect(), h = null, l && cancelAnimationFrame(v);
|
|
19621
19625
|
};
|
|
19622
19626
|
}
|
|
@@ -19696,8 +19700,8 @@ function yR(e, t, n) {
|
|
|
19696
19700
|
top: $ + "px"
|
|
19697
19701
|
};
|
|
19698
19702
|
});
|
|
19699
|
-
let
|
|
19700
|
-
function
|
|
19703
|
+
let k;
|
|
19704
|
+
function C() {
|
|
19701
19705
|
if (c.value == null || u.value == null)
|
|
19702
19706
|
return;
|
|
19703
19707
|
const T = a.value;
|
|
@@ -19710,22 +19714,22 @@ function yR(e, t, n) {
|
|
|
19710
19714
|
});
|
|
19711
19715
|
}
|
|
19712
19716
|
function w() {
|
|
19713
|
-
typeof
|
|
19717
|
+
typeof k == "function" && (k(), k = void 0);
|
|
19714
19718
|
}
|
|
19715
19719
|
function _() {
|
|
19716
19720
|
if (w(), o === void 0) {
|
|
19717
|
-
|
|
19721
|
+
C();
|
|
19718
19722
|
return;
|
|
19719
19723
|
}
|
|
19720
19724
|
if (c.value != null && u.value != null) {
|
|
19721
|
-
|
|
19725
|
+
k = o(c.value, u.value, C);
|
|
19722
19726
|
return;
|
|
19723
19727
|
}
|
|
19724
19728
|
}
|
|
19725
19729
|
function O() {
|
|
19726
19730
|
a.value || (b.value = !1);
|
|
19727
19731
|
}
|
|
19728
|
-
return ee([r, i, s, a],
|
|
19732
|
+
return ee([r, i, s, a], C, {
|
|
19729
19733
|
flush: "sync"
|
|
19730
19734
|
}), ee([c, u], _, {
|
|
19731
19735
|
flush: "sync"
|
|
@@ -19739,7 +19743,7 @@ function yR(e, t, n) {
|
|
|
19739
19743
|
middlewareData: /* @__PURE__ */ ta(m),
|
|
19740
19744
|
isPositioned: /* @__PURE__ */ ta(b),
|
|
19741
19745
|
floatingStyles: y,
|
|
19742
|
-
update:
|
|
19746
|
+
update: C
|
|
19743
19747
|
};
|
|
19744
19748
|
}
|
|
19745
19749
|
const bR = ["dir"], Mb = {
|
|
@@ -19868,7 +19872,7 @@ var _R = /* @__PURE__ */ U({
|
|
|
19868
19872
|
})), y = x(() => ({
|
|
19869
19873
|
mainAxis: n.sideFlip,
|
|
19870
19874
|
crossAxis: n.alignFlip
|
|
19871
|
-
})),
|
|
19875
|
+
})), k = x(() => [
|
|
19872
19876
|
uR({
|
|
19873
19877
|
mainAxis: n.sideOffset + p.value,
|
|
19874
19878
|
alignmentAxis: n.alignOffset
|
|
@@ -19907,19 +19911,19 @@ var _R = /* @__PURE__ */ U({
|
|
|
19907
19911
|
strategy: "referenceHidden",
|
|
19908
19912
|
...b.value
|
|
19909
19913
|
})
|
|
19910
|
-
]),
|
|
19914
|
+
]), C = x(() => n.reference ?? r.anchor.value), { floatingStyles: w, placement: _, isPositioned: O, middlewareData: T } = yR(C, c, {
|
|
19911
19915
|
strategy: n.positionStrategy,
|
|
19912
19916
|
placement: h,
|
|
19913
19917
|
whileElementsMounted: (...L) => lR(...L, {
|
|
19914
19918
|
layoutShift: !n.disableUpdateOnLayoutShift,
|
|
19915
19919
|
animationFrame: n.updatePositionStrategy === "always"
|
|
19916
19920
|
}),
|
|
19917
|
-
middleware:
|
|
19921
|
+
middleware: k
|
|
19918
19922
|
}), D = x(() => Tc(_.value)[0]), $ = x(() => Tc(_.value)[1]);
|
|
19919
19923
|
Dm(() => {
|
|
19920
19924
|
O.value && a("placed");
|
|
19921
19925
|
});
|
|
19922
|
-
const
|
|
19926
|
+
const E = x(() => {
|
|
19923
19927
|
const L = T.value.arrow?.centerOffset !== 0;
|
|
19924
19928
|
return n.hideShiftedArrow && L;
|
|
19925
19929
|
}), R = /* @__PURE__ */ N("");
|
|
@@ -19932,7 +19936,7 @@ var _R = /* @__PURE__ */ U({
|
|
|
19932
19936
|
onArrowChange: (L) => u.value = L,
|
|
19933
19937
|
arrowX: P,
|
|
19934
19938
|
arrowY: q,
|
|
19935
|
-
shouldHideArrow:
|
|
19939
|
+
shouldHideArrow: E
|
|
19936
19940
|
}), (L, j) => (g(), I("div", {
|
|
19937
19941
|
ref_key: "floatingRef",
|
|
19938
19942
|
ref: c,
|
|
@@ -20049,10 +20053,10 @@ var CR = /* @__PURE__ */ U({
|
|
|
20049
20053
|
passive: o.currentTabStopId === void 0
|
|
20050
20054
|
}), u = /* @__PURE__ */ N(!1), f = /* @__PURE__ */ N(!1), p = /* @__PURE__ */ N(0), { getItems: h, CollectionSlot: v } = In({ isProvider: !0 });
|
|
20051
20055
|
function m(y) {
|
|
20052
|
-
const
|
|
20053
|
-
if (y.currentTarget && y.target === y.currentTarget &&
|
|
20054
|
-
const
|
|
20055
|
-
if (y.currentTarget.dispatchEvent(
|
|
20056
|
+
const k = !f.value;
|
|
20057
|
+
if (y.currentTarget && y.target === y.currentTarget && k && !u.value) {
|
|
20058
|
+
const C = new CustomEvent(UI, KI);
|
|
20059
|
+
if (y.currentTarget.dispatchEvent(C), a("entryFocus", C), !C.defaultPrevented) {
|
|
20056
20060
|
const w = h().map(($) => $.ref).filter(($) => $.dataset.disabled !== ""), _ = w.find(($) => $.getAttribute("data-active") === ""), O = w.find(($) => $.getAttribute("data-highlighted") === ""), T = w.find(($) => $.id === c.value), D = [
|
|
20057
20061
|
_,
|
|
20058
20062
|
O,
|
|
@@ -20086,7 +20090,7 @@ var CR = /* @__PURE__ */ U({
|
|
|
20086
20090
|
onFocusableItemRemove: () => {
|
|
20087
20091
|
p.value--;
|
|
20088
20092
|
}
|
|
20089
|
-
}), (y,
|
|
20093
|
+
}), (y, k) => (g(), z(d(v), null, {
|
|
20090
20094
|
default: M(() => [Z(d(Fe), {
|
|
20091
20095
|
tabindex: u.value || p.value === 0 ? -1 : 0,
|
|
20092
20096
|
"data-orientation": d(i),
|
|
@@ -20094,10 +20098,10 @@ var CR = /* @__PURE__ */ U({
|
|
|
20094
20098
|
"as-child": e.asChild,
|
|
20095
20099
|
dir: d(l),
|
|
20096
20100
|
style: { outline: "none" },
|
|
20097
|
-
onMousedown:
|
|
20101
|
+
onMousedown: k[0] || (k[0] = (C) => f.value = !0),
|
|
20098
20102
|
onMouseup: b,
|
|
20099
20103
|
onFocus: m,
|
|
20100
|
-
onBlur:
|
|
20104
|
+
onBlur: k[1] || (k[1] = (C) => u.value = !1)
|
|
20101
20105
|
}, {
|
|
20102
20106
|
default: M(() => [B(y.$slots, "default")]),
|
|
20103
20107
|
_: 3
|
|
@@ -20283,7 +20287,7 @@ var TR = /* @__PURE__ */ U({
|
|
|
20283
20287
|
const P = i.modelValue.value ?? [];
|
|
20284
20288
|
return !Ou(P, n.value) && P.length >= R;
|
|
20285
20289
|
}), u = x(() => !!(i?.disabled.value || n.disabled || s?.disabled.value)), f = x(() => u.value || c.value), p = x(() => !!s && !i), h = x(() => n.id ?? (p.value ? s?.fieldId.value : void 0)), v = x(() => n.name ?? s?.name.value), m = x(() => s ? n.required || s.required.value : n.required), b = x(() => bo(l.value, n.trueValue)), y = x(() => Fa(i?.modelValue.value) ? l.value === "indeterminate" ? "indeterminate" : b.value : Ou(i.modelValue.value, n.value));
|
|
20286
|
-
function
|
|
20290
|
+
function k() {
|
|
20287
20291
|
if (f.value) return;
|
|
20288
20292
|
const R = y.value !== !0;
|
|
20289
20293
|
if (Fa(i?.modelValue.value))
|
|
@@ -20301,7 +20305,7 @@ var TR = /* @__PURE__ */ U({
|
|
|
20301
20305
|
ee(y, (R) => {
|
|
20302
20306
|
p.value && s?.reportControlState({ filled: R === !0 });
|
|
20303
20307
|
});
|
|
20304
|
-
const
|
|
20308
|
+
const C = nr(r), w = Sl(), _ = di(), O = x(() => {
|
|
20305
20309
|
if (!_["aria-label"])
|
|
20306
20310
|
return h.value && r.value ? document.querySelector(`[for="${h.value}"]`)?.innerText : void 0;
|
|
20307
20311
|
});
|
|
@@ -20322,16 +20326,16 @@ var TR = /* @__PURE__ */ U({
|
|
|
20322
20326
|
touched: !0
|
|
20323
20327
|
});
|
|
20324
20328
|
}
|
|
20325
|
-
let
|
|
20329
|
+
let E;
|
|
20326
20330
|
return We(() => {
|
|
20327
|
-
p.value && (
|
|
20331
|
+
p.value && (E = s?.registerControl({
|
|
20328
20332
|
id: () => h.value,
|
|
20329
20333
|
element: () => r.value,
|
|
20330
20334
|
getValue: () => y.value,
|
|
20331
20335
|
required: () => n.required,
|
|
20332
20336
|
isFilled: (R) => R === !0
|
|
20333
20337
|
}));
|
|
20334
|
-
}), Re(() =>
|
|
20338
|
+
}), Re(() => E?.()), OR({
|
|
20335
20339
|
disabled: u,
|
|
20336
20340
|
state: y
|
|
20337
20341
|
}), (R, P) => (g(), I(xe, null, [(g(), z(mt(d(i)?.rovingFocus.value ? d(zr) : d(Fe)), ce({
|
|
@@ -20356,7 +20360,7 @@ var TR = /* @__PURE__ */ U({
|
|
|
20356
20360
|
focusable: d(i)?.rovingFocus.value ? !u.value : void 0,
|
|
20357
20361
|
onKeydown: Kn(Ot(() => {
|
|
20358
20362
|
}, ["prevent"]), ["enter"]),
|
|
20359
|
-
onClick:
|
|
20363
|
+
onClick: k,
|
|
20360
20364
|
onFocus: D,
|
|
20361
20365
|
onBlur: $
|
|
20362
20366
|
}), {
|
|
@@ -20379,7 +20383,7 @@ var TR = /* @__PURE__ */ U({
|
|
|
20379
20383
|
"disabled",
|
|
20380
20384
|
"focusable",
|
|
20381
20385
|
"onKeydown"
|
|
20382
|
-
])), d(
|
|
20386
|
+
])), d(C) && v.value && !d(i) ? (g(), z(d(xi), ce({
|
|
20383
20387
|
key: 0,
|
|
20384
20388
|
type: "checkbox",
|
|
20385
20389
|
checked: !!y.value,
|
|
@@ -20636,9 +20640,9 @@ var qR = /* @__PURE__ */ U({
|
|
|
20636
20640
|
setup(e, { emit: t }) {
|
|
20637
20641
|
const n = e, o = t, a = wa(), r = Si(), { trapFocus: i, disableOutsidePointerEvents: s, loop: l } = /* @__PURE__ */ It(n);
|
|
20638
20642
|
vb(), xl(s.value);
|
|
20639
|
-
const c = /* @__PURE__ */ N(""), u = /* @__PURE__ */ N(0), f = /* @__PURE__ */ N(0), p = /* @__PURE__ */ N(null), h = /* @__PURE__ */ N("right"), v = /* @__PURE__ */ N(0), m = /* @__PURE__ */ N(null), b = /* @__PURE__ */ N(), { forwardRef: y, currentElement:
|
|
20643
|
+
const c = /* @__PURE__ */ N(""), u = /* @__PURE__ */ N(0), f = /* @__PURE__ */ N(0), p = /* @__PURE__ */ N(null), h = /* @__PURE__ */ N("right"), v = /* @__PURE__ */ N(0), m = /* @__PURE__ */ N(null), b = /* @__PURE__ */ N(), { forwardRef: y, currentElement: k } = Oe(), { handleTypeaheadSearch: C } = Cl(), w = /* @__PURE__ */ N();
|
|
20640
20644
|
function _(j) {
|
|
20641
|
-
const H = Oh(j, w.value || vt(),
|
|
20645
|
+
const H = Oh(j, w.value || vt(), k.value, {
|
|
20642
20646
|
loop: l.value,
|
|
20643
20647
|
arrowKeyOptions: "vertical",
|
|
20644
20648
|
dir: r?.dir.value,
|
|
@@ -20656,7 +20660,7 @@ var qR = /* @__PURE__ */ U({
|
|
|
20656
20660
|
if (j === void 0) return;
|
|
20657
20661
|
D.value.onOpenChange(!1), D.value = void 0;
|
|
20658
20662
|
}
|
|
20659
|
-
}), ee(
|
|
20663
|
+
}), ee(k, (j) => {
|
|
20660
20664
|
a.onContentChange(j);
|
|
20661
20665
|
}), Ut(() => {
|
|
20662
20666
|
window.clearTimeout(u.value);
|
|
@@ -20664,12 +20668,12 @@ var qR = /* @__PURE__ */ U({
|
|
|
20664
20668
|
function $(j) {
|
|
20665
20669
|
return h.value === p.value?.side && wI(j, p.value?.area);
|
|
20666
20670
|
}
|
|
20667
|
-
async function
|
|
20668
|
-
o("openAutoFocus", j), !j.defaultPrevented && (j.preventDefault(),
|
|
20671
|
+
async function E(j) {
|
|
20672
|
+
o("openAutoFocus", j), !j.defaultPrevented && (j.preventDefault(), k.value?.focus({ preventScroll: !0 }));
|
|
20669
20673
|
}
|
|
20670
20674
|
function R(j) {
|
|
20671
20675
|
if (j.defaultPrevented) return;
|
|
20672
|
-
const H = j.target, V = H.closest("[data-reka-menu-content]") === j.currentTarget, K = ["input", "textarea"].includes(H.tagName.toLowerCase()), le = j.ctrlKey || j.altKey || j.metaKey, he = j.key.length === 1, be = Oh(j, vt(),
|
|
20676
|
+
const H = j.target, V = H.closest("[data-reka-menu-content]") === j.currentTarget, K = ["input", "textarea"].includes(H.tagName.toLowerCase()), le = j.ctrlKey || j.altKey || j.metaKey, he = j.key.length === 1, be = Oh(j, vt(), k.value, {
|
|
20673
20677
|
loop: l.value,
|
|
20674
20678
|
arrowKeyOptions: "vertical",
|
|
20675
20679
|
dir: r?.dir.value,
|
|
@@ -20679,7 +20683,7 @@ var qR = /* @__PURE__ */ U({
|
|
|
20679
20683
|
if (be) return be?.focus();
|
|
20680
20684
|
if (j.code === "Space") return;
|
|
20681
20685
|
const Ne = b.value?.getItems() ?? [];
|
|
20682
|
-
if (V && (j.key === "Tab" && r.modal.value && j.preventDefault(), !le && he && !K &&
|
|
20686
|
+
if (V && (j.key === "Tab" && r.modal.value && j.preventDefault(), !le && he && !K && C(j.key, Ne)), j.target !== k.value || !vI.includes(j.key)) return;
|
|
20683
20687
|
j.preventDefault();
|
|
20684
20688
|
const Ue = [...Ne.map((Xe) => Xe.ref)];
|
|
20685
20689
|
wb.includes(j.key) && Ue.reverse(), Oc(Ue);
|
|
@@ -20700,7 +20704,7 @@ var qR = /* @__PURE__ */ U({
|
|
|
20700
20704
|
}
|
|
20701
20705
|
return BR({
|
|
20702
20706
|
onItemEnter: (j) => !!$(j),
|
|
20703
|
-
onItemLeave: (j) => $(j) ? !0 : (["INPUT", "TEXTAREA"].includes(vt()?.tagName || "") ||
|
|
20707
|
+
onItemLeave: (j) => $(j) ? !0 : (["INPUT", "TEXTAREA"].includes(vt()?.tagName || "") || k.value?.focus(), m.value = null, !1),
|
|
20704
20708
|
onTriggerLeave: (j) => !!$(j),
|
|
20705
20709
|
searchRef: c,
|
|
20706
20710
|
highlightedElement: w,
|
|
@@ -20718,7 +20722,7 @@ var qR = /* @__PURE__ */ U({
|
|
|
20718
20722
|
}), (j, H) => (g(), z(d(wi), {
|
|
20719
20723
|
"as-child": "",
|
|
20720
20724
|
trapped: d(i),
|
|
20721
|
-
onMountAutoFocus:
|
|
20725
|
+
onMountAutoFocus: E,
|
|
20722
20726
|
onUnmountAutoFocus: H[7] || (H[7] = (V) => o("closeAutoFocus", V))
|
|
20723
20727
|
}, {
|
|
20724
20728
|
default: M(() => [Z(d(bi), {
|
|
@@ -21722,7 +21726,7 @@ var vM = /* @__PURE__ */ U({
|
|
|
21722
21726
|
l();
|
|
21723
21727
|
const h = o.content.value?.getBoundingClientRect();
|
|
21724
21728
|
if (h?.width) {
|
|
21725
|
-
const v = o.content.value?.dataset.side, m = v === "right", b = m ? -5 : 5, y = h[m ? "left" : "right"],
|
|
21729
|
+
const v = o.content.value?.dataset.side, m = v === "right", b = m ? -5 : 5, y = h[m ? "left" : "right"], k = h[m ? "right" : "left"];
|
|
21726
21730
|
i.onPointerGraceIntentChange({
|
|
21727
21731
|
area: [
|
|
21728
21732
|
{
|
|
@@ -21734,11 +21738,11 @@ var vM = /* @__PURE__ */ U({
|
|
|
21734
21738
|
y: h.top
|
|
21735
21739
|
},
|
|
21736
21740
|
{
|
|
21737
|
-
x:
|
|
21741
|
+
x: k,
|
|
21738
21742
|
y: h.top
|
|
21739
21743
|
},
|
|
21740
21744
|
{
|
|
21741
|
-
x:
|
|
21745
|
+
x: k,
|
|
21742
21746
|
y: h.bottom
|
|
21743
21747
|
},
|
|
21744
21748
|
{
|
|
@@ -21962,7 +21966,7 @@ var OM = /* @__PURE__ */ U({
|
|
|
21962
21966
|
defaultValue: n.defaultSnapPoint ?? null,
|
|
21963
21967
|
passive: n.snapPoint === void 0,
|
|
21964
21968
|
eventName: "update:snapPoint"
|
|
21965
|
-
}), { modal: s, swipeDirection: l, snapPoints: c, snapToSequentialPoints: u } = /* @__PURE__ */ It(n), f = /* @__PURE__ */ N(), p = /* @__PURE__ */ N(), h = /* @__PURE__ */ N(), v = /* @__PURE__ */ N(0), m = /* @__PURE__ */ N(0), b = /* @__PURE__ */ N(!1), y = /* @__PURE__ */ N(0),
|
|
21969
|
+
}), { modal: s, swipeDirection: l, snapPoints: c, snapToSequentialPoints: u } = /* @__PURE__ */ It(n), f = /* @__PURE__ */ N(), p = /* @__PURE__ */ N(), h = /* @__PURE__ */ N(), v = /* @__PURE__ */ N(0), m = /* @__PURE__ */ N(0), b = /* @__PURE__ */ N(!1), y = /* @__PURE__ */ N(0), k = /* @__PURE__ */ N(!1), C = /* @__PURE__ */ N(!1), w = xM(), _ = Dn(null), O = _M(null), T = zt(void 0, "reka-drawer-content"), D = zt(void 0, "reka-drawer-title"), $ = zt(void 0, "reka-drawer-description");
|
|
21966
21970
|
PM({
|
|
21967
21971
|
open: r,
|
|
21968
21972
|
modal: s,
|
|
@@ -21974,8 +21978,8 @@ var OM = /* @__PURE__ */ U({
|
|
|
21974
21978
|
frontmostHeight: m,
|
|
21975
21979
|
hasNestedDrawer: b,
|
|
21976
21980
|
nestedOpenDrawerCount: y,
|
|
21977
|
-
nestedSwiping:
|
|
21978
|
-
isSwiping:
|
|
21981
|
+
nestedSwiping: k,
|
|
21982
|
+
isSwiping: C,
|
|
21979
21983
|
nestedSwipeProgressStore: w,
|
|
21980
21984
|
onOpenChange: R,
|
|
21981
21985
|
onOpenToggle: P,
|
|
@@ -21995,13 +21999,13 @@ var OM = /* @__PURE__ */ U({
|
|
|
21995
21999
|
q ? y.value++ : y.value = Math.max(0, y.value - 1), b.value = y.value > 0, _?.notifyParentHasNestedDrawer?.(q);
|
|
21996
22000
|
},
|
|
21997
22001
|
onNestedSwipingChange(q) {
|
|
21998
|
-
|
|
22002
|
+
k.value = q, _?.notifyParentSwipingChange?.(q);
|
|
21999
22003
|
},
|
|
22000
22004
|
onNestedSwipeProgressChange(q) {
|
|
22001
22005
|
w.set(q), _?.notifyParentSwipeProgressChange?.(q), O?.visualStateStore.set({ swipeProgress: q });
|
|
22002
22006
|
},
|
|
22003
22007
|
onSwipingChange(q) {
|
|
22004
|
-
|
|
22008
|
+
C.value = q;
|
|
22005
22009
|
},
|
|
22006
22010
|
notifyParentFrontmostHeight: _?.onNestedFrontmostHeightChange,
|
|
22007
22011
|
notifyParentSwipingChange: _?.onNestedSwipingChange,
|
|
@@ -22014,7 +22018,7 @@ var OM = /* @__PURE__ */ U({
|
|
|
22014
22018
|
titleId: D,
|
|
22015
22019
|
descriptionId: $
|
|
22016
22020
|
});
|
|
22017
|
-
function
|
|
22021
|
+
function E() {
|
|
22018
22022
|
R(!1, "close-press");
|
|
22019
22023
|
}
|
|
22020
22024
|
function R(q, L) {
|
|
@@ -22039,7 +22043,7 @@ var OM = /* @__PURE__ */ U({
|
|
|
22039
22043
|
O?.removeDrawer(T);
|
|
22040
22044
|
}), (q, L) => B(q.$slots, "default", {
|
|
22041
22045
|
open: r.value,
|
|
22042
|
-
close:
|
|
22046
|
+
close: E
|
|
22043
22047
|
});
|
|
22044
22048
|
}
|
|
22045
22049
|
}), Vb = OM, TM = /* @__PURE__ */ U({
|
|
@@ -22084,17 +22088,17 @@ function MM(e) {
|
|
|
22084
22088
|
const h = t.value;
|
|
22085
22089
|
if (!h || h.length === 0) return [];
|
|
22086
22090
|
const v = i(), m = l, b = o.value, y = [];
|
|
22087
|
-
for (const
|
|
22088
|
-
const
|
|
22089
|
-
if (
|
|
22090
|
-
const w = Math.min(
|
|
22091
|
+
for (const k of h) {
|
|
22092
|
+
const C = nv(k, v, m);
|
|
22093
|
+
if (C == null || y.some((_) => Math.abs(_.height - C) <= 1)) continue;
|
|
22094
|
+
const w = Math.min(C, Math.min(b, v));
|
|
22091
22095
|
y.push({
|
|
22092
|
-
value:
|
|
22096
|
+
value: k,
|
|
22093
22097
|
height: w,
|
|
22094
22098
|
offset: Math.max(0, b - w)
|
|
22095
22099
|
});
|
|
22096
22100
|
}
|
|
22097
|
-
return y.sort((
|
|
22101
|
+
return y.sort((k, C) => k.height - C.height);
|
|
22098
22102
|
});
|
|
22099
22103
|
function u() {
|
|
22100
22104
|
if (!n.value || c.value.length === 0) return;
|
|
@@ -22105,18 +22109,18 @@ function MM(e) {
|
|
|
22105
22109
|
function p(h, v, m, b) {
|
|
22106
22110
|
const y = c.value;
|
|
22107
22111
|
if (y.length === 0) return;
|
|
22108
|
-
const
|
|
22112
|
+
const k = o.value, C = m === "up" || m === "down" ? v.y : v.x, w = m === "up" || m === "left" ? -C : C, _ = u(), O = _?.offset ?? 0, T = Math.max(0, Math.min(k, O + h));
|
|
22109
22113
|
let D = T;
|
|
22110
22114
|
if (Math.abs(w) >= IM) {
|
|
22111
22115
|
const P = Math.max(-tv, Math.min(tv, w));
|
|
22112
22116
|
D = T + P * DM;
|
|
22113
22117
|
}
|
|
22114
|
-
let $ = y[0],
|
|
22118
|
+
let $ = y[0], E = Math.abs(D - $.offset);
|
|
22115
22119
|
for (const P of y) {
|
|
22116
22120
|
const q = Math.abs(D - P.offset);
|
|
22117
|
-
q <
|
|
22121
|
+
q < E && ($ = P, E = q);
|
|
22118
22122
|
}
|
|
22119
|
-
if (Math.abs(D -
|
|
22123
|
+
if (Math.abs(D - k) < E) {
|
|
22120
22124
|
a(null);
|
|
22121
22125
|
return;
|
|
22122
22126
|
}
|
|
@@ -22166,14 +22170,14 @@ function VM(e, t, n, o) {
|
|
|
22166
22170
|
return null;
|
|
22167
22171
|
}
|
|
22168
22172
|
function jM(e) {
|
|
22169
|
-
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 = x(() => Me(n).includes("up") || Me(n).includes("down")), v = x(() => Me(n).includes("left") || Me(n).includes("right")), m = x(() => Me(n).includes("up")), b = x(() => Me(n).includes("down")), y = x(() => Me(n).includes("left")),
|
|
22173
|
+
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 = x(() => Me(n).includes("up") || Me(n).includes("down")), v = x(() => Me(n).includes("left") || Me(n).includes("right")), m = x(() => Me(n).includes("up")), b = x(() => Me(n).includes("down")), y = x(() => Me(n).includes("left")), k = x(() => Me(n).includes("right")), C = x(() => h.value === v.value ? null : h.value ? "vertical" : "horizontal"), w = /* @__PURE__ */ N(!1), _ = /* @__PURE__ */ N(void 0), O = /* @__PURE__ */ N({
|
|
22170
22174
|
x: 0,
|
|
22171
22175
|
y: 0
|
|
22172
22176
|
});
|
|
22173
22177
|
let T = {
|
|
22174
22178
|
x: 0,
|
|
22175
22179
|
y: 0
|
|
22176
|
-
}, D, $ = 0,
|
|
22180
|
+
}, D, $ = 0, E = !1, R = !1, P = !1, q = null, L = !1, j = null, H = null, V = !1, K = !1, le = {
|
|
22177
22181
|
width: 0,
|
|
22178
22182
|
height: 0
|
|
22179
22183
|
}, he = 0, be = null, Ne = {
|
|
@@ -22216,7 +22220,7 @@ function jM(e) {
|
|
|
22216
22220
|
}, T = {
|
|
22217
22221
|
x: 0,
|
|
22218
22222
|
y: 0
|
|
22219
|
-
}, D = void 0, $ = 0,
|
|
22223
|
+
}, D = void 0, $ = 0, E = !1, R = !1, P = !1, q = null, le = {
|
|
22220
22224
|
width: 0,
|
|
22221
22225
|
height: 0
|
|
22222
22226
|
}, he = 0, be = null, Ne = {
|
|
@@ -22234,7 +22238,7 @@ function jM(e) {
|
|
|
22234
22238
|
}, R = !0, P = !0;
|
|
22235
22239
|
}
|
|
22236
22240
|
function F(re, J) {
|
|
22237
|
-
const me = (ot) => ot >= 0 ? ot ** 0.5 : -(Math.abs(ot) ** 0.5), Se = (ot, qt, ut) => !qt && ot < 0 || !ut && ot > 0 ? me(ot) : ot, He = v.value ? Se(re, y.value,
|
|
22241
|
+
const me = (ot) => ot >= 0 ? ot ** 0.5 : -(Math.abs(ot) ** 0.5), Se = (ot, qt, ut) => !qt && ot < 0 || !ut && ot > 0 ? me(ot) : ot, He = v.value ? Se(re, y.value, k.value) : me(re), tt = h.value ? Se(J, m.value, b.value) : me(J);
|
|
22238
22242
|
return {
|
|
22239
22243
|
x: He,
|
|
22240
22244
|
y: tt
|
|
@@ -22242,10 +22246,10 @@ function jM(e) {
|
|
|
22242
22246
|
}
|
|
22243
22247
|
function G(re, J) {
|
|
22244
22248
|
if (K) return !0;
|
|
22245
|
-
if (V || !H || !
|
|
22249
|
+
if (V || !H || !C.value) return !1;
|
|
22246
22250
|
if (!re.cancelable)
|
|
22247
22251
|
return K = !0, !0;
|
|
22248
|
-
const me =
|
|
22252
|
+
const me = C.value === "vertical", Se = me ? J.y - T.y : J.x - T.x, He = me ? J.x - T.x : J.y - T.y, tt = Math.abs(Se), ot = Math.abs(He);
|
|
22249
22253
|
return ot >= av && ot > tt + FM ? (K = !0, !0) : tt >= av ? (V = !0, !1) : !0;
|
|
22250
22254
|
}
|
|
22251
22255
|
function Y(re, J, me) {
|
|
@@ -22263,9 +22267,9 @@ function jM(e) {
|
|
|
22263
22267
|
if (!w.value) return;
|
|
22264
22268
|
!D && qt && (D = qt, _.value = qt, $ = oa(qt, tt, ot));
|
|
22265
22269
|
const ut = D;
|
|
22266
|
-
if (ut && !
|
|
22270
|
+
if (ut && !E) {
|
|
22267
22271
|
const Vt = oa(ut, tt, ot);
|
|
22268
|
-
$ = Math.max($, Vt), $ > ov / 2 && $ - Vt > NM && (
|
|
22272
|
+
$ = Math.max($, Vt), $ > ov / 2 && $ - Vt > NM && (E = !0);
|
|
22269
22273
|
}
|
|
22270
22274
|
const _t = F(tt, ot);
|
|
22271
22275
|
O.value = {
|
|
@@ -22297,7 +22301,7 @@ function jM(e) {
|
|
|
22297
22301
|
let qt = !1;
|
|
22298
22302
|
if (!ot) {
|
|
22299
22303
|
const ut = oa(D ?? Me(n)[0], tt.x, tt.y);
|
|
22300
|
-
!
|
|
22304
|
+
!E && (J >= me || ut > 0.5) && s?.() !== !1 ? (re.setAttribute("data-swipe-dismissed", ""), qt = !0) : (ze(re), c?.());
|
|
22301
22305
|
}
|
|
22302
22306
|
qt || l?.(0), S();
|
|
22303
22307
|
}
|
|
@@ -22357,8 +22361,8 @@ function jM(e) {
|
|
|
22357
22361
|
const He = h.value ? "vertical" : "horizontal", tt = Rc(J, He);
|
|
22358
22362
|
tt && (L = !0, j = tt);
|
|
22359
22363
|
}
|
|
22360
|
-
if (
|
|
22361
|
-
const He =
|
|
22364
|
+
if (C.value) {
|
|
22365
|
+
const He = C.value === "vertical" ? "horizontal" : "vertical";
|
|
22362
22366
|
H = Rc(J, He);
|
|
22363
22367
|
}
|
|
22364
22368
|
const Se = re.touches[0];
|
|
@@ -22384,7 +22388,7 @@ function jM(e) {
|
|
|
22384
22388
|
allowUp: m.value,
|
|
22385
22389
|
allowDown: b.value,
|
|
22386
22390
|
allowLeft: y.value,
|
|
22387
|
-
allowRight:
|
|
22391
|
+
allowRight: k.value
|
|
22388
22392
|
});
|
|
22389
22393
|
if (qt === !1) {
|
|
22390
22394
|
S();
|
|
@@ -22465,34 +22469,34 @@ var WM = /* @__PURE__ */ U({
|
|
|
22465
22469
|
snapPoints: a.snapPoints,
|
|
22466
22470
|
activeSnapPoint: a.activeSnapPoint,
|
|
22467
22471
|
popupHeight: a.popupHeight,
|
|
22468
|
-
onSnapPointChange: (
|
|
22469
|
-
|
|
22472
|
+
onSnapPointChange: (E) => {
|
|
22473
|
+
E === null ? a.onOpenChange(!1, "swipe") : a.setActiveSnapPoint(E);
|
|
22470
22474
|
}
|
|
22471
22475
|
});
|
|
22472
22476
|
function c() {
|
|
22473
|
-
const
|
|
22474
|
-
if (!
|
|
22477
|
+
const E = i.value;
|
|
22478
|
+
if (!E) return;
|
|
22475
22479
|
const R = s.value;
|
|
22476
22480
|
if (R != null) {
|
|
22477
22481
|
const P = a.swipeDirection.value, q = P === "up" || P === "left" ? -R : R;
|
|
22478
|
-
|
|
22479
|
-
} else
|
|
22482
|
+
E.style.setProperty(xt.snapPointOffset, `${q}px`);
|
|
22483
|
+
} else E.style.setProperty(xt.snapPointOffset, "0px");
|
|
22480
22484
|
}
|
|
22481
|
-
ee(s, c), tb(i, ([
|
|
22482
|
-
if (!
|
|
22483
|
-
const R =
|
|
22485
|
+
ee(s, c), tb(i, ([E]) => {
|
|
22486
|
+
if (!E || a.hasNestedDrawer.value && a.popupHeight.value > 0) return;
|
|
22487
|
+
const R = E.contentRect.height;
|
|
22484
22488
|
a.onPopupHeightChange(R), i.value?.style.setProperty(xt.height, `${R}px`);
|
|
22485
|
-
}), ee(() => a.frontmostHeight.value, (
|
|
22486
|
-
i.value?.style.setProperty(xt.frontmostHeight, `${
|
|
22489
|
+
}), ee(() => a.frontmostHeight.value, (E) => {
|
|
22490
|
+
i.value?.style.setProperty(xt.frontmostHeight, `${E}px`);
|
|
22487
22491
|
});
|
|
22488
22492
|
const u = x(() => (a.snapPoints.value?.length ?? 0) > 0), f = x(() => {
|
|
22489
|
-
const
|
|
22490
|
-
return u.value ? [
|
|
22493
|
+
const E = a.swipeDirection.value;
|
|
22494
|
+
return u.value ? [E, {
|
|
22491
22495
|
up: "down",
|
|
22492
22496
|
down: "up",
|
|
22493
22497
|
left: "right",
|
|
22494
22498
|
right: "left"
|
|
22495
|
-
}[
|
|
22499
|
+
}[E]] : [E];
|
|
22496
22500
|
});
|
|
22497
22501
|
let p = {
|
|
22498
22502
|
x: 0,
|
|
@@ -22507,7 +22511,7 @@ var WM = /* @__PURE__ */ U({
|
|
|
22507
22511
|
y: xt.swipeMovementY
|
|
22508
22512
|
},
|
|
22509
22513
|
ignoreSelectorWhenTouch: !1,
|
|
22510
|
-
swipeThreshold: ({ element:
|
|
22514
|
+
swipeThreshold: ({ element: E, direction: R }) => (R === "left" || R === "right" ? E.offsetWidth : E.offsetHeight) * 0.3,
|
|
22511
22515
|
canStart: () => !a.nestedSwiping.value,
|
|
22512
22516
|
onDismiss() {
|
|
22513
22517
|
if (!u.value) {
|
|
@@ -22517,10 +22521,10 @@ var WM = /* @__PURE__ */ U({
|
|
|
22517
22521
|
});
|
|
22518
22522
|
}
|
|
22519
22523
|
},
|
|
22520
|
-
onRelease(
|
|
22524
|
+
onRelease(E) {
|
|
22521
22525
|
const R = i.value;
|
|
22522
22526
|
if (R) {
|
|
22523
|
-
const P = a.swipeDirection.value, q = P === "left" || P === "right" ? R.offsetWidth : R.offsetHeight, L = P === "left" || P === "right" ? p.x : p.y, j = P === "left" || P === "right" ?
|
|
22527
|
+
const P = a.swipeDirection.value, q = P === "left" || P === "right" ? R.offsetWidth : R.offsetHeight, L = P === "left" || P === "right" ? p.x : p.y, j = P === "left" || P === "right" ? E.x : E.y, H = kM({
|
|
22524
22528
|
direction: P,
|
|
22525
22529
|
size: q,
|
|
22526
22530
|
axisDelta: L,
|
|
@@ -22531,88 +22535,88 @@ var WM = /* @__PURE__ */ U({
|
|
|
22531
22535
|
}
|
|
22532
22536
|
if (u.value) {
|
|
22533
22537
|
const P = a.swipeDirection.value, q = oa(P, p.x, p.y);
|
|
22534
|
-
l(q,
|
|
22538
|
+
l(q, E, P, a.snapToSequentialPoints.value), R && (c(), R.style.setProperty(xt.swipeMovementX, "0px"), R.style.setProperty(xt.swipeMovementY, "0px"));
|
|
22535
22539
|
}
|
|
22536
22540
|
return u.value;
|
|
22537
22541
|
},
|
|
22538
|
-
onSwipingChange(
|
|
22539
|
-
a.onSwipingChange(
|
|
22542
|
+
onSwipingChange(E) {
|
|
22543
|
+
a.onSwipingChange(E), a.onNestedSwipingChange(E);
|
|
22540
22544
|
},
|
|
22541
|
-
onProgress(
|
|
22545
|
+
onProgress(E, R) {
|
|
22542
22546
|
R && (p = {
|
|
22543
22547
|
x: R.deltaX,
|
|
22544
22548
|
y: R.deltaY
|
|
22545
|
-
}), a.onNestedSwipeProgressChange(
|
|
22549
|
+
}), a.onNestedSwipeProgressChange(E);
|
|
22546
22550
|
}
|
|
22547
22551
|
});
|
|
22548
22552
|
let m;
|
|
22549
22553
|
function b() {
|
|
22550
22554
|
h.value || (a.onOpenChange(!1, m ?? "outside-press"), m = void 0);
|
|
22551
22555
|
}
|
|
22552
|
-
function y(
|
|
22553
|
-
m = "escape-key", o("escapeKeyDown",
|
|
22556
|
+
function y(E) {
|
|
22557
|
+
m = "escape-key", o("escapeKeyDown", E);
|
|
22554
22558
|
}
|
|
22555
|
-
function E
|
|
22559
|
+
function k(E) {
|
|
22556
22560
|
if (h.value) {
|
|
22557
|
-
|
|
22561
|
+
E.preventDefault();
|
|
22558
22562
|
return;
|
|
22559
22563
|
}
|
|
22560
|
-
m = "outside-press", o("pointerDownOutside",
|
|
22564
|
+
m = "outside-press", o("pointerDownOutside", E);
|
|
22561
22565
|
}
|
|
22562
|
-
function
|
|
22566
|
+
function C(E) {
|
|
22563
22567
|
if (h.value) {
|
|
22564
|
-
|
|
22568
|
+
E.preventDefault();
|
|
22565
22569
|
return;
|
|
22566
22570
|
}
|
|
22567
|
-
o("focusOutside",
|
|
22571
|
+
o("focusOutside", E);
|
|
22568
22572
|
}
|
|
22569
|
-
function w(
|
|
22573
|
+
function w(E) {
|
|
22570
22574
|
if (h.value) {
|
|
22571
|
-
|
|
22575
|
+
E.preventDefault();
|
|
22572
22576
|
return;
|
|
22573
22577
|
}
|
|
22574
|
-
o("interactOutside",
|
|
22578
|
+
o("interactOutside", E);
|
|
22575
22579
|
}
|
|
22576
|
-
function _(
|
|
22577
|
-
o("openAutoFocus",
|
|
22580
|
+
function _(E) {
|
|
22581
|
+
o("openAutoFocus", E), !E.defaultPrevented && (n.initialFocus === !1 ? E.preventDefault() : sb(n.initialFocus) && (E.preventDefault(), zn(n.initialFocus, { select: !0 })));
|
|
22578
22582
|
}
|
|
22579
22583
|
let O;
|
|
22580
22584
|
function T() {
|
|
22581
22585
|
O?.(), O = void 0;
|
|
22582
22586
|
}
|
|
22583
|
-
ee(() => a.open.value, (
|
|
22587
|
+
ee(() => a.open.value, (E) => {
|
|
22584
22588
|
T();
|
|
22585
22589
|
const R = i.value;
|
|
22586
22590
|
if (!R) {
|
|
22587
|
-
a.notifyOpenComplete(
|
|
22591
|
+
a.notifyOpenComplete(E);
|
|
22588
22592
|
return;
|
|
22589
22593
|
}
|
|
22590
22594
|
const P = (q) => {
|
|
22591
|
-
q.target === R && (T(), a.notifyOpenComplete(
|
|
22595
|
+
q.target === R && (T(), a.notifyOpenComplete(E));
|
|
22592
22596
|
};
|
|
22593
22597
|
R.addEventListener("transitionend", P), R.addEventListener("animationend", P), O = () => {
|
|
22594
22598
|
R.removeEventListener("transitionend", P), R.removeEventListener("animationend", P);
|
|
22595
22599
|
};
|
|
22596
22600
|
});
|
|
22597
22601
|
const D = x(() => {
|
|
22598
|
-
const
|
|
22602
|
+
const E = {
|
|
22599
22603
|
"data-state": a.open.value ? "open" : "closed",
|
|
22600
22604
|
"data-swipe-direction": a.swipeDirection.value
|
|
22601
22605
|
};
|
|
22602
|
-
return h.value && (
|
|
22606
|
+
return h.value && (E["data-swiping"] = ""), a.hasNestedDrawer.value && (E["data-nested-drawer-open"] = ""), E;
|
|
22603
22607
|
});
|
|
22604
|
-
ee(() => a.nestedOpenDrawerCount.value, (
|
|
22605
|
-
i.value?.style.setProperty(xt.nestedDrawers, `${
|
|
22608
|
+
ee(() => a.nestedOpenDrawerCount.value, (E) => {
|
|
22609
|
+
i.value?.style.setProperty(xt.nestedDrawers, `${E}`);
|
|
22606
22610
|
});
|
|
22607
22611
|
let $;
|
|
22608
22612
|
return We(() => {
|
|
22609
22613
|
a.contentElement.value = i.value, a.notifyParentHasNestedDrawer?.(!0), i.value?.style.setProperty(xt.nestedDrawers, `${a.nestedOpenDrawerCount.value}`), c(), $ = a.nestedSwipeProgressStore.subscribe(() => {
|
|
22610
|
-
const
|
|
22611
|
-
i.value?.style.setProperty(xt.swipeProgress, `${
|
|
22614
|
+
const E = a.nestedSwipeProgressStore.getSnapshot();
|
|
22615
|
+
i.value?.style.setProperty(xt.swipeProgress, `${E}`);
|
|
22612
22616
|
});
|
|
22613
22617
|
}), Ut(() => {
|
|
22614
22618
|
a.notifyParentHasNestedDrawer?.(!1), $?.(), T();
|
|
22615
|
-
}), (
|
|
22619
|
+
}), (E, R) => (g(), z(d(wi), {
|
|
22616
22620
|
"as-child": "",
|
|
22617
22621
|
loop: "",
|
|
22618
22622
|
trapped: n.trapFocus,
|
|
@@ -22630,15 +22634,15 @@ var WM = /* @__PURE__ */ U({
|
|
|
22630
22634
|
"aria-labelledby": d(a).titleId
|
|
22631
22635
|
}, {
|
|
22632
22636
|
...D.value,
|
|
22633
|
-
...
|
|
22637
|
+
...E.$attrs
|
|
22634
22638
|
}, {
|
|
22635
22639
|
onDismiss: b,
|
|
22636
22640
|
onEscapeKeyDown: y,
|
|
22637
|
-
onFocusOutside:
|
|
22641
|
+
onFocusOutside: C,
|
|
22638
22642
|
onInteractOutside: w,
|
|
22639
|
-
onPointerDownOutside:
|
|
22643
|
+
onPointerDownOutside: k
|
|
22640
22644
|
}), {
|
|
22641
|
-
default: M(() => [B(
|
|
22645
|
+
default: M(() => [B(E.$slots, "default")]),
|
|
22642
22646
|
_: 3
|
|
22643
22647
|
}, 16, [
|
|
22644
22648
|
"id",
|
|
@@ -22703,10 +22707,10 @@ var WM = /* @__PURE__ */ U({
|
|
|
22703
22707
|
}
|
|
22704
22708
|
function b(y) {
|
|
22705
22709
|
y.defaultPrevented || (l.value = !0, y.detail.originalEvent.type === "pointerdown" && (c.value = !0));
|
|
22706
|
-
const
|
|
22707
|
-
a.triggerElement.value?.contains(
|
|
22710
|
+
const k = y.target;
|
|
22711
|
+
a.triggerElement.value?.contains(k) && y.preventDefault(), y.detail.originalEvent.type === "focusin" && c.value && y.preventDefault();
|
|
22708
22712
|
}
|
|
22709
|
-
return (y,
|
|
22713
|
+
return (y, k) => (g(), z(d(fn), { present: e.forceMount || d(a).open.value }, {
|
|
22710
22714
|
default: M(() => [u.value ? (g(), z(sv, ce({
|
|
22711
22715
|
key: 0,
|
|
22712
22716
|
ref: d(i)
|
|
@@ -22717,14 +22721,14 @@ var WM = /* @__PURE__ */ U({
|
|
|
22717
22721
|
}, {
|
|
22718
22722
|
"trap-focus": p.value,
|
|
22719
22723
|
"disable-outside-pointer-events": !0,
|
|
22720
|
-
onCloseAutoFocus:
|
|
22721
|
-
|
|
22724
|
+
onCloseAutoFocus: k[0] || (k[0] = (C) => {
|
|
22725
|
+
C.defaultPrevented || (C.preventDefault(), v()?.focus());
|
|
22722
22726
|
}),
|
|
22723
|
-
onPointerDownOutside:
|
|
22724
|
-
const w =
|
|
22725
|
-
(w.button === 2 || w.button === 0 && w.ctrlKey) &&
|
|
22727
|
+
onPointerDownOutside: k[1] || (k[1] = (C) => {
|
|
22728
|
+
const w = C.detail.originalEvent;
|
|
22729
|
+
(w.button === 2 || w.button === 0 && w.ctrlKey) && C.preventDefault();
|
|
22726
22730
|
}),
|
|
22727
|
-
onFocusOutside:
|
|
22731
|
+
onFocusOutside: k[2] || (k[2] = (C) => C.preventDefault())
|
|
22728
22732
|
}), {
|
|
22729
22733
|
default: M(() => [B(y.$slots, "default")]),
|
|
22730
22734
|
_: 3
|
|
@@ -23082,33 +23086,33 @@ function fN(e) {
|
|
|
23082
23086
|
let r = null, i = null, s, l, c = !1, u = null, f = !1;
|
|
23083
23087
|
function p() {
|
|
23084
23088
|
if (!i) return;
|
|
23085
|
-
const { element: b, paddingBottom: y, scrollPaddingBottom:
|
|
23086
|
-
b.style.paddingBottom = y, b.style.scrollPaddingBottom =
|
|
23089
|
+
const { element: b, paddingBottom: y, scrollPaddingBottom: k, overflowAnchor: C } = i;
|
|
23090
|
+
b.style.paddingBottom = y, b.style.scrollPaddingBottom = k, b.style.overflowAnchor = C, i = null;
|
|
23087
23091
|
}
|
|
23088
23092
|
function h(b, y) {
|
|
23089
|
-
const
|
|
23090
|
-
if (i && (!i.element.isConnected || i.element !== b) && p(),
|
|
23093
|
+
const k = Math.max(0, Math.ceil(y));
|
|
23094
|
+
if (i && (!i.element.isConnected || i.element !== b) && p(), k === 0) {
|
|
23091
23095
|
p();
|
|
23092
23096
|
return;
|
|
23093
23097
|
}
|
|
23094
23098
|
if (!i) {
|
|
23095
|
-
const
|
|
23099
|
+
const C = (b.ownerDocument.defaultView ?? window).getComputedStyle(b);
|
|
23096
23100
|
i = {
|
|
23097
23101
|
element: b,
|
|
23098
23102
|
paddingBottom: b.style.paddingBottom,
|
|
23099
23103
|
scrollPaddingBottom: b.style.scrollPaddingBottom,
|
|
23100
23104
|
overflowAnchor: b.style.overflowAnchor,
|
|
23101
|
-
computedPaddingBottom: Number.parseFloat(
|
|
23102
|
-
computedScrollPaddingBottom: Number.parseFloat(
|
|
23105
|
+
computedPaddingBottom: Number.parseFloat(C.paddingBottom) || 0,
|
|
23106
|
+
computedScrollPaddingBottom: Number.parseFloat(C.scrollPaddingBottom) || 0
|
|
23103
23107
|
};
|
|
23104
23108
|
}
|
|
23105
|
-
b.style.overflowAnchor = "none", b.style.paddingBottom = `${
|
|
23109
|
+
b.style.overflowAnchor = "none", b.style.paddingBottom = `${k + Math.max(i.computedPaddingBottom, Yi)}px`, b.style.scrollPaddingBottom = `${i.computedScrollPaddingBottom + Yi}px`;
|
|
23106
23110
|
}
|
|
23107
23111
|
function v(b, y) {
|
|
23108
|
-
const
|
|
23112
|
+
const C = (b.ownerDocument.defaultView ?? window).matchMedia?.("(prefers-reduced-motion: reduce)")?.matches;
|
|
23109
23113
|
b.scrollTo?.({
|
|
23110
23114
|
top: y,
|
|
23111
|
-
behavior:
|
|
23115
|
+
behavior: C ? "auto" : "smooth"
|
|
23112
23116
|
});
|
|
23113
23117
|
}
|
|
23114
23118
|
function m() {
|
|
@@ -23116,16 +23120,16 @@ function fN(e) {
|
|
|
23116
23120
|
}
|
|
23117
23121
|
Dt((b) => {
|
|
23118
23122
|
if (!Me(t) || !n.value) return;
|
|
23119
|
-
const y = n.value,
|
|
23123
|
+
const y = n.value, k = y.ownerDocument, C = k.defaultView ?? window;
|
|
23120
23124
|
let w = null, _ = 0, O = 0, T = -1, D = -1, $ = null;
|
|
23121
|
-
function
|
|
23122
|
-
const A =
|
|
23125
|
+
function E() {
|
|
23126
|
+
const A = C.visualViewport;
|
|
23123
23127
|
if (!A || A.scale !== 1) return null;
|
|
23124
|
-
const F =
|
|
23128
|
+
const F = C.innerHeight, G = A.height;
|
|
23125
23129
|
if (F - G > Vu) D = G;
|
|
23126
23130
|
else if (Math.abs(G - D) > Vu)
|
|
23127
23131
|
return D = -1, null;
|
|
23128
|
-
$ || ($ =
|
|
23132
|
+
$ || ($ = k.createElement("div"), $.style.cssText = "position:fixed;top:0;height:100svh;visibility:hidden", k.body.appendChild($));
|
|
23129
23133
|
const Y = $.offsetHeight - G <= Vu, Q = Math.max(0, A.offsetTop);
|
|
23130
23134
|
return {
|
|
23131
23135
|
top: Q,
|
|
@@ -23133,7 +23137,7 @@ function fN(e) {
|
|
|
23133
23137
|
resizing: Y && Math.abs(F - G) >= 1
|
|
23134
23138
|
};
|
|
23135
23139
|
}
|
|
23136
|
-
const R =
|
|
23140
|
+
const R = C.scrollX, P = C.scrollY;
|
|
23137
23141
|
let q = null;
|
|
23138
23142
|
function L(A) {
|
|
23139
23143
|
y.style.setProperty(xt.keyboardInset, `${Math.max(0, Math.ceil(A))}px`);
|
|
@@ -23147,7 +23151,7 @@ function fN(e) {
|
|
|
23147
23151
|
q = Zb(A, (F.top + F.bottom - G.top - G.bottom) / 2);
|
|
23148
23152
|
}
|
|
23149
23153
|
function V() {
|
|
23150
|
-
return !Me(o) || Me(a) || !r ||
|
|
23154
|
+
return !Me(o) || Me(a) || !r || C.scrollX === R && C.scrollY === P || E() == null ? !1 : (C.scrollTo({
|
|
23151
23155
|
left: R,
|
|
23152
23156
|
top: P,
|
|
23153
23157
|
behavior: "instant"
|
|
@@ -23167,12 +23171,12 @@ function fN(e) {
|
|
|
23167
23171
|
return;
|
|
23168
23172
|
}
|
|
23169
23173
|
V();
|
|
23170
|
-
const A =
|
|
23174
|
+
const A = E();
|
|
23171
23175
|
if (!A) {
|
|
23172
23176
|
L(0), p();
|
|
23173
23177
|
return;
|
|
23174
23178
|
}
|
|
23175
|
-
L(
|
|
23179
|
+
L(C.innerHeight - A.bottom);
|
|
23176
23180
|
const F = dN(r, y);
|
|
23177
23181
|
if (!F) {
|
|
23178
23182
|
p();
|
|
@@ -23224,12 +23228,12 @@ function fN(e) {
|
|
|
23224
23228
|
K();
|
|
23225
23229
|
return;
|
|
23226
23230
|
}
|
|
23227
|
-
|
|
23231
|
+
E() && Ne(), be();
|
|
23228
23232
|
}
|
|
23229
23233
|
function Je(A) {
|
|
23230
23234
|
if (!c) {
|
|
23231
23235
|
if (le(A.relatedTarget)) {
|
|
23232
|
-
const F =
|
|
23236
|
+
const F = E();
|
|
23233
23237
|
r && F && H(r, F), be();
|
|
23234
23238
|
return;
|
|
23235
23239
|
}
|
|
@@ -23279,11 +23283,11 @@ function fN(e) {
|
|
|
23279
23283
|
de();
|
|
23280
23284
|
return;
|
|
23281
23285
|
}
|
|
23282
|
-
if (
|
|
23286
|
+
if (C.visualViewport && C.visualViewport.scale !== 1) {
|
|
23283
23287
|
de();
|
|
23284
23288
|
return;
|
|
23285
23289
|
}
|
|
23286
|
-
if (vt() === Y.focusTarget && (!
|
|
23290
|
+
if (vt() === Y.focusTarget && (!C.visualViewport || E() != null)) {
|
|
23287
23291
|
de();
|
|
23288
23292
|
return;
|
|
23289
23293
|
}
|
|
@@ -23295,8 +23299,8 @@ function fN(e) {
|
|
|
23295
23299
|
}
|
|
23296
23300
|
uN(Y.clickTarget, F), Y.clickTarget !== Y.focusTarget && vt() === Y.focusTarget && Y.focusTarget.focus({ preventScroll: !0 }), de();
|
|
23297
23301
|
}
|
|
23298
|
-
|
|
23299
|
-
|
|
23302
|
+
k.addEventListener("focus", Ue, !0), k.addEventListener("focusin", Xe, !0), k.addEventListener("focusout", Je, !0), k.addEventListener("pointerdown", we, !0), C.addEventListener("scroll", ge), C.visualViewport?.addEventListener("resize", ae), C.visualViewport?.addEventListener("scroll", ae), C.visualViewport && C.addEventListener("resize", ae), y.addEventListener("touchstart", ze, { passive: !0 }), y.addEventListener("touchmove", Ce, { passive: !0 }), y.addEventListener("touchend", S), y.addEventListener("touchcancel", de), le(vt()) && be(), b(() => {
|
|
23303
|
+
k.removeEventListener("focus", Ue, !0), k.removeEventListener("focusin", Xe, !0), k.removeEventListener("focusout", Je, !0), k.removeEventListener("pointerdown", we, !0), C.removeEventListener("scroll", ge), C.visualViewport?.removeEventListener("resize", ae), C.visualViewport?.removeEventListener("scroll", ae), C.removeEventListener("resize", ae), y.removeEventListener("touchstart", ze), y.removeEventListener("touchmove", Ce), y.removeEventListener("touchend", S), y.removeEventListener("touchcancel", de), j(), de(), K(), $?.remove(), y.style.removeProperty(xt.keyboardInset);
|
|
23300
23304
|
});
|
|
23301
23305
|
});
|
|
23302
23306
|
}
|
|
@@ -24382,17 +24386,17 @@ var aL = /* @__PURE__ */ U({
|
|
|
24382
24386
|
ee(u, () => {
|
|
24383
24387
|
i?.reportControlState({ filled: !m.value });
|
|
24384
24388
|
}), In({ isProvider: !0 });
|
|
24385
|
-
const b = ga(r), y = nr(p),
|
|
24389
|
+
const b = ga(r), y = nr(p), k = /* @__PURE__ */ N(/* @__PURE__ */ new Set()), C = x(() => Array.from(k.value).map((O) => O.value).join(";"));
|
|
24386
24390
|
function w(O) {
|
|
24387
24391
|
let T;
|
|
24388
24392
|
if (a.value) {
|
|
24389
|
-
const D = Array.isArray(u.value) ? [...u.value] : [], $ = D.findIndex((
|
|
24393
|
+
const D = Array.isArray(u.value) ? [...u.value] : [], $ = D.findIndex((E) => Nc(E, O, n.by));
|
|
24390
24394
|
$ === -1 ? D.push(O) : D.splice($, 1), T = [...D];
|
|
24391
24395
|
} else T = O;
|
|
24392
24396
|
u.value = T, i?.handleControlInput({ value: T });
|
|
24393
24397
|
}
|
|
24394
24398
|
function _(O) {
|
|
24395
|
-
return Array.from(
|
|
24399
|
+
return Array.from(k.value).find((T) => ai(O, T.value, n.by));
|
|
24396
24400
|
}
|
|
24397
24401
|
return Xb({
|
|
24398
24402
|
triggerElement: p,
|
|
@@ -24417,21 +24421,21 @@ var aL = /* @__PURE__ */ U({
|
|
|
24417
24421
|
triggerPointerDownPosRef: v,
|
|
24418
24422
|
disabled: c,
|
|
24419
24423
|
isEmptyModelValue: m,
|
|
24420
|
-
optionsSet:
|
|
24424
|
+
optionsSet: k,
|
|
24421
24425
|
onOptionAdd: (O) => {
|
|
24422
24426
|
const T = _(O.value);
|
|
24423
|
-
T &&
|
|
24427
|
+
T && k.value.delete(T), k.value.add(O);
|
|
24424
24428
|
},
|
|
24425
24429
|
onOptionRemove: (O) => {
|
|
24426
24430
|
const T = _(O.value);
|
|
24427
|
-
T &&
|
|
24431
|
+
T && k.value.delete(T);
|
|
24428
24432
|
}
|
|
24429
24433
|
}), (O, T) => (g(), z(d(El), null, {
|
|
24430
24434
|
default: M(() => [B(O.$slots, "default", {
|
|
24431
24435
|
modelValue: d(u),
|
|
24432
24436
|
open: d(f)
|
|
24433
24437
|
}), d(y) && s.value ? (g(), z(sL, {
|
|
24434
|
-
key:
|
|
24438
|
+
key: C.value,
|
|
24435
24439
|
"aria-hidden": "true",
|
|
24436
24440
|
tabindex: "-1",
|
|
24437
24441
|
multiple: d(a),
|
|
@@ -24444,7 +24448,7 @@ var aL = /* @__PURE__ */ U({
|
|
|
24444
24448
|
default: M(() => [d(Fa)(d(u)) ? (g(), I("option", {
|
|
24445
24449
|
key: 0,
|
|
24446
24450
|
value: e.nullableValue
|
|
24447
|
-
}, null, 8, oL)) : W("v-if", !0), (g(!0), I(xe, null, Ge(Array.from(
|
|
24451
|
+
}, null, 8, oL)) : W("v-if", !0), (g(!0), I(xe, null, Ge(Array.from(k.value), (D) => (g(), I("option", ce({ key: D.value ?? "" }, { ref_for: !0 }, D), null, 16))), 128))]),
|
|
24448
24452
|
_: 1
|
|
24449
24453
|
}, 8, [
|
|
24450
24454
|
"multiple",
|
|
@@ -24763,26 +24767,26 @@ var dL = /* @__PURE__ */ U({
|
|
|
24763
24767
|
ee(v, () => {
|
|
24764
24768
|
(!r || r.canFocus()) && y();
|
|
24765
24769
|
});
|
|
24766
|
-
const { onOpenChange:
|
|
24770
|
+
const { onOpenChange: k, triggerPointerDownPosRef: C } = a;
|
|
24767
24771
|
Dt((D) => {
|
|
24768
24772
|
if (!l.value) return;
|
|
24769
24773
|
let $ = {
|
|
24770
24774
|
x: 0,
|
|
24771
24775
|
y: 0
|
|
24772
24776
|
};
|
|
24773
|
-
const
|
|
24777
|
+
const E = (P) => {
|
|
24774
24778
|
$ = {
|
|
24775
|
-
x: Math.abs(Math.round(P.pageX) - (
|
|
24776
|
-
y: Math.abs(Math.round(P.pageY) - (
|
|
24779
|
+
x: Math.abs(Math.round(P.pageX) - (C.value?.x ?? 0)),
|
|
24780
|
+
y: Math.abs(Math.round(P.pageY) - (C.value?.y ?? 0))
|
|
24777
24781
|
};
|
|
24778
24782
|
}, R = (P) => {
|
|
24779
|
-
P.pointerType !== "touch" && ($.x <= 10 && $.y <= 10 ? P.preventDefault() : l.value?.contains(P.target) ||
|
|
24783
|
+
P.pointerType !== "touch" && ($.x <= 10 && $.y <= 10 ? P.preventDefault() : l.value?.contains(P.target) || k(!1), document.removeEventListener("pointermove", E), C.value = null);
|
|
24780
24784
|
};
|
|
24781
|
-
|
|
24785
|
+
C.value !== null && (document.addEventListener("pointermove", E), document.addEventListener("pointerup", R, {
|
|
24782
24786
|
capture: !0,
|
|
24783
24787
|
once: !0
|
|
24784
24788
|
})), D(() => {
|
|
24785
|
-
document.removeEventListener("pointermove",
|
|
24789
|
+
document.removeEventListener("pointermove", E), document.removeEventListener("pointerup", R, { capture: !0 });
|
|
24786
24790
|
});
|
|
24787
24791
|
});
|
|
24788
24792
|
function w(D) {
|
|
@@ -24812,8 +24816,8 @@ var dL = /* @__PURE__ */ U({
|
|
|
24812
24816
|
onViewportChange: (D) => {
|
|
24813
24817
|
f.value = D;
|
|
24814
24818
|
},
|
|
24815
|
-
itemRefCallback: (D, $,
|
|
24816
|
-
const R = !m.value && !
|
|
24819
|
+
itemRefCallback: (D, $, E) => {
|
|
24820
|
+
const R = !m.value && !E, P = ai(a.modelValue.value, $, a.by);
|
|
24817
24821
|
if (a.multiple.value) {
|
|
24818
24822
|
if (b.value) return;
|
|
24819
24823
|
(P || R) && (p.value = D, P && (b.value = !0));
|
|
@@ -24825,8 +24829,8 @@ var dL = /* @__PURE__ */ U({
|
|
|
24825
24829
|
onItemLeave: () => {
|
|
24826
24830
|
l.value?.focus();
|
|
24827
24831
|
},
|
|
24828
|
-
itemTextRefCallback: (D, $,
|
|
24829
|
-
const R = !m.value && !
|
|
24832
|
+
itemTextRefCallback: (D, $, E) => {
|
|
24833
|
+
const R = !m.value && !E;
|
|
24830
24834
|
(ai(a.modelValue.value, $, a.by) || R) && (h.value = D);
|
|
24831
24835
|
},
|
|
24832
24836
|
focusSelectedItem: y,
|
|
@@ -24838,8 +24842,8 @@ var dL = /* @__PURE__ */ U({
|
|
|
24838
24842
|
"as-child": "",
|
|
24839
24843
|
onMountAutoFocus: $[6] || ($[6] = Ot(() => {
|
|
24840
24844
|
}, ["prevent"])),
|
|
24841
|
-
onUnmountAutoFocus: $[7] || ($[7] = (
|
|
24842
|
-
o("closeAutoFocus",
|
|
24845
|
+
onUnmountAutoFocus: $[7] || ($[7] = (E) => {
|
|
24846
|
+
o("closeAutoFocus", E), !E.defaultPrevented && (r ? r.restoreFocus(d(a).triggerElement.value) : d(a).triggerElement.value?.focus({ preventScroll: !0 }), E.preventDefault());
|
|
24843
24847
|
})
|
|
24844
24848
|
}, {
|
|
24845
24849
|
default: M(() => [Z(d(bi), {
|
|
@@ -24847,18 +24851,18 @@ var dL = /* @__PURE__ */ U({
|
|
|
24847
24851
|
"disable-outside-pointer-events": e.disableOutsidePointerEvents,
|
|
24848
24852
|
onFocusOutside: $[2] || ($[2] = Ot(() => {
|
|
24849
24853
|
}, ["prevent"])),
|
|
24850
|
-
onDismiss: $[3] || ($[3] = (
|
|
24851
|
-
onEscapeKeyDown: $[4] || ($[4] = (
|
|
24852
|
-
onPointerDownOutside: $[5] || ($[5] = (
|
|
24854
|
+
onDismiss: $[3] || ($[3] = (E) => d(a).onOpenChange(!1)),
|
|
24855
|
+
onEscapeKeyDown: $[4] || ($[4] = (E) => o("escapeKeyDown", E)),
|
|
24856
|
+
onPointerDownOutside: $[5] || ($[5] = (E) => o("pointerDownOutside", E))
|
|
24853
24857
|
}, {
|
|
24854
24858
|
default: M(() => [(g(), z(mt(e.position === "popper" ? uL : mL), ce({
|
|
24855
24859
|
...D.$attrs,
|
|
24856
24860
|
...d(T)
|
|
24857
24861
|
}, {
|
|
24858
24862
|
id: d(a).contentId,
|
|
24859
|
-
ref: (
|
|
24860
|
-
if (!
|
|
24861
|
-
const R = d(Zn)(
|
|
24863
|
+
ref: (E) => {
|
|
24864
|
+
if (!E) return;
|
|
24865
|
+
const R = d(Zn)(E);
|
|
24862
24866
|
R?.hasAttribute("data-reka-popper-content-wrapper") ? l.value = R.firstElementChild : l.value = R;
|
|
24863
24867
|
},
|
|
24864
24868
|
role: "listbox",
|
|
@@ -24871,7 +24875,7 @@ var dL = /* @__PURE__ */ U({
|
|
|
24871
24875
|
},
|
|
24872
24876
|
onContextmenu: $[0] || ($[0] = Ot(() => {
|
|
24873
24877
|
}, ["prevent"])),
|
|
24874
|
-
onPlaced: $[1] || ($[1] = (
|
|
24878
|
+
onPlaced: $[1] || ($[1] = (E) => v.value = !0),
|
|
24875
24879
|
onKeydown: w
|
|
24876
24880
|
}), {
|
|
24877
24881
|
default: M(() => [B(D.$slots, "default")]),
|
|
@@ -24909,15 +24913,15 @@ var vL = /* @__PURE__ */ U({
|
|
|
24909
24913
|
const n = e, o = t, { getItems: a } = In(), r = Ho(), i = Dl(), s = /* @__PURE__ */ N(!1), l = /* @__PURE__ */ N(!0), c = /* @__PURE__ */ N(), { forwardRef: u, currentElement: f } = Oe(), { viewport: p, selectedItem: h, selectedItemText: v, focusSelectedItem: m } = i;
|
|
24910
24914
|
function b() {
|
|
24911
24915
|
if (r.triggerElement.value && r.valueElement.value && c.value && f.value && p?.value && h?.value && v?.value) {
|
|
24912
|
-
const
|
|
24916
|
+
const C = r.triggerElement.value.getBoundingClientRect(), w = f.value.getBoundingClientRect(), _ = r.valueElement.value.getBoundingClientRect(), O = v.value.getBoundingClientRect();
|
|
24913
24917
|
if (r.dir.value !== "rtl") {
|
|
24914
|
-
const ge = O.left - w.left, we = _.left - ge, de =
|
|
24918
|
+
const ge = O.left - w.left, we = _.left - ge, de = C.left - we, ze = C.width + de, Ce = Math.max(ze, w.width), S = window.innerWidth - Sn, A = Ph(we, Sn, Math.max(Sn, S - Ce));
|
|
24915
24919
|
c.value.style.minWidth = `${ze}px`, c.value.style.left = `${A}px`;
|
|
24916
24920
|
} else {
|
|
24917
|
-
const ge = w.right - O.right, we = window.innerWidth - _.right - ge, de = window.innerWidth -
|
|
24921
|
+
const ge = w.right - O.right, we = window.innerWidth - _.right - ge, de = window.innerWidth - C.right - we, ze = C.width + de, Ce = Math.max(ze, w.width), S = window.innerWidth - Sn, A = Ph(we, Sn, Math.max(Sn, S - Ce));
|
|
24918
24922
|
c.value.style.minWidth = `${ze}px`, c.value.style.right = `${A}px`;
|
|
24919
24923
|
}
|
|
24920
|
-
const T = a().map((ge) => ge.ref), D = window.innerHeight - Sn * 2, $ = p.value.scrollHeight,
|
|
24924
|
+
const T = a().map((ge) => ge.ref), D = window.innerHeight - Sn * 2, $ = p.value.scrollHeight, E = window.getComputedStyle(f.value), R = Number.parseInt(E.borderTopWidth, 10), P = Number.parseInt(E.paddingTop, 10), q = Number.parseInt(E.borderBottomWidth, 10), L = Number.parseInt(E.paddingBottom, 10), j = R + P + $ + L + q, H = Math.min(h.value.offsetHeight * 5, j), V = window.getComputedStyle(p.value), K = Number.parseInt(V.paddingTop, 10), le = Number.parseInt(V.paddingBottom, 10), he = C.top + C.height / 2 - Sn, be = D - he, Ne = h.value.offsetHeight / 2, Ue = h.value.offsetTop + Ne, Xe = R + P + Ue, Je = j - Xe;
|
|
24921
24925
|
if (Xe <= he) {
|
|
24922
24926
|
const ge = h.value === T.at(-1);
|
|
24923
24927
|
c.value.style.bottom = "0px";
|
|
@@ -24936,16 +24940,16 @@ var vL = /* @__PURE__ */ U({
|
|
|
24936
24940
|
We(async () => {
|
|
24937
24941
|
await Be(), b(), f.value && (y.value = window.getComputedStyle(f.value).zIndex);
|
|
24938
24942
|
});
|
|
24939
|
-
function
|
|
24940
|
-
|
|
24943
|
+
function k(C) {
|
|
24944
|
+
C && l.value === !0 && (b(), m?.(), l.value = !1);
|
|
24941
24945
|
}
|
|
24942
24946
|
return tb(r.triggerElement, () => {
|
|
24943
24947
|
b();
|
|
24944
24948
|
}), hL({
|
|
24945
24949
|
contentWrapper: c,
|
|
24946
24950
|
shouldExpandOnScrollRef: s,
|
|
24947
|
-
onScrollButtonChange:
|
|
24948
|
-
}), (
|
|
24951
|
+
onScrollButtonChange: k
|
|
24952
|
+
}), (C, w) => (g(), I("div", {
|
|
24949
24953
|
ref_key: "contentWrapperElement",
|
|
24950
24954
|
ref: c,
|
|
24951
24955
|
style: Ye({
|
|
@@ -24961,10 +24965,10 @@ var vL = /* @__PURE__ */ U({
|
|
|
24961
24965
|
maxHeight: "100%"
|
|
24962
24966
|
}
|
|
24963
24967
|
}, {
|
|
24964
|
-
...
|
|
24968
|
+
...C.$attrs,
|
|
24965
24969
|
...n
|
|
24966
24970
|
}), {
|
|
24967
|
-
default: M(() => [B(
|
|
24971
|
+
default: M(() => [B(C.$slots, "default")]),
|
|
24968
24972
|
_: 3
|
|
24969
24973
|
}, 16)], 4));
|
|
24970
24974
|
}
|
|
@@ -25218,10 +25222,10 @@ var OL = /* @__PURE__ */ U({
|
|
|
25218
25222
|
async function y(w) {
|
|
25219
25223
|
await Be(), !w.defaultPrevented && (a.value ? i.onItemLeave?.() : w.currentTarget?.focus({ preventScroll: !0 }));
|
|
25220
25224
|
}
|
|
25221
|
-
async function
|
|
25225
|
+
async function k(w) {
|
|
25222
25226
|
await Be(), !w.defaultPrevented && w.currentTarget === vt() && i.onItemLeave?.();
|
|
25223
25227
|
}
|
|
25224
|
-
async function
|
|
25228
|
+
async function C(w) {
|
|
25225
25229
|
await Be(), !(w.defaultPrevented || i.searchRef?.value !== "" && w.key === " ") && (tL.includes(w.key) && m(w), w.key === " " && w.preventDefault());
|
|
25226
25230
|
}
|
|
25227
25231
|
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.");
|
|
@@ -25257,8 +25261,8 @@ var OL = /* @__PURE__ */ U({
|
|
|
25257
25261
|
onTouchend: _[3] || (_[3] = Ot(() => {
|
|
25258
25262
|
}, ["prevent", "stop"])),
|
|
25259
25263
|
onPointermove: y,
|
|
25260
|
-
onPointerleave:
|
|
25261
|
-
onKeydown:
|
|
25264
|
+
onPointerleave: k,
|
|
25265
|
+
onKeydown: C
|
|
25262
25266
|
}, {
|
|
25263
25267
|
default: M(() => [B(w.$slots, "default", { selected: u.value })]),
|
|
25264
25268
|
_: 3
|
|
@@ -25430,12 +25434,12 @@ var OL = /* @__PURE__ */ U({
|
|
|
25430
25434
|
return s.id ?? i?.fieldId.value;
|
|
25431
25435
|
}
|
|
25432
25436
|
function c() {
|
|
25433
|
-
const
|
|
25437
|
+
const E = (R, P) => [R, P].filter(Boolean).join(" ") || void 0;
|
|
25434
25438
|
return {
|
|
25435
25439
|
...i?.dataAttributes.value,
|
|
25436
25440
|
id: l(),
|
|
25437
|
-
"aria-labelledby":
|
|
25438
|
-
"aria-describedby":
|
|
25441
|
+
"aria-labelledby": E(s["aria-labelledby"], i?.labelId.value),
|
|
25442
|
+
"aria-describedby": E(s["aria-describedby"], i?.describedBy.value),
|
|
25439
25443
|
"aria-invalid": s["aria-invalid"] ?? (i?.invalid.value || void 0)
|
|
25440
25444
|
};
|
|
25441
25445
|
}
|
|
@@ -25458,41 +25462,41 @@ var OL = /* @__PURE__ */ U({
|
|
|
25458
25462
|
function y() {
|
|
25459
25463
|
r.value || (n.onOpenChange(!0), b());
|
|
25460
25464
|
}
|
|
25461
|
-
function E
|
|
25465
|
+
function k(E) {
|
|
25462
25466
|
y(), n.triggerPointerDownPosRef.value = {
|
|
25463
|
-
x: Math.round(
|
|
25464
|
-
y: Math.round(
|
|
25467
|
+
x: Math.round(E.pageX),
|
|
25468
|
+
y: Math.round(E.pageY)
|
|
25465
25469
|
};
|
|
25466
25470
|
}
|
|
25467
|
-
function
|
|
25468
|
-
return
|
|
25471
|
+
function C(E) {
|
|
25472
|
+
return E.button === 0 && E.ctrlKey === !1;
|
|
25469
25473
|
}
|
|
25470
25474
|
let w = !1;
|
|
25471
|
-
function _(
|
|
25472
|
-
if (
|
|
25473
|
-
if (
|
|
25474
|
-
const R =
|
|
25475
|
-
R.hasPointerCapture(
|
|
25475
|
+
function _(E) {
|
|
25476
|
+
if (E.defaultPrevented) return;
|
|
25477
|
+
if (E.pointerType === "touch") return E.preventDefault();
|
|
25478
|
+
const R = E.target;
|
|
25479
|
+
R.hasPointerCapture(E.pointerId) && R.releasePointerCapture(E.pointerId), C(E) && (k(E), w = !0);
|
|
25476
25480
|
}
|
|
25477
|
-
function O(
|
|
25478
|
-
|
|
25481
|
+
function O(E) {
|
|
25482
|
+
E.defaultPrevented || C(E) && E.preventDefault();
|
|
25479
25483
|
}
|
|
25480
|
-
function T(
|
|
25481
|
-
if (
|
|
25484
|
+
function T(E) {
|
|
25485
|
+
if (E.defaultPrevented) {
|
|
25482
25486
|
w = !1;
|
|
25483
25487
|
return;
|
|
25484
25488
|
}
|
|
25485
|
-
w ||
|
|
25489
|
+
w || E.currentTarget?.focus(), w = !1;
|
|
25486
25490
|
}
|
|
25487
|
-
function D(
|
|
25488
|
-
|
|
25491
|
+
function D(E) {
|
|
25492
|
+
E.defaultPrevented || (E.preventDefault(), E.pointerType === "touch" && k(E));
|
|
25489
25493
|
}
|
|
25490
|
-
function $(
|
|
25491
|
-
if (
|
|
25494
|
+
function $(E) {
|
|
25495
|
+
if (E.defaultPrevented) return;
|
|
25492
25496
|
const R = v.value !== "";
|
|
25493
|
-
!(
|
|
25497
|
+
!(E.ctrlKey || E.altKey || E.metaKey) && E.key.length === 1 && m(E.key, h()), !(R && E.key === " ") && eL.includes(E.key) && (y(), E.preventDefault());
|
|
25494
25498
|
}
|
|
25495
|
-
return (
|
|
25499
|
+
return (E, R) => (g(), z(d(zd), {
|
|
25496
25500
|
"as-child": "",
|
|
25497
25501
|
reference: e.reference
|
|
25498
25502
|
}, {
|
|
@@ -25519,7 +25523,7 @@ var OL = /* @__PURE__ */ U({
|
|
|
25519
25523
|
onPointerup: D,
|
|
25520
25524
|
onKeydown: $
|
|
25521
25525
|
}), {
|
|
25522
|
-
default: M(() => [B(
|
|
25526
|
+
default: M(() => [B(E.$slots, "default")]),
|
|
25523
25527
|
_: 3
|
|
25524
25528
|
}, 16, [
|
|
25525
25529
|
"type",
|
|
@@ -25610,9 +25614,9 @@ var OL = /* @__PURE__ */ U({
|
|
|
25610
25614
|
if (p?.value && h?.value) {
|
|
25611
25615
|
const v = Math.abs(l.value - f.scrollTop);
|
|
25612
25616
|
if (v > 0) {
|
|
25613
|
-
const m = window.innerHeight - Sn * 2, b = Number.parseFloat(h.value.style.minHeight), y = Number.parseFloat(h.value.style.height),
|
|
25614
|
-
if (
|
|
25615
|
-
const
|
|
25617
|
+
const m = window.innerHeight - Sn * 2, b = Number.parseFloat(h.value.style.minHeight), y = Number.parseFloat(h.value.style.height), k = Math.max(b, y);
|
|
25618
|
+
if (k < m) {
|
|
25619
|
+
const C = k + v, w = Math.min(m, C), _ = C - w;
|
|
25616
25620
|
h.value.style.height = `${w}px`, h.value.style.bottom === "0px" && (f.scrollTop = _ > 0 ? _ : 0, h.value.style.justifyContent = "flex-end");
|
|
25617
25621
|
}
|
|
25618
25622
|
}
|
|
@@ -25919,10 +25923,10 @@ var eF = /* @__PURE__ */ U({
|
|
|
25919
25923
|
function y() {
|
|
25920
25924
|
b(), p.value = !1, f.value = !0;
|
|
25921
25925
|
}
|
|
25922
|
-
function
|
|
25926
|
+
function k() {
|
|
25923
25927
|
b(), f.value = !1;
|
|
25924
25928
|
}
|
|
25925
|
-
function
|
|
25929
|
+
function C() {
|
|
25926
25930
|
m();
|
|
25927
25931
|
}
|
|
25928
25932
|
return QL({
|
|
@@ -25934,13 +25938,13 @@ var eF = /* @__PURE__ */ U({
|
|
|
25934
25938
|
h.value = w;
|
|
25935
25939
|
},
|
|
25936
25940
|
onTriggerEnter() {
|
|
25937
|
-
r.isOpenDelayed.value ?
|
|
25941
|
+
r.isOpenDelayed.value ? C() : y();
|
|
25938
25942
|
},
|
|
25939
25943
|
onTriggerLeave() {
|
|
25940
|
-
i.value ?
|
|
25944
|
+
i.value ? k() : b();
|
|
25941
25945
|
},
|
|
25942
25946
|
onOpen: y,
|
|
25943
|
-
onClose:
|
|
25947
|
+
onClose: k,
|
|
25944
25948
|
disableHoverableContent: i,
|
|
25945
25949
|
disableClosingTrigger: s,
|
|
25946
25950
|
disabled: l,
|
|
@@ -26573,8 +26577,8 @@ function DF(e, t, n) {
|
|
|
26573
26577
|
h.setAttribute("data-ui-app", ""), h.setAttribute("data-syno-pkg-land-ui", ""), h.setAttribute("data-ui-modal-scope", "app"), h.setAttribute(PF, ""), Object.assign(h.style, { position: "fixed", inset: "0", pointerEvents: "none" });
|
|
26574
26578
|
const v = () => {
|
|
26575
26579
|
for (const $ of yv) {
|
|
26576
|
-
const
|
|
26577
|
-
|
|
26580
|
+
const E = c.getAttribute($);
|
|
26581
|
+
E === null ? h.removeAttribute($) : h.setAttribute($, E);
|
|
26578
26582
|
}
|
|
26579
26583
|
for (const $ of bv(h.style)) h.style.removeProperty($);
|
|
26580
26584
|
for (const $ of bv(c.style)) h.style.setProperty($, c.style.getPropertyValue($));
|
|
@@ -26585,31 +26589,31 @@ function DF(e, t, n) {
|
|
|
26585
26589
|
const b = $F(c), y = () => {
|
|
26586
26590
|
const $ = !!b && IF(c, b);
|
|
26587
26591
|
b && (h.style.zIndex = p.getComputedStyle(b).zIndex, h.style.visibility = $ ? "hidden" : "");
|
|
26588
|
-
const { left:
|
|
26589
|
-
if (a.value = $ ? null : { left:
|
|
26592
|
+
const { left: E, top: R, width: P, height: q } = c.getBoundingClientRect();
|
|
26593
|
+
if (a.value = $ ? null : { left: E, top: R, width: P, height: q }, !$) {
|
|
26590
26594
|
h.style.setProperty("--ui-floating-owner-width", `${P}px`);
|
|
26591
|
-
const L = Math.max(0, Math.min(R + q, p.innerHeight) - Math.max(R,
|
|
26595
|
+
const L = Math.max(0, Math.min(R + q, p.innerHeight) - Math.max(R, k()));
|
|
26592
26596
|
h.style.setProperty("--ui-floating-owner-height", `${L}px`);
|
|
26593
26597
|
}
|
|
26594
|
-
},
|
|
26598
|
+
}, k = () => {
|
|
26595
26599
|
const $ = c.ownerDocument.getElementById("sds-taskbar")?.getBoundingClientRect();
|
|
26596
26600
|
return $ && $.height > 0 && $.top <= 0 ? Math.max($.bottom, 0) : 0;
|
|
26597
|
-
},
|
|
26598
|
-
r.value = kF({ width: p.innerWidth, height: p.innerHeight },
|
|
26599
|
-
}, w = typeof ResizeObserver > "u" ? null : new ResizeObserver(
|
|
26600
|
-
w?.observe(c), s =
|
|
26601
|
+
}, C = () => {
|
|
26602
|
+
r.value = kF({ width: p.innerWidth, height: p.innerHeight }, k()), h.style.setProperty("--ui-floating-max-height", `${r.value.height}px`), i.value = AF({ width: p.innerWidth, coarse: !!p.matchMedia?.("(pointer: coarse)").matches }), i.value ? h.removeAttribute("data-ui-presentation") : h.setAttribute("data-ui-presentation", "mobile"), y();
|
|
26603
|
+
}, w = typeof ResizeObserver > "u" ? null : new ResizeObserver(C);
|
|
26604
|
+
w?.observe(c), s = C;
|
|
26601
26605
|
const _ = new MutationObserver(y);
|
|
26602
26606
|
let O = null;
|
|
26603
26607
|
const T = ($) => {
|
|
26604
26608
|
O = $.target;
|
|
26605
26609
|
}, D = ($) => {
|
|
26606
26610
|
if (c.contains($.target)) return;
|
|
26607
|
-
const
|
|
26608
|
-
if (!
|
|
26609
|
-
(O?.isConnected &&
|
|
26611
|
+
const E = [...h.querySelectorAll("[data-ui-dialog]")].at(-1);
|
|
26612
|
+
if (!E) return;
|
|
26613
|
+
(O?.isConnected && E.contains(O) ? O : E).focus({ preventScroll: !0 });
|
|
26610
26614
|
};
|
|
26611
|
-
h.addEventListener("focusin", T), b ? (b.after(h), _.observe(b, { attributes: !0, attributeFilter: ["style", "class"] }), b.addEventListener("focusin", D)) : c.ownerDocument.body.appendChild(h),
|
|
26612
|
-
m.disconnect(), w?.disconnect(), _.disconnect(), p.removeEventListener("resize",
|
|
26615
|
+
h.addEventListener("focusin", T), b ? (b.after(h), _.observe(b, { attributes: !0, attributeFilter: ["style", "class"] }), b.addEventListener("focusin", D)) : c.ownerDocument.body.appendChild(h), C(), p.addEventListener("resize", C), h.addEventListener("pointerdown", n, !0), o.value = h, f(() => {
|
|
26616
|
+
m.disconnect(), w?.disconnect(), _.disconnect(), p.removeEventListener("resize", C), h.removeEventListener("pointerdown", n, !0), h.removeEventListener("focusin", T), b?.removeEventListener("focusin", D), h.remove(), o.value = null, s = void 0;
|
|
26613
26617
|
});
|
|
26614
26618
|
}, { flush: "post" }), { element: o, owner: a, locate: () => (s?.(), a.value), area: r, draggable: i };
|
|
26615
26619
|
}
|
|
@@ -26883,7 +26887,7 @@ const cf = /* @__PURE__ */ U({
|
|
|
26883
26887
|
if (V) return p(!0);
|
|
26884
26888
|
b() || K.cancel();
|
|
26885
26889
|
}
|
|
26886
|
-
function
|
|
26890
|
+
function k() {
|
|
26887
26891
|
m.value = !1, p(!1);
|
|
26888
26892
|
}
|
|
26889
26893
|
ri(
|
|
@@ -26893,26 +26897,28 @@ const cf = /* @__PURE__ */ U({
|
|
|
26893
26897
|
},
|
|
26894
26898
|
{ enabled: () => o.backDismiss ?? s.value }
|
|
26895
26899
|
);
|
|
26896
|
-
const
|
|
26900
|
+
const C = x(() => ["auto", "large", "full"].includes(o.height) ? o.height : "custom"), w = x(() => C.value === "custom" ? { "--ui-bottom-sheet-height": o.height } : void 0), _ = x(() => !!(o.title || o.description || i.header) || o.showClose), O = () => _w(i.default), T = /* @__PURE__ */ N(!1);
|
|
26897
26901
|
let D = 0;
|
|
26898
26902
|
const $ = () => typeof requestAnimationFrame == "function";
|
|
26899
|
-
function
|
|
26903
|
+
function E() {
|
|
26900
26904
|
$() && cancelAnimationFrame(D), T.value = !1;
|
|
26901
26905
|
}
|
|
26902
26906
|
ee(f, (V) => {
|
|
26903
|
-
if (
|
|
26907
|
+
if (E(), !V || !$()) return;
|
|
26904
26908
|
T.value = !0;
|
|
26905
26909
|
let K = 0, le = 0, he = 0;
|
|
26906
26910
|
const be = (Ne) => {
|
|
26907
|
-
if (K ||= performance.now(), he = le && Ne - le < oz ? he + 1 : 0, le = Ne, he >= 2 || Ne - K > az) return
|
|
26911
|
+
if (K ||= performance.now(), he = le && Ne - le < oz ? he + 1 : 0, le = Ne, he >= 2 || Ne - K > az) return E();
|
|
26908
26912
|
D = requestAnimationFrame(be);
|
|
26909
26913
|
};
|
|
26910
26914
|
D = requestAnimationFrame(be);
|
|
26911
|
-
}, { immediate: !0 }), Re(
|
|
26915
|
+
}, { immediate: !0 }), Re(E);
|
|
26912
26916
|
function R(V, K) {
|
|
26913
26917
|
let le = !1;
|
|
26914
26918
|
const he = () => {
|
|
26915
|
-
le || (le = !0, V.removeEventListener("animationend", be), clearTimeout(Ne),
|
|
26919
|
+
le || (le = !0, V.removeEventListener("animationend", be), clearTimeout(Ne), $() ? requestAnimationFrame(() => {
|
|
26920
|
+
setTimeout(K, 0);
|
|
26921
|
+
}) : K());
|
|
26916
26922
|
}, be = (Ue) => {
|
|
26917
26923
|
Ue.target === V && he();
|
|
26918
26924
|
};
|
|
@@ -26982,7 +26988,7 @@ const cf = /* @__PURE__ */ U({
|
|
|
26982
26988
|
Z(d(jb), ce(V.$attrs, {
|
|
26983
26989
|
"data-ui-bottom-sheet": "",
|
|
26984
26990
|
"data-ui-sheet": "",
|
|
26985
|
-
"data-ui-sheet-height":
|
|
26991
|
+
"data-ui-sheet-height": C.value,
|
|
26986
26992
|
"data-ui-sheet-header": _.value ? void 0 : "none",
|
|
26987
26993
|
"data-modal": d(o).modal ? void 0 : "false",
|
|
26988
26994
|
"data-ui-sheet-priming": T.value ? "" : void 0,
|
|
@@ -27082,7 +27088,7 @@ const cf = /* @__PURE__ */ U({
|
|
|
27082
27088
|
Z(Xr, {
|
|
27083
27089
|
variant: "danger",
|
|
27084
27090
|
"data-ui-bottom-sheet-discard": "",
|
|
27085
|
-
onClick:
|
|
27091
|
+
onClick: k
|
|
27086
27092
|
}, {
|
|
27087
27093
|
default: M(() => [
|
|
27088
27094
|
Ie(oe(d(r)("Discard")), 1)
|
|
@@ -27574,7 +27580,7 @@ const _z = {
|
|
|
27574
27580
|
(K) => K.getAttribute("aria-disabled") !== "true"
|
|
27575
27581
|
) : [];
|
|
27576
27582
|
}
|
|
27577
|
-
function
|
|
27583
|
+
function k(V) {
|
|
27578
27584
|
if (V.key === "Escape" || V.key === "Tab" || (V.stopPropagation(), V.key !== "ArrowDown" && V.key !== "ArrowUp" && V.key !== "Enter")) return;
|
|
27579
27585
|
const K = y();
|
|
27580
27586
|
if (K.length) {
|
|
@@ -27587,7 +27593,7 @@ const _z = {
|
|
|
27587
27593
|
p.value = !0, K.at(V.key === "ArrowDown" ? 0 : -1)?.focus();
|
|
27588
27594
|
}
|
|
27589
27595
|
}
|
|
27590
|
-
function
|
|
27596
|
+
function C(V) {
|
|
27591
27597
|
!f.value || p.value || Ll() || V.target !== l.value && l.value?.focus();
|
|
27592
27598
|
}
|
|
27593
27599
|
ee(s, (V) => {
|
|
@@ -27603,7 +27609,7 @@ const _z = {
|
|
|
27603
27609
|
function $() {
|
|
27604
27610
|
w.value === "sheet" && !o.value && (s.value = !0);
|
|
27605
27611
|
}
|
|
27606
|
-
function
|
|
27612
|
+
function E(V) {
|
|
27607
27613
|
H(V), r("update:modelValue", V), s.value = !1;
|
|
27608
27614
|
}
|
|
27609
27615
|
const R = ki(() => c.value?.$el, () => _.value), P = kw(() => n.motion), q = Ew(() => _.value, () => {
|
|
@@ -27663,7 +27669,7 @@ const _z = {
|
|
|
27663
27669
|
class: ["z-[1450] min-w-[min(var(--reka-select-trigger-width),var(--reka-popper-available-width))] overflow-hidden rounded-[var(--ui-radius-popover)] border border-[var(--ui-border-floating)] bg-[var(--ui-surface-raised)] p-1 shadow-[var(--ui-shadow-menu)]", d(Nl)],
|
|
27664
27670
|
"data-syno-pkg-land-ui": "",
|
|
27665
27671
|
onEscapeKeyDown: d(Bl),
|
|
27666
|
-
onFocusin:
|
|
27672
|
+
onFocusin: C,
|
|
27667
27673
|
onPointerdown: K[1] || (K[1] = (le) => p.value = !0)
|
|
27668
27674
|
}), {
|
|
27669
27675
|
default: M(() => [
|
|
@@ -27677,7 +27683,7 @@ const _z = {
|
|
|
27677
27683
|
"aria-label": d(a).searchPlaceholder,
|
|
27678
27684
|
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)]",
|
|
27679
27685
|
"data-syno-pkg-land-ui-select-search": "",
|
|
27680
|
-
onKeydown:
|
|
27686
|
+
onKeydown: k
|
|
27681
27687
|
}, null, 40, Iz), [
|
|
27682
27688
|
[uS, i.value]
|
|
27683
27689
|
])
|
|
@@ -27759,7 +27765,7 @@ const _z = {
|
|
|
27759
27765
|
loading: d(v),
|
|
27760
27766
|
"loading-text": d(a).loadingText,
|
|
27761
27767
|
"not-found-text": d(a).notFoundText,
|
|
27762
|
-
onPick:
|
|
27768
|
+
onPick: E
|
|
27763
27769
|
}, null, 8, ["open", "query", "title", "groups", "value", "search", "search-placeholder", "loading", "loading-text", "not-found-text"])) : W("", !0)
|
|
27764
27770
|
], 16));
|
|
27765
27771
|
}
|
|
@@ -27895,20 +27901,20 @@ const Nw = /* @__PURE__ */ U({
|
|
|
27895
27901
|
const _ = o.value, O = w.target;
|
|
27896
27902
|
_ && b(O) && f(jz(O, _), 0);
|
|
27897
27903
|
}
|
|
27898
|
-
function
|
|
27904
|
+
function k() {
|
|
27899
27905
|
a.value && u();
|
|
27900
27906
|
}
|
|
27901
|
-
function
|
|
27907
|
+
function C(w, _) {
|
|
27902
27908
|
if (!w) return;
|
|
27903
27909
|
const O = _ ? w.addEventListener.bind(w) : w.removeEventListener.bind(w);
|
|
27904
27910
|
O("pointerover", p), O("pointerleave", u), O("pointerdown", v), O("pointerup", m), O("focusin", y), O("focusout", u);
|
|
27905
27911
|
}
|
|
27906
27912
|
return ee(o, (w, _) => {
|
|
27907
|
-
|
|
27913
|
+
C(_, !1), C(w, !0), u();
|
|
27908
27914
|
}, { immediate: !0, flush: "post" }), ee(i, (w) => {
|
|
27909
|
-
w ? window.addEventListener("scroll",
|
|
27915
|
+
w ? window.addEventListener("scroll", k, !0) : window.removeEventListener("scroll", k, !0);
|
|
27910
27916
|
}), Re(() => {
|
|
27911
|
-
|
|
27917
|
+
C(o.value, !1), window.removeEventListener("scroll", k, !0), clearTimeout(l);
|
|
27912
27918
|
}), (w, _) => (g(), I(xe, null, [
|
|
27913
27919
|
w.$slots.default && !t.target ? (g(), I("div", {
|
|
27914
27920
|
key: 0,
|
|
@@ -28126,28 +28132,42 @@ const Nw = /* @__PURE__ */ U({
|
|
|
28126
28132
|
});
|
|
28127
28133
|
function ho(e, t = {}) {
|
|
28128
28134
|
const n = /* @__PURE__ */ N(0);
|
|
28129
|
-
let o, a = 0,
|
|
28130
|
-
function
|
|
28131
|
-
|
|
28132
|
-
|
|
28133
|
-
|
|
28134
|
-
|
|
28135
|
-
|
|
28136
|
-
|
|
28137
|
-
|
|
28138
|
-
|
|
28139
|
-
|
|
28140
|
-
})
|
|
28135
|
+
let o, a, r = 0, i = 0, s = 0, l = !1, c;
|
|
28136
|
+
function u(h) {
|
|
28137
|
+
n.value = h, s = h, Be(() => {
|
|
28138
|
+
l || t.onMeasured?.();
|
|
28139
|
+
});
|
|
28140
|
+
}
|
|
28141
|
+
function f(h) {
|
|
28142
|
+
o = new ResizeObserver((v) => {
|
|
28143
|
+
const m = v[0]?.contentRect.width;
|
|
28144
|
+
m === void 0 || m === s || (s = m, r || (r = requestAnimationFrame(() => {
|
|
28145
|
+
r = 0, n.value = s;
|
|
28146
|
+
})));
|
|
28147
|
+
}), o.observe(h);
|
|
28148
|
+
}
|
|
28149
|
+
function p() {
|
|
28150
|
+
if (l) return;
|
|
28151
|
+
const h = e.value;
|
|
28152
|
+
if (!h) return t.onMeasured?.();
|
|
28153
|
+
if (t.observeFirst && typeof ResizeObserver < "u") {
|
|
28154
|
+
a = new ResizeObserver((v) => {
|
|
28155
|
+
a && (a.disconnect(), a = void 0, u(v[0]?.contentRect.width ?? 0), i = requestAnimationFrame(() => {
|
|
28156
|
+
i = 0, l || f(h);
|
|
28157
|
+
}));
|
|
28158
|
+
}), a.observe(h);
|
|
28159
|
+
return;
|
|
28141
28160
|
}
|
|
28161
|
+
u(h.getBoundingClientRect().width), !(typeof ResizeObserver > "u") && f(h);
|
|
28142
28162
|
}
|
|
28143
28163
|
return We(() => {
|
|
28144
|
-
const
|
|
28145
|
-
if (!
|
|
28146
|
-
|
|
28147
|
-
|
|
28164
|
+
const h = t.after;
|
|
28165
|
+
if (!h || h.value) return p();
|
|
28166
|
+
c = ee(h, (v) => {
|
|
28167
|
+
v && (c?.(), c = void 0, p());
|
|
28148
28168
|
}, { flush: "sync" });
|
|
28149
28169
|
}), Re(() => {
|
|
28150
|
-
|
|
28170
|
+
l = !0, c?.(), a?.disconnect(), a = void 0, o?.disconnect(), r && cancelAnimationFrame(r), i && cancelAnimationFrame(i);
|
|
28151
28171
|
}), n;
|
|
28152
28172
|
}
|
|
28153
28173
|
const rB = 0.9;
|
|
@@ -28740,8 +28760,8 @@ const vf = /* @__PURE__ */ U({
|
|
|
28740
28760
|
p(n.under, !1, !1), n.under && w(n.under);
|
|
28741
28761
|
});
|
|
28742
28762
|
let y = null;
|
|
28743
|
-
const
|
|
28744
|
-
let
|
|
28763
|
+
const k = /* @__PURE__ */ N(!1);
|
|
28764
|
+
let C;
|
|
28745
28765
|
function w(P) {
|
|
28746
28766
|
P && (P.style.removeProperty("transform"), P.style.removeProperty("transition"), P.style.removeProperty("--ui-push-cover"), P.removeAttribute("data-ui-push-dragging"));
|
|
28747
28767
|
}
|
|
@@ -28760,7 +28780,7 @@ const vf = /* @__PURE__ */ U({
|
|
|
28760
28780
|
if (!l() || P.touches.length !== 1 || !i.value) return;
|
|
28761
28781
|
const q = P.touches[0], L = i.value.getBoundingClientRect();
|
|
28762
28782
|
if (q.clientX - L.left > DB) return;
|
|
28763
|
-
clearTimeout(
|
|
28783
|
+
clearTimeout(C);
|
|
28764
28784
|
const j = new Vw();
|
|
28765
28785
|
j.add(q.clientX, P.timeStamp), y = { id: q.identifier, x: q.clientX, y: q.clientY, width: L.width || 1, horizontal: null, progress: 0, velocity: j };
|
|
28766
28786
|
}
|
|
@@ -28775,29 +28795,29 @@ const vf = /* @__PURE__ */ U({
|
|
|
28775
28795
|
y = null;
|
|
28776
28796
|
return;
|
|
28777
28797
|
}
|
|
28778
|
-
|
|
28798
|
+
k.value = !0;
|
|
28779
28799
|
}
|
|
28780
28800
|
P.cancelable && P.preventDefault(), y.progress = Math.min(1, Math.max(0, L / y.width)), _(y.progress);
|
|
28781
28801
|
}
|
|
28782
|
-
function
|
|
28802
|
+
function E(P) {
|
|
28783
28803
|
if (!y || !T(P, y.id)) return;
|
|
28784
28804
|
const L = y;
|
|
28785
28805
|
if (y = null, !L.horizontal) return;
|
|
28786
|
-
|
|
28806
|
+
k.value = !1;
|
|
28787
28807
|
const j = L.velocity.velocity(P.timeStamp), H = P.type === "touchend" && EB(L.progress * L.width, j, RB * L.width), V = "var(--ui-motion-sheet-ease)";
|
|
28788
28808
|
if (H) {
|
|
28789
28809
|
const K = O("--ui-motion-pop"), le = jw(j, K);
|
|
28790
28810
|
_(1, `transform ${le !== K ? `${le}ms` : "var(--ui-motion-pop)"} ${V}`), o("pop");
|
|
28791
28811
|
return;
|
|
28792
28812
|
}
|
|
28793
|
-
_(0, `transform var(--ui-motion-spring-back) ${V}`),
|
|
28813
|
+
_(0, `transform var(--ui-motion-spring-back) ${V}`), C = setTimeout(() => {
|
|
28794
28814
|
w(i.value), w(n.under);
|
|
28795
28815
|
}, O("--ui-motion-spring-back") + 20);
|
|
28796
28816
|
}
|
|
28797
28817
|
function R() {
|
|
28798
28818
|
w(i.value), w(n.under);
|
|
28799
28819
|
}
|
|
28800
|
-
return Re(() => clearTimeout(
|
|
28820
|
+
return Re(() => clearTimeout(C)), (P, q) => (g(), z(Sg, {
|
|
28801
28821
|
name: "ui-push",
|
|
28802
28822
|
css: n.enabled,
|
|
28803
28823
|
onAfterLeave: R
|
|
@@ -28810,12 +28830,12 @@ const vf = /* @__PURE__ */ U({
|
|
|
28810
28830
|
}, P.$attrs, {
|
|
28811
28831
|
class: "ui-push-page",
|
|
28812
28832
|
"data-ui-push": n.enabled ? "" : void 0,
|
|
28813
|
-
"data-ui-push-dragging":
|
|
28833
|
+
"data-ui-push-dragging": k.value ? "" : void 0,
|
|
28814
28834
|
"data-syno-pkg-land-ui": "",
|
|
28815
28835
|
onTouchstartPassive: D,
|
|
28816
28836
|
onTouchmove: $,
|
|
28817
|
-
onTouchend:
|
|
28818
|
-
onTouchcancel:
|
|
28837
|
+
onTouchend: E,
|
|
28838
|
+
onTouchcancel: E
|
|
28819
28839
|
}), {
|
|
28820
28840
|
default: M(() => [
|
|
28821
28841
|
d(c) && a["header-actions"] ? On((g(), I("div", OB, [
|
|
@@ -29317,25 +29337,25 @@ const vf = /* @__PURE__ */ U({
|
|
|
29317
29337
|
ee(() => s.value && m.value === "sheet", ($) => {
|
|
29318
29338
|
$ && (y.value = fw(l.value?.$el) || void 0);
|
|
29319
29339
|
});
|
|
29320
|
-
const
|
|
29340
|
+
const k = ki(() => l.value?.$el, () => b.value), C = kw(() => n.motion), w = Ew(() => b.value, () => {
|
|
29321
29341
|
s.value = !1;
|
|
29322
29342
|
}), _ = x(() => n.checkedKeys ?? a.value), O = x(() => ({
|
|
29323
29343
|
...r.value,
|
|
29324
29344
|
...n.radioValues,
|
|
29325
29345
|
...n.radioValue !== void 0 ? { "": n.radioValue } : {}
|
|
29326
29346
|
}));
|
|
29327
|
-
function T($,
|
|
29328
|
-
const R =
|
|
29329
|
-
a.value = R, o("update:checkedKeys", R), o("toggle", $,
|
|
29347
|
+
function T($, E) {
|
|
29348
|
+
const R = E ? [.../* @__PURE__ */ new Set([..._.value, $])] : _.value.filter((P) => P !== $);
|
|
29349
|
+
a.value = R, o("update:checkedKeys", R), o("toggle", $, E);
|
|
29330
29350
|
}
|
|
29331
|
-
function D($,
|
|
29351
|
+
function D($, E, R) {
|
|
29332
29352
|
const P = { ...O.value, [R]: $ };
|
|
29333
|
-
r.value = P, R === "" && o("update:radioValue", $), o("update:radioValues", P), o("radioSelect", $,
|
|
29353
|
+
r.value = P, R === "" && o("update:radioValue", $), o("update:radioValues", P), o("radioSelect", $, E, R);
|
|
29334
29354
|
}
|
|
29335
|
-
return ($,
|
|
29355
|
+
return ($, E) => (g(), I(xe, null, [
|
|
29336
29356
|
Z(d(bN), {
|
|
29337
29357
|
open: b.value,
|
|
29338
|
-
"onUpdate:open":
|
|
29358
|
+
"onUpdate:open": E[0] || (E[0] = (R) => s.value = R)
|
|
29339
29359
|
}, {
|
|
29340
29360
|
default: M(() => [
|
|
29341
29361
|
Z(d(zN), ce({
|
|
@@ -29353,8 +29373,8 @@ const vf = /* @__PURE__ */ U({
|
|
|
29353
29373
|
key: 0,
|
|
29354
29374
|
onOpenAutoFocus: d(XF),
|
|
29355
29375
|
"data-ui-popup": ""
|
|
29356
|
-
}, { ...d(
|
|
29357
|
-
"data-ui-popup-motion": d(
|
|
29376
|
+
}, { ...d(k), ...d(w), ...$.$attrs }, {
|
|
29377
|
+
"data-ui-popup-motion": d(C)() === "none" ? "none" : void 0,
|
|
29358
29378
|
align: n.align,
|
|
29359
29379
|
"side-offset": 4,
|
|
29360
29380
|
class: ["z-[1450] min-w-[min(11rem,var(--reka-popper-available-width))] overflow-y-auto [scrollbar-gutter:stable] rounded-[var(--ui-radius-popover)] border border-[var(--ui-border-floating)] bg-[var(--ui-surface-raised)] p-1 shadow-[var(--ui-shadow-menu)] outline-none", d(Nl)],
|
|
@@ -29366,9 +29386,9 @@ const vf = /* @__PURE__ */ U({
|
|
|
29366
29386
|
items: h.value,
|
|
29367
29387
|
"checked-keys": _.value,
|
|
29368
29388
|
"radio-values": O.value,
|
|
29369
|
-
floating: d(
|
|
29389
|
+
floating: d(k),
|
|
29370
29390
|
"radio-indicator": n.radioIndicator,
|
|
29371
|
-
motion: d(
|
|
29391
|
+
motion: d(C)(),
|
|
29372
29392
|
onSelect: v,
|
|
29373
29393
|
onToggle: T,
|
|
29374
29394
|
onRadio: D
|
|
@@ -29384,7 +29404,7 @@ const vf = /* @__PURE__ */ U({
|
|
|
29384
29404
|
}, 8, ["open"]),
|
|
29385
29405
|
d(m) === "sheet" && h.value.length > 0 ? (g(), z(sq, ce({ key: 0 }, $.$attrs, {
|
|
29386
29406
|
open: s.value,
|
|
29387
|
-
"onUpdate:open":
|
|
29407
|
+
"onUpdate:open": E[1] || (E[1] = (R) => s.value = R),
|
|
29388
29408
|
items: h.value,
|
|
29389
29409
|
title: y.value,
|
|
29390
29410
|
"checked-keys": _.value,
|
|
@@ -29549,19 +29569,19 @@ const hq = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], vq = ["data
|
|
|
29549
29569
|
function c(Ce, S) {
|
|
29550
29570
|
Aw(S), a(Ce === "pointerDownOutside" ? "pointerDownOutside" : "interactOutside", S), o.closeOnOutside || S.preventDefault();
|
|
29551
29571
|
}
|
|
29552
|
-
const u = { dim: "bg-[var(--ui-overlay)]", light: "bg-[var(--ui-overlay-light)]", none: "bg-transparent" }, f = Fl(), p = x(() => f?.element.value ?? null), { position: h, draggable: v, onPointerdown: m, onKeydown: b } = dq(Ve("handle"), f), y = x(() => o.width ? void 0 : o.size),
|
|
29572
|
+
const u = { dim: "bg-[var(--ui-overlay)]", light: "bg-[var(--ui-overlay-light)]", none: "bg-transparent" }, f = Fl(), p = x(() => f?.element.value ?? null), { position: h, draggable: v, onPointerdown: m, onKeydown: b } = dq(Ve("handle"), f), y = x(() => o.width ? void 0 : o.size), k = x(() => o.width ?? (y.value && `var(--ui-dialog-width-${y.value})`)), C = x(() => !!k.value), w = o$(), _ = x(() => C.value ? void 0 : w.value), O = x(() => ({
|
|
29553
29573
|
left: h.value && `${h.value.x}px`,
|
|
29554
29574
|
top: h.value && `${h.value.y}px`,
|
|
29555
|
-
maxWidth:
|
|
29575
|
+
maxWidth: k.value,
|
|
29556
29576
|
"--ui-dialog-max-width": o.maxWidth,
|
|
29557
|
-
"--ui-dialog-width":
|
|
29577
|
+
"--ui-dialog-width": k.value ?? "var(--ui-dialog-max-width)",
|
|
29558
29578
|
"--ui-dialog-floor": _.value && `var(--ui-dialog-width-${_.value})`,
|
|
29559
29579
|
// A centred phone modal hugs its content: its height is only a cap, inside
|
|
29560
29580
|
// the safe area with the phone's 16px gutter, and its body scrolls past it.
|
|
29561
|
-
height:
|
|
29581
|
+
height: E.value ? void 0 : o.height && `min(${o.height}, 100%)`,
|
|
29562
29582
|
minHeight: o.minHeight && `min(${o.minHeight}, 100%)`,
|
|
29563
|
-
maxHeight:
|
|
29564
|
-
})), T = sf(), D = x(() => f ? !f.draggable.value : T.value), $ = x(() => D.value && o.presentation !== "modal"),
|
|
29583
|
+
maxHeight: E.value ? `min(${o.maxHeight ?? o.height ?? "100%"}, ${bq})` : o.maxHeight && `min(${o.maxHeight}, 100%)`
|
|
29584
|
+
})), T = sf(), D = x(() => f ? !f.draggable.value : T.value), $ = x(() => D.value && o.presentation !== "modal"), E = x(() => D.value && o.presentation === "modal" && o.fullscreen !== !0), R = x(() => D.value && o.scrim === "light" ? "dim" : o.scrim), P = TF(), q = x(() => !!f && !D.value), L = x(() => q.value ? P?.value ?? void 0 : void 0), j = fq(), H = Ve("bodyScroller"), V = Hw(H, () => "y"), K = x(() => o.flush || V.top.value), le = x(() => o.flush || V.bottom.value), he = /* @__PURE__ */ N(!1), be = x(() => o.fullscreen || he.value ? "full" : "auto"), Ne = Ve("sheetFields");
|
|
29565
29585
|
function Ue(Ce) {
|
|
29566
29586
|
he.value = (Ne.value?.querySelectorAll(wq).length ?? 0) > 3, a("openAutoFocus", Ce);
|
|
29567
29587
|
}
|
|
@@ -29654,7 +29674,7 @@ const hq = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], vq = ["data
|
|
|
29654
29674
|
}, d(o).description ? Ce.$attrs : { "aria-describedby": void 0, ...Ce.$attrs }, {
|
|
29655
29675
|
"data-ui-dialog": "",
|
|
29656
29676
|
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", [
|
|
29657
|
-
|
|
29677
|
+
C.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))]",
|
|
29658
29678
|
// Auto side margins centre it: a -50% shift would leave a content-sized panel half the width.
|
|
29659
29679
|
d(h) ? void 0 : "inset-x-0 mx-auto top-1/2 -translate-y-1/2",
|
|
29660
29680
|
// DSM rounds a modal window 3px and only a message box 8px.
|
|
@@ -29662,7 +29682,7 @@ const hq = ["data-ui-dialog-header-divider", "data-ui-drag-handle"], vq = ["data
|
|
|
29662
29682
|
d(o).fullscreen === !0 && yq
|
|
29663
29683
|
]],
|
|
29664
29684
|
style: O.value,
|
|
29665
|
-
"data-ui-dialog-sizing":
|
|
29685
|
+
"data-ui-dialog-sizing": C.value ? "fixed" : "content",
|
|
29666
29686
|
"data-ui-dialog-size": y.value,
|
|
29667
29687
|
"data-ui-dialog-floor": _.value,
|
|
29668
29688
|
"data-ui-dialog-layout": ae.value ? "window" : "message",
|
|
@@ -29868,15 +29888,15 @@ const Eq = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29868
29888
|
}
|
|
29869
29889
|
function l() {
|
|
29870
29890
|
return a.slice().sort((T, D) => {
|
|
29871
|
-
const $ = T.element(),
|
|
29872
|
-
return !$ || !
|
|
29891
|
+
const $ = T.element(), E = D.element();
|
|
29892
|
+
return !$ || !E ? 0 : $.compareDocumentPosition(E) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
29873
29893
|
}).filter((T) => !T.disabled());
|
|
29874
29894
|
}
|
|
29875
29895
|
function c(T, D) {
|
|
29876
29896
|
const $ = l();
|
|
29877
29897
|
if ($.length === 0) return;
|
|
29878
|
-
const
|
|
29879
|
-
(D === "first" ? $[0] : D === "last" ? $[$.length - 1] :
|
|
29898
|
+
const E = $.findIndex((P) => P.value === T);
|
|
29899
|
+
(D === "first" ? $[0] : D === "last" ? $[$.length - 1] : E === -1 ? $[0] : D === "next" ? $[E + 1] : $[E - 1])?.element()?.focus({ preventScroll: !0 });
|
|
29880
29900
|
}
|
|
29881
29901
|
const u = {
|
|
29882
29902
|
selected: x(() => n.modelValue),
|
|
@@ -29894,7 +29914,7 @@ const Eq = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29894
29914
|
function y(T) {
|
|
29895
29915
|
return a.find((D) => D.value === T)?.element();
|
|
29896
29916
|
}
|
|
29897
|
-
function
|
|
29917
|
+
function k(T) {
|
|
29898
29918
|
const D = y(T);
|
|
29899
29919
|
if (!D) return null;
|
|
29900
29920
|
const $ = D.getBoundingClientRect();
|
|
@@ -29903,11 +29923,11 @@ const Eq = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29903
29923
|
ee(() => n.modelValue, (T, D) => {
|
|
29904
29924
|
const $ = f.value;
|
|
29905
29925
|
if (m = null, !$ || Vl($)) return;
|
|
29906
|
-
m = $.hasAttribute("data-ui-segment-moving") && v.value ? v.value.getBoundingClientRect() :
|
|
29926
|
+
m = $.hasAttribute("data-ui-segment-moving") && v.value ? v.value.getBoundingClientRect() : k(D);
|
|
29907
29927
|
}, { flush: "pre" });
|
|
29908
|
-
function
|
|
29909
|
-
const D = f.value, $ = D.getBoundingClientRect(),
|
|
29910
|
-
v.value.style.width = `${T.width}px`, v.value.style.height = `${T.height}px`, v.value.style.transform = `translate(${
|
|
29928
|
+
function C(T) {
|
|
29929
|
+
const D = f.value, $ = D.getBoundingClientRect(), E = T.left - $.left - D.clientLeft + D.scrollLeft, R = T.top - $.top - D.clientTop + D.scrollTop;
|
|
29930
|
+
v.value.style.width = `${T.width}px`, v.value.style.height = `${T.height}px`, v.value.style.transform = `translate(${E}px, ${R}px)`;
|
|
29911
29931
|
}
|
|
29912
29932
|
function w() {
|
|
29913
29933
|
clearTimeout(b);
|
|
@@ -29917,12 +29937,12 @@ const Eq = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29917
29937
|
ee(() => n.modelValue, (T) => {
|
|
29918
29938
|
const D = m;
|
|
29919
29939
|
m = null;
|
|
29920
|
-
const $ = f.value,
|
|
29921
|
-
if (!$ || !
|
|
29922
|
-
clearTimeout(b),
|
|
29923
|
-
const P = ii(
|
|
29940
|
+
const $ = f.value, E = v.value, R = k(T);
|
|
29941
|
+
if (!$ || !E || !D || !R || D.width <= 0 || R.width <= 0) return w();
|
|
29942
|
+
clearTimeout(b), E.style.transition = "none", C(D), $.setAttribute("data-ui-segment-moving", ""), E.offsetWidth, E.style.transition = "";
|
|
29943
|
+
const P = ii(E);
|
|
29924
29944
|
if (P < 1) return w();
|
|
29925
|
-
|
|
29945
|
+
C(R), b = setTimeout(w, P + 50);
|
|
29926
29946
|
}, { flush: "post" });
|
|
29927
29947
|
function _(T) {
|
|
29928
29948
|
T.target === v.value && T.propertyName === "transform" && w();
|
|
@@ -29977,8 +29997,8 @@ const Eq = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
29977
29997
|
setup(e) {
|
|
29978
29998
|
const t = e, n = Cq(), o = /* @__PURE__ */ N(), a = /* @__PURE__ */ N(null), r = /* @__PURE__ */ N(!1);
|
|
29979
29999
|
function i() {
|
|
29980
|
-
const $ = a.value,
|
|
29981
|
-
|
|
30000
|
+
const $ = a.value, E = !!$ && !$.textContent?.trim() && !!$.querySelector(":scope > svg");
|
|
30001
|
+
E !== r.value && (r.value = E);
|
|
29982
30002
|
}
|
|
29983
30003
|
Ga(i);
|
|
29984
30004
|
const s = x(() => n?.selected.value === t.value), l = x(() => t.disabled || !!n?.groupDisabled.value), c = x(() => s.value && !l.value ? 0 : -1), u = x(() => t.dot !== !1 && t.dot !== void 0), f = x(() => typeof t.dot == "string" && t.dot ? t.dot : void 0), p = x(() => typeof t.tooltip == "string" ? t.tooltip : t.tooltip === !0 ? t.ariaLabel ?? o.value?.textContent?.trim() ?? "" : t.tooltip && typeof t.tooltip == "object" && typeof t.tooltip.content == "string" ? t.tooltip.content : ""), h = x(
|
|
@@ -30009,13 +30029,13 @@ const Eq = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
30009
30029
|
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)]"
|
|
30010
30030
|
)
|
|
30011
30031
|
);
|
|
30012
|
-
function
|
|
30013
|
-
const $ = o.value,
|
|
30014
|
-
if (!$ || !
|
|
30015
|
-
const R =
|
|
30016
|
-
P.left < R.left + 24 ?
|
|
30032
|
+
function k() {
|
|
30033
|
+
const $ = o.value, E = $?.closest("[role=tablist]");
|
|
30034
|
+
if (!$ || !E || E.scrollWidth <= E.clientWidth) return;
|
|
30035
|
+
const R = E.getBoundingClientRect(), P = $.getBoundingClientRect();
|
|
30036
|
+
P.left < R.left + 24 ? E.scrollLeft -= R.left + 24 - P.left : P.right > R.right - 24 && (E.scrollLeft += P.right - (R.right - 24));
|
|
30017
30037
|
}
|
|
30018
|
-
const
|
|
30038
|
+
const C = x(() => t.ariaLabel ?? o.value?.textContent?.trim() ?? ""), w = x(() => n?.variant.value === "sheet" ? m.value : n?.size.value === "sm" ? h.value : v.value), _ = {
|
|
30019
30039
|
get value() {
|
|
30020
30040
|
return t.value;
|
|
30021
30041
|
},
|
|
@@ -30035,10 +30055,10 @@ const Eq = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
30035
30055
|
End: "last"
|
|
30036
30056
|
};
|
|
30037
30057
|
function D($) {
|
|
30038
|
-
const
|
|
30039
|
-
|
|
30058
|
+
const E = T[$.key];
|
|
30059
|
+
E && ($.preventDefault(), n?.moveFocus(t.value, E));
|
|
30040
30060
|
}
|
|
30041
|
-
return ($,
|
|
30061
|
+
return ($, E) => (g(), z(ff, {
|
|
30042
30062
|
content: p.value,
|
|
30043
30063
|
disabled: !p.value
|
|
30044
30064
|
}, {
|
|
@@ -30059,10 +30079,10 @@ const Eq = ["aria-label", "aria-labelledby", "data-ui-segment-control", "data-ov
|
|
|
30059
30079
|
tabindex: c.value,
|
|
30060
30080
|
"data-state": s.value ? "selected" : "inactive",
|
|
30061
30081
|
class: w.value,
|
|
30062
|
-
title: p.value ? void 0 :
|
|
30082
|
+
title: p.value ? void 0 : C.value || void 0,
|
|
30063
30083
|
onClick: O,
|
|
30064
30084
|
onKeydown: D,
|
|
30065
|
-
onFocus:
|
|
30085
|
+
onFocus: k
|
|
30066
30086
|
}), [
|
|
30067
30087
|
$.$slots.icon ? (g(), I("span", Oq, [
|
|
30068
30088
|
B($.$slots, "icon")
|
|
@@ -30495,14 +30515,14 @@ const cV = {
|
|
|
30495
30515
|
const S = s.value;
|
|
30496
30516
|
a.icon !== "info" || a.wrap || !S || S.hasAttribute("data-ui-callout-recall-trigger") || S.closest("[data-ui-app-toolbar], [data-ui-page-header-meta]") && (b = o0("info"), y.value = b.id);
|
|
30497
30517
|
}), Re(() => b?.unregister());
|
|
30498
|
-
const
|
|
30499
|
-
let T, D, $,
|
|
30518
|
+
const k = x(() => y.value !== null && a0.value === y.value && si.size > 0), C = x(() => m.value && !a.forceSimple || k.value), w = x(() => a.hasPadding ? C.value ? "p-4" : "px-3 py-2" : "p-0"), _ = x(() => a.tipContainer?.() ?? void 0), O = ki(() => s.value ?? void 0, () => c.value);
|
|
30519
|
+
let T, D, $, E = !1;
|
|
30500
30520
|
function R() {
|
|
30501
30521
|
clearTimeout(T), clearTimeout(D), clearTimeout($);
|
|
30502
30522
|
}
|
|
30503
30523
|
function P() {
|
|
30504
|
-
|
|
30505
|
-
|
|
30524
|
+
E = !0, s.value?.focus(), setTimeout(() => {
|
|
30525
|
+
E = !1;
|
|
30506
30526
|
}, 0);
|
|
30507
30527
|
}
|
|
30508
30528
|
function q() {
|
|
@@ -30541,13 +30561,13 @@ const cV = {
|
|
|
30541
30561
|
u.value || h.value !== "hover" || (clearTimeout(T), !K(S.relatedTarget) && (clearTimeout(D), D = setTimeout(L, Math.max(a.hideDelay, 0))));
|
|
30542
30562
|
}
|
|
30543
30563
|
function be() {
|
|
30544
|
-
if (!(!v.value || u.value ||
|
|
30564
|
+
if (!(!v.value || u.value || E || Ue)) {
|
|
30545
30565
|
if (R(), h.value !== "click") {
|
|
30546
30566
|
q();
|
|
30547
30567
|
return;
|
|
30548
30568
|
}
|
|
30549
30569
|
$ = setTimeout(() => {
|
|
30550
|
-
!Ue && !u.value && !
|
|
30570
|
+
!Ue && !u.value && !E && q();
|
|
30551
30571
|
}, 0);
|
|
30552
30572
|
}
|
|
30553
30573
|
}
|
|
@@ -30668,7 +30688,7 @@ const cV = {
|
|
|
30668
30688
|
B(S.$slots, "default", {}, () => [
|
|
30669
30689
|
Ie(oe(e.content), 1)
|
|
30670
30690
|
]),
|
|
30671
|
-
|
|
30691
|
+
k.value ? (g(), z(i0, { key: 0 })) : W("", !0)
|
|
30672
30692
|
], 34)
|
|
30673
30693
|
]),
|
|
30674
30694
|
_: 3
|
|
@@ -30752,13 +30772,13 @@ const cV = {
|
|
|
30752
30772
|
restore: () => Iv(O)
|
|
30753
30773
|
});
|
|
30754
30774
|
}, { immediate: !0 }), Re(() => {
|
|
30755
|
-
m?.disconnect(), y?.(), o.dismissScope === "occurrence" &&
|
|
30775
|
+
m?.disconnect(), y?.(), o.dismissScope === "occurrence" && k && Iv(C);
|
|
30756
30776
|
});
|
|
30757
|
-
let
|
|
30777
|
+
let k = !1, C = "";
|
|
30758
30778
|
function w() {
|
|
30759
30779
|
b();
|
|
30760
30780
|
const _ = o.dismissScope === "occurrence";
|
|
30761
|
-
sV(p.value, f.value, o.tone !== "danger" && !_),
|
|
30781
|
+
sV(p.value, f.value, o.tone !== "danger" && !_), k = !0, C = p.value, a("close");
|
|
30762
30782
|
}
|
|
30763
30783
|
return (_, O) => h.value ? (g(), I("div", {
|
|
30764
30784
|
key: 0,
|
|
@@ -31094,21 +31114,21 @@ const XV = ["data-ui-data-view", "data-fill", "data-ui-natural-height"], QV = {
|
|
|
31094
31114
|
const L = { ...a.columnWidths, ...u.value };
|
|
31095
31115
|
return a.columns.every((j) => L[j.key] !== void 0) ? L : void 0;
|
|
31096
31116
|
}), p = x(() => f.value ? a.columns.reduce((L, j) => L + f.value[j.key], 0) : 0), h = x(() => !!f.value || a.columns.some((L) => !!L.width)), v = (L) => f.value ? `${f.value[L.key]}px` : L.width, m = (L) => L.resizable ?? a.resizable, b = (L) => Nv(L.minWidth) ?? (L.width ? VV : jV), y = {};
|
|
31097
|
-
function
|
|
31117
|
+
function k() {
|
|
31098
31118
|
return Object.fromEntries(a.columns.map((L) => {
|
|
31099
31119
|
const j = Math.round(y[L.key]?.getBoundingClientRect().width ?? 0);
|
|
31100
31120
|
return [L.key, f.value?.[L.key] ?? (j || Nv(L.width) || b(L))];
|
|
31101
31121
|
}));
|
|
31102
31122
|
}
|
|
31103
|
-
function
|
|
31123
|
+
function C(L) {
|
|
31104
31124
|
u.value = L, o("update:columnWidths", L), a.stateKey && ZV(a.stateKey, { ...zv(a.stateKey), columnWidths: L });
|
|
31105
31125
|
}
|
|
31106
31126
|
let w;
|
|
31107
31127
|
function _(L, j) {
|
|
31108
|
-
const H =
|
|
31128
|
+
const H = k(), V = L.clientX, K = (be) => ({ ...H, [j.key]: Lv(H[j.key] + be - V, b(j)) }), le = (be) => {
|
|
31109
31129
|
u.value = K(be.clientX);
|
|
31110
31130
|
}, he = (be) => {
|
|
31111
|
-
w?.(),
|
|
31131
|
+
w?.(), C(K(be.clientX));
|
|
31112
31132
|
};
|
|
31113
31133
|
w = () => {
|
|
31114
31134
|
document.removeEventListener("pointermove", le), document.removeEventListener("pointerup", he), document.removeEventListener("pointercancel", he), w = void 0;
|
|
@@ -31118,13 +31138,13 @@ const XV = ["data-ui-data-view", "data-fill", "data-ui-natural-height"], QV = {
|
|
|
31118
31138
|
const H = L.key === "ArrowRight" ? Mv : L.key === "ArrowLeft" ? -Mv : 0;
|
|
31119
31139
|
if (H === 0) return;
|
|
31120
31140
|
L.preventDefault();
|
|
31121
|
-
const V =
|
|
31122
|
-
|
|
31141
|
+
const V = k();
|
|
31142
|
+
C({ ...V, [j.key]: Lv(V[j.key] + H, b(j)) });
|
|
31123
31143
|
}
|
|
31124
31144
|
Re(() => w?.());
|
|
31125
31145
|
const T = x(() => s ? s.value === "mobile" : i.value > 0 && i.value <= af), D = x(
|
|
31126
31146
|
() => a.mobileView === "cards" || a.mobileView === "container" && i.value > 0 && i.value < a.containerBreakpoint
|
|
31127
|
-
), $ = x(() => a.mobileView === "list" || a.mobileView === "auto" && T.value),
|
|
31147
|
+
), $ = x(() => a.mobileView === "list" || a.mobileView === "auto" && T.value), E = x(() => a.fill && !T.value), R = x(() => JV(a.columns));
|
|
31128
31148
|
function P(L, j) {
|
|
31129
31149
|
return String(L[a.rowKey] ?? j);
|
|
31130
31150
|
}
|
|
@@ -31134,9 +31154,9 @@ const XV = ["data-ui-data-view", "data-fill", "data-ui-natural-height"], QV = {
|
|
|
31134
31154
|
ref: r,
|
|
31135
31155
|
"data-ui-data-table": "",
|
|
31136
31156
|
"data-ui-data-view": $.value ? "list" : D.value ? "cards" : "table",
|
|
31137
|
-
"data-fill":
|
|
31157
|
+
"data-fill": E.value || void 0,
|
|
31138
31158
|
"data-ui-natural-height": T.value ? "" : void 0,
|
|
31139
|
-
class: ue(["min-w-0",
|
|
31159
|
+
class: ue(["min-w-0", E.value && "flex min-h-0 flex-1 flex-col"]),
|
|
31140
31160
|
"data-syno-pkg-land-ui": ""
|
|
31141
31161
|
}, [
|
|
31142
31162
|
$.value ? (g(), I(xe, { key: 0 }, [
|
|
@@ -31144,7 +31164,7 @@ const XV = ["data-ui-data-view", "data-fill", "data-ui-natural-height"], QV = {
|
|
|
31144
31164
|
key: 1,
|
|
31145
31165
|
"data-ui-mobile-list": "",
|
|
31146
31166
|
role: "list",
|
|
31147
|
-
class: ue(["m-0 list-none border-y border-[var(--ui-border)] p-0",
|
|
31167
|
+
class: ue(["m-0 list-none border-y border-[var(--ui-border)] p-0", E.value ? "min-h-0 flex-1 overflow-y-auto overscroll-contain" : "overflow-x-clip"])
|
|
31148
31168
|
}, [
|
|
31149
31169
|
(g(!0), I(xe, null, Ge(d(a).rows, (H, V) => (g(), I("li", {
|
|
31150
31170
|
key: P(H, V),
|
|
@@ -31218,8 +31238,8 @@ const XV = ["data-ui-data-view", "data-fill", "data-ui-natural-height"], QV = {
|
|
|
31218
31238
|
], 8, i2))), 128))
|
|
31219
31239
|
])) : (g(), z(BV, {
|
|
31220
31240
|
key: 3,
|
|
31221
|
-
class: ue(
|
|
31222
|
-
"viewport-class":
|
|
31241
|
+
class: ue(E.value && "min-h-0 flex-1"),
|
|
31242
|
+
"viewport-class": E.value ? "h-full overflow-auto border-y border-[var(--ui-border)]" : "overflow-auto border-y border-[var(--ui-border)]"
|
|
31223
31243
|
}, {
|
|
31224
31244
|
default: M(() => [
|
|
31225
31245
|
se("table", {
|
|
@@ -31552,7 +31572,7 @@ const XV = ["data-ui-data-view", "data-fill", "data-ui-natural-height"], QV = {
|
|
|
31552
31572
|
p.value ? `px-4 ${v.value ? "pt-0 pb-3" : "py-3"}` : `px-[var(--ui-card-padding,20px)] ${v.value ? "pt-0 pb-[calc(var(--ui-card-padding,20px)*0.8)]" : "py-[calc(var(--ui-card-padding,20px)*0.8)]"}`
|
|
31553
31573
|
)
|
|
31554
31574
|
);
|
|
31555
|
-
return (y,
|
|
31575
|
+
return (y, k) => (g(), z(Bw, {
|
|
31556
31576
|
padding: "none",
|
|
31557
31577
|
class: "flex flex-col overflow-hidden",
|
|
31558
31578
|
"data-layout": e.layoutType,
|
|
@@ -31585,8 +31605,8 @@ const XV = ["data-ui-data-view", "data-fill", "data-ui-natural-height"], QV = {
|
|
|
31585
31605
|
"aria-controls": d(l),
|
|
31586
31606
|
"aria-labelledby": f.value ? d(s) : void 0,
|
|
31587
31607
|
"aria-label": f.value ? void 0 : e.toggleLabel ?? d(n)("Toggle content"),
|
|
31588
|
-
onClick:
|
|
31589
|
-
(...
|
|
31608
|
+
onClick: k[0] || (k[0] = //@ts-ignore
|
|
31609
|
+
(...C) => d(u) && d(u)(...C))
|
|
31590
31610
|
}, [
|
|
31591
31611
|
Z(d(Xa), {
|
|
31592
31612
|
class: ue(d(on)("size-4 transition-transform duration-[var(--ui-motion-fast)]", !d(c) && "-rotate-90")),
|
|
@@ -31650,12 +31670,12 @@ function H2() {
|
|
|
31650
31670
|
clearTimeout(c), clearTimeout(u), r.removeEventListener("transitionend", v), r.removeEventListener("transitioncancel", b), r.removeEventListener("transitionrun", y), n.delete(r), l();
|
|
31651
31671
|
}, p = () => {
|
|
31652
31672
|
clearTimeout(u), clearTimeout(c), c = setTimeout(f, ii(r) + qv);
|
|
31653
|
-
}, h = (
|
|
31654
|
-
h(
|
|
31655
|
-
}, m = () => (typeof r.getAnimations == "function" ? r.getAnimations() : []).some((
|
|
31656
|
-
h(
|
|
31657
|
-
}, y = (
|
|
31658
|
-
h(
|
|
31673
|
+
}, h = (k) => k.target === r, v = (k) => {
|
|
31674
|
+
h(k) && f();
|
|
31675
|
+
}, m = () => (typeof r.getAnimations == "function" ? r.getAnimations() : []).some((k) => k.playState === "running" && "transitionProperty" in k), b = (k) => {
|
|
31676
|
+
h(k) && (clearTimeout(u), u = setTimeout(() => m() ? p() : f(), K2));
|
|
31677
|
+
}, y = (k) => {
|
|
31678
|
+
h(k) && p();
|
|
31659
31679
|
};
|
|
31660
31680
|
r.addEventListener("transitionend", v), r.addEventListener("transitioncancel", b), r.addEventListener("transitionrun", y), n.set(r, { restart: p }), c = setTimeout(f, s + qv);
|
|
31661
31681
|
}
|
|
@@ -31787,21 +31807,21 @@ const fj = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
31787
31807
|
const b = { position: "relative", isolation: "isolate", overflow: "hidden" }, y = x(() => ({
|
|
31788
31808
|
...h === "app" ? b : {},
|
|
31789
31809
|
...n.accent ? uj(n.accent, { dark: n.colorScheme === "dark" }) : {}
|
|
31790
|
-
})),
|
|
31810
|
+
})), k = Id();
|
|
31791
31811
|
Dt(() => {
|
|
31792
31812
|
const _ = i.value;
|
|
31793
31813
|
if (!_) return;
|
|
31794
|
-
const { height: O, offsetTop: T, keyboardInset: D, keyboard: $ } =
|
|
31814
|
+
const { height: O, offsetTop: T, keyboardInset: D, keyboard: $ } = k.value;
|
|
31795
31815
|
_.style.setProperty("--ui-vvh", `${O}px`), _.style.setProperty("--ui-vv-top", `${T}px`), _.style.setProperty("--ui-kb-inset", `${D}px`), $ ? _.setAttribute("data-ui-keyboard", "open") : _.removeAttribute("data-ui-keyboard");
|
|
31796
31816
|
}, { flush: "post" }), XT(i);
|
|
31797
|
-
const
|
|
31817
|
+
const C = n.fullPage;
|
|
31798
31818
|
let w;
|
|
31799
31819
|
return We(() => {
|
|
31800
|
-
|
|
31820
|
+
C && (w = dj(), document.documentElement.setAttribute("data-ui-page-shell", ""));
|
|
31801
31821
|
}), Re(() => {
|
|
31802
|
-
|
|
31822
|
+
C && (w?.(), document.documentElement.removeAttribute("data-ui-page-shell"));
|
|
31803
31823
|
}), ee(() => n.fullPage, (_) => {
|
|
31804
|
-
if (_ !==
|
|
31824
|
+
if (_ !== C) throw new Error("AppRoot full-page is fixed for the mounted root; remount to change it");
|
|
31805
31825
|
}), ee(() => n.modalScope, (_) => {
|
|
31806
31826
|
if (_ !== h) throw new Error("AppRoot modal-scope is fixed for the mounted root; remount to change it");
|
|
31807
31827
|
}), (_, O) => (g(), I("div", {
|
|
@@ -31813,7 +31833,7 @@ const fj = ["data-ui-presentation", "data-ui-modal-scope", "data-ui-accent", "da
|
|
|
31813
31833
|
"data-ui-modal-scope": d(h) === "app" ? "app" : void 0,
|
|
31814
31834
|
"data-ui-accent": e.accent ? "" : void 0,
|
|
31815
31835
|
"data-ui-color-scheme": e.colorScheme === "dark" ? "dark" : void 0,
|
|
31816
|
-
"data-ui-full-page": d(
|
|
31836
|
+
"data-ui-full-page": d(C) ? "" : void 0,
|
|
31817
31837
|
style: Ye(y.value),
|
|
31818
31838
|
tabindex: d(h) === "app" ? -1 : void 0
|
|
31819
31839
|
}, [
|
|
@@ -32013,27 +32033,27 @@ const Tj = ["data-state", "data-count", "data-hidden"], $j = ["data-state"], Ij
|
|
|
32013
32033
|
setup(e, { expose: t }) {
|
|
32014
32034
|
const n = e, o = ks(e, "open"), a = Rt(), r = Tn(), i = /* @__PURE__ */ N(null), s = /* @__PURE__ */ N(null), l = /* @__PURE__ */ N(0);
|
|
32015
32035
|
t({ actions: i, count: l });
|
|
32016
|
-
function c(
|
|
32017
|
-
for (let _ =
|
|
32036
|
+
function c(C, w) {
|
|
32037
|
+
for (let _ = C.parentElement; _ && _ !== w; _ = _.parentElement)
|
|
32018
32038
|
if (_.matches(Ju)) return !1;
|
|
32019
|
-
for (let _ =
|
|
32039
|
+
for (let _ = C; _ && _ !== w; _ = _.parentElement)
|
|
32020
32040
|
if (_.hasAttribute("hidden") || _ instanceof HTMLElement && _.style.display === "none") return !1;
|
|
32021
32041
|
return !0;
|
|
32022
32042
|
}
|
|
32023
|
-
function u(
|
|
32024
|
-
return [...
|
|
32043
|
+
function u(C) {
|
|
32044
|
+
return [...C.querySelectorAll(Ju)].filter((w) => c(w, C));
|
|
32025
32045
|
}
|
|
32026
|
-
function f(
|
|
32027
|
-
if (!
|
|
32028
|
-
return (
|
|
32046
|
+
function f(C) {
|
|
32047
|
+
if (!C.textContent?.trim())
|
|
32048
|
+
return (C.getAttribute("aria-label") || C.getAttribute("title"))?.trim() || void 0;
|
|
32029
32049
|
}
|
|
32030
32050
|
function p() {
|
|
32031
|
-
const
|
|
32032
|
-
if (!
|
|
32051
|
+
const C = i.value;
|
|
32052
|
+
if (!C) {
|
|
32033
32053
|
l.value = 0;
|
|
32034
32054
|
return;
|
|
32035
32055
|
}
|
|
32036
|
-
const w = u(
|
|
32056
|
+
const w = u(C);
|
|
32037
32057
|
w.forEach((_, O) => {
|
|
32038
32058
|
const T = String(w.length - 1 - O);
|
|
32039
32059
|
_.style.getPropertyValue("--ui-fab-i") !== T && _.style.setProperty("--ui-fab-i", T);
|
|
@@ -32042,44 +32062,44 @@ const Tj = ["data-state", "data-count", "data-hidden"], $j = ["data-state"], Ij
|
|
|
32042
32062
|
}), l.value = w.length;
|
|
32043
32063
|
}
|
|
32044
32064
|
let h;
|
|
32045
|
-
ee(i, (
|
|
32046
|
-
h?.disconnect(), h = void 0, !(!
|
|
32065
|
+
ee(i, (C) => {
|
|
32066
|
+
h?.disconnect(), h = void 0, !(!C || typeof MutationObserver > "u") && (p(), h = new MutationObserver((w) => {
|
|
32047
32067
|
p(), o.value && w.some((_) => _.attributeName === "aria-expanded" && _.oldValue === "true" && _.target.getAttribute("aria-expanded") !== "true") && m(!1);
|
|
32048
|
-
}), h.observe(
|
|
32068
|
+
}), h.observe(C, { childList: !0, subtree: !0, characterData: !0, attributes: !0, attributeOldValue: !0, attributeFilter: ["hidden", "style", "aria-expanded", "aria-label", "title"] }));
|
|
32049
32069
|
}, { immediate: !0, flush: "post" }), Re(() => h?.disconnect());
|
|
32050
32070
|
const v = x(() => l.value > 1);
|
|
32051
|
-
ee(v, (
|
|
32052
|
-
|
|
32071
|
+
ee(v, (C) => {
|
|
32072
|
+
C || (o.value = !1);
|
|
32053
32073
|
});
|
|
32054
|
-
function m(
|
|
32055
|
-
if (!o.value || (o.value = !1, !
|
|
32074
|
+
function m(C = !0) {
|
|
32075
|
+
if (!o.value || (o.value = !1, !C)) return;
|
|
32056
32076
|
const w = document.activeElement;
|
|
32057
32077
|
(!w || w === document.body || i.value?.contains(w)) && Be(() => s.value?.focus({ preventScroll: !0 }));
|
|
32058
32078
|
}
|
|
32059
|
-
ee(o, (
|
|
32060
|
-
|
|
32079
|
+
ee(o, (C) => {
|
|
32080
|
+
C && Be(() => {
|
|
32061
32081
|
(i.value ? u(i.value)[0] : void 0)?.focus({ preventScroll: !0 });
|
|
32062
32082
|
});
|
|
32063
32083
|
}), ri(() => o.value, () => m());
|
|
32064
|
-
function b(
|
|
32065
|
-
|
|
32084
|
+
function b(C) {
|
|
32085
|
+
C.key !== "Escape" || !o.value || C.isComposing || (C.preventDefault(), C.stopPropagation(), m());
|
|
32066
32086
|
}
|
|
32067
|
-
function y(
|
|
32068
|
-
if (!o.value || !(
|
|
32069
|
-
const w =
|
|
32087
|
+
function y(C) {
|
|
32088
|
+
if (!o.value || !(C.target instanceof Element)) return;
|
|
32089
|
+
const w = C.target.closest(Ju);
|
|
32070
32090
|
!w || !i.value?.contains(w) || w.getAttribute("aria-haspopup") && w.getAttribute("aria-haspopup") !== "false" || m(!1);
|
|
32071
32091
|
}
|
|
32072
|
-
const
|
|
32073
|
-
return (
|
|
32092
|
+
const k = x(() => o.value ? "open" : "closed");
|
|
32093
|
+
return (C, w) => (g(), I("div", {
|
|
32074
32094
|
"data-ui-fab-root": "",
|
|
32075
|
-
"data-state":
|
|
32095
|
+
"data-state": k.value,
|
|
32076
32096
|
"data-count": l.value === 0 ? "none" : v.value ? "many" : "one",
|
|
32077
32097
|
"data-hidden": n.hidden && !o.value ? "" : void 0,
|
|
32078
32098
|
"data-syno-pkg-land-ui": ""
|
|
32079
32099
|
}, [
|
|
32080
32100
|
se("div", {
|
|
32081
32101
|
"data-ui-fab-scrim": "",
|
|
32082
|
-
"data-state":
|
|
32102
|
+
"data-state": k.value,
|
|
32083
32103
|
"aria-hidden": "true",
|
|
32084
32104
|
onClick: w[0] || (w[0] = (_) => m())
|
|
32085
32105
|
}, null, 8, $j),
|
|
@@ -32098,7 +32118,7 @@ const Tj = ["data-state", "data-count", "data-hidden"], $j = ["data-state"], Ij
|
|
|
32098
32118
|
ref_key: "actions",
|
|
32099
32119
|
ref: i,
|
|
32100
32120
|
"data-ui-fab-actions": "",
|
|
32101
|
-
"data-state": v.value ?
|
|
32121
|
+
"data-state": v.value ? k.value : void 0,
|
|
32102
32122
|
role: v.value ? "group" : void 0,
|
|
32103
32123
|
"aria-label": v.value ? d(a)("Page actions") : void 0,
|
|
32104
32124
|
inert: v.value && !o.value || void 0,
|
|
@@ -32152,17 +32172,17 @@ function zj(e) {
|
|
|
32152
32172
|
const D = O - T;
|
|
32153
32173
|
if (D === 0) return;
|
|
32154
32174
|
_ !== r && (r = _, a.reset(), i = 0, s = 0);
|
|
32155
|
-
const $ = typeof w.timeStamp == "number" && w.timeStamp > 0 ? w.timeStamp : performance.now(),
|
|
32156
|
-
if (O <= Lj || O < (e.topRoom?.() ?? 0)) return c(!1,
|
|
32175
|
+
const $ = typeof w.timeStamp == "number" && w.timeStamp > 0 ? w.timeStamp : performance.now(), E = a.add(O, $);
|
|
32176
|
+
if (O <= Lj || O < (e.topRoom?.() ?? 0)) return c(!1, E);
|
|
32157
32177
|
if (D < 0) {
|
|
32158
|
-
i = 0, s -= D, (s >= Nj ||
|
|
32178
|
+
i = 0, s -= D, (s >= Nj || E <= -qo.flick) && c(!1, E);
|
|
32159
32179
|
return;
|
|
32160
32180
|
}
|
|
32161
32181
|
if (s = 0, i += D, clearTimeout(l), l = setTimeout(() => {
|
|
32162
32182
|
t.value && p(_) && c(!1);
|
|
32163
|
-
}, 150), t.value || i < Mj &&
|
|
32183
|
+
}, 150), t.value || i < Mj && E < qo.flick || _.scrollHeight - _.clientHeight < e.room()) return;
|
|
32164
32184
|
const R = _.ownerDocument;
|
|
32165
|
-
u(R) || c(_ !== R.scrollingElement && e.overlay() ? "all" : "bottom",
|
|
32185
|
+
u(R) || c(_ !== R.scrollingElement && e.overlay() ? "all" : "bottom", E);
|
|
32166
32186
|
}
|
|
32167
32187
|
function v(w) {
|
|
32168
32188
|
const _ = f(w.target);
|
|
@@ -32173,18 +32193,18 @@ function zj(e) {
|
|
|
32173
32193
|
}
|
|
32174
32194
|
let b;
|
|
32175
32195
|
We(() => {
|
|
32176
|
-
b = e.column.value?.ownerDocument ?? document, b.addEventListener("scroll", h, { capture: !0, passive: !0 }), b.addEventListener("scrollend", v, { capture: !0, passive: !0 }), b.addEventListener("focusin", m, !0),
|
|
32196
|
+
b = e.column.value?.ownerDocument ?? document, b.addEventListener("scroll", h, { capture: !0, passive: !0 }), b.addEventListener("scrollend", v, { capture: !0, passive: !0 }), b.addEventListener("focusin", m, !0), k = b.defaultView?.innerWidth ?? 0, b.defaultView?.addEventListener("resize", C);
|
|
32177
32197
|
});
|
|
32178
32198
|
function y() {
|
|
32179
32199
|
c(!1);
|
|
32180
32200
|
}
|
|
32181
|
-
let
|
|
32182
|
-
function
|
|
32201
|
+
let k = 0;
|
|
32202
|
+
function C() {
|
|
32183
32203
|
const w = b?.defaultView?.innerWidth ?? 0;
|
|
32184
|
-
w !==
|
|
32204
|
+
w !== k && (k = w, y());
|
|
32185
32205
|
}
|
|
32186
32206
|
return Re(() => {
|
|
32187
|
-
clearTimeout(l), b?.removeEventListener("scroll", h, { capture: !0 }), b?.removeEventListener("scrollend", v, { capture: !0 }), b?.removeEventListener("focusin", m, !0), b?.defaultView?.removeEventListener("resize",
|
|
32207
|
+
clearTimeout(l), b?.removeEventListener("scroll", h, { capture: !0 }), b?.removeEventListener("scrollend", v, { capture: !0 }), b?.removeEventListener("focusin", m, !0), b?.defaultView?.removeEventListener("resize", C);
|
|
32188
32208
|
}), ee([e.enabled, ...e.reset], y), ee(e.blocked, (w) => {
|
|
32189
32209
|
w && (i = 0);
|
|
32190
32210
|
}), { hidden: t, velocity: n };
|
|
@@ -32272,9 +32292,9 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32272
32292
|
m.value = !0;
|
|
32273
32293
|
} }), y = x(() => n.responsive === !1 ? "window" : aw(b.value, n.wideLayout));
|
|
32274
32294
|
Ze(Co, y);
|
|
32275
|
-
const
|
|
32276
|
-
|
|
32277
|
-
const
|
|
32295
|
+
const k = Le(rw, null);
|
|
32296
|
+
k && Re(k(x(() => n.responsive === !1 ? "window" : n.wideLayout)));
|
|
32297
|
+
const C = x(() => y.value === "mobile"), w = /* @__PURE__ */ N(!1);
|
|
32278
32298
|
if (typeof window < "u" && typeof window.matchMedia == "function") {
|
|
32279
32299
|
const X = window.matchMedia(bF);
|
|
32280
32300
|
w.value = X.matches;
|
|
@@ -32283,7 +32303,7 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32283
32303
|
};
|
|
32284
32304
|
X.addEventListener?.("change", ke), Re(() => X.removeEventListener?.("change", ke));
|
|
32285
32305
|
}
|
|
32286
|
-
const _ = x(() => w.value && n.responsive !== !1 && !
|
|
32306
|
+
const _ = x(() => w.value && n.responsive !== !1 && !C.value);
|
|
32287
32307
|
Ze(cw, _);
|
|
32288
32308
|
const O = /* @__PURE__ */ N(!1), T = uf(() => O.value, {
|
|
32289
32309
|
contains: (X) => !!f.value?.contains(X),
|
|
@@ -32294,29 +32314,29 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32294
32314
|
$.value = !0;
|
|
32295
32315
|
}));
|
|
32296
32316
|
});
|
|
32297
|
-
const
|
|
32317
|
+
const E = x(() => y.value === "web"), R = x(() => n.navigation === "top" && !C.value);
|
|
32298
32318
|
Ze(sw, R);
|
|
32299
32319
|
const P = qj(n.sidebarStorageKey), q = x(() => pF(b.value)), L = /* @__PURE__ */ N(!1);
|
|
32300
32320
|
ee(q, () => {
|
|
32301
32321
|
L.value = !1;
|
|
32302
32322
|
});
|
|
32303
|
-
const j = x(() =>
|
|
32323
|
+
const j = x(() => E.value && !R.value && (q.value ? !L.value : P.collapsed.value));
|
|
32304
32324
|
Ze(iw, j);
|
|
32305
32325
|
const H = Ve("main"), V = /* @__PURE__ */ N(0);
|
|
32306
32326
|
Ze(uw, () => {
|
|
32307
32327
|
V.value++;
|
|
32308
32328
|
}), _B(H, () => V.value);
|
|
32309
|
-
const K = x(() =>
|
|
32329
|
+
const K = x(() => E.value && !R.value && !j.value && n.sidebarWidth === void 0), le = x(() => n.sidebarWidth !== void 0 ? n.sidebarWidth : E.value ? `${P.width.value}px` : "var(--ui-sidebar-width)"), he = x(() => j.value ? `var(--ui-web-sidebar-collapsed-width, ${ju}px)` : le.value), be = x(() => !!c.sidebar && !C.value && !R.value), Ne = /* @__PURE__ */ N(0);
|
|
32310
32330
|
ee([b, be], () => {
|
|
32311
|
-
|
|
32331
|
+
E.value || !be.value || !f.value || typeof getComputedStyle != "function" || (Ne.value = Number.parseFloat(getComputedStyle(f.value).getPropertyValue("--ui-sidebar-width")) || 0);
|
|
32312
32332
|
}, { flush: "post" });
|
|
32313
32333
|
const Ue = x(() => be.value ? j.value ? ju : Number.parseFloat(le.value) || Ne.value : 0), Xe = /* @__PURE__ */ N(!!c.aside);
|
|
32314
32334
|
id(() => {
|
|
32315
32335
|
Xe.value = !!c.aside;
|
|
32316
32336
|
});
|
|
32317
|
-
const Je = x(() => Xe.value), ae = x(() => Math.round(Math.min(ts, Math.max(es, r.value)))), ge = x(() =>
|
|
32337
|
+
const Je = x(() => Xe.value), ae = x(() => Math.round(Math.min(ts, Math.max(es, r.value)))), ge = x(() => E.value || n.asideDock === "wide" && !C.value && b.value >= rf), we = x(() => a.value === "open" && !C.value && (!ge.value || b.value - Ue.value - ae.value < vF)), de = x(() => Je.value && !C.value && a.value === "expanded"), ze = x(() => C.value ? "0px" : de.value ? be.value ? `calc(${b.value}px - var(--ui-app-sidebar-width))` : `${b.value}px` : a.value === "open" && !we.value ? `${ae.value}px` : `${ju}px`);
|
|
32318
32338
|
Ze(mF, { state: a, overlay: we, presentation: y, regionWidth: ze });
|
|
32319
|
-
const Ce = x(() => Je.value &&
|
|
32339
|
+
const Ce = x(() => Je.value && C.value && a.value !== "collapsed"), S = x(() => Je.value && ge.value && a.value === "open" && !we.value), A = x(() => C.value ? "minmax(0, 1fr)" : [be.value && "auto", "minmax(0, 1fr)", Je.value && "auto"].filter(Boolean).join(" ")), F = /* @__PURE__ */ N(!1);
|
|
32320
32340
|
Ze(gF, F);
|
|
32321
32341
|
let G;
|
|
32322
32342
|
function Y() {
|
|
@@ -32344,13 +32364,13 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32344
32364
|
icon: document.head.querySelector('link[rel~="icon"]')?.href || void 0
|
|
32345
32365
|
};
|
|
32346
32366
|
});
|
|
32347
|
-
const ne = x(() => ({ name: n.brandName ?? pe.value.name, icon: n.brandIcon ?? pe.value.icon })), Ae = x(() => !!(c.brand || ne.value.name || ne.value.icon)), ye = x(() => Ae.value && !
|
|
32367
|
+
const ne = x(() => ({ name: n.brandName ?? pe.value.name, icon: n.brandIcon ?? pe.value.icon })), Ae = x(() => !!(c.brand || ne.value.name || ne.value.icon)), ye = x(() => Ae.value && !C.value && n.wideLayout === "web"), Ee = x(() => ye.value || E.value && !R.value), $e = x(() => !!c["sidebar-footer"] && (R.value || E.value)), qe = Ve("pageActions"), re = /* @__PURE__ */ N(0), J = /* @__PURE__ */ N(!0), me = eb("(pointer: coarse)"), Se = x(() => C.value && me.value && n.responsive !== !1), He = /* @__PURE__ */ N(0), tt = /* @__PURE__ */ N(0), ot = Ve("fab"), qt = x(() => ot.value?.actions ?? null), ut = /* @__PURE__ */ N(!1), _t = x(() => C.value && O.value || de.value || Ce.value || ut.value), Qn = x(() => Se.value && He.value === 0);
|
|
32348
32368
|
function Rn(X) {
|
|
32349
32369
|
const ke = X ?? n.phoneActions;
|
|
32350
|
-
return ke === "inline" || !
|
|
32370
|
+
return ke === "inline" || !C.value ? "inline" : Qn.value && tt.value === 0 && (ke === "fab" || !J.value) ? "fab" : J.value ? "bar" : "inline";
|
|
32351
32371
|
}
|
|
32352
|
-
const Vt = AB(p, (X) => n.title === void 0 ?
|
|
32353
|
-
phone: () =>
|
|
32372
|
+
const Vt = AB(p, (X) => n.title === void 0 ? C.value || _.value : _.value && n.title === X, {
|
|
32373
|
+
phone: () => C.value,
|
|
32354
32374
|
actions: qe,
|
|
32355
32375
|
actionUsers: re,
|
|
32356
32376
|
fab: qt,
|
|
@@ -32361,19 +32381,19 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32361
32381
|
Ze(pf, Vt);
|
|
32362
32382
|
const ar = x(() => Vt.entries.value.at(-1)?.title()), Mn = x(() => {
|
|
32363
32383
|
const X = Vt.entries.value.at(-1);
|
|
32364
|
-
return
|
|
32384
|
+
return C.value && X?.back ? X : void 0;
|
|
32365
32385
|
}), eo = x(() => Mn.value ? Mn.value.title() : n.title ?? ar.value), xn = x(() => n.back || !!Mn.value);
|
|
32366
32386
|
function bf() {
|
|
32367
32387
|
Mn.value?.back ? Mn.value.back() : o("back");
|
|
32368
32388
|
}
|
|
32369
|
-
const Ci = x(() =>
|
|
32389
|
+
const Ci = x(() => C.value && n.phoneBarTitle === "none" && !xn.value), rr = x(() => _.value ? eo.value : void 0), _0 = x(() => {
|
|
32370
32390
|
const X = Vt.entries.value.at(-1);
|
|
32371
32391
|
return n.title === void 0 || !!X && Vt.shows(X);
|
|
32372
32392
|
}), wf = /* @__PURE__ */ N(!1);
|
|
32373
32393
|
ee([_, () => n.height, H], () => {
|
|
32374
32394
|
wf.value = _.value && (n.height === "fill" || !!H.value && getComputedStyle(H.value).overflowY !== "visible");
|
|
32375
32395
|
}, { flush: "post" });
|
|
32376
|
-
const x0 = x(() =>
|
|
32396
|
+
const x0 = x(() => C.value && n.responsive !== !1), ln = x(() => {
|
|
32377
32397
|
if (re.value > 0 || ir.value) return;
|
|
32378
32398
|
const X = (Zt) => (Zt.type === void 0 || Zt.type === "item") && !Zt.children?.length, ke = n.headerActions.filter(X).find((Zt) => !!Zt.primary);
|
|
32379
32399
|
if (ke) return ke;
|
|
@@ -32386,14 +32406,14 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32386
32406
|
function sr() {
|
|
32387
32407
|
const X = qe.value;
|
|
32388
32408
|
let ke = null;
|
|
32389
|
-
if (X &&
|
|
32409
|
+
if (X && C.value)
|
|
32390
32410
|
for (const [Qe, Ht] of jl) X.contains(Ht() ?? null) && (ke = Qe);
|
|
32391
32411
|
ir.value !== ke && (ir.value = ke);
|
|
32392
32412
|
}
|
|
32393
32413
|
let Ei;
|
|
32394
32414
|
ee(qe, (X) => {
|
|
32395
32415
|
Ei?.disconnect(), !(!X || typeof MutationObserver > "u") && (Ei = new MutationObserver(sr), Ei.observe(X, { childList: !0, subtree: !0 }));
|
|
32396
|
-
}, { flush: "post" }), ee(
|
|
32416
|
+
}, { flush: "post" }), ee(C, () => Be(sr)), Re(() => Ei?.disconnect()), Ze(lw, {
|
|
32397
32417
|
owner: ir,
|
|
32398
32418
|
entries: _f,
|
|
32399
32419
|
select: (X) => o("headerAction", X),
|
|
@@ -32403,11 +32423,11 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32403
32423
|
};
|
|
32404
32424
|
}
|
|
32405
32425
|
});
|
|
32406
|
-
const lr = x(() => ir.value ? [] : _f.value), ur = x(() => !!c.sidebar && !xn.value && !z0.value), Wl = x(() => Se.value && !Ci.value && !xn.value && !ur.value && eo.value !== void 0 && !c.brand ? ne.value.icon : void 0), xf = x(() => Ci.value && !ur.value && !ln.value && !lr.value.length && re.value === 0), Sf = x(() =>
|
|
32426
|
+
const lr = x(() => ir.value ? [] : _f.value), ur = x(() => !!c.sidebar && !xn.value && !z0.value), Wl = x(() => Se.value && !Ci.value && !xn.value && !ur.value && eo.value !== void 0 && !c.brand ? ne.value.icon : void 0), xf = x(() => Ci.value && !ur.value && !ln.value && !lr.value.length && re.value === 0), Sf = x(() => C.value && (!!c.sidebar || xn.value || eo.value !== void 0 || n.headerActions.length > 0) && (ur.value || xn.value || eo.value !== void 0 || Ae.value || n.headerActions.length > 0)), kf = /* @__PURE__ */ N(!1);
|
|
32407
32427
|
We(() => {
|
|
32408
32428
|
kf.value = Sj();
|
|
32409
32429
|
});
|
|
32410
|
-
const Ai = x(() => kf.value &&
|
|
32430
|
+
const Ai = x(() => kf.value && C.value), S0 = x(() => Ai.value && !xn.value), Pi = Ej(x(() => S0.value && (!Sf.value || xf.value)));
|
|
32411
32431
|
Ze(p0, Pi), We(() => {
|
|
32412
32432
|
Be(Pi.refresh);
|
|
32413
32433
|
});
|
|
@@ -32499,8 +32519,8 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32499
32519
|
const ke = h.value;
|
|
32500
32520
|
(vw() ? ke : ke?.closest("[data-ui-nav-drawer]"))?.focus({ preventScroll: !0 });
|
|
32501
32521
|
}
|
|
32502
|
-
ri(() =>
|
|
32503
|
-
const Zl = Fl(), F0 = x(() => Zl && !Zl.draggable.value ? Zl.element.value : null), Gl = /* @__PURE__ */ N(0), z0 = x(() =>
|
|
32522
|
+
ri(() => C.value && O.value, _a);
|
|
32523
|
+
const Zl = Fl(), F0 = x(() => Zl && !Zl.draggable.value ? Zl.element.value : null), Gl = /* @__PURE__ */ N(0), z0 = x(() => C.value && !!c.tabbar && Gl.value > 0);
|
|
32504
32524
|
Ze(yF, {
|
|
32505
32525
|
available: x(() => !!c.sidebar),
|
|
32506
32526
|
open: x(() => O.value),
|
|
@@ -32513,7 +32533,7 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32513
32533
|
X || (X = !0, Gl.value--);
|
|
32514
32534
|
};
|
|
32515
32535
|
}
|
|
32516
|
-
}), ee(
|
|
32536
|
+
}), ee(C, (X) => {
|
|
32517
32537
|
X || _a();
|
|
32518
32538
|
});
|
|
32519
32539
|
const Yl = /* @__PURE__ */ N(0);
|
|
@@ -32598,7 +32618,7 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32598
32618
|
Ht.observe(X), Qe(() => Ht.disconnect());
|
|
32599
32619
|
}, { flush: "post" }), ee(() => Se.value && Jl.value, () => Be(ou)), Re(() => hr?.style.removeProperty("--ui-bottom-accessory-height"));
|
|
32600
32620
|
function W0(X) {
|
|
32601
|
-
!
|
|
32621
|
+
!C.value || !O.value || X.target instanceof Element && X.target.closest("[data-nav-item],a[href]") && _a();
|
|
32602
32622
|
}
|
|
32603
32623
|
return (X, ke) => (g(), I("section", {
|
|
32604
32624
|
ref_key: "root",
|
|
@@ -32617,7 +32637,7 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32617
32637
|
"data-ui-layout-height": n.height,
|
|
32618
32638
|
"data-ui-layout-short": _.value ? wf.value ? "scroll" : "" : void 0,
|
|
32619
32639
|
"data-ui-layout-scroll": x0.value ? "page" : void 0,
|
|
32620
|
-
"data-ui-mobile-open":
|
|
32640
|
+
"data-ui-mobile-open": C.value && O.value ? "true" : void 0,
|
|
32621
32641
|
"data-ui-motion-ready": $.value ? "true" : void 0,
|
|
32622
32642
|
"data-ui-sidebar-collapsed": j.value ? "true" : void 0,
|
|
32623
32643
|
"data-ui-sidebar-resizing": Ti.value ? "true" : void 0,
|
|
@@ -32631,7 +32651,7 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32631
32651
|
"data-ui-fab": Se.value && (ot.value?.count ?? 0) > 0 ? "" : void 0,
|
|
32632
32652
|
"data-syno-pkg-land-ui": ""
|
|
32633
32653
|
}, [
|
|
32634
|
-
|
|
32654
|
+
C.value && X.$slots.sidebar ? (g(), z(d(Vb), {
|
|
32635
32655
|
key: 0,
|
|
32636
32656
|
open: O.value,
|
|
32637
32657
|
"swipe-direction": "left",
|
|
@@ -32729,7 +32749,7 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32729
32749
|
icon: ne.value.icon
|
|
32730
32750
|
}, null, 8, ["interactive", "name", "icon"])
|
|
32731
32751
|
], void 0, 0) : W("", !0),
|
|
32732
|
-
|
|
32752
|
+
E.value && !R.value ? (g(), I("button", {
|
|
32733
32753
|
key: 1,
|
|
32734
32754
|
"data-ui-sidebar-collapse": "",
|
|
32735
32755
|
type: "button",
|
|
@@ -32913,7 +32933,7 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
32913
32933
|
}, [
|
|
32914
32934
|
B(X.$slots, "accessory")
|
|
32915
32935
|
], 8, g3)) : W("", !0),
|
|
32916
|
-
|
|
32936
|
+
C.value ? B(X.$slots, "tabbar", {}, void 0, void 0, 3) : W("", !0)
|
|
32917
32937
|
], 8, t3),
|
|
32918
32938
|
Se.value ? (g(), z(Rj, {
|
|
32919
32939
|
key: 2,
|
|
@@ -33210,22 +33230,22 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33210
33230
|
},
|
|
33211
33231
|
emits: ["select"],
|
|
33212
33232
|
setup(e, { emit: t }) {
|
|
33213
|
-
const n = e, o = t, a = Rt(), r = Ve("root"), i = Ve("more"), s = Tn(), l = /* @__PURE__ */ N(1 / 0), c = x(() => n.groups.flatMap((
|
|
33214
|
-
let
|
|
33215
|
-
return n.groups.map((
|
|
33216
|
-
const w =
|
|
33217
|
-
return { group:
|
|
33218
|
-
}).filter((
|
|
33233
|
+
const n = e, o = t, a = Rt(), r = Ve("root"), i = Ve("more"), s = Tn(), l = /* @__PURE__ */ N(1 / 0), c = x(() => n.groups.flatMap((k) => k.items)), u = x(() => c.value.slice(l.value)), f = x(() => ({ key: s, label: a("More"), children: u.value })), p = x(() => {
|
|
33234
|
+
let k = 0;
|
|
33235
|
+
return n.groups.map((C) => {
|
|
33236
|
+
const w = C.items.map((_) => ({ item: _, index: k++ }));
|
|
33237
|
+
return { group: C, rows: w };
|
|
33238
|
+
}).filter((C) => C.rows.length);
|
|
33219
33239
|
}), h = { position: "absolute", visibility: "hidden", pointerEvents: "none" };
|
|
33220
33240
|
let v;
|
|
33221
|
-
const m = (
|
|
33241
|
+
const m = (k) => Number.parseFloat(k) || 0;
|
|
33222
33242
|
function b() {
|
|
33223
|
-
const
|
|
33224
|
-
if (!
|
|
33225
|
-
const
|
|
33243
|
+
const k = r.value;
|
|
33244
|
+
if (!k || !i.value) return;
|
|
33245
|
+
const C = getComputedStyle(k), w = k.clientWidth - m(C.paddingLeft) - m(C.paddingRight);
|
|
33226
33246
|
if (w <= 0) return;
|
|
33227
|
-
const _ = m(
|
|
33228
|
-
if (
|
|
33247
|
+
const _ = m(C.columnGap), O = [];
|
|
33248
|
+
if (k.querySelectorAll("[data-nav-group]").forEach((R, P) => {
|
|
33229
33249
|
const q = getComputedStyle(R);
|
|
33230
33250
|
R.querySelectorAll("[data-ui-top-nav-item]").forEach((L, j) => {
|
|
33231
33251
|
const H = j === 0 ? m(q.marginLeft) + m(q.marginRight) + m(q.paddingLeft) + m(q.paddingRight) + m(q.borderLeftWidth) + m(q.borderRightWidth) + (P ? _ : 0) : m(q.columnGap);
|
|
@@ -33243,17 +33263,17 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33243
33263
|
}
|
|
33244
33264
|
}
|
|
33245
33265
|
if (l.value === T) return;
|
|
33246
|
-
const D = document.activeElement, $ = D instanceof Element && [...
|
|
33266
|
+
const D = document.activeElement, $ = D instanceof Element && [...k.querySelectorAll("[data-ui-top-nav-item]")].some((R, P) => P >= T && R.contains(D)), E = i.value.contains(D);
|
|
33247
33267
|
l.value = T, Be(() => {
|
|
33248
|
-
$ ? i.value?.querySelector("button")?.focus() :
|
|
33268
|
+
$ ? i.value?.querySelector("button")?.focus() : E && !u.value.length && k.querySelector("[data-ui-top-nav-item] button")?.focus();
|
|
33249
33269
|
});
|
|
33250
33270
|
}
|
|
33251
33271
|
async function y() {
|
|
33252
|
-
await Be(), v?.disconnect(), r.value && (v?.observe(r.value), r.value.querySelectorAll("[data-ui-top-nav-item], [data-ui-top-nav-more-wrapper]").forEach((
|
|
33272
|
+
await Be(), v?.disconnect(), r.value && (v?.observe(r.value), r.value.querySelectorAll("[data-ui-top-nav-item], [data-ui-top-nav-more-wrapper]").forEach((k) => v?.observe(k)), b());
|
|
33253
33273
|
}
|
|
33254
33274
|
return We(() => {
|
|
33255
33275
|
typeof ResizeObserver < "u" && (v = new ResizeObserver(b)), y();
|
|
33256
|
-
}), ee(() => n.groups, y, { deep: !0, flush: "post" }), Re(() => v?.disconnect()), (
|
|
33276
|
+
}), ee(() => n.groups, y, { deep: !0, flush: "post" }), Re(() => v?.disconnect()), (k, C) => (g(), I("nav", {
|
|
33257
33277
|
ref_key: "root",
|
|
33258
33278
|
ref: r,
|
|
33259
33279
|
class: "relative flex h-full min-w-0 items-center gap-[var(--ui-space-1)] overflow-hidden px-2",
|
|
@@ -33284,7 +33304,7 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33284
33304
|
key: String(D >= l.value),
|
|
33285
33305
|
items: [T],
|
|
33286
33306
|
"model-value": n.modelValue,
|
|
33287
|
-
onSelect:
|
|
33307
|
+
onSelect: C[0] || (C[0] = ($) => o("select", $))
|
|
33288
33308
|
}, null, 8, ["items", "model-value"]))
|
|
33289
33309
|
], 12, F3))), 128))
|
|
33290
33310
|
], 14, L3))), 128)),
|
|
@@ -33302,7 +33322,7 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33302
33322
|
items: [f.value],
|
|
33303
33323
|
"model-value": n.modelValue,
|
|
33304
33324
|
overflow: "",
|
|
33305
|
-
onSelect:
|
|
33325
|
+
onSelect: C[1] || (C[1] = (w) => o("select", w))
|
|
33306
33326
|
}, null, 8, ["items", "model-value"]))
|
|
33307
33327
|
], 12, z3)
|
|
33308
33328
|
], 8, N3));
|
|
@@ -33363,11 +33383,11 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33363
33383
|
ee(() => o.modelValue, (_) => {
|
|
33364
33384
|
_ && y(_);
|
|
33365
33385
|
}, { immediate: !0 });
|
|
33366
|
-
const
|
|
33386
|
+
const k = Le(uw, null);
|
|
33367
33387
|
ee(() => o.modelValue, (_, O) => {
|
|
33368
|
-
_ && O && _ !== O &&
|
|
33388
|
+
_ && O && _ !== O && k?.();
|
|
33369
33389
|
});
|
|
33370
|
-
function
|
|
33390
|
+
function C(_) {
|
|
33371
33391
|
const O = m.value.includes(_), T = O ? m.value.filter((D) => D !== _) : [...m.value, _];
|
|
33372
33392
|
v.value = T, a("update:expandedKeys", T), a("branchToggle", _, !O);
|
|
33373
33393
|
}
|
|
@@ -33395,9 +33415,9 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33395
33415
|
placeholder: d(o).searchPlaceholder,
|
|
33396
33416
|
"clear-label": d(o).clearSearchLabel
|
|
33397
33417
|
}, null, 8, ["modelValue", "placeholder", "clear-label"])) : W("", !0),
|
|
33398
|
-
(g(!0), I(xe, null, Ge(u.value, ({ group: T, id: D, items: $ },
|
|
33418
|
+
(g(!0), I(xe, null, Ge(u.value, ({ group: T, id: D, items: $ }, E) => (g(), I("section", {
|
|
33399
33419
|
key: D,
|
|
33400
|
-
class: ue(
|
|
33420
|
+
class: ue(E > 0 && "mt-2 border-t border-[var(--ui-border-subtle)] pt-2")
|
|
33401
33421
|
}, [
|
|
33402
33422
|
T.label && d(o).collapsible && !d(r) ? (g(), I("button", {
|
|
33403
33423
|
key: 0,
|
|
@@ -33425,7 +33445,7 @@ const Vj = ["data-ui-layout-mode", "data-ui-navigation", "data-ui-layout-height"
|
|
|
33425
33445
|
searching: f.value,
|
|
33426
33446
|
collapsed: d(r),
|
|
33427
33447
|
onSelect: w,
|
|
33428
|
-
onToggle:
|
|
33448
|
+
onToggle: C
|
|
33429
33449
|
}, null, 8, ["items", "model-value", "expanded-keys", "searching", "collapsed"])) : W("", !0)
|
|
33430
33450
|
], 2))), 128))
|
|
33431
33451
|
], 8, q3));
|
|
@@ -33644,9 +33664,9 @@ const X3 = ["data-ui-title-in-bar"], Q3 = { class: "min-w-0 flex-auto" }, e4 = {
|
|
|
33644
33664
|
}
|
|
33645
33665
|
return null;
|
|
33646
33666
|
}
|
|
33647
|
-
const y = /* @__PURE__ */ new Set(),
|
|
33667
|
+
const y = /* @__PURE__ */ new Set(), k = /* @__PURE__ */ N([]), C = /* @__PURE__ */ N([]), w = /* @__PURE__ */ new Set();
|
|
33648
33668
|
function _(ae) {
|
|
33649
|
-
|
|
33669
|
+
k.value = r.value.filter((de) => ae && ae.contains(de.element) && de.element.parentElement?.closest("[data-page-content-body]") === ae).map((de) => ({ height: de.height, scope: b(de.element, ae) }));
|
|
33650
33670
|
const ge = [], we = /* @__PURE__ */ new Set();
|
|
33651
33671
|
for (const de of ae ? ae.querySelectorAll("[data-ui-section-tabs-strip]") : []) {
|
|
33652
33672
|
if (de.parentElement === ae || de.parentElement?.closest("[data-page-content-body]") !== ae) continue;
|
|
@@ -33658,7 +33678,7 @@ const X3 = ["data-ui-title-in-bar"], Q3 = { class: "min-w-0 flex-auto" }, e4 = {
|
|
|
33658
33678
|
}
|
|
33659
33679
|
for (const de of w)
|
|
33660
33680
|
we.has(de) || (v?.unobserve(de), w.delete(de));
|
|
33661
|
-
|
|
33681
|
+
C.value = ge;
|
|
33662
33682
|
}
|
|
33663
33683
|
function O() {
|
|
33664
33684
|
const ae = i.value?.querySelector(":scope > [data-page-content-body]");
|
|
@@ -33681,7 +33701,7 @@ const X3 = ["data-ui-title-in-bar"], Q3 = { class: "min-w-0 flex-auto" }, e4 = {
|
|
|
33681
33701
|
c.value = !we && (a.value || /hidden|clip/.test(ge.overflowY)), p(), O(), q();
|
|
33682
33702
|
}
|
|
33683
33703
|
const D = /* @__PURE__ */ N(!1), $ = /* @__PURE__ */ new Set();
|
|
33684
|
-
function
|
|
33704
|
+
function E(ae) {
|
|
33685
33705
|
const ge = getComputedStyle(ae), we = P(), de = ae.getBoundingClientRect().bottom - (parseFloat(ge.paddingBottom) || 0) - (parseFloat(ge.borderBottomWidth) || 0) - we, ze = [];
|
|
33686
33706
|
let Ce = 0;
|
|
33687
33707
|
const S = document.createTreeWalker(ae, NodeFilter.SHOW_ELEMENT, {
|
|
@@ -33701,7 +33721,7 @@ const X3 = ["data-ui-title-in-bar"], Q3 = { class: "min-w-0 flex-auto" }, e4 = {
|
|
|
33701
33721
|
return ae && parseFloat(getComputedStyle(ae).marginTop) || 0;
|
|
33702
33722
|
}
|
|
33703
33723
|
function q() {
|
|
33704
|
-
const ae = i.value, ge = ae?.querySelector(":scope > [data-page-content-body]"), we = ae && ge && c.value && typeof document.createTreeWalker == "function" ?
|
|
33724
|
+
const ae = i.value, ge = ae?.querySelector(":scope > [data-page-content-body]"), we = ae && ge && c.value && typeof document.createTreeWalker == "function" ? E(ge) : [];
|
|
33705
33725
|
for (const de of $)
|
|
33706
33726
|
we.includes(de) || (de.removeAttribute("data-ui-page-scroller"), de.style.removeProperty("--ui-page-scroller-pad"), $.delete(de));
|
|
33707
33727
|
for (const de of we)
|
|
@@ -33740,14 +33760,14 @@ const X3 = ["data-ui-title-in-bar"], Q3 = { class: "min-w-0 flex-auto" }, e4 = {
|
|
|
33740
33760
|
ae.style.removeProperty("--ui-sticky-top-offset"), ae.style.removeProperty("--ui-page-sticky-top");
|
|
33741
33761
|
y.clear();
|
|
33742
33762
|
});
|
|
33743
|
-
const le = x(() => Math.max(0, ...
|
|
33763
|
+
const le = x(() => Math.max(0, ...k.value.filter((ae) => !ae.scope).map((ae) => ae.height))), he = x(() => (le.value ? s.value + le.value : 0) + u.value), be = x(() => h.value.filter((ae) => !ae.scope)), Ne = x(() => be.value.reduce((ae, ge) => ae + ge.height, 0)), Ue = x(() => Ne.value ? Math.max(he.value, s.value) + Ne.value : he.value);
|
|
33744
33764
|
Dt(() => {
|
|
33745
33765
|
let ae = Math.max(he.value, s.value);
|
|
33746
33766
|
const ge = /* @__PURE__ */ new Map();
|
|
33747
|
-
for (const de of
|
|
33767
|
+
for (const de of k.value)
|
|
33748
33768
|
de.scope && ge.set(de.scope, Math.max(ge.get(de.scope) ?? 0, de.height));
|
|
33749
33769
|
const we = new Map(ge);
|
|
33750
|
-
for (const de of
|
|
33770
|
+
for (const de of C.value) we.set(de.scope, (we.get(de.scope) ?? 0) + de.height);
|
|
33751
33771
|
for (const de of h.value) {
|
|
33752
33772
|
if (de.scope) {
|
|
33753
33773
|
const ze = we.get(de.scope) ?? 0;
|
|
@@ -33837,19 +33857,19 @@ const X3 = ["data-ui-title-in-bar"], Q3 = { class: "min-w-0 flex-auto" }, e4 = {
|
|
|
33837
33857
|
},
|
|
33838
33858
|
emits: ["update:modelValue", "update:pushed"],
|
|
33839
33859
|
setup(e, { emit: t }) {
|
|
33840
|
-
const n = (
|
|
33860
|
+
const n = (E, { slots: R }) => R.default?.() ?? null, o = Rt(), a = e, r = t, i = Le(Co, void 0), s = Gw(), l = x(() => {
|
|
33841
33861
|
if (i?.value !== "mobile") return "strip";
|
|
33842
|
-
const
|
|
33843
|
-
return
|
|
33862
|
+
const E = a.phone ?? "auto";
|
|
33863
|
+
return E !== "auto" ? E : a.items.length >= 5 || a.fill ? "list" : s.value ? "strip" : "segment";
|
|
33844
33864
|
}), c = /* @__PURE__ */ N(a.pushed ?? !1);
|
|
33845
|
-
ee(() => a.pushed, (
|
|
33846
|
-
|
|
33865
|
+
ee(() => a.pushed, (E) => {
|
|
33866
|
+
E !== void 0 && (c.value = E);
|
|
33847
33867
|
});
|
|
33848
|
-
function u(
|
|
33849
|
-
c.value =
|
|
33868
|
+
function u(E) {
|
|
33869
|
+
c.value = E, r("update:pushed", E);
|
|
33850
33870
|
}
|
|
33851
|
-
function f(
|
|
33852
|
-
|
|
33871
|
+
function f(E) {
|
|
33872
|
+
E !== a.modelValue && r("update:modelValue", E), u(!0);
|
|
33853
33873
|
}
|
|
33854
33874
|
const p = /* @__PURE__ */ N(null), h = x(() => l.value === "list" ? {
|
|
33855
33875
|
class: "ui-section-tabs-push",
|
|
@@ -33865,24 +33885,24 @@ const X3 = ["data-ui-title-in-bar"], Q3 = { class: "min-w-0 flex-auto" }, e4 = {
|
|
|
33865
33885
|
class: "ui-section-tabs-page",
|
|
33866
33886
|
"data-ui-section-tabs-page": "",
|
|
33867
33887
|
onPop: () => u(!1)
|
|
33868
|
-
} : {}), m = x(() => a.items.find((
|
|
33869
|
-
const
|
|
33888
|
+
} : {}), m = x(() => a.items.find((E) => E.value === a.modelValue)), b = x(() => {
|
|
33889
|
+
const E = [];
|
|
33870
33890
|
for (const R of a.items) {
|
|
33871
|
-
const P =
|
|
33872
|
-
P && P.label === R.group ? P.items.push(R) :
|
|
33891
|
+
const P = E[E.length - 1];
|
|
33892
|
+
P && P.label === R.group ? P.items.push(R) : E.push({ label: R.group, items: [R] });
|
|
33873
33893
|
}
|
|
33874
|
-
return
|
|
33875
|
-
}), y = /* @__PURE__ */ N(null),
|
|
33876
|
-
ArrowRight: (
|
|
33877
|
-
ArrowLeft: (
|
|
33894
|
+
return E;
|
|
33895
|
+
}), y = /* @__PURE__ */ N(null), k = /* @__PURE__ */ N(null), C = Aj(() => y.value ?? k.value?.$el), w = xq(y, () => a.items, () => a.modelValue), { overflowStart: _, overflowEnd: O } = Yw(y, () => a.modelValue), T = wB(() => a.modelValue), D = {
|
|
33896
|
+
ArrowRight: (E, R) => (E + 1) % R,
|
|
33897
|
+
ArrowLeft: (E, R) => (E - 1 + R) % R,
|
|
33878
33898
|
Home: () => 0,
|
|
33879
|
-
End: (
|
|
33899
|
+
End: (E, R) => R - 1
|
|
33880
33900
|
};
|
|
33881
|
-
function $(
|
|
33882
|
-
const R = D[
|
|
33883
|
-
!R || q < 0 || (
|
|
33901
|
+
function $(E) {
|
|
33902
|
+
const R = D[E.key], P = Array.from(y.value?.querySelectorAll("[data-ui-tab-value]:not(:disabled)") ?? []), q = P.indexOf(E.target);
|
|
33903
|
+
!R || q < 0 || (E.preventDefault(), P[R(q, P.length)]?.focus());
|
|
33884
33904
|
}
|
|
33885
|
-
return (
|
|
33905
|
+
return (E, R) => (g(), z(mt(l.value === "list" || a.fill ? "div" : n), gt(kt(h.value)), {
|
|
33886
33906
|
default: M(() => [
|
|
33887
33907
|
l.value === "list" ? (g(), I("div", {
|
|
33888
33908
|
key: 0,
|
|
@@ -33891,13 +33911,13 @@ const X3 = ["data-ui-title-in-bar"], Q3 = { class: "min-w-0 flex-auto" }, e4 = {
|
|
|
33891
33911
|
class: "ui-section-list",
|
|
33892
33912
|
"data-ui-section-list": ""
|
|
33893
33913
|
}, [
|
|
33894
|
-
|
|
33895
|
-
B(
|
|
33914
|
+
E.$slots.actions ? (g(), I("div", c4, [
|
|
33915
|
+
B(E.$slots, "actions")
|
|
33896
33916
|
])) : W("", !0),
|
|
33897
33917
|
se("nav", ce({
|
|
33898
33918
|
class: "ui-section-list-nav",
|
|
33899
33919
|
"aria-label": a.ariaLabel ?? d(o)("Sections")
|
|
33900
|
-
},
|
|
33920
|
+
}, E.$attrs), [
|
|
33901
33921
|
(g(!0), I(xe, null, Ge(b.value, (P, q) => (g(), I("div", {
|
|
33902
33922
|
key: q,
|
|
33903
33923
|
class: "ui-section-list-group"
|
|
@@ -33925,18 +33945,18 @@ const X3 = ["data-ui-title-in-bar"], Q3 = { class: "min-w-0 flex-auto" }, e4 = {
|
|
|
33925
33945
|
])
|
|
33926
33946
|
]))), 128))
|
|
33927
33947
|
], 16, d4)
|
|
33928
|
-
], 512)) : (g(), z(mt(
|
|
33948
|
+
], 512)) : (g(), z(mt(E.$slots.actions || d(C) ? "div" : n), gt(ce({ key: 1 }, E.$slots.actions ? { class: "ui-section-tabs-row", "data-ui-section-tabs-row": "", "data-syno-pkg-land-ui": "" } : d(C) ? { class: "ui-section-tabs-lead", "data-ui-section-tabs-lead": "", "data-syno-pkg-land-ui": "" } : {})), {
|
|
33929
33949
|
default: M(() => [
|
|
33930
|
-
d(
|
|
33950
|
+
d(C) ? (g(), z(f0, { key: 0 })) : W("", !0),
|
|
33931
33951
|
l.value === "segment" ? (g(), z(Aq, ce({
|
|
33932
33952
|
key: 1,
|
|
33933
33953
|
ref_key: "segment",
|
|
33934
|
-
ref:
|
|
33954
|
+
ref: k,
|
|
33935
33955
|
class: "ui-section-tabs-segment",
|
|
33936
33956
|
"model-value": a.modelValue,
|
|
33937
33957
|
"aria-label": a.ariaLabel ?? d(o)("Sections"),
|
|
33938
33958
|
"data-ui-section-tabs-segment": ""
|
|
33939
|
-
},
|
|
33959
|
+
}, E.$attrs, {
|
|
33940
33960
|
"onUpdate:modelValue": R[0] || (R[0] = (P) => r("update:modelValue", P))
|
|
33941
33961
|
}), {
|
|
33942
33962
|
default: M(() => [
|
|
@@ -33957,13 +33977,13 @@ const X3 = ["data-ui-title-in-bar"], Q3 = { class: "min-w-0 flex-auto" }, e4 = {
|
|
|
33957
33977
|
key: 2,
|
|
33958
33978
|
ref_key: "bar",
|
|
33959
33979
|
ref: y,
|
|
33960
|
-
class: ["ui-tab-strip relative flex min-w-0 h-[var(--ui-header-action)] [@media(pointer:coarse)]:h-[var(--ui-hit-min)] items-end",
|
|
33980
|
+
class: ["ui-tab-strip relative flex min-w-0 h-[var(--ui-header-action)] [@media(pointer:coarse)]:h-[var(--ui-hit-min)] items-end", E.$slots.actions ? "flex-[1_1_auto]" : "w-full"],
|
|
33961
33981
|
"aria-label": a.ariaLabel ?? d(o)("Sections"),
|
|
33962
33982
|
"data-ui-section-tabs-strip": "",
|
|
33963
33983
|
"data-overflow-start": d(_) ? "" : void 0,
|
|
33964
33984
|
"data-overflow-end": d(O) ? "" : void 0,
|
|
33965
33985
|
"data-syno-pkg-land-ui": ""
|
|
33966
|
-
},
|
|
33986
|
+
}, E.$attrs, { onKeydown: $ }), [
|
|
33967
33987
|
(g(!0), I(xe, null, Ge(a.items, (P) => (g(), I("button", {
|
|
33968
33988
|
key: P.value,
|
|
33969
33989
|
type: "button",
|
|
@@ -33984,8 +34004,8 @@ const X3 = ["data-ui-title-in-bar"], Q3 = { class: "min-w-0 flex-auto" }, e4 = {
|
|
|
33984
34004
|
"aria-hidden": "true"
|
|
33985
34005
|
}, null, 4)
|
|
33986
34006
|
], 16, m4)),
|
|
33987
|
-
|
|
33988
|
-
B(
|
|
34007
|
+
E.$slots.actions ? (g(), I("div", y4, [
|
|
34008
|
+
B(E.$slots, "actions")
|
|
33989
34009
|
])) : W("", !0)
|
|
33990
34010
|
]),
|
|
33991
34011
|
_: 3
|
|
@@ -33995,24 +34015,24 @@ const X3 = ["data-ui-title-in-bar"], Q3 = { class: "min-w-0 flex-auto" }, e4 = {
|
|
|
33995
34015
|
a.keepMounted ? (g(!0), I(xe, { key: 0 }, Ge(a.items, (P) => (g(), I(xe, {
|
|
33996
34016
|
key: P.value
|
|
33997
34017
|
}, [
|
|
33998
|
-
|
|
34018
|
+
E.$slots[`panel-${P.value}`] ? On((g(), I("div", {
|
|
33999
34019
|
key: 0,
|
|
34000
34020
|
class: "ui-tab-panel",
|
|
34001
34021
|
"data-state": a.modelValue === P.value ? "active" : "inactive",
|
|
34002
34022
|
"data-ui-swapped": d(T) && l.value !== "list" ? "" : void 0,
|
|
34003
34023
|
"data-syno-pkg-land-ui": ""
|
|
34004
34024
|
}, [
|
|
34005
|
-
B(
|
|
34025
|
+
B(E.$slots, `panel-${P.value}`)
|
|
34006
34026
|
], 8, b4)), [
|
|
34007
34027
|
[Un, a.modelValue === P.value]
|
|
34008
34028
|
]) : W("", !0)
|
|
34009
|
-
], 64))), 128)) :
|
|
34029
|
+
], 64))), 128)) : E.$slots[`panel-${a.modelValue}`] ? (g(), I("div", {
|
|
34010
34030
|
key: a.modelValue,
|
|
34011
34031
|
class: "ui-tab-panel",
|
|
34012
34032
|
"data-ui-swapped": d(T) && l.value !== "list" ? "" : void 0,
|
|
34013
34033
|
"data-syno-pkg-land-ui": ""
|
|
34014
34034
|
}, [
|
|
34015
|
-
B(
|
|
34035
|
+
B(E.$slots, `panel-${a.modelValue}`)
|
|
34016
34036
|
], 8, w4)) : W("", !0)
|
|
34017
34037
|
]),
|
|
34018
34038
|
_: 3
|
|
@@ -34097,12 +34117,12 @@ const E4 = ["data-layout-direction"], A4 = "16px", P4 = /* @__PURE__ */ U({
|
|
|
34097
34117
|
j >= 0 && v.splice(j, 1);
|
|
34098
34118
|
}
|
|
34099
34119
|
const y = /* @__PURE__ */ Ro([]);
|
|
34100
|
-
function
|
|
34120
|
+
function k(L, j) {
|
|
34101
34121
|
const H = L.element(), V = j.element();
|
|
34102
34122
|
return !H || !V || H === V ? 0 : H.compareDocumentPosition(V) & Node.DOCUMENT_POSITION_FOLLOWING ? -1 : 1;
|
|
34103
34123
|
}
|
|
34104
|
-
function
|
|
34105
|
-
y.includes(L) || (y.push(L), y.sort(
|
|
34124
|
+
function C(L) {
|
|
34125
|
+
y.includes(L) || (y.push(L), y.sort(k));
|
|
34106
34126
|
}
|
|
34107
34127
|
function w(L) {
|
|
34108
34128
|
const j = y.indexOf(L);
|
|
@@ -34130,7 +34150,7 @@ const E4 = ["data-layout-direction"], A4 = "16px", P4 = /* @__PURE__ */ U({
|
|
|
34130
34150
|
validateMessageDisplayMode: x(() => i.value.validateMessageDisplayMode ?? "popup"),
|
|
34131
34151
|
registerField: m,
|
|
34132
34152
|
unregisterField: b,
|
|
34133
|
-
registerTextControl:
|
|
34153
|
+
registerTextControl: C,
|
|
34134
34154
|
unregisterTextControl: w,
|
|
34135
34155
|
enterKeyHint: O,
|
|
34136
34156
|
nextTextControl: T
|
|
@@ -34148,7 +34168,7 @@ const E4 = ["data-layout-direction"], A4 = "16px", P4 = /* @__PURE__ */ U({
|
|
|
34148
34168
|
const H = await j.validate(null);
|
|
34149
34169
|
return a("validated", { valid: !H, errResults: [{ error: H ?? void 0, field: j }] }), !H;
|
|
34150
34170
|
}
|
|
34151
|
-
function
|
|
34171
|
+
function E() {
|
|
34152
34172
|
for (const L of [...v]) L.resetField();
|
|
34153
34173
|
}
|
|
34154
34174
|
function R() {
|
|
@@ -34160,7 +34180,7 @@ const E4 = ["data-layout-direction"], A4 = "16px", P4 = /* @__PURE__ */ U({
|
|
|
34160
34180
|
function q(L) {
|
|
34161
34181
|
a("submit", L);
|
|
34162
34182
|
}
|
|
34163
|
-
return t({ fields: v, validate: D, validateField: $, resetFields:
|
|
34183
|
+
return t({ fields: v, validate: D, validateField: $, resetFields: E, commit: R, isDirty: P }), (L, j) => (g(), I("form", {
|
|
34164
34184
|
ref_key: "root",
|
|
34165
34185
|
ref: s,
|
|
34166
34186
|
style: Ye(h.value),
|
|
@@ -34334,8 +34354,8 @@ const z4 = ["data-direction", "data-inset", "data-status"], B4 = ["id", "for"],
|
|
|
34334
34354
|
label: `form-item-${p}-label`,
|
|
34335
34355
|
description: `form-item-${p}-description`,
|
|
34336
34356
|
message: `form-item-${p}-message`
|
|
34337
|
-
}, v = /* @__PURE__ */ N(h.control), m = /* @__PURE__ */ N([]), b = x(() => a.modelValue !== void 0), y = /* @__PURE__ */ N(a.initialValue),
|
|
34338
|
-
function
|
|
34357
|
+
}, v = /* @__PURE__ */ N(h.control), m = /* @__PURE__ */ N([]), b = x(() => a.modelValue !== void 0), y = /* @__PURE__ */ N(a.initialValue), k = x(() => b.value ? a.modelValue : y.value);
|
|
34358
|
+
function C(J, me) {
|
|
34339
34359
|
if (Object.is(J, me)) return !0;
|
|
34340
34360
|
if (Array.isArray(J) && Array.isArray(me))
|
|
34341
34361
|
return J.length === me.length && J.every((Se, He) => Object.is(Se, me[He]));
|
|
@@ -34347,7 +34367,7 @@ const z4 = ["data-direction", "data-inset", "data-status"], B4 = ["id", "for"],
|
|
|
34347
34367
|
}
|
|
34348
34368
|
const w = /* @__PURE__ */ N(
|
|
34349
34369
|
a.initialValue !== void 0 ? a.initialValue : b.value ? a.modelValue : void 0
|
|
34350
|
-
), _ = x(() => !k
|
|
34370
|
+
), _ = x(() => !C(k.value, w.value));
|
|
34351
34371
|
function O(J) {
|
|
34352
34372
|
b.value || (y.value = J);
|
|
34353
34373
|
}
|
|
@@ -34355,9 +34375,9 @@ const z4 = ["data-direction", "data-inset", "data-status"], B4 = ["id", "for"],
|
|
|
34355
34375
|
w.value = J;
|
|
34356
34376
|
}
|
|
34357
34377
|
function D() {
|
|
34358
|
-
w.value =
|
|
34378
|
+
w.value = k.value;
|
|
34359
34379
|
}
|
|
34360
|
-
const $ = /* @__PURE__ */ N(""),
|
|
34380
|
+
const $ = /* @__PURE__ */ N(""), E = /* @__PURE__ */ N(""), R = /* @__PURE__ */ N(""), P = /* @__PURE__ */ N(""), q = /* @__PURE__ */ N(!1), L = /* @__PURE__ */ N(!1), j = x(() => a.disabled === !0 || q.value || c?.disabled === !0), H = x(() => P.value || s.value.validateStatus || $.value), V = x(() => H.value === "error"), K = x(() => R.value || E.value || s.value.help), le = x(() => R.value ? R.value : V.value && !s.value.hideValidateMessage && E.value || s.value.help), he = ho(f, { observeFirst: !0 }), be = x(() => he.value > 0 && he.value < Td), Ne = x(() => {
|
|
34361
34381
|
const J = s.value.direction ?? l?.direction ?? "auto";
|
|
34362
34382
|
return J === "auto" ? be.value ? "vertical" : "horizontal" : J;
|
|
34363
34383
|
}), Ue = x(() => {
|
|
@@ -34399,12 +34419,12 @@ const z4 = ["data-direction", "data-inset", "data-status"], B4 = ["id", "for"],
|
|
|
34399
34419
|
if (!me.length) return null;
|
|
34400
34420
|
const Se = ++A;
|
|
34401
34421
|
$.value = "validating", r("validating");
|
|
34402
|
-
const He = await F4(
|
|
34422
|
+
const He = await F4(k.value, me, {
|
|
34403
34423
|
trigger: J,
|
|
34404
34424
|
defaultTrigger: s.value.defaultValidateTrigger,
|
|
34405
34425
|
text: o
|
|
34406
34426
|
});
|
|
34407
|
-
return Se !== A || (
|
|
34427
|
+
return Se !== A || (E.value = He ?? "", $.value = He ? "error" : "success", He && Ue.value === "popup" && (L.value = !0), r("validated", { message: He ?? "", status: $.value })), He;
|
|
34408
34428
|
}
|
|
34409
34429
|
async function G(J = null) {
|
|
34410
34430
|
return !await F(J);
|
|
@@ -34431,7 +34451,7 @@ const z4 = ["data-direction", "data-inset", "data-status"], B4 = ["id", "for"],
|
|
|
34431
34451
|
q.value = J;
|
|
34432
34452
|
}
|
|
34433
34453
|
function ye() {
|
|
34434
|
-
A++, $.value = "",
|
|
34454
|
+
A++, $.value = "", E.value = "", R.value = "", P.value = "", L.value = !1, a.initialValue !== void 0 && (b.value ? r("update:modelValue", a.initialValue) : y.value = a.initialValue);
|
|
34435
34455
|
}
|
|
34436
34456
|
function Ee() {
|
|
34437
34457
|
const J = f.value;
|