@kiva/kv-components 6.49.1 → 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.
@@ -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 m, openBlock as c, createElementBlock as f, normalizeClass as l, renderSlot as w, createVNode as p } from "vue";
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 x = {
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
- }, C = ["href"];
64
- function M(e, o, n, r, i, s) {
65
- const a = m("KvMaterialIcon");
66
- return c(), f("a", {
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-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-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
- w(e.$slots, "default"),
73
- p(a, {
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, C);
77
+ ], 42, M);
78
78
  }
79
- const O = /* @__PURE__ */ h(x, [["render", M]]);
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-ae8c3f96]{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-ae8c3f96]: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-ae8c3f96]{padding-left:1.25rem;padding-right:1.25rem}}
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 w, ref as l, computed as P, onMounted as z, onUnmounted as W, resolveComponent as g, resolveDirective as j, openBlock as i, createElementBlock as c, withDirectives as u, normalizeClass as b, createVNode as U, createBlock as h, withCtx as p, createTextVNode as M, createElementVNode as D, createCommentVNode as k, toDisplayString as F } from "vue";
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 = w(() => import("./KvHeaderMobileMenu.js")), O = w(() => import("./KvHeaderMyKivaMenu.js")), re = w(() => import("./LendMenu/KvLendMenu.js")), le = w(() => import("./KvHeaderTakeActionMenu.js")), ie = w(() => import("./KvHeaderAboutMenu.js")), C = 118, T = "avatar-menu", ae = {
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(d, { emit: e }) {
60
- const t = l(null), n = l(null), K = l(null), x = l(null), A = l(null), f = l(null), H = l(null), y = l(null), a = l(null), o = l(null), m = (r, v, s = 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
- d.isMobile || m(r, v, s);
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: d.isMobile ? 0 : `${s}px` },
72
+ ...s + C > window.outerWidth ? { right: 0 } : { left: u.isMobile ? 0 : `${s}px` },
73
73
  borderRadius: "0px 0px 8px 8px",
74
- width: d.isMobile ? "100%" : "auto"
74
+ width: u.isMobile ? "100%" : "auto"
75
75
  };
76
- }, I = () => {
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 ? I() : m(r, v)) : (o.value = null, m());
79
+ !o.value || o.value !== r ? (o.value = r, r === T ? p() : m(r, v)) : (o.value = null, m());
80
80
  }, L = ne(() => {
81
- d.openMenuItem && I();
82
- }, 50), R = P(() => d.isMobile ? void 0 : "/lend-by-category");
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: K,
99
- partnerWithUsLink: x,
98
+ aboutUsLink: x,
99
+ partnerWithUsLink: K,
100
100
  borrowLink: A,
101
101
  supportKivaLink: f,
102
- basketLink: H,
103
- signInLink: y,
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: I,
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
- }, ue = { class: "tw-h-full tw-flex tw-items-center" }, de = ["href"], me = {
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(d, e, t, n, K, x) {
122
- const A = g("kv-material-icon"), f = g("KvHeaderDropdownLink"), H = g("kv-icon-bag"), y = g("KvUserAvatar"), a = j("kv-track-event");
123
- return i(), c("div", ue, [
124
- u((i(), c("button", {
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: b(["header-link tw-inline-flex lg:tw-hidden", {
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
- u((i(), h(f, {
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: p(() => e[10] || (e[10] = [
149
- M(" Lend ")
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
- u((i(), h(f, {
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: p(() => e[11] || (e[11] = [
166
- M(" Take action ")
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
- u((i(), h(f, {
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: p(() => e[12] || (e[12] = [
183
- M(" About ")
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 ? u((i(), c("a", {
191
+ t.loggedIn ? d((i(), c("a", {
191
192
  key: 0,
192
193
  ref: "dashboardLink",
193
194
  href: t.myDashboardUrl,
194
- class: b(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!t.openMenuItem }])
195
+ class: g(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!t.openMenuItem }])
195
196
  }, e[13] || (e[13] = [
196
- M(" My dashboard ")
197
- ]), 10, de)), [
197
+ w(" My dashboard ")
198
+ ]), 10, ue)), [
198
199
  [a, ["TopNav", "click-Dashboard"]]
199
- ]) : k("", !0),
200
- t.basketCount > 0 ? u((i(), c("a", {
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: b(["header-link tw-relative", { "tw-text-tertiary": !!t.openMenuItem }])
205
+ class: g(["header-link tw-relative", { "tw-text-tertiary": !!t.openMenuItem }])
205
206
  }, [
206
- U(H, {
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
- ]) : k("", !0),
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)) : k("", !0),
220
- t.loggedIn ? (i(), h(y, {
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"])) : k("", !0)
227
+ }, null, 8, ["lender-name", "lender-image-url"])) : M("", !0)
227
228
  ], 32),
228
- t.loggedIn ? k("", !0) : u((i(), c("a", {
229
+ t.loggedIn ? M("", !0) : d((i(), c("a", {
229
230
  key: 2,
230
231
  ref: "signInLink",
231
232
  href: t.loginUrl,
232
- class: b(["header-link", { "tw-text-tertiary": !!t.openMenuItem }])
233
+ class: g(["header-link", { "tw-text-tertiary": !!t.openMenuItem }])
233
234
  }, e[14] || (e[14] = [
234
- M(" Sign in ")
235
+ w(" Sign in ")
235
236
  ]), 10, ve)), [
236
237
  [a, ["TopNav", "click-Sign-in"]]
237
238
  ])
238
239
  ]);
239
240
  }
240
- const Ie = /* @__PURE__ */ te(ae, [["render", se], ["__scopeId", "data-v-ae8c3f96"]]);
241
+ const pe = /* @__PURE__ */ te(ae, [["render", se], ["__scopeId", "data-v-be04b1f7"]]);
241
242
  export {
242
- Ie as default
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-no-underline tw-text-primary hover:tw-text-action" };
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-463ea821]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-463ea821]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}
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 u, createTextVNode as s } from "vue";
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, p, V) {
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(p.menuItems, (r) => n((t(), o("div", {
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
- }, u(r.title), 9, x),
93
- l("p", y, u(r.description), 1)
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-463ea821"]]);
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, B) {
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 d, withDirectives as a, createBlock as s, withCtx as r, createElementVNode as e } from "vue";
3
- import p from "../../_virtual/_plugin-vue_export-helper.js";
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, x) {
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(), d("nav", v, [
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__ */ p(m, [["render", f]]);
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 v } from "@apollo/client/core";
2
- import { toRefs as q, ref as a, computed as _, onMounted as S, resolveComponent as L, openBlock as x, createElementBlock as A, createVNode as k } from "vue";
3
- import B from "./KvLendListMenu.js";
4
- import F from "./KvLendMegaMenu.js";
5
- import { indexIn as N } from "../../../utils/comparators.js";
6
- import { groupBy as O, sortBy as w } from "../../../utils/arrayUtils.js";
7
- import R from "../../../_virtual/_plugin-vue_export-helper.js";
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: B,
11
- KvLendMegaMenu: F
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(f, { emit: h }) {
26
+ setup(y, { emit: p }) {
25
27
  const {
26
28
  userId: s
27
- } = q(f), e = a([]), d = a([]), m = a(0), u = a([]), g = [
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
- ], y = a(!0), p = a(!0), M = async (i) => {
37
- var r, t, o, c;
38
- if (i.watchQuery({
39
- query: v`query countryFacets {
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
- d.value = ((l = n == null ? void 0 : n.lend) == null ? void 0 : l.countryFacets) ?? [], y.value = !1;
57
+ g.value = ((l = n == null ? void 0 : n.lend) == null ? void 0 : l.countryFacets) ?? [], c.value = !1;
56
58
  }
57
- }), i.watchQuery({
58
- query: v`
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, C;
74
- e.value = ((C = (l = n == null ? void 0 : n.lend) == null ? void 0 : l.loanChannels) == null ? void 0 : C.values) ?? [], p.value = !1;
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 i.query({
78
- query: v`
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 = ((c = (o = n == null ? void 0 : n.my) == null ? void 0 : o.savedSearches) == null ? void 0 : c.values) ?? [];
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 i = d.value.map((o) => ({
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 = O(i, "region"), t = [];
112
- for (const [o, c] of Object.entries(r))
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: c.sort(w("name"))
117
+ countries: d.sort(L("name"))
116
118
  });
117
- return t.sort(N(g, "name"));
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(w("name"));
125
+ })).sort(L("name"));
124
126
  });
125
127
  return S(() => {
126
- h("load-lend-menu-data");
128
+ p("load-lend-menu-data");
127
129
  }), {
128
130
  onLoad: M,
129
131
  regions: b,
130
132
  computedCategories: I,
131
- isChannelsLoading: p,
132
- isRegionsLoading: y,
133
+ isChannelsLoading: C,
134
+ isRegionsLoading: c,
133
135
  savedSearches: u,
134
136
  favoritesCount: m
135
137
  };
136
138
  }
137
139
  };
138
- function D(f, h, s, e, d, m) {
139
- const u = L("kv-lend-list-menu"), g = L("kv-lend-mega-menu");
140
- return x(), A("div", null, [
141
- k(u, {
142
- class: "lg:tw-hidden",
143
- categories: e.computedCategories,
144
- regions: e.regions,
145
- "user-id": s.userId,
146
- favorites: e.favoritesCount,
147
- searches: e.savedSearches,
148
- "is-regions-loading": e.isRegionsLoading,
149
- "is-channels-loading": e.isChannelsLoading,
150
- "show-m-g-upsell-link": s.showMGUpsellLink
151
- }, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link"]),
152
- k(g, {
153
- class: "tw-hidden lg:tw-block",
154
- categories: e.computedCategories,
155
- regions: e.regions,
156
- "user-id": s.userId,
157
- favorites: e.favoritesCount,
158
- searches: e.savedSearches,
159
- "is-regions-loading": e.isRegionsLoading,
160
- "is-channels-loading": e.isChannelsLoading,
161
- "show-m-g-upsell-link": s.showMGUpsellLink
162
- }, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link"])
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 V = /* @__PURE__ */ R(E, [["render", D]]);
170
+ const T = /* @__PURE__ */ D(E, [["render", G]]);
166
171
  export {
167
- V as default
172
+ T as default
168
173
  };
@@ -1 +1 @@
1
- .header-margins[data-v-c4b7061b]{margin:0 auto;max-width:1400px}.header-fade-enter-active[data-v-c4b7061b]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-c4b7061b]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-c4b7061b],.header-fade-leave-to[data-v-c4b7061b]{opacity:0}.header-fade-leave[data-v-c4b7061b],.header-fade-enter-to[data-v-c4b7061b]{opacity:1}.bg-opacity-50[data-v-c4b7061b]{background-color:rgba(var(--bg-action-highlight),.5)}
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)}
@@ -1,14 +1,16 @@
1
- import { ref as i, shallowRef as L, resolveComponent as c, resolveDirective as M, openBlock as v, createBlock as y, withCtx as f, createElementVNode as m, createVNode as u, Transition as k, withDirectives as g, vShow as p, createElementBlock as C, normalizeStyle as H, resolveDynamicComponent as B } from "vue";
2
- import D from "./KvWwwHeader/KvHeaderLinkBar.js";
3
- import U from "./KvWwwHeader/KvHeaderLogo.js";
4
- import x from "./KvThemeProvider.js";
1
+ import { ref as i, shallowRef as L, resolveComponent as u, resolveDirective as M, openBlock as v, createBlock as h, withCtx as c, createElementVNode as f, createVNode as s, Transition as p, withDirectives as g, vShow as I, createElementBlock as H, normalizeStyle as B, resolveDynamicComponent as D } from "vue";
2
+ import U from "./KvWwwHeader/KvHeaderLinkBar.js";
3
+ import N from "./KvWwwHeader/KvHeaderLogo.js";
4
+ import T from "./KvThemeProvider.js";
5
+ import x from "./KvPageContainer.js";
5
6
  import "./KvWwwHeader.css";
6
- import N from "../_virtual/_plugin-vue_export-helper.js";
7
- const T = {
7
+ import S from "../_virtual/_plugin-vue_export-helper.js";
8
+ const E = {
8
9
  components: {
9
- KvHeaderLinkBar: D,
10
- KvHeaderLogo: U,
11
- KvThemeProvider: x
10
+ KvHeaderLinkBar: U,
11
+ KvHeaderLogo: N,
12
+ KvThemeProvider: T,
13
+ KvPageContainer: x
12
14
  },
13
15
  props: {
14
16
  loggedIn: {
@@ -63,98 +65,104 @@ const T = {
63
65
  emits: [
64
66
  "load-lend-menu-data"
65
67
  ],
66
- setup(I, { emit: n }) {
67
- const e = i(!0), t = i(null), l = i(!1), a = L(null), s = i(null), r = i({ left: 0, position: "relative" });
68
- let d;
68
+ setup(C, { emit: t }) {
69
+ const e = i(!0), n = i(null), l = i(!1), a = L(null), d = i(null), r = i({ left: 0, position: "relative" });
70
+ let m;
69
71
  return {
70
72
  emitLendMenuEvent: () => {
71
- n("load-lend-menu-data");
73
+ t("load-lend-menu-data");
72
74
  },
73
75
  linksVisible: e,
74
76
  menuOpen: l,
75
- onHover: (_, o, h) => {
76
- o ? (clearTimeout(d), a.value !== o && (r.value = { left: 0, position: "relative" }), a.value = o, l.value = !0, h && (r.value = {
77
- ...h,
77
+ onHover: (k, o, y) => {
78
+ o ? (clearTimeout(m), a.value !== o && (r.value = { left: 0, position: "relative" }), a.value = o, l.value = !0, y && (r.value = {
79
+ ...y,
78
80
  position: "absolute"
79
- })) : l.value && (d = setTimeout(() => {
81
+ })) : l.value && (m = setTimeout(() => {
80
82
  l.value = !1, a.value = null;
81
83
  }, 50));
82
84
  },
83
- loadMenuData: (_) => {
85
+ loadMenuData: (k) => {
84
86
  var o;
85
- (o = s.value) == null || o.onLoad(_);
87
+ (o = d.value) == null || o.onLoad(k);
86
88
  },
87
- activeHeaderItem: t,
89
+ activeHeaderItem: n,
88
90
  menuComponent: a,
89
- menuComponentInstance: s,
91
+ menuComponentInstance: d,
90
92
  menuPosition: r
91
93
  };
92
94
  }
93
- }, S = {
94
- class: "header-margins tw-relative tw-py-1 tw-px-1.5 tw-font-medium",
95
+ }, K = {
96
+ class: "tw-font-medium",
95
97
  style: { height: "3.75rem" }
96
- }, E = {
98
+ }, V = {
97
99
  href: "/",
98
100
  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"
99
- }, K = {
101
+ }, P = {
100
102
  class: "tw-absolute tw-z-modal tw-h-full tw-inset-x-0 tw-bg-eco-green-4 bg-opacity-50 tw-min-h-screen",
101
103
  style: { top: "3.75rem" }
102
- }, V = { class: "header-margins tw-px-2.5" };
103
- function z(I, n, e, t, l, a) {
104
- const s = c("kv-header-link-bar"), r = c("kv-header-logo"), d = c("kv-theme-provider"), b = M("kv-track-event");
105
- return v(), y(d, { tag: "div" }, {
106
- default: f(() => [
107
- m("nav", S, [
108
- u(k, { name: "header-fade" }, {
109
- default: f(() => [
110
- g(u(s, {
111
- "logged-in": e.loggedIn,
112
- "basket-count": e.basketCount,
113
- "login-url": e.loginUrl,
114
- "open-menu-item": t.menuComponent,
115
- "my-dashboard-url": e.myDashboardUrl,
116
- "lender-name": e.lenderName,
117
- "lender-image-url": e.lenderImageUrl,
118
- "is-mobile": e.isMobile,
119
- balance: e.balance,
120
- onItemHover: t.onHover
121
- }, null, 8, ["logged-in", "basket-count", "login-url", "open-menu-item", "my-dashboard-url", "lender-name", "lender-image-url", "is-mobile", "balance", "onItemHover"]), [
122
- [p, t.linksVisible]
104
+ };
105
+ function z(C, t, e, n, l, a) {
106
+ const d = u("kv-header-link-bar"), r = u("kv-header-logo"), m = u("kv-page-container"), _ = u("kv-theme-provider"), b = M("kv-track-event");
107
+ return v(), h(_, {
108
+ tag: "div",
109
+ class: "tw-bg-primary tw-relative"
110
+ }, {
111
+ default: c(() => [
112
+ f("nav", K, [
113
+ s(m, null, {
114
+ default: c(() => [
115
+ s(p, { name: "header-fade" }, {
116
+ default: c(() => [
117
+ g(s(d, {
118
+ "logged-in": e.loggedIn,
119
+ "basket-count": e.basketCount,
120
+ "login-url": e.loginUrl,
121
+ "open-menu-item": n.menuComponent,
122
+ "my-dashboard-url": e.myDashboardUrl,
123
+ "lender-name": e.lenderName,
124
+ "lender-image-url": e.lenderImageUrl,
125
+ "is-mobile": e.isMobile,
126
+ balance: e.balance,
127
+ onItemHover: n.onHover
128
+ }, null, 8, ["logged-in", "basket-count", "login-url", "open-menu-item", "my-dashboard-url", "lender-name", "lender-image-url", "is-mobile", "balance", "onItemHover"]), [
129
+ [I, n.linksVisible]
130
+ ])
131
+ ]),
132
+ _: 1
133
+ }),
134
+ g((v(), H("a", V, [
135
+ s(r)
136
+ ])), [
137
+ [b, ["TopNav", "click-Logo"]]
123
138
  ])
124
139
  ]),
125
140
  _: 1
126
- }),
127
- g((v(), C("a", E, [
128
- u(r)
129
- ])), [
130
- [b, ["TopNav", "click-Logo"]]
131
- ])
141
+ })
132
142
  ]),
133
- u(k, { name: "header-fade" }, {
134
- default: f(() => [
135
- g(m("div", K, [
136
- m("div", {
143
+ s(p, { name: "header-fade" }, {
144
+ default: c(() => [
145
+ g(f("div", P, [
146
+ f("div", {
137
147
  class: "tw-bg-primary",
138
- style: H(t.menuPosition),
139
- onMouseover: n[0] || (n[0] = (w) => t.onHover(t.activeHeaderItem, t.menuComponent)),
140
- onMouseout: n[1] || (n[1] = (w) => t.onHover())
148
+ style: B(n.menuPosition),
149
+ onMouseover: t[0] || (t[0] = (w) => n.onHover(n.activeHeaderItem, n.menuComponent)),
150
+ onMouseout: t[1] || (t[1] = (w) => n.onHover())
141
151
  }, [
142
- m("div", V, [
143
- (v(), y(B(t.menuComponent), {
144
- ref: "menuComponentInstance",
145
- "logged-in": e.loggedIn,
146
- "login-url": e.loginUrl,
147
- "user-id": e.userId,
148
- "is-borrower": e.isBorrower,
149
- "is-trustee": e.isTrustee,
150
- "my-dashboard-url": e.myDashboardUrl,
151
- "show-m-g-upsell-link": e.showMGUpsellLink,
152
- onLoadLendMenuData: t.emitLendMenuEvent
153
- }, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "my-dashboard-url", "show-m-g-upsell-link", "onLoadLendMenuData"]))
154
- ])
152
+ (v(), h(D(n.menuComponent), {
153
+ ref: "menuComponentInstance",
154
+ "logged-in": e.loggedIn,
155
+ "login-url": e.loginUrl,
156
+ "user-id": e.userId,
157
+ "is-borrower": e.isBorrower,
158
+ "is-trustee": e.isTrustee,
159
+ "my-dashboard-url": e.myDashboardUrl,
160
+ "show-m-g-upsell-link": e.showMGUpsellLink,
161
+ onLoadLendMenuData: n.emitLendMenuEvent
162
+ }, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "my-dashboard-url", "show-m-g-upsell-link", "onLoadLendMenuData"]))
155
163
  ], 36)
156
164
  ], 512), [
157
- [p, t.menuOpen]
165
+ [I, n.menuOpen]
158
166
  ])
159
167
  ]),
160
168
  _: 1
@@ -163,7 +171,7 @@ function z(I, n, e, t, l, a) {
163
171
  _: 1
164
172
  });
165
173
  }
166
- const A = /* @__PURE__ */ N(T, [["render", z], ["__scopeId", "data-v-c4b7061b"]]);
174
+ const F = /* @__PURE__ */ S(E, [["render", z], ["__scopeId", "data-v-07310dbf"]]);
167
175
  export {
168
- A as default
176
+ F as default
169
177
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.49.1",
3
+ "version": "6.49.2",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -113,5 +113,5 @@
113
113
  "embla-carousel-fade",
114
114
  "popper.js"
115
115
  ],
116
- "gitHead": "f03ff523198dcc597eebe95a49a39847fb1d37e0"
116
+ "gitHead": "181ef54b20935aeaa481c558dc133c93a8d21e11"
117
117
  }