@kiva/kv-components 8.0.1 → 8.1.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/dist/index.js +68 -67
- package/dist/utils/loanUtils.d.ts +1 -0
- package/dist/utils/loanUtils.js +63 -55
- package/dist/vue/KvClassicLoanCard.vue.d.ts +18 -0
- package/dist/vue/KvCompactLoanCard.css +1 -1
- package/dist/vue/KvCompactLoanCard.js +90 -65
- package/dist/vue/KvCompactLoanCard.vue.d.ts +67 -41
- package/dist/vue/KvCompactLoanCard2.js +108 -87
- package/dist/vue/KvIntroductionLoanCard.vue.d.ts +18 -0
- package/dist/vue/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +37 -37
- package/dist/vue/KvLoanUse.vue.d.ts +18 -0
- package/dist/vue/KvLoanUse2.js +23 -12
- package/dist/vue/KvWideLoanCard.vue.d.ts +18 -0
- package/package.json +2 -2
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { computed as
|
|
4
|
-
import { mdiMapMarker as
|
|
5
|
-
import { LOAN_CALLOUTS_FRAGMENT as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import V from "./KvLoanBookmark.js";
|
|
1
|
+
import r from "graphql-tag";
|
|
2
|
+
import w from "numeral";
|
|
3
|
+
import { computed as n } from "vue";
|
|
4
|
+
import { mdiMapMarker as F, mdiHome as M, mdiLink as S, mdiClose as E } from "@mdi/js";
|
|
5
|
+
import { LOAN_CALLOUTS_FRAGMENT as R, LOAN_GEOCODE_FRAGMENT as O, LOAN_PROGRESS_FRAGMENT as G, loanCardComputedProperties as P, loanCardMethods as V } from "../utils/loanCard.js";
|
|
6
|
+
import D from "./KvLoanUse.js";
|
|
7
|
+
import U from "./KvBorrowerImage.js";
|
|
8
|
+
import $ from "./KvLoanCallouts.js";
|
|
9
|
+
import W from "./KvLendCta.js";
|
|
11
10
|
import I from "./KvLoanProgressGroup.js";
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
11
|
+
import x from "./KvLoanTag.js";
|
|
12
|
+
import H from "./KvMaterialIcon.js";
|
|
13
|
+
import j from "./KvLoadingPlaceholder.js";
|
|
15
14
|
import q from "./KvLoanTeamPick.js";
|
|
16
|
-
import { KV_LEND_CTA_FRAGMENT as
|
|
17
|
-
import { KV_LOAN_TAG_FRAGMENT as
|
|
18
|
-
import { KV_LOAN_USE_FRAGMENT as
|
|
19
|
-
|
|
20
|
-
const Ae = n`
|
|
15
|
+
import { KV_LEND_CTA_FRAGMENT as z, KV_LEND_CTA_USER_FRAGMENT as J } from "./KvLendCta2.js";
|
|
16
|
+
import { KV_LOAN_TAG_FRAGMENT as Q } from "./KvLoanTag2.js";
|
|
17
|
+
import { KV_LOAN_USE_FRAGMENT as X } from "./KvLoanUse2.js";
|
|
18
|
+
const Ce = r`
|
|
21
19
|
fragment KvCompactLoanCard on LoanBasic {
|
|
22
20
|
id
|
|
23
21
|
image {
|
|
@@ -39,31 +37,28 @@ const Ae = n`
|
|
|
39
37
|
...LoanGeocode
|
|
40
38
|
...LoanProgress
|
|
41
39
|
}
|
|
42
|
-
${
|
|
43
|
-
${J}
|
|
40
|
+
${z}
|
|
44
41
|
${Q}
|
|
45
|
-
${
|
|
42
|
+
${X}
|
|
46
43
|
${R}
|
|
47
|
-
${
|
|
48
|
-
|
|
44
|
+
${O}
|
|
45
|
+
${G}
|
|
46
|
+
`, ge = r`
|
|
49
47
|
fragment KvCompactLoanCardUser on LoanBasic {
|
|
50
48
|
id
|
|
51
49
|
...KvLendCtaUser
|
|
52
|
-
...KvLoanBookmark
|
|
53
50
|
}
|
|
54
|
-
${
|
|
55
|
-
|
|
56
|
-
`, _e = {
|
|
51
|
+
${J}
|
|
52
|
+
`, he = {
|
|
57
53
|
name: "KvCompactLoanCard",
|
|
58
54
|
components: {
|
|
59
|
-
KvBorrowerImage:
|
|
60
|
-
KvLoadingPlaceholder:
|
|
61
|
-
KvLoanUse:
|
|
62
|
-
KvMaterialIcon:
|
|
63
|
-
KvLendCta:
|
|
64
|
-
KvLoanTag:
|
|
65
|
-
KvLoanCallouts:
|
|
66
|
-
KvLoanBookmark: V,
|
|
55
|
+
KvBorrowerImage: U,
|
|
56
|
+
KvLoadingPlaceholder: j,
|
|
57
|
+
KvLoanUse: D,
|
|
58
|
+
KvMaterialIcon: H,
|
|
59
|
+
KvLendCta: W,
|
|
60
|
+
KvLoanTag: x,
|
|
61
|
+
KvLoanCallouts: $,
|
|
67
62
|
KvLoanTeamPick: q,
|
|
68
63
|
KvLoanProgressGroup: I
|
|
69
64
|
},
|
|
@@ -104,10 +99,6 @@ const Ae = n`
|
|
|
104
99
|
type: Array,
|
|
105
100
|
default: () => []
|
|
106
101
|
},
|
|
107
|
-
isBookmarked: {
|
|
108
|
-
type: Boolean,
|
|
109
|
-
default: !1
|
|
110
|
-
},
|
|
111
102
|
kvTrackFunction: {
|
|
112
103
|
type: Function,
|
|
113
104
|
required: !0
|
|
@@ -187,67 +178,97 @@ const Ae = n`
|
|
|
187
178
|
showLoanUse: {
|
|
188
179
|
type: Boolean,
|
|
189
180
|
default: !0
|
|
181
|
+
},
|
|
182
|
+
showLightView: {
|
|
183
|
+
type: Boolean,
|
|
184
|
+
default: !1
|
|
185
|
+
},
|
|
186
|
+
truncateWordsNumber: {
|
|
187
|
+
type: Number,
|
|
188
|
+
default: 0
|
|
189
|
+
},
|
|
190
|
+
showCloseButton: {
|
|
191
|
+
type: Boolean,
|
|
192
|
+
default: !1
|
|
193
|
+
},
|
|
194
|
+
customAmountLent: {
|
|
195
|
+
type: String,
|
|
196
|
+
default: "25"
|
|
190
197
|
}
|
|
191
198
|
},
|
|
199
|
+
emits: [
|
|
200
|
+
"close-button",
|
|
201
|
+
"jump-filter-page",
|
|
202
|
+
"add-to-basket",
|
|
203
|
+
"remove-from-basket"
|
|
204
|
+
],
|
|
192
205
|
setup(e, { emit: t }) {
|
|
193
206
|
const {
|
|
194
|
-
allDataLoaded:
|
|
195
|
-
borrowerName:
|
|
207
|
+
allDataLoaded: a,
|
|
208
|
+
borrowerName: l,
|
|
196
209
|
city: i,
|
|
197
|
-
countryName:
|
|
198
|
-
distributionModel:
|
|
199
|
-
formattedLocation:
|
|
200
|
-
fundraisingPercent:
|
|
201
|
-
hasProgressData:
|
|
202
|
-
imageHash:
|
|
210
|
+
countryName: s,
|
|
211
|
+
distributionModel: u,
|
|
212
|
+
formattedLocation: d,
|
|
213
|
+
fundraisingPercent: m,
|
|
214
|
+
hasProgressData: f,
|
|
215
|
+
imageHash: c,
|
|
203
216
|
isLoading: p,
|
|
204
|
-
loanAmount:
|
|
205
|
-
loanBorrowerCount:
|
|
206
|
-
loanCallouts:
|
|
207
|
-
loanStatus:
|
|
208
|
-
loanUse:
|
|
209
|
-
readMorePath:
|
|
210
|
-
state:
|
|
217
|
+
loanAmount: L,
|
|
218
|
+
loanBorrowerCount: y,
|
|
219
|
+
loanCallouts: C,
|
|
220
|
+
loanStatus: g,
|
|
221
|
+
loanUse: h,
|
|
222
|
+
readMorePath: A,
|
|
223
|
+
state: _,
|
|
211
224
|
tag: N,
|
|
212
|
-
unreservedAmount:
|
|
225
|
+
unreservedAmount: b,
|
|
213
226
|
sharesAvailable: B
|
|
214
|
-
} =
|
|
227
|
+
} = P(e), {
|
|
215
228
|
clickReadMore: T
|
|
216
|
-
} =
|
|
217
|
-
e.kvTrackFunction("Lending", "click-Business Website", "Website", e.loanId);
|
|
218
|
-
}, v = M(() => {
|
|
229
|
+
} = V(e, t), v = n(() => {
|
|
219
230
|
if (!e.website)
|
|
220
231
|
return "";
|
|
221
|
-
const
|
|
222
|
-
return
|
|
232
|
+
const o = e.website.trim();
|
|
233
|
+
return o.startsWith("http://") || o.startsWith("https://") ? o : `https://${o}`;
|
|
234
|
+
}), k = n(() => {
|
|
235
|
+
const o = e.showLightView ? "auto" : "6.75rem", K = e.showLightView ? "none" : "6.75rem";
|
|
236
|
+
return { height: o, maxHeight: K };
|
|
223
237
|
});
|
|
224
238
|
return {
|
|
225
|
-
allDataLoaded:
|
|
226
|
-
borrowerName:
|
|
239
|
+
allDataLoaded: a,
|
|
240
|
+
borrowerName: l,
|
|
227
241
|
city: i,
|
|
228
|
-
countryName:
|
|
229
|
-
distributionModel:
|
|
230
|
-
formattedLocation:
|
|
242
|
+
countryName: s,
|
|
243
|
+
distributionModel: u,
|
|
244
|
+
formattedLocation: d,
|
|
231
245
|
formattedWebsite: v,
|
|
232
|
-
fundraisingPercent:
|
|
233
|
-
hasProgressData:
|
|
234
|
-
imageHash:
|
|
246
|
+
fundraisingPercent: m,
|
|
247
|
+
hasProgressData: f,
|
|
248
|
+
imageHash: c,
|
|
235
249
|
isLoading: p,
|
|
236
|
-
loanAmount:
|
|
237
|
-
loanBorrowerCount:
|
|
238
|
-
loanCallouts:
|
|
239
|
-
loanStatus:
|
|
240
|
-
loanUse:
|
|
241
|
-
mdiMapMarker:
|
|
242
|
-
mdiHome:
|
|
243
|
-
mdiLink:
|
|
244
|
-
|
|
245
|
-
|
|
250
|
+
loanAmount: L,
|
|
251
|
+
loanBorrowerCount: y,
|
|
252
|
+
loanCallouts: C,
|
|
253
|
+
loanStatus: g,
|
|
254
|
+
loanUse: h,
|
|
255
|
+
mdiMapMarker: F,
|
|
256
|
+
mdiHome: M,
|
|
257
|
+
mdiLink: S,
|
|
258
|
+
mdiClose: E,
|
|
259
|
+
readMorePath: A,
|
|
260
|
+
state: _,
|
|
246
261
|
tag: N,
|
|
247
|
-
unreservedAmount:
|
|
262
|
+
unreservedAmount: b,
|
|
248
263
|
sharesAvailable: B,
|
|
264
|
+
customStyle: k,
|
|
249
265
|
clickReadMore: T,
|
|
250
|
-
trackWebsiteClick:
|
|
266
|
+
trackWebsiteClick: () => {
|
|
267
|
+
e.kvTrackFunction("Lending", "click-Business Website", "Website", e.loanId);
|
|
268
|
+
},
|
|
269
|
+
handleCloseButton: (o) => {
|
|
270
|
+
t("close-button", o);
|
|
271
|
+
}
|
|
251
272
|
};
|
|
252
273
|
},
|
|
253
274
|
computed: {
|
|
@@ -256,14 +277,14 @@ const Ae = n`
|
|
|
256
277
|
return ((t = (e = this.loan) == null ? void 0 : e.lenders) == null ? void 0 : t.totalCount) ?? 0;
|
|
257
278
|
},
|
|
258
279
|
amountLent() {
|
|
259
|
-
var t,
|
|
260
|
-
const e = ((
|
|
261
|
-
return
|
|
280
|
+
var t, a;
|
|
281
|
+
const e = ((a = (t = this.loan) == null ? void 0 : t.loanFundraisingInfo) == null ? void 0 : a.fundedAmount) ?? 0;
|
|
282
|
+
return w(e).format("$0,0");
|
|
262
283
|
}
|
|
263
284
|
}
|
|
264
285
|
};
|
|
265
286
|
export {
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
287
|
+
Ce as KV_COMPACT_LOAN_CARD_FRAGMENT,
|
|
288
|
+
ge as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
|
|
289
|
+
he as default
|
|
269
290
|
};
|
|
@@ -274,6 +274,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
274
274
|
type: BooleanConstructor;
|
|
275
275
|
default: boolean;
|
|
276
276
|
};
|
|
277
|
+
showReadMore: {
|
|
278
|
+
type: BooleanConstructor;
|
|
279
|
+
default: boolean;
|
|
280
|
+
};
|
|
281
|
+
truncateWordsNumber: {
|
|
282
|
+
type: NumberConstructor;
|
|
283
|
+
default: number;
|
|
284
|
+
};
|
|
277
285
|
}>, {}, {}, {
|
|
278
286
|
helpLanguage(): "helps" | "helped";
|
|
279
287
|
isDirect(): boolean;
|
|
@@ -329,6 +337,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
329
337
|
type: BooleanConstructor;
|
|
330
338
|
default: boolean;
|
|
331
339
|
};
|
|
340
|
+
showReadMore: {
|
|
341
|
+
type: BooleanConstructor;
|
|
342
|
+
default: boolean;
|
|
343
|
+
};
|
|
344
|
+
truncateWordsNumber: {
|
|
345
|
+
type: NumberConstructor;
|
|
346
|
+
default: number;
|
|
347
|
+
};
|
|
332
348
|
}>> & Readonly<{}>, {
|
|
333
349
|
name: string;
|
|
334
350
|
use: string;
|
|
@@ -342,6 +358,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
342
358
|
boldName: boolean;
|
|
343
359
|
country: string;
|
|
344
360
|
useIndicativeHelpText: boolean;
|
|
361
|
+
showReadMore: boolean;
|
|
362
|
+
truncateWordsNumber: number;
|
|
345
363
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
346
364
|
KvLoanProgressGroup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
347
365
|
moneyLeft: {
|
package/dist/vue/KvLendCta.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.amountDropdownWrapper[data-v-
|
|
1
|
+
.amountDropdownWrapper[data-v-fd7506ce] select{border-radius:14px 0 0 14px!important}.lend-again[data-v-fd7506ce] span{padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-fd7506ce] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-fd7506ce] select{cursor:pointer;border-radius:1rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-fd7506ce] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.preset-option[data-v-fd7506ce] span.tw-w-full:first-child{border-width:2px;--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.selected-dropdown[data-v-fd7506ce] select,.selected-option[data-v-fd7506ce] span.tw-w-full:first-child{--tw-border-opacity: 1;border-color:rgba(var(--border-action),var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgba(var(--bg-secondary),var(--tw-bg-opacity, 1))}.button-ellipsis[data-v-fd7506ce] span>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 410px){.mobile-dropdown-small[data-v-fd7506ce]{flex:0 0 40%}}
|
package/dist/vue/KvLendCta.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import P from "./KvLendCta2.js";
|
|
2
2
|
import { KV_LEND_CTA_FRAGMENT as oe, KV_LEND_CTA_USER_FRAGMENT as se } from "./KvLendCta2.js";
|
|
3
|
-
import { resolveComponent as A, openBlock as l, createElementBlock as s, createBlock as
|
|
3
|
+
import { resolveComponent as A, openBlock as l, createElementBlock as s, createBlock as r, withCtx as w, createTextVNode as f, toDisplayString as a, createElementVNode as c, createVNode as b, withModifiers as D, normalizeClass as u, Fragment as k, renderList as _, createCommentVNode as i } from "vue";
|
|
4
4
|
import "./KvLendCta.css";
|
|
5
5
|
import y from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
6
|
const N = {
|
|
@@ -13,7 +13,7 @@ const N = {
|
|
|
13
13
|
}, T = { class: "tw-flex tw-items-center" }, V = ["disabled"], O = {
|
|
14
14
|
key: 0,
|
|
15
15
|
class: "md:tw-hidden tw-w-full"
|
|
16
|
-
}, R = { class: "tw-flex tw-flex-col tw-gap-1 tw-w-full" }, C = { class: "tw-flex tw-gap-1 tw-w-full" }, I = ["value"], E = { class: "tw-flex tw-gap-1" },
|
|
16
|
+
}, R = { class: "tw-flex tw-flex-col tw-gap-1 tw-w-full" }, C = { class: "tw-flex tw-gap-1 tw-w-full" }, I = ["value"], E = { class: "tw-flex tw-gap-1" }, p = ["value"], S = { class: "tw-flex tw-items-center tw-h-full tw-w-full" }, W = { class: "tw-min-w-0 tw-flex-1 tw-overflow-hidden tw-text-ellipsis tw-whitespace-nowrap" }, F = {
|
|
17
17
|
key: 1,
|
|
18
18
|
class: "tw-w-full"
|
|
19
19
|
}, U = { class: "tw-flex tw-flex-col tw-gap-1 tw-w-full" }, M = { class: "tw-flex tw-gap-1 tw-w-full" }, K = ["value"], H = { class: "tw-flex tw-gap-1" }, j = ["value"], G = { class: "tw-flex tw-items-center tw-h-full tw-w-full" }, z = { class: "tw-min-w-0 tw-flex-1 tw-overflow-hidden tw-text-ellipsis tw-whitespace-nowrap" }, q = ["value"], J = {
|
|
@@ -23,33 +23,33 @@ const N = {
|
|
|
23
23
|
function X(B, o, n, Y, d, e) {
|
|
24
24
|
const m = A("kv-ui-button"), v = A("kv-material-icon"), h = A("kv-ui-select"), L = A("kv-lend-amount-button");
|
|
25
25
|
return l(), s("div", N, [
|
|
26
|
-
e.isInBasket ? (l(),
|
|
26
|
+
e.isInBasket ? (l(), r(m, {
|
|
27
27
|
key: 0,
|
|
28
28
|
variant: "secondary",
|
|
29
|
-
class: "tw-inline-flex tw-flex-1 tw-w-full",
|
|
29
|
+
class: "tw-inline-flex tw-flex-1 tw-w-full tw-cursor-pointer",
|
|
30
30
|
"data-testid": "bp-lend-cta-checkout-button",
|
|
31
31
|
to: n.externalLinks ? void 0 : "/basket",
|
|
32
32
|
href: n.externalLinks ? "/basket" : void 0,
|
|
33
33
|
onClick: o[0] || (o[0] = (t) => e.clickSecondaryButton(t))
|
|
34
34
|
}, {
|
|
35
35
|
default: w(() => [
|
|
36
|
-
f(
|
|
36
|
+
f(a(e.loanInBasketButtonText), 1)
|
|
37
37
|
]),
|
|
38
38
|
_: 1
|
|
39
|
-
}, 8, ["to", "href"])) : e.showNonActionableLoanButton ? (l(),
|
|
39
|
+
}, 8, ["to", "href"])) : e.showNonActionableLoanButton ? (l(), r(m, {
|
|
40
40
|
key: 1,
|
|
41
41
|
class: "tw-inline-flex tw-flex-1"
|
|
42
42
|
}, {
|
|
43
43
|
default: w(() => [
|
|
44
|
-
f(
|
|
44
|
+
f(a(e.ctaButtonText), 1)
|
|
45
45
|
]),
|
|
46
46
|
_: 1
|
|
47
|
-
})) : e.isFunded ? (l(), s("div", g, " This loan was just funded! 🎉 ")) : n.showViewLoan ? (l(),
|
|
47
|
+
})) : e.isFunded ? (l(), s("div", g, " This loan was just funded! 🎉 ")) : n.showViewLoan ? (l(), r(m, {
|
|
48
48
|
key: 3,
|
|
49
49
|
state: `${e.allSharesReserved ? "disabled" : ""}`,
|
|
50
50
|
to: n.externalLinks ? void 0 : e.readMorePath,
|
|
51
51
|
href: n.externalLinks ? e.readMorePath : void 0,
|
|
52
|
-
class: "tw-mb-0",
|
|
52
|
+
class: "tw-mb-0 tw-cursor-pointer",
|
|
53
53
|
onClick: o[1] || (o[1] = (t) => B.$emit("show-loan-details", t))
|
|
54
54
|
}, {
|
|
55
55
|
default: w(() => [
|
|
@@ -79,7 +79,7 @@ function X(B, o, n, Y, d, e) {
|
|
|
79
79
|
n.showPresetAmounts && !n.isAdding && !e.isLendAmountButton && e.presetButtonsPrices.length > 1 && !e.isNarrowDesktop ? (l(), s("div", O, [
|
|
80
80
|
c("div", R, [
|
|
81
81
|
c("div", C, [
|
|
82
|
-
(l(!0), s(k, null, _(e.presetButtonsPrices, (t) => (l(),
|
|
82
|
+
(l(!0), s(k, null, _(e.presetButtonsPrices, (t) => (l(), r(m, {
|
|
83
83
|
key: t,
|
|
84
84
|
variant: "secondary",
|
|
85
85
|
class: u(["preset-option tw-flex-1 tw-min-w-0 tw-whitespace-nowrap", { "selected-option": d.selectedOption == t }]),
|
|
@@ -87,11 +87,11 @@ function X(B, o, n, Y, d, e) {
|
|
|
87
87
|
onClick: (x) => e.clickPresetButton(t)
|
|
88
88
|
}, {
|
|
89
89
|
default: w(() => [
|
|
90
|
-
f(" $ " +
|
|
90
|
+
f(" $ " + a(t), 1)
|
|
91
91
|
]),
|
|
92
92
|
_: 2
|
|
93
93
|
}, 1032, ["class", "onClick"]))), 128)),
|
|
94
|
-
e.showFilteredDropdown && d.viewportWidth >= d.MOBILE_DROPDOWN_BREAKPOINT ? (l(),
|
|
94
|
+
e.showFilteredDropdown && d.viewportWidth >= d.MOBILE_DROPDOWN_BREAKPOINT ? (l(), r(h, {
|
|
95
95
|
key: 0,
|
|
96
96
|
id: `LoanAmountDropdownMobile_${e.loanId}`,
|
|
97
97
|
modelValue: d.selectedDropdownOption,
|
|
@@ -110,13 +110,13 @@ function X(B, o, n, Y, d, e) {
|
|
|
110
110
|
(l(!0), s(k, null, _(e.presetDropdownPrices, (t) => (l(), s("option", {
|
|
111
111
|
key: t,
|
|
112
112
|
value: t
|
|
113
|
-
},
|
|
113
|
+
}, a(t !== d.OTHER_OPTION ? `$${t}` : t), 9, I))), 128))
|
|
114
114
|
]),
|
|
115
115
|
_: 1
|
|
116
116
|
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : i("", !0)
|
|
117
117
|
]),
|
|
118
118
|
c("div", E, [
|
|
119
|
-
e.showFilteredDropdown && d.viewportWidth < d.MOBILE_DROPDOWN_BREAKPOINT ? (l(),
|
|
119
|
+
e.showFilteredDropdown && d.viewportWidth < d.MOBILE_DROPDOWN_BREAKPOINT ? (l(), r(h, {
|
|
120
120
|
key: 0,
|
|
121
121
|
id: `LoanAmountDropdownMobile_Small_${e.loanId}`,
|
|
122
122
|
modelValue: d.selectedDropdownOption,
|
|
@@ -135,7 +135,7 @@ function X(B, o, n, Y, d, e) {
|
|
|
135
135
|
(l(!0), s(k, null, _(e.presetDropdownPrices, (t) => (l(), s("option", {
|
|
136
136
|
key: "small-" + t,
|
|
137
137
|
value: t
|
|
138
|
-
},
|
|
138
|
+
}, a(t !== d.OTHER_OPTION ? `$${t}` : t), 9, p))), 128))
|
|
139
139
|
]),
|
|
140
140
|
_: 1
|
|
141
141
|
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : i("", !0),
|
|
@@ -145,8 +145,8 @@ function X(B, o, n, Y, d, e) {
|
|
|
145
145
|
type: "submit"
|
|
146
146
|
}, {
|
|
147
147
|
default: w(() => [
|
|
148
|
-
c("span",
|
|
149
|
-
c("span", W,
|
|
148
|
+
c("span", S, [
|
|
149
|
+
c("span", W, a(e.ctaButtonText), 1)
|
|
150
150
|
])
|
|
151
151
|
]),
|
|
152
152
|
_: 1
|
|
@@ -157,7 +157,7 @@ function X(B, o, n, Y, d, e) {
|
|
|
157
157
|
n.showPresetAmounts && !n.isAdding && !e.isLendAmountButton && e.presetButtonsPrices.length > 1 && e.isNarrowDesktop ? (l(), s("div", F, [
|
|
158
158
|
c("div", U, [
|
|
159
159
|
c("div", M, [
|
|
160
|
-
(l(!0), s(k, null, _(e.presetButtonsPrices, (t) => (l(),
|
|
160
|
+
(l(!0), s(k, null, _(e.presetButtonsPrices, (t) => (l(), r(m, {
|
|
161
161
|
key: t,
|
|
162
162
|
variant: "secondary",
|
|
163
163
|
class: u(["preset-option tw-flex-1 tw-min-w-0 tw-whitespace-nowrap", { "selected-option": d.selectedOption == t }]),
|
|
@@ -165,11 +165,11 @@ function X(B, o, n, Y, d, e) {
|
|
|
165
165
|
onClick: (x) => e.clickPresetButton(t)
|
|
166
166
|
}, {
|
|
167
167
|
default: w(() => [
|
|
168
|
-
f(" $ " +
|
|
168
|
+
f(" $ " + a(t), 1)
|
|
169
169
|
]),
|
|
170
170
|
_: 2
|
|
171
171
|
}, 1032, ["class", "onClick"]))), 128)),
|
|
172
|
-
e.showFilteredDropdown && d.componentWidth >= d.NARROW_SIDEBAR_DROPDOWN_BREAKPOINT ? (l(),
|
|
172
|
+
e.showFilteredDropdown && d.componentWidth >= d.NARROW_SIDEBAR_DROPDOWN_BREAKPOINT ? (l(), r(h, {
|
|
173
173
|
key: 0,
|
|
174
174
|
id: `LoanAmountDropdownNarrowDesktop_${e.loanId}`,
|
|
175
175
|
modelValue: d.selectedDropdownOption,
|
|
@@ -188,13 +188,13 @@ function X(B, o, n, Y, d, e) {
|
|
|
188
188
|
(l(!0), s(k, null, _(e.presetDropdownPrices, (t) => (l(), s("option", {
|
|
189
189
|
key: t,
|
|
190
190
|
value: t
|
|
191
|
-
},
|
|
191
|
+
}, a(t !== d.OTHER_OPTION ? `${t}` : t), 9, K))), 128))
|
|
192
192
|
]),
|
|
193
193
|
_: 1
|
|
194
194
|
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : i("", !0)
|
|
195
195
|
]),
|
|
196
196
|
c("div", H, [
|
|
197
|
-
e.showFilteredDropdown && d.componentWidth < d.NARROW_SIDEBAR_DROPDOWN_BREAKPOINT ? (l(),
|
|
197
|
+
e.showFilteredDropdown && d.componentWidth < d.NARROW_SIDEBAR_DROPDOWN_BREAKPOINT ? (l(), r(h, {
|
|
198
198
|
key: 0,
|
|
199
199
|
id: `LoanAmountDropdownNarrowDesktop_Small_${e.loanId}`,
|
|
200
200
|
modelValue: d.selectedDropdownOption,
|
|
@@ -213,7 +213,7 @@ function X(B, o, n, Y, d, e) {
|
|
|
213
213
|
(l(!0), s(k, null, _(e.presetDropdownPrices, (t) => (l(), s("option", {
|
|
214
214
|
key: "narrow-small-" + t,
|
|
215
215
|
value: t
|
|
216
|
-
},
|
|
216
|
+
}, a(t !== d.OTHER_OPTION ? `${t}` : t), 9, j))), 128))
|
|
217
217
|
]),
|
|
218
218
|
_: 1
|
|
219
219
|
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : i("", !0),
|
|
@@ -224,7 +224,7 @@ function X(B, o, n, Y, d, e) {
|
|
|
224
224
|
}, {
|
|
225
225
|
default: w(() => [
|
|
226
226
|
c("span", G, [
|
|
227
|
-
c("span", z,
|
|
227
|
+
c("span", z, a(e.ctaButtonText), 1)
|
|
228
228
|
])
|
|
229
229
|
]),
|
|
230
230
|
_: 1
|
|
@@ -239,7 +239,7 @@ function X(B, o, n, Y, d, e) {
|
|
|
239
239
|
"tw-hidden md:tw-flex": !e.isLendAmountButton && e.presetButtonsPrices.length > 1
|
|
240
240
|
})
|
|
241
241
|
}, [
|
|
242
|
-
e.isLendAmountButton ? i("", !0) : (l(!0), s(k, { key: 0 }, _(e.presetButtonsPrices, (t) => (l(),
|
|
242
|
+
e.isLendAmountButton ? i("", !0) : (l(!0), s(k, { key: 0 }, _(e.presetButtonsPrices, (t) => (l(), r(m, {
|
|
243
243
|
key: t,
|
|
244
244
|
variant: "secondary",
|
|
245
245
|
class: u(["tw-inline-flex tw-flex-1 preset-option tw-w-8 tw-whitespace-nowrap", { "selected-option": d.selectedOption == t }]),
|
|
@@ -247,11 +247,11 @@ function X(B, o, n, Y, d, e) {
|
|
|
247
247
|
onClick: (x) => e.clickPresetButton(t)
|
|
248
248
|
}, {
|
|
249
249
|
default: w(() => [
|
|
250
|
-
f(" $" +
|
|
250
|
+
f(" $" + a(t), 1)
|
|
251
251
|
]),
|
|
252
252
|
_: 2
|
|
253
253
|
}, 1032, ["class", "onClick"]))), 128)),
|
|
254
|
-
e.showFilteredDropdown ? (l(),
|
|
254
|
+
e.showFilteredDropdown ? (l(), r(h, {
|
|
255
255
|
key: 1,
|
|
256
256
|
id: `LoanAmountDropdown_${e.loanId}`,
|
|
257
257
|
modelValue: d.selectedDropdownOption,
|
|
@@ -270,12 +270,12 @@ function X(B, o, n, Y, d, e) {
|
|
|
270
270
|
(l(!0), s(k, null, _(e.presetDropdownPrices, (t) => (l(), s("option", {
|
|
271
271
|
key: t,
|
|
272
272
|
value: t
|
|
273
|
-
},
|
|
273
|
+
}, a(t !== d.OTHER_OPTION ? `$${t}` : t), 9, q))), 128))
|
|
274
274
|
]),
|
|
275
275
|
_: 1
|
|
276
276
|
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : i("", !0)
|
|
277
277
|
], 2)) : n.showPresetAmounts ? i("", !0) : (l(), s("div", J, [
|
|
278
|
-
e.hideShowLendDropdown && !e.isLessThan25 ? (l(),
|
|
278
|
+
e.hideShowLendDropdown && !e.isLessThan25 ? (l(), r(h, {
|
|
279
279
|
key: 0,
|
|
280
280
|
id: `LoanAmountDropdown_${e.loanId}`,
|
|
281
281
|
modelValue: d.selectedOption,
|
|
@@ -292,7 +292,7 @@ function X(B, o, n, Y, d, e) {
|
|
|
292
292
|
(l(!0), s(k, null, _(e.prices, (t) => (l(), s("option", {
|
|
293
293
|
key: t,
|
|
294
294
|
value: t
|
|
295
|
-
}, " $" +
|
|
295
|
+
}, " $" + a(t), 9, Q))), 128))
|
|
296
296
|
]),
|
|
297
297
|
_: 1
|
|
298
298
|
}, 8, ["id", "modelValue", "onUpdate:modelValue", "onClick"])) : i("", !0)
|
|
@@ -305,29 +305,29 @@ function X(B, o, n, Y, d, e) {
|
|
|
305
305
|
"md:tw-block tw-hidden": !e.isLendAmountButton && e.presetButtonsPrices.length > 1 && n.showPresetAmounts && !e.isNarrowDesktop
|
|
306
306
|
})
|
|
307
307
|
}, [
|
|
308
|
-
e.lendButtonVisibility && !e.isLessThan25 ? (l(),
|
|
308
|
+
e.lendButtonVisibility && !e.isLessThan25 ? (l(), r(m, {
|
|
309
309
|
key: "lendButton",
|
|
310
310
|
class: u(["tw-inline-flex tw-flex-1", { "button-ellipsis tw-w-full": n.showPresetAmounts }]),
|
|
311
311
|
"data-testid": "bp-lend-cta-lend-button",
|
|
312
312
|
type: "submit"
|
|
313
313
|
}, {
|
|
314
314
|
default: w(() => [
|
|
315
|
-
f(
|
|
315
|
+
f(a(e.ctaButtonText), 1)
|
|
316
316
|
]),
|
|
317
317
|
_: 1
|
|
318
|
-
}, 8, ["class"])) : e.showLendAgain ? (l(),
|
|
318
|
+
}, 8, ["class"])) : e.showLendAgain ? (l(), r(m, {
|
|
319
319
|
key: "lendAgainButton",
|
|
320
320
|
class: u(["lend-again", { "tw-w-full": n.showPresetAmounts }]),
|
|
321
321
|
"data-testid": "bp-lend-cta-lend-again-button",
|
|
322
322
|
type: "submit"
|
|
323
323
|
}, {
|
|
324
324
|
default: w(() => [
|
|
325
|
-
f(
|
|
325
|
+
f(a(n.primaryButtonText || "Lend") + " again ", 1)
|
|
326
326
|
]),
|
|
327
327
|
_: 1
|
|
328
328
|
}, 8, ["class"])) : i("", !0)
|
|
329
329
|
], 2),
|
|
330
|
-
e.isLendAmountButton && !n.enableFiveDollarsNotes ? (l(),
|
|
330
|
+
e.isLendAmountButton && !n.enableFiveDollarsNotes ? (l(), r(L, {
|
|
331
331
|
key: 4,
|
|
332
332
|
class: "tw-w-full",
|
|
333
333
|
"loan-id": e.loanId,
|
|
@@ -336,7 +336,7 @@ function X(B, o, n, Y, d, e) {
|
|
|
336
336
|
"is-adding": n.isAdding,
|
|
337
337
|
onAddToBasket: e.addToBasket
|
|
338
338
|
}, null, 8, ["loan-id", "amount-left", "is-adding", "onAddToBasket"])) : i("", !0),
|
|
339
|
-
!n.isLoading && n.isAdding ? (l(),
|
|
339
|
+
!n.isLoading && n.isAdding ? (l(), r(m, {
|
|
340
340
|
key: 5,
|
|
341
341
|
class: "tw-inline-flex tw-flex-1"
|
|
342
342
|
}, {
|
|
@@ -349,7 +349,7 @@ function X(B, o, n, Y, d, e) {
|
|
|
349
349
|
], 32)) : i("", !0)
|
|
350
350
|
], 512);
|
|
351
351
|
}
|
|
352
|
-
const le = /* @__PURE__ */ y(P, [["render", X], ["__scopeId", "data-v-
|
|
352
|
+
const le = /* @__PURE__ */ y(P, [["render", X], ["__scopeId", "data-v-fd7506ce"]]);
|
|
353
353
|
export {
|
|
354
354
|
oe as KV_LEND_CTA_FRAGMENT,
|
|
355
355
|
se as KV_LEND_CTA_USER_FRAGMENT,
|
|
@@ -48,6 +48,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
48
48
|
type: BooleanConstructor;
|
|
49
49
|
default: boolean;
|
|
50
50
|
};
|
|
51
|
+
showReadMore: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
truncateWordsNumber: {
|
|
56
|
+
type: NumberConstructor;
|
|
57
|
+
default: number;
|
|
58
|
+
};
|
|
51
59
|
}>, {}, {}, {
|
|
52
60
|
helpLanguage(): "helps" | "helped";
|
|
53
61
|
isDirect(): boolean;
|
|
@@ -103,6 +111,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
103
111
|
type: BooleanConstructor;
|
|
104
112
|
default: boolean;
|
|
105
113
|
};
|
|
114
|
+
showReadMore: {
|
|
115
|
+
type: BooleanConstructor;
|
|
116
|
+
default: boolean;
|
|
117
|
+
};
|
|
118
|
+
truncateWordsNumber: {
|
|
119
|
+
type: NumberConstructor;
|
|
120
|
+
default: number;
|
|
121
|
+
};
|
|
106
122
|
}>> & Readonly<{}>, {
|
|
107
123
|
name: string;
|
|
108
124
|
use: string;
|
|
@@ -116,5 +132,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
116
132
|
boldName: boolean;
|
|
117
133
|
country: string;
|
|
118
134
|
useIndicativeHelpText: boolean;
|
|
135
|
+
showReadMore: boolean;
|
|
136
|
+
truncateWordsNumber: number;
|
|
119
137
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
120
138
|
export default _default;
|