@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.
@@ -1,23 +1,21 @@
1
- import n from "graphql-tag";
2
- import h from "numeral";
3
- import { computed as M } from "vue";
4
- import { mdiMapMarker as b, mdiHome as F, mdiLink as E } from "@mdi/js";
5
- import { LOAN_CALLOUTS_FRAGMENT as O, LOAN_GEOCODE_FRAGMENT as R, LOAN_PROGRESS_FRAGMENT as S, loanCardComputedProperties as G, loanCardMethods as P } from "../utils/loanCard.js";
6
- import w from "./KvLoanUse.js";
7
- import D from "./KvBorrowerImage.js";
8
- import U from "./KvLoanCallouts.js";
9
- import $ from "./KvLendCta.js";
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 W from "./KvLoanTag.js";
13
- import x from "./KvMaterialIcon.js";
14
- import H from "./KvLoadingPlaceholder.js";
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 j, KV_LEND_CTA_USER_FRAGMENT as z } from "./KvLendCta2.js";
17
- import { KV_LOAN_TAG_FRAGMENT as J } from "./KvLoanTag2.js";
18
- import { KV_LOAN_USE_FRAGMENT as Q } from "./KvLoanUse2.js";
19
- import { KV_LOAN_BOOKMARK_FRAGMENT as X } from "./KvLoanBookmark2.js";
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
- ${j}
43
- ${J}
40
+ ${z}
44
41
  ${Q}
45
- ${O}
42
+ ${X}
46
43
  ${R}
47
- ${S}
48
- `, Ce = n`
44
+ ${O}
45
+ ${G}
46
+ `, ge = r`
49
47
  fragment KvCompactLoanCardUser on LoanBasic {
50
48
  id
51
49
  ...KvLendCtaUser
52
- ...KvLoanBookmark
53
50
  }
54
- ${z}
55
- ${X}
56
- `, _e = {
51
+ ${J}
52
+ `, he = {
57
53
  name: "KvCompactLoanCard",
58
54
  components: {
59
- KvBorrowerImage: D,
60
- KvLoadingPlaceholder: H,
61
- KvLoanUse: w,
62
- KvMaterialIcon: x,
63
- KvLendCta: $,
64
- KvLoanTag: W,
65
- KvLoanCallouts: U,
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: o,
195
- borrowerName: r,
207
+ allDataLoaded: a,
208
+ borrowerName: l,
196
209
  city: i,
197
- countryName: l,
198
- distributionModel: s,
199
- formattedLocation: u,
200
- fundraisingPercent: d,
201
- hasProgressData: m,
202
- imageHash: f,
210
+ countryName: s,
211
+ distributionModel: u,
212
+ formattedLocation: d,
213
+ fundraisingPercent: m,
214
+ hasProgressData: f,
215
+ imageHash: c,
203
216
  isLoading: p,
204
- loanAmount: c,
205
- loanBorrowerCount: L,
206
- loanCallouts: y,
207
- loanStatus: A,
208
- loanUse: C,
209
- readMorePath: _,
210
- state: g,
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: K,
225
+ unreservedAmount: b,
213
226
  sharesAvailable: B
214
- } = G(e), {
227
+ } = P(e), {
215
228
  clickReadMore: T
216
- } = P(e, t), k = () => {
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 a = e.website.trim();
222
- return a.startsWith("http://") || a.startsWith("https://") ? a : `https://${a}`;
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: o,
226
- borrowerName: r,
239
+ allDataLoaded: a,
240
+ borrowerName: l,
227
241
  city: i,
228
- countryName: l,
229
- distributionModel: s,
230
- formattedLocation: u,
242
+ countryName: s,
243
+ distributionModel: u,
244
+ formattedLocation: d,
231
245
  formattedWebsite: v,
232
- fundraisingPercent: d,
233
- hasProgressData: m,
234
- imageHash: f,
246
+ fundraisingPercent: m,
247
+ hasProgressData: f,
248
+ imageHash: c,
235
249
  isLoading: p,
236
- loanAmount: c,
237
- loanBorrowerCount: L,
238
- loanCallouts: y,
239
- loanStatus: A,
240
- loanUse: C,
241
- mdiMapMarker: b,
242
- mdiHome: F,
243
- mdiLink: E,
244
- readMorePath: _,
245
- state: g,
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: K,
262
+ unreservedAmount: b,
248
263
  sharesAvailable: B,
264
+ customStyle: k,
249
265
  clickReadMore: T,
250
- trackWebsiteClick: k
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, o;
260
- const e = ((o = (t = this.loan) == null ? void 0 : t.loanFundraisingInfo) == null ? void 0 : o.fundedAmount) ?? 0;
261
- return h(e).format("$0,0");
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
- Ae as KV_COMPACT_LOAN_CARD_FRAGMENT,
267
- Ce as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
268
- _e as default
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: {
@@ -1 +1 @@
1
- .amountDropdownWrapper[data-v-a90ed7f0] select{border-radius:14px 0 0 14px}.lend-again[data-v-a90ed7f0] span{padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-a90ed7f0] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-a90ed7f0] select{cursor:pointer;border-radius:1rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-a90ed7f0] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.preset-option[data-v-a90ed7f0] 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-a90ed7f0] select,.selected-option[data-v-a90ed7f0] 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-a90ed7f0] span>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 410px){.mobile-dropdown-small[data-v-a90ed7f0]{flex:0 0 40%}}
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%}}
@@ -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 a, withCtx as w, createTextVNode as f, toDisplayString as r, createElementVNode as c, createVNode as b, withModifiers as D, normalizeClass as u, Fragment as k, renderList as _, createCommentVNode as i } from "vue";
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" }, S = ["value"], p = { 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 = {
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(), a(m, {
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(r(e.loanInBasketButtonText), 1)
36
+ f(a(e.loanInBasketButtonText), 1)
37
37
  ]),
38
38
  _: 1
39
- }, 8, ["to", "href"])) : e.showNonActionableLoanButton ? (l(), a(m, {
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(r(e.ctaButtonText), 1)
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(), a(m, {
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(), a(m, {
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(" $ " + r(t), 1)
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(), a(h, {
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
- }, r(t !== d.OTHER_OPTION ? `$${t}` : t), 9, I))), 128))
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(), a(h, {
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
- }, r(t !== d.OTHER_OPTION ? `$${t}` : t), 9, S))), 128))
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", p, [
149
- c("span", W, r(e.ctaButtonText), 1)
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(), a(m, {
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(" $ " + r(t), 1)
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(), a(h, {
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
- }, r(t !== d.OTHER_OPTION ? `${t}` : t), 9, K))), 128))
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(), a(h, {
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
- }, r(t !== d.OTHER_OPTION ? `${t}` : t), 9, j))), 128))
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, r(e.ctaButtonText), 1)
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(), a(m, {
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(" $" + r(t), 1)
250
+ f(" $" + a(t), 1)
251
251
  ]),
252
252
  _: 2
253
253
  }, 1032, ["class", "onClick"]))), 128)),
254
- e.showFilteredDropdown ? (l(), a(h, {
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
- }, r(t !== d.OTHER_OPTION ? `$${t}` : t), 9, q))), 128))
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(), a(h, {
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
- }, " $" + r(t), 9, Q))), 128))
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(), a(m, {
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(r(e.ctaButtonText), 1)
315
+ f(a(e.ctaButtonText), 1)
316
316
  ]),
317
317
  _: 1
318
- }, 8, ["class"])) : e.showLendAgain ? (l(), a(m, {
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(r(n.primaryButtonText || "Lend") + " again ", 1)
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(), a(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(), a(m, {
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-a90ed7f0"]]);
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;