@kiva/kv-components 6.47.0 → 6.48.0
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/KvUserAvatar.js +37 -35
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +19 -21
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +90 -83
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +123 -103
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +120 -102
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +57 -51
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +38 -36
- package/package.json +2 -2
package/dist/vue/KvUserAvatar.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { toRefs as
|
|
2
|
-
import { isLegacyPlaceholderAvatar as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
const
|
|
1
|
+
import { toRefs as F, ref as d, computed as u, onMounted as U, resolveComponent as p, openBlock as n, createElementBlock as o, normalizeClass as r, createElementVNode as s, createBlock as H, normalizeStyle as b, createCommentVNode as y, withDirectives as B, vShow as I, toDisplayString as P } from "vue";
|
|
2
|
+
import { isLegacyPlaceholderAvatar as D, randomizedUserAvatarClass as M } from "../utils/imageUtils.js";
|
|
3
|
+
import N from "./KvLoadingPlaceholder.js";
|
|
4
|
+
import V from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const j = {
|
|
6
6
|
name: "KvUserAvatar",
|
|
7
7
|
components: {
|
|
8
|
-
KvLoadingPlaceholder:
|
|
8
|
+
KvLoadingPlaceholder: N
|
|
9
9
|
},
|
|
10
10
|
props: {
|
|
11
11
|
/**
|
|
@@ -30,50 +30,52 @@ const V = {
|
|
|
30
30
|
default: !1
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
|
-
setup(
|
|
33
|
+
setup(f) {
|
|
34
34
|
const {
|
|
35
35
|
lenderName: a,
|
|
36
36
|
lenderImageUrl: t,
|
|
37
37
|
isSmall: e
|
|
38
|
-
} =
|
|
38
|
+
} = F(f), i = d(!0), m = d(null), c = d(null), v = u(() => a.value === "" && t.value === "" || a.value === "Anonymous"), S = () => {
|
|
39
39
|
const l = e != null && e.value ? "tw-w-3 tw-h-3 tw-text-h4" : "tw-w-6 tw-h-6 tw-text-h2";
|
|
40
|
-
return `${
|
|
41
|
-
},
|
|
40
|
+
return `${M(a.value)} ${l}`;
|
|
41
|
+
}, _ = u(() => {
|
|
42
42
|
var l;
|
|
43
43
|
return ((l = t == null ? void 0 : t.value) == null ? void 0 : l.split("/").pop()) ?? "";
|
|
44
|
-
}),
|
|
44
|
+
}), C = u(() => {
|
|
45
45
|
var l;
|
|
46
46
|
return (l = a == null ? void 0 : a.value) == null ? void 0 : l.substring(0, 1).toUpperCase();
|
|
47
47
|
}), g = () => {
|
|
48
48
|
i.value = !1;
|
|
49
|
-
},
|
|
50
|
-
const
|
|
51
|
-
!l || l.complete ?
|
|
49
|
+
}, L = (l, w = 1e4) => new Promise((k, x) => {
|
|
50
|
+
const A = Date.now() + w, h = () => {
|
|
51
|
+
!l || l.complete ? k(l) : Date.now() > A ? x(new Error(`Timeout: ${l.src}`)) : setTimeout(h, 50);
|
|
52
52
|
};
|
|
53
53
|
h();
|
|
54
54
|
});
|
|
55
|
-
return
|
|
55
|
+
return U(async () => {
|
|
56
56
|
const l = m.value;
|
|
57
57
|
try {
|
|
58
|
-
await
|
|
58
|
+
await L(l), g();
|
|
59
59
|
} catch (w) {
|
|
60
60
|
console.log(w.message);
|
|
61
61
|
}
|
|
62
62
|
}), {
|
|
63
|
-
isAnonymousUser:
|
|
64
|
-
avatarClass:
|
|
65
|
-
imageFilename:
|
|
66
|
-
lenderNameFirstLetter:
|
|
67
|
-
isLegacyPlaceholderAvatar:
|
|
63
|
+
isAnonymousUser: v,
|
|
64
|
+
avatarClass: S,
|
|
65
|
+
imageFilename: _,
|
|
66
|
+
lenderNameFirstLetter: C,
|
|
67
|
+
isLegacyPlaceholderAvatar: D,
|
|
68
68
|
isLoading: i,
|
|
69
69
|
onImgLoad: g,
|
|
70
|
-
imageRef: m
|
|
70
|
+
imageRef: m,
|
|
71
|
+
userAvatar: c
|
|
71
72
|
};
|
|
72
73
|
}
|
|
73
|
-
},
|
|
74
|
-
function
|
|
75
|
-
const c =
|
|
74
|
+
}, z = { key: 1 }, E = ["src"], K = { class: "tw-self-center" };
|
|
75
|
+
function R(f, a, t, e, i, m) {
|
|
76
|
+
const c = p("kv-loading-placeholder");
|
|
76
77
|
return n(), o("div", {
|
|
78
|
+
ref: "userAvatar",
|
|
77
79
|
class: r(["data-hj-suppress tw-flex", { "tw-w-3": t.isSmall, "tw-w-6": !t.isSmall }])
|
|
78
80
|
}, [
|
|
79
81
|
e.isAnonymousUser ? (n(), o("div", {
|
|
@@ -101,33 +103,33 @@ function K(u, a, t, e, i, m) {
|
|
|
101
103
|
fill: "white"
|
|
102
104
|
}, null, -1)
|
|
103
105
|
]), 2))
|
|
104
|
-
], 2)) : !e.isLegacyPlaceholderAvatar(e.imageFilename) && e.imageFilename ? (n(), o("div",
|
|
105
|
-
e.isLoading ? (n(),
|
|
106
|
+
], 2)) : !e.isLegacyPlaceholderAvatar(e.imageFilename) && e.imageFilename ? (n(), o("div", z, [
|
|
107
|
+
e.isLoading ? (n(), H(c, {
|
|
106
108
|
key: 0,
|
|
107
|
-
style:
|
|
109
|
+
style: b({
|
|
108
110
|
width: t.isSmall ? "1.5rem" : "3rem",
|
|
109
111
|
height: t.isSmall ? "1.5rem" : "3rem"
|
|
110
112
|
}),
|
|
111
113
|
class: "!tw-rounded-full"
|
|
112
114
|
}, null, 8, ["style"])) : y("", !0),
|
|
113
|
-
|
|
115
|
+
B(s("img", {
|
|
114
116
|
ref: "imageRef",
|
|
115
117
|
src: t.lenderImageUrl,
|
|
116
118
|
alt: "Image of lender",
|
|
117
119
|
class: r(["tw-rounded-full tw-inline-block", { "tw-w-3 tw-h-3": t.isSmall, "tw-w-6 tw-h-6": !t.isSmall }]),
|
|
118
|
-
onLoad: a[0] || (a[0] = (
|
|
119
|
-
}, null, 42,
|
|
120
|
-
[
|
|
120
|
+
onLoad: a[0] || (a[0] = (v) => e.onImgLoad())
|
|
121
|
+
}, null, 42, E), [
|
|
122
|
+
[I, !e.isLoading]
|
|
121
123
|
])
|
|
122
124
|
])) : e.isLegacyPlaceholderAvatar(e.imageFilename) || !e.imageFilename ? (n(), o("div", {
|
|
123
125
|
key: 2,
|
|
124
126
|
class: r(["tw-rounded-full tw-inline-flex tw-align-center tw-justify-center", e.avatarClass()])
|
|
125
127
|
}, [
|
|
126
|
-
s("span",
|
|
128
|
+
s("span", K, P(e.lenderNameFirstLetter), 1)
|
|
127
129
|
], 2)) : y("", !0)
|
|
128
130
|
], 2);
|
|
129
131
|
}
|
|
130
|
-
const
|
|
132
|
+
const J = /* @__PURE__ */ V(j, [["render", R]]);
|
|
131
133
|
export {
|
|
132
|
-
|
|
134
|
+
J as default
|
|
133
135
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { getCurrentInstance as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
const
|
|
5
|
-
components: { KvMaterialIcon:
|
|
1
|
+
import { getCurrentInstance as d, computed as u, resolveComponent as m, openBlock as c, createElementBlock as f, normalizeClass as l, renderSlot as w, createVNode as p } from "vue";
|
|
2
|
+
import v from "../KvMaterialIcon.js";
|
|
3
|
+
import h from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
+
const x = {
|
|
5
|
+
components: { KvMaterialIcon: v },
|
|
6
6
|
props: {
|
|
7
7
|
refName: {
|
|
8
8
|
type: String,
|
|
@@ -37,48 +37,46 @@ const h = {
|
|
|
37
37
|
"on-hover"
|
|
38
38
|
],
|
|
39
39
|
setup(e, { emit: o }) {
|
|
40
|
-
const { proxy: n } =
|
|
40
|
+
const { proxy: n } = d();
|
|
41
41
|
return {
|
|
42
42
|
computedClass: u(() => [
|
|
43
43
|
e.baseClass,
|
|
44
44
|
{ "tw-text-tertiary": e.openMenuItem && e.openMenuItem !== e.menuComponent }
|
|
45
45
|
]),
|
|
46
46
|
handleMouseOver: () => {
|
|
47
|
-
let
|
|
47
|
+
let s = null;
|
|
48
48
|
if (e.sendLinkPosition) {
|
|
49
49
|
const a = n.$refs[e.refName];
|
|
50
50
|
if (a) {
|
|
51
51
|
const t = a.getBoundingClientRect();
|
|
52
|
-
|
|
52
|
+
s = {
|
|
53
53
|
left: `${(t == null ? void 0 : t.left) + (t == null ? void 0 : t.width) / 2}px`,
|
|
54
54
|
transform: "translateX(-50%)",
|
|
55
55
|
borderRadius: "0px 0px 8px 8px"
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
o("on-hover", e.refName, e.menuComponent,
|
|
59
|
+
o("on-hover", e.refName, e.menuComponent, s);
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
63
|
}, C = ["href"];
|
|
64
|
-
function
|
|
64
|
+
function M(e, o, n, r, i, s) {
|
|
65
65
|
const a = m("KvMaterialIcon");
|
|
66
|
-
return
|
|
66
|
+
return c(), f("a", {
|
|
67
67
|
ref: n.refName,
|
|
68
|
-
class:
|
|
68
|
+
class: l(["tw-px-1.5 tw-py-1 tw-mx-1 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
|
-
|
|
71
|
-
onMouseover: o[0] || (o[0] = (...t) => r.handleMouseOver && r.handleMouseOver(...t)),
|
|
72
|
-
onMouseout: o[1] || (o[1] = (...t) => r.handleMouseOver && r.handleMouseOver(...t))
|
|
70
|
+
onMouseover: o[0] || (o[0] = (...t) => r.handleMouseOver && r.handleMouseOver(...t))
|
|
73
71
|
}, [
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
class:
|
|
72
|
+
w(e.$slots, "default"),
|
|
73
|
+
p(a, {
|
|
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 }]),
|
|
77
75
|
icon: n.dropdownIcon
|
|
78
76
|
}, null, 8, ["class", "icon"])
|
|
79
|
-
],
|
|
77
|
+
], 42, C);
|
|
80
78
|
}
|
|
81
|
-
const
|
|
79
|
+
const O = /* @__PURE__ */ h(x, [["render", M]]);
|
|
82
80
|
export {
|
|
83
|
-
|
|
81
|
+
O as default
|
|
84
82
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-link[data-v-
|
|
1
|
+
.header-link[data-v-c569a6b0]{cursor:pointer;padding:1rem .5rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.header-link[data-v-c569a6b0]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}@media (min-width: 64rem){.header-link[data-v-c569a6b0]{padding-left:1.25rem;padding-right:1.25rem}}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as f, ref as
|
|
1
|
+
import { defineAsyncComponent as f, ref as a, computed as O, onMounted as S, onUnmounted as E, resolveComponent as M, resolveDirective as P, openBlock as i, createElementBlock as m, withDirectives as d, normalizeClass as g, createVNode as B, createBlock as b, withCtx as I, createTextVNode as v, createElementVNode as T, createCommentVNode as c, toDisplayString as V } from "vue";
|
|
2
2
|
import { mdiAccountCircle as z, mdiChevronDown as W, mdiMagnify as j, mdiMenu as F } from "@mdi/js";
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
3
|
+
import q from "numeral";
|
|
4
|
+
import G from "../KvMaterialIcon.js";
|
|
5
|
+
import J from "../KvIconBag.js";
|
|
6
|
+
import Q from "./KvHeaderDropdownLink.js";
|
|
7
|
+
import R from "../KvUserAvatar.js";
|
|
8
8
|
import { throttle as X } from "../../utils/throttle.js";
|
|
9
9
|
import "./KvHeaderLinkBar.css";
|
|
10
10
|
import Y from "../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
-
const Z = f(() => import("./KvHeaderMobileMenu.js")),
|
|
11
|
+
const Z = f(() => import("./KvHeaderMobileMenu.js")), C = f(() => import("./KvHeaderMyKivaMenu.js")), $ = f(() => import("./LendMenu/KvLendMenu.js")), ee = f(() => import("./KvHeaderTakeActionMenu.js")), ne = f(() => import("./KvHeaderAboutMenu.js")), D = 118, oe = {
|
|
12
12
|
components: {
|
|
13
|
-
KvMaterialIcon:
|
|
14
|
-
KvIconBag:
|
|
15
|
-
KvHeaderDropdownLink:
|
|
16
|
-
KvUserAvatar:
|
|
13
|
+
KvMaterialIcon: G,
|
|
14
|
+
KvIconBag: J,
|
|
15
|
+
KvHeaderDropdownLink: Q,
|
|
16
|
+
KvUserAvatar: R
|
|
17
17
|
},
|
|
18
18
|
props: {
|
|
19
19
|
loggedIn: {
|
|
@@ -47,54 +47,58 @@ const Z = f(() => import("./KvHeaderMobileMenu.js")), T = f(() => import("./KvHe
|
|
|
47
47
|
isMobile: {
|
|
48
48
|
type: Boolean,
|
|
49
49
|
default: !1
|
|
50
|
+
},
|
|
51
|
+
balance: {
|
|
52
|
+
type: Number,
|
|
53
|
+
default: 0
|
|
50
54
|
}
|
|
51
55
|
},
|
|
52
56
|
emits: [
|
|
53
57
|
"item-hover"
|
|
54
58
|
],
|
|
55
|
-
setup(
|
|
56
|
-
const
|
|
57
|
-
|
|
59
|
+
setup(u, { emit: e }) {
|
|
60
|
+
const o = a(null), n = a(null), x = a(null), h = a(null), p = a(null), s = a(null), H = a(null), y = a(null), r = a(null), t = (l, w, k = null) => {
|
|
61
|
+
e("item-hover", l, w, k);
|
|
58
62
|
}, K = () => {
|
|
59
|
-
var
|
|
60
|
-
const
|
|
63
|
+
var L, N;
|
|
64
|
+
const l = (N = (L = o.value) == null ? void 0 : L.userAvatar) == null ? void 0 : N.getBoundingClientRect();
|
|
61
65
|
let w = null, k = !1;
|
|
62
|
-
if (
|
|
63
|
-
const U = (
|
|
64
|
-
U +
|
|
65
|
-
...k ? { right: 0 } : { left:
|
|
66
|
+
if (l) {
|
|
67
|
+
const U = (l == null ? void 0 : l.left) + (l == null ? void 0 : l.width) / 2 - D / 2;
|
|
68
|
+
U + D > window.outerWidth && (k = !0), w = {
|
|
69
|
+
...k ? { right: 0 } : { left: u.isMobile ? 0 : `${U}px` },
|
|
66
70
|
borderRadius: "0px 0px 8px 8px",
|
|
67
|
-
width: `${
|
|
71
|
+
width: `${u.isMobile ? "100%" : "auto"}`
|
|
68
72
|
};
|
|
69
73
|
}
|
|
70
|
-
|
|
71
|
-
},
|
|
72
|
-
|
|
73
|
-
}, 50),
|
|
74
|
+
t(o.value, C, w);
|
|
75
|
+
}, A = X(() => {
|
|
76
|
+
u.openMenuItem && K();
|
|
77
|
+
}, 50), _ = O(() => u.isMobile ? void 0 : "/lend-by-category");
|
|
74
78
|
return S(() => {
|
|
75
|
-
import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js"), import("./KvHeaderTakeActionMenu.js"), import("./KvHeaderAboutMenu.js"), window.addEventListener("resize",
|
|
79
|
+
import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js"), import("./KvHeaderTakeActionMenu.js"), import("./KvHeaderAboutMenu.js"), window.addEventListener("resize", A);
|
|
76
80
|
}), E(() => {
|
|
77
|
-
window.removeEventListener("resize",
|
|
81
|
+
window.removeEventListener("resize", A);
|
|
78
82
|
}), {
|
|
79
|
-
numeral:
|
|
83
|
+
numeral: q,
|
|
80
84
|
mdiAccountCircle: z,
|
|
81
85
|
mdiChevronDown: W,
|
|
82
86
|
mdiMagnify: j,
|
|
83
87
|
mdiMenu: F,
|
|
84
|
-
onHover:
|
|
85
|
-
avatar:
|
|
88
|
+
onHover: t,
|
|
89
|
+
avatar: o,
|
|
86
90
|
lendButton: n,
|
|
87
|
-
aboutUsLink:
|
|
88
|
-
partnerWithUsLink:
|
|
91
|
+
aboutUsLink: x,
|
|
92
|
+
partnerWithUsLink: h,
|
|
89
93
|
borrowLink: p,
|
|
90
94
|
supportKivaLink: s,
|
|
91
|
-
basketLink:
|
|
95
|
+
basketLink: H,
|
|
92
96
|
signInLink: y,
|
|
93
|
-
menuButton:
|
|
94
|
-
lendUrl:
|
|
97
|
+
menuButton: r,
|
|
98
|
+
lendUrl: _,
|
|
95
99
|
handleAvatarMenuPosition: K,
|
|
96
100
|
KvHeaderMobileMenu: Z,
|
|
97
|
-
KvHeaderMyKivaMenu:
|
|
101
|
+
KvHeaderMyKivaMenu: C,
|
|
98
102
|
KvLendMenu: $,
|
|
99
103
|
KvHeaderTakeActionMenu: ee,
|
|
100
104
|
KvHeaderAboutMenu: ne
|
|
@@ -104,120 +108,123 @@ const Z = f(() => import("./KvHeaderMobileMenu.js")), T = f(() => import("./KvHe
|
|
|
104
108
|
key: 0,
|
|
105
109
|
class: "tw-bg-eco-green-1 tw-py-0.5 tw-px-1 tw-text-eco-green-4"
|
|
106
110
|
}, le = ["href"];
|
|
107
|
-
function ae(
|
|
108
|
-
const p = M("kv-material-icon"), s = M("KvHeaderDropdownLink"),
|
|
109
|
-
return
|
|
110
|
-
d((
|
|
111
|
+
function ae(u, e, o, n, x, h) {
|
|
112
|
+
const p = M("kv-material-icon"), s = M("KvHeaderDropdownLink"), H = M("kv-icon-bag"), y = M("KvUserAvatar"), r = P("kv-track-event");
|
|
113
|
+
return i(), m("div", te, [
|
|
114
|
+
d((i(), m("button", {
|
|
111
115
|
ref: "menuButton",
|
|
112
116
|
class: g(["header-link tw-inline-flex lg:tw-hidden", {
|
|
113
|
-
"tw-text-tertiary":
|
|
117
|
+
"tw-text-tertiary": o.openMenuItem && o.openMenuItem !== n.KvHeaderMobileMenu
|
|
114
118
|
}]),
|
|
115
|
-
onMouseover:
|
|
116
|
-
onMouseout:
|
|
119
|
+
onMouseover: e[0] || (e[0] = (t) => n.onHover(n.menuButton, n.KvHeaderMobileMenu)),
|
|
120
|
+
onMouseout: e[1] || (e[1] = (t) => n.onHover())
|
|
117
121
|
}, [
|
|
118
122
|
B(p, { icon: n.mdiMenu }, null, 8, ["icon"])
|
|
119
123
|
], 34)), [
|
|
120
|
-
[
|
|
124
|
+
[r, o.openMenuItem === n.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
|
|
121
125
|
]),
|
|
122
|
-
d((
|
|
126
|
+
d((i(), b(s, {
|
|
123
127
|
"ref-name": "lendButton",
|
|
124
128
|
href: n.lendUrl,
|
|
125
129
|
"menu-component": n.KvLendMenu,
|
|
126
|
-
"open-menu-item":
|
|
130
|
+
"open-menu-item": o.openMenuItem,
|
|
127
131
|
"dropdown-icon": n.mdiChevronDown,
|
|
128
132
|
"base-class": "tw-inline-flex",
|
|
129
|
-
onOnHover: n.onHover
|
|
133
|
+
onOnHover: n.onHover,
|
|
134
|
+
onMouseout: e[2] || (e[2] = (t) => n.onHover())
|
|
130
135
|
}, {
|
|
131
|
-
default:
|
|
136
|
+
default: I(() => e[7] || (e[7] = [
|
|
132
137
|
v(" Lend ")
|
|
133
138
|
])),
|
|
134
139
|
_: 1
|
|
135
140
|
}, 8, ["href", "menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
136
|
-
[
|
|
141
|
+
[r, ["TopNav", "click-Lend"]]
|
|
137
142
|
]),
|
|
138
|
-
d((
|
|
143
|
+
d((i(), b(s, {
|
|
139
144
|
"ref-name": "takeActionButton",
|
|
140
145
|
"base-class": "tw-hidden lg:tw-inline-flex",
|
|
141
146
|
"menu-component": n.KvHeaderTakeActionMenu,
|
|
142
|
-
"open-menu-item":
|
|
147
|
+
"open-menu-item": o.openMenuItem,
|
|
143
148
|
"dropdown-icon": n.mdiChevronDown,
|
|
144
149
|
"send-link-position": "",
|
|
145
|
-
onOnHover: n.onHover
|
|
150
|
+
onOnHover: n.onHover,
|
|
151
|
+
onMouseout: e[3] || (e[3] = (t) => n.onHover())
|
|
146
152
|
}, {
|
|
147
|
-
default:
|
|
153
|
+
default: I(() => e[8] || (e[8] = [
|
|
148
154
|
v(" Take action ")
|
|
149
155
|
])),
|
|
150
156
|
_: 1
|
|
151
157
|
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
152
|
-
[
|
|
158
|
+
[r, ["TopNav", "click-TakeAction"]]
|
|
153
159
|
]),
|
|
154
|
-
d((
|
|
160
|
+
d((i(), b(s, {
|
|
155
161
|
"ref-name": "aboutUsLink",
|
|
156
162
|
"base-class": "tw-hidden lg:tw-inline-flex",
|
|
157
163
|
"menu-component": n.KvHeaderAboutMenu,
|
|
158
|
-
"open-menu-item":
|
|
164
|
+
"open-menu-item": o.openMenuItem,
|
|
159
165
|
"dropdown-icon": n.mdiChevronDown,
|
|
160
166
|
"send-link-position": "",
|
|
161
|
-
onOnHover: n.onHover
|
|
167
|
+
onOnHover: n.onHover,
|
|
168
|
+
onMouseout: e[4] || (e[4] = (t) => n.onHover())
|
|
162
169
|
}, {
|
|
163
|
-
default:
|
|
170
|
+
default: I(() => e[9] || (e[9] = [
|
|
164
171
|
v(" About ")
|
|
165
172
|
])),
|
|
166
173
|
_: 1
|
|
167
174
|
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
168
|
-
[
|
|
175
|
+
[r, ["TopNav", "click-About"]]
|
|
169
176
|
]),
|
|
170
|
-
|
|
171
|
-
|
|
177
|
+
e[12] || (e[12] = T("div", { class: "tw-flex-1 tw-h-full" }, null, -1)),
|
|
178
|
+
o.loggedIn ? d((i(), m("a", {
|
|
172
179
|
key: 0,
|
|
173
180
|
ref: "dashboardLink",
|
|
174
|
-
href:
|
|
175
|
-
class: g(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!
|
|
176
|
-
},
|
|
181
|
+
href: o.myDashboardUrl,
|
|
182
|
+
class: g(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!o.openMenuItem }])
|
|
183
|
+
}, e[10] || (e[10] = [
|
|
177
184
|
v(" My dashboard ")
|
|
178
185
|
]), 10, ie)), [
|
|
179
|
-
[
|
|
186
|
+
[r, ["TopNav", "click-Dashboard"]]
|
|
180
187
|
]) : c("", !0),
|
|
181
|
-
|
|
188
|
+
o.basketCount > 0 ? d((i(), m("a", {
|
|
182
189
|
key: 1,
|
|
183
190
|
ref: "basketLink",
|
|
184
191
|
href: "/basket",
|
|
185
|
-
class: g(["header-link tw-relative", { "tw-text-tertiary": !!
|
|
192
|
+
class: g(["header-link tw-relative", { "tw-text-tertiary": !!o.openMenuItem }])
|
|
186
193
|
}, [
|
|
187
|
-
B(
|
|
194
|
+
B(H, {
|
|
188
195
|
class: "tw-w-3 tw-h-3 tw-pointer-events-none",
|
|
189
|
-
count:
|
|
196
|
+
count: o.basketCount
|
|
190
197
|
}, null, 8, ["count"])
|
|
191
198
|
], 2)), [
|
|
192
|
-
[
|
|
199
|
+
[r, ["TopNav", "click-Basket"]]
|
|
193
200
|
]) : c("", !0),
|
|
194
|
-
|
|
201
|
+
T("div", {
|
|
195
202
|
class: "tw-cursor-pointer tw-flex tw-items-center tw-gap-1",
|
|
196
|
-
onMouseover:
|
|
197
|
-
onMouseout:
|
|
203
|
+
onMouseover: e[5] || (e[5] = (...t) => n.handleAvatarMenuPosition && n.handleAvatarMenuPosition(...t)),
|
|
204
|
+
onMouseout: e[6] || (e[6] = (t) => n.onHover())
|
|
198
205
|
}, [
|
|
199
|
-
|
|
200
|
-
|
|
206
|
+
o.loggedIn ? (i(), m("span", re, V(n.numeral(o.balance).format("$0")), 1)) : c("", !0),
|
|
207
|
+
o.loggedIn ? (i(), b(y, {
|
|
201
208
|
key: 1,
|
|
202
209
|
ref: "avatar",
|
|
203
|
-
"lender-name":
|
|
204
|
-
"lender-image-url":
|
|
210
|
+
"lender-name": o.lenderName,
|
|
211
|
+
"lender-image-url": o.lenderImageUrl,
|
|
205
212
|
"is-small": ""
|
|
206
213
|
}, null, 8, ["lender-name", "lender-image-url"])) : c("", !0)
|
|
207
214
|
], 32),
|
|
208
|
-
|
|
215
|
+
o.loggedIn ? c("", !0) : d((i(), m("a", {
|
|
209
216
|
key: 2,
|
|
210
217
|
ref: "signInLink",
|
|
211
|
-
href:
|
|
212
|
-
class: g(["header-link", { "tw-text-tertiary": !!
|
|
213
|
-
},
|
|
218
|
+
href: o.loginUrl,
|
|
219
|
+
class: g(["header-link", { "tw-text-tertiary": !!o.openMenuItem }])
|
|
220
|
+
}, e[11] || (e[11] = [
|
|
214
221
|
v(" Sign in ")
|
|
215
222
|
]), 10, le)), [
|
|
216
|
-
[
|
|
223
|
+
[r, ["TopNav", "click-Sign-in"]]
|
|
217
224
|
])
|
|
218
225
|
]);
|
|
219
226
|
}
|
|
220
|
-
const pe = /* @__PURE__ */ Y(oe, [["render", ae], ["__scopeId", "data-v-
|
|
227
|
+
const pe = /* @__PURE__ */ Y(oe, [["render", ae], ["__scopeId", "data-v-c569a6b0"]]);
|
|
221
228
|
export {
|
|
222
229
|
pe as default
|
|
223
230
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.lend-link[data-v-
|
|
1
|
+
.lend-link[data-v-41849311]{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-41849311]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
|