@kiva/kv-components 6.19.2 → 6.19.4
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/KvAtbModal.css +1 -0
- package/dist/vue/KvAtbModal.js +12 -11
- package/package.json +2 -2
|
@@ -0,0 +1 @@
|
|
|
1
|
+
@media (min-width: 45.875rem){.cart-modal[data-v-c974cd2d] div.container{right:var(--modal-right)!important;top:var(--modal-top)!important}}
|
package/dist/vue/KvAtbModal.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { toRefs as N, ref as j, computed as C, onMounted as V, onUnmounted as F, resolveComponent as E, openBlock as u, createBlock as O, normalizeStyle as z, withCtx as B, createElementBlock as m, createVNode as D, createElementVNode as e, normalizeClass as R, toDisplayString as T, createCommentVNode as k } from "vue";
|
|
2
|
-
import { throttle as
|
|
3
|
-
import
|
|
2
|
+
import { throttle as I } from "../utils/throttle.js";
|
|
3
|
+
import U from "./KvCartModal.js";
|
|
4
4
|
import G from "./KvCartPill.js";
|
|
5
|
+
import "./KvAtbModal.css";
|
|
5
6
|
import W from "../_virtual/_plugin-vue_export-helper.js";
|
|
6
7
|
const Y = {
|
|
7
8
|
components: {
|
|
8
|
-
KvCartModal:
|
|
9
|
+
KvCartModal: U,
|
|
9
10
|
KvCartPill: G
|
|
10
11
|
},
|
|
11
12
|
props: {
|
|
@@ -104,8 +105,8 @@ const Y = {
|
|
|
104
105
|
const {
|
|
105
106
|
addedLoan: n,
|
|
106
107
|
userData: l,
|
|
107
|
-
hasEverLoggedIn:
|
|
108
|
-
myKivaExperimentEnabled:
|
|
108
|
+
hasEverLoggedIn: M,
|
|
109
|
+
myKivaExperimentEnabled: y,
|
|
109
110
|
oneLoanAwayCategory: p,
|
|
110
111
|
oneLoanAwayFilteredUrl: d,
|
|
111
112
|
milestonesProgress: S
|
|
@@ -123,7 +124,7 @@ const Y = {
|
|
|
123
124
|
return !((t = l.value) != null && t.my);
|
|
124
125
|
}), v = C(() => {
|
|
125
126
|
var t, o, a;
|
|
126
|
-
return
|
|
127
|
+
return y.value && (A.value && !M.value || !A.value && !((a = (o = (t = l.value) == null ? void 0 : t.my) == null ? void 0 : o.loans) != null && a.totalCount)) && b.value === 1;
|
|
127
128
|
}), Z = C(() => p.value && d.value && !v.value), _ = C(() => Object.values(S.value).reduce((t, o) => t + (o > 0 ? o : 0), 0)), H = C(() => {
|
|
128
129
|
var o, a, s;
|
|
129
130
|
if (v.value) {
|
|
@@ -135,7 +136,7 @@ const Y = {
|
|
|
135
136
|
const t = _.value > 1 ? `${_.value} of your milestones` : "your next milestone";
|
|
136
137
|
return c.value ? `Supporting ${c.value} will hit ${t}!` : "Supporting this loan achieves a milestone!";
|
|
137
138
|
}), P = (t) => {
|
|
138
|
-
t === "view-basket" ? i("close-redirect", { path: "/basket" }) : t === "support-another" && d.value && i("close-redirect", d.value);
|
|
139
|
+
t === "view-basket" ? i("close-redirect", { type: t, path: "/basket" }) : t === "support-another" && d.value && i("close-redirect", { type: t, path: d.value });
|
|
139
140
|
}, K = (t) => {
|
|
140
141
|
const { type: o } = t;
|
|
141
142
|
o && P(o), i("reset-modal");
|
|
@@ -145,7 +146,7 @@ const Y = {
|
|
|
145
146
|
s || (a = [...document.querySelectorAll('[data-testid="header-about"]')], s = a.find((L) => L == null ? void 0 : L.clientHeight));
|
|
146
147
|
const r = (s == null ? void 0 : s.getBoundingClientRect()) ?? null;
|
|
147
148
|
r && (r == null ? void 0 : r.right) !== f.value && (f.value = r == null ? void 0 : r.right), o && (o == null ? void 0 : o.bottom) !== w.value && (w.value = o == null ? void 0 : o.bottom);
|
|
148
|
-
}, h =
|
|
149
|
+
}, h = I(x, 100);
|
|
149
150
|
return V(() => {
|
|
150
151
|
x(), window.addEventListener("scroll", h), window.addEventListener("resize", h);
|
|
151
152
|
}), F(() => {
|
|
@@ -183,7 +184,7 @@ const Y = {
|
|
|
183
184
|
key: 2,
|
|
184
185
|
class: "tw-text-h5"
|
|
185
186
|
};
|
|
186
|
-
function e1(g, i, n, l,
|
|
187
|
+
function e1(g, i, n, l, M, y) {
|
|
187
188
|
const p = E("KvCartPill"), d = E("KvCartModal");
|
|
188
189
|
return n.modalVisible ? (u(), O(d, {
|
|
189
190
|
key: 0,
|
|
@@ -386,7 +387,7 @@ function e1(g, i, n, l, y, M) {
|
|
|
386
387
|
_: 1
|
|
387
388
|
}, 8, ["style", "visible", "photo-path", "basket-count", "category-name", "onCartModalClosed"])) : k("", !0);
|
|
388
389
|
}
|
|
389
|
-
const
|
|
390
|
+
const i1 = /* @__PURE__ */ W(Y, [["render", e1], ["__scopeId", "data-v-c974cd2d"]]);
|
|
390
391
|
export {
|
|
391
|
-
|
|
392
|
+
i1 as default
|
|
392
393
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kiva/kv-components",
|
|
3
|
-
"version": "6.19.
|
|
3
|
+
"version": "6.19.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -111,5 +111,5 @@
|
|
|
111
111
|
"embla-carousel-fade",
|
|
112
112
|
"popper.js"
|
|
113
113
|
],
|
|
114
|
-
"gitHead": "
|
|
114
|
+
"gitHead": "de9272b5fc63dbc7152d83d1310ff28313ff2f2b"
|
|
115
115
|
}
|