@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,14 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { LOAN_GEOCODE_FRAGMENT as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
1
|
+
import K from "graphql-tag";
|
|
2
|
+
import { LOAN_GEOCODE_FRAGMENT as z, loanCardComputedProperties as D, loanCardMethods as I, useLocationTruncation as W } from "../utils/loanCard.js";
|
|
3
|
+
import F from "./KvLoanUse.js";
|
|
4
|
+
import E from "./KvBorrowerImage.js";
|
|
5
|
+
import O from "./KvMaterialIcon.js";
|
|
6
|
+
import V from "./KvLoadingPlaceholder.js";
|
|
7
|
+
import U from "./KvTooltip.js";
|
|
8
|
+
import { resolveComponent as s, openBlock as e, createElementBlock as i, normalizeStyle as G, normalizeClass as k, createElementVNode as l, createBlock as c, resolveDynamicComponent as y, withCtx as w, createVNode as m, toDisplayString as b, createTextVNode as H, createCommentVNode as L, Fragment as q, renderList as j, withModifiers as J } from "vue";
|
|
8
9
|
import "./KvLoanInfoCard.css";
|
|
9
|
-
import
|
|
10
|
-
import { KV_LOAN_USE_FRAGMENT as
|
|
11
|
-
const
|
|
10
|
+
import Q from "../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
+
import { KV_LOAN_USE_FRAGMENT as X } from "./KvLoanUse2.js";
|
|
12
|
+
const bt = K`
|
|
12
13
|
fragment KvLoanInfoCard on LoanBasic {
|
|
13
14
|
id
|
|
14
15
|
gender
|
|
@@ -20,15 +21,16 @@ const fe = B`
|
|
|
20
21
|
...KvLoanUse
|
|
21
22
|
...LoanGeocode
|
|
22
23
|
}
|
|
23
|
-
${
|
|
24
|
-
${
|
|
25
|
-
`,
|
|
24
|
+
${X}
|
|
25
|
+
${z}
|
|
26
|
+
`, Y = {
|
|
26
27
|
name: "KvLoanInfoCard",
|
|
27
28
|
components: {
|
|
28
|
-
KvBorrowerImage:
|
|
29
|
-
KvLoadingPlaceholder:
|
|
30
|
-
KvLoanUse:
|
|
31
|
-
KvMaterialIcon:
|
|
29
|
+
KvBorrowerImage: E,
|
|
30
|
+
KvLoadingPlaceholder: V,
|
|
31
|
+
KvLoanUse: F,
|
|
32
|
+
KvMaterialIcon: O,
|
|
33
|
+
KvTooltip: U
|
|
32
34
|
},
|
|
33
35
|
props: {
|
|
34
36
|
loanId: {
|
|
@@ -76,49 +78,54 @@ const fe = B`
|
|
|
76
78
|
default: ""
|
|
77
79
|
}
|
|
78
80
|
},
|
|
79
|
-
setup(
|
|
81
|
+
setup(h, { emit: a }) {
|
|
80
82
|
const {
|
|
81
83
|
allDataLoaded: o,
|
|
82
|
-
borrowerName:
|
|
83
|
-
city:
|
|
84
|
+
borrowerName: t,
|
|
85
|
+
city: x,
|
|
84
86
|
countryName: n,
|
|
85
87
|
distributionModel: d,
|
|
86
|
-
formattedLocation:
|
|
87
|
-
imageHash:
|
|
88
|
-
isLoading:
|
|
89
|
-
loanAmount:
|
|
90
|
-
loanBorrowerCount:
|
|
91
|
-
loanStatus:
|
|
92
|
-
loanUse:
|
|
93
|
-
mdiMapMarker:
|
|
94
|
-
readMorePath:
|
|
95
|
-
state:
|
|
96
|
-
tag:
|
|
97
|
-
unreservedAmount:
|
|
98
|
-
sharesAvailable:
|
|
99
|
-
} =
|
|
100
|
-
clickReadMore:
|
|
101
|
-
} =
|
|
88
|
+
formattedLocation: u,
|
|
89
|
+
imageHash: f,
|
|
90
|
+
isLoading: g,
|
|
91
|
+
loanAmount: _,
|
|
92
|
+
loanBorrowerCount: r,
|
|
93
|
+
loanStatus: v,
|
|
94
|
+
loanUse: p,
|
|
95
|
+
mdiMapMarker: C,
|
|
96
|
+
readMorePath: M,
|
|
97
|
+
state: N,
|
|
98
|
+
tag: S,
|
|
99
|
+
unreservedAmount: A,
|
|
100
|
+
sharesAvailable: P
|
|
101
|
+
} = D(h), {
|
|
102
|
+
clickReadMore: R
|
|
103
|
+
} = I(h, a), {
|
|
104
|
+
locationRef: T,
|
|
105
|
+
isLocationTruncated: B
|
|
106
|
+
} = W();
|
|
102
107
|
return {
|
|
103
108
|
allDataLoaded: o,
|
|
104
|
-
borrowerName:
|
|
105
|
-
city:
|
|
109
|
+
borrowerName: t,
|
|
110
|
+
city: x,
|
|
106
111
|
countryName: n,
|
|
107
112
|
distributionModel: d,
|
|
108
|
-
formattedLocation:
|
|
109
|
-
imageHash:
|
|
110
|
-
isLoading:
|
|
111
|
-
loanAmount:
|
|
112
|
-
loanBorrowerCount:
|
|
113
|
-
loanStatus:
|
|
114
|
-
loanUse:
|
|
115
|
-
mdiMapMarker:
|
|
116
|
-
readMorePath:
|
|
117
|
-
state:
|
|
118
|
-
tag:
|
|
119
|
-
unreservedAmount:
|
|
120
|
-
sharesAvailable:
|
|
121
|
-
clickReadMore:
|
|
113
|
+
formattedLocation: u,
|
|
114
|
+
imageHash: f,
|
|
115
|
+
isLoading: g,
|
|
116
|
+
loanAmount: _,
|
|
117
|
+
loanBorrowerCount: r,
|
|
118
|
+
loanStatus: v,
|
|
119
|
+
loanUse: p,
|
|
120
|
+
mdiMapMarker: C,
|
|
121
|
+
readMorePath: M,
|
|
122
|
+
state: N,
|
|
123
|
+
tag: S,
|
|
124
|
+
unreservedAmount: A,
|
|
125
|
+
sharesAvailable: P,
|
|
126
|
+
clickReadMore: R,
|
|
127
|
+
locationRef: T,
|
|
128
|
+
isLocationTruncated: B
|
|
122
129
|
};
|
|
123
130
|
},
|
|
124
131
|
computed: {
|
|
@@ -141,90 +148,105 @@ const fe = B`
|
|
|
141
148
|
];
|
|
142
149
|
}
|
|
143
150
|
}
|
|
144
|
-
},
|
|
151
|
+
}, Z = { class: "tw-grow" }, $ = { class: "loan-card-active-hover tw-h-full tw-flex tw-flex-col" }, tt = {
|
|
145
152
|
key: 1,
|
|
146
153
|
class: "tw-relative"
|
|
147
|
-
},
|
|
148
|
-
class: "tw-absolute tw-bottom-1 tw-left-1 tw-text-primary tw-bg-white tw-rounded tw-p-1 tw-mb-0 tw-
|
|
149
|
-
style: { padding: "2px 6px", "text-transform": "capitalize" }
|
|
150
|
-
},
|
|
154
|
+
}, et = { key: 0 }, ot = {
|
|
155
|
+
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",
|
|
156
|
+
style: { padding: "2px 6px", "text-transform": "capitalize", "max-width": "calc(100% - 1rem)" }
|
|
157
|
+
}, at = ["id"], rt = { class: "tw-mb-1.5 tw-pt-1" }, it = {
|
|
151
158
|
key: 0,
|
|
152
159
|
class: "tw-w-full",
|
|
153
160
|
style: { height: "5.5rem" }
|
|
154
|
-
},
|
|
161
|
+
}, nt = { key: 1 }, lt = { class: "tw-mt-1" }, dt = {
|
|
155
162
|
key: 0,
|
|
156
163
|
class: "tw-w-full",
|
|
157
164
|
style: { height: "1rem" }
|
|
158
165
|
};
|
|
159
|
-
function
|
|
160
|
-
const d =
|
|
161
|
-
return
|
|
162
|
-
class:
|
|
166
|
+
function st(h, a, o, t, x, n) {
|
|
167
|
+
const d = s("kv-loading-placeholder"), u = s("kv-borrower-image"), f = s("kv-material-icon"), g = s("kv-tooltip"), _ = s("kv-loan-use");
|
|
168
|
+
return e(), i("div", {
|
|
169
|
+
class: k(["tw-flex tw-flex-col tw-bg-white tw-rounded tw-h-full tw-w-full tw-pb-1 tw-p-1", { "tw-pointer-events-none": t.isLoading }]),
|
|
163
170
|
"data-testid": "loan-card",
|
|
164
|
-
style:
|
|
171
|
+
style: G([{ "box-shadow": "0 4px 12px rgba(0, 0, 0, 0.08)" }, { minWidth: "230px", maxWidth: n.cardWidth }])
|
|
165
172
|
}, [
|
|
166
|
-
l("div",
|
|
167
|
-
l("div",
|
|
168
|
-
|
|
173
|
+
l("div", Z, [
|
|
174
|
+
l("div", $, [
|
|
175
|
+
t.isLoading ? (e(), c(d, {
|
|
169
176
|
key: 0,
|
|
170
|
-
class:
|
|
177
|
+
class: k(["tw-mb-1 tw-w-full", { "tw-rounded-t-sm tw-rounded-b-none": o.largeCard, "!tw-rounded-sm": !o.largeCard }]),
|
|
171
178
|
style: { height: "15rem" }
|
|
172
|
-
}, null, 8, ["class"])) : (
|
|
173
|
-
(
|
|
174
|
-
to:
|
|
175
|
-
href:
|
|
179
|
+
}, null, 8, ["class"])) : (e(), i("div", tt, [
|
|
180
|
+
(e(), c(y(t.tag), {
|
|
181
|
+
to: t.readMorePath,
|
|
182
|
+
href: t.readMorePath,
|
|
176
183
|
class: "tw-flex",
|
|
177
184
|
"aria-label": "Borrower image",
|
|
178
|
-
onClick: a[0] || (a[0] = (r) =>
|
|
185
|
+
onClick: a[0] || (a[0] = (r) => t.clickReadMore("Photo", r))
|
|
179
186
|
}, {
|
|
180
|
-
default:
|
|
181
|
-
|
|
182
|
-
class:
|
|
183
|
-
alt: `Photo of ${
|
|
187
|
+
default: w(() => [
|
|
188
|
+
m(u, {
|
|
189
|
+
class: k(["tw-relative tw-w-full tw-bg-black tw-bg-clip-content", { "tw-rounded-t-sm": o.largeCard, "tw-rounded-sm": !o.largeCard }]),
|
|
190
|
+
alt: `Photo of ${t.borrowerName}`,
|
|
184
191
|
"aspect-ratio": n.imageAspectRatio,
|
|
185
192
|
"default-image": { width: n.imageDefaultWidth },
|
|
186
|
-
hash:
|
|
193
|
+
hash: t.imageHash,
|
|
187
194
|
images: n.imageSizes,
|
|
188
195
|
"photo-path": o.photoPath
|
|
189
196
|
}, null, 8, ["class", "alt", "aspect-ratio", "default-image", "hash", "images", "photo-path"]),
|
|
190
|
-
|
|
191
|
-
l("p",
|
|
192
|
-
|
|
193
|
-
class: "tw-h-2 tw-w-2",
|
|
194
|
-
icon:
|
|
197
|
+
t.countryName ? (e(), i("div", et, [
|
|
198
|
+
l("p", ot, [
|
|
199
|
+
m(f, {
|
|
200
|
+
class: "tw-h-2 tw-w-2 tw-flex-shrink-0",
|
|
201
|
+
icon: t.mdiMapMarker
|
|
195
202
|
}, null, 8, ["icon"]),
|
|
196
|
-
l("span",
|
|
203
|
+
l("span", {
|
|
204
|
+
id: `loan-location-${o.loanId}`,
|
|
205
|
+
ref: "locationRef",
|
|
206
|
+
class: "tw-truncate tw-min-w-0",
|
|
207
|
+
style: { "margin-top": "0.125rem" }
|
|
208
|
+
}, b(t.formattedLocation), 9, at),
|
|
209
|
+
t.isLocationTruncated ? (e(), c(g, {
|
|
210
|
+
key: 0,
|
|
211
|
+
controller: `loan-location-${o.loanId}`,
|
|
212
|
+
"max-width": "250px"
|
|
213
|
+
}, {
|
|
214
|
+
default: w(() => [
|
|
215
|
+
H(b(t.formattedLocation), 1)
|
|
216
|
+
]),
|
|
217
|
+
_: 1
|
|
218
|
+
}, 8, ["controller"])) : L("", !0)
|
|
197
219
|
])
|
|
198
|
-
])) :
|
|
220
|
+
])) : L("", !0)
|
|
199
221
|
]),
|
|
200
222
|
_: 1
|
|
201
223
|
}, 8, ["to", "href"]))
|
|
202
224
|
])),
|
|
203
|
-
(
|
|
204
|
-
to:
|
|
205
|
-
href:
|
|
225
|
+
(e(), c(y(t.tag), {
|
|
226
|
+
to: t.readMorePath,
|
|
227
|
+
href: t.readMorePath,
|
|
206
228
|
class: "loan-card-use tw-no-underline tw-text-primary",
|
|
207
229
|
"aria-label": "Loan use",
|
|
208
|
-
onClick: a[1] || (a[1] = (r) =>
|
|
230
|
+
onClick: a[1] || (a[1] = (r) => t.clickReadMore("Use", r))
|
|
209
231
|
}, {
|
|
210
|
-
default:
|
|
211
|
-
l("div",
|
|
212
|
-
|
|
213
|
-
(
|
|
214
|
-
key:
|
|
232
|
+
default: w(() => [
|
|
233
|
+
l("div", rt, [
|
|
234
|
+
t.isLoading ? (e(), i("div", it, [
|
|
235
|
+
(e(!0), i(q, null, j([...Array(4)], (r, v) => (e(), i("div", {
|
|
236
|
+
key: v,
|
|
215
237
|
class: "tw-h-2 tw-mb-1"
|
|
216
238
|
}, [
|
|
217
|
-
|
|
239
|
+
m(d)
|
|
218
240
|
]))), 128))
|
|
219
|
-
])) : (
|
|
220
|
-
|
|
221
|
-
use:
|
|
241
|
+
])) : (e(), i("div", nt, [
|
|
242
|
+
m(_, {
|
|
243
|
+
use: t.loanUse,
|
|
222
244
|
"hide-loan-amount": !0,
|
|
223
|
-
"loan-amount":
|
|
224
|
-
status:
|
|
225
|
-
"borrower-count":
|
|
226
|
-
name:
|
|
227
|
-
"distribution-model":
|
|
245
|
+
"loan-amount": t.loanAmount,
|
|
246
|
+
status: t.loanStatus,
|
|
247
|
+
"borrower-count": t.loanBorrowerCount,
|
|
248
|
+
name: t.borrowerName,
|
|
249
|
+
"distribution-model": t.distributionModel,
|
|
228
250
|
"use-indicative-help-text": !0
|
|
229
251
|
}, null, 8, ["use", "loan-amount", "status", "borrower-count", "name", "distribution-model"])
|
|
230
252
|
]))
|
|
@@ -232,20 +254,20 @@ function re(w, a, o, e, y, n) {
|
|
|
232
254
|
]),
|
|
233
255
|
_: 1
|
|
234
256
|
}, 8, ["to", "href"])),
|
|
235
|
-
(
|
|
236
|
-
to:
|
|
237
|
-
href:
|
|
257
|
+
(e(), c(y(t.tag), {
|
|
258
|
+
to: t.readMorePath,
|
|
259
|
+
href: t.readMorePath,
|
|
238
260
|
class: "loan-card-learn-more tw-no-underline hover:tw-no-underline tw-font-medium tw-text-action hover:tw-text-action-highlight tw-mt-auto",
|
|
239
261
|
"aria-label": o.primaryLinkText,
|
|
240
|
-
onClick: a[3] || (a[3] = (r) =>
|
|
262
|
+
onClick: a[3] || (a[3] = (r) => t.clickReadMore(o.primaryLinkText, r))
|
|
241
263
|
}, {
|
|
242
|
-
default:
|
|
243
|
-
l("div",
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
])) : (
|
|
264
|
+
default: w(() => [
|
|
265
|
+
l("div", lt, [
|
|
266
|
+
t.isLoading ? (e(), i("div", dt, [
|
|
267
|
+
m(d)
|
|
268
|
+
])) : (e(), i("div", {
|
|
247
269
|
key: 1,
|
|
248
|
-
onClick: a[2] || (a[2] =
|
|
270
|
+
onClick: a[2] || (a[2] = J((r) => t.clickReadMore("ViewLoan", r), ["prevent"]))
|
|
249
271
|
}, b(o.primaryLinkText), 1))
|
|
250
272
|
])
|
|
251
273
|
]),
|
|
@@ -255,8 +277,8 @@ function re(w, a, o, e, y, n) {
|
|
|
255
277
|
])
|
|
256
278
|
], 6);
|
|
257
279
|
}
|
|
258
|
-
const
|
|
280
|
+
const xt = /* @__PURE__ */ Q(Y, [["render", st], ["__scopeId", "data-v-9cc15ed7"]]);
|
|
259
281
|
export {
|
|
260
|
-
|
|
261
|
-
|
|
282
|
+
bt as KV_LOAN_INFO_CARD_FRAGMENT,
|
|
283
|
+
xt as default
|
|
262
284
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-use[data-v-
|
|
1
|
+
.loan-card-use[data-v-de4628d8]:hover,.loan-card-use[data-v-de4628d8]: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-de4628d8]{text-decoration-line:underline}.loan-card-progress[data-v-de4628d8],.loan-card-progress[data-v-de4628d8]:hover,.loan-card-progress[data-v-de4628d8]:focus{text-decoration-line:none}.loan-callouts[data-v-de4628d8] div{height:auto;flex-wrap:wrap}
|
|
@@ -1,43 +1,43 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { KV_WIDE_LOAN_CARD_FRAGMENT as
|
|
3
|
-
import { resolveComponent as
|
|
1
|
+
import D from "./KvWideLoanCard2.js";
|
|
2
|
+
import { KV_WIDE_LOAN_CARD_FRAGMENT as ee, KV_WIDE_LOAN_CARD_USER_FRAGMENT as te } from "./KvWideLoanCard2.js";
|
|
3
|
+
import { resolveComponent as i, openBlock as o, createElementBlock as r, normalizeClass as f, createElementVNode as s, createBlock as n, resolveDynamicComponent as k, withCtx as m, createVNode as d, toDisplayString as h, createTextVNode as N, createCommentVNode as w, Fragment as R, renderList as V } from "vue";
|
|
4
4
|
import "./KvWideLoanCard.css";
|
|
5
|
-
import
|
|
6
|
-
const
|
|
5
|
+
import B from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const T = { class: "loan-card-active-hover tw-flex-1 tw-min-w-[275px] md:tw-min-w-[320px] md:tw-max-w-[320px]" }, E = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "tw-relative tw-w-full"
|
|
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
|
+
}, I = { key: 0 }, S = {
|
|
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
|
+
}, F = ["id"], W = { class: "tw-flex tw-flex-col tw-flex-1 tw-px-1" }, z = { class: "tw-hidden md:tw-inline-block tw-text-title" }, K = { class: "tw-pt-1" }, U = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "tw-w-full",
|
|
15
15
|
style: { height: "5.5rem" }
|
|
16
|
-
},
|
|
16
|
+
}, G = { key: 1 }, O = { class: "tw-flex tw-flex-row tw-justify-between tw-gap-1 md:tw-gap-3" }, j = {
|
|
17
17
|
key: 0,
|
|
18
18
|
class: "tw-w-full tw-pt-1 tw-pr-1"
|
|
19
19
|
};
|
|
20
|
-
function
|
|
21
|
-
const
|
|
22
|
-
return o(),
|
|
23
|
-
class:
|
|
20
|
+
function H(_, a, t, e, q, g) {
|
|
21
|
+
const c = i("kv-loading-placeholder"), v = i("kv-borrower-image"), u = i("kv-material-icon"), b = i("kv-tooltip"), x = i("kv-loan-bookmark"), y = i("kv-loan-tag"), L = i("kv-loan-use"), M = i("kv-loan-callouts"), C = i("kv-loan-progress-group"), A = i("kv-lend-cta");
|
|
22
|
+
return o(), r("div", {
|
|
23
|
+
class: f(["tw-flex tw-flex-row tw-flex-wrap tw-bg-white tw-rounded tw-w-full tw-pb-1 tw-p-1 tw-gap-1 tw-items-center", { "tw-pointer-events-none": e.isLoading }]),
|
|
24
24
|
"data-testid": "loan-card",
|
|
25
25
|
style: { "box-shadow": "0 4px 12px rgba(0, 0, 0, 0.08)" }
|
|
26
26
|
}, [
|
|
27
|
-
s("div",
|
|
28
|
-
e.isLoading ? (o(), n(
|
|
27
|
+
s("div", T, [
|
|
28
|
+
e.isLoading ? (o(), n(c, {
|
|
29
29
|
key: 0,
|
|
30
30
|
class: "tw-mb-1 tw-w-full tw-rounded",
|
|
31
31
|
style: { height: "15rem" }
|
|
32
|
-
})) : (o(),
|
|
33
|
-
(o(), n(
|
|
32
|
+
})) : (o(), r("div", E, [
|
|
33
|
+
(o(), n(k(e.tag), {
|
|
34
34
|
to: e.readMorePath,
|
|
35
35
|
href: e.readMorePath,
|
|
36
36
|
class: "tw-flex",
|
|
37
37
|
"aria-label": "Borrower image",
|
|
38
38
|
onClick: a[0] || (a[0] = (l) => e.clickReadMore("Photo", l))
|
|
39
39
|
}, {
|
|
40
|
-
default:
|
|
40
|
+
default: m(() => [
|
|
41
41
|
d(v, {
|
|
42
42
|
class: "tw-relative tw-w-full tw-bg-black tw-rounded-sm tw-bg-clip-content",
|
|
43
43
|
alt: `Photo of ${e.borrowerName}`,
|
|
@@ -47,65 +47,80 @@ function O(h, a, t, e, j, g) {
|
|
|
47
47
|
images: g.imageSizes,
|
|
48
48
|
"photo-path": t.photoPath
|
|
49
49
|
}, null, 8, ["alt", "aspect-ratio", "default-image", "hash", "images", "photo-path"]),
|
|
50
|
-
e.countryName ? (o(),
|
|
51
|
-
s("p",
|
|
50
|
+
e.countryName ? (o(), r("div", I, [
|
|
51
|
+
s("p", S, [
|
|
52
52
|
d(u, {
|
|
53
|
-
class: "tw-h-2 tw-w-2",
|
|
53
|
+
class: "tw-h-2 tw-w-2 tw-flex-shrink-0",
|
|
54
54
|
icon: e.mdiMapMarker
|
|
55
55
|
}, null, 8, ["icon"]),
|
|
56
|
-
s("span",
|
|
56
|
+
s("span", {
|
|
57
|
+
id: `loan-location-${t.loanId}`,
|
|
58
|
+
ref: "locationRef",
|
|
59
|
+
class: "tw-truncate tw-min-w-0",
|
|
60
|
+
style: { "margin-top": "0.125rem" }
|
|
61
|
+
}, h(e.formattedLocation), 9, F),
|
|
62
|
+
e.isLocationTruncated ? (o(), n(b, {
|
|
63
|
+
key: 0,
|
|
64
|
+
controller: `loan-location-${t.loanId}`,
|
|
65
|
+
"max-width": "250px"
|
|
66
|
+
}, {
|
|
67
|
+
default: m(() => [
|
|
68
|
+
N(h(e.formattedLocation), 1)
|
|
69
|
+
]),
|
|
70
|
+
_: 1
|
|
71
|
+
}, 8, ["controller"])) : w("", !0)
|
|
57
72
|
])
|
|
58
|
-
])) :
|
|
73
|
+
])) : w("", !0)
|
|
59
74
|
]),
|
|
60
75
|
_: 1
|
|
61
76
|
}, 8, ["to", "href"])),
|
|
62
|
-
t.isVisitor ?
|
|
77
|
+
t.isVisitor ? w("", !0) : (o(), n(x, {
|
|
63
78
|
key: 0,
|
|
64
79
|
"loan-id": t.loanId,
|
|
65
80
|
"is-bookmarked": t.isBookmarked,
|
|
66
81
|
class: "tw-absolute tw-right-1",
|
|
67
82
|
style: { top: "-6px" },
|
|
68
83
|
"data-testid": "loan-card-bookmark",
|
|
69
|
-
onToggleBookmark: a[1] || (a[1] = (l) =>
|
|
84
|
+
onToggleBookmark: a[1] || (a[1] = (l) => _.$emit("toggle-bookmark"))
|
|
70
85
|
}, null, 8, ["loan-id", "is-bookmarked"]))
|
|
71
86
|
]))
|
|
72
87
|
]),
|
|
73
|
-
s("div",
|
|
74
|
-
s("h3",
|
|
75
|
-
(o(), n(
|
|
88
|
+
s("div", W, [
|
|
89
|
+
s("h3", z, h(e.borrowerName), 1),
|
|
90
|
+
(o(), n(k(e.tag), {
|
|
76
91
|
to: e.readMorePath,
|
|
77
92
|
href: e.readMorePath,
|
|
78
93
|
class: "tw-flex tw-no-underline hover:tw-no-underline focus:tw-no-underline",
|
|
79
94
|
"aria-label": "Loan tag",
|
|
80
95
|
onClick: a[2] || (a[2] = (l) => e.clickReadMore("Tag", l))
|
|
81
96
|
}, {
|
|
82
|
-
default:
|
|
83
|
-
t.showTags && !e.isLoading ? (o(), n(
|
|
97
|
+
default: m(() => [
|
|
98
|
+
t.showTags && !e.isLoading ? (o(), n(y, {
|
|
84
99
|
key: 0,
|
|
85
100
|
loan: t.loan,
|
|
86
101
|
"enable-multi-matching": t.enableMultiMatching
|
|
87
|
-
}, null, 8, ["loan", "enable-multi-matching"])) :
|
|
102
|
+
}, null, 8, ["loan", "enable-multi-matching"])) : w("", !0)
|
|
88
103
|
]),
|
|
89
104
|
_: 1
|
|
90
105
|
}, 8, ["to", "href"])),
|
|
91
|
-
(o(), n(
|
|
106
|
+
(o(), n(k(e.tag), {
|
|
92
107
|
to: e.readMorePath,
|
|
93
108
|
href: e.readMorePath,
|
|
94
109
|
class: "loan-card-use tw-no-underline tw-text-primary",
|
|
95
110
|
"aria-label": "Loan use",
|
|
96
111
|
onClick: a[3] || (a[3] = (l) => e.clickReadMore("Use", l))
|
|
97
112
|
}, {
|
|
98
|
-
default:
|
|
99
|
-
s("div",
|
|
100
|
-
e.isLoading ? (o(),
|
|
101
|
-
(o(!0),
|
|
102
|
-
key:
|
|
113
|
+
default: m(() => [
|
|
114
|
+
s("div", K, [
|
|
115
|
+
e.isLoading ? (o(), r("div", U, [
|
|
116
|
+
(o(!0), r(R, null, V([...Array(4)], (l, P) => (o(), r("div", {
|
|
117
|
+
key: P,
|
|
103
118
|
class: "tw-h-2 tw-mb-1"
|
|
104
119
|
}, [
|
|
105
|
-
d(
|
|
120
|
+
d(c)
|
|
106
121
|
]))), 128))
|
|
107
|
-
])) : (o(),
|
|
108
|
-
d(
|
|
122
|
+
])) : (o(), r("div", G, [
|
|
123
|
+
d(L, {
|
|
109
124
|
use: e.loanUse,
|
|
110
125
|
"loan-amount": e.loanAmount,
|
|
111
126
|
status: e.loanStatus,
|
|
@@ -118,27 +133,27 @@ function O(h, a, t, e, j, g) {
|
|
|
118
133
|
]),
|
|
119
134
|
_: 1
|
|
120
135
|
}, 8, ["to", "href"])),
|
|
121
|
-
e.isLoading || typeof e.loanCallouts > "u" ? (o(), n(
|
|
136
|
+
e.isLoading || typeof e.loanCallouts > "u" ? (o(), n(c, {
|
|
122
137
|
key: 0,
|
|
123
138
|
class: "tw-mt-1.5 tw-mb-1",
|
|
124
139
|
style: { width: "60%", height: "1.75rem", "border-radius": "500rem" }
|
|
125
|
-
})) : (o(), n(
|
|
140
|
+
})) : (o(), n(M, {
|
|
126
141
|
key: 1,
|
|
127
142
|
callouts: e.loanCallouts,
|
|
128
143
|
class: "loan-callouts tw-my-1.5"
|
|
129
144
|
}, null, 8, ["callouts"])),
|
|
130
|
-
s("div",
|
|
131
|
-
e.hasProgressData ?
|
|
132
|
-
d(
|
|
145
|
+
s("div", O, [
|
|
146
|
+
e.hasProgressData ? w("", !0) : (o(), r("div", j, [
|
|
147
|
+
d(c, {
|
|
133
148
|
class: "tw-mb-0.5",
|
|
134
149
|
style: { width: "70%", height: "1.3rem" }
|
|
135
150
|
}),
|
|
136
|
-
d(
|
|
151
|
+
d(c, {
|
|
137
152
|
class: "tw-rounded",
|
|
138
153
|
style: { width: "70%", height: "0.5rem" }
|
|
139
154
|
})
|
|
140
155
|
])),
|
|
141
|
-
e.sharesAvailable ? (o(), n(
|
|
156
|
+
e.sharesAvailable ? (o(), n(k(e.tag), {
|
|
142
157
|
key: 1,
|
|
143
158
|
to: e.readMorePath,
|
|
144
159
|
href: e.readMorePath,
|
|
@@ -146,8 +161,8 @@ function O(h, a, t, e, j, g) {
|
|
|
146
161
|
"aria-label": "Loan progress",
|
|
147
162
|
onClick: a[4] || (a[4] = (l) => e.clickReadMore("Progress", l))
|
|
148
163
|
}, {
|
|
149
|
-
default:
|
|
150
|
-
d(
|
|
164
|
+
default: m(() => [
|
|
165
|
+
d(C, {
|
|
151
166
|
id: "loanProgress",
|
|
152
167
|
"money-left": e.unreservedAmount,
|
|
153
168
|
"progress-percent": e.fundraisingPercent,
|
|
@@ -155,8 +170,8 @@ function O(h, a, t, e, j, g) {
|
|
|
155
170
|
}, null, 8, ["money-left", "progress-percent"])
|
|
156
171
|
]),
|
|
157
172
|
_: 1
|
|
158
|
-
}, 8, ["to", "href"])) :
|
|
159
|
-
e.allDataLoaded ? (o(), n(
|
|
173
|
+
}, 8, ["to", "href"])) : w("", !0),
|
|
174
|
+
e.allDataLoaded ? (o(), n(A, {
|
|
160
175
|
key: 3,
|
|
161
176
|
loan: t.loan,
|
|
162
177
|
"unreserved-amount": e.unreservedAmount,
|
|
@@ -174,10 +189,10 @@ function O(h, a, t, e, j, g) {
|
|
|
174
189
|
"get-cookie": t.getCookie,
|
|
175
190
|
"set-cookie": t.setCookie,
|
|
176
191
|
"is-visitor": t.isVisitor,
|
|
177
|
-
class:
|
|
178
|
-
onAddToBasket: a[5] || (a[5] = (l) =>
|
|
192
|
+
class: f(["tw-mt-auto tw-self-end", { "tw-flex-grow": !e.sharesAvailable, "tw-flex-shrink-0": e.sharesAvailable }]),
|
|
193
|
+
onAddToBasket: a[5] || (a[5] = (l) => _.$emit("add-to-basket", l)),
|
|
179
194
|
onShowLoanDetails: a[6] || (a[6] = (l) => e.clickReadMore("ViewLoan", l))
|
|
180
|
-
}, null, 8, ["loan", "unreserved-amount", "basket-items", "is-loading", "is-adding", "enable-five-dollars-notes", "five-dollars-selected", "kv-track-function", "show-view-loan", "custom-loan-details", "external-links", "route", "user-balance", "get-cookie", "set-cookie", "is-visitor", "class"])) : (o(), n(
|
|
195
|
+
}, null, 8, ["loan", "unreserved-amount", "basket-items", "is-loading", "is-adding", "enable-five-dollars-notes", "five-dollars-selected", "kv-track-function", "show-view-loan", "custom-loan-details", "external-links", "route", "user-balance", "get-cookie", "set-cookie", "is-visitor", "class"])) : (o(), n(c, {
|
|
181
196
|
key: 2,
|
|
182
197
|
class: "tw-rounded tw-self-start",
|
|
183
198
|
style: { width: "9rem", height: "3rem" }
|
|
@@ -186,9 +201,9 @@ function O(h, a, t, e, j, g) {
|
|
|
186
201
|
])
|
|
187
202
|
], 2);
|
|
188
203
|
}
|
|
189
|
-
const
|
|
204
|
+
const Z = /* @__PURE__ */ B(D, [["render", H], ["__scopeId", "data-v-de4628d8"]]);
|
|
190
205
|
export {
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
206
|
+
ee as KV_WIDE_LOAN_CARD_FRAGMENT,
|
|
207
|
+
te as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
|
|
208
|
+
Z as default
|
|
194
209
|
};
|