@kiva/kv-shop 3.8.32 → 3.8.34

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 (150) hide show
  1. package/dist/components/KvPaymentSelect2.js +32 -101
  2. package/package.json +9 -5
  3. package/dist/kv-components/dist/_virtual/_plugin-vue_export-helper.js +0 -9
  4. package/dist/kv-components/dist/data/allCountriesISOMap.js +0 -249
  5. package/dist/kv-components/dist/data/simpleMapCentroids.js +0 -1315
  6. package/dist/kv-components/dist/data/simpleMapCountryPaths.js +0 -215
  7. package/dist/kv-components/dist/data/simpleMapPaths.js +0 -216
  8. package/dist/kv-components/dist/utils/arrayUtils.js +0 -8
  9. package/dist/kv-components/dist/utils/attrs.js +0 -19
  10. package/dist/kv-components/dist/utils/chartColors.js +0 -16
  11. package/dist/kv-components/dist/utils/comparators.js +0 -23
  12. package/dist/kv-components/dist/utils/expander.js +0 -36
  13. package/dist/kv-components/dist/utils/headerNavLinks.js +0 -10
  14. package/dist/kv-components/dist/utils/loanCard.js +0 -49
  15. package/dist/kv-components/dist/utils/mapUtils.js +0 -7
  16. package/dist/kv-components/dist/utils/markMatches.js +0 -12
  17. package/dist/kv-components/dist/utils/paramCase.js +0 -6
  18. package/dist/kv-components/dist/utils/pieChartColors.js +0 -5
  19. package/dist/kv-components/dist/utils/typeaheadSearchConfig.js +0 -31
  20. package/dist/kv-components/dist/utils/typeaheadSearchEngine.js +0 -28
  21. package/dist/kv-components/dist/utils/useMapTourCycle.js +0 -73
  22. package/dist/kv-components/dist/utils/useTypeaheadSearch.js +0 -65
  23. package/dist/kv-components/dist/vue/KvAccordionItem.js +0 -41
  24. package/dist/kv-components/dist/vue/KvAccordionItem2.js +0 -60
  25. package/dist/kv-components/dist/vue/KvAtbModal.css +0 -1
  26. package/dist/kv-components/dist/vue/KvCarousel.css +0 -1
  27. package/dist/kv-components/dist/vue/KvCartModal.css +0 -1
  28. package/dist/kv-components/dist/vue/KvCheckbox.css +0 -1
  29. package/dist/kv-components/dist/vue/KvCheckoutReceipt.css +0 -1
  30. package/dist/kv-components/dist/vue/KvClassicLoanCard.css +0 -1
  31. package/dist/kv-components/dist/vue/KvClassicLoanCard2.js +0 -57
  32. package/dist/kv-components/dist/vue/KvCommentsAdd.css +0 -1
  33. package/dist/kv-components/dist/vue/KvCommentsHeartButton.css +0 -1
  34. package/dist/kv-components/dist/vue/KvCommentsReplyButton.css +0 -1
  35. package/dist/kv-components/dist/vue/KvCompactLoanCard.css +0 -1
  36. package/dist/kv-components/dist/vue/KvCompactLoanCard2.js +0 -49
  37. package/dist/kv-components/dist/vue/KvDatePicker.css +0 -1
  38. package/dist/kv-components/dist/vue/KvExpandable.js +0 -18
  39. package/dist/kv-components/dist/vue/KvExpandable2.js +0 -52
  40. package/dist/kv-components/dist/vue/KvFlag.css +0 -1
  41. package/dist/kv-components/dist/vue/KvGrid.js +0 -15
  42. package/dist/kv-components/dist/vue/KvGrid2.js +0 -15
  43. package/dist/kv-components/dist/vue/KvImageUpload.css +0 -1
  44. package/dist/kv-components/dist/vue/KvImpactDashboardHeader.css +0 -1
  45. package/dist/kv-components/dist/vue/KvInlineActivityFeed.css +0 -1
  46. package/dist/kv-components/dist/vue/KvIntroductionLoanCard.css +0 -1
  47. package/dist/kv-components/dist/vue/KvIntroductionLoanCard2.js +0 -50
  48. package/dist/kv-components/dist/vue/KvLendCta.css +0 -1
  49. package/dist/kv-components/dist/vue/KvLendCta2.js +0 -24
  50. package/dist/kv-components/dist/vue/KvLoadingPlaceholder.css +0 -1
  51. package/dist/kv-components/dist/vue/KvLoadingPlaceholder.js +0 -11
  52. package/dist/kv-components/dist/vue/KvLoadingSpinner.js +0 -24
  53. package/dist/kv-components/dist/vue/KvLoadingSpinner2.js +0 -29
  54. package/dist/kv-components/dist/vue/KvLoadingText.css +0 -1
  55. package/dist/kv-components/dist/vue/KvLoanActivities.css +0 -1
  56. package/dist/kv-components/dist/vue/KvLoanActivities2.js +0 -26
  57. package/dist/kv-components/dist/vue/KvLoanBookmark2.js +0 -14
  58. package/dist/kv-components/dist/vue/KvLoanCallouts.css +0 -1
  59. package/dist/kv-components/dist/vue/KvLoanInfoCard.css +0 -1
  60. package/dist/kv-components/dist/vue/KvLoanInfoCard.js +0 -23
  61. package/dist/kv-components/dist/vue/KvLoanProgressGroup.css +0 -1
  62. package/dist/kv-components/dist/vue/KvLoanTag2.js +0 -31
  63. package/dist/kv-components/dist/vue/KvLoanUse2.js +0 -18
  64. package/dist/kv-components/dist/vue/KvMap.css +0 -1
  65. package/dist/kv-components/dist/vue/KvMaterialIcon.js +0 -24
  66. package/dist/kv-components/dist/vue/KvMaterialIcon2.js +0 -15
  67. package/dist/kv-components/dist/vue/KvPageContainer.js +0 -16
  68. package/dist/kv-components/dist/vue/KvPageContainer2.js +0 -4
  69. package/dist/kv-components/dist/vue/KvPieChart.css +0 -1
  70. package/dist/kv-components/dist/vue/KvPieChartV2.css +0 -1
  71. package/dist/kv-components/dist/vue/KvProgressCircle.css +0 -1
  72. package/dist/kv-components/dist/vue/KvPulsingDot.css +0 -1
  73. package/dist/kv-components/dist/vue/KvSecondaryNav.css +0 -1
  74. package/dist/kv-components/dist/vue/KvSelect.css +0 -1
  75. package/dist/kv-components/dist/vue/KvSimpleMap.css +0 -1
  76. package/dist/kv-components/dist/vue/KvSimpleMap2.js +0 -20
  77. package/dist/kv-components/dist/vue/KvStackedBarGraph.css +0 -1
  78. package/dist/kv-components/dist/vue/KvTab.js +0 -25
  79. package/dist/kv-components/dist/vue/KvTab2.js +0 -48
  80. package/dist/kv-components/dist/vue/KvTabPanel.js +0 -34
  81. package/dist/kv-components/dist/vue/KvTabPanel2.js +0 -28
  82. package/dist/kv-components/dist/vue/KvTabs.js +0 -32
  83. package/dist/kv-components/dist/vue/KvTabs2.js +0 -73
  84. package/dist/kv-components/dist/vue/KvTextInput.css +0 -1
  85. package/dist/kv-components/dist/vue/KvTextInput.js +0 -66
  86. package/dist/kv-components/dist/vue/KvTextInput2.js +0 -126
  87. package/dist/kv-components/dist/vue/KvThemeProvider.css +0 -1
  88. package/dist/kv-components/dist/vue/KvTooltip.css +0 -1
  89. package/dist/kv-components/dist/vue/KvTreeMapChart.css +0 -1
  90. package/dist/kv-components/dist/vue/KvTreeMapChart2.js +0 -6
  91. package/dist/kv-components/dist/vue/KvUserAvatar.css +0 -1
  92. package/dist/kv-components/dist/vue/KvVotingCard.css +0 -1
  93. package/dist/kv-components/dist/vue/KvVotingCardV2.css +0 -1
  94. package/dist/kv-components/dist/vue/KvWideLoanCard.css +0 -1
  95. package/dist/kv-components/dist/vue/KvWideLoanCard2.js +0 -45
  96. package/dist/kv-components/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +0 -85
  97. package/dist/kv-components/dist/vue/KvWwwHeader/KvHeaderAboutMenu2.js +0 -9
  98. package/dist/kv-components/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +0 -1
  99. package/dist/kv-components/dist/vue/KvWwwHeader/KvHeaderLinkBar2.js +0 -11
  100. package/dist/kv-components/dist/vue/KvWwwHeader/KvHeaderMenuLink.js +0 -12
  101. package/dist/kv-components/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +0 -1
  102. package/dist/kv-components/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +0 -145
  103. package/dist/kv-components/dist/vue/KvWwwHeader/KvHeaderMobileMenu2.js +0 -59
  104. package/dist/kv-components/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +0 -89
  105. package/dist/kv-components/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu2.js +0 -27
  106. package/dist/kv-components/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +0 -57
  107. package/dist/kv-components/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu2.js +0 -9
  108. package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +0 -1
  109. package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +0 -207
  110. package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu2.js +0 -82
  111. package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.css +0 -1
  112. package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +0 -205
  113. package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu2.js +0 -86
  114. package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +0 -55
  115. package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendMenu2.js +0 -172
  116. package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.css +0 -1
  117. package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.js +0 -31
  118. package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList2.js +0 -12
  119. package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.js +0 -26
  120. package/dist/kv-components/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList2.js +0 -11
  121. package/dist/kv-components/dist/vue/KvWwwHeader.css +0 -1
  122. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/AboutMenu.css +0 -1
  123. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/AboutMenu.js +0 -25
  124. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/AboutMenu2.js +0 -33
  125. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/HeaderMenuGroup.css +0 -1
  126. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic.css +0 -1
  127. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic2.js +0 -17
  128. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/LinkBar.css +0 -1
  129. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/LinkBar2.js +0 -12
  130. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/CategoriesPanel.css +0 -1
  131. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/CategoriesPanel.js +0 -61
  132. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/CategoriesPanel2.js +0 -18
  133. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.css +0 -1
  134. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.js +0 -102
  135. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu2.js +0 -74
  136. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MyKivaPanel.css +0 -1
  137. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MyKivaPanel.js +0 -51
  138. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MyKivaPanel2.js +0 -31
  139. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/RegionsPanel.js +0 -38
  140. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/RegionsPanel2.js +0 -24
  141. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/SearchPanel.js +0 -18
  142. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileLendMenu/SearchPanel2.js +0 -19
  143. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileMenu.css +0 -1
  144. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileMenu.js +0 -59
  145. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MobileMenu2.js +0 -49
  146. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MyKivaMenu.css +0 -1
  147. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MyKivaMenu.js +0 -132
  148. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/MyKivaMenu2.js +0 -55
  149. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/SearchBar.js +0 -73
  150. package/dist/kv-components/dist/vue/KvWwwHeaderBasic/SearchBar2.js +0 -90
@@ -1,205 +0,0 @@
1
- import b from "./KvLendMegaMenu2.js";
2
- import { resolveComponent as m, resolveDirective as S, openBlock as n, createElementBlock as l, createElementVNode as t, normalizeStyle as L, withDirectives as c, createTextVNode as r, createVNode as w, createCommentVNode as h, withCtx as C, Fragment as d, renderList as u, toDisplayString as k, normalizeClass as T } from "vue";
3
- import "./KvLendMegaMenu.css";
4
- import N from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const R = { class: "lend-mega-menu tw-overflow-hidden tw-pb-3 lg:tw-pt-3" }, _ = {
6
- key: 0,
7
- href: "/monthlygood"
8
- }, A = { class: "tw-inline-flex tw-items-center tw-py-1 tw-mb-2 tw-gap-0.5 tw-font-medium tw-text-action" }, O = {
9
- ref: "categoriesSection",
10
- class: "tw-col-span-7"
11
- }, I = { class: "tw-flex tw-gap-4 tw-whitespace-nowrap" }, M = { class: "tw-columns-2 tw-gap-4 tw-font-medium" }, V = ["href"], B = { class: "tw-font-medium" }, D = { class: "link-item" }, F = {
12
- href: "/lend-by-category/recommended-by-lenders",
13
- class: "mega-menu-link"
14
- }, z = { class: "link-item" }, E = {
15
- href: "/categories",
16
- class: "mega-menu-link"
17
- }, G = { class: "link-item" }, U = {
18
- class: "mega-menu-link",
19
- href: "/lend"
20
- }, K = { key: 0 }, $ = { class: "tw-font-medium" }, j = ["href"], q = {
21
- key: 1,
22
- class: "tw-text-secondary tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
23
- }, H = ["aria-pressed"], J = {
24
- key: 1,
25
- class: "tw-text-secondary tw-py-1 tw-inline-block"
26
- }, P = ["href"], Q = { class: "tw-col-span-2" }, W = { class: "tw-col-span-8 tw-flex tw-flex-col" }, X = { class: "tw-flex tw-whitespace-nowrap tw-h-full" }, Y = { class: "tw-font-medium" }, Z = ["aria-pressed", "onClick"];
27
- function ee(te, e, i, a, ne, le) {
28
- const y = m("kv-material-icon"), v = m("kv-loading-placeholder"), f = m("kv-lend-menu-search-list"), g = m("kv-lend-menu-country-list"), x = m("kv-grid"), o = S("kv-track-event");
29
- return n(), l("div", R, [
30
- t("div", {
31
- style: L(a.computedStyle),
32
- class: "tw-transition tw-duration-1000 tw-ease-in-out"
33
- }, [
34
- i.showMGUpsellLink ? c((n(), l("a", _, [
35
- t("span", A, [
36
- e[2] || (e[2] = r(" Lend monthly ")),
37
- w(y, {
38
- icon: a.mdiArrowRight,
39
- class: "tw-w-3 tw-h-3"
40
- }, null, 8, ["icon"])
41
- ])
42
- ])), [
43
- [o, ["TopNav", "click-Lend-Menu-Monthly-Good", "Lend-monthly"]]
44
- ]) : h("", !0),
45
- w(x, { style: { "grid-template-columns": "repeat(18, minmax(0, 1fr))" } }, {
46
- default: C(() => [
47
- t("div", O, [
48
- e[11] || (e[11] = t("h2", { class: "menu-heading tw-mb-2" }, " Categories ", -1)),
49
- t("div", I, [
50
- t("ul", M, [
51
- i.isChannelsLoading ? (n(), l(d, { key: 0 }, u(14, (s) => t("li", {
52
- key: s,
53
- class: "link-item"
54
- }, [
55
- w(v, {
56
- class: "tw-inline-block tw-align-middle",
57
- style: { height: "1.25rem" }
58
- }),
59
- e[3] || (e[3] = t("span", { class: "tw-py-1 tw-inline-block" }, " ", -1))
60
- ])), 64)) : (n(!0), l(d, { key: 1 }, u(i.categories, (s, p) => (n(), l("li", {
61
- key: p,
62
- class: "link-item"
63
- }, [
64
- c((n(), l("a", {
65
- href: s.url,
66
- class: "tw-text-primary tw-text-left hover:tw-text-action tw-no-underline tw-my-1 tw-inline-block"
67
- }, [
68
- r(k(s.name), 1)
69
- ], 8, V)), [
70
- [o, ["TopNav", "click-Lend-Category", s.name, p + 1]]
71
- ])
72
- ]))), 128))
73
- ]),
74
- t("div", null, [
75
- t("ul", B, [
76
- t("li", D, [
77
- c((n(), l("a", F, e[4] || (e[4] = [
78
- r(" Recommended by lenders ")
79
- ]))), [
80
- [o, ["TopNav", "click-Lend-Recommended-by-lenders"]]
81
- ])
82
- ]),
83
- t("li", z, [
84
- c((n(), l("a", E, e[5] || (e[5] = [
85
- r(" All categories ")
86
- ]))), [
87
- [o, ["TopNav", "click-Lend-All_Categories"]]
88
- ])
89
- ]),
90
- t("li", G, [
91
- c((n(), l("a", U, e[6] || (e[6] = [
92
- r(" All loans ")
93
- ]))), [
94
- [o, ["TopNav", "click-Lend-All_Loans"]]
95
- ])
96
- ])
97
- ]),
98
- i.userId ? (n(), l("div", K, [
99
- e[9] || (e[9] = t("span", { class: "tw-inline-block tw-py-1" }, " ", -1)),
100
- e[10] || (e[10] = t("h2", { class: "menu-heading tw-my-1" }, " My Kiva ", -1)),
101
- t("ul", $, [
102
- t("li", null, [
103
- i.favorites > 0 ? c((n(), l("a", {
104
- key: 0,
105
- href: `/lend?lenderFavorite=${i.userId}`,
106
- class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
107
- }, e[7] || (e[7] = [
108
- r(" Saved loans ")
109
- ]), 8, j)), [
110
- [o, ["TopNav", "click-Lend-Favorites"]]
111
- ]) : (n(), l("span", q, " Saved loans "))
112
- ]),
113
- t("li", null, [
114
- a.hasSearches ? (n(), l("button", {
115
- key: 0,
116
- "aria-pressed": a.isOpenSection(a.savedSearchesTitle) ? "true" : "false",
117
- class: "tw-text-primary tw-text-left tw-py-1 tw-inline-block hover:tw-text-action hover:tw-underline",
118
- onClick: e[0] || (e[0] = (s) => a.openSection(a.savedSearchesTitle))
119
- }, k(a.savedSearchesTitle), 9, H)) : (n(), l("span", J, " Saved searches "))
120
- ]),
121
- t("li", null, [
122
- c((n(), l("a", {
123
- href: i.countriesNotLentToUrl,
124
- class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
125
- }, e[8] || (e[8] = [
126
- r(" Countries I haven't lent to ")
127
- ]), 8, P)), [
128
- [o, ["TopNav", "click-Lend-Countries_Not_Lent"]]
129
- ])
130
- ])
131
- ])
132
- ])) : h("", !0)
133
- ])
134
- ])
135
- ], 512),
136
- t("div", Q, [
137
- a.sectionOpen ? (n(), l("button", {
138
- key: 0,
139
- class: "tw-flex",
140
- onClick: e[1] || (e[1] = (s) => a.openedSection = "")
141
- }, [
142
- w(y, {
143
- class: "tw-flex-shrink-0 tw-w-3 tw-h-3",
144
- icon: a.mdiChevronLeft
145
- }, null, 8, ["icon"]),
146
- e[12] || (e[12] = t("span", { class: "tw-text-base" }, " Back ", -1))
147
- ])) : h("", !0)
148
- ]),
149
- t("div", W, [
150
- a.isOpenSection(a.savedSearchesTitle) ? (n(), l(d, { key: 0 }, [
151
- e[13] || (e[13] = t("h2", { class: "menu-heading tw-mb-2" }, " Saved Searches ", -1)),
152
- w(f, {
153
- class: "search-list tw-h-full",
154
- searches: i.searches
155
- }, null, 8, ["searches"])
156
- ], 64)) : (n(), l(d, { key: 1 }, [
157
- e[15] || (e[15] = t("h2", { class: "menu-heading tw-mb-2" }, " Regions ", -1)),
158
- t("div", X, [
159
- t("ul", Y, [
160
- i.isRegionsLoading ? (n(), l(d, { key: 0 }, u(8, (s) => t("li", {
161
- key: s,
162
- class: "link-item"
163
- }, [
164
- w(v, {
165
- class: "tw-inline-block tw-align-middle",
166
- style: { height: "1.25rem" }
167
- }),
168
- e[14] || (e[14] = t("span", { class: "tw-py-1 tw-inline-block" }, " ", -1))
169
- ])), 64)) : (n(!0), l(d, { key: 1 }, u(i.regions, (s) => (n(), l("li", {
170
- key: s.name,
171
- class: "link-item tw-mr-4"
172
- }, [
173
- c((n(), l("button", {
174
- "aria-pressed": a.isOpenSection(s.name) ? "true" : "false",
175
- class: T(["tw-text-primary tw-text-left tw-py-1 hover:tw-text-action hover:tw-underline", { "tw-text-action": a.isOpenSection(s.name) }]),
176
- onClick: (p) => a.openSection(s.name)
177
- }, [
178
- r(k(s.name), 1)
179
- ], 10, Z)), [
180
- [o, ["TopNav", "click-Lend-Region", s.name]]
181
- ])
182
- ]))), 128))
183
- ]),
184
- (n(!0), l(d, null, u(a.openRegions, (s) => (n(), l("div", {
185
- key: s.name,
186
- class: "tw-h-full"
187
- }, [
188
- w(g, {
189
- countries: s.countries,
190
- class: "region-list tw-h-full"
191
- }, null, 8, ["countries"])
192
- ]))), 128))
193
- ])
194
- ], 64))
195
- ])
196
- ]),
197
- _: 1
198
- })
199
- ], 4)
200
- ]);
201
- }
202
- const ce = /* @__PURE__ */ N(b, [["render", ee], ["__scopeId", "data-v-3e49579c"]]);
203
- export {
204
- ce as default
205
- };
@@ -1,86 +0,0 @@
1
- import { mdiChevronLeft as m, mdiArrowRight as v } from "@mdi/js";
2
- import { ref as s, computed as o } from "vue";
3
- import h from "../../KvLoadingPlaceholder.js";
4
- import y from "../../KvGrid.js";
5
- import g from "../../KvMaterialIcon.js";
6
- import L from "./KvLendMenuCountryList.js";
7
- import S from "./KvLendMenuSearchList.js";
8
- const x = {
9
- components: {
10
- KvGrid: y,
11
- KvLendMenuCountryList: L,
12
- KvLendMenuSearchList: S,
13
- KvLoadingPlaceholder: h,
14
- KvMaterialIcon: g
15
- },
16
- props: {
17
- categories: {
18
- type: Array,
19
- default: () => []
20
- },
21
- favorites: {
22
- type: Number,
23
- default: 0
24
- },
25
- isRegionsLoading: {
26
- type: Boolean,
27
- default: !0
28
- },
29
- isChannelsLoading: {
30
- type: Boolean,
31
- default: !0
32
- },
33
- userId: {
34
- type: Number,
35
- default: null
36
- },
37
- regions: {
38
- type: Array,
39
- default: () => []
40
- },
41
- searches: {
42
- type: Array,
43
- default: () => []
44
- },
45
- showMGUpsellLink: {
46
- type: Boolean,
47
- default: !1
48
- },
49
- countriesNotLentToUrl: {
50
- type: String,
51
- default: "/lend/countries-not-lent"
52
- }
53
- },
54
- setup(r) {
55
- const n = s(null), t = s(""), a = o(() => t.value !== ""), i = (e) => t.value === e, u = (e) => {
56
- t.value = e;
57
- }, d = o(() => {
58
- var e;
59
- const l = { width: "150%" };
60
- if (a.value) {
61
- const f = ((e = n.value) == null ? void 0 : e.clientWidth) ?? 0;
62
- l.transform = `translateX(${f * -1}px)`;
63
- }
64
- return l;
65
- }), p = o(() => r.regions.filter((e) => i(e.name))), c = o(() => r.searches.length > 0);
66
- return {
67
- mdiArrowRight: v,
68
- mdiChevronLeft: m,
69
- categoriesSection: n,
70
- openedSection: t,
71
- sectionOpen: a,
72
- isOpenSection: i,
73
- openSection: u,
74
- onClose: () => {
75
- t.value = "";
76
- },
77
- openRegions: p,
78
- computedStyle: d,
79
- hasSearches: c,
80
- savedSearchesTitle: "Saved searches"
81
- };
82
- }
83
- };
84
- export {
85
- x as default
86
- };
@@ -1,55 +0,0 @@
1
- import h from "./KvLendMenu2.js";
2
- import { resolveComponent as i, openBlock as t, createBlock as a, withCtx as m, createCommentVNode as p, createVNode as l, normalizeClass as w } from "vue";
3
- import v from "../../../_virtual/_plugin-vue_export-helper.js";
4
- function f(n, o, s, e, k, C) {
5
- const g = i("mobile-lend-menu"), c = i("kv-lend-list-menu"), d = i("kv-lend-mega-menu"), u = i("kv-page-container");
6
- return t(), a(u, { class: "tw-pt-2 lg:tw-pt-0" }, {
7
- default: m(() => [
8
- s.useMobileMegaMenu ? (t(), a(g, {
9
- key: 0,
10
- class: "md:tw-hidden",
11
- categories: e.computedCategories,
12
- regions: e.regions,
13
- "user-id": s.userId,
14
- favorites: e.favoritesCount,
15
- searches: e.savedSearches,
16
- "is-regions-loading": e.isRegionsLoading,
17
- "is-channels-loading": e.isChannelsLoading,
18
- "countries-not-lent-to-url": s.countriesNotLentToUrl,
19
- "search-suggestions": s.searchSuggestions,
20
- "app-origin": s.appOrigin,
21
- onLoadSearchData: o[0] || (o[0] = (r) => n.$emit("load-search-data")),
22
- onSearchSubmit: o[1] || (o[1] = (r) => n.$emit("search-submit", r))
23
- }, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "countries-not-lent-to-url", "search-suggestions", "app-origin"])) : p("", !0),
24
- l(c, {
25
- class: w(s.useMobileMegaMenu ? "tw-hidden md:tw-block lg:tw-hidden" : "lg:tw-hidden"),
26
- categories: e.computedCategories,
27
- regions: e.regions,
28
- "user-id": s.userId,
29
- favorites: e.favoritesCount,
30
- searches: e.savedSearches,
31
- "is-regions-loading": e.isRegionsLoading,
32
- "is-channels-loading": e.isChannelsLoading,
33
- "show-m-g-upsell-link": s.showMGUpsellLink,
34
- "countries-not-lent-to-url": s.countriesNotLentToUrl
35
- }, null, 8, ["class", "categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link", "countries-not-lent-to-url"]),
36
- l(d, {
37
- class: "tw-hidden lg:tw-block",
38
- categories: e.computedCategories,
39
- regions: e.regions,
40
- "user-id": s.userId,
41
- favorites: e.favoritesCount,
42
- searches: e.savedSearches,
43
- "is-regions-loading": e.isRegionsLoading,
44
- "is-channels-loading": e.isChannelsLoading,
45
- "show-m-g-upsell-link": s.showMGUpsellLink,
46
- "countries-not-lent-to-url": s.countriesNotLentToUrl
47
- }, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link", "countries-not-lent-to-url"])
48
- ]),
49
- _: 1
50
- });
51
- }
52
- const b = /* @__PURE__ */ v(h, [["render", f]]);
53
- export {
54
- b as default
55
- };
@@ -1,172 +0,0 @@
1
- import { gql as s } from "@apollo/client/core";
2
- import { toRefs as q, ref as n, computed as f, onMounted as w } from "vue";
3
- import I from "./KvLendListMenu.js";
4
- import A from "./KvLendMegaMenu.js";
5
- import O from "../../KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.js";
6
- import { indexIn as N } from "../../../utils/comparators.js";
7
- import { groupBy as x, sortBy as g } from "../../../utils/arrayUtils.js";
8
- import B from "../../KvPageContainer.js";
9
- const k = {
10
- components: {
11
- KvLendListMenu: I,
12
- KvLendMegaMenu: A,
13
- MobileLendMenu: O,
14
- KvPageContainer: B
15
- },
16
- props: {
17
- userId: {
18
- type: Number,
19
- default: null
20
- },
21
- showMGUpsellLink: {
22
- type: Boolean,
23
- default: !1
24
- },
25
- countriesNotLentToUrl: {
26
- type: String,
27
- default: "/lend/countries-not-lent"
28
- },
29
- /**
30
- * Render the new KvWwwHeaderBasic mobile tabbed menu (Categories / Regions / MyKiva / Search)
31
- * below the md breakpoint instead of the legacy KvLendListMenu. Mega menu still renders at
32
- * md+ in this mode. Default off preserves the legacy KvWwwHeader behavior.
33
- */
34
- useMobileMegaMenu: {
35
- type: Boolean,
36
- default: !1
37
- },
38
- /**
39
- * Search suggestion dataset for the mobile Search tab. Only used when useMobileMegaMenu is on.
40
- */
41
- searchSuggestions: {
42
- type: Array,
43
- default: () => []
44
- },
45
- /**
46
- * App origin used to build /lend/filter URLs on Search-tab submit. Only used when
47
- * useMobileMegaMenu is on.
48
- */
49
- appOrigin: {
50
- type: String,
51
- default: ""
52
- }
53
- },
54
- emits: ["load-lend-menu-data", "load-search-data", "search-submit"],
55
- setup(M, { emit: b }) {
56
- const {
57
- userId: i
58
- } = q(M), d = n([]), c = n([]), m = n(0), v = n([]), h = [
59
- "North America",
60
- "Central America",
61
- "South America",
62
- "Africa",
63
- "Eastern Europe",
64
- "Middle East",
65
- "Asia",
66
- "Oceania"
67
- ], p = n(!0), y = n(!0), C = async (r) => {
68
- var t, a, o, l;
69
- if (r.watchQuery({
70
- query: s`query countryFacets {
71
- lend {
72
- countryFacets {
73
- count
74
- country {
75
- name
76
- region
77
- isoCode
78
- }
79
- }
80
- }
81
-
82
- }`
83
- }).subscribe({
84
- next: ({ data: e }) => {
85
- var u;
86
- c.value = ((u = e == null ? void 0 : e.lend) == null ? void 0 : u.countryFacets) ?? [], p.value = !1;
87
- }
88
- }), r.watchQuery({
89
- query: s`
90
- query lendMenuData {
91
- browsingCategories(
92
- filters: { popularOnly: true, applyMinimumLoanCount: true }
93
- limit: 50
94
- ) {
95
- values {
96
- id
97
- name
98
- url
99
- }
100
- }
101
- }
102
- `
103
- }).subscribe({
104
- next: ({ data: e }) => {
105
- var u;
106
- d.value = ((u = e == null ? void 0 : e.browsingCategories) == null ? void 0 : u.values) ?? [], y.value = !1;
107
- }
108
- }), i.value) {
109
- const { data: e } = await r.query({
110
- query: s`
111
- query lendMenuPrivateData($userId: Int!) {
112
- lend {
113
- loans(limit: 1, filters: {
114
- lenderFavorite: $userId
115
- }) {
116
- totalCount
117
- }
118
- }
119
- my {
120
- savedSearches {
121
- values {
122
- id
123
- name
124
- url
125
- }
126
- }
127
- }
128
- }
129
- `,
130
- variables: {
131
- userId: i.value
132
- },
133
- fetchPolicy: "network-only"
134
- });
135
- m.value = ((a = (t = e == null ? void 0 : e.lend) == null ? void 0 : t.loans) == null ? void 0 : a.totalCount) ?? 0, v.value = ((l = (o = e == null ? void 0 : e.my) == null ? void 0 : o.savedSearches) == null ? void 0 : l.values) ?? [];
136
- }
137
- }, L = f(() => {
138
- const r = c.value.map((o) => ({
139
- name: o.country.name,
140
- region: o.country.region,
141
- isoCode: o.country.isoCode.toLowerCase(),
142
- count: o.count || 0
143
- })), t = x(r, "region"), a = [];
144
- for (const [o, l] of Object.entries(t))
145
- a.push({
146
- name: o,
147
- countries: l.sort(g("name"))
148
- });
149
- return a.sort(N(h, "name"));
150
- }), S = f(() => {
151
- var r;
152
- return ((r = d.value) == null ? void 0 : r.map((t) => {
153
- const a = JSON.parse(JSON.stringify(t));
154
- return a.url = a.url.replace("lend", "lend-by-category"), a;
155
- })).sort(g("name"));
156
- });
157
- return w(() => {
158
- b("load-lend-menu-data");
159
- }), {
160
- onLoad: C,
161
- regions: L,
162
- computedCategories: S,
163
- isChannelsLoading: y,
164
- isRegionsLoading: p,
165
- savedSearches: v,
166
- favoritesCount: m
167
- };
168
- }
169
- };
170
- export {
171
- k as default
172
- };
@@ -1 +0,0 @@
1
- .country-list-item[data-v-07c8276d]{width:11rem}
@@ -1,31 +0,0 @@
1
- import i from "./KvLendMenuCountryList2.js";
2
- import { resolveDirective as s, openBlock as e, createElementBlock as o, Fragment as a, renderList as l, withDirectives as m, createTextVNode as p, toDisplayString as r } from "vue";
3
- import "./KvLendMenuCountryList.css";
4
- import u from "../../../_virtual/_plugin-vue_export-helper.js";
5
- const w = { class: "tw-whitespace-nowrap tw-font-medium" }, d = ["href"], y = {
6
- key: 1,
7
- class: "tw-block tw-py-1 tw-text-tertiary"
8
- };
9
- function f(k, v, n, h, x, b) {
10
- const c = s("kv-track-event");
11
- return e(), o("ul", w, [
12
- (e(!0), o(a, null, l(n.countries, (t) => (e(), o("li", {
13
- key: t.isoCode,
14
- class: "country-list-item"
15
- }, [
16
- t.count > 0 ? m((e(), o("a", {
17
- key: 0,
18
- href: `/lend/filter?country=${t.isoCode}`,
19
- class: "tw-text-primary hover:tw-text-action tw-block tw-w-full tw-py-1"
20
- }, [
21
- p(r(t.name) + " (" + r(t.count) + ") ", 1)
22
- ], 8, d)), [
23
- [c, ["TopNav", "click-Lend-Country", t.name]]
24
- ]) : (e(), o("span", y, r(t.name) + " (0) ", 1))
25
- ]))), 128))
26
- ]);
27
- }
28
- const L = /* @__PURE__ */ u(i, [["render", f], ["__scopeId", "data-v-07c8276d"]]);
29
- export {
30
- L as default
31
- };
@@ -1,12 +0,0 @@
1
- const t = {
2
- name: "CountryList",
3
- props: {
4
- countries: {
5
- type: Array,
6
- default: () => []
7
- }
8
- }
9
- };
10
- export {
11
- t as default
12
- };
@@ -1,26 +0,0 @@
1
- import n from "./KvLendMenuSearchList2.js";
2
- import { openBlock as t, createElementBlock as r, Fragment as s, renderList as c, createElementVNode as a, toDisplayString as i } from "vue";
3
- import w from "../../../_virtual/_plugin-vue_export-helper.js";
4
- const m = { class: "tw-font-book" }, f = ["href"];
5
- function p(u, l, o, d, h, k) {
6
- return t(), r("ul", m, [
7
- (t(!0), r(s, null, c(o.searches, (e) => (t(), r("li", {
8
- key: e.id
9
- }, [
10
- a("a", {
11
- class: "tw-text-primary hover:tw-text-action tw-block tw-w-full tw-py-1",
12
- href: e.url
13
- }, i(e.name), 9, f)
14
- ]))), 128)),
15
- l[0] || (l[0] = a("li", null, [
16
- a("a", {
17
- class: "tw-text-primary hover:tw-text-action tw-block tw-w-full tw-py-1",
18
- href: "/lend/saved-search"
19
- }, " Manage saved searches ")
20
- ], -1))
21
- ]);
22
- }
23
- const b = /* @__PURE__ */ w(n, [["render", p]]);
24
- export {
25
- b as default
26
- };
@@ -1,11 +0,0 @@
1
- const a = {
2
- props: {
3
- searches: {
4
- type: Array,
5
- default: () => []
6
- }
7
- }
8
- };
9
- export {
10
- a as default
11
- };
@@ -1 +0,0 @@
1
- .header-fade-enter-active[data-v-cc14a1da]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-cc14a1da]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-cc14a1da],.header-fade-leave-to[data-v-cc14a1da]{opacity:0}.header-fade-leave[data-v-cc14a1da],.header-fade-enter-to[data-v-cc14a1da]{opacity:1}.bg-opacity-50[data-v-cc14a1da]{background-color:rgba(var(--bg-action-highlight),.5)}
@@ -1 +0,0 @@
1
- [data-v-a681200e] a{padding-top:.5rem;padding-bottom:.5rem}
@@ -1,25 +0,0 @@
1
- import i from "./AboutMenu2.js";
2
- import { resolveComponent as a, openBlock as e, createElementBlock as r, normalizeClass as c, Fragment as m, renderList as s, createBlock as f, withCtx as k, createTextVNode as p, toDisplayString as w } from "vue";
3
- import "./AboutMenu.css";
4
- import d from "../../_virtual/_plugin-vue_export-helper.js";
5
- function u(x, h, n, o, C, v) {
6
- const l = a("kv-header-menu-link");
7
- return e(), r("nav", {
8
- class: c(["tw-flex tw-flex-col tw-items-start tw-font-medium tw-mt-0.5 tw-pb-1", n.isMobile ? "tw-px-0" : "tw-px-2"])
9
- }, [
10
- (e(!0), r(m, null, s(o.links, (t) => (e(), f(l, {
11
- key: t.href,
12
- href: t.href,
13
- onClick: (b) => o.onLinkClick(t.action)
14
- }, {
15
- default: k(() => [
16
- p(w(t.label), 1)
17
- ]),
18
- _: 2
19
- }, 1032, ["href", "onClick"]))), 128))
20
- ], 2);
21
- }
22
- const y = /* @__PURE__ */ d(i, [["render", u], ["__scopeId", "data-v-a681200e"]]);
23
- export {
24
- y as default
25
- };
@@ -1,33 +0,0 @@
1
- import { inject as t } from "vue";
2
- import c from "../KvWwwHeader/KvHeaderMenuLink.js";
3
- const n = [
4
- { label: "About us", href: "/about", action: "click-About-About us" },
5
- { label: "How Kiva works", href: "/about/how", action: "click-About-How Kiva works" },
6
- { label: "Where Kiva works", href: "/about/where-kiva-works", action: "click-About-Where Kiva works" },
7
- { label: "Impact", href: "/impact", action: "click-About-Impact" },
8
- { label: "Leadership", href: "/about/leadership", action: "click-About-Leadership" },
9
- { label: "Finances", href: "/about/finances", action: "click-About-Finances" },
10
- { label: "Press", href: "/about/press-center", action: "click-About-Press" },
11
- { label: "Due diligence", href: "/about/due-diligence", action: "click-About-Due diligence" }
12
- ], s = {
13
- name: "AboutMenu",
14
- components: { KvHeaderMenuLink: c },
15
- props: {
16
- isMobile: {
17
- type: Boolean,
18
- default: !1
19
- }
20
- },
21
- emits: ["closing-menu"],
22
- setup(l, { emit: e }) {
23
- const o = t("$kvTrackEvent", () => {
24
- });
25
- function i(a) {
26
- o("TopNav", a), e("closing-menu");
27
- }
28
- return { links: n, onLinkClick: i };
29
- }
30
- };
31
- export {
32
- s as default
33
- };
@@ -1 +0,0 @@
1
- @media(min-width:45.875rem){.menu-group[data-v-c41addfb]{align-self:stretch}.menu-group[data-v-c41addfb]:hover:after{content:"";position:absolute;top:4rem;height:calc(var(--nav-height, 4rem) - 4rem);left:calc(var(--trigger-gap-left, 0px) - var(--trigger-width, 0px) / 2);width:var(--trigger-width, 0px)}}.menu-panel[data-v-c41addfb]{position:absolute;z-index:1400;overflow-y:auto;--tw-bg-opacity: 1;background-color:rgba(var(--bg-primary),var(--tw-bg-opacity, 1));top:var(--nav-height, 4rem);max-height:0;visibility:hidden;opacity:0;transition:opacity var(--menu-close-fade) ease var(--menu-open-delay),visibility 0s calc(var(--menu-open-delay) + var(--menu-close-fade)),max-height 0s calc(var(--menu-open-delay) + var(--menu-close-fade)),min-height 0s calc(var(--menu-open-delay) + var(--menu-close-fade))}.menu-group:has(>[aria-expanded=true])>.menu-panel[data-v-c41addfb],[data-pointer=mouse] .menu-group:hover>.menu-panel[data-v-c41addfb]{visibility:visible;opacity:1;max-height:calc(100dvh - var(--nav-height, 4rem));transition:opacity .3s ease var(--menu-open-delay),visibility 0s var(--menu-open-delay),max-height 0s var(--menu-open-delay),min-height 0s var(--menu-open-delay)}.menu-panel--full[data-v-c41addfb],.menu-panel--drawer[data-v-c41addfb]{inset-inline:0}.menu-panel--card[data-v-c41addfb]{border-bottom-right-radius:1rem;border-bottom-left-radius:1rem;border-width:.0625rem;border-top-width:0px;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));right:var(--trigger-gap-right, 0px);translate:clamp(calc(100% - var(--trigger-gap-left, 0px)),50%,var(--trigger-gap-right, 0px)) 0;max-width:100%}.menu-panel--drawer[data-v-c41addfb]{border-radius:0}.menu-group:has(>[aria-expanded=true])>.menu-panel--drawer[data-v-c41addfb],[data-pointer=mouse] .menu-group:hover>.menu-panel--drawer[data-v-c41addfb]{max-height:none;min-height:100dvh}