@kiva/kv-components 6.59.4 → 6.61.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 +203 -199
- package/dist/vue/KvCompactLoanCard.css +1 -0
- package/dist/vue/KvCompactLoanCard.js +393 -0
- package/dist/vue/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +39 -39
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1,221 +1,225 @@
|
|
|
1
1
|
import { default as t } from "./vue/KvAccordionItem.js";
|
|
2
|
-
import { default as
|
|
2
|
+
import { default as r } from "./vue/KvActivityRow.js";
|
|
3
3
|
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/KvCardFrame.js";
|
|
6
6
|
import { default as x } from "./vue/KvCarousel.js";
|
|
7
7
|
import { default as n } from "./vue/KvCartModal.js";
|
|
8
|
-
import { default as
|
|
9
|
-
import { default as
|
|
8
|
+
import { default as A } from "./vue/KvCartPill.js";
|
|
9
|
+
import { default as i } from "./vue/KvCheckbox.js";
|
|
10
10
|
import { default as L } from "./vue/KvCheckoutReceipt.js";
|
|
11
11
|
import { default as T } from "./vue/KvChip.js";
|
|
12
12
|
import { KV_CLASSIC_LOAN_CARD_FRAGMENT as E, KV_CLASSIC_LOAN_CARD_USER_FRAGMET as R, default as M } from "./vue/KvClassicLoanCard.js";
|
|
13
|
-
import {
|
|
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 {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import { default as
|
|
34
|
-
import { default as
|
|
35
|
-
import {
|
|
36
|
-
import {
|
|
37
|
-
import {
|
|
38
|
-
import { default as
|
|
39
|
-
import {
|
|
40
|
-
import { default as
|
|
41
|
-
import {
|
|
42
|
-
import { default as
|
|
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 { default as
|
|
65
|
-
import { default as
|
|
66
|
-
import { default as
|
|
67
|
-
import { default as
|
|
68
|
-
import { default as
|
|
69
|
-
import { default as
|
|
70
|
-
import { default as
|
|
71
|
-
import {
|
|
72
|
-
import {
|
|
73
|
-
import { default as
|
|
74
|
-
import { default as
|
|
75
|
-
import { default as
|
|
76
|
-
import {
|
|
77
|
-
import {
|
|
78
|
-
import {
|
|
79
|
-
import {
|
|
80
|
-
import {
|
|
81
|
-
import {
|
|
82
|
-
import {
|
|
83
|
-
import {
|
|
84
|
-
import {
|
|
85
|
-
import {
|
|
86
|
-
import {
|
|
87
|
-
import {
|
|
88
|
-
import {
|
|
89
|
-
import {
|
|
13
|
+
import { KV_COMPACT_LOAN_CARD_FRAGMENT as S, KV_COMPACT_LOAN_CARD_USER_FRAGMENT as I, default as P } from "./vue/KvCompactLoanCard.js";
|
|
14
|
+
import { default as G } from "./vue/KvCommentsAdd.js";
|
|
15
|
+
import { default as F } from "./vue/KvCommentsContainer.js";
|
|
16
|
+
import { default as D } from "./vue/KvCommentsHeartButton.js";
|
|
17
|
+
import { default as B } from "./vue/KvCommentsList.js";
|
|
18
|
+
import { default as y } from "./vue/KvCommentsListItem.js";
|
|
19
|
+
import { default as w } from "./vue/KvCommentsReplyButton.js";
|
|
20
|
+
import { default as H } from "./vue/KvContentfulImg.js";
|
|
21
|
+
import { default as z } from "./vue/KvCountdownTimer.js";
|
|
22
|
+
import { default as q } from "./vue/KvDatePicker.js";
|
|
23
|
+
import { default as X } from "./vue/KvExpandable.js";
|
|
24
|
+
import { default as Z } from "./vue/KvExpandableQuestion.js";
|
|
25
|
+
import { default as ee } from "./vue/KvFlag.js";
|
|
26
|
+
import { default as te } from "./vue/KvGrid.js";
|
|
27
|
+
import { default as re } from "./vue/KvImpactDashboardHeader.js";
|
|
28
|
+
import { default as le } from "./vue/KvImpactVerticalSelector.js";
|
|
29
|
+
import { default as de } from "./vue/KvInlineActivityCard.js";
|
|
30
|
+
import { default as pe } from "./vue/KvInlineActivityFeed.js";
|
|
31
|
+
import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as xe, KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT as Ke, default as ne } from "./vue/KvIntroductionLoanCard.js";
|
|
32
|
+
import { default as Ae } from "./vue/KvLendAmountButton.js";
|
|
33
|
+
import { KV_LEND_CTA_FRAGMENT as ie, KV_LEND_CTA_USER_FRAGMENT as _e, default as Le } from "./vue/KvLendCta.js";
|
|
34
|
+
import { default as Te } from "./vue/KvLightbox.js";
|
|
35
|
+
import { default as Ee } from "./vue/KvLineGraph.js";
|
|
36
|
+
import { KV_LOAN_ACTIVITIES_FRAGMENT as Me, default as Oe } from "./vue/KvLoanActivities.js";
|
|
37
|
+
import { KV_LOAN_BOOKMARK_FRAGMENT as Ie, default as Pe } from "./vue/KvLoanBookmark.js";
|
|
38
|
+
import { default as Ge } from "./vue/KvLoanCallouts.js";
|
|
39
|
+
import { default as Fe } from "./vue/KvLoanProgressGroup.js";
|
|
40
|
+
import { KV_LOAN_TAG_FRAGMENT as De, default as ke } from "./vue/KvLoanTag.js";
|
|
41
|
+
import { default as Ue } from "./vue/KvLoanTeamPick.js";
|
|
42
|
+
import { KV_LOAN_USE_FRAGMENT as be, default as we } from "./vue/KvLoanUse.js";
|
|
43
|
+
import { default as He } from "./vue/KvLoadingPlaceholder.js";
|
|
44
|
+
import { default as ze } from "./vue/KvLoadingSpinner.js";
|
|
45
|
+
import { default as qe } from "./vue/KvMap.js";
|
|
46
|
+
import { default as Xe } from "./vue/KvMaterialIcon.js";
|
|
47
|
+
import { default as Ze } from "./vue/KvPageContainer.js";
|
|
48
|
+
import { default as eo } from "./vue/KvPagination.js";
|
|
49
|
+
import { default as to } from "./vue/KvPieChart.js";
|
|
50
|
+
import { default as ro } from "./vue/KvPill.js";
|
|
51
|
+
import { default as lo } from "./vue/KvPopper.js";
|
|
52
|
+
import { default as mo } from "./vue/KvProgressBar.js";
|
|
53
|
+
import { default as uo } from "./vue/KvPulsingDot.js";
|
|
54
|
+
import { default as Ko } from "./vue/KvRadio.js";
|
|
55
|
+
import { default as vo } from "./vue/KvSelect.js";
|
|
56
|
+
import { default as Co } from "./vue/KvSideSheet.js";
|
|
57
|
+
import { default as _o } from "./vue/KvSwitch.js";
|
|
58
|
+
import { default as No } from "./vue/KvTab.js";
|
|
59
|
+
import { default as co } from "./vue/KvTabPanel.js";
|
|
60
|
+
import { default as Ro } from "./vue/KvTabs.js";
|
|
61
|
+
import { default as Oo } from "./vue/KvTextInput.js";
|
|
62
|
+
import { default as Io } from "./vue/KvTextLink.js";
|
|
63
|
+
import { default as go } from "./vue/KvThemeProvider.js";
|
|
64
|
+
import { default as ho } from "./vue/KvToast.js";
|
|
65
|
+
import { default as Vo } from "./vue/KvTooltip.js";
|
|
66
|
+
import { default as ko } from "./vue/KvTreeMapChart.js";
|
|
67
|
+
import { default as Uo } from "./vue/KvUserAvatar.js";
|
|
68
|
+
import { default as bo } from "./vue/KvUtilityMenu.js";
|
|
69
|
+
import { default as Wo } from "./vue/KvVerticalCarousel.js";
|
|
70
|
+
import { default as jo } from "./vue/KvVotingCard.js";
|
|
71
|
+
import { default as Qo } from "./vue/KvVotingCardV2.js";
|
|
72
|
+
import { KV_WIDE_LOAN_CARD_FRAGMENT as Jo, KV_WIDE_LOAN_CARD_USER_FRAGMENT as Xo, default as Yo } from "./vue/KvWideLoanCard.js";
|
|
73
|
+
import { default as $o } from "./vue/KvAtbModal.js";
|
|
74
|
+
import { default as ot } from "./vue/KvSecondaryNav.js";
|
|
75
|
+
import { default as at } from "./vue/KvWwwHeader.js";
|
|
76
|
+
import { default as ft, Mash as lt } from "./utils/Alea.js";
|
|
77
|
+
import { useAttrs as dt } from "./utils/attrs.js";
|
|
78
|
+
import { carouselUtil as pt } from "./utils/carousels.js";
|
|
79
|
+
import { collapse as xt, expand as Kt } from "./utils/expander.js";
|
|
80
|
+
import { getKivaImageUrl as vt, isLegacyPlaceholderAvatar as At, randomizedUserAvatarClass as Ct } from "./utils/imageUtils.js";
|
|
81
|
+
import { LOAN_CALLOUTS_FRAGMENT as _t, LOAN_GEOCODE_FRAGMENT as Lt, LOAN_PROGRESS_FRAGMENT as Nt, loanCardComputedProperties as Tt, loanCardMethods as ct } from "./utils/loanCard.js";
|
|
82
|
+
import { BALANCE_CAMPAIGN as Rt, BASE_CAMPAIGN as Mt, ERL_COOKIE_NAME as Ot, NO_BALANCE_CAMPAIGN as St, TOP_UP_CAMPAIGN as It, getDropdownPriceArray as Pt, getLendCtaSelectedOption as gt, isBetween25And50 as Gt, isLessThan25 as ht } from "./utils/loanUtils.js";
|
|
83
|
+
import { animationCoordinator as Vt, generateMapMarkers as Dt, getCoordinatesBetween as kt, getCountryColor as Bt, getLoansIntervals as Ut } from "./utils/mapUtils.js";
|
|
84
|
+
import { lockPrintSingleEl as bt, unlockPrintSingleEl as wt } from "./utils/printing.js";
|
|
85
|
+
import { lockScroll as Ht, lockScrollSmallOnly as jt, unlockScroll as zt, unlockScrollSmallOnly as Qt } from "./utils/scrollLock.js";
|
|
86
|
+
import { buildTailwindClassName as Jt, headerNumberCase as Xt, kebabCase as Yt, removeObjectProperty as Zt } from "./utils/themeUtils.js";
|
|
87
|
+
import { throttle as ea } from "./utils/throttle.js";
|
|
88
|
+
import { isTargetElement as ta, offBodyTouchstart as aa, onBodyTouchstart as ra } from "./utils/touchEvents.js";
|
|
89
|
+
import { getTreemap as la } from "./utils/treemap.js";
|
|
90
|
+
import { KvBlueskyIcon as da } from "./assets/icons/bluesky.js";
|
|
90
91
|
export {
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
92
|
+
ft as Alea,
|
|
93
|
+
Rt as BALANCE_CAMPAIGN,
|
|
94
|
+
Mt as BASE_CAMPAIGN,
|
|
95
|
+
Ot as ERL_COOKIE_NAME,
|
|
95
96
|
E as KV_CLASSIC_LOAN_CARD_FRAGMENT,
|
|
96
97
|
R as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
98
|
+
S as KV_COMPACT_LOAN_CARD_FRAGMENT,
|
|
99
|
+
I as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
|
|
100
|
+
xe as KV_INTRODUCTION_LOAN_CARD_FRAGMENT,
|
|
101
|
+
Ke as KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT,
|
|
102
|
+
ie as KV_LEND_CTA_FRAGMENT,
|
|
103
|
+
_e as KV_LEND_CTA_USER_FRAGMENT,
|
|
104
|
+
Me as KV_LOAN_ACTIVITIES_FRAGMENT,
|
|
105
|
+
Ie as KV_LOAN_BOOKMARK_FRAGMENT,
|
|
106
|
+
De as KV_LOAN_TAG_FRAGMENT,
|
|
107
|
+
be as KV_LOAN_USE_FRAGMENT,
|
|
108
|
+
Jo as KV_WIDE_LOAN_CARD_FRAGMENT,
|
|
109
|
+
Xo as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
|
|
107
110
|
t as KvAccordionItem,
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
+
r as KvActivityRow,
|
|
112
|
+
$o as KvAtbModal,
|
|
113
|
+
da as KvBlueskyIcon,
|
|
111
114
|
l as KvBorrowerImage,
|
|
112
115
|
d as KvButton,
|
|
113
116
|
p as KvCardFrame,
|
|
114
117
|
x as KvCarousel,
|
|
115
118
|
n as KvCartModal,
|
|
116
|
-
|
|
117
|
-
|
|
119
|
+
A as KvCartPill,
|
|
120
|
+
i as KvCheckbox,
|
|
118
121
|
L as KvCheckoutReceipt,
|
|
119
122
|
T as KvChip,
|
|
120
123
|
M as KvClassicLoanCard,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
pe as
|
|
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
|
-
Qo as
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
wt as
|
|
219
|
-
|
|
220
|
-
|
|
124
|
+
G as KvCommentsAdd,
|
|
125
|
+
F as KvCommentsContainer,
|
|
126
|
+
D as KvCommentsHeartButton,
|
|
127
|
+
B as KvCommentsList,
|
|
128
|
+
y as KvCommentsListItem,
|
|
129
|
+
w as KvCommentsReplyButton,
|
|
130
|
+
P as KvCompactLoanCard,
|
|
131
|
+
H as KvContentfulImg,
|
|
132
|
+
z as KvCountdownTimer,
|
|
133
|
+
q as KvDatePicker,
|
|
134
|
+
X as KvExpandable,
|
|
135
|
+
Z as KvExpandableQuestion,
|
|
136
|
+
ee as KvFlag,
|
|
137
|
+
te as KvGrid,
|
|
138
|
+
re as KvImpactDashboardHeader,
|
|
139
|
+
le as KvImpactVerticalSelector,
|
|
140
|
+
de as KvInlineActivityCard,
|
|
141
|
+
pe as KvInlineActivityFeed,
|
|
142
|
+
ne as KvIntroductionLoanCard,
|
|
143
|
+
Ae as KvLendAmountButton,
|
|
144
|
+
Le as KvLendCta,
|
|
145
|
+
Te as KvLightbox,
|
|
146
|
+
Ee as KvLineGraph,
|
|
147
|
+
He as KvLoadingPlaceholder,
|
|
148
|
+
ze as KvLoadingSpinner,
|
|
149
|
+
Oe as KvLoanActivities,
|
|
150
|
+
Pe as KvLoanBookmark,
|
|
151
|
+
Ge as KvLoanCallouts,
|
|
152
|
+
Fe as KvLoanProgressGroup,
|
|
153
|
+
ke as KvLoanTag,
|
|
154
|
+
Ue as KvLoanTeamPick,
|
|
155
|
+
we as KvLoanUse,
|
|
156
|
+
qe as KvMap,
|
|
157
|
+
Xe as KvMaterialIcon,
|
|
158
|
+
Ze as KvPageContainer,
|
|
159
|
+
eo as KvPagination,
|
|
160
|
+
to as KvPieChart,
|
|
161
|
+
ro as KvPill,
|
|
162
|
+
lo as KvPopper,
|
|
163
|
+
mo as KvProgressBar,
|
|
164
|
+
uo as KvPulsingDot,
|
|
165
|
+
Ko as KvRadio,
|
|
166
|
+
ot as KvSecondaryNav,
|
|
167
|
+
vo as KvSelect,
|
|
168
|
+
Co as KvSideSheet,
|
|
169
|
+
_o as KvSwitch,
|
|
170
|
+
No as KvTab,
|
|
171
|
+
co as KvTabPanel,
|
|
172
|
+
Ro as KvTabs,
|
|
173
|
+
Oo as KvTextInput,
|
|
174
|
+
Io as KvTextLink,
|
|
175
|
+
go as KvThemeProvider,
|
|
176
|
+
ho as KvToast,
|
|
177
|
+
Vo as KvTooltip,
|
|
178
|
+
ko as KvTreeMapChart,
|
|
179
|
+
Uo as KvUserAvatar,
|
|
180
|
+
bo as KvUtilityMenu,
|
|
181
|
+
Wo as KvVerticalCarousel,
|
|
182
|
+
jo as KvVotingCard,
|
|
183
|
+
Qo as KvVotingCardV2,
|
|
184
|
+
Yo as KvWideLoanCard,
|
|
185
|
+
at as KvWwwHeader,
|
|
186
|
+
_t as LOAN_CALLOUTS_FRAGMENT,
|
|
187
|
+
Lt as LOAN_GEOCODE_FRAGMENT,
|
|
188
|
+
Nt as LOAN_PROGRESS_FRAGMENT,
|
|
189
|
+
lt as Mash,
|
|
190
|
+
St as NO_BALANCE_CAMPAIGN,
|
|
191
|
+
It as TOP_UP_CAMPAIGN,
|
|
192
|
+
Vt as animationCoordinator,
|
|
193
|
+
Jt as buildTailwindClassName,
|
|
194
|
+
pt as carouselUtil,
|
|
195
|
+
xt as collapse,
|
|
196
|
+
Kt as expand,
|
|
197
|
+
Dt as generateMapMarkers,
|
|
198
|
+
kt as getCoordinatesBetween,
|
|
199
|
+
Bt as getCountryColor,
|
|
200
|
+
Pt as getDropdownPriceArray,
|
|
201
|
+
vt as getKivaImageUrl,
|
|
202
|
+
gt as getLendCtaSelectedOption,
|
|
203
|
+
Ut as getLoansIntervals,
|
|
204
|
+
la as getTreemap,
|
|
205
|
+
Xt as headerNumberCase,
|
|
206
|
+
Gt as isBetween25And50,
|
|
207
|
+
At as isLegacyPlaceholderAvatar,
|
|
208
|
+
ht as isLessThan25,
|
|
209
|
+
ta as isTargetElement,
|
|
210
|
+
Yt as kebabCase,
|
|
211
|
+
Tt as loanCardComputedProperties,
|
|
212
|
+
ct as loanCardMethods,
|
|
213
|
+
bt as lockPrintSingleEl,
|
|
214
|
+
Ht as lockScroll,
|
|
215
|
+
jt as lockScrollSmallOnly,
|
|
216
|
+
aa as offBodyTouchstart,
|
|
217
|
+
ra as onBodyTouchstart,
|
|
218
|
+
Ct as randomizedUserAvatarClass,
|
|
219
|
+
Zt as removeObjectProperty,
|
|
220
|
+
ea as throttle,
|
|
221
|
+
wt as unlockPrintSingleEl,
|
|
222
|
+
zt as unlockScroll,
|
|
223
|
+
Qt as unlockScrollSmallOnly,
|
|
224
|
+
dt as useAttrs
|
|
221
225
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.loan-card-use[data-v-9340d33c]:hover,.loan-card-use[data-v-9340d33c]: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-9340d33c]{text-decoration-line:underline}.loan-card-progress[data-v-9340d33c]:hover,.loan-card-progress[data-v-9340d33c]:focus{text-decoration-line:none}.loan-card-use-text[data-v-9340d33c] p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;text-overflow:ellipsis}.loan-card-cta[data-v-9340d33c] form,.loan-card-cta[data-v-9340d33c] fieldset,.loan-card-cta[data-v-9340d33c] .tw-w-full,.loan-card-cta[data-v-9340d33c] button{height:40px!important;max-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-9340d33c] .tw-inline-flex{height:40px!important;max-height:40px!important;min-height:40px!important}
|
|
@@ -0,0 +1,393 @@
|
|
|
1
|
+
import p from "graphql-tag";
|
|
2
|
+
import E from "numeral";
|
|
3
|
+
import { mdiMapMarker as O, mdiHome as D } from "@mdi/js";
|
|
4
|
+
import { LOAN_CALLOUTS_FRAGMENT as S, LOAN_GEOCODE_FRAGMENT as G, LOAN_PROGRESS_FRAGMENT as V, loanCardComputedProperties as U, loanCardMethods as I } from "../utils/loanCard.js";
|
|
5
|
+
import H, { KV_LOAN_USE_FRAGMENT as j } from "./KvLoanUse.js";
|
|
6
|
+
import q from "./KvBorrowerImage.js";
|
|
7
|
+
import Z from "./KvLoanCallouts.js";
|
|
8
|
+
import z, { KV_LEND_CTA_FRAGMENT as J, KV_LEND_CTA_USER_FRAGMENT as Q } from "./KvLendCta.js";
|
|
9
|
+
import W, { KV_LOAN_BOOKMARK_FRAGMENT as X } from "./KvLoanBookmark.js";
|
|
10
|
+
import Y from "./KvLoanProgressGroup.js";
|
|
11
|
+
import $, { KV_LOAN_TAG_FRAGMENT as ee } from "./KvLoanTag.js";
|
|
12
|
+
import te from "./KvMaterialIcon.js";
|
|
13
|
+
import oe from "./KvLoadingPlaceholder.js";
|
|
14
|
+
import ae from "./KvLoanTeamPick.js";
|
|
15
|
+
import { resolveComponent as i, openBlock as n, createElementBlock as d, createElementVNode as r, createVNode as m, createBlock as u, resolveDynamicComponent as C, withCtx as A, createCommentVNode as k, Fragment as y, renderList as ne, normalizeClass as x } from "vue";
|
|
16
|
+
import "./KvCompactLoanCard.css";
|
|
17
|
+
import le from "../_virtual/_plugin-vue_export-helper.js";
|
|
18
|
+
const Oe = p`
|
|
19
|
+
fragment KvCompactLoanCard on LoanBasic {
|
|
20
|
+
id
|
|
21
|
+
image {
|
|
22
|
+
id
|
|
23
|
+
hash
|
|
24
|
+
}
|
|
25
|
+
lenders(limit: 0) {
|
|
26
|
+
totalCount
|
|
27
|
+
}
|
|
28
|
+
loanFundraisingInfo {
|
|
29
|
+
id
|
|
30
|
+
fundedAmount
|
|
31
|
+
}
|
|
32
|
+
name
|
|
33
|
+
...KvLendCta
|
|
34
|
+
...KvLoanTag
|
|
35
|
+
...KvLoanUse
|
|
36
|
+
...LoanCallouts
|
|
37
|
+
...LoanGeocode
|
|
38
|
+
...LoanProgress
|
|
39
|
+
}
|
|
40
|
+
${J}
|
|
41
|
+
${ee}
|
|
42
|
+
${j}
|
|
43
|
+
${S}
|
|
44
|
+
${G}
|
|
45
|
+
${V}
|
|
46
|
+
`, De = p`
|
|
47
|
+
fragment KvCompactLoanCardUser on LoanBasic {
|
|
48
|
+
id
|
|
49
|
+
...KvLendCtaUser
|
|
50
|
+
...KvLoanBookmark
|
|
51
|
+
}
|
|
52
|
+
${Q}
|
|
53
|
+
${X}
|
|
54
|
+
`, re = {
|
|
55
|
+
name: "KvCompactLoanCard",
|
|
56
|
+
components: {
|
|
57
|
+
KvBorrowerImage: q,
|
|
58
|
+
KvLoadingPlaceholder: oe,
|
|
59
|
+
KvLoanUse: H,
|
|
60
|
+
KvMaterialIcon: te,
|
|
61
|
+
KvLendCta: z,
|
|
62
|
+
KvLoanTag: $,
|
|
63
|
+
KvLoanCallouts: Z,
|
|
64
|
+
KvLoanBookmark: W,
|
|
65
|
+
KvLoanTeamPick: ae,
|
|
66
|
+
KvLoanProgressGroup: Y
|
|
67
|
+
},
|
|
68
|
+
props: {
|
|
69
|
+
loanId: {
|
|
70
|
+
type: Number,
|
|
71
|
+
default: void 0
|
|
72
|
+
},
|
|
73
|
+
loan: {
|
|
74
|
+
type: Object,
|
|
75
|
+
default: null
|
|
76
|
+
},
|
|
77
|
+
customLoanDetails: {
|
|
78
|
+
type: Boolean,
|
|
79
|
+
default: !1
|
|
80
|
+
},
|
|
81
|
+
showTags: {
|
|
82
|
+
type: Boolean,
|
|
83
|
+
default: !0
|
|
84
|
+
},
|
|
85
|
+
categoryPageName: {
|
|
86
|
+
type: String,
|
|
87
|
+
default: ""
|
|
88
|
+
},
|
|
89
|
+
enableFiveDollarsNotes: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: !1
|
|
92
|
+
},
|
|
93
|
+
isAdding: {
|
|
94
|
+
type: Boolean,
|
|
95
|
+
default: !1
|
|
96
|
+
},
|
|
97
|
+
isVisitor: {
|
|
98
|
+
type: Boolean,
|
|
99
|
+
default: !0
|
|
100
|
+
},
|
|
101
|
+
basketItems: {
|
|
102
|
+
type: Array,
|
|
103
|
+
default: () => []
|
|
104
|
+
},
|
|
105
|
+
isBookmarked: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: !1
|
|
108
|
+
},
|
|
109
|
+
kvTrackFunction: {
|
|
110
|
+
type: Function,
|
|
111
|
+
required: !0
|
|
112
|
+
},
|
|
113
|
+
photoPath: {
|
|
114
|
+
type: String,
|
|
115
|
+
required: !0
|
|
116
|
+
},
|
|
117
|
+
showViewLoan: {
|
|
118
|
+
type: Boolean,
|
|
119
|
+
default: !1
|
|
120
|
+
},
|
|
121
|
+
externalLinks: {
|
|
122
|
+
type: Boolean,
|
|
123
|
+
default: !1
|
|
124
|
+
},
|
|
125
|
+
route: {
|
|
126
|
+
type: Object,
|
|
127
|
+
default: void 0
|
|
128
|
+
},
|
|
129
|
+
userBalance: {
|
|
130
|
+
type: String,
|
|
131
|
+
default: void 0
|
|
132
|
+
},
|
|
133
|
+
getCookie: {
|
|
134
|
+
type: Function,
|
|
135
|
+
default: void 0
|
|
136
|
+
},
|
|
137
|
+
setCookie: {
|
|
138
|
+
type: Function,
|
|
139
|
+
default: void 0
|
|
140
|
+
},
|
|
141
|
+
fiveDollarsSelected: {
|
|
142
|
+
type: Boolean,
|
|
143
|
+
default: !1
|
|
144
|
+
},
|
|
145
|
+
customCallouts: {
|
|
146
|
+
type: Array,
|
|
147
|
+
default: () => []
|
|
148
|
+
},
|
|
149
|
+
isTeamPick: {
|
|
150
|
+
type: Boolean,
|
|
151
|
+
default: !1
|
|
152
|
+
},
|
|
153
|
+
primaryButtonText: {
|
|
154
|
+
type: String,
|
|
155
|
+
default: "Lend"
|
|
156
|
+
},
|
|
157
|
+
secondaryButtonHandler: {
|
|
158
|
+
type: Function,
|
|
159
|
+
default: void 0
|
|
160
|
+
},
|
|
161
|
+
secondaryButtonText: {
|
|
162
|
+
type: String,
|
|
163
|
+
default: "Checkout now"
|
|
164
|
+
},
|
|
165
|
+
showContributors: {
|
|
166
|
+
type: Boolean,
|
|
167
|
+
default: !1
|
|
168
|
+
},
|
|
169
|
+
customHref: {
|
|
170
|
+
type: String,
|
|
171
|
+
default: ""
|
|
172
|
+
}
|
|
173
|
+
},
|
|
174
|
+
setup(l, { emit: o }) {
|
|
175
|
+
const {
|
|
176
|
+
allDataLoaded: t,
|
|
177
|
+
borrowerName: e,
|
|
178
|
+
city: L,
|
|
179
|
+
countryName: b,
|
|
180
|
+
distributionModel: c,
|
|
181
|
+
formattedLocation: f,
|
|
182
|
+
fundraisingPercent: s,
|
|
183
|
+
hasProgressData: w,
|
|
184
|
+
imageHash: g,
|
|
185
|
+
isLoading: h,
|
|
186
|
+
loanAmount: v,
|
|
187
|
+
loanBorrowerCount: a,
|
|
188
|
+
loanCallouts: _,
|
|
189
|
+
loanStatus: B,
|
|
190
|
+
loanUse: N,
|
|
191
|
+
readMorePath: T,
|
|
192
|
+
state: K,
|
|
193
|
+
tag: M,
|
|
194
|
+
unreservedAmount: P,
|
|
195
|
+
sharesAvailable: F
|
|
196
|
+
} = U(l), {
|
|
197
|
+
clickReadMore: R
|
|
198
|
+
} = I(l, o);
|
|
199
|
+
return {
|
|
200
|
+
allDataLoaded: t,
|
|
201
|
+
borrowerName: e,
|
|
202
|
+
city: L,
|
|
203
|
+
countryName: b,
|
|
204
|
+
distributionModel: c,
|
|
205
|
+
formattedLocation: f,
|
|
206
|
+
fundraisingPercent: s,
|
|
207
|
+
hasProgressData: w,
|
|
208
|
+
imageHash: g,
|
|
209
|
+
isLoading: h,
|
|
210
|
+
loanAmount: v,
|
|
211
|
+
loanBorrowerCount: a,
|
|
212
|
+
loanCallouts: _,
|
|
213
|
+
loanStatus: B,
|
|
214
|
+
loanUse: N,
|
|
215
|
+
mdiMapMarker: O,
|
|
216
|
+
mdiHome: D,
|
|
217
|
+
readMorePath: T,
|
|
218
|
+
state: K,
|
|
219
|
+
tag: M,
|
|
220
|
+
unreservedAmount: P,
|
|
221
|
+
sharesAvailable: F,
|
|
222
|
+
clickReadMore: R
|
|
223
|
+
};
|
|
224
|
+
},
|
|
225
|
+
computed: {
|
|
226
|
+
lendersNumber() {
|
|
227
|
+
var l, o;
|
|
228
|
+
return ((o = (l = this.loan) == null ? void 0 : l.lenders) == null ? void 0 : o.totalCount) ?? 0;
|
|
229
|
+
},
|
|
230
|
+
amountLent() {
|
|
231
|
+
var o, t;
|
|
232
|
+
const l = ((t = (o = this.loan) == null ? void 0 : o.loanFundraisingInfo) == null ? void 0 : t.fundedAmount) ?? 0;
|
|
233
|
+
return E(l).format("$0,0");
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
}, se = { class: "tw-flex tw-flex-col tw-items-start tw-gap-3 tw-w-full" }, ie = { class: "tw-flex tw-items-start tw-gap-3 tw-w-full" }, de = { class: "tw-flex tw-flex-col tw-items-start tw-justify-between tw-p-1 tw-bg-white tw-rounded-md tw-shadow-lg tw-w-80" }, me = { class: "tw-flex tw-flex-col tw-items-start tw-w-full" }, ue = { class: "tw-flex tw-items-start tw-gap-2 tw-w-full" }, ce = { class: "tw-flex-shrink-0 tw-overflow-hidden" }, fe = {
|
|
237
|
+
class: "tw-flex tw-flex-col tw-items-start tw-gap-1 tw-flex-1",
|
|
238
|
+
style: { height: "7.25rem" }
|
|
239
|
+
}, we = {
|
|
240
|
+
key: 0,
|
|
241
|
+
class: "loan-card-use-text tw-w-full tw-overflow-hidden",
|
|
242
|
+
style: { width: "13rem" }
|
|
243
|
+
}, ge = {
|
|
244
|
+
key: 1,
|
|
245
|
+
class: "loan-card-use-text tw-w-full tw-overflow-hidden"
|
|
246
|
+
}, he = { class: "tw-flex-1" }, ve = { class: "tw-flex-1 tw-min-w-0" };
|
|
247
|
+
function _e(l, o, t, e, L, b) {
|
|
248
|
+
const c = i("kv-borrower-image"), f = i("kv-loan-tag"), s = i("kv-loading-placeholder"), w = i("kv-loan-use"), g = i("kv-loan-callouts"), h = i("kv-loan-progress-group"), v = i("kv-lend-cta");
|
|
249
|
+
return n(), d("div", se, [
|
|
250
|
+
r("div", ie, [
|
|
251
|
+
r("div", de, [
|
|
252
|
+
r("div", me, [
|
|
253
|
+
r("div", ue, [
|
|
254
|
+
r("div", ce, [
|
|
255
|
+
m(c, {
|
|
256
|
+
class: "tw-bg-gray-300 tw-rounded-md tw-object-cover",
|
|
257
|
+
style: { width: "100px", height: "100px" },
|
|
258
|
+
alt: `Photo of ${e.borrowerName}`,
|
|
259
|
+
"aspect-ratio": 1,
|
|
260
|
+
"default-image": { width: 200, faceZoom: 50 },
|
|
261
|
+
hash: e.imageHash,
|
|
262
|
+
images: [{ width: 200, faceZoom: 50 }],
|
|
263
|
+
"photo-path": t.photoPath
|
|
264
|
+
}, null, 8, ["alt", "hash", "photo-path"])
|
|
265
|
+
]),
|
|
266
|
+
r("div", fe, [
|
|
267
|
+
(n(), u(C(e.tag), {
|
|
268
|
+
to: e.readMorePath,
|
|
269
|
+
href: e.readMorePath,
|
|
270
|
+
class: "tw-flex tw-no-underline hover:tw-no-underline focus:tw-no-underline -tw-mt-1",
|
|
271
|
+
"aria-label": "Loan tag",
|
|
272
|
+
onClick: o[0] || (o[0] = (a) => e.clickReadMore("Tag", a))
|
|
273
|
+
}, {
|
|
274
|
+
default: A(() => [
|
|
275
|
+
t.showTags && !e.isLoading ? (n(), u(f, {
|
|
276
|
+
key: 0,
|
|
277
|
+
loan: t.loan
|
|
278
|
+
}, null, 8, ["loan"])) : k("", !0)
|
|
279
|
+
]),
|
|
280
|
+
_: 1
|
|
281
|
+
}, 8, ["to", "href"])),
|
|
282
|
+
e.isLoading ? (n(), d("div", we, [
|
|
283
|
+
(n(!0), d(y, null, ne([...Array(4)], (a, _) => (n(), d("div", {
|
|
284
|
+
key: _,
|
|
285
|
+
class: "tw-h-2 tw-mb-1"
|
|
286
|
+
}, [
|
|
287
|
+
m(s)
|
|
288
|
+
]))), 128))
|
|
289
|
+
])) : (n(), d("div", ge, [
|
|
290
|
+
m(w, {
|
|
291
|
+
use: e.loanUse,
|
|
292
|
+
"loan-amount": e.loanAmount,
|
|
293
|
+
status: e.loanStatus,
|
|
294
|
+
"borrower-count": e.loanBorrowerCount,
|
|
295
|
+
name: e.borrowerName,
|
|
296
|
+
"distribution-model": e.distributionModel,
|
|
297
|
+
class: "tw-text-small tw-leading-tight"
|
|
298
|
+
}, null, 8, ["use", "loan-amount", "status", "borrower-count", "name", "distribution-model"])
|
|
299
|
+
]))
|
|
300
|
+
])
|
|
301
|
+
]),
|
|
302
|
+
e.isLoading || typeof e.loanCallouts > "u" ? (n(), u(s, {
|
|
303
|
+
key: 0,
|
|
304
|
+
class: "tw-mt-1.5 tw-mb-1 tw-rounded-full",
|
|
305
|
+
style: { width: "60%", height: "1.5rem" }
|
|
306
|
+
})) : (n(), u(g, {
|
|
307
|
+
key: 1,
|
|
308
|
+
callouts: e.loanCallouts,
|
|
309
|
+
class: "tw-mt-1.5",
|
|
310
|
+
onClick: o[1] || (o[1] = (a) => l.$emit("jump-filter-page", a))
|
|
311
|
+
}, null, 8, ["callouts"]))
|
|
312
|
+
]),
|
|
313
|
+
r("div", {
|
|
314
|
+
class: x(["tw-flex tw-items-end tw-w-full tw-mt-1", { "tw-gap-2": e.sharesAvailable }])
|
|
315
|
+
}, [
|
|
316
|
+
e.hasProgressData ? (n(), d(y, { key: 1 }, [
|
|
317
|
+
r("div", ve, [
|
|
318
|
+
e.sharesAvailable ? (n(), u(C(e.tag), {
|
|
319
|
+
key: 0,
|
|
320
|
+
to: e.readMorePath,
|
|
321
|
+
href: e.readMorePath,
|
|
322
|
+
class: "loan-card-progress tw-no-underline tw-block",
|
|
323
|
+
"aria-label": "Loan progress",
|
|
324
|
+
onClick: o[2] || (o[2] = (a) => e.clickReadMore("Progress", a))
|
|
325
|
+
}, {
|
|
326
|
+
default: A(() => [
|
|
327
|
+
m(h, {
|
|
328
|
+
id: "loanProgress",
|
|
329
|
+
"money-left": e.unreservedAmount,
|
|
330
|
+
"progress-percent": e.fundraisingPercent,
|
|
331
|
+
class: "tw-text-black"
|
|
332
|
+
}, null, 8, ["money-left", "progress-percent"])
|
|
333
|
+
]),
|
|
334
|
+
_: 1
|
|
335
|
+
}, 8, ["to", "href"])) : k("", !0)
|
|
336
|
+
]),
|
|
337
|
+
r("div", {
|
|
338
|
+
class: x(["tw-flex-shrink-0 loan-card-cta", { "tw-w-full": !e.sharesAvailable }]),
|
|
339
|
+
style: { height: "40px" }
|
|
340
|
+
}, [
|
|
341
|
+
m(v, {
|
|
342
|
+
loan: t.loan,
|
|
343
|
+
"unreserved-amount": e.unreservedAmount,
|
|
344
|
+
"basket-items": t.basketItems,
|
|
345
|
+
"is-loading": e.isLoading,
|
|
346
|
+
"is-adding": t.isAdding,
|
|
347
|
+
"enable-five-dollars-notes": t.enableFiveDollarsNotes,
|
|
348
|
+
"five-dollars-selected": t.fiveDollarsSelected,
|
|
349
|
+
"kv-track-function": t.kvTrackFunction,
|
|
350
|
+
"show-view-loan": t.showViewLoan,
|
|
351
|
+
"custom-loan-details": t.customLoanDetails,
|
|
352
|
+
"external-links": t.externalLinks,
|
|
353
|
+
route: t.route,
|
|
354
|
+
"user-balance": t.userBalance,
|
|
355
|
+
"get-cookie": t.getCookie,
|
|
356
|
+
"set-cookie": t.setCookie,
|
|
357
|
+
"is-visitor": t.isVisitor,
|
|
358
|
+
"primary-button-text": t.primaryButtonText,
|
|
359
|
+
"secondary-button-text": t.secondaryButtonText,
|
|
360
|
+
"secondary-button-handler": t.secondaryButtonHandler,
|
|
361
|
+
onAddToBasket: o[3] || (o[3] = (a) => l.$emit("add-to-basket", a)),
|
|
362
|
+
onShowLoanDetails: o[4] || (o[4] = (a) => e.clickReadMore("ViewLoan", a)),
|
|
363
|
+
onRemoveFromBasket: o[5] || (o[5] = (a) => l.$emit("remove-from-basket", a))
|
|
364
|
+
}, null, 8, ["loan", "unreserved-amount", "basket-items", "is-loading", "is-adding", "enable-five-dollars-notes", "five-dollars-selected", "kv-track-function", "show-view-loan", "custom-loan-details", "external-links", "route", "user-balance", "get-cookie", "set-cookie", "is-visitor", "primary-button-text", "secondary-button-text", "secondary-button-handler"])
|
|
365
|
+
], 2)
|
|
366
|
+
], 64)) : (n(), d(y, { key: 0 }, [
|
|
367
|
+
r("div", he, [
|
|
368
|
+
m(s, {
|
|
369
|
+
class: "tw-mb-0.5",
|
|
370
|
+
style: { width: "11rem", height: "1rem" }
|
|
371
|
+
}),
|
|
372
|
+
m(s, {
|
|
373
|
+
class: "tw-rounded",
|
|
374
|
+
style: { width: "11rem", height: "0.5rem" }
|
|
375
|
+
})
|
|
376
|
+
]),
|
|
377
|
+
e.allDataLoaded ? k("", !0) : (n(), u(s, {
|
|
378
|
+
key: 0,
|
|
379
|
+
class: "tw-rounded tw-flex-shrink-0",
|
|
380
|
+
style: { width: "8rem", height: "2.5rem" }
|
|
381
|
+
}))
|
|
382
|
+
], 64))
|
|
383
|
+
], 2)
|
|
384
|
+
])
|
|
385
|
+
])
|
|
386
|
+
]);
|
|
387
|
+
}
|
|
388
|
+
const Se = /* @__PURE__ */ le(re, [["render", _e], ["__scopeId", "data-v-9340d33c"]]);
|
|
389
|
+
export {
|
|
390
|
+
Oe as KV_COMPACT_LOAN_CARD_FRAGMENT,
|
|
391
|
+
De as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
|
|
392
|
+
Se as default
|
|
393
|
+
};
|
package/dist/vue/KvLendCta.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.amountDropdownWrapper[data-v-
|
|
1
|
+
.amountDropdownWrapper[data-v-ee9d40cc] select{border-radius:14px 0 0 14px}.lend-again[data-v-ee9d40cc] span{padding-left:.5rem;padding-right:.5rem}.lendButtonWrapper[data-v-ee9d40cc] span:first-child{border-radius:0 14px 14px 0}.filtered-dropdown[data-v-ee9d40cc] select{cursor:pointer;border-radius:1rem;border-width:2px;font-weight:500}.unselected-dropdown[data-v-ee9d40cc] select{--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.preset-option[data-v-ee9d40cc] span.tw-w-full:first-child{border-width:2px;--tw-border-opacity: 1;border-color:rgb(158 158 158 / var(--tw-border-opacity, 1))}.selected-dropdown[data-v-ee9d40cc] select,.selected-option[data-v-ee9d40cc] span.tw-w-full:first-child{--tw-border-opacity: 1;border-color:rgba(var(--border-action),var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgba(var(--bg-secondary),var(--tw-bg-opacity, 1))}.button-ellipsis[data-v-ee9d40cc] span>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media (max-width: 410px){.mobile-dropdown-small[data-v-ee9d40cc]{flex:0 0 40%}}
|
package/dist/vue/KvLendCta.js
CHANGED
|
@@ -6,7 +6,7 @@ import R from "./KvLendAmountButton.js";
|
|
|
6
6
|
import S from "./KvSelect.js";
|
|
7
7
|
import F from "./KvButton.js";
|
|
8
8
|
import V from "./KvMaterialIcon.js";
|
|
9
|
-
import { resolveComponent as v, openBlock as o, createElementBlock as
|
|
9
|
+
import { resolveComponent as v, openBlock as o, createElementBlock as r, createBlock as a, withCtx as i, createTextVNode as f, toDisplayString as u, createElementVNode as h, createVNode as y, withModifiers as A, normalizeClass as w, Fragment as k, renderList as p, createCommentVNode as c } from "vue";
|
|
10
10
|
import "./KvLendCta.css";
|
|
11
11
|
import W from "../_virtual/_plugin-vue_export-helper.js";
|
|
12
12
|
const _ = "Other", E = 430, g = 480, x = 380, De = T`
|
|
@@ -390,19 +390,19 @@ const _ = "Other", E = 430, g = 480, x = 380, De = T`
|
|
|
390
390
|
key: 2,
|
|
391
391
|
class: "tw-w-full tw-text-center tw-rounded tw-p-2",
|
|
392
392
|
style: { background: "#f1f1f1" }
|
|
393
|
-
}, z = { class: "tw-flex" }, H = ["disabled"], j = {
|
|
393
|
+
}, z = { class: "tw-flex tw-items-center" }, H = ["disabled"], j = {
|
|
394
394
|
key: 0,
|
|
395
395
|
class: "md:tw-hidden tw-w-full"
|
|
396
396
|
}, q = { class: "tw-flex tw-flex-col tw-gap-1 tw-w-full" }, G = { class: "tw-flex tw-gap-1 tw-w-full" }, J = ["value"], Q = { class: "tw-flex tw-gap-1" }, X = ["value"], Y = { 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" }, $ = {
|
|
397
397
|
key: 1,
|
|
398
398
|
class: "tw-w-full"
|
|
399
|
-
}, ee = { class: "tw-flex tw-flex-col tw-gap-1 tw-w-full" }, te = { class: "tw-flex tw-gap-1 tw-w-full" }, ne = ["value"], se = { class: "tw-flex tw-gap-1" }, oe = ["value"], le = { class: "tw-flex tw-items-center tw-h-full tw-w-full" }, de = { class: "tw-min-w-0 tw-flex-1 tw-overflow-hidden tw-text-ellipsis tw-whitespace-nowrap" },
|
|
399
|
+
}, ee = { class: "tw-flex tw-flex-col tw-gap-1 tw-w-full" }, te = { class: "tw-flex tw-gap-1 tw-w-full" }, ne = ["value"], se = { class: "tw-flex tw-gap-1" }, oe = ["value"], le = { class: "tw-flex tw-items-center tw-h-full tw-w-full" }, de = { class: "tw-min-w-0 tw-flex-1 tw-overflow-hidden tw-text-ellipsis tw-whitespace-nowrap" }, re = ["value"], ie = {
|
|
400
400
|
key: 3,
|
|
401
401
|
class: "amountDropdownWrapper"
|
|
402
402
|
}, ae = ["value"];
|
|
403
403
|
function ue(n, s, l, D, d, e) {
|
|
404
404
|
const m = v("kv-ui-button"), P = v("kv-material-icon"), B = v("kv-ui-select"), O = v("kv-lend-amount-button");
|
|
405
|
-
return o(),
|
|
405
|
+
return o(), r("div", M, [
|
|
406
406
|
e.isInBasket ? (o(), a(m, {
|
|
407
407
|
key: 0,
|
|
408
408
|
variant: "secondary",
|
|
@@ -412,7 +412,7 @@ function ue(n, s, l, D, d, e) {
|
|
|
412
412
|
href: l.externalLinks ? "/basket" : void 0,
|
|
413
413
|
onClick: s[0] || (s[0] = (t) => e.clickSecondaryButton(t))
|
|
414
414
|
}, {
|
|
415
|
-
default:
|
|
415
|
+
default: i(() => [
|
|
416
416
|
f(u(e.loanInBasketButtonText), 1)
|
|
417
417
|
]),
|
|
418
418
|
_: 1
|
|
@@ -420,11 +420,11 @@ function ue(n, s, l, D, d, e) {
|
|
|
420
420
|
key: 1,
|
|
421
421
|
class: "tw-inline-flex tw-flex-1"
|
|
422
422
|
}, {
|
|
423
|
-
default:
|
|
423
|
+
default: i(() => [
|
|
424
424
|
f(u(e.ctaButtonText), 1)
|
|
425
425
|
]),
|
|
426
426
|
_: 1
|
|
427
|
-
})) : e.isFunded ? (o(),
|
|
427
|
+
})) : e.isFunded ? (o(), r("div", U, " This loan was just funded! 🎉 ")) : l.showViewLoan ? (o(), a(m, {
|
|
428
428
|
key: 3,
|
|
429
429
|
state: `${e.allSharesReserved ? "disabled" : ""}`,
|
|
430
430
|
to: l.externalLinks ? void 0 : e.readMorePath,
|
|
@@ -432,17 +432,17 @@ function ue(n, s, l, D, d, e) {
|
|
|
432
432
|
class: "tw-mb-0",
|
|
433
433
|
onClick: s[1] || (s[1] = (t) => n.$emit("show-loan-details", t))
|
|
434
434
|
}, {
|
|
435
|
-
default:
|
|
435
|
+
default: i(() => [
|
|
436
436
|
h("span", z, [
|
|
437
437
|
s[9] || (s[9] = f(" View loan ")),
|
|
438
438
|
y(P, {
|
|
439
|
-
class: "tw-w-3 tw-h-3
|
|
439
|
+
class: "tw-w-3 tw-h-3",
|
|
440
440
|
icon: d.mdiChevronRight
|
|
441
441
|
}, null, 8, ["icon"])
|
|
442
442
|
])
|
|
443
443
|
]),
|
|
444
444
|
_: 1
|
|
445
|
-
}, 8, ["state", "to", "href"])) : e.useFormSubmit ? (o(),
|
|
445
|
+
}, 8, ["state", "to", "href"])) : e.useFormSubmit ? (o(), r("form", {
|
|
446
446
|
key: 4,
|
|
447
447
|
class: "tw-w-full tw-flex",
|
|
448
448
|
onSubmit: s[8] || (s[8] = A((...t) => e.addToBasket && e.addToBasket(...t), ["prevent"]))
|
|
@@ -456,17 +456,17 @@ function ue(n, s, l, D, d, e) {
|
|
|
456
456
|
disabled: l.isAdding,
|
|
457
457
|
"data-testid": "bp-lend-cta-select-and-button"
|
|
458
458
|
}, [
|
|
459
|
-
l.showPresetAmounts && !l.isAdding && !e.isLendAmountButton && e.presetButtonsPrices.length > 1 && !e.isNarrowDesktop ? (o(),
|
|
459
|
+
l.showPresetAmounts && !l.isAdding && !e.isLendAmountButton && e.presetButtonsPrices.length > 1 && !e.isNarrowDesktop ? (o(), r("div", j, [
|
|
460
460
|
h("div", q, [
|
|
461
461
|
h("div", G, [
|
|
462
|
-
(o(!0),
|
|
462
|
+
(o(!0), r(k, null, p(e.presetButtonsPrices, (t) => (o(), a(m, {
|
|
463
463
|
key: t,
|
|
464
464
|
variant: "secondary",
|
|
465
465
|
class: w(["preset-option tw-flex-1 tw-min-w-0", { "selected-option": d.selectedOption == t }]),
|
|
466
466
|
"data-testid": "bp-lend-cta-lend-button-mobile",
|
|
467
467
|
onClick: (b) => e.clickPresetButton(t)
|
|
468
468
|
}, {
|
|
469
|
-
default:
|
|
469
|
+
default: i(() => [
|
|
470
470
|
f(" $ " + u(t), 1)
|
|
471
471
|
]),
|
|
472
472
|
_: 2
|
|
@@ -486,8 +486,8 @@ function ue(n, s, l, D, d, e) {
|
|
|
486
486
|
"aria-label": "Lend amount",
|
|
487
487
|
onClick: A(e.clickDropdown, ["stop"])
|
|
488
488
|
}, {
|
|
489
|
-
default:
|
|
490
|
-
(o(!0),
|
|
489
|
+
default: i(() => [
|
|
490
|
+
(o(!0), r(k, null, p(e.presetDropdownPrices, (t) => (o(), r("option", {
|
|
491
491
|
key: t,
|
|
492
492
|
value: t
|
|
493
493
|
}, u(t !== d.OTHER_OPTION ? `$${t}` : t), 9, J))), 128))
|
|
@@ -511,8 +511,8 @@ function ue(n, s, l, D, d, e) {
|
|
|
511
511
|
"aria-label": "Lend amount",
|
|
512
512
|
onClick: A(e.clickDropdown, ["stop"])
|
|
513
513
|
}, {
|
|
514
|
-
default:
|
|
515
|
-
(o(!0),
|
|
514
|
+
default: i(() => [
|
|
515
|
+
(o(!0), r(k, null, p(e.presetDropdownPrices, (t) => (o(), r("option", {
|
|
516
516
|
key: "small-" + t,
|
|
517
517
|
value: t
|
|
518
518
|
}, u(t !== d.OTHER_OPTION ? `$${t}` : t), 9, X))), 128))
|
|
@@ -524,7 +524,7 @@ function ue(n, s, l, D, d, e) {
|
|
|
524
524
|
"data-testid": "bp-lend-cta-mobile-lend-button",
|
|
525
525
|
type: "submit"
|
|
526
526
|
}, {
|
|
527
|
-
default:
|
|
527
|
+
default: i(() => [
|
|
528
528
|
h("span", Y, [
|
|
529
529
|
h("span", Z, u(e.ctaButtonText), 1)
|
|
530
530
|
])
|
|
@@ -534,17 +534,17 @@ function ue(n, s, l, D, d, e) {
|
|
|
534
534
|
])
|
|
535
535
|
])
|
|
536
536
|
])) : c("", !0),
|
|
537
|
-
l.showPresetAmounts && !l.isAdding && !e.isLendAmountButton && e.presetButtonsPrices.length > 1 && e.isNarrowDesktop ? (o(),
|
|
537
|
+
l.showPresetAmounts && !l.isAdding && !e.isLendAmountButton && e.presetButtonsPrices.length > 1 && e.isNarrowDesktop ? (o(), r("div", $, [
|
|
538
538
|
h("div", ee, [
|
|
539
539
|
h("div", te, [
|
|
540
|
-
(o(!0),
|
|
540
|
+
(o(!0), r(k, null, p(e.presetButtonsPrices, (t) => (o(), a(m, {
|
|
541
541
|
key: t,
|
|
542
542
|
variant: "secondary",
|
|
543
543
|
class: w(["preset-option tw-flex-1 tw-min-w-0", { "selected-option": d.selectedOption == t }]),
|
|
544
544
|
"data-testid": "bp-lend-cta-lend-button-narrow-desktop",
|
|
545
545
|
onClick: (b) => e.clickPresetButton(t)
|
|
546
546
|
}, {
|
|
547
|
-
default:
|
|
547
|
+
default: i(() => [
|
|
548
548
|
f(" $ " + u(t), 1)
|
|
549
549
|
]),
|
|
550
550
|
_: 2
|
|
@@ -564,8 +564,8 @@ function ue(n, s, l, D, d, e) {
|
|
|
564
564
|
"aria-label": "Lend amount",
|
|
565
565
|
onClick: A(e.clickDropdown, ["stop"])
|
|
566
566
|
}, {
|
|
567
|
-
default:
|
|
568
|
-
(o(!0),
|
|
567
|
+
default: i(() => [
|
|
568
|
+
(o(!0), r(k, null, p(e.presetDropdownPrices, (t) => (o(), r("option", {
|
|
569
569
|
key: t,
|
|
570
570
|
value: t
|
|
571
571
|
}, u(t !== d.OTHER_OPTION ? `${t}` : t), 9, ne))), 128))
|
|
@@ -589,8 +589,8 @@ function ue(n, s, l, D, d, e) {
|
|
|
589
589
|
"aria-label": "Lend amount",
|
|
590
590
|
onClick: A(e.clickDropdown, ["stop"])
|
|
591
591
|
}, {
|
|
592
|
-
default:
|
|
593
|
-
(o(!0),
|
|
592
|
+
default: i(() => [
|
|
593
|
+
(o(!0), r(k, null, p(e.presetDropdownPrices, (t) => (o(), r("option", {
|
|
594
594
|
key: "narrow-small-" + t,
|
|
595
595
|
value: t
|
|
596
596
|
}, u(t !== d.OTHER_OPTION ? `${t}` : t), 9, oe))), 128))
|
|
@@ -602,7 +602,7 @@ function ue(n, s, l, D, d, e) {
|
|
|
602
602
|
"data-testid": "bp-lend-cta-narrow-desktop-lend-button",
|
|
603
603
|
type: "submit"
|
|
604
604
|
}, {
|
|
605
|
-
default:
|
|
605
|
+
default: i(() => [
|
|
606
606
|
h("span", le, [
|
|
607
607
|
h("span", de, u(e.ctaButtonText), 1)
|
|
608
608
|
])
|
|
@@ -612,21 +612,21 @@ function ue(n, s, l, D, d, e) {
|
|
|
612
612
|
])
|
|
613
613
|
])
|
|
614
614
|
])) : c("", !0),
|
|
615
|
-
l.showPresetAmounts && !l.isAdding && !e.isNarrowDesktop ? (o(),
|
|
615
|
+
l.showPresetAmounts && !l.isAdding && !e.isNarrowDesktop ? (o(), r("div", {
|
|
616
616
|
key: 2,
|
|
617
617
|
class: w({
|
|
618
618
|
"tw-flex tw-gap-0.5 md:tw-gap-1 lg:tw-gap-1 tw-flex-wrap md:tw-flex-nowrap": !0,
|
|
619
619
|
"tw-hidden md:tw-flex": !e.isLendAmountButton && e.presetButtonsPrices.length > 1
|
|
620
620
|
})
|
|
621
621
|
}, [
|
|
622
|
-
e.isLendAmountButton ? c("", !0) : (o(!0),
|
|
622
|
+
e.isLendAmountButton ? c("", !0) : (o(!0), r(k, { key: 0 }, p(e.presetButtonsPrices, (t) => (o(), a(m, {
|
|
623
623
|
key: t,
|
|
624
624
|
variant: "secondary",
|
|
625
625
|
class: w(["tw-inline-flex tw-flex-1 preset-option tw-w-8", { "selected-option": d.selectedOption == t }]),
|
|
626
626
|
"data-testid": "bp-lend-cta-lend-button",
|
|
627
627
|
onClick: (b) => e.clickPresetButton(t)
|
|
628
628
|
}, {
|
|
629
|
-
default:
|
|
629
|
+
default: i(() => [
|
|
630
630
|
f(" $" + u(t), 1)
|
|
631
631
|
]),
|
|
632
632
|
_: 2
|
|
@@ -646,15 +646,15 @@ function ue(n, s, l, D, d, e) {
|
|
|
646
646
|
"aria-label": "Lend amount",
|
|
647
647
|
onClick: A(e.clickDropdown, ["stop"])
|
|
648
648
|
}, {
|
|
649
|
-
default:
|
|
650
|
-
(o(!0),
|
|
649
|
+
default: i(() => [
|
|
650
|
+
(o(!0), r(k, null, p(e.presetDropdownPrices, (t) => (o(), r("option", {
|
|
651
651
|
key: t,
|
|
652
652
|
value: t
|
|
653
|
-
}, u(t !== d.OTHER_OPTION ? `$${t}` : t), 9,
|
|
653
|
+
}, u(t !== d.OTHER_OPTION ? `$${t}` : t), 9, re))), 128))
|
|
654
654
|
]),
|
|
655
655
|
_: 1
|
|
656
656
|
}, 8, ["id", "modelValue", "class", "onUpdate:modelValue", "onClick"])) : c("", !0)
|
|
657
|
-
], 2)) : l.showPresetAmounts ? c("", !0) : (o(),
|
|
657
|
+
], 2)) : l.showPresetAmounts ? c("", !0) : (o(), r("div", ie, [
|
|
658
658
|
e.hideShowLendDropdown && !e.isLessThan25 ? (o(), a(B, {
|
|
659
659
|
key: 0,
|
|
660
660
|
id: `LoanAmountDropdown_${e.loanId}`,
|
|
@@ -668,8 +668,8 @@ function ue(n, s, l, D, d, e) {
|
|
|
668
668
|
"aria-label": "Lend amount",
|
|
669
669
|
onClick: A(e.clickDropdown, ["stop"])
|
|
670
670
|
}, {
|
|
671
|
-
default:
|
|
672
|
-
(o(!0),
|
|
671
|
+
default: i(() => [
|
|
672
|
+
(o(!0), r(k, null, p(e.prices, (t) => (o(), r("option", {
|
|
673
673
|
key: t,
|
|
674
674
|
value: t
|
|
675
675
|
}, " $" + u(t), 9, ae))), 128))
|
|
@@ -691,7 +691,7 @@ function ue(n, s, l, D, d, e) {
|
|
|
691
691
|
"data-testid": "bp-lend-cta-lend-button",
|
|
692
692
|
type: "submit"
|
|
693
693
|
}, {
|
|
694
|
-
default:
|
|
694
|
+
default: i(() => [
|
|
695
695
|
f(u(e.ctaButtonText), 1)
|
|
696
696
|
]),
|
|
697
697
|
_: 1
|
|
@@ -701,7 +701,7 @@ function ue(n, s, l, D, d, e) {
|
|
|
701
701
|
"data-testid": "bp-lend-cta-lend-again-button",
|
|
702
702
|
type: "submit"
|
|
703
703
|
}, {
|
|
704
|
-
default:
|
|
704
|
+
default: i(() => [
|
|
705
705
|
f(u(l.primaryButtonText || "Lend") + " again ", 1)
|
|
706
706
|
]),
|
|
707
707
|
_: 1
|
|
@@ -720,7 +720,7 @@ function ue(n, s, l, D, d, e) {
|
|
|
720
720
|
key: 5,
|
|
721
721
|
class: "tw-inline-flex tw-flex-1"
|
|
722
722
|
}, {
|
|
723
|
-
default:
|
|
723
|
+
default: i(() => s[10] || (s[10] = [
|
|
724
724
|
f(" Adding to basket ")
|
|
725
725
|
])),
|
|
726
726
|
_: 1
|
|
@@ -729,7 +729,7 @@ function ue(n, s, l, D, d, e) {
|
|
|
729
729
|
], 32)) : c("", !0)
|
|
730
730
|
], 512);
|
|
731
731
|
}
|
|
732
|
-
const be = /* @__PURE__ */ W(K, [["render", ue], ["__scopeId", "data-v-
|
|
732
|
+
const be = /* @__PURE__ */ W(K, [["render", ue], ["__scopeId", "data-v-ee9d40cc"]]);
|
|
733
733
|
export {
|
|
734
734
|
De as KV_LEND_CTA_FRAGMENT,
|
|
735
735
|
ye as KV_LEND_CTA_USER_FRAGMENT,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.61.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"embla-carousel-fade",
|
|
115
115
|
"popper.js"
|
|
116
116
|
],
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "af604e490b9ad129ebc44f950c32b485ab413e18"
|
|
118
118
|
}
|