typerighter 0.57.1 → 0.57.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{app-D-dbbyVD.js → app-C-C48izb.js} +792 -780
- package/dist/{cli-aIilXlJS.js → cli-C2MIZ1lV.js} +10 -8
- package/dist/cli.js +1 -1
- package/dist/client/theme-default.js +1 -1
- package/dist/client.js +1 -1
- package/dist/{context-CPrHBM3S.js → context-CLKZYp4U.js} +31 -28
- package/dist/index.js +2 -2
- package/dist/{init-Bvm3vDph.js → init-BduI0qK5.js} +2 -2
- package/dist/node/build/index.d.ts +2 -2
- package/dist/node/build/index.d.ts.map +1 -1
- package/dist/node/build/seo/llms.d.ts +3 -0
- package/dist/node/build/seo/llms.d.ts.map +1 -0
- package/dist/node/build/seo/page.d.ts.map +1 -1
- package/dist/node/cli/index.d.ts.map +1 -1
- package/dist/node/context.d.ts +3 -1
- package/dist/node/context.d.ts.map +1 -1
- package/dist/{page-BbSO0VG8.js → page-ChF2owpa.js} +45 -45
- package/dist/prerenderWorker.js +1 -1
- package/dist/typerighter.css +1 -1
- package/dist/{vite-ltcrEmat.js → vite-Bd6MPoKO.js} +206 -206
- package/dist/vite.js +1 -1
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { $ as e, A as t, C as n, D as r, E as i, I as a, L as o, N as s, P as c, R as l, T as u, Y as d, _ as f, a as p, b as m, c as h, f as g, j as _, k as v, l as y, n as b, nt as x, p as
|
|
2
|
-
import { l as
|
|
1
|
+
import { $ as e, A as t, C as n, D as r, E as i, I as a, L as o, N as s, P as c, R as l, T as u, Y as d, _ as f, a as p, b as m, c as h, f as g, j as _, k as v, l as y, n as b, nt as x, p as S, r as C, rt as w, s as T, v as E, w as ee, y as te } from "./shared-dB08amQA.js";
|
|
2
|
+
import { l as ne, o as re } from "./useSidebarConfig-0kMemgUS.js";
|
|
3
3
|
import { t as ie } from "./es-B_QJMowB.js";
|
|
4
|
-
import { a as ae, i as
|
|
5
|
-
import { t as
|
|
6
|
-
import { Fragment as
|
|
4
|
+
import { a as ae, i as D, n as oe, t as se } from "./brand-BSCRFcrY.js";
|
|
5
|
+
import { t as ce } from "./inlineRe-CoUp2DgK.js";
|
|
6
|
+
import { Fragment as O, Teleport as le, Transition as ue, computed as k, createApp as de, createBlock as A, createCommentVNode as j, createElementBlock as M, createElementVNode as N, createTextVNode as P, createVNode as F, defineComponent as I, getCurrentScope as fe, h as pe, inject as me, markRaw as he, mergeModels as ge, mergeProps as _e, nextTick as ve, normalizeClass as L, normalizeStyle as R, onBeforeUnmount as ye, onMounted as be, onScopeDispose as xe, onUnmounted as z, openBlock as B, provide as Se, reactive as Ce, readonly as we, ref as V, render as Te, renderList as H, renderSlot as U, resolveComponent as Ee, resolveDynamicComponent as De, shallowReadonly as Oe, shallowRef as ke, toDisplayString as W, toValue as Ae, unref as G, useModel as je, useTemplateRef as K, vModelText as Me, vShow as Ne, watch as q, watchEffect as Pe, withCtx as J, withDirectives as Fe, withKeys as Ie, withModifiers as Le } from "vue";
|
|
7
7
|
// ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.44_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/shared/src/build/defaultAttributes.mjs
|
|
8
8
|
var Re = {
|
|
9
9
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -58,7 +58,7 @@ var He = (e) => {
|
|
|
58
58
|
return !1;
|
|
59
59
|
}, Ue = (e) => e === "", We = (e) => e?.replace(/([a-z0-9])([A-Z])/g, "$1-$2").toLowerCase(), Ge = /* @__PURE__ */ Symbol("lucide-icons");
|
|
60
60
|
function Ke() {
|
|
61
|
-
return
|
|
61
|
+
return me(Ge, {});
|
|
62
62
|
}
|
|
63
63
|
// ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.44_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/Icon.mjs
|
|
64
64
|
var qe = ({ name: e, iconNode: t, "icon-node": n, icon: r = {
|
|
@@ -67,20 +67,20 @@ var qe = ({ name: e, iconNode: t, "icon-node": n, icon: r = {
|
|
|
67
67
|
size: 24,
|
|
68
68
|
aliases: []
|
|
69
69
|
}, absoluteStrokeWidth: i, "absolute-stroke-width": a, nonScalingStroke: o, "non-scaling-stroke": s, strokeWidth: c, "stroke-width": l, size: u, width: d = u, height: f = u, color: p, ...m }, { slots: h }) => {
|
|
70
|
-
let { size: g, color: _, strokeWidth: v = 2, absoluteStrokeWidth: y = !1, nonScalingStroke: b = !1, class: x = "" } = Ke(),
|
|
70
|
+
let { size: g, color: _, strokeWidth: v = 2, absoluteStrokeWidth: y = !1, nonScalingStroke: b = !1, class: x = "" } = Ke(), S = Ue(i) || Ue(a) || i === !0 || a === !0 || y === !0, C = Ue(o) || Ue(s) || o === !0 || s === !0 || b === !0;
|
|
71
71
|
delete m.class;
|
|
72
|
-
let
|
|
72
|
+
let w = h.default?.(), [, T, E = []] = Ve(r, {
|
|
73
73
|
color: p ?? _,
|
|
74
74
|
width: d ?? u ?? g,
|
|
75
75
|
height: f ?? u ?? g,
|
|
76
76
|
strokeWidth: c ?? l ?? v,
|
|
77
|
-
absoluteStrokeWidth:
|
|
78
|
-
nonScalingStroke:
|
|
77
|
+
absoluteStrokeWidth: S,
|
|
78
|
+
nonScalingStroke: C,
|
|
79
79
|
className: x,
|
|
80
|
-
hasA11yProp:
|
|
80
|
+
hasA11yProp: w != null && w.length > 0 || He(m),
|
|
81
81
|
attributes: m
|
|
82
82
|
});
|
|
83
|
-
return
|
|
83
|
+
return pe("svg", T, [...E.map((e) => pe(...e)), ...w ?? []]);
|
|
84
84
|
};
|
|
85
85
|
// ../../node_modules/.pnpm/@lucide+vue@1.47.0_vue@3.5.44_typescript@6.0.3_/node_modules/@lucide/vue/dist/esm/createLucideIcon.mjs
|
|
86
86
|
function Y(e, t = []) {
|
|
@@ -88,7 +88,7 @@ function Y(e, t = []) {
|
|
|
88
88
|
name: e,
|
|
89
89
|
node: t
|
|
90
90
|
} : e;
|
|
91
|
-
return (e, { slots: t }) =>
|
|
91
|
+
return (e, { slots: t }) => pe(qe, {
|
|
92
92
|
...e,
|
|
93
93
|
icon: n
|
|
94
94
|
}, t.default ? { default: t.default } : void 0);
|
|
@@ -3485,7 +3485,7 @@ var Je = Y({
|
|
|
3485
3485
|
filepath: ""
|
|
3486
3486
|
};
|
|
3487
3487
|
function ki(e, t = {}) {
|
|
3488
|
-
let n = a(t.basePath ?? "/"), r =
|
|
3488
|
+
let n = a(t.basePath ?? "/"), r = Ce({
|
|
3489
3489
|
path: "/",
|
|
3490
3490
|
hash: "",
|
|
3491
3491
|
query: "",
|
|
@@ -3514,12 +3514,12 @@ function ki(e, t = {}) {
|
|
|
3514
3514
|
if (o === a) {
|
|
3515
3515
|
o = void 0;
|
|
3516
3516
|
let { default: e, pageData: n } = t;
|
|
3517
|
-
r.path = a, r.contentSfc =
|
|
3517
|
+
r.path = a, r.contentSfc = he(e), r.data = he(n), c(i), Ei && ve(() => {
|
|
3518
3518
|
i.hash ? Ai(i.hash) : window.scrollTo(0, 0);
|
|
3519
3519
|
});
|
|
3520
3520
|
}
|
|
3521
3521
|
} catch {
|
|
3522
|
-
o === a && (o = void 0, r.path = a, r.contentSfc = t.fallbackComponent ?
|
|
3522
|
+
o === a && (o = void 0, r.path = a, r.contentSfc = t.fallbackComponent ? he(t.fallbackComponent) : void 0, r.data = Oi, c(i));
|
|
3523
3523
|
}
|
|
3524
3524
|
}
|
|
3525
3525
|
function c(e = Ei ? location : {
|
|
@@ -3570,7 +3570,7 @@ function ji() {
|
|
|
3570
3570
|
return Mi().route;
|
|
3571
3571
|
}
|
|
3572
3572
|
function Mi() {
|
|
3573
|
-
let e =
|
|
3573
|
+
let e = me(Di);
|
|
3574
3574
|
if (!e) throw Error("useRouter() called outside of Typedown app");
|
|
3575
3575
|
return e;
|
|
3576
3576
|
}
|
|
@@ -3587,39 +3587,39 @@ function Pi(e, t) {
|
|
|
3587
3587
|
return t && t !== "/" && (r === t || r.startsWith(t + "/")) && (r = r.slice(t.length) || "/"), n.pathname = s(r), n.pathname + n.search + n.hash;
|
|
3588
3588
|
}
|
|
3589
3589
|
// src/client/app/components/Content.ts
|
|
3590
|
-
var Fi =
|
|
3590
|
+
var Fi = I({
|
|
3591
3591
|
name: "TypedownContent",
|
|
3592
3592
|
setup() {
|
|
3593
3593
|
let e = ji();
|
|
3594
|
-
return () => e.contentSfc ?
|
|
3594
|
+
return () => e.contentSfc ? pe(e.contentSfc) : void 0;
|
|
3595
3595
|
}
|
|
3596
3596
|
}), Ii = [
|
|
3597
3597
|
"height",
|
|
3598
3598
|
"width",
|
|
3599
3599
|
"viewBox"
|
|
3600
|
-
], Li = ["d"], Ri = ["d"], zi = ["d"], Bi = /* @__PURE__ */
|
|
3600
|
+
], Li = ["d"], Ri = ["d"], zi = ["d"], Bi = /* @__PURE__ */ I({
|
|
3601
3601
|
__name: "TdBrandIcon",
|
|
3602
3602
|
props: { size: { default: 28 } },
|
|
3603
3603
|
setup(e) {
|
|
3604
|
-
return (t, n) => (
|
|
3604
|
+
return (t, n) => (B(), M("svg", {
|
|
3605
3605
|
fill: "none",
|
|
3606
3606
|
height: e.size,
|
|
3607
3607
|
width: e.size * 208 / 128,
|
|
3608
3608
|
viewBox: G(ae),
|
|
3609
3609
|
xmlns: "http://www.w3.org/2000/svg"
|
|
3610
3610
|
}, [
|
|
3611
|
-
|
|
3611
|
+
N("path", {
|
|
3612
3612
|
"clip-rule": "evenodd",
|
|
3613
|
-
d: G(
|
|
3613
|
+
d: G(oe),
|
|
3614
3614
|
"fill-rule": "evenodd",
|
|
3615
3615
|
fill: "currentColor"
|
|
3616
3616
|
}, null, 8, Li),
|
|
3617
|
-
|
|
3618
|
-
d: G(
|
|
3617
|
+
N("path", {
|
|
3618
|
+
d: G(D),
|
|
3619
3619
|
fill: "currentColor"
|
|
3620
3620
|
}, null, 8, Ri),
|
|
3621
|
-
|
|
3622
|
-
d: G(
|
|
3621
|
+
N("path", {
|
|
3622
|
+
d: G(se),
|
|
3623
3623
|
fill: "currentColor"
|
|
3624
3624
|
}, null, 8, zi)
|
|
3625
3625
|
], 8, Ii));
|
|
@@ -3836,14 +3836,14 @@ var ha = 50, ga = async (e, t, n) => {
|
|
|
3836
3836
|
let d = da(u), f = {
|
|
3837
3837
|
x: n,
|
|
3838
3838
|
y: r
|
|
3839
|
-
}, p = $i(i), m = Zi(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p],
|
|
3840
|
-
|
|
3841
|
-
let
|
|
3839
|
+
}, p = $i(i), m = Zi(p), h = await o.getDimensions(l), g = p === "y", _ = g ? "top" : "left", v = g ? "bottom" : "right", y = g ? "clientHeight" : "clientWidth", b = a.reference[m] + a.reference[p] - f[p] - a.floating[m], x = f[p] - a.reference[p], S = await (o.getOffsetParent == null ? void 0 : o.getOffsetParent(l)), C = S ? S[y] : 0;
|
|
3840
|
+
C && await (o.isElement == null ? void 0 : o.isElement(S)) || (C = s.floating[y] || a.floating[m]);
|
|
3841
|
+
let w = b / 2 - x / 2, T = C / 2 - h[m] / 2 - 1, E = Vi(d[_], T), ee = Vi(d[v], T), te = C - h[m] - ee, ne = C / 2 - h[m] / 2 + w, re = Ki(E, ne, te), ie = !c.arrow && Yi(i) != null && ne !== re && a.reference[m] / 2 - (ne < E ? E : ee) - h[m] / 2 < 0, ae = ie ? ne < E ? ne - E : ne - te : 0;
|
|
3842
3842
|
return {
|
|
3843
3843
|
[p]: f[p] + ae,
|
|
3844
3844
|
data: {
|
|
3845
3845
|
[p]: re,
|
|
3846
|
-
centerOffset:
|
|
3846
|
+
centerOffset: ne - re - ae,
|
|
3847
3847
|
...ie && { alignmentOffset: ae }
|
|
3848
3848
|
},
|
|
3849
3849
|
reset: ie
|
|
@@ -3859,27 +3859,27 @@ var ha = 50, ga = async (e, t, n) => {
|
|
|
3859
3859
|
if ((n = i.arrow) != null && n.alignmentOffset) return {};
|
|
3860
3860
|
let g = Ji(r), _ = Qi(o), v = Ji(o) === o, y = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), b = d || (v || !m ? [la(o)] : ta(o)), x = p !== "none";
|
|
3861
3861
|
!d && x && b.push(...ca(o, m, p, y));
|
|
3862
|
-
let
|
|
3863
|
-
if (l &&
|
|
3862
|
+
let S = [o, ...b], C = await s.detectOverflow(t, h), w = [], T = i.flip?.overflows || [];
|
|
3863
|
+
if (l && w.push(C[g]), u) {
|
|
3864
3864
|
let e = ea(r, a, y);
|
|
3865
|
-
|
|
3865
|
+
w.push(C[e[0]], C[e[1]]);
|
|
3866
3866
|
}
|
|
3867
|
-
if (
|
|
3867
|
+
if (T = [...T, {
|
|
3868
3868
|
placement: r,
|
|
3869
|
-
overflows:
|
|
3870
|
-
}], !
|
|
3871
|
-
let e = (i.flip?.index || 0) + 1, t =
|
|
3872
|
-
if (t && (u !== "alignment" || _ === Qi(t) ||
|
|
3869
|
+
overflows: w
|
|
3870
|
+
}], !w.every((e) => e <= 0)) {
|
|
3871
|
+
let e = (i.flip?.index || 0) + 1, t = S[e];
|
|
3872
|
+
if (t && (u !== "alignment" || _ === Qi(t) || T.every((e) => Qi(e.placement) !== _ || e.overflows[0] > 0))) return {
|
|
3873
3873
|
data: {
|
|
3874
3874
|
index: e,
|
|
3875
|
-
overflows:
|
|
3875
|
+
overflows: T
|
|
3876
3876
|
},
|
|
3877
3877
|
reset: { placement: t }
|
|
3878
3878
|
};
|
|
3879
|
-
let n =
|
|
3879
|
+
let n = T.filter((e) => e.overflows[0] <= 0).sort((e, t) => e.overflows[1] - t.overflows[1])[0]?.placement;
|
|
3880
3880
|
if (!n) switch (f) {
|
|
3881
3881
|
case "bestFit": {
|
|
3882
|
-
let e =
|
|
3882
|
+
let e = T.filter((e) => {
|
|
3883
3883
|
if (x) {
|
|
3884
3884
|
let t = Qi(e.placement);
|
|
3885
3885
|
return t === _ || t === "y";
|
|
@@ -4342,7 +4342,7 @@ function Ao(e, t) {
|
|
|
4342
4342
|
}
|
|
4343
4343
|
function jo(e, t, n) {
|
|
4344
4344
|
n === void 0 && (n = {});
|
|
4345
|
-
let r = n.whileElementsMounted, i =
|
|
4345
|
+
let r = n.whileElementsMounted, i = k(() => Ae(n.open) ?? !0), a = k(() => Ae(n.middleware)), o = k(() => Ae(n.placement) ?? "bottom"), s = k(() => Ae(n.strategy) ?? "absolute"), c = k(() => Ae(n.transform) ?? !0), l = k(() => Do(e.value)), u = k(() => Do(t.value)), d = V(0), f = V(0), p = V(s.value), m = V(o.value), h = ke({}), g = V(!1), _ = k(() => {
|
|
4346
4346
|
let e = {
|
|
4347
4347
|
position: p.value,
|
|
4348
4348
|
left: "0",
|
|
@@ -4377,7 +4377,7 @@ function jo(e, t, n) {
|
|
|
4377
4377
|
function x() {
|
|
4378
4378
|
b(), r === void 0 ? y() : l.value != null && u.value != null && (v = r(l.value, u.value, y));
|
|
4379
4379
|
}
|
|
4380
|
-
function
|
|
4380
|
+
function S() {
|
|
4381
4381
|
i.value || (g.value = !1);
|
|
4382
4382
|
}
|
|
4383
4383
|
return q([
|
|
@@ -4385,7 +4385,7 @@ function jo(e, t, n) {
|
|
|
4385
4385
|
o,
|
|
4386
4386
|
s,
|
|
4387
4387
|
i
|
|
4388
|
-
], y, { flush: "sync" }), q([l, u], x, { flush: "sync" }), q(i,
|
|
4388
|
+
], y, { flush: "sync" }), q([l, u], x, { flush: "sync" }), q(i, S, { flush: "sync" }), fe() && xe(b), {
|
|
4389
4389
|
x: Oe(d),
|
|
4390
4390
|
y: Oe(f),
|
|
4391
4391
|
strategy: Oe(p),
|
|
@@ -4399,7 +4399,7 @@ function jo(e, t, n) {
|
|
|
4399
4399
|
// src/client/theme-default/utils/keys.ts
|
|
4400
4400
|
var X = /* @__PURE__ */ function(e) {
|
|
4401
4401
|
return e.ArrowDown = "ArrowDown", e.ArrowUp = "ArrowUp", e.ArrowLeft = "ArrowLeft", e.ArrowRight = "ArrowRight", e.Enter = "Enter", e.Tab = "Tab", e.Space = " ", e.Escape = "Escape", e.Shift = "Shift", e.Control = "Control", e.Alt = "Alt", e.Meta = "Meta", e.Delete = "Delete", e.Backspace = "Backspace", e.F1 = "F1", e.F2 = "F2", e.F3 = "F3", e.F4 = "F4", e.F5 = "F5", e.F6 = "F6", e.F7 = "F7", e.F8 = "F8", e.F9 = "F9", e.F10 = "F10", e.F11 = "F11", e.F12 = "F12", e.a = "a", e.b = "b", e.c = "c", e.d = "d", e.e = "e", e.f = "f", e.g = "g", e.h = "h", e.i = "i", e.j = "j", e.k = "k", e.l = "l", e.m = "m", e.n = "n", e.o = "o", e.p = "p", e.q = "q", e.r = "r", e.s = "s", e.t = "t", e.u = "u", e.v = "v", e.w = "w", e.x = "x", e.y = "y", e.z = "z", e.FSlash = "/", e.Question = "?", e.Backslash = "\\", e;
|
|
4402
|
-
}({}), Mo = { class: "td-kbd-shortcut" }, No = /*@__PURE__*/
|
|
4402
|
+
}({}), Mo = { class: "td-kbd-shortcut" }, No = /*@__PURE__*/ I({
|
|
4403
4403
|
__name: "TdKbdShortcut",
|
|
4404
4404
|
props: { keys: {} },
|
|
4405
4405
|
setup(e) {
|
|
@@ -4419,22 +4419,22 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
4419
4419
|
[X.Escape]: "Esc",
|
|
4420
4420
|
[X.Tab]: "Tab",
|
|
4421
4421
|
[X.Backspace]: "⌫"
|
|
4422
|
-
}, r =
|
|
4422
|
+
}, r = k(() => e.keys.map((e) => {
|
|
4423
4423
|
let r = t[e];
|
|
4424
4424
|
if (r) return { icon: r };
|
|
4425
4425
|
let i = n[e];
|
|
4426
4426
|
return i ? { label: i } : { label: e.toUpperCase() };
|
|
4427
4427
|
}));
|
|
4428
|
-
return (e, t) => (
|
|
4428
|
+
return (e, t) => (B(), M("span", Mo, [(B(!0), M(O, null, H(r.value, (e, t) => (B(), M("kbd", { key: t }, [e.icon ? (B(), A(De(e.icon), {
|
|
4429
4429
|
key: 0,
|
|
4430
4430
|
size: 12
|
|
4431
|
-
})) : (
|
|
4431
|
+
})) : (B(), M(O, { key: 1 }, [P(W(e.label), 1)], 64))]))), 128))]));
|
|
4432
4432
|
}
|
|
4433
4433
|
}), Z = (e, t) => {
|
|
4434
4434
|
let n = e.__vccOpts || e;
|
|
4435
4435
|
for (let [e, r] of t) n[e] = r;
|
|
4436
4436
|
return n;
|
|
4437
|
-
}, Q = /*#__PURE__*/ Z(No, [["__scopeId", "data-v-ad94203e"]]), Po = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
4437
|
+
}, Q = /*#__PURE__*/ Z(No, [["__scopeId", "data-v-ad94203e"]]), Po = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
4438
4438
|
inheritAttrs: !1,
|
|
4439
4439
|
__name: "TdTooltip",
|
|
4440
4440
|
props: {
|
|
@@ -4447,7 +4447,7 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
4447
4447
|
shortcut: { default: () => void 0 }
|
|
4448
4448
|
},
|
|
4449
4449
|
setup(e) {
|
|
4450
|
-
let t = K("trigger"), n = K("tooltip"), r = K("arrowEl"), i =
|
|
4450
|
+
let t = K("trigger"), n = K("tooltip"), r = K("arrowEl"), i = V(!1), a, o, { floatingStyles: s, middlewareData: c, placement: l } = jo(t, n, {
|
|
4451
4451
|
placement: e.placement,
|
|
4452
4452
|
middleware: [
|
|
4453
4453
|
xo(8),
|
|
@@ -4465,39 +4465,39 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
4465
4465
|
i.value = !0;
|
|
4466
4466
|
}, 400));
|
|
4467
4467
|
}
|
|
4468
|
-
|
|
4468
|
+
ye(u);
|
|
4469
4469
|
function f() {
|
|
4470
4470
|
u(), o = setTimeout(() => {
|
|
4471
4471
|
i.value = !1;
|
|
4472
4472
|
}, 100);
|
|
4473
4473
|
}
|
|
4474
|
-
return (r, a) => (
|
|
4474
|
+
return (r, a) => (B(), M(O, null, [N("span", _e({
|
|
4475
4475
|
ref_key: "trigger",
|
|
4476
4476
|
ref: t
|
|
4477
4477
|
}, r.$attrs, {
|
|
4478
4478
|
class: "td-tooltip-trigger",
|
|
4479
4479
|
onMouseenter: d,
|
|
4480
4480
|
onMouseleave: f
|
|
4481
|
-
}), [
|
|
4481
|
+
}), [U(r.$slots, "default", {}, void 0, !0)], 16), (B(), A(le, { to: "body" }, [i.value ? (B(), M("div", {
|
|
4482
4482
|
key: 0,
|
|
4483
4483
|
ref_key: "tooltip",
|
|
4484
4484
|
ref: n,
|
|
4485
4485
|
class: "td-tooltip",
|
|
4486
|
-
style:
|
|
4486
|
+
style: R(G(s)),
|
|
4487
4487
|
role: "tooltip",
|
|
4488
4488
|
onMouseenter: u,
|
|
4489
4489
|
onMouseleave: f
|
|
4490
4490
|
}, [
|
|
4491
|
-
|
|
4492
|
-
e.shortcut ? (
|
|
4491
|
+
P(W(e.text) + " ", 1),
|
|
4492
|
+
e.shortcut ? (B(), A(Q, {
|
|
4493
4493
|
key: 0,
|
|
4494
4494
|
keys: e.shortcut,
|
|
4495
4495
|
class: "td-tooltip-shortcut"
|
|
4496
|
-
}, null, 8, ["keys"])) :
|
|
4497
|
-
|
|
4496
|
+
}, null, 8, ["keys"])) : j("", !0),
|
|
4497
|
+
N("div", {
|
|
4498
4498
|
ref: "arrowEl",
|
|
4499
4499
|
class: "td-tooltip-arrow",
|
|
4500
|
-
style:
|
|
4500
|
+
style: R({
|
|
4501
4501
|
left: G(c).arrow?.x === void 0 ? "" : `${G(c).arrow.x}px`,
|
|
4502
4502
|
top: G(c).arrow?.y === void 0 ? "" : `${G(c).arrow.y}px`,
|
|
4503
4503
|
...G(l).startsWith("bottom") ? { top: "-4px" } : {},
|
|
@@ -4506,22 +4506,22 @@ var X = /* @__PURE__ */ function(e) {
|
|
|
4506
4506
|
...G(l).startsWith("left") ? { right: "-4px" } : {}
|
|
4507
4507
|
})
|
|
4508
4508
|
}, null, 4)
|
|
4509
|
-
], 36)) :
|
|
4509
|
+
], 36)) : j("", !0)]))], 64));
|
|
4510
4510
|
}
|
|
4511
|
-
}), [["__scopeId", "data-v-db48de27"]]), Fo = ["aria-label"], Io = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
4511
|
+
}), [["__scopeId", "data-v-db48de27"]]), Fo = ["aria-label"], Io = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
4512
4512
|
__name: "TdButton",
|
|
4513
4513
|
props: { label: {} },
|
|
4514
4514
|
setup(e) {
|
|
4515
|
-
return (t, n) => (
|
|
4515
|
+
return (t, n) => (B(), A(Po, {
|
|
4516
4516
|
always: !!e.label,
|
|
4517
4517
|
text: e.label,
|
|
4518
4518
|
placement: "bottom"
|
|
4519
4519
|
}, {
|
|
4520
|
-
default: J(() => [
|
|
4520
|
+
default: J(() => [N("button", {
|
|
4521
4521
|
type: "button",
|
|
4522
4522
|
class: "td-icon-btn",
|
|
4523
4523
|
"aria-label": e.label
|
|
4524
|
-
}, [
|
|
4524
|
+
}, [U(t.$slots, "default", {}, void 0, !0)], 8, Fo)]),
|
|
4525
4525
|
_: 3
|
|
4526
4526
|
}, 8, ["always", "text"]));
|
|
4527
4527
|
}
|
|
@@ -4708,7 +4708,7 @@ function Ro(e) {
|
|
|
4708
4708
|
}
|
|
4709
4709
|
// src/client/theme-default/utils/renderInlineMarkup.ts
|
|
4710
4710
|
function zo(e) {
|
|
4711
|
-
let t =
|
|
4711
|
+
let t = V(Bo(e()));
|
|
4712
4712
|
return Pe((n) => {
|
|
4713
4713
|
let r = e();
|
|
4714
4714
|
if (!r.includes("$")) {
|
|
@@ -4725,58 +4725,58 @@ function zo(e) {
|
|
|
4725
4725
|
}
|
|
4726
4726
|
function Bo(e) {
|
|
4727
4727
|
let t = 0, n = "";
|
|
4728
|
-
for (let r of e.matchAll(
|
|
4728
|
+
for (let r of e.matchAll(ce)) n += h(e.slice(t, r.index)), r[1] === void 0 ? n += h(r[0]) : n += `<code>${h(r[1])}</code>`, t = r.index + r[0].length;
|
|
4729
4729
|
return n += h(e.slice(t)), n;
|
|
4730
4730
|
}
|
|
4731
4731
|
// src/client/theme-default/components/TdTree/TdTreeNodeLabel.vue?vue&type=script&setup=true&lang.ts
|
|
4732
|
-
var Vo = ["innerHTML"], Ho = /* @__PURE__ */
|
|
4732
|
+
var Vo = ["innerHTML"], Ho = /* @__PURE__ */ I({
|
|
4733
4733
|
__name: "TdTreeNodeLabel",
|
|
4734
4734
|
props: { text: {} },
|
|
4735
4735
|
setup(e) {
|
|
4736
4736
|
let t = zo(() => e.text);
|
|
4737
|
-
return (e, n) => (
|
|
4737
|
+
return (e, n) => (B(), M("span", { innerHTML: G(t) }, null, 8, Vo));
|
|
4738
4738
|
}
|
|
4739
|
-
}), Uo = ["aria-expanded"], Wo = { class: "td-tree-label-text" }, Go = ["href"], Ko = { class: "td-tree-count" }, qo = ["href"], Jo = ["href"], Yo = {
|
|
4739
|
+
}), Uo = ["aria-expanded"], Wo = { class: "td-tree-label-text" }, Go = ["href", "aria-label"], Ko = { class: "td-tree-count" }, qo = ["href", "aria-label"], Jo = ["href"], Yo = {
|
|
4740
4740
|
key: 2,
|
|
4741
4741
|
class: "td-tree-time"
|
|
4742
|
-
}, Xo = 10, Zo = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
4742
|
+
}, Xo = 10, Zo = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
4743
4743
|
__name: "TdTreeNode",
|
|
4744
4744
|
props: {
|
|
4745
4745
|
node: {},
|
|
4746
4746
|
urlPrefix: { default: "" }
|
|
4747
4747
|
},
|
|
4748
4748
|
setup(e) {
|
|
4749
|
-
let n = ji(), { withBase: i } = $(), a =
|
|
4749
|
+
let n = ji(), { withBase: i } = $(), a = k(() => ee(e.urlPrefix, e.node.name)), o = k(() => f(e.node)), s = k(() => o.value ? r(o.value.filepath) : u(a.value)), c = k(() => i(s.value)), l = k(() => o.value?.label ?? d(e.node.name)), h = k(() => o.value?.icon ? Ro(o.value.icon.name) : void 0), g = k(() => e.node.entries.filter((e) => e.kind === "dir" || !m(e.item.filepath))), _ = k(() => 0 < e.node.entries.length), v = k(() => y(e.node));
|
|
4750
4750
|
function y(e) {
|
|
4751
4751
|
let t = 0;
|
|
4752
4752
|
for (let n of e.entries) n.kind === "file" ? t++ : t += y(n.node);
|
|
4753
4753
|
return t;
|
|
4754
4754
|
}
|
|
4755
|
-
let b =
|
|
4755
|
+
let b = V(!t(a.value, n.path)), x = typeof window > "u", S = V(!1), C = k(() => g.value.filter((e) => e.kind === "file")), w = k(() => C.value.length), T = k(() => {
|
|
4756
4756
|
let e = 0;
|
|
4757
4757
|
for (let t of g.value) if (t.kind === "file") {
|
|
4758
4758
|
if (r(t.item.filepath) === n.path) return e;
|
|
4759
4759
|
e++;
|
|
4760
4760
|
}
|
|
4761
4761
|
return -1;
|
|
4762
|
-
}),
|
|
4763
|
-
if (
|
|
4762
|
+
}), E = k(() => {
|
|
4763
|
+
if (w.value <= Xo) return {
|
|
4764
4764
|
start: 0,
|
|
4765
|
-
end:
|
|
4765
|
+
end: w.value
|
|
4766
4766
|
};
|
|
4767
|
-
let e =
|
|
4767
|
+
let e = T.value;
|
|
4768
4768
|
if (e < 0) return {
|
|
4769
4769
|
start: 0,
|
|
4770
4770
|
end: Xo
|
|
4771
4771
|
};
|
|
4772
4772
|
let t = Math.max(0, e - 4), n = t + Xo;
|
|
4773
|
-
return
|
|
4773
|
+
return w.value < n && (n = w.value, t = Math.max(0, n - Xo)), {
|
|
4774
4774
|
start: t,
|
|
4775
4775
|
end: n
|
|
4776
4776
|
};
|
|
4777
|
-
}),
|
|
4778
|
-
if (
|
|
4779
|
-
let { start: e, end: t } =
|
|
4777
|
+
}), ne = k(() => S.value ? 0 : E.value.start), re = k(() => S.value ? 0 : Math.max(0, w.value - E.value.end)), ie = k(() => {
|
|
4778
|
+
if (S.value) return g.value;
|
|
4779
|
+
let { start: e, end: t } = E.value, n = 0;
|
|
4780
4780
|
return g.value.filter((r) => {
|
|
4781
4781
|
if (r.kind === "dir") return !0;
|
|
4782
4782
|
let i = e <= n && n < t;
|
|
@@ -4786,10 +4786,10 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
|
|
|
4786
4786
|
q(() => n.path, (e) => {
|
|
4787
4787
|
t(a.value, e) && (b.value = !1);
|
|
4788
4788
|
});
|
|
4789
|
-
function
|
|
4790
|
-
|
|
4789
|
+
function ae() {
|
|
4790
|
+
S.value = !0;
|
|
4791
4791
|
}
|
|
4792
|
-
function
|
|
4792
|
+
function D(e) {
|
|
4793
4793
|
return n.path === e;
|
|
4794
4794
|
}
|
|
4795
4795
|
function oe(e) {
|
|
@@ -4799,100 +4799,103 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
|
|
|
4799
4799
|
b.value = !b.value;
|
|
4800
4800
|
}
|
|
4801
4801
|
return (e, t) => {
|
|
4802
|
-
let n =
|
|
4803
|
-
return _.value ? (
|
|
4802
|
+
let n = Ee("TdTreeNode", !0);
|
|
4803
|
+
return _.value ? (B(), M("div", {
|
|
4804
4804
|
key: 0,
|
|
4805
4805
|
class: "td-tree-node",
|
|
4806
4806
|
role: "treeitem",
|
|
4807
4807
|
"aria-expanded": !b.value
|
|
4808
|
-
}, [
|
|
4808
|
+
}, [N("div", {
|
|
4809
4809
|
class: "td-tree-label",
|
|
4810
4810
|
role: "button",
|
|
4811
4811
|
tabindex: "0",
|
|
4812
4812
|
onClick: se,
|
|
4813
4813
|
onKeydown: oe
|
|
4814
4814
|
}, [
|
|
4815
|
-
|
|
4815
|
+
F(G(bt), {
|
|
4816
4816
|
size: 14,
|
|
4817
|
-
class:
|
|
4817
|
+
class: L(["td-tree-caret", { "is-collapsed": b.value }])
|
|
4818
4818
|
}, null, 8, ["class"]),
|
|
4819
|
-
|
|
4820
|
-
|
|
4819
|
+
N("span", Wo, W(l.value), 1),
|
|
4820
|
+
F(Po, {
|
|
4821
4821
|
text: "Open index page",
|
|
4822
4822
|
always: ""
|
|
4823
4823
|
}, {
|
|
4824
|
-
default: J(() => [
|
|
4824
|
+
default: J(() => [N("a", {
|
|
4825
4825
|
href: c.value,
|
|
4826
|
-
class:
|
|
4826
|
+
class: L(["td-tree-index-btn", { "is-active": D(s.value) }]),
|
|
4827
|
+
"aria-label": `Open index page for ${l.value}`,
|
|
4827
4828
|
onClick: t[0] ||= Le(() => {}, ["stop"])
|
|
4828
|
-
}, [h.value ? (
|
|
4829
|
+
}, [h.value ? (B(), A(De(h.value), {
|
|
4829
4830
|
key: 0,
|
|
4830
4831
|
size: 12
|
|
4831
|
-
})) :
|
|
4832
|
+
})) : D(s.value) ? (B(), A(G(un), {
|
|
4832
4833
|
key: 1,
|
|
4833
4834
|
size: 12
|
|
4834
|
-
})) : (
|
|
4835
|
+
})) : (B(), A(G(dn), {
|
|
4835
4836
|
key: 2,
|
|
4836
4837
|
size: 12
|
|
4837
4838
|
}))], 10, Go)]),
|
|
4838
4839
|
_: 1
|
|
4839
4840
|
}),
|
|
4840
|
-
|
|
4841
|
-
], 32), M("div", {
|
|
4842
|
-
|
|
4841
|
+
N("span", Ko, W(v.value), 1)
|
|
4842
|
+
], 32), !x || !b.value ? (B(), M("div", {
|
|
4843
|
+
key: 0,
|
|
4844
|
+
class: L(["td-collapse td-tree-children", { "is-collapsed": b.value }]),
|
|
4843
4845
|
role: "group"
|
|
4844
|
-
}, [
|
|
4845
|
-
o.value ? (
|
|
4846
|
+
}, [N("div", null, [
|
|
4847
|
+
o.value ? (B(), M("a", {
|
|
4846
4848
|
key: 0,
|
|
4847
4849
|
href: c.value,
|
|
4848
|
-
class:
|
|
4849
|
-
|
|
4850
|
+
class: L(["td-tree-link td-tree-index-entry", { "is-active": D(s.value) }]),
|
|
4851
|
+
"aria-label": `${l.value} Overview`
|
|
4852
|
+
}, [F(G(lt), {
|
|
4850
4853
|
size: 14,
|
|
4851
4854
|
class: "td-tree-file-icon"
|
|
4852
|
-
}), t[1] ||=
|
|
4853
|
-
|
|
4855
|
+
}), t[1] ||= N("span", { class: "td-tree-link-text" }, "Overview", -1)], 10, qo)) : j("", !0),
|
|
4856
|
+
ne.value > 0 ? (B(), M("button", {
|
|
4854
4857
|
key: 1,
|
|
4855
4858
|
class: "td-tree-more",
|
|
4856
4859
|
type: "button",
|
|
4857
|
-
onClick:
|
|
4858
|
-
}, W(
|
|
4859
|
-
(
|
|
4860
|
+
onClick: ae
|
|
4861
|
+
}, W(ne.value) + " more... ", 1)) : j("", !0),
|
|
4862
|
+
(B(!0), M(O, null, H(ie.value, (e) => (B(), M(O, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (B(), A(n, {
|
|
4860
4863
|
key: 0,
|
|
4861
4864
|
node: e.node,
|
|
4862
4865
|
"url-prefix": a.value
|
|
4863
|
-
}, null, 8, ["node", "url-prefix"])) : (
|
|
4866
|
+
}, null, 8, ["node", "url-prefix"])) : (B(), M("a", {
|
|
4864
4867
|
key: 1,
|
|
4865
4868
|
href: G(i)(G(r)(e.item.filepath)),
|
|
4866
|
-
class:
|
|
4869
|
+
class: L(["td-tree-link", { "is-active": D(G(r)(e.item.filepath)) }])
|
|
4867
4870
|
}, [
|
|
4868
|
-
e.item.icon && G(Ro)(e.item.icon.name) ? (
|
|
4871
|
+
e.item.icon && G(Ro)(e.item.icon.name) ? (B(), A(De(G(Ro)(e.item.icon.name)), {
|
|
4869
4872
|
key: 0,
|
|
4870
4873
|
size: 14,
|
|
4871
4874
|
class: "td-tree-file-icon"
|
|
4872
|
-
})) : (
|
|
4875
|
+
})) : (B(), A(G(rn), {
|
|
4873
4876
|
key: 1,
|
|
4874
4877
|
size: 14,
|
|
4875
4878
|
class: "td-tree-file-icon"
|
|
4876
4879
|
})),
|
|
4877
|
-
|
|
4880
|
+
F(Po, {
|
|
4878
4881
|
class: "td-tree-link-text",
|
|
4879
|
-
text: G(
|
|
4882
|
+
text: G(te)(e.item.filepath, e.item.label)
|
|
4880
4883
|
}, {
|
|
4881
|
-
default: J(() => [
|
|
4884
|
+
default: J(() => [F(Ho, { text: G(te)(e.item.filepath, e.item.label) }, null, 8, ["text"])]),
|
|
4882
4885
|
_: 2
|
|
4883
4886
|
}, 1032, ["text"]),
|
|
4884
|
-
e.item.fileMetadata ? (
|
|
4887
|
+
e.item.fileMetadata ? (B(), M("span", Yo, W(G(p)(e.item.fileMetadata.mtimeSecs)), 1)) : j("", !0)
|
|
4885
4888
|
], 10, Jo))], 64))), 128)),
|
|
4886
|
-
|
|
4889
|
+
re.value > 0 ? (B(), M("button", {
|
|
4887
4890
|
key: 2,
|
|
4888
4891
|
class: "td-tree-more",
|
|
4889
4892
|
type: "button",
|
|
4890
|
-
onClick:
|
|
4891
|
-
}, W(
|
|
4892
|
-
])], 2)], 8, Uo)) :
|
|
4893
|
+
onClick: ae
|
|
4894
|
+
}, W(re.value) + " more... ", 1)) : j("", !0)
|
|
4895
|
+
])], 2)) : j("", !0)], 8, Uo)) : j("", !0);
|
|
4893
4896
|
};
|
|
4894
4897
|
}
|
|
4895
|
-
}), [["__scopeId", "data-v-
|
|
4898
|
+
}), [["__scopeId", "data-v-ae206009"]]), Qo = {
|
|
4896
4899
|
class: "td-nav",
|
|
4897
4900
|
"aria-label": "Site navigation"
|
|
4898
4901
|
}, $o = { role: "tree" }, es = ["href"], ts = {
|
|
@@ -4901,66 +4904,66 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
|
|
|
4901
4904
|
}, ns = ["href"], rs = { class: "td-root-link-text" }, is = {
|
|
4902
4905
|
key: 2,
|
|
4903
4906
|
class: "td-root-link-time"
|
|
4904
|
-
}, as = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
4907
|
+
}, as = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
4905
4908
|
__name: "TdContentNav",
|
|
4906
4909
|
props: { tree: {} },
|
|
4907
4910
|
setup(e) {
|
|
4908
|
-
let t = ji(), { withBase: n } = $(), i =
|
|
4911
|
+
let t = ji(), { withBase: n } = $(), i = k(() => e.tree.entries.find((e) => e.kind === "file" && m(e.item.filepath))?.item), a = k(() => e.tree.entries.filter((e) => e.kind === "dir" || !m(e.item.filepath)));
|
|
4909
4912
|
function o(e) {
|
|
4910
4913
|
return t.path === e;
|
|
4911
4914
|
}
|
|
4912
|
-
return (e, t) => (
|
|
4915
|
+
return (e, t) => (B(), M("nav", Qo, [N("div", $o, [N("a", {
|
|
4913
4916
|
href: G(n)(i.value ? G(r)(i.value.filepath) : G(u)("/")),
|
|
4914
|
-
class:
|
|
4917
|
+
class: L(["td-root-link", { "is-active": o(i.value ? G(r)(i.value.filepath) : G(u)("/")) }]),
|
|
4915
4918
|
role: "treeitem"
|
|
4916
4919
|
}, [
|
|
4917
|
-
|
|
4920
|
+
F(G(Tn), {
|
|
4918
4921
|
size: 14,
|
|
4919
4922
|
class: "td-root-link-icon"
|
|
4920
4923
|
}),
|
|
4921
|
-
t[0] ||=
|
|
4922
|
-
i.value ? (
|
|
4923
|
-
], 10, es), (
|
|
4924
|
+
t[0] ||= N("span", { class: "td-root-link-text" }, "Overview", -1),
|
|
4925
|
+
i.value ? (B(), M("span", ts, W(i.value.fileMetadata ? G(p)(i.value.fileMetadata.mtimeSecs) : ""), 1)) : j("", !0)
|
|
4926
|
+
], 10, es), (B(!0), M(O, null, H(a.value, (e) => (B(), M(O, { key: e.kind === "dir" ? e.node.name : e.item.filepath }, [e.kind === "dir" ? (B(), A(Zo, {
|
|
4924
4927
|
key: 0,
|
|
4925
4928
|
node: e.node
|
|
4926
|
-
}, null, 8, ["node"])) : (
|
|
4929
|
+
}, null, 8, ["node"])) : (B(), M("a", {
|
|
4927
4930
|
key: 1,
|
|
4928
4931
|
href: G(n)(G(r)(e.item.filepath)),
|
|
4929
|
-
class:
|
|
4932
|
+
class: L(["td-root-link", { "is-active": o(G(r)(e.item.filepath)) }]),
|
|
4930
4933
|
role: "treeitem"
|
|
4931
4934
|
}, [
|
|
4932
|
-
e.item.icon && G(Ro)(e.item.icon.name) ? (
|
|
4935
|
+
e.item.icon && G(Ro)(e.item.icon.name) ? (B(), A(De(G(Ro)(e.item.icon.name)), {
|
|
4933
4936
|
key: 0,
|
|
4934
4937
|
size: 14,
|
|
4935
4938
|
class: "td-root-link-icon"
|
|
4936
|
-
})) : (
|
|
4939
|
+
})) : (B(), A(G(rn), {
|
|
4937
4940
|
key: 1,
|
|
4938
4941
|
size: 14,
|
|
4939
4942
|
class: "td-root-link-icon"
|
|
4940
4943
|
})),
|
|
4941
|
-
|
|
4942
|
-
e.item.fileMetadata ? (
|
|
4944
|
+
N("span", rs, W(G(te)(e.item.filepath, e.item.label)), 1),
|
|
4945
|
+
e.item.fileMetadata ? (B(), M("span", is, W(G(p)(e.item.fileMetadata.mtimeSecs)), 1)) : j("", !0)
|
|
4943
4946
|
], 10, ns))], 64))), 128))])]));
|
|
4944
4947
|
}
|
|
4945
|
-
}), [["__scopeId", "data-v-038de594"]]), os = { class: "td-footer" }, ss = { key: 0 }, cs = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
4948
|
+
}), [["__scopeId", "data-v-038de594"]]), os = { class: "td-footer" }, ss = { key: 0 }, cs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
4946
4949
|
__name: "TdFooter",
|
|
4947
4950
|
setup(e) {
|
|
4948
4951
|
let t = $(), n = (/* @__PURE__ */ new Date()).getFullYear();
|
|
4949
|
-
return (e, r) => (
|
|
4952
|
+
return (e, r) => (B(), M("footer", os, [r[0] ||= N("span", null, [P(" Powered by "), N("a", {
|
|
4950
4953
|
href: "https://github.com/huydo862003/typerighter",
|
|
4951
4954
|
target: "_blank",
|
|
4952
4955
|
rel: "noopener noreferrer",
|
|
4953
4956
|
class: "td-footer-link"
|
|
4954
|
-
}, "Typerighter")], -1), G(t).author || G(t).license ? (
|
|
4955
|
-
G(t).license ? (
|
|
4956
|
-
G(t).license && G(t).author ? (
|
|
4957
|
-
G(t).author ? (
|
|
4958
|
-
])) :
|
|
4957
|
+
}, "Typerighter")], -1), G(t).author || G(t).license ? (B(), M("span", ss, [
|
|
4958
|
+
G(t).license ? (B(), M(O, { key: 0 }, [P(W(G(t).license), 1)], 64)) : j("", !0),
|
|
4959
|
+
G(t).license && G(t).author ? (B(), M(O, { key: 1 }, [P(" · ")], 64)) : j("", !0),
|
|
4960
|
+
G(t).author ? (B(), M(O, { key: 2 }, [P("© " + W(G(n)) + " " + W(G(t).author), 1)], 64)) : j("", !0)
|
|
4961
|
+
])) : j("", !0)]));
|
|
4959
4962
|
}
|
|
4960
4963
|
}), [["__scopeId", "data-v-696804f8"]]), ls = {
|
|
4961
4964
|
key: 0,
|
|
4962
4965
|
class: "td-dropdown-panel"
|
|
4963
|
-
}, us = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
4966
|
+
}, us = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
4964
4967
|
inheritAttrs: !1,
|
|
4965
4968
|
__name: "TdDropdown",
|
|
4966
4969
|
props: {
|
|
@@ -4981,12 +4984,12 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
|
|
|
4981
4984
|
}
|
|
4982
4985
|
return q(t, (e) => {
|
|
4983
4986
|
typeof document < "u" && (e ? document.addEventListener("click", r) : document.removeEventListener("click", r));
|
|
4984
|
-
}),
|
|
4987
|
+
}), z(() => {
|
|
4985
4988
|
typeof document < "u" && document.removeEventListener("click", r);
|
|
4986
|
-
}), (e, r) => (
|
|
4989
|
+
}), (e, r) => (B(), M("span", _e({
|
|
4987
4990
|
ref_key: "wrapper",
|
|
4988
4991
|
ref: n
|
|
4989
|
-
}, e.$attrs, { class: "td-dropdown" }), [
|
|
4992
|
+
}, e.$attrs, { class: "td-dropdown" }), [N("span", { onClick: i }, [U(e.$slots, "trigger", {}, void 0, !0)]), t.value ? (B(), M("div", ls, [U(e.$slots, "default", {}, void 0, !0)])) : j("", !0)], 16));
|
|
4990
4993
|
}
|
|
4991
4994
|
}), [["__scopeId", "data-v-645fe3f0"]]), ds = {
|
|
4992
4995
|
class: "td-breadcrumb",
|
|
@@ -5000,10 +5003,10 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
|
|
|
5000
5003
|
}, _s = ["href"], vs = {
|
|
5001
5004
|
key: 1,
|
|
5002
5005
|
class: "td-breadcrumb-current"
|
|
5003
|
-
}, ys = 3, bs = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5006
|
+
}, ys = 3, bs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5004
5007
|
__name: "TdBreadcrumb",
|
|
5005
5008
|
setup(e) {
|
|
5006
|
-
let t = ji(), { withBase: n } = $(), r =
|
|
5009
|
+
let t = ji(), { withBase: n } = $(), r = V(!1), i = k(() => {
|
|
5007
5010
|
let e = a(t.path), r = [{
|
|
5008
5011
|
name: "Home",
|
|
5009
5012
|
href: n(u("/"))
|
|
@@ -5018,45 +5021,45 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
|
|
|
5018
5021
|
});
|
|
5019
5022
|
}
|
|
5020
5023
|
return r;
|
|
5021
|
-
}), o =
|
|
5024
|
+
}), o = k(() => ys < i.value.length), s = k(() => i.value.slice(1, -2));
|
|
5022
5025
|
return q(() => t.path, () => {
|
|
5023
5026
|
r.value = !1;
|
|
5024
|
-
}), (e, t) => (
|
|
5027
|
+
}), (e, t) => (B(), M("nav", ds, [N("a", {
|
|
5025
5028
|
href: i.value[0].href,
|
|
5026
5029
|
class: "td-breadcrumb-link td-breadcrumb-home"
|
|
5027
|
-
}, W(i.value[0].name), 9, fs), o.value ? (
|
|
5028
|
-
t[2] ||=
|
|
5030
|
+
}, W(i.value[0].name), 9, fs), o.value ? (B(), M(O, { key: 0 }, [
|
|
5031
|
+
t[2] ||= N("span", {
|
|
5029
5032
|
class: "td-breadcrumb-sep",
|
|
5030
5033
|
"aria-hidden": "true"
|
|
5031
5034
|
}, "/", -1),
|
|
5032
|
-
|
|
5035
|
+
F(us, {
|
|
5033
5036
|
open: r.value,
|
|
5034
5037
|
"onUpdate:open": t[0] ||= (e) => r.value = e
|
|
5035
5038
|
}, {
|
|
5036
|
-
trigger: J(() => [
|
|
5037
|
-
default: J(() => [(
|
|
5039
|
+
trigger: J(() => [N("button", ps, [F(G(Qt), { size: 14 })])]),
|
|
5040
|
+
default: J(() => [(B(!0), M(O, null, H(s.value, (e) => (B(), M("a", {
|
|
5038
5041
|
key: e.href,
|
|
5039
5042
|
href: e.href,
|
|
5040
5043
|
class: "td-breadcrumb-dropdown-item"
|
|
5041
5044
|
}, W(e.name), 9, ms))), 128))]),
|
|
5042
5045
|
_: 1
|
|
5043
5046
|
}, 8, ["open"]),
|
|
5044
|
-
(
|
|
5047
|
+
(B(!0), M(O, null, H(i.value.slice(-2), (e) => (B(), M(O, { key: e.href }, [t[1] ||= N("span", {
|
|
5045
5048
|
class: "td-breadcrumb-sep",
|
|
5046
5049
|
"aria-hidden": "true"
|
|
5047
|
-
}, "/", -1), e === i.value[i.value.length - 1] ? (
|
|
5050
|
+
}, "/", -1), e === i.value[i.value.length - 1] ? (B(), M("span", gs, W(e.name), 1)) : (B(), M("a", {
|
|
5048
5051
|
key: 0,
|
|
5049
5052
|
href: e.href,
|
|
5050
5053
|
class: "td-breadcrumb-link"
|
|
5051
5054
|
}, W(e.name), 9, hs))], 64))), 128))
|
|
5052
|
-
], 64)) : (
|
|
5055
|
+
], 64)) : (B(!0), M(O, { key: 1 }, H(i.value.slice(1), (e, n) => (B(), M(O, { key: e.href }, [t[3] ||= N("span", {
|
|
5053
5056
|
class: "td-breadcrumb-sep",
|
|
5054
5057
|
"aria-hidden": "true"
|
|
5055
|
-
}, "/", -1), n < i.value.length - 2 ? (
|
|
5058
|
+
}, "/", -1), n < i.value.length - 2 ? (B(), M("a", {
|
|
5056
5059
|
key: 0,
|
|
5057
5060
|
href: e.href,
|
|
5058
5061
|
class: "td-breadcrumb-link"
|
|
5059
|
-
}, W(e.name), 9, _s)) : (
|
|
5062
|
+
}, W(e.name), 9, _s)) : (B(), M("span", vs, W(e.name), 1))], 64))), 128))]));
|
|
5060
5063
|
}
|
|
5061
5064
|
}), [["__scopeId", "data-v-89f87a49"]]), xs = {
|
|
5062
5065
|
key: 0,
|
|
@@ -5065,42 +5068,42 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
|
|
|
5065
5068
|
"href",
|
|
5066
5069
|
"target",
|
|
5067
5070
|
"rel"
|
|
5068
|
-
], Cs = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5071
|
+
], Cs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5069
5072
|
__name: "TdHeaderNavBar",
|
|
5070
5073
|
setup(e) {
|
|
5071
5074
|
let t = $(), { withBase: n } = t, r = ji();
|
|
5072
5075
|
function i(e) {
|
|
5073
5076
|
return !_(e) && r.path.startsWith(n(e));
|
|
5074
5077
|
}
|
|
5075
|
-
return (e, r) => G(t).nav?.length ? (
|
|
5078
|
+
return (e, r) => G(t).nav?.length ? (B(), M("nav", xs, [(B(!0), M(O, null, H(G(t).nav, (e) => (B(), M("a", {
|
|
5076
5079
|
key: e.link,
|
|
5077
5080
|
href: G(_)(e.link) ? e.link : G(n)(e.link),
|
|
5078
5081
|
target: G(_)(e.link) ? "_blank" : void 0,
|
|
5079
5082
|
rel: G(_)(e.link) ? "noopener noreferrer" : void 0,
|
|
5080
|
-
class:
|
|
5083
|
+
class: L(["td-header-nav-link", { "is-active": i(e.link) }])
|
|
5081
5084
|
}, [
|
|
5082
|
-
e.icon && G(Ro)(e.icon) ? (
|
|
5085
|
+
e.icon && G(Ro)(e.icon) ? (B(), A(De(G(Ro)(e.icon)), {
|
|
5083
5086
|
key: 0,
|
|
5084
5087
|
size: 14,
|
|
5085
5088
|
class: "td-header-nav-icon"
|
|
5086
|
-
})) :
|
|
5087
|
-
|
|
5088
|
-
G(_)(e.link) ? (
|
|
5089
|
+
})) : j("", !0),
|
|
5090
|
+
P(" " + W(e.title) + " ", 1),
|
|
5091
|
+
G(_)(e.link) ? (B(), A(G(tt), {
|
|
5089
5092
|
key: 1,
|
|
5090
5093
|
size: 14
|
|
5091
|
-
})) :
|
|
5092
|
-
], 10, Ss))), 128))])) :
|
|
5094
|
+
})) : j("", !0)
|
|
5095
|
+
], 10, Ss))), 128))])) : j("", !0);
|
|
5093
5096
|
}
|
|
5094
|
-
}), [["__scopeId", "data-v-b7b3bb7c"]]), ws = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5097
|
+
}), [["__scopeId", "data-v-b7b3bb7c"]]), ws = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5095
5098
|
__name: "TdLucideIcon",
|
|
5096
5099
|
props: { name: {} },
|
|
5097
5100
|
setup(e) {
|
|
5098
|
-
let t =
|
|
5099
|
-
return (e, n) => t.value ? (
|
|
5101
|
+
let t = k(() => Ro(e.name));
|
|
5102
|
+
return (e, n) => t.value ? (B(), A(De(t.value), {
|
|
5100
5103
|
key: 0,
|
|
5101
5104
|
size: 14,
|
|
5102
5105
|
class: "td-inline-icon"
|
|
5103
|
-
})) :
|
|
5106
|
+
})) : j("", !0);
|
|
5104
5107
|
}
|
|
5105
5108
|
}), [["__scopeId", "data-v-ed097470"]]), Ts = {
|
|
5106
5109
|
key: 0,
|
|
@@ -5109,41 +5112,41 @@ var Vo = ["innerHTML"], Ho = /* @__PURE__ */ F({
|
|
|
5109
5112
|
"href",
|
|
5110
5113
|
"target",
|
|
5111
5114
|
"rel"
|
|
5112
|
-
], Ds = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5115
|
+
], Ds = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5113
5116
|
__name: "TdHeaderNavMenu",
|
|
5114
5117
|
setup(e) {
|
|
5115
5118
|
let t = $(), { withBase: n } = t, r = ji();
|
|
5116
5119
|
function i(e) {
|
|
5117
5120
|
return !_(e) && r.path.startsWith(n(e));
|
|
5118
5121
|
}
|
|
5119
|
-
return (e, r) => G(t).nav?.length ? (
|
|
5122
|
+
return (e, r) => G(t).nav?.length ? (B(), M("nav", Ts, [(B(!0), M(O, null, H(G(t).nav, (e) => (B(), M("a", {
|
|
5120
5123
|
key: e.link,
|
|
5121
5124
|
href: G(_)(e.link) ? e.link : G(n)(e.link),
|
|
5122
5125
|
target: G(_)(e.link) ? "_blank" : void 0,
|
|
5123
5126
|
rel: G(_)(e.link) ? "noopener noreferrer" : void 0,
|
|
5124
|
-
class:
|
|
5127
|
+
class: L(["td-menu-nav-item", { "is-active": i(e.link) }])
|
|
5125
5128
|
}, [
|
|
5126
|
-
e.icon ? (
|
|
5129
|
+
e.icon ? (B(), A(ws, {
|
|
5127
5130
|
key: 0,
|
|
5128
5131
|
name: e.icon,
|
|
5129
5132
|
size: 16
|
|
5130
|
-
}, null, 8, ["name"])) :
|
|
5131
|
-
|
|
5132
|
-
G(_)(e.link) ? (
|
|
5133
|
+
}, null, 8, ["name"])) : j("", !0),
|
|
5134
|
+
N("span", null, W(e.title), 1),
|
|
5135
|
+
G(_)(e.link) ? (B(), A(G(tt), {
|
|
5133
5136
|
key: 1,
|
|
5134
5137
|
size: 14
|
|
5135
|
-
})) :
|
|
5136
|
-
], 10, Es))), 128))])) :
|
|
5138
|
+
})) : j("", !0)
|
|
5139
|
+
], 10, Es))), 128))])) : j("", !0);
|
|
5137
5140
|
}
|
|
5138
|
-
}), [["__scopeId", "data-v-8b23de5a"]]), Os = { class: "td-widget-checkbox" }, ks = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5141
|
+
}), [["__scopeId", "data-v-8b23de5a"]]), Os = { class: "td-widget-checkbox" }, ks = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5139
5142
|
__name: "TdWidgetCheckbox",
|
|
5140
5143
|
props: { value: {} },
|
|
5141
5144
|
setup(e) {
|
|
5142
|
-
return (t, n) => (
|
|
5145
|
+
return (t, n) => (B(), M("span", Os, [e.value ? (B(), A(G(qr), {
|
|
5143
5146
|
key: 0,
|
|
5144
5147
|
size: 16,
|
|
5145
5148
|
class: "td-widget-checkbox-icon is-checked"
|
|
5146
|
-
})) : (
|
|
5149
|
+
})) : (B(), A(G(Jr), {
|
|
5147
5150
|
key: 1,
|
|
5148
5151
|
size: 16,
|
|
5149
5152
|
class: "td-widget-checkbox-icon"
|
|
@@ -5198,7 +5201,7 @@ function Ms(e) {
|
|
|
5198
5201
|
var Ns = {
|
|
5199
5202
|
key: 0,
|
|
5200
5203
|
class: "td-widget-relation-wrapper"
|
|
5201
|
-
}, Ps = ["href", "title"], Fs = ["src", "alt"], Is = ["href"], Ls = { class: "td-widget-file-name" }, Rs = ["href"], zs = ["href"], Bs = { key: 1 }, Vs = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5204
|
+
}, Ps = ["href", "title"], Fs = ["src", "alt"], Is = ["href"], Ls = { class: "td-widget-file-name" }, Rs = ["href"], zs = ["href"], Bs = { key: 1 }, Vs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5202
5205
|
__name: "TdWidgetRelation",
|
|
5203
5206
|
props: {
|
|
5204
5207
|
value: {},
|
|
@@ -5208,78 +5211,78 @@ var Ns = {
|
|
|
5208
5211
|
}
|
|
5209
5212
|
},
|
|
5210
5213
|
setup(e) {
|
|
5211
|
-
let { withBase: t } = $(), n =
|
|
5212
|
-
return (a, o) => n.value ? (
|
|
5214
|
+
let { withBase: t } = $(), n = k(() => js(e.value)), r = k(() => n.value?.icon ? Ro(n.value.icon.name) : void 0), i = k(() => n.value !== void 0 && _(n.value.url));
|
|
5215
|
+
return (a, o) => n.value ? (B(), M("span", Ns, [n.value.isImage ? (B(), M("a", {
|
|
5213
5216
|
key: 0,
|
|
5214
5217
|
href: G(t)(n.value.url),
|
|
5215
5218
|
target: "_blank",
|
|
5216
5219
|
rel: "noopener noreferrer",
|
|
5217
5220
|
class: "td-widget-image-preview",
|
|
5218
5221
|
title: n.value.name
|
|
5219
|
-
}, [
|
|
5222
|
+
}, [N("img", {
|
|
5220
5223
|
src: G(t)(n.value.url),
|
|
5221
5224
|
alt: n.value.name,
|
|
5222
5225
|
class: "td-widget-image-img",
|
|
5223
5226
|
loading: "lazy"
|
|
5224
|
-
}, null, 8, Fs)], 8, Ps)) : n.value.format || n.value.url.includes(".") ? (
|
|
5227
|
+
}, null, 8, Fs)], 8, Ps)) : n.value.format || n.value.url.includes(".") ? (B(), M("a", {
|
|
5225
5228
|
key: 1,
|
|
5226
5229
|
href: G(t)(n.value.url),
|
|
5227
5230
|
target: "_blank",
|
|
5228
5231
|
rel: "noopener noreferrer",
|
|
5229
5232
|
class: "td-widget-file-link"
|
|
5230
|
-
}, [
|
|
5233
|
+
}, [F(G(nn), { class: "td-widget-file-icon" }), N("span", Ls, W(n.value.name), 1)], 8, Is)) : i.value ? (B(), M("a", {
|
|
5231
5234
|
key: 2,
|
|
5232
5235
|
href: n.value.url,
|
|
5233
5236
|
target: "_blank",
|
|
5234
5237
|
rel: "noopener noreferrer",
|
|
5235
5238
|
class: "td-widget-ref td-widget-ref-external"
|
|
5236
|
-
}, [
|
|
5239
|
+
}, [F(G(tt), {
|
|
5237
5240
|
size: 12,
|
|
5238
5241
|
class: "td-widget-external-icon"
|
|
5239
|
-
})], 8, Rs)) : (
|
|
5242
|
+
})], 8, Rs)) : (B(), M("a", {
|
|
5240
5243
|
key: 3,
|
|
5241
5244
|
href: G(t)(n.value.url),
|
|
5242
5245
|
class: "td-widget-ref"
|
|
5243
|
-
}, [r.value && !e.hideIcon ? (
|
|
5246
|
+
}, [r.value && !e.hideIcon ? (B(), A(De(r.value), {
|
|
5244
5247
|
key: 0,
|
|
5245
5248
|
size: 14,
|
|
5246
5249
|
class: "td-widget-ref-icon"
|
|
5247
|
-
})) :
|
|
5250
|
+
})) : j("", !0), P(W(n.value.name), 1)], 8, zs))])) : (B(), M("span", Bs, W(e.value), 1));
|
|
5248
5251
|
}
|
|
5249
|
-
}), [["__scopeId", "data-v-20319819"]]), Hs = { key: 0 }, Us = { class: "td-widget-list td-widget-list-icons" }, Ws = { key: 1 }, Gs = { class: "td-widget-list" }, Ks = 5, qs = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5252
|
+
}), [["__scopeId", "data-v-20319819"]]), Hs = { key: 0 }, Us = { class: "td-widget-list td-widget-list-icons" }, Ws = { key: 1 }, Gs = { class: "td-widget-list" }, Ks = 5, qs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5250
5253
|
__name: "TdWidgetList",
|
|
5251
5254
|
props: {
|
|
5252
5255
|
definition: {},
|
|
5253
5256
|
value: {}
|
|
5254
5257
|
},
|
|
5255
5258
|
setup(e) {
|
|
5256
|
-
let t =
|
|
5259
|
+
let t = V(!1), n = k(() => Array.isArray(e.value) ? e.value : []), r = k(() => e.definition.items?.widget === "relation"), i = k(() => r.value ? n.value.map((e) => js(e)).filter((e) => e !== void 0) : []), a = k(() => r.value ? Math.max(0, i.value.length - Ks) : Math.max(0, n.value.length - Ks));
|
|
5257
5260
|
function o() {
|
|
5258
5261
|
t.value = !t.value;
|
|
5259
5262
|
}
|
|
5260
5263
|
function s(e) {
|
|
5261
5264
|
return t.value ? e : e.slice(0, Ks);
|
|
5262
5265
|
}
|
|
5263
|
-
return (e, c) => r.value ? (
|
|
5266
|
+
return (e, c) => r.value ? (B(), M("div", Hs, [N("ul", Us, [(B(!0), M(O, null, H(s(i.value), (e, t) => (B(), M("li", { key: t }, [N("div", null, [(B(), A(De(e.icon ? G(Ro)(e.icon.name) ?? G(rn) : G(rn)), {
|
|
5264
5267
|
size: 14,
|
|
5265
5268
|
class: "td-widget-list-icon"
|
|
5266
|
-
}))]),
|
|
5269
|
+
}))]), F(Vs, {
|
|
5267
5270
|
value: { $ref: e },
|
|
5268
5271
|
"hide-icon": ""
|
|
5269
|
-
}, null, 8, ["value"])]))), 128))]), a.value > 0 ? (
|
|
5272
|
+
}, null, 8, ["value"])]))), 128))]), a.value > 0 ? (B(), M("button", {
|
|
5270
5273
|
key: 0,
|
|
5271
5274
|
class: "td-widget-more",
|
|
5272
5275
|
type: "button",
|
|
5273
5276
|
onClick: o
|
|
5274
|
-
}, W(t.value ? "show less" : `+${a.value} more`), 1)) :
|
|
5277
|
+
}, W(t.value ? "show less" : `+${a.value} more`), 1)) : j("", !0)])) : (B(), M("div", Ws, [N("ul", Gs, [(B(!0), M(O, null, H(s(n.value), (e, t) => (B(), M("li", { key: t }, [G(js)(e) ? (B(), A(Vs, {
|
|
5275
5278
|
key: 0,
|
|
5276
5279
|
value: e
|
|
5277
|
-
}, null, 8, ["value"])) : (
|
|
5280
|
+
}, null, 8, ["value"])) : (B(), M(O, { key: 1 }, [P(W(e), 1)], 64))]))), 128))]), a.value > 0 ? (B(), M("button", {
|
|
5278
5281
|
key: 0,
|
|
5279
5282
|
class: "td-widget-more",
|
|
5280
5283
|
type: "button",
|
|
5281
5284
|
onClick: o
|
|
5282
|
-
}, W(t.value ? "show less" : `+${a.value} more`), 1)) :
|
|
5285
|
+
}, W(t.value ? "show less" : `+${a.value} more`), 1)) : j("", !0)]));
|
|
5283
5286
|
}
|
|
5284
5287
|
}), [["__scopeId", "data-v-bc659020"]]), Js = [
|
|
5285
5288
|
{
|
|
@@ -5328,42 +5331,42 @@ function Xs(e) {
|
|
|
5328
5331
|
return Math.abs(t);
|
|
5329
5332
|
}
|
|
5330
5333
|
// src/client/theme-default/components/TdFrontmatter/widgets/TdWidgetMultiSelect.vue?vue&type=script&setup=true&lang.ts
|
|
5331
|
-
var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5334
|
+
var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5332
5335
|
__name: "TdWidgetMultiSelect",
|
|
5333
5336
|
props: { value: {} },
|
|
5334
5337
|
setup(e) {
|
|
5335
|
-
let t =
|
|
5338
|
+
let t = V(!1), n = k(() => Array.isArray(e.value) ? e.value : []), r = k(() => t.value ? n.value : n.value.slice(0, Zs)), i = k(() => Math.max(0, n.value.length - Zs));
|
|
5336
5339
|
function a() {
|
|
5337
5340
|
t.value = !t.value;
|
|
5338
5341
|
}
|
|
5339
|
-
return (e, n) => (
|
|
5342
|
+
return (e, n) => (B(), M(O, null, [(B(!0), M(O, null, H(r.value, (e, t) => (B(), M("span", {
|
|
5340
5343
|
key: t,
|
|
5341
5344
|
class: "td-widget-pill",
|
|
5342
|
-
style:
|
|
5343
|
-
}, W(e), 5))), 128)), i.value > 0 ? (
|
|
5345
|
+
style: R(G(Ys)(e))
|
|
5346
|
+
}, W(e), 5))), 128)), i.value > 0 ? (B(), M("button", {
|
|
5344
5347
|
key: 0,
|
|
5345
5348
|
class: "td-widget-more",
|
|
5346
5349
|
type: "button",
|
|
5347
5350
|
onClick: a
|
|
5348
|
-
}, W(t.value ? "show less" : `+${i.value} more`), 1)) :
|
|
5351
|
+
}, W(t.value ? "show less" : `+${i.value} more`), 1)) : j("", !0)], 64));
|
|
5349
5352
|
}
|
|
5350
|
-
}), [["__scopeId", "data-v-b3656329"]]), $s = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5353
|
+
}), [["__scopeId", "data-v-b3656329"]]), $s = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5351
5354
|
__name: "TdWidgetSelect",
|
|
5352
5355
|
props: { value: {} },
|
|
5353
5356
|
setup(e) {
|
|
5354
|
-
return (t, n) => (
|
|
5357
|
+
return (t, n) => (B(), M("span", {
|
|
5355
5358
|
class: "td-widget-pill",
|
|
5356
|
-
style:
|
|
5359
|
+
style: R(G(Ys)(e.value))
|
|
5357
5360
|
}, W(e.value), 5));
|
|
5358
5361
|
}
|
|
5359
|
-
}), [["__scopeId", "data-v-b9e2b4fd"]]), ec = ["href", "title"], tc = ["src", "alt"], nc = ["href"], rc = { class: "td-widget-file-name" }, ic = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5362
|
+
}), [["__scopeId", "data-v-b9e2b4fd"]]), ec = ["href", "title"], tc = ["src", "alt"], nc = ["href"], rc = { class: "td-widget-file-name" }, ic = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5360
5363
|
__name: "TdWidgetText",
|
|
5361
5364
|
props: {
|
|
5362
5365
|
definition: {},
|
|
5363
5366
|
value: {}
|
|
5364
5367
|
},
|
|
5365
5368
|
setup(e) {
|
|
5366
|
-
let { withBase: t } = $(), n =
|
|
5369
|
+
let { withBase: t } = $(), n = k(() => typeof e.value == "string" ? e.value.trim() : ""), r = k(() => js(e.value)), i = k(() => r.value ? r.value.isImage : 0 < n.value.length && Ms({ url: n.value })), a = k(() => r.value ? r.value.url : n.value), o = k(() => t(a.value)), s = k(() => !n.value || !n.value.includes(".") || n.value.includes(" ") ? !1 : n.value.endsWith(".pdf") || n.value.endsWith(".zip") || n.value.endsWith(".doc") || n.value.endsWith(".docx"));
|
|
5367
5370
|
function c(t) {
|
|
5368
5371
|
if (t == null) return "";
|
|
5369
5372
|
if (typeof t == "object" && !Array.isArray(t)) {
|
|
@@ -5376,53 +5379,53 @@ var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
|
|
|
5376
5379
|
}
|
|
5377
5380
|
return e.definition.widget === "date" ? b(String(t)) : String(t);
|
|
5378
5381
|
}
|
|
5379
|
-
return (t, a) => i.value ? (
|
|
5382
|
+
return (t, a) => i.value ? (B(), M("a", {
|
|
5380
5383
|
key: 0,
|
|
5381
5384
|
href: o.value,
|
|
5382
5385
|
target: "_blank",
|
|
5383
5386
|
rel: "noopener noreferrer",
|
|
5384
5387
|
class: "td-widget-image-preview",
|
|
5385
5388
|
title: r.value ? r.value.name : n.value
|
|
5386
|
-
}, [
|
|
5389
|
+
}, [N("img", {
|
|
5387
5390
|
src: o.value,
|
|
5388
5391
|
alt: r.value ? r.value.name : n.value,
|
|
5389
5392
|
class: "td-widget-image-img",
|
|
5390
5393
|
loading: "lazy"
|
|
5391
|
-
}, null, 8, tc)], 8, ec)) : s.value ? (
|
|
5394
|
+
}, null, 8, tc)], 8, ec)) : s.value ? (B(), M("a", {
|
|
5392
5395
|
key: 1,
|
|
5393
5396
|
href: o.value,
|
|
5394
5397
|
target: "_blank",
|
|
5395
5398
|
rel: "noopener noreferrer",
|
|
5396
5399
|
class: "td-widget-file-link"
|
|
5397
|
-
}, [
|
|
5400
|
+
}, [F(G(nn), { class: "td-widget-file-icon" }), N("span", rc, W(n.value.split("/").pop() ?? n.value), 1)], 8, nc)) : (B(), M(O, { key: 2 }, [P(W(c(e.value)), 1)], 64));
|
|
5398
5401
|
}
|
|
5399
5402
|
}), [["__scopeId", "data-v-2ea0f146"]]), ac = {
|
|
5400
5403
|
key: 0,
|
|
5401
5404
|
class: "td-frontmatter-empty"
|
|
5402
|
-
}, oc = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5405
|
+
}, oc = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5403
5406
|
__name: "TdFrontmatterValue",
|
|
5404
5407
|
props: {
|
|
5405
5408
|
definition: {},
|
|
5406
5409
|
value: {}
|
|
5407
5410
|
},
|
|
5408
5411
|
setup(e) {
|
|
5409
|
-
return (t, n) => e.value === void 0 || e.value === null ? (
|
|
5412
|
+
return (t, n) => e.value === void 0 || e.value === null ? (B(), M("span", ac, "Empty")) : e.definition.widget === "checkbox" ? (B(), A(ks, {
|
|
5410
5413
|
key: 1,
|
|
5411
5414
|
value: e.value
|
|
5412
|
-
}, null, 8, ["value"])) : e.definition.widget === "select" ? (
|
|
5415
|
+
}, null, 8, ["value"])) : e.definition.widget === "select" ? (B(), A($s, {
|
|
5413
5416
|
key: 2,
|
|
5414
5417
|
value: e.value
|
|
5415
|
-
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (
|
|
5418
|
+
}, null, 8, ["value"])) : e.definition.widget === "multiSelect" ? (B(), A(Qs, {
|
|
5416
5419
|
key: 3,
|
|
5417
5420
|
value: e.value
|
|
5418
|
-
}, null, 8, ["value"])) : G(js)(e.value) || e.definition.widget === "relation" ? (
|
|
5421
|
+
}, null, 8, ["value"])) : G(js)(e.value) || e.definition.widget === "relation" ? (B(), A(Vs, {
|
|
5419
5422
|
key: 4,
|
|
5420
5423
|
value: e.value
|
|
5421
|
-
}, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (
|
|
5424
|
+
}, null, 8, ["value"])) : Array.isArray(e.value) || e.definition.widget === "list" ? (B(), A(qs, {
|
|
5422
5425
|
key: 5,
|
|
5423
5426
|
definition: e.definition,
|
|
5424
5427
|
value: e.value
|
|
5425
|
-
}, null, 8, ["definition", "value"])) : (
|
|
5428
|
+
}, null, 8, ["definition", "value"])) : (B(), A(ic, {
|
|
5426
5429
|
key: 6,
|
|
5427
5430
|
definition: e.definition,
|
|
5428
5431
|
value: e.value
|
|
@@ -5434,7 +5437,7 @@ var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
|
|
|
5434
5437
|
}, cc = { class: "td-fm-rail-key" }, lc = { class: "td-fm-rail-value" }, uc = {
|
|
5435
5438
|
key: 1,
|
|
5436
5439
|
class: "td-fm-box"
|
|
5437
|
-
}, dc = { class: "td-fm-box-label" }, fc = { class: "td-fm-box-count" }, pc = { class: "td-fm-box-toggle" }, mc = { class: "td-fm-box-body" }, hc = { class: "td-fm-box-key" }, gc = { class: "td-fm-box-value" }, _c = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5440
|
+
}, dc = { class: "td-fm-box-label" }, fc = { class: "td-fm-box-count" }, pc = { class: "td-fm-box-toggle" }, mc = { class: "td-fm-box-body" }, hc = { class: "td-fm-box-key" }, gc = { class: "td-fm-box-value" }, _c = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5438
5441
|
__name: "TdFrontmatter",
|
|
5439
5442
|
props: {
|
|
5440
5443
|
mode: { default: "inline" },
|
|
@@ -5442,12 +5445,12 @@ var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
|
|
|
5442
5445
|
frontmatter: {}
|
|
5443
5446
|
},
|
|
5444
5447
|
setup(e) {
|
|
5445
|
-
let t = yf(), n =
|
|
5448
|
+
let t = yf(), n = k(() => {
|
|
5446
5449
|
if (e.schema) return t.value.schemas[e.schema];
|
|
5447
|
-
}), r =
|
|
5450
|
+
}), r = k(() => {
|
|
5448
5451
|
let t = e.frontmatter;
|
|
5449
5452
|
return t._type && t.fields && typeof t.fields == "object" && !Array.isArray(t.fields) ? t.fields : t;
|
|
5450
|
-
}), i =
|
|
5453
|
+
}), i = k(() => {
|
|
5451
5454
|
let e = n.value, t = r.value, i = [], a = /* @__PURE__ */ new Set();
|
|
5452
5455
|
e && Object.keys(e).forEach((e) => a.add(e)), Object.keys(t).forEach((e) => a.add(e));
|
|
5453
5456
|
for (let n of a) {
|
|
@@ -5469,57 +5472,57 @@ var Zs = 5, Qs = /*#__PURE__*/ Z(/* @__PURE__ */ F({
|
|
|
5469
5472
|
function o(e) {
|
|
5470
5473
|
return a[e] ?? mi;
|
|
5471
5474
|
}
|
|
5472
|
-
let s =
|
|
5475
|
+
let s = V(!1), c = V(!1);
|
|
5473
5476
|
function l() {
|
|
5474
5477
|
s.value = !s.value;
|
|
5475
5478
|
}
|
|
5476
5479
|
function u() {
|
|
5477
5480
|
c.value = !c.value;
|
|
5478
5481
|
}
|
|
5479
|
-
return (t, n) => e.mode === "rail" && i.value.length > 0 ? (
|
|
5482
|
+
return (t, n) => e.mode === "rail" && i.value.length > 0 ? (B(), M("div", sc, [N("button", {
|
|
5480
5483
|
type: "button",
|
|
5481
5484
|
class: "td-fm-rail-header",
|
|
5482
5485
|
onClick: u
|
|
5483
|
-
}, [n[0] ||=
|
|
5486
|
+
}, [n[0] ||= N("span", { class: "td-fm-rail-label" }, "Properties", -1), F(G(bt), {
|
|
5484
5487
|
size: 14,
|
|
5485
|
-
class:
|
|
5486
|
-
}, null, 8, ["class"])]),
|
|
5488
|
+
class: L(["td-fm-rail-caret", { "is-collapsed": c.value }])
|
|
5489
|
+
}, null, 8, ["class"])]), N("div", { class: L(["td-collapse", { "is-collapsed": c.value }]) }, [N("div", null, [(B(!0), M(O, null, H(i.value, ([e, t]) => (B(), M("div", {
|
|
5487
5490
|
key: e,
|
|
5488
5491
|
class: "td-fm-rail-row"
|
|
5489
|
-
}, [
|
|
5492
|
+
}, [N("span", cc, [(B(), A(De(o(t.widget)), {
|
|
5490
5493
|
size: 12,
|
|
5491
5494
|
class: "td-fm-icon"
|
|
5492
|
-
})),
|
|
5495
|
+
})), P(" " + W(G(d)(e)), 1)]), N("span", lc, [F(oc, {
|
|
5493
5496
|
definition: t,
|
|
5494
5497
|
value: r.value[e]
|
|
5495
|
-
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (
|
|
5498
|
+
}, null, 8, ["definition", "value"])])]))), 128))])], 2)])) : i.value.length > 0 ? (B(), M("div", uc, [N("button", {
|
|
5496
5499
|
type: "button",
|
|
5497
5500
|
class: "td-fm-box-header",
|
|
5498
5501
|
onClick: l
|
|
5499
|
-
}, [
|
|
5502
|
+
}, [N("span", dc, [n[1] ||= P("Properties ", -1), N("span", fc, W(i.value.length), 1)]), N("span", pc, [P(W(s.value ? "Show" : "Hide") + " ", 1), s.value ? (B(), A(G(St), {
|
|
5500
5503
|
key: 1,
|
|
5501
5504
|
size: 14
|
|
5502
|
-
})) : (
|
|
5505
|
+
})) : (B(), A(G(bt), {
|
|
5503
5506
|
key: 0,
|
|
5504
5507
|
size: 14
|
|
5505
|
-
}))])]),
|
|
5508
|
+
}))])]), N("div", { class: L(["td-collapse", { "is-collapsed": s.value }]) }, [N("div", mc, [(B(!0), M(O, null, H(i.value, ([e, t]) => (B(), M(O, { key: e }, [N("span", hc, [(B(), A(De(o(t.widget)), {
|
|
5506
5509
|
size: 12,
|
|
5507
5510
|
class: "td-fm-icon"
|
|
5508
|
-
})),
|
|
5511
|
+
})), P(" " + W(G(d)(e)), 1)]), N("span", gc, [F(oc, {
|
|
5509
5512
|
definition: t,
|
|
5510
5513
|
value: r.value[e]
|
|
5511
|
-
}, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) :
|
|
5514
|
+
}, null, 8, ["definition", "value"])])], 64))), 128))])], 2)])) : j("", !0);
|
|
5512
5515
|
}
|
|
5513
5516
|
}), [["__scopeId", "data-v-88227032"]]);
|
|
5514
5517
|
// src/client/theme-default/composables/useMediaQuery.ts
|
|
5515
5518
|
function vc(e) {
|
|
5516
|
-
let t =
|
|
5519
|
+
let t = V(!1), n;
|
|
5517
5520
|
function r(e) {
|
|
5518
5521
|
t.value = e.matches;
|
|
5519
5522
|
}
|
|
5520
|
-
return
|
|
5523
|
+
return be(() => {
|
|
5521
5524
|
n = window.matchMedia(e), t.value = n.matches, n?.addEventListener("change", r);
|
|
5522
|
-
}),
|
|
5525
|
+
}), z(() => {
|
|
5523
5526
|
n?.removeEventListener("change", r);
|
|
5524
5527
|
}), t;
|
|
5525
5528
|
}
|
|
@@ -5540,7 +5543,7 @@ function xc(e, t, n) {
|
|
|
5540
5543
|
r.defaultPrevented || n?.ignoreWhenTyping && bc(r.target) || wc(r, e) && (r.preventDefault(), t(r));
|
|
5541
5544
|
}
|
|
5542
5545
|
let i = { capture: n?.capture ?? !1 };
|
|
5543
|
-
|
|
5546
|
+
be(() => window.addEventListener("keydown", r, i)), z(() => window.removeEventListener("keydown", r, i));
|
|
5544
5547
|
}
|
|
5545
5548
|
function Sc(e) {
|
|
5546
5549
|
let t = [];
|
|
@@ -5558,7 +5561,7 @@ function Sc(e) {
|
|
|
5558
5561
|
}
|
|
5559
5562
|
return q(e, (e, t) => {
|
|
5560
5563
|
t?.removeEventListener("keydown", r), e?.addEventListener("keydown", r);
|
|
5561
|
-
}, { immediate: !0 }),
|
|
5564
|
+
}, { immediate: !0 }), z(() => {
|
|
5562
5565
|
e.value?.removeEventListener("keydown", r);
|
|
5563
5566
|
}), { register: n };
|
|
5564
5567
|
}
|
|
@@ -5574,9 +5577,9 @@ function wc(e, t) {
|
|
|
5574
5577
|
return !(e.ctrlKey && !n.includes(X.Control) || e.altKey && !n.includes(X.Alt) || e.shiftKey && !n.includes(X.Shift) || e.metaKey && !n.includes(X.Meta));
|
|
5575
5578
|
}
|
|
5576
5579
|
// src/client/theme-default/composables/useMenu.ts
|
|
5577
|
-
var Tc =
|
|
5580
|
+
var Tc = V(!1);
|
|
5578
5581
|
function Ec() {
|
|
5579
|
-
let e = vc("(width >= 64rem)"), t =
|
|
5582
|
+
let e = vc("(width >= 64rem)"), t = k(() => !e.value);
|
|
5580
5583
|
function n() {
|
|
5581
5584
|
Tc.value = !Tc.value;
|
|
5582
5585
|
}
|
|
@@ -5591,7 +5594,7 @@ function Ec() {
|
|
|
5591
5594
|
}), xc([X.Escape], () => {
|
|
5592
5595
|
Tc.value && i();
|
|
5593
5596
|
}), {
|
|
5594
|
-
isOpen:
|
|
5597
|
+
isOpen: we(Tc),
|
|
5595
5598
|
isDrawerMounted: t,
|
|
5596
5599
|
toggle: n,
|
|
5597
5600
|
open: r,
|
|
@@ -5599,20 +5602,20 @@ function Ec() {
|
|
|
5599
5602
|
};
|
|
5600
5603
|
}
|
|
5601
5604
|
// src/client/theme-default/components/TdMenuButton.vue
|
|
5602
|
-
var Dc = /* @__PURE__ */
|
|
5605
|
+
var Dc = /* @__PURE__ */ I({
|
|
5603
5606
|
__name: "TdMenuButton",
|
|
5604
5607
|
setup(e) {
|
|
5605
5608
|
let { isOpen: t, toggle: n } = Ec();
|
|
5606
|
-
return (e, r) => (
|
|
5609
|
+
return (e, r) => (B(), A(Io, {
|
|
5607
5610
|
class: "td-menu-button",
|
|
5608
5611
|
label: G(t) ? "Close menu" : "Open menu",
|
|
5609
5612
|
"aria-expanded": G(t),
|
|
5610
5613
|
onClick: G(n)
|
|
5611
5614
|
}, {
|
|
5612
|
-
default: J(() => [G(t) ? (
|
|
5615
|
+
default: J(() => [G(t) ? (B(), A(G(wi), {
|
|
5613
5616
|
key: 0,
|
|
5614
5617
|
size: 20
|
|
5615
|
-
})) : (
|
|
5618
|
+
})) : (B(), A(G(Zn), {
|
|
5616
5619
|
key: 1,
|
|
5617
5620
|
size: 20
|
|
5618
5621
|
}))]),
|
|
@@ -5626,7 +5629,7 @@ var Dc = /* @__PURE__ */ F({
|
|
|
5626
5629
|
});
|
|
5627
5630
|
// src/client/theme-default/composables/usePreviousNext.ts
|
|
5628
5631
|
function Oc() {
|
|
5629
|
-
let e = yf(), t = ji(), { withBase: n, title: r } = $(), i =
|
|
5632
|
+
let e = yf(), t = ji(), { withBase: n, title: r } = $(), i = k(() => {
|
|
5630
5633
|
let i = Ac(e.value.contentTree, r), a = i.findIndex((e) => e.url === t.path);
|
|
5631
5634
|
if (a === -1) return {};
|
|
5632
5635
|
let o = 0 < a ? i[a - 1] : void 0, s = a < i.length - 1 ? i[a + 1] : void 0;
|
|
@@ -5642,12 +5645,12 @@ function Oc() {
|
|
|
5642
5645
|
};
|
|
5643
5646
|
});
|
|
5644
5647
|
return {
|
|
5645
|
-
previous:
|
|
5646
|
-
next:
|
|
5648
|
+
previous: k(() => i.value.previous),
|
|
5649
|
+
next: k(() => i.value.next)
|
|
5647
5650
|
};
|
|
5648
5651
|
}
|
|
5649
5652
|
function kc(e, t, n) {
|
|
5650
|
-
let r =
|
|
5653
|
+
let r = ee(t, e.name), i = f(e);
|
|
5651
5654
|
i && n.push(jc(i));
|
|
5652
5655
|
for (let t of e.entries) t.kind === "file" && !m(t.item.filepath) ? n.push(jc(t.item)) : t.kind === "dir" && kc(t.node, r, n);
|
|
5653
5656
|
}
|
|
@@ -5658,7 +5661,7 @@ function Ac(e, t) {
|
|
|
5658
5661
|
return n;
|
|
5659
5662
|
}
|
|
5660
5663
|
function jc(e, t) {
|
|
5661
|
-
let n = e.label === void 0 ? t === void 0 ?
|
|
5664
|
+
let n = e.label === void 0 ? t === void 0 ? te(e.filepath) : E(e.filepath, t) : e.label;
|
|
5662
5665
|
return {
|
|
5663
5666
|
url: r(e.filepath),
|
|
5664
5667
|
title: n
|
|
@@ -5675,37 +5678,37 @@ var Mc = {
|
|
|
5675
5678
|
}, Lc = ["href"], Rc = { class: "td-prevnext-label" }, zc = { class: "td-prevnext-title" }, Bc = {
|
|
5676
5679
|
key: 3,
|
|
5677
5680
|
class: "td-prevnext-spacer"
|
|
5678
|
-
}, Vc = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5681
|
+
}, Vc = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5679
5682
|
__name: "TdPreviousNext",
|
|
5680
5683
|
setup(e) {
|
|
5681
5684
|
let { previous: t, next: n } = Oc();
|
|
5682
|
-
return (e, r) => G(t) || G(n) ? (
|
|
5685
|
+
return (e, r) => G(t) || G(n) ? (B(), M("nav", Mc, [G(t) ? (B(), M("a", {
|
|
5683
5686
|
key: 0,
|
|
5684
5687
|
href: G(t).url,
|
|
5685
5688
|
class: "td-prevnext-link is-previous"
|
|
5686
|
-
}, [
|
|
5687
|
-
|
|
5689
|
+
}, [N("span", Pc, [
|
|
5690
|
+
F(G(xt), {
|
|
5688
5691
|
size: 14,
|
|
5689
5692
|
class: "td-prevnext-chevron"
|
|
5690
5693
|
}),
|
|
5691
|
-
r[0] ||=
|
|
5692
|
-
|
|
5693
|
-
]),
|
|
5694
|
+
r[0] ||= P(" Previous ", -1),
|
|
5695
|
+
F(Q, { keys: [G(X).Control, G(X).ArrowLeft] }, null, 8, ["keys"])
|
|
5696
|
+
]), N("span", Fc, W(G(t).title), 1)], 8, Nc)) : (B(), M("span", Ic)), G(n) ? (B(), M("a", {
|
|
5694
5697
|
key: 2,
|
|
5695
5698
|
href: G(n).url,
|
|
5696
5699
|
class: "td-prevnext-link is-next"
|
|
5697
|
-
}, [
|
|
5698
|
-
|
|
5699
|
-
r[1] ||=
|
|
5700
|
-
|
|
5700
|
+
}, [N("span", Rc, [
|
|
5701
|
+
F(Q, { keys: [G(X).Control, G(X).ArrowRight] }, null, 8, ["keys"]),
|
|
5702
|
+
r[1] ||= P(" Next ", -1),
|
|
5703
|
+
F(G(St), {
|
|
5701
5704
|
size: 14,
|
|
5702
5705
|
class: "td-prevnext-chevron"
|
|
5703
5706
|
})
|
|
5704
|
-
]),
|
|
5707
|
+
]), N("span", zc, W(G(n).title), 1)], 8, Lc)) : (B(), M("span", Bc))])) : j("", !0);
|
|
5705
5708
|
}
|
|
5706
5709
|
}), [["__scopeId", "data-v-b937f37a"]]), Hc = 100;
|
|
5707
5710
|
function Uc(e) {
|
|
5708
|
-
let t =
|
|
5711
|
+
let t = V(void 0), n = [], r;
|
|
5709
5712
|
function i() {
|
|
5710
5713
|
if (n.length === 0) return;
|
|
5711
5714
|
if (document.body.offsetHeight <= window.scrollY + window.innerHeight) {
|
|
@@ -5726,12 +5729,12 @@ function Uc(e) {
|
|
|
5726
5729
|
let r = new Set(e.map((e) => e.slug));
|
|
5727
5730
|
n = Array.from(document.querySelectorAll(".td-content h2[id], .td-content h3[id], .td-content h4[id], .td-content h5[id]")).filter((e) => r.has(e.id)), i();
|
|
5728
5731
|
}
|
|
5729
|
-
return
|
|
5732
|
+
return be(() => {
|
|
5730
5733
|
window.addEventListener("scroll", a);
|
|
5731
|
-
}),
|
|
5734
|
+
}), z(() => {
|
|
5732
5735
|
window.removeEventListener("scroll", a), r !== void 0 && cancelAnimationFrame(r);
|
|
5733
5736
|
}), q(e, (e) => {
|
|
5734
|
-
typeof window < "u" &&
|
|
5737
|
+
typeof window < "u" && ve(() => o(e));
|
|
5735
5738
|
}, { immediate: !0 }), t;
|
|
5736
5739
|
}
|
|
5737
5740
|
// src/client/theme-default/components/custom/TdToc.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -5745,7 +5748,7 @@ var Wc = {
|
|
|
5745
5748
|
key: 1,
|
|
5746
5749
|
class: "td-toc",
|
|
5747
5750
|
"data-testid": "toc"
|
|
5748
|
-
}, Xc = { class: "td-toc-list" }, Zc = ["href", "innerHTML"], Qc = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5751
|
+
}, Xc = { class: "td-toc-list" }, Zc = ["href", "innerHTML"], Qc = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5749
5752
|
__name: "TdToc",
|
|
5750
5753
|
props: {
|
|
5751
5754
|
headings: {},
|
|
@@ -5763,16 +5766,16 @@ var Wc = {
|
|
|
5763
5766
|
}
|
|
5764
5767
|
},
|
|
5765
5768
|
setup(e) {
|
|
5766
|
-
let t =
|
|
5769
|
+
let t = k(() => {
|
|
5767
5770
|
let t = [];
|
|
5768
5771
|
for (let n of e.headings) {
|
|
5769
5772
|
t.push(n);
|
|
5770
5773
|
for (let e of n.children) t.push(e);
|
|
5771
5774
|
}
|
|
5772
5775
|
return t;
|
|
5773
|
-
}), n = e.static || e.inline ?
|
|
5776
|
+
}), n = e.static || e.inline ? k(() => void 0) : Uc(() => t.value), r = K("list");
|
|
5774
5777
|
return q(n, () => {
|
|
5775
|
-
|
|
5778
|
+
ve(() => {
|
|
5776
5779
|
let e = r.value, t = e?.querySelector("a.is-active");
|
|
5777
5780
|
if (!e || !t) return;
|
|
5778
5781
|
let n = e.closest(".td-toc") ?? e;
|
|
@@ -5780,32 +5783,32 @@ var Wc = {
|
|
|
5780
5783
|
let i = n.getBoundingClientRect(), a = t.getBoundingClientRect().top - i.top - n.clientHeight / 2 + t.clientHeight / 2;
|
|
5781
5784
|
n.scrollTop += a;
|
|
5782
5785
|
});
|
|
5783
|
-
}), (r, i) => e.inline ? (
|
|
5786
|
+
}), (r, i) => e.inline ? (B(), M("div", Wc, [i[0] ||= N("div", { class: "td-toc-inline-label" }, " On this page ", -1), N("ul", Gc, [(B(!0), M(O, null, H(e.headings, (e) => (B(), M("li", {
|
|
5784
5787
|
key: e.slug,
|
|
5785
5788
|
class: "td-toc-inline-item"
|
|
5786
|
-
}, [
|
|
5789
|
+
}, [N("a", {
|
|
5787
5790
|
href: e.link,
|
|
5788
5791
|
class: "td-toc-inline-link is-h2",
|
|
5789
5792
|
innerHTML: G(y)(e.titleHtml)
|
|
5790
|
-
}, null, 8, Kc), e.children.length ? (
|
|
5793
|
+
}, null, 8, Kc), e.children.length ? (B(), M("ul", qc, [(B(!0), M(O, null, H(e.children, (e) => (B(), M("li", { key: e.slug }, [N("a", {
|
|
5791
5794
|
href: e.link,
|
|
5792
5795
|
class: "td-toc-inline-link is-h3",
|
|
5793
5796
|
innerHTML: G(y)(e.titleHtml)
|
|
5794
|
-
}, null, 8, Jc)]))), 128))])) :
|
|
5797
|
+
}, null, 8, Jc)]))), 128))])) : j("", !0)]))), 128))])])) : e.headings.length ? (B(), M("div", Yc, [N("div", {
|
|
5795
5798
|
ref: "list",
|
|
5796
|
-
class:
|
|
5797
|
-
}, [
|
|
5799
|
+
class: L(["td-toc-list-wrap", { "is-scrollable": e.scrollable }])
|
|
5800
|
+
}, [N("ul", Xc, [(B(!0), M(O, null, H(t.value, (e) => (B(), M("li", {
|
|
5798
5801
|
key: e.slug,
|
|
5799
|
-
class:
|
|
5802
|
+
class: L({
|
|
5800
5803
|
"td-toc-indent-1": e.level === 3,
|
|
5801
5804
|
"td-toc-indent-2": e.level === 4,
|
|
5802
5805
|
"td-toc-indent-3": e.level === 5
|
|
5803
5806
|
})
|
|
5804
|
-
}, [
|
|
5807
|
+
}, [N("a", {
|
|
5805
5808
|
href: e.link,
|
|
5806
|
-
class:
|
|
5809
|
+
class: L(["td-toc-link", { "is-active": G(n) === e.slug }]),
|
|
5807
5810
|
innerHTML: G(y)(e.titleHtml)
|
|
5808
|
-
}, null, 10, Zc)], 2))), 128))])], 2)])) :
|
|
5811
|
+
}, null, 10, Zc)], 2))), 128))])], 2)])) : j("", !0);
|
|
5809
5812
|
}
|
|
5810
5813
|
}), [["__scopeId", "data-v-f02336c5"]]), $c = {
|
|
5811
5814
|
key: 0,
|
|
@@ -5813,10 +5816,10 @@ var Wc = {
|
|
|
5813
5816
|
}, el = { class: "td-rail-inner" }, tl = {
|
|
5814
5817
|
class: "td-rail-indicators",
|
|
5815
5818
|
"aria-hidden": "true"
|
|
5816
|
-
}, nl = { class: "td-rail-panel" }, rl = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5819
|
+
}, nl = { class: "td-rail-panel" }, rl = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5817
5820
|
__name: "TdRail",
|
|
5818
5821
|
setup(e) {
|
|
5819
|
-
let { page: t } = df(), n =
|
|
5822
|
+
let { page: t } = df(), n = k(() => {
|
|
5820
5823
|
let e = [];
|
|
5821
5824
|
for (let n of t.value.headings) {
|
|
5822
5825
|
e.push(n);
|
|
@@ -5824,19 +5827,19 @@ var Wc = {
|
|
|
5824
5827
|
}
|
|
5825
5828
|
return e;
|
|
5826
5829
|
}), r = Uc(() => n.value);
|
|
5827
|
-
return (e, i) => G(t).headings.length > 1 ? (
|
|
5830
|
+
return (e, i) => G(t).headings.length > 1 ? (B(), M("aside", $c, [N("div", el, [N("div", tl, [(B(!0), M(O, null, H(n.value, (e) => (B(), M("div", {
|
|
5828
5831
|
key: e.slug,
|
|
5829
|
-
class:
|
|
5832
|
+
class: L(["td-rail-indicator", {
|
|
5830
5833
|
"is-h3": e.level === 3,
|
|
5831
5834
|
"is-active": G(r) === e.slug
|
|
5832
5835
|
}])
|
|
5833
|
-
}, null, 2))), 128))]),
|
|
5836
|
+
}, null, 2))), 128))]), N("div", nl, [F(Qc, { headings: G(t).headings }, null, 8, ["headings"])])])])) : j("", !0);
|
|
5834
5837
|
}
|
|
5835
5838
|
}), [["__scopeId", "data-v-ebea8dba"]]), il = {
|
|
5836
5839
|
class: "td-skeleton",
|
|
5837
5840
|
role: "status",
|
|
5838
5841
|
"aria-label": "Loading"
|
|
5839
|
-
}, al = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5842
|
+
}, al = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5840
5843
|
__name: "TdSkeleton",
|
|
5841
5844
|
props: { lines: { default: 5 } },
|
|
5842
5845
|
setup(e) {
|
|
@@ -5850,13 +5853,13 @@ var Wc = {
|
|
|
5850
5853
|
55,
|
|
5851
5854
|
72
|
|
5852
5855
|
];
|
|
5853
|
-
return (n, r) => (
|
|
5856
|
+
return (n, r) => (B(), M("div", il, [(B(!0), M(O, null, H(e.lines, (e) => (B(), M("div", {
|
|
5854
5857
|
key: e,
|
|
5855
5858
|
class: "td-skeleton-line",
|
|
5856
|
-
style:
|
|
5859
|
+
style: R({ width: `${t[(e - 1) % t.length]}%` })
|
|
5857
5860
|
}, null, 4))), 128))]));
|
|
5858
5861
|
}
|
|
5859
|
-
}), [["__scopeId", "data-v-f78bb079"]]), ol = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5862
|
+
}), [["__scopeId", "data-v-f78bb079"]]), ol = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5860
5863
|
__name: "TdSidebarNav",
|
|
5861
5864
|
props: {
|
|
5862
5865
|
tree: {},
|
|
@@ -5866,14 +5869,14 @@ var Wc = {
|
|
|
5866
5869
|
setup(e) {
|
|
5867
5870
|
let t = ji(), n = K("scrollElement");
|
|
5868
5871
|
return q(() => t.path, () => {
|
|
5869
|
-
|
|
5872
|
+
ve(() => {
|
|
5870
5873
|
n.value?.querySelector(".is-active")?.scrollIntoView({ block: "nearest" });
|
|
5871
5874
|
});
|
|
5872
|
-
}, { immediate: !0 }), (t, r) => (
|
|
5875
|
+
}, { immediate: !0 }), (t, r) => (B(), M("div", {
|
|
5873
5876
|
ref_key: "scrollElement",
|
|
5874
5877
|
ref: n,
|
|
5875
5878
|
class: "td-sidebar-scroll"
|
|
5876
|
-
}, [!e.searchActive && !e.ready ? (
|
|
5879
|
+
}, [!e.searchActive && !e.ready ? (B(), A(al, { key: 0 })) : e.searchActive ? j("", !0) : (B(), A(as, {
|
|
5877
5880
|
key: 1,
|
|
5878
5881
|
tree: e.tree
|
|
5879
5882
|
}, null, 8, ["tree"]))], 512));
|
|
@@ -5881,16 +5884,16 @@ var Wc = {
|
|
|
5881
5884
|
}), [["__scopeId", "data-v-ca83b6cd"]]), sl = { class: "td-sidebar-icons" }, cl = ["href", "aria-label"], ll = {
|
|
5882
5885
|
key: 1,
|
|
5883
5886
|
class: "td-sidebar-icon-sep"
|
|
5884
|
-
}, ul = ["href", "aria-label"], dl = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
5887
|
+
}, ul = ["href", "aria-label"], dl = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
5885
5888
|
__name: "TdSidebarIcons",
|
|
5886
5889
|
props: { tree: {} },
|
|
5887
5890
|
emits: ["search"],
|
|
5888
5891
|
setup(e, { emit: n }) {
|
|
5889
|
-
let i = n, a = ji(), { withBase: o } = $(), s =
|
|
5892
|
+
let i = n, a = ji(), { withBase: o } = $(), s = k(() => e.tree.entries.find((e) => e.kind === "file" && m(e.item.filepath))?.item), c = k(() => {
|
|
5890
5893
|
let t = [];
|
|
5891
5894
|
for (let n of e.tree.entries) {
|
|
5892
5895
|
if (n.kind !== "dir") continue;
|
|
5893
|
-
let e = n.node, i =
|
|
5896
|
+
let e = n.node, i = ee("", e.name), a = f(e), s = a ? r(a.filepath) : u(i), c = a?.label ?? d(e.name), l = a?.icon ? Ro(a.icon.name) : void 0;
|
|
5894
5897
|
t.push({
|
|
5895
5898
|
label: c,
|
|
5896
5899
|
href: o(s),
|
|
@@ -5907,45 +5910,45 @@ var Wc = {
|
|
|
5907
5910
|
function p(e) {
|
|
5908
5911
|
return a.path === e || t(e, a.path);
|
|
5909
5912
|
}
|
|
5910
|
-
return (e, t) => (
|
|
5911
|
-
|
|
5913
|
+
return (e, t) => (B(), M("div", sl, [
|
|
5914
|
+
F(Po, {
|
|
5912
5915
|
text: "Search",
|
|
5913
5916
|
always: ""
|
|
5914
5917
|
}, {
|
|
5915
|
-
default: J(() => [
|
|
5918
|
+
default: J(() => [N("button", {
|
|
5916
5919
|
class: "td-sidebar-icon-btn",
|
|
5917
5920
|
type: "button",
|
|
5918
5921
|
"aria-label": "Search",
|
|
5919
5922
|
onClick: l
|
|
5920
|
-
}, [
|
|
5923
|
+
}, [F(G(Fr), { size: 16 })])]),
|
|
5921
5924
|
_: 1
|
|
5922
5925
|
}),
|
|
5923
|
-
s.value ? (
|
|
5926
|
+
s.value ? (B(), A(Po, {
|
|
5924
5927
|
key: 0,
|
|
5925
5928
|
text: s.value.label ?? "Home",
|
|
5926
5929
|
always: ""
|
|
5927
5930
|
}, {
|
|
5928
|
-
default: J(() => [
|
|
5931
|
+
default: J(() => [N("a", {
|
|
5929
5932
|
href: G(o)(G(r)(s.value.filepath)),
|
|
5930
|
-
class:
|
|
5933
|
+
class: L(["td-sidebar-icon-btn", { "is-active": p(G(r)(s.value.filepath)) }]),
|
|
5931
5934
|
"aria-label": s.value.label ?? "Home"
|
|
5932
|
-
}, [
|
|
5935
|
+
}, [F(G(Tn), { size: 16 })], 10, cl)]),
|
|
5933
5936
|
_: 1
|
|
5934
|
-
}, 8, ["text"])) :
|
|
5935
|
-
c.value.length ? (
|
|
5936
|
-
(
|
|
5937
|
+
}, 8, ["text"])) : j("", !0),
|
|
5938
|
+
c.value.length ? (B(), M("div", ll)) : j("", !0),
|
|
5939
|
+
(B(!0), M(O, null, H(c.value, (e) => (B(), A(Po, {
|
|
5937
5940
|
key: e.href,
|
|
5938
5941
|
text: e.label,
|
|
5939
5942
|
always: ""
|
|
5940
5943
|
}, {
|
|
5941
|
-
default: J(() => [
|
|
5944
|
+
default: J(() => [N("a", {
|
|
5942
5945
|
href: e.href,
|
|
5943
|
-
class:
|
|
5946
|
+
class: L(["td-sidebar-icon-btn", { "is-active": p(e.path) }]),
|
|
5944
5947
|
"aria-label": e.label
|
|
5945
|
-
}, [e.isFallback ? (
|
|
5948
|
+
}, [e.isFallback ? (B(), A(G(dn), {
|
|
5946
5949
|
key: 1,
|
|
5947
5950
|
size: 16
|
|
5948
|
-
})) : (
|
|
5951
|
+
})) : (B(), A(De(e.icon), {
|
|
5949
5952
|
key: 0,
|
|
5950
5953
|
size: 16
|
|
5951
5954
|
}))], 10, ul)]),
|
|
@@ -5959,7 +5962,7 @@ function fl(e, t) {
|
|
|
5959
5962
|
if (!e || !t) return h(e);
|
|
5960
5963
|
let n = t.trim().split(/\s+/).filter(Boolean), r = h(e);
|
|
5961
5964
|
for (let e of n) {
|
|
5962
|
-
let t = RegExp(`(${
|
|
5965
|
+
let t = RegExp(`(${T(e)})`, "gi");
|
|
5963
5966
|
r = r.replace(t, "<mark>$1</mark>");
|
|
5964
5967
|
}
|
|
5965
5968
|
return r;
|
|
@@ -5973,9 +5976,9 @@ function ml() {
|
|
|
5973
5976
|
});
|
|
5974
5977
|
function i() {
|
|
5975
5978
|
if (t) return t;
|
|
5976
|
-
if (e.value) return t =
|
|
5979
|
+
if (e.value) return t = he(ie.loadJSON(e.value, {
|
|
5977
5980
|
fields: x,
|
|
5978
|
-
storeFields:
|
|
5981
|
+
storeFields: w
|
|
5979
5982
|
})), t;
|
|
5980
5983
|
}
|
|
5981
5984
|
function a(e, t) {
|
|
@@ -6011,7 +6014,7 @@ function ml() {
|
|
|
6011
6014
|
score: e.score
|
|
6012
6015
|
})), r.value = !1;
|
|
6013
6016
|
}
|
|
6014
|
-
let s =
|
|
6017
|
+
let s = S(o, 150);
|
|
6015
6018
|
function c(e) {
|
|
6016
6019
|
let t = e.trim();
|
|
6017
6020
|
t.length === 0 ? (n.value = [], r.value = !1) : (r.value = !0, s(t));
|
|
@@ -6041,21 +6044,22 @@ var hl = {
|
|
|
6041
6044
|
class: "td-palette-results"
|
|
6042
6045
|
}, vl = [
|
|
6043
6046
|
"href",
|
|
6047
|
+
"aria-selected",
|
|
6044
6048
|
"onClick",
|
|
6045
6049
|
"onMouseenter"
|
|
6046
6050
|
], yl = ["innerHTML"], bl = { class: "td-palette-item-path" }, xl = { class: "td-palette-group-label" }, Sl = { class: "td-palette-item-label" }, Cl = {
|
|
6047
6051
|
key: 1,
|
|
6048
6052
|
class: "td-palette-empty"
|
|
6049
|
-
}, wl = { class: "td-palette-footer" }, Tl = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
6053
|
+
}, wl = { class: "td-palette-footer" }, Tl = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
6050
6054
|
__name: "TdCommandPalette",
|
|
6051
6055
|
emits: ["toggle-sidebar", "show-shortcuts"],
|
|
6052
6056
|
setup(e, { expose: t, emit: n }) {
|
|
6053
|
-
let r = n, a =
|
|
6057
|
+
let r = n, a = V(!1), o = V(""), s = V(0), c = K("input"), l = K("results"), u = ji(), d = Mi(), { withBase: f } = $(), { previous: p, next: m } = Oc(), { results: h, search: g, cancel: _ } = ml(), v = k(() => o.value.trim());
|
|
6054
6058
|
function y() {
|
|
6055
6059
|
a.value = !1, _();
|
|
6056
6060
|
}
|
|
6057
6061
|
function b() {
|
|
6058
|
-
o.value = "", a.value = !0, s.value = 0,
|
|
6062
|
+
o.value = "", a.value = !0, s.value = 0, ve(() => c.value?.focus());
|
|
6059
6063
|
}
|
|
6060
6064
|
t({
|
|
6061
6065
|
open: b,
|
|
@@ -6063,10 +6067,10 @@ var hl = {
|
|
|
6063
6067
|
}), q(v, (e, t, n) => {
|
|
6064
6068
|
n(() => _()), g(e), s.value = 0;
|
|
6065
6069
|
});
|
|
6066
|
-
let x =
|
|
6070
|
+
let x = k(() => {
|
|
6067
6071
|
let e = i(u.path);
|
|
6068
6072
|
return e === "/" ? void 0 : e;
|
|
6069
|
-
}),
|
|
6073
|
+
}), S = k(() => {
|
|
6070
6074
|
let e = [];
|
|
6071
6075
|
return m.value && e.push({
|
|
6072
6076
|
id: "nav-next",
|
|
@@ -6107,113 +6111,117 @@ var hl = {
|
|
|
6107
6111
|
navigator.clipboard.writeText(window.location.href).catch(() => {}), y();
|
|
6108
6112
|
}
|
|
6109
6113
|
}), e;
|
|
6110
|
-
}),
|
|
6111
|
-
if (!v.value) return
|
|
6114
|
+
}), C = k(() => {
|
|
6115
|
+
if (!v.value) return S.value;
|
|
6112
6116
|
let e = v.value.toLowerCase();
|
|
6113
|
-
return
|
|
6114
|
-
}),
|
|
6117
|
+
return S.value.filter((t) => t.label.toLowerCase().includes(e) || t.group.toLowerCase().includes(e));
|
|
6118
|
+
}), w = k(() => {
|
|
6115
6119
|
let e = /* @__PURE__ */ new Map();
|
|
6116
|
-
for (let t of
|
|
6120
|
+
for (let t of C.value) e.has(t.group) || e.set(t.group, []), e.get(t.group).push(t);
|
|
6117
6121
|
return [...e.entries()].map(([e, t]) => ({
|
|
6118
6122
|
name: e,
|
|
6119
6123
|
commands: t
|
|
6120
6124
|
}));
|
|
6121
|
-
}),
|
|
6122
|
-
function
|
|
6123
|
-
return h.value.length +
|
|
6125
|
+
}), T = k(() => h.value.length + C.value.length);
|
|
6126
|
+
function E(e) {
|
|
6127
|
+
return h.value.length + C.value.indexOf(e);
|
|
6124
6128
|
}
|
|
6125
|
-
function
|
|
6126
|
-
let t =
|
|
6127
|
-
e.key === "Escape" ? (e.preventDefault(), y()) : (e.key === "ArrowDown" && (e.preventDefault(), s.value = 0 < t ? (s.value + 1) % t : 0), e.key === "ArrowUp" && (e.preventDefault(), s.value = 0 < t ? (s.value - 1 + t) % t : 0), e.key === "Enter" && (e.preventDefault(),
|
|
6129
|
+
function ee(e) {
|
|
6130
|
+
let t = T.value;
|
|
6131
|
+
e.key === "Escape" ? (e.preventDefault(), y()) : (e.key === "ArrowDown" && (e.preventDefault(), s.value = 0 < t ? (s.value + 1) % t : 0), e.key === "ArrowUp" && (e.preventDefault(), s.value = 0 < t ? (s.value - 1 + t) % t : 0), e.key === "Enter" && (e.preventDefault(), ne(s.value)));
|
|
6128
6132
|
}
|
|
6129
|
-
function
|
|
6133
|
+
function te(e) {
|
|
6130
6134
|
e.keepsOpen || y(), e.href ? d.go(e.href) : e.action?.();
|
|
6131
6135
|
}
|
|
6132
|
-
function
|
|
6136
|
+
function ne(e) {
|
|
6133
6137
|
if (e < h.value.length) {
|
|
6134
6138
|
let t = h.value[e];
|
|
6135
6139
|
t && (y(), d.go(f(t.id)));
|
|
6136
6140
|
} else {
|
|
6137
|
-
let t =
|
|
6138
|
-
t &&
|
|
6141
|
+
let t = C.value[e - h.value.length];
|
|
6142
|
+
t && te(t);
|
|
6139
6143
|
}
|
|
6140
6144
|
}
|
|
6141
6145
|
function re(e) {
|
|
6142
6146
|
let t = h.value[e];
|
|
6143
6147
|
t && (y(), d.go(f(t.id)));
|
|
6144
6148
|
}
|
|
6145
|
-
return q(
|
|
6149
|
+
return q(T, () => {
|
|
6146
6150
|
s.value = 0;
|
|
6147
6151
|
}), q(s, () => {
|
|
6148
6152
|
requestAnimationFrame(() => {
|
|
6149
6153
|
l.value?.querySelector(".is-selected")?.scrollIntoView({ block: "nearest" });
|
|
6150
6154
|
});
|
|
6151
|
-
}), (e, t) => (
|
|
6155
|
+
}), (e, t) => (B(), A(le, { to: "body" }, [a.value ? (B(), M(O, { key: 0 }, [N("div", {
|
|
6152
6156
|
class: "td-palette-scrim",
|
|
6153
6157
|
onClick: y
|
|
6154
|
-
}),
|
|
6155
|
-
|
|
6156
|
-
|
|
6158
|
+
}), N("div", hl, [
|
|
6159
|
+
N("div", gl, [
|
|
6160
|
+
F(G(Fr), {
|
|
6157
6161
|
size: 14,
|
|
6158
6162
|
class: "td-palette-input-icon"
|
|
6159
6163
|
}),
|
|
6160
|
-
Fe(
|
|
6164
|
+
Fe(N("input", {
|
|
6161
6165
|
ref: "input",
|
|
6162
6166
|
"onUpdate:modelValue": t[0] ||= (e) => o.value = e,
|
|
6163
6167
|
class: "td-palette-input",
|
|
6164
6168
|
type: "text",
|
|
6165
6169
|
placeholder: "Search pages and commands...",
|
|
6170
|
+
"aria-label": "Search pages and commands",
|
|
6166
6171
|
autocomplete: "off",
|
|
6167
6172
|
spellcheck: "false",
|
|
6168
|
-
onKeydown:
|
|
6173
|
+
onKeydown: ee
|
|
6169
6174
|
}, null, 544), [[Me, o.value]]),
|
|
6170
|
-
|
|
6175
|
+
N("button", {
|
|
6171
6176
|
class: "td-palette-esc",
|
|
6172
6177
|
type: "button",
|
|
6173
6178
|
"aria-label": "Close",
|
|
6174
6179
|
onClick: y
|
|
6175
6180
|
}, " esc ")
|
|
6176
6181
|
]),
|
|
6177
|
-
|
|
6178
|
-
G(h).length > 0 ? (
|
|
6182
|
+
N("div", _l, [
|
|
6183
|
+
G(h).length > 0 ? (B(), M(O, { key: 0 }, [t[1] ||= N("div", { class: "td-palette-group-label" }, " Pages ", -1), (B(!0), M(O, null, H(G(h), (e, t) => (B(), M("a", {
|
|
6179
6184
|
key: e.id,
|
|
6180
6185
|
href: G(f)(e.id),
|
|
6181
|
-
class:
|
|
6186
|
+
class: L(["td-palette-item", { "is-selected": t === s.value }]),
|
|
6187
|
+
"aria-selected": t === s.value,
|
|
6182
6188
|
onClick: Le(() => re(t), ["prevent"]),
|
|
6183
6189
|
onMouseenter: () => s.value = t
|
|
6184
|
-
}, [
|
|
6190
|
+
}, [N("span", {
|
|
6185
6191
|
class: "td-palette-item-label",
|
|
6186
6192
|
innerHTML: G(fl)(e.title, v.value)
|
|
6187
|
-
}, null, 8, yl),
|
|
6188
|
-
(
|
|
6189
|
-
class: ["td-palette-item", { "is-selected":
|
|
6190
|
-
|
|
6191
|
-
|
|
6193
|
+
}, null, 8, yl), N("span", bl, W(e.id), 1)], 42, vl))), 128))], 64)) : j("", !0),
|
|
6194
|
+
(B(!0), M(O, null, H(w.value, (e) => (B(), M(O, { key: e.name }, [N("div", xl, W(e.name), 1), (B(!0), M(O, null, H(e.commands, (e) => (B(), A(De(e.href ? "a" : "button"), _e({ key: e.id }, { ref_for: !0 }, e.href ? { href: e.href } : { type: "button" }, {
|
|
6195
|
+
class: ["td-palette-item", { "is-selected": E(e) === s.value }],
|
|
6196
|
+
"aria-selected": E(e) === s.value,
|
|
6197
|
+
onClick: () => te(e),
|
|
6198
|
+
onMouseenter: () => s.value = E(e)
|
|
6192
6199
|
}), {
|
|
6193
|
-
default: J(() => [
|
|
6200
|
+
default: J(() => [N("span", Sl, W(e.label), 1), e.keys ? (B(), A(Q, {
|
|
6194
6201
|
key: 0,
|
|
6195
6202
|
keys: e.keys
|
|
6196
|
-
}, null, 8, ["keys"])) :
|
|
6203
|
+
}, null, 8, ["keys"])) : j("", !0)]),
|
|
6197
6204
|
_: 2
|
|
6198
6205
|
}, 1040, [
|
|
6199
6206
|
"class",
|
|
6207
|
+
"aria-selected",
|
|
6200
6208
|
"onClick",
|
|
6201
6209
|
"onMouseenter"
|
|
6202
6210
|
]))), 128))], 64))), 128)),
|
|
6203
|
-
|
|
6211
|
+
T.value === 0 && v.value ? (B(), M("div", Cl, " No results for \"" + W(v.value) + "\" ", 1)) : j("", !0)
|
|
6204
6212
|
], 512),
|
|
6205
|
-
|
|
6206
|
-
|
|
6207
|
-
|
|
6208
|
-
|
|
6209
|
-
t[2] ||=
|
|
6213
|
+
N("div", wl, [
|
|
6214
|
+
N("span", null, [
|
|
6215
|
+
F(Q, { keys: [G(X).ArrowUp] }, null, 8, ["keys"]),
|
|
6216
|
+
F(Q, { keys: [G(X).ArrowDown] }, null, 8, ["keys"]),
|
|
6217
|
+
t[2] ||= P(" navigate ", -1)
|
|
6210
6218
|
]),
|
|
6211
|
-
|
|
6212
|
-
|
|
6219
|
+
N("span", null, [F(Q, { keys: [G(X).Enter] }, null, 8, ["keys"]), t[3] ||= P(" select ", -1)]),
|
|
6220
|
+
N("span", null, [F(Q, { keys: [G(X).Escape] }, null, 8, ["keys"]), t[4] ||= P(" close ", -1)])
|
|
6213
6221
|
])
|
|
6214
|
-
])], 64)) :
|
|
6222
|
+
])], 64)) : j("", !0)]));
|
|
6215
6223
|
}
|
|
6216
|
-
}), [["__scopeId", "data-v-
|
|
6224
|
+
}), [["__scopeId", "data-v-424fc37c"]]), El = ["onKeydown"], Dl = { class: "td-shortcuts-header" }, Ol = { class: "td-shortcuts-table" }, kl = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
6217
6225
|
__name: "TdShortcutsDialog",
|
|
6218
6226
|
props: { open: { type: Boolean } },
|
|
6219
6227
|
emits: ["close"],
|
|
@@ -6223,11 +6231,11 @@ var hl = {
|
|
|
6223
6231
|
n("close");
|
|
6224
6232
|
}
|
|
6225
6233
|
return q(() => e.open, (e) => {
|
|
6226
|
-
e &&
|
|
6227
|
-
}), (t, n) => (
|
|
6234
|
+
e && ve(() => r.value?.focus());
|
|
6235
|
+
}), (t, n) => (B(), A(le, { to: "body" }, [e.open ? (B(), M(O, { key: 0 }, [N("div", {
|
|
6228
6236
|
class: "td-shortcuts-scrim",
|
|
6229
6237
|
onClick: i
|
|
6230
|
-
}),
|
|
6238
|
+
}), N("div", {
|
|
6231
6239
|
ref: "dialog",
|
|
6232
6240
|
class: "td-shortcuts-dialog",
|
|
6233
6241
|
role: "dialog",
|
|
@@ -6235,19 +6243,19 @@ var hl = {
|
|
|
6235
6243
|
"aria-label": "Keyboard shortcuts",
|
|
6236
6244
|
tabindex: "-1",
|
|
6237
6245
|
onKeydown: Ie(Le(i, ["stop"]), ["esc"])
|
|
6238
|
-
}, [
|
|
6246
|
+
}, [N("div", Dl, [n[0] ||= N("h2", { class: "td-shortcuts-title" }, " Keyboard shortcuts ", -1), N("button", {
|
|
6239
6247
|
class: "td-shortcuts-close",
|
|
6240
6248
|
type: "button",
|
|
6241
6249
|
"aria-label": "Close",
|
|
6242
6250
|
onClick: i
|
|
6243
|
-
}, [
|
|
6244
|
-
|
|
6245
|
-
|
|
6246
|
-
|
|
6247
|
-
|
|
6248
|
-
|
|
6249
|
-
|
|
6250
|
-
])])], 40, El)], 64)) :
|
|
6251
|
+
}, [F(G(wi), { size: 16 })])]), N("table", Ol, [N("tbody", null, [
|
|
6252
|
+
N("tr", null, [n[1] ||= N("td", null, "Search", -1), N("td", null, [F(Q, { keys: [G(X).Meta, G(X).k] }, null, 8, ["keys"])])]),
|
|
6253
|
+
N("tr", null, [n[2] ||= N("td", null, "Commands", -1), N("td", null, [F(Q, { keys: [G(X).Meta, G(X).FSlash] }, null, 8, ["keys"])])]),
|
|
6254
|
+
N("tr", null, [n[3] ||= N("td", null, "Next page", -1), N("td", null, [F(Q, { keys: [G(X).Control, G(X).ArrowRight] }, null, 8, ["keys"])])]),
|
|
6255
|
+
N("tr", null, [n[4] ||= N("td", null, "Previous page", -1), N("td", null, [F(Q, { keys: [G(X).Control, G(X).ArrowLeft] }, null, 8, ["keys"])])]),
|
|
6256
|
+
N("tr", null, [n[5] ||= N("td", null, "Toggle sidebar", -1), N("td", null, [F(Q, { keys: [G(X).Meta, G(X).Backslash] }, null, 8, ["keys"])])]),
|
|
6257
|
+
N("tr", null, [n[6] ||= N("td", null, "Close", -1), N("td", null, [F(Q, { keys: [G(X).Escape] }, null, 8, ["keys"])])])
|
|
6258
|
+
])])], 40, El)], 64)) : j("", !0)]));
|
|
6251
6259
|
}
|
|
6252
6260
|
}), [["__scopeId", "data-v-09d6a93c"]]), Al = { class: "td-search" }, jl = { class: "td-search-input-wrap" }, Ml = {
|
|
6253
6261
|
key: 2,
|
|
@@ -6258,7 +6266,7 @@ var hl = {
|
|
|
6258
6266
|
}, Pl = ["href"], Fl = ["innerHTML"], Il = { class: "td-search-result-path" }, Ll = ["innerHTML"], Rl = {
|
|
6259
6267
|
key: 1,
|
|
6260
6268
|
class: "td-search-empty"
|
|
6261
|
-
}, zl = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
6269
|
+
}, zl = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
6262
6270
|
__name: "TdSiteSearch",
|
|
6263
6271
|
props: {
|
|
6264
6272
|
active: {
|
|
@@ -6269,9 +6277,9 @@ var hl = {
|
|
|
6269
6277
|
query: { default: "" },
|
|
6270
6278
|
queryModifiers: {}
|
|
6271
6279
|
},
|
|
6272
|
-
emits: /*@__PURE__*/
|
|
6280
|
+
emits: /*@__PURE__*/ ge(["select"], ["update:active", "update:query"]),
|
|
6273
6281
|
setup(e, { expose: t, emit: n }) {
|
|
6274
|
-
let r = je(e, "active"), i = je(e, "query"), a = n, o = ji(), { withBase: s } = $(), { results: l, searching: u, indexLoaded: f, search: p, cancel: m } = ml(), h =
|
|
6282
|
+
let r = je(e, "active"), i = je(e, "query"), a = n, o = ji(), { withBase: s } = $(), { results: l, searching: u, indexLoaded: f, search: p, cancel: m } = ml(), h = V(-1), g = k(() => 0 < i.value.trim().length), _ = k(() => {
|
|
6275
6283
|
let e = [], t = /* @__PURE__ */ new Map();
|
|
6276
6284
|
for (let n of l.value) {
|
|
6277
6285
|
let r = c(n.id), i = t.get(r);
|
|
@@ -6295,7 +6303,7 @@ var hl = {
|
|
|
6295
6303
|
function v() {
|
|
6296
6304
|
i.value = "";
|
|
6297
6305
|
}
|
|
6298
|
-
let y =
|
|
6306
|
+
let y = k(() => _.value.flatMap((e) => e.results)), b = k(() => {
|
|
6299
6307
|
let e = /* @__PURE__ */ new Map();
|
|
6300
6308
|
for (let t = 0; t < y.value.length; t++) e.set(y.value[t].id, t);
|
|
6301
6309
|
return e;
|
|
@@ -6303,8 +6311,8 @@ var hl = {
|
|
|
6303
6311
|
function x(e) {
|
|
6304
6312
|
let t = b.value.size;
|
|
6305
6313
|
if (t !== 0) {
|
|
6306
|
-
if (e.key === "ArrowDown") e.preventDefault(), h.value = (h.value + 1) % t,
|
|
6307
|
-
else if (e.key === "ArrowUp") e.preventDefault(), h.value = (h.value - 1 + t) % t,
|
|
6314
|
+
if (e.key === "ArrowDown") e.preventDefault(), h.value = (h.value + 1) % t, C();
|
|
6315
|
+
else if (e.key === "ArrowUp") e.preventDefault(), h.value = (h.value - 1 + t) % t, C();
|
|
6308
6316
|
else if (e.key === "Enter" && 0 <= h.value) {
|
|
6309
6317
|
e.preventDefault();
|
|
6310
6318
|
let t = y.value[h.value];
|
|
@@ -6313,101 +6321,102 @@ var hl = {
|
|
|
6313
6321
|
}
|
|
6314
6322
|
}
|
|
6315
6323
|
}
|
|
6316
|
-
function
|
|
6324
|
+
function S() {
|
|
6317
6325
|
a("select");
|
|
6318
6326
|
}
|
|
6319
|
-
function
|
|
6327
|
+
function C() {
|
|
6320
6328
|
requestAnimationFrame(() => {
|
|
6321
6329
|
document.querySelector(".td-search-result.is-selected")?.scrollIntoView({ block: "nearest" });
|
|
6322
6330
|
});
|
|
6323
6331
|
}
|
|
6324
|
-
let
|
|
6332
|
+
let w = K("searchInput");
|
|
6325
6333
|
return t({
|
|
6326
6334
|
focus() {
|
|
6327
|
-
|
|
6335
|
+
w.value?.focus();
|
|
6328
6336
|
},
|
|
6329
6337
|
blur() {
|
|
6330
|
-
|
|
6338
|
+
w.value?.blur();
|
|
6331
6339
|
},
|
|
6332
6340
|
get isVisible() {
|
|
6333
|
-
return
|
|
6341
|
+
return w.value?.offsetParent !== null;
|
|
6334
6342
|
},
|
|
6335
6343
|
get isFocused() {
|
|
6336
|
-
return document.activeElement ===
|
|
6344
|
+
return document.activeElement === w.value;
|
|
6337
6345
|
}
|
|
6338
|
-
}), (e, t) => (
|
|
6339
|
-
|
|
6340
|
-
|
|
6346
|
+
}), (e, t) => (B(), M("div", Al, [
|
|
6347
|
+
N("div", jl, [
|
|
6348
|
+
F(G(Fr), {
|
|
6341
6349
|
size: 14,
|
|
6342
6350
|
class: "td-search-icon"
|
|
6343
6351
|
}),
|
|
6344
|
-
Fe(
|
|
6352
|
+
Fe(N("input", {
|
|
6345
6353
|
ref_key: "searchInput",
|
|
6346
|
-
ref:
|
|
6354
|
+
ref: w,
|
|
6347
6355
|
"onUpdate:modelValue": t[0] ||= (e) => i.value = e,
|
|
6348
6356
|
class: "td-search-input",
|
|
6349
6357
|
type: "text",
|
|
6350
6358
|
size: "1",
|
|
6351
6359
|
placeholder: "Search...",
|
|
6360
|
+
"aria-label": "Search",
|
|
6352
6361
|
onKeydown: x
|
|
6353
6362
|
}, null, 544), [[Me, i.value]]),
|
|
6354
|
-
!g.value && !G(u) ? (
|
|
6363
|
+
!g.value && !G(u) ? (B(), A(Q, {
|
|
6355
6364
|
key: 0,
|
|
6356
6365
|
keys: [G(X).Meta, G(X).k],
|
|
6357
6366
|
class: "td-search-kbd"
|
|
6358
|
-
}, null, 8, ["keys"])) :
|
|
6359
|
-
G(u) || !G(f) ? (
|
|
6367
|
+
}, null, 8, ["keys"])) : j("", !0),
|
|
6368
|
+
G(u) || !G(f) ? (B(), A(G(Bn), {
|
|
6360
6369
|
key: 1,
|
|
6361
6370
|
size: 12,
|
|
6362
6371
|
class: "td-search-spinner"
|
|
6363
|
-
})) : g.value ? (
|
|
6364
|
-
i.value ? (
|
|
6372
|
+
})) : g.value ? (B(), M("span", Ml, W(G(l).length), 1)) : j("", !0),
|
|
6373
|
+
i.value ? (B(), M("button", {
|
|
6365
6374
|
key: 3,
|
|
6366
6375
|
class: "td-search-clear",
|
|
6367
6376
|
type: "button",
|
|
6368
6377
|
"aria-label": "Clear search",
|
|
6369
6378
|
onClick: v
|
|
6370
|
-
}, [
|
|
6379
|
+
}, [F(G(wi), { size: 12 })])) : j("", !0)
|
|
6371
6380
|
]),
|
|
6372
|
-
g.value && G(l).length > 0 ? (
|
|
6381
|
+
g.value && G(l).length > 0 ? (B(), M("div", Nl, [(B(!0), M(O, null, H(_.value, (e) => (B(), M("div", {
|
|
6373
6382
|
key: e.pageUrl,
|
|
6374
6383
|
class: "td-search-group"
|
|
6375
|
-
}, [(
|
|
6384
|
+
}, [(B(!0), M(O, null, H(e.results, (e) => (B(), M("a", {
|
|
6376
6385
|
key: e.id,
|
|
6377
6386
|
href: G(s)(e.id),
|
|
6378
|
-
class:
|
|
6387
|
+
class: L(["td-search-result", {
|
|
6379
6388
|
"is-selected": b.value.get(e.id) === h.value,
|
|
6380
6389
|
"is-current": G(s)(e.id) === G(o).path
|
|
6381
6390
|
}]),
|
|
6382
|
-
onClick:
|
|
6391
|
+
onClick: S
|
|
6383
6392
|
}, [
|
|
6384
|
-
|
|
6393
|
+
N("span", {
|
|
6385
6394
|
class: "td-search-result-title",
|
|
6386
6395
|
innerHTML: G(fl)(e.title, i.value)
|
|
6387
6396
|
}, null, 8, Fl),
|
|
6388
|
-
|
|
6389
|
-
e.excerpt ? (
|
|
6397
|
+
N("span", Il, W(e.id), 1),
|
|
6398
|
+
e.excerpt ? (B(), M("span", {
|
|
6390
6399
|
key: 0,
|
|
6391
6400
|
class: "td-search-result-excerpt",
|
|
6392
6401
|
innerHTML: G(fl)(e.excerpt, i.value)
|
|
6393
|
-
}, null, 8, Ll)) :
|
|
6394
|
-
], 10, Pl))), 128))]))), 128))])) :
|
|
6395
|
-
g.value && G(l).length === 0 ? (
|
|
6402
|
+
}, null, 8, Ll)) : j("", !0)
|
|
6403
|
+
], 10, Pl))), 128))]))), 128))])) : j("", !0),
|
|
6404
|
+
g.value && G(l).length === 0 ? (B(), M("div", Rl, " No results for \"" + W(i.value) + "\" ", 1)) : j("", !0)
|
|
6396
6405
|
]));
|
|
6397
6406
|
}
|
|
6398
|
-
}), [["__scopeId", "data-v-
|
|
6407
|
+
}), [["__scopeId", "data-v-0326ba73"]]), Bl = /* @__PURE__ */ I({
|
|
6399
6408
|
__name: "TdThemeToggle",
|
|
6400
6409
|
setup(e) {
|
|
6401
|
-
let { isDark: t, toggle: n, lightToggleStyle: r, darkToggleStyle: i } =
|
|
6402
|
-
return (e, a) => (
|
|
6410
|
+
let { isDark: t, toggle: n, lightToggleStyle: r, darkToggleStyle: i } = ne();
|
|
6411
|
+
return (e, a) => (B(), A(Io, {
|
|
6403
6412
|
label: G(t) ? "Switch to light mode" : "Switch to dark mode",
|
|
6404
6413
|
onClick: G(n)
|
|
6405
6414
|
}, {
|
|
6406
|
-
default: J(() => [
|
|
6407
|
-
style:
|
|
6415
|
+
default: J(() => [F(G(Zr), {
|
|
6416
|
+
style: R(G(i)),
|
|
6408
6417
|
size: 18
|
|
6409
|
-
}, null, 8, ["style"]),
|
|
6410
|
-
style:
|
|
6418
|
+
}, null, 8, ["style"]), F(G(nr), {
|
|
6419
|
+
style: R(G(r)),
|
|
6411
6420
|
size: 18
|
|
6412
6421
|
}, null, 8, ["style"])]),
|
|
6413
6422
|
_: 1
|
|
@@ -6435,9 +6444,9 @@ function Vl() {
|
|
|
6435
6444
|
}, 2e3);
|
|
6436
6445
|
}
|
|
6437
6446
|
}
|
|
6438
|
-
|
|
6447
|
+
be(() => {
|
|
6439
6448
|
document.addEventListener("click", e);
|
|
6440
|
-
}),
|
|
6449
|
+
}), z(() => {
|
|
6441
6450
|
document.removeEventListener("click", e);
|
|
6442
6451
|
});
|
|
6443
6452
|
}
|
|
@@ -6452,9 +6461,9 @@ function Hl() {
|
|
|
6452
6461
|
t.classList.remove("td-header-anchor--copied");
|
|
6453
6462
|
}, 2e3);
|
|
6454
6463
|
}
|
|
6455
|
-
|
|
6464
|
+
be(() => {
|
|
6456
6465
|
document.addEventListener("click", e);
|
|
6457
|
-
}),
|
|
6466
|
+
}), z(() => {
|
|
6458
6467
|
document.removeEventListener("click", e);
|
|
6459
6468
|
});
|
|
6460
6469
|
}
|
|
@@ -6490,9 +6499,9 @@ function Gl() {
|
|
|
6490
6499
|
}
|
|
6491
6500
|
document.addEventListener("pointermove", o), document.addEventListener("pointerup", s);
|
|
6492
6501
|
}
|
|
6493
|
-
|
|
6502
|
+
be(() => {
|
|
6494
6503
|
document.addEventListener("pointermove", r), document.addEventListener("pointerdown", i);
|
|
6495
|
-
}),
|
|
6504
|
+
}), z(() => {
|
|
6496
6505
|
document.removeEventListener("pointermove", r), document.removeEventListener("pointerdown", i);
|
|
6497
6506
|
});
|
|
6498
6507
|
}
|
|
@@ -6503,7 +6512,7 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
|
|
|
6503
6512
|
}, ru = ["aria-label"], iu = { class: "td-diagram-modal-header" }, au = { class: "td-diagram-modal-header-left" }, ou = { class: "td-diagram-modal-title" }, su = { class: "td-diagram-modal-chip" }, cu = { class: "td-diagram-modal-header-right" }, lu = ["aria-pressed"], uu = { class: "td-diagram-button-label" }, du = { class: "td-diagram-modal-body" }, fu = {
|
|
6504
6513
|
key: 0,
|
|
6505
6514
|
class: "td-diagram-modal-code-panel"
|
|
6506
|
-
}, pu = { class: "td-diagram-modal-code-panel-header" }, mu = { class: "td-diagram-modal-code-panel-body" }, hu = { class: "td-diagram-code td-diagram-code--modal" }, gu = { class: "td-diagram-code-number" }, _u = { class: "td-diagram-code-column" }, vu = ["innerHTML"], yu = { class: "td-diagram-modal-hint" }, bu = .15, xu = 5, Su = 4, Cu = .9, wu = .82, Tu = 1.25, Eu = .8, Du = 1.6, Ou = 1400, ku = 20, Au = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
6515
|
+
}, pu = { class: "td-diagram-modal-code-panel-header" }, mu = { class: "td-diagram-modal-code-panel-body" }, hu = { class: "td-diagram-code td-diagram-code--modal" }, gu = { class: "td-diagram-code-number" }, _u = { class: "td-diagram-code-column" }, vu = ["innerHTML"], yu = { class: "td-diagram-modal-hint" }, bu = .15, xu = 5, Su = 4, Cu = .9, wu = .82, Tu = 1.25, Eu = .8, Du = 1.6, Ou = 1400, ku = 20, Au = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
6507
6516
|
__name: "TdDiagram",
|
|
6508
6517
|
props: {
|
|
6509
6518
|
svg: {},
|
|
@@ -6513,15 +6522,15 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
|
|
|
6513
6522
|
diagramId: {}
|
|
6514
6523
|
},
|
|
6515
6524
|
setup(e) {
|
|
6516
|
-
let t = typeof navigator < "u" && /Mac/i.test(navigator.userAgent) ? "⌘" : "Ctrl", n = K("stage"), r = K("canvas"), i = K("modalStage"), a = K("modalCanvas"), o = K("modalDialog"), s = K("expandButton"), c =
|
|
6525
|
+
let t = typeof navigator < "u" && /Mac/i.test(navigator.userAgent) ? "⌘" : "Ctrl", n = K("stage"), r = K("canvas"), i = K("modalStage"), a = K("modalCanvas"), o = K("modalDialog"), s = K("expandButton"), c = V(!1), l = V(!1), u = V(!1), d = V(!1), f = V(!1), p = V({
|
|
6517
6526
|
x: 0,
|
|
6518
6527
|
y: 0,
|
|
6519
6528
|
scale: 1
|
|
6520
|
-
}), m =
|
|
6529
|
+
}), m = V({
|
|
6521
6530
|
x: 0,
|
|
6522
6531
|
y: 0,
|
|
6523
6532
|
scale: 1
|
|
6524
|
-
}), h =
|
|
6533
|
+
}), h = k(() => {
|
|
6525
6534
|
let t = e.svg.match(/viewBox=["']([^"']+)["']/);
|
|
6526
6535
|
if (t) {
|
|
6527
6536
|
let e = t[1].split(/[\s,]+/);
|
|
@@ -6538,35 +6547,35 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
|
|
|
6538
6547
|
width: 400,
|
|
6539
6548
|
height: 300
|
|
6540
6549
|
};
|
|
6541
|
-
}), g =
|
|
6550
|
+
}), g = k(() => e.source.split("\n")), _ = k(() => g.value.length), v = k(() => `${Math.round(p.value.scale * 100)}%`), y = k(() => `${Math.round(m.value.scale * 100)}%`), b = k(() => e.label === "Mermaid" ? "mmd" : e.label === "D2" ? "d2" : "txt"), x = k(() => ({
|
|
6542
6551
|
width: `${h.value.width}px`,
|
|
6543
6552
|
height: `${h.value.height}px`
|
|
6544
|
-
})),
|
|
6553
|
+
})), S = k(() => {
|
|
6545
6554
|
let { x: e, y: t, scale: n } = p.value;
|
|
6546
6555
|
return {
|
|
6547
6556
|
...x.value,
|
|
6548
6557
|
transform: `translate(${e}px, ${t}px) scale(${n})`
|
|
6549
6558
|
};
|
|
6550
|
-
}),
|
|
6559
|
+
}), C = k(() => {
|
|
6551
6560
|
let { x: e, y: t, scale: n } = m.value;
|
|
6552
6561
|
return {
|
|
6553
6562
|
...x.value,
|
|
6554
6563
|
transform: `translate(${e}px, ${t}px) scale(${n})`
|
|
6555
6564
|
};
|
|
6556
|
-
}),
|
|
6565
|
+
}), w = k(() => {
|
|
6557
6566
|
let { x: e, y: t, scale: n } = m.value, r = ku * n;
|
|
6558
6567
|
return {
|
|
6559
6568
|
backgroundSize: `${r}px ${r}px`,
|
|
6560
6569
|
backgroundPosition: `${e % r}px ${t % r}px`
|
|
6561
6570
|
};
|
|
6562
6571
|
});
|
|
6563
|
-
function
|
|
6572
|
+
function T(e) {
|
|
6564
6573
|
return Math.min(xu, Math.max(bu, e));
|
|
6565
6574
|
}
|
|
6566
|
-
function
|
|
6575
|
+
function E() {
|
|
6567
6576
|
l.value = !1, Re?.(), Re = void 0, s.value?.focus();
|
|
6568
6577
|
}
|
|
6569
|
-
function
|
|
6578
|
+
function ee(e, t, n, r, i) {
|
|
6570
6579
|
if (n <= 0 || r <= 0) return {
|
|
6571
6580
|
x: 0,
|
|
6572
6581
|
y: 0,
|
|
@@ -6579,10 +6588,10 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
|
|
|
6579
6588
|
scale: a
|
|
6580
6589
|
};
|
|
6581
6590
|
}
|
|
6582
|
-
function
|
|
6591
|
+
function te() {
|
|
6583
6592
|
re(d);
|
|
6584
6593
|
}
|
|
6585
|
-
function
|
|
6594
|
+
function ne() {
|
|
6586
6595
|
re(f);
|
|
6587
6596
|
}
|
|
6588
6597
|
function re(t) {
|
|
@@ -6599,77 +6608,77 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
|
|
|
6599
6608
|
c.href = s, c.download = `${e.diagramId}.svg`, c.click(), URL.revokeObjectURL(s);
|
|
6600
6609
|
}
|
|
6601
6610
|
function ae() {
|
|
6602
|
-
|
|
6611
|
+
oe(n.value ?? void 0, p, Cu);
|
|
6603
6612
|
}
|
|
6604
|
-
function
|
|
6605
|
-
|
|
6613
|
+
function D() {
|
|
6614
|
+
oe(i.value ?? void 0, m, wu);
|
|
6606
6615
|
}
|
|
6607
|
-
function
|
|
6608
|
-
!e || e.offsetWidth <= 0 || (t.value =
|
|
6616
|
+
function oe(e, t, n) {
|
|
6617
|
+
!e || e.offsetWidth <= 0 || (t.value = ee(e.offsetWidth, e.offsetHeight, h.value.width, h.value.height, n));
|
|
6609
6618
|
}
|
|
6610
|
-
function
|
|
6619
|
+
function se(e, t) {
|
|
6611
6620
|
let n = t.getBoundingClientRect(), r = (t.offsetWidth ? n.width / t.offsetWidth : 1) || 1;
|
|
6612
6621
|
return {
|
|
6613
6622
|
x: (e.clientX - n.left) / r,
|
|
6614
6623
|
y: (e.clientY - n.top) / r
|
|
6615
6624
|
};
|
|
6616
6625
|
}
|
|
6617
|
-
function
|
|
6618
|
-
e.target.classList.contains("td-diagram-modal-backdrop") &&
|
|
6626
|
+
function ce(e) {
|
|
6627
|
+
e.target.classList.contains("td-diagram-modal-backdrop") && E();
|
|
6619
6628
|
}
|
|
6620
|
-
function
|
|
6621
|
-
e.key === "Escape" ? (e.stopPropagation(),
|
|
6629
|
+
function ue(e) {
|
|
6630
|
+
e.key === "Escape" ? (e.stopPropagation(), E()) : e.key === "+" || e.key === "=" ? fe() : e.key === "-" ? pe() : e.key === "0" && D();
|
|
6622
6631
|
}
|
|
6623
|
-
function
|
|
6624
|
-
|
|
6632
|
+
function de() {
|
|
6633
|
+
Se(n.value ?? void 0, p, Tu);
|
|
6625
6634
|
}
|
|
6626
|
-
function
|
|
6627
|
-
|
|
6635
|
+
function I() {
|
|
6636
|
+
Se(n.value ?? void 0, p, Eu);
|
|
6637
|
+
}
|
|
6638
|
+
function fe() {
|
|
6639
|
+
Se(i.value ?? void 0, m, Tu);
|
|
6628
6640
|
}
|
|
6629
6641
|
function pe() {
|
|
6630
|
-
|
|
6642
|
+
Se(i.value ?? void 0, m, Eu);
|
|
6631
6643
|
}
|
|
6632
6644
|
function me() {
|
|
6633
|
-
Ce(i.value ?? void 0, m, Eu);
|
|
6634
|
-
}
|
|
6635
|
-
function he() {
|
|
6636
6645
|
let e = i.value;
|
|
6637
6646
|
if (!e) return;
|
|
6638
|
-
let t =
|
|
6639
|
-
m.value =
|
|
6647
|
+
let t = T(1);
|
|
6648
|
+
m.value = z(m.value, e.offsetWidth / 2, e.offsetHeight / 2, t / m.value.scale);
|
|
6640
6649
|
}
|
|
6641
|
-
function
|
|
6650
|
+
function he() {
|
|
6642
6651
|
l.value = !0, u.value = c.value, m.value = {
|
|
6643
6652
|
x: 0,
|
|
6644
6653
|
y: 0,
|
|
6645
6654
|
scale: 1
|
|
6646
|
-
},
|
|
6655
|
+
}, ve(() => {
|
|
6647
6656
|
requestAnimationFrame(() => {
|
|
6648
|
-
|
|
6657
|
+
D(), o.value?.focus({ preventScroll: !0 }), U();
|
|
6649
6658
|
});
|
|
6650
6659
|
});
|
|
6651
6660
|
}
|
|
6652
|
-
function
|
|
6661
|
+
function ge() {
|
|
6653
6662
|
c.value = !0;
|
|
6654
6663
|
}
|
|
6655
|
-
function
|
|
6664
|
+
function _e() {
|
|
6656
6665
|
c.value = !1;
|
|
6657
6666
|
}
|
|
6658
|
-
function
|
|
6667
|
+
function xe() {
|
|
6659
6668
|
u.value = !u.value;
|
|
6660
6669
|
}
|
|
6661
|
-
function
|
|
6662
|
-
let i =
|
|
6670
|
+
function z(e, t, n, r) {
|
|
6671
|
+
let i = T(e.scale * r), a = i / e.scale;
|
|
6663
6672
|
return {
|
|
6664
6673
|
x: t - (t - e.x) * a,
|
|
6665
6674
|
y: n - (n - e.y) * a,
|
|
6666
6675
|
scale: i
|
|
6667
6676
|
};
|
|
6668
6677
|
}
|
|
6669
|
-
function
|
|
6670
|
-
e && (t.value =
|
|
6678
|
+
function Se(e, t, n) {
|
|
6679
|
+
e && (t.value = z(t.value, e.offsetWidth / 2, e.offsetHeight / 2, n));
|
|
6671
6680
|
}
|
|
6672
|
-
let
|
|
6681
|
+
let Ce = {
|
|
6673
6682
|
active: !1,
|
|
6674
6683
|
startClientX: 0,
|
|
6675
6684
|
startClientY: 0,
|
|
@@ -6677,7 +6686,7 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
|
|
|
6677
6686
|
startTransformY: 0,
|
|
6678
6687
|
moved: !1,
|
|
6679
6688
|
clientScale: 1
|
|
6680
|
-
},
|
|
6689
|
+
}, we = {
|
|
6681
6690
|
active: !1,
|
|
6682
6691
|
startClientX: 0,
|
|
6683
6692
|
startClientY: 0,
|
|
@@ -6686,23 +6695,23 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
|
|
|
6686
6695
|
moved: !1,
|
|
6687
6696
|
clientScale: 1
|
|
6688
6697
|
};
|
|
6689
|
-
function
|
|
6698
|
+
function Te(e) {
|
|
6690
6699
|
function t(t) {
|
|
6691
6700
|
if (!t.ctrlKey && !t.metaKey) return;
|
|
6692
6701
|
t.preventDefault();
|
|
6693
|
-
let n =
|
|
6694
|
-
p.value =
|
|
6702
|
+
let n = se(t, e), r = Math.exp(-t.deltaY * .01);
|
|
6703
|
+
p.value = z(p.value, n.x, n.y, r);
|
|
6695
6704
|
}
|
|
6696
6705
|
return e.addEventListener("wheel", t, { passive: !1 }), () => e.removeEventListener("wheel", t);
|
|
6697
6706
|
}
|
|
6698
|
-
function
|
|
6707
|
+
function U() {
|
|
6699
6708
|
let e = i.value;
|
|
6700
6709
|
if (!e) return;
|
|
6701
6710
|
function t(t) {
|
|
6702
6711
|
if (e) {
|
|
6703
6712
|
if (t.preventDefault(), t.ctrlKey || t.metaKey) {
|
|
6704
|
-
let n =
|
|
6705
|
-
m.value =
|
|
6713
|
+
let n = se(t, e), r = Math.exp(-t.deltaY * .01);
|
|
6714
|
+
m.value = z(m.value, n.x, n.y, r);
|
|
6706
6715
|
} else {
|
|
6707
6716
|
let n = (e.offsetWidth ? e.getBoundingClientRect().width / e.offsetWidth : 1) || 1;
|
|
6708
6717
|
m.value = {
|
|
@@ -6715,13 +6724,13 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
|
|
|
6715
6724
|
}
|
|
6716
6725
|
e.addEventListener("wheel", t, { passive: !1 }), Re = () => e.removeEventListener("wheel", t);
|
|
6717
6726
|
}
|
|
6718
|
-
function
|
|
6727
|
+
function Ee(e, t, n, r) {
|
|
6719
6728
|
if (e.button !== 0) return;
|
|
6720
6729
|
t.active = !0, t.moved = !1;
|
|
6721
6730
|
let i = n.getBoundingClientRect();
|
|
6722
6731
|
t.clientScale = (n.offsetWidth ? i.width / n.offsetWidth : 1) || 1, t.startClientX = e.clientX, t.startClientY = e.clientY, t.startTransformX = r.value.x, t.startTransformY = r.value.y, n.setPointerCapture(e.pointerId), n.style.cursor = "grabbing";
|
|
6723
6732
|
}
|
|
6724
|
-
function
|
|
6733
|
+
function De(e, t, n, r) {
|
|
6725
6734
|
t.active && (t.active = !1, n.releasePointerCapture(e.pointerId), n.style.cursor = "", !t.moved && r && r());
|
|
6726
6735
|
}
|
|
6727
6736
|
function Oe(e, t, n) {
|
|
@@ -6735,236 +6744,236 @@ var Kl = ["id"], ql = { class: "td-diagram-frame" }, Jl = ["innerHTML"], Yl = {
|
|
|
6735
6744
|
}
|
|
6736
6745
|
function ke(e) {
|
|
6737
6746
|
let t = n.value;
|
|
6738
|
-
t &&
|
|
6747
|
+
t && Ee(e, Ce, t, p);
|
|
6739
6748
|
}
|
|
6740
6749
|
function Ae(e) {
|
|
6741
6750
|
let t = n.value;
|
|
6742
|
-
t &&
|
|
6751
|
+
t && De(e, Ce, t, he);
|
|
6743
6752
|
}
|
|
6744
6753
|
function je(e) {
|
|
6745
|
-
Oe(e,
|
|
6754
|
+
Oe(e, Ce, p);
|
|
6746
6755
|
}
|
|
6747
6756
|
function Me(e) {
|
|
6748
6757
|
let t = i.value;
|
|
6749
6758
|
if (!t) return;
|
|
6750
|
-
let n =
|
|
6751
|
-
m.value =
|
|
6759
|
+
let n = se(e, t);
|
|
6760
|
+
m.value = z(m.value, n.x, n.y, Du);
|
|
6752
6761
|
}
|
|
6753
6762
|
function Pe(e) {
|
|
6754
6763
|
let t = i.value;
|
|
6755
|
-
t &&
|
|
6764
|
+
t && Ee(e, we, t, m);
|
|
6756
6765
|
}
|
|
6757
6766
|
function J(e) {
|
|
6758
6767
|
let t = i.value;
|
|
6759
|
-
t &&
|
|
6768
|
+
t && De(e, we, t);
|
|
6760
6769
|
}
|
|
6761
6770
|
function Ie(e) {
|
|
6762
|
-
Oe(e,
|
|
6771
|
+
Oe(e, we, m);
|
|
6763
6772
|
}
|
|
6764
6773
|
q(u, () => {
|
|
6765
|
-
|
|
6774
|
+
ve(() => D());
|
|
6766
6775
|
});
|
|
6767
6776
|
let Le, Re, ze;
|
|
6768
|
-
return
|
|
6777
|
+
return be(() => {
|
|
6769
6778
|
let e = n.value;
|
|
6770
6779
|
if (!e) return;
|
|
6771
6780
|
let t = new ResizeObserver(() => {
|
|
6772
6781
|
0 < e.offsetWidth && 0 < e.offsetHeight && (ae(), t.disconnect());
|
|
6773
6782
|
});
|
|
6774
|
-
t.observe(e), Le =
|
|
6775
|
-
}),
|
|
6783
|
+
t.observe(e), Le = Te(e);
|
|
6784
|
+
}), ye(() => {
|
|
6776
6785
|
Le?.(), Re?.(), clearTimeout(ze);
|
|
6777
|
-
}), (n, r) => (
|
|
6786
|
+
}), (n, r) => (B(), M("figure", {
|
|
6778
6787
|
id: e.diagramId,
|
|
6779
6788
|
class: "td-diagram"
|
|
6780
6789
|
}, [
|
|
6781
|
-
|
|
6782
|
-
Fe(
|
|
6790
|
+
N("div", ql, [
|
|
6791
|
+
Fe(N("div", {
|
|
6783
6792
|
ref: "stage",
|
|
6784
6793
|
class: "td-diagram-stage",
|
|
6785
6794
|
onPointerdown: ke,
|
|
6786
6795
|
onPointermove: je,
|
|
6787
6796
|
onPointerup: Ae,
|
|
6788
6797
|
onPointercancel: Ae
|
|
6789
|
-
}, [
|
|
6798
|
+
}, [N("div", {
|
|
6790
6799
|
ref: "canvas",
|
|
6791
6800
|
class: "td-diagram-canvas",
|
|
6792
|
-
style:
|
|
6801
|
+
style: R(S.value),
|
|
6793
6802
|
innerHTML: e.svg
|
|
6794
6803
|
}, null, 12, Jl)], 544), [[Ne, !c.value]]),
|
|
6795
|
-
Fe(
|
|
6796
|
-
r[3] ||=
|
|
6797
|
-
(
|
|
6804
|
+
Fe(N("pre", Yl, [
|
|
6805
|
+
r[3] ||= P(" ", -1),
|
|
6806
|
+
(B(!0), M(O, null, H(g.value, (e, t) => (B(), M("div", {
|
|
6798
6807
|
key: t,
|
|
6799
6808
|
class: "td-diagram-code-row"
|
|
6800
6809
|
}, [
|
|
6801
|
-
r[0] ||=
|
|
6802
|
-
|
|
6803
|
-
r[1] ||=
|
|
6804
|
-
|
|
6805
|
-
r[2] ||=
|
|
6810
|
+
r[0] ||= P("\n ", -1),
|
|
6811
|
+
N("span", Xl, W(t + 1), 1),
|
|
6812
|
+
r[1] ||= P("\n ", -1),
|
|
6813
|
+
N("span", Zl, W(e || " "), 1),
|
|
6814
|
+
r[2] ||= P("\n ", -1)
|
|
6806
6815
|
]))), 128)),
|
|
6807
|
-
r[4] ||=
|
|
6816
|
+
r[4] ||= P("\n ", -1)
|
|
6808
6817
|
], 512), [[Ne, c.value]]),
|
|
6809
|
-
|
|
6810
|
-
|
|
6811
|
-
|
|
6812
|
-
type: "button",
|
|
6813
|
-
class: I(["td-diagram-segment-button", { "is-active": !c.value }]),
|
|
6814
|
-
onClick: ve
|
|
6815
|
-
}, " Preview ", 2), M("button", {
|
|
6818
|
+
N("div", Ql, [
|
|
6819
|
+
N("span", $l, W(e.label), 1),
|
|
6820
|
+
N("div", eu, [N("button", {
|
|
6816
6821
|
type: "button",
|
|
6817
|
-
class:
|
|
6822
|
+
class: L(["td-diagram-segment-button", { "is-active": !c.value }]),
|
|
6818
6823
|
onClick: _e
|
|
6824
|
+
}, " Preview ", 2), N("button", {
|
|
6825
|
+
type: "button",
|
|
6826
|
+
class: L(["td-diagram-segment-button", { "is-active": c.value }]),
|
|
6827
|
+
onClick: ge
|
|
6819
6828
|
}, " Code ", 2)]),
|
|
6820
|
-
|
|
6829
|
+
N("button", {
|
|
6821
6830
|
type: "button",
|
|
6822
|
-
class:
|
|
6831
|
+
class: L(["td-diagram-button", { "is-copied": d.value }]),
|
|
6823
6832
|
"aria-label": "Copy source",
|
|
6824
|
-
onClick:
|
|
6825
|
-
}, [d.value ? (
|
|
6833
|
+
onClick: te
|
|
6834
|
+
}, [d.value ? (B(), A(G(yt), {
|
|
6826
6835
|
key: 0,
|
|
6827
6836
|
size: 16
|
|
6828
|
-
})) : (
|
|
6837
|
+
})) : (B(), A(G(Mt), {
|
|
6829
6838
|
key: 1,
|
|
6830
6839
|
size: 16
|
|
6831
6840
|
}))], 2),
|
|
6832
|
-
|
|
6841
|
+
N("button", {
|
|
6833
6842
|
ref: "expandButton",
|
|
6834
6843
|
type: "button",
|
|
6835
6844
|
class: "td-diagram-button",
|
|
6836
6845
|
"aria-label": "Open full-screen preview",
|
|
6837
|
-
onClick:
|
|
6838
|
-
}, [
|
|
6846
|
+
onClick: he
|
|
6847
|
+
}, [F(G(Yn), { size: 16 })], 512)
|
|
6839
6848
|
]),
|
|
6840
|
-
Fe(
|
|
6841
|
-
|
|
6849
|
+
Fe(N("div", tu, [
|
|
6850
|
+
N("button", {
|
|
6842
6851
|
type: "button",
|
|
6843
6852
|
class: "td-diagram-button",
|
|
6844
6853
|
"aria-label": "Zoom out",
|
|
6845
|
-
onClick:
|
|
6846
|
-
}, [
|
|
6847
|
-
|
|
6854
|
+
onClick: I
|
|
6855
|
+
}, [F(G(tr), { size: 16 })]),
|
|
6856
|
+
N("button", {
|
|
6848
6857
|
type: "button",
|
|
6849
6858
|
class: "td-diagram-button td-diagram-zoom-level",
|
|
6850
6859
|
"aria-label": "Reset zoom",
|
|
6851
6860
|
onClick: ae
|
|
6852
6861
|
}, W(v.value), 1),
|
|
6853
|
-
|
|
6862
|
+
N("button", {
|
|
6854
6863
|
type: "button",
|
|
6855
6864
|
class: "td-diagram-button",
|
|
6856
6865
|
"aria-label": "Zoom in",
|
|
6857
|
-
onClick:
|
|
6858
|
-
}, [
|
|
6866
|
+
onClick: de
|
|
6867
|
+
}, [F(G(Sr), { size: 16 })])
|
|
6859
6868
|
], 512), [[Ne, !c.value]]),
|
|
6860
|
-
Fe(
|
|
6869
|
+
Fe(N("div", { class: "td-diagram-hint" }, " Click to expand · Drag to pan · " + W(G(t)) + " + scroll to zoom ", 513), [[Ne, !c.value]])
|
|
6861
6870
|
]),
|
|
6862
|
-
e.title ? (
|
|
6863
|
-
(
|
|
6871
|
+
e.title ? (B(), M("figcaption", nu, W(e.title), 1)) : j("", !0),
|
|
6872
|
+
(B(), A(le, { to: "body" }, [l.value ? (B(), M("div", {
|
|
6864
6873
|
key: 0,
|
|
6865
6874
|
class: "td-diagram-modal-backdrop",
|
|
6866
|
-
onClick:
|
|
6867
|
-
}, [
|
|
6875
|
+
onClick: ce
|
|
6876
|
+
}, [N("div", {
|
|
6868
6877
|
ref: "modalDialog",
|
|
6869
6878
|
class: "td-diagram-modal",
|
|
6870
6879
|
role: "dialog",
|
|
6871
6880
|
"aria-label": e.title || `${e.label} diagram`,
|
|
6872
6881
|
tabindex: "-1",
|
|
6873
|
-
onKeydown:
|
|
6874
|
-
}, [
|
|
6875
|
-
|
|
6882
|
+
onKeydown: ue
|
|
6883
|
+
}, [N("div", iu, [N("div", au, [N("span", ou, W(e.title || "Diagram"), 1), N("span", su, W(e.label), 1)]), N("div", cu, [
|
|
6884
|
+
N("button", {
|
|
6876
6885
|
type: "button",
|
|
6877
|
-
class:
|
|
6886
|
+
class: L(["td-diagram-modal-button", { "is-active": u.value }]),
|
|
6878
6887
|
"aria-pressed": u.value,
|
|
6879
6888
|
"aria-label": "Toggle code",
|
|
6880
|
-
onClick:
|
|
6881
|
-
}, [
|
|
6882
|
-
r[8] ||=
|
|
6883
|
-
|
|
6889
|
+
onClick: xe
|
|
6890
|
+
}, [F(G(It), { size: 16 }), r[5] ||= N("span", { class: "td-diagram-button-label" }, "Code", -1)], 10, lu),
|
|
6891
|
+
r[8] ||= N("span", { class: "td-diagram-modal-separator" }, null, -1),
|
|
6892
|
+
N("button", {
|
|
6884
6893
|
type: "button",
|
|
6885
6894
|
class: "td-diagram-modal-button",
|
|
6886
6895
|
"aria-label": "Zoom out",
|
|
6887
|
-
onClick:
|
|
6888
|
-
}, [
|
|
6889
|
-
|
|
6896
|
+
onClick: pe
|
|
6897
|
+
}, [F(G(tr), { size: 16 })]),
|
|
6898
|
+
N("button", {
|
|
6890
6899
|
type: "button",
|
|
6891
6900
|
class: "td-diagram-modal-button td-diagram-modal-zoom-level",
|
|
6892
6901
|
"aria-label": "Zoom to 100%",
|
|
6893
|
-
onClick:
|
|
6902
|
+
onClick: me
|
|
6894
6903
|
}, W(y.value), 1),
|
|
6895
|
-
|
|
6904
|
+
N("button", {
|
|
6896
6905
|
type: "button",
|
|
6897
6906
|
class: "td-diagram-modal-button",
|
|
6898
6907
|
"aria-label": "Zoom in",
|
|
6899
|
-
onClick:
|
|
6900
|
-
}, [
|
|
6901
|
-
|
|
6908
|
+
onClick: fe
|
|
6909
|
+
}, [F(G(Sr), { size: 16 })]),
|
|
6910
|
+
N("button", {
|
|
6902
6911
|
type: "button",
|
|
6903
6912
|
class: "td-diagram-modal-button",
|
|
6904
6913
|
"aria-label": "Fit to view",
|
|
6905
|
-
onClick:
|
|
6906
|
-
}, [
|
|
6907
|
-
r[9] ||=
|
|
6908
|
-
|
|
6914
|
+
onClick: D
|
|
6915
|
+
}, [F(G(er), { size: 16 }), r[6] ||= N("span", { class: "td-diagram-button-label" }, "Fit", -1)]),
|
|
6916
|
+
r[9] ||= N("span", { class: "td-diagram-modal-separator" }, null, -1),
|
|
6917
|
+
N("button", {
|
|
6909
6918
|
type: "button",
|
|
6910
|
-
class:
|
|
6919
|
+
class: L(["td-diagram-modal-button", { "is-copied": f.value }]),
|
|
6911
6920
|
"aria-label": "Copy source",
|
|
6912
|
-
onClick:
|
|
6913
|
-
}, [f.value ? (
|
|
6921
|
+
onClick: ne
|
|
6922
|
+
}, [f.value ? (B(), A(G(yt), {
|
|
6914
6923
|
key: 0,
|
|
6915
6924
|
size: 16
|
|
6916
|
-
})) : (
|
|
6925
|
+
})) : (B(), A(G(Mt), {
|
|
6917
6926
|
key: 1,
|
|
6918
6927
|
size: 16
|
|
6919
|
-
})),
|
|
6920
|
-
|
|
6928
|
+
})), N("span", uu, W(f.value ? "Copied" : "Copy"), 1)], 2),
|
|
6929
|
+
N("button", {
|
|
6921
6930
|
type: "button",
|
|
6922
6931
|
class: "td-diagram-modal-button",
|
|
6923
6932
|
"aria-label": "Download SVG",
|
|
6924
6933
|
onClick: ie
|
|
6925
|
-
}, [
|
|
6926
|
-
r[10] ||=
|
|
6927
|
-
|
|
6934
|
+
}, [F(G(Xt), { size: 16 }), r[7] ||= N("span", { class: "td-diagram-button-label" }, "SVG", -1)]),
|
|
6935
|
+
r[10] ||= N("span", { class: "td-diagram-modal-separator" }, null, -1),
|
|
6936
|
+
N("button", {
|
|
6928
6937
|
type: "button",
|
|
6929
6938
|
class: "td-diagram-modal-button",
|
|
6930
6939
|
"aria-label": "Close preview",
|
|
6931
|
-
onClick:
|
|
6932
|
-
}, [
|
|
6933
|
-
])]),
|
|
6934
|
-
r[14] ||=
|
|
6935
|
-
(
|
|
6940
|
+
onClick: E
|
|
6941
|
+
}, [F(G(wi), { size: 16 })])
|
|
6942
|
+
])]), N("div", du, [u.value ? (B(), M("div", fu, [N("div", pu, " diagram." + W(b.value) + " · " + W(_.value) + " lines ", 1), N("div", mu, [N("pre", hu, [
|
|
6943
|
+
r[14] ||= P(" ", -1),
|
|
6944
|
+
(B(!0), M(O, null, H(g.value, (e, t) => (B(), M("div", {
|
|
6936
6945
|
key: t,
|
|
6937
6946
|
class: "td-diagram-code-row"
|
|
6938
6947
|
}, [
|
|
6939
|
-
r[11] ||=
|
|
6940
|
-
|
|
6941
|
-
r[12] ||=
|
|
6942
|
-
|
|
6943
|
-
r[13] ||=
|
|
6948
|
+
r[11] ||= P("\n ", -1),
|
|
6949
|
+
N("span", gu, W(t + 1), 1),
|
|
6950
|
+
r[12] ||= P("\n ", -1),
|
|
6951
|
+
N("span", _u, W(e || " "), 1),
|
|
6952
|
+
r[13] ||= P("\n ", -1)
|
|
6944
6953
|
]))), 128)),
|
|
6945
|
-
r[15] ||=
|
|
6946
|
-
])])])) :
|
|
6954
|
+
r[15] ||= P("\n ", -1)
|
|
6955
|
+
])])])) : j("", !0), N("div", {
|
|
6947
6956
|
ref: "modalStage",
|
|
6948
6957
|
class: "td-diagram-modal-stage",
|
|
6949
|
-
style:
|
|
6958
|
+
style: R(w.value),
|
|
6950
6959
|
onPointerdown: Pe,
|
|
6951
6960
|
onPointermove: Ie,
|
|
6952
6961
|
onPointerup: J,
|
|
6953
6962
|
onPointercancel: J,
|
|
6954
6963
|
onDblclick: Me
|
|
6955
|
-
}, [
|
|
6964
|
+
}, [N("div", {
|
|
6956
6965
|
ref: "modalCanvas",
|
|
6957
6966
|
class: "td-diagram-modal-canvas",
|
|
6958
|
-
style:
|
|
6967
|
+
style: R(C.value),
|
|
6959
6968
|
innerHTML: e.svg
|
|
6960
|
-
}, null, 12, vu),
|
|
6969
|
+
}, null, 12, vu), N("div", yu, " Drag or scroll to pan · " + W(G(t)) + " + scroll or pinch to zoom · Double-click to zoom in · Esc to close ", 1)], 36)])], 40, ru)])) : j("", !0)]))
|
|
6961
6970
|
], 8, Kl));
|
|
6962
6971
|
}
|
|
6963
6972
|
}), [["__scopeId", "data-v-fb95bcf7"]]);
|
|
6964
6973
|
// src/client/theme-default/composables/lazy-embed/mountDiagram.ts
|
|
6965
6974
|
function ju(e, t) {
|
|
6966
6975
|
let n = document.createElement("div");
|
|
6967
|
-
n.style.display = "contents", e.replaceWith(n),
|
|
6976
|
+
n.style.display = "contents", e.replaceWith(n), Te(pe(Au, t), n);
|
|
6968
6977
|
}
|
|
6969
6978
|
// src/client/theme-default/composables/lazy-embed/d2.ts
|
|
6970
6979
|
var Mu = "https://esm.sh/@terrastruct/d2@0.1.32", Nu, Pu = 0;
|
|
@@ -6977,7 +6986,7 @@ function Fu(e) {
|
|
|
6977
6986
|
e.rel = "modulepreload", e.href = Mu, document.head.appendChild(e);
|
|
6978
6987
|
}
|
|
6979
6988
|
};
|
|
6980
|
-
|
|
6989
|
+
be(() => e.register(t)), z(() => e.unregister(t));
|
|
6981
6990
|
}
|
|
6982
6991
|
async function Iu() {
|
|
6983
6992
|
if (Nu) return Nu;
|
|
@@ -7025,7 +7034,7 @@ function Vu(e) {
|
|
|
7025
7034
|
e.rel = "modulepreload", e.href = Ru, document.head.appendChild(e);
|
|
7026
7035
|
}
|
|
7027
7036
|
};
|
|
7028
|
-
|
|
7037
|
+
be(() => e.register(t)), z(() => e.unregister(t));
|
|
7029
7038
|
}
|
|
7030
7039
|
async function Hu() {
|
|
7031
7040
|
if (zu !== void 0) return zu;
|
|
@@ -7086,7 +7095,7 @@ function Gu(e) {
|
|
|
7086
7095
|
n.src = Ku(t.url, e), t.container.innerHTML = "", t.container.appendChild(n);
|
|
7087
7096
|
}
|
|
7088
7097
|
}
|
|
7089
|
-
|
|
7098
|
+
be(() => {
|
|
7090
7099
|
e.register(r);
|
|
7091
7100
|
let n = document.documentElement.classList.contains("dark");
|
|
7092
7101
|
t = new MutationObserver(() => {
|
|
@@ -7096,7 +7105,7 @@ function Gu(e) {
|
|
|
7096
7105
|
attributes: !0,
|
|
7097
7106
|
attributeFilter: ["class"]
|
|
7098
7107
|
});
|
|
7099
|
-
}),
|
|
7108
|
+
}), z(() => {
|
|
7100
7109
|
e.unregister(r), t?.disconnect(), n.length = 0;
|
|
7101
7110
|
});
|
|
7102
7111
|
}
|
|
@@ -7113,7 +7122,7 @@ function qu() {
|
|
|
7113
7122
|
for (let i of e) t.has(i) || (t.add(i), n.set(i, a), r.observe(i));
|
|
7114
7123
|
}
|
|
7115
7124
|
}
|
|
7116
|
-
|
|
7125
|
+
be(() => {
|
|
7117
7126
|
r = new IntersectionObserver((e) => {
|
|
7118
7127
|
for (let t of e) if (t.isIntersecting) {
|
|
7119
7128
|
r?.unobserve(t.target);
|
|
@@ -7126,7 +7135,7 @@ function qu() {
|
|
|
7126
7135
|
childList: !0,
|
|
7127
7136
|
subtree: !0
|
|
7128
7137
|
}));
|
|
7129
|
-
}),
|
|
7138
|
+
}), z(() => {
|
|
7130
7139
|
i?.disconnect(), r?.disconnect();
|
|
7131
7140
|
});
|
|
7132
7141
|
let o = {
|
|
@@ -7158,19 +7167,19 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7158
7167
|
}, fd = ["innerHTML"], pd = {
|
|
7159
7168
|
key: 3,
|
|
7160
7169
|
class: "td-page-meta"
|
|
7161
|
-
}, md = { key: 0 }, hd = { class: "td-content-body" }, gd = ["href"], _d = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
7170
|
+
}, md = { key: 0 }, hd = { class: "td-content-body" }, gd = ["href"], _d = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
7162
7171
|
__name: "TdLayout",
|
|
7163
7172
|
setup(e) {
|
|
7164
|
-
let { title: t, page: n } = df(), r =
|
|
7173
|
+
let { title: t, page: n } = df(), r = k(() => {
|
|
7165
7174
|
let e = n.value.icon;
|
|
7166
7175
|
return e ? Ro(e.name) : void 0;
|
|
7167
|
-
}), i = $(), { withBase: o } = i, s = Mi(), c = yf(), l =
|
|
7176
|
+
}), i = $(), { withBase: o } = i, s = Mi(), c = yf(), l = k(() => c.value.ready), { isOpen: d, isDrawerMounted: f, open: p, close: m } = Ec(), h = V(""), g = V(!1), _ = V(!1), v = ji(), y = V(!1);
|
|
7168
7177
|
q(() => v.path, () => m()), Vl(), Hl(), qu();
|
|
7169
|
-
let b = K("sidebarSearch"), x = K("menuSearch"),
|
|
7170
|
-
function
|
|
7178
|
+
let b = K("sidebarSearch"), x = K("menuSearch"), S = K("palette"), { previous: w, next: T } = Oc();
|
|
7179
|
+
function E() {
|
|
7171
7180
|
y.value = !1;
|
|
7172
7181
|
}
|
|
7173
|
-
function
|
|
7182
|
+
function ee(e) {
|
|
7174
7183
|
let t = i.repo;
|
|
7175
7184
|
return `${a(t.url)}/edit/main/${[
|
|
7176
7185
|
t.root,
|
|
@@ -7178,22 +7187,22 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7178
7187
|
e
|
|
7179
7188
|
].filter(Boolean).join("/")}`;
|
|
7180
7189
|
}
|
|
7181
|
-
function
|
|
7182
|
-
|
|
7190
|
+
function te() {
|
|
7191
|
+
oe.value = !1, ve(() => b.value?.focus());
|
|
7183
7192
|
}
|
|
7184
|
-
function
|
|
7193
|
+
function ne() {
|
|
7185
7194
|
b.value?.isVisible ? b.value.focus() : (p(), x.value?.focus());
|
|
7186
7195
|
}
|
|
7187
7196
|
function ie() {
|
|
7188
|
-
|
|
7197
|
+
S.value?.open();
|
|
7189
7198
|
}
|
|
7190
7199
|
function ae() {
|
|
7191
7200
|
y.value = !0;
|
|
7192
7201
|
}
|
|
7193
|
-
xc([X.Control, X.k],
|
|
7194
|
-
C.value && s.go(C.value.url);
|
|
7195
|
-
}, { ignoreWhenTyping: !0 }), xc([X.Control, X.ArrowRight], () => {
|
|
7202
|
+
xc([X.Control, X.k], ne), xc([X.Meta, X.k], ne), xc([X.Control, X.FSlash], ie), xc([X.Meta, X.FSlash], ie), xc([X.Control, X.ArrowLeft], () => {
|
|
7196
7203
|
w.value && s.go(w.value.url);
|
|
7204
|
+
}, { ignoreWhenTyping: !0 }), xc([X.Control, X.ArrowRight], () => {
|
|
7205
|
+
T.value && s.go(T.value.url);
|
|
7197
7206
|
}, { ignoreWhenTyping: !0 }), Pe(() => {
|
|
7198
7207
|
if (typeof document > "u") return;
|
|
7199
7208
|
let e = t.value, r = i.title;
|
|
@@ -7201,114 +7210,117 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7201
7210
|
let a = n.value.frontmatter?.description === void 0 ? i.description ?? "" : String(n.value.frontmatter.description), o = document.querySelector("meta[name=\"description\"]");
|
|
7202
7211
|
o && o.setAttribute("content", a);
|
|
7203
7212
|
}), Gl();
|
|
7204
|
-
let { sidebarWidth:
|
|
7205
|
-
function
|
|
7206
|
-
f.value ? d.value ? m() : p() :
|
|
7213
|
+
let { sidebarWidth: D, isSidebarCollapsed: oe, sidebarWidthStyle: se, expandedSidebarVisibilityStyle: ce, collapsedSidebarVisibilityStyle: O } = re(), le = V(!1);
|
|
7214
|
+
function de() {
|
|
7215
|
+
f.value ? d.value ? m() : p() : P();
|
|
7207
7216
|
}
|
|
7208
|
-
function
|
|
7209
|
-
|
|
7217
|
+
function P() {
|
|
7218
|
+
oe.value = !oe.value;
|
|
7210
7219
|
}
|
|
7211
|
-
xc([X.Control, X.Backslash],
|
|
7212
|
-
function
|
|
7213
|
-
|
|
7220
|
+
xc([X.Control, X.Backslash], de, { capture: !0 }), xc([X.Meta, X.Backslash], de, { capture: !0 });
|
|
7221
|
+
function I() {
|
|
7222
|
+
D.value = Math.min(500, D.value + 20);
|
|
7214
7223
|
}
|
|
7215
|
-
function
|
|
7216
|
-
let t = e.clientX, n =
|
|
7217
|
-
|
|
7224
|
+
function fe(e) {
|
|
7225
|
+
let t = e.clientX, n = D.value, r = e.currentTarget;
|
|
7226
|
+
le.value = !0, r.setPointerCapture(e.pointerId);
|
|
7218
7227
|
function i(e) {
|
|
7219
7228
|
let r = Math.min(500, window.innerWidth * .85), i = Math.min(r, Math.max(200, n + e.clientX - t));
|
|
7220
|
-
|
|
7229
|
+
D.value = i;
|
|
7221
7230
|
}
|
|
7222
7231
|
function a() {
|
|
7223
|
-
|
|
7232
|
+
le.value = !1, document.body.style.cursor = "", r.removeEventListener("pointermove", i), r.removeEventListener("pointerup", a);
|
|
7224
7233
|
}
|
|
7225
7234
|
document.body.style.cursor = "col-resize", r.addEventListener("pointermove", i), r.addEventListener("pointerup", a);
|
|
7226
7235
|
}
|
|
7227
|
-
function
|
|
7228
|
-
|
|
7236
|
+
function pe() {
|
|
7237
|
+
D.value = Math.max(200, D.value - 20);
|
|
7229
7238
|
}
|
|
7230
|
-
return (e, a) => (
|
|
7231
|
-
|
|
7232
|
-
a[6] ||=
|
|
7239
|
+
return (e, a) => (B(), M("div", null, [
|
|
7240
|
+
U(e.$slots, "layout-top", {}, void 0, !0),
|
|
7241
|
+
a[6] ||= N("a", {
|
|
7233
7242
|
href: "#td-content",
|
|
7234
7243
|
class: "td-skip-link"
|
|
7235
7244
|
}, "Skip to content", -1),
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7245
|
+
N("header", Ju, [
|
|
7246
|
+
N("div", Yu, [
|
|
7247
|
+
F(Dc, {
|
|
7239
7248
|
class: "lg:hidden",
|
|
7240
7249
|
onClick: G(p)
|
|
7241
7250
|
}, null, 8, ["onClick"]),
|
|
7242
|
-
|
|
7251
|
+
N("a", {
|
|
7243
7252
|
href: G(o)(G(u)("/")),
|
|
7244
7253
|
class: "td-brand"
|
|
7245
|
-
}, [
|
|
7246
|
-
|
|
7254
|
+
}, [F(Bi), N("span", Zu, W(G(i).title || "Typedown"), 1)], 8, Xu),
|
|
7255
|
+
F(bs, { class: "td-header-breadcrumb" })
|
|
7247
7256
|
]),
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7257
|
+
F(G(Cs)),
|
|
7258
|
+
U(e.$slots, "nav-bar-after", {}, void 0, !0),
|
|
7259
|
+
N("div", Qu, [
|
|
7260
|
+
F(Po, {
|
|
7252
7261
|
text: "Commands",
|
|
7253
7262
|
placement: "bottom",
|
|
7254
7263
|
shortcut: [G(X).Meta, G(X).FSlash],
|
|
7255
7264
|
always: ""
|
|
7256
7265
|
}, {
|
|
7257
|
-
default: J(() => [
|
|
7266
|
+
default: J(() => [N("button", {
|
|
7258
7267
|
class: "td-header-commands-btn",
|
|
7259
7268
|
type: "button",
|
|
7260
7269
|
"aria-label": "Open command palette",
|
|
7261
7270
|
onClick: ie
|
|
7262
|
-
}, [
|
|
7271
|
+
}, [F(G(ii), { size: 15 })])]),
|
|
7263
7272
|
_: 1
|
|
7264
7273
|
}, 8, ["shortcut"]),
|
|
7265
|
-
|
|
7266
|
-
G(i).repo ? (
|
|
7274
|
+
F(Bl),
|
|
7275
|
+
G(i).repo ? (B(), M("a", {
|
|
7267
7276
|
key: 0,
|
|
7268
7277
|
href: G(i).repo.url,
|
|
7269
7278
|
target: "_blank",
|
|
7270
7279
|
rel: "noopener noreferrer",
|
|
7271
7280
|
class: "td-header-icon-link",
|
|
7272
7281
|
"aria-label": "GitHub repository"
|
|
7273
|
-
}, [...a[5] ||= [
|
|
7282
|
+
}, [...a[5] ||= [N("svg", {
|
|
7274
7283
|
width: "20",
|
|
7275
7284
|
height: "20",
|
|
7276
7285
|
viewBox: "0 0 98 96",
|
|
7277
7286
|
xmlns: "http://www.w3.org/2000/svg",
|
|
7278
7287
|
"aria-hidden": "true",
|
|
7279
7288
|
fill: "currentColor"
|
|
7280
|
-
}, [
|
|
7289
|
+
}, [N("path", {
|
|
7281
7290
|
"fill-rule": "evenodd",
|
|
7282
7291
|
"clip-rule": "evenodd",
|
|
7283
7292
|
d: "M48.854 0C21.839 0 0 22 0 49.217c0 21.756 13.993 40.172 33.405 46.69 2.427.49 3.316-1.059 3.316-2.362 0-1.141-.08-5.052-.08-9.127-13.59\n 2.934-16.42-5.867-16.42-5.867-2.184-5.704-5.42-7.17-5.42-7.17-4.448-3.015.324-3.015.324-3.015 4.934.326 7.523 5.052 7.523 5.052 4.367\n 7.496 11.404 5.378 14.235 4.074.404-3.178 1.699-5.378 3.074-6.6-10.839-1.141-22.243-5.378-22.243-24.283 0-5.378 1.94-9.778\n 5.014-13.2-.485-1.222-2.184-6.275.486-13.038 0 0 4.125-1.304 13.426 5.052a46.97 46.97 0 0 1 12.214-1.63c4.125\n 0 8.33.571 12.213 1.63 9.302-6.356 13.427-5.052 13.427-5.052 2.67 6.763.97 11.816.485 13.038 3.155 3.422 5.015 7.822 5.015 13.2\n 0 18.905-11.404 23.06-22.324 24.283 1.78 1.548 3.316 4.481 3.316 9.126 0 6.6-.08 11.897-.08 13.526 0 1.304.89 2.853 3.316 2.364\n 19.412-6.52 33.405-24.935 33.405-46.691C97.707 22 75.788 0 48.854 0z"
|
|
7284
|
-
})], -1)]], 8, $u)) :
|
|
7293
|
+
})], -1)]], 8, $u)) : j("", !0)
|
|
7285
7294
|
])
|
|
7286
7295
|
]),
|
|
7287
|
-
|
|
7288
|
-
default: J(() => [G(f) ? (
|
|
7296
|
+
F(ue, { name: "td-drawer-scrim" }, {
|
|
7297
|
+
default: J(() => [G(f) ? (B(), M("div", {
|
|
7289
7298
|
key: 0,
|
|
7290
|
-
class:
|
|
7299
|
+
class: L(["td-drawer-scrim", { "is-open": G(d) }]),
|
|
7291
7300
|
onClick: a[0] ||= (...e) => G(m) && G(m)(...e)
|
|
7292
|
-
}, null, 2)) :
|
|
7301
|
+
}, null, 2)) : j("", !0)]),
|
|
7293
7302
|
_: 1
|
|
7294
7303
|
}),
|
|
7295
|
-
|
|
7296
|
-
default: J(() => [G(f) ? (
|
|
7304
|
+
F(ue, { name: "td-drawer-panel" }, {
|
|
7305
|
+
default: J(() => [G(f) ? (B(), M("aside", {
|
|
7297
7306
|
key: 0,
|
|
7298
|
-
class:
|
|
7307
|
+
class: L(["td-drawer", { "is-open": G(d) }]),
|
|
7308
|
+
role: "dialog",
|
|
7309
|
+
"aria-modal": "true",
|
|
7310
|
+
"aria-label": "Navigation menu"
|
|
7299
7311
|
}, [
|
|
7300
|
-
|
|
7312
|
+
N("header", ed, [N("a", {
|
|
7301
7313
|
href: G(o)(G(u)("/")),
|
|
7302
7314
|
class: "td-brand"
|
|
7303
|
-
}, [
|
|
7315
|
+
}, [F(Bi), N("span", nd, W(G(i).title || "Typedown"), 1)], 8, td), F(Io, {
|
|
7304
7316
|
label: "Close menu",
|
|
7305
7317
|
onClick: G(m)
|
|
7306
7318
|
}, {
|
|
7307
|
-
default: J(() => [
|
|
7319
|
+
default: J(() => [F(G(wi), { size: 20 })]),
|
|
7308
7320
|
_: 1
|
|
7309
7321
|
}, 8, ["onClick"])]),
|
|
7310
|
-
|
|
7311
|
-
|
|
7322
|
+
F(G(Ds)),
|
|
7323
|
+
F(zl, {
|
|
7312
7324
|
ref_key: "menuSearch",
|
|
7313
7325
|
ref: x,
|
|
7314
7326
|
query: h.value,
|
|
@@ -7321,28 +7333,28 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7321
7333
|
"active",
|
|
7322
7334
|
"onSelect"
|
|
7323
7335
|
]),
|
|
7324
|
-
_.value ?
|
|
7336
|
+
_.value ? j("", !0) : (B(), M("nav", rd, [l.value ? (B(), A(as, {
|
|
7325
7337
|
key: 1,
|
|
7326
7338
|
tree: G(c).contentTree
|
|
7327
|
-
}, null, 8, ["tree"])) : (
|
|
7328
|
-
], 2)) :
|
|
7339
|
+
}, null, 8, ["tree"])) : (B(), A(al, { key: 0 }))]))
|
|
7340
|
+
], 2)) : j("", !0)]),
|
|
7329
7341
|
_: 1
|
|
7330
7342
|
}),
|
|
7331
|
-
|
|
7332
|
-
class:
|
|
7333
|
-
"is-resizing":
|
|
7334
|
-
"is-collapsed": G(
|
|
7343
|
+
N("div", id, [N("nav", {
|
|
7344
|
+
class: L(["td-sidebar-left", {
|
|
7345
|
+
"is-resizing": le.value,
|
|
7346
|
+
"is-collapsed": G(oe)
|
|
7335
7347
|
}]),
|
|
7336
7348
|
"data-testid": "sidebar",
|
|
7337
7349
|
"aria-label": "Site navigation",
|
|
7338
|
-
style:
|
|
7350
|
+
style: R(G(se))
|
|
7339
7351
|
}, [
|
|
7340
|
-
|
|
7352
|
+
N("div", {
|
|
7341
7353
|
class: "flex-col flex-1 overflow-y-auto",
|
|
7342
|
-
style:
|
|
7354
|
+
style: R(G(ce))
|
|
7343
7355
|
}, [
|
|
7344
|
-
|
|
7345
|
-
|
|
7356
|
+
U(e.$slots, "sidebar-top", {}, void 0, !0),
|
|
7357
|
+
F(zl, {
|
|
7346
7358
|
ref_key: "sidebarSearch",
|
|
7347
7359
|
ref: b,
|
|
7348
7360
|
query: h.value,
|
|
@@ -7351,7 +7363,7 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7351
7363
|
"onUpdate:active": a[4] ||= (e) => g.value = e,
|
|
7352
7364
|
class: "td-sidebar-search"
|
|
7353
7365
|
}, null, 8, ["query", "active"]),
|
|
7354
|
-
|
|
7366
|
+
F(ol, {
|
|
7355
7367
|
tree: G(c).contentTree,
|
|
7356
7368
|
"search-active": g.value,
|
|
7357
7369
|
ready: l.value
|
|
@@ -7360,140 +7372,140 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7360
7372
|
"search-active",
|
|
7361
7373
|
"ready"
|
|
7362
7374
|
]),
|
|
7363
|
-
|
|
7375
|
+
U(e.$slots, "sidebar-bottom", {}, void 0, !0)
|
|
7364
7376
|
], 4),
|
|
7365
|
-
|
|
7366
|
-
style:
|
|
7377
|
+
N("div", {
|
|
7378
|
+
style: R(G(O)),
|
|
7367
7379
|
class: "flex-1"
|
|
7368
|
-
}, [
|
|
7380
|
+
}, [F(dl, {
|
|
7369
7381
|
tree: G(c).contentTree,
|
|
7370
|
-
onSearch:
|
|
7382
|
+
onSearch: te
|
|
7371
7383
|
}, null, 8, ["tree"])], 4),
|
|
7372
|
-
|
|
7384
|
+
N("button", {
|
|
7373
7385
|
class: "td-sidebar-collapse-btn",
|
|
7374
7386
|
type: "button",
|
|
7375
|
-
"aria-label": G(
|
|
7376
|
-
onClick:
|
|
7387
|
+
"aria-label": G(oe) ? "Expand sidebar" : "Collapse sidebar",
|
|
7388
|
+
onClick: P
|
|
7377
7389
|
}, [
|
|
7378
|
-
|
|
7379
|
-
style:
|
|
7390
|
+
F(G(wt), {
|
|
7391
|
+
style: R(G(ce)),
|
|
7380
7392
|
size: 14
|
|
7381
7393
|
}, null, 8, ["style"]),
|
|
7382
|
-
|
|
7383
|
-
style:
|
|
7394
|
+
F(G(Tt), {
|
|
7395
|
+
style: R(G(O)),
|
|
7384
7396
|
size: 14
|
|
7385
7397
|
}, null, 8, ["style"]),
|
|
7386
|
-
|
|
7387
|
-
style:
|
|
7398
|
+
N("span", {
|
|
7399
|
+
style: R(G(ce)),
|
|
7388
7400
|
class: "td-sidebar-collapse-label"
|
|
7389
7401
|
}, "Collapse sidebar", 4),
|
|
7390
|
-
|
|
7402
|
+
N("div", { style: R(G(ce)) }, [F(Q, { keys: [G(X).Meta, G(X).Backslash] }, null, 8, ["keys"])], 4)
|
|
7391
7403
|
], 8, ad),
|
|
7392
|
-
|
|
7393
|
-
style:
|
|
7404
|
+
N("div", {
|
|
7405
|
+
style: R(G(ce)),
|
|
7394
7406
|
class: "td-resize-handle",
|
|
7395
7407
|
role: "separator",
|
|
7396
7408
|
"aria-orientation": "vertical",
|
|
7397
7409
|
"aria-label": "Resize sidebar",
|
|
7398
7410
|
tabindex: "0",
|
|
7399
|
-
onPointerdown: Le(
|
|
7400
|
-
onKeydown: [Ie(Le(
|
|
7411
|
+
onPointerdown: Le(fe, ["prevent"]),
|
|
7412
|
+
onKeydown: [Ie(Le(pe, ["prevent"]), ["left"]), Ie(Le(I, ["prevent"]), ["right"])]
|
|
7401
7413
|
}, null, 44, od)
|
|
7402
|
-
], 6),
|
|
7403
|
-
|
|
7404
|
-
G(n).schema ? (
|
|
7405
|
-
r.value ? (
|
|
7406
|
-
G(t) ? (
|
|
7414
|
+
], 6), N("div", sd, [N("main", cd, [N("article", ld, [
|
|
7415
|
+
U(e.$slots, "doc-before", {}, void 0, !0),
|
|
7416
|
+
G(n).schema ? (B(), M("div", ud, W(G(n).schemaLabel ?? G(n).schema), 1)) : j("", !0),
|
|
7417
|
+
r.value ? (B(), M("div", dd, [(B(), A(De(r.value), { size: 32 }))])) : j("", !0),
|
|
7418
|
+
G(t) ? (B(), M("h1", {
|
|
7407
7419
|
key: 2,
|
|
7408
7420
|
class: "td-page-title",
|
|
7409
7421
|
innerHTML: G(n).titleHtml
|
|
7410
|
-
}, null, 8, fd)) :
|
|
7411
|
-
G(n).fileMetadata ? (
|
|
7412
|
-
|
|
7422
|
+
}, null, 8, fd)) : j("", !0),
|
|
7423
|
+
G(n).fileMetadata ? (B(), M("div", pd, [N("span", null, W(G(C)(G(n).fileMetadata.mtimeSecs, "Modified")), 1), G(n).fileMetadata.ctimeSecs === G(n).fileMetadata.mtimeSecs ? j("", !0) : (B(), M("span", md, " · " + W(G(C)(G(n).fileMetadata.ctimeSecs, "Created")), 1))])) : j("", !0),
|
|
7424
|
+
F(G(_c), {
|
|
7413
7425
|
class: "td-frontmatter-inline",
|
|
7414
7426
|
schema: G(n).schema,
|
|
7415
7427
|
frontmatter: G(n).frontmatter
|
|
7416
7428
|
}, null, 8, ["schema", "frontmatter"]),
|
|
7417
|
-
G(n).headings.length > 1 ? (
|
|
7429
|
+
G(n).headings.length > 1 ? (B(), A(Qc, {
|
|
7418
7430
|
key: 4,
|
|
7419
7431
|
class: "td-toc-inline",
|
|
7420
7432
|
headings: G(n).headings,
|
|
7421
7433
|
inline: ""
|
|
7422
|
-
}, null, 8, ["headings"])) :
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
G(i).repo && G(n).filepath ? (
|
|
7434
|
+
}, null, 8, ["headings"])) : j("", !0),
|
|
7435
|
+
U(e.$slots, "doc-content-before", {}, void 0, !0),
|
|
7436
|
+
N("div", hd, [F(G(Fi))]),
|
|
7437
|
+
U(e.$slots, "doc-content-after", {}, void 0, !0),
|
|
7438
|
+
F(Vc),
|
|
7439
|
+
G(i).repo && G(n).filepath ? (B(), M("a", {
|
|
7428
7440
|
key: 5,
|
|
7429
|
-
href:
|
|
7441
|
+
href: ee(G(n).filepath),
|
|
7430
7442
|
target: "_blank",
|
|
7431
7443
|
rel: "noopener noreferrer",
|
|
7432
7444
|
class: "td-page-edit"
|
|
7433
|
-
}, "Edit this page", 8, gd)) :
|
|
7434
|
-
|
|
7435
|
-
])]),
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7445
|
+
}, "Edit this page", 8, gd)) : j("", !0),
|
|
7446
|
+
U(e.$slots, "doc-after", {}, void 0, !0)
|
|
7447
|
+
])]), F(rl, { class: "td-rail" })])]),
|
|
7448
|
+
F(cs),
|
|
7449
|
+
U(e.$slots, "layout-bottom", {}, void 0, !0),
|
|
7450
|
+
F(Tl, {
|
|
7439
7451
|
ref_key: "palette",
|
|
7440
|
-
ref:
|
|
7441
|
-
onToggleSidebar:
|
|
7452
|
+
ref: S,
|
|
7453
|
+
onToggleSidebar: P,
|
|
7442
7454
|
onShowShortcuts: ae
|
|
7443
7455
|
}, null, 512),
|
|
7444
|
-
|
|
7456
|
+
F(kl, {
|
|
7445
7457
|
open: y.value,
|
|
7446
|
-
onClose:
|
|
7458
|
+
onClose: E
|
|
7447
7459
|
}, null, 8, ["open"])
|
|
7448
7460
|
]));
|
|
7449
7461
|
}
|
|
7450
|
-
}), [["__scopeId", "data-v-
|
|
7462
|
+
}), [["__scopeId", "data-v-744a5b45"]]), vd = { class: "pt-16 pb-24" }, yd = ["href"], bd = /* @__PURE__ */ I({
|
|
7451
7463
|
__name: "TdNotFound",
|
|
7452
7464
|
setup(e) {
|
|
7453
7465
|
let { withBase: t } = $();
|
|
7454
|
-
return (e, n) => (
|
|
7455
|
-
n[0] ||=
|
|
7456
|
-
n[1] ||=
|
|
7457
|
-
n[2] ||=
|
|
7458
|
-
|
|
7466
|
+
return (e, n) => (B(), M("div", vd, [
|
|
7467
|
+
n[0] ||= N("p", { class: "text-td-4xl font-extrabold leading-none tracking-td-tight text-td-fg-muted" }, " 404 ", -1),
|
|
7468
|
+
n[1] ||= N("h1", { class: "text-td-xl font-extrabold leading-td-tight tracking-td-tight mt-4" }, " Page Not Found ", -1),
|
|
7469
|
+
n[2] ||= N("p", { class: "text-td-fg-muted mt-2 text-td-base leading-td-relaxed" }, " The page you are looking for does not exist. ", -1),
|
|
7470
|
+
N("a", {
|
|
7459
7471
|
class: "inline-flex items-center mt-6 text-td-accent text-td-sm font-extrabold tracking-td-tight hover:text-td-accent-hi",
|
|
7460
7472
|
href: G(t)(G(u)("/"))
|
|
7461
7473
|
}, "Go Home", 8, yd)
|
|
7462
7474
|
]));
|
|
7463
7475
|
}
|
|
7464
|
-
}), xd = ["href"], Sd = ["href"], Cd = { class: "td-dir-name" }, wd = { class: "td-dir-count" }, Td = ["href"], Ed = { class: "td-dir-name" }, Dd = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
7476
|
+
}), xd = ["href"], Sd = ["href"], Cd = { class: "td-dir-name" }, wd = { class: "td-dir-count" }, Td = ["href"], Ed = { class: "td-dir-name" }, Dd = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
7465
7477
|
__name: "TdDirectoryIndex",
|
|
7466
7478
|
setup(e) {
|
|
7467
|
-
let t = ji(), n = yf(), { withBase: r } = $(), a =
|
|
7479
|
+
let t = ji(), n = yf(), { withBase: r } = $(), a = k(() => {
|
|
7468
7480
|
let e = i(t.path);
|
|
7469
7481
|
return {
|
|
7470
7482
|
url: e,
|
|
7471
7483
|
entries: n.value.directoryListings[e]?.entries ?? []
|
|
7472
7484
|
};
|
|
7473
|
-
}), o =
|
|
7474
|
-
return (e, t) => (
|
|
7485
|
+
}), o = k(() => a.value.url === "/"), s = k(() => r(u(i(a.value.url))));
|
|
7486
|
+
return (e, t) => (B(), M("div", null, [o.value ? j("", !0) : (B(), M("a", {
|
|
7475
7487
|
key: 0,
|
|
7476
7488
|
href: s.value,
|
|
7477
7489
|
class: "td-dir-row"
|
|
7478
|
-
}, [
|
|
7490
|
+
}, [F(G(Ut), {
|
|
7479
7491
|
size: 16,
|
|
7480
7492
|
class: "td-dir-icon"
|
|
7481
|
-
}), t[0] ||=
|
|
7493
|
+
}), t[0] ||= N("span", { class: "td-dir-parent" }, "..", -1)], 8, xd)), (B(!0), M(O, null, H(a.value.entries, (e) => (B(), M(O, { key: e.kind === "dir" ? e.sub.url : e.item.url }, [e.kind === "dir" ? (B(), M("a", {
|
|
7482
7494
|
key: 0,
|
|
7483
7495
|
href: G(r)(e.sub.url),
|
|
7484
7496
|
class: "td-dir-row"
|
|
7485
7497
|
}, [
|
|
7486
|
-
|
|
7498
|
+
F(G(dn), {
|
|
7487
7499
|
size: 16,
|
|
7488
7500
|
class: "td-dir-icon"
|
|
7489
7501
|
}),
|
|
7490
|
-
|
|
7491
|
-
|
|
7492
|
-
], 8, Sd)) : (
|
|
7502
|
+
N("span", Cd, W(e.sub.name), 1),
|
|
7503
|
+
N("span", wd, W(e.sub.count), 1)
|
|
7504
|
+
], 8, Sd)) : (B(), M("a", {
|
|
7493
7505
|
key: 1,
|
|
7494
7506
|
href: G(r)(e.item.url),
|
|
7495
7507
|
class: "td-dir-row"
|
|
7496
|
-
}, [
|
|
7508
|
+
}, [N("span", Ed, W(e.item.name), 1)], 8, Td))], 64))), 128))]));
|
|
7497
7509
|
}
|
|
7498
7510
|
}), [["__scopeId", "data-v-620bb844"]]), Od = ["href"], kd = { class: "td-glossary-row-title" }, Ad = {
|
|
7499
7511
|
key: 0,
|
|
@@ -7507,7 +7519,7 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7507
7519
|
}, Nd = {
|
|
7508
7520
|
key: 3,
|
|
7509
7521
|
class: "td-glossary-row-tags"
|
|
7510
|
-
}, Pd = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
7522
|
+
}, Pd = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
7511
7523
|
__name: "TdGlossaryRow",
|
|
7512
7524
|
props: {
|
|
7513
7525
|
item: {},
|
|
@@ -7518,17 +7530,17 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7518
7530
|
}
|
|
7519
7531
|
},
|
|
7520
7532
|
setup(e) {
|
|
7521
|
-
return (t, n) => (
|
|
7533
|
+
return (t, n) => (B(), M("a", {
|
|
7522
7534
|
href: e.href,
|
|
7523
7535
|
class: "td-glossary-row"
|
|
7524
7536
|
}, [
|
|
7525
|
-
|
|
7526
|
-
e.item.mtimeSecs ? (
|
|
7527
|
-
e.item.description ? (
|
|
7528
|
-
e.showTags && e.item.tags && e.item.tags.length > 0 ? (
|
|
7537
|
+
N("span", kd, W(e.item.name), 1),
|
|
7538
|
+
e.item.mtimeSecs ? (B(), M("span", Ad, W(G(p)(e.item.mtimeSecs)), 1)) : j("", !0),
|
|
7539
|
+
e.item.description ? (B(), M("span", jd, W(e.item.description), 1)) : (B(), M("span", Md, "No description yet")),
|
|
7540
|
+
e.showTags && e.item.tags && e.item.tags.length > 0 ? (B(), M("span", Nd, [(B(!0), M(O, null, H(e.item.tags, (e) => (B(), M("span", {
|
|
7529
7541
|
key: e,
|
|
7530
7542
|
class: "td-glossary-row-tag"
|
|
7531
|
-
}, W(e), 1))), 128))])) :
|
|
7543
|
+
}, W(e), 1))), 128))])) : j("", !0)
|
|
7532
7544
|
], 8, Od));
|
|
7533
7545
|
}
|
|
7534
7546
|
}), [["__scopeId", "data-v-a556276f"]]), Fd = { class: "td-glossary-filter" }, Id = ["placeholder"], Ld = {
|
|
@@ -7540,18 +7552,18 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7540
7552
|
}, zd = ["href"], Bd = { key: 2 }, Vd = {
|
|
7541
7553
|
key: 0,
|
|
7542
7554
|
class: "td-glossary-columns"
|
|
7543
|
-
}, Hd = { class: "td-glossary-letter-row" }, Ud = { class: "td-glossary-letter" }, Wd = ["href"], Gd = { key: 1 }, Kd = { class: "td-glossary-letter-row" }, qd = { class: "td-glossary-letter" }, Jd = { class: "td-glossary-letter-count" }, Yd = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
7555
|
+
}, Hd = { class: "td-glossary-letter-row" }, Ud = { class: "td-glossary-letter" }, Wd = ["href"], Gd = { key: 1 }, Kd = { class: "td-glossary-letter-row" }, qd = { class: "td-glossary-letter" }, Jd = { class: "td-glossary-letter-count" }, Yd = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
7544
7556
|
__name: "TdGlossaryIndex",
|
|
7545
7557
|
props: { mode: { default: "informative" } },
|
|
7546
7558
|
setup(e) {
|
|
7547
|
-
let t = ji(), n = yf(), { withBase: r } = $(), a =
|
|
7559
|
+
let t = ji(), n = yf(), { withBase: r } = $(), a = V(""), o = k(() => {
|
|
7548
7560
|
let e = i(t.path), r = n.value.directoryListings[e];
|
|
7549
7561
|
return r ? r.entries.filter((e) => e.kind === "file").map((e) => e.item) : [];
|
|
7550
|
-
}), s =
|
|
7562
|
+
}), s = k(() => o.value.length), c = k(() => {
|
|
7551
7563
|
let e = /* @__PURE__ */ new Map();
|
|
7552
7564
|
for (let t of o.value) e.set(t.url, t);
|
|
7553
7565
|
return e;
|
|
7554
|
-
}), l =
|
|
7566
|
+
}), l = k(() => {
|
|
7555
7567
|
let e = new ie({
|
|
7556
7568
|
fields: ["name", "description"],
|
|
7557
7569
|
storeFields: [
|
|
@@ -7572,14 +7584,14 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7572
7584
|
...e,
|
|
7573
7585
|
id: t
|
|
7574
7586
|
}))), e;
|
|
7575
|
-
}), u =
|
|
7587
|
+
}), u = k(() => 0 < a.value.trim().length), d = k(() => {
|
|
7576
7588
|
let e = a.value.trim();
|
|
7577
7589
|
if (e.length === 0) return o.value;
|
|
7578
7590
|
let t = l.value.search(e);
|
|
7579
7591
|
if (t.length === 0) return [];
|
|
7580
7592
|
let n = c.value;
|
|
7581
7593
|
return t.map((e) => n.get(e.url)).filter((e) => e !== void 0);
|
|
7582
|
-
}), f =
|
|
7594
|
+
}), f = k(() => u.value ? [] : p(o.value));
|
|
7583
7595
|
function p(e) {
|
|
7584
7596
|
let t = /* @__PURE__ */ new Map();
|
|
7585
7597
|
for (let n of e) {
|
|
@@ -7591,34 +7603,34 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7591
7603
|
items: t
|
|
7592
7604
|
}));
|
|
7593
7605
|
}
|
|
7594
|
-
return (t, n) => (
|
|
7606
|
+
return (t, n) => (B(), M("div", null, [N("div", Fd, [F(G(Fr), {
|
|
7595
7607
|
size: 14,
|
|
7596
7608
|
class: "td-glossary-filter-icon"
|
|
7597
|
-
}), Fe(
|
|
7609
|
+
}), Fe(N("input", {
|
|
7598
7610
|
"onUpdate:modelValue": n[0] ||= (e) => a.value = e,
|
|
7599
7611
|
type: "text",
|
|
7600
7612
|
class: "td-glossary-filter-input",
|
|
7601
7613
|
placeholder: `Filter ${s.value} entries`
|
|
7602
|
-
}, null, 8, Id), [[Me, a.value]])]), u.value ? (
|
|
7614
|
+
}, null, 8, Id), [[Me, a.value]])]), u.value ? (B(), M(O, { key: 0 }, [d.value.length === 0 ? (B(), M("div", Ld, " No entries matching \"" + W(a.value.trim()) + "\" ", 1)) : e.mode === "dense" ? (B(), M("div", Rd, [(B(!0), M(O, null, H(d.value, (e) => (B(), M("a", {
|
|
7603
7615
|
key: e.url,
|
|
7604
7616
|
href: G(r)(e.url),
|
|
7605
7617
|
class: "td-glossary-dense-link"
|
|
7606
|
-
}, W(e.name), 9, zd))), 128))])) : (
|
|
7618
|
+
}, W(e.name), 9, zd))), 128))])) : (B(), M("div", Bd, [(B(!0), M(O, null, H(d.value, (e) => (B(), A(Pd, {
|
|
7607
7619
|
key: e.url,
|
|
7608
7620
|
item: e,
|
|
7609
7621
|
href: G(r)(e.url)
|
|
7610
|
-
}, null, 8, ["item", "href"]))), 128))]))], 64)) : (
|
|
7622
|
+
}, null, 8, ["item", "href"]))), 128))]))], 64)) : (B(), M(O, { key: 1 }, [e.mode === "dense" ? (B(), M("div", Vd, [(B(!0), M(O, null, H(f.value, (e) => (B(), M("div", {
|
|
7611
7623
|
key: e.letter,
|
|
7612
7624
|
class: "td-glossary-dense-group"
|
|
7613
|
-
}, [
|
|
7625
|
+
}, [N("div", Hd, [N("span", Ud, W(e.letter), 1), n[1] ||= N("span", { class: "td-glossary-letter-line" }, null, -1)]), (B(!0), M(O, null, H(e.items, (e) => (B(), M("a", {
|
|
7614
7626
|
key: e.url,
|
|
7615
7627
|
href: G(r)(e.url),
|
|
7616
7628
|
class: "td-glossary-dense-link"
|
|
7617
|
-
}, W(e.name), 9, Wd))), 128))]))), 128))])) : (
|
|
7618
|
-
|
|
7619
|
-
n[2] ||=
|
|
7620
|
-
|
|
7621
|
-
]), (
|
|
7629
|
+
}, W(e.name), 9, Wd))), 128))]))), 128))])) : (B(), M("div", Gd, [(B(!0), M(O, null, H(f.value, (e) => (B(), M("div", { key: e.letter }, [N("div", Kd, [
|
|
7630
|
+
N("span", qd, W(e.letter), 1),
|
|
7631
|
+
n[2] ||= N("span", { class: "td-glossary-letter-line" }, null, -1),
|
|
7632
|
+
N("span", Jd, W(e.items.length), 1)
|
|
7633
|
+
]), (B(!0), M(O, null, H(e.items, (e) => (B(), A(Pd, {
|
|
7622
7634
|
key: e.url,
|
|
7623
7635
|
item: e,
|
|
7624
7636
|
href: G(r)(e.url),
|
|
@@ -7634,7 +7646,7 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7634
7646
|
"aria-pressed",
|
|
7635
7647
|
"aria-label",
|
|
7636
7648
|
"onKeydown"
|
|
7637
|
-
], Qd = { class: "td-flashcard-face td-flashcard-face-question" }, $d = { class: "td-flashcard-label" }, ef = { class: "td-flashcard-body" }, tf = { class: "td-flashcard-face td-flashcard-face-key" }, nf = { class: "td-flashcard-label" }, rf = { class: "td-flashcard-body" }, af = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
7649
|
+
], Qd = { class: "td-flashcard-face td-flashcard-face-question" }, $d = { class: "td-flashcard-label" }, ef = { class: "td-flashcard-body" }, tf = { class: "td-flashcard-face td-flashcard-face-key" }, nf = { class: "td-flashcard-label" }, rf = { class: "td-flashcard-body" }, af = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
7638
7650
|
inheritAttrs: !1,
|
|
7639
7651
|
__name: "TdFlashcard",
|
|
7640
7652
|
props: {
|
|
@@ -7651,7 +7663,7 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7651
7663
|
keyLabel: { default: "Answer" }
|
|
7652
7664
|
},
|
|
7653
7665
|
setup(e, { expose: t }) {
|
|
7654
|
-
let n =
|
|
7666
|
+
let n = V(e.revealed);
|
|
7655
7667
|
q(() => e.revealed, () => {
|
|
7656
7668
|
n.value = e.revealed;
|
|
7657
7669
|
});
|
|
@@ -7672,8 +7684,8 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7672
7684
|
flip: r,
|
|
7673
7685
|
showQuestion: a,
|
|
7674
7686
|
showKey: i,
|
|
7675
|
-
state:
|
|
7676
|
-
}), (t, i) => (
|
|
7687
|
+
state: we(n)
|
|
7688
|
+
}), (t, i) => (B(), M("div", _e(t.$attrs, {
|
|
7677
7689
|
id: e.id,
|
|
7678
7690
|
class: ["td-flashcard", {
|
|
7679
7691
|
"is-revealed": n.value,
|
|
@@ -7685,52 +7697,52 @@ var Ju = { class: "td-header" }, Yu = { class: "td-header-left" }, Xu = ["href"]
|
|
|
7685
7697
|
"aria-label": n.value ? e.keyLabel : e.questionLabel,
|
|
7686
7698
|
onClick: r,
|
|
7687
7699
|
onKeydown: [Ie(Le(r, ["prevent"]), ["enter"]), Ie(Le(r, ["prevent"]), ["space"])]
|
|
7688
|
-
}), [
|
|
7700
|
+
}), [N("div", Qd, [N("p", $d, W(e.questionLabel), 1), N("div", ef, [U(t.$slots, "default")])]), N("div", tf, [N("p", nf, W(e.keyLabel), 1), N("div", rf, [U(t.$slots, "key")])])], 16, Zd));
|
|
7689
7701
|
}
|
|
7690
|
-
}), [["__scopeId", "data-v-c003aae4"]]), of = Symbol("td-grid-context"), sf = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
7702
|
+
}), [["__scopeId", "data-v-c003aae4"]]), of = Symbol("td-grid-context"), sf = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
7691
7703
|
__name: "TdGrid",
|
|
7692
7704
|
props: {
|
|
7693
7705
|
columns: {},
|
|
7694
7706
|
gap: { default: 1 }
|
|
7695
7707
|
},
|
|
7696
7708
|
setup(e) {
|
|
7697
|
-
|
|
7698
|
-
let t =
|
|
7699
|
-
return (n, r) => (
|
|
7709
|
+
Se(of, !0);
|
|
7710
|
+
let t = k(() => `repeat(${e.columns}, 1fr)`);
|
|
7711
|
+
return (n, r) => (B(), M("div", {
|
|
7700
7712
|
class: "td-grid",
|
|
7701
|
-
style:
|
|
7713
|
+
style: R({
|
|
7702
7714
|
gridTemplateColumns: t.value,
|
|
7703
7715
|
gap: `${e.gap}rem`
|
|
7704
7716
|
})
|
|
7705
|
-
}, [
|
|
7717
|
+
}, [U(n.$slots, "default", {}, void 0, !0)], 4));
|
|
7706
7718
|
}
|
|
7707
|
-
}), [["__scopeId", "data-v-88c6703c"]]), cf = /*#__PURE__*/ Z(/* @__PURE__ */
|
|
7719
|
+
}), [["__scopeId", "data-v-88c6703c"]]), cf = /*#__PURE__*/ Z(/* @__PURE__ */ I({
|
|
7708
7720
|
__name: "TdGridCell",
|
|
7709
7721
|
props: {
|
|
7710
7722
|
colSpan: { default: 1 },
|
|
7711
7723
|
rowSpan: { default: 1 }
|
|
7712
7724
|
},
|
|
7713
7725
|
setup(e) {
|
|
7714
|
-
return
|
|
7726
|
+
return me(of, !1) || console.warn("[TdGridCell] should be used inside a <TdGrid> component."), (t, n) => (B(), M("div", {
|
|
7715
7727
|
class: "td-grid-cell",
|
|
7716
|
-
style:
|
|
7728
|
+
style: R({
|
|
7717
7729
|
...e.colSpan ? { gridColumn: `span ${e.colSpan}` } : {},
|
|
7718
7730
|
...e.rowSpan ? { gridRow: `span ${e.rowSpan}` } : {}
|
|
7719
7731
|
})
|
|
7720
|
-
}, [
|
|
7732
|
+
}, [U(t.$slots, "default", {}, void 0, !0)], 4));
|
|
7721
7733
|
}
|
|
7722
7734
|
}), [["__scopeId", "data-v-035b2ee6"]]), lf = Symbol("td-content");
|
|
7723
7735
|
function uf(e) {
|
|
7724
|
-
let t =
|
|
7725
|
-
page:
|
|
7726
|
-
frontmatter:
|
|
7727
|
-
title:
|
|
7728
|
-
isDark:
|
|
7736
|
+
let t = ne(), n = {
|
|
7737
|
+
page: k(() => e.data),
|
|
7738
|
+
frontmatter: k(() => e.data.frontmatter),
|
|
7739
|
+
title: k(() => e.data.title),
|
|
7740
|
+
isDark: k(() => t.isDark.value)
|
|
7729
7741
|
};
|
|
7730
|
-
return
|
|
7742
|
+
return Se(lf, n), n;
|
|
7731
7743
|
}
|
|
7732
7744
|
function df() {
|
|
7733
|
-
let e =
|
|
7745
|
+
let e = me(lf);
|
|
7734
7746
|
if (e === void 0) throw Error("useTdContent() called without a parent provideTdContent()");
|
|
7735
7747
|
return e;
|
|
7736
7748
|
}
|
|
@@ -7753,7 +7765,7 @@ async function gf(t, r) {
|
|
|
7753
7765
|
default: {
|
|
7754
7766
|
name: "DirectoryIndex",
|
|
7755
7767
|
render() {
|
|
7756
|
-
return
|
|
7768
|
+
return pe(Dd);
|
|
7757
7769
|
}
|
|
7758
7770
|
},
|
|
7759
7771
|
pageData: {
|
|
@@ -7776,12 +7788,12 @@ async function gf(t, r) {
|
|
|
7776
7788
|
let r = c.route.path, a = e.some((e) => Object.keys(n.pages).some((t) => t.endsWith(r + e))), s = !!o(r);
|
|
7777
7789
|
!a && s ? c.go(r) : a && !s && c.go(i(r));
|
|
7778
7790
|
});
|
|
7779
|
-
let l =
|
|
7791
|
+
let l = I({
|
|
7780
7792
|
name: "TypedownApp",
|
|
7781
7793
|
setup() {
|
|
7782
|
-
return uf(c.route), () =>
|
|
7794
|
+
return uf(c.route), () => pe(a.Layout);
|
|
7783
7795
|
}
|
|
7784
|
-
}), u =
|
|
7796
|
+
}), u = de(l);
|
|
7785
7797
|
u.provide(Di, c), u.provide(ff, t), u.provide(pf, r), u.provide(mf, s);
|
|
7786
7798
|
let d = ke(r.value.searchIndex);
|
|
7787
7799
|
return u.provide(hf, d), u.component("TypedownContent", Fi), u.component("DirectoryIndex", Dd), u.component("GlossaryIndex", Yd), u.component("Flashcard", af), u.component("Grid", sf), u.component("GridCell", cf), u.component("LucideIcon", ws), a.enhanceApp && await a.enhanceApp({
|
|
@@ -7799,10 +7811,10 @@ async function gf(t, r) {
|
|
|
7799
7811
|
};
|
|
7800
7812
|
}
|
|
7801
7813
|
function _f() {
|
|
7802
|
-
return
|
|
7814
|
+
return me(hf, ke(void 0));
|
|
7803
7815
|
}
|
|
7804
7816
|
function $() {
|
|
7805
|
-
let e =
|
|
7817
|
+
let e = me(ff, {
|
|
7806
7818
|
title: "",
|
|
7807
7819
|
description: "",
|
|
7808
7820
|
basePath: "/",
|
|
@@ -7817,7 +7829,7 @@ function $() {
|
|
|
7817
7829
|
}
|
|
7818
7830
|
};
|
|
7819
7831
|
}
|
|
7820
|
-
var vf =
|
|
7832
|
+
var vf = V({
|
|
7821
7833
|
ready: !1,
|
|
7822
7834
|
pages: {},
|
|
7823
7835
|
contentTree: { entries: [] },
|
|
@@ -7825,6 +7837,6 @@ var vf = B({
|
|
|
7825
7837
|
directoryListings: {}
|
|
7826
7838
|
});
|
|
7827
7839
|
function yf() {
|
|
7828
|
-
return
|
|
7840
|
+
return me(pf, vf);
|
|
7829
7841
|
}
|
|
7830
7842
|
export { Fi as C, Bi as S, Mi as T, Sc as _, Xd as a, Q as b, bd as c, Bl as d, rl as f, xc as g, bc as h, df as i, _d as l, Vc as m, $ as n, Yd as o, Qc as p, yf as r, Dd as s, gf as t, Vl as u, cs as v, ji as w, X as x, as as y };
|