@kiva/kv-components 6.49.0 → 6.49.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/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +323 -189
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +11 -11
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +49 -48
- package/dist/vue/KvWwwHeader/KvHeaderMenuLink.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +7 -7
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +2 -2
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +6 -6
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +67 -62
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +83 -75
- package/package.json +2 -2
|
@@ -5,7 +5,7 @@ const k = {
|
|
|
5
5
|
components: {
|
|
6
6
|
KvHeaderMenuLink: s
|
|
7
7
|
}
|
|
8
|
-
}, m = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium" };
|
|
8
|
+
}, m = { 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 v(w, e, c, b, N, T) {
|
|
10
10
|
const o = l("kv-header-menu-link"), r = p("kv-track-event");
|
|
11
11
|
return t(), f("nav", m, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getCurrentInstance as d, computed as u, resolveComponent as
|
|
1
|
+
import { getCurrentInstance as d, computed as u, resolveComponent as c, openBlock as m, createElementBlock as f, normalizeClass as l, renderSlot as p, createVNode as w } from "vue";
|
|
2
2
|
import v from "../KvMaterialIcon.js";
|
|
3
3
|
import h from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const C = {
|
|
5
5
|
components: { KvMaterialIcon: v },
|
|
6
6
|
props: {
|
|
7
7
|
refName: {
|
|
@@ -60,23 +60,23 @@ const x = {
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
},
|
|
64
|
-
function
|
|
65
|
-
const a =
|
|
66
|
-
return
|
|
63
|
+
}, M = ["href"];
|
|
64
|
+
function x(e, o, n, r, i, s) {
|
|
65
|
+
const a = c("KvMaterialIcon");
|
|
66
|
+
return m(), f("a", {
|
|
67
67
|
ref: n.refName,
|
|
68
|
-
class: l(["tw-
|
|
68
|
+
class: l(["tw-no-underline hover:tw-no-underline tw-text-primary hover:tw-text-action tw-items-center tw-rounded tw-cursor-pointer", r.computedClass]),
|
|
69
69
|
href: n.href,
|
|
70
70
|
onMouseover: o[0] || (o[0] = (...t) => r.handleMouseOver && r.handleMouseOver(...t))
|
|
71
71
|
}, [
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
p(e.$slots, "default"),
|
|
73
|
+
w(a, {
|
|
74
74
|
class: l(["tw-inline tw-w-3 tw-ml-0.5 tw-transition-transform tw-duration-300", { "tw-rotate-180": n.openMenuItem === n.menuComponent }]),
|
|
75
75
|
icon: n.dropdownIcon
|
|
76
76
|
}, null, 8, ["class", "icon"])
|
|
77
|
-
], 42,
|
|
77
|
+
], 42, M);
|
|
78
78
|
}
|
|
79
|
-
const O = /* @__PURE__ */ h(
|
|
79
|
+
const O = /* @__PURE__ */ h(C, [["render", x]]);
|
|
80
80
|
export {
|
|
81
81
|
O as default
|
|
82
82
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-link[data-v-
|
|
1
|
+
.header-link[data-v-be04b1f7]{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-be04b1f7]: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 k, ref as l, computed as P, onMounted as z, onUnmounted as W, resolveComponent as b, resolveDirective as j, openBlock as i, createElementBlock as c, withDirectives as d, normalizeClass as g, createVNode as U, createBlock as h, withCtx as I, createTextVNode as w, createElementVNode as D, createCommentVNode as M, toDisplayString as F } from "vue";
|
|
2
2
|
import { mdiAccountCircle as q, mdiChevronDown as G, mdiMagnify as J, mdiMenu as Q } from "@mdi/js";
|
|
3
3
|
import X from "numeral";
|
|
4
4
|
import Y from "../KvMaterialIcon.js";
|
|
@@ -8,7 +8,7 @@ import ee from "../KvUserAvatar.js";
|
|
|
8
8
|
import { throttle as ne } from "../../utils/throttle.js";
|
|
9
9
|
import "./KvHeaderLinkBar.css";
|
|
10
10
|
import te from "../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
-
const oe =
|
|
11
|
+
const oe = k(() => import("./KvHeaderMobileMenu.js")), O = k(() => import("./KvHeaderMyKivaMenu.js")), re = k(() => import("./LendMenu/KvLendMenu.js")), le = k(() => import("./KvHeaderTakeActionMenu.js")), ie = k(() => import("./KvHeaderAboutMenu.js")), C = 118, T = "avatar-menu", ae = {
|
|
12
12
|
components: {
|
|
13
13
|
KvMaterialIcon: Y,
|
|
14
14
|
KvIconBag: Z,
|
|
@@ -56,11 +56,11 @@ const oe = w(() => import("./KvHeaderMobileMenu.js")), O = w(() => import("./KvH
|
|
|
56
56
|
emits: [
|
|
57
57
|
"item-hover"
|
|
58
58
|
],
|
|
59
|
-
setup(
|
|
60
|
-
const t = l(null), n = l(null),
|
|
59
|
+
setup(u, { emit: e }) {
|
|
60
|
+
const t = l(null), n = l(null), x = l(null), K = l(null), A = l(null), f = l(null), y = l(null), H = l(null), a = l(null), o = l(null), m = (r, v, s = null) => {
|
|
61
61
|
e("item-hover", r, v, s);
|
|
62
62
|
}, _ = (r, v, s = null) => {
|
|
63
|
-
|
|
63
|
+
u.isMobile || m(r, v, s);
|
|
64
64
|
}, S = (r) => {
|
|
65
65
|
o.value === r && (o.value = null, m());
|
|
66
66
|
}, E = () => {
|
|
@@ -69,17 +69,17 @@ const oe = w(() => import("./KvHeaderMobileMenu.js")), O = w(() => import("./KvH
|
|
|
69
69
|
if (!r) return null;
|
|
70
70
|
const s = r.left + r.width / 2 - C / 2;
|
|
71
71
|
return {
|
|
72
|
-
...s + C > window.outerWidth ? { right: 0 } : { left:
|
|
72
|
+
...s + C > window.outerWidth ? { right: 0 } : { left: u.isMobile ? 0 : `${s}px` },
|
|
73
73
|
borderRadius: "0px 0px 8px 8px",
|
|
74
|
-
width:
|
|
74
|
+
width: u.isMobile ? "100%" : "auto"
|
|
75
75
|
};
|
|
76
|
-
},
|
|
76
|
+
}, p = () => {
|
|
77
77
|
o.value = T, m(t.value, O, E());
|
|
78
78
|
}, V = (r, v) => {
|
|
79
|
-
!o.value || o.value !== r ? (o.value = r, r === T ?
|
|
79
|
+
!o.value || o.value !== r ? (o.value = r, r === T ? p() : m(r, v)) : (o.value = null, m());
|
|
80
80
|
}, L = ne(() => {
|
|
81
|
-
|
|
82
|
-
}, 50), R = P(() =>
|
|
81
|
+
u.openMenuItem && p();
|
|
82
|
+
}, 50), R = P(() => u.isMobile ? void 0 : "/lend-by-category");
|
|
83
83
|
return z(() => {
|
|
84
84
|
import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js"), import("./KvHeaderTakeActionMenu.js"), import("./KvHeaderAboutMenu.js"), window.addEventListener("resize", L);
|
|
85
85
|
}), W(() => {
|
|
@@ -95,18 +95,18 @@ const oe = w(() => import("./KvHeaderMobileMenu.js")), O = w(() => import("./KvH
|
|
|
95
95
|
onHover: m,
|
|
96
96
|
avatar: t,
|
|
97
97
|
lendButton: n,
|
|
98
|
-
aboutUsLink:
|
|
99
|
-
partnerWithUsLink:
|
|
98
|
+
aboutUsLink: x,
|
|
99
|
+
partnerWithUsLink: K,
|
|
100
100
|
borrowLink: A,
|
|
101
101
|
supportKivaLink: f,
|
|
102
|
-
basketLink:
|
|
103
|
-
signInLink:
|
|
102
|
+
basketLink: y,
|
|
103
|
+
signInLink: H,
|
|
104
104
|
menuButton: a,
|
|
105
105
|
lendUrl: R,
|
|
106
106
|
handleOnHover: _,
|
|
107
107
|
handleTouchStart: V,
|
|
108
108
|
handleMouseOut: S,
|
|
109
|
-
handleAvatarMenuPosition:
|
|
109
|
+
handleAvatarMenuPosition: p,
|
|
110
110
|
KvHeaderMobileMenu: oe,
|
|
111
111
|
KvHeaderMyKivaMenu: O,
|
|
112
112
|
KvLendMenu: re,
|
|
@@ -114,16 +114,16 @@ const oe = w(() => import("./KvHeaderMobileMenu.js")), O = w(() => import("./KvH
|
|
|
114
114
|
KvHeaderAboutMenu: ie
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
},
|
|
117
|
+
}, de = { class: "tw-h-full tw-flex tw-items-center tw-gap-2.5" }, ue = ["href"], me = {
|
|
118
118
|
key: 0,
|
|
119
119
|
class: "tw-bg-eco-green-1 tw-py-0.5 tw-px-1 tw-text-eco-green-4"
|
|
120
120
|
}, ve = ["href"];
|
|
121
|
-
function se(
|
|
122
|
-
const A =
|
|
123
|
-
return i(), c("div",
|
|
124
|
-
|
|
121
|
+
function se(u, e, t, n, x, K) {
|
|
122
|
+
const A = b("kv-material-icon"), f = b("KvHeaderDropdownLink"), y = b("kv-icon-bag"), H = b("KvUserAvatar"), a = j("kv-track-event");
|
|
123
|
+
return i(), c("div", de, [
|
|
124
|
+
d((i(), c("button", {
|
|
125
125
|
ref: "menuButton",
|
|
126
|
-
class:
|
|
126
|
+
class: g(["header-link tw-inline-flex lg:tw-hidden", {
|
|
127
127
|
"tw-text-tertiary": t.openMenuItem && t.openMenuItem !== n.KvHeaderMobileMenu
|
|
128
128
|
}]),
|
|
129
129
|
onMouseover: e[0] || (e[0] = (o) => n.handleOnHover(n.menuButton, n.KvHeaderMobileMenu)),
|
|
@@ -134,7 +134,8 @@ function se(d, e, t, n, K, x) {
|
|
|
134
134
|
], 34)), [
|
|
135
135
|
[a, t.openMenuItem === n.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
|
|
136
136
|
]),
|
|
137
|
-
|
|
137
|
+
d((i(), h(f, {
|
|
138
|
+
class: "tw-border tw-rounded-md tw-px-1.5 tw-py-1",
|
|
138
139
|
"ref-name": "lendButton",
|
|
139
140
|
href: n.lendUrl,
|
|
140
141
|
"menu-component": n.KvLendMenu,
|
|
@@ -145,14 +146,14 @@ function se(d, e, t, n, K, x) {
|
|
|
145
146
|
onMouseout: e[3] || (e[3] = (o) => n.handleMouseOut("lendButton")),
|
|
146
147
|
onTouchstart: e[4] || (e[4] = (o) => n.handleTouchStart("lendButton", n.KvLendMenu))
|
|
147
148
|
}, {
|
|
148
|
-
default:
|
|
149
|
-
|
|
149
|
+
default: I(() => e[10] || (e[10] = [
|
|
150
|
+
w(" Lend ")
|
|
150
151
|
])),
|
|
151
152
|
_: 1
|
|
152
153
|
}, 8, ["href", "menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
153
154
|
[a, ["TopNav", "click-Lend"]]
|
|
154
155
|
]),
|
|
155
|
-
|
|
156
|
+
d((i(), h(f, {
|
|
156
157
|
"ref-name": "takeActionButton",
|
|
157
158
|
"base-class": "tw-hidden lg:tw-inline-flex",
|
|
158
159
|
"menu-component": n.KvHeaderTakeActionMenu,
|
|
@@ -162,14 +163,14 @@ function se(d, e, t, n, K, x) {
|
|
|
162
163
|
onOnHover: n.onHover,
|
|
163
164
|
onMouseout: e[5] || (e[5] = (o) => n.onHover())
|
|
164
165
|
}, {
|
|
165
|
-
default:
|
|
166
|
-
|
|
166
|
+
default: I(() => e[11] || (e[11] = [
|
|
167
|
+
w(" Take action ")
|
|
167
168
|
])),
|
|
168
169
|
_: 1
|
|
169
170
|
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
170
171
|
[a, ["TopNav", "click-TakeAction"]]
|
|
171
172
|
]),
|
|
172
|
-
|
|
173
|
+
d((i(), h(f, {
|
|
173
174
|
"ref-name": "aboutUsLink",
|
|
174
175
|
"base-class": "tw-hidden lg:tw-inline-flex",
|
|
175
176
|
"menu-component": n.KvHeaderAboutMenu,
|
|
@@ -179,65 +180,65 @@ function se(d, e, t, n, K, x) {
|
|
|
179
180
|
onOnHover: n.onHover,
|
|
180
181
|
onMouseout: e[6] || (e[6] = (o) => n.onHover())
|
|
181
182
|
}, {
|
|
182
|
-
default:
|
|
183
|
-
|
|
183
|
+
default: I(() => e[12] || (e[12] = [
|
|
184
|
+
w(" About ")
|
|
184
185
|
])),
|
|
185
186
|
_: 1
|
|
186
187
|
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
187
188
|
[a, ["TopNav", "click-About"]]
|
|
188
189
|
]),
|
|
189
190
|
e[15] || (e[15] = D("div", { class: "tw-flex-1 tw-h-full" }, null, -1)),
|
|
190
|
-
t.loggedIn ?
|
|
191
|
+
t.loggedIn ? d((i(), c("a", {
|
|
191
192
|
key: 0,
|
|
192
193
|
ref: "dashboardLink",
|
|
193
194
|
href: t.myDashboardUrl,
|
|
194
|
-
class:
|
|
195
|
+
class: g(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
195
196
|
}, e[13] || (e[13] = [
|
|
196
|
-
|
|
197
|
-
]), 10,
|
|
197
|
+
w(" My dashboard ")
|
|
198
|
+
]), 10, ue)), [
|
|
198
199
|
[a, ["TopNav", "click-Dashboard"]]
|
|
199
|
-
]) :
|
|
200
|
-
t.basketCount > 0 ?
|
|
200
|
+
]) : M("", !0),
|
|
201
|
+
t.basketCount > 0 ? d((i(), c("a", {
|
|
201
202
|
key: 1,
|
|
202
203
|
ref: "basketLink",
|
|
203
204
|
href: "/basket",
|
|
204
|
-
class:
|
|
205
|
+
class: g(["header-link tw-relative", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
205
206
|
}, [
|
|
206
|
-
U(
|
|
207
|
+
U(y, {
|
|
207
208
|
class: "tw-w-3 tw-h-3 tw-pointer-events-none",
|
|
208
209
|
count: t.basketCount
|
|
209
210
|
}, null, 8, ["count"])
|
|
210
211
|
], 2)), [
|
|
211
212
|
[a, ["TopNav", "click-Basket"]]
|
|
212
|
-
]) :
|
|
213
|
+
]) : M("", !0),
|
|
213
214
|
D("div", {
|
|
214
215
|
class: "tw-cursor-pointer tw-flex tw-items-center tw-gap-1",
|
|
215
216
|
onMouseover: e[7] || (e[7] = (...o) => n.handleAvatarMenuPosition && n.handleAvatarMenuPosition(...o)),
|
|
216
217
|
onMouseout: e[8] || (e[8] = (o) => n.handleMouseOut(n.AVATAR_MENU_ID)),
|
|
217
218
|
onTouchstart: e[9] || (e[9] = (o) => n.handleTouchStart(n.AVATAR_MENU_ID))
|
|
218
219
|
}, [
|
|
219
|
-
t.loggedIn ? (i(), c("span", me, F(n.numeral(t.balance).format("$0")), 1)) :
|
|
220
|
-
t.loggedIn ? (i(), h(
|
|
220
|
+
t.loggedIn ? (i(), c("span", me, F(n.numeral(t.balance).format("$0")), 1)) : M("", !0),
|
|
221
|
+
t.loggedIn ? (i(), h(H, {
|
|
221
222
|
key: 1,
|
|
222
223
|
ref: "avatar",
|
|
223
224
|
"lender-name": t.lenderName,
|
|
224
225
|
"lender-image-url": t.lenderImageUrl,
|
|
225
226
|
"is-small": ""
|
|
226
|
-
}, null, 8, ["lender-name", "lender-image-url"])) :
|
|
227
|
+
}, null, 8, ["lender-name", "lender-image-url"])) : M("", !0)
|
|
227
228
|
], 32),
|
|
228
|
-
t.loggedIn ?
|
|
229
|
+
t.loggedIn ? M("", !0) : d((i(), c("a", {
|
|
229
230
|
key: 2,
|
|
230
231
|
ref: "signInLink",
|
|
231
232
|
href: t.loginUrl,
|
|
232
|
-
class:
|
|
233
|
+
class: g(["header-link", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
233
234
|
}, e[14] || (e[14] = [
|
|
234
|
-
|
|
235
|
+
w(" Sign in ")
|
|
235
236
|
]), 10, ve)), [
|
|
236
237
|
[a, ["TopNav", "click-Sign-in"]]
|
|
237
238
|
])
|
|
238
239
|
]);
|
|
239
240
|
}
|
|
240
|
-
const
|
|
241
|
+
const pe = /* @__PURE__ */ te(ae, [["render", se], ["__scopeId", "data-v-be04b1f7"]]);
|
|
241
242
|
export {
|
|
242
|
-
|
|
243
|
+
pe as default
|
|
243
244
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock as t, createElementBlock as r, renderSlot as o } from "vue";
|
|
2
2
|
import n from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, s = { class: "tw-py-1.5 tw-cursor-pointer tw-no-underline hover:tw-
|
|
3
|
+
const c = {}, s = { class: "tw-py-1.5 tw-cursor-pointer tw-no-underline hover:tw-underline tw-text-primary hover:tw-text-action" };
|
|
4
4
|
function a(e, i) {
|
|
5
5
|
return t(), r("a", s, [
|
|
6
6
|
o(e.$slots, "default")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mobile-link[data-v-
|
|
1
|
+
.mobile-link[data-v-58995423]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-58995423]: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 m from "../KvAccordionItem.js";
|
|
2
|
-
import { resolveComponent as k, resolveDirective as v, openBlock as t, createElementBlock as o, createVNode as d, withCtx as a, createElementVNode as l, Fragment as w, renderList as f, withDirectives as n, toDisplayString as
|
|
2
|
+
import { resolveComponent as k, resolveDirective as v, openBlock as t, createElementBlock as o, createVNode as d, withCtx as a, createElementVNode as l, Fragment as w, renderList as f, withDirectives as n, toDisplayString as p, createTextVNode as s } from "vue";
|
|
3
3
|
import "./KvHeaderMobileMenu.css";
|
|
4
4
|
import h from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const b = {
|
|
@@ -46,7 +46,7 @@ const b = {
|
|
|
46
46
|
]
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
}, _ = { class: "tw--mt-0.5 tw-pb-0.5 tw-gap-2 tw-flex tw-flex-col tw-items-end lg:tw-hidden tw-font-medium" }, g = { class: "tw-flex tw-flex-col tw-gap-2" }, x = ["href"], y = { class: "tw-text-secondary tw-font-book" }, N = { class: "tw-flex tw-flex-col tw-gap-2 tw-pt-1 tw-pb-2" }, T = {
|
|
49
|
+
}, _ = { class: "tw--mt-0.5 tw-pb-0.5 tw-gap-2 tw-flex tw-flex-col tw-items-end lg:tw-hidden tw-font-medium tw-px-2.5" }, g = { class: "tw-flex tw-flex-col tw-gap-2" }, x = ["href"], y = { class: "tw-text-secondary tw-font-book" }, N = { class: "tw-flex tw-flex-col tw-gap-2 tw-pt-1 tw-pb-2" }, T = {
|
|
50
50
|
href: "/about",
|
|
51
51
|
class: "mobile-link"
|
|
52
52
|
}, I = {
|
|
@@ -71,7 +71,7 @@ const b = {
|
|
|
71
71
|
href: "/about/due-diligence",
|
|
72
72
|
class: "mobile-link"
|
|
73
73
|
};
|
|
74
|
-
function $(H, e, M, S,
|
|
74
|
+
function $(H, e, M, S, u, V) {
|
|
75
75
|
const c = k("KvAccordionItem"), i = v("kv-track-event");
|
|
76
76
|
return t(), o("nav", _, [
|
|
77
77
|
d(c, {
|
|
@@ -83,14 +83,14 @@ function $(H, e, M, S, p, V) {
|
|
|
83
83
|
])),
|
|
84
84
|
default: a(() => [
|
|
85
85
|
l("div", g, [
|
|
86
|
-
(t(!0), o(w, null, f(
|
|
86
|
+
(t(!0), o(w, null, f(u.menuItems, (r) => n((t(), o("div", {
|
|
87
87
|
key: r.title
|
|
88
88
|
}, [
|
|
89
89
|
l("a", {
|
|
90
90
|
href: r.url,
|
|
91
91
|
class: "mobile-link"
|
|
92
|
-
},
|
|
93
|
-
l("p", y,
|
|
92
|
+
}, p(r.title), 9, x),
|
|
93
|
+
l("p", y, p(r.description), 1)
|
|
94
94
|
])), [
|
|
95
95
|
[i, ["TopNav", `click-menu-${r.trackEvent}`]]
|
|
96
96
|
])), 128))
|
|
@@ -150,7 +150,7 @@ function $(H, e, M, S, p, V) {
|
|
|
150
150
|
})
|
|
151
151
|
]);
|
|
152
152
|
}
|
|
153
|
-
const q = /* @__PURE__ */ h(b, [["render", $], ["__scopeId", "data-v-
|
|
153
|
+
const q = /* @__PURE__ */ h(b, [["render", $], ["__scopeId", "data-v-58995423"]]);
|
|
154
154
|
export {
|
|
155
155
|
q as default
|
|
156
156
|
};
|
|
@@ -23,8 +23,8 @@ const p = {
|
|
|
23
23
|
default: "/mykiva"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
}, y = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start lg:tw-items-start tw-font-medium" };
|
|
27
|
-
function w(k, e, n, b, v,
|
|
26
|
+
}, y = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start lg:tw-items-start tw-font-medium tw-px-2.5" };
|
|
27
|
+
function w(k, e, n, b, v, x) {
|
|
28
28
|
const t = i("kv-header-menu-link");
|
|
29
29
|
return a(), u("nav", y, [
|
|
30
30
|
s(t, {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import i from "./KvHeaderMenuLink.js";
|
|
2
|
-
import { resolveComponent as u, resolveDirective as c, openBlock as o, createElementBlock as
|
|
3
|
-
import
|
|
2
|
+
import { resolveComponent as u, resolveDirective as c, openBlock as o, createElementBlock as p, withDirectives as a, createBlock as s, withCtx as r, createElementVNode as e } from "vue";
|
|
3
|
+
import d from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const m = {
|
|
5
5
|
components: {
|
|
6
6
|
KvHeaderMenuLink: i
|
|
7
7
|
}
|
|
8
|
-
}, v = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium" };
|
|
9
|
-
function f(k, t, w, _, h
|
|
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
|
+
function f(k, t, w, x, _, h) {
|
|
10
10
|
const n = u("kv-header-menu-link"), l = c("kv-track-event");
|
|
11
|
-
return o(),
|
|
11
|
+
return o(), p("nav", v, [
|
|
12
12
|
a((o(), s(n, { href: "/lend-by-category" }, {
|
|
13
13
|
default: r(() => t[0] || (t[0] = [
|
|
14
14
|
e("div", null, [
|
|
@@ -55,7 +55,7 @@ function f(k, t, w, _, h, x) {
|
|
|
55
55
|
])
|
|
56
56
|
]);
|
|
57
57
|
}
|
|
58
|
-
const B = /* @__PURE__ */
|
|
58
|
+
const B = /* @__PURE__ */ d(m, [["render", f]]);
|
|
59
59
|
export {
|
|
60
60
|
B as default
|
|
61
61
|
};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { gql as
|
|
2
|
-
import { toRefs as q, ref as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { indexIn as
|
|
6
|
-
import { groupBy as
|
|
7
|
-
import
|
|
1
|
+
import { gql as f } from "@apollo/client/core";
|
|
2
|
+
import { toRefs as q, ref as i, computed as k, onMounted as S, resolveComponent as h, openBlock as x, createBlock as A, withCtx as B, createVNode as w } from "vue";
|
|
3
|
+
import F from "./KvLendListMenu.js";
|
|
4
|
+
import N from "./KvLendMegaMenu.js";
|
|
5
|
+
import { indexIn as O } from "../../../utils/comparators.js";
|
|
6
|
+
import { groupBy as R, sortBy as L } from "../../../utils/arrayUtils.js";
|
|
7
|
+
import K from "../../KvPageContainer.js";
|
|
8
|
+
import D from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
9
|
const E = {
|
|
9
10
|
components: {
|
|
10
|
-
KvLendListMenu:
|
|
11
|
-
KvLendMegaMenu:
|
|
11
|
+
KvLendListMenu: F,
|
|
12
|
+
KvLendMegaMenu: N,
|
|
13
|
+
KvPageContainer: K
|
|
12
14
|
},
|
|
13
15
|
props: {
|
|
14
16
|
userId: {
|
|
@@ -21,10 +23,10 @@ const E = {
|
|
|
21
23
|
}
|
|
22
24
|
},
|
|
23
25
|
emits: ["load-lend-menu-data"],
|
|
24
|
-
setup(
|
|
26
|
+
setup(y, { emit: p }) {
|
|
25
27
|
const {
|
|
26
28
|
userId: s
|
|
27
|
-
} = q(
|
|
29
|
+
} = q(y), e = i([]), g = i([]), m = i(0), u = i([]), v = [
|
|
28
30
|
"North America",
|
|
29
31
|
"Central America",
|
|
30
32
|
"South America",
|
|
@@ -33,10 +35,10 @@ const E = {
|
|
|
33
35
|
"Middle East",
|
|
34
36
|
"Asia",
|
|
35
37
|
"Oceania"
|
|
36
|
-
],
|
|
37
|
-
var r, t, o,
|
|
38
|
-
if (
|
|
39
|
-
query:
|
|
38
|
+
], c = i(!0), C = i(!0), M = async (a) => {
|
|
39
|
+
var r, t, o, d;
|
|
40
|
+
if (a.watchQuery({
|
|
41
|
+
query: f`query countryFacets {
|
|
40
42
|
lend {
|
|
41
43
|
countryFacets {
|
|
42
44
|
count
|
|
@@ -52,10 +54,10 @@ const E = {
|
|
|
52
54
|
}).subscribe({
|
|
53
55
|
next: ({ data: n }) => {
|
|
54
56
|
var l;
|
|
55
|
-
|
|
57
|
+
g.value = ((l = n == null ? void 0 : n.lend) == null ? void 0 : l.countryFacets) ?? [], c.value = !1;
|
|
56
58
|
}
|
|
57
|
-
}),
|
|
58
|
-
query:
|
|
59
|
+
}), a.watchQuery({
|
|
60
|
+
query: f`
|
|
59
61
|
query lendMenuData {
|
|
60
62
|
lend {
|
|
61
63
|
loanChannels(popular: true, applyMinLoanCount: true, limit: 50) {
|
|
@@ -70,12 +72,12 @@ const E = {
|
|
|
70
72
|
`
|
|
71
73
|
}).subscribe({
|
|
72
74
|
next: ({ data: n }) => {
|
|
73
|
-
var l,
|
|
74
|
-
e.value = ((
|
|
75
|
+
var l, _;
|
|
76
|
+
e.value = ((_ = (l = n == null ? void 0 : n.lend) == null ? void 0 : l.loanChannels) == null ? void 0 : _.values) ?? [], C.value = !1;
|
|
75
77
|
}
|
|
76
78
|
}), s.value) {
|
|
77
|
-
const { data: n } = await
|
|
78
|
-
query:
|
|
79
|
+
const { data: n } = await a.query({
|
|
80
|
+
query: f`
|
|
79
81
|
query lendMenuPrivateData($userId: Int!) {
|
|
80
82
|
lend {
|
|
81
83
|
loans(limit: 1, filters: {
|
|
@@ -100,69 +102,72 @@ const E = {
|
|
|
100
102
|
},
|
|
101
103
|
fetchPolicy: "network-only"
|
|
102
104
|
});
|
|
103
|
-
m.value = ((t = (r = n == null ? void 0 : n.lend) == null ? void 0 : r.loans) == null ? void 0 : t.totalCount) ?? 0, u.value = ((
|
|
105
|
+
m.value = ((t = (r = n == null ? void 0 : n.lend) == null ? void 0 : r.loans) == null ? void 0 : t.totalCount) ?? 0, u.value = ((d = (o = n == null ? void 0 : n.my) == null ? void 0 : o.savedSearches) == null ? void 0 : d.values) ?? [];
|
|
104
106
|
}
|
|
105
|
-
}, b =
|
|
106
|
-
const
|
|
107
|
+
}, b = k(() => {
|
|
108
|
+
const a = g.value.map((o) => ({
|
|
107
109
|
name: o.country.name,
|
|
108
110
|
region: o.country.region,
|
|
109
111
|
isoCode: o.country.isoCode.toLowerCase(),
|
|
110
112
|
count: o.count || 0
|
|
111
|
-
})), r =
|
|
112
|
-
for (const [o,
|
|
113
|
+
})), r = R(a, "region"), t = [];
|
|
114
|
+
for (const [o, d] of Object.entries(r))
|
|
113
115
|
t.push({
|
|
114
116
|
name: o,
|
|
115
|
-
countries:
|
|
117
|
+
countries: d.sort(L("name"))
|
|
116
118
|
});
|
|
117
|
-
return t.sort(
|
|
118
|
-
}), I =
|
|
119
|
+
return t.sort(O(v, "name"));
|
|
120
|
+
}), I = k(() => {
|
|
119
121
|
var r;
|
|
120
122
|
return ((r = e.value) == null ? void 0 : r.map((t) => {
|
|
121
123
|
const o = JSON.parse(JSON.stringify(t));
|
|
122
124
|
return o.url = o.url.replace("lend", "lend-by-category"), o;
|
|
123
|
-
})).sort(
|
|
125
|
+
})).sort(L("name"));
|
|
124
126
|
});
|
|
125
127
|
return S(() => {
|
|
126
|
-
|
|
128
|
+
p("load-lend-menu-data");
|
|
127
129
|
}), {
|
|
128
130
|
onLoad: M,
|
|
129
131
|
regions: b,
|
|
130
132
|
computedCategories: I,
|
|
131
|
-
isChannelsLoading:
|
|
132
|
-
isRegionsLoading:
|
|
133
|
+
isChannelsLoading: C,
|
|
134
|
+
isRegionsLoading: c,
|
|
133
135
|
savedSearches: u,
|
|
134
136
|
favoritesCount: m
|
|
135
137
|
};
|
|
136
138
|
}
|
|
137
139
|
};
|
|
138
|
-
function
|
|
139
|
-
const u =
|
|
140
|
-
return x(), A(
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
140
|
+
function G(y, p, s, e, g, m) {
|
|
141
|
+
const u = h("kv-lend-list-menu"), v = h("kv-lend-mega-menu"), c = h("kv-page-container");
|
|
142
|
+
return x(), A(c, null, {
|
|
143
|
+
default: B(() => [
|
|
144
|
+
w(u, {
|
|
145
|
+
class: "lg:tw-hidden",
|
|
146
|
+
categories: e.computedCategories,
|
|
147
|
+
regions: e.regions,
|
|
148
|
+
"user-id": s.userId,
|
|
149
|
+
favorites: e.favoritesCount,
|
|
150
|
+
searches: e.savedSearches,
|
|
151
|
+
"is-regions-loading": e.isRegionsLoading,
|
|
152
|
+
"is-channels-loading": e.isChannelsLoading,
|
|
153
|
+
"show-m-g-upsell-link": s.showMGUpsellLink
|
|
154
|
+
}, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link"]),
|
|
155
|
+
w(v, {
|
|
156
|
+
class: "tw-hidden lg:tw-block",
|
|
157
|
+
categories: e.computedCategories,
|
|
158
|
+
regions: e.regions,
|
|
159
|
+
"user-id": s.userId,
|
|
160
|
+
favorites: e.favoritesCount,
|
|
161
|
+
searches: e.savedSearches,
|
|
162
|
+
"is-regions-loading": e.isRegionsLoading,
|
|
163
|
+
"is-channels-loading": e.isChannelsLoading,
|
|
164
|
+
"show-m-g-upsell-link": s.showMGUpsellLink
|
|
165
|
+
}, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link"])
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
});
|
|
164
169
|
}
|
|
165
|
-
const
|
|
170
|
+
const T = /* @__PURE__ */ D(E, [["render", G]]);
|
|
166
171
|
export {
|
|
167
|
-
|
|
172
|
+
T as default
|
|
168
173
|
};
|
package/dist/vue/KvWwwHeader.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-
|
|
1
|
+
.header-fade-enter-active[data-v-07310dbf]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-07310dbf]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-07310dbf],.header-fade-leave-to[data-v-07310dbf]{opacity:0}.header-fade-leave[data-v-07310dbf],.header-fade-enter-to[data-v-07310dbf]{opacity:1}.bg-opacity-50[data-v-07310dbf]{background-color:rgba(var(--bg-action-highlight),.5)}
|