@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 +11 -11
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.global.js +11 -11
- package/dist/mod.global.js.map +1 -1
- package/dist/mod.js +11 -11
- package/dist/mod.js.map +1 -1
- package/dist/mod.vtex.global.js +7 -7
- package/package.json +1 -1
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 {
|
|
@@ -1999,17 +1999,17 @@ var orderFormAdapter = {
|
|
|
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
2001
|
item_variant: color != null ? color : null,
|
|
2002
|
-
item_variant2: size
|
|
2002
|
+
item_variant2: (_m = size == null ? void 0 : size.toUpperCase()) != null ? _m : 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: (
|
|
2006
|
-
item_category2: (
|
|
2007
|
-
item_id: (
|
|
2008
|
-
item_sku: (
|
|
2009
|
-
item_url: (
|
|
2010
|
-
image_url: (
|
|
2011
|
-
seller_id: (
|
|
2012
|
-
item_list_name: (
|
|
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 ||
|
|
2152
|
+
return context.appliedSellerCodName || null;
|
|
2153
2153
|
}
|
|
2154
2154
|
};
|
|
2155
2155
|
|