@orderingstack/front-hooks 6.6.1 → 6.6.2

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/index.es.js CHANGED
@@ -678,8 +678,9 @@ function zt(t, r, e) {
678
678
  });
679
679
  }
680
680
  const Jt = (t, r = void 0, e = void 0, n = !1) => n ? t.map((a) => {
681
+ var c;
681
682
  let i;
682
- return Array.isArray(a.items) && (i = Jt(
683
+ return Array.isArray(a.items) && ((c = a.items) == null ? void 0 : c.length) > 0 && (i = Jt(
683
684
  a.items,
684
685
  r,
685
686
  e,
@@ -687,7 +688,7 @@ const Jt = (t, r = void 0, e = void 0, n = !1) => n ? t.map((a) => {
687
688
  )), {
688
689
  ...a,
689
690
  items: i,
690
- outsideAvailabilitySlot: !zt(a, r, e) || (i == null ? void 0 : i.every((c) => c.outsideAvailabilitySlot)) || !1
691
+ outsideAvailabilitySlot: !zt(a, r, e) || i && (i == null ? void 0 : i.length) > 0 && (i == null ? void 0 : i.every((u) => u.outsideAvailabilitySlot)) || !1
691
692
  };
692
693
  }) : t.filter(
693
694
  (a) => zt(a, r, e)