@kiva/kv-components 6.47.1 → 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.
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +10 -11
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +81 -78
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendListMenu.js +123 -103
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.css +1 -1
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMegaMenu.js +120 -102
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +57 -51
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +36 -34
- package/package.json +2 -2
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { mdiArrowRight as N, mdiChevronLeft as T } from "@mdi/js";
|
|
2
|
-
import { ref as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
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
|
|
10
|
-
const
|
|
9
|
+
import D from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
10
|
+
const F = {
|
|
11
11
|
components: {
|
|
12
|
-
KvGrid:
|
|
13
|
-
KvLendMenuCountryList:
|
|
14
|
-
KvLendMenuSearchList:
|
|
15
|
-
KvLoadingPlaceholder:
|
|
16
|
-
KvMaterialIcon:
|
|
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 =
|
|
50
|
-
i.value =
|
|
51
|
-
}, h =
|
|
52
|
-
var
|
|
53
|
-
const
|
|
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 = ((
|
|
56
|
-
|
|
59
|
+
const o = ((a = e.value) == null ? void 0 : a.clientWidth) ?? 0;
|
|
60
|
+
r.transform = `translateX(${o * -1}px)`;
|
|
57
61
|
}
|
|
58
|
-
return
|
|
59
|
-
}),
|
|
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:
|
|
71
|
+
openSection: L,
|
|
68
72
|
onClose: () => {
|
|
69
73
|
i.value = "";
|
|
70
74
|
},
|
|
71
|
-
openRegions:
|
|
75
|
+
openRegions: k,
|
|
72
76
|
computedStyle: h,
|
|
73
77
|
hasSearches: _,
|
|
74
78
|
savedSearchesTitle: "Saved searches"
|
|
75
79
|
};
|
|
76
80
|
}
|
|
77
|
-
},
|
|
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
|
-
},
|
|
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
|
-
},
|
|
90
|
+
}, Q = { class: "link-item" }, Y = {
|
|
84
91
|
href: "/categories",
|
|
85
92
|
class: "mega-menu-link"
|
|
86
|
-
},
|
|
93
|
+
}, Z = { class: "link-item" }, $ = {
|
|
87
94
|
class: "mega-menu-link",
|
|
88
95
|
href: "/lend"
|
|
89
|
-
},
|
|
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
|
-
},
|
|
99
|
+
}, oe = ["aria-pressed"], le = {
|
|
93
100
|
key: 1,
|
|
94
101
|
class: "tw-text-secondary tw-py-1 tw-inline-block"
|
|
95
|
-
},
|
|
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
|
-
},
|
|
99
|
-
function
|
|
100
|
-
const h = u("kv-
|
|
101
|
-
return n(), s("div",
|
|
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:
|
|
110
|
+
style: R(l.computedStyle),
|
|
104
111
|
class: "tw-transition tw-duration-1000 tw-ease-in-out"
|
|
105
112
|
}, [
|
|
106
|
-
|
|
107
|
-
|
|
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[
|
|
110
|
-
t("div",
|
|
111
|
-
t("ul",
|
|
112
|
-
i.isChannelsLoading ? (n(), s(
|
|
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
|
-
|
|
134
|
+
m(k, {
|
|
117
135
|
class: "tw-inline-block tw-align-middle",
|
|
118
136
|
style: { height: "1.25rem" }
|
|
119
137
|
}),
|
|
120
|
-
e[
|
|
121
|
-
])), 64)) : (n(!0), s(
|
|
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
|
-
|
|
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
|
-
|
|
130
|
-
], 8,
|
|
131
|
-
[
|
|
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",
|
|
137
|
-
t("li",
|
|
138
|
-
|
|
139
|
-
|
|
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
|
-
[
|
|
159
|
+
[a, ["TopNav", "click-Lend-Recommended-by-lenders"]]
|
|
142
160
|
])
|
|
143
161
|
]),
|
|
144
|
-
t("li",
|
|
145
|
-
|
|
146
|
-
|
|
162
|
+
t("li", Q, [
|
|
163
|
+
c((n(), s("a", Y, e[5] || (e[5] = [
|
|
164
|
+
d(" All categories ")
|
|
147
165
|
]))), [
|
|
148
|
-
[
|
|
166
|
+
[a, ["TopNav", "click-Lend-All_Categories"]]
|
|
149
167
|
])
|
|
150
168
|
]),
|
|
151
|
-
t("li",
|
|
152
|
-
|
|
153
|
-
|
|
169
|
+
t("li", Z, [
|
|
170
|
+
c((n(), s("a", $, e[6] || (e[6] = [
|
|
171
|
+
d(" All loans ")
|
|
154
172
|
]))), [
|
|
155
|
-
[
|
|
173
|
+
[a, ["TopNav", "click-Lend-All_Loans"]]
|
|
156
174
|
])
|
|
157
175
|
])
|
|
158
176
|
]),
|
|
159
|
-
i.userId ? (n(), s("div",
|
|
160
|
-
e[
|
|
161
|
-
e[
|
|
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 ?
|
|
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[
|
|
169
|
-
|
|
170
|
-
]), 8,
|
|
171
|
-
[
|
|
172
|
-
]) : (n(), s("span",
|
|
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
|
-
},
|
|
198
|
+
}, S(l.savedSearchesTitle), 9, oe)) : (n(), s("span", le, " Saved searches "))
|
|
181
199
|
]),
|
|
182
200
|
t("li", null, [
|
|
183
|
-
|
|
184
|
-
|
|
201
|
+
c((n(), s("a", ie, e[8] || (e[8] = [
|
|
202
|
+
d(" Countries I haven't lent to ")
|
|
185
203
|
]))), [
|
|
186
|
-
[
|
|
204
|
+
[a, ["TopNav", "click-Lend-Countries_Not_Lent"]]
|
|
187
205
|
])
|
|
188
206
|
])
|
|
189
207
|
])
|
|
190
|
-
])) :
|
|
208
|
+
])) : x("", !0)
|
|
191
209
|
])
|
|
192
210
|
])
|
|
193
211
|
], 512),
|
|
194
|
-
t("div",
|
|
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
|
-
|
|
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[
|
|
205
|
-
])) :
|
|
222
|
+
e[12] || (e[12] = t("span", { class: "tw-text-base" }, " Back ", -1))
|
|
223
|
+
])) : x("", !0)
|
|
206
224
|
]),
|
|
207
|
-
t("div",
|
|
208
|
-
l.isOpenSection(l.savedSearchesTitle) ? (n(), s(
|
|
209
|
-
e[
|
|
210
|
-
|
|
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(
|
|
215
|
-
e[
|
|
216
|
-
t("div",
|
|
217
|
-
t("ul",
|
|
218
|
-
i.isRegionsLoading ? (n(), s(
|
|
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
|
-
|
|
240
|
+
m(k, {
|
|
223
241
|
class: "tw-inline-block tw-align-middle",
|
|
224
242
|
style: { height: "1.25rem" }
|
|
225
243
|
}),
|
|
226
|
-
e[
|
|
227
|
-
])), 64)) : (n(!0), s(
|
|
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
|
-
|
|
249
|
+
c((n(), s("button", {
|
|
232
250
|
"aria-pressed": l.isOpenSection(o.name) ? "true" : "false",
|
|
233
|
-
class:
|
|
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
|
-
|
|
237
|
-
], 10,
|
|
238
|
-
[
|
|
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(
|
|
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
|
-
|
|
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
|
|
278
|
+
const xe = /* @__PURE__ */ D(F, [["render", we], ["__scopeId", "data-v-53c4e3f0"]]);
|
|
261
279
|
export {
|
|
262
|
-
|
|
280
|
+
xe as default
|
|
263
281
|
};
|
|
@@ -1,26 +1,30 @@
|
|
|
1
1
|
import { gql as v } from "@apollo/client/core";
|
|
2
|
-
import { toRefs as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { indexIn as
|
|
6
|
-
import { groupBy as
|
|
7
|
-
import
|
|
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:
|
|
11
|
-
KvLendMegaMenu:
|
|
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:
|
|
24
|
+
setup(f, { emit: h }) {
|
|
21
25
|
const {
|
|
22
|
-
userId:
|
|
23
|
-
} =
|
|
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
|
-
],
|
|
33
|
-
var r,
|
|
34
|
-
if (
|
|
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) ?? [],
|
|
55
|
+
d.value = ((l = n == null ? void 0 : n.lend) == null ? void 0 : l.countryFacets) ?? [], y.value = !1;
|
|
52
56
|
}
|
|
53
|
-
}),
|
|
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,
|
|
70
|
-
e.value = ((
|
|
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
|
-
}),
|
|
73
|
-
const { data: n } = await
|
|
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:
|
|
99
|
+
userId: s.value
|
|
96
100
|
},
|
|
97
101
|
fetchPolicy: "network-only"
|
|
98
102
|
});
|
|
99
|
-
m.value = ((
|
|
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
|
-
},
|
|
102
|
-
const
|
|
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 =
|
|
108
|
-
for (const [o,
|
|
109
|
-
|
|
111
|
+
})), r = O(i, "region"), t = [];
|
|
112
|
+
for (const [o, c] of Object.entries(r))
|
|
113
|
+
t.push({
|
|
110
114
|
name: o,
|
|
111
|
-
countries:
|
|
115
|
+
countries: c.sort(w("name"))
|
|
112
116
|
});
|
|
113
|
-
return
|
|
114
|
-
}),
|
|
117
|
+
return t.sort(N(g, "name"));
|
|
118
|
+
}), I = _(() => {
|
|
115
119
|
var r;
|
|
116
|
-
return ((r = e.value) == null ? void 0 : r.map((
|
|
117
|
-
const o = JSON.parse(JSON.stringify(
|
|
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(
|
|
123
|
+
})).sort(w("name"));
|
|
120
124
|
});
|
|
121
125
|
return S(() => {
|
|
122
|
-
|
|
126
|
+
h("load-lend-menu-data");
|
|
123
127
|
}), {
|
|
124
128
|
onLoad: M,
|
|
125
|
-
regions:
|
|
126
|
-
computedCategories:
|
|
127
|
-
isChannelsLoading:
|
|
128
|
-
isRegionsLoading:
|
|
129
|
-
savedSearches:
|
|
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,
|
|
135
|
-
const
|
|
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
|
-
|
|
141
|
+
k(u, {
|
|
138
142
|
class: "lg:tw-hidden",
|
|
139
143
|
categories: e.computedCategories,
|
|
140
144
|
regions: e.regions,
|
|
141
|
-
"user-id":
|
|
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
|
-
|
|
147
|
-
|
|
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":
|
|
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
|
-
|
|
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
|
|
165
|
+
const V = /* @__PURE__ */ R(E, [["render", D]]);
|
|
160
166
|
export {
|
|
161
|
-
|
|
167
|
+
V as default
|
|
162
168
|
};
|
package/dist/vue/KvWwwHeader.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-margins[data-v-
|
|
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)}
|