@azzas/azzas-tracker-web 2.0.2-preview.2 → 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.
- package/dist/mod.cjs +11 -11
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.global.js +11 -11
- package/dist/mod.global.js.map +1 -1
- package/dist/mod.js +11 -11
- package/dist/mod.js.map +1 -1
- package/dist/mod.vtex.global.js +3 -3
- package/package.json +1 -1
package/dist/mod.js
CHANGED
|
@@ -1570,7 +1570,7 @@ var reservaAdapter = {
|
|
|
1570
1570
|
if (context == null ? void 0 : context.items) return context.items;
|
|
1571
1571
|
if (context == null ? void 0 : context.products) {
|
|
1572
1572
|
return context.products.map((item) => {
|
|
1573
|
-
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;
|
|
1573
|
+
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, _E;
|
|
1574
1574
|
const listPrice = (_b = (_a = item == null ? void 0 : item.offers) == null ? void 0 : _a.offers) == null ? void 0 : _b[0].listPrice;
|
|
1575
1575
|
return {
|
|
1576
1576
|
quantity: 1,
|
|
@@ -1581,18 +1581,18 @@ var reservaAdapter = {
|
|
|
1581
1581
|
discount: Math.round((Number(listPrice) - Number((_j = item == null ? void 0 : item.offers) == null ? void 0 : _j.lowPrice)) * 100) / 100,
|
|
1582
1582
|
item_variant: ((_l = (_k = item == null ? void 0 : item.name) == null ? void 0 : _k.split(" - ")[0]) == null ? void 0 : _l.replace(/^[^_]+_/, "").replace(/_/g, " ")) || null,
|
|
1583
1583
|
// cor
|
|
1584
|
-
item_variant2: (_n = (_m = item == null ? void 0 : item.name) == null ? void 0 : _m.split(" - ")[1].toUpperCase()) != null ?
|
|
1584
|
+
item_variant2: (_o = (_n = (_m = item == null ? void 0 : item.name) == null ? void 0 : _m.split(" - ")[1]) == null ? void 0 : _n.toUpperCase()) != null ? _o : null,
|
|
1585
1585
|
// tamanho
|
|
1586
1586
|
item_shipping_tier: "",
|
|
1587
|
-
item_ref: (
|
|
1588
|
-
item_category: (
|
|
1589
|
-
item_category2: (
|
|
1590
|
-
item_id: (
|
|
1591
|
-
item_sku: (
|
|
1592
|
-
item_url: (
|
|
1593
|
-
image_url: (
|
|
1594
|
-
seller_id: (
|
|
1595
|
-
item_list_name: (
|
|
1587
|
+
item_ref: (_p = item.groupRefId) != null ? _p : null,
|
|
1588
|
+
item_category: (_q = getItemCategory5(item)) != null ? _q : null,
|
|
1589
|
+
item_category2: (_r = getItemCategory23(item)) != null ? _r : null,
|
|
1590
|
+
item_id: (_t = (_s = item == null ? void 0 : item.isVariantOf) == null ? void 0 : _s.productGroupID) != null ? _t : null,
|
|
1591
|
+
item_sku: (_u = item == null ? void 0 : item.sku) != null ? _u : null,
|
|
1592
|
+
item_url: (_w = (_v = item == null ? void 0 : item.seo) == null ? void 0 : _v.canonical) != null ? _w : null,
|
|
1593
|
+
image_url: (_y = resizeVtexImage2((_x = item == null ? void 0 : item.image) == null ? void 0 : _x[0].url)) != null ? _y : null,
|
|
1594
|
+
seller_id: (_D = (_C = (_B = (_A = (_z = item.offers) == null ? void 0 : _z.offers) == null ? void 0 : _A[0]) == null ? void 0 : _B.seller) == null ? void 0 : _C.identifier) != null ? _D : null,
|
|
1595
|
+
item_list_name: (_E = item == null ? void 0 : item.item_list_name) != null ? _E : null
|
|
1596
1596
|
};
|
|
1597
1597
|
});
|
|
1598
1598
|
}
|