@kiva/kv-components 6.69.0 → 6.69.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +51 -46
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +6 -10
- 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-4bba67dd]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-4bba67dd]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { mdiClose as w } from "@mdi/js";
|
|
2
2
|
import f from "../KvAccordionItem.js";
|
|
3
3
|
import h from "../KvMaterialIcon.js";
|
|
4
|
-
import { resolveComponent as
|
|
4
|
+
import { resolveComponent as p, resolveDirective as g, openBlock as t, createElementBlock as n, withDirectives as i, createBlock as c, createCommentVNode as _, withCtx as a, createElementVNode as r, Fragment as A, renderList as K, toDisplayString as m, createTextVNode as s } from "vue";
|
|
5
5
|
import "./KvHeaderMobileMenu.css";
|
|
6
6
|
import N from "../../_virtual/_plugin-vue_export-helper.js";
|
|
7
|
-
const
|
|
7
|
+
const T = {
|
|
8
8
|
name: "KvHeaderMobileMenu",
|
|
9
9
|
components: {
|
|
10
10
|
KvAccordionItem: f,
|
|
@@ -56,19 +56,19 @@ const I = {
|
|
|
56
56
|
]
|
|
57
57
|
};
|
|
58
58
|
}
|
|
59
|
-
},
|
|
59
|
+
}, y = { 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" }, I = { class: "tw-flex tw-flex-col tw-gap-2 tw-pl-1" }, x = ["href"], M = { class: "tw-text-secondary tw-font-book" }, C = { class: "tw-flex tw-flex-col tw-gap-2 tw-pb-2 tw-pl-1" }, H = {
|
|
60
60
|
href: "/about",
|
|
61
61
|
class: "mobile-link"
|
|
62
|
-
},
|
|
62
|
+
}, D = {
|
|
63
63
|
href: "/about/how",
|
|
64
64
|
class: "mobile-link"
|
|
65
|
-
},
|
|
65
|
+
}, E = {
|
|
66
66
|
href: "/about/where-kiva-works",
|
|
67
67
|
class: "mobile-link"
|
|
68
|
-
},
|
|
68
|
+
}, B = {
|
|
69
69
|
href: "/impact",
|
|
70
70
|
class: "mobile-link"
|
|
71
|
-
},
|
|
71
|
+
}, P = {
|
|
72
72
|
href: "/about/leadership",
|
|
73
73
|
class: "mobile-link"
|
|
74
74
|
}, $ = {
|
|
@@ -81,16 +81,18 @@ const I = {
|
|
|
81
81
|
href: "/about/due-diligence",
|
|
82
82
|
class: "mobile-link"
|
|
83
83
|
};
|
|
84
|
-
function S(v, e,
|
|
85
|
-
const
|
|
86
|
-
return t(),
|
|
87
|
-
|
|
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, {
|
|
88
88
|
key: 0,
|
|
89
|
-
icon:
|
|
89
|
+
icon: d.mdiClose,
|
|
90
90
|
class: "tw-cursor-pointer",
|
|
91
91
|
onClick: e[0] || (e[0] = (l) => v.$emit("closing-menu"))
|
|
92
|
-
}, null, 8, ["icon"]))
|
|
93
|
-
|
|
92
|
+
}, null, 8, ["icon"])), [
|
|
93
|
+
[o, ["TopNav", "click-Hamburger-close"]]
|
|
94
|
+
]) : _("", !0),
|
|
95
|
+
i((t(), c(u, {
|
|
94
96
|
id: "accordion-take-action-menu",
|
|
95
97
|
open: "",
|
|
96
98
|
class: "tw-w-full tw-border-b-0"
|
|
@@ -99,23 +101,24 @@ function S(v, e, k, W, c, q) {
|
|
|
99
101
|
r("h3", { class: "tw-pb-0.5" }, " Take action ", -1)
|
|
100
102
|
])),
|
|
101
103
|
default: a(() => [
|
|
102
|
-
r("div",
|
|
103
|
-
(t(!0),
|
|
104
|
-
key: l.title
|
|
104
|
+
r("div", I, [
|
|
105
|
+
(t(!0), n(A, null, K(d.menuItems, (l) => i((t(), n("a", {
|
|
106
|
+
key: l.title,
|
|
107
|
+
href: l.url,
|
|
108
|
+
class: "mobile-link"
|
|
105
109
|
}, [
|
|
106
|
-
r("
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
r("p", C, m(l.description), 1)
|
|
111
|
-
])), [
|
|
112
|
-
[i, ["TopNav", `click-${l.trackEvent}`]]
|
|
110
|
+
r("div", null, m(l.title), 1),
|
|
111
|
+
r("p", M, m(l.description), 1)
|
|
112
|
+
], 8, x)), [
|
|
113
|
+
[o, ["TopNav", `click-${l.trackEvent}`]]
|
|
113
114
|
])), 128))
|
|
114
115
|
])
|
|
115
116
|
]),
|
|
116
117
|
_: 1
|
|
117
|
-
}),
|
|
118
|
-
|
|
118
|
+
})), [
|
|
119
|
+
[o, ["TopNav", "click-Hamburger-Take-action-accordion"]]
|
|
120
|
+
]),
|
|
121
|
+
i((t(), c(u, {
|
|
119
122
|
id: "accordion-about-menu",
|
|
120
123
|
class: "tw-w-full tw-pb-1"
|
|
121
124
|
}, {
|
|
@@ -123,54 +126,56 @@ function S(v, e, k, W, c, q) {
|
|
|
123
126
|
r("h3", { class: "tw-pb-0.5" }, " About ", -1)
|
|
124
127
|
])),
|
|
125
128
|
default: a(() => [
|
|
126
|
-
r("div",
|
|
127
|
-
|
|
129
|
+
r("div", C, [
|
|
130
|
+
i((t(), n("a", H, e[3] || (e[3] = [
|
|
128
131
|
s("About us")
|
|
129
132
|
]))), [
|
|
130
|
-
[
|
|
133
|
+
[o, ["TopNav", "click-About-About us"]]
|
|
131
134
|
]),
|
|
132
|
-
|
|
135
|
+
i((t(), n("a", D, e[4] || (e[4] = [
|
|
133
136
|
s("How Kiva works")
|
|
134
137
|
]))), [
|
|
135
|
-
[
|
|
138
|
+
[o, ["TopNav", "click-About-How Kiva works"]]
|
|
136
139
|
]),
|
|
137
|
-
|
|
140
|
+
i((t(), n("a", E, e[5] || (e[5] = [
|
|
138
141
|
s("Where Kiva works")
|
|
139
142
|
]))), [
|
|
140
|
-
[
|
|
143
|
+
[o, ["TopNav", "click-About-Where Kiva works"]]
|
|
141
144
|
]),
|
|
142
|
-
|
|
145
|
+
i((t(), n("a", B, e[6] || (e[6] = [
|
|
143
146
|
s("Impact")
|
|
144
147
|
]))), [
|
|
145
|
-
[
|
|
148
|
+
[o, ["TopNav", "click-About-Impact"]]
|
|
146
149
|
]),
|
|
147
|
-
|
|
150
|
+
i((t(), n("a", P, e[7] || (e[7] = [
|
|
148
151
|
s("Leadership")
|
|
149
152
|
]))), [
|
|
150
|
-
[
|
|
153
|
+
[o, ["TopNav", "click-About-Leadership"]]
|
|
151
154
|
]),
|
|
152
|
-
|
|
155
|
+
i((t(), n("a", $, e[8] || (e[8] = [
|
|
153
156
|
s("Finances")
|
|
154
157
|
]))), [
|
|
155
|
-
[
|
|
158
|
+
[o, ["TopNav", "click-About-Finances"]]
|
|
156
159
|
]),
|
|
157
|
-
|
|
160
|
+
i((t(), n("a", F, e[9] || (e[9] = [
|
|
158
161
|
s("Press")
|
|
159
162
|
]))), [
|
|
160
|
-
[
|
|
163
|
+
[o, ["TopNav", "click-About-Press"]]
|
|
161
164
|
]),
|
|
162
|
-
|
|
165
|
+
i((t(), n("a", L, e[10] || (e[10] = [
|
|
163
166
|
s("Due diligence")
|
|
164
167
|
]))), [
|
|
165
|
-
[
|
|
168
|
+
[o, ["TopNav", "click-About-Due diligence"]]
|
|
166
169
|
])
|
|
167
170
|
])
|
|
168
171
|
]),
|
|
169
172
|
_: 1
|
|
170
|
-
})
|
|
173
|
+
})), [
|
|
174
|
+
[o, ["TopNav", "click-Hamburger-About-accordion"]]
|
|
175
|
+
])
|
|
171
176
|
]);
|
|
172
177
|
}
|
|
173
|
-
const
|
|
178
|
+
const O = /* @__PURE__ */ N(T, [["render", S], ["__scopeId", "data-v-4bba67dd"]]);
|
|
174
179
|
export {
|
|
175
|
-
|
|
180
|
+
O as default
|
|
176
181
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.lend-link[data-v-
|
|
1
|
+
.lend-link[data-v-5b7745cc]{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-5b7745cc]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
|
|
@@ -198,20 +198,14 @@ function ie(T, e, l, k, x, M) {
|
|
|
198
198
|
])
|
|
199
199
|
]),
|
|
200
200
|
_: 2
|
|
201
|
-
}, 1032, ["id"])), 64)) : (t(!0), n(b, { key: 1 }, g(l.regions, (s) => (t(), N(p, {
|
|
201
|
+
}, 1032, ["id"])), 64)) : (t(!0), n(b, { key: 1 }, g(l.regions, (s) => _((t(), N(p, {
|
|
202
202
|
id: `lend-menu-${k.paramCase(s.name)}-panel`,
|
|
203
203
|
key: s.name,
|
|
204
204
|
ref_for: !0,
|
|
205
205
|
ref: "regionAccordions"
|
|
206
206
|
}, {
|
|
207
207
|
header: a(() => [
|
|
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
|
-
])
|
|
208
|
+
o("h3", te, K(s.name), 1)
|
|
215
209
|
]),
|
|
216
210
|
default: a(() => [
|
|
217
211
|
r(f, {
|
|
@@ -219,7 +213,9 @@ function ie(T, e, l, k, x, M) {
|
|
|
219
213
|
}, null, 8, ["countries"])
|
|
220
214
|
]),
|
|
221
215
|
_: 2
|
|
222
|
-
}, 1032, ["id"]))
|
|
216
|
+
}, 1032, ["id"])), [
|
|
217
|
+
[i, ["TopNav", "click-Lend-Region", s.name]]
|
|
218
|
+
])), 128))
|
|
223
219
|
]),
|
|
224
220
|
_: 1
|
|
225
221
|
}),
|
|
@@ -275,7 +271,7 @@ function ie(T, e, l, k, x, M) {
|
|
|
275
271
|
}, 512)
|
|
276
272
|
]);
|
|
277
273
|
}
|
|
278
|
-
const ge = /* @__PURE__ */ z(H, [["render", ie], ["__scopeId", "data-v-
|
|
274
|
+
const ge = /* @__PURE__ */ z(H, [["render", ie], ["__scopeId", "data-v-5b7745cc"]]);
|
|
279
275
|
export {
|
|
280
276
|
ge as default
|
|
281
277
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.69.
|
|
3
|
+
"version": "6.69.1",
|
|
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": "d022a741fc1f690033335ee6f38a7ab5e3bbddf8"
|
|
118
118
|
}
|