@kiva/kv-components 6.50.2 → 6.50.4
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
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.amountDropdownWrapper[data-v-
|
|
1
|
+
.amountDropdownWrapper[data-v-d161d592] select{border-radius:14px 0 0 14px}.lend-again[data-v-d161d592] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-d161d592] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-d161d592] select{cursor:pointer;border-radius:1rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-d161d592] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.preset-option[data-v-d161d592] 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-d161d592] select,.selected-option[data-v-d161d592] 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-d161d592] span>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 410px){.mobile-dropdown-small[data-v-d161d592]{flex:0 0 40%}}
|
package/dist/vue/KvLendCta.js
CHANGED
|
@@ -1,35 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { mdiChevronRight as
|
|
1
|
+
import b from "graphql-tag";
|
|
2
|
+
import { mdiChevronRight as P } from "@mdi/js";
|
|
3
3
|
import { throttle as C } from "../utils/throttle.js";
|
|
4
|
-
import { getLendCtaSelectedOption as g, getDropdownPriceArray as
|
|
5
|
-
import
|
|
4
|
+
import { getLendCtaSelectedOption as g, getDropdownPriceArray as O } from "../utils/loanUtils.js";
|
|
5
|
+
import I from "./KvLendAmountButton.js";
|
|
6
6
|
import S from "./KvSelect.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { resolveComponent as
|
|
7
|
+
import F from "./KvButton.js";
|
|
8
|
+
import N from "./KvMaterialIcon.js";
|
|
9
|
+
import { resolveComponent as y, openBlock as i, createElementBlock as l, createBlock as r, withCtx as a, createTextVNode as m, toDisplayString as u, createElementVNode as f, createVNode as _, withModifiers as B, normalizeClass as h, Fragment as k, renderList as A, createCommentVNode as c } from "vue";
|
|
10
10
|
import "./KvLendCta.css";
|
|
11
|
-
import
|
|
12
|
-
const
|
|
11
|
+
import V from "../_virtual/_plugin-vue_export-helper.js";
|
|
12
|
+
const p = "Other", E = 430, ce = b`
|
|
13
13
|
fragment KvLendCta on LoanBasic {
|
|
14
14
|
id
|
|
15
15
|
name
|
|
16
16
|
status
|
|
17
17
|
minNoteSize
|
|
18
18
|
}
|
|
19
|
-
`, we =
|
|
19
|
+
`, we = b`
|
|
20
20
|
fragment KvLendCtaUser on LoanBasic {
|
|
21
21
|
id
|
|
22
22
|
userProperties {
|
|
23
23
|
lentTo
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
`,
|
|
26
|
+
`, R = {
|
|
27
27
|
name: "KvLendCta",
|
|
28
28
|
components: {
|
|
29
|
-
KvLendAmountButton:
|
|
30
|
-
KvUiButton:
|
|
29
|
+
KvLendAmountButton: I,
|
|
30
|
+
KvUiButton: F,
|
|
31
31
|
KvUiSelect: S,
|
|
32
|
-
KvMaterialIcon:
|
|
32
|
+
KvMaterialIcon: N
|
|
33
33
|
},
|
|
34
34
|
props: {
|
|
35
35
|
loan: {
|
|
@@ -128,7 +128,7 @@ const A = "Other", ce = _`
|
|
|
128
128
|
data() {
|
|
129
129
|
var t, s;
|
|
130
130
|
return {
|
|
131
|
-
mdiChevronRight:
|
|
131
|
+
mdiChevronRight: P,
|
|
132
132
|
defaultAmountOptions: [25, 50, 75],
|
|
133
133
|
selectedOption: g(
|
|
134
134
|
this.getCookie,
|
|
@@ -139,11 +139,12 @@ const A = "Other", ce = _`
|
|
|
139
139
|
this.userBalance,
|
|
140
140
|
this.fiveDollarsSelected
|
|
141
141
|
),
|
|
142
|
-
selectedDropdownOption:
|
|
143
|
-
OTHER_OPTION:
|
|
142
|
+
selectedDropdownOption: p,
|
|
143
|
+
OTHER_OPTION: p,
|
|
144
144
|
// SSR-safe viewport width initialization
|
|
145
145
|
viewportWidth: typeof window < "u" ? window.innerWidth : 1024,
|
|
146
|
-
resizeHandler: void 0
|
|
146
|
+
resizeHandler: void 0,
|
|
147
|
+
MOBILE_DROPDOWN_BREAKPOINT: E
|
|
147
148
|
};
|
|
148
149
|
},
|
|
149
150
|
computed: {
|
|
@@ -171,14 +172,14 @@ const A = "Other", ce = _`
|
|
|
171
172
|
return ((t = this.basketItems) == null ? void 0 : t.some((s) => s.__typename === "LoanReservation" && s.id === this.loanId)) ?? !1;
|
|
172
173
|
},
|
|
173
174
|
prices() {
|
|
174
|
-
const t = parseFloat(this.unreservedAmount < 25 ? this.minNoteSize : 25), s =
|
|
175
|
+
const t = parseFloat(this.unreservedAmount < 25 ? this.minNoteSize : 25), s = O(
|
|
175
176
|
this.unreservedAmount,
|
|
176
177
|
this.isCompleteLoanActive,
|
|
177
178
|
t,
|
|
178
179
|
this.enableFiveDollarsNotes,
|
|
179
180
|
this.isVisitor
|
|
180
181
|
);
|
|
181
|
-
return this.maxAmount ? s.filter((
|
|
182
|
+
return this.maxAmount ? s.filter((o) => parseFloat(o) <= parseFloat(this.maxAmount)) : s;
|
|
182
183
|
},
|
|
183
184
|
presetButtonsPrices() {
|
|
184
185
|
const t = this.prices.slice(0, 3);
|
|
@@ -188,7 +189,7 @@ const A = "Other", ce = _`
|
|
|
188
189
|
if (this.prices.length === 4)
|
|
189
190
|
return [];
|
|
190
191
|
const t = this.prices.slice(this.defaultAmountOptions.length);
|
|
191
|
-
return t.unshift(
|
|
192
|
+
return t.unshift(p), t;
|
|
192
193
|
},
|
|
193
194
|
loanName() {
|
|
194
195
|
var t;
|
|
@@ -258,7 +259,7 @@ const A = "Other", ce = _`
|
|
|
258
259
|
return this.isLentTo && !this.isLessThan25;
|
|
259
260
|
},
|
|
260
261
|
selectedDropdown() {
|
|
261
|
-
return this.selectedDropdownOption !==
|
|
262
|
+
return this.selectedDropdownOption !== p;
|
|
262
263
|
},
|
|
263
264
|
showFilteredDropdown() {
|
|
264
265
|
return this.presetDropdownPrices.length > 1;
|
|
@@ -269,17 +270,17 @@ const A = "Other", ce = _`
|
|
|
269
270
|
},
|
|
270
271
|
watch: {
|
|
271
272
|
unreservedAmount(t, s) {
|
|
272
|
-
var
|
|
273
|
+
var o, L;
|
|
273
274
|
t !== s && s === "" && (this.selectedOption = g(
|
|
274
275
|
this.getCookie,
|
|
275
276
|
this.setCookie,
|
|
276
277
|
this.enableFiveDollarsNotes,
|
|
277
|
-
(
|
|
278
|
+
(L = (o = this.route) == null ? void 0 : o.query) == null ? void 0 : L.utm_campaign,
|
|
278
279
|
t,
|
|
279
280
|
this.userBalance,
|
|
280
281
|
this.fiveDollarsSelected,
|
|
281
282
|
this.showPresetAmounts
|
|
282
|
-
)), this.showPresetAmounts && (this.selectedOption =
|
|
283
|
+
)), this.showPresetAmounts && (this.selectedOption = p);
|
|
283
284
|
}
|
|
284
285
|
},
|
|
285
286
|
mounted() {
|
|
@@ -337,7 +338,7 @@ const A = "Other", ce = _`
|
|
|
337
338
|
t,
|
|
338
339
|
this.loanId,
|
|
339
340
|
this.loanId
|
|
340
|
-
), this.selectedOption = t, this.selectedDropdownOption =
|
|
341
|
+
), this.selectedOption = t, this.selectedDropdownOption = p;
|
|
341
342
|
},
|
|
342
343
|
handleCheckout() {
|
|
343
344
|
this.kvTrackFunction(
|
|
@@ -349,305 +350,268 @@ const A = "Other", ce = _`
|
|
|
349
350
|
);
|
|
350
351
|
}
|
|
351
352
|
}
|
|
352
|
-
},
|
|
353
|
+
}, M = { class: "tw-whitespace-nowrap" }, K = {
|
|
353
354
|
key: 2,
|
|
354
355
|
class: "tw-w-full tw-text-center tw-rounded tw-p-2",
|
|
355
356
|
style: { background: "#f1f1f1" }
|
|
356
|
-
},
|
|
357
|
+
}, W = { class: "tw-flex" }, U = ["disabled"], z = {
|
|
357
358
|
key: 0,
|
|
358
|
-
class: "tw-
|
|
359
|
-
}, q = ["value"], G = {
|
|
360
|
-
key:
|
|
361
|
-
class: "tw-mt-1 mobile-cta-row"
|
|
362
|
-
}, J = { class: "tw-hidden md:tw-block tw-w-full" }, Q = ["disabled"], X = {
|
|
363
|
-
key: 0,
|
|
364
|
-
class: "tw-flex tw-gap-1 lg:tw-gap-2 tw-flex-wrap md:tw-flex-nowrap"
|
|
365
|
-
}, Y = ["value"], Z = {
|
|
366
|
-
key: 1,
|
|
359
|
+
class: "md:tw-hidden tw-w-full"
|
|
360
|
+
}, H = { class: "tw-flex tw-flex-col tw-gap-1 tw-w-full" }, j = { class: "tw-flex tw-gap-1 tw-w-full" }, q = ["value"], G = { class: "tw-flex tw-gap-1" }, J = ["value"], Q = { class: "tw-flex tw-items-center tw-h-full tw-w-full" }, X = { class: "tw-min-w-0 tw-flex-1 tw-overflow-hidden tw-text-ellipsis tw-whitespace-nowrap" }, Y = ["value"], Z = {
|
|
361
|
+
key: 2,
|
|
367
362
|
class: "amountDropdownWrapper"
|
|
368
363
|
}, $ = ["value"];
|
|
369
|
-
function ee(t, s,
|
|
370
|
-
const
|
|
371
|
-
return
|
|
372
|
-
e.isInBasket ? (
|
|
364
|
+
function ee(t, s, o, L, d, e) {
|
|
365
|
+
const w = y("kv-ui-button"), x = y("kv-material-icon"), v = y("kv-ui-select"), T = y("kv-lend-amount-button");
|
|
366
|
+
return i(), l("div", M, [
|
|
367
|
+
e.isInBasket ? (i(), r(w, {
|
|
373
368
|
key: 0,
|
|
374
369
|
variant: "secondary",
|
|
375
370
|
class: "tw-inline-flex tw-flex-1 tw-w-full",
|
|
376
371
|
"data-testid": "bp-lend-cta-checkout-button",
|
|
377
|
-
to:
|
|
378
|
-
href:
|
|
372
|
+
to: o.externalLinks ? void 0 : "/basket",
|
|
373
|
+
href: o.externalLinks ? "/basket" : void 0,
|
|
379
374
|
onClick: s[0] || (s[0] = (n) => e.clickSecondaryButton(n))
|
|
380
375
|
}, {
|
|
381
|
-
default:
|
|
382
|
-
|
|
376
|
+
default: a(() => [
|
|
377
|
+
m(u(e.loanInBasketButtonText), 1)
|
|
383
378
|
]),
|
|
384
379
|
_: 1
|
|
385
|
-
}, 8, ["to", "href"])) : e.showNonActionableLoanButton ? (
|
|
380
|
+
}, 8, ["to", "href"])) : e.showNonActionableLoanButton ? (i(), r(w, {
|
|
386
381
|
key: 1,
|
|
387
382
|
class: "tw-inline-flex tw-flex-1"
|
|
388
383
|
}, {
|
|
389
|
-
default:
|
|
390
|
-
|
|
384
|
+
default: a(() => [
|
|
385
|
+
m(u(e.ctaButtonText), 1)
|
|
391
386
|
]),
|
|
392
387
|
_: 1
|
|
393
|
-
})) : e.isFunded ? (
|
|
388
|
+
})) : e.isFunded ? (i(), l("div", K, " This loan was just funded! 🎉 ")) : o.showViewLoan ? (i(), r(w, {
|
|
394
389
|
key: 3,
|
|
395
390
|
state: `${e.allSharesReserved ? "disabled" : ""}`,
|
|
396
|
-
to:
|
|
397
|
-
href:
|
|
391
|
+
to: o.externalLinks ? void 0 : e.readMorePath,
|
|
392
|
+
href: o.externalLinks ? e.readMorePath : void 0,
|
|
398
393
|
class: "tw-mb-0",
|
|
399
394
|
onClick: s[1] || (s[1] = (n) => t.$emit("show-loan-details", n))
|
|
400
395
|
}, {
|
|
401
|
-
default:
|
|
402
|
-
f("span",
|
|
403
|
-
s[7] || (s[7] =
|
|
404
|
-
|
|
396
|
+
default: a(() => [
|
|
397
|
+
f("span", W, [
|
|
398
|
+
s[7] || (s[7] = m(" View loan ")),
|
|
399
|
+
_(x, {
|
|
405
400
|
class: "tw-w-3 tw-h-3 tw-align-middle",
|
|
406
|
-
icon:
|
|
401
|
+
icon: d.mdiChevronRight
|
|
407
402
|
}, null, 8, ["icon"])
|
|
408
403
|
])
|
|
409
404
|
]),
|
|
410
405
|
_: 1
|
|
411
|
-
}, 8, ["state", "to", "href"])) : e.useFormSubmit ? (
|
|
406
|
+
}, 8, ["state", "to", "href"])) : e.useFormSubmit ? (i(), l("form", {
|
|
412
407
|
key: 4,
|
|
413
408
|
class: "tw-w-full tw-flex",
|
|
414
|
-
onSubmit: s[6] || (s[6] =
|
|
409
|
+
onSubmit: s[6] || (s[6] = B((...n) => e.addToBasket && e.addToBasket(...n), ["prevent"]))
|
|
415
410
|
}, [
|
|
416
|
-
f("
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
411
|
+
f("fieldset", {
|
|
412
|
+
class: h(["tw-w-full tw-flex", {
|
|
413
|
+
"tw-flex-col md:tw-flex-row md:tw-justify-between tw-min-w-0": o.showPresetAmounts,
|
|
414
|
+
"tw-gap-1.5": o.showPresetAmounts && !e.isLendAmountButton && !o.isAdding
|
|
415
|
+
}]),
|
|
416
|
+
disabled: o.isAdding,
|
|
417
|
+
"data-testid": "bp-lend-cta-select-and-button"
|
|
418
|
+
}, [
|
|
419
|
+
o.showPresetAmounts && !o.isAdding && !e.isLendAmountButton && e.presetButtonsPrices.length > 1 ? (i(), l("div", z, [
|
|
420
|
+
f("div", H, [
|
|
421
|
+
f("div", j, [
|
|
422
|
+
(i(!0), l(k, null, A(e.presetButtonsPrices, (n) => (i(), r(w, {
|
|
423
|
+
key: n,
|
|
426
424
|
variant: "secondary",
|
|
427
|
-
class:
|
|
425
|
+
class: h(["preset-option tw-flex-1 tw-min-w-0", { "selected-option": d.selectedOption == n }]),
|
|
428
426
|
"data-testid": "bp-lend-cta-lend-button-mobile",
|
|
429
|
-
onClick: (
|
|
427
|
+
onClick: (D) => e.clickPresetButton(n)
|
|
430
428
|
}, {
|
|
431
|
-
default:
|
|
432
|
-
|
|
429
|
+
default: a(() => [
|
|
430
|
+
m(" $ " + u(n), 1)
|
|
433
431
|
]),
|
|
434
432
|
_: 2
|
|
435
433
|
}, 1032, ["class", "onClick"]))), 128)),
|
|
436
|
-
e.showFilteredDropdown &&
|
|
437
|
-
key:
|
|
434
|
+
e.showFilteredDropdown && d.viewportWidth >= d.MOBILE_DROPDOWN_BREAKPOINT ? (i(), r(v, {
|
|
435
|
+
key: 0,
|
|
438
436
|
id: `LoanAmountDropdownMobile_${e.loanId}`,
|
|
439
|
-
modelValue:
|
|
437
|
+
modelValue: d.selectedDropdownOption,
|
|
440
438
|
"onUpdate:modelValue": [
|
|
441
|
-
s[2] || (s[2] = (n) =>
|
|
439
|
+
s[2] || (s[2] = (n) => d.selectedDropdownOption = n),
|
|
442
440
|
e.trackLendAmountSelection
|
|
443
441
|
],
|
|
444
|
-
class:
|
|
442
|
+
class: h(["filtered-dropdown mobile-dropdown tw-flex-1 tw-rounded", {
|
|
445
443
|
"unselected-dropdown": !e.selectedDropdown,
|
|
446
444
|
"selected-dropdown": e.selectedDropdown
|
|
447
445
|
}]),
|
|
448
446
|
"aria-label": "Lend amount",
|
|
449
|
-
onClick:
|
|
447
|
+
onClick: B(e.clickDropdown, ["stop"])
|
|
450
448
|
}, {
|
|
451
|
-
default:
|
|
452
|
-
(
|
|
453
|
-
key:
|
|
449
|
+
default: a(() => [
|
|
450
|
+
(i(!0), l(k, null, A(e.presetDropdownPrices, (n) => (i(), l("option", {
|
|
451
|
+
key: n,
|
|
454
452
|
value: n
|
|
455
|
-
},
|
|
453
|
+
}, u(n !== d.OTHER_OPTION ? `$${n}` : n), 9, q))), 128))
|
|
456
454
|
]),
|
|
457
455
|
_: 1
|
|
458
|
-
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) :
|
|
456
|
+
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : c("", !0)
|
|
459
457
|
]),
|
|
460
|
-
|
|
461
|
-
e.showFilteredDropdown ? (
|
|
458
|
+
f("div", G, [
|
|
459
|
+
e.showFilteredDropdown && d.viewportWidth < d.MOBILE_DROPDOWN_BREAKPOINT ? (i(), r(v, {
|
|
462
460
|
key: 0,
|
|
463
|
-
id: `
|
|
464
|
-
modelValue:
|
|
461
|
+
id: `LoanAmountDropdownMobile_Small_${e.loanId}`,
|
|
462
|
+
modelValue: d.selectedDropdownOption,
|
|
465
463
|
"onUpdate:modelValue": [
|
|
466
|
-
s[3] || (s[3] = (n) =>
|
|
464
|
+
s[3] || (s[3] = (n) => d.selectedDropdownOption = n),
|
|
467
465
|
e.trackLendAmountSelection
|
|
468
466
|
],
|
|
469
|
-
class:
|
|
467
|
+
class: h(["filtered-dropdown mobile-dropdown-small tw-rounded tw-w-2/5", {
|
|
470
468
|
"unselected-dropdown": !e.selectedDropdown,
|
|
471
469
|
"selected-dropdown": e.selectedDropdown
|
|
472
470
|
}]),
|
|
473
471
|
"aria-label": "Lend amount",
|
|
474
|
-
|
|
475
|
-
onClick: v(e.clickDropdown, ["stop"])
|
|
472
|
+
onClick: B(e.clickDropdown, ["stop"])
|
|
476
473
|
}, {
|
|
477
|
-
default:
|
|
478
|
-
(
|
|
479
|
-
key: "
|
|
474
|
+
default: a(() => [
|
|
475
|
+
(i(!0), l(k, null, A(e.presetDropdownPrices, (n) => (i(), l("option", {
|
|
476
|
+
key: "small-" + n,
|
|
480
477
|
value: n
|
|
481
|
-
},
|
|
478
|
+
}, u(n !== d.OTHER_OPTION ? `$${n}` : n), 9, J))), 128))
|
|
482
479
|
]),
|
|
483
480
|
_: 1
|
|
484
|
-
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) :
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
"data-testid": "bp-lend-cta-lend-button-mobile",
|
|
481
|
+
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : c("", !0),
|
|
482
|
+
_(w, {
|
|
483
|
+
class: h(["tw-inline-flex tw-flex-1 button-ellipsis", d.viewportWidth < d.MOBILE_DROPDOWN_BREAKPOINT ? "tw-w-3/5" : "tw-w-full"]),
|
|
484
|
+
"data-testid": "bp-lend-cta-mobile-lend-button",
|
|
489
485
|
type: "submit"
|
|
490
486
|
}, {
|
|
491
|
-
default:
|
|
492
|
-
|
|
487
|
+
default: a(() => [
|
|
488
|
+
f("span", Q, [
|
|
489
|
+
f("span", X, u(e.ctaButtonText), 1)
|
|
490
|
+
])
|
|
493
491
|
]),
|
|
494
492
|
_: 1
|
|
495
|
-
}
|
|
496
|
-
])
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
493
|
+
}, 8, ["class"])
|
|
494
|
+
])
|
|
495
|
+
])
|
|
496
|
+
])) : c("", !0),
|
|
497
|
+
o.showPresetAmounts && !o.isAdding ? (i(), l("div", {
|
|
498
|
+
key: 1,
|
|
499
|
+
class: h({
|
|
500
|
+
"tw-flex tw-gap-0.5 md:tw-gap-1 lg:tw-gap-1 tw-flex-wrap md:tw-flex-nowrap": !0,
|
|
501
|
+
"tw-hidden md:tw-flex": !e.isLendAmountButton && e.presetButtonsPrices.length > 1
|
|
502
|
+
})
|
|
503
|
+
}, [
|
|
504
|
+
e.isLendAmountButton ? c("", !0) : (i(!0), l(k, { key: 0 }, A(e.presetButtonsPrices, (n) => (i(), r(w, {
|
|
505
|
+
key: n,
|
|
506
|
+
variant: "secondary",
|
|
507
|
+
class: h(["tw-inline-flex tw-flex-1 preset-option tw-w-8", { "selected-option": d.selectedOption == n }]),
|
|
508
|
+
"data-testid": "bp-lend-cta-lend-button",
|
|
509
|
+
onClick: (D) => e.clickPresetButton(n)
|
|
510
|
+
}, {
|
|
511
|
+
default: a(() => [
|
|
512
|
+
m(" $" + u(n), 1)
|
|
513
|
+
]),
|
|
514
|
+
_: 2
|
|
515
|
+
}, 1032, ["class", "onClick"]))), 128)),
|
|
516
|
+
e.showFilteredDropdown ? (i(), r(v, {
|
|
511
517
|
key: 1,
|
|
512
|
-
|
|
518
|
+
id: `LoanAmountDropdown_${e.loanId}`,
|
|
519
|
+
modelValue: d.selectedDropdownOption,
|
|
520
|
+
"onUpdate:modelValue": [
|
|
521
|
+
s[4] || (s[4] = (n) => d.selectedDropdownOption = n),
|
|
522
|
+
e.trackLendAmountSelection
|
|
523
|
+
],
|
|
524
|
+
class: h(["tw-min-w-12 tw-rounded filtered-dropdown tw-w-full", {
|
|
525
|
+
"unselected-dropdown": !e.selectedDropdown,
|
|
526
|
+
"selected-dropdown": e.selectedDropdown
|
|
527
|
+
}]),
|
|
528
|
+
"aria-label": "Lend amount",
|
|
529
|
+
onClick: B(e.clickDropdown, ["stop"])
|
|
513
530
|
}, {
|
|
514
|
-
default:
|
|
515
|
-
|
|
516
|
-
|
|
531
|
+
default: a(() => [
|
|
532
|
+
(i(!0), l(k, null, A(e.presetDropdownPrices, (n) => (i(), l("option", {
|
|
533
|
+
key: n,
|
|
534
|
+
value: n
|
|
535
|
+
}, u(n !== d.OTHER_OPTION ? `$${n}` : n), 9, Y))), 128))
|
|
536
|
+
]),
|
|
517
537
|
_: 1
|
|
518
|
-
})) :
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
"
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
+
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : c("", !0)
|
|
539
|
+
], 2)) : o.showPresetAmounts ? c("", !0) : (i(), l("div", Z, [
|
|
540
|
+
e.hideShowLendDropdown && !e.isLessThan25 ? (i(), r(v, {
|
|
541
|
+
key: 0,
|
|
542
|
+
id: `LoanAmountDropdown_${e.loanId}`,
|
|
543
|
+
modelValue: d.selectedOption,
|
|
544
|
+
"onUpdate:modelValue": [
|
|
545
|
+
s[5] || (s[5] = (n) => d.selectedOption = n),
|
|
546
|
+
e.trackLendAmountSelection
|
|
547
|
+
],
|
|
548
|
+
class: "tw-min-w-12",
|
|
549
|
+
style: { "border-radius": "14px 0 0 14px" },
|
|
550
|
+
"aria-label": "Lend amount",
|
|
551
|
+
onClick: B(e.clickDropdown, ["stop"])
|
|
552
|
+
}, {
|
|
553
|
+
default: a(() => [
|
|
554
|
+
(i(!0), l(k, null, A(e.prices, (n) => (i(), l("option", {
|
|
555
|
+
key: n,
|
|
556
|
+
value: n
|
|
557
|
+
}, " $" + u(n), 9, $))), 128))
|
|
558
|
+
]),
|
|
559
|
+
_: 1
|
|
560
|
+
}, 8, ["id", "modelValue", "onUpdate:modelValue", "onClick"])) : c("", !0)
|
|
561
|
+
])),
|
|
562
|
+
f("div", {
|
|
563
|
+
class: h({
|
|
564
|
+
"tw-min-w-0": o.showPresetAmounts,
|
|
565
|
+
lendButtonWrapper: e.hideShowLendDropdown && !o.showPresetAmounts,
|
|
566
|
+
"tw-hidden": e.hideLendButton || !e.isLendAmountButton && e.presetButtonsPrices.length > 1 && o.showPresetAmounts,
|
|
567
|
+
"md:tw-block tw-hidden": !e.isLendAmountButton && e.presetButtonsPrices.length > 1 && o.showPresetAmounts
|
|
568
|
+
})
|
|
538
569
|
}, [
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
id: `LoanAmountDropdown_${e.loanId}`,
|
|
555
|
-
modelValue: a.selectedDropdownOption,
|
|
556
|
-
"onUpdate:modelValue": [
|
|
557
|
-
s[4] || (s[4] = (n) => a.selectedDropdownOption = n),
|
|
558
|
-
e.trackLendAmountSelection
|
|
559
|
-
],
|
|
560
|
-
class: m(["tw-min-w-12 tw-rounded filtered-dropdown tw-w-full", {
|
|
561
|
-
"unselected-dropdown": !e.selectedDropdown,
|
|
562
|
-
"selected-dropdown": e.selectedDropdown
|
|
563
|
-
}]),
|
|
564
|
-
"aria-label": "Lend amount",
|
|
565
|
-
onClick: v(e.clickDropdown, ["stop"])
|
|
566
|
-
}, {
|
|
567
|
-
default: u(() => [
|
|
568
|
-
(o(!0), d(k, null, y(e.presetDropdownPrices, (n) => (o(), d("option", {
|
|
569
|
-
key: n,
|
|
570
|
-
value: n
|
|
571
|
-
}, h(n !== a.OTHER_OPTION ? `$${n}` : n), 9, Y))), 128))
|
|
572
|
-
]),
|
|
573
|
-
_: 1
|
|
574
|
-
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : r("", !0)
|
|
575
|
-
])) : i.showPresetAmounts ? r("", !0) : (o(), d("div", Z, [
|
|
576
|
-
e.hideShowLendDropdown && !e.isLessThan25 ? (o(), l(B, {
|
|
577
|
-
key: 0,
|
|
578
|
-
id: `LoanAmountDropdown_${e.loanId}`,
|
|
579
|
-
modelValue: a.selectedOption,
|
|
580
|
-
"onUpdate:modelValue": [
|
|
581
|
-
s[5] || (s[5] = (n) => a.selectedOption = n),
|
|
582
|
-
e.trackLendAmountSelection
|
|
583
|
-
],
|
|
584
|
-
class: "tw-min-w-12",
|
|
585
|
-
style: { "border-radius": "14px 0 0 14px" },
|
|
586
|
-
"aria-label": "Lend amount",
|
|
587
|
-
onClick: v(e.clickDropdown, ["stop"])
|
|
588
|
-
}, {
|
|
589
|
-
default: u(() => [
|
|
590
|
-
(o(!0), d(k, null, y(e.prices, (n) => (o(), d("option", {
|
|
591
|
-
key: n,
|
|
592
|
-
value: n
|
|
593
|
-
}, " $" + h(n), 9, $))), 128))
|
|
594
|
-
]),
|
|
595
|
-
_: 1
|
|
596
|
-
}, 8, ["id", "modelValue", "onUpdate:modelValue", "onClick"])) : r("", !0)
|
|
597
|
-
])),
|
|
598
|
-
f("div", {
|
|
599
|
-
class: m({
|
|
600
|
-
"tw-min-w-0": i.showPresetAmounts,
|
|
601
|
-
lendButtonWrapper: e.hideShowLendDropdown && !i.showPresetAmounts,
|
|
602
|
-
"tw-hidden": e.hideLendButton
|
|
603
|
-
})
|
|
604
|
-
}, [
|
|
605
|
-
e.lendButtonVisibility && !e.isLessThan25 ? (o(), l(c, {
|
|
606
|
-
key: "lendButton",
|
|
607
|
-
class: m(["tw-inline-flex tw-flex-1", { "button-ellipsis tw-w-full": i.showPresetAmounts }]),
|
|
608
|
-
"data-testid": "bp-lend-cta-lend-button",
|
|
609
|
-
type: "submit"
|
|
610
|
-
}, {
|
|
611
|
-
default: u(() => [
|
|
612
|
-
w(h(e.ctaButtonText), 1)
|
|
613
|
-
]),
|
|
614
|
-
_: 1
|
|
615
|
-
}, 8, ["class"])) : e.showLendAgain ? (o(), l(c, {
|
|
616
|
-
key: "lendAgainButton",
|
|
617
|
-
class: m(["lend-again", { "tw-w-full": i.showPresetAmounts }]),
|
|
618
|
-
"data-testid": "bp-lend-cta-lend-again-button",
|
|
619
|
-
type: "submit"
|
|
620
|
-
}, {
|
|
621
|
-
default: u(() => [
|
|
622
|
-
w(h(i.primaryButtonText || "Lend") + " again ", 1)
|
|
623
|
-
]),
|
|
624
|
-
_: 1
|
|
625
|
-
}, 8, ["class"])) : r("", !0)
|
|
626
|
-
], 2),
|
|
627
|
-
e.isLendAmountButton && !i.enableFiveDollarsNotes ? (o(), l(L, {
|
|
628
|
-
key: 2,
|
|
629
|
-
class: "tw-w-full",
|
|
630
|
-
"loan-id": e.loanId,
|
|
631
|
-
"show-now": !1,
|
|
632
|
-
"amount-left": e.amountForLendAmountButton,
|
|
633
|
-
"is-adding": i.isAdding,
|
|
634
|
-
onAddToBasket: e.addToBasket
|
|
635
|
-
}, null, 8, ["loan-id", "amount-left", "is-adding", "onAddToBasket"])) : r("", !0),
|
|
636
|
-
!i.isLoading && i.isAdding ? (o(), l(c, {
|
|
637
|
-
key: 3,
|
|
638
|
-
class: "tw-inline-flex tw-flex-1"
|
|
570
|
+
e.lendButtonVisibility && !e.isLessThan25 ? (i(), r(w, {
|
|
571
|
+
key: "lendButton",
|
|
572
|
+
class: h(["tw-inline-flex tw-flex-1", { "button-ellipsis tw-w-full": o.showPresetAmounts }]),
|
|
573
|
+
"data-testid": "bp-lend-cta-lend-button",
|
|
574
|
+
type: "submit"
|
|
575
|
+
}, {
|
|
576
|
+
default: a(() => [
|
|
577
|
+
m(u(e.ctaButtonText), 1)
|
|
578
|
+
]),
|
|
579
|
+
_: 1
|
|
580
|
+
}, 8, ["class"])) : e.showLendAgain ? (i(), r(w, {
|
|
581
|
+
key: "lendAgainButton",
|
|
582
|
+
class: h(["lend-again", { "tw-w-full": o.showPresetAmounts }]),
|
|
583
|
+
"data-testid": "bp-lend-cta-lend-again-button",
|
|
584
|
+
type: "submit"
|
|
639
585
|
}, {
|
|
640
|
-
default:
|
|
641
|
-
|
|
642
|
-
])
|
|
586
|
+
default: a(() => [
|
|
587
|
+
m(u(o.primaryButtonText || "Lend") + " again ", 1)
|
|
588
|
+
]),
|
|
643
589
|
_: 1
|
|
644
|
-
})) :
|
|
645
|
-
],
|
|
646
|
-
|
|
647
|
-
|
|
590
|
+
}, 8, ["class"])) : c("", !0)
|
|
591
|
+
], 2),
|
|
592
|
+
e.isLendAmountButton && !o.enableFiveDollarsNotes ? (i(), r(T, {
|
|
593
|
+
key: 3,
|
|
594
|
+
class: "tw-w-full",
|
|
595
|
+
"loan-id": e.loanId,
|
|
596
|
+
"show-now": !1,
|
|
597
|
+
"amount-left": e.amountForLendAmountButton,
|
|
598
|
+
"is-adding": o.isAdding,
|
|
599
|
+
onAddToBasket: e.addToBasket
|
|
600
|
+
}, null, 8, ["loan-id", "amount-left", "is-adding", "onAddToBasket"])) : c("", !0),
|
|
601
|
+
!o.isLoading && o.isAdding ? (i(), r(w, {
|
|
602
|
+
key: 4,
|
|
603
|
+
class: "tw-inline-flex tw-flex-1"
|
|
604
|
+
}, {
|
|
605
|
+
default: a(() => s[8] || (s[8] = [
|
|
606
|
+
m(" Adding to basket ")
|
|
607
|
+
])),
|
|
608
|
+
_: 1
|
|
609
|
+
})) : c("", !0)
|
|
610
|
+
], 10, U)
|
|
611
|
+
], 32)) : c("", !0)
|
|
648
612
|
]);
|
|
649
613
|
}
|
|
650
|
-
const me = /* @__PURE__ */
|
|
614
|
+
const me = /* @__PURE__ */ V(R, [["render", ee], ["__scopeId", "data-v-d161d592"]]);
|
|
651
615
|
export {
|
|
652
616
|
ce as KV_LEND_CTA_FRAGMENT,
|
|
653
617
|
we as KV_LEND_CTA_USER_FRAGMENT,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-link[data-v-
|
|
1
|
+
.header-link[data-v-a0d88ce7]{cursor:pointer;padding-top:1rem;padding-bottom:1rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.header-link[data-v-a0d88ce7]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
2
|
-
import { mdiAccountCircle as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import { throttle as
|
|
1
|
+
import { defineAsyncComponent as M, ref as l, computed as P, onMounted as z, onUnmounted as W, resolveComponent as k, resolveDirective as j, openBlock as i, createElementBlock as c, withDirectives as d, normalizeClass as b, createVNode as U, createBlock as g, withCtx as T, createTextVNode as w, createElementVNode as N, createCommentVNode as h, vShow as F, toDisplayString as q } from "vue";
|
|
2
|
+
import { mdiAccountCircle as G, mdiChevronDown as J, mdiMagnify as Q, mdiMenu as X } from "@mdi/js";
|
|
3
|
+
import Y from "numeral";
|
|
4
|
+
import Z from "../KvMaterialIcon.js";
|
|
5
|
+
import $ from "../KvIconBag.js";
|
|
6
|
+
import ee from "./KvHeaderDropdownLink.js";
|
|
7
|
+
import ne from "../KvUserAvatar.js";
|
|
8
|
+
import { throttle as te } from "../../utils/throttle.js";
|
|
9
9
|
import "./KvHeaderLinkBar.css";
|
|
10
|
-
import
|
|
11
|
-
const
|
|
10
|
+
import oe from "../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
+
const re = M(() => import("./KvHeaderMobileMenu.js")), D = M(() => import("./KvHeaderMyKivaMenu.js")), le = M(() => import("./LendMenu/KvLendMenu.js")), ie = M(() => import("./KvHeaderTakeActionMenu.js")), ae = M(() => import("./KvHeaderAboutMenu.js")), C = 118, p = "avatar-menu", de = {
|
|
12
12
|
components: {
|
|
13
|
-
KvMaterialIcon:
|
|
14
|
-
KvIconBag:
|
|
15
|
-
KvHeaderDropdownLink:
|
|
16
|
-
KvUserAvatar:
|
|
13
|
+
KvMaterialIcon: Z,
|
|
14
|
+
KvIconBag: $,
|
|
15
|
+
KvHeaderDropdownLink: ee,
|
|
16
|
+
KvUserAvatar: ne
|
|
17
17
|
},
|
|
18
18
|
props: {
|
|
19
19
|
loggedIn: {
|
|
@@ -79,7 +79,7 @@ const oe = k(() => import("./KvHeaderMobileMenu.js")), D = k(() => import("./KvH
|
|
|
79
79
|
o.value = p, m(t.value, D, E());
|
|
80
80
|
}, V = (r, s) => {
|
|
81
81
|
!o.value || o.value !== r ? (o.value = r, r === p ? I() : m(r, s)) : (o.value = null, m());
|
|
82
|
-
}, L =
|
|
82
|
+
}, L = te(() => {
|
|
83
83
|
o.value === p && I();
|
|
84
84
|
}, 50), R = P(() => u.isMobile ? void 0 : "/lend-by-category");
|
|
85
85
|
return z(() => {
|
|
@@ -89,11 +89,11 @@ const oe = k(() => import("./KvHeaderMobileMenu.js")), D = k(() => import("./KvH
|
|
|
89
89
|
}), {
|
|
90
90
|
AVATAR_MENU_ID: p,
|
|
91
91
|
openMenuId: o,
|
|
92
|
-
numeral:
|
|
93
|
-
mdiAccountCircle:
|
|
94
|
-
mdiChevronDown:
|
|
95
|
-
mdiMagnify:
|
|
96
|
-
mdiMenu:
|
|
92
|
+
numeral: Y,
|
|
93
|
+
mdiAccountCircle: G,
|
|
94
|
+
mdiChevronDown: J,
|
|
95
|
+
mdiMagnify: Q,
|
|
96
|
+
mdiMenu: X,
|
|
97
97
|
onHover: m,
|
|
98
98
|
avatar: t,
|
|
99
99
|
lendButton: n,
|
|
@@ -109,23 +109,23 @@ const oe = k(() => import("./KvHeaderMobileMenu.js")), D = k(() => import("./KvH
|
|
|
109
109
|
handleTouchStart: V,
|
|
110
110
|
handleMouseOut: S,
|
|
111
111
|
handleAvatarMenuPosition: I,
|
|
112
|
-
KvHeaderMobileMenu:
|
|
112
|
+
KvHeaderMobileMenu: re,
|
|
113
113
|
KvHeaderMyKivaMenu: D,
|
|
114
|
-
KvLendMenu:
|
|
115
|
-
KvHeaderTakeActionMenu:
|
|
116
|
-
KvHeaderAboutMenu:
|
|
114
|
+
KvLendMenu: le,
|
|
115
|
+
KvHeaderTakeActionMenu: ie,
|
|
116
|
+
KvHeaderAboutMenu: ae
|
|
117
117
|
};
|
|
118
118
|
}
|
|
119
|
-
},
|
|
119
|
+
}, ue = { class: "tw-h-full tw-flex tw-items-center tw-gap-2.5" }, me = ["href"], se = {
|
|
120
120
|
key: 0,
|
|
121
121
|
class: "tw-bg-eco-green-1 tw-py-0.5 tw-px-1 tw-text-eco-green-4"
|
|
122
|
-
},
|
|
123
|
-
function
|
|
124
|
-
const y =
|
|
125
|
-
return i(), c("div",
|
|
122
|
+
}, ve = ["href"];
|
|
123
|
+
function ce(u, e, t, n, x, K) {
|
|
124
|
+
const y = k("kv-material-icon"), f = k("KvHeaderDropdownLink"), A = k("kv-icon-bag"), H = k("KvUserAvatar"), a = j("kv-track-event");
|
|
125
|
+
return i(), c("div", ue, [
|
|
126
126
|
d((i(), c("button", {
|
|
127
127
|
ref: "menuButton",
|
|
128
|
-
class:
|
|
128
|
+
class: b(["header-link tw-inline-flex lg:tw-hidden", {
|
|
129
129
|
"tw-text-tertiary": t.openMenuItem && t.openMenuItem !== n.KvHeaderMobileMenu
|
|
130
130
|
}]),
|
|
131
131
|
onMouseover: e[0] || (e[0] = (o) => n.handleOnHover(n.menuButton, n.KvHeaderMobileMenu)),
|
|
@@ -136,7 +136,7 @@ function ve(u, e, t, n, x, K) {
|
|
|
136
136
|
], 34)), [
|
|
137
137
|
[a, t.openMenuItem === n.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
|
|
138
138
|
]),
|
|
139
|
-
d((i(),
|
|
139
|
+
d((i(), g(f, {
|
|
140
140
|
"ref-name": "lendButton",
|
|
141
141
|
href: n.lendUrl,
|
|
142
142
|
"menu-component": n.KvLendMenu,
|
|
@@ -154,7 +154,7 @@ function ve(u, e, t, n, x, K) {
|
|
|
154
154
|
}, 8, ["href", "menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
155
155
|
[a, ["TopNav", "click-Lend"]]
|
|
156
156
|
]),
|
|
157
|
-
d((i(),
|
|
157
|
+
d((i(), g(f, {
|
|
158
158
|
"ref-name": "takeActionButton",
|
|
159
159
|
"base-class": "tw-hidden lg:tw-inline-flex tw-py-2",
|
|
160
160
|
"menu-component": n.KvHeaderTakeActionMenu,
|
|
@@ -171,9 +171,9 @@ function ve(u, e, t, n, x, K) {
|
|
|
171
171
|
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
172
172
|
[a, ["TopNav", "click-TakeAction"]]
|
|
173
173
|
]),
|
|
174
|
-
d((i(),
|
|
174
|
+
d((i(), g(f, {
|
|
175
175
|
"ref-name": "aboutUsLink",
|
|
176
|
-
"
|
|
176
|
+
"data-testid": "header-about",
|
|
177
177
|
"base-class": "tw-hidden lg:tw-inline-flex tw-py-2",
|
|
178
178
|
"menu-component": n.KvHeaderAboutMenu,
|
|
179
179
|
"open-menu-item": t.openMenuItem,
|
|
@@ -194,54 +194,54 @@ function ve(u, e, t, n, x, K) {
|
|
|
194
194
|
key: 0,
|
|
195
195
|
ref: "dashboardLink",
|
|
196
196
|
href: t.myDashboardUrl,
|
|
197
|
-
class:
|
|
197
|
+
class: b(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
198
198
|
}, e[13] || (e[13] = [
|
|
199
199
|
w(" My dashboard ")
|
|
200
|
-
]), 10,
|
|
200
|
+
]), 10, me)), [
|
|
201
201
|
[a, ["TopNav", "click-Dashboard"]]
|
|
202
|
-
]) :
|
|
203
|
-
|
|
204
|
-
key: 1,
|
|
202
|
+
]) : h("", !0),
|
|
203
|
+
d((i(), c("a", {
|
|
205
204
|
ref: "basketLink",
|
|
206
205
|
href: "/basket",
|
|
207
|
-
class:
|
|
208
|
-
"
|
|
206
|
+
class: b(["header-link tw-relative", { "tw-text-tertiary": !!t.openMenuItem }]),
|
|
207
|
+
"data-testid": "header-basket"
|
|
209
208
|
}, [
|
|
210
209
|
U(A, {
|
|
211
210
|
class: "tw-w-3 tw-h-3 tw-pointer-events-none",
|
|
212
211
|
count: t.basketCount
|
|
213
212
|
}, null, 8, ["count"])
|
|
214
213
|
], 2)), [
|
|
214
|
+
[F, t.basketCount > 0],
|
|
215
215
|
[a, ["TopNav", "click-Basket"]]
|
|
216
|
-
])
|
|
216
|
+
]),
|
|
217
217
|
N("div", {
|
|
218
218
|
class: "tw-cursor-pointer tw-flex tw-items-center tw-gap-1 tw-py-1.5",
|
|
219
219
|
onMouseover: e[7] || (e[7] = (...o) => n.handleAvatarMenuPosition && n.handleAvatarMenuPosition(...o)),
|
|
220
220
|
onMouseout: e[8] || (e[8] = (o) => n.handleMouseOut(n.AVATAR_MENU_ID)),
|
|
221
221
|
onTouchstart: e[9] || (e[9] = (o) => n.handleTouchStart(n.AVATAR_MENU_ID))
|
|
222
222
|
}, [
|
|
223
|
-
t.loggedIn ? (i(), c("span",
|
|
224
|
-
t.loggedIn ? (i(),
|
|
223
|
+
t.loggedIn ? (i(), c("span", se, q(n.numeral(t.balance).format("$0")), 1)) : h("", !0),
|
|
224
|
+
t.loggedIn ? (i(), g(H, {
|
|
225
225
|
key: 1,
|
|
226
226
|
ref: "avatar",
|
|
227
227
|
"lender-name": t.lenderName,
|
|
228
228
|
"lender-image-url": t.lenderImageUrl,
|
|
229
229
|
"is-small": ""
|
|
230
|
-
}, null, 8, ["lender-name", "lender-image-url"])) :
|
|
230
|
+
}, null, 8, ["lender-name", "lender-image-url"])) : h("", !0)
|
|
231
231
|
], 32),
|
|
232
|
-
t.loggedIn ?
|
|
233
|
-
key:
|
|
232
|
+
t.loggedIn ? h("", !0) : d((i(), c("a", {
|
|
233
|
+
key: 1,
|
|
234
234
|
ref: "signInLink",
|
|
235
235
|
href: t.loginUrl,
|
|
236
|
-
class:
|
|
236
|
+
class: b(["header-link", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
237
237
|
}, e[14] || (e[14] = [
|
|
238
238
|
w(" Sign in ")
|
|
239
|
-
]), 10,
|
|
239
|
+
]), 10, ve)), [
|
|
240
240
|
[a, ["TopNav", "click-Sign-in"]]
|
|
241
241
|
])
|
|
242
242
|
]);
|
|
243
243
|
}
|
|
244
|
-
const
|
|
244
|
+
const Ie = /* @__PURE__ */ oe(de, [["render", ce], ["__scopeId", "data-v-a0d88ce7"]]);
|
|
245
245
|
export {
|
|
246
|
-
|
|
246
|
+
Ie as default
|
|
247
247
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.50.
|
|
3
|
+
"version": "6.50.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"embla-carousel-fade",
|
|
114
114
|
"popper.js"
|
|
115
115
|
],
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "64df72dd120838ee9d06387587c5e130d66d4009"
|
|
117
117
|
}
|