@kiva/kv-components 6.49.1 → 6.49.3
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/KvCheckbox.css +1 -1
- package/dist/vue/KvCheckbox.js +10 -10
- package/dist/vue/KvCheckoutReceipt.css +1 -1
- package/dist/vue/KvCheckoutReceipt.js +2 -2
- package/dist/vue/KvInlineActivityCard.css +1 -1
- package/dist/vue/KvInlineActivityCard.js +2 -2
- package/dist/vue/KvLoadingPlaceholder.css +1 -1
- package/dist/vue/KvLoadingPlaceholder.js +3 -3
- package/dist/vue/KvTextInput.js +4 -4
- package/dist/vue/KvTreeMapChart.css +1 -1
- package/dist/vue/KvTreeMapChart.js +2 -2
- package/dist/vue/KvWwwHeader/KvHeaderAboutMenu.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderDropdownLink.js +11 -11
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderLinkBar.js +49 -48
- package/dist/vue/KvWwwHeader/KvHeaderMenuLink.js +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.css +1 -1
- package/dist/vue/KvWwwHeader/KvHeaderMobileMenu.js +7 -7
- package/dist/vue/KvWwwHeader/KvHeaderMyKivaMenu.js +2 -2
- package/dist/vue/KvWwwHeader/KvHeaderTakeActionMenu.js +6 -6
- package/dist/vue/KvWwwHeader/LendMenu/KvLendMenu.js +67 -62
- package/dist/vue/KvWwwHeader.css +1 -1
- package/dist/vue/KvWwwHeader.js +83 -75
- package/package.json +2 -2
package/dist/vue/KvCheckbox.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
[data-v-
|
|
1
|
+
[data-v-d1a3011d] .check-icon svg{transform:scale(1.2)}
|
package/dist/vue/KvCheckbox.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { nanoid as k } from "nanoid";
|
|
2
|
-
import { toRefs as L, ref as v, watch as M, onMounted as I, resolveComponent as K, openBlock as r, createElementBlock as
|
|
2
|
+
import { toRefs as L, ref as v, watch as M, onMounted as I, resolveComponent as K, openBlock as r, createElementBlock as d, normalizeClass as c, normalizeStyle as S, createElementVNode as s, mergeProps as q, toHandlers as R, withModifiers as j, createCommentVNode as b, createBlock as z, renderSlot as D } from "vue";
|
|
3
3
|
import { mdiCheckCircle as E } from "@mdi/js";
|
|
4
4
|
import N from "./KvMaterialIcon.js";
|
|
5
5
|
import { useAttrs as O } from "../utils/attrs.js";
|
|
@@ -107,12 +107,12 @@ const C = [
|
|
|
107
107
|
}, J = { class: "tw-flex-1 peer-focus-visible:tw-ring-2 peer-focus-visible:tw-ring-action" };
|
|
108
108
|
function Q(i, l, t, e, u, w) {
|
|
109
109
|
const a = K("KvMaterialIcon");
|
|
110
|
-
return r(),
|
|
111
|
-
class:
|
|
110
|
+
return r(), d("div", {
|
|
111
|
+
class: c(e.classes),
|
|
112
112
|
style: S(e.styles)
|
|
113
113
|
}, [
|
|
114
114
|
s("label", {
|
|
115
|
-
class:
|
|
115
|
+
class: c(["tw-inline-flex tw-items-center", [
|
|
116
116
|
{ "tw-opacity-low": t.disabled && t.blurOnDisabled },
|
|
117
117
|
t.variant === "round" ? "tw-align-middle" : ""
|
|
118
118
|
]]),
|
|
@@ -129,9 +129,9 @@ function Q(i, l, t, e, u, w) {
|
|
|
129
129
|
}, R(e.inputListeners, !0), {
|
|
130
130
|
onChange: l[0] || (l[0] = j((...n) => e.onChange && e.onChange(...n), ["prevent"]))
|
|
131
131
|
}), null, 16, F),
|
|
132
|
-
t.variant === "square" ? (r(),
|
|
132
|
+
t.variant === "square" ? (r(), d("div", {
|
|
133
133
|
key: 0,
|
|
134
|
-
class:
|
|
134
|
+
class: c(["tw-w-3 tw-h-3 tw-mr-2 tw-flex-shrink-0 tw-rounded-xs tw-border tw-flex tw-justify-center tw-items-center tw-overflow-hidden tw-transition-all tw-duration-100 peer-focus-visible:tw-ring-2 peer-focus-visible:tw-ring-action", {
|
|
135
135
|
"tw-bg-white": !e.isChecked,
|
|
136
136
|
"tw-bg-action": e.isChecked,
|
|
137
137
|
"tw-border-secondary": !e.isChecked && t.valid,
|
|
@@ -139,15 +139,15 @@ function Q(i, l, t, e, u, w) {
|
|
|
139
139
|
"tw-border-danger": !t.valid
|
|
140
140
|
}])
|
|
141
141
|
}, [
|
|
142
|
-
e.isChecked ? (r(),
|
|
142
|
+
e.isChecked ? (r(), d("svg", G, l[1] || (l[1] = [
|
|
143
143
|
s("path", {
|
|
144
144
|
d: "M3.99975 6.79988L1.66642 4.46655C1.40642 4.20655 0.993086 4.20655 0.733086 4.46655C0.473086 4.72655 0.473086 5.13988 0.733086 5.39988L3.52642 8.19322C3.78642 8.45322 4.20642 8.45322 4.46642 8.19322L11.5331 1.13322C11.7931 0.873216 11.7931 0.459883 11.5331 0.199883C11.2731 -0.0601172 10.8598 -0.0601172 10.5998 0.199883L3.99975 6.79988Z",
|
|
145
145
|
fill: "white"
|
|
146
146
|
}, null, -1)
|
|
147
147
|
]))) : b("", !0)
|
|
148
|
-
], 2)) : (r(),
|
|
148
|
+
], 2)) : (r(), d("div", {
|
|
149
149
|
key: 1,
|
|
150
|
-
class:
|
|
150
|
+
class: c([
|
|
151
151
|
"tw-w-3 tw-h-3 tw-mr-1",
|
|
152
152
|
"tw-flex-shrink-0",
|
|
153
153
|
"tw-rounded-full",
|
|
@@ -175,7 +175,7 @@ function Q(i, l, t, e, u, w) {
|
|
|
175
175
|
], 10, Z)
|
|
176
176
|
], 6);
|
|
177
177
|
}
|
|
178
|
-
const te = /* @__PURE__ */ H(P, [["render", Q], ["__scopeId", "data-v-
|
|
178
|
+
const te = /* @__PURE__ */ H(P, [["render", Q], ["__scopeId", "data-v-d1a3011d"]]);
|
|
179
179
|
export {
|
|
180
180
|
te as default
|
|
181
181
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.section[data-v-
|
|
1
|
+
.section[data-v-b813bc10]{border-bottom-width:.0625rem;border-top-width:0px;--tw-border-opacity: 1;border-color:rgba(var(--border-tertiary),var(--tw-border-opacity, 1));padding:.5rem;display:block;overflow:hidden}@media print{.section[data-v-b813bc10]{page-break-inside:avoid}}.section--lender-info[data-v-b813bc10]{padding-top:0}.section--print[data-v-b813bc10]{border-bottom:0}.checkout-receipt__headline[data-v-b813bc10]{text-align:center;margin-bottom:1.5rem}.checkout-receipt__item-list[data-v-b813bc10]{list-style:none;margin:0;width:100%}.loan__name[data-v-b813bc10]{margin-bottom:.5rem}.loan__name--inline[data-v-b813bc10]{display:inline-block}.loan__amount[data-v-b813bc10]{text-align:right}.total[data-v-b813bc10]{display:flex;align-items:baseline}.total__header[data-v-b813bc10],.total__amount[data-v-b813bc10]{text-align:right;flex:1}.total__amount[data-v-b813bc10]{flex-grow:.33}.payments[data-v-b813bc10]{border-bottom:none}.payments__type[data-v-b813bc10]{display:flex;text-align:right}.payments__type-title[data-v-b813bc10],.payments__type-amount[data-v-b813bc10]{flex:1}.print[data-v-b813bc10]{margin:0 auto}
|
|
@@ -80,7 +80,7 @@ const F = (d = Date.now()) => {
|
|
|
80
80
|
this.enableKivaCardTracking && this.$kvTrackEvent("post-checkout", "click", "kiva-card-view-pdf-order-confirmation drawer");
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
}, U = { class: "checkout-receipt" }, M = { class: "checkout-receipt__wrapper tw-bg-primary tw-p-4 tw-rounded-
|
|
83
|
+
}, U = { class: "checkout-receipt" }, M = { class: "checkout-receipt__wrapper tw-bg-primary tw-p-4 tw-rounded-xs tw-border tw-border-tertiary" }, N = {
|
|
84
84
|
"data-testid": "lender-info",
|
|
85
85
|
class: "section section--lender-info"
|
|
86
86
|
}, P = { class: "data-hj-suppress" }, R = { class: "data-hj-suppress" }, V = {
|
|
@@ -379,7 +379,7 @@ function Ct(d, t, o, k, wt, c) {
|
|
|
379
379
|
])
|
|
380
380
|
]);
|
|
381
381
|
}
|
|
382
|
-
const Dt = /* @__PURE__ */ D(A, [["render", Ct], ["__scopeId", "data-v-
|
|
382
|
+
const Dt = /* @__PURE__ */ D(A, [["render", Ct], ["__scopeId", "data-v-b813bc10"]]);
|
|
383
383
|
export {
|
|
384
384
|
Dt as default
|
|
385
385
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.activity-avatar[data-v-
|
|
1
|
+
.activity-avatar[data-v-84a9404c],.activity-avatar[data-v-84a9404c] img,.activity-avatar[data-v-84a9404c] div{height:2rem;width:2rem}
|
|
@@ -31,7 +31,7 @@ const g = {
|
|
|
31
31
|
lenderName: s
|
|
32
32
|
};
|
|
33
33
|
}
|
|
34
|
-
}, x = { class: "tw-flex tw-items-center tw-gap-1 tw-py-0.5 tw-px-1 tw-shadow-lg tw-rounded-
|
|
34
|
+
}, x = { class: "tw-flex tw-items-center tw-gap-1 tw-py-0.5 tw-px-1 tw-shadow-lg tw-rounded-xs tw-bg-white" }, h = { class: "tw-text-base tw-whitespace-nowrap" }, I = { class: "data-hj-suppress" };
|
|
35
35
|
function N(o, e, s, n, t, r) {
|
|
36
36
|
const a = m("KvUserAvatar");
|
|
37
37
|
return p(), i("div", x, [
|
|
@@ -47,7 +47,7 @@ function N(o, e, s, n, t, r) {
|
|
|
47
47
|
])
|
|
48
48
|
]);
|
|
49
49
|
}
|
|
50
|
-
const y = /* @__PURE__ */ f(g, [["render", N], ["__scopeId", "data-v-
|
|
50
|
+
const y = /* @__PURE__ */ f(g, [["render", N], ["__scopeId", "data-v-84a9404c"]]);
|
|
51
51
|
export {
|
|
52
52
|
y as default
|
|
53
53
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.loading-placeholder[data-v-
|
|
1
|
+
.loading-placeholder[data-v-0340412a]:before{content:"";display:block;position:absolute;height:100%;width:100%;top:0;transform:translate(100%);background:linear-gradient(to right,transparent 0%,rgb(var(--bg-secondary)) 50%,transparent 100%);animation:loading-placeholder-0340412a 1.5s infinite cubic-bezier(.4,0,.2,1)}@keyframes loading-placeholder-0340412a{0%{transform:translate(-100%)}to{transform:translate(100%)}}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { openBlock as e, createElementBlock as t } from "vue";
|
|
2
2
|
import "./KvLoadingPlaceholder.css";
|
|
3
3
|
import o from "../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const r = {}, c = { class: "loading-placeholder tw-w-full tw-h-full tw-relative tw-overflow-hidden tw-bg-tertiary tw-rounded-
|
|
5
|
-
function l(
|
|
4
|
+
const r = {}, c = { class: "loading-placeholder tw-w-full tw-h-full tw-relative tw-overflow-hidden tw-bg-tertiary tw-rounded-xs" };
|
|
5
|
+
function l(a, d) {
|
|
6
6
|
return e(), t("div", c);
|
|
7
7
|
}
|
|
8
|
-
const _ = /* @__PURE__ */ o(r, [["render", l], ["__scopeId", "data-v-
|
|
8
|
+
const _ = /* @__PURE__ */ o(r, [["render", l], ["__scopeId", "data-v-0340412a"]]);
|
|
9
9
|
export {
|
|
10
10
|
_ as default
|
|
11
11
|
};
|
package/dist/vue/KvTextInput.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { toRefs as b, ref as w, resolveComponent as h, openBlock as u, createElementBlock as m, normalizeClass as f, normalizeStyle as
|
|
1
|
+
import { toRefs as b, ref as w, resolveComponent as h, openBlock as u, createElementBlock as m, normalizeClass as f, normalizeStyle as x, createElementVNode as s, mergeProps as I, toHandlers as V, createBlock as p, createCommentVNode as c, withDirectives as C, createVNode as k, vShow as S, renderSlot as _ } from "vue";
|
|
2
2
|
import { mdiAlertCircleOutline as B, mdiClose as A } from "@mdi/js";
|
|
3
3
|
import { useAttrs as N } from "../utils/attrs.js";
|
|
4
4
|
import R from "./KvMaterialIcon.js";
|
|
@@ -129,16 +129,16 @@ function L(a, l, t, e, i, r) {
|
|
|
129
129
|
const n = h("kv-material-icon");
|
|
130
130
|
return u(), m("div", {
|
|
131
131
|
class: f(["tw-inline-flex", e.classes]),
|
|
132
|
-
style:
|
|
132
|
+
style: x(e.styles)
|
|
133
133
|
}, [
|
|
134
134
|
s("div", {
|
|
135
135
|
class: f(["tw-relative tw-w-full", { "tw-opacity-low": t.disabled }])
|
|
136
136
|
}, [
|
|
137
|
-
s("input",
|
|
137
|
+
s("input", I({
|
|
138
138
|
id: t.id,
|
|
139
139
|
ref: "textInputRef",
|
|
140
140
|
type: t.type,
|
|
141
|
-
class: ["tw-h-6 tw-w-full tw-px-2 tw-border tw-rounded-
|
|
141
|
+
class: ["tw-h-6 tw-w-full tw-px-2 tw-border tw-rounded-xs tw-appearance-none tw-text-base tw-ring-inset focus:tw-outline-none focus:tw-ring-2 focus:tw-border-transparent", {
|
|
142
142
|
"tw-bg-primary": t.valid && !t.disabled,
|
|
143
143
|
"tw-border-tertiary focus:tw-ring-action": t.valid,
|
|
144
144
|
"tw-pr-6 tw-bg-danger-highlight tw-border-danger focus:tw-ring-danger-highlight": !t.valid,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.treemap-figure[data-v-
|
|
1
|
+
.treemap-figure[data-v-12919f43]{height:30rem;width:calc(100% + .25rem);margin-right:-.25rem}@media (min-width: 45.875rem){.treemap-figure[data-v-12919f43]{height:20rem}}
|
|
@@ -145,7 +145,7 @@ function L(t, e, r, i, o, l) {
|
|
|
145
145
|
})) : h("", !0),
|
|
146
146
|
r.loading ? h("", !0) : (n(), c("p", {
|
|
147
147
|
key: 1,
|
|
148
|
-
class: T(["tw-rounded-
|
|
148
|
+
class: T(["tw-rounded-xs tw-box-border tw-overflow-hidden tw-text-small", l.colorClasses(u)]),
|
|
149
149
|
style: { width: "calc(100% - 0.25rem)", height: "calc(100% - 0.25rem)" },
|
|
150
150
|
onMouseenter: (V) => l.setHoverBlock(s)
|
|
151
151
|
}, [
|
|
@@ -171,7 +171,7 @@ function L(t, e, r, i, o, l) {
|
|
|
171
171
|
}, 8, ["controller"])) : h("", !0)
|
|
172
172
|
]);
|
|
173
173
|
}
|
|
174
|
-
const J = /* @__PURE__ */ W(P, [["render", L], ["__scopeId", "data-v-
|
|
174
|
+
const J = /* @__PURE__ */ W(P, [["render", L], ["__scopeId", "data-v-12919f43"]]);
|
|
175
175
|
export {
|
|
176
176
|
J as default
|
|
177
177
|
};
|
|
@@ -5,7 +5,7 @@ const k = {
|
|
|
5
5
|
components: {
|
|
6
6
|
KvHeaderMenuLink: s
|
|
7
7
|
}
|
|
8
|
-
}, m = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium" };
|
|
8
|
+
}, m = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium tw-px-2.5" };
|
|
9
9
|
function v(w, e, c, b, N, T) {
|
|
10
10
|
const o = l("kv-header-menu-link"), r = p("kv-track-event");
|
|
11
11
|
return t(), f("nav", m, [
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { getCurrentInstance as d, computed as u, resolveComponent as
|
|
1
|
+
import { getCurrentInstance as d, computed as u, resolveComponent as c, openBlock as m, createElementBlock as f, normalizeClass as l, renderSlot as p, createVNode as w } from "vue";
|
|
2
2
|
import v from "../KvMaterialIcon.js";
|
|
3
3
|
import h from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
|
-
const
|
|
4
|
+
const C = {
|
|
5
5
|
components: { KvMaterialIcon: v },
|
|
6
6
|
props: {
|
|
7
7
|
refName: {
|
|
@@ -60,23 +60,23 @@ const x = {
|
|
|
60
60
|
}
|
|
61
61
|
};
|
|
62
62
|
}
|
|
63
|
-
},
|
|
64
|
-
function
|
|
65
|
-
const a =
|
|
66
|
-
return
|
|
63
|
+
}, M = ["href"];
|
|
64
|
+
function x(e, o, n, r, i, s) {
|
|
65
|
+
const a = c("KvMaterialIcon");
|
|
66
|
+
return m(), f("a", {
|
|
67
67
|
ref: n.refName,
|
|
68
|
-
class: l(["tw-
|
|
68
|
+
class: l(["tw-no-underline hover:tw-no-underline tw-text-primary hover:tw-text-action tw-items-center tw-rounded tw-cursor-pointer", r.computedClass]),
|
|
69
69
|
href: n.href,
|
|
70
70
|
onMouseover: o[0] || (o[0] = (...t) => r.handleMouseOver && r.handleMouseOver(...t))
|
|
71
71
|
}, [
|
|
72
|
-
|
|
73
|
-
|
|
72
|
+
p(e.$slots, "default"),
|
|
73
|
+
w(a, {
|
|
74
74
|
class: l(["tw-inline tw-w-3 tw-ml-0.5 tw-transition-transform tw-duration-300", { "tw-rotate-180": n.openMenuItem === n.menuComponent }]),
|
|
75
75
|
icon: n.dropdownIcon
|
|
76
76
|
}, null, 8, ["class", "icon"])
|
|
77
|
-
], 42,
|
|
77
|
+
], 42, M);
|
|
78
78
|
}
|
|
79
|
-
const O = /* @__PURE__ */ h(
|
|
79
|
+
const O = /* @__PURE__ */ h(C, [["render", x]]);
|
|
80
80
|
export {
|
|
81
81
|
O as default
|
|
82
82
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-link[data-v-
|
|
1
|
+
.header-link[data-v-be04b1f7]{cursor:pointer;padding-top:1rem;padding-bottom:1rem;--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.header-link[data-v-be04b1f7]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:none}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineAsyncComponent as
|
|
1
|
+
import { defineAsyncComponent as k, ref as l, computed as P, onMounted as z, onUnmounted as W, resolveComponent as b, resolveDirective as j, openBlock as i, createElementBlock as c, withDirectives as d, normalizeClass as g, createVNode as U, createBlock as h, withCtx as I, createTextVNode as w, createElementVNode as D, createCommentVNode as M, toDisplayString as F } from "vue";
|
|
2
2
|
import { mdiAccountCircle as q, mdiChevronDown as G, mdiMagnify as J, mdiMenu as Q } from "@mdi/js";
|
|
3
3
|
import X from "numeral";
|
|
4
4
|
import Y from "../KvMaterialIcon.js";
|
|
@@ -8,7 +8,7 @@ import ee from "../KvUserAvatar.js";
|
|
|
8
8
|
import { throttle as ne } from "../../utils/throttle.js";
|
|
9
9
|
import "./KvHeaderLinkBar.css";
|
|
10
10
|
import te from "../../_virtual/_plugin-vue_export-helper.js";
|
|
11
|
-
const oe =
|
|
11
|
+
const oe = k(() => import("./KvHeaderMobileMenu.js")), O = k(() => import("./KvHeaderMyKivaMenu.js")), re = k(() => import("./LendMenu/KvLendMenu.js")), le = k(() => import("./KvHeaderTakeActionMenu.js")), ie = k(() => import("./KvHeaderAboutMenu.js")), C = 118, T = "avatar-menu", ae = {
|
|
12
12
|
components: {
|
|
13
13
|
KvMaterialIcon: Y,
|
|
14
14
|
KvIconBag: Z,
|
|
@@ -56,11 +56,11 @@ const oe = w(() => import("./KvHeaderMobileMenu.js")), O = w(() => import("./KvH
|
|
|
56
56
|
emits: [
|
|
57
57
|
"item-hover"
|
|
58
58
|
],
|
|
59
|
-
setup(
|
|
60
|
-
const t = l(null), n = l(null),
|
|
59
|
+
setup(u, { emit: e }) {
|
|
60
|
+
const t = l(null), n = l(null), x = l(null), K = l(null), A = l(null), f = l(null), y = l(null), H = l(null), a = l(null), o = l(null), m = (r, v, s = null) => {
|
|
61
61
|
e("item-hover", r, v, s);
|
|
62
62
|
}, _ = (r, v, s = null) => {
|
|
63
|
-
|
|
63
|
+
u.isMobile || m(r, v, s);
|
|
64
64
|
}, S = (r) => {
|
|
65
65
|
o.value === r && (o.value = null, m());
|
|
66
66
|
}, E = () => {
|
|
@@ -69,17 +69,17 @@ const oe = w(() => import("./KvHeaderMobileMenu.js")), O = w(() => import("./KvH
|
|
|
69
69
|
if (!r) return null;
|
|
70
70
|
const s = r.left + r.width / 2 - C / 2;
|
|
71
71
|
return {
|
|
72
|
-
...s + C > window.outerWidth ? { right: 0 } : { left:
|
|
72
|
+
...s + C > window.outerWidth ? { right: 0 } : { left: u.isMobile ? 0 : `${s}px` },
|
|
73
73
|
borderRadius: "0px 0px 8px 8px",
|
|
74
|
-
width:
|
|
74
|
+
width: u.isMobile ? "100%" : "auto"
|
|
75
75
|
};
|
|
76
|
-
},
|
|
76
|
+
}, p = () => {
|
|
77
77
|
o.value = T, m(t.value, O, E());
|
|
78
78
|
}, V = (r, v) => {
|
|
79
|
-
!o.value || o.value !== r ? (o.value = r, r === T ?
|
|
79
|
+
!o.value || o.value !== r ? (o.value = r, r === T ? p() : m(r, v)) : (o.value = null, m());
|
|
80
80
|
}, L = ne(() => {
|
|
81
|
-
|
|
82
|
-
}, 50), R = P(() =>
|
|
81
|
+
u.openMenuItem && p();
|
|
82
|
+
}, 50), R = P(() => u.isMobile ? void 0 : "/lend-by-category");
|
|
83
83
|
return z(() => {
|
|
84
84
|
import("./KvHeaderMobileMenu.js"), import("./KvHeaderMyKivaMenu.js"), import("./LendMenu/KvLendMenu.js"), import("./KvHeaderTakeActionMenu.js"), import("./KvHeaderAboutMenu.js"), window.addEventListener("resize", L);
|
|
85
85
|
}), W(() => {
|
|
@@ -95,18 +95,18 @@ const oe = w(() => import("./KvHeaderMobileMenu.js")), O = w(() => import("./KvH
|
|
|
95
95
|
onHover: m,
|
|
96
96
|
avatar: t,
|
|
97
97
|
lendButton: n,
|
|
98
|
-
aboutUsLink:
|
|
99
|
-
partnerWithUsLink:
|
|
98
|
+
aboutUsLink: x,
|
|
99
|
+
partnerWithUsLink: K,
|
|
100
100
|
borrowLink: A,
|
|
101
101
|
supportKivaLink: f,
|
|
102
|
-
basketLink:
|
|
103
|
-
signInLink:
|
|
102
|
+
basketLink: y,
|
|
103
|
+
signInLink: H,
|
|
104
104
|
menuButton: a,
|
|
105
105
|
lendUrl: R,
|
|
106
106
|
handleOnHover: _,
|
|
107
107
|
handleTouchStart: V,
|
|
108
108
|
handleMouseOut: S,
|
|
109
|
-
handleAvatarMenuPosition:
|
|
109
|
+
handleAvatarMenuPosition: p,
|
|
110
110
|
KvHeaderMobileMenu: oe,
|
|
111
111
|
KvHeaderMyKivaMenu: O,
|
|
112
112
|
KvLendMenu: re,
|
|
@@ -114,16 +114,16 @@ const oe = w(() => import("./KvHeaderMobileMenu.js")), O = w(() => import("./KvH
|
|
|
114
114
|
KvHeaderAboutMenu: ie
|
|
115
115
|
};
|
|
116
116
|
}
|
|
117
|
-
},
|
|
117
|
+
}, de = { class: "tw-h-full tw-flex tw-items-center tw-gap-2.5" }, ue = ["href"], me = {
|
|
118
118
|
key: 0,
|
|
119
119
|
class: "tw-bg-eco-green-1 tw-py-0.5 tw-px-1 tw-text-eco-green-4"
|
|
120
120
|
}, ve = ["href"];
|
|
121
|
-
function se(
|
|
122
|
-
const A =
|
|
123
|
-
return i(), c("div",
|
|
124
|
-
|
|
121
|
+
function se(u, e, t, n, x, K) {
|
|
122
|
+
const A = b("kv-material-icon"), f = b("KvHeaderDropdownLink"), y = b("kv-icon-bag"), H = b("KvUserAvatar"), a = j("kv-track-event");
|
|
123
|
+
return i(), c("div", de, [
|
|
124
|
+
d((i(), c("button", {
|
|
125
125
|
ref: "menuButton",
|
|
126
|
-
class:
|
|
126
|
+
class: g(["header-link tw-inline-flex lg:tw-hidden", {
|
|
127
127
|
"tw-text-tertiary": t.openMenuItem && t.openMenuItem !== n.KvHeaderMobileMenu
|
|
128
128
|
}]),
|
|
129
129
|
onMouseover: e[0] || (e[0] = (o) => n.handleOnHover(n.menuButton, n.KvHeaderMobileMenu)),
|
|
@@ -134,7 +134,8 @@ function se(d, e, t, n, K, x) {
|
|
|
134
134
|
], 34)), [
|
|
135
135
|
[a, t.openMenuItem === n.KvHeaderMobileMenu ? ["TopNav", "click-Hamburger-menu"] : null]
|
|
136
136
|
]),
|
|
137
|
-
|
|
137
|
+
d((i(), h(f, {
|
|
138
|
+
class: "tw-border tw-rounded-md tw-px-1.5 tw-py-1",
|
|
138
139
|
"ref-name": "lendButton",
|
|
139
140
|
href: n.lendUrl,
|
|
140
141
|
"menu-component": n.KvLendMenu,
|
|
@@ -145,14 +146,14 @@ function se(d, e, t, n, K, x) {
|
|
|
145
146
|
onMouseout: e[3] || (e[3] = (o) => n.handleMouseOut("lendButton")),
|
|
146
147
|
onTouchstart: e[4] || (e[4] = (o) => n.handleTouchStart("lendButton", n.KvLendMenu))
|
|
147
148
|
}, {
|
|
148
|
-
default:
|
|
149
|
-
|
|
149
|
+
default: I(() => e[10] || (e[10] = [
|
|
150
|
+
w(" Lend ")
|
|
150
151
|
])),
|
|
151
152
|
_: 1
|
|
152
153
|
}, 8, ["href", "menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
153
154
|
[a, ["TopNav", "click-Lend"]]
|
|
154
155
|
]),
|
|
155
|
-
|
|
156
|
+
d((i(), h(f, {
|
|
156
157
|
"ref-name": "takeActionButton",
|
|
157
158
|
"base-class": "tw-hidden lg:tw-inline-flex",
|
|
158
159
|
"menu-component": n.KvHeaderTakeActionMenu,
|
|
@@ -162,14 +163,14 @@ function se(d, e, t, n, K, x) {
|
|
|
162
163
|
onOnHover: n.onHover,
|
|
163
164
|
onMouseout: e[5] || (e[5] = (o) => n.onHover())
|
|
164
165
|
}, {
|
|
165
|
-
default:
|
|
166
|
-
|
|
166
|
+
default: I(() => e[11] || (e[11] = [
|
|
167
|
+
w(" Take action ")
|
|
167
168
|
])),
|
|
168
169
|
_: 1
|
|
169
170
|
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
170
171
|
[a, ["TopNav", "click-TakeAction"]]
|
|
171
172
|
]),
|
|
172
|
-
|
|
173
|
+
d((i(), h(f, {
|
|
173
174
|
"ref-name": "aboutUsLink",
|
|
174
175
|
"base-class": "tw-hidden lg:tw-inline-flex",
|
|
175
176
|
"menu-component": n.KvHeaderAboutMenu,
|
|
@@ -179,65 +180,65 @@ function se(d, e, t, n, K, x) {
|
|
|
179
180
|
onOnHover: n.onHover,
|
|
180
181
|
onMouseout: e[6] || (e[6] = (o) => n.onHover())
|
|
181
182
|
}, {
|
|
182
|
-
default:
|
|
183
|
-
|
|
183
|
+
default: I(() => e[12] || (e[12] = [
|
|
184
|
+
w(" About ")
|
|
184
185
|
])),
|
|
185
186
|
_: 1
|
|
186
187
|
}, 8, ["menu-component", "open-menu-item", "dropdown-icon", "onOnHover"])), [
|
|
187
188
|
[a, ["TopNav", "click-About"]]
|
|
188
189
|
]),
|
|
189
190
|
e[15] || (e[15] = D("div", { class: "tw-flex-1 tw-h-full" }, null, -1)),
|
|
190
|
-
t.loggedIn ?
|
|
191
|
+
t.loggedIn ? d((i(), c("a", {
|
|
191
192
|
key: 0,
|
|
192
193
|
ref: "dashboardLink",
|
|
193
194
|
href: t.myDashboardUrl,
|
|
194
|
-
class:
|
|
195
|
+
class: g(["header-link tw-hidden lg:tw-block", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
195
196
|
}, e[13] || (e[13] = [
|
|
196
|
-
|
|
197
|
-
]), 10,
|
|
197
|
+
w(" My dashboard ")
|
|
198
|
+
]), 10, ue)), [
|
|
198
199
|
[a, ["TopNav", "click-Dashboard"]]
|
|
199
|
-
]) :
|
|
200
|
-
t.basketCount > 0 ?
|
|
200
|
+
]) : M("", !0),
|
|
201
|
+
t.basketCount > 0 ? d((i(), c("a", {
|
|
201
202
|
key: 1,
|
|
202
203
|
ref: "basketLink",
|
|
203
204
|
href: "/basket",
|
|
204
|
-
class:
|
|
205
|
+
class: g(["header-link tw-relative", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
205
206
|
}, [
|
|
206
|
-
U(
|
|
207
|
+
U(y, {
|
|
207
208
|
class: "tw-w-3 tw-h-3 tw-pointer-events-none",
|
|
208
209
|
count: t.basketCount
|
|
209
210
|
}, null, 8, ["count"])
|
|
210
211
|
], 2)), [
|
|
211
212
|
[a, ["TopNav", "click-Basket"]]
|
|
212
|
-
]) :
|
|
213
|
+
]) : M("", !0),
|
|
213
214
|
D("div", {
|
|
214
215
|
class: "tw-cursor-pointer tw-flex tw-items-center tw-gap-1",
|
|
215
216
|
onMouseover: e[7] || (e[7] = (...o) => n.handleAvatarMenuPosition && n.handleAvatarMenuPosition(...o)),
|
|
216
217
|
onMouseout: e[8] || (e[8] = (o) => n.handleMouseOut(n.AVATAR_MENU_ID)),
|
|
217
218
|
onTouchstart: e[9] || (e[9] = (o) => n.handleTouchStart(n.AVATAR_MENU_ID))
|
|
218
219
|
}, [
|
|
219
|
-
t.loggedIn ? (i(), c("span", me, F(n.numeral(t.balance).format("$0")), 1)) :
|
|
220
|
-
t.loggedIn ? (i(), h(
|
|
220
|
+
t.loggedIn ? (i(), c("span", me, F(n.numeral(t.balance).format("$0")), 1)) : M("", !0),
|
|
221
|
+
t.loggedIn ? (i(), h(H, {
|
|
221
222
|
key: 1,
|
|
222
223
|
ref: "avatar",
|
|
223
224
|
"lender-name": t.lenderName,
|
|
224
225
|
"lender-image-url": t.lenderImageUrl,
|
|
225
226
|
"is-small": ""
|
|
226
|
-
}, null, 8, ["lender-name", "lender-image-url"])) :
|
|
227
|
+
}, null, 8, ["lender-name", "lender-image-url"])) : M("", !0)
|
|
227
228
|
], 32),
|
|
228
|
-
t.loggedIn ?
|
|
229
|
+
t.loggedIn ? M("", !0) : d((i(), c("a", {
|
|
229
230
|
key: 2,
|
|
230
231
|
ref: "signInLink",
|
|
231
232
|
href: t.loginUrl,
|
|
232
|
-
class:
|
|
233
|
+
class: g(["header-link", { "tw-text-tertiary": !!t.openMenuItem }])
|
|
233
234
|
}, e[14] || (e[14] = [
|
|
234
|
-
|
|
235
|
+
w(" Sign in ")
|
|
235
236
|
]), 10, ve)), [
|
|
236
237
|
[a, ["TopNav", "click-Sign-in"]]
|
|
237
238
|
])
|
|
238
239
|
]);
|
|
239
240
|
}
|
|
240
|
-
const
|
|
241
|
+
const pe = /* @__PURE__ */ te(ae, [["render", se], ["__scopeId", "data-v-be04b1f7"]]);
|
|
241
242
|
export {
|
|
242
|
-
|
|
243
|
+
pe as default
|
|
243
244
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { openBlock as t, createElementBlock as r, renderSlot as o } from "vue";
|
|
2
2
|
import n from "../../_virtual/_plugin-vue_export-helper.js";
|
|
3
|
-
const c = {}, s = { class: "tw-py-1.5 tw-cursor-pointer tw-no-underline hover:tw-
|
|
3
|
+
const c = {}, s = { class: "tw-py-1.5 tw-cursor-pointer tw-no-underline hover:tw-underline tw-text-primary hover:tw-text-action" };
|
|
4
4
|
function a(e, i) {
|
|
5
5
|
return t(), r("a", s, [
|
|
6
6
|
o(e.$slots, "default")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.mobile-link[data-v-
|
|
1
|
+
.mobile-link[data-v-58995423]{--tw-text-opacity: 1;color:rgba(var(--text-primary),var(--tw-text-opacity, 1));text-decoration-line:none}.mobile-link[data-v-58995423]:hover{--tw-text-opacity: 1;color:rgba(var(--text-action),var(--tw-text-opacity, 1));text-decoration-line:underline}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import m from "../KvAccordionItem.js";
|
|
2
|
-
import { resolveComponent as k, resolveDirective as v, openBlock as t, createElementBlock as o, createVNode as d, withCtx as a, createElementVNode as l, Fragment as w, renderList as f, withDirectives as n, toDisplayString as
|
|
2
|
+
import { resolveComponent as k, resolveDirective as v, openBlock as t, createElementBlock as o, createVNode as d, withCtx as a, createElementVNode as l, Fragment as w, renderList as f, withDirectives as n, toDisplayString as p, createTextVNode as s } from "vue";
|
|
3
3
|
import "./KvHeaderMobileMenu.css";
|
|
4
4
|
import h from "../../_virtual/_plugin-vue_export-helper.js";
|
|
5
5
|
const b = {
|
|
@@ -46,7 +46,7 @@ const b = {
|
|
|
46
46
|
]
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
}, _ = { class: "tw--mt-0.5 tw-pb-0.5 tw-gap-2 tw-flex tw-flex-col tw-items-end lg:tw-hidden tw-font-medium" }, g = { class: "tw-flex tw-flex-col tw-gap-2" }, x = ["href"], y = { class: "tw-text-secondary tw-font-book" }, N = { class: "tw-flex tw-flex-col tw-gap-2 tw-pt-1 tw-pb-2" }, T = {
|
|
49
|
+
}, _ = { class: "tw--mt-0.5 tw-pb-0.5 tw-gap-2 tw-flex tw-flex-col tw-items-end lg:tw-hidden tw-font-medium tw-px-2.5" }, g = { class: "tw-flex tw-flex-col tw-gap-2" }, x = ["href"], y = { class: "tw-text-secondary tw-font-book" }, N = { class: "tw-flex tw-flex-col tw-gap-2 tw-pt-1 tw-pb-2" }, T = {
|
|
50
50
|
href: "/about",
|
|
51
51
|
class: "mobile-link"
|
|
52
52
|
}, I = {
|
|
@@ -71,7 +71,7 @@ const b = {
|
|
|
71
71
|
href: "/about/due-diligence",
|
|
72
72
|
class: "mobile-link"
|
|
73
73
|
};
|
|
74
|
-
function $(H, e, M, S,
|
|
74
|
+
function $(H, e, M, S, u, V) {
|
|
75
75
|
const c = k("KvAccordionItem"), i = v("kv-track-event");
|
|
76
76
|
return t(), o("nav", _, [
|
|
77
77
|
d(c, {
|
|
@@ -83,14 +83,14 @@ function $(H, e, M, S, p, V) {
|
|
|
83
83
|
])),
|
|
84
84
|
default: a(() => [
|
|
85
85
|
l("div", g, [
|
|
86
|
-
(t(!0), o(w, null, f(
|
|
86
|
+
(t(!0), o(w, null, f(u.menuItems, (r) => n((t(), o("div", {
|
|
87
87
|
key: r.title
|
|
88
88
|
}, [
|
|
89
89
|
l("a", {
|
|
90
90
|
href: r.url,
|
|
91
91
|
class: "mobile-link"
|
|
92
|
-
},
|
|
93
|
-
l("p", y,
|
|
92
|
+
}, p(r.title), 9, x),
|
|
93
|
+
l("p", y, p(r.description), 1)
|
|
94
94
|
])), [
|
|
95
95
|
[i, ["TopNav", `click-menu-${r.trackEvent}`]]
|
|
96
96
|
])), 128))
|
|
@@ -150,7 +150,7 @@ function $(H, e, M, S, p, V) {
|
|
|
150
150
|
})
|
|
151
151
|
]);
|
|
152
152
|
}
|
|
153
|
-
const q = /* @__PURE__ */ h(b, [["render", $], ["__scopeId", "data-v-
|
|
153
|
+
const q = /* @__PURE__ */ h(b, [["render", $], ["__scopeId", "data-v-58995423"]]);
|
|
154
154
|
export {
|
|
155
155
|
q as default
|
|
156
156
|
};
|
|
@@ -23,8 +23,8 @@ const p = {
|
|
|
23
23
|
default: "/mykiva"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
|
-
}, y = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start lg:tw-items-start tw-font-medium" };
|
|
27
|
-
function w(k, e, n, b, v,
|
|
26
|
+
}, y = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start lg:tw-items-start tw-font-medium tw-px-2.5" };
|
|
27
|
+
function w(k, e, n, b, v, x) {
|
|
28
28
|
const t = i("kv-header-menu-link");
|
|
29
29
|
return a(), u("nav", y, [
|
|
30
30
|
s(t, {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import i from "./KvHeaderMenuLink.js";
|
|
2
|
-
import { resolveComponent as u, resolveDirective as c, openBlock as o, createElementBlock as
|
|
3
|
-
import
|
|
2
|
+
import { resolveComponent as u, resolveDirective as c, openBlock as o, createElementBlock as p, withDirectives as a, createBlock as s, withCtx as r, createElementVNode as e } from "vue";
|
|
3
|
+
import d from "../../_virtual/_plugin-vue_export-helper.js";
|
|
4
4
|
const m = {
|
|
5
5
|
components: {
|
|
6
6
|
KvHeaderMenuLink: i
|
|
7
7
|
}
|
|
8
|
-
}, v = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium" };
|
|
9
|
-
function f(k, t, w, _, h
|
|
8
|
+
}, v = { class: "tw--mt-0.5 tw-pb-0.5 tw-flex tw-flex-col tw-items-start tw-font-medium tw-px-2.5" };
|
|
9
|
+
function f(k, t, w, x, _, h) {
|
|
10
10
|
const n = u("kv-header-menu-link"), l = c("kv-track-event");
|
|
11
|
-
return o(),
|
|
11
|
+
return o(), p("nav", v, [
|
|
12
12
|
a((o(), s(n, { href: "/lend-by-category" }, {
|
|
13
13
|
default: r(() => t[0] || (t[0] = [
|
|
14
14
|
e("div", null, [
|
|
@@ -55,7 +55,7 @@ function f(k, t, w, _, h, x) {
|
|
|
55
55
|
])
|
|
56
56
|
]);
|
|
57
57
|
}
|
|
58
|
-
const B = /* @__PURE__ */
|
|
58
|
+
const B = /* @__PURE__ */ d(m, [["render", f]]);
|
|
59
59
|
export {
|
|
60
60
|
B as default
|
|
61
61
|
};
|
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { gql as
|
|
2
|
-
import { toRefs as q, ref as
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import { indexIn as
|
|
6
|
-
import { groupBy as
|
|
7
|
-
import
|
|
1
|
+
import { gql as f } from "@apollo/client/core";
|
|
2
|
+
import { toRefs as q, ref as i, computed as k, onMounted as S, resolveComponent as h, openBlock as x, createBlock as A, withCtx as B, createVNode as w } 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 L } from "../../../utils/arrayUtils.js";
|
|
7
|
+
import K from "../../KvPageContainer.js";
|
|
8
|
+
import D from "../../../_virtual/_plugin-vue_export-helper.js";
|
|
8
9
|
const E = {
|
|
9
10
|
components: {
|
|
10
|
-
KvLendListMenu:
|
|
11
|
-
KvLendMegaMenu:
|
|
11
|
+
KvLendListMenu: F,
|
|
12
|
+
KvLendMegaMenu: N,
|
|
13
|
+
KvPageContainer: K
|
|
12
14
|
},
|
|
13
15
|
props: {
|
|
14
16
|
userId: {
|
|
@@ -21,10 +23,10 @@ const E = {
|
|
|
21
23
|
}
|
|
22
24
|
},
|
|
23
25
|
emits: ["load-lend-menu-data"],
|
|
24
|
-
setup(
|
|
26
|
+
setup(y, { emit: p }) {
|
|
25
27
|
const {
|
|
26
28
|
userId: s
|
|
27
|
-
} = q(
|
|
29
|
+
} = q(y), e = i([]), g = i([]), m = i(0), u = i([]), v = [
|
|
28
30
|
"North America",
|
|
29
31
|
"Central America",
|
|
30
32
|
"South America",
|
|
@@ -33,10 +35,10 @@ const E = {
|
|
|
33
35
|
"Middle East",
|
|
34
36
|
"Asia",
|
|
35
37
|
"Oceania"
|
|
36
|
-
],
|
|
37
|
-
var r, t, o,
|
|
38
|
-
if (
|
|
39
|
-
query:
|
|
38
|
+
], c = i(!0), C = i(!0), M = async (a) => {
|
|
39
|
+
var r, t, o, d;
|
|
40
|
+
if (a.watchQuery({
|
|
41
|
+
query: f`query countryFacets {
|
|
40
42
|
lend {
|
|
41
43
|
countryFacets {
|
|
42
44
|
count
|
|
@@ -52,10 +54,10 @@ const E = {
|
|
|
52
54
|
}).subscribe({
|
|
53
55
|
next: ({ data: n }) => {
|
|
54
56
|
var l;
|
|
55
|
-
|
|
57
|
+
g.value = ((l = n == null ? void 0 : n.lend) == null ? void 0 : l.countryFacets) ?? [], c.value = !1;
|
|
56
58
|
}
|
|
57
|
-
}),
|
|
58
|
-
query:
|
|
59
|
+
}), a.watchQuery({
|
|
60
|
+
query: f`
|
|
59
61
|
query lendMenuData {
|
|
60
62
|
lend {
|
|
61
63
|
loanChannels(popular: true, applyMinLoanCount: true, limit: 50) {
|
|
@@ -70,12 +72,12 @@ const E = {
|
|
|
70
72
|
`
|
|
71
73
|
}).subscribe({
|
|
72
74
|
next: ({ data: n }) => {
|
|
73
|
-
var l,
|
|
74
|
-
e.value = ((
|
|
75
|
+
var l, _;
|
|
76
|
+
e.value = ((_ = (l = n == null ? void 0 : n.lend) == null ? void 0 : l.loanChannels) == null ? void 0 : _.values) ?? [], C.value = !1;
|
|
75
77
|
}
|
|
76
78
|
}), s.value) {
|
|
77
|
-
const { data: n } = await
|
|
78
|
-
query:
|
|
79
|
+
const { data: n } = await a.query({
|
|
80
|
+
query: f`
|
|
79
81
|
query lendMenuPrivateData($userId: Int!) {
|
|
80
82
|
lend {
|
|
81
83
|
loans(limit: 1, filters: {
|
|
@@ -100,69 +102,72 @@ const E = {
|
|
|
100
102
|
},
|
|
101
103
|
fetchPolicy: "network-only"
|
|
102
104
|
});
|
|
103
|
-
m.value = ((t = (r = n == null ? void 0 : n.lend) == null ? void 0 : r.loans) == null ? void 0 : t.totalCount) ?? 0, u.value = ((
|
|
105
|
+
m.value = ((t = (r = n == null ? void 0 : n.lend) == null ? void 0 : r.loans) == null ? void 0 : t.totalCount) ?? 0, u.value = ((d = (o = n == null ? void 0 : n.my) == null ? void 0 : o.savedSearches) == null ? void 0 : d.values) ?? [];
|
|
104
106
|
}
|
|
105
|
-
}, b =
|
|
106
|
-
const
|
|
107
|
+
}, b = k(() => {
|
|
108
|
+
const a = g.value.map((o) => ({
|
|
107
109
|
name: o.country.name,
|
|
108
110
|
region: o.country.region,
|
|
109
111
|
isoCode: o.country.isoCode.toLowerCase(),
|
|
110
112
|
count: o.count || 0
|
|
111
|
-
})), r =
|
|
112
|
-
for (const [o,
|
|
113
|
+
})), r = R(a, "region"), t = [];
|
|
114
|
+
for (const [o, d] of Object.entries(r))
|
|
113
115
|
t.push({
|
|
114
116
|
name: o,
|
|
115
|
-
countries:
|
|
117
|
+
countries: d.sort(L("name"))
|
|
116
118
|
});
|
|
117
|
-
return t.sort(
|
|
118
|
-
}), I =
|
|
119
|
+
return t.sort(O(v, "name"));
|
|
120
|
+
}), I = k(() => {
|
|
119
121
|
var r;
|
|
120
122
|
return ((r = e.value) == null ? void 0 : r.map((t) => {
|
|
121
123
|
const o = JSON.parse(JSON.stringify(t));
|
|
122
124
|
return o.url = o.url.replace("lend", "lend-by-category"), o;
|
|
123
|
-
})).sort(
|
|
125
|
+
})).sort(L("name"));
|
|
124
126
|
});
|
|
125
127
|
return S(() => {
|
|
126
|
-
|
|
128
|
+
p("load-lend-menu-data");
|
|
127
129
|
}), {
|
|
128
130
|
onLoad: M,
|
|
129
131
|
regions: b,
|
|
130
132
|
computedCategories: I,
|
|
131
|
-
isChannelsLoading:
|
|
132
|
-
isRegionsLoading:
|
|
133
|
+
isChannelsLoading: C,
|
|
134
|
+
isRegionsLoading: c,
|
|
133
135
|
savedSearches: u,
|
|
134
136
|
favoritesCount: m
|
|
135
137
|
};
|
|
136
138
|
}
|
|
137
139
|
};
|
|
138
|
-
function
|
|
139
|
-
const u =
|
|
140
|
-
return x(), A(
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
140
|
+
function G(y, p, s, e, g, m) {
|
|
141
|
+
const u = h("kv-lend-list-menu"), v = h("kv-lend-mega-menu"), c = h("kv-page-container");
|
|
142
|
+
return x(), A(c, null, {
|
|
143
|
+
default: B(() => [
|
|
144
|
+
w(u, {
|
|
145
|
+
class: "lg:tw-hidden",
|
|
146
|
+
categories: e.computedCategories,
|
|
147
|
+
regions: e.regions,
|
|
148
|
+
"user-id": s.userId,
|
|
149
|
+
favorites: e.favoritesCount,
|
|
150
|
+
searches: e.savedSearches,
|
|
151
|
+
"is-regions-loading": e.isRegionsLoading,
|
|
152
|
+
"is-channels-loading": e.isChannelsLoading,
|
|
153
|
+
"show-m-g-upsell-link": s.showMGUpsellLink
|
|
154
|
+
}, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link"]),
|
|
155
|
+
w(v, {
|
|
156
|
+
class: "tw-hidden lg:tw-block",
|
|
157
|
+
categories: e.computedCategories,
|
|
158
|
+
regions: e.regions,
|
|
159
|
+
"user-id": s.userId,
|
|
160
|
+
favorites: e.favoritesCount,
|
|
161
|
+
searches: e.savedSearches,
|
|
162
|
+
"is-regions-loading": e.isRegionsLoading,
|
|
163
|
+
"is-channels-loading": e.isChannelsLoading,
|
|
164
|
+
"show-m-g-upsell-link": s.showMGUpsellLink
|
|
165
|
+
}, null, 8, ["categories", "regions", "user-id", "favorites", "searches", "is-regions-loading", "is-channels-loading", "show-m-g-upsell-link"])
|
|
166
|
+
]),
|
|
167
|
+
_: 1
|
|
168
|
+
});
|
|
164
169
|
}
|
|
165
|
-
const
|
|
170
|
+
const T = /* @__PURE__ */ D(E, [["render", G]]);
|
|
166
171
|
export {
|
|
167
|
-
|
|
172
|
+
T as default
|
|
168
173
|
};
|
package/dist/vue/KvWwwHeader.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.header-
|
|
1
|
+
.header-fade-enter-active[data-v-07310dbf]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.3s}.header-fade-leave-active[data-v-07310dbf]{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.1s}.header-fade-enter[data-v-07310dbf],.header-fade-leave-to[data-v-07310dbf]{opacity:0}.header-fade-leave[data-v-07310dbf],.header-fade-enter-to[data-v-07310dbf]{opacity:1}.bg-opacity-50[data-v-07310dbf]{background-color:rgba(var(--bg-action-highlight),.5)}
|
package/dist/vue/KvWwwHeader.js
CHANGED
|
@@ -1,14 +1,16 @@
|
|
|
1
|
-
import { ref as i, shallowRef as L, resolveComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
1
|
+
import { ref as i, shallowRef as L, resolveComponent as u, resolveDirective as M, openBlock as v, createBlock as h, withCtx as c, createElementVNode as f, createVNode as s, Transition as p, withDirectives as g, vShow as I, createElementBlock as H, normalizeStyle as B, resolveDynamicComponent as D } from "vue";
|
|
2
|
+
import U from "./KvWwwHeader/KvHeaderLinkBar.js";
|
|
3
|
+
import N from "./KvWwwHeader/KvHeaderLogo.js";
|
|
4
|
+
import T from "./KvThemeProvider.js";
|
|
5
|
+
import x from "./KvPageContainer.js";
|
|
5
6
|
import "./KvWwwHeader.css";
|
|
6
|
-
import
|
|
7
|
-
const
|
|
7
|
+
import S from "../_virtual/_plugin-vue_export-helper.js";
|
|
8
|
+
const E = {
|
|
8
9
|
components: {
|
|
9
|
-
KvHeaderLinkBar:
|
|
10
|
-
KvHeaderLogo:
|
|
11
|
-
KvThemeProvider:
|
|
10
|
+
KvHeaderLinkBar: U,
|
|
11
|
+
KvHeaderLogo: N,
|
|
12
|
+
KvThemeProvider: T,
|
|
13
|
+
KvPageContainer: x
|
|
12
14
|
},
|
|
13
15
|
props: {
|
|
14
16
|
loggedIn: {
|
|
@@ -63,98 +65,104 @@ const T = {
|
|
|
63
65
|
emits: [
|
|
64
66
|
"load-lend-menu-data"
|
|
65
67
|
],
|
|
66
|
-
setup(
|
|
67
|
-
const e = i(!0),
|
|
68
|
-
let
|
|
68
|
+
setup(C, { emit: t }) {
|
|
69
|
+
const e = i(!0), n = i(null), l = i(!1), a = L(null), d = i(null), r = i({ left: 0, position: "relative" });
|
|
70
|
+
let m;
|
|
69
71
|
return {
|
|
70
72
|
emitLendMenuEvent: () => {
|
|
71
|
-
|
|
73
|
+
t("load-lend-menu-data");
|
|
72
74
|
},
|
|
73
75
|
linksVisible: e,
|
|
74
76
|
menuOpen: l,
|
|
75
|
-
onHover: (
|
|
76
|
-
o ? (clearTimeout(
|
|
77
|
-
...
|
|
77
|
+
onHover: (k, o, y) => {
|
|
78
|
+
o ? (clearTimeout(m), a.value !== o && (r.value = { left: 0, position: "relative" }), a.value = o, l.value = !0, y && (r.value = {
|
|
79
|
+
...y,
|
|
78
80
|
position: "absolute"
|
|
79
|
-
})) : l.value && (
|
|
81
|
+
})) : l.value && (m = setTimeout(() => {
|
|
80
82
|
l.value = !1, a.value = null;
|
|
81
83
|
}, 50));
|
|
82
84
|
},
|
|
83
|
-
loadMenuData: (
|
|
85
|
+
loadMenuData: (k) => {
|
|
84
86
|
var o;
|
|
85
|
-
(o =
|
|
87
|
+
(o = d.value) == null || o.onLoad(k);
|
|
86
88
|
},
|
|
87
|
-
activeHeaderItem:
|
|
89
|
+
activeHeaderItem: n,
|
|
88
90
|
menuComponent: a,
|
|
89
|
-
menuComponentInstance:
|
|
91
|
+
menuComponentInstance: d,
|
|
90
92
|
menuPosition: r
|
|
91
93
|
};
|
|
92
94
|
}
|
|
93
|
-
},
|
|
94
|
-
class: "
|
|
95
|
+
}, K = {
|
|
96
|
+
class: "tw-font-medium",
|
|
95
97
|
style: { height: "3.75rem" }
|
|
96
|
-
},
|
|
98
|
+
}, V = {
|
|
97
99
|
href: "/",
|
|
98
100
|
class: "tw-px-1 tw-py-2 tw-cursor-pointer tw-absolute tw-top-1/2 tw-left-1/2 tw--translate-y-1/2 tw--translate-x-1/2 tw-transition-all tw-duration-300"
|
|
99
|
-
},
|
|
101
|
+
}, P = {
|
|
100
102
|
class: "tw-absolute tw-z-modal tw-h-full tw-inset-x-0 tw-bg-eco-green-4 bg-opacity-50 tw-min-h-screen",
|
|
101
103
|
style: { top: "3.75rem" }
|
|
102
|
-
}
|
|
103
|
-
function z(
|
|
104
|
-
const
|
|
105
|
-
return v(),
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
104
|
+
};
|
|
105
|
+
function z(C, t, e, n, l, a) {
|
|
106
|
+
const d = u("kv-header-link-bar"), r = u("kv-header-logo"), m = u("kv-page-container"), _ = u("kv-theme-provider"), b = M("kv-track-event");
|
|
107
|
+
return v(), h(_, {
|
|
108
|
+
tag: "div",
|
|
109
|
+
class: "tw-bg-primary tw-relative"
|
|
110
|
+
}, {
|
|
111
|
+
default: c(() => [
|
|
112
|
+
f("nav", K, [
|
|
113
|
+
s(m, null, {
|
|
114
|
+
default: c(() => [
|
|
115
|
+
s(p, { name: "header-fade" }, {
|
|
116
|
+
default: c(() => [
|
|
117
|
+
g(s(d, {
|
|
118
|
+
"logged-in": e.loggedIn,
|
|
119
|
+
"basket-count": e.basketCount,
|
|
120
|
+
"login-url": e.loginUrl,
|
|
121
|
+
"open-menu-item": n.menuComponent,
|
|
122
|
+
"my-dashboard-url": e.myDashboardUrl,
|
|
123
|
+
"lender-name": e.lenderName,
|
|
124
|
+
"lender-image-url": e.lenderImageUrl,
|
|
125
|
+
"is-mobile": e.isMobile,
|
|
126
|
+
balance: e.balance,
|
|
127
|
+
onItemHover: n.onHover
|
|
128
|
+
}, null, 8, ["logged-in", "basket-count", "login-url", "open-menu-item", "my-dashboard-url", "lender-name", "lender-image-url", "is-mobile", "balance", "onItemHover"]), [
|
|
129
|
+
[I, n.linksVisible]
|
|
130
|
+
])
|
|
131
|
+
]),
|
|
132
|
+
_: 1
|
|
133
|
+
}),
|
|
134
|
+
g((v(), H("a", V, [
|
|
135
|
+
s(r)
|
|
136
|
+
])), [
|
|
137
|
+
[b, ["TopNav", "click-Logo"]]
|
|
123
138
|
])
|
|
124
139
|
]),
|
|
125
140
|
_: 1
|
|
126
|
-
})
|
|
127
|
-
g((v(), C("a", E, [
|
|
128
|
-
u(r)
|
|
129
|
-
])), [
|
|
130
|
-
[b, ["TopNav", "click-Logo"]]
|
|
131
|
-
])
|
|
141
|
+
})
|
|
132
142
|
]),
|
|
133
|
-
|
|
134
|
-
default:
|
|
135
|
-
g(
|
|
136
|
-
|
|
143
|
+
s(p, { name: "header-fade" }, {
|
|
144
|
+
default: c(() => [
|
|
145
|
+
g(f("div", P, [
|
|
146
|
+
f("div", {
|
|
137
147
|
class: "tw-bg-primary",
|
|
138
|
-
style:
|
|
139
|
-
onMouseover:
|
|
140
|
-
onMouseout:
|
|
148
|
+
style: B(n.menuPosition),
|
|
149
|
+
onMouseover: t[0] || (t[0] = (w) => n.onHover(n.activeHeaderItem, n.menuComponent)),
|
|
150
|
+
onMouseout: t[1] || (t[1] = (w) => n.onHover())
|
|
141
151
|
}, [
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
}, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "my-dashboard-url", "show-m-g-upsell-link", "onLoadLendMenuData"]))
|
|
154
|
-
])
|
|
152
|
+
(v(), h(D(n.menuComponent), {
|
|
153
|
+
ref: "menuComponentInstance",
|
|
154
|
+
"logged-in": e.loggedIn,
|
|
155
|
+
"login-url": e.loginUrl,
|
|
156
|
+
"user-id": e.userId,
|
|
157
|
+
"is-borrower": e.isBorrower,
|
|
158
|
+
"is-trustee": e.isTrustee,
|
|
159
|
+
"my-dashboard-url": e.myDashboardUrl,
|
|
160
|
+
"show-m-g-upsell-link": e.showMGUpsellLink,
|
|
161
|
+
onLoadLendMenuData: n.emitLendMenuEvent
|
|
162
|
+
}, null, 40, ["logged-in", "login-url", "user-id", "is-borrower", "is-trustee", "my-dashboard-url", "show-m-g-upsell-link", "onLoadLendMenuData"]))
|
|
155
163
|
], 36)
|
|
156
164
|
], 512), [
|
|
157
|
-
[
|
|
165
|
+
[I, n.menuOpen]
|
|
158
166
|
])
|
|
159
167
|
]),
|
|
160
168
|
_: 1
|
|
@@ -163,7 +171,7 @@ function z(I, n, e, t, l, a) {
|
|
|
163
171
|
_: 1
|
|
164
172
|
});
|
|
165
173
|
}
|
|
166
|
-
const
|
|
174
|
+
const F = /* @__PURE__ */ S(E, [["render", z], ["__scopeId", "data-v-07310dbf"]]);
|
|
167
175
|
export {
|
|
168
|
-
|
|
176
|
+
F as default
|
|
169
177
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.49.
|
|
3
|
+
"version": "6.49.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -113,5 +113,5 @@
|
|
|
113
113
|
"embla-carousel-fade",
|
|
114
114
|
"popper.js"
|
|
115
115
|
],
|
|
116
|
-
"gitHead": "
|
|
116
|
+
"gitHead": "bbbdaa1f86dc87c05f49fd0d922f9a08a1f5061a"
|
|
117
117
|
}
|