@kiva/kv-components 6.29.2 → 6.30.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/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +96 -142
- package/package.json +2 -2
package/dist/vue/KvLendCta.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.amountDropdownWrapper[data-v-
|
|
1
|
+
.amountDropdownWrapper[data-v-b607e1c2] select{border-radius:14px 0 0 14px}.lend-again[data-v-b607e1c2] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-b607e1c2] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-b607e1c2] select{cursor:pointer;border-radius:.875rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-b607e1c2] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.preset-option[data-v-b607e1c2] 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-b607e1c2] select,.selected-option[data-v-b607e1c2] 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-b607e1c2] span>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
|
package/dist/vue/KvLendCta.js
CHANGED
|
@@ -1,36 +1,34 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mdiChevronRight as
|
|
3
|
-
import { getLendCtaSelectedOption as g, getDropdownPriceArray as
|
|
4
|
-
import
|
|
5
|
-
import
|
|
1
|
+
import T from "graphql-tag";
|
|
2
|
+
import { mdiChevronRight as _ } from "@mdi/js";
|
|
3
|
+
import { getLendCtaSelectedOption as g, getDropdownPriceArray as C } from "../utils/loanUtils.js";
|
|
4
|
+
import D from "./KvLendAmountButton.js";
|
|
5
|
+
import P from "./KvSelect.js";
|
|
6
6
|
import F from "./KvButton.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { resolveComponent as A, openBlock as i, createElementBlock as r, createBlock as a, withCtx as l, createElementVNode as u, createCommentVNode as d, normalizeClass as m, createTextVNode as w, toDisplayString as f, createVNode as V, withModifiers as y, Fragment as L, renderList as v } from "vue";
|
|
7
|
+
import S from "./KvMaterialIcon.js";
|
|
8
|
+
import { resolveComponent as k, openBlock as i, createElementBlock as a, createBlock as r, withCtx as d, createTextVNode as c, toDisplayString as m, createElementVNode as p, createVNode as I, withModifiers as y, normalizeClass as f, Fragment as B, renderList as v, createCommentVNode as l } from "vue";
|
|
10
9
|
import "./KvLendCta.css";
|
|
11
|
-
import
|
|
12
|
-
const
|
|
10
|
+
import N from "../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
+
const w = "Other", nt = T`
|
|
13
12
|
fragment KvLendCta on LoanBasic {
|
|
14
13
|
id
|
|
15
14
|
name
|
|
16
15
|
status
|
|
17
16
|
minNoteSize
|
|
18
17
|
}
|
|
19
|
-
`,
|
|
18
|
+
`, st = T`
|
|
20
19
|
fragment KvLendCtaUser on LoanBasic {
|
|
21
20
|
id
|
|
22
21
|
userProperties {
|
|
23
22
|
lentTo
|
|
24
23
|
}
|
|
25
24
|
}
|
|
26
|
-
`,
|
|
25
|
+
`, O = {
|
|
27
26
|
name: "KvLendCta",
|
|
28
27
|
components: {
|
|
29
|
-
KvLendAmountButton:
|
|
28
|
+
KvLendAmountButton: D,
|
|
30
29
|
KvUiButton: F,
|
|
31
|
-
KvUiSelect:
|
|
32
|
-
KvMaterialIcon:
|
|
33
|
-
KvCartPill: N
|
|
30
|
+
KvUiSelect: P,
|
|
31
|
+
KvMaterialIcon: S
|
|
34
32
|
},
|
|
35
33
|
props: {
|
|
36
34
|
loan: {
|
|
@@ -124,16 +122,12 @@ const k = "Other", it = C`
|
|
|
124
122
|
kvTrackCategory: {
|
|
125
123
|
type: String,
|
|
126
124
|
default: "Lending"
|
|
127
|
-
},
|
|
128
|
-
showPill: {
|
|
129
|
-
type: Boolean,
|
|
130
|
-
default: !1
|
|
131
125
|
}
|
|
132
126
|
},
|
|
133
127
|
data() {
|
|
134
128
|
var t, n;
|
|
135
129
|
return {
|
|
136
|
-
mdiChevronRight:
|
|
130
|
+
mdiChevronRight: _,
|
|
137
131
|
defaultAmountOptions: [25, 50, 75],
|
|
138
132
|
selectedOption: g(
|
|
139
133
|
this.getCookie,
|
|
@@ -144,8 +138,8 @@ const k = "Other", it = C`
|
|
|
144
138
|
this.userBalance,
|
|
145
139
|
this.fiveDollarsSelected
|
|
146
140
|
),
|
|
147
|
-
selectedDropdownOption:
|
|
148
|
-
OTHER_OPTION:
|
|
141
|
+
selectedDropdownOption: w,
|
|
142
|
+
OTHER_OPTION: w
|
|
149
143
|
};
|
|
150
144
|
},
|
|
151
145
|
computed: {
|
|
@@ -173,7 +167,7 @@ const k = "Other", it = C`
|
|
|
173
167
|
return ((t = this.basketItems) == null ? void 0 : t.some((n) => n.__typename === "LoanReservation" && n.id === this.loanId)) ?? !1;
|
|
174
168
|
},
|
|
175
169
|
prices() {
|
|
176
|
-
const t = parseFloat(this.unreservedAmount < 25 ? this.minNoteSize : 25), n =
|
|
170
|
+
const t = parseFloat(this.unreservedAmount < 25 ? this.minNoteSize : 25), n = C(
|
|
177
171
|
this.unreservedAmount,
|
|
178
172
|
this.isCompleteLoanActive,
|
|
179
173
|
t,
|
|
@@ -190,7 +184,7 @@ const k = "Other", it = C`
|
|
|
190
184
|
if (this.prices.length === 4)
|
|
191
185
|
return [];
|
|
192
186
|
const t = this.prices.slice(this.defaultAmountOptions.length);
|
|
193
|
-
return t.unshift(
|
|
187
|
+
return t.unshift(w), t;
|
|
194
188
|
},
|
|
195
189
|
loanName() {
|
|
196
190
|
var t;
|
|
@@ -260,7 +254,7 @@ const k = "Other", it = C`
|
|
|
260
254
|
return this.isLentTo && !this.isLessThan25;
|
|
261
255
|
},
|
|
262
256
|
selectedDropdown() {
|
|
263
|
-
return this.selectedDropdownOption !==
|
|
257
|
+
return this.selectedDropdownOption !== w;
|
|
264
258
|
},
|
|
265
259
|
showFilteredDropdown() {
|
|
266
260
|
return this.presetDropdownPrices.length > 1;
|
|
@@ -271,17 +265,17 @@ const k = "Other", it = C`
|
|
|
271
265
|
},
|
|
272
266
|
watch: {
|
|
273
267
|
unreservedAmount(t, n) {
|
|
274
|
-
var s,
|
|
268
|
+
var s, A;
|
|
275
269
|
t !== n && n === "" && (this.selectedOption = g(
|
|
276
270
|
this.getCookie,
|
|
277
271
|
this.setCookie,
|
|
278
272
|
this.enableFiveDollarsNotes,
|
|
279
|
-
(
|
|
273
|
+
(A = (s = this.route) == null ? void 0 : s.query) == null ? void 0 : A.utm_campaign,
|
|
280
274
|
t,
|
|
281
275
|
this.userBalance,
|
|
282
276
|
this.fiveDollarsSelected,
|
|
283
277
|
this.showPresetAmounts
|
|
284
|
-
)), this.showPresetAmounts && (this.selectedOption =
|
|
278
|
+
)), this.showPresetAmounts && (this.selectedOption = w);
|
|
285
279
|
}
|
|
286
280
|
},
|
|
287
281
|
methods: {
|
|
@@ -331,7 +325,7 @@ const k = "Other", it = C`
|
|
|
331
325
|
t,
|
|
332
326
|
this.loanId,
|
|
333
327
|
this.loanId
|
|
334
|
-
), this.selectedOption = t, this.selectedDropdownOption =
|
|
328
|
+
), this.selectedOption = t, this.selectedDropdownOption = w;
|
|
335
329
|
},
|
|
336
330
|
handleCheckout() {
|
|
337
331
|
this.kvTrackFunction(
|
|
@@ -343,155 +337,115 @@ const k = "Other", it = C`
|
|
|
343
337
|
);
|
|
344
338
|
}
|
|
345
339
|
}
|
|
346
|
-
},
|
|
347
|
-
key:
|
|
340
|
+
}, V = { class: "tw-whitespace-nowrap" }, K = {
|
|
341
|
+
key: 2,
|
|
348
342
|
class: "tw-w-full tw-text-center tw-rounded tw-p-2",
|
|
349
343
|
style: { background: "#f1f1f1" }
|
|
350
|
-
},
|
|
344
|
+
}, M = { class: "tw-flex" }, R = ["disabled"], E = {
|
|
351
345
|
key: 0,
|
|
352
346
|
class: "tw-flex tw-gap-1 lg:tw-gap-2 tw-flex-wrap md:tw-flex-nowrap"
|
|
353
|
-
},
|
|
347
|
+
}, U = ["value"], z = {
|
|
354
348
|
key: 1,
|
|
355
349
|
class: "amountDropdownWrapper"
|
|
356
|
-
},
|
|
357
|
-
function
|
|
358
|
-
const
|
|
359
|
-
return i(),
|
|
360
|
-
|
|
350
|
+
}, H = ["value"];
|
|
351
|
+
function j(t, n, s, A, u, e) {
|
|
352
|
+
const h = k("kv-ui-button"), x = k("kv-material-icon"), L = k("kv-ui-select"), b = k("kv-lend-amount-button");
|
|
353
|
+
return i(), a("div", V, [
|
|
354
|
+
e.isInBasket ? (i(), r(h, {
|
|
361
355
|
key: 0,
|
|
362
|
-
"borrower-name": e.loanName,
|
|
363
|
-
class: "!tw-w-full tw-justify-center tw-pb-2"
|
|
364
|
-
}, {
|
|
365
|
-
icon: l(() => n[5] || (n[5] = [
|
|
366
|
-
u("svg", {
|
|
367
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
368
|
-
width: "25",
|
|
369
|
-
height: "24",
|
|
370
|
-
viewBox: "0 0 25 24",
|
|
371
|
-
fill: "none",
|
|
372
|
-
class: "tw-min-w-3"
|
|
373
|
-
}, [
|
|
374
|
-
u("mask", {
|
|
375
|
-
id: "mask0_5025_974",
|
|
376
|
-
style: { "mask-type": "alpha" },
|
|
377
|
-
maskUnits: "userSpaceOnUse",
|
|
378
|
-
x: "0",
|
|
379
|
-
y: "0",
|
|
380
|
-
width: "25",
|
|
381
|
-
height: "24"
|
|
382
|
-
}, [
|
|
383
|
-
u("rect", {
|
|
384
|
-
x: "0.5",
|
|
385
|
-
width: "24",
|
|
386
|
-
height: "24",
|
|
387
|
-
fill: "#D9D9D9"
|
|
388
|
-
})
|
|
389
|
-
]),
|
|
390
|
-
u("g", { mask: "url(#mask0_5025_974)" }, [
|
|
391
|
-
u("path", {
|
|
392
|
-
d: "M12.5001 21L9.1251 22.125C9.00843 22.1583 8.9001 22.1833 8.8001 22.2C8.7001 22.2167 8.6001 22.225 8.5001 22.225C7.96676 22.225 7.5001 22.0375 7.1001 21.6625C6.7001 21.2875 6.5001 20.8083 6.5001 20.225V14.775L3.9001 10.55C3.8001 10.3833 3.7251 10.2125 3.6751 10.0375C3.6251 9.8625 3.6001 9.68333 3.6001 9.5C3.6001 9.31667 3.6251 9.1375 3.6751 8.9625C3.7251 8.7875 3.8001 8.61667 3.9001 8.45L7.3001 2.95C7.48343 2.65 7.7251 2.41667 8.0251 2.25C8.3251 2.08333 8.6501 2 9.0001 2H16.0001C16.3501 2 16.6751 2.08333 16.9751 2.25C17.2751 2.41667 17.5168 2.65 17.7001 2.95L21.1001 8.45C21.2001 8.61667 21.2751 8.7875 21.3251 8.9625C21.3751 9.1375 21.4001 9.31667 21.4001 9.5C21.4001 9.68333 21.3751 9.8625 21.3251 10.0375C21.2751 10.2125 21.2001 10.3833 21.1001 10.55L18.5001 14.775V20.225C18.5001 20.8083 18.3001 21.2875 17.9001 21.6625C17.5001 22.0375 17.0334 22.225 16.5001 22.225C16.4001 22.225 16.3001 22.2167 16.2001 22.2C16.1001 22.1833 15.9918 22.1583 15.8751 22.125L12.5001 21ZM9.0001 15H16.0001L19.4001 9.5L16.0001 4H9.0001L5.6001 9.5L9.0001 15ZM11.4501 10.75L14.9751 7.2C15.1584 7 15.3876 6.90417 15.6626 6.9125C15.9376 6.92083 16.1751 7.01667 16.3751 7.2C16.5751 7.4 16.6793 7.6375 16.6876 7.9125C16.6959 8.1875 16.6001 8.425 16.4001 8.625L12.1501 12.875C11.9501 13.075 11.7168 13.175 11.4501 13.175C11.1834 13.175 10.9501 13.075 10.7501 12.875L8.6251 10.75C8.4251 10.55 8.3251 10.3125 8.3251 10.0375C8.3251 9.7625 8.4251 9.525 8.6251 9.325C8.8251 9.125 9.0626 9.025 9.3376 9.025C9.6126 9.025 9.8501 9.125 10.0501 9.325L11.4501 10.75Z",
|
|
393
|
-
fill: "#757575"
|
|
394
|
-
})
|
|
395
|
-
])
|
|
396
|
-
], -1)
|
|
397
|
-
])),
|
|
398
|
-
_: 1
|
|
399
|
-
}, 8, ["borrower-name"])) : d("", !0),
|
|
400
|
-
e.isInBasket ? (i(), a(c, {
|
|
401
|
-
key: 1,
|
|
402
356
|
variant: "secondary",
|
|
403
|
-
class:
|
|
357
|
+
class: "tw-inline-flex tw-flex-1 tw-w-full",
|
|
404
358
|
"data-testid": "bp-lend-cta-checkout-button",
|
|
405
359
|
to: s.externalLinks ? void 0 : "/basket",
|
|
406
360
|
href: s.externalLinks ? "/basket" : void 0,
|
|
407
361
|
onClick: n[0] || (n[0] = (o) => e.clickSecondaryButton(o))
|
|
408
362
|
}, {
|
|
409
|
-
default:
|
|
410
|
-
|
|
363
|
+
default: d(() => [
|
|
364
|
+
c(m(e.loanInBasketButtonText), 1)
|
|
411
365
|
]),
|
|
412
366
|
_: 1
|
|
413
|
-
}, 8, ["
|
|
414
|
-
key:
|
|
367
|
+
}, 8, ["to", "href"])) : e.showNonActionableLoanButton ? (i(), r(h, {
|
|
368
|
+
key: 1,
|
|
415
369
|
class: "tw-inline-flex tw-flex-1"
|
|
416
370
|
}, {
|
|
417
|
-
default:
|
|
418
|
-
|
|
371
|
+
default: d(() => [
|
|
372
|
+
c(m(e.ctaButtonText), 1)
|
|
419
373
|
]),
|
|
420
374
|
_: 1
|
|
421
|
-
})) : e.isFunded ? (i(),
|
|
422
|
-
key:
|
|
375
|
+
})) : e.isFunded ? (i(), a("div", K, " This loan was just funded! 🎉 ")) : s.showViewLoan ? (i(), r(h, {
|
|
376
|
+
key: 3,
|
|
423
377
|
state: `${e.allSharesReserved ? "disabled" : ""}`,
|
|
424
378
|
to: s.externalLinks ? void 0 : e.readMorePath,
|
|
425
379
|
href: s.externalLinks ? e.readMorePath : void 0,
|
|
426
380
|
class: "tw-mb-0",
|
|
427
381
|
onClick: n[1] || (n[1] = (o) => t.$emit("show-loan-details", o))
|
|
428
382
|
}, {
|
|
429
|
-
default:
|
|
430
|
-
|
|
431
|
-
n[
|
|
432
|
-
|
|
383
|
+
default: d(() => [
|
|
384
|
+
p("span", M, [
|
|
385
|
+
n[5] || (n[5] = c(" View loan ")),
|
|
386
|
+
I(x, {
|
|
433
387
|
class: "tw-w-3 tw-h-3 tw-align-middle",
|
|
434
|
-
icon:
|
|
388
|
+
icon: u.mdiChevronRight
|
|
435
389
|
}, null, 8, ["icon"])
|
|
436
390
|
])
|
|
437
391
|
]),
|
|
438
392
|
_: 1
|
|
439
|
-
}, 8, ["state", "to", "href"])) : e.useFormSubmit ? (i(),
|
|
440
|
-
key:
|
|
393
|
+
}, 8, ["state", "to", "href"])) : e.useFormSubmit ? (i(), a("form", {
|
|
394
|
+
key: 4,
|
|
441
395
|
class: "tw-w-full tw-flex",
|
|
442
396
|
onSubmit: n[4] || (n[4] = y((...o) => e.addToBasket && e.addToBasket(...o), ["prevent"]))
|
|
443
397
|
}, [
|
|
444
|
-
|
|
445
|
-
class:
|
|
398
|
+
p("fieldset", {
|
|
399
|
+
class: f(["tw-w-full tw-flex", {
|
|
446
400
|
"tw-flex-col md:tw-flex-row md:tw-justify-between tw-min-w-0": s.showPresetAmounts,
|
|
447
401
|
"tw-gap-1.5": s.showPresetAmounts && !e.isLendAmountButton
|
|
448
402
|
}]),
|
|
449
403
|
disabled: s.isAdding,
|
|
450
404
|
"data-testid": "bp-lend-cta-select-and-button"
|
|
451
405
|
}, [
|
|
452
|
-
s.showPresetAmounts && !s.isAdding ? (i(),
|
|
453
|
-
e.isLendAmountButton ?
|
|
406
|
+
s.showPresetAmounts && !s.isAdding ? (i(), a("div", E, [
|
|
407
|
+
e.isLendAmountButton ? l("", !0) : (i(!0), a(B, { key: 0 }, v(e.presetButtonsPrices, (o) => (i(), r(h, {
|
|
454
408
|
key: o,
|
|
455
409
|
variant: "secondary",
|
|
456
|
-
class:
|
|
410
|
+
class: f(["tw-inline-flex tw-flex-1 preset-option tw-w-8", { "selected-option": u.selectedOption == o }]),
|
|
457
411
|
"data-testid": "bp-lend-cta-lend-button",
|
|
458
|
-
onClick: (
|
|
412
|
+
onClick: (q) => e.clickPresetButton(o)
|
|
459
413
|
}, {
|
|
460
|
-
default:
|
|
461
|
-
|
|
414
|
+
default: d(() => [
|
|
415
|
+
c(" $" + m(o), 1)
|
|
462
416
|
]),
|
|
463
417
|
_: 2
|
|
464
418
|
}, 1032, ["class", "onClick"]))), 128)),
|
|
465
|
-
e.showFilteredDropdown ? (i(),
|
|
419
|
+
e.showFilteredDropdown ? (i(), r(L, {
|
|
466
420
|
key: 1,
|
|
467
421
|
id: `LoanAmountDropdown_${e.loanId}`,
|
|
468
|
-
modelValue:
|
|
422
|
+
modelValue: u.selectedDropdownOption,
|
|
469
423
|
"onUpdate:modelValue": [
|
|
470
|
-
n[2] || (n[2] = (o) =>
|
|
424
|
+
n[2] || (n[2] = (o) => u.selectedDropdownOption = o),
|
|
471
425
|
e.trackLendAmountSelection
|
|
472
426
|
],
|
|
473
|
-
class:
|
|
427
|
+
class: f(["tw-min-w-12 tw-rounded filtered-dropdown tw-w-full", {
|
|
474
428
|
"unselected-dropdown": !e.selectedDropdown,
|
|
475
429
|
"selected-dropdown": e.selectedDropdown
|
|
476
430
|
}]),
|
|
477
431
|
"aria-label": "Lend amount",
|
|
478
432
|
onClick: y(e.clickDropdown, ["stop"])
|
|
479
433
|
}, {
|
|
480
|
-
default:
|
|
481
|
-
(i(!0),
|
|
434
|
+
default: d(() => [
|
|
435
|
+
(i(!0), a(B, null, v(e.presetDropdownPrices, (o) => (i(), a("option", {
|
|
482
436
|
key: o,
|
|
483
437
|
value: o
|
|
484
|
-
},
|
|
438
|
+
}, m(o !== u.OTHER_OPTION ? `$${o}` : o), 9, U))), 128))
|
|
485
439
|
]),
|
|
486
440
|
_: 1
|
|
487
|
-
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) :
|
|
488
|
-
])) : s.showPresetAmounts ?
|
|
489
|
-
e.hideShowLendDropdown && !e.isLessThan25 ? (i(),
|
|
441
|
+
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : l("", !0)
|
|
442
|
+
])) : s.showPresetAmounts ? l("", !0) : (i(), a("div", z, [
|
|
443
|
+
e.hideShowLendDropdown && !e.isLessThan25 ? (i(), r(L, {
|
|
490
444
|
key: 0,
|
|
491
445
|
id: `LoanAmountDropdown_${e.loanId}`,
|
|
492
|
-
modelValue:
|
|
446
|
+
modelValue: u.selectedOption,
|
|
493
447
|
"onUpdate:modelValue": [
|
|
494
|
-
n[3] || (n[3] = (o) =>
|
|
448
|
+
n[3] || (n[3] = (o) => u.selectedOption = o),
|
|
495
449
|
e.trackLendAmountSelection
|
|
496
450
|
],
|
|
497
451
|
class: "tw-min-w-12",
|
|
@@ -499,45 +453,45 @@ function Z(t, n, s, p, h, e) {
|
|
|
499
453
|
"aria-label": "Lend amount",
|
|
500
454
|
onClick: y(e.clickDropdown, ["stop"])
|
|
501
455
|
}, {
|
|
502
|
-
default:
|
|
503
|
-
(i(!0),
|
|
456
|
+
default: d(() => [
|
|
457
|
+
(i(!0), a(B, null, v(e.prices, (o) => (i(), a("option", {
|
|
504
458
|
key: o,
|
|
505
459
|
value: o
|
|
506
|
-
}, " $" +
|
|
460
|
+
}, " $" + m(o), 9, H))), 128))
|
|
507
461
|
]),
|
|
508
462
|
_: 1
|
|
509
|
-
}, 8, ["id", "modelValue", "onUpdate:modelValue", "onClick"])) :
|
|
463
|
+
}, 8, ["id", "modelValue", "onUpdate:modelValue", "onClick"])) : l("", !0)
|
|
510
464
|
])),
|
|
511
|
-
|
|
512
|
-
class:
|
|
465
|
+
p("div", {
|
|
466
|
+
class: f({
|
|
513
467
|
"tw-min-w-0": s.showPresetAmounts,
|
|
514
468
|
lendButtonWrapper: e.hideShowLendDropdown && !s.showPresetAmounts,
|
|
515
469
|
"tw-hidden": e.hideLendButton
|
|
516
470
|
})
|
|
517
471
|
}, [
|
|
518
|
-
e.lendButtonVisibility && !e.isLessThan25 ? (i(),
|
|
472
|
+
e.lendButtonVisibility && !e.isLessThan25 ? (i(), r(h, {
|
|
519
473
|
key: "lendButton",
|
|
520
|
-
class:
|
|
474
|
+
class: f(["tw-inline-flex tw-flex-1", { "button-ellipsis tw-w-full": s.showPresetAmounts }]),
|
|
521
475
|
"data-testid": "bp-lend-cta-lend-button",
|
|
522
476
|
type: "submit"
|
|
523
477
|
}, {
|
|
524
|
-
default:
|
|
525
|
-
|
|
478
|
+
default: d(() => [
|
|
479
|
+
c(m(e.ctaButtonText), 1)
|
|
526
480
|
]),
|
|
527
481
|
_: 1
|
|
528
|
-
}, 8, ["class"])) : e.showLendAgain ? (i(),
|
|
482
|
+
}, 8, ["class"])) : e.showLendAgain ? (i(), r(h, {
|
|
529
483
|
key: "lendAgainButton",
|
|
530
|
-
class:
|
|
484
|
+
class: f(["lend-again", { "tw-w-full": s.showPresetAmounts }]),
|
|
531
485
|
"data-testid": "bp-lend-cta-lend-again-button",
|
|
532
486
|
type: "submit"
|
|
533
487
|
}, {
|
|
534
|
-
default:
|
|
535
|
-
|
|
488
|
+
default: d(() => [
|
|
489
|
+
c(m(s.primaryButtonText || "Lend") + " again ", 1)
|
|
536
490
|
]),
|
|
537
491
|
_: 1
|
|
538
|
-
}, 8, ["class"])) :
|
|
492
|
+
}, 8, ["class"])) : l("", !0)
|
|
539
493
|
], 2),
|
|
540
|
-
e.isLendAmountButton && !s.enableFiveDollarsNotes ? (i(),
|
|
494
|
+
e.isLendAmountButton && !s.enableFiveDollarsNotes ? (i(), r(b, {
|
|
541
495
|
key: 2,
|
|
542
496
|
class: "tw-w-full",
|
|
543
497
|
"loan-id": e.loanId,
|
|
@@ -545,23 +499,23 @@ function Z(t, n, s, p, h, e) {
|
|
|
545
499
|
"amount-left": e.amountForLendAmountButton,
|
|
546
500
|
"is-adding": s.isAdding,
|
|
547
501
|
onAddToBasket: e.addToBasket
|
|
548
|
-
}, null, 8, ["loan-id", "amount-left", "is-adding", "onAddToBasket"])) :
|
|
549
|
-
!s.isLoading && s.isAdding ? (i(),
|
|
502
|
+
}, null, 8, ["loan-id", "amount-left", "is-adding", "onAddToBasket"])) : l("", !0),
|
|
503
|
+
!s.isLoading && s.isAdding ? (i(), r(h, {
|
|
550
504
|
key: 3,
|
|
551
505
|
class: "tw-inline-flex tw-flex-1"
|
|
552
506
|
}, {
|
|
553
|
-
default:
|
|
554
|
-
|
|
507
|
+
default: d(() => n[6] || (n[6] = [
|
|
508
|
+
c(" Adding to basket ")
|
|
555
509
|
])),
|
|
556
510
|
_: 1
|
|
557
|
-
})) :
|
|
558
|
-
], 10,
|
|
559
|
-
], 32)) :
|
|
511
|
+
})) : l("", !0)
|
|
512
|
+
], 10, R)
|
|
513
|
+
], 32)) : l("", !0)
|
|
560
514
|
]);
|
|
561
515
|
}
|
|
562
|
-
const
|
|
516
|
+
const ot = /* @__PURE__ */ N(O, [["render", j], ["__scopeId", "data-v-b607e1c2"]]);
|
|
563
517
|
export {
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
518
|
+
nt as KV_LEND_CTA_FRAGMENT,
|
|
519
|
+
st as KV_LEND_CTA_USER_FRAGMENT,
|
|
520
|
+
ot as default
|
|
567
521
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.30.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"embla-carousel-fade",
|
|
112
112
|
"popper.js"
|
|
113
113
|
],
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "6e0f2ffccae6ce65d12657719f2381c0f142408f"
|
|
115
115
|
}
|