@kiva/kv-components 8.19.2 → 8.19.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.
Files changed (97) hide show
  1. package/dist/data/ne_110m_admin_0_countries.json.js +1 -1
  2. package/dist/utils/Alea.js +2 -2
  3. package/dist/utils/mapUtils.js +5 -7
  4. package/dist/vendor/aria-hidden/dist/es2015/index.js +23 -23
  5. package/dist/vendor/popper.js/dist/esm/popper.js +6 -6
  6. package/dist/vue/KvAtbModal.css +1 -1
  7. package/dist/vue/KvCarousel.css +1 -1
  8. package/dist/vue/KvCarousel2.js +5 -5
  9. package/dist/vue/KvCartModal.css +1 -1
  10. package/dist/vue/KvCartModal2.js +7 -7
  11. package/dist/vue/KvCheckbox.js +3 -3
  12. package/dist/vue/KvClassicLoanCard.css +1 -1
  13. package/dist/vue/KvClassicLoanCard.js +2 -2
  14. package/dist/vue/KvClassicLoanCard.vue.d.ts +29 -12
  15. package/dist/vue/KvClassicLoanCard2.js +52 -46
  16. package/dist/vue/KvCommentsContainer2.js +7 -7
  17. package/dist/vue/KvCommentsListItem2.js +11 -11
  18. package/dist/vue/KvCompactLoanCard.css +1 -1
  19. package/dist/vue/KvCompactLoanCard.js +147 -147
  20. package/dist/vue/KvCompactLoanCard.vue.d.ts +11 -6
  21. package/dist/vue/KvCompactLoanCard2.js +15 -15
  22. package/dist/vue/KvContentfulImg.js +3 -3
  23. package/dist/vue/KvDatePicker.vue.d.ts +5 -2
  24. package/dist/vue/KvDatePicker2.js +9 -5
  25. package/dist/vue/KvExpandable2.js +3 -3
  26. package/dist/vue/KvExpandableQuestion2.js +3 -3
  27. package/dist/vue/KvFlag.js +5 -5
  28. package/dist/vue/KvIconButton.js +4 -4
  29. package/dist/vue/KvImageUpload.js +1 -1
  30. package/dist/vue/KvImageUpload2.js +3 -3
  31. package/dist/vue/KvIntroductionLoanCard.css +1 -1
  32. package/dist/vue/KvIntroductionLoanCard.js +11 -11
  33. package/dist/vue/KvIntroductionLoanCard.vue.d.ts +8 -4
  34. package/dist/vue/KvIntroductionLoanCard2.js +34 -31
  35. package/dist/vue/KvLendAmountButton.vue.d.ts +4 -2
  36. package/dist/vue/KvLendAmountButton2.js +3 -0
  37. package/dist/vue/KvLendCta.css +1 -1
  38. package/dist/vue/KvLendCta.js +9 -9
  39. package/dist/vue/KvLendCta.vue.d.ts +9 -4
  40. package/dist/vue/KvLendCta2.js +11 -7
  41. package/dist/vue/KvLightbox2.js +4 -4
  42. package/dist/vue/KvLoanActivities.js +4 -4
  43. package/dist/vue/KvLoanActivities.vue.d.ts +9 -4
  44. package/dist/vue/KvLoanActivities2.js +13 -13
  45. package/dist/vue/KvLoanBookmark.vue.d.ts +4 -2
  46. package/dist/vue/KvLoanBookmark2.js +8 -5
  47. package/dist/vue/KvLoanInfoCard.css +1 -1
  48. package/dist/vue/KvLoanInfoCard.js +2 -2
  49. package/dist/vue/KvLoanTag.js +9 -9
  50. package/dist/vue/KvLoanTag2.js +1 -1
  51. package/dist/vue/KvMap.vue.d.ts +4 -2
  52. package/dist/vue/KvMap2.js +9 -6
  53. package/dist/vue/KvPagination.vue.d.ts +4 -2
  54. package/dist/vue/KvPagination2.js +7 -4
  55. package/dist/vue/KvPieChartV2.css +1 -1
  56. package/dist/vue/KvPieChartV22.js +3 -3
  57. package/dist/vue/KvPopper2.js +4 -4
  58. package/dist/vue/KvRadio.js +1 -1
  59. package/dist/vue/KvSecondaryNav.js +25 -25
  60. package/dist/vue/KvSecondaryNav2.js +8 -8
  61. package/dist/vue/KvSelect.js +12 -12
  62. package/dist/vue/KvSideSheet.js +1 -1
  63. package/dist/vue/KvSideSheet2.js +3 -3
  64. package/dist/vue/KvSimpleMap.css +1 -1
  65. package/dist/vue/KvSimpleMap.js +2 -2
  66. package/dist/vue/KvSimpleMap2.js +1 -0
  67. package/dist/vue/KvSwitch.js +1 -1
  68. package/dist/vue/KvTabs.vue.d.ts +4 -2
  69. package/dist/vue/KvTabs2.js +17 -14
  70. package/dist/vue/KvTextInput.js +1 -1
  71. package/dist/vue/KvTextInput2.js +3 -3
  72. package/dist/vue/KvThemeProvider.css +1 -1
  73. package/dist/vue/KvTooltip.css +1 -1
  74. package/dist/vue/KvTooltip.js +7 -7
  75. package/dist/vue/KvTooltip2.js +22 -22
  76. package/dist/vue/KvTreeMapChart.css +1 -1
  77. package/dist/vue/KvVerticalCarousel2.js +5 -5
  78. package/dist/vue/KvVotingCard.css +1 -1
  79. package/dist/vue/KvVotingCard.js +11 -11
  80. package/dist/vue/KvVotingCard.vue.d.ts +5 -2
  81. package/dist/vue/KvVotingCard2.js +4 -0
  82. package/dist/vue/KvWideLoanCard.css +1 -1
  83. package/dist/vue/KvWideLoanCard.js +4 -4
  84. package/dist/vue/KvWideLoanCard.vue.d.ts +18 -8
  85. package/dist/vue/KvWideLoanCard2.js +39 -35
  86. package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +1 -1
  87. package/dist/vue/KvWwwHeader/KvHeaderLinkBar2.js +5 -5
  88. package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +3 -3
  89. package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +4 -4
  90. package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +9 -9
  91. package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu2.js +3 -3
  92. package/dist/vue/KvWwwHeaderBasic/LinkBar.css +1 -1
  93. package/dist/vue/KvWwwHeaderBasic/LinkBar2.js +3 -3
  94. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.css +1 -1
  95. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.js +1 -1
  96. package/dist/vue/KvWwwHeaderBasic/SearchBar2.js +6 -6
  97. package/package.json +2 -20
@@ -155,7 +155,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
155
155
  clickPresetButton(selectedDollarAmount: any): void;
156
156
  handleCheckout(): void;
157
157
  isNarrowComponent(): boolean;
158
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
158
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("show-loan-details" | "add-to-basket")[], "show-loan-details" | "add-to-basket", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
159
159
  loan: {
160
160
  type: ObjectConstructor;
161
161
  default: () => {};
@@ -252,7 +252,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
252
252
  type: NumberConstructor;
253
253
  default: number;
254
254
  };
255
- }>> & Readonly<{}>, {
255
+ }>> & Readonly<{
256
+ "onAdd-to-basket"?: (...args: any[]) => any;
257
+ "onShow-loan-details"?: (...args: any[]) => any;
258
+ }>, {
256
259
  loan: Record<string, any>;
257
260
  externalLinks: boolean;
258
261
  customLoanDetails: boolean;
@@ -299,7 +302,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
299
302
  buttonText(): string;
300
303
  }, {
301
304
  addToBasket(event: any): void;
302
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
305
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "add-to-basket"[], "add-to-basket", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
303
306
  loanId: {
304
307
  type: NumberConstructor;
305
308
  default: any;
@@ -316,7 +319,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
316
319
  type: BooleanConstructor;
317
320
  default: boolean;
318
321
  };
319
- }>> & Readonly<{}>, {
322
+ }>> & Readonly<{
323
+ "onAdd-to-basket"?: (...args: any[]) => any;
324
+ }>, {
320
325
  loanId: number;
321
326
  showNow: boolean;
322
327
  amountLeft: string | number;
@@ -6,21 +6,21 @@ import c from "./KvLendAmountButton.js";
6
6
  import p from "./KvSelect.js";
7
7
  import m from "./KvButton.js";
8
8
  import f from "./KvMaterialIcon.js";
9
- const n = "Other", A = 360, r = 480, a = 380, O = u`
9
+ const n = "Other", v = 360, r = 480, a = 380, O = u`
10
10
  fragment KvLendCta on LoanBasic {
11
11
  id
12
12
  name
13
13
  status
14
14
  minNoteSize
15
15
  }
16
- `, D = u`
16
+ `, b = u`
17
17
  fragment KvLendCtaUser on LoanBasic {
18
18
  id
19
19
  userProperties {
20
20
  lentTo
21
21
  }
22
22
  }
23
- `, b = {
23
+ `, D = {
24
24
  name: "KvLendCta",
25
25
  components: {
26
26
  KvLendAmountButton: c,
@@ -138,6 +138,10 @@ const n = "Other", A = 360, r = 480, a = 380, O = u`
138
138
  default: a
139
139
  }
140
140
  },
141
+ emits: [
142
+ "show-loan-details",
143
+ "add-to-basket"
144
+ ],
141
145
  data() {
142
146
  var t, e;
143
147
  return {
@@ -158,7 +162,7 @@ const n = "Other", A = 360, r = 480, a = 380, O = u`
158
162
  viewportWidth: typeof window < "u" ? window.innerWidth : 1024,
159
163
  componentWidth: 1024,
160
164
  resizeObserver: null,
161
- MOBILE_DROPDOWN_BREAKPOINT: A,
165
+ MOBILE_DROPDOWN_BREAKPOINT: v,
162
166
  NARROW_SIDEBAR_BREAKPOINT: r,
163
167
  NARROW_SIDEBAR_DROPDOWN_BREAKPOINT: a
164
168
  };
@@ -314,7 +318,7 @@ const n = "Other", A = 360, r = 480, a = 380, O = u`
314
318
  this.resizeObserver = new window.ResizeObserver(h(t, 50)), this.$refs.root && (this.resizeObserver.observe(this.$refs.root), t());
315
319
  }));
316
320
  },
317
- beforeDestroy() {
321
+ beforeUnmount() {
318
322
  this.resizeHandler && typeof window < "u" && window.removeEventListener("resize", this.resizeHandler), this.resizeObserver && this.$refs.root && this.resizeObserver.disconnect();
319
323
  },
320
324
  methods: {
@@ -382,6 +386,6 @@ const n = "Other", A = 360, r = 480, a = 380, O = u`
382
386
  };
383
387
  export {
384
388
  O as KV_LEND_CTA_FRAGMENT,
385
- D as KV_LEND_CTA_USER_FRAGMENT,
386
- b as default
389
+ b as KV_LEND_CTA_USER_FRAGMENT,
390
+ D as default
387
391
  };
@@ -2,8 +2,8 @@ import { toRefs as h, ref as u, nextTick as k, computed as x, watch as S, onMoun
2
2
  import { mdiClose as E } from "@mdi/js";
3
3
  import { useFocusTrap as L } from "@vueuse/integrations/useFocusTrap";
4
4
  import { hideOthers as w } from "../vendor/aria-hidden/dist/es2015/index.js";
5
- import { unlockScroll as P, lockScroll as q } from "../utils/scrollLock.js";
6
- import { unlockPrintSingleEl as I, lockPrintSingleEl as K } from "../utils/printing.js";
5
+ import { lockScroll as P, unlockScroll as q } from "../utils/scrollLock.js";
6
+ import { lockPrintSingleEl as I, unlockPrintSingleEl as K } from "../utils/printing.js";
7
7
  import M from "./KvMaterialIcon.js";
8
8
  const A = {
9
9
  components: {
@@ -79,7 +79,7 @@ const A = {
79
79
  let c = null, s = null;
80
80
  const b = x(() => d.value === "alert" ? "alertdialog" : "dialog"), r = (e = "") => {
81
81
  var l;
82
- n.value && t.value && ((l = i.value) == null || l.call(i), t.value.scrollTop = 0, I(t.value)), P(), c && (c(), c = null), document.removeEventListener("keyup", s), o.value && g("lightbox-closed", { type: e });
82
+ n.value && t.value && ((l = i.value) == null || l.call(i), t.value.scrollTop = 0, K(t.value)), q(), c && (c(), c = null), document.removeEventListener("keyup", s), o.value && g("lightbox-closed", { type: e });
83
83
  };
84
84
  s = (e) => {
85
85
  e && e.key === "Escape" && !p.value && r();
@@ -89,7 +89,7 @@ const A = {
89
89
  }, f = () => {
90
90
  o.value && (document.addEventListener("keyup", s), k(() => {
91
91
  var e;
92
- if (n.value && t.value && ((e = a.value) == null || e.call(a), c = w(n.value), K(t.value)), q(), d.value === "alert") {
92
+ if (n.value && t.value && ((e = a.value) == null || e.call(a), c = w(n.value), I(t.value)), P(), d.value === "alert") {
93
93
  const l = m.value.querySelector("button");
94
94
  l && l.focus();
95
95
  }
@@ -10,8 +10,8 @@ const A = {
10
10
  key: 0,
11
11
  class: "tw-mt-1 tw-text-small tw-text-danger"
12
12
  }, F = { class: "tw-flex tw-justify-end tw-mt-4 tw-pb-2.5 md:tw-pb-4" };
13
- function I(x, a, t, e, j, E) {
14
- const v = c("KvActivityRow"), k = c("KvLendCta"), u = c("KvLightbox");
13
+ function I(k, a, t, e, j, E) {
14
+ const v = c("KvActivityRow"), x = c("KvLendCta"), u = c("KvLightbox");
15
15
  return t.combinedActivities.length > 0 ? (n(), s("div", A, [
16
16
  i("div", L, [
17
17
  d(v, { activity: e.singleActivity }, null, 8, ["activity"])
@@ -49,7 +49,7 @@ function I(x, a, t, e, j, E) {
49
49
  i("div", null, [
50
50
  t.errorMsg ? (n(), s("p", B, l(t.errorMsg), 1)) : r("", !0),
51
51
  i("div", F, [
52
- d(k, {
52
+ d(x, {
53
53
  loan: t.loan,
54
54
  "is-loading": !1,
55
55
  "kv-track-function": t.kvTrackFunction,
@@ -61,7 +61,7 @@ function I(x, a, t, e, j, E) {
61
61
  "is-adding": t.isAdding,
62
62
  "is-visitor": t.isVisitor,
63
63
  "enable-five-dollars-notes": t.enableFiveDollarsNotes,
64
- onAddToBasket: a[1] || (a[1] = (o) => x.$emit("add-to-basket", o))
64
+ onAddToBasket: a[1] || (a[1] = (o) => k.$emit("add-to-basket", o))
65
65
  }, null, 8, ["loan", "kv-track-function", "get-cookie", "set-cookie", "user-balance", "basket-items", "route", "is-adding", "is-visitor", "enable-five-dollars-notes"])
66
66
  ])
67
67
  ])
@@ -435,7 +435,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
435
435
  clickPresetButton(selectedDollarAmount: any): void;
436
436
  handleCheckout(): void;
437
437
  isNarrowComponent(): boolean;
438
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
438
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("show-loan-details" | "add-to-basket")[], "show-loan-details" | "add-to-basket", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
439
439
  loan: {
440
440
  type: ObjectConstructor;
441
441
  default: () => {};
@@ -532,7 +532,10 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
532
532
  type: NumberConstructor;
533
533
  default: number;
534
534
  };
535
- }>> & Readonly<{}>, {
535
+ }>> & Readonly<{
536
+ "onAdd-to-basket"?: (...args: any[]) => any;
537
+ "onShow-loan-details"?: (...args: any[]) => any;
538
+ }>, {
536
539
  loan: Record<string, any>;
537
540
  externalLinks: boolean;
538
541
  customLoanDetails: boolean;
@@ -579,7 +582,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
579
582
  buttonText(): string;
580
583
  }, {
581
584
  addToBasket(event: any): void;
582
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
585
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "add-to-basket"[], "add-to-basket", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
583
586
  loanId: {
584
587
  type: NumberConstructor;
585
588
  default: any;
@@ -596,7 +599,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
596
599
  type: BooleanConstructor;
597
600
  default: boolean;
598
601
  };
599
- }>> & Readonly<{}>, {
602
+ }>> & Readonly<{
603
+ "onAdd-to-basket"?: (...args: any[]) => any;
604
+ }>, {
600
605
  loanId: number;
601
606
  showNow: boolean;
602
607
  amountLeft: string | number;
@@ -1,11 +1,11 @@
1
- import { toRefs as m, ref as p, computed as n } from "vue";
2
- import { gql as v } from "@apollo/client/core";
1
+ import { toRefs as f, ref as v, computed as n } from "vue";
2
+ import { gql as p } from "@apollo/client/core";
3
3
  import { format as y } from "date-fns";
4
4
  import A from "numeral";
5
5
  import g from "./KvActivityRow.js";
6
6
  import b from "./KvLightbox.js";
7
7
  import F from "./KvLendCta.js";
8
- const O = v`
8
+ const O = p`
9
9
  fragment KvLoanActivities on LoanBasic {
10
10
  id
11
11
  name
@@ -110,37 +110,37 @@ const O = v`
110
110
  setup(r) {
111
111
  const {
112
112
  loan: a,
113
- combinedActivities: u,
114
- kvTrackFunction: d
115
- } = m(r), i = p(!1), l = n(() => {
113
+ combinedActivities: l,
114
+ kvTrackFunction: s
115
+ } = f(r), i = v(!1), u = n(() => {
116
116
  var t;
117
117
  return `Activity for ${((t = a.value) == null ? void 0 : t.name) || ""}`;
118
- }), s = n(() => {
118
+ }), d = n(() => {
119
119
  var t, e;
120
120
  return ((e = (t = a.value) == null ? void 0 : t.lenders) == null ? void 0 : e.totalCount) ?? 0;
121
121
  }), c = n(() => {
122
122
  var e, o;
123
123
  const t = ((o = (e = a.value) == null ? void 0 : e.loanFundraisingInfo) == null ? void 0 : o.fundedAmount) ?? 0;
124
124
  return A(parseFloat(t)).format("$0,0");
125
- }), f = n(() => {
126
- const t = u.value.find((e) => e.data.some((o) => o.type === "LendingAction"));
125
+ }), m = n(() => {
126
+ const t = l.value.find((e) => e.data.some((o) => o.type === "LendingAction"));
127
127
  return (t == null ? void 0 : t.data[0]) ?? {};
128
128
  });
129
129
  return {
130
130
  lightboxOpen: i,
131
- modalTitle: l,
131
+ modalTitle: u,
132
132
  formattedDate: (t) => {
133
133
  const e = new Date(t);
134
134
  return y(e, "MMM d, yyyy");
135
135
  },
136
136
  showActivityModal: () => {
137
- d.value("loan-card", "click", "see-all-activity"), i.value = !0;
137
+ s.value("loan-card", "click", "see-all-activity"), i.value = !0;
138
138
  },
139
139
  closeLightbox: () => {
140
140
  i.value = !1;
141
141
  },
142
- singleActivity: f,
143
- lendersNumber: s,
142
+ singleActivity: m,
143
+ lendersNumber: d,
144
144
  amountLent: c
145
145
  };
146
146
  }
@@ -7,12 +7,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
7
7
  }>, {}, {
8
8
  mdiBookmarkOutline: string;
9
9
  mdiBookmark: string;
10
- }, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ }, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "toggle-bookmark"[], "toggle-bookmark", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
11
11
  isBookmarked: {
12
12
  type: BooleanConstructor;
13
13
  default: boolean;
14
14
  };
15
- }>> & Readonly<{}>, {
15
+ }>> & Readonly<{
16
+ "onToggle-bookmark"?: (...args: any[]) => any;
17
+ }>, {
16
18
  isBookmarked: boolean;
17
19
  }, {}, {
18
20
  KvMaterialIcon: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
@@ -1,5 +1,5 @@
1
1
  import o from "graphql-tag";
2
- import { mdiBookmarkOutline as a, mdiBookmark as r } from "@mdi/js";
2
+ import { mdiBookmark as a, mdiBookmarkOutline as r } from "@mdi/js";
3
3
  import e from "./KvMaterialIcon.js";
4
4
  const i = o`
5
5
  fragment KvLoanBookmark on LoanBasic {
@@ -8,7 +8,7 @@ const i = o`
8
8
  favorited
9
9
  }
10
10
  }
11
- `, s = {
11
+ `, k = {
12
12
  name: "KvLoanBookmark",
13
13
  components: {
14
14
  KvMaterialIcon: e
@@ -19,14 +19,17 @@ const i = o`
19
19
  default: !1
20
20
  }
21
21
  },
22
+ emits: [
23
+ "toggle-bookmark"
24
+ ],
22
25
  data() {
23
26
  return {
24
- mdiBookmarkOutline: a,
25
- mdiBookmark: r
27
+ mdiBookmarkOutline: r,
28
+ mdiBookmark: a
26
29
  };
27
30
  }
28
31
  };
29
32
  export {
30
33
  i as KV_LOAN_BOOKMARK_FRAGMENT,
31
- s as default
34
+ k as default
32
35
  };
@@ -1 +1 @@
1
- .loan-card-active-hover[data-v-de35f998]:hover{cursor:pointer}.loan-card-use[data-v-de35f998]:hover,.loan-card-use[data-v-de35f998]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-de35f998]{text-decoration-line:underline}.loan-card-progress[data-v-de35f998]:hover,.loan-card-progress[data-v-de35f998]:focus{text-decoration-line:none}
1
+ .loan-card-active-hover[data-v-13281840]:hover{cursor:pointer}.loan-card-use[data-v-13281840]:hover,.loan-card-use[data-v-13281840]:focus{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1))}.loan-card-active-hover:hover .loan-card-use[data-v-13281840]{text-decoration-line:underline}.loan-card-progress[data-v-13281840]:hover,.loan-card-progress[data-v-13281840]:focus{text-decoration-line:none}
@@ -4,7 +4,7 @@ import K from "./KvLoanUse.js";
4
4
  import W from "./KvBorrowerImage.js";
5
5
  import F from "./KvMaterialIcon.js";
6
6
  import E from "./KvLoadingPlaceholder.js";
7
- import { resolveComponent as m, openBlock as t, createElementBlock as i, normalizeClass as _, normalizeStyle as I, createElementVNode as l, createBlock as c, resolveDynamicComponent as v, withCtx as k, createVNode as s, toDisplayString as b, createCommentVNode as T, Fragment as O, renderList as U, withModifiers as V } from "vue";
7
+ import { resolveComponent as m, openBlock as t, createElementBlock as i, normalizeStyle as I, normalizeClass as _, createElementVNode as l, createBlock as c, resolveDynamicComponent as v, withCtx as k, createVNode as s, toDisplayString as b, createCommentVNode as T, Fragment as O, renderList as U, withModifiers as V } from "vue";
8
8
  import "./KvLoanInfoCard.css";
9
9
  import G from "../_virtual/_plugin-vue_export-helper.js";
10
10
  import { KV_LOAN_USE_FRAGMENT as H } from "./KvLoanUse2.js";
@@ -255,7 +255,7 @@ function re(w, a, o, e, y, n) {
255
255
  ])
256
256
  ], 6);
257
257
  }
258
- const ge = /* @__PURE__ */ G(q, [["render", re], ["__scopeId", "data-v-de35f998"]]);
258
+ const ge = /* @__PURE__ */ G(q, [["render", re], ["__scopeId", "data-v-13281840"]]);
259
259
  export {
260
260
  fe as KV_LOAN_INFO_CARD_FRAGMENT,
261
261
  ge as default
@@ -1,21 +1,21 @@
1
1
  import u from "./KvLoanTag2.js";
2
2
  import { KV_LOAN_TAG_FRAGMENT as O } from "./KvLoanTag2.js";
3
- import { resolveComponent as c, openBlock as e, createElementBlock as a, normalizeClass as _, normalizeStyle as g, Fragment as o, createTextVNode as i, toDisplayString as r, createElementVNode as h, createVNode as f, withCtx as k, renderList as w, createBlock as x, createCommentVNode as m } from "vue";
4
- import y from "../_virtual/_plugin-vue_export-helper.js";
5
- const p = ["id"];
6
- function v(M, N, l, A, C, t) {
3
+ import { resolveComponent as c, openBlock as e, createElementBlock as a, normalizeStyle as _, normalizeClass as g, Fragment as o, createTextVNode as i, toDisplayString as r, createElementVNode as h, createVNode as f, withCtx as k, renderList as w, createBlock as y, createCommentVNode as m } from "vue";
4
+ import p from "../_virtual/_plugin-vue_export-helper.js";
5
+ const x = ["id"];
6
+ function v(M, N, l, C, T, t) {
7
7
  const d = c("kv-tooltip"), s = c("kv-countdown-timer");
8
8
  return t.variation ? (e(), a("div", {
9
9
  key: 0,
10
- class: _(["tw-text-small tw-font-medium tw-pt-0.5", { "tw-line-clamp-1": !t.isMultipleMatch }]),
11
- style: g({ color: t.tagColor })
10
+ class: g(["tw-text-small tw-font-medium tw-pt-0.5", { "tw-line-clamp-1": !t.isMultipleMatch }]),
11
+ style: _({ color: t.tagColor })
12
12
  }, [
13
13
  t.isMultipleMatch ? (e(), a(o, { key: 0 }, [
14
14
  i(r(t.totalMatchRatio) + "x match by ", 1),
15
15
  h("span", {
16
16
  id: `matching-orgs-${l.loan.id}`,
17
17
  class: "tw-underline tw-decoration-dotted tw-cursor-pointer"
18
- }, r(t.multiMatchingOrgs.length) + " organizations", 9, p),
18
+ }, r(t.multiMatchingOrgs.length) + " organizations", 9, x),
19
19
  f(d, {
20
20
  controller: `matching-orgs-${l.loan.id}`,
21
21
  theme: "default"
@@ -30,14 +30,14 @@ function v(M, N, l, A, C, t) {
30
30
  }, 8, ["controller"])
31
31
  ], 64)) : (e(), a(o, { key: 1 }, [
32
32
  i(r(t.tagText) + " ", 1),
33
- t.variation === "ending-soon" ? (e(), x(s, {
33
+ t.variation === "ending-soon" ? (e(), y(s, {
34
34
  key: 0,
35
35
  deadline: t.deadline
36
36
  }, null, 8, ["deadline"])) : m("", !0)
37
37
  ], 64))
38
38
  ], 6)) : m("", !0);
39
39
  }
40
- const B = /* @__PURE__ */ y(u, [["render", v]]);
40
+ const B = /* @__PURE__ */ p(u, [["render", v]]);
41
41
  export {
42
42
  O as KV_LOAN_TAG_FRAGMENT,
43
43
  B as default
@@ -1,4 +1,4 @@
1
- import { parseISO as s, differenceInDays as r } from "date-fns";
1
+ import { differenceInDays as r, parseISO as s } from "date-fns";
2
2
  import u from "graphql-tag";
3
3
  import l from "numeral";
4
4
  import d from "./KvCountdownTimer.js";
@@ -129,7 +129,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
129
129
  highlightFeature(e: any): void;
130
130
  resetHighlight(e: any): void;
131
131
  circleMapClicked(countryIso: any): void;
132
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
132
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "country-lend-filter"[], "country-lend-filter", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
133
133
  aspectRatio: {
134
134
  type: NumberConstructor;
135
135
  default: number;
@@ -207,7 +207,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
207
207
  type: BooleanConstructor;
208
208
  default: boolean;
209
209
  };
210
- }>> & Readonly<{}>, {
210
+ }>> & Readonly<{
211
+ "onCountry-lend-filter"?: (...args: any[]) => any;
212
+ }>, {
211
213
  height: number;
212
214
  width: number;
213
215
  aspectRatio: number;
@@ -1,5 +1,5 @@
1
1
  import r from "@kiva/kv-tokens";
2
- import { computeMapCenter as l, computeMapZoom as h, generateMapMarkers as c, animationCoordinator as u, getCountryColor as n } from "../utils/mapUtils.js";
2
+ import { getCountryColor as n, generateMapMarkers as l, animationCoordinator as h, computeMapZoom as c, computeMapCenter as u } from "../utils/mapUtils.js";
3
3
  const p = {
4
4
  name: "KvMap",
5
5
  props: {
@@ -165,6 +165,9 @@ const p = {
165
165
  default: !1
166
166
  }
167
167
  },
168
+ emits: [
169
+ "country-lend-filter"
170
+ ],
168
171
  data() {
169
172
  return {
170
173
  hasWebGL: !1,
@@ -195,7 +198,7 @@ const p = {
195
198
  */
196
199
  computedCenter() {
197
200
  var e;
198
- return !this.optimizeInitialMapZoom || !((e = this.countriesData) != null && e.length) ? { lat: 0, long: 0 } : l(this.countriesData);
201
+ return !this.optimizeInitialMapZoom || !((e = this.countriesData) != null && e.length) ? { lat: 0, long: 0 } : u(this.countriesData);
199
202
  },
200
203
  /**
201
204
  * Effective latitude: explicit prop overrides computed value
@@ -216,7 +219,7 @@ const p = {
216
219
  */
217
220
  effectiveZoomLevel() {
218
221
  var e;
219
- return this.optimizeInitialMapZoom && ((e = this.countriesData) != null && e.length) ? h(this.countriesData) : this.zoomLevel;
222
+ return this.optimizeInitialMapZoom && ((e = this.countriesData) != null && e.length) ? c(this.countriesData) : this.zoomLevel;
220
223
  }
221
224
  },
222
225
  watch: {
@@ -240,7 +243,7 @@ const p = {
240
243
  var e;
241
244
  (e = this.countriesData) != null && e.length && this.ensureCountriesBordersLoaded(), !this.mapLibreReady && !this.leafletReady && this.initializeMap();
242
245
  },
243
- beforeDestroy() {
246
+ beforeUnmount() {
244
247
  this.mapInstance && (!this.hasWebGL && !this.leafletReady && this.mapInstance.off(), this.mapInstance.remove()), this.destroyWrapperObserver();
245
248
  },
246
249
  methods: {
@@ -342,8 +345,8 @@ const p = {
342
345
  animateMap() {
343
346
  this.mapInstance.style.stylesheet.layers.forEach((e) => {
344
347
  e.type === "symbol" && this.mapInstance.removeLayer(e.id);
345
- }), c(this.mapInstance, this.advancedAnimation.borrowerPoints), setTimeout(() => {
346
- u(this.mapInstance, this.advancedAnimation.borrowerPoints).then(() => {
348
+ }), l(this.mapInstance, this.advancedAnimation.borrowerPoints), setTimeout(() => {
349
+ h(this.mapInstance, this.advancedAnimation.borrowerPoints).then(() => {
347
350
  this.mapInstance.dragPan.enable(), this.mapInstance.scrollZoom.enable(), this.mapInstance.scrollZoom.enable(), this.mapInstance.easeTo({
348
351
  center: [this.effectiveLong, this.effectiveLat],
349
352
  zoom: this.initialZoom || this.effectiveZoomLevel
@@ -50,7 +50,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
50
50
  clickPage(number: any): void;
51
51
  clickPrevious(): void;
52
52
  clickNext(): void;
53
- }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
53
+ }, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "page-changed"[], "page-changed", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
54
54
  limit: {
55
55
  type: NumberConstructor;
56
56
  required: true;
@@ -83,7 +83,9 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
83
83
  type: StringConstructor;
84
84
  default: string;
85
85
  };
86
- }>> & Readonly<{}>, {
86
+ }>> & Readonly<{
87
+ "onPage-changed"?: (...args: any[]) => any;
88
+ }>, {
87
89
  kvTrackFunction: Function;
88
90
  offset: number;
89
91
  extraPages: number;
@@ -1,4 +1,4 @@
1
- import { mdiChevronLeft as a, mdiChevronRight as r } from "@mdi/js";
1
+ import { mdiChevronRight as s, mdiChevronLeft as r } from "@mdi/js";
2
2
  import n from "./KvMaterialIcon.js";
3
3
  const h = {
4
4
  name: "KvPagination",
@@ -40,10 +40,13 @@ const h = {
40
40
  default: ""
41
41
  }
42
42
  },
43
+ emits: [
44
+ "page-changed"
45
+ ],
43
46
  data() {
44
47
  return {
45
- mdiChevronLeft: a,
46
- mdiChevronRight: r
48
+ mdiChevronLeft: r,
49
+ mdiChevronRight: s
47
50
  };
48
51
  },
49
52
  computed: {
@@ -73,7 +76,7 @@ const h = {
73
76
  },
74
77
  methods: {
75
78
  range(t, e) {
76
- return [...Array(e - t + 1)].map((i, s) => s + t);
79
+ return [...Array(e - t + 1)].map((i, a) => a + t);
77
80
  },
78
81
  isCurrent(t) {
79
82
  return t === this.current;
@@ -1 +1 @@
1
- .segment-circle[data-v-73c9f5f9]{transition:stroke-dashoffset .5s ease-in-out}.skeleton-ring[data-v-73c9f5f9]{opacity:1;transition:opacity .5s ease-in-out}.skeleton-ring--loading[data-v-73c9f5f9]{animation:skeleton-ring-pulse-73c9f5f9 1.4s ease-in-out infinite;transform-origin:center}.legend-dot[data-v-73c9f5f9]{transition:background-color .5s ease-in-out}@keyframes skeleton-ring-pulse-73c9f5f9{0%,to{opacity:.45}50%{opacity:1}}@media (prefers-reduced-motion: reduce){.skeleton-ring--loading[data-v-73c9f5f9]{animation:none}}
1
+ .segment-circle[data-v-73c9f5f9]{transition:stroke-dashoffset .5s ease-in-out}.skeleton-ring[data-v-73c9f5f9]{opacity:1;transition:opacity .5s ease-in-out}.skeleton-ring--loading[data-v-73c9f5f9]{animation:skeleton-ring-pulse-73c9f5f9 1.4s ease-in-out infinite;transform-origin:center}.legend-dot[data-v-73c9f5f9]{transition:background-color .5s ease-in-out}@keyframes skeleton-ring-pulse-73c9f5f9{0%,to{opacity:.45}50%{opacity:1}}@media(prefers-reduced-motion:reduce){.skeleton-ring--loading[data-v-73c9f5f9]{animation:none}}
@@ -1,5 +1,5 @@
1
1
  import { toRefs as z, ref as I, computed as u, onMounted as J, watch as U, onUnmounted as Q } from "vue";
2
- import { getPieChartColor as $, LOADING_BG_COLOR as Z, OTHER_SEGMENT_BG_COLOR as ee } from "../utils/pieChartColors.js";
2
+ import { getPieChartColor as $, OTHER_SEGMENT_BG_COLOR as Z, LOADING_BG_COLOR as ee } from "../utils/pieChartColors.js";
3
3
  import { easeInOutCubic as te } from "../utils/useCountUp.js";
4
4
  import ae from "./KvLightbox.js";
5
5
  const E = 262, le = E / 2, ne = E / 2, W = 500, ue = 500, ve = {
@@ -207,8 +207,8 @@ const E = 262, le = E / 2, ne = E / 2, W = 500, ue = 500, ve = {
207
207
  CY: ne,
208
208
  radius: G,
209
209
  circumference: b,
210
- LOADING_BG_COLOR: Z,
211
- OTHER_SEGMENT_BG_COLOR: ee,
210
+ LOADING_BG_COLOR: ee,
211
+ OTHER_SEGMENT_BG_COLOR: Z,
212
212
  // State
213
213
  showOtherLightbox: k,
214
214
  animatedIn: c,
@@ -1,4 +1,4 @@
1
- import { isTargetElement as r, onBodyTouchstart as o, offBodyTouchstart as i } from "../utils/touchEvents.js";
1
+ import { offBodyTouchstart as r, onBodyTouchstart as o, isTargetElement as i } from "../utils/touchEvents.js";
2
2
  const h = {
3
3
  name: "KvPopper",
4
4
  props: {
@@ -41,7 +41,7 @@ const h = {
41
41
  updated() {
42
42
  this.popper && this.popper.scheduleUpdate();
43
43
  },
44
- beforeDestroy() {
44
+ beforeUnmount() {
45
45
  this.removeEvents(), this.popper && this.popper.destroy();
46
46
  },
47
47
  methods: {
@@ -80,7 +80,7 @@ const h = {
80
80
  }), this.popperPromise);
81
81
  },
82
82
  bodyTouchHandler(e) {
83
- r(e, [this.reference, this.$el]) || (this.show = !1, this.removeBodyEvents());
83
+ i(e, [this.reference, this.$el]) || (this.show = !1, this.removeBodyEvents());
84
84
  },
85
85
  referenceTapHandler(e) {
86
86
  e.preventDefault(), this.toggle();
@@ -95,7 +95,7 @@ const h = {
95
95
  this.removeBodyEvents(), this.reference.removeEventListener("touchstart", this.referenceTapHandler), this.reference.removeEventListener("mouseover", this.open), this.reference.removeEventListener("mouseout", this.close), this.$el.removeEventListener("mouseover", this.open), this.$el.removeEventListener("mouseout", this.close);
96
96
  },
97
97
  removeBodyEvents() {
98
- i(this.bodyTouchHandler);
98
+ r(this.bodyTouchHandler);
99
99
  },
100
100
  setAttributes(e) {
101
101
  Object.keys(e).forEach((t) => {
@@ -1,5 +1,5 @@
1
1
  import a from "./KvRadio2.js";
2
- import { openBlock as o, createElementBlock as d, normalizeClass as r, normalizeStyle as c, createElementVNode as i, mergeProps as w, toHandlers as f, withModifiers as m, createCommentVNode as h, renderSlot as u } from "vue";
2
+ import { openBlock as o, createElementBlock as d, normalizeStyle as c, normalizeClass as r, createElementVNode as i, mergeProps as w, toHandlers as f, withModifiers as m, createCommentVNode as h, renderSlot as u } from "vue";
3
3
  import v from "../_virtual/_plugin-vue_export-helper.js";
4
4
  const b = ["for"], _ = ["id", "checked", "name", "value", "disabled"], g = {
5
5
  key: 0,