@azzas/azzas-tracker-web 2.0.0-preview.15 → 2.0.0-preview.16
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 +15 -15
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.global.js +15 -15
- package/dist/mod.global.js.map +1 -1
- package/dist/mod.js +15 -15
- package/dist/mod.js.map +1 -1
- package/dist/mod.vtex.global.js +11 -11
- package/package.json +1 -1
package/dist/mod.js
CHANGED
|
@@ -1355,7 +1355,7 @@ var metaAdapter = {
|
|
|
1355
1355
|
return context.meta.search_term || null;
|
|
1356
1356
|
},
|
|
1357
1357
|
search_found: (context) => {
|
|
1358
|
-
return context.meta.search_found ||
|
|
1358
|
+
return context.meta.search_found || false;
|
|
1359
1359
|
},
|
|
1360
1360
|
search_quantity: (context) => {
|
|
1361
1361
|
return context.meta.search_quantity || 0;
|
|
@@ -1821,26 +1821,26 @@ var orderFormAdapter = {
|
|
|
1821
1821
|
if (context == null ? void 0 : context.items) return context.items;
|
|
1822
1822
|
if ((context == null ? void 0 : context.orderForm) && (context == null ? void 0 : context.orderForm.items)) {
|
|
1823
1823
|
return getOrderFormItems(context.orderForm).map((item, index) => {
|
|
1824
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v
|
|
1824
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
1825
1825
|
return {
|
|
1826
1826
|
quantity: (_a = item == null ? void 0 : item.quantity) != null ? _a : 1,
|
|
1827
|
-
index: (
|
|
1828
|
-
item_brand: (
|
|
1829
|
-
item_name: (
|
|
1827
|
+
index: (_c = (_b = context == null ? void 0 : context.orderForm) == null ? void 0 : _b.index) != null ? _c : index + 1,
|
|
1828
|
+
item_brand: (_e = (_d = item.additionalInfo) == null ? void 0 : _d.brandName) != null ? _e : null,
|
|
1829
|
+
item_name: (_f = item == null ? void 0 : item.name.replace(item == null ? void 0 : item.skuName, "").trim()) != null ? _f : null,
|
|
1830
1830
|
price: (item == null ? void 0 : item.price) / 100,
|
|
1831
1831
|
discount: ((item == null ? void 0 : item.listPrice) - (item == null ? void 0 : item.sellingPrice)) / 100,
|
|
1832
|
-
item_variant: (
|
|
1833
|
-
item_variant2: (
|
|
1832
|
+
item_variant: (_j = (_i = (_h = (_g = item == null ? void 0 : item.skuName) == null ? void 0 : _g.split(" - ")[0]) == null ? void 0 : _h.split("_").pop()) == null ? void 0 : _i.trim()) != null ? _j : null,
|
|
1833
|
+
item_variant2: (_m = (_l = (_k = item == null ? void 0 : item.skuName) == null ? void 0 : _k.split(" - ")[1]) == null ? void 0 : _l.trim()) != null ? _m : null,
|
|
1834
1834
|
item_shipping_tier: getItemShippingTier2(context.orderForm, item),
|
|
1835
1835
|
item_ref: (item == null ? void 0 : item.productRefId) || (item == null ? void 0 : item.refId.replace(/_\d+$/, "")) || null,
|
|
1836
|
-
item_category: (
|
|
1837
|
-
item_category2: (
|
|
1838
|
-
item_id: (
|
|
1839
|
-
item_sku: (
|
|
1840
|
-
item_url: (
|
|
1841
|
-
image_url: (
|
|
1842
|
-
seller_id: (
|
|
1843
|
-
item_list_name: (
|
|
1836
|
+
item_category: (_n = getItemCategory6(item)) != null ? _n : null,
|
|
1837
|
+
item_category2: (_o = getItemCategory24(item)) != null ? _o : null,
|
|
1838
|
+
item_id: (_p = item == null ? void 0 : item.productId) != null ? _p : null,
|
|
1839
|
+
item_sku: (_q = item == null ? void 0 : item.id) != null ? _q : null,
|
|
1840
|
+
item_url: (_r = item.detailUrl) != null ? _r : null,
|
|
1841
|
+
image_url: (_s = resizeVtexImage2(item.imageUrl)) != null ? _s : null,
|
|
1842
|
+
seller_id: (_t = item == null ? void 0 : item.seller) != null ? _t : null,
|
|
1843
|
+
item_list_name: (_v = (_u = context == null ? void 0 : context.orderForm) == null ? void 0 : _u.item_list_name) != null ? _v : null
|
|
1844
1844
|
};
|
|
1845
1845
|
});
|
|
1846
1846
|
}
|