@kiva/kv-components 8.15.1 → 8.16.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/vue/KvClassicLoanCard.css +1 -1
- package/dist/vue/KvClassicLoanCard.js +4 -3
- package/dist/vue/KvClassicLoanCard.vue.d.ts +22 -0
- package/dist/vue/KvClassicLoanCard2.js +24 -20
- package/dist/vue/KvCompactLoanCard.css +1 -1
- package/dist/vue/KvCompactLoanCard.js +32 -31
- package/dist/vue/KvCompactLoanCard.vue.d.ts +23 -0
- package/dist/vue/KvCompactLoanCard2.js +65 -57
- package/dist/vue/KvIntroductionLoanCard.css +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +9 -8
- package/dist/vue/KvIntroductionLoanCard.vue.d.ts +22 -0
- package/dist/vue/KvIntroductionLoanCard2.js +26 -22
- package/dist/vue/KvLoanTag.js +39 -18
- package/dist/vue/KvLoanTag.vue.d.ts +13 -0
- package/dist/vue/KvLoanTag2.js +53 -28
- package/dist/vue/KvWideLoanCard.css +1 -1
- package/dist/vue/KvWideLoanCard.js +4 -3
- package/dist/vue/KvWideLoanCard.vue.d.ts +22 -0
- package/dist/vue/KvWideLoanCard2.js +22 -18
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-use[data-v-
|
|
1
|
+
.loan-card-use[data-v-fd8e79ee]:hover,.loan-card-use[data-v-fd8e79ee]: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-fd8e79ee]{text-decoration-line:underline}.loan-card-progress[data-v-fd8e79ee]:hover,.loan-card-progress[data-v-fd8e79ee]:focus{text-decoration-line:none}
|
|
@@ -88,8 +88,9 @@ function O(u, a, e, t, q, c) {
|
|
|
88
88
|
default: v(() => [
|
|
89
89
|
e.showTags && !t.isLoading ? (o(), n(x, {
|
|
90
90
|
key: 0,
|
|
91
|
-
loan: e.loan
|
|
92
|
-
|
|
91
|
+
loan: e.loan,
|
|
92
|
+
"enable-multi-matching": e.enableMultiMatching
|
|
93
|
+
}, null, 8, ["loan", "enable-multi-matching"])) : w("", !0)
|
|
93
94
|
]),
|
|
94
95
|
_: 1
|
|
95
96
|
}, 8, ["to", "href", "class"])),
|
|
@@ -231,7 +232,7 @@ function O(u, a, e, t, q, c) {
|
|
|
231
232
|
])) : w("", !0)
|
|
232
233
|
], 6);
|
|
233
234
|
}
|
|
234
|
-
const Z = /* @__PURE__ */ S(D, [["render", O], ["__scopeId", "data-v-
|
|
235
|
+
const Z = /* @__PURE__ */ S(D, [["render", O], ["__scopeId", "data-v-fd8e79ee"]]);
|
|
235
236
|
export {
|
|
236
237
|
ee as KV_CLASSIC_LOAN_CARD_FRAGMENT,
|
|
237
238
|
te as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
|
|
@@ -124,6 +124,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
124
124
|
type: StringConstructor;
|
|
125
125
|
default: string;
|
|
126
126
|
};
|
|
127
|
+
enableMultiMatching: {
|
|
128
|
+
type: BooleanConstructor;
|
|
129
|
+
default: boolean;
|
|
130
|
+
};
|
|
127
131
|
}>, {
|
|
128
132
|
allDataLoaded: import('vue').ComputedRef<boolean>;
|
|
129
133
|
borrowerName: import('vue').ComputedRef<any>;
|
|
@@ -280,6 +284,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
280
284
|
type: StringConstructor;
|
|
281
285
|
default: string;
|
|
282
286
|
};
|
|
287
|
+
enableMultiMatching: {
|
|
288
|
+
type: BooleanConstructor;
|
|
289
|
+
default: boolean;
|
|
290
|
+
};
|
|
283
291
|
}>> & Readonly<{}>, {
|
|
284
292
|
loan: Record<string, any>;
|
|
285
293
|
externalLinks: boolean;
|
|
@@ -302,6 +310,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
302
310
|
secondaryButtonText: string;
|
|
303
311
|
secondaryButtonHandler: Function;
|
|
304
312
|
isBookmarked: boolean;
|
|
313
|
+
enableMultiMatching: boolean;
|
|
305
314
|
combinedActivities: CombinedActivity[];
|
|
306
315
|
errorMsg: string;
|
|
307
316
|
showTags: boolean;
|
|
@@ -1215,10 +1224,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1215
1224
|
type: BooleanConstructor;
|
|
1216
1225
|
default: boolean;
|
|
1217
1226
|
};
|
|
1227
|
+
enableMultiMatching: {
|
|
1228
|
+
type: BooleanConstructor;
|
|
1229
|
+
default: boolean;
|
|
1230
|
+
};
|
|
1218
1231
|
}>, {}, {}, {
|
|
1219
1232
|
deadline(): Date;
|
|
1220
1233
|
isLseLoan(): any;
|
|
1221
1234
|
amountLeft(): any;
|
|
1235
|
+
multiMatchingOrgs(): any;
|
|
1236
|
+
isMultipleMatch(): boolean;
|
|
1237
|
+
totalMatchRatio(): any;
|
|
1222
1238
|
variation(): string;
|
|
1223
1239
|
tagText(): string;
|
|
1224
1240
|
tagColor(): "#AF741C" | "#CE2626" | "#2B7C5F" | "#CE4A00";
|
|
@@ -1232,8 +1248,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1232
1248
|
type: BooleanConstructor;
|
|
1233
1249
|
default: boolean;
|
|
1234
1250
|
};
|
|
1251
|
+
enableMultiMatching: {
|
|
1252
|
+
type: BooleanConstructor;
|
|
1253
|
+
default: boolean;
|
|
1254
|
+
};
|
|
1235
1255
|
}>> & Readonly<{}>, {
|
|
1236
1256
|
useExpandedStyles: boolean;
|
|
1257
|
+
enableMultiMatching: boolean;
|
|
1237
1258
|
}, {}, {
|
|
1238
1259
|
KvCountdownTimer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1239
1260
|
deadline: {
|
|
@@ -1249,6 +1270,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1249
1270
|
required: true;
|
|
1250
1271
|
};
|
|
1251
1272
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1273
|
+
KvTooltip: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
|
|
1252
1274
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1253
1275
|
KvLoanCallouts: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1254
1276
|
callouts: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { LOAN_CALLOUTS_FRAGMENT as
|
|
4
|
-
import
|
|
1
|
+
import o from "graphql-tag";
|
|
2
|
+
import B from "numeral";
|
|
3
|
+
import { LOAN_CALLOUTS_FRAGMENT as S, LOAN_GEOCODE_FRAGMENT as T, LOAN_PROGRESS_FRAGMENT as M, loanCardComputedProperties as F, loanCardMethods as w } from "../utils/loanCard.js";
|
|
4
|
+
import E from "./KvLoanUse.js";
|
|
5
5
|
import R from "./KvBorrowerImage.js";
|
|
6
6
|
import k from "./KvLoanProgressGroup.js";
|
|
7
7
|
import O from "./KvLoanCallouts.js";
|
|
@@ -17,7 +17,7 @@ import { KV_LOAN_ACTIVITIES_FRAGMENT as W } from "./KvLoanActivities2.js";
|
|
|
17
17
|
import { KV_LOAN_TAG_FRAGMENT as x } from "./KvLoanTag2.js";
|
|
18
18
|
import { KV_LOAN_USE_FRAGMENT as H } from "./KvLoanUse2.js";
|
|
19
19
|
import { KV_LOAN_BOOKMARK_FRAGMENT as q } from "./KvLoanBookmark2.js";
|
|
20
|
-
const pe =
|
|
20
|
+
const pe = o`
|
|
21
21
|
fragment KvClassicLoanCard on LoanBasic {
|
|
22
22
|
id
|
|
23
23
|
gender
|
|
@@ -45,10 +45,10 @@ const pe = a`
|
|
|
45
45
|
${W}
|
|
46
46
|
${x}
|
|
47
47
|
${H}
|
|
48
|
-
${
|
|
48
|
+
${S}
|
|
49
49
|
${T}
|
|
50
|
-
${
|
|
51
|
-
`, ce =
|
|
50
|
+
${M}
|
|
51
|
+
`, ce = o`
|
|
52
52
|
fragment KvClassicLoanCardUser on LoanBasic {
|
|
53
53
|
id
|
|
54
54
|
...KvLendCtaUser
|
|
@@ -61,7 +61,7 @@ const pe = a`
|
|
|
61
61
|
components: {
|
|
62
62
|
KvBorrowerImage: R,
|
|
63
63
|
KvLoadingPlaceholder: I,
|
|
64
|
-
KvLoanUse:
|
|
64
|
+
KvLoanUse: E,
|
|
65
65
|
KvLoanProgressGroup: k,
|
|
66
66
|
KvMaterialIcon: P,
|
|
67
67
|
KvLendCta: G,
|
|
@@ -191,11 +191,15 @@ const pe = a`
|
|
|
191
191
|
customHref: {
|
|
192
192
|
type: String,
|
|
193
193
|
default: ""
|
|
194
|
+
},
|
|
195
|
+
enableMultiMatching: {
|
|
196
|
+
type: Boolean,
|
|
197
|
+
default: !1
|
|
194
198
|
}
|
|
195
199
|
},
|
|
196
200
|
setup(e, { emit: t }) {
|
|
197
201
|
const {
|
|
198
|
-
allDataLoaded:
|
|
202
|
+
allDataLoaded: a,
|
|
199
203
|
borrowerName: r,
|
|
200
204
|
city: n,
|
|
201
205
|
countryName: i,
|
|
@@ -212,15 +216,15 @@ const pe = a`
|
|
|
212
216
|
loanUse: g,
|
|
213
217
|
mdiMapMarker: y,
|
|
214
218
|
readMorePath: C,
|
|
215
|
-
state:
|
|
216
|
-
tag:
|
|
219
|
+
state: h,
|
|
220
|
+
tag: _,
|
|
217
221
|
unreservedAmount: v,
|
|
218
222
|
sharesAvailable: K
|
|
219
|
-
} =
|
|
223
|
+
} = F(e), {
|
|
220
224
|
clickReadMore: N
|
|
221
|
-
} =
|
|
225
|
+
} = w(e, t);
|
|
222
226
|
return {
|
|
223
|
-
allDataLoaded:
|
|
227
|
+
allDataLoaded: a,
|
|
224
228
|
borrowerName: r,
|
|
225
229
|
city: n,
|
|
226
230
|
countryName: i,
|
|
@@ -237,8 +241,8 @@ const pe = a`
|
|
|
237
241
|
loanUse: g,
|
|
238
242
|
mdiMapMarker: y,
|
|
239
243
|
readMorePath: C,
|
|
240
|
-
state:
|
|
241
|
-
tag:
|
|
244
|
+
state: h,
|
|
245
|
+
tag: _,
|
|
242
246
|
unreservedAmount: v,
|
|
243
247
|
sharesAvailable: K,
|
|
244
248
|
clickReadMore: N
|
|
@@ -268,9 +272,9 @@ const pe = a`
|
|
|
268
272
|
return ((t = (e = this.loan) == null ? void 0 : e.lenders) == null ? void 0 : t.totalCount) ?? 0;
|
|
269
273
|
},
|
|
270
274
|
amountLent() {
|
|
271
|
-
var t,
|
|
272
|
-
const e = ((
|
|
273
|
-
return
|
|
275
|
+
var t, a;
|
|
276
|
+
const e = ((a = (t = this.loan) == null ? void 0 : t.loanFundraisingInfo) == null ? void 0 : a.fundedAmount) ?? 0;
|
|
277
|
+
return B(e).format("$0,0");
|
|
274
278
|
}
|
|
275
279
|
}
|
|
276
280
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-use[data-v-
|
|
1
|
+
.loan-card-use[data-v-daea2e7e]:hover,.loan-card-use[data-v-daea2e7e]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-daea2e7e]{text-decoration-line:underline}.loan-card-progress[data-v-daea2e7e]:hover,.loan-card-progress[data-v-daea2e7e]:focus{text-decoration-line:none}.loan-card-use-text[data-v-daea2e7e] p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;text-overflow:ellipsis}.loan-card-cta[data-v-daea2e7e] form,.loan-card-cta[data-v-daea2e7e] fieldset,.loan-card-cta[data-v-daea2e7e] .tw-w-full,.loan-card-cta[data-v-daea2e7e] button{height:40px!important;max-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-daea2e7e] .tw-inline-flex{height:40px!important;max-height:40px!important;min-height:40px!important}[data-v-daea2e7e] .amount-dropdown select{height:2.25rem;--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1));padding-left:.5rem}[data-v-daea2e7e] .goal-variant-callouts span{font-weight:500}.goal-variant-progress-group[data-v-daea2e7e] div[role=progressbar]{background-color:#d9d9d9}
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
import B from "./KvCompactLoanCard2.js";
|
|
2
2
|
import { KV_COMPACT_LOAN_CARD_FRAGMENT as oe, KV_COMPACT_LOAN_CARD_USER_FRAGMENT as le } from "./KvCompactLoanCard2.js";
|
|
3
|
-
import { resolveComponent as w, openBlock as n, createElementBlock as l, normalizeClass as s, createVNode as i, createCommentVNode as m, createElementVNode as r, normalizeStyle as b, createBlock as d, resolveDynamicComponent as
|
|
3
|
+
import { resolveComponent as w, openBlock as n, createElementBlock as l, normalizeClass as s, createVNode as i, createCommentVNode as m, createElementVNode as r, normalizeStyle as b, createBlock as d, resolveDynamicComponent as g, withCtx as f, toDisplayString as c, withModifiers as R, Fragment as u, renderList as v } from "vue";
|
|
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 = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "tw-flex-shrink-0 tw-overflow-hidden"
|
|
9
|
-
},
|
|
9
|
+
}, I = {
|
|
10
10
|
key: 0,
|
|
11
11
|
class: "tw-mb-0.5 tw-w-full"
|
|
12
|
-
},
|
|
12
|
+
}, W = { class: "tw-text-primary !tw-font-medium tw-text-base tw-leading-normal tw-truncate" }, E = ["href"], F = { class: "tw-truncate" }, O = ["title"], j = { class: "tw-font-medium" }, K = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "loan-card-use-text tw-w-full tw-overflow-hidden"
|
|
15
15
|
}, z = { class: "tw-flex-1 tw-min-w-0 tw-mr-1" }, H = {
|
|
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(
|
|
20
|
-
var
|
|
21
|
-
const
|
|
19
|
+
function Q(k, o, t, e, X, y) {
|
|
20
|
+
var L;
|
|
21
|
+
const _ = w("kv-material-icon"), h = w("kv-loading-placeholder"), P = w("kv-borrower-image"), C = w("kv-loan-tag"), V = w("kv-loan-use"), M = w("kv-loan-callouts"), x = w("kv-loan-progress-group"), N = w("kv-select"), A = w("kv-lend-cta");
|
|
22
22
|
return n(), 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
24
|
"tw-relative": t.showRefreshButton,
|
|
@@ -31,7 +31,7 @@ function Q(g, o, t, e, X, L) {
|
|
|
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
32
|
onClick: o[0] || (o[0] = (...a) => e.handleRefreshButton && e.handleRefreshButton(...a))
|
|
33
33
|
}, [
|
|
34
|
-
i(
|
|
34
|
+
i(_, {
|
|
35
35
|
icon: e.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"])
|
|
@@ -53,7 +53,7 @@ function Q(g, o, t, e, X, L) {
|
|
|
53
53
|
}),
|
|
54
54
|
style: b(e.borrowerImageStyle)
|
|
55
55
|
}, null, 8, ["class", "style"])) : (n(), l("div", U, [
|
|
56
|
-
(n(), d(
|
|
56
|
+
(n(), d(g(e.tag), {
|
|
57
57
|
to: e.readMorePath,
|
|
58
58
|
href: e.readMorePath,
|
|
59
59
|
target: t.externalLinksNewTab ? "_blank" : void 0,
|
|
@@ -83,8 +83,8 @@ function Q(g, o, t, e, X, L) {
|
|
|
83
83
|
r("div", {
|
|
84
84
|
class: s(["tw-flex tw-flex-col tw-items-start tw-gap-1 tw-flex-1 tw-min-w-0", { "!tw-gap-0": e.isPostGoalVariant }])
|
|
85
85
|
}, [
|
|
86
|
-
t.businessName ? (n(), l("div",
|
|
87
|
-
(n(), d(
|
|
86
|
+
t.businessName ? (n(), l("div", I, [
|
|
87
|
+
(n(), d(g(e.tag), {
|
|
88
88
|
to: e.readMorePath,
|
|
89
89
|
href: e.readMorePath,
|
|
90
90
|
target: t.externalLinksNewTab ? "_blank" : void 0,
|
|
@@ -94,7 +94,7 @@ function Q(g, o, t, e, X, L) {
|
|
|
94
94
|
onClick: o[2] || (o[2] = (a) => e.clickReadMore("Business", a))
|
|
95
95
|
}, {
|
|
96
96
|
default: f(() => [
|
|
97
|
-
r("h3",
|
|
97
|
+
r("h3", W, c(t.businessName), 1)
|
|
98
98
|
]),
|
|
99
99
|
_: 1
|
|
100
100
|
}, 8, ["to", "href", "target", "rel"])),
|
|
@@ -105,14 +105,14 @@ function Q(g, o, t, e, X, L) {
|
|
|
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
106
|
onClick: o[3] || (o[3] = R((...a) => e.trackWebsiteClick && e.trackWebsiteClick(...a), ["stop"]))
|
|
107
107
|
}, [
|
|
108
|
-
i(
|
|
108
|
+
i(_, {
|
|
109
109
|
icon: e.mdiLink,
|
|
110
110
|
class: "tw-w-2 tw-h-2"
|
|
111
111
|
}, null, 8, ["icon"]),
|
|
112
|
-
r("span",
|
|
113
|
-
], 8,
|
|
112
|
+
r("span", F, c(t.website), 1)
|
|
113
|
+
], 8, E)) : m("", !0)
|
|
114
114
|
])) : m("", !0),
|
|
115
|
-
e.isLoading ? m("", !0) : (n(), d(
|
|
115
|
+
e.isLoading ? m("", !0) : (n(), d(g(e.tag), {
|
|
116
116
|
key: 1,
|
|
117
117
|
to: e.readMorePath,
|
|
118
118
|
href: e.readMorePath,
|
|
@@ -128,8 +128,9 @@ function Q(g, o, t, e, X, L) {
|
|
|
128
128
|
class: s({
|
|
129
129
|
"tw-mb-1 !tw-font-medium": e.isPostGoalVariant
|
|
130
130
|
}),
|
|
131
|
-
loan: t.loan
|
|
132
|
-
|
|
131
|
+
loan: t.loan,
|
|
132
|
+
"enable-multi-matching": t.enableMultiMatching
|
|
133
|
+
}, null, 8, ["class", "loan", "enable-multi-matching"])) : m("", !0)
|
|
133
134
|
]),
|
|
134
135
|
_: 1
|
|
135
136
|
}, 8, ["to", "href", "target", "rel"])),
|
|
@@ -149,7 +150,7 @@ function Q(g, o, t, e, X, L) {
|
|
|
149
150
|
r("span", null, c(e.loanUsePrefixEnd), 1),
|
|
150
151
|
r("span", null, c(e.visibleUseStatement), 1)
|
|
151
152
|
], 8, O))
|
|
152
|
-
], 64)) : t.showLoanUse ? (n(), d(
|
|
153
|
+
], 64)) : t.showLoanUse ? (n(), d(g(e.tag), {
|
|
153
154
|
key: 3,
|
|
154
155
|
to: e.readMorePath,
|
|
155
156
|
href: e.readMorePath,
|
|
@@ -169,7 +170,7 @@ function Q(g, o, t, e, X, L) {
|
|
|
169
170
|
]))), 128))
|
|
170
171
|
])) : (n(), l("div", {
|
|
171
172
|
key: 1,
|
|
172
|
-
class: s(["loan-card-use-text tw-w-full tw-overflow-hidden", { "!tw--mt-1": t.showTags &&
|
|
173
|
+
class: s(["loan-card-use-text tw-w-full tw-overflow-hidden", { "!tw--mt-1": t.showTags && y.hasMatchingInfo && t.showLightView }])
|
|
173
174
|
}, [
|
|
174
175
|
i(V, {
|
|
175
176
|
use: e.loanUse,
|
|
@@ -194,11 +195,11 @@ function Q(g, o, t, e, X, L) {
|
|
|
194
195
|
key: 0,
|
|
195
196
|
class: "tw-mt-1.5 tw-mb-1 tw-rounded-full",
|
|
196
197
|
style: { width: "60%", height: "1.5rem" }
|
|
197
|
-
})) : (n(), d(
|
|
198
|
+
})) : (n(), d(M, {
|
|
198
199
|
key: 1,
|
|
199
200
|
callouts: e.loanCallouts,
|
|
200
201
|
class: s(["tw-mt-1.5", { "goal-variant-callouts": e.isPostGoalVariant }]),
|
|
201
|
-
onClick: o[6] || (o[6] = (a) =>
|
|
202
|
+
onClick: o[6] || (o[6] = (a) => k.$emit("jump-filter-page", a))
|
|
202
203
|
}, null, 8, ["callouts", "class"]))
|
|
203
204
|
]),
|
|
204
205
|
r("div", {
|
|
@@ -209,22 +210,22 @@ function Q(g, o, t, e, X, L) {
|
|
|
209
210
|
}, [
|
|
210
211
|
e.hasProgressData ? e.isPostGoalVariant ? (n(), l(u, { key: 1 }, [
|
|
211
212
|
r("div", H, [
|
|
212
|
-
i(
|
|
213
|
+
i(x, {
|
|
213
214
|
"money-left": e.unreservedAmount,
|
|
214
215
|
"progress-percent": e.fundraisingPercent,
|
|
215
216
|
class: "tw-text-black goal-variant-progress-group"
|
|
216
217
|
}, null, 8, ["money-left", "progress-percent"])
|
|
217
218
|
]),
|
|
218
219
|
r("div", null, [
|
|
219
|
-
i(
|
|
220
|
-
id: `PostGoalAmountDropdown_${((
|
|
220
|
+
i(N, {
|
|
221
|
+
id: `PostGoalAmountDropdown_${((L = t.loan) == null ? void 0 : L.id) ?? t.loanId}`,
|
|
221
222
|
modelValue: e.selectedAmount,
|
|
222
223
|
"onUpdate:modelValue": [
|
|
223
224
|
o[7] || (o[7] = (a) => e.selectedAmount = a),
|
|
224
225
|
e.handleSelectedAmount
|
|
225
226
|
],
|
|
226
227
|
"aria-label": "Lend amount",
|
|
227
|
-
disabled: !e.amountOptions.length ||
|
|
228
|
+
disabled: !e.amountOptions.length || y.isInBasket,
|
|
228
229
|
class: "amount-dropdown"
|
|
229
230
|
}, {
|
|
230
231
|
default: f(() => [
|
|
@@ -238,7 +239,7 @@ function Q(g, o, t, e, X, L) {
|
|
|
238
239
|
])
|
|
239
240
|
], 64)) : (n(), l(u, { key: 2 }, [
|
|
240
241
|
r("div", q, [
|
|
241
|
-
e.sharesAvailable ? (n(), d(
|
|
242
|
+
e.sharesAvailable ? (n(), d(g(e.tag), {
|
|
242
243
|
key: 0,
|
|
243
244
|
to: e.readMorePath,
|
|
244
245
|
href: e.readMorePath,
|
|
@@ -249,7 +250,7 @@ function Q(g, o, t, e, X, L) {
|
|
|
249
250
|
onClick: o[8] || (o[8] = (a) => e.clickReadMore("Progress", a))
|
|
250
251
|
}, {
|
|
251
252
|
default: f(() => [
|
|
252
|
-
i(
|
|
253
|
+
i(x, {
|
|
253
254
|
id: "loanProgress",
|
|
254
255
|
"money-left": e.unreservedAmount,
|
|
255
256
|
"progress-percent": e.fundraisingPercent,
|
|
@@ -271,7 +272,7 @@ function Q(g, o, t, e, X, L) {
|
|
|
271
272
|
class: s(["tw-flex-shrink-0 loan-card-cta", { "tw-w-full": !e.sharesAvailable }]),
|
|
272
273
|
style: { height: "40px" }
|
|
273
274
|
}, [
|
|
274
|
-
i(
|
|
275
|
+
i(A, {
|
|
275
276
|
loan: t.loan,
|
|
276
277
|
"unreserved-amount": e.unreservedAmount,
|
|
277
278
|
"basket-items": t.basketItems,
|
|
@@ -291,9 +292,9 @@ function Q(g, o, t, e, X, L) {
|
|
|
291
292
|
"primary-button-text": t.primaryButtonText,
|
|
292
293
|
"secondary-button-text": t.secondaryButtonText,
|
|
293
294
|
"secondary-button-handler": t.secondaryButtonHandler,
|
|
294
|
-
onAddToBasket: o[10] || (o[10] = (a) =>
|
|
295
|
+
onAddToBasket: o[10] || (o[10] = (a) => k.$emit("add-to-basket", a)),
|
|
295
296
|
onShowLoanDetails: o[11] || (o[11] = (a) => e.clickReadMore("ViewLoan", a)),
|
|
296
|
-
onRemoveFromBasket: o[12] || (o[12] = (a) =>
|
|
297
|
+
onRemoveFromBasket: o[12] || (o[12] = (a) => k.$emit("remove-from-basket", a))
|
|
297
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"])
|
|
298
299
|
], 2))
|
|
299
300
|
], 64)) : (n(), l(u, { key: 0 }, [
|
|
@@ -316,7 +317,7 @@ function Q(g, o, t, e, X, L) {
|
|
|
316
317
|
], 2)
|
|
317
318
|
], 10, S);
|
|
318
319
|
}
|
|
319
|
-
const te = /* @__PURE__ */ G(B, [["render", Q], ["__scopeId", "data-v-
|
|
320
|
+
const te = /* @__PURE__ */ G(B, [["render", Q], ["__scopeId", "data-v-daea2e7e"]]);
|
|
320
321
|
export {
|
|
321
322
|
oe as KV_COMPACT_LOAN_CARD_FRAGMENT,
|
|
322
323
|
le as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
|
|
@@ -140,6 +140,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
140
140
|
type: StringConstructor;
|
|
141
141
|
default: string;
|
|
142
142
|
};
|
|
143
|
+
enableMultiMatching: {
|
|
144
|
+
type: BooleanConstructor;
|
|
145
|
+
default: boolean;
|
|
146
|
+
};
|
|
143
147
|
}>, {
|
|
144
148
|
allDataLoaded: import('vue').ComputedRef<boolean>;
|
|
145
149
|
amountOptions: import('vue').ComputedRef<string[]>;
|
|
@@ -194,6 +198,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
194
198
|
lendersNumber(): any;
|
|
195
199
|
amountLent(): any;
|
|
196
200
|
isInBasket(): any;
|
|
201
|
+
hasMatchingInfo(): boolean;
|
|
197
202
|
}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("show-loan-details" | "add-to-basket" | "remove-from-basket" | "jump-filter-page" | "refresh-button" | "update:selected-amount")[], "show-loan-details" | "add-to-basket" | "remove-from-basket" | "jump-filter-page" | "refresh-button" | "update:selected-amount", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
198
203
|
variant: {
|
|
199
204
|
type: StringConstructor;
|
|
@@ -332,6 +337,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
332
337
|
type: StringConstructor;
|
|
333
338
|
default: string;
|
|
334
339
|
};
|
|
340
|
+
enableMultiMatching: {
|
|
341
|
+
type: BooleanConstructor;
|
|
342
|
+
default: boolean;
|
|
343
|
+
};
|
|
335
344
|
}>> & Readonly<{
|
|
336
345
|
"onAdd-to-basket"?: (...args: any[]) => any;
|
|
337
346
|
"onShow-loan-details"?: (...args: any[]) => any;
|
|
@@ -362,6 +371,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
362
371
|
primaryButtonText: string;
|
|
363
372
|
secondaryButtonText: string;
|
|
364
373
|
secondaryButtonHandler: Function;
|
|
374
|
+
enableMultiMatching: boolean;
|
|
365
375
|
showTags: boolean;
|
|
366
376
|
isTeamPick: boolean;
|
|
367
377
|
showContributors: boolean;
|
|
@@ -1171,10 +1181,17 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1171
1181
|
type: BooleanConstructor;
|
|
1172
1182
|
default: boolean;
|
|
1173
1183
|
};
|
|
1184
|
+
enableMultiMatching: {
|
|
1185
|
+
type: BooleanConstructor;
|
|
1186
|
+
default: boolean;
|
|
1187
|
+
};
|
|
1174
1188
|
}>, {}, {}, {
|
|
1175
1189
|
deadline(): Date;
|
|
1176
1190
|
isLseLoan(): any;
|
|
1177
1191
|
amountLeft(): any;
|
|
1192
|
+
multiMatchingOrgs(): any;
|
|
1193
|
+
isMultipleMatch(): boolean;
|
|
1194
|
+
totalMatchRatio(): any;
|
|
1178
1195
|
variation(): string;
|
|
1179
1196
|
tagText(): string;
|
|
1180
1197
|
tagColor(): "#AF741C" | "#CE2626" | "#2B7C5F" | "#CE4A00";
|
|
@@ -1188,8 +1205,13 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1188
1205
|
type: BooleanConstructor;
|
|
1189
1206
|
default: boolean;
|
|
1190
1207
|
};
|
|
1208
|
+
enableMultiMatching: {
|
|
1209
|
+
type: BooleanConstructor;
|
|
1210
|
+
default: boolean;
|
|
1211
|
+
};
|
|
1191
1212
|
}>> & Readonly<{}>, {
|
|
1192
1213
|
useExpandedStyles: boolean;
|
|
1214
|
+
enableMultiMatching: boolean;
|
|
1193
1215
|
}, {}, {
|
|
1194
1216
|
KvCountdownTimer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1195
1217
|
deadline: {
|
|
@@ -1205,6 +1227,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
1205
1227
|
required: true;
|
|
1206
1228
|
};
|
|
1207
1229
|
}>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1230
|
+
KvTooltip: import('vue').DefineSetupFnComponent<Record<string, any>, {}, {}, Record<string, any> & {}, import('vue').PublicProps>;
|
|
1208
1231
|
}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
1209
1232
|
KvLoanCallouts: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
1210
1233
|
callouts: {
|