@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,67 +1,67 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as
|
|
3
|
-
import { resolveComponent as
|
|
1
|
+
import P from "./KvIntroductionLoanCard2.js";
|
|
2
|
+
import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as ot, KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT as at } from "./KvIntroductionLoanCard2.js";
|
|
3
|
+
import { resolveComponent as i, openBlock as e, createElementBlock as n, normalizeStyle as R, normalizeClass as _, createElementVNode as d, createBlock as o, resolveDynamicComponent as g, withCtx as w, createVNode as s, Suspense as A, toDisplayString as f, createTextVNode as p, createCommentVNode as c, Fragment as T, renderList as I } from "vue";
|
|
4
4
|
import "./KvIntroductionLoanCard.css";
|
|
5
5
|
import B from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const D = { class: "tw-grow" },
|
|
6
|
+
const D = { class: "tw-grow" }, z = { class: "loan-card-active-hover" }, V = {
|
|
7
7
|
key: 1,
|
|
8
8
|
style: { height: "11rem" },
|
|
9
9
|
class: "tw-relative tw-overflow-hidden"
|
|
10
|
-
},
|
|
11
|
-
class: "tw-absolute tw-bottom-1 tw-left-1 tw-text-primary tw-bg-white tw-rounded tw-p-1 tw-mb-0 tw-
|
|
12
|
-
style: { padding: "2px 6px" }
|
|
13
|
-
},
|
|
10
|
+
}, O = { key: 0 }, S = {
|
|
11
|
+
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 !tw-capitalize",
|
|
12
|
+
style: { padding: "2px 6px", "max-width": "calc(100% - 1rem)" }
|
|
13
|
+
}, E = ["id"], F = {
|
|
14
14
|
key: 3,
|
|
15
15
|
class: "tw-flex tw-justify-center tw-gap-2"
|
|
16
|
-
},
|
|
16
|
+
}, U = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "tw-w-full",
|
|
19
19
|
style: { height: "5.5rem" }
|
|
20
|
-
},
|
|
20
|
+
}, W = { key: 1 }, j = { class: "tw-px-2" }, K = {
|
|
21
21
|
key: 0,
|
|
22
22
|
class: "tw-w-full tw-pr-1"
|
|
23
|
-
},
|
|
23
|
+
}, G = { class: "tw-flex tw-justify-between" }, H = {
|
|
24
24
|
key: 2,
|
|
25
25
|
class: "tw-bg-eco-green-1 tw-text-action tw-text-center tw-py-1.5",
|
|
26
26
|
style: { "font-weight": "bold", "font-size": "13px", "border-radius": "8px" }
|
|
27
27
|
};
|
|
28
|
-
function
|
|
29
|
-
const
|
|
28
|
+
function q(k, a, m, t, J, h) {
|
|
29
|
+
const r = i("kv-loading-placeholder"), u = i("kv-borrower-image"), y = i("kv-flag"), b = i("kv-tooltip"), v = i("kv-loan-bookmark"), x = i("kv-loan-callouts"), C = i("kv-loan-use"), L = i("kv-loan-progress-group"), M = i("kv-loan-tag");
|
|
30
30
|
return e(), n("div", {
|
|
31
31
|
class: _(["tw-flex tw-flex-col tw-bg-white tw-rounded tw-w-full tw-pb-2", { "tw-pointer-events-none": t.isLoading }]),
|
|
32
32
|
"data-testid": "loan-card",
|
|
33
|
-
style:
|
|
33
|
+
style: R([{ "box-shadow": "0px 4px 8px 0px rgba(0, 0, 0, 0.38)" }, { minWidth: "230px", maxWidth: h.cardWidth }])
|
|
34
34
|
}, [
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
t.isLoading ? (e(), o(
|
|
35
|
+
d("div", D, [
|
|
36
|
+
d("div", z, [
|
|
37
|
+
t.isLoading ? (e(), o(r, {
|
|
38
38
|
key: 0,
|
|
39
39
|
class: "tw-w-full tw-rounded-t",
|
|
40
40
|
style: { height: "11rem" }
|
|
41
|
-
})) : (e(), n("div",
|
|
41
|
+
})) : (e(), n("div", V, [
|
|
42
42
|
(e(), o(g(t.tag), {
|
|
43
43
|
to: t.readMorePath,
|
|
44
44
|
href: t.readMorePath,
|
|
45
45
|
class: "tw-flex",
|
|
46
46
|
"aria-label": "Borrower image",
|
|
47
|
-
onClick: a[0] || (a[0] = (
|
|
47
|
+
onClick: a[0] || (a[0] = (l) => t.clickReadMore("Photo", l))
|
|
48
48
|
}, {
|
|
49
49
|
default: w(() => [
|
|
50
|
-
|
|
50
|
+
s(u, {
|
|
51
51
|
class: "tw-relative tw-w-full tw-bg-black tw-rounded-t borrower-image tw-bg-clip-content",
|
|
52
52
|
alt: `Photo of ${t.borrowerName}`,
|
|
53
53
|
"aspect-ratio": h.imageAspectRatio,
|
|
54
54
|
"default-image": { width: h.imageDefaultWidth },
|
|
55
55
|
hash: t.imageHash,
|
|
56
56
|
images: h.imageSizes,
|
|
57
|
-
"photo-path":
|
|
57
|
+
"photo-path": m.photoPath
|
|
58
58
|
}, null, 8, ["alt", "aspect-ratio", "default-image", "hash", "images", "photo-path"]),
|
|
59
|
-
t.countryName ? (e(), n("div",
|
|
60
|
-
|
|
61
|
-
(e(), o(
|
|
59
|
+
t.countryName ? (e(), n("div", O, [
|
|
60
|
+
d("p", S, [
|
|
61
|
+
(e(), o(A, null, {
|
|
62
62
|
default: w(() => [
|
|
63
|
-
|
|
64
|
-
class: "tw-ml-0.5 tw-mr-1",
|
|
63
|
+
s(y, {
|
|
64
|
+
class: "tw-ml-0.5 tw-mr-1 tw-flex-shrink-0",
|
|
65
65
|
country: t.countryCode,
|
|
66
66
|
name: t.countryName,
|
|
67
67
|
"width-override": "16px",
|
|
@@ -70,67 +70,82 @@ function G(k, a, c, t, H, h) {
|
|
|
70
70
|
]),
|
|
71
71
|
_: 1
|
|
72
72
|
})),
|
|
73
|
-
|
|
73
|
+
d("span", {
|
|
74
|
+
id: `loan-location-${m.loanId}`,
|
|
75
|
+
ref: "locationRef",
|
|
76
|
+
class: "tw-truncate tw-min-w-0",
|
|
77
|
+
style: { "margin-top": "0.125rem" }
|
|
78
|
+
}, f(t.formattedLocation), 9, E),
|
|
79
|
+
t.isLocationTruncated ? (e(), o(b, {
|
|
80
|
+
key: 0,
|
|
81
|
+
controller: `loan-location-${m.loanId}`,
|
|
82
|
+
"max-width": "250px"
|
|
83
|
+
}, {
|
|
84
|
+
default: w(() => [
|
|
85
|
+
p(f(t.formattedLocation), 1)
|
|
86
|
+
]),
|
|
87
|
+
_: 1
|
|
88
|
+
}, 8, ["controller"])) : c("", !0)
|
|
74
89
|
])
|
|
75
|
-
])) :
|
|
90
|
+
])) : c("", !0)
|
|
76
91
|
]),
|
|
77
92
|
_: 1
|
|
78
93
|
}, 8, ["to", "href"])),
|
|
79
|
-
|
|
94
|
+
m.isVisitor ? c("", !0) : (e(), o(v, {
|
|
80
95
|
key: 0,
|
|
81
|
-
"loan-id":
|
|
82
|
-
"is-bookmarked":
|
|
96
|
+
"loan-id": m.loanId,
|
|
97
|
+
"is-bookmarked": m.isBookmarked,
|
|
83
98
|
class: "loan-bookmark tw-absolute tw-right-1.5 tw-top-0",
|
|
84
99
|
"data-testid": "loan-card-bookmark",
|
|
85
|
-
onToggleBookmark: a[1] || (a[1] = (
|
|
100
|
+
onToggleBookmark: a[1] || (a[1] = (l) => k.$emit("toggle-bookmark"))
|
|
86
101
|
}, null, 8, ["loan-id", "is-bookmarked"]))
|
|
87
102
|
])),
|
|
88
|
-
t.isLoading || typeof t.loanCallouts > "u" ? (e(), o(
|
|
103
|
+
t.isLoading || typeof t.loanCallouts > "u" ? (e(), o(r, {
|
|
89
104
|
key: 2,
|
|
90
105
|
class: "tw-mt-1 tw-mx-auto",
|
|
91
106
|
style: { width: "60%", height: "1.75rem", "border-radius": "500rem" }
|
|
92
|
-
})) :
|
|
107
|
+
})) : c("", !0),
|
|
93
108
|
(e(), o(g(t.tag), {
|
|
94
109
|
to: t.readMorePath,
|
|
95
110
|
href: t.readMorePath,
|
|
96
111
|
"aria-label": "Borrower name",
|
|
97
112
|
class: "!tw-text-primary tw-no-underline",
|
|
98
|
-
onClick: a[2] || (a[2] = (
|
|
113
|
+
onClick: a[2] || (a[2] = (l) => t.clickReadMore("Name", l))
|
|
99
114
|
}, {
|
|
100
115
|
default: w(() => [
|
|
101
|
-
|
|
116
|
+
d("h3", {
|
|
102
117
|
class: _(["loan-card-name tw-text-title", { "tw-text-center": t.borrowerName.length < 20 }]),
|
|
103
118
|
style: { "font-size": "28px" }
|
|
104
119
|
}, f(t.borrowerName), 3)
|
|
105
120
|
]),
|
|
106
121
|
_: 1
|
|
107
122
|
}, 8, ["to", "href"])),
|
|
108
|
-
t.isLoading ? (e(), n("div",
|
|
109
|
-
t.isLoading || typeof t.loanCallouts > "u" ? (e(), o(
|
|
123
|
+
t.isLoading ? (e(), n("div", F, [
|
|
124
|
+
t.isLoading || typeof t.loanCallouts > "u" ? (e(), o(r, {
|
|
110
125
|
key: 0,
|
|
111
126
|
class: "tw-mt-0.5 tw-mb-1",
|
|
112
127
|
style: { width: "20%", height: "1.65rem", "border-radius": "500rem" }
|
|
113
|
-
})) :
|
|
114
|
-
t.isLoading || typeof t.loanCallouts > "u" ? (e(), o(
|
|
128
|
+
})) : c("", !0),
|
|
129
|
+
t.isLoading || typeof t.loanCallouts > "u" ? (e(), o(r, {
|
|
115
130
|
key: 1,
|
|
116
131
|
class: "tw-mt-0.5 tw-mb-1",
|
|
117
132
|
style: { width: "20%", height: "1.65rem", "border-radius": "500rem" }
|
|
118
|
-
})) :
|
|
119
|
-
t.isLoading || typeof t.loanCallouts > "u" ? (e(), o(
|
|
133
|
+
})) : c("", !0),
|
|
134
|
+
t.isLoading || typeof t.loanCallouts > "u" ? (e(), o(r, {
|
|
120
135
|
key: 2,
|
|
121
136
|
class: "tw-mt-0.5 tw-mb-1",
|
|
122
137
|
style: { width: "20%", height: "1.65rem", "border-radius": "500rem" }
|
|
123
|
-
})) :
|
|
138
|
+
})) : c("", !0)
|
|
124
139
|
])) : (e(), o(g(t.tag), {
|
|
125
140
|
key: 4,
|
|
126
141
|
to: t.readMorePath,
|
|
127
142
|
href: t.readMorePath,
|
|
128
143
|
class: "tw-flex tw-no-underline hover:tw-no-underline focus:tw-no-underline tw-justify-center",
|
|
129
144
|
"aria-label": "Loan tag",
|
|
130
|
-
onClick: a[3] || (a[3] = (
|
|
145
|
+
onClick: a[3] || (a[3] = (l) => t.clickReadMore("Tag", l))
|
|
131
146
|
}, {
|
|
132
147
|
default: w(() => [
|
|
133
|
-
|
|
148
|
+
s(x, {
|
|
134
149
|
callouts: t.loanCallouts,
|
|
135
150
|
"add-bg-color": !1,
|
|
136
151
|
class: "loan-callouts"
|
|
@@ -143,21 +158,21 @@ function G(k, a, c, t, H, h) {
|
|
|
143
158
|
href: t.readMorePath,
|
|
144
159
|
class: "loan-card-use tw-text-primary tw-no-underline",
|
|
145
160
|
"aria-label": "Loan use",
|
|
146
|
-
onClick: a[4] || (a[4] = (
|
|
161
|
+
onClick: a[4] || (a[4] = (l) => t.clickReadMore("Use", l))
|
|
147
162
|
}, {
|
|
148
163
|
default: w(() => [
|
|
149
|
-
|
|
164
|
+
d("div", {
|
|
150
165
|
class: _(["tw-pt-0.5 tw-px-2", { "tw-mb-1.5": !t.isLoading }])
|
|
151
166
|
}, [
|
|
152
|
-
t.isLoading ? (e(), n("div",
|
|
153
|
-
(e(!0), n(
|
|
154
|
-
key:
|
|
167
|
+
t.isLoading ? (e(), n("div", U, [
|
|
168
|
+
(e(!0), n(T, null, I([...Array(3)], (l, N) => (e(), n("div", {
|
|
169
|
+
key: N,
|
|
155
170
|
class: "tw-h-2 tw-mb-1"
|
|
156
171
|
}, [
|
|
157
|
-
|
|
172
|
+
s(r)
|
|
158
173
|
]))), 128))
|
|
159
|
-
])) : (e(), n("div",
|
|
160
|
-
|
|
174
|
+
])) : (e(), n("div", W, [
|
|
175
|
+
s(C, {
|
|
161
176
|
use: t.loanUse,
|
|
162
177
|
"loan-amount": t.loanAmount,
|
|
163
178
|
status: t.loanStatus,
|
|
@@ -174,34 +189,34 @@ function G(k, a, c, t, H, h) {
|
|
|
174
189
|
}, 8, ["to", "href"]))
|
|
175
190
|
])
|
|
176
191
|
]),
|
|
177
|
-
|
|
178
|
-
t.hasProgressData ?
|
|
179
|
-
|
|
180
|
-
|
|
192
|
+
d("div", j, [
|
|
193
|
+
t.hasProgressData ? c("", !0) : (e(), n("div", K, [
|
|
194
|
+
d("div", G, [
|
|
195
|
+
s(r, {
|
|
181
196
|
class: "tw-mb-0.5",
|
|
182
197
|
style: { width: "20%", height: "1.3rem" }
|
|
183
198
|
}),
|
|
184
|
-
|
|
199
|
+
s(r, {
|
|
185
200
|
class: "tw-mb-0.5",
|
|
186
201
|
style: { width: "20%", height: "1.3rem" }
|
|
187
202
|
})
|
|
188
203
|
]),
|
|
189
|
-
|
|
204
|
+
s(r, {
|
|
190
205
|
class: "tw-rounded",
|
|
191
206
|
style: { width: "100%", height: "0.5rem" }
|
|
192
207
|
})
|
|
193
208
|
])),
|
|
194
|
-
|
|
209
|
+
d("div", null, [
|
|
195
210
|
t.sharesAvailable ? (e(), o(g(t.tag), {
|
|
196
211
|
key: 0,
|
|
197
212
|
to: t.readMorePath,
|
|
198
213
|
href: t.readMorePath,
|
|
199
214
|
class: "loan-card-progress tw-mt-1",
|
|
200
215
|
"aria-label": "Loan progress",
|
|
201
|
-
onClick: a[5] || (a[5] = (
|
|
216
|
+
onClick: a[5] || (a[5] = (l) => t.clickReadMore("Progress", l))
|
|
202
217
|
}, {
|
|
203
218
|
default: w(() => [
|
|
204
|
-
|
|
219
|
+
s(L, {
|
|
205
220
|
id: "loanProgress",
|
|
206
221
|
"money-left": t.unreservedAmount,
|
|
207
222
|
"amount-goal": t.loanAmount,
|
|
@@ -210,26 +225,26 @@ function G(k, a, c, t, H, h) {
|
|
|
210
225
|
}, null, 8, ["money-left", "amount-goal", "progress-percent"])
|
|
211
226
|
]),
|
|
212
227
|
_: 1
|
|
213
|
-
}, 8, ["to", "href"])) :
|
|
228
|
+
}, 8, ["to", "href"])) : c("", !0)
|
|
214
229
|
]),
|
|
215
|
-
t.isLoading ? (e(), o(
|
|
230
|
+
t.isLoading ? (e(), o(r, {
|
|
216
231
|
key: 1,
|
|
217
232
|
class: "tw-rounded tw-mx-auto tw-mt-2",
|
|
218
233
|
style: { width: "9rem", height: "1rem" }
|
|
219
|
-
})) : h.isFunded ? (e(), n("div",
|
|
234
|
+
})) : h.isFunded ? (e(), n("div", H, " 🎉 Fully funded! ")) : (e(), o(M, {
|
|
220
235
|
key: 3,
|
|
221
|
-
loan:
|
|
236
|
+
loan: m.loan,
|
|
222
237
|
"use-expanded-styles": !0,
|
|
223
|
-
"enable-multi-matching":
|
|
238
|
+
"enable-multi-matching": m.enableMultiMatching,
|
|
224
239
|
style: { "font-size": "15px" },
|
|
225
240
|
class: "tw-text-center tw-pt-2"
|
|
226
241
|
}, null, 8, ["loan", "enable-multi-matching"]))
|
|
227
242
|
])
|
|
228
243
|
], 6);
|
|
229
244
|
}
|
|
230
|
-
const
|
|
245
|
+
const $ = /* @__PURE__ */ B(P, [["render", q], ["__scopeId", "data-v-2e03cf82"]]);
|
|
231
246
|
export {
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
247
|
+
ot as KV_INTRODUCTION_LOAN_CARD_FRAGMENT,
|
|
248
|
+
at as KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT,
|
|
249
|
+
$ as default
|
|
235
250
|
};
|
|
@@ -1,19 +1,20 @@
|
|
|
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
|
|
2
|
+
import F from "numeral";
|
|
3
|
+
import { LOAN_CALLOUTS_FRAGMENT as k, LOAN_GEOCODE_FRAGMENT as B, LOAN_PROGRESS_FRAGMENT as E, loanCardComputedProperties as G, loanCardMethods as b, useLocationTruncation as I } from "../utils/loanCard.js";
|
|
4
|
+
import S from "./KvLoanBookmark.js";
|
|
5
|
+
import D from "./KvLoanUse.js";
|
|
6
|
+
import P from "./KvBorrowerImage.js";
|
|
7
|
+
import U from "./KvLoanProgressGroup.js";
|
|
8
|
+
import $ from "./KvLoanCallouts.js";
|
|
9
|
+
import w from "./KvLoanTag.js";
|
|
10
|
+
import V from "./KvMaterialIcon.js";
|
|
11
|
+
import W from "./KvLoadingPlaceholder.js";
|
|
12
|
+
import q from "./KvFlag.js";
|
|
13
|
+
import H from "./KvTooltip.js";
|
|
13
14
|
import { KV_LOAN_BOOKMARK_FRAGMENT as r } from "./KvLoanBookmark2.js";
|
|
14
|
-
import { KV_LOAN_TAG_FRAGMENT as
|
|
15
|
-
import { KV_LOAN_USE_FRAGMENT as
|
|
16
|
-
const
|
|
15
|
+
import { KV_LOAN_TAG_FRAGMENT as j } from "./KvLoanTag2.js";
|
|
16
|
+
import { KV_LOAN_USE_FRAGMENT as x } from "./KvLoanUse2.js";
|
|
17
|
+
const mo = a`
|
|
17
18
|
fragment KvIntroductionLoanCard on LoanBasic {
|
|
18
19
|
id
|
|
19
20
|
image {
|
|
@@ -37,29 +38,30 @@ const no = a`
|
|
|
37
38
|
...LoanProgress
|
|
38
39
|
}
|
|
39
40
|
${r}
|
|
40
|
-
${
|
|
41
|
-
${
|
|
42
|
-
${F}
|
|
43
|
-
${T}
|
|
41
|
+
${j}
|
|
42
|
+
${x}
|
|
44
43
|
${k}
|
|
45
|
-
|
|
44
|
+
${B}
|
|
45
|
+
${E}
|
|
46
|
+
`, fo = a`
|
|
46
47
|
fragment KvIntroductionLoanCardUser on LoanBasic {
|
|
47
48
|
id
|
|
48
49
|
...KvLoanBookmark
|
|
49
50
|
}
|
|
50
51
|
${r}
|
|
51
|
-
`,
|
|
52
|
+
`, co = {
|
|
52
53
|
name: "KvIntroductionLoanCard",
|
|
53
54
|
components: {
|
|
54
|
-
KvBorrowerImage:
|
|
55
|
-
KvLoadingPlaceholder:
|
|
56
|
-
KvLoanUse:
|
|
57
|
-
KvLoanProgressGroup:
|
|
58
|
-
KvMaterialIcon:
|
|
59
|
-
KvLoanTag:
|
|
60
|
-
KvLoanCallouts:
|
|
61
|
-
KvFlag:
|
|
62
|
-
KvLoanBookmark:
|
|
55
|
+
KvBorrowerImage: P,
|
|
56
|
+
KvLoadingPlaceholder: W,
|
|
57
|
+
KvLoanUse: D,
|
|
58
|
+
KvLoanProgressGroup: U,
|
|
59
|
+
KvMaterialIcon: V,
|
|
60
|
+
KvLoanTag: w,
|
|
61
|
+
KvLoanCallouts: $,
|
|
62
|
+
KvFlag: q,
|
|
63
|
+
KvLoanBookmark: S,
|
|
64
|
+
KvTooltip: H
|
|
63
65
|
},
|
|
64
66
|
props: {
|
|
65
67
|
loanId: {
|
|
@@ -137,8 +139,8 @@ const no = a`
|
|
|
137
139
|
formattedLocation: m,
|
|
138
140
|
fundraisingPercent: d,
|
|
139
141
|
hasProgressData: f,
|
|
140
|
-
imageHash:
|
|
141
|
-
isLoading:
|
|
142
|
+
imageHash: c,
|
|
143
|
+
isLoading: p,
|
|
142
144
|
loanAmount: L,
|
|
143
145
|
loanBorrowerCount: g,
|
|
144
146
|
loanCallouts: A,
|
|
@@ -150,9 +152,12 @@ const no = a`
|
|
|
150
152
|
tag: y,
|
|
151
153
|
unreservedAmount: C,
|
|
152
154
|
sharesAvailable: O
|
|
153
|
-
} =
|
|
154
|
-
clickReadMore:
|
|
155
|
-
} =
|
|
155
|
+
} = G(o, !0), {
|
|
156
|
+
clickReadMore: T
|
|
157
|
+
} = b(o, t), {
|
|
158
|
+
locationRef: M,
|
|
159
|
+
isLocationTruncated: R
|
|
160
|
+
} = I();
|
|
156
161
|
return {
|
|
157
162
|
allDataLoaded: e,
|
|
158
163
|
borrowerName: n,
|
|
@@ -163,8 +168,8 @@ const no = a`
|
|
|
163
168
|
formattedLocation: m,
|
|
164
169
|
fundraisingPercent: d,
|
|
165
170
|
hasProgressData: f,
|
|
166
|
-
imageHash:
|
|
167
|
-
isLoading:
|
|
171
|
+
imageHash: c,
|
|
172
|
+
isLoading: p,
|
|
168
173
|
loanAmount: L,
|
|
169
174
|
loanBorrowerCount: g,
|
|
170
175
|
loanCallouts: A,
|
|
@@ -176,7 +181,9 @@ const no = a`
|
|
|
176
181
|
tag: y,
|
|
177
182
|
unreservedAmount: C,
|
|
178
183
|
sharesAvailable: O,
|
|
179
|
-
clickReadMore:
|
|
184
|
+
clickReadMore: T,
|
|
185
|
+
locationRef: M,
|
|
186
|
+
isLocationTruncated: R
|
|
180
187
|
};
|
|
181
188
|
},
|
|
182
189
|
computed: {
|
|
@@ -201,7 +208,7 @@ const no = a`
|
|
|
201
208
|
amountLent() {
|
|
202
209
|
var t, e;
|
|
203
210
|
const o = ((e = (t = this.loan) == null ? void 0 : t.loanFundraisingInfo) == null ? void 0 : e.fundedAmount) ?? 0;
|
|
204
|
-
return
|
|
211
|
+
return F(o).format("$0,0");
|
|
205
212
|
},
|
|
206
213
|
isFunded() {
|
|
207
214
|
var o;
|
|
@@ -210,7 +217,7 @@ const no = a`
|
|
|
210
217
|
}
|
|
211
218
|
};
|
|
212
219
|
export {
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
220
|
+
mo as KV_INTRODUCTION_LOAN_CARD_FRAGMENT,
|
|
221
|
+
fo as KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT,
|
|
222
|
+
co as default
|
|
216
223
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-active-hover[data-v-
|
|
1
|
+
.loan-card-active-hover[data-v-9cc15ed7]:hover{cursor:pointer}.loan-card-use[data-v-9cc15ed7]:hover,.loan-card-use[data-v-9cc15ed7]: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-9cc15ed7]{text-decoration-line:underline}.loan-card-progress[data-v-9cc15ed7]:hover,.loan-card-progress[data-v-9cc15ed7]:focus{text-decoration-line:none}
|