@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.
@@ -1,11 +1,11 @@
1
- import { toRefs as A, ref as v, computed as d, onMounted as F, resolveComponent as U, openBlock as n, createElementBlock as o, normalizeClass as r, createElementVNode as s, createBlock as p, normalizeStyle as H, createCommentVNode as y, withDirectives as b, vShow as B, toDisplayString as I } from "vue";
2
- import { isLegacyPlaceholderAvatar as P, randomizedUserAvatarClass as D } from "../utils/imageUtils.js";
3
- import M from "./KvLoadingPlaceholder.js";
4
- import N from "../_virtual/_plugin-vue_export-helper.js";
5
- const V = {
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: M
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(u) {
33
+ setup(f) {
34
34
  const {
35
35
  lenderName: a,
36
36
  lenderImageUrl: t,
37
37
  isSmall: e
38
- } = A(u), i = v(!0), m = v(null), c = d(() => a.value === "" && t.value === "" || a.value === "Anonymous"), f = () => {
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 `${D(a.value)} ${l}`;
41
- }, S = d(() => {
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
- }), _ = d(() => {
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
- }, C = (l, w = 1e4) => new Promise((L, k) => {
50
- const x = Date.now() + w, h = () => {
51
- !l || l.complete ? L(l) : Date.now() > x ? k(new Error(`Timeout: ${l.src}`)) : setTimeout(h, 50);
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 F(async () => {
55
+ return U(async () => {
56
56
  const l = m.value;
57
57
  try {
58
- await C(l), g();
58
+ await L(l), g();
59
59
  } catch (w) {
60
60
  console.log(w.message);
61
61
  }
62
62
  }), {
63
- isAnonymousUser: c,
64
- avatarClass: f,
65
- imageFilename: S,
66
- lenderNameFirstLetter: _,
67
- isLegacyPlaceholderAvatar: P,
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
- }, j = { key: 1 }, z = ["src"], E = { class: "tw-self-center" };
74
- function K(u, a, t, e, i, m) {
75
- const c = U("kv-loading-placeholder");
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", j, [
105
- e.isLoading ? (n(), p(c, {
106
+ ], 2)) : !e.isLegacyPlaceholderAvatar(e.imageFilename) && e.imageFilename ? (n(), o("div", z, [
107
+ e.isLoading ? (n(), H(c, {
106
108
  key: 0,
107
- style: H({
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
- b(s("img", {
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] = (f) => e.onImgLoad())
119
- }, null, 42, z), [
120
- [B, !e.isLoading]
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", E, I(e.lenderNameFirstLetter), 1)
128
+ s("span", K, P(e.lenderNameFirstLetter), 1)
127
129
  ], 2)) : y("", !0)
128
130
  ], 2);
129
131
  }
130
- const G = /* @__PURE__ */ N(V, [["render", K]]);
132
+ const J = /* @__PURE__ */ V(j, [["render", R]]);
131
133
  export {
132
- G as default
134
+ J as default
133
135
  };
@@ -1,8 +1,8 @@
1
- import { getCurrentInstance as i, computed as u, resolveComponent as m, openBlock as f, createElementBlock as c, normalizeClass as s, normalizeStyle as w, renderSlot as p, createVNode as v } from "vue";
2
- import M from "../KvMaterialIcon.js";
3
- import y from "../../_virtual/_plugin-vue_export-helper.js";
4
- const h = {
5
- components: { KvMaterialIcon: M },
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 } = i();
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 l = null;
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
- l = {
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, l);
59
+ o("on-hover", e.refName, e.menuComponent, s);
60
60
  }
61
61
  };
62
62
  }
63
63
  }, C = ["href"];
64
- function x(e, o, n, r, d, l) {
64
+ function M(e, o, n, r, i, s) {
65
65
  const a = m("KvMaterialIcon");
66
- return f(), c("a", {
66
+ return c(), f("a", {
67
67
  ref: n.refName,
68
- class: s(["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]),
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
- style: w(e.style),
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
- p(e.$slots, "default"),
75
- v(a, {
76
- class: s(["tw-inline tw-w-3 tw-ml-0.5 tw-transition-transform tw-duration-300", { "tw-rotate-180": n.openMenuItem === n.menuComponent }]),
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
- ], 46, C);
77
+ ], 42, C);
80
78
  }
81
- const _ = /* @__PURE__ */ y(h, [["render", x]]);
79
+ const O = /* @__PURE__ */ h(x, [["render", M]]);
82
80
  export {
83
- _ as default
81
+ O as default
84
82
  };
@@ -1 +1 @@
1
- .header-link[data-v-9da32973]{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-9da32973]: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-9da32973]{padding-left:1.25rem;padding-right:1.25rem}}
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 l, computed as O, onMounted as S, onUnmounted as E, resolveComponent as M, resolveDirective as P, openBlock as t, createElementBlock as u, withDirectives as d, normalizeClass as g, createVNode as B, createBlock as b, withCtx as H, createTextVNode as v, createElementVNode as N, createCommentVNode as c, toDisplayString as V } from "vue";
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 R from "numeral";
4
- import q from "../KvMaterialIcon.js";
5
- import G from "../KvIconBag.js";
6
- import J from "./KvHeaderDropdownLink.js";
7
- import Q from "../KvUserAvatar.js";
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")), T = f(() => import("./KvHeaderMyKivaMenu.js")), $ = f(() => import("./LendMenu/KvLendMenu.js")), ee = f(() => import("./KvHeaderTakeActionMenu.js")), ne = f(() => import("./KvHeaderAboutMenu.js")), C = 118, oe = {
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: q,
14
- KvIconBag: G,
15
- KvHeaderDropdownLink: J,
16
- KvUserAvatar: Q
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(m, { emit: o }) {
56
- const e = l(null), n = l(null), I = l(null), x = l(null), p = l(null), s = l(null), h = l(null), y = l(null), i = l(null), a = (r, w, k = null) => {
57
- o("item-hover", r, w, k);
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 A, _;
60
- const r = (_ = (A = e.value) == null ? void 0 : A.imageRef) == null ? void 0 : _.getBoundingClientRect();
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 (r) {
63
- const U = (r == null ? void 0 : r.left) + (r == null ? void 0 : r.width) / 2 - C / 2;
64
- U + C > window.outerWidth && (k = !0), w = {
65
- ...k ? { right: 0 } : { left: m.isMobile ? 0 : `${U}px` },
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: `${m.isMobile ? "100%" : "auto"}`
71
+ width: `${u.isMobile ? "100%" : "auto"}`
68
72
  };
69
73
  }
70
- a(e.value, T, w);
71
- }, L = X(() => {
72
- m.openMenuItem && K();
73
- }, 50), D = O(() => m.isMobile ? void 0 : "/lend-by-category");
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", L);
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", L);
81
+ window.removeEventListener("resize", A);
78
82
  }), {
79
- numeral: R,
83
+ numeral: q,
80
84
  mdiAccountCircle: z,
81
85
  mdiChevronDown: W,
82
86
  mdiMagnify: j,
83
87
  mdiMenu: F,
84
- onHover: a,
85
- avatar: e,
88
+ onHover: t,
89
+ avatar: o,
86
90
  lendButton: n,
87
- aboutUsLink: I,
88
- partnerWithUsLink: x,
91
+ aboutUsLink: x,
92
+ partnerWithUsLink: h,
89
93
  borrowLink: p,
90
94
  supportKivaLink: s,
91
- basketLink: h,
95
+ basketLink: H,
92
96
  signInLink: y,
93
- menuButton: i,
94
- lendUrl: D,
97
+ menuButton: r,
98
+ lendUrl: _,
95
99
  handleAvatarMenuPosition: K,
96
100
  KvHeaderMobileMenu: Z,
97
- KvHeaderMyKivaMenu: T,
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(m, o, e, n, I, x) {
108
- const p = M("kv-material-icon"), s = M("KvHeaderDropdownLink"), h = M("kv-icon-bag"), y = M("KvUserAvatar"), i = P("kv-track-event");
109
- return t(), u("div", te, [
110
- d((t(), u("button", {
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": e.openMenuItem && e.openMenuItem !== n.KvHeaderMobileMenu
117
+ "tw-text-tertiary": o.openMenuItem && o.openMenuItem !== n.KvHeaderMobileMenu
114
118
  }]),
115
- onMouseover: o[0] || (o[0] = (a) => n.onHover(n.menuButton, n.KvHeaderMobileMenu)),
116
- onMouseout: o[1] || (o[1] = (a) => n.onHover())
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
- [i, e.openMenuItem === n.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
124
+ [r, o.openMenuItem === n.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
121
125
  ]),
122
- d((t(), b(s, {
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": e.openMenuItem,
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: H(() => o[4] || (o[4] = [
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
- [i, ["TopNav", "click-Lend"]]
141
+ [r, ["TopNav", "click-Lend"]]
137
142
  ]),
138
- d((t(), b(s, {
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": e.openMenuItem,
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: H(() => o[5] || (o[5] = [
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
- [i, ["TopNav", "click-TakeAction"]]
158
+ [r, ["TopNav", "click-TakeAction"]]
153
159
  ]),
154
- d((t(), b(s, {
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": e.openMenuItem,
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: H(() => o[6] || (o[6] = [
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
- [i, ["TopNav", "click-About"]]
175
+ [r, ["TopNav", "click-About"]]
169
176
  ]),
170
- o[9] || (o[9] = N("div", { class: "tw-flex-1 tw-h-full" }, null, -1)),
171
- e.loggedIn ? d((t(), u("a", {
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: e.myDashboardUrl,
175
- class: g(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!e.openMenuItem }])
176
- }, o[7] || (o[7] = [
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
- [i, ["TopNav", "click-Dashboard"]]
186
+ [r, ["TopNav", "click-Dashboard"]]
180
187
  ]) : c("", !0),
181
- e.basketCount > 0 ? d((t(), u("a", {
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": !!e.openMenuItem }])
192
+ class: g(["header-link tw-relative", { "tw-text-tertiary": !!o.openMenuItem }])
186
193
  }, [
187
- B(h, {
194
+ B(H, {
188
195
  class: "tw-w-3 tw-h-3 tw-pointer-events-none",
189
- count: e.basketCount
196
+ count: o.basketCount
190
197
  }, null, 8, ["count"])
191
198
  ], 2)), [
192
- [i, ["TopNav", "click-Basket"]]
199
+ [r, ["TopNav", "click-Basket"]]
193
200
  ]) : c("", !0),
194
- N("div", {
201
+ T("div", {
195
202
  class: "tw-cursor-pointer tw-flex tw-items-center tw-gap-1",
196
- onMouseover: o[2] || (o[2] = (...a) => n.handleAvatarMenuPosition && n.handleAvatarMenuPosition(...a)),
197
- onMouseout: o[3] || (o[3] = (a) => n.onHover())
203
+ onMouseover: e[5] || (e[5] = (...t) => n.handleAvatarMenuPosition && n.handleAvatarMenuPosition(...t)),
204
+ onMouseout: e[6] || (e[6] = (t) => n.onHover())
198
205
  }, [
199
- e.loggedIn ? (t(), u("span", re, V(n.numeral(m.balance).format("$0")), 1)) : c("", !0),
200
- e.loggedIn ? (t(), b(y, {
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": e.lenderName,
204
- "lender-image-url": e.lenderImageUrl,
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
- e.loggedIn ? c("", !0) : d((t(), u("a", {
215
+ o.loggedIn ? c("", !0) : d((i(), m("a", {
209
216
  key: 2,
210
217
  ref: "signInLink",
211
- href: e.loginUrl,
212
- class: g(["header-link", { "tw-text-tertiary": !!e.openMenuItem }])
213
- }, o[8] || (o[8] = [
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
- [i, ["TopNav", "click-Sign-in"]]
223
+ [r, ["TopNav", "click-Sign-in"]]
217
224
  ])
218
225
  ]);
219
226
  }
220
- const pe = /* @__PURE__ */ Y(oe, [["render", ae], ["__scopeId", "data-v-9da32973"]]);
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-4fed1891]{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-4fed1891]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
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}