@kiva/kv-components 6.69.0 → 6.69.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/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +141 -125
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +110 -87
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +89 -87
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-link[data-v-
|
|
1
|
+
.header-link[data-v-d30fd983]{cursor:pointer;padding-top:1rem;padding-bottom:1rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.header-link[data-v-d30fd983]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}[data-v-d30fd983] .avatar div:first-child{display:flex}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent as h, ref as l, inject as Z, computed as
|
|
1
|
+
import { defineAsyncComponent as h, ref as l, inject as Z, computed as L, watch as P, onMounted as $, onUnmounted as ee, resolveComponent as p, resolveDirective as ne, openBlock as i, createElementBlock as M, withDirectives as c, normalizeClass as A, withModifiers as B, createVNode as E, createBlock as y, withCtx as N, createTextVNode as k, createElementVNode as b, createCommentVNode as V, vShow as R, toDisplayString as te } from "vue";
|
|
2
2
|
import { mdiAccountCircle as oe, mdiChevronDown as ae, mdiMagnify as le, mdiMenu as re } from "@mdi/js";
|
|
3
3
|
import ie from "numeral";
|
|
4
4
|
import de from "@kiva/kv-tokens";
|
|
@@ -10,7 +10,7 @@ import { throttle as ce } from "../../utils/throttle.js";
|
|
|
10
10
|
import { isLegacyPlaceholderAvatar as we } from "../../utils/imageUtils.js";
|
|
11
11
|
import "./KvHeaderLinkBar.css";
|
|
12
12
|
import fe from "../../_virtual/_plugin-vue_export-helper.js";
|
|
13
|
-
const Me = h(() => import("./KvHeaderMobileMenu.js")),
|
|
13
|
+
const Me = h(() => import("./KvHeaderMobileMenu.js")), F = h(() => import("./KvHeaderMyKivaMenu.js")), ke = h(() => import("./LendMenu/KvLendMenu.js")), be = h(() => import("./KvHeaderTakeActionMenu.js")), he = h(() => import("./KvHeaderAboutMenu.js")), W = 150, w = "avatar-menu", I = "menuButton", z = { top: "-3.75rem", width: "100%" }, ge = "lendButton", Te = "takeActionButton", pe = "aboutUsLink", Ae = {
|
|
14
14
|
components: {
|
|
15
15
|
KvMaterialIcon: ue,
|
|
16
16
|
KvIconBag: me,
|
|
@@ -58,118 +58,134 @@ const Me = h(() => import("./KvHeaderMobileMenu.js")), R = h(() => import("./KvH
|
|
|
58
58
|
emits: [
|
|
59
59
|
"item-hover"
|
|
60
60
|
],
|
|
61
|
-
setup(
|
|
62
|
-
const a = l(null), e = l(null),
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
61
|
+
setup(d, { emit: n }) {
|
|
62
|
+
const a = l(null), e = l(null), K = l(null), x = l(null), g = l(null), f = l(null), U = l(null), H = l(null), u = l(null), o = l(null), O = Z("$kvTrackEvent"), _ = {
|
|
63
|
+
[ge]: { action: "hover-Lend-menu", label: "Lend" },
|
|
64
|
+
[Te]: { action: "hover-Take-action-menu", label: "Take action" },
|
|
65
|
+
[pe]: { action: "hover-About-menu", label: "About" },
|
|
66
|
+
[I]: { action: "hover-Hamburger-menu", label: "Hamburger" },
|
|
67
|
+
[w]: { action: "hover-Avatar-menu", label: "Avatar" }
|
|
68
|
+
}, m = (t, s, v = null) => {
|
|
69
|
+
n("item-hover", t, s, v);
|
|
70
|
+
}, j = (t, s, v = null) => {
|
|
71
|
+
if (!navigator.maxTouchPoints) {
|
|
72
|
+
if (t && o.value !== t) {
|
|
73
|
+
const r = _[t];
|
|
74
|
+
r && O(
|
|
75
|
+
"TopNav",
|
|
76
|
+
r.action,
|
|
77
|
+
r.label
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
o.value = t, m(
|
|
81
|
+
t,
|
|
82
|
+
s,
|
|
83
|
+
t === I && d.isMobile ? z : v
|
|
84
|
+
);
|
|
85
|
+
}
|
|
86
|
+
}, q = (t) => {
|
|
87
|
+
!navigator.maxTouchPoints && o.value === t && (o.value = null, m());
|
|
88
|
+
}, C = () => {
|
|
89
|
+
var S;
|
|
90
|
+
const t = (S = a.value) == null ? void 0 : S.getBoundingClientRect();
|
|
91
|
+
if (!t) return null;
|
|
92
|
+
const v = t.left + t.width / 2 - W / 2, r = `${window.innerWidth - v - W}px`;
|
|
81
93
|
return {
|
|
82
|
-
right: (window == null ? void 0 : window.innerWidth) < de.breakpoints.md ? 0 :
|
|
94
|
+
right: (window == null ? void 0 : window.innerWidth) < de.breakpoints.md ? 0 : r
|
|
83
95
|
};
|
|
84
|
-
},
|
|
85
|
-
|
|
86
|
-
},
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
}, T = () => {
|
|
97
|
+
o.value = w, m(a.value, F, C());
|
|
98
|
+
}, G = (t, s, v) => {
|
|
99
|
+
if (t && o.value !== t) {
|
|
100
|
+
const r = _[t];
|
|
101
|
+
r && O(
|
|
102
|
+
"TopNav",
|
|
103
|
+
r.action,
|
|
104
|
+
r.label
|
|
105
|
+
);
|
|
106
|
+
}
|
|
107
|
+
o.value === I && (o.value = null), !o.value || o.value !== t ? (o.value = t, t === w ? T() : t === I && d.isMobile ? m(t, s, z) : m(t, s, v)) : (o.value = null, m());
|
|
108
|
+
}, D = ce(() => {
|
|
109
|
+
o.value === w && T();
|
|
110
|
+
}, 100), J = L(() => d.isMobile ? void 0 : "/lend-by-category"), Q = L(() => {
|
|
111
|
+
var t;
|
|
112
|
+
return ((t = d.lenderImageUrl) == null ? void 0 : t.split("/").pop()) ?? "";
|
|
113
|
+
}), X = L(() => Math.floor(d.balance)), Y = (t) => {
|
|
114
|
+
t.target === t.currentTarget && m();
|
|
99
115
|
};
|
|
100
|
-
return
|
|
101
|
-
() =>
|
|
116
|
+
return P(
|
|
117
|
+
() => d.isMobile,
|
|
102
118
|
() => {
|
|
103
|
-
|
|
119
|
+
o.value === w && T();
|
|
104
120
|
}
|
|
105
|
-
),
|
|
106
|
-
() =>
|
|
107
|
-
(
|
|
108
|
-
|
|
121
|
+
), P(
|
|
122
|
+
() => d.openMenuItem,
|
|
123
|
+
(t) => {
|
|
124
|
+
t || (o.value = null);
|
|
109
125
|
}
|
|
110
126
|
), $(() => {
|
|
111
|
-
import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js"), import("./KvHeaderTakeActionMenu.js"), import("./KvHeaderAboutMenu.js"), window.addEventListener("resize",
|
|
127
|
+
import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js"), import("./KvHeaderTakeActionMenu.js"), import("./KvHeaderAboutMenu.js"), window.addEventListener("resize", D);
|
|
112
128
|
}), ee(() => {
|
|
113
|
-
window.removeEventListener("resize",
|
|
129
|
+
window.removeEventListener("resize", D);
|
|
114
130
|
}), {
|
|
115
|
-
AVATAR_MENU_ID:
|
|
116
|
-
openMenuId:
|
|
131
|
+
AVATAR_MENU_ID: w,
|
|
132
|
+
openMenuId: o,
|
|
117
133
|
numeral: ie,
|
|
118
134
|
mdiAccountCircle: oe,
|
|
119
135
|
mdiChevronDown: ae,
|
|
120
136
|
mdiMagnify: le,
|
|
121
137
|
mdiMenu: re,
|
|
122
|
-
onHover:
|
|
138
|
+
onHover: m,
|
|
123
139
|
avatar: a,
|
|
124
140
|
lendButton: e,
|
|
125
|
-
aboutUsLink:
|
|
126
|
-
partnerWithUsLink:
|
|
141
|
+
aboutUsLink: K,
|
|
142
|
+
partnerWithUsLink: x,
|
|
127
143
|
borrowLink: g,
|
|
128
|
-
supportKivaLink:
|
|
129
|
-
basketLink:
|
|
130
|
-
signInLink:
|
|
131
|
-
menuButton:
|
|
132
|
-
lendUrl:
|
|
133
|
-
avatarFilename:
|
|
134
|
-
handleOnHover:
|
|
135
|
-
handleTouchStart:
|
|
136
|
-
handleMouseOut:
|
|
137
|
-
handleAvatarMenuPosition:
|
|
144
|
+
supportKivaLink: f,
|
|
145
|
+
basketLink: U,
|
|
146
|
+
signInLink: H,
|
|
147
|
+
menuButton: u,
|
|
148
|
+
lendUrl: J,
|
|
149
|
+
avatarFilename: Q,
|
|
150
|
+
handleOnHover: j,
|
|
151
|
+
handleTouchStart: G,
|
|
152
|
+
handleMouseOut: q,
|
|
153
|
+
handleAvatarMenuPosition: T,
|
|
138
154
|
KvHeaderMobileMenu: Me,
|
|
139
|
-
KvHeaderMyKivaMenu:
|
|
155
|
+
KvHeaderMyKivaMenu: F,
|
|
140
156
|
KvLendMenu: ke,
|
|
141
|
-
KvHeaderTakeActionMenu:
|
|
142
|
-
KvHeaderAboutMenu:
|
|
157
|
+
KvHeaderTakeActionMenu: be,
|
|
158
|
+
KvHeaderAboutMenu: he,
|
|
143
159
|
isLegacyPlaceholderAvatar: we,
|
|
144
|
-
getAvatarMenuPosition:
|
|
145
|
-
handleEmptySpaceClick:
|
|
146
|
-
roundedBalance:
|
|
160
|
+
getAvatarMenuPosition: C,
|
|
161
|
+
handleEmptySpaceClick: Y,
|
|
162
|
+
roundedBalance: X
|
|
147
163
|
};
|
|
148
164
|
}
|
|
149
|
-
},
|
|
165
|
+
}, ye = ["href"], Ie = {
|
|
150
166
|
ref: "avatar",
|
|
151
167
|
class: "tw-cursor-pointer tw-flex tw-items-center tw-gap-1 tw-bg-eco-green-1 tw-rounded-md tw-py-0.5 md:tw-py-1 tw-px-1 md:tw-px-2"
|
|
152
|
-
},
|
|
153
|
-
function
|
|
154
|
-
const g = p("kv-material-icon"),
|
|
155
|
-
return
|
|
168
|
+
}, Ue = { class: "tw-text-eco-green-4" }, He = ["href"];
|
|
169
|
+
function Le(d, n, a, e, K, x) {
|
|
170
|
+
const g = p("kv-material-icon"), f = p("KvHeaderDropdownLink"), U = p("kv-icon-bag"), H = p("KvUserAvatar"), u = ne("kv-track-event");
|
|
171
|
+
return i(), M("div", {
|
|
156
172
|
class: "tw-h-full tw-flex tw-items-center tw-gap-0.5 md:tw-gap-2 lg:tw-gap-2.5",
|
|
157
|
-
onTouchstart: n[10] || (n[10] = (...
|
|
173
|
+
onTouchstart: n[10] || (n[10] = (...o) => e.handleEmptySpaceClick && e.handleEmptySpaceClick(...o))
|
|
158
174
|
}, [
|
|
159
|
-
|
|
175
|
+
c((i(), M("button", {
|
|
160
176
|
ref: "menuButton",
|
|
161
|
-
class:
|
|
177
|
+
class: A(["header-link tw-inline-flex md:tw-hidden", {
|
|
162
178
|
"tw-text-tertiary": a.openMenuItem && a.openMenuItem !== e.KvHeaderMobileMenu
|
|
163
179
|
}]),
|
|
164
|
-
onMouseover: n[0] || (n[0] = (
|
|
165
|
-
onMouseout: n[1] || (n[1] = (
|
|
166
|
-
onTouchstart: n[2] || (n[2] =
|
|
180
|
+
onMouseover: n[0] || (n[0] = (o) => e.handleOnHover("menuButton", e.KvHeaderMobileMenu)),
|
|
181
|
+
onMouseout: n[1] || (n[1] = (o) => e.handleMouseOut("menuButton")),
|
|
182
|
+
onTouchstart: n[2] || (n[2] = B((o) => e.handleTouchStart("menuButton", e.KvHeaderMobileMenu), ["stop"]))
|
|
167
183
|
}, [
|
|
168
|
-
|
|
184
|
+
E(g, { icon: e.mdiMenu }, null, 8, ["icon"])
|
|
169
185
|
], 34)), [
|
|
170
|
-
[
|
|
186
|
+
[u, a.openMenuItem === e.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
|
|
171
187
|
]),
|
|
172
|
-
|
|
188
|
+
c((i(), y(f, {
|
|
173
189
|
class: "tw-py-1",
|
|
174
190
|
"ref-name": "lendButton",
|
|
175
191
|
href: e.lendUrl,
|
|
@@ -178,17 +194,17 @@ function Ie(i, n, a, e, N, E) {
|
|
|
178
194
|
"dropdown-icon": e.mdiChevronDown,
|
|
179
195
|
"base-class": "tw-inline-flex md:tw-border md:tw-rounded-md tw-px-1.5 tw-py-0.5",
|
|
180
196
|
onOnHover: e.handleOnHover,
|
|
181
|
-
onMouseleave: n[3] || (n[3] = (
|
|
182
|
-
onTouchstart: n[4] || (n[4] =
|
|
197
|
+
onMouseleave: n[3] || (n[3] = (o) => e.handleMouseOut("lendButton")),
|
|
198
|
+
onTouchstart: n[4] || (n[4] = B((o) => e.handleTouchStart("lendButton", e.KvLendMenu), ["stop"]))
|
|
183
199
|
}, {
|
|
184
|
-
default:
|
|
185
|
-
|
|
200
|
+
default: N(() => n[11] || (n[11] = [
|
|
201
|
+
k(" Lend ")
|
|
186
202
|
])),
|
|
187
203
|
_: 1
|
|
188
204
|
}, 8, ["href", "menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
189
|
-
[
|
|
205
|
+
[u, ["TopNav", "click-Lend"]]
|
|
190
206
|
]),
|
|
191
|
-
|
|
207
|
+
c((i(), y(f, {
|
|
192
208
|
"ref-name": "takeActionButton",
|
|
193
209
|
"base-class": "tw-hidden md:tw-inline-flex tw-py-1",
|
|
194
210
|
"menu-component": e.KvHeaderTakeActionMenu,
|
|
@@ -196,17 +212,17 @@ function Ie(i, n, a, e, N, E) {
|
|
|
196
212
|
"dropdown-icon": e.mdiChevronDown,
|
|
197
213
|
"send-link-position": "",
|
|
198
214
|
onOnHover: e.handleOnHover,
|
|
199
|
-
onMouseleave: n[5] || (n[5] = (
|
|
215
|
+
onMouseleave: n[5] || (n[5] = (o) => e.handleMouseOut("takeActionButton")),
|
|
200
216
|
onUserTap: e.handleTouchStart
|
|
201
217
|
}, {
|
|
202
|
-
default:
|
|
203
|
-
|
|
218
|
+
default: N(() => n[12] || (n[12] = [
|
|
219
|
+
k(" Take action ")
|
|
204
220
|
])),
|
|
205
221
|
_: 1
|
|
206
222
|
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover", "onUserTap"])), [
|
|
207
|
-
[
|
|
223
|
+
[u, ["TopNav", "click-take-action"]]
|
|
208
224
|
]),
|
|
209
|
-
|
|
225
|
+
E(f, {
|
|
210
226
|
"ref-name": "aboutUsLink",
|
|
211
227
|
"data-testid": "header-about",
|
|
212
228
|
"base-class": "tw-hidden md:tw-inline-flex tw-py-1",
|
|
@@ -215,77 +231,77 @@ function Ie(i, n, a, e, N, E) {
|
|
|
215
231
|
"dropdown-icon": e.mdiChevronDown,
|
|
216
232
|
"send-link-position": "",
|
|
217
233
|
onOnHover: e.handleOnHover,
|
|
218
|
-
onMouseleave: n[6] || (n[6] = (
|
|
234
|
+
onMouseleave: n[6] || (n[6] = (o) => e.handleMouseOut("aboutUsLink")),
|
|
219
235
|
onUserTap: e.handleTouchStart
|
|
220
236
|
}, {
|
|
221
|
-
default:
|
|
222
|
-
|
|
237
|
+
default: N(() => n[13] || (n[13] = [
|
|
238
|
+
k(" About ")
|
|
223
239
|
])),
|
|
224
240
|
_: 1
|
|
225
241
|
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover", "onUserTap"]),
|
|
226
|
-
n[17] || (n[17] =
|
|
227
|
-
a.loggedIn ?
|
|
242
|
+
n[17] || (n[17] = b("div", { class: "tw-flex-1 tw-h-full" }, null, -1)),
|
|
243
|
+
a.loggedIn ? c((i(), M("a", {
|
|
228
244
|
key: 0,
|
|
229
245
|
ref: "dashboardLink",
|
|
230
246
|
href: a.myDashboardUrl,
|
|
231
|
-
class:
|
|
247
|
+
class: A(["header-link tw-hidden md:tw-block", { "tw-text-tertiary": !!a.openMenuItem }])
|
|
232
248
|
}, n[14] || (n[14] = [
|
|
233
|
-
|
|
234
|
-
]), 10,
|
|
235
|
-
[
|
|
236
|
-
]) :
|
|
237
|
-
|
|
249
|
+
k(" My dashboard ")
|
|
250
|
+
]), 10, ye)), [
|
|
251
|
+
[u, ["TopNav", "click-Dashboard"]]
|
|
252
|
+
]) : V("", !0),
|
|
253
|
+
c((i(), M("a", {
|
|
238
254
|
ref: "basketLink",
|
|
239
255
|
href: "/basket",
|
|
240
|
-
class:
|
|
256
|
+
class: A(["header-link tw-relative md:!tw-mr-0 tw-flex tw-items-center tw-gap-0.5", { "tw-text-tertiary": !!a.openMenuItem }]),
|
|
241
257
|
style: { "margin-right": "2px" },
|
|
242
258
|
"data-testid": "header-basket"
|
|
243
259
|
}, [
|
|
244
|
-
|
|
260
|
+
E(U, {
|
|
245
261
|
class: "tw-w-3 tw-h-3 md:tw-w-3.5 md:tw-h-3.5 tw-pointer-events-none tw-text-action",
|
|
246
262
|
count: a.basketCount
|
|
247
263
|
}, null, 8, ["count"]),
|
|
248
|
-
n[15] || (n[15] =
|
|
264
|
+
n[15] || (n[15] = b("span", { class: "tw-hidden md:tw-block" }, "Basket", -1))
|
|
249
265
|
], 2)), [
|
|
250
|
-
[
|
|
251
|
-
[
|
|
266
|
+
[R, a.basketCount > 0],
|
|
267
|
+
[u, ["TopNav", "click-Basket"]]
|
|
252
268
|
]),
|
|
253
|
-
|
|
269
|
+
b("div", {
|
|
254
270
|
class: "md:tw-py-1",
|
|
255
|
-
onMouseenter: n[7] || (n[7] = (
|
|
256
|
-
onMouseleave: n[8] || (n[8] = (
|
|
257
|
-
onTouchstart: n[9] || (n[9] =
|
|
271
|
+
onMouseenter: n[7] || (n[7] = (o) => e.handleOnHover(e.AVATAR_MENU_ID, e.KvHeaderMyKivaMenu, e.getAvatarMenuPosition())),
|
|
272
|
+
onMouseleave: n[8] || (n[8] = (o) => e.handleMouseOut(e.AVATAR_MENU_ID)),
|
|
273
|
+
onTouchstart: n[9] || (n[9] = B((o) => e.handleTouchStart(e.AVATAR_MENU_ID), ["stop"]))
|
|
258
274
|
}, [
|
|
259
|
-
|
|
260
|
-
e.isLegacyPlaceholderAvatar(e.avatarFilename) || !e.avatarFilename ? (
|
|
275
|
+
c(b("div", Ie, [
|
|
276
|
+
e.isLegacyPlaceholderAvatar(e.avatarFilename) || !e.avatarFilename ? (i(), y(g, {
|
|
261
277
|
key: 0,
|
|
262
278
|
icon: e.mdiAccountCircle,
|
|
263
279
|
class: "tw-w-3"
|
|
264
|
-
}, null, 8, ["icon"])) : (
|
|
280
|
+
}, null, 8, ["icon"])) : (i(), y(H, {
|
|
265
281
|
key: 1,
|
|
266
282
|
class: "avatar",
|
|
267
283
|
"lender-name": a.lenderName,
|
|
268
284
|
"lender-image-url": a.lenderImageUrl,
|
|
269
285
|
"is-small": ""
|
|
270
286
|
}, null, 8, ["lender-name", "lender-image-url"])),
|
|
271
|
-
|
|
287
|
+
b("span", Ue, te(e.numeral(e.roundedBalance).format("$0")), 1)
|
|
272
288
|
], 512), [
|
|
273
|
-
[
|
|
289
|
+
[R, a.loggedIn]
|
|
274
290
|
])
|
|
275
291
|
], 32),
|
|
276
|
-
a.loggedIn ?
|
|
292
|
+
a.loggedIn ? V("", !0) : c((i(), M("a", {
|
|
277
293
|
key: 1,
|
|
278
294
|
ref: "signInLink",
|
|
279
295
|
href: a.loginUrl,
|
|
280
|
-
class:
|
|
296
|
+
class: A(["header-link", { "tw-text-tertiary": !!a.openMenuItem }])
|
|
281
297
|
}, n[16] || (n[16] = [
|
|
282
|
-
|
|
283
|
-
]), 10,
|
|
284
|
-
[
|
|
298
|
+
k(" Sign in ")
|
|
299
|
+
]), 10, He)), [
|
|
300
|
+
[u, ["TopNav", "click-Sign-in"]]
|
|
285
301
|
])
|
|
286
302
|
], 32);
|
|
287
303
|
}
|
|
288
|
-
const
|
|
304
|
+
const Fe = /* @__PURE__ */ fe(Ae, [["render", Le], ["__scopeId", "data-v-d30fd983"]]);
|
|
289
305
|
export {
|
|
290
|
-
|
|
306
|
+
Fe as default
|
|
291
307
|
};
|
|
@@ -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
|
|
6
|
+
import y from "../../_virtual/_plugin-vue_export-helper.js";
|
|
7
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 I = {
|
|
|
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,121 +56,144 @@ const I = {
|
|
|
56
56
|
]
|
|
57
57
|
};
|
|
58
58
|
}
|
|
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" },
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
class: "mobile-link"
|
|
65
|
-
}, H = {
|
|
66
|
-
href: "/about/where-kiva-works",
|
|
67
|
-
class: "mobile-link"
|
|
68
|
-
}, P = {
|
|
69
|
-
href: "/impact",
|
|
70
|
-
class: "mobile-link"
|
|
71
|
-
}, V = {
|
|
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, k, W, c, q) {
|
|
85
|
-
const b = u("KvMaterialIcon"), d = u("KvAccordionItem"), i = g("kv-track-event");
|
|
86
|
-
return t(), o("nav", x, [
|
|
87
|
-
k.isMobile ? (t(), _(b, {
|
|
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
|
-
icon:
|
|
65
|
+
icon: d.mdiClose,
|
|
90
66
|
class: "tw-cursor-pointer",
|
|
91
|
-
onClick:
|
|
92
|
-
}, null, 8, ["icon"]))
|
|
93
|
-
|
|
67
|
+
onClick: o[0] || (o[0] = (s) => v.$emit("closing-menu"))
|
|
68
|
+
}, null, 8, ["icon"])), [
|
|
69
|
+
[e, ["TopNav", "click-Hamburger-close"]]
|
|
70
|
+
]) : K("", !0),
|
|
71
|
+
i((t(), u(c, {
|
|
94
72
|
id: "accordion-take-action-menu",
|
|
95
73
|
open: "",
|
|
96
74
|
class: "tw-w-full tw-border-b-0"
|
|
97
75
|
}, {
|
|
98
|
-
header:
|
|
99
|
-
|
|
76
|
+
header: p(() => o[10] || (o[10] = [
|
|
77
|
+
a("h3", { class: "tw-pb-0.5" }, " Take action ", -1)
|
|
100
78
|
])),
|
|
101
|
-
default:
|
|
102
|
-
|
|
103
|
-
(t(!0),
|
|
104
|
-
key:
|
|
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"]))
|
|
105
87
|
}, [
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
r("p", C, m(l.description), 1)
|
|
111
|
-
])), [
|
|
112
|
-
[i, ["TopNav", `click-${l.trackEvent}`]]
|
|
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}`]]
|
|
113
92
|
])), 128))
|
|
114
93
|
])
|
|
115
94
|
]),
|
|
116
95
|
_: 1
|
|
117
|
-
}),
|
|
118
|
-
|
|
96
|
+
})), [
|
|
97
|
+
[e, ["TopNav", "click-Hamburger-Take-action-accordion"]]
|
|
98
|
+
]),
|
|
99
|
+
i((t(), u(c, {
|
|
119
100
|
id: "accordion-about-menu",
|
|
120
101
|
class: "tw-w-full tw-pb-1"
|
|
121
102
|
}, {
|
|
122
|
-
header:
|
|
123
|
-
|
|
103
|
+
header: p(() => o[11] || (o[11] = [
|
|
104
|
+
a("h3", { class: "tw-pb-0.5" }, " About ", -1)
|
|
124
105
|
])),
|
|
125
|
-
default:
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
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")
|
|
129
115
|
]))), [
|
|
130
|
-
[
|
|
116
|
+
[e, ["TopNav", "click-About-About us"]]
|
|
131
117
|
]),
|
|
132
|
-
|
|
133
|
-
|
|
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")
|
|
134
125
|
]))), [
|
|
135
|
-
[
|
|
126
|
+
[e, ["TopNav", "click-About-How Kiva works"]]
|
|
136
127
|
]),
|
|
137
|
-
|
|
138
|
-
|
|
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")
|
|
139
135
|
]))), [
|
|
140
|
-
[
|
|
136
|
+
[e, ["TopNav", "click-About-Where Kiva works"]]
|
|
141
137
|
]),
|
|
142
|
-
|
|
143
|
-
|
|
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")
|
|
144
145
|
]))), [
|
|
145
|
-
[
|
|
146
|
+
[e, ["TopNav", "click-About-Impact"]]
|
|
146
147
|
]),
|
|
147
|
-
|
|
148
|
-
|
|
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")
|
|
149
155
|
]))), [
|
|
150
|
-
[
|
|
156
|
+
[e, ["TopNav", "click-About-Leadership"]]
|
|
151
157
|
]),
|
|
152
|
-
|
|
153
|
-
|
|
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")
|
|
154
165
|
]))), [
|
|
155
|
-
[
|
|
166
|
+
[e, ["TopNav", "click-About-Finances"]]
|
|
156
167
|
]),
|
|
157
|
-
|
|
158
|
-
|
|
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")
|
|
159
175
|
]))), [
|
|
160
|
-
[
|
|
176
|
+
[e, ["TopNav", "click-About-Press"]]
|
|
161
177
|
]),
|
|
162
|
-
|
|
163
|
-
|
|
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")
|
|
164
185
|
]))), [
|
|
165
|
-
[
|
|
186
|
+
[e, ["TopNav", "click-About-Due diligence"]]
|
|
166
187
|
])
|
|
167
188
|
])
|
|
168
189
|
]),
|
|
169
190
|
_: 1
|
|
170
|
-
})
|
|
191
|
+
})), [
|
|
192
|
+
[e, ["TopNav", "click-Hamburger-About-accordion"]]
|
|
193
|
+
])
|
|
171
194
|
]);
|
|
172
195
|
}
|
|
173
|
-
const
|
|
196
|
+
const q = /* @__PURE__ */ y(I, [["render", B], ["__scopeId", "data-v-d1df98b6"]]);
|
|
174
197
|
export {
|
|
175
|
-
|
|
198
|
+
q as default
|
|
176
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,58 +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,
|
|
209
|
-
_((t(), n("span", null, [
|
|
210
|
-
d(K(s.name), 1)
|
|
211
|
-
])), [
|
|
212
|
-
[i, ["TopNav", "click-Lend-Region", s.name]]
|
|
213
|
-
])
|
|
214
|
-
])
|
|
213
|
+
header: r(() => [
|
|
214
|
+
o("h3", te, K(a.name), 1)
|
|
215
215
|
]),
|
|
216
|
-
default:
|
|
217
|
-
|
|
218
|
-
countries:
|
|
216
|
+
default: r(() => [
|
|
217
|
+
c(f, {
|
|
218
|
+
countries: a.countries
|
|
219
219
|
}, null, 8, ["countries"])
|
|
220
220
|
]),
|
|
221
221
|
_: 2
|
|
222
|
-
}, 1032, ["id"]))
|
|
222
|
+
}, 1032, ["id"])), [
|
|
223
|
+
[s, ["TopNav", "click-Lend-Region", a.name]]
|
|
224
|
+
])), 128))
|
|
223
225
|
]),
|
|
224
226
|
_: 1
|
|
225
227
|
}),
|
|
226
|
-
l.userId ? (t(),
|
|
228
|
+
l.userId ? (t(), h(u, {
|
|
227
229
|
key: 0,
|
|
228
230
|
id: "nav-my-kiva"
|
|
229
231
|
}, {
|
|
230
|
-
default:
|
|
232
|
+
default: r(() => [
|
|
231
233
|
o("ul", ne, [
|
|
232
234
|
o("li", null, [
|
|
233
|
-
l.favorites > 0 ?
|
|
235
|
+
l.favorites > 0 ? i((t(), n("a", {
|
|
234
236
|
key: 0,
|
|
235
237
|
href: `/lend?lenderFavorite=${l.userId}`,
|
|
236
238
|
class: "lend-link"
|
|
237
239
|
}, e[9] || (e[9] = [
|
|
238
240
|
d(" Saved loans ")
|
|
239
241
|
]), 8, oe)), [
|
|
240
|
-
[
|
|
242
|
+
[s, ["TopNav", "click-Lend-Favorites"]]
|
|
241
243
|
]) : (t(), n("span", le, "Saved loans"))
|
|
242
244
|
]),
|
|
243
245
|
k.hasSearches ? (t(), n("li", se, [
|
|
244
|
-
|
|
246
|
+
c(p, {
|
|
245
247
|
id: "lend-menu-saved-searches-panel",
|
|
246
248
|
ref: "searchesLink"
|
|
247
249
|
}, {
|
|
248
|
-
header:
|
|
250
|
+
header: r(() => e[10] || (e[10] = [
|
|
249
251
|
o("p", { class: "tw-font-medium" }, " Saved searches ", -1)
|
|
250
252
|
])),
|
|
251
|
-
default:
|
|
252
|
-
|
|
253
|
+
default: r(() => [
|
|
254
|
+
c(b, { searches: l.searches }, null, 8, ["searches"])
|
|
253
255
|
]),
|
|
254
256
|
_: 1
|
|
255
257
|
}, 512)
|
|
@@ -257,25 +259,25 @@ function ie(T, e, l, k, x, M) {
|
|
|
257
259
|
o("span", { class: "tw-block tw-py-1 tw-text-tertiary" }, "Saved searches", -1)
|
|
258
260
|
]))),
|
|
259
261
|
o("li", null, [
|
|
260
|
-
|
|
262
|
+
i((t(), n("a", {
|
|
261
263
|
href: l.countriesNotLentToUrl,
|
|
262
264
|
class: "lend-link"
|
|
263
265
|
}, e[12] || (e[12] = [
|
|
264
266
|
d(" Countries I haven't lent to ")
|
|
265
267
|
]), 8, re)), [
|
|
266
|
-
[
|
|
268
|
+
[s, ["TopNav", "click-Lend-Countries_Not_Lent"]]
|
|
267
269
|
])
|
|
268
270
|
])
|
|
269
271
|
])
|
|
270
272
|
]),
|
|
271
273
|
_: 1
|
|
272
|
-
})) :
|
|
274
|
+
})) : T("", !0)
|
|
273
275
|
]),
|
|
274
276
|
_: 1
|
|
275
277
|
}, 512)
|
|
276
278
|
]);
|
|
277
279
|
}
|
|
278
|
-
const ge = /* @__PURE__ */ z
|
|
280
|
+
const ge = /* @__PURE__ */ q(z, [["render", ie], ["__scopeId", "data-v-de8f418f"]]);
|
|
279
281
|
export {
|
|
280
282
|
ge as default
|
|
281
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.2",
|
|
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": "3588a7c0b088dec5b4aea3b68f403e65c2bed2bb"
|
|
118
118
|
}
|