@orderingstack/front-components-product-configurator 1.5.1-beta.1 → 1.5.1-beta.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
|
@@ -11034,7 +11034,7 @@ const getValidationMap2 = (product, selected = {}, filter, map, nestedLvl = 0) =
|
|
|
11034
11034
|
const res = map || {};
|
|
11035
11035
|
if (nestedLvl === 0 || ((_a = selected[product.selCtx]) == null ? void 0 : _a[product.id])) {
|
|
11036
11036
|
(_b = product == null ? void 0 : product.items) == null ? void 0 : _b.forEach((x2) => {
|
|
11037
|
-
var _a2, _b2, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p
|
|
11037
|
+
var _a2, _b2, _c, _d, _e2, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p;
|
|
11038
11038
|
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))) {
|
|
11039
11039
|
const [selCnt, qtyCnt] = getSelCtxCntFromSelectedState(
|
|
11040
11040
|
x2.selCtx,
|
|
@@ -11055,11 +11055,11 @@ const getValidationMap2 = (product, selected = {}, filter, map, nestedLvl = 0) =
|
|
|
11055
11055
|
qtyCnt,
|
|
11056
11056
|
Number(((_k = x2.attrs) == null ? void 0 : _k.qtyMin) || 0),
|
|
11057
11057
|
Number(((_l = x2.attrs) == null ? void 0 : _l.qtyMax) || Number.MAX_SAFE_INTEGER) + 1
|
|
11058
|
-
) && (((_m = x2.attrs) == null ? void 0 : _m.vital) !== true ||
|
|
11058
|
+
) && (((_m = x2.attrs) == null ? void 0 : _m.vital) !== true || selCnt > 0) && (((_n = x2.attrs) == null ? void 0 : _n.allowMultiple) === true || qtyCnt - selCnt === 0)
|
|
11059
11059
|
};
|
|
11060
11060
|
}
|
|
11061
|
-
if ((x2 == null ? void 0 : x2.items) && ((
|
|
11062
|
-
(
|
|
11061
|
+
if ((x2 == null ? void 0 : x2.items) && ((_o = x2.items) == null ? void 0 : _o.length) > 0) {
|
|
11062
|
+
(_p = x2.items) == null ? void 0 : _p.forEach((item) => {
|
|
11063
11063
|
getValidationMap2(item, selected, filter, res, nestedLvl + 1);
|
|
11064
11064
|
});
|
|
11065
11065
|
}
|