@kiva/kv-components 6.19.2 → 6.19.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.
@@ -104,8 +104,8 @@ const Y = {
104
104
  const {
105
105
  addedLoan: n,
106
106
  userData: l,
107
- hasEverLoggedIn: y,
108
- myKivaExperimentEnabled: M,
107
+ hasEverLoggedIn: M,
108
+ myKivaExperimentEnabled: y,
109
109
  oneLoanAwayCategory: p,
110
110
  oneLoanAwayFilteredUrl: d,
111
111
  milestonesProgress: S
@@ -123,7 +123,7 @@ const Y = {
123
123
  return !((t = l.value) != null && t.my);
124
124
  }), v = C(() => {
125
125
  var t, o, a;
126
- return M.value && (A.value && !y.value || !A.value && !((a = (o = (t = l.value) == null ? void 0 : t.my) == null ? void 0 : o.loans) != null && a.totalCount)) && b.value === 1;
126
+ 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
127
  }), 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
128
  var o, a, s;
129
129
  if (v.value) {
@@ -135,7 +135,7 @@ const Y = {
135
135
  const t = _.value > 1 ? `${_.value} of your milestones` : "your next milestone";
136
136
  return c.value ? `Supporting ${c.value} will hit ${t}!` : "Supporting this loan achieves a milestone!";
137
137
  }), P = (t) => {
138
- t === "view-basket" ? i("close-redirect", { path: "/basket" }) : t === "support-another" && d.value && i("close-redirect", d.value);
138
+ t === "view-basket" ? i("close-redirect", { type: t, path: "/basket" }) : t === "support-another" && d.value && i("close-redirect", { type: t, path: d.value });
139
139
  }, K = (t) => {
140
140
  const { type: o } = t;
141
141
  o && P(o), i("reset-modal");
@@ -183,7 +183,7 @@ const Y = {
183
183
  key: 2,
184
184
  class: "tw-text-h5"
185
185
  };
186
- function e1(g, i, n, l, y, M) {
186
+ function e1(g, i, n, l, M, y) {
187
187
  const p = E("KvCartPill"), d = E("KvCartModal");
188
188
  return n.modalVisible ? (u(), O(d, {
189
189
  key: 0,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kiva/kv-components",
3
- "version": "6.19.2",
3
+ "version": "6.19.3",
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": "811b8a3f5418a02b8dcfa8655eb11d47165ba289"
114
+ "gitHead": "598d31555546dd2c068cc2e2e0a86fe6b945619a"
115
115
  }