@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 +178 -163
- package/dist/utils/loanCard.js +128 -87
- package/dist/vue/KvClassicLoanCard.css +1 -1
- package/dist/vue/KvClassicLoanCard.js +144 -100
- package/dist/vue/KvIntroductionLoanCard.css +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +135 -95
- package/dist/vue/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +98 -81
- package/dist/vue/KvLoanActivities.css +1 -1
- package/dist/vue/KvLoanActivities.js +49 -36
- package/dist/vue/KvLoanBookmark.js +24 -15
- package/dist/vue/KvLoanTag.js +51 -28
- package/dist/vue/KvLoanUse.js +24 -10
- package/dist/vue/KvWideLoanCard.css +1 -1
- package/dist/vue/KvWideLoanCard.js +134 -99
- package/package.json +6 -2
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
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
10
|
-
import {
|
|
11
|
-
import { default as
|
|
12
|
-
import { default as
|
|
13
|
-
import { default as
|
|
14
|
-
import { default as
|
|
15
|
-
import { default as
|
|
16
|
-
import { default as
|
|
17
|
-
import { default as
|
|
18
|
-
import { default as
|
|
19
|
-
import { default as
|
|
20
|
-
import { default as
|
|
21
|
-
import { default as
|
|
22
|
-
import { default as
|
|
23
|
-
import { default as
|
|
24
|
-
import { default as
|
|
25
|
-
import { default as
|
|
26
|
-
import { default as
|
|
27
|
-
import { default as
|
|
28
|
-
import { default as
|
|
29
|
-
import { default as
|
|
30
|
-
import { default as
|
|
31
|
-
import { default as
|
|
32
|
-
import { default as
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import { default as
|
|
36
|
-
import { default as
|
|
37
|
-
import { default as
|
|
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
|
|
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
|
|
44
|
-
import { default as
|
|
45
|
-
import { default as
|
|
46
|
-
import { default as
|
|
47
|
-
import { default as
|
|
48
|
-
import { default as
|
|
49
|
-
import { default as
|
|
50
|
-
import { default as
|
|
51
|
-
import { default as
|
|
52
|
-
import { default as
|
|
53
|
-
import { default as
|
|
54
|
-
import { default as
|
|
55
|
-
import { default as
|
|
56
|
-
import { default as
|
|
57
|
-
import { default as
|
|
58
|
-
import { default as
|
|
59
|
-
import { default as
|
|
60
|
-
import { default as
|
|
61
|
-
import { default as
|
|
62
|
-
import { default as
|
|
63
|
-
import { default as
|
|
64
|
-
import {
|
|
65
|
-
import { default as
|
|
66
|
-
import { useAttrs as
|
|
67
|
-
import { carouselUtil as
|
|
68
|
-
import { collapse as
|
|
69
|
-
import { isLegacyPlaceholderAvatar as
|
|
70
|
-
import { loanCardComputedProperties as
|
|
71
|
-
import { BALANCE_CAMPAIGN as
|
|
72
|
-
import { animationCoordinator as
|
|
73
|
-
import { lockPrintSingleEl as
|
|
74
|
-
import { lockScroll as
|
|
75
|
-
import { buildTailwindClassName as
|
|
76
|
-
import { throttle as
|
|
77
|
-
import { isTargetElement as
|
|
78
|
-
import { getTreemap as
|
|
79
|
-
import { KvBlueskyIcon as
|
|
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
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
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
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
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
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
};
|
package/dist/utils/loanCard.js
CHANGED
|
@@ -1,124 +1,165 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
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:
|
|
7
|
-
customLoanDetails:
|
|
8
|
-
loanId:
|
|
47
|
+
externalLinks: v,
|
|
48
|
+
customLoanDetails: L,
|
|
49
|
+
loanId: h,
|
|
9
50
|
loan: t,
|
|
10
|
-
categoryPageName:
|
|
11
|
-
customCallouts:
|
|
12
|
-
} =
|
|
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
|
-
}),
|
|
16
|
-
var e, a,
|
|
17
|
-
return ((
|
|
18
|
-
}),
|
|
19
|
-
var e, a,
|
|
20
|
-
return ((
|
|
21
|
-
}),
|
|
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
|
-
}),
|
|
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
|
-
}),
|
|
68
|
+
}), _ = n(() => {
|
|
28
69
|
var e;
|
|
29
70
|
return ((e = t.value) == null ? void 0 : e.distributionModel) || "";
|
|
30
|
-
}),
|
|
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
|
-
}),
|
|
34
|
-
var e, a;
|
|
35
|
-
return typeof ((e = t.value) == null ? void 0 : e.
|
|
36
|
-
}),
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
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
|
|
49
|
-
}),
|
|
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
|
-
}),
|
|
86
|
+
}), ve = n(() => {
|
|
53
87
|
var e;
|
|
54
88
|
return ((e = t.value) == null ? void 0 : e.status) ?? "";
|
|
55
|
-
}),
|
|
89
|
+
}), C = n(() => {
|
|
56
90
|
var e;
|
|
57
91
|
return ((e = t.value) == null ? void 0 : e.loanAmount) ?? "0";
|
|
58
|
-
}),
|
|
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
|
-
}),
|
|
62
|
-
var
|
|
63
|
-
const e = [], a = ((
|
|
64
|
-
ecoFriendly: !!
|
|
65
|
-
refugeesIdps: !!
|
|
66
|
-
singleParents: !!
|
|
67
|
-
}, D = (
|
|
68
|
-
if (D &&
|
|
69
|
-
const o = Math.floor(Math.random() *
|
|
70
|
-
e.push({ label:
|
|
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 (
|
|
73
|
-
const o = Math.floor(Math.random() *
|
|
74
|
-
e.filter((
|
|
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 (
|
|
77
|
-
const o = Math.floor(Math.random() *
|
|
78
|
-
!e.filter((
|
|
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
|
|
82
|
-
return e.push(...
|
|
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:
|
|
86
|
-
readMorePath:
|
|
87
|
-
isLoading:
|
|
88
|
-
borrowerName:
|
|
89
|
-
countryName:
|
|
90
|
-
countryCode:
|
|
91
|
-
city:
|
|
92
|
-
state:
|
|
93
|
-
distributionModel:
|
|
94
|
-
imageHash:
|
|
95
|
-
hasProgressData:
|
|
96
|
-
allDataLoaded:
|
|
97
|
-
fundraisingPercent:
|
|
98
|
-
unreservedAmount:
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
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
|
|
146
|
+
function _e(c, p) {
|
|
109
147
|
const {
|
|
110
|
-
loanId:
|
|
111
|
-
customLoanDetails:
|
|
112
|
-
kvTrackFunction:
|
|
113
|
-
} =
|
|
114
|
-
function t(
|
|
115
|
-
|
|
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
|
-
|
|
123
|
-
|
|
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-
|
|
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}
|