@azzas/azzas-tracker-web 2.0.0-preview.14 → 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 CHANGED
@@ -1384,7 +1384,7 @@ var metaAdapter = {
1384
1384
  return context.meta.search_term || null;
1385
1385
  },
1386
1386
  search_found: (context) => {
1387
- return context.meta.search_found || null;
1387
+ return context.meta.search_found || false;
1388
1388
  },
1389
1389
  search_quantity: (context) => {
1390
1390
  return context.meta.search_quantity || 0;
@@ -1531,7 +1531,7 @@ var decoAdapter = {
1531
1531
  line_items: (context) => {
1532
1532
  if (context == null ? void 0 : context.line_items) return context.line_items;
1533
1533
  if (context == null ? void 0 : context.products) {
1534
- return context.products.map((item) => item == null ? void 0 : item.inProductGroupWithID).filter((id) => Boolean(id));
1534
+ return context.products.map((item) => item == null ? void 0 : item.inProductGroupWithID).filter((id) => Boolean(id)).join();
1535
1535
  }
1536
1536
  return null;
1537
1537
  },
@@ -1640,7 +1640,7 @@ var HeadlessPdpZone = {
1640
1640
  line_items: (context) => {
1641
1641
  if (context == null ? void 0 : context.line_items) return context.line_items;
1642
1642
  if (context == null ? void 0 : context.products) {
1643
- return context.products.map((item) => item.productId).filter((id) => Boolean(id));
1643
+ return context.products.map((item) => item.productId).filter((id) => Boolean(id)).join();
1644
1644
  }
1645
1645
  return null;
1646
1646
  },
@@ -1699,7 +1699,7 @@ var HeadlessPdcZone = {
1699
1699
  line_items: (context) => {
1700
1700
  if (context == null ? void 0 : context.line_items) return context.line_items;
1701
1701
  if (context == null ? void 0 : context.products) {
1702
- return context.products.map((item) => item.id).filter((id) => Boolean(id));
1702
+ return context.products.map((item) => item.id).filter((id) => Boolean(id)).join();
1703
1703
  }
1704
1704
  return null;
1705
1705
  },
@@ -1850,26 +1850,26 @@ var orderFormAdapter = {
1850
1850
  if (context == null ? void 0 : context.items) return context.items;
1851
1851
  if ((context == null ? void 0 : context.orderForm) && (context == null ? void 0 : context.orderForm.items)) {
1852
1852
  return getOrderFormItems(context.orderForm).map((item, index) => {
1853
- var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v, _w;
1853
+ var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
1854
1854
  return {
1855
1855
  quantity: (_a = item == null ? void 0 : item.quantity) != null ? _a : 1,
1856
- index: (_d = (_c = (_b = context == null ? void 0 : context.orderForm) == null ? void 0 : _b.index) != null ? _c : index) != null ? _d : null,
1857
- item_brand: (_f = (_e = item.additionalInfo) == null ? void 0 : _e.brandName) != null ? _f : null,
1858
- item_name: (_g = item == null ? void 0 : item.name.replace(item == null ? void 0 : item.skuName, "").trim()) != null ? _g : null,
1856
+ index: (_c = (_b = context == null ? void 0 : context.orderForm) == null ? void 0 : _b.index) != null ? _c : index + 1,
1857
+ item_brand: (_e = (_d = item.additionalInfo) == null ? void 0 : _d.brandName) != null ? _e : null,
1858
+ item_name: (_f = item == null ? void 0 : item.name.replace(item == null ? void 0 : item.skuName, "").trim()) != null ? _f : null,
1859
1859
  price: (item == null ? void 0 : item.price) / 100,
1860
1860
  discount: ((item == null ? void 0 : item.listPrice) - (item == null ? void 0 : item.sellingPrice)) / 100,
1861
- item_variant: (_k = (_j = (_i = (_h = item == null ? void 0 : item.skuName) == null ? void 0 : _h.split(" - ")[0]) == null ? void 0 : _i.split("_").pop()) == null ? void 0 : _j.trim()) != null ? _k : null,
1862
- item_variant2: (_n = (_m = (_l = item == null ? void 0 : item.skuName) == null ? void 0 : _l.split(" - ")[1]) == null ? void 0 : _m.trim()) != null ? _n : null,
1861
+ 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,
1862
+ 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,
1863
1863
  item_shipping_tier: getItemShippingTier2(context.orderForm, item),
1864
1864
  item_ref: (item == null ? void 0 : item.productRefId) || (item == null ? void 0 : item.refId.replace(/_\d+$/, "")) || null,
1865
- item_category: (_o = getItemCategory6(item)) != null ? _o : null,
1866
- item_category2: (_p = getItemCategory24(item)) != null ? _p : null,
1867
- item_id: (_q = item == null ? void 0 : item.productId) != null ? _q : null,
1868
- item_sku: (_r = item == null ? void 0 : item.id) != null ? _r : null,
1869
- item_url: (_s = item.detailUrl) != null ? _s : null,
1870
- image_url: (_t = resizeVtexImage2(item.imageUrl)) != null ? _t : null,
1871
- seller_id: (_u = item == null ? void 0 : item.seller) != null ? _u : null,
1872
- item_list_name: (_w = (_v = context == null ? void 0 : context.orderForm) == null ? void 0 : _v.item_list_name) != null ? _w : null
1865
+ item_category: (_n = getItemCategory6(item)) != null ? _n : null,
1866
+ item_category2: (_o = getItemCategory24(item)) != null ? _o : null,
1867
+ item_id: (_p = item == null ? void 0 : item.productId) != null ? _p : null,
1868
+ item_sku: (_q = item == null ? void 0 : item.id) != null ? _q : null,
1869
+ item_url: (_r = item.detailUrl) != null ? _r : null,
1870
+ image_url: (_s = resizeVtexImage2(item.imageUrl)) != null ? _s : null,
1871
+ seller_id: (_t = item == null ? void 0 : item.seller) != null ? _t : null,
1872
+ item_list_name: (_v = (_u = context == null ? void 0 : context.orderForm) == null ? void 0 : _u.item_list_name) != null ? _v : null
1873
1873
  };
1874
1874
  });
1875
1875
  }
@@ -1887,7 +1887,7 @@ var orderFormAdapter = {
1887
1887
  var _a;
1888
1888
  if (context == null ? void 0 : context.line_items) return context.line_items;
1889
1889
  if (!((_a = context == null ? void 0 : context.orderForm) == null ? void 0 : _a.items)) return null;
1890
- return getOrderFormItems(context.orderForm).map((item) => item == null ? void 0 : item.productId).filter((id) => Boolean(id));
1890
+ return getOrderFormItems(context.orderForm).map((item) => item == null ? void 0 : item.productId).filter((id) => Boolean(id)).join();
1891
1891
  },
1892
1892
  value: (context) => {
1893
1893
  var _a;