@kiva/kv-components 6.69.0 → 6.69.1

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 +1 @@
1
- .header-link[data-v-11e40cc0]{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-11e40cc0]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}[data-v-11e40cc0] .avatar div:first-child{display:flex}
1
+ .header-link[data-v-d30fd983]{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-d30fd983]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}[data-v-d30fd983] .avatar div:first-child{display:flex}
@@ -1,4 +1,4 @@
1
- import { defineAsyncComponent as h, ref as l, inject as Z, computed as H, watch as _, onMounted as $, onUnmounted as ee, resolveComponent as p, resolveDirective as ne, openBlock as r, createElementBlock as w, withDirectives as v, normalizeClass as y, withModifiers as U, createVNode as B, createBlock as T, withCtx as x, createTextVNode as f, createElementVNode as M, createCommentVNode as P, vShow as V, toDisplayString as te } from "vue";
1
+ import { defineAsyncComponent as h, ref as l, inject as Z, computed as L, watch as P, onMounted as $, onUnmounted as ee, resolveComponent as p, resolveDirective as ne, openBlock as i, createElementBlock as M, withDirectives as c, normalizeClass as A, withModifiers as B, createVNode as E, createBlock as y, withCtx as N, createTextVNode as k, createElementVNode as b, createCommentVNode as V, vShow as R, toDisplayString as te } from "vue";
2
2
  import { mdiAccountCircle as oe, mdiChevronDown as ae, mdiMagnify as le, mdiMenu as re } from "@mdi/js";
3
3
  import ie from "numeral";
4
4
  import de from "@kiva/kv-tokens";
@@ -10,7 +10,7 @@ import { throttle as ce } from "../../utils/throttle.js";
10
10
  import { isLegacyPlaceholderAvatar as we } from "../../utils/imageUtils.js";
11
11
  import "./KvHeaderLinkBar.css";
12
12
  import fe from "../../_virtual/_plugin-vue_export-helper.js";
13
- const Me = h(() => import("./KvHeaderMobileMenu.js")), R = h(() => import("./KvHeaderMyKivaMenu.js")), ke = h(() => import("./LendMenu/KvLendMenu.js")), he = h(() => import("./KvHeaderTakeActionMenu.js")), ge = h(() => import("./KvHeaderAboutMenu.js")), F = 150, k = "avatar-menu", K = "menuButton", W = { top: "-3.75rem", width: "100%" }, A = "lendButton", be = {
13
+ const Me = h(() => import("./KvHeaderMobileMenu.js")), F = h(() => import("./KvHeaderMyKivaMenu.js")), ke = h(() => import("./LendMenu/KvLendMenu.js")), be = h(() => import("./KvHeaderTakeActionMenu.js")), he = h(() => import("./KvHeaderAboutMenu.js")), W = 150, w = "avatar-menu", I = "menuButton", z = { top: "-3.75rem", width: "100%" }, ge = "lendButton", Te = "takeActionButton", pe = "aboutUsLink", Ae = {
14
14
  components: {
15
15
  KvMaterialIcon: ue,
16
16
  KvIconBag: me,
@@ -58,118 +58,134 @@ const Me = h(() => import("./KvHeaderMobileMenu.js")), R = h(() => import("./KvH
58
58
  emits: [
59
59
  "item-hover"
60
60
  ],
61
- setup(i, { emit: n }) {
62
- const a = l(null), e = l(null), N = l(null), E = l(null), g = l(null), c = l(null), I = l(null), L = l(null), d = l(null), t = l(null), O = Z("$kvTrackEvent"), u = (o, m, s = null) => {
63
- n("item-hover", o, m, s);
64
- }, z = (o, m, s = null) => {
65
- navigator.maxTouchPoints || (o === A && t.value !== A && O(
66
- "TopNav",
67
- "hover-Lend-menu",
68
- "Lend"
69
- ), t.value = o, u(
70
- o,
71
- m,
72
- o === K && i.isMobile ? W : s
73
- ));
74
- }, j = (o) => {
75
- !navigator.maxTouchPoints && t.value === o && (t.value = null, u());
76
- }, D = () => {
77
- var C;
78
- const o = (C = a.value) == null ? void 0 : C.getBoundingClientRect();
79
- if (!o) return null;
80
- const s = o.left + o.width / 2 - F / 2, Y = `${window.innerWidth - s - F}px`;
61
+ setup(d, { emit: n }) {
62
+ const a = l(null), e = l(null), K = l(null), x = l(null), g = l(null), f = l(null), U = l(null), H = l(null), u = l(null), o = l(null), O = Z("$kvTrackEvent"), _ = {
63
+ [ge]: { action: "hover-Lend-menu", label: "Lend" },
64
+ [Te]: { action: "hover-Take-action-menu", label: "Take action" },
65
+ [pe]: { action: "hover-About-menu", label: "About" },
66
+ [I]: { action: "hover-Hamburger-menu", label: "Hamburger" },
67
+ [w]: { action: "hover-Avatar-menu", label: "Avatar" }
68
+ }, m = (t, s, v = null) => {
69
+ n("item-hover", t, s, v);
70
+ }, j = (t, s, v = null) => {
71
+ if (!navigator.maxTouchPoints) {
72
+ if (t && o.value !== t) {
73
+ const r = _[t];
74
+ r && O(
75
+ "TopNav",
76
+ r.action,
77
+ r.label
78
+ );
79
+ }
80
+ o.value = t, m(
81
+ t,
82
+ s,
83
+ t === I && d.isMobile ? z : v
84
+ );
85
+ }
86
+ }, q = (t) => {
87
+ !navigator.maxTouchPoints && o.value === t && (o.value = null, m());
88
+ }, C = () => {
89
+ var S;
90
+ const t = (S = a.value) == null ? void 0 : S.getBoundingClientRect();
91
+ if (!t) return null;
92
+ const v = t.left + t.width / 2 - W / 2, r = `${window.innerWidth - v - W}px`;
81
93
  return {
82
- right: (window == null ? void 0 : window.innerWidth) < de.breakpoints.md ? 0 : Y
94
+ right: (window == null ? void 0 : window.innerWidth) < de.breakpoints.md ? 0 : r
83
95
  };
84
- }, b = () => {
85
- t.value = k, u(a.value, R, D());
86
- }, q = (o, m, s) => {
87
- o === A && t.value !== A && O(
88
- "TopNav",
89
- "hover-Lend-menu",
90
- "Lend"
91
- ), t.value === K && (t.value = null), !t.value || t.value !== o ? (t.value = o, o === k ? b() : o === K && i.isMobile ? u(o, m, W) : u(o, m, s)) : (t.value = null, u());
92
- }, S = ce(() => {
93
- t.value === k && b();
94
- }, 100), G = H(() => i.isMobile ? void 0 : "/lend-by-category"), J = H(() => {
95
- var o;
96
- return ((o = i.lenderImageUrl) == null ? void 0 : o.split("/").pop()) ?? "";
97
- }), Q = H(() => Math.floor(i.balance)), X = (o) => {
98
- o.target === o.currentTarget && u();
96
+ }, T = () => {
97
+ o.value = w, m(a.value, F, C());
98
+ }, G = (t, s, v) => {
99
+ if (t && o.value !== t) {
100
+ const r = _[t];
101
+ r && O(
102
+ "TopNav",
103
+ r.action,
104
+ r.label
105
+ );
106
+ }
107
+ o.value === I && (o.value = null), !o.value || o.value !== t ? (o.value = t, t === w ? T() : t === I && d.isMobile ? m(t, s, z) : m(t, s, v)) : (o.value = null, m());
108
+ }, D = ce(() => {
109
+ o.value === w && T();
110
+ }, 100), J = L(() => d.isMobile ? void 0 : "/lend-by-category"), Q = L(() => {
111
+ var t;
112
+ return ((t = d.lenderImageUrl) == null ? void 0 : t.split("/").pop()) ?? "";
113
+ }), X = L(() => Math.floor(d.balance)), Y = (t) => {
114
+ t.target === t.currentTarget && m();
99
115
  };
100
- return _(
101
- () => i.isMobile,
116
+ return P(
117
+ () => d.isMobile,
102
118
  () => {
103
- t.value === k && b();
119
+ o.value === w && T();
104
120
  }
105
- ), _(
106
- () => i.openMenuItem,
107
- (o) => {
108
- o || (t.value = null);
121
+ ), P(
122
+ () => d.openMenuItem,
123
+ (t) => {
124
+ t || (o.value = null);
109
125
  }
110
126
  ), $(() => {
111
- import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js"), import("./KvHeaderTakeActionMenu.js"), import("./KvHeaderAboutMenu.js"), window.addEventListener("resize", S);
127
+ import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js"), import("./KvHeaderTakeActionMenu.js"), import("./KvHeaderAboutMenu.js"), window.addEventListener("resize", D);
112
128
  }), ee(() => {
113
- window.removeEventListener("resize", S);
129
+ window.removeEventListener("resize", D);
114
130
  }), {
115
- AVATAR_MENU_ID: k,
116
- openMenuId: t,
131
+ AVATAR_MENU_ID: w,
132
+ openMenuId: o,
117
133
  numeral: ie,
118
134
  mdiAccountCircle: oe,
119
135
  mdiChevronDown: ae,
120
136
  mdiMagnify: le,
121
137
  mdiMenu: re,
122
- onHover: u,
138
+ onHover: m,
123
139
  avatar: a,
124
140
  lendButton: e,
125
- aboutUsLink: N,
126
- partnerWithUsLink: E,
141
+ aboutUsLink: K,
142
+ partnerWithUsLink: x,
127
143
  borrowLink: g,
128
- supportKivaLink: c,
129
- basketLink: I,
130
- signInLink: L,
131
- menuButton: d,
132
- lendUrl: G,
133
- avatarFilename: J,
134
- handleOnHover: z,
135
- handleTouchStart: q,
136
- handleMouseOut: j,
137
- handleAvatarMenuPosition: b,
144
+ supportKivaLink: f,
145
+ basketLink: U,
146
+ signInLink: H,
147
+ menuButton: u,
148
+ lendUrl: J,
149
+ avatarFilename: Q,
150
+ handleOnHover: j,
151
+ handleTouchStart: G,
152
+ handleMouseOut: q,
153
+ handleAvatarMenuPosition: T,
138
154
  KvHeaderMobileMenu: Me,
139
- KvHeaderMyKivaMenu: R,
155
+ KvHeaderMyKivaMenu: F,
140
156
  KvLendMenu: ke,
141
- KvHeaderTakeActionMenu: he,
142
- KvHeaderAboutMenu: ge,
157
+ KvHeaderTakeActionMenu: be,
158
+ KvHeaderAboutMenu: he,
143
159
  isLegacyPlaceholderAvatar: we,
144
- getAvatarMenuPosition: D,
145
- handleEmptySpaceClick: X,
146
- roundedBalance: Q
160
+ getAvatarMenuPosition: C,
161
+ handleEmptySpaceClick: Y,
162
+ roundedBalance: X
147
163
  };
148
164
  }
149
- }, pe = ["href"], ye = {
165
+ }, ye = ["href"], Ie = {
150
166
  ref: "avatar",
151
167
  class: "tw-cursor-pointer tw-flex tw-items-center tw-gap-1 tw-bg-eco-green-1 tw-rounded-md tw-py-0.5 md:tw-py-1 tw-px-1 md:tw-px-2"
152
- }, Te = { class: "tw-text-eco-green-4" }, Ae = ["href"];
153
- function Ie(i, n, a, e, N, E) {
154
- const g = p("kv-material-icon"), c = p("KvHeaderDropdownLink"), I = p("kv-icon-bag"), L = p("KvUserAvatar"), d = ne("kv-track-event");
155
- return r(), w("div", {
168
+ }, Ue = { class: "tw-text-eco-green-4" }, He = ["href"];
169
+ function Le(d, n, a, e, K, x) {
170
+ const g = p("kv-material-icon"), f = p("KvHeaderDropdownLink"), U = p("kv-icon-bag"), H = p("KvUserAvatar"), u = ne("kv-track-event");
171
+ return i(), M("div", {
156
172
  class: "tw-h-full tw-flex tw-items-center tw-gap-0.5 md:tw-gap-2 lg:tw-gap-2.5",
157
- onTouchstart: n[10] || (n[10] = (...t) => e.handleEmptySpaceClick && e.handleEmptySpaceClick(...t))
173
+ onTouchstart: n[10] || (n[10] = (...o) => e.handleEmptySpaceClick && e.handleEmptySpaceClick(...o))
158
174
  }, [
159
- v((r(), w("button", {
175
+ c((i(), M("button", {
160
176
  ref: "menuButton",
161
- class: y(["header-link tw-inline-flex md:tw-hidden", {
177
+ class: A(["header-link tw-inline-flex md:tw-hidden", {
162
178
  "tw-text-tertiary": a.openMenuItem && a.openMenuItem !== e.KvHeaderMobileMenu
163
179
  }]),
164
- onMouseover: n[0] || (n[0] = (t) => e.handleOnHover("menuButton", e.KvHeaderMobileMenu)),
165
- onMouseout: n[1] || (n[1] = (t) => e.handleMouseOut("menuButton")),
166
- onTouchstart: n[2] || (n[2] = U((t) => e.handleTouchStart("menuButton", e.KvHeaderMobileMenu), ["stop"]))
180
+ onMouseover: n[0] || (n[0] = (o) => e.handleOnHover("menuButton", e.KvHeaderMobileMenu)),
181
+ onMouseout: n[1] || (n[1] = (o) => e.handleMouseOut("menuButton")),
182
+ onTouchstart: n[2] || (n[2] = B((o) => e.handleTouchStart("menuButton", e.KvHeaderMobileMenu), ["stop"]))
167
183
  }, [
168
- B(g, { icon: e.mdiMenu }, null, 8, ["icon"])
184
+ E(g, { icon: e.mdiMenu }, null, 8, ["icon"])
169
185
  ], 34)), [
170
- [d, a.openMenuItem === e.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
186
+ [u, a.openMenuItem === e.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
171
187
  ]),
172
- v((r(), T(c, {
188
+ c((i(), y(f, {
173
189
  class: "tw-py-1",
174
190
  "ref-name": "lendButton",
175
191
  href: e.lendUrl,
@@ -178,17 +194,17 @@ function Ie(i, n, a, e, N, E) {
178
194
  "dropdown-icon": e.mdiChevronDown,
179
195
  "base-class": "tw-inline-flex md:tw-border md:tw-rounded-md tw-px-1.5 tw-py-0.5",
180
196
  onOnHover: e.handleOnHover,
181
- onMouseleave: n[3] || (n[3] = (t) => e.handleMouseOut("lendButton")),
182
- onTouchstart: n[4] || (n[4] = U((t) => e.handleTouchStart("lendButton", e.KvLendMenu), ["stop"]))
197
+ onMouseleave: n[3] || (n[3] = (o) => e.handleMouseOut("lendButton")),
198
+ onTouchstart: n[4] || (n[4] = B((o) => e.handleTouchStart("lendButton", e.KvLendMenu), ["stop"]))
183
199
  }, {
184
- default: x(() => n[11] || (n[11] = [
185
- f(" Lend ")
200
+ default: N(() => n[11] || (n[11] = [
201
+ k(" Lend ")
186
202
  ])),
187
203
  _: 1
188
204
  }, 8, ["href", "menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
189
- [d, ["TopNav", "click-Lend"]]
205
+ [u, ["TopNav", "click-Lend"]]
190
206
  ]),
191
- v((r(), T(c, {
207
+ c((i(), y(f, {
192
208
  "ref-name": "takeActionButton",
193
209
  "base-class": "tw-hidden md:tw-inline-flex tw-py-1",
194
210
  "menu-component": e.KvHeaderTakeActionMenu,
@@ -196,17 +212,17 @@ function Ie(i, n, a, e, N, E) {
196
212
  "dropdown-icon": e.mdiChevronDown,
197
213
  "send-link-position": "",
198
214
  onOnHover: e.handleOnHover,
199
- onMouseleave: n[5] || (n[5] = (t) => e.handleMouseOut("takeActionButton")),
215
+ onMouseleave: n[5] || (n[5] = (o) => e.handleMouseOut("takeActionButton")),
200
216
  onUserTap: e.handleTouchStart
201
217
  }, {
202
- default: x(() => n[12] || (n[12] = [
203
- f(" Take action ")
218
+ default: N(() => n[12] || (n[12] = [
219
+ k(" Take action ")
204
220
  ])),
205
221
  _: 1
206
222
  }, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover", "onUserTap"])), [
207
- [d, ["TopNav", "click-take-action"]]
223
+ [u, ["TopNav", "click-take-action"]]
208
224
  ]),
209
- B(c, {
225
+ E(f, {
210
226
  "ref-name": "aboutUsLink",
211
227
  "data-testid": "header-about",
212
228
  "base-class": "tw-hidden md:tw-inline-flex tw-py-1",
@@ -215,77 +231,77 @@ function Ie(i, n, a, e, N, E) {
215
231
  "dropdown-icon": e.mdiChevronDown,
216
232
  "send-link-position": "",
217
233
  onOnHover: e.handleOnHover,
218
- onMouseleave: n[6] || (n[6] = (t) => e.handleMouseOut("aboutUsLink")),
234
+ onMouseleave: n[6] || (n[6] = (o) => e.handleMouseOut("aboutUsLink")),
219
235
  onUserTap: e.handleTouchStart
220
236
  }, {
221
- default: x(() => n[13] || (n[13] = [
222
- f(" About ")
237
+ default: N(() => n[13] || (n[13] = [
238
+ k(" About ")
223
239
  ])),
224
240
  _: 1
225
241
  }, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover", "onUserTap"]),
226
- n[17] || (n[17] = M("div", { class: "tw-flex-1 tw-h-full" }, null, -1)),
227
- a.loggedIn ? v((r(), w("a", {
242
+ n[17] || (n[17] = b("div", { class: "tw-flex-1 tw-h-full" }, null, -1)),
243
+ a.loggedIn ? c((i(), M("a", {
228
244
  key: 0,
229
245
  ref: "dashboardLink",
230
246
  href: a.myDashboardUrl,
231
- class: y(["header-link tw-hidden md:tw-block", { "tw-text-tertiary": !!a.openMenuItem }])
247
+ class: A(["header-link tw-hidden md:tw-block", { "tw-text-tertiary": !!a.openMenuItem }])
232
248
  }, n[14] || (n[14] = [
233
- f(" My dashboard ")
234
- ]), 10, pe)), [
235
- [d, ["TopNav", "click-Dashboard"]]
236
- ]) : P("", !0),
237
- v((r(), w("a", {
249
+ k(" My dashboard ")
250
+ ]), 10, ye)), [
251
+ [u, ["TopNav", "click-Dashboard"]]
252
+ ]) : V("", !0),
253
+ c((i(), M("a", {
238
254
  ref: "basketLink",
239
255
  href: "/basket",
240
- class: y(["header-link tw-relative md:!tw-mr-0 tw-flex tw-items-center tw-gap-0.5", { "tw-text-tertiary": !!a.openMenuItem }]),
256
+ class: A(["header-link tw-relative md:!tw-mr-0 tw-flex tw-items-center tw-gap-0.5", { "tw-text-tertiary": !!a.openMenuItem }]),
241
257
  style: { "margin-right": "2px" },
242
258
  "data-testid": "header-basket"
243
259
  }, [
244
- B(I, {
260
+ E(U, {
245
261
  class: "tw-w-3 tw-h-3 md:tw-w-3.5 md:tw-h-3.5 tw-pointer-events-none tw-text-action",
246
262
  count: a.basketCount
247
263
  }, null, 8, ["count"]),
248
- n[15] || (n[15] = M("span", { class: "tw-hidden md:tw-block" }, "Basket", -1))
264
+ n[15] || (n[15] = b("span", { class: "tw-hidden md:tw-block" }, "Basket", -1))
249
265
  ], 2)), [
250
- [V, a.basketCount > 0],
251
- [d, ["TopNav", "click-Basket"]]
266
+ [R, a.basketCount > 0],
267
+ [u, ["TopNav", "click-Basket"]]
252
268
  ]),
253
- M("div", {
269
+ b("div", {
254
270
  class: "md:tw-py-1",
255
- onMouseenter: n[7] || (n[7] = (t) => e.handleOnHover(e.AVATAR_MENU_ID, e.KvHeaderMyKivaMenu, e.getAvatarMenuPosition())),
256
- onMouseleave: n[8] || (n[8] = (t) => e.handleMouseOut(e.AVATAR_MENU_ID)),
257
- onTouchstart: n[9] || (n[9] = U((t) => e.handleTouchStart(e.AVATAR_MENU_ID), ["stop"]))
271
+ onMouseenter: n[7] || (n[7] = (o) => e.handleOnHover(e.AVATAR_MENU_ID, e.KvHeaderMyKivaMenu, e.getAvatarMenuPosition())),
272
+ onMouseleave: n[8] || (n[8] = (o) => e.handleMouseOut(e.AVATAR_MENU_ID)),
273
+ onTouchstart: n[9] || (n[9] = B((o) => e.handleTouchStart(e.AVATAR_MENU_ID), ["stop"]))
258
274
  }, [
259
- v(M("div", ye, [
260
- e.isLegacyPlaceholderAvatar(e.avatarFilename) || !e.avatarFilename ? (r(), T(g, {
275
+ c(b("div", Ie, [
276
+ e.isLegacyPlaceholderAvatar(e.avatarFilename) || !e.avatarFilename ? (i(), y(g, {
261
277
  key: 0,
262
278
  icon: e.mdiAccountCircle,
263
279
  class: "tw-w-3"
264
- }, null, 8, ["icon"])) : (r(), T(L, {
280
+ }, null, 8, ["icon"])) : (i(), y(H, {
265
281
  key: 1,
266
282
  class: "avatar",
267
283
  "lender-name": a.lenderName,
268
284
  "lender-image-url": a.lenderImageUrl,
269
285
  "is-small": ""
270
286
  }, null, 8, ["lender-name", "lender-image-url"])),
271
- M("span", Te, te(e.numeral(e.roundedBalance).format("$0")), 1)
287
+ b("span", Ue, te(e.numeral(e.roundedBalance).format("$0")), 1)
272
288
  ], 512), [
273
- [V, a.loggedIn]
289
+ [R, a.loggedIn]
274
290
  ])
275
291
  ], 32),
276
- a.loggedIn ? P("", !0) : v((r(), w("a", {
292
+ a.loggedIn ? V("", !0) : c((i(), M("a", {
277
293
  key: 1,
278
294
  ref: "signInLink",
279
295
  href: a.loginUrl,
280
- class: y(["header-link", { "tw-text-tertiary": !!a.openMenuItem }])
296
+ class: A(["header-link", { "tw-text-tertiary": !!a.openMenuItem }])
281
297
  }, n[16] || (n[16] = [
282
- f(" Sign in ")
283
- ]), 10, Ae)), [
284
- [d, ["TopNav", "click-Sign-in"]]
298
+ k(" Sign in ")
299
+ ]), 10, He)), [
300
+ [u, ["TopNav", "click-Sign-in"]]
285
301
  ])
286
302
  ], 32);
287
303
  }
288
- const Pe = /* @__PURE__ */ fe(be, [["render", Ie], ["__scopeId", "data-v-11e40cc0"]]);
304
+ const Fe = /* @__PURE__ */ fe(Ae, [["render", Le], ["__scopeId", "data-v-d30fd983"]]);
289
305
  export {
290
- Pe as default
306
+ Fe as default
291
307
  };
@@ -1 +1 @@
1
- .mobile-link[data-v-2265193a]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-2265193a]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
1
+ .mobile-link[data-v-4bba67dd]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-4bba67dd]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
@@ -1,10 +1,10 @@
1
1
  import { mdiClose as w } from "@mdi/js";
2
2
  import f from "../KvAccordionItem.js";
3
3
  import h from "../KvMaterialIcon.js";
4
- import { resolveComponent as u, resolveDirective as g, openBlock as t, createElementBlock as o, createBlock as _, createCommentVNode as A, createVNode as p, withCtx as a, createElementVNode as r, Fragment as K, renderList as y, withDirectives as n, toDisplayString as m, createTextVNode as s } from "vue";
4
+ import { resolveComponent as p, resolveDirective as g, openBlock as t, createElementBlock as n, withDirectives as i, createBlock as c, createCommentVNode as _, withCtx as a, createElementVNode as r, Fragment as A, renderList as K, toDisplayString as m, createTextVNode as s } from "vue";
5
5
  import "./KvHeaderMobileMenu.css";
6
6
  import N from "../../_virtual/_plugin-vue_export-helper.js";
7
- const I = {
7
+ const T = {
8
8
  name: "KvHeaderMobileMenu",
9
9
  components: {
10
10
  KvAccordionItem: f,
@@ -56,19 +56,19 @@ const I = {
56
56
  ]
57
57
  };
58
58
  }
59
- }, x = { class: "tw--mt-0.5 tw-pb-0.5 tw-gap-2 tw-flex tw-flex-col tw-items-end md:tw-hidden tw-font-medium tw-p-2.5" }, T = { class: "tw-flex tw-flex-col tw-gap-2 tw-pl-1" }, M = ["href"], C = { class: "tw-text-secondary tw-font-book" }, D = { class: "tw-flex tw-flex-col tw-gap-2 tw-pb-2 tw-pl-1" }, E = {
59
+ }, y = { class: "tw--mt-0.5 tw-pb-0.5 tw-gap-2 tw-flex tw-flex-col tw-items-end md:tw-hidden tw-font-medium tw-p-2.5" }, I = { class: "tw-flex tw-flex-col tw-gap-2 tw-pl-1" }, x = ["href"], M = { class: "tw-text-secondary tw-font-book" }, C = { class: "tw-flex tw-flex-col tw-gap-2 tw-pb-2 tw-pl-1" }, H = {
60
60
  href: "/about",
61
61
  class: "mobile-link"
62
- }, B = {
62
+ }, D = {
63
63
  href: "/about/how",
64
64
  class: "mobile-link"
65
- }, H = {
65
+ }, E = {
66
66
  href: "/about/where-kiva-works",
67
67
  class: "mobile-link"
68
- }, P = {
68
+ }, B = {
69
69
  href: "/impact",
70
70
  class: "mobile-link"
71
- }, V = {
71
+ }, P = {
72
72
  href: "/about/leadership",
73
73
  class: "mobile-link"
74
74
  }, $ = {
@@ -81,16 +81,18 @@ const I = {
81
81
  href: "/about/due-diligence",
82
82
  class: "mobile-link"
83
83
  };
84
- function S(v, e, k, W, c, q) {
85
- const b = u("KvMaterialIcon"), d = u("KvAccordionItem"), i = g("kv-track-event");
86
- return t(), o("nav", x, [
87
- k.isMobile ? (t(), _(b, {
84
+ function S(v, e, b, V, d, W) {
85
+ const k = p("KvMaterialIcon"), u = p("KvAccordionItem"), o = g("kv-track-event");
86
+ return t(), n("nav", y, [
87
+ b.isMobile ? i((t(), c(k, {
88
88
  key: 0,
89
- icon: c.mdiClose,
89
+ icon: d.mdiClose,
90
90
  class: "tw-cursor-pointer",
91
91
  onClick: e[0] || (e[0] = (l) => v.$emit("closing-menu"))
92
- }, null, 8, ["icon"])) : A("", !0),
93
- p(d, {
92
+ }, null, 8, ["icon"])), [
93
+ [o, ["TopNav", "click-Hamburger-close"]]
94
+ ]) : _("", !0),
95
+ i((t(), c(u, {
94
96
  id: "accordion-take-action-menu",
95
97
  open: "",
96
98
  class: "tw-w-full tw-border-b-0"
@@ -99,23 +101,24 @@ function S(v, e, k, W, c, q) {
99
101
  r("h3", { class: "tw-pb-0.5" }, " Take action ", -1)
100
102
  ])),
101
103
  default: a(() => [
102
- r("div", T, [
103
- (t(!0), o(K, null, y(c.menuItems, (l) => n((t(), o("div", {
104
- key: l.title
104
+ r("div", I, [
105
+ (t(!0), n(A, null, K(d.menuItems, (l) => i((t(), n("a", {
106
+ key: l.title,
107
+ href: l.url,
108
+ class: "mobile-link"
105
109
  }, [
106
- r("a", {
107
- href: l.url,
108
- class: "mobile-link"
109
- }, m(l.title), 9, M),
110
- r("p", C, m(l.description), 1)
111
- ])), [
112
- [i, ["TopNav", `click-${l.trackEvent}`]]
110
+ r("div", null, m(l.title), 1),
111
+ r("p", M, m(l.description), 1)
112
+ ], 8, x)), [
113
+ [o, ["TopNav", `click-${l.trackEvent}`]]
113
114
  ])), 128))
114
115
  ])
115
116
  ]),
116
117
  _: 1
117
- }),
118
- p(d, {
118
+ })), [
119
+ [o, ["TopNav", "click-Hamburger-Take-action-accordion"]]
120
+ ]),
121
+ i((t(), c(u, {
119
122
  id: "accordion-about-menu",
120
123
  class: "tw-w-full tw-pb-1"
121
124
  }, {
@@ -123,54 +126,56 @@ function S(v, e, k, W, c, q) {
123
126
  r("h3", { class: "tw-pb-0.5" }, " About ", -1)
124
127
  ])),
125
128
  default: a(() => [
126
- r("div", D, [
127
- n((t(), o("a", E, e[3] || (e[3] = [
129
+ r("div", C, [
130
+ i((t(), n("a", H, e[3] || (e[3] = [
128
131
  s("About us")
129
132
  ]))), [
130
- [i, ["TopNav", "click-About-About us"]]
133
+ [o, ["TopNav", "click-About-About us"]]
131
134
  ]),
132
- n((t(), o("a", B, e[4] || (e[4] = [
135
+ i((t(), n("a", D, e[4] || (e[4] = [
133
136
  s("How Kiva works")
134
137
  ]))), [
135
- [i, ["TopNav", "click-About-How Kiva works"]]
138
+ [o, ["TopNav", "click-About-How Kiva works"]]
136
139
  ]),
137
- n((t(), o("a", H, e[5] || (e[5] = [
140
+ i((t(), n("a", E, e[5] || (e[5] = [
138
141
  s("Where Kiva works")
139
142
  ]))), [
140
- [i, ["TopNav", "click-About-Where Kiva works"]]
143
+ [o, ["TopNav", "click-About-Where Kiva works"]]
141
144
  ]),
142
- n((t(), o("a", P, e[6] || (e[6] = [
145
+ i((t(), n("a", B, e[6] || (e[6] = [
143
146
  s("Impact")
144
147
  ]))), [
145
- [i, ["TopNav", "click-About-Impact"]]
148
+ [o, ["TopNav", "click-About-Impact"]]
146
149
  ]),
147
- n((t(), o("a", V, e[7] || (e[7] = [
150
+ i((t(), n("a", P, e[7] || (e[7] = [
148
151
  s("Leadership")
149
152
  ]))), [
150
- [i, ["TopNav", "click-About-Leadership"]]
153
+ [o, ["TopNav", "click-About-Leadership"]]
151
154
  ]),
152
- n((t(), o("a", $, e[8] || (e[8] = [
155
+ i((t(), n("a", $, e[8] || (e[8] = [
153
156
  s("Finances")
154
157
  ]))), [
155
- [i, ["TopNav", "click-About-Finances"]]
158
+ [o, ["TopNav", "click-About-Finances"]]
156
159
  ]),
157
- n((t(), o("a", F, e[9] || (e[9] = [
160
+ i((t(), n("a", F, e[9] || (e[9] = [
158
161
  s("Press")
159
162
  ]))), [
160
- [i, ["TopNav", "click-About-Press"]]
163
+ [o, ["TopNav", "click-About-Press"]]
161
164
  ]),
162
- n((t(), o("a", L, e[10] || (e[10] = [
165
+ i((t(), n("a", L, e[10] || (e[10] = [
163
166
  s("Due diligence")
164
167
  ]))), [
165
- [i, ["TopNav", "click-About-Due diligence"]]
168
+ [o, ["TopNav", "click-About-Due diligence"]]
166
169
  ])
167
170
  ])
168
171
  ]),
169
172
  _: 1
170
- })
173
+ })), [
174
+ [o, ["TopNav", "click-Hamburger-About-accordion"]]
175
+ ])
171
176
  ]);
172
177
  }
173
- const Q = /* @__PURE__ */ N(I, [["render", S], ["__scopeId", "data-v-2265193a"]]);
178
+ const O = /* @__PURE__ */ N(T, [["render", S], ["__scopeId", "data-v-4bba67dd"]]);
174
179
  export {
175
- Q as default
180
+ O as default
176
181
  };
@@ -1 +1 @@
1
- .lend-link[data-v-23bfaeea]{display:block;width:100%;padding-top:.5rem;padding-bottom:.5rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.lend-link[data-v-23bfaeea]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
1
+ .lend-link[data-v-5b7745cc]{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-5b7745cc]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
@@ -198,20 +198,14 @@ function ie(T, e, l, k, x, M) {
198
198
  ])
199
199
  ]),
200
200
  _: 2
201
- }, 1032, ["id"])), 64)) : (t(!0), n(b, { key: 1 }, g(l.regions, (s) => (t(), N(p, {
201
+ }, 1032, ["id"])), 64)) : (t(!0), n(b, { key: 1 }, g(l.regions, (s) => _((t(), N(p, {
202
202
  id: `lend-menu-${k.paramCase(s.name)}-panel`,
203
203
  key: s.name,
204
204
  ref_for: !0,
205
205
  ref: "regionAccordions"
206
206
  }, {
207
207
  header: a(() => [
208
- o("h3", te, [
209
- _((t(), n("span", null, [
210
- d(K(s.name), 1)
211
- ])), [
212
- [i, ["TopNav", "click-Lend-Region", s.name]]
213
- ])
214
- ])
208
+ o("h3", te, K(s.name), 1)
215
209
  ]),
216
210
  default: a(() => [
217
211
  r(f, {
@@ -219,7 +213,9 @@ function ie(T, e, l, k, x, M) {
219
213
  }, null, 8, ["countries"])
220
214
  ]),
221
215
  _: 2
222
- }, 1032, ["id"]))), 128))
216
+ }, 1032, ["id"])), [
217
+ [i, ["TopNav", "click-Lend-Region", s.name]]
218
+ ])), 128))
223
219
  ]),
224
220
  _: 1
225
221
  }),
@@ -275,7 +271,7 @@ function ie(T, e, l, k, x, M) {
275
271
  }, 512)
276
272
  ]);
277
273
  }
278
- const ge = /* @__PURE__ */ z(H, [["render", ie], ["__scopeId", "data-v-23bfaeea"]]);
274
+ const ge = /* @__PURE__ */ z(H, [["render", ie], ["__scopeId", "data-v-5b7745cc"]]);
279
275
  export {
280
276
  ge as default
281
277
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.69.0",
3
+ "version": "6.69.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -114,5 +114,5 @@
114
114
  "embla-carousel-fade",
115
115
  "popper.js"
116
116
  ],
117
- "gitHead": "222472dc213788d44e4f02686c4478ba70ec0b13"
117
+ "gitHead": "d022a741fc1f690033335ee6f38a7ab5e3bbddf8"
118
118
  }