@kiva/kv-components 6.40.1 → 6.40.2
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 +60 -58
- package/dist/utils/arrayUtils.js +8 -0
- package/dist/utils/comparators.js +28 -0
- package/dist/utils/event.js +7 -0
- package/dist/utils/loanSearch/queryParamUtils.js +13 -0
- package/dist/utils/markMatches.js +12 -0
- package/dist/utils/paramCase.js +6 -0
- package/dist/utils/searchEngine.js +56 -0
- package/dist/utils/siteSearch.js +112 -0
- package/dist/vue/KvIconBag.js +41 -0
- package/dist/vue/KvLogo.js +18 -0
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -0
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +176 -0
- package/dist/vue/KvWwwHeader/KvHeaderLogo.js +18 -0
- package/dist/vue/KvWwwHeader/KvHeaderMenuLink.js +12 -0
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +73 -0
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +90 -0
- package/dist/vue/KvWwwHeader/KvHeaderSearchBar.js +72 -0
- package/dist/vue/KvWwwHeader/KvHeaderSearchSuggestions.css +1 -0
- package/dist/vue/KvWwwHeader/KvHeaderSearchSuggestions.js +57 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +1 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +257 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.css +1 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +263 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +155 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.css +1 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.js +38 -0
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.js +32 -0
- package/dist/vue/KvWwwHeader.css +1 -0
- package/dist/vue/KvWwwHeader.js +203 -0
- package/package.json +2 -2
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import s from "./KvHeaderMenuLink.js";
|
|
2
|
+
import { resolveComponent as f, resolveDirective as m, openBlock as t, createElementBlock as p, withDirectives as r, createBlock as i, withCtx as l, createTextVNode as u, createCommentVNode as d } from "vue";
|
|
3
|
+
import v from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const k = {
|
|
5
|
+
components: {
|
|
6
|
+
KvHeaderMenuLink: s
|
|
7
|
+
},
|
|
8
|
+
props: {
|
|
9
|
+
loggedIn: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: !1
|
|
12
|
+
},
|
|
13
|
+
loginUrl: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: "/ui-login"
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
}, c = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-end lg:tw-hidden tw-font-medium" };
|
|
19
|
+
function w(_, e, a, g, b, x) {
|
|
20
|
+
const o = f("kv-header-menu-link"), n = m("kv-track-event");
|
|
21
|
+
return t(), p("nav", c, [
|
|
22
|
+
a.loggedIn ? d("", !0) : r((t(), i(o, {
|
|
23
|
+
key: 0,
|
|
24
|
+
href: a.loginUrl
|
|
25
|
+
}, {
|
|
26
|
+
default: l(() => e[0] || (e[0] = [
|
|
27
|
+
u(" Sign in ")
|
|
28
|
+
])),
|
|
29
|
+
_: 1
|
|
30
|
+
}, 8, ["href"])), [
|
|
31
|
+
[n, ["TopNav", "click-menu-Sign-in"]]
|
|
32
|
+
]),
|
|
33
|
+
r((t(), i(o, { href: "/donate/supportus" }, {
|
|
34
|
+
default: l(() => e[1] || (e[1] = [
|
|
35
|
+
u(" Support Kiva ")
|
|
36
|
+
])),
|
|
37
|
+
_: 1
|
|
38
|
+
})), [
|
|
39
|
+
[n, ["TopNav", "click-menu-Support-kiva"]]
|
|
40
|
+
]),
|
|
41
|
+
a.loggedIn ? d("", !0) : r((t(), i(o, {
|
|
42
|
+
key: 1,
|
|
43
|
+
href: "/borrow"
|
|
44
|
+
}, {
|
|
45
|
+
default: l(() => e[2] || (e[2] = [
|
|
46
|
+
u(" Borrow ")
|
|
47
|
+
])),
|
|
48
|
+
_: 1
|
|
49
|
+
})), [
|
|
50
|
+
[n, ["TopNav", "click-menu-Borrow"]]
|
|
51
|
+
]),
|
|
52
|
+
r((t(), i(o, { href: "/about" }, {
|
|
53
|
+
default: l(() => e[3] || (e[3] = [
|
|
54
|
+
u(" About us ")
|
|
55
|
+
])),
|
|
56
|
+
_: 1
|
|
57
|
+
})), [
|
|
58
|
+
[n, ["TopNav", "click-menu-About-us"]]
|
|
59
|
+
]),
|
|
60
|
+
r((t(), i(o, { href: "/about/partner-with-us" }, {
|
|
61
|
+
default: l(() => e[4] || (e[4] = [
|
|
62
|
+
u(" Partner with us ")
|
|
63
|
+
])),
|
|
64
|
+
_: 1
|
|
65
|
+
})), [
|
|
66
|
+
[n, ["TopNav", "click-menu-Partner-with-us"]]
|
|
67
|
+
])
|
|
68
|
+
]);
|
|
69
|
+
}
|
|
70
|
+
const T = /* @__PURE__ */ v(k, [["render", w]]);
|
|
71
|
+
export {
|
|
72
|
+
T as default
|
|
73
|
+
};
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import u from "numeral";
|
|
2
|
+
import d from "./KvHeaderMenuLink.js";
|
|
3
|
+
import { resolveComponent as p, openBlock as l, createElementBlock as w, createVNode as n, withCtx as o, createElementVNode as a, toDisplayString as y, createTextVNode as r, createBlock as f, createCommentVNode as i } from "vue";
|
|
4
|
+
import k from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const x = {
|
|
6
|
+
components: {
|
|
7
|
+
KvHeaderMenuLink: d
|
|
8
|
+
},
|
|
9
|
+
props: {
|
|
10
|
+
balance: {
|
|
11
|
+
type: Number,
|
|
12
|
+
default: 0
|
|
13
|
+
},
|
|
14
|
+
isBorrower: {
|
|
15
|
+
type: Boolean,
|
|
16
|
+
default: !1
|
|
17
|
+
},
|
|
18
|
+
isTrustee: {
|
|
19
|
+
type: Boolean,
|
|
20
|
+
default: !1
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
setup() {
|
|
24
|
+
return {
|
|
25
|
+
numeral: u
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
}, g = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start lg:tw-items-end tw-font-medium" }, B = { class: "tw-text-eco-green-3" };
|
|
29
|
+
function _(b, e, s, m, v, N) {
|
|
30
|
+
const t = p("kv-header-menu-link");
|
|
31
|
+
return l(), w("nav", g, [
|
|
32
|
+
n(t, {
|
|
33
|
+
href: "/portfolio",
|
|
34
|
+
class: "tw-inline-flex tw-gap-0.5"
|
|
35
|
+
}, {
|
|
36
|
+
default: o(() => [
|
|
37
|
+
e[0] || (e[0] = a("span", null, "Portfolio", -1)),
|
|
38
|
+
e[1] || (e[1] = a("span", { class: "tw-text-secondary" }, "|", -1)),
|
|
39
|
+
a("span", B, y(m.numeral(s.balance).format("$0")), 1)
|
|
40
|
+
]),
|
|
41
|
+
_: 1
|
|
42
|
+
}),
|
|
43
|
+
n(t, { href: "/teams/my-teams" }, {
|
|
44
|
+
default: o(() => e[2] || (e[2] = [
|
|
45
|
+
r(" My Teams ")
|
|
46
|
+
])),
|
|
47
|
+
_: 1
|
|
48
|
+
}),
|
|
49
|
+
n(t, { href: "/portfolio/donations" }, {
|
|
50
|
+
default: o(() => e[3] || (e[3] = [
|
|
51
|
+
r(" Donations ")
|
|
52
|
+
])),
|
|
53
|
+
_: 1
|
|
54
|
+
}),
|
|
55
|
+
n(t, { href: "/settings" }, {
|
|
56
|
+
default: o(() => e[4] || (e[4] = [
|
|
57
|
+
r(" Settings ")
|
|
58
|
+
])),
|
|
59
|
+
_: 1
|
|
60
|
+
}),
|
|
61
|
+
s.isBorrower ? (l(), f(t, {
|
|
62
|
+
key: 0,
|
|
63
|
+
href: "/my/borrower"
|
|
64
|
+
}, {
|
|
65
|
+
default: o(() => e[5] || (e[5] = [
|
|
66
|
+
r(" Borrower Dashboard ")
|
|
67
|
+
])),
|
|
68
|
+
_: 1
|
|
69
|
+
})) : i("", !0),
|
|
70
|
+
s.isTrustee ? (l(), f(t, {
|
|
71
|
+
key: 1,
|
|
72
|
+
href: "/my/trustee"
|
|
73
|
+
}, {
|
|
74
|
+
default: o(() => e[6] || (e[6] = [
|
|
75
|
+
r(" Trustee Dashboard ")
|
|
76
|
+
])),
|
|
77
|
+
_: 1
|
|
78
|
+
})) : i("", !0),
|
|
79
|
+
n(t, { href: "/ui-logout" }, {
|
|
80
|
+
default: o(() => e[7] || (e[7] = [
|
|
81
|
+
r(" Sign out ")
|
|
82
|
+
])),
|
|
83
|
+
_: 1
|
|
84
|
+
})
|
|
85
|
+
]);
|
|
86
|
+
}
|
|
87
|
+
const C = /* @__PURE__ */ k(x, [["render", _]]);
|
|
88
|
+
export {
|
|
89
|
+
C as default
|
|
90
|
+
};
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { ref as f, resolveComponent as u, resolveDirective as h, openBlock as c, createElementBlock as w, withDirectives as d, createElementVNode as p, withKeys as v, vModelText as y, createVNode as x, normalizeClass as _, createTextVNode as S } from "vue";
|
|
2
|
+
import { useSiteSearch as g } from "../../utils/siteSearch.js";
|
|
3
|
+
import { mdiMagnify as k } from "@mdi/js";
|
|
4
|
+
import b from "../KvMaterialIcon.js";
|
|
5
|
+
import T from "../../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const V = {
|
|
7
|
+
components: {
|
|
8
|
+
KvMaterialIcon: b
|
|
9
|
+
},
|
|
10
|
+
emits: [
|
|
11
|
+
"close-search"
|
|
12
|
+
],
|
|
13
|
+
setup(m, { emit: t }) {
|
|
14
|
+
const {
|
|
15
|
+
searchInput: n,
|
|
16
|
+
displayTerm: e,
|
|
17
|
+
runSearch: i,
|
|
18
|
+
getSuggestions: a
|
|
19
|
+
} = g(), o = f(!1);
|
|
20
|
+
return {
|
|
21
|
+
mdiMagnify: k,
|
|
22
|
+
closeSearch: () => {
|
|
23
|
+
o.value = !1, t("close-search");
|
|
24
|
+
},
|
|
25
|
+
displayTerm: e,
|
|
26
|
+
onOpen: () => {
|
|
27
|
+
var s;
|
|
28
|
+
o.value = !0, (s = n.value) == null || s.focus();
|
|
29
|
+
},
|
|
30
|
+
searchInput: n,
|
|
31
|
+
searchExitVisible: o,
|
|
32
|
+
runSearch: i,
|
|
33
|
+
getSuggestions: a
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
}, E = { class: "tw-inline-flex tw-pl-1.5 md:tw-pl-0 tw-w-full" }, C = { class: "tw-flex-none tw-order-first tw-inline-flex tw-items-center tw-my-1.5 tw-p-0.5 tw-rounded-l tw-bg-tertiary peer-placeholder-shown:tw-bg-secondary tw-transition-colors tw-duration-100" };
|
|
37
|
+
function K(m, t, n, e, i, a) {
|
|
38
|
+
const o = u("kv-material-icon"), l = h("kv-track-event");
|
|
39
|
+
return c(), w("div", E, [
|
|
40
|
+
d(p("input", {
|
|
41
|
+
ref: "searchInput",
|
|
42
|
+
"onUpdate:modelValue": t[0] || (t[0] = (r) => e.displayTerm = r),
|
|
43
|
+
type: "text",
|
|
44
|
+
placeholder: "Search",
|
|
45
|
+
class: "tw-peer tw-flex-1 tw-min-w-0 tw-my-1.5 tw-px-1 tw-rounded-r tw-bg-tertiary placeholder-shown:tw-bg-secondary focus:tw-outline-none placeholder:tw-text-gray-300 placeholder:tw-font-medium tw-transition-colors tw-duration-100",
|
|
46
|
+
onKeydown: t[1] || (t[1] = v((r) => e.runSearch(e.displayTerm), ["enter"]))
|
|
47
|
+
}, null, 544), [
|
|
48
|
+
[y, e.displayTerm]
|
|
49
|
+
]),
|
|
50
|
+
p("div", C, [
|
|
51
|
+
x(o, {
|
|
52
|
+
class: "tw-w-3 tw-h-3",
|
|
53
|
+
icon: e.mdiMagnify
|
|
54
|
+
}, null, 8, ["icon"])
|
|
55
|
+
]),
|
|
56
|
+
d((c(), w("button", {
|
|
57
|
+
class: _(["tw-px-2.5 tw-transition-opacity", {
|
|
58
|
+
"tw-opacity-full tw-duration-300": e.searchExitVisible,
|
|
59
|
+
"tw-opacity-0 tw-duration-100": !e.searchExitVisible
|
|
60
|
+
}]),
|
|
61
|
+
onClick: t[2] || (t[2] = (...r) => e.closeSearch && e.closeSearch(...r))
|
|
62
|
+
}, t[3] || (t[3] = [
|
|
63
|
+
S(" Cancel ")
|
|
64
|
+
]), 2)), [
|
|
65
|
+
[l, ["TopNav", "click-cancel-search"]]
|
|
66
|
+
])
|
|
67
|
+
]);
|
|
68
|
+
}
|
|
69
|
+
const O = /* @__PURE__ */ T(V, [["render", K]]);
|
|
70
|
+
export {
|
|
71
|
+
O as default
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.search-results[data-v-f3f87a06]{top:3.75rem}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { useSiteSearch as h } from "../../utils/siteSearch.js";
|
|
2
|
+
import { withDirectives as u, openBlock as t, createElementBlock as e, createElementVNode as i, Fragment as d, renderList as c, toDisplayString as w, normalizeClass as m, withModifiers as p, vShow as _ } from "vue";
|
|
3
|
+
import "./KvHeaderSearchSuggestions.css";
|
|
4
|
+
import g from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const f = {
|
|
6
|
+
setup() {
|
|
7
|
+
const {
|
|
8
|
+
suggestionSections: a,
|
|
9
|
+
highlightedSuggestion: r,
|
|
10
|
+
runSearch: l
|
|
11
|
+
} = h();
|
|
12
|
+
return {
|
|
13
|
+
suggestionSections: a,
|
|
14
|
+
highlightedSuggestion: r,
|
|
15
|
+
runSearch: l
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
}, S = { class: "search-results tw-absolute tw-bg-primary tw-border tw-border-tertiary tw-p-2.5 tw-w-full tw-z-popover" }, v = {
|
|
19
|
+
style: {
|
|
20
|
+
"max-width": "600px"
|
|
21
|
+
},
|
|
22
|
+
class: "tw-mx-auto"
|
|
23
|
+
}, y = ["data-testid"], b = { class: "tw-text-base tw-py-0.5" }, x = ["onClick"], k = ["innerHTML"];
|
|
24
|
+
function M(a, r, l, o, C, H) {
|
|
25
|
+
return u((t(), e("div", S, [
|
|
26
|
+
i("ol", v, [
|
|
27
|
+
(t(!0), e(d, null, c(o.suggestionSections, (s) => (t(), e("li", {
|
|
28
|
+
key: s.name,
|
|
29
|
+
"data-testid": `header-search-results-${s.name}`
|
|
30
|
+
}, [
|
|
31
|
+
i("h2", b, w(s.name), 1),
|
|
32
|
+
i("ol", null, [
|
|
33
|
+
(t(!0), e(d, null, c(s.suggestions, (n) => (t(), e("li", {
|
|
34
|
+
key: n.label,
|
|
35
|
+
"data-testid": "header-search-result-item",
|
|
36
|
+
class: m(["tw-pl-1.5 tw-py-0.5 tw-rounded-sm tw-font-medium tw-cursor-pointer hover:tw-bg-tertiary hover:tw-underline", {
|
|
37
|
+
"tw-bg-tertiary tw-underline": o.highlightedSuggestion === n
|
|
38
|
+
}]),
|
|
39
|
+
onMousedown: r[0] || (r[0] = p(() => {
|
|
40
|
+
}, ["prevent"])),
|
|
41
|
+
onClick: (L) => o.runSearch(n)
|
|
42
|
+
}, [
|
|
43
|
+
i("span", {
|
|
44
|
+
innerHTML: n.html
|
|
45
|
+
}, null, 8, k)
|
|
46
|
+
], 42, x))), 128))
|
|
47
|
+
])
|
|
48
|
+
], 8, y))), 128))
|
|
49
|
+
])
|
|
50
|
+
], 512)), [
|
|
51
|
+
[_, o.suggestionSections.length]
|
|
52
|
+
]);
|
|
53
|
+
}
|
|
54
|
+
const T = /* @__PURE__ */ g(f, [["render", M], ["__scopeId", "data-v-f3f87a06"]]);
|
|
55
|
+
export {
|
|
56
|
+
T as default
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.lend-link[data-v-1f513006]{display:block;width:100%;padding-top:.5rem;padding-bottom:.5rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.lend-link[data-v-1f513006]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1))}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { mdiArrowRight as S } from "@mdi/js";
|
|
2
|
+
import { ref as w, computed as I, resolveComponent as u, resolveDirective as B, openBlock as t, createElementBlock as s, createVNode as i, withCtx as a, createTextVNode as d, createBlock as L, createCommentVNode as T, createElementVNode as l, Fragment as b, renderList as g, withDirectives as v, toDisplayString as A } from "vue";
|
|
3
|
+
import M from "../../KvAccordionItem.js";
|
|
4
|
+
import V from "../../KvLoadingPlaceholder.js";
|
|
5
|
+
import D from "./KvLendMenuCountryList.js";
|
|
6
|
+
import E from "./KvLendMenuSearchList.js";
|
|
7
|
+
import F from "../../KvTab.js";
|
|
8
|
+
import P from "../../KvTabPanel.js";
|
|
9
|
+
import j from "../../KvTabs.js";
|
|
10
|
+
import q from "../../../utils/paramCase.js";
|
|
11
|
+
import "./KvLendListMenu.css";
|
|
12
|
+
import z from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
13
|
+
const G = {
|
|
14
|
+
components: {
|
|
15
|
+
KvAccordionItem: M,
|
|
16
|
+
KvTab: F,
|
|
17
|
+
KvTabPanel: P,
|
|
18
|
+
KvTabs: j,
|
|
19
|
+
KvLendMenuCountryList: D,
|
|
20
|
+
KvLendMenuSearchList: E,
|
|
21
|
+
KvLoadingPlaceholder: V
|
|
22
|
+
},
|
|
23
|
+
props: {
|
|
24
|
+
categories: {
|
|
25
|
+
type: Array,
|
|
26
|
+
default: () => []
|
|
27
|
+
},
|
|
28
|
+
favorites: {
|
|
29
|
+
type: Number,
|
|
30
|
+
default: 0
|
|
31
|
+
},
|
|
32
|
+
userId: {
|
|
33
|
+
type: Number,
|
|
34
|
+
default: null
|
|
35
|
+
},
|
|
36
|
+
regions: {
|
|
37
|
+
type: Array,
|
|
38
|
+
default: () => []
|
|
39
|
+
},
|
|
40
|
+
searches: {
|
|
41
|
+
type: Array,
|
|
42
|
+
default: () => []
|
|
43
|
+
},
|
|
44
|
+
isRegionsLoading: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: !0
|
|
47
|
+
},
|
|
48
|
+
isChannelsLoading: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: !0
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
setup(C) {
|
|
54
|
+
const e = w(null), r = w([]), f = w(null), N = I(() => C.searches.length > 0);
|
|
55
|
+
return {
|
|
56
|
+
mdiArrowRight: S,
|
|
57
|
+
hasSearches: N,
|
|
58
|
+
navLendCategories: e,
|
|
59
|
+
regionAccordions: r,
|
|
60
|
+
searchesLink: f,
|
|
61
|
+
onClose: () => {
|
|
62
|
+
var _, m, k, c, y, p, h;
|
|
63
|
+
(k = (m = (_ = e.value) == null ? void 0 : _.tabContext) == null ? void 0 : m.setTab) == null || k.call(m, 0), (y = (c = r.value) == null ? void 0 : c.forEach) == null || y.call(c, (o) => {
|
|
64
|
+
var n;
|
|
65
|
+
(n = o == null ? void 0 : o.collapse) == null || n.call(o);
|
|
66
|
+
}), (h = (p = f.value) == null ? void 0 : p.collapse) == null || h.call(p);
|
|
67
|
+
},
|
|
68
|
+
paramCase: q
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
}, H = { class: "tw-pb-2" }, J = { class: "tw-font-book" }, O = ["href"], Q = { class: "tw-border-t tw-border-tertiary" }, U = {
|
|
72
|
+
href: "/lend-by-category/recommended-by-lenders",
|
|
73
|
+
class: "lend-link tw-text-brand"
|
|
74
|
+
}, W = {
|
|
75
|
+
href: "/lend",
|
|
76
|
+
class: "lend-link"
|
|
77
|
+
}, X = {
|
|
78
|
+
href: "/categories",
|
|
79
|
+
class: "lend-link"
|
|
80
|
+
}, Y = { class: "tw-flex" }, Z = { class: "tw-text-h4" }, R = { class: "tw-font-book" }, $ = ["href"], ee = {
|
|
81
|
+
key: 1,
|
|
82
|
+
class: "tw-block tw-py-1 tw-text-tertiary"
|
|
83
|
+
}, te = { key: 0 }, ne = { key: 1 }, se = {
|
|
84
|
+
href: "/lend/countries-not-lent",
|
|
85
|
+
class: "lend-link"
|
|
86
|
+
};
|
|
87
|
+
function le(C, e, r, f, N, K) {
|
|
88
|
+
const _ = u("kv-tab"), m = u("kv-loading-placeholder"), k = u("kv-tab-panel"), c = u("kv-accordion-item"), y = u("kv-lend-menu-country-list"), p = u("kv-lend-menu-search-list"), h = u("kv-tabs"), o = B("kv-track-event");
|
|
89
|
+
return t(), s("div", H, [
|
|
90
|
+
i(h, { ref: "navLendCategories" }, {
|
|
91
|
+
tabNav: a(() => [
|
|
92
|
+
i(_, { "for-panel": "nav-lend-categories" }, {
|
|
93
|
+
default: a(() => e[0] || (e[0] = [
|
|
94
|
+
d(" Categories ")
|
|
95
|
+
])),
|
|
96
|
+
_: 1
|
|
97
|
+
}),
|
|
98
|
+
i(_, { "for-panel": "nav-lend-regions" }, {
|
|
99
|
+
default: a(() => e[1] || (e[1] = [
|
|
100
|
+
d(" Regions ")
|
|
101
|
+
])),
|
|
102
|
+
_: 1
|
|
103
|
+
}),
|
|
104
|
+
r.userId ? (t(), L(_, {
|
|
105
|
+
key: 0,
|
|
106
|
+
"for-panel": "nav-my-kiva"
|
|
107
|
+
}, {
|
|
108
|
+
default: a(() => e[2] || (e[2] = [
|
|
109
|
+
d(" My Kiva ")
|
|
110
|
+
])),
|
|
111
|
+
_: 1
|
|
112
|
+
})) : T("", !0)
|
|
113
|
+
]),
|
|
114
|
+
tabPanels: a(() => [
|
|
115
|
+
i(k, { id: "nav-lend-categories" }, {
|
|
116
|
+
default: a(() => [
|
|
117
|
+
l("ul", J, [
|
|
118
|
+
r.isChannelsLoading ? (t(), s(b, { key: 0 }, g(14, (n) => l("li", {
|
|
119
|
+
key: n,
|
|
120
|
+
style: { width: "11rem" },
|
|
121
|
+
class: "tw-py-1 tw-flex"
|
|
122
|
+
}, [
|
|
123
|
+
i(m, {
|
|
124
|
+
class: "tw-inline-block tw-align-middle",
|
|
125
|
+
style: { height: "1rem" }
|
|
126
|
+
}),
|
|
127
|
+
e[3] || (e[3] = l("span", { class: "tw-inline-block" }, " ", -1))
|
|
128
|
+
])), 64)) : (t(!0), s(b, { key: 1 }, g(r.categories, (n, x) => (t(), s("li", { key: x }, [
|
|
129
|
+
v((t(), s("a", {
|
|
130
|
+
href: n.url,
|
|
131
|
+
class: "lend-link"
|
|
132
|
+
}, [
|
|
133
|
+
d(A(n.name), 1)
|
|
134
|
+
], 8, O)), [
|
|
135
|
+
[o, ["TopNav", "click-Lend-Category", n.name, x + 1]]
|
|
136
|
+
])
|
|
137
|
+
]))), 128)),
|
|
138
|
+
l("li", Q, [
|
|
139
|
+
v((t(), s("a", U, e[4] || (e[4] = [
|
|
140
|
+
d(" Recommended by lenders ")
|
|
141
|
+
]))), [
|
|
142
|
+
[o, ["TopNav", "click-Lend-Recommended-by-lenders"]]
|
|
143
|
+
])
|
|
144
|
+
]),
|
|
145
|
+
l("li", null, [
|
|
146
|
+
v((t(), s("a", W, e[5] || (e[5] = [
|
|
147
|
+
d(" All loans ")
|
|
148
|
+
]))), [
|
|
149
|
+
[o, ["TopNav", "click-Lend-All_Loans"]]
|
|
150
|
+
])
|
|
151
|
+
]),
|
|
152
|
+
l("li", null, [
|
|
153
|
+
v((t(), s("a", X, e[6] || (e[6] = [
|
|
154
|
+
d(" All categories ")
|
|
155
|
+
]))), [
|
|
156
|
+
[o, ["TopNav", "click-Lend-All_Categories"]]
|
|
157
|
+
])
|
|
158
|
+
])
|
|
159
|
+
])
|
|
160
|
+
]),
|
|
161
|
+
_: 1
|
|
162
|
+
}),
|
|
163
|
+
i(k, { id: "nav-lend-regions" }, {
|
|
164
|
+
default: a(() => [
|
|
165
|
+
r.isRegionsLoading ? (t(), s(b, { key: 0 }, g(8, (n) => i(c, {
|
|
166
|
+
id: `placeholder-${n}-panel`,
|
|
167
|
+
key: n,
|
|
168
|
+
disabled: !0
|
|
169
|
+
}, {
|
|
170
|
+
header: a(() => [
|
|
171
|
+
l("div", Y, [
|
|
172
|
+
i(m, {
|
|
173
|
+
class: "tw-inline-block tw-align-middle",
|
|
174
|
+
style: { height: "1rem" }
|
|
175
|
+
}),
|
|
176
|
+
e[7] || (e[7] = l("span", { class: "tw-inline-block tw-text-h4" }, " ", -1))
|
|
177
|
+
])
|
|
178
|
+
]),
|
|
179
|
+
_: 2
|
|
180
|
+
}, 1032, ["id"])), 64)) : (t(!0), s(b, { key: 1 }, g(r.regions, (n) => (t(), L(c, {
|
|
181
|
+
id: `lend-menu-${f.paramCase(n.name)}-panel`,
|
|
182
|
+
key: n.name,
|
|
183
|
+
ref_for: !0,
|
|
184
|
+
ref: "regionAccordions"
|
|
185
|
+
}, {
|
|
186
|
+
header: a(() => [
|
|
187
|
+
l("h3", Z, [
|
|
188
|
+
v((t(), s("span", null, [
|
|
189
|
+
d(A(n.name), 1)
|
|
190
|
+
])), [
|
|
191
|
+
[o, ["TopNav", "click-Lend-Region", n.name]]
|
|
192
|
+
])
|
|
193
|
+
])
|
|
194
|
+
]),
|
|
195
|
+
default: a(() => [
|
|
196
|
+
i(y, {
|
|
197
|
+
countries: n.countries
|
|
198
|
+
}, null, 8, ["countries"])
|
|
199
|
+
]),
|
|
200
|
+
_: 2
|
|
201
|
+
}, 1032, ["id"]))), 128))
|
|
202
|
+
]),
|
|
203
|
+
_: 1
|
|
204
|
+
}),
|
|
205
|
+
r.userId ? (t(), L(k, {
|
|
206
|
+
key: 0,
|
|
207
|
+
id: "nav-my-kiva"
|
|
208
|
+
}, {
|
|
209
|
+
default: a(() => [
|
|
210
|
+
l("ul", R, [
|
|
211
|
+
l("li", null, [
|
|
212
|
+
r.favorites > 0 ? v((t(), s("a", {
|
|
213
|
+
key: 0,
|
|
214
|
+
href: `/lend?lenderFavorite=${r.userId}`,
|
|
215
|
+
class: "lend-link"
|
|
216
|
+
}, e[8] || (e[8] = [
|
|
217
|
+
d(" Saved loans ")
|
|
218
|
+
]), 8, $)), [
|
|
219
|
+
[o, ["TopNav", "click-Lend-Favorites"]]
|
|
220
|
+
]) : (t(), s("span", ee, "Saved loans"))
|
|
221
|
+
]),
|
|
222
|
+
f.hasSearches ? (t(), s("li", te, [
|
|
223
|
+
i(c, {
|
|
224
|
+
id: "lend-menu-saved-searches-panel",
|
|
225
|
+
ref: "searchesLink"
|
|
226
|
+
}, {
|
|
227
|
+
header: a(() => e[9] || (e[9] = [
|
|
228
|
+
l("p", { class: "tw-font-medium" }, " Saved searches ", -1)
|
|
229
|
+
])),
|
|
230
|
+
default: a(() => [
|
|
231
|
+
i(p, { searches: r.searches }, null, 8, ["searches"])
|
|
232
|
+
]),
|
|
233
|
+
_: 1
|
|
234
|
+
}, 512)
|
|
235
|
+
])) : (t(), s("li", ne, e[10] || (e[10] = [
|
|
236
|
+
l("span", { class: "tw-block tw-py-1 tw-text-tertiary" }, "Saved searches", -1)
|
|
237
|
+
]))),
|
|
238
|
+
l("li", null, [
|
|
239
|
+
v((t(), s("a", se, e[11] || (e[11] = [
|
|
240
|
+
d(" Countries I haven't lent to ")
|
|
241
|
+
]))), [
|
|
242
|
+
[o, ["TopNav", "click-Lend-Countries_Not_Lent"]]
|
|
243
|
+
])
|
|
244
|
+
])
|
|
245
|
+
])
|
|
246
|
+
]),
|
|
247
|
+
_: 1
|
|
248
|
+
})) : T("", !0)
|
|
249
|
+
]),
|
|
250
|
+
_: 1
|
|
251
|
+
}, 512)
|
|
252
|
+
]);
|
|
253
|
+
}
|
|
254
|
+
const fe = /* @__PURE__ */ z(G, [["render", le], ["__scopeId", "data-v-1f513006"]]);
|
|
255
|
+
export {
|
|
256
|
+
fe as default
|
|
257
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.menu-heading[data-v-28ab9362]{font-weight:300;font-size:1rem;letter-spacing:0em;line-height:1.5}@media (min-width: 64rem){.menu-heading[data-v-28ab9362]{font-size:1.0625rem;letter-spacing:0em}}.menu-heading[data-v-28ab9362]{font-weight:400}.region-list[data-v-28ab9362],.search-list[data-v-28ab9362]{-moz-column-fill:auto;column-fill:auto;-moz-columns:3;columns:3;gap:2rem}.mega-menu-link[data-v-28ab9362]{display:inline-block;padding-top:.5rem;padding-bottom:.5rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mega-menu-link[data-v-28ab9362]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1))}.link-item[data-v-28ab9362]{width:11rem}
|