@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.cjs
CHANGED
|
@@ -1147,6 +1147,7 @@ async function getUserInfo(context) {
|
|
|
1147
1147
|
method: "POST",
|
|
1148
1148
|
body: JSON.stringify({ email: (_k = (_j = context == null ? void 0 : context.meta) == null ? void 0 : _j.user_info) == null ? void 0 : _k.userEmail })
|
|
1149
1149
|
});
|
|
1150
|
+
console.log("[DT] status info: ", response.status);
|
|
1150
1151
|
if (response.status !== 200) {
|
|
1151
1152
|
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)) {
|
|
1152
1153
|
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;
|
|
@@ -2016,7 +2017,7 @@ var orderFormAdapter = {
|
|
|
2016
2017
|
if (context == null ? void 0 : context.items) return context.items;
|
|
2017
2018
|
if ((context == null ? void 0 : context.orderForm) && (context == null ? void 0 : context.orderForm.items)) {
|
|
2018
2019
|
return getOrderFormItems(context.orderForm).map((item, index) => {
|
|
2019
|
-
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;
|
|
2020
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();
|
|
2021
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();
|
|
2022
2023
|
return {
|
|
@@ -2026,18 +2027,18 @@ var orderFormAdapter = {
|
|
|
2026
2027
|
item_name: (_l = item == null ? void 0 : item.name.replace(item == null ? void 0 : item.skuName, "").trim()) != null ? _l : null,
|
|
2027
2028
|
price: (item == null ? void 0 : item.sellingPrice) / 100,
|
|
2028
2029
|
discount: ((item == null ? void 0 : item.listPrice) - (item == null ? void 0 : item.sellingPrice)) / 100,
|
|
2029
|
-
item_variant: color
|
|
2030
|
+
item_variant: (_m = color == null ? void 0 : color.toUpperCase()) != null ? _m : null,
|
|
2030
2031
|
item_variant2: size != null ? size : null,
|
|
2031
2032
|
item_shipping_tier: getItemShippingTier2(context.orderForm, item),
|
|
2032
2033
|
item_ref: (item == null ? void 0 : item.productRefId) || (item == null ? void 0 : item.refId.replace(/_\d+$/, "")) || null,
|
|
2033
|
-
item_category: (
|
|
2034
|
-
item_category2: (
|
|
2035
|
-
item_id: (
|
|
2036
|
-
item_sku: (
|
|
2037
|
-
item_url: (
|
|
2038
|
-
image_url: (
|
|
2039
|
-
seller_id: (
|
|
2040
|
-
item_list_name: (
|
|
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
|
|
2041
2042
|
};
|
|
2042
2043
|
});
|
|
2043
2044
|
}
|
|
@@ -2177,7 +2178,7 @@ var orderFormAdapter = {
|
|
|
2177
2178
|
return context.appliedCoupon || ((_b = (_a = context == null ? void 0 : context.orderForm) == null ? void 0 : _a.marketingData) == null ? void 0 : _b.coupon) || null;
|
|
2178
2179
|
},
|
|
2179
2180
|
seller_cod_name: (context) => {
|
|
2180
|
-
return context.appliedSellerCodName ||
|
|
2181
|
+
return context.appliedSellerCodName || null;
|
|
2181
2182
|
}
|
|
2182
2183
|
};
|
|
2183
2184
|
|