@synopackageland/ui 0.7.0 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/index.js +2756 -2756
- package/dist/json-preview/preview.js +718 -718
- package/dist/json.js +3 -3
- package/dist/reka-runtime.json +1 -1
- package/dist/theme.css +1 -1
- package/dist/themes/dsm7-embedded-reset.css +1 -1
- package/dist/themes/dsm7-embedded-theme.css +1 -1
- package/dist/themes/dsm7-embedded.css +1 -1
- package/dist/themes/dsm7.css +1 -1
- package/docs/json-ui.md +1 -1
- package/package.json +1 -1
|
@@ -60,13 +60,13 @@ function bh(e) {
|
|
|
60
60
|
}
|
|
61
61
|
}), t;
|
|
62
62
|
}
|
|
63
|
-
function
|
|
63
|
+
function Ce(e) {
|
|
64
64
|
let t = "";
|
|
65
65
|
if (Me(e))
|
|
66
66
|
t = e;
|
|
67
67
|
else if (le(e))
|
|
68
68
|
for (let n = 0; n < e.length; n++) {
|
|
69
|
-
const r =
|
|
69
|
+
const r = Ce(e[n]);
|
|
70
70
|
r && (t += r + " ");
|
|
71
71
|
}
|
|
72
72
|
else if (Ee(e))
|
|
@@ -77,7 +77,7 @@ function ke(e) {
|
|
|
77
77
|
function Fa(e) {
|
|
78
78
|
if (!e) return null;
|
|
79
79
|
let { class: t, style: n } = e;
|
|
80
|
-
return t && !Me(t) && (e.class =
|
|
80
|
+
return t && !Me(t) && (e.class = Ce(t)), n && (e.style = Fe(n)), e;
|
|
81
81
|
}
|
|
82
82
|
const _h = "itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly", wh = /* @__PURE__ */ Da(_h);
|
|
83
83
|
function Bc(e) {
|
|
@@ -353,7 +353,7 @@ function Qc(e) {
|
|
|
353
353
|
let t, n = e.depsTail, r = n;
|
|
354
354
|
for (; r; ) {
|
|
355
355
|
const o = r.prevDep;
|
|
356
|
-
r.version === -1 ? (r === n && (n = o), Ba(r),
|
|
356
|
+
r.version === -1 ? (r === n && (n = o), Ba(r), kh(r)) : t = r, r.dep.activeLink = r.prevActiveLink, r.prevActiveLink = void 0, r = o;
|
|
357
357
|
}
|
|
358
358
|
e.deps = t, e.depsTail = n;
|
|
359
359
|
}
|
|
@@ -388,7 +388,7 @@ function Ba(e, t = !1) {
|
|
|
388
388
|
}
|
|
389
389
|
!t && !--n.sc && n.map && n.map.delete(n.key);
|
|
390
390
|
}
|
|
391
|
-
function
|
|
391
|
+
function kh(e) {
|
|
392
392
|
const { prevDep: t, nextDep: n } = e;
|
|
393
393
|
t && (t.nextDep = n, e.prevDep = void 0), n && (n.prevDep = t, e.nextDep = void 0);
|
|
394
394
|
}
|
|
@@ -414,7 +414,7 @@ function Dl(e) {
|
|
|
414
414
|
}
|
|
415
415
|
}
|
|
416
416
|
let ho = 0;
|
|
417
|
-
class
|
|
417
|
+
class Ch {
|
|
418
418
|
constructor(t, n) {
|
|
419
419
|
this.sub = t, this.dep = n, this.version = n.version, this.nextDep = this.prevDep = this.nextSub = this.prevSub = this.prevActiveLink = void 0;
|
|
420
420
|
}
|
|
@@ -429,7 +429,7 @@ class Fi {
|
|
|
429
429
|
return;
|
|
430
430
|
let n = this.activeLink;
|
|
431
431
|
if (n === void 0 || n.sub !== Re)
|
|
432
|
-
n = this.activeLink = new
|
|
432
|
+
n = this.activeLink = new Ch(Re, this), Re.deps ? (n.prevDep = Re.depsTail, Re.depsTail.nextDep = n, Re.depsTail = n) : Re.deps = Re.depsTail = n, nd(n);
|
|
433
433
|
else if (n.version === -1 && (n.version = this.version, n.nextDep)) {
|
|
434
434
|
const r = n.nextDep;
|
|
435
435
|
r.prevDep = n.prevDep, n.prevDep && (n.prevDep.nextDep = r), n.prevDep = Re.depsTail, n.nextDep = void 0, Re.depsTail.nextDep = n, Re.depsTail = n, Re.deps === n && (Re.deps = r);
|
|
@@ -1160,16 +1160,16 @@ function Qh(e, t, n = Te) {
|
|
|
1160
1160
|
rr = w;
|
|
1161
1161
|
}
|
|
1162
1162
|
} : f = tn, t && o) {
|
|
1163
|
-
const w = f,
|
|
1164
|
-
f = () => vn(w(),
|
|
1163
|
+
const w = f, k = o === !0 ? 1 / 0 : o;
|
|
1164
|
+
f = () => vn(w(), k);
|
|
1165
1165
|
}
|
|
1166
1166
|
const g = ja(), y = () => {
|
|
1167
1167
|
c.stop(), g && g.active && Ma(g.effects, c);
|
|
1168
1168
|
};
|
|
1169
1169
|
if (i && t) {
|
|
1170
1170
|
const w = t;
|
|
1171
|
-
t = (...
|
|
1172
|
-
const O = w(...
|
|
1171
|
+
t = (...k) => {
|
|
1172
|
+
const O = w(...k);
|
|
1173
1173
|
return y(), O;
|
|
1174
1174
|
};
|
|
1175
1175
|
}
|
|
@@ -1177,19 +1177,19 @@ function Qh(e, t, n = Te) {
|
|
|
1177
1177
|
const S = (w) => {
|
|
1178
1178
|
if (!(!(c.flags & 1) || !c.dirty && !w))
|
|
1179
1179
|
if (t) {
|
|
1180
|
-
const
|
|
1181
|
-
if (w || o || h || (v ?
|
|
1180
|
+
const k = c.run();
|
|
1181
|
+
if (w || o || h || (v ? k.some((O, A) => Mt(O, _[A])) : Mt(k, _))) {
|
|
1182
1182
|
d && d();
|
|
1183
1183
|
const O = rr;
|
|
1184
1184
|
rr = c;
|
|
1185
1185
|
try {
|
|
1186
1186
|
const A = [
|
|
1187
|
-
|
|
1187
|
+
k,
|
|
1188
1188
|
// pass undefined as the old value when it's changed for the first time
|
|
1189
1189
|
_ === Do ? void 0 : v && _[0] === Do ? [] : _,
|
|
1190
1190
|
p
|
|
1191
1191
|
];
|
|
1192
|
-
_ =
|
|
1192
|
+
_ = k, l ? l(t, 3, A) : (
|
|
1193
1193
|
// @ts-expect-error
|
|
1194
1194
|
t(...A)
|
|
1195
1195
|
);
|
|
@@ -1206,7 +1206,7 @@ function Qh(e, t, n = Te) {
|
|
|
1206
1206
|
if (l)
|
|
1207
1207
|
l(w, 4);
|
|
1208
1208
|
else
|
|
1209
|
-
for (const
|
|
1209
|
+
for (const k of w) k();
|
|
1210
1210
|
ui.delete(c);
|
|
1211
1211
|
}
|
|
1212
1212
|
}, t ? r ? S(!0) : _ = c.run() : s ? s(S.bind(null, !0), !0) : c.run(), y.pause = c.pause.bind(c), y.resume = c.resume.bind(c), y.stop = y, y;
|
|
@@ -1518,7 +1518,7 @@ const In = /* @__PURE__ */ new WeakMap(), xd = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1518
1518
|
a,
|
|
1519
1519
|
l
|
|
1520
1520
|
);
|
|
1521
|
-
},
|
|
1521
|
+
}, k = (A = t) => {
|
|
1522
1522
|
const T = or(A.props), F = A.target = Qs(A.props, h), q = ea(F, A, v, p);
|
|
1523
1523
|
F && (s !== "svg" && Fl(F) ? s = "svg" : s !== "mathml" && jl(F) && (s = "mathml"), o && o.isCE && (o.ce._teleportTargets || (o.ce._teleportTargets = /* @__PURE__ */ new Set())).add(F), T || (w(A, F, q), eo(A, !1)));
|
|
1524
1524
|
}, O = (A) => {
|
|
@@ -1528,7 +1528,7 @@ const In = /* @__PURE__ */ new WeakMap(), xd = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1528
1528
|
const F = y(A.el) || n;
|
|
1529
1529
|
w(A, F, A.anchor), eo(A, !0);
|
|
1530
1530
|
}
|
|
1531
|
-
|
|
1531
|
+
k(A);
|
|
1532
1532
|
}
|
|
1533
1533
|
};
|
|
1534
1534
|
In.set(A, T), ht(T, i);
|
|
@@ -1539,7 +1539,7 @@ const In = /* @__PURE__ */ new WeakMap(), xd = /* @__PURE__ */ Symbol("_vte"), K
|
|
|
1539
1539
|
O(t);
|
|
1540
1540
|
return;
|
|
1541
1541
|
}
|
|
1542
|
-
_ && (w(t, n, T), eo(t, !0)),
|
|
1542
|
+
_ && (w(t, n, T), eo(t, !0)), k();
|
|
1543
1543
|
} else {
|
|
1544
1544
|
t.el = e.el;
|
|
1545
1545
|
const A = t.anchor = e.anchor, T = In.get(e);
|
|
@@ -1686,7 +1686,7 @@ function lm(e, t, n, r, o, i, {
|
|
|
1686
1686
|
} else v && t.shapeFlag & 16 && (p(e, t), t.targetStart = e, t.targetAnchor = s(e));
|
|
1687
1687
|
return t.anchor && s(t.anchor);
|
|
1688
1688
|
}
|
|
1689
|
-
const
|
|
1689
|
+
const kd = am;
|
|
1690
1690
|
function eo(e, t) {
|
|
1691
1691
|
const n = e.ctx;
|
|
1692
1692
|
if (n && n.ut) {
|
|
@@ -1712,7 +1712,7 @@ function um(e) {
|
|
|
1712
1712
|
}
|
|
1713
1713
|
return t;
|
|
1714
1714
|
}
|
|
1715
|
-
function
|
|
1715
|
+
function Cd(e) {
|
|
1716
1716
|
if (!Wa(e))
|
|
1717
1717
|
return Ki(e.type) && e.children ? um(e.children) : e;
|
|
1718
1718
|
if (e.component)
|
|
@@ -1730,7 +1730,7 @@ function Za(e, t) {
|
|
|
1730
1730
|
e.transition = t;
|
|
1731
1731
|
const n = e.component.subTree;
|
|
1732
1732
|
Za(
|
|
1733
|
-
Ki(n.type) &&
|
|
1733
|
+
Ki(n.type) && Cd(n) || n,
|
|
1734
1734
|
t
|
|
1735
1735
|
);
|
|
1736
1736
|
} else e.shapeFlag & 128 ? (e.ssContent.transition = t.clone(e.ssContent), e.ssFallback.transition = t.clone(e.ssFallback)) : e.transition = t;
|
|
@@ -1918,7 +1918,7 @@ function Rd(e, t, n = !0, r = !1) {
|
|
|
1918
1918
|
function Bl(e, t) {
|
|
1919
1919
|
return e && (e[t] || e[it(t)] || e[Di(it(t))]);
|
|
1920
1920
|
}
|
|
1921
|
-
function
|
|
1921
|
+
function kt(e, t, n, r) {
|
|
1922
1922
|
let o;
|
|
1923
1923
|
const i = n, s = le(e);
|
|
1924
1924
|
if (s || Me(e)) {
|
|
@@ -1957,7 +1957,7 @@ function Ct(e, t, n, r) {
|
|
|
1957
1957
|
function B(e, t, n, r, o, i) {
|
|
1958
1958
|
if (n == null && (n = {}), ot.ce || ot.parent && $r(ot.parent) && ot.parent.ce) {
|
|
1959
1959
|
const u = i != null && n.key == null ? et({}, n, { key: i }) : n, c = Object.keys(u).length > 0;
|
|
1960
|
-
return t !== "default" && (u.name = t),
|
|
1960
|
+
return t !== "default" && (u.name = t), C(), H(
|
|
1961
1961
|
xe,
|
|
1962
1962
|
null,
|
|
1963
1963
|
[Y("slot", u, r && r())],
|
|
@@ -1967,7 +1967,7 @@ function B(e, t, n, r, o, i) {
|
|
|
1967
1967
|
let s = e[t];
|
|
1968
1968
|
s && s._c && (s._d = !1);
|
|
1969
1969
|
const a = bn.length;
|
|
1970
|
-
|
|
1970
|
+
C();
|
|
1971
1971
|
let l;
|
|
1972
1972
|
try {
|
|
1973
1973
|
const u = s && Nd(s(n)), c = n.key || i || // slot content array of a dynamic conditional slot may have a branch
|
|
@@ -2015,7 +2015,7 @@ const ta = (e) => e ? ef(e) ? Xi(e) : ta(e.parent) : null, uo = (
|
|
|
2015
2015
|
$nextTick: (e) => e.n || (e.n = Be.bind(e.proxy)),
|
|
2016
2016
|
$watch: (e) => im.bind(e)
|
|
2017
2017
|
})
|
|
2018
|
-
),
|
|
2018
|
+
), ks = (e, t) => e !== Te && !e.__isScriptSetup && $e(e, t), ym = {
|
|
2019
2019
|
get({ _: e }, t) {
|
|
2020
2020
|
if (t === "__v_skip")
|
|
2021
2021
|
return !0;
|
|
@@ -2034,7 +2034,7 @@ const ta = (e) => e ? ef(e) ? Xi(e) : ta(e.parent) : null, uo = (
|
|
|
2034
2034
|
return i[t];
|
|
2035
2035
|
}
|
|
2036
2036
|
else {
|
|
2037
|
-
if (
|
|
2037
|
+
if (ks(r, t))
|
|
2038
2038
|
return s[t] = 1, r[t];
|
|
2039
2039
|
if (o !== Te && $e(o, t))
|
|
2040
2040
|
return s[t] = 2, o[t];
|
|
@@ -2064,13 +2064,13 @@ const ta = (e) => e ? ef(e) ? Xi(e) : ta(e.parent) : null, uo = (
|
|
|
2064
2064
|
},
|
|
2065
2065
|
set({ _: e }, t, n) {
|
|
2066
2066
|
const { data: r, setupState: o, ctx: i } = e;
|
|
2067
|
-
return
|
|
2067
|
+
return ks(o, t) ? (o[t] = n, !0) : r !== Te && $e(r, t) ? (r[t] = n, !0) : $e(e.props, t) || t[0] === "$" && t.slice(1) in e ? !1 : (i[t] = n, !0);
|
|
2068
2068
|
},
|
|
2069
2069
|
has({
|
|
2070
2070
|
_: { data: e, setupState: t, accessCache: n, ctx: r, appContext: o, props: i, type: s }
|
|
2071
2071
|
}, a) {
|
|
2072
2072
|
let l;
|
|
2073
|
-
return !!(n[a] || e !== Te && a[0] !== "$" && $e(e, a) ||
|
|
2073
|
+
return !!(n[a] || e !== Te && a[0] !== "$" && $e(e, a) || ks(t, a) || $e(i, a) || $e(r, a) || $e(uo, a) || $e(o.config.globalProperties, a) || (l = s.__cssModules) && l[a]);
|
|
2074
2074
|
},
|
|
2075
2075
|
defineProperty(e, t, n) {
|
|
2076
2076
|
return n.get != null ? e._.accessCache[t] = 0 : $e(n, "value") && this.set(e, t, n.value, null), Reflect.defineProperty(e, t, n);
|
|
@@ -2125,7 +2125,7 @@ function _m(e) {
|
|
|
2125
2125
|
beforeUnmount: _,
|
|
2126
2126
|
destroyed: S,
|
|
2127
2127
|
unmounted: w,
|
|
2128
|
-
render:
|
|
2128
|
+
render: k,
|
|
2129
2129
|
renderTracked: O,
|
|
2130
2130
|
renderTriggered: A,
|
|
2131
2131
|
errorCaptured: T,
|
|
@@ -2184,7 +2184,7 @@ function _m(e) {
|
|
|
2184
2184
|
});
|
|
2185
2185
|
});
|
|
2186
2186
|
} else e.exposed || (e.exposed = {});
|
|
2187
|
-
|
|
2187
|
+
k && e.render === tn && (e.render = k), ee != null && (e.inheritAttrs = ee), _e && (e.components = _e), ye && (e.directives = ye), F && Ad(e);
|
|
2188
2188
|
}
|
|
2189
2189
|
function wm(e, t, n = tn) {
|
|
2190
2190
|
le(e) && (e = oa(e));
|
|
@@ -2274,7 +2274,7 @@ const Sm = {
|
|
|
2274
2274
|
components: to,
|
|
2275
2275
|
directives: to,
|
|
2276
2276
|
// watch
|
|
2277
|
-
watch:
|
|
2277
|
+
watch: km,
|
|
2278
2278
|
// provide / inject
|
|
2279
2279
|
provide: Zl,
|
|
2280
2280
|
inject: xm
|
|
@@ -2312,7 +2312,7 @@ function Wl(e, t) {
|
|
|
2312
2312
|
na(t ?? {})
|
|
2313
2313
|
) : t;
|
|
2314
2314
|
}
|
|
2315
|
-
function
|
|
2315
|
+
function km(e, t) {
|
|
2316
2316
|
if (!e) return t;
|
|
2317
2317
|
if (!t) return e;
|
|
2318
2318
|
const n = et(/* @__PURE__ */ Object.create(null), e);
|
|
@@ -2341,14 +2341,14 @@ function Vd() {
|
|
|
2341
2341
|
emitsCache: /* @__PURE__ */ new WeakMap()
|
|
2342
2342
|
};
|
|
2343
2343
|
}
|
|
2344
|
-
let
|
|
2344
|
+
let Cm = 0;
|
|
2345
2345
|
function Am(e, t) {
|
|
2346
2346
|
return function(r, o = null) {
|
|
2347
2347
|
fe(r) || (r = et({}, r)), o != null && !Ee(o) && (o = null);
|
|
2348
2348
|
const i = Vd(), s = /* @__PURE__ */ new WeakSet(), a = [];
|
|
2349
2349
|
let l = !1;
|
|
2350
2350
|
const u = i.app = {
|
|
2351
|
-
_uid:
|
|
2351
|
+
_uid: Cm++,
|
|
2352
2352
|
_component: r,
|
|
2353
2353
|
_props: o,
|
|
2354
2354
|
_container: null,
|
|
@@ -2474,10 +2474,10 @@ function Kl(e) {
|
|
|
2474
2474
|
let y, _;
|
|
2475
2475
|
try {
|
|
2476
2476
|
if (n.shapeFlag & 4) {
|
|
2477
|
-
const w = o || r,
|
|
2477
|
+
const w = o || r, k = w;
|
|
2478
2478
|
y = Qt(
|
|
2479
2479
|
u.call(
|
|
2480
|
-
|
|
2480
|
+
k,
|
|
2481
2481
|
w,
|
|
2482
2482
|
c,
|
|
2483
2483
|
f,
|
|
@@ -2503,14 +2503,14 @@ function Kl(e) {
|
|
|
2503
2503
|
}
|
|
2504
2504
|
let S = y;
|
|
2505
2505
|
if (_ && v !== !1) {
|
|
2506
|
-
const w = Object.keys(_), { shapeFlag:
|
|
2507
|
-
w.length &&
|
|
2506
|
+
const w = Object.keys(_), { shapeFlag: k } = S;
|
|
2507
|
+
w.length && k & 7 && (i && w.some(Ri) && (_ = Tm(
|
|
2508
2508
|
_,
|
|
2509
2509
|
i
|
|
2510
2510
|
)), S = ur(S, _, !1, !0));
|
|
2511
2511
|
}
|
|
2512
2512
|
if (n.dirs && (S = ur(S, null, !1, !0), S.dirs = S.dirs ? S.dirs.concat(n.dirs) : n.dirs), n.transition) {
|
|
2513
|
-
const w = Ki(S.type) &&
|
|
2513
|
+
const w = Ki(S.type) && Cd(S) || S;
|
|
2514
2514
|
Za(w, n.transition);
|
|
2515
2515
|
}
|
|
2516
2516
|
return y = S, di(g), y;
|
|
@@ -2840,7 +2840,7 @@ function Lm(e, t) {
|
|
|
2840
2840
|
);
|
|
2841
2841
|
break;
|
|
2842
2842
|
default:
|
|
2843
|
-
J & 1 ?
|
|
2843
|
+
J & 1 ? k(
|
|
2844
2844
|
b,
|
|
2845
2845
|
x,
|
|
2846
2846
|
E,
|
|
@@ -2910,7 +2910,7 @@ function Lm(e, t) {
|
|
|
2910
2910
|
for (; b && b !== x; )
|
|
2911
2911
|
E = d(b), o(b), b = E;
|
|
2912
2912
|
o(x);
|
|
2913
|
-
},
|
|
2913
|
+
}, k = (b, x, E, j, R, N, K, W, Z) => {
|
|
2914
2914
|
if (x.type === "svg" ? K = "svg" : x.type === "math" && (K = "mathml"), b == null)
|
|
2915
2915
|
O(
|
|
2916
2916
|
x,
|
|
@@ -2952,7 +2952,7 @@ function Lm(e, t) {
|
|
|
2952
2952
|
null,
|
|
2953
2953
|
j,
|
|
2954
2954
|
R,
|
|
2955
|
-
|
|
2955
|
+
Cs(b, N),
|
|
2956
2956
|
K,
|
|
2957
2957
|
W
|
|
2958
2958
|
), ue && Qn(b, null, j, "created"), A(Z, b, b.scopeId, K, j), ie) {
|
|
@@ -3011,7 +3011,7 @@ function Lm(e, t) {
|
|
|
3011
3011
|
W,
|
|
3012
3012
|
E,
|
|
3013
3013
|
j,
|
|
3014
|
-
|
|
3014
|
+
Cs(x, R),
|
|
3015
3015
|
N
|
|
3016
3016
|
) : K || ae(
|
|
3017
3017
|
b,
|
|
@@ -3020,7 +3020,7 @@ function Lm(e, t) {
|
|
|
3020
3020
|
null,
|
|
3021
3021
|
E,
|
|
3022
3022
|
j,
|
|
3023
|
-
|
|
3023
|
+
Cs(x, R),
|
|
3024
3024
|
N,
|
|
3025
3025
|
!1
|
|
3026
3026
|
), Z > 0) {
|
|
@@ -3615,7 +3615,7 @@ function Lm(e, t) {
|
|
|
3615
3615
|
createApp: Am(bt)
|
|
3616
3616
|
};
|
|
3617
3617
|
}
|
|
3618
|
-
function
|
|
3618
|
+
function Cs({ type: e, props: t }, n) {
|
|
3619
3619
|
return n === "svg" && e === "foreignObject" || n === "mathml" && e === "annotation-xml" && t && t.encoding && t.encoding.includes("html") ? void 0 : n;
|
|
3620
3620
|
}
|
|
3621
3621
|
function er({ effect: e, job: t }, n) {
|
|
@@ -3675,7 +3675,7 @@ function Um(e, t) {
|
|
|
3675
3675
|
}
|
|
3676
3676
|
const xe = /* @__PURE__ */ Symbol.for("v-fgt"), Gi = /* @__PURE__ */ Symbol.for("v-txt"), Bt = /* @__PURE__ */ Symbol.for("v-cmt"), As = /* @__PURE__ */ Symbol.for("v-stc"), bn = [];
|
|
3677
3677
|
let vt = null;
|
|
3678
|
-
function
|
|
3678
|
+
function C(e = !1) {
|
|
3679
3679
|
bn.push(vt = e ? null : []);
|
|
3680
3680
|
}
|
|
3681
3681
|
function Xa() {
|
|
@@ -3778,7 +3778,7 @@ function Zm(e, t = null, n = null, r = 0, o = null, i = !1) {
|
|
|
3778
3778
|
if (Qm(e) && (e = e.__vccOpts), t) {
|
|
3779
3779
|
t = Yi(t);
|
|
3780
3780
|
let { class: a, style: l } = t;
|
|
3781
|
-
a && !Me(a) && (t.class =
|
|
3781
|
+
a && !Me(a) && (t.class = Ce(a)), Ee(l) && (/* @__PURE__ */ Bi(l) && !le(l) && (l = et({}, l)), t.style = Fe(l));
|
|
3782
3782
|
}
|
|
3783
3783
|
const s = Me(e) ? 1 : Yd(e) ? 128 : Ki(e) ? 64 : Ee(e) ? 4 : fe(e) ? 2 : 0;
|
|
3784
3784
|
return oe(
|
|
@@ -3850,7 +3850,7 @@ function Qe(e = " ", t = 0) {
|
|
|
3850
3850
|
return Y(Gi, null, e, t);
|
|
3851
3851
|
}
|
|
3852
3852
|
function Q(e = "", t = !1) {
|
|
3853
|
-
return t ? (
|
|
3853
|
+
return t ? (C(), H(Bt, null, e)) : Y(Bt, null, e);
|
|
3854
3854
|
}
|
|
3855
3855
|
function Qt(e) {
|
|
3856
3856
|
return e == null || typeof e == "boolean" ? Y(Bt) : le(e) ? Y(
|
|
@@ -3896,7 +3896,7 @@ function se(...e) {
|
|
|
3896
3896
|
const r = e[n];
|
|
3897
3897
|
for (const o in r)
|
|
3898
3898
|
if (o === "class")
|
|
3899
|
-
t.class !== r.class && (t.class =
|
|
3899
|
+
t.class !== r.class && (t.class = Ce([t.class, r.class]));
|
|
3900
3900
|
else if (o === "style")
|
|
3901
3901
|
t.style = Fe([t.style, r.style]);
|
|
3902
3902
|
else if (Ii(o)) {
|
|
@@ -4333,7 +4333,7 @@ function ou(e, t, n, r, o) {
|
|
|
4333
4333
|
}
|
|
4334
4334
|
s && e.removeAttribute(o || t);
|
|
4335
4335
|
}
|
|
4336
|
-
function
|
|
4336
|
+
function kr(e, t, n, r) {
|
|
4337
4337
|
e.addEventListener(t, n, r);
|
|
4338
4338
|
}
|
|
4339
4339
|
function pv(e, t, n, r) {
|
|
@@ -4351,7 +4351,7 @@ function hv(e, t, n, r, o = null) {
|
|
|
4351
4351
|
r,
|
|
4352
4352
|
o
|
|
4353
4353
|
);
|
|
4354
|
-
|
|
4354
|
+
kr(e, a, u, l);
|
|
4355
4355
|
} else s && (pv(e, a, s, l), i[t] = void 0);
|
|
4356
4356
|
}
|
|
4357
4357
|
}
|
|
@@ -4429,7 +4429,7 @@ const au = (e) => {
|
|
|
4429
4429
|
const t = e.props["onUpdate:modelValue"] || !1;
|
|
4430
4430
|
return le(t) ? (n) => ei(t, n) : t;
|
|
4431
4431
|
};
|
|
4432
|
-
function
|
|
4432
|
+
function kv(e) {
|
|
4433
4433
|
e.target.composing = !0;
|
|
4434
4434
|
}
|
|
4435
4435
|
function lu(e) {
|
|
@@ -4440,16 +4440,16 @@ const Fo = /* @__PURE__ */ Symbol("_assign"), jo = /* @__PURE__ */ Symbol("_init
|
|
|
4440
4440
|
function Es(e, t, n) {
|
|
4441
4441
|
return t && (e = e.trim()), n && (e = Va(e)), e;
|
|
4442
4442
|
}
|
|
4443
|
-
const
|
|
4443
|
+
const Cv = {
|
|
4444
4444
|
created(e, { modifiers: { lazy: t, trim: n, number: r } }, o) {
|
|
4445
4445
|
e.parentNode && (e.type === "text" ? e[jo] = e.defaultValue.replace(/[\r\n]/g, "") : e.type === "textarea" && (e[jo] = e.defaultValue.replace(/\r\n?/g, `
|
|
4446
4446
|
`))), e[Fo] = au(o);
|
|
4447
4447
|
const i = r || o.props && o.props.type === "number";
|
|
4448
|
-
|
|
4448
|
+
kr(e, t ? "change" : "input", (s) => {
|
|
4449
4449
|
s.target.composing || e[Fo](Es(e.value, n, i));
|
|
4450
|
-
}), (n || i) &&
|
|
4450
|
+
}), (n || i) && kr(e, "change", () => {
|
|
4451
4451
|
e.value = Es(e.value, n, i);
|
|
4452
|
-
}), t || (
|
|
4452
|
+
}), t || (kr(e, "compositionstart", kv), kr(e, "compositionend", lu), kr(e, "change", lu));
|
|
4453
4453
|
},
|
|
4454
4454
|
// set value on mounted so it's after min/max for type="range"
|
|
4455
4455
|
mounted(e, { value: t, modifiers: { trim: n, number: r } }) {
|
|
@@ -4592,7 +4592,7 @@ function sf(e) {
|
|
|
4592
4592
|
const t = Object.getOwnPropertyDescriptor(e, "shape");
|
|
4593
4593
|
return t?.get ? t.get.raw : t?.value;
|
|
4594
4594
|
}
|
|
4595
|
-
function
|
|
4595
|
+
function kn(e) {
|
|
4596
4596
|
return sf(e._zod.def) ?? e._zod.def.shape;
|
|
4597
4597
|
}
|
|
4598
4598
|
function af(e, t, n) {
|
|
@@ -4609,7 +4609,7 @@ function lf(e, t, n) {
|
|
|
4609
4609
|
t in e ? Kn(e, t, n) : e[t] = n;
|
|
4610
4610
|
}
|
|
4611
4611
|
function cr(e, t, n, r) {
|
|
4612
|
-
const o =
|
|
4612
|
+
const o = kn(t);
|
|
4613
4613
|
for (const i of n) {
|
|
4614
4614
|
const s = Object.getOwnPropertyDescriptor(o, i);
|
|
4615
4615
|
s.enumerable && (s.get ? af(e, i, () => {
|
|
@@ -4624,7 +4624,7 @@ function Vv(e, t) {
|
|
|
4624
4624
|
r.enumerable && (r.get ? af(e, n, () => t[n]) : lf(e, n, r.value));
|
|
4625
4625
|
}
|
|
4626
4626
|
}
|
|
4627
|
-
function
|
|
4627
|
+
function Ct(...e) {
|
|
4628
4628
|
const t = {};
|
|
4629
4629
|
for (const n of e) {
|
|
4630
4630
|
const r = Object.getOwnPropertyDescriptors(n);
|
|
@@ -4707,10 +4707,10 @@ function Zv(e, t) {
|
|
|
4707
4707
|
if (r && r.length > 0)
|
|
4708
4708
|
throw new Error(".pick() cannot be used on object schemas containing refinements");
|
|
4709
4709
|
const i = {};
|
|
4710
|
-
return cr(i, e, Qi(e, t)), Hn(e,
|
|
4710
|
+
return cr(i, e, Qi(e, t)), Hn(e, Ct(n, { shape: i, checks: [] }));
|
|
4711
4711
|
}
|
|
4712
4712
|
function Qi(e, t) {
|
|
4713
|
-
const n =
|
|
4713
|
+
const n = kn(e), r = [];
|
|
4714
4714
|
for (const o of Reflect.ownKeys(t)) {
|
|
4715
4715
|
if (!Object.getOwnPropertyDescriptor(n, o)?.enumerable)
|
|
4716
4716
|
throw new Error(`Unrecognized key: "${String(o)}"`);
|
|
@@ -4723,28 +4723,28 @@ function Wv(e, t) {
|
|
|
4723
4723
|
if (r && r.length > 0)
|
|
4724
4724
|
throw new Error(".omit() cannot be used on object schemas containing refinements");
|
|
4725
4725
|
const i = new Set(Qi(e, t)), s = {};
|
|
4726
|
-
return cr(s, e, Reflect.ownKeys(
|
|
4726
|
+
return cr(s, e, Reflect.ownKeys(kn(e)).filter((a) => !i.has(a))), Hn(e, Ct(n, { shape: s, checks: [] }));
|
|
4727
4727
|
}
|
|
4728
4728
|
function Kv(e, t) {
|
|
4729
4729
|
if (!Dr(t))
|
|
4730
4730
|
throw new Error("Invalid input to extend: expected a plain object");
|
|
4731
4731
|
const n = e._zod.def.checks;
|
|
4732
4732
|
if (n && n.length > 0) {
|
|
4733
|
-
const o =
|
|
4733
|
+
const o = kn(e);
|
|
4734
4734
|
for (const i of Reflect.ownKeys(t))
|
|
4735
4735
|
if (Object.getOwnPropertyDescriptor(o, i) !== void 0)
|
|
4736
4736
|
throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.");
|
|
4737
4737
|
}
|
|
4738
|
-
return Hn(e,
|
|
4738
|
+
return Hn(e, Ct(e._zod.def, { shape: pf(e, t) }));
|
|
4739
4739
|
}
|
|
4740
4740
|
function pf(e, t) {
|
|
4741
4741
|
const n = {};
|
|
4742
|
-
return cr(n, e, Reflect.ownKeys(
|
|
4742
|
+
return cr(n, e, Reflect.ownKeys(kn(e))), Vv(n, t), n;
|
|
4743
4743
|
}
|
|
4744
4744
|
function Hv(e, t) {
|
|
4745
4745
|
if (!Dr(t))
|
|
4746
4746
|
throw new Error("Invalid input to safeExtend: expected a plain object");
|
|
4747
|
-
return Hn(e,
|
|
4747
|
+
return Hn(e, Ct(e._zod.def, { shape: pf(e, t) }));
|
|
4748
4748
|
}
|
|
4749
4749
|
function Jv(e, t) {
|
|
4750
4750
|
if (!t?._zod?.def)
|
|
@@ -4752,8 +4752,8 @@ function Jv(e, t) {
|
|
|
4752
4752
|
if (e._zod.def.checks?.length)
|
|
4753
4753
|
throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");
|
|
4754
4754
|
const n = {};
|
|
4755
|
-
cr(n, e, Reflect.ownKeys(
|
|
4756
|
-
const r =
|
|
4755
|
+
cr(n, e, Reflect.ownKeys(kn(e))), cr(n, t, Reflect.ownKeys(kn(t)));
|
|
4756
|
+
const r = Ct(e._zod.def, {
|
|
4757
4757
|
shape: n,
|
|
4758
4758
|
get catchall() {
|
|
4759
4759
|
return t._zod.def.catchall;
|
|
@@ -4767,14 +4767,14 @@ function fu(e, t, n, r = "partial") {
|
|
|
4767
4767
|
if (i && i.length > 0)
|
|
4768
4768
|
throw new Error(`.${r}() cannot be used on object schemas containing refinements`);
|
|
4769
4769
|
const a = n ? new Set(Qi(t, n)) : void 0, l = {};
|
|
4770
|
-
return cr(l, t, Reflect.ownKeys(
|
|
4770
|
+
return cr(l, t, Reflect.ownKeys(kn(t)), e && ((u, c) => a && !a.has(c) ? u : new e({ type: "optional", innerType: u }))), Hn(t, Ct(t._zod.def, { shape: l, checks: [] }));
|
|
4771
4771
|
}
|
|
4772
4772
|
function Gv(e, t, n) {
|
|
4773
4773
|
const r = n ? new Set(Qi(t, n)) : void 0, o = {};
|
|
4774
|
-
return cr(o, t, Reflect.ownKeys(
|
|
4774
|
+
return cr(o, t, Reflect.ownKeys(kn(t)), (i, s) => (
|
|
4775
4775
|
// overwrite with non-optional
|
|
4776
4776
|
r && !r.has(s) ? i : new e({ type: "nonoptional", innerType: i })
|
|
4777
|
-
)), Hn(t,
|
|
4777
|
+
)), Hn(t, Ct(t._zod.def, { shape: o }));
|
|
4778
4778
|
}
|
|
4779
4779
|
function gn(e, t = 0) {
|
|
4780
4780
|
if (e.aborted === !0)
|
|
@@ -4904,7 +4904,7 @@ const rg = {
|
|
|
4904
4904
|
Rn = !0;
|
|
4905
4905
|
}
|
|
4906
4906
|
};
|
|
4907
|
-
function
|
|
4907
|
+
function ke(e, t, n) {
|
|
4908
4908
|
const r = Object.getPrototypeOf(e._zod);
|
|
4909
4909
|
if (t in r && Ps !== e._zod) {
|
|
4910
4910
|
Ps = void 0;
|
|
@@ -5189,10 +5189,10 @@ const _g = async (e, t, n) => {
|
|
|
5189
5189
|
return await t(r, o, a, es(n, s));
|
|
5190
5190
|
};
|
|
5191
5191
|
return n;
|
|
5192
|
-
},
|
|
5192
|
+
}, kg = (e) => {
|
|
5193
5193
|
const t = il(e), n = async (r, o, i, s) => await t(r, o, i, es(n, s));
|
|
5194
5194
|
return n;
|
|
5195
|
-
},
|
|
5195
|
+
}, Cg = (e) => (t, n, r) => {
|
|
5196
5196
|
const o = r ? { ...r, direction: "backward" } : { direction: "backward" };
|
|
5197
5197
|
return sl(e)(t, n, o);
|
|
5198
5198
|
}, Ag = (e) => (t, n, r) => sl(e)(t, n, r), Og = (e) => async (t, n, r) => {
|
|
@@ -5630,7 +5630,7 @@ const cl = /* @__PURE__ */ P("$ZodString", (e, t) => {
|
|
|
5630
5630
|
}), Sy = /* @__PURE__ */ P("$ZodEmail", (e, t) => {
|
|
5631
5631
|
t.pattern ?? (t.pattern = Vg), je.init(e, t);
|
|
5632
5632
|
}), xf = 1, _i = 2;
|
|
5633
|
-
function
|
|
5633
|
+
function kf(e) {
|
|
5634
5634
|
try {
|
|
5635
5635
|
return typeof URL < "u" && typeof URL.canParse == "function" ? URL.canParse(e) : (new URL(e), !0);
|
|
5636
5636
|
} catch {
|
|
@@ -5638,9 +5638,9 @@ function Cf(e) {
|
|
|
5638
5638
|
}
|
|
5639
5639
|
}
|
|
5640
5640
|
function xy(e, t) {
|
|
5641
|
-
return !("normalize" in t) && !("hostname" in t) && !("protocol" in t) ?
|
|
5641
|
+
return !("normalize" in t) && !("hostname" in t) && !("protocol" in t) ? kf(e) || _i : ky(e, t);
|
|
5642
5642
|
}
|
|
5643
|
-
function
|
|
5643
|
+
function ky(e, t) {
|
|
5644
5644
|
if (!t.normalize && t.protocol?.source === Kg.source && !/^https?:\/\//i.test(e))
|
|
5645
5645
|
return xf;
|
|
5646
5646
|
try {
|
|
@@ -5654,9 +5654,9 @@ function Cy(e, t) {
|
|
|
5654
5654
|
return _i;
|
|
5655
5655
|
}
|
|
5656
5656
|
}
|
|
5657
|
-
const
|
|
5657
|
+
const Cy = /[\t\n\r]/g;
|
|
5658
5658
|
function yu(e) {
|
|
5659
|
-
return e.replace(
|
|
5659
|
+
return e.replace(Cy, "");
|
|
5660
5660
|
}
|
|
5661
5661
|
function Ay(e, t) {
|
|
5662
5662
|
return t.lastIndex = 0, t.test(e.hostname);
|
|
@@ -5748,12 +5748,12 @@ const $y = /* @__PURE__ */ P("$ZodURL", (e, t) => {
|
|
|
5748
5748
|
}), jy = /* @__PURE__ */ P("$ZodIPv4", (e, t) => {
|
|
5749
5749
|
t.pattern ?? (t.pattern = Lg), je.init(e, t);
|
|
5750
5750
|
}), Ly = /^[0-9a-fA-F:.]+$/;
|
|
5751
|
-
function
|
|
5752
|
-
return Ly.test(e) ?
|
|
5751
|
+
function Cf(e) {
|
|
5752
|
+
return Ly.test(e) ? kf(`http://[${e}]`) : !1;
|
|
5753
5753
|
}
|
|
5754
5754
|
const qy = /* @__PURE__ */ P("$ZodIPv6", (e, t) => {
|
|
5755
5755
|
t.pattern ?? (t.pattern = qg), je.init(e, t), e._zod.check = (n) => {
|
|
5756
|
-
|
|
5756
|
+
Cf(n.value) || n.issues.push({
|
|
5757
5757
|
code: "invalid_format",
|
|
5758
5758
|
format: "ipv6",
|
|
5759
5759
|
input: n.value,
|
|
@@ -5772,7 +5772,7 @@ function Uy(e) {
|
|
|
5772
5772
|
if (!r)
|
|
5773
5773
|
return !1;
|
|
5774
5774
|
const o = Number(r);
|
|
5775
|
-
return `${o}` !== r || o < 0 || o > 128 ? !1 :
|
|
5775
|
+
return `${o}` !== r || o < 0 || o > 128 ? !1 : Cf(n);
|
|
5776
5776
|
}
|
|
5777
5777
|
const Zy = /* @__PURE__ */ P("$ZodCIDRv6", (e, t) => {
|
|
5778
5778
|
t.pattern ?? (t.pattern = Ug), je.init(e, t), e._zod.check = (n) => {
|
|
@@ -6017,7 +6017,7 @@ const sb = /* @__PURE__ */ P("$ZodObject", (e, t) => {
|
|
|
6017
6017
|
u.raw = r, Object.defineProperty(t, "shape", { get: u });
|
|
6018
6018
|
}
|
|
6019
6019
|
const o = el(() => Ef(t));
|
|
6020
|
-
|
|
6020
|
+
ke(e, "propValues", (u) => {
|
|
6021
6021
|
const c = u.def.shape, f = {};
|
|
6022
6022
|
for (const d in c) {
|
|
6023
6023
|
const p = c[d]._zod;
|
|
@@ -6055,35 +6055,35 @@ const sb = /* @__PURE__ */ P("$ZodObject", (e, t) => {
|
|
|
6055
6055
|
if (g === "__proto__")
|
|
6056
6056
|
continue;
|
|
6057
6057
|
const y = p[g], _ = y._zod.optin, S = y._zod.optout, w = y._zod.run({ value: f[g], issues: [] }, c);
|
|
6058
|
-
w instanceof Promise ? d.push(w.then((
|
|
6058
|
+
w instanceof Promise ? d.push(w.then((k) => wi(k, u, g, f, _, S))) : wi(w, u, g, f, _, S);
|
|
6059
6059
|
}
|
|
6060
6060
|
return s ? Pf(d, f, u, c, o.value, e, h === !0) : d.length ? Promise.all(d).then(() => u) : u;
|
|
6061
6061
|
};
|
|
6062
6062
|
}), ab = /* @__PURE__ */ P("$ZodObjectJIT", (e, t) => {
|
|
6063
6063
|
sb.init(e, t);
|
|
6064
6064
|
const n = e._zod.parse, r = el(() => Ef(t)), o = Ut.memoizer, i = (p) => {
|
|
6065
|
-
const h = r.value, v = h.symbolKeys, g = new gy(["payload", "ctx"], { shape: p, inst: e, memo: o, syms: v }), y = (
|
|
6066
|
-
let ${
|
|
6067
|
-
for (let i = 0; i < ${
|
|
6068
|
-
const iss = ${
|
|
6065
|
+
const h = r.value, v = h.symbolKeys, g = new gy(["payload", "ctx"], { shape: p, inst: e, memo: o, syms: v }), y = (k) => `shape[${k}]._zod.run({ value: input[${k}], issues: [] }, ctx)`, _ = (k, O) => `
|
|
6066
|
+
let ${k}_ab = false;
|
|
6067
|
+
for (let i = 0; i < ${k}.issues.length; i++) {
|
|
6068
|
+
const iss = ${k}.issues[i];
|
|
6069
6069
|
iss.path = iss.path ? [${O}, ...iss.path] : [${O}];
|
|
6070
6070
|
payload.issues.push(iss);
|
|
6071
|
-
if (iss.continue !== true) ${
|
|
6071
|
+
if (iss.continue !== true) ${k}_ab = true;
|
|
6072
6072
|
}
|
|
6073
|
-
if (${
|
|
6073
|
+
if (${k}_ab && ctx && ctx.abortEarly) {
|
|
6074
6074
|
payload.value = newResult;
|
|
6075
6075
|
return payload;
|
|
6076
6076
|
}`;
|
|
6077
6077
|
g.write("const input = payload.value;");
|
|
6078
6078
|
const S = /* @__PURE__ */ Object.create(null);
|
|
6079
6079
|
let w = 0;
|
|
6080
|
-
for (const
|
|
6081
|
-
S[
|
|
6080
|
+
for (const k of h.allKeys)
|
|
6081
|
+
S[k] = `key_${w++}`;
|
|
6082
6082
|
g.write(o ? "const newResult = memo.alloc(inst, payload, {}, ctx);" : "const newResult = {};");
|
|
6083
|
-
for (const
|
|
6084
|
-
if (
|
|
6083
|
+
for (const k of h.allKeys) {
|
|
6084
|
+
if (k === "__proto__")
|
|
6085
6085
|
continue;
|
|
6086
|
-
const O = S[
|
|
6086
|
+
const O = S[k], A = typeof k == "symbol" ? `syms[${v.indexOf(k)}]` : Fv(k), T = `${A} in input`, F = p[k], q = F?._zod?.optin, ee = q !== void 0, _e = F?._zod?.optout === "optional";
|
|
6087
6087
|
if (g.write(`const ${O} = ${y(A)};`), ee && _e) {
|
|
6088
6088
|
const ye = q === "optional" ? `${O}_present` : `${O}.value !== undefined || ${O}_present`;
|
|
6089
6089
|
g.write(`
|
|
@@ -6157,10 +6157,10 @@ function _u(e, t, n, r) {
|
|
|
6157
6157
|
}), t);
|
|
6158
6158
|
}
|
|
6159
6159
|
const lb = /* @__PURE__ */ P("$ZodUnion", (e, t) => {
|
|
6160
|
-
Ne.init(e, t),
|
|
6160
|
+
Ne.init(e, t), ke(e, "optin", (r) => r.def.options.some((o) => o._zod.optin === "defaulted") ? "defaulted" : r.def.options.some((o) => o._zod.optin !== void 0) ? "optional" : void 0), ke(e, "optout", (r) => r.def.options.some((o) => o._zod.optout === "optional") ? "optional" : void 0), ke(e, "values", (r) => {
|
|
6161
6161
|
if (r.def.options.every((o) => o._zod.values))
|
|
6162
6162
|
return new Set(r.def.options.flatMap((o) => Array.from(o._zod.values)));
|
|
6163
|
-
}),
|
|
6163
|
+
}), ke(e, "pattern", (r) => {
|
|
6164
6164
|
if (r.def.options.every((o) => o._zod.pattern)) {
|
|
6165
6165
|
const o = r.def.options.map((i) => i._zod.pattern);
|
|
6166
6166
|
return new RegExp(`^(${o.map((i) => tl(i.source)).join("|")})$`);
|
|
@@ -6371,7 +6371,7 @@ const cb = /* @__PURE__ */ P("$ZodRecord", (e, t) => {
|
|
|
6371
6371
|
}), db = /* @__PURE__ */ P("$ZodEnum", (e, t) => {
|
|
6372
6372
|
Ne.init(e, t);
|
|
6373
6373
|
const n = aa(t.entries), r = new Set(n);
|
|
6374
|
-
e._zod.values = r,
|
|
6374
|
+
e._zod.values = r, ke(e, "pattern", (o) => {
|
|
6375
6375
|
const i = aa(o.def.entries).filter((s) => qv.has(typeof s));
|
|
6376
6376
|
return new RegExp(i.length ? `^(${i.map((s) => Mr(s.toString())).join("|")})$` : "^[^\\s\\S]$");
|
|
6377
6377
|
}), e._zod.parse = (o, i) => {
|
|
@@ -6386,7 +6386,7 @@ const cb = /* @__PURE__ */ P("$ZodRecord", (e, t) => {
|
|
|
6386
6386
|
}), fb = /* @__PURE__ */ P("$ZodLiteral", (e, t) => {
|
|
6387
6387
|
Ne.init(e, t);
|
|
6388
6388
|
const n = new Set(t.values);
|
|
6389
|
-
e._zod.values = n,
|
|
6389
|
+
e._zod.values = n, ke(e, "pattern", (r) => {
|
|
6390
6390
|
const o = r.def.values;
|
|
6391
6391
|
return new RegExp(o.length ? `^(${o.map((i) => typeof i == "string" ? Mr(i) : i ? Mr(i.toString()) : String(i)).join("|")})$` : "^[^\\s\\S]$");
|
|
6392
6392
|
}), e._zod.parse = (r, o) => {
|
|
@@ -6414,10 +6414,10 @@ function Su(e, t) {
|
|
|
6414
6414
|
return e.value = t.issues.length ? void 0 : t.value, e;
|
|
6415
6415
|
}
|
|
6416
6416
|
const Tf = /* @__PURE__ */ P("$ZodOptional", (e, t) => {
|
|
6417
|
-
Ne.init(e, t),
|
|
6417
|
+
Ne.init(e, t), ke(e, "optin", (n) => n.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), e._zod.optout = "optional", ke(e, "values", (n) => {
|
|
6418
6418
|
const r = n.def.innerType._zod.values;
|
|
6419
6419
|
return r ? /* @__PURE__ */ new Set([...r, void 0]) : void 0;
|
|
6420
|
-
}),
|
|
6420
|
+
}), ke(e, "pattern", (n) => {
|
|
6421
6421
|
const r = n.def.innerType._zod.pattern;
|
|
6422
6422
|
return r ? new RegExp(`^(${tl(r.source)})?$`) : void 0;
|
|
6423
6423
|
}), e._zod.parse = (n, r) => {
|
|
@@ -6430,14 +6430,14 @@ const Tf = /* @__PURE__ */ P("$ZodOptional", (e, t) => {
|
|
|
6430
6430
|
return t.innerType._zod.run(n, r);
|
|
6431
6431
|
};
|
|
6432
6432
|
}), hb = /* @__PURE__ */ P("$ZodExactOptional", (e, t) => {
|
|
6433
|
-
Tf.init(e, t),
|
|
6433
|
+
Tf.init(e, t), ke(e, "values", (n) => n.def.innerType._zod.values), ke(e, "pattern", (n) => n.def.innerType._zod.pattern), e._zod.parse = (n, r) => t.innerType._zod.run(n, r);
|
|
6434
6434
|
}), mb = /* @__PURE__ */ P("$ZodNullable", (e, t) => {
|
|
6435
|
-
Ne.init(e, t),
|
|
6435
|
+
Ne.init(e, t), ke(e, "optin", (n) => n.def.innerType._zod.optin), ke(e, "optout", (n) => n.def.innerType._zod.optout), ke(e, "pattern", (n) => {
|
|
6436
6436
|
const r = n.def.innerType._zod.pattern;
|
|
6437
6437
|
return r ? new RegExp(`^(${tl(r.source)}|null)$`) : void 0;
|
|
6438
|
-
}),
|
|
6438
|
+
}), ke(e, "values", (n) => n.def.innerType._zod.values ? /* @__PURE__ */ new Set([...n.def.innerType._zod.values, null]) : void 0), e._zod.parse = (n, r) => n.value === null ? n : t.innerType._zod.run(n, r);
|
|
6439
6439
|
}), vb = /* @__PURE__ */ P("$ZodDefault", (e, t) => {
|
|
6440
|
-
Ne.init(e, t), e._zod.optin = "defaulted",
|
|
6440
|
+
Ne.init(e, t), e._zod.optin = "defaulted", ke(e, "values", (n) => n.def.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
6441
6441
|
if (r.direction === "backward")
|
|
6442
6442
|
return t.innerType._zod.run(n, r);
|
|
6443
6443
|
if (n.value === void 0)
|
|
@@ -6450,17 +6450,17 @@ function xu(e, t) {
|
|
|
6450
6450
|
return e.value === void 0 && (e.value = t.defaultValue), e;
|
|
6451
6451
|
}
|
|
6452
6452
|
const gb = /* @__PURE__ */ P("$ZodPrefault", (e, t) => {
|
|
6453
|
-
Ne.init(e, t), e._zod.optin = "defaulted",
|
|
6453
|
+
Ne.init(e, t), e._zod.optin = "defaulted", ke(e, "values", (n) => n.def.innerType._zod.values), e._zod.parse = (n, r) => (r.direction === "backward" || n.value === void 0 && (n.value = t.defaultValue), t.innerType._zod.run(n, r));
|
|
6454
6454
|
}), yb = /* @__PURE__ */ P("$ZodNonOptional", (e, t) => {
|
|
6455
|
-
Ne.init(e, t),
|
|
6455
|
+
Ne.init(e, t), ke(e, "values", (n) => {
|
|
6456
6456
|
const r = n.def.innerType._zod.values;
|
|
6457
6457
|
return r ? new Set([...r].filter((o) => o !== void 0)) : void 0;
|
|
6458
6458
|
}), e._zod.parse = (n, r) => {
|
|
6459
6459
|
const o = t.innerType._zod.run(n, r);
|
|
6460
|
-
return o instanceof Promise ? o.then((i) =>
|
|
6460
|
+
return o instanceof Promise ? o.then((i) => ku(i, e)) : ku(o, e);
|
|
6461
6461
|
};
|
|
6462
6462
|
});
|
|
6463
|
-
function
|
|
6463
|
+
function ku(e, t) {
|
|
6464
6464
|
return !e.issues.length && e.value === void 0 && e.issues.push({
|
|
6465
6465
|
code: "invalid_type",
|
|
6466
6466
|
expected: "nonoptional",
|
|
@@ -6468,7 +6468,7 @@ function Cu(e, t) {
|
|
|
6468
6468
|
inst: t
|
|
6469
6469
|
}), e;
|
|
6470
6470
|
}
|
|
6471
|
-
function
|
|
6471
|
+
function Cu(e, t, n, r) {
|
|
6472
6472
|
return t.issues.length ? (e.value = n.catchValue({
|
|
6473
6473
|
...t,
|
|
6474
6474
|
value: e.value,
|
|
@@ -6479,14 +6479,14 @@ function ku(e, t, n, r) {
|
|
|
6479
6479
|
}), e) : (e.value = t.value, t.memo && (e.memo = !0), e);
|
|
6480
6480
|
}
|
|
6481
6481
|
const bb = /* @__PURE__ */ P("$ZodCatch", (e, t) => {
|
|
6482
|
-
Ne.init(e, t),
|
|
6482
|
+
Ne.init(e, t), ke(e, "optin", (n) => n.def.innerType._zod.optin === "defaulted" ? "defaulted" : "optional"), ke(e, "optout", (n) => n.def.innerType._zod.optout), ke(e, "values", (n) => n.def.innerType._zod.values), e._zod.parse = (n, r) => {
|
|
6483
6483
|
if (r.direction === "backward")
|
|
6484
6484
|
return t.innerType._zod.run(n, r);
|
|
6485
6485
|
const o = t.innerType._zod.run({ value: n.value, issues: [] }, r);
|
|
6486
|
-
return o instanceof Promise ? o.then((i) =>
|
|
6486
|
+
return o instanceof Promise ? o.then((i) => Cu(n, i, t, r)) : Cu(n, o, t, r);
|
|
6487
6487
|
};
|
|
6488
6488
|
}), _b = /* @__PURE__ */ P("$ZodPipe", (e, t) => {
|
|
6489
|
-
Ne.init(e, t),
|
|
6489
|
+
Ne.init(e, t), ke(e, "values", (n) => n.def.in._zod.values), ke(e, "optin", (n) => n.def.in._zod.optin), ke(e, "optout", (n) => n.def.out._zod.optout), ke(e, "propValues", (n) => n.def.in._zod.propValues), e._zod.parse = (n, r) => {
|
|
6490
6490
|
if (r.direction === "backward") {
|
|
6491
6491
|
const i = t.out._zod.run(n, r);
|
|
6492
6492
|
return i instanceof Promise ? i.then((s) => Lo(s, t.in, r)) : Lo(i, t.in, r);
|
|
@@ -6499,7 +6499,7 @@ function Lo(e, t, n) {
|
|
|
6499
6499
|
return e.issues.some((r) => r.code !== "unrecognized_keys") ? (e.aborted = !0, e) : t._zod.run({ value: e.value, issues: e.issues }, n);
|
|
6500
6500
|
}
|
|
6501
6501
|
const wb = /* @__PURE__ */ P("$ZodReadonly", (e, t) => {
|
|
6502
|
-
Ne.init(e, t),
|
|
6502
|
+
Ne.init(e, t), ke(e, "propValues", (n) => n.def.innerType._zod.propValues), ke(e, "values", (n) => n.def.innerType._zod.values), ke(e, "optin", (n) => n.def.innerType?._zod?.optin), ke(e, "optout", (n) => n.def.innerType?._zod?.optout), e._zod.parse = (n, r) => {
|
|
6503
6503
|
if (r.direction === "backward")
|
|
6504
6504
|
return t.innerType._zod.run(n, r);
|
|
6505
6505
|
const o = t.innerType._zod.run(n, r);
|
|
@@ -6513,7 +6513,7 @@ const Sb = /* @__PURE__ */ P("$ZodLazy", (e, t) => {
|
|
|
6513
6513
|
Ne.init(e, t), Mv(e._zod, "innerType", () => {
|
|
6514
6514
|
const n = t;
|
|
6515
6515
|
return n._cachedInner || (n._cachedInner = t.getter()), n._cachedInner;
|
|
6516
|
-
}),
|
|
6516
|
+
}), ke(e, "pattern", (n) => n.innerType?._zod?.pattern), ke(e, "propValues", (n) => n.innerType?._zod?.propValues), ke(e, "optin", (n) => n.innerType?._zod?.optin ?? void 0), ke(e, "optout", (n) => n.innerType?._zod?.optout ?? void 0), e._zod.parse = (n, r) => e._zod.innerType._zod.run(n, r);
|
|
6517
6517
|
}), xb = /* @__PURE__ */ P("$ZodCustom", (e, t) => {
|
|
6518
6518
|
wt.init(e, t), Ne.init(e, t), e._zod.parse = (n, r) => n, e._zod.check = (n) => {
|
|
6519
6519
|
const r = n.value, o = t.fn(r);
|
|
@@ -6537,7 +6537,7 @@ function Ou(e, t, n, r) {
|
|
|
6537
6537
|
r._zod.def.params && (o.params = r._zod.def.params), t.issues.push(wo(o));
|
|
6538
6538
|
}
|
|
6539
6539
|
}
|
|
6540
|
-
class
|
|
6540
|
+
class kb extends Error {
|
|
6541
6541
|
constructor() {
|
|
6542
6542
|
super("Cannot parse a reference cycle that closes through a transform"), this.name = "ZodCyclicError";
|
|
6543
6543
|
}
|
|
@@ -6665,9 +6665,9 @@ function ri(e, t, n) {
|
|
|
6665
6665
|
}
|
|
6666
6666
|
}
|
|
6667
6667
|
}
|
|
6668
|
-
return t.delete(e),
|
|
6668
|
+
return t.delete(e), Cb(e, o);
|
|
6669
6669
|
}
|
|
6670
|
-
function
|
|
6670
|
+
function Cb(e, t) {
|
|
6671
6671
|
return t !== ni && Rf.set(e, t === co), t;
|
|
6672
6672
|
}
|
|
6673
6673
|
function Ab(e, t) {
|
|
@@ -6689,7 +6689,7 @@ const Bo = [], Ob = {
|
|
|
6689
6689
|
(t = e._zod).deferred ?? (t.deferred = []), e._zod.deferred.push(() => {
|
|
6690
6690
|
const n = e._zod.parse, r = (o, i) => {
|
|
6691
6691
|
if (i.direction !== "backward" && Eb(i, o.value))
|
|
6692
|
-
throw new
|
|
6692
|
+
throw new kb();
|
|
6693
6693
|
return n(o, i);
|
|
6694
6694
|
};
|
|
6695
6695
|
e._zod.parse = r, e._zod.run === n && (e._zod.run = r);
|
|
@@ -7321,11 +7321,11 @@ function x_() {
|
|
|
7321
7321
|
return /* @__PURE__ */ Br((e) => e.toUpperCase());
|
|
7322
7322
|
}
|
|
7323
7323
|
// @__NO_SIDE_EFFECTS__
|
|
7324
|
-
function
|
|
7324
|
+
function k_() {
|
|
7325
7325
|
return /* @__PURE__ */ Br((e) => jv(e));
|
|
7326
7326
|
}
|
|
7327
7327
|
// @__NO_SIDE_EFFECTS__
|
|
7328
|
-
function
|
|
7328
|
+
function C_(e, t, n) {
|
|
7329
7329
|
return new e({
|
|
7330
7330
|
type: "array",
|
|
7331
7331
|
element: t,
|
|
@@ -7857,9 +7857,9 @@ const I_ = {
|
|
|
7857
7857
|
path: [...r.path, "items"]
|
|
7858
7858
|
});
|
|
7859
7859
|
};
|
|
7860
|
-
function
|
|
7860
|
+
function ki(e) {
|
|
7861
7861
|
const t = e._zod.def;
|
|
7862
|
-
return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ?
|
|
7862
|
+
return t.type === "pipe" && t.in._zod.traits.has("$ZodTransform") ? ki(t.out) : t.type === "catch" ? ki(t.innerType) : e._zod.optin;
|
|
7863
7863
|
}
|
|
7864
7864
|
const W_ = (e, t, n, r) => {
|
|
7865
7865
|
const o = n, i = e._zod.def, s = i.shape;
|
|
@@ -7874,7 +7874,7 @@ const W_ = (e, t, n, r) => {
|
|
|
7874
7874
|
const l = [];
|
|
7875
7875
|
for (const u of Object.keys(s)) {
|
|
7876
7876
|
const c = i.shape[u];
|
|
7877
|
-
(t.io === "input" ?
|
|
7877
|
+
(t.io === "input" ? ki(c) === void 0 : c._zod.optout === void 0) && l.push(u);
|
|
7878
7878
|
}
|
|
7879
7879
|
l.length > 0 && (o.required = l), i.catchall?._zod.def.type === "never" ? o.additionalProperties = !1 : i.catchall ? i.catchall && (o.additionalProperties = Ze(i.catchall, t, {
|
|
7880
7880
|
...r,
|
|
@@ -7969,7 +7969,7 @@ const G_ = (e, t, n, r) => {
|
|
|
7969
7969
|
path: [...r.path, "additionalProperties"]
|
|
7970
7970
|
});
|
|
7971
7971
|
}
|
|
7972
|
-
const l = s._zod.values, u = t.io === "input" &&
|
|
7972
|
+
const l = s._zod.values, u = t.io === "input" && ki(i.valueType) !== void 0;
|
|
7973
7973
|
if (l && !i.partial && !u) {
|
|
7974
7974
|
const c = [...l].filter((f) => typeof f == "string" || typeof f == "number");
|
|
7975
7975
|
c.length > 0 && (o.required = c.map(String));
|
|
@@ -8066,7 +8066,7 @@ const iw = (e, t) => {
|
|
|
8066
8066
|
}));
|
|
8067
8067
|
}, Rt = /* @__PURE__ */ P("ZodError", iw, void 0, {
|
|
8068
8068
|
Parent: Error
|
|
8069
|
-
}), sw = /* @__PURE__ */ ol(Rt), aw = /* @__PURE__ */ il(Rt), lw = /* @__PURE__ */ sl(Rt), uw = /* @__PURE__ */ al(Rt), cw = /* @__PURE__ */ wg(Rt), dw = /* @__PURE__ */ Sg(Rt), fw = /* @__PURE__ */ xg(Rt), pw = /* @__PURE__ */
|
|
8069
|
+
}), sw = /* @__PURE__ */ ol(Rt), aw = /* @__PURE__ */ il(Rt), lw = /* @__PURE__ */ sl(Rt), uw = /* @__PURE__ */ al(Rt), cw = /* @__PURE__ */ wg(Rt), dw = /* @__PURE__ */ Sg(Rt), fw = /* @__PURE__ */ xg(Rt), pw = /* @__PURE__ */ kg(Rt), hw = /* @__PURE__ */ Cg(Rt), mw = /* @__PURE__ */ Ag(Rt), vw = /* @__PURE__ */ Og(Rt), gw = /* @__PURE__ */ $g(Rt);
|
|
8070
8070
|
function yw() {
|
|
8071
8071
|
Ut.localeError || on(Tb());
|
|
8072
8072
|
}
|
|
@@ -8076,7 +8076,7 @@ function ns() {
|
|
|
8076
8076
|
const ze = /* @__PURE__ */ P("ZodType", (e, t) => (yw(), Ne.init(e, t), e.def = t, e.type = t.type, e), {
|
|
8077
8077
|
check(...e) {
|
|
8078
8078
|
const t = this.def;
|
|
8079
|
-
return this.clone(
|
|
8079
|
+
return this.clone(Ct(t, {
|
|
8080
8080
|
checks: [
|
|
8081
8081
|
...t.checks ?? [],
|
|
8082
8082
|
...e.map((n) => typeof n == "function" ? { _zod: { check: n, def: { check: "custom" }, onattach: [] } } : n)
|
|
@@ -8291,14 +8291,14 @@ const ze = /* @__PURE__ */ P("ZodType", (e, t) => (yw(), Ne.init(e, t), e.def =
|
|
|
8291
8291
|
return this.check(/* @__PURE__ */ x_());
|
|
8292
8292
|
},
|
|
8293
8293
|
slugify() {
|
|
8294
|
-
return this.check(/* @__PURE__ */
|
|
8294
|
+
return this.check(/* @__PURE__ */ k_());
|
|
8295
8295
|
}
|
|
8296
8296
|
})
|
|
8297
8297
|
), bw = /* @__PURE__ */ P("ZodString", (e, t) => {
|
|
8298
8298
|
cl.init(e, t), Jf.init(e, t);
|
|
8299
8299
|
}, {
|
|
8300
8300
|
email(e) {
|
|
8301
|
-
return this.check(/* @__PURE__ */ zb(
|
|
8301
|
+
return this.check(/* @__PURE__ */ zb(kw, e));
|
|
8302
8302
|
},
|
|
8303
8303
|
url(e) {
|
|
8304
8304
|
return this.check(/* @__PURE__ */ Lb(Aw, e));
|
|
@@ -8310,7 +8310,7 @@ const ze = /* @__PURE__ */ P("ZodType", (e, t) => (yw(), Ne.init(e, t), e.def =
|
|
|
8310
8310
|
return this.check(/* @__PURE__ */ qb(Ow, e));
|
|
8311
8311
|
},
|
|
8312
8312
|
guid(e) {
|
|
8313
|
-
return this.check(/* @__PURE__ */ Db(
|
|
8313
|
+
return this.check(/* @__PURE__ */ Db(Cw, e));
|
|
8314
8314
|
},
|
|
8315
8315
|
uuid(e) {
|
|
8316
8316
|
return this.check(/* @__PURE__ */ Mb(Zo, e));
|
|
@@ -8389,9 +8389,9 @@ const qe = /* @__PURE__ */ P("ZodStringFormat", (e, t) => {
|
|
|
8389
8389
|
Vy.init(e, t), qe.init(e, t);
|
|
8390
8390
|
}), xw = /* @__PURE__ */ P("ZodISODuration", (e, t) => {
|
|
8391
8391
|
Fy.init(e, t), qe.init(e, t);
|
|
8392
|
-
}),
|
|
8392
|
+
}), kw = /* @__PURE__ */ P("ZodEmail", (e, t) => {
|
|
8393
8393
|
Sy.init(e, t), qe.init(e, t);
|
|
8394
|
-
}),
|
|
8394
|
+
}), Cw = /* @__PURE__ */ P("ZodGUID", (e, t) => {
|
|
8395
8395
|
_y.init(e, t), qe.init(e, t);
|
|
8396
8396
|
}), Zo = /* @__PURE__ */ P("ZodUUID", (e, t) => {
|
|
8397
8397
|
wy.init(e, t), qe.init(e, t);
|
|
@@ -8553,7 +8553,7 @@ const Gw = /* @__PURE__ */ P("ZodArray", (e, t) => {
|
|
|
8553
8553
|
}
|
|
8554
8554
|
});
|
|
8555
8555
|
function Ue(e, t) {
|
|
8556
|
-
return /* @__PURE__ */
|
|
8556
|
+
return /* @__PURE__ */ C_(Gw, e, t);
|
|
8557
8557
|
}
|
|
8558
8558
|
const Xf = /* @__PURE__ */ P("ZodObject", (e, t) => {
|
|
8559
8559
|
ns(), ab.init(e, t), ze.init(e, t), e._zod.processJSONSchema = (n, r, o) => W_(e, n, r, o), og(e, "shape", (n) => n._zod.def.shape, !1);
|
|
@@ -8562,19 +8562,19 @@ const Xf = /* @__PURE__ */ P("ZodObject", (e, t) => {
|
|
|
8562
8562
|
return Pe(Object.keys(this._zod.def.shape));
|
|
8563
8563
|
},
|
|
8564
8564
|
catchall(e) {
|
|
8565
|
-
return this.clone(
|
|
8565
|
+
return this.clone(Ct(this._zod.def, { catchall: e }));
|
|
8566
8566
|
},
|
|
8567
8567
|
passthrough() {
|
|
8568
|
-
return this.clone(
|
|
8568
|
+
return this.clone(Ct(this._zod.def, { catchall: Xe() }));
|
|
8569
8569
|
},
|
|
8570
8570
|
loose() {
|
|
8571
|
-
return this.clone(
|
|
8571
|
+
return this.clone(Ct(this._zod.def, { catchall: Xe() }));
|
|
8572
8572
|
},
|
|
8573
8573
|
strict() {
|
|
8574
|
-
return this.clone(
|
|
8574
|
+
return this.clone(Ct(this._zod.def, { catchall: Yf() }));
|
|
8575
8575
|
},
|
|
8576
8576
|
strip() {
|
|
8577
|
-
return this.clone(
|
|
8577
|
+
return this.clone(Ct(this._zod.def, { catchall: void 0 }));
|
|
8578
8578
|
},
|
|
8579
8579
|
extend(e) {
|
|
8580
8580
|
return Kv(this, e);
|
|
@@ -8980,18 +8980,18 @@ var Wo = St([
|
|
|
8980
8980
|
lt: Wo.optional(),
|
|
8981
8981
|
lte: Wo.optional(),
|
|
8982
8982
|
not: Eo(!0).optional()
|
|
8983
|
-
},
|
|
8983
|
+
}, k0 = te({
|
|
8984
8984
|
$state: z(),
|
|
8985
8985
|
...Pr
|
|
8986
|
-
}),
|
|
8986
|
+
}), C0 = te({
|
|
8987
8987
|
$item: z(),
|
|
8988
8988
|
...Pr
|
|
8989
8989
|
}), A0 = te({
|
|
8990
8990
|
$index: Eo(!0),
|
|
8991
8991
|
...Pr
|
|
8992
8992
|
}), Ku = St([
|
|
8993
|
-
C0,
|
|
8994
8993
|
k0,
|
|
8994
|
+
C0,
|
|
8995
8995
|
A0
|
|
8996
8996
|
]), ga = pl(
|
|
8997
8997
|
() => St([
|
|
@@ -9710,7 +9710,7 @@ function mS(e, t) {
|
|
|
9710
9710
|
)), s.push(
|
|
9711
9711
|
"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."
|
|
9712
9712
|
), s.push(""), s.push("Example output (each line is a separate JSON object):"), s.push("");
|
|
9713
|
-
const a = e.data.components, l = e.schema.definition.spec, c = (l.kind === "object" ? l.inner : void 0)?.elements, f = c?.kind === "record" ? c.inner : void 0, p = (f?.kind === "object" ? f.inner : void 0)?.slots !== void 0, h = e.componentNames, v = h[0] || "Component", g = h.length > 1 ? h[1] : v, y = a?.[v], _ = a?.[g], S = y ? rc(y) : {}, w = _ ? rc(_) : {},
|
|
9713
|
+
const a = e.data.components, l = e.schema.definition.spec, c = (l.kind === "object" ? l.inner : void 0)?.elements, f = c?.kind === "record" ? c.inner : void 0, p = (f?.kind === "object" ? f.inner : void 0)?.slots !== void 0, h = e.componentNames, v = h[0] || "Component", g = h.length > 1 ? h[1] : v, y = a?.[v], _ = a?.[g], S = y ? rc(y) : {}, w = _ ? rc(_) : {}, k = _?.props ? vS(_.props) : null, O = k ? { ...w, [k]: { $item: "title" } } : w, A = [
|
|
9714
9714
|
JSON.stringify({ op: "add", path: "/root", value: "main" }),
|
|
9715
9715
|
JSON.stringify({
|
|
9716
9716
|
op: "add",
|
|
@@ -10429,7 +10429,7 @@ function xS(e, t) {
|
|
|
10429
10429
|
}
|
|
10430
10430
|
return !0;
|
|
10431
10431
|
}
|
|
10432
|
-
function
|
|
10432
|
+
function kS(e, t) {
|
|
10433
10433
|
if (e === t) return !0;
|
|
10434
10434
|
if (e.validateOn !== t.validateOn) return !1;
|
|
10435
10435
|
const n = e.checks ?? [], r = t.checks ?? [];
|
|
@@ -10440,7 +10440,7 @@ function CS(e, t) {
|
|
|
10440
10440
|
}
|
|
10441
10441
|
return !0;
|
|
10442
10442
|
}
|
|
10443
|
-
var
|
|
10443
|
+
var CS = /* @__PURE__ */ V({
|
|
10444
10444
|
name: "ValidationProvider",
|
|
10445
10445
|
props: {
|
|
10446
10446
|
customFunctions: {
|
|
@@ -10451,7 +10451,7 @@ var kS = /* @__PURE__ */ V({
|
|
|
10451
10451
|
setup(e, { slots: t }) {
|
|
10452
10452
|
const { state: n } = Ur(), r = /* @__PURE__ */ L({}), o = /* @__PURE__ */ L({}), i = (c, f) => {
|
|
10453
10453
|
const d = o.value[c];
|
|
10454
|
-
d &&
|
|
10454
|
+
d && kS(d, f) || (o.value = { ...o.value, [c]: f });
|
|
10455
10455
|
}, s = (c, f) => {
|
|
10456
10456
|
const d = n.value, p = c.split("/").filter(Boolean);
|
|
10457
10457
|
let h = d;
|
|
@@ -10573,40 +10573,40 @@ var hp = /* @__PURE__ */ Symbol("json-render:actions"), OS = /* @__PURE__ */ V({
|
|
|
10573
10573
|
let y = !0, _;
|
|
10574
10574
|
try {
|
|
10575
10575
|
if (h.action === "setState" && h.params) {
|
|
10576
|
-
const
|
|
10577
|
-
|
|
10576
|
+
const k = h.params.statePath, O = h.params.value;
|
|
10577
|
+
k && r(k, O);
|
|
10578
10578
|
return;
|
|
10579
10579
|
}
|
|
10580
10580
|
if (h.action === "pushState" && h.params) {
|
|
10581
|
-
const
|
|
10582
|
-
if (
|
|
10583
|
-
const A = _a(O, n), T = n(
|
|
10584
|
-
r(
|
|
10581
|
+
const k = h.params.statePath, O = h.params.value;
|
|
10582
|
+
if (k) {
|
|
10583
|
+
const A = _a(O, n), T = n(k) ?? [];
|
|
10584
|
+
r(k, [...T, A]);
|
|
10585
10585
|
const F = h.params.clearStatePath;
|
|
10586
10586
|
F && r(F, "");
|
|
10587
10587
|
}
|
|
10588
10588
|
return;
|
|
10589
10589
|
}
|
|
10590
10590
|
if (h.action === "removeState" && h.params) {
|
|
10591
|
-
const
|
|
10592
|
-
if (
|
|
10593
|
-
const A = n(
|
|
10591
|
+
const k = h.params.statePath, O = h.params.index;
|
|
10592
|
+
if (k !== void 0 && O !== void 0) {
|
|
10593
|
+
const A = n(k) ?? [];
|
|
10594
10594
|
r(
|
|
10595
|
-
|
|
10595
|
+
k,
|
|
10596
10596
|
A.filter((T, F) => F !== O)
|
|
10597
10597
|
);
|
|
10598
10598
|
}
|
|
10599
10599
|
return;
|
|
10600
10600
|
}
|
|
10601
10601
|
if (h.action === "validateForm") {
|
|
10602
|
-
const
|
|
10603
|
-
if (!
|
|
10602
|
+
const k = i?.validateAll;
|
|
10603
|
+
if (!k) {
|
|
10604
10604
|
console.warn(
|
|
10605
10605
|
"validateForm action was dispatched but no ValidationProvider is connected. Ensure ValidationProvider is rendered inside the provider tree."
|
|
10606
10606
|
);
|
|
10607
10607
|
return;
|
|
10608
10608
|
}
|
|
10609
|
-
const O =
|
|
10609
|
+
const O = k(), A = {};
|
|
10610
10610
|
for (const [F, q] of Object.entries(i.fieldStates))
|
|
10611
10611
|
q.result && !q.result.valid && (A[F] = q.result.errors);
|
|
10612
10612
|
const T = h.params?.statePath || "/formValidation";
|
|
@@ -10614,18 +10614,18 @@ var hp = /* @__PURE__ */ Symbol("json-render:actions"), OS = /* @__PURE__ */ V({
|
|
|
10614
10614
|
return;
|
|
10615
10615
|
}
|
|
10616
10616
|
if (h.action === "push" && h.params) {
|
|
10617
|
-
const
|
|
10618
|
-
if (
|
|
10617
|
+
const k = h.params.screen;
|
|
10618
|
+
if (k) {
|
|
10619
10619
|
const O = n("/currentScreen"), A = n("/navStack") ?? [];
|
|
10620
|
-
O ? r("/navStack", [...A, O]) : r("/navStack", [...A, ""]), r("/currentScreen",
|
|
10620
|
+
O ? r("/navStack", [...A, O]) : r("/navStack", [...A, ""]), r("/currentScreen", k);
|
|
10621
10621
|
}
|
|
10622
10622
|
return;
|
|
10623
10623
|
}
|
|
10624
10624
|
if (h.action === "pop") {
|
|
10625
|
-
const
|
|
10626
|
-
if (
|
|
10627
|
-
const O =
|
|
10628
|
-
r("/navStack",
|
|
10625
|
+
const k = n("/navStack") ?? [];
|
|
10626
|
+
if (k.length > 0) {
|
|
10627
|
+
const O = k[k.length - 1];
|
|
10628
|
+
r("/navStack", k.slice(0, -1)), O ? r("/currentScreen", O) : r("/currentScreen", void 0);
|
|
10629
10629
|
}
|
|
10630
10630
|
return;
|
|
10631
10631
|
}
|
|
@@ -10647,8 +10647,8 @@ var hp = /* @__PURE__ */ Symbol("json-render:actions"), OS = /* @__PURE__ */ V({
|
|
|
10647
10647
|
}
|
|
10648
10648
|
};
|
|
10649
10649
|
});
|
|
10650
|
-
const
|
|
10651
|
-
|
|
10650
|
+
const k = new Set(a.value);
|
|
10651
|
+
k.add(h.action), a.value = k;
|
|
10652
10652
|
try {
|
|
10653
10653
|
await tc({
|
|
10654
10654
|
action: h,
|
|
@@ -10673,13 +10673,13 @@ var hp = /* @__PURE__ */ Symbol("json-render:actions"), OS = /* @__PURE__ */ V({
|
|
|
10673
10673
|
handler: S,
|
|
10674
10674
|
setState: r,
|
|
10675
10675
|
navigate: e.navigate,
|
|
10676
|
-
executeAction: async (
|
|
10677
|
-
await c(
|
|
10676
|
+
executeAction: async (k) => {
|
|
10677
|
+
await c(k);
|
|
10678
10678
|
}
|
|
10679
10679
|
});
|
|
10680
10680
|
} finally {
|
|
10681
|
-
const
|
|
10682
|
-
|
|
10681
|
+
const k = new Set(a.value);
|
|
10682
|
+
k.delete(h.action), a.value = k;
|
|
10683
10683
|
}
|
|
10684
10684
|
} catch (S) {
|
|
10685
10685
|
throw y = !1, _ = S, S;
|
|
@@ -11028,9 +11028,9 @@ var ml = /* @__PURE__ */ V({
|
|
|
11028
11028
|
if (h && p[S] === h[S]) continue;
|
|
11029
11029
|
const w = g[S];
|
|
11030
11030
|
if (!w) continue;
|
|
11031
|
-
const
|
|
11031
|
+
const k = Array.isArray(w) ? w : [w];
|
|
11032
11032
|
await lc(
|
|
11033
|
-
|
|
11033
|
+
k,
|
|
11034
11034
|
u.value,
|
|
11035
11035
|
i,
|
|
11036
11036
|
o,
|
|
@@ -11058,7 +11058,7 @@ var ml = /* @__PURE__ */ V({
|
|
|
11058
11058
|
`[json-render] Unknown slot "${ee}" on component "${_.type}". Available slots: ${w.slots.join(", ")}`
|
|
11059
11059
|
);
|
|
11060
11060
|
}
|
|
11061
|
-
const
|
|
11061
|
+
const k = (q, ee) => q.map((_e) => {
|
|
11062
11062
|
const ye = e.spec.elements[_e];
|
|
11063
11063
|
if (!ye) {
|
|
11064
11064
|
if (!e.loading) {
|
|
@@ -11084,10 +11084,10 @@ var ml = /* @__PURE__ */ V({
|
|
|
11084
11084
|
registry: e.registry,
|
|
11085
11085
|
loading: e.loading,
|
|
11086
11086
|
fallback: e.fallback
|
|
11087
|
-
}) : _.children ?
|
|
11087
|
+
}) : _.children ? k(_.children) : void 0, A = _.slots ? Object.fromEntries(
|
|
11088
11088
|
Object.entries(_.slots).filter(([q]) => q !== "default").map(([q, ee]) => [
|
|
11089
11089
|
q,
|
|
11090
|
-
() =>
|
|
11090
|
+
() => k(ee, q)
|
|
11091
11091
|
])
|
|
11092
11092
|
) : {}, T = G(
|
|
11093
11093
|
S,
|
|
@@ -11276,7 +11276,7 @@ var ml = /* @__PURE__ */ V({
|
|
|
11276
11276
|
{
|
|
11277
11277
|
default: () => G(wS, null, {
|
|
11278
11278
|
default: () => G(
|
|
11279
|
-
|
|
11279
|
+
CS,
|
|
11280
11280
|
{ customFunctions: e.validationFunctions },
|
|
11281
11281
|
{
|
|
11282
11282
|
default: () => G(
|
|
@@ -12581,12 +12581,12 @@ const WS = ["aria-label"], xp = /* @__PURE__ */ V({
|
|
|
12581
12581
|
"--ui-spin-size": `${n.size}px`,
|
|
12582
12582
|
"--ui-spin-stroke": Math.max(2, 36 / Math.max(1, n.size))
|
|
12583
12583
|
}));
|
|
12584
|
-
return (o, i) => (
|
|
12584
|
+
return (o, i) => (C(), I("span", {
|
|
12585
12585
|
class: "ui-spin",
|
|
12586
12586
|
role: "status",
|
|
12587
12587
|
"aria-label": m(n).label,
|
|
12588
12588
|
style: Fe(r.value),
|
|
12589
|
-
"data-syno-ui": ""
|
|
12589
|
+
"data-syno-pkg-land-ui": ""
|
|
12590
12590
|
}, [...i[0] || (i[0] = [
|
|
12591
12591
|
oe("svg", {
|
|
12592
12592
|
class: "ui-spin-ring",
|
|
@@ -12630,23 +12630,23 @@ const KS = ["type", "disabled", "data-disabled"], HS = /* @__PURE__ */ V({
|
|
|
12630
12630
|
t.variant === "danger" && "border-[var(--ui-danger-hover)] bg-[var(--ui-danger)] text-[var(--ui-danger-foreground)] [--ui-spin-color:var(--ui-danger-foreground)] hover:border-[var(--ui-danger-active)] hover:bg-[var(--ui-danger-hover)] active:border-[var(--ui-danger-active)] active:bg-[var(--ui-danger-active)] data-[disabled]:opacity-40"
|
|
12631
12631
|
)
|
|
12632
12632
|
);
|
|
12633
|
-
return (r, o) => (
|
|
12633
|
+
return (r, o) => (C(), I("button", {
|
|
12634
12634
|
type: e.type,
|
|
12635
|
-
class:
|
|
12635
|
+
class: Ce(n.value),
|
|
12636
12636
|
disabled: e.disabled || e.loading,
|
|
12637
12637
|
"data-disabled": e.disabled || void 0,
|
|
12638
|
-
"data-syno-ui": ""
|
|
12638
|
+
"data-syno-pkg-land-ui": ""
|
|
12639
12639
|
}, [
|
|
12640
|
-
e.loading ? (
|
|
12640
|
+
e.loading ? (C(), H(xp, {
|
|
12641
12641
|
key: 0,
|
|
12642
12642
|
size: 16
|
|
12643
12643
|
})) : Q("", !0),
|
|
12644
12644
|
B(r.$slots, "default")
|
|
12645
12645
|
], 10, KS));
|
|
12646
12646
|
}
|
|
12647
|
-
}),
|
|
12647
|
+
}), kp = /* @__PURE__ */ Symbol("syno-pkg-land-ui:form"), vl = /* @__PURE__ */ Symbol("syno-pkg-land-ui:form-field");
|
|
12648
12648
|
function JS() {
|
|
12649
|
-
return Le(
|
|
12649
|
+
return Le(kp, null);
|
|
12650
12650
|
}
|
|
12651
12651
|
function GS() {
|
|
12652
12652
|
return Le(vl, null);
|
|
@@ -12705,7 +12705,7 @@ const YS = ["value", "type", "name", "placeholder", "disabled", "readonly"], XS
|
|
|
12705
12705
|
n.invalid ? "border-[var(--ui-danger)]" : "border-[var(--ui-border)]"
|
|
12706
12706
|
)
|
|
12707
12707
|
), { controlAttrs: i, wrapperAttrs: s, changed: a } = Zr({ value: () => n.modelValue, disabled: () => n.disabled, id: () => n.id, ariaLabel: () => n.ariaLabel, ariaLabelledby: () => n.ariaLabelledby, invalid: () => n.invalid });
|
|
12708
|
-
return (l, u) => (
|
|
12708
|
+
return (l, u) => (C(), I("input", se({ ...m(s)(), ...m(i)() }, {
|
|
12709
12709
|
value: e.modelValue,
|
|
12710
12710
|
type: e.type,
|
|
12711
12711
|
name: n.name,
|
|
@@ -12713,7 +12713,7 @@ const YS = ["value", "type", "name", "placeholder", "disabled", "readonly"], XS
|
|
|
12713
12713
|
disabled: e.disabled,
|
|
12714
12714
|
readonly: e.readonly,
|
|
12715
12715
|
class: o.value,
|
|
12716
|
-
"data-syno-ui": "",
|
|
12716
|
+
"data-syno-pkg-land-ui": "",
|
|
12717
12717
|
onInput: u[0] || (u[0] = (c) => {
|
|
12718
12718
|
m(a)(c.target.value), r("update:modelValue", c.target.value);
|
|
12719
12719
|
})
|
|
@@ -12810,7 +12810,7 @@ const ox = ({
|
|
|
12810
12810
|
strokeWidth: _ = 2,
|
|
12811
12811
|
absoluteStrokeWidth: S = !1,
|
|
12812
12812
|
nonScalingStroke: w = !1,
|
|
12813
|
-
class:
|
|
12813
|
+
class: k = ""
|
|
12814
12814
|
} = rx(), O = Ko(o) || Ko(i) || o === !0 || i === !0 || S === !0, A = Ko(s) || Ko(a) || s === !0 || a === !0 || w === !0;
|
|
12815
12815
|
delete h.class;
|
|
12816
12816
|
const T = v.default?.(), [, F, q = []] = QS(r, {
|
|
@@ -12820,7 +12820,7 @@ const ox = ({
|
|
|
12820
12820
|
strokeWidth: l ?? u ?? _,
|
|
12821
12821
|
absoluteStrokeWidth: O,
|
|
12822
12822
|
nonScalingStroke: A,
|
|
12823
|
-
className:
|
|
12823
|
+
className: k,
|
|
12824
12824
|
hasA11yProp: T != null && T.length > 0 || ex(h),
|
|
12825
12825
|
attributes: h
|
|
12826
12826
|
});
|
|
@@ -12847,7 +12847,7 @@ const ix = {
|
|
|
12847
12847
|
name: "check",
|
|
12848
12848
|
size: 24,
|
|
12849
12849
|
node: [["path", { d: "M20 6 9 17l-5-5", key: "1gmf2c" }]]
|
|
12850
|
-
},
|
|
12850
|
+
}, Cp = Zt(ix);
|
|
12851
12851
|
const sx = {
|
|
12852
12852
|
name: "chevron-down",
|
|
12853
12853
|
size: 24,
|
|
@@ -12942,11 +12942,11 @@ const xx = {
|
|
|
12942
12942
|
]
|
|
12943
12943
|
}, is = Zt(xx);
|
|
12944
12944
|
function cc(e) {
|
|
12945
|
-
return typeof e == "string" ? `'${e}'` : new
|
|
12945
|
+
return typeof e == "string" ? `'${e}'` : new Cx().serialize(e);
|
|
12946
12946
|
}
|
|
12947
|
-
const
|
|
12947
|
+
const kx = " _-,;:!?.'\"()[]{}@*/\\&#%`^+<=>|~$0123456789abcdefghijklmnopqrstuvwxyz", Ho = /* @__PURE__ */ (function() {
|
|
12948
12948
|
const e = /* @__PURE__ */ new Uint8Array(128);
|
|
12949
|
-
for (let t = 0; t < 69; t++) e[
|
|
12949
|
+
for (let t = 0; t < 69; t++) e[kx.charCodeAt(t)] = t + 1;
|
|
12950
12950
|
for (let t = 65; t <= 90; t++) e[t] = e[t + 32];
|
|
12951
12951
|
return e;
|
|
12952
12952
|
})();
|
|
@@ -12963,7 +12963,7 @@ function Vs(e, t) {
|
|
|
12963
12963
|
}
|
|
12964
12964
|
return e.length !== t.length ? e.length < t.length ? -1 : 1 : r;
|
|
12965
12965
|
}
|
|
12966
|
-
const
|
|
12966
|
+
const Cx = /* @__PURE__ */ (function() {
|
|
12967
12967
|
class e {
|
|
12968
12968
|
#e = /* @__PURE__ */ new Map();
|
|
12969
12969
|
compare(n, r) {
|
|
@@ -13170,7 +13170,7 @@ function an(e) {
|
|
|
13170
13170
|
const n = gt(e);
|
|
13171
13171
|
return (t = n?.$el) !== null && t !== void 0 ? t : n;
|
|
13172
13172
|
}
|
|
13173
|
-
function
|
|
13173
|
+
function Ci(...e) {
|
|
13174
13174
|
const t = (r, o, i, s) => (r.addEventListener(o, i, s), () => r.removeEventListener(o, i, s)), n = $(() => {
|
|
13175
13175
|
const r = Fs(gt(e[0])).filter((o) => o != null);
|
|
13176
13176
|
return r.every((o) => typeof o != "string") ? r : void 0;
|
|
@@ -13210,7 +13210,7 @@ function Vx(...e) {
|
|
|
13210
13210
|
let t, n, r = {};
|
|
13211
13211
|
e.length === 3 ? (t = e[0], n = e[1], r = e[2]) : e.length === 2 ? typeof e[1] == "object" ? (t = !0, n = e[0], r = e[1]) : (t = e[0], n = e[1]) : (t = !0, n = e[0]);
|
|
13212
13212
|
const { target: o = as, eventName: i = "keydown", passive: s = !1, dedupe: a = !1 } = r, l = Mx(t);
|
|
13213
|
-
return
|
|
13213
|
+
return Ci(o, i, (c) => {
|
|
13214
13214
|
c.repeat && gt(a) || l(c) && n(c);
|
|
13215
13215
|
}, s);
|
|
13216
13216
|
}
|
|
@@ -13614,7 +13614,7 @@ const Gx = Jx(), Yx = /* @__PURE__ */ Ix(() => {
|
|
|
13614
13614
|
padding: 0,
|
|
13615
13615
|
margin: 0
|
|
13616
13616
|
};
|
|
13617
|
-
v > 0 && (document.body.style.paddingRight = typeof y.padding == "number" ? `${y.padding}px` : String(y.padding), document.body.style.marginRight = typeof y.margin == "number" ? `${y.margin}px` : String(y.margin), document.documentElement.style.setProperty("--scrollbar-width", `${v}px`), document.body.style.overflow = "hidden"), pc && (i =
|
|
13617
|
+
v > 0 && (document.body.style.paddingRight = typeof y.padding == "number" ? `${y.padding}px` : String(y.padding), document.body.style.marginRight = typeof y.margin == "number" ? `${y.margin}px` : String(y.margin), document.documentElement.style.setProperty("--scrollbar-width", `${v}px`), document.body.style.overflow = "hidden"), pc && (i = Ci(document, "touchmove", (_) => Xx(_), { passive: !1 })), Be(() => {
|
|
13618
13618
|
r.value && (document.body.style.pointerEvents = "none", document.body.style.overflow = "hidden");
|
|
13619
13619
|
});
|
|
13620
13620
|
}, {
|
|
@@ -13736,7 +13736,7 @@ function _l(e) {
|
|
|
13736
13736
|
}).reduce((s, a) => (r.value[a] !== void 0 && (s[a] = r.value[a]), s), {});
|
|
13737
13737
|
});
|
|
13738
13738
|
}
|
|
13739
|
-
function
|
|
13739
|
+
function ek(e, t) {
|
|
13740
13740
|
const n = _l(e), r = t ? us(t) : {};
|
|
13741
13741
|
return $(() => ({
|
|
13742
13742
|
...n.value,
|
|
@@ -13747,14 +13747,14 @@ function cs() {
|
|
|
13747
13747
|
const e = It()?.vnode?.scopeId;
|
|
13748
13748
|
return e ? { [e]: "" } : {};
|
|
13749
13749
|
}
|
|
13750
|
-
var
|
|
13750
|
+
var tk = function(e) {
|
|
13751
13751
|
if (typeof document > "u")
|
|
13752
13752
|
return null;
|
|
13753
13753
|
var t = Array.isArray(e) ? e[0] : e;
|
|
13754
13754
|
return t.ownerDocument.body;
|
|
13755
13755
|
}, Sr = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), Go = {}, Us = 0, Pp = function(e) {
|
|
13756
13756
|
return e && (e.host || Pp(e.parentNode));
|
|
13757
|
-
},
|
|
13757
|
+
}, nk = function(e, t) {
|
|
13758
13758
|
return t.map(function(n) {
|
|
13759
13759
|
if (e.contains(n))
|
|
13760
13760
|
return n;
|
|
@@ -13763,8 +13763,8 @@ var tC = function(e) {
|
|
|
13763
13763
|
}).filter(function(n) {
|
|
13764
13764
|
return !!n;
|
|
13765
13765
|
});
|
|
13766
|
-
},
|
|
13767
|
-
var o =
|
|
13766
|
+
}, rk = function(e, t, n, r) {
|
|
13767
|
+
var o = nk(t, Array.isArray(e) ? e : [e]);
|
|
13768
13768
|
Go[n] || (Go[n] = /* @__PURE__ */ new WeakMap());
|
|
13769
13769
|
var i = Go[n], s = [], a = /* @__PURE__ */ new Set(), l = new Set(o), u = function(f) {
|
|
13770
13770
|
!f || a.has(f) || (a.add(f), u(f.parentNode));
|
|
@@ -13789,10 +13789,10 @@ var tC = function(e) {
|
|
|
13789
13789
|
Sr.set(f, d), i.set(f, p), d || (Jo.has(f) || f.removeAttribute(r), Jo.delete(f)), p || f.removeAttribute(n);
|
|
13790
13790
|
}), Us--, Us || (Sr = /* @__PURE__ */ new WeakMap(), Sr = /* @__PURE__ */ new WeakMap(), Jo = /* @__PURE__ */ new WeakMap(), Go = {});
|
|
13791
13791
|
};
|
|
13792
|
-
},
|
|
13792
|
+
}, ok = function(e, t, n) {
|
|
13793
13793
|
n === void 0 && (n = "data-aria-hidden");
|
|
13794
|
-
var r = Array.from(Array.isArray(e) ? e : [e]), o =
|
|
13795
|
-
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))),
|
|
13794
|
+
var r = Array.from(Array.isArray(e) ? e : [e]), o = tk(e);
|
|
13795
|
+
return o ? (r.push.apply(r, Array.from(o.querySelectorAll("[aria-live], script"))), rk(r, o, n, "aria-hidden")) : function() {
|
|
13796
13796
|
return null;
|
|
13797
13797
|
};
|
|
13798
13798
|
};
|
|
@@ -13805,7 +13805,7 @@ function Tp(e) {
|
|
|
13805
13805
|
r = !!n?.closest("[popover]:not(:popover-open)");
|
|
13806
13806
|
} catch {
|
|
13807
13807
|
}
|
|
13808
|
-
n && !r ? t =
|
|
13808
|
+
n && !r ? t = ok(n) : t && t();
|
|
13809
13809
|
}), $n(() => {
|
|
13810
13810
|
t && t();
|
|
13811
13811
|
});
|
|
@@ -13815,7 +13815,7 @@ function fr(e, t = "reka") {
|
|
|
13815
13815
|
const r = To({ useId: void 0 });
|
|
13816
13816
|
return r.useId ? n = r.useId() : n = Rr?.(), t ? `${t}-${n}` : n;
|
|
13817
13817
|
}
|
|
13818
|
-
function
|
|
13818
|
+
function ik(e) {
|
|
13819
13819
|
const t = /* @__PURE__ */ L(), n = $(() => t.value?.width ?? 0), r = $(() => t.value?.height ?? 0);
|
|
13820
13820
|
let o;
|
|
13821
13821
|
return dt(() => {
|
|
@@ -13844,7 +13844,7 @@ function iC(e) {
|
|
|
13844
13844
|
height: r
|
|
13845
13845
|
};
|
|
13846
13846
|
}
|
|
13847
|
-
function
|
|
13847
|
+
function sk(e, t) {
|
|
13848
13848
|
const n = /* @__PURE__ */ L(e);
|
|
13849
13849
|
function r(i) {
|
|
13850
13850
|
return t[n.value][i] ?? n.value;
|
|
@@ -13866,7 +13866,7 @@ function Ip(e) {
|
|
|
13866
13866
|
const s = ct(), a = i.map((d) => ({
|
|
13867
13867
|
...d,
|
|
13868
13868
|
textValue: d.value?.textValue ?? d.ref.textContent?.trim() ?? ""
|
|
13869
|
-
})), l = a.find((d) => d.ref === s), u = a.map((d) => d.textValue), c =
|
|
13869
|
+
})), l = a.find((d) => d.ref === s), u = a.map((d) => d.textValue), c = lk(u, t.value, l?.textValue), f = a.find((d) => d.textValue === c);
|
|
13870
13870
|
return f && f.ref.focus(), f?.ref;
|
|
13871
13871
|
}
|
|
13872
13872
|
},
|
|
@@ -13875,20 +13875,20 @@ function Ip(e) {
|
|
|
13875
13875
|
}
|
|
13876
13876
|
};
|
|
13877
13877
|
}
|
|
13878
|
-
function
|
|
13878
|
+
function ak(e, t) {
|
|
13879
13879
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
13880
13880
|
}
|
|
13881
|
-
function
|
|
13881
|
+
function lk(e, t, n) {
|
|
13882
13882
|
const o = t.length > 1 && Array.from(t).every((u) => u === t[0]) ? t[0] : t, i = n ? e.indexOf(n) : -1;
|
|
13883
|
-
let s =
|
|
13883
|
+
let s = ak(e, Math.max(i, 0));
|
|
13884
13884
|
o.length === 1 && (s = s.filter((u) => u !== n));
|
|
13885
13885
|
const l = s.find((u) => u.toLowerCase().startsWith(o.toLowerCase()));
|
|
13886
13886
|
return l !== n ? l : void 0;
|
|
13887
13887
|
}
|
|
13888
|
-
function
|
|
13888
|
+
function uk(e, t) {
|
|
13889
13889
|
const n = /* @__PURE__ */ L({}), r = /* @__PURE__ */ L("none"), o = /* @__PURE__ */ L(e), i = e.value ? "mounted" : "unmounted";
|
|
13890
13890
|
let s;
|
|
13891
|
-
const a = t.value?.ownerDocument.defaultView ?? as, { state: l, dispatch: u } =
|
|
13891
|
+
const a = t.value?.ownerDocument.defaultView ?? as, { state: l, dispatch: u } = sk(i, {
|
|
13892
13892
|
mounted: {
|
|
13893
13893
|
UNMOUNT: "unmounted",
|
|
13894
13894
|
ANIMATION_OUT: "unmountSuspended"
|
|
@@ -13950,7 +13950,7 @@ var Ro = /* @__PURE__ */ V({
|
|
|
13950
13950
|
},
|
|
13951
13951
|
slots: {},
|
|
13952
13952
|
setup(e, { slots: t, expose: n }) {
|
|
13953
|
-
const { present: r, forceMount: o } = /* @__PURE__ */ cn(e), i = /* @__PURE__ */ L(), { isPresent: s } =
|
|
13953
|
+
const { present: r, forceMount: o } = /* @__PURE__ */ cn(e), i = /* @__PURE__ */ L(), { isPresent: s } = uk(r, i);
|
|
13954
13954
|
n({ present: s });
|
|
13955
13955
|
let a = t.default({ present: s.value });
|
|
13956
13956
|
a = yl(a || []);
|
|
@@ -13990,7 +13990,7 @@ const Sa = /* @__PURE__ */ V({
|
|
|
13990
13990
|
return r.length === 1 ? a : (r[o] = a, r);
|
|
13991
13991
|
};
|
|
13992
13992
|
}
|
|
13993
|
-
}),
|
|
13993
|
+
}), ck = [
|
|
13994
13994
|
"area",
|
|
13995
13995
|
"img",
|
|
13996
13996
|
"input"
|
|
@@ -14009,7 +14009,7 @@ const Sa = /* @__PURE__ */ V({
|
|
|
14009
14009
|
},
|
|
14010
14010
|
setup(e, { attrs: t, slots: n }) {
|
|
14011
14011
|
const r = e.asChild ? "template" : e.as;
|
|
14012
|
-
return typeof r == "string" &&
|
|
14012
|
+
return typeof r == "string" && ck.includes(r) ? () => G(r, t) : r !== "template" ? () => G(e.as, t, { default: n.default }) : () => G(Sa, t, { default: n.default });
|
|
14013
14013
|
}
|
|
14014
14014
|
});
|
|
14015
14015
|
function xa() {
|
|
@@ -14019,8 +14019,8 @@ function xa() {
|
|
|
14019
14019
|
currentElement: t
|
|
14020
14020
|
};
|
|
14021
14021
|
}
|
|
14022
|
-
const [dn,
|
|
14023
|
-
var
|
|
14022
|
+
const [dn, dk] = /* @__PURE__ */ yt("DialogRoot");
|
|
14023
|
+
var fk = /* @__PURE__ */ V({
|
|
14024
14024
|
inheritAttrs: !1,
|
|
14025
14025
|
__name: "DialogRoot",
|
|
14026
14026
|
props: {
|
|
@@ -14051,7 +14051,7 @@ var fC = /* @__PURE__ */ V({
|
|
|
14051
14051
|
defaultValue: n.defaultOpen,
|
|
14052
14052
|
passive: n.open === void 0
|
|
14053
14053
|
}), i = /* @__PURE__ */ L(), s = /* @__PURE__ */ L(), { modal: a, unmountOnHide: l } = /* @__PURE__ */ cn(n);
|
|
14054
|
-
return
|
|
14054
|
+
return dk({
|
|
14055
14055
|
open: o,
|
|
14056
14056
|
modal: a,
|
|
14057
14057
|
unmountOnHide: l,
|
|
@@ -14074,7 +14074,7 @@ var fC = /* @__PURE__ */ V({
|
|
|
14074
14074
|
close: () => o.value = !1
|
|
14075
14075
|
});
|
|
14076
14076
|
}
|
|
14077
|
-
}),
|
|
14077
|
+
}), pk = fk, hk = /* @__PURE__ */ V({
|
|
14078
14078
|
__name: "DialogClose",
|
|
14079
14079
|
props: {
|
|
14080
14080
|
asChild: {
|
|
@@ -14091,7 +14091,7 @@ var fC = /* @__PURE__ */ V({
|
|
|
14091
14091
|
const t = e;
|
|
14092
14092
|
Ie();
|
|
14093
14093
|
const n = dn();
|
|
14094
|
-
return (r, o) => (
|
|
14094
|
+
return (r, o) => (C(), H(m(Ae), se(t, {
|
|
14095
14095
|
type: r.as === "button" ? "button" : void 0,
|
|
14096
14096
|
onClick: o[0] || (o[0] = (i) => m(n).onOpenChange(!1))
|
|
14097
14097
|
}), {
|
|
@@ -14099,15 +14099,15 @@ var fC = /* @__PURE__ */ V({
|
|
|
14099
14099
|
_: 3
|
|
14100
14100
|
}, 16, ["type"]));
|
|
14101
14101
|
}
|
|
14102
|
-
}),
|
|
14103
|
-
const
|
|
14102
|
+
}), mk = hk;
|
|
14103
|
+
const vk = "dismissableLayer.pointerDownOutside", gk = "dismissableLayer.focusOutside";
|
|
14104
14104
|
function Rp(e, t) {
|
|
14105
14105
|
if (!(t instanceof Element)) return !1;
|
|
14106
14106
|
if (e.contains(t)) return !0;
|
|
14107
14107
|
const n = t.closest("[data-dismissable-layer]"), r = e.dataset.dismissableLayer === "" ? e : e.querySelector("[data-dismissable-layer]"), o = Array.from(e.ownerDocument.querySelectorAll("[data-dismissable-layer]"));
|
|
14108
14108
|
return !!(n && (r === n || o.indexOf(r) < o.indexOf(n)));
|
|
14109
14109
|
}
|
|
14110
|
-
function
|
|
14110
|
+
function yk(e, t, n = !0) {
|
|
14111
14111
|
const r = t?.value?.ownerDocument ?? globalThis?.document, o = /* @__PURE__ */ L(!1), i = /* @__PURE__ */ L(() => {
|
|
14112
14112
|
});
|
|
14113
14113
|
return qt((s) => {
|
|
@@ -14121,7 +14121,7 @@ function yC(e, t, n = !0) {
|
|
|
14121
14121
|
}
|
|
14122
14122
|
if (u.target && !o.value) {
|
|
14123
14123
|
let p = function() {
|
|
14124
|
-
ss(
|
|
14124
|
+
ss(vk, e, d);
|
|
14125
14125
|
};
|
|
14126
14126
|
var f = p;
|
|
14127
14127
|
const d = { originalEvent: u };
|
|
@@ -14139,7 +14139,7 @@ function yC(e, t, n = !0) {
|
|
|
14139
14139
|
gt(n) && (o.value = !0);
|
|
14140
14140
|
} };
|
|
14141
14141
|
}
|
|
14142
|
-
function
|
|
14142
|
+
function bk(e, t, n = !0) {
|
|
14143
14143
|
const r = t?.value?.ownerDocument ?? globalThis?.document, o = /* @__PURE__ */ L(!1);
|
|
14144
14144
|
return qt((i) => {
|
|
14145
14145
|
if (!sn || !gt(n)) return;
|
|
@@ -14147,7 +14147,7 @@ function bC(e, t, n = !0) {
|
|
|
14147
14147
|
if (!t?.value) return;
|
|
14148
14148
|
await Be(), await Be();
|
|
14149
14149
|
const l = a.target;
|
|
14150
|
-
!t.value || !l || Rp(t.value, l) || a.target && !o.value && ss(
|
|
14150
|
+
!t.value || !l || Rp(t.value, l) || a.target && !o.value && ss(gk, e, { originalEvent: a });
|
|
14151
14151
|
};
|
|
14152
14152
|
r.addEventListener("focusin", s), i(() => r.removeEventListener("focusin", s));
|
|
14153
14153
|
}), {
|
|
@@ -14159,7 +14159,7 @@ function bC(e, t, n = !0) {
|
|
|
14159
14159
|
}
|
|
14160
14160
|
};
|
|
14161
14161
|
}
|
|
14162
|
-
var
|
|
14162
|
+
var _k = /* @__PURE__ */ V({
|
|
14163
14163
|
__name: "DismissableLayer",
|
|
14164
14164
|
props: {
|
|
14165
14165
|
disableOutsidePointerEvents: {
|
|
@@ -14196,10 +14196,10 @@ var _C = /* @__PURE__ */ V({
|
|
|
14196
14196
|
const a = $(() => i.value?.ownerDocument ?? globalThis.document), l = $(() => Ke.layersRoot), u = $(() => i.value ? Array.from(l.value).indexOf(i.value) : -1), c = $(() => Ke.layersWithOutsidePointerEventsDisabled.size > 0), f = $(() => {
|
|
14197
14197
|
const h = Array.from(l.value), [v] = [...Ke.layersWithOutsidePointerEventsDisabled].slice(-1), g = h.indexOf(v);
|
|
14198
14198
|
return u.value >= g;
|
|
14199
|
-
}), d =
|
|
14199
|
+
}), d = yk(async (h) => {
|
|
14200
14200
|
const v = [...Ke.branches].some((g) => g?.contains(h.target));
|
|
14201
14201
|
!n.present || !f.value || v || (r("pointerDownOutside", h), r("interactOutside", h), await Be(), h.defaultPrevented || r("dismiss"));
|
|
14202
|
-
}, i, () => n.present), p =
|
|
14202
|
+
}, i, () => n.present), p = bk((h) => {
|
|
14203
14203
|
const v = [...Ke.branches].some((g) => g?.contains(h.target));
|
|
14204
14204
|
!n.present || v || (r("focusOutside", h), r("interactOutside", h), h.defaultPrevented || r("dismiss"));
|
|
14205
14205
|
}, i);
|
|
@@ -14221,7 +14221,7 @@ var _C = /* @__PURE__ */ V({
|
|
|
14221
14221
|
h(() => {
|
|
14222
14222
|
i.value && (l.value.delete(i.value), Ke.layersWithOutsidePointerEventsDisabled.delete(i.value));
|
|
14223
14223
|
});
|
|
14224
|
-
}), (h, v) => (
|
|
14224
|
+
}), (h, v) => (C(), H(m(Ae), {
|
|
14225
14225
|
ref: m(o),
|
|
14226
14226
|
"as-child": h.asChild,
|
|
14227
14227
|
as: h.as,
|
|
@@ -14242,10 +14242,10 @@ var _C = /* @__PURE__ */ V({
|
|
|
14242
14242
|
"onPointerdownCapture"
|
|
14243
14243
|
]));
|
|
14244
14244
|
}
|
|
14245
|
-
}), Np =
|
|
14246
|
-
const
|
|
14247
|
-
function
|
|
14248
|
-
const e =
|
|
14245
|
+
}), Np = _k;
|
|
14246
|
+
const wk = /* @__PURE__ */ Ax(() => /* @__PURE__ */ L([]));
|
|
14247
|
+
function Sk() {
|
|
14248
|
+
const e = wk();
|
|
14249
14249
|
return {
|
|
14250
14250
|
add(t) {
|
|
14251
14251
|
const n = e.value[0];
|
|
@@ -14264,12 +14264,12 @@ const Zs = "focusScope.autoFocusOnMount", Ws = "focusScope.autoFocusOnUnmount",
|
|
|
14264
14264
|
bubbles: !1,
|
|
14265
14265
|
cancelable: !0
|
|
14266
14266
|
};
|
|
14267
|
-
function
|
|
14267
|
+
function xk(e, { select: t = !1 } = {}) {
|
|
14268
14268
|
const n = ct();
|
|
14269
14269
|
for (const r of e)
|
|
14270
14270
|
if (zn(r, { select: t }), ct() !== n) return !0;
|
|
14271
14271
|
}
|
|
14272
|
-
function
|
|
14272
|
+
function kk(e) {
|
|
14273
14273
|
const t = zp(e), n = _c(t, e), r = _c(t.reverse(), e);
|
|
14274
14274
|
return [n, r];
|
|
14275
14275
|
}
|
|
@@ -14282,9 +14282,9 @@ function zp(e) {
|
|
|
14282
14282
|
return t;
|
|
14283
14283
|
}
|
|
14284
14284
|
function _c(e, t) {
|
|
14285
|
-
for (const n of e) if (!
|
|
14285
|
+
for (const n of e) if (!Ck(n, { upTo: t })) return n;
|
|
14286
14286
|
}
|
|
14287
|
-
function
|
|
14287
|
+
function Ck(e, { upTo: t }) {
|
|
14288
14288
|
if (getComputedStyle(e).visibility === "hidden") return !0;
|
|
14289
14289
|
for (; e; ) {
|
|
14290
14290
|
if (t !== void 0 && e === t) return !1;
|
|
@@ -14293,16 +14293,16 @@ function kC(e, { upTo: t }) {
|
|
|
14293
14293
|
}
|
|
14294
14294
|
return !1;
|
|
14295
14295
|
}
|
|
14296
|
-
function
|
|
14296
|
+
function Ak(e) {
|
|
14297
14297
|
return e instanceof HTMLInputElement && "select" in e;
|
|
14298
14298
|
}
|
|
14299
14299
|
function zn(e, { select: t = !1 } = {}) {
|
|
14300
14300
|
if (e && e.focus) {
|
|
14301
14301
|
const n = ct();
|
|
14302
|
-
e.focus({ preventScroll: !0 }), e !== n &&
|
|
14302
|
+
e.focus({ preventScroll: !0 }), e !== n && Ak(e) && t && e.select();
|
|
14303
14303
|
}
|
|
14304
14304
|
}
|
|
14305
|
-
var
|
|
14305
|
+
var Ok = /* @__PURE__ */ V({
|
|
14306
14306
|
__name: "FocusScope",
|
|
14307
14307
|
props: {
|
|
14308
14308
|
loop: {
|
|
@@ -14334,7 +14334,7 @@ var OC = /* @__PURE__ */ V({
|
|
|
14334
14334
|
const n = e, r = t, { currentRef: o, currentElement: i } = Ie(), s = En();
|
|
14335
14335
|
if (s)
|
|
14336
14336
|
return s.focusScope(i, () => n.present, () => n.trapped, r), (d) => G(Ae, { ref: o, as: n.as, asChild: n.asChild, tabindex: "-1" }, d.$slots);
|
|
14337
|
-
const a = /* @__PURE__ */ L(null), l =
|
|
14337
|
+
const a = /* @__PURE__ */ L(null), l = Sk(), u = /* @__PURE__ */ An({
|
|
14338
14338
|
paused: !1,
|
|
14339
14339
|
pause() {
|
|
14340
14340
|
this.paused = !0;
|
|
@@ -14360,8 +14360,8 @@ var OC = /* @__PURE__ */ V({
|
|
|
14360
14360
|
function g(_) {
|
|
14361
14361
|
const S = a.value;
|
|
14362
14362
|
if (S === null || !_.some((A) => A.removedNodes.length > 0)) return;
|
|
14363
|
-
const
|
|
14364
|
-
if (
|
|
14363
|
+
const k = ct();
|
|
14364
|
+
if (k && p.contains(k)) return;
|
|
14365
14365
|
p.contains(S) || zn(p);
|
|
14366
14366
|
}
|
|
14367
14367
|
document.addEventListener("focusin", h), document.addEventListener("focusout", v);
|
|
@@ -14375,7 +14375,7 @@ var OC = /* @__PURE__ */ V({
|
|
|
14375
14375
|
});
|
|
14376
14376
|
function c(d, p) {
|
|
14377
14377
|
const h = new CustomEvent(Zs, bc), v = (g) => r("mountAutoFocus", g);
|
|
14378
|
-
d.addEventListener(Zs, v), d.dispatchEvent(h), d.removeEventListener(Zs, v), h.defaultPrevented || (
|
|
14378
|
+
d.addEventListener(Zs, v), d.dispatchEvent(h), d.removeEventListener(Zs, v), h.defaultPrevented || (xk(zp(d), { select: !0 }), ct() === p && zn(d));
|
|
14379
14379
|
}
|
|
14380
14380
|
qt(async (d) => {
|
|
14381
14381
|
const p = i.value;
|
|
@@ -14407,11 +14407,11 @@ var OC = /* @__PURE__ */ V({
|
|
|
14407
14407
|
if (!n.loop && !n.trapped || u.paused) return;
|
|
14408
14408
|
const p = d.key === "Tab" && !d.altKey && !d.ctrlKey && !d.metaKey, h = ct();
|
|
14409
14409
|
if (p && h) {
|
|
14410
|
-
const v = d.currentTarget, [g, y] =
|
|
14410
|
+
const v = d.currentTarget, [g, y] = kk(v);
|
|
14411
14411
|
g && y ? !d.shiftKey && h === y ? (d.preventDefault(), n.loop && zn(g, { select: !0 })) : d.shiftKey && h === g && (d.preventDefault(), n.loop && zn(y, { select: !0 })) : h === v && d.preventDefault();
|
|
14412
14412
|
}
|
|
14413
14413
|
}
|
|
14414
|
-
return (d, p) => (
|
|
14414
|
+
return (d, p) => (C(), H(m(Ae), {
|
|
14415
14415
|
ref_key: "currentRef",
|
|
14416
14416
|
ref: o,
|
|
14417
14417
|
tabindex: "-1",
|
|
@@ -14423,8 +14423,8 @@ var OC = /* @__PURE__ */ V({
|
|
|
14423
14423
|
_: 3
|
|
14424
14424
|
}, 8, ["as-child", "as"]));
|
|
14425
14425
|
}
|
|
14426
|
-
}), Dp =
|
|
14427
|
-
function $
|
|
14426
|
+
}), Dp = Ok;
|
|
14427
|
+
function $k(e) {
|
|
14428
14428
|
return e ? "open" : "closed";
|
|
14429
14429
|
}
|
|
14430
14430
|
function wc(e) {
|
|
@@ -14432,7 +14432,7 @@ function wc(e) {
|
|
|
14432
14432
|
for (const n of e)
|
|
14433
14433
|
if (n === t || (n.focus(), ct() !== t)) return;
|
|
14434
14434
|
}
|
|
14435
|
-
var
|
|
14435
|
+
var Ek = /* @__PURE__ */ V({
|
|
14436
14436
|
__name: "DialogContentImpl",
|
|
14437
14437
|
props: {
|
|
14438
14438
|
forceMount: {
|
|
@@ -14472,7 +14472,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14472
14472
|
const n = e, r = t, o = dn(), i = En(), { forwardRef: s, currentElement: a } = Ie();
|
|
14473
14473
|
return o.titleId ||= fr(void 0, "reka-dialog-title"), o.descriptionId ||= fr(void 0, "reka-dialog-description"), dt(() => {
|
|
14474
14474
|
o.contentElement = a, ct() !== document.body && (!i || i.canFocus()) && (o.triggerElement.value = ct());
|
|
14475
|
-
}), (l, u) => (
|
|
14475
|
+
}), (l, u) => (C(), H(m(Dp), {
|
|
14476
14476
|
"as-child": "",
|
|
14477
14477
|
loop: "",
|
|
14478
14478
|
trapped: n.trapFocus,
|
|
@@ -14490,7 +14490,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14490
14490
|
role: "dialog",
|
|
14491
14491
|
"aria-describedby": m(o).descriptionId,
|
|
14492
14492
|
"aria-labelledby": m(o).titleId,
|
|
14493
|
-
"data-state": m($
|
|
14493
|
+
"data-state": m($k)(m(o).open.value)
|
|
14494
14494
|
}, l.$attrs, {
|
|
14495
14495
|
onDismiss: u[0] || (u[0] = (c) => m(o).onOpenChange(!1)),
|
|
14496
14496
|
onEscapeKeyDown: u[1] || (u[1] = (c) => r("escapeKeyDown", c)),
|
|
@@ -14513,7 +14513,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14513
14513
|
_: 3
|
|
14514
14514
|
}, 8, ["trapped", "present"]));
|
|
14515
14515
|
}
|
|
14516
|
-
}), Mp =
|
|
14516
|
+
}), Mp = Ek, Pk = /* @__PURE__ */ V({
|
|
14517
14517
|
__name: "DialogContentModal",
|
|
14518
14518
|
props: {
|
|
14519
14519
|
forceMount: {
|
|
@@ -14559,7 +14559,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14559
14559
|
});
|
|
14560
14560
|
return pe(() => n.present, (f, d) => {
|
|
14561
14561
|
!f && d && (i ? i.restoreFocus(o.triggerElement.value) : o.triggerElement.value?.focus());
|
|
14562
|
-
}), (f, d) => (
|
|
14562
|
+
}), (f, d) => (C(), H(Mp, se({
|
|
14563
14563
|
...c.value,
|
|
14564
14564
|
...m(s)
|
|
14565
14565
|
}, {
|
|
@@ -14586,7 +14586,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14586
14586
|
"disable-outside-pointer-events"
|
|
14587
14587
|
]));
|
|
14588
14588
|
}
|
|
14589
|
-
}),
|
|
14589
|
+
}), Tk = Pk, Ik = /* @__PURE__ */ V({
|
|
14590
14590
|
__name: "DialogContentNonModal",
|
|
14591
14591
|
props: {
|
|
14592
14592
|
forceMount: {
|
|
@@ -14631,7 +14631,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14631
14631
|
});
|
|
14632
14632
|
return pe(() => n.present, (u, c) => {
|
|
14633
14633
|
!u && c && (s.value || i.triggerElement.value?.focus(), s.value = !1, a.value = !1);
|
|
14634
|
-
}), (u, c) => (
|
|
14634
|
+
}), (u, c) => (C(), H(Mp, se({
|
|
14635
14635
|
...l.value,
|
|
14636
14636
|
...m(o)
|
|
14637
14637
|
}, {
|
|
@@ -14651,7 +14651,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14651
14651
|
_: 3
|
|
14652
14652
|
}, 16, ["present"]));
|
|
14653
14653
|
}
|
|
14654
|
-
}),
|
|
14654
|
+
}), Rk = Ik, Nk = /* @__PURE__ */ V({
|
|
14655
14655
|
__name: "DialogContent",
|
|
14656
14656
|
props: {
|
|
14657
14657
|
forceMount: {
|
|
@@ -14682,11 +14682,11 @@ var EC = /* @__PURE__ */ V({
|
|
|
14682
14682
|
],
|
|
14683
14683
|
setup(e, { emit: t }) {
|
|
14684
14684
|
const n = e, r = t, o = dn(), i = us(r), { forwardRef: s } = Ie(), a = $(() => n.forceMount || !o.unmountOnHide.value);
|
|
14685
|
-
return (l, u) => (
|
|
14685
|
+
return (l, u) => (C(), H(m(Ro), {
|
|
14686
14686
|
present: m(o).open.value,
|
|
14687
14687
|
"force-mount": a.value
|
|
14688
14688
|
}, {
|
|
14689
|
-
default: U(({ present: c }) => [m(o).modal.value ? Ir((
|
|
14689
|
+
default: U(({ present: c }) => [m(o).modal.value ? Ir((C(), H(Tk, se({
|
|
14690
14690
|
key: 0,
|
|
14691
14691
|
ref: m(s),
|
|
14692
14692
|
present: a.value ? c : !0
|
|
@@ -14697,7 +14697,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14697
14697
|
}), {
|
|
14698
14698
|
default: U(() => [B(l.$slots, "default")]),
|
|
14699
14699
|
_: 2
|
|
14700
|
-
}, 1040, ["present"])), [[_o, l.forceMount || m(o).unmountOnHide.value || c]]) : Ir((
|
|
14700
|
+
}, 1040, ["present"])), [[_o, l.forceMount || m(o).unmountOnHide.value || c]]) : Ir((C(), H(Rk, se({
|
|
14701
14701
|
key: 1,
|
|
14702
14702
|
ref: m(s),
|
|
14703
14703
|
present: a.value ? c : !0
|
|
@@ -14712,7 +14712,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14712
14712
|
_: 3
|
|
14713
14713
|
}, 8, ["present", "force-mount"]));
|
|
14714
14714
|
}
|
|
14715
|
-
}),
|
|
14715
|
+
}), zk = Nk, Dk = /* @__PURE__ */ V({
|
|
14716
14716
|
__name: "DialogDescription",
|
|
14717
14717
|
props: {
|
|
14718
14718
|
asChild: {
|
|
@@ -14729,12 +14729,12 @@ var EC = /* @__PURE__ */ V({
|
|
|
14729
14729
|
const t = e;
|
|
14730
14730
|
Ie();
|
|
14731
14731
|
const n = dn();
|
|
14732
|
-
return (r, o) => (
|
|
14732
|
+
return (r, o) => (C(), H(m(Ae), se(t, { id: m(n).descriptionId }), {
|
|
14733
14733
|
default: U(() => [B(r.$slots, "default")]),
|
|
14734
14734
|
_: 3
|
|
14735
14735
|
}, 16, ["id"]));
|
|
14736
14736
|
}
|
|
14737
|
-
}),
|
|
14737
|
+
}), Mk = Dk, Vk = /* @__PURE__ */ V({
|
|
14738
14738
|
__name: "DialogOverlayImpl",
|
|
14739
14739
|
props: {
|
|
14740
14740
|
asChild: {
|
|
@@ -14753,7 +14753,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14753
14753
|
},
|
|
14754
14754
|
setup(e) {
|
|
14755
14755
|
const t = e, n = dn(), r = $p(t.present);
|
|
14756
|
-
return pe(() => t.present, (o) => r.value = o), Ie(), (o, i) => (
|
|
14756
|
+
return pe(() => t.present, (o) => r.value = o), Ie(), (o, i) => (C(), H(m(Ae), {
|
|
14757
14757
|
as: o.as,
|
|
14758
14758
|
"as-child": o.asChild,
|
|
14759
14759
|
"data-state": m(n).open.value ? "open" : "closed",
|
|
@@ -14773,7 +14773,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14773
14773
|
"data-state"
|
|
14774
14774
|
]));
|
|
14775
14775
|
}
|
|
14776
|
-
}),
|
|
14776
|
+
}), Fk = Vk, jk = /* @__PURE__ */ V({
|
|
14777
14777
|
__name: "DialogOverlay",
|
|
14778
14778
|
props: {
|
|
14779
14779
|
forceMount: {
|
|
@@ -14791,12 +14791,12 @@ var EC = /* @__PURE__ */ V({
|
|
|
14791
14791
|
},
|
|
14792
14792
|
setup(e) {
|
|
14793
14793
|
const t = e, n = dn(), { forwardRef: r } = Ie(), o = $(() => t.forceMount || !n.unmountOnHide.value);
|
|
14794
|
-
return (i, s) => m(n)?.modal.value ? (
|
|
14794
|
+
return (i, s) => m(n)?.modal.value ? (C(), H(m(Ro), {
|
|
14795
14795
|
key: 0,
|
|
14796
14796
|
present: m(n).open.value,
|
|
14797
14797
|
"force-mount": o.value
|
|
14798
14798
|
}, {
|
|
14799
|
-
default: U(({ present: a }) => [Ir(Y(
|
|
14799
|
+
default: U(({ present: a }) => [Ir(Y(Fk, se(i.$attrs, {
|
|
14800
14800
|
ref: m(r),
|
|
14801
14801
|
as: i.as,
|
|
14802
14802
|
"as-child": i.asChild,
|
|
@@ -14812,7 +14812,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14812
14812
|
_: 3
|
|
14813
14813
|
}, 8, ["present", "force-mount"])) : Q("v-if", !0);
|
|
14814
14814
|
}
|
|
14815
|
-
}),
|
|
14815
|
+
}), Lk = jk, qk = /* @__PURE__ */ V({
|
|
14816
14816
|
__name: "Teleport",
|
|
14817
14817
|
props: {
|
|
14818
14818
|
to: {
|
|
@@ -14834,7 +14834,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14834
14834
|
},
|
|
14835
14835
|
setup(e) {
|
|
14836
14836
|
const t = e, n = To({}), r = $(() => t.to ?? n.teleportTo?.value ?? "body"), o = /* @__PURE__ */ Ap();
|
|
14837
|
-
return (i, s) => m(o) || i.forceMount ? (
|
|
14837
|
+
return (i, s) => m(o) || i.forceMount ? (C(), H(kd, {
|
|
14838
14838
|
key: 0,
|
|
14839
14839
|
to: r.value,
|
|
14840
14840
|
disabled: i.disabled,
|
|
@@ -14845,7 +14845,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14845
14845
|
"defer"
|
|
14846
14846
|
])) : Q("v-if", !0);
|
|
14847
14847
|
}
|
|
14848
|
-
}), Vp =
|
|
14848
|
+
}), Vp = qk, Bk = /* @__PURE__ */ V({
|
|
14849
14849
|
__name: "DialogPortal",
|
|
14850
14850
|
props: {
|
|
14851
14851
|
to: {
|
|
@@ -14867,12 +14867,12 @@ var EC = /* @__PURE__ */ V({
|
|
|
14867
14867
|
},
|
|
14868
14868
|
setup(e) {
|
|
14869
14869
|
const t = e;
|
|
14870
|
-
return (n, r) => (
|
|
14870
|
+
return (n, r) => (C(), H(m(Vp), Fa(Yi(t)), {
|
|
14871
14871
|
default: U(() => [B(n.$slots, "default")]),
|
|
14872
14872
|
_: 3
|
|
14873
14873
|
}, 16));
|
|
14874
14874
|
}
|
|
14875
|
-
}),
|
|
14875
|
+
}), Uk = Bk, Zk = /* @__PURE__ */ V({
|
|
14876
14876
|
__name: "DialogTitle",
|
|
14877
14877
|
props: {
|
|
14878
14878
|
asChild: {
|
|
@@ -14887,12 +14887,12 @@ var EC = /* @__PURE__ */ V({
|
|
|
14887
14887
|
},
|
|
14888
14888
|
setup(e) {
|
|
14889
14889
|
const t = e, n = dn();
|
|
14890
|
-
return Ie(), (r, o) => (
|
|
14890
|
+
return Ie(), (r, o) => (C(), H(m(Ae), se(t, { id: m(n).titleId }), {
|
|
14891
14891
|
default: U(() => [B(r.$slots, "default")]),
|
|
14892
14892
|
_: 3
|
|
14893
14893
|
}, 16, ["id"]));
|
|
14894
14894
|
}
|
|
14895
|
-
}),
|
|
14895
|
+
}), Wk = Zk, Kk = /* @__PURE__ */ V({
|
|
14896
14896
|
__name: "DialogTrigger",
|
|
14897
14897
|
props: {
|
|
14898
14898
|
asChild: {
|
|
@@ -14909,7 +14909,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14909
14909
|
const t = e, n = dn(), { forwardRef: r, currentElement: o } = Ie();
|
|
14910
14910
|
return n.contentId ||= fr(void 0, "reka-dialog-content"), dt(() => {
|
|
14911
14911
|
n.triggerElement.value = o.value;
|
|
14912
|
-
}), (i, s) => (
|
|
14912
|
+
}), (i, s) => (C(), H(m(Ae), se(t, {
|
|
14913
14913
|
ref: m(r),
|
|
14914
14914
|
type: i.as === "button" ? "button" : void 0,
|
|
14915
14915
|
"aria-haspopup": "dialog",
|
|
@@ -14928,7 +14928,7 @@ var EC = /* @__PURE__ */ V({
|
|
|
14928
14928
|
"onClick"
|
|
14929
14929
|
]));
|
|
14930
14930
|
}
|
|
14931
|
-
}),
|
|
14931
|
+
}), Hk = Kk;
|
|
14932
14932
|
const Sc = "data-reka-collection-item";
|
|
14933
14933
|
function vr(e = {}) {
|
|
14934
14934
|
const { key: t = "", isProvider: n = !1 } = e, r = `${t}CollectionProvider`;
|
|
@@ -14988,7 +14988,7 @@ function vr(e = {}) {
|
|
|
14988
14988
|
CollectionItem: l
|
|
14989
14989
|
};
|
|
14990
14990
|
}
|
|
14991
|
-
var
|
|
14991
|
+
var Jk = /* @__PURE__ */ V({
|
|
14992
14992
|
__name: "VisuallyHidden",
|
|
14993
14993
|
props: {
|
|
14994
14994
|
feature: {
|
|
@@ -15007,7 +15007,7 @@ var JC = /* @__PURE__ */ V({
|
|
|
15007
15007
|
}
|
|
15008
15008
|
},
|
|
15009
15009
|
setup(e) {
|
|
15010
|
-
return (t, n) => (
|
|
15010
|
+
return (t, n) => (C(), H(m(Ae), {
|
|
15011
15011
|
as: t.as,
|
|
15012
15012
|
"as-child": t.asChild,
|
|
15013
15013
|
"aria-hidden": t.feature === "focusable" || t.feature === "fully-hidden" ? "true" : void 0,
|
|
@@ -15039,7 +15039,7 @@ var JC = /* @__PURE__ */ V({
|
|
|
15039
15039
|
"tabindex"
|
|
15040
15040
|
]));
|
|
15041
15041
|
}
|
|
15042
|
-
}), Fp =
|
|
15042
|
+
}), Fp = Jk, Gk = /* @__PURE__ */ V({
|
|
15043
15043
|
inheritAttrs: !1,
|
|
15044
15044
|
__name: "VisuallyHiddenInputBubble",
|
|
15045
15045
|
props: {
|
|
@@ -15079,7 +15079,7 @@ var JC = /* @__PURE__ */ V({
|
|
|
15079
15079
|
const f = new Event("input", { bubbles: !0 }), d = new Event("change", { bubbles: !0 });
|
|
15080
15080
|
c.call(a, i), a.dispatchEvent(f), a.dispatchEvent(d);
|
|
15081
15081
|
}
|
|
15082
|
-
}), (i, s) => (
|
|
15082
|
+
}), (i, s) => (C(), H(Fp, se({
|
|
15083
15083
|
ref_key: "primitiveElement",
|
|
15084
15084
|
ref: n
|
|
15085
15085
|
}, {
|
|
@@ -15087,7 +15087,7 @@ var JC = /* @__PURE__ */ V({
|
|
|
15087
15087
|
...i.$attrs
|
|
15088
15088
|
}, { as: "input" }), null, 16));
|
|
15089
15089
|
}
|
|
15090
|
-
}), xc =
|
|
15090
|
+
}), xc = Gk, Yk = /* @__PURE__ */ V({
|
|
15091
15091
|
inheritAttrs: !1,
|
|
15092
15092
|
__name: "VisuallyHiddenInput",
|
|
15093
15093
|
props: {
|
|
@@ -15132,13 +15132,13 @@ var JC = /* @__PURE__ */ V({
|
|
|
15132
15132
|
name: `${t.name}[${o}]`,
|
|
15133
15133
|
value: i
|
|
15134
15134
|
})) : []);
|
|
15135
|
-
return (o, i) => (
|
|
15135
|
+
return (o, i) => (C(), I(xe, null, [Q(" We render single input if it's required "), n.value ? (C(), H(xc, se({ key: o.name }, {
|
|
15136
15136
|
...t,
|
|
15137
15137
|
...o.$attrs
|
|
15138
15138
|
}, {
|
|
15139
15139
|
name: o.name,
|
|
15140
15140
|
value: o.value
|
|
15141
|
-
}), null, 16, ["name", "value"])) : (
|
|
15141
|
+
}), null, 16, ["name", "value"])) : (C(!0), I(xe, { key: 1 }, kt(r.value, (s) => (C(), H(xc, se({ key: s.name }, { ref_for: !0 }, {
|
|
15142
15142
|
...t,
|
|
15143
15143
|
...o.$attrs
|
|
15144
15144
|
}, {
|
|
@@ -15146,11 +15146,11 @@ var JC = /* @__PURE__ */ V({
|
|
|
15146
15146
|
value: s.value
|
|
15147
15147
|
}), null, 16, ["name", "value"]))), 128))], 2112));
|
|
15148
15148
|
}
|
|
15149
|
-
}), ds =
|
|
15150
|
-
const
|
|
15149
|
+
}), ds = Yk;
|
|
15150
|
+
const Xk = "rovingFocusGroup.onEntryFocus", Qk = {
|
|
15151
15151
|
bubbles: !1,
|
|
15152
15152
|
cancelable: !0
|
|
15153
|
-
},
|
|
15153
|
+
}, eC = {
|
|
15154
15154
|
ArrowLeft: "prev",
|
|
15155
15155
|
ArrowUp: "prev",
|
|
15156
15156
|
ArrowRight: "next",
|
|
@@ -15160,34 +15160,34 @@ const XC = "rovingFocusGroup.onEntryFocus", QC = {
|
|
|
15160
15160
|
PageDown: "last",
|
|
15161
15161
|
End: "last"
|
|
15162
15162
|
};
|
|
15163
|
-
function
|
|
15163
|
+
function tC(e, t) {
|
|
15164
15164
|
return t !== "rtl" ? e : e === "ArrowLeft" ? "ArrowRight" : e === "ArrowRight" ? "ArrowLeft" : e;
|
|
15165
15165
|
}
|
|
15166
|
-
function
|
|
15167
|
-
const r =
|
|
15166
|
+
function nC(e, t, n) {
|
|
15167
|
+
const r = tC(e.key, n);
|
|
15168
15168
|
if (!(t === "vertical" && ["ArrowLeft", "ArrowRight"].includes(r)) && !(t === "horizontal" && ["ArrowUp", "ArrowDown"].includes(r)))
|
|
15169
|
-
return
|
|
15169
|
+
return eC[r];
|
|
15170
15170
|
}
|
|
15171
15171
|
function jp(e, t = !1) {
|
|
15172
15172
|
const n = ct();
|
|
15173
15173
|
for (const r of e)
|
|
15174
15174
|
if (r === n || (r.focus({ preventScroll: t }), ct() !== n)) return;
|
|
15175
15175
|
}
|
|
15176
|
-
function
|
|
15176
|
+
function rC(e, t) {
|
|
15177
15177
|
return e.map((n, r) => e[(t + r) % e.length]);
|
|
15178
15178
|
}
|
|
15179
|
-
const [Lp,
|
|
15180
|
-
var
|
|
15179
|
+
const [Lp, oC] = /* @__PURE__ */ yt("PopperRoot");
|
|
15180
|
+
var iC = /* @__PURE__ */ V({
|
|
15181
15181
|
inheritAttrs: !1,
|
|
15182
15182
|
__name: "PopperRoot",
|
|
15183
15183
|
setup(e) {
|
|
15184
15184
|
const t = /* @__PURE__ */ L();
|
|
15185
|
-
return
|
|
15185
|
+
return oC({
|
|
15186
15186
|
anchor: t,
|
|
15187
15187
|
onAnchorChange: (n) => t.value = n
|
|
15188
15188
|
}), (n, r) => B(n.$slots, "default");
|
|
15189
15189
|
}
|
|
15190
|
-
}),
|
|
15190
|
+
}), sC = iC, aC = /* @__PURE__ */ V({
|
|
15191
15191
|
__name: "PopperAnchor",
|
|
15192
15192
|
props: {
|
|
15193
15193
|
reference: {
|
|
@@ -15207,7 +15207,7 @@ var ik = /* @__PURE__ */ V({
|
|
|
15207
15207
|
const t = e, { forwardRef: n, currentElement: r } = Ie(), o = Lp();
|
|
15208
15208
|
return wd(() => {
|
|
15209
15209
|
o.onAnchorChange(t.reference ?? r.value);
|
|
15210
|
-
}), (i, s) => (
|
|
15210
|
+
}), (i, s) => (C(), H(m(Ae), {
|
|
15211
15211
|
ref: m(n),
|
|
15212
15212
|
as: i.as,
|
|
15213
15213
|
"as-child": i.asChild
|
|
@@ -15216,16 +15216,16 @@ var ik = /* @__PURE__ */ V({
|
|
|
15216
15216
|
_: 3
|
|
15217
15217
|
}, 8, ["as", "as-child"]));
|
|
15218
15218
|
}
|
|
15219
|
-
}),
|
|
15220
|
-
function
|
|
15219
|
+
}), lC = aC;
|
|
15220
|
+
function uC(e) {
|
|
15221
15221
|
return e !== null;
|
|
15222
15222
|
}
|
|
15223
|
-
function
|
|
15223
|
+
function cC(e) {
|
|
15224
15224
|
return {
|
|
15225
15225
|
name: "transformOrigin",
|
|
15226
15226
|
options: e,
|
|
15227
15227
|
fn(t) {
|
|
15228
|
-
const { placement: n, rects: r, middlewareData: o } = t, s = o.arrow?.centerOffset !== 0, a = s ? 0 : e.arrowWidth, l = s ? 0 : e.arrowHeight, [u, c] =
|
|
15228
|
+
const { placement: n, rects: r, middlewareData: o } = t, s = o.arrow?.centerOffset !== 0, a = s ? 0 : e.arrowWidth, l = s ? 0 : e.arrowHeight, [u, c] = ka(n), f = {
|
|
15229
15229
|
start: e.dir === "rtl" ? "100%" : "0%",
|
|
15230
15230
|
center: "50%",
|
|
15231
15231
|
end: e.dir === "rtl" ? "0%" : "100%"
|
|
@@ -15242,14 +15242,14 @@ function ck(e) {
|
|
|
15242
15242
|
}
|
|
15243
15243
|
};
|
|
15244
15244
|
}
|
|
15245
|
-
function
|
|
15245
|
+
function ka(e) {
|
|
15246
15246
|
const [t, n = "center"] = e.split("-");
|
|
15247
15247
|
return [t, n];
|
|
15248
15248
|
}
|
|
15249
|
-
const
|
|
15249
|
+
const dC = ["top", "right", "bottom", "left"], Un = Math.min, _n = Math.max, Oi = Math.round, Xo = Math.floor, wn = (e) => ({
|
|
15250
15250
|
x: e,
|
|
15251
15251
|
y: e
|
|
15252
|
-
}),
|
|
15252
|
+
}), fC = {
|
|
15253
15253
|
left: "right",
|
|
15254
15254
|
right: "left",
|
|
15255
15255
|
bottom: "top",
|
|
@@ -15258,7 +15258,7 @@ const dk = ["top", "right", "bottom", "left"], Un = Math.min, _n = Math.max, Oi
|
|
|
15258
15258
|
function qp(e, t, n) {
|
|
15259
15259
|
return _n(e, Un(t, n));
|
|
15260
15260
|
}
|
|
15261
|
-
function
|
|
15261
|
+
function Cn(e, t) {
|
|
15262
15262
|
return typeof e == "function" ? e(t) : e;
|
|
15263
15263
|
}
|
|
15264
15264
|
function Zn(e) {
|
|
@@ -15280,42 +15280,42 @@ function en(e) {
|
|
|
15280
15280
|
function xl(e) {
|
|
15281
15281
|
return wl(en(e));
|
|
15282
15282
|
}
|
|
15283
|
-
function
|
|
15283
|
+
function pC(e, t, n) {
|
|
15284
15284
|
n === void 0 && (n = !1);
|
|
15285
15285
|
const r = Wr(e), o = xl(e), i = Sl(o);
|
|
15286
15286
|
let s = o === "x" ? r === (n ? "end" : "start") ? "right" : "left" : r === "start" ? "bottom" : "top";
|
|
15287
15287
|
return t.reference[i] > t.floating[i] && (s = $i(s)), [s, $i(s)];
|
|
15288
15288
|
}
|
|
15289
|
-
function
|
|
15289
|
+
function hC(e) {
|
|
15290
15290
|
const t = $i(e);
|
|
15291
|
-
return [
|
|
15291
|
+
return [Ca(e), t, Ca(t)];
|
|
15292
15292
|
}
|
|
15293
|
-
function
|
|
15293
|
+
function Ca(e) {
|
|
15294
15294
|
return e.includes("start") ? e.replace("start", "end") : e.replace("end", "start");
|
|
15295
15295
|
}
|
|
15296
|
-
const
|
|
15297
|
-
function
|
|
15296
|
+
const kc = ["left", "right"], Cc = ["right", "left"], mC = ["top", "bottom"], vC = ["bottom", "top"];
|
|
15297
|
+
function gC(e, t, n) {
|
|
15298
15298
|
switch (e) {
|
|
15299
15299
|
case "top":
|
|
15300
15300
|
case "bottom":
|
|
15301
|
-
return n ? t ?
|
|
15301
|
+
return n ? t ? Cc : kc : t ? kc : Cc;
|
|
15302
15302
|
case "left":
|
|
15303
15303
|
case "right":
|
|
15304
|
-
return t ?
|
|
15304
|
+
return t ? mC : vC;
|
|
15305
15305
|
default:
|
|
15306
15306
|
return [];
|
|
15307
15307
|
}
|
|
15308
15308
|
}
|
|
15309
|
-
function
|
|
15309
|
+
function yC(e, t, n, r) {
|
|
15310
15310
|
const o = Wr(e);
|
|
15311
|
-
let i =
|
|
15312
|
-
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(
|
|
15311
|
+
let i = gC(Zn(e), n === "start", r);
|
|
15312
|
+
return o && (i = i.map((s) => s + "-" + o), t && (i = i.concat(i.map(Ca)))), i;
|
|
15313
15313
|
}
|
|
15314
15314
|
function $i(e) {
|
|
15315
15315
|
const t = Zn(e);
|
|
15316
|
-
return
|
|
15316
|
+
return fC[t] + e.slice(t.length);
|
|
15317
15317
|
}
|
|
15318
|
-
function
|
|
15318
|
+
function bC(e) {
|
|
15319
15319
|
var t, n, r, o;
|
|
15320
15320
|
return {
|
|
15321
15321
|
top: (t = e.top) != null ? t : 0,
|
|
@@ -15325,7 +15325,7 @@ function bk(e) {
|
|
|
15325
15325
|
};
|
|
15326
15326
|
}
|
|
15327
15327
|
function Bp(e) {
|
|
15328
|
-
return typeof e != "number" ?
|
|
15328
|
+
return typeof e != "number" ? bC(e) : {
|
|
15329
15329
|
top: e,
|
|
15330
15330
|
right: e,
|
|
15331
15331
|
bottom: e,
|
|
@@ -15391,7 +15391,7 @@ function Ac(e, t, n) {
|
|
|
15391
15391
|
const h = Wr(t);
|
|
15392
15392
|
return h && (p[s] += d * (h === "end" ? 1 : -1) * (n && u ? -1 : 1)), p;
|
|
15393
15393
|
}
|
|
15394
|
-
async function
|
|
15394
|
+
async function _C(e, t) {
|
|
15395
15395
|
var n;
|
|
15396
15396
|
t === void 0 && (t = {});
|
|
15397
15397
|
const {
|
|
@@ -15407,7 +15407,7 @@ async function _k(e, t) {
|
|
|
15407
15407
|
elementContext: f = "floating",
|
|
15408
15408
|
altBoundary: d = !1,
|
|
15409
15409
|
padding: p = 0
|
|
15410
|
-
} =
|
|
15410
|
+
} = Cn(t, e), h = Bp(p), g = a[d ? f === "floating" ? "reference" : "floating" : f], y = Ei(await i.getClippingRect({
|
|
15411
15411
|
element: (n = await (i.isElement == null ? void 0 : i.isElement(g))) == null || n ? g : g.contextElement || await (i.getDocumentElement == null ? void 0 : i.getDocumentElement(a.floating)),
|
|
15412
15412
|
boundary: u,
|
|
15413
15413
|
rootBoundary: c,
|
|
@@ -15420,20 +15420,20 @@ async function _k(e, t) {
|
|
|
15420
15420
|
} : s.reference, S = await (i.getOffsetParent == null ? void 0 : i.getOffsetParent(a.floating)), w = await (i.isElement == null ? void 0 : i.isElement(S)) && await (i.getScale == null ? void 0 : i.getScale(S)) || {
|
|
15421
15421
|
x: 1,
|
|
15422
15422
|
y: 1
|
|
15423
|
-
},
|
|
15423
|
+
}, k = Ei(i.convertOffsetParentRelativeRectToViewportRelativeRect ? await i.convertOffsetParentRelativeRectToViewportRelativeRect({
|
|
15424
15424
|
elements: a,
|
|
15425
15425
|
rect: _,
|
|
15426
15426
|
offsetParent: S,
|
|
15427
15427
|
strategy: l
|
|
15428
15428
|
}) : _);
|
|
15429
15429
|
return {
|
|
15430
|
-
top: (y.top -
|
|
15431
|
-
bottom: (
|
|
15432
|
-
left: (y.left -
|
|
15433
|
-
right: (
|
|
15430
|
+
top: (y.top - k.top + h.top) / w.y,
|
|
15431
|
+
bottom: (k.bottom - y.bottom + h.bottom) / w.y,
|
|
15432
|
+
left: (y.left - k.left + h.left) / w.x,
|
|
15433
|
+
right: (k.right - y.right + h.right) / w.x
|
|
15434
15434
|
};
|
|
15435
15435
|
}
|
|
15436
|
-
const
|
|
15436
|
+
const wC = 50, SC = async (e, t, n) => {
|
|
15437
15437
|
const {
|
|
15438
15438
|
placement: r = "bottom",
|
|
15439
15439
|
strategy: o = "absolute",
|
|
@@ -15441,7 +15441,7 @@ const wk = 50, Sk = async (e, t, n) => {
|
|
|
15441
15441
|
platform: s
|
|
15442
15442
|
} = n, a = s.detectOverflow ? s : {
|
|
15443
15443
|
...s,
|
|
15444
|
-
detectOverflow:
|
|
15444
|
+
detectOverflow: _C
|
|
15445
15445
|
}, l = await (s.isRTL == null ? void 0 : s.isRTL(t));
|
|
15446
15446
|
let u = await s.getElementRects({
|
|
15447
15447
|
reference: e,
|
|
@@ -15462,7 +15462,7 @@ const wk = 50, Sk = async (e, t, n) => {
|
|
|
15462
15462
|
} = g, {
|
|
15463
15463
|
x: S,
|
|
15464
15464
|
y: w,
|
|
15465
|
-
data:
|
|
15465
|
+
data: k,
|
|
15466
15466
|
reset: O
|
|
15467
15467
|
} = await _({
|
|
15468
15468
|
x: c,
|
|
@@ -15480,8 +15480,8 @@ const wk = 50, Sk = async (e, t, n) => {
|
|
|
15480
15480
|
});
|
|
15481
15481
|
c = S ?? c, f = w ?? f, h[y] = {
|
|
15482
15482
|
...h[y],
|
|
15483
|
-
...
|
|
15484
|
-
}, O && p <
|
|
15483
|
+
...k
|
|
15484
|
+
}, O && p < wC && (p++, typeof O == "object" && (O.placement && (d = O.placement), O.rects && (u = O.rects === !0 ? await s.getElementRects({
|
|
15485
15485
|
reference: e,
|
|
15486
15486
|
floating: t,
|
|
15487
15487
|
strategy: o
|
|
@@ -15497,7 +15497,7 @@ const wk = 50, Sk = async (e, t, n) => {
|
|
|
15497
15497
|
strategy: o,
|
|
15498
15498
|
middlewareData: h
|
|
15499
15499
|
};
|
|
15500
|
-
},
|
|
15500
|
+
}, xC = (e) => ({
|
|
15501
15501
|
name: "arrow",
|
|
15502
15502
|
options: e,
|
|
15503
15503
|
async fn(t) {
|
|
@@ -15512,16 +15512,16 @@ const wk = 50, Sk = async (e, t, n) => {
|
|
|
15512
15512
|
} = t, {
|
|
15513
15513
|
element: u,
|
|
15514
15514
|
padding: c = 0
|
|
15515
|
-
} =
|
|
15515
|
+
} = Cn(e, t) || {};
|
|
15516
15516
|
if (u == null)
|
|
15517
15517
|
return {};
|
|
15518
15518
|
const f = Bp(c), d = {
|
|
15519
15519
|
x: n,
|
|
15520
15520
|
y: r
|
|
15521
|
-
}, p = xl(o), h = Sl(p), v = await s.getDimensions(u), g = p === "y", y = g ? "top" : "left", _ = g ? "bottom" : "right", S = g ? "clientHeight" : "clientWidth", w = i.reference[h] + i.reference[p] - d[p] - i.floating[h],
|
|
15521
|
+
}, p = xl(o), h = Sl(p), v = await s.getDimensions(u), g = p === "y", y = g ? "top" : "left", _ = g ? "bottom" : "right", S = g ? "clientHeight" : "clientWidth", w = i.reference[h] + i.reference[p] - d[p] - i.floating[h], k = d[p] - i.reference[p], O = await (s.getOffsetParent == null ? void 0 : s.getOffsetParent(u));
|
|
15522
15522
|
let A = O ? O[S] : 0;
|
|
15523
15523
|
(!A || !await (s.isElement == null ? void 0 : s.isElement(O))) && (A = a.floating[S] || i.floating[h]);
|
|
15524
|
-
const T = w / 2 -
|
|
15524
|
+
const T = w / 2 - k / 2, F = A / 2 - v[h] / 2 - 1, q = Un(f[y], F), ee = Un(f[_], F), _e = A - v[h] - ee, ye = A / 2 - v[h] / 2 + T, ce = qp(q, ye, _e), De = !l.arrow && Wr(o) != null && ye !== ce && i.reference[h] / 2 - (ye < q ? q : ee) - v[h] / 2 < 0, ve = De ? ye < q ? ye - q : ye - _e : 0;
|
|
15525
15525
|
return {
|
|
15526
15526
|
[p]: d[p] + ve,
|
|
15527
15527
|
data: {
|
|
@@ -15534,7 +15534,7 @@ const wk = 50, Sk = async (e, t, n) => {
|
|
|
15534
15534
|
reset: De
|
|
15535
15535
|
};
|
|
15536
15536
|
}
|
|
15537
|
-
}),
|
|
15537
|
+
}), kC = function(e) {
|
|
15538
15538
|
return e === void 0 && (e = {}), {
|
|
15539
15539
|
name: "flip",
|
|
15540
15540
|
options: e,
|
|
@@ -15555,15 +15555,15 @@ const wk = 50, Sk = async (e, t, n) => {
|
|
|
15555
15555
|
fallbackAxisSideDirection: h = "none",
|
|
15556
15556
|
flipAlignment: v = !0,
|
|
15557
15557
|
...g
|
|
15558
|
-
} =
|
|
15558
|
+
} = Cn(e, t);
|
|
15559
15559
|
if ((n = i.arrow) != null && n.alignmentOffset)
|
|
15560
15560
|
return {};
|
|
15561
|
-
const y = Zn(o), _ = en(a), S = Zn(a) === a, w = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)),
|
|
15562
|
-
!d && O &&
|
|
15563
|
-
const A = [a, ...
|
|
15561
|
+
const y = Zn(o), _ = en(a), S = Zn(a) === a, w = await (l.isRTL == null ? void 0 : l.isRTL(u.floating)), k = d || (S || !v ? [$i(a)] : hC(a)), O = h !== "none";
|
|
15562
|
+
!d && O && k.push(...yC(a, v, h, w));
|
|
15563
|
+
const A = [a, ...k], T = await l.detectOverflow(t, g), F = [];
|
|
15564
15564
|
let q = ((r = i.flip) == null ? void 0 : r.overflows) || [];
|
|
15565
15565
|
if (c && F.push(T[y]), f) {
|
|
15566
|
-
const ce =
|
|
15566
|
+
const ce = pC(o, s, w);
|
|
15567
15567
|
F.push(T[ce[0]], T[ce[1]]);
|
|
15568
15568
|
}
|
|
15569
15569
|
if (q = [...q, {
|
|
@@ -15625,9 +15625,9 @@ function Oc(e, t) {
|
|
|
15625
15625
|
};
|
|
15626
15626
|
}
|
|
15627
15627
|
function $c(e) {
|
|
15628
|
-
return
|
|
15628
|
+
return dC.some((t) => e[t] >= 0);
|
|
15629
15629
|
}
|
|
15630
|
-
const
|
|
15630
|
+
const CC = function(e) {
|
|
15631
15631
|
return e === void 0 && (e = {}), {
|
|
15632
15632
|
name: "hide",
|
|
15633
15633
|
options: e,
|
|
@@ -15638,7 +15638,7 @@ const kk = function(e) {
|
|
|
15638
15638
|
} = t, {
|
|
15639
15639
|
strategy: o = "referenceHidden",
|
|
15640
15640
|
...i
|
|
15641
|
-
} =
|
|
15641
|
+
} = Cn(e, t);
|
|
15642
15642
|
switch (o) {
|
|
15643
15643
|
case "referenceHidden": {
|
|
15644
15644
|
const s = await r.detectOverflow(t, {
|
|
@@ -15670,12 +15670,12 @@ const kk = function(e) {
|
|
|
15670
15670
|
}
|
|
15671
15671
|
};
|
|
15672
15672
|
}, Up = /* @__PURE__ */ new Set(["left", "top"]);
|
|
15673
|
-
async function
|
|
15673
|
+
async function AC(e, t) {
|
|
15674
15674
|
const {
|
|
15675
15675
|
placement: n,
|
|
15676
15676
|
platform: r,
|
|
15677
15677
|
elements: o
|
|
15678
|
-
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Zn(n), a = Wr(n), l = en(n) === "y", u = Up.has(s) ? -1 : 1, c = i && l ? -1 : 1, f =
|
|
15678
|
+
} = e, i = await (r.isRTL == null ? void 0 : r.isRTL(o.floating)), s = Zn(n), a = Wr(n), l = en(n) === "y", u = Up.has(s) ? -1 : 1, c = i && l ? -1 : 1, f = Cn(t, e);
|
|
15679
15679
|
let {
|
|
15680
15680
|
mainAxis: d,
|
|
15681
15681
|
crossAxis: p,
|
|
@@ -15697,7 +15697,7 @@ async function Ak(e, t) {
|
|
|
15697
15697
|
y: p * c
|
|
15698
15698
|
};
|
|
15699
15699
|
}
|
|
15700
|
-
const
|
|
15700
|
+
const OC = function(e) {
|
|
15701
15701
|
return e === void 0 && (e = 0), {
|
|
15702
15702
|
name: "offset",
|
|
15703
15703
|
options: e,
|
|
@@ -15708,7 +15708,7 @@ const Ok = function(e) {
|
|
|
15708
15708
|
y: i,
|
|
15709
15709
|
placement: s,
|
|
15710
15710
|
middlewareData: a
|
|
15711
|
-
} = t, l = await
|
|
15711
|
+
} = t, l = await AC(t, e);
|
|
15712
15712
|
return s === ((n = a.offset) == null ? void 0 : n.placement) && (r = a.arrow) != null && r.alignmentOffset ? {} : {
|
|
15713
15713
|
x: o + l.x,
|
|
15714
15714
|
y: i + l.y,
|
|
@@ -15719,7 +15719,7 @@ const Ok = function(e) {
|
|
|
15719
15719
|
};
|
|
15720
15720
|
}
|
|
15721
15721
|
};
|
|
15722
|
-
}, $
|
|
15722
|
+
}, $C = function(e) {
|
|
15723
15723
|
return e === void 0 && (e = {}), {
|
|
15724
15724
|
name: "shift",
|
|
15725
15725
|
options: e,
|
|
@@ -15745,7 +15745,7 @@ const Ok = function(e) {
|
|
|
15745
15745
|
}
|
|
15746
15746
|
},
|
|
15747
15747
|
...u
|
|
15748
|
-
} =
|
|
15748
|
+
} = Cn(e, t), c = {
|
|
15749
15749
|
x: n,
|
|
15750
15750
|
y: r
|
|
15751
15751
|
}, f = await i.detectOverflow(t, u), d = en(o), p = wl(d);
|
|
@@ -15770,7 +15770,7 @@ const Ok = function(e) {
|
|
|
15770
15770
|
};
|
|
15771
15771
|
}
|
|
15772
15772
|
};
|
|
15773
|
-
},
|
|
15773
|
+
}, EC = function(e) {
|
|
15774
15774
|
return e === void 0 && (e = {}), {
|
|
15775
15775
|
options: e,
|
|
15776
15776
|
fn(t) {
|
|
@@ -15785,12 +15785,12 @@ const Ok = function(e) {
|
|
|
15785
15785
|
offset: u = 0,
|
|
15786
15786
|
mainAxis: c = !0,
|
|
15787
15787
|
crossAxis: f = !0
|
|
15788
|
-
} =
|
|
15788
|
+
} = Cn(e, t), d = {
|
|
15789
15789
|
x: o,
|
|
15790
15790
|
y: i
|
|
15791
15791
|
}, p = en(s), h = wl(p);
|
|
15792
15792
|
let v = d[h], g = d[p];
|
|
15793
|
-
const y =
|
|
15793
|
+
const y = Cn(u, t), _ = typeof y == "number" ? {
|
|
15794
15794
|
mainAxis: y,
|
|
15795
15795
|
crossAxis: 0
|
|
15796
15796
|
} : {
|
|
@@ -15798,12 +15798,12 @@ const Ok = function(e) {
|
|
|
15798
15798
|
crossAxis: (r = y.crossAxis) != null ? r : 0
|
|
15799
15799
|
};
|
|
15800
15800
|
if (c) {
|
|
15801
|
-
const
|
|
15801
|
+
const k = h === "y" ? "height" : "width", O = a.reference[h] - a.floating[k] + _.mainAxis, A = a.reference[h] + a.reference[k] - _.mainAxis;
|
|
15802
15802
|
v < O ? v = O : v > A && (v = A);
|
|
15803
15803
|
}
|
|
15804
15804
|
if (f) {
|
|
15805
15805
|
var S, w;
|
|
15806
|
-
const
|
|
15806
|
+
const k = h === "y" ? "width" : "height", O = Up.has(Zn(s)), A = a.reference[p] - a.floating[k] + (O && ((S = l.offset) == null ? void 0 : S[p]) || 0) + (O ? 0 : _.crossAxis), T = a.reference[p] + a.reference[k] + (O ? 0 : ((w = l.offset) == null ? void 0 : w[p]) || 0) - (O ? _.crossAxis : 0);
|
|
15807
15807
|
g < A ? g = A : g > T && (g = T);
|
|
15808
15808
|
}
|
|
15809
15809
|
return {
|
|
@@ -15812,7 +15812,7 @@ const Ok = function(e) {
|
|
|
15812
15812
|
};
|
|
15813
15813
|
}
|
|
15814
15814
|
};
|
|
15815
|
-
},
|
|
15815
|
+
}, PC = function(e) {
|
|
15816
15816
|
return e === void 0 && (e = {}), {
|
|
15817
15817
|
name: "size",
|
|
15818
15818
|
options: e,
|
|
@@ -15826,15 +15826,15 @@ const Ok = function(e) {
|
|
|
15826
15826
|
apply: s = () => {
|
|
15827
15827
|
},
|
|
15828
15828
|
...a
|
|
15829
|
-
} =
|
|
15829
|
+
} = Cn(e, t), l = await o.detectOverflow(t, a), u = Zn(n), c = Wr(n), f = en(n) === "y", {
|
|
15830
15830
|
width: d,
|
|
15831
15831
|
height: p
|
|
15832
15832
|
} = r.floating;
|
|
15833
15833
|
let h, v;
|
|
15834
15834
|
u === "top" || u === "bottom" ? (h = u, v = c === (await (o.isRTL == null ? void 0 : o.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (v = u, h = c === "end" ? "top" : "bottom");
|
|
15835
|
-
const g = p - l.top - l.bottom, y = d - l.left - l.right, _ = Un(p - l[h], g), S = Un(d - l[v], y), w = t.middlewareData.shift,
|
|
15835
|
+
const g = p - l.top - l.bottom, y = d - l.left - l.right, _ = Un(p - l[h], g), S = Un(d - l[v], y), w = t.middlewareData.shift, k = !w;
|
|
15836
15836
|
let O = _, A = S;
|
|
15837
|
-
w != null && w.enabled.x && (A = y), w != null && w.enabled.y && (O = g),
|
|
15837
|
+
w != null && w.enabled.x && (A = y), w != null && w.enabled.y && (O = g), k && !c && (f ? A = d - 2 * _n(l.left, l.right) : O = p - 2 * _n(l.top, l.bottom)), await s({
|
|
15838
15838
|
...t,
|
|
15839
15839
|
availableWidth: A,
|
|
15840
15840
|
availableHeight: O
|
|
@@ -15852,7 +15852,7 @@ function fs() {
|
|
|
15852
15852
|
return typeof window < "u";
|
|
15853
15853
|
}
|
|
15854
15854
|
function gr(e) {
|
|
15855
|
-
return
|
|
15855
|
+
return kl(e) ? (e.nodeName || "").toLowerCase() : "#document";
|
|
15856
15856
|
}
|
|
15857
15857
|
function _t(e) {
|
|
15858
15858
|
var t;
|
|
@@ -15860,9 +15860,9 @@ function _t(e) {
|
|
|
15860
15860
|
}
|
|
15861
15861
|
function Pn(e) {
|
|
15862
15862
|
var t;
|
|
15863
|
-
return (t = (
|
|
15863
|
+
return (t = (kl(e) ? e.ownerDocument : e.document) || window.document) == null ? void 0 : t.documentElement;
|
|
15864
15864
|
}
|
|
15865
|
-
function
|
|
15865
|
+
function kl(e) {
|
|
15866
15866
|
return fs() ? e instanceof Node || e instanceof _t(e).Node : !1;
|
|
15867
15867
|
}
|
|
15868
15868
|
function ln(e) {
|
|
@@ -15883,7 +15883,7 @@ function ps(e) {
|
|
|
15883
15883
|
} = un(e);
|
|
15884
15884
|
return /auto|scroll|overlay|hidden|clip/.test(t + r + n) && o !== "inline" && o !== "contents";
|
|
15885
15885
|
}
|
|
15886
|
-
function
|
|
15886
|
+
function TC(e) {
|
|
15887
15887
|
return /^(table|td|th)$/.test(gr(e));
|
|
15888
15888
|
}
|
|
15889
15889
|
function hs(e) {
|
|
@@ -15898,16 +15898,16 @@ function hs(e) {
|
|
|
15898
15898
|
return !1;
|
|
15899
15899
|
}
|
|
15900
15900
|
}
|
|
15901
|
-
const
|
|
15901
|
+
const IC = /transform|translate|scale|rotate|perspective|filter/, RC = /paint|layout|strict|content/, nr = (e) => !!e && e !== "none";
|
|
15902
15902
|
let Ks;
|
|
15903
|
-
function
|
|
15903
|
+
function Cl(e) {
|
|
15904
15904
|
const t = ln(e) ? un(e) : e;
|
|
15905
|
-
return nr(t.transform) || nr(t.translate) || nr(t.scale) || nr(t.rotate) || nr(t.perspective) || !Al() && (nr(t.backdropFilter) || nr(t.filter)) ||
|
|
15905
|
+
return nr(t.transform) || nr(t.translate) || nr(t.scale) || nr(t.rotate) || nr(t.perspective) || !Al() && (nr(t.backdropFilter) || nr(t.filter)) || IC.test(t.willChange || "") || RC.test(t.contain || "");
|
|
15906
15906
|
}
|
|
15907
|
-
function
|
|
15907
|
+
function NC(e) {
|
|
15908
15908
|
let t = pr(e);
|
|
15909
15909
|
for (; Gn(t) && !xo(t); ) {
|
|
15910
|
-
if (
|
|
15910
|
+
if (Cl(t))
|
|
15911
15911
|
return t;
|
|
15912
15912
|
if (hs(t))
|
|
15913
15913
|
return null;
|
|
@@ -15949,15 +15949,15 @@ function Zp(e) {
|
|
|
15949
15949
|
const t = pr(e);
|
|
15950
15950
|
return xo(t) ? (e.ownerDocument || e).body : Gn(t) && ps(t) ? t : Zp(t);
|
|
15951
15951
|
}
|
|
15952
|
-
function
|
|
15952
|
+
function ko(e, t, n) {
|
|
15953
15953
|
var r;
|
|
15954
15954
|
t === void 0 && (t = []), n === void 0 && (n = !0);
|
|
15955
15955
|
const o = Zp(e), i = o === ((r = e.ownerDocument) == null ? void 0 : r.body), s = _t(o);
|
|
15956
15956
|
if (i) {
|
|
15957
15957
|
const a = Aa(s);
|
|
15958
|
-
return t.concat(s, s.visualViewport || [], ps(o) ? o : [], a && n ?
|
|
15958
|
+
return t.concat(s, s.visualViewport || [], ps(o) ? o : [], a && n ? ko(a) : []);
|
|
15959
15959
|
} else
|
|
15960
|
-
return t.concat(o,
|
|
15960
|
+
return t.concat(o, ko(o, [], n));
|
|
15961
15961
|
}
|
|
15962
15962
|
function Aa(e) {
|
|
15963
15963
|
return e.parent && Object.getPrototypeOf(e.parent) ? e.frameElement : null;
|
|
@@ -15990,15 +15990,15 @@ function Tr(e) {
|
|
|
15990
15990
|
y: a
|
|
15991
15991
|
};
|
|
15992
15992
|
}
|
|
15993
|
-
const
|
|
15993
|
+
const zC = /* @__PURE__ */ wn(0);
|
|
15994
15994
|
function Kp(e) {
|
|
15995
15995
|
const t = _t(e);
|
|
15996
|
-
return !Al() || !t.visualViewport ?
|
|
15996
|
+
return !Al() || !t.visualViewport ? zC : {
|
|
15997
15997
|
x: t.visualViewport.offsetLeft,
|
|
15998
15998
|
y: t.visualViewport.offsetTop
|
|
15999
15999
|
};
|
|
16000
16000
|
}
|
|
16001
|
-
function
|
|
16001
|
+
function DC(e, t, n) {
|
|
16002
16002
|
return t === void 0 && (t = !1), !!n && t && n === _t(e);
|
|
16003
16003
|
}
|
|
16004
16004
|
function hr(e, t, n, r) {
|
|
@@ -16006,7 +16006,7 @@ function hr(e, t, n, r) {
|
|
|
16006
16006
|
const o = e.getBoundingClientRect(), i = Ol(e);
|
|
16007
16007
|
let s = wn(1);
|
|
16008
16008
|
t && (r ? ln(r) && (s = Tr(r)) : s = Tr(e));
|
|
16009
|
-
const a =
|
|
16009
|
+
const a = DC(i, n, r) ? Kp(i) : wn(0);
|
|
16010
16010
|
let l = (o.left + a.x) / s.x, u = (o.top + a.y) / s.y, c = o.width / s.x, f = o.height / s.y;
|
|
16011
16011
|
if (i && r) {
|
|
16012
16012
|
const d = _t(i), p = ln(r) ? _t(r) : r;
|
|
@@ -16034,7 +16034,7 @@ function Hp(e, t) {
|
|
|
16034
16034
|
y: o
|
|
16035
16035
|
};
|
|
16036
16036
|
}
|
|
16037
|
-
function
|
|
16037
|
+
function MC(e) {
|
|
16038
16038
|
let {
|
|
16039
16039
|
elements: t,
|
|
16040
16040
|
rect: n,
|
|
@@ -16061,10 +16061,10 @@ function Mk(e) {
|
|
|
16061
16061
|
y: n.y * u.y - l.scrollTop * u.y + c.y + d.y
|
|
16062
16062
|
};
|
|
16063
16063
|
}
|
|
16064
|
-
function
|
|
16064
|
+
function VC(e) {
|
|
16065
16065
|
return e.getClientRects ? Array.from(e.getClientRects()) : [];
|
|
16066
16066
|
}
|
|
16067
|
-
function
|
|
16067
|
+
function FC(e) {
|
|
16068
16068
|
const t = ms(e), n = e.ownerDocument.body, r = _n(e.scrollWidth, e.clientWidth, n.scrollWidth, n.clientWidth), o = _n(e.scrollHeight, e.clientHeight, n.scrollHeight, n.clientHeight);
|
|
16069
16069
|
let i = -t.scrollLeft + vs(e);
|
|
16070
16070
|
const s = -t.scrollTop;
|
|
@@ -16075,8 +16075,8 @@ function Fk(e) {
|
|
|
16075
16075
|
y: s
|
|
16076
16076
|
};
|
|
16077
16077
|
}
|
|
16078
|
-
const
|
|
16079
|
-
function
|
|
16078
|
+
const jC = 25;
|
|
16079
|
+
function LC(e, t, n) {
|
|
16080
16080
|
n === void 0 && (n = "viewport");
|
|
16081
16081
|
const r = n === "layoutViewport", o = _t(e), i = Pn(e), s = o.visualViewport;
|
|
16082
16082
|
let a = i.clientWidth, l = i.clientHeight, u = 0, c = 0;
|
|
@@ -16086,7 +16086,7 @@ function Lk(e, t, n) {
|
|
|
16086
16086
|
}
|
|
16087
16087
|
if (vs(i) <= 0) {
|
|
16088
16088
|
const d = i.ownerDocument, p = d.body, h = getComputedStyle(p), v = d.compatMode === "CSS1Compat" && parseFloat(h.marginLeft) + parseFloat(h.marginRight) || 0, g = Math.abs(i.clientWidth - p.clientWidth - v), y = getComputedStyle(i).scrollbarGutter === "stable both-edges" ? g / 2 : g;
|
|
16089
|
-
y <=
|
|
16089
|
+
y <= jC && (a -= y);
|
|
16090
16090
|
}
|
|
16091
16091
|
return {
|
|
16092
16092
|
width: a,
|
|
@@ -16095,7 +16095,7 @@ function Lk(e, t, n) {
|
|
|
16095
16095
|
y: c
|
|
16096
16096
|
};
|
|
16097
16097
|
}
|
|
16098
|
-
function
|
|
16098
|
+
function qC(e, t) {
|
|
16099
16099
|
const n = hr(e, !0, t === "fixed"), r = n.top + e.clientTop, o = n.left + e.clientLeft, i = Tr(e), s = e.clientWidth * i.x, a = e.clientHeight * i.y, l = o * i.x, u = r * i.y;
|
|
16100
16100
|
return {
|
|
16101
16101
|
width: s,
|
|
@@ -16107,11 +16107,11 @@ function qk(e, t) {
|
|
|
16107
16107
|
function Pc(e, t, n) {
|
|
16108
16108
|
let r;
|
|
16109
16109
|
if (t === "viewport" || t === "layoutViewport")
|
|
16110
|
-
r =
|
|
16110
|
+
r = LC(e, n, t);
|
|
16111
16111
|
else if (t === "document")
|
|
16112
|
-
r =
|
|
16112
|
+
r = FC(Pn(e));
|
|
16113
16113
|
else if (ln(t))
|
|
16114
|
-
r =
|
|
16114
|
+
r = qC(t, n);
|
|
16115
16115
|
else {
|
|
16116
16116
|
const o = Kp(e);
|
|
16117
16117
|
r = {
|
|
@@ -16123,27 +16123,27 @@ function Pc(e, t, n) {
|
|
|
16123
16123
|
}
|
|
16124
16124
|
return Ei(r);
|
|
16125
16125
|
}
|
|
16126
|
-
function
|
|
16126
|
+
function BC(e, t) {
|
|
16127
16127
|
const n = t.get(e);
|
|
16128
16128
|
if (n)
|
|
16129
16129
|
return n;
|
|
16130
|
-
let r =
|
|
16130
|
+
let r = ko(e, [], !1).filter((a) => ln(a) && gr(a) !== "body"), o = null;
|
|
16131
16131
|
const i = un(e).position === "fixed";
|
|
16132
16132
|
let s = i ? pr(e) : e;
|
|
16133
16133
|
for (; ln(s) && !xo(s); ) {
|
|
16134
|
-
const a = un(s), l =
|
|
16134
|
+
const a = un(s), l = Cl(s), u = o ? o.position : i ? "fixed" : "";
|
|
16135
16135
|
!l && (u === "fixed" || u === "absolute" && a.position === "static") ? r = r.filter((f) => f !== s) : o = a, s = pr(s);
|
|
16136
16136
|
}
|
|
16137
16137
|
return t.set(e, r), r;
|
|
16138
16138
|
}
|
|
16139
|
-
function
|
|
16139
|
+
function UC(e) {
|
|
16140
16140
|
let {
|
|
16141
16141
|
element: t,
|
|
16142
16142
|
boundary: n,
|
|
16143
16143
|
rootBoundary: r,
|
|
16144
16144
|
strategy: o
|
|
16145
16145
|
} = e;
|
|
16146
|
-
const s = [...n === "clippingAncestors" ? hs(t) ? [] :
|
|
16146
|
+
const s = [...n === "clippingAncestors" ? hs(t) ? [] : BC(t, this._c) : [].concat(n), r], a = Pc(t, s[0], o);
|
|
16147
16147
|
let l = a.top, u = a.right, c = a.bottom, f = a.left;
|
|
16148
16148
|
for (let d = 1; d < s.length; d++) {
|
|
16149
16149
|
const p = Pc(t, s[d], o);
|
|
@@ -16156,7 +16156,7 @@ function Uk(e) {
|
|
|
16156
16156
|
y: l
|
|
16157
16157
|
};
|
|
16158
16158
|
}
|
|
16159
|
-
function
|
|
16159
|
+
function ZC(e) {
|
|
16160
16160
|
const {
|
|
16161
16161
|
width: t,
|
|
16162
16162
|
height: n
|
|
@@ -16166,7 +16166,7 @@ function Zk(e) {
|
|
|
16166
16166
|
height: n
|
|
16167
16167
|
};
|
|
16168
16168
|
}
|
|
16169
|
-
function
|
|
16169
|
+
function WC(e, t, n) {
|
|
16170
16170
|
const r = Gn(t), o = Pn(t), i = n === "fixed", s = hr(e, !0, i, t);
|
|
16171
16171
|
let a = {
|
|
16172
16172
|
scrollLeft: 0,
|
|
@@ -16211,14 +16211,14 @@ function Jp(e, t) {
|
|
|
16211
16211
|
return n;
|
|
16212
16212
|
}
|
|
16213
16213
|
let r = Tc(e, t);
|
|
16214
|
-
for (; r &&
|
|
16214
|
+
for (; r && TC(r) && Hs(r); )
|
|
16215
16215
|
r = Tc(r, t);
|
|
16216
|
-
return r && xo(r) && Hs(r) && !
|
|
16216
|
+
return r && xo(r) && Hs(r) && !Cl(r) ? n : r || NC(e) || n;
|
|
16217
16217
|
}
|
|
16218
|
-
const
|
|
16218
|
+
const KC = async function(e) {
|
|
16219
16219
|
const t = this.getOffsetParent || Jp, n = this.getDimensions, r = await n(e.floating);
|
|
16220
16220
|
return {
|
|
16221
|
-
reference:
|
|
16221
|
+
reference: WC(e.reference, await t(e.floating), e.strategy),
|
|
16222
16222
|
floating: {
|
|
16223
16223
|
x: 0,
|
|
16224
16224
|
y: 0,
|
|
@@ -16227,25 +16227,25 @@ const Kk = async function(e) {
|
|
|
16227
16227
|
}
|
|
16228
16228
|
};
|
|
16229
16229
|
};
|
|
16230
|
-
function
|
|
16230
|
+
function HC(e) {
|
|
16231
16231
|
return un(e).direction === "rtl";
|
|
16232
16232
|
}
|
|
16233
|
-
const
|
|
16234
|
-
convertOffsetParentRelativeRectToViewportRelativeRect:
|
|
16233
|
+
const JC = {
|
|
16234
|
+
convertOffsetParentRelativeRectToViewportRelativeRect: MC,
|
|
16235
16235
|
getDocumentElement: Pn,
|
|
16236
|
-
getClippingRect:
|
|
16236
|
+
getClippingRect: UC,
|
|
16237
16237
|
getOffsetParent: Jp,
|
|
16238
|
-
getElementRects:
|
|
16239
|
-
getClientRects:
|
|
16240
|
-
getDimensions:
|
|
16238
|
+
getElementRects: KC,
|
|
16239
|
+
getClientRects: VC,
|
|
16240
|
+
getDimensions: ZC,
|
|
16241
16241
|
getScale: Tr,
|
|
16242
16242
|
isElement: ln,
|
|
16243
|
-
isRTL:
|
|
16243
|
+
isRTL: HC
|
|
16244
16244
|
};
|
|
16245
16245
|
function Gp(e, t) {
|
|
16246
16246
|
return e.x === t.x && e.y === t.y && e.width === t.width && e.height === t.height;
|
|
16247
16247
|
}
|
|
16248
|
-
function
|
|
16248
|
+
function GC(e, t, n) {
|
|
16249
16249
|
let r = null, o;
|
|
16250
16250
|
const i = Pn(e);
|
|
16251
16251
|
function s() {
|
|
@@ -16296,7 +16296,7 @@ function Gk(e, t, n) {
|
|
|
16296
16296
|
l.removeEventListener("resize", u), s();
|
|
16297
16297
|
};
|
|
16298
16298
|
}
|
|
16299
|
-
function
|
|
16299
|
+
function YC(e, t, n, r) {
|
|
16300
16300
|
r === void 0 && (r = {});
|
|
16301
16301
|
const {
|
|
16302
16302
|
ancestorScroll: o = !0,
|
|
@@ -16304,11 +16304,11 @@ function Yk(e, t, n, r) {
|
|
|
16304
16304
|
elementResize: s = typeof ResizeObserver == "function",
|
|
16305
16305
|
layoutShift: a = typeof IntersectionObserver == "function",
|
|
16306
16306
|
animationFrame: l = !1
|
|
16307
|
-
} = r, u = Ol(e), c = o || i ? [...u ?
|
|
16307
|
+
} = r, u = Ol(e), c = o || i ? [...u ? ko(u) : [], ...t ? ko(t) : []] : [];
|
|
16308
16308
|
c.forEach((y) => {
|
|
16309
16309
|
o && y.addEventListener("scroll", n), i && y.addEventListener("resize", n);
|
|
16310
16310
|
});
|
|
16311
|
-
const f = u && a ?
|
|
16311
|
+
const f = u && a ? GC(u, n, i) : null;
|
|
16312
16312
|
let d = -1, p = null;
|
|
16313
16313
|
s && (p = new ResizeObserver((y) => {
|
|
16314
16314
|
let [_] = y;
|
|
@@ -16330,13 +16330,13 @@ function Yk(e, t, n, r) {
|
|
|
16330
16330
|
}), f?.(), (y = p) == null || y.disconnect(), p = null, l && cancelAnimationFrame(h);
|
|
16331
16331
|
};
|
|
16332
16332
|
}
|
|
16333
|
-
const
|
|
16333
|
+
const XC = OC, QC = $C, Ic = kC, eA = PC, tA = CC, nA = xC, rA = EC, oA = (e, t, n) => {
|
|
16334
16334
|
const r = /* @__PURE__ */ new Map(), o = n ?? {}, i = {
|
|
16335
|
-
...
|
|
16335
|
+
...JC,
|
|
16336
16336
|
...o.platform,
|
|
16337
16337
|
_c: r
|
|
16338
16338
|
};
|
|
16339
|
-
return
|
|
16339
|
+
return SC(e, t, {
|
|
16340
16340
|
...o,
|
|
16341
16341
|
platform: i
|
|
16342
16342
|
});
|
|
@@ -16347,11 +16347,11 @@ function iA(e) {
|
|
|
16347
16347
|
function Oa(e) {
|
|
16348
16348
|
if (iA(e)) {
|
|
16349
16349
|
const t = e.$el;
|
|
16350
|
-
return
|
|
16350
|
+
return kl(t) && gr(t) === "#comment" ? null : t;
|
|
16351
16351
|
}
|
|
16352
16352
|
return e;
|
|
16353
16353
|
}
|
|
16354
|
-
function
|
|
16354
|
+
function Cr(e) {
|
|
16355
16355
|
return typeof e == "function" ? e() : m(e);
|
|
16356
16356
|
}
|
|
16357
16357
|
function sA(e) {
|
|
@@ -16359,7 +16359,7 @@ function sA(e) {
|
|
|
16359
16359
|
name: "arrow",
|
|
16360
16360
|
options: e,
|
|
16361
16361
|
fn(t) {
|
|
16362
|
-
const n = Oa(
|
|
16362
|
+
const n = Oa(Cr(e.element));
|
|
16363
16363
|
return n == null ? {} : nA({
|
|
16364
16364
|
element: n,
|
|
16365
16365
|
padding: e.padding
|
|
@@ -16378,16 +16378,16 @@ function aA(e, t, n) {
|
|
|
16378
16378
|
n === void 0 && (n = {});
|
|
16379
16379
|
const r = n.whileElementsMounted, o = $(() => {
|
|
16380
16380
|
var A;
|
|
16381
|
-
return (A =
|
|
16382
|
-
}), i = $(() =>
|
|
16381
|
+
return (A = Cr(n.open)) != null ? A : !0;
|
|
16382
|
+
}), i = $(() => Cr(n.middleware)), s = $(() => {
|
|
16383
16383
|
var A;
|
|
16384
|
-
return (A =
|
|
16384
|
+
return (A = Cr(n.placement)) != null ? A : "bottom";
|
|
16385
16385
|
}), a = $(() => {
|
|
16386
16386
|
var A;
|
|
16387
|
-
return (A =
|
|
16387
|
+
return (A = Cr(n.strategy)) != null ? A : "absolute";
|
|
16388
16388
|
}), l = $(() => {
|
|
16389
16389
|
var A;
|
|
16390
|
-
return (A =
|
|
16390
|
+
return (A = Cr(n.transform)) != null ? A : !0;
|
|
16391
16391
|
}), u = $(() => Oa(e.value)), c = $(() => Oa(t.value)), f = /* @__PURE__ */ L(0), d = /* @__PURE__ */ L(0), p = /* @__PURE__ */ L(a.value), h = /* @__PURE__ */ L(s.value), v = /* @__PURE__ */ Ui({}), g = /* @__PURE__ */ L(!1), y = $(() => {
|
|
16392
16392
|
const A = {
|
|
16393
16393
|
position: p.value,
|
|
@@ -16425,7 +16425,7 @@ function aA(e, t, n) {
|
|
|
16425
16425
|
function w() {
|
|
16426
16426
|
typeof _ == "function" && (_(), _ = void 0);
|
|
16427
16427
|
}
|
|
16428
|
-
function
|
|
16428
|
+
function k() {
|
|
16429
16429
|
if (w(), r === void 0) {
|
|
16430
16430
|
S();
|
|
16431
16431
|
return;
|
|
@@ -16440,7 +16440,7 @@ function aA(e, t, n) {
|
|
|
16440
16440
|
}
|
|
16441
16441
|
return pe([i, s, a, o], S, {
|
|
16442
16442
|
flush: "sync"
|
|
16443
|
-
}), pe([u, c],
|
|
16443
|
+
}), pe([u, c], k, {
|
|
16444
16444
|
flush: "sync"
|
|
16445
16445
|
}), pe(o, O, {
|
|
16446
16446
|
flush: "sync"
|
|
@@ -16568,7 +16568,7 @@ var dA = /* @__PURE__ */ V({
|
|
|
16568
16568
|
}, { ...uA }),
|
|
16569
16569
|
emits: ["placed"],
|
|
16570
16570
|
setup(e, { emit: t }) {
|
|
16571
|
-
const n = e, r = En(), o = t, i = Lp(), { forwardRef: s, currentElement: a } = Ie(), l = ls($(() => n.dir)), u = /* @__PURE__ */ L(), c = /* @__PURE__ */ L(), { width: f, height: d } =
|
|
16571
|
+
const n = e, r = En(), o = t, i = Lp(), { forwardRef: s, currentElement: a } = Ie(), l = ls($(() => n.dir)), u = /* @__PURE__ */ L(), c = /* @__PURE__ */ L(), { width: f, height: d } = ik(c), p = $(() => n.side + (n.align !== "center" ? `-${n.align}` : "")), h = $(() => typeof n.collisionPadding == "number" ? n.collisionPadding : {
|
|
16572
16572
|
top: 0,
|
|
16573
16573
|
right: 0,
|
|
16574
16574
|
bottom: 0,
|
|
@@ -16576,13 +16576,13 @@ var dA = /* @__PURE__ */ V({
|
|
|
16576
16576
|
...n.collisionPadding
|
|
16577
16577
|
}), v = $(() => Array.isArray(n.collisionBoundary) ? n.collisionBoundary : [n.collisionBoundary]), g = $(() => ({
|
|
16578
16578
|
padding: h.value,
|
|
16579
|
-
boundary: v.value.filter(
|
|
16579
|
+
boundary: v.value.filter(uC),
|
|
16580
16580
|
altBoundary: v.value.length > 0
|
|
16581
16581
|
})), y = $(() => ({
|
|
16582
16582
|
mainAxis: n.sideFlip,
|
|
16583
16583
|
crossAxis: n.alignFlip
|
|
16584
16584
|
})), _ = $(() => [
|
|
16585
|
-
|
|
16585
|
+
XC({
|
|
16586
16586
|
mainAxis: n.sideOffset + d.value,
|
|
16587
16587
|
alignmentAxis: n.alignOffset
|
|
16588
16588
|
}),
|
|
@@ -16590,7 +16590,7 @@ var dA = /* @__PURE__ */ V({
|
|
|
16590
16590
|
...g.value,
|
|
16591
16591
|
...y.value
|
|
16592
16592
|
}),
|
|
16593
|
-
n.avoidCollisions &&
|
|
16593
|
+
n.avoidCollisions && QC({
|
|
16594
16594
|
mainAxis: !0,
|
|
16595
16595
|
crossAxis: !!n.prioritizePosition,
|
|
16596
16596
|
limiter: n.sticky === "partial" ? rA() : void 0,
|
|
@@ -16611,7 +16611,7 @@ var dA = /* @__PURE__ */ V({
|
|
|
16611
16611
|
element: c.value,
|
|
16612
16612
|
padding: n.arrowPadding
|
|
16613
16613
|
}),
|
|
16614
|
-
|
|
16614
|
+
cC({
|
|
16615
16615
|
arrowWidth: f.value,
|
|
16616
16616
|
arrowHeight: d.value,
|
|
16617
16617
|
dir: l.value
|
|
@@ -16620,15 +16620,15 @@ var dA = /* @__PURE__ */ V({
|
|
|
16620
16620
|
strategy: "referenceHidden",
|
|
16621
16621
|
...g.value
|
|
16622
16622
|
})
|
|
16623
|
-
]), S = $(() => n.reference ?? i.anchor.value), { floatingStyles: w, placement:
|
|
16623
|
+
]), S = $(() => n.reference ?? i.anchor.value), { floatingStyles: w, placement: k, isPositioned: O, middlewareData: A } = aA(S, u, {
|
|
16624
16624
|
strategy: n.positionStrategy,
|
|
16625
16625
|
placement: p,
|
|
16626
|
-
whileElementsMounted: (...ce) =>
|
|
16626
|
+
whileElementsMounted: (...ce) => YC(...ce, {
|
|
16627
16627
|
layoutShift: !n.disableUpdateOnLayoutShift,
|
|
16628
16628
|
animationFrame: n.updatePositionStrategy === "always"
|
|
16629
16629
|
}),
|
|
16630
16630
|
middleware: _
|
|
16631
|
-
}), T = $(() =>
|
|
16631
|
+
}), T = $(() => ka(k.value)[0]), F = $(() => ka(k.value)[1]);
|
|
16632
16632
|
wd(() => {
|
|
16633
16633
|
O.value && o("placed");
|
|
16634
16634
|
});
|
|
@@ -16646,7 +16646,7 @@ var dA = /* @__PURE__ */ V({
|
|
|
16646
16646
|
arrowX: _e,
|
|
16647
16647
|
arrowY: ye,
|
|
16648
16648
|
shouldHideArrow: q
|
|
16649
|
-
}), (ce, De) => (
|
|
16649
|
+
}), (ce, De) => (C(), I("div", {
|
|
16650
16650
|
ref_key: "floatingRef",
|
|
16651
16651
|
ref: u,
|
|
16652
16652
|
"data-reka-popper-content-wrapper": "",
|
|
@@ -16670,7 +16670,7 @@ var dA = /* @__PURE__ */ V({
|
|
|
16670
16670
|
m(O),
|
|
16671
16671
|
...Object.values(ce.$attrs),
|
|
16672
16672
|
...n.memoDependencies
|
|
16673
|
-
], () => (
|
|
16673
|
+
], () => (C(), H(m(Ae), se({
|
|
16674
16674
|
key: 0,
|
|
16675
16675
|
ref: m(s)
|
|
16676
16676
|
}, ce.$attrs, {
|
|
@@ -16688,7 +16688,7 @@ var dA = /* @__PURE__ */ V({
|
|
|
16688
16688
|
"data-side",
|
|
16689
16689
|
"data-align",
|
|
16690
16690
|
"style"
|
|
16691
|
-
])), De, 0) : (
|
|
16691
|
+
])), De, 0) : (C(), H(m(Ae), se({
|
|
16692
16692
|
key: 1,
|
|
16693
16693
|
ref: m(s)
|
|
16694
16694
|
}, ce.$attrs, {
|
|
@@ -16764,10 +16764,10 @@ var vA = /* @__PURE__ */ V({
|
|
|
16764
16764
|
function v(y) {
|
|
16765
16765
|
const _ = !f.value;
|
|
16766
16766
|
if (y.currentTarget && y.target === y.currentTarget && _ && !c.value) {
|
|
16767
|
-
const S = new CustomEvent(
|
|
16767
|
+
const S = new CustomEvent(Xk, Qk);
|
|
16768
16768
|
if (y.currentTarget.dispatchEvent(S), o("entryFocus", S), !S.defaultPrevented) {
|
|
16769
|
-
const w = p().map((F) => F.ref).filter((F) => F.dataset.disabled !== ""),
|
|
16770
|
-
|
|
16769
|
+
const w = p().map((F) => F.ref).filter((F) => F.dataset.disabled !== ""), k = w.find((F) => F.getAttribute("data-active") === ""), O = w.find((F) => F.getAttribute("data-highlighted") === ""), A = w.find((F) => F.id === u.value), T = [
|
|
16770
|
+
k,
|
|
16771
16771
|
O,
|
|
16772
16772
|
A,
|
|
16773
16773
|
...w
|
|
@@ -16799,7 +16799,7 @@ var vA = /* @__PURE__ */ V({
|
|
|
16799
16799
|
onFocusableItemRemove: () => {
|
|
16800
16800
|
d.value--;
|
|
16801
16801
|
}
|
|
16802
|
-
}), (y, _) => (
|
|
16802
|
+
}), (y, _) => (C(), H(m(h), null, {
|
|
16803
16803
|
default: U(() => [Y(m(Ae), {
|
|
16804
16804
|
tabindex: c.value || d.value === 0 ? -1 : 0,
|
|
16805
16805
|
"data-orientation": m(s),
|
|
@@ -16869,7 +16869,7 @@ var vA = /* @__PURE__ */ V({
|
|
|
16869
16869
|
return;
|
|
16870
16870
|
}
|
|
16871
16871
|
if (u.target !== u.currentTarget) return;
|
|
16872
|
-
const c =
|
|
16872
|
+
const c = nC(u, n.orientation.value, n.dir.value);
|
|
16873
16873
|
if (c !== void 0) {
|
|
16874
16874
|
if (u.metaKey || u.ctrlKey || u.altKey || !t.allowShiftKey && u.shiftKey) return;
|
|
16875
16875
|
u.preventDefault();
|
|
@@ -16878,12 +16878,12 @@ var vA = /* @__PURE__ */ V({
|
|
|
16878
16878
|
else if (c === "prev" || c === "next") {
|
|
16879
16879
|
c === "prev" && f.reverse();
|
|
16880
16880
|
const d = f.indexOf(u.currentTarget);
|
|
16881
|
-
f = n.loop.value ?
|
|
16881
|
+
f = n.loop.value ? rC(f, d + 1) : f.slice(d + 1);
|
|
16882
16882
|
}
|
|
16883
16883
|
Be(() => jp(f));
|
|
16884
16884
|
}
|
|
16885
16885
|
}
|
|
16886
|
-
return (u, c) => (
|
|
16886
|
+
return (u, c) => (C(), H(m(a), null, {
|
|
16887
16887
|
default: U(() => [Y(m(Ae), {
|
|
16888
16888
|
tabindex: i.value ? 0 : -1,
|
|
16889
16889
|
"data-orientation": m(n).orientation.value,
|
|
@@ -16998,7 +16998,7 @@ var SA = /* @__PURE__ */ V({
|
|
|
16998
16998
|
return wA({
|
|
16999
16999
|
disabled: l,
|
|
17000
17000
|
state: c
|
|
17001
|
-
}), (g, y) => (
|
|
17001
|
+
}), (g, y) => (C(), I(xe, null, [(C(), H(Nr(m(s)?.rovingFocus.value ? m(Xp) : m(Ae)), se({
|
|
17002
17002
|
...g.$attrs,
|
|
17003
17003
|
...m(p)
|
|
17004
17004
|
}, {
|
|
@@ -17037,7 +17037,7 @@ var SA = /* @__PURE__ */ V({
|
|
|
17037
17037
|
"disabled",
|
|
17038
17038
|
"focusable",
|
|
17039
17039
|
"onKeydown"
|
|
17040
|
-
])), m(d) && g.name && !m(s) ? (
|
|
17040
|
+
])), m(d) && g.name && !m(s) ? (C(), H(m(ds), se({
|
|
17041
17041
|
key: 0,
|
|
17042
17042
|
type: "checkbox",
|
|
17043
17043
|
checked: !!c.value,
|
|
@@ -17053,7 +17053,7 @@ var SA = /* @__PURE__ */ V({
|
|
|
17053
17053
|
"required"
|
|
17054
17054
|
])) : Q("v-if", !0)], 64));
|
|
17055
17055
|
}
|
|
17056
|
-
}), xA = SA,
|
|
17056
|
+
}), xA = SA, kA = /* @__PURE__ */ V({
|
|
17057
17057
|
__name: "CheckboxIndicator",
|
|
17058
17058
|
props: {
|
|
17059
17059
|
forceMount: {
|
|
@@ -17072,7 +17072,7 @@ var SA = /* @__PURE__ */ V({
|
|
|
17072
17072
|
},
|
|
17073
17073
|
setup(e) {
|
|
17074
17074
|
const { forwardRef: t } = Ie(), n = _A();
|
|
17075
|
-
return (r, o) => (
|
|
17075
|
+
return (r, o) => (C(), H(m(Ro), { present: r.forceMount || m($l)(m(n).state.value) || m(n).state.value === !0 }, {
|
|
17076
17076
|
default: U(() => [Y(m(Ae), se({
|
|
17077
17077
|
ref: m(t),
|
|
17078
17078
|
"data-state": m(Qp)(m(n).state.value),
|
|
@@ -17092,7 +17092,7 @@ var SA = /* @__PURE__ */ V({
|
|
|
17092
17092
|
_: 3
|
|
17093
17093
|
}, 8, ["present"]));
|
|
17094
17094
|
}
|
|
17095
|
-
}),
|
|
17095
|
+
}), CA = kA;
|
|
17096
17096
|
const AA = "radio.select";
|
|
17097
17097
|
function OA(e, t, n) {
|
|
17098
17098
|
ss(AA, n, {
|
|
@@ -17148,7 +17148,7 @@ var $A = /* @__PURE__ */ V({
|
|
|
17148
17148
|
r("select", p), !p?.defaultPrevented && (o.value = !0, l.value && p.stopPropagation());
|
|
17149
17149
|
});
|
|
17150
17150
|
}
|
|
17151
|
-
return (d, p) => (
|
|
17151
|
+
return (d, p) => (C(), I(xe, null, [Y(m(Ae), se({
|
|
17152
17152
|
id: d.id,
|
|
17153
17153
|
ref: m(s),
|
|
17154
17154
|
role: "radio",
|
|
@@ -17182,7 +17182,7 @@ var $A = /* @__PURE__ */ V({
|
|
|
17182
17182
|
"value",
|
|
17183
17183
|
"required",
|
|
17184
17184
|
"name"
|
|
17185
|
-
]), m(l) && d.name ? (
|
|
17185
|
+
]), m(l) && d.name ? (C(), H(m(ds), se({
|
|
17186
17186
|
key: 0,
|
|
17187
17187
|
type: "radio",
|
|
17188
17188
|
tabindex: "-1",
|
|
@@ -17265,7 +17265,7 @@ var IA = /* @__PURE__ */ V({
|
|
|
17265
17265
|
orientation: u,
|
|
17266
17266
|
name: c?.value,
|
|
17267
17267
|
required: f
|
|
17268
|
-
}), (v, g) => (
|
|
17268
|
+
}), (v, g) => (C(), H(m(gA), {
|
|
17269
17269
|
"as-child": "",
|
|
17270
17270
|
orientation: m(u),
|
|
17271
17271
|
dir: m(p),
|
|
@@ -17281,7 +17281,7 @@ var IA = /* @__PURE__ */ V({
|
|
|
17281
17281
|
"aria-required": m(f),
|
|
17282
17282
|
dir: m(p)
|
|
17283
17283
|
}, {
|
|
17284
|
-
default: U(() => [B(v.$slots, "default", { modelValue: m(s) }), m(h) && m(c) ? (
|
|
17284
|
+
default: U(() => [B(v.$slots, "default", { modelValue: m(s) }), m(h) && m(c) ? (C(), H(m(ds), {
|
|
17285
17285
|
key: 0,
|
|
17286
17286
|
required: m(f),
|
|
17287
17287
|
disabled: m(a),
|
|
@@ -17359,9 +17359,9 @@ var DA = /* @__PURE__ */ V({
|
|
|
17359
17359
|
"ArrowLeft",
|
|
17360
17360
|
"ArrowRight"
|
|
17361
17361
|
];
|
|
17362
|
-
|
|
17362
|
+
Ci("keydown", (h) => {
|
|
17363
17363
|
f.includes(h.key) && (c.value = !0);
|
|
17364
|
-
}),
|
|
17364
|
+
}), Ci("keyup", () => {
|
|
17365
17365
|
c.value = !1;
|
|
17366
17366
|
});
|
|
17367
17367
|
function d() {
|
|
@@ -17370,7 +17370,7 @@ var DA = /* @__PURE__ */ V({
|
|
|
17370
17370
|
}, 0);
|
|
17371
17371
|
}
|
|
17372
17372
|
const p = cs();
|
|
17373
|
-
return (h, v) => (
|
|
17373
|
+
return (h, v) => (C(), H(m(Xp), {
|
|
17374
17374
|
checked: u.value,
|
|
17375
17375
|
disabled: a.value,
|
|
17376
17376
|
"as-child": "",
|
|
@@ -17430,7 +17430,7 @@ var DA = /* @__PURE__ */ V({
|
|
|
17430
17430
|
},
|
|
17431
17431
|
setup(e) {
|
|
17432
17432
|
const { forwardRef: t } = Ie(), n = NA();
|
|
17433
|
-
return (r, o) => (
|
|
17433
|
+
return (r, o) => (C(), H(m(Ro), { present: r.forceMount || m(n).checked.value }, {
|
|
17434
17434
|
default: U(() => [Y(m(Ae), se({
|
|
17435
17435
|
ref: m(t),
|
|
17436
17436
|
"data-state": m(n).checked.value ? "checked" : "unchecked",
|
|
@@ -17456,7 +17456,7 @@ const jA = [
|
|
|
17456
17456
|
"ArrowUp",
|
|
17457
17457
|
"ArrowDown"
|
|
17458
17458
|
], LA = [" ", "Enter"], zt = 10;
|
|
17459
|
-
function
|
|
17459
|
+
function Co(e, t, n) {
|
|
17460
17460
|
return e === void 0 ? !1 : Array.isArray(e) ? e.some((r) => $a(r, t, n)) : $a(e, t, n);
|
|
17461
17461
|
}
|
|
17462
17462
|
function $a(e, t, n) {
|
|
@@ -17539,12 +17539,12 @@ var UA = /* @__PURE__ */ V({
|
|
|
17539
17539
|
const h = ls(a), v = Io(c), g = /* @__PURE__ */ L(/* @__PURE__ */ new Set()), y = $(() => Array.from(g.value).map((w) => w.value).join(";"));
|
|
17540
17540
|
function _(w) {
|
|
17541
17541
|
if (s.value) {
|
|
17542
|
-
const
|
|
17543
|
-
O === -1 ?
|
|
17542
|
+
const k = Array.isArray(l.value) ? [...l.value] : [], O = k.findIndex((A) => $a(A, w, n.by));
|
|
17543
|
+
O === -1 ? k.push(w) : k.splice(O, 1), l.value = [...k];
|
|
17544
17544
|
} else l.value = w;
|
|
17545
17545
|
}
|
|
17546
17546
|
function S(w) {
|
|
17547
|
-
return Array.from(g.value).find((
|
|
17547
|
+
return Array.from(g.value).find((k) => Co(w, k.value, n.by));
|
|
17548
17548
|
}
|
|
17549
17549
|
return eh({
|
|
17550
17550
|
triggerElement: c,
|
|
@@ -17571,18 +17571,18 @@ var UA = /* @__PURE__ */ V({
|
|
|
17571
17571
|
isEmptyModelValue: p,
|
|
17572
17572
|
optionsSet: g,
|
|
17573
17573
|
onOptionAdd: (w) => {
|
|
17574
|
-
const
|
|
17575
|
-
|
|
17574
|
+
const k = S(w.value);
|
|
17575
|
+
k && g.value.delete(k), g.value.add(w);
|
|
17576
17576
|
},
|
|
17577
17577
|
onOptionRemove: (w) => {
|
|
17578
|
-
const
|
|
17579
|
-
|
|
17578
|
+
const k = S(w.value);
|
|
17579
|
+
k && g.value.delete(k);
|
|
17580
17580
|
}
|
|
17581
|
-
}), (w,
|
|
17581
|
+
}), (w, k) => (C(), H(m(sC), null, {
|
|
17582
17582
|
default: U(() => [B(w.$slots, "default", {
|
|
17583
17583
|
modelValue: m(l),
|
|
17584
17584
|
open: m(u)
|
|
17585
|
-
}), m(v) && w.name ? (
|
|
17585
|
+
}), m(v) && w.name ? (C(), H(KA, {
|
|
17586
17586
|
key: y.value,
|
|
17587
17587
|
"aria-hidden": "true",
|
|
17588
17588
|
tabindex: "-1",
|
|
@@ -17593,10 +17593,10 @@ var UA = /* @__PURE__ */ V({
|
|
|
17593
17593
|
disabled: m(i),
|
|
17594
17594
|
value: m(l)
|
|
17595
17595
|
}, {
|
|
17596
|
-
default: U(() => [m(qr)(m(l)) ? (
|
|
17596
|
+
default: U(() => [m(qr)(m(l)) ? (C(), I("option", {
|
|
17597
17597
|
key: 0,
|
|
17598
17598
|
value: w.nullableValue
|
|
17599
|
-
}, null, 8, BA)) : Q("v-if", !0), (
|
|
17599
|
+
}, null, 8, BA)) : Q("v-if", !0), (C(!0), I(xe, null, kt(Array.from(g.value), (O) => (C(), I("option", se({ key: O.value ?? "" }, { ref_for: !0 }, O), null, 16))), 128))]),
|
|
17600
17600
|
_: 1
|
|
17601
17601
|
}, 8, [
|
|
17602
17602
|
"multiple",
|
|
@@ -17661,7 +17661,7 @@ var UA = /* @__PURE__ */ V({
|
|
|
17661
17661
|
function o(i) {
|
|
17662
17662
|
r.onValueChange(i.target.value);
|
|
17663
17663
|
}
|
|
17664
|
-
return (i, s) => (
|
|
17664
|
+
return (i, s) => (C(), H(m(Fp), { "as-child": "" }, {
|
|
17665
17665
|
default: U(() => [oe("select", se({
|
|
17666
17666
|
ref_key: "selectElement",
|
|
17667
17667
|
ref: n
|
|
@@ -17765,7 +17765,7 @@ var UA = /* @__PURE__ */ V({
|
|
|
17765
17765
|
},
|
|
17766
17766
|
setup(e) {
|
|
17767
17767
|
const n = _l(e);
|
|
17768
|
-
return (r, o) => (
|
|
17768
|
+
return (r, o) => (C(), H(m(fA), se(m(n), { style: {
|
|
17769
17769
|
boxSizing: "border-box",
|
|
17770
17770
|
"--reka-select-content-transform-origin": "var(--reka-popper-transform-origin)",
|
|
17771
17771
|
"--reka-select-content-available-width": "var(--reka-popper-available-width)",
|
|
@@ -17953,7 +17953,7 @@ var YA = /* @__PURE__ */ V({
|
|
|
17953
17953
|
setTimeout(() => wc(q)), A.preventDefault();
|
|
17954
17954
|
}
|
|
17955
17955
|
}
|
|
17956
|
-
const
|
|
17956
|
+
const k = $(() => n.position === "popper" ? n : {}), O = _l(k.value);
|
|
17957
17957
|
return th({
|
|
17958
17958
|
content: l,
|
|
17959
17959
|
viewport: f,
|
|
@@ -17961,7 +17961,7 @@ var YA = /* @__PURE__ */ V({
|
|
|
17961
17961
|
f.value = A;
|
|
17962
17962
|
},
|
|
17963
17963
|
itemRefCallback: (A, T, F) => {
|
|
17964
|
-
const q = !v.value && !F, ee =
|
|
17964
|
+
const q = !v.value && !F, ee = Co(o.modelValue.value, T, o.by);
|
|
17965
17965
|
if (o.multiple.value) {
|
|
17966
17966
|
if (g.value) return;
|
|
17967
17967
|
(ee || q) && (d.value = A, ee && (g.value = !0));
|
|
@@ -17975,13 +17975,13 @@ var YA = /* @__PURE__ */ V({
|
|
|
17975
17975
|
},
|
|
17976
17976
|
itemTextRefCallback: (A, T, F) => {
|
|
17977
17977
|
const q = !v.value && !F;
|
|
17978
|
-
(
|
|
17978
|
+
(Co(o.modelValue.value, T, o.by) || q) && (p.value = A);
|
|
17979
17979
|
},
|
|
17980
17980
|
focusSelectedItem: y,
|
|
17981
17981
|
position: n.position,
|
|
17982
17982
|
isPositioned: h,
|
|
17983
17983
|
searchRef: u
|
|
17984
|
-
}), (A, T) => (
|
|
17984
|
+
}), (A, T) => (C(), H(m(s), null, {
|
|
17985
17985
|
default: U(() => [Y(m(Dp), {
|
|
17986
17986
|
"as-child": "",
|
|
17987
17987
|
onMountAutoFocus: T[6] || (T[6] = jt(() => {
|
|
@@ -17999,7 +17999,7 @@ var YA = /* @__PURE__ */ V({
|
|
|
17999
17999
|
onEscapeKeyDown: T[4] || (T[4] = (F) => r("escapeKeyDown", F)),
|
|
18000
18000
|
onPointerDownOutside: T[5] || (T[5] = (F) => r("pointerDownOutside", F))
|
|
18001
18001
|
}, {
|
|
18002
|
-
default: U(() => [(
|
|
18002
|
+
default: U(() => [(C(), H(Nr(A.position === "popper" ? JA : nO), se({
|
|
18003
18003
|
...A.$attrs,
|
|
18004
18004
|
...m(O)
|
|
18005
18005
|
}, {
|
|
@@ -18057,12 +18057,12 @@ var tO = /* @__PURE__ */ V({
|
|
|
18057
18057
|
const n = e, r = t, { getItems: o } = vr(), i = Yn(), s = gs(), a = /* @__PURE__ */ L(!1), l = /* @__PURE__ */ L(!0), u = /* @__PURE__ */ L(), { forwardRef: c, currentElement: f } = Ie(), { viewport: d, selectedItem: p, selectedItemText: h, focusSelectedItem: v } = s;
|
|
18058
18058
|
function g() {
|
|
18059
18059
|
if (i.triggerElement.value && i.valueElement.value && u.value && f.value && d?.value && p?.value && h?.value) {
|
|
18060
|
-
const S = i.triggerElement.value.getBoundingClientRect(), w = f.value.getBoundingClientRect(),
|
|
18060
|
+
const S = i.triggerElement.value.getBoundingClientRect(), w = f.value.getBoundingClientRect(), k = i.valueElement.value.getBoundingClientRect(), O = h.value.getBoundingClientRect();
|
|
18061
18061
|
if (i.dir.value !== "rtl") {
|
|
18062
|
-
const Ye = O.left - w.left, at =
|
|
18062
|
+
const Ye = O.left - w.left, at = k.left - Ye, bt = S.left - at, tt = S.width + bt, Tn = Math.max(tt, w.width), b = window.innerWidth - zt, x = dc(at, zt, Math.max(zt, b - Tn));
|
|
18063
18063
|
u.value.style.minWidth = `${tt}px`, u.value.style.left = `${x}px`;
|
|
18064
18064
|
} else {
|
|
18065
|
-
const Ye = w.right - O.right, at = window.innerWidth -
|
|
18065
|
+
const Ye = w.right - O.right, at = window.innerWidth - k.right - Ye, bt = window.innerWidth - S.right - at, tt = S.width + bt, Tn = Math.max(tt, w.width), b = window.innerWidth - zt, x = dc(at, zt, Math.max(zt, b - Tn));
|
|
18066
18066
|
u.value.style.minWidth = `${tt}px`, u.value.style.right = `${x}px`;
|
|
18067
18067
|
}
|
|
18068
18068
|
const A = o().map((Ye) => Ye.ref), T = window.innerHeight - zt * 2, F = d.value.scrollHeight, q = window.getComputedStyle(f.value), ee = Number.parseInt(q.borderTopWidth, 10), _e = Number.parseInt(q.paddingTop, 10), ye = Number.parseInt(q.borderBottomWidth, 10), ce = Number.parseInt(q.paddingBottom, 10), De = ee + _e + F + ce + ye, ve = Math.min(p.value.offsetHeight * 5, De), ge = window.getComputedStyle(d.value), ae = Number.parseInt(ge.paddingTop, 10), Ve = Number.parseInt(ge.paddingBottom, 10), me = S.top + S.height / 2 - zt, we = T - me, We = p.value.offsetHeight / 2, $t = p.value.offsetTop + We, Et = ee + _e + $t, Xn = De - Et;
|
|
@@ -18093,7 +18093,7 @@ var tO = /* @__PURE__ */ V({
|
|
|
18093
18093
|
contentWrapper: u,
|
|
18094
18094
|
shouldExpandOnScrollRef: a,
|
|
18095
18095
|
onScrollButtonChange: _
|
|
18096
|
-
}), (S, w) => (
|
|
18096
|
+
}), (S, w) => (C(), I("div", {
|
|
18097
18097
|
ref_key: "contentWrapperElement",
|
|
18098
18098
|
ref: u,
|
|
18099
18099
|
style: Fe({
|
|
@@ -18243,7 +18243,7 @@ var sO = /* @__PURE__ */ V({
|
|
|
18243
18243
|
"pointerDownOutside"
|
|
18244
18244
|
],
|
|
18245
18245
|
setup(e, { emit: t }) {
|
|
18246
|
-
const n = e, o =
|
|
18246
|
+
const n = e, o = ek(n, t), i = Yn(), s = /* @__PURE__ */ L();
|
|
18247
18247
|
dt(() => {
|
|
18248
18248
|
s.value = new DocumentFragment();
|
|
18249
18249
|
});
|
|
@@ -18256,7 +18256,7 @@ var sO = /* @__PURE__ */ V({
|
|
|
18256
18256
|
f(), c = setTimeout(() => {
|
|
18257
18257
|
u.value = l.value, c = void 0;
|
|
18258
18258
|
}), h(f);
|
|
18259
|
-
}), $n(f), (d, p) => l.value || u.value || a.value?.present ? (
|
|
18259
|
+
}), $n(f), (d, p) => l.value || u.value || a.value?.present ? (C(), H(m(Ro), {
|
|
18260
18260
|
key: 0,
|
|
18261
18261
|
ref_key: "presenceRef",
|
|
18262
18262
|
ref: a,
|
|
@@ -18270,7 +18270,7 @@ var sO = /* @__PURE__ */ V({
|
|
|
18270
18270
|
_: 3
|
|
18271
18271
|
}, 16)]),
|
|
18272
18272
|
_: 3
|
|
18273
|
-
}, 8, ["present"])) : s.value ? (
|
|
18273
|
+
}, 8, ["present"])) : s.value ? (C(), I("div", iO, [(C(), H(kd, { to: s.value }, [Y(oO, { context: m(i) }, {
|
|
18274
18274
|
default: U(() => [B(d.$slots, "default")]),
|
|
18275
18275
|
_: 3
|
|
18276
18276
|
}, 8, ["context"])], 8, ["to"]))])) : Q("v-if", !0);
|
|
@@ -18291,7 +18291,7 @@ var cO = /* @__PURE__ */ V({
|
|
|
18291
18291
|
},
|
|
18292
18292
|
setup(e) {
|
|
18293
18293
|
const t = e, n = fr(void 0, "reka-select-group");
|
|
18294
|
-
return uO({ id: n }), (r, o) => (
|
|
18294
|
+
return uO({ id: n }), (r, o) => (C(), H(m(Ae), se({ role: "group" }, t, { "aria-labelledby": m(n) }), {
|
|
18295
18295
|
default: U(() => [B(r.$slots, "default")]),
|
|
18296
18296
|
_: 3
|
|
18297
18297
|
}, 16, ["aria-labelledby"]));
|
|
@@ -18310,7 +18310,7 @@ var cO = /* @__PURE__ */ V({
|
|
|
18310
18310
|
}
|
|
18311
18311
|
},
|
|
18312
18312
|
setup(e) {
|
|
18313
|
-
return (t, n) => (
|
|
18313
|
+
return (t, n) => (C(), H(m(Ae), {
|
|
18314
18314
|
"aria-hidden": "true",
|
|
18315
18315
|
as: t.as,
|
|
18316
18316
|
"as-child": t.asChild
|
|
@@ -18347,14 +18347,14 @@ var mO = /* @__PURE__ */ V({
|
|
|
18347
18347
|
},
|
|
18348
18348
|
emits: ["select"],
|
|
18349
18349
|
setup(e, { emit: t }) {
|
|
18350
|
-
const n = e, r = t, { disabled: o } = /* @__PURE__ */ cn(n), i = Yn(), s = gs(), { forwardRef: a, currentElement: l } = Ie(), { CollectionItem: u } = vr(), c = $(() =>
|
|
18350
|
+
const n = e, r = t, { disabled: o } = /* @__PURE__ */ cn(n), i = Yn(), s = gs(), { forwardRef: a, currentElement: l } = Ie(), { CollectionItem: u } = vr(), c = $(() => Co(i.modelValue?.value, n.value, i.by)), f = /* @__PURE__ */ L(!1), d = /* @__PURE__ */ L(n.textValue ?? ""), p = fr(void 0, "reka-select-item-text"), h = "select.select";
|
|
18351
18351
|
async function v(w) {
|
|
18352
18352
|
if (w.defaultPrevented) return;
|
|
18353
|
-
const
|
|
18353
|
+
const k = {
|
|
18354
18354
|
originalEvent: w,
|
|
18355
18355
|
value: n.value
|
|
18356
18356
|
};
|
|
18357
|
-
ss(h, g,
|
|
18357
|
+
ss(h, g, k);
|
|
18358
18358
|
}
|
|
18359
18359
|
async function g(w) {
|
|
18360
18360
|
await Be(), r("select", w), !w.defaultPrevented && (o.value || (i.onValueChange(n.value), i.multiple.value || i.onOpenChange(!1)));
|
|
@@ -18379,7 +18379,7 @@ var mO = /* @__PURE__ */ V({
|
|
|
18379
18379
|
onItemTextChange: (w) => {
|
|
18380
18380
|
d.value = ((d.value || w?.textContent) ?? "").trim();
|
|
18381
18381
|
}
|
|
18382
|
-
}), (w,
|
|
18382
|
+
}), (w, k) => (C(), H(m(u), { value: { textValue: d.value } }, {
|
|
18383
18383
|
default: U(() => [Y(m(Ae), {
|
|
18384
18384
|
ref: m(a),
|
|
18385
18385
|
role: "option",
|
|
@@ -18392,13 +18392,13 @@ var mO = /* @__PURE__ */ V({
|
|
|
18392
18392
|
tabindex: m(o) ? void 0 : -1,
|
|
18393
18393
|
as: w.as,
|
|
18394
18394
|
"as-child": w.asChild,
|
|
18395
|
-
onFocus:
|
|
18396
|
-
onBlur:
|
|
18395
|
+
onFocus: k[0] || (k[0] = (O) => f.value = !0),
|
|
18396
|
+
onBlur: k[1] || (k[1] = (O) => f.value = !1),
|
|
18397
18397
|
onPointerup: v,
|
|
18398
|
-
onPointerdown:
|
|
18398
|
+
onPointerdown: k[2] || (k[2] = (O) => {
|
|
18399
18399
|
O.currentTarget.focus({ preventScroll: !0 });
|
|
18400
18400
|
}),
|
|
18401
|
-
onTouchend:
|
|
18401
|
+
onTouchend: k[3] || (k[3] = jt(() => {
|
|
18402
18402
|
}, ["prevent", "stop"])),
|
|
18403
18403
|
onPointermove: y,
|
|
18404
18404
|
onPointerleave: _,
|
|
@@ -18435,7 +18435,7 @@ var mO = /* @__PURE__ */ V({
|
|
|
18435
18435
|
},
|
|
18436
18436
|
setup(e) {
|
|
18437
18437
|
const t = e, n = nh();
|
|
18438
|
-
return (r, o) => m(n).isSelected.value ? (
|
|
18438
|
+
return (r, o) => m(n).isSelected.value ? (C(), H(m(Ae), se({
|
|
18439
18439
|
key: 0,
|
|
18440
18440
|
"aria-hidden": "true"
|
|
18441
18441
|
}, t), {
|
|
@@ -18467,7 +18467,7 @@ var mO = /* @__PURE__ */ V({
|
|
|
18467
18467
|
s.value && (o.onItemTextChange(s.value), r.itemTextRefCallback(s.value, o.value, o.disabled.value), n.onOptionAdd(a.value));
|
|
18468
18468
|
}), $n(() => {
|
|
18469
18469
|
n.onOptionRemove(a.value);
|
|
18470
|
-
}), (l, u) => (
|
|
18470
|
+
}), (l, u) => (C(), H(m(Ae), se({
|
|
18471
18471
|
id: m(o).textId,
|
|
18472
18472
|
ref: m(i)
|
|
18473
18473
|
}, {
|
|
@@ -18497,7 +18497,7 @@ var mO = /* @__PURE__ */ V({
|
|
|
18497
18497
|
},
|
|
18498
18498
|
setup(e) {
|
|
18499
18499
|
const t = e, n = lO({ id: "" });
|
|
18500
|
-
return (r, o) => (
|
|
18500
|
+
return (r, o) => (C(), H(m(Ae), se(t, { id: m(n).id }), {
|
|
18501
18501
|
default: U(() => [B(r.$slots, "default")]),
|
|
18502
18502
|
_: 3
|
|
18503
18503
|
}, 16, ["id"]));
|
|
@@ -18524,12 +18524,12 @@ var mO = /* @__PURE__ */ V({
|
|
|
18524
18524
|
},
|
|
18525
18525
|
setup(e) {
|
|
18526
18526
|
const t = e;
|
|
18527
|
-
return (n, r) => (
|
|
18527
|
+
return (n, r) => (C(), H(m(Vp), Fa(Yi(t)), {
|
|
18528
18528
|
default: U(() => [B(n.$slots, "default")]),
|
|
18529
18529
|
_: 3
|
|
18530
18530
|
}, 16));
|
|
18531
18531
|
}
|
|
18532
|
-
}),
|
|
18532
|
+
}), kO = xO, CO = /* @__PURE__ */ V({
|
|
18533
18533
|
__name: "SelectTrigger",
|
|
18534
18534
|
props: {
|
|
18535
18535
|
disabled: {
|
|
@@ -18580,7 +18580,7 @@ var mO = /* @__PURE__ */ V({
|
|
|
18580
18580
|
function g(y) {
|
|
18581
18581
|
p || y.currentTarget?.focus(), p = !1;
|
|
18582
18582
|
}
|
|
18583
|
-
return (y, _) => (
|
|
18583
|
+
return (y, _) => (C(), H(m(lC), {
|
|
18584
18584
|
"as-child": "",
|
|
18585
18585
|
reference: y.reference
|
|
18586
18586
|
}, {
|
|
@@ -18628,7 +18628,7 @@ var mO = /* @__PURE__ */ V({
|
|
|
18628
18628
|
_: 3
|
|
18629
18629
|
}, 8, ["reference"]));
|
|
18630
18630
|
}
|
|
18631
|
-
}), AO =
|
|
18631
|
+
}), AO = CO, OO = /* @__PURE__ */ V({
|
|
18632
18632
|
__name: "SelectValue",
|
|
18633
18633
|
props: {
|
|
18634
18634
|
placeholder: {
|
|
@@ -18653,10 +18653,10 @@ var mO = /* @__PURE__ */ V({
|
|
|
18653
18653
|
});
|
|
18654
18654
|
const i = $(() => {
|
|
18655
18655
|
let a = [];
|
|
18656
|
-
const l = Array.from(o.optionsSet.value), u = (c) => l.find((f) =>
|
|
18656
|
+
const l = Array.from(o.optionsSet.value), u = (c) => l.find((f) => Co(c, f.value, o.by));
|
|
18657
18657
|
return Array.isArray(o.modelValue.value) ? a = o.modelValue.value.map((c) => u(c)?.textContent ?? "") : a = [u(o.modelValue.value)?.textContent ?? ""], a.filter(Boolean);
|
|
18658
18658
|
}), s = $(() => i.value.length ? i.value.join(", ") : t.placeholder);
|
|
18659
|
-
return (a, l) => (
|
|
18659
|
+
return (a, l) => (C(), H(m(Ae), {
|
|
18660
18660
|
ref: m(n),
|
|
18661
18661
|
as: a.as,
|
|
18662
18662
|
"as-child": a.asChild,
|
|
@@ -18703,14 +18703,14 @@ var mO = /* @__PURE__ */ V({
|
|
|
18703
18703
|
if (h > 0) {
|
|
18704
18704
|
const v = window.innerHeight - zt * 2, g = Number.parseFloat(p.value.style.minHeight), y = Number.parseFloat(p.value.style.height), _ = Math.max(g, y);
|
|
18705
18705
|
if (_ < v) {
|
|
18706
|
-
const S = _ + h, w = Math.min(v, S),
|
|
18707
|
-
p.value.style.height = `${w}px`, p.value.style.bottom === "0px" && (f.scrollTop =
|
|
18706
|
+
const S = _ + h, w = Math.min(v, S), k = S - w;
|
|
18707
|
+
p.value.style.height = `${w}px`, p.value.style.bottom === "0px" && (f.scrollTop = k > 0 ? k : 0, p.value.style.justifyContent = "flex-end");
|
|
18708
18708
|
}
|
|
18709
18709
|
}
|
|
18710
18710
|
}
|
|
18711
18711
|
l.value = f.scrollTop;
|
|
18712
18712
|
}
|
|
18713
|
-
return (c, f) => (
|
|
18713
|
+
return (c, f) => (C(), I(xe, null, [Y(m(Ae), se({
|
|
18714
18714
|
ref: m(s),
|
|
18715
18715
|
"data-reka-select-viewport": "",
|
|
18716
18716
|
role: "presentation"
|
|
@@ -18806,7 +18806,7 @@ var RO = /* @__PURE__ */ V({
|
|
|
18806
18806
|
checked: s,
|
|
18807
18807
|
toggleCheck: a,
|
|
18808
18808
|
disabled: o
|
|
18809
|
-
}), (p, h) => (
|
|
18809
|
+
}), (p, h) => (C(), I(xe, null, [Y(m(Ae), se({
|
|
18810
18810
|
id: p.id,
|
|
18811
18811
|
ref: m(l),
|
|
18812
18812
|
role: "switch",
|
|
@@ -18845,7 +18845,7 @@ var RO = /* @__PURE__ */ V({
|
|
|
18845
18845
|
"as",
|
|
18846
18846
|
"disabled",
|
|
18847
18847
|
"onKeydown"
|
|
18848
|
-
]), m(c) && p.name ? (
|
|
18848
|
+
]), m(c) && p.name ? (C(), H(m(ds), se({
|
|
18849
18849
|
key: 0,
|
|
18850
18850
|
type: "checkbox",
|
|
18851
18851
|
name: p.name,
|
|
@@ -18876,7 +18876,7 @@ var RO = /* @__PURE__ */ V({
|
|
|
18876
18876
|
},
|
|
18877
18877
|
setup(e) {
|
|
18878
18878
|
const t = TO();
|
|
18879
|
-
return Ie(), (n, r) => (
|
|
18879
|
+
return Ie(), (n, r) => (C(), H(m(Ae), {
|
|
18880
18880
|
"data-state": m(t).checked.value ? "checked" : "unchecked",
|
|
18881
18881
|
"data-disabled": m(t).disabled.value ? "" : void 0,
|
|
18882
18882
|
"as-child": n.asChild,
|
|
@@ -18913,9 +18913,9 @@ const MO = {
|
|
|
18913
18913
|
emits: ["update:modelValue"],
|
|
18914
18914
|
setup(e, { emit: t }) {
|
|
18915
18915
|
const n = e, r = t, { controlAttrs: o, wrapperAttrs: i, changed: s } = Zr({ value: () => n.modelValue, disabled: () => n.disabled });
|
|
18916
|
-
return (a, l) => (
|
|
18916
|
+
return (a, l) => (C(), I("label", se(m(i)(), {
|
|
18917
18917
|
class: ["inline-flex items-start gap-2 text-[13px] text-[var(--ui-text)]", n.disabled ? "cursor-default" : "cursor-pointer"],
|
|
18918
|
-
"data-syno-ui": ""
|
|
18918
|
+
"data-syno-pkg-land-ui": ""
|
|
18919
18919
|
}), [
|
|
18920
18920
|
Y(m(xA), se({
|
|
18921
18921
|
required: m(o)()["aria-required"] === !0
|
|
@@ -18928,9 +18928,9 @@ const MO = {
|
|
|
18928
18928
|
})
|
|
18929
18929
|
}), {
|
|
18930
18930
|
default: U(() => [
|
|
18931
|
-
Y(m(
|
|
18931
|
+
Y(m(CA), { class: "flex items-center justify-center" }, {
|
|
18932
18932
|
default: U(() => [
|
|
18933
|
-
Y(m(
|
|
18933
|
+
Y(m(Cp), {
|
|
18934
18934
|
class: "size-3 stroke-[2.5]",
|
|
18935
18935
|
"aria-hidden": "true"
|
|
18936
18936
|
})
|
|
@@ -18940,9 +18940,9 @@ const MO = {
|
|
|
18940
18940
|
]),
|
|
18941
18941
|
_: 1
|
|
18942
18942
|
}, 16, ["required", "model-value", "disabled"]),
|
|
18943
|
-
n.label || n.description ? (
|
|
18944
|
-
n.label ? (
|
|
18945
|
-
n.description ? (
|
|
18943
|
+
n.label || n.description ? (C(), I("span", MO, [
|
|
18944
|
+
n.label ? (C(), I("span", VO, de(n.label), 1)) : Q("", !0),
|
|
18945
|
+
n.description ? (C(), I("span", FO, de(n.description), 1)) : Q("", !0)
|
|
18946
18946
|
])) : Q("", !0)
|
|
18947
18947
|
], 16));
|
|
18948
18948
|
}
|
|
@@ -18957,9 +18957,9 @@ const MO = {
|
|
|
18957
18957
|
emits: ["update:modelValue"],
|
|
18958
18958
|
setup(e, { emit: t }) {
|
|
18959
18959
|
const n = e, r = t, { controlAttrs: o, wrapperAttrs: i, changed: s } = Zr({ value: () => n.modelValue, disabled: () => n.disabled });
|
|
18960
|
-
return (a, l) => (
|
|
18960
|
+
return (a, l) => (C(), I("label", se(m(i)(), {
|
|
18961
18961
|
class: ["inline-flex items-center gap-2 text-[13px] text-[var(--ui-text)]", n.disabled ? "cursor-default" : "cursor-pointer"],
|
|
18962
|
-
"data-syno-ui": ""
|
|
18962
|
+
"data-syno-pkg-land-ui": ""
|
|
18963
18963
|
}), [
|
|
18964
18964
|
Y(m(NO), se(m(o)(), {
|
|
18965
18965
|
"model-value": n.modelValue,
|
|
@@ -18974,7 +18974,7 @@ const MO = {
|
|
|
18974
18974
|
]),
|
|
18975
18975
|
_: 1
|
|
18976
18976
|
}, 16, ["model-value", "disabled"]),
|
|
18977
|
-
n.label ? (
|
|
18977
|
+
n.label ? (C(), I("span", LO, de(n.label), 1)) : Q("", !0)
|
|
18978
18978
|
], 16));
|
|
18979
18979
|
}
|
|
18980
18980
|
}), BO = { class: "block leading-4" }, UO = {
|
|
@@ -18992,22 +18992,22 @@ const MO = {
|
|
|
18992
18992
|
emits: ["update:modelValue"],
|
|
18993
18993
|
setup(e, { emit: t }) {
|
|
18994
18994
|
const n = e, r = t, { controlAttrs: o, wrapperAttrs: i, changed: s } = Zr({ value: () => n.modelValue, disabled: () => n.disabled });
|
|
18995
|
-
return (a, l) => (
|
|
18995
|
+
return (a, l) => (C(), H(m(RA), se({
|
|
18996
18996
|
required: m(o)()["aria-required"] === !0
|
|
18997
18997
|
}, { ...m(i)(), ...m(o)() }, {
|
|
18998
18998
|
"model-value": n.modelValue,
|
|
18999
18999
|
disabled: n.disabled,
|
|
19000
19000
|
orientation: n.orientation,
|
|
19001
19001
|
class: n.orientation === "horizontal" ? "flex flex-wrap gap-5" : "grid gap-2.5",
|
|
19002
|
-
"data-syno-ui": "",
|
|
19002
|
+
"data-syno-pkg-land-ui": "",
|
|
19003
19003
|
"onUpdate:modelValue": l[0] || (l[0] = (u) => {
|
|
19004
19004
|
m(s)(u), r("update:modelValue", String(u ?? ""));
|
|
19005
19005
|
})
|
|
19006
19006
|
}), {
|
|
19007
19007
|
default: U(() => [
|
|
19008
|
-
(
|
|
19008
|
+
(C(!0), I(xe, null, kt(n.options, (u) => (C(), I("label", {
|
|
19009
19009
|
key: u.value,
|
|
19010
|
-
class:
|
|
19010
|
+
class: Ce(["flex items-start gap-2 text-[13px] text-[var(--ui-text)]", n.disabled || u.disabled ? "cursor-default" : "cursor-pointer"])
|
|
19011
19011
|
}, [
|
|
19012
19012
|
Y(m(MA), {
|
|
19013
19013
|
value: u.value,
|
|
@@ -19021,7 +19021,7 @@ const MO = {
|
|
|
19021
19021
|
}, 8, ["value", "disabled"]),
|
|
19022
19022
|
oe("span", null, [
|
|
19023
19023
|
oe("span", BO, de(u.label), 1),
|
|
19024
|
-
u.description ? (
|
|
19024
|
+
u.description ? (C(), I("span", UO, de(u.description), 1)) : Q("", !0)
|
|
19025
19025
|
])
|
|
19026
19026
|
], 2))), 128))
|
|
19027
19027
|
]),
|
|
@@ -19120,39 +19120,39 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19120
19120
|
caseSensitive: () => r.caseSensitive
|
|
19121
19121
|
}), p = /* @__PURE__ */ An(/* @__PURE__ */ new Map());
|
|
19122
19122
|
qt(() => {
|
|
19123
|
-
for (const
|
|
19124
|
-
for (const
|
|
19123
|
+
for (const k of Nc(Ea(r.options))) p.set(k.value, k.label);
|
|
19124
|
+
for (const k of Nc(f.value)) p.set(k.value, k.label);
|
|
19125
19125
|
});
|
|
19126
19126
|
const h = $(() => r.modelValue ? p.get(r.modelValue) ?? "" : "");
|
|
19127
19127
|
function v() {
|
|
19128
|
-
const
|
|
19129
|
-
return
|
|
19128
|
+
const k = l.value?.$el;
|
|
19129
|
+
return k ? Array.from(k.querySelectorAll('[role="option"]')).filter(
|
|
19130
19130
|
(O) => O.getAttribute("aria-disabled") !== "true"
|
|
19131
19131
|
) : [];
|
|
19132
19132
|
}
|
|
19133
|
-
function g(
|
|
19134
|
-
if (
|
|
19133
|
+
function g(k) {
|
|
19134
|
+
if (k.key === "Escape" || k.key === "Tab" || (k.stopPropagation(), k.key !== "ArrowDown" && k.key !== "ArrowUp" && k.key !== "Enter")) return;
|
|
19135
19135
|
const O = v();
|
|
19136
19136
|
if (O.length) {
|
|
19137
|
-
if (
|
|
19137
|
+
if (k.preventDefault(), k.key === "Enter") {
|
|
19138
19138
|
c.value = !0;
|
|
19139
19139
|
const [A] = O;
|
|
19140
19140
|
A.focus(), A.dispatchEvent(new KeyboardEvent("keydown", { key: "Enter", bubbles: !0, cancelable: !0 }));
|
|
19141
19141
|
return;
|
|
19142
19142
|
}
|
|
19143
|
-
c.value = !0, O.at(
|
|
19143
|
+
c.value = !0, O.at(k.key === "ArrowDown" ? 0 : -1)?.focus();
|
|
19144
19144
|
}
|
|
19145
19145
|
}
|
|
19146
|
-
function y(
|
|
19147
|
-
!u.value || c.value ||
|
|
19146
|
+
function y(k) {
|
|
19147
|
+
!u.value || c.value || k.target !== a.value && a.value?.focus();
|
|
19148
19148
|
}
|
|
19149
|
-
pe(s, (
|
|
19150
|
-
c.value = !1,
|
|
19149
|
+
pe(s, (k) => {
|
|
19150
|
+
c.value = !1, k || (i.value = "");
|
|
19151
19151
|
});
|
|
19152
19152
|
const { controlAttrs: _, wrapperAttrs: S, changed: w } = Zr({ value: () => r.modelValue, disabled: () => r.disabled });
|
|
19153
|
-
return (
|
|
19153
|
+
return (k, O) => (C(), I("div", se(m(S)(), {
|
|
19154
19154
|
class: "w-full min-w-[min(100%,8rem)]",
|
|
19155
|
-
"data-syno-ui": ""
|
|
19155
|
+
"data-syno-pkg-land-ui": ""
|
|
19156
19156
|
}), [
|
|
19157
19157
|
Y(m(ZA), {
|
|
19158
19158
|
required: m(_)()["aria-required"] === !0,
|
|
@@ -19172,7 +19172,7 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19172
19172
|
placeholder: m(r).placeholder
|
|
19173
19173
|
}, {
|
|
19174
19174
|
default: U(({ selectedLabel: A }) => [
|
|
19175
|
-
A.length ? (
|
|
19175
|
+
A.length ? (C(), I("span", GO, de(A.join(", ")), 1)) : h.value ? (C(), I("span", YO, de(h.value), 1)) : (C(), I("span", XO, de(m(r).placeholder), 1))
|
|
19176
19176
|
]),
|
|
19177
19177
|
_: 1
|
|
19178
19178
|
}, 8, ["placeholder"]),
|
|
@@ -19188,18 +19188,18 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19188
19188
|
]),
|
|
19189
19189
|
_: 1
|
|
19190
19190
|
}, 16),
|
|
19191
|
-
Y(m(
|
|
19191
|
+
Y(m(kO), null, {
|
|
19192
19192
|
default: U(() => [
|
|
19193
19193
|
Y(m(aO), {
|
|
19194
19194
|
position: "popper",
|
|
19195
19195
|
"side-offset": 4,
|
|
19196
19196
|
class: "z-[1000] min-w-[var(--reka-select-trigger-width)] overflow-hidden rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] bg-[var(--ui-surface-raised)] p-1 shadow-[var(--ui-shadow-menu)]",
|
|
19197
|
-
"data-syno-ui": "",
|
|
19197
|
+
"data-syno-pkg-land-ui": "",
|
|
19198
19198
|
onFocusin: y,
|
|
19199
19199
|
onPointerdown: O[1] || (O[1] = (A) => c.value = !0)
|
|
19200
19200
|
}, {
|
|
19201
19201
|
default: U(() => [
|
|
19202
|
-
u.value ? (
|
|
19202
|
+
u.value ? (C(), I("div", QO, [
|
|
19203
19203
|
Ir(oe("input", {
|
|
19204
19204
|
ref_key: "searchInput",
|
|
19205
19205
|
ref: a,
|
|
@@ -19208,23 +19208,23 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19208
19208
|
placeholder: m(r).searchPlaceholder,
|
|
19209
19209
|
"aria-label": m(r).searchPlaceholder,
|
|
19210
19210
|
class: "h-7 w-full rounded-[4px] border border-[var(--ui-border)] bg-[var(--ui-surface)] px-2 text-[13px] text-[var(--ui-text)] outline-none props.placeholder:text-[var(--ui-text-muted)] focus:border-[var(--ui-primary)]",
|
|
19211
|
-
"data-syno-ui-select-search": "",
|
|
19211
|
+
"data-syno-pkg-land-ui-select-search": "",
|
|
19212
19212
|
onKeydown: g
|
|
19213
19213
|
}, null, 40, e$), [
|
|
19214
|
-
[
|
|
19214
|
+
[Cv, i.value]
|
|
19215
19215
|
])
|
|
19216
19216
|
])) : Q("", !0),
|
|
19217
|
-
m(d) ? (
|
|
19217
|
+
m(d) ? (C(), I("div", t$, de(m(r).loadingText), 1)) : (C(), H(m(PO), {
|
|
19218
19218
|
key: 2,
|
|
19219
19219
|
ref_key: "viewport",
|
|
19220
19220
|
ref: l
|
|
19221
19221
|
}, {
|
|
19222
19222
|
default: U(() => [
|
|
19223
|
-
(
|
|
19223
|
+
(C(!0), I(xe, null, kt(m(f), (A) => (C(), H(m(dO), {
|
|
19224
19224
|
key: A.key
|
|
19225
19225
|
}, {
|
|
19226
19226
|
default: U(() => [
|
|
19227
|
-
A.label ? (
|
|
19227
|
+
A.label ? (C(), H(m(SO), {
|
|
19228
19228
|
key: 0,
|
|
19229
19229
|
class: "px-2.5 py-1 text-[11px] font-semibold text-[var(--ui-text-muted)]"
|
|
19230
19230
|
}, {
|
|
@@ -19233,12 +19233,12 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19233
19233
|
]),
|
|
19234
19234
|
_: 2
|
|
19235
19235
|
}, 1024)) : Q("", !0),
|
|
19236
|
-
(
|
|
19236
|
+
(C(!0), I(xe, null, kt(A.options, (T) => (C(), H(m(vO), {
|
|
19237
19237
|
key: T.value,
|
|
19238
19238
|
value: T.value,
|
|
19239
19239
|
"text-value": T.label,
|
|
19240
19240
|
disabled: T.disabled,
|
|
19241
|
-
class:
|
|
19241
|
+
class: Ce(["relative flex h-8 select-none items-center rounded-[4px] py-1 pr-8 text-[13px] text-[var(--ui-text)] outline-none data-[highlighted]:bg-[var(--ui-primary-soft)] data-[highlighted]:text-[var(--ui-primary-active)] data-[disabled]:opacity-40", A.label && A.indent ? "pl-5" : "pl-2.5"])
|
|
19242
19242
|
}, {
|
|
19243
19243
|
default: U(() => [
|
|
19244
19244
|
Y(m(_O), null, {
|
|
@@ -19249,7 +19249,7 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19249
19249
|
}, 1024),
|
|
19250
19250
|
Y(m(yO), { class: "absolute right-2 inline-flex items-center text-[var(--ui-primary)]" }, {
|
|
19251
19251
|
default: U(() => [
|
|
19252
|
-
Y(m(
|
|
19252
|
+
Y(m(Cp), {
|
|
19253
19253
|
class: "size-4",
|
|
19254
19254
|
"aria-hidden": "true"
|
|
19255
19255
|
})
|
|
@@ -19262,7 +19262,7 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19262
19262
|
]),
|
|
19263
19263
|
_: 2
|
|
19264
19264
|
}, 1024))), 128)),
|
|
19265
|
-
m(f).length ? Q("", !0) : (
|
|
19265
|
+
m(f).length ? Q("", !0) : (C(), I("div", n$, de(m(r).notFoundText), 1))
|
|
19266
19266
|
]),
|
|
19267
19267
|
_: 1
|
|
19268
19268
|
}, 512))
|
|
@@ -19283,8 +19283,8 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19283
19283
|
tone: { default: "neutral" }
|
|
19284
19284
|
},
|
|
19285
19285
|
setup(e) {
|
|
19286
|
-
return (t, n) => (
|
|
19287
|
-
class:
|
|
19286
|
+
return (t, n) => (C(), I("span", {
|
|
19287
|
+
class: Ce([
|
|
19288
19288
|
"inline-flex min-h-5 items-center rounded-full px-2 py-0.5 text-[12px] font-semibold leading-none",
|
|
19289
19289
|
e.tone === "neutral" && "bg-[#eef2f5] text-[var(--ui-text-secondary)]",
|
|
19290
19290
|
e.tone === "info" && "bg-[var(--ui-primary-soft)] text-[var(--ui-primary-active)]",
|
|
@@ -19292,7 +19292,7 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19292
19292
|
e.tone === "warning" && "bg-[#fff3dc] text-[#a76400]",
|
|
19293
19293
|
e.tone === "danger" && "bg-[#fdeaea] text-[#b83232]"
|
|
19294
19294
|
]),
|
|
19295
|
-
"data-syno-ui": ""
|
|
19295
|
+
"data-syno-pkg-land-ui": ""
|
|
19296
19296
|
}, [
|
|
19297
19297
|
B(t.$slots, "default")
|
|
19298
19298
|
], 2));
|
|
@@ -19305,29 +19305,29 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19305
19305
|
},
|
|
19306
19306
|
setup(e) {
|
|
19307
19307
|
const n = Jn(e, { label: "Loading" });
|
|
19308
|
-
return (r, o) => (
|
|
19308
|
+
return (r, o) => (C(), I("div", {
|
|
19309
19309
|
class: "inline-flex min-h-8 items-center gap-2 rounded-[var(--ui-radius-sm)] border border-[var(--ui-border)] bg-[var(--ui-surface)] py-1 pr-4 pl-2 text-[length:var(--ui-font-size)] leading-5 text-[var(--ui-text)] shadow-[var(--ui-shadow-card)]",
|
|
19310
19310
|
role: "status",
|
|
19311
19311
|
"aria-label": e.text || m(n).label,
|
|
19312
|
-
"data-syno-ui": ""
|
|
19312
|
+
"data-syno-pkg-land-ui": ""
|
|
19313
19313
|
}, [
|
|
19314
19314
|
Y(xp, {
|
|
19315
19315
|
label: e.text || m(n).label,
|
|
19316
19316
|
size: 24
|
|
19317
19317
|
}, null, 8, ["label"]),
|
|
19318
|
-
e.text ? (
|
|
19318
|
+
e.text ? (C(), I("span", s$, de(e.text), 1)) : Q("", !0)
|
|
19319
19319
|
], 8, i$));
|
|
19320
19320
|
}
|
|
19321
19321
|
}), l$ = {
|
|
19322
19322
|
class: "flex h-full min-h-32 w-full items-center justify-center",
|
|
19323
|
-
"data-syno-ui": ""
|
|
19323
|
+
"data-syno-pkg-land-ui": ""
|
|
19324
19324
|
}, u$ = /* @__PURE__ */ V({
|
|
19325
19325
|
__name: "LoadingArea",
|
|
19326
19326
|
props: {
|
|
19327
19327
|
text: { default: "" }
|
|
19328
19328
|
},
|
|
19329
19329
|
setup(e) {
|
|
19330
|
-
return (t, n) => (
|
|
19330
|
+
return (t, n) => (C(), I("div", l$, [
|
|
19331
19331
|
Y(a$, { text: e.text }, null, 8, ["text"])
|
|
19332
19332
|
]));
|
|
19333
19333
|
}
|
|
@@ -19345,12 +19345,12 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19345
19345
|
},
|
|
19346
19346
|
setup(e) {
|
|
19347
19347
|
const t = Ha(), n = () => Object.fromEntries(Object.entries(t).filter(([i]) => i !== "class" && i !== "style")), r = e, o = $(() => r.max <= 0 ? 0 : Math.min(100, Math.max(0, r.value / r.max * 100)));
|
|
19348
|
-
return (i, s) => (
|
|
19349
|
-
class:
|
|
19348
|
+
return (i, s) => (C(), I("div", {
|
|
19349
|
+
class: Ce(m(t).class),
|
|
19350
19350
|
style: Fe(m(t).style),
|
|
19351
|
-
"data-syno-ui": ""
|
|
19351
|
+
"data-syno-pkg-land-ui": ""
|
|
19352
19352
|
}, [
|
|
19353
|
-
e.label || e.valueLabel ? (
|
|
19353
|
+
e.label || e.valueLabel ? (C(), I("div", c$, [
|
|
19354
19354
|
oe("span", null, de(e.label), 1),
|
|
19355
19355
|
oe("span", null, de(e.valueLabel ?? `${Math.round(o.value)}%`), 1)
|
|
19356
19356
|
])) : Q("", !0),
|
|
@@ -19377,8 +19377,8 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19377
19377
|
raised: { type: Boolean, default: !1 }
|
|
19378
19378
|
},
|
|
19379
19379
|
setup(e) {
|
|
19380
|
-
return (t, n) => (
|
|
19381
|
-
class:
|
|
19380
|
+
return (t, n) => (C(), I("section", {
|
|
19381
|
+
class: Ce([
|
|
19382
19382
|
"rounded-[var(--ui-radius-md)] bg-[var(--ui-surface)]",
|
|
19383
19383
|
e.border && "border border-[var(--ui-border)]",
|
|
19384
19384
|
e.raised && "shadow-[var(--ui-shadow-menu)]",
|
|
@@ -19386,7 +19386,7 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19386
19386
|
e.padding === "md" && "p-4",
|
|
19387
19387
|
e.padding === "lg" && "p-6"
|
|
19388
19388
|
]),
|
|
19389
|
-
"data-syno-ui": ""
|
|
19389
|
+
"data-syno-pkg-land-ui": ""
|
|
19390
19390
|
}, [
|
|
19391
19391
|
B(t.$slots, "default")
|
|
19392
19392
|
], 2));
|
|
@@ -19417,28 +19417,28 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19417
19417
|
r.open === void 0 && (i.value = a), o("update:open", a);
|
|
19418
19418
|
}
|
|
19419
19419
|
});
|
|
19420
|
-
return (a, l) => (
|
|
19420
|
+
return (a, l) => (C(), H(m(pk), {
|
|
19421
19421
|
open: s.value,
|
|
19422
19422
|
"onUpdate:open": l[5] || (l[5] = (u) => s.value = u)
|
|
19423
19423
|
}, {
|
|
19424
19424
|
default: U(() => [
|
|
19425
|
-
a.$slots.trigger ? (
|
|
19425
|
+
a.$slots.trigger ? (C(), H(m(Hk), se({ key: 0 }, a.$attrs.id ? { "aria-controls": s.value ? a.$attrs.id : void 0 } : {}, { "as-child": "" }), {
|
|
19426
19426
|
default: U(() => [
|
|
19427
19427
|
B(a.$slots, "trigger")
|
|
19428
19428
|
]),
|
|
19429
19429
|
_: 3
|
|
19430
19430
|
}, 16)) : Q("", !0),
|
|
19431
|
-
Y(m(
|
|
19431
|
+
Y(m(Uk), null, {
|
|
19432
19432
|
default: U(() => [
|
|
19433
|
-
Y(m(
|
|
19433
|
+
Y(m(Lk), {
|
|
19434
19434
|
"data-ui-overlay": "",
|
|
19435
19435
|
class: "fixed inset-0 z-[1200] bg-black/20 backdrop-blur-[1px]"
|
|
19436
19436
|
}),
|
|
19437
|
-
Y(m(
|
|
19437
|
+
Y(m(zk), se(a.$attrs, {
|
|
19438
19438
|
"data-ui-dialog": "",
|
|
19439
19439
|
class: "fixed top-1/2 left-1/2 z-[1201] max-h-[85vh] w-[calc(100vw-32px)] -translate-x-1/2 -translate-y-1/2 overflow-hidden rounded-[var(--ui-radius-lg)] border border-[var(--ui-border)] bg-[var(--ui-surface-raised)] shadow-[var(--ui-shadow-dialog)] outline-none",
|
|
19440
19440
|
style: { maxWidth: m(r).width },
|
|
19441
|
-
"data-syno-ui": "",
|
|
19441
|
+
"data-syno-pkg-land-ui": "",
|
|
19442
19442
|
onEscapeKeyDown: l[0] || (l[0] = (u) => o("escapeKeyDown", u)),
|
|
19443
19443
|
onPointerDownOutside: l[1] || (l[1] = (u) => o("pointerDownOutside", u)),
|
|
19444
19444
|
onInteractOutside: l[2] || (l[2] = (u) => o("interactOutside", u)),
|
|
@@ -19448,7 +19448,7 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19448
19448
|
default: U(() => [
|
|
19449
19449
|
oe("header", p$, [
|
|
19450
19450
|
oe("div", h$, [
|
|
19451
|
-
m(r).title ? (
|
|
19451
|
+
m(r).title ? (C(), H(m(Wk), {
|
|
19452
19452
|
key: 0,
|
|
19453
19453
|
class: "text-[14px] font-semibold text-[var(--ui-text)]"
|
|
19454
19454
|
}, {
|
|
@@ -19457,7 +19457,7 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19457
19457
|
]),
|
|
19458
19458
|
_: 1
|
|
19459
19459
|
})) : Q("", !0),
|
|
19460
|
-
m(r).description ? (
|
|
19460
|
+
m(r).description ? (C(), H(m(Mk), {
|
|
19461
19461
|
key: 1,
|
|
19462
19462
|
class: "mt-0.5 text-[12px] text-[var(--ui-text-muted)]"
|
|
19463
19463
|
}, {
|
|
@@ -19467,7 +19467,7 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19467
19467
|
_: 1
|
|
19468
19468
|
})) : Q("", !0)
|
|
19469
19469
|
]),
|
|
19470
|
-
m(r).showClose ? (
|
|
19470
|
+
m(r).showClose ? (C(), H(m(mk), {
|
|
19471
19471
|
key: 0,
|
|
19472
19472
|
class: "-m-1 flex size-7 shrink-0 items-center justify-center rounded-[var(--ui-radius-sm)] text-[var(--ui-text-muted)] outline-none hover:bg-[var(--ui-surface-hover)] hover:text-[var(--ui-text)] focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]",
|
|
19473
19473
|
"aria-label": m(r).closeLabel
|
|
@@ -19484,7 +19484,7 @@ const GO = { key: 0 }, YO = { key: 1 }, XO = { key: 2 }, QO = {
|
|
|
19484
19484
|
oe("div", m$, [
|
|
19485
19485
|
B(a.$slots, "default")
|
|
19486
19486
|
]),
|
|
19487
|
-
a.$slots.footer ? (
|
|
19487
|
+
a.$slots.footer ? (C(), I("footer", v$, [
|
|
19488
19488
|
B(a.$slots, "footer")
|
|
19489
19489
|
])) : Q("", !0)
|
|
19490
19490
|
]),
|
|
@@ -19536,15 +19536,15 @@ const w$ = ["disabled", "aria-label", "value", "placeholder"], S$ = ["disabled",
|
|
|
19536
19536
|
emits: ["update:modelValue"],
|
|
19537
19537
|
setup(e, { emit: t }) {
|
|
19538
19538
|
const r = Jn(e, { placeholder: "Search", clearLabel: "Clear search" }), o = t, { controlAttrs: i, wrapperAttrs: s, changed: a } = Zr({ value: () => r.modelValue, disabled: () => r.disabled });
|
|
19539
|
-
return (l, u) => (
|
|
19539
|
+
return (l, u) => (C(), I("div", se(m(s)(), {
|
|
19540
19540
|
class: "relative block min-w-0",
|
|
19541
|
-
"data-syno-ui": ""
|
|
19541
|
+
"data-syno-pkg-land-ui": ""
|
|
19542
19542
|
}), [
|
|
19543
|
-
m(r).variant === "filter" ? (
|
|
19543
|
+
m(r).variant === "filter" ? (C(), H(m(hx), {
|
|
19544
19544
|
key: 0,
|
|
19545
19545
|
class: "pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-[var(--ui-text)]",
|
|
19546
19546
|
"aria-hidden": "true"
|
|
19547
|
-
})) : (
|
|
19547
|
+
})) : (C(), H(m(_x), {
|
|
19548
19548
|
key: 1,
|
|
19549
19549
|
class: "pointer-events-none absolute top-1/2 left-2.5 size-4 -translate-y-1/2 text-[var(--ui-text-muted)]",
|
|
19550
19550
|
"aria-hidden": "true"
|
|
@@ -19560,7 +19560,7 @@ const w$ = ["disabled", "aria-label", "value", "placeholder"], S$ = ["disabled",
|
|
|
19560
19560
|
m(a)(c.target.value), o("update:modelValue", c.target.value);
|
|
19561
19561
|
})
|
|
19562
19562
|
}), null, 16, w$),
|
|
19563
|
-
m(r).modelValue ? (
|
|
19563
|
+
m(r).modelValue ? (C(), I("button", {
|
|
19564
19564
|
key: 2,
|
|
19565
19565
|
disabled: m(r).disabled,
|
|
19566
19566
|
type: "button",
|
|
@@ -19587,12 +19587,12 @@ function Kr(e) {
|
|
|
19587
19587
|
}), n.observe(e.value)));
|
|
19588
19588
|
}), mr(() => n?.disconnect()), t;
|
|
19589
19589
|
}
|
|
19590
|
-
const
|
|
19590
|
+
const k$ = { xs: "96px", sm: "160px", md: "320px", lg: "480px" }, Pa = "md";
|
|
19591
19591
|
function oh(e) {
|
|
19592
19592
|
const t = e ?? Pa;
|
|
19593
|
-
return t === "full" ? void 0 :
|
|
19593
|
+
return t === "full" ? void 0 : k$[t] ?? t;
|
|
19594
19594
|
}
|
|
19595
|
-
const
|
|
19595
|
+
const C$ = ["data-direction"], A$ = {
|
|
19596
19596
|
key: 0,
|
|
19597
19597
|
class: "ml-0.5 text-[var(--ui-danger)]"
|
|
19598
19598
|
}, O$ = { class: "min-w-0" }, $$ = {
|
|
@@ -19609,22 +19609,22 @@ const k$ = ["data-direction"], A$ = {
|
|
|
19609
19609
|
},
|
|
19610
19610
|
setup(e) {
|
|
19611
19611
|
const t = e, n = $(() => ({ maxWidth: oh(t.fieldWidth) })), r = Pt("root"), o = Kr(r), i = $(() => o.value > 0 && o.value < 520);
|
|
19612
|
-
return (s, a) => (
|
|
19612
|
+
return (s, a) => (C(), I("div", {
|
|
19613
19613
|
ref_key: "root",
|
|
19614
19614
|
ref: r,
|
|
19615
19615
|
"data-direction": i.value ? "vertical" : "horizontal",
|
|
19616
19616
|
style: Fe(i.value ? { gridTemplateColumns: "minmax(0, 1fr)" } : void 0),
|
|
19617
|
-
class:
|
|
19617
|
+
class: Ce([
|
|
19618
19618
|
"grid min-h-10 grid-cols-[minmax(130px,220px)_minmax(0,1fr)] gap-x-5 gap-y-1 py-1.5",
|
|
19619
19619
|
e.align === "start" ? "items-start" : "items-center"
|
|
19620
19620
|
]),
|
|
19621
|
-
"data-syno-ui": ""
|
|
19621
|
+
"data-syno-pkg-land-ui": ""
|
|
19622
19622
|
}, [
|
|
19623
19623
|
oe("div", {
|
|
19624
|
-
class:
|
|
19624
|
+
class: Ce(["min-w-0 break-words pt-1 text-[13px] text-[var(--ui-text-secondary)]", i.value ? "text-left" : "text-right"])
|
|
19625
19625
|
}, [
|
|
19626
19626
|
Qe(de(e.label), 1),
|
|
19627
|
-
e.required ? (
|
|
19627
|
+
e.required ? (C(), I("span", A$, "*")) : Q("", !0)
|
|
19628
19628
|
], 2),
|
|
19629
19629
|
oe("div", O$, [
|
|
19630
19630
|
oe("div", {
|
|
@@ -19633,9 +19633,9 @@ const k$ = ["data-direction"], A$ = {
|
|
|
19633
19633
|
}, [
|
|
19634
19634
|
B(s.$slots, "default")
|
|
19635
19635
|
], 4),
|
|
19636
|
-
e.description ? (
|
|
19636
|
+
e.description ? (C(), I("p", $$, de(e.description), 1)) : Q("", !0)
|
|
19637
19637
|
])
|
|
19638
|
-
], 14,
|
|
19638
|
+
], 14, C$));
|
|
19639
19639
|
}
|
|
19640
19640
|
});
|
|
19641
19641
|
function ih(e, t, n) {
|
|
@@ -19648,7 +19648,7 @@ function ih(e, t, n) {
|
|
|
19648
19648
|
}
|
|
19649
19649
|
return { value: i, isControlled: o, set: s, toggle: () => s(!i.value) };
|
|
19650
19650
|
}
|
|
19651
|
-
const P$ = { "data-syno-ui": "" }, T$ = {
|
|
19651
|
+
const P$ = { "data-syno-pkg-land-ui": "" }, T$ = {
|
|
19652
19652
|
key: 0,
|
|
19653
19653
|
class: "flex h-9 items-center gap-2 border-0 border-b border-dashed border-[var(--ui-border)]"
|
|
19654
19654
|
}, I$ = ["aria-expanded", "aria-controls"], R$ = { class: "min-w-0 truncate" }, N$ = {
|
|
@@ -19675,8 +19675,8 @@ const P$ = { "data-syno-ui": "" }, T$ = {
|
|
|
19675
19675
|
n.defaultOpen,
|
|
19676
19676
|
(l) => r("update:open", l)
|
|
19677
19677
|
), a = $(() => i.value || !n.collapsible);
|
|
19678
|
-
return (l, u) => (
|
|
19679
|
-
e.collapsible ? (
|
|
19678
|
+
return (l, u) => (C(), I("section", P$, [
|
|
19679
|
+
e.collapsible ? (C(), I("div", T$, [
|
|
19680
19680
|
oe("button", {
|
|
19681
19681
|
type: "button",
|
|
19682
19682
|
class: "group m-0 flex h-full min-w-0 flex-1 border-0 bg-transparent p-0 items-center gap-2 text-left text-[14px] font-medium text-[var(--ui-primary)] outline-none focus-visible:shadow-[inset_0_0_0_2px_var(--ui-focus-ring)]",
|
|
@@ -19686,7 +19686,7 @@ const P$ = { "data-syno-ui": "" }, T$ = {
|
|
|
19686
19686
|
(...c) => m(s) && m(s)(...c))
|
|
19687
19687
|
}, [
|
|
19688
19688
|
Y(m(os), {
|
|
19689
|
-
class:
|
|
19689
|
+
class: Ce(["size-4 shrink-0 transition-transform", !m(i) && "-rotate-90"]),
|
|
19690
19690
|
"aria-hidden": "true"
|
|
19691
19691
|
}, null, 8, ["class"]),
|
|
19692
19692
|
oe("span", R$, [
|
|
@@ -19695,16 +19695,16 @@ const P$ = { "data-syno-ui": "" }, T$ = {
|
|
|
19695
19695
|
])
|
|
19696
19696
|
])
|
|
19697
19697
|
], 8, I$),
|
|
19698
|
-
l.$slots.actions ? (
|
|
19698
|
+
l.$slots.actions ? (C(), I("span", N$, [
|
|
19699
19699
|
B(l.$slots, "actions")
|
|
19700
19700
|
])) : Q("", !0)
|
|
19701
|
-
])) : (
|
|
19701
|
+
])) : (C(), I("div", z$, [
|
|
19702
19702
|
oe("span", D$, [
|
|
19703
19703
|
B(l.$slots, "title", {}, () => [
|
|
19704
19704
|
Qe(de(e.title), 1)
|
|
19705
19705
|
])
|
|
19706
19706
|
]),
|
|
19707
|
-
l.$slots.actions ? (
|
|
19707
|
+
l.$slots.actions ? (C(), I("span", M$, [
|
|
19708
19708
|
B(l.$slots, "actions")
|
|
19709
19709
|
])) : Q("", !0)
|
|
19710
19710
|
])),
|
|
@@ -19735,18 +19735,18 @@ const P$ = { "data-syno-ui": "" }, T$ = {
|
|
|
19735
19735
|
emits: ["close"],
|
|
19736
19736
|
setup(e, { emit: t }) {
|
|
19737
19737
|
const r = Jn(e, { closeLabel: "Close" }), o = t, i = $(() => ({ info: vx, success: fx, warning: Sx, danger: cx })[r.tone]);
|
|
19738
|
-
return (s, a) => (
|
|
19739
|
-
class:
|
|
19738
|
+
return (s, a) => (C(), I("div", {
|
|
19739
|
+
class: Ce([
|
|
19740
19740
|
"flex gap-2.5 rounded-[var(--ui-radius-md)] border px-3 py-2.5 text-[13px] leading-5",
|
|
19741
19741
|
e.tone === "info" && "border-[#d7eafa] bg-[#edf6ff] text-[var(--ui-text-secondary)]",
|
|
19742
19742
|
e.tone === "success" && "border-[#cfeadd] bg-[#edf8f3] text-[var(--ui-text-secondary)]",
|
|
19743
19743
|
e.tone === "warning" && "border-[#f3dfb8] bg-[#fff7e8] text-[var(--ui-text-secondary)]",
|
|
19744
19744
|
e.tone === "danger" && "border-[#f2d0d0] bg-[#fff1f1] text-[var(--ui-text-secondary)]"
|
|
19745
19745
|
]),
|
|
19746
|
-
"data-syno-ui": ""
|
|
19746
|
+
"data-syno-pkg-land-ui": ""
|
|
19747
19747
|
}, [
|
|
19748
|
-
(
|
|
19749
|
-
class:
|
|
19748
|
+
(C(), H(Nr(i.value), {
|
|
19749
|
+
class: Ce([
|
|
19750
19750
|
"mt-0.5 size-4 shrink-0",
|
|
19751
19751
|
e.tone === "info" && "text-[var(--ui-info)]",
|
|
19752
19752
|
e.tone === "success" && "text-[var(--ui-success)]",
|
|
@@ -19756,13 +19756,13 @@ const P$ = { "data-syno-ui": "" }, T$ = {
|
|
|
19756
19756
|
"aria-hidden": "true"
|
|
19757
19757
|
}, null, 8, ["class"])),
|
|
19758
19758
|
oe("div", j$, [
|
|
19759
|
-
e.title ? (
|
|
19759
|
+
e.title ? (C(), I("div", L$, de(e.title), 1)) : Q("", !0),
|
|
19760
19760
|
B(s.$slots, "default"),
|
|
19761
|
-
s.$slots.actions ? (
|
|
19761
|
+
s.$slots.actions ? (C(), I("div", q$, [
|
|
19762
19762
|
B(s.$slots, "actions")
|
|
19763
19763
|
])) : Q("", !0)
|
|
19764
19764
|
]),
|
|
19765
|
-
e.closable ? (
|
|
19765
|
+
e.closable ? (C(), I("button", {
|
|
19766
19766
|
key: 0,
|
|
19767
19767
|
type: "button",
|
|
19768
19768
|
class: "-m-1 flex size-6 shrink-0 items-center justify-center rounded-[var(--ui-radius-sm)] text-current opacity-70 outline-none hover:bg-[var(--ui-surface-hover)] hover:opacity-100 focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]",
|
|
@@ -19778,7 +19778,7 @@ const P$ = { "data-syno-ui": "" }, T$ = {
|
|
|
19778
19778
|
}
|
|
19779
19779
|
}), Z$ = {
|
|
19780
19780
|
class: "flex min-h-28 flex-col items-center justify-center px-6 py-5 text-center",
|
|
19781
|
-
"data-syno-ui": ""
|
|
19781
|
+
"data-syno-pkg-land-ui": ""
|
|
19782
19782
|
}, W$ = {
|
|
19783
19783
|
key: 0,
|
|
19784
19784
|
class: "mb-3 flex size-12 items-center justify-center rounded-full bg-[var(--ui-surface-subtle)] text-[var(--ui-text-muted)]"
|
|
@@ -19796,16 +19796,16 @@ const P$ = { "data-syno-ui": "" }, T$ = {
|
|
|
19796
19796
|
icon: {}
|
|
19797
19797
|
},
|
|
19798
19798
|
setup(e) {
|
|
19799
|
-
return (t, n) => (
|
|
19800
|
-
e.icon ? (
|
|
19801
|
-
(
|
|
19799
|
+
return (t, n) => (C(), I("div", Z$, [
|
|
19800
|
+
e.icon ? (C(), I("div", W$, [
|
|
19801
|
+
(C(), H(Nr(e.icon), {
|
|
19802
19802
|
class: "size-6",
|
|
19803
19803
|
"aria-hidden": "true"
|
|
19804
19804
|
}))
|
|
19805
19805
|
])) : Q("", !0),
|
|
19806
19806
|
oe("h3", K$, de(e.title), 1),
|
|
19807
|
-
e.description ? (
|
|
19808
|
-
t.$slots.actions ? (
|
|
19807
|
+
e.description ? (C(), I("p", H$, de(e.description), 1)) : Q("", !0),
|
|
19808
|
+
t.$slots.actions ? (C(), I("div", J$, [
|
|
19809
19809
|
B(t.$slots, "actions")
|
|
19810
19810
|
])) : Q("", !0)
|
|
19811
19811
|
]));
|
|
@@ -19843,22 +19843,22 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
19843
19843
|
function a(l, u) {
|
|
19844
19844
|
return String(l[n.rowKey] ?? u);
|
|
19845
19845
|
}
|
|
19846
|
-
return (l, u) => (
|
|
19846
|
+
return (l, u) => (C(), I("div", {
|
|
19847
19847
|
ref_key: "root",
|
|
19848
19848
|
ref: r,
|
|
19849
19849
|
"data-ui-data-table": "",
|
|
19850
19850
|
"data-ui-data-view": s.value ? "cards" : "table",
|
|
19851
19851
|
class: "min-w-0",
|
|
19852
|
-
"data-syno-ui": ""
|
|
19852
|
+
"data-syno-pkg-land-ui": ""
|
|
19853
19853
|
}, [
|
|
19854
|
-
s.value && !m(n).rows.length ? (
|
|
19855
|
-
(
|
|
19854
|
+
s.value && !m(n).rows.length ? (C(), I("p", Q$, de(m(n).emptyText), 1)) : s.value ? (C(), I("div", eE, [
|
|
19855
|
+
(C(!0), I(xe, null, kt(m(n).rows, (c, f) => (C(), I("article", {
|
|
19856
19856
|
key: a(c, f),
|
|
19857
19857
|
class: "min-w-0 rounded-[var(--ui-radius-md)] border border-[var(--ui-border)] bg-[var(--ui-surface)] px-3 py-2.5",
|
|
19858
19858
|
role: "listitem"
|
|
19859
19859
|
}, [
|
|
19860
19860
|
oe("dl", tE, [
|
|
19861
|
-
(
|
|
19861
|
+
(C(!0), I(xe, null, kt(m(n).columns, (d) => (C(), I("div", {
|
|
19862
19862
|
key: d.key,
|
|
19863
19863
|
class: "grid min-w-0 grid-cols-[minmax(100px,35%)_minmax(0,1fr)] items-start gap-2"
|
|
19864
19864
|
}, [
|
|
@@ -19875,30 +19875,30 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
19875
19875
|
]))), 128))
|
|
19876
19876
|
])
|
|
19877
19877
|
]))), 128))
|
|
19878
|
-
])) : (
|
|
19878
|
+
])) : (C(), I("div", oE, [
|
|
19879
19879
|
oe("table", iE, [
|
|
19880
19880
|
oe("thead", sE, [
|
|
19881
19881
|
oe("tr", null, [
|
|
19882
|
-
(
|
|
19882
|
+
(C(!0), I(xe, null, kt(m(n).columns, (c) => (C(), I("th", {
|
|
19883
19883
|
key: c.key,
|
|
19884
|
-
class:
|
|
19884
|
+
class: Ce(["border-b border-[var(--ui-border)] px-3 py-2 font-medium", c.align === "right" ? "text-right" : c.align === "center" ? "text-center" : "text-left"]),
|
|
19885
19885
|
style: Fe(c.width ? { width: c.width } : void 0)
|
|
19886
19886
|
}, de(c.label), 7))), 128))
|
|
19887
19887
|
])
|
|
19888
19888
|
]),
|
|
19889
19889
|
oe("tbody", null, [
|
|
19890
|
-
m(n).rows.length === 0 ? (
|
|
19890
|
+
m(n).rows.length === 0 ? (C(), I("tr", aE, [
|
|
19891
19891
|
oe("td", {
|
|
19892
19892
|
colspan: m(n).columns.length,
|
|
19893
19893
|
class: "px-3 py-10 text-center text-[var(--ui-text-muted)]"
|
|
19894
19894
|
}, de(m(n).emptyText), 9, lE)
|
|
19895
|
-
])) : (
|
|
19895
|
+
])) : (C(!0), I(xe, { key: 1 }, kt(m(n).rows, (c, f) => (C(), I("tr", {
|
|
19896
19896
|
key: a(c, f),
|
|
19897
19897
|
class: "border-b border-[var(--ui-border-subtle)] last:border-b-0 hover:bg-[var(--ui-surface-hover)]"
|
|
19898
19898
|
}, [
|
|
19899
|
-
(
|
|
19899
|
+
(C(!0), I(xe, null, kt(m(n).columns, (d) => (C(), I("td", {
|
|
19900
19900
|
key: d.key,
|
|
19901
|
-
class:
|
|
19901
|
+
class: Ce([
|
|
19902
19902
|
"px-3 text-[var(--ui-text)]",
|
|
19903
19903
|
m(n).compact ? "h-9" : "h-11",
|
|
19904
19904
|
d.align === "right" ? "text-right" : d.align === "center" ? "text-center" : "text-left"
|
|
@@ -19949,17 +19949,17 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
19949
19949
|
d.value ? "px-4 py-3" : "px-5 py-4"
|
|
19950
19950
|
)
|
|
19951
19951
|
);
|
|
19952
|
-
return (g, y) => (
|
|
19952
|
+
return (g, y) => (C(), H(rh, {
|
|
19953
19953
|
padding: "none",
|
|
19954
19954
|
class: "overflow-hidden",
|
|
19955
19955
|
"data-layout": e.layoutType
|
|
19956
19956
|
}, {
|
|
19957
19957
|
default: U(() => [
|
|
19958
|
-
e.hasHeader ? (
|
|
19958
|
+
e.hasHeader ? (C(), I("header", {
|
|
19959
19959
|
key: 0,
|
|
19960
|
-
class:
|
|
19960
|
+
class: Ce(h.value)
|
|
19961
19961
|
}, [
|
|
19962
|
-
f.value ? (
|
|
19962
|
+
f.value ? (C(), I("h3", {
|
|
19963
19963
|
key: 0,
|
|
19964
19964
|
id: m(a),
|
|
19965
19965
|
class: "m-0 min-w-0 truncate text-[length:var(--ui-font-size-lg)] font-semibold text-[var(--ui-text)]"
|
|
@@ -19968,9 +19968,9 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
19968
19968
|
Qe(de(e.title), 1)
|
|
19969
19969
|
])
|
|
19970
19970
|
], 8, uE)) : Q("", !0),
|
|
19971
|
-
g.$slots["header-actions"] || e.expandable ? (
|
|
19971
|
+
g.$slots["header-actions"] || e.expandable ? (C(), I("div", cE, [
|
|
19972
19972
|
B(g.$slots, "header-actions"),
|
|
19973
|
-
e.expandable ? (
|
|
19973
|
+
e.expandable ? (C(), I("button", {
|
|
19974
19974
|
key: 0,
|
|
19975
19975
|
type: "button",
|
|
19976
19976
|
"data-card-toggle": "",
|
|
@@ -19983,7 +19983,7 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
19983
19983
|
(..._) => m(c) && m(c)(..._))
|
|
19984
19984
|
}, [
|
|
19985
19985
|
Y(m(os), {
|
|
19986
|
-
class:
|
|
19986
|
+
class: Ce(m(yn)("size-4 transition-transform duration-[var(--ui-motion-fast)]", !m(u) && "-rotate-90")),
|
|
19987
19987
|
"aria-hidden": "true"
|
|
19988
19988
|
}, null, 8, ["class"])
|
|
19989
19989
|
], 8, dE)) : Q("", !0)
|
|
@@ -19991,7 +19991,7 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
19991
19991
|
], 2)) : Q("", !0),
|
|
19992
19992
|
Ir(oe("div", {
|
|
19993
19993
|
id: m(l),
|
|
19994
|
-
class:
|
|
19994
|
+
class: Ce(v.value),
|
|
19995
19995
|
role: e.expandable ? "region" : void 0,
|
|
19996
19996
|
"aria-labelledby": e.expandable && f.value ? m(a) : void 0
|
|
19997
19997
|
}, [
|
|
@@ -20001,9 +20001,9 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20001
20001
|
], 10, fE), [
|
|
20002
20002
|
[_o, p.value]
|
|
20003
20003
|
]),
|
|
20004
|
-
g.$slots.footer ? (
|
|
20004
|
+
g.$slots.footer ? (C(), I("footer", {
|
|
20005
20005
|
key: 1,
|
|
20006
|
-
class:
|
|
20006
|
+
class: Ce(m(yn)("flex flex-wrap items-center gap-2 border-t border-[var(--ui-border-subtle)] px-5 py-2.5", o[e.footerAlign]))
|
|
20007
20007
|
}, [
|
|
20008
20008
|
B(g.$slots, "footer")
|
|
20009
20009
|
], 2)) : Q("", !0)
|
|
@@ -20025,11 +20025,11 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20025
20025
|
const s = Pt("background"), a = Pt("portal"), l = t.modalScope, u = l === "app" ? new Hx(r, s) : null;
|
|
20026
20026
|
return st(Op, u), pe(() => t.modalScope, (c) => {
|
|
20027
20027
|
if (c !== l) throw new Error("AppRoot modal-scope is fixed for the mounted root; remount to change it");
|
|
20028
|
-
}), (c, f) => (
|
|
20028
|
+
}), (c, f) => (C(), I("div", {
|
|
20029
20029
|
ref_key: "root",
|
|
20030
20030
|
ref: r,
|
|
20031
20031
|
"data-ui-app": "",
|
|
20032
|
-
"data-syno-ui": "",
|
|
20032
|
+
"data-syno-pkg-land-ui": "",
|
|
20033
20033
|
"data-ui-presentation": i.value,
|
|
20034
20034
|
"data-ui-modal-scope": m(l) === "app" ? "app" : void 0,
|
|
20035
20035
|
style: Fe(m(l) === "app" ? { position: "relative", isolation: "isolate", overflow: "hidden" } : void 0),
|
|
@@ -20040,7 +20040,7 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20040
20040
|
"scroll-body": !1
|
|
20041
20041
|
}, {
|
|
20042
20042
|
default: U(() => [
|
|
20043
|
-
m(l) === "app" ? (
|
|
20043
|
+
m(l) === "app" ? (C(), I(xe, { key: 0 }, [
|
|
20044
20044
|
oe("div", {
|
|
20045
20045
|
ref_key: "background",
|
|
20046
20046
|
ref: s,
|
|
@@ -20066,7 +20066,7 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20066
20066
|
}, bE = ["aria-label"], _E = ["inert"], wE = {
|
|
20067
20067
|
key: 0,
|
|
20068
20068
|
"data-ui-mobile-navigation": ""
|
|
20069
|
-
}, SE = ["aria-label", "aria-expanded", "aria-controls"], xE = { class: "min-h-0 flex-1" },
|
|
20069
|
+
}, SE = ["aria-label", "aria-expanded", "aria-controls"], xE = { class: "min-h-0 flex-1" }, kE = /* @__PURE__ */ V({
|
|
20070
20070
|
__name: "AppLayout",
|
|
20071
20071
|
props: {
|
|
20072
20072
|
sidebarWidth: { default: void 0 },
|
|
@@ -20109,24 +20109,24 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20109
20109
|
}
|
|
20110
20110
|
}
|
|
20111
20111
|
}
|
|
20112
|
-
return (y, _) => (
|
|
20112
|
+
return (y, _) => (C(), I("section", {
|
|
20113
20113
|
ref_key: "root",
|
|
20114
20114
|
ref: r,
|
|
20115
|
-
class:
|
|
20115
|
+
class: Ce(["syno-pkg-land-ui-root relative grid min-w-0 overflow-hidden bg-[var(--ui-surface)] text-[var(--ui-text)]", y.$slots.sidebar && !l.value ? "grid-cols-[var(--ui-app-sidebar-width)_minmax(0,1fr)]" : "grid-cols-1"]),
|
|
20116
20116
|
style: Fe({ "--ui-app-sidebar-width": d.value, minHeight: t.minHeight }),
|
|
20117
20117
|
"data-ui-layout-mode": a.value,
|
|
20118
20118
|
"data-ui-mobile-open": l.value && u.value ? "true" : void 0,
|
|
20119
20119
|
"data-ui-motion-ready": f.value ? "true" : void 0,
|
|
20120
|
-
"data-syno-ui": "",
|
|
20120
|
+
"data-syno-pkg-land-ui": "",
|
|
20121
20121
|
onKeydown: g
|
|
20122
20122
|
}, [
|
|
20123
|
-
l.value && u.value && y.$slots.sidebar ? (
|
|
20123
|
+
l.value && u.value && y.$slots.sidebar ? (C(), I("div", {
|
|
20124
20124
|
key: 0,
|
|
20125
20125
|
"data-ui-mobile-backdrop": "",
|
|
20126
20126
|
"aria-hidden": "true",
|
|
20127
20127
|
onClick: _[0] || (_[0] = (S) => p())
|
|
20128
20128
|
})) : Q("", !0),
|
|
20129
|
-
y.$slots.sidebar ? (
|
|
20129
|
+
y.$slots.sidebar ? (C(), I("aside", {
|
|
20130
20130
|
key: 1,
|
|
20131
20131
|
id: m(c),
|
|
20132
20132
|
ref_key: "sidebar",
|
|
@@ -20140,7 +20140,7 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20140
20140
|
inert: l.value && !u.value,
|
|
20141
20141
|
onClick: v
|
|
20142
20142
|
}, [
|
|
20143
|
-
l.value ? (
|
|
20143
|
+
l.value ? (C(), I("div", yE, [
|
|
20144
20144
|
oe("span", null, de(m(n)("Application navigation")), 1),
|
|
20145
20145
|
oe("button", {
|
|
20146
20146
|
"data-ui-close-navigation": "",
|
|
@@ -20161,7 +20161,7 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20161
20161
|
class: "flex min-w-0 flex-col bg-[var(--ui-surface)]",
|
|
20162
20162
|
inert: l.value && u.value
|
|
20163
20163
|
}, [
|
|
20164
|
-
l.value && y.$slots.sidebar ? (
|
|
20164
|
+
l.value && y.$slots.sidebar ? (C(), I("div", wE, [
|
|
20165
20165
|
oe("button", {
|
|
20166
20166
|
ref_key: "menuTrigger",
|
|
20167
20167
|
ref: i,
|
|
@@ -20186,7 +20186,7 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20186
20186
|
], 8, _E)
|
|
20187
20187
|
], 46, vE));
|
|
20188
20188
|
}
|
|
20189
|
-
}),
|
|
20189
|
+
}), CE = /* @__PURE__ */ V({
|
|
20190
20190
|
__name: "ResponsiveView",
|
|
20191
20191
|
props: {
|
|
20192
20192
|
mode: { default: "auto" }
|
|
@@ -20222,10 +20222,10 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20222
20222
|
];
|
|
20223
20223
|
return (s, a) => {
|
|
20224
20224
|
const l = gm("AppSidebarItems", !0);
|
|
20225
|
-
return
|
|
20225
|
+
return C(!0), I(xe, null, kt(e.items, (u) => (C(), I(xe, {
|
|
20226
20226
|
key: u.key
|
|
20227
20227
|
}, [
|
|
20228
|
-
u.children?.length ? (
|
|
20228
|
+
u.children?.length ? (C(), I("button", {
|
|
20229
20229
|
key: 0,
|
|
20230
20230
|
type: "button",
|
|
20231
20231
|
"data-nav-branch": "",
|
|
@@ -20234,42 +20234,42 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20234
20234
|
disabled: u.disabled,
|
|
20235
20235
|
"aria-current": u.selectable && n.modelValue === u.key ? "page" : void 0,
|
|
20236
20236
|
"aria-expanded": o(u),
|
|
20237
|
-
class:
|
|
20237
|
+
class: Ce(i(u)),
|
|
20238
20238
|
style: Fe({ paddingLeft: `calc(var(--ui-space-3) + ${n.depth * 16}px)` }),
|
|
20239
20239
|
onClick: (c) => {
|
|
20240
20240
|
r("toggle", u.key), u.selectable && r("select", u);
|
|
20241
20241
|
}
|
|
20242
20242
|
}, [
|
|
20243
20243
|
Y(m(lx), {
|
|
20244
|
-
class:
|
|
20244
|
+
class: Ce(["size-3.5 shrink-0 text-[var(--ui-text-muted)] transition-transform", o(u) && "rotate-90"]),
|
|
20245
20245
|
"aria-hidden": "true"
|
|
20246
20246
|
}, null, 8, ["class"]),
|
|
20247
|
-
u.icon ? (
|
|
20247
|
+
u.icon ? (C(), H(Nr(u.icon), {
|
|
20248
20248
|
key: 0,
|
|
20249
20249
|
class: "size-[22px] shrink-0",
|
|
20250
20250
|
"aria-hidden": "true"
|
|
20251
20251
|
})) : Q("", !0),
|
|
20252
20252
|
oe("span", OE, de(u.label), 1),
|
|
20253
|
-
u.badge !== void 0 ? (
|
|
20254
|
-
], 14, AE)) : (
|
|
20253
|
+
u.badge !== void 0 ? (C(), I("span", $E, de(u.badge), 1)) : Q("", !0)
|
|
20254
|
+
], 14, AE)) : (C(), I("button", {
|
|
20255
20255
|
key: 1,
|
|
20256
20256
|
type: "button",
|
|
20257
20257
|
"data-nav-item": "",
|
|
20258
20258
|
disabled: u.disabled,
|
|
20259
20259
|
"aria-current": n.modelValue === u.key ? "page" : void 0,
|
|
20260
|
-
class:
|
|
20260
|
+
class: Ce(i(u)),
|
|
20261
20261
|
style: Fe({ paddingLeft: `calc(var(--ui-space-3) + ${n.depth * 16}px)` }),
|
|
20262
20262
|
onClick: (c) => r("select", u)
|
|
20263
20263
|
}, [
|
|
20264
|
-
u.icon ? (
|
|
20264
|
+
u.icon ? (C(), H(Nr(u.icon), {
|
|
20265
20265
|
key: 0,
|
|
20266
20266
|
class: "size-[22px] shrink-0",
|
|
20267
20267
|
"aria-hidden": "true"
|
|
20268
20268
|
})) : Q("", !0),
|
|
20269
20269
|
oe("span", PE, de(u.label), 1),
|
|
20270
|
-
u.badge !== void 0 ? (
|
|
20270
|
+
u.badge !== void 0 ? (C(), I("span", TE, de(u.badge), 1)) : Q("", !0)
|
|
20271
20271
|
], 14, EE)),
|
|
20272
|
-
u.children?.length && o(u) ? (
|
|
20272
|
+
u.children?.length && o(u) ? (C(), I("div", {
|
|
20273
20273
|
key: 2,
|
|
20274
20274
|
role: "group",
|
|
20275
20275
|
"aria-label": u.label,
|
|
@@ -20309,8 +20309,8 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20309
20309
|
const r = Jn(e, { ariaLabel: "Application navigation", clearSearchLabel: "Clear search", searchPlaceholder: "Search" }), o = t, i = /* @__PURE__ */ L(""), s = /* @__PURE__ */ L(/* @__PURE__ */ new Set());
|
|
20310
20310
|
function a(_, S) {
|
|
20311
20311
|
return _.flatMap((w) => {
|
|
20312
|
-
const
|
|
20313
|
-
return w.label.toLowerCase().includes(S) ? [{ ...w }] :
|
|
20312
|
+
const k = w.children ? a(w.children, S) : [];
|
|
20313
|
+
return w.label.toLowerCase().includes(S) ? [{ ...w }] : k.length ? [{ ...w, children: k }] : [];
|
|
20314
20314
|
});
|
|
20315
20315
|
}
|
|
20316
20316
|
const l = $(() => {
|
|
@@ -20326,10 +20326,10 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20326
20326
|
S.delete(_) || S.add(_), s.value = S;
|
|
20327
20327
|
}
|
|
20328
20328
|
const f = (_) => !r.collapsible || u.value || !s.value.has(_), d = /* @__PURE__ */ L([...r.defaultExpandedKeys]), p = $(() => r.expandedKeys ?? d.value);
|
|
20329
|
-
function h(_, S = r.groups.flatMap((
|
|
20330
|
-
for (const
|
|
20331
|
-
if (
|
|
20332
|
-
const O =
|
|
20329
|
+
function h(_, S = r.groups.flatMap((k) => k.items), w = []) {
|
|
20330
|
+
for (const k of S) {
|
|
20331
|
+
if (k.key === _) return w;
|
|
20332
|
+
const O = k.children ? h(_, k.children, [...w, k.key]) : void 0;
|
|
20333
20333
|
if (O) return O;
|
|
20334
20334
|
}
|
|
20335
20335
|
return [];
|
|
@@ -20344,18 +20344,18 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20344
20344
|
_ && v(_);
|
|
20345
20345
|
}, { immediate: !0 });
|
|
20346
20346
|
function g(_) {
|
|
20347
|
-
const S = p.value.includes(_), w = S ? p.value.filter((
|
|
20347
|
+
const S = p.value.includes(_), w = S ? p.value.filter((k) => k !== _) : [...p.value, _];
|
|
20348
20348
|
d.value = w, o("update:expandedKeys", w), o("branchToggle", _, !S);
|
|
20349
20349
|
}
|
|
20350
20350
|
function y(_) {
|
|
20351
20351
|
_.disabled || (o("update:modelValue", _.key), o("select", _), v(_.key));
|
|
20352
20352
|
}
|
|
20353
|
-
return (_, S) => (
|
|
20353
|
+
return (_, S) => (C(), I("nav", {
|
|
20354
20354
|
class: "h-full overflow-auto px-1.5 py-1.5",
|
|
20355
20355
|
"aria-label": m(r).ariaLabel,
|
|
20356
|
-
"data-syno-ui": ""
|
|
20356
|
+
"data-syno-pkg-land-ui": ""
|
|
20357
20357
|
}, [
|
|
20358
|
-
m(r).searchable ? (
|
|
20358
|
+
m(r).searchable ? (C(), H(x$, {
|
|
20359
20359
|
key: 0,
|
|
20360
20360
|
modelValue: i.value,
|
|
20361
20361
|
"onUpdate:modelValue": S[0] || (S[0] = (w) => i.value = w),
|
|
@@ -20363,25 +20363,25 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20363
20363
|
placeholder: m(r).searchPlaceholder,
|
|
20364
20364
|
"clear-label": m(r).clearSearchLabel
|
|
20365
20365
|
}, null, 8, ["modelValue", "placeholder", "clear-label"])) : Q("", !0),
|
|
20366
|
-
(
|
|
20367
|
-
key:
|
|
20368
|
-
class:
|
|
20366
|
+
(C(!0), I(xe, null, kt(l.value, ({ group: w, id: k, items: O }, A) => (C(), I("section", {
|
|
20367
|
+
key: k,
|
|
20368
|
+
class: Ce(A > 0 && "mt-2 border-t border-[var(--ui-border-subtle)] pt-2")
|
|
20369
20369
|
}, [
|
|
20370
|
-
w.label && m(r).collapsible ? (
|
|
20370
|
+
w.label && m(r).collapsible ? (C(), I("button", {
|
|
20371
20371
|
key: 0,
|
|
20372
20372
|
type: "button",
|
|
20373
20373
|
"data-group-toggle": "",
|
|
20374
|
-
"aria-expanded": f(
|
|
20374
|
+
"aria-expanded": f(k),
|
|
20375
20375
|
class: "flex h-6 w-full items-center gap-1 border-0 bg-transparent px-[11px] text-left text-[12px] font-bold text-[rgba(65,75,85,0.5)] outline-none focus-visible:shadow-[0_0_0_3px_var(--ui-focus-ring)]",
|
|
20376
|
-
onClick: (T) => c(
|
|
20376
|
+
onClick: (T) => c(k)
|
|
20377
20377
|
}, [
|
|
20378
20378
|
Y(m(os), {
|
|
20379
|
-
class:
|
|
20379
|
+
class: Ce(["size-3 shrink-0 transition-transform", !f(k) && "-rotate-90"]),
|
|
20380
20380
|
"aria-hidden": "true"
|
|
20381
20381
|
}, null, 8, ["class"]),
|
|
20382
20382
|
Qe(" " + de(w.label), 1)
|
|
20383
|
-
], 8, zE)) : w.label ? (
|
|
20384
|
-
f(
|
|
20383
|
+
], 8, zE)) : w.label ? (C(), I("div", DE, de(w.label), 1)) : Q("", !0),
|
|
20384
|
+
f(k) ? (C(), H(RE, {
|
|
20385
20385
|
key: 2,
|
|
20386
20386
|
items: O,
|
|
20387
20387
|
"model-value": m(r).modelValue,
|
|
@@ -20406,19 +20406,19 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20406
20406
|
height: { default: "var(--ui-toolbar-height)" }
|
|
20407
20407
|
},
|
|
20408
20408
|
setup(e) {
|
|
20409
|
-
return (t, n) => (
|
|
20409
|
+
return (t, n) => (C(), I("header", {
|
|
20410
20410
|
"data-ui-app-toolbar": "",
|
|
20411
20411
|
class: "flex items-center gap-2 border-b border-[var(--ui-border)] bg-[var(--ui-surface)] px-3",
|
|
20412
20412
|
style: Fe({ minHeight: e.height }),
|
|
20413
|
-
"data-syno-ui": ""
|
|
20413
|
+
"data-syno-pkg-land-ui": ""
|
|
20414
20414
|
}, [
|
|
20415
|
-
t.$slots.leading ? (
|
|
20415
|
+
t.$slots.leading ? (C(), I("div", VE, [
|
|
20416
20416
|
B(t.$slots, "leading")
|
|
20417
20417
|
])) : Q("", !0),
|
|
20418
20418
|
oe("div", FE, [
|
|
20419
20419
|
B(t.$slots, "default")
|
|
20420
20420
|
]),
|
|
20421
|
-
t.$slots.actions ? (
|
|
20421
|
+
t.$slots.actions ? (C(), I("div", jE, [
|
|
20422
20422
|
B(t.$slots, "actions")
|
|
20423
20423
|
])) : Q("", !0)
|
|
20424
20424
|
], 4));
|
|
@@ -20426,7 +20426,7 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20426
20426
|
}), qE = {
|
|
20427
20427
|
"data-ui-page-header": "",
|
|
20428
20428
|
class: "flex items-start justify-between gap-[var(--ui-space-6)] px-[var(--ui-page-padding-x)] pt-[var(--ui-page-padding-y)] pb-[var(--ui-space-3)]",
|
|
20429
|
-
"data-syno-ui": ""
|
|
20429
|
+
"data-syno-pkg-land-ui": ""
|
|
20430
20430
|
}, BE = { class: "min-w-0" }, UE = { class: "m-0 text-[18px] font-semibold tracking-[-0.01em] text-[var(--ui-text)]" }, ZE = {
|
|
20431
20431
|
key: 0,
|
|
20432
20432
|
class: "mt-1 max-w-3xl text-[13px] leading-5 text-[var(--ui-text-muted)]"
|
|
@@ -20440,12 +20440,12 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20440
20440
|
description: {}
|
|
20441
20441
|
},
|
|
20442
20442
|
setup(e) {
|
|
20443
|
-
return (t, n) => (
|
|
20443
|
+
return (t, n) => (C(), I("div", qE, [
|
|
20444
20444
|
oe("div", BE, [
|
|
20445
20445
|
oe("h1", UE, de(e.title), 1),
|
|
20446
|
-
e.description ? (
|
|
20446
|
+
e.description ? (C(), I("p", ZE, de(e.description), 1)) : Q("", !0)
|
|
20447
20447
|
]),
|
|
20448
|
-
t.$slots.actions ? (
|
|
20448
|
+
t.$slots.actions ? (C(), I("div", WE, [
|
|
20449
20449
|
B(t.$slots, "actions")
|
|
20450
20450
|
])) : Q("", !0)
|
|
20451
20451
|
]));
|
|
@@ -20461,11 +20461,11 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20461
20461
|
if (t.width !== "fill")
|
|
20462
20462
|
return t.width === "readable" ? "var(--ui-page-readable-width)" : t.width;
|
|
20463
20463
|
});
|
|
20464
|
-
return (r, o) => (
|
|
20464
|
+
return (r, o) => (C(), I("div", {
|
|
20465
20465
|
class: "box-border w-full min-w-0 px-[var(--ui-page-padding-x)]",
|
|
20466
20466
|
"data-width": e.width,
|
|
20467
20467
|
"data-page-surface": e.surface,
|
|
20468
|
-
"data-syno-ui": ""
|
|
20468
|
+
"data-syno-pkg-land-ui": ""
|
|
20469
20469
|
}, [
|
|
20470
20470
|
oe("div", {
|
|
20471
20471
|
"data-page-content-body": "",
|
|
@@ -20487,21 +20487,21 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20487
20487
|
emits: ["update:modelValue"],
|
|
20488
20488
|
setup(e, { emit: t }) {
|
|
20489
20489
|
const n = Po(), r = e, o = t, i = /* @__PURE__ */ L(null), s = y$(i, () => r.items, () => r.modelValue);
|
|
20490
|
-
return (a, l) => (
|
|
20490
|
+
return (a, l) => (C(), I(xe, null, [
|
|
20491
20491
|
oe("nav", se({
|
|
20492
20492
|
ref_key: "bar",
|
|
20493
20493
|
ref: i,
|
|
20494
20494
|
class: "relative flex min-w-0 overflow-x-auto h-[30px] items-end border-b border-[var(--ui-border)] px-2",
|
|
20495
20495
|
"aria-label": r.ariaLabel ?? m(n)("Sections"),
|
|
20496
|
-
"data-syno-ui": ""
|
|
20496
|
+
"data-syno-pkg-land-ui": ""
|
|
20497
20497
|
}, a.$attrs), [
|
|
20498
|
-
(
|
|
20498
|
+
(C(!0), I(xe, null, kt(r.items, (u) => (C(), I("button", {
|
|
20499
20499
|
key: u.value,
|
|
20500
20500
|
type: "button",
|
|
20501
20501
|
disabled: u.disabled,
|
|
20502
20502
|
"data-ui-tab-value": u.value,
|
|
20503
20503
|
"aria-current": r.modelValue === u.value ? "page" : void 0,
|
|
20504
|
-
class:
|
|
20504
|
+
class: Ce([
|
|
20505
20505
|
"relative h-[30px] border-0 bg-transparent px-2 text-[length:var(--ui-font-size)] font-bold outline-none transition-colors duration-[var(--ui-motion-fast)] ease-[var(--ui-motion-ease)] focus-visible:shadow-[inset_0_0_0_2px_var(--ui-focus-ring)] disabled:opacity-40",
|
|
20506
20506
|
r.modelValue === u.value ? "text-[var(--ui-primary)]" : "text-[var(--ui-text)] hover:text-[var(--ui-primary)]"
|
|
20507
20507
|
]),
|
|
@@ -20513,10 +20513,10 @@ const ys = /* @__PURE__ */ Symbol("syno-app-presentation"), X$ = ["data-ui-data-
|
|
|
20513
20513
|
"aria-hidden": "true"
|
|
20514
20514
|
}, null, 4)
|
|
20515
20515
|
], 16, GE),
|
|
20516
|
-
a.$slots[`panel-${r.modelValue}`] ? (
|
|
20516
|
+
a.$slots[`panel-${r.modelValue}`] ? (C(), I("div", {
|
|
20517
20517
|
key: r.modelValue,
|
|
20518
20518
|
class: "ui-tab-panel",
|
|
20519
|
-
"data-syno-ui": ""
|
|
20519
|
+
"data-syno-pkg-land-ui": ""
|
|
20520
20520
|
}, [
|
|
20521
20521
|
B(a.$slots, `panel-${r.modelValue}`)
|
|
20522
20522
|
])) : Q("", !0)
|
|
@@ -20591,7 +20591,7 @@ const rP = /* @__PURE__ */ V({
|
|
|
20591
20591
|
A >= 0 && p.splice(A, 1);
|
|
20592
20592
|
}
|
|
20593
20593
|
st(
|
|
20594
|
-
|
|
20594
|
+
kp,
|
|
20595
20595
|
/* @__PURE__ */ An({
|
|
20596
20596
|
rules: $(() => s.value.rules ?? {}),
|
|
20597
20597
|
// Preserve auto so every item measures its own available width. The
|
|
@@ -20625,15 +20625,15 @@ const rP = /* @__PURE__ */ V({
|
|
|
20625
20625
|
function w() {
|
|
20626
20626
|
return p.some((O) => O.isDirty());
|
|
20627
20627
|
}
|
|
20628
|
-
function
|
|
20628
|
+
function k(O) {
|
|
20629
20629
|
o("submit", O);
|
|
20630
20630
|
}
|
|
20631
|
-
return t({ fields: p, validate: g, validateField: y, resetFields: _, commit: S, isDirty: w }), (O, A) => (
|
|
20631
|
+
return t({ fields: p, validate: g, validateField: y, resetFields: _, commit: S, isDirty: w }), (O, A) => (C(), I("form", {
|
|
20632
20632
|
ref_key: "root",
|
|
20633
20633
|
ref: a,
|
|
20634
20634
|
style: Fe(d.value),
|
|
20635
|
-
"data-syno-ui": "",
|
|
20636
|
-
onSubmit: jt(
|
|
20635
|
+
"data-syno-pkg-land-ui": "",
|
|
20636
|
+
onSubmit: jt(k, ["prevent"])
|
|
20637
20637
|
}, [
|
|
20638
20638
|
B(O.$slots, "default")
|
|
20639
20639
|
], 36));
|
|
@@ -20808,7 +20808,7 @@ const hP = ["data-direction", "data-status"], mP = ["id", "for"], vP = {
|
|
|
20808
20808
|
const S = /* @__PURE__ */ L(
|
|
20809
20809
|
o.initialValue !== void 0 ? o.initialValue : v.value ? o.modelValue : void 0
|
|
20810
20810
|
), w = $(() => !_(y.value, S.value));
|
|
20811
|
-
function
|
|
20811
|
+
function k(M) {
|
|
20812
20812
|
v.value || (g.value = M);
|
|
20813
20813
|
}
|
|
20814
20814
|
function O(M) {
|
|
@@ -20921,7 +20921,7 @@ const hP = ["data-direction", "data-status"], mP = ["id", "for"], vP = {
|
|
|
20921
20921
|
validate: x,
|
|
20922
20922
|
showPopup: R,
|
|
20923
20923
|
hidePopup: N,
|
|
20924
|
-
setValue:
|
|
20924
|
+
setValue: k,
|
|
20925
20925
|
setDisabled: Z,
|
|
20926
20926
|
onBlur: E,
|
|
20927
20927
|
onChange: j,
|
|
@@ -20951,29 +20951,29 @@ const hP = ["data-direction", "data-status"], mP = ["id", "for"], vP = {
|
|
|
20951
20951
|
resetInvalid: W,
|
|
20952
20952
|
showPopup: R,
|
|
20953
20953
|
hidePopup: N,
|
|
20954
|
-
setFieldValue:
|
|
20954
|
+
setFieldValue: k,
|
|
20955
20955
|
setInitValue: O,
|
|
20956
20956
|
setFieldDisabled: Z,
|
|
20957
20957
|
ensureVisible: ie
|
|
20958
|
-
}), (M, X) => (
|
|
20958
|
+
}), (M, X) => (C(), I("div", {
|
|
20959
20959
|
ref_key: "root",
|
|
20960
20960
|
ref: c,
|
|
20961
20961
|
"data-form-item": "",
|
|
20962
20962
|
"data-direction": me.value,
|
|
20963
20963
|
style: Fe(Xn.value),
|
|
20964
|
-
class:
|
|
20964
|
+
class: Ce(m(yn)("min-w-0", ve.value && !m(a).hideValidateStatusCls && "has-error")),
|
|
20965
20965
|
"data-status": De.value || void 0,
|
|
20966
|
-
"data-syno-ui": "",
|
|
20966
|
+
"data-syno-pkg-land-ui": "",
|
|
20967
20967
|
onMouseenter: X[1] || (X[1] = (he) => we.value === "popup" && R()),
|
|
20968
20968
|
onMouseleave: X[2] || (X[2] = (he) => we.value === "popup" && N()),
|
|
20969
20969
|
onFocusin: X[3] || (X[3] = (he) => we.value === "popup" && R()),
|
|
20970
20970
|
onFocusout: X[4] || (X[4] = (he) => we.value === "popup" && N())
|
|
20971
20971
|
}, [
|
|
20972
|
-
We.value ? (
|
|
20972
|
+
We.value ? (C(), I("div", {
|
|
20973
20973
|
key: 0,
|
|
20974
20974
|
"data-form-label": "",
|
|
20975
20975
|
style: Fe(Ye.value),
|
|
20976
|
-
class:
|
|
20976
|
+
class: Ce([
|
|
20977
20977
|
"min-w-0 shrink-0 text-[13px] leading-5 text-[var(--ui-text)]",
|
|
20978
20978
|
me.value === "horizontal" ? "pt-[5px] text-right" : void 0,
|
|
20979
20979
|
m(a).disableLabel || ce.value ? "opacity-40" : void 0
|
|
@@ -20988,11 +20988,11 @@ const hP = ["data-direction", "data-status"], mP = ["id", "for"], vP = {
|
|
|
20988
20988
|
B(M.$slots, "label", {}, () => [
|
|
20989
20989
|
Qe(de(m(a).label), 1)
|
|
20990
20990
|
]),
|
|
20991
|
-
m(a).requiredMark ? (
|
|
20991
|
+
m(a).requiredMark ? (C(), I("span", vP, "*")) : Q("", !0)
|
|
20992
20992
|
], 8, mP)
|
|
20993
20993
|
], 6)) : Q("", !0),
|
|
20994
20994
|
oe("div", {
|
|
20995
|
-
class:
|
|
20995
|
+
class: Ce(["relative min-w-0 flex-1", m(a).disableControl ? "opacity-40" : void 0])
|
|
20996
20996
|
}, [
|
|
20997
20997
|
oe("div", gP, [
|
|
20998
20998
|
B(M.$slots, "before"),
|
|
@@ -21005,10 +21005,10 @@ const hP = ["data-direction", "data-status"], mP = ["id", "for"], vP = {
|
|
|
21005
21005
|
], 4),
|
|
21006
21006
|
B(M.$slots, "after", { classes: bt })
|
|
21007
21007
|
]),
|
|
21008
|
-
$t.value ? (
|
|
21008
|
+
$t.value ? (C(), I("div", {
|
|
21009
21009
|
key: 0,
|
|
21010
21010
|
id: d.description,
|
|
21011
|
-
class:
|
|
21011
|
+
class: Ce([
|
|
21012
21012
|
"mt-1 text-[12px] leading-4 text-[var(--ui-text-muted)]",
|
|
21013
21013
|
m(a).disableDescription || ce.value ? "opacity-40" : void 0
|
|
21014
21014
|
])
|
|
@@ -21017,11 +21017,11 @@ const hP = ["data-direction", "data-status"], mP = ["id", "for"], vP = {
|
|
|
21017
21017
|
Qe(de(m(a).description), 1)
|
|
21018
21018
|
])
|
|
21019
21019
|
], 10, yP)) : Q("", !0),
|
|
21020
|
-
ae.value ? (
|
|
21020
|
+
ae.value ? (C(), I("div", {
|
|
21021
21021
|
key: 1,
|
|
21022
21022
|
id: d.message,
|
|
21023
21023
|
role: "alert",
|
|
21024
|
-
class:
|
|
21024
|
+
class: Ce(at.value)
|
|
21025
21025
|
}, [
|
|
21026
21026
|
B(M.$slots, "status", { field: re }, () => [
|
|
21027
21027
|
Qe(de(ae.value), 1)
|
|
@@ -21340,13 +21340,13 @@ const hP = ["data-direction", "data-status"], mP = ["id", "for"], vP = {
|
|
|
21340
21340
|
}, xP = gS(bS, {
|
|
21341
21341
|
components: SP,
|
|
21342
21342
|
actions: {}
|
|
21343
|
-
}),
|
|
21343
|
+
}), kP = {
|
|
21344
21344
|
none: "0",
|
|
21345
21345
|
xs: "var(--ui-space-1)",
|
|
21346
21346
|
sm: "var(--ui-space-2)",
|
|
21347
21347
|
md: "var(--ui-space-3)",
|
|
21348
21348
|
lg: "var(--ui-space-4)"
|
|
21349
|
-
},
|
|
21349
|
+
}, CP = { start: "flex-start", center: "center", end: "flex-end", stretch: "stretch" }, AP = { start: "flex-start", center: "center", end: "flex-end", between: "space-between" };
|
|
21350
21350
|
function OP(e) {
|
|
21351
21351
|
return { default: () => e };
|
|
21352
21352
|
}
|
|
@@ -21365,13 +21365,13 @@ function $P(e) {
|
|
|
21365
21365
|
}
|
|
21366
21366
|
const EP = {
|
|
21367
21367
|
AppRoot: ({ props: e, slots: t }) => G(mE, { modalScope: e.modalScope }, t),
|
|
21368
|
-
AppShell: ({ props: e, slots: t }) => G(
|
|
21368
|
+
AppShell: ({ props: e, slots: t }) => G(kE, {
|
|
21369
21369
|
sidebarWidth: e.sidebarWidth,
|
|
21370
21370
|
minHeight: e.minHeight,
|
|
21371
21371
|
responsive: e.responsive,
|
|
21372
21372
|
wideLayout: e.wideLayout
|
|
21373
21373
|
}, t),
|
|
21374
|
-
ResponsiveView: ({ props: e, slots: t }) => G(
|
|
21374
|
+
ResponsiveView: ({ props: e, slots: t }) => G(CE, { mode: e.mode }, t),
|
|
21375
21375
|
Page: ({ props: e, slots: t }) => G(JE, { width: e.width ?? "fill", surface: e.surface }, t),
|
|
21376
21376
|
PageHeader: ({ props: e, slots: t }) => G(KE, e, t),
|
|
21377
21377
|
Toolbar: ({ props: e, slots: t }) => G(LE, e, t),
|
|
@@ -21400,19 +21400,19 @@ const EP = {
|
|
|
21400
21400
|
});
|
|
21401
21401
|
},
|
|
21402
21402
|
Stack: ({ props: e, children: t }) => G("div", {
|
|
21403
|
-
"data-syno-ui": "",
|
|
21403
|
+
"data-syno-pkg-land-ui": "",
|
|
21404
21404
|
style: {
|
|
21405
21405
|
display: "flex",
|
|
21406
21406
|
flexDirection: e.direction ?? "column",
|
|
21407
|
-
gap:
|
|
21408
|
-
alignItems:
|
|
21407
|
+
gap: kP[e.gap ?? "md"],
|
|
21408
|
+
alignItems: CP[e.align ?? "stretch"],
|
|
21409
21409
|
justifyContent: AP[e.justify ?? "start"],
|
|
21410
21410
|
flexWrap: e.wrap ? "wrap" : "nowrap"
|
|
21411
21411
|
}
|
|
21412
21412
|
}, t),
|
|
21413
21413
|
Text: ({ props: e }) => {
|
|
21414
21414
|
const t = e.variant ?? "body";
|
|
21415
|
-
return G(t === "heading" ? "h2" : t === "mono" ? "code" : "span", { class: t === "muted" ? "text-[13px] text-[var(--ui-text-muted)]" : t === "caption" ? "text-[12px] text-[var(--ui-text-muted)]" : t === "heading" ? "text-[16px] font-semibold text-[var(--ui-text)]" : t === "mono" ? "font-mono text-[12px] text-[var(--ui-text)]" : "text-[13px] text-[var(--ui-text)]", "data-syno-ui": "" }, e.text);
|
|
21415
|
+
return G(t === "heading" ? "h2" : t === "mono" ? "code" : "span", { class: t === "muted" ? "text-[13px] text-[var(--ui-text-muted)]" : t === "caption" ? "text-[12px] text-[var(--ui-text-muted)]" : t === "heading" ? "text-[16px] font-semibold text-[var(--ui-text)]" : t === "mono" ? "font-mono text-[12px] text-[var(--ui-text)]" : "text-[13px] text-[var(--ui-text)]", "data-syno-pkg-land-ui": "" }, e.text);
|
|
21416
21416
|
},
|
|
21417
21417
|
Button: ({ props: e, emit: t }) => {
|
|
21418
21418
|
const n = za(e.icon);
|
|
@@ -21562,7 +21562,7 @@ const EP = {
|
|
|
21562
21562
|
}, n);
|
|
21563
21563
|
},
|
|
21564
21564
|
DataTable: ({ props: e }) => G(zc, e),
|
|
21565
|
-
ResourceList: ({ props: e, slots: t }) => G("section", { class: "min-w-0", "data-syno-ui": "", "data-ui-resource-list": "" }, [
|
|
21565
|
+
ResourceList: ({ props: e, slots: t }) => G("section", { class: "min-w-0", "data-syno-pkg-land-ui": "", "data-ui-resource-list": "" }, [
|
|
21566
21566
|
t.toolbar ? G("div", { class: "mb-3 flex flex-wrap items-center gap-2" }, t.toolbar()) : null,
|
|
21567
21567
|
G(zc, e)
|
|
21568
21568
|
]),
|
|
@@ -21585,7 +21585,7 @@ const EP = {
|
|
|
21585
21585
|
fallback: {}
|
|
21586
21586
|
},
|
|
21587
21587
|
setup(e) {
|
|
21588
|
-
return (t, n) => (
|
|
21588
|
+
return (t, n) => (C(), H(m(FS), {
|
|
21589
21589
|
registry: m(Mc),
|
|
21590
21590
|
store: e.store,
|
|
21591
21591
|
"initial-state": e.state ?? e.spec?.state ?? {},
|