@kiva/kv-components 8.19.2 → 8.19.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.
Files changed (97) hide show
  1. package/dist/data/ne_110m_admin_0_countries.json.js +1 -1
  2. package/dist/utils/Alea.js +2 -2
  3. package/dist/utils/mapUtils.js +5 -7
  4. package/dist/vendor/aria-hidden/dist/es2015/index.js +23 -23
  5. package/dist/vendor/popper.js/dist/esm/popper.js +6 -6
  6. package/dist/vue/KvAtbModal.css +1 -1
  7. package/dist/vue/KvCarousel.css +1 -1
  8. package/dist/vue/KvCarousel2.js +5 -5
  9. package/dist/vue/KvCartModal.css +1 -1
  10. package/dist/vue/KvCartModal2.js +7 -7
  11. package/dist/vue/KvCheckbox.js +3 -3
  12. package/dist/vue/KvClassicLoanCard.css +1 -1
  13. package/dist/vue/KvClassicLoanCard.js +2 -2
  14. package/dist/vue/KvClassicLoanCard.vue.d.ts +29 -12
  15. package/dist/vue/KvClassicLoanCard2.js +52 -46
  16. package/dist/vue/KvCommentsContainer2.js +7 -7
  17. package/dist/vue/KvCommentsListItem2.js +11 -11
  18. package/dist/vue/KvCompactLoanCard.css +1 -1
  19. package/dist/vue/KvCompactLoanCard.js +147 -147
  20. package/dist/vue/KvCompactLoanCard.vue.d.ts +11 -6
  21. package/dist/vue/KvCompactLoanCard2.js +15 -15
  22. package/dist/vue/KvContentfulImg.js +3 -3
  23. package/dist/vue/KvDatePicker.vue.d.ts +5 -2
  24. package/dist/vue/KvDatePicker2.js +9 -5
  25. package/dist/vue/KvExpandable2.js +3 -3
  26. package/dist/vue/KvExpandableQuestion2.js +3 -3
  27. package/dist/vue/KvFlag.js +5 -5
  28. package/dist/vue/KvIconButton.js +4 -4
  29. package/dist/vue/KvImageUpload.js +1 -1
  30. package/dist/vue/KvImageUpload2.js +3 -3
  31. package/dist/vue/KvIntroductionLoanCard.css +1 -1
  32. package/dist/vue/KvIntroductionLoanCard.js +11 -11
  33. package/dist/vue/KvIntroductionLoanCard.vue.d.ts +8 -4
  34. package/dist/vue/KvIntroductionLoanCard2.js +34 -31
  35. package/dist/vue/KvLendAmountButton.vue.d.ts +4 -2
  36. package/dist/vue/KvLendAmountButton2.js +3 -0
  37. package/dist/vue/KvLendCta.css +1 -1
  38. package/dist/vue/KvLendCta.js +9 -9
  39. package/dist/vue/KvLendCta.vue.d.ts +9 -4
  40. package/dist/vue/KvLendCta2.js +11 -7
  41. package/dist/vue/KvLightbox2.js +4 -4
  42. package/dist/vue/KvLoanActivities.js +4 -4
  43. package/dist/vue/KvLoanActivities.vue.d.ts +9 -4
  44. package/dist/vue/KvLoanActivities2.js +13 -13
  45. package/dist/vue/KvLoanBookmark.vue.d.ts +4 -2
  46. package/dist/vue/KvLoanBookmark2.js +8 -5
  47. package/dist/vue/KvLoanInfoCard.css +1 -1
  48. package/dist/vue/KvLoanInfoCard.js +2 -2
  49. package/dist/vue/KvLoanTag.js +9 -9
  50. package/dist/vue/KvLoanTag2.js +1 -1
  51. package/dist/vue/KvMap.vue.d.ts +4 -2
  52. package/dist/vue/KvMap2.js +9 -6
  53. package/dist/vue/KvPagination.vue.d.ts +4 -2
  54. package/dist/vue/KvPagination2.js +7 -4
  55. package/dist/vue/KvPieChartV2.css +1 -1
  56. package/dist/vue/KvPieChartV22.js +3 -3
  57. package/dist/vue/KvPopper2.js +4 -4
  58. package/dist/vue/KvRadio.js +1 -1
  59. package/dist/vue/KvSecondaryNav.js +25 -25
  60. package/dist/vue/KvSecondaryNav2.js +8 -8
  61. package/dist/vue/KvSelect.js +12 -12
  62. package/dist/vue/KvSideSheet.js +1 -1
  63. package/dist/vue/KvSideSheet2.js +3 -3
  64. package/dist/vue/KvSimpleMap.css +1 -1
  65. package/dist/vue/KvSimpleMap.js +2 -2
  66. package/dist/vue/KvSimpleMap2.js +1 -0
  67. package/dist/vue/KvSwitch.js +1 -1
  68. package/dist/vue/KvTabs.vue.d.ts +4 -2
  69. package/dist/vue/KvTabs2.js +17 -14
  70. package/dist/vue/KvTextInput.js +1 -1
  71. package/dist/vue/KvTextInput2.js +3 -3
  72. package/dist/vue/KvThemeProvider.css +1 -1
  73. package/dist/vue/KvTooltip.css +1 -1
  74. package/dist/vue/KvTooltip.js +7 -7
  75. package/dist/vue/KvTooltip2.js +22 -22
  76. package/dist/vue/KvTreeMapChart.css +1 -1
  77. package/dist/vue/KvVerticalCarousel2.js +5 -5
  78. package/dist/vue/KvVotingCard.css +1 -1
  79. package/dist/vue/KvVotingCard.js +11 -11
  80. package/dist/vue/KvVotingCard.vue.d.ts +5 -2
  81. package/dist/vue/KvVotingCard2.js +4 -0
  82. package/dist/vue/KvWideLoanCard.css +1 -1
  83. package/dist/vue/KvWideLoanCard.js +4 -4
  84. package/dist/vue/KvWideLoanCard.vue.d.ts +18 -8
  85. package/dist/vue/KvWideLoanCard2.js +39 -35
  86. package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +1 -1
  87. package/dist/vue/KvWwwHeader/KvHeaderLinkBar2.js +5 -5
  88. package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +3 -3
  89. package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +4 -4
  90. package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +9 -9
  91. package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu2.js +3 -3
  92. package/dist/vue/KvWwwHeaderBasic/LinkBar.css +1 -1
  93. package/dist/vue/KvWwwHeaderBasic/LinkBar2.js +3 -3
  94. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.css +1 -1
  95. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.js +1 -1
  96. package/dist/vue/KvWwwHeaderBasic/SearchBar2.js +6 -6
  97. package/package.json +2 -20
@@ -58,7 +58,7 @@ const B = "reply-comment", U = "like-comment", r = "add-reaction", J = {
58
58
  const {
59
59
  comment: t,
60
60
  userPublicId: h
61
- } = M(f), o = u(!1), c = u(null), s = u(), i = u(!1), I = n(() => {
61
+ } = M(f), a = u(!1), c = u(null), s = u(), i = u(!1), I = n(() => {
62
62
  var e;
63
63
  return ((e = t == null ? void 0 : t.value) == null ? void 0 : e.text) ?? "";
64
64
  }), d = n(() => {
@@ -77,26 +77,26 @@ const B = "reply-comment", U = "like-comment", r = "add-reaction", J = {
77
77
  var e, l;
78
78
  return ((l = (e = t == null ? void 0 : t.value) == null ? void 0 : e.children) == null ? void 0 : l.like) ?? [];
79
79
  }), g = n(() => L.value.find((e) => e.publicLenderId === h.value)), b = n(() => g.value !== void 0), k = () => {
80
- o.value = !o.value, x(() => {
81
- o.value && c.value.$refs.input.focus();
80
+ a.value = !a.value, x(() => {
81
+ a.value && c.value.$refs.input.focus();
82
82
  });
83
83
  }, N = (e, l) => {
84
84
  var v;
85
- const a = {
85
+ const o = {
86
86
  reaction: e,
87
87
  id: ((v = t == null ? void 0 : t.value) == null ? void 0 : v.id) ?? null,
88
88
  isChild: !0,
89
89
  value: l
90
90
  };
91
- m(r, a);
91
+ m(r, o);
92
92
  }, O = () => {
93
- o.value = !1;
93
+ a.value = !1;
94
94
  }, R = n(() => {
95
- var e, l, a;
96
- return ((a = (l = (e = t == null ? void 0 : t.value) == null ? void 0 : e.children) == null ? void 0 : l.like) == null ? void 0 : a.length) ?? 0;
95
+ var e, l, o;
96
+ return ((o = (l = (e = t == null ? void 0 : t.value) == null ? void 0 : e.children) == null ? void 0 : l.like) == null ? void 0 : o.length) ?? 0;
97
97
  }), T = n(() => {
98
- var e, l, a;
99
- return ((a = (l = (e = t == null ? void 0 : t.value) == null ? void 0 : e.children) == null ? void 0 : l.comment) == null ? void 0 : a.length) ?? 0;
98
+ var e, l, o;
99
+ return ((o = (l = (e = t == null ? void 0 : t.value) == null ? void 0 : e.children) == null ? void 0 : l.comment) == null ? void 0 : o.length) ?? 0;
100
100
  }), _ = () => {
101
101
  i.value = !i.value;
102
102
  }, p = A("fetchLenderInfo");
@@ -107,7 +107,7 @@ const B = "reply-comment", U = "like-comment", r = "add-reaction", J = {
107
107
  }
108
108
  }), {
109
109
  hideInput: O,
110
- showInput: o,
110
+ showInput: a,
111
111
  commentsAddRef: c,
112
112
  replyClick: k,
113
113
  addReaction: N,
@@ -1 +1 @@
1
- .loan-card-use[data-v-daea2e7e]:hover,.loan-card-use[data-v-daea2e7e]: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-daea2e7e]{text-decoration-line:underline}.loan-card-progress[data-v-daea2e7e]:hover,.loan-card-progress[data-v-daea2e7e]:focus{text-decoration-line:none}.loan-card-use-text[data-v-daea2e7e] p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;text-overflow:ellipsis}.loan-card-cta[data-v-daea2e7e] form,.loan-card-cta[data-v-daea2e7e] fieldset,.loan-card-cta[data-v-daea2e7e] .tw-w-full,.loan-card-cta[data-v-daea2e7e] button{height:40px!important;max-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-daea2e7e] .tw-inline-flex{height:40px!important;max-height:40px!important;min-height:40px!important}[data-v-daea2e7e] .amount-dropdown select{height:2.25rem;--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1));padding-left:.5rem}[data-v-daea2e7e] .goal-variant-callouts span{font-weight:500}.goal-variant-progress-group[data-v-daea2e7e] div[role=progressbar]{background-color:#d9d9d9}
1
+ .loan-card-use[data-v-02aa45c6]:hover,.loan-card-use[data-v-02aa45c6]: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-02aa45c6]{text-decoration-line:underline}.loan-card-progress[data-v-02aa45c6]:hover,.loan-card-progress[data-v-02aa45c6]:focus{text-decoration-line:none}.loan-card-use-text[data-v-02aa45c6] p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;text-overflow:ellipsis}.loan-card-cta[data-v-02aa45c6] form,.loan-card-cta[data-v-02aa45c6] fieldset,.loan-card-cta[data-v-02aa45c6] .tw-w-full,.loan-card-cta[data-v-02aa45c6] button{height:40px!important;max-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-02aa45c6] .tw-inline-flex{height:40px!important;max-height:40px!important;min-height:40px!important}[data-v-02aa45c6] .amount-dropdown select{height:2.25rem;--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1));padding-left:.5rem}[data-v-02aa45c6] .goal-variant-callouts span{font-weight:500}.goal-variant-progress-group[data-v-02aa45c6] div[role=progressbar]{background-color:#d9d9d9}
@@ -1,6 +1,6 @@
1
1
  import B from "./KvCompactLoanCard2.js";
2
- import { KV_COMPACT_LOAN_CARD_FRAGMENT as oe, KV_COMPACT_LOAN_CARD_USER_FRAGMENT as le } from "./KvCompactLoanCard2.js";
3
- import { resolveComponent as w, openBlock as n, createElementBlock as l, normalizeClass as s, createVNode as i, createCommentVNode as m, createElementVNode as r, normalizeStyle as b, createBlock as d, resolveDynamicComponent as g, withCtx as f, toDisplayString as c, withModifiers as R, Fragment as u, renderList as v } from "vue";
2
+ import { KV_COMPACT_LOAN_CARD_FRAGMENT as nt, KV_COMPACT_LOAN_CARD_USER_FRAGMENT as lt } from "./KvCompactLoanCard2.js";
3
+ import { resolveComponent as d, openBlock as o, createElementBlock as l, normalizeClass as s, createVNode as i, createCommentVNode as m, createElementVNode as r, normalizeStyle as b, createBlock as w, resolveDynamicComponent as u, withCtx as k, toDisplayString as c, withModifiers as R, Fragment as g, renderList as v } from "vue";
4
4
  import "./KvCompactLoanCard.css";
5
5
  import G from "../_virtual/_plugin-vue_export-helper.js";
6
6
  const S = ["aria-busy"], D = { class: "tw-flex tw-flex-col tw-items-start tw-w-full" }, U = {
@@ -16,173 +16,173 @@ const S = ["aria-busy"], D = { class: "tw-flex tw-flex-col tw-items-start tw-w-f
16
16
  class: "tw-flex-1 tw-min-w-0",
17
17
  style: { "max-width": "6.5rem" }
18
18
  }, Z = ["value"], q = { class: "tw-flex-1 tw-min-w-0" }, J = { class: "tw-p-1 tw-rounded-l-sm tw-border tw-border-gray-100 tw-border-r-0" };
19
- function Q(k, o, t, e, X, y) {
19
+ function Q(f, n, e, t, X, y) {
20
20
  var L;
21
- const _ = w("kv-material-icon"), h = w("kv-loading-placeholder"), P = w("kv-borrower-image"), C = w("kv-loan-tag"), V = w("kv-loan-use"), M = w("kv-loan-callouts"), x = w("kv-loan-progress-group"), N = w("kv-select"), A = w("kv-lend-cta");
22
- return n(), l("div", {
21
+ const _ = d("kv-material-icon"), h = d("kv-loading-placeholder"), P = d("kv-borrower-image"), C = d("kv-loan-tag"), V = d("kv-loan-use"), M = d("kv-loan-callouts"), x = d("kv-loan-progress-group"), N = d("kv-select"), A = d("kv-lend-cta");
22
+ return o(), l("div", {
23
23
  class: s(["tw-flex tw-flex-col tw-items-start tw-justify-between tw-p-1 tw-bg-white tw-rounded-md tw-shadow-lg tw-w-full", {
24
- "tw-relative": t.showRefreshButton,
25
- "!tw-p-1.5": t.showLightView || e.isPostGoalVariant
24
+ "tw-relative": e.showRefreshButton,
25
+ "!tw-p-1.5": e.showLightView || t.isPostGoalVariant
26
26
  }]),
27
- "aria-busy": e.isLoading ? "true" : "false"
27
+ "aria-busy": t.isLoading ? "true" : "false"
28
28
  }, [
29
- t.showRefreshButton ? (n(), l("button", {
29
+ e.showRefreshButton ? (o(), l("button", {
30
30
  key: 0,
31
31
  class: "tw-absolute tw--top-1 tw--right-1 tw-bg-white tw-rounded-full tw-w-2.5 tw-h-2.5 tw-flex tw-items-center tw-justify-center tw-cursor-pointer tw-drop-shadow-sm",
32
- onClick: o[0] || (o[0] = (...a) => e.handleRefreshButton && e.handleRefreshButton(...a))
32
+ onClick: n[0] || (n[0] = (...a) => t.handleRefreshButton && t.handleRefreshButton(...a))
33
33
  }, [
34
34
  i(_, {
35
- icon: e.mdiCached,
35
+ icon: t.mdiCached,
36
36
  class: "tw-w-2.5 tw-h-2.5 tw--scale-x-100 tw-text-gray-500"
37
37
  }, null, 8, ["icon"])
38
38
  ])) : m("", !0),
39
39
  r("div", D, [
40
40
  r("div", {
41
41
  class: s(["tw-flex tw-items-start tw-gap-2 tw-w-full loan-card-active-hover", {
42
- "!tw-gap-1": t.showLightView,
43
- "!tw-gap-1.5 md:!tw-gap-2.5": e.isPostGoalVariant
42
+ "!tw-gap-1": e.showLightView,
43
+ "!tw-gap-1.5 md:!tw-gap-2.5": t.isPostGoalVariant
44
44
  }]),
45
- style: b(e.customStyle)
45
+ style: b(t.customStyle)
46
46
  }, [
47
- e.isLoading ? (n(), d(h, {
47
+ t.isLoading ? (o(), w(h, {
48
48
  key: 0,
49
49
  "aria-hidden": "true",
50
50
  class: s({
51
- "!tw-w-7.5 !tw-h-7.5": t.showLightView,
52
- "!tw-w-7.5 !tw-h-7.5 md:!tw-w-12.5 md:!tw-h-12.5": e.isPostGoalVariant
51
+ "!tw-w-7.5 !tw-h-7.5": e.showLightView,
52
+ "!tw-w-7.5 !tw-h-7.5 md:!tw-w-12.5 md:!tw-h-12.5": t.isPostGoalVariant
53
53
  }),
54
- style: b(e.borrowerImageStyle)
55
- }, null, 8, ["class", "style"])) : (n(), l("div", U, [
56
- (n(), d(g(e.tag), {
57
- to: e.readMorePath,
58
- href: e.readMorePath,
59
- target: t.externalLinksNewTab ? "_blank" : void 0,
60
- rel: t.externalLinksNewTab ? "noopener noreferrer" : void 0,
54
+ style: b(t.borrowerImageStyle)
55
+ }, null, 8, ["class", "style"])) : (o(), l("div", U, [
56
+ (o(), w(u(t.tag), {
57
+ to: t.readMorePath,
58
+ href: t.readMorePath,
59
+ target: e.externalLinksNewTab ? "_blank" : void 0,
60
+ rel: e.externalLinksNewTab ? "noopener noreferrer" : void 0,
61
61
  class: "tw-flex",
62
62
  "aria-label": "Borrower image",
63
- onClick: o[1] || (o[1] = (a) => e.clickReadMore("Photo", a))
63
+ onClick: n[1] || (n[1] = (a) => t.clickReadMore("Photo", a))
64
64
  }, {
65
- default: f(() => [
65
+ default: k(() => [
66
66
  i(P, {
67
67
  class: s(["tw-bg-gray-300 tw-rounded-sm tw-object-cover tw-bg-clip-content", {
68
- "!tw-w-7.5 !tw-h-7.5": t.showLightView,
69
- "!tw-w-7.5 !tw-h-7.5 md:!tw-w-12.5 md:!tw-h-12.5": e.isPostGoalVariant
68
+ "!tw-w-7.5 !tw-h-7.5": e.showLightView,
69
+ "!tw-w-7.5 !tw-h-7.5 md:!tw-w-12.5 md:!tw-h-12.5": t.isPostGoalVariant
70
70
  }]),
71
- style: b(e.borrowerImageStyle),
72
- alt: `Photo of ${e.borrowerName}`,
71
+ style: b(t.borrowerImageStyle),
72
+ alt: `Photo of ${t.borrowerName}`,
73
73
  "aspect-ratio": 1,
74
74
  "default-image": { width: 200, faceZoom: 50 },
75
- hash: e.imageHash,
75
+ hash: t.imageHash,
76
76
  images: [{ width: 200, faceZoom: 50 }],
77
- "photo-path": t.photoPath
77
+ "photo-path": e.photoPath
78
78
  }, null, 8, ["class", "style", "alt", "hash", "photo-path"])
79
79
  ]),
80
80
  _: 1
81
81
  }, 8, ["to", "href", "target", "rel"]))
82
82
  ])),
83
83
  r("div", {
84
- class: s(["tw-flex tw-flex-col tw-items-start tw-gap-1 tw-flex-1 tw-min-w-0", { "!tw-gap-0": e.isPostGoalVariant }])
84
+ class: s(["tw-flex tw-flex-col tw-items-start tw-gap-1 tw-flex-1 tw-min-w-0", { "!tw-gap-0": t.isPostGoalVariant }])
85
85
  }, [
86
- t.businessName ? (n(), l("div", I, [
87
- (n(), d(g(e.tag), {
88
- to: e.readMorePath,
89
- href: e.readMorePath,
90
- target: t.externalLinksNewTab ? "_blank" : void 0,
91
- rel: t.externalLinksNewTab ? "noopener noreferrer" : void 0,
86
+ e.businessName ? (o(), l("div", I, [
87
+ (o(), w(u(t.tag), {
88
+ to: t.readMorePath,
89
+ href: t.readMorePath,
90
+ target: e.externalLinksNewTab ? "_blank" : void 0,
91
+ rel: e.externalLinksNewTab ? "noopener noreferrer" : void 0,
92
92
  class: "tw-no-underline hover:tw-underline focus:tw-no-underline",
93
93
  "aria-label": "Business name",
94
- onClick: o[2] || (o[2] = (a) => e.clickReadMore("Business", a))
94
+ onClick: n[2] || (n[2] = (a) => t.clickReadMore("Business", a))
95
95
  }, {
96
- default: f(() => [
97
- r("h3", W, c(t.businessName), 1)
96
+ default: k(() => [
97
+ r("h3", W, c(e.businessName), 1)
98
98
  ]),
99
99
  _: 1
100
100
  }, 8, ["to", "href", "target", "rel"])),
101
- t.website ? (n(), l("a", {
101
+ e.website ? (o(), l("a", {
102
102
  key: 0,
103
- href: e.formattedWebsite,
103
+ href: t.formattedWebsite,
104
104
  target: "_blank",
105
105
  class: "tw-flex tw-items-center tw-gap-0.5 tw-text-secondary tw-text-small tw-font-light tw-leading-normal tw-no-underline hover:tw-underline",
106
- onClick: o[3] || (o[3] = R((...a) => e.trackWebsiteClick && e.trackWebsiteClick(...a), ["stop"]))
106
+ onClick: n[3] || (n[3] = R((...a) => t.trackWebsiteClick && t.trackWebsiteClick(...a), ["stop"]))
107
107
  }, [
108
108
  i(_, {
109
- icon: e.mdiLink,
109
+ icon: t.mdiLink,
110
110
  class: "tw-w-2 tw-h-2"
111
111
  }, null, 8, ["icon"]),
112
- r("span", F, c(t.website), 1)
112
+ r("span", F, c(e.website), 1)
113
113
  ], 8, E)) : m("", !0)
114
114
  ])) : m("", !0),
115
- e.isLoading ? m("", !0) : (n(), d(g(e.tag), {
115
+ t.isLoading ? m("", !0) : (o(), w(u(t.tag), {
116
116
  key: 1,
117
- to: e.readMorePath,
118
- href: e.readMorePath,
119
- target: t.externalLinksNewTab ? "_blank" : void 0,
120
- rel: t.externalLinksNewTab ? "noopener noreferrer" : void 0,
117
+ to: t.readMorePath,
118
+ href: t.readMorePath,
119
+ target: e.externalLinksNewTab ? "_blank" : void 0,
120
+ rel: e.externalLinksNewTab ? "noopener noreferrer" : void 0,
121
121
  class: "tw-flex tw-no-underline hover:tw-no-underline focus:tw-no-underline -tw-mt-1",
122
122
  "aria-label": "Loan tag",
123
- onClick: o[4] || (o[4] = (a) => e.clickReadMore("Tag", a))
123
+ onClick: n[4] || (n[4] = (a) => t.clickReadMore("Tag", a))
124
124
  }, {
125
- default: f(() => [
126
- t.showTags ? (n(), d(C, {
125
+ default: k(() => [
126
+ e.showTags ? (o(), w(C, {
127
127
  key: 0,
128
128
  class: s({
129
- "tw-mb-1 !tw-font-medium": e.isPostGoalVariant
129
+ "tw-mb-1 !tw-font-medium": t.isPostGoalVariant
130
130
  }),
131
- loan: t.loan,
132
- "enable-multi-matching": t.enableMultiMatching
131
+ loan: e.loan,
132
+ "enable-multi-matching": e.enableMultiMatching
133
133
  }, null, 8, ["class", "loan", "enable-multi-matching"])) : m("", !0)
134
134
  ]),
135
135
  _: 1
136
136
  }, 8, ["to", "href", "target", "rel"])),
137
- e.isPostGoalVariant ? (n(), l(u, { key: 2 }, [
138
- e.isLoading ? (n(), l(u, { key: 0 }, v(4, (a) => i(h, {
137
+ t.isPostGoalVariant ? (o(), l(g, { key: 2 }, [
138
+ t.isLoading ? (o(), l(g, { key: 0 }, v(4, (a) => i(h, {
139
139
  key: a,
140
140
  class: "tw-mb-0.5 md:!tw-mb-1.5 !tw-w-full !tw-h-1.5 md:!tw-h-2"
141
- })), 64)) : (n(), l("p", {
141
+ })), 64)) : (o(), l("p", {
142
142
  key: 1,
143
143
  class: "tw-text-small tw-mb-0 tw-leading-normal",
144
144
  style: { "line-height": "150%" },
145
- title: e.statementTitle,
145
+ title: t.statementTitle,
146
146
  "data-testid": "loan-use-statement"
147
147
  }, [
148
- r("span", null, c(e.loanUsePrefixStart), 1),
149
- r("span", j, c(e.borrowerNameWithCountry), 1),
150
- r("span", null, c(e.loanUsePrefixEnd), 1),
151
- r("span", null, c(e.visibleUseStatement), 1)
148
+ r("span", null, c(t.loanUsePrefixStart), 1),
149
+ r("span", j, c(t.borrowerNameWithCountry), 1),
150
+ r("span", null, c(t.loanUsePrefixEnd), 1),
151
+ r("span", null, c(t.visibleUseStatement), 1)
152
152
  ], 8, O))
153
- ], 64)) : t.showLoanUse ? (n(), d(g(e.tag), {
153
+ ], 64)) : e.showLoanUse ? (o(), w(u(t.tag), {
154
154
  key: 3,
155
- to: e.readMorePath,
156
- href: e.readMorePath,
157
- target: t.externalLinksNewTab ? "_blank" : void 0,
158
- rel: t.externalLinksNewTab ? "noopener noreferrer" : void 0,
155
+ to: t.readMorePath,
156
+ href: t.readMorePath,
157
+ target: e.externalLinksNewTab ? "_blank" : void 0,
158
+ rel: e.externalLinksNewTab ? "noopener noreferrer" : void 0,
159
159
  class: "loan-card-use tw-no-underline tw-text-primary tw-block tw-w-full",
160
160
  "aria-label": "Loan use",
161
- onClick: o[5] || (o[5] = (a) => e.clickReadMore("Use", a))
161
+ onClick: n[5] || (n[5] = (a) => t.clickReadMore("Use", a))
162
162
  }, {
163
- default: f(() => [
164
- e.isLoading ? (n(), l("div", K, [
165
- (n(!0), l(u, null, v([...Array(e.loanUseLoadingRows)], (a, T) => (n(), l("div", {
163
+ default: k(() => [
164
+ t.isLoading ? (o(), l("div", K, [
165
+ (o(!0), l(g, null, v([...Array(t.loanUseLoadingRows)], (a, T) => (o(), l("div", {
166
166
  key: T,
167
167
  class: "tw-h-2 tw-mb-1"
168
168
  }, [
169
169
  i(h)
170
170
  ]))), 128))
171
- ])) : (n(), l("div", {
171
+ ])) : (o(), l("div", {
172
172
  key: 1,
173
- class: s(["loan-card-use-text tw-w-full tw-overflow-hidden", { "!tw--mt-1": t.showTags && y.hasMatchingInfo && t.showLightView }])
173
+ class: s(["loan-card-use-text tw-w-full tw-overflow-hidden", { "!tw--mt-1": e.showTags && y.hasMatchingInfo && e.showLightView }])
174
174
  }, [
175
175
  i(V, {
176
- use: e.loanUse,
177
- "loan-amount": e.loanAmount,
178
- status: e.loanStatus,
179
- "borrower-count": e.loanBorrowerCount,
180
- name: e.borrowerName,
181
- "distribution-model": e.distributionModel,
176
+ use: t.loanUse,
177
+ "loan-amount": t.loanAmount,
178
+ status: t.loanStatus,
179
+ "borrower-count": t.loanBorrowerCount,
180
+ name: t.borrowerName,
181
+ "distribution-model": t.distributionModel,
182
182
  "bold-name": !0,
183
- country: e.formattedLocation,
184
- "show-read-more": t.showLightView,
185
- "truncate-words-number": t.truncateWordsNumber,
183
+ country: t.formattedLocation,
184
+ "show-read-more": e.showLightView,
185
+ "truncate-words-number": e.truncateWordsNumber,
186
186
  class: "tw-text-small tw-leading-tight"
187
187
  }, null, 8, ["use", "loan-amount", "status", "borrower-count", "name", "distribution-model", "country", "show-read-more", "truncate-words-number"])
188
188
  ], 2))
@@ -191,45 +191,45 @@ function Q(k, o, t, e, X, y) {
191
191
  }, 8, ["to", "href", "target", "rel"])) : m("", !0)
192
192
  ], 2)
193
193
  ], 6),
194
- e.isLoading || typeof e.loanCallouts > "u" ? (n(), d(h, {
194
+ t.isLoading || typeof t.loanCallouts > "u" ? (o(), w(h, {
195
195
  key: 0,
196
196
  class: "tw-mt-1.5 tw-mb-1 tw-rounded-full",
197
197
  style: { width: "60%", height: "1.5rem" }
198
- })) : (n(), d(M, {
198
+ })) : (o(), w(M, {
199
199
  key: 1,
200
- callouts: e.loanCallouts,
201
- class: s(["tw-mt-1.5", { "goal-variant-callouts": e.isPostGoalVariant }]),
202
- onClick: o[6] || (o[6] = (a) => k.$emit("jump-filter-page", a))
200
+ callouts: t.loanCallouts,
201
+ class: s(["tw-mt-1.5", { "goal-variant-callouts": t.isPostGoalVariant }]),
202
+ onClick: n[6] || (n[6] = (a) => f.$emit("jump-filter-page", a))
203
203
  }, null, 8, ["callouts", "class"]))
204
204
  ]),
205
205
  r("div", {
206
206
  class: s(["tw-flex tw-items-center tw-justify-between tw-w-full tw-mt-1", {
207
- "tw-gap-1": e.sharesAvailable,
208
- "!tw-items-end !tw-gap-2": e.isPostGoalVariant
207
+ "tw-gap-1": t.sharesAvailable,
208
+ "!tw-items-end !tw-gap-2": t.isPostGoalVariant
209
209
  }])
210
210
  }, [
211
- e.hasProgressData ? e.isPostGoalVariant ? (n(), l(u, { key: 1 }, [
211
+ t.hasProgressData ? t.isPostGoalVariant ? (o(), l(g, { key: 1 }, [
212
212
  r("div", H, [
213
213
  i(x, {
214
- "money-left": e.unreservedAmount,
215
- "progress-percent": e.fundraisingPercent,
214
+ "money-left": t.unreservedAmount,
215
+ "progress-percent": t.fundraisingPercent,
216
216
  class: "tw-text-black goal-variant-progress-group"
217
217
  }, null, 8, ["money-left", "progress-percent"])
218
218
  ]),
219
219
  r("div", null, [
220
220
  i(N, {
221
- id: `PostGoalAmountDropdown_${((L = t.loan) == null ? void 0 : L.id) ?? t.loanId}`,
222
- modelValue: e.selectedAmount,
221
+ id: `PostGoalAmountDropdown_${((L = e.loan) == null ? void 0 : L.id) ?? e.loanId}`,
222
+ modelValue: t.selectedAmount,
223
223
  "onUpdate:modelValue": [
224
- o[7] || (o[7] = (a) => e.selectedAmount = a),
225
- e.handleSelectedAmount
224
+ n[7] || (n[7] = (a) => t.selectedAmount = a),
225
+ t.handleSelectedAmount
226
226
  ],
227
227
  "aria-label": "Lend amount",
228
- disabled: !e.amountOptions.length || y.isInBasket,
228
+ disabled: !t.amountOptions.length || y.isInBasket,
229
229
  class: "amount-dropdown"
230
230
  }, {
231
- default: f(() => [
232
- (n(!0), l(u, null, v(e.amountOptions, (a) => (n(), l("option", {
231
+ default: k(() => [
232
+ (o(!0), l(g, null, v(t.amountOptions, (a) => (o(), l("option", {
233
233
  key: a,
234
234
  value: a
235
235
  }, " $" + c(a), 9, Z))), 128))
@@ -237,67 +237,67 @@ function Q(k, o, t, e, X, y) {
237
237
  _: 1
238
238
  }, 8, ["id", "modelValue", "disabled", "onUpdate:modelValue"])
239
239
  ])
240
- ], 64)) : (n(), l(u, { key: 2 }, [
240
+ ], 64)) : (o(), l(g, { key: 2 }, [
241
241
  r("div", q, [
242
- e.sharesAvailable ? (n(), d(g(e.tag), {
242
+ t.sharesAvailable ? (o(), w(u(t.tag), {
243
243
  key: 0,
244
- to: e.readMorePath,
245
- href: e.readMorePath,
246
- target: t.externalLinksNewTab ? "_blank" : void 0,
247
- rel: t.externalLinksNewTab ? "noopener noreferrer" : void 0,
244
+ to: t.readMorePath,
245
+ href: t.readMorePath,
246
+ target: e.externalLinksNewTab ? "_blank" : void 0,
247
+ rel: e.externalLinksNewTab ? "noopener noreferrer" : void 0,
248
248
  class: "loan-card-progress tw-no-underline tw-block",
249
249
  "aria-label": "Loan progress",
250
- onClick: o[8] || (o[8] = (a) => e.clickReadMore("Progress", a))
250
+ onClick: n[8] || (n[8] = (a) => t.clickReadMore("Progress", a))
251
251
  }, {
252
- default: f(() => [
252
+ default: k(() => [
253
253
  i(x, {
254
254
  id: "loanProgress",
255
- "money-left": e.unreservedAmount,
256
- "progress-percent": e.fundraisingPercent,
255
+ "money-left": t.unreservedAmount,
256
+ "progress-percent": t.fundraisingPercent,
257
257
  class: "tw-text-black"
258
258
  }, null, 8, ["money-left", "progress-percent"])
259
259
  ]),
260
260
  _: 1
261
261
  }, 8, ["to", "href", "target", "rel"])) : m("", !0)
262
262
  ]),
263
- t.showLightView ? (n(), l("button", {
263
+ e.showLightView ? (o(), l("button", {
264
264
  key: 0,
265
265
  class: "tw-ml-2",
266
- onClick: o[9] || (o[9] = (a) => e.clickReadMore("View", a))
266
+ onClick: n[9] || (n[9] = (a) => t.clickReadMore("View", a))
267
267
  }, [
268
- r("span", J, " $" + c(t.customAmountLent), 1),
269
- o[13] || (o[13] = r("span", { class: "tw-bg-gray-100 tw-px-1.5 tw-py-1 tw-rounded-r-sm tw-border tw-border-gray-100 tw-text-action tw-font-medium hover:tw-underline tw-text-center tw-cursor-pointer" }, " View ", -1))
270
- ])) : (n(), l("div", {
268
+ r("span", J, " $" + c(e.customAmountLent), 1),
269
+ n[13] || (n[13] = r("span", { class: "tw-bg-gray-100 tw-px-1.5 tw-py-1 tw-rounded-r-sm tw-border tw-border-gray-100 tw-text-action tw-font-medium hover:tw-underline tw-text-center tw-cursor-pointer" }, " View ", -1))
270
+ ])) : (o(), l("div", {
271
271
  key: 1,
272
- class: s(["tw-flex-shrink-0 loan-card-cta", { "tw-w-full": !e.sharesAvailable }]),
272
+ class: s(["tw-flex-shrink-0 loan-card-cta", { "tw-w-full": !t.sharesAvailable }]),
273
273
  style: { height: "40px" }
274
274
  }, [
275
275
  i(A, {
276
- loan: t.loan,
277
- "unreserved-amount": e.unreservedAmount,
278
- "basket-items": t.basketItems,
279
- "is-loading": e.isLoading,
280
- "is-adding": t.isAdding,
281
- "enable-five-dollars-notes": t.enableFiveDollarsNotes,
282
- "five-dollars-selected": t.fiveDollarsSelected,
283
- "kv-track-function": t.kvTrackFunction,
284
- "show-view-loan": t.showViewLoan,
285
- "custom-loan-details": t.customLoanDetails,
286
- "external-links": t.externalLinks,
287
- route: t.route,
288
- "user-balance": t.userBalance,
289
- "get-cookie": t.getCookie,
290
- "set-cookie": t.setCookie,
291
- "is-visitor": t.isVisitor,
292
- "primary-button-text": t.primaryButtonText,
293
- "secondary-button-text": t.secondaryButtonText,
294
- "secondary-button-handler": t.secondaryButtonHandler,
295
- onAddToBasket: o[10] || (o[10] = (a) => k.$emit("add-to-basket", a)),
296
- onShowLoanDetails: o[11] || (o[11] = (a) => e.clickReadMore("ViewLoan", a)),
297
- onRemoveFromBasket: o[12] || (o[12] = (a) => k.$emit("remove-from-basket", a))
276
+ loan: e.loan,
277
+ "unreserved-amount": t.unreservedAmount,
278
+ "basket-items": e.basketItems,
279
+ "is-loading": t.isLoading,
280
+ "is-adding": e.isAdding,
281
+ "enable-five-dollars-notes": e.enableFiveDollarsNotes,
282
+ "five-dollars-selected": e.fiveDollarsSelected,
283
+ "kv-track-function": e.kvTrackFunction,
284
+ "show-view-loan": e.showViewLoan,
285
+ "custom-loan-details": e.customLoanDetails,
286
+ "external-links": e.externalLinks,
287
+ route: e.route,
288
+ "user-balance": e.userBalance,
289
+ "get-cookie": e.getCookie,
290
+ "set-cookie": e.setCookie,
291
+ "is-visitor": e.isVisitor,
292
+ "primary-button-text": e.primaryButtonText,
293
+ "secondary-button-text": e.secondaryButtonText,
294
+ "secondary-button-handler": e.secondaryButtonHandler,
295
+ onAddToBasket: n[10] || (n[10] = (a) => f.$emit("add-to-basket", a)),
296
+ onShowLoanDetails: n[11] || (n[11] = (a) => t.clickReadMore("ViewLoan", a)),
297
+ onRemoveFromBasket: n[12] || (n[12] = (a) => f.$emit("remove-from-basket", a))
298
298
  }, 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"])
299
299
  ], 2))
300
- ], 64)) : (n(), l(u, { key: 0 }, [
300
+ ], 64)) : (o(), l(g, { key: 0 }, [
301
301
  r("div", z, [
302
302
  i(h, {
303
303
  class: "tw-mb-0.5",
@@ -308,7 +308,7 @@ function Q(k, o, t, e, X, y) {
308
308
  style: { width: "100%", maxWidth: "11rem", height: "0.5rem" }
309
309
  })
310
310
  ]),
311
- e.allDataLoaded ? m("", !0) : (n(), d(h, {
311
+ t.allDataLoaded ? m("", !0) : (o(), w(h, {
312
312
  key: 0,
313
313
  class: "tw-rounded tw-flex-shrink-0",
314
314
  style: { width: "8rem", height: "2.5rem" }
@@ -317,9 +317,9 @@ function Q(k, o, t, e, X, y) {
317
317
  ], 2)
318
318
  ], 10, S);
319
319
  }
320
- const te = /* @__PURE__ */ G(B, [["render", Q], ["__scopeId", "data-v-daea2e7e"]]);
320
+ const et = /* @__PURE__ */ G(B, [["render", Q], ["__scopeId", "data-v-02aa45c6"]]);
321
321
  export {
322
- oe as KV_COMPACT_LOAN_CARD_FRAGMENT,
323
- le as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
324
- te as default
322
+ nt as KV_COMPACT_LOAN_CARD_FRAGMENT,
323
+ lt as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
324
+ et as default
325
325
  };
@@ -199,7 +199,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
199
199
  amountLent(): any;
200
200
  isInBasket(): any;
201
201
  hasMatchingInfo(): boolean;
202
- }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("show-loan-details" | "add-to-basket" | "remove-from-basket" | "jump-filter-page" | "refresh-button" | "update:selected-amount")[], "show-loan-details" | "add-to-basket" | "remove-from-basket" | "jump-filter-page" | "refresh-button" | "update:selected-amount", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
202
+ }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("show-loan-details" | "add-to-basket" | "jump-filter-page" | "remove-from-basket" | "refresh-button" | "update:selected-amount")[], "show-loan-details" | "add-to-basket" | "jump-filter-page" | "remove-from-basket" | "refresh-button" | "update:selected-amount", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
203
203
  variant: {
204
204
  type: StringConstructor;
205
205
  default: "default";
@@ -344,8 +344,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
344
344
  }>> & Readonly<{
345
345
  "onAdd-to-basket"?: (...args: any[]) => any;
346
346
  "onShow-loan-details"?: (...args: any[]) => any;
347
- "onRemove-from-basket"?: (...args: any[]) => any;
348
347
  "onJump-filter-page"?: (...args: any[]) => any;
348
+ "onRemove-from-basket"?: (...args: any[]) => any;
349
349
  "onRefresh-button"?: (...args: any[]) => any;
350
350
  "onUpdate:selected-amount"?: (...args: any[]) => any;
351
351
  }>, {
@@ -747,7 +747,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
747
747
  clickPresetButton(selectedDollarAmount: any): void;
748
748
  handleCheckout(): void;
749
749
  isNarrowComponent(): boolean;
750
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
750
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("show-loan-details" | "add-to-basket")[], "show-loan-details" | "add-to-basket", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
751
751
  loan: {
752
752
  type: ObjectConstructor;
753
753
  default: () => {};
@@ -844,7 +844,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
844
844
  type: NumberConstructor;
845
845
  default: number;
846
846
  };
847
- }>> & Readonly<{}>, {
847
+ }>> & Readonly<{
848
+ "onAdd-to-basket"?: (...args: any[]) => any;
849
+ "onShow-loan-details"?: (...args: any[]) => any;
850
+ }>, {
848
851
  loan: Record<string, any>;
849
852
  externalLinks: boolean;
850
853
  customLoanDetails: boolean;
@@ -891,7 +894,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
891
894
  buttonText(): string;
892
895
  }, {
893
896
  addToBasket(event: any): void;
894
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
897
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "add-to-basket"[], "add-to-basket", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
895
898
  loanId: {
896
899
  type: NumberConstructor;
897
900
  default: any;
@@ -908,7 +911,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
908
911
  type: BooleanConstructor;
909
912
  default: boolean;
910
913
  };
911
- }>> & Readonly<{}>, {
914
+ }>> & Readonly<{
915
+ "onAdd-to-basket"?: (...args: any[]) => any;
916
+ }>, {
912
917
  loanId: number;
913
918
  showNow: boolean;
914
919
  amountLeft: string | number;