@azzas/azzas-tracker-web 2.0.2-preview.6 → 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.cjs +12 -11
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.global.js +12 -11
- package/dist/mod.global.js.map +1 -1
- package/dist/mod.js +12 -11
- package/dist/mod.js.map +1 -1
- package/dist/mod.vtex.global.js +8 -7
- package/package.json +1 -1
package/dist/mod.js
CHANGED
|
@@ -1118,6 +1118,7 @@ async function getUserInfo(context) {
|
|
|
1118
1118
|
method: "POST",
|
|
1119
1119
|
body: JSON.stringify({ email: (_k = (_j = context == null ? void 0 : context.meta) == null ? void 0 : _j.user_info) == null ? void 0 : _k.userEmail })
|
|
1120
1120
|
});
|
|
1121
|
+
console.log("[DT] status info: ", response.status);
|
|
1121
1122
|
if (response.status !== 200) {
|
|
1122
1123
|
if (((_m = (_l = context == null ? void 0 : context.meta) == null ? void 0 : _l.user_info) == null ? void 0 : _m.manuallyInfo) && ((_p = (_o = (_n = context == null ? void 0 : context.meta) == null ? void 0 : _n.user_info) == null ? void 0 : _o.manuallyInfo) == null ? void 0 : _p.cpf)) {
|
|
1123
1124
|
const { cpf, birthDate, phone, firstName, lastName, email, email_optin } = (_r = (_q = context == null ? void 0 : context.meta) == null ? void 0 : _q.user_info) == null ? void 0 : _r.manuallyInfo;
|
|
@@ -1987,7 +1988,7 @@ var orderFormAdapter = {
|
|
|
1987
1988
|
if (context == null ? void 0 : context.items) return context.items;
|
|
1988
1989
|
if ((context == null ? void 0 : context.orderForm) && (context == null ? void 0 : context.orderForm.items)) {
|
|
1989
1990
|
return getOrderFormItems(context.orderForm).map((item, index) => {
|
|
1990
|
-
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;
|
|
1991
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();
|
|
1992
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();
|
|
1993
1994
|
return {
|
|
@@ -1997,18 +1998,18 @@ var orderFormAdapter = {
|
|
|
1997
1998
|
item_name: (_l = item == null ? void 0 : item.name.replace(item == null ? void 0 : item.skuName, "").trim()) != null ? _l : null,
|
|
1998
1999
|
price: (item == null ? void 0 : item.sellingPrice) / 100,
|
|
1999
2000
|
discount: ((item == null ? void 0 : item.listPrice) - (item == null ? void 0 : item.sellingPrice)) / 100,
|
|
2000
|
-
item_variant: color
|
|
2001
|
+
item_variant: (_m = color == null ? void 0 : color.toUpperCase()) != null ? _m : null,
|
|
2001
2002
|
item_variant2: size != null ? size : null,
|
|
2002
2003
|
item_shipping_tier: getItemShippingTier2(context.orderForm, item),
|
|
2003
2004
|
item_ref: (item == null ? void 0 : item.productRefId) || (item == null ? void 0 : item.refId.replace(/_\d+$/, "")) || null,
|
|
2004
|
-
item_category: (
|
|
2005
|
-
item_category2: (
|
|
2006
|
-
item_id: (
|
|
2007
|
-
item_sku: (
|
|
2008
|
-
item_url: (
|
|
2009
|
-
image_url: (
|
|
2010
|
-
seller_id: (
|
|
2011
|
-
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
|
|
2012
2013
|
};
|
|
2013
2014
|
});
|
|
2014
2015
|
}
|
|
@@ -2148,7 +2149,7 @@ var orderFormAdapter = {
|
|
|
2148
2149
|
return context.appliedCoupon || ((_b = (_a = context == null ? void 0 : context.orderForm) == null ? void 0 : _a.marketingData) == null ? void 0 : _b.coupon) || null;
|
|
2149
2150
|
},
|
|
2150
2151
|
seller_cod_name: (context) => {
|
|
2151
|
-
return context.appliedSellerCodName ||
|
|
2152
|
+
return context.appliedSellerCodName || null;
|
|
2152
2153
|
}
|
|
2153
2154
|
};
|
|
2154
2155
|
|