@x-wave/blog 1.0.9 → 1.0.11
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/index.js +292 -285
- package/package.json +1 -1
- package/styles/index.css +1 -1
package/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
import { jsxs as d, jsx as e, Fragment as
|
|
1
|
+
import { jsxs as d, jsx as e, Fragment as K } from "react/jsx-runtime";
|
|
2
2
|
import { useTranslation as R } from "react-i18next";
|
|
3
|
-
import { useLocation as U, useNavigate as G, useParams as
|
|
4
|
-
import { X as se, Tag as Te, User as Se, CalendarBlank as ye, MagnifyingGlass as he, List as Le, Sun as me, Moon as ge, Monitor as _e, CaretDown as
|
|
5
|
-
import { useState as L, useEffect as P, createContext as De, useContext as Me, useRef as
|
|
3
|
+
import { useLocation as U, useNavigate as G, useParams as ae, Link as de, Navigate as fe, Routes as Ce, Route as ue } from "react-router-dom";
|
|
4
|
+
import { X as se, Tag as Te, User as Se, CalendarBlank as ye, MagnifyingGlass as he, List as Le, Sun as me, Moon as ge, Monitor as _e, CaretDown as oe, Globe as Pe, CaretRight as Be } from "@phosphor-icons/react";
|
|
5
|
+
import { useState as L, useEffect as P, createContext as De, useContext as Me, useRef as q } from "react";
|
|
6
6
|
import Ee from "react-markdown";
|
|
7
7
|
import Oe from "remark-gfm";
|
|
8
8
|
import ne from "i18next";
|
|
9
|
-
import { createPortal as
|
|
9
|
+
import { createPortal as ve } from "react-dom";
|
|
10
10
|
const Re = "_tabContainer_zk6h4_1", je = "_tab_zk6h4_1", Ae = "_active_zk6h4_45", Y = {
|
|
11
11
|
tabContainer: Re,
|
|
12
12
|
tab: je,
|
|
13
13
|
active: Ae
|
|
14
14
|
};
|
|
15
15
|
function He({ hasAdvanced: t }) {
|
|
16
|
-
const { t: n } = R(), s = U(),
|
|
16
|
+
const { t: n } = R(), s = U(), a = G();
|
|
17
17
|
if (!t) return null;
|
|
18
|
-
const
|
|
19
|
-
if (
|
|
18
|
+
const o = new URLSearchParams(s.search).has("advanced"), l = () => {
|
|
19
|
+
if (o) {
|
|
20
20
|
const u = new URLSearchParams(s.search);
|
|
21
21
|
u.delete("advanced");
|
|
22
22
|
const p = u.toString(), w = p ? `?${p}` : "";
|
|
23
|
-
|
|
23
|
+
a(`${s.pathname}${w}${s.hash}`);
|
|
24
24
|
}
|
|
25
25
|
}, g = () => {
|
|
26
|
-
if (!
|
|
26
|
+
if (!o) {
|
|
27
27
|
const u = new URLSearchParams(s.search);
|
|
28
|
-
u.set("advanced", ""),
|
|
28
|
+
u.set("advanced", ""), a(`${s.pathname}?${u.toString()}${s.hash}`);
|
|
29
29
|
}
|
|
30
30
|
};
|
|
31
31
|
return /* @__PURE__ */ d("div", { className: Y.tabContainer, children: [
|
|
@@ -33,7 +33,7 @@ function He({ hasAdvanced: t }) {
|
|
|
33
33
|
"button",
|
|
34
34
|
{
|
|
35
35
|
type: "button",
|
|
36
|
-
className: `${Y.tab} ${
|
|
36
|
+
className: `${Y.tab} ${o ? "" : Y.active}`,
|
|
37
37
|
onClick: l,
|
|
38
38
|
children: n("ui.simple")
|
|
39
39
|
}
|
|
@@ -42,40 +42,40 @@ function He({ hasAdvanced: t }) {
|
|
|
42
42
|
"button",
|
|
43
43
|
{
|
|
44
44
|
type: "button",
|
|
45
|
-
className: `${Y.tab} ${
|
|
45
|
+
className: `${Y.tab} ${o ? Y.active : ""}`,
|
|
46
46
|
onClick: g,
|
|
47
47
|
children: n("ui.advanced")
|
|
48
48
|
}
|
|
49
49
|
)
|
|
50
50
|
] });
|
|
51
51
|
}
|
|
52
|
-
function
|
|
52
|
+
function We({ children: t }) {
|
|
53
53
|
return /* @__PURE__ */ e("div", { className: "xw-blog-root", children: t });
|
|
54
54
|
}
|
|
55
55
|
function be(t) {
|
|
56
56
|
function n(s) {
|
|
57
|
-
const
|
|
58
|
-
if (!
|
|
59
|
-
const c = {},
|
|
57
|
+
const a = s.match(/^---\s*\n([\s\S]*?)\n---\s*\n/);
|
|
58
|
+
if (!a) return { frontmatter: {}, content: s };
|
|
59
|
+
const c = {}, o = a[1];
|
|
60
60
|
let l = "", g = !1;
|
|
61
61
|
const u = [];
|
|
62
|
-
for (const w of
|
|
62
|
+
for (const w of o.split(`
|
|
63
63
|
`)) {
|
|
64
64
|
const _ = w.trim();
|
|
65
65
|
if (_.startsWith("-")) {
|
|
66
66
|
if (g) {
|
|
67
|
-
const
|
|
68
|
-
u.push(
|
|
67
|
+
const v = _.substring(1).trim();
|
|
68
|
+
u.push(v);
|
|
69
69
|
}
|
|
70
70
|
continue;
|
|
71
71
|
}
|
|
72
72
|
if (g && !_.startsWith("-") && (c[l] = u.slice(), u.length = 0, g = !1), _ != null && _.includes(":")) {
|
|
73
|
-
const [
|
|
74
|
-
if (l =
|
|
73
|
+
const [v, ...r] = _.split(":"), f = r.join(":").trim();
|
|
74
|
+
if (l = v.trim(), !f) {
|
|
75
75
|
g = !0;
|
|
76
76
|
continue;
|
|
77
77
|
}
|
|
78
|
-
|
|
78
|
+
f === "true" ? c[l] = !0 : f === "false" ? c[l] = !1 : c[l] = f;
|
|
79
79
|
}
|
|
80
80
|
}
|
|
81
81
|
g && u.length > 0 && (c[l] = u);
|
|
@@ -90,8 +90,8 @@ function be(t) {
|
|
|
90
90
|
* Load MDX content for a given language and slug.
|
|
91
91
|
* Automatically loads the advanced variant if `advanced` is true.
|
|
92
92
|
*/
|
|
93
|
-
async loadMDXContent(s,
|
|
94
|
-
const
|
|
93
|
+
async loadMDXContent(s, a, c = !1) {
|
|
94
|
+
const o = c ? `${a}-advanced.mdx` : `${a}.mdx`, l = `./docs/${s}/${o}`, g = t[l];
|
|
95
95
|
if (!g) throw new Error(`File not found: ${l}`);
|
|
96
96
|
const u = await g(), { frontmatter: p, content: w } = n(u);
|
|
97
97
|
return { content: w, frontmatter: p };
|
|
@@ -100,9 +100,9 @@ function be(t) {
|
|
|
100
100
|
* Load English content for generating consistent heading IDs.
|
|
101
101
|
* All heading anchors are derived from English content for stability across translations.
|
|
102
102
|
*/
|
|
103
|
-
async loadEnglishContent(s,
|
|
104
|
-
const
|
|
105
|
-
if (!l) throw new Error(`File not found: ${
|
|
103
|
+
async loadEnglishContent(s, a = !1) {
|
|
104
|
+
const o = `./docs/en/${a ? `${s}-advanced.mdx` : `${s}.mdx`}`, l = t[o];
|
|
105
|
+
if (!l) throw new Error(`File not found: ${o}`);
|
|
106
106
|
const g = await l(), { content: u } = n(g);
|
|
107
107
|
return u;
|
|
108
108
|
},
|
|
@@ -114,25 +114,25 @@ function be(t) {
|
|
|
114
114
|
* @returns Promise resolving to tag index mapping tag names to document info
|
|
115
115
|
*/
|
|
116
116
|
async buildTagIndex(s = "en") {
|
|
117
|
-
const
|
|
117
|
+
const a = {}, c = `./docs/${s}/`, o = Object.keys(t).filter(
|
|
118
118
|
(l) => l.startsWith(c)
|
|
119
119
|
);
|
|
120
|
-
for (const l of
|
|
120
|
+
for (const l of o)
|
|
121
121
|
try {
|
|
122
|
-
const g = t[l], u = await g(), { frontmatter: p, content: w } = n(u), _ = l.split("/").pop() || "",
|
|
122
|
+
const g = t[l], u = await g(), { frontmatter: p, content: w } = n(u), _ = l.split("/").pop() || "", v = _.replace(".mdx", "").replace("-advanced", ""), r = w.match(/^#\s+(.+)$/m), f = r ? r[1].trim() : v;
|
|
123
123
|
if (_.includes("-advanced")) continue;
|
|
124
124
|
const i = p.tags;
|
|
125
125
|
if (i && Array.isArray(i))
|
|
126
126
|
for (const b of i)
|
|
127
|
-
|
|
127
|
+
a[b] || (a[b] = []), a[b].some((x) => x.slug === v) || a[b].push({ slug: v, title: f });
|
|
128
128
|
} catch (g) {
|
|
129
129
|
console.warn(`Failed to process ${l}:`, g);
|
|
130
130
|
}
|
|
131
|
-
return
|
|
131
|
+
return a;
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
}
|
|
135
|
-
function
|
|
135
|
+
function Ro(t) {
|
|
136
136
|
const n = be(t);
|
|
137
137
|
return {
|
|
138
138
|
mdxFiles: t,
|
|
@@ -140,32 +140,32 @@ function Ea(t) {
|
|
|
140
140
|
loadEnglishContent: n.loadEnglishContent
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
const we = "app-theme", $e = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", pe = (t) => t === "system" ? $e() : t,
|
|
144
|
-
const [t, n] = L(
|
|
143
|
+
const we = "app-theme", $e = () => typeof window > "u" ? "light" : window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light", pe = (t) => t === "system" ? $e() : t, qe = () => typeof window > "u" ? "system" : localStorage.getItem(we) || "system", Ne = () => {
|
|
144
|
+
const [t, n] = L(qe);
|
|
145
145
|
return P(() => {
|
|
146
|
-
const
|
|
147
|
-
if (c && (c.classList.remove("light", "dark"), c.classList.add(
|
|
148
|
-
const
|
|
146
|
+
const a = pe(t), c = document.querySelector(".xw-blog-root");
|
|
147
|
+
if (c && (c.classList.remove("light", "dark"), c.classList.add(a)), t === "system") {
|
|
148
|
+
const o = window.matchMedia("(prefers-color-scheme: dark)"), l = () => {
|
|
149
149
|
const g = $e(), u = document.querySelector(".xw-blog-root");
|
|
150
150
|
u && (u.classList.remove("light", "dark"), u.classList.add(g));
|
|
151
151
|
};
|
|
152
|
-
return
|
|
152
|
+
return o.addEventListener("change", l), () => o.removeEventListener("change", l);
|
|
153
153
|
}
|
|
154
154
|
}, [t]), {
|
|
155
155
|
theme: t,
|
|
156
|
-
setTheme: (
|
|
157
|
-
localStorage.setItem(we,
|
|
156
|
+
setTheme: (a) => {
|
|
157
|
+
localStorage.setItem(we, a), n(a);
|
|
158
158
|
},
|
|
159
159
|
effectiveTheme: pe(t)
|
|
160
160
|
};
|
|
161
161
|
}, Fe = (t) => "items" in t, te = (t, n) => t.map((s) => Fe(s) ? {
|
|
162
162
|
title: ne.getFixedT(n)(s.title),
|
|
163
|
-
items: s.items.map((
|
|
164
|
-
title: ne.getFixedT(n)(
|
|
165
|
-
slug:
|
|
166
|
-
...
|
|
167
|
-
...
|
|
168
|
-
showTableOfContents:
|
|
163
|
+
items: s.items.map((a) => ({
|
|
164
|
+
title: ne.getFixedT(n)(a.title),
|
|
165
|
+
slug: a.slug,
|
|
166
|
+
...a.hasAdvanced && { hasAdvanced: a.hasAdvanced },
|
|
167
|
+
...a.showTableOfContents !== void 0 && {
|
|
168
|
+
showTableOfContents: a.showTableOfContents
|
|
169
169
|
}
|
|
170
170
|
}))
|
|
171
171
|
} : {
|
|
@@ -175,15 +175,15 @@ const we = "app-theme", $e = () => typeof window > "u" ? "light" : window.matchM
|
|
|
175
175
|
...s.showTableOfContents !== void 0 && {
|
|
176
176
|
showTableOfContents: s.showTableOfContents
|
|
177
177
|
}
|
|
178
|
-
}),
|
|
179
|
-
function
|
|
178
|
+
}), Z = (t) => t.toString().toLowerCase().trim().replace(/[^\w\s-]/g, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-+|-+$/g, ""), Ie = De(null);
|
|
179
|
+
function jo({
|
|
180
180
|
children: t,
|
|
181
181
|
config: n,
|
|
182
182
|
blog: s,
|
|
183
|
-
navigationData:
|
|
183
|
+
navigationData: a = []
|
|
184
184
|
}) {
|
|
185
185
|
Ne();
|
|
186
|
-
const [c,
|
|
186
|
+
const [c, o] = L({});
|
|
187
187
|
P(() => {
|
|
188
188
|
const { buildTagIndex: g } = be(s.mdxFiles), u = n.supportedLanguages.map(async (p) => {
|
|
189
189
|
try {
|
|
@@ -197,12 +197,12 @@ function Oa({
|
|
|
197
197
|
const w = {};
|
|
198
198
|
for (const _ of p)
|
|
199
199
|
w[_.language] = _.index;
|
|
200
|
-
|
|
200
|
+
o(w);
|
|
201
201
|
}).catch((p) => {
|
|
202
202
|
console.error("Failed to build tag indices:", p);
|
|
203
203
|
});
|
|
204
204
|
}, [s.mdxFiles, n.supportedLanguages]);
|
|
205
|
-
const l = { ...n, navigationData:
|
|
205
|
+
const l = { ...n, navigationData: a, tagIndex: c };
|
|
206
206
|
return /* @__PURE__ */ e(
|
|
207
207
|
Ie.Provider,
|
|
208
208
|
{
|
|
@@ -211,7 +211,7 @@ function Oa({
|
|
|
211
211
|
loadContent: s.loadContent,
|
|
212
212
|
loadEnglishContent: s.loadEnglishContent
|
|
213
213
|
},
|
|
214
|
-
children: /* @__PURE__ */ e(
|
|
214
|
+
children: /* @__PURE__ */ e(We, { children: t })
|
|
215
215
|
}
|
|
216
216
|
);
|
|
217
217
|
}
|
|
@@ -221,9 +221,9 @@ function j() {
|
|
|
221
221
|
throw new Error("useBlogConfig must be used within a BlogProvider");
|
|
222
222
|
return t;
|
|
223
223
|
}
|
|
224
|
-
const
|
|
225
|
-
tableOfContents:
|
|
226
|
-
header:
|
|
224
|
+
const ze = "_tableOfContents_11q9u_1", Ke = "_header_11q9u_20", Ue = "_title_11q9u_24", Ge = "_nav_11q9u_33", Qe = "_list_11q9u_39", Xe = "_link_11q9u_46", Ye = "_active_11q9u_70", Ve = "_level1_11q9u_86", Je = "_level2_11q9u_92", Ze = "_level3_11q9u_97", et = "_level4_11q9u_103", tt = "_level5_11q9u_109", nt = "_level6_11q9u_115", H = {
|
|
225
|
+
tableOfContents: ze,
|
|
226
|
+
header: Ke,
|
|
227
227
|
title: Ue,
|
|
228
228
|
nav: Ge,
|
|
229
229
|
list: Qe,
|
|
@@ -236,24 +236,24 @@ const Ke = "_tableOfContents_11q9u_1", ze = "_header_11q9u_20", Ue = "_title_11q
|
|
|
236
236
|
level5: tt,
|
|
237
237
|
level6: nt
|
|
238
238
|
};
|
|
239
|
-
function
|
|
239
|
+
function ot({
|
|
240
240
|
content: t,
|
|
241
241
|
englishContent: n
|
|
242
242
|
}) {
|
|
243
|
-
const { t: s } = R(),
|
|
243
|
+
const { t: s } = R(), a = U(), c = G(), [o, l] = L([]), [g, u] = L(""), p = q(null);
|
|
244
244
|
P(() => {
|
|
245
245
|
u(""), (() => {
|
|
246
|
-
const
|
|
247
|
-
let
|
|
246
|
+
const v = /^(#{1,6})\s+(.+)$/gm, r = [];
|
|
247
|
+
let f = v.exec(t);
|
|
248
248
|
const i = [];
|
|
249
|
-
for (;
|
|
250
|
-
const m =
|
|
251
|
-
i.push({ level: m, text: N }),
|
|
249
|
+
for (; f !== null; ) {
|
|
250
|
+
const m = f[1].length, N = f[2].trim();
|
|
251
|
+
i.push({ level: m, text: N }), f = v.exec(t);
|
|
252
252
|
}
|
|
253
253
|
const b = /^(#{1,6})\s+(.+)$/gm;
|
|
254
254
|
let x = b.exec(n), T = 0;
|
|
255
255
|
for (; x !== null && T < i.length; ) {
|
|
256
|
-
const m = x[2].trim(), N =
|
|
256
|
+
const m = x[2].trim(), N = Z(m);
|
|
257
257
|
r.push({
|
|
258
258
|
id: N,
|
|
259
259
|
text: i[T].text,
|
|
@@ -264,24 +264,24 @@ function at({
|
|
|
264
264
|
l(r);
|
|
265
265
|
})();
|
|
266
266
|
}, [t, n]), P(() => {
|
|
267
|
-
if (
|
|
267
|
+
if (o.length === 0) return;
|
|
268
268
|
const _ = setTimeout(() => {
|
|
269
|
-
const
|
|
269
|
+
const v = o.filter(
|
|
270
270
|
(r) => !document.getElementById(r.id)
|
|
271
271
|
);
|
|
272
|
-
|
|
272
|
+
v.length > 0 && console.warn("Some heading elements not found:", v);
|
|
273
273
|
}, 100);
|
|
274
274
|
return () => clearTimeout(_);
|
|
275
|
-
}, [
|
|
276
|
-
if (
|
|
275
|
+
}, [o]), P(() => {
|
|
276
|
+
if (o.length === 0) return;
|
|
277
277
|
p.current && p.current.disconnect();
|
|
278
278
|
const _ = setTimeout(() => {
|
|
279
|
-
const
|
|
280
|
-
|
|
279
|
+
const v = o.map((r) => document.getElementById(r.id)).filter(Boolean);
|
|
280
|
+
v.length !== 0 && (p.current = new IntersectionObserver(
|
|
281
281
|
(r) => {
|
|
282
|
-
const
|
|
283
|
-
if (
|
|
284
|
-
const i =
|
|
282
|
+
const f = r.filter((i) => i.isIntersecting);
|
|
283
|
+
if (f.length > 0) {
|
|
284
|
+
const i = f.reduce((b, x) => b.boundingClientRect.top < x.boundingClientRect.top ? b : x);
|
|
285
285
|
u(i.target.id);
|
|
286
286
|
}
|
|
287
287
|
},
|
|
@@ -289,36 +289,36 @@ function at({
|
|
|
289
289
|
rootMargin: "-80px 0% -80% 0%",
|
|
290
290
|
threshold: 0
|
|
291
291
|
}
|
|
292
|
-
),
|
|
292
|
+
), v.forEach((r) => {
|
|
293
293
|
p.current && p.current.observe(r);
|
|
294
294
|
}));
|
|
295
295
|
}, 150);
|
|
296
296
|
return () => {
|
|
297
297
|
clearTimeout(_), p.current && p.current.disconnect();
|
|
298
298
|
};
|
|
299
|
-
}, [
|
|
299
|
+
}, [o]), P(() => () => {
|
|
300
300
|
p.current && p.current.disconnect();
|
|
301
301
|
}, []);
|
|
302
302
|
const w = (_) => {
|
|
303
|
-
const
|
|
304
|
-
if (
|
|
305
|
-
const r = new URLSearchParams(
|
|
303
|
+
const v = document.getElementById(_);
|
|
304
|
+
if (v) {
|
|
305
|
+
const r = new URLSearchParams(a.search);
|
|
306
306
|
r.set("a", _), c(
|
|
307
|
-
`${
|
|
307
|
+
`${a.pathname}?${r.toString()}${a.hash}`,
|
|
308
308
|
{
|
|
309
309
|
replace: !0
|
|
310
310
|
}
|
|
311
311
|
);
|
|
312
|
-
const b =
|
|
312
|
+
const b = v.getBoundingClientRect().top + window.pageYOffset - 80;
|
|
313
313
|
window.scrollTo({
|
|
314
314
|
top: b,
|
|
315
315
|
behavior: "smooth"
|
|
316
316
|
});
|
|
317
317
|
}
|
|
318
318
|
};
|
|
319
|
-
return
|
|
319
|
+
return o.length === 0 ? null : /* @__PURE__ */ d("aside", { className: H.tableOfContents, children: [
|
|
320
320
|
/* @__PURE__ */ e("div", { className: H.header, children: /* @__PURE__ */ e("span", { className: H.title, children: s("ui.onThisPage", "On this page") }) }),
|
|
321
|
-
/* @__PURE__ */ e("nav", { className: H.nav, children: /* @__PURE__ */ e("ul", { className: H.list, children:
|
|
321
|
+
/* @__PURE__ */ e("nav", { className: H.nav, children: /* @__PURE__ */ e("ul", { className: H.list, children: o.map((_) => /* @__PURE__ */ e("li", { className: H.item, children: /* @__PURE__ */ e(
|
|
322
322
|
"button",
|
|
323
323
|
{
|
|
324
324
|
className: `${H.link} ${H[`level${_.level}`]} ${g === _.id ? H.active : ""}`,
|
|
@@ -329,8 +329,8 @@ function at({
|
|
|
329
329
|
) }, _.id)) }) })
|
|
330
330
|
] });
|
|
331
331
|
}
|
|
332
|
-
const
|
|
333
|
-
overlay:
|
|
332
|
+
const at = "_overlay_1e1d4_1", st = "_modal_1e1d4_26", ct = "_header_1e1d4_50", rt = "_title_1e1d4_58", lt = "_closeButton_1e1d4_65", it = "_results_1e1d4_86", dt = "_resultsList_1e1d4_94", ut = "_resultItem_1e1d4_100", ht = "_resultTitle_1e1d4_119", mt = "_resultSlug_1e1d4_124", gt = "_noResults_1e1d4_130", O = {
|
|
333
|
+
overlay: at,
|
|
334
334
|
modal: st,
|
|
335
335
|
header: ct,
|
|
336
336
|
title: rt,
|
|
@@ -346,14 +346,14 @@ function _t({
|
|
|
346
346
|
tag: t,
|
|
347
347
|
results: n,
|
|
348
348
|
language: s,
|
|
349
|
-
onClose:
|
|
349
|
+
onClose: a
|
|
350
350
|
}) {
|
|
351
|
-
const { t: c } = R(), { config:
|
|
352
|
-
const p =
|
|
353
|
-
l(`${p}/${s}/${u}`),
|
|
351
|
+
const { t: c } = R(), { config: o } = j(), l = G(), g = (u) => {
|
|
352
|
+
const p = o.basePath || "";
|
|
353
|
+
l(`${p}/${s}/${u}`), a();
|
|
354
354
|
};
|
|
355
|
-
return
|
|
356
|
-
/* @__PURE__ */ e("div", { className: O.overlay, onClick:
|
|
355
|
+
return ve(
|
|
356
|
+
/* @__PURE__ */ e("div", { className: O.overlay, onClick: a, children: /* @__PURE__ */ d("div", { className: O.modal, onClick: (u) => u.stopPropagation(), children: [
|
|
357
357
|
/* @__PURE__ */ d("div", { className: O.header, children: [
|
|
358
358
|
/* @__PURE__ */ d("h2", { className: O.title, children: [
|
|
359
359
|
c("ui.tagResults"),
|
|
@@ -365,7 +365,7 @@ function _t({
|
|
|
365
365
|
{
|
|
366
366
|
type: "button",
|
|
367
367
|
className: O.closeButton,
|
|
368
|
-
onClick:
|
|
368
|
+
onClick: a,
|
|
369
369
|
"aria-label": "Close",
|
|
370
370
|
children: /* @__PURE__ */ e(se, {})
|
|
371
371
|
}
|
|
@@ -390,42 +390,42 @@ function _t({
|
|
|
390
390
|
document.body
|
|
391
391
|
);
|
|
392
392
|
}
|
|
393
|
-
const pt = "_tags_11t8a_1",
|
|
393
|
+
const pt = "_tags_11t8a_1", ft = "_compact_11t8a_9", vt = "_tagLabel_11t8a_15", bt = "_tagIcon_11t8a_25", wt = "_tagList_11t8a_30", $t = "_tag_11t8a_1", z = {
|
|
394
394
|
tags: pt,
|
|
395
|
-
compact:
|
|
396
|
-
tagLabel:
|
|
395
|
+
compact: ft,
|
|
396
|
+
tagLabel: vt,
|
|
397
397
|
tagIcon: bt,
|
|
398
398
|
tagList: wt,
|
|
399
399
|
tag: $t
|
|
400
400
|
};
|
|
401
401
|
function Nt({ tags: t, variant: n = "default", onTagClick: s }) {
|
|
402
|
-
const { t:
|
|
402
|
+
const { t: a } = R();
|
|
403
403
|
if (!t || t.length === 0) return null;
|
|
404
|
-
const c = (
|
|
405
|
-
s && s(
|
|
404
|
+
const c = (o) => {
|
|
405
|
+
s && s(o);
|
|
406
406
|
};
|
|
407
407
|
return /* @__PURE__ */ d(
|
|
408
408
|
"div",
|
|
409
409
|
{
|
|
410
|
-
className: `${
|
|
410
|
+
className: `${z.tags} ${n === "compact" ? z.compact : ""}`,
|
|
411
411
|
children: [
|
|
412
|
-
n === "default" && /* @__PURE__ */ d("div", { className:
|
|
413
|
-
/* @__PURE__ */ e(Te, { className:
|
|
412
|
+
n === "default" && /* @__PURE__ */ d("div", { className: z.tagLabel, children: [
|
|
413
|
+
/* @__PURE__ */ e(Te, { className: z.tagIcon, weight: "duotone" }),
|
|
414
414
|
/* @__PURE__ */ d("span", { children: [
|
|
415
|
-
|
|
415
|
+
a("ui.tags"),
|
|
416
416
|
":"
|
|
417
417
|
] })
|
|
418
418
|
] }),
|
|
419
|
-
/* @__PURE__ */ e("div", { className:
|
|
419
|
+
/* @__PURE__ */ e("div", { className: z.tagList, children: t.map((o) => /* @__PURE__ */ e(
|
|
420
420
|
"button",
|
|
421
421
|
{
|
|
422
422
|
type: "button",
|
|
423
|
-
className:
|
|
424
|
-
onClick: () => c(
|
|
425
|
-
"aria-label": `${
|
|
426
|
-
children:
|
|
423
|
+
className: z.tag,
|
|
424
|
+
onClick: () => c(o),
|
|
425
|
+
"aria-label": `${a("ui.filterByTag")}: ${o}`,
|
|
426
|
+
children: o
|
|
427
427
|
},
|
|
428
|
-
|
|
428
|
+
o
|
|
429
429
|
)) })
|
|
430
430
|
]
|
|
431
431
|
}
|
|
@@ -449,7 +449,7 @@ const It = "_contentPage_1nxj5_1", xt = "_metadata_1nxj5_20", kt = "_author_1nxj
|
|
|
449
449
|
};
|
|
450
450
|
function Rt({ language: t }) {
|
|
451
451
|
var ie;
|
|
452
|
-
const { slug: n } =
|
|
452
|
+
const { slug: n } = ae(), s = U(), { t: a } = R(), { config: c, loadContent: o, loadEnglishContent: l } = j(), [g, u] = L(""), [p, w] = L(""), [_, v] = L({}), [r, f] = L(!0), [i, b] = L(null), [x, T] = L(!0), [m, N] = L(null), B = q(0), Q = q([]), ee = ((h) => {
|
|
453
453
|
const k = {
|
|
454
454
|
advanced: !1,
|
|
455
455
|
anchor: ""
|
|
@@ -459,11 +459,11 @@ function Rt({ language: t }) {
|
|
|
459
459
|
for (const C of $)
|
|
460
460
|
C === "advanced" ? k.advanced = !0 : C.startsWith("a=") && (k.anchor = C.substring(2));
|
|
461
461
|
return k;
|
|
462
|
-
})(s.search), A =
|
|
462
|
+
})(s.search), A = ee.advanced;
|
|
463
463
|
if (P(() => {
|
|
464
464
|
(async () => {
|
|
465
465
|
if (!n) return;
|
|
466
|
-
|
|
466
|
+
f(!0), b(null), B.current = 0;
|
|
467
467
|
const k = (c == null ? void 0 : c.navigationData) || [];
|
|
468
468
|
let y = !0;
|
|
469
469
|
for (const $ of k)
|
|
@@ -481,10 +481,10 @@ function Rt({ language: t }) {
|
|
|
481
481
|
try {
|
|
482
482
|
let $;
|
|
483
483
|
try {
|
|
484
|
-
$ = await
|
|
484
|
+
$ = await o(t, n, A);
|
|
485
485
|
} catch {
|
|
486
486
|
if (A)
|
|
487
|
-
$ = await
|
|
487
|
+
$ = await o(t, n, !1);
|
|
488
488
|
else
|
|
489
489
|
throw new Error("Content not found");
|
|
490
490
|
}
|
|
@@ -500,11 +500,11 @@ function Rt({ language: t }) {
|
|
|
500
500
|
const ke = F[2].trim();
|
|
501
501
|
X.push(ke), F = E.exec(C);
|
|
502
502
|
}
|
|
503
|
-
Q.current = X, w(C), u($.content),
|
|
503
|
+
Q.current = X, w(C), u($.content), v($.frontmatter);
|
|
504
504
|
} catch ($) {
|
|
505
505
|
b($ instanceof Error ? $.message : "Failed to load content");
|
|
506
506
|
} finally {
|
|
507
|
-
|
|
507
|
+
f(!1);
|
|
508
508
|
}
|
|
509
509
|
})();
|
|
510
510
|
}, [
|
|
@@ -512,12 +512,12 @@ function Rt({ language: t }) {
|
|
|
512
512
|
t,
|
|
513
513
|
A,
|
|
514
514
|
c.navigationData,
|
|
515
|
-
|
|
515
|
+
o,
|
|
516
516
|
l
|
|
517
517
|
]), P(() => {
|
|
518
|
-
if (!r &&
|
|
518
|
+
if (!r && ee.anchor) {
|
|
519
519
|
const h = setTimeout(() => {
|
|
520
|
-
const k = document.getElementById(
|
|
520
|
+
const k = document.getElementById(ee.anchor);
|
|
521
521
|
if (k) {
|
|
522
522
|
const C = k.getBoundingClientRect().top + window.pageYOffset - 80;
|
|
523
523
|
window.scrollTo({
|
|
@@ -528,7 +528,7 @@ function Rt({ language: t }) {
|
|
|
528
528
|
}, 150);
|
|
529
529
|
return () => clearTimeout(h);
|
|
530
530
|
}
|
|
531
|
-
}, [r,
|
|
531
|
+
}, [r, ee.anchor]), r)
|
|
532
532
|
return /* @__PURE__ */ e("div", { className: D.contentPage, children: /* @__PURE__ */ d("div", { className: D.loadingContainer, children: [
|
|
533
533
|
/* @__PURE__ */ e("div", { className: D.skeletonTitle }),
|
|
534
534
|
/* @__PURE__ */ e("div", { className: D.skeletonParagraph }),
|
|
@@ -549,12 +549,12 @@ function Rt({ language: t }) {
|
|
|
549
549
|
] }),
|
|
550
550
|
_.date && /* @__PURE__ */ d("span", { className: D.date, children: [
|
|
551
551
|
/* @__PURE__ */ e(ye, { size: 16, weight: "regular" }),
|
|
552
|
-
|
|
552
|
+
a("ui.lastEdited"),
|
|
553
553
|
": ",
|
|
554
554
|
_.date
|
|
555
555
|
] })
|
|
556
556
|
] });
|
|
557
|
-
return /* @__PURE__ */ d(
|
|
557
|
+
return /* @__PURE__ */ d(K, { children: [
|
|
558
558
|
/* @__PURE__ */ d("div", { className: D.contentPage, children: [
|
|
559
559
|
/* @__PURE__ */ e(He, { hasAdvanced: _.hasAdvanced || !1 }),
|
|
560
560
|
/* @__PURE__ */ e("div", { className: D.mdxContent, children: /* @__PURE__ */ e(
|
|
@@ -563,10 +563,10 @@ function Rt({ language: t }) {
|
|
|
563
563
|
remarkPlugins: [Oe],
|
|
564
564
|
components: {
|
|
565
565
|
h1: ({ children: h }) => {
|
|
566
|
-
const k = B.current++, y = Q.current[k] || "", $ =
|
|
566
|
+
const k = B.current++, y = Q.current[k] || "", $ = Z(y), C = A ? `?advanced&a=${$}` : `?a=${$}`, E = `#/${t}/${n}${C}`, X = !le;
|
|
567
567
|
le = !0;
|
|
568
568
|
const F = _.date || _.author;
|
|
569
|
-
return /* @__PURE__ */ d(
|
|
569
|
+
return /* @__PURE__ */ d(K, { children: [
|
|
570
570
|
/* @__PURE__ */ e(
|
|
571
571
|
"h1",
|
|
572
572
|
{
|
|
@@ -586,7 +586,7 @@ function Rt({ language: t }) {
|
|
|
586
586
|
] });
|
|
587
587
|
},
|
|
588
588
|
h2: ({ children: h }) => {
|
|
589
|
-
const k = B.current++, y = Q.current[k] || "", $ =
|
|
589
|
+
const k = B.current++, y = Q.current[k] || "", $ = Z(y), C = A ? `?advanced&a=${$}` : `?a=${$}`, E = `#/${t}/${n}${C}`;
|
|
590
590
|
return /* @__PURE__ */ e("h2", { id: $, children: /* @__PURE__ */ e(
|
|
591
591
|
"a",
|
|
592
592
|
{
|
|
@@ -597,7 +597,7 @@ function Rt({ language: t }) {
|
|
|
597
597
|
) });
|
|
598
598
|
},
|
|
599
599
|
h3: ({ children: h }) => {
|
|
600
|
-
const k = B.current++, y = Q.current[k] || "", $ =
|
|
600
|
+
const k = B.current++, y = Q.current[k] || "", $ = Z(y), C = A ? `?advanced&a=${$}` : `?a=${$}`, E = `#/${t}/${n}${C}`;
|
|
601
601
|
return /* @__PURE__ */ e("h3", { id: $, children: /* @__PURE__ */ e(
|
|
602
602
|
"a",
|
|
603
603
|
{
|
|
@@ -608,7 +608,7 @@ function Rt({ language: t }) {
|
|
|
608
608
|
) });
|
|
609
609
|
},
|
|
610
610
|
h4: ({ children: h }) => {
|
|
611
|
-
const k = B.current++, y = Q.current[k] || "", $ =
|
|
611
|
+
const k = B.current++, y = Q.current[k] || "", $ = Z(y), C = A ? `?advanced&a=${$}` : `?a=${$}`, E = `#/${t}/${n}${C}`;
|
|
612
612
|
return /* @__PURE__ */ e("h4", { id: $, children: /* @__PURE__ */ e(
|
|
613
613
|
"a",
|
|
614
614
|
{
|
|
@@ -639,7 +639,7 @@ function Rt({ language: t }) {
|
|
|
639
639
|
/* @__PURE__ */ e("pre", { children: /* @__PURE__ */ e("code", { className: h, ...y, children: k }) })
|
|
640
640
|
] });
|
|
641
641
|
},
|
|
642
|
-
pre: ({ children: h }) => /* @__PURE__ */ e(
|
|
642
|
+
pre: ({ children: h }) => /* @__PURE__ */ e(K, { children: h }),
|
|
643
643
|
// Let code component handle pre styling
|
|
644
644
|
blockquote: ({ children: h }) => /* @__PURE__ */ e("blockquote", { children: h }),
|
|
645
645
|
a: ({ href: h, children: k, ...y }) => {
|
|
@@ -673,7 +673,7 @@ function Rt({ language: t }) {
|
|
|
673
673
|
}
|
|
674
674
|
)
|
|
675
675
|
] }),
|
|
676
|
-
x && /* @__PURE__ */ e(
|
|
676
|
+
x && /* @__PURE__ */ e(ot, { content: g, englishContent: p }),
|
|
677
677
|
m && ((ie = c.tagIndex) == null ? void 0 : ie[t]) && /* @__PURE__ */ e(
|
|
678
678
|
_t,
|
|
679
679
|
{
|
|
@@ -685,15 +685,15 @@ function Rt({ language: t }) {
|
|
|
685
685
|
)
|
|
686
686
|
] });
|
|
687
687
|
}
|
|
688
|
-
const jt = "_searchButton_1k9sl_1", At = "_searchIcon_1k9sl_17", Ht = "_searchHint_1k9sl_23",
|
|
688
|
+
const jt = "_searchButton_1k9sl_1", At = "_searchIcon_1k9sl_17", Ht = "_searchHint_1k9sl_23", Wt = "_kbd_1k9sl_27", qt = "_searchOverlay_1k9sl_42", Ft = "_searchModal_1k9sl_67", zt = "_searchHeader_1k9sl_91", Kt = "_searchInput_1k9sl_105", Ut = "_closeButton_1k9sl_123", Gt = "_searchResults_1k9sl_144", Qt = "_resultsList_1k9sl_152", Xt = "_resultItem_1k9sl_158", Yt = "_selected_1k9sl_173", Vt = "_resultTitle_1k9sl_176", Jt = "_resultSlug_1k9sl_180", Zt = "_noResults_1k9sl_186", en = "_searchHints_1k9sl_193", tn = "_hint_1k9sl_210", S = {
|
|
689
689
|
searchButton: jt,
|
|
690
690
|
searchIcon: At,
|
|
691
691
|
searchHint: Ht,
|
|
692
|
-
kbd:
|
|
693
|
-
searchOverlay:
|
|
692
|
+
kbd: Wt,
|
|
693
|
+
searchOverlay: qt,
|
|
694
694
|
searchModal: Ft,
|
|
695
|
-
searchHeader:
|
|
696
|
-
searchInput:
|
|
695
|
+
searchHeader: zt,
|
|
696
|
+
searchInput: Kt,
|
|
697
697
|
closeButton: Ut,
|
|
698
698
|
searchResults: Gt,
|
|
699
699
|
resultsList: Qt,
|
|
@@ -706,7 +706,7 @@ const jt = "_searchButton_1k9sl_1", At = "_searchIcon_1k9sl_17", Ht = "_searchHi
|
|
|
706
706
|
hint: tn
|
|
707
707
|
};
|
|
708
708
|
function nn({ language: t }) {
|
|
709
|
-
const { t: n } = R(), s = G(), { config:
|
|
709
|
+
const { t: n } = R(), s = G(), { config: a } = j(), [c, o] = L(!1), [l, g] = L(""), [u, p] = L([]), [w, _] = L(0), v = q(null), r = q(null), i = typeof navigator < "u" && /(Mac|iPhone|iPod|iPad)/i.test(navigator.platform) ? "⌘K" : "Ctrl+K", b = (a.navigationData ? te(a.navigationData, t) : []).flatMap((m) => "items" in m ? m.items.map((N) => ({
|
|
710
710
|
title: N.title,
|
|
711
711
|
slug: N.slug
|
|
712
712
|
})) : [{ title: m.title, slug: m.slug }]);
|
|
@@ -721,20 +721,20 @@ function nn({ language: t }) {
|
|
|
721
721
|
p(N), _(0);
|
|
722
722
|
}, [l]), P(() => {
|
|
723
723
|
const m = (N) => {
|
|
724
|
-
(N.metaKey || N.ctrlKey) && N.key === "k" && (N.preventDefault(),
|
|
724
|
+
(N.metaKey || N.ctrlKey) && N.key === "k" && (N.preventDefault(), o(!0), setTimeout(() => {
|
|
725
725
|
var B;
|
|
726
|
-
return (B =
|
|
727
|
-
}, 100)), N.key === "Escape" && c && (
|
|
726
|
+
return (B = v.current) == null ? void 0 : B.focus();
|
|
727
|
+
}, 100)), N.key === "Escape" && c && (o(!1), g(""));
|
|
728
728
|
};
|
|
729
729
|
return document.addEventListener("keydown", m), () => document.removeEventListener("keydown", m);
|
|
730
730
|
}, [c]), P(() => {
|
|
731
731
|
const m = () => {
|
|
732
|
-
|
|
732
|
+
o(!0), setTimeout(() => {
|
|
733
733
|
var B;
|
|
734
|
-
return (B =
|
|
734
|
+
return (B = v.current) == null ? void 0 : B.focus();
|
|
735
735
|
}, 100);
|
|
736
736
|
}, N = () => {
|
|
737
|
-
|
|
737
|
+
o(!1), g("");
|
|
738
738
|
};
|
|
739
739
|
return window.addEventListener("blog:open-search", m), window.addEventListener("blog:close-search", N), () => {
|
|
740
740
|
window.removeEventListener("blog:open-search", m), window.removeEventListener("blog:close-search", N);
|
|
@@ -745,24 +745,24 @@ function nn({ language: t }) {
|
|
|
745
745
|
};
|
|
746
746
|
P(() => {
|
|
747
747
|
const m = (N) => {
|
|
748
|
-
r.current && !r.current.contains(N.target) && (
|
|
748
|
+
r.current && !r.current.contains(N.target) && (o(!1), g(""));
|
|
749
749
|
};
|
|
750
750
|
return c && document.addEventListener("mousedown", m), () => document.removeEventListener("mousedown", m);
|
|
751
751
|
}, [c]);
|
|
752
752
|
const T = (m) => {
|
|
753
|
-
const N =
|
|
754
|
-
s(`${N}/${t}/${m}`),
|
|
753
|
+
const N = a.basePath || "";
|
|
754
|
+
s(`${N}/${t}/${m}`), o(!1), g("");
|
|
755
755
|
};
|
|
756
|
-
return /* @__PURE__ */ d(
|
|
756
|
+
return /* @__PURE__ */ d(K, { children: [
|
|
757
757
|
/* @__PURE__ */ d(
|
|
758
758
|
"button",
|
|
759
759
|
{
|
|
760
760
|
type: "button",
|
|
761
761
|
className: S.searchButton,
|
|
762
762
|
onClick: () => {
|
|
763
|
-
|
|
763
|
+
o(!0), setTimeout(() => {
|
|
764
764
|
var m;
|
|
765
|
-
return (m =
|
|
765
|
+
return (m = v.current) == null ? void 0 : m.focus();
|
|
766
766
|
}, 100);
|
|
767
767
|
},
|
|
768
768
|
"aria-label": n("ui.search"),
|
|
@@ -773,13 +773,13 @@ function nn({ language: t }) {
|
|
|
773
773
|
]
|
|
774
774
|
}
|
|
775
775
|
),
|
|
776
|
-
c &&
|
|
776
|
+
c && ve(
|
|
777
777
|
/* @__PURE__ */ e(
|
|
778
778
|
"div",
|
|
779
779
|
{
|
|
780
780
|
className: S.searchOverlay,
|
|
781
781
|
onClick: () => {
|
|
782
|
-
|
|
782
|
+
o(!1), g("");
|
|
783
783
|
},
|
|
784
784
|
children: /* @__PURE__ */ d(
|
|
785
785
|
"div",
|
|
@@ -793,7 +793,7 @@ function nn({ language: t }) {
|
|
|
793
793
|
/* @__PURE__ */ e(
|
|
794
794
|
"input",
|
|
795
795
|
{
|
|
796
|
-
ref:
|
|
796
|
+
ref: v,
|
|
797
797
|
type: "text",
|
|
798
798
|
className: S.searchInput,
|
|
799
799
|
placeholder: n("ui.searchPlaceholder"),
|
|
@@ -808,7 +808,7 @@ function nn({ language: t }) {
|
|
|
808
808
|
type: "button",
|
|
809
809
|
className: S.closeButton,
|
|
810
810
|
onClick: () => {
|
|
811
|
-
|
|
811
|
+
o(!1), g("");
|
|
812
812
|
},
|
|
813
813
|
"aria-label": "Close search",
|
|
814
814
|
children: /* @__PURE__ */ e(se, {})
|
|
@@ -855,9 +855,9 @@ function nn({ language: t }) {
|
|
|
855
855
|
)
|
|
856
856
|
] });
|
|
857
857
|
}
|
|
858
|
-
const
|
|
859
|
-
header:
|
|
860
|
-
container:
|
|
858
|
+
const on = "_header_jrobc_1", an = "_container_jrobc_24", sn = "_content_jrobc_36", cn = "_leftSection_jrobc_43", rn = "_mobileMenuButton_jrobc_49", ln = "_burgerIcon_jrobc_87", dn = "_logo_jrobc_92", un = "_nav_jrobc_98", hn = "_navLink_jrobc_109", mn = "_externalIcon_jrobc_135", gn = "_supportDropdown_jrobc_141", _n = "_themeDropdown_jrobc_145", pn = "_themeButton_jrobc_149", fn = "_themeIcon_jrobc_171", vn = "_supportButton_jrobc_177", bn = "_caretIcon_jrobc_198", wn = "_dropdownMenu_jrobc_208", $n = "_dropdownItem_jrobc_221", Nn = "_dropdownIcon_jrobc_244", I = {
|
|
859
|
+
header: on,
|
|
860
|
+
container: an,
|
|
861
861
|
content: sn,
|
|
862
862
|
leftSection: cn,
|
|
863
863
|
mobileMenuButton: rn,
|
|
@@ -869,18 +869,18 @@ const an = "_header_jrobc_1", on = "_container_jrobc_24", sn = "_content_jrobc_3
|
|
|
869
869
|
supportDropdown: gn,
|
|
870
870
|
themeDropdown: _n,
|
|
871
871
|
themeButton: pn,
|
|
872
|
-
themeIcon:
|
|
873
|
-
supportButton:
|
|
872
|
+
themeIcon: fn,
|
|
873
|
+
supportButton: vn,
|
|
874
874
|
caretIcon: bn,
|
|
875
875
|
dropdownMenu: wn,
|
|
876
876
|
dropdownItem: $n,
|
|
877
877
|
dropdownIcon: Nn
|
|
878
878
|
};
|
|
879
879
|
function In({ onMobileMenuToggle: t }) {
|
|
880
|
-
const { t: n, i18n: s } = R(), { config:
|
|
880
|
+
const { t: n, i18n: s } = R(), { config: a } = j(), c = a.header ?? {}, o = c.navLinks ?? [], l = c.dropdownItems ?? [], [g, u] = L(!1), [p, w] = L(!1), { theme: _, setTheme: v } = Ne(), r = q(null), f = q(null);
|
|
881
881
|
return P(() => {
|
|
882
882
|
const i = (b) => {
|
|
883
|
-
r.current && !r.current.contains(b.target) && u(!1),
|
|
883
|
+
r.current && !r.current.contains(b.target) && u(!1), f.current && !f.current.contains(b.target) && w(!1);
|
|
884
884
|
};
|
|
885
885
|
return document.addEventListener("mousedown", i), () => document.removeEventListener("mousedown", i);
|
|
886
886
|
}, []), /* @__PURE__ */ e("header", { className: I.header, children: /* @__PURE__ */ e("div", { className: I.container, children: /* @__PURE__ */ d("div", { className: I.content, children: [
|
|
@@ -899,7 +899,7 @@ function In({ onMobileMenuToggle: t }) {
|
|
|
899
899
|
] }),
|
|
900
900
|
/* @__PURE__ */ d("nav", { className: I.nav, children: [
|
|
901
901
|
/* @__PURE__ */ e(nn, { language: s.language }),
|
|
902
|
-
/* @__PURE__ */ d("div", { className: I.themeDropdown, ref:
|
|
902
|
+
/* @__PURE__ */ d("div", { className: I.themeDropdown, ref: f, children: [
|
|
903
903
|
/* @__PURE__ */ d(
|
|
904
904
|
"button",
|
|
905
905
|
{
|
|
@@ -913,7 +913,7 @@ function In({ onMobileMenuToggle: t }) {
|
|
|
913
913
|
_ === "light" && /* @__PURE__ */ e(me, { className: I.themeIcon }),
|
|
914
914
|
_ === "dark" && /* @__PURE__ */ e(ge, { className: I.themeIcon }),
|
|
915
915
|
_ === "system" && /* @__PURE__ */ e(_e, { className: I.themeIcon }),
|
|
916
|
-
/* @__PURE__ */ e(
|
|
916
|
+
/* @__PURE__ */ e(oe, { className: I.caretIcon })
|
|
917
917
|
]
|
|
918
918
|
}
|
|
919
919
|
),
|
|
@@ -923,7 +923,7 @@ function In({ onMobileMenuToggle: t }) {
|
|
|
923
923
|
{
|
|
924
924
|
type: "button",
|
|
925
925
|
onClick: () => {
|
|
926
|
-
|
|
926
|
+
v("light"), w(!1);
|
|
927
927
|
},
|
|
928
928
|
className: I.dropdownItem,
|
|
929
929
|
children: [
|
|
@@ -937,7 +937,7 @@ function In({ onMobileMenuToggle: t }) {
|
|
|
937
937
|
{
|
|
938
938
|
type: "button",
|
|
939
939
|
onClick: () => {
|
|
940
|
-
|
|
940
|
+
v("dark"), w(!1);
|
|
941
941
|
},
|
|
942
942
|
className: I.dropdownItem,
|
|
943
943
|
children: [
|
|
@@ -951,7 +951,7 @@ function In({ onMobileMenuToggle: t }) {
|
|
|
951
951
|
{
|
|
952
952
|
type: "button",
|
|
953
953
|
onClick: () => {
|
|
954
|
-
|
|
954
|
+
v("system"), w(!1);
|
|
955
955
|
},
|
|
956
956
|
className: I.dropdownItem,
|
|
957
957
|
children: [
|
|
@@ -973,7 +973,7 @@ function In({ onMobileMenuToggle: t }) {
|
|
|
973
973
|
"aria-haspopup": "true",
|
|
974
974
|
children: [
|
|
975
975
|
n("ui.support"),
|
|
976
|
-
/* @__PURE__ */ e(
|
|
976
|
+
/* @__PURE__ */ e(oe, { className: I.caretIcon })
|
|
977
977
|
]
|
|
978
978
|
}
|
|
979
979
|
),
|
|
@@ -995,7 +995,7 @@ function In({ onMobileMenuToggle: t }) {
|
|
|
995
995
|
);
|
|
996
996
|
}) })
|
|
997
997
|
] }),
|
|
998
|
-
|
|
998
|
+
o.map((i, b) => {
|
|
999
999
|
const x = i.target ?? (typeof i.url == "string" && i.url.startsWith("http") ? "_blank" : "_self"), T = i.rel ?? (x === "_blank" ? "noopener noreferrer" : void 0), m = i.icon;
|
|
1000
1000
|
return /* @__PURE__ */ d(
|
|
1001
1001
|
"a",
|
|
@@ -1020,23 +1020,23 @@ function ce({
|
|
|
1020
1020
|
styles: t,
|
|
1021
1021
|
onLanguageChange: n
|
|
1022
1022
|
}) {
|
|
1023
|
-
const { i18n: s } = R(),
|
|
1024
|
-
const r =
|
|
1025
|
-
let
|
|
1026
|
-
r &&
|
|
1027
|
-
const i =
|
|
1023
|
+
const { i18n: s } = R(), a = U(), c = G(), { config: o } = j(), [l, g] = L(!1), u = q(null), p = s.language, w = (v) => {
|
|
1024
|
+
const r = o.basePath || "";
|
|
1025
|
+
let f = a.pathname;
|
|
1026
|
+
r && f.startsWith(r) && (f = f.slice(r.length));
|
|
1027
|
+
const i = f.split("/").filter(Boolean), b = i[0];
|
|
1028
1028
|
let x = "";
|
|
1029
|
-
|
|
1030
|
-
const T = x +
|
|
1031
|
-
s.changeLanguage(
|
|
1029
|
+
o.supportedLanguages.includes(b) ? (i[0] = v, x = `${r}/${i.join("/")}`) : x = `${r}/${v}${f}`;
|
|
1030
|
+
const T = x + a.search + a.hash;
|
|
1031
|
+
s.changeLanguage(v), c(T), g(!1), n == null || n();
|
|
1032
1032
|
};
|
|
1033
1033
|
P(() => {
|
|
1034
|
-
const
|
|
1034
|
+
const v = (r) => {
|
|
1035
1035
|
u.current && !u.current.contains(r.target) && g(!1);
|
|
1036
1036
|
};
|
|
1037
|
-
return document.addEventListener("mousedown",
|
|
1037
|
+
return document.addEventListener("mousedown", v), () => document.removeEventListener("mousedown", v);
|
|
1038
1038
|
}, []);
|
|
1039
|
-
const _ = (
|
|
1039
|
+
const _ = (v) => s.getFixedT(v)("language") || v;
|
|
1040
1040
|
return /* @__PURE__ */ d("div", { className: t.languageSelect, ref: u, children: [
|
|
1041
1041
|
/* @__PURE__ */ d(
|
|
1042
1042
|
"button",
|
|
@@ -1049,26 +1049,26 @@ function ce({
|
|
|
1049
1049
|
children: [
|
|
1050
1050
|
/* @__PURE__ */ e(Pe, { className: t.icon }),
|
|
1051
1051
|
_(p),
|
|
1052
|
-
/* @__PURE__ */ e(
|
|
1052
|
+
/* @__PURE__ */ e(oe, { className: t.chevron })
|
|
1053
1053
|
]
|
|
1054
1054
|
}
|
|
1055
1055
|
),
|
|
1056
|
-
l && /* @__PURE__ */ e("div", { className: t.languageDropdown, role: "listbox", children:
|
|
1056
|
+
l && /* @__PURE__ */ e("div", { className: t.languageDropdown, role: "listbox", children: o.supportedLanguages.map((v) => /* @__PURE__ */ e(
|
|
1057
1057
|
"button",
|
|
1058
1058
|
{
|
|
1059
1059
|
type: "button",
|
|
1060
|
-
className: `${t.languageOption} ${
|
|
1061
|
-
onClick: () => w(
|
|
1060
|
+
className: `${t.languageOption} ${v === p ? t.selected : ""}`,
|
|
1061
|
+
onClick: () => w(v),
|
|
1062
1062
|
role: "option",
|
|
1063
|
-
"aria-selected":
|
|
1064
|
-
children: _(
|
|
1063
|
+
"aria-selected": v === p,
|
|
1064
|
+
children: _(v)
|
|
1065
1065
|
},
|
|
1066
|
-
|
|
1066
|
+
v
|
|
1067
1067
|
)) })
|
|
1068
1068
|
] });
|
|
1069
1069
|
}
|
|
1070
1070
|
function re({ styles: t, onLinkClick: n }) {
|
|
1071
|
-
const { i18n: s } = R(),
|
|
1071
|
+
const { i18n: s } = R(), a = U(), { config: c } = j(), [o, l] = L(() => {
|
|
1072
1072
|
if (!c.navigationData) return {};
|
|
1073
1073
|
const r = s.language;
|
|
1074
1074
|
return te(c.navigationData, r).reduce(
|
|
@@ -1084,7 +1084,7 @@ function re({ styles: t, onLinkClick: n }) {
|
|
|
1084
1084
|
}), g = s.language, u = c.navigationData ? te(c.navigationData, g) : [];
|
|
1085
1085
|
P(() => {
|
|
1086
1086
|
if (!c.navigationData) return;
|
|
1087
|
-
const
|
|
1087
|
+
const f = te(
|
|
1088
1088
|
c.navigationData,
|
|
1089
1089
|
g
|
|
1090
1090
|
).reduce(
|
|
@@ -1097,26 +1097,26 @@ function re({ styles: t, onLinkClick: n }) {
|
|
|
1097
1097
|
},
|
|
1098
1098
|
{}
|
|
1099
1099
|
);
|
|
1100
|
-
l(
|
|
1100
|
+
l(f);
|
|
1101
1101
|
}, [g, c.navigationData]);
|
|
1102
1102
|
const p = (r) => {
|
|
1103
|
-
l((
|
|
1104
|
-
...
|
|
1105
|
-
[r]: !
|
|
1103
|
+
l((f) => ({
|
|
1104
|
+
...f,
|
|
1105
|
+
[r]: !f[r]
|
|
1106
1106
|
}));
|
|
1107
1107
|
}, w = (r) => {
|
|
1108
|
-
const
|
|
1109
|
-
let i =
|
|
1110
|
-
|
|
1108
|
+
const f = c.basePath || "";
|
|
1109
|
+
let i = a.pathname;
|
|
1110
|
+
f && i.startsWith(f) && (i = i.slice(f.length));
|
|
1111
1111
|
const b = i.split("/").filter(Boolean);
|
|
1112
1112
|
return b[b.length - 1] === r;
|
|
1113
1113
|
}, _ = (r) => {
|
|
1114
|
-
const
|
|
1115
|
-
let i =
|
|
1116
|
-
|
|
1114
|
+
const f = c.basePath || "";
|
|
1115
|
+
let i = a.pathname;
|
|
1116
|
+
f && i.startsWith(f) && (i = i.slice(f.length));
|
|
1117
1117
|
const b = i.split("/").filter(Boolean);
|
|
1118
|
-
return b[0] && c.supportedLanguages.includes(b[0]) ? `${
|
|
1119
|
-
},
|
|
1118
|
+
return b[0] && c.supportedLanguages.includes(b[0]) ? `${f}/${b[0]}/${r}` : `${f}/${g}/${r}`;
|
|
1119
|
+
}, v = () => {
|
|
1120
1120
|
n == null || n();
|
|
1121
1121
|
};
|
|
1122
1122
|
return /* @__PURE__ */ e("div", { className: t.navigation, children: u.map((r) => V(r) ? /* @__PURE__ */ d("div", { className: t.section, children: [
|
|
@@ -1124,7 +1124,7 @@ function re({ styles: t, onLinkClick: n }) {
|
|
|
1124
1124
|
"button",
|
|
1125
1125
|
{
|
|
1126
1126
|
type: "button",
|
|
1127
|
-
className: `${t.sectionButton} ${
|
|
1127
|
+
className: `${t.sectionButton} ${o[r.title] ? t.expanded : ""}`,
|
|
1128
1128
|
onClick: () => p(r.title),
|
|
1129
1129
|
children: [
|
|
1130
1130
|
r.title,
|
|
@@ -1132,38 +1132,38 @@ function re({ styles: t, onLinkClick: n }) {
|
|
|
1132
1132
|
]
|
|
1133
1133
|
}
|
|
1134
1134
|
),
|
|
1135
|
-
|
|
1135
|
+
o[r.title] && /* @__PURE__ */ e("div", { className: t.sectionItems, children: r.items.map((f) => /* @__PURE__ */ e(
|
|
1136
1136
|
de,
|
|
1137
1137
|
{
|
|
1138
|
-
to: _(
|
|
1139
|
-
className: `${t.navItem} ${w(
|
|
1140
|
-
onClick:
|
|
1141
|
-
children: /* @__PURE__ */ e("div", { className: t.navItemContent, children: /* @__PURE__ */ e("span", { className: t.navItemTitle, children:
|
|
1138
|
+
to: _(f.slug),
|
|
1139
|
+
className: `${t.navItem} ${w(f.slug) ? t.active : ""}`,
|
|
1140
|
+
onClick: v,
|
|
1141
|
+
children: /* @__PURE__ */ e("div", { className: t.navItemContent, children: /* @__PURE__ */ e("span", { className: t.navItemTitle, children: f.title }) })
|
|
1142
1142
|
},
|
|
1143
|
-
|
|
1143
|
+
f.slug
|
|
1144
1144
|
)) })
|
|
1145
1145
|
] }, r.title) : /* @__PURE__ */ e(
|
|
1146
1146
|
de,
|
|
1147
1147
|
{
|
|
1148
1148
|
to: _(r.slug),
|
|
1149
1149
|
className: `${t.navItem} ${w(r.slug) ? t.active : ""}`,
|
|
1150
|
-
onClick:
|
|
1150
|
+
onClick: v,
|
|
1151
1151
|
children: /* @__PURE__ */ e("div", { className: t.navItemContent, children: /* @__PURE__ */ e("span", { className: t.navItemTitle, children: r.title }) })
|
|
1152
1152
|
},
|
|
1153
1153
|
r.slug
|
|
1154
1154
|
)) });
|
|
1155
1155
|
}
|
|
1156
|
-
function
|
|
1156
|
+
function Ao({
|
|
1157
1157
|
styles: t,
|
|
1158
1158
|
onLinkClick: n,
|
|
1159
1159
|
onLanguageChange: s
|
|
1160
1160
|
}) {
|
|
1161
|
-
return /* @__PURE__ */ d(
|
|
1161
|
+
return /* @__PURE__ */ d(K, { children: [
|
|
1162
1162
|
/* @__PURE__ */ e(ce, { styles: t, onLanguageChange: s }),
|
|
1163
1163
|
/* @__PURE__ */ e(re, { styles: t, onLinkClick: n })
|
|
1164
1164
|
] });
|
|
1165
1165
|
}
|
|
1166
|
-
const xn = "_backdrop_1a7pu_1", kn = "_open_1a7pu_13", Cn = "_mobileMenu_1a7pu_18", Tn = "_header_1a7pu_37", Sn = "_brand_1a7pu_46", yn = "_cloudIcon_1a7pu_53", Ln = "_title_1a7pu_62", Pn = "_closeButton_1a7pu_69", Bn = "_closeIcon_1a7pu_101", Dn = "_languageSection_1a7pu_106", Mn = "_languageSelect_1a7pu_112", En = "_languageButton_1a7pu_117", On = "_icon_1a7pu_156", Rn = "_chevron_1a7pu_162", jn = "_languageDropdown_1a7pu_172", An = "_languageOption_1a7pu_185", Hn = "_selected_1a7pu_226",
|
|
1166
|
+
const xn = "_backdrop_1a7pu_1", kn = "_open_1a7pu_13", Cn = "_mobileMenu_1a7pu_18", Tn = "_header_1a7pu_37", Sn = "_brand_1a7pu_46", yn = "_cloudIcon_1a7pu_53", Ln = "_title_1a7pu_62", Pn = "_closeButton_1a7pu_69", Bn = "_closeIcon_1a7pu_101", Dn = "_languageSection_1a7pu_106", Mn = "_languageSelect_1a7pu_112", En = "_languageButton_1a7pu_117", On = "_icon_1a7pu_156", Rn = "_chevron_1a7pu_162", jn = "_languageDropdown_1a7pu_172", An = "_languageOption_1a7pu_185", Hn = "_selected_1a7pu_226", Wn = "_scrollArea_1a7pu_231", qn = "_navigation_1a7pu_237", Fn = "_section_1a7pu_241", zn = "_sectionButton_1a7pu_245", Kn = "_expanded_1a7pu_285", Un = "_sectionItems_1a7pu_289", Gn = "_navItem_1a7pu_297", Qn = "_active_1a7pu_310", Xn = "_navItemContent_1a7pu_316", Yn = "_navItemTitle_1a7pu_322", M = {
|
|
1167
1167
|
backdrop: xn,
|
|
1168
1168
|
open: kn,
|
|
1169
1169
|
mobileMenu: Cn,
|
|
@@ -1181,11 +1181,11 @@ const xn = "_backdrop_1a7pu_1", kn = "_open_1a7pu_13", Cn = "_mobileMenu_1a7pu_1
|
|
|
1181
1181
|
languageDropdown: jn,
|
|
1182
1182
|
languageOption: An,
|
|
1183
1183
|
selected: Hn,
|
|
1184
|
-
scrollArea:
|
|
1185
|
-
navigation:
|
|
1184
|
+
scrollArea: Wn,
|
|
1185
|
+
navigation: qn,
|
|
1186
1186
|
section: Fn,
|
|
1187
|
-
sectionButton:
|
|
1188
|
-
expanded:
|
|
1187
|
+
sectionButton: zn,
|
|
1188
|
+
expanded: Kn,
|
|
1189
1189
|
sectionItems: Un,
|
|
1190
1190
|
navItem: Gn,
|
|
1191
1191
|
active: Qn,
|
|
@@ -1193,15 +1193,15 @@ const xn = "_backdrop_1a7pu_1", kn = "_open_1a7pu_13", Cn = "_mobileMenu_1a7pu_1
|
|
|
1193
1193
|
navItemTitle: Yn
|
|
1194
1194
|
};
|
|
1195
1195
|
function Vn({ isOpen: t, onClose: n }) {
|
|
1196
|
-
const { config: s } = j(),
|
|
1196
|
+
const { config: s } = j(), a = s.logo;
|
|
1197
1197
|
return P(() => (t ? document.body.style.overflow = "hidden" : document.body.style.overflow = "unset", () => {
|
|
1198
1198
|
document.body.style.overflow = "unset";
|
|
1199
1199
|
}), [t]), P(() => {
|
|
1200
|
-
const c = (
|
|
1201
|
-
|
|
1200
|
+
const c = (o) => {
|
|
1201
|
+
o.key === "Escape" && t && n();
|
|
1202
1202
|
};
|
|
1203
1203
|
return document.addEventListener("keydown", c), () => document.removeEventListener("keydown", c);
|
|
1204
|
-
}, [t, n]), /* @__PURE__ */ d(
|
|
1204
|
+
}, [t, n]), /* @__PURE__ */ d(K, { children: [
|
|
1205
1205
|
/* @__PURE__ */ e(
|
|
1206
1206
|
"div",
|
|
1207
1207
|
{
|
|
@@ -1212,7 +1212,7 @@ function Vn({ isOpen: t, onClose: n }) {
|
|
|
1212
1212
|
/* @__PURE__ */ d("div", { className: `${M.mobileMenu} ${t ? M.open : ""}`, children: [
|
|
1213
1213
|
/* @__PURE__ */ d("div", { className: M.header, children: [
|
|
1214
1214
|
/* @__PURE__ */ d("div", { className: M.brand, children: [
|
|
1215
|
-
|
|
1215
|
+
a && /* @__PURE__ */ e(a, { className: M.cloudIcon }),
|
|
1216
1216
|
/* @__PURE__ */ e("h1", { className: M.title, children: s.title })
|
|
1217
1217
|
] }),
|
|
1218
1218
|
/* @__PURE__ */ e(
|
|
@@ -1231,78 +1231,85 @@ function Vn({ isOpen: t, onClose: n }) {
|
|
|
1231
1231
|
] })
|
|
1232
1232
|
] });
|
|
1233
1233
|
}
|
|
1234
|
-
const Jn = "_sidebar_1tdxt_1", Zn = "_header_1tdxt_17",
|
|
1234
|
+
const Jn = "_sidebar_1tdxt_1", Zn = "_header_1tdxt_17", eo = "_brand_1tdxt_29", to = "_cloudIcon_1tdxt_35", no = "_title_1tdxt_44", oo = "_languageSelect_1tdxt_55", ao = "_languageButton_1tdxt_61", so = "_icon_1tdxt_99", co = "_chevron_1tdxt_104", ro = "_languageDropdown_1tdxt_114", lo = "_languageOption_1tdxt_128", io = "_selected_1tdxt_147", uo = "_scrollArea_1tdxt_152", ho = "_navigation_1tdxt_158", mo = "_section_1tdxt_164", go = "_sectionButton_1tdxt_170", _o = "_expanded_1tdxt_213", po = "_sectionItems_1tdxt_217", fo = "_navItem_1tdxt_225", vo = "_active_1tdxt_238", bo = "_navItemContent_1tdxt_243", W = {
|
|
1235
1235
|
sidebar: Jn,
|
|
1236
1236
|
header: Zn,
|
|
1237
|
-
brand:
|
|
1238
|
-
cloudIcon:
|
|
1239
|
-
title:
|
|
1240
|
-
languageSelect:
|
|
1241
|
-
languageButton:
|
|
1242
|
-
icon:
|
|
1243
|
-
chevron:
|
|
1244
|
-
languageDropdown:
|
|
1245
|
-
languageOption:
|
|
1246
|
-
selected:
|
|
1247
|
-
scrollArea:
|
|
1248
|
-
navigation:
|
|
1249
|
-
section:
|
|
1250
|
-
sectionButton:
|
|
1251
|
-
expanded:
|
|
1252
|
-
sectionItems:
|
|
1253
|
-
navItem:
|
|
1254
|
-
active:
|
|
1255
|
-
navItemContent:
|
|
1237
|
+
brand: eo,
|
|
1238
|
+
cloudIcon: to,
|
|
1239
|
+
title: no,
|
|
1240
|
+
languageSelect: oo,
|
|
1241
|
+
languageButton: ao,
|
|
1242
|
+
icon: so,
|
|
1243
|
+
chevron: co,
|
|
1244
|
+
languageDropdown: ro,
|
|
1245
|
+
languageOption: lo,
|
|
1246
|
+
selected: io,
|
|
1247
|
+
scrollArea: uo,
|
|
1248
|
+
navigation: ho,
|
|
1249
|
+
section: mo,
|
|
1250
|
+
sectionButton: go,
|
|
1251
|
+
expanded: _o,
|
|
1252
|
+
sectionItems: po,
|
|
1253
|
+
navItem: fo,
|
|
1254
|
+
active: vo,
|
|
1255
|
+
navItemContent: bo
|
|
1256
1256
|
};
|
|
1257
|
-
function
|
|
1257
|
+
function wo() {
|
|
1258
1258
|
const { config: t } = j(), n = t.logo, s = t.supportedLanguages.length > 1;
|
|
1259
|
-
return /* @__PURE__ */ d("div", { className:
|
|
1260
|
-
/* @__PURE__ */ d("div", { className:
|
|
1261
|
-
/* @__PURE__ */ d("div", { className:
|
|
1262
|
-
n && /* @__PURE__ */ e(n, { className:
|
|
1263
|
-
/* @__PURE__ */ e("div", { className:
|
|
1259
|
+
return /* @__PURE__ */ d("div", { className: W.sidebar, children: [
|
|
1260
|
+
/* @__PURE__ */ d("div", { className: W.header, children: [
|
|
1261
|
+
/* @__PURE__ */ d("div", { className: W.brand, children: [
|
|
1262
|
+
n && /* @__PURE__ */ e(n, { className: W.cloudIcon }),
|
|
1263
|
+
/* @__PURE__ */ e("div", { className: W.title, children: t.title })
|
|
1264
1264
|
] }),
|
|
1265
|
-
s && /* @__PURE__ */ e(ce, { styles:
|
|
1265
|
+
s && /* @__PURE__ */ e(ce, { styles: W })
|
|
1266
1266
|
] }),
|
|
1267
|
-
/* @__PURE__ */ e("div", { className:
|
|
1267
|
+
/* @__PURE__ */ e("div", { className: W.scrollArea, children: /* @__PURE__ */ e(re, { styles: W }) })
|
|
1268
1268
|
] });
|
|
1269
1269
|
}
|
|
1270
|
-
const
|
|
1271
|
-
app:
|
|
1272
|
-
layout:
|
|
1273
|
-
main:
|
|
1274
|
-
|
|
1270
|
+
const $o = "_app_szn27_1", No = "_layout_szn27_9", Io = "_main_szn27_15", xo = "_fullWidth_szn27_21", ko = "_contentWrapper_szn27_24", J = {
|
|
1271
|
+
app: $o,
|
|
1272
|
+
layout: No,
|
|
1273
|
+
main: Io,
|
|
1274
|
+
fullWidth: xo,
|
|
1275
|
+
contentWrapper: ko
|
|
1275
1276
|
};
|
|
1276
|
-
function
|
|
1277
|
-
const { language: n } =
|
|
1277
|
+
function Co({ children: t }) {
|
|
1278
|
+
const { language: n } = ae(), { i18n: s } = R(), { config: a } = j(), [c, o] = L(!1);
|
|
1278
1279
|
P(() => {
|
|
1279
|
-
n &&
|
|
1280
|
-
}, [n, s,
|
|
1280
|
+
n && a.supportedLanguages.includes(n) && s.changeLanguage(n);
|
|
1281
|
+
}, [n, s, a.supportedLanguages]);
|
|
1281
1282
|
const l = () => {
|
|
1282
|
-
|
|
1283
|
+
o(!c);
|
|
1283
1284
|
}, g = () => {
|
|
1284
|
-
|
|
1285
|
+
o(!1);
|
|
1285
1286
|
};
|
|
1286
|
-
if (!n || !
|
|
1287
|
-
return /* @__PURE__ */ e(
|
|
1288
|
-
const u = !!
|
|
1289
|
-
return /* @__PURE__ */ d("div", { className:
|
|
1287
|
+
if (!n || !a.supportedLanguages.includes(n))
|
|
1288
|
+
return /* @__PURE__ */ e(fe, { to: "/en/welcome", replace: !0 });
|
|
1289
|
+
const u = !!a.header, p = !!a.navigationData && a.navigationData.length > 0;
|
|
1290
|
+
return /* @__PURE__ */ d("div", { className: J.app, children: [
|
|
1290
1291
|
u && /* @__PURE__ */ e(In, { onMobileMenuToggle: l }),
|
|
1291
1292
|
/* @__PURE__ */ e(Vn, { isOpen: c, onClose: g }),
|
|
1292
|
-
/* @__PURE__ */ d("div", { className:
|
|
1293
|
-
p && /* @__PURE__ */ e(
|
|
1294
|
-
/* @__PURE__ */ e(
|
|
1293
|
+
/* @__PURE__ */ d("div", { className: J.layout, children: [
|
|
1294
|
+
p && /* @__PURE__ */ e(wo, {}),
|
|
1295
|
+
/* @__PURE__ */ e(
|
|
1296
|
+
"main",
|
|
1297
|
+
{
|
|
1298
|
+
className: `${J.main} ${p ? "" : J.fullWidth}`,
|
|
1299
|
+
children: /* @__PURE__ */ e("div", { className: J.contentWrapper, children: t })
|
|
1300
|
+
}
|
|
1301
|
+
)
|
|
1295
1302
|
] })
|
|
1296
1303
|
] });
|
|
1297
1304
|
}
|
|
1298
|
-
function
|
|
1299
|
-
const { language: t } =
|
|
1300
|
-
return /* @__PURE__ */ e(
|
|
1305
|
+
function Ho() {
|
|
1306
|
+
const { language: t } = ae();
|
|
1307
|
+
return /* @__PURE__ */ e(Co, { children: /* @__PURE__ */ d(Ce, { children: [
|
|
1301
1308
|
/* @__PURE__ */ e(ue, { path: "/:slug", element: /* @__PURE__ */ e(Rt, { language: t }) }),
|
|
1302
|
-
/* @__PURE__ */ e(ue, { path: "/", element: /* @__PURE__ */ e(
|
|
1309
|
+
/* @__PURE__ */ e(ue, { path: "/", element: /* @__PURE__ */ e(fe, { to: "welcome", replace: !0 }) })
|
|
1303
1310
|
] }) });
|
|
1304
1311
|
}
|
|
1305
|
-
function
|
|
1312
|
+
function Wo() {
|
|
1306
1313
|
return {
|
|
1307
1314
|
openSearchModal: () => {
|
|
1308
1315
|
window.dispatchEvent(new CustomEvent("blog:open-search"));
|
|
@@ -1312,42 +1319,42 @@ function Aa() {
|
|
|
1312
1319
|
}
|
|
1313
1320
|
};
|
|
1314
1321
|
}
|
|
1315
|
-
function
|
|
1316
|
-
const { i18n: t } = R(), n = U(), s = G(), { config:
|
|
1322
|
+
function qo() {
|
|
1323
|
+
const { i18n: t } = R(), n = U(), s = G(), { config: a } = j();
|
|
1317
1324
|
return (c) => {
|
|
1318
|
-
const
|
|
1325
|
+
const o = a.basePath || "";
|
|
1319
1326
|
let l = n.pathname;
|
|
1320
|
-
|
|
1327
|
+
o && l.startsWith(o) && (l = l.slice(o.length));
|
|
1321
1328
|
const g = l.split("/").filter(Boolean), u = g[0];
|
|
1322
1329
|
let p = "";
|
|
1323
|
-
|
|
1330
|
+
a.supportedLanguages.includes(u) ? (g[0] = c, p = `${o}/${g.join("/")}`) : p = `${o}/${c}${l}`;
|
|
1324
1331
|
const w = p + n.search + n.hash;
|
|
1325
1332
|
t.changeLanguage(c), s(w);
|
|
1326
1333
|
};
|
|
1327
1334
|
}
|
|
1328
1335
|
export {
|
|
1329
1336
|
He as AdvancedModeToggle,
|
|
1330
|
-
|
|
1331
|
-
|
|
1337
|
+
jo as BlogProvider,
|
|
1338
|
+
We as BlogRoot,
|
|
1332
1339
|
Rt as ContentPage,
|
|
1333
|
-
|
|
1334
|
-
|
|
1340
|
+
Co as DocumentationLayout,
|
|
1341
|
+
Ho as DocumentationRoutes,
|
|
1335
1342
|
In as Header,
|
|
1336
1343
|
ce as LanguageSelector,
|
|
1337
1344
|
Vn as MobileMenu,
|
|
1338
|
-
|
|
1345
|
+
Ao as NavigationContent,
|
|
1339
1346
|
re as NavigationMenu,
|
|
1340
1347
|
nn as SearchBar,
|
|
1341
|
-
|
|
1342
|
-
|
|
1348
|
+
wo as Sidebar,
|
|
1349
|
+
ot as TableOfContents,
|
|
1343
1350
|
_t as TagResultsModal,
|
|
1344
1351
|
Nt as Tags,
|
|
1345
|
-
|
|
1352
|
+
Ro as createBlogUtils,
|
|
1346
1353
|
be as createContentLoaders,
|
|
1347
|
-
|
|
1354
|
+
Z as generateHeadingId,
|
|
1348
1355
|
te as getNavigationData,
|
|
1349
1356
|
j as useBlogConfig,
|
|
1350
|
-
|
|
1351
|
-
|
|
1357
|
+
qo as useLanguageChange,
|
|
1358
|
+
Wo as useSearchModal,
|
|
1352
1359
|
Ne as useTheme
|
|
1353
1360
|
};
|