@kiva/kv-components 6.27.2 → 6.28.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.
@@ -9,63 +9,63 @@ function E(r) {
9
9
  function O(r) {
10
10
  return r < 25 && r > 0;
11
11
  }
12
- function h(r, c, f, e, t, i, s) {
13
- if (f && s)
12
+ function h(r, e, o, n, t, i, s) {
13
+ if (o && s)
14
14
  return "5";
15
- if (f && typeof i < "u") {
16
- let o = r == null ? void 0 : r(a);
17
- if (e && typeof e == "string" && !o) {
18
- const n = /* @__PURE__ */ new Date();
19
- n.setHours(n.getHours() + 24);
20
- const l = e.toUpperCase();
21
- o = l.includes(N) ? N : l.includes(A) ? A : l.includes(p) ? p : l.includes(P) ? P : "", o && c && c(a, o, { expires: n });
15
+ if (o && typeof i < "u") {
16
+ let f = r == null ? void 0 : r(a);
17
+ if (n && typeof n == "string" && !f) {
18
+ const c = /* @__PURE__ */ new Date();
19
+ c.setHours(c.getHours() + 24);
20
+ const l = n.toUpperCase();
21
+ f = l.includes(N) ? N : l.includes(A) ? A : l.includes(p) ? p : l.includes(P) ? P : "", f && e && e(a, f, { expires: c });
22
22
  }
23
- if (o) {
24
- let n = Math.floor(i / 5) * 5;
25
- return o === A ? (n = n === 0 ? 5 : n > 25 ? 25 : n, Number(n <= t ? n : t).toFixed()) : o === p ? (n = C(n), Number(n).toFixed()) : Number(t > 5 ? 5 : t).toFixed();
23
+ if (f) {
24
+ let c = Math.floor(i / 5) * 5;
25
+ return f === A ? (c = c === 0 ? 5 : c > 25 ? 25 : c, Number(c <= t ? c : t).toFixed()) : f === p ? (c = C(c), Number(c).toFixed()) : Number(t > 5 ? 5 : t).toFixed();
26
26
  }
27
27
  }
28
28
  return E(t) || O(t) ? Number(t).toFixed() : "25";
29
29
  }
30
30
  function _(r) {
31
- const c = [];
32
- let f = 100, e = r > 1e3 ? 1e3 : r, t = e / f;
31
+ const e = [];
32
+ let o = 100, n = r > 1e3 ? 1e3 : r, t = n / o;
33
33
  for (let i = 1; i <= t; i += 1) {
34
- const s = f * i + 500;
35
- if (s > e) break;
36
- c.push(u(s).format("0,0"));
34
+ const s = o * i + 500;
35
+ if (s > n) break;
36
+ e.push(u(s).format("0,0"));
37
37
  }
38
- f = 1e3, e = r > 1e4 ? 1e4 : r, t = e / f;
38
+ o = 1e3, n = r > 1e4 ? 1e4 : r, t = n / o;
39
39
  for (let i = 1; i <= t; i += 1) {
40
- const s = f * i + 1e3;
41
- if (s > e) break;
42
- c.push(u(s).format("0,0"));
40
+ const s = o * i + 1e3;
41
+ if (s > n) break;
42
+ e.push(u(s).format("0,0"));
43
43
  }
44
- return c.includes(u(e).format("0,0")) || c.push(u(e).format("0,0")), c;
44
+ return e.includes(u(n).format("0,0")) || e.push(u(n).format("0,0")), e;
45
45
  }
46
46
  function b(r) {
47
- const c = r < 50 ? r : 50, f = c / 5, e = Math.ceil((r - c) / 25) + 1, t = [];
48
- for (let i = 1; i <= f; i += 1)
47
+ const e = r < 50 ? r : 50, o = e / 5, n = Math.ceil((r - e) / 25) + 1, t = [];
48
+ for (let i = 1; i <= o; i += 1)
49
49
  t.push(u(5 * i).format("0,0"));
50
- if (r > c)
51
- for (let i = 3; i <= e; i += 1)
50
+ if (r > e)
51
+ for (let i = 3; i <= n; i += 1)
52
52
  t.push(u(25 * i).format("0,0"));
53
53
  return t;
54
54
  }
55
- function d(r, c) {
56
- const f = r / c, e = [];
57
- for (let t = 1; t <= f; t += 1)
58
- e.push(u(c * t).format("0,0"));
59
- return e;
55
+ function d(r, e) {
56
+ const o = r / e, n = [];
57
+ for (let t = 1; t <= o; t += 1)
58
+ n.push(u(e * t).format("0,0"));
59
+ return n;
60
60
  }
61
- function y(r, c = !1, f = 25, e = !1, t = !1, i = !0, s = !1) {
62
- const o = parseFloat(r);
63
- let n = e && !s ? b(o).slice(0, 28) : d(o, f).slice(0, 20);
64
- if (t && o > 500 && !i) {
65
- const l = _(o);
66
- n = n.concat(l);
61
+ function y(r, e = !1, o = 25, n = !1, t = !0, i = !1) {
62
+ const s = parseFloat(r);
63
+ let f = n && !i ? b(s).slice(0, 28) : d(s, o).slice(0, 20);
64
+ if (s > 500 && !t) {
65
+ const c = _(s);
66
+ f = f.concat(c);
67
67
  }
68
- return c && !n.includes(Number(r).toFixed()) && n.push(Number(r).toFixed()), n;
68
+ return e && !f.includes(Number(r).toFixed()) && f.push(Number(r).toFixed()), f;
69
69
  }
70
70
  export {
71
71
  p as BALANCE_CAMPAIGN,
@@ -1 +1 @@
1
- .loan-card-use[data-v-fcb027fa]:hover,.loan-card-use[data-v-fcb027fa]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-fcb027fa]{text-decoration-line:underline}.loan-card-progress[data-v-fcb027fa]:hover,.loan-card-progress[data-v-fcb027fa]:focus{text-decoration-line:none}
1
+ .loan-card-use[data-v-b8376722]:hover,.loan-card-use[data-v-b8376722]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-b8376722]{text-decoration-line:underline}.loan-card-progress[data-v-b8376722]:hover,.loan-card-progress[data-v-b8376722]:focus{text-decoration-line:none}
@@ -12,7 +12,7 @@ import ee from "./KvMaterialIcon.js";
12
12
  import te from "./KvLoadingPlaceholder.js";
13
13
  import ae from "./KvLoanTeamPick.js";
14
14
  import oe, { KV_LOAN_ACTIVITIES_FRAGMENT as ne } from "./KvLoanActivities.js";
15
- import { resolveComponent as r, openBlock as o, createElementBlock as m, normalizeClass as s, normalizeStyle as le, createElementVNode as c, createBlock as i, resolveDynamicComponent as g, withCtx as k, createVNode as w, createTextVNode as ie, toDisplayString as M, createCommentVNode as f, Fragment as re, renderList as se } from "vue";
15
+ import { resolveComponent as r, openBlock as o, createElementBlock as m, normalizeClass as s, normalizeStyle as le, createElementVNode as c, createBlock as i, resolveDynamicComponent as k, withCtx as g, createVNode as w, createTextVNode as ie, toDisplayString as M, createCommentVNode as f, Fragment as re, renderList as se } from "vue";
16
16
  import "./KvClassicLoanCard.css";
17
17
  import de from "../_virtual/_plugin-vue_export-helper.js";
18
18
  const Ge = K`
@@ -169,10 +169,6 @@ const Ge = K`
169
169
  type: String,
170
170
  default: ""
171
171
  },
172
- enableHugeAmount: {
173
- type: Boolean,
174
- default: !1
175
- },
176
172
  primaryButtonText: {
177
173
  type: String,
178
174
  default: "Lend"
@@ -273,10 +269,10 @@ const Ge = K`
273
269
  }, ue = { class: "tw-grow" }, ce = { class: "loan-card-active-hover" }, we = {
274
270
  key: 1,
275
271
  class: "tw-relative"
276
- }, fe = { key: 0 }, ge = {
272
+ }, fe = { key: 0 }, ke = {
277
273
  class: "tw-absolute tw-bottom-1 tw-left-1 tw-text-primary tw-bg-white tw-rounded tw-p-1 tw-mb-0 tw-mr-2 tw-text-h4 tw-inline-flex tw-items-center",
278
274
  style: { padding: "2px 6px", "text-transform": "capitalize" }
279
- }, ke = { class: "tw-mb-1.5 tw-pt-1" }, ve = { key: 1 }, he = {
275
+ }, ge = { class: "tw-mb-1.5 tw-pt-1" }, ve = { key: 1 }, he = {
280
276
  key: 0,
281
277
  class: "tw-w-full tw-pt-1 tw-pr-1"
282
278
  }, be = {
@@ -300,14 +296,14 @@ function _e(l, a, e, t, T, d) {
300
296
  class: s(["tw-mb-1 tw-w-full", { "tw-rounded-t tw-rounded-b-none": e.largeCard, "tw-rounded": !e.largeCard }]),
301
297
  style: { height: "15rem" }
302
298
  }, null, 8, ["class"])) : (o(), m("div", we, [
303
- (o(), i(g(t.tag), {
299
+ (o(), i(k(t.tag), {
304
300
  to: t.readMorePath,
305
301
  href: t.readMorePath,
306
302
  class: "tw-flex",
307
303
  "aria-label": "Borrower image",
308
304
  onClick: a[0] || (a[0] = (n) => t.clickReadMore("Photo", n))
309
305
  }, {
310
- default: k(() => [
306
+ default: g(() => [
311
307
  w(v, {
312
308
  class: s(["tw-relative tw-w-full tw-bg-black", { "tw-rounded-t": e.largeCard, "tw-rounded": !e.largeCard }]),
313
309
  alt: `Photo of ${t.borrowerName}`,
@@ -318,7 +314,7 @@ function _e(l, a, e, t, T, d) {
318
314
  "photo-path": e.photoPath
319
315
  }, null, 8, ["class", "alt", "aspect-ratio", "default-image", "hash", "images", "photo-path"]),
320
316
  t.countryName ? (o(), m("div", fe, [
321
- c("p", ge, [
317
+ c("p", ke, [
322
318
  w(h, {
323
319
  class: "tw-h-2 tw-w-2",
324
320
  icon: t.mdiMapMarker
@@ -345,14 +341,14 @@ function _e(l, a, e, t, T, d) {
345
341
  onToggleBookmark: a[1] || (a[1] = (n) => l.$emit("toggle-bookmark"))
346
342
  }, null, 8, ["loan-id", "is-bookmarked"]))
347
343
  ])),
348
- (o(), i(g(t.tag), {
344
+ (o(), i(k(t.tag), {
349
345
  to: t.readMorePath,
350
346
  href: t.readMorePath,
351
347
  class: s(["tw-flex tw-no-underline hover:tw-no-underline focus:tw-no-underline", { "tw-px-1": e.largeCard }]),
352
348
  "aria-label": "Loan tag",
353
349
  onClick: a[2] || (a[2] = (n) => t.clickReadMore("Tag", n))
354
350
  }, {
355
- default: k(() => [
351
+ default: g(() => [
356
352
  e.showTags && !t.isLoading ? (o(), i(_, {
357
353
  key: 0,
358
354
  loan: e.loan
@@ -360,15 +356,15 @@ function _e(l, a, e, t, T, d) {
360
356
  ]),
361
357
  _: 1
362
358
  }, 8, ["to", "href", "class"])),
363
- (o(), i(g(t.tag), {
359
+ (o(), i(k(t.tag), {
364
360
  to: t.readMorePath,
365
361
  href: t.readMorePath,
366
362
  class: "loan-card-use tw-no-underline tw-text-primary",
367
363
  "aria-label": "Loan use",
368
364
  onClick: a[3] || (a[3] = (n) => t.clickReadMore("Use", n))
369
365
  }, {
370
- default: k(() => [
371
- c("div", ke, [
366
+ default: g(() => [
367
+ c("div", ge, [
372
368
  t.isLoading ? (o(), m("div", {
373
369
  key: 0,
374
370
  class: s(["tw-w-full", { "tw-px-1": e.largeCard }]),
@@ -421,7 +417,7 @@ function _e(l, a, e, t, T, d) {
421
417
  })
422
418
  ])),
423
419
  c("div", null, [
424
- t.sharesAvailable ? (o(), i(g(t.tag), {
420
+ t.sharesAvailable ? (o(), i(k(t.tag), {
425
421
  key: 0,
426
422
  to: t.readMorePath,
427
423
  href: t.readMorePath,
@@ -429,7 +425,7 @@ function _e(l, a, e, t, T, d) {
429
425
  "aria-label": "Loan progress",
430
426
  onClick: a[5] || (a[5] = (n) => t.clickReadMore("Progress", n))
431
427
  }, {
432
- default: k(() => [
428
+ default: g(() => [
433
429
  w(A, {
434
430
  id: "loanProgress",
435
431
  "money-left": t.unreservedAmount,
@@ -457,7 +453,6 @@ function _e(l, a, e, t, T, d) {
457
453
  "user-balance": e.userBalance,
458
454
  "get-cookie": e.getCookie,
459
455
  "set-cookie": e.setCookie,
460
- "enable-huge-amount": e.enableHugeAmount,
461
456
  "is-visitor": e.isVisitor,
462
457
  "primary-button-text": e.primaryButtonText,
463
458
  "secondary-button-text": e.secondaryButtonText,
@@ -466,7 +461,7 @@ function _e(l, a, e, t, T, d) {
466
461
  onAddToBasket: a[6] || (a[6] = (n) => l.$emit("add-to-basket", n)),
467
462
  onShowLoanDetails: a[7] || (a[7] = (n) => t.clickReadMore("ViewLoan", n)),
468
463
  onRemoveFromBasket: a[8] || (a[8] = (n) => l.$emit("remove-from-basket", n))
469
- }, null, 8, ["loan", "unreserved-amount", "basket-items", "is-loading", "is-adding", "enable-five-dollars-notes", "five-dollars-selected", "kv-track-function", "show-view-loan", "custom-loan-details", "external-links", "route", "user-balance", "get-cookie", "set-cookie", "enable-huge-amount", "is-visitor", "primary-button-text", "secondary-button-text", "secondary-button-handler", "class"])) : (o(), i(u, {
464
+ }, null, 8, ["loan", "unreserved-amount", "basket-items", "is-loading", "is-adding", "enable-five-dollars-notes", "five-dollars-selected", "kv-track-function", "show-view-loan", "custom-loan-details", "external-links", "route", "user-balance", "get-cookie", "set-cookie", "is-visitor", "primary-button-text", "secondary-button-text", "secondary-button-handler", "class"])) : (o(), i(u, {
470
465
  key: 1,
471
466
  class: "tw-rounded tw-self-start",
472
467
  style: { width: "9rem", height: "3rem" }
@@ -493,14 +488,13 @@ function _e(l, a, e, t, T, d) {
493
488
  "get-cookie": e.getCookie,
494
489
  "set-cookie": e.setCookie,
495
490
  "error-msg": e.errorMsg,
496
- "enable-huge-amount": e.enableHugeAmount,
497
491
  "is-visitor": e.isVisitor,
498
492
  onAddToBasket: a[9] || (a[9] = (n) => l.$emit("add-to-basket", n))
499
- }, null, 8, ["loan", "combined-activities", "kv-track-function", "basket-items", "is-adding", "enable-five-dollars-notes", "five-dollars-selected", "show-view-loan", "custom-loan-details", "external-links", "route", "user-balance", "get-cookie", "set-cookie", "error-msg", "enable-huge-amount", "is-visitor"])
493
+ }, null, 8, ["loan", "combined-activities", "kv-track-function", "basket-items", "is-adding", "enable-five-dollars-notes", "five-dollars-selected", "show-view-loan", "custom-loan-details", "external-links", "route", "user-balance", "get-cookie", "set-cookie", "error-msg", "is-visitor"])
500
494
  ])) : f("", !0)
501
495
  ], 6);
502
496
  }
503
- const Ue = /* @__PURE__ */ de(me, [["render", _e], ["__scopeId", "data-v-fcb027fa"]]);
497
+ const Ue = /* @__PURE__ */ de(me, [["render", _e], ["__scopeId", "data-v-b8376722"]]);
504
498
  export {
505
499
  Ge as KV_CLASSIC_LOAN_CARD_FRAGMENT,
506
500
  Ie as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
@@ -1 +1 @@
1
- .amountDropdownWrapper[data-v-7d70fb6b] select{border-radius:14px 0 0 14px}.lend-again[data-v-7d70fb6b] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-7d70fb6b] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-7d70fb6b] select{cursor:pointer;border-radius:.875rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-7d70fb6b] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.preset-option[data-v-7d70fb6b] span.tw-w-full:first-child{border-width:2px;--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.selected-dropdown[data-v-7d70fb6b] select,.selected-option[data-v-7d70fb6b] span.tw-w-full:first-child{--tw-border-opacity: 1;border-color:rgba(var(--border-action),var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgba(var(--bg-secondary),var(--tw-bg-opacity, 1))}.button-ellipsis[data-v-7d70fb6b] span>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
1
+ .amountDropdownWrapper[data-v-cc6815c8] select{border-radius:14px 0 0 14px}.lend-again[data-v-cc6815c8] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-cc6815c8] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-cc6815c8] select{cursor:pointer;border-radius:.875rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-cc6815c8] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.preset-option[data-v-cc6815c8] span.tw-w-full:first-child{border-width:2px;--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.selected-dropdown[data-v-cc6815c8] select,.selected-option[data-v-cc6815c8] span.tw-w-full:first-child{--tw-border-opacity: 1;border-color:rgba(var(--border-action),var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgba(var(--bg-secondary),var(--tw-bg-opacity, 1))}.button-ellipsis[data-v-cc6815c8] span>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@@ -1,22 +1,22 @@
1
1
  import C from "graphql-tag";
2
- import { mdiChevronRight as _ } from "@mdi/js";
3
- import { getLendCtaSelectedOption as B, getDropdownPriceArray as D } from "../utils/loanUtils.js";
2
+ import { mdiChevronRight as b } from "@mdi/js";
3
+ import { getLendCtaSelectedOption as g, getDropdownPriceArray as D } from "../utils/loanUtils.js";
4
4
  import P from "./KvLendAmountButton.js";
5
5
  import S from "./KvSelect.js";
6
6
  import F from "./KvButton.js";
7
7
  import I from "./KvMaterialIcon.js";
8
8
  import N from "./KvCartPill.js";
9
- import { resolveComponent as A, openBlock as i, createElementBlock as l, createBlock as a, withCtx as r, createElementVNode as u, createCommentVNode as d, normalizeClass as h, createTextVNode as f, toDisplayString as w, createVNode as V, withModifiers as p, Fragment as L, renderList as g } from "vue";
9
+ import { resolveComponent as A, openBlock as i, createElementBlock as r, createBlock as a, withCtx as l, createElementVNode as u, createCommentVNode as d, normalizeClass as m, createTextVNode as w, toDisplayString as f, createVNode as V, withModifiers as y, Fragment as L, renderList as v } from "vue";
10
10
  import "./KvLendCta.css";
11
11
  import O from "../_virtual/_plugin-vue_export-helper.js";
12
- const k = "Other", ot = C`
12
+ const k = "Other", it = C`
13
13
  fragment KvLendCta on LoanBasic {
14
14
  id
15
15
  name
16
16
  status
17
17
  minNoteSize
18
18
  }
19
- `, it = C`
19
+ `, at = C`
20
20
  fragment KvLendCtaUser on LoanBasic {
21
21
  id
22
22
  userProperties {
@@ -93,10 +93,6 @@ const k = "Other", ot = C`
93
93
  type: Boolean,
94
94
  default: !1
95
95
  },
96
- enableHugeAmount: {
97
- type: Boolean,
98
- default: !1
99
- },
100
96
  isVisitor: {
101
97
  type: Boolean,
102
98
  default: !0
@@ -137,9 +133,9 @@ const k = "Other", ot = C`
137
133
  data() {
138
134
  var t, n;
139
135
  return {
140
- mdiChevronRight: _,
136
+ mdiChevronRight: b,
141
137
  defaultAmountOptions: [25, 50, 75],
142
- selectedOption: B(
138
+ selectedOption: g(
143
139
  this.getCookie,
144
140
  this.setCookie,
145
141
  this.enableFiveDollarsNotes,
@@ -182,7 +178,6 @@ const k = "Other", ot = C`
182
178
  this.isCompleteLoanActive,
183
179
  t,
184
180
  this.enableFiveDollarsNotes,
185
- this.enableHugeAmount,
186
181
  this.isVisitor
187
182
  );
188
183
  return this.maxAmount ? n.filter((s) => parseFloat(s) <= parseFloat(this.maxAmount)) : n;
@@ -276,12 +271,12 @@ const k = "Other", ot = C`
276
271
  },
277
272
  watch: {
278
273
  unreservedAmount(t, n) {
279
- var s, y;
280
- t !== n && n === "" && (this.selectedOption = B(
274
+ var s, p;
275
+ t !== n && n === "" && (this.selectedOption = g(
281
276
  this.getCookie,
282
277
  this.setCookie,
283
278
  this.enableFiveDollarsNotes,
284
- (y = (s = this.route) == null ? void 0 : s.query) == null ? void 0 : y.utm_campaign,
279
+ (p = (s = this.route) == null ? void 0 : s.query) == null ? void 0 : p.utm_campaign,
285
280
  t,
286
281
  this.userBalance,
287
282
  this.fiveDollarsSelected,
@@ -348,23 +343,26 @@ const k = "Other", ot = C`
348
343
  );
349
344
  }
350
345
  }
351
- }, H = { class: "tw-whitespace-nowrap" }, K = {
346
+ }, K = { class: "tw-whitespace-nowrap" }, R = {
352
347
  key: 3,
353
348
  class: "tw-w-full tw-text-center tw-rounded tw-p-2",
354
349
  style: { background: "#f1f1f1" }
355
- }, R = { class: "tw-flex" }, U = ["disabled"], E = ["value"], j = {
350
+ }, U = { class: "tw-flex" }, E = ["disabled"], H = {
351
+ key: 0,
352
+ class: "tw-flex tw-gap-1 lg:tw-gap-2 tw-flex-wrap md:tw-flex-nowrap"
353
+ }, j = ["value"], z = {
356
354
  key: 1,
357
355
  class: "amountDropdownWrapper"
358
- }, z = ["value"];
359
- function q(t, n, s, y, c, e) {
360
- const b = A("kv-cart-pill"), m = A("kv-ui-button"), x = A("kv-material-icon"), v = A("kv-ui-select"), T = A("kv-lend-amount-button");
361
- return i(), l("div", H, [
362
- s.showPill && s.showPresetAmounts ? (i(), a(b, {
356
+ }, q = ["value"];
357
+ function Z(t, n, s, p, h, e) {
358
+ const x = A("kv-cart-pill"), c = A("kv-ui-button"), T = A("kv-material-icon"), B = A("kv-ui-select"), _ = A("kv-lend-amount-button");
359
+ return i(), r("div", K, [
360
+ s.showPill && s.showPresetAmounts ? (i(), a(x, {
363
361
  key: 0,
364
362
  "borrower-name": e.loanName,
365
363
  class: "!tw-w-full tw-justify-center tw-pb-2"
366
364
  }, {
367
- icon: r(() => n[5] || (n[5] = [
365
+ icon: l(() => n[5] || (n[5] = [
368
366
  u("svg", {
369
367
  xmlns: "http://www.w3.org/2000/svg",
370
368
  width: "25",
@@ -399,28 +397,28 @@ function q(t, n, s, y, c, e) {
399
397
  ])),
400
398
  _: 1
401
399
  }, 8, ["borrower-name"])) : d("", !0),
402
- e.isInBasket ? (i(), a(m, {
400
+ e.isInBasket ? (i(), a(c, {
403
401
  key: 1,
404
402
  variant: "secondary",
405
- class: h(["tw-inline-flex tw-flex-1", { "tw-w-full": s.showPresetAmounts }]),
403
+ class: m(["tw-inline-flex tw-flex-1", { "tw-w-full": s.showPresetAmounts }]),
406
404
  "data-testid": "bp-lend-cta-checkout-button",
407
405
  to: s.externalLinks ? void 0 : "/basket",
408
406
  href: s.externalLinks ? "/basket" : void 0,
409
407
  onClick: n[0] || (n[0] = (o) => e.clickSecondaryButton(o))
410
408
  }, {
411
- default: r(() => [
412
- f(w(e.loanInBasketButtonText), 1)
409
+ default: l(() => [
410
+ w(f(e.loanInBasketButtonText), 1)
413
411
  ]),
414
412
  _: 1
415
- }, 8, ["class", "to", "href"])) : e.showNonActionableLoanButton ? (i(), a(m, {
413
+ }, 8, ["class", "to", "href"])) : e.showNonActionableLoanButton ? (i(), a(c, {
416
414
  key: 2,
417
415
  class: "tw-inline-flex tw-flex-1"
418
416
  }, {
419
- default: r(() => [
420
- f(w(e.ctaButtonText), 1)
417
+ default: l(() => [
418
+ w(f(e.ctaButtonText), 1)
421
419
  ]),
422
420
  _: 1
423
- })) : e.isFunded ? (i(), l("div", K, " This loan was just funded! 🎉 ")) : s.showViewLoan ? (i(), a(m, {
421
+ })) : e.isFunded ? (i(), r("div", R, " This loan was just funded! 🎉 ")) : s.showViewLoan ? (i(), a(c, {
424
422
  key: 4,
425
423
  state: `${e.allSharesReserved ? "disabled" : ""}`,
426
424
  to: s.externalLinks ? void 0 : e.readMorePath,
@@ -428,122 +426,118 @@ function q(t, n, s, y, c, e) {
428
426
  class: "tw-mb-0",
429
427
  onClick: n[1] || (n[1] = (o) => t.$emit("show-loan-details", o))
430
428
  }, {
431
- default: r(() => [
432
- u("span", R, [
433
- n[6] || (n[6] = f(" View loan ")),
434
- V(x, {
429
+ default: l(() => [
430
+ u("span", U, [
431
+ n[6] || (n[6] = w(" View loan ")),
432
+ V(T, {
435
433
  class: "tw-w-3 tw-h-3 tw-align-middle",
436
- icon: c.mdiChevronRight
434
+ icon: h.mdiChevronRight
437
435
  }, null, 8, ["icon"])
438
436
  ])
439
437
  ]),
440
438
  _: 1
441
- }, 8, ["state", "to", "href"])) : e.useFormSubmit ? (i(), l("form", {
439
+ }, 8, ["state", "to", "href"])) : e.useFormSubmit ? (i(), r("form", {
442
440
  key: 5,
443
441
  class: "tw-w-full tw-flex",
444
- onSubmit: n[4] || (n[4] = p((...o) => e.addToBasket && e.addToBasket(...o), ["prevent"]))
442
+ onSubmit: n[4] || (n[4] = y((...o) => e.addToBasket && e.addToBasket(...o), ["prevent"]))
445
443
  }, [
446
444
  u("fieldset", {
447
- class: h(["tw-w-full tw-flex", {
445
+ class: m(["tw-w-full tw-flex", {
448
446
  "tw-flex-col md:tw-flex-row md:tw-justify-between tw-min-w-0": s.showPresetAmounts,
449
447
  "tw-gap-1.5": s.showPresetAmounts && !e.isLendAmountButton
450
448
  }]),
451
449
  disabled: s.isAdding,
452
450
  "data-testid": "bp-lend-cta-select-and-button"
453
451
  }, [
454
- s.showPresetAmounts && !s.isAdding ? (i(), l("div", {
455
- key: 0,
456
- class: h(["tw-flex tw-gap-1 lg:tw-gap-2", { "tw-flex-wrap md:tw-flex-nowrap": s.enableHugeAmount }])
457
- }, [
458
- e.isLendAmountButton ? d("", !0) : (i(!0), l(L, { key: 0 }, g(e.presetButtonsPrices, (o) => (i(), a(m, {
452
+ s.showPresetAmounts && !s.isAdding ? (i(), r("div", H, [
453
+ e.isLendAmountButton ? d("", !0) : (i(!0), r(L, { key: 0 }, v(e.presetButtonsPrices, (o) => (i(), a(c, {
459
454
  key: o,
460
455
  variant: "secondary",
461
- class: h(["tw-inline-flex tw-flex-1 preset-option tw-w-8", { "selected-option": c.selectedOption == o }]),
456
+ class: m(["tw-inline-flex tw-flex-1 preset-option tw-w-8", { "selected-option": h.selectedOption == o }]),
462
457
  "data-testid": "bp-lend-cta-lend-button",
463
- onClick: (Z) => e.clickPresetButton(o)
458
+ onClick: (G) => e.clickPresetButton(o)
464
459
  }, {
465
- default: r(() => [
466
- f(" $" + w(o), 1)
460
+ default: l(() => [
461
+ w(" $" + f(o), 1)
467
462
  ]),
468
463
  _: 2
469
464
  }, 1032, ["class", "onClick"]))), 128)),
470
- e.showFilteredDropdown ? (i(), a(v, {
465
+ e.showFilteredDropdown ? (i(), a(B, {
471
466
  key: 1,
472
467
  id: `LoanAmountDropdown_${e.loanId}`,
473
- modelValue: c.selectedDropdownOption,
468
+ modelValue: h.selectedDropdownOption,
474
469
  "onUpdate:modelValue": [
475
- n[2] || (n[2] = (o) => c.selectedDropdownOption = o),
470
+ n[2] || (n[2] = (o) => h.selectedDropdownOption = o),
476
471
  e.trackLendAmountSelection
477
472
  ],
478
- class: h(["tw-min-w-12 tw-rounded filtered-dropdown", {
473
+ class: m(["tw-min-w-12 tw-rounded filtered-dropdown tw-w-full", {
479
474
  "unselected-dropdown": !e.selectedDropdown,
480
- "selected-dropdown": e.selectedDropdown,
481
- "tw-w-full": s.enableHugeAmount
475
+ "selected-dropdown": e.selectedDropdown
482
476
  }]),
483
477
  "aria-label": "Lend amount",
484
- onClick: p(e.clickDropdown, ["stop"])
478
+ onClick: y(e.clickDropdown, ["stop"])
485
479
  }, {
486
- default: r(() => [
487
- (i(!0), l(L, null, g(e.presetDropdownPrices, (o) => (i(), l("option", {
480
+ default: l(() => [
481
+ (i(!0), r(L, null, v(e.presetDropdownPrices, (o) => (i(), r("option", {
488
482
  key: o,
489
483
  value: o
490
- }, w(o !== c.OTHER_OPTION ? `$${o}` : o), 9, E))), 128))
484
+ }, f(o !== h.OTHER_OPTION ? `$${o}` : o), 9, j))), 128))
491
485
  ]),
492
486
  _: 1
493
487
  }, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : d("", !0)
494
- ], 2)) : s.showPresetAmounts ? d("", !0) : (i(), l("div", j, [
495
- e.hideShowLendDropdown && !e.isLessThan25 ? (i(), a(v, {
488
+ ])) : s.showPresetAmounts ? d("", !0) : (i(), r("div", z, [
489
+ e.hideShowLendDropdown && !e.isLessThan25 ? (i(), a(B, {
496
490
  key: 0,
497
491
  id: `LoanAmountDropdown_${e.loanId}`,
498
- modelValue: c.selectedOption,
492
+ modelValue: h.selectedOption,
499
493
  "onUpdate:modelValue": [
500
- n[3] || (n[3] = (o) => c.selectedOption = o),
494
+ n[3] || (n[3] = (o) => h.selectedOption = o),
501
495
  e.trackLendAmountSelection
502
496
  ],
503
497
  class: "tw-min-w-12",
504
498
  style: { "border-radius": "14px 0 0 14px" },
505
499
  "aria-label": "Lend amount",
506
- onClick: p(e.clickDropdown, ["stop"])
500
+ onClick: y(e.clickDropdown, ["stop"])
507
501
  }, {
508
- default: r(() => [
509
- (i(!0), l(L, null, g(e.prices, (o) => (i(), l("option", {
502
+ default: l(() => [
503
+ (i(!0), r(L, null, v(e.prices, (o) => (i(), r("option", {
510
504
  key: o,
511
505
  value: o
512
- }, " $" + w(o), 9, z))), 128))
506
+ }, " $" + f(o), 9, q))), 128))
513
507
  ]),
514
508
  _: 1
515
509
  }, 8, ["id", "modelValue", "onUpdate:modelValue", "onClick"])) : d("", !0)
516
510
  ])),
517
511
  u("div", {
518
- class: h({
512
+ class: m({
519
513
  "tw-min-w-0": s.showPresetAmounts,
520
514
  lendButtonWrapper: e.hideShowLendDropdown && !s.showPresetAmounts,
521
515
  "tw-hidden": e.hideLendButton
522
516
  })
523
517
  }, [
524
- e.lendButtonVisibility && !e.isLessThan25 ? (i(), a(m, {
518
+ e.lendButtonVisibility && !e.isLessThan25 ? (i(), a(c, {
525
519
  key: "lendButton",
526
- class: h(["tw-inline-flex tw-flex-1", { "button-ellipsis tw-w-full": s.showPresetAmounts }]),
520
+ class: m(["tw-inline-flex tw-flex-1", { "button-ellipsis tw-w-full": s.showPresetAmounts }]),
527
521
  "data-testid": "bp-lend-cta-lend-button",
528
522
  type: "submit"
529
523
  }, {
530
- default: r(() => [
531
- f(w(e.ctaButtonText), 1)
524
+ default: l(() => [
525
+ w(f(e.ctaButtonText), 1)
532
526
  ]),
533
527
  _: 1
534
- }, 8, ["class"])) : e.showLendAgain ? (i(), a(m, {
528
+ }, 8, ["class"])) : e.showLendAgain ? (i(), a(c, {
535
529
  key: "lendAgainButton",
536
- class: h(["lend-again", { "tw-w-full": s.showPresetAmounts }]),
530
+ class: m(["lend-again", { "tw-w-full": s.showPresetAmounts }]),
537
531
  "data-testid": "bp-lend-cta-lend-again-button",
538
532
  type: "submit"
539
533
  }, {
540
- default: r(() => [
541
- f(w(s.primaryButtonText || "Lend") + " again ", 1)
534
+ default: l(() => [
535
+ w(f(s.primaryButtonText || "Lend") + " again ", 1)
542
536
  ]),
543
537
  _: 1
544
538
  }, 8, ["class"])) : d("", !0)
545
539
  ], 2),
546
- e.isLendAmountButton && !s.enableFiveDollarsNotes ? (i(), a(T, {
540
+ e.isLendAmountButton && !s.enableFiveDollarsNotes ? (i(), a(_, {
547
541
  key: 2,
548
542
  class: "tw-w-full",
549
543
  "loan-id": e.loanId,
@@ -552,22 +546,22 @@ function q(t, n, s, y, c, e) {
552
546
  "is-adding": s.isAdding,
553
547
  onAddToBasket: e.addToBasket
554
548
  }, null, 8, ["loan-id", "amount-left", "is-adding", "onAddToBasket"])) : d("", !0),
555
- !s.isLoading && s.isAdding ? (i(), a(m, {
549
+ !s.isLoading && s.isAdding ? (i(), a(c, {
556
550
  key: 3,
557
551
  class: "tw-inline-flex tw-flex-1"
558
552
  }, {
559
- default: r(() => n[7] || (n[7] = [
560
- f(" Adding to basket ")
553
+ default: l(() => n[7] || (n[7] = [
554
+ w(" Adding to basket ")
561
555
  ])),
562
556
  _: 1
563
557
  })) : d("", !0)
564
- ], 10, U)
558
+ ], 10, E)
565
559
  ], 32)) : d("", !0)
566
560
  ]);
567
561
  }
568
- const at = /* @__PURE__ */ O(M, [["render", q], ["__scopeId", "data-v-7d70fb6b"]]);
562
+ const rt = /* @__PURE__ */ O(M, [["render", Z], ["__scopeId", "data-v-cc6815c8"]]);
569
563
  export {
570
- ot as KV_LEND_CTA_FRAGMENT,
571
- it as KV_LEND_CTA_USER_FRAGMENT,
572
- at as default
564
+ it as KV_LEND_CTA_FRAGMENT,
565
+ at as KV_LEND_CTA_USER_FRAGMENT,
566
+ rt as default
573
567
  };
@@ -1 +1 @@
1
- .loan-activity[data-v-a3adcb1a] #kvLightboxBody{display:flex;flex-direction:column;padding-left:0;padding-right:0;padding-bottom:0}.loan-activity[data-v-a3adcb1a] div>div>div>div>div:first-child{box-shadow:var(--kiva-box-shadow)}.loan-activity[data-v-a3adcb1a] div>div>div>div>div:first-child>div,.loan-activity[data-v-a3adcb1a] #kvLightboxBody div{box-shadow:none}.loan-activity[data-v-a3adcb1a] #kvLightboxBody>div:first-child{padding-left:2rem;padding-right:2rem}.loan-activity[data-v-a3adcb1a] [role=dialog]{min-width:840px;max-width:840px!important}@media (max-width: calc(840px + 2rem)){.loan-activity[data-v-a3adcb1a] [role=dialog]{min-width:100%;max-width:100%!important}}.loan-activity[data-v-a3adcb1a] #kvLightboxBody>div:nth-child(2){padding-left:2rem;padding-right:2rem;box-shadow:var(--kiva-negative-box-shadow)}
1
+ .loan-activity[data-v-159396a6] #kvLightboxBody{display:flex;flex-direction:column;padding-left:0;padding-right:0;padding-bottom:0}.loan-activity[data-v-159396a6] div>div>div>div>div:first-child{box-shadow:var(--kiva-box-shadow)}.loan-activity[data-v-159396a6] div>div>div>div>div:first-child>div,.loan-activity[data-v-159396a6] #kvLightboxBody div{box-shadow:none}.loan-activity[data-v-159396a6] #kvLightboxBody>div:first-child{padding-left:2rem;padding-right:2rem}.loan-activity[data-v-159396a6] [role=dialog]{min-width:840px;max-width:840px!important}@media (max-width: calc(840px + 2rem)){.loan-activity[data-v-159396a6] [role=dialog]{min-width:100%;max-width:100%!important}}.loan-activity[data-v-159396a6] #kvLightboxBody>div:nth-child(2){padding-left:2rem;padding-right:2rem;box-shadow:var(--kiva-negative-box-shadow)}
@@ -1,5 +1,5 @@
1
- import p from "graphql-tag";
2
- import { toRefs as F, ref as K, computed as v, resolveComponent as g, openBlock as s, createElementBlock as d, createElementVNode as i, createVNode as w, toDisplayString as c, createCommentVNode as k, withCtx as A, Fragment as L, renderList as C, createBlock as M } from "vue";
1
+ import C from "graphql-tag";
2
+ import { toRefs as F, ref as K, computed as v, resolveComponent as b, openBlock as s, createElementBlock as d, createElementVNode as i, createVNode as g, toDisplayString as r, createCommentVNode as k, withCtx as A, Fragment as L, renderList as p, createBlock as M } from "vue";
3
3
  import B from "numeral";
4
4
  import { format as N } from "date-fns";
5
5
  import T from "./KvActivityRow.js";
@@ -7,7 +7,7 @@ import I from "./KvLightbox.js";
7
7
  import j from "./KvLendCta.js";
8
8
  import "./KvLoanActivities.css";
9
9
  import D from "../_virtual/_plugin-vue_export-helper.js";
10
- const nt = p`
10
+ const nt = C`
11
11
  fragment KvLoanActivities on LoanBasic {
12
12
  id
13
13
  lenders(limit: 0) {
@@ -100,10 +100,6 @@ const nt = p`
100
100
  type: Boolean,
101
101
  default: !1
102
102
  },
103
- enableHugeAmount: {
104
- type: Boolean,
105
- default: !1
106
- },
107
103
  isVisitor: {
108
104
  type: Boolean,
109
105
  default: !0
@@ -117,7 +113,7 @@ const nt = p`
117
113
  loan: a,
118
114
  combinedActivities: t,
119
115
  kvTrackFunction: e
120
- } = F(f), r = K(!1), _ = v(() => {
116
+ } = F(f), c = K(!1), _ = v(() => {
121
117
  var o;
122
118
  return `Activity for ${(o = a.value) == null ? void 0 : o.name}`;
123
119
  }), u = v(() => {
@@ -127,24 +123,24 @@ const nt = p`
127
123
  var n, m;
128
124
  const o = ((m = (n = a.value) == null ? void 0 : n.loanFundraisingInfo) == null ? void 0 : m.fundedAmount) ?? 0;
129
125
  return B(parseFloat(o)).format("$0,0");
130
- }), b = v(() => {
126
+ }), w = v(() => {
131
127
  const o = t.value.find((n) => n.data.some((m) => m.type === "LendingAction"));
132
128
  return (o == null ? void 0 : o.data[0]) ?? {};
133
129
  });
134
130
  return {
135
- lightboxOpen: r,
131
+ lightboxOpen: c,
136
132
  modalTitle: _,
137
133
  formattedDate: (o) => {
138
134
  const n = new Date(o);
139
135
  return N(n, "MMM d, yyyy");
140
136
  },
141
137
  showActivityModal: () => {
142
- e.value("loan-card", "click", "see-all-activity"), r.value = !0;
138
+ e.value("loan-card", "click", "see-all-activity"), c.value = !0;
143
139
  },
144
140
  closeLightbox: () => {
145
- r.value = !1;
141
+ c.value = !1;
146
142
  },
147
- singleActivity: b,
143
+ singleActivity: w,
148
144
  lendersNumber: u,
149
145
  amountLent: y
150
146
  };
@@ -152,40 +148,40 @@ const nt = p`
152
148
  }, O = {
153
149
  key: 0,
154
150
  class: "loan-activity"
155
- }, R = { class: "tw-flex tw-justify-center lg:tw-px-0" }, S = { class: "tw-flex tw-justify-center tw-mt-1 tw-text-small" }, E = { key: 0 }, q = { class: "tw-text-h3 tw-flex-1 data-hj-suppress" }, H = { class: "tw-overflow-x-hidden tw-px-2 tw-pb-1" }, G = { class: "tw-text-center tw-text-h4" }, z = { class: "tw-flex tw-flex-col tw-gap-y-1" }, J = {
151
+ }, R = { class: "tw-flex tw-justify-center lg:tw-px-0" }, S = { class: "tw-flex tw-justify-center tw-mt-1 tw-text-small" }, E = { key: 0 }, q = { class: "tw-text-h3 tw-flex-1 data-hj-suppress" }, G = { class: "tw-overflow-x-hidden tw-px-2 tw-pb-1" }, z = { class: "tw-text-center tw-text-h4" }, H = { class: "tw-flex tw-flex-col tw-gap-y-1" }, J = {
156
152
  key: 0,
157
153
  class: "tw-mt-1 tw-text-small tw-text-danger"
158
154
  }, P = { class: "tw-flex tw-justify-end tw-mt-4 tw-pb-2.5 md:tw-pb-4" };
159
- function Q(f, a, t, e, r, _) {
160
- const u = g("KvActivityRow"), y = g("KvLendCta"), b = g("KvLightbox");
155
+ function Q(f, a, t, e, c, _) {
156
+ const u = b("KvActivityRow"), y = b("KvLendCta"), w = b("KvLightbox");
161
157
  return t.combinedActivities.length > 0 ? (s(), d("div", O, [
162
158
  i("div", R, [
163
- w(u, { activity: e.singleActivity }, null, 8, ["activity"])
159
+ g(u, { activity: e.singleActivity }, null, 8, ["activity"])
164
160
  ]),
165
161
  i("div", S, [
166
- e.lendersNumber && e.amountLent ? (s(), d("span", E, c(e.lendersNumber) + " lenders lent " + c(e.amountLent) + ".   ", 1)) : k("", !0),
162
+ e.lendersNumber && e.amountLent ? (s(), d("span", E, r(e.lendersNumber) + " lenders lent " + r(e.amountLent) + ".   ", 1)) : k("", !0),
167
163
  i("button", {
168
164
  class: "tw-text-action hover:tw-underline",
169
165
  onClick: a[0] || (a[0] = (...l) => e.showActivityModal && e.showActivityModal(...l))
170
166
  }, " See all activity ")
171
167
  ]),
172
- w(b, {
168
+ g(w, {
173
169
  title: "Activity Feed Modal",
174
170
  visible: e.lightboxOpen,
175
171
  onLightboxClosed: e.closeLightbox
176
172
  }, {
177
173
  header: A(() => [
178
- i("h2", q, c(e.modalTitle), 1)
174
+ i("h2", q, r(e.modalTitle), 1)
179
175
  ]),
180
176
  default: A(() => [
181
- i("div", H, [
182
- (s(!0), d(L, null, C(t.combinedActivities, (l) => (s(), d("div", {
177
+ i("div", G, [
178
+ (s(!0), d(L, null, p(t.combinedActivities, (l) => (s(), d("div", {
183
179
  key: l.key,
184
180
  class: "md:tw-px-8 lg:tw-px-14 tw-mt-4"
185
181
  }, [
186
- i("h4", G, c(e.formattedDate(l.key)), 1),
187
- i("div", z, [
188
- (s(!0), d(L, null, C(l.data, (h, x) => (s(), M(u, {
182
+ i("h4", z, r(e.formattedDate(l.key)), 1),
183
+ i("div", H, [
184
+ (s(!0), d(L, null, p(l.data, (h, x) => (s(), M(u, {
189
185
  key: x,
190
186
  activity: h
191
187
  }, null, 8, ["activity"]))), 128))
@@ -193,9 +189,9 @@ function Q(f, a, t, e, r, _) {
193
189
  ]))), 128))
194
190
  ]),
195
191
  i("div", null, [
196
- t.errorMsg ? (s(), d("p", J, c(t.errorMsg), 1)) : k("", !0),
192
+ t.errorMsg ? (s(), d("p", J, r(t.errorMsg), 1)) : k("", !0),
197
193
  i("div", P, [
198
- w(y, {
194
+ g(y, {
199
195
  loan: t.loan,
200
196
  "is-loading": !1,
201
197
  "kv-track-function": t.kvTrackFunction,
@@ -205,11 +201,10 @@ function Q(f, a, t, e, r, _) {
205
201
  "basket-items": t.basketItems,
206
202
  route: t.route,
207
203
  "is-adding": t.isAdding,
208
- "enable-huge-amount": t.enableHugeAmount,
209
204
  "is-visitor": t.isVisitor,
210
205
  "enable-five-dollars-notes": t.enableFiveDollarsNotes,
211
206
  onAddToBasket: a[1] || (a[1] = (l) => f.$emit("add-to-basket", l))
212
- }, null, 8, ["loan", "kv-track-function", "get-cookie", "set-cookie", "user-balance", "basket-items", "route", "is-adding", "enable-huge-amount", "is-visitor", "enable-five-dollars-notes"])
207
+ }, null, 8, ["loan", "kv-track-function", "get-cookie", "set-cookie", "user-balance", "basket-items", "route", "is-adding", "is-visitor", "enable-five-dollars-notes"])
213
208
  ])
214
209
  ])
215
210
  ]),
@@ -217,7 +212,7 @@ function Q(f, a, t, e, r, _) {
217
212
  }, 8, ["visible", "onLightboxClosed"])
218
213
  ])) : k("", !0);
219
214
  }
220
- const it = /* @__PURE__ */ D(V, [["render", Q], ["__scopeId", "data-v-a3adcb1a"]]);
215
+ const it = /* @__PURE__ */ D(V, [["render", Q], ["__scopeId", "data-v-159396a6"]]);
221
216
  export {
222
217
  nt as KV_LOAN_ACTIVITIES_FRAGMENT,
223
218
  it as default
@@ -157,10 +157,10 @@ const le = {
157
157
  width: W.value
158
158
  }));
159
159
  g(t, (e) => {
160
- e ? (document.addEventListener("keyup", R), a.value = {}, setTimeout(() => {
160
+ typeof window < "u" && (e ? (document.addEventListener("keyup", R), a.value = {}, setTimeout(() => {
161
161
  d.value = !0, T(), S();
162
- }, 10)) : (d.value = !1, T(), document.removeEventListener("keyup", R), a.value = {});
163
- }), g(W, (e) => {
162
+ }, 10)) : (d.value = !1, T(), document.removeEventListener("keyup", R), a.value = {}));
163
+ }, { immediate: !0 }), g(W, (e) => {
164
164
  d.value && t.value && a.value && Object.keys(a.value).length > 0 && (a.value = {
165
165
  ...a.value,
166
166
  width: e,
@@ -1 +1 @@
1
- .loan-card-use[data-v-060ff1b9]:hover,.loan-card-use[data-v-060ff1b9]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-060ff1b9]{text-decoration-line:underline}.loan-card-progress[data-v-060ff1b9],.loan-card-progress[data-v-060ff1b9]:hover,.loan-card-progress[data-v-060ff1b9]:focus{text-decoration-line:none}.loan-callouts[data-v-060ff1b9] div{height:auto;flex-wrap:wrap}
1
+ .loan-card-use[data-v-39f9535f]:hover,.loan-card-use[data-v-39f9535f]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-39f9535f]{text-decoration-line:underline}.loan-card-progress[data-v-39f9535f],.loan-card-progress[data-v-39f9535f]:hover,.loan-card-progress[data-v-39f9535f]:focus{text-decoration-line:none}.loan-callouts[data-v-39f9535f] div{height:auto;flex-wrap:wrap}
@@ -3,16 +3,16 @@ import { LOAN_CALLOUTS_FRAGMENT as S, LOAN_GEOCODE_FRAGMENT as F, LOAN_PROGRESS_
3
3
  import U, { KV_LOAN_USE_FRAGMENT as W } from "./KvLoanUse.js";
4
4
  import z from "./KvBorrowerImage.js";
5
5
  import I from "./KvLoanProgressGroup.js";
6
- import H from "./KvLoanCallouts.js";
7
- import j, { KV_LEND_CTA_FRAGMENT as q, KV_LEND_CTA_USER_FRAGMENT as J } from "./KvLendCta.js";
6
+ import j from "./KvLoanCallouts.js";
7
+ import q, { KV_LEND_CTA_FRAGMENT as H, KV_LEND_CTA_USER_FRAGMENT as J } from "./KvLendCta.js";
8
8
  import Q, { KV_LOAN_BOOKMARK_FRAGMENT as X } from "./KvLoanBookmark.js";
9
9
  import Y, { KV_LOAN_TAG_FRAGMENT as Z } from "./KvLoanTag.js";
10
10
  import $ from "./KvMaterialIcon.js";
11
11
  import ee from "./KvLoadingPlaceholder.js";
12
- import { resolveComponent as r, openBlock as o, createElementBlock as s, normalizeClass as N, createElementVNode as m, createBlock as l, resolveDynamicComponent as f, withCtx as g, createVNode as d, createTextVNode as te, toDisplayString as M, createCommentVNode as u, Fragment as oe, renderList as ae } from "vue";
12
+ import { resolveComponent as r, openBlock as o, createElementBlock as s, normalizeClass as N, createElementVNode as m, createBlock as l, resolveDynamicComponent as u, withCtx as g, createVNode as d, createTextVNode as te, toDisplayString as M, createCommentVNode as f, Fragment as oe, renderList as ae } from "vue";
13
13
  import "./KvWideLoanCard.css";
14
14
  import ne from "../_virtual/_plugin-vue_export-helper.js";
15
- const De = B`
15
+ const pe = B`
16
16
  fragment KvWideLoanCard on LoanBasic {
17
17
  id
18
18
  image {
@@ -27,13 +27,13 @@ const De = B`
27
27
  ...LoanGeocode
28
28
  ...LoanProgress
29
29
  }
30
- ${q}
30
+ ${H}
31
31
  ${Z}
32
32
  ${W}
33
33
  ${S}
34
34
  ${F}
35
35
  ${V}
36
- `, Te = B`
36
+ `, De = B`
37
37
  fragment KvWideLoanCardUser on LoanBasic {
38
38
  id
39
39
  ...KvLendCtaUser
@@ -49,9 +49,9 @@ const De = B`
49
49
  KvLoanUse: U,
50
50
  KvLoanProgressGroup: I,
51
51
  KvMaterialIcon: $,
52
- KvLendCta: j,
52
+ KvLendCta: q,
53
53
  KvLoanTag: Y,
54
- KvLoanCallouts: H,
54
+ KvLoanCallouts: j,
55
55
  KvLoanBookmark: Q
56
56
  },
57
57
  props: {
@@ -134,10 +134,6 @@ const De = B`
134
134
  customCallouts: {
135
135
  type: Array,
136
136
  default: () => []
137
- },
138
- enableHugeAmount: {
139
- type: Boolean,
140
- default: !1
141
137
  }
142
138
  },
143
139
  setup(c, { emit: a }) {
@@ -160,9 +156,9 @@ const De = B`
160
156
  mdiMapMarker: K,
161
157
  readMorePath: P,
162
158
  state: R,
163
- tag: D,
164
- unreservedAmount: T,
165
- sharesAvailable: p
159
+ tag: p,
160
+ unreservedAmount: D,
161
+ sharesAvailable: T
166
162
  } = O(c), {
167
163
  clickReadMore: E
168
164
  } = G(c, a);
@@ -185,9 +181,9 @@ const De = B`
185
181
  mdiMapMarker: K,
186
182
  readMorePath: P,
187
183
  state: R,
188
- tag: D,
189
- unreservedAmount: T,
190
- sharesAvailable: p,
184
+ tag: p,
185
+ unreservedAmount: D,
186
+ sharesAvailable: T,
191
187
  clickReadMore: E
192
188
  };
193
189
  },
@@ -217,11 +213,11 @@ const De = B`
217
213
  }, se = { key: 0 }, de = {
218
214
  class: "tw-absolute tw-bottom-1 tw-left-1 tw-text-primary tw-bg-white tw-rounded tw-p-1 tw-mb-0 tw-mr-2 tw-text-h4 tw-inline-flex tw-items-center",
219
215
  style: { padding: "2px 6px", "text-transform": "capitalize" }
220
- }, me = { class: "tw-flex tw-flex-col tw-flex-1 tw-px-1" }, ce = { class: "tw-hidden md:tw-inline-block" }, we = { class: "tw-pt-1" }, ue = {
216
+ }, me = { class: "tw-flex tw-flex-col tw-flex-1 tw-px-1" }, ce = { class: "tw-hidden md:tw-inline-block" }, we = { class: "tw-pt-1" }, fe = {
221
217
  key: 0,
222
218
  class: "tw-w-full",
223
219
  style: { height: "5.5rem" }
224
- }, fe = { key: 1 }, ge = { class: "tw-flex tw-flex-row tw-justify-between tw-gap-1 md:tw-gap-3" }, ke = {
220
+ }, ue = { key: 1 }, ge = { class: "tw-flex tw-flex-row tw-justify-between tw-gap-1 md:tw-gap-3" }, ke = {
225
221
  key: 0,
226
222
  class: "tw-w-full tw-pt-1 tw-pr-1"
227
223
  };
@@ -238,7 +234,7 @@ function he(c, a, t, e, C, w) {
238
234
  class: "tw-mb-1 tw-w-full tw-rounded",
239
235
  style: { height: "15rem" }
240
236
  })) : (o(), s("div", ie, [
241
- (o(), l(f(e.tag), {
237
+ (o(), l(u(e.tag), {
242
238
  to: e.readMorePath,
243
239
  href: e.readMorePath,
244
240
  class: "tw-flex",
@@ -263,11 +259,11 @@ function he(c, a, t, e, C, w) {
263
259
  }, null, 8, ["icon"]),
264
260
  te(" " + M(e.formattedLocation), 1)
265
261
  ])
266
- ])) : u("", !0)
262
+ ])) : f("", !0)
267
263
  ]),
268
264
  _: 1
269
265
  }, 8, ["to", "href"])),
270
- t.isVisitor ? u("", !0) : (o(), l(_, {
266
+ t.isVisitor ? f("", !0) : (o(), l(_, {
271
267
  key: 0,
272
268
  "loan-id": t.loanId,
273
269
  "is-bookmarked": t.isBookmarked,
@@ -280,7 +276,7 @@ function he(c, a, t, e, C, w) {
280
276
  ]),
281
277
  m("div", me, [
282
278
  m("h3", ce, M(e.borrowerName), 1),
283
- (o(), l(f(e.tag), {
279
+ (o(), l(u(e.tag), {
284
280
  to: e.readMorePath,
285
281
  href: e.readMorePath,
286
282
  class: "tw-flex tw-no-underline hover:tw-no-underline focus:tw-no-underline",
@@ -291,11 +287,11 @@ function he(c, a, t, e, C, w) {
291
287
  t.showTags && !e.isLoading ? (o(), l(v, {
292
288
  key: 0,
293
289
  loan: t.loan
294
- }, null, 8, ["loan"])) : u("", !0)
290
+ }, null, 8, ["loan"])) : f("", !0)
295
291
  ]),
296
292
  _: 1
297
293
  }, 8, ["to", "href"])),
298
- (o(), l(f(e.tag), {
294
+ (o(), l(u(e.tag), {
299
295
  to: e.readMorePath,
300
296
  href: e.readMorePath,
301
297
  class: "loan-card-use tw-no-underline tw-text-primary",
@@ -304,14 +300,14 @@ function he(c, a, t, e, C, w) {
304
300
  }, {
305
301
  default: g(() => [
306
302
  m("div", we, [
307
- e.isLoading ? (o(), s("div", ue, [
303
+ e.isLoading ? (o(), s("div", fe, [
308
304
  (o(!0), s(oe, null, ae([...Array(4)], (n, x) => (o(), s("div", {
309
305
  key: x,
310
306
  class: "tw-h-2 tw-mb-1"
311
307
  }, [
312
308
  d(i)
313
309
  ]))), 128))
314
- ])) : (o(), s("div", fe, [
310
+ ])) : (o(), s("div", ue, [
315
311
  d(b, {
316
312
  use: e.loanUse,
317
313
  "loan-amount": e.loanAmount,
@@ -335,7 +331,7 @@ function he(c, a, t, e, C, w) {
335
331
  class: "loan-callouts tw-my-1.5"
336
332
  }, null, 8, ["callouts"])),
337
333
  m("div", ge, [
338
- e.hasProgressData ? u("", !0) : (o(), s("div", ke, [
334
+ e.hasProgressData ? f("", !0) : (o(), s("div", ke, [
339
335
  d(i, {
340
336
  class: "tw-mb-0.5",
341
337
  style: { width: "70%", height: "1.3rem" }
@@ -345,7 +341,7 @@ function he(c, a, t, e, C, w) {
345
341
  style: { width: "70%", height: "0.5rem" }
346
342
  })
347
343
  ])),
348
- e.sharesAvailable ? (o(), l(f(e.tag), {
344
+ e.sharesAvailable ? (o(), l(u(e.tag), {
349
345
  key: 1,
350
346
  to: e.readMorePath,
351
347
  href: e.readMorePath,
@@ -362,7 +358,7 @@ function he(c, a, t, e, C, w) {
362
358
  }, null, 8, ["money-left", "progress-percent"])
363
359
  ]),
364
360
  _: 1
365
- }, 8, ["to", "href"])) : u("", !0),
361
+ }, 8, ["to", "href"])) : f("", !0),
366
362
  e.allDataLoaded ? (o(), l(A, {
367
363
  key: 3,
368
364
  loan: t.loan,
@@ -380,12 +376,11 @@ function he(c, a, t, e, C, w) {
380
376
  "user-balance": t.userBalance,
381
377
  "get-cookie": t.getCookie,
382
378
  "set-cookie": t.setCookie,
383
- "enable-huge-amount": t.enableHugeAmount,
384
379
  "is-visitor": t.isVisitor,
385
380
  class: N(["tw-mt-auto tw-self-end", { "tw-flex-grow": !e.sharesAvailable, "tw-flex-shrink-0": e.sharesAvailable }]),
386
381
  onAddToBasket: a[5] || (a[5] = (n) => c.$emit("add-to-basket", n)),
387
382
  onShowLoanDetails: a[6] || (a[6] = (n) => e.clickReadMore("ViewLoan", n))
388
- }, null, 8, ["loan", "unreserved-amount", "basket-items", "is-loading", "is-adding", "enable-five-dollars-notes", "five-dollars-selected", "kv-track-function", "show-view-loan", "custom-loan-details", "external-links", "route", "user-balance", "get-cookie", "set-cookie", "enable-huge-amount", "is-visitor", "class"])) : (o(), l(i, {
383
+ }, null, 8, ["loan", "unreserved-amount", "basket-items", "is-loading", "is-adding", "enable-five-dollars-notes", "five-dollars-selected", "kv-track-function", "show-view-loan", "custom-loan-details", "external-links", "route", "user-balance", "get-cookie", "set-cookie", "is-visitor", "class"])) : (o(), l(i, {
389
384
  key: 2,
390
385
  class: "tw-rounded tw-self-start",
391
386
  style: { width: "9rem", height: "3rem" }
@@ -394,9 +389,9 @@ function he(c, a, t, e, C, w) {
394
389
  ])
395
390
  ], 2);
396
391
  }
397
- const pe = /* @__PURE__ */ ne(le, [["render", he], ["__scopeId", "data-v-060ff1b9"]]);
392
+ const Te = /* @__PURE__ */ ne(le, [["render", he], ["__scopeId", "data-v-39f9535f"]]);
398
393
  export {
399
- De as KV_WIDE_LOAN_CARD_FRAGMENT,
400
- Te as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
401
- pe as default
394
+ pe as KV_WIDE_LOAN_CARD_FRAGMENT,
395
+ De as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
396
+ Te as default
402
397
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.27.2",
3
+ "version": "6.28.1",
4
4
  "type": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -111,5 +111,5 @@
111
111
  "embla-carousel-fade",
112
112
  "popper.js"
113
113
  ],
114
- "gitHead": "e3554736f4e5b3eee622d9c539a92467f047a32d"
114
+ "gitHead": "2758c45cc816393e6a246afa8075d699f0710202"
115
115
  }