@cntrl-site/components 1.0.101 → 1.0.103
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -1
- package/dist/Burger-C6jI6C1c.js +661 -0
- package/dist/Burger-EMSn7TPB.mjs +1807 -0
- package/dist/ClickGallerie-D7g093HX.js +36 -0
- package/dist/ClickGallerie-QSOQjSdv.mjs +271 -0
- package/dist/Components/Burger/BurgerComponent.d.ts +0 -1
- package/dist/Components/ClickGallerie/ClickGallerie.d.ts +1 -0
- package/dist/Components/ClickGallerie/ClickGallerieComponent.d.ts +0 -1
- package/dist/Components/FAQ/FAQComponent.d.ts +0 -1
- package/dist/Components/Form/FormComponent.d.ts +0 -1
- package/dist/Components/Grid/GridComponent.d.ts +0 -1
- package/dist/Components/Helix/HelixComponent.d.ts +0 -1
- package/dist/Components/Hive/HiveComponent.d.ts +0 -1
- package/dist/Components/LightboxJournal/LightboxJournalComponent.d.ts +0 -1
- package/dist/Components/LightboxStrip/LightboxStripComponent.d.ts +0 -1
- package/dist/Components/List/ListComponent.d.ts +0 -1
- package/dist/Components/Marquee/MarqueeComponent.d.ts +0 -1
- package/dist/Components/MarqueeText/MarqueeTextComponent.d.ts +0 -1
- package/dist/Components/Mercury/MercuryComponent.d.ts +0 -1
- package/dist/Components/OnelinerForm/OnelinerFormComponent.d.ts +0 -1
- package/dist/Components/Pretext/PretextComponent.d.ts +0 -1
- package/dist/Components/Scale/Scale.d.ts +2 -0
- package/dist/Components/Scale/ScaleComponent.d.ts +0 -1
- package/dist/Components/SimpleButton/SimpleButtonComponent.d.ts +0 -1
- package/dist/Components/Slider20/Slider20Component.d.ts +0 -1
- package/dist/Components/TestimonialGrid/TestimonialGridComponent.d.ts +0 -1
- package/dist/Components/TestimonialSingle/TestimonialSingleComponent.d.ts +0 -1
- package/dist/Components/Waterfall/WaterfallComponent.d.ts +0 -1
- package/dist/ControlSlider-SiOt22l_.js +1 -0
- package/dist/ControlSlider-pZv7H6BU.mjs +334 -0
- package/dist/FAQ-C7823fyi.js +166 -0
- package/dist/FAQ-CZ39u4m8.mjs +588 -0
- package/dist/Form-BX5_41nb.mjs +472 -0
- package/dist/Form-Dn-6A1He.js +153 -0
- package/dist/Grid-CemGhf3F.js +374 -0
- package/dist/Grid-cfQsXW3b.mjs +1553 -0
- package/dist/Helix-2Vr-9WBa.js +43 -0
- package/dist/Helix-BmkAKT1G.mjs +315 -0
- package/dist/Hive-BC6zQBsv.js +321 -0
- package/dist/Hive-BGMWinrW.mjs +1425 -0
- package/dist/HiveLightboxTitles-DhEeFKWs.mjs +507 -0
- package/dist/HiveLightboxTitles-DlyptAaK.js +1 -0
- package/dist/ImageRevealSlider-BBWtFjUF.js +1 -0
- package/dist/ImageRevealSlider-BdFGyVEP.mjs +184 -0
- package/dist/Lightbox-CIss_nOG.js +1 -0
- package/dist/Lightbox-eP9qAZzL.mjs +665 -0
- package/dist/LightboxJournal-D59ex6wH.mjs +1613 -0
- package/dist/LightboxJournal-DAEZOPDi.js +523 -0
- package/dist/LightboxStrip-BDjI1jyH.js +386 -0
- package/dist/LightboxStrip-YspzBP8N.mjs +1574 -0
- package/dist/List-C32WImI3.js +377 -0
- package/dist/List-DW7fyJbf.mjs +1891 -0
- package/dist/Marquee-BYClHHws.mjs +551 -0
- package/dist/Marquee-vmHaTGIP.js +133 -0
- package/dist/MarqueeText-4Rip_sQX.mjs +515 -0
- package/dist/MarqueeText-E6OubMOG.js +132 -0
- package/dist/Mercury-BwF_XW2w.js +267 -0
- package/dist/Mercury-DuKJQ1Zo.mjs +1701 -0
- package/dist/OnelinerForm-BEu7_sho.mjs +434 -0
- package/dist/OnelinerForm-C2Y_XMCY.js +194 -0
- package/dist/Pretext-10CcyP1E.mjs +2762 -0
- package/dist/Pretext-DvQ3xsni.js +231 -0
- package/dist/PretextComponent-CGycuNNn.js +1 -0
- package/dist/PretextComponent-DN8cyZ8x.mjs +11633 -0
- package/dist/RichTextRenderer-B6WtTYlR.mjs +32 -0
- package/dist/RichTextRenderer-CIy6yI8U.js +1 -0
- package/dist/Scale-Bg3bGICG.js +114 -0
- package/dist/Scale-TnkWtRrs.mjs +409 -0
- package/dist/SimpleButton-C-o2W9bS.mjs +451 -0
- package/dist/SimpleButton-nGEcO2gB.js +243 -0
- package/dist/Slider20-C9o2REDl.js +272 -0
- package/dist/Slider20-Dm8BeCli.mjs +851 -0
- package/dist/SvgImage-B5mR9y6q.mjs +51 -0
- package/dist/SvgImage-DFlmxAoL.js +1 -0
- package/dist/TestimonialGrid-CPu4qQ6B.mjs +492 -0
- package/dist/TestimonialGrid-D4ieiz9e.js +90 -0
- package/dist/TestimonialSingle-CVu15ZtV.js +125 -0
- package/dist/TestimonialSingle-DLdnAVF7.mjs +391 -0
- package/dist/Waterfall-A0FjM2my.mjs +1400 -0
- package/dist/Waterfall-DnPDHbCL.js +287 -0
- package/dist/buildColorVars-CE2D5cQV.js +1 -0
- package/dist/buildColorVars-CLyWQm5K.mjs +21 -0
- package/dist/components-BFJINCME.mjs +2053 -0
- package/dist/components-DTCDEBo0.js +1 -0
- package/dist/components.css +1 -1
- package/dist/elements.d.ts +7 -0
- package/dist/elements.js +1 -0
- package/dist/elements.mjs +63 -0
- package/dist/elements.node.d.ts +6 -0
- package/dist/elements.node.js +1 -0
- package/dist/elements.node.mjs +21 -0
- package/dist/forking.d.ts +1 -0
- package/dist/formFieldValidation-DZl2KVaF.js +1 -0
- package/dist/formFieldValidation-DvihFrq5.mjs +21 -0
- package/dist/getColorAlpha-BVBY0N5x.mjs +39 -0
- package/dist/getColorAlpha-CoSseoCn.js +1 -0
- package/dist/getImageRect-BQhQXvT8.js +1 -0
- package/dist/getImageRect-CBMhFNHM.mjs +109 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -28862
- package/dist/index.mjs +16 -62473
- package/dist/loadSvgMaskUrl-DfF7ay6h.js +1 -0
- package/dist/loadSvgMaskUrl-xHgGYgPe.mjs +20 -0
- package/dist/panelAvailability-D179wwJx.mjs +27 -0
- package/dist/panelAvailability-DnOe0rQ4.js +1 -0
- package/dist/react-splide.esm-CabaEmHi.js +6 -0
- package/dist/react-splide.esm-DQqds4PL.mjs +1750 -0
- package/dist/readTestimonialTextMeasure-BIXpGFEt.mjs +13 -0
- package/dist/readTestimonialTextMeasure-CEPaB4Sy.js +1 -0
- package/dist/scalingValue-C9JH5L6O.mjs +6 -0
- package/dist/scalingValue-CSHYgTZl.js +1 -0
- package/dist/sources.d.ts +1 -0
- package/dist/sources.js +23865 -0
- package/dist/sources.mjs +23891 -0
- package/dist/textStylesToCss-05Mn6I_2.mjs +32 -0
- package/dist/textStylesToCss-CNN3zZTV.js +1 -0
- package/dist/types/Component.d.ts +0 -1
- package/dist/useLightboxScrollLock-Hf16Eq4g.js +1 -0
- package/dist/useLightboxScrollLock-VQ07s7EJ.mjs +18 -0
- package/dist/useLightboxSwipeDismiss-Br9uE5G0.js +1 -0
- package/dist/useLightboxSwipeDismiss-SGv6Ra33.mjs +95 -0
- package/dist/useScopedStyles-Bf6yohVQ.js +1 -0
- package/dist/useScopedStyles-DhBG3557.mjs +11 -0
- package/dist/utils-033j3qNL.js +1 -0
- package/dist/utils-FxC9rcxw.mjs +247 -0
- package/dist/utils.js +1 -1
- package/dist/utils.mjs +17 -11
- package/package.json +31 -2
- package/dist/index-2JTNRDR1.js +0 -1
- package/dist/index-DA8t6EZ4.mjs +0 -255
- package/dist/panelAvailability-CgSic84c.mjs +0 -126
- package/dist/panelAvailability-D8c7cdbu.js +0 -1
|
@@ -0,0 +1,1807 @@
|
|
|
1
|
+
import { jsxs as C, jsx as s, Fragment as Nn } from "react/jsx-runtime";
|
|
2
|
+
import { useRef as S, useMemo as uo, useState as I, useEffect as N, useLayoutEffect as mo, Fragment as Io } from "react";
|
|
3
|
+
import { s as A } from "./scalingValue-C9JH5L6O.mjs";
|
|
4
|
+
import { b as An } from "./buildColorVars-CLyWQm5K.mjs";
|
|
5
|
+
import { u as zn } from "./useScopedStyles-DhBG3557.mjs";
|
|
6
|
+
import { u as Bn } from "./useLightboxScrollLock-VQ07s7EJ.mjs";
|
|
7
|
+
import { o as Hn, t as On } from "./textStylesToCss-05Mn6I_2.mjs";
|
|
8
|
+
import { i as dt, l as Fn } from "./loadSvgMaskUrl-xHgGYgPe.mjs";
|
|
9
|
+
const y = 300, v = 300, In = 8 / 1440, U = 4e-3, Rn = 50, _n = 1440, M = Rn / _n;
|
|
10
|
+
function Mn(o) {
|
|
11
|
+
if (o === "default" || o === "compact" || o === "open") return o;
|
|
12
|
+
if (o === "onScroll") return "compact";
|
|
13
|
+
}
|
|
14
|
+
function Wn(o) {
|
|
15
|
+
return o === "center" || o === "right" ? o : "left";
|
|
16
|
+
}
|
|
17
|
+
function En(o) {
|
|
18
|
+
return o === "left" || o === "right" ? o : "center";
|
|
19
|
+
}
|
|
20
|
+
function Gn(o, t, n) {
|
|
21
|
+
const e = A(t, n);
|
|
22
|
+
return o === "center" ? `translateX(calc(-50% + ${e}))` : `translateX(${e})`;
|
|
23
|
+
}
|
|
24
|
+
function Dn(o, t) {
|
|
25
|
+
if (o && typeof o == "object") {
|
|
26
|
+
if (t && typeof o[t] == "string") return o[t];
|
|
27
|
+
for (const n in o)
|
|
28
|
+
if (typeof o[n] == "string") return o[n];
|
|
29
|
+
return;
|
|
30
|
+
}
|
|
31
|
+
return o;
|
|
32
|
+
}
|
|
33
|
+
function Ct(o, t) {
|
|
34
|
+
const n = (Dn(o, t) ?? "always").trim().toLowerCase().replace(/[_-]+/g, " ");
|
|
35
|
+
return n === "open only" || n === "openonly" ? "open only" : n === "open and compact" || n === "openandcompact" ? "open and compact" : n === "default and open" || n === "defaultandopen" ? "default and open" : n === "default and compact" || n === "defaultandcompact" ? "default and compact" : "always";
|
|
36
|
+
}
|
|
37
|
+
function Un(o, t, n) {
|
|
38
|
+
switch (Ct(o.showIn, n)) {
|
|
39
|
+
case "open only":
|
|
40
|
+
return !1;
|
|
41
|
+
case "open and compact":
|
|
42
|
+
return t === "compact";
|
|
43
|
+
case "default and compact":
|
|
44
|
+
return !0;
|
|
45
|
+
case "default and open":
|
|
46
|
+
return t === "default";
|
|
47
|
+
default:
|
|
48
|
+
return !0;
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
function Vn(o, t) {
|
|
52
|
+
switch (Ct(o.showIn, t)) {
|
|
53
|
+
case "default and compact":
|
|
54
|
+
return !1;
|
|
55
|
+
default:
|
|
56
|
+
return !0;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
function jn(o) {
|
|
60
|
+
return (o == null ? void 0 : o.find((t) => t.slug === "")) ?? (o == null ? void 0 : o[0]);
|
|
61
|
+
}
|
|
62
|
+
function Xn(o, t) {
|
|
63
|
+
const n = o ? t == null ? void 0 : t.find((e) => e.id === o) : jn(t);
|
|
64
|
+
return !o && !n ? "" : n ? n.slug === "" ? "/" : `/${n.slug}` : o.startsWith("/") || o.startsWith("#") || /^[a-z][a-z\d+\-.]*:/i.test(o) ? o : t ? `/${o}` : o;
|
|
65
|
+
}
|
|
66
|
+
function gt(o) {
|
|
67
|
+
const t = (o ?? "").toLowerCase();
|
|
68
|
+
return t === "blank" || t === "_blank" || t.includes("new");
|
|
69
|
+
}
|
|
70
|
+
function Lt(o) {
|
|
71
|
+
const t = o.link;
|
|
72
|
+
if (t && typeof t == "object") {
|
|
73
|
+
const e = gt(t.target) ? "_blank" : void 0;
|
|
74
|
+
if (t.type === "url")
|
|
75
|
+
return { type: "url", value: t.value ?? t.url ?? "", target: e };
|
|
76
|
+
if (t.type === "anchor")
|
|
77
|
+
return { type: "anchor", value: t.value ?? "", target: e };
|
|
78
|
+
if (t.type === "page")
|
|
79
|
+
return { type: "page", value: t.value ?? "", target: e, anchor: t.anchor };
|
|
80
|
+
if (typeof t.url == "string")
|
|
81
|
+
return { type: "url", value: t.url, target: e };
|
|
82
|
+
}
|
|
83
|
+
const n = gt(o.openIn) ? "_blank" : void 0;
|
|
84
|
+
return o.mode === "url" ? { type: "url", value: o.url ?? "", target: n } : { type: "page", value: o.page ?? "", target: n, anchor: o.anchor };
|
|
85
|
+
}
|
|
86
|
+
function Ro(o, t) {
|
|
87
|
+
const n = o.label || "Link", e = Lt(o);
|
|
88
|
+
if (e.type === "url")
|
|
89
|
+
return { label: n, href: e.value, target: e.target };
|
|
90
|
+
if (e.type === "anchor") {
|
|
91
|
+
const p = e.value.replace(/^#/, "");
|
|
92
|
+
return { label: n, href: p ? `#${p}` : "", target: e.target };
|
|
93
|
+
}
|
|
94
|
+
const r = Xn(e.value, t), c = (e.anchor ?? "").replace(/^#/, ""), g = c ? r ? `${r}#${c}` : `#${c}` : r;
|
|
95
|
+
return { label: n, href: g, target: e.target };
|
|
96
|
+
}
|
|
97
|
+
const R = 24, F = R * 0.125, wt = R * 0.125, Fo = (R - (3 * F + 2 * wt)) / 2, ft = F + wt;
|
|
98
|
+
function Yn({ className: o, lineClassName: t }) {
|
|
99
|
+
return /* @__PURE__ */ C(
|
|
100
|
+
"svg",
|
|
101
|
+
{
|
|
102
|
+
className: o,
|
|
103
|
+
viewBox: `0 0 ${R} ${R}`,
|
|
104
|
+
"aria-hidden": "true",
|
|
105
|
+
children: [
|
|
106
|
+
/* @__PURE__ */ s(
|
|
107
|
+
"rect",
|
|
108
|
+
{
|
|
109
|
+
className: `${t} ${t}-top`,
|
|
110
|
+
x: "0",
|
|
111
|
+
y: Fo,
|
|
112
|
+
width: R,
|
|
113
|
+
height: F,
|
|
114
|
+
rx: F / 2
|
|
115
|
+
}
|
|
116
|
+
),
|
|
117
|
+
/* @__PURE__ */ s(
|
|
118
|
+
"rect",
|
|
119
|
+
{
|
|
120
|
+
className: `${t} ${t}-mid`,
|
|
121
|
+
x: "0",
|
|
122
|
+
y: Fo + ft,
|
|
123
|
+
width: R,
|
|
124
|
+
height: F,
|
|
125
|
+
rx: F / 2
|
|
126
|
+
}
|
|
127
|
+
),
|
|
128
|
+
/* @__PURE__ */ s(
|
|
129
|
+
"rect",
|
|
130
|
+
{
|
|
131
|
+
className: `${t} ${t}-bot`,
|
|
132
|
+
x: "0",
|
|
133
|
+
y: Fo + 2 * ft,
|
|
134
|
+
width: R,
|
|
135
|
+
height: F,
|
|
136
|
+
rx: F / 2
|
|
137
|
+
}
|
|
138
|
+
)
|
|
139
|
+
]
|
|
140
|
+
}
|
|
141
|
+
);
|
|
142
|
+
}
|
|
143
|
+
function Kn(o, t, n, e) {
|
|
144
|
+
return t !== void 0 && t < (o ?? 0.01) ? `${n} ${e}` : n;
|
|
145
|
+
}
|
|
146
|
+
function qn(o, t, n, e) {
|
|
147
|
+
const r = o ?? 0.01;
|
|
148
|
+
return t === void 0 || t >= r ? {} : {
|
|
149
|
+
[`--${n}-text-leading-gap`]: A((r - t) / 2, e)
|
|
150
|
+
};
|
|
151
|
+
}
|
|
152
|
+
const Tt = 4e-3;
|
|
153
|
+
let no;
|
|
154
|
+
function Zn() {
|
|
155
|
+
return no !== void 0 ? no : typeof document > "u" ? (no = null, null) : (no = document.createElement("canvas").getContext("2d"), no);
|
|
156
|
+
}
|
|
157
|
+
function Jn(o) {
|
|
158
|
+
const t = getComputedStyle(o), n = parseFloat(t.fontSize) || 0;
|
|
159
|
+
if (n <= 0) return 0;
|
|
160
|
+
const e = Zn();
|
|
161
|
+
if (!e) return 0;
|
|
162
|
+
e.font = `${t.fontStyle} ${t.fontWeight} ${n}px ${t.fontFamily}`;
|
|
163
|
+
const r = e.measureText("H"), c = r.actualBoundingBoxAscent > 0 ? r.actualBoundingBoxAscent : 0, g = Math.max(0, r.actualBoundingBoxDescent || 0), p = r.fontBoundingBoxAscent || 0, d = r.fontBoundingBoxDescent || 0;
|
|
164
|
+
return c <= 0 || p <= 0 && d <= 0 ? 0 : (d - g - (p - c)) / 2 / n;
|
|
165
|
+
}
|
|
166
|
+
function pt(o, t) {
|
|
167
|
+
const [n, e] = I(0);
|
|
168
|
+
return mo(() => {
|
|
169
|
+
const r = o.current;
|
|
170
|
+
if (!r) return;
|
|
171
|
+
const c = () => {
|
|
172
|
+
const d = Jn(r);
|
|
173
|
+
e((u) => Math.abs(u - d) < Tt ? u : d);
|
|
174
|
+
};
|
|
175
|
+
c();
|
|
176
|
+
const g = document.fonts;
|
|
177
|
+
g.ready.then(c).catch(() => {
|
|
178
|
+
}), g.addEventListener("loadingdone", c);
|
|
179
|
+
const p = new ResizeObserver(c);
|
|
180
|
+
return p.observe(r), () => {
|
|
181
|
+
g.removeEventListener("loadingdone", c), p.disconnect();
|
|
182
|
+
};
|
|
183
|
+
}, [o, t]), n;
|
|
184
|
+
}
|
|
185
|
+
function vt(o) {
|
|
186
|
+
if (!(Math.abs(o) < Tt))
|
|
187
|
+
return `translateY(${o}em)`;
|
|
188
|
+
}
|
|
189
|
+
function ht(o) {
|
|
190
|
+
var t, n;
|
|
191
|
+
return [
|
|
192
|
+
o.fontFamily ?? "",
|
|
193
|
+
((t = o.fontSettings) == null ? void 0 : t.fontWeight) ?? 400,
|
|
194
|
+
((n = o.fontSettings) == null ? void 0 : n.fontStyle) ?? "normal",
|
|
195
|
+
o.fontSize ?? "",
|
|
196
|
+
o.lineHeight ?? ""
|
|
197
|
+
].join("\0");
|
|
198
|
+
}
|
|
199
|
+
function $t(o) {
|
|
200
|
+
return {
|
|
201
|
+
fontFamily: o.fontFamily,
|
|
202
|
+
fontWeight: o.fontWeight,
|
|
203
|
+
fontStyle: o.fontStyle,
|
|
204
|
+
fontSize: o.fontSize,
|
|
205
|
+
lineHeight: o.lineHeight,
|
|
206
|
+
position: "absolute",
|
|
207
|
+
top: 0,
|
|
208
|
+
left: 0,
|
|
209
|
+
visibility: "hidden",
|
|
210
|
+
pointerEvents: "none",
|
|
211
|
+
whiteSpace: "nowrap"
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
function ut(o, t = {}) {
|
|
215
|
+
return {
|
|
216
|
+
fontFamily: o.fontFamily ?? t.fontFamily,
|
|
217
|
+
fontSettings: o.fontSettings ?? t.fontSettings,
|
|
218
|
+
fontSize: o.fontSize ?? t.fontSize,
|
|
219
|
+
lineHeight: o.lineHeight ?? t.lineHeight,
|
|
220
|
+
letterSpacing: o.letterSpacing ?? t.letterSpacing ?? 0,
|
|
221
|
+
wordSpacing: o.wordSpacing ?? t.wordSpacing ?? 0,
|
|
222
|
+
textAlign: o.textAlign ?? t.textAlign ?? "left",
|
|
223
|
+
textAppearance: o.textAppearance ?? t.textAppearance
|
|
224
|
+
};
|
|
225
|
+
}
|
|
226
|
+
function mt(o, t, n) {
|
|
227
|
+
var r, c;
|
|
228
|
+
const e = {
|
|
229
|
+
fontSettings: {
|
|
230
|
+
fontFamily: t.fontFamily,
|
|
231
|
+
fontWeight: ((r = t.fontSettings) == null ? void 0 : r.fontWeight) ?? 400,
|
|
232
|
+
fontStyle: ((c = t.fontSettings) == null ? void 0 : c.fontStyle) ?? "normal"
|
|
233
|
+
},
|
|
234
|
+
fontSize: t.fontSize ?? 0.01,
|
|
235
|
+
lineHeight: t.lineHeight,
|
|
236
|
+
letterSpacing: t.letterSpacing ?? 0,
|
|
237
|
+
wordSpacing: t.wordSpacing ?? 0,
|
|
238
|
+
textAlign: t.textAlign,
|
|
239
|
+
textAppearance: t.textAppearance,
|
|
240
|
+
color: ""
|
|
241
|
+
};
|
|
242
|
+
return {
|
|
243
|
+
css: {
|
|
244
|
+
...Hn(On(e, n)),
|
|
245
|
+
...qn(t.fontSize, t.lineHeight, o, n)
|
|
246
|
+
},
|
|
247
|
+
className: Kn(
|
|
248
|
+
t.fontSize,
|
|
249
|
+
t.lineHeight,
|
|
250
|
+
`${o}-link-text`,
|
|
251
|
+
`${o}-text-tight-leading`
|
|
252
|
+
)
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
function xt(o) {
|
|
256
|
+
const t = o.split(/\r?\n/);
|
|
257
|
+
return t.length === 1 ? o : t.map((n, e) => /* @__PURE__ */ C(Io, { children: [
|
|
258
|
+
n,
|
|
259
|
+
e < t.length - 1 ? /* @__PURE__ */ s("br", {}) : null
|
|
260
|
+
] }, e));
|
|
261
|
+
}
|
|
262
|
+
function kt(o, t, n, e) {
|
|
263
|
+
const r = Math.max(0, n - e), c = o + t;
|
|
264
|
+
if (c <= r || c <= 0)
|
|
265
|
+
return { start: o, end: t };
|
|
266
|
+
const g = r / c;
|
|
267
|
+
return {
|
|
268
|
+
start: o * g,
|
|
269
|
+
end: t * g
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
function Nt(o) {
|
|
273
|
+
const n = Math.max(M, o.fontSize ?? M), { start: e, end: r } = kt(
|
|
274
|
+
o.textPaddingTop,
|
|
275
|
+
o.textPaddingBottom,
|
|
276
|
+
1,
|
|
277
|
+
n
|
|
278
|
+
), { start: c, end: g } = kt(
|
|
279
|
+
o.textPaddingLeft,
|
|
280
|
+
o.textPaddingRight,
|
|
281
|
+
1,
|
|
282
|
+
M
|
|
283
|
+
);
|
|
284
|
+
return {
|
|
285
|
+
effectivePaddingLeft: c,
|
|
286
|
+
effectivePaddingRight: g,
|
|
287
|
+
effectivePaddingTop: e,
|
|
288
|
+
effectivePaddingBottom: r,
|
|
289
|
+
panelSize: 1
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
function Qn(o) {
|
|
293
|
+
if (o === "center" || o === "center-center")
|
|
294
|
+
return { horizontalAlign: "center", verticalAlign: "center" };
|
|
295
|
+
const [t, n] = o.split("-");
|
|
296
|
+
return { horizontalAlign: t, verticalAlign: n };
|
|
297
|
+
}
|
|
298
|
+
function Pn(o) {
|
|
299
|
+
return o.position ? Qn(o.position) : {
|
|
300
|
+
horizontalAlign: o.horizontalAlign ?? "left",
|
|
301
|
+
verticalAlign: o.verticalAlign ?? "top"
|
|
302
|
+
};
|
|
303
|
+
}
|
|
304
|
+
function oa(o, t) {
|
|
305
|
+
return o.textPaddingLeft !== t.textPaddingLeft || o.textPaddingRight !== t.textPaddingRight || o.textPaddingTop !== t.textPaddingTop || o.textPaddingBottom !== t.textPaddingBottom;
|
|
306
|
+
}
|
|
307
|
+
const ta = [
|
|
308
|
+
["onScrollIconColor", "compactIconColor"],
|
|
309
|
+
["onScrollLinkColor", "compactLinkColor"],
|
|
310
|
+
["onScrollLogoColor", "compactLogoColor"],
|
|
311
|
+
["onScrollBackgroundColor", "compactBackgroundColor"],
|
|
312
|
+
["onScrollPanelColor", "compactBackgroundColor"],
|
|
313
|
+
["onScrollLogoMaxWidth", "compactLogoMaxWidth"],
|
|
314
|
+
["onScrollLogoMaxHeight", "compactLogoMaxHeight"],
|
|
315
|
+
["onScrollLogoPosition", "compactLogoPosition"],
|
|
316
|
+
["onScrollPanelHeight", "compactPanelHeight"],
|
|
317
|
+
["onScrollIconSize", "compactIconSize"],
|
|
318
|
+
["onScrollNavTextWidth", "compactNavTextWidth"],
|
|
319
|
+
["onScrollNavGap", "compactNavGap"],
|
|
320
|
+
["onScrollNavPaddingLeft", "compactNavPaddingLeft"],
|
|
321
|
+
["onScrollNavPaddingRight", "compactNavPaddingRight"],
|
|
322
|
+
["onScrollFontFamily", "compactFontFamily"],
|
|
323
|
+
["onScrollFontSettings", "compactFontSettings"],
|
|
324
|
+
["onScrollFontSize", "compactFontSize"],
|
|
325
|
+
["onScrollLineHeight", "compactLineHeight"],
|
|
326
|
+
["onScrollLetterSpacing", "compactLetterSpacing"],
|
|
327
|
+
["onScrollWordSpacing", "compactWordSpacing"],
|
|
328
|
+
["onScrollTextAlign", "compactTextAlign"],
|
|
329
|
+
["onScrollTextAppearance", "compactTextAppearance"]
|
|
330
|
+
];
|
|
331
|
+
function At(o) {
|
|
332
|
+
var r, c;
|
|
333
|
+
const t = o, n = {};
|
|
334
|
+
for (const [g, p] of ta)
|
|
335
|
+
o[p] !== void 0 || t[g] === void 0 || (n[p] = t[g]);
|
|
336
|
+
const e = t.stateOverrides;
|
|
337
|
+
return e && (e.onScroll !== void 0 || e["onScroll-hover"] !== void 0) && (n.stateOverrides = { ...o.stateOverrides }, e.onScroll !== void 0 && ((r = o.stateOverrides) == null ? void 0 : r.compact) === void 0 && (n.stateOverrides.compact = e.onScroll), e["onScroll-hover"] !== void 0 && ((c = o.stateOverrides) == null ? void 0 : c["compact-hover"]) === void 0 && (n.stateOverrides["compact-hover"] = e["onScroll-hover"])), Object.keys(n).length === 0 ? o : { ...o, ...n };
|
|
338
|
+
}
|
|
339
|
+
function bt(o) {
|
|
340
|
+
var r, c, g, p, d, u, L, z, m, a, B, V, j, X, Y, O;
|
|
341
|
+
o = At(o);
|
|
342
|
+
const t = o, n = {};
|
|
343
|
+
if (o.backgroundColor === void 0 && t.panelColor !== void 0 && (n.backgroundColor = t.panelColor), o.openFontFamily === void 0 && o.fontFamily !== void 0 && (n.openFontFamily = o.fontFamily), o.openFontSettings === void 0 && o.fontSettings !== void 0 && (n.openFontSettings = o.fontSettings), o.openFontSize === void 0 && o.fontSize !== void 0 && (n.openFontSize = o.fontSize), o.openLineHeight === void 0 && o.lineHeight !== void 0 && (n.openLineHeight = o.lineHeight), o.openLetterSpacing === void 0 && o.letterSpacing !== void 0 && (n.openLetterSpacing = o.letterSpacing), o.openWordSpacing === void 0 && o.wordSpacing !== void 0 && (n.openWordSpacing = o.wordSpacing), o.openTextAlign === void 0 && o.textAlign !== void 0 && (n.openTextAlign = o.textAlign), o.openTextAppearance === void 0 && o.textAppearance !== void 0 && (n.openTextAppearance = o.textAppearance), o.openLinkColor === void 0) {
|
|
344
|
+
const f = ((c = (r = o.stateOverrides) == null ? void 0 : r.open) == null ? void 0 : c.openLinkColor) ?? ((p = (g = o.stateOverrides) == null ? void 0 : g.open) == null ? void 0 : p.linkColor) ?? o.linkColor;
|
|
345
|
+
f !== void 0 && (n.openLinkColor = f);
|
|
346
|
+
}
|
|
347
|
+
if (o.compactIconColor === void 0) {
|
|
348
|
+
const f = ((u = (d = o.stateOverrides) == null ? void 0 : d.compact) == null ? void 0 : u.iconColor) ?? o.iconColor;
|
|
349
|
+
f !== void 0 && (n.compactIconColor = f);
|
|
350
|
+
}
|
|
351
|
+
if (o.compactLinkColor === void 0) {
|
|
352
|
+
const f = ((z = (L = o.stateOverrides) == null ? void 0 : L.compact) == null ? void 0 : z.linkColor) ?? o.linkColor;
|
|
353
|
+
f !== void 0 && (n.compactLinkColor = f);
|
|
354
|
+
}
|
|
355
|
+
if (o.compactLogoColor === void 0) {
|
|
356
|
+
const f = ((a = (m = o.stateOverrides) == null ? void 0 : m.compact) == null ? void 0 : a.logoColor) ?? o.logoColor;
|
|
357
|
+
f !== void 0 && (n.compactLogoColor = f);
|
|
358
|
+
}
|
|
359
|
+
if (o.openLogoColor === void 0) {
|
|
360
|
+
const f = ((V = (B = o.stateOverrides) == null ? void 0 : B.open) == null ? void 0 : V.logoColor) ?? o.logoColor;
|
|
361
|
+
f !== void 0 && (n.openLogoColor = f);
|
|
362
|
+
}
|
|
363
|
+
if (o.compactBackgroundColor === void 0) {
|
|
364
|
+
const f = ((X = (j = o.stateOverrides) == null ? void 0 : j.compact) == null ? void 0 : X.backgroundColor) ?? ((O = (Y = t.stateOverrides) == null ? void 0 : Y.compact) == null ? void 0 : O.panelColor) ?? t.compactPanelColor ?? t.onScrollPanelColor ?? o.backgroundColor ?? n.backgroundColor;
|
|
365
|
+
f !== void 0 && (n.compactBackgroundColor = f);
|
|
366
|
+
}
|
|
367
|
+
o.logoMaxHeight === void 0 && o.logoMaxWidth !== void 0 && (n.logoMaxHeight = o.logoMaxWidth), o.compactLogoMaxHeight === void 0 && o.compactLogoMaxWidth !== void 0 && (n.compactLogoMaxHeight = o.compactLogoMaxWidth);
|
|
368
|
+
const e = (f, K) => {
|
|
369
|
+
if (o[f] !== void 0) return;
|
|
370
|
+
const q = o[K];
|
|
371
|
+
q !== void 0 && (n[f] = q);
|
|
372
|
+
};
|
|
373
|
+
return e("compactLogoMaxHeight", "logoMaxHeight"), e("compactLogoPosition", "logoPosition"), e("compactPanelHeight", "panelHeight"), e("compactShowIcon", "showIcon"), e("compactIconSize", "iconSize"), e("compactNavTextWidth", "navTextWidth"), e("compactNavTextPosition", "navTextPosition"), e("compactNavTextOffset", "navTextOffset"), e("compactNavGap", "navGap"), e("compactNavPaddingLeft", "navPaddingLeft"), e("compactNavPaddingRight", "navPaddingRight"), e("compactFontFamily", "fontFamily"), e("compactFontSettings", "fontSettings"), e("compactFontSize", "fontSize"), e("compactLineHeight", "lineHeight"), e("compactLetterSpacing", "letterSpacing"), e("compactWordSpacing", "wordSpacing"), e("compactTextAlign", "textAlign"), e("compactTextAppearance", "textAppearance"), Object.keys(n).length === 0 ? o : { ...o, ...n };
|
|
374
|
+
}
|
|
375
|
+
function ea(o, t) {
|
|
376
|
+
const n = Nt({
|
|
377
|
+
textPaddingLeft: o.textPaddingLeft ?? 0,
|
|
378
|
+
textPaddingRight: o.textPaddingRight ?? 0,
|
|
379
|
+
textPaddingTop: o.textPaddingTop ?? 0,
|
|
380
|
+
textPaddingBottom: o.textPaddingBottom ?? 0,
|
|
381
|
+
fontSize: o.openFontSize ?? o.fontSize ?? t.openFontSize ?? t.fontSize
|
|
382
|
+
}), e = {};
|
|
383
|
+
return (o.textPaddingLeft ?? 0) !== n.effectivePaddingLeft && (e.textPaddingLeft = n.effectivePaddingLeft), (o.textPaddingRight ?? 0) !== n.effectivePaddingRight && (e.textPaddingRight = n.effectivePaddingRight), (o.textPaddingTop ?? 0) !== n.effectivePaddingTop && (e.textPaddingTop = n.effectivePaddingTop), (o.textPaddingBottom ?? 0) !== n.effectivePaddingBottom && (e.textPaddingBottom = n.effectivePaddingBottom), Object.keys(e).length === 0 ? o : { ...o, ...e };
|
|
384
|
+
}
|
|
385
|
+
function na(o, t) {
|
|
386
|
+
return {
|
|
387
|
+
paddingLeft: A(o.effectivePaddingLeft, t),
|
|
388
|
+
paddingRight: A(o.effectivePaddingRight, t),
|
|
389
|
+
paddingTop: A(o.effectivePaddingTop, t),
|
|
390
|
+
paddingBottom: A(o.effectivePaddingBottom, t)
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
function aa(o, t, n, e) {
|
|
394
|
+
const r = Math.max(M, n ?? M), c = Math.max(t.effectivePaddingTop, U), g = Math.max(t.effectivePaddingBottom, U), p = Math.max(0, t.panelSize - t.effectivePaddingBottom - r), d = Math.max(0, t.panelSize - t.effectivePaddingTop - r), u = Math.max(t.effectivePaddingLeft, U), L = Math.max(t.effectivePaddingRight, U), z = Math.max(0, t.panelSize - t.effectivePaddingRight - M), m = Math.max(0, t.panelSize - t.effectivePaddingLeft - M);
|
|
395
|
+
return /* @__PURE__ */ C(Nn, { children: [
|
|
396
|
+
/* @__PURE__ */ s(
|
|
397
|
+
"div",
|
|
398
|
+
{
|
|
399
|
+
"data-controls": "textPaddingTop",
|
|
400
|
+
"data-controls-axis": "y",
|
|
401
|
+
"data-controls-variant": "row-padding",
|
|
402
|
+
"data-controls-min": "0",
|
|
403
|
+
"data-controls-max-fraction": String(p),
|
|
404
|
+
className: `${o}-control-anchor`,
|
|
405
|
+
style: { top: 0, left: 0, width: "100%", height: e(c) }
|
|
406
|
+
}
|
|
407
|
+
),
|
|
408
|
+
/* @__PURE__ */ s(
|
|
409
|
+
"div",
|
|
410
|
+
{
|
|
411
|
+
"data-controls": "textPaddingBottom",
|
|
412
|
+
"data-controls-axis": "y",
|
|
413
|
+
"data-controls-variant": "row-padding",
|
|
414
|
+
"data-controls-reverse": "",
|
|
415
|
+
"data-controls-min": "0",
|
|
416
|
+
"data-controls-max-fraction": String(d),
|
|
417
|
+
className: `${o}-control-anchor`,
|
|
418
|
+
style: { bottom: 0, left: 0, width: "100%", height: e(g) }
|
|
419
|
+
}
|
|
420
|
+
),
|
|
421
|
+
/* @__PURE__ */ s(
|
|
422
|
+
"div",
|
|
423
|
+
{
|
|
424
|
+
"data-controls": "textPaddingLeft",
|
|
425
|
+
"data-controls-axis": "x",
|
|
426
|
+
"data-controls-variant": "column-padding",
|
|
427
|
+
"data-controls-min": "0",
|
|
428
|
+
"data-controls-max-fraction": String(z),
|
|
429
|
+
className: `${o}-control-anchor`,
|
|
430
|
+
style: { top: 0, left: 0, width: e(u), height: "100%" }
|
|
431
|
+
}
|
|
432
|
+
),
|
|
433
|
+
/* @__PURE__ */ s(
|
|
434
|
+
"div",
|
|
435
|
+
{
|
|
436
|
+
"data-controls": "textPaddingRight",
|
|
437
|
+
"data-controls-axis": "x",
|
|
438
|
+
"data-controls-variant": "column-padding",
|
|
439
|
+
"data-controls-reverse": "",
|
|
440
|
+
"data-controls-min": "0",
|
|
441
|
+
"data-controls-max-fraction": String(m),
|
|
442
|
+
className: `${o}-control-anchor`,
|
|
443
|
+
style: { top: 0, right: 0, width: e(L), height: "100%" }
|
|
444
|
+
}
|
|
445
|
+
)
|
|
446
|
+
] });
|
|
447
|
+
}
|
|
448
|
+
const ra = {
|
|
449
|
+
iconColor: "icon-color",
|
|
450
|
+
closeButtonColor: "close-button-color",
|
|
451
|
+
linkColor: "link-color",
|
|
452
|
+
openLinkColor: "menu-link-color",
|
|
453
|
+
compactIconColor: "compact-icon-color",
|
|
454
|
+
compactLinkColor: "compact-link-color",
|
|
455
|
+
compactLogoColor: "compact-logo-color",
|
|
456
|
+
compactBackgroundColor: "compact-background-color",
|
|
457
|
+
openLogoColor: "open-logo-color",
|
|
458
|
+
menuBackgroundColor: "menu-background-color",
|
|
459
|
+
overlayColor: "overlay-color",
|
|
460
|
+
backgroundColor: "background-color",
|
|
461
|
+
logoColor: "logo-color"
|
|
462
|
+
}, ia = ["hover", "open"], ca = {
|
|
463
|
+
top: "flex-start",
|
|
464
|
+
center: "center",
|
|
465
|
+
bottom: "flex-end"
|
|
466
|
+
}, la = {
|
|
467
|
+
left: "flex-start",
|
|
468
|
+
center: "center",
|
|
469
|
+
right: "flex-end"
|
|
470
|
+
};
|
|
471
|
+
function sa(o) {
|
|
472
|
+
return `
|
|
473
|
+
.${o}-root {
|
|
474
|
+
position: relative;
|
|
475
|
+
display: block;
|
|
476
|
+
box-sizing: border-box;
|
|
477
|
+
overflow: hidden;
|
|
478
|
+
flex-shrink: 0;
|
|
479
|
+
line-height: 0;
|
|
480
|
+
font-size: 0;
|
|
481
|
+
}
|
|
482
|
+
.${o}-nav-links-inner {
|
|
483
|
+
display: flex;
|
|
484
|
+
align-items: center;
|
|
485
|
+
height: 100%;
|
|
486
|
+
flex-shrink: 0;
|
|
487
|
+
pointer-events: none;
|
|
488
|
+
}
|
|
489
|
+
.${o}-toggle {
|
|
490
|
+
display: block;
|
|
491
|
+
box-sizing: border-box;
|
|
492
|
+
width: 100%;
|
|
493
|
+
height: 100%;
|
|
494
|
+
min-width: 0;
|
|
495
|
+
min-height: 0;
|
|
496
|
+
margin: 0;
|
|
497
|
+
padding: 0;
|
|
498
|
+
border: 0;
|
|
499
|
+
background: none;
|
|
500
|
+
cursor: pointer;
|
|
501
|
+
color: var(--${o}-icon-color);
|
|
502
|
+
transition: color ${y}ms ease;
|
|
503
|
+
line-height: 0;
|
|
504
|
+
font-size: 0;
|
|
505
|
+
-webkit-appearance: none;
|
|
506
|
+
appearance: none;
|
|
507
|
+
}
|
|
508
|
+
.${o}-toggle:focus,
|
|
509
|
+
.${o}-toggle:focus-visible {
|
|
510
|
+
outline: none;
|
|
511
|
+
}
|
|
512
|
+
.${o}-icon {
|
|
513
|
+
display: block;
|
|
514
|
+
width: 100%;
|
|
515
|
+
height: 100%;
|
|
516
|
+
overflow: visible;
|
|
517
|
+
}
|
|
518
|
+
.${o}-icon-line {
|
|
519
|
+
fill: currentColor;
|
|
520
|
+
transform-box: fill-box;
|
|
521
|
+
transform-origin: center;
|
|
522
|
+
transition: transform ${y}ms ease, opacity ${y}ms ease;
|
|
523
|
+
}
|
|
524
|
+
.${o}-root.${o}-open .${o}-icon-line-top {
|
|
525
|
+
transform: translateY(200%) rotate(45deg);
|
|
526
|
+
}
|
|
527
|
+
.${o}-root.${o}-open .${o}-icon-line-mid {
|
|
528
|
+
opacity: 0;
|
|
529
|
+
}
|
|
530
|
+
.${o}-root.${o}-open .${o}-icon-line-bot {
|
|
531
|
+
transform: translateY(-200%) rotate(-45deg);
|
|
532
|
+
}
|
|
533
|
+
.${o}-root.${o}-open .${o}-toggle {
|
|
534
|
+
color: var(--${o}-close-button-color);
|
|
535
|
+
}
|
|
536
|
+
@media (hover: hover) and (pointer: fine) {
|
|
537
|
+
.${o}-interactive .${o}-toggle:hover {
|
|
538
|
+
color: var(--${o}-hover-icon-color, var(--${o}-icon-color));
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
.${o}-interactive .${o}-toggle:active {
|
|
542
|
+
color: var(--${o}-hover-icon-color, var(--${o}-icon-color));
|
|
543
|
+
}
|
|
544
|
+
.${o}-interactive .${o}-toggle:focus-visible,
|
|
545
|
+
.${o}-root.${o}-state-hover .${o}-toggle {
|
|
546
|
+
color: var(--${o}-hover-icon-color, var(--${o}-icon-color));
|
|
547
|
+
}
|
|
548
|
+
.${o}-lightbox {
|
|
549
|
+
position: fixed;
|
|
550
|
+
inset: 0;
|
|
551
|
+
z-index: 2;
|
|
552
|
+
pointer-events: none;
|
|
553
|
+
overscroll-behavior: none;
|
|
554
|
+
overflow: hidden;
|
|
555
|
+
}
|
|
556
|
+
.${o}-lightbox-editor {
|
|
557
|
+
inset: auto;
|
|
558
|
+
top: var(--cntrl-article-top, 0);
|
|
559
|
+
left: var(--cntrl-article-left, 0);
|
|
560
|
+
width: var(--cntrl-article-width, 100vw) !important;
|
|
561
|
+
height: var(--cntrl-viewport-height, 100vh) !important;
|
|
562
|
+
}
|
|
563
|
+
.${o}-lightbox-edit-mode {
|
|
564
|
+
z-index: 1;
|
|
565
|
+
}
|
|
566
|
+
.${o}-lightbox.${o}-lightbox-active {
|
|
567
|
+
pointer-events: auto;
|
|
568
|
+
}
|
|
569
|
+
.${o}-backdrop {
|
|
570
|
+
position: absolute;
|
|
571
|
+
inset: 0;
|
|
572
|
+
border: none;
|
|
573
|
+
padding: 0;
|
|
574
|
+
margin: 0;
|
|
575
|
+
background-color: var(--${o}-overlay-color);
|
|
576
|
+
opacity: 0;
|
|
577
|
+
transition: opacity ${y}ms ease, background-color ${y}ms ease;
|
|
578
|
+
}
|
|
579
|
+
.${o}-lightbox.${o}-lightbox-active .${o}-backdrop {
|
|
580
|
+
opacity: 1;
|
|
581
|
+
}
|
|
582
|
+
.${o}-backdrop-clickable {
|
|
583
|
+
cursor: pointer;
|
|
584
|
+
}
|
|
585
|
+
.${o}-panel {
|
|
586
|
+
position: absolute;
|
|
587
|
+
box-sizing: border-box;
|
|
588
|
+
display: flex;
|
|
589
|
+
flex-direction: column;
|
|
590
|
+
overflow-y: auto;
|
|
591
|
+
background-color: var(--${o}-menu-background-color);
|
|
592
|
+
transition: transform ${y}ms ease, opacity ${y}ms ease, background-color ${y}ms ease;
|
|
593
|
+
box-shadow: 0 0 24px rgba(0, 0, 0, 0.12);
|
|
594
|
+
}
|
|
595
|
+
.${o}-full-lightbox .${o}-panel {
|
|
596
|
+
pointer-events: none;
|
|
597
|
+
box-shadow: none;
|
|
598
|
+
}
|
|
599
|
+
.${o}-full-lightbox .${o}-panel.${o}-panel-blocking {
|
|
600
|
+
pointer-events: auto;
|
|
601
|
+
}
|
|
602
|
+
.${o}-safari-tint {
|
|
603
|
+
position: fixed;
|
|
604
|
+
top: 0;
|
|
605
|
+
left: 0;
|
|
606
|
+
width: 0;
|
|
607
|
+
height: 0;
|
|
608
|
+
pointer-events: none;
|
|
609
|
+
background-color: var(--${o}-menu-background-color);
|
|
610
|
+
opacity: 0;
|
|
611
|
+
}
|
|
612
|
+
.${o}-full-lightbox .${o}-link,
|
|
613
|
+
.${o}-full-lightbox .${o}-gap-control {
|
|
614
|
+
pointer-events: auto;
|
|
615
|
+
}
|
|
616
|
+
.${o}-effect-fade .${o}-panel,
|
|
617
|
+
.${o}-effect-left .${o}-panel,
|
|
618
|
+
.${o}-effect-top .${o}-panel,
|
|
619
|
+
.${o}-effect-right .${o}-panel,
|
|
620
|
+
.${o}-effect-bottom .${o}-panel {
|
|
621
|
+
top: 0;
|
|
622
|
+
left: 0;
|
|
623
|
+
width: 100%;
|
|
624
|
+
height: 100%;
|
|
625
|
+
max-width: 100%;
|
|
626
|
+
max-height: 100%;
|
|
627
|
+
}
|
|
628
|
+
.${o}-effect-fade .${o}-panel {
|
|
629
|
+
opacity: 0;
|
|
630
|
+
transform: none;
|
|
631
|
+
}
|
|
632
|
+
.${o}-effect-fade.${o}-lightbox-active .${o}-panel {
|
|
633
|
+
opacity: 1;
|
|
634
|
+
}
|
|
635
|
+
.${o}-effect-left .${o}-panel {
|
|
636
|
+
transform: translateX(-100%);
|
|
637
|
+
}
|
|
638
|
+
.${o}-effect-left.${o}-lightbox-active .${o}-panel {
|
|
639
|
+
transform: translateX(0);
|
|
640
|
+
}
|
|
641
|
+
.${o}-effect-right .${o}-panel {
|
|
642
|
+
left: auto;
|
|
643
|
+
right: 0;
|
|
644
|
+
transform: translateX(100%);
|
|
645
|
+
}
|
|
646
|
+
.${o}-effect-right.${o}-lightbox-active .${o}-panel {
|
|
647
|
+
transform: translateX(0);
|
|
648
|
+
}
|
|
649
|
+
.${o}-effect-top .${o}-panel {
|
|
650
|
+
transform: translateY(-100%);
|
|
651
|
+
}
|
|
652
|
+
.${o}-effect-top.${o}-lightbox-active .${o}-panel {
|
|
653
|
+
transform: translateY(0);
|
|
654
|
+
}
|
|
655
|
+
.${o}-effect-bottom .${o}-panel {
|
|
656
|
+
top: auto;
|
|
657
|
+
bottom: 0;
|
|
658
|
+
transform: translateY(100%);
|
|
659
|
+
}
|
|
660
|
+
.${o}-effect-bottom.${o}-lightbox-active .${o}-panel {
|
|
661
|
+
transform: translateY(0);
|
|
662
|
+
}
|
|
663
|
+
.${o}-effect-fade .${o}-link,
|
|
664
|
+
.${o}-effect-left .${o}-link,
|
|
665
|
+
.${o}-effect-top .${o}-link,
|
|
666
|
+
.${o}-effect-right .${o}-link,
|
|
667
|
+
.${o}-effect-bottom .${o}-link {
|
|
668
|
+
width: fit-content;
|
|
669
|
+
max-width: 100%;
|
|
670
|
+
}
|
|
671
|
+
.${o}-control-anchor {
|
|
672
|
+
position: absolute;
|
|
673
|
+
pointer-events: none;
|
|
674
|
+
z-index: 2;
|
|
675
|
+
}
|
|
676
|
+
.${o}-gap-control {
|
|
677
|
+
position: relative;
|
|
678
|
+
flex-shrink: 0;
|
|
679
|
+
width: 100%;
|
|
680
|
+
z-index: 2;
|
|
681
|
+
}
|
|
682
|
+
.${o}-gap-control::before {
|
|
683
|
+
content: "";
|
|
684
|
+
position: absolute;
|
|
685
|
+
top: 0;
|
|
686
|
+
left: 0;
|
|
687
|
+
width: 100%;
|
|
688
|
+
height: 100%;
|
|
689
|
+
min-height: 20px;
|
|
690
|
+
pointer-events: auto;
|
|
691
|
+
z-index: 10;
|
|
692
|
+
}
|
|
693
|
+
.${o}-link {
|
|
694
|
+
display: block;
|
|
695
|
+
width: 100%;
|
|
696
|
+
color: var(--${o}-menu-link-color);
|
|
697
|
+
text-decoration: none;
|
|
698
|
+
cursor: default;
|
|
699
|
+
transition: color 200ms ease;
|
|
700
|
+
}
|
|
701
|
+
.${o}-link-text-box {
|
|
702
|
+
position: relative;
|
|
703
|
+
display: flex;
|
|
704
|
+
flex-direction: column;
|
|
705
|
+
flex-shrink: 0;
|
|
706
|
+
min-width: 0;
|
|
707
|
+
box-sizing: border-box;
|
|
708
|
+
}
|
|
709
|
+
.${o}-link-text-inner {
|
|
710
|
+
display: flex;
|
|
711
|
+
flex-direction: column;
|
|
712
|
+
flex-shrink: 0;
|
|
713
|
+
box-sizing: border-box;
|
|
714
|
+
outline: 1px solid #FF5C02;
|
|
715
|
+
}
|
|
716
|
+
.${o}-link-text-inner-hidden {
|
|
717
|
+
display: flex;
|
|
718
|
+
flex-direction: column;
|
|
719
|
+
flex-shrink: 0;
|
|
720
|
+
box-sizing: border-box;
|
|
721
|
+
}
|
|
722
|
+
.${o}-link-text {
|
|
723
|
+
display: block;
|
|
724
|
+
width: 100%;
|
|
725
|
+
white-space: pre-wrap;
|
|
726
|
+
overflow-wrap: anywhere;
|
|
727
|
+
word-break: break-word;
|
|
728
|
+
}
|
|
729
|
+
.${o}-text-tight-leading {
|
|
730
|
+
display: block;
|
|
731
|
+
flex-shrink: 0;
|
|
732
|
+
padding-top: var(--${o}-text-leading-gap, 0);
|
|
733
|
+
padding-bottom: var(--${o}-text-leading-gap, 0);
|
|
734
|
+
}
|
|
735
|
+
.${o}-interactive .${o}-has-href {
|
|
736
|
+
cursor: pointer;
|
|
737
|
+
}
|
|
738
|
+
@media (hover: hover) and (pointer: fine) {
|
|
739
|
+
.${o}-interactive .${o}-has-href:hover {
|
|
740
|
+
color: var(--${o}-hover-link-color, var(--${o}-link-color));
|
|
741
|
+
outline: none;
|
|
742
|
+
}
|
|
743
|
+
.${o}-interactive .${o}-lightbox .${o}-has-href:hover {
|
|
744
|
+
color: var(--${o}-open-hover-menu-link-color, var(--${o}-menu-link-color));
|
|
745
|
+
outline: none;
|
|
746
|
+
}
|
|
747
|
+
.${o}-interactive .${o}-has-href:hover .${o}-link-text {
|
|
748
|
+
color: inherit;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
.${o}-interactive .${o}-has-href:active {
|
|
752
|
+
color: var(--${o}-hover-link-color, var(--${o}-link-color));
|
|
753
|
+
outline: none;
|
|
754
|
+
}
|
|
755
|
+
.${o}-interactive .${o}-lightbox .${o}-has-href:active {
|
|
756
|
+
color: var(--${o}-open-hover-menu-link-color, var(--${o}-menu-link-color));
|
|
757
|
+
outline: none;
|
|
758
|
+
}
|
|
759
|
+
.${o}-interactive .${o}-has-href:active .${o}-link-text {
|
|
760
|
+
color: inherit;
|
|
761
|
+
}
|
|
762
|
+
.${o}-interactive .${o}-has-href:focus-visible,
|
|
763
|
+
.${o}-lightbox.${o}-state-hover .${o}-has-href {
|
|
764
|
+
color: var(--${o}-hover-link-color, var(--${o}-link-color));
|
|
765
|
+
outline: none;
|
|
766
|
+
}
|
|
767
|
+
.${o}-interactive .${o}-lightbox .${o}-has-href:focus-visible,
|
|
768
|
+
.${o}-lightbox.${o}-state-hover .${o}-link.${o}-has-href {
|
|
769
|
+
color: var(--${o}-open-hover-menu-link-color, var(--${o}-menu-link-color));
|
|
770
|
+
outline: none;
|
|
771
|
+
}
|
|
772
|
+
.${o}-interactive .${o}-has-href:focus-visible .${o}-link-text,
|
|
773
|
+
.${o}-lightbox.${o}-state-hover .${o}-has-href .${o}-link-text {
|
|
774
|
+
color: inherit;
|
|
775
|
+
}
|
|
776
|
+
.${o}-editor .${o}-toggle {
|
|
777
|
+
cursor: default;
|
|
778
|
+
pointer-events: none;
|
|
779
|
+
}
|
|
780
|
+
.${o}-nav-slide {
|
|
781
|
+
position: relative;
|
|
782
|
+
transform: translateY(var(--cntrl-nav-slide, 0%));
|
|
783
|
+
transition: transform 320ms ease;
|
|
784
|
+
}
|
|
785
|
+
.${o}-nav-bar {
|
|
786
|
+
position: relative;
|
|
787
|
+
display: flex;
|
|
788
|
+
align-items: center;
|
|
789
|
+
box-sizing: border-box;
|
|
790
|
+
width: 100%;
|
|
791
|
+
height: 100%;
|
|
792
|
+
background-color: var(--${o}-background-color);
|
|
793
|
+
padding-left: var(--${o}-nav-padding-x, 0);
|
|
794
|
+
padding-right: var(--${o}-nav-padding-x, 0);
|
|
795
|
+
gap: var(--${o}-nav-inner-gap, 0);
|
|
796
|
+
}
|
|
797
|
+
.${o}-nav-logo {
|
|
798
|
+
position: absolute;
|
|
799
|
+
top: 0;
|
|
800
|
+
z-index: 1;
|
|
801
|
+
display: flex;
|
|
802
|
+
flex-shrink: 0;
|
|
803
|
+
align-items: center;
|
|
804
|
+
height: 100%;
|
|
805
|
+
min-width: 0;
|
|
806
|
+
pointer-events: auto;
|
|
807
|
+
}
|
|
808
|
+
.${o}-nav-logo-left {
|
|
809
|
+
left: 0;
|
|
810
|
+
right: auto;
|
|
811
|
+
transform: none;
|
|
812
|
+
}
|
|
813
|
+
.${o}-nav-logo-center {
|
|
814
|
+
left: 50%;
|
|
815
|
+
right: auto;
|
|
816
|
+
transform: translateX(-50%);
|
|
817
|
+
}
|
|
818
|
+
.${o}-nav-logo-right {
|
|
819
|
+
left: auto;
|
|
820
|
+
right: 0;
|
|
821
|
+
transform: none;
|
|
822
|
+
}
|
|
823
|
+
.${o}-nav-logo-inner {
|
|
824
|
+
position: relative;
|
|
825
|
+
flex-shrink: 0;
|
|
826
|
+
width: auto;
|
|
827
|
+
max-height: 100%;
|
|
828
|
+
}
|
|
829
|
+
.${o}-nav-logo-img {
|
|
830
|
+
display: block;
|
|
831
|
+
width: auto;
|
|
832
|
+
height: 100%;
|
|
833
|
+
max-height: 100%;
|
|
834
|
+
object-fit: contain;
|
|
835
|
+
}
|
|
836
|
+
.${o}-nav-logo-tinted .${o}-nav-logo-img {
|
|
837
|
+
opacity: 0;
|
|
838
|
+
}
|
|
839
|
+
.${o}-nav-logo-tint {
|
|
840
|
+
display: none;
|
|
841
|
+
}
|
|
842
|
+
.${o}-nav-logo-tinted .${o}-nav-logo-tint {
|
|
843
|
+
display: block;
|
|
844
|
+
position: absolute;
|
|
845
|
+
inset: 0;
|
|
846
|
+
background-color: var(--${o}-logo-color);
|
|
847
|
+
-webkit-mask: var(--${o}-logo-image) no-repeat center / contain;
|
|
848
|
+
mask: var(--${o}-logo-image) no-repeat center / contain;
|
|
849
|
+
-webkit-mask-source-type: alpha;
|
|
850
|
+
mask-mode: alpha;
|
|
851
|
+
pointer-events: none;
|
|
852
|
+
transition: background-color 200ms ease;
|
|
853
|
+
}
|
|
854
|
+
.${o}-root.${o}-state-compact .${o}-nav-logo-tinted .${o}-nav-logo-tint {
|
|
855
|
+
background-color: var(--${o}-compact-logo-color);
|
|
856
|
+
}
|
|
857
|
+
.${o}-root.${o}-state-open .${o}-nav-logo-tinted .${o}-nav-logo-tint {
|
|
858
|
+
background-color: var(--${o}-open-logo-color, var(--${o}-logo-color));
|
|
859
|
+
}
|
|
860
|
+
@media (hover: hover) and (pointer: fine) {
|
|
861
|
+
.${o}-interactive .${o}-nav-logo:hover .${o}-nav-logo-tint {
|
|
862
|
+
background-color: var(--${o}-hover-logo-color, var(--${o}-logo-color));
|
|
863
|
+
}
|
|
864
|
+
.${o}-interactive.${o}-state-compact .${o}-nav-logo:hover .${o}-nav-logo-tint {
|
|
865
|
+
background-color: var(--${o}-compact-hover-compact-logo-color, var(--${o}-compact-logo-color));
|
|
866
|
+
}
|
|
867
|
+
.${o}-interactive.${o}-state-open .${o}-nav-logo:hover .${o}-nav-logo-tint {
|
|
868
|
+
background-color: var(--${o}-open-hover-open-logo-color, var(--${o}-open-logo-color, var(--${o}-logo-color)));
|
|
869
|
+
}
|
|
870
|
+
}
|
|
871
|
+
.${o}-interactive .${o}-nav-logo:active .${o}-nav-logo-tint {
|
|
872
|
+
background-color: var(--${o}-hover-logo-color, var(--${o}-logo-color));
|
|
873
|
+
}
|
|
874
|
+
.${o}-interactive.${o}-state-compact .${o}-nav-logo:active .${o}-nav-logo-tint {
|
|
875
|
+
background-color: var(--${o}-compact-hover-compact-logo-color, var(--${o}-compact-logo-color));
|
|
876
|
+
}
|
|
877
|
+
.${o}-interactive.${o}-state-open .${o}-nav-logo:active .${o}-nav-logo-tint {
|
|
878
|
+
background-color: var(--${o}-open-hover-open-logo-color, var(--${o}-open-logo-color, var(--${o}-logo-color)));
|
|
879
|
+
}
|
|
880
|
+
.${o}-root.${o}-state-hover .${o}-nav-logo-tinted .${o}-nav-logo-tint {
|
|
881
|
+
background-color: var(--${o}-hover-logo-color, var(--${o}-logo-color));
|
|
882
|
+
}
|
|
883
|
+
.${o}-root.${o}-state-compact.${o}-state-hover .${o}-nav-logo-tinted .${o}-nav-logo-tint {
|
|
884
|
+
background-color: var(--${o}-compact-hover-compact-logo-color, var(--${o}-compact-logo-color));
|
|
885
|
+
}
|
|
886
|
+
.${o}-root.${o}-state-open.${o}-state-hover .${o}-nav-logo-tinted .${o}-nav-logo-tint {
|
|
887
|
+
background-color: var(--${o}-open-hover-open-logo-color, var(--${o}-open-logo-color, var(--${o}-logo-color)));
|
|
888
|
+
}
|
|
889
|
+
.${o}-nav-links {
|
|
890
|
+
position: absolute;
|
|
891
|
+
top: 0;
|
|
892
|
+
height: 100%;
|
|
893
|
+
display: flex;
|
|
894
|
+
align-items: center;
|
|
895
|
+
min-width: 0;
|
|
896
|
+
flex-shrink: 0;
|
|
897
|
+
pointer-events: none;
|
|
898
|
+
z-index: 0;
|
|
899
|
+
}
|
|
900
|
+
.${o}-nav-links-left {
|
|
901
|
+
left: 0;
|
|
902
|
+
right: auto;
|
|
903
|
+
}
|
|
904
|
+
.${o}-nav-links-center {
|
|
905
|
+
left: 50%;
|
|
906
|
+
right: auto;
|
|
907
|
+
}
|
|
908
|
+
.${o}-nav-links-right {
|
|
909
|
+
left: auto;
|
|
910
|
+
right: 0;
|
|
911
|
+
}
|
|
912
|
+
.${o}-nav-links .${o}-nav-link,
|
|
913
|
+
.${o}-nav-links .${o}-gap-control {
|
|
914
|
+
pointer-events: auto;
|
|
915
|
+
}
|
|
916
|
+
.${o}-nav-gap-control {
|
|
917
|
+
flex-shrink: 0;
|
|
918
|
+
}
|
|
919
|
+
.${o}-nav-links .${o}-gap-control {
|
|
920
|
+
position: relative;
|
|
921
|
+
width: auto;
|
|
922
|
+
height: 100%;
|
|
923
|
+
min-height: 20px;
|
|
924
|
+
z-index: 2;
|
|
925
|
+
}
|
|
926
|
+
.${o}-nav-links .${o}-gap-control::before {
|
|
927
|
+
width: 100%;
|
|
928
|
+
height: 100%;
|
|
929
|
+
min-width: 20px;
|
|
930
|
+
min-height: 20px;
|
|
931
|
+
}
|
|
932
|
+
.${o}-nav-link {
|
|
933
|
+
display: inline-flex;
|
|
934
|
+
align-items: center;
|
|
935
|
+
flex-shrink: 0;
|
|
936
|
+
color: var(--${o}-link-color);
|
|
937
|
+
text-decoration: none;
|
|
938
|
+
cursor: default;
|
|
939
|
+
transition: color 200ms ease;
|
|
940
|
+
}
|
|
941
|
+
@media (hover: hover) and (pointer: fine) {
|
|
942
|
+
.${o}-interactive .${o}-nav-link.${o}-has-href:hover {
|
|
943
|
+
color: var(--${o}-hover-link-color, var(--${o}-link-color));
|
|
944
|
+
outline: none;
|
|
945
|
+
}
|
|
946
|
+
.${o}-interactive.${o}-state-compact .${o}-nav-link.${o}-has-href:hover {
|
|
947
|
+
color: var(--${o}-compact-hover-compact-link-color, var(--${o}-compact-link-color));
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
.${o}-interactive .${o}-nav-link.${o}-has-href:active {
|
|
951
|
+
color: var(--${o}-hover-link-color, var(--${o}-link-color));
|
|
952
|
+
outline: none;
|
|
953
|
+
}
|
|
954
|
+
.${o}-interactive.${o}-state-compact .${o}-nav-link.${o}-has-href:active {
|
|
955
|
+
color: var(--${o}-compact-hover-compact-link-color, var(--${o}-compact-link-color));
|
|
956
|
+
}
|
|
957
|
+
.${o}-interactive .${o}-nav-link.${o}-has-href:focus-visible,
|
|
958
|
+
.${o}-root.${o}-state-hover .${o}-nav-link.${o}-has-href {
|
|
959
|
+
color: var(--${o}-hover-link-color, var(--${o}-link-color));
|
|
960
|
+
outline: none;
|
|
961
|
+
}
|
|
962
|
+
.${o}-interactive.${o}-state-compact .${o}-nav-link.${o}-has-href:focus-visible,
|
|
963
|
+
.${o}-root.${o}-state-compact.${o}-state-hover .${o}-nav-link.${o}-has-href {
|
|
964
|
+
color: var(--${o}-compact-hover-compact-link-color, var(--${o}-compact-link-color));
|
|
965
|
+
}
|
|
966
|
+
.${o}-root.${o}-state-compact .${o}-nav-bar {
|
|
967
|
+
background-color: var(--${o}-compact-background-color);
|
|
968
|
+
}
|
|
969
|
+
.${o}-root.${o}-state-compact .${o}-toggle {
|
|
970
|
+
color: var(--${o}-compact-icon-color);
|
|
971
|
+
}
|
|
972
|
+
@media (hover: hover) and (pointer: fine) {
|
|
973
|
+
.${o}-interactive.${o}-state-compact .${o}-toggle:hover {
|
|
974
|
+
color: var(--${o}-compact-hover-compact-icon-color, var(--${o}-compact-icon-color));
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
.${o}-interactive.${o}-state-compact .${o}-toggle:active {
|
|
978
|
+
color: var(--${o}-compact-hover-compact-icon-color, var(--${o}-compact-icon-color));
|
|
979
|
+
}
|
|
980
|
+
.${o}-interactive.${o}-state-compact .${o}-toggle:focus-visible,
|
|
981
|
+
.${o}-root.${o}-state-compact.${o}-state-hover .${o}-toggle {
|
|
982
|
+
color: var(--${o}-compact-hover-compact-icon-color, var(--${o}-compact-icon-color));
|
|
983
|
+
}
|
|
984
|
+
.${o}-root.${o}-state-compact .${o}-nav-link {
|
|
985
|
+
color: var(--${o}-compact-link-color);
|
|
986
|
+
}
|
|
987
|
+
.${o}-lightbox.${o}-state-compact .${o}-panel {
|
|
988
|
+
background-color: var(--${o}-compact-menu-background-color, var(--${o}-menu-background-color));
|
|
989
|
+
}
|
|
990
|
+
.${o}-lightbox.${o}-state-compact .${o}-safari-tint {
|
|
991
|
+
background-color: var(--${o}-compact-menu-background-color, var(--${o}-menu-background-color));
|
|
992
|
+
}
|
|
993
|
+
.${o}-lightbox.${o}-state-compact .${o}-backdrop {
|
|
994
|
+
background-color: var(--${o}-compact-overlay-color, var(--${o}-overlay-color));
|
|
995
|
+
}
|
|
996
|
+
@media (hover: hover) and (pointer: fine) {
|
|
997
|
+
.${o}-interactive .${o}-has-href:hover {
|
|
998
|
+
color: var(--${o}-hover-link-color, var(--${o}-link-color));
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
.${o}-interactive .${o}-has-href:active {
|
|
1002
|
+
color: var(--${o}-hover-link-color, var(--${o}-link-color));
|
|
1003
|
+
}
|
|
1004
|
+
.${o}-interactive .${o}-has-href:focus-visible,
|
|
1005
|
+
.${o}-lightbox.${o}-state-hover .${o}-has-href,
|
|
1006
|
+
.${o}-root.${o}-state-hover .${o}-has-href {
|
|
1007
|
+
color: var(--${o}-hover-link-color, var(--${o}-link-color));
|
|
1008
|
+
}
|
|
1009
|
+
.${o}-root.${o}-state-compact.${o}-state-hover .${o}-has-href {
|
|
1010
|
+
color: var(--${o}-compact-hover-compact-link-color, var(--${o}-compact-link-color));
|
|
1011
|
+
}
|
|
1012
|
+
.${o}-root.${o}-state-open .${o}-toggle {
|
|
1013
|
+
color: var(--${o}-close-button-color);
|
|
1014
|
+
}
|
|
1015
|
+
@media (hover: hover) and (pointer: fine) {
|
|
1016
|
+
.${o}-interactive.${o}-state-open .${o}-toggle:hover {
|
|
1017
|
+
color: var(--${o}-open-hover-close-button-color, var(--${o}-close-button-color));
|
|
1018
|
+
}
|
|
1019
|
+
}
|
|
1020
|
+
.${o}-interactive.${o}-state-open .${o}-toggle:active {
|
|
1021
|
+
color: var(--${o}-open-hover-close-button-color, var(--${o}-close-button-color));
|
|
1022
|
+
}
|
|
1023
|
+
.${o}-interactive.${o}-state-open .${o}-toggle:focus-visible,
|
|
1024
|
+
.${o}-root.${o}-state-open.${o}-state-hover .${o}-toggle {
|
|
1025
|
+
color: var(--${o}-open-hover-close-button-color, var(--${o}-close-button-color));
|
|
1026
|
+
}
|
|
1027
|
+
.${o}-lightbox .${o}-link {
|
|
1028
|
+
color: var(--${o}-menu-link-color);
|
|
1029
|
+
}
|
|
1030
|
+
.${o}-lightbox.${o}-state-open .${o}-panel {
|
|
1031
|
+
background-color: var(--${o}-open-menu-background-color, var(--${o}-menu-background-color));
|
|
1032
|
+
}
|
|
1033
|
+
.${o}-lightbox.${o}-state-open .${o}-safari-tint {
|
|
1034
|
+
background-color: var(--${o}-open-menu-background-color, var(--${o}-menu-background-color));
|
|
1035
|
+
}
|
|
1036
|
+
.${o}-lightbox.${o}-state-open .${o}-backdrop {
|
|
1037
|
+
background-color: var(--${o}-open-overlay-color, var(--${o}-overlay-color));
|
|
1038
|
+
}
|
|
1039
|
+
.${o}-lightbox.${o}-state-open.${o}-state-hover .${o}-has-href,
|
|
1040
|
+
.${o}-root.${o}-state-open.${o}-state-hover .${o}-has-href {
|
|
1041
|
+
color: var(--${o}-open-hover-menu-link-color, var(--${o}-menu-link-color));
|
|
1042
|
+
}
|
|
1043
|
+
.${o}-nav-toggle-wrap {
|
|
1044
|
+
position: absolute;
|
|
1045
|
+
top: 0;
|
|
1046
|
+
height: 100%;
|
|
1047
|
+
display: flex;
|
|
1048
|
+
flex-direction: row;
|
|
1049
|
+
flex-shrink: 0;
|
|
1050
|
+
align-items: center;
|
|
1051
|
+
z-index: 3;
|
|
1052
|
+
pointer-events: auto;
|
|
1053
|
+
transform: translateY(var(--cntrl-nav-slide, 0%));
|
|
1054
|
+
transition: transform 320ms ease;
|
|
1055
|
+
}
|
|
1056
|
+
.${o}-nav-toggle-wrap-right {
|
|
1057
|
+
right: 0;
|
|
1058
|
+
left: auto;
|
|
1059
|
+
}
|
|
1060
|
+
.${o}-nav-toggle-wrap-left {
|
|
1061
|
+
left: 0;
|
|
1062
|
+
right: auto;
|
|
1063
|
+
}
|
|
1064
|
+
.${o}-nav-padding-left,
|
|
1065
|
+
.${o}-nav-padding-right {
|
|
1066
|
+
position: relative;
|
|
1067
|
+
flex-shrink: 0;
|
|
1068
|
+
height: 100%;
|
|
1069
|
+
}
|
|
1070
|
+
.${o}-nav-toggle-wrap .${o}-root {
|
|
1071
|
+
line-height: 0;
|
|
1072
|
+
font-size: 0;
|
|
1073
|
+
}
|
|
1074
|
+
.${o}-nav-state-anim {
|
|
1075
|
+
transition: margin-top ${v}ms ease;
|
|
1076
|
+
}
|
|
1077
|
+
.${o}-nav-state-anim .${o}-nav-bar {
|
|
1078
|
+
transition:
|
|
1079
|
+
background-color ${y}ms ease,
|
|
1080
|
+
height ${v}ms ease,
|
|
1081
|
+
min-height ${v}ms ease,
|
|
1082
|
+
padding ${v}ms ease,
|
|
1083
|
+
gap ${v}ms ease;
|
|
1084
|
+
}
|
|
1085
|
+
.${o}-nav-state-anim .${o}-nav-logo,
|
|
1086
|
+
.${o}-nav-state-anim .${o}-nav-toggle-wrap,
|
|
1087
|
+
.${o}-nav-state-anim .${o}-nav-links {
|
|
1088
|
+
transition:
|
|
1089
|
+
left ${v}ms ease,
|
|
1090
|
+
right ${v}ms ease,
|
|
1091
|
+
transform ${v}ms ease;
|
|
1092
|
+
}
|
|
1093
|
+
.${o}-nav-state-anim .${o}-nav-logo-inner,
|
|
1094
|
+
.${o}-nav-state-anim .${o}-nav-padding-left,
|
|
1095
|
+
.${o}-nav-state-anim .${o}-nav-padding-right,
|
|
1096
|
+
.${o}-nav-state-anim .${o}-nav-gap-control,
|
|
1097
|
+
.${o}-nav-state-anim .${o}-link-text-box {
|
|
1098
|
+
transition:
|
|
1099
|
+
width ${v}ms ease,
|
|
1100
|
+
height ${v}ms ease;
|
|
1101
|
+
}
|
|
1102
|
+
.${o}-nav-state-anim .${o}-nav-logo-tint {
|
|
1103
|
+
transition:
|
|
1104
|
+
background-color ${v}ms ease;
|
|
1105
|
+
}
|
|
1106
|
+
.${o}-nav-state-anim .${o}-nav-toggle-wrap .${o}-root {
|
|
1107
|
+
transition:
|
|
1108
|
+
width ${v}ms ease,
|
|
1109
|
+
height ${v}ms ease,
|
|
1110
|
+
min-width ${v}ms ease,
|
|
1111
|
+
min-height ${v}ms ease,
|
|
1112
|
+
max-width ${v}ms ease,
|
|
1113
|
+
max-height ${v}ms ease;
|
|
1114
|
+
}
|
|
1115
|
+
.${o}-nav-state-anim .${o}-icon-line {
|
|
1116
|
+
transition:
|
|
1117
|
+
transform ${y}ms ease,
|
|
1118
|
+
opacity ${y}ms ease;
|
|
1119
|
+
}
|
|
1120
|
+
.${o}-nav-state-anim .${o}-nav-link,
|
|
1121
|
+
.${o}-nav-state-anim .${o}-link,
|
|
1122
|
+
.${o}-nav-state-anim .${o}-link-text,
|
|
1123
|
+
.${o}-nav-state-anim .${o}-text-tight-leading {
|
|
1124
|
+
transition:
|
|
1125
|
+
color 200ms ease,
|
|
1126
|
+
font-size ${v}ms ease,
|
|
1127
|
+
line-height ${v}ms ease,
|
|
1128
|
+
letter-spacing ${v}ms ease,
|
|
1129
|
+
word-spacing ${v}ms ease,
|
|
1130
|
+
padding ${v}ms ease;
|
|
1131
|
+
}
|
|
1132
|
+
`;
|
|
1133
|
+
}
|
|
1134
|
+
function _o(o) {
|
|
1135
|
+
return o ? !o.startsWith("http://") && !o.startsWith("https://") && !o.startsWith("blob:") && !o.startsWith("data:") : !1;
|
|
1136
|
+
}
|
|
1137
|
+
function da(o, t) {
|
|
1138
|
+
var e;
|
|
1139
|
+
const n = (e = o.logo) == null ? void 0 : e.icon;
|
|
1140
|
+
return !o.logo || _o(n) || !t ? o : {
|
|
1141
|
+
...o,
|
|
1142
|
+
logo: {
|
|
1143
|
+
...o.logo,
|
|
1144
|
+
icon: t
|
|
1145
|
+
}
|
|
1146
|
+
};
|
|
1147
|
+
}
|
|
1148
|
+
function ga(o) {
|
|
1149
|
+
return `url("${o.replace(/\\/g, "\\\\").replace(/"/g, '\\"')}")`;
|
|
1150
|
+
}
|
|
1151
|
+
function fa(o) {
|
|
1152
|
+
const t = o.trim().toLowerCase();
|
|
1153
|
+
return t.startsWith("data:image/svg+xml") || t.includes("image/svg+xml") ? !0 : t.includes(".svg");
|
|
1154
|
+
}
|
|
1155
|
+
function pa(o) {
|
|
1156
|
+
const t = fa(o), [n, e] = I(!1);
|
|
1157
|
+
return N(() => {
|
|
1158
|
+
if (t || !o.startsWith("blob:")) {
|
|
1159
|
+
e(!1);
|
|
1160
|
+
return;
|
|
1161
|
+
}
|
|
1162
|
+
let r = !1;
|
|
1163
|
+
return fetch(o).then((c) => c.blob()).then(async (c) => {
|
|
1164
|
+
if (r) return;
|
|
1165
|
+
if (c.type.includes("svg")) {
|
|
1166
|
+
e(!0);
|
|
1167
|
+
return;
|
|
1168
|
+
}
|
|
1169
|
+
if (c.type.startsWith("image/") && !c.type.includes("svg")) {
|
|
1170
|
+
e(!1);
|
|
1171
|
+
return;
|
|
1172
|
+
}
|
|
1173
|
+
const g = await c.text();
|
|
1174
|
+
r || e(/<svg[\s>]/i.test(g.trim()));
|
|
1175
|
+
}).catch(() => {
|
|
1176
|
+
r || e(!1);
|
|
1177
|
+
}), () => {
|
|
1178
|
+
r = !0;
|
|
1179
|
+
};
|
|
1180
|
+
}, [t, o]), t || n;
|
|
1181
|
+
}
|
|
1182
|
+
function va(o, t) {
|
|
1183
|
+
const [n, e] = I(dt(o) ? o : null);
|
|
1184
|
+
return N(() => {
|
|
1185
|
+
if (!t || !o) {
|
|
1186
|
+
e(null);
|
|
1187
|
+
return;
|
|
1188
|
+
}
|
|
1189
|
+
if (dt(o)) {
|
|
1190
|
+
e(o);
|
|
1191
|
+
return;
|
|
1192
|
+
}
|
|
1193
|
+
let r = !1;
|
|
1194
|
+
return Fn(o).then((c) => {
|
|
1195
|
+
r || e(c);
|
|
1196
|
+
}).catch(() => {
|
|
1197
|
+
r || e(null);
|
|
1198
|
+
}), () => {
|
|
1199
|
+
r = !0;
|
|
1200
|
+
};
|
|
1201
|
+
}, [t, o]), t ? n : null;
|
|
1202
|
+
}
|
|
1203
|
+
function ha(o) {
|
|
1204
|
+
const t = o.indexOf("#");
|
|
1205
|
+
if (t === -1) return "";
|
|
1206
|
+
try {
|
|
1207
|
+
return decodeURIComponent(o.slice(t + 1));
|
|
1208
|
+
} catch {
|
|
1209
|
+
return o.slice(t + 1);
|
|
1210
|
+
}
|
|
1211
|
+
}
|
|
1212
|
+
function $a(o) {
|
|
1213
|
+
if (!o || o.startsWith("#")) return !0;
|
|
1214
|
+
try {
|
|
1215
|
+
return new URL(o, window.location.href).pathname === window.location.pathname;
|
|
1216
|
+
} catch {
|
|
1217
|
+
return !1;
|
|
1218
|
+
}
|
|
1219
|
+
}
|
|
1220
|
+
function zt(o) {
|
|
1221
|
+
if (!o) return null;
|
|
1222
|
+
const t = document.getElementById(o), n = document.querySelector(`[data-section-id="${CSS.escape(o)}"]`), e = t ?? n;
|
|
1223
|
+
return e instanceof HTMLElement ? e : null;
|
|
1224
|
+
}
|
|
1225
|
+
function St(o) {
|
|
1226
|
+
const t = zt(o);
|
|
1227
|
+
return t ? (t.scrollIntoView({ behavior: "smooth", block: "start" }), !0) : !1;
|
|
1228
|
+
}
|
|
1229
|
+
function ua(o, t, n = {}) {
|
|
1230
|
+
const { isEditor: e, isPreviewMode: r, item: c, pages: g, onLinkNavigate: p } = n, d = n.runAfterClose ?? ((m) => m()), u = o.currentTarget.getAttribute("href") ?? "", L = ha(u), z = o.currentTarget.target === "_blank";
|
|
1231
|
+
if (c && p) {
|
|
1232
|
+
o.preventDefault(), o.stopPropagation();
|
|
1233
|
+
const m = Ro(c, g), a = Lt(c), B = {
|
|
1234
|
+
mode: a.type === "url" ? "url" : "page",
|
|
1235
|
+
href: m.href || u,
|
|
1236
|
+
page: a.type === "page" ? a.value : void 0,
|
|
1237
|
+
url: a.type === "url" ? a.value : void 0,
|
|
1238
|
+
anchor: a.type === "anchor" ? a.value.replace(/^#/, "") : (a.anchor ?? "").replace(/^#/, ""),
|
|
1239
|
+
target: m.target
|
|
1240
|
+
};
|
|
1241
|
+
B.target === "_blank" ? p(B) : d(() => p(B)), t();
|
|
1242
|
+
return;
|
|
1243
|
+
}
|
|
1244
|
+
if (e) {
|
|
1245
|
+
o.preventDefault(), d(() => St(L)), t();
|
|
1246
|
+
return;
|
|
1247
|
+
}
|
|
1248
|
+
!z && L && $a(u) && zt(L) && (o.preventDefault(), d(() => St(L))), t();
|
|
1249
|
+
}
|
|
1250
|
+
const ma = [
|
|
1251
|
+
"--cntrl-article-width",
|
|
1252
|
+
"--cntrl-article-top",
|
|
1253
|
+
"--cntrl-article-left",
|
|
1254
|
+
"--cntrl-viewport-height"
|
|
1255
|
+
];
|
|
1256
|
+
function xa(o) {
|
|
1257
|
+
let t = o;
|
|
1258
|
+
for (; t; ) {
|
|
1259
|
+
if (getComputedStyle(t).getPropertyValue("--cntrl-article-width").trim())
|
|
1260
|
+
return t;
|
|
1261
|
+
t = t.parentElement;
|
|
1262
|
+
}
|
|
1263
|
+
return o;
|
|
1264
|
+
}
|
|
1265
|
+
function ka(o) {
|
|
1266
|
+
const t = {}, n = xa(o);
|
|
1267
|
+
if (!n) return t;
|
|
1268
|
+
const e = getComputedStyle(n);
|
|
1269
|
+
for (const r of ma) {
|
|
1270
|
+
const c = e.getPropertyValue(r).trim();
|
|
1271
|
+
c && (t[r] = c);
|
|
1272
|
+
}
|
|
1273
|
+
return t;
|
|
1274
|
+
}
|
|
1275
|
+
function yt(o, t, n, e, r) {
|
|
1276
|
+
return /* @__PURE__ */ s(
|
|
1277
|
+
"span",
|
|
1278
|
+
{
|
|
1279
|
+
className: `${o}-link-text-box`,
|
|
1280
|
+
style: { width: r(n), maxWidth: "100%" },
|
|
1281
|
+
children: /* @__PURE__ */ s(
|
|
1282
|
+
"span",
|
|
1283
|
+
{
|
|
1284
|
+
className: e ? `${o}-link-text-inner` : `${o}-link-text-inner-hidden`,
|
|
1285
|
+
style: { width: "100%" },
|
|
1286
|
+
children: t
|
|
1287
|
+
}
|
|
1288
|
+
)
|
|
1289
|
+
}
|
|
1290
|
+
);
|
|
1291
|
+
}
|
|
1292
|
+
function Ha({
|
|
1293
|
+
settings: o,
|
|
1294
|
+
isEditor: t,
|
|
1295
|
+
isEditMode: n,
|
|
1296
|
+
isPreviewMode: e,
|
|
1297
|
+
activeEvent: r,
|
|
1298
|
+
currentState: c,
|
|
1299
|
+
isSwitchClone: g = !1,
|
|
1300
|
+
unavailableStates: p = [],
|
|
1301
|
+
layoutId: d,
|
|
1302
|
+
pages: u,
|
|
1303
|
+
onLinkNavigate: L,
|
|
1304
|
+
onUpdateSettings: z,
|
|
1305
|
+
onOpenChange: m
|
|
1306
|
+
}) {
|
|
1307
|
+
var st;
|
|
1308
|
+
const { prefix: a } = zn(), B = S(null), V = S(null), j = S(null), X = S(null), Y = S(null), O = S(0), f = S(null), K = S(null), q = S(d), Bt = uo(() => sa(a), [a]), [Ht, Z] = I(!1), [W, xo] = I(!1), [Mo, ao] = I(!1), _ = Mn(c), Ot = uo(() => new Set(p), [p]), ko = (i) => !!(i && Ot.has(i)), h = !!(t && !e && _ === "open" && !ko("open")) || !(t && !e) && Ht, bo = !!(t && !e), J = h && !bo;
|
|
1309
|
+
Bn(J), N(() => {
|
|
1310
|
+
if (!h || !bo) return;
|
|
1311
|
+
const i = document.documentElement, l = i.style.overflow;
|
|
1312
|
+
return i.style.overflow = "hidden", () => {
|
|
1313
|
+
i.style.overflow = l;
|
|
1314
|
+
};
|
|
1315
|
+
}, [h, bo]);
|
|
1316
|
+
const Ft = !ko("compact") && !ko("onScroll"), It = !t || !!e && !n, ro = r && r !== "default" ? r : void 0, w = Ft && _ === "compact" ? "compact" : "default", [Wo, Rt] = I(w), [So, Eo] = I(!1), Go = !n;
|
|
1317
|
+
w !== Wo && (Rt(w), Go && Eo(!0));
|
|
1318
|
+
const _t = At(o), {
|
|
1319
|
+
logo: E,
|
|
1320
|
+
logoMaxHeight: Mt = 120 / 1440,
|
|
1321
|
+
logoPosition: Wt = "left",
|
|
1322
|
+
panelHeight: Do = 60 / 1440,
|
|
1323
|
+
backgroundColor: Et = "#b3b3b3",
|
|
1324
|
+
logoColor: Gt = "#000000",
|
|
1325
|
+
position: Dt,
|
|
1326
|
+
horizontalAlign: Ut,
|
|
1327
|
+
verticalAlign: Vt,
|
|
1328
|
+
iconColor: jt = "#000000",
|
|
1329
|
+
showIcon: Xt = "on",
|
|
1330
|
+
iconSize: Yt = 16 / 1440,
|
|
1331
|
+
linkColor: Kt = "#000000",
|
|
1332
|
+
openLinkColor: qt = "#000000",
|
|
1333
|
+
compactIconColor: Zt = "#000000",
|
|
1334
|
+
compactLinkColor: Jt = "#000000",
|
|
1335
|
+
compactLogoColor: Qt = "#000000",
|
|
1336
|
+
compactBackgroundColor: Pt = "#ffffff",
|
|
1337
|
+
compactLogoMaxHeight: oe = 120 / 1440,
|
|
1338
|
+
compactLogoPosition: te,
|
|
1339
|
+
compactPanelHeight: ee = 60 / 1440,
|
|
1340
|
+
compactShowIcon: ne = "on",
|
|
1341
|
+
compactIconSize: ae = 16 / 1440,
|
|
1342
|
+
compactNavTextWidth: re,
|
|
1343
|
+
compactNavTextPosition: ie,
|
|
1344
|
+
compactNavTextOffset: ce,
|
|
1345
|
+
compactNavGap: le,
|
|
1346
|
+
compactNavPaddingLeft: se = 10 / 1440,
|
|
1347
|
+
compactNavPaddingRight: de = 10 / 1440,
|
|
1348
|
+
compactFontFamily: ge,
|
|
1349
|
+
compactFontSettings: fe,
|
|
1350
|
+
compactFontSize: pe,
|
|
1351
|
+
compactLineHeight: ve,
|
|
1352
|
+
compactLetterSpacing: he = 0,
|
|
1353
|
+
compactWordSpacing: $e = 0,
|
|
1354
|
+
compactTextAlign: ue = "left",
|
|
1355
|
+
compactTextAppearance: me,
|
|
1356
|
+
openLogoColor: xe = "#000000",
|
|
1357
|
+
menuBackgroundColor: Uo = "#ffffff",
|
|
1358
|
+
overlayColor: ke = "rgba(0, 0, 0, 0.45)",
|
|
1359
|
+
closeButtonColor: be = "#000000",
|
|
1360
|
+
effect: yo = "fade",
|
|
1361
|
+
openPanelSize: Vo = 100,
|
|
1362
|
+
textWidth: jo = 280 / 1440,
|
|
1363
|
+
navTextWidth: Se,
|
|
1364
|
+
navTextPosition: ye = "center",
|
|
1365
|
+
navTextOffset: Ce = 0,
|
|
1366
|
+
gap: Xo = 0,
|
|
1367
|
+
navGap: Le,
|
|
1368
|
+
navPaddingLeft: we = 10 / 1440,
|
|
1369
|
+
navPaddingRight: Te = 10 / 1440,
|
|
1370
|
+
textPaddingLeft: Yo = 10 / 1440,
|
|
1371
|
+
textPaddingRight: Ko = 10 / 1440,
|
|
1372
|
+
textPaddingTop: qo = 10 / 1440,
|
|
1373
|
+
textPaddingBottom: Zo = 10 / 1440,
|
|
1374
|
+
fontFamily: Ne,
|
|
1375
|
+
fontSettings: Ae,
|
|
1376
|
+
fontSize: ze,
|
|
1377
|
+
lineHeight: Be,
|
|
1378
|
+
letterSpacing: He = 0,
|
|
1379
|
+
wordSpacing: Oe = 0,
|
|
1380
|
+
textAlign: Fe = "left",
|
|
1381
|
+
textAppearance: Ie,
|
|
1382
|
+
openFontFamily: Re,
|
|
1383
|
+
openFontSettings: _e,
|
|
1384
|
+
openFontSize: Me,
|
|
1385
|
+
openLineHeight: We,
|
|
1386
|
+
openLetterSpacing: Ee,
|
|
1387
|
+
openWordSpacing: Ge,
|
|
1388
|
+
openTextAlign: De,
|
|
1389
|
+
openTextAppearance: Ue,
|
|
1390
|
+
stateOverrides: Jo,
|
|
1391
|
+
link: Qo
|
|
1392
|
+
} = _t, { horizontalAlign: Ve, verticalAlign: je } = Pn({
|
|
1393
|
+
position: Dt,
|
|
1394
|
+
horizontalAlign: Ut,
|
|
1395
|
+
verticalAlign: Vt
|
|
1396
|
+
}), x = w === "compact", Xe = x ? oe : Mt, io = Wn(x ? te : Wt), co = x ? ee : Do, Co = x ? ae : Yt, Ye = x ? re : Se, Po = En(x ? ie : ye), Ke = (x ? ce : Ce) ?? 0, qe = x ? le : Le, ot = x ? se : we, tt = x ? de : Te, Ze = Ye ?? jo, Je = h || (x ? ne : Xt) !== "off", Lo = An(a, {
|
|
1397
|
+
iconColor: jt,
|
|
1398
|
+
closeButtonColor: be,
|
|
1399
|
+
linkColor: Kt,
|
|
1400
|
+
openLinkColor: qt,
|
|
1401
|
+
compactIconColor: Zt,
|
|
1402
|
+
compactLinkColor: Jt,
|
|
1403
|
+
compactLogoColor: Qt,
|
|
1404
|
+
compactBackgroundColor: Pt,
|
|
1405
|
+
openLogoColor: xe,
|
|
1406
|
+
menuBackgroundColor: Uo,
|
|
1407
|
+
overlayColor: ke,
|
|
1408
|
+
backgroundColor: Et,
|
|
1409
|
+
logoColor: Gt
|
|
1410
|
+
}, ra, ia, Jo), wo = ut(x ? {
|
|
1411
|
+
fontFamily: ge,
|
|
1412
|
+
fontSettings: fe,
|
|
1413
|
+
fontSize: pe,
|
|
1414
|
+
lineHeight: ve,
|
|
1415
|
+
letterSpacing: he,
|
|
1416
|
+
wordSpacing: $e,
|
|
1417
|
+
textAlign: ue,
|
|
1418
|
+
textAppearance: me
|
|
1419
|
+
} : {
|
|
1420
|
+
fontFamily: Ne,
|
|
1421
|
+
fontSettings: Ae,
|
|
1422
|
+
fontSize: ze,
|
|
1423
|
+
lineHeight: Be,
|
|
1424
|
+
letterSpacing: He,
|
|
1425
|
+
wordSpacing: Oe,
|
|
1426
|
+
textAlign: Fe,
|
|
1427
|
+
textAppearance: Ie
|
|
1428
|
+
}), Q = ut({
|
|
1429
|
+
fontFamily: Re,
|
|
1430
|
+
fontSettings: _e,
|
|
1431
|
+
fontSize: Me,
|
|
1432
|
+
lineHeight: We,
|
|
1433
|
+
letterSpacing: Ee,
|
|
1434
|
+
wordSpacing: Ge,
|
|
1435
|
+
textAlign: De,
|
|
1436
|
+
textAppearance: Ue
|
|
1437
|
+
}, wo), To = mt(a, wo, t), No = mt(a, Q, t), Qe = pt(j, ht(wo)), Pe = pt(X, ht(Q)), on = {
|
|
1438
|
+
...No.css,
|
|
1439
|
+
whiteSpace: "pre-wrap",
|
|
1440
|
+
transform: vt(Pe)
|
|
1441
|
+
}, tn = No.className, H = (i) => A(i, t), en = qe ?? Xo, nn = Math.max(ot, U), an = Math.max(tt, U), rn = Math.max(0, 1 - Co), cn = Math.max(0, 1 - Co), lo = n ?? !1, so = lo && !h, et = uo(
|
|
1442
|
+
() => Nt({
|
|
1443
|
+
textPaddingLeft: Yo,
|
|
1444
|
+
textPaddingRight: Ko,
|
|
1445
|
+
textPaddingTop: qo,
|
|
1446
|
+
textPaddingBottom: Zo,
|
|
1447
|
+
fontSize: Q.fontSize
|
|
1448
|
+
}),
|
|
1449
|
+
[
|
|
1450
|
+
Yo,
|
|
1451
|
+
Ko,
|
|
1452
|
+
qo,
|
|
1453
|
+
Zo,
|
|
1454
|
+
Q.fontSize
|
|
1455
|
+
]
|
|
1456
|
+
), nt = (i) => {
|
|
1457
|
+
const l = /* @__PURE__ */ s("span", { className: tn, style: on, children: xt(i) });
|
|
1458
|
+
return yt(
|
|
1459
|
+
a,
|
|
1460
|
+
l,
|
|
1461
|
+
jo,
|
|
1462
|
+
lo,
|
|
1463
|
+
H
|
|
1464
|
+
);
|
|
1465
|
+
}, ln = yo === "left" || yo === "right" ? { width: `${Vo}%` } : { height: `${Vo}%` }, sn = {
|
|
1466
|
+
...na(et, t),
|
|
1467
|
+
...ln,
|
|
1468
|
+
alignItems: la[Ve],
|
|
1469
|
+
justifyContent: ca[je]
|
|
1470
|
+
}, P = S(o), go = S(d), Ao = S(null);
|
|
1471
|
+
_o((st = o.logo) == null ? void 0 : st.icon) && (Ao.current = o.logo.icon), N(() => {
|
|
1472
|
+
var ho;
|
|
1473
|
+
if (!z || !t) {
|
|
1474
|
+
P.current = o, go.current = d;
|
|
1475
|
+
return;
|
|
1476
|
+
}
|
|
1477
|
+
const i = (ho = o.logo) == null ? void 0 : ho.icon;
|
|
1478
|
+
if (o.logo && !_o(i) && !Ao.current) {
|
|
1479
|
+
P.current = o, go.current = d;
|
|
1480
|
+
return;
|
|
1481
|
+
}
|
|
1482
|
+
const l = ($o) => {
|
|
1483
|
+
z(da($o, Ao.current));
|
|
1484
|
+
};
|
|
1485
|
+
if (go.current !== d) {
|
|
1486
|
+
P.current = o, go.current = d;
|
|
1487
|
+
const $o = bt(o);
|
|
1488
|
+
$o !== o && l($o);
|
|
1489
|
+
return;
|
|
1490
|
+
}
|
|
1491
|
+
const $ = bt(o), k = P.current, b = k !== o, T = b ? ea($, k) : $;
|
|
1492
|
+
P.current = o;
|
|
1493
|
+
const D = $ !== o, eo = b && oa($, T);
|
|
1494
|
+
!D && !eo || l(T);
|
|
1495
|
+
}, [o, z, t, d]);
|
|
1496
|
+
const G = A(Co, t), dn = {
|
|
1497
|
+
width: G,
|
|
1498
|
+
height: G,
|
|
1499
|
+
minWidth: G,
|
|
1500
|
+
minHeight: G,
|
|
1501
|
+
maxWidth: G,
|
|
1502
|
+
maxHeight: G
|
|
1503
|
+
}, gn = {
|
|
1504
|
+
...To.css,
|
|
1505
|
+
textDecoration: "none",
|
|
1506
|
+
transform: vt(Qe)
|
|
1507
|
+
}, fn = To.className, at = (E == null ? void 0 : E.mode) !== "Off", oo = (E == null ? void 0 : E.icon) ?? "", pn = pa(oo), to = va(oo, pn), fo = !!to, vn = H(Math.min(Xe, co)), zo = !!(at && oo && io === "right") ? "left" : "right", rt = Array.isArray(Qo) ? Qo : [], Bo = [
|
|
1508
|
+
w !== "default" ? `${a}-state-${w}` : "",
|
|
1509
|
+
h || _ === "open" ? `${a}-state-open` : "",
|
|
1510
|
+
ro && ro !== w && ro !== _ ? `${a}-state-${ro}` : ""
|
|
1511
|
+
].filter(Boolean).join(" "), hn = t && !e ? `${a}-editor` : "", it = It ? `${a}-interactive` : "", $n = Go && (w !== Wo || So) ? `${a}-nav-state-anim` : "", un = h ? `${a}-open` : "", mn = uo(
|
|
1512
|
+
() => ka(B.current),
|
|
1513
|
+
[W, h, d]
|
|
1514
|
+
), Ho = () => {
|
|
1515
|
+
Z(!1);
|
|
1516
|
+
}, Oo = !t || e, xn = (i) => {
|
|
1517
|
+
if (J) {
|
|
1518
|
+
K.current = i;
|
|
1519
|
+
return;
|
|
1520
|
+
}
|
|
1521
|
+
i();
|
|
1522
|
+
};
|
|
1523
|
+
N(() => {
|
|
1524
|
+
if (h) return;
|
|
1525
|
+
const i = K.current;
|
|
1526
|
+
K.current = null, i == null || i();
|
|
1527
|
+
}, [h]);
|
|
1528
|
+
const ct = (i, l) => {
|
|
1529
|
+
ua(i, Ho, {
|
|
1530
|
+
isEditor: t,
|
|
1531
|
+
isPreviewMode: e,
|
|
1532
|
+
item: l,
|
|
1533
|
+
pages: u,
|
|
1534
|
+
onLinkNavigate: L,
|
|
1535
|
+
runAfterClose: xn
|
|
1536
|
+
});
|
|
1537
|
+
}, kn = () => {
|
|
1538
|
+
t && !e || Z((i) => !i);
|
|
1539
|
+
}, bn = (i) => {
|
|
1540
|
+
i.pointerType === "touch" && i.currentTarget.blur();
|
|
1541
|
+
}, po = () => {
|
|
1542
|
+
f.current !== null && (window.clearTimeout(f.current), f.current = null);
|
|
1543
|
+
};
|
|
1544
|
+
N(() => {
|
|
1545
|
+
if (!So) return;
|
|
1546
|
+
const i = window.setTimeout(() => {
|
|
1547
|
+
Eo(!1);
|
|
1548
|
+
}, v);
|
|
1549
|
+
return () => window.clearTimeout(i);
|
|
1550
|
+
}, [So, w]), N(() => {
|
|
1551
|
+
if (h) {
|
|
1552
|
+
po(), xo(!0);
|
|
1553
|
+
return;
|
|
1554
|
+
}
|
|
1555
|
+
return O.current += 1, ao(!1), po(), f.current = window.setTimeout(() => {
|
|
1556
|
+
f.current = null, xo(!1);
|
|
1557
|
+
}, y), po;
|
|
1558
|
+
}, [h]), mo(() => {
|
|
1559
|
+
q.current !== d && (q.current = d, O.current += 1, po(), Z(!1), ao(!1), xo(!1));
|
|
1560
|
+
}, [d]), mo(() => {
|
|
1561
|
+
var $;
|
|
1562
|
+
if (!W || !h)
|
|
1563
|
+
return;
|
|
1564
|
+
const i = O.current + 1;
|
|
1565
|
+
O.current = i, ao(!1), ($ = V.current) == null || $.offsetHeight;
|
|
1566
|
+
const l = requestAnimationFrame(() => {
|
|
1567
|
+
O.current === i && ao(!0);
|
|
1568
|
+
});
|
|
1569
|
+
return () => {
|
|
1570
|
+
cancelAnimationFrame(l);
|
|
1571
|
+
};
|
|
1572
|
+
}, [W, h]), mo(() => {
|
|
1573
|
+
if (!J || !W) return;
|
|
1574
|
+
const i = Y.current;
|
|
1575
|
+
if (!i) return;
|
|
1576
|
+
const l = getComputedStyle(i).backgroundColor;
|
|
1577
|
+
if (!l) return;
|
|
1578
|
+
const $ = document.documentElement, { body: k } = document, b = $.style.backgroundColor, T = k.style.backgroundColor;
|
|
1579
|
+
return $.style.backgroundColor = l, k.style.backgroundColor = l, () => {
|
|
1580
|
+
$.style.backgroundColor = b, k.style.backgroundColor = T;
|
|
1581
|
+
};
|
|
1582
|
+
}, [J, W, Bo, Uo, Jo]), N(() => {
|
|
1583
|
+
m == null || m(h);
|
|
1584
|
+
}, [h, m]), N(() => {
|
|
1585
|
+
if (!h) return;
|
|
1586
|
+
const i = (l) => {
|
|
1587
|
+
l.key === "Escape" && (t && e || Ho());
|
|
1588
|
+
};
|
|
1589
|
+
return window.addEventListener("keydown", i), () => window.removeEventListener("keydown", i);
|
|
1590
|
+
}, [h, t, e]), N(() => {
|
|
1591
|
+
t && !e && _ !== "open" && Z(!1);
|
|
1592
|
+
}, [t, e, _]), N(() => {
|
|
1593
|
+
e && Z(!1);
|
|
1594
|
+
}, [e]);
|
|
1595
|
+
const lt = lo && h, Sn = (i) => rt.filter((l) => Vn(l, d)).map((l, $) => {
|
|
1596
|
+
const { label: k, href: b, target: T } = Ro(l, u), D = b ? /* @__PURE__ */ s(
|
|
1597
|
+
"a",
|
|
1598
|
+
{
|
|
1599
|
+
href: b,
|
|
1600
|
+
target: T,
|
|
1601
|
+
rel: T === "_blank" ? "noopener noreferrer" : void 0,
|
|
1602
|
+
className: `${i} ${a}-has-href`,
|
|
1603
|
+
onClick: (eo) => ct(eo, l),
|
|
1604
|
+
children: nt(k)
|
|
1605
|
+
}
|
|
1606
|
+
) : /* @__PURE__ */ s("span", { className: i, children: nt(k) });
|
|
1607
|
+
return /* @__PURE__ */ C(Io, { children: [
|
|
1608
|
+
$ > 0 && /* @__PURE__ */ s(
|
|
1609
|
+
"div",
|
|
1610
|
+
{
|
|
1611
|
+
"data-controls": lt ? "gap" : void 0,
|
|
1612
|
+
"data-controls-axis": "y",
|
|
1613
|
+
className: lt ? `${a}-gap-control` : void 0,
|
|
1614
|
+
style: { height: H(Xo) }
|
|
1615
|
+
}
|
|
1616
|
+
),
|
|
1617
|
+
D
|
|
1618
|
+
] }, $);
|
|
1619
|
+
}), yn = W ? /* @__PURE__ */ C(
|
|
1620
|
+
"div",
|
|
1621
|
+
{
|
|
1622
|
+
ref: V,
|
|
1623
|
+
"data-selection": "none",
|
|
1624
|
+
className: [
|
|
1625
|
+
`${a}-lightbox`,
|
|
1626
|
+
`${a}-full-lightbox ${a}-effect-${yo}`,
|
|
1627
|
+
Mo ? `${a}-lightbox-active` : "",
|
|
1628
|
+
`${a}-lightbox-editor`,
|
|
1629
|
+
n ? `${a}-lightbox-edit-mode` : "",
|
|
1630
|
+
it,
|
|
1631
|
+
Bo
|
|
1632
|
+
].filter(Boolean).join(" "),
|
|
1633
|
+
style: { ...Lo, ...mn },
|
|
1634
|
+
"aria-hidden": !Mo,
|
|
1635
|
+
children: [
|
|
1636
|
+
/* @__PURE__ */ s(
|
|
1637
|
+
"div",
|
|
1638
|
+
{
|
|
1639
|
+
className: [`${a}-backdrop`, Oo ? `${a}-backdrop-clickable` : ""].filter(Boolean).join(" "),
|
|
1640
|
+
"aria-hidden": "true",
|
|
1641
|
+
onClick: Oo ? Ho : void 0
|
|
1642
|
+
}
|
|
1643
|
+
),
|
|
1644
|
+
/* @__PURE__ */ C(
|
|
1645
|
+
"nav",
|
|
1646
|
+
{
|
|
1647
|
+
className: [`${a}-panel`, Oo ? `${a}-panel-blocking` : ""].filter(Boolean).join(" "),
|
|
1648
|
+
style: sn,
|
|
1649
|
+
"aria-label": "Menu",
|
|
1650
|
+
"data-lightbox-scrollable": "",
|
|
1651
|
+
children: [
|
|
1652
|
+
lo && aa(a, et, Q.fontSize, H),
|
|
1653
|
+
Sn(`${a}-link`)
|
|
1654
|
+
]
|
|
1655
|
+
}
|
|
1656
|
+
),
|
|
1657
|
+
J ? /* @__PURE__ */ s("div", { ref: Y, className: `${a}-safari-tint`, "aria-hidden": "true" }) : null
|
|
1658
|
+
]
|
|
1659
|
+
}
|
|
1660
|
+
) : null, Cn = () => /* @__PURE__ */ s(
|
|
1661
|
+
"button",
|
|
1662
|
+
{
|
|
1663
|
+
type: "button",
|
|
1664
|
+
className: `${a}-toggle`,
|
|
1665
|
+
onClick: kn,
|
|
1666
|
+
onPointerUp: bn,
|
|
1667
|
+
"aria-expanded": h,
|
|
1668
|
+
"aria-label": h ? "Close menu" : "Open menu",
|
|
1669
|
+
children: /* @__PURE__ */ s(Yn, { className: `${a}-icon`, lineClassName: `${a}-icon-line` })
|
|
1670
|
+
}
|
|
1671
|
+
), vo = (i) => {
|
|
1672
|
+
const l = i === "left", $ = l ? ot : tt, k = l ? nn : an, b = l ? rn : cn, T = x ? l ? "compactNavPaddingLeft" : "compactNavPaddingRight" : l ? "navPaddingLeft" : "navPaddingRight";
|
|
1673
|
+
return /* @__PURE__ */ s(
|
|
1674
|
+
"div",
|
|
1675
|
+
{
|
|
1676
|
+
className: l ? `${a}-nav-padding-left` : `${a}-nav-padding-right`,
|
|
1677
|
+
style: { width: H($), flexShrink: 0 },
|
|
1678
|
+
children: so ? /* @__PURE__ */ s(
|
|
1679
|
+
"div",
|
|
1680
|
+
{
|
|
1681
|
+
"data-controls": T,
|
|
1682
|
+
"data-controls-axis": "x",
|
|
1683
|
+
"data-controls-variant": "column-padding",
|
|
1684
|
+
...l ? {} : { "data-controls-reverse": "" },
|
|
1685
|
+
"data-controls-min": "0",
|
|
1686
|
+
"data-controls-max-fraction": String(b),
|
|
1687
|
+
className: `${a}-control-anchor`,
|
|
1688
|
+
style: {
|
|
1689
|
+
top: 0,
|
|
1690
|
+
[l ? "left" : "right"]: 0,
|
|
1691
|
+
width: H(k),
|
|
1692
|
+
height: "100%"
|
|
1693
|
+
}
|
|
1694
|
+
}
|
|
1695
|
+
) : null
|
|
1696
|
+
}
|
|
1697
|
+
);
|
|
1698
|
+
}, Ln = (i, l) => {
|
|
1699
|
+
const { label: $, href: k, target: b } = Ro(i, u), T = /* @__PURE__ */ s("span", { className: fn, style: gn, children: xt($) }), D = yt(
|
|
1700
|
+
a,
|
|
1701
|
+
T,
|
|
1702
|
+
Ze,
|
|
1703
|
+
so,
|
|
1704
|
+
H
|
|
1705
|
+
), eo = k ? /* @__PURE__ */ s(
|
|
1706
|
+
"a",
|
|
1707
|
+
{
|
|
1708
|
+
href: k,
|
|
1709
|
+
target: b,
|
|
1710
|
+
rel: b === "_blank" ? "noopener noreferrer" : void 0,
|
|
1711
|
+
className: `${a}-nav-link ${a}-has-href`,
|
|
1712
|
+
onClick: (ho) => ct(ho, i),
|
|
1713
|
+
children: D
|
|
1714
|
+
}
|
|
1715
|
+
) : /* @__PURE__ */ s("span", { className: `${a}-nav-link`, children: D });
|
|
1716
|
+
return /* @__PURE__ */ C(Io, { children: [
|
|
1717
|
+
l > 0 && /* @__PURE__ */ s(
|
|
1718
|
+
"div",
|
|
1719
|
+
{
|
|
1720
|
+
"data-controls": so ? x ? "compactNavGap" : "navGap" : void 0,
|
|
1721
|
+
"data-controls-axis": "x",
|
|
1722
|
+
className: so ? `${a}-gap-control ${a}-nav-gap-control` : `${a}-nav-gap-control}`,
|
|
1723
|
+
style: { width: H(en), flexShrink: 0 }
|
|
1724
|
+
}
|
|
1725
|
+
),
|
|
1726
|
+
eo
|
|
1727
|
+
] }, l);
|
|
1728
|
+
}, wn = {
|
|
1729
|
+
...Lo,
|
|
1730
|
+
height: A(co, t),
|
|
1731
|
+
minHeight: A(co, t),
|
|
1732
|
+
[`--${a}-panel-height`]: A(co, t)
|
|
1733
|
+
}, Tn = g && w === "default" && _ !== "open" && !e ? H(Do + In) : "0px";
|
|
1734
|
+
return /* @__PURE__ */ C(
|
|
1735
|
+
"div",
|
|
1736
|
+
{
|
|
1737
|
+
ref: B,
|
|
1738
|
+
className: `${a}-root ${Bo} ${hn} ${it} ${$n}`.trim(),
|
|
1739
|
+
style: {
|
|
1740
|
+
width: "100%",
|
|
1741
|
+
height: "100%",
|
|
1742
|
+
lineHeight: 0,
|
|
1743
|
+
fontSize: 0,
|
|
1744
|
+
marginTop: Tn,
|
|
1745
|
+
...Lo
|
|
1746
|
+
},
|
|
1747
|
+
children: [
|
|
1748
|
+
/* @__PURE__ */ s("style", { dangerouslySetInnerHTML: { __html: Bt } }),
|
|
1749
|
+
/* @__PURE__ */ s("span", { ref: j, "aria-hidden": !0, style: $t(To.css), children: "H" }),
|
|
1750
|
+
/* @__PURE__ */ s("span", { ref: X, "aria-hidden": !0, style: $t(No.css), children: "H" }),
|
|
1751
|
+
/* @__PURE__ */ s("div", { className: `${a}-nav-slide`, children: /* @__PURE__ */ C("div", { className: `${a}-nav-bar`, style: wn, children: [
|
|
1752
|
+
at && oo ? /* @__PURE__ */ C("div", { className: `${a}-nav-logo ${a}-nav-logo-${io}`, children: [
|
|
1753
|
+
io === "left" ? vo("left") : null,
|
|
1754
|
+
/* @__PURE__ */ C(
|
|
1755
|
+
"div",
|
|
1756
|
+
{
|
|
1757
|
+
className: `${a}-nav-logo-inner${fo ? ` ${a}-nav-logo-tinted` : ""}`,
|
|
1758
|
+
style: {
|
|
1759
|
+
height: vn,
|
|
1760
|
+
...fo && to ? { [`--${a}-logo-image`]: ga(to) } : {}
|
|
1761
|
+
},
|
|
1762
|
+
children: [
|
|
1763
|
+
/* @__PURE__ */ s(
|
|
1764
|
+
"img",
|
|
1765
|
+
{
|
|
1766
|
+
src: fo && to ? to : oo,
|
|
1767
|
+
alt: "",
|
|
1768
|
+
className: `${a}-nav-logo-img`
|
|
1769
|
+
}
|
|
1770
|
+
),
|
|
1771
|
+
fo ? /* @__PURE__ */ s("span", { className: `${a}-nav-logo-tint`, "aria-hidden": "true" }) : null
|
|
1772
|
+
]
|
|
1773
|
+
}
|
|
1774
|
+
),
|
|
1775
|
+
io === "right" ? vo("right") : null
|
|
1776
|
+
] }) : null,
|
|
1777
|
+
/* @__PURE__ */ s(
|
|
1778
|
+
"nav",
|
|
1779
|
+
{
|
|
1780
|
+
className: `${a}-nav-links ${a}-nav-links-${Po}`,
|
|
1781
|
+
style: { transform: Gn(Po, Ke, t) },
|
|
1782
|
+
"aria-label": "Navigation",
|
|
1783
|
+
children: /* @__PURE__ */ s("div", { className: `${a}-nav-links-inner`, children: rt.filter((i) => Un(i, w, d)).map((i, l) => Ln(i, l)) })
|
|
1784
|
+
}
|
|
1785
|
+
)
|
|
1786
|
+
] }) }),
|
|
1787
|
+
yn,
|
|
1788
|
+
/* @__PURE__ */ C("div", { className: `${a}-nav-toggle-wrap ${a}-nav-toggle-wrap-${zo}`, children: [
|
|
1789
|
+
zo === "left" ? vo("left") : null,
|
|
1790
|
+
Je ? /* @__PURE__ */ s(
|
|
1791
|
+
"div",
|
|
1792
|
+
{
|
|
1793
|
+
className: `${a}-root ${un}`.trim(),
|
|
1794
|
+
style: dn,
|
|
1795
|
+
children: Cn()
|
|
1796
|
+
}
|
|
1797
|
+
) : null,
|
|
1798
|
+
zo === "right" ? vo("right") : null
|
|
1799
|
+
] })
|
|
1800
|
+
]
|
|
1801
|
+
}
|
|
1802
|
+
);
|
|
1803
|
+
}
|
|
1804
|
+
export {
|
|
1805
|
+
Ha as Burger,
|
|
1806
|
+
ea as applyBurgerSettingsChange
|
|
1807
|
+
};
|