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