@kiva/kv-components 6.13.1 → 6.14.0

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.
package/dist/index.js CHANGED
@@ -4,182 +4,197 @@ import { default as l } from "./vue/KvBorrowerImage.js";
4
4
  import { default as d } from "./vue/KvButton.js";
5
5
  import { default as p } from "./vue/KvCarousel.js";
6
6
  import { default as n } from "./vue/KvCartModal.js";
7
- import { default as v } from "./vue/KvCartPill.js";
8
- import { default as i } from "./vue/KvCheckbox.js";
9
- import { default as c } from "./vue/KvChip.js";
10
- import { default as L } from "./vue/KvClassicLoanCard.js";
11
- import { default as P } from "./vue/KvCommentsAdd.js";
12
- import { default as T } from "./vue/KvCommentsContainer.js";
13
- import { default as B } from "./vue/KvCommentsHeartButton.js";
14
- import { default as k } from "./vue/KvCommentsList.js";
15
- import { default as y } from "./vue/KvCommentsListItem.js";
16
- import { default as E } from "./vue/KvCommentsReplyButton.js";
17
- import { default as w } from "./vue/KvContentfulImg.js";
18
- import { default as _ } from "./vue/KvCountdownTimer.js";
19
- import { default as U } from "./vue/KvExpandable.js";
20
- import { default as V } from "./vue/KvExpandableQuestion.js";
21
- import { default as F } from "./vue/KvFlag.js";
22
- import { default as j } from "./vue/KvGrid.js";
23
- import { default as Q } from "./vue/KvImpactDashboardHeader.js";
24
- import { default as q } from "./vue/KvInlineActivityCard.js";
25
- import { default as X } from "./vue/KvInlineActivityFeed.js";
26
- import { default as Z } from "./vue/KvIntroductionLoanCard.js";
27
- import { default as ee } from "./vue/KvLendAmountButton.js";
28
- import { default as re } from "./vue/KvLendCta.js";
29
- import { default as ae } from "./vue/KvLightbox.js";
30
- import { default as le } from "./vue/KvLineGraph.js";
31
- import { default as de } from "./vue/KvLoanActivities.js";
32
- import { default as pe } from "./vue/KvLoanBookmark.js";
33
- import { default as ne } from "./vue/KvLoanCallouts.js";
34
- import { default as ve } from "./vue/KvLoanProgressGroup.js";
35
- import { default as ie } from "./vue/KvLoanTag.js";
36
- import { default as ce } from "./vue/KvLoanTeamPick.js";
37
- import { default as Le } from "./vue/KvLoanUse.js";
7
+ import { default as K } from "./vue/KvCartPill.js";
8
+ import { default as A } from "./vue/KvCheckbox.js";
9
+ import { default as C } from "./vue/KvChip.js";
10
+ import { KV_CLASSIC_LOAN_CARD_FRAGMENT as L, KV_CLASSIC_LOAN_CARD_USER_FRAGMET as T, default as N } from "./vue/KvClassicLoanCard.js";
11
+ import { default as c } from "./vue/KvCommentsAdd.js";
12
+ import { default as O } from "./vue/KvCommentsContainer.js";
13
+ import { default as I } from "./vue/KvCommentsHeartButton.js";
14
+ import { default as G } from "./vue/KvCommentsList.js";
15
+ import { default as P } from "./vue/KvCommentsListItem.js";
16
+ import { default as F } from "./vue/KvCommentsReplyButton.js";
17
+ import { default as B } from "./vue/KvContentfulImg.js";
18
+ import { default as k } from "./vue/KvCountdownTimer.js";
19
+ import { default as y } from "./vue/KvExpandable.js";
20
+ import { default as w } from "./vue/KvExpandableQuestion.js";
21
+ import { default as H } from "./vue/KvFlag.js";
22
+ import { default as z } from "./vue/KvGrid.js";
23
+ import { default as q } from "./vue/KvImpactDashboardHeader.js";
24
+ import { default as X } from "./vue/KvInlineActivityCard.js";
25
+ import { default as Z } from "./vue/KvInlineActivityFeed.js";
26
+ import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as ee, KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT as oe, default as re } from "./vue/KvIntroductionLoanCard.js";
27
+ import { default as ae } from "./vue/KvLendAmountButton.js";
28
+ import { KV_LEND_CTA_FRAGMENT as le, KV_LEND_CTA_USER_FRAGMENT as se, default as de } from "./vue/KvLendCta.js";
29
+ import { default as pe } from "./vue/KvLightbox.js";
30
+ import { default as ne } from "./vue/KvLineGraph.js";
31
+ import { KV_LOAN_ACTIVITIES_FRAGMENT as Ke, default as ve } from "./vue/KvLoanActivities.js";
32
+ import { KV_LOAN_BOOKMARK_FRAGMENT as ie, default as Ce } from "./vue/KvLoanBookmark.js";
33
+ import { default as Le } from "./vue/KvLoanCallouts.js";
34
+ import { default as Ne } from "./vue/KvLoanProgressGroup.js";
35
+ import { KV_LOAN_TAG_FRAGMENT as ce, default as Re } from "./vue/KvLoanTag.js";
36
+ import { default as Me } from "./vue/KvLoanTeamPick.js";
37
+ import { KV_LOAN_USE_FRAGMENT as Se, default as Ge } from "./vue/KvLoanUse.js";
38
38
  import { default as Pe } from "./vue/KvLoadingPlaceholder.js";
39
- import { default as Te } from "./vue/KvLoadingSpinner.js";
39
+ import { default as Fe } from "./vue/KvLoadingSpinner.js";
40
40
  import { default as Be } from "./vue/KvMap.js";
41
41
  import { default as ke } from "./vue/KvMaterialIcon.js";
42
42
  import { default as ye } from "./vue/KvPageContainer.js";
43
- import { default as Ee } from "./vue/KvPagination.js";
44
- import { default as we } from "./vue/KvPieChart.js";
45
- import { default as _e } from "./vue/KvPopper.js";
46
- import { default as Ue } from "./vue/KvProgressBar.js";
47
- import { default as Ve } from "./vue/KvRadio.js";
48
- import { default as Fe } from "./vue/KvSelect.js";
49
- import { default as je } from "./vue/KvSideSheet.js";
50
- import { default as Qe } from "./vue/KvSwitch.js";
51
- import { default as qe } from "./vue/KvTab.js";
52
- import { default as Xe } from "./vue/KvTabPanel.js";
53
- import { default as Ze } from "./vue/KvTabs.js";
54
- import { default as eo } from "./vue/KvTextInput.js";
55
- import { default as ro } from "./vue/KvTextLink.js";
56
- import { default as ao } from "./vue/KvThemeProvider.js";
57
- import { default as lo } from "./vue/KvToast.js";
58
- import { default as mo } from "./vue/KvTooltip.js";
59
- import { default as uo } from "./vue/KvTreeMapChart.js";
60
- import { default as xo } from "./vue/KvUserAvatar.js";
61
- import { default as Ko } from "./vue/KvVerticalCarousel.js";
62
- import { default as Co } from "./vue/KvVotingCard.js";
63
- import { default as Ao } from "./vue/KvVotingCardV2.js";
64
- import { default as go } from "./vue/KvWideLoanCard.js";
65
- import { default as ho, Mash as To } from "./utils/Alea.js";
66
- import { useAttrs as Bo } from "./utils/attrs.js";
67
- import { carouselUtil as ko } from "./utils/carousels.js";
68
- import { collapse as yo, expand as Mo } from "./utils/expander.js";
69
- import { isLegacyPlaceholderAvatar as No, randomizedUserAvatarClass as wo } from "./utils/imageUtils.js";
70
- import { loanCardComputedProperties as _o, loanCardMethods as Go } from "./utils/loanCard.js";
71
- import { BALANCE_CAMPAIGN as Ro, BASE_CAMPAIGN as Vo, ERL_COOKIE_NAME as Do, NO_BALANCE_CAMPAIGN as Fo, TOP_UP_CAMPAIGN as Ho, getDropdownPriceArray as jo, getLendCtaSelectedOption as zo, isBetween25And50 as Qo, isLessThan25 as Wo } from "./utils/loanUtils.js";
72
- import { animationCoordinator as Jo, generateMapMarkers as Xo, getCoordinatesBetween as Yo, getCountryColor as Zo, getLoansIntervals as $o } from "./utils/mapUtils.js";
73
- import { lockPrintSingleEl as or, unlockPrintSingleEl as rr } from "./utils/printing.js";
74
- import { lockScroll as ar, lockScrollSmallOnly as fr, unlockScroll as lr, unlockScrollSmallOnly as sr } from "./utils/scrollLock.js";
75
- import { buildTailwindClassName as mr, headerNumberCase as pr, kebabCase as ur, removeObjectProperty as nr } from "./utils/themeUtils.js";
76
- import { throttle as vr } from "./utils/throttle.js";
77
- import { isTargetElement as ir, offBodyTouchstart as Cr, onBodyTouchstart as cr } from "./utils/touchEvents.js";
78
- import { getTreemap as Lr } from "./utils/treemap.js";
79
- import { KvBlueskyIcon as Pr } from "./assets/icons/bluesky.js";
43
+ import { default as we } from "./vue/KvPagination.js";
44
+ import { default as He } from "./vue/KvPieChart.js";
45
+ import { default as ze } from "./vue/KvPopper.js";
46
+ import { default as qe } from "./vue/KvProgressBar.js";
47
+ import { default as Xe } from "./vue/KvRadio.js";
48
+ import { default as Ze } from "./vue/KvSelect.js";
49
+ import { default as eo } from "./vue/KvSideSheet.js";
50
+ import { default as ro } from "./vue/KvSwitch.js";
51
+ import { default as ao } from "./vue/KvTab.js";
52
+ import { default as lo } from "./vue/KvTabPanel.js";
53
+ import { default as mo } from "./vue/KvTabs.js";
54
+ import { default as uo } from "./vue/KvTextInput.js";
55
+ import { default as xo } from "./vue/KvTextLink.js";
56
+ import { default as vo } from "./vue/KvThemeProvider.js";
57
+ import { default as io } from "./vue/KvToast.js";
58
+ import { default as _o } from "./vue/KvTooltip.js";
59
+ import { default as To } from "./vue/KvTreeMapChart.js";
60
+ import { default as Eo } from "./vue/KvUserAvatar.js";
61
+ import { default as Ro } from "./vue/KvVerticalCarousel.js";
62
+ import { default as Mo } from "./vue/KvVotingCard.js";
63
+ import { default as So } from "./vue/KvVotingCardV2.js";
64
+ import { KV_WIDE_LOAN_CARD_FRAGMENT as go, KV_WIDE_LOAN_CARD_USER_FRAGMENT as Po, default as ho } from "./vue/KvWideLoanCard.js";
65
+ import { default as Vo, Mash as Bo } from "./utils/Alea.js";
66
+ import { useAttrs as ko } from "./utils/attrs.js";
67
+ import { carouselUtil as yo } from "./utils/carousels.js";
68
+ import { collapse as wo, expand as Wo } from "./utils/expander.js";
69
+ import { isLegacyPlaceholderAvatar as jo, randomizedUserAvatarClass as zo } from "./utils/imageUtils.js";
70
+ import { LOAN_CALLOUTS_FRAGMENT as qo, LOAN_GEOCODE_FRAGMENT as Jo, LOAN_PROGRESS_FRAGMENT as Xo, loanCardComputedProperties as Yo, loanCardMethods as Zo } from "./utils/loanCard.js";
71
+ import { BALANCE_CAMPAIGN as er, BASE_CAMPAIGN as or, ERL_COOKIE_NAME as rr, NO_BALANCE_CAMPAIGN as tr, TOP_UP_CAMPAIGN as ar, getDropdownPriceArray as fr, getLendCtaSelectedOption as lr, isBetween25And50 as sr, isLessThan25 as dr } from "./utils/loanUtils.js";
72
+ import { animationCoordinator as pr, generateMapMarkers as ur, getCoordinatesBetween as nr, getCountryColor as xr, getLoansIntervals as Kr } from "./utils/mapUtils.js";
73
+ import { lockPrintSingleEl as Ar, unlockPrintSingleEl as ir } from "./utils/printing.js";
74
+ import { lockScroll as _r, lockScrollSmallOnly as Lr, unlockScroll as Tr, unlockScrollSmallOnly as Nr } from "./utils/scrollLock.js";
75
+ import { buildTailwindClassName as cr, headerNumberCase as Rr, kebabCase as Or, removeObjectProperty as Mr } from "./utils/themeUtils.js";
76
+ import { throttle as Sr } from "./utils/throttle.js";
77
+ import { isTargetElement as gr, offBodyTouchstart as Pr, onBodyTouchstart as hr } from "./utils/touchEvents.js";
78
+ import { getTreemap as Vr } from "./utils/treemap.js";
79
+ import { KvBlueskyIcon as Dr } from "./assets/icons/bluesky.js";
80
80
  export {
81
- ho as Alea,
82
- Ro as BALANCE_CAMPAIGN,
83
- Vo as BASE_CAMPAIGN,
84
- Do as ERL_COOKIE_NAME,
81
+ Vo as Alea,
82
+ er as BALANCE_CAMPAIGN,
83
+ or as BASE_CAMPAIGN,
84
+ rr as ERL_COOKIE_NAME,
85
+ L as KV_CLASSIC_LOAN_CARD_FRAGMENT,
86
+ T as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
87
+ ee as KV_INTRODUCTION_LOAN_CARD_FRAGMENT,
88
+ oe as KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT,
89
+ le as KV_LEND_CTA_FRAGMENT,
90
+ se as KV_LEND_CTA_USER_FRAGMENT,
91
+ Ke as KV_LOAN_ACTIVITIES_FRAGMENT,
92
+ ie as KV_LOAN_BOOKMARK_FRAGMENT,
93
+ ce as KV_LOAN_TAG_FRAGMENT,
94
+ Se as KV_LOAN_USE_FRAGMENT,
95
+ go as KV_WIDE_LOAN_CARD_FRAGMENT,
96
+ Po as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
85
97
  r as KvAccordionItem,
86
98
  a as KvActivityRow,
87
- Pr as KvBlueskyIcon,
99
+ Dr as KvBlueskyIcon,
88
100
  l as KvBorrowerImage,
89
101
  d as KvButton,
90
102
  p as KvCarousel,
91
103
  n as KvCartModal,
92
- v as KvCartPill,
93
- i as KvCheckbox,
94
- c as KvChip,
95
- L as KvClassicLoanCard,
96
- P as KvCommentsAdd,
97
- T as KvCommentsContainer,
98
- B as KvCommentsHeartButton,
99
- k as KvCommentsList,
100
- y as KvCommentsListItem,
101
- E as KvCommentsReplyButton,
102
- w as KvContentfulImg,
103
- _ as KvCountdownTimer,
104
- U as KvExpandable,
105
- V as KvExpandableQuestion,
106
- F as KvFlag,
107
- j as KvGrid,
108
- Q as KvImpactDashboardHeader,
109
- q as KvInlineActivityCard,
110
- X as KvInlineActivityFeed,
111
- Z as KvIntroductionLoanCard,
112
- ee as KvLendAmountButton,
113
- re as KvLendCta,
114
- ae as KvLightbox,
115
- le as KvLineGraph,
104
+ K as KvCartPill,
105
+ A as KvCheckbox,
106
+ C as KvChip,
107
+ N as KvClassicLoanCard,
108
+ c as KvCommentsAdd,
109
+ O as KvCommentsContainer,
110
+ I as KvCommentsHeartButton,
111
+ G as KvCommentsList,
112
+ P as KvCommentsListItem,
113
+ F as KvCommentsReplyButton,
114
+ B as KvContentfulImg,
115
+ k as KvCountdownTimer,
116
+ y as KvExpandable,
117
+ w as KvExpandableQuestion,
118
+ H as KvFlag,
119
+ z as KvGrid,
120
+ q as KvImpactDashboardHeader,
121
+ X as KvInlineActivityCard,
122
+ Z as KvInlineActivityFeed,
123
+ re as KvIntroductionLoanCard,
124
+ ae as KvLendAmountButton,
125
+ de as KvLendCta,
126
+ pe as KvLightbox,
127
+ ne as KvLineGraph,
116
128
  Pe as KvLoadingPlaceholder,
117
- Te as KvLoadingSpinner,
118
- de as KvLoanActivities,
119
- pe as KvLoanBookmark,
120
- ne as KvLoanCallouts,
121
- ve as KvLoanProgressGroup,
122
- ie as KvLoanTag,
123
- ce as KvLoanTeamPick,
124
- Le as KvLoanUse,
129
+ Fe as KvLoadingSpinner,
130
+ ve as KvLoanActivities,
131
+ Ce as KvLoanBookmark,
132
+ Le as KvLoanCallouts,
133
+ Ne as KvLoanProgressGroup,
134
+ Re as KvLoanTag,
135
+ Me as KvLoanTeamPick,
136
+ Ge as KvLoanUse,
125
137
  Be as KvMap,
126
138
  ke as KvMaterialIcon,
127
139
  ye as KvPageContainer,
128
- Ee as KvPagination,
129
- we as KvPieChart,
130
- _e as KvPopper,
131
- Ue as KvProgressBar,
132
- Ve as KvRadio,
133
- Fe as KvSelect,
134
- je as KvSideSheet,
135
- Qe as KvSwitch,
136
- qe as KvTab,
137
- Xe as KvTabPanel,
138
- Ze as KvTabs,
139
- eo as KvTextInput,
140
- ro as KvTextLink,
141
- ao as KvThemeProvider,
142
- lo as KvToast,
143
- mo as KvTooltip,
144
- uo as KvTreeMapChart,
145
- xo as KvUserAvatar,
146
- Ko as KvVerticalCarousel,
147
- Co as KvVotingCard,
148
- Ao as KvVotingCardV2,
149
- go as KvWideLoanCard,
150
- To as Mash,
151
- Fo as NO_BALANCE_CAMPAIGN,
152
- Ho as TOP_UP_CAMPAIGN,
153
- Jo as animationCoordinator,
154
- mr as buildTailwindClassName,
155
- ko as carouselUtil,
156
- yo as collapse,
157
- Mo as expand,
158
- Xo as generateMapMarkers,
159
- Yo as getCoordinatesBetween,
160
- Zo as getCountryColor,
161
- jo as getDropdownPriceArray,
162
- zo as getLendCtaSelectedOption,
163
- $o as getLoansIntervals,
164
- Lr as getTreemap,
165
- pr as headerNumberCase,
166
- Qo as isBetween25And50,
167
- No as isLegacyPlaceholderAvatar,
168
- Wo as isLessThan25,
169
- ir as isTargetElement,
170
- ur as kebabCase,
171
- _o as loanCardComputedProperties,
172
- Go as loanCardMethods,
173
- or as lockPrintSingleEl,
174
- ar as lockScroll,
175
- fr as lockScrollSmallOnly,
176
- Cr as offBodyTouchstart,
177
- cr as onBodyTouchstart,
178
- wo as randomizedUserAvatarClass,
179
- nr as removeObjectProperty,
180
- vr as throttle,
181
- rr as unlockPrintSingleEl,
182
- lr as unlockScroll,
183
- sr as unlockScrollSmallOnly,
184
- Bo as useAttrs
140
+ we as KvPagination,
141
+ He as KvPieChart,
142
+ ze as KvPopper,
143
+ qe as KvProgressBar,
144
+ Xe as KvRadio,
145
+ Ze as KvSelect,
146
+ eo as KvSideSheet,
147
+ ro as KvSwitch,
148
+ ao as KvTab,
149
+ lo as KvTabPanel,
150
+ mo as KvTabs,
151
+ uo as KvTextInput,
152
+ xo as KvTextLink,
153
+ vo as KvThemeProvider,
154
+ io as KvToast,
155
+ _o as KvTooltip,
156
+ To as KvTreeMapChart,
157
+ Eo as KvUserAvatar,
158
+ Ro as KvVerticalCarousel,
159
+ Mo as KvVotingCard,
160
+ So as KvVotingCardV2,
161
+ ho as KvWideLoanCard,
162
+ qo as LOAN_CALLOUTS_FRAGMENT,
163
+ Jo as LOAN_GEOCODE_FRAGMENT,
164
+ Xo as LOAN_PROGRESS_FRAGMENT,
165
+ Bo as Mash,
166
+ tr as NO_BALANCE_CAMPAIGN,
167
+ ar as TOP_UP_CAMPAIGN,
168
+ pr as animationCoordinator,
169
+ cr as buildTailwindClassName,
170
+ yo as carouselUtil,
171
+ wo as collapse,
172
+ Wo as expand,
173
+ ur as generateMapMarkers,
174
+ nr as getCoordinatesBetween,
175
+ xr as getCountryColor,
176
+ fr as getDropdownPriceArray,
177
+ lr as getLendCtaSelectedOption,
178
+ Kr as getLoansIntervals,
179
+ Vr as getTreemap,
180
+ Rr as headerNumberCase,
181
+ sr as isBetween25And50,
182
+ jo as isLegacyPlaceholderAvatar,
183
+ dr as isLessThan25,
184
+ gr as isTargetElement,
185
+ Or as kebabCase,
186
+ Yo as loanCardComputedProperties,
187
+ Zo as loanCardMethods,
188
+ Ar as lockPrintSingleEl,
189
+ _r as lockScroll,
190
+ Lr as lockScrollSmallOnly,
191
+ Pr as offBodyTouchstart,
192
+ hr as onBodyTouchstart,
193
+ zo as randomizedUserAvatarClass,
194
+ Mr as removeObjectProperty,
195
+ Sr as throttle,
196
+ ir as unlockPrintSingleEl,
197
+ Tr as unlockScroll,
198
+ Nr as unlockScrollSmallOnly,
199
+ ko as useAttrs
185
200
  };
@@ -1,124 +1,165 @@
1
- import { toRefs as Z, computed as n } from "vue";
2
- import { mdiMapMarker as he } from "@mdi/js";
3
- const me = "N/A", V = "ECO-FRIENDLY", W = "SUSTAINABLE AG", X = "SINGLE PARENT", Ce = "REFUGEES/DISPLACED", L = (i, p) => (i == null ? void 0 : i.find((d) => d.name.replace("#", "").toUpperCase() === p.toUpperCase())) ?? {};
4
- function Ee(i, p = !1) {
1
+ import R from "graphql-tag";
2
+ import ee from "numeral";
3
+ import { toRefs as ne, computed as n } from "vue";
4
+ import { mdiMapMarker as Le } from "@mdi/js";
5
+ const ye = "N/A", te = "ECO-FRIENDLY", ae = "SUSTAINABLE AG", oe = "SINGLE PARENT", Ee = "REFUGEES/DISPLACED", P = (c, p) => (c == null ? void 0 : c.find((v) => v.name.replace("#", "").toUpperCase() === p.toUpperCase())) ?? {}, Pe = R`
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
+ `, Re = R`
23
+ fragment LoanGeocode on LoanBasic {
24
+ id
25
+ geocode {
26
+ city
27
+ state
28
+ country {
29
+ name
30
+ isoCode
31
+ }
32
+ }
33
+ }
34
+ `, Me = R`
35
+ fragment LoanProgress on LoanBasic {
36
+ id
37
+ loanAmount
38
+ loanFundraisingInfo {
39
+ id
40
+ fundedAmount
41
+ reservedAmount
42
+ }
43
+ }
44
+ `;
45
+ function Fe(c, p = !1) {
5
46
  const {
6
- externalLinks: d,
7
- customLoanDetails: C,
8
- loanId: g,
47
+ externalLinks: v,
48
+ customLoanDetails: L,
49
+ loanId: h,
9
50
  loan: t,
10
- categoryPageName: c,
11
- customCallouts: U
12
- } = Z(i), ee = n(() => d.value ? "a" : "router-link"), te = n(() => C.value ? "" : `/lend/${g.value}`), A = n(() => !g.value || !t.value), ae = n(() => {
51
+ categoryPageName: d,
52
+ customCallouts: y
53
+ } = ne(c), se = n(() => v.value ? "a" : "router-link"), le = n(() => L.value ? "" : `/lend/${h.value}`), M = n(() => !h.value || !t.value), re = n(() => {
13
54
  var e;
14
55
  return ((e = t.value) == null ? void 0 : e.name) || "";
15
- }), v = n(() => {
16
- var e, a, r;
17
- return ((r = (a = (e = t.value) == null ? void 0 : e.geocode) == null ? void 0 : a.country) == null ? void 0 : r.name) || "";
18
- }), oe = n(() => {
19
- var e, a, r;
20
- return ((r = (a = (e = t.value) == null ? void 0 : e.geocode) == null ? void 0 : a.country) == null ? void 0 : r.isoCode) || "";
21
- }), y = n(() => {
56
+ }), f = n(() => {
57
+ var e, a, s;
58
+ return ((s = (a = (e = t.value) == null ? void 0 : e.geocode) == null ? void 0 : a.country) == null ? void 0 : s.name) || "";
59
+ }), ue = n(() => {
60
+ var e, a, s;
61
+ return ((s = (a = (e = t.value) == null ? void 0 : e.geocode) == null ? void 0 : a.country) == null ? void 0 : s.isoCode) || "";
62
+ }), E = n(() => {
22
63
  var e, a;
23
64
  return ((a = (e = t.value) == null ? void 0 : e.geocode) == null ? void 0 : a.city) || "";
24
- }), N = n(() => {
65
+ }), F = n(() => {
25
66
  var e, a;
26
67
  return ((a = (e = t.value) == null ? void 0 : e.geocode) == null ? void 0 : a.state) || "";
27
- }), P = n(() => {
68
+ }), _ = n(() => {
28
69
  var e;
29
70
  return ((e = t.value) == null ? void 0 : e.distributionModel) || "";
30
- }), ne = n(() => {
71
+ }), ie = n(() => {
31
72
  var e, a;
32
73
  return ((a = (e = t.value) == null ? void 0 : e.image) == null ? void 0 : a.hash) ?? "";
33
- }), I = n(() => {
34
- var e, a;
35
- return typeof ((e = t.value) == null ? void 0 : e.unreservedAmount) < "u" && typeof ((a = t.value) == null ? void 0 : a.fundraisingPercent) < "u";
36
- }), se = n(() => !A.value && I.value), le = n(() => {
37
- var e;
38
- return ((e = t.value) == null ? void 0 : e.fundraisingPercent) ?? 0;
39
- }), re = n(() => {
40
- var a;
41
- const e = ((a = t.value) == null ? void 0 : a.unreservedAmount) ?? "0";
42
- return Number(e);
43
- }), ue = n(() => {
44
- if (P.value === "direct") {
45
- const e = p && v.value.toLowerCase() === "united states" ? "" : `, ${v.value}`;
46
- return `${y.value}, ${N.value}${e}`;
74
+ }), U = n(() => {
75
+ var e, a, s, u, m;
76
+ return typeof ((e = t.value) == null ? void 0 : e.loanAmount) < "u" && typeof ((s = (a = t.value) == null ? void 0 : a.loanFundraisingInfo) == null ? void 0 : s.fundedAmount) < "u" && typeof ((m = (u = t.value) == null ? void 0 : u.loanFundraisingInfo) == null ? void 0 : m.reservedAmount) < "u";
77
+ }), ce = n(() => !M.value && U.value), de = n(() => {
78
+ if (_.value === "direct") {
79
+ const e = p && f.value.toLowerCase() === "united states" ? "" : `, ${f.value}`;
80
+ return `${E.value}, ${F.value}${e}`;
47
81
  }
48
- return v.value === "Puerto Rico" ? `${y.value}, PR` : v.value;
49
- }), ie = n(() => {
82
+ return f.value === "Puerto Rico" ? `${E.value}, PR` : f.value;
83
+ }), pe = n(() => {
50
84
  var e;
51
85
  return ((e = t.value) == null ? void 0 : e.use) ?? "";
52
- }), ce = n(() => {
86
+ }), ve = n(() => {
53
87
  var e;
54
88
  return ((e = t.value) == null ? void 0 : e.status) ?? "";
55
- }), pe = n(() => {
89
+ }), C = n(() => {
56
90
  var e;
57
91
  return ((e = t.value) == null ? void 0 : e.loanAmount) ?? "0";
58
- }), de = n(() => {
92
+ }), N = n(() => {
93
+ var e, a, s, u;
94
+ return ee(((a = (e = t.value) == null ? void 0 : e.loanFundraisingInfo) == null ? void 0 : a.reservedAmount) ?? "0").add(((u = (s = t.value) == null ? void 0 : s.loanFundraisingInfo) == null ? void 0 : u.fundedAmount) ?? "0");
95
+ }), fe = n(() => N.value.clone().divide(C.value).value()), S = n(() => U.value && C.value - N.value.value() > 0), me = n(() => S.value ? ee(C.value).subtract(N.value.value()).format("0.00") : "0"), ge = n(() => {
59
96
  var e;
60
97
  return ((e = t.value) == null ? void 0 : e.borrowerCount) ?? 0;
61
- }), ve = n(() => {
62
- var S, T, _, k, F, Y, G, $, w, K, x, B, O, H, j, q, z, J, Q;
63
- const e = [], a = ((T = (S = t.value) == null ? void 0 : S.activity) == null ? void 0 : T.name) ?? "", r = ((k = (_ = t.value) == null ? void 0 : _.activity) == null ? void 0 : k.id) ?? null, h = ((Y = (F = t.value) == null ? void 0 : F.sector) == null ? void 0 : Y.name) ?? "", M = (($ = (G = t.value) == null ? void 0 : G.sector) == null ? void 0 : $.id) ?? null, u = ((K = (w = t.value) == null ? void 0 : w.tags) == null ? void 0 : K.filter((o) => o.charAt(0) === "#").map((o) => o.substring(1))) ?? [], m = ((x = t.value) == null ? void 0 : x.themes) ?? [], E = {
64
- ecoFriendly: !!u.filter((o) => o.toUpperCase() === V || o.toUpperCase() === W).length,
65
- refugeesIdps: !!m.filter((o) => o.toUpperCase() === Ce).length,
66
- singleParents: !!u.filter((o) => o.toUpperCase() === X).length
67
- }, D = (O = (B = t.value) == null ? void 0 : B.partnerName) == null ? void 0 : O.toUpperCase().includes(me), R = ((H = t.value) == null ? void 0 : H.tagsData) ?? [], fe = ((j = t.value) == null ? void 0 : j.themesData) ?? [];
68
- if (D && u.length) {
69
- const o = Math.floor(Math.random() * u.length), s = u[o], l = L(R, s), f = (l == null ? void 0 : l.id) ?? null;
70
- e.push({ label: s, type: "tag", id: f });
98
+ }), he = n(() => {
99
+ var G, O, k, Y, B, $, w, K, x, q, H, j, z, J, Q, V, W, X, Z;
100
+ const e = [], a = ((O = (G = t.value) == null ? void 0 : G.activity) == null ? void 0 : O.name) ?? "", s = ((Y = (k = t.value) == null ? void 0 : k.activity) == null ? void 0 : Y.id) ?? null, u = (($ = (B = t.value) == null ? void 0 : B.sector) == null ? void 0 : $.name) ?? "", m = ((K = (w = t.value) == null ? void 0 : w.sector) == null ? void 0 : K.id) ?? null, i = ((q = (x = t.value) == null ? void 0 : x.tags) == null ? void 0 : q.filter((o) => o.charAt(0) === "#").map((o) => o.substring(1))) ?? [], A = ((H = t.value) == null ? void 0 : H.themes) ?? [], b = {
101
+ ecoFriendly: !!i.filter((o) => o.toUpperCase() === te || o.toUpperCase() === ae).length,
102
+ refugeesIdps: !!A.filter((o) => o.toUpperCase() === Ee).length,
103
+ singleParents: !!i.filter((o) => o.toUpperCase() === oe).length
104
+ }, D = (z = (j = t.value) == null ? void 0 : j.partnerName) == null ? void 0 : z.toUpperCase().includes(ye), T = ((J = t.value) == null ? void 0 : J.tagsData) ?? [], Ce = ((Q = t.value) == null ? void 0 : Q.themesData) ?? [];
105
+ if (D && i.length) {
106
+ const o = Math.floor(Math.random() * i.length), l = i[o], r = P(T, l), g = (r == null ? void 0 : r.id) ?? null;
107
+ e.push({ label: l, type: "tag", id: g });
71
108
  }
72
- if (c.value || (E.ecoFriendly && !e.find((o) => o.label.toUpperCase() === V || o.label.toUpperCase() === W) ? e.push({ label: "Eco-friendly", type: "tag", id: 9 }) : E.refugeesIdps ? e.push({ label: "Refugees and IDPs", type: "attribute", id: 28 }) : E.singleParents && !e.find((o) => o.label.toUpperCase() === X) && e.push({ label: "Single Parent", type: "tag", id: 17 })), a && r && ((q = c.value) == null ? void 0 : q.toUpperCase()) !== a.toUpperCase() && e.push({ id: r, label: a, type: "activity" }), h && M && a.toUpperCase() !== h.toUpperCase() && h.toUpperCase() !== ((z = c.value) == null ? void 0 : z.toUpperCase()) && e.length < 2 && e.push({ id: M, label: h, type: "sector" }), u.length && e.length < 2) {
73
- const o = Math.floor(Math.random() * u.length), s = u[o], l = L(R, s), f = (l == null ? void 0 : l.id) ?? null;
74
- e.filter((b) => b.label.toUpperCase() === s.toUpperCase()).length || e.push({ label: s, type: "tag", id: f });
109
+ if (d.value || (b.ecoFriendly && !e.find((o) => o.label.toUpperCase() === te || o.label.toUpperCase() === ae) ? e.push({ label: "Eco-friendly", type: "tag", id: 9 }) : b.refugeesIdps ? e.push({ label: "Refugees and IDPs", type: "attribute", id: 28 }) : b.singleParents && !e.find((o) => o.label.toUpperCase() === oe) && e.push({ label: "Single Parent", type: "tag", id: 17 })), a && s && ((V = d.value) == null ? void 0 : V.toUpperCase()) !== a.toUpperCase() && e.push({ id: s, label: a, type: "activity" }), u && m && a.toUpperCase() !== u.toUpperCase() && u.toUpperCase() !== ((W = d.value) == null ? void 0 : W.toUpperCase()) && e.length < 2 && e.push({ id: m, label: u, type: "sector" }), i.length && e.length < 2) {
110
+ const o = Math.floor(Math.random() * i.length), l = i[o], r = P(T, l), g = (r == null ? void 0 : r.id) ?? null;
111
+ e.filter((I) => I.label.toUpperCase() === l.toUpperCase()).length || e.push({ label: l, type: "tag", id: g });
75
112
  }
76
- if (m.length && e.length < 2) {
77
- const o = Math.floor(Math.random() * m.length), s = m[o], l = L(fe, s), f = (l == null ? void 0 : l.id) ?? null;
78
- !e.filter((b) => b.label.toUpperCase() === s.toUpperCase()).length && s.toUpperCase() !== ((J = c.value) == null ? void 0 : J.toUpperCase()) && e.push({ label: s, type: "attribute", id: f });
113
+ if (A.length && e.length < 2) {
114
+ const o = Math.floor(Math.random() * A.length), l = A[o], r = P(Ce, l), g = (r == null ? void 0 : r.id) ?? null;
115
+ !e.filter((I) => I.label.toUpperCase() === l.toUpperCase()).length && l.toUpperCase() !== ((X = d.value) == null ? void 0 : X.toUpperCase()) && e.push({ label: l, type: "attribute", id: g });
79
116
  }
80
117
  if (D && e.length > 1) return [e.shift()];
81
- const ge = ((Q = U.value) == null ? void 0 : Q.map((o) => ({ label: o }))) ?? [];
82
- return e.push(...ge), e;
118
+ const Ae = ((Z = y.value) == null ? void 0 : Z.map((o) => ({ label: o }))) ?? [];
119
+ return e.push(...Ae), e;
83
120
  });
84
121
  return {
85
- tag: ee,
86
- readMorePath: te,
87
- isLoading: A,
88
- borrowerName: ae,
89
- countryName: v,
90
- countryCode: oe,
91
- city: y,
92
- state: N,
93
- distributionModel: P,
94
- imageHash: ne,
95
- hasProgressData: I,
96
- allDataLoaded: se,
97
- fundraisingPercent: le,
98
- unreservedAmount: re,
99
- formattedLocation: ue,
100
- loanUse: ie,
101
- loanStatus: ce,
102
- loanAmount: pe,
103
- loanBorrowerCount: de,
104
- mdiMapMarker: he,
105
- loanCallouts: ve
122
+ tag: se,
123
+ readMorePath: le,
124
+ isLoading: M,
125
+ borrowerName: re,
126
+ countryName: f,
127
+ countryCode: ue,
128
+ city: E,
129
+ state: F,
130
+ distributionModel: _,
131
+ imageHash: ie,
132
+ hasProgressData: U,
133
+ allDataLoaded: ce,
134
+ fundraisingPercent: fe,
135
+ unreservedAmount: me,
136
+ sharesAvailable: S,
137
+ formattedLocation: de,
138
+ loanUse: pe,
139
+ loanStatus: ve,
140
+ loanAmount: C,
141
+ loanBorrowerCount: ge,
142
+ mdiMapMarker: Le,
143
+ loanCallouts: he
106
144
  };
107
145
  }
108
- function be(i, p) {
146
+ function _e(c, p) {
109
147
  const {
110
- loanId: d,
111
- customLoanDetails: C,
112
- kvTrackFunction: g
113
- } = Z(i);
114
- function t(c, U) {
115
- g.value("Lending", "click-Read more", c, d.value), C.value && (U.preventDefault(), p("show-loan-details"));
148
+ loanId: v,
149
+ customLoanDetails: L,
150
+ kvTrackFunction: h
151
+ } = ne(c);
152
+ function t(d, y) {
153
+ h.value("Lending", "click-Read more", d, v.value), L.value && (y.preventDefault(), p("show-loan-details"));
116
154
  }
117
155
  return {
118
156
  clickReadMore: t
119
157
  };
120
158
  }
121
159
  export {
122
- Ee as loanCardComputedProperties,
123
- be as loanCardMethods
160
+ Pe as LOAN_CALLOUTS_FRAGMENT,
161
+ Re as LOAN_GEOCODE_FRAGMENT,
162
+ Me as LOAN_PROGRESS_FRAGMENT,
163
+ Fe as loanCardComputedProperties,
164
+ _e as loanCardMethods
124
165
  };
@@ -1 +1 @@
1
- .loan-card-use[data-v-d014fd7b]:hover,.loan-card-use[data-v-d014fd7b]: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-d014fd7b]{text-decoration-line:underline}.loan-card-progress[data-v-d014fd7b]:hover,.loan-card-progress[data-v-d014fd7b]:focus{text-decoration-line:none}
1
+ .loan-card-use[data-v-fcb027fa]:hover,.loan-card-use[data-v-fcb027fa]: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-fcb027fa]{text-decoration-line:underline}.loan-card-progress[data-v-fcb027fa]:hover,.loan-card-progress[data-v-fcb027fa]:focus{text-decoration-line:none}