@orderingstack/front-hooks 5.0.2 → 5.0.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/index.es.js CHANGED
@@ -1115,13 +1115,14 @@ function Mc(e, r = !1, t = void 0, n = 60) {
1115
1115
  return ie(s, [a, e]), a;
1116
1116
  }
1117
1117
  function jn(e, r) {
1118
- return e.__ || (e.__ = {}), e.__.isHiddenByEnableKey = !Fc(e, r), e.items && e.items.length > 0 && (e.items = e.items.map(
1119
- (t) => jn(t, r)
1120
- )), e;
1118
+ if (e && (e.__ || (e.__ = {}), e.__.isHiddenByEnableKey = !Fc(e, r), e.items && e.items.length > 0))
1119
+ for (const t of e.items)
1120
+ jn(t, r);
1121
1121
  }
1122
1122
  function Bc(e, r) {
1123
1123
  if (e)
1124
- return e.map((t) => jn(t, r));
1124
+ for (const t of e)
1125
+ jn(t, r);
1125
1126
  }
1126
1127
  function Gv({
1127
1128
  originalMenu: e,
@@ -1131,7 +1132,7 @@ function Gv({
1131
1132
  enableKeys: a = []
1132
1133
  }) {
1133
1134
  const i = Mc(e, r, t, n);
1134
- return Bc(i, a);
1135
+ return Bc(i, a), i;
1135
1136
  }
1136
1137
  var mt;
1137
1138
  (function(e) {