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

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.js CHANGED
@@ -1988,7 +1988,7 @@ var orderFormAdapter = {
1988
1988
  if (context == null ? void 0 : context.items) return context.items;
1989
1989
  if ((context == null ? void 0 : context.orderForm) && (context == null ? void 0 : context.orderForm.items)) {
1990
1990
  return getOrderFormItems(context.orderForm).map((item, index) => {
1991
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u;
1991
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
1992
1992
  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();
1993
1993
  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();
1994
1994
  return {
@@ -1998,18 +1998,18 @@ var orderFormAdapter = {
1998
1998
  item_name: (_l = item == null ? void 0 : item.name.replace(item == null ? void 0 : item.skuName, "").trim()) != null ? _l : null,
1999
1999
  price: (item == null ? void 0 : item.sellingPrice) / 100,
2000
2000
  discount: ((item == null ? void 0 : item.listPrice) - (item == null ? void 0 : item.sellingPrice)) / 100,
2001
- item_variant: color != null ? color : null,
2001
+ item_variant: (_m = color == null ? void 0 : color.toUpperCase()) != null ? _m : null,
2002
2002
  item_variant2: size != null ? size : null,
2003
2003
  item_shipping_tier: getItemShippingTier2(context.orderForm, item),
2004
2004
  item_ref: (item == null ? void 0 : item.productRefId) || (item == null ? void 0 : item.refId.replace(/_\d+$/, "")) || null,
2005
- item_category: (_m = getItemCategory7(item)) != null ? _m : null,
2006
- item_category2: (_n = getItemCategory25(item)) != null ? _n : null,
2007
- item_id: (_o = item == null ? void 0 : item.productId) != null ? _o : null,
2008
- item_sku: (_p = item == null ? void 0 : item.id) != null ? _p : null,
2009
- item_url: (_q = item.detailUrl) != null ? _q : null,
2010
- image_url: (_r = resizeVtexImage2(item.imageUrl)) != null ? _r : null,
2011
- seller_id: (_s = item == null ? void 0 : item.seller) != null ? _s : null,
2012
- item_list_name: (_u = (_t = context == null ? void 0 : context.orderForm) == null ? void 0 : _t.item_list_name) != null ? _u : null
2005
+ item_category: (_n = getItemCategory7(item)) != null ? _n : null,
2006
+ item_category2: (_o = getItemCategory25(item)) != null ? _o : null,
2007
+ item_id: (_p = item == null ? void 0 : item.productId) != null ? _p : null,
2008
+ item_sku: (_q = item == null ? void 0 : item.id) != null ? _q : null,
2009
+ item_url: (_r = item.detailUrl) != null ? _r : null,
2010
+ image_url: (_s = resizeVtexImage2(item.imageUrl)) != null ? _s : null,
2011
+ seller_id: (_t = item == null ? void 0 : item.seller) != null ? _t : null,
2012
+ item_list_name: (_v = (_u = context == null ? void 0 : context.orderForm) == null ? void 0 : _u.item_list_name) != null ? _v : null
2013
2013
  };
2014
2014
  });
2015
2015
  }
@@ -2149,7 +2149,7 @@ var orderFormAdapter = {
2149
2149
  return context.appliedCoupon || ((_b = (_a = context == null ? void 0 : context.orderForm) == null ? void 0 : _a.marketingData) == null ? void 0 : _b.coupon) || null;
2150
2150
  },
2151
2151
  seller_cod_name: (context) => {
2152
- return context.appliedSellerCodName || (context == null ? void 0 : context.orderForm.marketingData.utmiCampaign) || null;
2152
+ return context.appliedSellerCodName || null;
2153
2153
  }
2154
2154
  };
2155
2155