@azzas/azzas-tracker-web 2.0.1-preview.0 → 2.0.1
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 +23 -20
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.global.js +23 -20
- package/dist/mod.global.js.map +1 -1
- package/dist/mod.js +23 -20
- package/dist/mod.js.map +1 -1
- package/dist/mod.vtex.global.js +10 -9
- package/package.json +1 -1
package/dist/mod.js
CHANGED
|
@@ -1057,11 +1057,16 @@ var PROD_DOMAINS = {
|
|
|
1057
1057
|
"store": "https://lojaoffpremium.myvtex.com",
|
|
1058
1058
|
"checkout": "https://secure.offpremium.com.br"
|
|
1059
1059
|
},
|
|
1060
|
+
"carolbassi": {
|
|
1061
|
+
"store": "https://carolbassi.myvtex.com",
|
|
1062
|
+
"checkout": "https://secure.carolbassi.com.br"
|
|
1063
|
+
},
|
|
1060
1064
|
"bynv": {
|
|
1061
1065
|
"store": "https://bynv.myvtex.com"
|
|
1062
1066
|
},
|
|
1063
1067
|
"lojafabula": {
|
|
1064
|
-
"store": "https://lojafabula.myvtex.com"
|
|
1068
|
+
"store": "https://lojafabula.myvtex.com",
|
|
1069
|
+
"checkout": "https://secure.lojafabula.com.br"
|
|
1065
1070
|
}
|
|
1066
1071
|
};
|
|
1067
1072
|
async function getUserInfo(context) {
|
|
@@ -1565,31 +1570,29 @@ var reservaAdapter = {
|
|
|
1565
1570
|
if (context == null ? void 0 : context.items) return context.items;
|
|
1566
1571
|
if (context == null ? void 0 : context.products) {
|
|
1567
1572
|
return context.products.map((item) => {
|
|
1568
|
-
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
|
|
1569
|
-
const COLOR_REGEX = /^[^_]+_/;
|
|
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;
|
|
1570
1574
|
const listPrice = (_b = (_a = item == null ? void 0 : item.offers) == null ? void 0 : _a.offers) == null ? void 0 : _b[0].listPrice;
|
|
1571
|
-
const refIdValue = (_e = (_d = (_c = item.additionalProperty) == null ? void 0 : _c.find((i) => i.name === "RefId")) == null ? void 0 : _d.value) == null ? void 0 : _e.replace(/_\d+$/, "");
|
|
1572
1575
|
return {
|
|
1573
1576
|
quantity: 1,
|
|
1574
|
-
index: (
|
|
1575
|
-
item_brand: (
|
|
1576
|
-
item_name: (
|
|
1577
|
-
price: (
|
|
1578
|
-
discount: Math.round((Number(listPrice) - Number((
|
|
1579
|
-
item_variant: ((
|
|
1577
|
+
index: (_c = item == null ? void 0 : item.index) != null ? _c : 0,
|
|
1578
|
+
item_brand: (_f = (_e = (_d = item.brand) == null ? void 0 : _d.name) == null ? void 0 : _e.toLowerCase()) != null ? _f : null,
|
|
1579
|
+
item_name: (_g = item.isVariantOf.name) != null ? _g : null,
|
|
1580
|
+
price: (_i = (_h = item.offers) == null ? void 0 : _h.lowPrice) != null ? _i : null,
|
|
1581
|
+
discount: Math.round((Number(listPrice) - Number((_j = item == null ? void 0 : item.offers) == null ? void 0 : _j.lowPrice)) * 100) / 100,
|
|
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,
|
|
1580
1583
|
// cor
|
|
1581
|
-
item_variant2: (
|
|
1584
|
+
item_variant2: (_n = (_m = item == null ? void 0 : item.name) == null ? void 0 : _m.split(" - ")[1]) != null ? _n : null,
|
|
1582
1585
|
// tamanho
|
|
1583
1586
|
item_shipping_tier: "",
|
|
1584
|
-
item_ref:
|
|
1585
|
-
item_category: (
|
|
1586
|
-
item_category2: (
|
|
1587
|
-
item_id: (
|
|
1588
|
-
item_sku: (
|
|
1589
|
-
item_url: (
|
|
1590
|
-
image_url: (
|
|
1591
|
-
seller_id: (
|
|
1592
|
-
item_list_name: (
|
|
1587
|
+
item_ref: (_o = item.groupRefId) != null ? _o : null,
|
|
1588
|
+
item_category: (_p = getItemCategory5(item)) != null ? _p : null,
|
|
1589
|
+
item_category2: (_q = getItemCategory23(item)) != null ? _q : null,
|
|
1590
|
+
item_id: (_r = item == null ? void 0 : item.id) != null ? _r : null,
|
|
1591
|
+
item_sku: (_s = item == null ? void 0 : item.sku) != null ? _s : null,
|
|
1592
|
+
item_url: (_u = (_t = item == null ? void 0 : item.seo) == null ? void 0 : _t.canonical) != null ? _u : null,
|
|
1593
|
+
image_url: (_w = resizeVtexImage2((_v = item == null ? void 0 : item.image) == null ? void 0 : _v[0].url)) != null ? _w : null,
|
|
1594
|
+
seller_id: (_B = (_A = (_z = (_y = (_x = item.offers) == null ? void 0 : _x.offers) == null ? void 0 : _y[0]) == null ? void 0 : _z.seller) == null ? void 0 : _A.identifier) != null ? _B : null,
|
|
1595
|
+
item_list_name: (_C = item == null ? void 0 : item.item_list_name) != null ? _C : null
|
|
1593
1596
|
};
|
|
1594
1597
|
});
|
|
1595
1598
|
}
|