@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.
@@ -1 +1 @@
1
- .amountDropdownWrapper[data-v-ce2eaa1b] select{border-radius:14px 0 0 14px}.lend-again[data-v-ce2eaa1b] span{padding-left:0;padding-right:0;padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-ce2eaa1b] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-ce2eaa1b] select{cursor:pointer;white-space:nowrap;border-radius:1rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-ce2eaa1b] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.preset-option[data-v-ce2eaa1b] 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-ce2eaa1b] select,.selected-option[data-v-ce2eaa1b] 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-ce2eaa1b] span>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 325px){[data-testid=bp-lend-cta-select-and-button-mobile]>div.tw-flex[data-v-ce2eaa1b]{flex-wrap:wrap}.mobile-other-dd[data-v-ce2eaa1b]{flex:0 0 100px!important;min-width:100px!important;max-width:100px!important;width:100px!important}.button-ellipsis[data-v-ce2eaa1b]{flex:1 1 0%;min-width:0}}
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%}}
@@ -1,35 +1,35 @@
1
- import _ from "graphql-tag";
2
- import { mdiChevronRight as D } from "@mdi/js";
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 P } from "../utils/loanUtils.js";
5
- import F from "./KvLendAmountButton.js";
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 I from "./KvButton.js";
8
- import V from "./KvMaterialIcon.js";
9
- import { resolveComponent as b, openBlock as o, createElementBlock as d, createBlock as l, withCtx as u, createTextVNode as w, toDisplayString as h, createElementVNode as f, createVNode as N, withModifiers as v, Fragment as k, renderList as y, normalizeClass as m, createCommentVNode as r } from "vue";
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 O from "../_virtual/_plugin-vue_export-helper.js";
12
- const A = "Other", ce = _`
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
- `, M = {
26
+ `, R = {
27
27
  name: "KvLendCta",
28
28
  components: {
29
- KvLendAmountButton: F,
30
- KvUiButton: I,
29
+ KvLendAmountButton: I,
30
+ KvUiButton: F,
31
31
  KvUiSelect: S,
32
- KvMaterialIcon: V
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: D,
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: A,
143
- OTHER_OPTION: A,
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 = P(
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((i) => parseFloat(i) <= parseFloat(this.maxAmount)) : s;
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(A), t;
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 !== A;
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 i, p;
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
- (p = (i = this.route) == null ? void 0 : i.query) == null ? void 0 : p.utm_campaign,
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 = A);
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 = A;
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
- }, E = { class: "tw-whitespace-nowrap" }, R = {
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
- }, U = { class: "tw-flex" }, z = { class: "md:tw-hidden tw-w-full" }, H = ["disabled"], K = { class: "tw-flex tw-gap-1 lg:tw-gap-2" }, W = ["value"], j = {
357
+ }, W = { class: "tw-flex" }, U = ["disabled"], z = {
357
358
  key: 0,
358
- class: "tw-flex tw-gap-1 tw-mt-1"
359
- }, q = ["value"], G = {
360
- key: 1,
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, i, p, a, e) {
370
- const c = b("kv-ui-button"), x = b("kv-material-icon"), B = b("kv-ui-select"), L = b("kv-lend-amount-button");
371
- return o(), d("div", E, [
372
- e.isInBasket ? (o(), l(c, {
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: i.externalLinks ? void 0 : "/basket",
378
- href: i.externalLinks ? "/basket" : void 0,
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: u(() => [
382
- w(h(e.loanInBasketButtonText), 1)
376
+ default: a(() => [
377
+ m(u(e.loanInBasketButtonText), 1)
383
378
  ]),
384
379
  _: 1
385
- }, 8, ["to", "href"])) : e.showNonActionableLoanButton ? (o(), l(c, {
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: u(() => [
390
- w(h(e.ctaButtonText), 1)
384
+ default: a(() => [
385
+ m(u(e.ctaButtonText), 1)
391
386
  ]),
392
387
  _: 1
393
- })) : e.isFunded ? (o(), d("div", R, " This loan was just funded! 🎉 ")) : i.showViewLoan ? (o(), l(c, {
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: i.externalLinks ? void 0 : e.readMorePath,
397
- href: i.externalLinks ? e.readMorePath : void 0,
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: u(() => [
402
- f("span", U, [
403
- s[7] || (s[7] = w(" View loan ")),
404
- N(x, {
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: a.mdiChevronRight
401
+ icon: d.mdiChevronRight
407
402
  }, null, 8, ["icon"])
408
403
  ])
409
404
  ]),
410
405
  _: 1
411
- }, 8, ["state", "to", "href"])) : e.useFormSubmit ? (o(), d("form", {
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] = v((...n) => e.addToBasket && e.addToBasket(...n), ["prevent"]))
409
+ onSubmit: s[6] || (s[6] = B((...n) => e.addToBasket && e.addToBasket(...n), ["prevent"]))
415
410
  }, [
416
- f("div", z, [
417
- f("fieldset", {
418
- class: "tw-w-full tw-min-w-0",
419
- disabled: i.isAdding,
420
- "data-testid": "bp-lend-cta-select-and-button-mobile"
421
- }, [
422
- i.isAdding ? r("", !0) : (o(), d(k, { key: 0 }, [
423
- f("div", K, [
424
- e.isLendAmountButton ? r("", !0) : (o(!0), d(k, { key: 0 }, y(e.presetButtonsPrices, (n) => (o(), l(c, {
425
- key: "m-" + n,
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: m(["preset-option tw-basis-0 tw-flex-1 tw-min-w-0", { "selected-option": a.selectedOption == n }]),
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: (T) => e.clickPresetButton(n)
427
+ onClick: (D) => e.clickPresetButton(n)
430
428
  }, {
431
- default: u(() => [
432
- w(" $" + h(n), 1)
429
+ default: a(() => [
430
+ m(" $ " + u(n), 1)
433
431
  ]),
434
432
  _: 2
435
433
  }, 1032, ["class", "onClick"]))), 128)),
436
- e.showFilteredDropdown && a.viewportWidth > 325 ? (o(), l(B, {
437
- key: 1,
434
+ e.showFilteredDropdown && d.viewportWidth >= d.MOBILE_DROPDOWN_BREAKPOINT ? (i(), r(v, {
435
+ key: 0,
438
436
  id: `LoanAmountDropdownMobile_${e.loanId}`,
439
- modelValue: a.selectedDropdownOption,
437
+ modelValue: d.selectedDropdownOption,
440
438
  "onUpdate:modelValue": [
441
- s[2] || (s[2] = (n) => a.selectedDropdownOption = n),
439
+ s[2] || (s[2] = (n) => d.selectedDropdownOption = n),
442
440
  e.trackLendAmountSelection
443
441
  ],
444
- class: m(["filtered-dropdown tw-rounded tw-w-auto tw-flex-none mobile-other-dd tw-min-w-max", {
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: v(e.clickDropdown, ["stop"])
447
+ onClick: B(e.clickDropdown, ["stop"])
450
448
  }, {
451
- default: u(() => [
452
- (o(!0), d(k, null, y(e.presetDropdownPrices, (n) => (o(), d("option", {
453
- key: "m-" + n,
449
+ default: a(() => [
450
+ (i(!0), l(k, null, A(e.presetDropdownPrices, (n) => (i(), l("option", {
451
+ key: n,
454
452
  value: n
455
- }, h(n !== a.OTHER_OPTION ? `$${n}` : n), 9, W))), 128))
453
+ }, u(n !== d.OTHER_OPTION ? `$${n}` : n), 9, q))), 128))
456
454
  ]),
457
455
  _: 1
458
- }, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : r("", !0)
456
+ }, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : c("", !0)
459
457
  ]),
460
- a.viewportWidth <= 325 ? (o(), d("div", j, [
461
- e.showFilteredDropdown ? (o(), l(B, {
458
+ f("div", G, [
459
+ e.showFilteredDropdown && d.viewportWidth < d.MOBILE_DROPDOWN_BREAKPOINT ? (i(), r(v, {
462
460
  key: 0,
463
- id: `LoanAmountDropdownMobile_${e.loanId}`,
464
- modelValue: a.selectedDropdownOption,
461
+ id: `LoanAmountDropdownMobile_Small_${e.loanId}`,
462
+ modelValue: d.selectedDropdownOption,
465
463
  "onUpdate:modelValue": [
466
- s[3] || (s[3] = (n) => a.selectedDropdownOption = n),
464
+ s[3] || (s[3] = (n) => d.selectedDropdownOption = n),
467
465
  e.trackLendAmountSelection
468
466
  ],
469
- class: m(["filtered-dropdown tw-rounded tw-w-auto tw-flex-none mobile-other-dd", {
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
- style: { "min-width": "90px", "max-width": "110px" },
475
- onClick: v(e.clickDropdown, ["stop"])
472
+ onClick: B(e.clickDropdown, ["stop"])
476
473
  }, {
477
- default: u(() => [
478
- (o(!0), d(k, null, y(e.presetDropdownPrices, (n) => (o(), d("option", {
479
- key: "m-" + n,
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
- }, h(n !== a.OTHER_OPTION ? `$${n}` : n), 9, q))), 128))
478
+ }, u(n !== d.OTHER_OPTION ? `$${n}` : n), 9, J))), 128))
482
479
  ]),
483
480
  _: 1
484
- }, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : r("", !0),
485
- e.lendButtonVisibility && !e.isLessThan25 && !e.hideLendButton ? (o(), l(c, {
486
- key: "lendButtonMobile",
487
- class: "button-ellipsis tw-flex-1",
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: u(() => [
492
- w(h(e.ctaButtonText), 1)
487
+ default: a(() => [
488
+ f("span", Q, [
489
+ f("span", X, u(e.ctaButtonText), 1)
490
+ ])
493
491
  ]),
494
492
  _: 1
495
- })) : r("", !0)
496
- ])) : (o(), d("div", G, [
497
- e.lendButtonVisibility && !e.isLessThan25 && !e.hideLendButton ? (o(), l(c, {
498
- key: "lendButtonMobile",
499
- class: "button-ellipsis tw-w-full",
500
- "data-testid": "bp-lend-cta-lend-button-mobile",
501
- type: "submit"
502
- }, {
503
- default: u(() => [
504
- w(h(e.ctaButtonText), 1)
505
- ]),
506
- _: 1
507
- })) : r("", !0)
508
- ]))
509
- ], 64)),
510
- !i.isLoading && i.isAdding ? (o(), l(c, {
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
- class: "tw-inline-flex tw-flex-1 tw-w-full"
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: u(() => s[8] || (s[8] = [
515
- w(" Adding to basket ")
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
- })) : r("", !0),
519
- e.isLendAmountButton && !i.enableFiveDollarsNotes ? (o(), l(L, {
520
- key: 2,
521
- class: "tw-w-full",
522
- "loan-id": e.loanId,
523
- "show-now": !1,
524
- "amount-left": e.amountForLendAmountButton,
525
- "is-adding": i.isAdding,
526
- onAddToBasket: e.addToBasket
527
- }, null, 8, ["loan-id", "amount-left", "is-adding", "onAddToBasket"])) : r("", !0)
528
- ], 8, H)
529
- ]),
530
- f("div", J, [
531
- f("fieldset", {
532
- class: m(["tw-w-full tw-flex", {
533
- "tw-flex-col md:tw-flex-row md:tw-justify-between tw-min-w-0": i.showPresetAmounts,
534
- "tw-gap-1.5": i.showPresetAmounts && !e.isLendAmountButton
535
- }]),
536
- disabled: i.isAdding,
537
- "data-testid": "bp-lend-cta-select-and-button"
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
- i.showPresetAmounts && !i.isAdding ? (o(), d("div", X, [
540
- e.isLendAmountButton ? r("", !0) : (o(!0), d(k, { key: 0 }, y(e.presetButtonsPrices, (n) => (o(), l(c, {
541
- key: n,
542
- variant: "secondary",
543
- class: m(["tw-inline-flex tw-flex-1 preset-option tw-w-8", { "selected-option": a.selectedOption == n }]),
544
- "data-testid": "bp-lend-cta-lend-button",
545
- onClick: (T) => e.clickPresetButton(n)
546
- }, {
547
- default: u(() => [
548
- w(" $" + h(n), 1)
549
- ]),
550
- _: 2
551
- }, 1032, ["class", "onClick"]))), 128)),
552
- e.showFilteredDropdown ? (o(), l(B, {
553
- key: 1,
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: u(() => s[9] || (s[9] = [
641
- w(" Adding to basket ")
642
- ])),
586
+ default: a(() => [
587
+ m(u(o.primaryButtonText || "Lend") + " again ", 1)
588
+ ]),
643
589
  _: 1
644
- })) : r("", !0)
645
- ], 10, Q)
646
- ])
647
- ], 32)) : r("", !0)
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__ */ O(M, [["render", ee], ["__scopeId", "data-v-ce2eaa1b"]]);
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-rounded tw-cursor-pointer", r.computedClass]),
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-e43175cd]{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-e43175cd]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}
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 g, resolveDirective as j, openBlock as i, createElementBlock as c, withDirectives as d, normalizeClass as b, createVNode as U, createBlock as h, withCtx as T, createTextVNode as w, createElementVNode as D, createCommentVNode as M, toDisplayString as F } from "vue";
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")), O = k(() => import("./KvHeaderMyKivaMenu.js")), re = k(() => import("./LendMenu/KvLendMenu.js")), le = k(() => import("./KvHeaderTakeActionMenu.js")), ie = k(() => import("./KvHeaderAboutMenu.js")), C = 118, y = "avatar-menu", ae = {
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), p = l(null), f = l(null), A = l(null), H = l(null), a = l(null), o = l(null), m = (r, v, s = null) => {
61
- e("item-hover", r, v, s);
62
- }, _ = (r, v, s = null) => {
63
- u.isMobile || m(r, v, s);
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, N;
68
- const r = (N = (B = t.value) == null ? void 0 : B.userAvatar) == null ? void 0 : N.getBoundingClientRect();
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 s = r.left + r.width / 2 - C / 2;
70
+ const v = r.left + r.width / 2 - C / 2;
71
71
  return {
72
- ...s + C > window.outerWidth ? { right: 0 } : { left: u.isMobile ? 0 : `${s}px` },
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 = y, m(t.value, O, E());
78
- }, V = (r, v) => {
79
- !o.value || o.value !== r ? (o.value = r, r === y ? I() : m(r, v)) : (o.value = null, m());
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 === y && I();
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: y,
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: p,
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: O,
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
- }, ve = ["href"];
121
- function se(u, e, t, n, x, K) {
122
- const p = g("kv-material-icon"), f = g("KvHeaderDropdownLink"), A = g("kv-icon-bag"), H = g("KvUserAvatar"), a = j("kv-track-event");
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: b(["header-link tw-inline-flex lg:tw-hidden", {
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(p, { icon: n.mdiMenu }, null, 8, ["icon"])
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.onHover,
164
- onMouseout: e[5] || (e[5] = (o) => n.onHover())
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.onHover,
181
- onMouseout: e[6] || (e[6] = (o) => n.onHover())
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] = D("div", { class: "tw-flex-1 tw-h-full" }, null, -1)),
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: b(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!t.openMenuItem }])
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: b(["header-link tw-relative", { "tw-text-tertiary": !!t.openMenuItem }])
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
- D("div", {
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: b(["header-link", { "tw-text-tertiary": !!t.openMenuItem }])
236
+ class: g(["header-link", { "tw-text-tertiary": !!t.openMenuItem }])
234
237
  }, e[14] || (e[14] = [
235
238
  w(" Sign in ")
236
- ]), 10, ve)), [
239
+ ]), 10, se)), [
237
240
  [a, ["TopNav", "click-Sign-in"]]
238
241
  ])
239
242
  ]);
240
243
  }
241
- const He = /* @__PURE__ */ te(ae, [["render", se], ["__scopeId", "data-v-e43175cd"]]);
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.1",
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": "3340c201bdd77ab6488052728a1d131eecb0401e"
116
+ "gitHead": "0b369f28a444966749668a69bfb2f1aab97a4824"
117
117
  }