@kiva/kv-components 8.11.2 → 8.11.4
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/vue/KvAtbModal.css +1 -1
- package/dist/vue/KvAtbModal.js +5 -5
- package/dist/vue/KvCheckoutReceipt.css +1 -1
- package/dist/vue/KvCheckoutReceipt.js +31 -31
- package/dist/vue/KvClassicLoanCard.css +1 -1
- package/dist/vue/KvClassicLoanCard.js +24 -24
- package/dist/vue/KvFlag.css +1 -1
- package/dist/vue/KvFlag.js +6 -6
- package/dist/vue/KvIntroductionLoanCard.css +1 -1
- package/dist/vue/KvIntroductionLoanCard.js +55 -55
- package/dist/vue/KvLineGraph.js +14 -14
- package/dist/vue/KvLoanActivities.css +1 -1
- package/dist/vue/KvLoanActivities.js +22 -22
- package/dist/vue/KvLoanInfoCard.css +1 -1
- package/dist/vue/KvLoanInfoCard.js +34 -34
- package/dist/vue/KvLoanProgressGroup.css +1 -1
- package/dist/vue/KvLoanProgressGroup.js +11 -11
- package/dist/vue/KvLoanTeamPick.js +1 -1
- package/dist/vue/KvPill.js +1 -1
- package/dist/vue/KvSideSheet.js +15 -12
- package/dist/vue/KvTextLink.js +1 -1
- package/dist/vue/KvVotingCard.css +1 -1
- package/dist/vue/KvVotingCard.js +19 -19
- package/dist/vue/KvVotingCardV2.js +23 -23
- package/dist/vue/KvWideLoanCard.css +1 -1
- package/dist/vue/KvWideLoanCard.js +28 -28
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +31 -31
- package/package.json +3 -3
package/dist/vue/KvAtbModal.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@media (min-width: 45.875rem){.cart-modal[data-v-
|
|
1
|
+
@media (min-width: 45.875rem){.cart-modal[data-v-22f7aa1c] div.container{right:var(--modal-right)!important;top:var(--modal-top)!important}}
|
package/dist/vue/KvAtbModal.js
CHANGED
|
@@ -23,11 +23,11 @@ const u = {
|
|
|
23
23
|
xmlns: "http://www.w3.org/2000/svg"
|
|
24
24
|
}, Z = {
|
|
25
25
|
key: 2,
|
|
26
|
-
class: "tw-text-
|
|
26
|
+
class: "tw-text-base"
|
|
27
27
|
};
|
|
28
28
|
function _(g, l, e, C, v, y) {
|
|
29
|
-
const
|
|
30
|
-
return e.modalVisible ? (o(), h(
|
|
29
|
+
const a = r("KvCartPill"), s = r("KvCartModal");
|
|
30
|
+
return e.modalVisible ? (o(), h(s, {
|
|
31
31
|
key: 0,
|
|
32
32
|
style: w({
|
|
33
33
|
"--modal-right": `${C.modalPosition.right}px`,
|
|
@@ -42,7 +42,7 @@ function _(g, l, e, C, v, y) {
|
|
|
42
42
|
}, {
|
|
43
43
|
content: n(() => [
|
|
44
44
|
e.showModalContent || C.isFirstLoan ? (o(), L("div", u, [
|
|
45
|
-
c(
|
|
45
|
+
c(a, {
|
|
46
46
|
class: "!tw-w-full tw-justify-center",
|
|
47
47
|
"borrower-name": C.borrowerName,
|
|
48
48
|
"milestones-number": e.milestonesNumber,
|
|
@@ -228,7 +228,7 @@ function _(g, l, e, C, v, y) {
|
|
|
228
228
|
_: 1
|
|
229
229
|
}, 8, ["style", "visible", "photo-path", "basket-count", "category-name", "onCartModalClosed"])) : i("", !0);
|
|
230
230
|
}
|
|
231
|
-
const q = /* @__PURE__ */ m(d, [["render", _], ["__scopeId", "data-v-
|
|
231
|
+
const q = /* @__PURE__ */ m(d, [["render", _], ["__scopeId", "data-v-22f7aa1c"]]);
|
|
232
232
|
export {
|
|
233
233
|
q as default
|
|
234
234
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.section[data-v-
|
|
1
|
+
.section[data-v-63dc5a55]{border-bottom-width:.0625rem;border-top-width:0px;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));padding:.5rem;display:block;overflow:hidden}@media print{.section[data-v-63dc5a55]{page-break-inside:avoid}}.section--lender-info[data-v-63dc5a55]{padding-top:0}.section--print[data-v-63dc5a55]{border-bottom:0}.checkout-receipt__headline[data-v-63dc5a55]{text-align:center;margin-bottom:1.5rem}.checkout-receipt__item-list[data-v-63dc5a55]{list-style:none;margin:0;width:100%}.loan__name[data-v-63dc5a55]{margin-bottom:.5rem}.loan__name--inline[data-v-63dc5a55]{display:inline-block}.loan__amount[data-v-63dc5a55]{text-align:right}.total[data-v-63dc5a55]{display:flex;align-items:baseline}.total__header[data-v-63dc5a55],.total__amount[data-v-63dc5a55]{text-align:right;flex:1}.total__amount[data-v-63dc5a55]{flex-grow:.33}.payments[data-v-63dc5a55]{border-bottom:none}.payments__type[data-v-63dc5a55]{display:flex;text-align:right}.payments__type-title[data-v-63dc5a55],.payments__type-amount[data-v-63dc5a55]{flex:1}.print[data-v-63dc5a55]{margin:0 auto}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import C from "./KvCheckoutReceipt2.js";
|
|
2
2
|
import { resolveComponent as m, resolveDirective as f, openBlock as s, createElementBlock as o, createElementVNode as e, toDisplayString as i, createCommentVNode as d, Fragment as c, renderList as k, createTextVNode as l, createVNode as p, withCtx as v, withDirectives as b } from "vue";
|
|
3
3
|
import "./KvCheckoutReceipt.css";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
4
|
+
import x from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
const g = { class: "checkout-receipt" }, T = { class: "checkout-receipt__wrapper tw-bg-primary tw-p-4 tw-rounded-xs tw-border tw-border-tertiary" }, j = {
|
|
6
6
|
"data-testid": "lender-info",
|
|
7
7
|
class: "section section--lender-info"
|
|
8
8
|
}, O = {
|
|
@@ -19,7 +19,7 @@ const x = { class: "checkout-receipt" }, T = { class: "checkout-receipt__wrapper
|
|
|
19
19
|
"data-testid": "loan",
|
|
20
20
|
class: "loan"
|
|
21
21
|
}, N = {
|
|
22
|
-
class: "loan__name data-hj-suppress",
|
|
22
|
+
class: "loan__name data-hj-suppress tw-text-title",
|
|
23
23
|
"data-testid": "loan-name"
|
|
24
24
|
}, D = ["href"], P = { class: "tw-text-small" }, R = {
|
|
25
25
|
class: "tw-text-secondary",
|
|
@@ -28,7 +28,7 @@ const x = { class: "checkout-receipt" }, T = { class: "checkout-receipt__wrapper
|
|
|
28
28
|
key: 0,
|
|
29
29
|
"data-testid": "loan-use"
|
|
30
30
|
}, E = {
|
|
31
|
-
class: "loan__amount tw-text-
|
|
31
|
+
class: "loan__amount tw-text-title",
|
|
32
32
|
"data-testid": "loan-amount"
|
|
33
33
|
}, B = {
|
|
34
34
|
"data-testid": "kcard",
|
|
@@ -44,7 +44,7 @@ const x = { class: "checkout-receipt" }, T = { class: "checkout-receipt__wrapper
|
|
|
44
44
|
class: "loan__details data-hj-suppress",
|
|
45
45
|
"data-testid": "kcard-details"
|
|
46
46
|
}, L = {
|
|
47
|
-
class: "loan__amount tw-text-
|
|
47
|
+
class: "loan__amount tw-text-title",
|
|
48
48
|
"data-testid": "kcard-amount"
|
|
49
49
|
}, S = {
|
|
50
50
|
key: 0,
|
|
@@ -54,20 +54,20 @@ const x = { class: "checkout-receipt" }, T = { class: "checkout-receipt__wrapper
|
|
|
54
54
|
class: "loan",
|
|
55
55
|
"data-testid": "donation"
|
|
56
56
|
}, J = {
|
|
57
|
-
class: "loan__amount tw-text-
|
|
57
|
+
class: "loan__amount tw-text-title",
|
|
58
58
|
"data-testid": "donation-amount"
|
|
59
59
|
}, M = {
|
|
60
60
|
"data-testid": "receipt-total",
|
|
61
61
|
class: "section total"
|
|
62
62
|
}, Q = {
|
|
63
|
-
class: "total__amount tw-text-
|
|
63
|
+
class: "total__amount tw-text-title",
|
|
64
64
|
"data-testid": "total-amount"
|
|
65
65
|
}, X = { class: "section payments" }, Z = { class: "payments__list" }, $ = {
|
|
66
66
|
key: 0,
|
|
67
67
|
"data-testid": "payment-type-kcard",
|
|
68
68
|
class: "total"
|
|
69
69
|
}, tt = {
|
|
70
|
-
class: "total__amount tw-text-
|
|
70
|
+
class: "total__amount tw-text-title",
|
|
71
71
|
"data-testid": "kcard-payment-amount"
|
|
72
72
|
}, et = {
|
|
73
73
|
key: 1,
|
|
@@ -78,33 +78,33 @@ const x = { class: "checkout-receipt" }, T = { class: "checkout-receipt__wrapper
|
|
|
78
78
|
"data-testid": "payment-type-free-credit",
|
|
79
79
|
class: "total"
|
|
80
80
|
}, it = {
|
|
81
|
-
class: "total__amount tw-text-
|
|
81
|
+
class: "total__amount tw-text-title",
|
|
82
82
|
"data-testid": "free-credit-payment-amount"
|
|
83
83
|
}, st = {
|
|
84
84
|
key: 3,
|
|
85
85
|
"data-testid": "payment-type-kiva-credit-added",
|
|
86
86
|
class: "total"
|
|
87
87
|
}, ot = {
|
|
88
|
-
class: "total__amount tw-text-
|
|
88
|
+
class: "total__amount tw-text-title",
|
|
89
89
|
"data-testid": "kiva-credit-added-payment-amount"
|
|
90
90
|
}, nt = {
|
|
91
91
|
key: 4,
|
|
92
92
|
"data-testid": "payment-kiva-credit-used",
|
|
93
93
|
class: "total"
|
|
94
94
|
}, dt = {
|
|
95
|
-
class: "total__amount tw-text-
|
|
95
|
+
class: "total__amount tw-text-title",
|
|
96
96
|
"data-testid": "kiva-credit-use-payment-amount"
|
|
97
97
|
}, lt = {
|
|
98
98
|
key: 5,
|
|
99
99
|
"data-testid": "payment-type-amount-charged",
|
|
100
100
|
class: "total"
|
|
101
101
|
}, rt = {
|
|
102
|
-
class: "total__amount tw-text-
|
|
102
|
+
class: "total__amount tw-text-title",
|
|
103
103
|
"data-testid": "amount-charged-payment-amount"
|
|
104
104
|
}, ct = { class: "section section--print print:!tw-hidden" };
|
|
105
105
|
function pt(mt, t, n, _, _t, r) {
|
|
106
|
-
const u = m("kv-material-icon"), y = m("kv-tooltip"),
|
|
107
|
-
return s(), o("div",
|
|
106
|
+
const u = m("kv-material-icon"), y = m("kv-tooltip"), w = m("kv-button"), h = f("kv-track-event");
|
|
107
|
+
return s(), o("div", g, [
|
|
108
108
|
t[25] || (t[25] = e("h2", { class: "checkout-receipt__headline" }, " Order Confirmation ", -1)),
|
|
109
109
|
e("div", T, [
|
|
110
110
|
e("section", j, [
|
|
@@ -155,7 +155,7 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
155
155
|
a.kivaCardObject.deliveryType === "print" ? (s(), o(c, { key: 0 }, [
|
|
156
156
|
e("div", null, [
|
|
157
157
|
t[3] || (t[3] = e("h3", {
|
|
158
|
-
class: "loan__name loan__name--inline",
|
|
158
|
+
class: "loan__name loan__name--inline tw-text-title",
|
|
159
159
|
"data-testid": "kcard-type-print"
|
|
160
160
|
}, " Print-it-yourself Kiva Card ", -1)),
|
|
161
161
|
p(u, {
|
|
@@ -176,7 +176,7 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
176
176
|
_: 2
|
|
177
177
|
}, 1032, ["controller"])
|
|
178
178
|
]),
|
|
179
|
-
p(
|
|
179
|
+
p(w, {
|
|
180
180
|
"data-testid": "kcard-print-button",
|
|
181
181
|
class: "tw-mb-2 print:!tw-hidden",
|
|
182
182
|
target: "_blank",
|
|
@@ -190,7 +190,7 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
190
190
|
}, 1032, ["href", "onClick"])
|
|
191
191
|
], 64)) : a.kivaCardObject.deliveryType === "postal" ? (s(), o(c, { key: 1 }, [
|
|
192
192
|
t[8] || (t[8] = e("h3", {
|
|
193
|
-
class: "loan__name",
|
|
193
|
+
class: "loan__name tw-text-title",
|
|
194
194
|
"data-testid": "kcard-type-postal"
|
|
195
195
|
}, " Postal delivery Kiva Card ", -1)),
|
|
196
196
|
e("div", U, [
|
|
@@ -206,13 +206,13 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
206
206
|
])
|
|
207
207
|
], 64)) : a.kivaCardObject.deliveryType === "lender" ? (s(), o(c, { key: 2 }, [
|
|
208
208
|
t[9] || (t[9] = e("h3", {
|
|
209
|
-
class: "loan__name",
|
|
209
|
+
class: "loan__name tw-text-title",
|
|
210
210
|
"data-testid": "kcard-type-lender"
|
|
211
211
|
}, " Kiva Card ", -1)),
|
|
212
212
|
a.kivaCardObject.recipient.name ? (s(), o("div", q, " For: " + i(a.kivaCardObject.recipient.name), 1)) : d("", !0)
|
|
213
213
|
], 64)) : a.kivaCardObject.deliveryType === "email" ? (s(), o(c, { key: 3 }, [
|
|
214
214
|
t[11] || (t[11] = e("h3", {
|
|
215
|
-
class: "loan__name",
|
|
215
|
+
class: "loan__name tw-text-title",
|
|
216
216
|
"data-testid": "kcard-type-email"
|
|
217
217
|
}, " Email delivery Kiva Card ", -1)),
|
|
218
218
|
e("div", z, [
|
|
@@ -231,7 +231,7 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
231
231
|
b((s(), o("a", W, t[12] || (t[12] = [
|
|
232
232
|
l(" Kiva portfolio ")
|
|
233
233
|
]))), [
|
|
234
|
-
[
|
|
234
|
+
[h, ["Thanks", "click", "kiva-card-portfolio"]]
|
|
235
235
|
]),
|
|
236
236
|
t[14] || (t[14] = l(". "))
|
|
237
237
|
])) : d("", !0)
|
|
@@ -241,7 +241,7 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
241
241
|
e("ul", Y, [
|
|
242
242
|
e("li", G, [
|
|
243
243
|
e("div", H, [
|
|
244
|
-
t[15] || (t[15] = e("h3", { class: "loan__name" }, " Donation to Kiva ", -1)),
|
|
244
|
+
t[15] || (t[15] = e("h3", { class: "loan__name tw-text-title" }, " Donation to Kiva ", -1)),
|
|
245
245
|
n.receipt.totals.donationTotal > 0 ? (s(), o("a", {
|
|
246
246
|
key: 0,
|
|
247
247
|
"data-testid": "print-donation-information",
|
|
@@ -253,7 +253,7 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
253
253
|
])
|
|
254
254
|
]),
|
|
255
255
|
e("li", M, [
|
|
256
|
-
t[16] || (t[16] = e("h3", { class: "total__header tw-text-
|
|
256
|
+
t[16] || (t[16] = e("h3", { class: "total__header tw-text-title" }, " Total: ", -1)),
|
|
257
257
|
e("span", Q, "$" + i(n.receipt.totals.itemTotal), 1)
|
|
258
258
|
])
|
|
259
259
|
])
|
|
@@ -262,30 +262,30 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
262
262
|
t[23] || (t[23] = e("h3", { class: "tw-text-secondary" }, " Payments ", -1)),
|
|
263
263
|
e("ul", Z, [
|
|
264
264
|
n.receipt.totals.redemptionCodeAppliedTotal > 0 ? (s(), o("li", $, [
|
|
265
|
-
t[17] || (t[17] = e("span", { class: "total__header tw-text-
|
|
265
|
+
t[17] || (t[17] = e("span", { class: "total__header tw-text-title" }, "Kiva Card:", -1)),
|
|
266
266
|
e("span", tt, " $" + i(n.receipt.totals.redemptionCodeAppliedTotal), 1)
|
|
267
267
|
])) : d("", !0),
|
|
268
268
|
n.receipt.totals.freeTrialAppliedTotal > 0 ? (s(), o("li", et, t[18] || (t[18] = [
|
|
269
|
-
e("span", { class: "total__header tw-text-
|
|
269
|
+
e("span", { class: "total__header tw-text-title" }, "Free Trial:", -1),
|
|
270
270
|
e("span", {
|
|
271
|
-
class: "total__amount tw-text-
|
|
271
|
+
class: "total__amount tw-text-title",
|
|
272
272
|
"data-testid": "free-trial-payment-amount"
|
|
273
273
|
}, "Free!", -1)
|
|
274
274
|
]))) : d("", !0),
|
|
275
275
|
n.receipt.totals.bonusAppliedTotal > 0 ? (s(), o("li", at, [
|
|
276
|
-
t[19] || (t[19] = e("span", { class: "total__header tw-text-
|
|
276
|
+
t[19] || (t[19] = e("span", { class: "total__header tw-text-title" }, "Free credit:", -1)),
|
|
277
277
|
e("span", it, i(n.receipt.totals.bonusAppliedTotal), 1)
|
|
278
278
|
])) : d("", !0),
|
|
279
279
|
n.receipt.totals.depositTotals.kivaCreditAdded > 0 ? (s(), o("li", st, [
|
|
280
|
-
t[20] || (t[20] = e("span", { class: "total__header tw-text-
|
|
280
|
+
t[20] || (t[20] = e("span", { class: "total__header tw-text-title" }, "Kiva credit added:", -1)),
|
|
281
281
|
e("span", ot, " $" + i(n.receipt.totals.depositTotals.kivaCreditAdded), 1)
|
|
282
282
|
])) : d("", !0),
|
|
283
283
|
n.receipt.totals.depositTotals.kivaCreditUsed > 0 ? (s(), o("li", nt, [
|
|
284
|
-
t[21] || (t[21] = e("span", { class: "total__header tw-text-
|
|
284
|
+
t[21] || (t[21] = e("span", { class: "total__header tw-text-title" }, "Kiva credit:", -1)),
|
|
285
285
|
e("span", dt, " $" + i(n.receipt.totals.depositTotals.kivaCreditUsed), 1)
|
|
286
286
|
])) : d("", !0),
|
|
287
287
|
parseFloat(n.receipt.totals.depositTotals.depositTotal) > 0 ? (s(), o("li", lt, [
|
|
288
|
-
t[22] || (t[22] = e("span", { class: "total__header tw-text-
|
|
288
|
+
t[22] || (t[22] = e("span", { class: "total__header tw-text-title" }, "Amount charged:", -1)),
|
|
289
289
|
e("span", rt, " $" + i(n.receipt.totals.depositTotals.depositTotal), 1)
|
|
290
290
|
])) : d("", !0)
|
|
291
291
|
])
|
|
@@ -307,7 +307,7 @@ function pt(mt, t, n, _, _t, r) {
|
|
|
307
307
|
])
|
|
308
308
|
]);
|
|
309
309
|
}
|
|
310
|
-
const
|
|
310
|
+
const wt = /* @__PURE__ */ x(C, [["render", pt], ["__scopeId", "data-v-63dc5a55"]]);
|
|
311
311
|
export {
|
|
312
|
-
|
|
312
|
+
wt as default
|
|
313
313
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-card-use[data-v-
|
|
1
|
+
.loan-card-use[data-v-96a93997]:hover,.loan-card-use[data-v-96a93997]: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-96a93997]{text-decoration-line:underline}.loan-card-progress[data-v-96a93997]:hover,.loan-card-progress[data-v-96a93997]:focus{text-decoration-line:none}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import D from "./KvClassicLoanCard2.js";
|
|
2
2
|
import { KV_CLASSIC_LOAN_CARD_FRAGMENT as ee, KV_CLASSIC_LOAN_CARD_USER_FRAGMET as te } from "./KvClassicLoanCard2.js";
|
|
3
|
-
import { resolveComponent as i, openBlock as o, createElementBlock as s, normalizeClass as r, normalizeStyle as N, createElementVNode as
|
|
3
|
+
import { resolveComponent as i, openBlock as o, createElementBlock as s, normalizeClass as r, normalizeStyle as N, createElementVNode as d, createBlock as n, resolveDynamicComponent as g, withCtx as v, createVNode as m, toDisplayString as b, createCommentVNode as w, Fragment as V, renderList as R } from "vue";
|
|
4
4
|
import "./KvClassicLoanCard.css";
|
|
5
5
|
import S from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
-
const
|
|
6
|
+
const T = { class: "tw-grow" }, F = { class: "loan-card-active-hover" }, I = {
|
|
7
7
|
key: 1,
|
|
8
8
|
class: "tw-relative"
|
|
9
|
-
},
|
|
10
|
-
class: "tw-absolute tw-bottom-1 tw-left-1 tw-text-primary tw-bg-white tw-rounded tw-p-1 tw-mb-0 tw-mr-2 tw-text-
|
|
9
|
+
}, E = { key: 0 }, K = {
|
|
10
|
+
class: "tw-absolute tw-bottom-1 tw-left-1 tw-text-primary tw-bg-white tw-rounded tw-p-1 tw-mb-0 tw-mr-2 tw-text-label tw-flex tw-items-center tw-h-3",
|
|
11
11
|
style: { padding: "2px 6px", "text-transform": "capitalize" }
|
|
12
|
-
}, W = { class: "tw-mb-1.5 tw-pt-1" }, U = { key: 1 }, j = {
|
|
12
|
+
}, z = { style: { "margin-top": "0.125rem" } }, W = { class: "tw-mb-1.5 tw-pt-1" }, U = { key: 1 }, j = {
|
|
13
13
|
key: 0,
|
|
14
14
|
class: "tw-w-full tw-pt-1 tw-pr-1"
|
|
15
15
|
}, G = {
|
|
@@ -19,20 +19,20 @@ const F = { class: "tw-grow" }, I = { class: "loan-card-active-hover" }, E = {
|
|
|
19
19
|
key: 1,
|
|
20
20
|
class: "tw-pt-1.5"
|
|
21
21
|
};
|
|
22
|
-
function O(u, a, e, t, q,
|
|
22
|
+
function O(u, a, e, t, q, c) {
|
|
23
23
|
const k = i("kv-loading-placeholder"), h = i("kv-borrower-image"), f = i("kv-material-icon"), _ = i("kv-loan-team-pick"), y = i("kv-loan-bookmark"), x = i("kv-loan-tag"), C = i("kv-loan-use"), L = i("kv-loan-callouts"), A = i("kv-loan-progress-group"), M = i("kv-lend-cta"), P = i("KvLoanActivities");
|
|
24
24
|
return o(), s("div", {
|
|
25
25
|
class: r(["tw-flex tw-flex-col tw-bg-white tw-rounded tw-w-full tw-pb-1", { "tw-p-1": !e.largeCard, "tw-pointer-events-none": t.isLoading }]),
|
|
26
26
|
"data-testid": "loan-card",
|
|
27
|
-
style: N([{ "box-shadow": "0 4px 12px rgba(0, 0, 0, 0.08)" }, { minWidth: "230px", maxWidth:
|
|
27
|
+
style: N([{ "box-shadow": "0 4px 12px rgba(0, 0, 0, 0.08)" }, { minWidth: "230px", maxWidth: c.cardWidth }])
|
|
28
28
|
}, [
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
d("div", T, [
|
|
30
|
+
d("div", F, [
|
|
31
31
|
t.isLoading ? (o(), n(k, {
|
|
32
32
|
key: 0,
|
|
33
33
|
class: r(["tw-mb-1 tw-w-full", { "tw-rounded-t tw-rounded-b-none": e.largeCard, "!tw-rounded-sm": !e.largeCard }]),
|
|
34
34
|
style: { height: "15rem" }
|
|
35
|
-
}, null, 8, ["class"])) : (o(), s("div",
|
|
35
|
+
}, null, 8, ["class"])) : (o(), s("div", I, [
|
|
36
36
|
(o(), n(g(t.tag), {
|
|
37
37
|
to: t.readMorePath,
|
|
38
38
|
href: t.readMorePath,
|
|
@@ -44,19 +44,19 @@ function O(u, a, e, t, q, d) {
|
|
|
44
44
|
m(h, {
|
|
45
45
|
class: r(["tw-relative tw-w-full tw-bg-black tw-bg-clip-content", { "tw-rounded-t": e.largeCard, "tw-rounded-sm": !e.largeCard }]),
|
|
46
46
|
alt: `Photo of ${t.borrowerName}`,
|
|
47
|
-
"aspect-ratio":
|
|
48
|
-
"default-image": { width:
|
|
47
|
+
"aspect-ratio": c.imageAspectRatio,
|
|
48
|
+
"default-image": { width: c.imageDefaultWidth },
|
|
49
49
|
hash: t.imageHash,
|
|
50
|
-
images:
|
|
50
|
+
images: c.imageSizes,
|
|
51
51
|
"photo-path": e.photoPath
|
|
52
52
|
}, null, 8, ["class", "alt", "aspect-ratio", "default-image", "hash", "images", "photo-path"]),
|
|
53
|
-
t.countryName ? (o(), s("div",
|
|
54
|
-
|
|
53
|
+
t.countryName ? (o(), s("div", E, [
|
|
54
|
+
d("p", K, [
|
|
55
55
|
m(f, {
|
|
56
56
|
class: "tw-h-2 tw-w-2",
|
|
57
57
|
icon: t.mdiMapMarker
|
|
58
58
|
}, null, 8, ["icon"]),
|
|
59
|
-
|
|
59
|
+
d("span", z, b(t.formattedLocation), 1)
|
|
60
60
|
])
|
|
61
61
|
])) : w("", !0)
|
|
62
62
|
]),
|
|
@@ -101,13 +101,13 @@ function O(u, a, e, t, q, d) {
|
|
|
101
101
|
onClick: a[3] || (a[3] = (l) => t.clickReadMore("Use", l))
|
|
102
102
|
}, {
|
|
103
103
|
default: v(() => [
|
|
104
|
-
|
|
104
|
+
d("div", W, [
|
|
105
105
|
t.isLoading ? (o(), s("div", {
|
|
106
106
|
key: 0,
|
|
107
107
|
class: r(["tw-w-full", { "tw-px-1": e.largeCard }]),
|
|
108
108
|
style: { height: "5.5rem" }
|
|
109
109
|
}, [
|
|
110
|
-
(o(!0), s(
|
|
110
|
+
(o(!0), s(V, null, R([...Array(4)], (l, B) => (o(), s("div", {
|
|
111
111
|
key: B,
|
|
112
112
|
class: "tw-h-2 tw-mb-1"
|
|
113
113
|
}, [
|
|
@@ -140,7 +140,7 @@ function O(u, a, e, t, q, d) {
|
|
|
140
140
|
onClick: a[4] || (a[4] = (l) => u.$emit("jump-filter-page", l))
|
|
141
141
|
}, null, 8, ["callouts", "class"]))
|
|
142
142
|
]),
|
|
143
|
-
|
|
143
|
+
d("div", {
|
|
144
144
|
class: r(["tw-flex tw-justify-between tw-mt-2", { "tw-px-1": e.largeCard }])
|
|
145
145
|
}, [
|
|
146
146
|
t.hasProgressData ? w("", !0) : (o(), s("div", j, [
|
|
@@ -153,7 +153,7 @@ function O(u, a, e, t, q, d) {
|
|
|
153
153
|
style: { width: "70%", height: "0.5rem" }
|
|
154
154
|
})
|
|
155
155
|
])),
|
|
156
|
-
|
|
156
|
+
d("div", null, [
|
|
157
157
|
t.sharesAvailable ? (o(), n(g(t.tag), {
|
|
158
158
|
key: 0,
|
|
159
159
|
to: t.readMorePath,
|
|
@@ -204,11 +204,11 @@ function O(u, a, e, t, q, d) {
|
|
|
204
204
|
style: { width: "9rem", height: "3rem" }
|
|
205
205
|
}))
|
|
206
206
|
], 2),
|
|
207
|
-
e.showContributors &&
|
|
208
|
-
|
|
207
|
+
e.showContributors && c.lendersNumber && c.amountLent ? (o(), s("div", G, [
|
|
208
|
+
d("p", null, b(c.lendersNumber) + " people contributed " + b(c.amountLent), 1)
|
|
209
209
|
])) : w("", !0),
|
|
210
210
|
e.combinedActivities.length > 0 ? (o(), s("div", H, [
|
|
211
|
-
a[10] || (a[10] =
|
|
211
|
+
a[10] || (a[10] = d("hr", { class: "tw-border-tertiary tw-mb-1 tw-w-5/6 tw-mx-auto" }, null, -1)),
|
|
212
212
|
m(P, {
|
|
213
213
|
loan: e.loan,
|
|
214
214
|
"combined-activities": e.combinedActivities,
|
|
@@ -231,7 +231,7 @@ function O(u, a, e, t, q, d) {
|
|
|
231
231
|
])) : w("", !0)
|
|
232
232
|
], 6);
|
|
233
233
|
}
|
|
234
|
-
const Z = /* @__PURE__ */ S(D, [["render", O], ["__scopeId", "data-v-
|
|
234
|
+
const Z = /* @__PURE__ */ S(D, [["render", O], ["__scopeId", "data-v-96a93997"]]);
|
|
235
235
|
export {
|
|
236
236
|
ee as KV_CLASSIC_LOAN_CARD_FRAGMENT,
|
|
237
237
|
te as KV_CLASSIC_LOAN_CARD_USER_FRAGMET,
|
package/dist/vue/KvFlag.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.kv-flag__wrapper[data-v-
|
|
1
|
+
.kv-flag__wrapper[data-v-503c1b66]{line-height:0;background-size:contain;background-position:50%;background-repeat:no-repeat}.kv-flag--4x3 .kv-flag__wrapper.kv-flag-svg[data-v-503c1b66]{padding-bottom:71%}.kv-flag--1x1 .kv-flag__wrapper.kv-flag-svg[data-v-503c1b66]{padding-bottom:96%}
|
package/dist/vue/KvFlag.js
CHANGED
|
@@ -2,11 +2,11 @@ import d from "./KvFlag2.js";
|
|
|
2
2
|
import { openBlock as a, createElementBlock as r, normalizeClass as l, normalizeStyle as s, createElementVNode as c, toDisplayString as o, createCommentVNode as n } from "vue";
|
|
3
3
|
import "./KvFlag.css";
|
|
4
4
|
import i from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
-
const m = { class: "tw-sr-only" },
|
|
5
|
+
const m = { class: "tw-sr-only" }, _ = {
|
|
6
6
|
key: 0,
|
|
7
|
-
class: "tw-text-
|
|
7
|
+
class: "tw-text-upper tw-my-2"
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function f(g, w, e, v, u, t) {
|
|
10
10
|
return e.country ? (a(), r("div", {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: l(`kv-flag kv-flag--${e.aspectRatio}`),
|
|
@@ -18,10 +18,10 @@ function _(g, w, e, v, h, t) {
|
|
|
18
18
|
}, [
|
|
19
19
|
c("span", m, "Flag of " + o(e.name), 1)
|
|
20
20
|
], 6),
|
|
21
|
-
e.showName ? (a(), r("span",
|
|
21
|
+
e.showName ? (a(), r("span", _, o(e.name), 1)) : n("", !0)
|
|
22
22
|
], 6)) : n("", !0);
|
|
23
23
|
}
|
|
24
|
-
const
|
|
24
|
+
const b = /* @__PURE__ */ i(d, [["render", f], ["__scopeId", "data-v-503c1b66"]]);
|
|
25
25
|
export {
|
|
26
|
-
|
|
26
|
+
b as default
|
|
27
27
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loan-callouts[data-v-
|
|
1
|
+
.loan-callouts[data-v-fa784de7] span{background-color:transparent!important;--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1))}.loan-card-use[data-v-fa784de7]:hover,.loan-card-use[data-v-fa784de7]: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-fa784de7],.loan-card-active-hover:hover .loan-card-name[data-v-fa784de7]{text-decoration-line:underline}.loan-card-progress[data-v-fa784de7],.loan-card-progress[data-v-fa784de7]:hover,.loan-card-progress[data-v-fa784de7]:focus{text-decoration-line:none}.loan-card-name[data-v-fa784de7]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;cursor:pointer;overflow:hidden;text-overflow:ellipsis;padding-left:1.5rem;padding-right:1.5rem;padding-top:.5rem}.loan-bookmark[data-v-fa784de7] button{border-top-left-radius:0!important;border-top-right-radius:0!important}
|