@azzas/azzas-tracker-web 2.0.2 → 2.0.3-preview.1

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/mod.cjs CHANGED
@@ -2017,7 +2017,7 @@ var orderFormAdapter = {
2017
2017
  if (context == null ? void 0 : context.items) return context.items;
2018
2018
  if ((context == null ? void 0 : context.orderForm) && (context == null ? void 0 : context.orderForm.items)) {
2019
2019
  return getOrderFormItems(context.orderForm).map((item, index) => {
2020
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
2020
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
2021
2021
  const color = context.brand === "carolbassi" ? null : (_c = (_b = (_a = item == null ? void 0 : item.skuName) == null ? void 0 : _a.split(" - ")[0]) == null ? void 0 : _b.split("_").pop()) == null ? void 0 : _c.trim();
2022
2022
  const size = context.brand === "carolbassi" ? item == null ? void 0 : item.skuName : (_e = (_d = item == null ? void 0 : item.skuName) == null ? void 0 : _d.split(" - ")[1]) == null ? void 0 : _e.trim();
2023
2023
  return {
@@ -2028,17 +2028,17 @@ var orderFormAdapter = {
2028
2028
  price: (item == null ? void 0 : item.sellingPrice) / 100,
2029
2029
  discount: ((item == null ? void 0 : item.listPrice) - (item == null ? void 0 : item.sellingPrice)) / 100,
2030
2030
  item_variant: color != null ? color : null,
2031
- item_variant2: size != null ? size : null,
2031
+ item_variant2: (_m = size == null ? void 0 : size.toUpperCase()) != null ? _m : null,
2032
2032
  item_shipping_tier: getItemShippingTier2(context.orderForm, item),
2033
2033
  item_ref: (item == null ? void 0 : item.productRefId) || (item == null ? void 0 : item.refId.replace(/_\d+$/, "")) || null,
2034
- item_category: (_m = getItemCategory7(item)) != null ? _m : null,
2035
- item_category2: (_n = getItemCategory25(item)) != null ? _n : null,
2036
- item_id: (_o = item == null ? void 0 : item.productId) != null ? _o : null,
2037
- item_sku: (_p = item == null ? void 0 : item.id) != null ? _p : null,
2038
- item_url: (_q = item.detailUrl) != null ? _q : null,
2039
- image_url: (_r = resizeVtexImage2(item.imageUrl)) != null ? _r : null,
2040
- seller_id: (_s = item == null ? void 0 : item.seller) != null ? _s : null,
2041
- item_list_name: (_u = (_t = context == null ? void 0 : context.orderForm) == null ? void 0 : _t.item_list_name) != null ? _u : null
2034
+ item_category: (_n = getItemCategory7(item)) != null ? _n : null,
2035
+ item_category2: (_o = getItemCategory25(item)) != null ? _o : null,
2036
+ item_id: (_p = item == null ? void 0 : item.productId) != null ? _p : null,
2037
+ item_sku: (_q = item == null ? void 0 : item.id) != null ? _q : null,
2038
+ item_url: (_r = item.detailUrl) != null ? _r : null,
2039
+ image_url: (_s = resizeVtexImage2(item.imageUrl)) != null ? _s : null,
2040
+ seller_id: (_t = item == null ? void 0 : item.seller) != null ? _t : null,
2041
+ item_list_name: (_v = (_u = context == null ? void 0 : context.orderForm) == null ? void 0 : _u.item_list_name) != null ? _v : null
2042
2042
  };
2043
2043
  });
2044
2044
  }
@@ -2178,7 +2178,7 @@ var orderFormAdapter = {
2178
2178
  return context.appliedCoupon || ((_b = (_a = context == null ? void 0 : context.orderForm) == null ? void 0 : _a.marketingData) == null ? void 0 : _b.coupon) || null;
2179
2179
  },
2180
2180
  seller_cod_name: (context) => {
2181
- return context.appliedSellerCodName || (context == null ? void 0 : context.orderForm.marketingData.utmiCampaign) || null;
2181
+ return context.appliedSellerCodName || null;
2182
2182
  }
2183
2183
  };
2184
2184