@azzas/azzas-tracker-web 2.0.2-preview.5 → 2.0.2-preview.6

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.
@@ -2323,6 +2323,10 @@ var AzzasTracker = function() {
2323
2323
  "lojafabula": {
2324
2324
  "store": "https://lojafabula.myvtex.com",
2325
2325
  "checkout": "https://secure.lojafabula.com.br"
2326
+ },
2327
+ "lojausereserva": {
2328
+ "store": "https://lojausereserva.myvtex.com",
2329
+ "checkout": "https://lojausereserva.myvtex.com"
2326
2330
  }
2327
2331
  };
2328
2332
  // src/params/legacy/index.ts
@@ -3196,7 +3200,7 @@ var AzzasTracker = function() {
3196
3200
  };
3197
3201
  var getItemCategory25 = function(item) {
3198
3202
  var _ref, _validHierarchy_;
3199
- var AVOID_CATEGORIES = /outlet|bazar|sale/i;
3203
+ var AVOID_CATEGORIES = /outlet|bazar|sale|coleção|promoção/i;
3200
3204
  var categories = Object.values((_ref = item === null || item === void 0 ? void 0 : item.productCategories) !== null && _ref !== void 0 ? _ref : {});
3201
3205
  var validHierarchy = categories.map(function(c) {
3202
3206
  return c.trim();
@@ -3239,13 +3243,13 @@ var AzzasTracker = function() {
3239
3243
  if ((context === null || context === void 0 ? void 0 : context.orderForm) && (context === null || context === void 0 ? void 0 : context.orderForm.items)) {
3240
3244
  return getOrderFormItems(context.orderForm).map(function(item, index) {
3241
3245
  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;
3246
+ 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
3247
  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
3248
  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
3249
  return {
3246
3250
  quantity: (_ref = item === null || item === void 0 ? void 0 : item.quantity) !== null && _ref !== void 0 ? _ref : 1,
3247
3251
  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,
3252
+ 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
3253
  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
3254
  price: (item === null || item === void 0 ? void 0 : item.sellingPrice) / 100,
3251
3255
  discount: ((item === null || item === void 0 ? void 0 : item.listPrice) - (item === null || item === void 0 ? void 0 : item.sellingPrice)) / 100,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azzas/azzas-tracker-web",
3
- "version": "2.0.2-preview.5",
3
+ "version": "2.0.2-preview.6",
4
4
  "type": "module",
5
5
  "main": "./dist/mod.cjs",
6
6
  "module": "./dist/mod.js",