@kiva/kv-components 6.69.1 → 6.69.3
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/vue/KvAtbModal.css +1 -1
- package/dist/vue/KvAtbModal.js +27 -27
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +105 -87
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +87 -81
- package/package.json +2 -2
package/dist/vue/KvAtbModal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@media (min-width: 45.875rem){.cart-modal[data-v-
|
|
1
|
+
@media (min-width: 45.875rem){.cart-modal[data-v-93b3820a] div.container{right:var(--modal-right)!important;top:var(--modal-top)!important}}
|
package/dist/vue/KvAtbModal.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toRefs as N, ref as B, computed as C, watch as F, onMounted as O, onUnmounted as
|
|
1
|
+
import { toRefs as N, ref as B, computed as C, watch as F, onMounted as O, onUnmounted as G, resolveComponent as E, openBlock as u, createBlock as z, normalizeStyle as D, withCtx as S, createElementBlock as m, createVNode as R, createElementVNode as e, normalizeClass as T, toDisplayString as I, createCommentVNode as b } from "vue";
|
|
2
2
|
import { throttle as U } from "../utils/throttle.js";
|
|
3
3
|
import Y from "./KvCartModal.js";
|
|
4
4
|
import W from "./KvCartPill.js";
|
|
@@ -117,7 +117,7 @@ const Q = {
|
|
|
117
117
|
],
|
|
118
118
|
setup(c, { emit: i }) {
|
|
119
119
|
const {
|
|
120
|
-
modalVisible:
|
|
120
|
+
modalVisible: n,
|
|
121
121
|
addedLoan: l,
|
|
122
122
|
userData: p,
|
|
123
123
|
hasEverLoggedIn: A,
|
|
@@ -129,8 +129,8 @@ const Q = {
|
|
|
129
129
|
var t;
|
|
130
130
|
return ((t = l.value) == null ? void 0 : t.basketSize) ?? 0;
|
|
131
131
|
}), q = C(() => {
|
|
132
|
-
const t = window.innerWidth - k.value - 200, o = `${t > 0 ? t : 0}`,
|
|
133
|
-
return { right: o, top:
|
|
132
|
+
const t = window.innerWidth - k.value - 200, o = `${t > 0 ? t : 0}`, a = `${g.value}`;
|
|
133
|
+
return { right: o, top: a };
|
|
134
134
|
}), d = C(() => {
|
|
135
135
|
var t;
|
|
136
136
|
return (t = l.value) == null ? void 0 : t.name;
|
|
@@ -138,17 +138,17 @@ const Q = {
|
|
|
138
138
|
var t;
|
|
139
139
|
return !((t = p.value) != null && t.my);
|
|
140
140
|
}), y = C(() => {
|
|
141
|
-
var t, o,
|
|
142
|
-
return w.value && (_.value && !A.value || !_.value && !((
|
|
141
|
+
var t, o, a;
|
|
142
|
+
return w.value && (_.value && !A.value || !_.value && !((a = (o = (t = p.value) == null ? void 0 : t.my) == null ? void 0 : o.loans) != null && a.totalCount)) && Z.value === 1;
|
|
143
143
|
}), x = C(() => f.value && v.value && !y.value), j = C(() => Object.values(P.value).reduce((t, o) => t + (o > 0 ? o : 0), 0)), H = C(() => {
|
|
144
|
-
var o,
|
|
144
|
+
var o, a, s;
|
|
145
145
|
if (c.isCompletingGoal)
|
|
146
146
|
return `Supporting ${d.value} meets your annual goal!`;
|
|
147
147
|
if (c.isLoanGoal)
|
|
148
148
|
return "You’re closer to reaching your annual goal!";
|
|
149
149
|
if (y.value) {
|
|
150
|
-
const
|
|
151
|
-
return ((o = l.value) == null ? void 0 : o.borrowerCount) > 1 || (
|
|
150
|
+
const r = `Supporting ${d.value} helps`;
|
|
151
|
+
return ((o = l.value) == null ? void 0 : o.borrowerCount) > 1 || (a = l.value) != null && a.themes.includes("Social Enterprise") ? `${r} them invest in themselves.` : ((s = l.value) == null ? void 0 : s.gender) === "male" ? `${r} him invest in himself.` : `${r} her invest in herself.`;
|
|
152
152
|
}
|
|
153
153
|
if (x.value)
|
|
154
154
|
return "You’re close to your next achievement!";
|
|
@@ -161,16 +161,16 @@ const Q = {
|
|
|
161
161
|
o && V(o), i("reset-modal");
|
|
162
162
|
}, M = () => {
|
|
163
163
|
const t = document.getElementsByTagName("header")[0], o = (t == null ? void 0 : t.getBoundingClientRect()) ?? null;
|
|
164
|
-
let
|
|
165
|
-
s || (
|
|
166
|
-
const
|
|
167
|
-
|
|
164
|
+
let a = [...document.querySelectorAll('[data-testid="header-basket"]')], s = a.find((L) => L == null ? void 0 : L.clientHeight);
|
|
165
|
+
s || (a = [...document.querySelectorAll('[data-testid="header-about"]')], s = a.find((L) => L == null ? void 0 : L.clientHeight));
|
|
166
|
+
const r = (s == null ? void 0 : s.getBoundingClientRect()) ?? null;
|
|
167
|
+
r && (r == null ? void 0 : r.right) !== k.value && (k.value = r == null ? void 0 : r.right), o && (o == null ? void 0 : o.bottom) !== g.value && (g.value = o == null ? void 0 : o.bottom);
|
|
168
168
|
}, h = U(M, 50);
|
|
169
|
-
return F(
|
|
170
|
-
|
|
169
|
+
return F(n, () => {
|
|
170
|
+
n.value && M();
|
|
171
171
|
}, { immediate: !0 }), O(() => {
|
|
172
172
|
M(), window.addEventListener("scroll", h), window.addEventListener("resize", h);
|
|
173
|
-
}),
|
|
173
|
+
}), G(() => {
|
|
174
174
|
window.removeEventListener("scroll", h), window.removeEventListener("resize", h);
|
|
175
175
|
}), {
|
|
176
176
|
modalPosition: q,
|
|
@@ -205,27 +205,27 @@ const Q = {
|
|
|
205
205
|
key: 2,
|
|
206
206
|
class: "tw-text-h5"
|
|
207
207
|
};
|
|
208
|
-
function o1(c, i,
|
|
208
|
+
function o1(c, i, n, l, p, A) {
|
|
209
209
|
const w = E("KvCartPill"), f = E("KvCartModal");
|
|
210
|
-
return
|
|
210
|
+
return n.modalVisible ? (u(), z(f, {
|
|
211
211
|
key: 0,
|
|
212
|
-
style:
|
|
212
|
+
style: D({
|
|
213
213
|
"--modal-right": `${l.modalPosition.right}px`,
|
|
214
214
|
"--modal-top": `${l.modalPosition.top}px`
|
|
215
215
|
}),
|
|
216
216
|
class: "cart-modal !tw-top-0",
|
|
217
|
-
visible:
|
|
218
|
-
"photo-path":
|
|
217
|
+
visible: n.modalVisible,
|
|
218
|
+
"photo-path": n.photoPath,
|
|
219
219
|
"basket-count": l.basketCount,
|
|
220
|
-
"category-name":
|
|
220
|
+
"category-name": n.oneLoanAwayCategory,
|
|
221
221
|
onCartModalClosed: l.closeCartModal
|
|
222
222
|
}, {
|
|
223
223
|
content: S(() => [
|
|
224
|
-
|
|
224
|
+
n.showModalContent || l.isFirstLoan ? (u(), m("div", X, [
|
|
225
225
|
R(w, {
|
|
226
226
|
class: "!tw-w-full tw-justify-center",
|
|
227
227
|
"borrower-name": l.borrowerName,
|
|
228
|
-
"milestones-number":
|
|
228
|
+
"milestones-number": n.milestonesNumber,
|
|
229
229
|
"is-close-next-milestone": l.showOneAway,
|
|
230
230
|
"custom-message": l.pillMsg
|
|
231
231
|
}, {
|
|
@@ -236,7 +236,7 @@ function o1(c, i, r, l, p, A) {
|
|
|
236
236
|
"tw-flex tw-items-center tw-justify-center tw-bg-gray-100 tw-p-0.5 tw-rounded tw-whitespace-nowrap": l.showOneAway
|
|
237
237
|
})
|
|
238
238
|
}, [
|
|
239
|
-
l.isFirstLoan ? (u(), m("svg", $, i[0] || (i[0] = [
|
|
239
|
+
l.isFirstLoan && !n.isLoanGoal ? (u(), m("svg", $, i[0] || (i[0] = [
|
|
240
240
|
e("path", {
|
|
241
241
|
d: "M36.2676 17.5025C34.6519 30.5945 24.9878 35.8229 20.1847 38.0889C20.1496 38.1055 20.1099 38.1043 20.075 38.0873C8.60201 32.516 4.24979 22.9018 3.62911 17.5025C3.34064 14.6558 3.18678 8.5719 3.14406 5.7867C3.14315 5.72754 3.1847 5.67723 3.24194 5.66227C11.6312 3.46948 14.2758 3.52186 20.0937 1.86776C20.1175 1.86099 20.1437 1.86113 20.1673 1.86833C26.6496 3.83905 31.8224 4.23356 36.8613 5.66108C36.9176 5.67702 36.9559 5.72959 36.9546 5.78805C36.8227 11.47 36.4423 15.9605 36.2676 17.5025Z",
|
|
242
242
|
fill: "#2AA967",
|
|
@@ -398,7 +398,7 @@ function o1(c, i, r, l, p, A) {
|
|
|
398
398
|
fill: "#757575"
|
|
399
399
|
}, null, -1)
|
|
400
400
|
]))),
|
|
401
|
-
l.showOneAway ? (u(), m("div", t1, I(
|
|
401
|
+
l.showOneAway ? (u(), m("div", t1, I(n.oneAwayText), 1)) : b("", !0)
|
|
402
402
|
], 2)
|
|
403
403
|
]),
|
|
404
404
|
_: 1
|
|
@@ -408,7 +408,7 @@ function o1(c, i, r, l, p, A) {
|
|
|
408
408
|
_: 1
|
|
409
409
|
}, 8, ["style", "visible", "photo-path", "basket-count", "category-name", "onCartModalClosed"])) : b("", !0);
|
|
410
410
|
}
|
|
411
|
-
const C1 = /* @__PURE__ */ J(Q, [["render", o1], ["__scopeId", "data-v-
|
|
411
|
+
const C1 = /* @__PURE__ */ J(Q, [["render", o1], ["__scopeId", "data-v-93b3820a"]]);
|
|
412
412
|
export {
|
|
413
413
|
C1 as default
|
|
414
414
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mobile-link[data-v-
|
|
1
|
+
.mobile-link[data-v-d1df98b6]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-d1df98b6]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { mdiClose as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { resolveComponent as
|
|
1
|
+
import { mdiClose as f } from "@mdi/js";
|
|
2
|
+
import g from "../KvAccordionItem.js";
|
|
3
|
+
import C from "../KvMaterialIcon.js";
|
|
4
|
+
import { resolveComponent as m, resolveDirective as A, openBlock as t, createElementBlock as l, withDirectives as i, createBlock as u, createCommentVNode as K, withCtx as p, createElementVNode as a, Fragment as N, renderList as T, withModifiers as n, toDisplayString as k, createTextVNode as r } from "vue";
|
|
5
5
|
import "./KvHeaderMobileMenu.css";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
6
|
+
import y from "../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
+
const I = {
|
|
8
8
|
name: "KvHeaderMobileMenu",
|
|
9
9
|
components: {
|
|
10
|
-
KvAccordionItem:
|
|
11
|
-
KvMaterialIcon:
|
|
10
|
+
KvAccordionItem: g,
|
|
11
|
+
KvMaterialIcon: C
|
|
12
12
|
},
|
|
13
13
|
props: {
|
|
14
14
|
loggedIn: {
|
|
@@ -27,7 +27,7 @@ const T = {
|
|
|
27
27
|
emits: ["closing-menu"],
|
|
28
28
|
data() {
|
|
29
29
|
return {
|
|
30
|
-
mdiClose:
|
|
30
|
+
mdiClose: f,
|
|
31
31
|
menuItems: [
|
|
32
32
|
{
|
|
33
33
|
title: "Choose someone to help",
|
|
@@ -56,126 +56,144 @@ const T = {
|
|
|
56
56
|
]
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
},
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
class: "mobile-link"
|
|
65
|
-
}, E = {
|
|
66
|
-
href: "/about/where-kiva-works",
|
|
67
|
-
class: "mobile-link"
|
|
68
|
-
}, B = {
|
|
69
|
-
href: "/impact",
|
|
70
|
-
class: "mobile-link"
|
|
71
|
-
}, P = {
|
|
72
|
-
href: "/about/leadership",
|
|
73
|
-
class: "mobile-link"
|
|
74
|
-
}, $ = {
|
|
75
|
-
href: "/about/finances",
|
|
76
|
-
class: "mobile-link"
|
|
77
|
-
}, F = {
|
|
78
|
-
href: "/about/press-center",
|
|
79
|
-
class: "mobile-link"
|
|
80
|
-
}, L = {
|
|
81
|
-
href: "/about/due-diligence",
|
|
82
|
-
class: "mobile-link"
|
|
83
|
-
};
|
|
84
|
-
function S(v, e, b, V, d, W) {
|
|
85
|
-
const k = p("KvMaterialIcon"), u = p("KvAccordionItem"), o = g("kv-track-event");
|
|
86
|
-
return t(), n("nav", y, [
|
|
87
|
-
b.isMobile ? i((t(), c(k, {
|
|
59
|
+
}, x = { class: "tw--mt-0.5 tw-pb-0.5 tw-gap-2 tw-flex tw-flex-col tw-items-end md:tw-hidden tw-font-medium tw-p-2.5" }, M = { class: "tw-flex tw-flex-col tw-gap-2 tw-pl-1" }, H = ["href"], D = { class: "tw-text-secondary tw-font-book" }, E = { class: "tw-flex tw-flex-col tw-gap-2 tw-pb-2 tw-pl-1" };
|
|
60
|
+
function B(v, o, b, P, d, $) {
|
|
61
|
+
const w = m("KvMaterialIcon"), c = m("KvAccordionItem"), e = A("kv-track-event");
|
|
62
|
+
return t(), l("nav", x, [
|
|
63
|
+
b.isMobile ? i((t(), u(w, {
|
|
88
64
|
key: 0,
|
|
89
65
|
icon: d.mdiClose,
|
|
90
66
|
class: "tw-cursor-pointer",
|
|
91
|
-
onClick:
|
|
67
|
+
onClick: o[0] || (o[0] = (s) => v.$emit("closing-menu"))
|
|
92
68
|
}, null, 8, ["icon"])), [
|
|
93
|
-
[
|
|
94
|
-
]) :
|
|
95
|
-
i((t(), c
|
|
69
|
+
[e, ["TopNav", "click-Hamburger-close"]]
|
|
70
|
+
]) : K("", !0),
|
|
71
|
+
i((t(), u(c, {
|
|
96
72
|
id: "accordion-take-action-menu",
|
|
97
73
|
open: "",
|
|
98
74
|
class: "tw-w-full tw-border-b-0"
|
|
99
75
|
}, {
|
|
100
|
-
header:
|
|
101
|
-
|
|
76
|
+
header: p(() => o[10] || (o[10] = [
|
|
77
|
+
a("h3", { class: "tw-pb-0.5" }, " Take action ", -1)
|
|
102
78
|
])),
|
|
103
|
-
default:
|
|
104
|
-
|
|
105
|
-
(t(!0),
|
|
106
|
-
key:
|
|
107
|
-
href:
|
|
108
|
-
class: "mobile-link"
|
|
79
|
+
default: p(() => [
|
|
80
|
+
a("div", M, [
|
|
81
|
+
(t(!0), l(N, null, T(d.menuItems, (s) => i((t(), l("a", {
|
|
82
|
+
key: s.title,
|
|
83
|
+
href: s.url,
|
|
84
|
+
class: "mobile-link",
|
|
85
|
+
onClick: o[1] || (o[1] = n(() => {
|
|
86
|
+
}, ["stop"]))
|
|
109
87
|
}, [
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
], 8,
|
|
113
|
-
[
|
|
88
|
+
a("div", null, k(s.title), 1),
|
|
89
|
+
a("p", D, k(s.description), 1)
|
|
90
|
+
], 8, H)), [
|
|
91
|
+
[e, ["TopNav", `click-${s.trackEvent}`]]
|
|
114
92
|
])), 128))
|
|
115
93
|
])
|
|
116
94
|
]),
|
|
117
95
|
_: 1
|
|
118
96
|
})), [
|
|
119
|
-
[
|
|
97
|
+
[e, ["TopNav", "click-Hamburger-Take-action-accordion"]]
|
|
120
98
|
]),
|
|
121
|
-
i((t(), c
|
|
99
|
+
i((t(), u(c, {
|
|
122
100
|
id: "accordion-about-menu",
|
|
123
101
|
class: "tw-w-full tw-pb-1"
|
|
124
102
|
}, {
|
|
125
|
-
header:
|
|
126
|
-
|
|
103
|
+
header: p(() => o[11] || (o[11] = [
|
|
104
|
+
a("h3", { class: "tw-pb-0.5" }, " About ", -1)
|
|
127
105
|
])),
|
|
128
|
-
default:
|
|
129
|
-
|
|
130
|
-
i((t(),
|
|
131
|
-
|
|
106
|
+
default: p(() => [
|
|
107
|
+
a("div", E, [
|
|
108
|
+
i((t(), l("a", {
|
|
109
|
+
href: "/about",
|
|
110
|
+
class: "mobile-link",
|
|
111
|
+
onClick: o[2] || (o[2] = n(() => {
|
|
112
|
+
}, ["stop"]))
|
|
113
|
+
}, o[12] || (o[12] = [
|
|
114
|
+
r("About us")
|
|
132
115
|
]))), [
|
|
133
|
-
[
|
|
116
|
+
[e, ["TopNav", "click-About-About us"]]
|
|
134
117
|
]),
|
|
135
|
-
i((t(),
|
|
136
|
-
|
|
118
|
+
i((t(), l("a", {
|
|
119
|
+
href: "/about/how",
|
|
120
|
+
class: "mobile-link",
|
|
121
|
+
onClick: o[3] || (o[3] = n(() => {
|
|
122
|
+
}, ["stop"]))
|
|
123
|
+
}, o[13] || (o[13] = [
|
|
124
|
+
r("How Kiva works")
|
|
137
125
|
]))), [
|
|
138
|
-
[
|
|
126
|
+
[e, ["TopNav", "click-About-How Kiva works"]]
|
|
139
127
|
]),
|
|
140
|
-
i((t(),
|
|
141
|
-
|
|
128
|
+
i((t(), l("a", {
|
|
129
|
+
href: "/about/where-kiva-works",
|
|
130
|
+
class: "mobile-link",
|
|
131
|
+
onClick: o[4] || (o[4] = n(() => {
|
|
132
|
+
}, ["stop"]))
|
|
133
|
+
}, o[14] || (o[14] = [
|
|
134
|
+
r("Where Kiva works")
|
|
142
135
|
]))), [
|
|
143
|
-
[
|
|
136
|
+
[e, ["TopNav", "click-About-Where Kiva works"]]
|
|
144
137
|
]),
|
|
145
|
-
i((t(),
|
|
146
|
-
|
|
138
|
+
i((t(), l("a", {
|
|
139
|
+
href: "/impact",
|
|
140
|
+
class: "mobile-link",
|
|
141
|
+
onClick: o[5] || (o[5] = n(() => {
|
|
142
|
+
}, ["stop"]))
|
|
143
|
+
}, o[15] || (o[15] = [
|
|
144
|
+
r("Impact")
|
|
147
145
|
]))), [
|
|
148
|
-
[
|
|
146
|
+
[e, ["TopNav", "click-About-Impact"]]
|
|
149
147
|
]),
|
|
150
|
-
i((t(),
|
|
151
|
-
|
|
148
|
+
i((t(), l("a", {
|
|
149
|
+
href: "/about/leadership",
|
|
150
|
+
class: "mobile-link",
|
|
151
|
+
onClick: o[6] || (o[6] = n(() => {
|
|
152
|
+
}, ["stop"]))
|
|
153
|
+
}, o[16] || (o[16] = [
|
|
154
|
+
r("Leadership")
|
|
152
155
|
]))), [
|
|
153
|
-
[
|
|
156
|
+
[e, ["TopNav", "click-About-Leadership"]]
|
|
154
157
|
]),
|
|
155
|
-
i((t(),
|
|
156
|
-
|
|
158
|
+
i((t(), l("a", {
|
|
159
|
+
href: "/about/finances",
|
|
160
|
+
class: "mobile-link",
|
|
161
|
+
onClick: o[7] || (o[7] = n(() => {
|
|
162
|
+
}, ["stop"]))
|
|
163
|
+
}, o[17] || (o[17] = [
|
|
164
|
+
r("Finances")
|
|
157
165
|
]))), [
|
|
158
|
-
[
|
|
166
|
+
[e, ["TopNav", "click-About-Finances"]]
|
|
159
167
|
]),
|
|
160
|
-
i((t(),
|
|
161
|
-
|
|
168
|
+
i((t(), l("a", {
|
|
169
|
+
href: "/about/press-center",
|
|
170
|
+
class: "mobile-link",
|
|
171
|
+
onClick: o[8] || (o[8] = n(() => {
|
|
172
|
+
}, ["stop"]))
|
|
173
|
+
}, o[18] || (o[18] = [
|
|
174
|
+
r("Press")
|
|
162
175
|
]))), [
|
|
163
|
-
[
|
|
176
|
+
[e, ["TopNav", "click-About-Press"]]
|
|
164
177
|
]),
|
|
165
|
-
i((t(),
|
|
166
|
-
|
|
178
|
+
i((t(), l("a", {
|
|
179
|
+
href: "/about/due-diligence",
|
|
180
|
+
class: "mobile-link",
|
|
181
|
+
onClick: o[9] || (o[9] = n(() => {
|
|
182
|
+
}, ["stop"]))
|
|
183
|
+
}, o[19] || (o[19] = [
|
|
184
|
+
r("Due diligence")
|
|
167
185
|
]))), [
|
|
168
|
-
[
|
|
186
|
+
[e, ["TopNav", "click-About-Due diligence"]]
|
|
169
187
|
])
|
|
170
188
|
])
|
|
171
189
|
]),
|
|
172
190
|
_: 1
|
|
173
191
|
})), [
|
|
174
|
-
[
|
|
192
|
+
[e, ["TopNav", "click-Hamburger-About-accordion"]]
|
|
175
193
|
])
|
|
176
194
|
]);
|
|
177
195
|
}
|
|
178
|
-
const
|
|
196
|
+
const q = /* @__PURE__ */ y(I, [["render", B], ["__scopeId", "data-v-d1df98b6"]]);
|
|
179
197
|
export {
|
|
180
|
-
|
|
198
|
+
q as default
|
|
181
199
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.lend-link[data-v-
|
|
1
|
+
.lend-link[data-v-de8f418f]{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-de8f418f]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { mdiArrowRight as S } from "@mdi/js";
|
|
2
|
-
import { ref as
|
|
2
|
+
import { ref as N, computed as I, resolveComponent as v, resolveDirective as B, openBlock as t, createElementBlock as n, withDirectives as i, createElementVNode as o, createTextVNode as d, createVNode as c, createCommentVNode as T, withCtx as r, createBlock as h, Fragment as g, renderList as L, toDisplayString as K } from "vue";
|
|
3
3
|
import U from "../../KvAccordionItem.js";
|
|
4
4
|
import V from "../../KvLoadingPlaceholder.js";
|
|
5
5
|
import D from "./KvLendMenuCountryList.js";
|
|
@@ -7,11 +7,11 @@ import E from "./KvLendMenuSearchList.js";
|
|
|
7
7
|
import F from "../../KvTab.js";
|
|
8
8
|
import G from "../../KvTabPanel.js";
|
|
9
9
|
import P from "../../KvTabs.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
10
|
+
import R from "../../../utils/paramCase.js";
|
|
11
|
+
import j from "../../KvMaterialIcon.js";
|
|
12
12
|
import "./KvLendListMenu.css";
|
|
13
|
-
import
|
|
14
|
-
const
|
|
13
|
+
import q from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
14
|
+
const z = {
|
|
15
15
|
components: {
|
|
16
16
|
KvAccordionItem: U,
|
|
17
17
|
KvTab: F,
|
|
@@ -20,7 +20,7 @@ const H = {
|
|
|
20
20
|
KvLendMenuCountryList: D,
|
|
21
21
|
KvLendMenuSearchList: E,
|
|
22
22
|
KvLoadingPlaceholder: V,
|
|
23
|
-
KvMaterialIcon:
|
|
23
|
+
KvMaterialIcon: j
|
|
24
24
|
},
|
|
25
25
|
props: {
|
|
26
26
|
categories: {
|
|
@@ -60,8 +60,8 @@ const H = {
|
|
|
60
60
|
default: "/lend/countries-not-lent"
|
|
61
61
|
}
|
|
62
62
|
},
|
|
63
|
-
setup(
|
|
64
|
-
const e =
|
|
63
|
+
setup(C) {
|
|
64
|
+
const e = N(null), l = N([]), k = N(null), x = I(() => C.searches.length > 0);
|
|
65
65
|
return {
|
|
66
66
|
mdiArrowRight: S,
|
|
67
67
|
hasSearches: x,
|
|
@@ -69,19 +69,19 @@ const H = {
|
|
|
69
69
|
regionAccordions: l,
|
|
70
70
|
searchesLink: k,
|
|
71
71
|
onClose: () => {
|
|
72
|
-
var
|
|
73
|
-
(y = (
|
|
74
|
-
var
|
|
75
|
-
(
|
|
76
|
-
}), (
|
|
72
|
+
var w, m, y, u, p, f, b;
|
|
73
|
+
(y = (m = (w = e.value) == null ? void 0 : w.tabContext) == null ? void 0 : m.setTab) == null || y.call(m, 0), (p = (u = l.value) == null ? void 0 : u.forEach) == null || p.call(u, (_) => {
|
|
74
|
+
var s;
|
|
75
|
+
(s = _ == null ? void 0 : _.collapse) == null || s.call(_);
|
|
76
|
+
}), (b = (f = k.value) == null ? void 0 : f.collapse) == null || b.call(f);
|
|
77
77
|
},
|
|
78
|
-
paramCase:
|
|
78
|
+
paramCase: R
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
-
},
|
|
81
|
+
}, H = { class: "tw-pb-2" }, J = {
|
|
82
82
|
key: 0,
|
|
83
83
|
href: "/monthlygood"
|
|
84
|
-
},
|
|
84
|
+
}, O = { class: "tw-inline-flex tw-items-center tw-py-2 tw-mb-2 tw-gap-0.5 tw-border-b tw-border-tertiary tw-font-medium" }, Q = { class: "tw-font-medium" }, W = ["href"], X = { class: "tw-border-t tw-border-tertiary" }, Y = {
|
|
85
85
|
href: "/lend-by-category/recommended-by-lenders",
|
|
86
86
|
class: "lend-link tw-text-brand"
|
|
87
87
|
}, Z = {
|
|
@@ -94,103 +94,109 @@ const H = {
|
|
|
94
94
|
key: 1,
|
|
95
95
|
class: "tw-block tw-py-1 tw-text-tertiary"
|
|
96
96
|
}, se = { key: 0 }, ae = { key: 1 }, re = ["href"];
|
|
97
|
-
function ie(
|
|
98
|
-
const
|
|
99
|
-
return t(), n("div",
|
|
100
|
-
l.showMGUpsellLink ?
|
|
101
|
-
o("span",
|
|
97
|
+
function ie(C, e, l, k, x, M) {
|
|
98
|
+
const w = v("kv-material-icon"), m = v("kv-tab"), y = v("kv-loading-placeholder"), u = v("kv-tab-panel"), p = v("kv-accordion-item"), f = v("kv-lend-menu-country-list"), b = v("kv-lend-menu-search-list"), _ = v("kv-tabs"), s = B("kv-track-event");
|
|
99
|
+
return t(), n("div", H, [
|
|
100
|
+
l.showMGUpsellLink ? i((t(), n("a", J, [
|
|
101
|
+
o("span", O, [
|
|
102
102
|
e[0] || (e[0] = d(" Lend monthly ")),
|
|
103
|
-
|
|
103
|
+
c(w, {
|
|
104
104
|
icon: k.mdiArrowRight,
|
|
105
105
|
class: "tw-w-3 tw-h-3"
|
|
106
106
|
}, null, 8, ["icon"])
|
|
107
107
|
])
|
|
108
108
|
])), [
|
|
109
|
-
[
|
|
110
|
-
]) :
|
|
111
|
-
|
|
112
|
-
tabNav:
|
|
113
|
-
|
|
114
|
-
default:
|
|
109
|
+
[s, ["TopNav", "click-Lend-Menu-Monthly-Good", "Lend-monthly"]]
|
|
110
|
+
]) : T("", !0),
|
|
111
|
+
c(_, { ref: "navLendCategories" }, {
|
|
112
|
+
tabNav: r(() => [
|
|
113
|
+
i((t(), h(m, { "for-panel": "nav-lend-categories" }, {
|
|
114
|
+
default: r(() => e[1] || (e[1] = [
|
|
115
115
|
d(" Categories ")
|
|
116
116
|
])),
|
|
117
117
|
_: 1
|
|
118
|
-
}),
|
|
119
|
-
|
|
120
|
-
|
|
118
|
+
})), [
|
|
119
|
+
[s, ["TopNav", "click-Lend-Tab-Categories"]]
|
|
120
|
+
]),
|
|
121
|
+
i((t(), h(m, { "for-panel": "nav-lend-regions" }, {
|
|
122
|
+
default: r(() => e[2] || (e[2] = [
|
|
121
123
|
d(" Regions ")
|
|
122
124
|
])),
|
|
123
125
|
_: 1
|
|
124
|
-
}),
|
|
125
|
-
|
|
126
|
+
})), [
|
|
127
|
+
[s, ["TopNav", "click-Lend-Tab-Regions"]]
|
|
128
|
+
]),
|
|
129
|
+
l.userId ? i((t(), h(m, {
|
|
126
130
|
key: 0,
|
|
127
131
|
"for-panel": "nav-my-kiva"
|
|
128
132
|
}, {
|
|
129
|
-
default:
|
|
133
|
+
default: r(() => e[3] || (e[3] = [
|
|
130
134
|
d(" My Kiva ")
|
|
131
135
|
])),
|
|
132
136
|
_: 1
|
|
133
|
-
}))
|
|
137
|
+
})), [
|
|
138
|
+
[s, ["TopNav", "click-Lend-Tab-My-Kiva"]]
|
|
139
|
+
]) : T("", !0)
|
|
134
140
|
]),
|
|
135
|
-
tabPanels:
|
|
136
|
-
|
|
137
|
-
default:
|
|
138
|
-
o("ul",
|
|
139
|
-
l.isChannelsLoading ? (t(), n(
|
|
140
|
-
key:
|
|
141
|
+
tabPanels: r(() => [
|
|
142
|
+
c(u, { id: "nav-lend-categories" }, {
|
|
143
|
+
default: r(() => [
|
|
144
|
+
o("ul", Q, [
|
|
145
|
+
l.isChannelsLoading ? (t(), n(g, { key: 0 }, L(14, (a) => o("li", {
|
|
146
|
+
key: a,
|
|
141
147
|
style: { width: "11rem" },
|
|
142
148
|
class: "tw-py-1 tw-flex"
|
|
143
149
|
}, [
|
|
144
|
-
|
|
150
|
+
c(y, {
|
|
145
151
|
class: "tw-inline-block tw-align-middle",
|
|
146
152
|
style: { height: "1rem" }
|
|
147
153
|
}),
|
|
148
154
|
e[4] || (e[4] = o("span", { class: "tw-inline-block" }, " ", -1))
|
|
149
|
-
])), 64)) : (t(!0), n(
|
|
150
|
-
|
|
151
|
-
href:
|
|
155
|
+
])), 64)) : (t(!0), n(g, { key: 1 }, L(l.categories, (a, A) => (t(), n("li", { key: A }, [
|
|
156
|
+
i((t(), n("a", {
|
|
157
|
+
href: a.url,
|
|
152
158
|
class: "lend-link"
|
|
153
159
|
}, [
|
|
154
|
-
d(K(
|
|
160
|
+
d(K(a.name), 1)
|
|
155
161
|
], 8, W)), [
|
|
156
|
-
[
|
|
162
|
+
[s, ["TopNav", "click-Lend-Category", a.name, A + 1]]
|
|
157
163
|
])
|
|
158
164
|
]))), 128)),
|
|
159
165
|
o("li", X, [
|
|
160
|
-
|
|
166
|
+
i((t(), n("a", Y, e[5] || (e[5] = [
|
|
161
167
|
d(" Recommended by lenders ")
|
|
162
168
|
]))), [
|
|
163
|
-
[
|
|
169
|
+
[s, ["TopNav", "click-Lend-Recommended-by-lenders"]]
|
|
164
170
|
])
|
|
165
171
|
]),
|
|
166
172
|
o("li", null, [
|
|
167
|
-
|
|
173
|
+
i((t(), n("a", Z, e[6] || (e[6] = [
|
|
168
174
|
d(" All loans ")
|
|
169
175
|
]))), [
|
|
170
|
-
[
|
|
176
|
+
[s, ["TopNav", "click-Lend-All_Loans"]]
|
|
171
177
|
])
|
|
172
178
|
]),
|
|
173
179
|
o("li", null, [
|
|
174
|
-
|
|
180
|
+
i((t(), n("a", $, e[7] || (e[7] = [
|
|
175
181
|
d(" All categories ")
|
|
176
182
|
]))), [
|
|
177
|
-
[
|
|
183
|
+
[s, ["TopNav", "click-Lend-All_Categories"]]
|
|
178
184
|
])
|
|
179
185
|
])
|
|
180
186
|
])
|
|
181
187
|
]),
|
|
182
188
|
_: 1
|
|
183
189
|
}),
|
|
184
|
-
|
|
185
|
-
default:
|
|
186
|
-
l.isRegionsLoading ? (t(), n(
|
|
187
|
-
id: `placeholder-${
|
|
188
|
-
key:
|
|
190
|
+
c(u, { id: "nav-lend-regions" }, {
|
|
191
|
+
default: r(() => [
|
|
192
|
+
l.isRegionsLoading ? (t(), n(g, { key: 0 }, L(8, (a) => c(p, {
|
|
193
|
+
id: `placeholder-${a}-panel`,
|
|
194
|
+
key: a,
|
|
189
195
|
disabled: !0
|
|
190
196
|
}, {
|
|
191
|
-
header:
|
|
197
|
+
header: r(() => [
|
|
192
198
|
o("div", ee, [
|
|
193
|
-
|
|
199
|
+
c(y, {
|
|
194
200
|
class: "tw-inline-block tw-align-middle",
|
|
195
201
|
style: { height: "1rem" }
|
|
196
202
|
}),
|
|
@@ -198,54 +204,54 @@ function ie(T, e, l, k, x, M) {
|
|
|
198
204
|
])
|
|
199
205
|
]),
|
|
200
206
|
_: 2
|
|
201
|
-
}, 1032, ["id"])), 64)) : (t(!0), n(
|
|
202
|
-
id: `lend-menu-${k.paramCase(
|
|
203
|
-
key:
|
|
207
|
+
}, 1032, ["id"])), 64)) : (t(!0), n(g, { key: 1 }, L(l.regions, (a) => i((t(), h(p, {
|
|
208
|
+
id: `lend-menu-${k.paramCase(a.name)}-panel`,
|
|
209
|
+
key: a.name,
|
|
204
210
|
ref_for: !0,
|
|
205
211
|
ref: "regionAccordions"
|
|
206
212
|
}, {
|
|
207
|
-
header:
|
|
208
|
-
o("h3", te, K(
|
|
213
|
+
header: r(() => [
|
|
214
|
+
o("h3", te, K(a.name), 1)
|
|
209
215
|
]),
|
|
210
|
-
default:
|
|
211
|
-
|
|
212
|
-
countries:
|
|
216
|
+
default: r(() => [
|
|
217
|
+
c(f, {
|
|
218
|
+
countries: a.countries
|
|
213
219
|
}, null, 8, ["countries"])
|
|
214
220
|
]),
|
|
215
221
|
_: 2
|
|
216
222
|
}, 1032, ["id"])), [
|
|
217
|
-
[
|
|
223
|
+
[s, ["TopNav", "click-Lend-Region", a.name]]
|
|
218
224
|
])), 128))
|
|
219
225
|
]),
|
|
220
226
|
_: 1
|
|
221
227
|
}),
|
|
222
|
-
l.userId ? (t(),
|
|
228
|
+
l.userId ? (t(), h(u, {
|
|
223
229
|
key: 0,
|
|
224
230
|
id: "nav-my-kiva"
|
|
225
231
|
}, {
|
|
226
|
-
default:
|
|
232
|
+
default: r(() => [
|
|
227
233
|
o("ul", ne, [
|
|
228
234
|
o("li", null, [
|
|
229
|
-
l.favorites > 0 ?
|
|
235
|
+
l.favorites > 0 ? i((t(), n("a", {
|
|
230
236
|
key: 0,
|
|
231
237
|
href: `/lend?lenderFavorite=${l.userId}`,
|
|
232
238
|
class: "lend-link"
|
|
233
239
|
}, e[9] || (e[9] = [
|
|
234
240
|
d(" Saved loans ")
|
|
235
241
|
]), 8, oe)), [
|
|
236
|
-
[
|
|
242
|
+
[s, ["TopNav", "click-Lend-Favorites"]]
|
|
237
243
|
]) : (t(), n("span", le, "Saved loans"))
|
|
238
244
|
]),
|
|
239
245
|
k.hasSearches ? (t(), n("li", se, [
|
|
240
|
-
|
|
246
|
+
c(p, {
|
|
241
247
|
id: "lend-menu-saved-searches-panel",
|
|
242
248
|
ref: "searchesLink"
|
|
243
249
|
}, {
|
|
244
|
-
header:
|
|
250
|
+
header: r(() => e[10] || (e[10] = [
|
|
245
251
|
o("p", { class: "tw-font-medium" }, " Saved searches ", -1)
|
|
246
252
|
])),
|
|
247
|
-
default:
|
|
248
|
-
|
|
253
|
+
default: r(() => [
|
|
254
|
+
c(b, { searches: l.searches }, null, 8, ["searches"])
|
|
249
255
|
]),
|
|
250
256
|
_: 1
|
|
251
257
|
}, 512)
|
|
@@ -253,25 +259,25 @@ function ie(T, e, l, k, x, M) {
|
|
|
253
259
|
o("span", { class: "tw-block tw-py-1 tw-text-tertiary" }, "Saved searches", -1)
|
|
254
260
|
]))),
|
|
255
261
|
o("li", null, [
|
|
256
|
-
|
|
262
|
+
i((t(), n("a", {
|
|
257
263
|
href: l.countriesNotLentToUrl,
|
|
258
264
|
class: "lend-link"
|
|
259
265
|
}, e[12] || (e[12] = [
|
|
260
266
|
d(" Countries I haven't lent to ")
|
|
261
267
|
]), 8, re)), [
|
|
262
|
-
[
|
|
268
|
+
[s, ["TopNav", "click-Lend-Countries_Not_Lent"]]
|
|
263
269
|
])
|
|
264
270
|
])
|
|
265
271
|
])
|
|
266
272
|
]),
|
|
267
273
|
_: 1
|
|
268
|
-
})) :
|
|
274
|
+
})) : T("", !0)
|
|
269
275
|
]),
|
|
270
276
|
_: 1
|
|
271
277
|
}, 512)
|
|
272
278
|
]);
|
|
273
279
|
}
|
|
274
|
-
const ge = /* @__PURE__ */ z
|
|
280
|
+
const ge = /* @__PURE__ */ q(z, [["render", ie], ["__scopeId", "data-v-de8f418f"]]);
|
|
275
281
|
export {
|
|
276
282
|
ge as default
|
|
277
283
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.69.
|
|
3
|
+
"version": "6.69.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"embla-carousel-fade",
|
|
115
115
|
"popper.js"
|
|
116
116
|
],
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "f6ec5ff169304eff0c80651237eadcf8e79505d6"
|
|
118
118
|
}
|