@kiva/kv-components 10.4.1 → 10.5.1
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 +271 -271
- package/dist/vue/KvClassicLoanCard.js +295 -252
- package/dist/vue/KvClassicLoanCard2.js +252 -295
- package/dist/vue/KvCompactLoanCard.css +1 -1
- package/dist/vue/KvCompactLoanCard.js +380 -323
- package/dist/vue/KvCompactLoanCard.vue.d.ts +14 -8
- package/dist/vue/KvCompactLoanCard2.js +416 -386
- package/dist/vue/KvIntroductionLoanCard.js +220 -247
- package/dist/vue/KvIntroductionLoanCard2.js +247 -220
- package/dist/vue/KvLendCta.js +389 -355
- package/dist/vue/KvLendCta2.js +355 -389
- package/dist/vue/KvLoanActivities.js +149 -75
- package/dist/vue/KvLoanActivities2.js +75 -149
- package/dist/vue/KvLoanBookmark.js +33 -22
- package/dist/vue/KvLoanBookmark2.js +22 -33
- package/dist/vue/KvLoanInfoCard.js +2 -2
- package/dist/vue/KvLoanTag.js +123 -44
- package/dist/vue/KvLoanTag2.js +44 -123
- package/dist/vue/KvLoanUse.js +111 -14
- package/dist/vue/KvLoanUse.vue.d.ts +9 -0
- package/dist/vue/KvLoanUse2.js +14 -104
- package/dist/vue/KvWideLoanCard.js +232 -206
- package/dist/vue/KvWideLoanCard2.js +206 -232
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar2.js +1 -1
- package/dist/vue/KvWwwHeaderBasic/LinkBar2.js +1 -1
- package/package.json +8 -4
|
@@ -1,77 +1,151 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import "
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
1
|
+
import { toRefs as f, ref as v, computed as n } from "vue";
|
|
2
|
+
import { gql as p } from "@apollo/client/core";
|
|
3
|
+
import { format as y } from "date-fns";
|
|
4
|
+
import A from "numeral";
|
|
5
|
+
import g from "./KvActivityRow.js";
|
|
6
|
+
import b from "./KvLightbox.js";
|
|
7
|
+
import F from "./KvLendCta2.js";
|
|
8
|
+
const O = p`
|
|
9
|
+
fragment KvLoanActivities on LoanBasic {
|
|
10
|
+
id
|
|
11
|
+
name
|
|
12
|
+
lenders(limit: 0) {
|
|
13
|
+
totalCount
|
|
14
|
+
}
|
|
15
|
+
loanFundraisingInfo {
|
|
16
|
+
id
|
|
17
|
+
fundedAmount
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`, _ = {
|
|
21
|
+
name: "KvLoanActivities",
|
|
22
|
+
components: {
|
|
23
|
+
KvActivityRow: g,
|
|
24
|
+
KvLightbox: b,
|
|
25
|
+
KvLendCta: F
|
|
26
|
+
},
|
|
27
|
+
props: {
|
|
28
|
+
/**
|
|
29
|
+
* loan object coming from parent component
|
|
30
|
+
*/
|
|
31
|
+
loan: {
|
|
32
|
+
type: Object,
|
|
33
|
+
default: () => ({})
|
|
34
|
+
},
|
|
35
|
+
/**
|
|
36
|
+
* loan combined activities coming from parent component
|
|
37
|
+
*/
|
|
38
|
+
combinedActivities: {
|
|
39
|
+
type: Array,
|
|
40
|
+
default: () => []
|
|
41
|
+
},
|
|
42
|
+
/**
|
|
43
|
+
* isAdding flag coming from parent add to basket method
|
|
44
|
+
*/
|
|
45
|
+
isAdding: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: !1
|
|
48
|
+
},
|
|
49
|
+
/**
|
|
50
|
+
* basketItems array coming from parent component
|
|
51
|
+
*/
|
|
52
|
+
basketItems: {
|
|
53
|
+
type: Array,
|
|
54
|
+
default: () => []
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* userBalance string coming from parent component
|
|
58
|
+
*/
|
|
59
|
+
userBalance: {
|
|
60
|
+
type: String,
|
|
61
|
+
default: void 0
|
|
62
|
+
},
|
|
63
|
+
/**
|
|
64
|
+
* errorMsg string coming from parent add to basket method
|
|
65
|
+
*/
|
|
66
|
+
errorMsg: {
|
|
67
|
+
type: String,
|
|
68
|
+
default: void 0
|
|
69
|
+
},
|
|
70
|
+
/**
|
|
71
|
+
* kvTrackFunction function to track events from LendCta component
|
|
72
|
+
*/
|
|
73
|
+
kvTrackFunction: {
|
|
74
|
+
type: Function,
|
|
75
|
+
required: !0
|
|
76
|
+
},
|
|
77
|
+
/**
|
|
78
|
+
* getCookie function for LendCta component
|
|
79
|
+
*/
|
|
80
|
+
getCookie: {
|
|
81
|
+
type: Function,
|
|
82
|
+
default: void 0
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* setCookie function for LendCta component
|
|
86
|
+
*/
|
|
87
|
+
setCookie: {
|
|
88
|
+
type: Function,
|
|
89
|
+
default: void 0
|
|
90
|
+
},
|
|
91
|
+
/**
|
|
92
|
+
* route object for LendCta component
|
|
93
|
+
*/
|
|
94
|
+
route: {
|
|
95
|
+
type: Object,
|
|
96
|
+
default: void 0
|
|
97
|
+
},
|
|
98
|
+
enableFiveDollarsNotes: {
|
|
99
|
+
type: Boolean,
|
|
100
|
+
default: !1
|
|
101
|
+
},
|
|
102
|
+
isVisitor: {
|
|
103
|
+
type: Boolean,
|
|
104
|
+
default: !0
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
emits: [
|
|
108
|
+
"add-to-basket"
|
|
109
|
+
],
|
|
110
|
+
setup(r) {
|
|
111
|
+
const {
|
|
112
|
+
loan: a,
|
|
113
|
+
combinedActivities: l,
|
|
114
|
+
kvTrackFunction: s
|
|
115
|
+
} = f(r), i = v(!1), u = n(() => {
|
|
116
|
+
var t;
|
|
117
|
+
return `Activity for ${((t = a.value) == null ? void 0 : t.name) || ""}`;
|
|
118
|
+
}), d = n(() => {
|
|
119
|
+
var t, e;
|
|
120
|
+
return ((e = (t = a.value) == null ? void 0 : t.lenders) == null ? void 0 : e.totalCount) ?? 0;
|
|
121
|
+
}), c = n(() => {
|
|
122
|
+
var e, o;
|
|
123
|
+
const t = ((o = (e = a.value) == null ? void 0 : e.loanFundraisingInfo) == null ? void 0 : o.fundedAmount) ?? 0;
|
|
124
|
+
return A(parseFloat(t)).format("$0,0");
|
|
125
|
+
}), m = n(() => {
|
|
126
|
+
const t = l.value.find((e) => e.data.some((o) => o.type === "LendingAction"));
|
|
127
|
+
return (t == null ? void 0 : t.data[0]) ?? {};
|
|
128
|
+
});
|
|
129
|
+
return {
|
|
130
|
+
lightboxOpen: i,
|
|
131
|
+
modalTitle: u,
|
|
132
|
+
formattedDate: (t) => {
|
|
133
|
+
const e = new Date(t);
|
|
134
|
+
return y(e, "MMM d, yyyy");
|
|
135
|
+
},
|
|
136
|
+
showActivityModal: () => {
|
|
137
|
+
s.value("loan-card", "click", "see-all-activity"), i.value = !0;
|
|
138
|
+
},
|
|
139
|
+
closeLightbox: () => {
|
|
140
|
+
i.value = !1;
|
|
141
|
+
},
|
|
142
|
+
singleActivity: m,
|
|
143
|
+
lendersNumber: d,
|
|
144
|
+
amountLent: c
|
|
145
|
+
};
|
|
146
|
+
}
|
|
147
|
+
};
|
|
74
148
|
export {
|
|
75
|
-
|
|
76
|
-
|
|
149
|
+
O as KV_LOAN_ACTIVITIES_FRAGMENT,
|
|
150
|
+
_ as default
|
|
77
151
|
};
|
|
@@ -1,151 +1,77 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
type: Function,
|
|
75
|
-
required: !0
|
|
76
|
-
},
|
|
77
|
-
/**
|
|
78
|
-
* getCookie function for LendCta component
|
|
79
|
-
*/
|
|
80
|
-
getCookie: {
|
|
81
|
-
type: Function,
|
|
82
|
-
default: void 0
|
|
83
|
-
},
|
|
84
|
-
/**
|
|
85
|
-
* setCookie function for LendCta component
|
|
86
|
-
*/
|
|
87
|
-
setCookie: {
|
|
88
|
-
type: Function,
|
|
89
|
-
default: void 0
|
|
90
|
-
},
|
|
91
|
-
/**
|
|
92
|
-
* route object for LendCta component
|
|
93
|
-
*/
|
|
94
|
-
route: {
|
|
95
|
-
type: Object,
|
|
96
|
-
default: void 0
|
|
97
|
-
},
|
|
98
|
-
enableFiveDollarsNotes: {
|
|
99
|
-
type: Boolean,
|
|
100
|
-
default: !1
|
|
101
|
-
},
|
|
102
|
-
isVisitor: {
|
|
103
|
-
type: Boolean,
|
|
104
|
-
default: !0
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
emits: [
|
|
108
|
-
"add-to-basket"
|
|
109
|
-
],
|
|
110
|
-
setup(r) {
|
|
111
|
-
const {
|
|
112
|
-
loan: a,
|
|
113
|
-
combinedActivities: l,
|
|
114
|
-
kvTrackFunction: s
|
|
115
|
-
} = f(r), i = v(!1), u = n(() => {
|
|
116
|
-
var t;
|
|
117
|
-
return `Activity for ${((t = a.value) == null ? void 0 : t.name) || ""}`;
|
|
118
|
-
}), d = n(() => {
|
|
119
|
-
var t, e;
|
|
120
|
-
return ((e = (t = a.value) == null ? void 0 : t.lenders) == null ? void 0 : e.totalCount) ?? 0;
|
|
121
|
-
}), c = n(() => {
|
|
122
|
-
var e, o;
|
|
123
|
-
const t = ((o = (e = a.value) == null ? void 0 : e.loanFundraisingInfo) == null ? void 0 : o.fundedAmount) ?? 0;
|
|
124
|
-
return A(parseFloat(t)).format("$0,0");
|
|
125
|
-
}), m = n(() => {
|
|
126
|
-
const t = l.value.find((e) => e.data.some((o) => o.type === "LendingAction"));
|
|
127
|
-
return (t == null ? void 0 : t.data[0]) ?? {};
|
|
128
|
-
});
|
|
129
|
-
return {
|
|
130
|
-
lightboxOpen: i,
|
|
131
|
-
modalTitle: u,
|
|
132
|
-
formattedDate: (t) => {
|
|
133
|
-
const e = new Date(t);
|
|
134
|
-
return y(e, "MMM d, yyyy");
|
|
135
|
-
},
|
|
136
|
-
showActivityModal: () => {
|
|
137
|
-
s.value("loan-card", "click", "see-all-activity"), i.value = !0;
|
|
138
|
-
},
|
|
139
|
-
closeLightbox: () => {
|
|
140
|
-
i.value = !1;
|
|
141
|
-
},
|
|
142
|
-
singleActivity: m,
|
|
143
|
-
lendersNumber: d,
|
|
144
|
-
amountLent: c
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
|
-
};
|
|
1
|
+
import g from "./KvLoanActivities.js";
|
|
2
|
+
import { KV_LOAN_ACTIVITIES_FRAGMENT as H } from "./KvLoanActivities.js";
|
|
3
|
+
import { resolveComponent as c, openBlock as n, createElementBlock as s, createElementVNode as i, createVNode as d, toDisplayString as l, createCommentVNode as r, withCtx as m, Fragment as w, renderList as _, createBlock as h } from "vue";
|
|
4
|
+
import "./KvLoanActivities.css";
|
|
5
|
+
import y from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
|
+
const A = {
|
|
7
|
+
key: 0,
|
|
8
|
+
class: "loan-activity"
|
|
9
|
+
}, L = { class: "tw-flex tw-justify-center lg:tw-px-0" }, C = { class: "tw-flex tw-justify-center tw-mt-1 tw-text-small" }, K = { key: 0 }, N = { class: "tw-text-title tw-flex-1 data-hj-suppress" }, M = { class: "tw-overflow-x-hidden tw-px-2 tw-pb-1" }, T = { class: "tw-text-center tw-text-upper" }, V = { class: "tw-flex tw-flex-col tw-gap-y-1" }, B = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "tw-mt-1 tw-text-small tw-text-danger"
|
|
12
|
+
}, F = { class: "tw-flex tw-justify-end tw-mt-4 tw-pb-2.5 md:tw-pb-4" };
|
|
13
|
+
function I(k, a, t, e, j, E) {
|
|
14
|
+
const v = c("KvActivityRow"), x = c("KvLendCta"), u = c("KvLightbox");
|
|
15
|
+
return t.combinedActivities.length > 0 ? (n(), s("div", A, [
|
|
16
|
+
i("div", L, [
|
|
17
|
+
d(v, { activity: e.singleActivity }, null, 8, ["activity"])
|
|
18
|
+
]),
|
|
19
|
+
i("div", C, [
|
|
20
|
+
e.lendersNumber && e.amountLent ? (n(), s("span", K, l(e.lendersNumber) + " lenders lent " + l(e.amountLent) + ". ", 1)) : r("", !0),
|
|
21
|
+
i("button", {
|
|
22
|
+
class: "tw-text-action hover:tw-underline",
|
|
23
|
+
onClick: a[0] || (a[0] = (...o) => e.showActivityModal && e.showActivityModal(...o))
|
|
24
|
+
}, " See all activity ")
|
|
25
|
+
]),
|
|
26
|
+
d(u, {
|
|
27
|
+
title: "Activity Feed Modal",
|
|
28
|
+
visible: e.lightboxOpen,
|
|
29
|
+
onLightboxClosed: e.closeLightbox
|
|
30
|
+
}, {
|
|
31
|
+
header: m(() => [
|
|
32
|
+
i("h2", N, l(e.modalTitle), 1)
|
|
33
|
+
]),
|
|
34
|
+
default: m(() => [
|
|
35
|
+
i("div", M, [
|
|
36
|
+
(n(!0), s(w, null, _(t.combinedActivities, (o) => (n(), s("div", {
|
|
37
|
+
key: o.key,
|
|
38
|
+
class: "md:tw-px-8 lg:tw-px-14 tw-mt-4"
|
|
39
|
+
}, [
|
|
40
|
+
i("p", T, l(e.formattedDate(o.key)), 1),
|
|
41
|
+
i("div", V, [
|
|
42
|
+
(n(!0), s(w, null, _(o.data, (b, f) => (n(), h(v, {
|
|
43
|
+
key: f,
|
|
44
|
+
activity: b
|
|
45
|
+
}, null, 8, ["activity"]))), 128))
|
|
46
|
+
])
|
|
47
|
+
]))), 128))
|
|
48
|
+
]),
|
|
49
|
+
i("div", null, [
|
|
50
|
+
t.errorMsg ? (n(), s("p", B, l(t.errorMsg), 1)) : r("", !0),
|
|
51
|
+
i("div", F, [
|
|
52
|
+
d(x, {
|
|
53
|
+
loan: t.loan,
|
|
54
|
+
"is-loading": !1,
|
|
55
|
+
"kv-track-function": t.kvTrackFunction,
|
|
56
|
+
"get-cookie": t.getCookie,
|
|
57
|
+
"set-cookie": t.setCookie,
|
|
58
|
+
"user-balance": t.userBalance,
|
|
59
|
+
"basket-items": t.basketItems,
|
|
60
|
+
route: t.route,
|
|
61
|
+
"is-adding": t.isAdding,
|
|
62
|
+
"is-visitor": t.isVisitor,
|
|
63
|
+
"enable-five-dollars-notes": t.enableFiveDollarsNotes,
|
|
64
|
+
onAddToBasket: a[1] || (a[1] = (o) => k.$emit("add-to-basket", o))
|
|
65
|
+
}, null, 8, ["loan", "kv-track-function", "get-cookie", "set-cookie", "user-balance", "basket-items", "route", "is-adding", "is-visitor", "enable-five-dollars-notes"])
|
|
66
|
+
])
|
|
67
|
+
])
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}, 8, ["visible", "onLightboxClosed"])
|
|
71
|
+
])) : r("", !0);
|
|
72
|
+
}
|
|
73
|
+
const G = /* @__PURE__ */ y(g, [["render", I], ["__scopeId", "data-v-c2b4aeda"]]);
|
|
148
74
|
export {
|
|
149
|
-
|
|
150
|
-
|
|
75
|
+
H as KV_LOAN_ACTIVITIES_FRAGMENT,
|
|
76
|
+
G as default
|
|
151
77
|
};
|
|
@@ -1,24 +1,35 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
1
|
+
import o from "graphql-tag";
|
|
2
|
+
import { mdiBookmark as a, mdiBookmarkOutline as r } from "@mdi/js";
|
|
3
|
+
import e from "./KvMaterialIcon.js";
|
|
4
|
+
const i = o`
|
|
5
|
+
fragment KvLoanBookmark on LoanBasic {
|
|
6
|
+
id
|
|
7
|
+
userProperties {
|
|
8
|
+
favorited
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
`, k = {
|
|
12
|
+
name: "KvLoanBookmark",
|
|
13
|
+
components: {
|
|
14
|
+
KvMaterialIcon: e
|
|
15
|
+
},
|
|
16
|
+
props: {
|
|
17
|
+
isBookmarked: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
emits: [
|
|
23
|
+
"toggle-bookmark"
|
|
24
|
+
],
|
|
25
|
+
data() {
|
|
26
|
+
return {
|
|
27
|
+
mdiBookmarkOutline: r,
|
|
28
|
+
mdiBookmark: a
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
};
|
|
21
32
|
export {
|
|
22
|
-
|
|
23
|
-
|
|
33
|
+
i as KV_LOAN_BOOKMARK_FRAGMENT,
|
|
34
|
+
k as default
|
|
24
35
|
};
|
|
@@ -1,35 +1,24 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
},
|
|
22
|
-
emits: [
|
|
23
|
-
"toggle-bookmark"
|
|
24
|
-
],
|
|
25
|
-
data() {
|
|
26
|
-
return {
|
|
27
|
-
mdiBookmarkOutline: r,
|
|
28
|
-
mdiBookmark: a
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
};
|
|
1
|
+
import i from "./KvLoanBookmark.js";
|
|
2
|
+
import { KV_LOAN_BOOKMARK_FRAGMENT as K } from "./KvLoanBookmark.js";
|
|
3
|
+
import { resolveComponent as m, openBlock as a, createElementBlock as l, createElementVNode as s, createVNode as c, normalizeClass as k } from "vue";
|
|
4
|
+
import d from "../_virtual/_plugin-vue_export-helper.js";
|
|
5
|
+
function f(r, e, o, u, t, _) {
|
|
6
|
+
const n = m("kv-material-icon");
|
|
7
|
+
return a(), l("div", null, [
|
|
8
|
+
s("button", {
|
|
9
|
+
style: { "border-radius": "8px", padding: "3px" },
|
|
10
|
+
class: "tw-cursor-pointer tw-font-medium tw-bg-white tw-flex tw-justify-center",
|
|
11
|
+
onClick: e[0] || (e[0] = (p) => r.$emit("toggle-bookmark"))
|
|
12
|
+
}, [
|
|
13
|
+
c(n, {
|
|
14
|
+
class: k(["tw-w-3", { "tw-text-black": !o.isBookmarked, "tw-text-marigold": o.isBookmarked }]),
|
|
15
|
+
icon: `${o.isBookmarked ? t.mdiBookmark : t.mdiBookmarkOutline}`
|
|
16
|
+
}, null, 8, ["class", "icon"])
|
|
17
|
+
])
|
|
18
|
+
]);
|
|
19
|
+
}
|
|
20
|
+
const v = /* @__PURE__ */ d(i, [["render", f]]);
|
|
32
21
|
export {
|
|
33
|
-
|
|
34
|
-
|
|
22
|
+
K as KV_LOAN_BOOKMARK_FRAGMENT,
|
|
23
|
+
v as default
|
|
35
24
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import K from "graphql-tag";
|
|
2
2
|
import { LOAN_GEOCODE_FRAGMENT as z, loanCardComputedProperties as D, loanCardMethods as I, useLocationTruncation as W } from "../utils/loanCard.js";
|
|
3
|
-
import F from "./
|
|
3
|
+
import F from "./KvLoanUse2.js";
|
|
4
4
|
import E from "./KvBorrowerImage.js";
|
|
5
5
|
import O from "./KvMaterialIcon.js";
|
|
6
6
|
import V from "./KvLoadingPlaceholder.js";
|
|
@@ -8,7 +8,7 @@ import U from "./KvTooltip.js";
|
|
|
8
8
|
import { resolveComponent as s, openBlock as e, createElementBlock as i, normalizeStyle as G, normalizeClass as k, createElementVNode as l, createBlock as c, resolveDynamicComponent as y, withCtx as w, createVNode as m, toDisplayString as b, createTextVNode as H, createCommentVNode as L, Fragment as q, renderList as j, withModifiers as J } from "vue";
|
|
9
9
|
import "./KvLoanInfoCard.css";
|
|
10
10
|
import Q from "../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
-
import { KV_LOAN_USE_FRAGMENT as X } from "./
|
|
11
|
+
import { KV_LOAN_USE_FRAGMENT as X } from "./KvLoanUse.js";
|
|
12
12
|
const bt = K`
|
|
13
13
|
fragment KvLoanInfoCard on LoanBasic {
|
|
14
14
|
id
|