@kiva/kv-components 8.0.2 → 8.1.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 +68 -67
- package/dist/utils/loanUtils.d.ts +1 -0
- package/dist/utils/loanUtils.js +63 -55
- package/dist/vue/KvClassicLoanCard.vue.d.ts +18 -0
- package/dist/vue/KvCompactLoanCard.css +1 -1
- package/dist/vue/KvCompactLoanCard.js +90 -65
- package/dist/vue/KvCompactLoanCard.vue.d.ts +67 -41
- package/dist/vue/KvCompactLoanCard2.js +108 -87
- package/dist/vue/KvIntroductionLoanCard.vue.d.ts +18 -0
- package/dist/vue/KvLendCta.css +1 -1
- package/dist/vue/KvLendCta.js +37 -37
- package/dist/vue/KvLoanUse.vue.d.ts +18 -0
- package/dist/vue/KvLoanUse2.js +23 -12
- package/dist/vue/KvWideLoanCard.vue.d.ts +18 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -6,13 +6,13 @@ import { default as p } from "./vue/KvCardFrame.js";
|
|
|
6
6
|
import { default as u } from "./vue/KvCarousel.js";
|
|
7
7
|
import { default as K } from "./vue/KvCartModal.js";
|
|
8
8
|
import { default as A } from "./vue/KvCartPill.js";
|
|
9
|
-
import { default as
|
|
9
|
+
import { default as C } 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 { default as E } from "./vue/KvClassicLoanCard.js";
|
|
13
13
|
import { default as O } from "./vue/KvCompactLoanCard.js";
|
|
14
14
|
import { default as I } from "./vue/KvCommentsAdd.js";
|
|
15
|
-
import { default as
|
|
15
|
+
import { default as g } from "./vue/KvCommentsContainer.js";
|
|
16
16
|
import { default as G } from "./vue/KvCommentsHeartButton.js";
|
|
17
17
|
import { default as h } from "./vue/KvCommentsList.js";
|
|
18
18
|
import { default as D } from "./vue/KvCommentsListItem.js";
|
|
@@ -32,13 +32,13 @@ import { default as so } from "./vue/KvIntroductionLoanCard.js";
|
|
|
32
32
|
import { default as xo } from "./vue/KvLendAmountButton.js";
|
|
33
33
|
import { default as no } from "./vue/KvLendCta.js";
|
|
34
34
|
import { default as vo } from "./vue/KvLightbox.js";
|
|
35
|
-
import { default as
|
|
35
|
+
import { default as io } from "./vue/KvLineGraph.js";
|
|
36
36
|
import { default as _o } from "./vue/KvLoanActivities.js";
|
|
37
37
|
import { default as No } from "./vue/KvLoanBookmark.js";
|
|
38
38
|
import { default as co } from "./vue/KvLoanCallouts.js";
|
|
39
39
|
import { KV_LOAN_INFO_CARD_FRAGMENT as Ro, default as Oo } from "./vue/KvLoanInfoCard.js";
|
|
40
40
|
import { default as Io } from "./vue/KvLoanProgressGroup.js";
|
|
41
|
-
import { default as
|
|
41
|
+
import { default as go } from "./vue/KvLoanTag.js";
|
|
42
42
|
import { default as Go } from "./vue/KvLoanTeamPick.js";
|
|
43
43
|
import { default as ho } from "./vue/KvLoanUse.js";
|
|
44
44
|
import { default as Do } from "./vue/KvLoadingPlaceholder.js";
|
|
@@ -59,13 +59,13 @@ import { default as pe } from "./vue/KvSwitch.js";
|
|
|
59
59
|
import { default as ue } from "./vue/KvTab.js";
|
|
60
60
|
import { default as Ke } from "./vue/KvTabPanel.js";
|
|
61
61
|
import { default as Ae } from "./vue/KvTabs.js";
|
|
62
|
-
import { default as
|
|
62
|
+
import { default as Ce } from "./vue/KvTextInput.js";
|
|
63
63
|
import { default as Le } from "./vue/KvTextLink.js";
|
|
64
64
|
import { default as Te } from "./vue/KvThemeProvider.js";
|
|
65
65
|
import { default as Ee } from "./vue/KvToast.js";
|
|
66
66
|
import { default as Oe } from "./vue/KvTooltip.js";
|
|
67
67
|
import { default as Ie } from "./vue/KvTreeMapChart.js";
|
|
68
|
-
import { default as
|
|
68
|
+
import { default as ge } from "./vue/KvUserAvatar.js";
|
|
69
69
|
import { default as Ge } from "./vue/KvUtilityMenu.js";
|
|
70
70
|
import { default as he } from "./vue/KvVerticalCarousel.js";
|
|
71
71
|
import { default as De } from "./vue/KvVotingCard.js";
|
|
@@ -82,62 +82,62 @@ import { abc as ar, indexIn as fr, startsWith as lr } from "./utils/comparators.
|
|
|
82
82
|
import { debounce as sr } from "./utils/debounce.js";
|
|
83
83
|
import { useEventListener as pr } from "./utils/event.js";
|
|
84
84
|
import { collapse as ur, expand as nr } from "./utils/expander.js";
|
|
85
|
-
import { getKivaImageUrl as vr, isLegacyPlaceholderAvatar as Ar, randomizedUserAvatarClass as
|
|
85
|
+
import { getKivaImageUrl as vr, isLegacyPlaceholderAvatar as Ar, randomizedUserAvatarClass as ir } from "./utils/imageUtils.js";
|
|
86
86
|
import { LOAN_CALLOUTS_FRAGMENT as _r, LOAN_GEOCODE_FRAGMENT as Lr, LOAN_PROGRESS_FRAGMENT as Nr, loanCardComputedProperties as Tr, loanCardMethods as cr } from "./utils/loanCard.js";
|
|
87
|
-
import { BALANCE_CAMPAIGN as Rr, BASE_CAMPAIGN as Or, ERL_COOKIE_NAME as Mr, NO_BALANCE_CAMPAIGN as Ir, TOP_UP_CAMPAIGN as Sr, getDropdownPriceArray as
|
|
88
|
-
import { animationCoordinator as
|
|
89
|
-
import { lockPrintSingleEl as
|
|
90
|
-
import { lockScroll as
|
|
91
|
-
import { buildTailwindClassName as
|
|
92
|
-
import { throttle as
|
|
93
|
-
import { isTargetElement as
|
|
94
|
-
import { getTreemap as
|
|
95
|
-
import { KvBlueskyIcon as
|
|
96
|
-
import { KV_CLASSIC_LOAN_CARD_FRAGMENT as
|
|
97
|
-
import { KV_COMPACT_LOAN_CARD_FRAGMENT as
|
|
98
|
-
import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as
|
|
99
|
-
import { KV_LEND_CTA_FRAGMENT as
|
|
100
|
-
import { KV_LOAN_ACTIVITIES_FRAGMENT as
|
|
101
|
-
import { KV_LOAN_BOOKMARK_FRAGMENT as
|
|
102
|
-
import { KV_LOAN_TAG_FRAGMENT as
|
|
103
|
-
import { KV_LOAN_USE_FRAGMENT as
|
|
104
|
-
import { KV_WIDE_LOAN_CARD_FRAGMENT as Pt, KV_WIDE_LOAN_CARD_USER_FRAGMENT as
|
|
87
|
+
import { BALANCE_CAMPAIGN as Rr, BASE_CAMPAIGN as Or, ERL_COOKIE_NAME as Mr, NO_BALANCE_CAMPAIGN as Ir, TOP_UP_CAMPAIGN as Sr, getDropdownPriceArray as gr, getLendCtaSelectedOption as Pr, isBetween25And50 as Gr, isLessThan25 as Fr, truncateStringByWords as hr } from "./utils/loanUtils.js";
|
|
88
|
+
import { animationCoordinator as Dr, generateMapMarkers as Br, getCoordinatesBetween as yr, getCountryColor as br, getLoansIntervals as kr } from "./utils/mapUtils.js";
|
|
89
|
+
import { lockPrintSingleEl as wr, unlockPrintSingleEl as Wr } from "./utils/printing.js";
|
|
90
|
+
import { lockScroll as jr, lockScrollSmallOnly as zr, unlockScroll as Qr, unlockScrollSmallOnly as qr } from "./utils/scrollLock.js";
|
|
91
|
+
import { buildTailwindClassName as Xr, headerNumberCase as Yr, kebabCase as Zr, removeObjectProperty as $r } from "./utils/themeUtils.js";
|
|
92
|
+
import { throttle as et } from "./utils/throttle.js";
|
|
93
|
+
import { isTargetElement as tt, offBodyTouchstart as at, onBodyTouchstart as ft } from "./utils/touchEvents.js";
|
|
94
|
+
import { getTreemap as mt } from "./utils/treemap.js";
|
|
95
|
+
import { KvBlueskyIcon as dt } from "./assets/icons/bluesky.js";
|
|
96
|
+
import { KV_CLASSIC_LOAN_CARD_FRAGMENT as xt, KV_CLASSIC_LOAN_CARD_USER_FRAGMET as ut } from "./vue/KvClassicLoanCard2.js";
|
|
97
|
+
import { KV_COMPACT_LOAN_CARD_FRAGMENT as Kt, KV_COMPACT_LOAN_CARD_USER_FRAGMENT as vt } from "./vue/KvCompactLoanCard2.js";
|
|
98
|
+
import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as it, KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT as Ct } from "./vue/KvIntroductionLoanCard2.js";
|
|
99
|
+
import { KV_LEND_CTA_FRAGMENT as Lt, KV_LEND_CTA_USER_FRAGMENT as Nt } from "./vue/KvLendCta2.js";
|
|
100
|
+
import { KV_LOAN_ACTIVITIES_FRAGMENT as ct } from "./vue/KvLoanActivities2.js";
|
|
101
|
+
import { KV_LOAN_BOOKMARK_FRAGMENT as Rt } from "./vue/KvLoanBookmark2.js";
|
|
102
|
+
import { KV_LOAN_TAG_FRAGMENT as Mt } from "./vue/KvLoanTag2.js";
|
|
103
|
+
import { KV_LOAN_USE_FRAGMENT as St } from "./vue/KvLoanUse2.js";
|
|
104
|
+
import { KV_WIDE_LOAN_CARD_FRAGMENT as Pt, KV_WIDE_LOAN_CARD_USER_FRAGMENT as Gt } from "./vue/KvWideLoanCard2.js";
|
|
105
105
|
export {
|
|
106
106
|
qe as Alea,
|
|
107
107
|
Rr as BALANCE_CAMPAIGN,
|
|
108
108
|
Or as BASE_CAMPAIGN,
|
|
109
109
|
Mr as ERL_COOKIE_NAME,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
110
|
+
xt as KV_CLASSIC_LOAN_CARD_FRAGMENT,
|
|
111
|
+
ut as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
|
|
112
|
+
Kt as KV_COMPACT_LOAN_CARD_FRAGMENT,
|
|
113
|
+
vt as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
|
|
114
|
+
it as KV_INTRODUCTION_LOAN_CARD_FRAGMENT,
|
|
115
115
|
Ct as KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT,
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
116
|
+
Lt as KV_LEND_CTA_FRAGMENT,
|
|
117
|
+
Nt as KV_LEND_CTA_USER_FRAGMENT,
|
|
118
|
+
ct as KV_LOAN_ACTIVITIES_FRAGMENT,
|
|
119
|
+
Rt as KV_LOAN_BOOKMARK_FRAGMENT,
|
|
120
120
|
Ro as KV_LOAN_INFO_CARD_FRAGMENT,
|
|
121
|
-
|
|
122
|
-
|
|
121
|
+
Mt as KV_LOAN_TAG_FRAGMENT,
|
|
122
|
+
St as KV_LOAN_USE_FRAGMENT,
|
|
123
123
|
Pt as KV_WIDE_LOAN_CARD_FRAGMENT,
|
|
124
|
-
|
|
124
|
+
Gt as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
|
|
125
125
|
r as KvAccordionItem,
|
|
126
126
|
a as KvActivityRow,
|
|
127
127
|
we as KvAtbModal,
|
|
128
|
-
|
|
128
|
+
dt as KvBlueskyIcon,
|
|
129
129
|
l as KvBorrowerImage,
|
|
130
130
|
s as KvButton,
|
|
131
131
|
p as KvCardFrame,
|
|
132
132
|
u as KvCarousel,
|
|
133
133
|
K as KvCartModal,
|
|
134
134
|
A as KvCartPill,
|
|
135
|
-
|
|
135
|
+
C as KvCheckbox,
|
|
136
136
|
L as KvCheckoutReceipt,
|
|
137
137
|
T as KvChip,
|
|
138
138
|
E as KvClassicLoanCard,
|
|
139
139
|
I as KvCommentsAdd,
|
|
140
|
-
|
|
140
|
+
g as KvCommentsContainer,
|
|
141
141
|
G as KvCommentsHeartButton,
|
|
142
142
|
h as KvCommentsList,
|
|
143
143
|
D as KvCommentsListItem,
|
|
@@ -158,7 +158,7 @@ export {
|
|
|
158
158
|
xo as KvLendAmountButton,
|
|
159
159
|
no as KvLendCta,
|
|
160
160
|
vo as KvLightbox,
|
|
161
|
-
|
|
161
|
+
io as KvLineGraph,
|
|
162
162
|
Do as KvLoadingPlaceholder,
|
|
163
163
|
yo as KvLoadingSpinner,
|
|
164
164
|
_o as KvLoanActivities,
|
|
@@ -166,7 +166,7 @@ export {
|
|
|
166
166
|
co as KvLoanCallouts,
|
|
167
167
|
Oo as KvLoanInfoCard,
|
|
168
168
|
Io as KvLoanProgressGroup,
|
|
169
|
-
|
|
169
|
+
go as KvLoanTag,
|
|
170
170
|
Go as KvLoanTeamPick,
|
|
171
171
|
ho as KvLoanUse,
|
|
172
172
|
ko as KvMap,
|
|
@@ -186,13 +186,13 @@ export {
|
|
|
186
186
|
ue as KvTab,
|
|
187
187
|
Ke as KvTabPanel,
|
|
188
188
|
Ae as KvTabs,
|
|
189
|
-
|
|
189
|
+
Ce as KvTextInput,
|
|
190
190
|
Le as KvTextLink,
|
|
191
191
|
Te as KvThemeProvider,
|
|
192
192
|
Ee as KvToast,
|
|
193
193
|
Oe as KvTooltip,
|
|
194
194
|
Ie as KvTreeMapChart,
|
|
195
|
-
|
|
195
|
+
ge as KvUserAvatar,
|
|
196
196
|
Ge as KvUtilityMenu,
|
|
197
197
|
he as KvVerticalCarousel,
|
|
198
198
|
De as KvVotingCard,
|
|
@@ -206,43 +206,44 @@ export {
|
|
|
206
206
|
Ir as NO_BALANCE_CAMPAIGN,
|
|
207
207
|
Sr as TOP_UP_CAMPAIGN,
|
|
208
208
|
ar as abc,
|
|
209
|
-
|
|
210
|
-
|
|
209
|
+
Dr as animationCoordinator,
|
|
210
|
+
Xr as buildTailwindClassName,
|
|
211
211
|
rr as carouselUtil,
|
|
212
212
|
ur as collapse,
|
|
213
213
|
sr as debounce,
|
|
214
214
|
nr as expand,
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
215
|
+
Br as generateMapMarkers,
|
|
216
|
+
yr as getCoordinatesBetween,
|
|
217
|
+
br as getCountryColor,
|
|
218
|
+
gr as getDropdownPriceArray,
|
|
219
219
|
vr as getKivaImageUrl,
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
220
|
+
Pr as getLendCtaSelectedOption,
|
|
221
|
+
kr as getLoansIntervals,
|
|
222
|
+
mt as getTreemap,
|
|
223
223
|
Ye as groupBy,
|
|
224
|
-
|
|
224
|
+
Yr as headerNumberCase,
|
|
225
225
|
fr as indexIn,
|
|
226
226
|
Gr as isBetween25And50,
|
|
227
227
|
Ar as isLegacyPlaceholderAvatar,
|
|
228
228
|
Fr as isLessThan25,
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
tt as isTargetElement,
|
|
230
|
+
Zr as kebabCase,
|
|
231
231
|
Tr as loanCardComputedProperties,
|
|
232
232
|
cr as loanCardMethods,
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
233
|
+
wr as lockPrintSingleEl,
|
|
234
|
+
jr as lockScroll,
|
|
235
|
+
zr as lockScrollSmallOnly,
|
|
236
|
+
at as offBodyTouchstart,
|
|
237
|
+
ft as onBodyTouchstart,
|
|
238
|
+
ir as randomizedUserAvatarClass,
|
|
239
|
+
$r as removeObjectProperty,
|
|
240
240
|
Ze as sortBy,
|
|
241
241
|
lr as startsWith,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
Qr as
|
|
242
|
+
et as throttle,
|
|
243
|
+
hr as truncateStringByWords,
|
|
244
|
+
Wr as unlockPrintSingleEl,
|
|
245
|
+
Qr as unlockScroll,
|
|
246
|
+
qr as unlockScrollSmallOnly,
|
|
246
247
|
or as useAttrs,
|
|
247
248
|
pr as useEventListener
|
|
248
249
|
};
|
|
@@ -9,3 +9,4 @@ export type GetCookieFn = (name: string) => string | undefined;
|
|
|
9
9
|
export type SetCookieFn = (name: string, value: string, options?: any) => void;
|
|
10
10
|
export declare function getLendCtaSelectedOption(getCookie: GetCookieFn | undefined, setCookie: SetCookieFn | undefined, enableFiveDollarsNotes: boolean, campaign: string, unreservedAmount: string | number, userBalance: number | undefined, fiveDollarsSelected: boolean): string;
|
|
11
11
|
export declare function getDropdownPriceArray(unreservedAmount: string | number, isCompleteLoanActive?: boolean, minAmount?: number, enableFiveDollarsNotes?: boolean, isVisitor?: boolean, inPfp?: boolean): string[];
|
|
12
|
+
export declare function truncateStringByWords(str: string, truncateWordsNumber: number): string;
|
package/dist/utils/loanUtils.js
CHANGED
|
@@ -1,83 +1,91 @@
|
|
|
1
1
|
import l from "numeral";
|
|
2
|
-
const N = "kverlfivedollarnotes", P = "TOPUP-VB-BALANCE-MPV1", a = "BASE-VB_BALANCE_MPV1", A = "REPAYMENT-NOTIFICATION_BALANCE_MPV1",
|
|
3
|
-
function
|
|
4
|
-
return
|
|
2
|
+
const N = "kverlfivedollarnotes", P = "TOPUP-VB-BALANCE-MPV1", a = "BASE-VB_BALANCE_MPV1", A = "REPAYMENT-NOTIFICATION_BALANCE_MPV1", d = "REPAYMENT-NOTIFICATION_NO-BALANCE_MPV1";
|
|
3
|
+
function y(t) {
|
|
4
|
+
return t > 20 ? 25 : t > 15 ? 20 : t > 10 ? 15 : t > 5 ? 10 : 5;
|
|
5
5
|
}
|
|
6
|
-
function
|
|
7
|
-
const
|
|
8
|
-
return
|
|
6
|
+
function C(t) {
|
|
7
|
+
const r = typeof t == "string" ? parseFloat(t) : t;
|
|
8
|
+
return r <= 50 && r > 25;
|
|
9
9
|
}
|
|
10
|
-
function
|
|
11
|
-
const
|
|
12
|
-
return
|
|
10
|
+
function E(t) {
|
|
11
|
+
const r = typeof t == "string" ? parseFloat(t) : t;
|
|
12
|
+
return r < 25 && r > 0;
|
|
13
13
|
}
|
|
14
|
-
function
|
|
15
|
-
const c = typeof
|
|
16
|
-
if (o &&
|
|
14
|
+
function b(t, r, o, e, i, n, f) {
|
|
15
|
+
const c = typeof i == "string" ? parseFloat(i) : i;
|
|
16
|
+
if (o && f)
|
|
17
17
|
return "5";
|
|
18
|
-
if (o && typeof
|
|
19
|
-
let u =
|
|
18
|
+
if (o && typeof n < "u") {
|
|
19
|
+
let u = t == null ? void 0 : t(N);
|
|
20
20
|
if (e && typeof e == "string" && !u) {
|
|
21
|
-
const
|
|
22
|
-
|
|
21
|
+
const s = /* @__PURE__ */ new Date();
|
|
22
|
+
s.setHours(s.getHours() + 24);
|
|
23
23
|
const p = e.toUpperCase();
|
|
24
|
-
u = p.includes(P) ? P : p.includes(a) ? a : p.includes(A) ? A : p.includes(
|
|
24
|
+
u = p.includes(P) ? P : p.includes(a) ? a : p.includes(A) ? A : p.includes(d) ? d : "", u && r && r(N, u, { expires: s });
|
|
25
25
|
}
|
|
26
26
|
if (u) {
|
|
27
|
-
let
|
|
28
|
-
return u === a ? (
|
|
27
|
+
let s = Math.floor(n / 5) * 5;
|
|
28
|
+
return u === a ? (s = s === 0 ? 5 : s > 25 ? 25 : s, Number(s <= c ? s : c).toFixed()) : u === A ? (s = y(s), Number(s).toFixed()) : Number(c > 5 ? 5 : c).toFixed();
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
return
|
|
31
|
+
return C(c) || E(c) ? Number(c).toFixed() : "25";
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
const
|
|
35
|
-
let o = 100, e =
|
|
36
|
-
for (let
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
39
|
-
|
|
33
|
+
function O(t) {
|
|
34
|
+
const r = [];
|
|
35
|
+
let o = 100, e = t > 1e3 ? 1e3 : t, i = e / o;
|
|
36
|
+
for (let n = 1; n <= i; n += 1) {
|
|
37
|
+
const f = o * n + 500;
|
|
38
|
+
if (f > e) break;
|
|
39
|
+
r.push(l(f).format("0,0"));
|
|
40
40
|
}
|
|
41
|
-
o = 1e3, e =
|
|
42
|
-
for (let
|
|
43
|
-
const
|
|
44
|
-
if (
|
|
45
|
-
|
|
41
|
+
o = 1e3, e = t > 1e4 ? 1e4 : t, i = e / o;
|
|
42
|
+
for (let n = 1; n <= i; n += 1) {
|
|
43
|
+
const f = o * n + 1e3;
|
|
44
|
+
if (f > e) break;
|
|
45
|
+
r.push(l(f).format("0,0"));
|
|
46
46
|
}
|
|
47
|
-
return
|
|
47
|
+
return r.includes(l(e).format("0,0")) || r.push(l(e).format("0,0")), r;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
const
|
|
51
|
-
for (let i = 1; i <= o; i += 1)
|
|
52
|
-
n.push(l(5 * i).format("0,0"));
|
|
53
|
-
if (r > t)
|
|
54
|
-
for (let i = 3; i <= e; i += 1)
|
|
55
|
-
n.push(l(25 * i).format("0,0"));
|
|
56
|
-
return n;
|
|
57
|
-
}
|
|
58
|
-
function _(r, t) {
|
|
59
|
-
const o = r / t, e = [];
|
|
49
|
+
function _(t) {
|
|
50
|
+
const r = t < 50 ? t : 50, o = r / 5, e = Math.ceil((t - r) / 25) + 1, i = [];
|
|
60
51
|
for (let n = 1; n <= o; n += 1)
|
|
61
|
-
|
|
52
|
+
i.push(l(5 * n).format("0,0"));
|
|
53
|
+
if (t > r)
|
|
54
|
+
for (let n = 3; n <= e; n += 1)
|
|
55
|
+
i.push(l(25 * n).format("0,0"));
|
|
56
|
+
return i;
|
|
57
|
+
}
|
|
58
|
+
function h(t, r) {
|
|
59
|
+
const o = t / r, e = [];
|
|
60
|
+
for (let i = 1; i <= o; i += 1)
|
|
61
|
+
e.push(l(r * i).format("0,0"));
|
|
62
62
|
return e;
|
|
63
63
|
}
|
|
64
|
-
function m(
|
|
65
|
-
const
|
|
66
|
-
let c = e && !
|
|
67
|
-
if (
|
|
68
|
-
const u =
|
|
64
|
+
function m(t, r = !1, o = 25, e = !1, i = !0, n = !1) {
|
|
65
|
+
const f = typeof t == "number" ? t : parseFloat(t);
|
|
66
|
+
let c = e && !n ? _(f).slice(0, 28) : h(f, o).slice(0, 20);
|
|
67
|
+
if (f > 500 && !i) {
|
|
68
|
+
const u = O(f);
|
|
69
69
|
c = c.concat(u);
|
|
70
70
|
}
|
|
71
|
-
return
|
|
71
|
+
return r && !c.includes(Number(t).toFixed()) && c.push(Number(t).toFixed()), c;
|
|
72
|
+
}
|
|
73
|
+
function B(t, r) {
|
|
74
|
+
if (!t) return;
|
|
75
|
+
if (r <= 0) return t;
|
|
76
|
+
const o = t.trim().split(" ");
|
|
77
|
+
let i = o.slice(0, r).join(" ");
|
|
78
|
+
return o.length > r && (i += "..."), i;
|
|
72
79
|
}
|
|
73
80
|
export {
|
|
74
81
|
A as BALANCE_CAMPAIGN,
|
|
75
82
|
a as BASE_CAMPAIGN,
|
|
76
83
|
N as ERL_COOKIE_NAME,
|
|
77
|
-
|
|
84
|
+
d as NO_BALANCE_CAMPAIGN,
|
|
78
85
|
P as TOP_UP_CAMPAIGN,
|
|
79
86
|
m as getDropdownPriceArray,
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
87
|
+
b as getLendCtaSelectedOption,
|
|
88
|
+
C as isBetween25And50,
|
|
89
|
+
E as isLessThan25,
|
|
90
|
+
B as truncateStringByWords
|
|
83
91
|
};
|
|
@@ -421,6 +421,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
421
421
|
type: BooleanConstructor;
|
|
422
422
|
default: boolean;
|
|
423
423
|
};
|
|
424
|
+
showReadMore: {
|
|
425
|
+
type: BooleanConstructor;
|
|
426
|
+
default: boolean;
|
|
427
|
+
};
|
|
428
|
+
truncateWordsNumber: {
|
|
429
|
+
type: NumberConstructor;
|
|
430
|
+
default: number;
|
|
431
|
+
};
|
|
424
432
|
}>, {}, {}, {
|
|
425
433
|
helpLanguage(): "helps" | "helped";
|
|
426
434
|
isDirect(): boolean;
|
|
@@ -476,6 +484,14 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
476
484
|
type: BooleanConstructor;
|
|
477
485
|
default: boolean;
|
|
478
486
|
};
|
|
487
|
+
showReadMore: {
|
|
488
|
+
type: BooleanConstructor;
|
|
489
|
+
default: boolean;
|
|
490
|
+
};
|
|
491
|
+
truncateWordsNumber: {
|
|
492
|
+
type: NumberConstructor;
|
|
493
|
+
default: number;
|
|
494
|
+
};
|
|
479
495
|
}>> & Readonly<{}>, {
|
|
480
496
|
name: string;
|
|
481
497
|
use: string;
|
|
@@ -489,6 +505,8 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
|
|
|
489
505
|
boldName: boolean;
|
|
490
506
|
country: string;
|
|
491
507
|
useIndicativeHelpText: boolean;
|
|
508
|
+
showReadMore: boolean;
|
|
509
|
+
truncateWordsNumber: number;
|
|
492
510
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
493
511
|
KvLoanProgressGroup: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
494
512
|
moneyLeft: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-use[data-v-
|
|
1
|
+
.loan-card-use[data-v-12c364c9]:hover,.loan-card-use[data-v-12c364c9]: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-12c364c9]{text-decoration-line:underline}.loan-card-progress[data-v-12c364c9]:hover,.loan-card-progress[data-v-12c364c9]:focus{text-decoration-line:none}.loan-card-use-text[data-v-12c364c9] 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-12c364c9] form,.loan-card-cta[data-v-12c364c9] fieldset,.loan-card-cta[data-v-12c364c9] .tw-w-full,.loan-card-cta[data-v-12c364c9] button{height:40px!important;max-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-12c364c9] .tw-inline-flex{height:40px!important;max-height:40px!important;min-height:40px!important}
|