@azzas/azzas-tracker-web 2.0.2-preview.3 → 2.0.2-preview.4

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.
@@ -2667,7 +2667,7 @@ var AzzasTracker = function() {
2667
2667
  if (context === null || context === void 0 ? void 0 : context.products) {
2668
2668
  return context.products.map(function(item) {
2669
2669
  var _ref, _ref1, _item_isVariantOf_name, _ref2, _ref3, _item_groupRefId, _getItemCategory5, _getItemCategory23, _ref4, _ref5, _ref6, _resizeVtexImage2, _ref7, _ref8;
2670
- var _item_offers_offers, _item_offers, _item_brand_name, _item_brand, _item_offers1, _item_offers2, _item_name_split_, _item_name, _item_name1, _item_isVariantOf, _item_seo, _item_image, _item_offers_offers__seller, _item_offers_offers_, _item_offers_offers1, _item_offers3;
2670
+ var _item_offers_offers, _item_offers, _item_brand_name, _item_brand, _item_offers1, _item_offers2, _item_name_split_, _item_name, _item_name_split_1, _item_name1, _item_isVariantOf, _item_seo, _item_image, _item_offers_offers__seller, _item_offers_offers_, _item_offers_offers1, _item_offers3;
2671
2671
  var listPrice = item === null || item === void 0 ? void 0 : (_item_offers = item.offers) === null || _item_offers === void 0 ? void 0 : (_item_offers_offers = _item_offers.offers) === null || _item_offers_offers === void 0 ? void 0 : _item_offers_offers[0].listPrice;
2672
2672
  return {
2673
2673
  quantity: 1,
@@ -2678,7 +2678,7 @@ var AzzasTracker = function() {
2678
2678
  discount: Math.round((Number(listPrice) - Number(item === null || item === void 0 ? void 0 : (_item_offers2 = item.offers) === null || _item_offers2 === void 0 ? void 0 : _item_offers2.lowPrice)) * 100) / 100,
2679
2679
  item_variant: (item === null || item === void 0 ? void 0 : (_item_name = item.name) === null || _item_name === void 0 ? void 0 : (_item_name_split_ = _item_name.split(" - ")[0]) === null || _item_name_split_ === void 0 ? void 0 : _item_name_split_.replace(/^[^_]+_/, "").replace(/_/g, " ")) || null,
2680
2680
  // cor
2681
- item_variant2: (_ref3 = item === null || item === void 0 ? void 0 : (_item_name1 = item.name) === null || _item_name1 === void 0 ? void 0 : _item_name1.split(" - ")[1].toUpperCase()) !== null && _ref3 !== void 0 ? _ref3 : null,
2681
+ item_variant2: (_ref3 = item === null || item === void 0 ? void 0 : (_item_name1 = item.name) === null || _item_name1 === void 0 ? void 0 : (_item_name_split_1 = _item_name1.split(" - ")[1]) === null || _item_name_split_1 === void 0 ? void 0 : _item_name_split_1.toUpperCase()) !== null && _ref3 !== void 0 ? _ref3 : null,
2682
2682
  // tamanho
2683
2683
  item_shipping_tier: "",
2684
2684
  item_ref: (_item_groupRefId = item.groupRefId) !== null && _item_groupRefId !== void 0 ? _item_groupRefId : null,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azzas/azzas-tracker-web",
3
- "version": "2.0.2-preview.3",
3
+ "version": "2.0.2-preview.4",
4
4
  "type": "module",
5
5
  "main": "./dist/mod.cjs",
6
6
  "module": "./dist/mod.js",