@kiva/kv-components 8.19.2 → 8.20.0
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.
- package/AGENTS.md +4 -0
- package/dist/data/ne_110m_admin_0_countries.json.js +1 -1
- package/dist/utils/Alea.js +2 -2
- package/dist/utils/mapUtils.js +5 -7
- package/dist/vendor/aria-hidden/dist/es2015/index.js +23 -23
- package/dist/vendor/popper.js/dist/esm/popper.js +6 -6
- package/dist/vue/KvAtbModal.css +1 -1
- package/dist/vue/KvCarousel.css +1 -1
- package/dist/vue/KvCarousel2.js +5 -5
- package/dist/vue/KvCartModal.css +1 -1
- package/dist/vue/KvCartModal2.js +7 -7
- package/dist/vue/KvCheckbox.js +3 -3
- package/dist/vue/KvClassicLoanCard.css +1 -1
- package/dist/vue/KvClassicLoanCard.js +2 -2
- package/dist/vue/KvClassicLoanCard.vue.d.ts +29 -12
- package/dist/vue/KvClassicLoanCard2.js +52 -46
- package/dist/vue/KvCommentsContainer2.js +7 -7
- package/dist/vue/KvCommentsListItem2.js +11 -11
- package/dist/vue/KvCompactLoanCard.css +1 -1
- package/dist/vue/KvCompactLoanCard.js +147 -147
- package/dist/vue/KvCompactLoanCard.vue.d.ts +11 -6
- package/dist/vue/KvCompactLoanCard2.js +15 -15
- package/dist/vue/KvContentfulImg.js +3 -3
- package/dist/vue/KvDatePicker.vue.d.ts +5 -2
- package/dist/vue/KvDatePicker2.js +9 -5
- package/dist/vue/KvExpandable2.js +3 -3
- package/dist/vue/KvExpandableQuestion2.js +3 -3
- package/dist/vue/KvFlag.js +5 -5
- package/dist/vue/KvIconButton.js +4 -4
- package/dist/vue/KvImageUpload.js +1 -1
- package/dist/vue/KvImageUpload2.js +3 -3
- package/dist/vue/KvIntroductionLoanCard.css +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +11 -11
- package/dist/vue/KvIntroductionLoanCard.vue.d.ts +8 -4
- package/dist/vue/KvIntroductionLoanCard2.js +34 -31
- package/dist/vue/KvLendAmountButton.vue.d.ts +4 -2
- package/dist/vue/KvLendAmountButton2.js +3 -0
- package/dist/vue/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +9 -9
- package/dist/vue/KvLendCta.vue.d.ts +9 -4
- package/dist/vue/KvLendCta2.js +11 -7
- package/dist/vue/KvLightbox2.js +4 -4
- package/dist/vue/KvLoanActivities.js +4 -4
- package/dist/vue/KvLoanActivities.vue.d.ts +9 -4
- package/dist/vue/KvLoanActivities2.js +13 -13
- package/dist/vue/KvLoanBookmark.vue.d.ts +4 -2
- package/dist/vue/KvLoanBookmark2.js +8 -5
- package/dist/vue/KvLoanInfoCard.css +1 -1
- package/dist/vue/KvLoanInfoCard.js +2 -2
- package/dist/vue/KvLoanTag.js +9 -9
- package/dist/vue/KvLoanTag2.js +1 -1
- package/dist/vue/KvMap.vue.d.ts +4 -2
- package/dist/vue/KvMap2.js +9 -6
- package/dist/vue/KvPagination.vue.d.ts +4 -2
- package/dist/vue/KvPagination2.js +7 -4
- package/dist/vue/KvPieChartV2.css +1 -1
- package/dist/vue/KvPieChartV22.js +3 -3
- package/dist/vue/KvPopper2.js +4 -4
- package/dist/vue/KvRadio.js +1 -1
- package/dist/vue/KvSecondaryNav.js +25 -25
- package/dist/vue/KvSecondaryNav2.js +8 -8
- package/dist/vue/KvSelect.js +12 -12
- package/dist/vue/KvSideSheet.js +1 -1
- package/dist/vue/KvSideSheet2.js +3 -3
- package/dist/vue/KvSimpleMap.css +1 -1
- package/dist/vue/KvSimpleMap.js +2 -2
- package/dist/vue/KvSimpleMap2.js +1 -0
- package/dist/vue/KvSwitch.js +1 -1
- package/dist/vue/KvTabs.vue.d.ts +4 -2
- package/dist/vue/KvTabs2.js +17 -14
- package/dist/vue/KvTextInput.js +1 -1
- package/dist/vue/KvTextInput2.js +3 -3
- package/dist/vue/KvThemeProvider.css +1 -1
- package/dist/vue/KvTooltip.css +1 -1
- package/dist/vue/KvTooltip.js +7 -7
- package/dist/vue/KvTooltip2.js +22 -22
- package/dist/vue/KvTreeMapChart.css +1 -1
- package/dist/vue/KvVerticalCarousel2.js +5 -5
- package/dist/vue/KvVotingCard.css +1 -1
- package/dist/vue/KvVotingCard.js +11 -11
- package/dist/vue/KvVotingCard.vue.d.ts +5 -2
- package/dist/vue/KvVotingCard2.js +4 -0
- package/dist/vue/KvWideLoanCard.css +1 -1
- package/dist/vue/KvWideLoanCard.js +4 -4
- package/dist/vue/KvWideLoanCard.vue.d.ts +18 -8
- package/dist/vue/KvWideLoanCard2.js +39 -35
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar2.js +5 -5
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +3 -3
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +4 -4
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +9 -9
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu2.js +3 -3
- package/dist/vue/KvWwwHeaderBasic/LinkBar.css +1 -1
- package/dist/vue/KvWwwHeaderBasic/LinkBar2.js +3 -3
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.css +1 -1
- package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/SearchBar2.js +6 -6
- package/docs/code-connect.md +266 -0
- package/figma.config.json +6 -0
- package/package.json +6 -21
- package/tsconfig.json +2 -1
- package/vite.config.ts +3 -0
|
@@ -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),
|
|
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
|
-
|
|
81
|
-
|
|
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
|
|
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,
|
|
91
|
+
m(r, o);
|
|
92
92
|
}, O = () => {
|
|
93
|
-
|
|
93
|
+
a.value = !1;
|
|
94
94
|
}, R = n(() => {
|
|
95
|
-
var e, l,
|
|
96
|
-
return ((
|
|
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,
|
|
99
|
-
return ((
|
|
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:
|
|
110
|
+
showInput: a,
|
|
111
111
|
commentsAddRef: c,
|
|
112
112
|
replyClick: k,
|
|
113
113
|
addReaction: N,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-use[data-v-
|
|
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
|
|
3
|
-
import { resolveComponent as
|
|
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(
|
|
19
|
+
function Q(f, n, e, t, X, y) {
|
|
20
20
|
var L;
|
|
21
|
-
const _ =
|
|
22
|
-
return
|
|
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":
|
|
25
|
-
"!tw-p-1.5":
|
|
24
|
+
"tw-relative": e.showRefreshButton,
|
|
25
|
+
"!tw-p-1.5": e.showLightView || t.isPostGoalVariant
|
|
26
26
|
}]),
|
|
27
|
-
"aria-busy":
|
|
27
|
+
"aria-busy": t.isLoading ? "true" : "false"
|
|
28
28
|
}, [
|
|
29
|
-
|
|
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:
|
|
32
|
+
onClick: n[0] || (n[0] = (...a) => t.handleRefreshButton && t.handleRefreshButton(...a))
|
|
33
33
|
}, [
|
|
34
34
|
i(_, {
|
|
35
|
-
icon:
|
|
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":
|
|
43
|
-
"!tw-gap-1.5 md:!tw-gap-2.5":
|
|
42
|
+
"!tw-gap-1": e.showLightView,
|
|
43
|
+
"!tw-gap-1.5 md:!tw-gap-2.5": t.isPostGoalVariant
|
|
44
44
|
}]),
|
|
45
|
-
style: b(
|
|
45
|
+
style: b(t.customStyle)
|
|
46
46
|
}, [
|
|
47
|
-
|
|
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":
|
|
52
|
-
"!tw-w-7.5 !tw-h-7.5 md:!tw-w-12.5 md:!tw-h-12.5":
|
|
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(
|
|
55
|
-
}, null, 8, ["class", "style"])) : (
|
|
56
|
-
(
|
|
57
|
-
to:
|
|
58
|
-
href:
|
|
59
|
-
target:
|
|
60
|
-
rel:
|
|
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:
|
|
63
|
+
onClick: n[1] || (n[1] = (a) => t.clickReadMore("Photo", a))
|
|
64
64
|
}, {
|
|
65
|
-
default:
|
|
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":
|
|
69
|
-
"!tw-w-7.5 !tw-h-7.5 md:!tw-w-12.5 md:!tw-h-12.5":
|
|
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(
|
|
72
|
-
alt: `Photo of ${
|
|
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:
|
|
75
|
+
hash: t.imageHash,
|
|
76
76
|
images: [{ width: 200, faceZoom: 50 }],
|
|
77
|
-
"photo-path":
|
|
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":
|
|
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
|
-
|
|
87
|
-
(
|
|
88
|
-
to:
|
|
89
|
-
href:
|
|
90
|
-
target:
|
|
91
|
-
rel:
|
|
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:
|
|
94
|
+
onClick: n[2] || (n[2] = (a) => t.clickReadMore("Business", a))
|
|
95
95
|
}, {
|
|
96
|
-
default:
|
|
97
|
-
r("h3", W, c(
|
|
96
|
+
default: k(() => [
|
|
97
|
+
r("h3", W, c(e.businessName), 1)
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["to", "href", "target", "rel"])),
|
|
101
|
-
|
|
101
|
+
e.website ? (o(), l("a", {
|
|
102
102
|
key: 0,
|
|
103
|
-
href:
|
|
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:
|
|
106
|
+
onClick: n[3] || (n[3] = R((...a) => t.trackWebsiteClick && t.trackWebsiteClick(...a), ["stop"]))
|
|
107
107
|
}, [
|
|
108
108
|
i(_, {
|
|
109
|
-
icon:
|
|
109
|
+
icon: t.mdiLink,
|
|
110
110
|
class: "tw-w-2 tw-h-2"
|
|
111
111
|
}, null, 8, ["icon"]),
|
|
112
|
-
r("span", F, c(
|
|
112
|
+
r("span", F, c(e.website), 1)
|
|
113
113
|
], 8, E)) : m("", !0)
|
|
114
114
|
])) : m("", !0),
|
|
115
|
-
|
|
115
|
+
t.isLoading ? m("", !0) : (o(), w(u(t.tag), {
|
|
116
116
|
key: 1,
|
|
117
|
-
to:
|
|
118
|
-
href:
|
|
119
|
-
target:
|
|
120
|
-
rel:
|
|
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:
|
|
123
|
+
onClick: n[4] || (n[4] = (a) => t.clickReadMore("Tag", a))
|
|
124
124
|
}, {
|
|
125
|
-
default:
|
|
126
|
-
|
|
125
|
+
default: k(() => [
|
|
126
|
+
e.showTags ? (o(), w(C, {
|
|
127
127
|
key: 0,
|
|
128
128
|
class: s({
|
|
129
|
-
"tw-mb-1 !tw-font-medium":
|
|
129
|
+
"tw-mb-1 !tw-font-medium": t.isPostGoalVariant
|
|
130
130
|
}),
|
|
131
|
-
loan:
|
|
132
|
-
"enable-multi-matching":
|
|
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
|
-
|
|
138
|
-
|
|
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)) : (
|
|
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:
|
|
145
|
+
title: t.statementTitle,
|
|
146
146
|
"data-testid": "loan-use-statement"
|
|
147
147
|
}, [
|
|
148
|
-
r("span", null, c(
|
|
149
|
-
r("span", j, c(
|
|
150
|
-
r("span", null, c(
|
|
151
|
-
r("span", null, c(
|
|
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)) :
|
|
153
|
+
], 64)) : e.showLoanUse ? (o(), w(u(t.tag), {
|
|
154
154
|
key: 3,
|
|
155
|
-
to:
|
|
156
|
-
href:
|
|
157
|
-
target:
|
|
158
|
-
rel:
|
|
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:
|
|
161
|
+
onClick: n[5] || (n[5] = (a) => t.clickReadMore("Use", a))
|
|
162
162
|
}, {
|
|
163
|
-
default:
|
|
164
|
-
|
|
165
|
-
(
|
|
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
|
-
])) : (
|
|
171
|
+
])) : (o(), l("div", {
|
|
172
172
|
key: 1,
|
|
173
|
-
class: s(["loan-card-use-text tw-w-full tw-overflow-hidden", { "!tw--mt-1":
|
|
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:
|
|
177
|
-
"loan-amount":
|
|
178
|
-
status:
|
|
179
|
-
"borrower-count":
|
|
180
|
-
name:
|
|
181
|
-
"distribution-model":
|
|
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:
|
|
184
|
-
"show-read-more":
|
|
185
|
-
"truncate-words-number":
|
|
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
|
-
|
|
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
|
-
})) : (
|
|
198
|
+
})) : (o(), w(M, {
|
|
199
199
|
key: 1,
|
|
200
|
-
callouts:
|
|
201
|
-
class: s(["tw-mt-1.5", { "goal-variant-callouts":
|
|
202
|
-
onClick:
|
|
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":
|
|
208
|
-
"!tw-items-end !tw-gap-2":
|
|
207
|
+
"tw-gap-1": t.sharesAvailable,
|
|
208
|
+
"!tw-items-end !tw-gap-2": t.isPostGoalVariant
|
|
209
209
|
}])
|
|
210
210
|
}, [
|
|
211
|
-
|
|
211
|
+
t.hasProgressData ? t.isPostGoalVariant ? (o(), l(g, { key: 1 }, [
|
|
212
212
|
r("div", H, [
|
|
213
213
|
i(x, {
|
|
214
|
-
"money-left":
|
|
215
|
-
"progress-percent":
|
|
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 =
|
|
222
|
-
modelValue:
|
|
221
|
+
id: `PostGoalAmountDropdown_${((L = e.loan) == null ? void 0 : L.id) ?? e.loanId}`,
|
|
222
|
+
modelValue: t.selectedAmount,
|
|
223
223
|
"onUpdate:modelValue": [
|
|
224
|
-
|
|
225
|
-
|
|
224
|
+
n[7] || (n[7] = (a) => t.selectedAmount = a),
|
|
225
|
+
t.handleSelectedAmount
|
|
226
226
|
],
|
|
227
227
|
"aria-label": "Lend amount",
|
|
228
|
-
disabled: !
|
|
228
|
+
disabled: !t.amountOptions.length || y.isInBasket,
|
|
229
229
|
class: "amount-dropdown"
|
|
230
230
|
}, {
|
|
231
|
-
default:
|
|
232
|
-
(
|
|
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)) : (
|
|
240
|
+
], 64)) : (o(), l(g, { key: 2 }, [
|
|
241
241
|
r("div", q, [
|
|
242
|
-
|
|
242
|
+
t.sharesAvailable ? (o(), w(u(t.tag), {
|
|
243
243
|
key: 0,
|
|
244
|
-
to:
|
|
245
|
-
href:
|
|
246
|
-
target:
|
|
247
|
-
rel:
|
|
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:
|
|
250
|
+
onClick: n[8] || (n[8] = (a) => t.clickReadMore("Progress", a))
|
|
251
251
|
}, {
|
|
252
|
-
default:
|
|
252
|
+
default: k(() => [
|
|
253
253
|
i(x, {
|
|
254
254
|
id: "loanProgress",
|
|
255
|
-
"money-left":
|
|
256
|
-
"progress-percent":
|
|
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
|
-
|
|
263
|
+
e.showLightView ? (o(), l("button", {
|
|
264
264
|
key: 0,
|
|
265
265
|
class: "tw-ml-2",
|
|
266
|
-
onClick:
|
|
266
|
+
onClick: n[9] || (n[9] = (a) => t.clickReadMore("View", a))
|
|
267
267
|
}, [
|
|
268
|
-
r("span", J, " $" + c(
|
|
269
|
-
|
|
270
|
-
])) : (
|
|
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": !
|
|
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:
|
|
277
|
-
"unreserved-amount":
|
|
278
|
-
"basket-items":
|
|
279
|
-
"is-loading":
|
|
280
|
-
"is-adding":
|
|
281
|
-
"enable-five-dollars-notes":
|
|
282
|
-
"five-dollars-selected":
|
|
283
|
-
"kv-track-function":
|
|
284
|
-
"show-view-loan":
|
|
285
|
-
"custom-loan-details":
|
|
286
|
-
"external-links":
|
|
287
|
-
route:
|
|
288
|
-
"user-balance":
|
|
289
|
-
"get-cookie":
|
|
290
|
-
"set-cookie":
|
|
291
|
-
"is-visitor":
|
|
292
|
-
"primary-button-text":
|
|
293
|
-
"secondary-button-text":
|
|
294
|
-
"secondary-button-handler":
|
|
295
|
-
onAddToBasket:
|
|
296
|
-
onShowLoanDetails:
|
|
297
|
-
onRemoveFromBasket:
|
|
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)) : (
|
|
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
|
-
|
|
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
|
|
320
|
+
const et = /* @__PURE__ */ G(B, [["render", Q], ["__scopeId", "data-v-02aa45c6"]]);
|
|
321
321
|
export {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
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" | "
|
|
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,
|
|
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,
|
|
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;
|