@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.
@@ -1,19 +1,19 @@
1
- import M from "./KvIntroductionLoanCard2.js";
1
+ import N from "./KvIntroductionLoanCard2.js";
2
2
  import { KV_INTRODUCTION_LOAN_CARD_FRAGMENT as tt, KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT as et } from "./KvIntroductionLoanCard2.js";
3
- import { resolveComponent as d, openBlock as e, createElementBlock as n, normalizeClass as _, normalizeStyle as P, createElementVNode as s, createBlock as o, resolveDynamicComponent as g, withCtx as m, createVNode as i, Suspense as R, createTextVNode as p, toDisplayString as f, createCommentVNode as c, Fragment as A, renderList as T } from "vue";
3
+ import { resolveComponent as s, openBlock as e, createElementBlock as n, normalizeClass as _, normalizeStyle as P, createElementVNode as i, createBlock as o, resolveDynamicComponent as g, withCtx as w, createVNode as d, Suspense as p, toDisplayString as f, createCommentVNode as m, Fragment as R, renderList as A } from "vue";
4
4
  import "./KvIntroductionLoanCard.css";
5
5
  import B from "../_virtual/_plugin-vue_export-helper.js";
6
- const D = { class: "tw-grow" }, z = { class: "loan-card-active-hover" }, I = {
6
+ const D = { class: "tw-grow" }, T = { class: "loan-card-active-hover" }, z = {
7
7
  key: 1,
8
8
  style: { height: "11rem" },
9
9
  class: "tw-relative tw-overflow-hidden"
10
- }, V = { key: 0 }, F = {
11
- 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-h4 tw-inline-flex tw-items-center !tw-capitalize",
10
+ }, I = { key: 0 }, F = {
11
+ 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 !tw-capitalize",
12
12
  style: { padding: "2px 6px" }
13
- }, O = {
13
+ }, O = { style: { "margin-top": "0.125rem" } }, S = {
14
14
  key: 3,
15
15
  class: "tw-flex tw-justify-center tw-gap-2"
16
- }, S = {
16
+ }, V = {
17
17
  key: 0,
18
18
  class: "tw-w-full",
19
19
  style: { height: "5.5rem" }
@@ -25,20 +25,20 @@ const D = { class: "tw-grow" }, z = { class: "loan-card-active-hover" }, I = {
25
25
  class: "tw-bg-eco-green-1 tw-text-action tw-text-center tw-py-1.5",
26
26
  style: { "font-weight": "bold", "font-size": "13px", "border-radius": "8px" }
27
27
  };
28
- function G(k, a, w, t, H, h) {
29
- const l = d("kv-loading-placeholder"), u = d("kv-borrower-image"), y = d("kv-flag"), b = d("kv-loan-bookmark"), v = d("kv-loan-callouts"), x = d("kv-loan-use"), C = d("kv-loan-progress-group"), N = d("kv-loan-tag");
28
+ function G(k, a, c, t, H, h) {
29
+ const l = s("kv-loading-placeholder"), u = s("kv-borrower-image"), y = s("kv-flag"), b = s("kv-loan-bookmark"), v = s("kv-loan-callouts"), x = s("kv-loan-use"), C = s("kv-loan-progress-group"), L = s("kv-loan-tag");
30
30
  return e(), n("div", {
31
31
  class: _(["tw-flex tw-flex-col tw-bg-white tw-rounded tw-w-full tw-pb-2", { "tw-pointer-events-none": t.isLoading }]),
32
32
  "data-testid": "loan-card",
33
33
  style: P([{ "box-shadow": "0px 4px 8px 0px rgba(0, 0, 0, 0.38)" }, { minWidth: "230px", maxWidth: h.cardWidth }])
34
34
  }, [
35
- s("div", D, [
36
- s("div", z, [
35
+ i("div", D, [
36
+ i("div", T, [
37
37
  t.isLoading ? (e(), o(l, {
38
38
  key: 0,
39
39
  class: "tw-w-full tw-rounded-t",
40
40
  style: { height: "11rem" }
41
- })) : (e(), n("div", I, [
41
+ })) : (e(), n("div", z, [
42
42
  (e(), o(g(t.tag), {
43
43
  to: t.readMorePath,
44
44
  href: t.readMorePath,
@@ -46,21 +46,21 @@ function G(k, a, w, t, H, h) {
46
46
  "aria-label": "Borrower image",
47
47
  onClick: a[0] || (a[0] = (r) => t.clickReadMore("Photo", r))
48
48
  }, {
49
- default: m(() => [
50
- i(u, {
49
+ default: w(() => [
50
+ d(u, {
51
51
  class: "tw-relative tw-w-full tw-bg-black tw-rounded-t borrower-image tw-bg-clip-content",
52
52
  alt: `Photo of ${t.borrowerName}`,
53
53
  "aspect-ratio": h.imageAspectRatio,
54
54
  "default-image": { width: h.imageDefaultWidth },
55
55
  hash: t.imageHash,
56
56
  images: h.imageSizes,
57
- "photo-path": w.photoPath
57
+ "photo-path": c.photoPath
58
58
  }, null, 8, ["alt", "aspect-ratio", "default-image", "hash", "images", "photo-path"]),
59
- t.countryName ? (e(), n("div", V, [
60
- s("p", F, [
61
- (e(), o(R, null, {
62
- default: m(() => [
63
- i(y, {
59
+ t.countryName ? (e(), n("div", I, [
60
+ i("p", F, [
61
+ (e(), o(p, null, {
62
+ default: w(() => [
63
+ d(y, {
64
64
  class: "tw-ml-0.5 tw-mr-1",
65
65
  country: t.countryCode,
66
66
  name: t.countryName,
@@ -70,16 +70,16 @@ function G(k, a, w, t, H, h) {
70
70
  ]),
71
71
  _: 1
72
72
  })),
73
- p(" " + f(t.formattedLocation), 1)
73
+ i("span", O, f(t.formattedLocation), 1)
74
74
  ])
75
- ])) : c("", !0)
75
+ ])) : m("", !0)
76
76
  ]),
77
77
  _: 1
78
78
  }, 8, ["to", "href"])),
79
- w.isVisitor ? c("", !0) : (e(), o(b, {
79
+ c.isVisitor ? m("", !0) : (e(), o(b, {
80
80
  key: 0,
81
- "loan-id": w.loanId,
82
- "is-bookmarked": w.isBookmarked,
81
+ "loan-id": c.loanId,
82
+ "is-bookmarked": c.isBookmarked,
83
83
  class: "loan-bookmark tw-absolute tw-right-1.5 tw-top-0",
84
84
  "data-testid": "loan-card-bookmark",
85
85
  onToggleBookmark: a[1] || (a[1] = (r) => k.$emit("toggle-bookmark"))
@@ -89,7 +89,7 @@ function G(k, a, w, t, H, h) {
89
89
  key: 2,
90
90
  class: "tw-mt-1 tw-mx-auto",
91
91
  style: { width: "60%", height: "1.75rem", "border-radius": "500rem" }
92
- })) : c("", !0),
92
+ })) : m("", !0),
93
93
  (e(), o(g(t.tag), {
94
94
  to: t.readMorePath,
95
95
  href: t.readMorePath,
@@ -97,30 +97,30 @@ function G(k, a, w, t, H, h) {
97
97
  class: "!tw-text-primary tw-no-underline",
98
98
  onClick: a[2] || (a[2] = (r) => t.clickReadMore("Name", r))
99
99
  }, {
100
- default: m(() => [
101
- s("h3", {
102
- class: _(["loan-card-name", { "tw-text-center": t.borrowerName.length < 20 }]),
100
+ default: w(() => [
101
+ i("h3", {
102
+ class: _(["loan-card-name tw-text-title", { "tw-text-center": t.borrowerName.length < 20 }]),
103
103
  style: { "font-size": "28px" }
104
104
  }, f(t.borrowerName), 3)
105
105
  ]),
106
106
  _: 1
107
107
  }, 8, ["to", "href"])),
108
- t.isLoading ? (e(), n("div", O, [
108
+ t.isLoading ? (e(), n("div", S, [
109
109
  t.isLoading || typeof t.loanCallouts > "u" ? (e(), o(l, {
110
110
  key: 0,
111
111
  class: "tw-mt-0.5 tw-mb-1",
112
112
  style: { width: "20%", height: "1.65rem", "border-radius": "500rem" }
113
- })) : c("", !0),
113
+ })) : m("", !0),
114
114
  t.isLoading || typeof t.loanCallouts > "u" ? (e(), o(l, {
115
115
  key: 1,
116
116
  class: "tw-mt-0.5 tw-mb-1",
117
117
  style: { width: "20%", height: "1.65rem", "border-radius": "500rem" }
118
- })) : c("", !0),
118
+ })) : m("", !0),
119
119
  t.isLoading || typeof t.loanCallouts > "u" ? (e(), o(l, {
120
120
  key: 2,
121
121
  class: "tw-mt-0.5 tw-mb-1",
122
122
  style: { width: "20%", height: "1.65rem", "border-radius": "500rem" }
123
- })) : c("", !0)
123
+ })) : m("", !0)
124
124
  ])) : (e(), o(g(t.tag), {
125
125
  key: 4,
126
126
  to: t.readMorePath,
@@ -129,8 +129,8 @@ function G(k, a, w, t, H, h) {
129
129
  "aria-label": "Loan tag",
130
130
  onClick: a[3] || (a[3] = (r) => t.clickReadMore("Tag", r))
131
131
  }, {
132
- default: m(() => [
133
- i(v, {
132
+ default: w(() => [
133
+ d(v, {
134
134
  callouts: t.loanCallouts,
135
135
  "add-bg-color": !1,
136
136
  class: "loan-callouts"
@@ -145,19 +145,19 @@ function G(k, a, w, t, H, h) {
145
145
  "aria-label": "Loan use",
146
146
  onClick: a[4] || (a[4] = (r) => t.clickReadMore("Use", r))
147
147
  }, {
148
- default: m(() => [
149
- s("div", {
148
+ default: w(() => [
149
+ i("div", {
150
150
  class: _(["tw-pt-0.5 tw-px-2", { "tw-mb-1.5": !t.isLoading }])
151
151
  }, [
152
- t.isLoading ? (e(), n("div", S, [
153
- (e(!0), n(A, null, T([...Array(3)], (r, L) => (e(), n("div", {
154
- key: L,
152
+ t.isLoading ? (e(), n("div", V, [
153
+ (e(!0), n(R, null, A([...Array(3)], (r, M) => (e(), n("div", {
154
+ key: M,
155
155
  class: "tw-h-2 tw-mb-1"
156
156
  }, [
157
- i(l)
157
+ d(l)
158
158
  ]))), 128))
159
159
  ])) : (e(), n("div", E, [
160
- i(x, {
160
+ d(x, {
161
161
  use: t.loanUse,
162
162
  "loan-amount": t.loanAmount,
163
163
  status: t.loanStatus,
@@ -174,24 +174,24 @@ function G(k, a, w, t, H, h) {
174
174
  }, 8, ["to", "href"]))
175
175
  ])
176
176
  ]),
177
- s("div", U, [
178
- t.hasProgressData ? c("", !0) : (e(), n("div", W, [
179
- s("div", j, [
180
- i(l, {
177
+ i("div", U, [
178
+ t.hasProgressData ? m("", !0) : (e(), n("div", W, [
179
+ i("div", j, [
180
+ d(l, {
181
181
  class: "tw-mb-0.5",
182
182
  style: { width: "20%", height: "1.3rem" }
183
183
  }),
184
- i(l, {
184
+ d(l, {
185
185
  class: "tw-mb-0.5",
186
186
  style: { width: "20%", height: "1.3rem" }
187
187
  })
188
188
  ]),
189
- i(l, {
189
+ d(l, {
190
190
  class: "tw-rounded",
191
191
  style: { width: "100%", height: "0.5rem" }
192
192
  })
193
193
  ])),
194
- s("div", null, [
194
+ i("div", null, [
195
195
  t.sharesAvailable ? (e(), o(g(t.tag), {
196
196
  key: 0,
197
197
  to: t.readMorePath,
@@ -200,8 +200,8 @@ function G(k, a, w, t, H, h) {
200
200
  "aria-label": "Loan progress",
201
201
  onClick: a[5] || (a[5] = (r) => t.clickReadMore("Progress", r))
202
202
  }, {
203
- default: m(() => [
204
- i(C, {
203
+ default: w(() => [
204
+ d(C, {
205
205
  id: "loanProgress",
206
206
  "money-left": t.unreservedAmount,
207
207
  "amount-goal": t.loanAmount,
@@ -210,15 +210,15 @@ function G(k, a, w, t, H, h) {
210
210
  }, null, 8, ["money-left", "amount-goal", "progress-percent"])
211
211
  ]),
212
212
  _: 1
213
- }, 8, ["to", "href"])) : c("", !0)
213
+ }, 8, ["to", "href"])) : m("", !0)
214
214
  ]),
215
215
  t.isLoading ? (e(), o(l, {
216
216
  key: 1,
217
217
  class: "tw-rounded tw-mx-auto tw-mt-2",
218
218
  style: { width: "9rem", height: "1rem" }
219
- })) : h.isFunded ? (e(), n("div", K, " 🎉 Fully funded! ")) : (e(), o(N, {
219
+ })) : h.isFunded ? (e(), n("div", K, " 🎉 Fully funded! ")) : (e(), o(L, {
220
220
  key: 3,
221
- loan: w.loan,
221
+ loan: c.loan,
222
222
  "use-expanded-styles": !0,
223
223
  style: { "font-size": "15px" },
224
224
  class: "tw-text-center tw-pt-2"
@@ -226,7 +226,7 @@ function G(k, a, w, t, H, h) {
226
226
  ])
227
227
  ], 6);
228
228
  }
229
- const Y = /* @__PURE__ */ B(M, [["render", G], ["__scopeId", "data-v-035d3df9"]]);
229
+ const Y = /* @__PURE__ */ B(N, [["render", G], ["__scopeId", "data-v-fa784de7"]]);
230
230
  export {
231
231
  tt as KV_INTRODUCTION_LOAN_CARD_FRAGMENT,
232
232
  et as KV_INTRODUCTION_LOAN_CARD_USER_FRAGMENT,
@@ -2,36 +2,36 @@ import u from "./KvLineGraph2.js";
2
2
  import { openBlock as e, createElementBlock as a, createElementVNode as o, normalizeStyle as r, Fragment as s, renderList as w, toDisplayString as i, createCommentVNode as c, normalizeClass as m } from "vue";
3
3
  import d from "../_virtual/_plugin-vue_export-helper.js";
4
4
  const f = { class: "tw-h-full tw-w-full tw-p-2.5" };
5
- function h(b, g, n, t, y, _) {
5
+ function h(b, g, n, l, y, p) {
6
6
  return e(), a("div", f, [
7
7
  o("figure", {
8
8
  class: "tw-w-full tw-relative",
9
- style: r({ height: t.graphHeight })
9
+ style: r({ height: l.graphHeight })
10
10
  }, [
11
11
  o("div", {
12
12
  class: "tw-w-full tw-h-full tw-bg-marigold-2 tw-opacity-low",
13
- style: r({ clipPath: `polygon(${t.shade}, 100% 100%, 0% 100%)` })
13
+ style: r({ clipPath: `polygon(${l.shade}, 100% 100%, 0% 100%)` })
14
14
  }, null, 4),
15
15
  o("div", {
16
16
  class: "tw-absolute tw-top-0 tw-w-full tw-h-full tw-bg-marigold-2",
17
- style: r({ clipPath: `polygon(${t.line})` })
17
+ style: r({ clipPath: `polygon(${l.line})` })
18
18
  }, null, 4),
19
- (e(!0), a(s, null, w(t.normalizedPoints, (l) => (e(), a("span", {
20
- key: l.x,
19
+ (e(!0), a(s, null, w(l.normalizedPoints, (t) => (e(), a("span", {
20
+ key: t.x,
21
21
  class: "tw-absolute tw-w-2 tw-h-2 tw-border tw-border-white tw-bg-marigold-2 tw-rounded-full",
22
- style: r({ left: `${l.x}%`, top: `${l.y}%`, transform: "translate(-50%, -50%)" })
22
+ style: r({ left: `${t.x}%`, top: `${t.y}%`, transform: "translate(-50%, -50%)" })
23
23
  }, null, 4))), 128)),
24
- (e(!0), a(s, null, w(t.normalizedPoints, (l) => (e(), a(s, null, [
25
- l.label ? (e(), a("span", {
26
- key: l.label,
24
+ (e(!0), a(s, null, w(l.normalizedPoints, (t) => (e(), a(s, null, [
25
+ t.label ? (e(), a("span", {
26
+ key: t.label,
27
27
  class: "tw-absolute",
28
- style: r({ left: `${l.x}%`, bottom: "-3rem", transform: "translate(-50%, -50%)" })
29
- }, i(l.label), 5)) : c("", !0)
28
+ style: r({ left: `${t.x}%`, bottom: "-3rem", transform: "translate(-50%, -50%)" })
29
+ }, i(t.label), 5)) : c("", !0)
30
30
  ], 64))), 256))
31
31
  ], 4),
32
- n.axisLabel ? (e(), a("h4", {
32
+ n.axisLabel ? (e(), a("p", {
33
33
  key: 0,
34
- class: m(["tw-text-center", { "tw-pt-1": !t.hasValueLabels, "tw-pt-6": t.hasValueLabels }])
34
+ class: m(["tw-text-center tw-text-upper", { "tw-pt-1": !l.hasValueLabels, "tw-pt-6": l.hasValueLabels }])
35
35
  }, i(n.axisLabel), 3)) : c("", !0)
36
36
  ]);
37
37
  }
@@ -1 +1 @@
1
- .loan-activity[data-v-29ed34b0] #kvLightboxBody{display:flex;flex-direction:column;padding-left:0;padding-right:0;padding-bottom:0}.loan-activity[data-v-29ed34b0] div>div>div>div>div:first-child{box-shadow:var(--kiva-box-shadow)}.loan-activity[data-v-29ed34b0] div>div>div>div>div:first-child>div,.loan-activity[data-v-29ed34b0] #kvLightboxBody div{box-shadow:none}.loan-activity[data-v-29ed34b0] #kvLightboxBody>div:first-child{padding-left:2rem;padding-right:2rem}.loan-activity[data-v-29ed34b0] [role=dialog]{min-width:840px;max-width:840px!important}@media (max-width: calc(840px + 2rem)){.loan-activity[data-v-29ed34b0] [role=dialog]{min-width:100%;max-width:100%!important}}.loan-activity[data-v-29ed34b0] #kvLightboxBody>div:nth-child(2){padding-left:2rem;padding-right:2rem;box-shadow:var(--kiva-negative-box-shadow)}
1
+ .loan-activity[data-v-c2b4aeda] #kvLightboxBody{display:flex;flex-direction:column;padding-left:0;padding-right:0;padding-bottom:0}.loan-activity[data-v-c2b4aeda] div>div>div>div>div:first-child{box-shadow:var(--kiva-box-shadow)}.loan-activity[data-v-c2b4aeda] div>div>div>div>div:first-child>div,.loan-activity[data-v-c2b4aeda] #kvLightboxBody div{box-shadow:none}.loan-activity[data-v-c2b4aeda] #kvLightboxBody>div:first-child{padding-left:2rem;padding-right:2rem}.loan-activity[data-v-c2b4aeda] [role=dialog]{min-width:840px;max-width:840px!important}@media (max-width: calc(840px + 2rem)){.loan-activity[data-v-c2b4aeda] [role=dialog]{min-width:100%;max-width:100%!important}}.loan-activity[data-v-c2b4aeda] #kvLightboxBody>div:nth-child(2){padding-left:2rem;padding-right:2rem;box-shadow:var(--kiva-negative-box-shadow)}
@@ -1,54 +1,54 @@
1
- import h from "./KvLoanActivities2.js";
1
+ import g from "./KvLoanActivities2.js";
2
2
  import { KV_LOAN_ACTIVITIES_FRAGMENT as H } from "./KvLoanActivities2.js";
3
- import { resolveComponent as c, openBlock as n, createElementBlock as s, createElementVNode as o, createVNode as d, toDisplayString as l, createCommentVNode as r, withCtx as m, Fragment as w, renderList as _, createBlock as g } from "vue";
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
4
  import "./KvLoanActivities.css";
5
5
  import y from "../_virtual/_plugin-vue_export-helper.js";
6
6
  const A = {
7
7
  key: 0,
8
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-h3 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-h4" }, V = { class: "tw-flex tw-flex-col tw-gap-y-1" }, B = {
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
10
  key: 0,
11
11
  class: "tw-mt-1 tw-text-small tw-text-danger"
12
12
  }, F = { class: "tw-flex tw-justify-end tw-mt-4 tw-pb-2.5 md:tw-pb-4" };
13
13
  function I(x, a, t, e, j, E) {
14
- const v = c("KvActivityRow"), k = c("KvLendCta"), b = c("KvLightbox");
14
+ const v = c("KvActivityRow"), k = c("KvLendCta"), u = c("KvLightbox");
15
15
  return t.combinedActivities.length > 0 ? (n(), s("div", A, [
16
- o("div", L, [
16
+ i("div", L, [
17
17
  d(v, { activity: e.singleActivity }, null, 8, ["activity"])
18
18
  ]),
19
- o("div", C, [
19
+ i("div", C, [
20
20
  e.lendersNumber && e.amountLent ? (n(), s("span", K, l(e.lendersNumber) + " lenders lent " + l(e.amountLent) + ".   ", 1)) : r("", !0),
21
- o("button", {
21
+ i("button", {
22
22
  class: "tw-text-action hover:tw-underline",
23
- onClick: a[0] || (a[0] = (...i) => e.showActivityModal && e.showActivityModal(...i))
23
+ onClick: a[0] || (a[0] = (...o) => e.showActivityModal && e.showActivityModal(...o))
24
24
  }, " See all activity ")
25
25
  ]),
26
- d(b, {
26
+ d(u, {
27
27
  title: "Activity Feed Modal",
28
28
  visible: e.lightboxOpen,
29
29
  onLightboxClosed: e.closeLightbox
30
30
  }, {
31
31
  header: m(() => [
32
- o("h2", N, l(e.modalTitle), 1)
32
+ i("h2", N, l(e.modalTitle), 1)
33
33
  ]),
34
34
  default: m(() => [
35
- o("div", M, [
36
- (n(!0), s(w, null, _(t.combinedActivities, (i) => (n(), s("div", {
37
- key: i.key,
35
+ i("div", M, [
36
+ (n(!0), s(w, null, _(t.combinedActivities, (o) => (n(), s("div", {
37
+ key: o.key,
38
38
  class: "md:tw-px-8 lg:tw-px-14 tw-mt-4"
39
39
  }, [
40
- o("h4", T, l(e.formattedDate(i.key)), 1),
41
- o("div", V, [
42
- (n(!0), s(w, null, _(i.data, (f, u) => (n(), g(v, {
43
- key: u,
44
- activity: f
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
45
  }, null, 8, ["activity"]))), 128))
46
46
  ])
47
47
  ]))), 128))
48
48
  ]),
49
- o("div", null, [
49
+ i("div", null, [
50
50
  t.errorMsg ? (n(), s("p", B, l(t.errorMsg), 1)) : r("", !0),
51
- o("div", F, [
51
+ i("div", F, [
52
52
  d(k, {
53
53
  loan: t.loan,
54
54
  "is-loading": !1,
@@ -61,7 +61,7 @@ function I(x, a, t, e, j, E) {
61
61
  "is-adding": t.isAdding,
62
62
  "is-visitor": t.isVisitor,
63
63
  "enable-five-dollars-notes": t.enableFiveDollarsNotes,
64
- onAddToBasket: a[1] || (a[1] = (i) => x.$emit("add-to-basket", i))
64
+ onAddToBasket: a[1] || (a[1] = (o) => x.$emit("add-to-basket", o))
65
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
66
  ])
67
67
  ])
@@ -70,7 +70,7 @@ function I(x, a, t, e, j, E) {
70
70
  }, 8, ["visible", "onLightboxClosed"])
71
71
  ])) : r("", !0);
72
72
  }
73
- const G = /* @__PURE__ */ y(h, [["render", I], ["__scopeId", "data-v-29ed34b0"]]);
73
+ const G = /* @__PURE__ */ y(g, [["render", I], ["__scopeId", "data-v-c2b4aeda"]]);
74
74
  export {
75
75
  H as KV_LOAN_ACTIVITIES_FRAGMENT,
76
76
  G as default
@@ -1 +1 @@
1
- .loan-card-active-hover[data-v-5370a5d5]:hover{cursor:pointer}.loan-card-use[data-v-5370a5d5]:hover,.loan-card-use[data-v-5370a5d5]: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-5370a5d5]{text-decoration-line:underline}.loan-card-progress[data-v-5370a5d5]:hover,.loan-card-progress[data-v-5370a5d5]:focus{text-decoration-line:none}
1
+ .loan-card-active-hover[data-v-de35f998]:hover{cursor:pointer}.loan-card-use[data-v-de35f998]:hover,.loan-card-use[data-v-de35f998]: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-de35f998]{text-decoration-line:underline}.loan-card-progress[data-v-de35f998]:hover,.loan-card-progress[data-v-de35f998]:focus{text-decoration-line:none}
@@ -3,11 +3,11 @@ import { LOAN_GEOCODE_FRAGMENT as R, loanCardComputedProperties as z, loanCardMe
3
3
  import K from "./KvLoanUse.js";
4
4
  import W from "./KvBorrowerImage.js";
5
5
  import F from "./KvMaterialIcon.js";
6
- import T from "./KvLoadingPlaceholder.js";
7
- import { resolveComponent as m, openBlock as t, createElementBlock as i, normalizeClass as _, normalizeStyle as E, createElementVNode as d, createBlock as c, resolveDynamicComponent as v, withCtx as k, createVNode as s, createTextVNode as I, toDisplayString as b, createCommentVNode as O, Fragment as V, renderList as U, withModifiers as G } from "vue";
6
+ import E from "./KvLoadingPlaceholder.js";
7
+ import { resolveComponent as m, openBlock as t, createElementBlock as i, normalizeClass as _, normalizeStyle as I, createElementVNode as l, createBlock as c, resolveDynamicComponent as v, withCtx as k, createVNode as s, toDisplayString as b, createCommentVNode as T, Fragment as O, renderList as U, withModifiers as V } from "vue";
8
8
  import "./KvLoanInfoCard.css";
9
- import H from "../_virtual/_plugin-vue_export-helper.js";
10
- import { KV_LOAN_USE_FRAGMENT as q } from "./KvLoanUse2.js";
9
+ import G from "../_virtual/_plugin-vue_export-helper.js";
10
+ import { KV_LOAN_USE_FRAGMENT as H } from "./KvLoanUse2.js";
11
11
  const fe = B`
12
12
  fragment KvLoanInfoCard on LoanBasic {
13
13
  id
@@ -20,13 +20,13 @@ const fe = B`
20
20
  ...KvLoanUse
21
21
  ...LoanGeocode
22
22
  }
23
- ${q}
23
+ ${H}
24
24
  ${R}
25
- `, j = {
25
+ `, q = {
26
26
  name: "KvLoanInfoCard",
27
27
  components: {
28
28
  KvBorrowerImage: W,
29
- KvLoadingPlaceholder: T,
29
+ KvLoadingPlaceholder: E,
30
30
  KvLoanUse: K,
31
31
  KvMaterialIcon: F
32
32
  },
@@ -82,14 +82,14 @@ const fe = B`
82
82
  borrowerName: e,
83
83
  city: y,
84
84
  countryName: n,
85
- distributionModel: l,
85
+ distributionModel: d,
86
86
  formattedLocation: h,
87
87
  imageHash: u,
88
88
  isLoading: f,
89
89
  loanAmount: r,
90
90
  loanBorrowerCount: g,
91
- loanStatus: x,
92
- loanUse: p,
91
+ loanStatus: p,
92
+ loanUse: x,
93
93
  mdiMapMarker: L,
94
94
  readMorePath: C,
95
95
  state: M,
@@ -104,14 +104,14 @@ const fe = B`
104
104
  borrowerName: e,
105
105
  city: y,
106
106
  countryName: n,
107
- distributionModel: l,
107
+ distributionModel: d,
108
108
  formattedLocation: h,
109
109
  imageHash: u,
110
110
  isLoading: f,
111
111
  loanAmount: r,
112
112
  loanBorrowerCount: g,
113
- loanStatus: x,
114
- loanUse: p,
113
+ loanStatus: p,
114
+ loanUse: x,
115
115
  mdiMapMarker: L,
116
116
  readMorePath: C,
117
117
  state: M,
@@ -141,13 +141,13 @@ const fe = B`
141
141
  ];
142
142
  }
143
143
  }
144
- }, J = { class: "tw-grow" }, Q = { class: "loan-card-active-hover tw-h-full tw-flex tw-flex-col" }, X = {
144
+ }, j = { class: "tw-grow" }, J = { class: "loan-card-active-hover tw-h-full tw-flex tw-flex-col" }, Q = {
145
145
  key: 1,
146
146
  class: "tw-relative"
147
- }, Y = { key: 0 }, Z = {
148
- 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-h4 tw-inline-flex tw-items-center",
147
+ }, X = { key: 0 }, Y = {
148
+ 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",
149
149
  style: { padding: "2px 6px", "text-transform": "capitalize" }
150
- }, $ = { class: "tw-mb-1.5 tw-pt-1" }, ee = {
150
+ }, Z = { style: { "margin-top": "0.125rem" } }, $ = { class: "tw-mb-1.5 tw-pt-1" }, ee = {
151
151
  key: 0,
152
152
  class: "tw-w-full",
153
153
  style: { height: "5.5rem" }
@@ -157,19 +157,19 @@ const fe = B`
157
157
  style: { height: "1rem" }
158
158
  };
159
159
  function re(w, a, o, e, y, n) {
160
- const l = m("kv-loading-placeholder"), h = m("kv-borrower-image"), u = m("kv-material-icon"), f = m("kv-loan-use");
160
+ const d = m("kv-loading-placeholder"), h = m("kv-borrower-image"), u = m("kv-material-icon"), f = m("kv-loan-use");
161
161
  return t(), i("div", {
162
162
  class: _(["tw-flex tw-flex-col tw-bg-white tw-rounded tw-h-full tw-w-full tw-pb-1 tw-p-1", { "tw-pointer-events-none": e.isLoading }]),
163
163
  "data-testid": "loan-card",
164
- style: E([{ "box-shadow": "0 4px 12px rgba(0, 0, 0, 0.08)" }, { minWidth: "230px", maxWidth: n.cardWidth }])
164
+ style: I([{ "box-shadow": "0 4px 12px rgba(0, 0, 0, 0.08)" }, { minWidth: "230px", maxWidth: n.cardWidth }])
165
165
  }, [
166
- d("div", J, [
167
- d("div", Q, [
168
- e.isLoading ? (t(), c(l, {
166
+ l("div", j, [
167
+ l("div", J, [
168
+ e.isLoading ? (t(), c(d, {
169
169
  key: 0,
170
170
  class: _(["tw-mb-1 tw-w-full", { "tw-rounded-t-sm tw-rounded-b-none": o.largeCard, "!tw-rounded-sm": !o.largeCard }]),
171
171
  style: { height: "15rem" }
172
- }, null, 8, ["class"])) : (t(), i("div", X, [
172
+ }, null, 8, ["class"])) : (t(), i("div", Q, [
173
173
  (t(), c(v(e.tag), {
174
174
  to: e.readMorePath,
175
175
  href: e.readMorePath,
@@ -187,15 +187,15 @@ function re(w, a, o, e, y, n) {
187
187
  images: n.imageSizes,
188
188
  "photo-path": o.photoPath
189
189
  }, null, 8, ["class", "alt", "aspect-ratio", "default-image", "hash", "images", "photo-path"]),
190
- e.countryName ? (t(), i("div", Y, [
191
- d("p", Z, [
190
+ e.countryName ? (t(), i("div", X, [
191
+ l("p", Y, [
192
192
  s(u, {
193
193
  class: "tw-h-2 tw-w-2",
194
194
  icon: e.mdiMapMarker
195
195
  }, null, 8, ["icon"]),
196
- I(" " + b(e.formattedLocation), 1)
196
+ l("span", Z, b(e.formattedLocation), 1)
197
197
  ])
198
- ])) : O("", !0)
198
+ ])) : T("", !0)
199
199
  ]),
200
200
  _: 1
201
201
  }, 8, ["to", "href"]))
@@ -208,13 +208,13 @@ function re(w, a, o, e, y, n) {
208
208
  onClick: a[1] || (a[1] = (r) => e.clickReadMore("Use", r))
209
209
  }, {
210
210
  default: k(() => [
211
- d("div", $, [
211
+ l("div", $, [
212
212
  e.isLoading ? (t(), i("div", ee, [
213
- (t(!0), i(V, null, U([...Array(4)], (r, g) => (t(), i("div", {
213
+ (t(!0), i(O, null, U([...Array(4)], (r, g) => (t(), i("div", {
214
214
  key: g,
215
215
  class: "tw-h-2 tw-mb-1"
216
216
  }, [
217
- s(l)
217
+ s(d)
218
218
  ]))), 128))
219
219
  ])) : (t(), i("div", te, [
220
220
  s(f, {
@@ -240,12 +240,12 @@ function re(w, a, o, e, y, n) {
240
240
  onClick: a[3] || (a[3] = (r) => e.clickReadMore(o.primaryLinkText, r))
241
241
  }, {
242
242
  default: k(() => [
243
- d("div", ae, [
243
+ l("div", ae, [
244
244
  e.isLoading ? (t(), i("div", oe, [
245
- s(l)
245
+ s(d)
246
246
  ])) : (t(), i("div", {
247
247
  key: 1,
248
- onClick: a[2] || (a[2] = G((r) => e.clickReadMore("ViewLoan", r), ["prevent"]))
248
+ onClick: a[2] || (a[2] = V((r) => e.clickReadMore("ViewLoan", r), ["prevent"]))
249
249
  }, b(o.primaryLinkText), 1))
250
250
  ])
251
251
  ]),
@@ -255,7 +255,7 @@ function re(w, a, o, e, y, n) {
255
255
  ])
256
256
  ], 6);
257
257
  }
258
- const ge = /* @__PURE__ */ H(j, [["render", re], ["__scopeId", "data-v-5370a5d5"]]);
258
+ const ge = /* @__PURE__ */ G(q, [["render", re], ["__scopeId", "data-v-de35f998"]]);
259
259
  export {
260
260
  fe as KV_LOAN_INFO_CARD_FRAGMENT,
261
261
  ge as default
@@ -1 +1 @@
1
- .progress-group-amount-low[data-v-d788b8b5]{color:#ce4a00}
1
+ .progress-group-amount-low[data-v-bb22840b]{color:#ce4a00}
@@ -1,29 +1,29 @@
1
1
  import c from "./KvLoanProgressGroup2.js";
2
- import { resolveComponent as m, openBlock as o, createElementBlock as r, createElementVNode as a, normalizeClass as n, toDisplayString as s, createCommentVNode as u, createVNode as _ } from "vue";
2
+ import { resolveComponent as m, openBlock as o, createElementBlock as r, createElementVNode as a, normalizeClass as n, toDisplayString as l, createCommentVNode as u, createVNode as _ } from "vue";
3
3
  import "./KvLoanProgressGroup.css";
4
4
  import d from "../_virtual/_plugin-vue_export-helper.js";
5
- const f = {
5
+ const p = {
6
6
  key: 0,
7
- class: "tw-lowercase tw-mb-0.5"
7
+ class: "tw-text-label tw-mb-0.5"
8
8
  };
9
- function i(p, w, e, g, b, t) {
10
- const l = m("kv-progress-bar");
9
+ function f(i, b, e, g, w, t) {
10
+ const s = m("kv-progress-bar");
11
11
  return o(), r("figure", null, [
12
12
  a("div", {
13
13
  class: n({ "tw-flex tw-justify-between": e.amountGoal })
14
14
  }, [
15
- a("h4", {
16
- class: n(["tw-lowercase tw-mb-0.5", { "progress-group-amount-low": t.amountLow }])
17
- }, s(t.fundingText), 3),
18
- e.amountGoal ? (o(), r("h4", f, s(t.goalText), 1)) : u("", !0)
15
+ a("p", {
16
+ class: n(["tw-text-label tw-mb-0.5", { "progress-group-amount-low": t.amountLow }])
17
+ }, l(t.fundingText), 3),
18
+ e.amountGoal ? (o(), r("p", p, l(t.goalText), 1)) : u("", !0)
19
19
  ], 2),
20
- _(l, {
20
+ _(s, {
21
21
  label: "Percent the loan has funded",
22
22
  value: e.progressPercent * 100
23
23
  }, null, 8, ["value"])
24
24
  ]);
25
25
  }
26
- const y = /* @__PURE__ */ d(c, [["render", i], ["__scopeId", "data-v-d788b8b5"]]);
26
+ const y = /* @__PURE__ */ d(c, [["render", f], ["__scopeId", "data-v-bb22840b"]]);
27
27
  export {
28
28
  y as default
29
29
  };