@orderingstack/front-components-product-configurator 1.5.3-beta.4 → 1.5.3-beta.5

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
@@ -10648,8 +10648,8 @@ const getValidationMap2 = (product, selected = {}, filter, map, nestedLvl = 0) =
10648
10648
  const res = map || {};
10649
10649
  if (nestedLvl === 0 || ((_a = selected[product.selCtx]) == null ? void 0 : _a[product.id])) {
10650
10650
  (_b = product == null ? void 0 : product.items) == null ? void 0 : _b.forEach((x2) => {
10651
- var _a2, _b2, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
10652
- if (x2.kind === EProductKind.OPTIONS && (((_a2 = x2.attrs) == null ? void 0 : _a2.vital) || ((_b2 = x2 == null ? void 0 : x2.attrs) == null ? void 0 : _b2.selMin) || ((_c = x2.attrs) == null ? void 0 : _c.selMax) || ((_d = x2.attrs) == null ? void 0 : _d.qtyMin) || ((_e2 = x2.attrs) == null ? void 0 : _e2.qtyMax) || ((_f = x2.attrs) == null ? void 0 : _f.allowMultiple))) {
10651
+ var _a2, _b2, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n;
10652
+ if (x2.kind === EProductKind.OPTIONS && (((_a2 = x2 == null ? void 0 : x2.attrs) == null ? void 0 : _a2.selMin) || ((_b2 = x2.attrs) == null ? void 0 : _b2.selMax) || ((_c = x2.attrs) == null ? void 0 : _c.qtyMin) || ((_d = x2.attrs) == null ? void 0 : _d.qtyMax) || ((_e2 = x2.attrs) == null ? void 0 : _e2.allowMultiple))) {
10653
10653
  const [selCnt, qtyCnt] = getSelCtxCntFromSelectedState(
10654
10654
  x2.selCtx,
10655
10655
  selected,
@@ -10657,23 +10657,23 @@ const getValidationMap2 = (product, selected = {}, filter, map, nestedLvl = 0) =
10657
10657
  );
10658
10658
  const isFilterValidated = validateProductFilter(product, filter);
10659
10659
  res[x2.selCtx] = {
10660
- isSelCntAllowedToIncrement: selCnt < Number(((_g = x2 == null ? void 0 : x2.attrs) == null ? void 0 : _g.selMax) || Number.MAX_SAFE_INTEGER),
10661
- isQtyCntAllowedToIncrement: qtyCnt < Number(((_h = x2 == null ? void 0 : x2.attrs) == null ? void 0 : _h.qtyMax) || Number.MAX_SAFE_INTEGER),
10660
+ isSelCntAllowedToIncrement: selCnt < Number(((_f = x2 == null ? void 0 : x2.attrs) == null ? void 0 : _f.selMax) || Number.MAX_SAFE_INTEGER),
10661
+ isQtyCntAllowedToIncrement: qtyCnt < Number(((_g = x2 == null ? void 0 : x2.attrs) == null ? void 0 : _g.qtyMax) || Number.MAX_SAFE_INTEGER),
10662
10662
  nestedLvl,
10663
10663
  isPassedFiltering: isFilterValidated,
10664
10664
  isValid: inRange(
10665
10665
  selCnt,
10666
- Number(((_i = x2.attrs) == null ? void 0 : _i.selMin) || 0),
10667
- Number(((_j = x2.attrs) == null ? void 0 : _j.selMax) || Number.MAX_SAFE_INTEGER) + 1
10666
+ Number(((_h = x2.attrs) == null ? void 0 : _h.selMin) || 0),
10667
+ Number(((_i = x2.attrs) == null ? void 0 : _i.selMax) || Number.MAX_SAFE_INTEGER) + 1
10668
10668
  ) && inRange(
10669
10669
  qtyCnt,
10670
- Number(((_k = x2.attrs) == null ? void 0 : _k.qtyMin) || 0),
10671
- Number(((_l = x2.attrs) == null ? void 0 : _l.qtyMax) || Number.MAX_SAFE_INTEGER) + 1
10672
- ) && (((_m = x2.attrs) == null ? void 0 : _m.vital) !== true || selCnt > 0) && (((_n = x2.attrs) == null ? void 0 : _n.allowMultiple) === true || qtyCnt - selCnt === 0)
10670
+ Number(((_j = x2.attrs) == null ? void 0 : _j.qtyMin) || 0),
10671
+ Number(((_k = x2.attrs) == null ? void 0 : _k.qtyMax) || Number.MAX_SAFE_INTEGER) + 1
10672
+ ) && (((_l = x2.attrs) == null ? void 0 : _l.allowMultiple) === true || qtyCnt - selCnt === 0)
10673
10673
  };
10674
10674
  }
10675
- if ((x2 == null ? void 0 : x2.items) && ((_o = x2.items) == null ? void 0 : _o.length) > 0) {
10676
- (_p = x2.items) == null ? void 0 : _p.forEach((item) => {
10675
+ if ((x2 == null ? void 0 : x2.items) && ((_m = x2.items) == null ? void 0 : _m.length) > 0) {
10676
+ (_n = x2.items) == null ? void 0 : _n.forEach((item) => {
10677
10677
  getValidationMap2(item, selected, filter, res, nestedLvl + 1);
10678
10678
  });
10679
10679
  }