@kiva/kv-components 8.26.0 → 8.26.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.
- package/dist/index.js +75 -74
- package/dist/utils/loanCard.js +106 -90
- package/dist/vue/KvClassicLoanCard.css +1 -1
- package/dist/vue/KvClassicLoanCard.js +94 -79
- package/dist/vue/KvClassicLoanCard2.js +52 -45
- package/dist/vue/KvDatePicker.vue.d.ts +3 -3
- package/dist/vue/KvIntroductionLoanCard.css +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +86 -71
- package/dist/vue/KvIntroductionLoanCard2.js +48 -41
- package/dist/vue/KvLoanInfoCard.css +1 -1
- package/dist/vue/KvLoanInfoCard.js +137 -115
- package/dist/vue/KvWideLoanCard.css +1 -1
- package/dist/vue/KvWideLoanCard.js +74 -59
- package/dist/vue/KvWideLoanCard2.js +53 -46
- package/package.json +2 -2
- package/dist/utils/loanCard.d.ts +0 -35
- package/dist/vue/KvClassicLoanCard.vue.d.ts +0 -2252
- package/dist/vue/KvIntroductionLoanCard.vue.d.ts +0 -665
- package/dist/vue/KvWideLoanCard.vue.d.ts +0 -1275
|
@@ -1,121 +1,136 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { KV_CLASSIC_LOAN_CARD_FRAGMENT as
|
|
3
|
-
import { resolveComponent as i, openBlock as
|
|
1
|
+
import N from "./KvClassicLoanCard2.js";
|
|
2
|
+
import { KV_CLASSIC_LOAN_CARD_FRAGMENT as ae, KV_CLASSIC_LOAN_CARD_USER_FRAGMET as oe } from "./KvClassicLoanCard2.js";
|
|
3
|
+
import { resolveComponent as i, openBlock as a, createElementBlock as s, normalizeStyle as T, normalizeClass as r, createElementVNode as d, createBlock as n, resolveDynamicComponent as v, withCtx as g, createVNode as w, toDisplayString as b, createTextVNode as V, createCommentVNode as c, Fragment as R, renderList as S } from "vue";
|
|
4
4
|
import "./KvClassicLoanCard.css";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import F from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const I = { class: "tw-grow" }, E = { class: "loan-card-active-hover" }, K = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "tw-relative"
|
|
9
|
-
},
|
|
10
|
-
class: "tw-absolute tw-bottom-1 tw-left-1 tw-text-primary tw-bg-white tw-rounded tw-p-1 tw-mb-0 tw-
|
|
11
|
-
style: { padding: "2px 6px", "text-transform": "capitalize" }
|
|
12
|
-
},
|
|
9
|
+
}, z = { key: 0 }, W = {
|
|
10
|
+
class: "tw-absolute tw-bottom-1 tw-left-1 tw-text-primary tw-bg-white tw-rounded tw-p-1 tw-mb-0 tw-text-label tw-flex tw-items-center tw-h-3",
|
|
11
|
+
style: { padding: "2px 6px", "text-transform": "capitalize", "max-width": "calc(100% - 1rem)" }
|
|
12
|
+
}, U = ["id"], j = { class: "tw-mb-1.5 tw-pt-1" }, G = { key: 1 }, H = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "tw-w-full tw-pt-1 tw-pr-1"
|
|
15
|
-
},
|
|
15
|
+
}, O = {
|
|
16
16
|
key: 0,
|
|
17
17
|
class: "tw-text-center tw-w-full tw-mt-1 tw-font-medium"
|
|
18
|
-
},
|
|
18
|
+
}, q = {
|
|
19
19
|
key: 1,
|
|
20
20
|
class: "tw-pt-1.5"
|
|
21
21
|
};
|
|
22
|
-
function
|
|
23
|
-
const k = i("kv-loading-placeholder"), h = i("kv-borrower-image"), f = i("kv-material-icon"), _ = i("kv-loan-team-pick"),
|
|
24
|
-
return
|
|
22
|
+
function J(u, o, e, t, Q, m) {
|
|
23
|
+
const k = i("kv-loading-placeholder"), h = i("kv-borrower-image"), f = i("kv-material-icon"), _ = i("kv-tooltip"), y = i("kv-loan-team-pick"), x = i("kv-loan-bookmark"), C = i("kv-loan-tag"), L = i("kv-loan-use"), A = i("kv-loan-callouts"), M = i("kv-loan-progress-group"), P = i("kv-lend-cta"), B = i("KvLoanActivities");
|
|
24
|
+
return a(), s("div", {
|
|
25
25
|
class: r(["tw-flex tw-flex-col tw-bg-white tw-rounded tw-w-full tw-pb-1", { "tw-p-1": !e.largeCard, "tw-pointer-events-none": t.isLoading }]),
|
|
26
26
|
"data-testid": "loan-card",
|
|
27
|
-
style:
|
|
27
|
+
style: T([{ "box-shadow": "0 4px 12px rgba(0, 0, 0, 0.08)" }, { minWidth: "230px", maxWidth: m.cardWidth }])
|
|
28
28
|
}, [
|
|
29
|
-
d("div",
|
|
30
|
-
d("div",
|
|
31
|
-
t.isLoading ? (
|
|
29
|
+
d("div", I, [
|
|
30
|
+
d("div", E, [
|
|
31
|
+
t.isLoading ? (a(), n(k, {
|
|
32
32
|
key: 0,
|
|
33
33
|
class: r(["tw-mb-1 tw-w-full", { "tw-rounded-t tw-rounded-b-none": e.largeCard, "!tw-rounded-sm": !e.largeCard }]),
|
|
34
34
|
style: { height: "15rem" }
|
|
35
|
-
}, null, 8, ["class"])) : (
|
|
36
|
-
(
|
|
35
|
+
}, null, 8, ["class"])) : (a(), s("div", K, [
|
|
36
|
+
(a(), n(v(t.tag), {
|
|
37
37
|
to: t.readMorePath,
|
|
38
38
|
href: t.readMorePath,
|
|
39
39
|
class: "tw-flex",
|
|
40
40
|
"aria-label": "Borrower image",
|
|
41
|
-
onClick:
|
|
41
|
+
onClick: o[0] || (o[0] = (l) => t.clickReadMore("Photo", l))
|
|
42
42
|
}, {
|
|
43
|
-
default:
|
|
44
|
-
|
|
43
|
+
default: g(() => [
|
|
44
|
+
w(h, {
|
|
45
45
|
class: r(["tw-relative tw-w-full tw-bg-black tw-bg-clip-content", { "tw-rounded-t": e.largeCard, "tw-rounded-sm": !e.largeCard }]),
|
|
46
46
|
alt: `Photo of ${t.borrowerName}`,
|
|
47
|
-
"aspect-ratio":
|
|
48
|
-
"default-image": { width:
|
|
47
|
+
"aspect-ratio": m.imageAspectRatio,
|
|
48
|
+
"default-image": { width: m.imageDefaultWidth },
|
|
49
49
|
hash: t.imageHash,
|
|
50
|
-
images:
|
|
50
|
+
images: m.imageSizes,
|
|
51
51
|
"photo-path": e.photoPath
|
|
52
52
|
}, null, 8, ["class", "alt", "aspect-ratio", "default-image", "hash", "images", "photo-path"]),
|
|
53
|
-
t.countryName ? (
|
|
54
|
-
d("p",
|
|
55
|
-
|
|
56
|
-
class: "tw-h-2 tw-w-2",
|
|
53
|
+
t.countryName ? (a(), s("div", z, [
|
|
54
|
+
d("p", W, [
|
|
55
|
+
w(f, {
|
|
56
|
+
class: "tw-h-2 tw-w-2 tw-flex-shrink-0",
|
|
57
57
|
icon: t.mdiMapMarker
|
|
58
58
|
}, null, 8, ["icon"]),
|
|
59
|
-
d("span",
|
|
59
|
+
d("span", {
|
|
60
|
+
id: `loan-location-${e.loanId}`,
|
|
61
|
+
ref: "locationRef",
|
|
62
|
+
class: "tw-truncate tw-min-w-0",
|
|
63
|
+
style: { "margin-top": "0.125rem" }
|
|
64
|
+
}, b(t.formattedLocation), 9, U),
|
|
65
|
+
t.isLocationTruncated ? (a(), n(_, {
|
|
66
|
+
key: 0,
|
|
67
|
+
controller: `loan-location-${e.loanId}`,
|
|
68
|
+
"max-width": "250px"
|
|
69
|
+
}, {
|
|
70
|
+
default: g(() => [
|
|
71
|
+
V(b(t.formattedLocation), 1)
|
|
72
|
+
]),
|
|
73
|
+
_: 1
|
|
74
|
+
}, 8, ["controller"])) : c("", !0)
|
|
60
75
|
])
|
|
61
|
-
])) :
|
|
76
|
+
])) : c("", !0)
|
|
62
77
|
]),
|
|
63
78
|
_: 1
|
|
64
79
|
}, 8, ["to", "href"])),
|
|
65
|
-
e.isTeamPick ? (
|
|
80
|
+
e.isTeamPick ? (a(), n(y, {
|
|
66
81
|
key: 0,
|
|
67
82
|
class: r(["tw-absolute", { "tw-right-6": !e.isVisitor, "tw-right-0": e.isVisitor }]),
|
|
68
83
|
style: { top: "-6px" },
|
|
69
84
|
"data-testid": "loan-card-teampick"
|
|
70
|
-
}, null, 8, ["class"])) :
|
|
71
|
-
e.isVisitor ?
|
|
85
|
+
}, null, 8, ["class"])) : c("", !0),
|
|
86
|
+
e.isVisitor ? c("", !0) : (a(), n(x, {
|
|
72
87
|
key: 1,
|
|
73
88
|
"loan-id": e.loanId,
|
|
74
89
|
"is-bookmarked": e.isBookmarked,
|
|
75
90
|
class: "tw-absolute tw-right-1",
|
|
76
91
|
style: { top: "-6px" },
|
|
77
92
|
"data-testid": "loan-card-bookmark",
|
|
78
|
-
onToggleBookmark:
|
|
93
|
+
onToggleBookmark: o[1] || (o[1] = (l) => u.$emit("toggle-bookmark"))
|
|
79
94
|
}, null, 8, ["loan-id", "is-bookmarked"]))
|
|
80
95
|
])),
|
|
81
|
-
(
|
|
96
|
+
(a(), n(v(t.tag), {
|
|
82
97
|
to: t.readMorePath,
|
|
83
98
|
href: t.readMorePath,
|
|
84
99
|
class: r(["tw-flex tw-no-underline hover:tw-no-underline focus:tw-no-underline", { "tw-px-1": e.largeCard }]),
|
|
85
100
|
"aria-label": "Loan tag",
|
|
86
|
-
onClick:
|
|
101
|
+
onClick: o[2] || (o[2] = (l) => t.clickReadMore("Tag", l))
|
|
87
102
|
}, {
|
|
88
|
-
default:
|
|
89
|
-
e.showTags && !t.isLoading ? (
|
|
103
|
+
default: g(() => [
|
|
104
|
+
e.showTags && !t.isLoading ? (a(), n(C, {
|
|
90
105
|
key: 0,
|
|
91
106
|
loan: e.loan,
|
|
92
107
|
"enable-multi-matching": e.enableMultiMatching
|
|
93
|
-
}, null, 8, ["loan", "enable-multi-matching"])) :
|
|
108
|
+
}, null, 8, ["loan", "enable-multi-matching"])) : c("", !0)
|
|
94
109
|
]),
|
|
95
110
|
_: 1
|
|
96
111
|
}, 8, ["to", "href", "class"])),
|
|
97
|
-
(
|
|
112
|
+
(a(), n(v(t.tag), {
|
|
98
113
|
to: t.readMorePath,
|
|
99
114
|
href: t.readMorePath,
|
|
100
115
|
class: "loan-card-use tw-no-underline tw-text-primary",
|
|
101
116
|
"aria-label": "Loan use",
|
|
102
|
-
onClick:
|
|
117
|
+
onClick: o[3] || (o[3] = (l) => t.clickReadMore("Use", l))
|
|
103
118
|
}, {
|
|
104
|
-
default:
|
|
105
|
-
d("div",
|
|
106
|
-
t.isLoading ? (
|
|
119
|
+
default: g(() => [
|
|
120
|
+
d("div", j, [
|
|
121
|
+
t.isLoading ? (a(), s("div", {
|
|
107
122
|
key: 0,
|
|
108
123
|
class: r(["tw-w-full", { "tw-px-1": e.largeCard }]),
|
|
109
124
|
style: { height: "5.5rem" }
|
|
110
125
|
}, [
|
|
111
|
-
(
|
|
112
|
-
key:
|
|
126
|
+
(a(!0), s(R, null, S([...Array(4)], (l, D) => (a(), s("div", {
|
|
127
|
+
key: D,
|
|
113
128
|
class: "tw-h-2 tw-mb-1"
|
|
114
129
|
}, [
|
|
115
|
-
|
|
130
|
+
w(k)
|
|
116
131
|
]))), 128))
|
|
117
|
-
], 2)) : (
|
|
118
|
-
|
|
132
|
+
], 2)) : (a(), s("div", G, [
|
|
133
|
+
w(L, {
|
|
119
134
|
use: t.loanUse,
|
|
120
135
|
"loan-amount": t.loanAmount,
|
|
121
136
|
status: t.loanStatus,
|
|
@@ -130,41 +145,41 @@ function O(u, a, e, t, q, c) {
|
|
|
130
145
|
_: 1
|
|
131
146
|
}, 8, ["to", "href"]))
|
|
132
147
|
]),
|
|
133
|
-
t.isLoading || typeof t.loanCallouts > "u" ? (
|
|
148
|
+
t.isLoading || typeof t.loanCallouts > "u" ? (a(), n(k, {
|
|
134
149
|
key: 0,
|
|
135
150
|
class: r(["tw-mt-1.5 tw-mb-1", { "tw-mx-1": e.largeCard }]),
|
|
136
151
|
style: { width: "60%", height: "1.75rem", "border-radius": "500rem" }
|
|
137
|
-
}, null, 8, ["class"])) : (
|
|
152
|
+
}, null, 8, ["class"])) : (a(), n(A, {
|
|
138
153
|
key: 1,
|
|
139
154
|
callouts: t.loanCallouts,
|
|
140
155
|
class: r(["tw-mt-1.5", { "tw-px-1": e.largeCard }]),
|
|
141
|
-
onClick:
|
|
156
|
+
onClick: o[4] || (o[4] = (l) => u.$emit("jump-filter-page", l))
|
|
142
157
|
}, null, 8, ["callouts", "class"]))
|
|
143
158
|
]),
|
|
144
159
|
d("div", {
|
|
145
160
|
class: r(["tw-flex tw-justify-between tw-mt-2", { "tw-px-1": e.largeCard }])
|
|
146
161
|
}, [
|
|
147
|
-
t.hasProgressData ?
|
|
148
|
-
|
|
162
|
+
t.hasProgressData ? c("", !0) : (a(), s("div", H, [
|
|
163
|
+
w(k, {
|
|
149
164
|
class: "tw-mb-0.5",
|
|
150
165
|
style: { width: "70%", height: "1.3rem" }
|
|
151
166
|
}),
|
|
152
|
-
|
|
167
|
+
w(k, {
|
|
153
168
|
class: "tw-rounded",
|
|
154
169
|
style: { width: "70%", height: "0.5rem" }
|
|
155
170
|
})
|
|
156
171
|
])),
|
|
157
172
|
d("div", null, [
|
|
158
|
-
t.sharesAvailable ? (
|
|
173
|
+
t.sharesAvailable ? (a(), n(v(t.tag), {
|
|
159
174
|
key: 0,
|
|
160
175
|
to: t.readMorePath,
|
|
161
176
|
href: t.readMorePath,
|
|
162
177
|
class: "loan-card-progress tw-no-underline tw-mt-1",
|
|
163
178
|
"aria-label": "Loan progress",
|
|
164
|
-
onClick:
|
|
179
|
+
onClick: o[5] || (o[5] = (l) => t.clickReadMore("Progress", l))
|
|
165
180
|
}, {
|
|
166
|
-
default:
|
|
167
|
-
|
|
181
|
+
default: g(() => [
|
|
182
|
+
w(M, {
|
|
168
183
|
id: "loanProgress",
|
|
169
184
|
"money-left": t.unreservedAmount,
|
|
170
185
|
"progress-percent": t.fundraisingPercent,
|
|
@@ -172,9 +187,9 @@ function O(u, a, e, t, q, c) {
|
|
|
172
187
|
}, null, 8, ["money-left", "progress-percent"])
|
|
173
188
|
]),
|
|
174
189
|
_: 1
|
|
175
|
-
}, 8, ["to", "href"])) :
|
|
190
|
+
}, 8, ["to", "href"])) : c("", !0)
|
|
176
191
|
]),
|
|
177
|
-
t.allDataLoaded ? (
|
|
192
|
+
t.allDataLoaded ? (a(), n(P, {
|
|
178
193
|
key: 2,
|
|
179
194
|
loan: e.loan,
|
|
180
195
|
"unreserved-amount": t.unreservedAmount,
|
|
@@ -196,21 +211,21 @@ function O(u, a, e, t, q, c) {
|
|
|
196
211
|
"secondary-button-text": e.secondaryButtonText,
|
|
197
212
|
"secondary-button-handler": e.secondaryButtonHandler,
|
|
198
213
|
class: r(["tw-mt-auto", { "tw-w-full": !t.sharesAvailable }]),
|
|
199
|
-
onAddToBasket:
|
|
200
|
-
onShowLoanDetails:
|
|
201
|
-
onRemoveFromBasket:
|
|
202
|
-
}, 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"])) : (
|
|
214
|
+
onAddToBasket: o[6] || (o[6] = (l) => u.$emit("add-to-basket", l)),
|
|
215
|
+
onShowLoanDetails: o[7] || (o[7] = (l) => t.clickReadMore("ViewLoan", l)),
|
|
216
|
+
onRemoveFromBasket: o[8] || (o[8] = (l) => u.$emit("remove-from-basket", l))
|
|
217
|
+
}, 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"])) : (a(), n(k, {
|
|
203
218
|
key: 1,
|
|
204
219
|
class: "tw-rounded tw-self-start",
|
|
205
220
|
style: { width: "9rem", height: "3rem" }
|
|
206
221
|
}))
|
|
207
222
|
], 2),
|
|
208
|
-
e.showContributors &&
|
|
209
|
-
d("p", null, b(
|
|
210
|
-
])) :
|
|
211
|
-
e.combinedActivities.length > 0 ? (
|
|
212
|
-
|
|
213
|
-
|
|
223
|
+
e.showContributors && m.lendersNumber && m.amountLent ? (a(), s("div", O, [
|
|
224
|
+
d("p", null, b(m.lendersNumber) + " people contributed " + b(m.amountLent), 1)
|
|
225
|
+
])) : c("", !0),
|
|
226
|
+
e.combinedActivities.length > 0 ? (a(), s("div", q, [
|
|
227
|
+
o[10] || (o[10] = d("hr", { class: "tw-border-tertiary tw-mb-1 tw-w-5/6 tw-mx-auto" }, null, -1)),
|
|
228
|
+
w(B, {
|
|
214
229
|
loan: e.loan,
|
|
215
230
|
"combined-activities": e.combinedActivities,
|
|
216
231
|
"kv-track-function": e.kvTrackFunction,
|
|
@@ -227,14 +242,14 @@ function O(u, a, e, t, q, c) {
|
|
|
227
242
|
"set-cookie": e.setCookie,
|
|
228
243
|
"error-msg": e.errorMsg,
|
|
229
244
|
"is-visitor": e.isVisitor,
|
|
230
|
-
onAddToBasket:
|
|
245
|
+
onAddToBasket: o[9] || (o[9] = (l) => u.$emit("add-to-basket", l))
|
|
231
246
|
}, 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"])
|
|
232
|
-
])) :
|
|
247
|
+
])) : c("", !0)
|
|
233
248
|
], 6);
|
|
234
249
|
}
|
|
235
|
-
const
|
|
250
|
+
const $ = /* @__PURE__ */ F(N, [["render", J], ["__scopeId", "data-v-44561e04"]]);
|
|
236
251
|
export {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
252
|
+
ae as KV_CLASSIC_LOAN_CARD_FRAGMENT,
|
|
253
|
+
oe as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
|
|
254
|
+
$ as default
|
|
240
255
|
};
|
|
@@ -1,23 +1,24 @@
|
|
|
1
1
|
import a from "graphql-tag";
|
|
2
|
-
import
|
|
3
|
-
import { LOAN_CALLOUTS_FRAGMENT as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
18
|
-
import {
|
|
19
|
-
import {
|
|
20
|
-
|
|
2
|
+
import S from "numeral";
|
|
3
|
+
import { LOAN_CALLOUTS_FRAGMENT as M, LOAN_GEOCODE_FRAGMENT as k, LOAN_PROGRESS_FRAGMENT as F, loanCardComputedProperties as R, loanCardMethods as w, useLocationTruncation as E } from "../utils/loanCard.js";
|
|
4
|
+
import b from "./KvLoanUse.js";
|
|
5
|
+
import O from "./KvBorrowerImage.js";
|
|
6
|
+
import G from "./KvLoanProgressGroup.js";
|
|
7
|
+
import D from "./KvLoanCallouts.js";
|
|
8
|
+
import P from "./KvLendCta.js";
|
|
9
|
+
import I from "./KvLoanBookmark.js";
|
|
10
|
+
import V from "./KvLoanTag.js";
|
|
11
|
+
import $ from "./KvMaterialIcon.js";
|
|
12
|
+
import U from "./KvLoadingPlaceholder.js";
|
|
13
|
+
import z from "./KvLoanTeamPick.js";
|
|
14
|
+
import W from "./KvLoanActivities.js";
|
|
15
|
+
import x from "./KvTooltip.js";
|
|
16
|
+
import { KV_LEND_CTA_FRAGMENT as H, KV_LEND_CTA_USER_FRAGMENT as j } from "./KvLendCta2.js";
|
|
17
|
+
import { KV_LOAN_ACTIVITIES_FRAGMENT as q } from "./KvLoanActivities2.js";
|
|
18
|
+
import { KV_LOAN_TAG_FRAGMENT as J } from "./KvLoanTag2.js";
|
|
19
|
+
import { KV_LOAN_USE_FRAGMENT as Q } from "./KvLoanUse2.js";
|
|
20
|
+
import { KV_LOAN_BOOKMARK_FRAGMENT as X } from "./KvLoanBookmark2.js";
|
|
21
|
+
const ve = a`
|
|
21
22
|
fragment KvClassicLoanCard on LoanBasic {
|
|
22
23
|
id
|
|
23
24
|
gender
|
|
@@ -41,35 +42,36 @@ const pe = a`
|
|
|
41
42
|
...LoanGeocode
|
|
42
43
|
...LoanProgress
|
|
43
44
|
}
|
|
44
|
-
${U}
|
|
45
|
-
${W}
|
|
46
|
-
${x}
|
|
47
45
|
${H}
|
|
48
|
-
${
|
|
49
|
-
${
|
|
46
|
+
${q}
|
|
47
|
+
${J}
|
|
48
|
+
${Q}
|
|
50
49
|
${M}
|
|
51
|
-
|
|
50
|
+
${k}
|
|
51
|
+
${F}
|
|
52
|
+
`, ye = a`
|
|
52
53
|
fragment KvClassicLoanCardUser on LoanBasic {
|
|
53
54
|
id
|
|
54
55
|
...KvLendCtaUser
|
|
55
56
|
...KvLoanBookmark
|
|
56
57
|
}
|
|
57
|
-
${z}
|
|
58
58
|
${j}
|
|
59
|
-
|
|
59
|
+
${X}
|
|
60
|
+
`, Ce = {
|
|
60
61
|
name: "KvClassicLoanCard",
|
|
61
62
|
components: {
|
|
62
|
-
KvBorrowerImage:
|
|
63
|
-
KvLoadingPlaceholder:
|
|
64
|
-
KvLoanUse:
|
|
65
|
-
KvLoanProgressGroup:
|
|
66
|
-
KvMaterialIcon:
|
|
67
|
-
KvLendCta:
|
|
68
|
-
KvLoanTag:
|
|
69
|
-
KvLoanCallouts:
|
|
70
|
-
KvLoanBookmark:
|
|
71
|
-
KvLoanTeamPick:
|
|
72
|
-
KvLoanActivities:
|
|
63
|
+
KvBorrowerImage: O,
|
|
64
|
+
KvLoadingPlaceholder: U,
|
|
65
|
+
KvLoanUse: b,
|
|
66
|
+
KvLoanProgressGroup: G,
|
|
67
|
+
KvMaterialIcon: $,
|
|
68
|
+
KvLendCta: P,
|
|
69
|
+
KvLoanTag: V,
|
|
70
|
+
KvLoanCallouts: D,
|
|
71
|
+
KvLoanBookmark: I,
|
|
72
|
+
KvLoanTeamPick: z,
|
|
73
|
+
KvLoanActivities: W,
|
|
74
|
+
KvTooltip: x
|
|
73
75
|
},
|
|
74
76
|
props: {
|
|
75
77
|
loanId: {
|
|
@@ -226,9 +228,12 @@ const pe = a`
|
|
|
226
228
|
tag: h,
|
|
227
229
|
unreservedAmount: _,
|
|
228
230
|
sharesAvailable: K
|
|
229
|
-
} =
|
|
231
|
+
} = R(e), {
|
|
230
232
|
clickReadMore: N
|
|
231
|
-
} =
|
|
233
|
+
} = w(e, t), {
|
|
234
|
+
locationRef: T,
|
|
235
|
+
isLocationTruncated: B
|
|
236
|
+
} = E();
|
|
232
237
|
return {
|
|
233
238
|
allDataLoaded: o,
|
|
234
239
|
borrowerName: r,
|
|
@@ -251,7 +256,9 @@ const pe = a`
|
|
|
251
256
|
tag: h,
|
|
252
257
|
unreservedAmount: _,
|
|
253
258
|
sharesAvailable: K,
|
|
254
|
-
clickReadMore: N
|
|
259
|
+
clickReadMore: N,
|
|
260
|
+
locationRef: T,
|
|
261
|
+
isLocationTruncated: B
|
|
255
262
|
};
|
|
256
263
|
},
|
|
257
264
|
computed: {
|
|
@@ -280,12 +287,12 @@ const pe = a`
|
|
|
280
287
|
amountLent() {
|
|
281
288
|
var t, o;
|
|
282
289
|
const e = ((o = (t = this.loan) == null ? void 0 : t.loanFundraisingInfo) == null ? void 0 : o.fundedAmount) ?? 0;
|
|
283
|
-
return
|
|
290
|
+
return S(e).format("$0,0");
|
|
284
291
|
}
|
|
285
292
|
}
|
|
286
293
|
};
|
|
287
294
|
export {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
295
|
+
ve as KV_CLASSIC_LOAN_CARD_FRAGMENT,
|
|
296
|
+
ye as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
|
|
297
|
+
Ce as default
|
|
291
298
|
};
|
|
@@ -58,10 +58,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
58
58
|
onFocus?: (...args: any[]) => any;
|
|
59
59
|
onBlur?: (...args: any[]) => any;
|
|
60
60
|
onOpen?: (...args: any[]) => any;
|
|
61
|
+
onClosed?: (...args: any[]) => any;
|
|
61
62
|
"onUpdate:model-value"?: (...args: any[]) => any;
|
|
62
63
|
"onUpdate:model-timezone-value"?: (...args: any[]) => any;
|
|
63
64
|
"onText-submit"?: (...args: any[]) => any;
|
|
64
|
-
onClosed?: (...args: any[]) => any;
|
|
65
65
|
onCleared?: (...args: any[]) => any;
|
|
66
66
|
"onInternal-model-change"?: (...args: any[]) => any;
|
|
67
67
|
"onRecalculate-position"?: (...args: any[]) => any;
|
|
@@ -93,10 +93,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
93
93
|
onFocus?: (...args: any[]) => any;
|
|
94
94
|
onBlur?: (...args: any[]) => any;
|
|
95
95
|
onOpen?: (...args: any[]) => any;
|
|
96
|
+
onClosed?: (...args: any[]) => any;
|
|
96
97
|
"onUpdate:model-value"?: (...args: any[]) => any;
|
|
97
98
|
"onUpdate:model-timezone-value"?: (...args: any[]) => any;
|
|
98
99
|
"onText-submit"?: (...args: any[]) => any;
|
|
99
|
-
onClosed?: (...args: any[]) => any;
|
|
100
100
|
onCleared?: (...args: any[]) => any;
|
|
101
101
|
"onInternal-model-change"?: (...args: any[]) => any;
|
|
102
102
|
"onRecalculate-position"?: (...args: any[]) => any;
|
|
@@ -125,10 +125,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
125
125
|
onFocus?: (...args: any[]) => any;
|
|
126
126
|
onBlur?: (...args: any[]) => any;
|
|
127
127
|
onOpen?: (...args: any[]) => any;
|
|
128
|
+
onClosed?: (...args: any[]) => any;
|
|
128
129
|
"onUpdate:model-value"?: (...args: any[]) => any;
|
|
129
130
|
"onUpdate:model-timezone-value"?: (...args: any[]) => any;
|
|
130
131
|
"onText-submit"?: (...args: any[]) => any;
|
|
131
|
-
onClosed?: (...args: any[]) => any;
|
|
132
132
|
onCleared?: (...args: any[]) => any;
|
|
133
133
|
"onInternal-model-change"?: (...args: any[]) => any;
|
|
134
134
|
"onRecalculate-position"?: (...args: any[]) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-callouts[data-v-
|
|
1
|
+
.loan-callouts[data-v-2e03cf82] span{background-color:transparent!important;--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1))}.loan-card-use[data-v-2e03cf82]:hover,.loan-card-use[data-v-2e03cf82]: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-2e03cf82],.loan-card-active-hover:hover .loan-card-name[data-v-2e03cf82]{text-decoration-line:underline}.loan-card-progress[data-v-2e03cf82],.loan-card-progress[data-v-2e03cf82]:hover,.loan-card-progress[data-v-2e03cf82]:focus{text-decoration-line:none}.loan-card-name[data-v-2e03cf82]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;cursor:pointer;overflow:hidden;text-overflow:ellipsis;padding-left:1.5rem;padding-right:1.5rem;padding-top:.5rem}.loan-bookmark[data-v-2e03cf82] button{border-top-left-radius:0!important;border-top-right-radius:0!important}
|