@azzas/azzas-tracker-web 2.0.2-preview.1 → 2.0.2-preview.3
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 +8 -8
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.global.js +8 -8
- package/dist/mod.global.js.map +1 -1
- package/dist/mod.js +8 -8
- package/dist/mod.js.map +1 -1
- package/dist/mod.vtex.global.js +3 -3
- package/package.json +1 -1
package/dist/mod.cjs
CHANGED
|
@@ -1599,7 +1599,7 @@ var reservaAdapter = {
|
|
|
1599
1599
|
if (context == null ? void 0 : context.items) return context.items;
|
|
1600
1600
|
if (context == null ? void 0 : context.products) {
|
|
1601
1601
|
return context.products.map((item) => {
|
|
1602
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C;
|
|
1602
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _A, _B, _C, _D;
|
|
1603
1603
|
const listPrice = (_b = (_a = item == null ? void 0 : item.offers) == null ? void 0 : _a.offers) == null ? void 0 : _b[0].listPrice;
|
|
1604
1604
|
return {
|
|
1605
1605
|
quantity: 1,
|
|
@@ -1610,18 +1610,18 @@ var reservaAdapter = {
|
|
|
1610
1610
|
discount: Math.round((Number(listPrice) - Number((_j = item == null ? void 0 : item.offers) == null ? void 0 : _j.lowPrice)) * 100) / 100,
|
|
1611
1611
|
item_variant: ((_l = (_k = item == null ? void 0 : item.name) == null ? void 0 : _k.split(" - ")[0]) == null ? void 0 : _l.replace(/^[^_]+_/, "").replace(/_/g, " ")) || null,
|
|
1612
1612
|
// cor
|
|
1613
|
-
item_variant2: (_n = (_m = item == null ? void 0 : item.name) == null ? void 0 : _m.split(" - ")[1]) != null ? _n : null,
|
|
1613
|
+
item_variant2: (_n = (_m = item == null ? void 0 : item.name) == null ? void 0 : _m.split(" - ")[1].toUpperCase()) != null ? _n : null,
|
|
1614
1614
|
// tamanho
|
|
1615
1615
|
item_shipping_tier: "",
|
|
1616
1616
|
item_ref: (_o = item.groupRefId) != null ? _o : null,
|
|
1617
1617
|
item_category: (_p = getItemCategory5(item)) != null ? _p : null,
|
|
1618
1618
|
item_category2: (_q = getItemCategory23(item)) != null ? _q : null,
|
|
1619
|
-
item_id: (_r = item == null ? void 0 : item.
|
|
1620
|
-
item_sku: (
|
|
1621
|
-
item_url: (
|
|
1622
|
-
image_url: (
|
|
1623
|
-
seller_id: (_B = (_A = (_z = (_y =
|
|
1624
|
-
item_list_name: (
|
|
1619
|
+
item_id: (_s = (_r = item == null ? void 0 : item.isVariantOf) == null ? void 0 : _r.productGroupID) != null ? _s : null,
|
|
1620
|
+
item_sku: (_t = item == null ? void 0 : item.sku) != null ? _t : null,
|
|
1621
|
+
item_url: (_v = (_u = item == null ? void 0 : item.seo) == null ? void 0 : _u.canonical) != null ? _v : null,
|
|
1622
|
+
image_url: (_x = resizeVtexImage2((_w = item == null ? void 0 : item.image) == null ? void 0 : _w[0].url)) != null ? _x : null,
|
|
1623
|
+
seller_id: (_C = (_B = (_A = (_z = (_y = item.offers) == null ? void 0 : _y.offers) == null ? void 0 : _z[0]) == null ? void 0 : _A.seller) == null ? void 0 : _B.identifier) != null ? _C : null,
|
|
1624
|
+
item_list_name: (_D = item == null ? void 0 : item.item_list_name) != null ? _D : null
|
|
1625
1625
|
};
|
|
1626
1626
|
});
|
|
1627
1627
|
}
|