@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,8 +0,0 @@
1
- const e = (r, s) => r.reduce((o, c) => {
2
- const u = String(c[s]);
3
- return o[u] || (o[u] = []), o[u].push(c), o;
4
- }, {}), p = (r) => (s, o) => s[r] > o[r] ? 1 : o[r] > s[r] ? -1 : 0;
5
- export {
6
- e as groupBy,
7
- p as sortBy
8
- };
@@ -1,19 +0,0 @@
1
- function e(s) {
2
- return s ? Array.isArray(s) ? s : [s] : [];
3
- }
4
- function a({ attrs: s, listeners: r }, n = []) {
5
- const c = e(s == null ? void 0 : s.class), i = e(s == null ? void 0 : s.style), l = r ? { ...r } : {};
6
- n.forEach((u) => {
7
- delete l[u];
8
- });
9
- const t = { ...s };
10
- return delete t.class, delete t.style, {
11
- classes: c,
12
- styles: i,
13
- inputAttrs: t,
14
- inputListeners: l
15
- };
16
- }
17
- export {
18
- a as useAttrs
19
- };
@@ -1,16 +0,0 @@
1
- import r from "@kiva/kv-tokens";
2
- const { colors: e } = r;
3
- // Tier 1 — Bold primaries
4
- e["eco-green"][3], // #276A43
5
- e.marigold.DEFAULT, // #F4B539
6
- e["desert-rose"].DEFAULT, // Custom purple for contrast
7
- e.stone[3], // #635544
8
- e.brand[500], // #4AB67E
9
- e.marigold[3], // #996210
10
- // Tier 2 — Lighter variants
11
- e["eco-green"][2], // #78C79F
12
- e.marigold[2], // #F8CD69
13
- e["desert-rose"][2], // #E0988D
14
- e.stone[2], // #AA9E8D
15
- e.brand[300], // #95D4B3
16
- e["desert-rose"][3];
@@ -1,23 +0,0 @@
1
- function f(r) {
2
- return (e, t) => typeof e == "object" && typeof t == "object" && r ? String(e[r]).localeCompare(String(t[r])) : typeof e == "string" && typeof t == "string" ? e.localeCompare(t) : 0;
3
- }
4
- function y(r, e) {
5
- const t = r.toLowerCase();
6
- return (o, n) => {
7
- const i = typeof o == "object", p = typeof n == "object", a = String(i && e ? o[e] : o).toLowerCase(), s = String(p && e ? n[e] : n).toLowerCase(), u = a.indexOf(t), c = s.indexOf(t);
8
- return u === 0 ? c === 0 ? f(e)(a, s) : -1 : c === 0 ? 1 : f(e)(a, s);
9
- };
10
- }
11
- function g(r, e) {
12
- if (!Array.isArray(r))
13
- throw new TypeError("list must be an array");
14
- return (t, o) => {
15
- const n = t[e], i = o[e];
16
- return r.indexOf(n) < r.indexOf(i) ? -1 : 1;
17
- };
18
- }
19
- export {
20
- f as abc,
21
- g as indexIn,
22
- y as startsWith
23
- };
@@ -1,36 +0,0 @@
1
- function l(e, { property: n, delay: o, easing: r }) {
2
- e.style.overflow = "hidden", e.style.transition = `${n} ${o}ms ${r}`;
3
- }
4
- function a(e, { property: n }) {
5
- e.style[n] = null, e.style.overflow = null, e.style.transition = null;
6
- }
7
- function d(e, {
8
- easing: n = "ease",
9
- delay: o = 500,
10
- done: r = () => {
11
- },
12
- from: s = 0,
13
- property: t = "height"
14
- }) {
15
- l(e, { property: t, delay: o, easing: n }), e.style[t] = "auto", e.style.display = null;
16
- const i = window.getComputedStyle(e).getPropertyValue(t);
17
- e.style[t] = s, e.addEventListener("transitionend", function y() {
18
- a(e, { property: t }), r(), e.removeEventListener("transitionend", y, !0);
19
- }, !0), e.offsetWidth, e.style[t] = i;
20
- }
21
- function p(e, {
22
- easing: n = "ease",
23
- delay: o = 500,
24
- done: r = () => {
25
- },
26
- to: s = 0,
27
- property: t = "height"
28
- }) {
29
- l(e, { property: t, delay: o, easing: n }), e.style[t] = window.getComputedStyle(e).getPropertyValue(t), e.addEventListener("transitionend", function i() {
30
- a(e, { property: t }), r(), e.removeEventListener("transitionend", i, !0);
31
- }, !0), e.offsetWidth, e.style[t] = s;
32
- }
33
- export {
34
- p as collapse,
35
- d as expand
36
- };
@@ -1,10 +0,0 @@
1
- const a = {
2
- id: "major-gifts",
3
- label: "Major gifts",
4
- href: "/lp/major-gifts",
5
- track: ["TopNav", "click-Major-Gifts"],
6
- visibility: "always"
7
- };
8
- export {
9
- a as MAJOR_GIFTS_LINK
10
- };
@@ -1,49 +0,0 @@
1
- import o from "graphql-tag";
2
- import "numeral";
3
- import "vue";
4
- import "@mdi/js";
5
- const r = o`
6
- fragment LoanCallouts on LoanBasic {
7
- id
8
- activity {
9
- id
10
- name
11
- }
12
- sector {
13
- id
14
- name
15
- }
16
- tags
17
- ... on LoanPartner {
18
- partnerName
19
- themes
20
- }
21
- }
22
- `, i = o`
23
- fragment LoanGeocode on LoanBasic {
24
- id
25
- geocode {
26
- city
27
- state
28
- country {
29
- name
30
- isoCode
31
- }
32
- }
33
- }
34
- `, s = o`
35
- fragment LoanProgress on LoanBasic {
36
- id
37
- loanAmount
38
- loanFundraisingInfo {
39
- id
40
- fundedAmount
41
- reservedAmount
42
- }
43
- }
44
- `;
45
- export {
46
- r as LOAN_CALLOUTS_FRAGMENT,
47
- i as LOAN_GEOCODE_FRAGMENT,
48
- s as LOAN_PROGRESS_FRAGMENT
49
- };
@@ -1,7 +0,0 @@
1
- function n(r, t, o) {
2
- return (Math.random() * (t - r) + r).toFixed(o) * 1;
3
- }
4
- Array.from(
5
- { length: 20 },
6
- () => [n(-180, 180, 3), n(-90, 90, 3)]
7
- );
@@ -1,12 +0,0 @@
1
- function l(n, e) {
2
- if (!e || !e.length)
3
- return n;
4
- const a = e.map((t) => t[0]).flat(), m = e.map((t) => t[1]).flat();
5
- return Array.from(n).map((t, r) => {
6
- const f = a.indexOf(r) > -1 ? '<mark class="tw-bg-tertiary tw-rounded-sm tw-mix-blend-multiply tw-p-0.5 tw--m-0.5">' : "", i = m.indexOf(r) > -1 ? "</mark>" : "";
7
- return `${f}${t}${i}`;
8
- }).join("");
9
- }
10
- export {
11
- l as default
12
- };
@@ -1,6 +0,0 @@
1
- function a(e) {
2
- return e.replace(/([a-z])([A-Z])/g, "$1-$2").replace(/[\s_]+/g, "-").toLowerCase();
3
- }
4
- export {
5
- a as default
6
- };
@@ -1,5 +0,0 @@
1
- import r from "@kiva/kv-tokens";
2
- import "./chartColors.js";
3
- const { colors: o } = r;
4
- o.gray[200];
5
- o.gray[300];
@@ -1,31 +0,0 @@
1
- const t = [
2
- "Gender",
3
- "Regions",
4
- "Countries and Territories",
5
- "United States",
6
- "U.S. cities",
7
- "Sectors",
8
- "Group or Individual",
9
- "Attributes",
10
- "User tags",
11
- "Partners",
12
- "Gifts"
13
- ], i = 5, r = [
14
- {
15
- group: "Gifts",
16
- label: "Kiva Cards",
17
- keywords: ["gift card", "kiva card", "gift", "gift certificate"],
18
- url: "https://www.kiva.org/gifts/kiva-cards"
19
- },
20
- {
21
- group: "Gifts",
22
- label: "Kiva Store",
23
- keywords: ["gift card", "kiva card", "gift", "gift certificate"],
24
- url: "https://store.kiva.org"
25
- }
26
- ];
27
- export {
28
- r as GIFT_SUGGESTIONS,
29
- i as MAX_PER_GROUP,
30
- t as SECTION_ORDER
31
- };
@@ -1,28 +0,0 @@
1
- import a from "fuse.js";
2
- import { startsWith as l } from "./comparators.js";
3
- const i = {
4
- threshold: 0.25,
5
- distance: 1e5,
6
- includeMatches: !0,
7
- keys: ["label", "keywords"]
8
- };
9
- class o {
10
- constructor(e = []) {
11
- this.fuse = null, e.length && this.reset(e);
12
- }
13
- reset(e = []) {
14
- this.fuse = new a(e, i);
15
- }
16
- async search(e) {
17
- return !this.fuse || !e ? [] : this.fuse.search(e).filter((s) => {
18
- var t;
19
- return (t = s.matches) == null ? void 0 : t.length;
20
- }).map(({ item: s, matches: t }) => ({
21
- ...s,
22
- matches: t == null ? void 0 : t.flatMap((r) => r.indices)
23
- })).sort(l(e, "label"));
24
- }
25
- }
26
- export {
27
- o as default
28
- };
@@ -1,73 +0,0 @@
1
- import { ref as r, watch as g, onBeforeUnmount as P } from "vue";
2
- const T = {
3
- initialDelay: 1e3,
4
- panDuration: 1200,
5
- holdPerStep: 2e3,
6
- popupHideBefore: 350,
7
- holdAll: 2e3,
8
- fadeDuration: 500
9
- };
10
- function E(d, D, y, A = {}) {
11
- const e = { ...T, ...A }, i = r(-1), t = r(/* @__PURE__ */ new Set()), l = r(-1), u = r(!1);
12
- let f = [];
13
- function w() {
14
- f.forEach((a) => clearTimeout(a)), f = [];
15
- }
16
- function S() {
17
- i.value = -1, t.value = /* @__PURE__ */ new Set(), l.value = -1;
18
- }
19
- function n(a, o) {
20
- f.push(setTimeout(a, o));
21
- }
22
- function m() {
23
- const a = d.value;
24
- if (!a.length) {
25
- u.value = !1;
26
- return;
27
- }
28
- const o = e.panDuration + e.holdPerStep;
29
- a.forEach((x, v) => {
30
- const h = e.initialDelay + v * o;
31
- n(() => {
32
- i.value = v, l.value = -1;
33
- }, h), n(() => {
34
- t.value = /* @__PURE__ */ new Set([...t.value, x.id]), l.value = v;
35
- }, h + e.panDuration), n(() => {
36
- l.value = -1;
37
- }, h + o - e.popupHideBefore);
38
- });
39
- const s = e.initialDelay + a.length * o, B = s + e.holdAll + e.fadeDuration;
40
- n(() => {
41
- i.value = -1, l.value = -1;
42
- }, s), n(() => {
43
- t.value = /* @__PURE__ */ new Set();
44
- }, s + e.holdAll), n(() => {
45
- y.value ? m() : u.value = !1;
46
- }, B);
47
- }
48
- function p() {
49
- w(), S(), u.value = !0, m();
50
- }
51
- function c() {
52
- w(), S(), u.value = !1;
53
- }
54
- return g(
55
- D,
56
- (a) => {
57
- a ? p() : c();
58
- },
59
- { immediate: !0 }
60
- ), g(d, () => {
61
- D.value && p();
62
- }), P(c), {
63
- panIdx: i,
64
- highlighted: t,
65
- showPopupIdx: l,
66
- isRunning: u,
67
- start: p,
68
- stop: c
69
- };
70
- }
71
- export {
72
- E as useMapTourCycle
73
- };
@@ -1,65 +0,0 @@
1
- import { ref as i, watch as m, computed as h, unref as O } from "vue";
2
- import S from "./typeaheadSearchEngine.js";
3
- import { GIFT_SUGGESTIONS as R, MAX_PER_GROUP as T, SECTION_ORDER as g } from "./typeaheadSearchConfig.js";
4
- const _ = ["activity", "city_state", "loanTags", "state", "loanLimit"];
5
- function q(n) {
6
- return Object.keys(n).some((o) => _.includes(o));
7
- }
8
- function p(n) {
9
- return n && q(n) ? "/lend" : "/lend/filter";
10
- }
11
- function $(n, o) {
12
- const a = new S(), u = i(""), s = i([]), l = i(-1);
13
- m(n, (t) => {
14
- a.reset([...t ?? [], ...R]);
15
- }, { immediate: !0 }), m(u, async (t) => {
16
- if (l.value = -1, !t) {
17
- s.value = [];
18
- return;
19
- }
20
- s.value = await a.search(t);
21
- });
22
- const y = h(() => {
23
- const t = /* @__PURE__ */ new Map();
24
- return s.value.forEach((e) => {
25
- const r = t.get(e.group) ?? [];
26
- r.length < T && r.push(e), t.set(e.group, r);
27
- }), [...t.keys()].sort((e, r) => g.indexOf(e) - g.indexOf(r)).map((e) => ({ group: e, items: t.get(e) ?? [] }));
28
- });
29
- function d(t) {
30
- const e = O(o);
31
- if (typeof t == "string") {
32
- const f = { queryString: t };
33
- return {
34
- url: `${e}${p(f)}`,
35
- query: f,
36
- suggestion: null,
37
- term: t
38
- };
39
- }
40
- if (t.url)
41
- return {
42
- url: t.url,
43
- query: null,
44
- suggestion: t,
45
- term: u.value
46
- };
47
- const [r, v] = (t.query ?? "").split("="), c = r ? { [r]: v } : null;
48
- return {
49
- url: `${e}${p(c)}`,
50
- query: c,
51
- suggestion: t,
52
- term: u.value
53
- };
54
- }
55
- return {
56
- term: u,
57
- rawResults: s,
58
- activeIndex: l,
59
- groupedResults: y,
60
- resolveSubmit: d
61
- };
62
- }
63
- export {
64
- $ as useTypeaheadSearch
65
- };
@@ -1,41 +0,0 @@
1
- import c from "./KvAccordionItem2.js";
2
- import { resolveComponent as r, openBlock as p, createElementBlock as f, createElementVNode as o, withModifiers as h, renderSlot as l, createVNode as n, normalizeClass as u, withCtx as m, withDirectives as b, vShow as v } from "vue";
3
- import x from "../_virtual/_plugin-vue_export-helper.js";
4
- const g = { class: "tw-border-b tw-border-tertiary tw-relative last:tw-border-b-0" }, k = ["disabled", "aria-controls", "aria-expanded"], C = { class: "tw-flex-1" }, y = ["id", "aria-hidden"];
5
- function O(i, a, e, t, $, B) {
6
- const s = r("kv-material-icon"), d = r("kv-expandable");
7
- return p(), f("div", g, [
8
- o("button", {
9
- class: "tw-w-full tw-flex tw-justify-between tw-items-center tw-py-1.5 tw-px-0 tw-text-left disabled:tw-cursor-not-allowed disabled:tw-opacity-low hover:tw-text-action-highlight focus:tw-text-action-highlight",
10
- disabled: e.disabled,
11
- "aria-controls": `kv-accordion-${e.id}`,
12
- "aria-expanded": t.isOpen ? "true" : "false",
13
- onClick: a[0] || (a[0] = h((...w) => t.toggle && t.toggle(...w), ["prevent"]))
14
- }, [
15
- o("span", C, [
16
- l(i.$slots, "header")
17
- ]),
18
- n(s, {
19
- class: u(["tw-h-3 tw-w-3 tw-transition tw-transform tw-duration-500 tw-ease", { "tw-rotate-180": t.isOpen }]),
20
- icon: t.mdiChevronDown
21
- }, null, 8, ["class", "icon"])
22
- ], 8, k),
23
- n(d, null, {
24
- default: m(() => [
25
- b(o("div", {
26
- id: `kv-accordion-${e.id}`,
27
- "aria-hidden": t.isOpen ? "false" : "true"
28
- }, [
29
- l(i.$slots, "default")
30
- ], 8, y), [
31
- [v, t.isOpen]
32
- ])
33
- ]),
34
- _: 3
35
- })
36
- ]);
37
- }
38
- const N = /* @__PURE__ */ x(c, [["render", O]]);
39
- export {
40
- N as default
41
- };
@@ -1,60 +0,0 @@
1
- import { toRefs as r, ref as n } from "vue";
2
- import { mdiChevronDown as p } from "@mdi/js";
3
- import s from "./KvExpandable.js";
4
- import u from "./KvMaterialIcon.js";
5
- const f = {
6
- components: {
7
- KvMaterialIcon: u,
8
- KvExpandable: s
9
- },
10
- props: {
11
- /**
12
- * Unique id. used for a11y
13
- * */
14
- id: {
15
- type: String,
16
- required: !0,
17
- validator: (o) => o.length > 0 && !/\s/g.test(o)
18
- // must be a valid html5 id
19
- },
20
- /**
21
- * Whether the body is shown initially
22
- * */
23
- open: {
24
- type: Boolean,
25
- default: !1
26
- },
27
- /**
28
- * Whether the accordion can be toggled
29
- * */
30
- disabled: {
31
- type: Boolean,
32
- default: !1
33
- }
34
- },
35
- emits: [
36
- "toggle"
37
- ],
38
- setup(o, { emit: l }) {
39
- const {
40
- open: a,
41
- disabled: t
42
- } = r(o), e = n(a.value);
43
- return {
44
- collapse: () => {
45
- t.value || (e.value = !1);
46
- },
47
- expand: () => {
48
- t.value || (e.value = !0);
49
- },
50
- isOpen: e,
51
- mdiChevronDown: p,
52
- toggle: () => {
53
- t.value || (e.value = !e.value, l("toggle", { open: e.value }));
54
- }
55
- };
56
- }
57
- };
58
- export {
59
- f as default
60
- };
@@ -1 +0,0 @@
1
- @media(min-width:45.875rem){.cart-modal[data-v-22f7aa1c] div.container{right:var(--modal-right)!important;top:var(--modal-top)!important}}
@@ -1 +0,0 @@
1
- @media(min-width:64rem){.aside-controls-content[data-v-c7500299]{width:82%}}.circle-slide[data-v-c7500299]{width:auto}.circle-slide.is-selected[data-v-c7500299]{opacity:1;transform:scale(1.2);max-width:300px}.circle-slide[data-v-c7500299]:not(.is-selected){opacity:.5;transform:scale(.7)}.circle-carousel[data-v-c7500299]{margin:0 auto}
@@ -1 +0,0 @@
1
- .screen[data-v-3fa0c68d]{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1400;background-color:#0003}.modal[data-v-3fa0c68d]{width:100%;border-bottom-right-radius:1rem;border-bottom-left-radius:1rem;--tw-bg-opacity: 1;background-color:rgba(var(--bg-primary),var(--tw-bg-opacity, 1))}@media(min-width:45.875rem){.modal[data-v-3fa0c68d]{position:absolute;right:0}}.modal[data-v-3fa0c68d]{max-height:90%}.container[data-v-3fa0c68d]{position:absolute;top:0;right:0;bottom:0;left:0}@media(min-width:45.875rem){.modal[data-v-3fa0c68d]{max-width:24.5rem}}
@@ -1 +0,0 @@
1
- [data-v-14afb787] .check-icon svg{transform:scale(1.2)}
@@ -1 +0,0 @@
1
- .section[data-v-e06307e1]{border-bottom-width:.0625rem;border-top-width:0px;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));padding:.5rem;display:block;overflow:hidden}@media print{.section[data-v-e06307e1]{page-break-inside:avoid}}.section--lender-info[data-v-e06307e1]{padding-top:0}.section--print[data-v-e06307e1]{border-bottom:0}.checkout-receipt__headline[data-v-e06307e1]{text-align:center;margin-bottom:1.5rem}.checkout-receipt__item-list[data-v-e06307e1]{list-style:none;margin:0;width:100%}.loan__name[data-v-e06307e1]{margin-bottom:.5rem}.loan__name--inline[data-v-e06307e1]{display:inline-block}.loan__amount[data-v-e06307e1]{text-align:right}.total[data-v-e06307e1]{display:flex;align-items:baseline}.total__header[data-v-e06307e1],.total__amount[data-v-e06307e1]{text-align:right;flex:1}.total__amount[data-v-e06307e1]{flex-grow:.33}.payments[data-v-e06307e1]{border-bottom:none}.payments__type[data-v-e06307e1]{display:flex;text-align:right}.payments__type-title[data-v-e06307e1],.payments__type-amount[data-v-e06307e1]{flex:1}.print[data-v-e06307e1]{margin:0 auto}
@@ -1 +0,0 @@
1
- .loan-card-use[data-v-44561e04]:hover,.loan-card-use[data-v-44561e04]: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-44561e04]{text-decoration-line:underline}.loan-card-progress[data-v-44561e04]:hover,.loan-card-progress[data-v-44561e04]:focus{text-decoration-line:none}
@@ -1,57 +0,0 @@
1
- import o from "graphql-tag";
2
- import "numeral";
3
- import { LOAN_CALLOUTS_FRAGMENT as a, LOAN_GEOCODE_FRAGMENT as r, LOAN_PROGRESS_FRAGMENT as i } from "../utils/loanCard.js";
4
- import { KV_LOAN_USE_FRAGMENT as m } from "./KvLoanUse2.js";
5
- import "vue";
6
- /* empty css */
7
- /* empty css */
8
- import { KV_LEND_CTA_FRAGMENT as n, KV_LEND_CTA_USER_FRAGMENT as t } from "./KvLendCta2.js";
9
- /* empty css */
10
- import { KV_LOAN_BOOKMARK_FRAGMENT as e } from "./KvLoanBookmark2.js";
11
- import { KV_LOAN_TAG_FRAGMENT as s } from "./KvLoanTag2.js";
12
- /* empty css */
13
- import { KV_LOAN_ACTIVITIES_FRAGMENT as L } from "./KvLoanActivities2.js";
14
- /* empty css */
15
- import "@kiva/kv-tokens";
16
- /* empty css */
17
- o`
18
- fragment KvClassicLoanCard on LoanBasic {
19
- id
20
- gender
21
- image {
22
- id
23
- hash # for imageHash
24
- }
25
- lenders(limit: 0) {
26
- totalCount # for lendersNumber
27
- }
28
- loanFundraisingInfo {
29
- id
30
- fundedAmount # for amountLent
31
- }
32
- name # for borrowerName
33
- ...KvLendCta
34
- ...KvLoanActivities
35
- ...KvLoanTag
36
- ...KvLoanUse
37
- ...LoanCallouts
38
- ...LoanGeocode
39
- ...LoanProgress
40
- }
41
- ${n}
42
- ${L}
43
- ${s}
44
- ${m}
45
- ${a}
46
- ${r}
47
- ${i}
48
- `;
49
- o`
50
- fragment KvClassicLoanCardUser on LoanBasic {
51
- id
52
- ...KvLendCtaUser
53
- ...KvLoanBookmark
54
- }
55
- ${t}
56
- ${e}
57
- `;
@@ -1 +0,0 @@
1
- [data-v-aac57611] input{height:2rem;border-radius:0;border-top-width:0px;border-right-width:0px;border-left-width:0px;padding:0}[data-v-aac57611] input:focus{--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));box-shadow:none}[data-v-aac57611] button>span{min-height:0}[data-v-aac57611] button>span>span{padding-top:0;padding-bottom:0;padding-left:.25rem;padding-right:.25rem}
@@ -1 +0,0 @@
1
- .filled[data-v-eadf1fd9] svg{fill:#f60059}
@@ -1 +0,0 @@
1
- [data-v-bc0d1b21] span{min-height:0}[data-v-bc0d1b21] span>span{display:flex;align-items:center;padding-top:0;padding-bottom:0;padding-left:.25rem;padding-right:.25rem}[data-v-bc0d1b21] svg{margin-left:.25rem;margin-right:.25rem}
@@ -1 +0,0 @@
1
- .loan-card-use[data-v-02aa45c6]:hover,.loan-card-use[data-v-02aa45c6]: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-02aa45c6]{text-decoration-line:underline}.loan-card-progress[data-v-02aa45c6]:hover,.loan-card-progress[data-v-02aa45c6]:focus{text-decoration-line:none}.loan-card-use-text[data-v-02aa45c6] p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;text-overflow:ellipsis}.loan-card-cta[data-v-02aa45c6] form,.loan-card-cta[data-v-02aa45c6] fieldset,.loan-card-cta[data-v-02aa45c6] .tw-w-full,.loan-card-cta[data-v-02aa45c6] button{height:40px!important;max-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-02aa45c6] .tw-inline-flex{height:40px!important;max-height:40px!important;min-height:40px!important}[data-v-02aa45c6] .amount-dropdown select{height:2.25rem;--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1));padding-left:.5rem}[data-v-02aa45c6] .goal-variant-callouts span{font-weight:500}.goal-variant-progress-group[data-v-02aa45c6] div[role=progressbar]{background-color:#d9d9d9}
@@ -1,49 +0,0 @@
1
- import o from "graphql-tag";
2
- import "numeral";
3
- import "vue";
4
- import "@mdi/js";
5
- import { LOAN_CALLOUTS_FRAGMENT as a, LOAN_GEOCODE_FRAGMENT as r, LOAN_PROGRESS_FRAGMENT as m } from "../utils/loanCard.js";
6
- import { KV_LOAN_USE_FRAGMENT as t } from "./KvLoanUse2.js";
7
- /* empty css */
8
- import { KV_LEND_CTA_FRAGMENT as i, KV_LEND_CTA_USER_FRAGMENT as n } from "./KvLendCta2.js";
9
- /* empty css */
10
- /* empty css */
11
- import { KV_LOAN_TAG_FRAGMENT as L } from "./KvLoanTag2.js";
12
- /* empty css */
13
- /* empty css */
14
- o`
15
- fragment KvCompactLoanCard on LoanBasic {
16
- id
17
- image {
18
- id
19
- hash
20
- }
21
- lenders(limit: 0) {
22
- totalCount
23
- }
24
- loanFundraisingInfo {
25
- id
26
- fundedAmount
27
- }
28
- name
29
- ...KvLendCta
30
- ...KvLoanTag
31
- ...KvLoanUse
32
- ...LoanCallouts
33
- ...LoanGeocode
34
- ...LoanProgress
35
- }
36
- ${i}
37
- ${L}
38
- ${t}
39
- ${a}
40
- ${r}
41
- ${m}
42
- `;
43
- o`
44
- fragment KvCompactLoanCardUser on LoanBasic {
45
- id
46
- ...KvLendCtaUser
47
- }
48
- ${n}
49
- `;
@@ -1 +0,0 @@
1
- .kv-datepicker .dp__input{font-family:inherit;font-weight:inherit;height:3rem}.kv-datepicker .dp__input:focus-within,.kv-datepicker .dp__input:focus-visible{border-color:rgb(var(--bg-action));border-width:2px;outline:none}.kv-datepicker .dp__disabled{color:rgb(var(--text-tertiary))}.kv-datepicker .dp__theme_light{--dp-primary-color: rgb(var(--bg-primary-inverse));--dp-secondary-color: rgb(var(--bg-tertiary));--dp-icon-color: rgb(var(--bg-action));--dp-hover-icon-color: rgb(var(--bg-action));--dp-border-radius: .25rem;--dp-border-color-focus: rgb(var(--bg-action-highlight));--dp-font-family: inherit, "Postgrotesk", sans-serif;--dp-primary-text-color: rgb(var(--text-primary-inverse));--dp-border-color: rgb(var(--bg-tertiary));--dp-hover-color: rgb(var(--bg-tertiary));--dp-background-color: rgb(var(--bg-primary));--dp-text-color: rgb(var(--text-primary));--dp-menu-border-color: rgb(var(--bg-primary-inverse));--dp-disabled-color: rgb(var(--bg-tertiary), 25%);--dp-disabled-color-text: rgb(var(--bg-tertiary));--dp-success-color: rgb(var(--bg-action));--dp-danger-color: rgb(var(--bg-danger));--dp-highlight-color: rgb(var(--bg-action));--dp-cell-border-radius: .25rem;--dp-loader: rgb(var(--bg-action));--dp-range-between-dates-background-color: rgb(var(--bg-action));--dp-range-between-dates-text-color: rgb(var(--bg-primary));--dp-range-between-border-color: rgb(var(--bg-action))}