@azzas/azzas-tracker-web 2.0.2-preview.5 → 2.0.2
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 +17 -12
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.global.js +17 -12
- package/dist/mod.global.js.map +1 -1
- package/dist/mod.js +17 -12
- package/dist/mod.js.map +1 -1
- package/dist/mod.vtex.global.js +8 -3
- package/package.json +1 -1
package/dist/mod.vtex.global.js
CHANGED
|
@@ -1228,6 +1228,7 @@ var AzzasTracker = function() {
|
|
|
1228
1228
|
];
|
|
1229
1229
|
case 2:
|
|
1230
1230
|
response = _state.sent();
|
|
1231
|
+
console.log("[DT] status info: ", response.status);
|
|
1231
1232
|
if (!(response.status !== 200)) return [
|
|
1232
1233
|
3,
|
|
1233
1234
|
5
|
|
@@ -2323,6 +2324,10 @@ var AzzasTracker = function() {
|
|
|
2323
2324
|
"lojafabula": {
|
|
2324
2325
|
"store": "https://lojafabula.myvtex.com",
|
|
2325
2326
|
"checkout": "https://secure.lojafabula.com.br"
|
|
2327
|
+
},
|
|
2328
|
+
"lojausereserva": {
|
|
2329
|
+
"store": "https://lojausereserva.myvtex.com",
|
|
2330
|
+
"checkout": "https://lojausereserva.myvtex.com"
|
|
2326
2331
|
}
|
|
2327
2332
|
};
|
|
2328
2333
|
// src/params/legacy/index.ts
|
|
@@ -3196,7 +3201,7 @@ var AzzasTracker = function() {
|
|
|
3196
3201
|
};
|
|
3197
3202
|
var getItemCategory25 = function(item) {
|
|
3198
3203
|
var _ref, _validHierarchy_;
|
|
3199
|
-
var AVOID_CATEGORIES = /outlet|bazar|sale/i;
|
|
3204
|
+
var AVOID_CATEGORIES = /outlet|bazar|sale|coleção|promoção/i;
|
|
3200
3205
|
var categories = Object.values((_ref = item === null || item === void 0 ? void 0 : item.productCategories) !== null && _ref !== void 0 ? _ref : {});
|
|
3201
3206
|
var validHierarchy = categories.map(function(c) {
|
|
3202
3207
|
return c.trim();
|
|
@@ -3239,13 +3244,13 @@ var AzzasTracker = function() {
|
|
|
3239
3244
|
if ((context === null || context === void 0 ? void 0 : context.orderForm) && (context === null || context === void 0 ? void 0 : context.orderForm.items)) {
|
|
3240
3245
|
return getOrderFormItems(context.orderForm).map(function(item, index) {
|
|
3241
3246
|
var _ref, _ref1, _ref2, _ref3, _getItemCategory7, _getItemCategory25, _ref4, _ref5, _item_detailUrl, _resizeVtexImage2, _ref6, _ref7;
|
|
3242
|
-
var _item_skuName_split__split_pop, _item_skuName_split_, _item_skuName, _item_skuName_split_1, _item_skuName1, _context_orderForm, _item_additionalInfo, _context_orderForm1;
|
|
3247
|
+
var _item_skuName_split__split_pop, _item_skuName_split_, _item_skuName, _item_skuName_split_1, _item_skuName1, _context_orderForm, _item_additionalInfo_brandName, _item_additionalInfo, _context_orderForm1;
|
|
3243
3248
|
var color = context.brand === "carolbassi" ? null : item === null || item === void 0 ? void 0 : (_item_skuName = item.skuName) === null || _item_skuName === void 0 ? void 0 : (_item_skuName_split_ = _item_skuName.split(" - ")[0]) === null || _item_skuName_split_ === void 0 ? void 0 : (_item_skuName_split__split_pop = _item_skuName_split_.split("_").pop()) === null || _item_skuName_split__split_pop === void 0 ? void 0 : _item_skuName_split__split_pop.trim();
|
|
3244
3249
|
var size = context.brand === "carolbassi" ? item === null || item === void 0 ? void 0 : item.skuName : item === null || item === void 0 ? void 0 : (_item_skuName1 = item.skuName) === null || _item_skuName1 === void 0 ? void 0 : (_item_skuName_split_1 = _item_skuName1.split(" - ")[1]) === null || _item_skuName_split_1 === void 0 ? void 0 : _item_skuName_split_1.trim();
|
|
3245
3250
|
return {
|
|
3246
3251
|
quantity: (_ref = item === null || item === void 0 ? void 0 : item.quantity) !== null && _ref !== void 0 ? _ref : 1,
|
|
3247
3252
|
index: (_ref1 = context === null || context === void 0 ? void 0 : (_context_orderForm = context.orderForm) === null || _context_orderForm === void 0 ? void 0 : _context_orderForm.index) !== null && _ref1 !== void 0 ? _ref1 : index + 1,
|
|
3248
|
-
item_brand: (_ref2 = (_item_additionalInfo = item.additionalInfo) === null || _item_additionalInfo === void 0 ? void 0 : _item_additionalInfo.brandName) !== null && _ref2 !== void 0 ? _ref2 : null,
|
|
3253
|
+
item_brand: (_ref2 = (_item_additionalInfo = item.additionalInfo) === null || _item_additionalInfo === void 0 ? void 0 : (_item_additionalInfo_brandName = _item_additionalInfo.brandName) === null || _item_additionalInfo_brandName === void 0 ? void 0 : _item_additionalInfo_brandName.toLowerCase()) !== null && _ref2 !== void 0 ? _ref2 : null,
|
|
3249
3254
|
item_name: (_ref3 = item === null || item === void 0 ? void 0 : item.name.replace(item === null || item === void 0 ? void 0 : item.skuName, "").trim()) !== null && _ref3 !== void 0 ? _ref3 : null,
|
|
3250
3255
|
price: (item === null || item === void 0 ? void 0 : item.sellingPrice) / 100,
|
|
3251
3256
|
discount: ((item === null || item === void 0 ? void 0 : item.listPrice) - (item === null || item === void 0 ? void 0 : item.sellingPrice)) / 100,
|