@azzas/azzas-tracker-web 2.0.1 → 2.0.2-preview.0
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 -9
- package/dist/mod.cjs.map +1 -1
- package/dist/mod.d.cts +1 -1
- package/dist/mod.d.ts +1 -1
- package/dist/mod.global.js +8 -9
- package/dist/mod.global.js.map +1 -1
- package/dist/mod.js +8 -9
- package/dist/mod.js.map +1 -1
- package/dist/mod.vtex.global.js +9 -11
- package/package.json +1 -1
package/dist/mod.js
CHANGED
|
@@ -958,8 +958,8 @@ var documentToHash = async (document2) => {
|
|
|
958
958
|
return hashArray.map((b) => b.toString(16).padStart(2, "0")).join("");
|
|
959
959
|
};
|
|
960
960
|
var SIZE_ORDER = {
|
|
961
|
-
alfabetico: ["PP", "P", "M", "G", "GG", "XG", "XGG", "EG", "EGG", "3G", "4G", "5G"],
|
|
962
|
-
infantil: ["RN", "0-3M", "3-6M", "6-9M", "9-12M", "12-18M", "18-24M", "P", "M", "G", "GG"]
|
|
961
|
+
alfabetico: ["PP", "P", "M", "G", "GG", "GGG", "XG", "XGG", "EG", "EGG", "3G", "4G", "5G"],
|
|
962
|
+
infantil: ["RN", "0-3M", "3-6M", "6-9M", "9-12M", "12-18M", "18-24M", "P", "M", "G", "GG", "GGG"]
|
|
963
963
|
};
|
|
964
964
|
var detectSizeType = (sizes) => {
|
|
965
965
|
if (sizes.every((s) => /^\d+([.,]\d+)?$/.test(s))) return "numerico";
|
|
@@ -1629,13 +1629,12 @@ var reservaAdapter = {
|
|
|
1629
1629
|
available_grid: (context) => {
|
|
1630
1630
|
if (context == null ? void 0 : context.available_grid) return context.available_grid;
|
|
1631
1631
|
if (context == null ? void 0 : context.products) {
|
|
1632
|
-
const sizes = context.products.
|
|
1633
|
-
|
|
1634
|
-
|
|
1635
|
-
|
|
1636
|
-
|
|
1637
|
-
|
|
1638
|
-
}).filter((name) => Boolean(name));
|
|
1632
|
+
const sizes = context.products.flatMap(
|
|
1633
|
+
(p) => {
|
|
1634
|
+
var _a, _b, _c, _d, _e;
|
|
1635
|
+
return (_e = (_d = (_c = (_b = (_a = p == null ? void 0 : p.isVariantOf) == null ? void 0 : _a.skuVariants) == null ? void 0 : _b.availableVariations) == null ? void 0 : _c.Tamanho) == null ? void 0 : _d.map((size) => size.value)) != null ? _e : [];
|
|
1636
|
+
}
|
|
1637
|
+
);
|
|
1639
1638
|
const result = sortSizes(sizes).join(",").trim();
|
|
1640
1639
|
return result || null;
|
|
1641
1640
|
}
|