@kiva/kv-components 6.45.2 → 6.47.0
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.js +164 -162
- package/dist/utils/comparators.js +6 -23
- package/dist/vue/KvCardFrame.js +27 -27
- package/dist/vue/KvImpactVerticalSelector.js +109 -0
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +89 -0
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +84 -0
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +178 -133
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +1 -0
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +133 -53
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +33 -31
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +61 -0
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +99 -134
- package/package.json +2 -3
- package/dist/utils/event.js +0 -7
- package/dist/utils/loanSearch/queryParamUtils.js +0 -13
- package/dist/utils/markMatches.js +0 -12
- package/dist/utils/searchEngine.js +0 -56
- package/dist/utils/siteSearch.js +0 -112
- package/dist/vue/KvWwwHeader/KvHeaderSearchBar.js +0 -72
- package/dist/vue/KvWwwHeader/KvHeaderSearchSuggestions.css +0 -1
- package/dist/vue/KvWwwHeader/KvHeaderSearchSuggestions.js +0 -57
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
import s from "./KvHeaderMenuLink.js";
|
|
2
|
+
import { resolveComponent as l, resolveDirective as p, openBlock as t, createElementBlock as f, withDirectives as n, createBlock as i, withCtx as u, createTextVNode as a } from "vue";
|
|
3
|
+
import d from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const k = {
|
|
5
|
+
components: {
|
|
6
|
+
KvHeaderMenuLink: s
|
|
7
|
+
}
|
|
8
|
+
}, m = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium" };
|
|
9
|
+
function v(w, e, c, b, N, T) {
|
|
10
|
+
const o = l("kv-header-menu-link"), r = p("kv-track-event");
|
|
11
|
+
return t(), f("nav", m, [
|
|
12
|
+
n((t(), i(o, { href: "/about" }, {
|
|
13
|
+
default: u(() => e[0] || (e[0] = [
|
|
14
|
+
a(" About us ")
|
|
15
|
+
])),
|
|
16
|
+
_: 1
|
|
17
|
+
})), [
|
|
18
|
+
[r, ["TopNav", "click-menu-about-us"]]
|
|
19
|
+
]),
|
|
20
|
+
n((t(), i(o, { href: "/about/partner-with-us" }, {
|
|
21
|
+
default: u(() => e[1] || (e[1] = [
|
|
22
|
+
a(" Partner with us ")
|
|
23
|
+
])),
|
|
24
|
+
_: 1
|
|
25
|
+
})), [
|
|
26
|
+
[r, ["TopNav", "click-menu-partner-with-us"]]
|
|
27
|
+
]),
|
|
28
|
+
n((t(), i(o, { href: "/about/how" }, {
|
|
29
|
+
default: u(() => e[2] || (e[2] = [
|
|
30
|
+
a(" How Kiva works ")
|
|
31
|
+
])),
|
|
32
|
+
_: 1
|
|
33
|
+
})), [
|
|
34
|
+
[r, ["TopNav", "click-menu-how-kiva-works"]]
|
|
35
|
+
]),
|
|
36
|
+
n((t(), i(o, { href: "/about/where-kiva-works" }, {
|
|
37
|
+
default: u(() => e[3] || (e[3] = [
|
|
38
|
+
a(" Where Kiva works ")
|
|
39
|
+
])),
|
|
40
|
+
_: 1
|
|
41
|
+
})), [
|
|
42
|
+
[r, ["TopNav", "click-menu-where-kiva-works"]]
|
|
43
|
+
]),
|
|
44
|
+
n((t(), i(o, { href: "/impact" }, {
|
|
45
|
+
default: u(() => e[4] || (e[4] = [
|
|
46
|
+
a(" Impact ")
|
|
47
|
+
])),
|
|
48
|
+
_: 1
|
|
49
|
+
})), [
|
|
50
|
+
[r, ["TopNav", "click-menu-impact"]]
|
|
51
|
+
]),
|
|
52
|
+
n((t(), i(o, { href: "/about/leadership" }, {
|
|
53
|
+
default: u(() => e[5] || (e[5] = [
|
|
54
|
+
a(" Leadership ")
|
|
55
|
+
])),
|
|
56
|
+
_: 1
|
|
57
|
+
})), [
|
|
58
|
+
[r, ["TopNav", "click-menu-leadership"]]
|
|
59
|
+
]),
|
|
60
|
+
n((t(), i(o, { href: "/about/finances" }, {
|
|
61
|
+
default: u(() => e[6] || (e[6] = [
|
|
62
|
+
a(" Finances ")
|
|
63
|
+
])),
|
|
64
|
+
_: 1
|
|
65
|
+
})), [
|
|
66
|
+
[r, ["TopNav", "click-menu-finances"]]
|
|
67
|
+
]),
|
|
68
|
+
n((t(), i(o, { href: "/about/press-center" }, {
|
|
69
|
+
default: u(() => e[7] || (e[7] = [
|
|
70
|
+
a(" Press ")
|
|
71
|
+
])),
|
|
72
|
+
_: 1
|
|
73
|
+
})), [
|
|
74
|
+
[r, ["TopNav", "click-menu-press"]]
|
|
75
|
+
]),
|
|
76
|
+
n((t(), i(o, { href: "/about/due-diligence" }, {
|
|
77
|
+
default: u(() => e[8] || (e[8] = [
|
|
78
|
+
a(" Due diligence ")
|
|
79
|
+
])),
|
|
80
|
+
_: 1
|
|
81
|
+
})), [
|
|
82
|
+
[r, ["TopNav", "click-menu-due-diligence"]]
|
|
83
|
+
])
|
|
84
|
+
]);
|
|
85
|
+
}
|
|
86
|
+
const K = /* @__PURE__ */ d(k, [["render", v]]);
|
|
87
|
+
export {
|
|
88
|
+
K as default
|
|
89
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
import { getCurrentInstance as i, computed as u, resolveComponent as m, openBlock as f, createElementBlock as c, normalizeClass as s, normalizeStyle as w, renderSlot as p, createVNode as v } from "vue";
|
|
2
|
+
import M from "../KvMaterialIcon.js";
|
|
3
|
+
import y from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const h = {
|
|
5
|
+
components: { KvMaterialIcon: M },
|
|
6
|
+
props: {
|
|
7
|
+
refName: {
|
|
8
|
+
type: String,
|
|
9
|
+
default: ""
|
|
10
|
+
},
|
|
11
|
+
href: {
|
|
12
|
+
type: String,
|
|
13
|
+
default: void 0
|
|
14
|
+
},
|
|
15
|
+
menuComponent: {
|
|
16
|
+
type: Object,
|
|
17
|
+
default: () => ({})
|
|
18
|
+
},
|
|
19
|
+
openMenuItem: {
|
|
20
|
+
type: Object,
|
|
21
|
+
default: () => ({})
|
|
22
|
+
},
|
|
23
|
+
dropdownIcon: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: ""
|
|
26
|
+
},
|
|
27
|
+
baseClass: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: ""
|
|
30
|
+
},
|
|
31
|
+
sendLinkPosition: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !1
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
emits: [
|
|
37
|
+
"on-hover"
|
|
38
|
+
],
|
|
39
|
+
setup(e, { emit: o }) {
|
|
40
|
+
const { proxy: n } = i();
|
|
41
|
+
return {
|
|
42
|
+
computedClass: u(() => [
|
|
43
|
+
e.baseClass,
|
|
44
|
+
{ "tw-text-tertiary": e.openMenuItem && e.openMenuItem !== e.menuComponent }
|
|
45
|
+
]),
|
|
46
|
+
handleMouseOver: () => {
|
|
47
|
+
let l = null;
|
|
48
|
+
if (e.sendLinkPosition) {
|
|
49
|
+
const a = n.$refs[e.refName];
|
|
50
|
+
if (a) {
|
|
51
|
+
const t = a.getBoundingClientRect();
|
|
52
|
+
l = {
|
|
53
|
+
left: `${(t == null ? void 0 : t.left) + (t == null ? void 0 : t.width) / 2}px`,
|
|
54
|
+
transform: "translateX(-50%)",
|
|
55
|
+
borderRadius: "0px 0px 8px 8px"
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
o("on-hover", e.refName, e.menuComponent, l);
|
|
60
|
+
}
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
}, C = ["href"];
|
|
64
|
+
function x(e, o, n, r, d, l) {
|
|
65
|
+
const a = m("KvMaterialIcon");
|
|
66
|
+
return f(), c("a", {
|
|
67
|
+
ref: n.refName,
|
|
68
|
+
class: s(["tw-px-1.5 tw-py-1 tw-mx-1 tw-no-underline hover:tw-no-underline tw-text-primary hover:tw-text-action tw-items-center tw-rounded tw-cursor-pointer", r.computedClass]),
|
|
69
|
+
href: n.href,
|
|
70
|
+
style: w(e.style),
|
|
71
|
+
onMouseover: o[0] || (o[0] = (...t) => r.handleMouseOver && r.handleMouseOver(...t)),
|
|
72
|
+
onMouseout: o[1] || (o[1] = (...t) => r.handleMouseOver && r.handleMouseOver(...t))
|
|
73
|
+
}, [
|
|
74
|
+
p(e.$slots, "default"),
|
|
75
|
+
v(a, {
|
|
76
|
+
class: s(["tw-inline tw-w-3 tw-ml-0.5 tw-transition-transform tw-duration-300", { "tw-rotate-180": n.openMenuItem === n.menuComponent }]),
|
|
77
|
+
icon: n.dropdownIcon
|
|
78
|
+
}, null, 8, ["class", "icon"])
|
|
79
|
+
], 46, C);
|
|
80
|
+
}
|
|
81
|
+
const _ = /* @__PURE__ */ y(h, [["render", x]]);
|
|
82
|
+
export {
|
|
83
|
+
_ as default
|
|
84
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-link[data-v-
|
|
1
|
+
.header-link[data-v-9da32973]{cursor:pointer;padding:1rem .5rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.header-link[data-v-9da32973]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}@media (min-width: 64rem){.header-link[data-v-9da32973]{padding-left:1.25rem;padding-right:1.25rem}}
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as f, ref as
|
|
2
|
-
import { mdiAccountCircle as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { defineAsyncComponent as f, ref as l, computed as O, onMounted as S, onUnmounted as E, resolveComponent as M, resolveDirective as P, openBlock as t, createElementBlock as u, withDirectives as d, normalizeClass as g, createVNode as B, createBlock as b, withCtx as H, createTextVNode as v, createElementVNode as N, createCommentVNode as c, toDisplayString as V } from "vue";
|
|
2
|
+
import { mdiAccountCircle as z, mdiChevronDown as W, mdiMagnify as j, mdiMenu as F } from "@mdi/js";
|
|
3
|
+
import R from "numeral";
|
|
4
|
+
import q from "../KvMaterialIcon.js";
|
|
5
|
+
import G from "../KvIconBag.js";
|
|
6
|
+
import J from "./KvHeaderDropdownLink.js";
|
|
7
|
+
import Q from "../KvUserAvatar.js";
|
|
8
|
+
import { throttle as X } from "../../utils/throttle.js";
|
|
5
9
|
import "./KvHeaderLinkBar.css";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
10
|
+
import Y from "../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
+
const Z = f(() => import("./KvHeaderMobileMenu.js")), T = f(() => import("./KvHeaderMyKivaMenu.js")), $ = f(() => import("./LendMenu/KvLendMenu.js")), ee = f(() => import("./KvHeaderTakeActionMenu.js")), ne = f(() => import("./KvHeaderAboutMenu.js")), C = 118, oe = {
|
|
8
12
|
components: {
|
|
9
|
-
KvMaterialIcon:
|
|
10
|
-
KvIconBag:
|
|
13
|
+
KvMaterialIcon: q,
|
|
14
|
+
KvIconBag: G,
|
|
15
|
+
KvHeaderDropdownLink: J,
|
|
16
|
+
KvUserAvatar: Q
|
|
11
17
|
},
|
|
12
18
|
props: {
|
|
13
19
|
loggedIn: {
|
|
@@ -25,154 +31,193 @@ const V = f(() => import("./KvHeaderMobileMenu.js")), _ = f(() => import("./KvHe
|
|
|
25
31
|
loginUrl: {
|
|
26
32
|
type: String,
|
|
27
33
|
default: "/ui-login"
|
|
34
|
+
},
|
|
35
|
+
myDashboardUrl: {
|
|
36
|
+
type: String,
|
|
37
|
+
default: "/mykiva"
|
|
38
|
+
},
|
|
39
|
+
lenderName: {
|
|
40
|
+
type: String,
|
|
41
|
+
default: ""
|
|
42
|
+
},
|
|
43
|
+
lenderImageUrl: {
|
|
44
|
+
type: String,
|
|
45
|
+
default: ""
|
|
46
|
+
},
|
|
47
|
+
isMobile: {
|
|
48
|
+
type: Boolean,
|
|
49
|
+
default: !1
|
|
28
50
|
}
|
|
29
51
|
},
|
|
30
52
|
emits: [
|
|
31
|
-
"item-hover"
|
|
32
|
-
"open-search"
|
|
53
|
+
"item-hover"
|
|
33
54
|
],
|
|
34
|
-
setup(
|
|
35
|
-
const
|
|
36
|
-
|
|
37
|
-
},
|
|
38
|
-
var
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
55
|
+
setup(m, { emit: o }) {
|
|
56
|
+
const e = l(null), n = l(null), I = l(null), x = l(null), p = l(null), s = l(null), h = l(null), y = l(null), i = l(null), a = (r, w, k = null) => {
|
|
57
|
+
o("item-hover", r, w, k);
|
|
58
|
+
}, K = () => {
|
|
59
|
+
var A, _;
|
|
60
|
+
const r = (_ = (A = e.value) == null ? void 0 : A.imageRef) == null ? void 0 : _.getBoundingClientRect();
|
|
61
|
+
let w = null, k = !1;
|
|
62
|
+
if (r) {
|
|
63
|
+
const U = (r == null ? void 0 : r.left) + (r == null ? void 0 : r.width) / 2 - C / 2;
|
|
64
|
+
U + C > window.outerWidth && (k = !0), w = {
|
|
65
|
+
...k ? { right: 0 } : { left: m.isMobile ? 0 : `${U}px` },
|
|
66
|
+
borderRadius: "0px 0px 8px 8px",
|
|
67
|
+
width: `${m.isMobile ? "100%" : "auto"}`
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
a(e.value, T, w);
|
|
71
|
+
}, L = X(() => {
|
|
72
|
+
m.openMenuItem && K();
|
|
73
|
+
}, 50), D = O(() => m.isMobile ? void 0 : "/lend-by-category");
|
|
74
|
+
return S(() => {
|
|
75
|
+
import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js"), import("./KvHeaderTakeActionMenu.js"), import("./KvHeaderAboutMenu.js"), window.addEventListener("resize", L);
|
|
76
|
+
}), E(() => {
|
|
77
|
+
window.removeEventListener("resize", L);
|
|
43
78
|
}), {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
avatar:
|
|
79
|
+
numeral: R,
|
|
80
|
+
mdiAccountCircle: z,
|
|
81
|
+
mdiChevronDown: W,
|
|
82
|
+
mdiMagnify: j,
|
|
83
|
+
mdiMenu: F,
|
|
84
|
+
onHover: a,
|
|
85
|
+
avatar: e,
|
|
51
86
|
lendButton: n,
|
|
52
|
-
aboutUsLink:
|
|
53
|
-
partnerWithUsLink:
|
|
54
|
-
borrowLink:
|
|
55
|
-
supportKivaLink:
|
|
56
|
-
basketLink:
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
87
|
+
aboutUsLink: I,
|
|
88
|
+
partnerWithUsLink: x,
|
|
89
|
+
borrowLink: p,
|
|
90
|
+
supportKivaLink: s,
|
|
91
|
+
basketLink: h,
|
|
92
|
+
signInLink: y,
|
|
93
|
+
menuButton: i,
|
|
94
|
+
lendUrl: D,
|
|
95
|
+
handleAvatarMenuPosition: K,
|
|
96
|
+
KvHeaderMobileMenu: Z,
|
|
97
|
+
KvHeaderMyKivaMenu: T,
|
|
98
|
+
KvLendMenu: $,
|
|
99
|
+
KvHeaderTakeActionMenu: ee,
|
|
100
|
+
KvHeaderAboutMenu: ne
|
|
63
101
|
};
|
|
64
102
|
}
|
|
65
|
-
},
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
onMouseout: e[1] || (e[1] = (r) => n.onHover())
|
|
77
|
-
}, [
|
|
78
|
-
s(d, {
|
|
79
|
-
icon: n.mdiAccountCircle,
|
|
80
|
-
class: "tw-w-3"
|
|
81
|
-
}, null, 8, ["icon"])
|
|
82
|
-
], 34)) : v("", !0),
|
|
83
|
-
c((l(), a("a", {
|
|
84
|
-
ref: "lendButton",
|
|
85
|
-
href: "/lend-by-category",
|
|
86
|
-
class: o(["tw-px-1.5 tw-py-1 tw-mx-1 tw-border-2 tw-text-eco-green-3 tw-border-current tw-no-underline hover:tw-no-underline tw-inline-flex tw-items-center", {
|
|
87
|
-
"tw-text-tertiary": t.openMenuItem && t.openMenuItem !== n.KvLendMenu
|
|
103
|
+
}, te = { class: "tw-h-full tw-flex tw-items-center" }, ie = ["href"], re = {
|
|
104
|
+
key: 0,
|
|
105
|
+
class: "tw-bg-eco-green-1 tw-py-0.5 tw-px-1 tw-text-eco-green-4"
|
|
106
|
+
}, le = ["href"];
|
|
107
|
+
function ae(m, o, e, n, I, x) {
|
|
108
|
+
const p = M("kv-material-icon"), s = M("KvHeaderDropdownLink"), h = M("kv-icon-bag"), y = M("KvUserAvatar"), i = P("kv-track-event");
|
|
109
|
+
return t(), u("div", te, [
|
|
110
|
+
d((t(), u("button", {
|
|
111
|
+
ref: "menuButton",
|
|
112
|
+
class: g(["header-link tw-inline-flex lg:tw-hidden", {
|
|
113
|
+
"tw-text-tertiary": e.openMenuItem && e.openMenuItem !== n.KvHeaderMobileMenu
|
|
88
114
|
}]),
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
onMouseout: e[3] || (e[3] = (r) => n.onHover())
|
|
115
|
+
onMouseover: o[0] || (o[0] = (a) => n.onHover(n.menuButton, n.KvHeaderMobileMenu)),
|
|
116
|
+
onMouseout: o[1] || (o[1] = (a) => n.onHover())
|
|
92
117
|
}, [
|
|
93
|
-
|
|
94
|
-
e[8] || (e[8] = w("span", { class: "tw-hidden lg:tw-inline tw-ml-0.5" }, "now", -1)),
|
|
95
|
-
s(d, {
|
|
96
|
-
class: o(["tw-hidden md:tw-inline tw-w-3 tw-ml-0.5 tw-transition-transform tw-duration-300", { "tw-rotate-180": t.openMenuItem === n.KvLendMenu }]),
|
|
97
|
-
icon: n.mdiChevronDown
|
|
98
|
-
}, null, 8, ["class", "icon"])
|
|
118
|
+
B(p, { icon: n.mdiMenu }, null, 8, ["icon"])
|
|
99
119
|
], 34)), [
|
|
100
|
-
[
|
|
120
|
+
[i, e.openMenuItem === n.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
|
|
101
121
|
]),
|
|
102
|
-
|
|
103
|
-
ref: "
|
|
104
|
-
href:
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
122
|
+
d((t(), b(s, {
|
|
123
|
+
"ref-name": "lendButton",
|
|
124
|
+
href: n.lendUrl,
|
|
125
|
+
"menu-component": n.KvLendMenu,
|
|
126
|
+
"open-menu-item": e.openMenuItem,
|
|
127
|
+
"dropdown-icon": n.mdiChevronDown,
|
|
128
|
+
"base-class": "tw-inline-flex",
|
|
129
|
+
onOnHover: n.onHover
|
|
130
|
+
}, {
|
|
131
|
+
default: H(() => o[4] || (o[4] = [
|
|
132
|
+
v(" Lend ")
|
|
133
|
+
])),
|
|
134
|
+
_: 1
|
|
135
|
+
}, 8, ["href", "menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
136
|
+
[i, ["TopNav", "click-Lend"]]
|
|
137
|
+
]),
|
|
138
|
+
d((t(), b(s, {
|
|
139
|
+
"ref-name": "takeActionButton",
|
|
140
|
+
"base-class": "tw-hidden lg:tw-inline-flex",
|
|
141
|
+
"menu-component": n.KvHeaderTakeActionMenu,
|
|
142
|
+
"open-menu-item": e.openMenuItem,
|
|
143
|
+
"dropdown-icon": n.mdiChevronDown,
|
|
144
|
+
"send-link-position": "",
|
|
145
|
+
onOnHover: n.onHover
|
|
146
|
+
}, {
|
|
147
|
+
default: H(() => o[5] || (o[5] = [
|
|
148
|
+
v(" Take action ")
|
|
149
|
+
])),
|
|
150
|
+
_: 1
|
|
151
|
+
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
152
|
+
[i, ["TopNav", "click-TakeAction"]]
|
|
153
|
+
]),
|
|
154
|
+
d((t(), b(s, {
|
|
155
|
+
"ref-name": "aboutUsLink",
|
|
156
|
+
"base-class": "tw-hidden lg:tw-inline-flex",
|
|
157
|
+
"menu-component": n.KvHeaderAboutMenu,
|
|
158
|
+
"open-menu-item": e.openMenuItem,
|
|
159
|
+
"dropdown-icon": n.mdiChevronDown,
|
|
160
|
+
"send-link-position": "",
|
|
161
|
+
onOnHover: n.onHover
|
|
162
|
+
}, {
|
|
163
|
+
default: H(() => o[6] || (o[6] = [
|
|
164
|
+
v(" About ")
|
|
165
|
+
])),
|
|
166
|
+
_: 1
|
|
167
|
+
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
168
|
+
[i, ["TopNav", "click-About"]]
|
|
169
|
+
]),
|
|
170
|
+
o[9] || (o[9] = N("div", { class: "tw-flex-1 tw-h-full" }, null, -1)),
|
|
171
|
+
e.loggedIn ? d((t(), u("a", {
|
|
172
|
+
key: 0,
|
|
173
|
+
ref: "dashboardLink",
|
|
174
|
+
href: e.myDashboardUrl,
|
|
175
|
+
class: g(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!e.openMenuItem }])
|
|
176
|
+
}, o[7] || (o[7] = [
|
|
177
|
+
v(" My dashboard ")
|
|
178
|
+
]), 10, ie)), [
|
|
179
|
+
[i, ["TopNav", "click-Dashboard"]]
|
|
180
|
+
]) : c("", !0),
|
|
181
|
+
e.basketCount > 0 ? d((t(), u("a", {
|
|
114
182
|
key: 1,
|
|
115
|
-
ref: "borrowLink",
|
|
116
|
-
href: "/borrow",
|
|
117
|
-
class: o(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
118
|
-
}, " Borrow ", 2)),
|
|
119
|
-
w("a", {
|
|
120
|
-
ref: "supportKivaLink",
|
|
121
|
-
href: "/donate/supportus",
|
|
122
|
-
class: o(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
123
|
-
}, " Support Kiva ", 2),
|
|
124
|
-
t.basketCount > 0 ? c((l(), a("a", {
|
|
125
|
-
key: 2,
|
|
126
183
|
ref: "basketLink",
|
|
127
184
|
href: "/basket",
|
|
128
|
-
class:
|
|
185
|
+
class: g(["header-link tw-relative", { "tw-text-tertiary": !!e.openMenuItem }])
|
|
129
186
|
}, [
|
|
130
|
-
|
|
187
|
+
B(h, {
|
|
131
188
|
class: "tw-w-3 tw-h-3 tw-pointer-events-none",
|
|
132
|
-
count:
|
|
189
|
+
count: e.basketCount
|
|
133
190
|
}, null, 8, ["count"])
|
|
134
191
|
], 2)), [
|
|
135
|
-
[
|
|
136
|
-
]) :
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}]),
|
|
142
|
-
onClick: e[4] || (e[4] = (...r) => n.openSearch && n.openSearch(...r))
|
|
192
|
+
[i, ["TopNav", "click-Basket"]]
|
|
193
|
+
]) : c("", !0),
|
|
194
|
+
N("div", {
|
|
195
|
+
class: "tw-cursor-pointer tw-flex tw-items-center tw-gap-1",
|
|
196
|
+
onMouseover: o[2] || (o[2] = (...a) => n.handleAvatarMenuPosition && n.handleAvatarMenuPosition(...a)),
|
|
197
|
+
onMouseout: o[3] || (o[3] = (a) => n.onHover())
|
|
143
198
|
}, [
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
199
|
+
e.loggedIn ? (t(), u("span", re, V(n.numeral(m.balance).format("$0")), 1)) : c("", !0),
|
|
200
|
+
e.loggedIn ? (t(), b(y, {
|
|
201
|
+
key: 1,
|
|
202
|
+
ref: "avatar",
|
|
203
|
+
"lender-name": e.lenderName,
|
|
204
|
+
"lender-image-url": e.lenderImageUrl,
|
|
205
|
+
"is-small": ""
|
|
206
|
+
}, null, 8, ["lender-name", "lender-image-url"])) : c("", !0)
|
|
207
|
+
], 32),
|
|
208
|
+
e.loggedIn ? c("", !0) : d((t(), u("a", {
|
|
209
|
+
key: 2,
|
|
153
210
|
ref: "signInLink",
|
|
154
|
-
href:
|
|
155
|
-
class:
|
|
156
|
-
},
|
|
157
|
-
|
|
158
|
-
]), 10,
|
|
159
|
-
[
|
|
160
|
-
]),
|
|
161
|
-
c((l(), a("button", {
|
|
162
|
-
ref: "menuButton",
|
|
163
|
-
class: o(["header-link tw-inline-flex lg:tw-hidden", {
|
|
164
|
-
"tw-text-tertiary": t.openMenuItem && t.openMenuItem !== n.KvHeaderMobileMenu
|
|
165
|
-
}]),
|
|
166
|
-
onMouseover: e[5] || (e[5] = (r) => n.onHover(n.menuButton, n.KvHeaderMobileMenu)),
|
|
167
|
-
onMouseout: e[6] || (e[6] = (r) => n.onHover())
|
|
168
|
-
}, [
|
|
169
|
-
s(d, { icon: n.mdiMenu }, null, 8, ["icon"])
|
|
170
|
-
], 34)), [
|
|
171
|
-
[u, t.openMenuItem === n.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
|
|
211
|
+
href: e.loginUrl,
|
|
212
|
+
class: g(["header-link", { "tw-text-tertiary": !!e.openMenuItem }])
|
|
213
|
+
}, o[8] || (o[8] = [
|
|
214
|
+
v(" Sign in ")
|
|
215
|
+
]), 10, le)), [
|
|
216
|
+
[i, ["TopNav", "click-Sign-in"]]
|
|
172
217
|
])
|
|
173
218
|
]);
|
|
174
219
|
}
|
|
175
|
-
const
|
|
220
|
+
const pe = /* @__PURE__ */ Y(oe, [["render", ae], ["__scopeId", "data-v-9da32973"]]);
|
|
176
221
|
export {
|
|
177
|
-
|
|
222
|
+
pe as default
|
|
178
223
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.mobile-link[data-v-c9569b42]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-c9569b42]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}
|