@kiva/kv-components 10.6.0 → 10.6.1

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 (223) hide show
  1. package/dist/index.js +20 -20
  2. package/dist/vue/KvAccordionItem.js +1 -1
  3. package/dist/vue/KvActivityRow.js +1 -1
  4. package/dist/vue/KvAtbModal.js +1 -1
  5. package/dist/vue/KvBorrowerImage.js +1 -1
  6. package/dist/vue/KvButton.js +1 -1
  7. package/dist/vue/KvCardFrame.js +1 -1
  8. package/dist/vue/KvCarousel.js +1 -1
  9. package/dist/vue/KvCartModal.js +1 -1
  10. package/dist/vue/KvCartPill.js +1 -1
  11. package/dist/vue/KvCheckbox.js +1 -1
  12. package/dist/vue/KvCheckoutReceipt.js +1 -1
  13. package/dist/vue/KvChip.js +1 -1
  14. package/dist/vue/KvClassicLoanCard.js +252 -295
  15. package/dist/vue/KvClassicLoanCard.script.js +298 -0
  16. package/dist/vue/KvCommentsAdd.js +2 -2
  17. package/dist/vue/KvCommentsContainer.js +2 -2
  18. package/dist/vue/KvCommentsHeartButton.js +1 -1
  19. package/dist/vue/KvCommentsList.js +1 -1
  20. package/dist/vue/KvCommentsListItem.js +2 -2
  21. package/dist/vue/KvCommentsReplyButton.js +1 -1
  22. package/dist/vue/KvCompactLoanCard.js +416 -380
  23. package/dist/vue/KvCompactLoanCard.script.js +382 -0
  24. package/dist/vue/KvContentfulImg.js +1 -1
  25. package/dist/vue/KvCountdownTimer.js +1 -1
  26. package/dist/vue/KvDatePicker.js +1 -1
  27. package/dist/vue/KvExpandable.js +1 -1
  28. package/dist/vue/KvExpandableQuestion.js +1 -1
  29. package/dist/vue/KvFlag.js +1 -1
  30. package/dist/vue/KvFormAssemblyForm.js +2 -95
  31. package/dist/vue/KvFormAssemblyForm.script.js +97 -0
  32. package/dist/vue/KvGrid.js +1 -1
  33. package/dist/vue/KvIconBag.js +1 -1
  34. package/dist/vue/KvIconButton.js +2 -116
  35. package/dist/vue/KvIconButton.script.js +118 -0
  36. package/dist/vue/KvImageUpload.js +1 -1
  37. package/dist/vue/KvImpactVerticalSelector.js +1 -1
  38. package/dist/vue/KvInlineActivityCard.js +1 -1
  39. package/dist/vue/KvInlineActivityFeed.js +1 -1
  40. package/dist/vue/KvIntroductionLoanCard.js +247 -220
  41. package/dist/vue/KvIntroductionLoanCard.script.js +223 -0
  42. package/dist/vue/KvLendAmountButton.js +1 -1
  43. package/dist/vue/KvLendCta.js +355 -389
  44. package/dist/vue/KvLendCta.script.js +391 -0
  45. package/dist/vue/KvLightbox.js +1 -1
  46. package/dist/vue/KvLineGraph.js +1 -1
  47. package/dist/vue/KvLoadingSpinner.js +1 -1
  48. package/dist/vue/KvLoanActivities.js +75 -149
  49. package/dist/vue/KvLoanActivities.script.js +151 -0
  50. package/dist/vue/KvLoanBookmark.js +22 -33
  51. package/dist/vue/KvLoanBookmark.script.js +35 -0
  52. package/dist/vue/KvLoanCallouts.js +1 -1
  53. package/dist/vue/KvLoanInfoCard.js +2 -2
  54. package/dist/vue/KvLoanProgressGroup.js +1 -1
  55. package/dist/vue/KvLoanTag.js +44 -123
  56. package/dist/vue/KvLoanTag.script.js +125 -0
  57. package/dist/vue/KvLoanUse.js +14 -111
  58. package/dist/vue/KvLoanUse.script.js +113 -0
  59. package/dist/vue/KvMap.js +1 -1
  60. package/dist/vue/KvMaterialIcon.js +1 -1
  61. package/dist/vue/KvPageContainer.js +1 -1
  62. package/dist/vue/KvPagination.js +1 -1
  63. package/dist/vue/KvPieChart.js +1 -1
  64. package/dist/vue/KvPieChartV2.js +1 -1
  65. package/dist/vue/KvPill.js +1 -1
  66. package/dist/vue/KvPopper.js +1 -1
  67. package/dist/vue/KvProgressBar.js +1 -1
  68. package/dist/vue/KvProgressCircle.js +1 -1
  69. package/dist/vue/KvPulsingDot.js +1 -1
  70. package/dist/vue/KvRadio.js +1 -1
  71. package/dist/vue/KvSecondaryNav.js +1 -1
  72. package/dist/vue/KvSelect.js +1 -1
  73. package/dist/vue/KvSideSheet.js +1 -1
  74. package/dist/vue/KvSimpleMap.js +1 -1
  75. package/dist/vue/KvStackedBarGraph.js +1 -1
  76. package/dist/vue/KvSwitch.js +1 -1
  77. package/dist/vue/KvTab.js +1 -1
  78. package/dist/vue/KvTabPanel.js +1 -1
  79. package/dist/vue/KvTabs.js +1 -1
  80. package/dist/vue/KvTextInput.js +1 -1
  81. package/dist/vue/KvTextLink.js +1 -1
  82. package/dist/vue/KvThemeProvider.js +1 -1
  83. package/dist/vue/KvToast.js +1 -1
  84. package/dist/vue/KvTooltip.js +1 -1
  85. package/dist/vue/KvTreeMapChart.js +1 -1
  86. package/dist/vue/KvUserAvatar.js +1 -1
  87. package/dist/vue/KvUtilityMenu.js +1 -1
  88. package/dist/vue/KvVerticalCarousel.js +1 -1
  89. package/dist/vue/KvVotingCard.js +1 -1
  90. package/dist/vue/KvVotingCardV2.js +1 -1
  91. package/dist/vue/KvWideLoanCard.js +206 -232
  92. package/dist/vue/KvWideLoanCard.script.js +235 -0
  93. package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +1 -1
  94. package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +1 -1
  95. package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +1 -1
  96. package/dist/vue/KvWwwHeader/KvHeaderLogo.js +1 -1
  97. package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +1 -1
  98. package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +1 -1
  99. package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +1 -1
  100. package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +1 -1
  101. package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +1 -1
  102. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +1 -1
  103. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuCountryList.js +1 -1
  104. package/dist/vue/KvWwwHeader/LendMenu/KvLendMenuSearchList.js +1 -1
  105. package/dist/vue/KvWwwHeader.js +1 -1
  106. package/dist/vue/KvWwwHeaderBasic/AboutMenu.js +1 -1
  107. package/dist/vue/KvWwwHeaderBasic/HeaderMenuGroup.js +1 -1
  108. package/dist/vue/KvWwwHeaderBasic/KvWwwHeaderBasic.js +1 -1
  109. package/dist/vue/KvWwwHeaderBasic/LinkBar.js +1 -1
  110. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/CategoriesPanel.js +1 -1
  111. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MobileLendMenu.js +1 -1
  112. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/MyKivaPanel.js +1 -1
  113. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/RegionsPanel.js +1 -1
  114. package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/SearchPanel.js +1 -1
  115. package/dist/vue/KvWwwHeaderBasic/MobileMenu.js +1 -1
  116. package/dist/vue/KvWwwHeaderBasic/MyKivaMenu.js +1 -1
  117. package/dist/vue/KvWwwHeaderBasic/SearchBar.js +1 -1
  118. package/package.json +2 -2
  119. package/vite.config.ts +16 -13
  120. package/dist/vue/KvClassicLoanCard2.js +0 -255
  121. package/dist/vue/KvCompactLoanCard2.js +0 -418
  122. package/dist/vue/KvFormAssemblyForm2.js +0 -4
  123. package/dist/vue/KvIconButton2.js +0 -4
  124. package/dist/vue/KvIntroductionLoanCard2.js +0 -250
  125. package/dist/vue/KvLendCta2.js +0 -357
  126. package/dist/vue/KvLoanActivities2.js +0 -77
  127. package/dist/vue/KvLoanBookmark2.js +0 -24
  128. package/dist/vue/KvLoanTag2.js +0 -46
  129. package/dist/vue/KvLoanUse2.js +0 -16
  130. package/dist/vue/KvWideLoanCard2.js +0 -209
  131. /package/dist/vue/{KvAccordionItem2.js → KvAccordionItem.script.js} +0 -0
  132. /package/dist/vue/{KvActivityRow2.js → KvActivityRow.script.js} +0 -0
  133. /package/dist/vue/{KvAtbModal2.js → KvAtbModal.script.js} +0 -0
  134. /package/dist/vue/{KvBorrowerImage2.js → KvBorrowerImage.script.js} +0 -0
  135. /package/dist/vue/{KvButton2.js → KvButton.script.js} +0 -0
  136. /package/dist/vue/{KvCardFrame2.js → KvCardFrame.script.js} +0 -0
  137. /package/dist/vue/{KvCarousel2.js → KvCarousel.script.js} +0 -0
  138. /package/dist/vue/{KvCartModal2.js → KvCartModal.script.js} +0 -0
  139. /package/dist/vue/{KvCartPill2.js → KvCartPill.script.js} +0 -0
  140. /package/dist/vue/{KvCheckbox2.js → KvCheckbox.script.js} +0 -0
  141. /package/dist/vue/{KvCheckoutReceipt2.js → KvCheckoutReceipt.script.js} +0 -0
  142. /package/dist/vue/{KvChip2.js → KvChip.script.js} +0 -0
  143. /package/dist/vue/{KvCommentsAdd2.js → KvCommentsAdd.script.js} +0 -0
  144. /package/dist/vue/{KvCommentsContainer2.js → KvCommentsContainer.script.js} +0 -0
  145. /package/dist/vue/{KvCommentsHeartButton2.js → KvCommentsHeartButton.script.js} +0 -0
  146. /package/dist/vue/{KvCommentsList2.js → KvCommentsList.script.js} +0 -0
  147. /package/dist/vue/{KvCommentsListItem2.js → KvCommentsListItem.script.js} +0 -0
  148. /package/dist/vue/{KvCommentsReplyButton2.js → KvCommentsReplyButton.script.js} +0 -0
  149. /package/dist/vue/{KvContentfulImg2.js → KvContentfulImg.script.js} +0 -0
  150. /package/dist/vue/{KvCountdownTimer2.js → KvCountdownTimer.script.js} +0 -0
  151. /package/dist/vue/{KvDatePicker2.js → KvDatePicker.script.js} +0 -0
  152. /package/dist/vue/{KvExpandable2.js → KvExpandable.script.js} +0 -0
  153. /package/dist/vue/{KvExpandableQuestion2.js → KvExpandableQuestion.script.js} +0 -0
  154. /package/dist/vue/{KvFlag2.js → KvFlag.script.js} +0 -0
  155. /package/dist/vue/{KvGrid2.js → KvGrid.script.js} +0 -0
  156. /package/dist/vue/{KvIconBag2.js → KvIconBag.script.js} +0 -0
  157. /package/dist/vue/{KvImageUpload2.js → KvImageUpload.script.js} +0 -0
  158. /package/dist/vue/{KvImpactVerticalSelector2.js → KvImpactVerticalSelector.script.js} +0 -0
  159. /package/dist/vue/{KvInlineActivityCard2.js → KvInlineActivityCard.script.js} +0 -0
  160. /package/dist/vue/{KvInlineActivityFeed2.js → KvInlineActivityFeed.script.js} +0 -0
  161. /package/dist/vue/{KvLendAmountButton2.js → KvLendAmountButton.script.js} +0 -0
  162. /package/dist/vue/{KvLightbox2.js → KvLightbox.script.js} +0 -0
  163. /package/dist/vue/{KvLineGraph2.js → KvLineGraph.script.js} +0 -0
  164. /package/dist/vue/{KvLoadingSpinner2.js → KvLoadingSpinner.script.js} +0 -0
  165. /package/dist/vue/{KvLoanCallouts2.js → KvLoanCallouts.script.js} +0 -0
  166. /package/dist/vue/{KvLoanProgressGroup2.js → KvLoanProgressGroup.script.js} +0 -0
  167. /package/dist/vue/{KvMap2.js → KvMap.script.js} +0 -0
  168. /package/dist/vue/{KvMaterialIcon2.js → KvMaterialIcon.script.js} +0 -0
  169. /package/dist/vue/{KvPageContainer2.js → KvPageContainer.script.js} +0 -0
  170. /package/dist/vue/{KvPagination2.js → KvPagination.script.js} +0 -0
  171. /package/dist/vue/{KvPieChart2.js → KvPieChart.script.js} +0 -0
  172. /package/dist/vue/{KvPieChartV22.js → KvPieChartV2.script.js} +0 -0
  173. /package/dist/vue/{KvPill2.js → KvPill.script.js} +0 -0
  174. /package/dist/vue/{KvPopper2.js → KvPopper.script.js} +0 -0
  175. /package/dist/vue/{KvProgressBar2.js → KvProgressBar.script.js} +0 -0
  176. /package/dist/vue/{KvProgressCircle2.js → KvProgressCircle.script.js} +0 -0
  177. /package/dist/vue/{KvPulsingDot2.js → KvPulsingDot.script.js} +0 -0
  178. /package/dist/vue/{KvRadio2.js → KvRadio.script.js} +0 -0
  179. /package/dist/vue/{KvSecondaryNav2.js → KvSecondaryNav.script.js} +0 -0
  180. /package/dist/vue/{KvSelect2.js → KvSelect.script.js} +0 -0
  181. /package/dist/vue/{KvSideSheet2.js → KvSideSheet.script.js} +0 -0
  182. /package/dist/vue/{KvSimpleMap2.js → KvSimpleMap.script.js} +0 -0
  183. /package/dist/vue/{KvStackedBarGraph2.js → KvStackedBarGraph.script.js} +0 -0
  184. /package/dist/vue/{KvSwitch2.js → KvSwitch.script.js} +0 -0
  185. /package/dist/vue/{KvTab2.js → KvTab.script.js} +0 -0
  186. /package/dist/vue/{KvTabPanel2.js → KvTabPanel.script.js} +0 -0
  187. /package/dist/vue/{KvTabs2.js → KvTabs.script.js} +0 -0
  188. /package/dist/vue/{KvTextInput2.js → KvTextInput.script.js} +0 -0
  189. /package/dist/vue/{KvTextLink2.js → KvTextLink.script.js} +0 -0
  190. /package/dist/vue/{KvThemeProvider2.js → KvThemeProvider.script.js} +0 -0
  191. /package/dist/vue/{KvToast2.js → KvToast.script.js} +0 -0
  192. /package/dist/vue/{KvTooltip2.js → KvTooltip.script.js} +0 -0
  193. /package/dist/vue/{KvTreeMapChart2.js → KvTreeMapChart.script.js} +0 -0
  194. /package/dist/vue/{KvUserAvatar2.js → KvUserAvatar.script.js} +0 -0
  195. /package/dist/vue/{KvUtilityMenu2.js → KvUtilityMenu.script.js} +0 -0
  196. /package/dist/vue/{KvVerticalCarousel2.js → KvVerticalCarousel.script.js} +0 -0
  197. /package/dist/vue/{KvVotingCard2.js → KvVotingCard.script.js} +0 -0
  198. /package/dist/vue/{KvVotingCardV22.js → KvVotingCardV2.script.js} +0 -0
  199. /package/dist/vue/KvWwwHeader/{KvHeaderAboutMenu2.js → KvHeaderAboutMenu.script.js} +0 -0
  200. /package/dist/vue/KvWwwHeader/{KvHeaderDropdownLink2.js → KvHeaderDropdownLink.script.js} +0 -0
  201. /package/dist/vue/KvWwwHeader/{KvHeaderLinkBar2.js → KvHeaderLinkBar.script.js} +0 -0
  202. /package/dist/vue/KvWwwHeader/{KvHeaderLogo2.js → KvHeaderLogo.script.js} +0 -0
  203. /package/dist/vue/KvWwwHeader/{KvHeaderMobileMenu2.js → KvHeaderMobileMenu.script.js} +0 -0
  204. /package/dist/vue/KvWwwHeader/{KvHeaderMyKivaMenu2.js → KvHeaderMyKivaMenu.script.js} +0 -0
  205. /package/dist/vue/KvWwwHeader/{KvHeaderTakeActionMenu2.js → KvHeaderTakeActionMenu.script.js} +0 -0
  206. /package/dist/vue/KvWwwHeader/LendMenu/{KvLendListMenu2.js → KvLendListMenu.script.js} +0 -0
  207. /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMegaMenu2.js → KvLendMegaMenu.script.js} +0 -0
  208. /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMenu2.js → KvLendMenu.script.js} +0 -0
  209. /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMenuCountryList2.js → KvLendMenuCountryList.script.js} +0 -0
  210. /package/dist/vue/KvWwwHeader/LendMenu/{KvLendMenuSearchList2.js → KvLendMenuSearchList.script.js} +0 -0
  211. /package/dist/vue/{KvWwwHeader2.js → KvWwwHeader.script.js} +0 -0
  212. /package/dist/vue/KvWwwHeaderBasic/{AboutMenu2.js → AboutMenu.script.js} +0 -0
  213. /package/dist/vue/KvWwwHeaderBasic/{HeaderMenuGroup2.js → HeaderMenuGroup.script.js} +0 -0
  214. /package/dist/vue/KvWwwHeaderBasic/{KvWwwHeaderBasic2.js → KvWwwHeaderBasic.script.js} +0 -0
  215. /package/dist/vue/KvWwwHeaderBasic/{LinkBar2.js → LinkBar.script.js} +0 -0
  216. /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{CategoriesPanel2.js → CategoriesPanel.script.js} +0 -0
  217. /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{MobileLendMenu2.js → MobileLendMenu.script.js} +0 -0
  218. /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{MyKivaPanel2.js → MyKivaPanel.script.js} +0 -0
  219. /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{RegionsPanel2.js → RegionsPanel.script.js} +0 -0
  220. /package/dist/vue/KvWwwHeaderBasic/MobileLendMenu/{SearchPanel2.js → SearchPanel.script.js} +0 -0
  221. /package/dist/vue/KvWwwHeaderBasic/{MobileMenu2.js → MobileMenu.script.js} +0 -0
  222. /package/dist/vue/KvWwwHeaderBasic/{MyKivaMenu2.js → MyKivaMenu.script.js} +0 -0
  223. /package/dist/vue/KvWwwHeaderBasic/{SearchBar2.js → SearchBar.script.js} +0 -0
@@ -1,357 +0,0 @@
1
- import P from "./KvLendCta.js";
2
- import { KV_LEND_CTA_FRAGMENT as oe, KV_LEND_CTA_USER_FRAGMENT as se } from "./KvLendCta.js";
3
- import { resolveComponent as A, openBlock as l, createElementBlock as s, createBlock as r, withCtx as w, createTextVNode as f, toDisplayString as a, createElementVNode as c, createVNode as b, withModifiers as D, normalizeClass as u, Fragment as k, renderList as _, createCommentVNode as i } from "vue";
4
- import "./KvLendCta.css";
5
- import y from "../_virtual/_plugin-vue_export-helper.js";
6
- const N = {
7
- ref: "root",
8
- class: "tw-whitespace-nowrap"
9
- }, g = {
10
- key: 2,
11
- class: "tw-w-full tw-text-center tw-rounded tw-p-2",
12
- style: { background: "#f1f1f1" }
13
- }, T = { class: "tw-flex tw-items-center" }, V = ["disabled"], O = {
14
- key: 0,
15
- class: "md:tw-hidden tw-w-full"
16
- }, R = { class: "tw-flex tw-flex-col tw-gap-1 tw-w-full" }, C = { class: "tw-flex tw-gap-1 tw-w-full" }, I = ["value"], E = { class: "tw-flex tw-gap-1" }, p = ["value"], S = { class: "tw-flex tw-items-center tw-h-full tw-w-full" }, W = { class: "tw-min-w-0 tw-flex-1 tw-overflow-hidden tw-text-ellipsis tw-whitespace-nowrap" }, U = {
17
- key: 1,
18
- class: "tw-w-full"
19
- }, F = { class: "tw-flex tw-flex-col tw-gap-1 tw-w-full" }, M = { class: "tw-flex tw-gap-1 tw-w-full" }, K = ["value"], H = { class: "tw-flex tw-gap-1" }, j = ["value"], G = { class: "tw-flex tw-items-center tw-h-full tw-w-full" }, z = { class: "tw-min-w-0 tw-flex-1 tw-overflow-hidden tw-text-ellipsis tw-whitespace-nowrap" }, q = ["value"], J = {
20
- key: 3,
21
- class: "amountDropdownWrapper"
22
- }, Q = ["value"];
23
- function X(v, o, n, Y, d, e) {
24
- const m = A("kv-ui-button"), B = A("kv-material-icon"), h = A("kv-ui-select"), L = A("kv-lend-amount-button");
25
- return l(), s("div", N, [
26
- e.isInBasket ? (l(), r(m, {
27
- key: 0,
28
- variant: "secondary",
29
- class: "tw-inline-flex tw-flex-1 tw-w-full tw-cursor-pointer",
30
- "data-testid": "bp-lend-cta-checkout-button",
31
- to: n.externalLinks ? void 0 : "/basket",
32
- href: n.externalLinks ? "/basket" : void 0,
33
- onClick: o[0] || (o[0] = (t) => e.clickSecondaryButton(t))
34
- }, {
35
- default: w(() => [
36
- f(a(e.loanInBasketButtonText), 1)
37
- ]),
38
- _: 1
39
- }, 8, ["to", "href"])) : e.showNonActionableLoanButton ? (l(), r(m, {
40
- key: 1,
41
- class: "tw-inline-flex tw-flex-1"
42
- }, {
43
- default: w(() => [
44
- f(a(e.ctaButtonText), 1)
45
- ]),
46
- _: 1
47
- })) : e.isFunded ? (l(), s("div", g, " This loan was just funded! 🎉 ")) : n.showViewLoan ? (l(), r(m, {
48
- key: 3,
49
- state: `${e.allSharesReserved ? "disabled" : ""}`,
50
- to: n.externalLinks ? void 0 : e.readMorePath,
51
- href: n.externalLinks ? e.readMorePath : void 0,
52
- class: "tw-mb-0 tw-cursor-pointer",
53
- onClick: o[1] || (o[1] = (t) => v.$emit("show-loan-details", t))
54
- }, {
55
- default: w(() => [
56
- c("span", T, [
57
- o[9] || (o[9] = f(" View loan ")),
58
- b(B, {
59
- class: "tw-w-3 tw-h-3",
60
- icon: d.mdiChevronRight
61
- }, null, 8, ["icon"])
62
- ])
63
- ]),
64
- _: 1
65
- }, 8, ["state", "to", "href"])) : e.useFormSubmit ? (l(), s("form", {
66
- key: 4,
67
- class: "tw-w-full tw-flex",
68
- onSubmit: o[8] || (o[8] = D((...t) => e.addToBasket && e.addToBasket(...t), ["prevent"]))
69
- }, [
70
- c("fieldset", {
71
- class: u(["tw-w-full tw-flex", {
72
- "tw-flex-col md:tw-flex-row md:tw-justify-between tw-min-w-0": n.showPresetAmounts && !e.isNarrowDesktop,
73
- "tw-flex-col tw-min-w-0": n.showPresetAmounts && e.isNarrowDesktop,
74
- "tw-gap-1.5": n.showPresetAmounts && !e.isLendAmountButton && !n.isAdding && !e.isNarrowDesktop
75
- }]),
76
- disabled: n.isAdding,
77
- "data-testid": "bp-lend-cta-select-and-button"
78
- }, [
79
- n.showPresetAmounts && !n.isAdding && !e.isLendAmountButton && e.presetButtonsPrices.length > 1 && !e.isNarrowDesktop ? (l(), s("div", O, [
80
- c("div", R, [
81
- c("div", C, [
82
- (l(!0), s(k, null, _(e.presetButtonsPrices, (t) => (l(), r(m, {
83
- key: t,
84
- variant: "secondary",
85
- class: u(["preset-option tw-flex-1 tw-min-w-0 tw-whitespace-nowrap", { "selected-option": d.selectedOption == t }]),
86
- "data-testid": "bp-lend-cta-lend-button-mobile",
87
- onClick: (x) => e.clickPresetButton(t)
88
- }, {
89
- default: w(() => [
90
- f(" $ " + a(t), 1)
91
- ]),
92
- _: 2
93
- }, 1032, ["class", "onClick"]))), 128)),
94
- e.showFilteredDropdown && d.viewportWidth >= d.MOBILE_DROPDOWN_BREAKPOINT ? (l(), r(h, {
95
- key: 0,
96
- id: `LoanAmountDropdownMobile_${e.loanId}`,
97
- modelValue: d.selectedDropdownOption,
98
- "onUpdate:modelValue": [
99
- o[2] || (o[2] = (t) => d.selectedDropdownOption = t),
100
- e.trackLendAmountSelection
101
- ],
102
- class: u(["filtered-dropdown mobile-dropdown tw-rounded", {
103
- "unselected-dropdown": !e.selectedDropdown,
104
- "selected-dropdown": e.selectedDropdown
105
- }]),
106
- "aria-label": "Lend amount",
107
- onClick: D(e.clickDropdown, ["stop"])
108
- }, {
109
- default: w(() => [
110
- (l(!0), s(k, null, _(e.presetDropdownPrices, (t) => (l(), s("option", {
111
- key: t,
112
- value: t
113
- }, a(t !== d.OTHER_OPTION ? `$${t}` : t), 9, I))), 128))
114
- ]),
115
- _: 1
116
- }, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : i("", !0)
117
- ]),
118
- c("div", E, [
119
- e.showFilteredDropdown && d.viewportWidth < d.MOBILE_DROPDOWN_BREAKPOINT ? (l(), r(h, {
120
- key: 0,
121
- id: `LoanAmountDropdownMobile_Small_${e.loanId}`,
122
- modelValue: d.selectedDropdownOption,
123
- "onUpdate:modelValue": [
124
- o[3] || (o[3] = (t) => d.selectedDropdownOption = t),
125
- e.trackLendAmountSelection
126
- ],
127
- class: u(["filtered-dropdown mobile-dropdown-small tw-rounded tw-w-2/5", {
128
- "unselected-dropdown": !e.selectedDropdown,
129
- "selected-dropdown": e.selectedDropdown
130
- }]),
131
- "aria-label": "Lend amount",
132
- onClick: D(e.clickDropdown, ["stop"])
133
- }, {
134
- default: w(() => [
135
- (l(!0), s(k, null, _(e.presetDropdownPrices, (t) => (l(), s("option", {
136
- key: "small-" + t,
137
- value: t
138
- }, a(t !== d.OTHER_OPTION ? `$${t}` : t), 9, p))), 128))
139
- ]),
140
- _: 1
141
- }, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : i("", !0),
142
- b(m, {
143
- class: u(["tw-inline-flex tw-flex-1 button-ellipsis tw-min-w-0", d.viewportWidth < d.MOBILE_DROPDOWN_BREAKPOINT ? "tw-w-3/5" : "tw-w-full"]),
144
- "data-testid": "bp-lend-cta-mobile-lend-button",
145
- type: "submit"
146
- }, {
147
- default: w(() => [
148
- c("span", S, [
149
- c("span", W, a(e.ctaButtonText), 1)
150
- ])
151
- ]),
152
- _: 1
153
- }, 8, ["class"])
154
- ])
155
- ])
156
- ])) : i("", !0),
157
- n.showPresetAmounts && !n.isAdding && !e.isLendAmountButton && e.presetButtonsPrices.length > 1 && e.isNarrowDesktop ? (l(), s("div", U, [
158
- c("div", F, [
159
- c("div", M, [
160
- (l(!0), s(k, null, _(e.presetButtonsPrices, (t) => (l(), r(m, {
161
- key: t,
162
- variant: "secondary",
163
- class: u(["preset-option tw-flex-1 tw-min-w-0 tw-whitespace-nowrap", { "selected-option": d.selectedOption == t }]),
164
- "data-testid": "bp-lend-cta-lend-button-narrow-desktop",
165
- onClick: (x) => e.clickPresetButton(t)
166
- }, {
167
- default: w(() => [
168
- f(" $ " + a(t), 1)
169
- ]),
170
- _: 2
171
- }, 1032, ["class", "onClick"]))), 128)),
172
- e.showFilteredDropdown && d.componentWidth >= d.NARROW_SIDEBAR_DROPDOWN_BREAKPOINT ? (l(), r(h, {
173
- key: 0,
174
- id: `LoanAmountDropdownNarrowDesktop_${e.loanId}`,
175
- modelValue: d.selectedDropdownOption,
176
- "onUpdate:modelValue": [
177
- o[4] || (o[4] = (t) => d.selectedDropdownOption = t),
178
- e.trackLendAmountSelection
179
- ],
180
- class: u(["filtered-dropdown mobile-dropdown tw-flex-1 tw-rounded", {
181
- "unselected-dropdown": !e.selectedDropdown,
182
- "selected-dropdown": e.selectedDropdown
183
- }]),
184
- "aria-label": "Lend amount",
185
- onClick: D(e.clickDropdown, ["stop"])
186
- }, {
187
- default: w(() => [
188
- (l(!0), s(k, null, _(e.presetDropdownPrices, (t) => (l(), s("option", {
189
- key: t,
190
- value: t
191
- }, a(t !== d.OTHER_OPTION ? `${t}` : t), 9, K))), 128))
192
- ]),
193
- _: 1
194
- }, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : i("", !0)
195
- ]),
196
- c("div", H, [
197
- e.showFilteredDropdown && d.componentWidth < d.NARROW_SIDEBAR_DROPDOWN_BREAKPOINT ? (l(), r(h, {
198
- key: 0,
199
- id: `LoanAmountDropdownNarrowDesktop_Small_${e.loanId}`,
200
- modelValue: d.selectedDropdownOption,
201
- "onUpdate:modelValue": [
202
- o[5] || (o[5] = (t) => d.selectedDropdownOption = t),
203
- e.trackLendAmountSelection
204
- ],
205
- class: u(["filtered-dropdown mobile-dropdown-small tw-rounded tw-w-2/5", {
206
- "unselected-dropdown": !e.selectedDropdown,
207
- "selected-dropdown": e.selectedDropdown
208
- }]),
209
- "aria-label": "Lend amount",
210
- onClick: D(e.clickDropdown, ["stop"])
211
- }, {
212
- default: w(() => [
213
- (l(!0), s(k, null, _(e.presetDropdownPrices, (t) => (l(), s("option", {
214
- key: "narrow-small-" + t,
215
- value: t
216
- }, a(t !== d.OTHER_OPTION ? `${t}` : t), 9, j))), 128))
217
- ]),
218
- _: 1
219
- }, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : i("", !0),
220
- b(m, {
221
- class: u(["tw-inline-flex tw-flex-1 button-ellipsis tw-min-w-0", d.componentWidth < d.NARROW_SIDEBAR_DROPDOWN_BREAKPOINT ? "tw-w-3/5" : "tw-w-full"]),
222
- "data-testid": "bp-lend-cta-narrow-desktop-lend-button",
223
- type: "submit"
224
- }, {
225
- default: w(() => [
226
- c("span", G, [
227
- c("span", z, a(e.ctaButtonText), 1)
228
- ])
229
- ]),
230
- _: 1
231
- }, 8, ["class"])
232
- ])
233
- ])
234
- ])) : i("", !0),
235
- n.showPresetAmounts && !n.isAdding && !e.isNarrowDesktop ? (l(), s("div", {
236
- key: 2,
237
- class: u({
238
- "tw-flex tw-gap-0.5 md:tw-gap-1 lg:tw-gap-1 tw-flex-wrap md:tw-flex-nowrap": !0,
239
- "tw-hidden md:tw-flex": !e.isLendAmountButton && e.presetButtonsPrices.length > 1
240
- })
241
- }, [
242
- e.isLendAmountButton ? i("", !0) : (l(!0), s(k, { key: 0 }, _(e.presetButtonsPrices, (t) => (l(), r(m, {
243
- key: t,
244
- variant: "secondary",
245
- class: u(["tw-inline-flex tw-flex-1 preset-option tw-w-8 tw-whitespace-nowrap", { "selected-option": d.selectedOption == t }]),
246
- "data-testid": "bp-lend-cta-lend-button",
247
- onClick: (x) => e.clickPresetButton(t)
248
- }, {
249
- default: w(() => [
250
- f(" $" + a(t), 1)
251
- ]),
252
- _: 2
253
- }, 1032, ["class", "onClick"]))), 128)),
254
- e.showFilteredDropdown ? (l(), r(h, {
255
- key: 1,
256
- id: `LoanAmountDropdown_${e.loanId}`,
257
- modelValue: d.selectedDropdownOption,
258
- "onUpdate:modelValue": [
259
- o[6] || (o[6] = (t) => d.selectedDropdownOption = t),
260
- e.trackLendAmountSelection
261
- ],
262
- class: u(["tw-min-w-12 tw-rounded filtered-dropdown", {
263
- "unselected-dropdown": !e.selectedDropdown,
264
- "selected-dropdown": e.selectedDropdown
265
- }]),
266
- "aria-label": "Lend amount",
267
- onClick: D(e.clickDropdown, ["stop"])
268
- }, {
269
- default: w(() => [
270
- (l(!0), s(k, null, _(e.presetDropdownPrices, (t) => (l(), s("option", {
271
- key: t,
272
- value: t
273
- }, a(t !== d.OTHER_OPTION ? `$${t}` : t), 9, q))), 128))
274
- ]),
275
- _: 1
276
- }, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : i("", !0)
277
- ], 2)) : n.showPresetAmounts ? i("", !0) : (l(), s("div", J, [
278
- e.hideShowLendDropdown && !e.isLessThan25 ? (l(), r(h, {
279
- key: 0,
280
- id: `LoanAmountDropdown_${e.loanId}`,
281
- modelValue: d.selectedOption,
282
- "onUpdate:modelValue": [
283
- o[7] || (o[7] = (t) => d.selectedOption = t),
284
- e.trackLendAmountSelection
285
- ],
286
- class: "tw-min-w-12",
287
- style: { "border-radius": "14px 0 0 14px" },
288
- "aria-label": "Lend amount",
289
- onClick: D(e.clickDropdown, ["stop"])
290
- }, {
291
- default: w(() => [
292
- (l(!0), s(k, null, _(e.prices, (t) => (l(), s("option", {
293
- key: t,
294
- value: t
295
- }, " $" + a(t), 9, Q))), 128))
296
- ]),
297
- _: 1
298
- }, 8, ["id", "modelValue", "onUpdate:modelValue", "onClick"])) : i("", !0)
299
- ])),
300
- c("div", {
301
- class: u({
302
- "tw-min-w-0": n.showPresetAmounts && !e.isNarrowDesktop,
303
- lendButtonWrapper: e.hideShowLendDropdown && !n.showPresetAmounts,
304
- "tw-hidden": e.hideLendButton || n.showPresetAmounts && !n.isAdding && !e.isLendAmountButton && e.presetButtonsPrices.length > 1 && (e.isNarrowComponent() || e.isNarrowDesktop),
305
- "md:tw-block tw-hidden": !e.isLendAmountButton && e.presetButtonsPrices.length > 1 && n.showPresetAmounts && !e.isNarrowDesktop
306
- })
307
- }, [
308
- e.lendButtonVisibility && !e.isLessThan25 ? (l(), r(m, {
309
- key: "lendButton",
310
- class: u(["tw-inline-flex tw-flex-1", { "button-ellipsis tw-w-full": n.showPresetAmounts }]),
311
- "data-testid": "bp-lend-cta-lend-button",
312
- type: "submit"
313
- }, {
314
- default: w(() => [
315
- f(a(e.ctaButtonText), 1)
316
- ]),
317
- _: 1
318
- }, 8, ["class"])) : e.showLendAgain ? (l(), r(m, {
319
- key: "lendAgainButton",
320
- class: u(["lend-again", { "tw-w-full": n.showPresetAmounts }]),
321
- "data-testid": "bp-lend-cta-lend-again-button",
322
- type: "submit"
323
- }, {
324
- default: w(() => [
325
- f(a(n.primaryButtonText || "Lend") + " again ", 1)
326
- ]),
327
- _: 1
328
- }, 8, ["class"])) : i("", !0)
329
- ], 2),
330
- e.isLendAmountButton && !n.enableFiveDollarsNotes ? (l(), r(L, {
331
- key: 4,
332
- class: "tw-w-full",
333
- "loan-id": e.loanId,
334
- "show-now": !1,
335
- "amount-left": e.amountForLendAmountButton,
336
- "is-adding": n.isAdding,
337
- onAddToBasket: e.addToBasket
338
- }, null, 8, ["loan-id", "amount-left", "is-adding", "onAddToBasket"])) : i("", !0),
339
- !n.isLoading && n.isAdding ? (l(), r(m, {
340
- key: 5,
341
- class: "tw-inline-flex tw-flex-1"
342
- }, {
343
- default: w(() => o[10] || (o[10] = [
344
- f(" Adding to basket ")
345
- ])),
346
- _: 1
347
- })) : i("", !0)
348
- ], 10, V)
349
- ], 32)) : i("", !0)
350
- ], 512);
351
- }
352
- const le = /* @__PURE__ */ y(P, [["render", X], ["__scopeId", "data-v-da60f69c"]]);
353
- export {
354
- oe as KV_LEND_CTA_FRAGMENT,
355
- se as KV_LEND_CTA_USER_FRAGMENT,
356
- le as default
357
- };
@@ -1,77 +0,0 @@
1
- import g from "./KvLoanActivities.js";
2
- import { KV_LOAN_ACTIVITIES_FRAGMENT as H } from "./KvLoanActivities.js";
3
- import { resolveComponent as c, openBlock as n, createElementBlock as s, createElementVNode as i, createVNode as d, toDisplayString as l, createCommentVNode as r, withCtx as m, Fragment as w, renderList as _, createBlock as h } from "vue";
4
- import "./KvLoanActivities.css";
5
- import y from "../_virtual/_plugin-vue_export-helper.js";
6
- const A = {
7
- key: 0,
8
- class: "loan-activity"
9
- }, L = { class: "tw-flex tw-justify-center lg:tw-px-0" }, C = { class: "tw-flex tw-justify-center tw-mt-1 tw-text-small" }, K = { key: 0 }, N = { class: "tw-text-title tw-flex-1 data-hj-suppress" }, M = { class: "tw-overflow-x-hidden tw-px-2 tw-pb-1" }, T = { class: "tw-text-center tw-text-upper" }, V = { class: "tw-flex tw-flex-col tw-gap-y-1" }, B = {
10
- key: 0,
11
- class: "tw-mt-1 tw-text-small tw-text-danger"
12
- }, F = { class: "tw-flex tw-justify-end tw-mt-4 tw-pb-2.5 md:tw-pb-4" };
13
- function I(k, a, t, e, j, E) {
14
- const v = c("KvActivityRow"), x = c("KvLendCta"), u = c("KvLightbox");
15
- return t.combinedActivities.length > 0 ? (n(), s("div", A, [
16
- i("div", L, [
17
- d(v, { activity: e.singleActivity }, null, 8, ["activity"])
18
- ]),
19
- i("div", C, [
20
- e.lendersNumber && e.amountLent ? (n(), s("span", K, l(e.lendersNumber) + " lenders lent " + l(e.amountLent) + ".   ", 1)) : r("", !0),
21
- i("button", {
22
- class: "tw-text-action hover:tw-underline",
23
- onClick: a[0] || (a[0] = (...o) => e.showActivityModal && e.showActivityModal(...o))
24
- }, " See all activity ")
25
- ]),
26
- d(u, {
27
- title: "Activity Feed Modal",
28
- visible: e.lightboxOpen,
29
- onLightboxClosed: e.closeLightbox
30
- }, {
31
- header: m(() => [
32
- i("h2", N, l(e.modalTitle), 1)
33
- ]),
34
- default: m(() => [
35
- i("div", M, [
36
- (n(!0), s(w, null, _(t.combinedActivities, (o) => (n(), s("div", {
37
- key: o.key,
38
- class: "md:tw-px-8 lg:tw-px-14 tw-mt-4"
39
- }, [
40
- i("p", T, l(e.formattedDate(o.key)), 1),
41
- i("div", V, [
42
- (n(!0), s(w, null, _(o.data, (b, f) => (n(), h(v, {
43
- key: f,
44
- activity: b
45
- }, null, 8, ["activity"]))), 128))
46
- ])
47
- ]))), 128))
48
- ]),
49
- i("div", null, [
50
- t.errorMsg ? (n(), s("p", B, l(t.errorMsg), 1)) : r("", !0),
51
- i("div", F, [
52
- d(x, {
53
- loan: t.loan,
54
- "is-loading": !1,
55
- "kv-track-function": t.kvTrackFunction,
56
- "get-cookie": t.getCookie,
57
- "set-cookie": t.setCookie,
58
- "user-balance": t.userBalance,
59
- "basket-items": t.basketItems,
60
- route: t.route,
61
- "is-adding": t.isAdding,
62
- "is-visitor": t.isVisitor,
63
- "enable-five-dollars-notes": t.enableFiveDollarsNotes,
64
- onAddToBasket: a[1] || (a[1] = (o) => k.$emit("add-to-basket", o))
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
- ])
67
- ])
68
- ]),
69
- _: 1
70
- }, 8, ["visible", "onLightboxClosed"])
71
- ])) : r("", !0);
72
- }
73
- const G = /* @__PURE__ */ y(g, [["render", I], ["__scopeId", "data-v-c2b4aeda"]]);
74
- export {
75
- H as KV_LOAN_ACTIVITIES_FRAGMENT,
76
- G as default
77
- };
@@ -1,24 +0,0 @@
1
- import i from "./KvLoanBookmark.js";
2
- import { KV_LOAN_BOOKMARK_FRAGMENT as K } from "./KvLoanBookmark.js";
3
- import { resolveComponent as m, openBlock as a, createElementBlock as l, createElementVNode as s, createVNode as c, normalizeClass as k } from "vue";
4
- import d from "../_virtual/_plugin-vue_export-helper.js";
5
- function f(r, e, o, u, t, _) {
6
- const n = m("kv-material-icon");
7
- return a(), l("div", null, [
8
- s("button", {
9
- style: { "border-radius": "8px", padding: "3px" },
10
- class: "tw-cursor-pointer tw-font-medium tw-bg-white tw-flex tw-justify-center",
11
- onClick: e[0] || (e[0] = (p) => r.$emit("toggle-bookmark"))
12
- }, [
13
- c(n, {
14
- class: k(["tw-w-3", { "tw-text-black": !o.isBookmarked, "tw-text-marigold": o.isBookmarked }]),
15
- icon: `${o.isBookmarked ? t.mdiBookmark : t.mdiBookmarkOutline}`
16
- }, null, 8, ["class", "icon"])
17
- ])
18
- ]);
19
- }
20
- const v = /* @__PURE__ */ d(i, [["render", f]]);
21
- export {
22
- K as KV_LOAN_BOOKMARK_FRAGMENT,
23
- v as default
24
- };
@@ -1,46 +0,0 @@
1
- import h from "./KvLoanTag.js";
2
- import { KV_LOAN_TAG_FRAGMENT as L } from "./KvLoanTag.js";
3
- import { resolveComponent as d, openBlock as e, createElementBlock as r, normalizeStyle as _, normalizeClass as w, Fragment as o, createTextVNode as m, toDisplayString as a, createElementVNode as l, createVNode as p, withCtx as y, renderList as k, createBlock as f, createCommentVNode as s } from "vue";
4
- import x from "../_virtual/_plugin-vue_export-helper.js";
5
- const v = ["id"], M = { class: "tw-whitespace-nowrap tw-pb-0.5" };
6
- function N(b, i, c, C, T, t) {
7
- const u = d("kv-tooltip"), g = d("kv-countdown-timer");
8
- return t.variation ? (e(), r("div", {
9
- key: 0,
10
- class: w(["tw-text-small tw-font-medium tw-pt-0.5", { "tw-line-clamp-1": !t.isMultipleMatch }]),
11
- style: _({ color: t.tagColor })
12
- }, [
13
- t.isMultipleMatch ? (e(), r(o, { key: 0 }, [
14
- m(a(t.totalMatchRatio) + "x match by ", 1),
15
- l("span", {
16
- id: `matching-orgs-${c.loan.id}`,
17
- class: "tw-underline tw-decoration-dotted tw-cursor-pointer"
18
- }, a(t.multiMatchingOrgs.length) + " organizations", 9, v),
19
- p(u, {
20
- controller: `matching-orgs-${c.loan.id}`,
21
- "max-width": "320px"
22
- }, {
23
- default: y(() => [
24
- l("p", M, " Your contribution is matched by " + a(t.multiMatchingOrgs.length) + " partners ", 1),
25
- i[0] || (i[0] = l("hr", { class: "tw-border-caution-highlight tw-py-0.5" }, null, -1)),
26
- (e(!0), r(o, null, k(t.multiMatchingOrgs, (n) => (e(), r("p", {
27
- key: n.managedAccountId,
28
- class: "tw-m-0"
29
- }, a(n.ratio) + ":1 matching by " + a(t.orgDisplayName(n)), 1))), 128))
30
- ]),
31
- _: 1
32
- }, 8, ["controller"])
33
- ], 64)) : (e(), r(o, { key: 1 }, [
34
- m(a(t.tagText) + " ", 1),
35
- t.variation === "ending-soon" ? (e(), f(g, {
36
- key: 0,
37
- deadline: t.deadline
38
- }, null, 8, ["deadline"])) : s("", !0)
39
- ], 64))
40
- ], 6)) : s("", !0);
41
- }
42
- const z = /* @__PURE__ */ x(h, [["render", N]]);
43
- export {
44
- L as KV_LOAN_TAG_FRAGMENT,
45
- z as default
46
- };
@@ -1,16 +0,0 @@
1
- import o from "./KvLoanUse.js";
2
- import { KV_LOAN_USE_FRAGMENT as E } from "./KvLoanUse.js";
3
- import { openBlock as r, createElementBlock as n } from "vue";
4
- import t from "../_virtual/_plugin-vue_export-helper.js";
5
- const c = ["innerHTML"];
6
- function s(_, p, a, l, m, e) {
7
- return r(), n("p", {
8
- class: "tw-line-clamp-4",
9
- innerHTML: e.loanUse
10
- }, null, 8, c);
11
- }
12
- const u = /* @__PURE__ */ t(o, [["render", s]]);
13
- export {
14
- E as KV_LOAN_USE_FRAGMENT,
15
- u as default
16
- };