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.
@@ -6365,8 +6365,9 @@ const ja = {
6365
6365
  };
6366
6366
  });
6367
6367
  function S2(e) {
6368
- return e.offerData.pricingTypes.forEach((n) => {
6369
- n.appliedOnField === "Catalog Price" ? (e.catalogPrice = n, e.salesPrice = n.offerPrice, e.price = n.offerPrice) : n.appliedOnField === "MRC" ? (e.mrcPrice = n, e.mrc = n.offerPrice) : n.appliedOnField === "YRC" && (e.yrcPrice = n, e.yrc = n.offerPrice);
6368
+ var n;
6369
+ return e.offerData && ((n = e.offerData) == null ? void 0 : n.pricingTypes.length) > 0 && e.offerData.pricingTypes.forEach((t) => {
6370
+ 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);
6370
6371
  }), e;
6371
6372
  }
6372
6373
  function I2(e) {
@@ -8441,7 +8442,7 @@ const rn = At("comConfigurator", () => {
8441
8442
  }), N.affectedOptions.forEach((Q) => {
8442
8443
  G.add(Q);
8443
8444
  });
8444
- }), console.info("rulesByPublishKey", G), D(U), U.categoryOptions.forEach((P) => {
8445
+ }), console.info("rulesByPublishKey", G), U.categoryOptions || (U.categoryOptions = []), D(U), U.categoryOptions.forEach((P) => {
8445
8446
  P.key = P.category.toLowerCase().replace(/\s+/g, "-").replace(/[&]/g, ""), P.itemTypes.forEach((N) => {
8446
8447
  N.selected = [], N.numberOfColumns || (N.numberOfColumns = 1), N.numberOfColumns > 1 && (N.lightboxAttributes = !0), N.maxNumber || (N.maxNumber = 100), N.minNumber || (N.minNumber = 0), N.maxQuantity || (N.maxQuantity = 1e4), N.minQuantity || (N.minQuantity = 1), N.maxNumber === 1 ? (N.isRadio = !0, N.minMessage = "Please select 1 option", N.maxMessage = "", N.isKit = N.options.some((Q) => Q.relationshipInfo.relationship === "Kit")) : (N.minMessage = `Minimum of ${N.minNumber} selection${N.minNumber !== 1 ? "s" : ""} required`, N.maxMessage = `Maximum of ${N.maxNumber} selection${N.maxNumber !== 1 ? "s" : ""} allowed`), N.options.forEach((Q) => {
8447
8448
  P.showImage = P.showImage || !!Q.defaultImageURL, Q.showAttributesModal = !1, Q.calculateRules = G.has("option." + Q.publishKey) || Q.relationshipInfo.pricingRuleFormula, Q.qty = N.minQuantity || 1, Q.getTags = () => (Q.attributes = Q.attributes || [], Q.attributes.filter((ie) => ie.value !== null && ie.value !== "").map((ie) => ({