expedite-components 0.5.11 → 0.5.12
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.
|
@@ -2070,8 +2070,9 @@ const wi = {
|
|
|
2070
2070
|
};
|
|
2071
2071
|
});
|
|
2072
2072
|
function xc(e) {
|
|
2073
|
-
|
|
2074
|
-
|
|
2073
|
+
var o;
|
|
2074
|
+
return e.offerData && ((o = e.offerData) == null ? void 0 : o.pricingTypes.length) > 0 && e.offerData.pricingTypes.forEach((t) => {
|
|
2075
|
+
t.appliedOnField === "Catalog Price" ? (e.catalogPrice = t, e.salesPrice = t.offerPrice, e.price = t.offerPrice) : t.appliedOnField === "MRC" ? (e.mrcPrice = t, e.mrc = t.offerPrice) : t.appliedOnField === "YRC" && (e.yrcPrice = t, e.yrc = t.offerPrice);
|
|
2075
2076
|
}), e;
|
|
2076
2077
|
}
|
|
2077
2078
|
function _c(e) {
|
|
@@ -4146,7 +4147,7 @@ const St = st("comConfigurator", () => {
|
|
|
4146
4147
|
}), W.affectedOptions.forEach((ie) => {
|
|
4147
4148
|
K.add(ie);
|
|
4148
4149
|
});
|
|
4149
|
-
}), console.info("rulesByPublishKey", K), D(H), H.categoryOptions.forEach((ne) => {
|
|
4150
|
+
}), console.info("rulesByPublishKey", K), H.categoryOptions || (H.categoryOptions = []), D(H), H.categoryOptions.forEach((ne) => {
|
|
4150
4151
|
ne.key = ne.category.toLowerCase().replace(/\s+/g, "-").replace(/[&]/g, ""), ne.itemTypes.forEach((W) => {
|
|
4151
4152
|
W.selected = [], W.numberOfColumns || (W.numberOfColumns = 1), W.numberOfColumns > 1 && (W.lightboxAttributes = !0), W.maxNumber || (W.maxNumber = 100), W.minNumber || (W.minNumber = 0), W.maxQuantity || (W.maxQuantity = 1e4), W.minQuantity || (W.minQuantity = 1), W.maxNumber === 1 ? (W.isRadio = !0, W.minMessage = "Please select 1 option", W.maxMessage = "", W.isKit = W.options.some((ie) => ie.relationshipInfo.relationship === "Kit")) : (W.minMessage = `Minimum of ${W.minNumber} selection${W.minNumber !== 1 ? "s" : ""} required`, W.maxMessage = `Maximum of ${W.maxNumber} selection${W.maxNumber !== 1 ? "s" : ""} allowed`), W.options.forEach((ie) => {
|
|
4152
4153
|
ne.showImage = ne.showImage || !!ie.defaultImageURL, ie.showAttributesModal = !1, ie.calculateRules = K.has("option." + ie.publishKey) || ie.relationshipInfo.pricingRuleFormula, ie.qty = W.minQuantity || 1, ie.getTags = () => (ie.attributes = ie.attributes || [], ie.attributes.filter((ce) => ce.value !== null && ce.value !== "").map((ce) => ({
|