@kiva/kv-components 6.52.1 → 6.52.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/KvWwwHeader/KvHeaderDropdownLink.js +21 -17
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +32 -31
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +17 -13
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +14 -14
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +16 -16
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +3 -3
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getCurrentInstance as d, computed as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
components: { KvMaterialIcon:
|
|
1
|
+
import { getCurrentInstance as d, computed as c, resolveComponent as m, openBlock as u, createElementBlock as f, createElementVNode as w, normalizeClass as l, renderSlot as p, createVNode as v } from "vue";
|
|
2
|
+
import h from "../KvMaterialIcon.js";
|
|
3
|
+
import C from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const x = {
|
|
5
|
+
components: { KvMaterialIcon: h },
|
|
6
6
|
props: {
|
|
7
7
|
refName: {
|
|
8
8
|
type: String,
|
|
@@ -39,7 +39,7 @@ const C = {
|
|
|
39
39
|
setup(e, { emit: o }) {
|
|
40
40
|
const { proxy: n } = d();
|
|
41
41
|
return {
|
|
42
|
-
computedClass:
|
|
42
|
+
computedClass: c(() => [
|
|
43
43
|
e.baseClass,
|
|
44
44
|
{ "tw-text-tertiary": e.openMenuItem && e.openMenuItem !== e.menuComponent }
|
|
45
45
|
]),
|
|
@@ -61,22 +61,26 @@ const C = {
|
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
}, M = ["href"];
|
|
64
|
-
function
|
|
65
|
-
const a =
|
|
66
|
-
return
|
|
64
|
+
function y(e, o, n, r, i, s) {
|
|
65
|
+
const a = m("KvMaterialIcon");
|
|
66
|
+
return u(), f("a", {
|
|
67
67
|
ref: n.refName,
|
|
68
|
-
class:
|
|
68
|
+
class: "tw-py-1 tw-no-underline hover:tw-no-underline tw-text-primary hover:tw-text-action tw-items-center tw-cursor-pointer",
|
|
69
69
|
href: n.href,
|
|
70
70
|
onMouseover: o[0] || (o[0] = (...t) => r.handleMouseOver && r.handleMouseOver(...t))
|
|
71
71
|
}, [
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
w("div", {
|
|
73
|
+
class: l(["tw-flex tw-items-center", r.computedClass])
|
|
74
|
+
}, [
|
|
75
|
+
p(e.$slots, "default"),
|
|
76
|
+
v(a, {
|
|
77
|
+
class: l(["tw-inline tw-w-3 tw-ml-0.5 tw-transition-transform tw-duration-300", { "tw-rotate-180": n.openMenuItem === n.menuComponent }]),
|
|
78
|
+
icon: n.dropdownIcon
|
|
79
|
+
}, null, 8, ["class", "icon"])
|
|
80
|
+
], 2)
|
|
81
|
+
], 40, M);
|
|
78
82
|
}
|
|
79
|
-
const O = /* @__PURE__ */
|
|
83
|
+
const O = /* @__PURE__ */ C(x, [["render", y]]);
|
|
80
84
|
export {
|
|
81
85
|
O as default
|
|
82
86
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-link[data-v-
|
|
1
|
+
.header-link[data-v-479de318]{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-479de318]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
1
|
+
import { defineAsyncComponent as M, ref as i, computed as j, onMounted as F, onUnmounted as q, resolveComponent as k, resolveDirective as G, openBlock as a, createElementBlock as c, withDirectives as v, normalizeClass as b, createVNode as _, createBlock as g, withCtx as x, createTextVNode as w, createElementVNode as D, createCommentVNode as h, vShow as J, toDisplayString as Q } from "vue";
|
|
2
2
|
import { mdiAccountCircle as X, mdiChevronDown as Y, mdiMagnify as Z, mdiMenu as $ } from "@mdi/js";
|
|
3
3
|
import ee from "numeral";
|
|
4
4
|
import ne from "../KvMaterialIcon.js";
|
|
@@ -8,7 +8,7 @@ import le from "../KvUserAvatar.js";
|
|
|
8
8
|
import { throttle as ie } from "../../utils/throttle.js";
|
|
9
9
|
import "./KvHeaderLinkBar.css";
|
|
10
10
|
import re from "../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
-
const ae =
|
|
11
|
+
const ae = M(() => import("./KvHeaderMobileMenu.js")), C = M(() => import("./KvHeaderMyKivaMenu.js")), ue = M(() => import("./LendMenu/KvLendMenu.js")), de = M(() => import("./KvHeaderTakeActionMenu.js")), me = M(() => import("./KvHeaderAboutMenu.js")), E = 146, p = "avatar-menu", L = "menuButton", S = { top: "-3.75rem", width: "100%" }, se = {
|
|
12
12
|
components: {
|
|
13
13
|
KvMaterialIcon: ne,
|
|
14
14
|
KvIconBag: te,
|
|
@@ -57,17 +57,17 @@ const ae = w(() => import("./KvHeaderMobileMenu.js")), C = w(() => import("./KvH
|
|
|
57
57
|
"item-hover"
|
|
58
58
|
],
|
|
59
59
|
setup(d, { emit: e }) {
|
|
60
|
-
const t = i(null), n = i(null), B = i(null), K = i(null),
|
|
60
|
+
const t = i(null), n = i(null), B = i(null), K = i(null), y = i(null), f = i(null), A = i(null), T = i(null), u = i(null), o = i(null), I = i(!1), m = (l, s, r = null) => {
|
|
61
61
|
e("item-hover", l, s, r);
|
|
62
62
|
}, V = (l, s, r = null) => {
|
|
63
|
-
|
|
63
|
+
navigator.maxTouchPoints || (o.value = l, m(
|
|
64
64
|
l,
|
|
65
65
|
s,
|
|
66
66
|
l === L && d.isMobile ? S : r
|
|
67
67
|
));
|
|
68
|
-
},
|
|
69
|
-
!
|
|
70
|
-
},
|
|
68
|
+
}, P = (l) => {
|
|
69
|
+
!I.value && o.value === l && (o.value = null, m());
|
|
70
|
+
}, R = () => {
|
|
71
71
|
var U, N;
|
|
72
72
|
const l = (N = (U = t.value) == null ? void 0 : U.userAvatar) == null ? void 0 : N.getBoundingClientRect();
|
|
73
73
|
if (!l) return null;
|
|
@@ -80,15 +80,15 @@ const ae = w(() => import("./KvHeaderMobileMenu.js")), C = w(() => import("./KvH
|
|
|
80
80
|
width: d.isMobile ? "100%" : "auto"
|
|
81
81
|
};
|
|
82
82
|
}, H = () => {
|
|
83
|
-
o.value = p, m(t.value, C,
|
|
83
|
+
o.value = p, m(t.value, C, R());
|
|
84
84
|
}, z = (l, s) => {
|
|
85
85
|
let r = null;
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
});
|
|
86
|
+
I.value = !0, r && clearTimeout(r), o.value === L && (o.value = null), !o.value || o.value !== l ? (o.value = l, l === p ? H() : l === L && d.isMobile ? m(l, s, S) : m(l, s)) : (o.value = null, m()), r = setTimeout(() => {
|
|
87
|
+
I.value = !1;
|
|
88
|
+
}, 100);
|
|
89
89
|
}, O = ie(() => {
|
|
90
90
|
o.value === p && H();
|
|
91
|
-
},
|
|
91
|
+
}, 100), W = j(() => d.isMobile ? void 0 : "/lend-by-category");
|
|
92
92
|
return F(() => {
|
|
93
93
|
import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js"), import("./KvHeaderTakeActionMenu.js"), import("./KvHeaderAboutMenu.js"), window.addEventListener("resize", O);
|
|
94
94
|
}), q(() => {
|
|
@@ -106,15 +106,15 @@ const ae = w(() => import("./KvHeaderMobileMenu.js")), C = w(() => import("./KvH
|
|
|
106
106
|
lendButton: n,
|
|
107
107
|
aboutUsLink: B,
|
|
108
108
|
partnerWithUsLink: K,
|
|
109
|
-
borrowLink:
|
|
109
|
+
borrowLink: y,
|
|
110
110
|
supportKivaLink: f,
|
|
111
|
-
basketLink:
|
|
112
|
-
signInLink:
|
|
111
|
+
basketLink: A,
|
|
112
|
+
signInLink: T,
|
|
113
113
|
menuButton: u,
|
|
114
114
|
lendUrl: W,
|
|
115
115
|
handleOnHover: V,
|
|
116
116
|
handleTouchStart: z,
|
|
117
|
-
handleMouseOut:
|
|
117
|
+
handleMouseOut: P,
|
|
118
118
|
handleAvatarMenuPosition: H,
|
|
119
119
|
KvHeaderMobileMenu: ae,
|
|
120
120
|
KvHeaderMyKivaMenu: C,
|
|
@@ -126,9 +126,9 @@ const ae = w(() => import("./KvHeaderMobileMenu.js")), C = w(() => import("./KvH
|
|
|
126
126
|
}, ve = { class: "tw-h-full tw-flex tw-items-center tw-gap-0.5 md:tw-gap-1.5 lg:tw-gap-2.5" }, ce = ["href"], fe = {
|
|
127
127
|
key: 0,
|
|
128
128
|
class: "tw-bg-eco-green-1 tw-py-0.5 tw-px-1 tw-text-eco-green-4"
|
|
129
|
-
},
|
|
130
|
-
function
|
|
131
|
-
const
|
|
129
|
+
}, we = ["href"];
|
|
130
|
+
function Me(d, e, t, n, B, K) {
|
|
131
|
+
const y = k("kv-material-icon"), f = k("KvHeaderDropdownLink"), A = k("kv-icon-bag"), T = k("KvUserAvatar"), u = G("kv-track-event");
|
|
132
132
|
return a(), c("div", ve, [
|
|
133
133
|
v((a(), c("button", {
|
|
134
134
|
ref: "menuButton",
|
|
@@ -139,11 +139,12 @@ function we(d, e, t, n, B, K) {
|
|
|
139
139
|
onMouseout: e[1] || (e[1] = (o) => n.handleMouseOut("menuButton")),
|
|
140
140
|
onTouchstart: e[2] || (e[2] = (o) => n.handleTouchStart("menuButton", n.KvHeaderMobileMenu))
|
|
141
141
|
}, [
|
|
142
|
-
_(
|
|
142
|
+
_(y, { icon: n.mdiMenu }, null, 8, ["icon"])
|
|
143
143
|
], 34)), [
|
|
144
144
|
[u, t.openMenuItem === n.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
|
|
145
145
|
]),
|
|
146
146
|
v((a(), g(f, {
|
|
147
|
+
class: "tw-py-1",
|
|
147
148
|
"ref-name": "lendButton",
|
|
148
149
|
href: n.lendUrl,
|
|
149
150
|
"menu-component": n.KvLendMenu,
|
|
@@ -155,7 +156,7 @@ function we(d, e, t, n, B, K) {
|
|
|
155
156
|
onTouchstart: e[4] || (e[4] = (o) => n.handleTouchStart("lendButton", n.KvLendMenu))
|
|
156
157
|
}, {
|
|
157
158
|
default: x(() => e[10] || (e[10] = [
|
|
158
|
-
|
|
159
|
+
w(" Lend ")
|
|
159
160
|
])),
|
|
160
161
|
_: 1
|
|
161
162
|
}, 8, ["href", "menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
@@ -163,7 +164,7 @@ function we(d, e, t, n, B, K) {
|
|
|
163
164
|
]),
|
|
164
165
|
v((a(), g(f, {
|
|
165
166
|
"ref-name": "takeActionButton",
|
|
166
|
-
"base-class": "tw-hidden md:tw-inline-flex tw-py-
|
|
167
|
+
"base-class": "tw-hidden md:tw-inline-flex tw-py-1",
|
|
167
168
|
"menu-component": n.KvHeaderTakeActionMenu,
|
|
168
169
|
"open-menu-item": t.openMenuItem,
|
|
169
170
|
"dropdown-icon": n.mdiChevronDown,
|
|
@@ -172,7 +173,7 @@ function we(d, e, t, n, B, K) {
|
|
|
172
173
|
onMouseout: e[5] || (e[5] = (o) => n.handleMouseOut("takeActionButton"))
|
|
173
174
|
}, {
|
|
174
175
|
default: x(() => e[11] || (e[11] = [
|
|
175
|
-
|
|
176
|
+
w(" Take action ")
|
|
176
177
|
])),
|
|
177
178
|
_: 1
|
|
178
179
|
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
@@ -181,7 +182,7 @@ function we(d, e, t, n, B, K) {
|
|
|
181
182
|
v((a(), g(f, {
|
|
182
183
|
"ref-name": "aboutUsLink",
|
|
183
184
|
"data-testid": "header-about",
|
|
184
|
-
"base-class": "tw-hidden md:tw-inline-flex tw-py-
|
|
185
|
+
"base-class": "tw-hidden md:tw-inline-flex tw-py-1",
|
|
185
186
|
"menu-component": n.KvHeaderAboutMenu,
|
|
186
187
|
"open-menu-item": t.openMenuItem,
|
|
187
188
|
"dropdown-icon": n.mdiChevronDown,
|
|
@@ -190,7 +191,7 @@ function we(d, e, t, n, B, K) {
|
|
|
190
191
|
onMouseout: e[6] || (e[6] = (o) => n.handleMouseOut("aboutUsLink"))
|
|
191
192
|
}, {
|
|
192
193
|
default: x(() => e[12] || (e[12] = [
|
|
193
|
-
|
|
194
|
+
w(" About ")
|
|
194
195
|
])),
|
|
195
196
|
_: 1
|
|
196
197
|
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
@@ -203,7 +204,7 @@ function we(d, e, t, n, B, K) {
|
|
|
203
204
|
href: t.myDashboardUrl,
|
|
204
205
|
class: b(["header-link tw-hidden md:tw-block", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
205
206
|
}, e[13] || (e[13] = [
|
|
206
|
-
|
|
207
|
+
w(" My dashboard ")
|
|
207
208
|
]), 10, ce)), [
|
|
208
209
|
[u, ["TopNav", "click-Dashboard"]]
|
|
209
210
|
]) : h("", !0),
|
|
@@ -213,7 +214,7 @@ function we(d, e, t, n, B, K) {
|
|
|
213
214
|
class: b(["header-link tw-relative", { "tw-text-tertiary": !!t.openMenuItem }]),
|
|
214
215
|
"data-testid": "header-basket"
|
|
215
216
|
}, [
|
|
216
|
-
_(
|
|
217
|
+
_(A, {
|
|
217
218
|
class: "tw-w-3 tw-h-3 tw-pointer-events-none",
|
|
218
219
|
count: t.basketCount
|
|
219
220
|
}, null, 8, ["count"])
|
|
@@ -228,7 +229,7 @@ function we(d, e, t, n, B, K) {
|
|
|
228
229
|
onTouchstart: e[9] || (e[9] = (o) => n.handleTouchStart(n.AVATAR_MENU_ID))
|
|
229
230
|
}, [
|
|
230
231
|
t.loggedIn ? (a(), c("span", fe, Q(n.numeral(t.balance).format("$0")), 1)) : h("", !0),
|
|
231
|
-
t.loggedIn ? (a(), g(
|
|
232
|
+
t.loggedIn ? (a(), g(T, {
|
|
232
233
|
key: 1,
|
|
233
234
|
ref: "avatar",
|
|
234
235
|
"lender-name": t.lenderName,
|
|
@@ -242,13 +243,13 @@ function we(d, e, t, n, B, K) {
|
|
|
242
243
|
href: t.loginUrl,
|
|
243
244
|
class: b(["header-link", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
244
245
|
}, e[14] || (e[14] = [
|
|
245
|
-
|
|
246
|
-
]), 10,
|
|
246
|
+
w(" Sign in ")
|
|
247
|
+
]), 10, we)), [
|
|
247
248
|
[u, ["TopNav", "click-Sign-in"]]
|
|
248
249
|
])
|
|
249
250
|
]);
|
|
250
251
|
}
|
|
251
|
-
const Le = /* @__PURE__ */ re(se, [["render",
|
|
252
|
+
const Le = /* @__PURE__ */ re(se, [["render", Me], ["__scopeId", "data-v-479de318"]]);
|
|
252
253
|
export {
|
|
253
254
|
Le as default
|
|
254
255
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mobile-link[data-v-
|
|
1
|
+
.mobile-link[data-v-4faf4cb4]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-4faf4cb4]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { mdiClose as w } from "@mdi/js";
|
|
2
2
|
import b from "../KvAccordionItem.js";
|
|
3
3
|
import h from "../KvMaterialIcon.js";
|
|
4
|
-
import { resolveComponent as u, resolveDirective as
|
|
4
|
+
import { resolveComponent as u, resolveDirective as g, openBlock as t, createElementBlock as o, createBlock as _, createCommentVNode as y, createVNode as p, withCtx as a, createElementVNode as r, Fragment as N, renderList as x, withDirectives as n, toDisplayString as m, createTextVNode as s } from "vue";
|
|
5
5
|
import "./KvHeaderMobileMenu.css";
|
|
6
6
|
import I from "../../_virtual/_plugin-vue_export-helper.js";
|
|
7
7
|
const K = {
|
|
@@ -48,7 +48,7 @@ const K = {
|
|
|
48
48
|
},
|
|
49
49
|
{
|
|
50
50
|
title: "Buy a Kiva Card",
|
|
51
|
-
description: "
|
|
51
|
+
description: "Give the gift of lending to others",
|
|
52
52
|
url: "/portfolio/kiva-card",
|
|
53
53
|
trackEvent: "buy-a-kiva-card"
|
|
54
54
|
}
|
|
@@ -70,26 +70,27 @@ const K = {
|
|
|
70
70
|
}, H = {
|
|
71
71
|
href: "/about/leadership",
|
|
72
72
|
class: "mobile-link"
|
|
73
|
-
},
|
|
73
|
+
}, F = {
|
|
74
74
|
href: "/about/finances",
|
|
75
75
|
class: "mobile-link"
|
|
76
|
-
},
|
|
76
|
+
}, L = {
|
|
77
77
|
href: "/about/press-center",
|
|
78
78
|
class: "mobile-link"
|
|
79
|
-
},
|
|
79
|
+
}, P = {
|
|
80
80
|
href: "/about/due-diligence",
|
|
81
81
|
class: "mobile-link"
|
|
82
82
|
};
|
|
83
|
-
function
|
|
84
|
-
const f = u("KvMaterialIcon"), d = u("KvAccordionItem"), i =
|
|
83
|
+
function S(k, e, v, q, c, z) {
|
|
84
|
+
const f = u("KvMaterialIcon"), d = u("KvAccordionItem"), i = g("kv-track-event");
|
|
85
85
|
return t(), o("nav", T, [
|
|
86
|
-
v.isMobile ? (t(),
|
|
86
|
+
v.isMobile ? (t(), _(f, {
|
|
87
87
|
key: 0,
|
|
88
88
|
icon: c.mdiClose,
|
|
89
89
|
class: "tw-cursor-pointer",
|
|
90
90
|
onClick: e[0] || (e[0] = (l) => k.$emit("closing-menu"))
|
|
91
91
|
}, null, 8, ["icon"])) : y("", !0),
|
|
92
92
|
p(d, {
|
|
93
|
+
id: "accordion-take-action-menu",
|
|
93
94
|
open: "",
|
|
94
95
|
class: "tw-w-full tw-border-b-0"
|
|
95
96
|
}, {
|
|
@@ -113,7 +114,10 @@ function P(k, e, v, j, c, q) {
|
|
|
113
114
|
]),
|
|
114
115
|
_: 1
|
|
115
116
|
}),
|
|
116
|
-
p(d, {
|
|
117
|
+
p(d, {
|
|
118
|
+
id: "accordion-about-menu",
|
|
119
|
+
class: "tw-w-full"
|
|
120
|
+
}, {
|
|
117
121
|
header: a(() => e[2] || (e[2] = [
|
|
118
122
|
r("h3", null, "About", -1)
|
|
119
123
|
])),
|
|
@@ -144,17 +148,17 @@ function P(k, e, v, j, c, q) {
|
|
|
144
148
|
]))), [
|
|
145
149
|
[i, ["TopNav", "click-menu-leadership"]]
|
|
146
150
|
]),
|
|
147
|
-
n((t(), o("a",
|
|
151
|
+
n((t(), o("a", F, e[8] || (e[8] = [
|
|
148
152
|
s("Finances")
|
|
149
153
|
]))), [
|
|
150
154
|
[i, ["TopNav", "click-menu-finances"]]
|
|
151
155
|
]),
|
|
152
|
-
n((t(), o("a",
|
|
156
|
+
n((t(), o("a", L, e[9] || (e[9] = [
|
|
153
157
|
s("Press")
|
|
154
158
|
]))), [
|
|
155
159
|
[i, ["TopNav", "click-menu-press"]]
|
|
156
160
|
]),
|
|
157
|
-
n((t(), o("a",
|
|
161
|
+
n((t(), o("a", P, e[10] || (e[10] = [
|
|
158
162
|
s("Due diligence")
|
|
159
163
|
]))), [
|
|
160
164
|
[i, ["TopNav", "click-menu-due-diligence"]]
|
|
@@ -165,7 +169,7 @@ function P(k, e, v, j, c, q) {
|
|
|
165
169
|
})
|
|
166
170
|
]);
|
|
167
171
|
}
|
|
168
|
-
const Q = /* @__PURE__ */ I(K, [["render",
|
|
172
|
+
const Q = /* @__PURE__ */ I(K, [["render", S], ["__scopeId", "data-v-4faf4cb4"]]);
|
|
169
173
|
export {
|
|
170
174
|
Q as default
|
|
171
175
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import i from "./KvHeaderMenuLink.js";
|
|
2
|
-
import { resolveComponent as
|
|
2
|
+
import { resolveComponent as c, resolveDirective as u, openBlock as o, createElementBlock as p, withDirectives as a, createBlock as r, withCtx as s, createElementVNode as e } from "vue";
|
|
3
3
|
import d from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const m = {
|
|
5
5
|
components: {
|
|
@@ -7,10 +7,10 @@ const m = {
|
|
|
7
7
|
}
|
|
8
8
|
}, v = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium tw-px-2.5" };
|
|
9
9
|
function f(k, t, w, x, _, h) {
|
|
10
|
-
const n =
|
|
10
|
+
const n = c("kv-header-menu-link"), l = u("kv-track-event");
|
|
11
11
|
return o(), p("nav", v, [
|
|
12
|
-
a((o(),
|
|
13
|
-
default:
|
|
12
|
+
a((o(), r(n, { href: "/lend-by-category" }, {
|
|
13
|
+
default: s(() => t[0] || (t[0] = [
|
|
14
14
|
e("div", null, [
|
|
15
15
|
e("p", null, "Choose someone to help"),
|
|
16
16
|
e("p", { class: "tw-text-small tw-text-secondary" }, " Make a direct impact for someone in need ")
|
|
@@ -20,8 +20,8 @@ function f(k, t, w, x, _, h) {
|
|
|
20
20
|
})), [
|
|
21
21
|
[l, ["TopNav", "click-menu-Choose-someone-to-help"]]
|
|
22
22
|
]),
|
|
23
|
-
a((o(),
|
|
24
|
-
default:
|
|
23
|
+
a((o(), r(n, { href: "/donate/supportus" }, {
|
|
24
|
+
default: s(() => t[1] || (t[1] = [
|
|
25
25
|
e("div", null, [
|
|
26
26
|
e("p", null, "Donate to Kiva"),
|
|
27
27
|
e("p", { class: "tw-text-small tw-text-secondary" }, " Help us change lives and tackle inequality ")
|
|
@@ -31,22 +31,22 @@ function f(k, t, w, x, _, h) {
|
|
|
31
31
|
})), [
|
|
32
32
|
[l, ["TopNav", "click-menu-Donate-to-Kiva"]]
|
|
33
33
|
]),
|
|
34
|
-
a((o(),
|
|
35
|
-
default:
|
|
34
|
+
a((o(), r(n, { href: "/about/partner-with-us" }, {
|
|
35
|
+
default: s(() => t[2] || (t[2] = [
|
|
36
36
|
e("div", null, [
|
|
37
37
|
e("p", null, "Partner with us"),
|
|
38
|
-
e("p", { class: "tw-text-small tw-text-secondary" }, " Drive global impact aligned
|
|
38
|
+
e("p", { class: "tw-text-small tw-text-secondary" }, " Drive global impact aligned with your organization’s goals ")
|
|
39
39
|
], -1)
|
|
40
40
|
])),
|
|
41
41
|
_: 1
|
|
42
42
|
})), [
|
|
43
43
|
[l, ["TopNav", "click-menu-Partner-with-us"]]
|
|
44
44
|
]),
|
|
45
|
-
a((o(),
|
|
46
|
-
default:
|
|
45
|
+
a((o(), r(n, { href: "/gifts/kiva-cards" }, {
|
|
46
|
+
default: s(() => t[3] || (t[3] = [
|
|
47
47
|
e("div", null, [
|
|
48
48
|
e("p", null, "Buy a Kiva Card"),
|
|
49
|
-
e("p", { class: "tw-text-small tw-text-secondary" }, "
|
|
49
|
+
e("p", { class: "tw-text-small tw-text-secondary" }, " Give the gift of lending to others ")
|
|
50
50
|
], -1)
|
|
51
51
|
])),
|
|
52
52
|
_: 1
|
|
@@ -55,7 +55,7 @@ function f(k, t, w, x, _, h) {
|
|
|
55
55
|
])
|
|
56
56
|
]);
|
|
57
57
|
}
|
|
58
|
-
const
|
|
58
|
+
const C = /* @__PURE__ */ d(m, [["render", f]]);
|
|
59
59
|
export {
|
|
60
|
-
|
|
60
|
+
C as default
|
|
61
61
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { gql as f } from "@apollo/client/core";
|
|
2
|
-
import { toRefs as q, ref as i, computed as
|
|
2
|
+
import { toRefs as q, ref as i, computed as w, onMounted as S, resolveComponent as h, openBlock as x, createBlock as A, withCtx as B, createVNode as k } from "vue";
|
|
3
3
|
import F from "./KvLendListMenu.js";
|
|
4
4
|
import N from "./KvLendMegaMenu.js";
|
|
5
5
|
import { indexIn as O } from "../../../utils/comparators.js";
|
|
@@ -23,10 +23,10 @@ const E = {
|
|
|
23
23
|
}
|
|
24
24
|
},
|
|
25
25
|
emits: ["load-lend-menu-data"],
|
|
26
|
-
setup(
|
|
26
|
+
setup(p, { emit: y }) {
|
|
27
27
|
const {
|
|
28
28
|
userId: s
|
|
29
|
-
} = q(
|
|
29
|
+
} = q(p), e = i([]), g = i([]), m = i(0), c = i([]), v = [
|
|
30
30
|
"North America",
|
|
31
31
|
"Central America",
|
|
32
32
|
"South America",
|
|
@@ -35,7 +35,7 @@ const E = {
|
|
|
35
35
|
"Middle East",
|
|
36
36
|
"Asia",
|
|
37
37
|
"Oceania"
|
|
38
|
-
],
|
|
38
|
+
], u = i(!0), C = i(!0), M = async (a) => {
|
|
39
39
|
var r, t, o, d;
|
|
40
40
|
if (a.watchQuery({
|
|
41
41
|
query: f`query countryFacets {
|
|
@@ -54,7 +54,7 @@ const E = {
|
|
|
54
54
|
}).subscribe({
|
|
55
55
|
next: ({ data: n }) => {
|
|
56
56
|
var l;
|
|
57
|
-
g.value = ((l = n == null ? void 0 : n.lend) == null ? void 0 : l.countryFacets) ?? [],
|
|
57
|
+
g.value = ((l = n == null ? void 0 : n.lend) == null ? void 0 : l.countryFacets) ?? [], u.value = !1;
|
|
58
58
|
}
|
|
59
59
|
}), a.watchQuery({
|
|
60
60
|
query: f`
|
|
@@ -102,9 +102,9 @@ const E = {
|
|
|
102
102
|
},
|
|
103
103
|
fetchPolicy: "network-only"
|
|
104
104
|
});
|
|
105
|
-
m.value = ((t = (r = n == null ? void 0 : n.lend) == null ? void 0 : r.loans) == null ? void 0 : t.totalCount) ?? 0,
|
|
105
|
+
m.value = ((t = (r = n == null ? void 0 : n.lend) == null ? void 0 : r.loans) == null ? void 0 : t.totalCount) ?? 0, c.value = ((d = (o = n == null ? void 0 : n.my) == null ? void 0 : o.savedSearches) == null ? void 0 : d.values) ?? [];
|
|
106
106
|
}
|
|
107
|
-
}, b =
|
|
107
|
+
}, b = w(() => {
|
|
108
108
|
const a = g.value.map((o) => ({
|
|
109
109
|
name: o.country.name,
|
|
110
110
|
region: o.country.region,
|
|
@@ -117,7 +117,7 @@ const E = {
|
|
|
117
117
|
countries: d.sort(L("name"))
|
|
118
118
|
});
|
|
119
119
|
return t.sort(O(v, "name"));
|
|
120
|
-
}), I =
|
|
120
|
+
}), I = w(() => {
|
|
121
121
|
var r;
|
|
122
122
|
return ((r = e.value) == null ? void 0 : r.map((t) => {
|
|
123
123
|
const o = JSON.parse(JSON.stringify(t));
|
|
@@ -125,23 +125,23 @@ const E = {
|
|
|
125
125
|
})).sort(L("name"));
|
|
126
126
|
});
|
|
127
127
|
return S(() => {
|
|
128
|
-
|
|
128
|
+
y("load-lend-menu-data");
|
|
129
129
|
}), {
|
|
130
130
|
onLoad: M,
|
|
131
131
|
regions: b,
|
|
132
132
|
computedCategories: I,
|
|
133
133
|
isChannelsLoading: C,
|
|
134
|
-
isRegionsLoading:
|
|
135
|
-
savedSearches:
|
|
134
|
+
isRegionsLoading: u,
|
|
135
|
+
savedSearches: c,
|
|
136
136
|
favoritesCount: m
|
|
137
137
|
};
|
|
138
138
|
}
|
|
139
139
|
};
|
|
140
|
-
function G(
|
|
141
|
-
const
|
|
142
|
-
return x(), A(
|
|
140
|
+
function G(p, y, s, e, g, m) {
|
|
141
|
+
const c = h("kv-lend-list-menu"), v = h("kv-lend-mega-menu"), u = h("kv-page-container");
|
|
142
|
+
return x(), A(u, { class: "tw-pt-2 lg:tw-pt-0" }, {
|
|
143
143
|
default: B(() => [
|
|
144
|
-
|
|
144
|
+
k(c, {
|
|
145
145
|
class: "lg:tw-hidden",
|
|
146
146
|
categories: e.computedCategories,
|
|
147
147
|
regions: e.regions,
|
|
@@ -152,7 +152,7 @@ function G(y, p, s, e, g, m) {
|
|
|
152
152
|
"is-channels-loading": e.isChannelsLoading,
|
|
153
153
|
"show-m-g-upsell-link": s.showMGUpsellLink
|
|
154
154
|
}, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link"]),
|
|
155
|
-
|
|
155
|
+
k(v, {
|
|
156
156
|
class: "tw-hidden lg:tw-block",
|
|
157
157
|
categories: e.computedCategories,
|
|
158
158
|
regions: e.regions,
|
package/dist/vue/KvWwwHeader.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-fade-enter-active[data-v-
|
|
1
|
+
.header-fade-enter-active[data-v-0892fc4e]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-0892fc4e]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-0892fc4e],.header-fade-leave-to[data-v-0892fc4e]{opacity:0}.header-fade-leave[data-v-0892fc4e],.header-fade-enter-to[data-v-0892fc4e]{opacity:1}.bg-opacity-50[data-v-0892fc4e]{background-color:rgba(var(--bg-action-highlight),.5)}
|
package/dist/vue/KvWwwHeader.js
CHANGED
|
@@ -72,7 +72,7 @@ const V = "3.75rem", O = {
|
|
|
72
72
|
position: "absolute"
|
|
73
73
|
})) : a.value && (u = setTimeout(() => {
|
|
74
74
|
a.value = !1, r.value = null;
|
|
75
|
-
},
|
|
75
|
+
}, 100));
|
|
76
76
|
}, v = (p) => {
|
|
77
77
|
var t;
|
|
78
78
|
(t = m.value) == null || t.onLoad(p);
|
|
@@ -111,7 +111,7 @@ function j(C, n, o, e, a, r) {
|
|
|
111
111
|
}, {
|
|
112
112
|
default: f(() => [
|
|
113
113
|
b("nav", {
|
|
114
|
-
class: "tw-font-medium tw-relative
|
|
114
|
+
class: "tw-font-medium tw-relative",
|
|
115
115
|
style: k({ height: e.HEADER_HEIGHT })
|
|
116
116
|
}, [
|
|
117
117
|
s(d, null, {
|
|
@@ -180,7 +180,7 @@ function j(C, n, o, e, a, r) {
|
|
|
180
180
|
_: 1
|
|
181
181
|
});
|
|
182
182
|
}
|
|
183
|
-
const oe = /* @__PURE__ */ P(O, [["render", j], ["__scopeId", "data-v-
|
|
183
|
+
const oe = /* @__PURE__ */ P(O, [["render", j], ["__scopeId", "data-v-0892fc4e"]]);
|
|
184
184
|
export {
|
|
185
185
|
oe as default
|
|
186
186
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.52.
|
|
3
|
+
"version": "6.52.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": "5a200906413aaf12196b69e2e92a76a12b491118"
|
|
118
118
|
}
|