@kiva/kv-components 6.47.0 → 6.48.0

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
1
  import { mdiArrowRight as N, mdiChevronLeft as T } from "@mdi/js";
2
- import { ref as L, computed as k, resolveComponent as u, resolveDirective as R, openBlock as n, createElementBlock as s, createElementVNode as t, normalizeStyle as A, createVNode as w, withCtx as K, Fragment as c, renderList as v, withDirectives as d, createTextVNode as m, toDisplayString as x, createCommentVNode as C, normalizeClass as O } from "vue";
3
- import I from "../../KvLoadingPlaceholder.js";
4
- import M from "../../KvGrid.js";
5
- import B from "../../KvMaterialIcon.js";
6
- import V from "./KvLendMenuCountryList.js";
7
- import D from "./KvLendMenuSearchList.js";
2
+ import { ref as C, computed as y, resolveComponent as u, resolveDirective as M, openBlock as n, createElementBlock as s, createElementVNode as t, normalizeStyle as R, withDirectives as c, createTextVNode as d, createVNode as m, createCommentVNode as x, withCtx as A, Fragment as w, renderList as v, toDisplayString as S, normalizeClass as K } from "vue";
3
+ import O from "../../KvLoadingPlaceholder.js";
4
+ import B from "../../KvGrid.js";
5
+ import I from "../../KvMaterialIcon.js";
6
+ import G from "./KvLendMenuCountryList.js";
7
+ import V from "./KvLendMenuSearchList.js";
8
8
  import "./KvLendMegaMenu.css";
9
- import F from "../../../_virtual/_plugin-vue_export-helper.js";
10
- const z = {
9
+ import D from "../../../_virtual/_plugin-vue_export-helper.js";
10
+ const F = {
11
11
  components: {
12
- KvGrid: M,
13
- KvLendMenuCountryList: V,
14
- KvLendMenuSearchList: D,
15
- KvLoadingPlaceholder: I,
16
- KvMaterialIcon: B
12
+ KvGrid: B,
13
+ KvLendMenuCountryList: G,
14
+ KvLendMenuSearchList: V,
15
+ KvLoadingPlaceholder: O,
16
+ KvMaterialIcon: I
17
17
  },
18
18
  props: {
19
19
  categories: {
@@ -43,20 +43,24 @@ const z = {
43
43
  searches: {
44
44
  type: Array,
45
45
  default: () => []
46
+ },
47
+ showMGUpsellLink: {
48
+ type: Boolean,
49
+ default: !1
46
50
  }
47
51
  },
48
52
  setup(p) {
49
- const e = L(null), i = L(""), l = k(() => i.value !== ""), f = (a) => i.value === a, S = (a) => {
50
- i.value = a;
51
- }, h = k(() => {
52
- var r;
53
- const a = { width: "150%" };
53
+ const e = C(null), i = C(""), l = y(() => i.value !== ""), f = (r) => i.value === r, L = (r) => {
54
+ i.value = r;
55
+ }, h = y(() => {
56
+ var a;
57
+ const r = { width: "150%" };
54
58
  if (l.value) {
55
- const o = ((r = e.value) == null ? void 0 : r.clientWidth) ?? 0;
56
- a.transform = `translateX(${o * -1}px)`;
59
+ const o = ((a = e.value) == null ? void 0 : a.clientWidth) ?? 0;
60
+ r.transform = `translateX(${o * -1}px)`;
57
61
  }
58
- return a;
59
- }), y = k(() => p.regions.filter((a) => f(a.name))), _ = k(() => p.searches.length > 0);
62
+ return r;
63
+ }), k = y(() => p.regions.filter((r) => f(r.name))), _ = y(() => p.searches.length > 0);
60
64
  return {
61
65
  mdiArrowRight: N,
62
66
  mdiChevronLeft: T,
@@ -64,112 +68,126 @@ const z = {
64
68
  openedSection: i,
65
69
  sectionOpen: l,
66
70
  isOpenSection: f,
67
- openSection: S,
71
+ openSection: L,
68
72
  onClose: () => {
69
73
  i.value = "";
70
74
  },
71
- openRegions: y,
75
+ openRegions: k,
72
76
  computedStyle: h,
73
77
  hasSearches: _,
74
78
  savedSearchesTitle: "Saved searches"
75
79
  };
76
80
  }
77
- }, E = { class: "lend-mega-menu tw-overflow-hidden tw-pb-3 lg:tw-pt-3" }, W = {
81
+ }, z = { class: "lend-mega-menu tw-overflow-hidden tw-pb-3 lg:tw-pt-3" }, E = {
82
+ key: 0,
83
+ href: "/monthlygood"
84
+ }, U = { class: "tw-inline-flex tw-items-center tw-py-1 tw-mb-2 tw-gap-0.5 tw-font-medium tw-text-action" }, W = {
78
85
  ref: "categoriesSection",
79
86
  class: "tw-col-span-7"
80
- }, G = { class: "tw-flex tw-gap-4 tw-whitespace-nowrap" }, P = { class: "tw-columns-2 tw-gap-4 tw-font-medium" }, X = ["href"], j = { class: "tw-font-medium" }, q = { class: "link-item" }, H = {
87
+ }, P = { class: "tw-flex tw-gap-4 tw-whitespace-nowrap" }, X = { class: "tw-columns-2 tw-gap-4 tw-font-medium" }, j = ["href"], q = { class: "tw-font-medium" }, H = { class: "link-item" }, J = {
81
88
  href: "/lend-by-category/recommended-by-lenders",
82
89
  class: "mega-menu-link"
83
- }, J = { class: "link-item" }, Q = {
90
+ }, Q = { class: "link-item" }, Y = {
84
91
  href: "/categories",
85
92
  class: "mega-menu-link"
86
- }, U = { class: "link-item" }, Y = {
93
+ }, Z = { class: "link-item" }, $ = {
87
94
  class: "mega-menu-link",
88
95
  href: "/lend"
89
- }, Z = { key: 0 }, $ = { class: "tw-font-medium" }, ee = ["href"], te = {
96
+ }, ee = { key: 0 }, te = { class: "tw-font-medium" }, ne = ["href"], se = {
90
97
  key: 1,
91
98
  class: "tw-text-secondary tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
92
- }, ne = ["aria-pressed"], se = {
99
+ }, oe = ["aria-pressed"], le = {
93
100
  key: 1,
94
101
  class: "tw-text-secondary tw-py-1 tw-inline-block"
95
- }, oe = {
102
+ }, ie = {
96
103
  href: "/lend/countries-not-lent",
97
104
  class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
98
- }, le = { class: "tw-col-span-2" }, ie = { class: "tw-col-span-8 tw-flex tw-flex-col" }, ae = { class: "tw-flex tw-whitespace-nowrap tw-h-full" }, re = { class: "tw-font-medium" }, ce = ["aria-pressed", "onClick"];
99
- function de(p, e, i, l, f, S) {
100
- const h = u("kv-loading-placeholder"), y = u("kv-material-icon"), _ = u("kv-lend-menu-search-list"), b = u("kv-lend-menu-country-list"), a = u("kv-grid"), r = R("kv-track-event");
101
- return n(), s("div", E, [
105
+ }, ae = { class: "tw-col-span-2" }, re = { class: "tw-col-span-8 tw-flex tw-flex-col" }, ce = { class: "tw-flex tw-whitespace-nowrap tw-h-full" }, de = { class: "tw-font-medium" }, me = ["aria-pressed", "onClick"];
106
+ function we(p, e, i, l, f, L) {
107
+ const h = u("kv-material-icon"), k = u("kv-loading-placeholder"), _ = u("kv-lend-menu-search-list"), b = u("kv-lend-menu-country-list"), r = u("kv-grid"), a = M("kv-track-event");
108
+ return n(), s("div", z, [
102
109
  t("div", {
103
- style: A(l.computedStyle),
110
+ style: R(l.computedStyle),
104
111
  class: "tw-transition tw-duration-1000 tw-ease-in-out"
105
112
  }, [
106
- w(a, { style: { "grid-template-columns": "repeat(18, minmax(0, 1fr))" } }, {
107
- default: K(() => [
113
+ i.showMGUpsellLink ? c((n(), s("a", E, [
114
+ t("span", U, [
115
+ e[2] || (e[2] = d(" Lend monthly ")),
116
+ m(h, {
117
+ icon: l.mdiArrowRight,
118
+ class: "tw-w-3 tw-h-3"
119
+ }, null, 8, ["icon"])
120
+ ])
121
+ ])), [
122
+ [a, ["TopNav", "click-Lend-Menu-Monthly-Good", "Lend-monthly"]]
123
+ ]) : x("", !0),
124
+ m(r, { style: { "grid-template-columns": "repeat(18, minmax(0, 1fr))" } }, {
125
+ default: A(() => [
108
126
  t("div", W, [
109
- e[10] || (e[10] = t("h2", { class: "menu-heading tw-mb-2" }, " Categories ", -1)),
110
- t("div", G, [
111
- t("ul", P, [
112
- i.isChannelsLoading ? (n(), s(c, { key: 0 }, v(14, (o) => t("li", {
127
+ e[11] || (e[11] = t("h2", { class: "menu-heading tw-mb-2" }, " Categories ", -1)),
128
+ t("div", P, [
129
+ t("ul", X, [
130
+ i.isChannelsLoading ? (n(), s(w, { key: 0 }, v(14, (o) => t("li", {
113
131
  key: o,
114
132
  class: "link-item"
115
133
  }, [
116
- w(h, {
134
+ m(k, {
117
135
  class: "tw-inline-block tw-align-middle",
118
136
  style: { height: "1.25rem" }
119
137
  }),
120
- e[2] || (e[2] = t("span", { class: "tw-py-1 tw-inline-block" }, " ", -1))
121
- ])), 64)) : (n(!0), s(c, { key: 1 }, v(i.categories, (o, g) => (n(), s("li", {
138
+ e[3] || (e[3] = t("span", { class: "tw-py-1 tw-inline-block" }, " ", -1))
139
+ ])), 64)) : (n(!0), s(w, { key: 1 }, v(i.categories, (o, g) => (n(), s("li", {
122
140
  key: g,
123
141
  class: "link-item"
124
142
  }, [
125
- d((n(), s("a", {
143
+ c((n(), s("a", {
126
144
  href: o.url,
127
145
  class: "tw-text-primary tw-text-left hover:tw-text-action tw-no-underline tw-my-1 tw-inline-block"
128
146
  }, [
129
- m(x(o.name), 1)
130
- ], 8, X)), [
131
- [r, ["TopNav", "click-Lend-Category", o.name, g + 1]]
147
+ d(S(o.name), 1)
148
+ ], 8, j)), [
149
+ [a, ["TopNav", "click-Lend-Category", o.name, g + 1]]
132
150
  ])
133
151
  ]))), 128))
134
152
  ]),
135
153
  t("div", null, [
136
- t("ul", j, [
137
- t("li", q, [
138
- d((n(), s("a", H, e[3] || (e[3] = [
139
- m(" Recommended by lenders ")
154
+ t("ul", q, [
155
+ t("li", H, [
156
+ c((n(), s("a", J, e[4] || (e[4] = [
157
+ d(" Recommended by lenders ")
140
158
  ]))), [
141
- [r, ["TopNav", "click-Lend-Recommended-by-lenders"]]
159
+ [a, ["TopNav", "click-Lend-Recommended-by-lenders"]]
142
160
  ])
143
161
  ]),
144
- t("li", J, [
145
- d((n(), s("a", Q, e[4] || (e[4] = [
146
- m(" All categories ")
162
+ t("li", Q, [
163
+ c((n(), s("a", Y, e[5] || (e[5] = [
164
+ d(" All categories ")
147
165
  ]))), [
148
- [r, ["TopNav", "click-Lend-All_Categories"]]
166
+ [a, ["TopNav", "click-Lend-All_Categories"]]
149
167
  ])
150
168
  ]),
151
- t("li", U, [
152
- d((n(), s("a", Y, e[5] || (e[5] = [
153
- m(" All loans ")
169
+ t("li", Z, [
170
+ c((n(), s("a", $, e[6] || (e[6] = [
171
+ d(" All loans ")
154
172
  ]))), [
155
- [r, ["TopNav", "click-Lend-All_Loans"]]
173
+ [a, ["TopNav", "click-Lend-All_Loans"]]
156
174
  ])
157
175
  ])
158
176
  ]),
159
- i.userId ? (n(), s("div", Z, [
160
- e[8] || (e[8] = t("span", { class: "tw-inline-block tw-py-1" }, " ", -1)),
161
- e[9] || (e[9] = t("h2", { class: "menu-heading tw-my-1" }, " My Kiva ", -1)),
162
- t("ul", $, [
177
+ i.userId ? (n(), s("div", ee, [
178
+ e[9] || (e[9] = t("span", { class: "tw-inline-block tw-py-1" }, " ", -1)),
179
+ e[10] || (e[10] = t("h2", { class: "menu-heading tw-my-1" }, " My Kiva ", -1)),
180
+ t("ul", te, [
163
181
  t("li", null, [
164
- i.favorites > 0 ? d((n(), s("a", {
182
+ i.favorites > 0 ? c((n(), s("a", {
165
183
  key: 0,
166
184
  href: `/lend?lenderFavorite=${i.userId}`,
167
185
  class: "tw-text-primary tw-text-left hover:tw-text-action tw-py-1 tw-inline-block tw-no-underline hover:tw-underline"
168
- }, e[6] || (e[6] = [
169
- m(" Saved loans ")
170
- ]), 8, ee)), [
171
- [r, ["TopNav", "click-Lend-Favorites"]]
172
- ]) : (n(), s("span", te, " Saved loans "))
186
+ }, e[7] || (e[7] = [
187
+ d(" Saved loans ")
188
+ ]), 8, ne)), [
189
+ [a, ["TopNav", "click-Lend-Favorites"]]
190
+ ]) : (n(), s("span", se, " Saved loans "))
173
191
  ]),
174
192
  t("li", null, [
175
193
  l.hasSearches ? (n(), s("button", {
@@ -177,73 +195,73 @@ function de(p, e, i, l, f, S) {
177
195
  "aria-pressed": l.isOpenSection(l.savedSearchesTitle) ? "true" : "false",
178
196
  class: "tw-text-primary tw-text-left tw-py-1 tw-inline-block hover:tw-text-action hover:tw-underline",
179
197
  onClick: e[0] || (e[0] = (o) => l.openSection(l.savedSearchesTitle))
180
- }, x(l.savedSearchesTitle), 9, ne)) : (n(), s("span", se, " Saved searches "))
198
+ }, S(l.savedSearchesTitle), 9, oe)) : (n(), s("span", le, " Saved searches "))
181
199
  ]),
182
200
  t("li", null, [
183
- d((n(), s("a", oe, e[7] || (e[7] = [
184
- m(" Countries I haven't lent to ")
201
+ c((n(), s("a", ie, e[8] || (e[8] = [
202
+ d(" Countries I haven't lent to ")
185
203
  ]))), [
186
- [r, ["TopNav", "click-Lend-Countries_Not_Lent"]]
204
+ [a, ["TopNav", "click-Lend-Countries_Not_Lent"]]
187
205
  ])
188
206
  ])
189
207
  ])
190
- ])) : C("", !0)
208
+ ])) : x("", !0)
191
209
  ])
192
210
  ])
193
211
  ], 512),
194
- t("div", le, [
212
+ t("div", ae, [
195
213
  l.sectionOpen ? (n(), s("button", {
196
214
  key: 0,
197
215
  class: "tw-flex",
198
216
  onClick: e[1] || (e[1] = (o) => l.openedSection = "")
199
217
  }, [
200
- w(y, {
218
+ m(h, {
201
219
  class: "tw-flex-shrink-0 tw-w-3 tw-h-3",
202
220
  icon: l.mdiChevronLeft
203
221
  }, null, 8, ["icon"]),
204
- e[11] || (e[11] = t("span", { class: "tw-text-base" }, " Back ", -1))
205
- ])) : C("", !0)
222
+ e[12] || (e[12] = t("span", { class: "tw-text-base" }, " Back ", -1))
223
+ ])) : x("", !0)
206
224
  ]),
207
- t("div", ie, [
208
- l.isOpenSection(l.savedSearchesTitle) ? (n(), s(c, { key: 0 }, [
209
- e[12] || (e[12] = t("h2", { class: "menu-heading tw-mb-2" }, " Saved Searches ", -1)),
210
- w(_, {
225
+ t("div", re, [
226
+ l.isOpenSection(l.savedSearchesTitle) ? (n(), s(w, { key: 0 }, [
227
+ e[13] || (e[13] = t("h2", { class: "menu-heading tw-mb-2" }, " Saved Searches ", -1)),
228
+ m(_, {
211
229
  class: "search-list tw-h-full",
212
230
  searches: i.searches
213
231
  }, null, 8, ["searches"])
214
- ], 64)) : (n(), s(c, { key: 1 }, [
215
- e[14] || (e[14] = t("h2", { class: "menu-heading tw-mb-2" }, " Regions ", -1)),
216
- t("div", ae, [
217
- t("ul", re, [
218
- i.isRegionsLoading ? (n(), s(c, { key: 0 }, v(8, (o) => t("li", {
232
+ ], 64)) : (n(), s(w, { key: 1 }, [
233
+ e[15] || (e[15] = t("h2", { class: "menu-heading tw-mb-2" }, " Regions ", -1)),
234
+ t("div", ce, [
235
+ t("ul", de, [
236
+ i.isRegionsLoading ? (n(), s(w, { key: 0 }, v(8, (o) => t("li", {
219
237
  key: o,
220
238
  class: "link-item"
221
239
  }, [
222
- w(h, {
240
+ m(k, {
223
241
  class: "tw-inline-block tw-align-middle",
224
242
  style: { height: "1.25rem" }
225
243
  }),
226
- e[13] || (e[13] = t("span", { class: "tw-py-1 tw-inline-block" }, " ", -1))
227
- ])), 64)) : (n(!0), s(c, { key: 1 }, v(i.regions, (o) => (n(), s("li", {
244
+ e[14] || (e[14] = t("span", { class: "tw-py-1 tw-inline-block" }, " ", -1))
245
+ ])), 64)) : (n(!0), s(w, { key: 1 }, v(i.regions, (o) => (n(), s("li", {
228
246
  key: o.name,
229
247
  class: "link-item tw-mr-4"
230
248
  }, [
231
- d((n(), s("button", {
249
+ c((n(), s("button", {
232
250
  "aria-pressed": l.isOpenSection(o.name) ? "true" : "false",
233
- class: O(["tw-text-primary tw-text-left tw-py-1 hover:tw-text-action hover:tw-underline", { "tw-text-action": l.isOpenSection(o.name) }]),
251
+ class: K(["tw-text-primary tw-text-left tw-py-1 hover:tw-text-action hover:tw-underline", { "tw-text-action": l.isOpenSection(o.name) }]),
234
252
  onClick: (g) => l.openSection(o.name)
235
253
  }, [
236
- m(x(o.name), 1)
237
- ], 10, ce)), [
238
- [r, ["TopNav", "click-Lend-Region", o.name]]
254
+ d(S(o.name), 1)
255
+ ], 10, me)), [
256
+ [a, ["TopNav", "click-Lend-Region", o.name]]
239
257
  ])
240
258
  ]))), 128))
241
259
  ]),
242
- (n(!0), s(c, null, v(l.openRegions, (o) => (n(), s("div", {
260
+ (n(!0), s(w, null, v(l.openRegions, (o) => (n(), s("div", {
243
261
  key: o.name,
244
262
  class: "tw-h-full"
245
263
  }, [
246
- w(b, {
264
+ m(b, {
247
265
  countries: o.countries,
248
266
  class: "region-list tw-h-full"
249
267
  }, null, 8, ["countries"])
@@ -257,7 +275,7 @@ function de(p, e, i, l, f, S) {
257
275
  ], 4)
258
276
  ]);
259
277
  }
260
- const _e = /* @__PURE__ */ F(z, [["render", de], ["__scopeId", "data-v-c47f9ef7"]]);
278
+ const xe = /* @__PURE__ */ D(F, [["render", we], ["__scopeId", "data-v-53c4e3f0"]]);
261
279
  export {
262
- _e as default
280
+ xe as default
263
281
  };
@@ -1,26 +1,30 @@
1
1
  import { gql as v } from "@apollo/client/core";
2
- import { toRefs as w, ref as a, computed as _, onMounted as S, resolveComponent as L, openBlock as x, createElementBlock as A, createVNode as b } from "vue";
3
- import F from "./KvLendListMenu.js";
4
- import N from "./KvLendMegaMenu.js";
5
- import { indexIn as O } from "../../../utils/comparators.js";
6
- import { groupBy as R, sortBy as I } from "../../../utils/arrayUtils.js";
7
- import B from "../../../_virtual/_plugin-vue_export-helper.js";
2
+ import { toRefs as q, ref as a, computed as _, onMounted as S, resolveComponent as L, openBlock as x, createElementBlock as A, createVNode as k } from "vue";
3
+ import B from "./KvLendListMenu.js";
4
+ import F from "./KvLendMegaMenu.js";
5
+ import { indexIn as N } from "../../../utils/comparators.js";
6
+ import { groupBy as O, sortBy as w } from "../../../utils/arrayUtils.js";
7
+ import R from "../../../_virtual/_plugin-vue_export-helper.js";
8
8
  const E = {
9
9
  components: {
10
- KvLendListMenu: F,
11
- KvLendMegaMenu: N
10
+ KvLendListMenu: B,
11
+ KvLendMegaMenu: F
12
12
  },
13
13
  props: {
14
14
  userId: {
15
15
  type: Number,
16
16
  default: null
17
+ },
18
+ showMGUpsellLink: {
19
+ type: Boolean,
20
+ default: !1
17
21
  }
18
22
  },
19
23
  emits: ["load-lend-menu-data"],
20
- setup(f, { emit: y }) {
24
+ setup(f, { emit: h }) {
21
25
  const {
22
- userId: i
23
- } = w(f), e = a([]), d = a([]), m = a(0), c = a([]), g = [
26
+ userId: s
27
+ } = q(f), e = a([]), d = a([]), m = a(0), u = a([]), g = [
24
28
  "North America",
25
29
  "Central America",
26
30
  "South America",
@@ -29,9 +33,9 @@ const E = {
29
33
  "Middle East",
30
34
  "Asia",
31
35
  "Oceania"
32
- ], h = a(!0), C = a(!0), M = async (t) => {
33
- var r, s, o, u;
34
- if (t.watchQuery({
36
+ ], y = a(!0), p = a(!0), M = async (i) => {
37
+ var r, t, o, c;
38
+ if (i.watchQuery({
35
39
  query: v`query countryFacets {
36
40
  lend {
37
41
  countryFacets {
@@ -48,9 +52,9 @@ const E = {
48
52
  }).subscribe({
49
53
  next: ({ data: n }) => {
50
54
  var l;
51
- d.value = ((l = n == null ? void 0 : n.lend) == null ? void 0 : l.countryFacets) ?? [], h.value = !1;
55
+ d.value = ((l = n == null ? void 0 : n.lend) == null ? void 0 : l.countryFacets) ?? [], y.value = !1;
52
56
  }
53
- }), t.watchQuery({
57
+ }), i.watchQuery({
54
58
  query: v`
55
59
  query lendMenuData {
56
60
  lend {
@@ -66,11 +70,11 @@ const E = {
66
70
  `
67
71
  }).subscribe({
68
72
  next: ({ data: n }) => {
69
- var l, p;
70
- e.value = ((p = (l = n == null ? void 0 : n.lend) == null ? void 0 : l.loanChannels) == null ? void 0 : p.values) ?? [], C.value = !1;
73
+ var l, C;
74
+ e.value = ((C = (l = n == null ? void 0 : n.lend) == null ? void 0 : l.loanChannels) == null ? void 0 : C.values) ?? [], p.value = !1;
71
75
  }
72
- }), i.value) {
73
- const { data: n } = await t.query({
76
+ }), s.value) {
77
+ const { data: n } = await i.query({
74
78
  query: v`
75
79
  query lendMenuPrivateData($userId: Int!) {
76
80
  lend {
@@ -92,71 +96,73 @@ const E = {
92
96
  }
93
97
  `,
94
98
  variables: {
95
- userId: i.value
99
+ userId: s.value
96
100
  },
97
101
  fetchPolicy: "network-only"
98
102
  });
99
- m.value = ((s = (r = n == null ? void 0 : n.lend) == null ? void 0 : r.loans) == null ? void 0 : s.totalCount) ?? 0, c.value = ((u = (o = n == null ? void 0 : n.my) == null ? void 0 : o.savedSearches) == null ? void 0 : u.values) ?? [];
103
+ m.value = ((t = (r = n == null ? void 0 : n.lend) == null ? void 0 : r.loans) == null ? void 0 : t.totalCount) ?? 0, u.value = ((c = (o = n == null ? void 0 : n.my) == null ? void 0 : o.savedSearches) == null ? void 0 : c.values) ?? [];
100
104
  }
101
- }, k = _(() => {
102
- const t = d.value.map((o) => ({
105
+ }, b = _(() => {
106
+ const i = d.value.map((o) => ({
103
107
  name: o.country.name,
104
108
  region: o.country.region,
105
109
  isoCode: o.country.isoCode.toLowerCase(),
106
110
  count: o.count || 0
107
- })), r = R(t, "region"), s = [];
108
- for (const [o, u] of Object.entries(r))
109
- s.push({
111
+ })), r = O(i, "region"), t = [];
112
+ for (const [o, c] of Object.entries(r))
113
+ t.push({
110
114
  name: o,
111
- countries: u.sort(I("name"))
115
+ countries: c.sort(w("name"))
112
116
  });
113
- return s.sort(O(g, "name"));
114
- }), q = _(() => {
117
+ return t.sort(N(g, "name"));
118
+ }), I = _(() => {
115
119
  var r;
116
- return ((r = e.value) == null ? void 0 : r.map((s) => {
117
- const o = JSON.parse(JSON.stringify(s));
120
+ return ((r = e.value) == null ? void 0 : r.map((t) => {
121
+ const o = JSON.parse(JSON.stringify(t));
118
122
  return o.url = o.url.replace("lend", "lend-by-category"), o;
119
- })).sort(I("name"));
123
+ })).sort(w("name"));
120
124
  });
121
125
  return S(() => {
122
- y("load-lend-menu-data");
126
+ h("load-lend-menu-data");
123
127
  }), {
124
128
  onLoad: M,
125
- regions: k,
126
- computedCategories: q,
127
- isChannelsLoading: C,
128
- isRegionsLoading: h,
129
- savedSearches: c,
129
+ regions: b,
130
+ computedCategories: I,
131
+ isChannelsLoading: p,
132
+ isRegionsLoading: y,
133
+ savedSearches: u,
130
134
  favoritesCount: m
131
135
  };
132
136
  }
133
137
  };
134
- function D(f, y, i, e, d, m) {
135
- const c = L("kv-lend-list-menu"), g = L("kv-lend-mega-menu");
138
+ function D(f, h, s, e, d, m) {
139
+ const u = L("kv-lend-list-menu"), g = L("kv-lend-mega-menu");
136
140
  return x(), A("div", null, [
137
- b(c, {
141
+ k(u, {
138
142
  class: "lg:tw-hidden",
139
143
  categories: e.computedCategories,
140
144
  regions: e.regions,
141
- "user-id": i.userId,
145
+ "user-id": s.userId,
142
146
  favorites: e.favoritesCount,
143
147
  searches: e.savedSearches,
144
148
  "is-regions-loading": e.isRegionsLoading,
145
- "is-channels-loading": e.isChannelsLoading
146
- }, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading"]),
147
- b(g, {
149
+ "is-channels-loading": e.isChannelsLoading,
150
+ "show-m-g-upsell-link": s.showMGUpsellLink
151
+ }, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link"]),
152
+ k(g, {
148
153
  class: "tw-hidden lg:tw-block",
149
154
  categories: e.computedCategories,
150
155
  regions: e.regions,
151
- "user-id": i.userId,
156
+ "user-id": s.userId,
152
157
  favorites: e.favoritesCount,
153
158
  searches: e.savedSearches,
154
159
  "is-regions-loading": e.isRegionsLoading,
155
- "is-channels-loading": e.isChannelsLoading
156
- }, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading"])
160
+ "is-channels-loading": e.isChannelsLoading,
161
+ "show-m-g-upsell-link": s.showMGUpsellLink
162
+ }, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link"])
157
163
  ]);
158
164
  }
159
- const G = /* @__PURE__ */ B(E, [["render", D]]);
165
+ const V = /* @__PURE__ */ R(E, [["render", D]]);
160
166
  export {
161
- G as default
167
+ V as default
162
168
  };
@@ -1 +1 @@
1
- .header-margins[data-v-bd1e99de]{margin:0 auto;max-width:1400px}.header-fade-enter-active[data-v-bd1e99de]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-bd1e99de]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-bd1e99de],.header-fade-leave-to[data-v-bd1e99de]{opacity:0}.header-fade-leave[data-v-bd1e99de],.header-fade-enter-to[data-v-bd1e99de]{opacity:1}.bg-opacity-50[data-v-bd1e99de]{background-color:rgba(var(--bg-action-highlight),.5)}
1
+ .header-margins[data-v-588c2857]{margin:0 auto;max-width:1400px}.header-fade-enter-active[data-v-588c2857]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-588c2857]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-588c2857],.header-fade-leave-to[data-v-588c2857]{opacity:0}.header-fade-leave[data-v-588c2857],.header-fade-enter-to[data-v-588c2857]{opacity:1}.bg-opacity-50[data-v-588c2857]{background-color:rgba(var(--bg-action-highlight),.5)}