@kiva/kv-components 8.13.0 → 8.13.2

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.
@@ -3,6 +3,10 @@ export interface Centroid {
3
3
  cy: number;
4
4
  xMax: number;
5
5
  yMax: number;
6
+ popupCx?: number;
7
+ popupCy?: number;
8
+ popupXMax?: number;
9
+ popupYMax?: number;
6
10
  }
7
11
  declare const simpleMapCentroids: Record<string, Centroid>;
8
12
  export default simpleMapCentroids;
@@ -39,7 +39,12 @@ const x = {
39
39
  cx: 1116.78,
40
40
  cy: 451.16,
41
41
  xMax: 1190.78,
42
- yMax: 521.76
42
+ yMax: 521.76,
43
+ // Main continent — tighter than full bbox with remote islands
44
+ popupCx: 1120,
45
+ popupCy: 450,
46
+ popupXMax: 1170,
47
+ popupYMax: 500
43
48
  },
44
49
  AT: {
45
50
  cx: 682.12,
@@ -147,7 +152,12 @@ const x = {
147
152
  cx: 361.59,
148
153
  cy: 78.04,
149
154
  xMax: 502.28,
150
- yMax: 154.65
155
+ yMax: 154.65,
156
+ // Southern populated mainland — excludes Arctic archipelago
157
+ popupCx: 330,
158
+ popupCy: 105,
159
+ popupXMax: 420,
160
+ popupYMax: 140
151
161
  },
152
162
  CH: {
153
163
  cx: 665.97,
@@ -159,7 +169,12 @@ const x = {
159
169
  cx: 406.26,
160
170
  cy: 490.74,
161
171
  xMax: 431.06,
162
- yMax: 571.28
172
+ yMax: 571.28,
173
+ // Central Chile (Santiago region) — avoids extreme N-S elongation
174
+ popupCx: 410,
175
+ popupCy: 475,
176
+ popupXMax: 425,
177
+ popupYMax: 500
163
178
  },
164
179
  CN: {
165
180
  cx: 986.5,
@@ -387,13 +402,23 @@ const x = {
387
402
  cx: 1077.13,
388
403
  cy: 345.31,
389
404
  xMax: 1162.16,
390
- yMax: 379.27
405
+ yMax: 379.27,
406
+ // Java/Bali region — most populated; avoids geometric center in open sea
407
+ popupCx: 1065,
408
+ popupCy: 360,
409
+ popupXMax: 1095,
410
+ popupYMax: 378
391
411
  },
392
412
  IN: {
393
413
  cx: 937.01,
394
414
  cy: 241.69,
395
415
  xMax: 988.21,
396
- yMax: 300.71
416
+ yMax: 300.71,
417
+ // Indian peninsula — excludes Andaman/Nicobar and Lakshadweep
418
+ popupCx: 942,
419
+ popupCy: 240,
420
+ popupXMax: 975,
421
+ popupYMax: 280
397
422
  },
398
423
  IE: {
399
424
  cx: 613.51,
@@ -615,7 +640,12 @@ const x = {
615
640
  cx: 1045.2,
616
641
  cy: 318.33,
617
642
  xMax: 1080.71,
618
- yMax: 331.5
643
+ yMax: 331.5,
644
+ // Peninsular Malaysia — avoids centroid falling in sea between halves
645
+ popupCx: 1018,
646
+ popupCy: 318,
647
+ popupXMax: 1027,
648
+ popupYMax: 330
619
649
  },
620
650
  NA: {
621
651
  cx: 706.27,
@@ -651,7 +681,12 @@ const x = {
651
681
  cx: 687.84,
652
682
  cy: 48.37,
653
683
  xMax: 722.29,
654
- yMax: 88.49
684
+ yMax: 88.49,
685
+ // Southern mainland — excludes Svalbard/Arctic pulling centroid far north
686
+ popupCx: 680,
687
+ popupCy: 75,
688
+ popupXMax: 700,
689
+ popupYMax: 89
655
690
  },
656
691
  NP: {
657
692
  cx: 940.71,
@@ -663,7 +698,12 @@ const x = {
663
698
  cx: 1222.95,
664
699
  cy: 508.39,
665
700
  xMax: 1256.51,
666
- yMax: 534.29
701
+ yMax: 534.29,
702
+ // North + South Island — excludes distant Chatham Islands inflating west
703
+ popupCx: 1242,
704
+ popupCy: 510,
705
+ popupXMax: 1257,
706
+ popupYMax: 535
667
707
  },
668
708
  OM: {
669
709
  cx: 842.43,
@@ -747,7 +787,12 @@ const x = {
747
787
  cx: 929.32,
748
788
  cy: 82.39,
749
789
  xMax: 1158.54,
750
- yMax: 158.22
790
+ yMax: 158.22,
791
+ // Central Russia — avoids extreme east-west spread
792
+ popupCx: 900,
793
+ popupCy: 95,
794
+ popupXMax: 1e3,
795
+ popupYMax: 135
751
796
  },
752
797
  RW: {
753
798
  cx: 749.91,
@@ -921,7 +966,12 @@ const x = {
921
966
  cx: 237.09,
922
967
  cy: 146.09,
923
968
  xMax: 416.07,
924
- yMax: 253.75
969
+ yMax: 253.75,
970
+ // Continental US mainland — excludes Alaska/Hawaii bbox inflation
971
+ popupCx: 275,
972
+ popupCy: 175,
973
+ popupXMax: 340,
974
+ popupYMax: 210
925
975
  },
926
976
  UZ: {
927
977
  cx: 856.34,
@@ -1 +1 @@
1
- .loan-card-use[data-v-7b59a69b]:hover,.loan-card-use[data-v-7b59a69b]: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-7b59a69b]{text-decoration-line:underline}.loan-card-progress[data-v-7b59a69b]:hover,.loan-card-progress[data-v-7b59a69b]:focus{text-decoration-line:none}.loan-card-use-text[data-v-7b59a69b] p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;text-overflow:ellipsis}.loan-card-cta[data-v-7b59a69b] form,.loan-card-cta[data-v-7b59a69b] fieldset,.loan-card-cta[data-v-7b59a69b] .tw-w-full,.loan-card-cta[data-v-7b59a69b] button{height:40px!important;max-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-7b59a69b] .tw-inline-flex{height:40px!important;max-height:40px!important;min-height:40px!important}[data-v-7b59a69b] .amount-dropdown select{height:2.25rem;--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1));padding-left:.5rem}[data-v-7b59a69b] .goal-variant-callouts span{font-weight:500}.goal-variant-progress-group[data-v-7b59a69b] div[role=progressbar]{background-color:#d9d9d9}
1
+ .loan-card-use[data-v-02c91111]:hover,.loan-card-use[data-v-02c91111]: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-02c91111]{text-decoration-line:underline}.loan-card-progress[data-v-02c91111]:hover,.loan-card-progress[data-v-02c91111]:focus{text-decoration-line:none}.loan-card-use-text[data-v-02c91111] p{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:4;line-clamp:4;overflow:hidden;text-overflow:ellipsis}.loan-card-cta[data-v-02c91111] form,.loan-card-cta[data-v-02c91111] fieldset,.loan-card-cta[data-v-02c91111] .tw-w-full,.loan-card-cta[data-v-02c91111] button{height:40px!important;max-height:40px!important;display:flex!important;align-items:center!important;justify-content:center!important}.loan-card-cta[data-v-02c91111] .tw-inline-flex{height:40px!important;max-height:40px!important;min-height:40px!important}[data-v-02c91111] .amount-dropdown select{height:2.25rem;--tw-border-opacity: 1;border-color:rgb(245 245 245 / var(--tw-border-opacity, 1));padding-left:.5rem}[data-v-02c91111] .goal-variant-callouts span{font-weight:500}.goal-variant-progress-group[data-v-02c91111] div[role=progressbar]{background-color:#d9d9d9}
@@ -1,42 +1,42 @@
1
- import T from "./KvCompactLoanCard2.js";
2
- import { KV_COMPACT_LOAN_CARD_FRAGMENT as le, KV_COMPACT_LOAN_CARD_USER_FRAGMENT as re } from "./KvCompactLoanCard2.js";
3
- import { resolveComponent as w, openBlock as o, createElementBlock as l, normalizeClass as s, createVNode as i, createCommentVNode as m, createElementVNode as r, normalizeStyle as b, createBlock as d, resolveDynamicComponent as g, withCtx as f, toDisplayString as c, withModifiers as R, Fragment as u, renderList as v } from "vue";
1
+ import B from "./KvCompactLoanCard2.js";
2
+ import { KV_COMPACT_LOAN_CARD_FRAGMENT as oe, KV_COMPACT_LOAN_CARD_USER_FRAGMENT as le } from "./KvCompactLoanCard2.js";
3
+ import { resolveComponent as w, openBlock as n, createElementBlock as l, normalizeClass as s, createVNode as i, createCommentVNode as m, createElementVNode as r, normalizeStyle as b, createBlock as d, resolveDynamicComponent as k, withCtx as f, toDisplayString as c, withModifiers as R, Fragment as u, renderList as v } from "vue";
4
4
  import "./KvCompactLoanCard.css";
5
- import B from "../_virtual/_plugin-vue_export-helper.js";
6
- const G = ["aria-busy"], S = { class: "tw-flex tw-flex-col tw-items-start tw-w-full" }, D = {
5
+ import G from "../_virtual/_plugin-vue_export-helper.js";
6
+ const S = ["aria-busy"], D = { class: "tw-flex tw-flex-col tw-items-start tw-w-full" }, U = {
7
7
  key: 1,
8
8
  class: "tw-flex-shrink-0 tw-overflow-hidden"
9
- }, U = {
9
+ }, W = {
10
10
  key: 0,
11
11
  class: "tw-mb-0.5 tw-w-full"
12
- }, W = { class: "tw-text-primary !tw-font-medium tw-text-base tw-leading-normal tw-truncate" }, E = ["href"], F = { class: "tw-truncate" }, O = ["title"], j = { class: "tw-font-medium" }, I = {
12
+ }, E = { class: "tw-text-primary !tw-font-medium tw-text-base tw-leading-normal tw-truncate" }, F = ["href"], I = { class: "tw-truncate" }, O = ["title"], j = { class: "tw-font-medium" }, K = {
13
13
  key: 0,
14
14
  class: "loan-card-use-text tw-w-full tw-overflow-hidden"
15
- }, K = { class: "tw-flex-1 tw-min-w-0 tw-mr-1" }, z = {
15
+ }, z = { class: "tw-flex-1 tw-min-w-0 tw-mr-1" }, H = {
16
16
  class: "tw-flex-1 tw-min-w-0",
17
17
  style: { "max-width": "6.5rem" }
18
- }, H = { class: "tw-min-w-12" }, Z = ["value"], q = { class: "tw-flex-1 tw-min-w-0" }, J = { class: "tw-p-1 tw-rounded-l-sm tw-border tw-border-gray-100 tw-border-r-0" };
19
- function Q(k, n, t, e, X, Y) {
18
+ }, Z = ["value"], q = { class: "tw-flex-1 tw-min-w-0" }, J = { class: "tw-p-1 tw-rounded-l-sm tw-border tw-border-gray-100 tw-border-r-0" };
19
+ function Q(g, o, t, e, X, L) {
20
20
  var x;
21
- const y = w("kv-material-icon"), h = w("kv-loading-placeholder"), L = w("kv-borrower-image"), P = w("kv-loan-tag"), C = w("kv-loan-use"), V = w("kv-loan-callouts"), _ = w("kv-loan-progress-group"), N = w("kv-select"), A = w("kv-lend-cta");
22
- return o(), l("div", {
21
+ const y = w("kv-material-icon"), h = w("kv-loading-placeholder"), P = w("kv-borrower-image"), C = w("kv-loan-tag"), V = w("kv-loan-use"), N = w("kv-loan-callouts"), _ = w("kv-loan-progress-group"), A = w("kv-select"), M = w("kv-lend-cta");
22
+ return n(), l("div", {
23
23
  class: s(["tw-flex tw-flex-col tw-items-start tw-justify-between tw-p-1 tw-bg-white tw-rounded-md tw-shadow-lg tw-w-full", {
24
24
  "tw-relative": t.showRefreshButton,
25
25
  "!tw-p-1.5": t.showLightView || e.isPostGoalVariant
26
26
  }]),
27
27
  "aria-busy": e.isLoading ? "true" : "false"
28
28
  }, [
29
- t.showRefreshButton ? (o(), l("button", {
29
+ t.showRefreshButton ? (n(), l("button", {
30
30
  key: 0,
31
31
  class: "tw-absolute tw--top-1 tw--right-1 tw-bg-white tw-rounded-full tw-w-2.5 tw-h-2.5 tw-flex tw-items-center tw-justify-center tw-cursor-pointer tw-drop-shadow-sm",
32
- onClick: n[0] || (n[0] = (...a) => e.handleRefreshButton && e.handleRefreshButton(...a))
32
+ onClick: o[0] || (o[0] = (...a) => e.handleRefreshButton && e.handleRefreshButton(...a))
33
33
  }, [
34
34
  i(y, {
35
35
  icon: e.mdiCached,
36
36
  class: "tw-w-2.5 tw-h-2.5 tw--scale-x-100 tw-text-gray-500"
37
37
  }, null, 8, ["icon"])
38
38
  ])) : m("", !0),
39
- r("div", S, [
39
+ r("div", D, [
40
40
  r("div", {
41
41
  class: s(["tw-flex tw-items-start tw-gap-2 tw-w-full loan-card-active-hover", {
42
42
  "!tw-gap-1": t.showLightView,
@@ -44,7 +44,7 @@ function Q(k, n, t, e, X, Y) {
44
44
  }]),
45
45
  style: b(e.customStyle)
46
46
  }, [
47
- e.isLoading ? (o(), d(h, {
47
+ e.isLoading ? (n(), d(h, {
48
48
  key: 0,
49
49
  "aria-hidden": "true",
50
50
  class: s({
@@ -52,18 +52,18 @@ function Q(k, n, t, e, X, Y) {
52
52
  "!tw-w-7.5 !tw-h-7.5 md:!tw-w-12.5 md:!tw-h-12.5": e.isPostGoalVariant
53
53
  }),
54
54
  style: b(e.borrowerImageStyle)
55
- }, null, 8, ["class", "style"])) : (o(), l("div", D, [
56
- (o(), d(g(e.tag), {
55
+ }, null, 8, ["class", "style"])) : (n(), l("div", U, [
56
+ (n(), d(k(e.tag), {
57
57
  to: e.readMorePath,
58
58
  href: e.readMorePath,
59
59
  target: t.externalLinksNewTab ? "_blank" : void 0,
60
60
  rel: t.externalLinksNewTab ? "noopener noreferrer" : void 0,
61
61
  class: "tw-flex",
62
62
  "aria-label": "Borrower image",
63
- onClick: n[1] || (n[1] = (a) => e.clickReadMore("Photo", a))
63
+ onClick: o[1] || (o[1] = (a) => e.clickReadMore("Photo", a))
64
64
  }, {
65
65
  default: f(() => [
66
- i(L, {
66
+ i(P, {
67
67
  class: s(["tw-bg-gray-300 tw-rounded-sm tw-object-cover tw-bg-clip-content", {
68
68
  "!tw-w-7.5 !tw-h-7.5": t.showLightView,
69
69
  "!tw-w-7.5 !tw-h-7.5 md:!tw-w-12.5 md:!tw-h-12.5": e.isPostGoalVariant
@@ -83,36 +83,36 @@ function Q(k, n, t, e, X, Y) {
83
83
  r("div", {
84
84
  class: s(["tw-flex tw-flex-col tw-items-start tw-gap-1 tw-flex-1 tw-min-w-0", { "!tw-gap-0": e.isPostGoalVariant }])
85
85
  }, [
86
- t.businessName ? (o(), l("div", U, [
87
- (o(), d(g(e.tag), {
86
+ t.businessName ? (n(), l("div", W, [
87
+ (n(), d(k(e.tag), {
88
88
  to: e.readMorePath,
89
89
  href: e.readMorePath,
90
90
  target: t.externalLinksNewTab ? "_blank" : void 0,
91
91
  rel: t.externalLinksNewTab ? "noopener noreferrer" : void 0,
92
92
  class: "tw-no-underline hover:tw-underline focus:tw-no-underline",
93
93
  "aria-label": "Business name",
94
- onClick: n[2] || (n[2] = (a) => e.clickReadMore("Business", a))
94
+ onClick: o[2] || (o[2] = (a) => e.clickReadMore("Business", a))
95
95
  }, {
96
96
  default: f(() => [
97
- r("h3", W, c(t.businessName), 1)
97
+ r("h3", E, c(t.businessName), 1)
98
98
  ]),
99
99
  _: 1
100
100
  }, 8, ["to", "href", "target", "rel"])),
101
- t.website ? (o(), l("a", {
101
+ t.website ? (n(), l("a", {
102
102
  key: 0,
103
103
  href: e.formattedWebsite,
104
104
  target: "_blank",
105
105
  class: "tw-flex tw-items-center tw-gap-0.5 tw-text-secondary tw-text-small tw-font-light tw-leading-normal tw-no-underline hover:tw-underline",
106
- onClick: n[3] || (n[3] = R((...a) => e.trackWebsiteClick && e.trackWebsiteClick(...a), ["stop"]))
106
+ onClick: o[3] || (o[3] = R((...a) => e.trackWebsiteClick && e.trackWebsiteClick(...a), ["stop"]))
107
107
  }, [
108
108
  i(y, {
109
109
  icon: e.mdiLink,
110
110
  class: "tw-w-2 tw-h-2"
111
111
  }, null, 8, ["icon"]),
112
- r("span", F, c(t.website), 1)
113
- ], 8, E)) : m("", !0)
112
+ r("span", I, c(t.website), 1)
113
+ ], 8, F)) : m("", !0)
114
114
  ])) : m("", !0),
115
- e.isLoading ? m("", !0) : (o(), d(g(e.tag), {
115
+ e.isLoading ? m("", !0) : (n(), d(k(e.tag), {
116
116
  key: 1,
117
117
  to: e.readMorePath,
118
118
  href: e.readMorePath,
@@ -120,10 +120,10 @@ function Q(k, n, t, e, X, Y) {
120
120
  rel: t.externalLinksNewTab ? "noopener noreferrer" : void 0,
121
121
  class: "tw-flex tw-no-underline hover:tw-no-underline focus:tw-no-underline -tw-mt-1",
122
122
  "aria-label": "Loan tag",
123
- onClick: n[4] || (n[4] = (a) => e.clickReadMore("Tag", a))
123
+ onClick: o[4] || (o[4] = (a) => e.clickReadMore("Tag", a))
124
124
  }, {
125
125
  default: f(() => [
126
- t.showTags ? (o(), d(P, {
126
+ t.showTags ? (n(), d(C, {
127
127
  key: 0,
128
128
  class: s({
129
129
  "tw-mb-1 !tw-font-medium": e.isPostGoalVariant
@@ -133,11 +133,11 @@ function Q(k, n, t, e, X, Y) {
133
133
  ]),
134
134
  _: 1
135
135
  }, 8, ["to", "href", "target", "rel"])),
136
- e.isPostGoalVariant ? (o(), l(u, { key: 2 }, [
137
- e.isLoading ? (o(), l(u, { key: 0 }, v(4, (a) => i(h, {
136
+ e.isPostGoalVariant ? (n(), l(u, { key: 2 }, [
137
+ e.isLoading ? (n(), l(u, { key: 0 }, v(4, (a) => i(h, {
138
138
  key: a,
139
139
  class: "tw-mb-0.5 md:!tw-mb-1.5 !tw-w-full !tw-h-1.5 md:!tw-h-2"
140
- })), 64)) : (o(), l("p", {
140
+ })), 64)) : (n(), l("p", {
141
141
  key: 1,
142
142
  class: "tw-text-small tw-mb-0 tw-leading-normal",
143
143
  style: { "line-height": "150%" },
@@ -149,7 +149,7 @@ function Q(k, n, t, e, X, Y) {
149
149
  r("span", null, c(e.loanUsePrefixEnd), 1),
150
150
  r("span", null, c(e.visibleUseStatement), 1)
151
151
  ], 8, O))
152
- ], 64)) : t.showLoanUse ? (o(), d(g(e.tag), {
152
+ ], 64)) : t.showLoanUse ? (n(), d(k(e.tag), {
153
153
  key: 3,
154
154
  to: e.readMorePath,
155
155
  href: e.readMorePath,
@@ -157,21 +157,21 @@ function Q(k, n, t, e, X, Y) {
157
157
  rel: t.externalLinksNewTab ? "noopener noreferrer" : void 0,
158
158
  class: "loan-card-use tw-no-underline tw-text-primary tw-block tw-w-full",
159
159
  "aria-label": "Loan use",
160
- onClick: n[5] || (n[5] = (a) => e.clickReadMore("Use", a))
160
+ onClick: o[5] || (o[5] = (a) => e.clickReadMore("Use", a))
161
161
  }, {
162
162
  default: f(() => [
163
- e.isLoading ? (o(), l("div", I, [
164
- (o(!0), l(u, null, v([...Array(e.loanUseLoadingRows)], (a, M) => (o(), l("div", {
165
- key: M,
163
+ e.isLoading ? (n(), l("div", K, [
164
+ (n(!0), l(u, null, v([...Array(e.loanUseLoadingRows)], (a, T) => (n(), l("div", {
165
+ key: T,
166
166
  class: "tw-h-2 tw-mb-1"
167
167
  }, [
168
168
  i(h)
169
169
  ]))), 128))
170
- ])) : (o(), l("div", {
170
+ ])) : (n(), l("div", {
171
171
  key: 1,
172
172
  class: s(["loan-card-use-text tw-w-full tw-overflow-hidden", { "!tw--mt-1": t.showTags && t.loan.matchingText && t.showLightView }])
173
173
  }, [
174
- i(C, {
174
+ i(V, {
175
175
  use: e.loanUse,
176
176
  "loan-amount": e.loanAmount,
177
177
  status: e.loanStatus,
@@ -190,15 +190,15 @@ function Q(k, n, t, e, X, Y) {
190
190
  }, 8, ["to", "href", "target", "rel"])) : m("", !0)
191
191
  ], 2)
192
192
  ], 6),
193
- e.isLoading || typeof e.loanCallouts > "u" ? (o(), d(h, {
193
+ e.isLoading || typeof e.loanCallouts > "u" ? (n(), d(h, {
194
194
  key: 0,
195
195
  class: "tw-mt-1.5 tw-mb-1 tw-rounded-full",
196
196
  style: { width: "60%", height: "1.5rem" }
197
- })) : (o(), d(V, {
197
+ })) : (n(), d(N, {
198
198
  key: 1,
199
199
  callouts: e.loanCallouts,
200
200
  class: s(["tw-mt-1.5", { "goal-variant-callouts": e.isPostGoalVariant }]),
201
- onClick: n[6] || (n[6] = (a) => k.$emit("jump-filter-page", a))
201
+ onClick: o[6] || (o[6] = (a) => g.$emit("jump-filter-page", a))
202
202
  }, null, 8, ["callouts", "class"]))
203
203
  ]),
204
204
  r("div", {
@@ -207,28 +207,28 @@ function Q(k, n, t, e, X, Y) {
207
207
  "!tw-items-end !tw-gap-2": e.isPostGoalVariant
208
208
  }])
209
209
  }, [
210
- e.hasProgressData ? e.isPostGoalVariant ? (o(), l(u, { key: 1 }, [
211
- r("div", z, [
210
+ e.hasProgressData ? e.isPostGoalVariant ? (n(), l(u, { key: 1 }, [
211
+ r("div", H, [
212
212
  i(_, {
213
213
  "money-left": e.unreservedAmount,
214
214
  "progress-percent": e.fundraisingPercent,
215
215
  class: "tw-text-black goal-variant-progress-group"
216
216
  }, null, 8, ["money-left", "progress-percent"])
217
217
  ]),
218
- r("div", H, [
219
- i(N, {
218
+ r("div", null, [
219
+ i(A, {
220
220
  id: `PostGoalAmountDropdown_${((x = t.loan) == null ? void 0 : x.id) ?? t.loanId}`,
221
221
  modelValue: e.selectedAmount,
222
222
  "onUpdate:modelValue": [
223
- n[7] || (n[7] = (a) => e.selectedAmount = a),
223
+ o[7] || (o[7] = (a) => e.selectedAmount = a),
224
224
  e.handleSelectedAmount
225
225
  ],
226
226
  "aria-label": "Lend amount",
227
- disabled: !e.amountOptions.length,
227
+ disabled: !e.amountOptions.length || L.isInBasket,
228
228
  class: "amount-dropdown"
229
229
  }, {
230
230
  default: f(() => [
231
- (o(!0), l(u, null, v(e.amountOptions, (a) => (o(), l("option", {
231
+ (n(!0), l(u, null, v(e.amountOptions, (a) => (n(), l("option", {
232
232
  key: a,
233
233
  value: a
234
234
  }, " $" + c(a), 9, Z))), 128))
@@ -236,9 +236,9 @@ function Q(k, n, t, e, X, Y) {
236
236
  _: 1
237
237
  }, 8, ["id", "modelValue", "disabled", "onUpdate:modelValue"])
238
238
  ])
239
- ], 64)) : (o(), l(u, { key: 2 }, [
239
+ ], 64)) : (n(), l(u, { key: 2 }, [
240
240
  r("div", q, [
241
- e.sharesAvailable ? (o(), d(g(e.tag), {
241
+ e.sharesAvailable ? (n(), d(k(e.tag), {
242
242
  key: 0,
243
243
  to: e.readMorePath,
244
244
  href: e.readMorePath,
@@ -246,7 +246,7 @@ function Q(k, n, t, e, X, Y) {
246
246
  rel: t.externalLinksNewTab ? "noopener noreferrer" : void 0,
247
247
  class: "loan-card-progress tw-no-underline tw-block",
248
248
  "aria-label": "Loan progress",
249
- onClick: n[8] || (n[8] = (a) => e.clickReadMore("Progress", a))
249
+ onClick: o[8] || (o[8] = (a) => e.clickReadMore("Progress", a))
250
250
  }, {
251
251
  default: f(() => [
252
252
  i(_, {
@@ -259,19 +259,19 @@ function Q(k, n, t, e, X, Y) {
259
259
  _: 1
260
260
  }, 8, ["to", "href", "target", "rel"])) : m("", !0)
261
261
  ]),
262
- t.showLightView ? (o(), l("button", {
262
+ t.showLightView ? (n(), l("button", {
263
263
  key: 0,
264
264
  class: "tw-ml-2",
265
- onClick: n[9] || (n[9] = (a) => e.clickReadMore("View", a))
265
+ onClick: o[9] || (o[9] = (a) => e.clickReadMore("View", a))
266
266
  }, [
267
267
  r("span", J, " $" + c(t.customAmountLent), 1),
268
- n[13] || (n[13] = r("span", { class: "tw-bg-gray-100 tw-px-1.5 tw-py-1 tw-rounded-r-sm tw-border tw-border-gray-100 tw-text-action tw-font-medium hover:tw-underline tw-text-center tw-cursor-pointer" }, " View ", -1))
269
- ])) : (o(), l("div", {
268
+ o[13] || (o[13] = r("span", { class: "tw-bg-gray-100 tw-px-1.5 tw-py-1 tw-rounded-r-sm tw-border tw-border-gray-100 tw-text-action tw-font-medium hover:tw-underline tw-text-center tw-cursor-pointer" }, " View ", -1))
269
+ ])) : (n(), l("div", {
270
270
  key: 1,
271
271
  class: s(["tw-flex-shrink-0 loan-card-cta", { "tw-w-full": !e.sharesAvailable }]),
272
272
  style: { height: "40px" }
273
273
  }, [
274
- i(A, {
274
+ i(M, {
275
275
  loan: t.loan,
276
276
  "unreserved-amount": e.unreservedAmount,
277
277
  "basket-items": t.basketItems,
@@ -291,13 +291,13 @@ function Q(k, n, t, e, X, Y) {
291
291
  "primary-button-text": t.primaryButtonText,
292
292
  "secondary-button-text": t.secondaryButtonText,
293
293
  "secondary-button-handler": t.secondaryButtonHandler,
294
- onAddToBasket: n[10] || (n[10] = (a) => k.$emit("add-to-basket", a)),
295
- onShowLoanDetails: n[11] || (n[11] = (a) => e.clickReadMore("ViewLoan", a)),
296
- onRemoveFromBasket: n[12] || (n[12] = (a) => k.$emit("remove-from-basket", a))
294
+ onAddToBasket: o[10] || (o[10] = (a) => g.$emit("add-to-basket", a)),
295
+ onShowLoanDetails: o[11] || (o[11] = (a) => e.clickReadMore("ViewLoan", a)),
296
+ onRemoveFromBasket: o[12] || (o[12] = (a) => g.$emit("remove-from-basket", a))
297
297
  }, 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", "primary-button-text", "secondary-button-text", "secondary-button-handler"])
298
298
  ], 2))
299
- ], 64)) : (o(), l(u, { key: 0 }, [
300
- r("div", K, [
299
+ ], 64)) : (n(), l(u, { key: 0 }, [
300
+ r("div", z, [
301
301
  i(h, {
302
302
  class: "tw-mb-0.5",
303
303
  style: { width: "100%", maxWidth: "11rem", height: "1rem" }
@@ -307,18 +307,18 @@ function Q(k, n, t, e, X, Y) {
307
307
  style: { width: "100%", maxWidth: "11rem", height: "0.5rem" }
308
308
  })
309
309
  ]),
310
- e.allDataLoaded ? m("", !0) : (o(), d(h, {
310
+ e.allDataLoaded ? m("", !0) : (n(), d(h, {
311
311
  key: 0,
312
312
  class: "tw-rounded tw-flex-shrink-0",
313
313
  style: { width: "8rem", height: "2.5rem" }
314
314
  }))
315
315
  ], 64))
316
316
  ], 2)
317
- ], 10, G);
317
+ ], 10, S);
318
318
  }
319
- const ae = /* @__PURE__ */ B(T, [["render", Q], ["__scopeId", "data-v-7b59a69b"]]);
319
+ const te = /* @__PURE__ */ G(B, [["render", Q], ["__scopeId", "data-v-02c91111"]]);
320
320
  export {
321
- le as KV_COMPACT_LOAN_CARD_FRAGMENT,
322
- re as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
323
- ae as default
321
+ oe as KV_COMPACT_LOAN_CARD_FRAGMENT,
322
+ le as KV_COMPACT_LOAN_CARD_USER_FRAGMENT,
323
+ te as default
324
324
  };
@@ -193,6 +193,7 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
193
193
  }, {}, {
194
194
  lendersNumber(): any;
195
195
  amountLent(): any;
196
+ isInBasket(): any;
196
197
  }, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("show-loan-details" | "add-to-basket" | "remove-from-basket" | "jump-filter-page" | "refresh-button" | "update:selected-amount")[], "show-loan-details" | "add-to-basket" | "remove-from-basket" | "jump-filter-page" | "refresh-button" | "update:selected-amount", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
197
198
  variant: {
198
199
  type: StringConstructor;