@cntrl-site/components 1.0.118-alpha.3 → 1.0.118-alpha.8
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/{Burger-BkVgNMGU.mjs → Burger-C8JIQQwm.mjs} +330 -307
- package/dist/Burger-C_SjPZWp.js +669 -0
- package/dist/{ChroniclesComponent-DD3tqNNm.mjs → ChroniclesComponent-B-93AhZK.mjs} +1 -1
- package/dist/{ChroniclesComponent-BMbUwzk6.js → ChroniclesComponent-C9sBiR1y.js} +1 -1
- package/dist/Components/Burger/Burger.d.ts +4 -2
- package/dist/{components-BwAmTGJp.mjs → components-M_xX2VXw.mjs} +1 -1
- package/dist/{components-D8RelPGE.js → components-pNQQ3H27.js} +1 -1
- package/dist/elements.js +1 -1
- package/dist/elements.mjs +1 -1
- package/dist/elements.node.js +1 -1
- package/dist/elements.node.mjs +1 -1
- package/dist/index.js +1 -1
- package/dist/index.mjs +2 -2
- package/dist/sources.js +54 -9
- package/dist/sources.mjs +54 -9
- package/package.json +1 -1
- package/dist/Burger-C3yVbQcq.js +0 -669
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import { useRef as
|
|
3
|
-
import { s as
|
|
1
|
+
import { jsxs as L, jsx as s, Fragment as In } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as y, useMemo as uo, useState as R, useEffect as A, useLayoutEffect as mo, Fragment as _o } from "react";
|
|
3
|
+
import { s as z } from "./scalingValue-C9JH5L6O.mjs";
|
|
4
4
|
import { b as Rn } from "./buildColorVars-CLyWQm5K.mjs";
|
|
5
5
|
import { u as _n } from "./useScopedStyles-DhBG3557.mjs";
|
|
6
6
|
import { u as Mn } from "./useLightboxScrollLock-VQ07s7EJ.mjs";
|
|
7
7
|
import { o as Wn, t as En } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
8
|
-
import { i as
|
|
9
|
-
const
|
|
10
|
-
function
|
|
8
|
+
import { i as ut, l as Gn } from "./loadSvgMaskUrl-xHgGYgPe.mjs";
|
|
9
|
+
const w = 300, v = 300, Un = 8 / 1440, X = 4e-3, Dn = 50, jn = 1440, W = Dn / jn;
|
|
10
|
+
function Vn(o) {
|
|
11
11
|
if (o === "default" || o === "compact" || o === "open") return o;
|
|
12
12
|
if (o === "onScroll") return "compact";
|
|
13
13
|
}
|
|
@@ -18,7 +18,7 @@ function Yn(o) {
|
|
|
18
18
|
return o === "left" || o === "right" ? o : "center";
|
|
19
19
|
}
|
|
20
20
|
function Kn(o, t, e) {
|
|
21
|
-
const n =
|
|
21
|
+
const n = z(t, e);
|
|
22
22
|
return o === "center" ? `translateX(calc(-50% + ${n}))` : `translateX(${n})`;
|
|
23
23
|
}
|
|
24
24
|
function qn(o, t) {
|
|
@@ -30,12 +30,12 @@ function qn(o, t) {
|
|
|
30
30
|
}
|
|
31
31
|
return o;
|
|
32
32
|
}
|
|
33
|
-
function
|
|
33
|
+
function Go(o, t) {
|
|
34
34
|
const e = (qn(o, t) ?? "always").trim().toLowerCase().replace(/[_-]+/g, " ");
|
|
35
35
|
return e === "open only" || e === "openonly" ? "open only" : e === "default only" || e === "defaultonly" ? "default only" : e === "open and compact" || e === "openandcompact" ? "open and compact" : e === "default and open" || e === "defaultandopen" ? "default and open" : e === "default and compact" || e === "defaultandcompact" ? "default and compact" : "always";
|
|
36
36
|
}
|
|
37
37
|
function Zn(o, t, e) {
|
|
38
|
-
switch (
|
|
38
|
+
switch (Go(o.showIn, e)) {
|
|
39
39
|
case "open only":
|
|
40
40
|
return !1;
|
|
41
41
|
case "default only":
|
|
@@ -51,7 +51,7 @@ function Zn(o, t, e) {
|
|
|
51
51
|
}
|
|
52
52
|
}
|
|
53
53
|
function Jn(o, t) {
|
|
54
|
-
switch (
|
|
54
|
+
switch (Go(o.showIn, t)) {
|
|
55
55
|
case "default only":
|
|
56
56
|
case "default and compact":
|
|
57
57
|
return !1;
|
|
@@ -60,7 +60,7 @@ function Jn(o, t) {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
function Qn(o, t) {
|
|
63
|
-
return !Array.isArray(o) || o.length === 0 ? !0 : o.some((e) =>
|
|
63
|
+
return !Array.isArray(o) || o.length === 0 ? !0 : o.some((e) => Go(e == null ? void 0 : e.showIn, t) !== "default only");
|
|
64
64
|
}
|
|
65
65
|
function Pn(o) {
|
|
66
66
|
return (o == null ? void 0 : o.find((t) => t.slug === "")) ?? (o == null ? void 0 : o[0]);
|
|
@@ -69,33 +69,37 @@ function oa(o, t) {
|
|
|
69
69
|
const e = o ? t == null ? void 0 : t.find((n) => n.id === o) : Pn(t);
|
|
70
70
|
return !o && !e ? "" : e ? e.slug === "" ? "/" : `/${e.slug}` : o.startsWith("/") || o.startsWith("#") || /^[a-z][a-z\d+\-.]*:/i.test(o) ? o : t ? `/${o}` : o;
|
|
71
71
|
}
|
|
72
|
-
function
|
|
72
|
+
function mt(o) {
|
|
73
73
|
const t = (o ?? "").toLowerCase();
|
|
74
74
|
return t === "blank" || t === "_blank" || t.includes("new");
|
|
75
75
|
}
|
|
76
|
-
function
|
|
76
|
+
function Mo(o) {
|
|
77
77
|
const t = o.link;
|
|
78
78
|
if (t && typeof t == "object") {
|
|
79
|
-
const n =
|
|
79
|
+
const n = mt(t.target) ? "_blank" : void 0;
|
|
80
80
|
if (t.type === "url")
|
|
81
81
|
return { type: "url", value: t.value ?? t.url ?? "", target: n };
|
|
82
82
|
if (t.type === "anchor")
|
|
83
83
|
return { type: "anchor", value: t.value ?? "", target: n };
|
|
84
84
|
if (t.type === "page")
|
|
85
85
|
return { type: "page", value: t.value ?? "", target: n, anchor: t.anchor };
|
|
86
|
+
if (t.type === "file")
|
|
87
|
+
return { type: "file", value: t.value ?? "" };
|
|
86
88
|
if (typeof t.url == "string")
|
|
87
|
-
return { type: "url", value: t.url, target: n };
|
|
89
|
+
return { type: "url", value: t.url, target: n, download: typeof t.download == "string" ? t.download : void 0 };
|
|
88
90
|
}
|
|
89
|
-
const e =
|
|
91
|
+
const e = mt(o.openIn) ? "_blank" : void 0;
|
|
90
92
|
return o.mode === "url" ? { type: "url", value: o.url ?? "", target: e } : { type: "page", value: o.page ?? "", target: e, anchor: o.anchor };
|
|
91
93
|
}
|
|
92
94
|
function ta(o) {
|
|
93
95
|
return /^[a-z][a-z\d+\-.]*:/i.test(o) || o.startsWith("/") || o.startsWith("#") ? o : `https://${o}`;
|
|
94
96
|
}
|
|
95
|
-
function
|
|
96
|
-
const e = o.label || "Link", n =
|
|
97
|
+
function Wo(o, t) {
|
|
98
|
+
const e = o.label || "Link", n = Mo(o);
|
|
97
99
|
if (n.type === "url")
|
|
98
|
-
return { label: e, href: n.value, target: n.target };
|
|
100
|
+
return { label: e, href: n.value, target: n.target, download: n.download };
|
|
101
|
+
if (n.type === "file")
|
|
102
|
+
return { label: e, href: n.value ? "#" : "", target: "_blank" };
|
|
99
103
|
if (n.type === "anchor") {
|
|
100
104
|
const p = n.value.replace(/^#/, "");
|
|
101
105
|
return { label: e, href: p ? `#${p}` : "", target: n.target };
|
|
@@ -103,13 +107,13 @@ function Mo(o, t) {
|
|
|
103
107
|
const r = oa(n.value, t), c = (n.anchor ?? "").replace(/^#/, ""), g = c ? r ? `${r}#${c}` : `#${c}` : r;
|
|
104
108
|
return { label: e, href: g, target: n.target };
|
|
105
109
|
}
|
|
106
|
-
const
|
|
110
|
+
const _ = 24, I = _ * 0.125, Bt = _ * 0.125, Ro = (_ - (3 * I + 2 * Bt)) / 2, xt = I + Bt;
|
|
107
111
|
function ea({ className: o, lineClassName: t }) {
|
|
108
|
-
return /* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ L(
|
|
109
113
|
"svg",
|
|
110
114
|
{
|
|
111
115
|
className: o,
|
|
112
|
-
viewBox: `0 0 ${
|
|
116
|
+
viewBox: `0 0 ${_} ${_}`,
|
|
113
117
|
"aria-hidden": "true",
|
|
114
118
|
children: [
|
|
115
119
|
/* @__PURE__ */ s(
|
|
@@ -118,9 +122,9 @@ function ea({ className: o, lineClassName: t }) {
|
|
|
118
122
|
className: `${t} ${t}-top`,
|
|
119
123
|
x: "0",
|
|
120
124
|
y: Ro,
|
|
121
|
-
width:
|
|
122
|
-
height:
|
|
123
|
-
rx:
|
|
125
|
+
width: _,
|
|
126
|
+
height: I,
|
|
127
|
+
rx: I / 2
|
|
124
128
|
}
|
|
125
129
|
),
|
|
126
130
|
/* @__PURE__ */ s(
|
|
@@ -128,10 +132,10 @@ function ea({ className: o, lineClassName: t }) {
|
|
|
128
132
|
{
|
|
129
133
|
className: `${t} ${t}-mid`,
|
|
130
134
|
x: "0",
|
|
131
|
-
y: Ro +
|
|
132
|
-
width:
|
|
133
|
-
height:
|
|
134
|
-
rx:
|
|
135
|
+
y: Ro + xt,
|
|
136
|
+
width: _,
|
|
137
|
+
height: I,
|
|
138
|
+
rx: I / 2
|
|
135
139
|
}
|
|
136
140
|
),
|
|
137
141
|
/* @__PURE__ */ s(
|
|
@@ -139,10 +143,10 @@ function ea({ className: o, lineClassName: t }) {
|
|
|
139
143
|
{
|
|
140
144
|
className: `${t} ${t}-bot`,
|
|
141
145
|
x: "0",
|
|
142
|
-
y: Ro + 2 *
|
|
143
|
-
width:
|
|
144
|
-
height:
|
|
145
|
-
rx:
|
|
146
|
+
y: Ro + 2 * xt,
|
|
147
|
+
width: _,
|
|
148
|
+
height: I,
|
|
149
|
+
rx: I / 2
|
|
146
150
|
}
|
|
147
151
|
)
|
|
148
152
|
]
|
|
@@ -155,13 +159,13 @@ function na(o, t, e, n) {
|
|
|
155
159
|
function aa(o, t, e, n) {
|
|
156
160
|
const r = o ?? 0.01;
|
|
157
161
|
return t === void 0 || t >= r ? {} : {
|
|
158
|
-
[`--${e}-text-leading-gap`]:
|
|
162
|
+
[`--${e}-text-leading-gap`]: z((r - t) / 2, n)
|
|
159
163
|
};
|
|
160
164
|
}
|
|
161
165
|
const Ht = 4e-3;
|
|
162
|
-
let
|
|
166
|
+
let ro;
|
|
163
167
|
function ra() {
|
|
164
|
-
return
|
|
168
|
+
return ro !== void 0 ? ro : typeof document > "u" ? (ro = null, null) : (ro = document.createElement("canvas").getContext("2d"), ro);
|
|
165
169
|
}
|
|
166
170
|
function ia(o) {
|
|
167
171
|
const t = getComputedStyle(o), e = parseFloat(t.fontSize) || 0;
|
|
@@ -172,14 +176,14 @@ function ia(o) {
|
|
|
172
176
|
const r = n.measureText("H"), c = r.actualBoundingBoxAscent > 0 ? r.actualBoundingBoxAscent : 0, g = Math.max(0, r.actualBoundingBoxDescent || 0), p = r.fontBoundingBoxAscent || 0, d = r.fontBoundingBoxDescent || 0;
|
|
173
177
|
return c <= 0 || p <= 0 && d <= 0 ? 0 : (d - g - (p - c)) / 2 / e;
|
|
174
178
|
}
|
|
175
|
-
function
|
|
176
|
-
const [e, n] =
|
|
179
|
+
function kt(o, t) {
|
|
180
|
+
const [e, n] = R(0);
|
|
177
181
|
return mo(() => {
|
|
178
182
|
const r = o.current;
|
|
179
183
|
if (!r) return;
|
|
180
184
|
const c = () => {
|
|
181
185
|
const d = ia(r);
|
|
182
|
-
n((
|
|
186
|
+
n((m) => Math.abs(m - d) < Ht ? m : d);
|
|
183
187
|
};
|
|
184
188
|
c();
|
|
185
189
|
const g = document.fonts;
|
|
@@ -191,11 +195,11 @@ function xt(o, t) {
|
|
|
191
195
|
};
|
|
192
196
|
}, [o, t]), e;
|
|
193
197
|
}
|
|
194
|
-
function
|
|
198
|
+
function bt(o) {
|
|
195
199
|
if (!(Math.abs(o) < Ht))
|
|
196
200
|
return `translateY(${o}em)`;
|
|
197
201
|
}
|
|
198
|
-
function
|
|
202
|
+
function St(o) {
|
|
199
203
|
var t, e;
|
|
200
204
|
return [
|
|
201
205
|
o.fontFamily ?? "",
|
|
@@ -205,7 +209,7 @@ function bt(o) {
|
|
|
205
209
|
o.lineHeight ?? ""
|
|
206
210
|
].join("\0");
|
|
207
211
|
}
|
|
208
|
-
function
|
|
212
|
+
function yt(o) {
|
|
209
213
|
return {
|
|
210
214
|
fontFamily: o.fontFamily,
|
|
211
215
|
fontWeight: o.fontWeight,
|
|
@@ -220,7 +224,7 @@ function St(o) {
|
|
|
220
224
|
whiteSpace: "nowrap"
|
|
221
225
|
};
|
|
222
226
|
}
|
|
223
|
-
function
|
|
227
|
+
function wt(o, t = {}) {
|
|
224
228
|
return {
|
|
225
229
|
fontFamily: o.fontFamily ?? t.fontFamily,
|
|
226
230
|
fontSettings: o.fontSettings ?? t.fontSettings,
|
|
@@ -232,7 +236,7 @@ function yt(o, t = {}) {
|
|
|
232
236
|
textAppearance: o.textAppearance ?? t.textAppearance
|
|
233
237
|
};
|
|
234
238
|
}
|
|
235
|
-
function
|
|
239
|
+
function Lt(o, t, e) {
|
|
236
240
|
var r, c;
|
|
237
241
|
const n = {
|
|
238
242
|
fontSettings: {
|
|
@@ -261,14 +265,14 @@ function Ct(o, t, e) {
|
|
|
261
265
|
)
|
|
262
266
|
};
|
|
263
267
|
}
|
|
264
|
-
function
|
|
268
|
+
function Ct(o) {
|
|
265
269
|
const t = o.split(/\r?\n/);
|
|
266
|
-
return t.length === 1 ? o : t.map((e, n) => /* @__PURE__ */
|
|
270
|
+
return t.length === 1 ? o : t.map((e, n) => /* @__PURE__ */ L(_o, { children: [
|
|
267
271
|
e,
|
|
268
272
|
n < t.length - 1 ? /* @__PURE__ */ s("br", {}) : null
|
|
269
273
|
] }, n));
|
|
270
274
|
}
|
|
271
|
-
function
|
|
275
|
+
function Tt(o, t, e, n) {
|
|
272
276
|
const r = Math.max(0, e - n), c = o + t;
|
|
273
277
|
if (c <= r || c <= 0)
|
|
274
278
|
return { start: o, end: t };
|
|
@@ -279,16 +283,16 @@ function wt(o, t, e, n) {
|
|
|
279
283
|
};
|
|
280
284
|
}
|
|
281
285
|
function Ot(o) {
|
|
282
|
-
const e = Math.max(
|
|
286
|
+
const e = Math.max(W, o.fontSize ?? W), { start: n, end: r } = Tt(
|
|
283
287
|
o.textPaddingTop,
|
|
284
288
|
o.textPaddingBottom,
|
|
285
289
|
1,
|
|
286
290
|
e
|
|
287
|
-
), { start: c, end: g } =
|
|
291
|
+
), { start: c, end: g } = Tt(
|
|
288
292
|
o.textPaddingLeft,
|
|
289
293
|
o.textPaddingRight,
|
|
290
294
|
1,
|
|
291
|
-
|
|
295
|
+
W
|
|
292
296
|
);
|
|
293
297
|
return {
|
|
294
298
|
effectivePaddingLeft: c,
|
|
@@ -345,8 +349,8 @@ function Ft(o) {
|
|
|
345
349
|
const n = t.stateOverrides;
|
|
346
350
|
return n && (n.onScroll !== void 0 || n["onScroll-hover"] !== void 0) && (e.stateOverrides = { ...o.stateOverrides }, n.onScroll !== void 0 && ((r = o.stateOverrides) == null ? void 0 : r.compact) === void 0 && (e.stateOverrides.compact = n.onScroll), n["onScroll-hover"] !== void 0 && ((c = o.stateOverrides) == null ? void 0 : c["compact-hover"]) === void 0 && (e.stateOverrides["compact-hover"] = n["onScroll-hover"])), Object.keys(e).length === 0 ? o : { ...o, ...e };
|
|
347
351
|
}
|
|
348
|
-
function
|
|
349
|
-
var r, c, g, p, d,
|
|
352
|
+
function Nt(o) {
|
|
353
|
+
var r, c, g, p, d, m, C, B, b, a, $, H, Y, K, q, F;
|
|
350
354
|
o = Ft(o);
|
|
351
355
|
const t = o, e = {};
|
|
352
356
|
if (o.backgroundColor === void 0 && t.panelColor !== void 0 && (e.backgroundColor = t.panelColor), o.openFontFamily === void 0 && o.fontFamily !== void 0 && (e.openFontFamily = o.fontFamily), o.openFontSettings === void 0 && o.fontSettings !== void 0 && (e.openFontSettings = o.fontSettings), o.openFontSize === void 0 && o.fontSize !== void 0 && (e.openFontSize = o.fontSize), o.openLineHeight === void 0 && o.lineHeight !== void 0 && (e.openLineHeight = o.lineHeight), o.openLetterSpacing === void 0 && o.letterSpacing !== void 0 && (e.openLetterSpacing = o.letterSpacing), o.openWordSpacing === void 0 && o.wordSpacing !== void 0 && (e.openWordSpacing = o.wordSpacing), o.openTextAlign === void 0 && o.textAlign !== void 0 && (e.openTextAlign = o.textAlign), o.openTextAppearance === void 0 && o.textAppearance !== void 0 && (e.openTextAppearance = o.textAppearance), o.openLinkColor === void 0) {
|
|
@@ -354,30 +358,30 @@ function Tt(o) {
|
|
|
354
358
|
f !== void 0 && (e.openLinkColor = f);
|
|
355
359
|
}
|
|
356
360
|
if (o.compactIconColor === void 0) {
|
|
357
|
-
const f = ((
|
|
361
|
+
const f = ((m = (d = o.stateOverrides) == null ? void 0 : d.compact) == null ? void 0 : m.iconColor) ?? o.iconColor;
|
|
358
362
|
f !== void 0 && (e.compactIconColor = f);
|
|
359
363
|
}
|
|
360
364
|
if (o.compactLinkColor === void 0) {
|
|
361
|
-
const f = ((
|
|
365
|
+
const f = ((B = (C = o.stateOverrides) == null ? void 0 : C.compact) == null ? void 0 : B.linkColor) ?? o.linkColor;
|
|
362
366
|
f !== void 0 && (e.compactLinkColor = f);
|
|
363
367
|
}
|
|
364
368
|
if (o.compactLogoColor === void 0) {
|
|
365
|
-
const f = ((a = (
|
|
369
|
+
const f = ((a = (b = o.stateOverrides) == null ? void 0 : b.compact) == null ? void 0 : a.logoColor) ?? o.logoColor;
|
|
366
370
|
f !== void 0 && (e.compactLogoColor = f);
|
|
367
371
|
}
|
|
368
372
|
if (o.openLogoColor === void 0) {
|
|
369
|
-
const f = ((
|
|
373
|
+
const f = ((H = ($ = o.stateOverrides) == null ? void 0 : $.open) == null ? void 0 : H.logoColor) ?? o.logoColor;
|
|
370
374
|
f !== void 0 && (e.openLogoColor = f);
|
|
371
375
|
}
|
|
372
376
|
if (o.compactBackgroundColor === void 0) {
|
|
373
|
-
const f = ((
|
|
377
|
+
const f = ((K = (Y = o.stateOverrides) == null ? void 0 : Y.compact) == null ? void 0 : K.backgroundColor) ?? ((F = (q = t.stateOverrides) == null ? void 0 : q.compact) == null ? void 0 : F.panelColor) ?? t.compactPanelColor ?? t.onScrollPanelColor ?? o.backgroundColor ?? e.backgroundColor;
|
|
374
378
|
f !== void 0 && (e.compactBackgroundColor = f);
|
|
375
379
|
}
|
|
376
380
|
o.logoMaxHeight === void 0 && o.logoMaxWidth !== void 0 && (e.logoMaxHeight = o.logoMaxWidth), o.compactLogoMaxHeight === void 0 && o.compactLogoMaxWidth !== void 0 && (e.compactLogoMaxHeight = o.compactLogoMaxWidth);
|
|
377
|
-
const n = (f,
|
|
381
|
+
const n = (f, Z) => {
|
|
378
382
|
if (o[f] !== void 0) return;
|
|
379
|
-
const
|
|
380
|
-
|
|
383
|
+
const J = o[Z];
|
|
384
|
+
J !== void 0 && (e[f] = J);
|
|
381
385
|
};
|
|
382
386
|
return n("compactLogoMaxHeight", "logoMaxHeight"), n("compactLogoPosition", "logoPosition"), n("compactPanelHeight", "panelHeight"), n("compactShowIcon", "showIcon"), n("compactIconSize", "iconSize"), n("compactNavTextWidth", "navTextWidth"), n("compactNavTextPosition", "navTextPosition"), n("compactNavTextOffset", "navTextOffset"), n("compactNavGap", "navGap"), n("compactNavPaddingLeft", "navPaddingLeft"), n("compactNavPaddingRight", "navPaddingRight"), n("compactFontFamily", "fontFamily"), n("compactFontSettings", "fontSettings"), n("compactFontSize", "fontSize"), n("compactLineHeight", "lineHeight"), n("compactLetterSpacing", "letterSpacing"), n("compactWordSpacing", "wordSpacing"), n("compactTextAlign", "textAlign"), n("compactTextAppearance", "textAppearance"), Object.keys(e).length === 0 ? o : { ...o, ...e };
|
|
383
387
|
}
|
|
@@ -393,15 +397,15 @@ function ga(o, t) {
|
|
|
393
397
|
}
|
|
394
398
|
function fa(o, t) {
|
|
395
399
|
return {
|
|
396
|
-
paddingLeft:
|
|
397
|
-
paddingRight:
|
|
398
|
-
paddingTop:
|
|
399
|
-
paddingBottom:
|
|
400
|
+
paddingLeft: z(o.effectivePaddingLeft, t),
|
|
401
|
+
paddingRight: z(o.effectivePaddingRight, t),
|
|
402
|
+
paddingTop: z(o.effectivePaddingTop, t),
|
|
403
|
+
paddingBottom: z(o.effectivePaddingBottom, t)
|
|
400
404
|
};
|
|
401
405
|
}
|
|
402
406
|
function pa(o, t, e, n) {
|
|
403
|
-
const r = Math.max(
|
|
404
|
-
return /* @__PURE__ */
|
|
407
|
+
const r = Math.max(W, e ?? W), c = Math.max(t.effectivePaddingTop, X), g = Math.max(t.effectivePaddingBottom, X), p = Math.max(0, t.panelSize - t.effectivePaddingBottom - r), d = Math.max(0, t.panelSize - t.effectivePaddingTop - r), m = Math.max(t.effectivePaddingLeft, X), C = Math.max(t.effectivePaddingRight, X), B = Math.max(0, t.panelSize - t.effectivePaddingRight - W), b = Math.max(0, t.panelSize - t.effectivePaddingLeft - W);
|
|
408
|
+
return /* @__PURE__ */ L(In, { children: [
|
|
405
409
|
/* @__PURE__ */ s(
|
|
406
410
|
"div",
|
|
407
411
|
{
|
|
@@ -434,9 +438,9 @@ function pa(o, t, e, n) {
|
|
|
434
438
|
"data-controls-axis": "x",
|
|
435
439
|
"data-controls-variant": "column-padding",
|
|
436
440
|
"data-controls-min": "0",
|
|
437
|
-
"data-controls-max-fraction": String(
|
|
441
|
+
"data-controls-max-fraction": String(B),
|
|
438
442
|
className: `${o}-control-anchor`,
|
|
439
|
-
style: { top: 0, left: 0, width: n(
|
|
443
|
+
style: { top: 0, left: 0, width: n(m), height: "100%" }
|
|
440
444
|
}
|
|
441
445
|
),
|
|
442
446
|
/* @__PURE__ */ s(
|
|
@@ -447,9 +451,9 @@ function pa(o, t, e, n) {
|
|
|
447
451
|
"data-controls-variant": "column-padding",
|
|
448
452
|
"data-controls-reverse": "",
|
|
449
453
|
"data-controls-min": "0",
|
|
450
|
-
"data-controls-max-fraction": String(
|
|
454
|
+
"data-controls-max-fraction": String(b),
|
|
451
455
|
className: `${o}-control-anchor`,
|
|
452
|
-
style: { top: 0, right: 0, width: n(
|
|
456
|
+
style: { top: 0, right: 0, width: n(C), height: "100%" }
|
|
453
457
|
}
|
|
454
458
|
)
|
|
455
459
|
] });
|
|
@@ -508,7 +512,7 @@ function ma(o) {
|
|
|
508
512
|
background: none;
|
|
509
513
|
cursor: pointer;
|
|
510
514
|
color: var(--${o}-icon-color);
|
|
511
|
-
transition: color ${
|
|
515
|
+
transition: color ${w}ms ease;
|
|
512
516
|
line-height: 0;
|
|
513
517
|
font-size: 0;
|
|
514
518
|
-webkit-appearance: none;
|
|
@@ -528,7 +532,7 @@ function ma(o) {
|
|
|
528
532
|
fill: currentColor;
|
|
529
533
|
transform-box: fill-box;
|
|
530
534
|
transform-origin: center;
|
|
531
|
-
transition: transform ${
|
|
535
|
+
transition: transform ${w}ms ease, opacity ${w}ms ease;
|
|
532
536
|
}
|
|
533
537
|
.${o}-root.${o}-open .${o}-icon-line-top {
|
|
534
538
|
transform: translateY(200%) rotate(45deg);
|
|
@@ -583,7 +587,7 @@ function ma(o) {
|
|
|
583
587
|
margin: 0;
|
|
584
588
|
background-color: var(--${o}-overlay-color);
|
|
585
589
|
opacity: 0;
|
|
586
|
-
transition: opacity ${
|
|
590
|
+
transition: opacity ${w}ms ease, background-color ${w}ms ease;
|
|
587
591
|
}
|
|
588
592
|
.${o}-lightbox.${o}-lightbox-active .${o}-backdrop {
|
|
589
593
|
opacity: 1;
|
|
@@ -598,7 +602,7 @@ function ma(o) {
|
|
|
598
602
|
flex-direction: column;
|
|
599
603
|
overflow-y: auto;
|
|
600
604
|
background-color: var(--${o}-menu-background-color);
|
|
601
|
-
transition: transform ${
|
|
605
|
+
transition: transform ${w}ms ease, opacity ${w}ms ease, background-color ${w}ms ease;
|
|
602
606
|
box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
|
|
603
607
|
}
|
|
604
608
|
.${o}-full-lightbox .${o}-panel {
|
|
@@ -1093,7 +1097,7 @@ function ma(o) {
|
|
|
1093
1097
|
}
|
|
1094
1098
|
.${o}-nav-state-anim .${o}-nav-bar {
|
|
1095
1099
|
transition:
|
|
1096
|
-
background-color ${
|
|
1100
|
+
background-color ${w}ms ease,
|
|
1097
1101
|
height ${v}ms ease,
|
|
1098
1102
|
min-height ${v}ms ease,
|
|
1099
1103
|
padding ${v}ms ease,
|
|
@@ -1131,8 +1135,8 @@ function ma(o) {
|
|
|
1131
1135
|
}
|
|
1132
1136
|
.${o}-nav-state-anim .${o}-icon-line {
|
|
1133
1137
|
transition:
|
|
1134
|
-
transform ${
|
|
1135
|
-
opacity ${
|
|
1138
|
+
transform ${w}ms ease,
|
|
1139
|
+
opacity ${w}ms ease;
|
|
1136
1140
|
}
|
|
1137
1141
|
.${o}-nav-state-anim .${o}-nav-link,
|
|
1138
1142
|
.${o}-nav-state-anim .${o}-link,
|
|
@@ -1148,13 +1152,13 @@ function ma(o) {
|
|
|
1148
1152
|
}
|
|
1149
1153
|
`;
|
|
1150
1154
|
}
|
|
1151
|
-
function
|
|
1155
|
+
function Eo(o) {
|
|
1152
1156
|
return o ? !o.startsWith("http://") && !o.startsWith("https://") && !o.startsWith("blob:") && !o.startsWith("data:") : !1;
|
|
1153
1157
|
}
|
|
1154
1158
|
function xa(o, t) {
|
|
1155
1159
|
var n;
|
|
1156
1160
|
const e = (n = o.logo) == null ? void 0 : n.icon;
|
|
1157
|
-
return !o.logo ||
|
|
1161
|
+
return !o.logo || Eo(e) || !t ? o : {
|
|
1158
1162
|
...o,
|
|
1159
1163
|
logo: {
|
|
1160
1164
|
...o.logo,
|
|
@@ -1170,8 +1174,8 @@ function ba(o) {
|
|
|
1170
1174
|
return t.startsWith("data:image/svg+xml") || t.includes("image/svg+xml") ? !0 : t.includes(".svg");
|
|
1171
1175
|
}
|
|
1172
1176
|
function Sa(o) {
|
|
1173
|
-
const t = ba(o), [e, n] =
|
|
1174
|
-
return
|
|
1177
|
+
const t = ba(o), [e, n] = R(!1);
|
|
1178
|
+
return A(() => {
|
|
1175
1179
|
if (t || !o.startsWith("blob:")) {
|
|
1176
1180
|
n(!1);
|
|
1177
1181
|
return;
|
|
@@ -1197,13 +1201,13 @@ function Sa(o) {
|
|
|
1197
1201
|
}, [t, o]), t || e;
|
|
1198
1202
|
}
|
|
1199
1203
|
function ya(o, t) {
|
|
1200
|
-
const [e, n] =
|
|
1201
|
-
return
|
|
1204
|
+
const [e, n] = R(ut(o) ? o : null);
|
|
1205
|
+
return A(() => {
|
|
1202
1206
|
if (!t || !o) {
|
|
1203
1207
|
n(null);
|
|
1204
1208
|
return;
|
|
1205
1209
|
}
|
|
1206
|
-
if (
|
|
1210
|
+
if (ut(o)) {
|
|
1207
1211
|
n(o);
|
|
1208
1212
|
return;
|
|
1209
1213
|
}
|
|
@@ -1217,7 +1221,7 @@ function ya(o, t) {
|
|
|
1217
1221
|
};
|
|
1218
1222
|
}, [t, o]), t ? e : null;
|
|
1219
1223
|
}
|
|
1220
|
-
function
|
|
1224
|
+
function wa(o) {
|
|
1221
1225
|
const t = o.indexOf("#");
|
|
1222
1226
|
if (t === -1) return "";
|
|
1223
1227
|
try {
|
|
@@ -1239,38 +1243,55 @@ function It(o) {
|
|
|
1239
1243
|
const t = document.getElementById(o), e = document.querySelector(`[data-section-id="${CSS.escape(o)}"]`), n = t ?? e;
|
|
1240
1244
|
return n instanceof HTMLElement ? n : null;
|
|
1241
1245
|
}
|
|
1242
|
-
function
|
|
1246
|
+
function Ca(o, t) {
|
|
1247
|
+
fetch(o).then((e) => {
|
|
1248
|
+
if (!e.ok) throw new Error(`Could not download ${o}: ${e.status}`);
|
|
1249
|
+
return e.blob();
|
|
1250
|
+
}).then((e) => {
|
|
1251
|
+
const n = URL.createObjectURL(e), r = document.createElement("a");
|
|
1252
|
+
r.href = n, r.download = t || decodeURIComponent(o.split("?")[0].split("/").pop() ?? ""), document.body.appendChild(r), r.click(), r.remove(), window.setTimeout(() => URL.revokeObjectURL(n), 0);
|
|
1253
|
+
}).catch(() => {
|
|
1254
|
+
window.location.assign(o);
|
|
1255
|
+
});
|
|
1256
|
+
}
|
|
1257
|
+
function At(o) {
|
|
1243
1258
|
const t = It(o);
|
|
1244
1259
|
return t ? (t.scrollIntoView({ behavior: "smooth", block: "start" }), !0) : !1;
|
|
1245
1260
|
}
|
|
1246
|
-
function
|
|
1247
|
-
const { isEditor: n, isPreviewMode: r, item: c, pages: g, onLinkNavigate: p } = e, d = e.runAfterClose ?? ((
|
|
1261
|
+
function Ta(o, t, e = {}) {
|
|
1262
|
+
const { isEditor: n, isPreviewMode: r, item: c, pages: g, onLinkNavigate: p } = e, d = e.runAfterClose ?? ((a) => a()), m = o.currentTarget.getAttribute("href") ?? "", C = wa(m), B = o.currentTarget.target === "_blank";
|
|
1248
1263
|
if (c && p) {
|
|
1249
1264
|
o.preventDefault(), o.stopPropagation();
|
|
1250
|
-
const
|
|
1251
|
-
mode:
|
|
1252
|
-
href:
|
|
1253
|
-
page:
|
|
1254
|
-
url:
|
|
1255
|
-
|
|
1256
|
-
|
|
1265
|
+
const a = Wo(c, g), $ = Mo(c), H = {
|
|
1266
|
+
mode: $.type === "url" || $.type === "file" ? $.type : "page",
|
|
1267
|
+
href: a.href || m,
|
|
1268
|
+
page: $.type === "page" ? $.value : void 0,
|
|
1269
|
+
url: $.type === "url" ? $.value : void 0,
|
|
1270
|
+
file: $.type === "file" ? $.value : void 0,
|
|
1271
|
+
anchor: $.type === "anchor" ? $.value.replace(/^#/, "") : ($.anchor ?? "").replace(/^#/, ""),
|
|
1272
|
+
target: a.target
|
|
1257
1273
|
};
|
|
1258
|
-
|
|
1274
|
+
H.target === "_blank" ? p(H) : d(() => p(H)), t();
|
|
1259
1275
|
return;
|
|
1260
1276
|
}
|
|
1261
1277
|
if (n) {
|
|
1262
|
-
o.preventDefault(), d(() =>
|
|
1278
|
+
o.preventDefault(), d(() => At(C)), t();
|
|
1279
|
+
return;
|
|
1280
|
+
}
|
|
1281
|
+
const b = c ? Mo(c).download : void 0;
|
|
1282
|
+
if (b !== void 0 && m && !o.metaKey && !o.ctrlKey && !o.shiftKey && !o.altKey) {
|
|
1283
|
+
o.preventDefault(), Ca(m, b), t();
|
|
1263
1284
|
return;
|
|
1264
1285
|
}
|
|
1265
|
-
!
|
|
1286
|
+
!B && C && La(m) && It(C) && (o.preventDefault(), d(() => At(C))), t();
|
|
1266
1287
|
}
|
|
1267
|
-
const
|
|
1288
|
+
const Na = [
|
|
1268
1289
|
"--cntrl-article-width",
|
|
1269
1290
|
"--cntrl-article-top",
|
|
1270
1291
|
"--cntrl-article-left",
|
|
1271
1292
|
"--cntrl-viewport-height"
|
|
1272
1293
|
];
|
|
1273
|
-
function
|
|
1294
|
+
function Aa(o) {
|
|
1274
1295
|
let t = o;
|
|
1275
1296
|
for (; t; ) {
|
|
1276
1297
|
if (getComputedStyle(t).getPropertyValue("--cntrl-article-width").trim())
|
|
@@ -1279,17 +1300,17 @@ function Na(o) {
|
|
|
1279
1300
|
}
|
|
1280
1301
|
return o;
|
|
1281
1302
|
}
|
|
1282
|
-
function
|
|
1283
|
-
const t = {}, e =
|
|
1303
|
+
function za(o) {
|
|
1304
|
+
const t = {}, e = Aa(o);
|
|
1284
1305
|
if (!e) return t;
|
|
1285
1306
|
const n = getComputedStyle(e);
|
|
1286
|
-
for (const r of
|
|
1307
|
+
for (const r of Na) {
|
|
1287
1308
|
const c = n.getPropertyValue(r).trim();
|
|
1288
1309
|
c && (t[r] = c);
|
|
1289
1310
|
}
|
|
1290
1311
|
return t;
|
|
1291
1312
|
}
|
|
1292
|
-
function
|
|
1313
|
+
function zt(o, t, e, n, r) {
|
|
1293
1314
|
return /* @__PURE__ */ s(
|
|
1294
1315
|
"span",
|
|
1295
1316
|
{
|
|
@@ -1306,7 +1327,7 @@ function At(o, t, e, n, r) {
|
|
|
1306
1327
|
}
|
|
1307
1328
|
);
|
|
1308
1329
|
}
|
|
1309
|
-
function
|
|
1330
|
+
function Ea({
|
|
1310
1331
|
settings: o,
|
|
1311
1332
|
isEditor: t,
|
|
1312
1333
|
isEditMode: e,
|
|
@@ -1316,28 +1337,28 @@ function Wa({
|
|
|
1316
1337
|
isSwitchClone: g = !1,
|
|
1317
1338
|
unavailableStates: p = [],
|
|
1318
1339
|
layoutId: d,
|
|
1319
|
-
pages:
|
|
1320
|
-
onLinkNavigate:
|
|
1321
|
-
onUpdateSettings:
|
|
1322
|
-
onOpenChange:
|
|
1340
|
+
pages: m,
|
|
1341
|
+
onLinkNavigate: C,
|
|
1342
|
+
onUpdateSettings: B,
|
|
1343
|
+
onOpenChange: b
|
|
1323
1344
|
}) {
|
|
1324
|
-
var
|
|
1325
|
-
const { prefix: a } = _n(),
|
|
1326
|
-
Mn(
|
|
1345
|
+
var ht, $t;
|
|
1346
|
+
const { prefix: a } = _n(), $ = y(null), H = y(null), Y = y(null), K = y(null), q = y(null), F = y(0), f = y(null), Z = y(null), J = y(d), Rt = uo(() => ma(a), [a]), [_t, Q] = R(!1), [E, xo] = R(!1), [Uo, io] = R(!1), M = Vn(c), Mt = uo(() => new Set(p), [p]), ko = (i) => !!(i && Mt.has(i)), Do = Qn(o.link, d), Wt = !!(t && !n && M === "open" && !ko("open")), h = Do && (Wt || !(t && !n) && _t), bo = !!(t && !n), P = h && !bo;
|
|
1347
|
+
Mn(P), A(() => {
|
|
1327
1348
|
if (!h || !bo) return;
|
|
1328
1349
|
const i = document.documentElement, l = i.style.overflow;
|
|
1329
1350
|
return i.style.overflow = "hidden", () => {
|
|
1330
1351
|
i.style.overflow = l;
|
|
1331
1352
|
};
|
|
1332
1353
|
}, [h, bo]);
|
|
1333
|
-
const Et = !ko("compact") && !ko("onScroll"), Gt = !t || !!n && !e,
|
|
1334
|
-
|
|
1335
|
-
const
|
|
1336
|
-
logo:
|
|
1337
|
-
logoLink:
|
|
1338
|
-
logoMaxHeight:
|
|
1339
|
-
logoPosition:
|
|
1340
|
-
panelHeight:
|
|
1354
|
+
const Et = !ko("compact") && !ko("onScroll"), Gt = !t || !!n && !e, co = r && r !== "default" ? r : void 0, T = Et && M === "compact" ? "compact" : "default", [jo, Ut] = R(T), [So, Vo] = R(!1), Xo = !e;
|
|
1355
|
+
T !== jo && (Ut(T), Xo && Vo(!0));
|
|
1356
|
+
const Dt = Ft(o), {
|
|
1357
|
+
logo: G,
|
|
1358
|
+
logoLink: Yo = "",
|
|
1359
|
+
logoMaxHeight: jt = 120 / 1440,
|
|
1360
|
+
logoPosition: Vt = "left",
|
|
1361
|
+
panelHeight: Ko = 60 / 1440,
|
|
1341
1362
|
backgroundColor: Xt = "#b3b3b3",
|
|
1342
1363
|
logoColor: Yt = "#000000",
|
|
1343
1364
|
position: Kt,
|
|
@@ -1370,25 +1391,25 @@ function Wa({
|
|
|
1370
1391
|
compactLetterSpacing: be = 0,
|
|
1371
1392
|
compactWordSpacing: Se = 0,
|
|
1372
1393
|
compactTextAlign: ye = "left",
|
|
1373
|
-
compactTextAppearance:
|
|
1394
|
+
compactTextAppearance: we,
|
|
1374
1395
|
openLogoColor: Le = "#000000",
|
|
1375
|
-
menuBackgroundColor:
|
|
1376
|
-
overlayColor:
|
|
1396
|
+
menuBackgroundColor: qo = "#ffffff",
|
|
1397
|
+
overlayColor: Ce = "rgba(0, 0, 0, 0.45)",
|
|
1377
1398
|
closeButtonColor: Te = "#000000",
|
|
1378
1399
|
effect: yo = "fade",
|
|
1379
|
-
openPanelSize:
|
|
1380
|
-
textWidth:
|
|
1400
|
+
openPanelSize: Zo = 100,
|
|
1401
|
+
textWidth: Jo = 280 / 1440,
|
|
1381
1402
|
navTextWidth: Ne,
|
|
1382
1403
|
navTextPosition: Ae = "center",
|
|
1383
1404
|
navTextOffset: ze = 0,
|
|
1384
|
-
gap:
|
|
1405
|
+
gap: Qo = 0,
|
|
1385
1406
|
navGap: Be,
|
|
1386
1407
|
navPaddingLeft: He = 10 / 1440,
|
|
1387
1408
|
navPaddingRight: Oe = 10 / 1440,
|
|
1388
|
-
textPaddingLeft:
|
|
1389
|
-
textPaddingRight:
|
|
1390
|
-
textPaddingTop:
|
|
1391
|
-
textPaddingBottom:
|
|
1409
|
+
textPaddingLeft: Po = 10 / 1440,
|
|
1410
|
+
textPaddingRight: ot = 10 / 1440,
|
|
1411
|
+
textPaddingTop: tt = 10 / 1440,
|
|
1412
|
+
textPaddingBottom: et = 10 / 1440,
|
|
1392
1413
|
fontFamily: Fe,
|
|
1393
1414
|
fontSettings: Ie,
|
|
1394
1415
|
fontSize: Re,
|
|
@@ -1397,21 +1418,21 @@ function Wa({
|
|
|
1397
1418
|
wordSpacing: We = 0,
|
|
1398
1419
|
textAlign: Ee = "left",
|
|
1399
1420
|
textAppearance: Ge,
|
|
1400
|
-
openFontFamily:
|
|
1401
|
-
openFontSettings:
|
|
1402
|
-
openFontSize:
|
|
1403
|
-
openLineHeight:
|
|
1421
|
+
openFontFamily: Ue,
|
|
1422
|
+
openFontSettings: De,
|
|
1423
|
+
openFontSize: je,
|
|
1424
|
+
openLineHeight: Ve,
|
|
1404
1425
|
openLetterSpacing: Xe,
|
|
1405
1426
|
openWordSpacing: Ye,
|
|
1406
1427
|
openTextAlign: Ke,
|
|
1407
1428
|
openTextAppearance: qe,
|
|
1408
|
-
stateOverrides:
|
|
1409
|
-
link:
|
|
1410
|
-
} =
|
|
1429
|
+
stateOverrides: nt,
|
|
1430
|
+
link: at
|
|
1431
|
+
} = Dt, { horizontalAlign: Ze, verticalAlign: Je } = la({
|
|
1411
1432
|
position: Kt,
|
|
1412
1433
|
horizontalAlign: qt,
|
|
1413
1434
|
verticalAlign: Zt
|
|
1414
|
-
}), x =
|
|
1435
|
+
}), x = T === "compact", Qe = x ? ie : jt, lo = Xn(x ? ce : Vt), so = x ? le : Ko, wo = x ? de : Pt, Pe = x ? ge : Ne, rt = Yn(x ? fe : Ae), on = (x ? pe : ze) ?? 0, tn = x ? ve : Be, it = x ? he : He, ct = x ? $e : Oe, en = Pe ?? Jo, nn = h || Do && (x ? se : Qt) !== "off", Lo = Rn(a, {
|
|
1415
1436
|
iconColor: Jt,
|
|
1416
1437
|
closeButtonColor: Te,
|
|
1417
1438
|
linkColor: oe,
|
|
@@ -1421,11 +1442,11 @@ function Wa({
|
|
|
1421
1442
|
compactLogoColor: ae,
|
|
1422
1443
|
compactBackgroundColor: re,
|
|
1423
1444
|
openLogoColor: Le,
|
|
1424
|
-
menuBackgroundColor:
|
|
1425
|
-
overlayColor:
|
|
1445
|
+
menuBackgroundColor: qo,
|
|
1446
|
+
overlayColor: Ce,
|
|
1426
1447
|
backgroundColor: Xt,
|
|
1427
1448
|
logoColor: Yt
|
|
1428
|
-
}, va, ha,
|
|
1449
|
+
}, va, ha, nt), Co = wt(x ? {
|
|
1429
1450
|
fontFamily: ue,
|
|
1430
1451
|
fontSettings: me,
|
|
1431
1452
|
fontSize: xe,
|
|
@@ -1433,7 +1454,7 @@ function Wa({
|
|
|
1433
1454
|
letterSpacing: be,
|
|
1434
1455
|
wordSpacing: Se,
|
|
1435
1456
|
textAlign: ye,
|
|
1436
|
-
textAppearance:
|
|
1457
|
+
textAppearance: we
|
|
1437
1458
|
} : {
|
|
1438
1459
|
fontFamily: Fe,
|
|
1439
1460
|
fontSettings: Ie,
|
|
@@ -1443,213 +1464,214 @@ function Wa({
|
|
|
1443
1464
|
wordSpacing: We,
|
|
1444
1465
|
textAlign: Ee,
|
|
1445
1466
|
textAppearance: Ge
|
|
1446
|
-
}),
|
|
1447
|
-
fontFamily:
|
|
1448
|
-
fontSettings:
|
|
1449
|
-
fontSize:
|
|
1450
|
-
lineHeight:
|
|
1467
|
+
}), oo = wt({
|
|
1468
|
+
fontFamily: Ue,
|
|
1469
|
+
fontSettings: De,
|
|
1470
|
+
fontSize: je,
|
|
1471
|
+
lineHeight: Ve,
|
|
1451
1472
|
letterSpacing: Xe,
|
|
1452
1473
|
wordSpacing: Ye,
|
|
1453
1474
|
textAlign: Ke,
|
|
1454
1475
|
textAppearance: qe
|
|
1455
|
-
},
|
|
1476
|
+
}, Co), To = Lt(a, Co, t), No = Lt(a, oo, t), an = kt(Y, St(Co)), rn = kt(K, St(oo)), cn = {
|
|
1456
1477
|
...No.css,
|
|
1457
1478
|
whiteSpace: "pre-wrap",
|
|
1458
|
-
transform:
|
|
1459
|
-
}, ln = No.className,
|
|
1479
|
+
transform: bt(rn)
|
|
1480
|
+
}, ln = No.className, O = (i) => z(i, t), sn = tn ?? Qo, dn = Math.max(it, X), gn = Math.max(ct, X), fn = Math.max(0, 1 - wo), pn = Math.max(0, 1 - wo), go = e ?? !1, fo = go && !h, lt = uo(
|
|
1460
1481
|
() => Ot({
|
|
1461
|
-
textPaddingLeft:
|
|
1462
|
-
textPaddingRight:
|
|
1463
|
-
textPaddingTop:
|
|
1464
|
-
textPaddingBottom:
|
|
1465
|
-
fontSize:
|
|
1482
|
+
textPaddingLeft: Po,
|
|
1483
|
+
textPaddingRight: ot,
|
|
1484
|
+
textPaddingTop: tt,
|
|
1485
|
+
textPaddingBottom: et,
|
|
1486
|
+
fontSize: oo.fontSize
|
|
1466
1487
|
}),
|
|
1467
1488
|
[
|
|
1468
|
-
Qo,
|
|
1469
1489
|
Po,
|
|
1470
1490
|
ot,
|
|
1471
1491
|
tt,
|
|
1472
|
-
|
|
1492
|
+
et,
|
|
1493
|
+
oo.fontSize
|
|
1473
1494
|
]
|
|
1474
|
-
),
|
|
1475
|
-
const l = /* @__PURE__ */ s("span", { className: ln, style: cn, children:
|
|
1476
|
-
return
|
|
1495
|
+
), st = (i) => {
|
|
1496
|
+
const l = /* @__PURE__ */ s("span", { className: ln, style: cn, children: Ct(i) });
|
|
1497
|
+
return zt(
|
|
1477
1498
|
a,
|
|
1478
1499
|
l,
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1500
|
+
Jo,
|
|
1501
|
+
go,
|
|
1502
|
+
O
|
|
1482
1503
|
);
|
|
1483
|
-
}, vn = yo === "left" || yo === "right" ? { width: `${
|
|
1484
|
-
...fa(
|
|
1504
|
+
}, vn = yo === "left" || yo === "right" ? { width: `${Zo}%` } : { height: `${Zo}%` }, hn = {
|
|
1505
|
+
...fa(lt, t),
|
|
1485
1506
|
...vn,
|
|
1486
1507
|
alignItems: ua[Ze],
|
|
1487
1508
|
justifyContent: $a[Je]
|
|
1488
|
-
},
|
|
1489
|
-
|
|
1490
|
-
var
|
|
1491
|
-
if (!
|
|
1492
|
-
|
|
1509
|
+
}, to = y(o), po = y(d), Ao = y(null);
|
|
1510
|
+
Eo((ht = o.logo) == null ? void 0 : ht.icon) && (Ao.current = o.logo.icon), A(() => {
|
|
1511
|
+
var j;
|
|
1512
|
+
if (!B || !t) {
|
|
1513
|
+
to.current = o, po.current = d;
|
|
1493
1514
|
return;
|
|
1494
1515
|
}
|
|
1495
|
-
const i = (
|
|
1496
|
-
if (o.logo && !
|
|
1497
|
-
|
|
1516
|
+
const i = (j = o.logo) == null ? void 0 : j.icon;
|
|
1517
|
+
if (o.logo && !Eo(i) && !Ao.current) {
|
|
1518
|
+
to.current = o, po.current = d;
|
|
1498
1519
|
return;
|
|
1499
1520
|
}
|
|
1500
|
-
const l = (
|
|
1501
|
-
|
|
1521
|
+
const l = (V) => {
|
|
1522
|
+
B(xa(V, Ao.current));
|
|
1502
1523
|
};
|
|
1503
|
-
if (
|
|
1504
|
-
|
|
1505
|
-
const
|
|
1506
|
-
|
|
1524
|
+
if (po.current !== d) {
|
|
1525
|
+
to.current = o, po.current = d;
|
|
1526
|
+
const V = Nt(o);
|
|
1527
|
+
V !== o && l(V);
|
|
1507
1528
|
return;
|
|
1508
1529
|
}
|
|
1509
|
-
const
|
|
1510
|
-
|
|
1511
|
-
const
|
|
1512
|
-
!
|
|
1513
|
-
}, [o,
|
|
1514
|
-
const
|
|
1515
|
-
width:
|
|
1516
|
-
height:
|
|
1517
|
-
minWidth:
|
|
1518
|
-
minHeight:
|
|
1519
|
-
maxWidth:
|
|
1520
|
-
maxHeight:
|
|
1530
|
+
const u = Nt(o), k = to.current, S = k !== o, N = S ? ga(u, k) : u;
|
|
1531
|
+
to.current = o;
|
|
1532
|
+
const ao = u !== o, D = S && sa(u, N);
|
|
1533
|
+
!ao && !D || l(N);
|
|
1534
|
+
}, [o, B, t, d]);
|
|
1535
|
+
const U = z(wo, t), $n = {
|
|
1536
|
+
width: U,
|
|
1537
|
+
height: U,
|
|
1538
|
+
minWidth: U,
|
|
1539
|
+
minHeight: U,
|
|
1540
|
+
maxWidth: U,
|
|
1541
|
+
maxHeight: U
|
|
1521
1542
|
}, un = {
|
|
1522
1543
|
...To.css,
|
|
1523
1544
|
textDecoration: "none",
|
|
1524
|
-
transform:
|
|
1525
|
-
}, mn = To.className,
|
|
1526
|
-
|
|
1527
|
-
h ||
|
|
1528
|
-
|
|
1529
|
-
].filter(Boolean).join(" "), Sn = t && !n ? `${a}-editor` : "",
|
|
1530
|
-
() =>
|
|
1531
|
-
[
|
|
1545
|
+
transform: bt(an)
|
|
1546
|
+
}, mn = To.className, dt = (G == null ? void 0 : G.mode) !== "Off", eo = (G == null ? void 0 : G.icon) ?? "", xn = Sa(eo), no = ya(eo, xn), vo = !!no, kn = O(Math.min(Qe, so)), bn = !!(dt && eo && lo === "right"), zo = Yo.trim() ? { link: { type: "url", value: ta(Yo.trim()), target: "self" } } : null, Bo = bn ? "left" : "right", gt = Array.isArray(at) ? at : [], Ho = [
|
|
1547
|
+
T !== "default" ? `${a}-state-${T}` : "",
|
|
1548
|
+
h || M === "open" ? `${a}-state-open` : "",
|
|
1549
|
+
co && co !== T && co !== M ? `${a}-state-${co}` : ""
|
|
1550
|
+
].filter(Boolean).join(" "), Sn = t && !n ? `${a}-editor` : "", ft = Gt ? `${a}-interactive` : "", yn = Xo && (T !== jo || So) ? `${a}-nav-state-anim` : "", wn = h ? `${a}-open` : "", Ln = uo(
|
|
1551
|
+
() => za($.current),
|
|
1552
|
+
[E, h, d]
|
|
1532
1553
|
), Oo = () => {
|
|
1533
|
-
|
|
1534
|
-
}, Fo = !t || n,
|
|
1535
|
-
if (
|
|
1536
|
-
|
|
1554
|
+
Q(!1);
|
|
1555
|
+
}, Fo = !t || n, Cn = (i) => {
|
|
1556
|
+
if (P) {
|
|
1557
|
+
Z.current = i;
|
|
1537
1558
|
return;
|
|
1538
1559
|
}
|
|
1539
1560
|
i();
|
|
1540
1561
|
};
|
|
1541
|
-
|
|
1562
|
+
A(() => {
|
|
1542
1563
|
if (h) return;
|
|
1543
|
-
const i =
|
|
1544
|
-
|
|
1564
|
+
const i = Z.current;
|
|
1565
|
+
Z.current = null, i == null || i();
|
|
1545
1566
|
}, [h]);
|
|
1546
1567
|
const Io = (i, l) => {
|
|
1547
|
-
|
|
1568
|
+
Ta(i, Oo, {
|
|
1548
1569
|
isEditor: t,
|
|
1549
1570
|
isPreviewMode: n,
|
|
1550
1571
|
item: l,
|
|
1551
|
-
pages:
|
|
1552
|
-
onLinkNavigate:
|
|
1553
|
-
runAfterClose:
|
|
1572
|
+
pages: m,
|
|
1573
|
+
onLinkNavigate: C,
|
|
1574
|
+
runAfterClose: Cn
|
|
1554
1575
|
});
|
|
1555
1576
|
}, Tn = () => {
|
|
1556
|
-
t && !n ||
|
|
1577
|
+
t && !n || Q((i) => !i);
|
|
1557
1578
|
}, Nn = (i) => {
|
|
1558
1579
|
i.pointerType === "touch" && i.currentTarget.blur();
|
|
1559
|
-
},
|
|
1580
|
+
}, ho = () => {
|
|
1560
1581
|
f.current !== null && (window.clearTimeout(f.current), f.current = null);
|
|
1561
1582
|
};
|
|
1562
|
-
|
|
1583
|
+
A(() => {
|
|
1563
1584
|
if (!So) return;
|
|
1564
1585
|
const i = window.setTimeout(() => {
|
|
1565
1586
|
Vo(!1);
|
|
1566
1587
|
}, v);
|
|
1567
1588
|
return () => window.clearTimeout(i);
|
|
1568
|
-
}, [So,
|
|
1589
|
+
}, [So, T]), A(() => {
|
|
1569
1590
|
if (h) {
|
|
1570
|
-
|
|
1591
|
+
ho(), xo(!0);
|
|
1571
1592
|
return;
|
|
1572
1593
|
}
|
|
1573
|
-
return
|
|
1594
|
+
return F.current += 1, io(!1), ho(), f.current = window.setTimeout(() => {
|
|
1574
1595
|
f.current = null, xo(!1);
|
|
1575
|
-
},
|
|
1596
|
+
}, w), ho;
|
|
1576
1597
|
}, [h]), mo(() => {
|
|
1577
|
-
|
|
1598
|
+
J.current !== d && (J.current = d, F.current += 1, ho(), Q(!1), io(!1), xo(!1));
|
|
1578
1599
|
}, [d]), mo(() => {
|
|
1579
|
-
var
|
|
1580
|
-
if (!
|
|
1600
|
+
var u;
|
|
1601
|
+
if (!E || !h)
|
|
1581
1602
|
return;
|
|
1582
|
-
const i =
|
|
1583
|
-
|
|
1603
|
+
const i = F.current + 1;
|
|
1604
|
+
F.current = i, io(!1), (u = H.current) == null || u.offsetHeight;
|
|
1584
1605
|
const l = requestAnimationFrame(() => {
|
|
1585
|
-
|
|
1606
|
+
F.current === i && io(!0);
|
|
1586
1607
|
});
|
|
1587
1608
|
return () => {
|
|
1588
1609
|
cancelAnimationFrame(l);
|
|
1589
1610
|
};
|
|
1590
|
-
}, [
|
|
1591
|
-
if (!
|
|
1592
|
-
const i =
|
|
1611
|
+
}, [E, h]), mo(() => {
|
|
1612
|
+
if (!P || !E) return;
|
|
1613
|
+
const i = q.current;
|
|
1593
1614
|
if (!i) return;
|
|
1594
1615
|
const l = getComputedStyle(i).backgroundColor;
|
|
1595
1616
|
if (!l) return;
|
|
1596
|
-
const
|
|
1597
|
-
return
|
|
1598
|
-
|
|
1617
|
+
const u = document.documentElement, { body: k } = document, S = u.style.backgroundColor, N = k.style.backgroundColor;
|
|
1618
|
+
return u.style.backgroundColor = l, k.style.backgroundColor = l, () => {
|
|
1619
|
+
u.style.backgroundColor = S, k.style.backgroundColor = N;
|
|
1599
1620
|
};
|
|
1600
|
-
}, [
|
|
1601
|
-
|
|
1602
|
-
}, [h,
|
|
1621
|
+
}, [P, E, Ho, qo, nt]), A(() => {
|
|
1622
|
+
b == null || b(h);
|
|
1623
|
+
}, [h, b]), A(() => {
|
|
1603
1624
|
if (!h) return;
|
|
1604
1625
|
const i = (l) => {
|
|
1605
1626
|
l.key === "Escape" && (t && n || Oo());
|
|
1606
1627
|
};
|
|
1607
1628
|
return window.addEventListener("keydown", i), () => window.removeEventListener("keydown", i);
|
|
1608
|
-
}, [h, t, n]),
|
|
1609
|
-
t && !n &&
|
|
1610
|
-
}, [t, n,
|
|
1611
|
-
n &&
|
|
1629
|
+
}, [h, t, n]), A(() => {
|
|
1630
|
+
t && !n && M !== "open" && Q(!1);
|
|
1631
|
+
}, [t, n, M]), A(() => {
|
|
1632
|
+
n && Q(!1);
|
|
1612
1633
|
}, [n]);
|
|
1613
|
-
const
|
|
1614
|
-
const { label: k, href:
|
|
1634
|
+
const pt = go && h, An = (i) => gt.filter((l) => Jn(l, d)).map((l, u) => {
|
|
1635
|
+
const { label: k, href: S, target: N, download: ao } = Wo(l, m), D = S ? /* @__PURE__ */ s(
|
|
1615
1636
|
"a",
|
|
1616
1637
|
{
|
|
1617
|
-
href:
|
|
1618
|
-
target:
|
|
1619
|
-
rel:
|
|
1638
|
+
href: S,
|
|
1639
|
+
target: N,
|
|
1640
|
+
rel: N === "_blank" ? "noopener noreferrer" : void 0,
|
|
1641
|
+
download: ao,
|
|
1620
1642
|
className: `${i} ${a}-has-href`,
|
|
1621
|
-
onClick: (
|
|
1622
|
-
children:
|
|
1643
|
+
onClick: (j) => Io(j, l),
|
|
1644
|
+
children: st(k)
|
|
1623
1645
|
}
|
|
1624
|
-
) : /* @__PURE__ */ s("span", { className: i, children:
|
|
1625
|
-
return /* @__PURE__ */
|
|
1626
|
-
|
|
1646
|
+
) : /* @__PURE__ */ s("span", { className: i, children: st(k) });
|
|
1647
|
+
return /* @__PURE__ */ L(_o, { children: [
|
|
1648
|
+
u > 0 && /* @__PURE__ */ s(
|
|
1627
1649
|
"div",
|
|
1628
1650
|
{
|
|
1629
|
-
"data-controls":
|
|
1651
|
+
"data-controls": pt ? "gap" : void 0,
|
|
1630
1652
|
"data-controls-axis": "y",
|
|
1631
|
-
className:
|
|
1632
|
-
style: { height:
|
|
1653
|
+
className: pt ? `${a}-gap-control` : void 0,
|
|
1654
|
+
style: { height: O(Qo) }
|
|
1633
1655
|
}
|
|
1634
1656
|
),
|
|
1635
1657
|
D
|
|
1636
|
-
] },
|
|
1637
|
-
}), zn =
|
|
1658
|
+
] }, u);
|
|
1659
|
+
}), zn = E ? /* @__PURE__ */ L(
|
|
1638
1660
|
"div",
|
|
1639
1661
|
{
|
|
1640
|
-
ref:
|
|
1662
|
+
ref: H,
|
|
1641
1663
|
"data-selection": "none",
|
|
1642
1664
|
className: [
|
|
1643
1665
|
`${a}-lightbox`,
|
|
1644
1666
|
`${a}-full-lightbox ${a}-effect-${yo}`,
|
|
1645
|
-
|
|
1667
|
+
Uo ? `${a}-lightbox-active` : "",
|
|
1646
1668
|
`${a}-lightbox-editor`,
|
|
1647
1669
|
e ? `${a}-lightbox-edit-mode` : "",
|
|
1648
|
-
|
|
1670
|
+
ft,
|
|
1649
1671
|
Ho
|
|
1650
1672
|
].filter(Boolean).join(" "),
|
|
1651
1673
|
style: { ...Lo, ...Ln },
|
|
1652
|
-
"aria-hidden": !
|
|
1674
|
+
"aria-hidden": !Uo,
|
|
1653
1675
|
children: [
|
|
1654
1676
|
/* @__PURE__ */ s(
|
|
1655
1677
|
"div",
|
|
@@ -1659,7 +1681,7 @@ function Wa({
|
|
|
1659
1681
|
onClick: Fo ? Oo : void 0
|
|
1660
1682
|
}
|
|
1661
1683
|
),
|
|
1662
|
-
/* @__PURE__ */
|
|
1684
|
+
/* @__PURE__ */ L(
|
|
1663
1685
|
"nav",
|
|
1664
1686
|
{
|
|
1665
1687
|
className: [`${a}-panel`, Fo ? `${a}-panel-blocking` : ""].filter(Boolean).join(" "),
|
|
@@ -1667,12 +1689,12 @@ function Wa({
|
|
|
1667
1689
|
"aria-label": "Menu",
|
|
1668
1690
|
"data-lightbox-scrollable": "",
|
|
1669
1691
|
children: [
|
|
1670
|
-
|
|
1692
|
+
go && pa(a, lt, oo.fontSize, O),
|
|
1671
1693
|
An(`${a}-link`)
|
|
1672
1694
|
]
|
|
1673
1695
|
}
|
|
1674
1696
|
),
|
|
1675
|
-
|
|
1697
|
+
P ? /* @__PURE__ */ s("div", { ref: q, className: `${a}-safari-tint`, "aria-hidden": "true" }) : null
|
|
1676
1698
|
]
|
|
1677
1699
|
}
|
|
1678
1700
|
) : null, Bn = () => /* @__PURE__ */ s(
|
|
@@ -1686,27 +1708,27 @@ function Wa({
|
|
|
1686
1708
|
"aria-label": h ? "Close menu" : "Open menu",
|
|
1687
1709
|
children: /* @__PURE__ */ s(ea, { className: `${a}-icon`, lineClassName: `${a}-icon-line` })
|
|
1688
1710
|
}
|
|
1689
|
-
),
|
|
1690
|
-
const l = i === "left",
|
|
1711
|
+
), $o = (i) => {
|
|
1712
|
+
const l = i === "left", u = l ? it : ct, k = l ? dn : gn, S = l ? fn : pn, N = x ? l ? "compactNavPaddingLeft" : "compactNavPaddingRight" : l ? "navPaddingLeft" : "navPaddingRight";
|
|
1691
1713
|
return /* @__PURE__ */ s(
|
|
1692
1714
|
"div",
|
|
1693
1715
|
{
|
|
1694
1716
|
className: l ? `${a}-nav-padding-left` : `${a}-nav-padding-right`,
|
|
1695
|
-
style: { width:
|
|
1696
|
-
children:
|
|
1717
|
+
style: { width: O(u), flexShrink: 0 },
|
|
1718
|
+
children: fo ? /* @__PURE__ */ s(
|
|
1697
1719
|
"div",
|
|
1698
1720
|
{
|
|
1699
|
-
"data-controls":
|
|
1721
|
+
"data-controls": N,
|
|
1700
1722
|
"data-controls-axis": "x",
|
|
1701
1723
|
"data-controls-variant": "column-padding",
|
|
1702
1724
|
...l ? {} : { "data-controls-reverse": "" },
|
|
1703
1725
|
"data-controls-min": "0",
|
|
1704
|
-
"data-controls-max-fraction": String(
|
|
1726
|
+
"data-controls-max-fraction": String(S),
|
|
1705
1727
|
className: `${a}-control-anchor`,
|
|
1706
1728
|
style: {
|
|
1707
1729
|
top: 0,
|
|
1708
1730
|
[l ? "left" : "right"]: 0,
|
|
1709
|
-
width:
|
|
1731
|
+
width: O(k),
|
|
1710
1732
|
height: "100%"
|
|
1711
1733
|
}
|
|
1712
1734
|
}
|
|
@@ -1714,66 +1736,67 @@ function Wa({
|
|
|
1714
1736
|
}
|
|
1715
1737
|
);
|
|
1716
1738
|
}, Hn = (i, l) => {
|
|
1717
|
-
const { label:
|
|
1739
|
+
const { label: u, href: k, target: S, download: N } = Wo(i, m), ao = /* @__PURE__ */ s("span", { className: mn, style: un, children: Ct(u) }), D = zt(
|
|
1718
1740
|
a,
|
|
1719
|
-
|
|
1741
|
+
ao,
|
|
1720
1742
|
en,
|
|
1721
|
-
|
|
1722
|
-
|
|
1723
|
-
),
|
|
1743
|
+
fo,
|
|
1744
|
+
O
|
|
1745
|
+
), j = k ? /* @__PURE__ */ s(
|
|
1724
1746
|
"a",
|
|
1725
1747
|
{
|
|
1726
1748
|
href: k,
|
|
1727
|
-
target:
|
|
1728
|
-
rel:
|
|
1749
|
+
target: S,
|
|
1750
|
+
rel: S === "_blank" ? "noopener noreferrer" : void 0,
|
|
1751
|
+
download: N,
|
|
1729
1752
|
className: `${a}-nav-link ${a}-has-href`,
|
|
1730
|
-
onClick: (
|
|
1753
|
+
onClick: (V) => Io(V, i),
|
|
1731
1754
|
children: D
|
|
1732
1755
|
}
|
|
1733
1756
|
) : /* @__PURE__ */ s("span", { className: `${a}-nav-link`, children: D });
|
|
1734
|
-
return /* @__PURE__ */
|
|
1757
|
+
return /* @__PURE__ */ L(_o, { children: [
|
|
1735
1758
|
l > 0 && /* @__PURE__ */ s(
|
|
1736
1759
|
"div",
|
|
1737
1760
|
{
|
|
1738
|
-
"data-controls":
|
|
1761
|
+
"data-controls": fo ? x ? "compactNavGap" : "navGap" : void 0,
|
|
1739
1762
|
"data-controls-axis": "x",
|
|
1740
|
-
className:
|
|
1741
|
-
style: { width:
|
|
1763
|
+
className: fo ? `${a}-gap-control ${a}-nav-gap-control` : `${a}-nav-gap-control}`,
|
|
1764
|
+
style: { width: O(sn), flexShrink: 0 }
|
|
1742
1765
|
}
|
|
1743
1766
|
),
|
|
1744
|
-
|
|
1767
|
+
j
|
|
1745
1768
|
] }, l);
|
|
1746
|
-
},
|
|
1769
|
+
}, vt = /* @__PURE__ */ L(
|
|
1747
1770
|
"div",
|
|
1748
1771
|
{
|
|
1749
|
-
className: `${a}-nav-logo-inner${
|
|
1772
|
+
className: `${a}-nav-logo-inner${vo ? ` ${a}-nav-logo-tinted` : ""}`,
|
|
1750
1773
|
style: {
|
|
1751
1774
|
height: kn,
|
|
1752
|
-
...
|
|
1775
|
+
...vo && no ? { [`--${a}-logo-image`]: ka(no) } : {}
|
|
1753
1776
|
},
|
|
1754
1777
|
children: [
|
|
1755
1778
|
/* @__PURE__ */ s(
|
|
1756
1779
|
"img",
|
|
1757
1780
|
{
|
|
1758
|
-
src:
|
|
1781
|
+
src: vo && no ? no : eo,
|
|
1759
1782
|
alt: "",
|
|
1760
1783
|
className: `${a}-nav-logo-img`
|
|
1761
1784
|
}
|
|
1762
1785
|
),
|
|
1763
|
-
|
|
1786
|
+
vo ? /* @__PURE__ */ s("span", { className: `${a}-nav-logo-tint`, "aria-hidden": "true" }) : null
|
|
1764
1787
|
]
|
|
1765
1788
|
}
|
|
1766
1789
|
), On = {
|
|
1767
1790
|
...Lo,
|
|
1768
|
-
height:
|
|
1769
|
-
minHeight:
|
|
1770
|
-
[`--${a}-panel-height`]:
|
|
1771
|
-
}, Fn = g &&
|
|
1772
|
-
return /* @__PURE__ */
|
|
1791
|
+
height: z(so, t),
|
|
1792
|
+
minHeight: z(so, t),
|
|
1793
|
+
[`--${a}-panel-height`]: z(so, t)
|
|
1794
|
+
}, Fn = g && T === "default" && M !== "open" && !n ? O(Ko + Un) : "0px";
|
|
1795
|
+
return /* @__PURE__ */ L(
|
|
1773
1796
|
"div",
|
|
1774
1797
|
{
|
|
1775
|
-
ref:
|
|
1776
|
-
className: `${a}-root ${Ho} ${Sn} ${
|
|
1798
|
+
ref: $,
|
|
1799
|
+
className: `${a}-root ${Ho} ${Sn} ${ft} ${yn}`.trim(),
|
|
1777
1800
|
style: {
|
|
1778
1801
|
width: "100%",
|
|
1779
1802
|
height: "100%",
|
|
@@ -1784,52 +1807,52 @@ function Wa({
|
|
|
1784
1807
|
},
|
|
1785
1808
|
children: [
|
|
1786
1809
|
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: Rt } }),
|
|
1787
|
-
/* @__PURE__ */ s("span", { ref:
|
|
1788
|
-
/* @__PURE__ */ s("span", { ref:
|
|
1789
|
-
/* @__PURE__ */ s("div", { className: `${a}-nav-slide`, children: /* @__PURE__ */
|
|
1790
|
-
|
|
1791
|
-
|
|
1810
|
+
/* @__PURE__ */ s("span", { ref: Y, "aria-hidden": !0, style: yt(To.css), children: "H" }),
|
|
1811
|
+
/* @__PURE__ */ s("span", { ref: K, "aria-hidden": !0, style: yt(No.css), children: "H" }),
|
|
1812
|
+
/* @__PURE__ */ s("div", { className: `${a}-nav-slide`, children: /* @__PURE__ */ L("div", { className: `${a}-nav-bar`, style: On, children: [
|
|
1813
|
+
dt && eo ? /* @__PURE__ */ L("div", { className: `${a}-nav-logo ${a}-nav-logo-${lo}`, children: [
|
|
1814
|
+
lo === "left" ? $o("left") : null,
|
|
1792
1815
|
zo ? /* @__PURE__ */ s(
|
|
1793
1816
|
"a",
|
|
1794
1817
|
{
|
|
1795
|
-
href: (
|
|
1818
|
+
href: ($t = zo.link) == null ? void 0 : $t.value,
|
|
1796
1819
|
className: `${a}-nav-logo-link`,
|
|
1797
1820
|
"aria-label": "Home",
|
|
1798
1821
|
onClick: (i) => Io(i, zo),
|
|
1799
|
-
children:
|
|
1822
|
+
children: vt
|
|
1800
1823
|
}
|
|
1801
|
-
) :
|
|
1802
|
-
|
|
1824
|
+
) : vt,
|
|
1825
|
+
lo === "right" ? $o("right") : null
|
|
1803
1826
|
] }) : null,
|
|
1804
1827
|
/* @__PURE__ */ s(
|
|
1805
1828
|
"nav",
|
|
1806
1829
|
{
|
|
1807
|
-
className: `${a}-nav-links ${a}-nav-links-${
|
|
1808
|
-
style: { transform: Kn(
|
|
1830
|
+
className: `${a}-nav-links ${a}-nav-links-${rt}`,
|
|
1831
|
+
style: { transform: Kn(rt, on, t) },
|
|
1809
1832
|
"aria-label": "Navigation",
|
|
1810
|
-
children: /* @__PURE__ */ s("div", { className: `${a}-nav-links-inner`, children:
|
|
1833
|
+
children: /* @__PURE__ */ s("div", { className: `${a}-nav-links-inner`, children: gt.filter((i) => Zn(i, T, d)).map((i, l) => Hn(i, l)) })
|
|
1811
1834
|
}
|
|
1812
1835
|
)
|
|
1813
1836
|
] }) }),
|
|
1814
1837
|
zn,
|
|
1815
|
-
/* @__PURE__ */
|
|
1816
|
-
Bo === "left" ?
|
|
1838
|
+
/* @__PURE__ */ L("div", { className: `${a}-nav-toggle-wrap ${a}-nav-toggle-wrap-${Bo}`, children: [
|
|
1839
|
+
Bo === "left" ? $o("left") : null,
|
|
1817
1840
|
nn ? /* @__PURE__ */ s(
|
|
1818
1841
|
"div",
|
|
1819
1842
|
{
|
|
1820
|
-
className: `${a}-root ${
|
|
1843
|
+
className: `${a}-root ${wn}`.trim(),
|
|
1821
1844
|
style: $n,
|
|
1822
1845
|
children: Bn()
|
|
1823
1846
|
}
|
|
1824
1847
|
) : null,
|
|
1825
|
-
Bo === "right" ?
|
|
1848
|
+
Bo === "right" ? $o("right") : null
|
|
1826
1849
|
] })
|
|
1827
1850
|
]
|
|
1828
1851
|
}
|
|
1829
1852
|
);
|
|
1830
1853
|
}
|
|
1831
1854
|
export {
|
|
1832
|
-
|
|
1855
|
+
Ea as Burger,
|
|
1833
1856
|
ga as applyBurgerSettingsChange,
|
|
1834
1857
|
Qn as isBurgerOpenMenuAvailable
|
|
1835
1858
|
};
|