@kiva/kv-components 6.52.9 → 6.52.10
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/LendMenu/KvLendListMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +55 -51
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +63 -59
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +54 -48
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +43 -38
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
.lend-link[data-v-
|
|
1
|
+
.lend-link[data-v-23bfaeea]{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-23bfaeea]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
import { mdiArrowRight as
|
|
2
|
-
import { ref as L, computed as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
1
|
+
import { mdiArrowRight as S } from "@mdi/js";
|
|
2
|
+
import { ref as L, computed as I, resolveComponent as u, resolveDirective as B, openBlock as t, createElementBlock as n, withDirectives as _, createElementVNode as o, createTextVNode as d, createVNode as r, createCommentVNode as C, withCtx as a, createBlock as N, Fragment as b, renderList as g, toDisplayString as K } from "vue";
|
|
3
|
+
import U from "../../KvAccordionItem.js";
|
|
4
|
+
import V from "../../KvLoadingPlaceholder.js";
|
|
5
|
+
import D from "./KvLendMenuCountryList.js";
|
|
6
|
+
import E from "./KvLendMenuSearchList.js";
|
|
7
|
+
import F from "../../KvTab.js";
|
|
8
|
+
import G from "../../KvTabPanel.js";
|
|
9
|
+
import P from "../../KvTabs.js";
|
|
10
10
|
import j from "../../../utils/paramCase.js";
|
|
11
11
|
import q from "../../KvMaterialIcon.js";
|
|
12
12
|
import "./KvLendListMenu.css";
|
|
13
13
|
import z from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
14
14
|
const H = {
|
|
15
15
|
components: {
|
|
16
|
-
KvAccordionItem:
|
|
17
|
-
KvTab:
|
|
18
|
-
KvTabPanel:
|
|
19
|
-
KvTabs:
|
|
20
|
-
KvLendMenuCountryList:
|
|
21
|
-
KvLendMenuSearchList:
|
|
22
|
-
KvLoadingPlaceholder:
|
|
16
|
+
KvAccordionItem: U,
|
|
17
|
+
KvTab: F,
|
|
18
|
+
KvTabPanel: G,
|
|
19
|
+
KvTabs: P,
|
|
20
|
+
KvLendMenuCountryList: D,
|
|
21
|
+
KvLendMenuSearchList: E,
|
|
22
|
+
KvLoadingPlaceholder: V,
|
|
23
23
|
KvMaterialIcon: q
|
|
24
24
|
},
|
|
25
25
|
props: {
|
|
@@ -54,19 +54,23 @@ const H = {
|
|
|
54
54
|
showMGUpsellLink: {
|
|
55
55
|
type: Boolean,
|
|
56
56
|
default: !1
|
|
57
|
+
},
|
|
58
|
+
countriesNotLentToUrl: {
|
|
59
|
+
type: String,
|
|
60
|
+
default: "/lend/countries-not-lent"
|
|
57
61
|
}
|
|
58
62
|
},
|
|
59
|
-
setup(
|
|
60
|
-
const e = L(null),
|
|
63
|
+
setup(T) {
|
|
64
|
+
const e = L(null), l = L([]), k = L(null), x = I(() => T.searches.length > 0);
|
|
61
65
|
return {
|
|
62
|
-
mdiArrowRight:
|
|
63
|
-
hasSearches:
|
|
66
|
+
mdiArrowRight: S,
|
|
67
|
+
hasSearches: x,
|
|
64
68
|
navLendCategories: e,
|
|
65
|
-
regionAccordions:
|
|
69
|
+
regionAccordions: l,
|
|
66
70
|
searchesLink: k,
|
|
67
71
|
onClose: () => {
|
|
68
72
|
var h, c, y, m, p, f, w;
|
|
69
|
-
(y = (c = (h = e.value) == null ? void 0 : h.tabContext) == null ? void 0 : c.setTab) == null || y.call(c, 0), (p = (m =
|
|
73
|
+
(y = (c = (h = e.value) == null ? void 0 : h.tabContext) == null ? void 0 : c.setTab) == null || y.call(c, 0), (p = (m = l.value) == null ? void 0 : m.forEach) == null || p.call(m, (v) => {
|
|
70
74
|
var i;
|
|
71
75
|
(i = v == null ? void 0 : v.collapse) == null || i.call(v);
|
|
72
76
|
}), (w = (f = k.value) == null ? void 0 : f.collapse) == null || w.call(f);
|
|
@@ -89,14 +93,11 @@ const H = {
|
|
|
89
93
|
}, ee = { class: "tw-flex" }, te = { class: "tw-text-h4" }, ne = { class: "tw-font-medium" }, oe = ["href"], le = {
|
|
90
94
|
key: 1,
|
|
91
95
|
class: "tw-block tw-py-1 tw-text-tertiary"
|
|
92
|
-
}, se = { key: 0 }, ae = { key: 1 }, re =
|
|
93
|
-
|
|
94
|
-
class: "lend-link"
|
|
95
|
-
};
|
|
96
|
-
function ie(x, e, s, k, T, M) {
|
|
96
|
+
}, se = { key: 0 }, ae = { key: 1 }, re = ["href"];
|
|
97
|
+
function ie(T, e, l, k, x, M) {
|
|
97
98
|
const h = u("kv-material-icon"), c = u("kv-tab"), y = u("kv-loading-placeholder"), m = u("kv-tab-panel"), p = u("kv-accordion-item"), f = u("kv-lend-menu-country-list"), w = u("kv-lend-menu-search-list"), v = u("kv-tabs"), i = B("kv-track-event");
|
|
98
99
|
return t(), n("div", J, [
|
|
99
|
-
|
|
100
|
+
l.showMGUpsellLink ? _((t(), n("a", O, [
|
|
100
101
|
o("span", Q, [
|
|
101
102
|
e[0] || (e[0] = d(" Lend monthly ")),
|
|
102
103
|
r(h, {
|
|
@@ -121,7 +122,7 @@ function ie(x, e, s, k, T, M) {
|
|
|
121
122
|
])),
|
|
122
123
|
_: 1
|
|
123
124
|
}),
|
|
124
|
-
|
|
125
|
+
l.userId ? (t(), N(c, {
|
|
125
126
|
key: 0,
|
|
126
127
|
"for-panel": "nav-my-kiva"
|
|
127
128
|
}, {
|
|
@@ -135,8 +136,8 @@ function ie(x, e, s, k, T, M) {
|
|
|
135
136
|
r(m, { id: "nav-lend-categories" }, {
|
|
136
137
|
default: a(() => [
|
|
137
138
|
o("ul", R, [
|
|
138
|
-
|
|
139
|
-
key:
|
|
139
|
+
l.isChannelsLoading ? (t(), n(b, { key: 0 }, g(14, (s) => o("li", {
|
|
140
|
+
key: s,
|
|
140
141
|
style: { width: "11rem" },
|
|
141
142
|
class: "tw-py-1 tw-flex"
|
|
142
143
|
}, [
|
|
@@ -145,14 +146,14 @@ function ie(x, e, s, k, T, M) {
|
|
|
145
146
|
style: { height: "1rem" }
|
|
146
147
|
}),
|
|
147
148
|
e[4] || (e[4] = o("span", { class: "tw-inline-block" }, " ", -1))
|
|
148
|
-
])), 64)) : (t(!0), n(b, { key: 1 }, g(
|
|
149
|
+
])), 64)) : (t(!0), n(b, { key: 1 }, g(l.categories, (s, A) => (t(), n("li", { key: A }, [
|
|
149
150
|
_((t(), n("a", {
|
|
150
|
-
href:
|
|
151
|
+
href: s.url,
|
|
151
152
|
class: "lend-link"
|
|
152
153
|
}, [
|
|
153
|
-
d(K(
|
|
154
|
+
d(K(s.name), 1)
|
|
154
155
|
], 8, W)), [
|
|
155
|
-
[i, ["TopNav", "click-Lend-Category",
|
|
156
|
+
[i, ["TopNav", "click-Lend-Category", s.name, A + 1]]
|
|
156
157
|
])
|
|
157
158
|
]))), 128)),
|
|
158
159
|
o("li", X, [
|
|
@@ -182,9 +183,9 @@ function ie(x, e, s, k, T, M) {
|
|
|
182
183
|
}),
|
|
183
184
|
r(m, { id: "nav-lend-regions" }, {
|
|
184
185
|
default: a(() => [
|
|
185
|
-
|
|
186
|
-
id: `placeholder-${
|
|
187
|
-
key:
|
|
186
|
+
l.isRegionsLoading ? (t(), n(b, { key: 0 }, g(8, (s) => r(p, {
|
|
187
|
+
id: `placeholder-${s}-panel`,
|
|
188
|
+
key: s,
|
|
188
189
|
disabled: !0
|
|
189
190
|
}, {
|
|
190
191
|
header: a(() => [
|
|
@@ -197,24 +198,24 @@ function ie(x, e, s, k, T, M) {
|
|
|
197
198
|
])
|
|
198
199
|
]),
|
|
199
200
|
_: 2
|
|
200
|
-
}, 1032, ["id"])), 64)) : (t(!0), n(b, { key: 1 }, g(
|
|
201
|
-
id: `lend-menu-${k.paramCase(
|
|
202
|
-
key:
|
|
201
|
+
}, 1032, ["id"])), 64)) : (t(!0), n(b, { key: 1 }, g(l.regions, (s) => (t(), N(p, {
|
|
202
|
+
id: `lend-menu-${k.paramCase(s.name)}-panel`,
|
|
203
|
+
key: s.name,
|
|
203
204
|
ref_for: !0,
|
|
204
205
|
ref: "regionAccordions"
|
|
205
206
|
}, {
|
|
206
207
|
header: a(() => [
|
|
207
208
|
o("h3", te, [
|
|
208
209
|
_((t(), n("span", null, [
|
|
209
|
-
d(K(
|
|
210
|
+
d(K(s.name), 1)
|
|
210
211
|
])), [
|
|
211
|
-
[i, ["TopNav", "click-Lend-Region",
|
|
212
|
+
[i, ["TopNav", "click-Lend-Region", s.name]]
|
|
212
213
|
])
|
|
213
214
|
])
|
|
214
215
|
]),
|
|
215
216
|
default: a(() => [
|
|
216
217
|
r(f, {
|
|
217
|
-
countries:
|
|
218
|
+
countries: s.countries
|
|
218
219
|
}, null, 8, ["countries"])
|
|
219
220
|
]),
|
|
220
221
|
_: 2
|
|
@@ -222,16 +223,16 @@ function ie(x, e, s, k, T, M) {
|
|
|
222
223
|
]),
|
|
223
224
|
_: 1
|
|
224
225
|
}),
|
|
225
|
-
|
|
226
|
+
l.userId ? (t(), N(m, {
|
|
226
227
|
key: 0,
|
|
227
228
|
id: "nav-my-kiva"
|
|
228
229
|
}, {
|
|
229
230
|
default: a(() => [
|
|
230
231
|
o("ul", ne, [
|
|
231
232
|
o("li", null, [
|
|
232
|
-
|
|
233
|
+
l.favorites > 0 ? _((t(), n("a", {
|
|
233
234
|
key: 0,
|
|
234
|
-
href: `/lend?lenderFavorite=${
|
|
235
|
+
href: `/lend?lenderFavorite=${l.userId}`,
|
|
235
236
|
class: "lend-link"
|
|
236
237
|
}, e[9] || (e[9] = [
|
|
237
238
|
d(" Saved loans ")
|
|
@@ -248,7 +249,7 @@ function ie(x, e, s, k, T, M) {
|
|
|
248
249
|
o("p", { class: "tw-font-medium" }, " Saved searches ", -1)
|
|
249
250
|
])),
|
|
250
251
|
default: a(() => [
|
|
251
|
-
r(w, { searches:
|
|
252
|
+
r(w, { searches: l.searches }, null, 8, ["searches"])
|
|
252
253
|
]),
|
|
253
254
|
_: 1
|
|
254
255
|
}, 512)
|
|
@@ -256,9 +257,12 @@ function ie(x, e, s, k, T, M) {
|
|
|
256
257
|
o("span", { class: "tw-block tw-py-1 tw-text-tertiary" }, "Saved searches", -1)
|
|
257
258
|
]))),
|
|
258
259
|
o("li", null, [
|
|
259
|
-
_((t(), n("a",
|
|
260
|
+
_((t(), n("a", {
|
|
261
|
+
href: l.countriesNotLentToUrl,
|
|
262
|
+
class: "lend-link"
|
|
263
|
+
}, e[12] || (e[12] = [
|
|
260
264
|
d(" Countries I haven't lent to ")
|
|
261
|
-
]))), [
|
|
265
|
+
]), 8, re)), [
|
|
262
266
|
[i, ["TopNav", "click-Lend-Countries_Not_Lent"]]
|
|
263
267
|
])
|
|
264
268
|
])
|
|
@@ -271,7 +275,7 @@ function ie(x, e, s, k, T, M) {
|
|
|
271
275
|
}, 512)
|
|
272
276
|
]);
|
|
273
277
|
}
|
|
274
|
-
const ge = /* @__PURE__ */ z(H, [["render", ie], ["__scopeId", "data-v-
|
|
278
|
+
const ge = /* @__PURE__ */ z(H, [["render", ie], ["__scopeId", "data-v-23bfaeea"]]);
|
|
275
279
|
export {
|
|
276
280
|
ge as default
|
|
277
281
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.menu-heading[data-v-
|
|
1
|
+
.menu-heading[data-v-0c9de865]{font-weight:300;font-size:1rem;letter-spacing:0em;line-height:1.5}@media (min-width: 64rem){.menu-heading[data-v-0c9de865]{font-size:1.0625rem;letter-spacing:0em}}.menu-heading[data-v-0c9de865]{font-weight:400}.region-list[data-v-0c9de865],.search-list[data-v-0c9de865]{-moz-column-fill:auto;column-fill:auto;-moz-columns:3;columns:3;gap:2rem}.mega-menu-link[data-v-0c9de865]{display:inline-block;padding-top:.5rem;padding-bottom:.5rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mega-menu-link[data-v-0c9de865]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}.link-item[data-v-0c9de865]{width:11rem;text-decoration-line:none}.link-item[data-v-0c9de865]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { mdiArrowRight as N, mdiChevronLeft as T } from "@mdi/js";
|
|
2
|
-
import { ref as C, computed as y, resolveComponent as u, resolveDirective as M, openBlock as n, createElementBlock as
|
|
2
|
+
import { ref as C, computed as y, resolveComponent as u, resolveDirective as M, openBlock as n, createElementBlock as o, createElementVNode as t, normalizeStyle as R, withDirectives as c, createTextVNode as d, createVNode as m, createCommentVNode as x, withCtx as A, Fragment as w, renderList as v, toDisplayString as S, normalizeClass as K } from "vue";
|
|
3
3
|
import O from "../../KvLoadingPlaceholder.js";
|
|
4
4
|
import B from "../../KvGrid.js";
|
|
5
5
|
import I from "../../KvMaterialIcon.js";
|
|
6
6
|
import G from "./KvLendMenuCountryList.js";
|
|
7
|
-
import
|
|
7
|
+
import U from "./KvLendMenuSearchList.js";
|
|
8
8
|
import "./KvLendMegaMenu.css";
|
|
9
|
-
import
|
|
10
|
-
const
|
|
9
|
+
import V from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
10
|
+
const D = {
|
|
11
11
|
components: {
|
|
12
12
|
KvGrid: B,
|
|
13
13
|
KvLendMenuCountryList: G,
|
|
14
|
-
KvLendMenuSearchList:
|
|
14
|
+
KvLendMenuSearchList: U,
|
|
15
15
|
KvLoadingPlaceholder: O,
|
|
16
16
|
KvMaterialIcon: I
|
|
17
17
|
},
|
|
@@ -47,27 +47,31 @@ const F = {
|
|
|
47
47
|
showMGUpsellLink: {
|
|
48
48
|
type: Boolean,
|
|
49
49
|
default: !1
|
|
50
|
+
},
|
|
51
|
+
countriesNotLentToUrl: {
|
|
52
|
+
type: String,
|
|
53
|
+
default: "/lend/countries-not-lent"
|
|
50
54
|
}
|
|
51
55
|
},
|
|
52
|
-
setup(
|
|
53
|
-
const e = C(null), i = C(""), l = y(() => i.value !== ""),
|
|
56
|
+
setup(f) {
|
|
57
|
+
const e = C(null), i = C(""), l = y(() => i.value !== ""), p = (r) => i.value === r, L = (r) => {
|
|
54
58
|
i.value = r;
|
|
55
59
|
}, h = y(() => {
|
|
56
60
|
var a;
|
|
57
61
|
const r = { width: "150%" };
|
|
58
62
|
if (l.value) {
|
|
59
|
-
const
|
|
60
|
-
r.transform = `translateX(${
|
|
63
|
+
const s = ((a = e.value) == null ? void 0 : a.clientWidth) ?? 0;
|
|
64
|
+
r.transform = `translateX(${s * -1}px)`;
|
|
61
65
|
}
|
|
62
66
|
return r;
|
|
63
|
-
}), k = y(() =>
|
|
67
|
+
}), k = y(() => f.regions.filter((r) => p(r.name))), _ = y(() => f.searches.length > 0);
|
|
64
68
|
return {
|
|
65
69
|
mdiArrowRight: N,
|
|
66
70
|
mdiChevronLeft: T,
|
|
67
71
|
categoriesSection: e,
|
|
68
72
|
openedSection: i,
|
|
69
73
|
sectionOpen: l,
|
|
70
|
-
isOpenSection:
|
|
74
|
+
isOpenSection: p,
|
|
71
75
|
openSection: L,
|
|
72
76
|
onClose: () => {
|
|
73
77
|
i.value = "";
|
|
@@ -78,10 +82,10 @@ const F = {
|
|
|
78
82
|
savedSearchesTitle: "Saved searches"
|
|
79
83
|
};
|
|
80
84
|
}
|
|
81
|
-
},
|
|
85
|
+
}, F = { class: "lend-mega-menu tw-overflow-hidden tw-pb-3 lg:tw-pt-3" }, z = {
|
|
82
86
|
key: 0,
|
|
83
87
|
href: "/monthlygood"
|
|
84
|
-
},
|
|
88
|
+
}, E = { class: "tw-inline-flex tw-items-center tw-py-1 tw-mb-2 tw-gap-0.5 tw-font-medium tw-text-action" }, W = {
|
|
85
89
|
ref: "categoriesSection",
|
|
86
90
|
class: "tw-col-span-7"
|
|
87
91
|
}, P = { class: "tw-flex tw-gap-4 tw-whitespace-nowrap" }, X = { class: "tw-columns-2 tw-gap-4 tw-font-medium" }, j = ["href"], q = { class: "tw-font-medium" }, H = { class: "link-item" }, J = {
|
|
@@ -93,25 +97,22 @@ const F = {
|
|
|
93
97
|
}, Z = { class: "link-item" }, $ = {
|
|
94
98
|
class: "mega-menu-link",
|
|
95
99
|
href: "/lend"
|
|
96
|
-
}, ee = { key: 0 }, te = { class: "tw-font-medium" }, ne = ["href"],
|
|
100
|
+
}, ee = { key: 0 }, te = { class: "tw-font-medium" }, ne = ["href"], oe = {
|
|
97
101
|
key: 1,
|
|
98
102
|
class: "tw-text-secondary tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
|
|
99
|
-
},
|
|
103
|
+
}, se = ["aria-pressed"], le = {
|
|
100
104
|
key: 1,
|
|
101
105
|
class: "tw-text-secondary tw-py-1 tw-inline-block"
|
|
102
|
-
}, ie = {
|
|
103
|
-
|
|
104
|
-
class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
|
|
105
|
-
}, ae = { class: "tw-col-span-2" }, re = { class: "tw-col-span-8 tw-flex tw-flex-col" }, ce = { class: "tw-flex tw-whitespace-nowrap tw-h-full" }, de = { class: "tw-font-medium" }, me = ["aria-pressed", "onClick"];
|
|
106
|
-
function we(p, e, i, l, f, L) {
|
|
106
|
+
}, ie = ["href"], ae = { class: "tw-col-span-2" }, re = { class: "tw-col-span-8 tw-flex tw-flex-col" }, ce = { class: "tw-flex tw-whitespace-nowrap tw-h-full" }, de = { class: "tw-font-medium" }, me = ["aria-pressed", "onClick"];
|
|
107
|
+
function we(f, e, i, l, p, L) {
|
|
107
108
|
const h = u("kv-material-icon"), k = u("kv-loading-placeholder"), _ = u("kv-lend-menu-search-list"), b = u("kv-lend-menu-country-list"), r = u("kv-grid"), a = M("kv-track-event");
|
|
108
|
-
return n(),
|
|
109
|
+
return n(), o("div", F, [
|
|
109
110
|
t("div", {
|
|
110
111
|
style: R(l.computedStyle),
|
|
111
112
|
class: "tw-transition tw-duration-1000 tw-ease-in-out"
|
|
112
113
|
}, [
|
|
113
|
-
i.showMGUpsellLink ? c((n(),
|
|
114
|
-
t("span",
|
|
114
|
+
i.showMGUpsellLink ? c((n(), o("a", z, [
|
|
115
|
+
t("span", E, [
|
|
115
116
|
e[2] || (e[2] = d(" Lend monthly ")),
|
|
116
117
|
m(h, {
|
|
117
118
|
icon: l.mdiArrowRight,
|
|
@@ -127,8 +128,8 @@ function we(p, e, i, l, f, L) {
|
|
|
127
128
|
e[11] || (e[11] = t("h2", { class: "menu-heading tw-mb-2" }, " Categories ", -1)),
|
|
128
129
|
t("div", P, [
|
|
129
130
|
t("ul", X, [
|
|
130
|
-
i.isChannelsLoading ? (n(),
|
|
131
|
-
key:
|
|
131
|
+
i.isChannelsLoading ? (n(), o(w, { key: 0 }, v(14, (s) => t("li", {
|
|
132
|
+
key: s,
|
|
132
133
|
class: "link-item"
|
|
133
134
|
}, [
|
|
134
135
|
m(k, {
|
|
@@ -136,50 +137,50 @@ function we(p, e, i, l, f, L) {
|
|
|
136
137
|
style: { height: "1.25rem" }
|
|
137
138
|
}),
|
|
138
139
|
e[3] || (e[3] = t("span", { class: "tw-py-1 tw-inline-block" }, " ", -1))
|
|
139
|
-
])), 64)) : (n(!0),
|
|
140
|
+
])), 64)) : (n(!0), o(w, { key: 1 }, v(i.categories, (s, g) => (n(), o("li", {
|
|
140
141
|
key: g,
|
|
141
142
|
class: "link-item"
|
|
142
143
|
}, [
|
|
143
|
-
c((n(),
|
|
144
|
-
href:
|
|
144
|
+
c((n(), o("a", {
|
|
145
|
+
href: s.url,
|
|
145
146
|
class: "tw-text-primary tw-text-left hover:tw-text-action tw-no-underline tw-my-1 tw-inline-block"
|
|
146
147
|
}, [
|
|
147
|
-
d(S(
|
|
148
|
+
d(S(s.name), 1)
|
|
148
149
|
], 8, j)), [
|
|
149
|
-
[a, ["TopNav", "click-Lend-Category",
|
|
150
|
+
[a, ["TopNav", "click-Lend-Category", s.name, g + 1]]
|
|
150
151
|
])
|
|
151
152
|
]))), 128))
|
|
152
153
|
]),
|
|
153
154
|
t("div", null, [
|
|
154
155
|
t("ul", q, [
|
|
155
156
|
t("li", H, [
|
|
156
|
-
c((n(),
|
|
157
|
+
c((n(), o("a", J, e[4] || (e[4] = [
|
|
157
158
|
d(" Recommended by lenders ")
|
|
158
159
|
]))), [
|
|
159
160
|
[a, ["TopNav", "click-Lend-Recommended-by-lenders"]]
|
|
160
161
|
])
|
|
161
162
|
]),
|
|
162
163
|
t("li", Q, [
|
|
163
|
-
c((n(),
|
|
164
|
+
c((n(), o("a", Y, e[5] || (e[5] = [
|
|
164
165
|
d(" All categories ")
|
|
165
166
|
]))), [
|
|
166
167
|
[a, ["TopNav", "click-Lend-All_Categories"]]
|
|
167
168
|
])
|
|
168
169
|
]),
|
|
169
170
|
t("li", Z, [
|
|
170
|
-
c((n(),
|
|
171
|
+
c((n(), o("a", $, e[6] || (e[6] = [
|
|
171
172
|
d(" All loans ")
|
|
172
173
|
]))), [
|
|
173
174
|
[a, ["TopNav", "click-Lend-All_Loans"]]
|
|
174
175
|
])
|
|
175
176
|
])
|
|
176
177
|
]),
|
|
177
|
-
i.userId ? (n(),
|
|
178
|
+
i.userId ? (n(), o("div", ee, [
|
|
178
179
|
e[9] || (e[9] = t("span", { class: "tw-inline-block tw-py-1" }, " ", -1)),
|
|
179
180
|
e[10] || (e[10] = t("h2", { class: "menu-heading tw-my-1" }, " My Kiva ", -1)),
|
|
180
181
|
t("ul", te, [
|
|
181
182
|
t("li", null, [
|
|
182
|
-
i.favorites > 0 ? c((n(),
|
|
183
|
+
i.favorites > 0 ? c((n(), o("a", {
|
|
183
184
|
key: 0,
|
|
184
185
|
href: `/lend?lenderFavorite=${i.userId}`,
|
|
185
186
|
class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
|
|
@@ -187,20 +188,23 @@ function we(p, e, i, l, f, L) {
|
|
|
187
188
|
d(" Saved loans ")
|
|
188
189
|
]), 8, ne)), [
|
|
189
190
|
[a, ["TopNav", "click-Lend-Favorites"]]
|
|
190
|
-
]) : (n(),
|
|
191
|
+
]) : (n(), o("span", oe, " Saved loans "))
|
|
191
192
|
]),
|
|
192
193
|
t("li", null, [
|
|
193
|
-
l.hasSearches ? (n(),
|
|
194
|
+
l.hasSearches ? (n(), o("button", {
|
|
194
195
|
key: 0,
|
|
195
196
|
"aria-pressed": l.isOpenSection(l.savedSearchesTitle) ? "true" : "false",
|
|
196
197
|
class: "tw-text-primary tw-text-left tw-py-1 tw-inline-block hover:tw-text-action hover:tw-underline",
|
|
197
|
-
onClick: e[0] || (e[0] = (
|
|
198
|
-
}, S(l.savedSearchesTitle), 9,
|
|
198
|
+
onClick: e[0] || (e[0] = (s) => l.openSection(l.savedSearchesTitle))
|
|
199
|
+
}, S(l.savedSearchesTitle), 9, se)) : (n(), o("span", le, " Saved searches "))
|
|
199
200
|
]),
|
|
200
201
|
t("li", null, [
|
|
201
|
-
c((n(),
|
|
202
|
+
c((n(), o("a", {
|
|
203
|
+
href: i.countriesNotLentToUrl,
|
|
204
|
+
class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
|
|
205
|
+
}, e[8] || (e[8] = [
|
|
202
206
|
d(" Countries I haven't lent to ")
|
|
203
|
-
]))), [
|
|
207
|
+
]), 8, ie)), [
|
|
204
208
|
[a, ["TopNav", "click-Lend-Countries_Not_Lent"]]
|
|
205
209
|
])
|
|
206
210
|
])
|
|
@@ -210,10 +214,10 @@ function we(p, e, i, l, f, L) {
|
|
|
210
214
|
])
|
|
211
215
|
], 512),
|
|
212
216
|
t("div", ae, [
|
|
213
|
-
l.sectionOpen ? (n(),
|
|
217
|
+
l.sectionOpen ? (n(), o("button", {
|
|
214
218
|
key: 0,
|
|
215
219
|
class: "tw-flex",
|
|
216
|
-
onClick: e[1] || (e[1] = (
|
|
220
|
+
onClick: e[1] || (e[1] = (s) => l.openedSection = "")
|
|
217
221
|
}, [
|
|
218
222
|
m(h, {
|
|
219
223
|
class: "tw-flex-shrink-0 tw-w-3 tw-h-3",
|
|
@@ -223,18 +227,18 @@ function we(p, e, i, l, f, L) {
|
|
|
223
227
|
])) : x("", !0)
|
|
224
228
|
]),
|
|
225
229
|
t("div", re, [
|
|
226
|
-
l.isOpenSection(l.savedSearchesTitle) ? (n(),
|
|
230
|
+
l.isOpenSection(l.savedSearchesTitle) ? (n(), o(w, { key: 0 }, [
|
|
227
231
|
e[13] || (e[13] = t("h2", { class: "menu-heading tw-mb-2" }, " Saved Searches ", -1)),
|
|
228
232
|
m(_, {
|
|
229
233
|
class: "search-list tw-h-full",
|
|
230
234
|
searches: i.searches
|
|
231
235
|
}, null, 8, ["searches"])
|
|
232
|
-
], 64)) : (n(),
|
|
236
|
+
], 64)) : (n(), o(w, { key: 1 }, [
|
|
233
237
|
e[15] || (e[15] = t("h2", { class: "menu-heading tw-mb-2" }, " Regions ", -1)),
|
|
234
238
|
t("div", ce, [
|
|
235
239
|
t("ul", de, [
|
|
236
|
-
i.isRegionsLoading ? (n(),
|
|
237
|
-
key:
|
|
240
|
+
i.isRegionsLoading ? (n(), o(w, { key: 0 }, v(8, (s) => t("li", {
|
|
241
|
+
key: s,
|
|
238
242
|
class: "link-item"
|
|
239
243
|
}, [
|
|
240
244
|
m(k, {
|
|
@@ -242,27 +246,27 @@ function we(p, e, i, l, f, L) {
|
|
|
242
246
|
style: { height: "1.25rem" }
|
|
243
247
|
}),
|
|
244
248
|
e[14] || (e[14] = t("span", { class: "tw-py-1 tw-inline-block" }, " ", -1))
|
|
245
|
-
])), 64)) : (n(!0),
|
|
246
|
-
key:
|
|
249
|
+
])), 64)) : (n(!0), o(w, { key: 1 }, v(i.regions, (s) => (n(), o("li", {
|
|
250
|
+
key: s.name,
|
|
247
251
|
class: "link-item tw-mr-4"
|
|
248
252
|
}, [
|
|
249
|
-
c((n(),
|
|
250
|
-
"aria-pressed": l.isOpenSection(
|
|
251
|
-
class: K(["tw-text-primary tw-text-left tw-py-1 hover:tw-text-action hover:tw-underline", { "tw-text-action": l.isOpenSection(
|
|
252
|
-
onClick: (g) => l.openSection(
|
|
253
|
+
c((n(), o("button", {
|
|
254
|
+
"aria-pressed": l.isOpenSection(s.name) ? "true" : "false",
|
|
255
|
+
class: K(["tw-text-primary tw-text-left tw-py-1 hover:tw-text-action hover:tw-underline", { "tw-text-action": l.isOpenSection(s.name) }]),
|
|
256
|
+
onClick: (g) => l.openSection(s.name)
|
|
253
257
|
}, [
|
|
254
|
-
d(S(
|
|
258
|
+
d(S(s.name), 1)
|
|
255
259
|
], 10, me)), [
|
|
256
|
-
[a, ["TopNav", "click-Lend-Region",
|
|
260
|
+
[a, ["TopNav", "click-Lend-Region", s.name]]
|
|
257
261
|
])
|
|
258
262
|
]))), 128))
|
|
259
263
|
]),
|
|
260
|
-
(n(!0),
|
|
261
|
-
key:
|
|
264
|
+
(n(!0), o(w, null, v(l.openRegions, (s) => (n(), o("div", {
|
|
265
|
+
key: s.name,
|
|
262
266
|
class: "tw-h-full"
|
|
263
267
|
}, [
|
|
264
268
|
m(b, {
|
|
265
|
-
countries:
|
|
269
|
+
countries: s.countries,
|
|
266
270
|
class: "region-list tw-h-full"
|
|
267
271
|
}, null, 8, ["countries"])
|
|
268
272
|
]))), 128))
|
|
@@ -275,7 +279,7 @@ function we(p, e, i, l, f, L) {
|
|
|
275
279
|
], 4)
|
|
276
280
|
]);
|
|
277
281
|
}
|
|
278
|
-
const xe = /* @__PURE__ */ D
|
|
282
|
+
const xe = /* @__PURE__ */ V(D, [["render", we], ["__scopeId", "data-v-0c9de865"]]);
|
|
279
283
|
export {
|
|
280
284
|
xe as default
|
|
281
285
|
};
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { gql as f } from "@apollo/client/core";
|
|
2
|
-
import { toRefs as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { indexIn as
|
|
6
|
-
import { groupBy as
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
const
|
|
2
|
+
import { toRefs as S, ref as a, computed as L, onMounted as q, resolveComponent as h, openBlock as N, createBlock as x, withCtx as U, createVNode as w } from "vue";
|
|
3
|
+
import A from "./KvLendListMenu.js";
|
|
4
|
+
import B from "./KvLendMegaMenu.js";
|
|
5
|
+
import { indexIn as F } from "../../../utils/comparators.js";
|
|
6
|
+
import { groupBy as O, sortBy as k } from "../../../utils/arrayUtils.js";
|
|
7
|
+
import R from "../../KvPageContainer.js";
|
|
8
|
+
import K from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
9
|
+
const D = {
|
|
10
10
|
components: {
|
|
11
|
-
KvLendListMenu:
|
|
12
|
-
KvLendMegaMenu:
|
|
13
|
-
KvPageContainer:
|
|
11
|
+
KvLendListMenu: A,
|
|
12
|
+
KvLendMegaMenu: B,
|
|
13
|
+
KvPageContainer: R
|
|
14
14
|
},
|
|
15
15
|
props: {
|
|
16
16
|
userId: {
|
|
@@ -20,13 +20,17 @@ const E = {
|
|
|
20
20
|
showMGUpsellLink: {
|
|
21
21
|
type: Boolean,
|
|
22
22
|
default: !1
|
|
23
|
+
},
|
|
24
|
+
countriesNotLentToUrl: {
|
|
25
|
+
type: String,
|
|
26
|
+
default: "/lend/countries-not-lent"
|
|
23
27
|
}
|
|
24
28
|
},
|
|
25
29
|
emits: ["load-lend-menu-data"],
|
|
26
|
-
setup(
|
|
30
|
+
setup(y, { emit: p }) {
|
|
27
31
|
const {
|
|
28
32
|
userId: s
|
|
29
|
-
} =
|
|
33
|
+
} = S(y), e = a([]), g = a([]), m = a(0), u = a([]), v = [
|
|
30
34
|
"North America",
|
|
31
35
|
"Central America",
|
|
32
36
|
"South America",
|
|
@@ -35,9 +39,9 @@ const E = {
|
|
|
35
39
|
"Middle East",
|
|
36
40
|
"Asia",
|
|
37
41
|
"Oceania"
|
|
38
|
-
],
|
|
39
|
-
var
|
|
40
|
-
if (
|
|
42
|
+
], c = a(!0), C = a(!0), M = async (i) => {
|
|
43
|
+
var t, r, o, d;
|
|
44
|
+
if (i.watchQuery({
|
|
41
45
|
query: f`query countryFacets {
|
|
42
46
|
lend {
|
|
43
47
|
countryFacets {
|
|
@@ -54,9 +58,9 @@ const E = {
|
|
|
54
58
|
}).subscribe({
|
|
55
59
|
next: ({ data: n }) => {
|
|
56
60
|
var l;
|
|
57
|
-
g.value = ((l = n == null ? void 0 : n.lend) == null ? void 0 : l.countryFacets) ?? [],
|
|
61
|
+
g.value = ((l = n == null ? void 0 : n.lend) == null ? void 0 : l.countryFacets) ?? [], c.value = !1;
|
|
58
62
|
}
|
|
59
|
-
}),
|
|
63
|
+
}), i.watchQuery({
|
|
60
64
|
query: f`
|
|
61
65
|
query lendMenuData {
|
|
62
66
|
lend {
|
|
@@ -76,7 +80,7 @@ const E = {
|
|
|
76
80
|
e.value = ((_ = (l = n == null ? void 0 : n.lend) == null ? void 0 : l.loanChannels) == null ? void 0 : _.values) ?? [], C.value = !1;
|
|
77
81
|
}
|
|
78
82
|
}), s.value) {
|
|
79
|
-
const { data: n } = await
|
|
83
|
+
const { data: n } = await i.query({
|
|
80
84
|
query: f`
|
|
81
85
|
query lendMenuPrivateData($userId: Int!) {
|
|
82
86
|
lend {
|
|
@@ -102,46 +106,46 @@ const E = {
|
|
|
102
106
|
},
|
|
103
107
|
fetchPolicy: "network-only"
|
|
104
108
|
});
|
|
105
|
-
m.value = ((
|
|
109
|
+
m.value = ((r = (t = n == null ? void 0 : n.lend) == null ? void 0 : t.loans) == null ? void 0 : r.totalCount) ?? 0, u.value = ((d = (o = n == null ? void 0 : n.my) == null ? void 0 : o.savedSearches) == null ? void 0 : d.values) ?? [];
|
|
106
110
|
}
|
|
107
|
-
}, b =
|
|
108
|
-
const
|
|
111
|
+
}, b = L(() => {
|
|
112
|
+
const i = g.value.map((o) => ({
|
|
109
113
|
name: o.country.name,
|
|
110
114
|
region: o.country.region,
|
|
111
115
|
isoCode: o.country.isoCode.toLowerCase(),
|
|
112
116
|
count: o.count || 0
|
|
113
|
-
})),
|
|
114
|
-
for (const [o, d] of Object.entries(
|
|
115
|
-
|
|
117
|
+
})), t = O(i, "region"), r = [];
|
|
118
|
+
for (const [o, d] of Object.entries(t))
|
|
119
|
+
r.push({
|
|
116
120
|
name: o,
|
|
117
|
-
countries: d.sort(
|
|
121
|
+
countries: d.sort(k("name"))
|
|
118
122
|
});
|
|
119
|
-
return
|
|
120
|
-
}), I =
|
|
121
|
-
var
|
|
122
|
-
return ((
|
|
123
|
-
const o = JSON.parse(JSON.stringify(
|
|
123
|
+
return r.sort(F(v, "name"));
|
|
124
|
+
}), I = L(() => {
|
|
125
|
+
var t;
|
|
126
|
+
return ((t = e.value) == null ? void 0 : t.map((r) => {
|
|
127
|
+
const o = JSON.parse(JSON.stringify(r));
|
|
124
128
|
return o.url = o.url.replace("lend", "lend-by-category"), o;
|
|
125
|
-
})).sort(
|
|
129
|
+
})).sort(k("name"));
|
|
126
130
|
});
|
|
127
|
-
return
|
|
128
|
-
|
|
131
|
+
return q(() => {
|
|
132
|
+
p("load-lend-menu-data");
|
|
129
133
|
}), {
|
|
130
134
|
onLoad: M,
|
|
131
135
|
regions: b,
|
|
132
136
|
computedCategories: I,
|
|
133
137
|
isChannelsLoading: C,
|
|
134
|
-
isRegionsLoading:
|
|
135
|
-
savedSearches:
|
|
138
|
+
isRegionsLoading: c,
|
|
139
|
+
savedSearches: u,
|
|
136
140
|
favoritesCount: m
|
|
137
141
|
};
|
|
138
142
|
}
|
|
139
143
|
};
|
|
140
|
-
function
|
|
141
|
-
const
|
|
142
|
-
return
|
|
143
|
-
default:
|
|
144
|
-
|
|
144
|
+
function E(y, p, s, e, g, m) {
|
|
145
|
+
const u = h("kv-lend-list-menu"), v = h("kv-lend-mega-menu"), c = h("kv-page-container");
|
|
146
|
+
return N(), x(c, { class: "tw-pt-2 lg:tw-pt-0" }, {
|
|
147
|
+
default: U(() => [
|
|
148
|
+
w(u, {
|
|
145
149
|
class: "lg:tw-hidden",
|
|
146
150
|
categories: e.computedCategories,
|
|
147
151
|
regions: e.regions,
|
|
@@ -150,9 +154,10 @@ function G(p, y, s, e, g, m) {
|
|
|
150
154
|
searches: e.savedSearches,
|
|
151
155
|
"is-regions-loading": e.isRegionsLoading,
|
|
152
156
|
"is-channels-loading": e.isChannelsLoading,
|
|
153
|
-
"show-m-g-upsell-link": s.showMGUpsellLink
|
|
154
|
-
|
|
155
|
-
|
|
157
|
+
"show-m-g-upsell-link": s.showMGUpsellLink,
|
|
158
|
+
"countries-not-lent-to-url": s.countriesNotLentToUrl
|
|
159
|
+
}, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link", "countries-not-lent-to-url"]),
|
|
160
|
+
w(v, {
|
|
156
161
|
class: "tw-hidden lg:tw-block",
|
|
157
162
|
categories: e.computedCategories,
|
|
158
163
|
regions: e.regions,
|
|
@@ -161,13 +166,14 @@ function G(p, y, s, e, g, m) {
|
|
|
161
166
|
searches: e.savedSearches,
|
|
162
167
|
"is-regions-loading": e.isRegionsLoading,
|
|
163
168
|
"is-channels-loading": e.isChannelsLoading,
|
|
164
|
-
"show-m-g-upsell-link": s.showMGUpsellLink
|
|
165
|
-
|
|
169
|
+
"show-m-g-upsell-link": s.showMGUpsellLink,
|
|
170
|
+
"countries-not-lent-to-url": s.countriesNotLentToUrl
|
|
171
|
+
}, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link", "countries-not-lent-to-url"])
|
|
166
172
|
]),
|
|
167
173
|
_: 1
|
|
168
174
|
});
|
|
169
175
|
}
|
|
170
|
-
const
|
|
176
|
+
const H = /* @__PURE__ */ K(D, [["render", E]]);
|
|
171
177
|
export {
|
|
172
|
-
|
|
178
|
+
H as default
|
|
173
179
|
};
|
package/dist/vue/KvWwwHeader.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-fade-enter-active[data-v-
|
|
1
|
+
.header-fade-enter-active[data-v-c1223ffa]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-c1223ffa]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-c1223ffa],.header-fade-leave-to[data-v-c1223ffa]{opacity:0}.header-fade-leave[data-v-c1223ffa],.header-fade-enter-to[data-v-c1223ffa]{opacity:1}.bg-opacity-50[data-v-c1223ffa]{background-color:rgba(var(--bg-action-highlight),.5)}
|
package/dist/vue/KvWwwHeader.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ref as l, shallowRef as D, computed as
|
|
2
|
-
import
|
|
1
|
+
import { ref as l, shallowRef as D, computed as U, onMounted as B, onBeforeUnmount as N, resolveComponent as f, resolveDirective as x, openBlock as w, createBlock as M, withCtx as g, createElementVNode as k, normalizeStyle as _, createVNode as d, Transition as I, withDirectives as h, vShow as E, createElementBlock as A, normalizeClass as S, resolveDynamicComponent as G } from "vue";
|
|
2
|
+
import K from "@kiva/kv-tokens";
|
|
3
3
|
import z from "./KvWwwHeader/KvHeaderLinkBar.js";
|
|
4
4
|
import R from "./KvWwwHeader/KvHeaderLogo.js";
|
|
5
5
|
import P from "./KvThemeProvider.js";
|
|
@@ -58,48 +58,52 @@ const j = "3.75rem", q = {
|
|
|
58
58
|
showMGUpsellLink: {
|
|
59
59
|
type: Boolean,
|
|
60
60
|
default: !1
|
|
61
|
+
},
|
|
62
|
+
countriesNotLentToUrl: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: "/lend/countries-not-lent"
|
|
61
65
|
}
|
|
62
66
|
},
|
|
63
67
|
emits: [
|
|
64
68
|
"load-lend-menu-data"
|
|
65
69
|
],
|
|
66
|
-
setup(
|
|
67
|
-
const o = l(!0), e = l(null),
|
|
68
|
-
let
|
|
69
|
-
const b =
|
|
70
|
+
setup(L, { emit: t }) {
|
|
71
|
+
const o = l(!0), e = l(null), r = l(!1), a = D(null), i = l(null), s = l({ left: 0, position: "relative" }), u = l(!1);
|
|
72
|
+
let c;
|
|
73
|
+
const b = U(() => {
|
|
70
74
|
var m, n;
|
|
71
|
-
return ((n = (m =
|
|
72
|
-
}),
|
|
73
|
-
n ? (clearTimeout(
|
|
74
|
-
...
|
|
75
|
+
return ((n = (m = i.value) == null ? void 0 : m.$options) == null ? void 0 : n.name) === "KvHeaderMobileMenu";
|
|
76
|
+
}), v = (m, n, p) => {
|
|
77
|
+
n ? (clearTimeout(c), a.value !== n && (s.value = { left: 0, position: "relative" }), a.value = n, r.value = !0, p && (s.value = {
|
|
78
|
+
...p,
|
|
75
79
|
position: "absolute"
|
|
76
|
-
})) :
|
|
77
|
-
|
|
80
|
+
})) : r.value && (c = setTimeout(() => {
|
|
81
|
+
r.value = !1, a.value = null;
|
|
78
82
|
}, 100));
|
|
79
|
-
},
|
|
83
|
+
}, T = (m) => {
|
|
80
84
|
var n;
|
|
81
|
-
(n =
|
|
82
|
-
},
|
|
85
|
+
(n = i.value) == null || n.onLoad(m);
|
|
86
|
+
}, C = () => {
|
|
83
87
|
t("load-lend-menu-data");
|
|
84
88
|
}, y = () => {
|
|
85
|
-
u.value = (window == null ? void 0 : window.innerWidth) <
|
|
86
|
-
},
|
|
87
|
-
return
|
|
88
|
-
y(), window.addEventListener("resize",
|
|
89
|
-
}),
|
|
90
|
-
window.removeEventListener("resize",
|
|
89
|
+
u.value = (window == null ? void 0 : window.innerWidth) < K.breakpoints.md;
|
|
90
|
+
}, H = O(y, 100);
|
|
91
|
+
return B(() => {
|
|
92
|
+
y(), window.addEventListener("resize", H);
|
|
93
|
+
}), N(() => {
|
|
94
|
+
window.removeEventListener("resize", H);
|
|
91
95
|
}), {
|
|
92
96
|
HEADER_HEIGHT: j,
|
|
93
|
-
emitLendMenuEvent:
|
|
97
|
+
emitLendMenuEvent: C,
|
|
94
98
|
isMobile: u,
|
|
95
99
|
linksVisible: o,
|
|
96
|
-
menuOpen:
|
|
100
|
+
menuOpen: r,
|
|
97
101
|
isMobileMenuActive: b,
|
|
98
|
-
onHover:
|
|
99
|
-
loadMenuData:
|
|
102
|
+
onHover: v,
|
|
103
|
+
loadMenuData: T,
|
|
100
104
|
activeHeaderItem: e,
|
|
101
|
-
menuComponent:
|
|
102
|
-
menuComponentInstance:
|
|
105
|
+
menuComponent: a,
|
|
106
|
+
menuComponentInstance: i,
|
|
103
107
|
menuPosition: s
|
|
104
108
|
};
|
|
105
109
|
}
|
|
@@ -107,9 +111,9 @@ const j = "3.75rem", q = {
|
|
|
107
111
|
href: "/",
|
|
108
112
|
class: "tw-px-1 tw-py-2 tw-cursor-pointer tw-absolute tw-top-1/2 tw-left-1/2 tw--translate-y-1/2 tw--translate-x-1/2 tw-transition-all tw-duration-300"
|
|
109
113
|
};
|
|
110
|
-
function J(
|
|
111
|
-
const
|
|
112
|
-
return w(), M(
|
|
114
|
+
function J(L, t, o, e, r, a) {
|
|
115
|
+
const i = f("kv-header-link-bar"), s = f("kv-header-logo"), u = f("kv-page-container"), c = f("kv-theme-provider"), b = x("kv-track-event");
|
|
116
|
+
return w(), M(c, {
|
|
113
117
|
tag: "div",
|
|
114
118
|
class: "tw-bg-primary"
|
|
115
119
|
}, {
|
|
@@ -122,7 +126,7 @@ function J(C, t, o, e, a, i) {
|
|
|
122
126
|
default: g(() => [
|
|
123
127
|
d(I, { name: "header-fade" }, {
|
|
124
128
|
default: g(() => [
|
|
125
|
-
h(d(
|
|
129
|
+
h(d(i, {
|
|
126
130
|
"logged-in": o.loggedIn,
|
|
127
131
|
"basket-count": o.basketCount,
|
|
128
132
|
"login-url": o.loginUrl,
|
|
@@ -155,15 +159,15 @@ function J(C, t, o, e, a, i) {
|
|
|
155
159
|
style: _({ top: e.HEADER_HEIGHT })
|
|
156
160
|
}, [
|
|
157
161
|
k("div", {
|
|
158
|
-
class:
|
|
162
|
+
class: S(["tw-bg-primary tw-overflow-y-auto", { "tw-min-h-dvh": e.isMobileMenuActive }]),
|
|
159
163
|
style: _({
|
|
160
164
|
...e.menuPosition,
|
|
161
165
|
maxHeight: e.isMobileMenuActive ? "auto" : `calc(100dvh - ${e.HEADER_HEIGHT})`
|
|
162
166
|
}),
|
|
163
|
-
onMouseover: t[1] || (t[1] = (
|
|
164
|
-
onMouseout: t[2] || (t[2] = (
|
|
167
|
+
onMouseover: t[1] || (t[1] = (v) => e.onHover(e.activeHeaderItem, e.menuComponent)),
|
|
168
|
+
onMouseout: t[2] || (t[2] = (v) => e.onHover())
|
|
165
169
|
}, [
|
|
166
|
-
(w(), M(
|
|
170
|
+
(w(), M(G(e.menuComponent), {
|
|
167
171
|
ref: "menuComponentInstance",
|
|
168
172
|
"logged-in": o.loggedIn,
|
|
169
173
|
"login-url": o.loginUrl,
|
|
@@ -173,9 +177,10 @@ function J(C, t, o, e, a, i) {
|
|
|
173
177
|
"my-dashboard-url": o.myDashboardUrl,
|
|
174
178
|
"show-m-g-upsell-link": o.showMGUpsellLink,
|
|
175
179
|
"is-mobile": e.isMobile,
|
|
180
|
+
"countries-not-lent-to-url": o.countriesNotLentToUrl,
|
|
176
181
|
onLoadLendMenuData: e.emitLendMenuEvent,
|
|
177
|
-
onClosingMenu: t[0] || (t[0] = (
|
|
178
|
-
}, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "my-dashboard-url", "show-m-g-upsell-link", "is-mobile", "onLoadLendMenuData"]))
|
|
182
|
+
onClosingMenu: t[0] || (t[0] = (v) => e.onHover())
|
|
183
|
+
}, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "my-dashboard-url", "show-m-g-upsell-link", "is-mobile", "countries-not-lent-to-url", "onLoadLendMenuData"]))
|
|
179
184
|
], 38)
|
|
180
185
|
], 4), [
|
|
181
186
|
[E, e.menuOpen]
|
|
@@ -187,7 +192,7 @@ function J(C, t, o, e, a, i) {
|
|
|
187
192
|
_: 1
|
|
188
193
|
});
|
|
189
194
|
}
|
|
190
|
-
const le = /* @__PURE__ */ W(q, [["render", J], ["__scopeId", "data-v-
|
|
195
|
+
const le = /* @__PURE__ */ W(q, [["render", J], ["__scopeId", "data-v-c1223ffa"]]);
|
|
191
196
|
export {
|
|
192
197
|
le as default
|
|
193
198
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.52.
|
|
3
|
+
"version": "6.52.10",
|
|
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": "f7509c21acb1a45b5556219f4fdfde85e0fc7c9d"
|
|
118
118
|
}
|