@bobbykim/mcl-header 0.6.4 → 0.7.1
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/index.d.ts +417 -236
- package/dist/mcl-header.js +299 -299
- package/dist/mcl-header.umd.cjs +1 -1
- package/package.json +11 -11
package/dist/mcl-header.js
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
(function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('.nav__decorator[data-v-1b1467b6]:before{content:"";position:absolute;bottom:0;left:0;height:100%;width:0;transition:width .3s linear}.nav__text:focus+.nav__decorator[data-v-1b1467b6]:before,.nav__text:hover+.nav__decorator[data-v-1b1467b6]:before{width:100%}.nav__decorator[data-v-3cd6e9eb]:before{content:"";position:absolute;bottom:0;left:0;height:100%;width:0;transition:width .3s linear}.nav__text:focus+.nav__decorator[data-v-3cd6e9eb]:before,.nav__text:hover+.nav__decorator[data-v-3cd6e9eb]:before{width:100%}.nav__decorator[data-v-94d8fa7b]:before{content:"";position:absolute;bottom:0;left:0;height:100%;width:0;transition:width .3s linear}.nav__text:focus+.nav__decorator[data-v-94d8fa7b]:before,.nav__text:hover+.nav__decorator[data-v-94d8fa7b]:before{width:100%}')),document.head.appendChild(t)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
-
import { defineComponent as D, ref as
|
|
3
|
-
import o, { vCollapse as
|
|
4
|
-
const
|
|
5
|
-
ue
|
|
6
|
-
], ce = { class: "relative pt-2xs" }, he = { class: "relative flex flex-col" }, fe = ["href", "target", "onClick"], me = /* @__PURE__ */ D({
|
|
2
|
+
import { defineComponent as D, ref as R, computed as E, openBlock as i, createElementBlock as c, createElementVNode as n, withDirectives as _, normalizeClass as T, toDisplayString as A, unref as B, createCommentVNode as z, createVNode as G, withCtx as O, Fragment as S, renderList as X, withKeys as V, useSlots as U, createBlock as x, renderSlot as j } from "vue";
|
|
3
|
+
import o, { vCollapse as q, Collapse as J, DropdownContainer as ee, DropdownContent as le, HeaderHorizontal as te, HeaderVertical as oe } from "@bobbykim/manguito-theme";
|
|
4
|
+
const ne = { class: "flex flex-col w-full" }, ie = { class: "self-center" }, ae = { class: "relative pt-2xs" }, re = { class: "relative flex flex-col" }, se = ["href", "target", "onClick"], ue = /* @__PURE__ */ D({
|
|
7
5
|
__name: "NavCollapse",
|
|
8
6
|
props: {
|
|
9
7
|
navId: {},
|
|
@@ -19,74 +17,76 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
19
17
|
asLink: { type: Boolean, default: !0 }
|
|
20
18
|
},
|
|
21
19
|
emits: ["child-click", "label-click"],
|
|
22
|
-
setup(
|
|
23
|
-
const
|
|
24
|
-
const { navId: t } =
|
|
20
|
+
setup(L, { emit: w }) {
|
|
21
|
+
const y = L, p = w, g = R(!1), v = E(() => {
|
|
22
|
+
const { navId: t } = y;
|
|
25
23
|
return `nav-${t.toLowerCase().replaceAll(" ", "-")}`;
|
|
26
|
-
}), a =
|
|
27
|
-
const { navAccordionGroup: t } =
|
|
24
|
+
}), a = E(() => {
|
|
25
|
+
const { navAccordionGroup: t } = y;
|
|
28
26
|
return `accordion-${t.toLocaleLowerCase().replaceAll(" ", "-")}`;
|
|
29
27
|
}), h = (t) => {
|
|
30
28
|
g.value = t;
|
|
31
|
-
},
|
|
32
|
-
p("label-click", t,
|
|
33
|
-
},
|
|
34
|
-
const { asLink: l } =
|
|
35
|
-
!l && t.preventDefault(), p("child-click", t,
|
|
36
|
-
},
|
|
29
|
+
}, k = (t, r) => {
|
|
30
|
+
p("label-click", t, r, g.value);
|
|
31
|
+
}, b = (t, r) => {
|
|
32
|
+
const { asLink: l } = y;
|
|
33
|
+
!l && t.preventDefault(), p("child-click", t, r);
|
|
34
|
+
}, s = (t, r, l) => {
|
|
37
35
|
const f = [
|
|
38
36
|
o("BODYTEXT", t),
|
|
39
|
-
o("TEXTCOLOR",
|
|
37
|
+
o("TEXTCOLOR", r)
|
|
40
38
|
];
|
|
41
39
|
return l && f.push("font-bold"), f.join(" ");
|
|
42
40
|
};
|
|
43
|
-
return (t,
|
|
44
|
-
n("div",
|
|
45
|
-
|
|
46
|
-
class:
|
|
47
|
-
onClick:
|
|
41
|
+
return (t, r) => (i(), c("div", ne, [
|
|
42
|
+
n("div", ie, [
|
|
43
|
+
_((i(), c("button", {
|
|
44
|
+
class: T(["tracking-wider align-middle outline-none nav__text flex items-center gap-3xs", s(t.menuTextSize, t.menuTextColor, t.menuTextBold)]),
|
|
45
|
+
onClick: r[0] || (r[0] = (l) => k(l, t.navItem.title))
|
|
48
46
|
}, [
|
|
49
47
|
n("span", null, A(t.navItem.title), 1),
|
|
50
|
-
(i(),
|
|
48
|
+
(i(), c("svg", {
|
|
51
49
|
xmlns: "http://www.w3.org/2000/svg",
|
|
52
50
|
viewBox: "0 0 448 512",
|
|
53
|
-
class:
|
|
51
|
+
class: T(["h-[0.8rem] fill-current", [
|
|
54
52
|
g.value ? "rotate-180" : "rotate-0",
|
|
55
53
|
"transition-transform duration-300 ease-in"
|
|
56
54
|
]])
|
|
57
|
-
},
|
|
55
|
+
}, r[1] || (r[1] = [
|
|
56
|
+
n("path", { d: "M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z" }, null, -1)
|
|
57
|
+
]), 2))
|
|
58
58
|
], 2)), [
|
|
59
|
-
[
|
|
59
|
+
[B(q), void 0, v.value]
|
|
60
60
|
]),
|
|
61
|
-
t.displayHighlight ? (i(),
|
|
61
|
+
t.displayHighlight ? (i(), c("div", {
|
|
62
62
|
key: 0,
|
|
63
|
-
class:
|
|
64
|
-
}, null, 2)) :
|
|
63
|
+
class: T(["relative -top-[2px] h-[6px] nav__decorator", B(o)("BEFOREBG", t.highlightColor)])
|
|
64
|
+
}, null, 2)) : z("", !0)
|
|
65
65
|
]),
|
|
66
|
-
|
|
67
|
-
id:
|
|
66
|
+
G(B(J), {
|
|
67
|
+
id: v.value,
|
|
68
68
|
visible: !1,
|
|
69
69
|
accordion: a.value,
|
|
70
70
|
onOpen: h,
|
|
71
71
|
onClose: h
|
|
72
72
|
}, {
|
|
73
73
|
default: O(() => [
|
|
74
|
-
n("div",
|
|
75
|
-
t.displayHighlight ? (i(),
|
|
74
|
+
n("div", ae, [
|
|
75
|
+
t.displayHighlight ? (i(), c("div", {
|
|
76
76
|
key: 0,
|
|
77
|
-
class:
|
|
78
|
-
}, null, 2)) :
|
|
79
|
-
n("div",
|
|
80
|
-
(i(!0),
|
|
77
|
+
class: T(["absolute w-md bg-opacity-25 -left-4 h-full", B(o)("BGCOLOR", t.highlightColor)])
|
|
78
|
+
}, null, 2)) : z("", !0),
|
|
79
|
+
n("div", re, [
|
|
80
|
+
(i(!0), c(S, null, X(t.navItem.children, (l, f) => (i(), c("a", {
|
|
81
81
|
href: l.url,
|
|
82
82
|
target: l.target,
|
|
83
|
-
class:
|
|
84
|
-
|
|
85
|
-
|
|
83
|
+
class: T(["w-full pb-2xs last:pb-0", [
|
|
84
|
+
B(o)("TEXTCOLOR", t.menuTextColor),
|
|
85
|
+
B(o)("BODYTEXT", t.menuTextSize)
|
|
86
86
|
]]),
|
|
87
87
|
key: f,
|
|
88
|
-
onClick: (
|
|
89
|
-
}, A(l.title), 11,
|
|
88
|
+
onClick: (C) => b(C, l)
|
|
89
|
+
}, A(l.title), 11, se))), 128))
|
|
90
90
|
])
|
|
91
91
|
])
|
|
92
92
|
]),
|
|
@@ -94,14 +94,12 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
94
94
|
}, 8, ["id", "accordion"])
|
|
95
95
|
]));
|
|
96
96
|
}
|
|
97
|
-
}),
|
|
98
|
-
const
|
|
97
|
+
}), F = (L, w) => {
|
|
98
|
+
const y = L.__vccOpts || L;
|
|
99
99
|
for (const [p, g] of w)
|
|
100
|
-
|
|
101
|
-
return
|
|
102
|
-
},
|
|
103
|
-
Ce
|
|
104
|
-
], be = ["href", "target", "onClick"], Te = /* @__PURE__ */ D({
|
|
100
|
+
y[p] = g;
|
|
101
|
+
return y;
|
|
102
|
+
}, de = /* @__PURE__ */ F(ue, [["__scopeId", "data-v-1b1467b6"]]), ce = ["onClick"], he = ["href", "target", "onClick"], fe = /* @__PURE__ */ D({
|
|
105
103
|
__name: "NavDropdown",
|
|
106
104
|
props: {
|
|
107
105
|
navItem: {},
|
|
@@ -114,70 +112,72 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
114
112
|
asLink: { type: Boolean, default: !0 }
|
|
115
113
|
},
|
|
116
114
|
emits: ["label-click", "child-click"],
|
|
117
|
-
setup(
|
|
118
|
-
const
|
|
115
|
+
setup(L, { emit: w }) {
|
|
116
|
+
const y = L, p = w, g = R(-1), v = R(), a = (s, t, r) => {
|
|
119
117
|
const l = [
|
|
120
|
-
o("BODYTEXT",
|
|
118
|
+
o("BODYTEXT", s),
|
|
121
119
|
o("TEXTCOLOR", t)
|
|
122
120
|
];
|
|
123
|
-
return
|
|
124
|
-
}, h = (
|
|
125
|
-
const t =
|
|
126
|
-
|
|
127
|
-
},
|
|
128
|
-
g.value = -1, p("label-click",
|
|
129
|
-
},
|
|
130
|
-
const { asLink:
|
|
131
|
-
!
|
|
121
|
+
return r && l.push("font-bold"), l.join(" ");
|
|
122
|
+
}, h = (s) => {
|
|
123
|
+
const t = y.navItem.children.length;
|
|
124
|
+
v.value !== void 0 && (s === "down" && g.value < t - 1 && g.value++, s === "up" && g.value > 0 && g.value--, v.value[g.value].focus());
|
|
125
|
+
}, k = (s, t, r) => {
|
|
126
|
+
g.value = -1, p("label-click", s, t, r);
|
|
127
|
+
}, b = (s, t) => {
|
|
128
|
+
const { asLink: r } = y;
|
|
129
|
+
!r && s.preventDefault(), p("child-click", s, t);
|
|
132
130
|
};
|
|
133
|
-
return (
|
|
131
|
+
return (s, t) => (i(), c("div", {
|
|
134
132
|
onKeyup: [
|
|
135
|
-
t[0] || (t[0] =
|
|
136
|
-
t[1] || (t[1] =
|
|
133
|
+
t[0] || (t[0] = V((r) => h("down"), ["down"])),
|
|
134
|
+
t[1] || (t[1] = V((r) => h("up"), ["up"]))
|
|
137
135
|
]
|
|
138
136
|
}, [
|
|
139
|
-
|
|
140
|
-
toggler: O(({ toggle:
|
|
137
|
+
G(B(ee), null, {
|
|
138
|
+
toggler: O(({ toggle: r, dropdownState: l }) => [
|
|
141
139
|
n("div", null, [
|
|
142
140
|
n("button", {
|
|
143
|
-
class:
|
|
144
|
-
onClick: (f) => (
|
|
141
|
+
class: T(["tracking-wider align-middle outline-none nav__text flex items-center gap-3xs", a(s.menuTextSize, s.menuTextColor, s.menuTextBold)]),
|
|
142
|
+
onClick: (f) => (r(f), k(f, s.navItem.title, l))
|
|
145
143
|
}, [
|
|
146
|
-
n("span", null, A(
|
|
147
|
-
(i(),
|
|
144
|
+
n("span", null, A(s.navItem.title), 1),
|
|
145
|
+
(i(), c("svg", {
|
|
148
146
|
xmlns: "http://www.w3.org/2000/svg",
|
|
149
147
|
viewBox: "0 0 448 512",
|
|
150
|
-
class:
|
|
148
|
+
class: T(["h-[0.8rem] fill-current", [
|
|
151
149
|
l ? "rotate-180" : "rotate-0",
|
|
152
150
|
"transition-transform duration-300 ease-in"
|
|
153
151
|
]])
|
|
154
|
-
},
|
|
155
|
-
|
|
156
|
-
|
|
152
|
+
}, t[2] || (t[2] = [
|
|
153
|
+
n("path", { d: "M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z" }, null, -1)
|
|
154
|
+
]), 2))
|
|
155
|
+
], 10, ce),
|
|
156
|
+
s.displayHighlight ? (i(), c("div", {
|
|
157
157
|
key: 0,
|
|
158
|
-
class:
|
|
159
|
-
}, null, 2)) :
|
|
158
|
+
class: T(["relative -top-[2px] h-[6px] nav__decorator", B(o)("BEFOREBG", s.highlightColor)])
|
|
159
|
+
}, null, 2)) : z("", !0)
|
|
160
160
|
])
|
|
161
161
|
]),
|
|
162
162
|
default: O(() => [
|
|
163
|
-
|
|
164
|
-
default: O(({ itemClick:
|
|
165
|
-
(i(!0),
|
|
163
|
+
G(B(le), { className: "border drop-shadow-sm" }, {
|
|
164
|
+
default: O(({ itemClick: r }) => [
|
|
165
|
+
(i(!0), c(S, null, X(s.navItem.children, (l, f) => (i(), c("a", {
|
|
166
166
|
href: l.url,
|
|
167
167
|
target: l.target,
|
|
168
168
|
key: f,
|
|
169
169
|
ref_for: !0,
|
|
170
170
|
ref_key: "navItemRef",
|
|
171
|
-
ref:
|
|
172
|
-
class:
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
171
|
+
ref: v,
|
|
172
|
+
class: T(["px-xs py-2xs block w-full hover:bg-opacity-50 focus:bg-opacity-50 transition-all duration-200 ease-linear", [
|
|
173
|
+
B(o)("BGCOLOR", s.bgColor),
|
|
174
|
+
B(o)("HVBGCOLOR", s.highlightColor),
|
|
175
|
+
B(o)("FCBGCOLOR", s.highlightColor),
|
|
176
|
+
B(o)("TEXTCOLOR", s.menuTextColor),
|
|
177
|
+
B(o)("BODYTEXT", s.menuTextSize)
|
|
178
178
|
]]),
|
|
179
|
-
onClick: (
|
|
180
|
-
}, A(l.title), 11,
|
|
179
|
+
onClick: (C) => (r(), b(C, l))
|
|
180
|
+
}, A(l.title), 11, he))), 128))
|
|
181
181
|
]),
|
|
182
182
|
_: 1
|
|
183
183
|
})
|
|
@@ -186,7 +186,7 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
186
186
|
})
|
|
187
187
|
], 32));
|
|
188
188
|
}
|
|
189
|
-
}),
|
|
189
|
+
}), me = /* @__PURE__ */ F(fe, [["__scopeId", "data-v-3cd6e9eb"]]), ge = ["href", "target", "innerHTML"], pe = /* @__PURE__ */ D({
|
|
190
190
|
__name: "NavLink",
|
|
191
191
|
props: {
|
|
192
192
|
navItem: {},
|
|
@@ -198,35 +198,35 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
198
198
|
asLink: { type: Boolean, default: !0 }
|
|
199
199
|
},
|
|
200
200
|
emits: ["nav-link"],
|
|
201
|
-
setup(
|
|
202
|
-
const
|
|
203
|
-
const
|
|
201
|
+
setup(L, { emit: w }) {
|
|
202
|
+
const y = L, p = w, g = (a, h, k) => {
|
|
203
|
+
const b = [
|
|
204
204
|
o("BODYTEXT", a),
|
|
205
205
|
o("TEXTCOLOR", h)
|
|
206
206
|
];
|
|
207
|
-
return
|
|
208
|
-
},
|
|
209
|
-
const { asLink:
|
|
210
|
-
!
|
|
207
|
+
return k && b.push("font-bold"), b.join(" ");
|
|
208
|
+
}, v = (a, h) => {
|
|
209
|
+
const { asLink: k } = y;
|
|
210
|
+
!k && a.preventDefault(), p("nav-link", a, h);
|
|
211
211
|
};
|
|
212
|
-
return (a, h) => (i(),
|
|
212
|
+
return (a, h) => (i(), c("div", null, [
|
|
213
213
|
n("a", {
|
|
214
214
|
href: a.navItem.url,
|
|
215
215
|
target: a.navItem.target,
|
|
216
216
|
innerHTML: a.navItem.title,
|
|
217
|
-
class:
|
|
218
|
-
onClick: h[0] || (h[0] = (
|
|
219
|
-
}, null, 10,
|
|
220
|
-
a.displayHighlight ? (i(),
|
|
217
|
+
class: T(["tracking-wider outline-none nav__text", g(a.menuTextSize, a.menuTextColor, a.menuTextBold)]),
|
|
218
|
+
onClick: h[0] || (h[0] = (k) => v(k, a.navItem))
|
|
219
|
+
}, null, 10, ge),
|
|
220
|
+
a.displayHighlight ? (i(), c("div", {
|
|
221
221
|
key: 0,
|
|
222
|
-
class:
|
|
223
|
-
}, null, 2)) :
|
|
222
|
+
class: T(["relative -top-[2px] h-[6px] nav__decorator", B(o)("BEFOREBG", a.highlightColor)])
|
|
223
|
+
}, null, 2)) : z("", !0)
|
|
224
224
|
]));
|
|
225
225
|
}
|
|
226
|
-
}),
|
|
226
|
+
}), K = /* @__PURE__ */ F(pe, [["__scopeId", "data-v-94d8fa7b"]]), ke = { class: "flex flex-shrink-0 items-center self-center" }, Ce = { class: "h-md md:h-lg lg:h-xl mr-2xs md:mr-sm align-middle" }, ve = ["href", "target"], be = ["src", "alt"], Te = ["src", "alt"], ye = { class: "flex flex-col justify-center ml-2" }, Be = ["href", "target"], Le = ["innerHTML"], we = { class: "hidden lg:flex flex-wrap" }, Oe = {
|
|
227
227
|
key: 0,
|
|
228
228
|
class: "hidden lg:block"
|
|
229
|
-
},
|
|
229
|
+
}, Ie = { class: "flex flex-col items-center justify-center p-xs" }, xe = { key: 0 }, Pe = /* @__PURE__ */ D({
|
|
230
230
|
__name: "MclHeaderA",
|
|
231
231
|
props: {
|
|
232
232
|
logo: {},
|
|
@@ -253,28 +253,28 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
253
253
|
scrollDistance: { default: 50 }
|
|
254
254
|
},
|
|
255
255
|
emits: ["toggle-drawer", "title-click", "menu-click", "collapse-click"],
|
|
256
|
-
setup(
|
|
257
|
-
const p =
|
|
256
|
+
setup(L, { expose: w, emit: y }) {
|
|
257
|
+
const p = L, g = R(), v = U(), a = y, h = () => {
|
|
258
258
|
var l;
|
|
259
259
|
(l = g.value) == null || l.headerClose();
|
|
260
|
-
},
|
|
261
|
-
const { titleBlockAsLink: f, titleBlockLink:
|
|
262
|
-
f || l.preventDefault(), a("title-click", l,
|
|
263
|
-
},
|
|
264
|
-
const { menuItemAsLink:
|
|
265
|
-
|
|
266
|
-
},
|
|
267
|
-
a("collapse-click", l, f,
|
|
260
|
+
}, k = (l) => {
|
|
261
|
+
const { titleBlockAsLink: f, titleBlockLink: C, titleBlockLinkTarget: e } = p;
|
|
262
|
+
f || l.preventDefault(), a("title-click", l, C, e), h();
|
|
263
|
+
}, b = (l, f) => {
|
|
264
|
+
const { menuItemAsLink: C } = p;
|
|
265
|
+
C || l.preventDefault(), a("menu-click", l, f), h();
|
|
266
|
+
}, s = (l, f, C) => {
|
|
267
|
+
a("collapse-click", l, f, C);
|
|
268
268
|
}, t = (l, f) => [
|
|
269
269
|
o("H2", l),
|
|
270
270
|
o("TEXTCOLOR", f)
|
|
271
|
-
].join(" "),
|
|
271
|
+
].join(" "), r = (l) => {
|
|
272
272
|
const f = l;
|
|
273
273
|
return typeof f.children > "u" ? !1 : f.children.length > 0;
|
|
274
274
|
};
|
|
275
275
|
return w({
|
|
276
276
|
headerClose: h
|
|
277
|
-
}), (l, f) => (i(), x(
|
|
277
|
+
}), (l, f) => (i(), x(B(te), {
|
|
278
278
|
ref_key: "componentRef",
|
|
279
279
|
ref: g,
|
|
280
280
|
"bg-color": l.bgColor,
|
|
@@ -284,45 +284,45 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
284
284
|
"mobile-menu-bg-color": l.mobileMenuBgColor
|
|
285
285
|
}, {
|
|
286
286
|
content: O(() => [
|
|
287
|
-
n("div",
|
|
288
|
-
n("div",
|
|
287
|
+
n("div", ke, [
|
|
288
|
+
n("div", Ce, [
|
|
289
289
|
n("a", {
|
|
290
290
|
href: l.titleBlockLink,
|
|
291
291
|
target: l.titleBlockLinkTarget,
|
|
292
|
-
onClick:
|
|
292
|
+
onClick: k
|
|
293
293
|
}, [
|
|
294
294
|
n("img", {
|
|
295
295
|
src: l.logo,
|
|
296
296
|
alt: l.logoAlt,
|
|
297
|
-
class:
|
|
298
|
-
}, null, 10,
|
|
299
|
-
l.logoSmall ? (i(),
|
|
297
|
+
class: T(["h-full", [l.logoSmall ? "hidden lg:inline-block" : "inline-block"]])
|
|
298
|
+
}, null, 10, be),
|
|
299
|
+
l.logoSmall ? (i(), c("img", {
|
|
300
300
|
key: 0,
|
|
301
301
|
src: l.logoSmall,
|
|
302
302
|
alt: l.logoAlt,
|
|
303
303
|
class: "inline-block lg:hidden h-full"
|
|
304
|
-
}, null, 8,
|
|
305
|
-
], 8,
|
|
304
|
+
}, null, 8, Te)) : z("", !0)
|
|
305
|
+
], 8, ve)
|
|
306
306
|
]),
|
|
307
|
-
n("div",
|
|
307
|
+
n("div", ye, [
|
|
308
308
|
n("a", {
|
|
309
309
|
href: l.titleBlockLink,
|
|
310
310
|
target: l.titleBlockLinkTarget,
|
|
311
|
-
onClick:
|
|
311
|
+
onClick: k
|
|
312
312
|
}, [
|
|
313
313
|
n("h2", {
|
|
314
|
-
class:
|
|
314
|
+
class: T(["inline-block align-middle tracking-wider", t(l.titleSize, l.titleColor)]),
|
|
315
315
|
innerHTML: l.title
|
|
316
|
-
}, null, 10,
|
|
317
|
-
], 8,
|
|
318
|
-
n("ul",
|
|
319
|
-
(i(!0),
|
|
316
|
+
}, null, 10, Le)
|
|
317
|
+
], 8, Be),
|
|
318
|
+
n("ul", we, [
|
|
319
|
+
(i(!0), c(S, null, X(l.menuItems, (C, e) => (i(), c("li", {
|
|
320
320
|
class: "mr-xs last:mr-0",
|
|
321
321
|
key: `menu-${e}`
|
|
322
322
|
}, [
|
|
323
|
-
|
|
323
|
+
r(C) ? (i(), x(me, {
|
|
324
324
|
key: 1,
|
|
325
|
-
"nav-item":
|
|
325
|
+
"nav-item": C,
|
|
326
326
|
"menu-text-color": l.menuTextColor,
|
|
327
327
|
"menu-text-size": l.menuTextSize,
|
|
328
328
|
"menu-text-bold": l.menuTextBold,
|
|
@@ -330,18 +330,18 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
330
330
|
"highlight-color": l.highlightColor,
|
|
331
331
|
"bg-color": l.bgColor,
|
|
332
332
|
"as-link": l.menuItemAsLink,
|
|
333
|
-
onChildClick:
|
|
334
|
-
onLabelClick:
|
|
335
|
-
}, null, 8, ["nav-item", "menu-text-color", "menu-text-size", "menu-text-bold", "display-highlight", "highlight-color", "bg-color", "as-link"])) : (i(), x(
|
|
333
|
+
onChildClick: b,
|
|
334
|
+
onLabelClick: s
|
|
335
|
+
}, null, 8, ["nav-item", "menu-text-color", "menu-text-size", "menu-text-bold", "display-highlight", "highlight-color", "bg-color", "as-link"])) : (i(), x(K, {
|
|
336
336
|
key: 0,
|
|
337
|
-
"nav-item":
|
|
337
|
+
"nav-item": C,
|
|
338
338
|
"menu-text-color": l.menuTextColor,
|
|
339
339
|
"menu-text-size": l.menuTextSize,
|
|
340
340
|
"menu-text-bold": l.menuTextBold,
|
|
341
341
|
"display-highlight": l.displayHighlight,
|
|
342
342
|
"highlight-color": l.highlightColor,
|
|
343
343
|
"as-link": l.menuItemAsLink,
|
|
344
|
-
onNavLink:
|
|
344
|
+
onNavLink: b
|
|
345
345
|
}, null, 8, ["nav-item", "menu-text-color", "menu-text-size", "menu-text-bold", "display-highlight", "highlight-color", "as-link"]))
|
|
346
346
|
]))), 128))
|
|
347
347
|
])
|
|
@@ -349,21 +349,21 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
349
349
|
])
|
|
350
350
|
]),
|
|
351
351
|
"content-right": O(() => [
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
])) :
|
|
352
|
+
v["content-right"] ? (i(), c("div", Oe, [
|
|
353
|
+
j(l.$slots, "content-right")
|
|
354
|
+
])) : z("", !0)
|
|
355
355
|
]),
|
|
356
356
|
"mobile-content": O(() => [
|
|
357
357
|
n("div", null, [
|
|
358
|
-
n("ul",
|
|
359
|
-
(i(!0),
|
|
358
|
+
n("ul", Ie, [
|
|
359
|
+
(i(!0), c(S, null, X(l.menuItems, (C, e) => (i(), c("li", {
|
|
360
360
|
class: "mb-2xs last:mb-0",
|
|
361
361
|
key: `mobile-${e}`
|
|
362
362
|
}, [
|
|
363
|
-
|
|
363
|
+
r(C) ? (i(), x(de, {
|
|
364
364
|
key: 1,
|
|
365
|
-
"nav-id":
|
|
366
|
-
"nav-item":
|
|
365
|
+
"nav-id": C.title,
|
|
366
|
+
"nav-item": C,
|
|
367
367
|
"menu-text-color": l.menuTextColor,
|
|
368
368
|
"menu-text-size": l.menuTextSize,
|
|
369
369
|
"menu-text-bold": l.menuTextBold,
|
|
@@ -371,32 +371,30 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
371
371
|
"highlight-color": l.highlightColor,
|
|
372
372
|
"nav-accordion-group": l.title,
|
|
373
373
|
"as-link": l.menuItemAsLink,
|
|
374
|
-
onChildClick:
|
|
375
|
-
onLabelClick:
|
|
376
|
-
}, null, 8, ["nav-id", "nav-item", "menu-text-color", "menu-text-size", "menu-text-bold", "display-highlight", "highlight-color", "nav-accordion-group", "as-link"])) : (i(), x(
|
|
374
|
+
onChildClick: b,
|
|
375
|
+
onLabelClick: s
|
|
376
|
+
}, null, 8, ["nav-id", "nav-item", "menu-text-color", "menu-text-size", "menu-text-bold", "display-highlight", "highlight-color", "nav-accordion-group", "as-link"])) : (i(), x(K, {
|
|
377
377
|
key: 0,
|
|
378
|
-
"nav-item":
|
|
378
|
+
"nav-item": C,
|
|
379
379
|
"menu-text-color": l.menuTextColor,
|
|
380
380
|
"menu-text-size": l.menuTextSize,
|
|
381
381
|
"menu-text-bold": l.menuTextBold,
|
|
382
382
|
"display-highlight": l.displayHighlight,
|
|
383
383
|
"highlight-color": l.highlightColor,
|
|
384
384
|
"as-link": l.menuItemAsLink,
|
|
385
|
-
onNavLink:
|
|
385
|
+
onNavLink: b
|
|
386
386
|
}, null, 8, ["nav-item", "menu-text-color", "menu-text-size", "menu-text-bold", "display-highlight", "highlight-color", "as-link"]))
|
|
387
387
|
]))), 128))
|
|
388
388
|
]),
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
])) :
|
|
389
|
+
v["mobile-bottom"] ? (i(), c("div", xe, [
|
|
390
|
+
j(l.$slots, "mobile-bottom", { headerClose: h })
|
|
391
|
+
])) : z("", !0)
|
|
392
392
|
])
|
|
393
393
|
]),
|
|
394
394
|
_: 3
|
|
395
395
|
}, 8, ["bg-color", "drawer-btn-border", "drawer-btn-color", "fade-in-on-scroll", "mobile-menu-bg-color"]));
|
|
396
396
|
}
|
|
397
|
-
}),
|
|
398
|
-
Me
|
|
399
|
-
], _e = ["href", "target", "onClick"], je = { class: "relative" }, K = /* @__PURE__ */ D({
|
|
397
|
+
}), He = { class: "relative flex gap-2 items-center justify-center" }, Ee = ["href", "target", "onClick"], ze = { class: "relative" }, Y = /* @__PURE__ */ D({
|
|
400
398
|
__name: "NavCollapseVertical",
|
|
401
399
|
props: {
|
|
402
400
|
navId: {},
|
|
@@ -411,27 +409,27 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
411
409
|
asLink: { type: Boolean, default: !0 }
|
|
412
410
|
},
|
|
413
411
|
emits: ["label-click", "child-click"],
|
|
414
|
-
setup(
|
|
415
|
-
const p =
|
|
412
|
+
setup(L, { expose: w, emit: y }) {
|
|
413
|
+
const p = L, g = R(!1), v = R(), a = y, h = (e) => {
|
|
416
414
|
g.value = e;
|
|
417
|
-
},
|
|
415
|
+
}, k = () => {
|
|
418
416
|
var e;
|
|
419
|
-
(e =
|
|
420
|
-
},
|
|
421
|
-
a("label-click", e,
|
|
422
|
-
},
|
|
417
|
+
(e = v.value) == null || e.close();
|
|
418
|
+
}, b = (e, u) => {
|
|
419
|
+
a("label-click", e, u, g.value);
|
|
420
|
+
}, s = (e, u) => {
|
|
423
421
|
var m;
|
|
424
|
-
const { asLink:
|
|
425
|
-
|
|
426
|
-
}, t =
|
|
427
|
-
const { navId: e, navLocation:
|
|
428
|
-
return `nav-${
|
|
429
|
-
}),
|
|
430
|
-
const { navAccordionGroup: e, navLocation:
|
|
431
|
-
return `nav-accordion-group-${
|
|
432
|
-
}), l =
|
|
433
|
-
const { textColor: e, textSize:
|
|
434
|
-
if (!
|
|
422
|
+
const { asLink: d } = p;
|
|
423
|
+
d || e.preventDefault(), a("child-click", e, u), (m = v.value) == null || m.close(), k();
|
|
424
|
+
}, t = E(() => {
|
|
425
|
+
const { navId: e, navLocation: u } = p, m = e.toLowerCase().replaceAll(" ", "-");
|
|
426
|
+
return `nav-${u}-${m}`;
|
|
427
|
+
}), r = E(() => {
|
|
428
|
+
const { navAccordionGroup: e, navLocation: u } = p, d = e.toLowerCase().replaceAll(" ", "-");
|
|
429
|
+
return `nav-accordion-group-${u}-${d}`;
|
|
430
|
+
}), l = E(() => {
|
|
431
|
+
const { textColor: e, textSize: u, dHl: d, hlColor: m, fontBold: H } = p, I = [o("BODYTEXT", u)];
|
|
432
|
+
if (!d) {
|
|
435
433
|
const M = [
|
|
436
434
|
o("TEXTCOLOR", e),
|
|
437
435
|
o("HVTEXTCOLOR", m),
|
|
@@ -439,7 +437,7 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
439
437
|
];
|
|
440
438
|
I.push(M.join(" "));
|
|
441
439
|
}
|
|
442
|
-
if (
|
|
440
|
+
if (d) {
|
|
443
441
|
const M = o("BEFOREBG", m);
|
|
444
442
|
I.push("before:inset-y-0 before:left-0 before:transition-[width] before:duration-300 before:ease-linear before:w-0 hover:before:w-full focus:before:w-full " + M);
|
|
445
443
|
const N = [
|
|
@@ -449,85 +447,87 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
449
447
|
];
|
|
450
448
|
I.push(N.join(" "));
|
|
451
449
|
}
|
|
452
|
-
return
|
|
453
|
-
}), f =
|
|
454
|
-
const { dHl: e, hlColor:
|
|
450
|
+
return H && I.push("font-bold"), I.join(" ");
|
|
451
|
+
}), f = E(() => {
|
|
452
|
+
const { dHl: e, hlColor: u, navLocation: d } = p, m = [];
|
|
455
453
|
if (!e)
|
|
456
454
|
return "";
|
|
457
|
-
const
|
|
458
|
-
return m.push(
|
|
459
|
-
}),
|
|
460
|
-
const { textColor: e, textSize:
|
|
461
|
-
let M =
|
|
462
|
-
const
|
|
455
|
+
const H = "before:absolute before:w-xs before:h-full before:bg-primary before:bg-opacity-70 ", I = d === "desktop" ? "before:left-0 " : "before:right-0 ";
|
|
456
|
+
return m.push(H + I + o("BEFOREBG", u)), m.join(" ");
|
|
457
|
+
}), C = E(() => {
|
|
458
|
+
const { textColor: e, textSize: u, dHl: d, hlColor: m, fontBold: H, navLocation: I } = p;
|
|
459
|
+
let M = u === "xl" ? "lg" : u === "lg" ? "md" : u === "md" ? "sm" : "xs";
|
|
460
|
+
const $ = [
|
|
463
461
|
o("TEXTCOLOR", e),
|
|
464
462
|
o("BODYTEXT", M)
|
|
465
463
|
];
|
|
466
|
-
if (I === "mobile" &&
|
|
464
|
+
if (I === "mobile" && $.push("text-end"), !d) {
|
|
467
465
|
const N = [
|
|
468
466
|
o("TEXTCOLOR", e),
|
|
469
467
|
o("HVTEXTCOLOR", m),
|
|
470
468
|
o("FCTEXTCOLOR", m)
|
|
471
469
|
];
|
|
472
|
-
|
|
470
|
+
$.push(N.join(" "));
|
|
473
471
|
}
|
|
474
|
-
if (
|
|
475
|
-
const N = o("BEFOREBG", m),
|
|
476
|
-
|
|
477
|
-
const
|
|
472
|
+
if (d) {
|
|
473
|
+
const N = o("BEFOREBG", m), P = "before:inset-y-0 before:duration-300 before:ease-linear before:w-0 hover:before:w-full focus:before:w-full before:bg-opacity-70 ", Q = I === "desktop" ? "before:left-0 before:transition-[width] " : "before:left-full hover:before:left-0 focus:before:left-0 before:transition-[all] ";
|
|
474
|
+
$.push(P + Q + N);
|
|
475
|
+
const Z = [
|
|
478
476
|
o("TEXTCOLOR", m),
|
|
479
477
|
o("HVTEXTCOLOR", e),
|
|
480
478
|
o("FCTEXTCOLOR", e)
|
|
481
479
|
];
|
|
482
|
-
|
|
480
|
+
$.push(Z.join(" "));
|
|
483
481
|
}
|
|
484
|
-
return
|
|
482
|
+
return H && $.push("font-bold"), $.join(" ");
|
|
485
483
|
});
|
|
486
484
|
return w({
|
|
487
|
-
closeCollapse:
|
|
488
|
-
}), (e,
|
|
489
|
-
|
|
490
|
-
class:
|
|
491
|
-
onClick:
|
|
485
|
+
closeCollapse: k
|
|
486
|
+
}), (e, u) => (i(), c("div", null, [
|
|
487
|
+
_((i(), c("button", {
|
|
488
|
+
class: T(["px-xs py-2xs relative text-center block w-full before:absolute transition-colors duration-300 ease-linear", [l.value]]),
|
|
489
|
+
onClick: u[0] || (u[0] = (d) => b(d, e.menuItem.title))
|
|
492
490
|
}, [
|
|
493
|
-
n("div",
|
|
491
|
+
n("div", He, [
|
|
494
492
|
n("span", null, A(e.menuItem.title), 1),
|
|
495
|
-
(i(),
|
|
493
|
+
(i(), c("svg", {
|
|
496
494
|
xmlns: "http://www.w3.org/2000/svg",
|
|
497
495
|
viewBox: "0 0 448 512",
|
|
498
|
-
class:
|
|
496
|
+
class: T(["h-[0.8rem] fill-current", [
|
|
499
497
|
g.value ? "rotate-180" : "rotate-0",
|
|
500
498
|
"transition-transform duration-300 ease-in"
|
|
501
499
|
]])
|
|
502
|
-
},
|
|
500
|
+
}, u[1] || (u[1] = [
|
|
501
|
+
n("path", { d: "M224 416c-8.188 0-16.38-3.125-22.62-9.375l-192-192c-12.5-12.5-12.5-32.75 0-45.25s32.75-12.5 45.25 0L224 338.8l169.4-169.4c12.5-12.5 32.75-12.5 45.25 0s12.5 32.75 0 45.25l-192 192C240.4 412.9 232.2 416 224 416z" }, null, -1)
|
|
502
|
+
]), 2))
|
|
503
503
|
])
|
|
504
504
|
], 2)), [
|
|
505
|
-
[
|
|
505
|
+
[B(q), void 0, t.value]
|
|
506
506
|
]),
|
|
507
|
-
|
|
507
|
+
G(B(J), {
|
|
508
508
|
ref_key: "collapseRef",
|
|
509
|
-
ref:
|
|
509
|
+
ref: v,
|
|
510
510
|
id: t.value,
|
|
511
|
-
accordion:
|
|
511
|
+
accordion: r.value,
|
|
512
512
|
onOpen: h,
|
|
513
513
|
onClose: h
|
|
514
514
|
}, {
|
|
515
515
|
default: O(() => [
|
|
516
516
|
n("ul", {
|
|
517
|
-
class:
|
|
517
|
+
class: T(["relative", [f.value]])
|
|
518
518
|
}, [
|
|
519
|
-
(i(!0),
|
|
519
|
+
(i(!0), c(S, null, X(e.menuItem.children, (d, m) => (i(), c("li", {
|
|
520
520
|
key: m,
|
|
521
|
-
class:
|
|
521
|
+
class: T([e.navLocation === "desktop" ? "ml-xs" : "mr-xs"])
|
|
522
522
|
}, [
|
|
523
523
|
n("a", {
|
|
524
|
-
href:
|
|
525
|
-
target:
|
|
526
|
-
onClick: (
|
|
527
|
-
class:
|
|
524
|
+
href: d.url,
|
|
525
|
+
target: d.target,
|
|
526
|
+
onClick: (H) => s(H, d),
|
|
527
|
+
class: T(["relative before:absolute w-full px-2xs py-3xs block overflow-x-hidden transition-colors duration-300 ease-linear", [C.value]])
|
|
528
528
|
}, [
|
|
529
|
-
n("span",
|
|
530
|
-
], 10,
|
|
529
|
+
n("span", ze, A(d.title), 1)
|
|
530
|
+
], 10, Ee)
|
|
531
531
|
], 2))), 128))
|
|
532
532
|
], 2)
|
|
533
533
|
]),
|
|
@@ -535,7 +535,7 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
535
535
|
}, 8, ["id", "accordion"])
|
|
536
536
|
]));
|
|
537
537
|
}
|
|
538
|
-
}),
|
|
538
|
+
}), Re = ["href", "target"], $e = { class: "relative" }, W = /* @__PURE__ */ D({
|
|
539
539
|
__name: "NavLinkVertical",
|
|
540
540
|
props: {
|
|
541
541
|
menuItem: {},
|
|
@@ -547,42 +547,42 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
547
547
|
asLink: { type: Boolean, default: !0 }
|
|
548
548
|
},
|
|
549
549
|
emits: ["menu-click"],
|
|
550
|
-
setup(
|
|
551
|
-
const
|
|
552
|
-
const { asLink:
|
|
553
|
-
|
|
554
|
-
},
|
|
555
|
-
const { textColor: a, textSize: h, dHl:
|
|
556
|
-
if (!
|
|
557
|
-
const
|
|
550
|
+
setup(L, { emit: w }) {
|
|
551
|
+
const y = L, p = w, g = (a, h) => {
|
|
552
|
+
const { asLink: k } = y;
|
|
553
|
+
k || a.preventDefault(), p("menu-click", a, h);
|
|
554
|
+
}, v = E(() => {
|
|
555
|
+
const { textColor: a, textSize: h, dHl: k, hlColor: b, fontBold: s } = y, t = [o("BODYTEXT", h)];
|
|
556
|
+
if (!k) {
|
|
557
|
+
const r = [
|
|
558
558
|
o("TEXTCOLOR", a),
|
|
559
|
-
o("HVTEXTCOLOR",
|
|
560
|
-
o("FCTEXTCOLOR",
|
|
559
|
+
o("HVTEXTCOLOR", b),
|
|
560
|
+
o("FCTEXTCOLOR", b)
|
|
561
561
|
];
|
|
562
|
-
t.push(
|
|
562
|
+
t.push(r.join(" "));
|
|
563
563
|
}
|
|
564
|
-
if (
|
|
565
|
-
const
|
|
566
|
-
t.push("before:inset-y-0 before:left-0 before:transition-[width] before:duration-300 before:ease-linear before:w-0 hover:before:w-full focus:before:w-full " +
|
|
564
|
+
if (k) {
|
|
565
|
+
const r = o("BEFOREBG", b);
|
|
566
|
+
t.push("before:inset-y-0 before:left-0 before:transition-[width] before:duration-300 before:ease-linear before:w-0 hover:before:w-full focus:before:w-full " + r);
|
|
567
567
|
const f = [
|
|
568
|
-
o("TEXTCOLOR",
|
|
568
|
+
o("TEXTCOLOR", b),
|
|
569
569
|
o("HVTEXTCOLOR", a),
|
|
570
570
|
o("FCTEXTCOLOR", a)
|
|
571
571
|
];
|
|
572
572
|
t.push(f.join(" "));
|
|
573
573
|
}
|
|
574
|
-
return
|
|
574
|
+
return s && t.push("font-bold"), t.join(" ");
|
|
575
575
|
});
|
|
576
|
-
return (a, h) => (i(),
|
|
577
|
-
class:
|
|
576
|
+
return (a, h) => (i(), c("a", {
|
|
577
|
+
class: T([[v.value], "px-xs py-2xs relative text-center block w-full before:absolute transition-colors duration-300 ease-linear"]),
|
|
578
578
|
href: a.menuItem.url,
|
|
579
579
|
target: a.menuItem.target ? a.menuItem.target : "_self",
|
|
580
|
-
onClick: h[0] || (h[0] = (
|
|
580
|
+
onClick: h[0] || (h[0] = (k) => g(k, a.menuItem))
|
|
581
581
|
}, [
|
|
582
|
-
n("span",
|
|
583
|
-
], 10,
|
|
582
|
+
n("span", $e, A(a.menuItem.title), 1)
|
|
583
|
+
], 10, Re));
|
|
584
584
|
}
|
|
585
|
-
}),
|
|
585
|
+
}), Ae = { class: "p-md text-center" }, Se = ["href", "target"], Xe = ["src", "alt"], De = ["href", "target"], Me = ["innerHTML"], Ne = { class: "flex flex-col" }, je = { key: 0 }, Ge = { class: "flex flex-col justify-between h-full" }, Fe = { class: "p-md text-center" }, Ve = ["href", "target"], Ke = ["src", "alt"], Ye = ["href", "target"], We = ["innerHTML"], _e = { class: "flex flex-col" }, Ue = { key: 0 }, Qe = /* @__PURE__ */ D({
|
|
586
586
|
__name: "MclHeaderB",
|
|
587
587
|
props: {
|
|
588
588
|
logo: {},
|
|
@@ -606,50 +606,50 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
606
606
|
headerWidth: { default: 160 }
|
|
607
607
|
},
|
|
608
608
|
emits: ["toggle-drawer", "title-click", "menu-click", "collapse-click"],
|
|
609
|
-
setup(
|
|
610
|
-
const p =
|
|
611
|
-
|
|
612
|
-
},
|
|
609
|
+
setup(L, { expose: w, emit: y }) {
|
|
610
|
+
const p = L, g = U(), v = y, a = R(), h = R(), k = (e, u) => {
|
|
611
|
+
v("toggle-drawer", e, u);
|
|
612
|
+
}, b = () => {
|
|
613
613
|
var e;
|
|
614
614
|
(e = a.value) == null || e.headerClose();
|
|
615
|
-
},
|
|
615
|
+
}, s = () => {
|
|
616
616
|
for (let e = 0; e < h.value.length; e++)
|
|
617
617
|
h.value[e].closeCollapse();
|
|
618
618
|
}, t = (e) => {
|
|
619
|
-
const { titleBlockAsLink:
|
|
620
|
-
|
|
621
|
-
},
|
|
622
|
-
const { menuItemAsLink:
|
|
623
|
-
|
|
624
|
-
}, l = (e,
|
|
625
|
-
|
|
626
|
-
}, f =
|
|
627
|
-
const { titleSize: e, titleColor:
|
|
619
|
+
const { titleBlockAsLink: u, titleBlockLink: d, titleBlockLinkTarget: m } = p;
|
|
620
|
+
u || e.preventDefault(), v("title-click", e, d, m), b(), s();
|
|
621
|
+
}, r = (e, u) => {
|
|
622
|
+
const { menuItemAsLink: d } = p;
|
|
623
|
+
d || e.preventDefault(), v("menu-click", e, u), b(), s();
|
|
624
|
+
}, l = (e, u, d) => {
|
|
625
|
+
v("collapse-click", e, u, d);
|
|
626
|
+
}, f = E(() => {
|
|
627
|
+
const { titleSize: e, titleColor: u } = p;
|
|
628
628
|
return [
|
|
629
629
|
o("H3", e),
|
|
630
|
-
o("TEXTCOLOR",
|
|
630
|
+
o("TEXTCOLOR", u)
|
|
631
631
|
].join(" ");
|
|
632
|
-
}),
|
|
633
|
-
const
|
|
634
|
-
return typeof
|
|
632
|
+
}), C = (e) => {
|
|
633
|
+
const u = e;
|
|
634
|
+
return typeof u.children > "u" ? !1 : u.children.length > 0;
|
|
635
635
|
};
|
|
636
636
|
return w({
|
|
637
|
-
headerClose:
|
|
638
|
-
}), (e,
|
|
637
|
+
headerClose: b
|
|
638
|
+
}), (e, u) => (i(), x(B(oe), {
|
|
639
639
|
"bg-color": e.bgColor,
|
|
640
640
|
"drawer-btn-color": e.drawerBtnColor,
|
|
641
641
|
"drawer-btn-border": e.drawerBtnBorder,
|
|
642
642
|
"header-width": e.headerWidth,
|
|
643
|
-
onToggleDrawer:
|
|
643
|
+
onToggleDrawer: k,
|
|
644
644
|
ref_key: "componentRef",
|
|
645
645
|
ref: a
|
|
646
646
|
}, {
|
|
647
647
|
default: O(() => [
|
|
648
|
-
|
|
648
|
+
j(e.$slots, "default")
|
|
649
649
|
]),
|
|
650
650
|
content: O(() => [
|
|
651
651
|
n("div", null, [
|
|
652
|
-
n("div",
|
|
652
|
+
n("div", Ae, [
|
|
653
653
|
n("a", {
|
|
654
654
|
href: e.titleBlockLink,
|
|
655
655
|
target: e.titleBlockLinkTarget,
|
|
@@ -659,8 +659,8 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
659
659
|
src: e.logo,
|
|
660
660
|
alt: e.logoAlt,
|
|
661
661
|
class: "h-full inline-block max-h-xl"
|
|
662
|
-
}, null, 8,
|
|
663
|
-
], 8,
|
|
662
|
+
}, null, 8, Xe)
|
|
663
|
+
], 8, Se)
|
|
664
664
|
]),
|
|
665
665
|
n("div", null, [
|
|
666
666
|
n("a", {
|
|
@@ -669,56 +669,56 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
669
669
|
onClick: t
|
|
670
670
|
}, [
|
|
671
671
|
n("h3", {
|
|
672
|
-
class:
|
|
672
|
+
class: T([f.value, "text-center mb-md"]),
|
|
673
673
|
innerHTML: e.title
|
|
674
|
-
}, null, 10,
|
|
675
|
-
], 8,
|
|
674
|
+
}, null, 10, Me)
|
|
675
|
+
], 8, De)
|
|
676
676
|
]),
|
|
677
|
-
n("ul",
|
|
678
|
-
(i(!0),
|
|
677
|
+
n("ul", Ne, [
|
|
678
|
+
(i(!0), c(S, null, X(e.menuItems, (d, m) => (i(), c("li", {
|
|
679
679
|
key: `menu-${m}`
|
|
680
680
|
}, [
|
|
681
|
-
|
|
681
|
+
C(d) ? (i(), x(Y, {
|
|
682
682
|
key: 1,
|
|
683
683
|
ref_for: !0,
|
|
684
684
|
ref_key: "collapseRef",
|
|
685
685
|
ref: h,
|
|
686
|
-
"nav-id":
|
|
686
|
+
"nav-id": d.title,
|
|
687
687
|
"nav-location": "desktop",
|
|
688
688
|
"nav-accordion-group": e.title,
|
|
689
|
-
"menu-item":
|
|
689
|
+
"menu-item": d,
|
|
690
690
|
"as-link": e.menuItemAsLink,
|
|
691
691
|
"text-color": e.menuTextColor,
|
|
692
692
|
"text-size": e.menuTextSize,
|
|
693
693
|
"font-bold": e.menuTextBold,
|
|
694
694
|
"d-hl": e.displayHighlight,
|
|
695
695
|
"hl-color": e.highlightColor,
|
|
696
|
-
onChildClick:
|
|
696
|
+
onChildClick: r,
|
|
697
697
|
onLabelClick: l
|
|
698
|
-
}, null, 8, ["nav-id", "nav-accordion-group", "menu-item", "as-link", "text-color", "text-size", "font-bold", "d-hl", "hl-color"])) : (i(), x(
|
|
698
|
+
}, null, 8, ["nav-id", "nav-accordion-group", "menu-item", "as-link", "text-color", "text-size", "font-bold", "d-hl", "hl-color"])) : (i(), x(W, {
|
|
699
699
|
key: 0,
|
|
700
|
-
"menu-item":
|
|
700
|
+
"menu-item": d,
|
|
701
701
|
"as-link": e.menuItemAsLink,
|
|
702
702
|
"text-color": e.menuTextColor,
|
|
703
703
|
"text-size": e.menuTextSize,
|
|
704
704
|
"font-bold": e.menuTextBold,
|
|
705
705
|
"d-hl": e.displayHighlight,
|
|
706
706
|
"hl-color": e.highlightColor,
|
|
707
|
-
onMenuClick:
|
|
707
|
+
onMenuClick: r
|
|
708
708
|
}, null, 8, ["menu-item", "as-link", "text-color", "text-size", "font-bold", "d-hl", "hl-color"]))
|
|
709
709
|
]))), 128))
|
|
710
710
|
])
|
|
711
711
|
])
|
|
712
712
|
]),
|
|
713
713
|
"content-bottom": O(() => [
|
|
714
|
-
g["content-bottom"] ? (i(),
|
|
715
|
-
|
|
716
|
-
])) :
|
|
714
|
+
g["content-bottom"] ? (i(), c("div", je, [
|
|
715
|
+
j(e.$slots, "content-bottom")
|
|
716
|
+
])) : z("", !0)
|
|
717
717
|
]),
|
|
718
|
-
"mobile-content": O(({ headerClose:
|
|
719
|
-
n("div",
|
|
718
|
+
"mobile-content": O(({ headerClose: d }) => [
|
|
719
|
+
n("div", Ge, [
|
|
720
720
|
n("div", null, [
|
|
721
|
-
n("div",
|
|
721
|
+
n("div", Fe, [
|
|
722
722
|
n("a", {
|
|
723
723
|
href: e.titleBlockLink,
|
|
724
724
|
target: e.titleBlockLinkTarget,
|
|
@@ -728,8 +728,8 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
728
728
|
src: e.logo,
|
|
729
729
|
alt: e.logoAlt,
|
|
730
730
|
class: "h-full inline-block max-h-xl"
|
|
731
|
-
}, null, 8,
|
|
732
|
-
], 8,
|
|
731
|
+
}, null, 8, Ke)
|
|
732
|
+
], 8, Ve)
|
|
733
733
|
]),
|
|
734
734
|
n("div", null, [
|
|
735
735
|
n("a", {
|
|
@@ -738,16 +738,16 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
738
738
|
onClick: t
|
|
739
739
|
}, [
|
|
740
740
|
n("h3", {
|
|
741
|
-
class:
|
|
741
|
+
class: T([f.value, "text-center mb-md"]),
|
|
742
742
|
innerHTML: e.title
|
|
743
|
-
}, null, 10,
|
|
744
|
-
], 8,
|
|
743
|
+
}, null, 10, We)
|
|
744
|
+
], 8, Ye)
|
|
745
745
|
]),
|
|
746
|
-
n("ul",
|
|
747
|
-
(i(!0),
|
|
748
|
-
key: `menu-${
|
|
746
|
+
n("ul", _e, [
|
|
747
|
+
(i(!0), c(S, null, X(e.menuItems, (m, H) => (i(), c("li", {
|
|
748
|
+
key: `menu-${H}`
|
|
749
749
|
}, [
|
|
750
|
-
|
|
750
|
+
C(m) ? (i(), x(Y, {
|
|
751
751
|
key: 1,
|
|
752
752
|
"nav-id": m.title,
|
|
753
753
|
"nav-location": "mobile",
|
|
@@ -759,9 +759,9 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
759
759
|
"font-bold": e.menuTextBold,
|
|
760
760
|
"d-hl": e.displayHighlight,
|
|
761
761
|
"hl-color": e.highlightColor,
|
|
762
|
-
onChildClick:
|
|
762
|
+
onChildClick: r,
|
|
763
763
|
onLabelClick: l
|
|
764
|
-
}, null, 8, ["nav-id", "nav-accordion-group", "menu-item", "as-link", "text-color", "text-size", "font-bold", "d-hl", "hl-color"])) : (i(), x(
|
|
764
|
+
}, null, 8, ["nav-id", "nav-accordion-group", "menu-item", "as-link", "text-color", "text-size", "font-bold", "d-hl", "hl-color"])) : (i(), x(W, {
|
|
765
765
|
key: 0,
|
|
766
766
|
"menu-item": m,
|
|
767
767
|
"as-link": e.menuItemAsLink,
|
|
@@ -770,14 +770,14 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
770
770
|
"font-bold": e.menuTextBold,
|
|
771
771
|
"d-hl": e.displayHighlight,
|
|
772
772
|
"hl-color": e.highlightColor,
|
|
773
|
-
onMenuClick:
|
|
773
|
+
onMenuClick: r
|
|
774
774
|
}, null, 8, ["menu-item", "as-link", "text-color", "text-size", "font-bold", "d-hl", "hl-color"]))
|
|
775
775
|
]))), 128))
|
|
776
776
|
])
|
|
777
777
|
]),
|
|
778
|
-
g["mobile-bottom"] ? (i(),
|
|
779
|
-
|
|
780
|
-
])) :
|
|
778
|
+
g["mobile-bottom"] ? (i(), c("div", Ue, [
|
|
779
|
+
j(e.$slots, "mobile-bottom", { headerClose: d })
|
|
780
|
+
])) : z("", !0)
|
|
781
781
|
])
|
|
782
782
|
]),
|
|
783
783
|
_: 3
|
|
@@ -785,6 +785,6 @@ const ae = (k) => (U("data-v-1b1467b6"), k = k(), q(), k), se = { class: "flex f
|
|
|
785
785
|
}
|
|
786
786
|
});
|
|
787
787
|
export {
|
|
788
|
-
|
|
789
|
-
|
|
788
|
+
Pe as MclHeaderA,
|
|
789
|
+
Qe as MclHeaderB
|
|
790
790
|
};
|