@kiva/kv-components 6.50.1 → 6.50.3
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,
|
|
@@ -65,7 +65,7 @@ function x(e, o, n, r, i, s) {
|
|
|
65
65
|
const a = c("KvMaterialIcon");
|
|
66
66
|
return m(), f("a", {
|
|
67
67
|
ref: n.refName,
|
|
68
|
-
class: l(["tw-no-underline hover:tw-no-underline tw-text-primary hover:tw-text-action tw-items-center tw-
|
|
68
|
+
class: l(["tw-py-1 tw-no-underline hover:tw-no-underline tw-text-primary hover:tw-text-action tw-items-center tw-cursor-pointer", r.computedClass]),
|
|
69
69
|
href: n.href,
|
|
70
70
|
onMouseover: o[0] || (o[0] = (...t) => r.handleMouseOver && r.handleMouseOver(...t))
|
|
71
71
|
}, [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-link[data-v-
|
|
1
|
+
.header-link[data-v-80235e01]{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-80235e01]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent as k, ref as l, computed as P, onMounted as z, onUnmounted as W, resolveComponent as
|
|
1
|
+
import { defineAsyncComponent as k, ref as l, computed as P, onMounted as z, onUnmounted as W, resolveComponent as b, resolveDirective as j, openBlock as i, createElementBlock as c, withDirectives as d, normalizeClass as g, createVNode as U, createBlock as h, withCtx as T, createTextVNode as w, createElementVNode as N, createCommentVNode as M, toDisplayString as F } from "vue";
|
|
2
2
|
import { mdiAccountCircle as q, mdiChevronDown as G, mdiMagnify as J, mdiMenu as Q } from "@mdi/js";
|
|
3
3
|
import X from "numeral";
|
|
4
4
|
import Y from "../KvMaterialIcon.js";
|
|
@@ -8,7 +8,7 @@ import ee from "../KvUserAvatar.js";
|
|
|
8
8
|
import { throttle as ne } from "../../utils/throttle.js";
|
|
9
9
|
import "./KvHeaderLinkBar.css";
|
|
10
10
|
import te from "../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
-
const oe = k(() => import("./KvHeaderMobileMenu.js")),
|
|
11
|
+
const oe = k(() => import("./KvHeaderMobileMenu.js")), D = k(() => import("./KvHeaderMyKivaMenu.js")), re = k(() => import("./LendMenu/KvLendMenu.js")), le = k(() => import("./KvHeaderTakeActionMenu.js")), ie = k(() => import("./KvHeaderAboutMenu.js")), C = 118, p = "avatar-menu", ae = {
|
|
12
12
|
components: {
|
|
13
13
|
KvMaterialIcon: Y,
|
|
14
14
|
KvIconBag: Z,
|
|
@@ -57,35 +57,37 @@ const oe = k(() => import("./KvHeaderMobileMenu.js")), O = k(() => import("./KvH
|
|
|
57
57
|
"item-hover"
|
|
58
58
|
],
|
|
59
59
|
setup(u, { emit: e }) {
|
|
60
|
-
const t = l(null), n = l(null), x = l(null), K = l(null),
|
|
61
|
-
e("item-hover", r,
|
|
62
|
-
}, _ = (r,
|
|
63
|
-
u.isMobile || m(r,
|
|
60
|
+
const t = l(null), n = l(null), x = l(null), K = l(null), y = l(null), f = l(null), A = l(null), H = l(null), a = l(null), o = l(null), m = (r, s, v = null) => {
|
|
61
|
+
e("item-hover", r, s, v);
|
|
62
|
+
}, _ = (r, s, v = null) => {
|
|
63
|
+
u.isMobile || m(r, s, v);
|
|
64
64
|
}, S = (r) => {
|
|
65
65
|
o.value === r && (o.value = null, m());
|
|
66
66
|
}, E = () => {
|
|
67
|
-
var B,
|
|
68
|
-
const r = (
|
|
67
|
+
var B, O;
|
|
68
|
+
const r = (O = (B = t.value) == null ? void 0 : B.userAvatar) == null ? void 0 : O.getBoundingClientRect();
|
|
69
69
|
if (!r) return null;
|
|
70
|
-
const
|
|
70
|
+
const v = r.left + r.width / 2 - C / 2;
|
|
71
71
|
return {
|
|
72
|
-
...
|
|
72
|
+
...v + C > window.outerWidth ? { right: 0 } : { left: u.isMobile ? 0 : `${v}px` },
|
|
73
|
+
marginTop: "-2px",
|
|
74
|
+
// Avoid closing avatar menu on header edge
|
|
73
75
|
borderRadius: u.isMobile ? "auto" : "0px 0px 8px 8px",
|
|
74
76
|
width: u.isMobile ? "100%" : "auto"
|
|
75
77
|
};
|
|
76
78
|
}, I = () => {
|
|
77
|
-
o.value =
|
|
78
|
-
}, V = (r,
|
|
79
|
-
!o.value || o.value !== r ? (o.value = r, r ===
|
|
79
|
+
o.value = p, m(t.value, D, E());
|
|
80
|
+
}, V = (r, s) => {
|
|
81
|
+
!o.value || o.value !== r ? (o.value = r, r === p ? I() : m(r, s)) : (o.value = null, m());
|
|
80
82
|
}, L = ne(() => {
|
|
81
|
-
o.value ===
|
|
83
|
+
o.value === p && I();
|
|
82
84
|
}, 50), R = P(() => u.isMobile ? void 0 : "/lend-by-category");
|
|
83
85
|
return z(() => {
|
|
84
86
|
import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js"), import("./KvHeaderTakeActionMenu.js"), import("./KvHeaderAboutMenu.js"), window.addEventListener("resize", L);
|
|
85
87
|
}), W(() => {
|
|
86
88
|
window.removeEventListener("resize", L);
|
|
87
89
|
}), {
|
|
88
|
-
AVATAR_MENU_ID:
|
|
90
|
+
AVATAR_MENU_ID: p,
|
|
89
91
|
openMenuId: o,
|
|
90
92
|
numeral: X,
|
|
91
93
|
mdiAccountCircle: q,
|
|
@@ -97,7 +99,7 @@ const oe = k(() => import("./KvHeaderMobileMenu.js")), O = k(() => import("./KvH
|
|
|
97
99
|
lendButton: n,
|
|
98
100
|
aboutUsLink: x,
|
|
99
101
|
partnerWithUsLink: K,
|
|
100
|
-
borrowLink:
|
|
102
|
+
borrowLink: y,
|
|
101
103
|
supportKivaLink: f,
|
|
102
104
|
basketLink: A,
|
|
103
105
|
signInLink: H,
|
|
@@ -108,7 +110,7 @@ const oe = k(() => import("./KvHeaderMobileMenu.js")), O = k(() => import("./KvH
|
|
|
108
110
|
handleMouseOut: S,
|
|
109
111
|
handleAvatarMenuPosition: I,
|
|
110
112
|
KvHeaderMobileMenu: oe,
|
|
111
|
-
KvHeaderMyKivaMenu:
|
|
113
|
+
KvHeaderMyKivaMenu: D,
|
|
112
114
|
KvLendMenu: re,
|
|
113
115
|
KvHeaderTakeActionMenu: le,
|
|
114
116
|
KvHeaderAboutMenu: ie
|
|
@@ -117,31 +119,30 @@ const oe = k(() => import("./KvHeaderMobileMenu.js")), O = k(() => import("./KvH
|
|
|
117
119
|
}, de = { class: "tw-h-full tw-flex tw-items-center tw-gap-2.5" }, ue = ["href"], me = {
|
|
118
120
|
key: 0,
|
|
119
121
|
class: "tw-bg-eco-green-1 tw-py-0.5 tw-px-1 tw-text-eco-green-4"
|
|
120
|
-
},
|
|
121
|
-
function
|
|
122
|
-
const
|
|
122
|
+
}, se = ["href"];
|
|
123
|
+
function ve(u, e, t, n, x, K) {
|
|
124
|
+
const y = b("kv-material-icon"), f = b("KvHeaderDropdownLink"), A = b("kv-icon-bag"), H = b("KvUserAvatar"), a = j("kv-track-event");
|
|
123
125
|
return i(), c("div", de, [
|
|
124
126
|
d((i(), c("button", {
|
|
125
127
|
ref: "menuButton",
|
|
126
|
-
class:
|
|
128
|
+
class: g(["header-link tw-inline-flex lg:tw-hidden", {
|
|
127
129
|
"tw-text-tertiary": t.openMenuItem && t.openMenuItem !== n.KvHeaderMobileMenu
|
|
128
130
|
}]),
|
|
129
131
|
onMouseover: e[0] || (e[0] = (o) => n.handleOnHover(n.menuButton, n.KvHeaderMobileMenu)),
|
|
130
132
|
onMouseout: e[1] || (e[1] = (o) => n.handleMouseOut("menuButton")),
|
|
131
133
|
onTouchstart: e[2] || (e[2] = (o) => n.handleTouchStart("menuButton", n.KvHeaderMobileMenu))
|
|
132
134
|
}, [
|
|
133
|
-
U(
|
|
135
|
+
U(y, { icon: n.mdiMenu }, null, 8, ["icon"])
|
|
134
136
|
], 34)), [
|
|
135
137
|
[a, t.openMenuItem === n.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
|
|
136
138
|
]),
|
|
137
139
|
d((i(), h(f, {
|
|
138
|
-
class: "tw-border tw-rounded-md tw-px-1.5 tw-py-1",
|
|
139
140
|
"ref-name": "lendButton",
|
|
140
141
|
href: n.lendUrl,
|
|
141
142
|
"menu-component": n.KvLendMenu,
|
|
142
143
|
"open-menu-item": t.openMenuItem,
|
|
143
144
|
"dropdown-icon": n.mdiChevronDown,
|
|
144
|
-
"base-class": "tw-inline-flex",
|
|
145
|
+
"base-class": "tw-inline-flex tw-border tw-rounded-md tw-px-1.5 tw-py-1",
|
|
145
146
|
onOnHover: n.handleOnHover,
|
|
146
147
|
onMouseout: e[3] || (e[3] = (o) => n.handleMouseOut("lendButton")),
|
|
147
148
|
onTouchstart: e[4] || (e[4] = (o) => n.handleTouchStart("lendButton", n.KvLendMenu))
|
|
@@ -160,8 +161,8 @@ function se(u, e, t, n, x, K) {
|
|
|
160
161
|
"open-menu-item": t.openMenuItem,
|
|
161
162
|
"dropdown-icon": n.mdiChevronDown,
|
|
162
163
|
"send-link-position": "",
|
|
163
|
-
onOnHover: n.
|
|
164
|
-
onMouseout: e[5] || (e[5] = (o) => n.
|
|
164
|
+
onOnHover: n.handleOnHover,
|
|
165
|
+
onMouseout: e[5] || (e[5] = (o) => n.handleMouseOut("takeActionButton"))
|
|
165
166
|
}, {
|
|
166
167
|
default: T(() => e[11] || (e[11] = [
|
|
167
168
|
w(" Take action ")
|
|
@@ -172,13 +173,14 @@ function se(u, e, t, n, x, K) {
|
|
|
172
173
|
]),
|
|
173
174
|
d((i(), h(f, {
|
|
174
175
|
"ref-name": "aboutUsLink",
|
|
176
|
+
"test-id": "header-about",
|
|
175
177
|
"base-class": "tw-hidden lg:tw-inline-flex tw-py-2",
|
|
176
178
|
"menu-component": n.KvHeaderAboutMenu,
|
|
177
179
|
"open-menu-item": t.openMenuItem,
|
|
178
180
|
"dropdown-icon": n.mdiChevronDown,
|
|
179
181
|
"send-link-position": "",
|
|
180
|
-
onOnHover: n.
|
|
181
|
-
onMouseout: e[6] || (e[6] = (o) => n.
|
|
182
|
+
onOnHover: n.handleOnHover,
|
|
183
|
+
onMouseout: e[6] || (e[6] = (o) => n.handleMouseOut("aboutUsLink"))
|
|
182
184
|
}, {
|
|
183
185
|
default: T(() => e[12] || (e[12] = [
|
|
184
186
|
w(" About ")
|
|
@@ -187,12 +189,12 @@ function se(u, e, t, n, x, K) {
|
|
|
187
189
|
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
188
190
|
[a, ["TopNav", "click-About"]]
|
|
189
191
|
]),
|
|
190
|
-
e[15] || (e[15] =
|
|
192
|
+
e[15] || (e[15] = N("div", { class: "tw-flex-1 tw-h-full" }, null, -1)),
|
|
191
193
|
t.loggedIn ? d((i(), c("a", {
|
|
192
194
|
key: 0,
|
|
193
195
|
ref: "dashboardLink",
|
|
194
196
|
href: t.myDashboardUrl,
|
|
195
|
-
class:
|
|
197
|
+
class: g(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
196
198
|
}, e[13] || (e[13] = [
|
|
197
199
|
w(" My dashboard ")
|
|
198
200
|
]), 10, ue)), [
|
|
@@ -202,7 +204,8 @@ function se(u, e, t, n, x, K) {
|
|
|
202
204
|
key: 1,
|
|
203
205
|
ref: "basketLink",
|
|
204
206
|
href: "/basket",
|
|
205
|
-
class:
|
|
207
|
+
class: g(["header-link tw-relative", { "tw-text-tertiary": !!t.openMenuItem }]),
|
|
208
|
+
"test-id": "header-basket"
|
|
206
209
|
}, [
|
|
207
210
|
U(A, {
|
|
208
211
|
class: "tw-w-3 tw-h-3 tw-pointer-events-none",
|
|
@@ -211,7 +214,7 @@ function se(u, e, t, n, x, K) {
|
|
|
211
214
|
], 2)), [
|
|
212
215
|
[a, ["TopNav", "click-Basket"]]
|
|
213
216
|
]) : M("", !0),
|
|
214
|
-
|
|
217
|
+
N("div", {
|
|
215
218
|
class: "tw-cursor-pointer tw-flex tw-items-center tw-gap-1 tw-py-1.5",
|
|
216
219
|
onMouseover: e[7] || (e[7] = (...o) => n.handleAvatarMenuPosition && n.handleAvatarMenuPosition(...o)),
|
|
217
220
|
onMouseout: e[8] || (e[8] = (o) => n.handleMouseOut(n.AVATAR_MENU_ID)),
|
|
@@ -230,15 +233,15 @@ function se(u, e, t, n, x, K) {
|
|
|
230
233
|
key: 2,
|
|
231
234
|
ref: "signInLink",
|
|
232
235
|
href: t.loginUrl,
|
|
233
|
-
class:
|
|
236
|
+
class: g(["header-link", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
234
237
|
}, e[14] || (e[14] = [
|
|
235
238
|
w(" Sign in ")
|
|
236
|
-
]), 10,
|
|
239
|
+
]), 10, se)), [
|
|
237
240
|
[a, ["TopNav", "click-Sign-in"]]
|
|
238
241
|
])
|
|
239
242
|
]);
|
|
240
243
|
}
|
|
241
|
-
const He = /* @__PURE__ */ te(ae, [["render",
|
|
244
|
+
const He = /* @__PURE__ */ te(ae, [["render", ve], ["__scopeId", "data-v-80235e01"]]);
|
|
242
245
|
export {
|
|
243
246
|
He as default
|
|
244
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.3",
|
|
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": "0b369f28a444966749668a69bfb2f1aab97a4824"
|
|
117
117
|
}
|