@kiva/kv-components 6.69.1 → 6.69.3

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
- @media (min-width: 45.875rem){.cart-modal[data-v-5233d12c] div.container{right:var(--modal-right)!important;top:var(--modal-top)!important}}
1
+ @media (min-width: 45.875rem){.cart-modal[data-v-93b3820a] div.container{right:var(--modal-right)!important;top:var(--modal-top)!important}}
@@ -1,4 +1,4 @@
1
- import { toRefs as N, ref as B, computed as C, watch as F, onMounted as O, onUnmounted as z, resolveComponent as E, openBlock as u, createBlock as D, normalizeStyle as G, withCtx as S, createElementBlock as m, createVNode as R, createElementVNode as e, normalizeClass as T, toDisplayString as I, createCommentVNode as b } from "vue";
1
+ import { toRefs as N, ref as B, computed as C, watch as F, onMounted as O, onUnmounted as G, resolveComponent as E, openBlock as u, createBlock as z, normalizeStyle as D, withCtx as S, createElementBlock as m, createVNode as R, createElementVNode as e, normalizeClass as T, toDisplayString as I, createCommentVNode as b } from "vue";
2
2
  import { throttle as U } from "../utils/throttle.js";
3
3
  import Y from "./KvCartModal.js";
4
4
  import W from "./KvCartPill.js";
@@ -117,7 +117,7 @@ const Q = {
117
117
  ],
118
118
  setup(c, { emit: i }) {
119
119
  const {
120
- modalVisible: r,
120
+ modalVisible: n,
121
121
  addedLoan: l,
122
122
  userData: p,
123
123
  hasEverLoggedIn: A,
@@ -129,8 +129,8 @@ const Q = {
129
129
  var t;
130
130
  return ((t = l.value) == null ? void 0 : t.basketSize) ?? 0;
131
131
  }), q = C(() => {
132
- const t = window.innerWidth - k.value - 200, o = `${t > 0 ? t : 0}`, n = `${g.value}`;
133
- return { right: o, top: n };
132
+ const t = window.innerWidth - k.value - 200, o = `${t > 0 ? t : 0}`, a = `${g.value}`;
133
+ return { right: o, top: a };
134
134
  }), d = C(() => {
135
135
  var t;
136
136
  return (t = l.value) == null ? void 0 : t.name;
@@ -138,17 +138,17 @@ const Q = {
138
138
  var t;
139
139
  return !((t = p.value) != null && t.my);
140
140
  }), y = C(() => {
141
- var t, o, n;
142
- return w.value && (_.value && !A.value || !_.value && !((n = (o = (t = p.value) == null ? void 0 : t.my) == null ? void 0 : o.loans) != null && n.totalCount)) && Z.value === 1;
141
+ var t, o, a;
142
+ return w.value && (_.value && !A.value || !_.value && !((a = (o = (t = p.value) == null ? void 0 : t.my) == null ? void 0 : o.loans) != null && a.totalCount)) && Z.value === 1;
143
143
  }), x = C(() => f.value && v.value && !y.value), j = C(() => Object.values(P.value).reduce((t, o) => t + (o > 0 ? o : 0), 0)), H = C(() => {
144
- var o, n, s;
144
+ var o, a, s;
145
145
  if (c.isCompletingGoal)
146
146
  return `Supporting ${d.value} meets your annual goal!`;
147
147
  if (c.isLoanGoal)
148
148
  return "You’re closer to reaching your annual goal!";
149
149
  if (y.value) {
150
- const a = `Supporting ${d.value} helps`;
151
- return ((o = l.value) == null ? void 0 : o.borrowerCount) > 1 || (n = l.value) != null && n.themes.includes("Social Enterprise") ? `${a} them invest in themselves.` : ((s = l.value) == null ? void 0 : s.gender) === "male" ? `${a} him invest in himself.` : `${a} her invest in herself.`;
150
+ const r = `Supporting ${d.value} helps`;
151
+ return ((o = l.value) == null ? void 0 : o.borrowerCount) > 1 || (a = l.value) != null && a.themes.includes("Social Enterprise") ? `${r} them invest in themselves.` : ((s = l.value) == null ? void 0 : s.gender) === "male" ? `${r} him invest in himself.` : `${r} her invest in herself.`;
152
152
  }
153
153
  if (x.value)
154
154
  return "You’re close to your next achievement!";
@@ -161,16 +161,16 @@ const Q = {
161
161
  o && V(o), i("reset-modal");
162
162
  }, M = () => {
163
163
  const t = document.getElementsByTagName("header")[0], o = (t == null ? void 0 : t.getBoundingClientRect()) ?? null;
164
- let n = [...document.querySelectorAll('[data-testid="header-basket"]')], s = n.find((L) => L == null ? void 0 : L.clientHeight);
165
- s || (n = [...document.querySelectorAll('[data-testid="header-about"]')], s = n.find((L) => L == null ? void 0 : L.clientHeight));
166
- const a = (s == null ? void 0 : s.getBoundingClientRect()) ?? null;
167
- a && (a == null ? void 0 : a.right) !== k.value && (k.value = a == null ? void 0 : a.right), o && (o == null ? void 0 : o.bottom) !== g.value && (g.value = o == null ? void 0 : o.bottom);
164
+ let a = [...document.querySelectorAll('[data-testid="header-basket"]')], s = a.find((L) => L == null ? void 0 : L.clientHeight);
165
+ s || (a = [...document.querySelectorAll('[data-testid="header-about"]')], s = a.find((L) => L == null ? void 0 : L.clientHeight));
166
+ const r = (s == null ? void 0 : s.getBoundingClientRect()) ?? null;
167
+ r && (r == null ? void 0 : r.right) !== k.value && (k.value = r == null ? void 0 : r.right), o && (o == null ? void 0 : o.bottom) !== g.value && (g.value = o == null ? void 0 : o.bottom);
168
168
  }, h = U(M, 50);
169
- return F(r, () => {
170
- r.value && M();
169
+ return F(n, () => {
170
+ n.value && M();
171
171
  }, { immediate: !0 }), O(() => {
172
172
  M(), window.addEventListener("scroll", h), window.addEventListener("resize", h);
173
- }), z(() => {
173
+ }), G(() => {
174
174
  window.removeEventListener("scroll", h), window.removeEventListener("resize", h);
175
175
  }), {
176
176
  modalPosition: q,
@@ -205,27 +205,27 @@ const Q = {
205
205
  key: 2,
206
206
  class: "tw-text-h5"
207
207
  };
208
- function o1(c, i, r, l, p, A) {
208
+ function o1(c, i, n, l, p, A) {
209
209
  const w = E("KvCartPill"), f = E("KvCartModal");
210
- return r.modalVisible ? (u(), D(f, {
210
+ return n.modalVisible ? (u(), z(f, {
211
211
  key: 0,
212
- style: G({
212
+ style: D({
213
213
  "--modal-right": `${l.modalPosition.right}px`,
214
214
  "--modal-top": `${l.modalPosition.top}px`
215
215
  }),
216
216
  class: "cart-modal !tw-top-0",
217
- visible: r.modalVisible,
218
- "photo-path": r.photoPath,
217
+ visible: n.modalVisible,
218
+ "photo-path": n.photoPath,
219
219
  "basket-count": l.basketCount,
220
- "category-name": r.oneLoanAwayCategory,
220
+ "category-name": n.oneLoanAwayCategory,
221
221
  onCartModalClosed: l.closeCartModal
222
222
  }, {
223
223
  content: S(() => [
224
- r.showModalContent || l.isFirstLoan ? (u(), m("div", X, [
224
+ n.showModalContent || l.isFirstLoan ? (u(), m("div", X, [
225
225
  R(w, {
226
226
  class: "!tw-w-full tw-justify-center",
227
227
  "borrower-name": l.borrowerName,
228
- "milestones-number": r.milestonesNumber,
228
+ "milestones-number": n.milestonesNumber,
229
229
  "is-close-next-milestone": l.showOneAway,
230
230
  "custom-message": l.pillMsg
231
231
  }, {
@@ -236,7 +236,7 @@ function o1(c, i, r, l, p, A) {
236
236
  "tw-flex tw-items-center tw-justify-center tw-bg-gray-100 tw-p-0.5 tw-rounded tw-whitespace-nowrap": l.showOneAway
237
237
  })
238
238
  }, [
239
- l.isFirstLoan ? (u(), m("svg", $, i[0] || (i[0] = [
239
+ l.isFirstLoan && !n.isLoanGoal ? (u(), m("svg", $, i[0] || (i[0] = [
240
240
  e("path", {
241
241
  d: "M36.2676 17.5025C34.6519 30.5945 24.9878 35.8229 20.1847 38.0889C20.1496 38.1055 20.1099 38.1043 20.075 38.0873C8.60201 32.516 4.24979 22.9018 3.62911 17.5025C3.34064 14.6558 3.18678 8.5719 3.14406 5.7867C3.14315 5.72754 3.1847 5.67723 3.24194 5.66227C11.6312 3.46948 14.2758 3.52186 20.0937 1.86776C20.1175 1.86099 20.1437 1.86113 20.1673 1.86833C26.6496 3.83905 31.8224 4.23356 36.8613 5.66108C36.9176 5.67702 36.9559 5.72959 36.9546 5.78805C36.8227 11.47 36.4423 15.9605 36.2676 17.5025Z",
242
242
  fill: "#2AA967",
@@ -398,7 +398,7 @@ function o1(c, i, r, l, p, A) {
398
398
  fill: "#757575"
399
399
  }, null, -1)
400
400
  ]))),
401
- l.showOneAway ? (u(), m("div", t1, I(r.oneAwayText), 1)) : b("", !0)
401
+ l.showOneAway ? (u(), m("div", t1, I(n.oneAwayText), 1)) : b("", !0)
402
402
  ], 2)
403
403
  ]),
404
404
  _: 1
@@ -408,7 +408,7 @@ function o1(c, i, r, l, p, A) {
408
408
  _: 1
409
409
  }, 8, ["style", "visible", "photo-path", "basket-count", "category-name", "onCartModalClosed"])) : b("", !0);
410
410
  }
411
- const C1 = /* @__PURE__ */ J(Q, [["render", o1], ["__scopeId", "data-v-5233d12c"]]);
411
+ const C1 = /* @__PURE__ */ J(Q, [["render", o1], ["__scopeId", "data-v-93b3820a"]]);
412
412
  export {
413
413
  C1 as default
414
414
  };
@@ -1 +1 @@
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
+ .mobile-link[data-v-d1df98b6]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-d1df98b6]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
@@ -1,14 +1,14 @@
1
- import { mdiClose as w } from "@mdi/js";
2
- import f from "../KvAccordionItem.js";
3
- import h from "../KvMaterialIcon.js";
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";
1
+ import { mdiClose as f } from "@mdi/js";
2
+ import g from "../KvAccordionItem.js";
3
+ import C from "../KvMaterialIcon.js";
4
+ import { resolveComponent as m, resolveDirective as A, openBlock as t, createElementBlock as l, withDirectives as i, createBlock as u, createCommentVNode as K, withCtx as p, createElementVNode as a, Fragment as N, renderList as T, withModifiers as n, toDisplayString as k, createTextVNode as r } from "vue";
5
5
  import "./KvHeaderMobileMenu.css";
6
- import N from "../../_virtual/_plugin-vue_export-helper.js";
7
- const T = {
6
+ import y from "../../_virtual/_plugin-vue_export-helper.js";
7
+ const I = {
8
8
  name: "KvHeaderMobileMenu",
9
9
  components: {
10
- KvAccordionItem: f,
11
- KvMaterialIcon: h
10
+ KvAccordionItem: g,
11
+ KvMaterialIcon: C
12
12
  },
13
13
  props: {
14
14
  loggedIn: {
@@ -27,7 +27,7 @@ const T = {
27
27
  emits: ["closing-menu"],
28
28
  data() {
29
29
  return {
30
- mdiClose: w,
30
+ mdiClose: f,
31
31
  menuItems: [
32
32
  {
33
33
  title: "Choose someone to help",
@@ -56,126 +56,144 @@ const T = {
56
56
  ]
57
57
  };
58
58
  }
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
- href: "/about",
61
- class: "mobile-link"
62
- }, D = {
63
- href: "/about/how",
64
- class: "mobile-link"
65
- }, E = {
66
- href: "/about/where-kiva-works",
67
- class: "mobile-link"
68
- }, B = {
69
- href: "/impact",
70
- class: "mobile-link"
71
- }, P = {
72
- href: "/about/leadership",
73
- class: "mobile-link"
74
- }, $ = {
75
- href: "/about/finances",
76
- class: "mobile-link"
77
- }, F = {
78
- href: "/about/press-center",
79
- class: "mobile-link"
80
- }, L = {
81
- href: "/about/due-diligence",
82
- class: "mobile-link"
83
- };
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, {
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" }, M = { class: "tw-flex tw-flex-col tw-gap-2 tw-pl-1" }, H = ["href"], D = { class: "tw-text-secondary tw-font-book" }, E = { class: "tw-flex tw-flex-col tw-gap-2 tw-pb-2 tw-pl-1" };
60
+ function B(v, o, b, P, d, $) {
61
+ const w = m("KvMaterialIcon"), c = m("KvAccordionItem"), e = A("kv-track-event");
62
+ return t(), l("nav", x, [
63
+ b.isMobile ? i((t(), u(w, {
88
64
  key: 0,
89
65
  icon: d.mdiClose,
90
66
  class: "tw-cursor-pointer",
91
- onClick: e[0] || (e[0] = (l) => v.$emit("closing-menu"))
67
+ onClick: o[0] || (o[0] = (s) => v.$emit("closing-menu"))
92
68
  }, null, 8, ["icon"])), [
93
- [o, ["TopNav", "click-Hamburger-close"]]
94
- ]) : _("", !0),
95
- i((t(), c(u, {
69
+ [e, ["TopNav", "click-Hamburger-close"]]
70
+ ]) : K("", !0),
71
+ i((t(), u(c, {
96
72
  id: "accordion-take-action-menu",
97
73
  open: "",
98
74
  class: "tw-w-full tw-border-b-0"
99
75
  }, {
100
- header: a(() => e[1] || (e[1] = [
101
- r("h3", { class: "tw-pb-0.5" }, " Take action ", -1)
76
+ header: p(() => o[10] || (o[10] = [
77
+ a("h3", { class: "tw-pb-0.5" }, " Take action ", -1)
102
78
  ])),
103
- default: a(() => [
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"
79
+ default: p(() => [
80
+ a("div", M, [
81
+ (t(!0), l(N, null, T(d.menuItems, (s) => i((t(), l("a", {
82
+ key: s.title,
83
+ href: s.url,
84
+ class: "mobile-link",
85
+ onClick: o[1] || (o[1] = n(() => {
86
+ }, ["stop"]))
109
87
  }, [
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}`]]
88
+ a("div", null, k(s.title), 1),
89
+ a("p", D, k(s.description), 1)
90
+ ], 8, H)), [
91
+ [e, ["TopNav", `click-${s.trackEvent}`]]
114
92
  ])), 128))
115
93
  ])
116
94
  ]),
117
95
  _: 1
118
96
  })), [
119
- [o, ["TopNav", "click-Hamburger-Take-action-accordion"]]
97
+ [e, ["TopNav", "click-Hamburger-Take-action-accordion"]]
120
98
  ]),
121
- i((t(), c(u, {
99
+ i((t(), u(c, {
122
100
  id: "accordion-about-menu",
123
101
  class: "tw-w-full tw-pb-1"
124
102
  }, {
125
- header: a(() => e[2] || (e[2] = [
126
- r("h3", { class: "tw-pb-0.5" }, " About ", -1)
103
+ header: p(() => o[11] || (o[11] = [
104
+ a("h3", { class: "tw-pb-0.5" }, " About ", -1)
127
105
  ])),
128
- default: a(() => [
129
- r("div", C, [
130
- i((t(), n("a", H, e[3] || (e[3] = [
131
- s("About us")
106
+ default: p(() => [
107
+ a("div", E, [
108
+ i((t(), l("a", {
109
+ href: "/about",
110
+ class: "mobile-link",
111
+ onClick: o[2] || (o[2] = n(() => {
112
+ }, ["stop"]))
113
+ }, o[12] || (o[12] = [
114
+ r("About us")
132
115
  ]))), [
133
- [o, ["TopNav", "click-About-About us"]]
116
+ [e, ["TopNav", "click-About-About us"]]
134
117
  ]),
135
- i((t(), n("a", D, e[4] || (e[4] = [
136
- s("How Kiva works")
118
+ i((t(), l("a", {
119
+ href: "/about/how",
120
+ class: "mobile-link",
121
+ onClick: o[3] || (o[3] = n(() => {
122
+ }, ["stop"]))
123
+ }, o[13] || (o[13] = [
124
+ r("How Kiva works")
137
125
  ]))), [
138
- [o, ["TopNav", "click-About-How Kiva works"]]
126
+ [e, ["TopNav", "click-About-How Kiva works"]]
139
127
  ]),
140
- i((t(), n("a", E, e[5] || (e[5] = [
141
- s("Where Kiva works")
128
+ i((t(), l("a", {
129
+ href: "/about/where-kiva-works",
130
+ class: "mobile-link",
131
+ onClick: o[4] || (o[4] = n(() => {
132
+ }, ["stop"]))
133
+ }, o[14] || (o[14] = [
134
+ r("Where Kiva works")
142
135
  ]))), [
143
- [o, ["TopNav", "click-About-Where Kiva works"]]
136
+ [e, ["TopNav", "click-About-Where Kiva works"]]
144
137
  ]),
145
- i((t(), n("a", B, e[6] || (e[6] = [
146
- s("Impact")
138
+ i((t(), l("a", {
139
+ href: "/impact",
140
+ class: "mobile-link",
141
+ onClick: o[5] || (o[5] = n(() => {
142
+ }, ["stop"]))
143
+ }, o[15] || (o[15] = [
144
+ r("Impact")
147
145
  ]))), [
148
- [o, ["TopNav", "click-About-Impact"]]
146
+ [e, ["TopNav", "click-About-Impact"]]
149
147
  ]),
150
- i((t(), n("a", P, e[7] || (e[7] = [
151
- s("Leadership")
148
+ i((t(), l("a", {
149
+ href: "/about/leadership",
150
+ class: "mobile-link",
151
+ onClick: o[6] || (o[6] = n(() => {
152
+ }, ["stop"]))
153
+ }, o[16] || (o[16] = [
154
+ r("Leadership")
152
155
  ]))), [
153
- [o, ["TopNav", "click-About-Leadership"]]
156
+ [e, ["TopNav", "click-About-Leadership"]]
154
157
  ]),
155
- i((t(), n("a", $, e[8] || (e[8] = [
156
- s("Finances")
158
+ i((t(), l("a", {
159
+ href: "/about/finances",
160
+ class: "mobile-link",
161
+ onClick: o[7] || (o[7] = n(() => {
162
+ }, ["stop"]))
163
+ }, o[17] || (o[17] = [
164
+ r("Finances")
157
165
  ]))), [
158
- [o, ["TopNav", "click-About-Finances"]]
166
+ [e, ["TopNav", "click-About-Finances"]]
159
167
  ]),
160
- i((t(), n("a", F, e[9] || (e[9] = [
161
- s("Press")
168
+ i((t(), l("a", {
169
+ href: "/about/press-center",
170
+ class: "mobile-link",
171
+ onClick: o[8] || (o[8] = n(() => {
172
+ }, ["stop"]))
173
+ }, o[18] || (o[18] = [
174
+ r("Press")
162
175
  ]))), [
163
- [o, ["TopNav", "click-About-Press"]]
176
+ [e, ["TopNav", "click-About-Press"]]
164
177
  ]),
165
- i((t(), n("a", L, e[10] || (e[10] = [
166
- s("Due diligence")
178
+ i((t(), l("a", {
179
+ href: "/about/due-diligence",
180
+ class: "mobile-link",
181
+ onClick: o[9] || (o[9] = n(() => {
182
+ }, ["stop"]))
183
+ }, o[19] || (o[19] = [
184
+ r("Due diligence")
167
185
  ]))), [
168
- [o, ["TopNav", "click-About-Due diligence"]]
186
+ [e, ["TopNav", "click-About-Due diligence"]]
169
187
  ])
170
188
  ])
171
189
  ]),
172
190
  _: 1
173
191
  })), [
174
- [o, ["TopNav", "click-Hamburger-About-accordion"]]
192
+ [e, ["TopNav", "click-Hamburger-About-accordion"]]
175
193
  ])
176
194
  ]);
177
195
  }
178
- const O = /* @__PURE__ */ N(T, [["render", S], ["__scopeId", "data-v-4bba67dd"]]);
196
+ const q = /* @__PURE__ */ y(I, [["render", B], ["__scopeId", "data-v-d1df98b6"]]);
179
197
  export {
180
- O as default
198
+ q as default
181
199
  };
@@ -1 +1 @@
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}
1
+ .lend-link[data-v-de8f418f]{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-de8f418f]: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 { mdiArrowRight as S } from "@mdi/js";
2
- import { ref as L, computed as I, resolveComponent as u, resolveDirective as B, openBlock as t, createElementBlock as n, withDirectives as _, createElementVNode as o, createTextVNode as d, createVNode as r, createCommentVNode as C, withCtx as a, createBlock as N, Fragment as b, renderList as g, toDisplayString as K } from "vue";
2
+ import { ref as N, computed as I, resolveComponent as v, resolveDirective as B, openBlock as t, createElementBlock as n, withDirectives as i, createElementVNode as o, createTextVNode as d, createVNode as c, createCommentVNode as T, withCtx as r, createBlock as h, Fragment as g, renderList as L, toDisplayString as K } from "vue";
3
3
  import U from "../../KvAccordionItem.js";
4
4
  import V from "../../KvLoadingPlaceholder.js";
5
5
  import D from "./KvLendMenuCountryList.js";
@@ -7,11 +7,11 @@ import E from "./KvLendMenuSearchList.js";
7
7
  import F from "../../KvTab.js";
8
8
  import G from "../../KvTabPanel.js";
9
9
  import P from "../../KvTabs.js";
10
- import j from "../../../utils/paramCase.js";
11
- import q from "../../KvMaterialIcon.js";
10
+ import R from "../../../utils/paramCase.js";
11
+ import j from "../../KvMaterialIcon.js";
12
12
  import "./KvLendListMenu.css";
13
- import z from "../../../_virtual/_plugin-vue_export-helper.js";
14
- const H = {
13
+ import q from "../../../_virtual/_plugin-vue_export-helper.js";
14
+ const z = {
15
15
  components: {
16
16
  KvAccordionItem: U,
17
17
  KvTab: F,
@@ -20,7 +20,7 @@ const H = {
20
20
  KvLendMenuCountryList: D,
21
21
  KvLendMenuSearchList: E,
22
22
  KvLoadingPlaceholder: V,
23
- KvMaterialIcon: q
23
+ KvMaterialIcon: j
24
24
  },
25
25
  props: {
26
26
  categories: {
@@ -60,8 +60,8 @@ const H = {
60
60
  default: "/lend/countries-not-lent"
61
61
  }
62
62
  },
63
- setup(T) {
64
- const e = L(null), l = L([]), k = L(null), x = I(() => T.searches.length > 0);
63
+ setup(C) {
64
+ const e = N(null), l = N([]), k = N(null), x = I(() => C.searches.length > 0);
65
65
  return {
66
66
  mdiArrowRight: S,
67
67
  hasSearches: x,
@@ -69,19 +69,19 @@ const H = {
69
69
  regionAccordions: l,
70
70
  searchesLink: k,
71
71
  onClose: () => {
72
- var h, c, y, m, p, f, w;
73
- (y = (c = (h = e.value) == null ? void 0 : h.tabContext) == null ? void 0 : c.setTab) == null || y.call(c, 0), (p = (m = l.value) == null ? void 0 : m.forEach) == null || p.call(m, (v) => {
74
- var i;
75
- (i = v == null ? void 0 : v.collapse) == null || i.call(v);
76
- }), (w = (f = k.value) == null ? void 0 : f.collapse) == null || w.call(f);
72
+ var w, m, y, u, p, f, b;
73
+ (y = (m = (w = e.value) == null ? void 0 : w.tabContext) == null ? void 0 : m.setTab) == null || y.call(m, 0), (p = (u = l.value) == null ? void 0 : u.forEach) == null || p.call(u, (_) => {
74
+ var s;
75
+ (s = _ == null ? void 0 : _.collapse) == null || s.call(_);
76
+ }), (b = (f = k.value) == null ? void 0 : f.collapse) == null || b.call(f);
77
77
  },
78
- paramCase: j
78
+ paramCase: R
79
79
  };
80
80
  }
81
- }, J = { class: "tw-pb-2" }, O = {
81
+ }, H = { class: "tw-pb-2" }, J = {
82
82
  key: 0,
83
83
  href: "/monthlygood"
84
- }, Q = { class: "tw-inline-flex tw-items-center tw-py-2 tw-mb-2 tw-gap-0.5 tw-border-b tw-border-tertiary tw-font-medium" }, R = { class: "tw-font-medium" }, W = ["href"], X = { class: "tw-border-t tw-border-tertiary" }, Y = {
84
+ }, O = { class: "tw-inline-flex tw-items-center tw-py-2 tw-mb-2 tw-gap-0.5 tw-border-b tw-border-tertiary tw-font-medium" }, Q = { class: "tw-font-medium" }, W = ["href"], X = { class: "tw-border-t tw-border-tertiary" }, Y = {
85
85
  href: "/lend-by-category/recommended-by-lenders",
86
86
  class: "lend-link tw-text-brand"
87
87
  }, Z = {
@@ -94,103 +94,109 @@ const H = {
94
94
  key: 1,
95
95
  class: "tw-block tw-py-1 tw-text-tertiary"
96
96
  }, se = { key: 0 }, ae = { key: 1 }, re = ["href"];
97
- function ie(T, e, l, k, x, M) {
98
- const h = u("kv-material-icon"), c = u("kv-tab"), y = u("kv-loading-placeholder"), m = u("kv-tab-panel"), p = u("kv-accordion-item"), f = u("kv-lend-menu-country-list"), w = u("kv-lend-menu-search-list"), v = u("kv-tabs"), i = B("kv-track-event");
99
- return t(), n("div", J, [
100
- l.showMGUpsellLink ? _((t(), n("a", O, [
101
- o("span", Q, [
97
+ function ie(C, e, l, k, x, M) {
98
+ const w = v("kv-material-icon"), m = v("kv-tab"), y = v("kv-loading-placeholder"), u = v("kv-tab-panel"), p = v("kv-accordion-item"), f = v("kv-lend-menu-country-list"), b = v("kv-lend-menu-search-list"), _ = v("kv-tabs"), s = B("kv-track-event");
99
+ return t(), n("div", H, [
100
+ l.showMGUpsellLink ? i((t(), n("a", J, [
101
+ o("span", O, [
102
102
  e[0] || (e[0] = d(" Lend monthly ")),
103
- r(h, {
103
+ c(w, {
104
104
  icon: k.mdiArrowRight,
105
105
  class: "tw-w-3 tw-h-3"
106
106
  }, null, 8, ["icon"])
107
107
  ])
108
108
  ])), [
109
- [i, ["TopNav", "click-Lend-Menu-Monthly-Good", "Lend-monthly"]]
110
- ]) : C("", !0),
111
- r(v, { ref: "navLendCategories" }, {
112
- tabNav: a(() => [
113
- r(c, { "for-panel": "nav-lend-categories" }, {
114
- default: a(() => e[1] || (e[1] = [
109
+ [s, ["TopNav", "click-Lend-Menu-Monthly-Good", "Lend-monthly"]]
110
+ ]) : T("", !0),
111
+ c(_, { ref: "navLendCategories" }, {
112
+ tabNav: r(() => [
113
+ i((t(), h(m, { "for-panel": "nav-lend-categories" }, {
114
+ default: r(() => e[1] || (e[1] = [
115
115
  d(" Categories ")
116
116
  ])),
117
117
  _: 1
118
- }),
119
- r(c, { "for-panel": "nav-lend-regions" }, {
120
- default: a(() => e[2] || (e[2] = [
118
+ })), [
119
+ [s, ["TopNav", "click-Lend-Tab-Categories"]]
120
+ ]),
121
+ i((t(), h(m, { "for-panel": "nav-lend-regions" }, {
122
+ default: r(() => e[2] || (e[2] = [
121
123
  d(" Regions ")
122
124
  ])),
123
125
  _: 1
124
- }),
125
- l.userId ? (t(), N(c, {
126
+ })), [
127
+ [s, ["TopNav", "click-Lend-Tab-Regions"]]
128
+ ]),
129
+ l.userId ? i((t(), h(m, {
126
130
  key: 0,
127
131
  "for-panel": "nav-my-kiva"
128
132
  }, {
129
- default: a(() => e[3] || (e[3] = [
133
+ default: r(() => e[3] || (e[3] = [
130
134
  d(" My Kiva ")
131
135
  ])),
132
136
  _: 1
133
- })) : C("", !0)
137
+ })), [
138
+ [s, ["TopNav", "click-Lend-Tab-My-Kiva"]]
139
+ ]) : T("", !0)
134
140
  ]),
135
- tabPanels: a(() => [
136
- r(m, { id: "nav-lend-categories" }, {
137
- default: a(() => [
138
- o("ul", R, [
139
- l.isChannelsLoading ? (t(), n(b, { key: 0 }, g(14, (s) => o("li", {
140
- key: s,
141
+ tabPanels: r(() => [
142
+ c(u, { id: "nav-lend-categories" }, {
143
+ default: r(() => [
144
+ o("ul", Q, [
145
+ l.isChannelsLoading ? (t(), n(g, { key: 0 }, L(14, (a) => o("li", {
146
+ key: a,
141
147
  style: { width: "11rem" },
142
148
  class: "tw-py-1 tw-flex"
143
149
  }, [
144
- r(y, {
150
+ c(y, {
145
151
  class: "tw-inline-block tw-align-middle",
146
152
  style: { height: "1rem" }
147
153
  }),
148
154
  e[4] || (e[4] = o("span", { class: "tw-inline-block" }, " ", -1))
149
- ])), 64)) : (t(!0), n(b, { key: 1 }, g(l.categories, (s, A) => (t(), n("li", { key: A }, [
150
- _((t(), n("a", {
151
- href: s.url,
155
+ ])), 64)) : (t(!0), n(g, { key: 1 }, L(l.categories, (a, A) => (t(), n("li", { key: A }, [
156
+ i((t(), n("a", {
157
+ href: a.url,
152
158
  class: "lend-link"
153
159
  }, [
154
- d(K(s.name), 1)
160
+ d(K(a.name), 1)
155
161
  ], 8, W)), [
156
- [i, ["TopNav", "click-Lend-Category", s.name, A + 1]]
162
+ [s, ["TopNav", "click-Lend-Category", a.name, A + 1]]
157
163
  ])
158
164
  ]))), 128)),
159
165
  o("li", X, [
160
- _((t(), n("a", Y, e[5] || (e[5] = [
166
+ i((t(), n("a", Y, e[5] || (e[5] = [
161
167
  d(" Recommended by lenders ")
162
168
  ]))), [
163
- [i, ["TopNav", "click-Lend-Recommended-by-lenders"]]
169
+ [s, ["TopNav", "click-Lend-Recommended-by-lenders"]]
164
170
  ])
165
171
  ]),
166
172
  o("li", null, [
167
- _((t(), n("a", Z, e[6] || (e[6] = [
173
+ i((t(), n("a", Z, e[6] || (e[6] = [
168
174
  d(" All loans ")
169
175
  ]))), [
170
- [i, ["TopNav", "click-Lend-All_Loans"]]
176
+ [s, ["TopNav", "click-Lend-All_Loans"]]
171
177
  ])
172
178
  ]),
173
179
  o("li", null, [
174
- _((t(), n("a", $, e[7] || (e[7] = [
180
+ i((t(), n("a", $, e[7] || (e[7] = [
175
181
  d(" All categories ")
176
182
  ]))), [
177
- [i, ["TopNav", "click-Lend-All_Categories"]]
183
+ [s, ["TopNav", "click-Lend-All_Categories"]]
178
184
  ])
179
185
  ])
180
186
  ])
181
187
  ]),
182
188
  _: 1
183
189
  }),
184
- r(m, { id: "nav-lend-regions" }, {
185
- default: a(() => [
186
- l.isRegionsLoading ? (t(), n(b, { key: 0 }, g(8, (s) => r(p, {
187
- id: `placeholder-${s}-panel`,
188
- key: s,
190
+ c(u, { id: "nav-lend-regions" }, {
191
+ default: r(() => [
192
+ l.isRegionsLoading ? (t(), n(g, { key: 0 }, L(8, (a) => c(p, {
193
+ id: `placeholder-${a}-panel`,
194
+ key: a,
189
195
  disabled: !0
190
196
  }, {
191
- header: a(() => [
197
+ header: r(() => [
192
198
  o("div", ee, [
193
- r(y, {
199
+ c(y, {
194
200
  class: "tw-inline-block tw-align-middle",
195
201
  style: { height: "1rem" }
196
202
  }),
@@ -198,54 +204,54 @@ function ie(T, e, l, k, x, M) {
198
204
  ])
199
205
  ]),
200
206
  _: 2
201
- }, 1032, ["id"])), 64)) : (t(!0), n(b, { key: 1 }, g(l.regions, (s) => _((t(), N(p, {
202
- id: `lend-menu-${k.paramCase(s.name)}-panel`,
203
- key: s.name,
207
+ }, 1032, ["id"])), 64)) : (t(!0), n(g, { key: 1 }, L(l.regions, (a) => i((t(), h(p, {
208
+ id: `lend-menu-${k.paramCase(a.name)}-panel`,
209
+ key: a.name,
204
210
  ref_for: !0,
205
211
  ref: "regionAccordions"
206
212
  }, {
207
- header: a(() => [
208
- o("h3", te, K(s.name), 1)
213
+ header: r(() => [
214
+ o("h3", te, K(a.name), 1)
209
215
  ]),
210
- default: a(() => [
211
- r(f, {
212
- countries: s.countries
216
+ default: r(() => [
217
+ c(f, {
218
+ countries: a.countries
213
219
  }, null, 8, ["countries"])
214
220
  ]),
215
221
  _: 2
216
222
  }, 1032, ["id"])), [
217
- [i, ["TopNav", "click-Lend-Region", s.name]]
223
+ [s, ["TopNav", "click-Lend-Region", a.name]]
218
224
  ])), 128))
219
225
  ]),
220
226
  _: 1
221
227
  }),
222
- l.userId ? (t(), N(m, {
228
+ l.userId ? (t(), h(u, {
223
229
  key: 0,
224
230
  id: "nav-my-kiva"
225
231
  }, {
226
- default: a(() => [
232
+ default: r(() => [
227
233
  o("ul", ne, [
228
234
  o("li", null, [
229
- l.favorites > 0 ? _((t(), n("a", {
235
+ l.favorites > 0 ? i((t(), n("a", {
230
236
  key: 0,
231
237
  href: `/lend?lenderFavorite=${l.userId}`,
232
238
  class: "lend-link"
233
239
  }, e[9] || (e[9] = [
234
240
  d(" Saved loans ")
235
241
  ]), 8, oe)), [
236
- [i, ["TopNav", "click-Lend-Favorites"]]
242
+ [s, ["TopNav", "click-Lend-Favorites"]]
237
243
  ]) : (t(), n("span", le, "Saved loans"))
238
244
  ]),
239
245
  k.hasSearches ? (t(), n("li", se, [
240
- r(p, {
246
+ c(p, {
241
247
  id: "lend-menu-saved-searches-panel",
242
248
  ref: "searchesLink"
243
249
  }, {
244
- header: a(() => e[10] || (e[10] = [
250
+ header: r(() => e[10] || (e[10] = [
245
251
  o("p", { class: "tw-font-medium" }, " Saved searches ", -1)
246
252
  ])),
247
- default: a(() => [
248
- r(w, { searches: l.searches }, null, 8, ["searches"])
253
+ default: r(() => [
254
+ c(b, { searches: l.searches }, null, 8, ["searches"])
249
255
  ]),
250
256
  _: 1
251
257
  }, 512)
@@ -253,25 +259,25 @@ function ie(T, e, l, k, x, M) {
253
259
  o("span", { class: "tw-block tw-py-1 tw-text-tertiary" }, "Saved searches", -1)
254
260
  ]))),
255
261
  o("li", null, [
256
- _((t(), n("a", {
262
+ i((t(), n("a", {
257
263
  href: l.countriesNotLentToUrl,
258
264
  class: "lend-link"
259
265
  }, e[12] || (e[12] = [
260
266
  d(" Countries I haven't lent to ")
261
267
  ]), 8, re)), [
262
- [i, ["TopNav", "click-Lend-Countries_Not_Lent"]]
268
+ [s, ["TopNav", "click-Lend-Countries_Not_Lent"]]
263
269
  ])
264
270
  ])
265
271
  ])
266
272
  ]),
267
273
  _: 1
268
- })) : C("", !0)
274
+ })) : T("", !0)
269
275
  ]),
270
276
  _: 1
271
277
  }, 512)
272
278
  ]);
273
279
  }
274
- const ge = /* @__PURE__ */ z(H, [["render", ie], ["__scopeId", "data-v-5b7745cc"]]);
280
+ const ge = /* @__PURE__ */ q(z, [["render", ie], ["__scopeId", "data-v-de8f418f"]]);
275
281
  export {
276
282
  ge as default
277
283
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.69.1",
3
+ "version": "6.69.3",
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": "d022a741fc1f690033335ee6f38a7ab5e3bbddf8"
117
+ "gitHead": "f6ec5ff169304eff0c80651237eadcf8e79505d6"
118
118
  }