@kiva/kv-components 8.26.0 → 8.26.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.
@@ -1,14 +1,15 @@
1
- import B from "graphql-tag";
2
- import { LOAN_GEOCODE_FRAGMENT as R, loanCardComputedProperties as z, loanCardMethods as D } from "../utils/loanCard.js";
3
- import K from "./KvLoanUse.js";
4
- import W from "./KvBorrowerImage.js";
5
- import F from "./KvMaterialIcon.js";
6
- import E from "./KvLoadingPlaceholder.js";
7
- import { resolveComponent as m, openBlock as t, createElementBlock as i, normalizeStyle as I, normalizeClass as _, 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";
1
+ import K from "graphql-tag";
2
+ import { LOAN_GEOCODE_FRAGMENT as z, loanCardComputedProperties as D, loanCardMethods as I, useLocationTruncation as W } from "../utils/loanCard.js";
3
+ import F from "./KvLoanUse.js";
4
+ import E from "./KvBorrowerImage.js";
5
+ import O from "./KvMaterialIcon.js";
6
+ import V from "./KvLoadingPlaceholder.js";
7
+ import U from "./KvTooltip.js";
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";
8
9
  import "./KvLoanInfoCard.css";
9
- import G from "../_virtual/_plugin-vue_export-helper.js";
10
- import { KV_LOAN_USE_FRAGMENT as H } from "./KvLoanUse2.js";
11
- const fe = B`
10
+ import Q from "../_virtual/_plugin-vue_export-helper.js";
11
+ import { KV_LOAN_USE_FRAGMENT as X } from "./KvLoanUse2.js";
12
+ const bt = K`
12
13
  fragment KvLoanInfoCard on LoanBasic {
13
14
  id
14
15
  gender
@@ -20,15 +21,16 @@ const fe = B`
20
21
  ...KvLoanUse
21
22
  ...LoanGeocode
22
23
  }
23
- ${H}
24
- ${R}
25
- `, q = {
24
+ ${X}
25
+ ${z}
26
+ `, Y = {
26
27
  name: "KvLoanInfoCard",
27
28
  components: {
28
- KvBorrowerImage: W,
29
- KvLoadingPlaceholder: E,
30
- KvLoanUse: K,
31
- KvMaterialIcon: F
29
+ KvBorrowerImage: E,
30
+ KvLoadingPlaceholder: V,
31
+ KvLoanUse: F,
32
+ KvMaterialIcon: O,
33
+ KvTooltip: U
32
34
  },
33
35
  props: {
34
36
  loanId: {
@@ -76,49 +78,54 @@ const fe = B`
76
78
  default: ""
77
79
  }
78
80
  },
79
- setup(w, { emit: a }) {
81
+ setup(h, { emit: a }) {
80
82
  const {
81
83
  allDataLoaded: o,
82
- borrowerName: e,
83
- city: y,
84
+ borrowerName: t,
85
+ city: x,
84
86
  countryName: n,
85
87
  distributionModel: d,
86
- formattedLocation: h,
87
- imageHash: u,
88
- isLoading: f,
89
- loanAmount: r,
90
- loanBorrowerCount: g,
91
- loanStatus: p,
92
- loanUse: x,
93
- mdiMapMarker: L,
94
- readMorePath: C,
95
- state: M,
96
- tag: N,
97
- unreservedAmount: S,
98
- sharesAvailable: A
99
- } = z(w), {
100
- clickReadMore: P
101
- } = D(w, a);
88
+ formattedLocation: u,
89
+ imageHash: f,
90
+ isLoading: g,
91
+ loanAmount: _,
92
+ loanBorrowerCount: r,
93
+ loanStatus: v,
94
+ loanUse: p,
95
+ mdiMapMarker: C,
96
+ readMorePath: M,
97
+ state: N,
98
+ tag: S,
99
+ unreservedAmount: A,
100
+ sharesAvailable: P
101
+ } = D(h), {
102
+ clickReadMore: R
103
+ } = I(h, a), {
104
+ locationRef: T,
105
+ isLocationTruncated: B
106
+ } = W();
102
107
  return {
103
108
  allDataLoaded: o,
104
- borrowerName: e,
105
- city: y,
109
+ borrowerName: t,
110
+ city: x,
106
111
  countryName: n,
107
112
  distributionModel: d,
108
- formattedLocation: h,
109
- imageHash: u,
110
- isLoading: f,
111
- loanAmount: r,
112
- loanBorrowerCount: g,
113
- loanStatus: p,
114
- loanUse: x,
115
- mdiMapMarker: L,
116
- readMorePath: C,
117
- state: M,
118
- tag: N,
119
- unreservedAmount: S,
120
- sharesAvailable: A,
121
- clickReadMore: P
113
+ formattedLocation: u,
114
+ imageHash: f,
115
+ isLoading: g,
116
+ loanAmount: _,
117
+ loanBorrowerCount: r,
118
+ loanStatus: v,
119
+ loanUse: p,
120
+ mdiMapMarker: C,
121
+ readMorePath: M,
122
+ state: N,
123
+ tag: S,
124
+ unreservedAmount: A,
125
+ sharesAvailable: P,
126
+ clickReadMore: R,
127
+ locationRef: T,
128
+ isLocationTruncated: B
122
129
  };
123
130
  },
124
131
  computed: {
@@ -141,90 +148,105 @@ const fe = B`
141
148
  ];
142
149
  }
143
150
  }
144
- }, j = { class: "tw-grow" }, J = { class: "loan-card-active-hover tw-h-full tw-flex tw-flex-col" }, Q = {
151
+ }, Z = { class: "tw-grow" }, $ = { class: "loan-card-active-hover tw-h-full tw-flex tw-flex-col" }, tt = {
145
152
  key: 1,
146
153
  class: "tw-relative"
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
- style: { padding: "2px 6px", "text-transform": "capitalize" }
150
- }, Z = { style: { "margin-top": "0.125rem" } }, $ = { class: "tw-mb-1.5 tw-pt-1" }, ee = {
154
+ }, et = { key: 0 }, ot = {
155
+ class: "tw-absolute tw-bottom-1 tw-left-1 tw-text-primary tw-bg-white tw-rounded tw-p-1 tw-mb-0 tw-text-label tw-flex tw-items-center tw-h-3",
156
+ style: { padding: "2px 6px", "text-transform": "capitalize", "max-width": "calc(100% - 1rem)" }
157
+ }, at = ["id"], rt = { class: "tw-mb-1.5 tw-pt-1" }, it = {
151
158
  key: 0,
152
159
  class: "tw-w-full",
153
160
  style: { height: "5.5rem" }
154
- }, te = { key: 1 }, ae = { class: "tw-mt-1" }, oe = {
161
+ }, nt = { key: 1 }, lt = { class: "tw-mt-1" }, dt = {
155
162
  key: 0,
156
163
  class: "tw-w-full",
157
164
  style: { height: "1rem" }
158
165
  };
159
- function re(w, a, o, e, y, n) {
160
- const d = m("kv-loading-placeholder"), h = m("kv-borrower-image"), u = m("kv-material-icon"), f = m("kv-loan-use");
161
- return t(), i("div", {
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 }]),
166
+ function st(h, a, o, t, x, n) {
167
+ const d = s("kv-loading-placeholder"), u = s("kv-borrower-image"), f = s("kv-material-icon"), g = s("kv-tooltip"), _ = s("kv-loan-use");
168
+ return e(), i("div", {
169
+ class: k(["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": t.isLoading }]),
163
170
  "data-testid": "loan-card",
164
- style: I([{ "box-shadow": "0 4px 12px rgba(0, 0, 0, 0.08)" }, { minWidth: "230px", maxWidth: n.cardWidth }])
171
+ style: G([{ "box-shadow": "0 4px 12px rgba(0, 0, 0, 0.08)" }, { minWidth: "230px", maxWidth: n.cardWidth }])
165
172
  }, [
166
- l("div", j, [
167
- l("div", J, [
168
- e.isLoading ? (t(), c(d, {
173
+ l("div", Z, [
174
+ l("div", $, [
175
+ t.isLoading ? (e(), c(d, {
169
176
  key: 0,
170
- class: _(["tw-mb-1 tw-w-full", { "tw-rounded-t-sm tw-rounded-b-none": o.largeCard, "!tw-rounded-sm": !o.largeCard }]),
177
+ class: k(["tw-mb-1 tw-w-full", { "tw-rounded-t-sm tw-rounded-b-none": o.largeCard, "!tw-rounded-sm": !o.largeCard }]),
171
178
  style: { height: "15rem" }
172
- }, null, 8, ["class"])) : (t(), i("div", Q, [
173
- (t(), c(v(e.tag), {
174
- to: e.readMorePath,
175
- href: e.readMorePath,
179
+ }, null, 8, ["class"])) : (e(), i("div", tt, [
180
+ (e(), c(y(t.tag), {
181
+ to: t.readMorePath,
182
+ href: t.readMorePath,
176
183
  class: "tw-flex",
177
184
  "aria-label": "Borrower image",
178
- onClick: a[0] || (a[0] = (r) => e.clickReadMore("Photo", r))
185
+ onClick: a[0] || (a[0] = (r) => t.clickReadMore("Photo", r))
179
186
  }, {
180
- default: k(() => [
181
- s(h, {
182
- class: _(["tw-relative tw-w-full tw-bg-black tw-bg-clip-content", { "tw-rounded-t-sm": o.largeCard, "tw-rounded-sm": !o.largeCard }]),
183
- alt: `Photo of ${e.borrowerName}`,
187
+ default: w(() => [
188
+ m(u, {
189
+ class: k(["tw-relative tw-w-full tw-bg-black tw-bg-clip-content", { "tw-rounded-t-sm": o.largeCard, "tw-rounded-sm": !o.largeCard }]),
190
+ alt: `Photo of ${t.borrowerName}`,
184
191
  "aspect-ratio": n.imageAspectRatio,
185
192
  "default-image": { width: n.imageDefaultWidth },
186
- hash: e.imageHash,
193
+ hash: t.imageHash,
187
194
  images: n.imageSizes,
188
195
  "photo-path": o.photoPath
189
196
  }, null, 8, ["class", "alt", "aspect-ratio", "default-image", "hash", "images", "photo-path"]),
190
- e.countryName ? (t(), i("div", X, [
191
- l("p", Y, [
192
- s(u, {
193
- class: "tw-h-2 tw-w-2",
194
- icon: e.mdiMapMarker
197
+ t.countryName ? (e(), i("div", et, [
198
+ l("p", ot, [
199
+ m(f, {
200
+ class: "tw-h-2 tw-w-2 tw-flex-shrink-0",
201
+ icon: t.mdiMapMarker
195
202
  }, null, 8, ["icon"]),
196
- l("span", Z, b(e.formattedLocation), 1)
203
+ l("span", {
204
+ id: `loan-location-${o.loanId}`,
205
+ ref: "locationRef",
206
+ class: "tw-truncate tw-min-w-0",
207
+ style: { "margin-top": "0.125rem" }
208
+ }, b(t.formattedLocation), 9, at),
209
+ t.isLocationTruncated ? (e(), c(g, {
210
+ key: 0,
211
+ controller: `loan-location-${o.loanId}`,
212
+ "max-width": "250px"
213
+ }, {
214
+ default: w(() => [
215
+ H(b(t.formattedLocation), 1)
216
+ ]),
217
+ _: 1
218
+ }, 8, ["controller"])) : L("", !0)
197
219
  ])
198
- ])) : T("", !0)
220
+ ])) : L("", !0)
199
221
  ]),
200
222
  _: 1
201
223
  }, 8, ["to", "href"]))
202
224
  ])),
203
- (t(), c(v(e.tag), {
204
- to: e.readMorePath,
205
- href: e.readMorePath,
225
+ (e(), c(y(t.tag), {
226
+ to: t.readMorePath,
227
+ href: t.readMorePath,
206
228
  class: "loan-card-use tw-no-underline tw-text-primary",
207
229
  "aria-label": "Loan use",
208
- onClick: a[1] || (a[1] = (r) => e.clickReadMore("Use", r))
230
+ onClick: a[1] || (a[1] = (r) => t.clickReadMore("Use", r))
209
231
  }, {
210
- default: k(() => [
211
- l("div", $, [
212
- e.isLoading ? (t(), i("div", ee, [
213
- (t(!0), i(O, null, U([...Array(4)], (r, g) => (t(), i("div", {
214
- key: g,
232
+ default: w(() => [
233
+ l("div", rt, [
234
+ t.isLoading ? (e(), i("div", it, [
235
+ (e(!0), i(q, null, j([...Array(4)], (r, v) => (e(), i("div", {
236
+ key: v,
215
237
  class: "tw-h-2 tw-mb-1"
216
238
  }, [
217
- s(d)
239
+ m(d)
218
240
  ]))), 128))
219
- ])) : (t(), i("div", te, [
220
- s(f, {
221
- use: e.loanUse,
241
+ ])) : (e(), i("div", nt, [
242
+ m(_, {
243
+ use: t.loanUse,
222
244
  "hide-loan-amount": !0,
223
- "loan-amount": e.loanAmount,
224
- status: e.loanStatus,
225
- "borrower-count": e.loanBorrowerCount,
226
- name: e.borrowerName,
227
- "distribution-model": e.distributionModel,
245
+ "loan-amount": t.loanAmount,
246
+ status: t.loanStatus,
247
+ "borrower-count": t.loanBorrowerCount,
248
+ name: t.borrowerName,
249
+ "distribution-model": t.distributionModel,
228
250
  "use-indicative-help-text": !0
229
251
  }, null, 8, ["use", "loan-amount", "status", "borrower-count", "name", "distribution-model"])
230
252
  ]))
@@ -232,20 +254,20 @@ function re(w, a, o, e, y, n) {
232
254
  ]),
233
255
  _: 1
234
256
  }, 8, ["to", "href"])),
235
- (t(), c(v(e.tag), {
236
- to: e.readMorePath,
237
- href: e.readMorePath,
257
+ (e(), c(y(t.tag), {
258
+ to: t.readMorePath,
259
+ href: t.readMorePath,
238
260
  class: "loan-card-learn-more tw-no-underline hover:tw-no-underline tw-font-medium tw-text-action hover:tw-text-action-highlight tw-mt-auto",
239
261
  "aria-label": o.primaryLinkText,
240
- onClick: a[3] || (a[3] = (r) => e.clickReadMore(o.primaryLinkText, r))
262
+ onClick: a[3] || (a[3] = (r) => t.clickReadMore(o.primaryLinkText, r))
241
263
  }, {
242
- default: k(() => [
243
- l("div", ae, [
244
- e.isLoading ? (t(), i("div", oe, [
245
- s(d)
246
- ])) : (t(), i("div", {
264
+ default: w(() => [
265
+ l("div", lt, [
266
+ t.isLoading ? (e(), i("div", dt, [
267
+ m(d)
268
+ ])) : (e(), i("div", {
247
269
  key: 1,
248
- onClick: a[2] || (a[2] = V((r) => e.clickReadMore("ViewLoan", r), ["prevent"]))
270
+ onClick: a[2] || (a[2] = J((r) => t.clickReadMore("ViewLoan", r), ["prevent"]))
249
271
  }, b(o.primaryLinkText), 1))
250
272
  ])
251
273
  ]),
@@ -255,8 +277,8 @@ function re(w, a, o, e, y, n) {
255
277
  ])
256
278
  ], 6);
257
279
  }
258
- const ge = /* @__PURE__ */ G(q, [["render", re], ["__scopeId", "data-v-13281840"]]);
280
+ const xt = /* @__PURE__ */ Q(Y, [["render", st], ["__scopeId", "data-v-9cc15ed7"]]);
259
281
  export {
260
- fe as KV_LOAN_INFO_CARD_FRAGMENT,
261
- ge as default
282
+ bt as KV_LOAN_INFO_CARD_FRAGMENT,
283
+ xt as default
262
284
  };
@@ -1 +1 @@
1
- .loan-card-use[data-v-7478412d]:hover,.loan-card-use[data-v-7478412d]: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-7478412d]{text-decoration-line:underline}.loan-card-progress[data-v-7478412d],.loan-card-progress[data-v-7478412d]:hover,.loan-card-progress[data-v-7478412d]:focus{text-decoration-line:none}.loan-callouts[data-v-7478412d] div{height:auto;flex-wrap:wrap}
1
+ .loan-card-use[data-v-de4628d8]:hover,.loan-card-use[data-v-de4628d8]: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-de4628d8]{text-decoration-line:underline}.loan-card-progress[data-v-de4628d8],.loan-card-progress[data-v-de4628d8]:hover,.loan-card-progress[data-v-de4628d8]:focus{text-decoration-line:none}.loan-callouts[data-v-de4628d8] div{height:auto;flex-wrap:wrap}
@@ -1,43 +1,43 @@
1
- import P from "./KvWideLoanCard2.js";
2
- import { KV_WIDE_LOAN_CARD_FRAGMENT as p, KV_WIDE_LOAN_CARD_USER_FRAGMENT as $ } from "./KvWideLoanCard2.js";
3
- import { resolveComponent as r, openBlock as o, createElementBlock as i, normalizeClass as _, createElementVNode as s, createBlock as n, resolveDynamicComponent as m, withCtx as k, createVNode as d, toDisplayString as f, createCommentVNode as c, Fragment as D, renderList as N } from "vue";
1
+ import D from "./KvWideLoanCard2.js";
2
+ import { KV_WIDE_LOAN_CARD_FRAGMENT as ee, KV_WIDE_LOAN_CARD_USER_FRAGMENT as te } from "./KvWideLoanCard2.js";
3
+ import { resolveComponent as i, openBlock as o, createElementBlock as r, normalizeClass as f, createElementVNode as s, createBlock as n, resolveDynamicComponent as k, withCtx as m, createVNode as d, toDisplayString as h, createTextVNode as N, createCommentVNode as w, Fragment as R, renderList as V } from "vue";
4
4
  import "./KvWideLoanCard.css";
5
- import R from "../_virtual/_plugin-vue_export-helper.js";
6
- const B = { class: "loan-card-active-hover tw-flex-1 tw-min-w-[275px] md:tw-min-w-[320px] md:tw-max-w-[320px]" }, V = {
5
+ import B from "../_virtual/_plugin-vue_export-helper.js";
6
+ const T = { class: "loan-card-active-hover tw-flex-1 tw-min-w-[275px] md:tw-min-w-[320px] md:tw-max-w-[320px]" }, E = {
7
7
  key: 1,
8
8
  class: "tw-relative tw-w-full"
9
- }, E = { key: 0 }, T = {
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
- style: { padding: "2px 6px", "text-transform": "capitalize" }
12
- }, S = { style: { "margin-top": "0.125rem" } }, F = { class: "tw-flex tw-flex-col tw-flex-1 tw-px-1" }, I = { class: "tw-hidden md:tw-inline-block tw-text-title" }, W = { class: "tw-pt-1" }, z = {
9
+ }, I = { key: 0 }, S = {
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-text-label tw-flex tw-items-center tw-h-3",
11
+ style: { padding: "2px 6px", "text-transform": "capitalize", "max-width": "calc(100% - 1rem)" }
12
+ }, F = ["id"], W = { class: "tw-flex tw-flex-col tw-flex-1 tw-px-1" }, z = { class: "tw-hidden md:tw-inline-block tw-text-title" }, K = { class: "tw-pt-1" }, U = {
13
13
  key: 0,
14
14
  class: "tw-w-full",
15
15
  style: { height: "5.5rem" }
16
- }, K = { key: 1 }, U = { class: "tw-flex tw-flex-row tw-justify-between tw-gap-1 md:tw-gap-3" }, G = {
16
+ }, G = { key: 1 }, O = { class: "tw-flex tw-flex-row tw-justify-between tw-gap-1 md:tw-gap-3" }, j = {
17
17
  key: 0,
18
18
  class: "tw-w-full tw-pt-1 tw-pr-1"
19
19
  };
20
- function O(h, a, t, e, j, g) {
21
- const w = r("kv-loading-placeholder"), v = r("kv-borrower-image"), u = r("kv-material-icon"), b = r("kv-loan-bookmark"), x = r("kv-loan-tag"), y = r("kv-loan-use"), L = r("kv-loan-callouts"), M = r("kv-loan-progress-group"), C = r("kv-lend-cta");
22
- return o(), i("div", {
23
- class: _(["tw-flex tw-flex-row tw-flex-wrap tw-bg-white tw-rounded tw-w-full tw-pb-1 tw-p-1 tw-gap-1 tw-items-center", { "tw-pointer-events-none": e.isLoading }]),
20
+ function H(_, a, t, e, q, g) {
21
+ const c = i("kv-loading-placeholder"), v = i("kv-borrower-image"), u = i("kv-material-icon"), b = i("kv-tooltip"), x = i("kv-loan-bookmark"), y = i("kv-loan-tag"), L = i("kv-loan-use"), M = i("kv-loan-callouts"), C = i("kv-loan-progress-group"), A = i("kv-lend-cta");
22
+ return o(), r("div", {
23
+ class: f(["tw-flex tw-flex-row tw-flex-wrap tw-bg-white tw-rounded tw-w-full tw-pb-1 tw-p-1 tw-gap-1 tw-items-center", { "tw-pointer-events-none": e.isLoading }]),
24
24
  "data-testid": "loan-card",
25
25
  style: { "box-shadow": "0 4px 12px rgba(0, 0, 0, 0.08)" }
26
26
  }, [
27
- s("div", B, [
28
- e.isLoading ? (o(), n(w, {
27
+ s("div", T, [
28
+ e.isLoading ? (o(), n(c, {
29
29
  key: 0,
30
30
  class: "tw-mb-1 tw-w-full tw-rounded",
31
31
  style: { height: "15rem" }
32
- })) : (o(), i("div", V, [
33
- (o(), n(m(e.tag), {
32
+ })) : (o(), r("div", E, [
33
+ (o(), n(k(e.tag), {
34
34
  to: e.readMorePath,
35
35
  href: e.readMorePath,
36
36
  class: "tw-flex",
37
37
  "aria-label": "Borrower image",
38
38
  onClick: a[0] || (a[0] = (l) => e.clickReadMore("Photo", l))
39
39
  }, {
40
- default: k(() => [
40
+ default: m(() => [
41
41
  d(v, {
42
42
  class: "tw-relative tw-w-full tw-bg-black tw-rounded-sm tw-bg-clip-content",
43
43
  alt: `Photo of ${e.borrowerName}`,
@@ -47,65 +47,80 @@ function O(h, a, t, e, j, g) {
47
47
  images: g.imageSizes,
48
48
  "photo-path": t.photoPath
49
49
  }, null, 8, ["alt", "aspect-ratio", "default-image", "hash", "images", "photo-path"]),
50
- e.countryName ? (o(), i("div", E, [
51
- s("p", T, [
50
+ e.countryName ? (o(), r("div", I, [
51
+ s("p", S, [
52
52
  d(u, {
53
- class: "tw-h-2 tw-w-2",
53
+ class: "tw-h-2 tw-w-2 tw-flex-shrink-0",
54
54
  icon: e.mdiMapMarker
55
55
  }, null, 8, ["icon"]),
56
- s("span", S, f(e.formattedLocation), 1)
56
+ s("span", {
57
+ id: `loan-location-${t.loanId}`,
58
+ ref: "locationRef",
59
+ class: "tw-truncate tw-min-w-0",
60
+ style: { "margin-top": "0.125rem" }
61
+ }, h(e.formattedLocation), 9, F),
62
+ e.isLocationTruncated ? (o(), n(b, {
63
+ key: 0,
64
+ controller: `loan-location-${t.loanId}`,
65
+ "max-width": "250px"
66
+ }, {
67
+ default: m(() => [
68
+ N(h(e.formattedLocation), 1)
69
+ ]),
70
+ _: 1
71
+ }, 8, ["controller"])) : w("", !0)
57
72
  ])
58
- ])) : c("", !0)
73
+ ])) : w("", !0)
59
74
  ]),
60
75
  _: 1
61
76
  }, 8, ["to", "href"])),
62
- t.isVisitor ? c("", !0) : (o(), n(b, {
77
+ t.isVisitor ? w("", !0) : (o(), n(x, {
63
78
  key: 0,
64
79
  "loan-id": t.loanId,
65
80
  "is-bookmarked": t.isBookmarked,
66
81
  class: "tw-absolute tw-right-1",
67
82
  style: { top: "-6px" },
68
83
  "data-testid": "loan-card-bookmark",
69
- onToggleBookmark: a[1] || (a[1] = (l) => h.$emit("toggle-bookmark"))
84
+ onToggleBookmark: a[1] || (a[1] = (l) => _.$emit("toggle-bookmark"))
70
85
  }, null, 8, ["loan-id", "is-bookmarked"]))
71
86
  ]))
72
87
  ]),
73
- s("div", F, [
74
- s("h3", I, f(e.borrowerName), 1),
75
- (o(), n(m(e.tag), {
88
+ s("div", W, [
89
+ s("h3", z, h(e.borrowerName), 1),
90
+ (o(), n(k(e.tag), {
76
91
  to: e.readMorePath,
77
92
  href: e.readMorePath,
78
93
  class: "tw-flex tw-no-underline hover:tw-no-underline focus:tw-no-underline",
79
94
  "aria-label": "Loan tag",
80
95
  onClick: a[2] || (a[2] = (l) => e.clickReadMore("Tag", l))
81
96
  }, {
82
- default: k(() => [
83
- t.showTags && !e.isLoading ? (o(), n(x, {
97
+ default: m(() => [
98
+ t.showTags && !e.isLoading ? (o(), n(y, {
84
99
  key: 0,
85
100
  loan: t.loan,
86
101
  "enable-multi-matching": t.enableMultiMatching
87
- }, null, 8, ["loan", "enable-multi-matching"])) : c("", !0)
102
+ }, null, 8, ["loan", "enable-multi-matching"])) : w("", !0)
88
103
  ]),
89
104
  _: 1
90
105
  }, 8, ["to", "href"])),
91
- (o(), n(m(e.tag), {
106
+ (o(), n(k(e.tag), {
92
107
  to: e.readMorePath,
93
108
  href: e.readMorePath,
94
109
  class: "loan-card-use tw-no-underline tw-text-primary",
95
110
  "aria-label": "Loan use",
96
111
  onClick: a[3] || (a[3] = (l) => e.clickReadMore("Use", l))
97
112
  }, {
98
- default: k(() => [
99
- s("div", W, [
100
- e.isLoading ? (o(), i("div", z, [
101
- (o(!0), i(D, null, N([...Array(4)], (l, A) => (o(), i("div", {
102
- key: A,
113
+ default: m(() => [
114
+ s("div", K, [
115
+ e.isLoading ? (o(), r("div", U, [
116
+ (o(!0), r(R, null, V([...Array(4)], (l, P) => (o(), r("div", {
117
+ key: P,
103
118
  class: "tw-h-2 tw-mb-1"
104
119
  }, [
105
- d(w)
120
+ d(c)
106
121
  ]))), 128))
107
- ])) : (o(), i("div", K, [
108
- d(y, {
122
+ ])) : (o(), r("div", G, [
123
+ d(L, {
109
124
  use: e.loanUse,
110
125
  "loan-amount": e.loanAmount,
111
126
  status: e.loanStatus,
@@ -118,27 +133,27 @@ function O(h, a, t, e, j, g) {
118
133
  ]),
119
134
  _: 1
120
135
  }, 8, ["to", "href"])),
121
- e.isLoading || typeof e.loanCallouts > "u" ? (o(), n(w, {
136
+ e.isLoading || typeof e.loanCallouts > "u" ? (o(), n(c, {
122
137
  key: 0,
123
138
  class: "tw-mt-1.5 tw-mb-1",
124
139
  style: { width: "60%", height: "1.75rem", "border-radius": "500rem" }
125
- })) : (o(), n(L, {
140
+ })) : (o(), n(M, {
126
141
  key: 1,
127
142
  callouts: e.loanCallouts,
128
143
  class: "loan-callouts tw-my-1.5"
129
144
  }, null, 8, ["callouts"])),
130
- s("div", U, [
131
- e.hasProgressData ? c("", !0) : (o(), i("div", G, [
132
- d(w, {
145
+ s("div", O, [
146
+ e.hasProgressData ? w("", !0) : (o(), r("div", j, [
147
+ d(c, {
133
148
  class: "tw-mb-0.5",
134
149
  style: { width: "70%", height: "1.3rem" }
135
150
  }),
136
- d(w, {
151
+ d(c, {
137
152
  class: "tw-rounded",
138
153
  style: { width: "70%", height: "0.5rem" }
139
154
  })
140
155
  ])),
141
- e.sharesAvailable ? (o(), n(m(e.tag), {
156
+ e.sharesAvailable ? (o(), n(k(e.tag), {
142
157
  key: 1,
143
158
  to: e.readMorePath,
144
159
  href: e.readMorePath,
@@ -146,8 +161,8 @@ function O(h, a, t, e, j, g) {
146
161
  "aria-label": "Loan progress",
147
162
  onClick: a[4] || (a[4] = (l) => e.clickReadMore("Progress", l))
148
163
  }, {
149
- default: k(() => [
150
- d(M, {
164
+ default: m(() => [
165
+ d(C, {
151
166
  id: "loanProgress",
152
167
  "money-left": e.unreservedAmount,
153
168
  "progress-percent": e.fundraisingPercent,
@@ -155,8 +170,8 @@ function O(h, a, t, e, j, g) {
155
170
  }, null, 8, ["money-left", "progress-percent"])
156
171
  ]),
157
172
  _: 1
158
- }, 8, ["to", "href"])) : c("", !0),
159
- e.allDataLoaded ? (o(), n(C, {
173
+ }, 8, ["to", "href"])) : w("", !0),
174
+ e.allDataLoaded ? (o(), n(A, {
160
175
  key: 3,
161
176
  loan: t.loan,
162
177
  "unreserved-amount": e.unreservedAmount,
@@ -174,10 +189,10 @@ function O(h, a, t, e, j, g) {
174
189
  "get-cookie": t.getCookie,
175
190
  "set-cookie": t.setCookie,
176
191
  "is-visitor": t.isVisitor,
177
- class: _(["tw-mt-auto tw-self-end", { "tw-flex-grow": !e.sharesAvailable, "tw-flex-shrink-0": e.sharesAvailable }]),
178
- onAddToBasket: a[5] || (a[5] = (l) => h.$emit("add-to-basket", l)),
192
+ class: f(["tw-mt-auto tw-self-end", { "tw-flex-grow": !e.sharesAvailable, "tw-flex-shrink-0": e.sharesAvailable }]),
193
+ onAddToBasket: a[5] || (a[5] = (l) => _.$emit("add-to-basket", l)),
179
194
  onShowLoanDetails: a[6] || (a[6] = (l) => e.clickReadMore("ViewLoan", l))
180
- }, null, 8, ["loan", "unreserved-amount", "basket-items", "is-loading", "is-adding", "enable-five-dollars-notes", "five-dollars-selected", "kv-track-function", "show-view-loan", "custom-loan-details", "external-links", "route", "user-balance", "get-cookie", "set-cookie", "is-visitor", "class"])) : (o(), n(w, {
195
+ }, null, 8, ["loan", "unreserved-amount", "basket-items", "is-loading", "is-adding", "enable-five-dollars-notes", "five-dollars-selected", "kv-track-function", "show-view-loan", "custom-loan-details", "external-links", "route", "user-balance", "get-cookie", "set-cookie", "is-visitor", "class"])) : (o(), n(c, {
181
196
  key: 2,
182
197
  class: "tw-rounded tw-self-start",
183
198
  style: { width: "9rem", height: "3rem" }
@@ -186,9 +201,9 @@ function O(h, a, t, e, j, g) {
186
201
  ])
187
202
  ], 2);
188
203
  }
189
- const X = /* @__PURE__ */ R(P, [["render", O], ["__scopeId", "data-v-7478412d"]]);
204
+ const Z = /* @__PURE__ */ B(D, [["render", H], ["__scopeId", "data-v-de4628d8"]]);
190
205
  export {
191
- p as KV_WIDE_LOAN_CARD_FRAGMENT,
192
- $ as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
193
- X as default
206
+ ee as KV_WIDE_LOAN_CARD_FRAGMENT,
207
+ te as KV_WIDE_LOAN_CARD_USER_FRAGMENT,
208
+ Z as default
194
209
  };